@treasuredata/tdx 2026.3.25 → 2026.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-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/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.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/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.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/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.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.d.ts +5 -0
- package/dist/sdk/segment.d.ts.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/segment.js.map +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/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x40ffc1=a2_0x3625;(function(_0x217b39,_0x528cb3){const _0x386046=a2_0x3625,_0x154b5c=_0x217b39();while(!![]){try{const _0x3ecac8=-parseInt(_0x386046(0x2dc))/0x1*(-parseInt(_0x386046(0x1a9))/0x2)+-parseInt(_0x386046(0x2ba))/0x3+-parseInt(_0x386046(0x1f9))/0x4+parseInt(_0x386046(0x3e4))/0x5+-parseInt(_0x386046(0x216))/0x6+parseInt(_0x386046(0x325))/0x7+parseInt(_0x386046(0x270))/0x8*(parseInt(_0x386046(0x146))/0x9);if(_0x3ecac8===_0x528cb3)break;else _0x154b5c['push'](_0x154b5c['shift']());}catch(_0x5b3f5e){_0x154b5c['push'](_0x154b5c['shift']());}}}(a2_0x9c7c,0x532fa));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageAlwaysOnCampaignsCommand,EngageAlwaysOnCampaignShowCommand,EngageAlwaysOnCampaignCreateCommand,EngageAlwaysOnCampaignUpdateCommand,EngageAlwaysOnCampaignDeleteCommand,EngageAlwaysOnCampaignLaunchCommand,EngageAlwaysOnCampaignPauseCommand,EngageAlwaysOnCampaignResumeCommand,EngageAlwaysOnCampaignFinishCommand,EngageAlwaysOnCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{EngageCampaignPullCommand}from'./commands/engage-campaign-pull-command.js';import{EngageCampaignPushCommand}from'./commands/engage-campaign-push-command.js';import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-command.js';import{EngageTemplateValidateCommand}from'./commands/engage-template-validate-command.js';import{EngageTemplatePullCommand}from'./commands/engage-template-pull-command.js';import{EngageTemplatePushCommand}from'./commands/engage-template-push-command.js';import{DeliveryEmailSendersCommand}from'./commands/delivery-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{AuthLoginCommand}from'./commands/auth-login-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{PolicyCommand,PolicyListCommand,PolicyShowCommand}from'./commands/policy-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x40ffc1(0x1c7)][a2_0x40ffc1(0x246)]('--version')){let versionOutput=a2_0x40ffc1(0x351)+currentVersion;buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x40ffc1(0x36b)])&&(versionOutput+='\x20('+buildInfo[a2_0x40ffc1(0x36b)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x40ffc1(0x3c1)+buildInfo[a2_0x40ffc1(0x28a)]),console[a2_0x40ffc1(0x1b4)](versionOutput),process['exit'](0x0);}const program=new Command();export function mergeCommandOptions(_0xa445a0,_0x3b9d1d){const _0x47c44b={..._0xa445a0};for(const [_0x1d09cc,_0x28c238]of Object['entries'](_0x3b9d1d)){_0x28c238!==undefined&&(_0x47c44b[_0x1d09cc]=_0x28c238);}return _0x47c44b;}let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';function a2_0x9c7c(){const _0xe74bf5=['Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Pull\x20workflow\x20project\x20to\x20local\x20folder','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','--max-tool-iterations\x20<n>','segments\x20[path]','Delete\x20an\x20agent','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Show\x20only\x20master\x20table\x20validation','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Kill\x20a\x20job','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)','outputHelp','--status\x20<status>','journey','isTTY','createAsync','tdx','--no-color','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Open\x20segment\x20in\x20web\x20browser','Show\x20campaign\x20details','push','database','Campaign\x20name','List\x20available\x20connector\x20types','Updated\x20timezone','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','api\x20[endpoint]','subcommandDescription','Job\x20priority\x20(-2\x20to\x202)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','1658580XrylyQ','\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=ap01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','delete\x20<project-name-or-id>','show\x20<policy>','--force','[EXPERIMENTAL]\x20Show\x20chat\x20log','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Email\x20template\x20management','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','attempts\x20[project]','update\x20<name>','--path\x20<file-path>','parent-segment','TRACE','Show\x20timeline\x20for\x20specific\x20attempt','json','Create\x20a\x20scheduled\x20query','Database\x20name','Override\x20project\x20name','Include\x20retried\x20attempts\x20(for\x20list)','--start-at\x20<datetime>','Delete\x20a\x20scheduled\x20query','show\x20[table]','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','parse','--time\x20<iso8601>','--llm-project\x20<name>','auth','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','Pause\x20a\x20running\x20journey','resume\x20<name-or-path>','argumentTerm','15661JApWEe','Agent\x20name','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Job\x20management\x20commands','Maximum\x20recursion\x20depth\x20(default:\x2010)','Force\x20retry\x20even\x20if\x20not\x20failed','view\x20[segment_name]','catch','init\x20[name]','use\x20[project]','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Create\x20a\x20new\x20LLM\x20project','create\x20<segment_name>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--output\x20<file>','--yes','--add-attributes\x20<json>','--master','Enable\x20verbose\x20logging','--session-id\x20<id>','secrets','run\x20[workflow]','optionTerm','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','history\x20[chat-id]','commandDescription','status','--from-task\x20<task>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','show\x20[name]','Output\x20as\x20JSON\x20Lines','Commands:','List\x20secret\x20keys\x20for\x20a\x20project','format','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','List\x20jobs','Read\x20SQL\x20query\x20from\x20file','Parent\x20segment\x20description','info\x20[segment_name]','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Follow/watch\x20timeline\x20for\x20running\x20attempts','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','map','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--customer-group-file\x20<file>','-o,\x20--output\x20<file>','Clear\x20workflow\x20project\x20context','Show\x20connection\x20details\x20by\x20name','preAction','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Options:','--starter-message\x20<text>','push\x20[file]','--resume-from\x20<task>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Agent\x20description','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Skip\x20validation\x20of\x20.dig\x20files','Set\x20operation\x20timeout\x20in\x20seconds','chdir','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','get','Version\x20number\x20to\x20view','[task-name]','--stream','join','Parse\x20and\x20validate\x20without\x20executing','Show\x20journey\x20statistics','query\x20[sql]','template','Show\x20workspace\x20details','--max-depth\x20<depth>','2193429yrPnBA','download\x20<project-name>\x20[output-dir]','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','Query\x20engine\x20version','--to\x20<date>','then','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Filtering\x20rule\x20from\x20JSON\x20file','Master\x20database\x20name','stats\x20<name-or-path>','filter','delete\x20<name-or-id>','Invalid\x20editor\x20type:\x20','activations\x20<segment_name>','Show\x20agent\x20details','create\x20<parent_name>\x20<folder_name>','--attributes\x20<json>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Include\x20execution\x20statistics','--last','Run\x20specific\x20tests\x20(comma-separated)','\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','Pull\x20templates\x20to\x20YAML\x20files','--limit\x20<number>','pull\x20[parent_or_file]','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','\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','--add-attributes-file\x20<file>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Read\x20HTML\x20template\x20from\x20file','Path\x20is\x20not\x20a\x20directory:\x20','--temperature\x20<n>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Personalization\x20service\x20management','Project\x20description','Segment\x20description','--retry-limit\x20<0~32>','run\x20<name>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Preview\x20changes\x20without\x20writing\x20files','LLM\x20project\x20management','tdx\x20','engage_workspace','End\x20time\x20filter\x20(ISO\x208601\x20format)','upgrade','Update\x20a\x20campaign','update\x20<name-or-id>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','apiKey','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','restore\x20<folder>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','delete\x20<name>','--table','Journey\x20version\x20management','--in\x20<db>','noColor','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Output\x20as\x20JSON','--html\x20<html>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','-r,\x20--recursive','--from\x20<n>','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','gitRevision','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Email\x20subject\x20template','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','--delete','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','view\x20[name]','databases\x20[pattern]','always-on-campaign','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','log\x20<chat-id>','create','CDP\x20segment\x20management\x20commands','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','logs','-f,\x20--force','Table\x20management\x20commands','-c,\x20--continue','--description\x20<text>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--json-columns\x20<cols>','--reason\x20<text>','Open\x20journey\x20in\x20web\x20browser','Campaign\x20description','Run\x20tests\x20for\x20an\x20LLM\x20agent','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','run','--name\x20<new-name>','chat\x20[message...]','Finish\x20an\x20always-on\x20campaign','description','--timeout\x20<seconds>','Show\x20authentication\x20status\x20and\x20current\x20context','set','Updated\x20description','New\x20campaign\x20name','--reeval','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','--method\x20<pm>','Preview\x20operation\x20without\x20executing','-u,\x20--use','statusline','registeredArguments','Delete\x20an\x20email\x20template','Validate\x20campaign\x20YAML\x20files\x20locally','New\x20segment\x20name','isArray','unset\x20<resource>','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','run\x20[name]','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','--table\x20<table>','New\x20template\x20name','--parent-segment\x20<name>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','activations\x20<name-or-path>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','workflows\x20[project]','-y,\x20--yes','pull\x20[name]','aliases','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Clear\x20session\x20context','campaign','always-on-campaigns\x20[pattern]','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Limit\x20number\x20of\x20rows','use\x20<path>','--name\x20<new_name>','--prompt\x20<text>','User\x20management\x20commands','allowUnknownOption','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','push\x20[parent_or_file]','long','describe','validate\x20[target]','--database\x20<db>','upload\x20[project-name-or-dir]','Include\x20raw\x20history\x20data\x20in\x20output','sql\x20[segment_name]','\x20-\x20built\x20','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','List\x20email\x20senders','flags','option','padEnd','Workflow\x20project\x20management','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','--delay\x20<seconds>','Retry\x20limit\x20(0\x20to\x2032)','--include-history','Email\x20sender\x20ID\x20for\x20delivery','validate\x20[file]','--result\x20<url>','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','Custom\x20revision\x20name\x20(default:\x20timestamp)','--session-time\x20<time>','Name\x20for\x20the\x20new\x20project\x20(required)','variadic','Customer\x20group\x20as\x20JSON\x20string','table','Resume\x20from\x20specific\x20task\x20(retry)','replace','Trino\x20catalog\x20(default:\x20td)','--rule-file\x20<file>','-r,\x20--resume','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','--html-file\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','--dry-run','help','accessToken','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--json','-1d','2662350YpIqzP','--enable-utm-tracking','-v,\x20--verbose','clear','Usage:\x20','_hidden','-d,\x20--database\x20<database>','addHelpText','job','Create\x20a\x20new\x20campaign','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','attempt','JSON\x20columns\x20for\x20connector\x20(comma-separated)','delete\x20<agent-name>','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','Show\x20stats\x20for\x20specific\x20stage','Start\x20a\x20new\x20chat\x20session','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Duplicate\x20an\x20always-on\x20campaign','Workflow\x20session\x20management','site','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Updated\x20schedule\x20option','Add\x20behaviors\x20from\x20JSON\x20file','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Model\x20type\x20(default:\x20claude-4.5-sonnet)','show\x20[segment_name]','Pull\x20campaigns\x20to\x20YAML\x20files','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','fields\x20[name]','hidden','--trace','--job-type\x20<type>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','find','--plaintext\x20<text>','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','desc\x20[name]','types','Preview\x20without\x20creating\x20the\x20project','agents\x20[pattern]','Starting\x20offset\x20(default:\x200)','Invalid\x20--limit\x20value:\x20\x22','Enable\x20UTM\x20tracking','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--timezone\x20<tz>','Run\x20Trino\x20query\x20with\x20streaming\x20results','--schedule-option\x20<value>','create\x20<name>','-n,\x20--name\x20<name>','--add-behaviors-file\x20<file>','--jsonl','--type\x20<type>','--segment\x20<path>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','validate\x20[name]','1420353hKQuGV','folders\x20<parent_name>','repeat','List\x20all\x20available\x20profiles','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','clone\x20[source]','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','login','--params\x20<json>','--data\x20<data>','hook','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Manage\x20workflow\x20project\x20secrets','Resume\x20a\x20paused\x20journey','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','use\x20[resource]\x20[value]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','[attempt-id]','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','argument','--folder\x20<name>','submit\x20[query]','forEach','--attributes-file\x20<file>','Save\x20output\x20to\x20file','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','stderr','Get\x20job\x20results','--clear','configureHelp','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Campaign\x20management','Show\x20segment\x20details\x20(alias\x20for\x20view)','pull\x20<project>\x20[target-dir]','--cron\x20<expression>','Database\x20name\x20(required)','Remove\x20API\x20key\x20from\x20system\x20keychain','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','user','Create\x20a\x20workspace','--include-retried','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','List\x20all\x20data\x20connections','--customer-group\x20<json>','stringify','Make\x20segment\x20invisible\x20(default:\x20visible)','Overwrite\x20local\x20changes\x20without\x20confirmation','project','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Show\x20journey\x20details','parents\x20[pattern]','Workspace\x20name','--interval\x20<range>','history\x20<name>','attempt:','Result\x20output\x20destination\x20URL','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','fields\x20[parent_name]','use\x20<name>','Master\x20table\x20name','preview\x20[name]','Create\x20segment\x20folder','Scheduled\x20query\x20management\x20commands','--invisible','0.7','Show\x20always-on\x20campaign\x20details','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','allowExcessArguments','kill','List\x20journeys\x20in\x20current\x20context','Create\x20a\x20new\x20always-on\x20campaign','Resume\x20a\x20paused\x20campaign','describe\x20[table]','--limit\x20<n>','Output\x20directory','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','--description\x20<desc>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','length','Attributes\x20as\x20JSON\x20string','Directory\x20does\x20not\x20exist:\x20','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','INFO','launch\x20<name-or-id>','engage','projects\x20[pattern]','Database\x20to\x20query\x20(default:\x20information_schema)','preview\x20[file]','GET','Validate\x20template\x20YAML\x20files\x20locally','action','Folder\x20name\x20for\x20organization','information_schema','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','connections','2CCGpHt','Pause\x20a\x20campaign','set\x20<args...>','Skip\x20confirmation\x20prompt','List\x20activations\x20for\x20a\x20journey','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','colorFn','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','tsv','log','--name\x20<names>','agent','Preview\x20changes\x20without\x20pushing','models','Database\x20management\x20commands','timeline\x20[project.workflow]','Plaintext\x20template\x20content','list\x20[pattern]','-d,\x20--database\x20<db>','pull\x20[workspace-name]','--name\x20<name>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)',',\x20version\x20','Agent\x20prompt/instructions','[options]\x20--\x20[claude-code-args...]','requiredOption','argv','stdout','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Reason\x20for\x20killing\x20the\x20attempt','trace','name','profiles','--verbose','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','--model\x20<name>','create\x20<name-or-path>','--num\x20<1-10>','resume\x20<name-or-id>','schedule','--from\x20<date>','Resume\x20a\x20conversation\x20(shows\x20selector)','--kind\x20<type>','List\x20agents\x20in\x20current\x20project','--to\x20<n>','create\x20[name]','--behavior\x20[name]','jsonl','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Workspace\x20description','policy','retry','\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','mcp','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20job\x20details','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','show\x20<name-or-id>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','desc','RT\x202.0\x20configuration\x20management','Add\x20behaviors\x20as\x20JSON\x20string','--include-stats','required','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Delete\x20a\x20campaign','--rule\x20<json>','journeys\x20[pattern]','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','view\x20<name-or-path>','Show\x20journey\x20table\x20column-to-step\x20mapping','workflow','2544936WGudvC','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','opts','--from\x20<timestamp>','-w,\x20--web','users','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--attribute\x20[name]','Delivery\x20operations\x20(email\x20senders)','update\x20<agent-name>','--priority\x20<-2~2>','--catalog\x20<catalog>','session','duplicate\x20<name-or-id>','split','\x22.\x20Must\x20be\x20a\x20number.','options','Maximum\x20tool\x20iterations\x20(default:\x204)','logLevel','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)','Campaign\x20type\x20(email\x20or\x20push)','Skip\x20confirmation\x20prompts','workspace','Data\x20connection\x20management\x20(for\x20activations/exports)','Include\x20retried\x20attempts','--enriched','usage','1671336AMgbbO','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Delete\x20an\x20LLM\x20project','--color','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','push\x20[target]','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','commands','[action]','--limit\x20<rows>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','push\x20[name]','--engine-version\x20<version>','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Timezone\x20(e.g.,\x20America/Los_Angeles)','finish\x20<name-or-id>','alias','show\x20<agent-name>','slice','INVALID_ARGUMENT','Update\x20an\x20always-on\x20campaign','--type\x20<api_type>','New\x20workspace\x20name','directory','error','Set\x20or\x20show\x20parent\x20segment\x20context','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','list\x20[project]','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','-p,\x20--profile\x20<name>','subcommandTerm','Output\x20file\x20path\x20(default:\x20<name>.yml)','--in\x20<database>','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','chats','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--subject\x20<subject>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','list\x20[name]','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Revision\x20name\x20(default:\x20timestamp)','--workspace\x20<name>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Pause\x20an\x20always-on\x20campaign','--editor-type\x20<type>','--revision\x20<revision>','includes','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Read\x20query\x20from\x20file','Include\x20subtasks\x20in\x20tasks\x20output','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','--full','Push\x20without\x20confirmation','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','Workspace\x20name\x20(required)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','-H,\x20--header\x20<header>','--debug','--schedule-type\x20<type>','-o,\x20--output\x20<dir>','--skip-validation','--behaviors\x20<json>','Workflow\x20attempt\x20management','isDirectory','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\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\x20ap01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','--email-sender-id\x20<id>','push\x20[source-dir]','-o,\x20--output\x20<folder>','delivery','\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','--help','Resume\x20a\x20paused\x20always-on\x20campaign','Change\x20to\x20directory\x20before\x20executing\x20command','use\x20<project-name>','Continue\x20most\x20recent\x20conversation','Update\x20a\x20scheduled\x20query','--default','HTML\x20template\x20content','Open\x20parent\x20segment\x20in\x20web\x20browser','list','Behaviors\x20as\x20JSON\x20string','Query\x20type:\x20trino\x20or\x20hive','retry\x20<session-id>','Arguments:','--parent-folder\x20<name>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Task\x20name\x20for\x20logs\x20action','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','48IjRukS','segment','Show\x20all\x20files\x20including\x20valid\x20ones','remove\x20<name>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','trino','-f,\x20--file\x20<path>','folder','Create\x20an\x20email\x20template','claude\x20[args...]','Starter\x20message','Set\x20a\x20profile\x20configuration\x20value','--param\x20<key=value>','--database\x20<name>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Timezone\x20for\x20cron','flatMap','profile','--tags\x20<tags>','command','us01','upgrade\x20[version]','summary','beefree','after','--agent\x20<ref>','buildTime','clone\x20[source-dir]','Cron\x20expression\x20for\x20scheduling','pause\x20<name-or-id>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Parent\x20folder\x20name\x20for\x20nested\x20folders','test\x20[path]','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','--site\x20<site>','optionDescription','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','CDP\x20Journey\x20Orchestration\x20commands','--include-subtasks','Check\x20for\x20updates\x20without\x20installing','--attempt-id\x20<id>'];a2_0x9c7c=function(){return _0xe74bf5;};return a2_0x9c7c();}buildInfo[a2_0x40ffc1(0x36b)]&&!currentVersion['includes'](buildInfo['gitRevision'])?description+=a2_0x40ffc1(0x1c3)+currentVersion+'\x20('+buildInfo[a2_0x40ffc1(0x36b)]+')':description+=a2_0x40ffc1(0x1c3)+currentVersion;program[a2_0x40ffc1(0x1cc)]('tdx')['description'](description),program['option']('-C,\x20--directory\x20<path>',a2_0x40ffc1(0x260))['option'](a2_0x40ffc1(0x234),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x292),a2_0x40ffc1(0x2c3),a2_0x40ffc1(0x284))['option']('--format\x20<format>',a2_0x40ffc1(0x154))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x360),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x40ffc1(0x3c5)]('--json',a2_0x40ffc1(0x200))['option']('--jsonl',a2_0x40ffc1(0x348))[a2_0x40ffc1(0x3c5)]('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2ea),a2_0x40ffc1(0x15e))[a2_0x40ffc1(0x3c5)]('--limit\x20<number>',a2_0x40ffc1(0x195))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x219),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2ac),a2_0x40ffc1(0x1f5),![])['option'](a2_0x40ffc1(0x3e6),a2_0x40ffc1(0x2ee),![])[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x251),a2_0x40ffc1(0x197))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x12d),a2_0x40ffc1(0x313))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x38c),a2_0x40ffc1(0x317),'30')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3de),a2_0x40ffc1(0x394),![])[a2_0x40ffc1(0x3c5)]('-y,\x20--yes',a2_0x40ffc1(0x210),![])[a2_0x40ffc1(0x3c5)]('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3a3),a2_0x40ffc1(0x2d7))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2d5),a2_0x40ffc1(0x359)),program[a2_0x40ffc1(0x163)]({'formatHelp':(_0x2ca4ab,_0x1707c1)=>{const _0x58ddd4=a2_0x40ffc1,_0x3e2946=_0x1707c1['padWidth'](_0x2ca4ab,_0x1707c1),_0x131948=0x2,_0x1b2a3e=0x2;function _0x436374(_0x17f7f9){const _0x40db00=a2_0x3625,_0x3d368e=_0x17f7f9;return!!(_0x3d368e[_0x40db00(0x3e9)]||_0x3d368e['hidden']);}function _0xe36df6(_0x37ce87,_0x38af15){const _0xa5f333=a2_0x3625;if(_0x38af15){const _0x8f1ce1=''+_0x37ce87[_0xa5f333(0x3c6)](_0x3e2946+_0x1b2a3e)+_0x38af15;return _0x8f1ce1;}return _0x37ce87;}function _0x223b2f(_0x507b05){const _0x44895e=a2_0x3625;return _0x507b05['join']('\x0a')[_0x44895e(0x3d7)](/^/gm,'\x20'[_0x44895e(0x148)](_0x131948));}const _0x408321=[];_0x408321['push'](_0x58ddd4(0x3e8)+_0x1707c1['commandUsage'](_0x2ca4ab));const _0x38b090=_0x1707c1[_0x58ddd4(0x2f6)](_0x2ca4ab);_0x38b090&&(_0x408321['push'](''),_0x408321[_0x58ddd4(0x2b0)](_0x38b090));const _0x1fb783=_0x2ca4ab[_0x58ddd4(0x21d)]['filter'](_0x2bb625=>!_0x436374(_0x2bb625));if(_0x1fb783[_0x58ddd4(0x198)]>0x0){if(_0x2ca4ab[_0x58ddd4(0x1cc)]()===_0x58ddd4(0x2ab)){const _0x2a2e7f=_0x2ca4ab[_0x58ddd4(0x1fb)](),_0x369d23=!_0x2a2e7f[_0x58ddd4(0x363)]&&process[_0x58ddd4(0x1c8)][_0x58ddd4(0x2a9)],_0x116c94=COMMAND_CATEGORIES,_0x3d0fc0=(_0x5759d8,_0x54f88d)=>_0x369d23?_0x54f88d(_0x5759d8):_0x5759d8,_0x38cafa=new Map();_0x1fb783['forEach'](_0x19d965=>{const _0x46d44a=_0x58ddd4;_0x38cafa[_0x46d44a(0x38e)](_0x19d965['name'](),_0x19d965);}),_0x116c94[_0x58ddd4(0x15c)](_0x4291d3=>{const _0xe2f26d=_0x58ddd4,_0x154714=_0x4291d3[_0xe2f26d(0x21d)][_0xe2f26d(0x280)](_0x31496e=>_0x38cafa[_0xe2f26d(0x31a)](_0x31496e)??[]);if(_0x154714[_0xe2f26d(0x198)]>0x0){_0x408321[_0xe2f26d(0x2b0)](''),_0x408321[_0xe2f26d(0x2b0)](_0x3d0fc0(_0x4291d3[_0xe2f26d(0x1cc)]+':',_0x4291d3[_0xe2f26d(0x1af)]));const _0x247d7f=_0x154714['map'](_0x11962c=>{const _0x4b9c0d=_0xe2f26d,_0x3a3454=_0x1707c1[_0x4b9c0d(0x235)](_0x11962c),_0x4bed80=_0x1707c1[_0x4b9c0d(0x2b7)](_0x11962c);return _0xe36df6(_0x3a3454,_0x4bed80);});_0x408321[_0xe2f26d(0x2b0)](_0x223b2f(_0x247d7f));}}),_0x408321[_0x58ddd4(0x2b0)](''),_0x408321[_0x58ddd4(0x2b0)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x3693ef=_0x1fb783[_0x58ddd4(0x307)](_0x237137=>{const _0x4bd958=_0x58ddd4,_0x4b6c85=_0x1707c1[_0x4bd958(0x235)](_0x237137),_0x1b60f0=_0x1707c1['subcommandDescription'](_0x237137);return _0xe36df6(_0x4b6c85,_0x1b60f0);});_0x408321[_0x58ddd4(0x2b0)](''),_0x408321['push'](_0x58ddd4(0x2fc)),_0x408321[_0x58ddd4(0x2b0)](_0x223b2f(_0x3693ef));}}if(showBriefHelp&&_0x2ca4ab[_0x58ddd4(0x1cc)]()===_0x58ddd4(0x2ab))_0x408321[_0x58ddd4(0x2b0)](''),_0x408321[_0x58ddd4(0x2b0)](_0x58ddd4(0x164));else{const _0x136ee9=_0x2ca4ab[_0x58ddd4(0x20a)][_0x58ddd4(0x331)](_0x394446=>!_0x436374(_0x394446));if(_0x136ee9[_0x58ddd4(0x198)]>0x0){const _0x164745=_0x136ee9[_0x58ddd4(0x307)](_0x546024=>{const _0xb9a23f=_0x58ddd4,_0x29d5dc=_0x1707c1[_0xb9a23f(0x2f2)](_0x546024),_0x44e8c9=_0x1707c1[_0xb9a23f(0x293)](_0x546024);return _0xe36df6(_0x29d5dc,_0x44e8c9);});_0x408321['push'](''),_0x408321[_0x58ddd4(0x2b0)](_0x58ddd4(0x30f)),_0x408321['push'](_0x223b2f(_0x164745));}}const _0x4398de=(_0x2ca4ab['registeredArguments']||[])[_0x58ddd4(0x331)](_0x2f7d89=>!_0x436374(_0x2f7d89));if(_0x4398de[_0x58ddd4(0x198)]>0x0){const _0x268b18=_0x4398de['map'](_0x1e415f=>{const _0x4db1a7=_0x58ddd4,_0x19fe06=_0x1707c1[_0x4db1a7(0x2db)](_0x1e415f),_0x4b33c5=_0x1707c1['argumentDescription'](_0x1e415f);return _0xe36df6(_0x19fe06,_0x4b33c5);});_0x408321[_0x58ddd4(0x2b0)](''),_0x408321['push'](_0x58ddd4(0x26b)),_0x408321[_0x58ddd4(0x2b0)](_0x223b2f(_0x268b18));}return _0x408321['join']('\x0a')+'\x0a';},'subcommandTerm':_0x2b58b1=>{const _0x5a34dd=a2_0x40ffc1,_0x2f4924=(_0x2b58b1['registeredArguments']||[])[_0x5a34dd(0x307)](_0x364f35=>_0x364f35[_0x5a34dd(0x1f0)]?'<'+_0x364f35[_0x5a34dd(0x1cc)]()+'>':'['+_0x364f35[_0x5a34dd(0x1cc)]()+']')[_0x5a34dd(0x31e)]('\x20'),_0x281ce4=_0x2b58b1[_0x5a34dd(0x3ac)](),_0x181064=_0x281ce4[_0x5a34dd(0x198)]>0x0?_0x2b58b1[_0x5a34dd(0x1cc)]()+',\x20'+_0x281ce4[_0x5a34dd(0x31e)](',\x20'):_0x2b58b1[_0x5a34dd(0x1cc)]();return _0x2f4924?_0x181064+'\x20'+_0x2f4924:_0x181064;}}),program[a2_0x40ffc1(0x150)](a2_0x40ffc1(0x30d),_0x3dc9a3=>{const _0x2e0355=a2_0x40ffc1,_0x2a4034=_0x3dc9a3['opts']();if(_0x2a4034[_0x2e0355(0x22e)]){const _0x5ccec7=resolve(_0x2a4034[_0x2e0355(0x22e)]),_0x5a6848=_0x5ccec7!==_0x2a4034[_0x2e0355(0x22e)]?'\x20(resolved\x20to\x20'+_0x5ccec7+')':'';if(!existsSync(_0x5ccec7))throw new SDKError(ErrorCode[_0x2e0355(0x22a)],_0x2e0355(0x19a)+_0x2a4034[_0x2e0355(0x22e)]+_0x5a6848,undefined,{'helpText':_0x2e0355(0x126)});const _0x34b22b=statSync(_0x5ccec7);if(!_0x34b22b[_0x2e0355(0x257)]())throw new SDKError(ErrorCode[_0x2e0355(0x22a)],_0x2e0355(0x346)+_0x2a4034[_0x2e0355(0x22e)]+_0x5a6848,undefined,{'helpText':_0x2e0355(0x144)});process[_0x2e0355(0x318)](_0x5ccec7);}if(!_0x2a4034[_0x2e0355(0x2fe)]){if(_0x2a4034[_0x2e0355(0x3d5)])_0x2a4034[_0x2e0355(0x2fe)]=_0x2e0355(0x3d5);else{if(_0x2a4034[_0x2e0355(0x2ca)])_0x2a4034[_0x2e0355(0x2fe)]=_0x2e0355(0x2ca);else{if(_0x2a4034[_0x2e0355(0x1dc)])_0x2a4034[_0x2e0355(0x2fe)]=_0x2e0355(0x1dc);else _0x2a4034[_0x2e0355(0x1b3)]&&(_0x2a4034[_0x2e0355(0x2fe)]=_0x2e0355(0x1b3));}}}if(_0x2a4034[_0x2e0355(0x1cb)])_0x2a4034[_0x2e0355(0x20c)]=LogLevel[_0x2e0355(0x2c8)];else{if(_0x2a4034['debug'])_0x2a4034['logLevel']=LogLevel['DEBUG'];else _0x2a4034['logLevel']===undefined&&(_0x2a4034[_0x2e0355(0x20c)]=LogLevel[_0x2e0355(0x19c)]);}});async function createTDXInstance(_0x4ace82){const _0x3c9342=a2_0x40ffc1,_0x36dc13=await GlobalContext[_0x3c9342(0x2aa)](_0x4ace82);return _0x36dc13['injectIntoOptions'](_0x4ace82),TDX[_0x3c9342(0x377)]({'site':_0x36dc13[_0x3c9342(0x122)],'apiKey':_0x36dc13[_0x3c9342(0x35b)],'accessToken':_0x36dc13[_0x3c9342(0x3e0)],'logLevel':_0x36dc13[_0x3c9342(0x20c)],'profile':_0x36dc13[_0x3c9342(0x281)]});}const databaseCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2b1))[a2_0x40ffc1(0x227)]('db')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1b9)),databaseListAction=async(_0x3bc389,_0x13ad16)=>{const _0x109963=a2_0x40ffc1,_0x427155=new DatabasesCommand(),_0x4b741c=program[_0x109963(0x1fb)](),_0x1ce713=await createTDXInstance(_0x4b741c),_0x54881a=await _0x427155['run']({'options':{..._0x4b741c,..._0x13ad16},'args':_0x3bc389?[_0x3bc389]:[],'tdx':_0x1ce713});gracefulExit(_0x54881a);};databaseCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x171))[a2_0x40ffc1(0x1a4)](databaseListAction),program['command'](a2_0x40ffc1(0x372),{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x3f5))[a2_0x40ffc1(0x1a4)](databaseListAction),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x389))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1e7))['option'](a2_0x40ffc1(0x289),a2_0x40ffc1(0x2f4))['option']('--new',a2_0x40ffc1(0x3f4))[a2_0x40ffc1(0x3c5)]('--chat-id\x20<id>',a2_0x40ffc1(0x3a4))['option'](a2_0x40ffc1(0x31d),a2_0x40ffc1(0x1dd))['action'](async(_0x2b0afa,_0x5072ba)=>{const _0x4e63b4=a2_0x40ffc1,_0x3690e2=program[_0x4e63b4(0x1fb)](),_0x416911=await createTDXInstance(_0x3690e2);if(_0x2b0afa[0x0]==='create'){const _0x4be572=new ChatCreateCommand();gracefulExit(await _0x4be572[_0x4e63b4(0x387)]({'options':{..._0x3690e2,..._0x5072ba},'args':_0x2b0afa[_0x4e63b4(0x229)](0x1),'tdx':_0x416911}));return;}const _0xfe101c=new ChatCommand(),_0xf62dff=await _0xfe101c['run']({'options':{..._0x3690e2,..._0x5072ba},'args':_0x2b0afa,'tdx':_0x416911});gracefulExit(_0xf62dff);});const apiCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2b6))[a2_0x40ffc1(0x286)](a2_0x40ffc1(0x1de))['addHelpText'](a2_0x40ffc1(0x288),a2_0x40ffc1(0x1e2))[a2_0x40ffc1(0x3c5)]('-X,\x20--method\x20<method>',a2_0x40ffc1(0x375),a2_0x40ffc1(0x1a2))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x14f),'Request\x20body\x20as\x20JSON\x20string')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x276),'Read\x20request\x20body\x20from\x20file')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x250),a2_0x40ffc1(0x1ae),(_0x3408da,_0x25559c)=>{return _0x25559c?[..._0x25559c,_0x3408da]:[_0x3408da];})['option'](a2_0x40ffc1(0x22c),a2_0x40ffc1(0x3ee),'td')[a2_0x40ffc1(0x1a4)](async(_0x34d5c6,_0x4db10f)=>{const _0x58bad9=a2_0x40ffc1;if(!_0x34d5c6){apiCmd[_0x58bad9(0x3df)]();return;}const _0x13234c=new ApiCommand(),_0x1334e9=program[_0x58bad9(0x1fb)](),_0x5cd441=await createTDXInstance(_0x1334e9),_0x52f06c=await _0x13234c[_0x58bad9(0x387)]({'options':{..._0x1334e9,..._0x4db10f},'args':[_0x34d5c6],'tdx':_0x5cd441});gracefulExit(_0x52f06c);});program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1e3))['description'](a2_0x40ffc1(0x3ad))['addHelpText'](a2_0x40ffc1(0x288),a2_0x40ffc1(0x24a))[a2_0x40ffc1(0x1a4)](async _0x32fa66=>{const _0x43f76d=new MCPCommand(),_0x406c65=program['opts'](),_0x16087b=await createTDXInstance(_0x406c65),_0x1dc5b2=await _0x43f76d['run']({'options':{..._0x406c65,..._0x32fa66},'args':[],'tdx':_0x16087b});gracefulExit(_0x1dc5b2);});const tableCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3d5))['description'](a2_0x40ffc1(0x37c)),tableListAction=async(_0x414973,_0x1bee0e)=>{const _0x8f9e41=a2_0x40ffc1,_0x27039d=new TablesCommand(),_0x5654f4=program[_0x8f9e41(0x1fb)](),_0x579845=await createTDXInstance(_0x5654f4);_0x1bee0e['in']&&(_0x1bee0e['database']=_0x1bee0e['in']);const _0x1959d4=await _0x27039d[_0x8f9e41(0x387)]({'options':{..._0x5654f4,..._0x1bee0e},'args':_0x414973?[_0x414973]:[],'tdx':_0x579845});gracefulExit(_0x1959d4);};tableCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x123))['option']('-d,\x20--database\x20<database>',a2_0x40ffc1(0x37f))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x237),a2_0x40ffc1(0x36c))['action'](tableListAction),program[a2_0x40ffc1(0x283)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1a7))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3ea),a2_0x40ffc1(0x37f))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x237),a2_0x40ffc1(0x36c))['action'](tableListAction),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2d1))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x299))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3ea),a2_0x40ffc1(0x16d))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x237),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x40ffc1(0x1a4)](async(_0x12aa45,_0x53d470)=>{const _0x42b5ae=a2_0x40ffc1,_0x48b14d=new ShowCommand(),_0x15fff8=program[_0x42b5ae(0x1fb)](),_0x162c66=await createTDXInstance(_0x15fff8);_0x53d470['in']&&(_0x53d470['database']=_0x53d470['in']);const _0xa7654c=await _0x48b14d[_0x42b5ae(0x387)]({'options':{..._0x15fff8,..._0x53d470},'args':_0x12aa45?[_0x12aa45]:[],'tdx':_0x162c66});gracefulExit(_0xa7654c);}),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x192))[a2_0x40ffc1(0x227)](a2_0x40ffc1(0x1ec))[a2_0x40ffc1(0x38b)]('Describe\x20table\x20schema')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3ea),a2_0x40ffc1(0x16d))['option'](a2_0x40ffc1(0x237),a2_0x40ffc1(0x36c))[a2_0x40ffc1(0x1a4)](async(_0xb9e571,_0xe1d62d)=>{const _0x135929=a2_0x40ffc1,_0x3c037c=new DescribeCommand(),_0x1ea1f4=program[_0x135929(0x1fb)](),_0x131215=await createTDXInstance(_0x1ea1f4);_0xe1d62d['in']&&(_0xe1d62d[_0x135929(0x2b1)]=_0xe1d62d['in']);const _0xe06066=await _0x3c037c[_0x135929(0x387)]({'options':{..._0x1ea1f4,..._0xe1d62d},'args':_0xb9e571?[_0xb9e571]:[],'tdx':_0x131215});gracefulExit(_0xe06066);}),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x321))['description'](a2_0x40ffc1(0x13c))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3ea),a2_0x40ffc1(0x1a0))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x237),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x40ffc1(0x205),a2_0x40ffc1(0x3d8))['option'](a2_0x40ffc1(0x276),a2_0x40ffc1(0x301))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x21f),'Maximum\x20rows\x20to\x20display')[a2_0x40ffc1(0x1a4)](async(_0x37dcb3,_0x361adf)=>{const _0x38d88b=a2_0x40ffc1,_0x790f36=new QueryCommand(),_0x58be98=program[_0x38d88b(0x1fb)](),_0x27ecf4=await createTDXInstance(_0x58be98);_0x361adf['in']&&(_0x361adf[_0x38d88b(0x2b1)]=_0x361adf['in']);const _0x1dd5c5=await _0x790f36['run']({'options':mergeCommandOptions(_0x58be98,_0x361adf),'args':_0x37dcb3?[_0x37dcb3]:[],'tdx':_0x27ecf4});gracefulExit(_0x1dd5c5);});const segmentCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x271))['alias']('sg')['description'](a2_0x40ffc1(0x378)),segmentListAction=async(_0x2febad,_0x436620)=>{const _0x31b8db=a2_0x40ffc1,_0x4938c9=new SegmentsCommand(),_0x24dbed=program['opts'](),_0x74e3c0=await createTDXInstance(_0x24dbed),_0x5030d9=await _0x4938c9[_0x31b8db(0x387)]({'options':{..._0x24dbed,..._0x436620},'args':_0x2febad?[_0x2febad]:[],'tdx':_0x74e3c0});gracefulExit(_0x5030d9);};segmentCmd[a2_0x40ffc1(0x283)]('list\x20[path]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x238))['option'](a2_0x40ffc1(0x368),a2_0x40ffc1(0x20d))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x324),a2_0x40ffc1(0x2e0),'10')[a2_0x40ffc1(0x1a4)](segmentListAction),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x29d),{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x24f))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x368),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option']('--max-depth\x20<depth>',a2_0x40ffc1(0x2e0),'10')[a2_0x40ffc1(0x1a4)](segmentListAction),segmentCmd['command'](a2_0x40ffc1(0x3b3),{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x358))[a2_0x40ffc1(0x1a4)](async(_0x2e9a80,_0x40ddb6)=>{const _0x7d5373=a2_0x40ffc1,_0x42f90b=new SegmentUseCommand(),_0x4b37d1=program[_0x7d5373(0x1fb)](),_0xee7191=await createTDXInstance(_0x4b37d1),_0x3b3e13=await _0x42f90b[_0x7d5373(0x387)]({'options':{..._0x4b37d1,..._0x40ddb6},'args':[_0x2e9a80],'tdx':_0xee7191});gracefulExit(_0x3b3e13);});const segmentViewAction=async(_0xe0147b,_0x26b201)=>{const _0x422ddf=a2_0x40ffc1,_0x1b340d=new SegmentViewCommand(),_0x3da655=program[_0x422ddf(0x1fb)](),_0x138b81=await createTDXInstance(_0x3da655),_0x2f1402=await _0x1b340d[_0x422ddf(0x387)]({'options':{..._0x3da655,..._0x26b201},'args':_0xe0147b?[_0xe0147b]:[],'tdx':_0x138b81});gracefulExit(_0x2f1402);};segmentCmd['command'](a2_0x40ffc1(0x2e2))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x28e))[a2_0x40ffc1(0x3c5)]('-w,\x20--web',a2_0x40ffc1(0x2ae))[a2_0x40ffc1(0x1a4)](segmentViewAction),segmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x303),{'hidden':!![]})[a2_0x40ffc1(0x227)](a2_0x40ffc1(0x3bb))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1fd),'Open\x20segment\x20in\x20web\x20browser')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x168))[a2_0x40ffc1(0x1a4)](segmentViewAction),segmentCmd[a2_0x40ffc1(0x283)]('desc\x20[segment_name]')[a2_0x40ffc1(0x38b)]('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x40ffc1(0x1a4)](async(_0x3920c8,_0x78da60)=>{const _0xf2f0e7=a2_0x40ffc1,_0x1ccb19=new SegmentDescCommand(),_0x42cd3a=program[_0xf2f0e7(0x1fb)](),_0x308412=await createTDXInstance(_0x42cd3a),_0x36e7d6=await _0x1ccb19[_0xf2f0e7(0x387)]({'options':{..._0x42cd3a,..._0x78da60},'args':_0x3920c8?[_0x3920c8]:[],'tdx':_0x308412});gracefulExit(_0x36e7d6);}),segmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x128))[a2_0x40ffc1(0x38b)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x40ffc1(0x1a4)](async(_0x56feac,_0x1be389)=>{const _0x3cbe4f=a2_0x40ffc1,_0x1331b7=new SegmentShowCommand(),_0x2e2420=program[_0x3cbe4f(0x1fb)](),_0x3a833a=await createTDXInstance(_0x2e2420),_0x5f525f=await _0x1331b7[_0x3cbe4f(0x387)]({'options':{..._0x2e2420,..._0x1be389},'args':_0x56feac?[_0x56feac]:[],'tdx':_0x3a833a});gracefulExit(_0x5f525f);}),segmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x147),{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x357))[a2_0x40ffc1(0x1a4)](async(_0x2144ea,_0x4c64e8)=>{const _0x5abf6c=a2_0x40ffc1,_0x43b8e0=new SegmentFolderListCommand(),_0x101b58=program['opts'](),_0x4e1cb3=await createTDXInstance(_0x101b58),_0x5d5e5d=await _0x43b8e0[_0x5abf6c(0x387)]({'options':{..._0x101b58,..._0x4c64e8},'args':[_0x2144ea],'tdx':_0x4e1cb3});gracefulExit(_0x5d5e5d);});const folderCmd=segmentCmd['command'](a2_0x40ffc1(0x277),{'hidden':!![]})[a2_0x40ffc1(0x38b)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x40ffc1(0x283)]('show\x20<folder_ref>')[a2_0x40ffc1(0x38b)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x40ffc1(0x1a4)](async(_0x24c490,_0x399999)=>{const _0x12cdfa=a2_0x40ffc1,_0x22365b=new SegmentFolderShowCommand(),_0x2a0b39=program[_0x12cdfa(0x1fb)](),_0x6d4c0c=await createTDXInstance(_0x2a0b39),_0x4b13fe=await _0x22365b[_0x12cdfa(0x387)]({'options':{..._0x2a0b39,..._0x399999},'args':[_0x24c490],'tdx':_0x6d4c0c});gracefulExit(_0x4b13fe);}),segmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3c0))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x3c8))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2c6),'YAML\x20file\x20path\x20for\x20unpushed\x20segment')['action'](async(_0x2ad2b6,_0x59bc46)=>{const _0x59d122=a2_0x40ffc1,_0x29fde7=new SegmentSQLCommand(),_0x34f6df=program[_0x59d122(0x1fb)](),_0x1c16ee=await createTDXInstance(_0x34f6df),_0x3a4477=await _0x29fde7[_0x59d122(0x387)]({'options':{..._0x34f6df,..._0x59bc46},'args':_0x2ad2b6?[_0x2ad2b6]:[],'tdx':_0x1c16ee});gracefulExit(_0x3a4477);}),segmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x181))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x26d))[a2_0x40ffc1(0x1a4)](async(_0xd05565,_0x505795)=>{const _0xe18ae6=a2_0x40ffc1,_0x40fceb=new SegmentFieldsCommand(),_0x153c61=program['opts'](),_0x492294=await createTDXInstance(_0x153c61),_0x3cbd5a=await _0x40fceb[_0xe18ae6(0x387)]({'options':{..._0x153c61,..._0x505795},'args':_0xd05565?[_0xd05565]:[],'tdx':_0x492294});gracefulExit(_0x3cbd5a);}),segmentCmd['command'](a2_0x40ffc1(0x33f))[a2_0x40ffc1(0x38b)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x40ffc1(0x3c5)]('--dry-run',a2_0x40ffc1(0x30e))[a2_0x40ffc1(0x1a4)](async(_0x1ae118,_0x430867)=>{const _0x64ec97=a2_0x40ffc1,_0x1c7088=new SegmentPullCommand(),_0x504384=program[_0x64ec97(0x1fb)](),_0x56e2de=await createTDXInstance(_0x504384),_0x26731d=await _0x1c7088[_0x64ec97(0x387)]({'options':{..._0x504384,..._0x430867},'args':_0x1ae118?[_0x1ae118]:[],'tdx':_0x56e2de});gracefulExit(_0x26731d);}),segmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3b9))[a2_0x40ffc1(0x38b)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3de),a2_0x40ffc1(0x30e))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x36f),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x40ffc1(0x1a4)](async(_0x191170,_0x1da363)=>{const _0x163d69=a2_0x40ffc1,_0xaec840=new SegmentPushCommand(),_0x48546b=program[_0x163d69(0x1fb)](),_0x33c2a5=await createTDXInstance(_0x48546b),_0x43214a=await _0xaec840['run']({'options':{..._0x48546b,..._0x1da363},'args':_0x191170?[_0x191170]:[],'tdx':_0x33c2a5});gracefulExit(_0x43214a);}),segmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1fa))[a2_0x40ffc1(0x1a4)](async(_0x297868,_0x319083)=>{const _0x65e3ac=a2_0x40ffc1,_0x22d022=new SegmentValidateCommand(),_0x59dcdc=program[_0x65e3ac(0x1fb)](),_0x2c582d=await createTDXInstance(_0x59dcdc),_0x44ca50=await _0x22d022[_0x65e3ac(0x387)]({'options':{..._0x59dcdc,..._0x319083},'args':_0x297868?[_0x297868]:[],'tdx':_0x2c582d});gracefulExit(_0x44ca50);}),segmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2e8),{'hidden':!![]})[a2_0x40ffc1(0x38b)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option'](a2_0x40ffc1(0x37e),a2_0x40ffc1(0x34b))['option'](a2_0x40ffc1(0x1f3),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3d9),a2_0x40ffc1(0x32e))['option'](a2_0x40ffc1(0x15a),a2_0x40ffc1(0x1a5))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1d7),a2_0x40ffc1(0x3b8))['option'](a2_0x40ffc1(0x187),a2_0x40ffc1(0x175))[a2_0x40ffc1(0x3c5)]('--no-count-population','Skip\x20population\x20counting')[a2_0x40ffc1(0x1a4)](async(_0x3f03d9,_0x1d84d0)=>{const _0x90e493=a2_0x40ffc1,_0x5cd4a7=new SegmentCreateCommand(),_0x1faa34=program[_0x90e493(0x1fb)](),_0x3c6376=await createTDXInstance(_0x1faa34),_0xa187fb=await _0x5cd4a7[_0x90e493(0x387)]({'options':{..._0x1faa34,..._0x1d84d0},'args':[_0x3f03d9],'tdx':_0x3c6376});gracefulExit(_0xa187fb);}),segmentCmd['command']('update\x20<segment_name>',{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x166))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3b4),a2_0x40ffc1(0x39a))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x37e),a2_0x40ffc1(0x38f))[a2_0x40ffc1(0x3c5)]('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3d9),a2_0x40ffc1(0x3db))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x15a),'Move\x20to\x20folder')['option'](a2_0x40ffc1(0x1d7),a2_0x40ffc1(0x3b8))['action'](async(_0x393aaf,_0x38fb48)=>{const _0x5ef887=a2_0x40ffc1,_0x3e1eec=new SegmentUpdateCommand(),_0x4387a5=program[_0x5ef887(0x1fb)](),_0x130e13=await createTDXInstance(_0x4387a5),_0x11580b=await _0x3e1eec[_0x5ef887(0x387)]({'options':{..._0x4387a5,..._0x38fb48},'args':[_0x393aaf],'tdx':_0x130e13});gracefulExit(_0x11580b);});const parentCmd=segmentCmd[a2_0x40ffc1(0x283)]('parent',{'hidden':!![]})[a2_0x40ffc1(0x38b)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0xfb1378,_0x550f53)=>{const _0x31c582=a2_0x40ffc1,_0x18473b=new ParentSegmentListCommand(),_0x373387=program[_0x31c582(0x1fb)](),_0xc289b6=await createTDXInstance(_0x373387),_0x965f45=await _0x18473b['run']({'options':{..._0x373387,..._0x550f53},'args':_0xfb1378?[_0xfb1378]:[],'tdx':_0xc289b6});gracefulExit(_0x965f45);};parentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x328))[a2_0x40ffc1(0x1a4)](parentListAction),segmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x17a),{'hidden':!![]})['description'](a2_0x40ffc1(0x2a0))[a2_0x40ffc1(0x1a4)](parentListAction),parentCmd[a2_0x40ffc1(0x283)]('pull\x20[name]')['description']('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')['option']('-o,\x20--output\x20<file>',a2_0x40ffc1(0x236))[a2_0x40ffc1(0x1a4)](async(_0x2a98ea,_0x43f7ed)=>{const _0x45aa10=a2_0x40ffc1,_0x4996fe=new ParentSegmentPullCommand(),_0xcb88a4=program['opts'](),_0x408871=await createTDXInstance(_0xcb88a4),_0x347a1a=await _0x4996fe[_0x45aa10(0x387)]({'options':{..._0xcb88a4,..._0x43f7ed},'args':_0x2a98ea?[_0x2a98ea]:[],'tdx':_0x408871});gracefulExit(_0x347a1a);}),parentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x311))['description']('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x40ffc1(0x1a4)](async(_0x384b2e,_0x3b3a67)=>{const _0xf57263=a2_0x40ffc1,_0x4a3af5=new ParentSegmentPushCommand(),_0x1e61b3=program['opts'](),_0x453ce9=await createTDXInstance(_0x1e61b3),_0x3f2ae3=await _0x4a3af5[_0xf57263(0x387)]({'options':{..._0x1e61b3,..._0x3b3a67},'args':_0x384b2e?[_0x384b2e]:[],'tdx':_0x453ce9});gracefulExit(_0x3f2ae3);}),parentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3cd))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x338))['option']('--master',a2_0x40ffc1(0x2a1))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x201),a2_0x40ffc1(0x2f3))[a2_0x40ffc1(0x3c5)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x40ffc1(0x214),a2_0x40ffc1(0x15f))[a2_0x40ffc1(0x3c5)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x40ffc1(0x3e3))[a2_0x40ffc1(0x1a4)](async(_0x1cdeae,_0x14caf6)=>{const _0x4c13f6=a2_0x40ffc1,_0x151c8d=new ParentSegmentValidateCommand(),_0x5e99ef=program[_0x4c13f6(0x1fb)](),_0x127123=await createTDXInstance(_0x5e99ef),_0xdd49a3=await _0x151c8d[_0x4c13f6(0x387)]({'options':{..._0x5e99ef,..._0x14caf6},'args':_0x1cdeae?[_0x1cdeae]:[],'tdx':_0x127123});gracefulExit(_0xdd49a3);}),parentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1a1))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x231))['option']('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x40ffc1(0x3c5)]('--attribute\x20[name]',a2_0x40ffc1(0x2ff))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1db),a2_0x40ffc1(0x2f9))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x214),a2_0x40ffc1(0x3e1))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x17c),a2_0x40ffc1(0x344),a2_0x40ffc1(0x3e3))[a2_0x40ffc1(0x1a4)](async(_0x5c981b,_0x46cdd5)=>{const _0xdc27f7=a2_0x40ffc1,_0xc26a82=new ParentSegmentPreviewCommand(),_0xe5b4a2=program[_0xdc27f7(0x1fb)](),_0x4982ed=await createTDXInstance(_0xe5b4a2),_0x1aa731=await _0xc26a82[_0xdc27f7(0x387)]({'options':{..._0xe5b4a2,..._0x46cdd5},'args':_0x5c981b?[_0x5c981b]:[],'tdx':_0x4982ed});gracefulExit(_0x1aa731);}),parentCmd['command']('run\x20[name]')[a2_0x40ffc1(0x38b)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x40ffc1(0x1a4)](async(_0xf2247a,_0x3b83d9)=>{const _0x416efd=a2_0x40ffc1,_0x1ccfc7=new ParentSegmentRunCommand(),_0x5d92cb=program['opts'](),_0xcd4699=await createTDXInstance(_0x5d92cb),_0x8f80cb=await _0x1ccfc7[_0x416efd(0x387)]({'options':{..._0x5d92cb,..._0x3b83d9},'args':_0xf2247a?[_0xf2247a]:[],'tdx':_0xcd4699});gracefulExit(_0x8f80cb);});const parentSegmentCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2c7))['alias']('ps')[a2_0x40ffc1(0x38b)]('Parent\x20segment\x20management');parentSegmentCmd['command'](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x328))[a2_0x40ffc1(0x1a4)](parentListAction),parentSegmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3ab))['description'](a2_0x40ffc1(0x1c2))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x30a),'Output\x20file\x20path')['option'](a2_0x40ffc1(0x395),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')['action'](async(_0x43ecfa,_0x30bbcb)=>{const _0x4eaa24=a2_0x40ffc1,_0x9ddff3=new ParentSegmentPullCommand(),_0x4eff54=program[_0x4eaa24(0x1fb)](),_0x2d412e=await createTDXInstance(_0x4eff54),_0x435158=await _0x9ddff3[_0x4eaa24(0x387)]({'options':{..._0x4eff54,..._0x30bbcb},'args':_0x43ecfa?[_0x43ecfa]:[],'tdx':_0x2d412e});gracefulExit(_0x435158);}),parentSegmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x222))['description'](a2_0x40ffc1(0x306))[a2_0x40ffc1(0x1a4)](async(_0x351203,_0x52f5c7)=>{const _0x571a69=a2_0x40ffc1,_0xbe15f0=new ParentSegmentPushCommand(),_0x44b662=program[_0x571a69(0x1fb)](),_0x262235=await createTDXInstance(_0x44b662),_0x2d6008=await _0xbe15f0[_0x571a69(0x387)]({'options':{..._0x44b662,..._0x52f5c7},'args':_0x351203?[_0x351203]:[],'tdx':_0x262235});gracefulExit(_0x2d6008);}),parentSegmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x145))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x338))['option'](a2_0x40ffc1(0x2ed),a2_0x40ffc1(0x2a1))[a2_0x40ffc1(0x3c5)]('--attribute\x20[name]',a2_0x40ffc1(0x2f3))[a2_0x40ffc1(0x3c5)]('--behavior\x20[name]',a2_0x40ffc1(0x19b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x214),a2_0x40ffc1(0x15f))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x17c),a2_0x40ffc1(0x344),a2_0x40ffc1(0x3e3))['action'](async(_0x3368df,_0x3f50c6)=>{const _0x2c213f=a2_0x40ffc1,_0x360e6a=new ParentSegmentValidateCommand(),_0x35713f=program['opts'](),_0x2feec1=await createTDXInstance(_0x35713f),_0x49e1a6=await _0x360e6a[_0x2c213f(0x387)]({'options':{..._0x35713f,..._0x3f50c6},'args':_0x3368df?[_0x3368df]:[],'tdx':_0x2feec1});gracefulExit(_0x49e1a6);}),parentSegmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x184))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x231))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2ed),'Show\x20master\x20table\x20sample\x20data')['option'](a2_0x40ffc1(0x201),a2_0x40ffc1(0x2ff))[a2_0x40ffc1(0x3c5)]('--behavior\x20[name]',a2_0x40ffc1(0x2f9))['option'](a2_0x40ffc1(0x214),a2_0x40ffc1(0x3e1))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x17c),a2_0x40ffc1(0x344),a2_0x40ffc1(0x3e3))[a2_0x40ffc1(0x1a4)](async(_0x4627e9,_0x5b4dad)=>{const _0x4efb88=a2_0x40ffc1,_0x1c4834=new ParentSegmentPreviewCommand(),_0x270309=program[_0x4efb88(0x1fb)](),_0x4f0543=await createTDXInstance(_0x270309),_0x46b16f=await _0x1c4834[_0x4efb88(0x387)]({'options':{..._0x270309,..._0x5b4dad},'args':_0x4627e9?[_0x4627e9]:[],'tdx':_0x4f0543});gracefulExit(_0x46b16f);}),parentSegmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x39f))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x18a))['action'](async(_0x2926ed,_0x1886fc)=>{const _0x101b38=a2_0x40ffc1,_0x403119=new ParentSegmentRunCommand(),_0x11c9d6=program['opts'](),_0xb1cfc3=await createTDXInstance(_0x11c9d6),_0x4c58e7=await _0x403119[_0x101b38(0x387)]({'options':{..._0x11c9d6,..._0x1886fc},'args':_0x2926ed?[_0x2926ed]:[],'tdx':_0xb1cfc3});gracefulExit(_0x4c58e7);}),parentSegmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x12b))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x34e))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3e2),a2_0x40ffc1(0x365))[a2_0x40ffc1(0x3c5)]('--jsonl',a2_0x40ffc1(0x2fb))['action'](async(_0x5678b0,_0x23e929)=>{const _0x127917=a2_0x40ffc1,_0x1c21af=new ParentSegmentFieldsCommand(),_0x305745=program[_0x127917(0x1fb)](),_0x5687e5=await createTDXInstance(_0x305745),_0x190b11=await _0x1c21af[_0x127917(0x387)]({'options':{..._0x305745,..._0x23e929},'args':_0x5678b0?[_0x5678b0]:[],'tdx':_0x5687e5});gracefulExit(_0x190b11);}),parentSegmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x371))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1eb))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1fd),a2_0x40ffc1(0x266))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3e2),'Output\x20as\x20JSON')['option'](a2_0x40ffc1(0x141),'Output\x20as\x20JSON\x20Lines')[a2_0x40ffc1(0x1a4)](async(_0x6fd1f0,_0x473c85)=>{const _0x5b35e6=a2_0x40ffc1,_0x53af52=new ParentSegmentViewCommand(),_0x59ad58=program[_0x5b35e6(0x1fb)](),_0x4aec9a=await createTDXInstance(_0x59ad58),_0x3b72b2=await _0x53af52['run']({'options':{..._0x59ad58,..._0x473c85},'args':_0x6fd1f0?[_0x6fd1f0]:[],'tdx':_0x4aec9a});gracefulExit(_0x3b72b2);}),parentSegmentCmd['command'](a2_0x40ffc1(0x133))['description'](a2_0x40ffc1(0x224))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x30a),'Output\x20file\x20path')[a2_0x40ffc1(0x3c5)]('--json',a2_0x40ffc1(0x365))['option'](a2_0x40ffc1(0x141),a2_0x40ffc1(0x2fb))[a2_0x40ffc1(0x1a4)](async(_0x371abf,_0x489b32)=>{const _0x115d34=a2_0x40ffc1,_0x14c9ca=new ParentSegmentDescCommand(),_0x595f00=program[_0x115d34(0x1fb)](),_0x5ba7a7=await createTDXInstance(_0x595f00),_0x14221f=await _0x14c9ca['run']({'options':{..._0x595f00,..._0x489b32},'args':_0x371abf?[_0x371abf]:[],'tdx':_0x5ba7a7});gracefulExit(_0x14221f);}),parentSegmentCmd[a2_0x40ffc1(0x283)]('sql\x20[name]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x156))['option'](a2_0x40ffc1(0x3e2),a2_0x40ffc1(0x365))['option']('--jsonl',a2_0x40ffc1(0x2fb))['action'](async(_0x1936f2,_0xc04a26)=>{const _0x1bba1c=a2_0x40ffc1,_0x59f504=new ParentSegmentSQLCommand(),_0x3c13ce=program[_0x1bba1c(0x1fb)](),_0x1bc95b=await createTDXInstance(_0x3c13ce),_0x50e4b5=await _0x59f504['run']({'options':{..._0x3c13ce,..._0xc04a26},'args':_0x1936f2?[_0x1936f2]:[],'tdx':_0x1bc95b});gracefulExit(_0x50e4b5);}),parentSegmentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2fa))[a2_0x40ffc1(0x38b)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x193),a2_0x40ffc1(0x3b2))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3e2),a2_0x40ffc1(0x365))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x141),a2_0x40ffc1(0x2fb))[a2_0x40ffc1(0x1a4)](async(_0x55efbd,_0x15af2f)=>{const _0xda8371=a2_0x40ffc1,_0x36cc3a=new ParentSegmentShowCommand(),_0x22938a=program[_0xda8371(0x1fb)](),_0x55a6ee=await createTDXInstance(_0x22938a),_0x420974=await _0x36cc3a[_0xda8371(0x387)]({'options':{..._0x22938a,..._0x15af2f},'args':_0x55efbd?[_0x55efbd]:[],'tdx':_0x55a6ee});gracefulExit(_0x420974);}),parentSegmentCmd[a2_0x40ffc1(0x283)]('use\x20[name]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x230))[a2_0x40ffc1(0x1a4)](async(_0x238855,_0x55b71e)=>{const _0x285a3d=a2_0x40ffc1,_0x58aa1f=new UseCommand(),_0x184428=program[_0x285a3d(0x1fb)](),_0x9d6c41=_0x238855?['parent_segment',_0x238855]:[],_0x166cb6=await _0x58aa1f[_0x285a3d(0x387)]({'options':{..._0x184428,..._0x55b71e},'args':_0x9d6c41,'tdx':null});gracefulExit(_0x166cb6);});const psRtCmd=parentSegmentCmd[a2_0x40ffc1(0x283)]('rt')['description'](a2_0x40ffc1(0x1ed));psRtCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1bc))['description'](a2_0x40ffc1(0x1f1))[a2_0x40ffc1(0x1a4)](async(_0x103e28,_0x3c1722)=>{const _0x47984e=a2_0x40ffc1,_0x99dbc6=new PSRtListCommand(),_0x222b69=program[_0x47984e(0x1fb)](),_0x3e5e73=await createTDXInstance(_0x222b69),_0x4c1998=await _0x99dbc6[_0x47984e(0x387)]({'options':{..._0x222b69,..._0x3c1722},'args':_0x103e28?[_0x103e28]:[],'tdx':_0x3e5e73});gracefulExit(_0x4c1998);}),psRtCmd[a2_0x40ffc1(0x283)]('validate\x20[name]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1cf))[a2_0x40ffc1(0x1a4)](async(_0x20fece,_0x15406b)=>{const _0x157ace=a2_0x40ffc1,_0x4e3346=new PSRtValidateCommand(),_0x93d44f=program[_0x157ace(0x1fb)](),_0x1cd249=await createTDXInstance(_0x93d44f),_0x3569c8=await _0x4e3346[_0x157ace(0x387)]({'options':{..._0x93d44f,..._0x15406b},'args':_0x20fece?[_0x20fece]:[],'tdx':_0x1cd249});gracefulExit(_0x3569c8);});const parentRtCmd=parentCmd[a2_0x40ffc1(0x283)]('rt',{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1ed));parentRtCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1f1))[a2_0x40ffc1(0x1a4)](async(_0x574e2f,_0x4fb938)=>{const _0x5a6904=new PSRtListCommand(),_0x5bc02e=program['opts'](),_0x2e6576=await createTDXInstance(_0x5bc02e),_0x592396=await _0x5a6904['run']({'options':{..._0x5bc02e,..._0x4fb938},'args':_0x574e2f?[_0x574e2f]:[],'tdx':_0x2e6576});gracefulExit(_0x592396);}),parentRtCmd['command'](a2_0x40ffc1(0x145))['description'](a2_0x40ffc1(0x1cf))['action'](async(_0x3a5e68,_0x296e32)=>{const _0x5220e9=a2_0x40ffc1,_0x34ebdf=new PSRtValidateCommand(),_0x150e32=program[_0x5220e9(0x1fb)](),_0x5f07e2=await createTDXInstance(_0x150e32),_0x19c65b=await _0x34ebdf[_0x5220e9(0x387)]({'options':{..._0x150e32,..._0x296e32},'args':_0x3a5e68?[_0x3a5e68]:[],'tdx':_0x5f07e2});gracefulExit(_0x19c65b);});const psPzCmd=parentSegmentCmd['command']('pz')[a2_0x40ffc1(0x38b)]('Personalization\x20service\x20management');psPzCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x23e))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x392))[a2_0x40ffc1(0x1a4)](async(_0x1794c8,_0x33c670)=>{const _0x37783f=new PSPzListCommand(),_0x5825e0=program['opts'](),_0x32809f=await createTDXInstance(_0x5825e0),_0x11db87=await _0x37783f['run']({'options':{..._0x5825e0,..._0x33c670},'args':_0x1794c8?[_0x1794c8]:[],'tdx':_0x32809f});gracefulExit(_0x11db87);}),psPzCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2e4))['description'](a2_0x40ffc1(0x3a0))[a2_0x40ffc1(0x1a4)](async(_0x5b85b9,_0x41623a)=>{const _0x32a241=a2_0x40ffc1,_0x5ea26d=new PSPzInitCommand(),_0x475c79=program[_0x32a241(0x1fb)](),_0x338ccd=await createTDXInstance(_0x475c79),_0x22cff3=await _0x5ea26d[_0x32a241(0x387)]({'options':{..._0x475c79,..._0x41623a},'args':_0x5b85b9?[_0x5b85b9]:[],'tdx':_0x338ccd});gracefulExit(_0x22cff3);});const parentPzCmd=parentCmd['command']('pz',{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x349));parentPzCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x23e))[a2_0x40ffc1(0x38b)]('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x40ffc1(0x1a4)](async(_0x455c84,_0x8b5e07)=>{const _0x3bfab8=a2_0x40ffc1,_0xf776d6=new PSPzListCommand(),_0x2b80ca=program[_0x3bfab8(0x1fb)](),_0x5ef419=await createTDXInstance(_0x2b80ca),_0x2f4fa9=await _0xf776d6[_0x3bfab8(0x387)]({'options':{..._0x2b80ca,..._0x8b5e07},'args':_0x455c84?[_0x455c84]:[],'tdx':_0x5ef419});gracefulExit(_0x2f4fa9);}),parentPzCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2e4))['description'](a2_0x40ffc1(0x3a0))[a2_0x40ffc1(0x1a4)](async(_0x184cd7,_0x135252)=>{const _0x18236c=a2_0x40ffc1,_0x9a1b85=new PSPzInitCommand(),_0x1e8d56=program[_0x18236c(0x1fb)](),_0x2e80c9=await createTDXInstance(_0x1e8d56),_0x20da77=await _0x9a1b85['run']({'options':{..._0x1e8d56,..._0x135252},'args':_0x184cd7?[_0x184cd7]:[],'tdx':_0x2e80c9});gracefulExit(_0x20da77);}),parentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x13e))['description'](a2_0x40ffc1(0x2c2))['requiredOption'](a2_0x40ffc1(0x3bd),a2_0x40ffc1(0x32f))['requiredOption'](a2_0x40ffc1(0x3a1),a2_0x40ffc1(0x183))['option'](a2_0x40ffc1(0x37e),a2_0x40ffc1(0x302))['option'](a2_0x40ffc1(0x252),a2_0x40ffc1(0x21a))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x13d),a2_0x40ffc1(0x23b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x13b),a2_0x40ffc1(0x225))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x337),a2_0x40ffc1(0x199))['option'](a2_0x40ffc1(0x15d),'Attributes\x20from\x20JSON\x20file')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x255),a2_0x40ffc1(0x268))[a2_0x40ffc1(0x3c5)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x173),a2_0x40ffc1(0x3d4))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x309),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x40ffc1(0x1a4)](async(_0x4898e7,_0xa3e2f6)=>{const _0x29d22b=a2_0x40ffc1,_0x27d15d=new ParentSegmentCreateCommand(),_0x17ccaa=program[_0x29d22b(0x1fb)](),_0x9de099=await createTDXInstance(_0x17ccaa),_0x4418a8=await _0x27d15d['run']({'options':{..._0x17ccaa,..._0xa3e2f6},'args':[_0x4898e7],'tdx':_0x9de099});gracefulExit(_0x4418a8);}),parentCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2c5))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x35a))[a2_0x40ffc1(0x3c5)]('--description\x20<text>',a2_0x40ffc1(0x38f))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x252),a2_0x40ffc1(0x2e9))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x13d),a2_0x40ffc1(0x124))[a2_0x40ffc1(0x3c5)]('--timezone\x20<tz>',a2_0x40ffc1(0x2b4))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2ec),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x343),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x40ffc1(0x3c5)]('--add-behaviors\x20<json>',a2_0x40ffc1(0x1ee))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x140),a2_0x40ffc1(0x125))[a2_0x40ffc1(0x1a4)](async(_0x1dd9f1,_0x3e6004)=>{const _0x1833dd=a2_0x40ffc1,_0x581a73=new ParentSegmentUpdateCommand(),_0x3d0665=program[_0x1833dd(0x1fb)](),_0x51b28a=await createTDXInstance(_0x3d0665),_0x577b07=await _0x581a73['run']({'options':{..._0x3d0665,..._0x3e6004},'args':[_0x1dd9f1],'tdx':_0x51b28a});gracefulExit(_0x577b07);}),folderCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x336))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x185))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x37e),'Folder\x20description')['option'](a2_0x40ffc1(0x26c),a2_0x40ffc1(0x28f))[a2_0x40ffc1(0x1a4)](async(_0x43b007,_0x2e2dec,_0x979b6d)=>{const _0x92dd92=a2_0x40ffc1,_0x598531=new SegmentFolderCreateCommand(),_0x4bbfcb=program[_0x92dd92(0x1fb)](),_0x4a7981=await createTDXInstance(_0x4bbfcb),_0x10bdfd=await _0x598531['run']({'options':{..._0x4bbfcb,..._0x979b6d},'args':[_0x43b007,_0x2e2dec],'tdx':_0x4a7981});gracefulExit(_0x10bdfd);}),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x334))[a2_0x40ffc1(0x38b)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')['action'](async(_0x4df86a,_0xad7488)=>{const _0x219adb=a2_0x40ffc1,_0x1bce74=new ActivationsCommand(),_0x2546ef=program[_0x219adb(0x1fb)](),_0x596a7e=await createTDXInstance(_0x2546ef),_0x110cce=await _0x1bce74[_0x219adb(0x387)]({'options':{..._0x2546ef,..._0xad7488},'args':[_0x4df86a],'tdx':_0x596a7e});gracefulExit(_0x110cce);});const workflowCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1f8))['alias']('wf')[a2_0x40ffc1(0x38b)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd['command'](a2_0x40ffc1(0x177))['description'](a2_0x40ffc1(0x3c7)),wfProjectListAction=async(_0x141a13,_0x32823d)=>{const _0x50a5bb=a2_0x40ffc1,_0x2b35c4=new WorkflowProjectsCommand(),_0x41af13=program[_0x50a5bb(0x1fb)](),_0x5ee8a2=await createTDXInstance(_0x41af13),_0x1de584=await _0x2b35c4['run']({'options':{..._0x41af13,..._0x32823d},'args':_0x141a13?[_0x141a13]:[],'tdx':_0x5ee8a2});gracefulExit(_0x1de584);};wfProjectCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x32d))['action'](wfProjectListAction),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x19f))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x23a))[a2_0x40ffc1(0x1a4)](wfProjectListAction);const wfWorkflowListAction=async(_0x30c129,_0x1109a5)=>{const _0x43d002=a2_0x40ffc1,_0x212267=new WorkflowWorkflowsCommand(),_0x10914e=program['opts'](),_0x1e418f=await createTDXInstance(_0x10914e),_0x38846e=await _0x212267[_0x43d002(0x387)]({'options':{..._0x10914e,..._0x1109a5},'args':_0x30c129?[_0x30c129]:[],'tdx':_0x1e418f});gracefulExit(_0x38846e);};workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3a9))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2b9))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x206))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x121)),wfSessionListAction=async(_0x35f61c,_0x435b4d)=>{const _0x143d96=a2_0x40ffc1,_0x3efb8b=new WorkflowSessionsCommand(),_0x2365ae=program[_0x143d96(0x1fb)](),_0xfac885=await createTDXInstance(_0x2365ae),_0x505ebf=await _0x3efb8b[_0x143d96(0x387)]({'options':{..._0x2365ae,..._0x435b4d},'args':_0x35f61c?[_0x35f61c]:[],'tdx':_0xfac885});gracefulExit(_0x505ebf);};wfSessionCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x232))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x13a))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2a7),a2_0x40ffc1(0x2b5))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1fc),a2_0x40ffc1(0x2e6))[a2_0x40ffc1(0x3c5)]('--to\x20<timestamp>',a2_0x40ffc1(0x353))[a2_0x40ffc1(0x1a4)](wfSessionListAction),workflowCmd[a2_0x40ffc1(0x283)]('sessions\x20[project]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x26f))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2a7),a2_0x40ffc1(0x2b5))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1fc),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x40ffc1(0x3c5)]('--to\x20<timestamp>',a2_0x40ffc1(0x353))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x40e7b4,_0x35a4c1)=>{const _0x5db456=a2_0x40ffc1,_0x35cef=new WorkflowAttemptsCommand(),_0x38c2d7=program[_0x5db456(0x1fb)](),_0x521bfa=await createTDXInstance(_0x38c2d7),_0x1d23d7=await _0x35cef[_0x5db456(0x387)]({'options':{..._0x38c2d7,..._0x35a4c1},'args':_0x40e7b4?[_0x40e7b4]:[],'tdx':_0x521bfa});gracefulExit(_0x1d23d7);},attemptCmd=workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3ef))['description'](a2_0x40ffc1(0x256))['argument'](a2_0x40ffc1(0x157),'Attempt\x20ID')[a2_0x40ffc1(0x159)](a2_0x40ffc1(0x21e),a2_0x40ffc1(0x39d))[a2_0x40ffc1(0x159)](a2_0x40ffc1(0x31c),a2_0x40ffc1(0x26e))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x296),a2_0x40ffc1(0x249))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x382),a2_0x40ffc1(0x1ca))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x312),a2_0x40ffc1(0x3d6))['option'](a2_0x40ffc1(0x14e),a2_0x40ffc1(0x36e))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2be),a2_0x40ffc1(0x2e1))['option'](a2_0x40ffc1(0x170),a2_0x40ffc1(0x2ce))[a2_0x40ffc1(0x1a4)](async(_0x2943ad,_0x30a7d7,_0xcc02de,_0x58a039)=>{const _0x26508e=a2_0x40ffc1;if(_0x2943ad==='list'){await wfAttemptListAction(_0x30a7d7,_0x58a039);return;}if(!_0x2943ad){attemptCmd[_0x26508e(0x3df)]();return;}const _0x11f33b=program['opts'](),_0x5edc8b=await createTDXInstance(_0x11f33b);let _0x5d6f58=0x0;if(!_0x30a7d7){const _0x4ba54d=new WorkflowAttemptCommand();_0x5d6f58=await _0x4ba54d[_0x26508e(0x387)]({'options':{..._0x11f33b,..._0x58a039},'args':[_0x2943ad],'tdx':_0x5edc8b});}else{if(_0x30a7d7===_0x26508e(0x37a)){const _0x2739af=new WorkflowLogsCommand();_0x5d6f58=await _0x2739af[_0x26508e(0x387)]({'options':{..._0x11f33b,..._0x58a039},'args':_0xcc02de?[_0x2943ad,_0xcc02de]:[_0x2943ad],'tdx':_0x5edc8b});}else{if(_0x30a7d7==='tasks'){const _0x4650fc=new WorkflowTasksCommand();_0x5d6f58=await _0x4650fc[_0x26508e(0x387)]({'options':{..._0x11f33b,..._0x58a039},'args':[_0x2943ad],'tdx':_0x5edc8b});}else{if(_0x30a7d7===_0x26508e(0x18e)){const _0x2fbd62=new WorkflowKillCommand();_0x5d6f58=await _0x2fbd62[_0x26508e(0x387)]({'options':{..._0x11f33b,..._0x58a039},'args':[_0x2943ad],'tdx':_0x5edc8b});}else{if(_0x30a7d7===_0x26508e(0x1e1)){const _0x30c472=new WorkflowRetryCommand();_0x5d6f58=await _0x30c472['run']({'options':{..._0x11f33b,..._0x58a039},'args':[_0x26508e(0x17e)+_0x2943ad],'tdx':_0x5edc8b});}else console[_0x26508e(0x22f)]('Unknown\x20action:\x20'+_0x30a7d7),console['error']('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x5d6f58=0x1;}}}}gracefulExit(_0x5d6f58);});attemptCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x232))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x3b1))['option']('--include-retried',a2_0x40ffc1(0x213))['action'](wfAttemptListAction),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2c4))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x23f))['option'](a2_0x40ffc1(0x170),a2_0x40ffc1(0x213))[a2_0x40ffc1(0x1a4)](wfAttemptListAction),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1ba))[a2_0x40ffc1(0x38b)]('Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt')[a2_0x40ffc1(0x3c5)]('--follow',a2_0x40ffc1(0x305))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2ef),'Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x298),a2_0x40ffc1(0x2c9))['action'](async(_0x14a8b1,_0x54bc8e)=>{const _0x38b3ac=a2_0x40ffc1,_0x3ee8b4=new WorkflowTimelineCommand(),_0x49eb93=program[_0x38b3ac(0x1fb)](),_0x1792c4=await createTDXInstance(_0x49eb93),_0x55dde3=await _0x3ee8b4['run']({'options':{..._0x49eb93,..._0x54bc8e},'args':_0x14a8b1?[_0x14a8b1]:[],'tdx':_0x1792c4});gracefulExit(_0x55dde3);}),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x26a))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1b1))['option'](a2_0x40ffc1(0x2f8),'Resume\x20from\x20specific\x20task')['option'](a2_0x40ffc1(0x14e),a2_0x40ffc1(0x165))[a2_0x40ffc1(0x1a4)](async(_0x69dc96,_0x5bea2c)=>{const _0x163ba8=a2_0x40ffc1,_0x217fb5=new WorkflowRetryCommand(),_0x217231=program[_0x163ba8(0x1fb)](),_0x227119=await createTDXInstance(_0x217231),_0x485331=await _0x217fb5[_0x163ba8(0x387)]({'options':{..._0x217231,..._0x5bea2c},'args':[_0x69dc96],'tdx':_0x227119});gracefulExit(_0x485331);}),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2f1))['description'](a2_0x40ffc1(0x23d))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x27c),'Workflow\x20parameter\x20(repeatable)',(_0x1d437e,_0x5e766c=[])=>[..._0x5e766c,_0x1d437e],[])[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3d1),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x40ffc1(0x1a4)](async(_0x3142ef,_0x6c6b12)=>{const _0x275b95=new WorkflowRunCommand(),_0x4f000b=program['opts'](),_0x21f084=await createTDXInstance(_0x4f000b),_0x54f4c4=await _0x275b95['run']({'options':{..._0x4f000b,..._0x6c6b12},'args':_0x3142ef?[_0x3142ef]:[],'tdx':_0x21f084});gracefulExit(_0x54f4c4);}),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x326))['description']('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a2_0x40ffc1(0x245),a2_0x40ffc1(0x304))['action'](async(_0x4b8ca8,_0x781737,_0xe0731)=>{const _0x283f0e=a2_0x40ffc1,_0xbd1627=new WorkflowDownloadCommand(),_0x31adae=program[_0x283f0e(0x1fb)](),_0x3e8884=await createTDXInstance(_0x31adae),_0x472e92=await _0xbd1627[_0x283f0e(0x387)]({'options':{..._0x31adae,..._0xe0731},'args':[_0x4b8ca8,_0x781737||'.'],'tdx':_0x3e8884});gracefulExit(_0x472e92);}),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x169))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x29a))['option'](a2_0x40ffc1(0x245),'Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x40ffc1(0x3c5)]('--dry-run',a2_0x40ffc1(0x34f))[a2_0x40ffc1(0x1a4)](async(_0x4ddb73,_0x66cc81,_0x1fb78f)=>{const _0x7ef4da=a2_0x40ffc1,_0x45738f=new WorkflowPullCommand(),_0x1f8891=program[_0x7ef4da(0x1fb)](),_0x144a9b=await createTDXInstance(_0x1f8891),_0x33c4d0=await _0x45738f['run']({'options':{..._0x1f8891,..._0x1fb78f},'args':_0x66cc81?[_0x4ddb73,_0x66cc81]:[_0x4ddb73],'tdx':_0x144a9b});gracefulExit(_0x33c4d0);}),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x25a))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x3a5))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x245),a2_0x40ffc1(0x3d0))[a2_0x40ffc1(0x3c5)]('--dry-run',a2_0x40ffc1(0x1b7))['option'](a2_0x40ffc1(0x254),a2_0x40ffc1(0x316))['action'](async(_0x3cc203,_0x1ceb2)=>{const _0x2d33ee=a2_0x40ffc1,_0x5079f0=new WorkflowPushCommand(),_0x5e0eca=program[_0x2d33ee(0x1fb)](),_0x44f0ea=await createTDXInstance(_0x5e0eca),_0x28229d=await _0x5079f0[_0x2d33ee(0x387)]({'options':{..._0x5e0eca,..._0x1ceb2},'args':_0x3cc203?[_0x3cc203]:[],'tdx':_0x44f0ea});gracefulExit(_0x28229d);}),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3be))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2de))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1bf),a2_0x40ffc1(0x2cd))[a2_0x40ffc1(0x3c5)]('--revision\x20<revision>',a2_0x40ffc1(0x240))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x254),a2_0x40ffc1(0x316))[a2_0x40ffc1(0x1a4)](async(_0xb51c7e,_0xbc4c1c)=>{const _0x39be64=a2_0x40ffc1,_0x10bd54=new WorkflowUploadCommand(),_0x2ebb6b=program[_0x39be64(0x1fb)](),_0x121939=await createTDXInstance(_0x2ebb6b),_0x47d725=await _0x10bd54[_0x39be64(0x387)]({'options':{..._0x2ebb6b,..._0xbc4c1c},'args':_0xb51c7e?[_0xb51c7e]:[],'tdx':_0x121939});gracefulExit(_0x47d725);}),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x28b))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x291))[a2_0x40ffc1(0x3c5)]('--name\x20<name>',a2_0x40ffc1(0x3d2))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x245),a2_0x40ffc1(0x3d0))['option'](a2_0x40ffc1(0x3de),a2_0x40ffc1(0x135))['option'](a2_0x40ffc1(0x254),a2_0x40ffc1(0x316))[a2_0x40ffc1(0x1a4)](async(_0x324d13,_0x3245a4)=>{const _0x3fbac0=a2_0x40ffc1,_0x2f9318=new WorkflowCloneCommand(),_0x4f93e3=program[_0x3fbac0(0x1fb)](),_0xc550fd=await createTDXInstance(_0x4f93e3),_0x1c796d=await _0x2f9318[_0x3fbac0(0x387)]({'options':{..._0x4f93e3,..._0x3245a4},'args':_0x324d13?[_0x324d13]:[],'tdx':_0xc550fd});gracefulExit(_0x1c796d);}),workflowCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x29f))[a2_0x40ffc1(0x1a4)](async(_0x1c00cd,_0x5218c3)=>{const _0x4fb988=a2_0x40ffc1,_0x1f683d=new WorkflowDeleteCommand(),_0x1e5c5a=program[_0x4fb988(0x1fb)](),_0x1fdac1=await createTDXInstance(_0x1e5c5a),_0x374e40=await _0x1f683d[_0x4fb988(0x387)]({'options':{..._0x1e5c5a,..._0x5218c3},'args':[_0x1c00cd],'tdx':_0x1fdac1});gracefulExit(_0x374e40);}),workflowCmd['command'](a2_0x40ffc1(0x2e5))['description']('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x162),a2_0x40ffc1(0x30b))[a2_0x40ffc1(0x1a4)](async(_0x4c5fc2,_0x45bda8)=>{const _0x377ea5=a2_0x40ffc1,_0x4e423d=new WorkflowUseCommand(),_0x385710=program[_0x377ea5(0x1fb)](),_0x408a55=await createTDXInstance(_0x385710),_0x17939e=await _0x4e423d[_0x377ea5(0x387)]({'options':{..._0x385710,..._0x45bda8},'args':_0x4c5fc2?[_0x4c5fc2]:[],'tdx':_0x408a55});gracefulExit(_0x17939e);});const wfSecretsCmd=workflowCmd['command'](a2_0x40ffc1(0x2f0))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x152));wfSecretsCmd[a2_0x40ffc1(0x283)]('list\x20[project]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2fd))[a2_0x40ffc1(0x1a4)](async(_0xa65271,_0x43cb1b)=>{const _0x3f3f72=new WorkflowSecretsListCommand(),_0xe96ca8=program['opts'](),_0xbf2899=await createTDXInstance(_0xe96ca8),_0x3e6097=await _0x3f3f72['run']({'options':{..._0xe96ca8,..._0x43cb1b},'args':_0xa65271?[_0xa65271]:[],'tdx':_0xbf2899});gracefulExit(_0x3e6097);}),wfSecretsCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1ab))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x132))['action'](async(_0x23a4e2,_0x576d6f)=>{const _0x314a49=a2_0x40ffc1,_0x197aa8=new WorkflowSecretsSetCommand(),_0x1cdc06=program[_0x314a49(0x1fb)](),_0x5c43e3=await createTDXInstance(_0x1cdc06),_0x36db95=await _0x197aa8[_0x314a49(0x387)]({'options':{..._0x1cdc06,..._0x576d6f},'args':_0x23a4e2,'tdx':_0x5c43e3});gracefulExit(_0x36db95);}),wfSecretsCmd[a2_0x40ffc1(0x283)]('delete\x20<args...>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x29b))['action'](async(_0x5991a2,_0x22a573)=>{const _0x530cce=a2_0x40ffc1,_0xf2ca60=new WorkflowSecretsDeleteCommand(),_0x13f45b=program[_0x530cce(0x1fb)](),_0x39db50=await createTDXInstance(_0x13f45b),_0x4b6408=await _0xf2ca60[_0x530cce(0x387)]({'options':{..._0x13f45b,..._0x22a573},'args':_0x5991a2,'tdx':_0x39db50});gracefulExit(_0x4b6408);});const jobCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3ec))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2df)),jobListAction=async _0x45ccf8=>{const _0x2241fa=a2_0x40ffc1,_0x324af0=new JobListCommand(),_0x14dd0d=program[_0x2241fa(0x1fb)](),_0x642517=await createTDXInstance(_0x14dd0d),_0x53dd13=await _0x324af0[_0x2241fa(0x387)]({'options':{..._0x14dd0d,..._0x45ccf8},'args':[],'tdx':_0x642517});gracefulExit(_0x53dd13);};jobCmd['command'](a2_0x40ffc1(0x267))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x300))['option'](a2_0x40ffc1(0x2a7),a2_0x40ffc1(0x217))[a2_0x40ffc1(0x1a4)](jobListAction),program[a2_0x40ffc1(0x283)]('jobs',{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1b0))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2a7),a2_0x40ffc1(0x217))['action'](jobListAction),jobCmd['command']('show\x20<job-id>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1e6))[a2_0x40ffc1(0x1a4)](async(_0x9951a5,_0x42ad11)=>{const _0x54fc99=a2_0x40ffc1,_0x1ec599=new JobShowCommand(),_0x5d0a99=program['opts'](),_0x350fac=await createTDXInstance(_0x5d0a99),_0x2d46ce=await _0x1ec599[_0x54fc99(0x387)]({'options':{..._0x5d0a99,..._0x42ad11},'args':[_0x9951a5],'tdx':_0x350fac});gracefulExit(_0x2d46ce);}),jobCmd[a2_0x40ffc1(0x283)]('kill\x20<job-id>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2a3))[a2_0x40ffc1(0x1a4)](async(_0x404b6a,_0x42fcee)=>{const _0x2b5780=a2_0x40ffc1,_0x19beb3=new JobKillCommand(),_0x283f23=program[_0x2b5780(0x1fb)](),_0x439b3e=await createTDXInstance(_0x283f23),_0x2037c9=await _0x19beb3[_0x2b5780(0x387)]({'options':{..._0x283f23,..._0x42fcee},'args':[_0x404b6a],'tdx':_0x439b3e});gracefulExit(_0x2037c9);}),jobCmd['command'](a2_0x40ffc1(0x15b))[a2_0x40ffc1(0x38b)]('Submit\x20a\x20job')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x12e),a2_0x40ffc1(0x315),a2_0x40ffc1(0x275))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x276),'Read\x20query\x20from\x20file')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x27d),'Database\x20name\x20(default:\x20information_schema)',a2_0x40ffc1(0x1a6))[a2_0x40ffc1(0x3c5)]('--result\x20<target>',a2_0x40ffc1(0x1e4))[a2_0x40ffc1(0x1a4)](async(_0x1cb609,_0x2b4796)=>{const _0x44ff60=a2_0x40ffc1,_0x388a65=new JobSubmitCommand(),_0x1d2e0d=program[_0x44ff60(0x1fb)](),_0x5e6994=await createTDXInstance(_0x1d2e0d),_0x5e74be=await _0x388a65[_0x44ff60(0x387)]({'options':{..._0x1d2e0d,..._0x2b4796},'args':_0x1cb609?[_0x1cb609]:[],'tdx':_0x5e6994});gracefulExit(_0x5e74be);}),jobCmd[a2_0x40ffc1(0x283)]('result\x20<job-id>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x161))[a2_0x40ffc1(0x1a4)](async(_0x3d649e,_0x59a979)=>{const _0x54a648=a2_0x40ffc1,_0x15e696=new JobResultCommand(),_0x3940ad=program['opts'](),_0x1b3a7c=await createTDXInstance(_0x3940ad),_0x3bc97d=await _0x15e696[_0x54a648(0x387)]({'options':{..._0x3940ad,..._0x59a979},'args':[_0x3d649e],'tdx':_0x1b3a7c});gracefulExit(_0x3bc97d);});const scheduleCmd=jobCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1d4))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x186));scheduleCmd['command'](a2_0x40ffc1(0x1bc))['description'](a2_0x40ffc1(0x180))[a2_0x40ffc1(0x1a4)](async(_0x59b809,_0x2aadf1)=>{const _0x28a04b=a2_0x40ffc1,_0x1774a8=new ScheduleListCommand(),_0x247e06=program[_0x28a04b(0x1fb)](),_0x16fa13=await createTDXInstance(_0x247e06),_0x2707d0=await _0x1774a8[_0x28a04b(0x387)]({'options':{..._0x247e06,..._0x2aadf1},'args':_0x59b809?[_0x59b809]:[],'tdx':_0x16fa13});gracefulExit(_0x2707d0);}),scheduleCmd[a2_0x40ffc1(0x283)]('show\x20<name>')[a2_0x40ffc1(0x38b)]('Show\x20schedule\x20details')[a2_0x40ffc1(0x1a4)](async(_0x1e2522,_0x502ea2)=>{const _0x5752e9=a2_0x40ffc1,_0x38fcd5=new ScheduleShowCommand(),_0x4c4acb=program[_0x5752e9(0x1fb)](),_0x55c993=await createTDXInstance(_0x4c4acb),_0x2e2bc6=await _0x38fcd5['run']({'options':{..._0x4c4acb,..._0x502ea2},'args':[_0x1e2522],'tdx':_0x55c993});gracefulExit(_0x2e2bc6);}),scheduleCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x13e))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2cb))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1bd),a2_0x40ffc1(0x16b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x362),a2_0x40ffc1(0x36c))[a2_0x40ffc1(0x1c6)]('-f,\x20--file\x20<path>',a2_0x40ffc1(0x248))[a2_0x40ffc1(0x3c5)]('--type\x20<type>',a2_0x40ffc1(0x269),a2_0x40ffc1(0x275))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x16a),a2_0x40ffc1(0x28c))['option'](a2_0x40ffc1(0x13b),'Timezone\x20for\x20cron\x20(default:\x20UTC)')['option'](a2_0x40ffc1(0x3c9),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x40ffc1(0x3c5)]('--priority\x20<-2~2>','Job\x20priority\x20(-2\x20to\x202)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x34c),a2_0x40ffc1(0x3ca))['option'](a2_0x40ffc1(0x223),a2_0x40ffc1(0x32a))['option'](a2_0x40ffc1(0x3ce),a2_0x40ffc1(0x17f))[a2_0x40ffc1(0x1a4)](async(_0x11aca4,_0x299ec6)=>{const _0x5626ed=a2_0x40ffc1,_0x5ec687=new ScheduleCreateCommand(),_0x179033=program[_0x5626ed(0x1fb)](),_0x273dd8=await createTDXInstance(_0x179033);_0x299ec6['in']&&(_0x299ec6['database']=_0x299ec6['in']);const _0x5a48fd=await _0x5ec687['run']({'options':{..._0x179033,..._0x299ec6},'args':[_0x11aca4],'tdx':_0x273dd8});gracefulExit(_0x5a48fd);}),scheduleCmd[a2_0x40ffc1(0x283)]('update\x20<name>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x263))[a2_0x40ffc1(0x3c5)]('-d,\x20--database\x20<db>',a2_0x40ffc1(0x2cc))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x362),a2_0x40ffc1(0x36c))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x276),'Read\x20query\x20from\x20file')['option'](a2_0x40ffc1(0x142),'Query\x20type:\x20trino\x20or\x20hive')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x16a),a2_0x40ffc1(0x28c))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x13b),a2_0x40ffc1(0x27f))[a2_0x40ffc1(0x3c5)]('--delay\x20<seconds>','Delay\x20in\x20seconds\x20before\x20execution')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x204),a2_0x40ffc1(0x2b8))[a2_0x40ffc1(0x3c5)]('--retry-limit\x20<0~32>',a2_0x40ffc1(0x3ca))['option'](a2_0x40ffc1(0x223),'Query\x20engine\x20version')['option'](a2_0x40ffc1(0x3ce),a2_0x40ffc1(0x17f))[a2_0x40ffc1(0x1a4)](async(_0x40e94f,_0x4fab33)=>{const _0x19e545=a2_0x40ffc1,_0x26c1a5=new ScheduleUpdateCommand(),_0xd15fa4=program[_0x19e545(0x1fb)](),_0xdadeda=await createTDXInstance(_0xd15fa4);_0x4fab33['in']&&(_0x4fab33[_0x19e545(0x2b1)]=_0x4fab33['in']);const _0x31c56d=await _0x26c1a5['run']({'options':{..._0xd15fa4,..._0x4fab33},'args':[_0x40e94f],'tdx':_0xdadeda});gracefulExit(_0x31c56d);}),scheduleCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x35f))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2d0))[a2_0x40ffc1(0x1a4)](async(_0x4cf24b,_0x578e46)=>{const _0x56ac1b=a2_0x40ffc1,_0x4eb9e8=new ScheduleDeleteCommand(),_0x1cc6c6=program[_0x56ac1b(0x1fb)](),_0x321a3d=await createTDXInstance(_0x1cc6c6),_0x424044=await _0x4eb9e8[_0x56ac1b(0x387)]({'options':{..._0x1cc6c6,..._0x578e46},'args':[_0x4cf24b],'tdx':_0x321a3d});gracefulExit(_0x424044);}),scheduleCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x34d))['description']('Run\x20a\x20scheduled\x20query\x20immediately')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2d4),a2_0x40ffc1(0x221))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1d2),a2_0x40ffc1(0x341))['action'](async(_0x44bde0,_0x2808ae)=>{const _0x17e197=a2_0x40ffc1,_0x48d6aa=new ScheduleRunCommand(),_0x1a2127=program[_0x17e197(0x1fb)](),_0xcea4b2=await createTDXInstance(_0x1a2127),_0x25bc03=await _0x48d6aa[_0x17e197(0x387)]({'options':{..._0x1a2127,..._0x2808ae},'args':[_0x44bde0],'tdx':_0xcea4b2});gracefulExit(_0x25bc03);}),scheduleCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x17d))['description']('Show\x20schedule\x20execution\x20history')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x369),a2_0x40ffc1(0x137))['option'](a2_0x40ffc1(0x1d9),'Ending\x20offset\x20(default:\x2020)')[a2_0x40ffc1(0x1a4)](async(_0x176b25,_0x59d32b)=>{const _0x1c7c49=a2_0x40ffc1,_0x4e36f2=new ScheduleHistoryCommand(),_0x19c974=program[_0x1c7c49(0x1fb)](),_0x2119f3=await createTDXInstance(_0x19c974),_0x57f700=await _0x4e36f2[_0x1c7c49(0x387)]({'options':{..._0x19c974,..._0x59d32b},'args':[_0x176b25],'tdx':_0x2119f3});gracefulExit(_0x57f700);});const llmCmd=program[a2_0x40ffc1(0x283)]('llm')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1b2));llmCmd['command'](a2_0x40ffc1(0x261))[a2_0x40ffc1(0x38b)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x40ffc1(0x1a4)](async(_0x543d79,_0x484b6f)=>{const _0x31ee8c=a2_0x40ffc1,_0x29a004=new LLMUseCommand(),_0x1f0eb1=program[_0x31ee8c(0x1fb)](),_0x13745d=await createTDXInstance(_0x1f0eb1),_0x2b7b66=await _0x29a004['run']({'options':{..._0x1f0eb1,..._0x484b6f},'args':[_0x543d79],'tdx':_0x13745d});gracefulExit(_0x2b7b66);}),llmCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1b8))[a2_0x40ffc1(0x38b)]('List\x20available\x20LLM\x20models')['action'](async _0x411d50=>{const _0x34eaa5=a2_0x40ffc1,_0x44aabc=new LLMModelsCommand(),_0x173cc4=program[_0x34eaa5(0x1fb)](),_0x45cd79=await createTDXInstance(_0x173cc4),_0x3fe08b=await _0x44aabc[_0x34eaa5(0x387)]({'options':{..._0x173cc4,..._0x411d50},'args':[],'tdx':_0x45cd79});gracefulExit(_0x3fe08b);});const projectCmd=llmCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x177))['description'](a2_0x40ffc1(0x350)),llmProjectListAction=async(_0x2849b1,_0x20f40e)=>{const _0xba221d=new LLMProjectsCommand(),_0xee862e=program['opts'](),_0x4eb55f=await createTDXInstance(_0xee862e),_0x212059=await _0xba221d['run']({'options':{..._0xee862e,..._0x20f40e},'args':_0x2849b1?[_0x2849b1]:[],'tdx':_0x4eb55f});gracefulExit(_0x212059);};projectCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1bc))['description']('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x40ffc1(0x1a4)](llmProjectListAction),llmCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x19f))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x274))['action'](llmProjectListAction),projectCmd[a2_0x40ffc1(0x283)]('create\x20<name>')['description'](a2_0x40ffc1(0x2e7))[a2_0x40ffc1(0x3c5)]('--description\x20<text>',a2_0x40ffc1(0x34a))[a2_0x40ffc1(0x1a4)](async(_0x20ce58,_0x1fa47d)=>{const _0x4feeb0=a2_0x40ffc1,_0xafa07e=new LLMProjectCreateCommand(),_0x44639b=program[_0x4feeb0(0x1fb)](),_0x4ba6ad=await createTDXInstance(_0x44639b),_0x957a82=await _0xafa07e[_0x4feeb0(0x387)]({'options':{..._0x44639b,..._0x1fa47d},'args':[_0x20ce58],'tdx':_0x4ba6ad});gracefulExit(_0x957a82);}),projectCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x35f))['description'](a2_0x40ffc1(0x218))[a2_0x40ffc1(0x1a4)](async(_0x2c270c,_0x3f6b2a)=>{const _0x9a82bd=a2_0x40ffc1,_0x289be3=new LLMProjectDeleteCommand(),_0x3a3c31=program[_0x9a82bd(0x1fb)](),_0x3b98d7=await createTDXInstance(_0x3a3c31),_0xb07df9=await _0x289be3[_0x9a82bd(0x387)]({'options':{..._0x3a3c31,..._0x3f6b2a},'args':[_0x2c270c],'tdx':_0x3b98d7});gracefulExit(_0xb07df9);}),projectCmd['command']('backup\x20<name>')[a2_0x40ffc1(0x38b)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x25b),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x40ffc1(0x3c5)]('--dry-run',a2_0x40ffc1(0x327))[a2_0x40ffc1(0x1a4)](async(_0x390dd4,_0x144cf8)=>{const _0x53fbc1=a2_0x40ffc1,_0x10673d=new LLMProjectBackupCommand(),_0x4b7a91=program[_0x53fbc1(0x1fb)](),_0x33706c=await createTDXInstance(_0x4b7a91),_0x381afb=await _0x10673d[_0x53fbc1(0x387)]({'options':{..._0x4b7a91,..._0x144cf8},'args':[_0x390dd4],'tdx':_0x33706c});gracefulExit(_0x381afb);}),projectCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x35d))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1e9))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x388),a2_0x40ffc1(0x35e))[a2_0x40ffc1(0x3c5)]('--dry-run',a2_0x40ffc1(0x35c))['action'](async(_0x442c6b,_0x51f1f7)=>{const _0x133048=a2_0x40ffc1,_0x4a814b=new LLMProjectRestoreCommand(),_0x59a919=program[_0x133048(0x1fb)](),_0x6fd2d0=await createTDXInstance(_0x59a919),_0x880b0b=await _0x4a814b[_0x133048(0x387)]({'options':{..._0x59a919,..._0x51f1f7},'args':[_0x442c6b],'tdx':_0x6fd2d0});gracefulExit(_0x880b0b);});const llmAgentListAction=async(_0x4a9f3b,_0x5a330b)=>{const _0x9b1f84=new LLMAgentsCommand(),_0x2abfd0=program['opts'](),_0x36634d=await createTDXInstance(_0x2abfd0),_0x2ece98=await _0x9b1f84['run']({'options':{..._0x2abfd0,..._0x5a330b},'args':_0x4a9f3b?[_0x4a9f3b]:[],'tdx':_0x36634d});gracefulExit(_0x2ece98);};llmCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x136))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x340))['action'](llmAgentListAction),program['command'](a2_0x40ffc1(0x136))['description'](a2_0x40ffc1(0x340))[a2_0x40ffc1(0x1a4)](llmAgentListAction),llmCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2f5))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x3a8))['option'](a2_0x40ffc1(0x33a),a2_0x40ffc1(0x3c2))[a2_0x40ffc1(0x1a4)](async(_0x15ce7b,_0x2c2fe2)=>{const _0x49d280=a2_0x40ffc1,_0x3d674f=new LLMHistoryCommand(),_0x465b9c=program[_0x49d280(0x1fb)](),_0x50ccd4=await createTDXInstance(_0x465b9c),_0x466610=await _0x3d674f[_0x49d280(0x387)]({'options':{..._0x465b9c,..._0x2c2fe2},'args':_0x15ce7b?[_0x15ce7b]:[],'tdx':_0x50ccd4});gracefulExit(_0x466610);});isExperimentalAvailable()&&llmCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x376))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2bf))[a2_0x40ffc1(0x1a4)](async(_0x1f9215,_0x4d9083)=>{const _0x3cb7c9=a2_0x40ffc1,_0x330988=new LLMLogCommand(),_0x523a66=program[_0x3cb7c9(0x1fb)](),_0xe53ad1=await createTDXInstance(_0x523a66),_0x5dada1=await _0x330988['run']({'options':{..._0x523a66,..._0x4d9083},'args':[_0x1f9215],'tdx':_0xe53ad1});gracefulExit(_0x5dada1);});program['command'](a2_0x40ffc1(0x279))['usage'](a2_0x40ffc1(0x1c5))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2ad))['option'](a2_0x40ffc1(0x37d),a2_0x40ffc1(0x262))['option'](a2_0x40ffc1(0x3da),a2_0x40ffc1(0x1d6))['option']('--no-proxy',a2_0x40ffc1(0x12f))[a2_0x40ffc1(0x3b7)]()[a2_0x40ffc1(0x18d)](!![])[a2_0x40ffc1(0x3eb)](a2_0x40ffc1(0x288),a2_0x40ffc1(0x386))[a2_0x40ffc1(0x1a4)](async(_0x33ffce,_0x3b2dc0)=>{const _0x40f8fb=a2_0x40ffc1,_0x14f731=program[_0x40f8fb(0x1fb)](),_0x47a818=Array[_0x40f8fb(0x39b)](_0x33ffce)?_0x33ffce:[];if(_0x47a818[0x0]===_0x40f8fb(0x396)){const _0xbce964=new ClaudeStatuslineCommand(),_0x1b5e0f=await _0xbce964[_0x40f8fb(0x387)]({'options':{..._0x14f731,..._0x3b2dc0},'args':_0x47a818['slice'](0x1),'tdx':null});gracefulExit(_0x1b5e0f);}if(_0x47a818[0x0]===_0x40f8fb(0x215)){const _0x258b5e=new ClaudeUsageCommand(),_0x58e9b5=await _0x258b5e[_0x40f8fb(0x387)]({'options':{..._0x14f731,..._0x3b2dc0},'args':_0x47a818['slice'](0x1),'tdx':null});gracefulExit(_0x58e9b5);}const _0x2b7308=new ClaudeCommand(),_0x55c6b5=await createTDXInstance(_0x14f731),_0x442c1f=await _0x2b7308['run']({'options':{..._0x14f731,..._0x3b2dc0},'args':_0x47a818,'tdx':_0x55c6b5});gracefulExit(_0x442c1f);}),program['command'](a2_0x40ffc1(0x155))['description'](a2_0x40ffc1(0x247))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x162),a2_0x40ffc1(0x3ae))[a2_0x40ffc1(0x3c5)]('--default',a2_0x40ffc1(0x36a))[a2_0x40ffc1(0x1a4)](async(_0xddd62b,_0x503e26,_0x10d7c3)=>{const _0x22f6e2=a2_0x40ffc1,_0x3661a0=new UseCommand(),_0x548163=program[_0x22f6e2(0x1fb)](),_0x26ad2d=[];if(_0xddd62b)_0x26ad2d[_0x22f6e2(0x2b0)](_0xddd62b);if(_0x503e26)_0x26ad2d[_0x22f6e2(0x2b0)](_0x503e26);const _0x51aba7=_0xddd62b===_0x22f6e2(0x352),_0x543d22=_0x51aba7?await createTDXInstance(_0x548163):null,_0x1160c7=await _0x3661a0[_0x22f6e2(0x387)]({'options':{..._0x548163,..._0x10d7c3},'args':_0x26ad2d,'tdx':_0x543d22});gracefulExit(_0x1160c7);}),program['command'](a2_0x40ffc1(0x2f7))['description'](a2_0x40ffc1(0x38d))[a2_0x40ffc1(0x1a4)](async _0x10bbc3=>{const _0x287c0e=a2_0x40ffc1,_0x5c87c1=new StatusCommand(),_0x56b871=program[_0x287c0e(0x1fb)](),_0x4a09b3=await createTDXInstance(_0x56b871),_0x4fde3b=await _0x5c87c1['run']({'options':{..._0x56b871,..._0x10bbc3},'args':[],'tdx':_0x4a09b3});gracefulExit(_0x4fde3b);}),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x285))['description']('Upgrade\x20tdx\x20to\x20the\x20latest\x20version')['option']('--dry-run',a2_0x40ffc1(0x297))[a2_0x40ffc1(0x3c5)]('--next',a2_0x40ffc1(0x2d2))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x393),a2_0x40ffc1(0x14c))[a2_0x40ffc1(0x1a4)](async(_0x5964e3,_0x2bef3a)=>{const _0xd96e6a=a2_0x40ffc1,_0x556d83=new UpgradeCommand(),_0x1ca8a3=program['opts'](),_0x4f7f2f=await _0x556d83[_0xd96e6a(0x387)]({'options':{..._0x1ca8a3,..._0x2bef3a},'args':_0x5964e3?[_0x5964e3]:[],'tdx':null});gracefulExit(_0x4f7f2f);}),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x39c))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1ff))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x264),a2_0x40ffc1(0x374))[a2_0x40ffc1(0x1a4)](async(_0x36da58,_0x2cd0b7)=>{const _0x49c376=a2_0x40ffc1,_0x3537aa=new UnsetCommand(),_0x1fb05d=program['opts'](),_0x3e1db7=await _0x3537aa[_0x49c376(0x387)]({'options':{..._0x1fb05d,..._0x2cd0b7},'args':[_0x36da58],'tdx':null});gracefulExit(_0x3e1db7);}),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x239))[a2_0x40ffc1(0x38b)]('Interactive\x20chat\x20selector')['option']('--last','Show\x20the\x20most\x20recent\x20chat')[a2_0x40ffc1(0x1a4)](async _0x5b9239=>{const _0x11c2f7=a2_0x40ffc1,_0x1701ea=new ChatsCommand(),_0x4b4dcc=program[_0x11c2f7(0x1fb)](),_0x14f8dd=await createTDXInstance(_0x4b4dcc),_0xac8a66=await _0x1701ea[_0x11c2f7(0x387)]({'options':{..._0x4b4dcc,..._0x5b9239},'args':[],'tdx':_0x14f8dd});gracefulExit(_0xac8a66);});const authCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2d6))[a2_0x40ffc1(0x38b)]('Authentication\x20management');async function runAuthStatusCommand(_0x4ae4c5){const _0x45614e=a2_0x40ffc1,_0x31e0fc=new AuthStatusCommand(),_0x2406eb=program[_0x45614e(0x1fb)](),_0x34be60=await createTDXInstance(_0x2406eb),_0x16a309=await _0x31e0fc[_0x45614e(0x387)]({'options':{..._0x2406eb,..._0x4ae4c5},'args':[],'tdx':_0x34be60});gracefulExit(_0x16a309);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x40ffc1(0x283)]('status')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x27e))['action'](runAuthStatusCommand),authCmd[a2_0x40ffc1(0x283)]('setup')['description']('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x40ffc1(0x3eb)]('after',a2_0x40ffc1(0x258))['action'](async _0x5d8452=>{const _0xee445f=a2_0x40ffc1,_0x151811=new AuthSetupCommand(),_0x24bff5=program[_0xee445f(0x1fb)](),_0x2f1b15=await createTDXInstance(_0x24bff5),_0x1439b5=await _0x151811[_0xee445f(0x387)]({'options':{..._0x24bff5,..._0x5d8452},'args':[],'tdx':_0x2f1b15});gracefulExit(_0x1439b5);}),authCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x14d))[a2_0x40ffc1(0x38b)]('Login\x20via\x20OAuth\x20(dev\x20sites\x20only)')['addHelpText'](a2_0x40ffc1(0x288),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20OAuth\x20tokens\x20to\x20profile-specific\x20keychain)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20OAuth\x20login\x20for\x20default\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--site\x20ap01\x20\x20\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20for\x20Japan\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--profile\x20dev\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20saved\x20to\x20\x27dev\x27\x20profile\x0a')['action'](async _0x137911=>{const _0x574817=a2_0x40ffc1,_0x1d9f56=new AuthLoginCommand(),_0x397837=program[_0x574817(0x1fb)](),_0x4e72ec=await _0x1d9f56['run']({'options':{..._0x397837,..._0x137911},'args':[],'tdx':null});gracefulExit(_0x4e72ec);}),authCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3e7))['description'](a2_0x40ffc1(0x16c))['addHelpText']('after',a2_0x40ffc1(0x342))[a2_0x40ffc1(0x1a4)](async _0xd0df56=>{const _0x250cb2=a2_0x40ffc1,_0x422f1b=new AuthClearCommand(),_0x493d07=program[_0x250cb2(0x1fb)](),_0x21dd0b=await _0x422f1b[_0x250cb2(0x387)]({'options':{..._0x493d07,..._0xd0df56},'args':[],'tdx':null});gracefulExit(_0x21dd0b);});const userCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x16e))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x3b6)),userListAction=async _0x22abe9=>{const _0x3e8499=a2_0x40ffc1,_0x85dd0f=new UserListCommand(),_0x5b5a83=program[_0x3e8499(0x1fb)](),_0x5d595e=await createTDXInstance(_0x5b5a83),_0x2331d0=await _0x85dd0f['run']({'options':{..._0x5b5a83,..._0x22abe9},'args':[],'tdx':_0x5d595e});gracefulExit(_0x2331d0);};userCmd[a2_0x40ffc1(0x1a4)](async _0x35be4f=>{const _0x28c63a=a2_0x40ffc1,_0x10917e=new UserCommand(),_0xb3d096=program[_0x28c63a(0x1fb)](),_0x50215c=await createTDXInstance(_0xb3d096),_0x3b4953=await _0x10917e[_0x28c63a(0x387)]({'options':{..._0xb3d096,..._0x35be4f},'args':[],'tdx':_0x50215c});gracefulExit(_0x3b4953);}),userCmd['command']('list')[a2_0x40ffc1(0x38b)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x40ffc1(0x1a4)](userListAction),program['command'](a2_0x40ffc1(0x1fe))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x18b))[a2_0x40ffc1(0x1a4)](userListAction);const policyCmd=program['command'](a2_0x40ffc1(0x1e0))[a2_0x40ffc1(0x38b)]('Access\x20control\x20policy\x20commands');policyCmd['action'](async _0x3c1d75=>{const _0x33a90c=a2_0x40ffc1,_0x5e1d0b=new PolicyCommand(),_0x258b93=program['opts'](),_0x1241f4=await createTDXInstance(_0x258b93),_0x330802=await _0x5e1d0b[_0x33a90c(0x387)]({'options':{..._0x258b93,..._0x3c1d75},'args':[],'tdx':_0x1241f4});gracefulExit(_0x330802);}),policyCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x267))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x20e))[a2_0x40ffc1(0x1a4)](async _0x200254=>{const _0x1578d4=a2_0x40ffc1,_0x44a170=new PolicyListCommand(),_0x526ead=program['opts'](),_0x2070b8=await createTDXInstance(_0x526ead),_0x29b47e=await _0x44a170[_0x1578d4(0x387)]({'options':{..._0x526ead,..._0x200254},'args':[],'tdx':_0x2070b8});gracefulExit(_0x29b47e);}),policyCmd['command'](a2_0x40ffc1(0x2bd))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x294))['action'](async(_0x1dd72f,_0x274a44)=>{const _0x33057e=a2_0x40ffc1,_0x532461=new PolicyShowCommand(),_0x2aac6e=program['opts'](),_0x3f1d44=await createTDXInstance(_0x2aac6e),_0x3620e9=await _0x532461[_0x33057e(0x387)]({'options':{..._0x2aac6e,..._0x274a44},'args':[_0x1dd72f],'tdx':_0x3f1d44});gracefulExit(_0x3620e9);}),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1cd))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x149))[a2_0x40ffc1(0x1a4)](async _0x1be72d=>{const _0x1e4961=new ProfilesCommand(),_0x5430e1=program['opts'](),_0x1827ca=await _0x1e4961['run']({'options':{..._0x5430e1,..._0x1be72d},'args':[],'tdx':null});gracefulExit(_0x1827ca);});const profileCmd=program['command'](a2_0x40ffc1(0x281))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1ea));profileCmd[a2_0x40ffc1(0x1a4)](()=>{const _0x371363=a2_0x40ffc1;profileCmd[_0x371363(0x2a6)]();});const profileListAction=async _0x1f2925=>{const _0x2a3f53=a2_0x40ffc1,_0x587b29=new ProfilesCommand(),_0x398aa2=program['opts'](),_0x2f7b50=await _0x587b29[_0x2a3f53(0x387)]({'options':{..._0x398aa2,..._0x1f2925},'args':[],'tdx':null});gracefulExit(_0x2f7b50);};profileCmd[a2_0x40ffc1(0x283)]('list')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x149))[a2_0x40ffc1(0x1a4)](profileListAction),profileCmd['command'](a2_0x40ffc1(0x1da))[a2_0x40ffc1(0x38b)]('Create\x20a\x20new\x20profile')[a2_0x40ffc1(0x3eb)](a2_0x40ffc1(0x288),a2_0x40ffc1(0x25d))[a2_0x40ffc1(0x1a4)](async(_0x2899b6,_0x1f333b)=>{const _0x2cc1c7=a2_0x40ffc1,_0x2fd48f=new ProfileCreateCommand(),_0x5a61f1=program['opts'](),_0x4c310d=await _0x2fd48f[_0x2cc1c7(0x387)]({'options':{..._0x5a61f1,..._0x1f333b},'args':_0x2899b6?[_0x2899b6]:[],'tdx':null});gracefulExit(_0x4c310d);}),profileCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x273))[a2_0x40ffc1(0x38b)]('Remove\x20a\x20profile')[a2_0x40ffc1(0x3eb)]('after',a2_0x40ffc1(0x18c))[a2_0x40ffc1(0x1a4)](async(_0x3ccbeb,_0x29ee4e)=>{const _0x69d8d6=a2_0x40ffc1,_0x585680=new ProfileRemoveCommand(),_0x32051b=program[_0x69d8d6(0x1fb)](),_0x58698b=await _0x585680[_0x69d8d6(0x387)]({'options':{..._0x32051b,..._0x29ee4e},'args':[_0x3ccbeb],'tdx':null});gracefulExit(_0x58698b);}),profileCmd['command']('set\x20<key=value>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x27b))['addHelpText'](a2_0x40ffc1(0x288),a2_0x40ffc1(0x2bb))['action'](async(_0x5e9180,_0x3b6f2c)=>{const _0x18caf1=a2_0x40ffc1,_0x12478a=new ProfileSetCommand(),_0x52ef8f=program[_0x18caf1(0x1fb)](),_0x206cd9=await _0x12478a[_0x18caf1(0x387)]({'options':{..._0x52ef8f,..._0x3b6f2c},'args':[_0x5e9180],'tdx':null});gracefulExit(_0x206cd9);}),profileCmd['command'](a2_0x40ffc1(0x182))[a2_0x40ffc1(0x38b)]('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x264),a2_0x40ffc1(0x36a))[a2_0x40ffc1(0x3eb)](a2_0x40ffc1(0x288),a2_0x40ffc1(0x33c))[a2_0x40ffc1(0x1a4)](async(_0x6541ee,_0x356370)=>{const _0x401f7f=a2_0x40ffc1,_0x4a8e09=new ProfileUseCommand(),_0x5cae78=program[_0x401f7f(0x1fb)](),_0x327536=await _0x4a8e09[_0x401f7f(0x387)]({'options':{..._0x5cae78,..._0x356370},'args':[_0x6541ee],'tdx':null});gracefulExit(_0x327536);});const engageCmd=program['command'](a2_0x40ffc1(0x19e))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x379)),createEngageAction=_0x24922b=>{return async(_0x44ebc0,_0x32c6c4)=>{const _0x925d6c=a2_0x3625,_0x16c997=new _0x24922b(),_0x4d19c8=program[_0x925d6c(0x1fb)](),_0x4b4d6b=await createTDXInstance(_0x4d19c8),_0x1371bc=await _0x16c997[_0x925d6c(0x387)]({'options':{..._0x4d19c8,..._0x32c6c4},'args':[_0x44ebc0],'tdx':_0x4b4d6b});gracefulExit(_0x1371bc);};},createEngageNoArgAction=_0x54eaff=>{return async _0x3c3cd6=>{const _0x37e020=a2_0x3625,_0x15fe92=new _0x54eaff(),_0x114304=program['opts'](),_0x109536=await createTDXInstance(_0x114304),_0x47b357=await _0x15fe92[_0x37e020(0x387)]({'options':{..._0x114304,..._0x3c3cd6},'args':[],'tdx':_0x109536});gracefulExit(_0x47b357);};},createEngageListAction=_0x4f6b4f=>{return async(_0x14138e,_0x580384)=>{const _0x38ea03=a2_0x3625,_0x1d5aaf=new _0x4f6b4f(),_0x318526=program[_0x38ea03(0x1fb)](),_0x465d7d=await createTDXInstance(_0x318526),_0x330be0=await _0x1d5aaf[_0x38ea03(0x387)]({'options':{..._0x318526,..._0x580384},'args':_0x14138e?[_0x14138e]:[],'tdx':_0x465d7d});gracefulExit(_0x330be0);};},campaignCmd=engageCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3af))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x167));campaignCmd['command'](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')['option']('--type\x20<type>',a2_0x40ffc1(0x220))[a2_0x40ffc1(0x3c5)]('--status\x20<status>',a2_0x40ffc1(0x367))[a2_0x40ffc1(0x3c5)]('--workspace\x20<name>','Workspace\x20name')[a2_0x40ffc1(0x1a4)](createEngageListAction(EngageCampaignsCommand)),engageCmd['command']('campaigns\x20[pattern]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x308))['option'](a2_0x40ffc1(0x142),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2a7),a2_0x40ffc1(0x367))['option']('--workspace\x20<name>',a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x1a4)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x40ffc1(0x283)]('show\x20<name-or-id>')['description'](a2_0x40ffc1(0x2af))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x24b),a2_0x40ffc1(0x158))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x40ffc1(0x283)]('create')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x3ed))[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x1bf),a2_0x40ffc1(0x2b2))[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x142),a2_0x40ffc1(0x20f))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x24e))[a2_0x40ffc1(0x3c5)]('--description\x20<desc>',a2_0x40ffc1(0x384))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x143),a2_0x40ffc1(0x242))['option'](a2_0x40ffc1(0x259),a2_0x40ffc1(0x3cc))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x381),a2_0x40ffc1(0x3f0))['option'](a2_0x40ffc1(0x2cf),a2_0x40ffc1(0x21c))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x13b),a2_0x40ffc1(0x3f6))[a2_0x40ffc1(0x1a4)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x40ffc1(0x283)]('update\x20<name-or-id>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x355))[a2_0x40ffc1(0x3c5)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x40ffc1(0x1bf),a2_0x40ffc1(0x390))['option']('--description\x20<desc>',a2_0x40ffc1(0x384))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x143),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x259),a2_0x40ffc1(0x3cc))['option'](a2_0x40ffc1(0x381),a2_0x40ffc1(0x3f0))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2cf),a2_0x40ffc1(0x21c))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x13b),a2_0x40ffc1(0x3f6))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x40ffc1(0x283)]('delete\x20<name-or-id>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1f2))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2eb),a2_0x40ffc1(0x1ac))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x19d))[a2_0x40ffc1(0x38b)]('Launch\x20a\x20campaign')[a2_0x40ffc1(0x3c5)]('--workspace\x20<name>',a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x28d))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1aa))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x40ffc1(0x283)]('resume\x20<name-or-id>')['description'](a2_0x40ffc1(0x191))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x207))[a2_0x40ffc1(0x38b)]('Duplicate\x20a\x20campaign')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1be))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x129))['option'](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1bf),'Pull\x20specific\x20campaign\x20by\x20name')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x142),a2_0x40ffc1(0x220))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3de),a2_0x40ffc1(0x364))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x21b))[a2_0x40ffc1(0x38b)]('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3de),a2_0x40ffc1(0x329))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x40ffc1(0x283)]('validate\x20[target]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x399))['option']('--verbose',a2_0x40ffc1(0x272))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x373))[a2_0x40ffc1(0x38b)]('Always-on\x20campaign\x20management');alwaysOnCampaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1e5))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x142),a2_0x40ffc1(0x220))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2a7),a2_0x40ffc1(0x1c0))['requiredOption'](a2_0x40ffc1(0x241),'Workspace\x20name\x20(required)')[a2_0x40ffc1(0x1a4)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3b0))['description'](a2_0x40ffc1(0x2a5))[a2_0x40ffc1(0x3c5)]('--type\x20<type>',a2_0x40ffc1(0x220))[a2_0x40ffc1(0x3c5)]('--status\x20<status>',a2_0x40ffc1(0x1c0))[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x241),'Workspace\x20name\x20(required)')['action'](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1e8))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x189))[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x24e))['option']('--full',a2_0x40ffc1(0x158))['action'](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x377))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x190))[a2_0x40ffc1(0x1c6)]('--name\x20<name>',a2_0x40ffc1(0x2b2))[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x142),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x241),'Workspace\x20name\x20(required)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x196),a2_0x40ffc1(0x384))['option'](a2_0x40ffc1(0x143),'Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3e5),a2_0x40ffc1(0x139))[a2_0x40ffc1(0x1a4)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd['command']('update\x20<name-or-id>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x22b))[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x24e))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1bf),a2_0x40ffc1(0x390))['option'](a2_0x40ffc1(0x196),a2_0x40ffc1(0x384))[a2_0x40ffc1(0x3c5)]('--segment\x20<path>',a2_0x40ffc1(0x3dd))['option']('--enable-utm-tracking',a2_0x40ffc1(0x139))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x332))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x24d))[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x24e))[a2_0x40ffc1(0x3c5)]('--yes',a2_0x40ffc1(0x1ac))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x40ffc1(0x283)]('launch\x20<name-or-id>')[a2_0x40ffc1(0x38b)]('Launch\x20an\x20always-on\x20campaign')['requiredOption'](a2_0x40ffc1(0x241),a2_0x40ffc1(0x24e))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x40ffc1(0x283)]('pause\x20<name-or-id>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x243))[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x24e))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd['command'](a2_0x40ffc1(0x1d3))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x25f))['requiredOption'](a2_0x40ffc1(0x241),a2_0x40ffc1(0x24e))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd['command'](a2_0x40ffc1(0x226))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x38a))['requiredOption']('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2eb),'Skip\x20confirmation\x20prompt')[a2_0x40ffc1(0x1a4)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x207))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x120))[a2_0x40ffc1(0x1c6)]('--workspace\x20<name>',a2_0x40ffc1(0x24e))[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x1bf),'Name\x20for\x20the\x20duplicated\x20campaign')[a2_0x40ffc1(0x1a4)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x322))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2c1));function a2_0x3625(_0x87d78,_0x22499a){_0x87d78=_0x87d78-0x120;const _0x9c7c49=a2_0x9c7c();let _0x36254c=_0x9c7c49[_0x87d78];return _0x36254c;}templateCmd['command'](a2_0x40ffc1(0x1bc))['description']('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),'Workspace\x20name')[a2_0x40ffc1(0x1a4)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x40ffc1(0x283)]('templates\x20[pattern]')['description']('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x40ffc1(0x3c5)]('--workspace\x20<name>',a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x1a4)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x40ffc1(0x283)]('show\x20<name-or-id>')[a2_0x40ffc1(0x38b)]('Show\x20email\x20template\x20details')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),'Workspace\x20name')['option'](a2_0x40ffc1(0x24b),a2_0x40ffc1(0x158))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x377))['description'](a2_0x40ffc1(0x278))['requiredOption'](a2_0x40ffc1(0x1bf),'Template\x20name')[a2_0x40ffc1(0x1c6)](a2_0x40ffc1(0x23c),a2_0x40ffc1(0x36d))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x366),a2_0x40ffc1(0x265))['option'](a2_0x40ffc1(0x3dc),a2_0x40ffc1(0x345))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x24e))[a2_0x40ffc1(0x3c5)]('--plaintext\x20<text>',a2_0x40ffc1(0x1bb))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x244),a2_0x40ffc1(0x12a),_0x37981d=>{const _0xb7a723=a2_0x40ffc1;if(![_0xb7a723(0x287),'grapesjs'][_0xb7a723(0x246)](_0x37981d))throw new SDKError(ErrorCode[_0xb7a723(0x22a)],_0xb7a723(0x333)+_0x37981d+_0xb7a723(0x2d8));return _0x37981d;})[a2_0x40ffc1(0x1a4)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x356))[a2_0x40ffc1(0x38b)]('Update\x20an\x20email\x20template')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),'Workspace\x20name')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1bf),a2_0x40ffc1(0x3a2))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x23c),a2_0x40ffc1(0x36d))[a2_0x40ffc1(0x3c5)]('--html\x20<html>',a2_0x40ffc1(0x265))[a2_0x40ffc1(0x3c5)]('--html-file\x20<path>',a2_0x40ffc1(0x345))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x131),a2_0x40ffc1(0x1bb))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('pull\x20[workspace]')['description'](a2_0x40ffc1(0x33d))[a2_0x40ffc1(0x3c5)]('--workspace\x20<name>',a2_0x40ffc1(0x17b))['option']('--name\x20<name>','Pull\x20specific\x20template\x20by\x20name')['option'](a2_0x40ffc1(0x3aa),a2_0x40ffc1(0x1ac))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3de),'Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x40ffc1(0x1a4)](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x21b))['description']('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3aa),a2_0x40ffc1(0x1ac))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3de),a2_0x40ffc1(0x329))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3bc))['description'](a2_0x40ffc1(0x1a3))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1ce),a2_0x40ffc1(0x272))['action'](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x40ffc1(0x283)]('delete\x20<name-or-id>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x398))['option'](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x2eb),a2_0x40ffc1(0x1ac))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x211))['description']('Workspace\x20management');workspaceCmd['command']('list\x20[pattern]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2a2))['action'](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x40ffc1(0x283)]('workspaces\x20[pattern]')[a2_0x40ffc1(0x38b)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x40ffc1(0x1a4)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd['command'](a2_0x40ffc1(0x1e8))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x323))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x24b),a2_0x40ffc1(0x158))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x377))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x16f))['requiredOption'](a2_0x40ffc1(0x1bf),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x196),'Workspace\x20description')[a2_0x40ffc1(0x1a4)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x356))[a2_0x40ffc1(0x38b)]('Update\x20a\x20workspace')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1bf),a2_0x40ffc1(0x22d))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x196),a2_0x40ffc1(0x1df))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x332))[a2_0x40ffc1(0x38b)]('Delete\x20a\x20workspace')[a2_0x40ffc1(0x3c5)]('--yes',a2_0x40ffc1(0x1ac))[a2_0x40ffc1(0x1a4)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x40ffc1(0x182))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x14a))['action'](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program['command'](a2_0x40ffc1(0x25c))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x202));deliveryCmd[a2_0x40ffc1(0x283)]('senders\x20[pattern]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x3c3))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x241),a2_0x40ffc1(0x17b))[a2_0x40ffc1(0x1a4)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program['command']('connection')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x212)),connectionListAction=async _0x3125ef=>{const _0x4e958b=a2_0x40ffc1,_0x2841c7=new ConnectionListCommand(),_0x34eeeb=program[_0x4e958b(0x1fb)](),_0x3e9eec=await createTDXInstance(_0x34eeeb),_0x4cd7e3=await _0x2841c7[_0x4e958b(0x387)]({'options':{..._0x34eeeb,..._0x3125ef},'args':[],'tdx':_0x3e9eec});gracefulExit(_0x4cd7e3);};connectionCmd[a2_0x40ffc1(0x283)]('list')['description'](a2_0x40ffc1(0x172))[a2_0x40ffc1(0x1a4)](connectionListAction),program['command'](a2_0x40ffc1(0x1a8),{'hidden':!![]})[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x178))[a2_0x40ffc1(0x1a4)](connectionListAction),connectionCmd[a2_0x40ffc1(0x283)]('show\x20<name>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x30c))[a2_0x40ffc1(0x1a4)](async(_0x37f1f2,_0x5b2dd2)=>{const _0x5f5677=a2_0x40ffc1,_0x22f397=new ConnectionShowCommand(),_0x1ae1d8=program[_0x5f5677(0x1fb)](),_0x1a6d5c=await createTDXInstance(_0x1ae1d8),_0x4e70a6=await _0x22f397['run']({'options':{..._0x1ae1d8,..._0x5b2dd2},'args':[_0x37f1f2],'tdx':_0x1a6d5c});gracefulExit(_0x4e70a6);}),connectionCmd[a2_0x40ffc1(0x283)]('schema\x20<type>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1c9))[a2_0x40ffc1(0x1a4)](async(_0x44ade5,_0x1c0539)=>{const _0xc3ab2d=a2_0x40ffc1,_0xd04c46=new ConnectionSchemaCommand(),_0x4a262c=program[_0xc3ab2d(0x1fb)](),_0x2d52a3=await createTDXInstance(_0x4a262c),_0x5d94ae=await _0xd04c46[_0xc3ab2d(0x387)]({'options':{..._0x4a262c,..._0x1c0539},'args':[_0x44ade5],'tdx':_0x2d52a3});gracefulExit(_0x5d94ae);}),connectionCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x134))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2b3))[a2_0x40ffc1(0x1a4)](async _0x317748=>{const _0x56769e=a2_0x40ffc1,_0x2d0b14=new ConnectionTypesCommand(),_0x1c2907=program[_0x56769e(0x1fb)](),_0x53f146=await createTDXInstance(_0x1c2907),_0x1e8b6b=await _0x2d0b14['run']({'options':{..._0x1c2907,..._0x317748},'args':[],'tdx':_0x53f146});gracefulExit(_0x1e8b6b);}),connectionCmd[a2_0x40ffc1(0x283)]('settings\x20<type>')['description']('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x40ffc1(0x1a4)](async(_0x415397,_0x46fe83)=>{const _0x541489=a2_0x40ffc1,_0xcbdb47=new ConnectionSettingsCommand(),_0x23e604=program[_0x541489(0x1fb)](),_0x58894f=await createTDXInstance(_0x23e604),_0x182a7b=await _0xcbdb47[_0x541489(0x387)]({'options':{..._0x23e604,..._0x46fe83},'args':[_0x415397],'tdx':_0x58894f});gracefulExit(_0x182a7b);});const journeyCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2a8))['description'](a2_0x40ffc1(0x295)),journeyListAction=async(_0x4d7980,_0x4bcd00)=>{const _0x475726=a2_0x40ffc1,_0x1bc827=new JourneyListCommand(),_0x4e32b4=program[_0x475726(0x1fb)](),_0x6ba3b0=await createTDXInstance(_0x4e32b4),_0x35d9ed=await _0x1bc827[_0x475726(0x387)]({'options':{..._0x4e32b4,..._0x4bcd00},'args':_0x4d7980?[_0x4d7980]:[],'tdx':_0x6ba3b0});gracefulExit(_0x35d9ed);};journeyCmd['command'](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x18f))[a2_0x40ffc1(0x1a4)](journeyListAction),journeyCmd[a2_0x40ffc1(0x283)]('view\x20<name-or-path>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x179))[a2_0x40ffc1(0x3c5)]('-w,\x20--web',a2_0x40ffc1(0x383))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1ef),a2_0x40ffc1(0x339))[a2_0x40ffc1(0x1a4)](async(_0x536326,_0x52c7f7)=>{const _0x483f66=a2_0x40ffc1,_0x44bd79=new JourneyViewCommand(),_0x40afd0=program[_0x483f66(0x1fb)](),_0x325e1e=await createTDXInstance(_0x40afd0),_0x2a1db5=await _0x44bd79[_0x483f66(0x387)]({'options':{..._0x40afd0,..._0x52c7f7},'args':[_0x536326],'tdx':_0x325e1e});gracefulExit(_0x2a1db5);}),journeyCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x330))['description'](a2_0x40ffc1(0x320))['option']('--stage\x20<name>',a2_0x40ffc1(0x3f3))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1d5),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x32b),a2_0x40ffc1(0x2c0))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3cb),a2_0x40ffc1(0x3bf))[a2_0x40ffc1(0x1a4)](async(_0xb38a0b,_0x307a51)=>{const _0x2e56d3=a2_0x40ffc1,_0x1ef90e=new JourneyStatsCommand(),_0x5d8f48=program[_0x2e56d3(0x1fb)](),_0x4b37c1=await createTDXInstance(_0x5d8f48),_0x2a5485=await _0x1ef90e[_0x2e56d3(0x387)]({'options':{..._0x5d8f48,..._0x307a51},'args':[_0xb38a0b],'tdx':_0x4b37c1});gracefulExit(_0x2a5485);}),journeyCmd['command']('traffic\x20<name-or-path>')[a2_0x40ffc1(0x38b)]('Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)')['option']('--type\x20<type>',a2_0x40ffc1(0x319))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1d5),a2_0x40ffc1(0x233))['option']('--to\x20<date>','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x33e),'Maximum\x20number\x20of\x20nodes',_0x3806fc=>{const _0x74d5a1=a2_0x40ffc1,_0x58446f=parseInt(_0x3806fc,0xa);if(isNaN(_0x58446f))throw new Error(_0x74d5a1(0x138)+_0x3806fc+_0x74d5a1(0x209));return _0x58446f;})[a2_0x40ffc1(0x1a4)](async(_0x3520f0,_0x33d199)=>{const _0xcc1b12=a2_0x40ffc1,_0x467245=new JourneyTrafficCommand(),_0x449775=program['opts'](),_0x40073c=await createTDXInstance(_0x449775),_0x1fc8ca=await _0x467245[_0xcc1b12(0x387)]({'options':{..._0x449775,..._0x33d199},'args':[_0x3520f0],'tdx':_0x40073c});gracefulExit(_0x1fc8ca);}),journeyCmd[a2_0x40ffc1(0x283)]('pause\x20<name-or-path>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2d9))['action'](async(_0x1d514f,_0x4e2935)=>{const _0xfb9b25=a2_0x40ffc1,_0x4b41db=new JourneyPauseCommand(),_0x437e87=program['opts'](),_0x3bfa49=await createTDXInstance(_0x437e87),_0x5c866a=await _0x4b41db[_0xfb9b25(0x387)]({'options':{..._0x437e87,..._0x4e2935},'args':[_0x1d514f],'tdx':_0x3bfa49});gracefulExit(_0x5c866a);}),journeyCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x2da))['description'](a2_0x40ffc1(0x153))[a2_0x40ffc1(0x1a4)](async(_0x8e5f72,_0x465b81)=>{const _0x3ddf8f=a2_0x40ffc1,_0x287f5f=new JourneyResumeCommand(),_0x244394=program[_0x3ddf8f(0x1fb)](),_0xc4bbc4=await createTDXInstance(_0x244394),_0x40300f=await _0x287f5f[_0x3ddf8f(0x387)]({'options':{..._0x244394,..._0x465b81},'args':[_0x8e5f72],'tdx':_0xc4bbc4});gracefulExit(_0x40300f);}),journeyCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3ab))[a2_0x40ffc1(0x38b)]('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x40ffc1(0x3c5)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')['action'](async(_0x380e16,_0x28ebfd)=>{const _0x441c70=a2_0x40ffc1,_0x495e0f=new JourneyPullCommand(),_0x820af1=program['opts'](),_0x130a43=await createTDXInstance(_0x820af1),_0xa3491f=await _0x495e0f[_0x441c70(0x387)]({'options':{..._0x820af1,..._0x28ebfd},'args':_0x380e16?[_0x380e16]:[],'tdx':_0x130a43});gracefulExit(_0xa3491f);}),journeyCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x21b))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x2a4))[a2_0x40ffc1(0x1a4)](async(_0xbb7513,_0x1841fd)=>{const _0x57e24b=a2_0x40ffc1,_0x48615d=new JourneyPushCommand(),_0x87acf6=program[_0x57e24b(0x1fb)](),_0xe95bea=await createTDXInstance(_0x87acf6),_0x180e0d=await _0x48615d[_0x57e24b(0x387)]({'options':{..._0x87acf6,..._0x1841fd},'args':_0xbb7513?[_0xbb7513]:[],'tdx':_0xe95bea});gracefulExit(_0x180e0d);}),journeyCmd['command']('columns\x20<name-or-path>')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1f7))[a2_0x40ffc1(0x1a4)](async(_0x5d638a,_0x54555e)=>{const _0x4bf9b8=new JourneyColumnsCommand(),_0x4f809b=program['opts'](),_0x359dd1=await createTDXInstance(_0x4f809b),_0xcd9c4c=await _0x4bf9b8['run']({'options':{..._0x4f809b,..._0x54555e},'args':[_0x5d638a],'tdx':_0x359dd1});gracefulExit(_0xcd9c4c);}),journeyCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3a7))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1ad))['action'](async(_0x48b29b,_0x2b1b94)=>{const _0x2f3e78=a2_0x40ffc1,_0x5dea7c=new JourneyActivationsCommand(),_0x35dd42=program[_0x2f3e78(0x1fb)](),_0x126af0=await createTDXInstance(_0x35dd42),_0x4efeec=await _0x5dea7c[_0x2f3e78(0x387)]({'options':{..._0x35dd42,..._0x2b1b94},'args':[_0x48b29b],'tdx':_0x126af0});gracefulExit(_0x4efeec);}),journeyCmd['command']('versions\x20<name-or-path>')[a2_0x40ffc1(0x38b)]('List\x20all\x20versions\x20of\x20a\x20journey')[a2_0x40ffc1(0x1a4)](async(_0x5088bf,_0x5c0c5c)=>{const _0x2d3f9f=a2_0x40ffc1,_0x48ad79=new JourneyVersionsCommand(),_0x4e2e28=program[_0x2d3f9f(0x1fb)](),_0x503f29=await createTDXInstance(_0x4e2e28),_0xe7875d=await _0x48ad79['run']({'options':{..._0x4e2e28,..._0x5c0c5c},'args':[_0x5088bf],'tdx':_0x503f29});gracefulExit(_0xe7875d);});const journeyVersionCmd=journeyCmd[a2_0x40ffc1(0x283)]('version')['description'](a2_0x40ffc1(0x361));journeyVersionCmd['command'](a2_0x40ffc1(0x1d1))['description'](a2_0x40ffc1(0x3a6))['action'](async(_0x502a51,_0x3d6290)=>{const _0x1056a0=a2_0x40ffc1,_0x1bb38b=new JourneyVersionCreateCommand(),_0x18c6a0=program[_0x1056a0(0x1fb)](),_0x4280f4=await createTDXInstance(_0x18c6a0),_0x49f2d7=await _0x1bb38b['run']({'options':{..._0x18c6a0,..._0x3d6290},'args':[_0x502a51],'tdx':_0x4280f4});gracefulExit(_0x49f2d7);}),journeyVersionCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1f6))[a2_0x40ffc1(0x38b)]('View\x20a\x20specific\x20version\x20of\x20a\x20journey')[a2_0x40ffc1(0x1c6)]('--version\x20<number>',a2_0x40ffc1(0x31b))['action'](async(_0x2da3b6,_0x2260f9)=>{const _0x57e9f5=a2_0x40ffc1,_0xd249b1=new JourneyVersionViewCommand(),_0x12cf62=program[_0x57e9f5(0x1fb)](),_0x2b59c8=await createTDXInstance(_0x12cf62),_0x44ad66=await _0xd249b1[_0x57e9f5(0x387)]({'options':{..._0x12cf62,..._0x2260f9},'args':[_0x2da3b6],'tdx':_0x2b59c8});gracefulExit(_0x44ad66);}),journeyCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3bc))[a2_0x40ffc1(0x38b)]('Validate\x20journey\x20YAML\x20files\x20locally')[a2_0x40ffc1(0x1a4)](async(_0x5c3365,_0x8461c5)=>{const _0x205284=a2_0x40ffc1,_0x21cd96=new JourneyValidateCommand(),_0x4cd4b8=program[_0x205284(0x1fb)](),_0x40bb58=await createTDXInstance(_0x4cd4b8),_0x4e6fc6=await _0x21cd96[_0x205284(0x387)]({'options':{..._0x4cd4b8,..._0x8461c5},'args':_0x5c3365?[_0x5c3365]:[],'tdx':_0x40bb58});gracefulExit(_0x4e6fc6);}),program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1f4))['description'](a2_0x40ffc1(0x1c1))[a2_0x40ffc1(0x1a4)](journeyListAction);const agentSyncCmd=program[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1b6))['description']('LLM\x20agent\x20management');agentSyncCmd['command']('pull\x20[project]\x20[agent-name]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x380))['option'](a2_0x40ffc1(0x253),a2_0x40ffc1(0x194))[a2_0x40ffc1(0x3c5)]('-f,\x20--force',a2_0x40ffc1(0x176))[a2_0x40ffc1(0x3c5)]('-a,\x20--agent\x20<name>','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)')[a2_0x40ffc1(0x1a4)](async(_0x27f3e4,_0x32234c,_0x24dcc1)=>{const _0x1b00ae=a2_0x40ffc1,_0x3b8e66=new AgentPullCommand(),_0x4b6e76=program['opts'](),_0x5583d4=await createTDXInstance(_0x4b6e76),_0x116252=[];if(_0x27f3e4)_0x116252[_0x1b00ae(0x2b0)](_0x27f3e4);if(_0x32234c)_0x116252['push'](_0x32234c);const _0x5916ed=await _0x3b8e66[_0x1b00ae(0x387)]({'options':{..._0x4b6e76,..._0x24dcc1},'args':_0x116252,'tdx':_0x5583d4});gracefulExit(_0x5916ed);}),agentSyncCmd[a2_0x40ffc1(0x283)]('push\x20[path]')[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x39e))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x37b),a2_0x40ffc1(0x24c))[a2_0x40ffc1(0x1a4)](async(_0x517ff4,_0x50180d)=>{const _0x7a43cd=a2_0x40ffc1,_0x3e80ad=new AgentPushCommand(),_0x5785a6=program[_0x7a43cd(0x1fb)](),_0x376f01=await createTDXInstance(_0x5785a6),_0x1f897c=await _0x3e80ad[_0x7a43cd(0x387)]({'options':{..._0x5785a6,..._0x50180d},'args':_0x517ff4?[_0x517ff4]:[],'tdx':_0x376f01});gracefulExit(_0x1f897c);}),agentSyncCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x14b))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x370))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x13f),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x40ffc1(0x1a4)](async(_0x19c9a3,_0x223045)=>{const _0x12d981=a2_0x40ffc1,_0x27e49e=new AgentCloneCommand(),_0xe4f3f0=program[_0x12d981(0x1fb)](),_0x291073=await createTDXInstance(_0xe4f3f0),_0x54b701=await _0x27e49e['run']({'options':{..._0xe4f3f0,..._0x223045},'args':_0x19c9a3?[_0x19c9a3]:[],'tdx':_0x291073});gracefulExit(_0x54b701);}),agentSyncCmd['command'](a2_0x40ffc1(0x290))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x385))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x1b5),a2_0x40ffc1(0x33b))['option'](a2_0x40ffc1(0x282),a2_0x40ffc1(0x3cf))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3de),a2_0x40ffc1(0x31f))[a2_0x40ffc1(0x3c5)]('--no-eval','Generate\x20test\x20conversations\x20without\x20evaluation')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x391),a2_0x40ffc1(0x3f2))['action'](async(_0x594575,_0x45a86e)=>{const _0x1db4cd=a2_0x40ffc1,_0x5bbbfc=new AgentTestCommand(),_0xfd5c96=program['opts'](),_0x1a29d2=await createTDXInstance(_0xfd5c96),_0xec6083=await _0x5bbbfc[_0x1db4cd(0x387)]({'options':{..._0xfd5c96,..._0x45a86e},'args':_0x594575?[_0x594575]:[],'tdx':_0x1a29d2});gracefulExit(_0xec6083);}),agentSyncCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x1bc))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x1d8))['action'](llmAgentListAction),agentSyncCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x228))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x335))[a2_0x40ffc1(0x1a4)](async(_0x37283e,_0x261b8c)=>{const _0x23638f=a2_0x40ffc1,_0x28e09b=new LLMAgentShowCommand(),_0x4ce759=program['opts'](),_0x3e7897=await createTDXInstance(_0x4ce759),_0x4048e1=await _0x28e09b[_0x23638f(0x387)]({'options':{..._0x4ce759,..._0x261b8c},'args':[_0x37283e],'tdx':_0x3e7897});gracefulExit(_0x4048e1);}),agentSyncCmd['command'](a2_0x40ffc1(0x13e))[a2_0x40ffc1(0x38b)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x40ffc1(0x3c5)]('--system-prompt\x20<text>','System\x20prompt/instructions\x20(default:\x20empty)')['option'](a2_0x40ffc1(0x1d0),a2_0x40ffc1(0x127),'claude-4.5-sonnet')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x310),a2_0x40ffc1(0x27a))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x29c),a2_0x40ffc1(0x20b),'4')[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x347),a2_0x40ffc1(0x151),a2_0x40ffc1(0x188))[a2_0x40ffc1(0x1a4)](async(_0x5a6a20,_0x53829c)=>{const _0x3e225c=a2_0x40ffc1,_0x27b396=new LLMAgentCreateCommand(),_0x5468fb=program[_0x3e225c(0x1fb)](),_0x260803=await createTDXInstance(_0x5468fb),_0x338755=await _0x27b396[_0x3e225c(0x387)]({'options':{..._0x5468fb,..._0x53829c},'args':[_0x5a6a20],'tdx':_0x260803});gracefulExit(_0x338755);}),agentSyncCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x203))[a2_0x40ffc1(0x38b)]('Update\x20an\x20existing\x20agent')['option']('--name\x20<text>',a2_0x40ffc1(0x2dd))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x3b5),a2_0x40ffc1(0x1c4))[a2_0x40ffc1(0x3c5)](a2_0x40ffc1(0x37e),a2_0x40ffc1(0x314))[a2_0x40ffc1(0x3c5)]('--starter-message\x20<text>','Starter\x20message')[a2_0x40ffc1(0x1a4)](async(_0x3c4037,_0x3c6ad6)=>{const _0x131d97=a2_0x40ffc1,_0x4ca155=new LLMAgentUpdateCommand(),_0x5d0c79=program[_0x131d97(0x1fb)](),_0x160d87=await createTDXInstance(_0x5d0c79),_0x3ab81f=await _0x4ca155[_0x131d97(0x387)]({'options':{..._0x5d0c79,..._0x3c6ad6},'args':[_0x3c4037],'tdx':_0x160d87});gracefulExit(_0x3ab81f);}),agentSyncCmd[a2_0x40ffc1(0x283)](a2_0x40ffc1(0x3f1))[a2_0x40ffc1(0x38b)](a2_0x40ffc1(0x29e))[a2_0x40ffc1(0x1a4)](async(_0xa0c1d8,_0x1b8574)=>{const _0x1b2e2f=a2_0x40ffc1,_0x410e9f=new LLMAgentDeleteCommand(),_0x5ca9aa=program[_0x1b2e2f(0x1fb)](),_0x1bb6b3=await createTDXInstance(_0x5ca9aa),_0x40f7d7=await _0x410e9f[_0x1b2e2f(0x387)]({'options':{..._0x5ca9aa,..._0x1b8574},'args':[_0xa0c1d8],'tdx':_0x1bb6b3});gracefulExit(_0x40f7d7);}),program[a2_0x40ffc1(0x283)]('_list-commands',{'hidden':!![]})[a2_0x40ffc1(0x1a4)](()=>{const _0x215b75=a2_0x40ffc1;function _0x16f08f(_0x3e4a60,_0xb94675){const _0x32415a=a2_0x3625,_0x180354=[];for(const _0x3c8744 of _0x3e4a60[_0x32415a(0x21d)]){if(_0x3c8744[_0x32415a(0x3e9)])continue;const _0x28428b=_0xb94675?_0xb94675+'\x20'+_0x3c8744[_0x32415a(0x1cc)]():_0x3c8744[_0x32415a(0x1cc)](),_0x26d22a=_0x28428b[_0x32415a(0x208)]('\x20')[0x0],_0x44ebc2=COMMAND_CATEGORIES[_0x32415a(0x130)](_0x4f4525=>_0x4f4525[_0x32415a(0x21d)][_0x32415a(0x246)](_0x26d22a)),_0x5496b7=_0x44ebc2?.[_0x32415a(0x1cc)]??'';if(_0x3c8744[_0x32415a(0x21d)][_0x32415a(0x198)]>0x0)_0x180354[_0x32415a(0x2b0)](..._0x16f08f(_0x3c8744,_0x28428b));else{const _0x4d99f5=(_0x3c8744[_0x32415a(0x397)]||[])[_0x32415a(0x307)](_0x518755=>{const _0xf269ae=_0x32415a,_0x37795c=_0x518755[_0xf269ae(0x3d3)]?_0x518755[_0xf269ae(0x1cc)]()+'...':_0x518755['name']();return _0x518755[_0xf269ae(0x1f0)]?'<'+_0x37795c+'>':'['+_0x37795c+']';})[_0x32415a(0x31e)]('\x20'),_0x5471b3=_0x3c8744['options']['filter'](_0x3ea273=>!_0x3ea273[_0x32415a(0x12c)]&&_0x3ea273[_0x32415a(0x3ba)]!==_0x32415a(0x25e))[_0x32415a(0x307)](_0x1c2ac4=>({'flags':_0x1c2ac4[_0x32415a(0x3c4)],'description':_0x1c2ac4[_0x32415a(0x38b)]}));_0x180354['push']({'name':_0x28428b,'description':_0x3c8744[_0x32415a(0x38b)](),'group':_0x5496b7,'usage':_0x4d99f5,'options':_0x5471b3});}}return _0x180354;}console[_0x215b75(0x1b4)](JSON[_0x215b75(0x174)](_0x16f08f(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x267fb0=a2_0x40ffc1,_0x428fbe=!process['argv'][_0x267fb0(0x229)](0x2)[_0x267fb0(0x198)];showBriefHelp=_0x428fbe,program[_0x267fb0(0x2d3)](process['argv']);_0x428fbe&&program[_0x267fb0(0x2a6)]();const _0x117c49=process[_0x267fb0(0x1c7)][0x2]===_0x267fb0(0x354);if(process[_0x267fb0(0x160)][_0x267fb0(0x2a9)]&&process[_0x267fb0(0x1c7)][_0x267fb0(0x198)]>0x2&&!isDevVersion()&&!_0x117c49){const _0x3206b1=loadReleaseChannel();checkForUpdate(currentVersion,_0x3206b1)[_0x267fb0(0x32c)](_0x31ae1e=>{_0x31ae1e&&displayUpdateNotification(_0x31ae1e);})[_0x267fb0(0x2e3)](()=>{});}}
|
|
1
|
+
const a2_0x1dd5bc=a2_0xa400;(function(_0x531d8b,_0x5c00c7){const _0x5941a7=a2_0xa400,_0x2267d1=_0x531d8b();while(!![]){try{const _0x18d520=-parseInt(_0x5941a7(0x3b7))/0x1+parseInt(_0x5941a7(0x434))/0x2+parseInt(_0x5941a7(0x489))/0x3*(parseInt(_0x5941a7(0x1cd))/0x4)+-parseInt(_0x5941a7(0x3d7))/0x5+-parseInt(_0x5941a7(0x2a7))/0x6+-parseInt(_0x5941a7(0x21c))/0x7+parseInt(_0x5941a7(0x1d7))/0x8;if(_0x18d520===_0x5c00c7)break;else _0x2267d1['push'](_0x2267d1['shift']());}catch(_0x16d001){_0x2267d1['push'](_0x2267d1['shift']());}}}(a2_0x1499,0xdfa48));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageAlwaysOnCampaignsCommand,EngageAlwaysOnCampaignShowCommand,EngageAlwaysOnCampaignCreateCommand,EngageAlwaysOnCampaignUpdateCommand,EngageAlwaysOnCampaignDeleteCommand,EngageAlwaysOnCampaignLaunchCommand,EngageAlwaysOnCampaignPauseCommand,EngageAlwaysOnCampaignResumeCommand,EngageAlwaysOnCampaignFinishCommand,EngageAlwaysOnCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{EngageCampaignPullCommand}from'./commands/engage-campaign-pull-command.js';import{EngageCampaignPushCommand}from'./commands/engage-campaign-push-command.js';import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-command.js';import{EngageTemplateValidateCommand}from'./commands/engage-template-validate-command.js';function a2_0x1499(){const _0x41deca=['retry\x20<session-id>','--name\x20<names>','--help','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Segment\x20description','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Output\x20file\x20path','Set\x20or\x20show\x20parent\x20segment\x20context','Delete\x20a\x20workspace','Database\x20name','--session-time\x20<time>','versions\x20<name-or-path>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Email\x20subject\x20template','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','--name\x20<new_name>','Output\x20directory','Overwrite\x20local\x20changes\x20without\x20confirmation','New\x20segment\x20name','pull\x20[project]\x20[agent-name]','view\x20[segment_name]','--include-stats','push','Skip\x20validation\x20of\x20.dig\x20files','--limit\x20<number>','Duplicate\x20a\x20campaign','0.7','--json','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','run\x20[workflow]','Remove\x20a\x20profile','show\x20<name>','YAML\x20file\x20path\x20for\x20unpushed\x20segment','Show\x20email\x20template\x20details','--system-prompt\x20<text>','kill\x20<job-id>','Run\x20Trino\x20query\x20with\x20streaming\x20results','show\x20[name]','--type\x20<type>','\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','--name\x20<text>','Delete\x20a\x20scheduled\x20query','TRACE','pull\x20<project>\x20[target-dir]','--limit\x20<rows>','run\x20[name]','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','describe','projects\x20[pattern]','log\x20<chat-id>','information_schema','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','2790172YSeTga','--behavior\x20[name]','Show\x20stats\x20for\x20specific\x20stage','aliases','Change\x20to\x20directory\x20before\x20executing\x20command','buildTime','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','[DEPRECATED]\x20Segment\x20folder\x20management','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','-r,\x20--recursive','Pull\x20child\x20segments\x20to\x20YAML\x20files','create\x20<parent_name>\x20<folder_name>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Customer\x20group\x20as\x20JSON\x20string','--dry-run','Show\x20only\x20master\x20table\x20validation','--in\x20<database>','--tags\x20<tags>','--num\x20<1-10>','parents\x20[pattern]','Clear\x20workflow\x20project\x20context','-o,\x20--output\x20<folder>','--add-attributes-file\x20<file>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','List\x20agents\x20in\x20current\x20project','--behaviors-file\x20<file>','Show\x20all\x20files\x20including\x20valid\x20ones','action','pull\x20[workspace]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','claude\x20[args...]','-d,\x20--database\x20<database>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Duplicate\x20an\x20always-on\x20campaign','Open\x20segment\x20in\x20web\x20browser','Validate\x20template\x20YAML\x20files\x20locally','Show\x20journey\x20statistics','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Launch\x20an\x20always-on\x20campaign','--result\x20<url>','use\x20[name]','status','--in\x20<db>','argumentTerm','always-on-campaign','commandDescription','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Create\x20a\x20new\x20campaign','--color','push\x20[target]','--engine-version\x20<version>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--plaintext\x20<text>','Finish\x20an\x20always-on\x20campaign','Table\x20management\x20commands','upload\x20[project-name-or-dir]','pull\x20[name]','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','--debug','Pause\x20a\x20running\x20journey','--add-attributes\x20<json>','Show\x20workspace\x20details','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Delete\x20an\x20email\x20template','-f,\x20--force','tdx\x20','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','list\x20[pattern]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','list','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','Show\x20timeline\x20for\x20specific\x20attempt','Maximum\x20recursion\x20depth\x20(default:\x2010)','Directory\x20does\x20not\x20exist:\x20','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Create\x20a\x20new\x20always-on\x20campaign','\x20(resolved\x20to\x20','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','login','\x20-\x20built\x20','padEnd','225LaiLMM','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Launch\x20a\x20campaign','INVALID_ARGUMENT','Ending\x20offset\x20(default:\x2020)','-u,\x20--use','--prompt\x20<text>','-f,\x20--file\x20<path>','list\x20[project]','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Limit\x20number\x20of\x20rows','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Update\x20a\x20campaign','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--cron\x20<expression>','Invalid\x20--limit\x20value:\x20\x22','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Create\x20an\x20email\x20template','Project\x20description','create\x20<name>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--status\x20<status>','New\x20template\x20name','--enable-utm-tracking','--subject\x20<subject>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','5856VxCCUf','--reason\x20<text>','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Unknown\x20action:\x20','Email\x20template\x20management','template','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--no-proxy','claude-4.5-sonnet','--full','29765048XiHsCh','templates\x20[pattern]','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Output\x20as\x20JSON','-d,\x20--database\x20<db>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','List\x20email\x20senders','Workspace\x20description','validate\x20[name]','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','List\x20available\x20connector\x20types','name','history\x20[chat-id]','error','Update\x20an\x20always-on\x20campaign','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Output\x20as\x20JSON\x20Lines','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','preview\x20[file]','View\x20a\x20specific\x20version\x20of\x20a\x20journey','gitRevision','delete\x20<project-name-or-id>','Skip\x20population\x20counting','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Get\x20job\x20results','sessions\x20[project]','Add\x20attributes\x20as\x20JSON\x20string','List\x20activations\x20for\x20a\x20journey','logs','--database\x20<name>','--kind\x20<type>','format','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','jobs','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Customer\x20group\x20from\x20JSON\x20file','--clear','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Authentication\x20management','--output\x20<file>','profile','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','option','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Workspace\x20name','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','isTTY','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','-y,\x20--yes','Enable\x20UTM\x20tracking','injectIntoOptions','Access\x20control\x20policy\x20commands','journey','senders\x20[pattern]','then','Usage:\x20','Trino\x20catalog\x20(default:\x20td)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--interval\x20<range>','policy','--html\x20<html>','--delay\x20<seconds>','8770538XxGjGF','Reason\x20for\x20killing\x20the\x20attempt','Include\x20execution\x20statistics','chdir','Skip\x20confirmation\x20prompt','Delay\x20in\x20seconds\x20before\x20execution','Show\x20master\x20table\x20sample\x20data','trino','--schedule-type\x20<type>','Preview\x20operation\x20without\x20executing','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Save\x20output\x20to\x20file','use\x20<path>','show\x20<agent-name>','Include\x20retried\x20attempts\x20(for\x20list)','optionTerm','--include-retried','Agent\x20description','summary','List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)','Starting\x20offset\x20(default:\x200)','list\x20[path]','--limit\x20<n>','--default','--parent-segment\x20<name>','forEach','sql\x20[segment_name]','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Manage\x20workflow\x20project\x20secrets','[task-name]','System\x20prompt/instructions\x20(default:\x20empty)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Workspace\x20name\x20(required)','Enable\x20verbose\x20logging','database','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','subcommandTerm','argumentDescription','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','repeat','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','parent-segment','Show\x20job\x20details','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','create','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Path\x20is\x20not\x20a\x20directory:\x20','-n,\x20--name\x20<name>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Custom\x20revision\x20name\x20(default:\x20timestamp)','New\x20campaign\x20name','Follow/watch\x20timeline\x20for\x20running\x20attempts','Commands:','--folder\x20<name>','--time\x20<iso8601>','--params\x20<json>','Resume\x20a\x20paused\x20always-on\x20campaign','Timezone\x20for\x20cron\x20(default:\x20UTC)','[action]','--result\x20<target>','session','update\x20<name>','campaigns\x20[pattern]','models','Override\x20project\x20name','activations\x20<name-or-path>','addHelpText','--catalog\x20<catalog>','--html-file\x20<path>','test\x20[path]','Show\x20journey\x20table\x20column-to-step\x20mapping','--rule-file\x20<file>','allowUnknownOption','join','padWidth','--email-sender-id\x20<id>','Result\x20output\x20destination\x20URL','trace','Journey\x20version\x20management','isDirectory','Job\x20management\x20commands','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Always-on\x20campaign\x20management','--from-task\x20<task>','--workspace\x20<name>','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Create\x20a\x20new\x20profile','--priority\x20<-2~2>','Show\x20schedule\x20details','jsonl','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--starter-message\x20<text>','--enriched','Continue\x20most\x20recent\x20conversation','mcp','Options:','set\x20<key=value>','--customer-group-file\x20<file>','download\x20<project-name>\x20[output-dir]','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Invalid\x20editor\x20type:\x20','\x22.\x20Must\x20be\x20a\x20number.','command','json','set\x20<args...>','after','variadic','slice','parse','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','Resume\x20a\x20paused\x20journey','Show\x20segment\x20details\x20(alias\x20for\x20view)','Updated\x20timezone','clear','--description\x20<text>','\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','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','Delete\x20a\x20campaign','show\x20<name-or-id>','length','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','-X,\x20--method\x20<method>','Resume\x20a\x20paused\x20campaign','Show\x20connection\x20details\x20by\x20name','Push\x20without\x20confirmation','Job\x20priority\x20(-2\x20to\x202)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','_hidden','argument','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','kill','Show\x20agent\x20details','--chat-id\x20<id>','beefree','-H,\x20--header\x20<header>','Start\x20a\x20new\x20chat\x20session','9852600jersgl','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Query\x20engine\x20version','Generate\x20test\x20conversations\x20without\x20evaluation','subcommandDescription','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','-c,\x20--continue','List\x20all\x20versions\x20of\x20a\x20journey','LLM\x20project\x20to\x20use\x20(overrides\x20context)',',\x20version\x20','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','workspaces\x20[pattern]','Campaign\x20name','--from\x20<timestamp>','--to\x20<date>','Attempt\x20ID','Filtering\x20rule\x20as\x20JSON\x20string','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','update\x20<name-or-id>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','agents\x20[pattern]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Workspace\x20management','use\x20<project-name>','--tsv','attempts\x20[project]','view\x20[name]','registeredArguments','map','requiredOption','Filtering\x20rule\x20from\x20JSON\x20file','delete\x20<name-or-id>','Workflow\x20parameter\x20(repeatable)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Data\x20connection\x20management\x20(for\x20activations/exports)','chat\x20[message...]','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','options','commandUsage','Database\x20to\x20query\x20(default:\x20information_schema)','show\x20<job-id>','show\x20<folder_ref>','--no-count-population','tasks','backup\x20<name>','createAsync','tdx','--from\x20<date>','Workflow\x20attempt\x20management','New\x20workspace\x20name','--segment\x20<path>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Submit\x20a\x20job','Retry\x20limit\x20(0\x20to\x2032)','Pull\x20specific\x20campaign\x20by\x20name','-o,\x20--output\x20<dir>','tsv','Master\x20database\x20name','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','Workflow\x20project\x20management','--version','create\x20<name-or-path>','Show\x20segment\x20schema\x20(column\x20types)','Personalization\x20service\x20management','Create\x20segment\x20folder','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Arguments:','Campaign\x20description','Update\x20an\x20existing\x20agent','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','logLevel','--rule\x20<json>','List\x20journeys\x20(alias\x20for\x20journey\x20list)','flags','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Set\x20operation\x20timeout\x20in\x20seconds','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','_list-commands','List\x20all\x20users\x20in\x20the\x20account','Query\x20type:\x20trino\x20or\x20hive','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','duplicate\x20<name-or-id>','--reeval','End\x20time\x20filter\x20(ISO\x208601\x20format)','create\x20<segment_name>','workflow','Update\x20an\x20email\x20template','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','connection','-1d','--behaviors\x20<json>','--temperature\x20<n>','validate\x20[target]','INFO','Include\x20raw\x20history\x20data\x20in\x20output','Starter\x20message','--from\x20<n>','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','settings\x20<type>','apiKey','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','catch','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','User\x20management\x20commands','resume\x20<name-or-path>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','directory','Delete\x20an\x20LLM\x20project','job','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\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\x20ap01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','Pull\x20specific\x20revision\x20(default:\x20latest)','pull\x20[workspace-name]','Maximum\x20tool\x20iterations\x20(default:\x204)','Set\x20a\x20profile\x20configuration\x20value','Open\x20journey\x20in\x20web\x20browser','-o,\x20--output\x20<file>','Validate\x20journey\x20YAML\x20files\x20locally','-v,\x20--verbose','Show\x20authentication\x20status\x20and\x20current\x20context','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','use\x20[project]','get','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','[attempt-id]','segments\x20[path]','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','--no-eval','-w,\x20--web','--timeout\x20<seconds>','timeline\x20[project.workflow]','--attribute\x20[name]','run','Read\x20query\x20from\x20file','list\x20[name]','schema\x20<type>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','validate\x20[file]','table','--verbose','List\x20jobs','--database\x20<db>','Timezone\x20(e.g.,\x20America/Los_Angeles)','fields\x20[name]','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','--skip-validation','preview\x20[name]','Update\x20a\x20workspace','Remove\x20API\x20key\x20from\x20system\x20keychain','outputHelp','includes','--name\x20<new-name>','Read\x20request\x20body\x20from\x20file','--description\x20<desc>','Behaviors\x20as\x20JSON\x20string','HTML\x20template\x20content','noColor','argv','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--invisible','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','[EXPERIMENTAL]\x20Show\x20chat\x20log','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','List\x20all\x20available\x20profiles','engage_workspace','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','view\x20<name-or-path>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','chats','--yes','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Database\x20management\x20commands','push\x20[source-dir]','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','Open\x20parent\x20segment\x20in\x20web\x20browser','Updated\x20schedule\x20option','Preview\x20without\x20creating\x20the\x20project','hook','--method\x20<pm>','Run\x20a\x20scheduled\x20query\x20immediately','Update\x20a\x20scheduled\x20query','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','databases\x20[pattern]','journeys\x20[pattern]','Resume\x20from\x20specific\x20task\x20(retry)','pause\x20<name-or-path>','--revision\x20<revision>','Move\x20to\x20folder','--path\x20<file-path>','push\x20[parent_or_file]','project','configureHelp','delivery','--to\x20<n>','filter','allowExcessArguments','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--retry-limit\x20<0~32>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--data\x20<data>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Show\x20always-on\x20campaign\x20details','activations\x20<segment_name>','tables\x20[pattern]','--llm-project\x20<name>','Attributes\x20from\x20JSON\x20file','finish\x20<name-or-id>','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Read\x20HTML\x20template\x20from\x20file','show\x20<policy>','push\x20[name]','set','Run\x20tests\x20for\x20an\x20LLM\x20agent','AI-native\x20CLI\x20for\x20Treasure\x20Data','-C,\x20--directory\x20<path>','describe\x20[table]','description','opts','delete\x20<name>','help','Timezone\x20for\x20cron','upgrade\x20[version]','--editor-type\x20<type>','resume\x20<name-or-id>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','history\x20<name>','--start-at\x20<datetime>','alias','--parent-folder\x20<name>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Preview\x20changes\x20without\x20pushing','Pause\x20a\x20campaign','unset\x20<resource>','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','RT\x202.0\x20configuration\x20management','launch\x20<name-or-id>','Parent\x20segment\x20management','schedule','parent_segment','Task\x20name\x20for\x20logs\x20action','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','profiles','accessToken','Campaign\x20management','Output\x20folder\x20(default:\x20{project_name}.llm)','desc\x20[name]','--master','Pull\x20campaigns\x20to\x20YAML\x20files','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--table','--attributes-file\x20<file>','pause\x20<name-or-id>','usage','--last','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','find','--table\x20<table>','update\x20<segment_name>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','agent','1051528BWOgJZ','--trace','stringify','--attempt-id\x20<id>','segment','--max-depth\x20<depth>','Interactive\x20chat\x20selector','desc\x20[segment_name]','--json-columns\x20<cols>','exit','Pull\x20templates\x20to\x20YAML\x20files','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Include\x20retried\x20attempts','submit\x20[query]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','List\x20available\x20LLM\x20models','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Revision\x20name\x20(default:\x20timestamp)','Run\x20specific\x20tests\x20(comma-separated)','--to\x20<timestamp>','--no-color','log','Include\x20subtasks\x20in\x20tasks\x20output','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--jsonl','\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','--include-history','delete\x20<args...>','required','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','stats\x20<name-or-path>','1814575ICaJfe','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','always-on-campaigns\x20[pattern]','--timezone\x20<tz>','Agent\x20name','-a,\x20--agent\x20<name>','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Workflow\x20(Digdag)\x20management\x20commands','debug','Cron\x20expression\x20for\x20scheduling','stderr','statusline','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','commands','Email\x20sender\x20ID\x20for\x20delivery','Show\x20the\x20most\x20recent\x20chat','--name\x20<name>','version','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','optionDescription','init\x20[name]','Clear\x20session\x20context','Campaign\x20type\x20(email\x20or\x20push)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Updated\x20description','show\x20[segment_name]','--new','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','fields\x20[parent_name]','Scheduled\x20query\x20management\x20commands','use\x20<name>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--next','Name\x20for\x20the\x20duplicated\x20campaign','push\x20[path]','restore\x20<folder>','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','List\x20secret\x20keys\x20for\x20a\x20project','Plaintext\x20template\x20content','attempt'];a2_0x1499=function(){return _0x41deca;};return a2_0x1499();}import{EngageTemplatePullCommand}from'./commands/engage-template-pull-command.js';import{EngageTemplatePushCommand}from'./commands/engage-template-push-command.js';import{DeliveryEmailSendersCommand}from'./commands/delivery-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{AuthLoginCommand}from'./commands/auth-login-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{PolicyCommand,PolicyListCommand,PolicyShowCommand}from'./commands/policy-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x1dd5bc(0x349)][a2_0x1dd5bc(0x342)](a2_0x1dd5bc(0x2e5))){let versionOutput=a2_0x1dd5bc(0x477)+currentVersion;buildInfo[a2_0x1dd5bc(0x1ee)]&&!currentVersion[a2_0x1dd5bc(0x342)](buildInfo[a2_0x1dd5bc(0x1ee)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x1dd5bc(0x439)]&&(versionOutput+=a2_0x1dd5bc(0x487)+buildInfo[a2_0x1dd5bc(0x439)]),console['log'](versionOutput),process[a2_0x1dd5bc(0x3c0)](0x0);}const program=new Command();export function mergeCommandOptions(_0x30fe1e,_0x55a5fe){const _0x4925a0={..._0x30fe1e};for(const [_0x23ce3d,_0x44a7aa]of Object['entries'](_0x55a5fe)){_0x44a7aa!==undefined&&(_0x4925a0[_0x23ce3d]=_0x44a7aa);}return _0x4925a0;}let showBriefHelp=![],description=a2_0x1dd5bc(0x385);buildInfo['gitRevision']&&!currentVersion[a2_0x1dd5bc(0x342)](buildInfo[a2_0x1dd5bc(0x1ee)])?description+=a2_0x1dd5bc(0x2b1)+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x1dd5bc(0x2b1)+currentVersion;program[a2_0x1dd5bc(0x1e4)](a2_0x1dd5bc(0x2d6))['description'](description),program[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x386),a2_0x1dd5bc(0x438))[a2_0x1dd5bc(0x207)]('-p,\x20--profile\x20<name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)')['option']('--site\x20<site>',a2_0x1dd5bc(0x200),'us01')[a2_0x1dd5bc(0x207)]('--format\x20<format>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3aa),a2_0x1dd5bc(0x33a))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x41b),a2_0x1dd5bc(0x20a))['option'](a2_0x1dd5bc(0x3d0),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2c0),a2_0x1dd5bc(0x3cf))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x203),a2_0x1dd5bc(0x227))[a2_0x1dd5bc(0x207)]('--limit\x20<number>',a2_0x1dd5bc(0x3c8))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x466),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])['option'](a2_0x1dd5bc(0x3cc),a2_0x1dd5bc(0x43d),![])[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x320),a2_0x1dd5bc(0x23d),![])['option'](a2_0x1dd5bc(0x470),a2_0x1dd5bc(0x377))['option'](a2_0x1dd5bc(0x3b8),a2_0x1dd5bc(0x29d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32b),a2_0x1dd5bc(0x2f4),'30')[a2_0x1dd5bc(0x207)]('--dry-run',a2_0x1dd5bc(0x225),![])['option'](a2_0x1dd5bc(0x20e),'Skip\x20confirmation\x20prompts',![])['option']('--session\x20<id>',a2_0x1dd5bc(0x325))['option'](a2_0x1dd5bc(0x234),a2_0x1dd5bc(0x2cc))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x37c),a2_0x1dd5bc(0x2b0)),program[a2_0x1dd5bc(0x36d)]({'formatHelp':(_0xe42ddd,_0x2dddd6)=>{const _0x3e19dd=a2_0x1dd5bc,_0x4e7cbf=_0x2dddd6[_0x3e19dd(0x267)](_0xe42ddd,_0x2dddd6),_0x5d2201=0x2,_0x367765=0x2;function _0x4aaa79(_0xd6662b){const _0x26e2a2=_0x3e19dd,_0x40ac06=_0xd6662b;return!!(_0x40ac06[_0x26e2a2(0x29e)]||_0x40ac06['hidden']);}function _0x30c971(_0xe8b6cb,_0x3b77e4){const _0xee3005=_0x3e19dd;if(_0x3b77e4){const _0x12c676=''+_0xe8b6cb[_0xee3005(0x488)](_0x4e7cbf+_0x367765)+_0x3b77e4;return _0x12c676;}return _0xe8b6cb;}function _0x503f30(_0x52cc1f){const _0x2dd2cd=_0x3e19dd;return _0x52cc1f[_0x2dd2cd(0x266)]('\x0a')['replace'](/^/gm,'\x20'[_0x2dd2cd(0x244)](_0x5d2201));}const _0x126f67=[];_0x126f67[_0x3e19dd(0x416)](_0x3e19dd(0x215)+_0x2dddd6[_0x3e19dd(0x2ce)](_0xe42ddd));const _0x18d64f=_0x2dddd6[_0x3e19dd(0x463)](_0xe42ddd);_0x18d64f&&(_0x126f67[_0x3e19dd(0x416)](''),_0x126f67[_0x3e19dd(0x416)](_0x18d64f));const _0x4f3e84=_0xe42ddd[_0x3e19dd(0x3e5)][_0x3e19dd(0x370)](_0x8e339e=>!_0x4aaa79(_0x8e339e));if(_0x4f3e84[_0x3e19dd(0x295)]>0x0){if(_0xe42ddd['name']()===_0x3e19dd(0x2d6)){const _0x1693a0=_0xe42ddd[_0x3e19dd(0x389)](),_0x29ef03=!_0x1693a0[_0x3e19dd(0x348)]&&process['stdout'][_0x3e19dd(0x20c)],_0x54270c=COMMAND_CATEGORIES,_0x1306de=(_0x46d2d9,_0x18e56e)=>_0x29ef03?_0x18e56e(_0x46d2d9):_0x46d2d9,_0x4d86f7=new Map();_0x4f3e84[_0x3e19dd(0x235)](_0x5a1ed3=>{const _0x131ba4=_0x3e19dd;_0x4d86f7[_0x131ba4(0x383)](_0x5a1ed3[_0x131ba4(0x1e4)](),_0x5a1ed3);}),_0x54270c[_0x3e19dd(0x235)](_0x3b7b7d=>{const _0x230d8c=_0x3e19dd,_0x3a98f9=_0x3b7b7d[_0x230d8c(0x3e5)]['flatMap'](_0x5487ab=>_0x4d86f7[_0x230d8c(0x324)](_0x5487ab)??[]);if(_0x3a98f9['length']>0x0){_0x126f67[_0x230d8c(0x416)](''),_0x126f67[_0x230d8c(0x416)](_0x1306de(_0x3b7b7d[_0x230d8c(0x1e4)]+':',_0x3b7b7d['colorFn']));const _0x510bdc=_0x3a98f9[_0x230d8c(0x2c4)](_0x6f0863=>{const _0x9bc5eb=_0x230d8c,_0x4a6764=_0x2dddd6[_0x9bc5eb(0x240)](_0x6f0863),_0x241162=_0x2dddd6[_0x9bc5eb(0x2ab)](_0x6f0863);return _0x30c971(_0x4a6764,_0x241162);});_0x126f67['push'](_0x503f30(_0x510bdc));}}),_0x126f67[_0x3e19dd(0x416)](''),_0x126f67[_0x3e19dd(0x416)](_0x3e19dd(0x1e8));}else{const _0x3bc0b9=_0x4f3e84[_0x3e19dd(0x2c4)](_0x26f92a=>{const _0x132160=_0x3e19dd,_0x288584=_0x2dddd6['subcommandTerm'](_0x26f92a),_0x3c01c0=_0x2dddd6[_0x132160(0x2ab)](_0x26f92a);return _0x30c971(_0x288584,_0x3c01c0);});_0x126f67['push'](''),_0x126f67['push'](_0x3e19dd(0x251)),_0x126f67[_0x3e19dd(0x416)](_0x503f30(_0x3bc0b9));}}if(showBriefHelp&&_0xe42ddd[_0x3e19dd(0x1e4)]()===_0x3e19dd(0x2d6))_0x126f67[_0x3e19dd(0x416)](''),_0x126f67[_0x3e19dd(0x416)]('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x39efa6=_0xe42ddd['options'][_0x3e19dd(0x370)](_0x34cb0f=>!_0x4aaa79(_0x34cb0f));if(_0x39efa6[_0x3e19dd(0x295)]>0x0){const _0x38fca4=_0x39efa6[_0x3e19dd(0x2c4)](_0x373634=>{const _0x4a64a9=_0x3e19dd,_0x20cba7=_0x2dddd6[_0x4a64a9(0x22b)](_0x373634),_0x3e9f09=_0x2dddd6[_0x4a64a9(0x3eb)](_0x373634);return _0x30c971(_0x20cba7,_0x3e9f09);});_0x126f67[_0x3e19dd(0x416)](''),_0x126f67['push'](_0x3e19dd(0x27d)),_0x126f67[_0x3e19dd(0x416)](_0x503f30(_0x38fca4));}}const _0x24bc6d=(_0xe42ddd[_0x3e19dd(0x2c3)]||[])[_0x3e19dd(0x370)](_0xa57ff2=>!_0x4aaa79(_0xa57ff2));if(_0x24bc6d['length']>0x0){const _0x225f0a=_0x24bc6d[_0x3e19dd(0x2c4)](_0x44e111=>{const _0x2f7ae7=_0x3e19dd,_0x6575b8=_0x2dddd6[_0x2f7ae7(0x461)](_0x44e111),_0x4dab3f=_0x2dddd6[_0x2f7ae7(0x241)](_0x44e111);return _0x30c971(_0x6575b8,_0x4dab3f);});_0x126f67[_0x3e19dd(0x416)](''),_0x126f67['push'](_0x3e19dd(0x2eb)),_0x126f67[_0x3e19dd(0x416)](_0x503f30(_0x225f0a));}return _0x126f67[_0x3e19dd(0x266)]('\x0a')+'\x0a';},'subcommandTerm':_0x5c8b45=>{const _0x2fac55=a2_0x1dd5bc,_0x1703ab=(_0x5c8b45[_0x2fac55(0x2c3)]||[])[_0x2fac55(0x2c4)](_0x1026e3=>_0x1026e3[_0x2fac55(0x3d4)]?'<'+_0x1026e3[_0x2fac55(0x1e4)]()+'>':'['+_0x1026e3[_0x2fac55(0x1e4)]()+']')[_0x2fac55(0x266)]('\x20'),_0x138d20=_0x5c8b45[_0x2fac55(0x437)](),_0x5ec7fb=_0x138d20['length']>0x0?_0x5c8b45['name']()+',\x20'+_0x138d20[_0x2fac55(0x266)](',\x20'):_0x5c8b45['name']();return _0x1703ab?_0x5ec7fb+'\x20'+_0x1703ab:_0x5ec7fb;}}),program[a2_0x1dd5bc(0x35e)]('preAction',_0x510c79=>{const _0xdff6dc=a2_0x1dd5bc,_0x132287=_0x510c79[_0xdff6dc(0x389)]();if(_0x132287[_0xdff6dc(0x315)]){const _0x59d6a9=resolve(_0x132287['directory']),_0x129f9f=_0x59d6a9!==_0x132287[_0xdff6dc(0x315)]?_0xdff6dc(0x484)+_0x59d6a9+')':'';if(!existsSync(_0x59d6a9))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xdff6dc(0x481)+_0x132287[_0xdff6dc(0x315)]+_0x129f9f,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x33f08e=statSync(_0x59d6a9);if(!_0x33f08e[_0xdff6dc(0x26c)]())throw new SDKError(ErrorCode[_0xdff6dc(0x1b6)],_0xdff6dc(0x24b)+_0x132287[_0xdff6dc(0x315)]+_0x129f9f,undefined,{'helpText':_0xdff6dc(0x2c9)});process[_0xdff6dc(0x21f)](_0x59d6a9);}if(!_0x132287['format']){if(_0x132287[_0xdff6dc(0x334)])_0x132287['format']=_0xdff6dc(0x334);else{if(_0x132287['json'])_0x132287['format']=_0xdff6dc(0x285);else{if(_0x132287['jsonl'])_0x132287[_0xdff6dc(0x1f9)]=_0xdff6dc(0x276);else _0x132287['tsv']&&(_0x132287['format']=_0xdff6dc(0x2e0));}}}if(_0x132287[_0xdff6dc(0x26a)])_0x132287['logLevel']=LogLevel[_0xdff6dc(0x42a)];else{if(_0x132287[_0xdff6dc(0x3df)])_0x132287[_0xdff6dc(0x2ef)]=LogLevel['DEBUG'];else _0x132287[_0xdff6dc(0x2ef)]===undefined&&(_0x132287[_0xdff6dc(0x2ef)]=LogLevel[_0xdff6dc(0x306)]);}});async function createTDXInstance(_0x1f28d0){const _0x35246d=a2_0x1dd5bc,_0x57f386=await GlobalContext[_0x35246d(0x2d5)](_0x1f28d0);return _0x57f386[_0x35246d(0x210)](_0x1f28d0),TDX[_0x35246d(0x249)]({'site':_0x57f386['site'],'apiKey':_0x57f386[_0x35246d(0x30d)],'accessToken':_0x57f386[_0x35246d(0x3a3)],'logLevel':_0x57f386[_0x35246d(0x2ef)],'profile':_0x57f386[_0x35246d(0x204)]});}const databaseCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x23e))[a2_0x1dd5bc(0x393)]('db')['description'](a2_0x1dd5bc(0x358)),databaseListAction=async(_0x4086e9,_0x51a447)=>{const _0x283d16=a2_0x1dd5bc,_0xee96cb=new DatabasesCommand(),_0x44749e=program[_0x283d16(0x389)](),_0x398b91=await createTDXInstance(_0x44749e),_0x168390=await _0xee96cb[_0x283d16(0x32e)]({'options':{..._0x44749e,..._0x51a447},'args':_0x4086e9?[_0x4086e9]:[],'tdx':_0x398b91});gracefulExit(_0x168390);};databaseCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))['description'](a2_0x1dd5bc(0x29c))[a2_0x1dd5bc(0x450)](databaseListAction),program['command'](a2_0x1dd5bc(0x364),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x362))[a2_0x1dd5bc(0x450)](databaseListAction),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2cb))['description']('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x1dd5bc(0x207)]('--agent\x20<ref>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3f2),a2_0x1dd5bc(0x2a6))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2a3),'Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')[a2_0x1dd5bc(0x207)]('--stream',a2_0x1dd5bc(0x3fc))[a2_0x1dd5bc(0x450)](async(_0xed7bfd,_0x3f2f8f)=>{const _0x1e8e18=a2_0x1dd5bc,_0x1d07ac=program[_0x1e8e18(0x389)](),_0x295358=await createTDXInstance(_0x1d07ac);if(_0xed7bfd[0x0]==='create'){const _0x4e9e58=new ChatCreateCommand();gracefulExit(await _0x4e9e58[_0x1e8e18(0x32e)]({'options':{..._0x1d07ac,..._0x3f2f8f},'args':_0xed7bfd[_0x1e8e18(0x289)](0x1),'tdx':_0x295358}));return;}const _0x445901=new ChatCommand(),_0x2c9615=await _0x445901[_0x1e8e18(0x32e)]({'options':{..._0x1d07ac,..._0x3f2f8f},'args':_0xed7bfd,'tdx':_0x295358});gracefulExit(_0x2c9615);});const apiCmd=program[a2_0x1dd5bc(0x284)]('api\x20[endpoint]')[a2_0x1dd5bc(0x22e)](a2_0x1dd5bc(0x395))[a2_0x1dd5bc(0x25f)]('after',a2_0x1dd5bc(0x3d1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x297),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')['option'](a2_0x1dd5bc(0x376),'Request\x20body\x20as\x20JSON\x20string')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1ba),a2_0x1dd5bc(0x344))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2a5),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x124fd6,_0xf15158)=>{return _0xf15158?[..._0xf15158,_0x124fd6]:[_0x124fd6];})[a2_0x1dd5bc(0x207)]('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x3a42d7,_0xf057b9)=>{if(!_0x3a42d7){apiCmd['help']();return;}const _0x4ff6c0=new ApiCommand(),_0x4646d3=program['opts'](),_0x51f81b=await createTDXInstance(_0x4646d3),_0x14a5fd=await _0x4ff6c0['run']({'options':{..._0x4646d3,..._0xf057b9},'args':[_0x3a42d7],'tdx':_0x51f81b});gracefulExit(_0x14a5fd);});program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x27c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x39a))[a2_0x1dd5bc(0x25f)]('after',a2_0x1dd5bc(0x277))['action'](async _0x16898d=>{const _0x6ca99d=a2_0x1dd5bc,_0x375412=new MCPCommand(),_0x45af0e=program['opts'](),_0x4b6c8f=await createTDXInstance(_0x45af0e),_0x6df5f6=await _0x375412[_0x6ca99d(0x32e)]({'options':{..._0x45af0e,..._0x16898d},'args':[],'tdx':_0x4b6c8f});gracefulExit(_0x6df5f6);});const tableCmd=program[a2_0x1dd5bc(0x284)]('table')['description'](a2_0x1dd5bc(0x46c)),tableListAction=async(_0x11c7ae,_0x328a08)=>{const _0x5a8c60=a2_0x1dd5bc,_0x572d45=new TablesCommand(),_0x20c8ca=program[_0x5a8c60(0x389)](),_0x225388=await createTDXInstance(_0x20c8ca);_0x328a08['in']&&(_0x328a08[_0x5a8c60(0x23e)]=_0x328a08['in']);const _0x4c7b80=await _0x572d45['run']({'options':{..._0x20c8ca,..._0x328a08},'args':_0x11c7ae?[_0x11c7ae]:[],'tdx':_0x225388});gracefulExit(_0x4c7b80);};tableCmd['command'](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1da))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x454),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x1dd5bc(0x445),a2_0x1dd5bc(0x464))['action'](tableListAction),program['command'](a2_0x1dd5bc(0x37b),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x351))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x454),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x1dd5bc(0x445),a2_0x1dd5bc(0x464))['action'](tableListAction),program['command']('show\x20[table]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ad))['option'](a2_0x1dd5bc(0x454),a2_0x1dd5bc(0x314))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x445),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x3f0529,_0x13bb80)=>{const _0x13d15a=a2_0x1dd5bc,_0x3145c1=new ShowCommand(),_0xb2199c=program['opts'](),_0x400953=await createTDXInstance(_0xb2199c);_0x13bb80['in']&&(_0x13bb80[_0x13d15a(0x23e)]=_0x13bb80['in']);const _0x260184=await _0x3145c1[_0x13d15a(0x32e)]({'options':{..._0xb2199c,..._0x13bb80},'args':_0x3f0529?[_0x3f0529]:[],'tdx':_0x400953});gracefulExit(_0x260184);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x387))['alias']('desc')[a2_0x1dd5bc(0x388)]('Describe\x20table\x20schema')[a2_0x1dd5bc(0x207)]('-d,\x20--database\x20<database>',a2_0x1dd5bc(0x314))[a2_0x1dd5bc(0x207)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1dd5bc(0x450)](async(_0x32e58f,_0x355b55)=>{const _0x345054=a2_0x1dd5bc,_0x449de3=new DescribeCommand(),_0x2ecef9=program[_0x345054(0x389)](),_0x2e6917=await createTDXInstance(_0x2ecef9);_0x355b55['in']&&(_0x355b55[_0x345054(0x23e)]=_0x355b55['in']);const _0x3db7c1=await _0x449de3[_0x345054(0x32e)]({'options':{..._0x2ecef9,..._0x355b55},'args':_0x32e58f?[_0x32e58f]:[],'tdx':_0x2e6917});gracefulExit(_0x3db7c1);}),program[a2_0x1dd5bc(0x284)]('query\x20[sql]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x424))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x454),a2_0x1dd5bc(0x2cf))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x445),a2_0x1dd5bc(0x464))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x260),a2_0x1dd5bc(0x216))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1ba),'Read\x20SQL\x20query\x20from\x20file')['option'](a2_0x1dd5bc(0x42c),'Maximum\x20rows\x20to\x20display')[a2_0x1dd5bc(0x450)](async(_0x3da22b,_0x3d66d8)=>{const _0x2eb9a3=a2_0x1dd5bc,_0xd439af=new QueryCommand(),_0x35e9e1=program['opts'](),_0x44dff7=await createTDXInstance(_0x35e9e1);_0x3d66d8['in']&&(_0x3d66d8[_0x2eb9a3(0x23e)]=_0x3d66d8['in']);const _0x40ea89=await _0xd439af[_0x2eb9a3(0x32e)]({'options':mergeCommandOptions(_0x35e9e1,_0x3d66d8),'args':_0x3da22b?[_0x3da22b]:[],'tdx':_0x44dff7});gracefulExit(_0x40ea89);});const segmentCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3bb))[a2_0x1dd5bc(0x393)]('sg')[a2_0x1dd5bc(0x388)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x17411d,_0x1bdfa3)=>{const _0x1134b6=a2_0x1dd5bc,_0x31b730=new SegmentsCommand(),_0x28dc08=program['opts'](),_0x132729=await createTDXInstance(_0x28dc08),_0x3391ae=await _0x31b730[_0x1134b6(0x32e)]({'options':{..._0x28dc08,..._0x1bdfa3},'args':_0x17411d?[_0x17411d]:[],'tdx':_0x132729});gracefulExit(_0x3391ae);};segmentCmd['command'](a2_0x1dd5bc(0x231))['description'](a2_0x1dd5bc(0x1fa))[a2_0x1dd5bc(0x207)]('-r,\x20--recursive',a2_0x1dd5bc(0x40c))['option'](a2_0x1dd5bc(0x3bc),a2_0x1dd5bc(0x480),'10')[a2_0x1dd5bc(0x450)](segmentListAction),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x327),{'hidden':!![]})[a2_0x1dd5bc(0x388)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x43e),a2_0x1dd5bc(0x40c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3bc),a2_0x1dd5bc(0x480),'10')[a2_0x1dd5bc(0x450)](segmentListAction),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x228),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x441))['action'](async(_0x55667a,_0x105f5a)=>{const _0x5f03f9=a2_0x1dd5bc,_0xf53f97=new SegmentUseCommand(),_0x11bf7f=program[_0x5f03f9(0x389)](),_0x5ea5d0=await createTDXInstance(_0x11bf7f),_0x5668d1=await _0xf53f97[_0x5f03f9(0x32e)]({'options':{..._0x11bf7f,..._0x105f5a},'args':[_0x55667a],'tdx':_0x5ea5d0});gracefulExit(_0x5668d1);});const segmentViewAction=async(_0x47f820,_0x342110)=>{const _0x3763c1=a2_0x1dd5bc,_0xb772d1=new SegmentViewCommand(),_0x5bfec8=program[_0x3763c1(0x389)](),_0x64821d=await createTDXInstance(_0x5bfec8),_0x319ab6=await _0xb772d1['run']({'options':{..._0x5bfec8,..._0x342110},'args':_0x47f820?[_0x47f820]:[],'tdx':_0x64821d});gracefulExit(_0x319ab6);};segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x414))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x478))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32a),a2_0x1dd5bc(0x457))[a2_0x1dd5bc(0x450)](segmentViewAction),segmentCmd[a2_0x1dd5bc(0x284)]('info\x20[segment_name]',{'hidden':!![]})[a2_0x1dd5bc(0x393)](a2_0x1dd5bc(0x42f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32a),a2_0x1dd5bc(0x457))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x28d))[a2_0x1dd5bc(0x450)](segmentViewAction),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3be))['description'](a2_0x1dd5bc(0x2e7))[a2_0x1dd5bc(0x450)](async(_0x82d028,_0x24bfeb)=>{const _0x585ba1=a2_0x1dd5bc,_0x3bac39=new SegmentDescCommand(),_0x141df6=program[_0x585ba1(0x389)](),_0x455e11=await createTDXInstance(_0x141df6),_0xcbb03e=await _0x3bac39['run']({'options':{..._0x141df6,..._0x24bfeb},'args':_0x82d028?[_0x82d028]:[],'tdx':_0x455e11});gracefulExit(_0xcbb03e);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3f1))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f5))[a2_0x1dd5bc(0x450)](async(_0x162634,_0x1d6566)=>{const _0x1a5f77=a2_0x1dd5bc,_0xf046be=new SegmentShowCommand(),_0xd351f6=program[_0x1a5f77(0x389)](),_0x14d4fe=await createTDXInstance(_0xd351f6),_0xe43023=await _0xf046be[_0x1a5f77(0x32e)]({'options':{..._0xd351f6,..._0x1d6566},'args':_0x162634?[_0x162634]:[],'tdx':_0x14d4fe});gracefulExit(_0xe43023);}),segmentCmd[a2_0x1dd5bc(0x284)]('folders\x20<parent_name>',{'hidden':!![]})['description'](a2_0x1dd5bc(0x281))[a2_0x1dd5bc(0x450)](async(_0x2fe99b,_0x102d2d)=>{const _0x23c32b=a2_0x1dd5bc,_0x10a33b=new SegmentFolderListCommand(),_0x451bad=program[_0x23c32b(0x389)](),_0x1df799=await createTDXInstance(_0x451bad),_0x168b72=await _0x10a33b[_0x23c32b(0x32e)]({'options':{..._0x451bad,..._0x102d2d},'args':[_0x2fe99b],'tdx':_0x1df799});gracefulExit(_0x168b72);});const folderCmd=segmentCmd[a2_0x1dd5bc(0x284)]('folder',{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x43b));folderCmd['command'](a2_0x1dd5bc(0x2d1))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3d8))['action'](async(_0x4a6c36,_0x3edc93)=>{const _0x50c90e=a2_0x1dd5bc,_0x44cb59=new SegmentFolderShowCommand(),_0x59f4db=program['opts'](),_0x431968=await createTDXInstance(_0x59f4db),_0x56d3d1=await _0x44cb59[_0x50c90e(0x32e)]({'options':{..._0x59f4db,..._0x3edc93},'args':[_0x4a6c36],'tdx':_0x431968});gracefulExit(_0x56d3d1);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x236))['description']('Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x36a),a2_0x1dd5bc(0x420))[a2_0x1dd5bc(0x450)](async(_0x4a6d93,_0xa8a31c)=>{const _0x5a0742=a2_0x1dd5bc,_0x242c04=new SegmentSQLCommand(),_0x4576e7=program[_0x5a0742(0x389)](),_0x2d42e6=await createTDXInstance(_0x4576e7),_0x3da3b3=await _0x242c04['run']({'options':{..._0x4576e7,..._0xa8a31c},'args':_0x4a6d93?[_0x4a6d93]:[],'tdx':_0x2d42e6});gracefulExit(_0x3da3b3);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3f4))['description'](a2_0x1dd5bc(0x332))['action'](async(_0x28a839,_0x47f908)=>{const _0x22203f=a2_0x1dd5bc,_0x351b76=new SegmentFieldsCommand(),_0x3c77c3=program['opts'](),_0x13d5f4=await createTDXInstance(_0x3c77c3),_0x4a0251=await _0x351b76[_0x22203f(0x32e)]({'options':{..._0x3c77c3,..._0x47f908},'args':_0x28a839?[_0x28a839]:[],'tdx':_0x13d5f4});gracefulExit(_0x4a0251);}),segmentCmd[a2_0x1dd5bc(0x284)]('pull\x20[parent_or_file]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x43f))['option']('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')['action'](async(_0x1725af,_0x36fab9)=>{const _0xe12d0d=a2_0x1dd5bc,_0x16bb76=new SegmentPullCommand(),_0x47bede=program[_0xe12d0d(0x389)](),_0x4ba07e=await createTDXInstance(_0x47bede),_0x582dbf=await _0x16bb76['run']({'options':{..._0x47bede,..._0x36fab9},'args':_0x1725af?[_0x1725af]:[],'tdx':_0x4ba07e});gracefulExit(_0x582dbf);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x36b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x474))['option'](a2_0x1dd5bc(0x443),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x1dd5bc(0x207)]('--delete',a2_0x1dd5bc(0x2b9))[a2_0x1dd5bc(0x450)](async(_0x52b644,_0x5792ec)=>{const _0x4fc846=a2_0x1dd5bc,_0x5038b0=new SegmentPushCommand(),_0x2ae219=program[_0x4fc846(0x389)](),_0x367e8d=await createTDXInstance(_0x2ae219),_0x1c7970=await _0x5038b0[_0x4fc846(0x32e)]({'options':{..._0x2ae219,..._0x5792ec},'args':_0x52b644?[_0x52b644]:[],'tdx':_0x367e8d});gracefulExit(_0x1c7970);}),segmentCmd[a2_0x1dd5bc(0x284)]('validate\x20[target]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1c3))[a2_0x1dd5bc(0x450)](async(_0x377a75,_0x3a5d71)=>{const _0x220b89=a2_0x1dd5bc,_0x550cd5=new SegmentValidateCommand(),_0x243de5=program['opts'](),_0xecc265=await createTDXInstance(_0x243de5),_0x140bc4=await _0x550cd5[_0x220b89(0x32e)]({'options':{..._0x243de5,..._0x3a5d71},'args':_0x377a75?[_0x377a75]:[],'tdx':_0xecc265});gracefulExit(_0x140bc4);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2fd),{'hidden':!![]})[a2_0x1dd5bc(0x388)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option']('--description\x20<text>',a2_0x1dd5bc(0x404))[a2_0x1dd5bc(0x207)]('--rule\x20<json>',a2_0x1dd5bc(0x2b8))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x264),a2_0x1dd5bc(0x2c6))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x252),'Folder\x20name\x20for\x20organization')['option'](a2_0x1dd5bc(0x1f8),a2_0x1dd5bc(0x237))['option'](a2_0x1dd5bc(0x34b),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2d2),a2_0x1dd5bc(0x1f0))[a2_0x1dd5bc(0x450)](async(_0x750d50,_0x4b25c7)=>{const _0x175abf=a2_0x1dd5bc,_0x2437f3=new SegmentCreateCommand(),_0x2118d6=program[_0x175abf(0x389)](),_0x500cf4=await createTDXInstance(_0x2118d6),_0x37a629=await _0x2437f3[_0x175abf(0x32e)]({'options':{..._0x2118d6,..._0x4b25c7},'args':[_0x750d50],'tdx':_0x500cf4});gracefulExit(_0x37a629);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3b2),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x33b))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x40f),a2_0x1dd5bc(0x412))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),'Updated\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2f0),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x264),a2_0x1dd5bc(0x485))['option']('--folder\x20<name>',a2_0x1dd5bc(0x369))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1f8),a2_0x1dd5bc(0x237))[a2_0x1dd5bc(0x450)](async(_0xa36ca,_0x2bb104)=>{const _0x437c4c=a2_0x1dd5bc,_0x3045de=new SegmentUpdateCommand(),_0x2881c9=program[_0x437c4c(0x389)](),_0x49e316=await createTDXInstance(_0x2881c9),_0x42f320=await _0x3045de[_0x437c4c(0x32e)]({'options':{..._0x2881c9,..._0x2bb104},'args':[_0xa36ca],'tdx':_0x49e316});gracefulExit(_0x42f320);});const parentCmd=segmentCmd[a2_0x1dd5bc(0x284)]('parent',{'hidden':!![]})[a2_0x1dd5bc(0x388)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x517f1a,_0x84f7e)=>{const _0x33b398=new ParentSegmentListCommand(),_0x3e3343=program['opts'](),_0x2e5f09=await createTDXInstance(_0x3e3343),_0x1fb6ca=await _0x33b398['run']({'options':{..._0x3e3343,..._0x84f7e},'args':_0x517f1a?[_0x517f1a]:[],'tdx':_0x2e5f09});gracefulExit(_0x1fb6ca);};parentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x482))[a2_0x1dd5bc(0x450)](parentListAction),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x448),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x206))[a2_0x1dd5bc(0x450)](parentListAction),parentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x46e))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x208))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x31e),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x1dd5bc(0x450)](async(_0x5ba627,_0x5cd42a)=>{const _0x1f8216=a2_0x1dd5bc,_0x15fbff=new ParentSegmentPullCommand(),_0x3d1eff=program['opts'](),_0x4fe472=await createTDXInstance(_0x3d1eff),_0x1fe7df=await _0x15fbff[_0x1f8216(0x32e)]({'options':{..._0x3d1eff,..._0x5cd42a},'args':_0x5ba627?[_0x5ba627]:[],'tdx':_0x4fe472});gracefulExit(_0x1fe7df);}),parentCmd[a2_0x1dd5bc(0x284)]('push\x20[file]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x47c))[a2_0x1dd5bc(0x450)](async(_0x38eb5a,_0x2bb4d8)=>{const _0x1008c2=a2_0x1dd5bc,_0x6a144c=new ParentSegmentPushCommand(),_0x5a8ccd=program['opts'](),_0x2ea506=await createTDXInstance(_0x5a8ccd),_0x1b1f7d=await _0x6a144c[_0x1008c2(0x32e)]({'options':{..._0x5a8ccd,..._0x2bb4d8},'args':_0x38eb5a?[_0x38eb5a]:[],'tdx':_0x2ea506});gracefulExit(_0x1b1f7d);}),parentCmd['command'](a2_0x1dd5bc(0x333))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3e3))['option'](a2_0x1dd5bc(0x3a7),a2_0x1dd5bc(0x444))['option'](a2_0x1dd5bc(0x32d),a2_0x1dd5bc(0x226))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x435),a2_0x1dd5bc(0x354))[a2_0x1dd5bc(0x207)]('--enriched',a2_0x1dd5bc(0x26e))[a2_0x1dd5bc(0x207)]('--interval\x20<range>',a2_0x1dd5bc(0x23f),a2_0x1dd5bc(0x302))[a2_0x1dd5bc(0x450)](async(_0x22fca2,_0x632bb9)=>{const _0x2e769b=a2_0x1dd5bc,_0x560d93=new ParentSegmentValidateCommand(),_0x715f91=program[_0x2e769b(0x389)](),_0x562748=await createTDXInstance(_0x715f91),_0x1ef7f7=await _0x560d93[_0x2e769b(0x32e)]({'options':{..._0x715f91,..._0x632bb9},'args':_0x22fca2?[_0x22fca2]:[],'tdx':_0x562748});gracefulExit(_0x1ef7f7);}),parentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1ec))[a2_0x1dd5bc(0x388)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option'](a2_0x1dd5bc(0x3a7),a2_0x1dd5bc(0x222))['option'](a2_0x1dd5bc(0x32d),a2_0x1dd5bc(0x296))['option'](a2_0x1dd5bc(0x435),a2_0x1dd5bc(0x1be))[a2_0x1dd5bc(0x207)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x218),a2_0x1dd5bc(0x23f),'-1d')[a2_0x1dd5bc(0x450)](async(_0x3cd224,_0x3b3182)=>{const _0x3c8ca3=a2_0x1dd5bc,_0x545f84=new ParentSegmentPreviewCommand(),_0xde6540=program['opts'](),_0x541c54=await createTDXInstance(_0xde6540),_0x2e1bca=await _0x545f84[_0x3c8ca3(0x32e)]({'options':{..._0xde6540,..._0x3b3182},'args':_0x3cd224?[_0x3cd224]:[],'tdx':_0x541c54});gracefulExit(_0x2e1bca);}),parentCmd['command'](a2_0x1dd5bc(0x42d))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x41c))[a2_0x1dd5bc(0x450)](async(_0x2c2f0f,_0x5a418d)=>{const _0x10cd77=a2_0x1dd5bc,_0x5d1b21=new ParentSegmentRunCommand(),_0x52c32e=program[_0x10cd77(0x389)](),_0x18e912=await createTDXInstance(_0x52c32e),_0x5a22d2=await _0x5d1b21[_0x10cd77(0x32e)]({'options':{..._0x52c32e,..._0x5a418d},'args':_0x2c2f0f?[_0x2c2f0f]:[],'tdx':_0x18e912});gracefulExit(_0x5a22d2);});const parentSegmentCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x246))[a2_0x1dd5bc(0x393)]('ps')['description'](a2_0x1dd5bc(0x39d));parentSegmentCmd['command'](a2_0x1dd5bc(0x47b))['description'](a2_0x1dd5bc(0x482))[a2_0x1dd5bc(0x450)](parentListAction),parentSegmentCmd[a2_0x1dd5bc(0x284)]('pull\x20[name]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1eb))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x31e),a2_0x1dd5bc(0x406))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1b8),a2_0x1dd5bc(0x1d9))['action'](async(_0x542ad0,_0x197dcc)=>{const _0x3e5859=a2_0x1dd5bc,_0x3b7f8a=new ParentSegmentPullCommand(),_0x27ba86=program['opts'](),_0x1f565b=await createTDXInstance(_0x27ba86),_0x492a53=await _0x3b7f8a[_0x3e5859(0x32e)]({'options':{..._0x27ba86,..._0x197dcc},'args':_0x542ad0?[_0x542ad0]:[],'tdx':_0x1f565b});gracefulExit(_0x492a53);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x382))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x243))[a2_0x1dd5bc(0x450)](async(_0x528e71,_0x959571)=>{const _0x3ff1f4=a2_0x1dd5bc,_0x1a2c75=new ParentSegmentPushCommand(),_0x5781d1=program[_0x3ff1f4(0x389)](),_0x413e01=await createTDXInstance(_0x5781d1),_0x1dbff6=await _0x1a2c75[_0x3ff1f4(0x32e)]({'options':{..._0x5781d1,..._0x959571},'args':_0x528e71?[_0x528e71]:[],'tdx':_0x413e01});gracefulExit(_0x1dbff6);}),parentSegmentCmd['command']('validate\x20[name]')[a2_0x1dd5bc(0x388)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option']('--master',a2_0x1dd5bc(0x444))[a2_0x1dd5bc(0x207)]('--attribute\x20[name]',a2_0x1dd5bc(0x226))[a2_0x1dd5bc(0x207)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x27a),a2_0x1dd5bc(0x26e))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x218),a2_0x1dd5bc(0x23f),a2_0x1dd5bc(0x302))['action'](async(_0x4ad6c2,_0x234b81)=>{const _0x156b74=a2_0x1dd5bc,_0x2edadd=new ParentSegmentValidateCommand(),_0x407596=program[_0x156b74(0x389)](),_0x1f386e=await createTDXInstance(_0x407596),_0x36dfc4=await _0x2edadd[_0x156b74(0x32e)]({'options':{..._0x407596,..._0x234b81},'args':_0x4ad6c2?[_0x4ad6c2]:[],'tdx':_0x1f386e});gracefulExit(_0x36dfc4);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x33e))[a2_0x1dd5bc(0x388)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x1dd5bc(0x207)]('--master',a2_0x1dd5bc(0x222))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32d),a2_0x1dd5bc(0x296))['option'](a2_0x1dd5bc(0x435),a2_0x1dd5bc(0x1be))[a2_0x1dd5bc(0x207)]('--enriched',a2_0x1dd5bc(0x34a))[a2_0x1dd5bc(0x207)]('--interval\x20<range>',a2_0x1dd5bc(0x23f),a2_0x1dd5bc(0x302))[a2_0x1dd5bc(0x450)](async(_0x510fd5,_0xc90ea2)=>{const _0x53fc8d=a2_0x1dd5bc,_0x12efed=new ParentSegmentPreviewCommand(),_0x890476=program[_0x53fc8d(0x389)](),_0x5da241=await createTDXInstance(_0x890476),_0x3864da=await _0x12efed[_0x53fc8d(0x32e)]({'options':{..._0x890476,..._0xc90ea2},'args':_0x510fd5?[_0x510fd5]:[],'tdx':_0x5da241});gracefulExit(_0x3864da);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x42d))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x41c))[a2_0x1dd5bc(0x450)](async(_0x36174b,_0x4c0f1b)=>{const _0x2d5f94=a2_0x1dd5bc,_0x4e58ca=new ParentSegmentRunCommand(),_0x105419=program[_0x2d5f94(0x389)](),_0x508920=await createTDXInstance(_0x105419),_0xaba0a=await _0x4e58ca[_0x2d5f94(0x32e)]({'options':{..._0x105419,..._0x4c0f1b},'args':_0x36174b?[_0x36174b]:[],'tdx':_0x508920});gracefulExit(_0xaba0a);}),parentSegmentCmd['command'](a2_0x1dd5bc(0x339))[a2_0x1dd5bc(0x388)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x41b),a2_0x1dd5bc(0x1db))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3d0),a2_0x1dd5bc(0x1e9))[a2_0x1dd5bc(0x450)](async(_0x217c9c,_0x212738)=>{const _0x134d04=a2_0x1dd5bc,_0x41e859=new ParentSegmentFieldsCommand(),_0x476945=program[_0x134d04(0x389)](),_0x1abcc3=await createTDXInstance(_0x476945),_0x329101=await _0x41e859[_0x134d04(0x32e)]({'options':{..._0x476945,..._0x212738},'args':_0x217c9c?[_0x217c9c]:[],'tdx':_0x1abcc3});gracefulExit(_0x329101);}),parentSegmentCmd['command'](a2_0x1dd5bc(0x2c2))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x217))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32a),a2_0x1dd5bc(0x35b))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x41b),a2_0x1dd5bc(0x1db))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3d0),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x4ac7f7,_0x5ab9a6)=>{const _0x594d04=a2_0x1dd5bc,_0x4cd5af=new ParentSegmentViewCommand(),_0x3cd379=program[_0x594d04(0x389)](),_0x12eedc=await createTDXInstance(_0x3cd379),_0x2cee7f=await _0x4cd5af[_0x594d04(0x32e)]({'options':{..._0x3cd379,..._0x5ab9a6},'args':_0x4ac7f7?[_0x4ac7f7]:[],'tdx':_0x12eedc});gracefulExit(_0x2cee7f);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3a6))[a2_0x1dd5bc(0x388)]('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x31e),a2_0x1dd5bc(0x406))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x41b),a2_0x1dd5bc(0x1db))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3d0),a2_0x1dd5bc(0x1e9))[a2_0x1dd5bc(0x450)](async(_0x1be9f2,_0x1d003e)=>{const _0xf8af64=a2_0x1dd5bc,_0x305b5b=new ParentSegmentDescCommand(),_0x2ade36=program['opts'](),_0x41e07e=await createTDXInstance(_0x2ade36),_0x402305=await _0x305b5b[_0xf8af64(0x32e)]({'options':{..._0x2ade36,..._0x1d003e},'args':_0x1be9f2?[_0x1be9f2]:[],'tdx':_0x41e07e});gracefulExit(_0x402305);}),parentSegmentCmd[a2_0x1dd5bc(0x284)]('sql\x20[name]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3af))['option']('--json',a2_0x1dd5bc(0x1db))[a2_0x1dd5bc(0x207)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x1dd5bc(0x450)](async(_0xa30e9e,_0x9b11a5)=>{const _0x15d3a1=a2_0x1dd5bc,_0x4f5d35=new ParentSegmentSQLCommand(),_0x452cf2=program[_0x15d3a1(0x389)](),_0x1f80f7=await createTDXInstance(_0x452cf2),_0x47dafe=await _0x4f5d35[_0x15d3a1(0x32e)]({'options':{..._0x452cf2,..._0x9b11a5},'args':_0xa30e9e?[_0xa30e9e]:[],'tdx':_0x1f80f7});gracefulExit(_0x47dafe);}),parentSegmentCmd['command'](a2_0x1dd5bc(0x425))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x300))['option'](a2_0x1dd5bc(0x232),a2_0x1dd5bc(0x1bd))['option'](a2_0x1dd5bc(0x41b),'Output\x20as\x20JSON')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3d0),a2_0x1dd5bc(0x1e9))[a2_0x1dd5bc(0x450)](async(_0x4f2d02,_0x4b7124)=>{const _0xfef576=a2_0x1dd5bc,_0x247a6a=new ParentSegmentShowCommand(),_0x4a134a=program['opts'](),_0x1463be=await createTDXInstance(_0x4a134a),_0x8710c5=await _0x247a6a[_0xfef576(0x32e)]({'options':{..._0x4a134a,..._0x4b7124},'args':_0x4f2d02?[_0x4f2d02]:[],'tdx':_0x1463be});gracefulExit(_0x8710c5);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x45e))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x407))['action'](async(_0x26b8da,_0x206347)=>{const _0x5e5917=a2_0x1dd5bc,_0x4b81cf=new UseCommand(),_0x5916f4=program[_0x5e5917(0x389)](),_0x495595=_0x26b8da?[_0x5e5917(0x39f),_0x26b8da]:[],_0xf61817=await _0x4b81cf[_0x5e5917(0x32e)]({'options':{..._0x5916f4,..._0x206347},'args':_0x495595,'tdx':null});gracefulExit(_0xf61817);});const psRtCmd=parentSegmentCmd[a2_0x1dd5bc(0x284)]('rt')[a2_0x1dd5bc(0x388)]('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x1dd5bc(0x284)]('list\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x378))[a2_0x1dd5bc(0x450)](async(_0x3d57d0,_0x5ebda1)=>{const _0xd94d0b=a2_0x1dd5bc,_0x2896fa=new PSRtListCommand(),_0x2ab318=program[_0xd94d0b(0x389)](),_0x24f7b3=await createTDXInstance(_0x2ab318),_0x2eafbb=await _0x2896fa[_0xd94d0b(0x32e)]({'options':{..._0x2ab318,..._0x5ebda1},'args':_0x3d57d0?[_0x3d57d0]:[],'tdx':_0x24f7b3});gracefulExit(_0x2eafbb);}),psRtCmd['command'](a2_0x1dd5bc(0x1e1))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3dd))['action'](async(_0x3d4631,_0x3ef1ee)=>{const _0x48da55=a2_0x1dd5bc,_0x538b54=new PSRtValidateCommand(),_0x57a5c8=program['opts'](),_0xda06f1=await createTDXInstance(_0x57a5c8),_0x4589da=await _0x538b54[_0x48da55(0x32e)]({'options':{..._0x57a5c8,..._0x3ef1ee},'args':_0x3d4631?[_0x3d4631]:[],'tdx':_0xda06f1});gracefulExit(_0x4589da);});const parentRtCmd=parentCmd[a2_0x1dd5bc(0x284)]('rt',{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x39b));parentRtCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x378))[a2_0x1dd5bc(0x450)](async(_0x23cd15,_0xf8ddd1)=>{const _0x55a97f=new PSRtListCommand(),_0x339ecd=program['opts'](),_0x2ce3e0=await createTDXInstance(_0x339ecd),_0x949923=await _0x55a97f['run']({'options':{..._0x339ecd,..._0xf8ddd1},'args':_0x23cd15?[_0x23cd15]:[],'tdx':_0x2ce3e0});gracefulExit(_0x949923);}),parentRtCmd['command'](a2_0x1dd5bc(0x1e1))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3dd))[a2_0x1dd5bc(0x450)](async(_0x18a0a8,_0xdfcdfb)=>{const _0x4e15c6=a2_0x1dd5bc,_0x5d43ca=new PSRtValidateCommand(),_0x53129a=program[_0x4e15c6(0x389)](),_0x24b911=await createTDXInstance(_0x53129a),_0x30c422=await _0x5d43ca[_0x4e15c6(0x32e)]({'options':{..._0x53129a,..._0xdfcdfb},'args':_0x18a0a8?[_0x18a0a8]:[],'tdx':_0x24b911});gracefulExit(_0x30c422);});const psPzCmd=parentSegmentCmd['command']('pz')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2e8));psPzCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x330))[a2_0x1dd5bc(0x388)]('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1dd5bc(0x450)](async(_0x1f0e20,_0x24549d)=>{const _0x2b13e9=a2_0x1dd5bc,_0x150949=new PSPzListCommand(),_0x2800cd=program['opts'](),_0x2f68eb=await createTDXInstance(_0x2800cd),_0x202e43=await _0x150949[_0x2b13e9(0x32e)]({'options':{..._0x2800cd,..._0x24549d},'args':_0x1f0e20?[_0x1f0e20]:[],'tdx':_0x2f68eb});gracefulExit(_0x202e43);}),psPzCmd[a2_0x1dd5bc(0x284)]('init\x20[name]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x433))[a2_0x1dd5bc(0x450)](async(_0x34c63a,_0x23d200)=>{const _0x8b295c=a2_0x1dd5bc,_0x2db981=new PSPzInitCommand(),_0x14bd94=program['opts'](),_0x52b16c=await createTDXInstance(_0x14bd94),_0x3595ca=await _0x2db981[_0x8b295c(0x32e)]({'options':{..._0x14bd94,..._0x23d200},'args':_0x34c63a?[_0x34c63a]:[],'tdx':_0x52b16c});gracefulExit(_0x3595ca);});const parentPzCmd=parentCmd['command']('pz',{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2e8));parentPzCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x330))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x47a))[a2_0x1dd5bc(0x450)](async(_0x4312e6,_0x191fdd)=>{const _0x3a1cd7=a2_0x1dd5bc,_0x4ce7d6=new PSPzListCommand(),_0x387b53=program['opts'](),_0x356ba7=await createTDXInstance(_0x387b53),_0x2ea223=await _0x4ce7d6[_0x3a1cd7(0x32e)]({'options':{..._0x387b53,..._0x191fdd},'args':_0x4312e6?[_0x4312e6]:[],'tdx':_0x356ba7});gracefulExit(_0x2ea223);}),parentPzCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3ec))['description'](a2_0x1dd5bc(0x433))[a2_0x1dd5bc(0x450)](async(_0x3c2d4f,_0x174fba)=>{const _0x25928b=a2_0x1dd5bc,_0x15866f=new PSPzInitCommand(),_0x22416d=program[_0x25928b(0x389)](),_0xa0a470=await createTDXInstance(_0x22416d),_0x29753f=await _0x15866f[_0x25928b(0x32e)]({'options':{..._0x22416d,..._0x174fba},'args':_0x3c2d4f?[_0x3c2d4f]:[],'tdx':_0xa0a470});gracefulExit(_0x29753f);}),parentCmd['command'](a2_0x1dd5bc(0x1c6))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x42e))['requiredOption'](a2_0x1dd5bc(0x337),a2_0x1dd5bc(0x2e1))['requiredOption'](a2_0x1dd5bc(0x3b1),'Master\x20table\x20name')[a2_0x1dd5bc(0x207)]('--description\x20<text>','Parent\x20segment\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x224),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option']('--schedule-option\x20<value>',a2_0x1dd5bc(0x3c2))[a2_0x1dd5bc(0x207)]('--timezone\x20<tz>',a2_0x1dd5bc(0x338))[a2_0x1dd5bc(0x207)]('--attributes\x20<json>','Attributes\x20as\x20JSON\x20string')['option'](a2_0x1dd5bc(0x3ab),a2_0x1dd5bc(0x37d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x303),a2_0x1dd5bc(0x346))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x44e),'Behaviors\x20from\x20JSON\x20file')[a2_0x1dd5bc(0x207)]('--customer-group\x20<json>',a2_0x1dd5bc(0x442))['option'](a2_0x1dd5bc(0x27f),a2_0x1dd5bc(0x1fd))[a2_0x1dd5bc(0x450)](async(_0x536958,_0x3f81bf)=>{const _0x3ff015=a2_0x1dd5bc,_0x5dd41b=new ParentSegmentCreateCommand(),_0x5ea24b=program[_0x3ff015(0x389)](),_0x344b73=await createTDXInstance(_0x5ea24b),_0x25d224=await _0x5dd41b[_0x3ff015(0x32e)]({'options':{..._0x5ea24b,..._0x3f81bf},'args':[_0x536958],'tdx':_0x344b73});gracefulExit(_0x25d224);}),parentCmd[a2_0x1dd5bc(0x284)]('update\x20<name>')['description'](a2_0x1dd5bc(0x248))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),a2_0x1dd5bc(0x3f0))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x224),a2_0x1dd5bc(0x2bb))[a2_0x1dd5bc(0x207)]('--schedule-option\x20<value>',a2_0x1dd5bc(0x35c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3da),a2_0x1dd5bc(0x28e))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x472),a2_0x1dd5bc(0x1f4))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x44b),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x1dd5bc(0x207)]('--add-behaviors\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string')[a2_0x1dd5bc(0x207)]('--add-behaviors-file\x20<file>','Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x1dd5bc(0x450)](async(_0x31cb73,_0x5c2fca)=>{const _0xe6441b=a2_0x1dd5bc,_0x523052=new ParentSegmentUpdateCommand(),_0x2c11d3=program[_0xe6441b(0x389)](),_0x205018=await createTDXInstance(_0x2c11d3),_0x46003c=await _0x523052[_0xe6441b(0x32e)]({'options':{..._0x2c11d3,..._0x5c2fca},'args':[_0x31cb73],'tdx':_0x205018});gracefulExit(_0x46003c);}),folderCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x440))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2e9))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),'Folder\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x394),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x1dd5bc(0x450)](async(_0x108a18,_0xa26617,_0x5d2bfc)=>{const _0x3047bd=a2_0x1dd5bc,_0x50a92c=new SegmentFolderCreateCommand(),_0x2af802=program[_0x3047bd(0x389)](),_0x2a7c43=await createTDXInstance(_0x2af802),_0x53e7c5=await _0x50a92c[_0x3047bd(0x32e)]({'options':{..._0x2af802,..._0x5d2bfc},'args':[_0x108a18,_0xa26617],'tdx':_0x2a7c43});gracefulExit(_0x53e7c5);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x37a))['description'](a2_0x1dd5bc(0x1c0))[a2_0x1dd5bc(0x450)](async(_0x2fd59b,_0x827fec)=>{const _0x3eaa23=a2_0x1dd5bc,_0x133020=new ActivationsCommand(),_0x2f1336=program[_0x3eaa23(0x389)](),_0x16eca1=await createTDXInstance(_0x2f1336),_0x2c903c=await _0x133020['run']({'options':{..._0x2f1336,..._0x827fec},'args':[_0x2fd59b],'tdx':_0x16eca1});gracefulExit(_0x2c903c);});const workflowCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2fe))[a2_0x1dd5bc(0x393)]('wf')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3de)),wfProjectCmd=workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x36c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2e4)),wfProjectListAction=async(_0x2919db,_0x54173d)=>{const _0x55a061=a2_0x1dd5bc,_0x423078=new WorkflowProjectsCommand(),_0x275d86=program['opts'](),_0x4c1f7b=await createTDXInstance(_0x275d86),_0x4dceff=await _0x423078[_0x55a061(0x32e)]({'options':{..._0x275d86,..._0x54173d},'args':_0x2919db?[_0x2919db]:[],'tdx':_0x4c1f7b});gracefulExit(_0x4dceff);};wfProjectCmd[a2_0x1dd5bc(0x284)]('list\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2db))[a2_0x1dd5bc(0x450)](wfProjectListAction),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x430))[a2_0x1dd5bc(0x388)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x1dd5bc(0x450)](wfProjectListAction);const wfWorkflowListAction=async(_0x554b67,_0x1206a6)=>{const _0x30dc9b=a2_0x1dd5bc,_0x264f51=new WorkflowWorkflowsCommand(),_0x386767=program[_0x30dc9b(0x389)](),_0x39382e=await createTDXInstance(_0x386767),_0x37818b=await _0x264f51[_0x30dc9b(0x32e)]({'options':{..._0x386767,..._0x1206a6},'args':_0x554b67?[_0x554b67]:[],'tdx':_0x39382e});gracefulExit(_0x37818b);};workflowCmd['command']('workflows\x20[project]')[a2_0x1dd5bc(0x388)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x259))[a2_0x1dd5bc(0x388)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x32b3f5,_0x21eea0)=>{const _0x59ba40=a2_0x1dd5bc,_0x4e8a6b=new WorkflowSessionsCommand(),_0x4cccc6=program[_0x59ba40(0x389)](),_0x19f88d=await createTDXInstance(_0x4cccc6),_0x28d71f=await _0x4e8a6b[_0x59ba40(0x32e)]({'options':{..._0x4cccc6,..._0x21eea0},'args':_0x32b3f5?[_0x32b3f5]:[],'tdx':_0x19f88d});gracefulExit(_0x28d71f);};wfSessionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1bb))[a2_0x1dd5bc(0x388)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x469))[a2_0x1dd5bc(0x207)]('--from\x20<timestamp>',a2_0x1dd5bc(0x3b3))['option']('--to\x20<timestamp>',a2_0x1dd5bc(0x2fc))[a2_0x1dd5bc(0x450)](wfSessionListAction),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1f3))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x390))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2b5),a2_0x1dd5bc(0x3b3))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3cb),a2_0x1dd5bc(0x2fc))[a2_0x1dd5bc(0x450)](wfSessionListAction);const wfAttemptListAction=async(_0x53afa2,_0xaff811)=>{const _0x45d018=a2_0x1dd5bc,_0x5ada09=new WorkflowAttemptsCommand(),_0x509a50=program[_0x45d018(0x389)](),_0x26cbd9=await createTDXInstance(_0x509a50),_0x258ad1=await _0x5ada09[_0x45d018(0x32e)]({'options':{..._0x509a50,..._0xaff811},'args':_0x53afa2?[_0x53afa2]:[],'tdx':_0x26cbd9});gracefulExit(_0x258ad1);},attemptCmd=workflowCmd['command'](a2_0x1dd5bc(0x3ff))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2d8))[a2_0x1dd5bc(0x29f)](a2_0x1dd5bc(0x326),a2_0x1dd5bc(0x2b7))[a2_0x1dd5bc(0x29f)](a2_0x1dd5bc(0x257),a2_0x1dd5bc(0x363))[a2_0x1dd5bc(0x29f)](a2_0x1dd5bc(0x239),a2_0x1dd5bc(0x3a0))[a2_0x1dd5bc(0x207)]('--include-subtasks',a2_0x1dd5bc(0x3ce))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1ce),a2_0x1dd5bc(0x21d))['option']('--resume-from\x20<task>',a2_0x1dd5bc(0x366))['option'](a2_0x1dd5bc(0x254),a2_0x1dd5bc(0x1bc))['option']('--force','Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x22c),a2_0x1dd5bc(0x22a))[a2_0x1dd5bc(0x450)](async(_0x569f4a,_0xfd2c15,_0x456467,_0x2543cc)=>{const _0x205881=a2_0x1dd5bc;if(_0x569f4a==='list'){await wfAttemptListAction(_0xfd2c15,_0x2543cc);return;}if(!_0x569f4a){attemptCmd[_0x205881(0x38b)]();return;}const _0x4e5178=program[_0x205881(0x389)](),_0x398ad2=await createTDXInstance(_0x4e5178);let _0x1e0199=0x0;if(!_0xfd2c15){const _0xc9eaf3=new WorkflowAttemptCommand();_0x1e0199=await _0xc9eaf3[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':[_0x569f4a],'tdx':_0x398ad2});}else{if(_0xfd2c15===_0x205881(0x1f6)){const _0x13277e=new WorkflowLogsCommand();_0x1e0199=await _0x13277e[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':_0x456467?[_0x569f4a,_0x456467]:[_0x569f4a],'tdx':_0x398ad2});}else{if(_0xfd2c15===_0x205881(0x2d3)){const _0x40f657=new WorkflowTasksCommand();_0x1e0199=await _0x40f657[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':[_0x569f4a],'tdx':_0x398ad2});}else{if(_0xfd2c15===_0x205881(0x2a1)){const _0x43e4c5=new WorkflowKillCommand();_0x1e0199=await _0x43e4c5[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':[_0x569f4a],'tdx':_0x398ad2});}else{if(_0xfd2c15==='retry'){const _0x4fc02f=new WorkflowRetryCommand();_0x1e0199=await _0x4fc02f[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':['attempt:'+_0x569f4a],'tdx':_0x398ad2});}else console['error'](_0x205881(0x1d0)+_0xfd2c15),console[_0x205881(0x1e6)](_0x205881(0x3a9)),_0x1e0199=0x1;}}}}gracefulExit(_0x1e0199);});attemptCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1bb))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x45b))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x22c),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2c1))[a2_0x1dd5bc(0x388)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x22c),a2_0x1dd5bc(0x3c3))[a2_0x1dd5bc(0x450)](wfAttemptListAction),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x32c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ac))['option']('--follow',a2_0x1dd5bc(0x250))[a2_0x1dd5bc(0x207)]('--session-id\x20<id>','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3ba),a2_0x1dd5bc(0x47f))[a2_0x1dd5bc(0x450)](async(_0x31c2ba,_0x408f86)=>{const _0x5ee011=a2_0x1dd5bc,_0x13b3c6=new WorkflowTimelineCommand(),_0x1c4237=program[_0x5ee011(0x389)](),_0xeae387=await createTDXInstance(_0x1c4237),_0x5143c1=await _0x13b3c6['run']({'options':{..._0x1c4237,..._0x408f86},'args':_0x31c2ba?[_0x31c2ba]:[],'tdx':_0xeae387});gracefulExit(_0x5143c1);}),workflowCmd['command'](a2_0x1dd5bc(0x400))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1e2))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x270),'Resume\x20from\x20specific\x20task')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x254),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x1dd5bc(0x450)](async(_0x3d6c60,_0x4c8c3d)=>{const _0x44064f=a2_0x1dd5bc,_0x2f12db=new WorkflowRetryCommand(),_0x211064=program[_0x44064f(0x389)](),_0x9b9712=await createTDXInstance(_0x211064),_0x273a69=await _0x2f12db[_0x44064f(0x32e)]({'options':{..._0x211064,..._0x4c8c3d},'args':[_0x3d6c60],'tdx':_0x9b9712});gracefulExit(_0x273a69);}),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x41d))['description']('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)')['option']('--param\x20<key=value>',a2_0x1dd5bc(0x2c8),(_0x3e1420,_0x10bd3e=[])=>[..._0x10bd3e,_0x3e1420],[])['option'](a2_0x1dd5bc(0x40a),a2_0x1dd5bc(0x2e2))[a2_0x1dd5bc(0x450)](async(_0x5b13d9,_0x8a090b)=>{const _0x50a389=a2_0x1dd5bc,_0x185364=new WorkflowRunCommand(),_0x139c66=program[_0x50a389(0x389)](),_0x23b129=await createTDXInstance(_0x139c66),_0x5abb2a=await _0x185364[_0x50a389(0x32e)]({'options':{..._0x139c66,..._0x8a090b},'args':_0x5b13d9?[_0x5b13d9]:[],'tdx':_0x23b129});gracefulExit(_0x5abb2a);}),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x280))[a2_0x1dd5bc(0x388)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x3f7))[a2_0x1dd5bc(0x450)](async(_0x3481ec,_0x267482,_0x577db2)=>{const _0x4a42bf=a2_0x1dd5bc,_0x524e8b=new WorkflowDownloadCommand(),_0x229356=program[_0x4a42bf(0x389)](),_0x382823=await createTDXInstance(_0x229356),_0x545bf0=await _0x524e8b[_0x4a42bf(0x32e)]({'options':{..._0x229356,..._0x577db2},'args':[_0x3481ec,_0x267482||'.'],'tdx':_0x382823});gracefulExit(_0x545bf0);}),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x42b))[a2_0x1dd5bc(0x388)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x319))[a2_0x1dd5bc(0x207)]('--dry-run','Preview\x20changes\x20without\x20writing\x20files')[a2_0x1dd5bc(0x450)](async(_0x175529,_0x21dbe2,_0x86edc5)=>{const _0xf951d7=a2_0x1dd5bc,_0x2b2146=new WorkflowPullCommand(),_0x247111=program[_0xf951d7(0x389)](),_0xc9299d=await createTDXInstance(_0x247111),_0x4bdb3a=await _0x2b2146['run']({'options':{..._0x247111,..._0x86edc5},'args':_0x21dbe2?[_0x175529,_0x21dbe2]:[_0x175529],'tdx':_0xc9299d});gracefulExit(_0x4bdb3a);}),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x359))[a2_0x1dd5bc(0x388)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x24e))['option'](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x396))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x33d),a2_0x1dd5bc(0x417))[a2_0x1dd5bc(0x450)](async(_0x3c3a3c,_0x200209)=>{const _0x11630b=a2_0x1dd5bc,_0x13fa1a=new WorkflowPushCommand(),_0x51306a=program[_0x11630b(0x389)](),_0x3cd301=await createTDXInstance(_0x51306a),_0x84d66a=await _0x13fa1a[_0x11630b(0x32e)]({'options':{..._0x51306a,..._0x200209},'args':_0x3c3a3c?[_0x3c3a3c]:[],'tdx':_0x3cd301});gracefulExit(_0x84d66a);}),workflowCmd['command'](a2_0x1dd5bc(0x46d))['description'](a2_0x1dd5bc(0x455))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x25d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x3c9))['option'](a2_0x1dd5bc(0x33d),a2_0x1dd5bc(0x417))[a2_0x1dd5bc(0x450)](async(_0x2870d6,_0x7494f4)=>{const _0x1c5236=a2_0x1dd5bc,_0x318791=new WorkflowUploadCommand(),_0x3039a3=program[_0x1c5236(0x389)](),_0x3c6323=await createTDXInstance(_0x3039a3),_0x3ef2dc=await _0x318791[_0x1c5236(0x32e)]({'options':{..._0x3039a3,..._0x7494f4},'args':_0x2870d6?[_0x2870d6]:[],'tdx':_0x3c6323});gracefulExit(_0x3ef2dc);}),workflowCmd['command']('clone\x20[source-dir]')['description'](a2_0x1dd5bc(0x1de))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x24e))['option'](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x35d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x33d),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x34d087,_0x301eb5)=>{const _0x54056a=a2_0x1dd5bc,_0x540cd5=new WorkflowCloneCommand(),_0x3b9f30=program[_0x54056a(0x389)](),_0x2104a1=await createTDXInstance(_0x3b9f30),_0x4cd724=await _0x540cd5[_0x54056a(0x32e)]({'options':{..._0x3b9f30,..._0x301eb5},'args':_0x34d087?[_0x34d087]:[],'tdx':_0x2104a1});gracefulExit(_0x4cd724);}),workflowCmd['command'](a2_0x1dd5bc(0x1ef))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x24d))[a2_0x1dd5bc(0x450)](async(_0x59527e,_0x21d769)=>{const _0x2d4ba1=a2_0x1dd5bc,_0x6d1336=new WorkflowDeleteCommand(),_0x47d154=program[_0x2d4ba1(0x389)](),_0x235df0=await createTDXInstance(_0x47d154),_0x5761a0=await _0x6d1336[_0x2d4ba1(0x32e)]({'options':{..._0x47d154,..._0x21d769},'args':[_0x59527e],'tdx':_0x235df0});gracefulExit(_0x5761a0);}),workflowCmd['command'](a2_0x1dd5bc(0x323))['description'](a2_0x1dd5bc(0x245))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1fe),a2_0x1dd5bc(0x449))[a2_0x1dd5bc(0x450)](async(_0x56c0cf,_0x4ea8de)=>{const _0x1afcf1=a2_0x1dd5bc,_0x1d2cc2=new WorkflowUseCommand(),_0x4ebc2a=program[_0x1afcf1(0x389)](),_0xb4e30e=await createTDXInstance(_0x4ebc2a),_0x1bcbe5=await _0x1d2cc2[_0x1afcf1(0x32e)]({'options':{..._0x4ebc2a,..._0x4ea8de},'args':_0x56c0cf?[_0x56c0cf]:[],'tdx':_0xb4e30e});gracefulExit(_0x1bcbe5);});const wfSecretsCmd=workflowCmd[a2_0x1dd5bc(0x284)]('secrets')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x238));function a2_0xa400(_0x1adee6,_0x40bd21){_0x1adee6=_0x1adee6-0x1b6;const _0x1499d9=a2_0x1499();let _0xa40090=_0x1499d9[_0x1adee6];return _0xa40090;}wfSecretsCmd[a2_0x1dd5bc(0x284)]('list\x20[project]')['description'](a2_0x1dd5bc(0x3fd))[a2_0x1dd5bc(0x450)](async(_0x3329b6,_0x262081)=>{const _0x310fff=a2_0x1dd5bc,_0x2faf56=new WorkflowSecretsListCommand(),_0x211647=program[_0x310fff(0x389)](),_0x56d00b=await createTDXInstance(_0x211647),_0x15a328=await _0x2faf56['run']({'options':{..._0x211647,..._0x262081},'args':_0x3329b6?[_0x3329b6]:[],'tdx':_0x56d00b});gracefulExit(_0x15a328);}),wfSecretsCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x286))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x43a))['action'](async(_0x227a8c,_0x2b8fb7)=>{const _0x479461=a2_0x1dd5bc,_0x1b9901=new WorkflowSecretsSetCommand(),_0x442124=program[_0x479461(0x389)](),_0x48c667=await createTDXInstance(_0x442124),_0x283cff=await _0x1b9901[_0x479461(0x32e)]({'options':{..._0x442124,..._0x2b8fb7},'args':_0x227a8c,'tdx':_0x48c667});gracefulExit(_0x283cff);}),wfSecretsCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3d3))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x1dd5bc(0x450)](async(_0x2d9ebc,_0x702227)=>{const _0x2621f5=a2_0x1dd5bc,_0x15332e=new WorkflowSecretsDeleteCommand(),_0x289619=program[_0x2621f5(0x389)](),_0x5276c0=await createTDXInstance(_0x289619),_0x1f1f8b=await _0x15332e[_0x2621f5(0x32e)]({'options':{..._0x289619,..._0x702227},'args':_0x2d9ebc,'tdx':_0x5276c0});gracefulExit(_0x1f1f8b);});const jobCmd=program['command'](a2_0x1dd5bc(0x317))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x26d)),jobListAction=async _0x4c7c59=>{const _0x2ab505=a2_0x1dd5bc,_0x40bfa5=new JobListCommand(),_0x10aaa4=program[_0x2ab505(0x389)](),_0x2c2603=await createTDXInstance(_0x10aaa4),_0x2d091e=await _0x40bfa5[_0x2ab505(0x32e)]({'options':{..._0x10aaa4,..._0x4c7c59},'args':[],'tdx':_0x2c2603});gracefulExit(_0x2d091e);};jobCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47d))['description'](a2_0x1dd5bc(0x336))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x30e))[a2_0x1dd5bc(0x450)](jobListAction),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1fb),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x272))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x1dd5bc(0x450)](jobListAction),jobCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2d0))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x247))['action'](async(_0x17d8ac,_0x446149)=>{const _0x1b7cbf=a2_0x1dd5bc,_0x23d2f2=new JobShowCommand(),_0x5a28c6=program[_0x1b7cbf(0x389)](),_0x2c147f=await createTDXInstance(_0x5a28c6),_0x565d9b=await _0x23d2f2[_0x1b7cbf(0x32e)]({'options':{..._0x5a28c6,..._0x446149},'args':[_0x17d8ac],'tdx':_0x2c147f});gracefulExit(_0x565d9b);}),jobCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x423))[a2_0x1dd5bc(0x388)]('Kill\x20a\x20job')[a2_0x1dd5bc(0x450)](async(_0x54c400,_0x1da83c)=>{const _0x2c2b5=a2_0x1dd5bc,_0x109ec4=new JobKillCommand(),_0x3964b2=program[_0x2c2b5(0x389)](),_0x2aa7ae=await createTDXInstance(_0x3964b2),_0xb96c99=await _0x109ec4[_0x2c2b5(0x32e)]({'options':{..._0x3964b2,..._0x1da83c},'args':[_0x54c400],'tdx':_0x2aa7ae});gracefulExit(_0xb96c99);}),jobCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3c4))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2dc))[a2_0x1dd5bc(0x207)]('--job-type\x20<type>',a2_0x1dd5bc(0x322),a2_0x1dd5bc(0x223))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1ba),a2_0x1dd5bc(0x32f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1f7),'Database\x20name\x20(default:\x20information_schema)',a2_0x1dd5bc(0x432))['option'](a2_0x1dd5bc(0x258),a2_0x1dd5bc(0x20b))[a2_0x1dd5bc(0x450)](async(_0x455a95,_0x5e9328)=>{const _0x789fec=a2_0x1dd5bc,_0x3e926b=new JobSubmitCommand(),_0x3ac996=program['opts'](),_0x34bf37=await createTDXInstance(_0x3ac996),_0x543e81=await _0x3e926b[_0x789fec(0x32e)]({'options':{..._0x3ac996,..._0x5e9328},'args':_0x455a95?[_0x455a95]:[],'tdx':_0x34bf37});gracefulExit(_0x543e81);}),jobCmd[a2_0x1dd5bc(0x284)]('result\x20<job-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1f2))[a2_0x1dd5bc(0x450)](async(_0x386c3a,_0x42a9df)=>{const _0x99444c=a2_0x1dd5bc,_0x18ddb7=new JobResultCommand(),_0x191467=program['opts'](),_0x47edb5=await createTDXInstance(_0x191467),_0x58cff5=await _0x18ddb7[_0x99444c(0x32e)]({'options':{..._0x191467,..._0x42a9df},'args':[_0x386c3a],'tdx':_0x47edb5});gracefulExit(_0x58cff5);});const scheduleCmd=jobCmd['command'](a2_0x1dd5bc(0x39e))['description'](a2_0x1dd5bc(0x3f5));scheduleCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))['description'](a2_0x1dd5bc(0x47e))[a2_0x1dd5bc(0x450)](async(_0x3ca4ae,_0x1b29b9)=>{const _0x14f6ae=a2_0x1dd5bc,_0x5743aa=new ScheduleListCommand(),_0x13bc46=program[_0x14f6ae(0x389)](),_0x79d5a5=await createTDXInstance(_0x13bc46),_0x2e4149=await _0x5743aa['run']({'options':{..._0x13bc46,..._0x1b29b9},'args':_0x3ca4ae?[_0x3ca4ae]:[],'tdx':_0x79d5a5});gracefulExit(_0x2e4149);}),scheduleCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x41f))['description'](a2_0x1dd5bc(0x275))[a2_0x1dd5bc(0x450)](async(_0x2d0d53,_0x16ea0a)=>{const _0x59db48=a2_0x1dd5bc,_0xba084d=new ScheduleShowCommand(),_0x32d12e=program['opts'](),_0x500eaf=await createTDXInstance(_0x32d12e),_0x3b853a=await _0xba084d[_0x59db48(0x32e)]({'options':{..._0x32d12e,..._0x16ea0a},'args':[_0x2d0d53],'tdx':_0x500eaf});gracefulExit(_0x3b853a);}),scheduleCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1c6))[a2_0x1dd5bc(0x388)]('Create\x20a\x20scheduled\x20query')[a2_0x1dd5bc(0x207)]('-d,\x20--database\x20<db>','Database\x20name\x20(required)')[a2_0x1dd5bc(0x207)]('--in\x20<db>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1dd5bc(0x2c5)]('-f,\x20--file\x20<path>',a2_0x1dd5bc(0x32f))['option'](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x2f8),'trino')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c1),a2_0x1dd5bc(0x3e0))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3da),a2_0x1dd5bc(0x256))['option'](a2_0x1dd5bc(0x21b),a2_0x1dd5bc(0x221))['option'](a2_0x1dd5bc(0x274),a2_0x1dd5bc(0x29b))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x373),a2_0x1dd5bc(0x2dd))[a2_0x1dd5bc(0x207)]('--engine-version\x20<version>','Query\x20engine\x20version')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x45d),a2_0x1dd5bc(0x269))['action'](async(_0x4d5af8,_0x35d0f1)=>{const _0x4aa506=a2_0x1dd5bc,_0x15c5d1=new ScheduleCreateCommand(),_0x484697=program['opts'](),_0x1235e1=await createTDXInstance(_0x484697);_0x35d0f1['in']&&(_0x35d0f1[_0x4aa506(0x23e)]=_0x35d0f1['in']);const _0x38c1a4=await _0x15c5d1[_0x4aa506(0x32e)]({'options':{..._0x484697,..._0x35d0f1},'args':[_0x4d5af8],'tdx':_0x1235e1});gracefulExit(_0x38c1a4);}),scheduleCmd['command'](a2_0x1dd5bc(0x25a))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x361))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1dc),a2_0x1dd5bc(0x409))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x460),a2_0x1dd5bc(0x464))[a2_0x1dd5bc(0x207)]('-f,\x20--file\x20<path>',a2_0x1dd5bc(0x32f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x2f8))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c1),a2_0x1dd5bc(0x3e0))[a2_0x1dd5bc(0x207)]('--timezone\x20<tz>',a2_0x1dd5bc(0x38c))['option'](a2_0x1dd5bc(0x21b),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x274),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x373),a2_0x1dd5bc(0x2dd))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x468),a2_0x1dd5bc(0x2a9))['option']('--result\x20<url>',a2_0x1dd5bc(0x269))['action'](async(_0x5536a4,_0x4b35d9)=>{const _0x3b20cf=a2_0x1dd5bc,_0x34361e=new ScheduleUpdateCommand(),_0x3d42cf=program[_0x3b20cf(0x389)](),_0x36c037=await createTDXInstance(_0x3d42cf);_0x4b35d9['in']&&(_0x4b35d9[_0x3b20cf(0x23e)]=_0x4b35d9['in']);const _0x3e568a=await _0x34361e[_0x3b20cf(0x32e)]({'options':{..._0x3d42cf,..._0x4b35d9},'args':[_0x5536a4],'tdx':_0x36c037});gracefulExit(_0x3e568a);}),scheduleCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x38a))['description'](a2_0x1dd5bc(0x429))[a2_0x1dd5bc(0x450)](async(_0x4fb190,_0x328e88)=>{const _0x2b5f99=a2_0x1dd5bc,_0x52c341=new ScheduleDeleteCommand(),_0x598c62=program[_0x2b5f99(0x389)](),_0x59e310=await createTDXInstance(_0x598c62),_0x114d55=await _0x52c341[_0x2b5f99(0x32e)]({'options':{..._0x598c62,..._0x328e88},'args':[_0x4fb190],'tdx':_0x59e310});gracefulExit(_0x114d55);}),scheduleCmd[a2_0x1dd5bc(0x284)]('run\x20<name>')['description'](a2_0x1dd5bc(0x360))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x253),a2_0x1dd5bc(0x3c7))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x447),a2_0x1dd5bc(0x310))[a2_0x1dd5bc(0x450)](async(_0x31b75e,_0x33c52b)=>{const _0x20ca80=a2_0x1dd5bc,_0x197f6b=new ScheduleRunCommand(),_0x1f21ce=program[_0x20ca80(0x389)](),_0x353b49=await createTDXInstance(_0x1f21ce),_0x941056=await _0x197f6b[_0x20ca80(0x32e)]({'options':{..._0x1f21ce,..._0x33c52b},'args':[_0x31b75e],'tdx':_0x353b49});gracefulExit(_0x941056);}),scheduleCmd['command'](a2_0x1dd5bc(0x391))[a2_0x1dd5bc(0x388)]('Show\x20schedule\x20execution\x20history')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x309),a2_0x1dd5bc(0x230))['option'](a2_0x1dd5bc(0x36f),a2_0x1dd5bc(0x1b7))[a2_0x1dd5bc(0x450)](async(_0x501374,_0x13efce)=>{const _0x39f9dc=a2_0x1dd5bc,_0x527951=new ScheduleHistoryCommand(),_0x1f11a1=program[_0x39f9dc(0x389)](),_0x50cbb6=await createTDXInstance(_0x1f11a1),_0x4cfc6e=await _0x527951[_0x39f9dc(0x32e)]({'options':{..._0x1f11a1,..._0x13efce},'args':[_0x501374],'tdx':_0x50cbb6});gracefulExit(_0x4cfc6e);});const llmCmd=program[a2_0x1dd5bc(0x284)]('llm')[a2_0x1dd5bc(0x388)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2bf))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3b4))[a2_0x1dd5bc(0x450)](async(_0x42c8ff,_0x2d87fa)=>{const _0x51498d=a2_0x1dd5bc,_0xb38c72=new LLMUseCommand(),_0x3b38d4=program[_0x51498d(0x389)](),_0x3b2ae6=await createTDXInstance(_0x3b38d4),_0x1030e5=await _0xb38c72[_0x51498d(0x32e)]({'options':{..._0x3b38d4,..._0x2d87fa},'args':[_0x42c8ff],'tdx':_0x3b2ae6});gracefulExit(_0x1030e5);}),llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x25c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3c6))[a2_0x1dd5bc(0x450)](async _0xe36c1a=>{const _0x2ddb8b=a2_0x1dd5bc,_0x45a819=new LLMModelsCommand(),_0x411e5b=program[_0x2ddb8b(0x389)](),_0xcf04e2=await createTDXInstance(_0x411e5b),_0x563d03=await _0x45a819[_0x2ddb8b(0x32e)]({'options':{..._0x411e5b,..._0xe36c1a},'args':[],'tdx':_0xcf04e2});gracefulExit(_0x563d03);});const projectCmd=llmCmd['command'](a2_0x1dd5bc(0x36c))[a2_0x1dd5bc(0x388)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x39fb36,_0xd6e4b6)=>{const _0xdabc13=a2_0x1dd5bc,_0x1cdd48=new LLMProjectsCommand(),_0x57d0b4=program[_0xdabc13(0x389)](),_0x552fdf=await createTDXInstance(_0x57d0b4),_0x24a985=await _0x1cdd48[_0xdabc13(0x32e)]({'options':{..._0x57d0b4,..._0xd6e4b6},'args':_0x39fb36?[_0x39fb36]:[],'tdx':_0x552fdf});gracefulExit(_0x24a985);};projectCmd['command'](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x375))[a2_0x1dd5bc(0x450)](llmProjectListAction),llmCmd[a2_0x1dd5bc(0x284)]('projects\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x403))[a2_0x1dd5bc(0x450)](llmProjectListAction),projectCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1c6))['description']('Create\x20a\x20new\x20LLM\x20project')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),a2_0x1dd5bc(0x1c5))[a2_0x1dd5bc(0x450)](async(_0x5ba08a,_0x1e47ad)=>{const _0x43b099=a2_0x1dd5bc,_0xcbc92e=new LLMProjectCreateCommand(),_0x59fc8b=program['opts'](),_0x5775c1=await createTDXInstance(_0x59fc8b),_0x499952=await _0xcbc92e[_0x43b099(0x32e)]({'options':{..._0x59fc8b,..._0x1e47ad},'args':[_0x5ba08a],'tdx':_0x5775c1});gracefulExit(_0x499952);}),projectCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x38a))['description'](a2_0x1dd5bc(0x316))['action'](async(_0x45bb41,_0x1147b4)=>{const _0x133381=a2_0x1dd5bc,_0x21518e=new LLMProjectDeleteCommand(),_0x4a5e2d=program[_0x133381(0x389)](),_0x188a68=await createTDXInstance(_0x4a5e2d),_0x566ea4=await _0x21518e[_0x133381(0x32e)]({'options':{..._0x4a5e2d,..._0x1147b4},'args':[_0x45bb41],'tdx':_0x188a68});gracefulExit(_0x566ea4);}),projectCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2d4))['description'](a2_0x1dd5bc(0x44c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x44a),a2_0x1dd5bc(0x3a5))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x2ea))[a2_0x1dd5bc(0x450)](async(_0x4d127e,_0x31c530)=>{const _0x2e17d0=a2_0x1dd5bc,_0x5328c7=new LLMProjectBackupCommand(),_0x35b487=program[_0x2e17d0(0x389)](),_0x3099d4=await createTDXInstance(_0x35b487),_0x33f6e6=await _0x5328c7[_0x2e17d0(0x32e)]({'options':{..._0x35b487,..._0x31c530},'args':[_0x4d127e],'tdx':_0x3099d4});gracefulExit(_0x33f6e6);}),projectCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3fb))[a2_0x1dd5bc(0x388)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x343),a2_0x1dd5bc(0x3d5))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x1dd))[a2_0x1dd5bc(0x450)](async(_0x357b60,_0x3e0bde)=>{const _0x2f42cf=a2_0x1dd5bc,_0x35077f=new LLMProjectRestoreCommand(),_0x4ae45c=program[_0x2f42cf(0x389)](),_0x115e54=await createTDXInstance(_0x4ae45c),_0x3d36d0=await _0x35077f[_0x2f42cf(0x32e)]({'options':{..._0x4ae45c,..._0x3e0bde},'args':[_0x357b60],'tdx':_0x115e54});gracefulExit(_0x3d36d0);});const llmAgentListAction=async(_0x4fa3f1,_0x1892dc)=>{const _0x1b858d=a2_0x1dd5bc,_0xd0d141=new LLMAgentsCommand(),_0x2946fa=program[_0x1b858d(0x389)](),_0x594e21=await createTDXInstance(_0x2946fa),_0x2d7a5f=await _0xd0d141[_0x1b858d(0x32e)]({'options':{..._0x2946fa,..._0x1892dc},'args':_0x4fa3f1?[_0x4fa3f1]:[],'tdx':_0x594e21});gracefulExit(_0x2d7a5f);};llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2bc))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1fc))['action'](llmAgentListAction),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2bc))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1fc))['action'](llmAgentListAction),llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1e5))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x201))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3ae),a2_0x1dd5bc(0x30b))[a2_0x1dd5bc(0x450)](async(_0x9f91cc,_0x56908c)=>{const _0x56b1ff=a2_0x1dd5bc,_0x30522d=new LLMHistoryCommand(),_0x573b62=program['opts'](),_0xbcd513=await createTDXInstance(_0x573b62),_0x5136c1=await _0x30522d[_0x56b1ff(0x32e)]({'options':{..._0x573b62,..._0x56908c},'args':_0x9f91cc?[_0x9f91cc]:[],'tdx':_0xbcd513});gracefulExit(_0x5136c1);});isExperimentalAvailable()&&llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x431))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x34d))['action'](async(_0x403d94,_0x189e0d)=>{const _0x376411=a2_0x1dd5bc,_0x1749c2=new LLMLogCommand(),_0x169f80=program['opts'](),_0x1c52f4=await createTDXInstance(_0x169f80),_0x414f4f=await _0x1749c2[_0x376411(0x32e)]({'options':{..._0x169f80,..._0x189e0d},'args':[_0x403d94],'tdx':_0x1c52f4});gracefulExit(_0x414f4f);});program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x453))[a2_0x1dd5bc(0x3ad)]('[options]\x20--\x20[claude-code-args...]')[a2_0x1dd5bc(0x388)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2ae),a2_0x1dd5bc(0x27b))['option']('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1d4),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x1dd5bc(0x265)]()[a2_0x1dd5bc(0x371)](!![])[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),a2_0x1dd5bc(0x405))[a2_0x1dd5bc(0x450)](async(_0x339ba3,_0x4baa3c)=>{const _0x658a57=a2_0x1dd5bc,_0x67d5b=program['opts'](),_0x246ce3=Array['isArray'](_0x339ba3)?_0x339ba3:[];if(_0x246ce3[0x0]===_0x658a57(0x3e2)){const _0x31d723=new ClaudeStatuslineCommand(),_0x1c1a1f=await _0x31d723['run']({'options':{..._0x67d5b,..._0x4baa3c},'args':_0x246ce3[_0x658a57(0x289)](0x1),'tdx':null});gracefulExit(_0x1c1a1f);}if(_0x246ce3[0x0]===_0x658a57(0x3ad)){const _0x344db8=new ClaudeUsageCommand(),_0x5724a4=await _0x344db8[_0x658a57(0x32e)]({'options':{..._0x67d5b,..._0x4baa3c},'args':_0x246ce3[_0x658a57(0x289)](0x1),'tdx':null});gracefulExit(_0x5724a4);}const _0x33bd0e=new ClaudeCommand(),_0x56a9fb=await createTDXInstance(_0x67d5b),_0x5b25f8=await _0x33bd0e[_0x658a57(0x32e)]({'options':{..._0x67d5b,..._0x4baa3c},'args':_0x246ce3,'tdx':_0x56a9fb});gracefulExit(_0x5b25f8);}),program[a2_0x1dd5bc(0x284)]('use\x20[resource]\x20[value]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x205))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1fe),a2_0x1dd5bc(0x3ed))['option'](a2_0x1dd5bc(0x233),a2_0x1dd5bc(0x328))[a2_0x1dd5bc(0x450)](async(_0xed8d3e,_0x4a6f49,_0x5124a0)=>{const _0x1e5411=a2_0x1dd5bc,_0x3b681b=new UseCommand(),_0xae505a=program[_0x1e5411(0x389)](),_0x23aa83=[];if(_0xed8d3e)_0x23aa83[_0x1e5411(0x416)](_0xed8d3e);if(_0x4a6f49)_0x23aa83['push'](_0x4a6f49);const _0xdf2fc=_0xed8d3e===_0x1e5411(0x350),_0x26f099=_0xdf2fc?await createTDXInstance(_0xae505a):null,_0x1003fe=await _0x3b681b[_0x1e5411(0x32e)]({'options':{..._0xae505a,..._0x5124a0},'args':_0x23aa83,'tdx':_0x26f099});gracefulExit(_0x1003fe);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x45f))['description'](a2_0x1dd5bc(0x321))[a2_0x1dd5bc(0x450)](async _0x3cb2eb=>{const _0x5eee56=a2_0x1dd5bc,_0x255db2=new StatusCommand(),_0x579f77=program['opts'](),_0x2626a5=await createTDXInstance(_0x579f77),_0x38263a=await _0x255db2[_0x5eee56(0x32e)]({'options':{..._0x579f77,..._0x3cb2eb},'args':[],'tdx':_0x2626a5});gracefulExit(_0x38263a);}),program['command'](a2_0x1dd5bc(0x38d))[a2_0x1dd5bc(0x388)]('Upgrade\x20tdx\x20to\x20the\x20latest\x20version')[a2_0x1dd5bc(0x207)]('--dry-run','Check\x20for\x20updates\x20without\x20installing')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3f8),a2_0x1dd5bc(0x43c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x35f),a2_0x1dd5bc(0x35a))[a2_0x1dd5bc(0x450)](async(_0x1a0a09,_0x51fb25)=>{const _0x2c8864=a2_0x1dd5bc,_0x13ab5d=new UpgradeCommand(),_0xae932b=program['opts'](),_0x2d410d=await _0x13ab5d[_0x2c8864(0x32e)]({'options':{..._0xae932b,..._0x51fb25},'args':_0x1a0a09?[_0x1a0a09]:[],'tdx':null});gracefulExit(_0x2d410d);}),program['command'](a2_0x1dd5bc(0x398))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x37f))['option'](a2_0x1dd5bc(0x233),a2_0x1dd5bc(0x1cf))[a2_0x1dd5bc(0x450)](async(_0x5f4fa6,_0x32a648)=>{const _0x318351=a2_0x1dd5bc,_0x1e9dbd=new UnsetCommand(),_0x3d76b7=program[_0x318351(0x389)](),_0x2d9e9c=await _0x1e9dbd['run']({'options':{..._0x3d76b7,..._0x32a648},'args':[_0x5f4fa6],'tdx':null});gracefulExit(_0x2d9e9c);}),program['command'](a2_0x1dd5bc(0x355))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3bd))['option']('--last',a2_0x1dd5bc(0x3e7))[a2_0x1dd5bc(0x450)](async _0x2ac51c=>{const _0x1be24f=a2_0x1dd5bc,_0x47638c=new ChatsCommand(),_0x415740=program['opts'](),_0x4f1b17=await createTDXInstance(_0x415740),_0x549e28=await _0x47638c[_0x1be24f(0x32e)]({'options':{..._0x415740,..._0x2ac51c},'args':[],'tdx':_0x4f1b17});gracefulExit(_0x549e28);});const authCmd=program['command']('auth')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x202));async function runAuthStatusCommand(_0x5a0f5a){const _0x2438fc=a2_0x1dd5bc,_0x420340=new AuthStatusCommand(),_0x2da9df=program['opts'](),_0x1c51e1=await createTDXInstance(_0x2da9df),_0x544c43=await _0x420340[_0x2438fc(0x32e)]({'options':{..._0x2da9df,..._0x5a0f5a},'args':[],'tdx':_0x1c51e1});gracefulExit(_0x544c43);}authCmd[a2_0x1dd5bc(0x450)](runAuthStatusCommand),authCmd[a2_0x1dd5bc(0x284)]('status')[a2_0x1dd5bc(0x388)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x1dd5bc(0x450)](runAuthStatusCommand),authCmd['command']('setup')[a2_0x1dd5bc(0x388)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),a2_0x1dd5bc(0x318))[a2_0x1dd5bc(0x450)](async _0x4f4934=>{const _0x543f67=a2_0x1dd5bc,_0x5ae70a=new AuthSetupCommand(),_0x4ad27=program[_0x543f67(0x389)](),_0x1860ba=await createTDXInstance(_0x4ad27),_0x5b61d7=await _0x5ae70a[_0x543f67(0x32e)]({'options':{..._0x4ad27,..._0x4f4934},'args':[],'tdx':_0x1860ba});gracefulExit(_0x5b61d7);}),authCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x486))[a2_0x1dd5bc(0x388)]('Login\x20via\x20OAuth\x20(dev\x20sites\x20only)')[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20OAuth\x20tokens\x20to\x20profile-specific\x20keychain)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20OAuth\x20login\x20for\x20default\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--site\x20ap01\x20\x20\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20for\x20Japan\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--profile\x20dev\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20saved\x20to\x20\x27dev\x27\x20profile\x0a')[a2_0x1dd5bc(0x450)](async _0x128079=>{const _0x5b8384=a2_0x1dd5bc,_0x1171d4=new AuthLoginCommand(),_0x1d3de0=program[_0x5b8384(0x389)](),_0x493b63=await _0x1171d4[_0x5b8384(0x32e)]({'options':{..._0x1d3de0,..._0x128079},'args':[],'tdx':null});gracefulExit(_0x493b63);}),authCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x28f))['description'](a2_0x1dd5bc(0x340))[a2_0x1dd5bc(0x25f)]('after',a2_0x1dd5bc(0x479))[a2_0x1dd5bc(0x450)](async _0x57ae93=>{const _0x399612=a2_0x1dd5bc,_0x39401a=new AuthClearCommand(),_0x3ee40a=program[_0x399612(0x389)](),_0x672045=await _0x39401a['run']({'options':{..._0x3ee40a,..._0x57ae93},'args':[],'tdx':null});gracefulExit(_0x672045);});const userCmd=program[a2_0x1dd5bc(0x284)]('user')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x312)),userListAction=async _0x2e4190=>{const _0x1d9c91=a2_0x1dd5bc,_0x54fc88=new UserListCommand(),_0x522391=program[_0x1d9c91(0x389)](),_0x1da8c8=await createTDXInstance(_0x522391),_0x3751c3=await _0x54fc88[_0x1d9c91(0x32e)]({'options':{..._0x522391,..._0x2e4190},'args':[],'tdx':_0x1da8c8});gracefulExit(_0x3751c3);};userCmd[a2_0x1dd5bc(0x450)](async _0xa5731d=>{const _0x485cfb=a2_0x1dd5bc,_0x83506d=new UserCommand(),_0x3a0c5a=program[_0x485cfb(0x389)](),_0x1e2761=await createTDXInstance(_0x3a0c5a),_0x30e5a8=await _0x83506d[_0x485cfb(0x32e)]({'options':{..._0x3a0c5a,..._0xa5731d},'args':[],'tdx':_0x1e2761});gracefulExit(_0x30e5a8);}),userCmd[a2_0x1dd5bc(0x284)]('list')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f7))[a2_0x1dd5bc(0x450)](userListAction),program[a2_0x1dd5bc(0x284)]('users')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ee))[a2_0x1dd5bc(0x450)](userListAction);const policyCmd=program['command'](a2_0x1dd5bc(0x219))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x211));policyCmd[a2_0x1dd5bc(0x450)](async _0x59cac5=>{const _0x3c02c3=a2_0x1dd5bc,_0x2c2c9b=new PolicyCommand(),_0x1b0466=program[_0x3c02c3(0x389)](),_0x4e9394=await createTDXInstance(_0x1b0466),_0x52145a=await _0x2c2c9b[_0x3c02c3(0x32e)]({'options':{..._0x1b0466,..._0x59cac5},'args':[],'tdx':_0x4e9394});gracefulExit(_0x52145a);}),policyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47d))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x22f))[a2_0x1dd5bc(0x450)](async _0x163f29=>{const _0x517330=a2_0x1dd5bc,_0x2608ff=new PolicyListCommand(),_0x4797b2=program[_0x517330(0x389)](),_0x26e98a=await createTDXInstance(_0x4797b2),_0x5dd5ff=await _0x2608ff[_0x517330(0x32e)]({'options':{..._0x4797b2,..._0x163f29},'args':[],'tdx':_0x26e98a});gracefulExit(_0x5dd5ff);}),policyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x381))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x48b))['action'](async(_0x425d58,_0x31ae76)=>{const _0x39876b=a2_0x1dd5bc,_0x57cc02=new PolicyShowCommand(),_0x4f2a1b=program[_0x39876b(0x389)](),_0x38e34e=await createTDXInstance(_0x4f2a1b),_0x3ee5bb=await _0x57cc02[_0x39876b(0x32e)]({'options':{..._0x4f2a1b,..._0x31ae76},'args':[_0x425d58],'tdx':_0x38e34e});gracefulExit(_0x3ee5bb);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3a2))[a2_0x1dd5bc(0x388)]('List\x20all\x20available\x20profiles')[a2_0x1dd5bc(0x450)](async _0x4842e1=>{const _0x434dfc=a2_0x1dd5bc,_0x22afc4=new ProfilesCommand(),_0x59dfb5=program[_0x434dfc(0x389)](),_0x395475=await _0x22afc4[_0x434dfc(0x32e)]({'options':{..._0x59dfb5,..._0x4842e1},'args':[],'tdx':null});gracefulExit(_0x395475);});const profileCmd=program[a2_0x1dd5bc(0x284)]('profile')['description'](a2_0x1dd5bc(0x33c));profileCmd[a2_0x1dd5bc(0x450)](()=>{const _0x116a84=a2_0x1dd5bc;profileCmd[_0x116a84(0x341)]();});const profileListAction=async _0x836550=>{const _0x218ded=a2_0x1dd5bc,_0x8b16fd=new ProfilesCommand(),_0x5c6f80=program[_0x218ded(0x389)](),_0x3a0364=await _0x8b16fd[_0x218ded(0x32e)]({'options':{..._0x5c6f80,..._0x836550},'args':[],'tdx':null});gracefulExit(_0x3a0364);};profileCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47d))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x34f))['action'](profileListAction),profileCmd[a2_0x1dd5bc(0x284)]('create\x20[name]')['description'](a2_0x1dd5bc(0x273))[a2_0x1dd5bc(0x25f)]('after',a2_0x1dd5bc(0x291))['action'](async(_0x11d8a7,_0xdf1f87)=>{const _0x18dffc=a2_0x1dd5bc,_0x118791=new ProfileCreateCommand(),_0x5854b3=program[_0x18dffc(0x389)](),_0x7537a3=await _0x118791[_0x18dffc(0x32e)]({'options':{..._0x5854b3,..._0xdf1f87},'args':_0x11d8a7?[_0x11d8a7]:[],'tdx':null});gracefulExit(_0x7537a3);}),profileCmd[a2_0x1dd5bc(0x284)]('remove\x20<name>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x41e))[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),a2_0x1dd5bc(0x3ea))[a2_0x1dd5bc(0x450)](async(_0x556520,_0x1bbf3f)=>{const _0x327035=a2_0x1dd5bc,_0x4d1d4e=new ProfileRemoveCommand(),_0x3cf3d0=program['opts'](),_0xc4d84e=await _0x4d1d4e[_0x327035(0x32e)]({'options':{..._0x3cf3d0,..._0x1bbf3f},'args':[_0x556520],'tdx':null});gracefulExit(_0xc4d84e);}),profileCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x27e))['description'](a2_0x1dd5bc(0x31c))[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),'\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=ap01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x1dd5bc(0x450)](async(_0x4f4ed2,_0x3eb615)=>{const _0x36e4c3=a2_0x1dd5bc,_0x593f02=new ProfileSetCommand(),_0x47f44c=program[_0x36e4c3(0x389)](),_0x274fab=await _0x593f02['run']({'options':{..._0x47f44c,..._0x3eb615},'args':[_0x4f4ed2],'tdx':null});gracefulExit(_0x274fab);}),profileCmd['command'](a2_0x1dd5bc(0x3f6))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2a8))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x233),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')['addHelpText'](a2_0x1dd5bc(0x287),a2_0x1dd5bc(0x427))[a2_0x1dd5bc(0x450)](async(_0x1cf69e,_0x1ca33c)=>{const _0x39471c=a2_0x1dd5bc,_0x990847=new ProfileUseCommand(),_0x5ed74a=program[_0x39471c(0x389)](),_0x2a01d0=await _0x990847[_0x39471c(0x32e)]({'options':{..._0x5ed74a,..._0x1ca33c},'args':[_0x1cf69e],'tdx':null});gracefulExit(_0x2a01d0);});const engageCmd=program[a2_0x1dd5bc(0x284)]('engage')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2b2)),createEngageAction=_0x3b7c31=>{return async(_0x3ba7f7,_0x4bfbe5)=>{const _0x5ae297=a2_0xa400,_0x43b924=new _0x3b7c31(),_0x42aa95=program[_0x5ae297(0x389)](),_0x530010=await createTDXInstance(_0x42aa95),_0x445626=await _0x43b924['run']({'options':{..._0x42aa95,..._0x4bfbe5},'args':[_0x3ba7f7],'tdx':_0x530010});gracefulExit(_0x445626);};},createEngageNoArgAction=_0x5aecbd=>{return async _0xb9305d=>{const _0x395c23=a2_0xa400,_0x156b8e=new _0x5aecbd(),_0x55af8b=program[_0x395c23(0x389)](),_0x4437b4=await createTDXInstance(_0x55af8b),_0x47b4d0=await _0x156b8e[_0x395c23(0x32e)]({'options':{..._0x55af8b,..._0xb9305d},'args':[],'tdx':_0x4437b4});gracefulExit(_0x47b4d0);};},createEngageListAction=_0x80fa07=>{return async(_0x2cd699,_0xe85cf3)=>{const _0x577184=a2_0xa400,_0x1e5c46=new _0x80fa07(),_0xeb3bac=program['opts'](),_0x1581fc=await createTDXInstance(_0xeb3bac),_0x31c899=await _0x1e5c46[_0x577184(0x32e)]({'options':{..._0xeb3bac,..._0xe85cf3},'args':_0x2cd699?[_0x2cd699]:[],'tdx':_0x1581fc});gracefulExit(_0x31c899);};},campaignCmd=engageCmd[a2_0x1dd5bc(0x284)]('campaign')['description'](a2_0x1dd5bc(0x3a4));campaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x242))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x1f1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x20d))['option'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x25b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3b5))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x20d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x1dd5bc(0x284)]('show\x20<name-or-id>')[a2_0x1dd5bc(0x388)]('Show\x20campaign\x20details')['option'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x1dd5bc(0x249))['description'](a2_0x1dd5bc(0x465))['requiredOption'](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x2b4))['requiredOption'](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x3ee))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x345),'Campaign\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2da),a2_0x1dd5bc(0x23b))['option'](a2_0x1dd5bc(0x268),a2_0x1dd5bc(0x3e6))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3bf),a2_0x1dd5bc(0x452))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x392),a2_0x1dd5bc(0x1d3))['option']('--timezone\x20<tz>',a2_0x1dd5bc(0x24a))[a2_0x1dd5bc(0x450)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x1dd5bc(0x2ba))['description'](a2_0x1dd5bc(0x1bf))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x24f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x345),'Campaign\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2da),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x268),a2_0x1dd5bc(0x3e6))[a2_0x1dd5bc(0x207)]('--json-columns\x20<cols>',a2_0x1dd5bc(0x452))['option'](a2_0x1dd5bc(0x392),a2_0x1dd5bc(0x1d3))['option']('--timezone\x20<tz>',a2_0x1dd5bc(0x24a))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x293))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))['option']('--yes',a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x39c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x48d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),'Workspace\x20name')[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3ac))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x397))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),'Workspace\x20name')[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x38f))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x298))['option'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x1dd5bc(0x2fa))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x419))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd['command'](a2_0x1dd5bc(0x31a))['description'](a2_0x1dd5bc(0x3a8))[a2_0x1dd5bc(0x207)]('--workspace\x20<name>',a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)]('--name\x20<name>',a2_0x1dd5bc(0x2de))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x1f1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x30a))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignPullCommand)),campaignCmd['command'](a2_0x1dd5bc(0x467))['description'](a2_0x1dd5bc(0x3f3))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)]('--dry-run',a2_0x1dd5bc(0x399))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x1dd5bc(0x284)]('validate\x20[target]')[a2_0x1dd5bc(0x388)]('Validate\x20campaign\x20YAML\x20files\x20locally')[a2_0x1dd5bc(0x207)]('--verbose',a2_0x1dd5bc(0x44f))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x462))['description'](a2_0x1dd5bc(0x26f));alwaysOnCampaignCmd['command'](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f9))['option'](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x1f1))['option']('--status\x20<status>',a2_0x1dd5bc(0x1cc))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))['action'](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd['command'](a2_0x1dd5bc(0x3d9))[a2_0x1dd5bc(0x388)]('List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x1f1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x1cc))['requiredOption']('--workspace\x20<name>',a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd['command'](a2_0x1dd5bc(0x294))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x379))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1d6),a2_0x1dd5bc(0x278))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x249))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x483))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x2b4))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x3ee))['requiredOption']('--workspace\x20<name>',a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)]('--description\x20<desc>',a2_0x1dd5bc(0x2ec))['option'](a2_0x1dd5bc(0x2da),a2_0x1dd5bc(0x352))['option'](a2_0x1dd5bc(0x1ca),a2_0x1dd5bc(0x20f))[a2_0x1dd5bc(0x450)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)]('update\x20<name-or-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1e7))['requiredOption'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))['option']('--name\x20<name>',a2_0x1dd5bc(0x24f))[a2_0x1dd5bc(0x207)]('--description\x20<desc>',a2_0x1dd5bc(0x2ec))['option'](a2_0x1dd5bc(0x2da),a2_0x1dd5bc(0x352))[a2_0x1dd5bc(0x207)]('--enable-utm-tracking',a2_0x1dd5bc(0x20f))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2c7))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x28b))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x356),a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x39c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x45c))['requiredOption']('--workspace\x20<name>',a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3ac))['description']('Pause\x20an\x20always-on\x20campaign')['requiredOption'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)]('resume\x20<name-or-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x255))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x37e))['description'](a2_0x1dd5bc(0x46b))[a2_0x1dd5bc(0x2c5)]('--workspace\x20<name>',a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)]('--yes','Skip\x20confirmation\x20prompt')[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2fa))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x456))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x3f9))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1d2))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1d1));templateCmd[a2_0x1dd5bc(0x284)]('list\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1ff))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageTemplatesCommand)),engageCmd['command'](a2_0x1dd5bc(0x1d8))['description'](a2_0x1dd5bc(0x3ef))[a2_0x1dd5bc(0x207)]('--workspace\x20<name>',a2_0x1dd5bc(0x209))['action'](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x294))['description'](a2_0x1dd5bc(0x421))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))['option'](a2_0x1dd5bc(0x1d6),a2_0x1dd5bc(0x278))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0x1dd5bc(0x249))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1c4))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x3e8),'Template\x20name')[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x1cb),a2_0x1dd5bc(0x40d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x21a),'HTML\x20template\x20content')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x261),a2_0x1dd5bc(0x380))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),'Workspace\x20name\x20(required)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x46a),a2_0x1dd5bc(0x3fe))['option'](a2_0x1dd5bc(0x38e),a2_0x1dd5bc(0x311),_0x1ac05e=>{const _0x20e887=a2_0x1dd5bc;if(![_0x20e887(0x2a4),'grapesjs'][_0x20e887(0x342)](_0x1ac05e))throw new SDKError(ErrorCode[_0x20e887(0x1b6)],_0x20e887(0x282)+_0x1ac05e+_0x20e887(0x34e));return _0x1ac05e;})[a2_0x1dd5bc(0x450)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command']('update\x20<name-or-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ff))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x1c9))['option'](a2_0x1dd5bc(0x1cb),a2_0x1dd5bc(0x40d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x21a),a2_0x1dd5bc(0x347))['option'](a2_0x1dd5bc(0x261),a2_0x1dd5bc(0x380))['option'](a2_0x1dd5bc(0x46a),a2_0x1dd5bc(0x3fe))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x451))['description'](a2_0x1dd5bc(0x3c1))['option'](a2_0x1dd5bc(0x271),'Workspace\x20name')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),'Pull\x20specific\x20template\x20by\x20name')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x20e),a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x207)]('--dry-run','Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplatePullCommand)),templateCmd['command'](a2_0x1dd5bc(0x467))[a2_0x1dd5bc(0x388)]('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)]('-y,\x20--yes',a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x399))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x305))['description'](a2_0x1dd5bc(0x458))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x335),a2_0x1dd5bc(0x44f))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2c7))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x475))['option'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x356),a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x1dd5bc(0x284)]('workspace')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2be));workspaceCmd['command']('list\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3c5))['action'](createEngageListAction(EngageWorkspacesCommand)),engageCmd['command'](a2_0x1dd5bc(0x2b3))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x45a))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd['command'](a2_0x1dd5bc(0x294))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x473))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1d6),a2_0x1dd5bc(0x278))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x1dd5bc(0x284)]('create')['description']('Create\x20a\x20workspace')[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x3e8),'Workspace\x20name')['option'](a2_0x1dd5bc(0x345),a2_0x1dd5bc(0x1e0))[a2_0x1dd5bc(0x450)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2ba))['description'](a2_0x1dd5bc(0x33f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x2d9))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x345),'Workspace\x20description')[a2_0x1dd5bc(0x450)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2c7))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x408))[a2_0x1dd5bc(0x207)]('--yes',a2_0x1dd5bc(0x220))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x1dd5bc(0x3f6))['description'](a2_0x1dd5bc(0x46f))[a2_0x1dd5bc(0x450)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x36e))[a2_0x1dd5bc(0x388)]('Delivery\x20operations\x20(email\x20senders)');deliveryCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x213))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1df))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x301))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ca)),connectionListAction=async _0x1d5049=>{const _0x6694e1=a2_0x1dd5bc,_0x227b3d=new ConnectionListCommand(),_0xa901cd=program[_0x6694e1(0x389)](),_0x5e94be=await createTDXInstance(_0xa901cd),_0x1ae97a=await _0x227b3d[_0x6694e1(0x32e)]({'options':{..._0xa901cd,..._0x1d5049},'args':[],'tdx':_0x5e94be});gracefulExit(_0x1ae97a);};connectionCmd['command'](a2_0x1dd5bc(0x47d))['description']('List\x20all\x20data\x20connections')[a2_0x1dd5bc(0x450)](connectionListAction),program['command']('connections',{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3e4))[a2_0x1dd5bc(0x450)](connectionListAction),connectionCmd['command'](a2_0x1dd5bc(0x41f))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x299))['action'](async(_0x265bba,_0x4d570b)=>{const _0x1854ef=a2_0x1dd5bc,_0x537004=new ConnectionShowCommand(),_0x7f418c=program[_0x1854ef(0x389)](),_0x4c59d7=await createTDXInstance(_0x7f418c),_0x3ecb0e=await _0x537004[_0x1854ef(0x32e)]({'options':{..._0x7f418c,..._0x4d570b},'args':[_0x265bba],'tdx':_0x4c59d7});gracefulExit(_0x3ecb0e);}),connectionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x331))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f3))[a2_0x1dd5bc(0x450)](async(_0x42c0cb,_0x552fa0)=>{const _0x18ed92=a2_0x1dd5bc,_0x1c226b=new ConnectionSchemaCommand(),_0x2ede8b=program[_0x18ed92(0x389)](),_0x270771=await createTDXInstance(_0x2ede8b),_0xd62da8=await _0x1c226b[_0x18ed92(0x32e)]({'options':{..._0x2ede8b,..._0x552fa0},'args':[_0x42c0cb],'tdx':_0x270771});gracefulExit(_0xd62da8);}),connectionCmd[a2_0x1dd5bc(0x284)]('types')['description'](a2_0x1dd5bc(0x1e3))[a2_0x1dd5bc(0x450)](async _0x350c06=>{const _0x5b2e24=a2_0x1dd5bc,_0x59aa6e=new ConnectionTypesCommand(),_0x3be475=program[_0x5b2e24(0x389)](),_0x1843cc=await createTDXInstance(_0x3be475),_0x372764=await _0x59aa6e[_0x5b2e24(0x32e)]({'options':{..._0x3be475,..._0x350c06},'args':[],'tdx':_0x1843cc});gracefulExit(_0x372764);}),connectionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x30c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2a0))[a2_0x1dd5bc(0x450)](async(_0x446bfc,_0x1ce953)=>{const _0x10035c=a2_0x1dd5bc,_0xab44c8=new ConnectionSettingsCommand(),_0x41702b=program[_0x10035c(0x389)](),_0x46ff1a=await createTDXInstance(_0x41702b),_0x1e1269=await _0xab44c8[_0x10035c(0x32e)]({'options':{..._0x41702b,..._0x1ce953},'args':[_0x446bfc],'tdx':_0x46ff1a});gracefulExit(_0x1e1269);});const journeyCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x212))['description']('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x21e067,_0x59b57b)=>{const _0x56cc26=a2_0x1dd5bc,_0x4d9608=new JourneyListCommand(),_0x247c09=program[_0x56cc26(0x389)](),_0x328dca=await createTDXInstance(_0x247c09),_0x4edcbc=await _0x4d9608[_0x56cc26(0x32e)]({'options':{..._0x247c09,..._0x59b57b},'args':_0x21e067?[_0x21e067]:[],'tdx':_0x328dca});gracefulExit(_0x4edcbc);};journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)]('List\x20journeys\x20in\x20current\x20context')[a2_0x1dd5bc(0x450)](journeyListAction),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x353))[a2_0x1dd5bc(0x388)]('Show\x20journey\x20details')['option']('-w,\x20--web',a2_0x1dd5bc(0x31d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x415),a2_0x1dd5bc(0x21e))['action'](async(_0x44c366,_0x852a54)=>{const _0x2b61bf=a2_0x1dd5bc,_0x5c2ee1=new JourneyViewCommand(),_0x3f0a94=program[_0x2b61bf(0x389)](),_0x2742d5=await createTDXInstance(_0x3f0a94),_0x55f807=await _0x5c2ee1[_0x2b61bf(0x32e)]({'options':{..._0x3f0a94,..._0x852a54},'args':[_0x44c366],'tdx':_0x2742d5});gracefulExit(_0x55f807);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3d6))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x459))[a2_0x1dd5bc(0x207)]('--stage\x20<name>',a2_0x1dd5bc(0x436))[a2_0x1dd5bc(0x207)]('--from\x20<date>','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2b6),a2_0x1dd5bc(0x1ea))['option'](a2_0x1dd5bc(0x3d2),a2_0x1dd5bc(0x307))[a2_0x1dd5bc(0x450)](async(_0x2a2e28,_0x2dc00d)=>{const _0x2caafc=a2_0x1dd5bc,_0x3f946d=new JourneyStatsCommand(),_0x8d7bbf=program[_0x2caafc(0x389)](),_0x2c62b7=await createTDXInstance(_0x8d7bbf),_0x232acd=await _0x3f946d['run']({'options':{..._0x8d7bbf,..._0x2dc00d},'args':[_0x2a2e28],'tdx':_0x2c62b7});gracefulExit(_0x232acd);}),journeyCmd[a2_0x1dd5bc(0x284)]('traffic\x20<name-or-path>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x48a))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),'Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2d7),a2_0x1dd5bc(0x34c))[a2_0x1dd5bc(0x207)]('--to\x20<date>',a2_0x1dd5bc(0x1ea))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x418),'Maximum\x20number\x20of\x20nodes',_0x3bdde0=>{const _0x15b96e=a2_0x1dd5bc,_0x15a583=parseInt(_0x3bdde0,0xa);if(isNaN(_0x15a583))throw new Error(_0x15b96e(0x1c2)+_0x3bdde0+_0x15b96e(0x283));return _0x15a583;})[a2_0x1dd5bc(0x450)](async(_0x35db2a,_0x20ea92)=>{const _0x48b8ee=a2_0x1dd5bc,_0x396609=new JourneyTrafficCommand(),_0x5455cb=program[_0x48b8ee(0x389)](),_0x5e2127=await createTDXInstance(_0x5455cb),_0x1e56cf=await _0x396609[_0x48b8ee(0x32e)]({'options':{..._0x5455cb,..._0x20ea92},'args':[_0x35db2a],'tdx':_0x5e2127});gracefulExit(_0x1e56cf);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x367))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x471))[a2_0x1dd5bc(0x450)](async(_0x549532,_0x546fda)=>{const _0x23daae=a2_0x1dd5bc,_0x475b0e=new JourneyPauseCommand(),_0x11b710=program[_0x23daae(0x389)](),_0x27021e=await createTDXInstance(_0x11b710),_0x2b9e3c=await _0x475b0e[_0x23daae(0x32e)]({'options':{..._0x11b710,..._0x546fda},'args':[_0x549532],'tdx':_0x27021e});gracefulExit(_0x2b9e3c);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x313))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x28c))[a2_0x1dd5bc(0x450)](async(_0x457aa2,_0x5dae3b)=>{const _0x4df8b8=a2_0x1dd5bc,_0x1ca22c=new JourneyResumeCommand(),_0x160335=program[_0x4df8b8(0x389)](),_0x2be021=await createTDXInstance(_0x160335),_0x189530=await _0x1ca22c[_0x4df8b8(0x32e)]({'options':{..._0x160335,..._0x5dae3b},'args':[_0x457aa2],'tdx':_0x2be021});gracefulExit(_0x189530);}),journeyCmd['command'](a2_0x1dd5bc(0x46e))['description']('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x1dd5bc(0x207)]('--dry-run',a2_0x1dd5bc(0x357))['action'](async(_0x67410c,_0x33596e)=>{const _0xdefd15=a2_0x1dd5bc,_0x5d7080=new JourneyPullCommand(),_0x11cfab=program[_0xdefd15(0x389)](),_0x8b14fa=await createTDXInstance(_0x11cfab),_0x1d193e=await _0x5d7080[_0xdefd15(0x32e)]({'options':{..._0x11cfab,..._0x33596e},'args':_0x67410c?[_0x67410c]:[],'tdx':_0x8b14fa});gracefulExit(_0x1d193e);}),journeyCmd['command']('push\x20[target]')[a2_0x1dd5bc(0x388)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x1dd5bc(0x450)](async(_0x59ccf5,_0x827a1a)=>{const _0xa25e82=a2_0x1dd5bc,_0x23b8bf=new JourneyPushCommand(),_0x16b658=program[_0xa25e82(0x389)](),_0x5e944e=await createTDXInstance(_0x16b658),_0x518c30=await _0x23b8bf[_0xa25e82(0x32e)]({'options':{..._0x16b658,..._0x827a1a},'args':_0x59ccf5?[_0x59ccf5]:[],'tdx':_0x5e944e});gracefulExit(_0x518c30);}),journeyCmd[a2_0x1dd5bc(0x284)]('columns\x20<name-or-path>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x263))['action'](async(_0x274f18,_0x27af20)=>{const _0x41605b=a2_0x1dd5bc,_0x539060=new JourneyColumnsCommand(),_0x10a23e=program[_0x41605b(0x389)](),_0x2110b4=await createTDXInstance(_0x10a23e),_0x30505d=await _0x539060[_0x41605b(0x32e)]({'options':{..._0x10a23e,..._0x27af20},'args':[_0x274f18],'tdx':_0x2110b4});gracefulExit(_0x30505d);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x25e))['description'](a2_0x1dd5bc(0x1f5))[a2_0x1dd5bc(0x450)](async(_0x4eb918,_0x379ec3)=>{const _0x11b05d=a2_0x1dd5bc,_0x7f4104=new JourneyActivationsCommand(),_0x4115c5=program[_0x11b05d(0x389)](),_0x192f0c=await createTDXInstance(_0x4115c5),_0x5ed990=await _0x7f4104[_0x11b05d(0x32e)]({'options':{..._0x4115c5,..._0x379ec3},'args':[_0x4eb918],'tdx':_0x192f0c});gracefulExit(_0x5ed990);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x40b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2af))[a2_0x1dd5bc(0x450)](async(_0x94edf5,_0x3d54d9)=>{const _0x25801e=a2_0x1dd5bc,_0x4e3578=new JourneyVersionsCommand(),_0x28d3d1=program[_0x25801e(0x389)](),_0x168332=await createTDXInstance(_0x28d3d1),_0x352daa=await _0x4e3578[_0x25801e(0x32e)]({'options':{..._0x28d3d1,..._0x3d54d9},'args':[_0x94edf5],'tdx':_0x168332});gracefulExit(_0x352daa);});const journeyVersionCmd=journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3e9))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x26b));journeyVersionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2e6))[a2_0x1dd5bc(0x388)]('Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey')['action'](async(_0x27ee83,_0xc2cea0)=>{const _0x75c81e=a2_0x1dd5bc,_0xaca518=new JourneyVersionCreateCommand(),_0x498265=program['opts'](),_0x23f200=await createTDXInstance(_0x498265),_0x524603=await _0xaca518[_0x75c81e(0x32e)]({'options':{..._0x498265,..._0xc2cea0},'args':[_0x27ee83],'tdx':_0x23f200});gracefulExit(_0x524603);}),journeyVersionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x353))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1ed))[a2_0x1dd5bc(0x2c5)]('--version\x20<number>','Version\x20number\x20to\x20view')['action'](async(_0x8cf3d4,_0x2e1590)=>{const _0x3dbb6d=new JourneyVersionViewCommand(),_0x212586=program['opts'](),_0xd31084=await createTDXInstance(_0x212586),_0x433785=await _0x3dbb6d['run']({'options':{..._0x212586,..._0x2e1590},'args':[_0x8cf3d4],'tdx':_0xd31084});gracefulExit(_0x433785);}),journeyCmd[a2_0x1dd5bc(0x284)]('validate\x20[target]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x31f))[a2_0x1dd5bc(0x450)](async(_0x1b59c2,_0x571a3a)=>{const _0x307ed8=a2_0x1dd5bc,_0x5e2c6b=new JourneyValidateCommand(),_0x2025d1=program[_0x307ed8(0x389)](),_0x4b96a2=await createTDXInstance(_0x2025d1),_0x448959=await _0x5e2c6b['run']({'options':{..._0x2025d1,..._0x571a3a},'args':_0x1b59c2?[_0x1b59c2]:[],'tdx':_0x4b96a2});gracefulExit(_0x448959);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x365))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f1))[a2_0x1dd5bc(0x450)](journeyListAction);const agentSyncCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3b6))[a2_0x1dd5bc(0x388)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x413))['description'](a2_0x1dd5bc(0x374))['option'](a2_0x1dd5bc(0x2df),a2_0x1dd5bc(0x410))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x476),a2_0x1dd5bc(0x411))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3dc),a2_0x1dd5bc(0x292))[a2_0x1dd5bc(0x450)](async(_0x10dcf8,_0x12d757,_0x180d42)=>{const _0x3d391c=a2_0x1dd5bc,_0x443d42=new AgentPullCommand(),_0x2e8115=program['opts'](),_0x54ac20=await createTDXInstance(_0x2e8115),_0x429af4=[];if(_0x10dcf8)_0x429af4[_0x3d391c(0x416)](_0x10dcf8);if(_0x12d757)_0x429af4['push'](_0x12d757);const _0x184736=await _0x443d42['run']({'options':{..._0x2e8115,..._0x180d42},'args':_0x429af4,'tdx':_0x54ac20});gracefulExit(_0x184736);}),agentSyncCmd['command'](a2_0x1dd5bc(0x3fa))['description'](a2_0x1dd5bc(0x2bd))['option']('-f,\x20--force',a2_0x1dd5bc(0x29a))['action'](async(_0x419fa0,_0x2c85b2)=>{const _0x571acf=a2_0x1dd5bc,_0x39b835=new AgentPushCommand(),_0x252b1b=program[_0x571acf(0x389)](),_0x566f52=await createTDXInstance(_0x252b1b),_0x5cb8af=await _0x39b835[_0x571acf(0x32e)]({'options':{..._0x252b1b,..._0x2c85b2},'args':_0x419fa0?[_0x419fa0]:[],'tdx':_0x566f52});gracefulExit(_0x5cb8af);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('clone\x20[source]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3a1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x24c),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x1dd5bc(0x450)](async(_0x5696e5,_0x9c4973)=>{const _0x417274=a2_0x1dd5bc,_0x28c888=new AgentCloneCommand(),_0x54fc16=program[_0x417274(0x389)](),_0x32dd94=await createTDXInstance(_0x54fc16),_0x213a5a=await _0x28c888[_0x417274(0x32e)]({'options':{..._0x54fc16,..._0x9c4973},'args':_0x5696e5?[_0x5696e5]:[],'tdx':_0x32dd94});gracefulExit(_0x213a5a);}),agentSyncCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x262))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x384))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x401),a2_0x1dd5bc(0x3ca))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x446),a2_0x1dd5bc(0x2e3))[a2_0x1dd5bc(0x207)]('--dry-run','Parse\x20and\x20validate\x20without\x20executing')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x329),a2_0x1dd5bc(0x2aa))['option'](a2_0x1dd5bc(0x2fb),a2_0x1dd5bc(0x40e))[a2_0x1dd5bc(0x450)](async(_0xdbf557,_0x21c3e1)=>{const _0x1b8038=new AgentTestCommand(),_0x264c48=program['opts'](),_0x4ea04f=await createTDXInstance(_0x264c48),_0x3a53a3=await _0x1b8038['run']({'options':{..._0x264c48,..._0x21c3e1},'args':_0xdbf557?[_0xdbf557]:[],'tdx':_0x4ea04f});gracefulExit(_0x3a53a3);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('list\x20[pattern]')['description'](a2_0x1dd5bc(0x44d))[a2_0x1dd5bc(0x450)](llmAgentListAction),agentSyncCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x229))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2a2))['action'](async(_0x2bf7d5,_0x5b97ee)=>{const _0x1f6c11=a2_0x1dd5bc,_0x1c9525=new LLMAgentShowCommand(),_0x3c7169=program[_0x1f6c11(0x389)](),_0x49d41c=await createTDXInstance(_0x3c7169),_0x55717b=await _0x1c9525['run']({'options':{..._0x3c7169,..._0x5b97ee},'args':[_0x2bf7d5],'tdx':_0x49d41c});gracefulExit(_0x55717b);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('create\x20<name>')['description'](a2_0x1dd5bc(0x372))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x422),a2_0x1dd5bc(0x23a))['option']('--model\x20<name>',a2_0x1dd5bc(0x48c),a2_0x1dd5bc(0x1d5))['option'](a2_0x1dd5bc(0x279),a2_0x1dd5bc(0x308))[a2_0x1dd5bc(0x207)]('--max-tool-iterations\x20<n>',a2_0x1dd5bc(0x31b),'4')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x304),a2_0x1dd5bc(0x1c7),a2_0x1dd5bc(0x41a))[a2_0x1dd5bc(0x450)](async(_0x30c1b0,_0x1c4a63)=>{const _0x5097e1=a2_0x1dd5bc,_0x1fc97f=new LLMAgentCreateCommand(),_0x15a530=program[_0x5097e1(0x389)](),_0x3d5218=await createTDXInstance(_0x15a530),_0x1fc485=await _0x1fc97f[_0x5097e1(0x32e)]({'options':{..._0x15a530,..._0x1c4a63},'args':[_0x30c1b0],'tdx':_0x3d5218});gracefulExit(_0x1fc485);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('update\x20<agent-name>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ed))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x428),a2_0x1dd5bc(0x3db))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1b9),'Agent\x20prompt/instructions')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),a2_0x1dd5bc(0x22d))['option'](a2_0x1dd5bc(0x279),a2_0x1dd5bc(0x308))[a2_0x1dd5bc(0x450)](async(_0x5b9f50,_0x5455d0)=>{const _0x541847=new LLMAgentUpdateCommand(),_0x1dd134=program['opts'](),_0x5b58c9=await createTDXInstance(_0x1dd134),_0x4d9c26=await _0x541847['run']({'options':{..._0x1dd134,..._0x5455d0},'args':[_0x5b9f50],'tdx':_0x5b58c9});gracefulExit(_0x4d9c26);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('delete\x20<agent-name>')[a2_0x1dd5bc(0x388)]('Delete\x20an\x20agent')[a2_0x1dd5bc(0x450)](async(_0x5d8747,_0x7a12c2)=>{const _0x358af1=a2_0x1dd5bc,_0x47d182=new LLMAgentDeleteCommand(),_0x3fbd59=program[_0x358af1(0x389)](),_0x1853f7=await createTDXInstance(_0x3fbd59),_0x433254=await _0x47d182['run']({'options':{..._0x3fbd59,..._0x7a12c2},'args':[_0x5d8747],'tdx':_0x1853f7});gracefulExit(_0x433254);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2f6),{'hidden':!![]})[a2_0x1dd5bc(0x450)](()=>{const _0x2afcf3=a2_0x1dd5bc;function _0x47ed1a(_0x1deda5,_0x500a9d){const _0x35474a=a2_0xa400,_0x34107a=[];for(const _0x93d84c of _0x1deda5[_0x35474a(0x3e5)]){if(_0x93d84c[_0x35474a(0x29e)])continue;const _0x47f9a7=_0x500a9d?_0x500a9d+'\x20'+_0x93d84c[_0x35474a(0x1e4)]():_0x93d84c['name'](),_0xbae8be=_0x47f9a7['split']('\x20')[0x0],_0x418386=COMMAND_CATEGORIES[_0x35474a(0x3b0)](_0x4f1531=>_0x4f1531[_0x35474a(0x3e5)][_0x35474a(0x342)](_0xbae8be)),_0x368240=_0x418386?.['name']??'';if(_0x93d84c['commands'][_0x35474a(0x295)]>0x0)_0x34107a[_0x35474a(0x416)](..._0x47ed1a(_0x93d84c,_0x47f9a7));else{const _0x1c7340=(_0x93d84c['registeredArguments']||[])[_0x35474a(0x2c4)](_0x5eaa39=>{const _0x1d8b78=_0x35474a,_0x49a46a=_0x5eaa39[_0x1d8b78(0x288)]?_0x5eaa39[_0x1d8b78(0x1e4)]()+'...':_0x5eaa39[_0x1d8b78(0x1e4)]();return _0x5eaa39[_0x1d8b78(0x3d4)]?'<'+_0x49a46a+'>':'['+_0x49a46a+']';})[_0x35474a(0x266)]('\x20'),_0x137942=_0x93d84c[_0x35474a(0x2cd)]['filter'](_0x2da1b6=>!_0x2da1b6['hidden']&&_0x2da1b6['long']!==_0x35474a(0x402))[_0x35474a(0x2c4)](_0xb5a133=>({'flags':_0xb5a133[_0x35474a(0x2f2)],'description':_0xb5a133[_0x35474a(0x388)]}));_0x34107a[_0x35474a(0x416)]({'name':_0x47f9a7,'description':_0x93d84c[_0x35474a(0x388)](),'group':_0x368240,'usage':_0x1c7340,'options':_0x137942});}}return _0x34107a;}console[_0x2afcf3(0x3cd)](JSON[_0x2afcf3(0x3b9)](_0x47ed1a(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x27b405=a2_0x1dd5bc,_0x39c31f=!process['argv'][_0x27b405(0x289)](0x2)[_0x27b405(0x295)];showBriefHelp=_0x39c31f,program[_0x27b405(0x28a)](process[_0x27b405(0x349)]);_0x39c31f&&program['outputHelp']();const _0x113557=process[_0x27b405(0x349)][0x2]==='upgrade';if(process[_0x27b405(0x3e1)][_0x27b405(0x20c)]&&process[_0x27b405(0x349)][_0x27b405(0x295)]>0x2&&!isDevVersion()&&!_0x113557){const _0x4cbaf5=loadReleaseChannel();checkForUpdate(currentVersion,_0x4cbaf5)[_0x27b405(0x214)](_0x54b864=>{_0x54b864&&displayUpdateNotification(_0x54b864);})[_0x27b405(0x30f)](()=>{});}}
|