@treasuredata/tdx 0.14.6 → 0.14.8
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/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.d.ts.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +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/llm-proxy.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/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/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/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.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/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.d.ts.map +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/http-client.js.map +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-aliases.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.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-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-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/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/tdx +10 -0
- 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/json-loader.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.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 +2 -2
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x3a562f=a2_0xf299;(function(_0x406a6d,_0x449a83){const _0x2eeb1c=a2_0xf299,_0x4fb4c1=_0x406a6d();while(!![]){try{const _0x340901=parseInt(_0x2eeb1c(0x310))/0x1*(-parseInt(_0x2eeb1c(0x39d))/0x2)+-parseInt(_0x2eeb1c(0x367))/0x3*(parseInt(_0x2eeb1c(0x1c7))/0x4)+-parseInt(_0x2eeb1c(0x210))/0x5*(-parseInt(_0x2eeb1c(0x384))/0x6)+-parseInt(_0x2eeb1c(0x1df))/0x7+-parseInt(_0x2eeb1c(0x23b))/0x8+-parseInt(_0x2eeb1c(0x326))/0x9*(-parseInt(_0x2eeb1c(0x23e))/0xa)+parseInt(_0x2eeb1c(0x234))/0xb;if(_0x340901===_0x449a83)break;else _0x4fb4c1['push'](_0x4fb4c1['shift']());}catch(_0x50b72f){_0x4fb4c1['push'](_0x4fb4c1['shift']());}}}(a2_0x34cd,0xa151d));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x3a562f(0x29d)][a2_0x3a562f(0x21e)](a2_0x3a562f(0x1b3))){let versionOutput=a2_0x3a562f(0x206)+currentVersion;buildInfo[a2_0x3a562f(0x397)]&&!currentVersion[a2_0x3a562f(0x21e)](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x3a562f(0x397)]+')'),buildInfo[a2_0x3a562f(0x3ec)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x3a562f(0x3ec)]),console[a2_0x3a562f(0x2f3)](versionOutput),process[a2_0x3a562f(0x2be)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x3a562f(0x21b);buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x3a562f(0x397)])?description+=a2_0x3a562f(0x222)+currentVersion+'\x20('+buildInfo[a2_0x3a562f(0x397)]+')':description+=a2_0x3a562f(0x222)+currentVersion;program['name'](a2_0x3a562f(0x1eb))[a2_0x3a562f(0x2cb)](description),program['option'](a2_0x3a562f(0x375),a2_0x3a562f(0x301))[a2_0x3a562f(0x28e)]('-p,\x20--profile\x20<name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)')['option']('--site\x20<site>',a2_0x3a562f(0x391),a2_0x3a562f(0x1c2))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2e7),a2_0x3a562f(0x33d))[a2_0x3a562f(0x28e)]('--table',a2_0x3a562f(0x359))['option'](a2_0x3a562f(0x317),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3be),a2_0x3a562f(0x3bb))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x250),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1ee),'Save\x20output\x20to\x20file')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1b4),a2_0x3a562f(0x2ff))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2ac),a2_0x3a562f(0x2e1),![])[a2_0x3a562f(0x28e)](a2_0x3a562f(0x253),a2_0x3a562f(0x211),![])[a2_0x3a562f(0x28e)](a2_0x3a562f(0x221),a2_0x3a562f(0x20c),![])[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1cb),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x3a562f(0x28e)]('--trace',a2_0x3a562f(0x27e))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d8),a2_0x3a562f(0x2bb),'30')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x30a),a2_0x3a562f(0x327),![])[a2_0x3a562f(0x28e)](a2_0x3a562f(0x372),'Skip\x20confirmation\x20prompts',![])[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3d0),a2_0x3a562f(0x2ce))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2ee),a2_0x3a562f(0x395))['option'](a2_0x3a562f(0x284),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2ed),a2_0x3a562f(0x34b))['option'](a2_0x3a562f(0x239),a2_0x3a562f(0x212)),program[a2_0x3a562f(0x3fd)]({'formatHelp':(_0x50c736,_0x30945f)=>{const _0x19499b=a2_0x3a562f,_0x3b39f6=_0x30945f[_0x19499b(0x3c1)](_0x50c736,_0x30945f),_0x436afc=0x2,_0x49483b=0x2;function _0x41da1e(_0x50df0c){const _0xc7473d=_0x19499b,_0x1b378a=_0x50df0c;return!!(_0x1b378a[_0xc7473d(0x2f1)]||_0x1b378a[_0xc7473d(0x3cc)]);}function _0x3ea2e8(_0x2f5903,_0x14543b){const _0x2daab5=_0x19499b;if(_0x14543b){const _0x1c6788=''+_0x2f5903[_0x2daab5(0x1ec)](_0x3b39f6+_0x49483b)+_0x14543b;return _0x1c6788;}return _0x2f5903;}function _0x241d9e(_0x372765){const _0x25b978=_0x19499b;return _0x372765[_0x25b978(0x2ec)]('\x0a')['replace'](/^/gm,'\x20'[_0x25b978(0x2b1)](_0x436afc));}const _0x2c48d2=[];_0x2c48d2[_0x19499b(0x3e7)](_0x19499b(0x38d)+_0x30945f[_0x19499b(0x283)](_0x50c736));const _0x2f8c71=_0x30945f['commandDescription'](_0x50c736);_0x2f8c71&&(_0x2c48d2['push'](''),_0x2c48d2['push'](_0x2f8c71));const _0x5e53f8=_0x50c736['commands'][_0x19499b(0x3b9)](_0x441d4f=>!_0x41da1e(_0x441d4f));if(_0x5e53f8[_0x19499b(0x2a9)]>0x0){if(_0x50c736[_0x19499b(0x26d)]()==='tdx'){const _0x20f674=_0x50c736[_0x19499b(0x26a)](),_0x3754b6=!_0x20f674['noColor']&&process['stdout'][_0x19499b(0x31d)],_0x2075a8=COMMAND_CATEGORIES,_0x5293d5=(_0x1ce99b,_0x233cd6)=>_0x3754b6?_0x233cd6(_0x1ce99b):_0x1ce99b,_0x47b4ad=new Map();_0x5e53f8['forEach'](_0x27cc97=>{const _0x429dac=_0x19499b;_0x47b4ad[_0x429dac(0x1f7)](_0x27cc97[_0x429dac(0x26d)](),_0x27cc97);}),_0x2075a8['forEach'](_0x2cddc6=>{const _0x3c150e=_0x19499b,_0x165d98=_0x2cddc6['commands'][_0x3c150e(0x32f)](_0x2e66cd=>_0x47b4ad[_0x3c150e(0x2b6)](_0x2e66cd)??[]);if(_0x165d98['length']>0x0){_0x2c48d2[_0x3c150e(0x3e7)](''),_0x2c48d2['push'](_0x5293d5(_0x2cddc6[_0x3c150e(0x26d)]+':',_0x2cddc6[_0x3c150e(0x21a)]));const _0x2c0270=_0x165d98[_0x3c150e(0x304)](_0x5da1ea=>{const _0x68c3a3=_0x3c150e,_0x42d17d=_0x30945f[_0x68c3a3(0x1dd)](_0x5da1ea),_0x51683d=_0x30945f[_0x68c3a3(0x33f)](_0x5da1ea);return _0x3ea2e8(_0x42d17d,_0x51683d);});_0x2c48d2[_0x3c150e(0x3e7)](_0x241d9e(_0x2c0270));}}),_0x2c48d2[_0x19499b(0x3e7)](''),_0x2c48d2[_0x19499b(0x3e7)](_0x19499b(0x383));}else{const _0x5ce5b5=_0x5e53f8[_0x19499b(0x304)](_0x5e30bc=>{const _0x2509e1=_0x30945f['subcommandTerm'](_0x5e30bc),_0x949618=_0x30945f['subcommandDescription'](_0x5e30bc);return _0x3ea2e8(_0x2509e1,_0x949618);});_0x2c48d2[_0x19499b(0x3e7)](''),_0x2c48d2['push'](_0x19499b(0x2e8)),_0x2c48d2[_0x19499b(0x3e7)](_0x241d9e(_0x5ce5b5));}}if(showBriefHelp&&_0x50c736['name']()===_0x19499b(0x1eb))_0x2c48d2[_0x19499b(0x3e7)](''),_0x2c48d2[_0x19499b(0x3e7)](_0x19499b(0x226));else{const _0x59f511=_0x50c736[_0x19499b(0x2dc)][_0x19499b(0x3b9)](_0x1824af=>!_0x41da1e(_0x1824af));if(_0x59f511['length']>0x0){const _0x1a26f5=_0x59f511['map'](_0x573004=>{const _0x2ef0d8=_0x19499b,_0x64404f=_0x30945f[_0x2ef0d8(0x1b2)](_0x573004),_0x1a01a2=_0x30945f[_0x2ef0d8(0x1e8)](_0x573004);return _0x3ea2e8(_0x64404f,_0x1a01a2);});_0x2c48d2[_0x19499b(0x3e7)](''),_0x2c48d2[_0x19499b(0x3e7)]('Options:'),_0x2c48d2[_0x19499b(0x3e7)](_0x241d9e(_0x1a26f5));}}const _0x3956b8=(_0x50c736[_0x19499b(0x1fb)]||[])[_0x19499b(0x3b9)](_0xdbe3cb=>!_0x41da1e(_0xdbe3cb));if(_0x3956b8[_0x19499b(0x2a9)]>0x0){const _0x2371ac=_0x3956b8[_0x19499b(0x304)](_0x35f0a8=>{const _0x576865=_0x19499b,_0x564a17=_0x30945f[_0x576865(0x30c)](_0x35f0a8),_0x3b221a=_0x30945f['argumentDescription'](_0x35f0a8);return _0x3ea2e8(_0x564a17,_0x3b221a);});_0x2c48d2[_0x19499b(0x3e7)](''),_0x2c48d2['push']('Arguments:'),_0x2c48d2[_0x19499b(0x3e7)](_0x241d9e(_0x2371ac));}return _0x2c48d2[_0x19499b(0x2ec)]('\x0a')+'\x0a';},'subcommandTerm':_0x241fec=>{const _0x2b40e0=a2_0x3a562f,_0x4f384c=(_0x241fec['registeredArguments']||[])[_0x2b40e0(0x304)](_0x3ca234=>_0x3ca234[_0x2b40e0(0x2f5)]?'<'+_0x3ca234[_0x2b40e0(0x26d)]()+'>':'['+_0x3ca234[_0x2b40e0(0x26d)]()+']')[_0x2b40e0(0x2ec)]('\x20'),_0x2d2741=_0x241fec['aliases'](),_0x38f200=_0x2d2741[_0x2b40e0(0x2a9)]>0x0?_0x241fec['name']()+',\x20'+_0x2d2741[_0x2b40e0(0x2ec)](',\x20'):_0x241fec[_0x2b40e0(0x26d)]();return _0x4f384c?_0x38f200+'\x20'+_0x4f384c:_0x38f200;}}),program[a2_0x3a562f(0x266)](a2_0x3a562f(0x252),_0x4e2acc=>{const _0x2cb092=a2_0x3a562f,_0x46e17e=_0x4e2acc[_0x2cb092(0x26a)]();if(_0x46e17e[_0x2cb092(0x268)]){const _0x4be109=resolve(_0x46e17e[_0x2cb092(0x268)]),_0x6a03ae=_0x4be109!==_0x46e17e[_0x2cb092(0x268)]?_0x2cb092(0x1e1)+_0x4be109+')':'';if(!existsSync(_0x4be109))throw new SDKError(ErrorCode[_0x2cb092(0x386)],_0x2cb092(0x2b0)+_0x46e17e['directory']+_0x6a03ae,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x15b210=statSync(_0x4be109);if(!_0x15b210[_0x2cb092(0x2c1)]())throw new SDKError(ErrorCode[_0x2cb092(0x386)],_0x2cb092(0x274)+_0x46e17e[_0x2cb092(0x268)]+_0x6a03ae,undefined,{'helpText':_0x2cb092(0x2da)});process[_0x2cb092(0x330)](_0x4be109);}if(!_0x46e17e[_0x2cb092(0x291)]){if(_0x46e17e['table'])_0x46e17e['format']=_0x2cb092(0x303);else{if(_0x46e17e['json'])_0x46e17e[_0x2cb092(0x291)]='json';else{if(_0x46e17e[_0x2cb092(0x322)])_0x46e17e['format']=_0x2cb092(0x322);else _0x46e17e[_0x2cb092(0x3fa)]&&(_0x46e17e[_0x2cb092(0x291)]='tsv');}}}_0x46e17e['in']&&!_0x46e17e[_0x2cb092(0x3b6)]&&(_0x46e17e['database']=_0x46e17e['in']);if(_0x46e17e['trace'])_0x46e17e[_0x2cb092(0x318)]=LogLevel[_0x2cb092(0x1b7)];else{if(_0x46e17e[_0x2cb092(0x1f6)])_0x46e17e[_0x2cb092(0x318)]=LogLevel[_0x2cb092(0x289)];else _0x46e17e[_0x2cb092(0x318)]===undefined&&(_0x46e17e[_0x2cb092(0x318)]=LogLevel[_0x2cb092(0x3c2)]);}});async function createTDXInstance(_0xd7b0c5){const _0x571f99=a2_0x3a562f,_0x2bb589=await GlobalContext['createAsync'](_0xd7b0c5);return _0x2bb589[_0x571f99(0x23d)](_0xd7b0c5),TDX[_0x571f99(0x1d7)]({'site':_0x2bb589['site'],'apiKey':_0x2bb589['apiKey'],'logLevel':_0x2bb589[_0x571f99(0x318)],'profile':_0x2bb589[_0x571f99(0x1db)]});}const databaseCmd=program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3b6))['alias']('db')['description'](a2_0x3a562f(0x1fd)),databaseListAction=async(_0x3764cb,_0x2cbde5)=>{const _0x20d145=a2_0x3a562f,_0x37fa5f=new DatabasesCommand(),_0x52c093=program[_0x20d145(0x26a)](),_0x1343a2=await createTDXInstance(_0x52c093),_0x270867=await _0x37fa5f[_0x20d145(0x36b)]({'options':{..._0x52c093,..._0x2cbde5},'args':_0x3764cb?[_0x3764cb]:[],'tdx':_0x1343a2});process['exit'](_0x270867);};databaseCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x320))[a2_0x3a562f(0x2cb)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3a562f(0x3e1)](databaseListAction),program['command'](a2_0x3a562f(0x214),{'hidden':!![]})[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x342))[a2_0x3a562f(0x3e1)](databaseListAction),program[a2_0x3a562f(0x2c2)]('chat\x20[message...]')[a2_0x3a562f(0x2cb)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2d1),a2_0x3a562f(0x400))[a2_0x3a562f(0x28e)]('--new',a2_0x3a562f(0x219))[a2_0x3a562f(0x3e1)](async(_0x28d641,_0x541787)=>{const _0x2097e6=a2_0x3a562f,_0x5b45e6=new ChatCommand(),_0x46dc38=program[_0x2097e6(0x26a)](),_0x46a693=await createTDXInstance(_0x46dc38),_0x95959=await _0x5b45e6[_0x2097e6(0x36b)]({'options':{..._0x46dc38,..._0x541787},'args':_0x28d641,'tdx':_0x46a693});process[_0x2097e6(0x2be)](_0x95959);});const apiCmd=program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x231))[a2_0x3a562f(0x2c8)](a2_0x3a562f(0x378))[a2_0x3a562f(0x1f8)](a2_0x3a562f(0x236),'\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')['option'](a2_0x3a562f(0x32b),a2_0x3a562f(0x39b),a2_0x3a562f(0x35d))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2db),a2_0x3a562f(0x1b0))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x300),'Read\x20request\x20body\x20from\x20file')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2b2),a2_0x3a562f(0x1d3),(_0x49a741,_0x20d7df)=>{return _0x20d7df?[..._0x20d7df,_0x49a741]:[_0x49a741];})[a2_0x3a562f(0x28e)]('--type\x20<api_type>',a2_0x3a562f(0x205),'td')[a2_0x3a562f(0x3e1)](async(_0x170570,_0x43e19c)=>{const _0x28dac6=a2_0x3a562f;if(!_0x170570){apiCmd[_0x28dac6(0x1cd)]();return;}const _0x56a2fb=new ApiCommand(),_0x49cda9=program[_0x28dac6(0x26a)](),_0x364f54=await createTDXInstance(_0x49cda9),_0x2b62a4=await _0x56a2fb[_0x28dac6(0x36b)]({'options':{..._0x49cda9,..._0x43e19c},'args':[_0x170570],'tdx':_0x364f54});process[_0x28dac6(0x2be)](_0x2b62a4);}),tableCmd=program['command'](a2_0x3a562f(0x303))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x223)),tableListAction=async(_0xdbec39,_0x2da451)=>{const _0x47b2e4=a2_0x3a562f,_0x102dc7=new TablesCommand(),_0x185ebc=program['opts'](),_0x87ad24=await createTDXInstance(_0x185ebc);_0x2da451['in']&&(_0x2da451[_0x47b2e4(0x3b6)]=_0x2da451['in']);const _0x562d5c=await _0x102dc7['run']({'options':{..._0x185ebc,..._0x2da451},'args':_0xdbec39?[_0xdbec39]:[],'tdx':_0x87ad24});process[_0x47b2e4(0x2be)](_0x562d5c);};tableCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x320))[a2_0x3a562f(0x2cb)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x27b),a2_0x3a562f(0x2d7))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x224),a2_0x3a562f(0x258))['action'](tableListAction),program['command'](a2_0x3a562f(0x27a),{'hidden':!![]})[a2_0x3a562f(0x2cb)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x3a562f(0x28e)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x3a562f(0x28e)]('--in\x20<database>',a2_0x3a562f(0x258))[a2_0x3a562f(0x3e1)](tableListAction),program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x292))['description']('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x27b),a2_0x3a562f(0x29f))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x224),a2_0x3a562f(0x258))['action'](async(_0x37f488,_0x217875)=>{const _0x1ef7c9=a2_0x3a562f,_0x2fb074=new ShowCommand(),_0x3f9a4a=program[_0x1ef7c9(0x26a)](),_0x134b9b=await createTDXInstance(_0x3f9a4a);_0x217875['in']&&(_0x217875['database']=_0x217875['in']);const _0x412efd=await _0x2fb074['run']({'options':{..._0x3f9a4a,..._0x217875},'args':_0x37f488?[_0x37f488]:[],'tdx':_0x134b9b});process['exit'](_0x412efd);}),program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x29a))[a2_0x3a562f(0x2a2)](a2_0x3a562f(0x34f))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x33c))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x27b),a2_0x3a562f(0x29f))[a2_0x3a562f(0x28e)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3a562f(0x3e1)](async(_0x2b12be,_0x3648ba)=>{const _0x1557e8=a2_0x3a562f,_0x4a188d=new DescribeCommand(),_0x5609b2=program[_0x1557e8(0x26a)](),_0x19ec9e=await createTDXInstance(_0x5609b2);_0x3648ba['in']&&(_0x3648ba[_0x1557e8(0x3b6)]=_0x3648ba['in']);const _0x12b1c9=await _0x4a188d[_0x1557e8(0x36b)]({'options':{..._0x5609b2,..._0x3648ba},'args':_0x2b12be?[_0x2b12be]:[],'tdx':_0x19ec9e});process['exit'](_0x12b1c9);}),program['command'](a2_0x3a562f(0x2e5))[a2_0x3a562f(0x2cb)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x27b),a2_0x3a562f(0x3c8))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x224),a2_0x3a562f(0x258))['option'](a2_0x3a562f(0x30f),a2_0x3a562f(0x26b))[a2_0x3a562f(0x28e)]('-f,\x20--file\x20<path>',a2_0x3a562f(0x376))[a2_0x3a562f(0x28e)]('--limit\x20<rows>',a2_0x3a562f(0x3fc),'40')[a2_0x3a562f(0x3e1)](async(_0x54592b,_0x455968)=>{const _0x31478b=a2_0x3a562f,_0x30e8fd=new QueryCommand(),_0x1d5315=program['opts'](),_0x4f32ff=await createTDXInstance(_0x1d5315);_0x455968['in']&&(_0x455968['database']=_0x455968['in']);const _0x280cd1=await _0x30e8fd[_0x31478b(0x36b)]({'options':{..._0x1d5315,..._0x455968},'args':_0x54592b?[_0x54592b]:[],'tdx':_0x4f32ff});process['exit'](_0x280cd1);});const segmentCmd=program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3a2))[a2_0x3a562f(0x2a2)]('sg')['description']('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x85ee06,_0x52d74a)=>{const _0x306b4a=a2_0x3a562f,_0x199d17=new SegmentsCommand(),_0x283637=program[_0x306b4a(0x26a)](),_0x2101ef=await createTDXInstance(_0x283637),_0x17b1af=await _0x199d17[_0x306b4a(0x36b)]({'options':{..._0x283637,..._0x52d74a},'args':_0x85ee06?[_0x85ee06]:[],'tdx':_0x2101ef});process[_0x306b4a(0x2be)](_0x17b1af);};segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x255))['description']('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')['option'](a2_0x3a562f(0x2ab),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x3a562f(0x278),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x3a562f(0x3e1)](segmentListAction),program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1e5),{'hidden':!![]})['description']('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')['option'](a2_0x3a562f(0x2ab),a2_0x3a562f(0x2f7))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x278),a2_0x3a562f(0x2e6),'10')[a2_0x3a562f(0x3e1)](segmentListAction),segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1f5),{'hidden':!![]})[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x294))[a2_0x3a562f(0x3e1)](async(_0x13c942,_0x509227)=>{const _0x3711f0=a2_0x3a562f,_0x13b859=new SegmentUseCommand(),_0x436aa2=program['opts'](),_0x30142e=await createTDXInstance(_0x436aa2),_0x41ee9e=await _0x13b859[_0x3711f0(0x36b)]({'options':{..._0x436aa2,..._0x509227},'args':[_0x13c942],'tdx':_0x30142e});process[_0x3711f0(0x2be)](_0x41ee9e);});const segmentViewAction=async(_0x5e8be5,_0x570811)=>{const _0x194e96=a2_0x3a562f,_0x2377f1=new SegmentViewCommand(),_0x19e5be=program['opts'](),_0x370a38=await createTDXInstance(_0x19e5be),_0x12e6fa=await _0x2377f1[_0x194e96(0x36b)]({'options':{..._0x19e5be,..._0x570811},'args':_0x5e8be5?[_0x5e8be5]:[],'tdx':_0x370a38});process['exit'](_0x12e6fa);};segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3cf))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3f1))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x24e),a2_0x3a562f(0x1fa))[a2_0x3a562f(0x3e1)](segmentViewAction),segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x216),{'hidden':!![]})['alias'](a2_0x3a562f(0x25a))['option'](a2_0x3a562f(0x24e),a2_0x3a562f(0x1fa))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x2c4))[a2_0x3a562f(0x3e1)](segmentViewAction),segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1bf))['description'](a2_0x3a562f(0x3fb))[a2_0x3a562f(0x3e1)](async(_0x56686b,_0x426521)=>{const _0x37dea9=a2_0x3a562f,_0x1e4c5b=new SegmentDescCommand(),_0x66705d=program[_0x37dea9(0x26a)](),_0x5598f2=await createTDXInstance(_0x66705d),_0x218240=await _0x1e4c5b[_0x37dea9(0x36b)]({'options':{..._0x66705d,..._0x426521},'args':_0x56686b?[_0x56686b]:[],'tdx':_0x5598f2});process[_0x37dea9(0x2be)](_0x218240);}),segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x248))['description'](a2_0x3a562f(0x3db))[a2_0x3a562f(0x3e1)](async(_0x5704ca,_0x2dedde)=>{const _0x3b3a8a=a2_0x3a562f,_0x141f81=new SegmentShowCommand(),_0x211904=program[_0x3b3a8a(0x26a)](),_0x9726ae=await createTDXInstance(_0x211904),_0x19b476=await _0x141f81['run']({'options':{..._0x211904,..._0x2dedde},'args':_0x5704ca?[_0x5704ca]:[],'tdx':_0x9726ae});process[_0x3b3a8a(0x2be)](_0x19b476);}),segmentCmd['command'](a2_0x3a562f(0x20a),{'hidden':!![]})['description'](a2_0x3a562f(0x235))[a2_0x3a562f(0x3e1)](async(_0x1995b4,_0x3d80c8)=>{const _0x25a303=a2_0x3a562f,_0x4cf788=new SegmentFolderListCommand(),_0x2144b0=program['opts'](),_0x5f22c7=await createTDXInstance(_0x2144b0),_0x39eb32=await _0x4cf788[_0x25a303(0x36b)]({'options':{..._0x2144b0,..._0x3d80c8},'args':[_0x1995b4],'tdx':_0x5f22c7});process[_0x25a303(0x2be)](_0x39eb32);});const folderCmd=segmentCmd['command'](a2_0x3a562f(0x338),{'hidden':!![]})[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x232));folderCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x37e))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x35a))[a2_0x3a562f(0x3e1)](async(_0x4dd2c8,_0x5d4e53)=>{const _0x3da0b7=a2_0x3a562f,_0x48b74a=new SegmentFolderShowCommand(),_0x2de4a6=program[_0x3da0b7(0x26a)](),_0x17f387=await createTDXInstance(_0x2de4a6),_0x2e9d45=await _0x48b74a['run']({'options':{..._0x2de4a6,..._0x5d4e53},'args':[_0x4dd2c8],'tdx':_0x17f387});process[_0x3da0b7(0x2be)](_0x2e9d45);}),segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x256))['description']('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x3a562f(0x3e1)](async(_0x2630af,_0xf559c0)=>{const _0xbb83a2=a2_0x3a562f,_0x91f857=new SegmentSQLCommand(),_0x282a9e=program[_0xbb83a2(0x26a)](),_0x189735=await createTDXInstance(_0x282a9e),_0x9119e9=await _0x91f857[_0xbb83a2(0x36b)]({'options':{..._0x282a9e,..._0xf559c0},'args':_0x2630af?[_0x2630af]:[],'tdx':_0x189735});process['exit'](_0x9119e9);}),segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1b5))['description'](a2_0x3a562f(0x288))['action'](async(_0xdb10be,_0x162c1c)=>{const _0x2daf3a=a2_0x3a562f,_0x246c87=new SegmentFieldsCommand(),_0x5f397f=program[_0x2daf3a(0x26a)](),_0xbf2103=await createTDXInstance(_0x5f397f),_0x4ac114=await _0x246c87['run']({'options':{..._0x5f397f,..._0x162c1c},'args':_0xdb10be?[_0xdb10be]:[],'tdx':_0xbf2103});process[_0x2daf3a(0x2be)](_0x4ac114);}),segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3e9))[a2_0x3a562f(0x2cb)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x372),a2_0x3a562f(0x1bd))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x30a),a2_0x3a562f(0x2a1))[a2_0x3a562f(0x3e1)](async(_0x5a9460,_0x13b566)=>{const _0x2800a9=a2_0x3a562f,_0x4907ef=new SegmentPullCommand(),_0x177e1c=program[_0x2800a9(0x26a)](),_0x16255f=await createTDXInstance(_0x177e1c),_0x39d6b2=await _0x4907ef['run']({'options':{..._0x177e1c,..._0x13b566},'args':_0x5a9460?[_0x5a9460]:[],'tdx':_0x16255f});process[_0x2800a9(0x2be)](_0x39d6b2);}),segmentCmd[a2_0x3a562f(0x2c2)]('push\x20[parent_or_file]')['description'](a2_0x3a562f(0x2b4))[a2_0x3a562f(0x28e)]('-y,\x20--yes',a2_0x3a562f(0x1bd))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x30a),a2_0x3a562f(0x2a1))[a2_0x3a562f(0x28e)]('--delete',a2_0x3a562f(0x2a0))[a2_0x3a562f(0x3e1)](async(_0x48d13e,_0x533f3f)=>{const _0x34adaa=a2_0x3a562f,_0x24a044=new SegmentPushCommand(),_0x353544=program[_0x34adaa(0x26a)](),_0x4a2707=await createTDXInstance(_0x353544),_0x14a25f=await _0x24a044[_0x34adaa(0x36b)]({'options':{..._0x353544,..._0x533f3f},'args':_0x48d13e?[_0x48d13e]:[],'tdx':_0x4a2707});process[_0x34adaa(0x2be)](_0x14a25f);}),segmentCmd['command'](a2_0x3a562f(0x2c6))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x270))[a2_0x3a562f(0x3e1)](async(_0x4414a3,_0x1b76ed)=>{const _0x7404d3=a2_0x3a562f,_0x45db04=new SegmentValidateCommand(),_0x2b03a7=program[_0x7404d3(0x26a)](),_0x42ae5a=await createTDXInstance(_0x2b03a7),_0xa3e39=await _0x45db04[_0x7404d3(0x36b)]({'options':{..._0x2b03a7,..._0x1b76ed},'args':_0x4414a3?[_0x4414a3]:[],'tdx':_0x42ae5a});process[_0x7404d3(0x2be)](_0xa3e39);}),segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3ed),{'hidden':!![]})['description'](a2_0x3a562f(0x361))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d5),'Segment\x20description')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x360),a2_0x3a562f(0x24f))[a2_0x3a562f(0x28e)]('--rule-file\x20<file>',a2_0x3a562f(0x295))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x364),a2_0x3a562f(0x1c8))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x312),a2_0x3a562f(0x29b))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2bc),a2_0x3a562f(0x390))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3a6),'Skip\x20population\x20counting')['action'](async(_0x4a9488,_0x252270)=>{const _0xc84ed9=a2_0x3a562f,_0x585b3d=new SegmentCreateCommand(),_0xad1ad4=program[_0xc84ed9(0x26a)](),_0x13e0fa=await createTDXInstance(_0xad1ad4),_0x3ab33d=await _0x585b3d[_0xc84ed9(0x36b)]({'options':{..._0xad1ad4,..._0x252270},'args':[_0x4a9488],'tdx':_0x13e0fa});process['exit'](_0x3ab33d);}),segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x335),{'hidden':!![]})['description']('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3c7),a2_0x3a562f(0x2ef))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d5),a2_0x3a562f(0x36a))['option'](a2_0x3a562f(0x360),a2_0x3a562f(0x362))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x273),a2_0x3a562f(0x27d))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x364),'Move\x20to\x20folder')['option'](a2_0x3a562f(0x312),a2_0x3a562f(0x29b))['action'](async(_0x1cd5ea,_0xbbc3d0)=>{const _0x29e49c=a2_0x3a562f,_0x38bf04=new SegmentUpdateCommand(),_0x54f940=program[_0x29e49c(0x26a)](),_0x3e2179=await createTDXInstance(_0x54f940),_0x1c132e=await _0x38bf04[_0x29e49c(0x36b)]({'options':{..._0x54f940,..._0xbbc3d0},'args':[_0x1cd5ea],'tdx':_0x3e2179});process[_0x29e49c(0x2be)](_0x1c132e);});const parentCmd=segmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x208),{'hidden':!![]})[a2_0x3a562f(0x2cb)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x356218,_0xa94bd0)=>{const _0x30742=a2_0x3a562f,_0x11fee7=new ParentSegmentListCommand(),_0x1526ab=program['opts'](),_0x35224e=await createTDXInstance(_0x1526ab),_0x390059=await _0x11fee7[_0x30742(0x36b)]({'options':{..._0x1526ab,..._0xa94bd0},'args':_0x356218?[_0x356218]:[],'tdx':_0x35224e});process[_0x30742(0x2be)](_0x390059);};parentCmd[a2_0x3a562f(0x2c2)]('list\x20[pattern]')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x2d5))[a2_0x3a562f(0x3e1)](parentListAction),segmentCmd[a2_0x3a562f(0x2c2)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x3a562f(0x2cb)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')['action'](parentListAction),parentCmd['command'](a2_0x3a562f(0x380))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1ea))[a2_0x3a562f(0x28e)]('-o,\x20--output\x20<file>',a2_0x3a562f(0x3d9))['option']('-y,\x20--yes',a2_0x3a562f(0x298))[a2_0x3a562f(0x3e1)](async(_0x2a9cc3,_0x201f96)=>{const _0x426963=a2_0x3a562f,_0x128e30=new ParentSegmentPullCommand(),_0x3c6a19=program[_0x426963(0x26a)](),_0x2e2ce6=await createTDXInstance(_0x3c6a19),_0x5a96f9=await _0x128e30[_0x426963(0x36b)]({'options':{..._0x3c6a19,..._0x201f96},'args':_0x2a9cc3?[_0x2a9cc3]:[],'tdx':_0x2e2ce6});process[_0x426963(0x2be)](_0x5a96f9);}),parentCmd['command'](a2_0x3a562f(0x23a))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3f2))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x372),'Skip\x20confirmation\x20prompt')[a2_0x3a562f(0x3e1)](async(_0x4fc59f,_0x4dd73d)=>{const _0x537b70=a2_0x3a562f,_0x3f2635=new ParentSegmentPushCommand(),_0x2c47cb=program[_0x537b70(0x26a)](),_0x5497d3=await createTDXInstance(_0x2c47cb),_0x54de17=await _0x3f2635[_0x537b70(0x36b)]({'options':{..._0x2c47cb,..._0x4dd73d},'args':_0x4fc59f?[_0x4fc59f]:[],'tdx':_0x5497d3});process[_0x537b70(0x2be)](_0x54de17);}),parentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x369))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3d7),a2_0x3a562f(0x38a))['option']('--attribute\x20[name]',a2_0x3a562f(0x2fb))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2c5),a2_0x3a562f(0x36f))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x382),a2_0x3a562f(0x261))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x363),a2_0x3a562f(0x3e6),a2_0x3a562f(0x3a0))['action'](async(_0x2fe35a,_0xd9254c)=>{const _0x10ebd2=a2_0x3a562f,_0x2ea92f=new ParentSegmentValidateCommand(),_0x95611e=program[_0x10ebd2(0x26a)](),_0x6d21bd=await createTDXInstance(_0x95611e),_0x3281eb=await _0x2ea92f['run']({'options':{..._0x95611e,..._0xd9254c},'args':_0x2fe35a?[_0x2fe35a]:[],'tdx':_0x6d21bd});process['exit'](_0x3281eb);}),parentCmd['command']('preview\x20[file]')[a2_0x3a562f(0x2cb)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x3a562f(0x28e)]('--master',a2_0x3a562f(0x264))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x36c),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2c5),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x3a562f(0x28e)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x3a562f(0x363),a2_0x3a562f(0x3e6),'-1d')[a2_0x3a562f(0x3e1)](async(_0x1bbe27,_0x4194e8)=>{const _0x181b26=a2_0x3a562f,_0x3b2bd3=new ParentSegmentPreviewCommand(),_0x30caed=program['opts'](),_0x14f10a=await createTDXInstance(_0x30caed),_0x2a668f=await _0x3b2bd3[_0x181b26(0x36b)]({'options':{..._0x30caed,..._0x4194e8},'args':_0x1bbe27?[_0x1bbe27]:[],'tdx':_0x14f10a});process[_0x181b26(0x2be)](_0x2a668f);}),parentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x279))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x392))['option'](a2_0x3a562f(0x372),a2_0x3a562f(0x298))[a2_0x3a562f(0x3e1)](async(_0x1fa7d4,_0x3c9dfe)=>{const _0xd80cbc=a2_0x3a562f,_0x2d2c1d=new ParentSegmentRunCommand(),_0xdfa2a5=program[_0xd80cbc(0x26a)](),_0x42147b=await createTDXInstance(_0xdfa2a5),_0x375e3b=await _0x2d2c1d[_0xd80cbc(0x36b)]({'options':{..._0xdfa2a5,..._0x3c9dfe},'args':_0x1fa7d4?[_0x1fa7d4]:[],'tdx':_0x42147b});process['exit'](_0x375e3b);});const parentSegmentCmd=program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3a8))['alias']('ps')['description']('Parent\x20segment\x20management');parentSegmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x320))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x2d5))[a2_0x3a562f(0x3e1)](parentListAction),parentSegmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x380))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x316))['option'](a2_0x3a562f(0x277),'Output\x20file\x20path')[a2_0x3a562f(0x28e)]('-y,\x20--yes',a2_0x3a562f(0x298))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x23c),a2_0x3a562f(0x30b))[a2_0x3a562f(0x3e1)](async(_0x3efee8,_0x14cf8a)=>{const _0x38118d=a2_0x3a562f,_0x1bb366=new ParentSegmentPullCommand(),_0xbf947=program['opts'](),_0x51c98e=await createTDXInstance(_0xbf947),_0x3f8697=await _0x1bb366[_0x38118d(0x36b)]({'options':{..._0xbf947,..._0x14cf8a},'args':_0x3efee8?[_0x3efee8]:[],'tdx':_0x51c98e});process['exit'](_0x3f8697);}),parentSegmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x377))['description'](a2_0x3a562f(0x308))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x372),'Skip\x20confirmation\x20prompt')[a2_0x3a562f(0x3e1)](async(_0x42d844,_0x4132e9)=>{const _0x44f8e0=a2_0x3a562f,_0x3cae67=new ParentSegmentPushCommand(),_0x497149=program[_0x44f8e0(0x26a)](),_0x4ba1d0=await createTDXInstance(_0x497149),_0x4dbc05=await _0x3cae67['run']({'options':{..._0x497149,..._0x4132e9},'args':_0x42d844?[_0x42d844]:[],'tdx':_0x4ba1d0});process[_0x44f8e0(0x2be)](_0x4dbc05);}),parentSegmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x37d))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x396))[a2_0x3a562f(0x28e)]('--master',a2_0x3a562f(0x38a))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x36c),a2_0x3a562f(0x2fb))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2c5),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x382),a2_0x3a562f(0x261))['option'](a2_0x3a562f(0x363),a2_0x3a562f(0x3e6),a2_0x3a562f(0x3a0))[a2_0x3a562f(0x3e1)](async(_0x192aea,_0x42b063)=>{const _0x2b08f8=a2_0x3a562f,_0xe36a9=new ParentSegmentValidateCommand(),_0x279226=program[_0x2b08f8(0x26a)](),_0x215d4e=await createTDXInstance(_0x279226),_0x45f836=await _0xe36a9[_0x2b08f8(0x36b)]({'options':{..._0x279226,..._0x42b063},'args':_0x192aea?[_0x192aea]:[],'tdx':_0x215d4e});process['exit'](_0x45f836);}),parentSegmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1fe))['description'](a2_0x3a562f(0x305))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3d7),'Show\x20master\x20table\x20sample\x20data')['option'](a2_0x3a562f(0x36c),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2c5),a2_0x3a562f(0x2f9))[a2_0x3a562f(0x28e)]('--enriched',a2_0x3a562f(0x352))[a2_0x3a562f(0x28e)]('--interval\x20<range>',a2_0x3a562f(0x3e6),a2_0x3a562f(0x3a0))[a2_0x3a562f(0x3e1)](async(_0x59dc52,_0xbfe293)=>{const _0x16c3db=a2_0x3a562f,_0x1fd7b9=new ParentSegmentPreviewCommand(),_0x17b7f5=program[_0x16c3db(0x26a)](),_0x3e2f26=await createTDXInstance(_0x17b7f5),_0x23a102=await _0x1fd7b9[_0x16c3db(0x36b)]({'options':{..._0x17b7f5,..._0xbfe293},'args':_0x59dc52?[_0x59dc52]:[],'tdx':_0x3e2f26});process[_0x16c3db(0x2be)](_0x23a102);}),parentSegmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x279))[a2_0x3a562f(0x2cb)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x372),a2_0x3a562f(0x298))['action'](async(_0x487d53,_0xcad59e)=>{const _0x5b0bf7=a2_0x3a562f,_0x531b48=new ParentSegmentRunCommand(),_0xa37999=program['opts'](),_0x5b6e82=await createTDXInstance(_0xa37999),_0x1990bf=await _0x531b48[_0x5b0bf7(0x36b)]({'options':{..._0xa37999,..._0xcad59e},'args':_0x487d53?[_0x487d53]:[],'tdx':_0x5b6e82});process[_0x5b0bf7(0x2be)](_0x1990bf);}),parentSegmentCmd['command'](a2_0x3a562f(0x28b))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x3a562f(0x317),a2_0x3a562f(0x290))[a2_0x3a562f(0x28e)]('--jsonl',a2_0x3a562f(0x2ae))['action'](async(_0x26cbfb,_0x23ecb6)=>{const _0x2b575e=a2_0x3a562f,_0x5a0ec9=new ParentSegmentFieldsCommand(),_0x4c63c8=program['opts'](),_0x2edc91=await createTDXInstance(_0x4c63c8),_0x52ed77=await _0x5a0ec9[_0x2b575e(0x36b)]({'options':{..._0x4c63c8,..._0x23ecb6},'args':_0x26cbfb?[_0x26cbfb]:[],'tdx':_0x2edc91});process[_0x2b575e(0x2be)](_0x52ed77);}),parentSegmentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x39a))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x35c))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x24e),a2_0x3a562f(0x2ca))['option'](a2_0x3a562f(0x317),a2_0x3a562f(0x290))[a2_0x3a562f(0x28e)]('--jsonl',a2_0x3a562f(0x2ae))[a2_0x3a562f(0x3e1)](async(_0x1eb853,_0x2b6873)=>{const _0x30e0b5=a2_0x3a562f,_0x5845f4=new ParentSegmentViewCommand(),_0x44e4d2=program[_0x30e0b5(0x26a)](),_0x403f4c=await createTDXInstance(_0x44e4d2),_0x37de00=await _0x5845f4[_0x30e0b5(0x36b)]({'options':{..._0x44e4d2,..._0x2b6873},'args':_0x1eb853?[_0x1eb853]:[],'tdx':_0x403f4c});process[_0x30e0b5(0x2be)](_0x37de00);}),parentSegmentCmd[a2_0x3a562f(0x2c2)]('desc\x20[name]')[a2_0x3a562f(0x2cb)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('--json','Output\x20as\x20JSON')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3be),a2_0x3a562f(0x2ae))['action'](async(_0x1dd89a,_0xc91316)=>{const _0x3f846f=a2_0x3a562f,_0x3586c2=new ParentSegmentDescCommand(),_0x294087=program[_0x3f846f(0x26a)](),_0x1421a2=await createTDXInstance(_0x294087),_0x1dba69=await _0x3586c2[_0x3f846f(0x36b)]({'options':{..._0x294087,..._0xc91316},'args':_0x1dd89a?[_0x1dd89a]:[],'tdx':_0x1421a2});process[_0x3f846f(0x2be)](_0x1dba69);}),parentSegmentCmd[a2_0x3a562f(0x2c2)]('sql\x20[name]')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1c5))['option'](a2_0x3a562f(0x317),a2_0x3a562f(0x290))[a2_0x3a562f(0x28e)]('--jsonl',a2_0x3a562f(0x2ae))['action'](async(_0x32eb32,_0x477c58)=>{const _0x1e90b1=a2_0x3a562f,_0x19557d=new ParentSegmentSQLCommand(),_0x5d3e45=program[_0x1e90b1(0x26a)](),_0x44678e=await createTDXInstance(_0x5d3e45),_0x2372eb=await _0x19557d['run']({'options':{..._0x5d3e45,..._0x477c58},'args':_0x32eb32?[_0x32eb32]:[],'tdx':_0x44678e});process[_0x1e90b1(0x2be)](_0x2372eb);}),parentSegmentCmd[a2_0x3a562f(0x2c2)]('show\x20[name]')[a2_0x3a562f(0x2cb)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('--limit\x20<n>',a2_0x3a562f(0x1c3))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x317),a2_0x3a562f(0x290))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3be),a2_0x3a562f(0x2ae))[a2_0x3a562f(0x3e1)](async(_0x64fc99,_0x4077cd)=>{const _0x4bf955=a2_0x3a562f,_0xd0c9d4=new ParentSegmentShowCommand(),_0x206d31=program['opts'](),_0x281434=await createTDXInstance(_0x206d31),_0x59fd6a=await _0xd0c9d4['run']({'options':{..._0x206d31,..._0x4077cd},'args':_0x64fc99?[_0x64fc99]:[],'tdx':_0x281434});process[_0x4bf955(0x2be)](_0x59fd6a);}),parentSegmentCmd['command'](a2_0x3a562f(0x3d4))[a2_0x3a562f(0x2cb)]('Set\x20or\x20show\x20parent\x20segment\x20context')['action'](async(_0x7c176,_0x525ac0)=>{const _0x27b07a=a2_0x3a562f,_0x2c6d7e=new UseCommand(),_0x447d14=program['opts'](),_0x28456e=_0x7c176?['parent_segment',_0x7c176]:[],_0x267418=await _0x2c6d7e['run']({'options':{..._0x447d14,..._0x525ac0},'args':_0x28456e,'tdx':null});process[_0x27b07a(0x2be)](_0x267418);}),parentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3c5))['description']('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3a562f(0x259)]('--database\x20<db>',a2_0x3a562f(0x1be))[a2_0x3a562f(0x259)](a2_0x3a562f(0x30e),a2_0x3a562f(0x351))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d5),'Parent\x20segment\x20description')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3c6),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2ad),a2_0x3a562f(0x1c9))[a2_0x3a562f(0x28e)]('--timezone\x20<tz>',a2_0x3a562f(0x2f6))['option'](a2_0x3a562f(0x2fd),'Attributes\x20as\x20JSON\x20string')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x319),a2_0x3a562f(0x2fa))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1e2),'Behaviors\x20as\x20JSON\x20string')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x314),a2_0x3a562f(0x2a3))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x366),a2_0x3a562f(0x348))[a2_0x3a562f(0x28e)]('--customer-group-file\x20<file>',a2_0x3a562f(0x24b))[a2_0x3a562f(0x3e1)](async(_0x4eb28a,_0x14e66d)=>{const _0x4ddf25=a2_0x3a562f,_0x4c51f0=new ParentSegmentCreateCommand(),_0x1e8e47=program[_0x4ddf25(0x26a)](),_0x4d7314=await createTDXInstance(_0x1e8e47),_0x6bc5c2=await _0x4c51f0['run']({'options':{..._0x1e8e47,..._0x14e66d},'args':[_0x4eb28a],'tdx':_0x4d7314});process[_0x4ddf25(0x2be)](_0x6bc5c2);}),parentCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x296))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x21c))[a2_0x3a562f(0x28e)]('--description\x20<text>',a2_0x3a562f(0x36a))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3c6),a2_0x3a562f(0x276))['option'](a2_0x3a562f(0x2ad),a2_0x3a562f(0x3f3))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x237),a2_0x3a562f(0x31a))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x34e),a2_0x3a562f(0x2cc))[a2_0x3a562f(0x28e)]('--add-attributes-file\x20<file>','Add\x20attributes\x20from\x20JSON\x20file')[a2_0x3a562f(0x28e)]('--add-behaviors\x20<json>',a2_0x3a562f(0x1d9))['option'](a2_0x3a562f(0x249),a2_0x3a562f(0x398))[a2_0x3a562f(0x3e1)](async(_0x3bf464,_0x39878d)=>{const _0x27515=a2_0x3a562f,_0x19e14b=new ParentSegmentUpdateCommand(),_0x5439c6=program[_0x27515(0x26a)](),_0x190175=await createTDXInstance(_0x5439c6),_0x32dcb4=await _0x19e14b['run']({'options':{..._0x5439c6,..._0x39878d},'args':[_0x3bf464],'tdx':_0x190175});process['exit'](_0x32dcb4);}),folderCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2a4))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x381))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d5),a2_0x3a562f(0x2eb))[a2_0x3a562f(0x28e)]('--parent-folder\x20<name>',a2_0x3a562f(0x39c))[a2_0x3a562f(0x3e1)](async(_0x1e7db9,_0x1be5ac,_0x29c2f7)=>{const _0x58ff78=a2_0x3a562f,_0x382f68=new SegmentFolderCreateCommand(),_0x299700=program[_0x58ff78(0x26a)](),_0x1c04bf=await createTDXInstance(_0x299700),_0x5b71c5=await _0x382f68['run']({'options':{..._0x299700,..._0x29c2f7},'args':[_0x1e7db9,_0x1be5ac],'tdx':_0x1c04bf});process[_0x58ff78(0x2be)](_0x5b71c5);}),program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x399))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1b1))[a2_0x3a562f(0x3e1)](async(_0x334ecd,_0x3626d5)=>{const _0x2caad0=a2_0x3a562f,_0x53cc4a=new ActivationsCommand(),_0xbdcc28=program[_0x2caad0(0x26a)](),_0x38f83c=await createTDXInstance(_0xbdcc28),_0x36f492=await _0x53cc4a['run']({'options':{..._0xbdcc28,..._0x3626d5},'args':[_0x334ecd],'tdx':_0x38f83c});process[_0x2caad0(0x2be)](_0x36f492);});const workflowCmd=program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1e7))[a2_0x3a562f(0x2a2)]('wf')[a2_0x3a562f(0x2cb)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x3a562f(0x2c2)]('project')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x302)),wfProjectListAction=async(_0x5c9d8e,_0x4ea45c)=>{const _0x3ad2c5=a2_0x3a562f,_0x8c07ce=new WorkflowProjectsCommand(),_0x59dcc6=program[_0x3ad2c5(0x26a)](),_0x3e0a6f=await createTDXInstance(_0x59dcc6),_0x2ec3ac=await _0x8c07ce[_0x3ad2c5(0x36b)]({'options':{..._0x59dcc6,..._0x4ea45c},'args':_0x5c9d8e?[_0x5c9d8e]:[],'tdx':_0x3e0a6f});process[_0x3ad2c5(0x2be)](_0x2ec3ac);};wfProjectCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x320))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3ef))[a2_0x3a562f(0x3e1)](wfProjectListAction),workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1e4))['description'](a2_0x3a562f(0x2c7))[a2_0x3a562f(0x3e1)](wfProjectListAction);function a2_0x34cd(){const _0x2e0a22=['format','show\x20[table]','--stage\x20<name>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Filtering\x20rule\x20from\x20JSON\x20file','update\x20<name>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Skip\x20confirmation\x20prompt','Show\x20email\x20template\x20details','describe\x20[table]','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Custom\x20revision\x20name\x20(default:\x20timestamp)','argv','schema\x20<type>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','alias','Behaviors\x20from\x20JSON\x20file','create\x20<parent_name>\x20<folder_name>','launch\x20<name-or-id>','--model\x20<name>','settings\x20<type>','sonnet','length','Agent\x20name','-r,\x20--recursive','--color','--schedule-option\x20<value>','Output\x20as\x20JSON\x20Lines','Revision\x20name\x20(default:\x20timestamp)','Directory\x20does\x20not\x20exist:\x20','repeat','-H,\x20--header\x20<header>','--attempt-id\x20<id>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Continue\x20most\x20recent\x20conversation','get','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','show\x20<agent-name>','Editor\x20type','--session-time\x20<time>','Set\x20operation\x20timeout\x20in\x20seconds','--invisible','Starter\x20message','exit','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','isDirectory','command','auth','Show\x20segment\x20details\x20(alias\x20for\x20view)','--behavior\x20[name]','validate\x20[target]','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','summary','claude-4.5-sonnet','Open\x20parent\x20segment\x20in\x20web\x20browser','description','Add\x20attributes\x20as\x20JSON\x20string','result\x20<job-id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','claude\x20[args...]','[options]\x20--\x20[claude-code-args...]','--agent\x20<ref>','Push\x20without\x20confirmation','set\x20<key=value>','Plaintext\x20template\x20content','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','attempt','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Campaign\x20description','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','--data\x20<data>','options','Job\x20management\x20commands','jobs','-o,\x20--output\x20<folder>','System\x20prompt/instructions\x20(default:\x20empty)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','CDP\x20Journey\x20Orchestration\x20commands','--yes','query\x20[sql]','Maximum\x20recursion\x20depth\x20(default:\x2010)','--format\x20<format>','Commands:','List\x20all\x20data\x20connections','show\x20<name-or-id>','Folder\x20description','join','--parent-segment\x20<name>','-d,\x20--database\x20<name>','New\x20segment\x20name','Email\x20sender\x20ID\x20for\x20delivery','_hidden','attempts\x20[project]','log','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','required','Timezone\x20(e.g.,\x20America/Los_Angeles)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','[action]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Attributes\x20from\x20JSON\x20file','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','parse','--attributes\x20<json>','set\x20<args...>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','-f,\x20--file\x20<path>','Change\x20to\x20directory\x20before\x20executing\x20command','Workflow\x20project\x20management','table','map','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','delete\x20<agent-name>','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--params\x20<json>','--dry-run','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','argumentTerm','Show\x20connection\x20details\x20by\x20name','--table\x20<table>','--catalog\x20<catalog>','581239kbiBrX','LLM\x20project\x20management','--kind\x20<type>','Workspace\x20management','--behaviors-file\x20<file>','Preview\x20changes\x20without\x20writing\x20files','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--json','logLevel','--attributes-file\x20<file>','Updated\x20timezone','Resume\x20from\x20specific\x20task','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','isTTY','--clear','attempt:','list\x20[pattern]','delete\x20<args...>','jsonl','--default','use\x20<project-name>','timeline\x20[project.workflow]','657xsGmZL','Preview\x20operation\x20without\x20executing','Show\x20stats\x20for\x20specific\x20stage','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','-X,\x20--method\x20<method>','resume\x20<name-or-id>','Output\x20directory','\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','flatMap','chdir','\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','--start-at\x20<datetime>','Create\x20an\x20email\x20template','Clear\x20session\x20context','update\x20<segment_name>','New\x20campaign\x20name','use\x20[resource]\x20[value]','folder','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Unknown\x20action:\x20','Describe\x20table\x20schema','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','subcommandDescription','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Launch\x20a\x20campaign','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','argument','port','stats\x20<name-or-path>','List\x20available\x20connector\x20types','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Customer\x20group\x20as\x20JSON\x20string','--html\x20<html>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','clone\x20[source]','--add-attributes\x20<json>','desc','--plaintext\x20<text>','Master\x20table\x20name','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--revision\x20<revision>','update\x20<name-or-id>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Delete\x20a\x20campaign','agent','show\x20<name>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Remove\x20a\x20profile','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','GET','Overwrite\x20local\x20changes\x20without\x20confirmation','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--rule\x20<json>','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','--interval\x20<range>','--folder\x20<name>','--to\x20<timestamp>','--customer-group\x20<json>','212661TKjmot','Force\x20retry\x20even\x20if\x20not\x20failed','validate\x20[file]','Updated\x20description','run','--attribute\x20[name]','List\x20journeys\x20in\x20current\x20context','Campaign\x20management','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','-y,\x20--yes','--starter-message\x20<text>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','-C,\x20--directory\x20<path>','Read\x20SQL\x20query\x20from\x20file','push\x20[name]','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','clone\x20[source-dir]','Include\x20subtasks\x20in\x20tasks\x20output','statusline','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','validate\x20[name]','show\x20<folder_ref>','--json-columns\x20<cols>','pull\x20[name]','Create\x20segment\x20folder','--enriched','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','1662udPlJm','--last','INVALID_ARGUMENT','--include-stats','models','create\x20[name]','Show\x20only\x20master\x20table\x20validation','Task\x20name\x20for\x20logs\x20action','New\x20workspace\x20name','Usage:\x20','Reason\x20for\x20killing\x20the\x20attempt','Data\x20connection\x20management\x20(for\x20activations/exports)','Make\x20segment\x20invisible\x20(default:\x20visible)','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','-r,\x20--resume','Database\x20to\x20use\x20(overrides\x20context)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','gitRevision','Add\x20behaviors\x20from\x20JSON\x20file','activations\x20<segment_name>','view\x20[name]','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Parent\x20folder\x20name\x20for\x20nested\x20folders','4cYmiGd','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Show\x20agent\x20details','-1d','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','segment','-n,\x20--name\x20<name>','connection','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--no-count-population','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','parent-segment','show\x20<job-id>','Read\x20query\x20from\x20file','--email-sender-id\x20<id>','[attempt-id]','Resume\x20a\x20paused\x20campaign','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--from\x20<timestamp>','view\x20<name-or-path>','information_schema','Pull\x20specific\x20revision\x20(default:\x20latest)','--full','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','database','Campaign\x20type\x20(email\x20or\x20push)','Delete\x20an\x20agent','filter','List\x20all\x20users\x20in\x20the\x20account','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','kill\x20<job-id>','Workspace\x20name','--jsonl','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Show\x20campaign\x20details','padWidth','INFO','Open\x20journey\x20in\x20web\x20browser','Agent\x20description','create\x20<name>','--schedule-type\x20<type>','--name\x20<new_name>','Database\x20to\x20query\x20(default:\x20information_schema)','job','--prompt\x20<text>','clear','hidden','Show\x20job\x20details','--skip-validation','view\x20[segment_name]','--session\x20<id>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Authentication\x20management','workspace','use\x20[name]','journeys\x20[pattern]','Preview\x20changes\x20without\x20pushing','--master','Update\x20an\x20email\x20template','Output\x20file\x20path\x20(default:\x20<name>.yml)','4000','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','update\x20<agent-name>','Delete\x20an\x20LLM\x20project','Export\x20journey(s)\x20as\x20YAML\x20files','backup\x20<name>','action','Override\x20project\x20name','--resume-from\x20<task>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','push','--param\x20<key=value>','pull\x20[parent_or_file]','Workflow\x20session\x20management','Workspace\x20name\x20(required)','buildTime','create\x20<segment_name>','Resume\x20a\x20paused\x20journey','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--follow','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Updated\x20schedule\x20option','Remove\x20API\x20key\x20from\x20system\x20keychain','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--include-subtasks','user','Setup\x20API\x20key\x20authentication\x20interactively','outputHelp','tsv','Show\x20segment\x20schema\x20(column\x20types)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','configureHelp','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','error','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Request\x20body\x20as\x20JSON\x20string','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','optionTerm','--version','--limit\x20<number>','fields\x20[parent_name]','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','TRACE','unset\x20<resource>','--no-proxy','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Create\x20a\x20workspace','tasks','Skip\x20confirmation\x20prompts','Master\x20database\x20name','desc\x20[segment_name]','stderr','run\x20[workflow]','us01','Limit\x20number\x20of\x20rows','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Manage\x20workflow\x20project\x20secrets','72lEsqrM','Folder\x20name\x20for\x20organization','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Name\x20for\x20the\x20new\x20project\x20(required)','--debug','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','help','workflows\x20[project]','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--status\x20<status>','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','template','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--port\x20<number>','--description\x20<text>','Update\x20a\x20workspace','create','--timeout\x20<seconds>','Add\x20behaviors\x20as\x20JSON\x20string','--reason\x20<text>','profile','--segment\x20<path>','subcommandTerm','Skip\x20validation\x20of\x20.dig\x20files','5472782vHAOVN','Email\x20subject\x20template','\x20(resolved\x20to\x20','--behaviors\x20<json>','Interactive\x20chat\x20selector','projects\x20[pattern]','segments\x20[path]','--job-type\x20<type>','workflow','optionDescription','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','tdx','padEnd','Show\x20journey\x20details','--output\x20<file>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','status','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Pull\x20workflow\x20project\x20to\x20local\x20folder','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','catch','use\x20<path>','debug','set','addHelpText','isArray','Open\x20segment\x20in\x20web\x20browser','registeredArguments','list','Database\x20management\x20commands','preview\x20[name]','Project\x20description','delete\x20<project-name-or-id>','sessions\x20[project]','List\x20all\x20available\x20profiles','Email\x20template\x20management','--agent\x20<name>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','tdx\x20','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','parent','--editor-type\x20<type>','folders\x20<parent_name>','--description\x20<desc>','Enable\x20verbose\x20logging','--llm-proxy\x20[url]','Workflow\x20parameter\x20(repeatable)','list\x20[project]','4930OWKJZb','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','List\x20secret\x20keys\x20for\x20a\x20project','databases\x20[pattern]','--system-prompt\x20<text>','info\x20[segment_name]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Show\x20workspace\x20details','Start\x20a\x20new\x20chat\x20session','colorFn','AI-native\x20CLI\x20for\x20Treasure\x20Data','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--temperature\x20<n>','includes','Kill\x20a\x20job','List\x20jobs','-v,\x20--verbose',',\x20version\x20','Table\x20management\x20commands','--in\x20<database>','Include\x20execution\x20statistics','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Update\x20a\x20campaign','Create\x20a\x20new\x20profile','journey','--from-task\x20<task>','\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','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','--database\x20<name>','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','api\x20[endpoint]','[DEPRECATED]\x20Segment\x20folder\x20management','--workspace\x20<name>','37623641FRPAsU','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','after','--timezone\x20<tz>','Include\x20retried\x20attempts','--llm-project\x20<name>','push\x20[file]','6392104hlOFAP','-u,\x20--use','injectIntoOptions','135150Cjkxwy','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--include-retried','--type\x20<type>','-o,\x20--output\x20<dir>','HTML\x20template\x20content','User\x20management\x20commands','llm','-f,\x20--force','show\x20[segment_name]','--add-behaviors-file\x20<file>','Create\x20a\x20new\x20LLM\x20project','Customer\x20group\x20from\x20JSON\x20file','Clear\x20workflow\x20project\x20context','--name\x20<name>','-w,\x20--web','Filtering\x20rule\x20as\x20JSON\x20string','--tsv','Attempt\x20ID','preAction','--no-color','then','list\x20[path]','sql\x20[segment_name]','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','requiredOption','describe','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','logs','Workspace\x20description','session','--session-id\x20<id>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Resume\x20a\x20conversation\x20(shows\x20selector)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Show\x20master\x20table\x20sample\x20data','Create\x20a\x20new\x20campaign','hook','setup','directory','Pause\x20a\x20campaign','opts','Trino\x20catalog\x20(default:\x20td)','Include\x20retried\x20attempts\x20(for\x20list)','name','--force','allowExcessArguments','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','--rule-file\x20<file>','Path\x20is\x20not\x20a\x20directory:\x20','upload\x20[project-name-or-dir]','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','-o,\x20--output\x20<file>','--max-depth\x20<depth>','run\x20[name]','tables\x20[pattern]','-d,\x20--database\x20<database>','secrets','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','slice','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--name\x20<text>','Delete\x20an\x20email\x20template','commandUsage','--in\x20<name>','List\x20available\x20LLM\x20models','campaigns\x20[pattern]','--project\x20<name>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','DEBUG','remove\x20<name>','fields\x20[name]','templates\x20[pattern]','workspaces\x20[pattern]','option','delete\x20<name-or-id>','Output\x20as\x20JSON'];a2_0x34cd=function(){return _0x2e0a22;};return a2_0x34cd();}const wfWorkflowListAction=async(_0x1d1e1d,_0x10bce7)=>{const _0x751b11=a2_0x3a562f,_0x425c46=new WorkflowWorkflowsCommand(),_0x1ce738=program[_0x751b11(0x26a)](),_0x1780b8=await createTDXInstance(_0x1ce738),_0x5d4693=await _0x425c46[_0x751b11(0x36b)]({'options':{..._0x1ce738,..._0x10bce7},'args':_0x1d1e1d?[_0x1d1e1d]:[],'tdx':_0x1780b8});process[_0x751b11(0x2be)](_0x5d4693);};workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1ce))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x240))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x3a562f(0x25f))['description'](a2_0x3a562f(0x3ea)),wfSessionListAction=async(_0x2e953c,_0x28f2ea)=>{const _0x11ed93=a2_0x3a562f,_0x4fe491=new WorkflowSessionsCommand(),_0x5eb2e2=program[_0x11ed93(0x26a)](),_0xeca096=await createTDXInstance(_0x5eb2e2),_0x2e2237=await _0x4fe491[_0x11ed93(0x36b)]({'options':{..._0x5eb2e2,..._0x28f2ea},'args':_0x2e953c?[_0x2e953c]:[],'tdx':_0xeca096});process[_0x11ed93(0x2be)](_0x2e2237);};wfSessionCmd[a2_0x3a562f(0x2c2)]('list\x20[project]')['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d0),a2_0x3a562f(0x1c4))[a2_0x3a562f(0x28e)]('--from\x20<timestamp>',a2_0x3a562f(0x3ae))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x365),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3a562f(0x3e1)](wfSessionListAction),workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x201))['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option'](a2_0x3a562f(0x1d0),a2_0x3a562f(0x1c4))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3af),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x365),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3a562f(0x3e1)](wfSessionListAction);const wfAttemptListAction=async(_0xbddb52,_0x993b7a)=>{const _0x3a0671=a2_0x3a562f,_0x306989=new WorkflowAttemptsCommand(),_0x3d323c=program[_0x3a0671(0x26a)](),_0x3db2b3=await createTDXInstance(_0x3d323c),_0xaceb69=await _0x306989['run']({'options':{..._0x3d323c,..._0x993b7a},'args':_0xbddb52?[_0xbddb52]:[],'tdx':_0x3db2b3});process['exit'](_0xaceb69);},attemptCmd=workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2d6))[a2_0x3a562f(0x2cb)]('Workflow\x20attempt\x20management')[a2_0x3a562f(0x343)](a2_0x3a562f(0x3ac),a2_0x3a562f(0x251))['argument'](a2_0x3a562f(0x2f8),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x3a562f(0x343)]('[task-name]',a2_0x3a562f(0x38b))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3f6),a2_0x3a562f(0x37a))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1da),a2_0x3a562f(0x38e))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3e3),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x309),a2_0x3a562f(0x1ef))['option'](a2_0x3a562f(0x26e),a2_0x3a562f(0x368))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x241),a2_0x3a562f(0x26c))[a2_0x3a562f(0x3e1)](async(_0x140174,_0x5a9da1,_0x50509e,_0x203cf8)=>{const _0x9159f8=a2_0x3a562f;if(_0x140174==='list'){await wfAttemptListAction(_0x5a9da1,_0x203cf8);return;}if(!_0x140174){attemptCmd[_0x9159f8(0x1cd)]();return;}const _0x4f2be5=program['opts'](),_0xeaeb13=await createTDXInstance(_0x4f2be5);let _0x4708a8=0x0;if(!_0x5a9da1){const _0x239696=new WorkflowAttemptCommand();_0x4708a8=await _0x239696[_0x9159f8(0x36b)]({'options':{..._0x4f2be5,..._0x203cf8},'args':[_0x140174],'tdx':_0xeaeb13});}else{if(_0x5a9da1===_0x9159f8(0x25d)){const _0x5b1391=new WorkflowLogsCommand();_0x4708a8=await _0x5b1391[_0x9159f8(0x36b)]({'options':{..._0x4f2be5,..._0x203cf8},'args':_0x50509e?[_0x140174,_0x50509e]:[_0x140174],'tdx':_0xeaeb13});}else{if(_0x5a9da1===_0x9159f8(0x1bc)){const _0x4d4880=new WorkflowTasksCommand();_0x4708a8=await _0x4d4880[_0x9159f8(0x36b)]({'options':{..._0x4f2be5,..._0x203cf8},'args':[_0x140174],'tdx':_0xeaeb13});}else{if(_0x5a9da1==='kill'){const _0x2a9766=new WorkflowKillCommand();_0x4708a8=await _0x2a9766['run']({'options':{..._0x4f2be5,..._0x203cf8},'args':[_0x140174],'tdx':_0xeaeb13});}else{if(_0x5a9da1==='retry'){const _0x42e10c=new WorkflowRetryCommand();_0x4708a8=await _0x42e10c[_0x9159f8(0x36b)]({'options':{..._0x4f2be5,..._0x203cf8},'args':[_0x9159f8(0x31f)+_0x140174],'tdx':_0xeaeb13});}else console[_0x9159f8(0x3ff)](_0x9159f8(0x33b)+_0x5a9da1),console['error']('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x4708a8=0x1;}}}}process['exit'](_0x4708a8);});attemptCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x20f))[a2_0x3a562f(0x2cb)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')['option'](a2_0x3a562f(0x241),a2_0x3a562f(0x238))[a2_0x3a562f(0x3e1)](wfAttemptListAction),workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2f2))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3a1))['option'](a2_0x3a562f(0x241),a2_0x3a562f(0x238))[a2_0x3a562f(0x3e1)](wfAttemptListAction),workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x325))[a2_0x3a562f(0x2cb)]('Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3f0),'Follow/watch\x20timeline\x20for\x20running\x20attempts')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x260),a2_0x3a562f(0x339))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2b3),'Show\x20timeline\x20for\x20specific\x20attempt')[a2_0x3a562f(0x3e1)](async(_0x5c2946,_0x58332b)=>{const _0x5302ff=a2_0x3a562f,_0x1e6351=new WorkflowTimelineCommand(),_0x2916c0=program['opts'](),_0x4e65c8=await createTDXInstance(_0x2916c0),_0x298bdc=await _0x1e6351[_0x5302ff(0x36b)]({'options':{..._0x2916c0,..._0x58332b},'args':_0x5c2946?[_0x5c2946]:[],'tdx':_0x4e65c8});process[_0x5302ff(0x2be)](_0x298bdc);}),workflowCmd[a2_0x3a562f(0x2c2)]('retry\x20<session-id>')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1cc))['option'](a2_0x3a562f(0x22a),a2_0x3a562f(0x31b))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x309),a2_0x3a562f(0x3f5))[a2_0x3a562f(0x3e1)](async(_0x187184,_0xc0c360)=>{const _0x11a9c9=a2_0x3a562f,_0x58cb36=new WorkflowRetryCommand(),_0xa91be1=program[_0x11a9c9(0x26a)](),_0x3469fe=await createTDXInstance(_0xa91be1),_0x99676e=await _0x58cb36[_0x11a9c9(0x36b)]({'options':{..._0xa91be1,..._0xc0c360},'args':[_0x187184],'tdx':_0x3469fe});process[_0x11a9c9(0x2be)](_0x99676e);}),workflowCmd['command'](a2_0x3a562f(0x1c1))['description'](a2_0x3a562f(0x39e))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3e8),a2_0x3a562f(0x20e),(_0x134740,_0x56de98=[])=>[..._0x56de98,_0x134740],[])[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2ba),a2_0x3a562f(0x257))['action'](async(_0x2c0fba,_0x31f34c)=>{const _0x14d54f=a2_0x3a562f,_0xbcafa4=new WorkflowRunCommand(),_0x1ccd10=program['opts'](),_0x2144a3=await createTDXInstance(_0x1ccd10),_0x5e9c02=await _0xbcafa4[_0x14d54f(0x36b)]({'options':{..._0x1ccd10,..._0x31f34c},'args':_0x2c0fba?[_0x2c0fba]:[],'tdx':_0x2144a3});process[_0x14d54f(0x2be)](_0x5e9c02);}),workflowCmd[a2_0x3a562f(0x2c2)]('download\x20<project-name>\x20[output-dir]')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x23f))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x353),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x3a562f(0x3e1)](async(_0x1ff2fb,_0x18509c,_0x3aad11)=>{const _0x58bc51=a2_0x3a562f,_0x5dab2e=new WorkflowDownloadCommand(),_0x1a9fd8=program['opts'](),_0x300f83=await createTDXInstance(_0x1a9fd8),_0x67149=await _0x5dab2e[_0x58bc51(0x36b)]({'options':{..._0x1a9fd8,..._0x3aad11},'args':[_0x1ff2fb,_0x18509c||'.'],'tdx':_0x300f83});process[_0x58bc51(0x2be)](_0x67149);}),workflowCmd[a2_0x3a562f(0x2c2)]('pull\x20<project>\x20[target-dir]')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1f2))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x353),a2_0x3a562f(0x3b2))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x30a),a2_0x3a562f(0x315))[a2_0x3a562f(0x28e)]('-y,\x20--yes',a2_0x3a562f(0x298))[a2_0x3a562f(0x3e1)](async(_0x18ee8e,_0xc4d727,_0x10716b)=>{const _0x2cfac8=a2_0x3a562f,_0x549048=new WorkflowPullCommand(),_0x1b4e4f=program['opts'](),_0x415b20=await createTDXInstance(_0x1b4e4f),_0x19115e=await _0x549048[_0x2cfac8(0x36b)]({'options':{..._0x1b4e4f,..._0x10716b},'args':_0xc4d727?[_0x18ee8e,_0xc4d727]:[_0x18ee8e],'tdx':_0x415b20});process[_0x2cfac8(0x2be)](_0x19115e);}),workflowCmd[a2_0x3a562f(0x2c2)]('push\x20[source-dir]')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x2e2))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x353),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x30a),a2_0x3a562f(0x3d6))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3ce),a2_0x3a562f(0x1de))['option'](a2_0x3a562f(0x372),a2_0x3a562f(0x298))[a2_0x3a562f(0x3e1)](async(_0x4291ab,_0x5e1d8c)=>{const _0x20e36a=a2_0x3a562f,_0x1a624b=new WorkflowPushCommand(),_0x499962=program[_0x20e36a(0x26a)](),_0x2bf79e=await createTDXInstance(_0x499962),_0x1381f1=await _0x1a624b[_0x20e36a(0x36b)]({'options':{..._0x499962,..._0x5e1d8c},'args':_0x4291ab?[_0x4291ab]:[],'tdx':_0x2bf79e});process[_0x20e36a(0x2be)](_0x1381f1);}),workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x275))['description'](a2_0x3a562f(0x22e))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x24d),a2_0x3a562f(0x3e2))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x353),a2_0x3a562f(0x2af))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3ce),a2_0x3a562f(0x1de))[a2_0x3a562f(0x3e1)](async(_0x7cd099,_0x30bd81)=>{const _0x26163a=a2_0x3a562f,_0x8a892b=new WorkflowUploadCommand(),_0x525aed=program['opts'](),_0x50eeb5=await createTDXInstance(_0x525aed),_0x2804b5=await _0x8a892b[_0x26163a(0x36b)]({'options':{..._0x525aed,..._0x30bd81},'args':_0x7cd099?[_0x7cd099]:[],'tdx':_0x50eeb5});process[_0x26163a(0x2be)](_0x2804b5);}),workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x379))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x32a))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x24d),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x353),a2_0x3a562f(0x29c))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x30a),'Preview\x20without\x20creating\x20the\x20project')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3ce),'Skip\x20validation\x20of\x20.dig\x20files')['option'](a2_0x3a562f(0x372),a2_0x3a562f(0x298))['action'](async(_0x18fbdd,_0x4a4930)=>{const _0x889679=a2_0x3a562f,_0x409305=new WorkflowCloneCommand(),_0x342eb8=program[_0x889679(0x26a)](),_0x45422a=await createTDXInstance(_0x342eb8),_0x26de80=await _0x409305[_0x889679(0x36b)]({'options':{..._0x342eb8,..._0x4a4930},'args':_0x18fbdd?[_0x18fbdd]:[],'tdx':_0x45422a});process[_0x889679(0x2be)](_0x26de80);}),workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x200))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x34a))['action'](async(_0x2bafdd,_0x13ff8a)=>{const _0x14f198=a2_0x3a562f,_0x4dcc9e=new WorkflowDeleteCommand(),_0x55ef53=program[_0x14f198(0x26a)](),_0x39fdcf=await createTDXInstance(_0x55ef53),_0x1037ca=await _0x4dcc9e[_0x14f198(0x36b)]({'options':{..._0x55ef53,..._0x13ff8a},'args':[_0x2bafdd],'tdx':_0x39fdcf});process['exit'](_0x1037ca);}),workflowCmd[a2_0x3a562f(0x2c2)]('use\x20[project]')['description']('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x31e),a2_0x3a562f(0x24c))[a2_0x3a562f(0x3e1)](async(_0xa4c13d,_0x2a6825)=>{const _0x140b4b=a2_0x3a562f,_0x57de85=new WorkflowUseCommand(),_0x49ad09=program[_0x140b4b(0x26a)](),_0x3fb964=await createTDXInstance(_0x49ad09),_0x406280=await _0x57de85[_0x140b4b(0x36b)]({'options':{..._0x49ad09,..._0x2a6825},'args':_0xa4c13d?[_0xa4c13d]:[],'tdx':_0x3fb964});process[_0x140b4b(0x2be)](_0x406280);});const wfSecretsCmd=workflowCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x27c))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1c6));wfSecretsCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x20f))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x213))['action'](async(_0x32b498,_0x1c9d50)=>{const _0x1caeeb=a2_0x3a562f,_0x2b5c3c=new WorkflowSecretsListCommand(),_0x5fcbda=program[_0x1caeeb(0x26a)](),_0x225932=await createTDXInstance(_0x5fcbda),_0x445308=await _0x2b5c3c[_0x1caeeb(0x36b)]({'options':{..._0x5fcbda,..._0x1c9d50},'args':_0x32b498?[_0x32b498]:[],'tdx':_0x225932});process[_0x1caeeb(0x2be)](_0x445308);}),wfSecretsCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2fe))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1b6))['action'](async(_0x291722,_0x262a86)=>{const _0x164825=a2_0x3a562f,_0x450904=new WorkflowSecretsSetCommand(),_0x2cdda5=program[_0x164825(0x26a)](),_0x2deab0=await createTDXInstance(_0x2cdda5),_0x3d176b=await _0x450904[_0x164825(0x36b)]({'options':{..._0x2cdda5,..._0x262a86},'args':_0x291722,'tdx':_0x2deab0});process[_0x164825(0x2be)](_0x3d176b);}),wfSecretsCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x321))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3a7))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x372),'Skip\x20confirmation\x20prompt')[a2_0x3a562f(0x3e1)](async(_0x5e392d,_0x5b100f)=>{const _0x44c959=a2_0x3a562f,_0x5dc7ea=new WorkflowSecretsDeleteCommand(),_0x2b6b4d=program[_0x44c959(0x26a)](),_0xe510e0=await createTDXInstance(_0x2b6b4d),_0x3305e5=await _0x5dc7ea[_0x44c959(0x36b)]({'options':{..._0x2b6b4d,..._0x5b100f},'args':_0x5e392d,'tdx':_0xe510e0});process[_0x44c959(0x2be)](_0x3305e5);});const jobCmd=program['command'](a2_0x3a562f(0x3c9))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x2dd)),jobListAction=async _0x5bba43=>{const _0x17bcfd=a2_0x3a562f,_0x2688b4=new JobListCommand(),_0x14395f=program[_0x17bcfd(0x26a)](),_0x246f82=await createTDXInstance(_0x14395f),_0x44ce79=await _0x2688b4[_0x17bcfd(0x36b)]({'options':{..._0x14395f,..._0x5bba43},'args':[],'tdx':_0x246f82});process['exit'](_0x44ce79);};jobCmd[a2_0x3a562f(0x2c2)]('list')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x220))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d0),a2_0x3a562f(0x33e))[a2_0x3a562f(0x3e1)](jobListAction),program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2de),{'hidden':!![]})['description'](a2_0x3a562f(0x371))['option'](a2_0x3a562f(0x1d0),a2_0x3a562f(0x33e))[a2_0x3a562f(0x3e1)](jobListAction),jobCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3a9))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3cd))[a2_0x3a562f(0x3e1)](async(_0x5cd061,_0x122ee0)=>{const _0x21dac1=a2_0x3a562f,_0x2fbcd1=new JobShowCommand(),_0x1acab0=program[_0x21dac1(0x26a)](),_0x2b49a2=await createTDXInstance(_0x1acab0),_0x3f6ce9=await _0x2fbcd1[_0x21dac1(0x36b)]({'options':{..._0x1acab0,..._0x122ee0},'args':[_0x5cd061],'tdx':_0x2b49a2});process['exit'](_0x3f6ce9);}),jobCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3bc))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x21f))['action'](async(_0x4fbf90,_0x663c10)=>{const _0x5331fb=new JobKillCommand(),_0x321b44=program['opts'](),_0x5e8d98=await createTDXInstance(_0x321b44),_0x4c7380=await _0x5331fb['run']({'options':{..._0x321b44,..._0x663c10},'args':[_0x4fbf90],'tdx':_0x5e8d98});process['exit'](_0x4c7380);}),jobCmd[a2_0x3a562f(0x2c2)]('submit\x20[query]')[a2_0x3a562f(0x2cb)]('Submit\x20a\x20job')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1e6),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino')[a2_0x3a562f(0x28e)]('-f,\x20--file\x20<path>',a2_0x3a562f(0x3aa))['option'](a2_0x3a562f(0x22f),'Database\x20name\x20(default:\x20information_schema)',a2_0x3a562f(0x3b1))[a2_0x3a562f(0x3e1)](async(_0x1351de,_0x231af2)=>{const _0x2e4215=a2_0x3a562f,_0x49bc88=new JobSubmitCommand(),_0x1ce723=program[_0x2e4215(0x26a)](),_0x5a9c34=await createTDXInstance(_0x1ce723),_0x61f831=await _0x49bc88['run']({'options':{..._0x1ce723,..._0x231af2},'args':_0x1351de?[_0x1351de]:[],'tdx':_0x5a9c34});process[_0x2e4215(0x2be)](_0x61f831);}),jobCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2cd))[a2_0x3a562f(0x2cb)]('Get\x20job\x20results')[a2_0x3a562f(0x3e1)](async(_0x18dca9,_0x35ac0d)=>{const _0x3b066b=a2_0x3a562f,_0x39e828=new JobResultCommand(),_0x4171e8=program[_0x3b066b(0x26a)](),_0x55968e=await createTDXInstance(_0x4171e8),_0x1c2f2f=await _0x39e828[_0x3b066b(0x36b)]({'options':{..._0x4171e8,..._0x35ac0d},'args':[_0x18dca9],'tdx':_0x55968e});process[_0x3b066b(0x2be)](_0x1c2f2f);});const llmCmd=program['command'](a2_0x3a562f(0x246))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3dc));llmCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x324))[a2_0x3a562f(0x2cb)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x3a562f(0x3e1)](async(_0x57581d,_0x2c20d1)=>{const _0x13be52=a2_0x3a562f,_0x4944b8=new LLMUseCommand(),_0x3ce357=program[_0x13be52(0x26a)](),_0x2394e4=await createTDXInstance(_0x3ce357),_0x129568=await _0x4944b8['run']({'options':{..._0x3ce357,..._0x2c20d1},'args':[_0x57581d],'tdx':_0x2394e4});process[_0x13be52(0x2be)](_0x129568);}),llmCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x388))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x285))[a2_0x3a562f(0x3e1)](async _0x30bafa=>{const _0x2b173a=new LLMModelsCommand(),_0x3ce80f=program['opts'](),_0xa597d8=await createTDXInstance(_0x3ce80f),_0x31bce0=await _0x2b173a['run']({'options':{..._0x3ce80f,..._0x30bafa},'args':[],'tdx':_0xa597d8});process['exit'](_0x31bce0);});const projectCmd=llmCmd['command']('project')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x311)),llmProjectListAction=async(_0x55c96e,_0x4f2f27)=>{const _0x27809a=a2_0x3a562f,_0x234a37=new LLMProjectsCommand(),_0x3ec0fe=program['opts'](),_0x317296=await createTDXInstance(_0x3ec0fe),_0x4ae51a=await _0x234a37[_0x27809a(0x36b)]({'options':{..._0x3ec0fe,..._0x4f2f27},'args':_0x55c96e?[_0x55c96e]:[],'tdx':_0x317296});process['exit'](_0x4ae51a);};projectCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x320))[a2_0x3a562f(0x2cb)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3a562f(0x3e1)](llmProjectListAction),llmCmd['command'](a2_0x3a562f(0x1e4))['description'](a2_0x3a562f(0x370))[a2_0x3a562f(0x3e1)](llmProjectListAction),projectCmd[a2_0x3a562f(0x2c2)]('create\x20<name>')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x24a))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d5),a2_0x3a562f(0x1ff))['action'](async(_0x19c8bc,_0x54806e)=>{const _0x15b481=a2_0x3a562f,_0x3db8be=new LLMProjectCreateCommand(),_0x1fe640=program[_0x15b481(0x26a)](),_0x47d1d2=await createTDXInstance(_0x1fe640),_0x476104=await _0x3db8be['run']({'options':{..._0x1fe640,..._0x54806e},'args':[_0x19c8bc],'tdx':_0x47d1d2});process[_0x15b481(0x2be)](_0x476104);}),projectCmd[a2_0x3a562f(0x2c2)]('delete\x20<name>')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3de))['action'](async(_0x504768,_0x18debb)=>{const _0x3a58d3=a2_0x3a562f,_0x3eb5e0=new LLMProjectDeleteCommand(),_0x1d5633=program[_0x3a58d3(0x26a)](),_0x875f06=await createTDXInstance(_0x1d5633),_0x4d5781=await _0x3eb5e0[_0x3a58d3(0x36b)]({'options':{..._0x1d5633,..._0x18debb},'args':[_0x504768],'tdx':_0x875f06});process['exit'](_0x4d5781);}),projectCmd['command'](a2_0x3a562f(0x3e0))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1e9))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2df),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x30a),a2_0x3a562f(0x3fe))[a2_0x3a562f(0x3e1)](async(_0x15967b,_0x51efae)=>{const _0x92697b=a2_0x3a562f,_0x53549c=new LLMProjectBackupCommand(),_0x2ad03e=program[_0x92697b(0x26a)](),_0x21ff78=await createTDXInstance(_0x2ad03e),_0x97a47=await _0x53549c['run']({'options':{..._0x2ad03e,..._0x51efae},'args':[_0x15967b],'tdx':_0x21ff78});process[_0x92697b(0x2be)](_0x97a47);}),projectCmd[a2_0x3a562f(0x2c2)]('restore\x20<folder>')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x355))[a2_0x3a562f(0x28e)]('--name\x20<new-name>',a2_0x3a562f(0x22c))['option']('--dry-run',a2_0x3a562f(0x31c))['action'](async(_0x7b148a,_0x27f777)=>{const _0x2108bc=a2_0x3a562f,_0x484f38=new LLMProjectRestoreCommand(),_0x382e52=program[_0x2108bc(0x26a)](),_0x6cb7a9=await createTDXInstance(_0x382e52),_0x420abe=await _0x484f38[_0x2108bc(0x36b)]({'options':{..._0x382e52,..._0x27f777},'args':[_0x7b148a],'tdx':_0x6cb7a9});process['exit'](_0x420abe);});const llmAgentListAction=async(_0x4b5acb,_0x255798)=>{const _0x512814=a2_0x3a562f,_0x5e6f53=new LLMAgentsCommand(),_0x329893=program[_0x512814(0x26a)](),_0x22065a=await createTDXInstance(_0x329893),_0x474fa7=await _0x5e6f53['run']({'options':{..._0x329893,..._0x255798},'args':_0x4b5acb?[_0x4b5acb]:[],'tdx':_0x22065a});process[_0x512814(0x2be)](_0x474fa7);};llmCmd[a2_0x3a562f(0x2c2)]('agents\x20[pattern]')[a2_0x3a562f(0x2cb)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x3a562f(0x3e1)](llmAgentListAction),program[a2_0x3a562f(0x2c2)]('agents\x20[pattern]')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x272))[a2_0x3a562f(0x3e1)](llmAgentListAction),llmCmd[a2_0x3a562f(0x2c2)]('history\x20[chat-id]')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x329))['option'](a2_0x3a562f(0x385),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x3a562f(0x3e1)](async(_0x2137f0,_0x2e8e7b)=>{const _0x54f7e5=a2_0x3a562f,_0x9c89e2=new LLMHistoryCommand(),_0xa6ec7a=program[_0x54f7e5(0x26a)](),_0x16b5a7=await createTDXInstance(_0xa6ec7a),_0x2684a6=await _0x9c89e2[_0x54f7e5(0x36b)]({'options':{..._0xa6ec7a,..._0x2e8e7b},'args':_0x2137f0?[_0x2137f0]:[],'tdx':_0x16b5a7});process[_0x54f7e5(0x2be)](_0x2684a6);}),llmCmd[a2_0x3a562f(0x2c2)]('proxy')['description'](a2_0x3a562f(0x393))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d4),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x3a562f(0x3da))['option'](a2_0x3a562f(0x287),a2_0x3a562f(0x3e4))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x204),a2_0x3a562f(0x207))[a2_0x3a562f(0x3e1)](async _0x5b6122=>{const _0x1ecc8c=a2_0x3a562f,_0x4979f5=new LLMProxyCommand(),_0x17b04f=program['opts'](),_0x117130=await createTDXInstance(_0x17b04f),_0xe62c1e={..._0x5b6122,'port':_0x5b6122[_0x1ecc8c(0x344)]?parseInt(_0x5b6122[_0x1ecc8c(0x344)],0xa):undefined},_0x35ddc8=await _0x4979f5[_0x1ecc8c(0x36b)]({'options':{..._0x17b04f,..._0xe62c1e},'args':[],'tdx':_0x117130});process[_0x1ecc8c(0x2be)](_0x35ddc8);}),program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2cf))['usage'](a2_0x3a562f(0x2d0))[a2_0x3a562f(0x2cb)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')['option'](a2_0x3a562f(0x2a6),a2_0x3a562f(0x2d9),a2_0x3a562f(0x2a8))[a2_0x3a562f(0x28e)]('-c,\x20--continue',a2_0x3a562f(0x2b5))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x394),a2_0x3a562f(0x262))['option'](a2_0x3a562f(0x1b9),a2_0x3a562f(0x2c0))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x20d),'Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)')['allowUnknownOption']()[a2_0x3a562f(0x26f)](!![])[a2_0x3a562f(0x1f8)]('after',a2_0x3a562f(0x25c))[a2_0x3a562f(0x3e1)](async(_0x206165,_0x327aa5)=>{const _0x4771a1=a2_0x3a562f,_0x25613b=program['opts'](),_0x58b32d=Array[_0x4771a1(0x1f9)](_0x206165)?_0x206165:[];if(_0x58b32d[0x0]===_0x4771a1(0x37b)){const _0x5b1155=new ClaudeStatuslineCommand(),_0x4ddd56=await _0x5b1155[_0x4771a1(0x36b)]({'options':{..._0x25613b,..._0x327aa5},'args':_0x58b32d[_0x4771a1(0x27f)](0x1),'tdx':null});process['exit'](_0x4ddd56);}if(_0x58b32d[0x0]==='usage'){const _0x4c5ffc=new ClaudeUsageCommand(),_0x3bfc4a=await _0x4c5ffc[_0x4771a1(0x36b)]({'options':{..._0x25613b,..._0x327aa5},'args':_0x58b32d['slice'](0x1),'tdx':null});process[_0x4771a1(0x2be)](_0x3bfc4a);}const _0x57f0b4=new ClaudeCommand(),_0x42dda3=await createTDXInstance(_0x25613b),_0x421e84=await _0x57f0b4[_0x4771a1(0x36b)]({'options':{..._0x25613b,..._0x327aa5},'args':_0x58b32d,'tdx':_0x42dda3});process[_0x4771a1(0x2be)](_0x421e84);}),program['command'](a2_0x3a562f(0x337))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x2f4))[a2_0x3a562f(0x28e)]('--clear',a2_0x3a562f(0x334))['option'](a2_0x3a562f(0x323),a2_0x3a562f(0x307))['action'](async(_0x2a2d4e,_0x49dfd8,_0x1658c1)=>{const _0x3ed7ec=a2_0x3a562f,_0x61a7bb=new UseCommand(),_0x3a00d6=program[_0x3ed7ec(0x26a)](),_0x4101aa=[];if(_0x2a2d4e)_0x4101aa[_0x3ed7ec(0x3e7)](_0x2a2d4e);if(_0x49dfd8)_0x4101aa[_0x3ed7ec(0x3e7)](_0x49dfd8);const _0x150a50=await _0x61a7bb['run']({'options':{..._0x3a00d6,..._0x1658c1},'args':_0x4101aa,'tdx':null});process[_0x3ed7ec(0x2be)](_0x150a50);}),program['command'](a2_0x3a562f(0x1b8))['description'](a2_0x3a562f(0x1d1))[a2_0x3a562f(0x28e)]('--default',a2_0x3a562f(0x340))['action'](async(_0x500704,_0x1c30c4)=>{const _0xa8b467=a2_0x3a562f,_0x1808a2=new UnsetCommand(),_0x21a6e2=program[_0xa8b467(0x26a)](),_0x5f37d0=await _0x1808a2[_0xa8b467(0x36b)]({'options':{..._0x21a6e2,..._0x1c30c4},'args':[_0x500704],'tdx':null});process['exit'](_0x5f37d0);}),program['command']('chats')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1e3))['option'](a2_0x3a562f(0x385),'Show\x20the\x20most\x20recent\x20chat')['action'](async _0x5475dc=>{const _0x488486=a2_0x3a562f,_0x5dac2d=new ChatsCommand(),_0x16fbe3=program[_0x488486(0x26a)](),_0x45589a=await createTDXInstance(_0x16fbe3),_0x4142e6=await _0x5dac2d[_0x488486(0x36b)]({'options':{..._0x16fbe3,..._0x5475dc},'args':[],'tdx':_0x45589a});process['exit'](_0x4142e6);});const authCmd=program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2c3))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3d2));async function runAuthStatusCommand(_0x53c1f4){const _0x18d90c=a2_0x3a562f,_0x1ff74a=new AuthStatusCommand(),_0x251264=program[_0x18d90c(0x26a)](),_0x4284d1=await createTDXInstance(_0x251264),_0x37f4bb=await _0x1ff74a[_0x18d90c(0x36b)]({'options':{..._0x251264,..._0x53c1f4},'args':[],'tdx':_0x4284d1});process['exit'](_0x37f4bb);}authCmd[a2_0x3a562f(0x3e1)](runAuthStatusCommand),authCmd['command'](a2_0x3a562f(0x1f0))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x37c))[a2_0x3a562f(0x3e1)](runAuthStatusCommand),authCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x267))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3f8))[a2_0x3a562f(0x1f8)](a2_0x3a562f(0x236),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')[a2_0x3a562f(0x3e1)](async _0x198e88=>{const _0x3fd5d7=a2_0x3a562f,_0x353a47=new AuthSetupCommand(),_0x5cb11f=program['opts'](),_0x4fae7b=await createTDXInstance(_0x5cb11f),_0x4c481a=await _0x353a47[_0x3fd5d7(0x36b)]({'options':{..._0x5cb11f,..._0x198e88},'args':[],'tdx':_0x4fae7b});process[_0x3fd5d7(0x2be)](_0x4c481a);}),authCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3cb))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3f4))[a2_0x3a562f(0x1f8)](a2_0x3a562f(0x236),a2_0x3a562f(0x331))[a2_0x3a562f(0x3e1)](async _0x46439d=>{const _0x4a56b3=a2_0x3a562f,_0x3d4748=new AuthClearCommand(),_0x46333b=program[_0x4a56b3(0x26a)](),_0x349eae=await _0x3d4748['run']({'options':{..._0x46333b,..._0x46439d},'args':[],'tdx':null});process[_0x4a56b3(0x2be)](_0x349eae);});const userCmd=program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3f7))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x245)),userListAction=async _0xb48a45=>{const _0xdfe97=a2_0x3a562f,_0x1c6da6=new UserListCommand(),_0x1be017=program[_0xdfe97(0x26a)](),_0xe3b6bf=await createTDXInstance(_0x1be017),_0x30b8f6=await _0x1c6da6[_0xdfe97(0x36b)]({'options':{..._0x1be017,..._0xb48a45},'args':[],'tdx':_0xe3b6bf});process[_0xdfe97(0x2be)](_0x30b8f6);};userCmd[a2_0x3a562f(0x3e1)](async _0x1564db=>{const _0x262ecc=a2_0x3a562f,_0x418cc9=new UserCommand(),_0xb947ff=program[_0x262ecc(0x26a)](),_0x15dcc3=await createTDXInstance(_0xb947ff),_0x17a7cb=await _0x418cc9[_0x262ecc(0x36b)]({'options':{..._0xb947ff,..._0x1564db},'args':[],'tdx':_0x15dcc3});process[_0x262ecc(0x2be)](_0x17a7cb);}),userCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1fc))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3ba))['action'](userListAction),program[a2_0x3a562f(0x2c2)]('users')[a2_0x3a562f(0x2cb)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x3a562f(0x3e1)](userListAction),program[a2_0x3a562f(0x2c2)]('profiles')[a2_0x3a562f(0x2cb)]('List\x20all\x20available\x20profiles')[a2_0x3a562f(0x3e1)](async _0x390a86=>{const _0x34e6b5=a2_0x3a562f,_0x4bc03=new ProfilesCommand(),_0x21d46b=program[_0x34e6b5(0x26a)](),_0x3ce954=await _0x4bc03[_0x34e6b5(0x36b)]({'options':{..._0x21d46b,..._0x390a86},'args':[],'tdx':null});process[_0x34e6b5(0x2be)](_0x3ce954);});const profileCmd=program['command']('profile')[a2_0x3a562f(0x2cb)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x3a562f(0x3e1)](()=>{const _0x411207=a2_0x3a562f;profileCmd[_0x411207(0x3f9)]();});const profileListAction=async _0x5f3a85=>{const _0x27eba5=a2_0x3a562f,_0x52351a=new ProfilesCommand(),_0x5763f4=program[_0x27eba5(0x26a)](),_0x39b4db=await _0x52351a[_0x27eba5(0x36b)]({'options':{..._0x5763f4,..._0x5f3a85},'args':[],'tdx':null});process[_0x27eba5(0x2be)](_0x39b4db);};profileCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1fc))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x202))[a2_0x3a562f(0x3e1)](profileListAction),profileCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x389))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x228))['addHelpText'](a2_0x3a562f(0x236),'\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')['action'](async(_0x556a85,_0x4f0562)=>{const _0x8ee9de=a2_0x3a562f,_0x351b84=new ProfileCreateCommand(),_0x439188=program[_0x8ee9de(0x26a)](),_0x1fd378=await _0x351b84[_0x8ee9de(0x36b)]({'options':{..._0x439188,..._0x4f0562},'args':_0x556a85?[_0x556a85]:[],'tdx':null});process[_0x8ee9de(0x2be)](_0x1fd378);}),profileCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x28a))['description'](a2_0x3a562f(0x35b))['addHelpText']('after',a2_0x3a562f(0x3b5))[a2_0x3a562f(0x3e1)](async(_0x7a88f7,_0xb8f01d)=>{const _0x12e96a=a2_0x3a562f,_0x2a0fe2=new ProfileRemoveCommand(),_0x1b045e=program[_0x12e96a(0x26a)](),_0x31743a=await _0x2a0fe2[_0x12e96a(0x36b)]({'options':{..._0x1b045e,..._0xb8f01d},'args':[_0x7a88f7],'tdx':null});process[_0x12e96a(0x2be)](_0x31743a);}),profileCmd['command'](a2_0x3a562f(0x2d3))[a2_0x3a562f(0x2cb)]('Set\x20a\x20profile\x20configuration\x20value')[a2_0x3a562f(0x1f8)](a2_0x3a562f(0x236),a2_0x3a562f(0x22b))['action'](async(_0x7d4abf,_0x3c6ec6)=>{const _0x2b64ea=a2_0x3a562f,_0x1da8cd=new ProfileSetCommand(),_0x5d7bc5=program[_0x2b64ea(0x26a)](),_0xebd39d=await _0x1da8cd[_0x2b64ea(0x36b)]({'options':{..._0x5d7bc5,..._0x3c6ec6},'args':[_0x7d4abf],'tdx':null});process['exit'](_0xebd39d);}),profileCmd[a2_0x3a562f(0x2c2)]('use\x20<name>')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x25b))['option']('--default','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x3a562f(0x1f8)](a2_0x3a562f(0x236),a2_0x3a562f(0x32e))[a2_0x3a562f(0x3e1)](async(_0x497045,_0x2eefa3)=>{const _0xd99ba8=a2_0x3a562f,_0x593d72=new ProfileUseCommand(),_0x5ac498=program[_0xd99ba8(0x26a)](),_0xa1b2e4=await _0x593d72[_0xd99ba8(0x36b)]({'options':{..._0x5ac498,..._0x2eefa3},'args':[_0x497045],'tdx':null});process[_0xd99ba8(0x2be)](_0xa1b2e4);});const engageCmd=program['command']('engage')['description'](a2_0x3a562f(0x271)),createEngageAction=_0x23c9cb=>{return async(_0x4b1239,_0x25b454)=>{const _0x46b9db=a2_0xf299,_0x51483b=new _0x23c9cb(),_0x191831=program[_0x46b9db(0x26a)](),_0x17727e=await createTDXInstance(_0x191831),_0x317a08=await _0x51483b['run']({'options':{..._0x191831,..._0x25b454},'args':[_0x4b1239],'tdx':_0x17727e});process[_0x46b9db(0x2be)](_0x317a08);};},createEngageNoArgAction=_0x49e5c8=>{return async _0x14e7b6=>{const _0x3da9bd=a2_0xf299,_0x30b1b4=new _0x49e5c8(),_0x5acba9=program[_0x3da9bd(0x26a)](),_0x8bb78=await createTDXInstance(_0x5acba9),_0x2cf6c=await _0x30b1b4[_0x3da9bd(0x36b)]({'options':{..._0x5acba9,..._0x14e7b6},'args':[],'tdx':_0x8bb78});process['exit'](_0x2cf6c);};},campaignCmd=engageCmd[a2_0x3a562f(0x2c2)]('campaign')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x36e)),campaignListAction=async(_0x7fbafc,_0x5137af)=>{const _0x42aae2=a2_0x3a562f,_0x1ce3b0=new EngageCampaignsCommand(),_0x849001=program[_0x42aae2(0x26a)](),_0x2fac7b=await createTDXInstance(_0x849001),_0x149a94=await _0x1ce3b0['run']({'options':{..._0x849001,..._0x5137af},'args':_0x7fbafc?[_0x7fbafc]:[],'tdx':_0x2fac7b});process[_0x42aae2(0x2be)](_0x149a94);};campaignCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x320))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1f3))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x242),a2_0x3a562f(0x263))[a2_0x3a562f(0x28e)]('--status\x20<status>',a2_0x3a562f(0x374))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),a2_0x3a562f(0x3bd))['action'](campaignListAction),engageCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x286))['description'](a2_0x3a562f(0x3d1))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x242),a2_0x3a562f(0x263))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d0),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option']('--workspace\x20<name>',a2_0x3a562f(0x3bd))[a2_0x3a562f(0x3e1)](campaignListAction),campaignCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2ea))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3c0))[a2_0x3a562f(0x28e)]('--workspace\x20<name>',a2_0x3a562f(0x3bd))[a2_0x3a562f(0x28e)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3a562f(0x3e1)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3a562f(0x2c2)]('create')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x265))[a2_0x3a562f(0x259)](a2_0x3a562f(0x24d),'Campaign\x20name')[a2_0x3a562f(0x259)]('--type\x20<type>',a2_0x3a562f(0x3b7))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),a2_0x3a562f(0x3eb))['option'](a2_0x3a562f(0x20b),a2_0x3a562f(0x2d8))[a2_0x3a562f(0x28e)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x3a562f(0x28e)]('--email-sender-id\x20<id>',a2_0x3a562f(0x2f0))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x37f),a2_0x3a562f(0x33a))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x332),a2_0x3a562f(0x1cf))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x237),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x3a562f(0x3e1)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x354))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x227))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),a2_0x3a562f(0x3bd))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x24d),a2_0x3a562f(0x336))['option']('--description\x20<desc>',a2_0x3a562f(0x2d8))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1dc),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option'](a2_0x3a562f(0x3ab),a2_0x3a562f(0x2f0))['option'](a2_0x3a562f(0x37f),a2_0x3a562f(0x33a))['option'](a2_0x3a562f(0x332),a2_0x3a562f(0x1cf))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x237),a2_0x3a562f(0x3a5))[a2_0x3a562f(0x3e1)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3a562f(0x2c2)]('delete\x20<name-or-id>')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x356))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),'Workspace\x20name')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2e4),a2_0x3a562f(0x298))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2a5))['description'](a2_0x3a562f(0x341))[a2_0x3a562f(0x28e)]('--workspace\x20<name>',a2_0x3a562f(0x3bd))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3a562f(0x2c2)]('pause\x20<name-or-id>')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x269))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),a2_0x3a562f(0x3bd))[a2_0x3a562f(0x3e1)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x32c))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3ad))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),'Workspace\x20name')[a2_0x3a562f(0x3e1)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3a562f(0x2c2)]('duplicate\x20<name-or-id>')['description']('Duplicate\x20a\x20campaign')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),a2_0x3a562f(0x3bd))[a2_0x3a562f(0x3e1)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1d2))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x203)),templateListAction=async(_0x44bbf6,_0x4030ea)=>{const _0x35177e=a2_0x3a562f,_0x1c7b99=new EngageTemplatesCommand(),_0x111e97=program['opts'](),_0x167eb2=await createTDXInstance(_0x111e97),_0x2aa061=await _0x1c7b99['run']({'options':{..._0x111e97,..._0x4030ea},'args':_0x44bbf6?[_0x44bbf6]:[],'tdx':_0x167eb2});process[_0x35177e(0x2be)](_0x2aa061);};templateCmd[a2_0x3a562f(0x2c2)]('list\x20[pattern]')['description'](a2_0x3a562f(0x280))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),'Workspace\x20name')[a2_0x3a562f(0x3e1)](templateListAction),engageCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x28c))[a2_0x3a562f(0x2cb)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x3a562f(0x28e)]('--workspace\x20<name>','Workspace\x20name')[a2_0x3a562f(0x3e1)](templateListAction),templateCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2ea))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x299))[a2_0x3a562f(0x28e)]('--workspace\x20<name>',a2_0x3a562f(0x3bd))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3b3),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3a562f(0x3e1)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1d7))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x333))[a2_0x3a562f(0x259)](a2_0x3a562f(0x24d),'Template\x20name')[a2_0x3a562f(0x259)]('--subject\x20<subject>',a2_0x3a562f(0x1e0))[a2_0x3a562f(0x259)](a2_0x3a562f(0x349),a2_0x3a562f(0x244))[a2_0x3a562f(0x28e)]('--workspace\x20<name>',a2_0x3a562f(0x3eb))['option'](a2_0x3a562f(0x350),a2_0x3a562f(0x2d4))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x209),a2_0x3a562f(0x2b9))[a2_0x3a562f(0x3e1)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x354))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3d8))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),'Workspace\x20name')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x24d),'New\x20template\x20name')[a2_0x3a562f(0x28e)]('--subject\x20<subject>','Email\x20subject\x20template')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x349),a2_0x3a562f(0x244))['option'](a2_0x3a562f(0x350),'Plaintext\x20template\x20content')[a2_0x3a562f(0x3e1)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x28f))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x282))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x233),a2_0x3a562f(0x3bd))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2e4),a2_0x3a562f(0x298))[a2_0x3a562f(0x3e1)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3d3))['description'](a2_0x3a562f(0x313)),workspaceListAction=async(_0x5cac3f,_0x126d62)=>{const _0x1841ed=a2_0x3a562f,_0x449ea3=new EngageWorkspacesCommand(),_0xc3f578=program[_0x1841ed(0x26a)](),_0x12c488=await createTDXInstance(_0xc3f578),_0x2f7f3b=await _0x449ea3['run']({'options':{..._0xc3f578,..._0x126d62},'args':_0x5cac3f?[_0x5cac3f]:[],'tdx':_0x12c488});process[_0x1841ed(0x2be)](_0x2f7f3b);};workspaceCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x320))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x297))[a2_0x3a562f(0x3e1)](workspaceListAction),engageCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x28d))[a2_0x3a562f(0x2cb)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x3a562f(0x3e1)](workspaceListAction),workspaceCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2ea))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x218))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3b3),a2_0x3a562f(0x2b7))[a2_0x3a562f(0x3e1)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x3a562f(0x1d7))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1bb))[a2_0x3a562f(0x259)]('--name\x20<name>',a2_0x3a562f(0x3bd))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x20b),'Workspace\x20description')[a2_0x3a562f(0x3e1)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3a562f(0x2c2)]('update\x20<name-or-id>')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x1d6))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x24d),a2_0x3a562f(0x38c))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x20b),a2_0x3a562f(0x25e))[a2_0x3a562f(0x3e1)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x28f))[a2_0x3a562f(0x2cb)]('Delete\x20a\x20workspace')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x2e4),a2_0x3a562f(0x298))[a2_0x3a562f(0x3e1)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3a562f(0x2c2)]('use\x20<name>')['description'](a2_0x3a562f(0x230))[a2_0x3a562f(0x3e1)](createEngageAction(EngageWorkspaceUseCommand));function a2_0xf299(_0x4c4c1b,_0x3dbc32){_0x4c4c1b=_0x4c4c1b-0x1b0;const _0x34cd71=a2_0x34cd();let _0xf29982=_0x34cd71[_0x4c4c1b];return _0xf29982;}const connectionCmd=program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3a4))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x38f)),connectionListAction=async _0x13dfa4=>{const _0x4542f4=a2_0x3a562f,_0x2d06ea=new ConnectionListCommand(),_0x39baa3=program[_0x4542f4(0x26a)](),_0x17a6ad=await createTDXInstance(_0x39baa3),_0x16ef0e=await _0x2d06ea[_0x4542f4(0x36b)]({'options':{..._0x39baa3,..._0x13dfa4},'args':[],'tdx':_0x17a6ad});process['exit'](_0x16ef0e);};connectionCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x1fc))['description'](a2_0x3a562f(0x2e9))[a2_0x3a562f(0x3e1)](connectionListAction),program[a2_0x3a562f(0x2c2)]('connections',{'hidden':!![]})[a2_0x3a562f(0x2cb)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')['action'](connectionListAction),connectionCmd['command'](a2_0x3a562f(0x358))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x30d))['action'](async(_0x42941c,_0x20a04e)=>{const _0x329899=a2_0x3a562f,_0x536abb=new ConnectionShowCommand(),_0x231b01=program[_0x329899(0x26a)](),_0x33ffc8=await createTDXInstance(_0x231b01),_0x153abd=await _0x536abb[_0x329899(0x36b)]({'options':{..._0x231b01,..._0x20a04e},'args':[_0x42941c],'tdx':_0x33ffc8});process[_0x329899(0x2be)](_0x153abd);}),connectionCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x29e))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3e5))[a2_0x3a562f(0x3e1)](async(_0x4781ad,_0xf9b89a)=>{const _0x3df292=a2_0x3a562f,_0x59b179=new ConnectionSchemaCommand(),_0x3233e8=program[_0x3df292(0x26a)](),_0x43eb5e=await createTDXInstance(_0x3233e8),_0x246f8a=await _0x59b179['run']({'options':{..._0x3233e8,..._0xf9b89a},'args':[_0x4781ad],'tdx':_0x43eb5e});process[_0x3df292(0x2be)](_0x246f8a);}),connectionCmd['command']('types')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x346))[a2_0x3a562f(0x3e1)](async _0x3402ff=>{const _0x57eeab=a2_0x3a562f,_0x1923ac=new ConnectionTypesCommand(),_0x357886=program[_0x57eeab(0x26a)](),_0x518f51=await createTDXInstance(_0x357886),_0x1fe26e=await _0x1923ac['run']({'options':{..._0x357886,..._0x3402ff},'args':[],'tdx':_0x518f51});process[_0x57eeab(0x2be)](_0x1fe26e);}),connectionCmd['command'](a2_0x3a562f(0x2a7))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x34c))[a2_0x3a562f(0x3e1)](async(_0x585432,_0x17c03f)=>{const _0x414fcf=a2_0x3a562f,_0x55ea51=new ConnectionSettingsCommand(),_0x10ccae=program[_0x414fcf(0x26a)](),_0x39e7ff=await createTDXInstance(_0x10ccae),_0x280365=await _0x55ea51[_0x414fcf(0x36b)]({'options':{..._0x10ccae,..._0x17c03f},'args':[_0x585432],'tdx':_0x39e7ff});process['exit'](_0x280365);});const journeyCmd=program['command'](a2_0x3a562f(0x229))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x2e3)),journeyListAction=async(_0x45d2f7,_0x58b6e8)=>{const _0x15c74f=a2_0x3a562f,_0x31245e=new JourneyListCommand(),_0x276429=program['opts'](),_0x28ad5c=await createTDXInstance(_0x276429),_0xb6cee0=await _0x31245e[_0x15c74f(0x36b)]({'options':{..._0x276429,..._0x58b6e8},'args':_0x45d2f7?[_0x45d2f7]:[],'tdx':_0x28ad5c});process[_0x15c74f(0x2be)](_0xb6cee0);};journeyCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x320))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x36d))[a2_0x3a562f(0x3e1)](journeyListAction),journeyCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3b0))['description'](a2_0x3a562f(0x1ed))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x24e),a2_0x3a562f(0x3c3))['option'](a2_0x3a562f(0x387),a2_0x3a562f(0x225))[a2_0x3a562f(0x3e1)](async(_0x4fb9d9,_0x5e2b6d)=>{const _0x56d7f4=a2_0x3a562f,_0xeb59fa=new JourneyViewCommand(),_0x22b38c=program['opts'](),_0x2ce137=await createTDXInstance(_0x22b38c),_0x396023=await _0xeb59fa[_0x56d7f4(0x36b)]({'options':{..._0x22b38c,..._0x5e2b6d},'args':[_0x4fb9d9],'tdx':_0x2ce137});process[_0x56d7f4(0x2be)](_0x396023);}),journeyCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x345))[a2_0x3a562f(0x2cb)]('Show\x20journey\x20statistics')['option'](a2_0x3a562f(0x293),a2_0x3a562f(0x328))[a2_0x3a562f(0x3e1)](async(_0x5b22f6,_0x516a36)=>{const _0x3f9d86=a2_0x3a562f,_0x3a1dc9=new JourneyStatsCommand(),_0x2e6198=program['opts'](),_0x21f076=await createTDXInstance(_0x2e6198),_0x2f32c5=await _0x3a1dc9[_0x3f9d86(0x36b)]({'options':{..._0x2e6198,..._0x516a36},'args':[_0x5b22f6],'tdx':_0x21f076});process[_0x3f9d86(0x2be)](_0x2f32c5);}),journeyCmd[a2_0x3a562f(0x2c2)]('pause\x20<name-or-path>')[a2_0x3a562f(0x2cb)]('Pause\x20a\x20running\x20journey')[a2_0x3a562f(0x3e1)](async(_0x38b28d,_0x475d12)=>{const _0x4d5d14=a2_0x3a562f,_0x5e39a=new JourneyPauseCommand(),_0x2e0953=program[_0x4d5d14(0x26a)](),_0x2aa9b0=await createTDXInstance(_0x2e0953),_0x5f6786=await _0x5e39a[_0x4d5d14(0x36b)]({'options':{..._0x2e0953,..._0x475d12},'args':[_0x38b28d],'tdx':_0x2aa9b0});process[_0x4d5d14(0x2be)](_0x5f6786);}),journeyCmd[a2_0x3a562f(0x2c2)]('resume\x20<name-or-path>')[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3ee))[a2_0x3a562f(0x3e1)](async(_0x23e808,_0x39d475)=>{const _0x3e8a67=a2_0x3a562f,_0xba80ca=new JourneyResumeCommand(),_0x2ee0d5=program[_0x3e8a67(0x26a)](),_0x165d10=await createTDXInstance(_0x2ee0d5),_0x29f606=await _0xba80ca['run']({'options':{..._0x2ee0d5,..._0x39d475},'args':[_0x23e808],'tdx':_0x165d10});process[_0x3e8a67(0x2be)](_0x29f606);}),journeyCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x380))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3df))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x372),a2_0x3a562f(0x298))[a2_0x3a562f(0x28e)]('--dry-run',a2_0x3a562f(0x3b4))[a2_0x3a562f(0x3e1)](async(_0x148c9e,_0x4bef3e)=>{const _0x244a4c=a2_0x3a562f,_0xcaa940=new JourneyPullCommand(),_0x41012e=program[_0x244a4c(0x26a)](),_0x174840=await createTDXInstance(_0x41012e),_0x559eba=await _0xcaa940[_0x244a4c(0x36b)]({'options':{..._0x41012e,..._0x4bef3e},'args':_0x148c9e?[_0x148c9e]:[],'tdx':_0x174840});process[_0x244a4c(0x2be)](_0x559eba);}),journeyCmd[a2_0x3a562f(0x2c2)]('push\x20[target]')['description'](a2_0x3a562f(0x1ba))[a2_0x3a562f(0x3e1)](async(_0x2c6da0,_0x2c891b)=>{const _0x3ecdf7=a2_0x3a562f,_0x7149a6=new JourneyPushCommand(),_0x3568e9=program['opts'](),_0x4acb80=await createTDXInstance(_0x3568e9),_0x52d68f=await _0x7149a6[_0x3ecdf7(0x36b)]({'options':{..._0x3568e9,..._0x2c891b},'args':_0x2c6da0?[_0x2c6da0]:[],'tdx':_0x4acb80});process['exit'](_0x52d68f);}),journeyCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2c6))['description']('Validate\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x402c6b,_0x2b6945)=>{const _0x32f9f1=a2_0x3a562f,_0x290688=new JourneyValidateCommand(),_0x32c2f3=program['opts'](),_0x1e49e1=await createTDXInstance(_0x32c2f3),_0x14ee9a=await _0x290688[_0x32f9f1(0x36b)]({'options':{..._0x32c2f3,..._0x2b6945},'args':_0x402c6b?[_0x402c6b]:[],'tdx':_0x1e49e1});process['exit'](_0x14ee9a);}),program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3d5))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3bf))[a2_0x3a562f(0x3e1)](journeyListAction);const agentSyncCmd=program[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x357))[a2_0x3a562f(0x2cb)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x3a562f(0x2c2)]('pull\x20[project]\x20[agent-name]')['description'](a2_0x3a562f(0x35f))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x243),a2_0x3a562f(0x32d))['option'](a2_0x3a562f(0x247),a2_0x3a562f(0x35e))[a2_0x3a562f(0x3e1)](async(_0x470b66,_0x10755d,_0x39b94d)=>{const _0x4ff09e=a2_0x3a562f,_0xd3faa4=new AgentPullCommand(),_0x258e89=program[_0x4ff09e(0x26a)](),_0xc0ecca=await createTDXInstance(_0x258e89),_0x950599=[];if(_0x470b66)_0x950599[_0x4ff09e(0x3e7)](_0x470b66);if(_0x10755d)_0x950599[_0x4ff09e(0x3e7)](_0x10755d);const _0x1dcd62=await _0xd3faa4[_0x4ff09e(0x36b)]({'options':{..._0x258e89,..._0x39b94d},'args':_0x950599,'tdx':_0xc0ecca});process[_0x4ff09e(0x2be)](_0x1dcd62);}),agentSyncCmd['command']('push\x20[path]')['description'](a2_0x3a562f(0x217))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x247),a2_0x3a562f(0x2d2))[a2_0x3a562f(0x3e1)](async(_0x275b98,_0x3224d8)=>{const _0x31746b=a2_0x3a562f,_0x1dcb52=new AgentPushCommand(),_0x49df91=program[_0x31746b(0x26a)](),_0x1da0da=await createTDXInstance(_0x49df91),_0x3c0c63=await _0x1dcb52[_0x31746b(0x36b)]({'options':{..._0x49df91,..._0x3224d8},'args':_0x275b98?[_0x275b98]:[],'tdx':_0x1da0da});process[_0x31746b(0x2be)](_0x3c0c63);}),agentSyncCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x34d))['description'](a2_0x3a562f(0x2bf))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3a3),a2_0x3a562f(0x1ca))[a2_0x3a562f(0x3e1)](async(_0x335d6e,_0x26c15a)=>{const _0xc1a47a=a2_0x3a562f,_0x1adae6=new AgentCloneCommand(),_0x4d7b4f=program[_0xc1a47a(0x26a)](),_0x5c2e03=await createTDXInstance(_0x4d7b4f),_0x5ab1ed=await _0x1adae6[_0xc1a47a(0x36b)]({'options':{..._0x4d7b4f,..._0x26c15a},'args':_0x335d6e?[_0x335d6e]:[],'tdx':_0x5c2e03});process[_0xc1a47a(0x2be)](_0x5ab1ed);}),agentSyncCmd['command'](a2_0x3a562f(0x320))[a2_0x3a562f(0x2cb)]('List\x20agents\x20in\x20current\x20project')['action'](llmAgentListAction),agentSyncCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x2b8))['description'](a2_0x3a562f(0x39f))[a2_0x3a562f(0x3e1)](async(_0x4c25e6,_0x4973e5)=>{const _0x1c30d3=a2_0x3a562f,_0x5e3655=new LLMAgentShowCommand(),_0x4f22c2=program[_0x1c30d3(0x26a)](),_0xfc3f39=await createTDXInstance(_0x4f22c2),_0x30099e=await _0x5e3655[_0x1c30d3(0x36b)]({'options':{..._0x4f22c2,..._0x4973e5},'args':[_0x4c25e6],'tdx':_0xfc3f39});process['exit'](_0x30099e);}),agentSyncCmd['command'](a2_0x3a562f(0x3c5))['description'](a2_0x3a562f(0x347))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x215),a2_0x3a562f(0x2e0))[a2_0x3a562f(0x28e)]('--model\x20<name>',a2_0x3a562f(0x1f1),a2_0x3a562f(0x2c9))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x373),a2_0x3a562f(0x2bd))['option']('--max-tool-iterations\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x21d),a2_0x3a562f(0x22d),'0.7')[a2_0x3a562f(0x3e1)](async(_0x4e15be,_0x495351)=>{const _0x5ec759=a2_0x3a562f,_0x3b418c=new LLMAgentCreateCommand(),_0x44df20=program[_0x5ec759(0x26a)](),_0x32543d=await createTDXInstance(_0x44df20),_0xbdd180=await _0x3b418c['run']({'options':{..._0x44df20,..._0x495351},'args':[_0x4e15be],'tdx':_0x32543d});process[_0x5ec759(0x2be)](_0xbdd180);}),agentSyncCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x3dd))[a2_0x3a562f(0x2cb)]('Update\x20an\x20existing\x20agent')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x281),a2_0x3a562f(0x2aa))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x3ca),'Agent\x20prompt/instructions')[a2_0x3a562f(0x28e)](a2_0x3a562f(0x1d5),a2_0x3a562f(0x3c4))[a2_0x3a562f(0x28e)](a2_0x3a562f(0x373),a2_0x3a562f(0x2bd))[a2_0x3a562f(0x3e1)](async(_0x39966d,_0x281313)=>{const _0x4cd3d1=a2_0x3a562f,_0x468901=new LLMAgentUpdateCommand(),_0x7f541e=program[_0x4cd3d1(0x26a)](),_0x139640=await createTDXInstance(_0x7f541e),_0x5a907b=await _0x468901[_0x4cd3d1(0x36b)]({'options':{..._0x7f541e,..._0x281313},'args':[_0x39966d],'tdx':_0x139640});process[_0x4cd3d1(0x2be)](_0x5a907b);}),agentSyncCmd[a2_0x3a562f(0x2c2)](a2_0x3a562f(0x306))[a2_0x3a562f(0x2cb)](a2_0x3a562f(0x3b8))[a2_0x3a562f(0x3e1)](async(_0x102d8f,_0x1744b8)=>{const _0x4b0624=a2_0x3a562f,_0x17588f=new LLMAgentDeleteCommand(),_0x3db490=program[_0x4b0624(0x26a)](),_0x30c857=await createTDXInstance(_0x3db490),_0x541f95=await _0x17588f[_0x4b0624(0x36b)]({'options':{..._0x3db490,..._0x1744b8},'args':[_0x102d8f],'tdx':_0x30c857});process[_0x4b0624(0x2be)](_0x541f95);});export{program};export function runCLI(){const _0x2f3157=a2_0x3a562f,_0x4f9fd4=!process[_0x2f3157(0x29d)]['slice'](0x2)[_0x2f3157(0x2a9)];showBriefHelp=_0x4f9fd4,program[_0x2f3157(0x2fc)](process[_0x2f3157(0x29d)]),_0x4f9fd4&&program[_0x2f3157(0x3f9)](),process[_0x2f3157(0x1c0)][_0x2f3157(0x31d)]&&process[_0x2f3157(0x29d)][_0x2f3157(0x2a9)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x2f3157(0x254)](_0x4099ec=>{_0x4099ec&&displayUpdateNotification(_0x4099ec);})[_0x2f3157(0x1f4)](()=>{});}
|
|
1
|
+
const a2_0x262de4=a2_0x16bf;(function(_0x4d7108,_0x309a0c){const _0x4c2dc7=a2_0x16bf,_0x44cbb9=_0x4d7108();while(!![]){try{const _0x4f9961=parseInt(_0x4c2dc7(0x1b3))/0x1+-parseInt(_0x4c2dc7(0x1c2))/0x2*(-parseInt(_0x4c2dc7(0x15c))/0x3)+parseInt(_0x4c2dc7(0x242))/0x4+-parseInt(_0x4c2dc7(0x34a))/0x5+parseInt(_0x4c2dc7(0x374))/0x6+parseInt(_0x4c2dc7(0x390))/0x7*(parseInt(_0x4c2dc7(0x248))/0x8)+parseInt(_0x4c2dc7(0x28b))/0x9*(-parseInt(_0x4c2dc7(0x16b))/0xa);if(_0x4f9961===_0x309a0c)break;else _0x44cbb9['push'](_0x44cbb9['shift']());}catch(_0x2ea240){_0x44cbb9['push'](_0x44cbb9['shift']());}}}(a2_0x2275,0x8e89b));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';function a2_0x16bf(_0x2727a0,_0x4d5309){_0x2727a0=_0x2727a0-0x149;const _0x2275e3=a2_0x2275();let _0x16bfb1=_0x2275e3[_0x2727a0];return _0x16bfb1;}import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x262de4(0x23a)][a2_0x262de4(0x35f)]('--version')){let versionOutput='tdx\x20'+currentVersion;buildInfo['gitRevision']&&!currentVersion[a2_0x262de4(0x35f)](buildInfo[a2_0x262de4(0x22d)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x262de4(0x2b0)]&&(versionOutput+=a2_0x262de4(0x206)+buildInfo[a2_0x262de4(0x2b0)]),console['log'](versionOutput),process[a2_0x262de4(0x2af)](0x0);}const program=new Command();let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x262de4(0x22d)]&&!currentVersion[a2_0x262de4(0x35f)](buildInfo[a2_0x262de4(0x22d)])?description+=',\x20version\x20'+currentVersion+'\x20('+buildInfo[a2_0x262de4(0x22d)]+')':description+=',\x20version\x20'+currentVersion;program[a2_0x262de4(0x332)](a2_0x262de4(0x268))[a2_0x262de4(0x335)](description),program[a2_0x262de4(0x241)](a2_0x262de4(0x2b3),a2_0x262de4(0x16f))[a2_0x262de4(0x241)](a2_0x262de4(0x23c),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x262de4(0x241)]('--site\x20<site>',a2_0x262de4(0x385),a2_0x262de4(0x1cf))[a2_0x262de4(0x241)](a2_0x262de4(0x290),a2_0x262de4(0x18b))[a2_0x262de4(0x241)](a2_0x262de4(0x256),a2_0x262de4(0x1f4))[a2_0x262de4(0x241)](a2_0x262de4(0x1aa),a2_0x262de4(0x1fb))[a2_0x262de4(0x241)]('--jsonl',a2_0x262de4(0x220))[a2_0x262de4(0x241)](a2_0x262de4(0x25e),a2_0x262de4(0x327))[a2_0x262de4(0x241)](a2_0x262de4(0x373),'Save\x20output\x20to\x20file')[a2_0x262de4(0x241)](a2_0x262de4(0x1e2),a2_0x262de4(0x32f))['option']('--color','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])['option'](a2_0x262de4(0x191),a2_0x262de4(0x199),![])[a2_0x262de4(0x241)](a2_0x262de4(0x194),a2_0x262de4(0x3a2),![])[a2_0x262de4(0x241)](a2_0x262de4(0x188),a2_0x262de4(0x2f5))['option'](a2_0x262de4(0x1fa),a2_0x262de4(0x2de))[a2_0x262de4(0x241)](a2_0x262de4(0x387),a2_0x262de4(0x262),'30')['option'](a2_0x262de4(0x2cd),a2_0x262de4(0x29e),![])['option'](a2_0x262de4(0x32a),a2_0x262de4(0x264),![])['option']('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')['option'](a2_0x262de4(0x190),a2_0x262de4(0x269))['option'](a2_0x262de4(0x370),a2_0x262de4(0x2b9))[a2_0x262de4(0x241)]('--parent-segment\x20<name>',a2_0x262de4(0x1e6))[a2_0x262de4(0x241)](a2_0x262de4(0x376),a2_0x262de4(0x249)),program[a2_0x262de4(0x1b2)]({'formatHelp':(_0x334e89,_0x4e18d0)=>{const _0x261bd2=a2_0x262de4,_0x48a58e=_0x4e18d0[_0x261bd2(0x17a)](_0x334e89,_0x4e18d0),_0x532b24=0x2,_0x1df800=0x2;function _0x26f10f(_0x191a32){const _0x2ab4ed=_0x261bd2,_0x1c96c6=_0x191a32;return!!(_0x1c96c6[_0x2ab4ed(0x2a9)]||_0x1c96c6[_0x2ab4ed(0x22e)]);}function _0x4fbfba(_0x121e7a,_0x47a851){const _0x485112=_0x261bd2;if(_0x47a851){const _0x148233=''+_0x121e7a[_0x485112(0x33b)](_0x48a58e+_0x1df800)+_0x47a851;return _0x148233;}return _0x121e7a;}function _0x422b4d(_0x23e000){const _0x426c11=_0x261bd2;return _0x23e000[_0x426c11(0x301)]('\x0a')[_0x426c11(0x1c4)](/^/gm,'\x20'[_0x426c11(0x225)](_0x532b24));}const _0x56ecc3=[];_0x56ecc3[_0x261bd2(0x393)](_0x261bd2(0x236)+_0x4e18d0['commandUsage'](_0x334e89));const _0x463606=_0x4e18d0[_0x261bd2(0x18e)](_0x334e89);_0x463606&&(_0x56ecc3[_0x261bd2(0x393)](''),_0x56ecc3[_0x261bd2(0x393)](_0x463606));const _0x23a3d8=_0x334e89[_0x261bd2(0x397)]['filter'](_0x370e35=>!_0x26f10f(_0x370e35));if(_0x23a3d8[_0x261bd2(0x26e)]>0x0){if(_0x334e89['name']()===_0x261bd2(0x268)){const _0x42eba0=_0x334e89[_0x261bd2(0x2a0)](),_0x44d061=!_0x42eba0['noColor']&&process['stdout'][_0x261bd2(0x227)],_0x16741d=COMMAND_CATEGORIES,_0x1990bb=(_0x51346a,_0x3199ef)=>_0x44d061?_0x3199ef(_0x51346a):_0x51346a,_0x36b696=new Map();_0x23a3d8[_0x261bd2(0x2c5)](_0x3b1316=>{const _0x26a98a=_0x261bd2;_0x36b696[_0x26a98a(0x1ad)](_0x3b1316['name'](),_0x3b1316);}),_0x16741d[_0x261bd2(0x2c5)](_0xc987ec=>{const _0x3f08cb=_0x261bd2,_0x1729a7=_0xc987ec[_0x3f08cb(0x397)][_0x3f08cb(0x354)](_0xfb5f80=>_0x36b696[_0x3f08cb(0x36c)](_0xfb5f80)??[]);if(_0x1729a7['length']>0x0){_0x56ecc3[_0x3f08cb(0x393)](''),_0x56ecc3['push'](_0x1990bb(_0xc987ec[_0x3f08cb(0x332)]+':',_0xc987ec[_0x3f08cb(0x291)]));const _0x4584ab=_0x1729a7[_0x3f08cb(0x3a0)](_0x20adaf=>{const _0x387308=_0x3f08cb,_0x15929d=_0x4e18d0[_0x387308(0x275)](_0x20adaf),_0x522ddf=_0x4e18d0['subcommandDescription'](_0x20adaf);return _0x4fbfba(_0x15929d,_0x522ddf);});_0x56ecc3[_0x3f08cb(0x393)](_0x422b4d(_0x4584ab));}}),_0x56ecc3[_0x261bd2(0x393)](''),_0x56ecc3[_0x261bd2(0x393)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x10d8d9=_0x23a3d8[_0x261bd2(0x3a0)](_0x3bb695=>{const _0x5dea5d=_0x261bd2,_0x1f3a11=_0x4e18d0[_0x5dea5d(0x275)](_0x3bb695),_0x414de5=_0x4e18d0[_0x5dea5d(0x14e)](_0x3bb695);return _0x4fbfba(_0x1f3a11,_0x414de5);});_0x56ecc3[_0x261bd2(0x393)](''),_0x56ecc3[_0x261bd2(0x393)]('Commands:'),_0x56ecc3['push'](_0x422b4d(_0x10d8d9));}}if(showBriefHelp&&_0x334e89[_0x261bd2(0x332)]()===_0x261bd2(0x268))_0x56ecc3['push'](''),_0x56ecc3['push'](_0x261bd2(0x2e4));else{const _0x4bf3de=_0x334e89[_0x261bd2(0x2ac)]['filter'](_0x3eb0d0=>!_0x26f10f(_0x3eb0d0));if(_0x4bf3de[_0x261bd2(0x26e)]>0x0){const _0x377cc6=_0x4bf3de[_0x261bd2(0x3a0)](_0x115ae7=>{const _0x309d57=_0x261bd2,_0x3376eb=_0x4e18d0[_0x309d57(0x2dd)](_0x115ae7),_0x5eb153=_0x4e18d0[_0x309d57(0x37b)](_0x115ae7);return _0x4fbfba(_0x3376eb,_0x5eb153);});_0x56ecc3[_0x261bd2(0x393)](''),_0x56ecc3[_0x261bd2(0x393)](_0x261bd2(0x2b4)),_0x56ecc3['push'](_0x422b4d(_0x377cc6));}}const _0x2601cf=(_0x334e89['registeredArguments']||[])[_0x261bd2(0x348)](_0x27f59c=>!_0x26f10f(_0x27f59c));if(_0x2601cf[_0x261bd2(0x26e)]>0x0){const _0x3afc78=_0x2601cf[_0x261bd2(0x3a0)](_0x567283=>{const _0x14c657=_0x261bd2,_0x1b0826=_0x4e18d0[_0x14c657(0x2a6)](_0x567283),_0x4bc168=_0x4e18d0['argumentDescription'](_0x567283);return _0x4fbfba(_0x1b0826,_0x4bc168);});_0x56ecc3[_0x261bd2(0x393)](''),_0x56ecc3[_0x261bd2(0x393)]('Arguments:'),_0x56ecc3['push'](_0x422b4d(_0x3afc78));}return _0x56ecc3[_0x261bd2(0x301)]('\x0a')+'\x0a';},'subcommandTerm':_0x54ca0f=>{const _0x28aa08=a2_0x262de4,_0xb3fa0=(_0x54ca0f[_0x28aa08(0x294)]||[])[_0x28aa08(0x3a0)](_0x9b72da=>_0x9b72da[_0x28aa08(0x176)]?'<'+_0x9b72da[_0x28aa08(0x332)]()+'>':'['+_0x9b72da['name']()+']')['join']('\x20'),_0x51a8f3=_0x54ca0f[_0x28aa08(0x29c)](),_0x3a5b24=_0x51a8f3['length']>0x0?_0x54ca0f[_0x28aa08(0x332)]()+',\x20'+_0x51a8f3['join'](',\x20'):_0x54ca0f[_0x28aa08(0x332)]();return _0xb3fa0?_0x3a5b24+'\x20'+_0xb3fa0:_0x3a5b24;}}),program['hook'](a2_0x262de4(0x209),_0x382620=>{const _0x260cf2=a2_0x262de4,_0x77cbdb=_0x382620[_0x260cf2(0x2a0)]();if(_0x77cbdb[_0x260cf2(0x254)]){const _0xe89dab=resolve(_0x77cbdb[_0x260cf2(0x254)]),_0x36e78e=_0xe89dab!==_0x77cbdb['directory']?_0x260cf2(0x288)+_0xe89dab+')':'';if(!existsSync(_0xe89dab))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Directory\x20does\x20not\x20exist:\x20'+_0x77cbdb[_0x260cf2(0x254)]+_0x36e78e,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x13ec63=statSync(_0xe89dab);if(!_0x13ec63[_0x260cf2(0x1d3)]())throw new SDKError(ErrorCode[_0x260cf2(0x261)],_0x260cf2(0x192)+_0x77cbdb[_0x260cf2(0x254)]+_0x36e78e,undefined,{'helpText':_0x260cf2(0x150)});process[_0x260cf2(0x158)](_0xe89dab);}if(!_0x77cbdb[_0x260cf2(0x22c)]){if(_0x77cbdb[_0x260cf2(0x17c)])_0x77cbdb[_0x260cf2(0x22c)]=_0x260cf2(0x17c);else{if(_0x77cbdb['json'])_0x77cbdb['format']=_0x260cf2(0x1af);else{if(_0x77cbdb[_0x260cf2(0x1d5)])_0x77cbdb[_0x260cf2(0x22c)]=_0x260cf2(0x1d5);else _0x77cbdb[_0x260cf2(0x2db)]&&(_0x77cbdb[_0x260cf2(0x22c)]='tsv');}}}_0x77cbdb['in']&&!_0x77cbdb['database']&&(_0x77cbdb[_0x260cf2(0x334)]=_0x77cbdb['in']);if(_0x77cbdb[_0x260cf2(0x2c8)])_0x77cbdb[_0x260cf2(0x1e8)]=LogLevel[_0x260cf2(0x202)];else{if(_0x77cbdb[_0x260cf2(0x315)])_0x77cbdb[_0x260cf2(0x1e8)]=LogLevel['DEBUG'];else _0x77cbdb[_0x260cf2(0x1e8)]===undefined&&(_0x77cbdb[_0x260cf2(0x1e8)]=LogLevel[_0x260cf2(0x1f6)]);}});async function createTDXInstance(_0xd6d904){const _0x57ca8c=a2_0x262de4,_0x51c3bf=await GlobalContext[_0x57ca8c(0x38f)](_0xd6d904);return _0x51c3bf['injectIntoOptions'](_0xd6d904),TDX['create']({'site':_0x51c3bf['site'],'apiKey':_0x51c3bf[_0x57ca8c(0x164)],'logLevel':_0x51c3bf['logLevel'],'profile':_0x51c3bf[_0x57ca8c(0x2a4)]});}const databaseCmd=program[a2_0x262de4(0x336)](a2_0x262de4(0x334))[a2_0x262de4(0x26d)]('db')['description'](a2_0x262de4(0x1da)),databaseListAction=async(_0x2a47be,_0x2c6e16)=>{const _0x52daee=a2_0x262de4,_0x5a5042=new DatabasesCommand(),_0xf5dce6=program[_0x52daee(0x2a0)](),_0x1ec2fe=await createTDXInstance(_0xf5dce6),_0x2cdde1=await _0x5a5042['run']({'options':{..._0xf5dce6,..._0x2c6e16},'args':_0x2a47be?[_0x2a47be]:[],'tdx':_0x1ec2fe});process[_0x52daee(0x2af)](_0x2cdde1);};databaseCmd['command'](a2_0x262de4(0x1a1))['description']('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x262de4(0x34e)](databaseListAction),program[a2_0x262de4(0x336)](a2_0x262de4(0x149),{'hidden':!![]})[a2_0x262de4(0x335)](a2_0x262de4(0x347))[a2_0x262de4(0x34e)](databaseListAction),program[a2_0x262de4(0x336)](a2_0x262de4(0x1c5))[a2_0x262de4(0x335)](a2_0x262de4(0x2fd))[a2_0x262de4(0x241)](a2_0x262de4(0x24c),a2_0x262de4(0x2da))[a2_0x262de4(0x241)](a2_0x262de4(0x14b),'Start\x20a\x20new\x20chat\x20session')[a2_0x262de4(0x34e)](async(_0xb82f73,_0x51bb5e)=>{const _0x10da56=a2_0x262de4,_0x332ad5=new ChatCommand(),_0x1bb8de=program['opts'](),_0x1a06c0=await createTDXInstance(_0x1bb8de),_0x45cd4b=await _0x332ad5[_0x10da56(0x34d)]({'options':{..._0x1bb8de,..._0x51bb5e},'args':_0xb82f73,'tdx':_0x1a06c0});process[_0x10da56(0x2af)](_0x45cd4b);});const apiCmd=program[a2_0x262de4(0x336)](a2_0x262de4(0x168))[a2_0x262de4(0x2d4)](a2_0x262de4(0x18d))['addHelpText'](a2_0x262de4(0x305),'\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_0x262de4(0x241)](a2_0x262de4(0x2f3),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x262de4(0x223))[a2_0x262de4(0x241)](a2_0x262de4(0x182),'Request\x20body\x20as\x20JSON\x20string')['option'](a2_0x262de4(0x152),a2_0x262de4(0x279))[a2_0x262de4(0x241)]('-H,\x20--header\x20<header>',a2_0x262de4(0x25b),(_0x454f65,_0x40e0eb)=>{return _0x40e0eb?[..._0x40e0eb,_0x454f65]:[_0x454f65];})[a2_0x262de4(0x241)](a2_0x262de4(0x2b2),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x2877d3,_0x5012fc)=>{const _0x33e903=a2_0x262de4;if(!_0x2877d3){apiCmd[_0x33e903(0x368)]();return;}const _0x2ffe55=new ApiCommand(),_0x48c49f=program[_0x33e903(0x2a0)](),_0x5ae898=await createTDXInstance(_0x48c49f),_0x30255e=await _0x2ffe55[_0x33e903(0x34d)]({'options':{..._0x48c49f,..._0x5012fc},'args':[_0x2877d3],'tdx':_0x5ae898});process[_0x33e903(0x2af)](_0x30255e);}),tableCmd=program['command'](a2_0x262de4(0x17c))[a2_0x262de4(0x335)]('Table\x20management\x20commands'),tableListAction=async(_0x236fe0,_0x41bea4)=>{const _0x34477f=a2_0x262de4,_0x3b60af=new TablesCommand(),_0x4101aa=program[_0x34477f(0x2a0)](),_0x4f3ea5=await createTDXInstance(_0x4101aa);_0x41bea4['in']&&(_0x41bea4[_0x34477f(0x334)]=_0x41bea4['in']);const _0x3ea725=await _0x3b60af[_0x34477f(0x34d)]({'options':{..._0x4101aa,..._0x41bea4},'args':_0x236fe0?[_0x236fe0]:[],'tdx':_0x4f3ea5});process['exit'](_0x3ea725);};tableCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1a1))['description'](a2_0x262de4(0x238))['option'](a2_0x262de4(0x1f3),a2_0x262de4(0x216))[a2_0x262de4(0x241)](a2_0x262de4(0x395),a2_0x262de4(0x2b9))[a2_0x262de4(0x34e)](tableListAction),program[a2_0x262de4(0x336)](a2_0x262de4(0x1d9),{'hidden':!![]})[a2_0x262de4(0x335)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x262de4(0x241)]('-d,\x20--database\x20<database>',a2_0x262de4(0x216))[a2_0x262de4(0x241)](a2_0x262de4(0x395),a2_0x262de4(0x2b9))['action'](tableListAction),program[a2_0x262de4(0x336)](a2_0x262de4(0x193))[a2_0x262de4(0x335)](a2_0x262de4(0x1b5))[a2_0x262de4(0x241)](a2_0x262de4(0x1f3),a2_0x262de4(0x1c1))[a2_0x262de4(0x241)](a2_0x262de4(0x395),a2_0x262de4(0x2b9))[a2_0x262de4(0x34e)](async(_0x573f35,_0x163b4f)=>{const _0x9b8b09=a2_0x262de4,_0x3dd5d3=new ShowCommand(),_0x279ab1=program[_0x9b8b09(0x2a0)](),_0x3d9bb3=await createTDXInstance(_0x279ab1);_0x163b4f['in']&&(_0x163b4f[_0x9b8b09(0x334)]=_0x163b4f['in']);const _0x3de48a=await _0x3dd5d3['run']({'options':{..._0x279ab1,..._0x163b4f},'args':_0x573f35?[_0x573f35]:[],'tdx':_0x3d9bb3});process[_0x9b8b09(0x2af)](_0x3de48a);}),program[a2_0x262de4(0x336)](a2_0x262de4(0x265))[a2_0x262de4(0x26d)](a2_0x262de4(0x167))[a2_0x262de4(0x335)](a2_0x262de4(0x356))[a2_0x262de4(0x241)](a2_0x262de4(0x1f3),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x262de4(0x241)](a2_0x262de4(0x395),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x262de4(0x34e)](async(_0x1ba487,_0x2d2044)=>{const _0x4eea27=a2_0x262de4,_0x497a08=new DescribeCommand(),_0x23563e=program[_0x4eea27(0x2a0)](),_0x16dc40=await createTDXInstance(_0x23563e);_0x2d2044['in']&&(_0x2d2044[_0x4eea27(0x334)]=_0x2d2044['in']);const _0x3a49e9=await _0x497a08[_0x4eea27(0x34d)]({'options':{..._0x23563e,..._0x2d2044},'args':_0x1ba487?[_0x1ba487]:[],'tdx':_0x16dc40});process[_0x4eea27(0x2af)](_0x3a49e9);}),program['command'](a2_0x262de4(0x15f))[a2_0x262de4(0x335)](a2_0x262de4(0x25c))[a2_0x262de4(0x241)](a2_0x262de4(0x1f3),a2_0x262de4(0x271))[a2_0x262de4(0x241)](a2_0x262de4(0x395),a2_0x262de4(0x2b9))[a2_0x262de4(0x241)](a2_0x262de4(0x200),a2_0x262de4(0x272))[a2_0x262de4(0x241)](a2_0x262de4(0x152),a2_0x262de4(0x1fc))[a2_0x262de4(0x241)](a2_0x262de4(0x2f7),a2_0x262de4(0x2f1),'40')[a2_0x262de4(0x34e)](async(_0x4643a3,_0x3e2d31)=>{const _0x1f24f6=a2_0x262de4,_0x375697=new QueryCommand(),_0x233dd1=program['opts'](),_0x593746=await createTDXInstance(_0x233dd1);_0x3e2d31['in']&&(_0x3e2d31[_0x1f24f6(0x334)]=_0x3e2d31['in']);const _0x3a4bbf=await _0x375697[_0x1f24f6(0x34d)]({'options':{..._0x233dd1,..._0x3e2d31},'args':_0x4643a3?[_0x4643a3]:[],'tdx':_0x593746});process[_0x1f24f6(0x2af)](_0x3a4bbf);});const segmentCmd=program[a2_0x262de4(0x336)](a2_0x262de4(0x197))[a2_0x262de4(0x26d)]('sg')[a2_0x262de4(0x335)](a2_0x262de4(0x1b7)),segmentListAction=async(_0x303950,_0x4c4b7e)=>{const _0x1cce58=a2_0x262de4,_0x44936a=new SegmentsCommand(),_0x1258a1=program[_0x1cce58(0x2a0)](),_0x3ce2ae=await createTDXInstance(_0x1258a1),_0xcbb07b=await _0x44936a[_0x1cce58(0x34d)]({'options':{..._0x1258a1,..._0x4c4b7e},'args':_0x303950?[_0x303950]:[],'tdx':_0x3ce2ae});process[_0x1cce58(0x2af)](_0xcbb07b);};segmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1bc))[a2_0x262de4(0x335)](a2_0x262de4(0x16a))[a2_0x262de4(0x241)](a2_0x262de4(0x2f8),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x262de4(0x1ca),a2_0x262de4(0x237),'10')[a2_0x262de4(0x34e)](segmentListAction),program[a2_0x262de4(0x336)](a2_0x262de4(0x316),{'hidden':!![]})[a2_0x262de4(0x335)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x262de4(0x241)](a2_0x262de4(0x2f8),a2_0x262de4(0x1de))['option'](a2_0x262de4(0x1ca),a2_0x262de4(0x237),'10')['action'](segmentListAction),segmentCmd['command']('use\x20<path>',{'hidden':!![]})[a2_0x262de4(0x335)](a2_0x262de4(0x203))['action'](async(_0x20cf10,_0x107b4e)=>{const _0x305a30=a2_0x262de4,_0x6eb0e3=new SegmentUseCommand(),_0x4fe0d3=program[_0x305a30(0x2a0)](),_0x1e4721=await createTDXInstance(_0x4fe0d3),_0x2b9f2e=await _0x6eb0e3[_0x305a30(0x34d)]({'options':{..._0x4fe0d3,..._0x107b4e},'args':[_0x20cf10],'tdx':_0x1e4721});process[_0x305a30(0x2af)](_0x2b9f2e);});const segmentViewAction=async(_0x1454e4,_0x178d79)=>{const _0x5e0ebf=a2_0x262de4,_0x316b3e=new SegmentViewCommand(),_0x468aa1=program[_0x5e0ebf(0x2a0)](),_0x1c3aa0=await createTDXInstance(_0x468aa1),_0x151779=await _0x316b3e['run']({'options':{..._0x468aa1,..._0x178d79},'args':_0x1454e4?[_0x1454e4]:[],'tdx':_0x1c3aa0});process[_0x5e0ebf(0x2af)](_0x151779);};segmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2eb))[a2_0x262de4(0x335)](a2_0x262de4(0x37a))[a2_0x262de4(0x241)](a2_0x262de4(0x318),a2_0x262de4(0x14a))[a2_0x262de4(0x34e)](segmentViewAction),segmentCmd['command'](a2_0x262de4(0x342),{'hidden':!![]})[a2_0x262de4(0x26d)](a2_0x262de4(0x1a0))['option'](a2_0x262de4(0x318),'Open\x20segment\x20in\x20web\x20browser')['description'](a2_0x262de4(0x215))[a2_0x262de4(0x34e)](segmentViewAction),segmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x165))[a2_0x262de4(0x335)](a2_0x262de4(0x1e5))['action'](async(_0x5ea87a,_0x6e99e2)=>{const _0x579f44=a2_0x262de4,_0x397ac6=new SegmentDescCommand(),_0x4f969f=program[_0x579f44(0x2a0)](),_0x476def=await createTDXInstance(_0x4f969f),_0x239dd2=await _0x397ac6['run']({'options':{..._0x4f969f,..._0x6e99e2},'args':_0x5ea87a?[_0x5ea87a]:[],'tdx':_0x476def});process[_0x579f44(0x2af)](_0x239dd2);}),segmentCmd['command'](a2_0x262de4(0x2ed))[a2_0x262de4(0x335)](a2_0x262de4(0x16e))[a2_0x262de4(0x34e)](async(_0x101aed,_0x783fd7)=>{const _0x1be6e8=a2_0x262de4,_0x4fd882=new SegmentShowCommand(),_0x1a2c14=program[_0x1be6e8(0x2a0)](),_0x42f23c=await createTDXInstance(_0x1a2c14),_0x84bb37=await _0x4fd882[_0x1be6e8(0x34d)]({'options':{..._0x1a2c14,..._0x783fd7},'args':_0x101aed?[_0x101aed]:[],'tdx':_0x42f23c});process[_0x1be6e8(0x2af)](_0x84bb37);}),segmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2ca),{'hidden':!![]})['description'](a2_0x262de4(0x293))[a2_0x262de4(0x34e)](async(_0x256887,_0x2381dc)=>{const _0x1f10d7=a2_0x262de4,_0x2abcaa=new SegmentFolderListCommand(),_0x26c6e6=program[_0x1f10d7(0x2a0)](),_0x31c7f1=await createTDXInstance(_0x26c6e6),_0x52aece=await _0x2abcaa[_0x1f10d7(0x34d)]({'options':{..._0x26c6e6,..._0x2381dc},'args':[_0x256887],'tdx':_0x31c7f1});process['exit'](_0x52aece);});const folderCmd=segmentCmd['command']('folder',{'hidden':!![]})[a2_0x262de4(0x335)](a2_0x262de4(0x22a));folderCmd[a2_0x262de4(0x336)](a2_0x262de4(0x363))[a2_0x262de4(0x335)](a2_0x262de4(0x345))[a2_0x262de4(0x34e)](async(_0x25259c,_0x534573)=>{const _0xe8c5b4=a2_0x262de4,_0x1bf077=new SegmentFolderShowCommand(),_0x211665=program[_0xe8c5b4(0x2a0)](),_0x599d73=await createTDXInstance(_0x211665),_0x310be7=await _0x1bf077['run']({'options':{..._0x211665,..._0x534573},'args':[_0x25259c],'tdx':_0x599d73});process[_0xe8c5b4(0x2af)](_0x310be7);}),segmentCmd[a2_0x262de4(0x336)]('sql\x20[segment_name]')['description']('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x262de4(0x34e)](async(_0x5b8f5c,_0x2f2e16)=>{const _0x3b27b1=a2_0x262de4,_0x1440e5=new SegmentSQLCommand(),_0x1d9962=program[_0x3b27b1(0x2a0)](),_0x1dc071=await createTDXInstance(_0x1d9962),_0x50334e=await _0x1440e5[_0x3b27b1(0x34d)]({'options':{..._0x1d9962,..._0x2f2e16},'args':_0x5b8f5c?[_0x5b8f5c]:[],'tdx':_0x1dc071});process[_0x3b27b1(0x2af)](_0x50334e);}),segmentCmd['command']('fields\x20[parent_name]')['description'](a2_0x262de4(0x228))[a2_0x262de4(0x34e)](async(_0x5ad503,_0x35f1a0)=>{const _0x55cf39=a2_0x262de4,_0x266cf5=new SegmentFieldsCommand(),_0x199f9c=program[_0x55cf39(0x2a0)](),_0x2cd3fe=await createTDXInstance(_0x199f9c),_0x22cf24=await _0x266cf5[_0x55cf39(0x34d)]({'options':{..._0x199f9c,..._0x35f1a0},'args':_0x5ad503?[_0x5ad503]:[],'tdx':_0x2cd3fe});process[_0x55cf39(0x2af)](_0x22cf24);}),segmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x257))[a2_0x262de4(0x335)](a2_0x262de4(0x38c))[a2_0x262de4(0x241)](a2_0x262de4(0x32a),a2_0x262de4(0x264))['option']('--dry-run',a2_0x262de4(0x217))['action'](async(_0xde78bb,_0x27f708)=>{const _0x46085c=a2_0x262de4,_0x5b05b5=new SegmentPullCommand(),_0x10d23a=program[_0x46085c(0x2a0)](),_0x2c4478=await createTDXInstance(_0x10d23a),_0x31a984=await _0x5b05b5['run']({'options':{..._0x10d23a,..._0x27f708},'args':_0xde78bb?[_0xde78bb]:[],'tdx':_0x2c4478});process[_0x46085c(0x2af)](_0x31a984);}),segmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x263))[a2_0x262de4(0x335)](a2_0x262de4(0x31f))[a2_0x262de4(0x241)](a2_0x262de4(0x32a),'Skip\x20confirmation\x20prompts')['option']('--dry-run',a2_0x262de4(0x217))[a2_0x262de4(0x241)](a2_0x262de4(0x38d),a2_0x262de4(0x2b1))[a2_0x262de4(0x34e)](async(_0x45eaf7,_0x57ffbf)=>{const _0x5bdf3c=a2_0x262de4,_0x1a2c1f=new SegmentPushCommand(),_0x219eb1=program['opts'](),_0x58ead4=await createTDXInstance(_0x219eb1),_0x1f5027=await _0x1a2c1f[_0x5bdf3c(0x34d)]({'options':{..._0x219eb1,..._0x57ffbf},'args':_0x45eaf7?[_0x45eaf7]:[],'tdx':_0x58ead4});process[_0x5bdf3c(0x2af)](_0x1f5027);}),segmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1b1))[a2_0x262de4(0x335)](a2_0x262de4(0x22f))[a2_0x262de4(0x34e)](async(_0x4d2ce3,_0x57c395)=>{const _0x46f76f=a2_0x262de4,_0x161005=new SegmentValidateCommand(),_0xf57fcc=program[_0x46f76f(0x2a0)](),_0x329de3=await createTDXInstance(_0xf57fcc),_0x3facc7=await _0x161005['run']({'options':{..._0xf57fcc,..._0x57c395},'args':_0x4d2ce3?[_0x4d2ce3]:[],'tdx':_0x329de3});process[_0x46f76f(0x2af)](_0x3facc7);}),segmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1ea),{'hidden':!![]})['description'](a2_0x262de4(0x2e0))[a2_0x262de4(0x241)](a2_0x262de4(0x27f),a2_0x262de4(0x35d))['option'](a2_0x262de4(0x28f),a2_0x262de4(0x163))[a2_0x262de4(0x241)](a2_0x262de4(0x19a),a2_0x262de4(0x15e))[a2_0x262de4(0x241)](a2_0x262de4(0x2d9),a2_0x262de4(0x17b))[a2_0x262de4(0x241)](a2_0x262de4(0x1f7),a2_0x262de4(0x341))[a2_0x262de4(0x241)](a2_0x262de4(0x398),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x262de4(0x241)](a2_0x262de4(0x2e7),a2_0x262de4(0x2e2))[a2_0x262de4(0x34e)](async(_0xb6be63,_0x446923)=>{const _0x39d902=a2_0x262de4,_0x36b089=new SegmentCreateCommand(),_0xe3007c=program[_0x39d902(0x2a0)](),_0x5c5dba=await createTDXInstance(_0xe3007c),_0x4ba745=await _0x36b089[_0x39d902(0x34d)]({'options':{..._0xe3007c,..._0x446923},'args':[_0xb6be63],'tdx':_0x5c5dba});process[_0x39d902(0x2af)](_0x4ba745);}),segmentCmd[a2_0x262de4(0x336)]('update\x20<segment_name>',{'hidden':!![]})['description']('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x262de4(0x241)](a2_0x262de4(0x1ba),a2_0x262de4(0x1ac))[a2_0x262de4(0x241)](a2_0x262de4(0x27f),a2_0x262de4(0x1bb))[a2_0x262de4(0x241)](a2_0x262de4(0x28f),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x262de4(0x241)](a2_0x262de4(0x19a),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x262de4(0x241)](a2_0x262de4(0x2d9),a2_0x262de4(0x1db))[a2_0x262de4(0x241)](a2_0x262de4(0x1f7),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x262de4(0x34e)](async(_0x3ea4f1,_0x59acef)=>{const _0x5e1e34=a2_0x262de4,_0x43a6dc=new SegmentUpdateCommand(),_0x302f5f=program[_0x5e1e34(0x2a0)](),_0xfec7be=await createTDXInstance(_0x302f5f),_0x2ae1d0=await _0x43a6dc[_0x5e1e34(0x34d)]({'options':{..._0x302f5f,..._0x59acef},'args':[_0x3ea4f1],'tdx':_0xfec7be});process['exit'](_0x2ae1d0);});const parentCmd=segmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x184),{'hidden':!![]})['description'](a2_0x262de4(0x27c)),parentListAction=async(_0xf4a2a9,_0x32bf62)=>{const _0x20d65a=a2_0x262de4,_0x4ee84b=new ParentSegmentListCommand(),_0x35c713=program[_0x20d65a(0x2a0)](),_0x25b1aa=await createTDXInstance(_0x35c713),_0x4fef53=await _0x4ee84b['run']({'options':{..._0x35c713,..._0x32bf62},'args':_0xf4a2a9?[_0xf4a2a9]:[],'tdx':_0x25b1aa});process[_0x20d65a(0x2af)](_0x4fef53);};parentCmd[a2_0x262de4(0x336)]('list\x20[pattern]')[a2_0x262de4(0x335)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),segmentCmd[a2_0x262de4(0x336)]('parents\x20[pattern]',{'hidden':!![]})['description'](a2_0x262de4(0x201))[a2_0x262de4(0x34e)](parentListAction),parentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x21a))[a2_0x262de4(0x335)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')['option'](a2_0x262de4(0x36e),a2_0x262de4(0x266))[a2_0x262de4(0x241)](a2_0x262de4(0x32a),a2_0x262de4(0x2ea))[a2_0x262de4(0x34e)](async(_0x14ba7a,_0x356424)=>{const _0x194053=a2_0x262de4,_0x15e3dc=new ParentSegmentPullCommand(),_0x4f13e8=program[_0x194053(0x2a0)](),_0x3c7571=await createTDXInstance(_0x4f13e8),_0x3ff993=await _0x15e3dc[_0x194053(0x34d)]({'options':{..._0x4f13e8,..._0x356424},'args':_0x14ba7a?[_0x14ba7a]:[],'tdx':_0x3c7571});process[_0x194053(0x2af)](_0x3ff993);}),parentCmd['command']('push\x20[file]')[a2_0x262de4(0x335)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')['option'](a2_0x262de4(0x32a),a2_0x262de4(0x2ea))[a2_0x262de4(0x34e)](async(_0x3b16f6,_0x436998)=>{const _0xa592c9=a2_0x262de4,_0x1b9335=new ParentSegmentPushCommand(),_0x4b3465=program[_0xa592c9(0x2a0)](),_0x4084b9=await createTDXInstance(_0x4b3465),_0x207eaa=await _0x1b9335['run']({'options':{..._0x4b3465,..._0x436998},'args':_0x3b16f6?[_0x3b16f6]:[],'tdx':_0x4084b9});process[_0xa592c9(0x2af)](_0x207eaa);}),parentCmd[a2_0x262de4(0x336)]('validate\x20[file]')['description'](a2_0x262de4(0x300))[a2_0x262de4(0x241)](a2_0x262de4(0x1c0),a2_0x262de4(0x178))[a2_0x262de4(0x241)](a2_0x262de4(0x1bd),a2_0x262de4(0x2c6))[a2_0x262de4(0x241)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option']('--enriched',a2_0x262de4(0x29f))[a2_0x262de4(0x241)](a2_0x262de4(0x321),a2_0x262de4(0x2c1),a2_0x262de4(0x29a))[a2_0x262de4(0x34e)](async(_0x25cdb2,_0x5ef7ee)=>{const _0x3002e9=a2_0x262de4,_0xcea5cf=new ParentSegmentValidateCommand(),_0xf00466=program[_0x3002e9(0x2a0)](),_0x4a0d9f=await createTDXInstance(_0xf00466),_0x462e9b=await _0xcea5cf['run']({'options':{..._0xf00466,..._0x5ef7ee},'args':_0x25cdb2?[_0x25cdb2]:[],'tdx':_0x4a0d9f});process[_0x3002e9(0x2af)](_0x462e9b);}),parentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x34f))[a2_0x262de4(0x335)](a2_0x262de4(0x1c6))[a2_0x262de4(0x241)](a2_0x262de4(0x1c0),'Show\x20master\x20table\x20sample\x20data')[a2_0x262de4(0x241)](a2_0x262de4(0x1bd),a2_0x262de4(0x21c))[a2_0x262de4(0x241)](a2_0x262de4(0x1e4),a2_0x262de4(0x377))['option'](a2_0x262de4(0x20e),a2_0x262de4(0x1dc))['option'](a2_0x262de4(0x321),a2_0x262de4(0x2c1),a2_0x262de4(0x29a))[a2_0x262de4(0x34e)](async(_0x63b88d,_0x24b524)=>{const _0x649a3b=a2_0x262de4,_0x3d8c6b=new ParentSegmentPreviewCommand(),_0x5b371b=program[_0x649a3b(0x2a0)](),_0x26fd7f=await createTDXInstance(_0x5b371b),_0x4b8030=await _0x3d8c6b[_0x649a3b(0x34d)]({'options':{..._0x5b371b,..._0x24b524},'args':_0x63b88d?[_0x63b88d]:[],'tdx':_0x26fd7f});process['exit'](_0x4b8030);}),parentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x250))[a2_0x262de4(0x335)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x262de4(0x32a),a2_0x262de4(0x2ea))[a2_0x262de4(0x34e)](async(_0x1c977c,_0x172a6a)=>{const _0x1c9212=a2_0x262de4,_0x58a501=new ParentSegmentRunCommand(),_0x17e8e2=program['opts'](),_0x182e7e=await createTDXInstance(_0x17e8e2),_0xaef57c=await _0x58a501[_0x1c9212(0x34d)]({'options':{..._0x17e8e2,..._0x172a6a},'args':_0x1c977c?[_0x1c977c]:[],'tdx':_0x182e7e});process['exit'](_0xaef57c);});const parentSegmentCmd=program['command']('parent-segment')[a2_0x262de4(0x26d)]('ps')[a2_0x262de4(0x335)](a2_0x262de4(0x14f));parentSegmentCmd['command'](a2_0x262de4(0x1a1))[a2_0x262de4(0x335)](a2_0x262de4(0x29b))['action'](parentListAction),parentSegmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x21a))[a2_0x262de4(0x335)](a2_0x262de4(0x2b7))[a2_0x262de4(0x241)](a2_0x262de4(0x36e),'Output\x20file\x20path')[a2_0x262de4(0x241)](a2_0x262de4(0x32a),a2_0x262de4(0x2ea))[a2_0x262de4(0x241)](a2_0x262de4(0x1c3),a2_0x262de4(0x162))['action'](async(_0x93dc9f,_0x3ef894)=>{const _0x2c1d74=a2_0x262de4,_0x13224f=new ParentSegmentPullCommand(),_0x39413a=program['opts'](),_0x108f9c=await createTDXInstance(_0x39413a),_0x327c6a=await _0x13224f[_0x2c1d74(0x34d)]({'options':{..._0x39413a,..._0x3ef894},'args':_0x93dc9f?[_0x93dc9f]:[],'tdx':_0x108f9c});process[_0x2c1d74(0x2af)](_0x327c6a);}),parentSegmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x32d))[a2_0x262de4(0x335)](a2_0x262de4(0x2d6))[a2_0x262de4(0x241)](a2_0x262de4(0x32a),a2_0x262de4(0x2ea))['action'](async(_0x17908d,_0x47bebc)=>{const _0x5a6cbb=a2_0x262de4,_0x3b9603=new ParentSegmentPushCommand(),_0x28cf17=program[_0x5a6cbb(0x2a0)](),_0x309981=await createTDXInstance(_0x28cf17),_0x138359=await _0x3b9603[_0x5a6cbb(0x34d)]({'options':{..._0x28cf17,..._0x47bebc},'args':_0x17908d?[_0x17908d]:[],'tdx':_0x309981});process[_0x5a6cbb(0x2af)](_0x138359);}),parentSegmentCmd[a2_0x262de4(0x336)]('validate\x20[name]')['description'](a2_0x262de4(0x300))[a2_0x262de4(0x241)](a2_0x262de4(0x1c0),a2_0x262de4(0x178))['option'](a2_0x262de4(0x1bd),a2_0x262de4(0x2c6))[a2_0x262de4(0x241)](a2_0x262de4(0x1e4),a2_0x262de4(0x260))[a2_0x262de4(0x241)](a2_0x262de4(0x20e),a2_0x262de4(0x29f))[a2_0x262de4(0x241)](a2_0x262de4(0x321),a2_0x262de4(0x2c1),a2_0x262de4(0x29a))[a2_0x262de4(0x34e)](async(_0x539a61,_0x581e60)=>{const _0x25733d=a2_0x262de4,_0x3aa04e=new ParentSegmentValidateCommand(),_0x4aecb2=program[_0x25733d(0x2a0)](),_0x5c9964=await createTDXInstance(_0x4aecb2),_0x2c2434=await _0x3aa04e[_0x25733d(0x34d)]({'options':{..._0x4aecb2,..._0x581e60},'args':_0x539a61?[_0x539a61]:[],'tdx':_0x5c9964});process[_0x25733d(0x2af)](_0x2c2434);}),parentSegmentCmd[a2_0x262de4(0x336)]('preview\x20[name]')[a2_0x262de4(0x335)](a2_0x262de4(0x1c6))[a2_0x262de4(0x241)]('--master',a2_0x262de4(0x2f6))[a2_0x262de4(0x241)]('--attribute\x20[name]',a2_0x262de4(0x21c))[a2_0x262de4(0x241)](a2_0x262de4(0x1e4),a2_0x262de4(0x377))[a2_0x262de4(0x241)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x262de4(0x241)](a2_0x262de4(0x321),a2_0x262de4(0x2c1),a2_0x262de4(0x29a))[a2_0x262de4(0x34e)](async(_0x5eac5a,_0x1b04c5)=>{const _0x2e7841=a2_0x262de4,_0x4c2e2f=new ParentSegmentPreviewCommand(),_0x300e41=program[_0x2e7841(0x2a0)](),_0x28d86a=await createTDXInstance(_0x300e41),_0x1aa7ca=await _0x4c2e2f[_0x2e7841(0x34d)]({'options':{..._0x300e41,..._0x1b04c5},'args':_0x5eac5a?[_0x5eac5a]:[],'tdx':_0x28d86a});process[_0x2e7841(0x2af)](_0x1aa7ca);}),parentSegmentCmd['command'](a2_0x262de4(0x250))[a2_0x262de4(0x335)](a2_0x262de4(0x36d))['option'](a2_0x262de4(0x32a),a2_0x262de4(0x2ea))[a2_0x262de4(0x34e)](async(_0x23c701,_0x215949)=>{const _0x20c8b7=a2_0x262de4,_0x265c83=new ParentSegmentRunCommand(),_0x27014f=program[_0x20c8b7(0x2a0)](),_0x2ded34=await createTDXInstance(_0x27014f),_0x477d82=await _0x265c83[_0x20c8b7(0x34d)]({'options':{..._0x27014f,..._0x215949},'args':_0x23c701?[_0x23c701]:[],'tdx':_0x2ded34});process[_0x20c8b7(0x2af)](_0x477d82);}),parentSegmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2a5))['description'](a2_0x262de4(0x366))[a2_0x262de4(0x241)](a2_0x262de4(0x1aa),a2_0x262de4(0x38e))[a2_0x262de4(0x241)](a2_0x262de4(0x1d6),'Output\x20as\x20JSON\x20Lines')[a2_0x262de4(0x34e)](async(_0x37b726,_0xf43de3)=>{const _0x4e671c=a2_0x262de4,_0x1d3701=new ParentSegmentFieldsCommand(),_0x2b901b=program[_0x4e671c(0x2a0)](),_0x1238ec=await createTDXInstance(_0x2b901b),_0x1bdf09=await _0x1d3701[_0x4e671c(0x34d)]({'options':{..._0x2b901b,..._0xf43de3},'args':_0x37b726?[_0x37b726]:[],'tdx':_0x1238ec});process['exit'](_0x1bdf09);}),parentSegmentCmd['command'](a2_0x262de4(0x214))[a2_0x262de4(0x335)](a2_0x262de4(0x234))[a2_0x262de4(0x241)](a2_0x262de4(0x318),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x262de4(0x241)](a2_0x262de4(0x1aa),'Output\x20as\x20JSON')[a2_0x262de4(0x241)]('--jsonl',a2_0x262de4(0x282))['action'](async(_0x505d5c,_0x2d77a1)=>{const _0x29610e=a2_0x262de4,_0x2cf0f3=new ParentSegmentViewCommand(),_0x6abed0=program['opts'](),_0x35fd07=await createTDXInstance(_0x6abed0),_0x142f02=await _0x2cf0f3['run']({'options':{..._0x6abed0,..._0x2d77a1},'args':_0x505d5c?[_0x505d5c]:[],'tdx':_0x35fd07});process[_0x29610e(0x2af)](_0x142f02);}),parentSegmentCmd['command'](a2_0x262de4(0x205))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x262de4(0x1aa),'Output\x20as\x20JSON')[a2_0x262de4(0x241)](a2_0x262de4(0x1d6),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x478091,_0x603b04)=>{const _0x4908f6=a2_0x262de4,_0x289769=new ParentSegmentDescCommand(),_0xbace41=program[_0x4908f6(0x2a0)](),_0x406354=await createTDXInstance(_0xbace41),_0x28f187=await _0x289769['run']({'options':{..._0xbace41,..._0x603b04},'args':_0x478091?[_0x478091]:[],'tdx':_0x406354});process['exit'](_0x28f187);}),parentSegmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1a8))['description'](a2_0x262de4(0x24f))[a2_0x262de4(0x241)]('--json',a2_0x262de4(0x38e))[a2_0x262de4(0x241)](a2_0x262de4(0x1d6),'Output\x20as\x20JSON\x20Lines')[a2_0x262de4(0x34e)](async(_0xbf818e,_0x3e697e)=>{const _0x323c50=a2_0x262de4,_0x2f61c7=new ParentSegmentSQLCommand(),_0x7e121=program[_0x323c50(0x2a0)](),_0x353750=await createTDXInstance(_0x7e121),_0x3cdab7=await _0x2f61c7['run']({'options':{..._0x7e121,..._0x3e697e},'args':_0xbf818e?[_0xbf818e]:[],'tdx':_0x353750});process[_0x323c50(0x2af)](_0x3cdab7);}),parentSegmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x20d))[a2_0x262de4(0x335)](a2_0x262de4(0x35b))[a2_0x262de4(0x241)](a2_0x262de4(0x1b4),a2_0x262de4(0x198))[a2_0x262de4(0x241)](a2_0x262de4(0x1aa),a2_0x262de4(0x38e))[a2_0x262de4(0x241)](a2_0x262de4(0x1d6),a2_0x262de4(0x282))[a2_0x262de4(0x34e)](async(_0xeb1873,_0x43cbd8)=>{const _0x49be9c=a2_0x262de4,_0x3bd647=new ParentSegmentShowCommand(),_0x5c19b5=program['opts'](),_0x521216=await createTDXInstance(_0x5c19b5),_0x39ef92=await _0x3bd647['run']({'options':{..._0x5c19b5,..._0x43cbd8},'args':_0xeb1873?[_0xeb1873]:[],'tdx':_0x521216});process[_0x49be9c(0x2af)](_0x39ef92);}),parentSegmentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x24a))['description'](a2_0x262de4(0x245))[a2_0x262de4(0x34e)](async(_0x2434f6,_0x4f440a)=>{const _0x442074=a2_0x262de4,_0x279ebd=new UseCommand(),_0x2c134a=program[_0x442074(0x2a0)](),_0x22e4cd=_0x2434f6?['parent_segment',_0x2434f6]:[],_0x45faff=await _0x279ebd[_0x442074(0x34d)]({'options':{..._0x2c134a,..._0x4f440a},'args':_0x22e4cd,'tdx':null});process['exit'](_0x45faff);}),parentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x274))[a2_0x262de4(0x335)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x262de4(0x1c7)](a2_0x262de4(0x2cc),a2_0x262de4(0x273))[a2_0x262de4(0x1c7)](a2_0x262de4(0x32b),a2_0x262de4(0x2d2))[a2_0x262de4(0x241)](a2_0x262de4(0x27f),'Parent\x20segment\x20description')[a2_0x262de4(0x241)](a2_0x262de4(0x160),a2_0x262de4(0x283))[a2_0x262de4(0x241)]('--schedule-option\x20<value>',a2_0x262de4(0x173))[a2_0x262de4(0x241)](a2_0x262de4(0x1cd),a2_0x262de4(0x21b))[a2_0x262de4(0x241)](a2_0x262de4(0x349),'Attributes\x20as\x20JSON\x20string')[a2_0x262de4(0x241)](a2_0x262de4(0x379),a2_0x262de4(0x30a))[a2_0x262de4(0x241)]('--behaviors\x20<json>',a2_0x262de4(0x362))[a2_0x262de4(0x241)](a2_0x262de4(0x252),a2_0x262de4(0x251))[a2_0x262de4(0x241)](a2_0x262de4(0x326),a2_0x262de4(0x1a3))[a2_0x262de4(0x241)](a2_0x262de4(0x174),a2_0x262de4(0x1f1))[a2_0x262de4(0x34e)](async(_0x15943d,_0x209675)=>{const _0x4b369b=a2_0x262de4,_0x18347e=new ParentSegmentCreateCommand(),_0x29ea66=program[_0x4b369b(0x2a0)](),_0x58fad7=await createTDXInstance(_0x29ea66),_0x4cfff6=await _0x18347e[_0x4b369b(0x34d)]({'options':{..._0x29ea66,..._0x209675},'args':[_0x15943d],'tdx':_0x58fad7});process[_0x4b369b(0x2af)](_0x4cfff6);}),parentCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2b5))['description']('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['option'](a2_0x262de4(0x27f),a2_0x262de4(0x1bb))[a2_0x262de4(0x241)](a2_0x262de4(0x160),a2_0x262de4(0x2ef))[a2_0x262de4(0x241)]('--schedule-option\x20<value>',a2_0x262de4(0x19b))[a2_0x262de4(0x241)]('--timezone\x20<tz>',a2_0x262de4(0x317))[a2_0x262de4(0x241)](a2_0x262de4(0x39f),a2_0x262de4(0x1ab))['option'](a2_0x262de4(0x357),a2_0x262de4(0x364))['option'](a2_0x262de4(0x1fe),'Add\x20behaviors\x20as\x20JSON\x20string')['option'](a2_0x262de4(0x2f2),a2_0x262de4(0x392))[a2_0x262de4(0x34e)](async(_0x2acb8d,_0x49d4b7)=>{const _0x4206aa=a2_0x262de4,_0x446003=new ParentSegmentUpdateCommand(),_0x4228a0=program[_0x4206aa(0x2a0)](),_0x5e10b8=await createTDXInstance(_0x4228a0),_0x5b1002=await _0x446003['run']({'options':{..._0x4228a0,..._0x49d4b7},'args':[_0x2acb8d],'tdx':_0x5e10b8});process[_0x4206aa(0x2af)](_0x5b1002);}),folderCmd[a2_0x262de4(0x336)](a2_0x262de4(0x312))['description'](a2_0x262de4(0x17d))[a2_0x262de4(0x241)]('--description\x20<text>',a2_0x262de4(0x351))[a2_0x262de4(0x241)]('--parent-folder\x20<name>',a2_0x262de4(0x1f0))[a2_0x262de4(0x34e)](async(_0x3b1564,_0x262a18,_0x1dfba4)=>{const _0x497915=a2_0x262de4,_0xfa0c8=new SegmentFolderCreateCommand(),_0x2955c0=program[_0x497915(0x2a0)](),_0x340049=await createTDXInstance(_0x2955c0),_0x4b65f7=await _0xfa0c8[_0x497915(0x34d)]({'options':{..._0x2955c0,..._0x1dfba4},'args':[_0x3b1564,_0x262a18],'tdx':_0x340049});process[_0x497915(0x2af)](_0x4b65f7);}),program['command']('activations\x20<segment_name>')['description'](a2_0x262de4(0x2c9))['action'](async(_0x36d7b3,_0x193022)=>{const _0x2bc6e8=a2_0x262de4,_0x46fc72=new ActivationsCommand(),_0x1e54f3=program['opts'](),_0x3655f2=await createTDXInstance(_0x1e54f3),_0x1f0d34=await _0x46fc72[_0x2bc6e8(0x34d)]({'options':{..._0x1e54f3,..._0x193022},'args':[_0x36d7b3],'tdx':_0x3655f2});process[_0x2bc6e8(0x2af)](_0x1f0d34);});const workflowCmd=program[a2_0x262de4(0x336)](a2_0x262de4(0x328))[a2_0x262de4(0x26d)]('wf')[a2_0x262de4(0x335)](a2_0x262de4(0x2ec)),wfProjectCmd=workflowCmd['command']('project')[a2_0x262de4(0x335)](a2_0x262de4(0x156)),wfProjectListAction=async(_0x118747,_0x17a086)=>{const _0x3615b9=a2_0x262de4,_0x25cd23=new WorkflowProjectsCommand(),_0x51c2e8=program['opts'](),_0xeecf99=await createTDXInstance(_0x51c2e8),_0x1a8f4d=await _0x25cd23[_0x3615b9(0x34d)]({'options':{..._0x51c2e8,..._0x17a086},'args':_0x118747?[_0x118747]:[],'tdx':_0xeecf99});process[_0x3615b9(0x2af)](_0x1a8f4d);};wfProjectCmd[a2_0x262de4(0x336)]('list\x20[pattern]')[a2_0x262de4(0x335)](a2_0x262de4(0x211))[a2_0x262de4(0x34e)](wfProjectListAction),workflowCmd[a2_0x262de4(0x336)]('projects\x20[pattern]')[a2_0x262de4(0x335)](a2_0x262de4(0x19f))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x329303,_0x33f6f)=>{const _0x443a68=a2_0x262de4,_0x5aeb26=new WorkflowWorkflowsCommand(),_0x19e79f=program[_0x443a68(0x2a0)](),_0x42c8db=await createTDXInstance(_0x19e79f),_0x1e67fa=await _0x5aeb26[_0x443a68(0x34d)]({'options':{..._0x19e79f,..._0x33f6f},'args':_0x329303?[_0x329303]:[],'tdx':_0x42c8db});process[_0x443a68(0x2af)](_0x1e67fa);};workflowCmd['command'](a2_0x262de4(0x183))['description'](a2_0x262de4(0x1b9))[a2_0x262de4(0x34e)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x262de4(0x336)](a2_0x262de4(0x353))[a2_0x262de4(0x335)](a2_0x262de4(0x1b6)),wfSessionListAction=async(_0x3a7120,_0x572585)=>{const _0x43525b=a2_0x262de4,_0x5b62e8=new WorkflowSessionsCommand(),_0x437a5c=program[_0x43525b(0x2a0)](),_0x16ea42=await createTDXInstance(_0x437a5c),_0x7288a0=await _0x5b62e8[_0x43525b(0x34d)]({'options':{..._0x437a5c,..._0x572585},'args':_0x3a7120?[_0x3a7120]:[],'tdx':_0x16ea42});process[_0x43525b(0x2af)](_0x7288a0);};wfSessionCmd[a2_0x262de4(0x336)](a2_0x262de4(0x28d))[a2_0x262de4(0x335)](a2_0x262de4(0x396))[a2_0x262de4(0x241)]('--status\x20<status>',a2_0x262de4(0x2f4))['option'](a2_0x262de4(0x1d2),a2_0x262de4(0x322))[a2_0x262de4(0x241)](a2_0x262de4(0x37f),a2_0x262de4(0x20b))[a2_0x262de4(0x34e)](wfSessionListAction),workflowCmd[a2_0x262de4(0x336)](a2_0x262de4(0x185))[a2_0x262de4(0x335)](a2_0x262de4(0x358))['option'](a2_0x262de4(0x1d7),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a2_0x262de4(0x1d2),a2_0x262de4(0x322))['option'](a2_0x262de4(0x37f),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x262de4(0x34e)](wfSessionListAction);const wfAttemptListAction=async(_0x158714,_0x1b6966)=>{const _0x105d6f=a2_0x262de4,_0x25c1a8=new WorkflowAttemptsCommand(),_0x7e629d=program[_0x105d6f(0x2a0)](),_0x89c300=await createTDXInstance(_0x7e629d),_0x2bf3de=await _0x25c1a8[_0x105d6f(0x34d)]({'options':{..._0x7e629d,..._0x1b6966},'args':_0x158714?[_0x158714]:[],'tdx':_0x89c300});process[_0x105d6f(0x2af)](_0x2bf3de);},attemptCmd=workflowCmd['command'](a2_0x262de4(0x287))['description'](a2_0x262de4(0x30d))[a2_0x262de4(0x204)](a2_0x262de4(0x33f),a2_0x262de4(0x2e6))['argument'](a2_0x262de4(0x37e),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x262de4(0x204)]('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x262de4(0x241)](a2_0x262de4(0x1f5),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x262de4(0x241)](a2_0x262de4(0x246),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x262de4(0x1be),a2_0x262de4(0x378))[a2_0x262de4(0x241)](a2_0x262de4(0x311),a2_0x262de4(0x277))[a2_0x262de4(0x241)](a2_0x262de4(0x27d),a2_0x262de4(0x389))[a2_0x262de4(0x241)](a2_0x262de4(0x399),a2_0x262de4(0x39b))['action'](async(_0x2875dd,_0x571330,_0x1c15af,_0x593a3c)=>{const _0x2b66ad=a2_0x262de4;if(_0x2875dd===_0x2b66ad(0x1cc)){await wfAttemptListAction(_0x571330,_0x593a3c);return;}if(!_0x2875dd){attemptCmd[_0x2b66ad(0x368)]();return;}const _0x1fef6d=program[_0x2b66ad(0x2a0)](),_0x534632=await createTDXInstance(_0x1fef6d);let _0x22fa31=0x0;if(!_0x571330){const _0x231171=new WorkflowAttemptCommand();_0x22fa31=await _0x231171[_0x2b66ad(0x34d)]({'options':{..._0x1fef6d,..._0x593a3c},'args':[_0x2875dd],'tdx':_0x534632});}else{if(_0x571330===_0x2b66ad(0x26f)){const _0xb2853e=new WorkflowLogsCommand();_0x22fa31=await _0xb2853e[_0x2b66ad(0x34d)]({'options':{..._0x1fef6d,..._0x593a3c},'args':_0x1c15af?[_0x2875dd,_0x1c15af]:[_0x2875dd],'tdx':_0x534632});}else{if(_0x571330===_0x2b66ad(0x155)){const _0x25d92f=new WorkflowTasksCommand();_0x22fa31=await _0x25d92f[_0x2b66ad(0x34d)]({'options':{..._0x1fef6d,..._0x593a3c},'args':[_0x2875dd],'tdx':_0x534632});}else{if(_0x571330===_0x2b66ad(0x330)){const _0x4b8d3c=new WorkflowKillCommand();_0x22fa31=await _0x4b8d3c[_0x2b66ad(0x34d)]({'options':{..._0x1fef6d,..._0x593a3c},'args':[_0x2875dd],'tdx':_0x534632});}else{if(_0x571330===_0x2b66ad(0x247)){const _0x416b6a=new WorkflowRetryCommand();_0x22fa31=await _0x416b6a[_0x2b66ad(0x34d)]({'options':{..._0x1fef6d,..._0x593a3c},'args':[_0x2b66ad(0x280)+_0x2875dd],'tdx':_0x534632});}else console[_0x2b66ad(0x39d)](_0x2b66ad(0x320)+_0x571330),console['error'](_0x2b66ad(0x1a9)),_0x22fa31=0x1;}}}}process[_0x2b66ad(0x2af)](_0x22fa31);});attemptCmd[a2_0x262de4(0x336)](a2_0x262de4(0x28d))['description'](a2_0x262de4(0x15d))[a2_0x262de4(0x241)](a2_0x262de4(0x399),a2_0x262de4(0x289))[a2_0x262de4(0x34e)](wfAttemptListAction),workflowCmd[a2_0x262de4(0x336)](a2_0x262de4(0x314))[a2_0x262de4(0x335)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x262de4(0x241)](a2_0x262de4(0x399),a2_0x262de4(0x289))['action'](wfAttemptListAction),workflowCmd[a2_0x262de4(0x336)]('timeline\x20[project.workflow]')[a2_0x262de4(0x335)](a2_0x262de4(0x394))['option'](a2_0x262de4(0x32e),a2_0x262de4(0x14d))['option'](a2_0x262de4(0x350),'Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x262de4(0x241)]('--attempt-id\x20<id>',a2_0x262de4(0x36f))[a2_0x262de4(0x34e)](async(_0x4db89d,_0x4426c1)=>{const _0x4f78d4=a2_0x262de4,_0x556b18=new WorkflowTimelineCommand(),_0x106904=program[_0x4f78d4(0x2a0)](),_0x3159bb=await createTDXInstance(_0x106904),_0x5d119c=await _0x556b18[_0x4f78d4(0x34d)]({'options':{..._0x106904,..._0x4426c1},'args':_0x4db89d?[_0x4db89d]:[],'tdx':_0x3159bb});process['exit'](_0x5d119c);}),workflowCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2ee))[a2_0x262de4(0x335)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x262de4(0x241)](a2_0x262de4(0x2c7),a2_0x262de4(0x297))['option'](a2_0x262de4(0x311),a2_0x262de4(0x159))[a2_0x262de4(0x34e)](async(_0x1c449f,_0x424459)=>{const _0x8556d7=a2_0x262de4,_0xfe63da=new WorkflowRetryCommand(),_0x468b37=program[_0x8556d7(0x2a0)](),_0x48811f=await createTDXInstance(_0x468b37),_0x26453f=await _0xfe63da[_0x8556d7(0x34d)]({'options':{..._0x468b37,..._0x424459},'args':[_0x1c449f],'tdx':_0x48811f});process[_0x8556d7(0x2af)](_0x26453f);}),workflowCmd[a2_0x262de4(0x336)](a2_0x262de4(0x39a))[a2_0x262de4(0x335)](a2_0x262de4(0x360))[a2_0x262de4(0x241)]('--param\x20<key=value>',a2_0x262de4(0x307),(_0x4396ea,_0x211df6=[])=>[..._0x211df6,_0x4396ea],[])[a2_0x262de4(0x241)](a2_0x262de4(0x154),a2_0x262de4(0x1f2))[a2_0x262de4(0x34e)](async(_0x32a251,_0x274074)=>{const _0x40c3b7=a2_0x262de4,_0x4ee00e=new WorkflowRunCommand(),_0x372beb=program[_0x40c3b7(0x2a0)](),_0x52573f=await createTDXInstance(_0x372beb),_0x237e15=await _0x4ee00e['run']({'options':{..._0x372beb,..._0x274074},'args':_0x32a251?[_0x32a251]:[],'tdx':_0x52573f});process[_0x40c3b7(0x2af)](_0x237e15);}),workflowCmd['command'](a2_0x262de4(0x2c3))[a2_0x262de4(0x335)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x262de4(0x241)]('--revision\x20<revision>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x262de4(0x34e)](async(_0x23cfbd,_0x3ee6f2,_0x15bb19)=>{const _0x3fae4c=a2_0x262de4,_0x727ced=new WorkflowDownloadCommand(),_0x109fed=program[_0x3fae4c(0x2a0)](),_0x21d088=await createTDXInstance(_0x109fed),_0x400eaf=await _0x727ced[_0x3fae4c(0x34d)]({'options':{..._0x109fed,..._0x15bb19},'args':[_0x23cfbd,_0x3ee6f2||'.'],'tdx':_0x21d088});process['exit'](_0x400eaf);}),workflowCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2bc))['description']('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x262de4(0x241)](a2_0x262de4(0x29d),a2_0x262de4(0x2e9))[a2_0x262de4(0x241)](a2_0x262de4(0x2cd),a2_0x262de4(0x39c))[a2_0x262de4(0x241)](a2_0x262de4(0x32a),a2_0x262de4(0x2ea))[a2_0x262de4(0x34e)](async(_0x2db451,_0x227d7d,_0x5aac9f)=>{const _0x49983a=a2_0x262de4,_0x1900a5=new WorkflowPullCommand(),_0x445b90=program[_0x49983a(0x2a0)](),_0x5a5e29=await createTDXInstance(_0x445b90),_0x5bf3db=await _0x1900a5['run']({'options':{..._0x445b90,..._0x5aac9f},'args':_0x227d7d?[_0x2db451,_0x227d7d]:[_0x2db451],'tdx':_0x5a5e29});process[_0x49983a(0x2af)](_0x5bf3db);}),workflowCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1df))['description']('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')['option'](a2_0x262de4(0x29d),a2_0x262de4(0x16c))[a2_0x262de4(0x241)](a2_0x262de4(0x2cd),'Preview\x20changes\x20without\x20pushing')[a2_0x262de4(0x241)](a2_0x262de4(0x15b),a2_0x262de4(0x28e))[a2_0x262de4(0x241)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x262de4(0x34e)](async(_0x91d33d,_0x31f401)=>{const _0x4949d2=a2_0x262de4,_0x413d81=new WorkflowPushCommand(),_0x27b318=program[_0x4949d2(0x2a0)](),_0x7d6259=await createTDXInstance(_0x27b318),_0x13ab31=await _0x413d81[_0x4949d2(0x34d)]({'options':{..._0x27b318,..._0x31f401},'args':_0x91d33d?[_0x91d33d]:[],'tdx':_0x7d6259});process[_0x4949d2(0x2af)](_0x13ab31);}),workflowCmd[a2_0x262de4(0x336)]('upload\x20[project-name-or-dir]')[a2_0x262de4(0x335)](a2_0x262de4(0x2be))[a2_0x262de4(0x241)](a2_0x262de4(0x31d),a2_0x262de4(0x19e))['option'](a2_0x262de4(0x29d),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x262de4(0x241)](a2_0x262de4(0x15b),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x262de4(0x34e)](async(_0x557c98,_0x37a801)=>{const _0x464896=a2_0x262de4,_0xe85bd5=new WorkflowUploadCommand(),_0x26c1de=program[_0x464896(0x2a0)](),_0x43b322=await createTDXInstance(_0x26c1de),_0x5863c5=await _0xe85bd5[_0x464896(0x34d)]({'options':{..._0x26c1de,..._0x37a801},'args':_0x557c98?[_0x557c98]:[],'tdx':_0x43b322});process[_0x464896(0x2af)](_0x5863c5);}),workflowCmd['command'](a2_0x262de4(0x16d))[a2_0x262de4(0x335)](a2_0x262de4(0x284))[a2_0x262de4(0x241)](a2_0x262de4(0x31d),a2_0x262de4(0x343))[a2_0x262de4(0x241)]('--revision\x20<revision>',a2_0x262de4(0x16c))[a2_0x262de4(0x241)](a2_0x262de4(0x2cd),a2_0x262de4(0x380))[a2_0x262de4(0x241)]('--skip-validation',a2_0x262de4(0x28e))[a2_0x262de4(0x241)](a2_0x262de4(0x32a),a2_0x262de4(0x2ea))[a2_0x262de4(0x34e)](async(_0x5650d4,_0x59c3c9)=>{const _0x2efd1d=a2_0x262de4,_0x1ce87b=new WorkflowCloneCommand(),_0x137f73=program[_0x2efd1d(0x2a0)](),_0x43b78d=await createTDXInstance(_0x137f73),_0x5d4908=await _0x1ce87b[_0x2efd1d(0x34d)]({'options':{..._0x137f73,..._0x59c3c9},'args':_0x5650d4?[_0x5650d4]:[],'tdx':_0x43b78d});process[_0x2efd1d(0x2af)](_0x5d4908);}),workflowCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1f9))[a2_0x262de4(0x335)](a2_0x262de4(0x2b8))[a2_0x262de4(0x34e)](async(_0x2de386,_0x12b727)=>{const _0x1e7897=a2_0x262de4,_0x236026=new WorkflowDeleteCommand(),_0x4ccbd=program[_0x1e7897(0x2a0)](),_0x40d8ac=await createTDXInstance(_0x4ccbd),_0x13d103=await _0x236026['run']({'options':{..._0x4ccbd,..._0x12b727},'args':[_0x2de386],'tdx':_0x40d8ac});process[_0x1e7897(0x2af)](_0x13d103);}),workflowCmd[a2_0x262de4(0x336)]('use\x20[project]')[a2_0x262de4(0x335)](a2_0x262de4(0x303))[a2_0x262de4(0x241)]('--clear',a2_0x262de4(0x196))['action'](async(_0x3aa395,_0x390c0d)=>{const _0x589f87=a2_0x262de4,_0x21ff28=new WorkflowUseCommand(),_0x4ad4fe=program[_0x589f87(0x2a0)](),_0x5edf9e=await createTDXInstance(_0x4ad4fe),_0x5517fd=await _0x21ff28[_0x589f87(0x34d)]({'options':{..._0x4ad4fe,..._0x390c0d},'args':_0x3aa395?[_0x3aa395]:[],'tdx':_0x5edf9e});process[_0x589f87(0x2af)](_0x5517fd);});const wfSecretsCmd=workflowCmd['command'](a2_0x262de4(0x235))[a2_0x262de4(0x335)](a2_0x262de4(0x255));wfSecretsCmd[a2_0x262de4(0x336)]('list\x20[project]')[a2_0x262de4(0x335)](a2_0x262de4(0x15a))[a2_0x262de4(0x34e)](async(_0x289a9b,_0x47b91d)=>{const _0x3c46de=a2_0x262de4,_0x5a3dd4=new WorkflowSecretsListCommand(),_0xcc0faa=program['opts'](),_0x1f127a=await createTDXInstance(_0xcc0faa),_0x108db3=await _0x5a3dd4[_0x3c46de(0x34d)]({'options':{..._0xcc0faa,..._0x47b91d},'args':_0x289a9b?[_0x289a9b]:[],'tdx':_0x1f127a});process[_0x3c46de(0x2af)](_0x108db3);}),wfSecretsCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2a3))['description'](a2_0x262de4(0x23d))['action'](async(_0x2cad87,_0x214ee6)=>{const _0x1a3407=a2_0x262de4,_0x1d21d0=new WorkflowSecretsSetCommand(),_0x4150d9=program['opts'](),_0x288821=await createTDXInstance(_0x4150d9),_0x11bda0=await _0x1d21d0[_0x1a3407(0x34d)]({'options':{..._0x4150d9,..._0x214ee6},'args':_0x2cad87,'tdx':_0x288821});process[_0x1a3407(0x2af)](_0x11bda0);}),wfSecretsCmd[a2_0x262de4(0x336)]('delete\x20<args...>')[a2_0x262de4(0x335)]('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')['option'](a2_0x262de4(0x32a),a2_0x262de4(0x2ea))['action'](async(_0x13f814,_0x116c51)=>{const _0x291036=a2_0x262de4,_0x1f547f=new WorkflowSecretsDeleteCommand(),_0x220db2=program[_0x291036(0x2a0)](),_0x4966a7=await createTDXInstance(_0x220db2),_0x55c518=await _0x1f547f['run']({'options':{..._0x220db2,..._0x116c51},'args':_0x13f814,'tdx':_0x4966a7});process['exit'](_0x55c518);});const jobCmd=program[a2_0x262de4(0x336)](a2_0x262de4(0x292))[a2_0x262de4(0x335)](a2_0x262de4(0x313)),jobListAction=async _0x3c0880=>{const _0x2612e0=a2_0x262de4,_0x1a3514=new JobListCommand(),_0x2bec96=program['opts'](),_0x489b9f=await createTDXInstance(_0x2bec96),_0x510481=await _0x1a3514[_0x2612e0(0x34d)]({'options':{..._0x2bec96,..._0x3c0880},'args':[],'tdx':_0x489b9f});process['exit'](_0x510481);};jobCmd[a2_0x262de4(0x336)]('list')[a2_0x262de4(0x335)](a2_0x262de4(0x308))[a2_0x262de4(0x241)](a2_0x262de4(0x1d7),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x262de4(0x34e)](jobListAction),program[a2_0x262de4(0x336)](a2_0x262de4(0x352),{'hidden':!![]})['description'](a2_0x262de4(0x166))[a2_0x262de4(0x241)](a2_0x262de4(0x1d7),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x262de4(0x34e)](jobListAction),jobCmd[a2_0x262de4(0x336)](a2_0x262de4(0x31c))[a2_0x262de4(0x335)](a2_0x262de4(0x30f))[a2_0x262de4(0x34e)](async(_0xe3ef94,_0x592bc3)=>{const _0x43ce70=a2_0x262de4,_0x355ff2=new JobShowCommand(),_0x832a6f=program[_0x43ce70(0x2a0)](),_0x3fe610=await createTDXInstance(_0x832a6f),_0x570162=await _0x355ff2[_0x43ce70(0x34d)]({'options':{..._0x832a6f,..._0x592bc3},'args':[_0xe3ef94],'tdx':_0x3fe610});process[_0x43ce70(0x2af)](_0x570162);}),jobCmd[a2_0x262de4(0x336)](a2_0x262de4(0x365))['description'](a2_0x262de4(0x2fc))[a2_0x262de4(0x34e)](async(_0x2ebfc1,_0x47e8aa)=>{const _0x293d57=new JobKillCommand(),_0x32e8da=program['opts'](),_0x51d5b5=await createTDXInstance(_0x32e8da),_0x311751=await _0x293d57['run']({'options':{..._0x32e8da,..._0x47e8aa},'args':[_0x2ebfc1],'tdx':_0x51d5b5});process['exit'](_0x311751);}),jobCmd[a2_0x262de4(0x336)](a2_0x262de4(0x285))['description'](a2_0x262de4(0x24b))[a2_0x262de4(0x241)](a2_0x262de4(0x382),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino')['option'](a2_0x262de4(0x152),a2_0x262de4(0x2d8))['option']('--database\x20<name>',a2_0x262de4(0x172),a2_0x262de4(0x230))['action'](async(_0x4910c9,_0x1e3711)=>{const _0x446cfe=a2_0x262de4,_0x1c447a=new JobSubmitCommand(),_0x42e104=program[_0x446cfe(0x2a0)](),_0x100151=await createTDXInstance(_0x42e104),_0x1bc14d=await _0x1c447a[_0x446cfe(0x34d)]({'options':{..._0x42e104,..._0x1e3711},'args':_0x4910c9?[_0x4910c9]:[],'tdx':_0x100151});process['exit'](_0x1bc14d);}),jobCmd[a2_0x262de4(0x336)](a2_0x262de4(0x3a1))[a2_0x262de4(0x335)]('Get\x20job\x20results')[a2_0x262de4(0x34e)](async(_0x2b2849,_0x2c2d6e)=>{const _0x3c1023=a2_0x262de4,_0x1d97dc=new JobResultCommand(),_0x37f240=program[_0x3c1023(0x2a0)](),_0x2382e9=await createTDXInstance(_0x37f240),_0x2f9a22=await _0x1d97dc[_0x3c1023(0x34d)]({'options':{..._0x37f240,..._0x2c2d6e},'args':[_0x2b2849],'tdx':_0x2382e9});process[_0x3c1023(0x2af)](_0x2f9a22);});const llmCmd=program['command'](a2_0x262de4(0x3a3))['description'](a2_0x262de4(0x259));llmCmd[a2_0x262de4(0x336)](a2_0x262de4(0x28a))[a2_0x262de4(0x335)](a2_0x262de4(0x30e))[a2_0x262de4(0x34e)](async(_0x133f9f,_0x5f1f01)=>{const _0x32cb80=a2_0x262de4,_0x225da9=new LLMUseCommand(),_0x3eed30=program['opts'](),_0xe1d687=await createTDXInstance(_0x3eed30),_0x1f0f1c=await _0x225da9[_0x32cb80(0x34d)]({'options':{..._0x3eed30,..._0x5f1f01},'args':[_0x133f9f],'tdx':_0xe1d687});process[_0x32cb80(0x2af)](_0x1f0f1c);}),llmCmd[a2_0x262de4(0x336)](a2_0x262de4(0x267))[a2_0x262de4(0x335)](a2_0x262de4(0x35a))['action'](async _0x56125e=>{const _0x258f66=a2_0x262de4,_0x197964=new LLMModelsCommand(),_0x40f8c8=program[_0x258f66(0x2a0)](),_0x2e2fa0=await createTDXInstance(_0x40f8c8),_0x47caa2=await _0x197964[_0x258f66(0x34d)]({'options':{..._0x40f8c8,..._0x56125e},'args':[],'tdx':_0x2e2fa0});process[_0x258f66(0x2af)](_0x47caa2);});const projectCmd=llmCmd['command'](a2_0x262de4(0x1a5))[a2_0x262de4(0x335)]('LLM\x20project\x20management'),llmProjectListAction=async(_0xa893db,_0x672562)=>{const _0x8d040b=a2_0x262de4,_0x1d7054=new LLMProjectsCommand(),_0x5806bf=program[_0x8d040b(0x2a0)](),_0x500184=await createTDXInstance(_0x5806bf),_0x23d1f8=await _0x1d7054[_0x8d040b(0x34d)]({'options':{..._0x5806bf,..._0x672562},'args':_0xa893db?[_0xa893db]:[],'tdx':_0x500184});process['exit'](_0x23d1f8);};projectCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1a1))[a2_0x262de4(0x335)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x262de4(0x34e)](llmProjectListAction),llmCmd[a2_0x262de4(0x336)](a2_0x262de4(0x243))[a2_0x262de4(0x335)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x262de4(0x34e)](llmProjectListAction),projectCmd[a2_0x262de4(0x336)]('create\x20<name>')[a2_0x262de4(0x335)](a2_0x262de4(0x1e9))[a2_0x262de4(0x241)](a2_0x262de4(0x27f),a2_0x262de4(0x2a1))[a2_0x262de4(0x34e)](async(_0x3bf0de,_0x3add1b)=>{const _0x5127d5=a2_0x262de4,_0xa37dcf=new LLMProjectCreateCommand(),_0x8932b2=program[_0x5127d5(0x2a0)](),_0x4db671=await createTDXInstance(_0x8932b2),_0x968055=await _0xa37dcf[_0x5127d5(0x34d)]({'options':{..._0x8932b2,..._0x3add1b},'args':[_0x3bf0de],'tdx':_0x4db671});process[_0x5127d5(0x2af)](_0x968055);}),projectCmd[a2_0x262de4(0x336)]('delete\x20<name>')[a2_0x262de4(0x335)](a2_0x262de4(0x18a))[a2_0x262de4(0x34e)](async(_0x50fc7e,_0x1cd009)=>{const _0x504860=a2_0x262de4,_0x234368=new LLMProjectDeleteCommand(),_0x31319a=program['opts'](),_0x59500c=await createTDXInstance(_0x31319a),_0x871a25=await _0x234368[_0x504860(0x34d)]({'options':{..._0x31319a,..._0x1cd009},'args':[_0x50fc7e],'tdx':_0x59500c});process[_0x504860(0x2af)](_0x871a25);}),projectCmd[a2_0x262de4(0x336)](a2_0x262de4(0x299))[a2_0x262de4(0x335)](a2_0x262de4(0x346))['option'](a2_0x262de4(0x33d),a2_0x262de4(0x222))[a2_0x262de4(0x241)](a2_0x262de4(0x2cd),a2_0x262de4(0x177))[a2_0x262de4(0x34e)](async(_0x156750,_0x3f582d)=>{const _0x2357e3=a2_0x262de4,_0x254678=new LLMProjectBackupCommand(),_0x4e8380=program[_0x2357e3(0x2a0)](),_0x25de3b=await createTDXInstance(_0x4e8380),_0x592891=await _0x254678['run']({'options':{..._0x4e8380,..._0x3f582d},'args':[_0x156750],'tdx':_0x25de3b});process[_0x2357e3(0x2af)](_0x592891);}),projectCmd[a2_0x262de4(0x336)]('restore\x20<folder>')[a2_0x262de4(0x335)](a2_0x262de4(0x1c9))['option']('--name\x20<new-name>',a2_0x262de4(0x367))[a2_0x262de4(0x241)](a2_0x262de4(0x2cd),a2_0x262de4(0x324))[a2_0x262de4(0x34e)](async(_0x598952,_0x1ff97f)=>{const _0x4f92b0=a2_0x262de4,_0x3b807e=new LLMProjectRestoreCommand(),_0x117be7=program[_0x4f92b0(0x2a0)](),_0x387d28=await createTDXInstance(_0x117be7),_0x3570a1=await _0x3b807e[_0x4f92b0(0x34d)]({'options':{..._0x117be7,..._0x1ff97f},'args':[_0x598952],'tdx':_0x387d28});process['exit'](_0x3570a1);});const llmAgentListAction=async(_0x119c04,_0x3f16fb)=>{const _0x2e3b4e=a2_0x262de4,_0x49b755=new LLMAgentsCommand(),_0x25f761=program[_0x2e3b4e(0x2a0)](),_0xdbc2b3=await createTDXInstance(_0x25f761),_0x1e7628=await _0x49b755[_0x2e3b4e(0x34d)]({'options':{..._0x25f761,..._0x3f16fb},'args':_0x119c04?[_0x119c04]:[],'tdx':_0xdbc2b3});process[_0x2e3b4e(0x2af)](_0x1e7628);};llmCmd[a2_0x262de4(0x336)]('agents\x20[pattern]')[a2_0x262de4(0x335)](a2_0x262de4(0x295))['action'](llmAgentListAction),program[a2_0x262de4(0x336)](a2_0x262de4(0x2d5))[a2_0x262de4(0x335)](a2_0x262de4(0x295))['action'](llmAgentListAction),llmCmd['command']('history\x20[chat-id]')[a2_0x262de4(0x335)](a2_0x262de4(0x1eb))[a2_0x262de4(0x241)](a2_0x262de4(0x281),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x262de4(0x34e)](async(_0x145820,_0x44c66a)=>{const _0x290ccb=a2_0x262de4,_0xa7f3a3=new LLMHistoryCommand(),_0x157742=program[_0x290ccb(0x2a0)](),_0x2f85c3=await createTDXInstance(_0x157742),_0x27d61f=await _0xa7f3a3[_0x290ccb(0x34d)]({'options':{..._0x157742,..._0x44c66a},'args':_0x145820?[_0x145820]:[],'tdx':_0x2f85c3});process[_0x290ccb(0x2af)](_0x27d61f);}),llmCmd[a2_0x262de4(0x336)](a2_0x262de4(0x34b))[a2_0x262de4(0x335)](a2_0x262de4(0x329))[a2_0x262de4(0x241)](a2_0x262de4(0x31b),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on','4000')['option'](a2_0x262de4(0x207),a2_0x262de4(0x21d))[a2_0x262de4(0x241)](a2_0x262de4(0x31a),a2_0x262de4(0x338))[a2_0x262de4(0x34e)](async _0x62afbc=>{const _0x3fa406=a2_0x262de4,_0x399650=new LLMProxyCommand(),_0x6cdf57=program['opts'](),_0x5b270e=await createTDXInstance(_0x6cdf57),_0x27e94a={..._0x62afbc,'port':_0x62afbc['port']?parseInt(_0x62afbc['port'],0xa):undefined},_0x1b76fb=await _0x399650[_0x3fa406(0x34d)]({'options':{..._0x6cdf57,..._0x27e94a},'args':[],'tdx':_0x5b270e});process['exit'](_0x1b76fb);}),program[a2_0x262de4(0x336)]('claude\x20[args...]')[a2_0x262de4(0x32c)]('[options]\x20--\x20[claude-code-args...]')[a2_0x262de4(0x335)](a2_0x262de4(0x208))[a2_0x262de4(0x241)](a2_0x262de4(0x386),a2_0x262de4(0x18c),'sonnet')[a2_0x262de4(0x241)](a2_0x262de4(0x17f),a2_0x262de4(0x1e0))[a2_0x262de4(0x241)](a2_0x262de4(0x333),a2_0x262de4(0x1c8))[a2_0x262de4(0x241)]('--no-proxy',a2_0x262de4(0x151))[a2_0x262de4(0x241)](a2_0x262de4(0x1ae),a2_0x262de4(0x31e))[a2_0x262de4(0x153)]()[a2_0x262de4(0x20f)](!![])[a2_0x262de4(0x28c)]('after','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x262de4(0x34e)](async(_0x3e6a1c,_0x2dd0e0)=>{const _0x46bd23=a2_0x262de4,_0x332259=program[_0x46bd23(0x2a0)](),_0x96758=Array['isArray'](_0x3e6a1c)?_0x3e6a1c:[];if(_0x96758[0x0]===_0x46bd23(0x224)){const _0xe9adf2=new ClaudeStatuslineCommand(),_0x2f815e=await _0xe9adf2['run']({'options':{..._0x332259,..._0x2dd0e0},'args':_0x96758[_0x46bd23(0x18f)](0x1),'tdx':null});process['exit'](_0x2f815e);}if(_0x96758[0x0]===_0x46bd23(0x32c)){const _0x525ee7=new ClaudeUsageCommand(),_0x2569e0=await _0x525ee7[_0x46bd23(0x34d)]({'options':{..._0x332259,..._0x2dd0e0},'args':_0x96758[_0x46bd23(0x18f)](0x1),'tdx':null});process[_0x46bd23(0x2af)](_0x2569e0);}const _0x5d2d3a=new ClaudeCommand(),_0x4e2c00=await createTDXInstance(_0x332259),_0x310d32=await _0x5d2d3a[_0x46bd23(0x34d)]({'options':{..._0x332259,..._0x2dd0e0},'args':_0x96758,'tdx':_0x4e2c00});process['exit'](_0x310d32);}),program['command'](a2_0x262de4(0x38a))[a2_0x262de4(0x335)](a2_0x262de4(0x337))[a2_0x262de4(0x241)]('--clear',a2_0x262de4(0x2ae))[a2_0x262de4(0x241)](a2_0x262de4(0x1b0),a2_0x262de4(0x240))[a2_0x262de4(0x34e)](async(_0x43e5d2,_0x35378f,_0x42b8e3)=>{const _0x342613=a2_0x262de4,_0x4b5e3c=new UseCommand(),_0x66ee59=program[_0x342613(0x2a0)](),_0x49de38=[];if(_0x43e5d2)_0x49de38[_0x342613(0x393)](_0x43e5d2);if(_0x35378f)_0x49de38[_0x342613(0x393)](_0x35378f);const _0x5530d2=await _0x4b5e3c['run']({'options':{..._0x66ee59,..._0x42b8e3},'args':_0x49de38,'tdx':null});process['exit'](_0x5530d2);}),program[a2_0x262de4(0x336)](a2_0x262de4(0x19c))['description'](a2_0x262de4(0x304))['option'](a2_0x262de4(0x1b0),a2_0x262de4(0x1e3))[a2_0x262de4(0x34e)](async(_0x537263,_0x4761d8)=>{const _0x5eea1a=a2_0x262de4,_0x507ea9=new UnsetCommand(),_0x10070b=program[_0x5eea1a(0x2a0)](),_0x125a2d=await _0x507ea9[_0x5eea1a(0x34d)]({'options':{..._0x10070b,..._0x4761d8},'args':[_0x537263],'tdx':null});process[_0x5eea1a(0x2af)](_0x125a2d);}),program[a2_0x262de4(0x336)](a2_0x262de4(0x2d1))[a2_0x262de4(0x335)](a2_0x262de4(0x310))[a2_0x262de4(0x241)](a2_0x262de4(0x281),a2_0x262de4(0x239))['action'](async _0xab02c6=>{const _0x1b2a78=a2_0x262de4,_0x3d2773=new ChatsCommand(),_0x29a039=program[_0x1b2a78(0x2a0)](),_0x4f570e=await createTDXInstance(_0x29a039),_0x58c8f2=await _0x3d2773[_0x1b2a78(0x34d)]({'options':{..._0x29a039,..._0xab02c6},'args':[],'tdx':_0x4f570e});process[_0x1b2a78(0x2af)](_0x58c8f2);});const authCmd=program['command']('auth')[a2_0x262de4(0x335)](a2_0x262de4(0x2a2));async function runAuthStatusCommand(_0x59097b){const _0x40b2aa=a2_0x262de4,_0x341151=new AuthStatusCommand(),_0x45be73=program[_0x40b2aa(0x2a0)](),_0x3444a6=await createTDXInstance(_0x45be73),_0x394adf=await _0x341151[_0x40b2aa(0x34d)]({'options':{..._0x45be73,..._0x59097b},'args':[],'tdx':_0x3444a6});process[_0x40b2aa(0x2af)](_0x394adf);}authCmd['action'](runAuthStatusCommand),authCmd['command'](a2_0x262de4(0x2ba))[a2_0x262de4(0x335)](a2_0x262de4(0x371))[a2_0x262de4(0x34e)](runAuthStatusCommand),authCmd[a2_0x262de4(0x336)](a2_0x262de4(0x210))['description']('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x262de4(0x28c)](a2_0x262de4(0x305),a2_0x262de4(0x2e5))[a2_0x262de4(0x34e)](async _0x59c393=>{const _0x1c9442=a2_0x262de4,_0x346e51=new AuthSetupCommand(),_0x1e1c28=program[_0x1c9442(0x2a0)](),_0x25a22f=await createTDXInstance(_0x1e1c28),_0x4c36ac=await _0x346e51[_0x1c9442(0x34d)]({'options':{..._0x1e1c28,..._0x59c393},'args':[],'tdx':_0x25a22f});process['exit'](_0x4c36ac);}),authCmd[a2_0x262de4(0x336)](a2_0x262de4(0x27a))[a2_0x262de4(0x335)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x262de4(0x28c)](a2_0x262de4(0x305),'\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')['action'](async _0x3742c3=>{const _0x282db4=a2_0x262de4,_0x234660=new AuthClearCommand(),_0x1d62bc=program[_0x282db4(0x2a0)](),_0x55da0a=await _0x234660[_0x282db4(0x34d)]({'options':{..._0x1d62bc,..._0x3742c3},'args':[],'tdx':null});process[_0x282db4(0x2af)](_0x55da0a);});const userCmd=program[a2_0x262de4(0x336)]('user')[a2_0x262de4(0x335)](a2_0x262de4(0x1fd)),userListAction=async _0x4116b5=>{const _0x54a3da=a2_0x262de4,_0x47faad=new UserListCommand(),_0x2de122=program[_0x54a3da(0x2a0)](),_0x58bd70=await createTDXInstance(_0x2de122),_0x543828=await _0x47faad[_0x54a3da(0x34d)]({'options':{..._0x2de122,..._0x4116b5},'args':[],'tdx':_0x58bd70});process['exit'](_0x543828);};userCmd[a2_0x262de4(0x34e)](async _0x3b522f=>{const _0x2ab016=a2_0x262de4,_0xa52447=new UserCommand(),_0x337d21=program[_0x2ab016(0x2a0)](),_0x36db56=await createTDXInstance(_0x337d21),_0x48d866=await _0xa52447[_0x2ab016(0x34d)]({'options':{..._0x337d21,..._0x3b522f},'args':[],'tdx':_0x36db56});process[_0x2ab016(0x2af)](_0x48d866);}),userCmd['command']('list')['description']('List\x20all\x20users\x20in\x20the\x20account')[a2_0x262de4(0x34e)](userListAction),program[a2_0x262de4(0x336)](a2_0x262de4(0x25f))[a2_0x262de4(0x335)](a2_0x262de4(0x1ec))['action'](userListAction),program['command'](a2_0x262de4(0x36a))['description'](a2_0x262de4(0x233))[a2_0x262de4(0x34e)](async _0x1e65ea=>{const _0x36cf45=a2_0x262de4,_0x28ff33=new ProfilesCommand(),_0x32da10=program[_0x36cf45(0x2a0)](),_0x106d1f=await _0x28ff33[_0x36cf45(0x34d)]({'options':{..._0x32da10,..._0x1e65ea},'args':[],'tdx':null});process[_0x36cf45(0x2af)](_0x106d1f);});const profileCmd=program[a2_0x262de4(0x336)]('profile')[a2_0x262de4(0x335)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x262de4(0x34e)](()=>{const _0x1c031c=a2_0x262de4;profileCmd[_0x1c031c(0x232)]();});const profileListAction=async _0x3b3ed5=>{const _0x9f182b=a2_0x262de4,_0x7071d=new ProfilesCommand(),_0x535f76=program['opts'](),_0x27e271=await _0x7071d['run']({'options':{..._0x535f76,..._0x3b3ed5},'args':[],'tdx':null});process[_0x9f182b(0x2af)](_0x27e271);};profileCmd['command'](a2_0x262de4(0x1cc))['description'](a2_0x262de4(0x233))['action'](profileListAction),profileCmd['command'](a2_0x262de4(0x14c))['description'](a2_0x262de4(0x1e7))[a2_0x262de4(0x28c)](a2_0x262de4(0x305),a2_0x262de4(0x1ef))[a2_0x262de4(0x34e)](async(_0x10664f,_0x21a798)=>{const _0x311845=a2_0x262de4,_0x44ea39=new ProfileCreateCommand(),_0x50f0d6=program[_0x311845(0x2a0)](),_0x1c6440=await _0x44ea39[_0x311845(0x34d)]({'options':{..._0x50f0d6,..._0x21a798},'args':_0x10664f?[_0x10664f]:[],'tdx':null});process[_0x311845(0x2af)](_0x1c6440);}),profileCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1d0))[a2_0x262de4(0x335)](a2_0x262de4(0x1a2))[a2_0x262de4(0x28c)](a2_0x262de4(0x305),a2_0x262de4(0x258))[a2_0x262de4(0x34e)](async(_0x20602e,_0x612202)=>{const _0x106132=a2_0x262de4,_0x3548df=new ProfileRemoveCommand(),_0x109467=program[_0x106132(0x2a0)](),_0x461b29=await _0x3548df[_0x106132(0x34d)]({'options':{..._0x109467,..._0x612202},'args':[_0x20602e],'tdx':null});process[_0x106132(0x2af)](_0x461b29);}),profileCmd[a2_0x262de4(0x336)]('set\x20<key=value>')[a2_0x262de4(0x335)](a2_0x262de4(0x23f))[a2_0x262de4(0x28c)](a2_0x262de4(0x305),'\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_0x262de4(0x34e)](async(_0x544570,_0x26a659)=>{const _0x5b1656=a2_0x262de4,_0x41b646=new ProfileSetCommand(),_0x3cc7dd=program['opts'](),_0x3bb365=await _0x41b646[_0x5b1656(0x34d)]({'options':{..._0x3cc7dd,..._0x26a659},'args':[_0x544570],'tdx':null});process[_0x5b1656(0x2af)](_0x3bb365);}),profileCmd['command'](a2_0x262de4(0x231))[a2_0x262de4(0x335)](a2_0x262de4(0x383))['option'](a2_0x262de4(0x1b0),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x262de4(0x28c)](a2_0x262de4(0x305),a2_0x262de4(0x37d))['action'](async(_0x2595e5,_0x2cbd92)=>{const _0x1fa3e2=a2_0x262de4,_0x576cce=new ProfileUseCommand(),_0x3c5f4e=program[_0x1fa3e2(0x2a0)](),_0x4163d2=await _0x576cce['run']({'options':{..._0x3c5f4e,..._0x2cbd92},'args':[_0x2595e5],'tdx':null});process[_0x1fa3e2(0x2af)](_0x4163d2);});const engageCmd=program[a2_0x262de4(0x336)]('engage')['description'](a2_0x262de4(0x21f)),createEngageAction=_0x4979a2=>{return async(_0x1a995a,_0x2b5909)=>{const _0x3ef1de=a2_0x16bf,_0x5d26d3=new _0x4979a2(),_0x46ad62=program[_0x3ef1de(0x2a0)](),_0x59592e=await createTDXInstance(_0x46ad62),_0x412593=await _0x5d26d3['run']({'options':{..._0x46ad62,..._0x2b5909},'args':[_0x1a995a],'tdx':_0x59592e});process[_0x3ef1de(0x2af)](_0x412593);};},createEngageNoArgAction=_0x2bc36d=>{return async _0x11fe96=>{const _0x2ba7b7=a2_0x16bf,_0x2ece7e=new _0x2bc36d(),_0x18d1ca=program[_0x2ba7b7(0x2a0)](),_0x57d913=await createTDXInstance(_0x18d1ca),_0x58a761=await _0x2ece7e[_0x2ba7b7(0x34d)]({'options':{..._0x18d1ca,..._0x11fe96},'args':[],'tdx':_0x57d913});process[_0x2ba7b7(0x2af)](_0x58a761);};},campaignCmd=engageCmd[a2_0x262de4(0x336)]('campaign')[a2_0x262de4(0x335)](a2_0x262de4(0x253)),campaignListAction=async(_0x4407d7,_0x5237fe)=>{const _0x387c80=a2_0x262de4,_0x5e6ca7=new EngageCampaignsCommand(),_0x114f64=program['opts'](),_0x49cb6c=await createTDXInstance(_0x114f64),_0x4b79fa=await _0x5e6ca7[_0x387c80(0x34d)]({'options':{..._0x114f64,..._0x5237fe},'args':_0x4407d7?[_0x4407d7]:[],'tdx':_0x49cb6c});process[_0x387c80(0x2af)](_0x4b79fa);};function a2_0x2275(){const _0x3fa878=['Usage:\x20','Maximum\x20recursion\x20depth\x20(default:\x2010)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Show\x20the\x20most\x20recent\x20chat','argv','resume\x20<name-or-path>','-p,\x20--profile\x20<name>','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Set\x20a\x20profile\x20configuration\x20value','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','option','951768gEhmMc','projects\x20[pattern]','--starter-message\x20<text>','Set\x20or\x20show\x20parent\x20segment\x20context','--reason\x20<text>','retry','8WsZsqs','LLM\x20project\x20to\x20use\x20(overrides\x20context)','use\x20[name]','Submit\x20a\x20job','--agent\x20<ref>','show\x20<name-or-id>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','run\x20[name]','Behaviors\x20from\x20JSON\x20file','--behaviors-file\x20<file>','Campaign\x20management','directory','Manage\x20workflow\x20project\x20secrets','--table','pull\x20[parent_or_file]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Plaintext\x20template\x20content','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Run\x20Trino\x20query\x20with\x20streaming\x20results','pause\x20<name-or-id>','--tsv','users','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','INVALID_ARGUMENT','Set\x20operation\x20timeout\x20in\x20seconds','push\x20[parent_or_file]','Skip\x20confirmation\x20prompts','describe\x20[table]','Output\x20file\x20path\x20(default:\x20<name>.yml)','models','tdx','Database\x20to\x20use\x20(overrides\x20context)','--full','show\x20<name>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','alias','length','logs','campaigns\x20[pattern]','Database\x20to\x20query\x20(default:\x20information_schema)','Trino\x20catalog\x20(default:\x20td)','Master\x20database\x20name','create\x20<name>','subcommandTerm','HTML\x20template\x20content','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Overwrite\x20local\x20changes\x20without\x20confirmation','Read\x20request\x20body\x20from\x20file','clear','Agent\x20description','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','--force','--start-at\x20<datetime>','--description\x20<text>','attempt:','--last','Output\x20as\x20JSON\x20Lines','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','submit\x20[query]','Create\x20a\x20new\x20campaign','attempt','\x20(resolved\x20to\x20','Include\x20retried\x20attempts','use\x20<project-name>','27KKQQkv','addHelpText','list\x20[project]','Skip\x20validation\x20of\x20.dig\x20files','--rule\x20<json>','--format\x20<format>','colorFn','job','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','registeredArguments','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Resume\x20from\x20specific\x20task','--system-prompt\x20<text>','backup\x20<name>','-1d','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','aliases','--revision\x20<revision>','Preview\x20operation\x20without\x20executing','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','opts','Project\x20description','Authentication\x20management','set\x20<args...>','profile','fields\x20[name]','argumentTerm','Pause\x20a\x20running\x20journey','launch\x20<name-or-id>','_hidden','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','options','--yes','Clear\x20session\x20context','exit','buildTime','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','--type\x20<api_type>','-C,\x20--directory\x20<path>','Options:','update\x20<name>','Maximum\x20tool\x20iterations\x20(default:\x204)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Alias\x20for\x20--database\x20(natural\x20language\x20style)','status','Output\x20directory','pull\x20<project>\x20[target-dir]','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Launch\x20a\x20campaign','Campaign\x20description','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','download\x20<project-name>\x20[output-dir]','--description\x20<desc>','forEach','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--from-task\x20<task>','trace','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','folders\x20<parent_name>','create','--database\x20<db>','--dry-run','Campaign\x20name','List\x20journeys\x20(alias\x20for\x20journey\x20list)','journeys\x20[pattern]','chats','Master\x20table\x20name','Delete\x20an\x20email\x20template','summary','agents\x20[pattern]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Update\x20an\x20email\x20template','Read\x20query\x20from\x20file','--folder\x20<name>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','tsv','Starter\x20message','optionTerm','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Resume\x20a\x20paused\x20campaign','Skip\x20population\x20counting','workspace','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','\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','Attempt\x20ID','--no-count-population','settings\x20<type>','Pull\x20specific\x20revision\x20(default:\x20latest)','Skip\x20confirmation\x20prompt','view\x20[segment_name]','Workflow\x20(Digdag)\x20management\x20commands','show\x20[segment_name]','retry\x20<session-id>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','pull\x20[project]\x20[agent-name]','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--add-behaviors-file\x20<file>','-X,\x20--method\x20<method>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Show\x20master\x20table\x20sample\x20data','--limit\x20<rows>','-r,\x20--recursive','-f,\x20--force','schema\x20<type>','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Kill\x20a\x20job','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--plaintext\x20<text>','Email\x20sender\x20ID\x20for\x20delivery','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','join','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','after','List\x20available\x20connector\x20types','Workflow\x20parameter\x20(repeatable)','List\x20jobs','--type\x20<type>','Attributes\x20from\x20JSON\x20file','stats\x20<name-or-path>','LLM\x20agent\x20management','Workflow\x20attempt\x20management','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Show\x20job\x20details','Interactive\x20chat\x20selector','--params\x20<json>','create\x20<parent_name>\x20<folder_name>','Job\x20management\x20commands','attempts\x20[project]','debug','segments\x20[path]','Updated\x20timezone','-w,\x20--web','Update\x20an\x20existing\x20agent','--agent\x20<name>','--port\x20<number>','show\x20<job-id>','--name\x20<name>','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Unknown\x20action:\x20','--interval\x20<range>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--segment\x20<path>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--customer-group\x20<json>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','workflow','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','-y,\x20--yes','--table\x20<table>','usage','push\x20[name]','--follow','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','kill','update\x20<name-or-id>','name','-r,\x20--resume','database','description','command','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','view\x20<name-or-path>','padEnd','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','-o,\x20--output\x20<folder>','duplicate\x20<name-or-id>','[attempt-id]','Show\x20stats\x20for\x20specific\x20stage','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','info\x20[segment_name]','Name\x20for\x20the\x20new\x20project\x20(required)','Open\x20journey\x20in\x20web\x20browser','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','filter','--attributes\x20<json>','1877615mLQxQX','proxy','push\x20[target]','run','action','preview\x20[file]','--session-id\x20<id>','Folder\x20description','jobs','session','flatMap','delete\x20<name-or-id>','Describe\x20table\x20schema','--add-attributes-file\x20<file>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','claude-4.5-sonnet','List\x20available\x20LLM\x20models','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Delete\x20a\x20workspace','Segment\x20description','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','includes','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Campaign\x20type\x20(email\x20or\x20push)','Behaviors\x20as\x20JSON\x20string','show\x20<folder_ref>','Add\x20attributes\x20from\x20JSON\x20file','kill\x20<job-id>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','help','Show\x20agent\x20details','profiles','Create\x20a\x20workspace','get','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','-o,\x20--output\x20<file>','Show\x20timeline\x20for\x20specific\x20attempt','--in\x20<name>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','workspaces\x20[pattern]','--output\x20<file>','1302306WeKBRn','connections','--llm-project\x20<name>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Resume\x20from\x20specific\x20task\x20(retry)','--attributes-file\x20<file>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','optionDescription','--max-tool-iterations\x20<n>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','[action]','--to\x20<timestamp>','Preview\x20without\x20creating\x20the\x20project','--workspace\x20<name>','--job-type\x20<type>','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--model\x20<name>','--timeout\x20<seconds>','Email\x20template\x20management','Force\x20retry\x20even\x20if\x20not\x20failed','use\x20[resource]\x20[value]','Email\x20subject\x20template','Pull\x20child\x20segments\x20to\x20YAML\x20files','--delete','Output\x20as\x20JSON','createAsync','7544663SkWENL','--json-columns\x20<cols>','Add\x20behaviors\x20from\x20JSON\x20file','push','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','--in\x20<database>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','commands','--invisible','--include-retried','run\x20[workflow]','Include\x20retried\x20attempts\x20(for\x20list)','Preview\x20changes\x20without\x20writing\x20files','error','--prompt\x20<text>','--add-attributes\x20<json>','map','result\x20<job-id>','Enable\x20verbose\x20logging','llm','databases\x20[pattern]','Open\x20segment\x20in\x20web\x20browser','--new','create\x20[name]','Follow/watch\x20timeline\x20for\x20running\x20attempts','subcommandDescription','Parent\x20segment\x20management','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','-f,\x20--file\x20<path>','allowUnknownOption','--session-time\x20<time>','tasks','Workflow\x20project\x20management','then','chdir','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','List\x20secret\x20keys\x20for\x20a\x20project','--skip-validation','15rqxfhX','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Filtering\x20rule\x20from\x20JSON\x20file','query\x20[sql]','--schedule-type\x20<type>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Filtering\x20rule\x20as\x20JSON\x20string','apiKey','desc\x20[segment_name]','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','desc','api\x20[endpoint]','System\x20prompt/instructions\x20(default:\x20empty)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','4690110xUzGPF','Custom\x20revision\x20name\x20(default:\x20timestamp)','clone\x20[source-dir]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Change\x20to\x20directory\x20before\x20executing\x20command','List\x20all\x20data\x20connections','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Database\x20name\x20(default:\x20information_schema)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--customer-group-file\x20<file>','Delete\x20an\x20agent','required','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Show\x20only\x20master\x20table\x20validation','resume\x20<name-or-id>','padWidth','Folder\x20name\x20for\x20organization','table','Create\x20segment\x20folder','Data\x20connection\x20management\x20(for\x20activations/exports)','-c,\x20--continue','Show\x20workspace\x20details','journey','--data\x20<data>','workflows\x20[project]','parent','sessions\x20[project]','--editor-type\x20<type>','parse','--debug','Agent\x20prompt/instructions','Delete\x20an\x20LLM\x20project','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','commandDescription','slice','-d,\x20--database\x20<name>','--no-color','Path\x20is\x20not\x20a\x20directory:\x20','show\x20[table]','-v,\x20--verbose','--include-stats','Clear\x20workflow\x20project\x20context','segment','Limit\x20number\x20of\x20rows','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--rule-file\x20<file>','Updated\x20schedule\x20option','unset\x20<resource>','New\x20campaign\x20name','Override\x20project\x20name','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','describe','list\x20[pattern]','Remove\x20a\x20profile','Customer\x20group\x20as\x20JSON\x20string','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','project','List\x20journeys\x20in\x20current\x20context','--stage\x20<name>','sql\x20[name]','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--json','Add\x20attributes\x20as\x20JSON\x20string','New\x20segment\x20name','set','--llm-proxy\x20[url]','json','--default','validate\x20[target]','configureHelp','533904UJDLxb','--limit\x20<n>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Workflow\x20session\x20management','CDP\x20segment\x20management\x20commands','-n,\x20--name\x20<name>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--name\x20<new_name>','Updated\x20description','list\x20[path]','--attribute\x20[name]','--resume-from\x20<task>','Editor\x20type','--master','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','119874FFMLZl','-u,\x20--use','replace','chat\x20[message...]','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','requiredOption','Resume\x20a\x20conversation\x20(shows\x20selector)','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','--max-depth\x20<depth>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','list','--timezone\x20<tz>','agent','us01','remove\x20<name>','Show\x20journey\x20statistics','--from\x20<timestamp>','isDirectory','Workspace\x20description','jsonl','--jsonl','--status\x20<status>','Pause\x20a\x20campaign','tables\x20[pattern]','Database\x20management\x20commands','Move\x20to\x20folder','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--email-sender-id\x20<id>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','push\x20[source-dir]','Continue\x20most\x20recent\x20conversation','types','--limit\x20<number>','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','--behavior\x20[name]','Show\x20segment\x20schema\x20(column\x20types)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Create\x20a\x20new\x20profile','logLevel','Create\x20a\x20new\x20LLM\x20project','create\x20<segment_name>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','templates\x20[pattern]','Export\x20journey(s)\x20as\x20YAML\x20files','\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','Parent\x20folder\x20name\x20for\x20nested\x20folders','Customer\x20group\x20from\x20JSON\x20file','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','-d,\x20--database\x20<database>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','--include-subtasks','INFO','--kind\x20<type>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','delete\x20<project-name-or-id>','--trace','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Read\x20SQL\x20query\x20from\x20file','User\x20management\x20commands','--add-behaviors\x20<json>','Workspace\x20name\x20(required)','--catalog\x20<catalog>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','TRACE','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','argument','desc\x20[name]','\x20-\x20built\x20','--project\x20<name>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','preAction','Duplicate\x20a\x20campaign','End\x20time\x20filter\x20(ISO\x208601\x20format)','--html\x20<html>','show\x20[name]','--enriched','allowExcessArguments','setup','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','New\x20workspace\x20name','view\x20[name]','Show\x20segment\x20details\x20(alias\x20for\x20view)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Push\x20without\x20confirmation','Workspace\x20name','pull\x20[name]','Timezone\x20(e.g.,\x20America/Los_Angeles)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--subject\x20<subject>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Output\x20folder\x20(default:\x20{project_name}.llm)','GET','statusline','repeat','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','isTTY','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','stderr','[DEPRECATED]\x20Segment\x20folder\x20management','Template\x20name','format','gitRevision','hidden','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','information_schema','use\x20<name>','outputHelp','List\x20all\x20available\x20profiles','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','secrets'];a2_0x2275=function(){return _0x3fa878;};return a2_0x2275();}campaignCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1a1))['description'](a2_0x262de4(0x2aa))['option'](a2_0x262de4(0x309),a2_0x262de4(0x226))[a2_0x262de4(0x241)](a2_0x262de4(0x1d7),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x262de4(0x381),a2_0x262de4(0x219))[a2_0x262de4(0x34e)](campaignListAction),engageCmd[a2_0x262de4(0x336)](a2_0x262de4(0x270))[a2_0x262de4(0x335)](a2_0x262de4(0x2df))[a2_0x262de4(0x241)](a2_0x262de4(0x309),a2_0x262de4(0x226))['option'](a2_0x262de4(0x1d7),a2_0x262de4(0x26c))[a2_0x262de4(0x241)]('--workspace\x20<name>','Workspace\x20name')[a2_0x262de4(0x34e)](campaignListAction),campaignCmd[a2_0x262de4(0x336)](a2_0x262de4(0x24d))[a2_0x262de4(0x335)]('Show\x20campaign\x20details')[a2_0x262de4(0x241)](a2_0x262de4(0x381),a2_0x262de4(0x219))[a2_0x262de4(0x241)]('--full',a2_0x262de4(0x33c))[a2_0x262de4(0x34e)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x262de4(0x2cb))[a2_0x262de4(0x335)](a2_0x262de4(0x286))[a2_0x262de4(0x1c7)](a2_0x262de4(0x31d),a2_0x262de4(0x2ce))[a2_0x262de4(0x1c7)](a2_0x262de4(0x309),a2_0x262de4(0x361))[a2_0x262de4(0x241)](a2_0x262de4(0x381),a2_0x262de4(0x1ff))[a2_0x262de4(0x241)](a2_0x262de4(0x2c4),a2_0x262de4(0x2c0))[a2_0x262de4(0x241)](a2_0x262de4(0x323),a2_0x262de4(0x384))[a2_0x262de4(0x241)](a2_0x262de4(0x1dd),a2_0x262de4(0x2ff))[a2_0x262de4(0x241)](a2_0x262de4(0x391),a2_0x262de4(0x221))[a2_0x262de4(0x241)](a2_0x262de4(0x27e),a2_0x262de4(0x1f8))[a2_0x262de4(0x241)](a2_0x262de4(0x1cd),a2_0x262de4(0x2ab))[a2_0x262de4(0x34e)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x262de4(0x336)](a2_0x262de4(0x331))[a2_0x262de4(0x335)]('Update\x20a\x20campaign')[a2_0x262de4(0x241)](a2_0x262de4(0x381),'Workspace\x20name')[a2_0x262de4(0x241)](a2_0x262de4(0x31d),a2_0x262de4(0x19d))[a2_0x262de4(0x241)](a2_0x262de4(0x2c4),a2_0x262de4(0x2c0))[a2_0x262de4(0x241)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x262de4(0x241)]('--email-sender-id\x20<id>',a2_0x262de4(0x2ff))[a2_0x262de4(0x241)](a2_0x262de4(0x391),a2_0x262de4(0x221))['option'](a2_0x262de4(0x27e),a2_0x262de4(0x1f8))[a2_0x262de4(0x241)](a2_0x262de4(0x1cd),a2_0x262de4(0x2ab))[a2_0x262de4(0x34e)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x262de4(0x336)](a2_0x262de4(0x355))['description']('Delete\x20a\x20campaign')[a2_0x262de4(0x241)](a2_0x262de4(0x381),a2_0x262de4(0x219))[a2_0x262de4(0x241)](a2_0x262de4(0x2ad),a2_0x262de4(0x2ea))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2a8))['description'](a2_0x262de4(0x2bf))[a2_0x262de4(0x241)](a2_0x262de4(0x381),a2_0x262de4(0x219))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x262de4(0x25d))[a2_0x262de4(0x335)](a2_0x262de4(0x1d8))[a2_0x262de4(0x241)]('--workspace\x20<name>',a2_0x262de4(0x219))[a2_0x262de4(0x34e)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x262de4(0x336)](a2_0x262de4(0x179))['description'](a2_0x262de4(0x2e1))[a2_0x262de4(0x241)](a2_0x262de4(0x381),'Workspace\x20name')[a2_0x262de4(0x34e)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x262de4(0x33e))['description'](a2_0x262de4(0x20a))[a2_0x262de4(0x241)]('--workspace\x20<name>',a2_0x262de4(0x219))['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x262de4(0x336)]('template')['description'](a2_0x262de4(0x388)),templateListAction=async(_0x2f62fd,_0x7e5dcb)=>{const _0x45c0fc=a2_0x262de4,_0x59a180=new EngageTemplatesCommand(),_0x428d92=program[_0x45c0fc(0x2a0)](),_0x3035c0=await createTDXInstance(_0x428d92),_0x5bd866=await _0x59a180[_0x45c0fc(0x34d)]({'options':{..._0x428d92,..._0x7e5dcb},'args':_0x2f62fd?[_0x2f62fd]:[],'tdx':_0x3035c0});process[_0x45c0fc(0x2af)](_0x5bd866);};templateCmd[a2_0x262de4(0x336)]('list\x20[pattern]')[a2_0x262de4(0x335)](a2_0x262de4(0x1a4))[a2_0x262de4(0x241)](a2_0x262de4(0x381),'Workspace\x20name')['action'](templateListAction),engageCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1ed))[a2_0x262de4(0x335)](a2_0x262de4(0x212))[a2_0x262de4(0x241)](a2_0x262de4(0x381),a2_0x262de4(0x219))[a2_0x262de4(0x34e)](templateListAction),templateCmd['command']('show\x20<name-or-id>')[a2_0x262de4(0x335)]('Show\x20email\x20template\x20details')[a2_0x262de4(0x241)](a2_0x262de4(0x381),a2_0x262de4(0x219))[a2_0x262de4(0x241)]('--full',a2_0x262de4(0x33c))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2cb))[a2_0x262de4(0x335)]('Create\x20an\x20email\x20template')[a2_0x262de4(0x1c7)](a2_0x262de4(0x31d),a2_0x262de4(0x22b))[a2_0x262de4(0x1c7)]('--subject\x20<subject>',a2_0x262de4(0x38b))[a2_0x262de4(0x1c7)](a2_0x262de4(0x20c),a2_0x262de4(0x276))[a2_0x262de4(0x241)](a2_0x262de4(0x381),a2_0x262de4(0x1ff))[a2_0x262de4(0x241)](a2_0x262de4(0x2fe),a2_0x262de4(0x25a))[a2_0x262de4(0x241)](a2_0x262de4(0x186),a2_0x262de4(0x1bf))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command']('update\x20<name-or-id>')[a2_0x262de4(0x335)](a2_0x262de4(0x2d7))['option'](a2_0x262de4(0x381),a2_0x262de4(0x219))[a2_0x262de4(0x241)](a2_0x262de4(0x31d),'New\x20template\x20name')[a2_0x262de4(0x241)](a2_0x262de4(0x21e),a2_0x262de4(0x38b))[a2_0x262de4(0x241)](a2_0x262de4(0x20c),'HTML\x20template\x20content')[a2_0x262de4(0x241)]('--plaintext\x20<text>','Plaintext\x20template\x20content')[a2_0x262de4(0x34e)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x262de4(0x336)](a2_0x262de4(0x355))['description'](a2_0x262de4(0x2d3))[a2_0x262de4(0x241)](a2_0x262de4(0x381),a2_0x262de4(0x219))[a2_0x262de4(0x241)]('--yes',a2_0x262de4(0x2ea))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x262de4(0x2e3))[a2_0x262de4(0x335)]('Workspace\x20management'),workspaceListAction=async(_0x48cdd4,_0x34ff10)=>{const _0x1b11fb=a2_0x262de4,_0x4c000f=new EngageWorkspacesCommand(),_0x2232f0=program[_0x1b11fb(0x2a0)](),_0x2dda96=await createTDXInstance(_0x2232f0),_0x4297e2=await _0x4c000f[_0x1b11fb(0x34d)]({'options':{..._0x2232f0,..._0x34ff10},'args':_0x48cdd4?[_0x48cdd4]:[],'tdx':_0x2dda96});process[_0x1b11fb(0x2af)](_0x4297e2);};workspaceCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1a1))[a2_0x262de4(0x335)](a2_0x262de4(0x302))[a2_0x262de4(0x34e)](workspaceListAction),engageCmd['command'](a2_0x262de4(0x372))[a2_0x262de4(0x335)](a2_0x262de4(0x171))[a2_0x262de4(0x34e)](workspaceListAction),workspaceCmd[a2_0x262de4(0x336)](a2_0x262de4(0x24d))[a2_0x262de4(0x335)](a2_0x262de4(0x180))['option'](a2_0x262de4(0x26a),a2_0x262de4(0x33c))[a2_0x262de4(0x34e)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2cb))[a2_0x262de4(0x335)](a2_0x262de4(0x36b))[a2_0x262de4(0x1c7)](a2_0x262de4(0x31d),a2_0x262de4(0x219))['option'](a2_0x262de4(0x2c4),'Workspace\x20description')['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x262de4(0x336)](a2_0x262de4(0x331))[a2_0x262de4(0x335)]('Update\x20a\x20workspace')[a2_0x262de4(0x241)](a2_0x262de4(0x31d),a2_0x262de4(0x213))[a2_0x262de4(0x241)](a2_0x262de4(0x2c4),a2_0x262de4(0x1d4))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x262de4(0x336)](a2_0x262de4(0x355))[a2_0x262de4(0x335)](a2_0x262de4(0x35c))[a2_0x262de4(0x241)]('--yes','Skip\x20confirmation\x20prompt')[a2_0x262de4(0x34e)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x262de4(0x336)](a2_0x262de4(0x231))[a2_0x262de4(0x335)](a2_0x262de4(0x35e))[a2_0x262de4(0x34e)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x262de4(0x336)]('connection')[a2_0x262de4(0x335)](a2_0x262de4(0x17e)),connectionListAction=async _0x2ee905=>{const _0x287110=a2_0x262de4,_0x46b636=new ConnectionListCommand(),_0x4eee24=program[_0x287110(0x2a0)](),_0x1f8867=await createTDXInstance(_0x4eee24),_0x1f2f43=await _0x46b636[_0x287110(0x34d)]({'options':{..._0x4eee24,..._0x2ee905},'args':[],'tdx':_0x1f8867});process[_0x287110(0x2af)](_0x1f2f43);};connectionCmd[a2_0x262de4(0x336)]('list')[a2_0x262de4(0x335)](a2_0x262de4(0x170))['action'](connectionListAction),program['command'](a2_0x262de4(0x375),{'hidden':!![]})[a2_0x262de4(0x335)](a2_0x262de4(0x23e))[a2_0x262de4(0x34e)](connectionListAction),connectionCmd[a2_0x262de4(0x336)](a2_0x262de4(0x26b))[a2_0x262de4(0x335)]('Show\x20connection\x20details\x20by\x20name')[a2_0x262de4(0x34e)](async(_0x2f5399,_0x54491f)=>{const _0x1027e5=a2_0x262de4,_0x5d7457=new ConnectionShowCommand(),_0x2c8078=program[_0x1027e5(0x2a0)](),_0x376ddb=await createTDXInstance(_0x2c8078),_0x3dad17=await _0x5d7457['run']({'options':{..._0x2c8078,..._0x54491f},'args':[_0x2f5399],'tdx':_0x376ddb});process[_0x1027e5(0x2af)](_0x3dad17);}),connectionCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2fa))[a2_0x262de4(0x335)](a2_0x262de4(0x2c2))[a2_0x262de4(0x34e)](async(_0x50e837,_0x5a74c5)=>{const _0x4aa162=a2_0x262de4,_0x382d16=new ConnectionSchemaCommand(),_0x5ea3fc=program[_0x4aa162(0x2a0)](),_0x1f58df=await createTDXInstance(_0x5ea3fc),_0xb32f39=await _0x382d16[_0x4aa162(0x34d)]({'options':{..._0x5ea3fc,..._0x5a74c5},'args':[_0x50e837],'tdx':_0x1f58df});process['exit'](_0xb32f39);}),connectionCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1e1))['description'](a2_0x262de4(0x306))['action'](async _0x4416b4=>{const _0xc11143=a2_0x262de4,_0x4e7f83=new ConnectionTypesCommand(),_0x5283ec=program['opts'](),_0x38fb4c=await createTDXInstance(_0x5283ec),_0x17b9a4=await _0x4e7f83[_0xc11143(0x34d)]({'options':{..._0x5283ec,..._0x4416b4},'args':[],'tdx':_0x38fb4c});process[_0xc11143(0x2af)](_0x17b9a4);}),connectionCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2e8))['description'](a2_0x262de4(0x161))[a2_0x262de4(0x34e)](async(_0xc00538,_0x3e4fe9)=>{const _0x3207c9=a2_0x262de4,_0x4f8de7=new ConnectionSettingsCommand(),_0x190cad=program['opts'](),_0x165867=await createTDXInstance(_0x190cad),_0x329b92=await _0x4f8de7[_0x3207c9(0x34d)]({'options':{..._0x190cad,..._0x3e4fe9},'args':[_0xc00538],'tdx':_0x165867});process[_0x3207c9(0x2af)](_0x329b92);});const journeyCmd=program[a2_0x262de4(0x336)](a2_0x262de4(0x181))[a2_0x262de4(0x335)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x15ac56,_0x595232)=>{const _0x50f5d7=a2_0x262de4,_0x33864f=new JourneyListCommand(),_0x2784b8=program[_0x50f5d7(0x2a0)](),_0x579d41=await createTDXInstance(_0x2784b8),_0xcd31ef=await _0x33864f[_0x50f5d7(0x34d)]({'options':{..._0x2784b8,..._0x595232},'args':_0x15ac56?[_0x15ac56]:[],'tdx':_0x579d41});process[_0x50f5d7(0x2af)](_0xcd31ef);};journeyCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1a1))[a2_0x262de4(0x335)](a2_0x262de4(0x1a6))['action'](journeyListAction),journeyCmd[a2_0x262de4(0x336)](a2_0x262de4(0x33a))[a2_0x262de4(0x335)]('Show\x20journey\x20details')['option']('-w,\x20--web',a2_0x262de4(0x344))['option'](a2_0x262de4(0x195),'Include\x20execution\x20statistics')[a2_0x262de4(0x34e)](async(_0x213ff9,_0x45f149)=>{const _0x187676=a2_0x262de4,_0x1fa53c=new JourneyViewCommand(),_0x5d0834=program[_0x187676(0x2a0)](),_0x56e1ac=await createTDXInstance(_0x5d0834),_0x9138b9=await _0x1fa53c[_0x187676(0x34d)]({'options':{..._0x5d0834,..._0x45f149},'args':[_0x213ff9],'tdx':_0x56e1ac});process['exit'](_0x9138b9);}),journeyCmd['command'](a2_0x262de4(0x30b))['description'](a2_0x262de4(0x1d1))['option'](a2_0x262de4(0x1a7),a2_0x262de4(0x340))[a2_0x262de4(0x34e)](async(_0x58e884,_0xaca5fc)=>{const _0x43099e=a2_0x262de4,_0x4575a0=new JourneyStatsCommand(),_0x3b3ca0=program[_0x43099e(0x2a0)](),_0x35ab64=await createTDXInstance(_0x3b3ca0),_0x27662f=await _0x4575a0[_0x43099e(0x34d)]({'options':{..._0x3b3ca0,..._0xaca5fc},'args':[_0x58e884],'tdx':_0x35ab64});process[_0x43099e(0x2af)](_0x27662f);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0x262de4(0x335)](a2_0x262de4(0x2a7))[a2_0x262de4(0x34e)](async(_0x10fdc2,_0x269f5d)=>{const _0x31615f=a2_0x262de4,_0x44389b=new JourneyPauseCommand(),_0x527b6e=program[_0x31615f(0x2a0)](),_0x247529=await createTDXInstance(_0x527b6e),_0x3c7036=await _0x44389b[_0x31615f(0x34d)]({'options':{..._0x527b6e,..._0x269f5d},'args':[_0x10fdc2],'tdx':_0x247529});process[_0x31615f(0x2af)](_0x3c7036);}),journeyCmd['command'](a2_0x262de4(0x23b))[a2_0x262de4(0x335)]('Resume\x20a\x20paused\x20journey')[a2_0x262de4(0x34e)](async(_0x1e8d65,_0x4a60b5)=>{const _0x2f69ce=a2_0x262de4,_0x59d1c9=new JourneyResumeCommand(),_0x12f171=program[_0x2f69ce(0x2a0)](),_0x33d1e0=await createTDXInstance(_0x12f171),_0x47314e=await _0x59d1c9[_0x2f69ce(0x34d)]({'options':{..._0x12f171,..._0x4a60b5},'args':[_0x1e8d65],'tdx':_0x33d1e0});process[_0x2f69ce(0x2af)](_0x47314e);}),journeyCmd[a2_0x262de4(0x336)](a2_0x262de4(0x21a))[a2_0x262de4(0x335)](a2_0x262de4(0x1ee))[a2_0x262de4(0x241)]('-y,\x20--yes',a2_0x262de4(0x2ea))[a2_0x262de4(0x241)](a2_0x262de4(0x2cd),a2_0x262de4(0x24e))['action'](async(_0x44cd00,_0x2e485a)=>{const _0x3dd40c=a2_0x262de4,_0x7c0983=new JourneyPullCommand(),_0x5c7e24=program[_0x3dd40c(0x2a0)](),_0x38bd48=await createTDXInstance(_0x5c7e24),_0x35bf1e=await _0x7c0983[_0x3dd40c(0x34d)]({'options':{..._0x5c7e24,..._0x2e485a},'args':_0x44cd00?[_0x44cd00]:[],'tdx':_0x38bd48});process[_0x3dd40c(0x2af)](_0x35bf1e);}),journeyCmd[a2_0x262de4(0x336)](a2_0x262de4(0x34c))[a2_0x262de4(0x335)](a2_0x262de4(0x2fb))[a2_0x262de4(0x34e)](async(_0x3ea8f1,_0x2f861e)=>{const _0x1227aa=a2_0x262de4,_0x16d26c=new JourneyPushCommand(),_0x4faf42=program['opts'](),_0x25536b=await createTDXInstance(_0x4faf42),_0x52222b=await _0x16d26c[_0x1227aa(0x34d)]({'options':{..._0x4faf42,..._0x2f861e},'args':_0x3ea8f1?[_0x3ea8f1]:[],'tdx':_0x25536b});process[_0x1227aa(0x2af)](_0x52222b);}),journeyCmd[a2_0x262de4(0x336)]('validate\x20[target]')[a2_0x262de4(0x335)]('Validate\x20journey\x20YAML\x20files\x20locally')[a2_0x262de4(0x34e)](async(_0x1782ea,_0xaecf29)=>{const _0x59b718=a2_0x262de4,_0x36dc16=new JourneyValidateCommand(),_0x40a99b=program[_0x59b718(0x2a0)](),_0x1fbd09=await createTDXInstance(_0x40a99b),_0x3fa13b=await _0x36dc16['run']({'options':{..._0x40a99b,..._0xaecf29},'args':_0x1782ea?[_0x1782ea]:[],'tdx':_0x1fbd09});process[_0x59b718(0x2af)](_0x3fa13b);}),program[a2_0x262de4(0x336)](a2_0x262de4(0x2d0))[a2_0x262de4(0x335)](a2_0x262de4(0x2cf))[a2_0x262de4(0x34e)](journeyListAction);const agentSyncCmd=program[a2_0x262de4(0x336)](a2_0x262de4(0x1ce))['description'](a2_0x262de4(0x30c));agentSyncCmd[a2_0x262de4(0x336)](a2_0x262de4(0x2f0))[a2_0x262de4(0x335)](a2_0x262de4(0x325))[a2_0x262de4(0x241)]('-o,\x20--output\x20<dir>',a2_0x262de4(0x2bb))[a2_0x262de4(0x241)](a2_0x262de4(0x2f9),a2_0x262de4(0x278))[a2_0x262de4(0x34e)](async(_0x48a8b1,_0xe78dee,_0x378cb0)=>{const _0x2ad0fc=a2_0x262de4,_0x57d1d0=new AgentPullCommand(),_0x3ec7ab=program['opts'](),_0xfd966a=await createTDXInstance(_0x3ec7ab),_0x4b2be5=[];if(_0x48a8b1)_0x4b2be5['push'](_0x48a8b1);if(_0xe78dee)_0x4b2be5[_0x2ad0fc(0x393)](_0xe78dee);const _0x1d6631=await _0x57d1d0['run']({'options':{..._0x3ec7ab,..._0x378cb0},'args':_0x4b2be5,'tdx':_0xfd966a});process['exit'](_0x1d6631);}),agentSyncCmd['command']('push\x20[path]')[a2_0x262de4(0x335)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x262de4(0x241)](a2_0x262de4(0x2f9),a2_0x262de4(0x218))[a2_0x262de4(0x34e)](async(_0x14d7b8,_0xa4c0f5)=>{const _0x4b3ebd=a2_0x262de4,_0x103628=new AgentPushCommand(),_0x435169=program[_0x4b3ebd(0x2a0)](),_0xd622cd=await createTDXInstance(_0x435169),_0xacc8f3=await _0x103628[_0x4b3ebd(0x34d)]({'options':{..._0x435169,..._0xa4c0f5},'args':_0x14d7b8?[_0x14d7b8]:[],'tdx':_0xd622cd});process[_0x4b3ebd(0x2af)](_0xacc8f3);}),agentSyncCmd[a2_0x262de4(0x336)]('clone\x20[source]')[a2_0x262de4(0x335)](a2_0x262de4(0x296))[a2_0x262de4(0x241)](a2_0x262de4(0x1b8),a2_0x262de4(0x343))['action'](async(_0x3a7395,_0xb249f8)=>{const _0x163039=a2_0x262de4,_0x1d7b6b=new AgentCloneCommand(),_0x373f02=program[_0x163039(0x2a0)](),_0xfdc98f=await createTDXInstance(_0x373f02),_0x4960a6=await _0x1d7b6b[_0x163039(0x34d)]({'options':{..._0x373f02,..._0xb249f8},'args':_0x3a7395?[_0x3a7395]:[],'tdx':_0xfdc98f});process['exit'](_0x4960a6);}),agentSyncCmd[a2_0x262de4(0x336)](a2_0x262de4(0x1a1))['description']('List\x20agents\x20in\x20current\x20project')['action'](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')[a2_0x262de4(0x335)](a2_0x262de4(0x369))[a2_0x262de4(0x34e)](async(_0x190374,_0x563a53)=>{const _0x4f02b7=a2_0x262de4,_0x40b632=new LLMAgentShowCommand(),_0x5a5925=program[_0x4f02b7(0x2a0)](),_0x3e9115=await createTDXInstance(_0x5a5925),_0x10626f=await _0x40b632[_0x4f02b7(0x34d)]({'options':{..._0x5a5925,..._0x563a53},'args':[_0x190374],'tdx':_0x3e9115});process[_0x4f02b7(0x2af)](_0x10626f);}),agentSyncCmd[a2_0x262de4(0x336)](a2_0x262de4(0x274))[a2_0x262de4(0x335)](a2_0x262de4(0x2bd))[a2_0x262de4(0x241)](a2_0x262de4(0x298),a2_0x262de4(0x169))[a2_0x262de4(0x241)](a2_0x262de4(0x386),a2_0x262de4(0x339),a2_0x262de4(0x359))['option'](a2_0x262de4(0x244),a2_0x262de4(0x2dc))['option'](a2_0x262de4(0x37c),a2_0x262de4(0x2b6),'4')[a2_0x262de4(0x241)]('--temperature\x20<n>',a2_0x262de4(0x1cb),'0.7')[a2_0x262de4(0x34e)](async(_0x2b57ef,_0x1c7092)=>{const _0x327e41=a2_0x262de4,_0x45f5d7=new LLMAgentCreateCommand(),_0x6916d0=program['opts'](),_0x3d797c=await createTDXInstance(_0x6916d0),_0x8db044=await _0x45f5d7[_0x327e41(0x34d)]({'options':{..._0x6916d0,..._0x1c7092},'args':[_0x2b57ef],'tdx':_0x3d797c});process[_0x327e41(0x2af)](_0x8db044);}),agentSyncCmd['command']('update\x20<agent-name>')['description'](a2_0x262de4(0x319))[a2_0x262de4(0x241)]('--name\x20<text>','Agent\x20name')['option'](a2_0x262de4(0x39e),a2_0x262de4(0x189))[a2_0x262de4(0x241)](a2_0x262de4(0x27f),a2_0x262de4(0x27b))[a2_0x262de4(0x241)](a2_0x262de4(0x244),a2_0x262de4(0x2dc))[a2_0x262de4(0x34e)](async(_0x11d780,_0x33ee65)=>{const _0x4c65ee=a2_0x262de4,_0xf7749c=new LLMAgentUpdateCommand(),_0x10e09c=program[_0x4c65ee(0x2a0)](),_0x2fd83f=await createTDXInstance(_0x10e09c),_0x2816d6=await _0xf7749c['run']({'options':{..._0x10e09c,..._0x33ee65},'args':[_0x11d780],'tdx':_0x2fd83f});process[_0x4c65ee(0x2af)](_0x2816d6);}),agentSyncCmd[a2_0x262de4(0x336)]('delete\x20<agent-name>')['description'](a2_0x262de4(0x175))[a2_0x262de4(0x34e)](async(_0x17e384,_0x3689dd)=>{const _0x2dadd0=a2_0x262de4,_0x48a444=new LLMAgentDeleteCommand(),_0x5e366a=program[_0x2dadd0(0x2a0)](),_0x1283d2=await createTDXInstance(_0x5e366a),_0x429291=await _0x48a444[_0x2dadd0(0x34d)]({'options':{..._0x5e366a,..._0x3689dd},'args':[_0x17e384],'tdx':_0x1283d2});process[_0x2dadd0(0x2af)](_0x429291);});export{program};export function runCLI(){const _0x25515a=a2_0x262de4,_0x70a774=!process[_0x25515a(0x23a)]['slice'](0x2)['length'];showBriefHelp=_0x70a774,program[_0x25515a(0x187)](process['argv']),_0x70a774&&program[_0x25515a(0x232)](),process[_0x25515a(0x229)][_0x25515a(0x227)]&&process['argv']['length']>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x25515a(0x157)](_0x3519f4=>{_0x3519f4&&displayUpdateNotification(_0x3519f4);})['catch'](()=>{});}
|