@treasuredata/tdx 2026.3.48 → 2026.3.50
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.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +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.d.ts +22 -0
- package/dist/commands/auth-command.d.ts.map +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-command.js.map +1 -1
- package/dist/commands/cas-command.js +1 -1
- package/dist/commands/cas-segment-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.d.ts +5 -5
- package/dist/commands/profile-command.d.ts.map +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profile-command.js.map +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/work-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.d.ts +6 -4
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/config.js.map +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.d.ts +12 -8
- package/dist/core/oauth.d.ts.map +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/oauth.js.map +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.d.ts.map +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/mcp/utils.js.map +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/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.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.d.ts +8 -0
- package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js.map +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.js +1 -1
- package/dist/sdk/types/index.d.ts +1 -1
- package/dist/sdk/types/index.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/index.js.map +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.d.ts +29 -0
- package/dist/sdk/types/workspace.d.ts.map +1 -1
- package/dist/sdk/types/workspace.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/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.d.ts +4 -1
- package/dist/sdk/workspace/git.d.ts.map +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/git.js.map +1 -1
- package/dist/sdk/workspace/index.d.ts +8 -15
- package/dist/sdk/workspace/index.d.ts.map +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/index.js.map +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.d.ts +3 -13
- package/dist/sdk/workspace/weekly.d.ts.map +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/weekly.js.map +1 -1
- package/dist/sdk/workspace/wikilinks.d.ts +15 -0
- package/dist/sdk/workspace/wikilinks.d.ts.map +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/sdk/workspace/wikilinks.js.map +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/commands/auth-login-command.d.ts +0 -29
- package/dist/commands/auth-login-command.d.ts.map +0 -1
- package/dist/commands/auth-login-command.js +0 -1
- package/dist/commands/auth-login-command.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a2_0x3a84(_0x4268cf,_0x5365a2){_0x4268cf=_0x4268cf-0x80;const _0x44a69e=a2_0x44a6();let _0x3a8469=_0x44a69e[_0x4268cf];return _0x3a8469;}const a2_0x12e3fa=a2_0x3a84;(function(_0x595649,_0x2b55bf){const _0x261b14=a2_0x3a84,_0x2534c0=_0x595649();while(!![]){try{const _0x53d44e=-parseInt(_0x261b14(0x2ef))/0x1+parseInt(_0x261b14(0x128))/0x2*(-parseInt(_0x261b14(0xbb))/0x3)+parseInt(_0x261b14(0x2ff))/0x4+-parseInt(_0x261b14(0x305))/0x5*(parseInt(_0x261b14(0x354))/0x6)+parseInt(_0x261b14(0x239))/0x7+parseInt(_0x261b14(0x300))/0x8+parseInt(_0x261b14(0x182))/0x9;if(_0x53d44e===_0x2b55bf)break;else _0x2534c0['push'](_0x2534c0['shift']());}catch(_0x46b9ed){_0x2534c0['push'](_0x2534c0['shift']());}}}(a2_0x44a6,0xe01e9));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,PSRtJnListCommand,PSRtJnPauseCommand,PSRtJnResumeCommand,PSRtConfigVersionCommand,PSPzServiceListCommand,PSPzServiceCreateCommand,PSPzServiceShowCommand,PSPzServiceDeleteCommand,PSPzServiceUpdateCommand,PSPzServiceTokenCreateCommand,PSPzServiceTokenDeleteCommand,PSPzListCommand,PSPzShowCommand,PSPzDeleteCommand,PSPzCreateCommand,PSPzPatchCommand,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{CASListCommand,CASDescCommand,CASPullCommand,CASPushCommand,CASPreviewCommand}from'./commands/cas-command.js';import{CASSegmentListCommand}from'./commands/cas-segment-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{workSummaryAction,workInitAction,workNewAction,workMoveAction,workBoardAction,workShowAction,workLinksAction,workOpenAction}from'./commands/work-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_0x12e3fa(0x33d)][a2_0x12e3fa(0x1bb)]('--version')){let versionOutput=a2_0x12e3fa(0xd2)+currentVersion;buildInfo[a2_0x12e3fa(0x290)]&&!currentVersion['includes'](buildInfo[a2_0x12e3fa(0x290)])&&(versionOutput+='\x20('+buildInfo[a2_0x12e3fa(0x290)]+')'),buildInfo[a2_0x12e3fa(0x23d)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo['buildTime']),console[a2_0x12e3fa(0x322)](versionOutput),process[a2_0x12e3fa(0x2bf)](0x0);}function a2_0x44a6(){const _0x525382=['AI-native\x20CLI\x20for\x20Treasure\x20Data','push\x20[path]','Plaintext\x20template\x20content','template','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','tdx','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','columns\x20<name-or-path>','--rule-file\x20<file>','--catalog\x20<catalog>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','apiKey','use\x20<path>','Delete\x20an\x20email\x20template','engage','List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)','noColor','debug','Unknown\x20action:\x20','\x22.\x20Must\x20be\x20a\x20number.','--priority\x20<priority>','--site\x20<site>','Workflow\x20session\x20management','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Pull\x20specific\x20revision\x20(default:\x20latest)','Cron\x20expression\x20for\x20scheduling','--interval\x20<range>','Workflow\x20project\x20management','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','project','Show\x20schedule\x20details','pull\x20[workspace-name]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Filtering\x20rule\x20as\x20JSON\x20string','-n,\x20--name\x20<name>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','New\x20service\x20description','\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','grapesjs','Push\x20YAML\x20files\x20to\x20CAS\x20API','--start-at\x20<datetime>','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Query\x20type:\x20trino\x20or\x20hive','--segment\x20<path>','push','error','List\x20jobs','new\x20<title>','Priority\x20(critical,\x20high,\x20medium,\x20low)','test\x20[path]','TRACE','--chat-id\x20<id>','--timezone\x20<tz>','Ending\x20offset\x20(default:\x2020)','always-on-campaigns\x20[pattern]','Show\x20master\x20table\x20sample\x20data','Delete\x20a\x20workspace','Update\x20an\x20email\x20template','--dry-run','database','List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','List\x20all\x20available\x20profiles','--sections\x20<json>','Parent\x20segment\x20management','Job\x20priority\x20(-2\x20to\x202)','Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)','Preview\x20operation\x20without\x20executing','-H,\x20--header\x20<header>','parent_segment','Personalization\x20service\x20management','--full','gitRevision','user','board','mcp','join','--next','job','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Change\x20to\x20directory\x20before\x20executing\x20command','Delete\x20a\x20realtime\x20personalization','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--add-attributes\x20<json>','api\x20[endpoint]','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','agent','Save\x20output\x20to\x20file','segments\x20[path]','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','Create\x20a\x20new\x20always-on\x20campaign','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Attributes\x20from\x20JSON\x20file','Duplicate\x20a\x20campaign','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Show\x20schedule\x20execution\x20history','Customer\x20group\x20from\x20JSON\x20file','unset\x20<resource>','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','Add\x20behaviors\x20as\x20JSON\x20string','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','run\x20[workflow]','Kill\x20a\x20job','show\x20[segment_name]','Run\x20a\x20scheduled\x20query\x20immediately','pull\x20[project]\x20[agent-name]','Journey\x20version\x20management','--master','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','-r,\x20--recursive','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','show\x20<service_id>\x20[parent_segment]','Temperature\x20(0.0-2.0,\x20default:\x200.7)','upload\x20[project-name-or-dir]','exit','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--llm-project\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','delete\x20<personalization_id>','Include\x20subtasks\x20in\x20tasks\x20output','--retry-limit\x20<0~32>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','-d,\x20--database\x20<db>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','pull\x20<project>\x20[target-dir]','Show\x20document\x20details','Preview\x20composable\x20segment\x20query\x20on\x20CDW','connection','audience','Link\x20workspace\x20to\x20a\x20GitHub\x20repository','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','List\x20composable\x20segments\x20for\x20an\x20audience','argumentDescription','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Composable\x20segment\x20commands','Start\x20a\x20new\x20chat\x20session','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','run\x20[name]','journeys\x20[pattern]','--session-id\x20<id>','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','site','get','pause\x20<name-or-path>','New\x20workspace\x20name','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Invalid\x20editor\x20type:\x20','delete\x20<agent-name>','--no-color','Push\x20without\x20confirmation','requiredOption','registeredArguments','Get\x20current\x20RT\x20configuration\x20version\x20status','--dir\x20<dir>','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','after','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','list','info\x20[segment_name]','1607637aumlat','hidden','Delete\x20a\x20campaign','Include\x20all\x20items\x20(no\x20stale\x20filtering)','Template\x20name','kill','claude-4.5-sonnet','Create\x20a\x20new\x20document','allowExcessArguments','--param\x20<key=value>','Assignee','--github\x20<owner/repo>','--status\x20<status>','init\x20[name]','delete\x20<service_id>\x20[parent_segment]','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','3803460YiGcHL','3390720OXlFRq','description','logLevel','projects\x20[pattern]','optionDescription','9985XbudnU','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','list\x20[pattern]','configuration_versions\x20[name]','Email\x20sender\x20ID\x20for\x20delivery','Commands:','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','history\x20[chat-id]','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--last','Sections\x20as\x20an\x20inline\x20JSON\x20array','Output\x20directory','--enable-utm-tracking','Preview\x20without\x20creating\x20the\x20project','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','use\x20[name]','Show\x20segment\x20schema\x20(column\x20types)','--invisible','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','Finish\x20an\x20always-on\x20campaign','isDirectory','--table','create','--result\x20<target>','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--in\x20<db>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','forEach','log','argument','sessions\x20[project]','--system-prompt\x20<text>','Run\x20tests\x20for\x20an\x20LLM\x20agent','Model\x20type\x20(default:\x20claude-4.5-sonnet)','option','view\x20[name]','validate\x20[target]','set\x20<args...>','\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','Access\x20control\x20policy\x20commands','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--include-retried','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Enable\x20verbose\x20logging','Output\x20folder\x20(default:\x20{project_name}.llm)','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','-u,\x20--use','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','campaigns\x20[pattern]','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','filter','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Transition\x20a\x20task\x20to\x20a\x20new\x20status','Remove\x20API\x20key\x20from\x20system\x20keychain','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','argv','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','stdout','Output\x20as\x20JSON','finish\x20<name-or-id>','List\x20all\x20versions\x20of\x20a\x20journey','Workspace\x20name\x20(required)','--time\x20<iso8601>','INVALID_ARGUMENT','schema\x20<type>','Resume\x20from\x20specific\x20task\x20(retry)','validate\x20[file]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Database\x20management\x20commands','HTML\x20template\x20content','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Maximum\x20tool\x20iterations\x20(default:\x204)','Generate\x20test\x20conversations\x20without\x20evaluation','list\x20[project]','Get\x20job\x20results','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','commands','6GYJAZY','Maximum\x20rows\x20to\x20display','pause\x20<name-or-id>','Personalization\x20name','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Updated\x20schedule\x20option','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','--follow','restore\x20<folder>','List\x20email\x20senders','usage','command','--jsonl','--num\x20<1-10>','--format\x20<format>','Show\x20only\x20master\x20table\x20validation','describe','Skip\x20confirmation\x20prompt','then','--attributes\x20<json>','Update\x20a\x20workspace','Read\x20query\x20from\x20file','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Skip\x20confirmation\x20prompts','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','--name\x20<name>','models','workflows\x20[project]','[action]','Pull\x20campaigns\x20to\x20YAML\x20files','Personalization\x20service\x20token\x20management','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','resume\x20<name-or-id>','slice','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--from\x20<date>','_hidden','--to\x20<n>','--revision\x20<revision>','--starter-message\x20<text>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Open\x20a\x20document\x20in\x20$EDITOR','\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','Token\x20description','Attributes\x20as\x20JSON\x20string','Workspace\x20name','cas','Include\x20retried\x20attempts','--html-file\x20<path>','update\x20<name-or-id>','isTTY','traffic\x20<name-or-path>','--engine-version\x20<version>','parents\x20[pattern]','show\x20<agent-name>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--agent\x20<ref>','--color','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--workspace\x20<name>','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','flags','create\x20<parent_name>\x20<folder_name>','alias','Database\x20name','sql\x20[segment_name]','Preview\x20changes\x20without\x20pushing','delete\x20<token_id>\x20[parent_segment]','--tags\x20<tags>','parent-segment','Pull\x20workflow\x20project\x20to\x20local\x20folder','Campaign\x20type\x20(email\x20or\x20push)','information_schema','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','launch\x20<name-or-id>','--limit\x20<n>','item','Behaviors\x20as\x20JSON\x20string','--no-eval','--params\x20<json>','set','--description\x20<desc>','table','workspace','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Validate\x20template\x20YAML\x20files\x20locally','Delay\x20in\x20seconds\x20before\x20execution','update\x20<name>','Validate\x20journey\x20YAML\x20files\x20locally','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','--attempt-id\x20<id>','push\x20[source-dir]','Run\x20Trino\x20query\x20with\x20streaming\x20results','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Version\x20number\x20to\x20view','submit\x20[query]','--days\x20<n>','create\x20<name>','types','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','\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','Skip\x20population\x20counting','--kind\x20<type>','CDP\x20Journey\x20Orchestration\x20commands','Move\x20to\x20folder','opts','validate\x20[name]','Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','List\x20all\x20users\x20in\x20the\x20account','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Show\x20authentication\x20status\x20and\x20current\x20context','\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','Maximum\x20recursion\x20depth\x20(default:\x2010)','--json','129582iIbtAc','use\x20<name>','CDP\x20segment\x20management\x20commands','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','tasks','describe\x20[table]','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Show\x20journey\x20details','--verbose','Workflow\x20attempt\x20management','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Create\x20a\x20new\x20agent\x20in\x20current\x20project','YAML\x20file\x20path\x20for\x20unpushed\x20segment','Query\x20engine\x20version','Show\x20stats\x20for\x20specific\x20stage','templates\x20[pattern]','Starter\x20message','directory','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Timezone\x20(e.g.,\x20America/Los_Angeles)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','tdx\x20','-w,\x20--web','-y,\x20--yes','Target\x20directory\x20for\x20YAML\x20files','agents\x20[pattern]','List\x20secret\x20keys\x20for\x20a\x20project','--name\x20<text>','format','Check\x20for\x20updates\x20without\x20installing','Pause\x20an\x20always-on\x20campaign','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','\x20(resolved\x20to\x20','New\x20campaign\x20name','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','-r,\x20--resume','Pull\x20child\x20segments\x20to\x20YAML\x20files','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20agents\x20in\x20current\x20project','update\x20<segment_name>','--schedule-option\x20<value>','-p,\x20--profile\x20<name>','sql\x20[name]','statusline','--stage\x20<name>','Show\x20timeline\x20for\x20specific\x20attempt','Make\x20service\x20public\x20(default:\x20private)','configureHelp','--stream','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','replace','beefree','split','optionTerm','show\x20<name-or-id>','jobs','jsonl','status','Comma-separated\x20tags','show\x20<name>','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','query\x20[sql]','desc','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','--reason\x20<text>','subcommandTerm','Custom\x20revision\x20name\x20(default:\x20timestamp)','workflow','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--session-time\x20<time>','[options]\x20--\x20[claude-code-args...]','--body\x20<body>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','List\x20available\x20connector\x20types','Email\x20template\x20management','chdir','Read\x20HTML\x20template\x20from\x20file','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','\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','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Database\x20to\x20query\x20(default:\x20information_schema)','Master\x20database\x20name','workspaces\x20[pattern]','Setup\x20API\x20key\x20authentication\x20interactively','Update\x20a\x20campaign','...','--schedule-type\x20<type>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','options','--enriched','--attribute\x20[name]','--file\x20<path>','Show\x20journey\x20table\x20column-to-step\x20mapping','outputHelp','folder','Folder\x20name\x20for\x20organization','Preview\x20changes\x20without\x20writing\x20files','LLM\x20project\x20management','pull\x20[name]','INFO','policy','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','View\x20a\x20specific\x20version\x20of\x20a\x20journey','Include\x20execution\x20statistics','18xYVxVl','delete\x20<args...>','--delete','fields\x20[name]','Pull\x20specific\x20campaign\x20by\x20name','Launch\x20an\x20always-on\x20campaign','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)','--attributes-file\x20<file>','--trace','duplicate\x20<name-or-id>','attempts\x20[project]','Job\x20management\x20commands','set\x20<key=value>','Invalid\x20--limit\x20value:\x20\x22','Updated\x20description','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','resume\x20<name-or-path>','Delete\x20an\x20LLM\x20project','-X,\x20--method\x20<method>','json','Authentication\x20management','Limit\x20number\x20of\x20rows','Filtering\x20rule\x20from\x20JSON\x20file','create\x20<name>\x20[parent_segment]','Enable\x20UTM\x20tracking','clone\x20[source]','Set\x20operation\x20timeout\x20in\x20seconds','--name\x20<names>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','--cron\x20<expression>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--in\x20<database>','Show\x20items\x20updated\x20within\x20N\x20days','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','--customer-group\x20<json>','--yes','token','push\x20[target]','--clear','Apply\x20a\x20template','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','-v,\x20--verbose','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','--plaintext\x20<text>','--behaviors-file\x20<file>','RT\x202.0\x20configuration\x20management','-f,\x20--force','RT\x20Journey\x20management','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--include-stats','--customer-group-file\x20<file>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--subject\x20<subject>','preview\x20[file]','subcommandDescription','action','--no-count-population','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','-C,\x20--directory\x20<path>','service','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20what\x20would\x20be\x20written\x20without\x20writing','--parent-segment\x20<name>','auth','name','Delete\x20a\x20scheduled\x20query','-1d','desc\x20[name]','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Show\x20all\x20files\x20including\x20valid\x20ones','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','delete\x20<name>','history\x20<name>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','padEnd','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--job-type\x20<type>','Workspace\x20management','view\x20<name-or-path>','show\x20<folder_ref>','--debug','Campaign\x20name','Table\x20management\x20commands','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Validate\x20campaign\x20YAML\x20files\x20locally','Update\x20an\x20existing\x20agent','--html\x20<html>','7893999sHZpEq','Starting\x20offset\x20(default:\x200)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','stats\x20<name-or-path>','allowUnknownOption','Initialize\x20a\x20new\x20workspace','--email-sender-id\x20<id>','-o,\x20--output\x20<file>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--add-behaviors-file\x20<file>','Document\x20kind\x20(item,\x20goal,\x20guide,\x20note,\x20reference)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','stringify','--to\x20<date>','Make\x20segment\x20invisible\x20(default:\x20visible)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Show\x20job\x20details','Output\x20file\x20path','hook','New\x20segment\x20name','--resume-from\x20<task>','--reeval','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Pause\x20a\x20running\x20journey','Output\x20as\x20JSON\x20Lines','profile','Add\x20attributes\x20from\x20JSON\x20file','--max-depth\x20<depth>','catch','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','activations\x20<segment_name>','update\x20<service_id>\x20[parent_segment]','--priority\x20<-2~2>','Pause\x20a\x20campaign','Retry\x20limit\x20(0\x20to\x2032)','connections','-o,\x20--output\x20<folder>','Arguments:','[task-name]','Resume\x20a\x20conversation\x20(shows\x20selector)','--method\x20<pm>','[DEPRECATED]\x20Segment\x20folder\x20management','isArray','--type\x20<type>','Follow/watch\x20timeline\x20for\x20running\x20attempts','--behavior\x20[name]','Agent\x20name','--add-attributes-file\x20<file>','Resume\x20from\x20specific\x20task','run','--skip-validation','-d,\x20--database\x20<database>','push\x20[name]','Folder\x20description','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Document\x20body\x20text','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','includes','Workspace\x20description','--assignee\x20<assignee>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Add\x20behaviors\x20from\x20JSON\x20file','Usage:\x20','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','llm','required','Overwrite\x20local\x20changes\x20without\x20confirmation','Create\x20a\x20scheduled\x20query','Composable\x20audience\x20name','Updated\x20timezone','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses','secrets','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Maximum\x20number\x20of\x20nodes','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','--include-subtasks','clone\x20[source-dir]','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--description\x20<text>','Resume\x20a\x20paused\x20journey','--data\x20<data>','list\x20[path]','Show\x20the\x20most\x20recent\x20chat','--editor-type\x20<type>','Behaviors\x20from\x20JSON\x20file','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','addHelpText','--folder\x20<name>','Interactive\x20chat\x20selector','Email\x20subject\x20template','trino','Options:','Continue\x20most\x20recent\x20conversation','Result\x20output\x20destination\x20URL','long','--to\x20<timestamp>','open\x20<name>','--force','injectIntoOptions','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Name\x20for\x20the\x20duplicated\x20campaign','show\x20<job-id>','Show\x20agent\x20details','Update\x20a\x20realtime\x20personalization\x20entity','End\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--from\x20<timestamp>','Include\x20retried\x20attempts\x20(for\x20list)','view\x20[segment_name]','preview\x20[name]','use\x20<project-name>','show\x20<personalization_id>','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Attempt\x20ID','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Workflow\x20(Digdag)\x20management\x20commands','always-on-campaign','Initial\x20status','--audience-id\x20<id>','--result\x20<url>','profiles','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','Request\x20body\x20as\x20JSON\x20string','entries','users','AI-native\x20work\x20management','Campaign\x20description','--prompt\x20<text>','Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)','segment','Update\x20an\x20always-on\x20campaign','Name\x20for\x20the\x20new\x20project\x20(required)','0.7','padWidth','trace','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','list\x20[name]','Manage\x20workflow\x20project\x20secrets','map','System\x20prompt/instructions\x20(default:\x20empty)','Read\x20request\x20body\x20from\x20file','--path\x20<file-path>','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--no-proxy','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','versions\x20<name-or-path>','--template\x20<name>','Resume\x20a\x20paused\x20always-on\x20campaign','length','Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)','Pause\x20activations\x20in\x20an\x20RT\x20journey','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','delivery','Skip\x20validation\x20of\x20.dig\x20files','tsv','--help','delete\x20<project-name-or-id>','Output\x20file\x20path\x20(default:\x20<name>.yml)','Clear\x20session\x20context',',\x20version\x20','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','flatMap','settings\x20<type>','result\x20<job-id>','[attempt-id]','-f,\x20--file\x20<path>','preAction','\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','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--limit\x20<number>','--name\x20<new_name>','Create\x20segment\x20folder','--new','Include\x20raw\x20history\x20data\x20in\x20output','[EXPERIMENTAL]\x20Show\x20chat\x20log','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--all','retry\x20<session-id>','4651899tuFpAb','Open\x20segment\x20in\x20web\x20browser','\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','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','buildTime','engage_workspace','Show\x20always-on\x20campaign\x20details','Set\x20or\x20show\x20parent\x20segment\x20context','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Show\x20workspace\x20details','--default','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','--delay\x20<seconds>','delete\x20<name-or-id>'];a2_0x44a6=function(){return _0x525382;};return a2_0x44a6();}const program=new Command();export function mergeCommandOptions(_0x2c5827,_0x1fcc73){const _0x49ca91=a2_0x12e3fa,_0x5dcd0d={..._0x2c5827};for(const [_0x432ed2,_0x59c92e]of Object[_0x49ca91(0x200)](_0x1fcc73)){_0x59c92e!==undefined&&(_0x5dcd0d[_0x432ed2]=_0x59c92e);}return _0x5dcd0d;}let showBriefHelp=![],description=a2_0x12e3fa(0x247);buildInfo['gitRevision']&&!currentVersion[a2_0x12e3fa(0x1bb)](buildInfo[a2_0x12e3fa(0x290)])?description+=a2_0x12e3fa(0x225)+currentVersion+'\x20('+buildInfo[a2_0x12e3fa(0x290)]+')':description+=a2_0x12e3fa(0x225)+currentVersion;program[a2_0x12e3fa(0x16b)](a2_0x12e3fa(0x24c))['description'](description),program[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x164),a2_0x12e3fa(0x299))['option'](a2_0x12e3fa(0xe7),a2_0x12e3fa(0x268))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x25c),a2_0x12e3fa(0x2ea),'us01')['option'](a2_0x12e3fa(0x362),a2_0x12e3fa(0x15d))['option'](a2_0x12e3fa(0x31b),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')['option']('--json',a2_0x12e3fa(0x339))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x360),a2_0x12e3fa(0xac))[a2_0x12e3fa(0x328)]('--tsv',a2_0x12e3fa(0x103))[a2_0x12e3fa(0x328)]('--output\x20<file>',a2_0x12e3fa(0x2a2))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x22f),a2_0x12e3fa(0x29c))['option'](a2_0x12e3fa(0x81),a2_0x12e3fa(0xe2),![])[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2e4),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x152),a2_0x12e3fa(0x331),![])[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x17b),a2_0x12e3fa(0x36c))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x131),a2_0x12e3fa(0x22e))['option']('--timeout\x20<seconds>',a2_0x12e3fa(0x143),'30')['option'](a2_0x12e3fa(0x282),a2_0x12e3fa(0x28b),![])['option'](a2_0x12e3fa(0xd4),a2_0x12e3fa(0x36b),![])[a2_0x12e3fa(0x328)]('--session\x20<id>',a2_0x12e3fa(0xdc))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x169),a2_0x12e3fa(0x2c3))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2c2),a2_0x12e3fa(0x18a)),program[a2_0x12e3fa(0xed)]({'formatHelp':(_0x37a978,_0x42554f)=>{const _0x253581=a2_0x12e3fa,_0x3e9c35=_0x42554f[_0x253581(0x20a)](_0x37a978,_0x42554f),_0x42beae=0x2,_0x5e2b6a=0x2;function _0x559b55(_0x4c86af){const _0xe95a64=_0x253581,_0x48ede8=_0x4c86af;return!!(_0x48ede8['_hidden']||_0x48ede8[_0xe95a64(0x2f0)]);}function _0x5a7bc2(_0x5cc354,_0x341fa8){const _0x33a0ef=_0x253581;if(_0x341fa8){const _0x4398b3=''+_0x5cc354[_0x33a0ef(0x175)](_0x3e9c35+_0x5e2b6a)+_0x341fa8;return _0x4398b3;}return _0x5cc354;}function _0x36abfe(_0x504824){const _0x20e8e9=_0x253581;return _0x504824[_0x20e8e9(0x294)]('\x0a')[_0x20e8e9(0xf1)](/^/gm,'\x20'['repeat'](_0x42beae));}const _0x4da44c=[];_0x4da44c[_0x253581(0x274)](_0x253581(0x1c0)+_0x42554f['commandUsage'](_0x37a978));const _0x4f32a3=_0x42554f['commandDescription'](_0x37a978);_0x4f32a3&&(_0x4da44c[_0x253581(0x274)](''),_0x4da44c[_0x253581(0x274)](_0x4f32a3));const _0xdbc0e6=_0x37a978['commands'][_0x253581(0x338)](_0x16c0b9=>!_0x559b55(_0x16c0b9));if(_0xdbc0e6[_0x253581(0x219)]>0x0){if(_0x37a978['name']()===_0x253581(0x24c)){const _0x3bb995=_0x37a978['opts'](),_0x25628e=!_0x3bb995[_0x253581(0x257)]&&process[_0x253581(0x33f)][_0x253581(0x387)],_0x5053e4=COMMAND_CATEGORIES,_0x52e1ec=(_0x8a6515,_0x3fa133)=>_0x25628e?_0x3fa133(_0x8a6515):_0x8a6515,_0x2177cc=new Map();_0xdbc0e6['forEach'](_0x48fefc=>{const _0x50050c=_0x253581;_0x2177cc[_0x50050c(0x98)](_0x48fefc[_0x50050c(0x16b)](),_0x48fefc);}),_0x5053e4[_0x253581(0x321)](_0xb57728=>{const _0x202c91=_0x253581,_0x48fb8c=_0xb57728['commands'][_0x202c91(0x227)](_0x275128=>_0x2177cc[_0x202c91(0x2de)](_0x275128)??[]);if(_0x48fb8c[_0x202c91(0x219)]>0x0){_0x4da44c[_0x202c91(0x274)](''),_0x4da44c[_0x202c91(0x274)](_0x52e1ec(_0xb57728['name']+':',_0xb57728['colorFn']));const _0x1138d5=_0x48fb8c[_0x202c91(0x20f)](_0x517063=>{const _0x1cf791=_0x202c91,_0x204cfb=_0x42554f[_0x1cf791(0x100)](_0x517063),_0x2f4801=_0x42554f[_0x1cf791(0x160)](_0x517063);return _0x5a7bc2(_0x204cfb,_0x2f4801);});_0x4da44c['push'](_0x36abfe(_0x1138d5));}}),_0x4da44c[_0x253581(0x274)](''),_0x4da44c[_0x253581(0x274)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x57e355=_0xdbc0e6['map'](_0x3ecaa8=>{const _0x2ac710=_0x253581,_0xc57ba6=_0x42554f['subcommandTerm'](_0x3ecaa8),_0x303061=_0x42554f[_0x2ac710(0x160)](_0x3ecaa8);return _0x5a7bc2(_0xc57ba6,_0x303061);});_0x4da44c[_0x253581(0x274)](''),_0x4da44c['push'](_0x253581(0x30a)),_0x4da44c['push'](_0x36abfe(_0x57e355));}}if(showBriefHelp&&_0x37a978[_0x253581(0x16b)]()==='tdx')_0x4da44c[_0x253581(0x274)](''),_0x4da44c[_0x253581(0x274)](_0x253581(0x37c));else{const _0x3f48a2=_0x37a978[_0x253581(0x118)][_0x253581(0x338)](_0x45bf78=>!_0x559b55(_0x45bf78));if(_0x3f48a2[_0x253581(0x219)]>0x0){const _0xa139b6=_0x3f48a2[_0x253581(0x20f)](_0x27b32f=>{const _0x486dcc=_0x253581,_0x4eabb1=_0x42554f[_0x486dcc(0xf4)](_0x27b32f),_0x5ad046=_0x42554f[_0x486dcc(0x304)](_0x27b32f);return _0x5a7bc2(_0x4eabb1,_0x5ad046);});_0x4da44c['push'](''),_0x4da44c['push'](_0x253581(0x1df)),_0x4da44c['push'](_0x36abfe(_0xa139b6));}}const _0x2c0a6f=(_0x37a978[_0x253581(0x2e7)]||[])[_0x253581(0x338)](_0x2b46f0=>!_0x559b55(_0x2b46f0));if(_0x2c0a6f[_0x253581(0x219)]>0x0){const _0x2ed941=_0x2c0a6f[_0x253581(0x20f)](_0x2346b2=>{const _0x3f2969=_0x253581,_0x5cbdfa=_0x42554f['argumentTerm'](_0x2346b2),_0x29429a=_0x42554f[_0x3f2969(0x2d2)](_0x2346b2);return _0x5a7bc2(_0x5cbdfa,_0x29429a);});_0x4da44c[_0x253581(0x274)](''),_0x4da44c[_0x253581(0x274)](_0x253581(0x1a7)),_0x4da44c[_0x253581(0x274)](_0x36abfe(_0x2ed941));}return _0x4da44c['join']('\x0a')+'\x0a';},'subcommandTerm':_0x7d9812=>{const _0x4413df=a2_0x12e3fa,_0x127583=(_0x7d9812['registeredArguments']||[])[_0x4413df(0x20f)](_0xa719b=>_0xa719b[_0x4413df(0x1c3)]?'<'+_0xa719b['name']()+'>':'['+_0xa719b['name']()+']')['join']('\x20'),_0x3f9b4d=_0x7d9812['aliases'](),_0x50e915=_0x3f9b4d[_0x4413df(0x219)]>0x0?_0x7d9812[_0x4413df(0x16b)]()+',\x20'+_0x3f9b4d['join'](',\x20'):_0x7d9812['name']();return _0x127583?_0x50e915+'\x20'+_0x127583:_0x50e915;}}),program[a2_0x12e3fa(0x194)](a2_0x12e3fa(0x22c),_0x2650d5=>{const _0x489b59=a2_0x12e3fa,_0x297cd5=_0x2650d5[_0x489b59(0xb2)]();if(_0x297cd5['directory']){const _0x5ba7ea=resolve(_0x297cd5[_0x489b59(0xce)]),_0x14a045=_0x5ba7ea!==_0x297cd5[_0x489b59(0xce)]?_0x489b59(0xdd)+_0x5ba7ea+')':'';if(!existsSync(_0x5ba7ea))throw new SDKError(ErrorCode[_0x489b59(0x345)],'Directory\x20does\x20not\x20exist:\x20'+_0x297cd5[_0x489b59(0xce)]+_0x14a045,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x5d35e2=statSync(_0x5ba7ea);if(!_0x5d35e2[_0x489b59(0x31a)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x297cd5[_0x489b59(0xce)]+_0x14a045,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process[_0x489b59(0x10b)](_0x5ba7ea);}if(!_0x297cd5[_0x489b59(0xd9)]){if(_0x297cd5['table'])_0x297cd5[_0x489b59(0xd9)]=_0x489b59(0x9a);else{if(_0x297cd5[_0x489b59(0x13c)])_0x297cd5[_0x489b59(0xd9)]='json';else{if(_0x297cd5[_0x489b59(0xf7)])_0x297cd5['format']=_0x489b59(0xf7);else _0x297cd5[_0x489b59(0x220)]&&(_0x297cd5['format']=_0x489b59(0x220));}}}if(_0x297cd5[_0x489b59(0x20b)])_0x297cd5[_0x489b59(0x302)]=LogLevel[_0x489b59(0x27a)];else{if(_0x297cd5[_0x489b59(0x258)])_0x297cd5['logLevel']=LogLevel['DEBUG'];else _0x297cd5[_0x489b59(0x302)]===undefined&&(_0x297cd5[_0x489b59(0x302)]=LogLevel[_0x489b59(0x123)]);}});async function createTDXInstance(_0x2806a4){const _0x5e4682=a2_0x12e3fa,_0x1b4cab=await GlobalContext['createAsync'](_0x2806a4);_0x1b4cab[_0x5e4682(0x1e6)](_0x2806a4);const _0x220b1=Number(_0x2806a4['timeout']),_0x5d33b1=!isNaN(_0x220b1)&&_0x220b1>0x0?_0x220b1*0x3e8:undefined;return TDX['create']({'site':_0x1b4cab[_0x5e4682(0x2dd)],'apiKey':_0x1b4cab[_0x5e4682(0x252)],'accessToken':_0x1b4cab['accessToken'],'logLevel':_0x1b4cab['logLevel'],'profile':_0x1b4cab[_0x5e4682(0x19b)],'timeout':_0x5d33b1});}const databaseCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x283))[a2_0x12e3fa(0x87)]('db')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x34a)),databaseListAction=async(_0x169223,_0x427bc3)=>{const _0x13ba3b=a2_0x12e3fa,_0x11b99b=new DatabasesCommand(),_0x51463f=program[_0x13ba3b(0xb2)](),_0x3acc87=await createTDXInstance(_0x51463f),_0x56cef5=await _0x11b99b[_0x13ba3b(0x1b3)]({'options':{..._0x51463f,..._0x427bc3},'args':_0x169223?[_0x169223]:[],'tdx':_0x3acc87});gracefulExit(_0x56cef5);};databaseCmd[a2_0x12e3fa(0x35f)]('list\x20[pattern]')['description'](a2_0x12e3fa(0x37d))['action'](databaseListAction),program[a2_0x12e3fa(0x35f)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x30c))[a2_0x12e3fa(0x161)](databaseListAction),program[a2_0x12e3fa(0x35f)]('chat\x20[message...]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x117))['option'](a2_0x12e3fa(0x80),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x232),a2_0x12e3fa(0x2d7))['option'](a2_0x12e3fa(0x27b),'Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')['option'](a2_0x12e3fa(0xee),a2_0x12e3fa(0x215))[a2_0x12e3fa(0x161)](async(_0x4d3cda,_0x127c56)=>{const _0x429cf1=a2_0x12e3fa,_0x2ac3b0=program[_0x429cf1(0xb2)](),_0x22b65a=await createTDXInstance(_0x2ac3b0);if(_0x4d3cda[0x0]===_0x429cf1(0x31c)){const _0x54c0ac=new ChatCreateCommand();gracefulExit(await _0x54c0ac[_0x429cf1(0x1b3)]({'options':{..._0x2ac3b0,..._0x127c56},'args':_0x4d3cda[_0x429cf1(0x375)](0x1),'tdx':_0x22b65a}));return;}const _0x1bf977=new ChatCommand(),_0xf25219=await _0x1bf977[_0x429cf1(0x1b3)]({'options':{..._0x2ac3b0,..._0x127c56},'args':_0x4d3cda,'tdx':_0x22b65a});gracefulExit(_0xf25219);});const apiCmd=program['command'](a2_0x12e3fa(0x29f))['summary'](a2_0x12e3fa(0x2bb))[a2_0x12e3fa(0x1da)](a2_0x12e3fa(0x2eb),a2_0x12e3fa(0xad))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x13b),a2_0x12e3fa(0x12e),'GET')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1d4),a2_0x12e3fa(0x1ff))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x22b),a2_0x12e3fa(0x211))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x28c),a2_0x12e3fa(0x198),(_0x594455,_0x1e11e2)=>{return _0x1e11e2?[..._0x1e11e2,_0x594455]:[_0x594455];})[a2_0x12e3fa(0x328)]('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x12e3fa(0x161)](async(_0x4d69a4,_0x582b6e)=>{const _0x22ae1d=a2_0x12e3fa;if(!_0x4d69a4){apiCmd['help']();return;}const _0x4ab100=new ApiCommand(),_0x35cd41=program[_0x22ae1d(0xb2)](),_0x27b5be=await createTDXInstance(_0x35cd41),_0x3f2ca7=await _0x4ab100[_0x22ae1d(0x1b3)]({'options':{..._0x35cd41,..._0x582b6e},'args':[_0x4d69a4],'tdx':_0x27b5be});gracefulExit(_0x3f2ca7);});program['command'](a2_0x12e3fa(0x293))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x297))['addHelpText'](a2_0x12e3fa(0x2eb),a2_0x12e3fa(0xb8))['action'](async _0x2e3669=>{const _0x285c83=a2_0x12e3fa,_0x461b32=new MCPCommand(),_0x37154d=program['opts'](),_0x27fecc=await createTDXInstance(_0x37154d),_0x5628e7=await _0x461b32[_0x285c83(0x1b3)]({'options':{..._0x37154d,..._0x2e3669},'args':[],'tdx':_0x27fecc});gracefulExit(_0x5628e7);});const tableCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x9a))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x17d)),tableListAction=async(_0x57cd98,_0x1d08e7)=>{const _0x322532=a2_0x12e3fa,_0x2d6754=new TablesCommand(),_0x1dd70d=program[_0x322532(0xb2)](),_0x36a6f3=await createTDXInstance(_0x1dd70d);_0x1d08e7['in']&&(_0x1d08e7['database']=_0x1d08e7['in']);const _0x19c370=await _0x2d6754[_0x322532(0x1b3)]({'options':{..._0x1dd70d,..._0x1d08e7},'args':_0x57cd98?[_0x57cd98]:[],'tdx':_0x36a6f3});gracefulExit(_0x19c370);};tableCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x307))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xc3))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1b5),a2_0x12e3fa(0x163))['option'](a2_0x12e3fa(0x148),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x12e3fa(0x161)](tableListAction),program[a2_0x12e3fa(0x35f)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x10d))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1b5),a2_0x12e3fa(0x163))['option'](a2_0x12e3fa(0x148),a2_0x12e3fa(0x29b))[a2_0x12e3fa(0x161)](tableListAction),program[a2_0x12e3fa(0x35f)]('show\x20[table]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1be))['option'](a2_0x12e3fa(0x1b5),a2_0x12e3fa(0x29d))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x148),a2_0x12e3fa(0x29b))[a2_0x12e3fa(0x161)](async(_0x476ec9,_0x33aac9)=>{const _0x29d74b=a2_0x12e3fa,_0x5f08c9=new ShowCommand(),_0x2eea65=program[_0x29d74b(0xb2)](),_0x509581=await createTDXInstance(_0x2eea65);_0x33aac9['in']&&(_0x33aac9[_0x29d74b(0x283)]=_0x33aac9['in']);const _0x3bec47=await _0x5f08c9[_0x29d74b(0x1b3)]({'options':{..._0x2eea65,..._0x33aac9},'args':_0x476ec9?[_0x476ec9]:[],'tdx':_0x509581});gracefulExit(_0x3bec47);}),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xc2))[a2_0x12e3fa(0x87)](a2_0x12e3fa(0xfd))[a2_0x12e3fa(0x301)]('Describe\x20table\x20schema')['option'](a2_0x12e3fa(0x1b5),a2_0x12e3fa(0x29d))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x148),a2_0x12e3fa(0x29b))['action'](async(_0x4c3dd8,_0x339289)=>{const _0x3ad759=a2_0x12e3fa,_0x9410d5=new DescribeCommand(),_0x25858f=program[_0x3ad759(0xb2)](),_0x2805fd=await createTDXInstance(_0x25858f);_0x339289['in']&&(_0x339289[_0x3ad759(0x283)]=_0x339289['in']);const _0x187ecd=await _0x9410d5[_0x3ad759(0x1b3)]({'options':{..._0x25858f,..._0x339289},'args':_0x4c3dd8?[_0x4c3dd8]:[],'tdx':_0x2805fd});gracefulExit(_0x187ecd);}),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xfc))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xa5))[a2_0x12e3fa(0x328)]('-d,\x20--database\x20<database>',a2_0x12e3fa(0x110))[a2_0x12e3fa(0x328)]('--in\x20<database>',a2_0x12e3fa(0x29b))['option'](a2_0x12e3fa(0x250),'Trino\x20catalog\x20(default:\x20td)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x22b),'Read\x20SQL\x20query\x20from\x20file')[a2_0x12e3fa(0x328)]('--limit\x20<rows>',a2_0x12e3fa(0x355))[a2_0x12e3fa(0x161)](async(_0x1b066b,_0x167594)=>{const _0x7bdca8=a2_0x12e3fa,_0x30bbc9=new QueryCommand(),_0x59aaed=program[_0x7bdca8(0xb2)](),_0xaa0f2f=await createTDXInstance(_0x59aaed);_0x167594['in']&&(_0x167594[_0x7bdca8(0x283)]=_0x167594['in']);const _0x429b8c=await _0x30bbc9['run']({'options':mergeCommandOptions(_0x59aaed,_0x167594),'args':_0x1b066b?[_0x1b066b]:[],'tdx':_0xaa0f2f});gracefulExit(_0x429b8c);});const segmentCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x206))[a2_0x12e3fa(0x87)]('sg')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xbd)),segmentListAction=async(_0x580a4f,_0xed15c)=>{const _0x52d760=a2_0x12e3fa,_0x528006=new SegmentsCommand(),_0x4957eb=program[_0x52d760(0xb2)](),_0x1831df=await createTDXInstance(_0x4957eb),_0x4f0c1c=await _0x528006[_0x52d760(0x1b3)]({'options':{..._0x4957eb,..._0xed15c},'args':_0x580a4f?[_0x580a4f]:[],'tdx':_0x1831df});gracefulExit(_0x4f0c1c);};segmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1d5))[a2_0x12e3fa(0x301)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2ba),a2_0x12e3fa(0x2b9))['option']('--max-depth\x20<depth>',a2_0x12e3fa(0xb9),'10')['action'](segmentListAction),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2a3),{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1ed))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2ba),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x19d),a2_0x12e3fa(0xb9),'10')[a2_0x12e3fa(0x161)](segmentListAction),segmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x253),{'hidden':!![]})['description']('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x12e3fa(0x161)](async(_0x269d52,_0x468e11)=>{const _0x4db446=a2_0x12e3fa,_0x2cb988=new SegmentUseCommand(),_0x980a97=program['opts'](),_0x475e42=await createTDXInstance(_0x980a97),_0x4e469d=await _0x2cb988[_0x4db446(0x1b3)]({'options':{..._0x980a97,..._0x468e11},'args':[_0x269d52],'tdx':_0x475e42});gracefulExit(_0x4e469d);});const segmentViewAction=async(_0x51e0d8,_0x2a1331)=>{const _0x28d236=a2_0x12e3fa,_0x6e1a64=new SegmentViewCommand(),_0x77ec41=program[_0x28d236(0xb2)](),_0x1ead70=await createTDXInstance(_0x77ec41),_0x11e38d=await _0x6e1a64[_0x28d236(0x1b3)]({'options':{..._0x77ec41,..._0x2a1331},'args':_0x51e0d8?[_0x51e0d8]:[],'tdx':_0x1ead70});gracefulExit(_0x11e38d);};segmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1f0))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1ba))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xd3),a2_0x12e3fa(0x23a))['action'](segmentViewAction),segmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2ee),{'hidden':!![]})[a2_0x12e3fa(0x87)](a2_0x12e3fa(0x364))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xd3),a2_0x12e3fa(0x23a))['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')['action'](segmentViewAction),segmentCmd[a2_0x12e3fa(0x35f)]('desc\x20[segment_name]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x316))[a2_0x12e3fa(0x161)](async(_0x5ac95d,_0x9ff7a0)=>{const _0x5ef902=a2_0x12e3fa,_0x378a5d=new SegmentDescCommand(),_0x3fec63=program[_0x5ef902(0xb2)](),_0x438e03=await createTDXInstance(_0x3fec63),_0x4564c0=await _0x378a5d[_0x5ef902(0x1b3)]({'options':{..._0x3fec63,..._0x9ff7a0},'args':_0x5ac95d?[_0x5ac95d]:[],'tdx':_0x438e03});gracefulExit(_0x4564c0);}),segmentCmd['command'](a2_0x12e3fa(0x2b4))['description'](a2_0x12e3fa(0x17e))[a2_0x12e3fa(0x161)](async(_0x1421d1,_0x94c89f)=>{const _0x1bd893=a2_0x12e3fa,_0x11a7b7=new SegmentShowCommand(),_0x314175=program[_0x1bd893(0xb2)](),_0x42f216=await createTDXInstance(_0x314175),_0xd7300b=await _0x11a7b7[_0x1bd893(0x1b3)]({'options':{..._0x314175,..._0x94c89f},'args':_0x1421d1?[_0x1421d1]:[],'tdx':_0x42f216});gracefulExit(_0xd7300b);}),segmentCmd[a2_0x12e3fa(0x35f)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x12e3fa(0x301)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x12e3fa(0x161)](async(_0x1c90a8,_0x3421c0)=>{const _0x34f03a=a2_0x12e3fa,_0x2a18ed=new SegmentFolderListCommand(),_0x1542f4=program[_0x34f03a(0xb2)](),_0x28e713=await createTDXInstance(_0x1542f4),_0x31e6f2=await _0x2a18ed[_0x34f03a(0x1b3)]({'options':{..._0x1542f4,..._0x3421c0},'args':[_0x1c90a8],'tdx':_0x28e713});gracefulExit(_0x31e6f2);});const folderCmd=segmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x11e),{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1ab));folderCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x17a))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x30b))['action'](async(_0x4353b4,_0x353af5)=>{const _0x5afc04=a2_0x12e3fa,_0x20ab48=new SegmentFolderShowCommand(),_0x33a643=program[_0x5afc04(0xb2)](),_0x3eb091=await createTDXInstance(_0x33a643),_0x469ab0=await _0x20ab48[_0x5afc04(0x1b3)]({'options':{..._0x33a643,..._0x353af5},'args':[_0x4353b4],'tdx':_0x3eb091});gracefulExit(_0x469ab0);}),segmentCmd['command'](a2_0x12e3fa(0x89))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2ad))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x212),a2_0x12e3fa(0xc9))[a2_0x12e3fa(0x161)](async(_0x1ea31e,_0x5c85a9)=>{const _0x3c3ec3=a2_0x12e3fa,_0x189234=new SegmentSQLCommand(),_0x4ce5a3=program[_0x3c3ec3(0xb2)](),_0x52ca92=await createTDXInstance(_0x4ce5a3),_0x54f65f=await _0x189234['run']({'options':{..._0x4ce5a3,..._0x5c85a9},'args':_0x1ea31e?[_0x1ea31e]:[],'tdx':_0x52ca92});gracefulExit(_0x54f65f);}),segmentCmd[a2_0x12e3fa(0x35f)]('fields\x20[parent_name]')[a2_0x12e3fa(0x301)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x12e3fa(0x161)](async(_0x5ab86e,_0xf51bd0)=>{const _0x350791=a2_0x12e3fa,_0xd6a768=new SegmentFieldsCommand(),_0x153d9b=program[_0x350791(0xb2)](),_0x1189b4=await createTDXInstance(_0x153d9b),_0x468f6b=await _0xd6a768[_0x350791(0x1b3)]({'options':{..._0x153d9b,..._0xf51bd0},'args':_0x5ab86e?[_0x5ab86e]:[],'tdx':_0x1189b4});gracefulExit(_0x468f6b);}),segmentCmd['command']('pull\x20[parent_or_file]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xe1))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x282),a2_0x12e3fa(0x147))[a2_0x12e3fa(0x161)](async(_0x2360a9,_0x13eae3)=>{const _0x48ab1e=a2_0x12e3fa,_0x1c5ff8=new SegmentPullCommand(),_0x162351=program[_0x48ab1e(0xb2)](),_0x213c78=await createTDXInstance(_0x162351),_0x5494c7=await _0x1c5ff8['run']({'options':{..._0x162351,..._0x13eae3},'args':_0x2360a9?[_0x2360a9]:[],'tdx':_0x213c78});gracefulExit(_0x5494c7);}),segmentCmd[a2_0x12e3fa(0x35f)]('push\x20[parent_or_file]')[a2_0x12e3fa(0x301)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x282),a2_0x12e3fa(0x147))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x12a),a2_0x12e3fa(0xfe))[a2_0x12e3fa(0x161)](async(_0x66ac82,_0x23c287)=>{const _0x336971=a2_0x12e3fa,_0x4fedd5=new SegmentPushCommand(),_0x4d41d6=program[_0x336971(0xb2)](),_0x3802c3=await createTDXInstance(_0x4d41d6),_0x3e26a0=await _0x4fedd5[_0x336971(0x1b3)]({'options':{..._0x4d41d6,..._0x23c287},'args':_0x66ac82?[_0x66ac82]:[],'tdx':_0x3802c3});gracefulExit(_0x3e26a0);}),segmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x32a))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1ce))['action'](async(_0x13531e,_0x478bb0)=>{const _0x5b393e=new SegmentValidateCommand(),_0x1be81f=program['opts'](),_0x235e3a=await createTDXInstance(_0x1be81f),_0x1d1b21=await _0x5b393e['run']({'options':{..._0x1be81f,..._0x478bb0},'args':_0x13531e?[_0x13531e]:[],'tdx':_0x235e3a});gracefulExit(_0x1d1b21);}),segmentCmd[a2_0x12e3fa(0x35f)]('create\x20<segment_name>',{'hidden':!![]})['description'](a2_0x12e3fa(0x1d1))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1d2),'Segment\x20description')['option']('--rule\x20<json>',a2_0x12e3fa(0x269))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x24f),a2_0x12e3fa(0x13f))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1db),a2_0x12e3fa(0x11f))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xaf),a2_0x12e3fa(0x2c1))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x317),a2_0x12e3fa(0x190))['option'](a2_0x12e3fa(0x162),a2_0x12e3fa(0xae))[a2_0x12e3fa(0x161)](async(_0x23f391,_0x539194)=>{const _0x504e07=a2_0x12e3fa,_0x9698f9=new SegmentCreateCommand(),_0x305dfb=program[_0x504e07(0xb2)](),_0x53f8ed=await createTDXInstance(_0x305dfb),_0x27fd89=await _0x9698f9[_0x504e07(0x1b3)]({'options':{..._0x305dfb,..._0x539194},'args':[_0x23f391],'tdx':_0x53f8ed});gracefulExit(_0x27fd89);}),segmentCmd['command'](a2_0x12e3fa(0xe5),{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2dc))['option'](a2_0x12e3fa(0x230),a2_0x12e3fa(0x195))['option'](a2_0x12e3fa(0x1d2),a2_0x12e3fa(0x137))[a2_0x12e3fa(0x328)]('--rule\x20<json>',a2_0x12e3fa(0xef))[a2_0x12e3fa(0x328)]('--rule-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1db),a2_0x12e3fa(0xb1))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xaf),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x12e3fa(0x161)](async(_0x5b609e,_0x3ded93)=>{const _0x10cfee=a2_0x12e3fa,_0x1be6d3=new SegmentUpdateCommand(),_0x5e17cb=program['opts'](),_0x58e4ba=await createTDXInstance(_0x5e17cb),_0xbfd92a=await _0x1be6d3[_0x10cfee(0x1b3)]({'options':{..._0x5e17cb,..._0x3ded93},'args':[_0x5b609e],'tdx':_0x58e4ba});gracefulExit(_0xbfd92a);});const parentCmd=segmentCmd[a2_0x12e3fa(0x35f)]('parent',{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x10f)),parentListAction=async(_0x26ee46,_0x107a4c)=>{const _0x54db83=a2_0x12e3fa,_0x2a6cec=new ParentSegmentListCommand(),_0x586ec5=program['opts'](),_0x590c83=await createTDXInstance(_0x586ec5),_0xb932cb=await _0x2a6cec[_0x54db83(0x1b3)]({'options':{..._0x586ec5,..._0x107a4c},'args':_0x26ee46?[_0x26ee46]:[],'tdx':_0x590c83});gracefulExit(_0xb932cb);};parentCmd[a2_0x12e3fa(0x35f)]('list\x20[pattern]')['description']('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x12e3fa(0x161)](parentListAction),segmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x38a),{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x25e))['action'](parentListAction),parentCmd['command'](a2_0x12e3fa(0x122))['description'](a2_0x12e3fa(0x2b0))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x189),a2_0x12e3fa(0x223))['action'](async(_0x33cf90,_0x18219e)=>{const _0x519a39=a2_0x12e3fa,_0x4df5bc=new ParentSegmentPullCommand(),_0x473238=program[_0x519a39(0xb2)](),_0x1f98a0=await createTDXInstance(_0x473238),_0x506c65=await _0x4df5bc[_0x519a39(0x1b3)]({'options':{..._0x473238,..._0x18219e},'args':_0x33cf90?[_0x33cf90]:[],'tdx':_0x1f98a0});gracefulExit(_0x506c65);}),parentCmd[a2_0x12e3fa(0x35f)]('push\x20[file]')['description'](a2_0x12e3fa(0x349))[a2_0x12e3fa(0x161)](async(_0x53fa53,_0x5c6e1b)=>{const _0x150863=a2_0x12e3fa,_0x33e276=new ParentSegmentPushCommand(),_0x169b41=program[_0x150863(0xb2)](),_0x3c6648=await createTDXInstance(_0x169b41),_0x3eec57=await _0x33e276[_0x150863(0x1b3)]({'options':{..._0x169b41,..._0x5c6e1b},'args':_0x53fa53?[_0x53fa53]:[],'tdx':_0x3c6648});gracefulExit(_0x3eec57);}),parentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x348))[a2_0x12e3fa(0x301)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2b8),a2_0x12e3fa(0x363))[a2_0x12e3fa(0x328)]('--attribute\x20[name]',a2_0x12e3fa(0x34c))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1af),a2_0x12e3fa(0x166))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x119),a2_0x12e3fa(0x251))['option'](a2_0x12e3fa(0x261),a2_0x12e3fa(0x1e7),a2_0x12e3fa(0x16d))['action'](async(_0x411feb,_0x46a0ef)=>{const _0x52ee32=a2_0x12e3fa,_0x3f4fe3=new ParentSegmentValidateCommand(),_0x51b6a8=program['opts'](),_0x2c11f9=await createTDXInstance(_0x51b6a8),_0x5e0621=await _0x3f4fe3[_0x52ee32(0x1b3)]({'options':{..._0x51b6a8,..._0x46a0ef},'args':_0x411feb?[_0x411feb]:[],'tdx':_0x2c11f9});gracefulExit(_0x5e0621);}),parentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x15f))['description'](a2_0x12e3fa(0x31e))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2b8),a2_0x12e3fa(0x27f))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x11a),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')['option'](a2_0x12e3fa(0x1af),a2_0x12e3fa(0x138))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x119),a2_0x12e3fa(0x1cc))['option'](a2_0x12e3fa(0x261),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x12e3fa(0x161)](async(_0x396a47,_0x3003a7)=>{const _0x56e495=a2_0x12e3fa,_0xe2b7e2=new ParentSegmentPreviewCommand(),_0x49f1de=program[_0x56e495(0xb2)](),_0x297ef5=await createTDXInstance(_0x49f1de),_0x29ffc5=await _0xe2b7e2[_0x56e495(0x1b3)]({'options':{..._0x49f1de,..._0x3003a7},'args':_0x396a47?[_0x396a47]:[],'tdx':_0x297ef5});gracefulExit(_0x29ffc5);}),parentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2d9))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x38c))[a2_0x12e3fa(0x161)](async(_0x74b108,_0x367807)=>{const _0x55ae8c=a2_0x12e3fa,_0x4e5212=new ParentSegmentRunCommand(),_0x254fb9=program[_0x55ae8c(0xb2)](),_0x3f767e=await createTDXInstance(_0x254fb9),_0x3fb1c5=await _0x4e5212[_0x55ae8c(0x1b3)]({'options':{..._0x254fb9,..._0x367807},'args':_0x74b108?[_0x74b108]:[],'tdx':_0x3f767e});gracefulExit(_0x3fb1c5);});const parentSegmentCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x8d))[a2_0x12e3fa(0x87)]('ps')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x288));parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x307))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2e1))['action'](parentListAction),parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x122))['description'](a2_0x12e3fa(0x15a))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x189),a2_0x12e3fa(0x193))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x334),a2_0x12e3fa(0x226))['action'](async(_0x57aa9a,_0x26b235)=>{const _0x333335=a2_0x12e3fa,_0x239e7e=new ParentSegmentPullCommand(),_0x6ef8f1=program[_0x333335(0xb2)](),_0x50e684=await createTDXInstance(_0x6ef8f1),_0x231ad9=await _0x239e7e[_0x333335(0x1b3)]({'options':{..._0x6ef8f1,..._0x26b235},'args':_0x57aa9a?[_0x57aa9a]:[],'tdx':_0x50e684});gracefulExit(_0x231ad9);}),parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1b6))[a2_0x12e3fa(0x301)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x12e3fa(0x161)](async(_0x4aab98,_0x2ddb45)=>{const _0x5dd7b2=a2_0x12e3fa,_0x1d815b=new ParentSegmentPushCommand(),_0x3ae41e=program[_0x5dd7b2(0xb2)](),_0x3fc994=await createTDXInstance(_0x3ae41e),_0x1c7823=await _0x1d815b[_0x5dd7b2(0x1b3)]({'options':{..._0x3ae41e,..._0x2ddb45},'args':_0x4aab98?[_0x4aab98]:[],'tdx':_0x3fc994});gracefulExit(_0x1c7823);}),parentSegmentCmd[a2_0x12e3fa(0x35f)]('validate\x20[name]')['description'](a2_0x12e3fa(0x171))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2b8),'Show\x20only\x20master\x20table\x20validation')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x11a),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1af),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x119),a2_0x12e3fa(0x251))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x261),a2_0x12e3fa(0x1e7),a2_0x12e3fa(0x16d))[a2_0x12e3fa(0x161)](async(_0x40128e,_0x3cc82b)=>{const _0x10950a=a2_0x12e3fa,_0x42055e=new ParentSegmentValidateCommand(),_0x11de3c=program['opts'](),_0x4b60a1=await createTDXInstance(_0x11de3c),_0x419bf1=await _0x42055e[_0x10950a(0x1b3)]({'options':{..._0x11de3c,..._0x3cc82b},'args':_0x40128e?[_0x40128e]:[],'tdx':_0x4b60a1});gracefulExit(_0x419bf1);}),parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1f1))[a2_0x12e3fa(0x301)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option']('--master',a2_0x12e3fa(0x27f))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x11a),a2_0x12e3fa(0x2a6))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1af),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x12e3fa(0x119),a2_0x12e3fa(0x1cc))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x261),a2_0x12e3fa(0x1e7),a2_0x12e3fa(0x16d))['action'](async(_0x37c7b3,_0x252788)=>{const _0x3f9a2b=a2_0x12e3fa,_0x5e5aa4=new ParentSegmentPreviewCommand(),_0x2e26b8=program['opts'](),_0xca7799=await createTDXInstance(_0x2e26b8),_0x1c9521=await _0x5e5aa4[_0x3f9a2b(0x1b3)]({'options':{..._0x2e26b8,..._0x252788},'args':_0x37c7b3?[_0x37c7b3]:[],'tdx':_0xca7799});gracefulExit(_0x1c9521);}),parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2d9))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x38c))[a2_0x12e3fa(0x161)](async(_0x589e26,_0x170755)=>{const _0x2de247=a2_0x12e3fa,_0x428c5d=new ParentSegmentRunCommand(),_0x507d60=program[_0x2de247(0xb2)](),_0x238f18=await createTDXInstance(_0x507d60),_0x1f9d3d=await _0x428c5d['run']({'options':{..._0x507d60,..._0x170755},'args':_0x589e26?[_0x589e26]:[],'tdx':_0x238f18});gracefulExit(_0x1f9d3d);}),parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x12b))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xba),a2_0x12e3fa(0x340))[a2_0x12e3fa(0x328)]('--jsonl',a2_0x12e3fa(0x19a))['action'](async(_0x475251,_0x57f815)=>{const _0x3ef024=a2_0x12e3fa,_0x238270=new ParentSegmentFieldsCommand(),_0x25d8d7=program[_0x3ef024(0xb2)](),_0x1d375e=await createTDXInstance(_0x25d8d7),_0x48d2b7=await _0x238270[_0x3ef024(0x1b3)]({'options':{..._0x25d8d7,..._0x57f815},'args':_0x475251?[_0x475251]:[],'tdx':_0x1d375e});gracefulExit(_0x48d2b7);}),parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x329))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1c8))['option'](a2_0x12e3fa(0xd3),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xba),'Output\x20as\x20JSON')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x360),a2_0x12e3fa(0x19a))[a2_0x12e3fa(0x161)](async(_0x560339,_0x3c5b93)=>{const _0xe5b880=a2_0x12e3fa,_0xfdb900=new ParentSegmentViewCommand(),_0x499b90=program[_0xe5b880(0xb2)](),_0x25ad14=await createTDXInstance(_0x499b90),_0x52955c=await _0xfdb900['run']({'options':{..._0x499b90,..._0x3c5b93},'args':_0x560339?[_0x560339]:[],'tdx':_0x25ad14});gracefulExit(_0x52955c);}),parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x16e))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2fe))[a2_0x12e3fa(0x328)]('-o,\x20--output\x20<file>',a2_0x12e3fa(0x193))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xba),a2_0x12e3fa(0x340))[a2_0x12e3fa(0x328)]('--jsonl','Output\x20as\x20JSON\x20Lines')['action'](async(_0xf21220,_0x22aaff)=>{const _0x4e98da=a2_0x12e3fa,_0x365a72=new ParentSegmentDescCommand(),_0x281eb3=program[_0x4e98da(0xb2)](),_0x47235e=await createTDXInstance(_0x281eb3),_0x24dc3f=await _0x365a72['run']({'options':{..._0x281eb3,..._0x22aaff},'args':_0xf21220?[_0xf21220]:[],'tdx':_0x47235e});gracefulExit(_0x24dc3f);}),parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xe8))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x21d))[a2_0x12e3fa(0x328)]('--json',a2_0x12e3fa(0x340))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x360),a2_0x12e3fa(0x19a))['action'](async(_0x37eaa4,_0x40c6b8)=>{const _0x47e84d=new ParentSegmentSQLCommand(),_0x21a337=program['opts'](),_0x37f783=await createTDXInstance(_0x21a337),_0x49e130=await _0x47e84d['run']({'options':{..._0x21a337,..._0x40c6b8},'args':_0x37eaa4?[_0x37eaa4]:[],'tdx':_0x37f783});gracefulExit(_0x49e130);}),parentSegmentCmd['command']('show\x20[name]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x167))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x93),a2_0x12e3fa(0x13e))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xba),a2_0x12e3fa(0x340))['option'](a2_0x12e3fa(0x360),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x5e083a,_0x1ec2c9)=>{const _0x5ca685=a2_0x12e3fa,_0x393f7a=new ParentSegmentShowCommand(),_0x40fbeb=program[_0x5ca685(0xb2)](),_0x3c46a4=await createTDXInstance(_0x40fbeb),_0x1523ff=await _0x393f7a['run']({'options':{..._0x40fbeb,..._0x1ec2c9},'args':_0x5e083a?[_0x5e083a]:[],'tdx':_0x3c46a4});gracefulExit(_0x1523ff);}),parentSegmentCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x315))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x240))[a2_0x12e3fa(0x161)](async(_0x2affc7,_0xdf6e02)=>{const _0x52a75e=a2_0x12e3fa,_0x52b898=new UseCommand(),_0x506f44=program['opts'](),_0x477841=_0x2affc7?[_0x52a75e(0x28d),_0x2affc7]:[],_0x48b8eb=await _0x52b898['run']({'options':{..._0x506f44,..._0xdf6e02},'args':_0x477841,'tdx':null});gracefulExit(_0x48b8eb);});const psRtCmd=parentSegmentCmd['command']('rt')['description']('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x12e3fa(0x35f)]('list\x20[pattern]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x264))[a2_0x12e3fa(0x161)](async(_0x2b5c2f,_0x2bb48b)=>{const _0x15b160=a2_0x12e3fa,_0x261d6f=new PSRtListCommand(),_0x48c319=program[_0x15b160(0xb2)](),_0x112261=await createTDXInstance(_0x48c319),_0x2119c2=await _0x261d6f['run']({'options':{..._0x48c319,..._0x2bb48b},'args':_0x2b5c2f?[_0x2b5c2f]:[],'tdx':_0x112261});gracefulExit(_0x2119c2);}),psRtCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xb3))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1f7))[a2_0x12e3fa(0x161)](async(_0x2a9591,_0x3be2a8)=>{const _0xda1c71=a2_0x12e3fa,_0x2616dd=new PSRtValidateCommand(),_0x55503d=program['opts'](),_0xa93965=await createTDXInstance(_0x55503d),_0x2fb4e9=await _0x2616dd[_0xda1c71(0x1b3)]({'options':{..._0x55503d,..._0x3be2a8},'args':_0x2a9591?[_0x2a9591]:[],'tdx':_0xa93965});gracefulExit(_0x2fb4e9);}),psRtCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x308))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2e8))[a2_0x12e3fa(0x161)](async(_0xdd67af,_0x2d566b)=>{const _0x436722=a2_0x12e3fa,_0x3206c8=new PSRtConfigVersionCommand(),_0x3bd19a=program[_0x436722(0xb2)](),_0x1115f2=await createTDXInstance(_0x3bd19a),_0x436903=await _0x3206c8[_0x436722(0x1b3)]({'options':{..._0x3bd19a,..._0x2d566b},'args':_0xdd67af?[_0xdd67af]:[],'tdx':_0x1115f2});gracefulExit(_0x436903);});const psRtJnCmd=psRtCmd['command']('jn')['description'](a2_0x12e3fa(0x159));psRtJnCmd['command'](a2_0x12e3fa(0x20d))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x256))[a2_0x12e3fa(0x161)](async(_0x4c14f9,_0x223121)=>{const _0x34b786=a2_0x12e3fa,_0x469d75=new PSRtJnListCommand(),_0x2f9df9=program['opts'](),_0x27f168=await createTDXInstance(_0x2f9df9),_0x2b0f3b=await _0x469d75[_0x34b786(0x1b3)]({'options':{..._0x2f9df9,..._0x223121},'args':_0x4c14f9?[_0x4c14f9]:[],'tdx':_0x27f168});gracefulExit(_0x2b0f3b);}),psRtJnCmd['command']('pause_activations\x20<journeyId>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x21b))[a2_0x12e3fa(0x161)](async(_0x222b24,_0x432833)=>{const _0x30146d=a2_0x12e3fa,_0x33de13=new PSRtJnPauseCommand(),_0x4dca52=program['opts'](),_0x42c8b2=await createTDXInstance(_0x4dca52),_0x4f08a3=await _0x33de13[_0x30146d(0x1b3)]({'options':{..._0x4dca52,..._0x432833},'args':[_0x222b24],'tdx':_0x42c8b2});gracefulExit(_0x4f08a3);}),psRtJnCmd[a2_0x12e3fa(0x35f)]('resume_activations\x20<journeyId>')[a2_0x12e3fa(0x301)]('Resume\x20activations\x20in\x20an\x20RT\x20journey')[a2_0x12e3fa(0x161)](async(_0x2840cb,_0x5e40ab)=>{const _0x41e7cb=a2_0x12e3fa,_0x9c86e=new PSRtJnResumeCommand(),_0x3a8819=program['opts'](),_0x17c6f8=await createTDXInstance(_0x3a8819),_0x1dc0ae=await _0x9c86e[_0x41e7cb(0x1b3)]({'options':{..._0x3a8819,..._0x5e40ab},'args':[_0x2840cb],'tdx':_0x17c6f8});gracefulExit(_0x1dc0ae);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x157));parentRtCmd[a2_0x12e3fa(0x35f)]('list\x20[pattern]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x264))[a2_0x12e3fa(0x161)](async(_0x57348d,_0x254892)=>{const _0x139482=a2_0x12e3fa,_0x3ccc3b=new PSRtListCommand(),_0xd9b3a5=program['opts'](),_0x5c984d=await createTDXInstance(_0xd9b3a5),_0x49a538=await _0x3ccc3b[_0x139482(0x1b3)]({'options':{..._0xd9b3a5,..._0x254892},'args':_0x57348d?[_0x57348d]:[],'tdx':_0x5c984d});gracefulExit(_0x49a538);}),parentRtCmd[a2_0x12e3fa(0x35f)]('validate\x20[name]')['description']('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')[a2_0x12e3fa(0x161)](async(_0x5224b1,_0x496b27)=>{const _0x5b9231=a2_0x12e3fa,_0x3a64a9=new PSRtValidateCommand(),_0x2e9d5b=program[_0x5b9231(0xb2)](),_0x2b9dd1=await createTDXInstance(_0x2e9d5b),_0x5055b4=await _0x3a64a9['run']({'options':{..._0x2e9d5b,..._0x496b27},'args':_0x5224b1?[_0x5224b1]:[],'tdx':_0x2b9dd1});gracefulExit(_0x5055b4);});const psPzCmd=parentSegmentCmd[a2_0x12e3fa(0x35f)]('pz')[a2_0x12e3fa(0x301)]('Personalization\x20management');psPzCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x20d))[a2_0x12e3fa(0x301)]('List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x12e3fa(0x161)](async(_0x2e1c2e,_0x3a7724)=>{const _0x515815=a2_0x12e3fa,_0x487ccd=new PSPzListCommand(),_0x5772c8=program[_0x515815(0xb2)](),_0x19e22b=await createTDXInstance(_0x5772c8),_0x471f43=await _0x487ccd[_0x515815(0x1b3)]({'options':{..._0x5772c8,..._0x3a7724},'args':_0x2e1c2e?[_0x2e1c2e]:[],'tdx':_0x19e22b});gracefulExit(_0x471f43);}),psPzCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1f3))[a2_0x12e3fa(0x301)]('Show\x20a\x20specific\x20realtime\x20personalization')[a2_0x12e3fa(0x161)](async(_0x3967c4,_0xbfac6e)=>{const _0x1379b4=a2_0x12e3fa,_0x3545f4=new PSPzShowCommand(),_0x17aa38=program['opts'](),_0xc7f4e0=await createTDXInstance(_0x17aa38),_0xb0cc66=await _0x3545f4[_0x1379b4(0x1b3)]({'options':{..._0x17aa38,..._0xbfac6e},'args':[_0x3967c4],'tdx':_0xc7f4e0});gracefulExit(_0xb0cc66);}),psPzCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2c4))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x29a))[a2_0x12e3fa(0x161)](async(_0x230069,_0x23b67a)=>{const _0xef6a25=a2_0x12e3fa,_0x4ad66e=new PSPzDeleteCommand(),_0x182f99=program[_0xef6a25(0xb2)](),_0x2fd6d8=await createTDXInstance(_0x182f99),_0xa1035c=await _0x4ad66e[_0xef6a25(0x1b3)]({'options':{..._0x182f99,..._0x23b67a},'args':[_0x230069],'tdx':_0x2fd6d8});gracefulExit(_0xa1035c);}),psPzCmd[a2_0x12e3fa(0x35f)]('create')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x21a))[a2_0x12e3fa(0x328)]('--name\x20<text>',a2_0x12e3fa(0x357))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1d2),'Personalization\x20description')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1fb),'Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted')[a2_0x12e3fa(0x328)]('--folder-id\x20<id>','Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x287),'Sections\x20as\x20an\x20inline\x20JSON\x20array')[a2_0x12e3fa(0x328)]('--file\x20<path>','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)')['action'](async _0x17053f=>{const _0x36d9d9=a2_0x12e3fa,_0x3fe941=new PSPzCreateCommand(),_0x137f38=program[_0x36d9d9(0xb2)](),_0x46f794=await createTDXInstance(_0x137f38),_0x70db40=await _0x3fe941['run']({'options':{..._0x137f38,..._0x17053f},'args':[],'tdx':_0x46f794});gracefulExit(_0x70db40);}),psPzCmd['command']('patch\x20<personalization_id>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1eb))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xd8),a2_0x12e3fa(0x357))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1d2),'Personalization\x20description')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x287),a2_0x12e3fa(0x310))['option'](a2_0x12e3fa(0x11b),a2_0x12e3fa(0x2ae))['action'](async(_0x24b9e7,_0x10167f)=>{const _0x3df32f=a2_0x12e3fa,_0x18464c=new PSPzPatchCommand(),_0x2b84e=program['opts'](),_0x138912=await createTDXInstance(_0x2b84e),_0x558c39=await _0x18464c[_0x3df32f(0x1b3)]({'options':{..._0x2b84e,..._0x10167f},'args':[_0x24b9e7],'tdx':_0x138912});gracefulExit(_0x558c39);});const psPzServiceCmd=psPzCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x165))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x28e));psPzServiceCmd[a2_0x12e3fa(0x35f)]('list\x20[name]')[a2_0x12e3fa(0x301)]('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x12e3fa(0x161)](async(_0x550942,_0x14b14f)=>{const _0x2c6cd8=a2_0x12e3fa,_0x3256d8=new PSPzServiceListCommand(),_0x262c60=program['opts'](),_0x3e9388=await createTDXInstance(_0x262c60),_0x32c1d5=await _0x3256d8[_0x2c6cd8(0x1b3)]({'options':{..._0x262c60,..._0x14b14f},'args':_0x550942?[_0x550942]:[],'tdx':_0x3e9388});gracefulExit(_0x32c1d5);}),psPzServiceCmd['command'](a2_0x12e3fa(0x140))[a2_0x12e3fa(0x301)]('Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)')['option'](a2_0x12e3fa(0x1d2),'Service\x20description')[a2_0x12e3fa(0x328)]('--public',a2_0x12e3fa(0xec))[a2_0x12e3fa(0x161)](async(_0x5e90ee,_0x52a419,_0x182bb9)=>{const _0x596697=a2_0x12e3fa,_0x1fa507=new PSPzServiceCreateCommand(),_0x25c711=program['opts'](),_0x149b7a=await createTDXInstance(_0x25c711),_0x3018ac=await _0x1fa507[_0x596697(0x1b3)]({'options':{..._0x25c711,..._0x182bb9},'args':_0x52a419?[_0x5e90ee,_0x52a419]:[_0x5e90ee],'tdx':_0x149b7a});gracefulExit(_0x3018ac);}),psPzServiceCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2bc))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x12f))['action'](async(_0x23c23b,_0x4f286f,_0x5cc603)=>{const _0x450e9e=a2_0x12e3fa,_0x43a941=new PSPzServiceShowCommand(),_0x446586=program[_0x450e9e(0xb2)](),_0x22b1b9=await createTDXInstance(_0x446586),_0x230205=await _0x43a941[_0x450e9e(0x1b3)]({'options':{..._0x446586,..._0x5cc603},'args':_0x4f286f?[_0x23c23b,_0x4f286f]:[_0x23c23b],'tdx':_0x22b1b9});gracefulExit(_0x230205);}),psPzServiceCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2fd))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2d5))[a2_0x12e3fa(0x161)](async(_0x52d048,_0x19e9e6,_0x2e182a)=>{const _0xb83fcd=a2_0x12e3fa,_0x3f8f64=new PSPzServiceDeleteCommand(),_0x1f60c4=program['opts'](),_0x251fc3=await createTDXInstance(_0x1f60c4),_0x4af715=await _0x3f8f64[_0xb83fcd(0x1b3)]({'options':{..._0x1f60c4,..._0x2e182a},'args':_0x19e9e6?[_0x52d048,_0x19e9e6]:[_0x52d048],'tdx':_0x251fc3});gracefulExit(_0x4af715);}),psPzServiceCmd['command'](a2_0x12e3fa(0x1a1))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x205))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x36d),'New\x20service\x20name')['option']('--description\x20<text>',a2_0x12e3fa(0x26c))[a2_0x12e3fa(0x161)](async(_0x33366c,_0x515354,_0x12f472)=>{const _0x2a83e0=new PSPzServiceUpdateCommand(),_0x4031f2=program['opts'](),_0x5f425c=await createTDXInstance(_0x4031f2),_0x4d6fc1=await _0x2a83e0['run']({'options':{..._0x4031f2,..._0x12f472},'args':_0x515354?[_0x33366c,_0x515354]:[_0x33366c],'tdx':_0x5f425c});gracefulExit(_0x4d6fc1);}),psPzServiceCmd['command']('init\x20[name]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2d4))['action'](async(_0x11a3d4,_0x58702a)=>{const _0x5d07bf=a2_0x12e3fa,_0x4e14e6=new PSPzInitCommand(),_0x4627e0=program[_0x5d07bf(0xb2)](),_0x271eb6=await createTDXInstance(_0x4627e0),_0x529740=await _0x4e14e6['run']({'options':{..._0x4627e0,..._0x58702a},'args':_0x11a3d4?[_0x11a3d4]:[],'tdx':_0x271eb6});gracefulExit(_0x529740);});const psPzServiceTokenCmd=psPzServiceCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x14d))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x372));psPzServiceTokenCmd[a2_0x12e3fa(0x35f)]('create\x20<name>\x20<service_id>\x20[parent_segment]')['description'](a2_0x12e3fa(0xb4))['option']('--allowed-ips\x20<ips>',a2_0x12e3fa(0x1ca))['option']('--description\x20<text>',a2_0x12e3fa(0x380))[a2_0x12e3fa(0x161)](async(_0x194abc,_0x37c19f,_0x3194e3,_0x1277e6)=>{const _0x4b26cc=a2_0x12e3fa,_0x57dc55=new PSPzServiceTokenCreateCommand(),_0x112422=program[_0x4b26cc(0xb2)](),_0x5894db=await createTDXInstance(_0x112422),_0x543485=await _0x57dc55[_0x4b26cc(0x1b3)]({'options':{..._0x112422,..._0x1277e6},'args':_0x3194e3?[_0x194abc,_0x37c19f,_0x3194e3]:[_0x194abc,_0x37c19f],'tdx':_0x5894db});gracefulExit(_0x543485);}),psPzServiceTokenCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x8b))['description'](a2_0x12e3fa(0xb6))[a2_0x12e3fa(0x161)](async(_0x1b5099,_0xec7499,_0xb6161f)=>{const _0x1a42f7=a2_0x12e3fa,_0x2879d4=new PSPzServiceTokenDeleteCommand(),_0x46b4ed=program[_0x1a42f7(0xb2)](),_0x343468=await createTDXInstance(_0x46b4ed),_0x2a6fa3=await _0x2879d4[_0x1a42f7(0x1b3)]({'options':{..._0x46b4ed,..._0xb6161f},'args':_0xec7499?[_0x1b5099,_0xec7499]:[_0x1b5099],'tdx':_0x343468});gracefulExit(_0x2a6fa3);}),parentCmd['command']('create\x20<name>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x241))['requiredOption']('--database\x20<db>',a2_0x12e3fa(0x111))[a2_0x12e3fa(0x2e6)]('--table\x20<table>','Master\x20table\x20name')['option']('--description\x20<text>','Parent\x20segment\x20description')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x116),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xe6),a2_0x12e3fa(0xd1))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x27c),a2_0x12e3fa(0xd0))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x367),a2_0x12e3fa(0x381))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x130),a2_0x12e3fa(0x2a7))[a2_0x12e3fa(0x328)]('--behaviors\x20<json>',a2_0x12e3fa(0x95))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x156),a2_0x12e3fa(0x1d8))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x14b),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x15c),a2_0x12e3fa(0x2ab))[a2_0x12e3fa(0x161)](async(_0x18b70b,_0x512b45)=>{const _0x43718a=a2_0x12e3fa,_0x318f1b=new ParentSegmentCreateCommand(),_0x5a3fd4=program['opts'](),_0x1d9e27=await createTDXInstance(_0x5a3fd4),_0x62b8ff=await _0x318f1b[_0x43718a(0x1b3)]({'options':{..._0x5a3fd4,..._0x512b45},'args':[_0x18b70b],'tdx':_0x1d9e27});gracefulExit(_0x62b8ff);}),parentCmd[a2_0x12e3fa(0x35f)]('update\x20<name>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x174))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1d2),'Updated\x20description')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x116),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x12e3fa(0x328)]('--schedule-option\x20<value>',a2_0x12e3fa(0x359))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x27c),a2_0x12e3fa(0x1c7))['option'](a2_0x12e3fa(0x29e),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1b1),a2_0x12e3fa(0x19c))[a2_0x12e3fa(0x328)]('--add-behaviors\x20<json>',a2_0x12e3fa(0x2af))['option'](a2_0x12e3fa(0x18b),a2_0x12e3fa(0x1bf))['action'](async(_0x35e534,_0x15f9a6)=>{const _0x12b487=a2_0x12e3fa,_0x521b2e=new ParentSegmentUpdateCommand(),_0x5c9156=program[_0x12b487(0xb2)](),_0x5d0b20=await createTDXInstance(_0x5c9156),_0x28bbec=await _0x521b2e['run']({'options':{..._0x5c9156,..._0x15f9a6},'args':[_0x35e534],'tdx':_0x5d0b20});gracefulExit(_0x28bbec);}),folderCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x86))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x231))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1d2),a2_0x12e3fa(0x1b7))[a2_0x12e3fa(0x328)]('--parent-folder\x20<name>','Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x12e3fa(0x161)](async(_0x4df555,_0x3fbe76,_0x1e2c80)=>{const _0x5e6a20=a2_0x12e3fa,_0x2167a1=new SegmentFolderCreateCommand(),_0x50a45a=program[_0x5e6a20(0xb2)](),_0x25426f=await createTDXInstance(_0x50a45a),_0x4d42e0=await _0x2167a1[_0x5e6a20(0x1b3)]({'options':{..._0x50a45a,..._0x1e2c80},'args':[_0x4df555,_0x3fbe76],'tdx':_0x25426f});gracefulExit(_0x4d42e0);}),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1a0))['description']('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')['action'](async(_0x2d81c4,_0x48000f)=>{const _0x392886=a2_0x12e3fa,_0x268925=new ActivationsCommand(),_0x474b46=program[_0x392886(0xb2)](),_0x17545f=await createTDXInstance(_0x474b46),_0x463712=await _0x268925[_0x392886(0x1b3)]({'options':{..._0x474b46,..._0x48000f},'args':[_0x2d81c4],'tdx':_0x17545f});gracefulExit(_0x463712);});const workflowCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x102))['alias']('wf')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1f8)),wfProjectCmd=workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x265))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x262)),wfProjectListAction=async(_0x494f10,_0x265532)=>{const _0x264b07=a2_0x12e3fa,_0x524c50=new WorkflowProjectsCommand(),_0x25ea12=program[_0x264b07(0xb2)](),_0x2a55fc=await createTDXInstance(_0x25ea12),_0x248b6a=await _0x524c50['run']({'options':{..._0x25ea12,..._0x265532},'args':_0x494f10?[_0x494f10]:[],'tdx':_0x2a55fc});gracefulExit(_0x248b6a);};wfProjectCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x307))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x298))[a2_0x12e3fa(0x161)](wfProjectListAction),workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x303))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x19f))[a2_0x12e3fa(0x161)](wfProjectListAction);const wfWorkflowListAction=async(_0x27c351,_0x3a457b)=>{const _0x3029c0=a2_0x12e3fa,_0x55646c=new WorkflowWorkflowsCommand(),_0x135586=program[_0x3029c0(0xb2)](),_0x29d6a0=await createTDXInstance(_0x135586),_0x53bfc1=await _0x55646c[_0x3029c0(0x1b3)]({'options':{..._0x135586,..._0x3a457b},'args':_0x27c351?[_0x27c351]:[],'tdx':_0x29d6a0});gracefulExit(_0x53bfc1);};workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x36f))['description'](a2_0x12e3fa(0x184))[a2_0x12e3fa(0x161)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command']('session')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x25d)),wfSessionListAction=async(_0x18172f,_0x4bb5a0)=>{const _0x3962a9=a2_0x12e3fa,_0x4c7722=new WorkflowSessionsCommand(),_0x3cbd66=program['opts'](),_0x365b70=await createTDXInstance(_0x3cbd66),_0x5d6f19=await _0x4c7722[_0x3962a9(0x1b3)]({'options':{..._0x3cbd66,..._0x4bb5a0},'args':_0x18172f?[_0x18172f]:[],'tdx':_0x365b70});gracefulExit(_0x5d6f19);};wfSessionCmd['command'](a2_0x12e3fa(0x34f))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x236))[a2_0x12e3fa(0x328)]('--status\x20<status>',a2_0x12e3fa(0x351))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1ee),a2_0x12e3fa(0xcf))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1e3),a2_0x12e3fa(0x1ec))[a2_0x12e3fa(0x161)](wfSessionListAction),workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x324))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xa6))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2fb),a2_0x12e3fa(0x351))[a2_0x12e3fa(0x328)]('--from\x20<timestamp>',a2_0x12e3fa(0xcf))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1e3),a2_0x12e3fa(0x1ec))['action'](wfSessionListAction);const wfAttemptListAction=async(_0xcb6fd1,_0x47a074)=>{const _0x922b0a=a2_0x12e3fa,_0x18dc8b=new WorkflowAttemptsCommand(),_0x32bcef=program[_0x922b0a(0xb2)](),_0x3d33a9=await createTDXInstance(_0x32bcef),_0x417900=await _0x18dc8b[_0x922b0a(0x1b3)]({'options':{..._0x32bcef,..._0x47a074},'args':_0xcb6fd1?[_0xcb6fd1]:[],'tdx':_0x3d33a9});gracefulExit(_0x417900);},attemptCmd=workflowCmd[a2_0x12e3fa(0x35f)]('attempt')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xc6))[a2_0x12e3fa(0x323)](a2_0x12e3fa(0x22a),a2_0x12e3fa(0x1f5))[a2_0x12e3fa(0x323)](a2_0x12e3fa(0x370),a2_0x12e3fa(0x271))[a2_0x12e3fa(0x323)](a2_0x12e3fa(0x1a8),'Task\x20name\x20for\x20logs\x20action')['option'](a2_0x12e3fa(0x1cf),a2_0x12e3fa(0x2c5))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xff),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x196),a2_0x12e3fa(0x347))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x97),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x12e3fa(0x1e5),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x32f),a2_0x12e3fa(0x1ef))[a2_0x12e3fa(0x161)](async(_0x57788f,_0x4e93fb,_0xa63497,_0xdbf65a)=>{const _0x53151b=a2_0x12e3fa;if(_0x57788f==='list'){await wfAttemptListAction(_0x4e93fb,_0xdbf65a);return;}if(!_0x57788f){attemptCmd['help']();return;}const _0x1f9eac=program[_0x53151b(0xb2)](),_0x5a4c39=await createTDXInstance(_0x1f9eac);let _0x2a0f51=0x0;if(!_0x4e93fb){const _0x4d5567=new WorkflowAttemptCommand();_0x2a0f51=await _0x4d5567[_0x53151b(0x1b3)]({'options':{..._0x1f9eac,..._0xdbf65a},'args':[_0x57788f],'tdx':_0x5a4c39});}else{if(_0x4e93fb==='logs'){const _0x37cb5c=new WorkflowLogsCommand();_0x2a0f51=await _0x37cb5c[_0x53151b(0x1b3)]({'options':{..._0x1f9eac,..._0xdbf65a},'args':_0xa63497?[_0x57788f,_0xa63497]:[_0x57788f],'tdx':_0x5a4c39});}else{if(_0x4e93fb===_0x53151b(0xc1)){const _0x7f572d=new WorkflowTasksCommand();_0x2a0f51=await _0x7f572d['run']({'options':{..._0x1f9eac,..._0xdbf65a},'args':[_0x57788f],'tdx':_0x5a4c39});}else{if(_0x4e93fb===_0x53151b(0x2f4)){const _0x44ba61=new WorkflowKillCommand();_0x2a0f51=await _0x44ba61[_0x53151b(0x1b3)]({'options':{..._0x1f9eac,..._0xdbf65a},'args':[_0x57788f],'tdx':_0x5a4c39});}else{if(_0x4e93fb==='retry'){const _0x38fa04=new WorkflowRetryCommand();_0x2a0f51=await _0x38fa04[_0x53151b(0x1b3)]({'options':{..._0x1f9eac,..._0xdbf65a},'args':['attempt:'+_0x57788f],'tdx':_0x5a4c39});}else console[_0x53151b(0x275)](_0x53151b(0x259)+_0x4e93fb),console[_0x53151b(0x275)](_0x53151b(0xbf)),_0x2a0f51=0x1;}}}}gracefulExit(_0x2a0f51);});attemptCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x34f))[a2_0x12e3fa(0x301)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x12e3fa(0x328)]('--include-retried',a2_0x12e3fa(0x384))[a2_0x12e3fa(0x161)](wfAttemptListAction),workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x133))['description'](a2_0x12e3fa(0x32e))['option'](a2_0x12e3fa(0x32f),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x12e3fa(0x35f)]('timeline\x20[project.workflow]')['description'](a2_0x12e3fa(0x1f4))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x35b),a2_0x12e3fa(0x1ae))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2db),a2_0x12e3fa(0x358))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xa3),a2_0x12e3fa(0xeb))[a2_0x12e3fa(0x161)](async(_0x120f41,_0x2b8fdd)=>{const _0x5b295c=a2_0x12e3fa,_0x4db80b=new WorkflowTimelineCommand(),_0x4cc56f=program[_0x5b295c(0xb2)](),_0x267665=await createTDXInstance(_0x4cc56f),_0x368466=await _0x4db80b[_0x5b295c(0x1b3)]({'options':{..._0x4cc56f,..._0x2b8fdd},'args':_0x120f41?[_0x120f41]:[],'tdx':_0x267665});gracefulExit(_0x368466);}),workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x238))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x145))[a2_0x12e3fa(0x328)]('--from-task\x20<task>',a2_0x12e3fa(0x1b2))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x97),a2_0x12e3fa(0x2a0))[a2_0x12e3fa(0x161)](async(_0x10871f,_0xdaa7dc)=>{const _0x59dcc0=a2_0x12e3fa,_0x16beaa=new WorkflowRetryCommand(),_0x3d4b25=program['opts'](),_0x415288=await createTDXInstance(_0x3d4b25),_0x311f64=await _0x16beaa[_0x59dcc0(0x1b3)]({'options':{..._0x3d4b25,..._0xdaa7dc},'args':[_0x10871f],'tdx':_0x415288});gracefulExit(_0x311f64);}),workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2b2))[a2_0x12e3fa(0x301)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2f8),'Workflow\x20parameter\x20(repeatable)',(_0x13fdf1,_0x1c8f35=[])=>[..._0x1c8f35,_0x13fdf1],[])[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x105),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x12e3fa(0x161)](async(_0x41787e,_0x160dfc)=>{const _0x50fef7=a2_0x12e3fa,_0x3f777c=new WorkflowRunCommand(),_0x176029=program['opts'](),_0x306bc9=await createTDXInstance(_0x176029),_0x35b703=await _0x3f777c[_0x50fef7(0x1b3)]({'options':{..._0x176029,..._0x160dfc},'args':_0x41787e?[_0x41787e]:[],'tdx':_0x306bc9});gracefulExit(_0x35b703);}),workflowCmd['command']('download\x20<project-name>\x20[output-dir]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x191))[a2_0x12e3fa(0x328)]('--revision\x20<revision>',a2_0x12e3fa(0x21c))[a2_0x12e3fa(0x161)](async(_0x15d4fe,_0x45f632,_0x4db283)=>{const _0x57e9d8=a2_0x12e3fa,_0x193021=new WorkflowDownloadCommand(),_0x6487d7=program['opts'](),_0x145bf4=await createTDXInstance(_0x6487d7),_0x47eaa1=await _0x193021[_0x57e9d8(0x1b3)]({'options':{..._0x6487d7,..._0x4db283},'args':[_0x15d4fe,_0x45f632||'.'],'tdx':_0x145bf4});gracefulExit(_0x47eaa1);}),workflowCmd['command'](a2_0x12e3fa(0x2ca))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x8e))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x37a),a2_0x12e3fa(0x25f))['option'](a2_0x12e3fa(0x282),a2_0x12e3fa(0x120))[a2_0x12e3fa(0x161)](async(_0x10d3bb,_0x1978ad,_0x348954)=>{const _0x326612=a2_0x12e3fa,_0x1621f8=new WorkflowPullCommand(),_0x14be4c=program[_0x326612(0xb2)](),_0x236c42=await createTDXInstance(_0x14be4c),_0x523fc5=await _0x1621f8[_0x326612(0x1b3)]({'options':{..._0x14be4c,..._0x348954},'args':_0x1978ad?[_0x10d3bb,_0x1978ad]:[_0x10d3bb],'tdx':_0x236c42});gracefulExit(_0x523fc5);}),workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xa4))[a2_0x12e3fa(0x301)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x37a),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x282),a2_0x12e3fa(0x8a))[a2_0x12e3fa(0x328)]('--skip-validation',a2_0x12e3fa(0x21f))[a2_0x12e3fa(0x161)](async(_0x489ddf,_0x4ca9c2)=>{const _0x1990c6=a2_0x12e3fa,_0xf38ab8=new WorkflowPushCommand(),_0x1889a9=program['opts'](),_0x5757c8=await createTDXInstance(_0x1889a9),_0x2bca58=await _0xf38ab8[_0x1990c6(0x1b3)]({'options':{..._0x1889a9,..._0x4ca9c2},'args':_0x489ddf?[_0x489ddf]:[],'tdx':_0x5757c8});gracefulExit(_0x2bca58);}),workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2be))['description'](a2_0x12e3fa(0x2c9))['option'](a2_0x12e3fa(0x36d),'Override\x20project\x20name')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x37a),'Revision\x20name\x20(default:\x20timestamp)')['option'](a2_0x12e3fa(0x1b4),a2_0x12e3fa(0x21f))['action'](async(_0x3e29ea,_0x4ee1ba)=>{const _0x2c91e2=a2_0x12e3fa,_0x24b709=new WorkflowUploadCommand(),_0x2baf88=program[_0x2c91e2(0xb2)](),_0x2dbf30=await createTDXInstance(_0x2baf88),_0x23db2a=await _0x24b709[_0x2c91e2(0x1b3)]({'options':{..._0x2baf88,..._0x4ee1ba},'args':_0x3e29ea?[_0x3e29ea]:[],'tdx':_0x2dbf30});gracefulExit(_0x23db2a);}),workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1d0))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x33c))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x36d),a2_0x12e3fa(0x208))[a2_0x12e3fa(0x328)]('--revision\x20<revision>',a2_0x12e3fa(0x101))['option']('--dry-run',a2_0x12e3fa(0x313))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1b4),a2_0x12e3fa(0x21f))[a2_0x12e3fa(0x161)](async(_0x1402f4,_0x5555ed)=>{const _0x51fb08=a2_0x12e3fa,_0x10e900=new WorkflowCloneCommand(),_0x540d70=program['opts'](),_0x2be1e6=await createTDXInstance(_0x540d70),_0x52a182=await _0x10e900[_0x51fb08(0x1b3)]({'options':{..._0x540d70,..._0x5555ed},'args':_0x1402f4?[_0x1402f4]:[],'tdx':_0x2be1e6});gracefulExit(_0x52a182);}),workflowCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x222))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1b8))['action'](async(_0x23e4db,_0x59c0e1)=>{const _0x345c4a=a2_0x12e3fa,_0x579c5a=new WorkflowDeleteCommand(),_0x17f731=program[_0x345c4a(0xb2)](),_0xfa9db3=await createTDXInstance(_0x17f731),_0x3de977=await _0x579c5a['run']({'options':{..._0x17f731,..._0x59c0e1},'args':[_0x23e4db],'tdx':_0xfa9db3});gracefulExit(_0x3de977);}),workflowCmd[a2_0x12e3fa(0x35f)]('use\x20[project]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2b1))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x14f),'Clear\x20workflow\x20project\x20context')['action'](async(_0x17af06,_0x2a1680)=>{const _0x1c5a24=a2_0x12e3fa,_0x530d8c=new WorkflowUseCommand(),_0x35ca71=program['opts'](),_0x37c5f5=await createTDXInstance(_0x35ca71),_0x9b5c4f=await _0x530d8c[_0x1c5a24(0x1b3)]({'options':{..._0x35ca71,..._0x2a1680},'args':_0x17af06?[_0x17af06]:[],'tdx':_0x37c5f5});gracefulExit(_0x9b5c4f);});const wfSecretsCmd=workflowCmd['command'](a2_0x12e3fa(0x1cb))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x20e));wfSecretsCmd['command'](a2_0x12e3fa(0x34f))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xd7))[a2_0x12e3fa(0x161)](async(_0x2eeb81,_0x3c0579)=>{const _0x4728ba=a2_0x12e3fa,_0x1ac0cc=new WorkflowSecretsListCommand(),_0x5e3952=program[_0x4728ba(0xb2)](),_0x4b68af=await createTDXInstance(_0x5e3952),_0x3109cb=await _0x1ac0cc[_0x4728ba(0x1b3)]({'options':{..._0x5e3952,..._0x3c0579},'args':_0x2eeb81?[_0x2eeb81]:[],'tdx':_0x4b68af});gracefulExit(_0x3109cb);}),wfSecretsCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x32b))[a2_0x12e3fa(0x301)]('Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])')[a2_0x12e3fa(0x161)](async(_0x4f4f2e,_0x187313)=>{const _0x3ce63e=a2_0x12e3fa,_0x2cb963=new WorkflowSecretsSetCommand(),_0x304cce=program[_0x3ce63e(0xb2)](),_0x36337b=await createTDXInstance(_0x304cce),_0xb288e9=await _0x2cb963[_0x3ce63e(0x1b3)]({'options':{..._0x304cce,..._0x187313},'args':_0x4f4f2e,'tdx':_0x36337b});gracefulExit(_0xb288e9);}),wfSecretsCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x129))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')['action'](async(_0x200fdf,_0xf02b6c)=>{const _0x323aea=a2_0x12e3fa,_0x2ea17b=new WorkflowSecretsDeleteCommand(),_0x12e034=program['opts'](),_0x482e46=await createTDXInstance(_0x12e034),_0x1f4454=await _0x2ea17b[_0x323aea(0x1b3)]({'options':{..._0x12e034,..._0xf02b6c},'args':_0x200fdf,'tdx':_0x482e46});gracefulExit(_0x1f4454);});const jobCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x296))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x134)),jobListAction=async _0x55cc24=>{const _0x4a59f9=a2_0x12e3fa,_0xf15f50=new JobListCommand(),_0x5ec3fc=program[_0x4a59f9(0xb2)](),_0x2d96e8=await createTDXInstance(_0x5ec3fc),_0x3e5d75=await _0xf15f50[_0x4a59f9(0x1b3)]({'options':{..._0x5ec3fc,..._0x55cc24},'args':[],'tdx':_0x2d96e8});gracefulExit(_0x3e5d75);};jobCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2ed))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x276))['option'](a2_0x12e3fa(0x2fb),a2_0x12e3fa(0x104))[a2_0x12e3fa(0x161)](jobListAction),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xf6),{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x373))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2fb),a2_0x12e3fa(0x104))[a2_0x12e3fa(0x161)](jobListAction),jobCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1e9))['description'](a2_0x12e3fa(0x192))[a2_0x12e3fa(0x161)](async(_0x31a3c3,_0x5c05f9)=>{const _0x23f4d8=a2_0x12e3fa,_0x488c08=new JobShowCommand(),_0x36e424=program[_0x23f4d8(0xb2)](),_0x596449=await createTDXInstance(_0x36e424),_0x48d5b5=await _0x488c08[_0x23f4d8(0x1b3)]({'options':{..._0x36e424,..._0x5c05f9},'args':[_0x31a3c3],'tdx':_0x596449});gracefulExit(_0x48d5b5);}),jobCmd['command']('kill\x20<job-id>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2b3))[a2_0x12e3fa(0x161)](async(_0x39f5cb,_0xa55eff)=>{const _0x346004=a2_0x12e3fa,_0x494902=new JobKillCommand(),_0x528248=program[_0x346004(0xb2)](),_0x49413e=await createTDXInstance(_0x528248),_0x59197a=await _0x494902[_0x346004(0x1b3)]({'options':{..._0x528248,..._0xa55eff},'args':[_0x39f5cb],'tdx':_0x49413e});gracefulExit(_0x59197a);}),jobCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xa8))['description']('Submit\x20a\x20job')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x177),a2_0x12e3fa(0x320),a2_0x12e3fa(0x1de))['option'](a2_0x12e3fa(0x22b),a2_0x12e3fa(0x369))[a2_0x12e3fa(0x328)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x12e3fa(0x90))['option'](a2_0x12e3fa(0x31d),a2_0x12e3fa(0x35a))['action'](async(_0x2eb163,_0x110066)=>{const _0x365f66=a2_0x12e3fa,_0x598a3f=new JobSubmitCommand(),_0x97e1fd=program[_0x365f66(0xb2)](),_0x4a38e5=await createTDXInstance(_0x97e1fd),_0x327fd0=await _0x598a3f[_0x365f66(0x1b3)]({'options':{..._0x97e1fd,..._0x110066},'args':_0x2eb163?[_0x2eb163]:[],'tdx':_0x4a38e5});gracefulExit(_0x327fd0);}),jobCmd['command'](a2_0x12e3fa(0x229))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x350))['action'](async(_0x11a469,_0x4e302d)=>{const _0x4d556c=a2_0x12e3fa,_0x1b5d9d=new JobResultCommand(),_0x2a378d=program[_0x4d556c(0xb2)](),_0xa29638=await createTDXInstance(_0x2a378d),_0x2dc907=await _0x1b5d9d['run']({'options':{..._0x2a378d,..._0x4e302d},'args':[_0x11a469],'tdx':_0xa29638});gracefulExit(_0x2dc907);});const scheduleCmd=jobCmd['command']('schedule')[a2_0x12e3fa(0x301)]('Scheduled\x20query\x20management\x20commands');scheduleCmd['command'](a2_0x12e3fa(0x307))['description'](a2_0x12e3fa(0x333))[a2_0x12e3fa(0x161)](async(_0x2ee535,_0x1627b7)=>{const _0x4b0361=a2_0x12e3fa,_0xfef892=new ScheduleListCommand(),_0x53eb47=program[_0x4b0361(0xb2)](),_0x5e8e3e=await createTDXInstance(_0x53eb47),_0x5af4cb=await _0xfef892['run']({'options':{..._0x53eb47,..._0x1627b7},'args':_0x2ee535?[_0x2ee535]:[],'tdx':_0x5e8e3e});gracefulExit(_0x5af4cb);}),scheduleCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xfa))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x266))[a2_0x12e3fa(0x161)](async(_0x196bfa,_0x3cecd0)=>{const _0x5829a8=a2_0x12e3fa,_0x513d6b=new ScheduleShowCommand(),_0x3bef7c=program[_0x5829a8(0xb2)](),_0x1ee98f=await createTDXInstance(_0x3bef7c),_0x2f6f38=await _0x513d6b['run']({'options':{..._0x3bef7c,..._0x3cecd0},'args':[_0x196bfa],'tdx':_0x1ee98f});gracefulExit(_0x2f6f38);}),scheduleCmd['command'](a2_0x12e3fa(0xaa))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1c5))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2c8),'Database\x20name\x20(required)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x31f),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['requiredOption']('-f,\x20--file\x20<path>',a2_0x12e3fa(0x369))['option']('--type\x20<type>',a2_0x12e3fa(0x272),'trino')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x146),a2_0x12e3fa(0x260))[a2_0x12e3fa(0x328)]('--timezone\x20<tz>','Timezone\x20for\x20cron\x20(default:\x20UTC)')['option'](a2_0x12e3fa(0x245),a2_0x12e3fa(0x9e))[a2_0x12e3fa(0x328)]('--priority\x20<-2~2>',a2_0x12e3fa(0x289))['option'](a2_0x12e3fa(0x2c6),a2_0x12e3fa(0x1a4))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x389),a2_0x12e3fa(0xca))[a2_0x12e3fa(0x328)]('--result\x20<url>',a2_0x12e3fa(0x1e1))['action'](async(_0x5c96c5,_0x3f4e02)=>{const _0x155389=a2_0x12e3fa,_0x26096b=new ScheduleCreateCommand(),_0x30d868=program[_0x155389(0xb2)](),_0x30da68=await createTDXInstance(_0x30d868);_0x3f4e02['in']&&(_0x3f4e02[_0x155389(0x283)]=_0x3f4e02['in']);const _0x3fb3f4=await _0x26096b[_0x155389(0x1b3)]({'options':{..._0x30d868,..._0x3f4e02},'args':[_0x5c96c5],'tdx':_0x30da68});gracefulExit(_0x3fb3f4);}),scheduleCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x9f))[a2_0x12e3fa(0x301)]('Update\x20a\x20scheduled\x20query')[a2_0x12e3fa(0x328)]('-d,\x20--database\x20<db>',a2_0x12e3fa(0x88))[a2_0x12e3fa(0x328)]('--in\x20<db>',a2_0x12e3fa(0x29b))[a2_0x12e3fa(0x328)]('-f,\x20--file\x20<path>',a2_0x12e3fa(0x369))['option'](a2_0x12e3fa(0x1ad),a2_0x12e3fa(0x272))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x146),a2_0x12e3fa(0x260))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x27c),'Timezone\x20for\x20cron')[a2_0x12e3fa(0x328)]('--delay\x20<seconds>',a2_0x12e3fa(0x9e))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1a2),a2_0x12e3fa(0x289))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2c6),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x12e3fa(0x328)]('--engine-version\x20<version>',a2_0x12e3fa(0xca))['option'](a2_0x12e3fa(0x1fc),a2_0x12e3fa(0x1e1))['action'](async(_0x5e7a51,_0x19bbbf)=>{const _0x58d562=a2_0x12e3fa,_0x316669=new ScheduleUpdateCommand(),_0xae787c=program['opts'](),_0x37b3a9=await createTDXInstance(_0xae787c);_0x19bbbf['in']&&(_0x19bbbf[_0x58d562(0x283)]=_0x19bbbf['in']);const _0x53985b=await _0x316669['run']({'options':{..._0xae787c,..._0x19bbbf},'args':[_0x5e7a51],'tdx':_0x37b3a9});gracefulExit(_0x53985b);}),scheduleCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x172))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x16c))[a2_0x12e3fa(0x161)](async(_0x2e8bb6,_0x2e1082)=>{const _0x185c9c=a2_0x12e3fa,_0x34df43=new ScheduleDeleteCommand(),_0xdd79e4=program[_0x185c9c(0xb2)](),_0x31db5f=await createTDXInstance(_0xdd79e4),_0x3218a4=await _0x34df43[_0x185c9c(0x1b3)]({'options':{..._0xdd79e4,..._0x2e1082},'args':[_0x2e8bb6],'tdx':_0x31db5f});gracefulExit(_0x3218a4);}),scheduleCmd[a2_0x12e3fa(0x35f)]('run\x20<name>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2b5))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x344),a2_0x12e3fa(0x2d8))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x361),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')['action'](async(_0x49af9f,_0x429d70)=>{const _0x3a2e5a=a2_0x12e3fa,_0x4bc709=new ScheduleRunCommand(),_0x2efca2=program[_0x3a2e5a(0xb2)](),_0x2cb9cd=await createTDXInstance(_0x2efca2),_0x253e43=await _0x4bc709['run']({'options':{..._0x2efca2,..._0x429d70},'args':[_0x49af9f],'tdx':_0x2cb9cd});gracefulExit(_0x253e43);}),scheduleCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x173))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2aa))[a2_0x12e3fa(0x328)]('--from\x20<n>',a2_0x12e3fa(0x183))['option'](a2_0x12e3fa(0x379),a2_0x12e3fa(0x27d))[a2_0x12e3fa(0x161)](async(_0x9bd29f,_0x4d649c)=>{const _0x5c60c6=a2_0x12e3fa,_0x4b2126=new ScheduleHistoryCommand(),_0x18ba26=program[_0x5c60c6(0xb2)](),_0x15a134=await createTDXInstance(_0x18ba26),_0x2e3366=await _0x4b2126[_0x5c60c6(0x1b3)]({'options':{..._0x18ba26,..._0x4d649c},'args':[_0x9bd29f],'tdx':_0x15a134});gracefulExit(_0x2e3366);});const llmCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1c2))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2d0));llmCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1f2))['description']('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x12e3fa(0x161)](async(_0x27e13b,_0x183b75)=>{const _0x40675c=a2_0x12e3fa,_0xc9bd51=new LLMUseCommand(),_0x5e799b=program[_0x40675c(0xb2)](),_0xc35572=await createTDXInstance(_0x5e799b),_0x3ddf84=await _0xc9bd51[_0x40675c(0x1b3)]({'options':{..._0x5e799b,..._0x183b75},'args':[_0x27e13b],'tdx':_0xc35572});gracefulExit(_0x3ddf84);}),llmCmd['command'](a2_0x12e3fa(0x36e))[a2_0x12e3fa(0x301)]('List\x20available\x20LLM\x20models')[a2_0x12e3fa(0x161)](async _0x125a01=>{const _0x31e4a5=a2_0x12e3fa,_0x31ca9a=new LLMModelsCommand(),_0x3cbfa0=program[_0x31e4a5(0xb2)](),_0x3e7751=await createTDXInstance(_0x3cbfa0),_0x11b2ce=await _0x31ca9a[_0x31e4a5(0x1b3)]({'options':{..._0x3cbfa0,..._0x125a01},'args':[],'tdx':_0x3e7751});gracefulExit(_0x11b2ce);});const projectCmd=llmCmd['command'](a2_0x12e3fa(0x265))['description'](a2_0x12e3fa(0x121)),llmProjectListAction=async(_0x2801d8,_0x298ec6)=>{const _0x43f156=a2_0x12e3fa,_0x3b17c1=new LLMProjectsCommand(),_0x2274a6=program[_0x43f156(0xb2)](),_0x2e579d=await createTDXInstance(_0x2274a6),_0x548b7a=await _0x3b17c1['run']({'options':{..._0x2274a6,..._0x298ec6},'args':_0x2801d8?[_0x2801d8]:[],'tdx':_0x2e579d});gracefulExit(_0x548b7a);};projectCmd[a2_0x12e3fa(0x35f)]('list\x20[pattern]')['description'](a2_0x12e3fa(0x33e))[a2_0x12e3fa(0x161)](llmProjectListAction),llmCmd['command'](a2_0x12e3fa(0x303))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x30e))[a2_0x12e3fa(0x161)](llmProjectListAction),projectCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xaa))['description']('Create\x20a\x20new\x20LLM\x20project')['option']('--description\x20<text>','Project\x20description')[a2_0x12e3fa(0x161)](async(_0x2a4160,_0x4d2b5f)=>{const _0x343bbe=a2_0x12e3fa,_0x52e6a2=new LLMProjectCreateCommand(),_0x39caf0=program[_0x343bbe(0xb2)](),_0x44f7f3=await createTDXInstance(_0x39caf0),_0x4f1d4e=await _0x52e6a2[_0x343bbe(0x1b3)]({'options':{..._0x39caf0,..._0x4d2b5f},'args':[_0x2a4160],'tdx':_0x44f7f3});gracefulExit(_0x4f1d4e);}),projectCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x172))['description'](a2_0x12e3fa(0x13a))[a2_0x12e3fa(0x161)](async(_0x4663b4,_0x5b2a58)=>{const _0x41f080=a2_0x12e3fa,_0x9eab1c=new LLMProjectDeleteCommand(),_0x451fd3=program['opts'](),_0x277c37=await createTDXInstance(_0x451fd3),_0xcf7637=await _0x9eab1c[_0x41f080(0x1b3)]({'options':{..._0x451fd3,..._0x5b2a58},'args':[_0x4663b4],'tdx':_0x277c37});gracefulExit(_0xcf7637);}),projectCmd[a2_0x12e3fa(0x35f)]('backup\x20<name>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1d9))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1a6),a2_0x12e3fa(0x332))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x282),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x12e3fa(0x161)](async(_0x16f3a7,_0x48b661)=>{const _0x4eddd2=a2_0x12e3fa,_0x17e621=new LLMProjectBackupCommand(),_0x1999a2=program[_0x4eddd2(0xb2)](),_0x1e65bc=await createTDXInstance(_0x1999a2),_0x425fa1=await _0x17e621[_0x4eddd2(0x1b3)]({'options':{..._0x1999a2,..._0x48b661},'args':[_0x16f3a7],'tdx':_0x1e65bc});gracefulExit(_0x425fa1);}),projectCmd['command'](a2_0x12e3fa(0x35c))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x151))[a2_0x12e3fa(0x328)]('--name\x20<new-name>',a2_0x12e3fa(0x2a9))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x282),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')['action'](async(_0x214a59,_0x5887f5)=>{const _0x177f66=a2_0x12e3fa,_0x3173d3=new LLMProjectRestoreCommand(),_0x1133bf=program[_0x177f66(0xb2)](),_0x25d39e=await createTDXInstance(_0x1133bf),_0x48b0ee=await _0x3173d3[_0x177f66(0x1b3)]({'options':{..._0x1133bf,..._0x5887f5},'args':[_0x214a59],'tdx':_0x25d39e});gracefulExit(_0x48b0ee);});const llmAgentListAction=async(_0x167e1c,_0x1caaef)=>{const _0x10e68a=a2_0x12e3fa,_0xb4c2a6=new LLMAgentsCommand(),_0x4777e1=program[_0x10e68a(0xb2)](),_0xd6c090=await createTDXInstance(_0x4777e1),_0xeb3f04=await _0xb4c2a6['run']({'options':{..._0x4777e1,..._0x1caaef},'args':_0x167e1c?[_0x167e1c]:[],'tdx':_0xd6c090});gracefulExit(_0xeb3f04);};llmCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xd6))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')['action'](llmAgentListAction),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xd6))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x330))[a2_0x12e3fa(0x161)](llmAgentListAction),llmCmd['command'](a2_0x12e3fa(0x30d))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xe3))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x30f),a2_0x12e3fa(0xc7))[a2_0x12e3fa(0x161)](async(_0xe20aff,_0x19a6c7)=>{const _0x45f658=a2_0x12e3fa,_0x19ef46=new LLMHistoryCommand(),_0x3fa1d2=program[_0x45f658(0xb2)](),_0x106444=await createTDXInstance(_0x3fa1d2),_0x4a0151=await _0x19ef46[_0x45f658(0x1b3)]({'options':{..._0x3fa1d2,..._0x19a6c7},'args':_0xe20aff?[_0xe20aff]:[],'tdx':_0x106444});gracefulExit(_0x4a0151);});isExperimentalAvailable()&&llmCmd[a2_0x12e3fa(0x35f)]('log\x20<chat-id>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x234))[a2_0x12e3fa(0x161)](async(_0x39ac73,_0x58e26c)=>{const _0x50b556=a2_0x12e3fa,_0x54b0b4=new LLMLogCommand(),_0x475078=program[_0x50b556(0xb2)](),_0xaf09a0=await createTDXInstance(_0x475078),_0x36c890=await _0x54b0b4[_0x50b556(0x1b3)]({'options':{..._0x475078,..._0x58e26c},'args':[_0x39ac73],'tdx':_0xaf09a0});gracefulExit(_0x36c890);});program['command']('claude\x20[args...]')[a2_0x12e3fa(0x35e)](a2_0x12e3fa(0x106))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x337))['option']('-c,\x20--continue',a2_0x12e3fa(0x1e0))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xe0),a2_0x12e3fa(0x1a9))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x214),a2_0x12e3fa(0x2ec))[a2_0x12e3fa(0x186)]()[a2_0x12e3fa(0x2f7)](!![])[a2_0x12e3fa(0x1da)](a2_0x12e3fa(0x2eb),a2_0x12e3fa(0x37f))[a2_0x12e3fa(0x161)](async(_0x406f22,_0x2e1ac6)=>{const _0x2d299f=a2_0x12e3fa,_0x258c09=program[_0x2d299f(0xb2)](),_0x56a77b=Array[_0x2d299f(0x1ac)](_0x406f22)?_0x406f22:[];if(_0x56a77b[0x0]===_0x2d299f(0xe9)){const _0x3ac47e=new ClaudeStatuslineCommand(),_0x477f65=await _0x3ac47e[_0x2d299f(0x1b3)]({'options':{..._0x258c09,..._0x2e1ac6},'args':_0x56a77b['slice'](0x1),'tdx':null});gracefulExit(_0x477f65);}if(_0x56a77b[0x0]===_0x2d299f(0x35e)){const _0x3391fc=new ClaudeUsageCommand(),_0x59f275=await _0x3391fc['run']({'options':{..._0x258c09,..._0x2e1ac6},'args':_0x56a77b['slice'](0x1),'tdx':null});gracefulExit(_0x59f275);}const _0x6339f0=new ClaudeCommand(),_0xa7d337=await createTDXInstance(_0x258c09),_0x328f51=await _0x6339f0[_0x2d299f(0x1b3)]({'options':{..._0x258c09,..._0x2e1ac6},'args':_0x56a77b,'tdx':_0xa7d337});gracefulExit(_0x328f51);}),program[a2_0x12e3fa(0x35f)]('use\x20[resource]\x20[value]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2a4))['option']('--clear',a2_0x12e3fa(0x224))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x243),a2_0x12e3fa(0x244))[a2_0x12e3fa(0x161)](async(_0x5d2713,_0x1ef8ff,_0x41cd37)=>{const _0x16c905=a2_0x12e3fa,_0x3a67fd=new UseCommand(),_0x4bfdbf=program[_0x16c905(0xb2)](),_0x46a1c2=[];if(_0x5d2713)_0x46a1c2[_0x16c905(0x274)](_0x5d2713);if(_0x1ef8ff)_0x46a1c2[_0x16c905(0x274)](_0x1ef8ff);const _0x27e687=_0x5d2713===_0x16c905(0x23e),_0xd3720d=_0x27e687?await createTDXInstance(_0x4bfdbf):null,_0x12bdb5=await _0x3a67fd['run']({'options':{..._0x4bfdbf,..._0x41cd37},'args':_0x46a1c2,'tdx':_0xd3720d});gracefulExit(_0x12bdb5);}),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xf8))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xb7))['action'](async _0x5d99a6=>{const _0x375ff1=a2_0x12e3fa,_0x165493=new StatusCommand(),_0x305bbf=program['opts'](),_0x3ef566=await createTDXInstance(_0x305bbf),_0x388cba=await _0x165493[_0x375ff1(0x1b3)]({'options':{..._0x305bbf,..._0x5d99a6},'args':[],'tdx':_0x3ef566});gracefulExit(_0x388cba);}),program[a2_0x12e3fa(0x35f)]('upgrade\x20[version]')[a2_0x12e3fa(0x301)]('Upgrade\x20tdx\x20to\x20the\x20latest\x20version')['option'](a2_0x12e3fa(0x282),a2_0x12e3fa(0xda))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x295),a2_0x12e3fa(0xa1))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1aa),a2_0x12e3fa(0x318))[a2_0x12e3fa(0x161)](async(_0x694a5c,_0x55777f)=>{const _0x5d89f0=a2_0x12e3fa,_0x27628c=new UpgradeCommand(),_0x56a3f7=program[_0x5d89f0(0xb2)](),_0x4bdf63=await _0x27628c[_0x5d89f0(0x1b3)]({'options':{..._0x56a3f7,..._0x55777f},'args':_0x694a5c?[_0x694a5c]:[],'tdx':null});gracefulExit(_0x4bdf63);}),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2ac))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1fe))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x243),a2_0x12e3fa(0x9c))[a2_0x12e3fa(0x161)](async(_0x1981a9,_0x3f480f)=>{const _0x3bbf40=a2_0x12e3fa,_0x11e841=new UnsetCommand(),_0x3a7189=program[_0x3bbf40(0xb2)](),_0x484ff4=await _0x11e841['run']({'options':{..._0x3a7189,..._0x3f480f},'args':[_0x1981a9],'tdx':null});gracefulExit(_0x484ff4);}),program['command']('chats')['description'](a2_0x12e3fa(0x1dc))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x30f),a2_0x12e3fa(0x1d6))[a2_0x12e3fa(0x161)](async _0x1a6fb2=>{const _0xb78a25=a2_0x12e3fa,_0x15a7dc=new ChatsCommand(),_0x40a760=program[_0xb78a25(0xb2)](),_0x5c304a=await createTDXInstance(_0x40a760),_0x652b22=await _0x15a7dc[_0xb78a25(0x1b3)]({'options':{..._0x40a760,..._0x1a6fb2},'args':[],'tdx':_0x5c304a});gracefulExit(_0x652b22);});const authCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x16a))['description'](a2_0x12e3fa(0x13d));async function runAuthStatusCommand(_0x141d16){const _0xb35b8c=new AuthStatusCommand(),_0x551133=program['opts'](),_0x498f6d=await createTDXInstance(_0x551133),_0x743f64=await _0xb35b8c['run']({'options':{..._0x551133,..._0x141d16},'args':[],'tdx':_0x498f6d});gracefulExit(_0x743f64);}authCmd[a2_0x12e3fa(0x161)](runAuthStatusCommand),authCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xf8))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x82))[a2_0x12e3fa(0x161)](runAuthStatusCommand),authCmd[a2_0x12e3fa(0x35f)]('setup')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x113))['addHelpText'](a2_0x12e3fa(0x2eb),'\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')[a2_0x12e3fa(0x161)](async _0x132795=>{const _0x2e1298=a2_0x12e3fa,_0x52c120=new AuthSetupCommand(),_0x5a104a=program[_0x2e1298(0xb2)](),_0x1a1182=await createTDXInstance(_0x5a104a),_0x5b3e43=await _0x52c120['run']({'options':{..._0x5a104a,..._0x132795},'args':[],'tdx':_0x1a1182});gracefulExit(_0x5b3e43);}),authCmd[a2_0x12e3fa(0x35f)]('login')['description']('Login\x20via\x20OAuth\x20(dev\x20sites\x20only)')[a2_0x12e3fa(0x1da)](a2_0x12e3fa(0x2eb),a2_0x12e3fa(0x22d))[a2_0x12e3fa(0x161)](async _0x52ca9e=>{const _0x5c89dc=a2_0x12e3fa,_0x5c1813=new AuthLoginCommand(),_0x45a02d=program[_0x5c89dc(0xb2)](),_0x452259=await _0x5c1813[_0x5c89dc(0x1b3)]({'options':{..._0x45a02d,..._0x52ca9e},'args':[],'tdx':null});gracefulExit(_0x452259);}),authCmd[a2_0x12e3fa(0x35f)]('clear')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x33b))[a2_0x12e3fa(0x1da)](a2_0x12e3fa(0x2eb),a2_0x12e3fa(0x26d))[a2_0x12e3fa(0x161)](async _0x1ba304=>{const _0x2b0e94=a2_0x12e3fa,_0x31f567=new AuthClearCommand(),_0x2cf59f=program[_0x2b0e94(0xb2)](),_0x248965=await _0x31f567[_0x2b0e94(0x1b3)]({'options':{..._0x2cf59f,..._0x1ba304},'args':[],'tdx':null});gracefulExit(_0x248965);});const userCmd=program['command'](a2_0x12e3fa(0x291))[a2_0x12e3fa(0x301)]('User\x20management\x20commands'),userListAction=async _0x39ee21=>{const _0x3d1a63=a2_0x12e3fa,_0x45f80c=new UserListCommand(),_0x2d534b=program['opts'](),_0x142871=await createTDXInstance(_0x2d534b),_0x20a0d5=await _0x45f80c[_0x3d1a63(0x1b3)]({'options':{..._0x2d534b,..._0x39ee21},'args':[],'tdx':_0x142871});gracefulExit(_0x20a0d5);};userCmd[a2_0x12e3fa(0x161)](async _0x387f2c=>{const _0x583e0b=a2_0x12e3fa,_0x57d398=new UserCommand(),_0x319e66=program[_0x583e0b(0xb2)](),_0x51929e=await createTDXInstance(_0x319e66),_0x2099fc=await _0x57d398[_0x583e0b(0x1b3)]({'options':{..._0x319e66,..._0x387f2c},'args':[],'tdx':_0x51929e});gracefulExit(_0x2099fc);}),userCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2ed))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xb5))[a2_0x12e3fa(0x161)](userListAction),program['command'](a2_0x12e3fa(0x201))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x285))[a2_0x12e3fa(0x161)](userListAction);const policyCmd=program['command'](a2_0x12e3fa(0x124))['description'](a2_0x12e3fa(0x32d));policyCmd[a2_0x12e3fa(0x161)](async _0x170d21=>{const _0x508ed0=a2_0x12e3fa,_0x12673c=new PolicyCommand(),_0x122c94=program[_0x508ed0(0xb2)](),_0x4de31a=await createTDXInstance(_0x122c94),_0xab9374=await _0x12673c[_0x508ed0(0x1b3)]({'options':{..._0x122c94,..._0x170d21},'args':[],'tdx':_0x4de31a});gracefulExit(_0xab9374);}),policyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2ed))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x284))['action'](async _0x4f67ad=>{const _0xd8907d=a2_0x12e3fa,_0x1bd5b3=new PolicyListCommand(),_0x3135f1=program[_0xd8907d(0xb2)](),_0x5534f1=await createTDXInstance(_0x3135f1),_0xff1142=await _0x1bd5b3[_0xd8907d(0x1b3)]({'options':{..._0x3135f1,..._0x4f67ad},'args':[],'tdx':_0x5534f1});gracefulExit(_0xff1142);}),policyCmd[a2_0x12e3fa(0x35f)]('show\x20<policy>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x314))['action'](async(_0x5f171e,_0x2ca452)=>{const _0x44ecbb=a2_0x12e3fa,_0x35b58c=new PolicyShowCommand(),_0x32f6fb=program[_0x44ecbb(0xb2)](),_0x4979ad=await createTDXInstance(_0x32f6fb),_0x3b7e0b=await _0x35b58c[_0x44ecbb(0x1b3)]({'options':{..._0x32f6fb,..._0x2ca452},'args':[_0x5f171e],'tdx':_0x4979ad});gracefulExit(_0x3b7e0b);}),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1fd))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x286))['action'](async _0x217046=>{const _0x17e6b0=a2_0x12e3fa,_0x4b0b39=new ProfilesCommand(),_0xdcb84d=program[_0x17e6b0(0xb2)](),_0x53943f=await _0x4b0b39['run']({'options':{..._0xdcb84d,..._0x217046},'args':[],'tdx':null});gracefulExit(_0x53943f);});const profileCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x19b))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x352));profileCmd[a2_0x12e3fa(0x161)](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x3a4e8d=>{const _0x29651f=a2_0x12e3fa,_0x383520=new ProfilesCommand(),_0x205969=program[_0x29651f(0xb2)](),_0x132e69=await _0x383520['run']({'options':{..._0x205969,..._0x3a4e8d},'args':[],'tdx':null});gracefulExit(_0x132e69);};profileCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2ed))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x286))['action'](profileListAction),profileCmd[a2_0x12e3fa(0x35f)]('create\x20[name]')[a2_0x12e3fa(0x301)]('Create\x20a\x20new\x20profile')[a2_0x12e3fa(0x1da)](a2_0x12e3fa(0x2eb),a2_0x12e3fa(0x23b))[a2_0x12e3fa(0x161)](async(_0x3bae0e,_0x11379a)=>{const _0x25e8de=a2_0x12e3fa,_0x50e647=new ProfileCreateCommand(),_0x4acce1=program[_0x25e8de(0xb2)](),_0x2920e5=await _0x50e647['run']({'options':{..._0x4acce1,..._0x11379a},'args':_0x3bae0e?[_0x3bae0e]:[],'tdx':null});gracefulExit(_0x2920e5);}),profileCmd[a2_0x12e3fa(0x35f)]('remove\x20<name>')[a2_0x12e3fa(0x301)]('Remove\x20a\x20profile')['addHelpText']('after',a2_0x12e3fa(0x2c7))[a2_0x12e3fa(0x161)](async(_0x3a849a,_0x371a14)=>{const _0x399e78=a2_0x12e3fa,_0x288243=new ProfileRemoveCommand(),_0x1fda2e=program['opts'](),_0x4cd927=await _0x288243[_0x399e78(0x1b3)]({'options':{..._0x1fda2e,..._0x371a14},'args':[_0x3a849a],'tdx':null});gracefulExit(_0x4cd927);}),profileCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x135))['description']('Set\x20a\x20profile\x20configuration\x20value')[a2_0x12e3fa(0x1da)]('after',a2_0x12e3fa(0x10e))[a2_0x12e3fa(0x161)](async(_0xa02b2e,_0x49d410)=>{const _0x507262=a2_0x12e3fa,_0xa9bd70=new ProfileSetCommand(),_0x328632=program[_0x507262(0xb2)](),_0x353ef0=await _0xa9bd70[_0x507262(0x1b3)]({'options':{..._0x328632,..._0x49d410},'args':[_0xa02b2e],'tdx':null});gracefulExit(_0x353ef0);}),profileCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xbc))['description'](a2_0x12e3fa(0x335))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x243),a2_0x12e3fa(0x244))['addHelpText'](a2_0x12e3fa(0x2eb),a2_0x12e3fa(0x32c))['action'](async(_0x1f20fa,_0x42b99f)=>{const _0x31614e=a2_0x12e3fa,_0x3e336e=new ProfileUseCommand(),_0x724159=program[_0x31614e(0xb2)](),_0x513864=await _0x3e336e[_0x31614e(0x1b3)]({'options':{..._0x724159,..._0x42b99f},'args':[_0x1f20fa],'tdx':null});gracefulExit(_0x513864);});const engageCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x255))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x108)),createEngageAction=_0x5242aa=>{return async(_0x20816a,_0xae5e35)=>{const _0x3a1985=a2_0x3a84,_0x603882=new _0x5242aa(),_0x5d6cf3=program[_0x3a1985(0xb2)](),_0x56394a=await createTDXInstance(_0x5d6cf3),_0x5ab3d1=await _0x603882[_0x3a1985(0x1b3)]({'options':{..._0x5d6cf3,..._0xae5e35},'args':[_0x20816a],'tdx':_0x56394a});gracefulExit(_0x5ab3d1);};},createEngageNoArgAction=_0xb3fe33=>{return async _0x3b2b62=>{const _0x125975=a2_0x3a84,_0x5f5a2f=new _0xb3fe33(),_0x11791f=program[_0x125975(0xb2)](),_0x2b8679=await createTDXInstance(_0x11791f),_0x3a21f7=await _0x5f5a2f[_0x125975(0x1b3)]({'options':{..._0x11791f,..._0x3b2b62},'args':[],'tdx':_0x2b8679});gracefulExit(_0x3a21f7);};},createEngageListAction=_0x238fe0=>{return async(_0x2627bc,_0x110afb)=>{const _0x3401a6=a2_0x3a84,_0xa5e31b=new _0x238fe0(),_0x58b055=program[_0x3401a6(0xb2)](),_0x2c48fd=await createTDXInstance(_0x58b055),_0x51d304=await _0xa5e31b[_0x3401a6(0x1b3)]({'options':{..._0x58b055,..._0x110afb},'args':_0x2627bc?[_0x2627bc]:[],'tdx':_0x2c48fd});gracefulExit(_0x51d304);};},campaignCmd=engageCmd[a2_0x12e3fa(0x35f)]('campaign')[a2_0x12e3fa(0x301)]('Campaign\x20management');campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x307))['description'](a2_0x12e3fa(0x18d))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1ad),a2_0x12e3fa(0xbe))['option']('--status\x20<status>',a2_0x12e3fa(0x24b))['option'](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))[a2_0x12e3fa(0x161)](createEngageListAction(EngageCampaignsCommand)),engageCmd['command'](a2_0x12e3fa(0x336))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1f6))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1ad),a2_0x12e3fa(0xbe))['option'](a2_0x12e3fa(0x2fb),a2_0x12e3fa(0x24b))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))['action'](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xf5))[a2_0x12e3fa(0x301)]('Show\x20campaign\x20details')['option'](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))[a2_0x12e3fa(0x328)]('--full',a2_0x12e3fa(0x235))[a2_0x12e3fa(0x161)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x31c))[a2_0x12e3fa(0x301)]('Create\x20a\x20new\x20campaign')[a2_0x12e3fa(0x2e6)]('--name\x20<name>',a2_0x12e3fa(0x17c))['requiredOption']('--type\x20<type>','Campaign\x20type\x20(email\x20or\x20push)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x83),'Workspace\x20name\x20(required)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x99),'Campaign\x20description')[a2_0x12e3fa(0x328)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x12e3fa(0x328)]('--email-sender-id\x20<id>',a2_0x12e3fa(0x309))[a2_0x12e3fa(0x328)]('--json-columns\x20<cols>',a2_0x12e3fa(0x36a))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x270),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x27c),a2_0x12e3fa(0x153))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x386))['description'](a2_0x12e3fa(0x114))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))['option'](a2_0x12e3fa(0x36d),'New\x20campaign\x20name')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x99),a2_0x12e3fa(0x203))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x273),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x188),a2_0x12e3fa(0x309))['option']('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x270),a2_0x12e3fa(0x2d3))['option']('--timezone\x20<tz>',a2_0x12e3fa(0x153))[a2_0x12e3fa(0x161)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x246))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2f1))['option'](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x14c),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x92))[a2_0x12e3fa(0x301)]('Launch\x20a\x20campaign')[a2_0x12e3fa(0x328)]('--workspace\x20<name>','Workspace\x20name')[a2_0x12e3fa(0x161)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x356))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1a3))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x83),'Workspace\x20name')['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x374))[a2_0x12e3fa(0x301)]('Resume\x20a\x20paused\x20campaign')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))[a2_0x12e3fa(0x161)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x132))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2a8))['option'](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))[a2_0x12e3fa(0x161)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd['command'](a2_0x12e3fa(0x267))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x371))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x36d),a2_0x12e3fa(0x12c))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1ad),a2_0x12e3fa(0xbe))[a2_0x12e3fa(0x328)]('--dry-run','Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x12e3fa(0x161)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x12e3fa(0x35f)]('push\x20[target]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xc0))[a2_0x12e3fa(0x328)]('--workspace\x20<name>',a2_0x12e3fa(0x382))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x282),a2_0x12e3fa(0x263))[a2_0x12e3fa(0x161)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x32a))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x17f))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xc5),a2_0x12e3fa(0x170))[a2_0x12e3fa(0x161)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1f9))[a2_0x12e3fa(0x301)]('Always-on\x20campaign\x20management');alwaysOnCampaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x307))[a2_0x12e3fa(0x301)]('List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1ad),a2_0x12e3fa(0xbe))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2fb),a2_0x12e3fa(0xa2))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x343))[a2_0x12e3fa(0x161)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x27e))[a2_0x12e3fa(0x301)]('List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1ad),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2fb),a2_0x12e3fa(0xa2))[a2_0x12e3fa(0x2e6)]('--workspace\x20<name>',a2_0x12e3fa(0x343))[a2_0x12e3fa(0x161)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd['command'](a2_0x12e3fa(0xf5))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x23f))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x343))['option'](a2_0x12e3fa(0x28f),a2_0x12e3fa(0x235))['action'](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x31c))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2a5))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x36d),a2_0x12e3fa(0x17c))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x1ad),a2_0x12e3fa(0x8f))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x343))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x99),a2_0x12e3fa(0x203))['option'](a2_0x12e3fa(0x273),a2_0x12e3fa(0x24d))[a2_0x12e3fa(0x328)]('--enable-utm-tracking',a2_0x12e3fa(0x141))[a2_0x12e3fa(0x161)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd['command'](a2_0x12e3fa(0x386))['description'](a2_0x12e3fa(0x207))['requiredOption'](a2_0x12e3fa(0x83),'Workspace\x20name\x20(required)')['option'](a2_0x12e3fa(0x36d),a2_0x12e3fa(0xde))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x99),a2_0x12e3fa(0x203))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x273),a2_0x12e3fa(0x24d))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x312),a2_0x12e3fa(0x141))[a2_0x12e3fa(0x161)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x246))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x125))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x343))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x14c),a2_0x12e3fa(0x365))[a2_0x12e3fa(0x161)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x12e3fa(0x35f)]('launch\x20<name-or-id>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x12d))['requiredOption'](a2_0x12e3fa(0x83),a2_0x12e3fa(0x343))[a2_0x12e3fa(0x161)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x356))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xdb))[a2_0x12e3fa(0x2e6)]('--workspace\x20<name>',a2_0x12e3fa(0x343))[a2_0x12e3fa(0x161)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x374))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x218))['requiredOption']('--workspace\x20<name>',a2_0x12e3fa(0x343))[a2_0x12e3fa(0x161)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x341))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x319))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x343))['option'](a2_0x12e3fa(0x14c),a2_0x12e3fa(0x365))[a2_0x12e3fa(0x161)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd['command'](a2_0x12e3fa(0x132))[a2_0x12e3fa(0x301)]('Duplicate\x20an\x20always-on\x20campaign')[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x343))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x36d),a2_0x12e3fa(0x1e8))[a2_0x12e3fa(0x161)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x12e3fa(0x24a))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x10a));templateCmd['command']('list\x20[pattern]')['description'](a2_0x12e3fa(0x213))[a2_0x12e3fa(0x328)]('--workspace\x20<name>',a2_0x12e3fa(0x382))[a2_0x12e3fa(0x161)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xcc))[a2_0x12e3fa(0x301)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')['option'](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))[a2_0x12e3fa(0x161)](createEngageListAction(EngageTemplatesCommand)),templateCmd['command'](a2_0x12e3fa(0xf5))['description']('Show\x20email\x20template\x20details')[a2_0x12e3fa(0x328)]('--workspace\x20<name>',a2_0x12e3fa(0x382))[a2_0x12e3fa(0x328)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x12e3fa(0x161)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x31c))[a2_0x12e3fa(0x301)]('Create\x20an\x20email\x20template')[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x36d),a2_0x12e3fa(0x2f3))[a2_0x12e3fa(0x2e6)](a2_0x12e3fa(0x15e),a2_0x12e3fa(0x1dd))[a2_0x12e3fa(0x328)]('--html\x20<html>',a2_0x12e3fa(0x34b))['option'](a2_0x12e3fa(0x385),'Read\x20HTML\x20template\x20from\x20file')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x83),'Workspace\x20name\x20(required)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x155),a2_0x12e3fa(0x249))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1d7),'Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)',_0x37644d=>{const _0xd9918c=a2_0x12e3fa;if(![_0xd9918c(0xf2),_0xd9918c(0x26e)]['includes'](_0x37644d))throw new SDKError(ErrorCode[_0xd9918c(0x345)],_0xd9918c(0x2e2)+_0x37644d+_0xd9918c(0xf0));return _0x37644d;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x386))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x281))['option'](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))['option'](a2_0x12e3fa(0x36d),'New\x20template\x20name')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x15e),a2_0x12e3fa(0x1dd))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x181),'HTML\x20template\x20content')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x385),a2_0x12e3fa(0x10c))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x155),a2_0x12e3fa(0x249))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x12e3fa(0x35f)]('pull\x20[workspace]')['description']('Pull\x20templates\x20to\x20YAML\x20files')['option'](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))[a2_0x12e3fa(0x328)]('--name\x20<name>','Pull\x20specific\x20template\x20by\x20name')['option'](a2_0x12e3fa(0xd4),a2_0x12e3fa(0x365))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x282),a2_0x12e3fa(0x168))[a2_0x12e3fa(0x161)](createEngageAction(EngageTemplatePullCommand)),templateCmd['command'](a2_0x12e3fa(0x14e))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x91))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xd4),a2_0x12e3fa(0x365))[a2_0x12e3fa(0x328)]('--dry-run',a2_0x12e3fa(0x263))[a2_0x12e3fa(0x161)](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x32a))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x9d))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xc5),a2_0x12e3fa(0x170))[a2_0x12e3fa(0x161)](createEngageAction(EngageTemplateValidateCommand)),templateCmd['command'](a2_0x12e3fa(0x246))['description'](a2_0x12e3fa(0x254))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x83),a2_0x12e3fa(0x382))['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x12e3fa(0x161)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x12e3fa(0x9b))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x178));workspaceCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x307))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x20c))[a2_0x12e3fa(0x161)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x112))['description'](a2_0x12e3fa(0x1c9))[a2_0x12e3fa(0x161)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xf5))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x242))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x28f),a2_0x12e3fa(0x235))[a2_0x12e3fa(0x161)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x31c))[a2_0x12e3fa(0x301)]('Create\x20a\x20workspace')[a2_0x12e3fa(0x2e6)]('--name\x20<name>',a2_0x12e3fa(0x382))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x99),a2_0x12e3fa(0x1bc))[a2_0x12e3fa(0x161)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x12e3fa(0x35f)]('update\x20<name-or-id>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x368))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x36d),a2_0x12e3fa(0x2e0))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x99),a2_0x12e3fa(0x1bc))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x246))['description'](a2_0x12e3fa(0x280))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x14c),a2_0x12e3fa(0x365))[a2_0x12e3fa(0x161)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command']('use\x20<name>')['description'](a2_0x12e3fa(0x154))[a2_0x12e3fa(0x161)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x21e))['description']('Delivery\x20operations\x20(email\x20senders)');deliveryCmd[a2_0x12e3fa(0x35f)]('senders\x20[pattern]')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x35d))[a2_0x12e3fa(0x328)]('--workspace\x20<name>',a2_0x12e3fa(0x382))['action'](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2cd))['description']('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x42be73=>{const _0x3d3d14=a2_0x12e3fa,_0x59c606=new ConnectionListCommand(),_0x38526d=program['opts'](),_0x297447=await createTDXInstance(_0x38526d),_0x4e2d8d=await _0x59c606[_0x3d3d14(0x1b3)]({'options':{..._0x38526d,..._0x42be73},'args':[],'tdx':_0x297447});gracefulExit(_0x4e2d8d);};connectionCmd[a2_0x12e3fa(0x35f)]('list')[a2_0x12e3fa(0x301)]('List\x20all\x20data\x20connections')[a2_0x12e3fa(0x161)](connectionListAction),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x1a5),{'hidden':!![]})[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x176))[a2_0x12e3fa(0x161)](connectionListAction),connectionCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xfa))[a2_0x12e3fa(0x301)]('Show\x20connection\x20details\x20by\x20name')[a2_0x12e3fa(0x161)](async(_0x4af950,_0xa7e735)=>{const _0x436f4c=a2_0x12e3fa,_0x28bcaf=new ConnectionShowCommand(),_0x10eadd=program[_0x436f4c(0xb2)](),_0x1fed42=await createTDXInstance(_0x10eadd),_0x9697be=await _0x28bcaf[_0x436f4c(0x1b3)]({'options':{..._0x10eadd,..._0xa7e735},'args':[_0x4af950],'tdx':_0x1fed42});gracefulExit(_0x9697be);}),connectionCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x346))[a2_0x12e3fa(0x301)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')['action'](async(_0x5da619,_0x410c31)=>{const _0x33103e=a2_0x12e3fa,_0x3f5d64=new ConnectionSchemaCommand(),_0x1077ec=program['opts'](),_0x402270=await createTDXInstance(_0x1077ec),_0x28c875=await _0x3f5d64[_0x33103e(0x1b3)]({'options':{..._0x1077ec,..._0x410c31},'args':[_0x5da619],'tdx':_0x402270});gracefulExit(_0x28c875);}),connectionCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xab))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x109))[a2_0x12e3fa(0x161)](async _0x1c5b47=>{const _0x25cc8e=a2_0x12e3fa,_0x3c9298=new ConnectionTypesCommand(),_0xdf4915=program[_0x25cc8e(0xb2)](),_0xbe1f16=await createTDXInstance(_0xdf4915),_0x4b94f5=await _0x3c9298[_0x25cc8e(0x1b3)]({'options':{..._0xdf4915,..._0x1c5b47},'args':[],'tdx':_0xbe1f16});gracefulExit(_0x4b94f5);}),connectionCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x228))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x16f))['action'](async(_0x14c532,_0x252acf)=>{const _0x3d90cb=a2_0x12e3fa,_0x5bbf8e=new ConnectionSettingsCommand(),_0x4605c2=program[_0x3d90cb(0xb2)](),_0x4c4d91=await createTDXInstance(_0x4605c2),_0x1768bb=await _0x5bbf8e[_0x3d90cb(0x1b3)]({'options':{..._0x4605c2,..._0x252acf},'args':[_0x14c532],'tdx':_0x4c4d91});gracefulExit(_0x1768bb);});const casCmd=program['command'](a2_0x12e3fa(0x383))[a2_0x12e3fa(0x301)]('Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)');casCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2ed))[a2_0x12e3fa(0x301)]('List\x20composable\x20audiences')[a2_0x12e3fa(0x161)](async _0x4256d8=>{const _0x48412c=a2_0x12e3fa,_0x55e51a=new CASListCommand(),_0x3cd931=program[_0x48412c(0xb2)](),_0x41a737=await createTDXInstance(_0x3cd931),_0x1c7388=await _0x55e51a['run']({'options':{..._0x3cd931,..._0x4256d8},'args':[],'tdx':_0x41a737});gracefulExit(_0x1c7388);}),casCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x16e))[a2_0x12e3fa(0x301)]('Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x12e3fa(0x161)](async(_0x347ab9,_0x53d4f1)=>{const _0x34b23c=a2_0x12e3fa,_0x56352b=new CASDescCommand(),_0x3cca8c=program['opts'](),_0x44b80c=await createTDXInstance(_0x3cca8c),_0xba98b6=await _0x56352b[_0x34b23c(0x1b3)]({'options':{..._0x3cca8c,..._0x53d4f1},'args':_0x347ab9?[_0x347ab9]:[],'tdx':_0x44b80c});gracefulExit(_0xba98b6);}),casCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x122))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x28a))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2e9),a2_0x12e3fa(0xd5))['option'](a2_0x12e3fa(0x282),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x12e3fa(0x161)](async(_0x1a695e,_0x40ce22)=>{const _0x4859d7=a2_0x12e3fa,_0x2026fc=new CASPullCommand(),_0x33c1ff=program[_0x4859d7(0xb2)](),_0x59b772=await createTDXInstance(_0x33c1ff),_0x45f347=await _0x2026fc[_0x4859d7(0x1b3)]({'options':{..._0x33c1ff,..._0x40ce22},'args':_0x1a695e?[_0x1a695e]:[],'tdx':_0x59b772});gracefulExit(_0x45f347);}),casCmd['command'](a2_0x12e3fa(0x14e))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x26f))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x282),a2_0x12e3fa(0x147))[a2_0x12e3fa(0x161)](async(_0x4564b7,_0x1978a8)=>{const _0x9b3447=a2_0x12e3fa,_0x3a0102=new CASPushCommand(),_0x1acb01=program[_0x9b3447(0xb2)](),_0x4db83a=await createTDXInstance(_0x1acb01),_0x5c45dd=await _0x3a0102[_0x9b3447(0x1b3)]({'options':{..._0x1acb01,..._0x1978a8},'args':_0x4564b7?[_0x4564b7]:[],'tdx':_0x4db83a});gracefulExit(_0x5c45dd);}),casCmd[a2_0x12e3fa(0x35f)]('preview\x20<segment_name>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2cc))[a2_0x12e3fa(0x328)]('--audience\x20<name>',a2_0x12e3fa(0x1c6))[a2_0x12e3fa(0x161)](async(_0x5a2811,_0x3e4aac)=>{const _0x19f514=a2_0x12e3fa,_0x40b9b1=new CASPreviewCommand(),_0x51717e=program[_0x19f514(0xb2)](),_0x12d5c8=await createTDXInstance(_0x51717e),_0x2116a7=await _0x40b9b1[_0x19f514(0x1b3)]({'options':{..._0x51717e,..._0x3e4aac},'args':[_0x5a2811,_0x3e4aac[_0x19f514(0x2ce)]],'tdx':_0x12d5c8});gracefulExit(_0x2116a7);});const casSgCmd=casCmd[a2_0x12e3fa(0x35f)]('sg')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2d6));casSgCmd['command']('list\x20[audience_name]')['description'](a2_0x12e3fa(0x2d1))[a2_0x12e3fa(0x161)](async(_0x1f5436,_0x5e297c)=>{const _0xac9abf=a2_0x12e3fa,_0x49dcf5=new CASSegmentListCommand(),_0x48abc3=program[_0xac9abf(0xb2)](),_0x23db00=await createTDXInstance(_0x48abc3),_0x4ede37=await _0x49dcf5[_0xac9abf(0x1b3)]({'options':{..._0x48abc3,..._0x5e297c},'args':_0x1f5436?[_0x1f5436]:[],'tdx':_0x23db00});gracefulExit(_0x4ede37);});const journeyCmd=program[a2_0x12e3fa(0x35f)]('journey')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xb0)),journeyListAction=async(_0x377b04,_0x257229)=>{const _0x1bc28d=a2_0x12e3fa,_0x5395c6=new JourneyListCommand(),_0x602d8f=program['opts'](),_0x46c4ac=await createTDXInstance(_0x602d8f),_0x3ad7ff=await _0x5395c6[_0x1bc28d(0x1b3)]({'options':{..._0x602d8f,..._0x257229},'args':_0x377b04?[_0x377b04]:[],'tdx':_0x46c4ac});gracefulExit(_0x3ad7ff);};journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x307))[a2_0x12e3fa(0x301)]('List\x20journeys\x20in\x20current\x20context')[a2_0x12e3fa(0x161)](journeyListAction),journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x179))['description'](a2_0x12e3fa(0xc4))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xd3),'Open\x20journey\x20in\x20web\x20browser')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x15b),a2_0x12e3fa(0x127))[a2_0x12e3fa(0x161)](async(_0x46c285,_0x3c4e26)=>{const _0x247d64=a2_0x12e3fa,_0x279088=new JourneyViewCommand(),_0x2d4cc7=program[_0x247d64(0xb2)](),_0x332cd8=await createTDXInstance(_0x2d4cc7),_0x3ae493=await _0x279088[_0x247d64(0x1b3)]({'options':{..._0x2d4cc7,..._0x3c4e26},'args':[_0x46c285],'tdx':_0x332cd8});gracefulExit(_0x3ae493);}),journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x185))['description']('Show\x20journey\x20statistics')['option'](a2_0x12e3fa(0xea),a2_0x12e3fa(0xcb))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x377),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x18f),a2_0x12e3fa(0xfb))['option']('--include-history',a2_0x12e3fa(0x233))['action'](async(_0x28d50b,_0x2d8723)=>{const _0x877300=a2_0x12e3fa,_0x315b9f=new JourneyStatsCommand(),_0x3543e4=program['opts'](),_0xbc0e8e=await createTDXInstance(_0x3543e4),_0x2b05ef=await _0x315b9f[_0x877300(0x1b3)]({'options':{..._0x3543e4,..._0x2d8723},'args':[_0x28d50b],'tdx':_0xbc0e8e});gracefulExit(_0x2b05ef);}),journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x388))['description'](a2_0x12e3fa(0x23c))[a2_0x12e3fa(0x328)]('--type\x20<type>',a2_0x12e3fa(0x2c0))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x377),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x18f),a2_0x12e3fa(0xfb))[a2_0x12e3fa(0x328)]('--limit\x20<number>',a2_0x12e3fa(0x1cd),_0xfad869=>{const _0x1cd8f9=a2_0x12e3fa,_0x5a4954=parseInt(_0xfad869,0xa);if(isNaN(_0x5a4954))throw new Error(_0x1cd8f9(0x136)+_0xfad869+_0x1cd8f9(0x25a));return _0x5a4954;})[a2_0x12e3fa(0x161)](async(_0x179053,_0x315494)=>{const _0x2a2b6c=a2_0x12e3fa,_0x2aa5be=new JourneyTrafficCommand(),_0xa95745=program[_0x2a2b6c(0xb2)](),_0x176540=await createTDXInstance(_0xa95745),_0x5cdca0=await _0x2aa5be['run']({'options':{..._0xa95745,..._0x315494},'args':[_0x179053],'tdx':_0x176540});gracefulExit(_0x5cdca0);}),journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2df))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x199))[a2_0x12e3fa(0x161)](async(_0x166540,_0x54cc7c)=>{const _0x43598c=a2_0x12e3fa,_0xe1bcec=new JourneyPauseCommand(),_0x439d22=program[_0x43598c(0xb2)](),_0x2d1f91=await createTDXInstance(_0x439d22),_0x4bb835=await _0xe1bcec[_0x43598c(0x1b3)]({'options':{..._0x439d22,..._0x54cc7c},'args':[_0x166540],'tdx':_0x2d1f91});gracefulExit(_0x4bb835);}),journeyCmd['command'](a2_0x12e3fa(0x139))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1d3))[a2_0x12e3fa(0x161)](async(_0x6c4a38,_0x5926c5)=>{const _0x43ef67=a2_0x12e3fa,_0x78109e=new JourneyResumeCommand(),_0x9b0c43=program[_0x43ef67(0xb2)](),_0x1d977c=await createTDXInstance(_0x9b0c43),_0x2ad0bf=await _0x78109e[_0x43ef67(0x1b3)]({'options':{..._0x9b0c43,..._0x5926c5},'args':[_0x6c4a38],'tdx':_0x1d977c});gracefulExit(_0x2ad0bf);}),journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x122))['description']('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x12e3fa(0x328)]('--dry-run',a2_0x12e3fa(0x26b))[a2_0x12e3fa(0x161)](async(_0x2467cd,_0x2c7c5d)=>{const _0x47bd3a=a2_0x12e3fa,_0x20ab5c=new JourneyPullCommand(),_0x3d8467=program[_0x47bd3a(0xb2)](),_0x6a37c0=await createTDXInstance(_0x3d8467),_0x33fc4e=await _0x20ab5c['run']({'options':{..._0x3d8467,..._0x2c7c5d},'args':_0x2467cd?[_0x2467cd]:[],'tdx':_0x6a37c0});gracefulExit(_0x33fc4e);}),journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x14e))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x306))[a2_0x12e3fa(0x161)](async(_0xbfe1bc,_0x3882b3)=>{const _0x4dd13e=a2_0x12e3fa,_0x855ed4=new JourneyPushCommand(),_0x1724f3=program[_0x4dd13e(0xb2)](),_0xfcb494=await createTDXInstance(_0x1724f3),_0x4bd5dc=await _0x855ed4['run']({'options':{..._0x1724f3,..._0x3882b3},'args':_0xbfe1bc?[_0xbfe1bc]:[],'tdx':_0xfcb494});gracefulExit(_0x4bd5dc);}),journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x24e))['description'](a2_0x12e3fa(0x11c))[a2_0x12e3fa(0x161)](async(_0x3d48dc,_0x254ebd)=>{const _0x17ec1d=a2_0x12e3fa,_0xeceac5=new JourneyColumnsCommand(),_0x2b3d5d=program[_0x17ec1d(0xb2)](),_0x2d5e78=await createTDXInstance(_0x2b3d5d),_0x87d123=await _0xeceac5['run']({'options':{..._0x2b3d5d,..._0x254ebd},'args':[_0x3d48dc],'tdx':_0x2d5e78});gracefulExit(_0x87d123);}),journeyCmd[a2_0x12e3fa(0x35f)]('activations\x20<name-or-path>')[a2_0x12e3fa(0x301)]('List\x20activations\x20for\x20a\x20journey')[a2_0x12e3fa(0x161)](async(_0x470fa0,_0x22f39f)=>{const _0x1b84ce=a2_0x12e3fa,_0x2386b2=new JourneyActivationsCommand(),_0x3032d2=program['opts'](),_0x43f002=await createTDXInstance(_0x3032d2),_0x51a124=await _0x2386b2[_0x1b84ce(0x1b3)]({'options':{..._0x3032d2,..._0x22f39f},'args':[_0x470fa0],'tdx':_0x43f002});gracefulExit(_0x51a124);}),journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x216))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x342))[a2_0x12e3fa(0x161)](async(_0xa4960d,_0x5a86aa)=>{const _0xe75d6c=a2_0x12e3fa,_0x41f31c=new JourneyVersionsCommand(),_0x29160c=program[_0xe75d6c(0xb2)](),_0x2212ce=await createTDXInstance(_0x29160c),_0xf4a50e=await _0x41f31c['run']({'options':{..._0x29160c,..._0x5a86aa},'args':[_0xa4960d],'tdx':_0x2212ce});gracefulExit(_0xf4a50e);});const journeyVersionCmd=journeyCmd['command']('version')['description'](a2_0x12e3fa(0x2b7));journeyVersionCmd[a2_0x12e3fa(0x35f)]('create\x20<name-or-path>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xdf))[a2_0x12e3fa(0x161)](async(_0x1a765f,_0x2e480b)=>{const _0x169f97=a2_0x12e3fa,_0x4e63fd=new JourneyVersionCreateCommand(),_0x32fbbc=program[_0x169f97(0xb2)](),_0x344454=await createTDXInstance(_0x32fbbc),_0x4cc956=await _0x4e63fd[_0x169f97(0x1b3)]({'options':{..._0x32fbbc,..._0x2e480b},'args':[_0x1a765f],'tdx':_0x344454});gracefulExit(_0x4cc956);}),journeyVersionCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x179))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x126))[a2_0x12e3fa(0x2e6)]('--version\x20<number>',a2_0x12e3fa(0xa7))[a2_0x12e3fa(0x161)](async(_0x3c8576,_0x1bc866)=>{const _0x1d9b20=a2_0x12e3fa,_0x47b637=new JourneyVersionViewCommand(),_0x2c5bb2=program[_0x1d9b20(0xb2)](),_0x395768=await createTDXInstance(_0x2c5bb2),_0x235bdd=await _0x47b637[_0x1d9b20(0x1b3)]({'options':{..._0x2c5bb2,..._0x1bc866},'args':[_0x3c8576],'tdx':_0x395768});gracefulExit(_0x235bdd);}),journeyCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x32a))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0xa0))[a2_0x12e3fa(0x161)](async(_0x4cb258,_0x323434)=>{const _0x5c421a=a2_0x12e3fa,_0x199f77=new JourneyValidateCommand(),_0xd1a23a=program[_0x5c421a(0xb2)](),_0x4393c0=await createTDXInstance(_0xd1a23a),_0x83a4d9=await _0x199f77[_0x5c421a(0x1b3)]({'options':{..._0xd1a23a,..._0x323434},'args':_0x4cb258?[_0x4cb258]:[],'tdx':_0x4393c0});gracefulExit(_0x83a4d9);}),program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2da))['description']('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x12e3fa(0x161)](journeyListAction);const agentSyncCmd=program[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2a1))['description']('LLM\x20agent\x20management');agentSyncCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2b6))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x376))[a2_0x12e3fa(0x328)]('-o,\x20--output\x20<dir>',a2_0x12e3fa(0x311))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x158),a2_0x12e3fa(0x1c4))[a2_0x12e3fa(0x328)]('-a,\x20--agent\x20<name>','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)')[a2_0x12e3fa(0x161)](async(_0x4b20a8,_0x233f0b,_0x370bab)=>{const _0x47b6b7=a2_0x12e3fa,_0x526904=new AgentPullCommand(),_0x8d8d66=program['opts'](),_0xc66cb0=await createTDXInstance(_0x8d8d66),_0x19ebc8=[];if(_0x4b20a8)_0x19ebc8[_0x47b6b7(0x274)](_0x4b20a8);if(_0x233f0b)_0x19ebc8[_0x47b6b7(0x274)](_0x233f0b);const _0x33861b=await _0x526904[_0x47b6b7(0x1b3)]({'options':{..._0x8d8d66,..._0x370bab},'args':_0x19ebc8,'tdx':_0xc66cb0});gracefulExit(_0x33861b);}),agentSyncCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x248))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1c1))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x158),a2_0x12e3fa(0x2e5))['action'](async(_0x2b1190,_0x4725c9)=>{const _0x5009c9=a2_0x12e3fa,_0xe79610=new AgentPushCommand(),_0x17ab35=program[_0x5009c9(0xb2)](),_0x683beb=await createTDXInstance(_0x17ab35),_0x4ebd46=await _0xe79610['run']({'options':{..._0x17ab35,..._0x4725c9},'args':_0x2b1190?[_0x2b1190]:[],'tdx':_0x683beb});gracefulExit(_0x4ebd46);}),agentSyncCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x142))['description']('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x26a),a2_0x12e3fa(0x208))[a2_0x12e3fa(0x161)](async(_0x1be88f,_0x2e78b0)=>{const _0x440dd4=a2_0x12e3fa,_0x93b58=new AgentCloneCommand(),_0x35385b=program[_0x440dd4(0xb2)](),_0x3a104d=await createTDXInstance(_0x35385b),_0x542289=await _0x93b58[_0x440dd4(0x1b3)]({'options':{..._0x35385b,..._0x2e78b0},'args':_0x1be88f?[_0x1be88f]:[],'tdx':_0x3a104d});gracefulExit(_0x542289);}),agentSyncCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x279))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x326))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x144),'Run\x20specific\x20tests\x20(comma-separated)')['option'](a2_0x12e3fa(0x8c),a2_0x12e3fa(0x14a))[a2_0x12e3fa(0x328)]('--dry-run','Parse\x20and\x20validate\x20without\x20executing')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x96),a2_0x12e3fa(0x34e))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x197),a2_0x12e3fa(0x84))[a2_0x12e3fa(0x161)](async(_0x28686d,_0x5d8519)=>{const _0x1def25=a2_0x12e3fa,_0x5cb2a0=new AgentTestCommand(),_0x2fefe9=program[_0x1def25(0xb2)](),_0x34c48e=await createTDXInstance(_0x2fefe9),_0x4bc337=await _0x5cb2a0[_0x1def25(0x1b3)]({'options':{..._0x2fefe9,..._0x5d8519},'args':_0x28686d?[_0x28686d]:[],'tdx':_0x34c48e});gracefulExit(_0x4bc337);}),agentSyncCmd['command'](a2_0x12e3fa(0x307))['description'](a2_0x12e3fa(0xe4))[a2_0x12e3fa(0x161)](llmAgentListAction),agentSyncCmd['command'](a2_0x12e3fa(0x38b))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x1ea))[a2_0x12e3fa(0x161)](async(_0x23e718,_0x184537)=>{const _0x385f0d=a2_0x12e3fa,_0x7cedc3=new LLMAgentShowCommand(),_0x56ddac=program[_0x385f0d(0xb2)](),_0x295314=await createTDXInstance(_0x56ddac),_0x1e19f1=await _0x7cedc3[_0x385f0d(0x1b3)]({'options':{..._0x56ddac,..._0x184537},'args':[_0x23e718],'tdx':_0x295314});gracefulExit(_0x1e19f1);}),agentSyncCmd['command'](a2_0x12e3fa(0xaa))['description'](a2_0x12e3fa(0xc8))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x325),a2_0x12e3fa(0x210))[a2_0x12e3fa(0x328)]('--model\x20<name>',a2_0x12e3fa(0x327),a2_0x12e3fa(0x2f5))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x37b),a2_0x12e3fa(0xcd))[a2_0x12e3fa(0x328)]('--max-tool-iterations\x20<n>',a2_0x12e3fa(0x34d),'4')[a2_0x12e3fa(0x328)]('--temperature\x20<n>',a2_0x12e3fa(0x2bd),a2_0x12e3fa(0x209))['action'](async(_0x377ea2,_0x2bab1b)=>{const _0x8ca0ad=new LLMAgentCreateCommand(),_0x34effc=program['opts'](),_0x2227ff=await createTDXInstance(_0x34effc),_0x58d56e=await _0x8ca0ad['run']({'options':{..._0x34effc,..._0x2bab1b},'args':[_0x377ea2],'tdx':_0x2227ff});gracefulExit(_0x58d56e);}),agentSyncCmd[a2_0x12e3fa(0x35f)]('update\x20<agent-name>')[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x180))['option'](a2_0x12e3fa(0xd8),a2_0x12e3fa(0x1b0))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x204),'Agent\x20prompt/instructions')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1d2),'Agent\x20description')['option'](a2_0x12e3fa(0x37b),a2_0x12e3fa(0xcd))[a2_0x12e3fa(0x161)](async(_0x2eb162,_0x9b690c)=>{const _0x17f11d=a2_0x12e3fa,_0x31279e=new LLMAgentUpdateCommand(),_0x5a6061=program[_0x17f11d(0xb2)](),_0x4b91f5=await createTDXInstance(_0x5a6061),_0x10ee99=await _0x31279e[_0x17f11d(0x1b3)]({'options':{..._0x5a6061,..._0x9b690c},'args':[_0x2eb162],'tdx':_0x4b91f5});gracefulExit(_0x10ee99);}),agentSyncCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x2e3))[a2_0x12e3fa(0x301)]('Delete\x20an\x20agent')['action'](async(_0x447756,_0x1c4498)=>{const _0x531a76=a2_0x12e3fa,_0x13dcfc=new LLMAgentDeleteCommand(),_0x78e9b4=program['opts'](),_0x44efa5=await createTDXInstance(_0x78e9b4),_0x3e6c46=await _0x13dcfc[_0x531a76(0x1b3)]({'options':{..._0x78e9b4,..._0x1c4498},'args':[_0x447756],'tdx':_0x44efa5});gracefulExit(_0x3e6c46);});const workCmd=program[a2_0x12e3fa(0x35f)]('work')['description'](a2_0x12e3fa(0x202));workCmd[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xa9),a2_0x12e3fa(0x149))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x237),a2_0x12e3fa(0x2f2))['action'](workSummaryAction),workCmd['command'](a2_0x12e3fa(0x2fc))['description'](a2_0x12e3fa(0x187))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x2fa),a2_0x12e3fa(0x2cf))[a2_0x12e3fa(0x161)](workInitAction),workCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x277))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2f6))[a2_0x12e3fa(0x328)]('--kind\x20<kind>',a2_0x12e3fa(0x18c),a2_0x12e3fa(0x94))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x8c),a2_0x12e3fa(0xf9))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x25b),a2_0x12e3fa(0x278))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x107),a2_0x12e3fa(0x1b9))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x217),a2_0x12e3fa(0x150))['option']('--status\x20<status>',a2_0x12e3fa(0x1fa))[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x1bd),a2_0x12e3fa(0x2f9))[a2_0x12e3fa(0x161)](workNewAction),workCmd[a2_0x12e3fa(0x35f)]('move\x20<name>\x20<status>')['description'](a2_0x12e3fa(0x33a))[a2_0x12e3fa(0x161)](workMoveAction),workCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0x292))['description']('Show\x20Kanban\x20board\x20view\x20of\x20tasks')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0xa9),'Show\x20items\x20updated\x20within\x20N\x20days')[a2_0x12e3fa(0x328)](a2_0x12e3fa(0x237),a2_0x12e3fa(0x2f2))[a2_0x12e3fa(0x161)](workBoardAction),workCmd[a2_0x12e3fa(0x35f)](a2_0x12e3fa(0xfa))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x2cb))[a2_0x12e3fa(0x161)](workShowAction),workCmd['command']('links\x20<name>')['description']('Show\x20wiki-links\x20and\x20backlinks\x20for\x20a\x20document')[a2_0x12e3fa(0x161)](workLinksAction),workCmd['command'](a2_0x12e3fa(0x1e4))[a2_0x12e3fa(0x301)](a2_0x12e3fa(0x37e))['action'](workOpenAction),program[a2_0x12e3fa(0x35f)]('_list-commands',{'hidden':!![]})[a2_0x12e3fa(0x161)](()=>{const _0x427032=a2_0x12e3fa;function _0x55f03a(_0x3e18d5,_0x4f23cb){const _0x1ad045=a2_0x3a84,_0x18590a=[];for(const _0x31cead of _0x3e18d5[_0x1ad045(0x353)]){if(_0x31cead[_0x1ad045(0x378)])continue;const _0x339c58=_0x4f23cb?_0x4f23cb+'\x20'+_0x31cead[_0x1ad045(0x16b)]():_0x31cead[_0x1ad045(0x16b)](),_0x44c361=_0x339c58[_0x1ad045(0xf3)]('\x20')[0x0],_0x3ab260=COMMAND_CATEGORIES['find'](_0x4600dd=>_0x4600dd[_0x1ad045(0x353)]['includes'](_0x44c361)),_0x19baab=_0x3ab260?.[_0x1ad045(0x16b)]??'';if(_0x31cead[_0x1ad045(0x353)][_0x1ad045(0x219)]>0x0)_0x18590a[_0x1ad045(0x274)](..._0x55f03a(_0x31cead,_0x339c58));else{const _0x5a2c33=(_0x31cead[_0x1ad045(0x2e7)]||[])['map'](_0x57ac45=>{const _0x271f14=_0x1ad045,_0x1eaa98=_0x57ac45['variadic']?_0x57ac45['name']()+_0x271f14(0x115):_0x57ac45['name']();return _0x57ac45[_0x271f14(0x1c3)]?'<'+_0x1eaa98+'>':'['+_0x1eaa98+']';})['join']('\x20'),_0x573290=_0x31cead['options'][_0x1ad045(0x338)](_0x6312b5=>!_0x6312b5[_0x1ad045(0x2f0)]&&_0x6312b5[_0x1ad045(0x1e2)]!==_0x1ad045(0x221))[_0x1ad045(0x20f)](_0x1692f3=>({'flags':_0x1692f3[_0x1ad045(0x85)],'description':_0x1692f3['description']}));_0x18590a[_0x1ad045(0x274)]({'name':_0x339c58,'description':_0x31cead[_0x1ad045(0x301)](),'group':_0x19baab,'usage':_0x5a2c33,'options':_0x573290});}}return _0x18590a;}console[_0x427032(0x322)](JSON[_0x427032(0x18e)](_0x55f03a(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x4749be=a2_0x12e3fa,_0x540f58=!process[_0x4749be(0x33d)][_0x4749be(0x375)](0x2)[_0x4749be(0x219)];showBriefHelp=_0x540f58,program['parse'](process[_0x4749be(0x33d)]);_0x540f58&&program[_0x4749be(0x11d)]();const _0x416359=process[_0x4749be(0x33d)][0x2]==='upgrade';if(process['stderr']['isTTY']&&process[_0x4749be(0x33d)][_0x4749be(0x219)]>0x2&&!isDevVersion()&&!_0x416359){const _0x5c0eb5=loadReleaseChannel();checkForUpdate(currentVersion,_0x5c0eb5)[_0x4749be(0x366)](_0x276215=>{_0x276215&&displayUpdateNotification(_0x276215);})[_0x4749be(0x19e)](()=>{});}}
|
|
1
|
+
const a2_0x40ec05=a2_0x2945;(function(_0x260eb3,_0x1c8d36){const _0x31d3a9=a2_0x2945,_0x2e74fb=_0x260eb3();while(!![]){try{const _0x24a698=-parseInt(_0x31d3a9(0xfa))/0x1+parseInt(_0x31d3a9(0x18d))/0x2+parseInt(_0x31d3a9(0x37f))/0x3+parseInt(_0x31d3a9(0x2ee))/0x4*(parseInt(_0x31d3a9(0x31a))/0x5)+parseInt(_0x31d3a9(0x104))/0x6*(parseInt(_0x31d3a9(0x310))/0x7)+-parseInt(_0x31d3a9(0x1bb))/0x8+-parseInt(_0x31d3a9(0xbf))/0x9;if(_0x24a698===_0x1c8d36)break;else _0x2e74fb['push'](_0x2e74fb['shift']());}catch(_0x59a147){_0x2e74fb['push'](_0x2e74fb['shift']());}}}(a2_0x1d32,0x9486d));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,PSRtJnListCommand,PSRtJnPauseCommand,PSRtJnResumeCommand,PSRtConfigVersionCommand,PSPzServiceListCommand,PSPzServiceCreateCommand,PSPzServiceShowCommand,PSPzServiceDeleteCommand,PSPzServiceUpdateCommand,PSPzServiceTokenCreateCommand,PSPzServiceTokenDeleteCommand,PSPzListCommand,PSPzShowCommand,PSPzDeleteCommand,PSPzCreateCommand,PSPzPatchCommand,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';function a2_0x2945(_0x14ba07,_0x4aa220){_0x14ba07=_0x14ba07-0x92;const _0x1d3203=a2_0x1d32();let _0x2945e4=_0x1d3203[_0x14ba07];return _0x2945e4;}import{ProfileCreateCommand,ProfileDeleteCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{PolicyCommand,PolicyListCommand,PolicyShowCommand}from'./commands/policy-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{CASListCommand,CASDescCommand,CASPullCommand,CASPushCommand,CASPreviewCommand}from'./commands/cas-command.js';import{CASSegmentListCommand}from'./commands/cas-segment-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{workSummaryAction,workInitAction,workNewAction,workMoveAction,workBoardAction,workShowAction,workLinksAction,workOpenAction}from'./commands/work-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_0x40ec05(0x1b4)]['includes'](a2_0x40ec05(0x28c))){let versionOutput='tdx\x20'+currentVersion;buildInfo[a2_0x40ec05(0x153)]&&!currentVersion[a2_0x40ec05(0x130)](buildInfo[a2_0x40ec05(0x153)])&&(versionOutput+='\x20('+buildInfo[a2_0x40ec05(0x153)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x40ec05(0x108)+buildInfo[a2_0x40ec05(0x2e1)]),console[a2_0x40ec05(0x304)](versionOutput),process[a2_0x40ec05(0xa4)](0x0);}const program=new Command();export function mergeCommandOptions(_0x4c2b43,_0x53d05f){const _0x430b97=a2_0x40ec05,_0x170623={..._0x4c2b43};for(const [_0x1c9c47,_0x58a529]of Object[_0x430b97(0x397)](_0x53d05f)){_0x58a529!==undefined&&(_0x170623[_0x1c9c47]=_0x58a529);}return _0x170623;}let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x40ec05(0x153)]&&!currentVersion['includes'](buildInfo[a2_0x40ec05(0x153)])?description+=a2_0x40ec05(0x28b)+currentVersion+'\x20('+buildInfo[a2_0x40ec05(0x153)]+')':description+=a2_0x40ec05(0x28b)+currentVersion;program[a2_0x40ec05(0x116)](a2_0x40ec05(0x1d6))['description'](description),program['option']('-C,\x20--directory\x20<path>',a2_0x40ec05(0x1b2))['option'](a2_0x40ec05(0x1bf),a2_0x40ec05(0x179))[a2_0x40ec05(0x295)]('--site\x20<site>','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x40ec05(0xa3))[a2_0x40ec05(0x295)](a2_0x40ec05(0x31d),a2_0x40ec05(0x33b))['option'](a2_0x40ec05(0x193),a2_0x40ec05(0x13e))['option']('--json',a2_0x40ec05(0x377))[a2_0x40ec05(0x295)](a2_0x40ec05(0x393),a2_0x40ec05(0x186))[a2_0x40ec05(0x295)](a2_0x40ec05(0x218),a2_0x40ec05(0x3a8))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1a4),a2_0x40ec05(0x2fd))[a2_0x40ec05(0x295)](a2_0x40ec05(0x354),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')['option'](a2_0x40ec05(0xf6),a2_0x40ec05(0xe2),![])['option'](a2_0x40ec05(0x2d8),a2_0x40ec05(0x1ff),![])[a2_0x40ec05(0x295)]('-v,\x20--verbose',a2_0x40ec05(0x38a),![])['option']('--debug',a2_0x40ec05(0x172))[a2_0x40ec05(0x295)](a2_0x40ec05(0x31c),a2_0x40ec05(0x23c))[a2_0x40ec05(0x295)](a2_0x40ec05(0x345),a2_0x40ec05(0x2f9),'30')[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),a2_0x40ec05(0x11e),![])[a2_0x40ec05(0x295)]('-y,\x20--yes',a2_0x40ec05(0xc1),![])[a2_0x40ec05(0x295)](a2_0x40ec05(0x33e),a2_0x40ec05(0x32b))[a2_0x40ec05(0x295)]('--parent-segment\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x270),a2_0x40ec05(0xf3)),program[a2_0x40ec05(0x367)]({'formatHelp':(_0x51eb22,_0x140588)=>{const _0x3e0dbf=a2_0x40ec05,_0x5a0717=_0x140588[_0x3e0dbf(0x273)](_0x51eb22,_0x140588),_0x33b720=0x2,_0x2aed17=0x2;function _0x340743(_0x235206){const _0x1c0f3e=_0x3e0dbf,_0x21b1a2=_0x235206;return!!(_0x21b1a2[_0x1c0f3e(0x181)]||_0x21b1a2[_0x1c0f3e(0x232)]);}function _0x17d2ab(_0x310c73,_0x290820){const _0x49ddcd=_0x3e0dbf;if(_0x290820){const _0x4bf52a=''+_0x310c73[_0x49ddcd(0x330)](_0x5a0717+_0x2aed17)+_0x290820;return _0x4bf52a;}return _0x310c73;}function _0x4ea03e(_0x5a5dc3){const _0x3a901b=_0x3e0dbf;return _0x5a5dc3[_0x3a901b(0x3af)]('\x0a')[_0x3a901b(0xdd)](/^/gm,'\x20'[_0x3a901b(0x34a)](_0x33b720));}const _0x17358d=[];_0x17358d['push'](_0x3e0dbf(0x2e3)+_0x140588[_0x3e0dbf(0x1e1)](_0x51eb22));const _0xa1f72b=_0x140588[_0x3e0dbf(0xce)](_0x51eb22);_0xa1f72b&&(_0x17358d['push'](''),_0x17358d[_0x3e0dbf(0xda)](_0xa1f72b));const _0x43121f=_0x51eb22[_0x3e0dbf(0x2b2)][_0x3e0dbf(0x2ad)](_0x1a674c=>!_0x340743(_0x1a674c));if(_0x43121f['length']>0x0){if(_0x51eb22['name']()===_0x3e0dbf(0x1d6)){const _0x2037d0=_0x51eb22[_0x3e0dbf(0x184)](),_0x3f942a=!_0x2037d0[_0x3e0dbf(0x10f)]&&process['stdout']['isTTY'],_0x2f6573=COMMAND_CATEGORIES,_0x637014=(_0x6455a8,_0x220b1d)=>_0x3f942a?_0x220b1d(_0x6455a8):_0x6455a8,_0x40d809=new Map();_0x43121f[_0x3e0dbf(0x1de)](_0x559c37=>{const _0x53e19f=_0x3e0dbf;_0x40d809[_0x53e19f(0x38e)](_0x559c37[_0x53e19f(0x116)](),_0x559c37);}),_0x2f6573[_0x3e0dbf(0x1de)](_0x2e936c=>{const _0x1e4062=_0x3e0dbf,_0x5c13db=_0x2e936c[_0x1e4062(0x2b2)][_0x1e4062(0x2bd)](_0x1da05b=>_0x40d809[_0x1e4062(0x13d)](_0x1da05b)??[]);if(_0x5c13db[_0x1e4062(0x168)]>0x0){_0x17358d[_0x1e4062(0xda)](''),_0x17358d[_0x1e4062(0xda)](_0x637014(_0x2e936c[_0x1e4062(0x116)]+':',_0x2e936c['colorFn']));const _0x1e10cb=_0x5c13db[_0x1e4062(0x141)](_0x24241a=>{const _0x475ebb=_0x1e4062,_0x330292=_0x140588[_0x475ebb(0x2c8)](_0x24241a),_0x10c2e2=_0x140588[_0x475ebb(0x29d)](_0x24241a);return _0x17d2ab(_0x330292,_0x10c2e2);});_0x17358d['push'](_0x4ea03e(_0x1e10cb));}}),_0x17358d['push'](''),_0x17358d['push'](_0x3e0dbf(0x2b7));}else{const _0x351efb=_0x43121f[_0x3e0dbf(0x141)](_0xba98d4=>{const _0x18d2a5=_0x3e0dbf,_0x3a502e=_0x140588[_0x18d2a5(0x2c8)](_0xba98d4),_0x56b0c4=_0x140588[_0x18d2a5(0x29d)](_0xba98d4);return _0x17d2ab(_0x3a502e,_0x56b0c4);});_0x17358d['push'](''),_0x17358d[_0x3e0dbf(0xda)](_0x3e0dbf(0xd8)),_0x17358d['push'](_0x4ea03e(_0x351efb));}}if(showBriefHelp&&_0x51eb22[_0x3e0dbf(0x116)]()==='tdx')_0x17358d[_0x3e0dbf(0xda)](''),_0x17358d['push'](_0x3e0dbf(0xc3));else{const _0x4f1d25=_0x51eb22[_0x3e0dbf(0xd2)]['filter'](_0xbb1edf=>!_0x340743(_0xbb1edf));if(_0x4f1d25[_0x3e0dbf(0x168)]>0x0){const _0x1cb5a1=_0x4f1d25[_0x3e0dbf(0x141)](_0x53c042=>{const _0x48ddf0=_0x3e0dbf,_0x2fcecb=_0x140588[_0x48ddf0(0x205)](_0x53c042),_0x3c2380=_0x140588[_0x48ddf0(0x3b6)](_0x53c042);return _0x17d2ab(_0x2fcecb,_0x3c2380);});_0x17358d[_0x3e0dbf(0xda)](''),_0x17358d[_0x3e0dbf(0xda)]('Options:'),_0x17358d['push'](_0x4ea03e(_0x1cb5a1));}}const _0x1b1b01=(_0x51eb22['registeredArguments']||[])[_0x3e0dbf(0x2ad)](_0x23a74e=>!_0x340743(_0x23a74e));if(_0x1b1b01['length']>0x0){const _0x447f42=_0x1b1b01[_0x3e0dbf(0x141)](_0x359845=>{const _0x12a9a2=_0x3e0dbf,_0x46dab2=_0x140588[_0x12a9a2(0x14f)](_0x359845),_0x2986f4=_0x140588[_0x12a9a2(0x2ba)](_0x359845);return _0x17d2ab(_0x46dab2,_0x2986f4);});_0x17358d[_0x3e0dbf(0xda)](''),_0x17358d[_0x3e0dbf(0xda)](_0x3e0dbf(0x26d)),_0x17358d[_0x3e0dbf(0xda)](_0x4ea03e(_0x447f42));}return _0x17358d[_0x3e0dbf(0x3af)]('\x0a')+'\x0a';},'subcommandTerm':_0x19e470=>{const _0x3c753b=a2_0x40ec05,_0x47bbd2=(_0x19e470[_0x3c753b(0xe0)]||[])['map'](_0x29e799=>_0x29e799[_0x3c753b(0x1a1)]?'<'+_0x29e799[_0x3c753b(0x116)]()+'>':'['+_0x29e799[_0x3c753b(0x116)]()+']')['join']('\x20'),_0x5b6873=_0x19e470[_0x3c753b(0x1c7)](),_0x38bb0f=_0x5b6873[_0x3c753b(0x168)]>0x0?_0x19e470[_0x3c753b(0x116)]()+',\x20'+_0x5b6873[_0x3c753b(0x3af)](',\x20'):_0x19e470[_0x3c753b(0x116)]();return _0x47bbd2?_0x38bb0f+'\x20'+_0x47bbd2:_0x38bb0f;}}),program['hook'](a2_0x40ec05(0x212),_0x30c20a=>{const _0x1dd2a1=a2_0x40ec05,_0x1f4d8c=_0x30c20a[_0x1dd2a1(0x184)]();if(_0x1f4d8c[_0x1dd2a1(0x28a)]){const _0x4acc6c=resolve(_0x1f4d8c['directory']),_0x10b4df=_0x4acc6c!==_0x1f4d8c[_0x1dd2a1(0x28a)]?'\x20(resolved\x20to\x20'+_0x4acc6c+')':'';if(!existsSync(_0x4acc6c))throw new SDKError(ErrorCode[_0x1dd2a1(0x14e)],_0x1dd2a1(0x204)+_0x1f4d8c[_0x1dd2a1(0x28a)]+_0x10b4df,undefined,{'helpText':_0x1dd2a1(0x35e)});const _0x3b14af=statSync(_0x4acc6c);if(!_0x3b14af[_0x1dd2a1(0x24c)]())throw new SDKError(ErrorCode[_0x1dd2a1(0x14e)],_0x1dd2a1(0x366)+_0x1f4d8c[_0x1dd2a1(0x28a)]+_0x10b4df,undefined,{'helpText':_0x1dd2a1(0x22a)});process[_0x1dd2a1(0x132)](_0x4acc6c);}if(!_0x1f4d8c[_0x1dd2a1(0x118)]){if(_0x1f4d8c[_0x1dd2a1(0x288)])_0x1f4d8c[_0x1dd2a1(0x118)]=_0x1dd2a1(0x288);else{if(_0x1f4d8c[_0x1dd2a1(0x21a)])_0x1f4d8c[_0x1dd2a1(0x118)]=_0x1dd2a1(0x21a);else{if(_0x1f4d8c[_0x1dd2a1(0x154)])_0x1f4d8c[_0x1dd2a1(0x118)]=_0x1dd2a1(0x154);else _0x1f4d8c[_0x1dd2a1(0x259)]&&(_0x1f4d8c[_0x1dd2a1(0x118)]=_0x1dd2a1(0x259));}}}if(_0x1f4d8c[_0x1dd2a1(0x2c6)])_0x1f4d8c[_0x1dd2a1(0x12b)]=LogLevel[_0x1dd2a1(0x119)];else{if(_0x1f4d8c['debug'])_0x1f4d8c['logLevel']=LogLevel[_0x1dd2a1(0x15b)];else _0x1f4d8c[_0x1dd2a1(0x12b)]===undefined&&(_0x1f4d8c[_0x1dd2a1(0x12b)]=LogLevel[_0x1dd2a1(0x229)]);}});async function createTDXInstance(_0x1378d6){const _0x30dc8c=a2_0x40ec05,_0xc3f928=await GlobalContext[_0x30dc8c(0x1a3)](_0x1378d6);_0xc3f928[_0x30dc8c(0x299)](_0x1378d6);const _0x3a7fec=Number(_0x1378d6['timeout']),_0x275be7=!isNaN(_0x3a7fec)&&_0x3a7fec>0x0?_0x3a7fec*0x3e8:undefined;return TDX[_0x30dc8c(0x145)]({'site':_0xc3f928[_0x30dc8c(0x1f3)],'apiKey':_0xc3f928[_0x30dc8c(0x208)],'accessToken':_0xc3f928[_0x30dc8c(0x3a6)],'logLevel':_0xc3f928['logLevel'],'profile':_0xc3f928[_0x30dc8c(0x173)],'timeout':_0x275be7});}const databaseCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x34d))[a2_0x40ec05(0x358)]('db')['description'](a2_0x40ec05(0x27d)),databaseListAction=async(_0x4d9236,_0x1f1015)=>{const _0x3a8e32=a2_0x40ec05,_0x45f76b=new DatabasesCommand(),_0x2650fc=program[_0x3a8e32(0x184)](),_0x92627a=await createTDXInstance(_0x2650fc),_0x256d84=await _0x45f76b[_0x3a8e32(0x222)]({'options':{..._0x2650fc,..._0x1f1015},'args':_0x4d9236?[_0x4d9236]:[],'tdx':_0x92627a});gracefulExit(_0x256d84);};databaseCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))[a2_0x40ec05(0x383)](a2_0x40ec05(0x126))[a2_0x40ec05(0x260)](databaseListAction),program[a2_0x40ec05(0x1d7)]('databases\x20[pattern]',{'hidden':!![]})['description'](a2_0x40ec05(0x144))[a2_0x40ec05(0x260)](databaseListAction),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x380))[a2_0x40ec05(0x383)](a2_0x40ec05(0x211))['option'](a2_0x40ec05(0x24b),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x158),a2_0x40ec05(0xb1))[a2_0x40ec05(0x295)](a2_0x40ec05(0x293),a2_0x40ec05(0x192))[a2_0x40ec05(0x295)](a2_0x40ec05(0x109),a2_0x40ec05(0x36d))[a2_0x40ec05(0x260)](async(_0x199000,_0xda8e01)=>{const _0x27ff69=a2_0x40ec05,_0x4f0eef=program[_0x27ff69(0x184)](),_0x549f53=await createTDXInstance(_0x4f0eef);if(_0x199000[0x0]==='create'){const _0x2da4cd=new ChatCreateCommand();gracefulExit(await _0x2da4cd[_0x27ff69(0x222)]({'options':{..._0x4f0eef,..._0xda8e01},'args':_0x199000[_0x27ff69(0x347)](0x1),'tdx':_0x549f53}));return;}const _0x333283=new ChatCommand(),_0x13990d=await _0x333283[_0x27ff69(0x222)]({'options':{..._0x4f0eef,..._0xda8e01},'args':_0x199000,'tdx':_0x549f53});gracefulExit(_0x13990d);});const apiCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x13c))[a2_0x40ec05(0x309)](a2_0x40ec05(0x98))[a2_0x40ec05(0xe6)](a2_0x40ec05(0x318),a2_0x40ec05(0x188))[a2_0x40ec05(0x295)](a2_0x40ec05(0x281),a2_0x40ec05(0x2af),'GET')[a2_0x40ec05(0x295)](a2_0x40ec05(0x2cb),'Request\x20body\x20as\x20JSON\x20string')[a2_0x40ec05(0x295)](a2_0x40ec05(0x39f),a2_0x40ec05(0x102))[a2_0x40ec05(0x295)](a2_0x40ec05(0x200),a2_0x40ec05(0xa2),(_0x49c951,_0x2a9ecc)=>{return _0x2a9ecc?[..._0x2a9ecc,_0x49c951]:[_0x49c951];})['option'](a2_0x40ec05(0x13f),a2_0x40ec05(0x2be),'td')['action'](async(_0x210872,_0x5a674f)=>{const _0x1946d6=a2_0x40ec05;if(!_0x210872){apiCmd[_0x1946d6(0x27a)]();return;}const _0x1199dc=new ApiCommand(),_0x5979c5=program['opts'](),_0x5c04df=await createTDXInstance(_0x5979c5),_0xb4b1d8=await _0x1199dc[_0x1946d6(0x222)]({'options':{..._0x5979c5,..._0x5a674f},'args':[_0x210872],'tdx':_0x5c04df});gracefulExit(_0xb4b1d8);});program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x39e))[a2_0x40ec05(0x383)](a2_0x40ec05(0x127))[a2_0x40ec05(0xe6)](a2_0x40ec05(0x318),a2_0x40ec05(0x32f))['action'](async _0x584fa4=>{const _0x1816ca=a2_0x40ec05,_0x5cb07e=new MCPCommand(),_0x549e74=program[_0x1816ca(0x184)](),_0x1cebe1=await createTDXInstance(_0x549e74),_0xd6794f=await _0x5cb07e[_0x1816ca(0x222)]({'options':{..._0x549e74,..._0x584fa4},'args':[],'tdx':_0x1cebe1});gracefulExit(_0xd6794f);});const tableCmd=program[a2_0x40ec05(0x1d7)]('table')[a2_0x40ec05(0x383)](a2_0x40ec05(0x143)),tableListAction=async(_0x2cd1f3,_0x48aa8a)=>{const _0x5a5139=a2_0x40ec05,_0x29282a=new TablesCommand(),_0x21d921=program['opts'](),_0xae0f71=await createTDXInstance(_0x21d921);_0x48aa8a['in']&&(_0x48aa8a[_0x5a5139(0x34d)]=_0x48aa8a['in']);const _0x4af57a=await _0x29282a[_0x5a5139(0x222)]({'options':{..._0x21d921,..._0x48aa8a},'args':_0x2cd1f3?[_0x2cd1f3]:[],'tdx':_0xae0f71});gracefulExit(_0x4af57a);};tableCmd['command'](a2_0x40ec05(0x202))['description'](a2_0x40ec05(0x261))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2ef),a2_0x40ec05(0x384))['option'](a2_0x40ec05(0xc2),a2_0x40ec05(0x349))['action'](tableListAction),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xd6),{'hidden':!![]})[a2_0x40ec05(0x383)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x2ef),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x40ec05(0x295)](a2_0x40ec05(0xc2),a2_0x40ec05(0x349))['action'](tableListAction),program[a2_0x40ec05(0x1d7)]('show\x20[table]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x1e5))['option'](a2_0x40ec05(0x2ef),a2_0x40ec05(0x343))[a2_0x40ec05(0x295)](a2_0x40ec05(0xc2),a2_0x40ec05(0x349))['action'](async(_0xe84263,_0x147782)=>{const _0x4cc510=a2_0x40ec05,_0x3c27a1=new ShowCommand(),_0x44c683=program[_0x4cc510(0x184)](),_0x27d2c4=await createTDXInstance(_0x44c683);_0x147782['in']&&(_0x147782[_0x4cc510(0x34d)]=_0x147782['in']);const _0x13d6da=await _0x3c27a1[_0x4cc510(0x222)]({'options':{..._0x44c683,..._0x147782},'args':_0xe84263?[_0xe84263]:[],'tdx':_0x27d2c4});gracefulExit(_0x13d6da);}),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x396))[a2_0x40ec05(0x358)](a2_0x40ec05(0xef))['description'](a2_0x40ec05(0x1b3))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2ef),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x40ec05(0x295)](a2_0x40ec05(0xc2),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x363761,_0x18c609)=>{const _0x4a4724=a2_0x40ec05,_0x2eaca8=new DescribeCommand(),_0x2f2355=program[_0x4a4724(0x184)](),_0x17bcf6=await createTDXInstance(_0x2f2355);_0x18c609['in']&&(_0x18c609['database']=_0x18c609['in']);const _0x4a6934=await _0x2eaca8['run']({'options':{..._0x2f2355,..._0x18c609},'args':_0x363761?[_0x363761]:[],'tdx':_0x17bcf6});gracefulExit(_0x4a6934);}),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x114))['description'](a2_0x40ec05(0x298))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2ef),a2_0x40ec05(0x2ec))[a2_0x40ec05(0x295)](a2_0x40ec05(0xc2),a2_0x40ec05(0x349))[a2_0x40ec05(0x295)](a2_0x40ec05(0x28f),'Trino\x20catalog\x20(default:\x20td)')['option'](a2_0x40ec05(0x39f),a2_0x40ec05(0x2ab))[a2_0x40ec05(0x295)](a2_0x40ec05(0x140),a2_0x40ec05(0x395))[a2_0x40ec05(0x260)](async(_0x4f12fc,_0x367918)=>{const _0x31e76f=a2_0x40ec05,_0x851414=new QueryCommand(),_0x428771=program[_0x31e76f(0x184)](),_0x31bd79=await createTDXInstance(_0x428771);_0x367918['in']&&(_0x367918[_0x31e76f(0x34d)]=_0x367918['in']);const _0x20fa63=await _0x851414[_0x31e76f(0x222)]({'options':mergeCommandOptions(_0x428771,_0x367918),'args':_0x4f12fc?[_0x4f12fc]:[],'tdx':_0x31bd79});gracefulExit(_0x20fa63);});const segmentCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x1cf))[a2_0x40ec05(0x358)]('sg')[a2_0x40ec05(0x383)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x1a9b36,_0x210114)=>{const _0x5abf4e=a2_0x40ec05,_0x5465b2=new SegmentsCommand(),_0x884ef6=program['opts'](),_0x18bfff=await createTDXInstance(_0x884ef6),_0x1e9c63=await _0x5465b2[_0x5abf4e(0x222)]({'options':{..._0x884ef6,..._0x210114},'args':_0x1a9b36?[_0x1a9b36]:[],'tdx':_0x18bfff});gracefulExit(_0x1e9c63);};segmentCmd[a2_0x40ec05(0x1d7)]('list\x20[path]')[a2_0x40ec05(0x383)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x40ec05(0x295)](a2_0x40ec05(0xcd),a2_0x40ec05(0x286))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1cd),a2_0x40ec05(0xbe),'10')['action'](segmentListAction),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x207),{'hidden':!![]})['description'](a2_0x40ec05(0x1d8))[a2_0x40ec05(0x295)](a2_0x40ec05(0xcd),a2_0x40ec05(0x286))['option'](a2_0x40ec05(0x1cd),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x40ec05(0x260)](segmentListAction),segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x9f),{'hidden':!![]})[a2_0x40ec05(0x383)](a2_0x40ec05(0x238))[a2_0x40ec05(0x260)](async(_0x58630b,_0x333982)=>{const _0x371355=a2_0x40ec05,_0x5d3542=new SegmentUseCommand(),_0x2091f0=program[_0x371355(0x184)](),_0x39d7af=await createTDXInstance(_0x2091f0),_0x445463=await _0x5d3542[_0x371355(0x222)]({'options':{..._0x2091f0,..._0x333982},'args':[_0x58630b],'tdx':_0x39d7af});gracefulExit(_0x445463);});const segmentViewAction=async(_0x4e1a88,_0x3b0789)=>{const _0x498cd6=a2_0x40ec05,_0x29c918=new SegmentViewCommand(),_0x1c7522=program[_0x498cd6(0x184)](),_0x2ffdc9=await createTDXInstance(_0x1c7522),_0x205dc4=await _0x29c918[_0x498cd6(0x222)]({'options':{..._0x1c7522,..._0x3b0789},'args':_0x4e1a88?[_0x4e1a88]:[],'tdx':_0x2ffdc9});gracefulExit(_0x205dc4);};segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x233))[a2_0x40ec05(0x383)](a2_0x40ec05(0x379))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2d4),a2_0x40ec05(0x9a))[a2_0x40ec05(0x260)](segmentViewAction),segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x22b),{'hidden':!![]})[a2_0x40ec05(0x358)](a2_0x40ec05(0x387))['option'](a2_0x40ec05(0x2d4),a2_0x40ec05(0x9a))[a2_0x40ec05(0x383)](a2_0x40ec05(0x252))['action'](segmentViewAction),segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x190))[a2_0x40ec05(0x383)](a2_0x40ec05(0x121))[a2_0x40ec05(0x260)](async(_0x38ecd7,_0x4e8d44)=>{const _0x10ad38=a2_0x40ec05,_0x187885=new SegmentDescCommand(),_0x2cbcb4=program[_0x10ad38(0x184)](),_0x44fe00=await createTDXInstance(_0x2cbcb4),_0x6ad5a=await _0x187885[_0x10ad38(0x222)]({'options':{..._0x2cbcb4,..._0x4e8d44},'args':_0x38ecd7?[_0x38ecd7]:[],'tdx':_0x44fe00});gracefulExit(_0x6ad5a);}),segmentCmd['command'](a2_0x40ec05(0x2f8))['description'](a2_0x40ec05(0x2a1))[a2_0x40ec05(0x260)](async(_0x1daba8,_0x39f048)=>{const _0x2f022e=a2_0x40ec05,_0x56e696=new SegmentShowCommand(),_0x57e139=program[_0x2f022e(0x184)](),_0x21259d=await createTDXInstance(_0x57e139),_0x16ae1e=await _0x56e696[_0x2f022e(0x222)]({'options':{..._0x57e139,..._0x39f048},'args':_0x1daba8?[_0x1daba8]:[],'tdx':_0x21259d});gracefulExit(_0x16ae1e);}),segmentCmd['command']('folders\x20<parent_name>',{'hidden':!![]})[a2_0x40ec05(0x383)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')['action'](async(_0x1825fe,_0x35bd59)=>{const _0xc5d54c=a2_0x40ec05,_0x1104ce=new SegmentFolderListCommand(),_0x4cf7a5=program[_0xc5d54c(0x184)](),_0x145218=await createTDXInstance(_0x4cf7a5),_0x1ae8f4=await _0x1104ce[_0xc5d54c(0x222)]({'options':{..._0x4cf7a5,..._0x35bd59},'args':[_0x1825fe],'tdx':_0x145218});gracefulExit(_0x1ae8f4);});const folderCmd=segmentCmd['command'](a2_0x40ec05(0x370),{'hidden':!![]})[a2_0x40ec05(0x383)](a2_0x40ec05(0x139));folderCmd['command'](a2_0x40ec05(0xc4))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2a5))[a2_0x40ec05(0x260)](async(_0x50bf86,_0x58ea22)=>{const _0x52a463=a2_0x40ec05,_0x543aad=new SegmentFolderShowCommand(),_0x5aff0d=program[_0x52a463(0x184)](),_0xca4fae=await createTDXInstance(_0x5aff0d),_0x10c47e=await _0x543aad[_0x52a463(0x222)]({'options':{..._0x5aff0d,..._0x58ea22},'args':[_0x50bf86],'tdx':_0xca4fae});gracefulExit(_0x10c47e);}),segmentCmd['command'](a2_0x40ec05(0x195))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1a2))[a2_0x40ec05(0x295)](a2_0x40ec05(0x206),a2_0x40ec05(0x29b))[a2_0x40ec05(0x260)](async(_0x495adb,_0x1d5feb)=>{const _0x5dc54f=a2_0x40ec05,_0x436d85=new SegmentSQLCommand(),_0xb25895=program[_0x5dc54f(0x184)](),_0x49923b=await createTDXInstance(_0xb25895),_0x2a7290=await _0x436d85['run']({'options':{..._0xb25895,..._0x1d5feb},'args':_0x495adb?[_0x495adb]:[],'tdx':_0x49923b});gracefulExit(_0x2a7290);}),segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xaa))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x2c42b,_0x5a9947)=>{const _0x59d301=a2_0x40ec05,_0x1e81fa=new SegmentFieldsCommand(),_0x2e4a57=program[_0x59d301(0x184)](),_0x34fa0e=await createTDXInstance(_0x2e4a57),_0x11a584=await _0x1e81fa[_0x59d301(0x222)]({'options':{..._0x2e4a57,..._0x5a9947},'args':_0x2c42b?[_0x2c42b]:[],'tdx':_0x34fa0e});gracefulExit(_0x11a584);}),segmentCmd[a2_0x40ec05(0x1d7)]('pull\x20[parent_or_file]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x2ca))[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),a2_0x40ec05(0x374))['action'](async(_0x38bdb8,_0x24a482)=>{const _0x9ee870=a2_0x40ec05,_0x46dad3=new SegmentPullCommand(),_0x1ee0ac=program[_0x9ee870(0x184)](),_0x27d6a1=await createTDXInstance(_0x1ee0ac),_0x5373c5=await _0x46dad3['run']({'options':{..._0x1ee0ac,..._0x24a482},'args':_0x38bdb8?[_0x38bdb8]:[],'tdx':_0x27d6a1});gracefulExit(_0x5373c5);}),segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x388))[a2_0x40ec05(0x383)](a2_0x40ec05(0x15e))['option'](a2_0x40ec05(0x389),a2_0x40ec05(0x374))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1e6),a2_0x40ec05(0x166))[a2_0x40ec05(0x260)](async(_0x365fe8,_0x1499a0)=>{const _0x15ac5c=a2_0x40ec05,_0x5587aa=new SegmentPushCommand(),_0x31e078=program[_0x15ac5c(0x184)](),_0x5c5403=await createTDXInstance(_0x31e078),_0x31415b=await _0x5587aa['run']({'options':{..._0x31e078,..._0x1499a0},'args':_0x365fe8?[_0x365fe8]:[],'tdx':_0x5c5403});gracefulExit(_0x31415b);}),segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x287))['description'](a2_0x40ec05(0x12e))[a2_0x40ec05(0x260)](async(_0x3a9646,_0x39902f)=>{const _0x1b3096=a2_0x40ec05,_0x5816bc=new SegmentValidateCommand(),_0x55f959=program[_0x1b3096(0x184)](),_0x2c4fdd=await createTDXInstance(_0x55f959),_0x3619e8=await _0x5816bc[_0x1b3096(0x222)]({'options':{..._0x55f959,..._0x39902f},'args':_0x3a9646?[_0x3a9646]:[],'tdx':_0x2c4fdd});gracefulExit(_0x3619e8);}),segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x25a),{'hidden':!![]})[a2_0x40ec05(0x383)](a2_0x40ec05(0x2bb))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),a2_0x40ec05(0x362))['option'](a2_0x40ec05(0x1b7),a2_0x40ec05(0x99))[a2_0x40ec05(0x295)](a2_0x40ec05(0x39c),'Filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x40ec05(0x328),a2_0x40ec05(0xe7))[a2_0x40ec05(0x295)](a2_0x40ec05(0x13a),a2_0x40ec05(0x237))[a2_0x40ec05(0x295)]('--invisible',a2_0x40ec05(0x2ea))[a2_0x40ec05(0x295)](a2_0x40ec05(0x213),a2_0x40ec05(0xdb))[a2_0x40ec05(0x260)](async(_0x112131,_0x22a5f1)=>{const _0x49aede=a2_0x40ec05,_0x190f17=new SegmentCreateCommand(),_0x335a99=program[_0x49aede(0x184)](),_0x35d14b=await createTDXInstance(_0x335a99),_0x40f370=await _0x190f17['run']({'options':{..._0x335a99,..._0x22a5f1},'args':[_0x112131],'tdx':_0x35d14b});gracefulExit(_0x40f370);}),segmentCmd['command']('update\x20<segment_name>',{'hidden':!![]})[a2_0x40ec05(0x383)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x40ec05(0x295)]('--name\x20<new_name>',a2_0x40ec05(0x360))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),a2_0x40ec05(0x275))['option'](a2_0x40ec05(0x1b7),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x40ec05(0x295)](a2_0x40ec05(0x39c),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x40ec05(0x295)](a2_0x40ec05(0x328),a2_0x40ec05(0x1ac))[a2_0x40ec05(0x295)](a2_0x40ec05(0x13a),a2_0x40ec05(0x237))['action'](async(_0x12347c,_0x59794b)=>{const _0x38f8b6=a2_0x40ec05,_0x3edea1=new SegmentUpdateCommand(),_0x431b72=program[_0x38f8b6(0x184)](),_0x4729ad=await createTDXInstance(_0x431b72),_0x4e9c60=await _0x3edea1[_0x38f8b6(0x222)]({'options':{..._0x431b72,..._0x59794b},'args':[_0x12347c],'tdx':_0x4729ad});gracefulExit(_0x4e9c60);});const parentCmd=segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2f4),{'hidden':!![]})['description'](a2_0x40ec05(0x30e)),parentListAction=async(_0xc53e0b,_0x51b9c7)=>{const _0xdf5266=a2_0x40ec05,_0x4eb9a4=new ParentSegmentListCommand(),_0x2fb614=program[_0xdf5266(0x184)](),_0x37b3b0=await createTDXInstance(_0x2fb614),_0xff7515=await _0x4eb9a4[_0xdf5266(0x222)]({'options':{..._0x2fb614,..._0x51b9c7},'args':_0xc53e0b?[_0xc53e0b]:[],'tdx':_0x37b3b0});gracefulExit(_0xff7515);};parentCmd[a2_0x40ec05(0x1d7)]('list\x20[pattern]')['description'](a2_0x40ec05(0x2a0))[a2_0x40ec05(0x260)](parentListAction),segmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xa9),{'hidden':!![]})[a2_0x40ec05(0x383)](a2_0x40ec05(0x1af))['action'](parentListAction),parentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x38c))['description']('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x40ec05(0x295)](a2_0x40ec05(0xf1),a2_0x40ec05(0x1e8))[a2_0x40ec05(0x260)](async(_0x23bc16,_0x4987cb)=>{const _0x55598c=a2_0x40ec05,_0x45f438=new ParentSegmentPullCommand(),_0xcd22a0=program[_0x55598c(0x184)](),_0x5cf57f=await createTDXInstance(_0xcd22a0),_0xe05a4a=await _0x45f438[_0x55598c(0x222)]({'options':{..._0xcd22a0,..._0x4987cb},'args':_0x23bc16?[_0x23bc16]:[],'tdx':_0x5cf57f});gracefulExit(_0xe05a4a);}),parentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x1da))[a2_0x40ec05(0x383)](a2_0x40ec05(0x313))[a2_0x40ec05(0x260)](async(_0x91aede,_0x47c89d)=>{const _0x5f0f7c=a2_0x40ec05,_0x580fa6=new ParentSegmentPushCommand(),_0x40cf34=program['opts'](),_0x3c2cac=await createTDXInstance(_0x40cf34),_0x2cf681=await _0x580fa6[_0x5f0f7c(0x222)]({'options':{..._0x40cf34,..._0x47c89d},'args':_0x91aede?[_0x91aede]:[],'tdx':_0x3c2cac});gracefulExit(_0x2cf681);}),parentCmd['command'](a2_0x40ec05(0x18a))[a2_0x40ec05(0x383)](a2_0x40ec05(0x266))['option'](a2_0x40ec05(0x2f1),a2_0x40ec05(0x2ce))[a2_0x40ec05(0x295)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x40ec05(0x295)]('--behavior\x20[name]',a2_0x40ec05(0x326))['option'](a2_0x40ec05(0x355),a2_0x40ec05(0x1f1))[a2_0x40ec05(0x295)](a2_0x40ec05(0x381),a2_0x40ec05(0xac),a2_0x40ec05(0x3ad))[a2_0x40ec05(0x260)](async(_0x288fd9,_0x1a10ec)=>{const _0x5a16cf=a2_0x40ec05,_0x1dc8ff=new ParentSegmentValidateCommand(),_0x409966=program['opts'](),_0x268750=await createTDXInstance(_0x409966),_0x1fbc73=await _0x1dc8ff[_0x5a16cf(0x222)]({'options':{..._0x409966,..._0x1a10ec},'args':_0x288fd9?[_0x288fd9]:[],'tdx':_0x268750});gracefulExit(_0x1fbc73);}),parentCmd[a2_0x40ec05(0x1d7)]('preview\x20[file]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x111))['option'](a2_0x40ec05(0x2f1),a2_0x40ec05(0x39a))[a2_0x40ec05(0x295)](a2_0x40ec05(0x11f),a2_0x40ec05(0x35a))[a2_0x40ec05(0x295)](a2_0x40ec05(0x382),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x40ec05(0x295)](a2_0x40ec05(0x355),a2_0x40ec05(0x137))[a2_0x40ec05(0x295)](a2_0x40ec05(0x381),a2_0x40ec05(0xac),a2_0x40ec05(0x3ad))['action'](async(_0x464669,_0x32d73c)=>{const _0x560d40=a2_0x40ec05,_0x235f88=new ParentSegmentPreviewCommand(),_0x2ae77f=program['opts'](),_0x54aa8f=await createTDXInstance(_0x2ae77f),_0x21f034=await _0x235f88[_0x560d40(0x222)]({'options':{..._0x2ae77f,..._0x32d73c},'args':_0x464669?[_0x464669]:[],'tdx':_0x54aa8f});gracefulExit(_0x21f034);}),parentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xcf))['description'](a2_0x40ec05(0xf0))['action'](async(_0x402b58,_0x5a2a4f)=>{const _0x52316c=a2_0x40ec05,_0x5f3ae0=new ParentSegmentRunCommand(),_0x265261=program['opts'](),_0x523ce1=await createTDXInstance(_0x265261),_0x2f9cc4=await _0x5f3ae0[_0x52316c(0x222)]({'options':{..._0x265261,..._0x5a2a4f},'args':_0x402b58?[_0x402b58]:[],'tdx':_0x523ce1});gracefulExit(_0x2f9cc4);});const parentSegmentCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x28d))[a2_0x40ec05(0x358)]('ps')[a2_0x40ec05(0x383)](a2_0x40ec05(0x1ee));parentSegmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2a0))[a2_0x40ec05(0x260)](parentListAction),parentSegmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x38c))[a2_0x40ec05(0x383)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x40ec05(0x295)](a2_0x40ec05(0xf1),a2_0x40ec05(0x115))[a2_0x40ec05(0x295)](a2_0x40ec05(0x96),a2_0x40ec05(0x327))[a2_0x40ec05(0x260)](async(_0x424e25,_0x5d770d)=>{const _0x17404f=a2_0x40ec05,_0x5b6462=new ParentSegmentPullCommand(),_0x1e4df8=program[_0x17404f(0x184)](),_0x5d7158=await createTDXInstance(_0x1e4df8),_0xa3c3df=await _0x5b6462[_0x17404f(0x222)]({'options':{..._0x1e4df8,..._0x5d770d},'args':_0x424e25?[_0x424e25]:[],'tdx':_0x5d7158});gracefulExit(_0xa3c3df);}),parentSegmentCmd[a2_0x40ec05(0x1d7)]('push\x20[name]')['description'](a2_0x40ec05(0xb9))[a2_0x40ec05(0x260)](async(_0x7b1a0f,_0x2a3a23)=>{const _0x261eba=a2_0x40ec05,_0x2f14b7=new ParentSegmentPushCommand(),_0x510e8f=program[_0x261eba(0x184)](),_0x297a8f=await createTDXInstance(_0x510e8f),_0x408ed2=await _0x2f14b7[_0x261eba(0x222)]({'options':{..._0x510e8f,..._0x2a3a23},'args':_0x7b1a0f?[_0x7b1a0f]:[],'tdx':_0x297a8f});gracefulExit(_0x408ed2);}),parentSegmentCmd['command'](a2_0x40ec05(0x240))[a2_0x40ec05(0x383)](a2_0x40ec05(0x266))[a2_0x40ec05(0x295)]('--master',a2_0x40ec05(0x2ce))[a2_0x40ec05(0x295)](a2_0x40ec05(0x11f),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x40ec05(0x295)]('--behavior\x20[name]',a2_0x40ec05(0x326))[a2_0x40ec05(0x295)](a2_0x40ec05(0x355),a2_0x40ec05(0x1f1))[a2_0x40ec05(0x295)](a2_0x40ec05(0x381),a2_0x40ec05(0xac),a2_0x40ec05(0x3ad))[a2_0x40ec05(0x260)](async(_0x1dfe6c,_0x5c7374)=>{const _0x5a2cba=a2_0x40ec05,_0x549ba1=new ParentSegmentValidateCommand(),_0x7ee9dc=program['opts'](),_0x2f872f=await createTDXInstance(_0x7ee9dc),_0x4ea609=await _0x549ba1[_0x5a2cba(0x222)]({'options':{..._0x7ee9dc,..._0x5c7374},'args':_0x1dfe6c?[_0x1dfe6c]:[],'tdx':_0x2f872f});gracefulExit(_0x4ea609);}),parentSegmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x13b))[a2_0x40ec05(0x383)](a2_0x40ec05(0x111))['option'](a2_0x40ec05(0x2f1),a2_0x40ec05(0x39a))['option']('--attribute\x20[name]',a2_0x40ec05(0x35a))[a2_0x40ec05(0x295)](a2_0x40ec05(0x382),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x40ec05(0x295)](a2_0x40ec05(0x355),a2_0x40ec05(0x137))['option'](a2_0x40ec05(0x381),a2_0x40ec05(0xac),'-1d')[a2_0x40ec05(0x260)](async(_0x4e271e,_0x657760)=>{const _0x3163b0=a2_0x40ec05,_0x554209=new ParentSegmentPreviewCommand(),_0x278431=program[_0x3163b0(0x184)](),_0x5646e1=await createTDXInstance(_0x278431),_0x20b2c1=await _0x554209[_0x3163b0(0x222)]({'options':{..._0x278431,..._0x657760},'args':_0x4e271e?[_0x4e271e]:[],'tdx':_0x5646e1});gracefulExit(_0x20b2c1);}),parentSegmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xcf))[a2_0x40ec05(0x383)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x40ec05(0x260)](async(_0x18c234,_0x53dc8f)=>{const _0x1914fe=a2_0x40ec05,_0x31a332=new ParentSegmentRunCommand(),_0x2af203=program[_0x1914fe(0x184)](),_0x1bba5d=await createTDXInstance(_0x2af203),_0x372338=await _0x31a332[_0x1914fe(0x222)]({'options':{..._0x2af203,..._0x53dc8f},'args':_0x18c234?[_0x18c234]:[],'tdx':_0x1bba5d});gracefulExit(_0x372338);}),parentSegmentCmd['command'](a2_0x40ec05(0x36e))['description'](a2_0x40ec05(0x156))[a2_0x40ec05(0x295)](a2_0x40ec05(0x282),a2_0x40ec05(0x1c4))[a2_0x40ec05(0x295)](a2_0x40ec05(0x393),a2_0x40ec05(0x2de))[a2_0x40ec05(0x260)](async(_0x18cc28,_0x50f8fe)=>{const _0x46e020=a2_0x40ec05,_0x15e03d=new ParentSegmentFieldsCommand(),_0x22f42f=program['opts'](),_0x23abac=await createTDXInstance(_0x22f42f),_0x308fba=await _0x15e03d[_0x46e020(0x222)]({'options':{..._0x22f42f,..._0x50f8fe},'args':_0x18cc28?[_0x18cc28]:[],'tdx':_0x23abac});gracefulExit(_0x308fba);}),parentSegmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x1f0))[a2_0x40ec05(0x383)](a2_0x40ec05(0xe9))[a2_0x40ec05(0x295)]('-w,\x20--web',a2_0x40ec05(0x198))[a2_0x40ec05(0x295)](a2_0x40ec05(0x282),a2_0x40ec05(0x1c4))['option'](a2_0x40ec05(0x393),a2_0x40ec05(0x2de))[a2_0x40ec05(0x260)](async(_0x35af09,_0x18ad4f)=>{const _0x8271e3=a2_0x40ec05,_0x24b9a4=new ParentSegmentViewCommand(),_0x336fab=program[_0x8271e3(0x184)](),_0x16f150=await createTDXInstance(_0x336fab),_0x33a873=await _0x24b9a4[_0x8271e3(0x222)]({'options':{..._0x336fab,..._0x18ad4f},'args':_0x35af09?[_0x35af09]:[],'tdx':_0x16f150});gracefulExit(_0x33a873);}),parentSegmentCmd[a2_0x40ec05(0x1d7)]('desc\x20[name]')['description'](a2_0x40ec05(0x2b1))[a2_0x40ec05(0x295)](a2_0x40ec05(0xf1),a2_0x40ec05(0x115))[a2_0x40ec05(0x295)]('--json',a2_0x40ec05(0x1c4))[a2_0x40ec05(0x295)](a2_0x40ec05(0x393),a2_0x40ec05(0x2de))['action'](async(_0x38ba9d,_0x2e0676)=>{const _0x2274c1=a2_0x40ec05,_0x475ee0=new ParentSegmentDescCommand(),_0x2e6eb1=program[_0x2274c1(0x184)](),_0x40f241=await createTDXInstance(_0x2e6eb1),_0x197606=await _0x475ee0[_0x2274c1(0x222)]({'options':{..._0x2e6eb1,..._0x2e0676},'args':_0x38ba9d?[_0x38ba9d]:[],'tdx':_0x40f241});gracefulExit(_0x197606);}),parentSegmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x1ad))[a2_0x40ec05(0x383)](a2_0x40ec05(0xb5))['option']('--json',a2_0x40ec05(0x1c4))[a2_0x40ec05(0x295)](a2_0x40ec05(0x393),a2_0x40ec05(0x2de))[a2_0x40ec05(0x260)](async(_0x3f491c,_0x4d86a2)=>{const _0x5c71d9=a2_0x40ec05,_0x252d82=new ParentSegmentSQLCommand(),_0x460e7b=program[_0x5c71d9(0x184)](),_0x31cce2=await createTDXInstance(_0x460e7b),_0x1fc6de=await _0x252d82[_0x5c71d9(0x222)]({'options':{..._0x460e7b,..._0x4d86a2},'args':_0x3f491c?[_0x3f491c]:[],'tdx':_0x31cce2});gracefulExit(_0x1fc6de);}),parentSegmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2dc))[a2_0x40ec05(0x383)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fa),a2_0x40ec05(0x315))[a2_0x40ec05(0x295)](a2_0x40ec05(0x282),a2_0x40ec05(0x1c4))[a2_0x40ec05(0x295)]('--jsonl',a2_0x40ec05(0x2de))[a2_0x40ec05(0x260)](async(_0x5d3329,_0x3c2eab)=>{const _0xcabb64=a2_0x40ec05,_0x56f95c=new ParentSegmentShowCommand(),_0x320fb8=program[_0xcabb64(0x184)](),_0x143120=await createTDXInstance(_0x320fb8),_0xdcb774=await _0x56f95c[_0xcabb64(0x222)]({'options':{..._0x320fb8,..._0x3c2eab},'args':_0x5d3329?[_0x5d3329]:[],'tdx':_0x143120});gracefulExit(_0xdcb774);}),parentSegmentCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xdf))[a2_0x40ec05(0x383)]('Set\x20or\x20show\x20parent\x20segment\x20context')['action'](async(_0x337cb2,_0x1442f0)=>{const _0x3f6f67=a2_0x40ec05,_0x50570c=new UseCommand(),_0x38f950=program[_0x3f6f67(0x184)](),_0x39ea86=_0x337cb2?[_0x3f6f67(0x1a7),_0x337cb2]:[],_0x256013=await _0x50570c[_0x3f6f67(0x222)]({'options':{..._0x38f950,..._0x1442f0},'args':_0x39ea86,'tdx':null});gracefulExit(_0x256013);});const psRtCmd=parentSegmentCmd[a2_0x40ec05(0x1d7)]('rt')[a2_0x40ec05(0x383)](a2_0x40ec05(0x321));psRtCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))[a2_0x40ec05(0x383)](a2_0x40ec05(0x262))[a2_0x40ec05(0x260)](async(_0x3d974f,_0x274cf4)=>{const _0x14b585=new PSRtListCommand(),_0x4cede1=program['opts'](),_0x11e4dd=await createTDXInstance(_0x4cede1),_0x2afc2e=await _0x14b585['run']({'options':{..._0x4cede1,..._0x274cf4},'args':_0x3d974f?[_0x3d974f]:[],'tdx':_0x11e4dd});gracefulExit(_0x2afc2e);}),psRtCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x240))['description']('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')['action'](async(_0x317814,_0x88a991)=>{const _0xf93344=a2_0x40ec05,_0x2b4bf4=new PSRtValidateCommand(),_0x3dc06e=program[_0xf93344(0x184)](),_0x4b4917=await createTDXInstance(_0x3dc06e),_0x1f570a=await _0x2b4bf4['run']({'options':{..._0x3dc06e,..._0x88a991},'args':_0x317814?[_0x317814]:[],'tdx':_0x4b4917});gracefulExit(_0x1f570a);}),psRtCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x224))[a2_0x40ec05(0x383)](a2_0x40ec05(0x23e))[a2_0x40ec05(0x260)](async(_0x3fb696,_0x36fb44)=>{const _0x4c0de5=a2_0x40ec05,_0x174d61=new PSRtConfigVersionCommand(),_0x380f3a=program[_0x4c0de5(0x184)](),_0x55bed2=await createTDXInstance(_0x380f3a),_0x565357=await _0x174d61[_0x4c0de5(0x222)]({'options':{..._0x380f3a,..._0x36fb44},'args':_0x3fb696?[_0x3fb696]:[],'tdx':_0x55bed2});gracefulExit(_0x565357);});const psRtJnCmd=psRtCmd[a2_0x40ec05(0x1d7)]('jn')[a2_0x40ec05(0x383)](a2_0x40ec05(0x19b));psRtJnCmd[a2_0x40ec05(0x1d7)]('list\x20[name]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x339))[a2_0x40ec05(0x260)](async(_0x4f5a1e,_0x34d7c4)=>{const _0x409a1d=a2_0x40ec05,_0x3142b2=new PSRtJnListCommand(),_0x5df9d4=program[_0x409a1d(0x184)](),_0x3c6e35=await createTDXInstance(_0x5df9d4),_0x5dc047=await _0x3142b2[_0x409a1d(0x222)]({'options':{..._0x5df9d4,..._0x34d7c4},'args':_0x4f5a1e?[_0x4f5a1e]:[],'tdx':_0x3c6e35});gracefulExit(_0x5dc047);}),psRtJnCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x10b))['description']('Pause\x20activations\x20in\x20an\x20RT\x20journey')[a2_0x40ec05(0x260)](async(_0x2e82f4,_0x2bcdad)=>{const _0x71cba3=a2_0x40ec05,_0x51751e=new PSRtJnPauseCommand(),_0x85784f=program['opts'](),_0x209b1f=await createTDXInstance(_0x85784f),_0x5a6dd5=await _0x51751e[_0x71cba3(0x222)]({'options':{..._0x85784f,..._0x2bcdad},'args':[_0x2e82f4],'tdx':_0x209b1f});gracefulExit(_0x5a6dd5);}),psRtJnCmd[a2_0x40ec05(0x1d7)]('resume_activations\x20<journeyId>')[a2_0x40ec05(0x383)](a2_0x40ec05(0xea))[a2_0x40ec05(0x260)](async(_0x20ea8a,_0x2ce5a2)=>{const _0x1c1525=a2_0x40ec05,_0x1c7737=new PSRtJnResumeCommand(),_0x47a437=program[_0x1c1525(0x184)](),_0x43051c=await createTDXInstance(_0x47a437),_0x292f7d=await _0x1c7737[_0x1c1525(0x222)]({'options':{..._0x47a437,..._0x2ce5a2},'args':[_0x20ea8a],'tdx':_0x43051c});gracefulExit(_0x292f7d);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})[a2_0x40ec05(0x383)](a2_0x40ec05(0x321));parentRtCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))[a2_0x40ec05(0x383)](a2_0x40ec05(0x262))[a2_0x40ec05(0x260)](async(_0x395fce,_0x55f061)=>{const _0x21c81a=a2_0x40ec05,_0x59ea52=new PSRtListCommand(),_0x50441b=program['opts'](),_0x57bfb2=await createTDXInstance(_0x50441b),_0x369ed2=await _0x59ea52[_0x21c81a(0x222)]({'options':{..._0x50441b,..._0x55f061},'args':_0x395fce?[_0x395fce]:[],'tdx':_0x57bfb2});gracefulExit(_0x369ed2);}),parentRtCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x240))[a2_0x40ec05(0x383)](a2_0x40ec05(0x225))['action'](async(_0x2821d9,_0xcf5ef8)=>{const _0x28fdec=a2_0x40ec05,_0x4c6138=new PSRtValidateCommand(),_0x5c993b=program[_0x28fdec(0x184)](),_0x332b41=await createTDXInstance(_0x5c993b),_0x5391a0=await _0x4c6138['run']({'options':{..._0x5c993b,..._0xcf5ef8},'args':_0x2821d9?[_0x2821d9]:[],'tdx':_0x332b41});gracefulExit(_0x5391a0);});const psPzCmd=parentSegmentCmd['command']('pz')['description'](a2_0x40ec05(0x209));psPzCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xff))[a2_0x40ec05(0x383)](a2_0x40ec05(0x334))[a2_0x40ec05(0x260)](async(_0x1e8eb7,_0x27ea11)=>{const _0x329c55=a2_0x40ec05,_0x5b1d2b=new PSPzListCommand(),_0x5ea45c=program[_0x329c55(0x184)](),_0x59c3e3=await createTDXInstance(_0x5ea45c),_0x384a6c=await _0x5b1d2b[_0x329c55(0x222)]({'options':{..._0x5ea45c,..._0x27ea11},'args':_0x1e8eb7?[_0x1e8eb7]:[],'tdx':_0x59c3e3});gracefulExit(_0x384a6c);}),psPzCmd['command']('show\x20<personalization_id>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x2bf))[a2_0x40ec05(0x260)](async(_0x136905,_0x1ef674)=>{const _0x412b5a=a2_0x40ec05,_0x1d24c3=new PSPzShowCommand(),_0x2d9650=program[_0x412b5a(0x184)](),_0x376c33=await createTDXInstance(_0x2d9650),_0x556309=await _0x1d24c3[_0x412b5a(0x222)]({'options':{..._0x2d9650,..._0x1ef674},'args':[_0x136905],'tdx':_0x376c33});gracefulExit(_0x556309);}),psPzCmd[a2_0x40ec05(0x1d7)]('delete\x20<personalization_id>')[a2_0x40ec05(0x383)]('Delete\x20a\x20realtime\x20personalization')[a2_0x40ec05(0x260)](async(_0x1857a3,_0x377cd3)=>{const _0x438685=a2_0x40ec05,_0x1a899f=new PSPzDeleteCommand(),_0x24ada0=program[_0x438685(0x184)](),_0x17da27=await createTDXInstance(_0x24ada0),_0x9e4e60=await _0x1a899f[_0x438685(0x222)]({'options':{..._0x24ada0,..._0x377cd3},'args':[_0x1857a3],'tdx':_0x17da27});gracefulExit(_0x9e4e60);}),psPzCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x145))[a2_0x40ec05(0x383)](a2_0x40ec05(0x267))[a2_0x40ec05(0x295)](a2_0x40ec05(0x241),a2_0x40ec05(0xfe))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),'Personalization\x20description')[a2_0x40ec05(0x295)]('--audience-id\x20<id>',a2_0x40ec05(0xf7))['option'](a2_0x40ec05(0x398),a2_0x40ec05(0x223))[a2_0x40ec05(0x295)]('--sections\x20<json>',a2_0x40ec05(0x131))[a2_0x40ec05(0x295)](a2_0x40ec05(0x344),a2_0x40ec05(0x2c1))['action'](async _0x2036b7=>{const _0x45ca8b=a2_0x40ec05,_0x1b370d=new PSPzCreateCommand(),_0x5e4fce=program[_0x45ca8b(0x184)](),_0x9d2429=await createTDXInstance(_0x5e4fce),_0x5e1e1e=await _0x1b370d[_0x45ca8b(0x222)]({'options':{..._0x5e4fce,..._0x2036b7},'args':[],'tdx':_0x9d2429});gracefulExit(_0x5e1e1e);}),psPzCmd[a2_0x40ec05(0x1d7)]('patch\x20<personalization_id>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x314))[a2_0x40ec05(0x295)](a2_0x40ec05(0x241),a2_0x40ec05(0xfe))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),a2_0x40ec05(0x335))[a2_0x40ec05(0x295)]('--sections\x20<json>',a2_0x40ec05(0x131))[a2_0x40ec05(0x295)]('--file\x20<path>','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)')[a2_0x40ec05(0x260)](async(_0x47081d,_0x50b552)=>{const _0x50bc9d=a2_0x40ec05,_0x344a0f=new PSPzPatchCommand(),_0x526057=program[_0x50bc9d(0x184)](),_0x2e5647=await createTDXInstance(_0x526057),_0xd6fa6d=await _0x344a0f['run']({'options':{..._0x526057,..._0x50b552},'args':[_0x47081d],'tdx':_0x2e5647});gracefulExit(_0xd6fa6d);});const psPzServiceCmd=psPzCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x171))['description'](a2_0x40ec05(0x38f));psPzServiceCmd['command'](a2_0x40ec05(0xff))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2a2))[a2_0x40ec05(0x260)](async(_0x11371b,_0x469c1f)=>{const _0x553d60=a2_0x40ec05,_0x36254a=new PSPzServiceListCommand(),_0x2fd65a=program[_0x553d60(0x184)](),_0xe68a48=await createTDXInstance(_0x2fd65a),_0x4dce36=await _0x36254a[_0x553d60(0x222)]({'options':{..._0x2fd65a,..._0x469c1f},'args':_0x11371b?[_0x11371b]:[],'tdx':_0xe68a48});gracefulExit(_0x4dce36);}),psPzServiceCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x247))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2ac))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),a2_0x40ec05(0xa8))['option'](a2_0x40ec05(0x255),a2_0x40ec05(0x2a9))[a2_0x40ec05(0x260)](async(_0x3c5351,_0x34f1c4,_0x3ba84b)=>{const _0x588f64=a2_0x40ec05,_0x59787e=new PSPzServiceCreateCommand(),_0x119ff2=program['opts'](),_0x56fb0f=await createTDXInstance(_0x119ff2),_0x456dc1=await _0x59787e[_0x588f64(0x222)]({'options':{..._0x119ff2,..._0x3ba84b},'args':_0x34f1c4?[_0x3c5351,_0x34f1c4]:[_0x3c5351],'tdx':_0x56fb0f});gracefulExit(_0x456dc1);}),psPzServiceCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xa1))[a2_0x40ec05(0x383)]('Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x40ec05(0x260)](async(_0x25ffdd,_0x2fe5f2,_0x282a24)=>{const _0x4c40d6=a2_0x40ec05,_0x191f7c=new PSPzServiceShowCommand(),_0x1bbfe4=program[_0x4c40d6(0x184)](),_0x166937=await createTDXInstance(_0x1bbfe4),_0x1d4e2c=await _0x191f7c[_0x4c40d6(0x222)]({'options':{..._0x1bbfe4,..._0x282a24},'args':_0x2fe5f2?[_0x25ffdd,_0x2fe5f2]:[_0x25ffdd],'tdx':_0x166937});gracefulExit(_0x1d4e2c);}),psPzServiceCmd[a2_0x40ec05(0x1d7)]('delete\x20<service_id>\x20[parent_segment]')[a2_0x40ec05(0x383)]('Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x40ec05(0x260)](async(_0x2199f0,_0x4d2bf7,_0x3df783)=>{const _0x2bbf19=a2_0x40ec05,_0x124a72=new PSPzServiceDeleteCommand(),_0x200e26=program['opts'](),_0x2b1b5e=await createTDXInstance(_0x200e26),_0x83e238=await _0x124a72[_0x2bbf19(0x222)]({'options':{..._0x200e26,..._0x3df783},'args':_0x4d2bf7?[_0x2199f0,_0x4d2bf7]:[_0x2199f0],'tdx':_0x2b1b5e});gracefulExit(_0x83e238);}),psPzServiceCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x175))[a2_0x40ec05(0x383)]('Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x2d7),'New\x20service\x20name')[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),a2_0x40ec05(0x15f))['action'](async(_0x4b093e,_0x29fb9a,_0x2f2853)=>{const _0x3aea92=a2_0x40ec05,_0x506f16=new PSPzServiceUpdateCommand(),_0x10281e=program[_0x3aea92(0x184)](),_0xb8818a=await createTDXInstance(_0x10281e),_0x376af8=await _0x506f16[_0x3aea92(0x222)]({'options':{..._0x10281e,..._0x2f2853},'args':_0x29fb9a?[_0x4b093e,_0x29fb9a]:[_0x4b093e],'tdx':_0xb8818a});gracefulExit(_0x376af8);}),psPzServiceCmd[a2_0x40ec05(0x1d7)]('init\x20[name]')[a2_0x40ec05(0x383)]('Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x40ec05(0x260)](async(_0x5bfdef,_0x574e4c)=>{const _0x34666b=a2_0x40ec05,_0x13bb5a=new PSPzInitCommand(),_0x4f70cd=program[_0x34666b(0x184)](),_0x3ebe88=await createTDXInstance(_0x4f70cd),_0x3b3f65=await _0x13bb5a['run']({'options':{..._0x4f70cd,..._0x574e4c},'args':_0x5bfdef?[_0x5bfdef]:[],'tdx':_0x3ebe88});gracefulExit(_0x3b3f65);});const psPzServiceTokenCmd=psPzServiceCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x138))[a2_0x40ec05(0x383)]('Personalization\x20service\x20token\x20management');psPzServiceTokenCmd['command'](a2_0x40ec05(0xd7))['description'](a2_0x40ec05(0x269))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1ce),a2_0x40ec05(0x1f9))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),'Token\x20description')[a2_0x40ec05(0x260)](async(_0x929ff3,_0x267ce0,_0x5aa902,_0x181096)=>{const _0x5ee850=a2_0x40ec05,_0x4cdb69=new PSPzServiceTokenCreateCommand(),_0x4f5a2d=program[_0x5ee850(0x184)](),_0x144dec=await createTDXInstance(_0x4f5a2d),_0x18d7dd=await _0x4cdb69[_0x5ee850(0x222)]({'options':{..._0x4f5a2d,..._0x181096},'args':_0x5aa902?[_0x929ff3,_0x267ce0,_0x5aa902]:[_0x929ff3,_0x267ce0],'tdx':_0x144dec});gracefulExit(_0x18d7dd);}),psPzServiceTokenCmd[a2_0x40ec05(0x1d7)]('delete\x20<token_id>\x20[parent_segment]')[a2_0x40ec05(0x383)]('Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x40ec05(0x260)](async(_0x113b26,_0x33d302,_0x5421eb)=>{const _0x388dca=a2_0x40ec05,_0x2eebd7=new PSPzServiceTokenDeleteCommand(),_0x5819db=program['opts'](),_0x559a03=await createTDXInstance(_0x5819db),_0x1c5455=await _0x2eebd7[_0x388dca(0x222)]({'options':{..._0x5819db,..._0x5421eb},'args':_0x33d302?[_0x113b26,_0x33d302]:[_0x113b26],'tdx':_0x559a03});gracefulExit(_0x1c5455);}),parentCmd['command'](a2_0x40ec05(0x147))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1ca))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0xb3),a2_0x40ec05(0xb8))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x2c9),a2_0x40ec05(0x26a))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),'Parent\x20segment\x20description')['option'](a2_0x40ec05(0x32e),a2_0x40ec05(0xb0))[a2_0x40ec05(0x295)](a2_0x40ec05(0x10c),a2_0x40ec05(0x187))[a2_0x40ec05(0x295)]('--timezone\x20<tz>','Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x40ec05(0x295)](a2_0x40ec05(0xf4),'Attributes\x20as\x20JSON\x20string')[a2_0x40ec05(0x295)]('--attributes-file\x20<file>',a2_0x40ec05(0x199))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1cc),'Behaviors\x20as\x20JSON\x20string')[a2_0x40ec05(0x295)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x40ec05(0x295)]('--customer-group\x20<json>',a2_0x40ec05(0x364))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2a4),a2_0x40ec05(0x27b))[a2_0x40ec05(0x260)](async(_0x43fda5,_0x56492b)=>{const _0x4ba20e=a2_0x40ec05,_0x5e1f02=new ParentSegmentCreateCommand(),_0x33666c=program[_0x4ba20e(0x184)](),_0x38cd7e=await createTDXInstance(_0x33666c),_0x4d54b8=await _0x5e1f02[_0x4ba20e(0x222)]({'options':{..._0x33666c,..._0x56492b},'args':[_0x43fda5],'tdx':_0x38cd7e});gracefulExit(_0x4d54b8);}),parentCmd[a2_0x40ec05(0x1d7)]('update\x20<name>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x271))['option']('--description\x20<text>',a2_0x40ec05(0x275))[a2_0x40ec05(0x295)](a2_0x40ec05(0x32e),a2_0x40ec05(0x292))[a2_0x40ec05(0x295)](a2_0x40ec05(0x10c),a2_0x40ec05(0x2ff))[a2_0x40ec05(0x295)]('--timezone\x20<tz>',a2_0x40ec05(0x30f))[a2_0x40ec05(0x295)](a2_0x40ec05(0x37c),a2_0x40ec05(0x363))['option']('--add-attributes-file\x20<file>',a2_0x40ec05(0x182))[a2_0x40ec05(0x295)](a2_0x40ec05(0x123),a2_0x40ec05(0x1db))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2c5),a2_0x40ec05(0x392))['action'](async(_0x29729e,_0x348e73)=>{const _0x239540=a2_0x40ec05,_0x5e35e8=new ParentSegmentUpdateCommand(),_0x4e0de0=program['opts'](),_0x1cb4fe=await createTDXInstance(_0x4e0de0),_0x45fd62=await _0x5e35e8[_0x239540(0x222)]({'options':{..._0x4e0de0,..._0x348e73},'args':[_0x29729e],'tdx':_0x1cb4fe});gracefulExit(_0x45fd62);}),folderCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x29a))['description'](a2_0x40ec05(0xaf))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),a2_0x40ec05(0x1b9))['option'](a2_0x40ec05(0x10e),a2_0x40ec05(0x163))[a2_0x40ec05(0x260)](async(_0x4e8ae1,_0x38cc0a,_0x25b959)=>{const _0x201be0=a2_0x40ec05,_0x4ca84c=new SegmentFolderCreateCommand(),_0x11bb41=program['opts'](),_0x356282=await createTDXInstance(_0x11bb41),_0x263d57=await _0x4ca84c[_0x201be0(0x222)]({'options':{..._0x11bb41,..._0x25b959},'args':[_0x4e8ae1,_0x38cc0a],'tdx':_0x356282});gracefulExit(_0x263d57);}),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xf5))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2cc))[a2_0x40ec05(0x260)](async(_0x29c4cb,_0x5d508d)=>{const _0x414547=a2_0x40ec05,_0x28fcd6=new ActivationsCommand(),_0x144ea2=program[_0x414547(0x184)](),_0x126027=await createTDXInstance(_0x144ea2),_0x165055=await _0x28fcd6[_0x414547(0x222)]({'options':{..._0x144ea2,..._0x5d508d},'args':[_0x29c4cb],'tdx':_0x126027});gracefulExit(_0x165055);});const workflowCmd=program['command'](a2_0x40ec05(0x2c2))['alias']('wf')[a2_0x40ec05(0x383)](a2_0x40ec05(0x20e)),wfProjectCmd=workflowCmd['command'](a2_0x40ec05(0x372))[a2_0x40ec05(0x383)](a2_0x40ec05(0x29c)),wfProjectListAction=async(_0x421057,_0x2ab702)=>{const _0x5070f7=a2_0x40ec05,_0x374fcd=new WorkflowProjectsCommand(),_0xfdde0a=program[_0x5070f7(0x184)](),_0xfd64b7=await createTDXInstance(_0xfdde0a),_0x5290d4=await _0x374fcd[_0x5070f7(0x222)]({'options':{..._0xfdde0a,..._0x2ab702},'args':_0x421057?[_0x421057]:[],'tdx':_0xfd64b7});gracefulExit(_0x5290d4);};wfProjectCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))['description'](a2_0x40ec05(0x231))[a2_0x40ec05(0x260)](wfProjectListAction),workflowCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x9b))['description']('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x40ec05(0x260)](wfProjectListAction);const wfWorkflowListAction=async(_0x1e3908,_0x1efe43)=>{const _0x2ccd3e=a2_0x40ec05,_0x82553=new WorkflowWorkflowsCommand(),_0x43f621=program[_0x2ccd3e(0x184)](),_0x19ac37=await createTDXInstance(_0x43f621),_0x319bf6=await _0x82553[_0x2ccd3e(0x222)]({'options':{..._0x43f621,..._0x1efe43},'args':_0x1e3908?[_0x1e3908]:[],'tdx':_0x19ac37});gracefulExit(_0x319bf6);};workflowCmd['command'](a2_0x40ec05(0x22c))[a2_0x40ec05(0x383)](a2_0x40ec05(0xe4))[a2_0x40ec05(0x260)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2df))[a2_0x40ec05(0x383)](a2_0x40ec05(0xf9)),wfSessionListAction=async(_0x3b966a,_0x5016c2)=>{const _0x2b8d1a=a2_0x40ec05,_0xfbb72a=new WorkflowSessionsCommand(),_0x465c43=program[_0x2b8d1a(0x184)](),_0x520bd9=await createTDXInstance(_0x465c43),_0x11d585=await _0xfbb72a[_0x2b8d1a(0x222)]({'options':{..._0x465c43,..._0x5016c2},'args':_0x3b966a?[_0x3b966a]:[],'tdx':_0x520bd9});gracefulExit(_0x11d585);};wfSessionCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x31b))['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x386),a2_0x40ec05(0x353))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2cf),a2_0x40ec05(0x3a3))[a2_0x40ec05(0x295)]('--to\x20<timestamp>',a2_0x40ec05(0x338))['action'](wfSessionListAction),workflowCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x33f))[a2_0x40ec05(0x383)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option']('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x2cf),a2_0x40ec05(0x3a3))['option'](a2_0x40ec05(0x2a8),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x40ec05(0x260)](wfSessionListAction);const wfAttemptListAction=async(_0x24931f,_0x4ed3a1)=>{const _0x3b7ab4=a2_0x40ec05,_0x563bd5=new WorkflowAttemptsCommand(),_0x345450=program['opts'](),_0x1b99a1=await createTDXInstance(_0x345450),_0xb5b082=await _0x563bd5[_0x3b7ab4(0x222)]({'options':{..._0x345450,..._0x4ed3a1},'args':_0x24931f?[_0x24931f]:[],'tdx':_0x1b99a1});gracefulExit(_0xb5b082);},attemptCmd=workflowCmd[a2_0x40ec05(0x1d7)]('attempt')[a2_0x40ec05(0x383)]('Workflow\x20attempt\x20management')['argument'](a2_0x40ec05(0x1b8),a2_0x40ec05(0x2fc))[a2_0x40ec05(0x274)](a2_0x40ec05(0x148),a2_0x40ec05(0x2e0))['argument'](a2_0x40ec05(0x340),a2_0x40ec05(0x1e0))['option']('--include-subtasks','Include\x20subtasks\x20in\x20tasks\x20output')['option'](a2_0x40ec05(0xee),a2_0x40ec05(0x160))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1f6),a2_0x40ec05(0x21b))['option'](a2_0x40ec05(0x272),a2_0x40ec05(0x17d))[a2_0x40ec05(0x295)](a2_0x40ec05(0xbb),a2_0x40ec05(0x10a))[a2_0x40ec05(0x295)](a2_0x40ec05(0x25f),'Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x40ec05(0x260)](async(_0x2e1c50,_0x4eca89,_0x44b644,_0x3e339f)=>{const _0xd57d23=a2_0x40ec05;if(_0x2e1c50==='list'){await wfAttemptListAction(_0x4eca89,_0x3e339f);return;}if(!_0x2e1c50){attemptCmd[_0xd57d23(0x27a)]();return;}const _0x3d3bd7=program[_0xd57d23(0x184)](),_0x51d8b1=await createTDXInstance(_0x3d3bd7);let _0x14cd31=0x0;if(!_0x4eca89){const _0x2b23ac=new WorkflowAttemptCommand();_0x14cd31=await _0x2b23ac['run']({'options':{..._0x3d3bd7,..._0x3e339f},'args':[_0x2e1c50],'tdx':_0x51d8b1});}else{if(_0x4eca89===_0xd57d23(0x2d0)){const _0x422e3b=new WorkflowLogsCommand();_0x14cd31=await _0x422e3b[_0xd57d23(0x222)]({'options':{..._0x3d3bd7,..._0x3e339f},'args':_0x44b644?[_0x2e1c50,_0x44b644]:[_0x2e1c50],'tdx':_0x51d8b1});}else{if(_0x4eca89===_0xd57d23(0x17c)){const _0x3c5e65=new WorkflowTasksCommand();_0x14cd31=await _0x3c5e65[_0xd57d23(0x222)]({'options':{..._0x3d3bd7,..._0x3e339f},'args':[_0x2e1c50],'tdx':_0x51d8b1});}else{if(_0x4eca89===_0xd57d23(0xc7)){const _0xe870b5=new WorkflowKillCommand();_0x14cd31=await _0xe870b5['run']({'options':{..._0x3d3bd7,..._0x3e339f},'args':[_0x2e1c50],'tdx':_0x51d8b1});}else{if(_0x4eca89===_0xd57d23(0xc6)){const _0x503265=new WorkflowRetryCommand();_0x14cd31=await _0x503265['run']({'options':{..._0x3d3bd7,..._0x3e339f},'args':[_0xd57d23(0x20c)+_0x2e1c50],'tdx':_0x51d8b1});}else console['error'](_0xd57d23(0x1a0)+_0x4eca89),console[_0xd57d23(0x369)](_0xd57d23(0x112)),_0x14cd31=0x1;}}}}gracefulExit(_0x14cd31);});attemptCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x31b))[a2_0x40ec05(0x383)](a2_0x40ec05(0x323))['option'](a2_0x40ec05(0x25f),a2_0x40ec05(0x1aa))[a2_0x40ec05(0x260)](wfAttemptListAction),workflowCmd['command'](a2_0x40ec05(0xd0))['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x25f),a2_0x40ec05(0x1aa))[a2_0x40ec05(0x260)](wfAttemptListAction),workflowCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x283))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2a3))[a2_0x40ec05(0x295)]('--follow',a2_0x40ec05(0x18b))[a2_0x40ec05(0x295)]('--session-id\x20<id>',a2_0x40ec05(0x16b))[a2_0x40ec05(0x295)](a2_0x40ec05(0x258),'Show\x20timeline\x20for\x20specific\x20attempt')['action'](async(_0x390cbe,_0x4e8eca)=>{const _0x17f5bc=a2_0x40ec05,_0x1f55bf=new WorkflowTimelineCommand(),_0x424fd8=program[_0x17f5bc(0x184)](),_0x387a8d=await createTDXInstance(_0x424fd8),_0xc0e549=await _0x1f55bf[_0x17f5bc(0x222)]({'options':{..._0x424fd8,..._0x4e8eca},'args':_0x390cbe?[_0x390cbe]:[],'tdx':_0x387a8d});gracefulExit(_0xc0e549);}),workflowCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x19a))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2c3))['option'](a2_0x40ec05(0x2f0),'Resume\x20from\x20specific\x20task')[a2_0x40ec05(0x295)](a2_0x40ec05(0x272),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x40ec05(0x260)](async(_0x5f15bb,_0x2cb864)=>{const _0x34144b=a2_0x40ec05,_0x4dfa1a=new WorkflowRetryCommand(),_0x23771f=program[_0x34144b(0x184)](),_0x3bf51c=await createTDXInstance(_0x23771f),_0x335b3e=await _0x4dfa1a[_0x34144b(0x222)]({'options':{..._0x23771f,..._0x2cb864},'args':[_0x5f15bb],'tdx':_0x3bf51c});gracefulExit(_0x335b3e);}),workflowCmd[a2_0x40ec05(0x1d7)]('run\x20[workflow]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x2f6))[a2_0x40ec05(0x295)](a2_0x40ec05(0x23b),a2_0x40ec05(0x329),(_0x75ec1,_0x269494=[])=>[..._0x269494,_0x75ec1],[])[a2_0x40ec05(0x295)](a2_0x40ec05(0x215),a2_0x40ec05(0x15a))[a2_0x40ec05(0x260)](async(_0x261d11,_0xeb259)=>{const _0x41c305=a2_0x40ec05,_0x14c57b=new WorkflowRunCommand(),_0x151103=program[_0x41c305(0x184)](),_0x3eb52d=await createTDXInstance(_0x151103),_0x1d25f8=await _0x14c57b['run']({'options':{..._0x151103,..._0xeb259},'args':_0x261d11?[_0x261d11]:[],'tdx':_0x3eb52d});gracefulExit(_0x1d25f8);}),workflowCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x277))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1c3))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fb),a2_0x40ec05(0xfd))[a2_0x40ec05(0x260)](async(_0x552f18,_0x494b63,_0x5a70ec)=>{const _0x32f666=a2_0x40ec05,_0x11bbbb=new WorkflowDownloadCommand(),_0x2f9927=program['opts'](),_0x15a0e8=await createTDXInstance(_0x2f9927),_0x3b08bf=await _0x11bbbb[_0x32f666(0x222)]({'options':{..._0x2f9927,..._0x5a70ec},'args':[_0x552f18,_0x494b63||'.'],'tdx':_0x15a0e8});gracefulExit(_0x3b08bf);}),workflowCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x92))[a2_0x40ec05(0x383)](a2_0x40ec05(0x170))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fb),a2_0x40ec05(0x1a5))[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),a2_0x40ec05(0x1c9))[a2_0x40ec05(0x260)](async(_0x52f5b2,_0x5bd43d,_0x1557d6)=>{const _0x54cc45=a2_0x40ec05,_0x3fecef=new WorkflowPullCommand(),_0x348601=program[_0x54cc45(0x184)](),_0x45acff=await createTDXInstance(_0x348601),_0x1441c3=await _0x3fecef[_0x54cc45(0x222)]({'options':{..._0x348601,..._0x1557d6},'args':_0x5bd43d?[_0x52f5b2,_0x5bd43d]:[_0x52f5b2],'tdx':_0x45acff});gracefulExit(_0x1441c3);}),workflowCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xc5))[a2_0x40ec05(0x383)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fb),a2_0x40ec05(0x284))[a2_0x40ec05(0x295)]('--dry-run',a2_0x40ec05(0x120))[a2_0x40ec05(0x295)](a2_0x40ec05(0x21f),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x40ec05(0x260)](async(_0x1f5d6e,_0x239267)=>{const _0x1610e6=a2_0x40ec05,_0x121142=new WorkflowPushCommand(),_0x411d1d=program[_0x1610e6(0x184)](),_0x1ea95b=await createTDXInstance(_0x411d1d),_0x335228=await _0x121142[_0x1610e6(0x222)]({'options':{..._0x411d1d,..._0x239267},'args':_0x1f5d6e?[_0x1f5d6e]:[],'tdx':_0x1ea95b});gracefulExit(_0x335228);}),workflowCmd[a2_0x40ec05(0x1d7)]('upload\x20[project-name-or-dir]')['description'](a2_0x40ec05(0xb2))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2d7),a2_0x40ec05(0x201))['option'](a2_0x40ec05(0x1fb),a2_0x40ec05(0xa6))[a2_0x40ec05(0x295)](a2_0x40ec05(0x21f),a2_0x40ec05(0x39b))[a2_0x40ec05(0x260)](async(_0xcf490,_0x57f74d)=>{const _0x4f52f4=a2_0x40ec05,_0x46e226=new WorkflowUploadCommand(),_0x2daeae=program[_0x4f52f4(0x184)](),_0xe34039=await createTDXInstance(_0x2daeae),_0xecdc0c=await _0x46e226['run']({'options':{..._0x2daeae,..._0x57f74d},'args':_0xcf490?[_0xcf490]:[],'tdx':_0xe34039});gracefulExit(_0xecdc0c);}),workflowCmd[a2_0x40ec05(0x1d7)]('clone\x20[source-dir]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x128))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2d7),a2_0x40ec05(0xe5))[a2_0x40ec05(0x295)]('--revision\x20<revision>',a2_0x40ec05(0x284))['option'](a2_0x40ec05(0x389),a2_0x40ec05(0xc0))[a2_0x40ec05(0x295)](a2_0x40ec05(0x21f),a2_0x40ec05(0x39b))[a2_0x40ec05(0x260)](async(_0x3dcfd6,_0xf726dc)=>{const _0x3cb4a5=a2_0x40ec05,_0x4d1505=new WorkflowCloneCommand(),_0x15e6d7=program[_0x3cb4a5(0x184)](),_0x20d7ac=await createTDXInstance(_0x15e6d7),_0x5a71df=await _0x4d1505[_0x3cb4a5(0x222)]({'options':{..._0x15e6d7,..._0xf726dc},'args':_0x3dcfd6?[_0x3dcfd6]:[],'tdx':_0x20d7ac});gracefulExit(_0x5a71df);}),workflowCmd[a2_0x40ec05(0x1d7)]('delete\x20<project-name-or-id>')[a2_0x40ec05(0x383)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')['action'](async(_0x37e50b,_0x3aaa65)=>{const _0x29ef61=a2_0x40ec05,_0x3463a6=new WorkflowDeleteCommand(),_0x4d7b5b=program[_0x29ef61(0x184)](),_0x16c519=await createTDXInstance(_0x4d7b5b),_0x55d875=await _0x3463a6[_0x29ef61(0x222)]({'options':{..._0x4d7b5b,..._0x3aaa65},'args':[_0x37e50b],'tdx':_0x16c519});gracefulExit(_0x55d875);}),workflowCmd[a2_0x40ec05(0x1d7)]('use\x20[project]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x1e9))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1f7),a2_0x40ec05(0x391))[a2_0x40ec05(0x260)](async(_0x87754,_0x648c)=>{const _0x30c517=a2_0x40ec05,_0x1142c0=new WorkflowUseCommand(),_0x10f12e=program[_0x30c517(0x184)](),_0x48f2e1=await createTDXInstance(_0x10f12e),_0x215547=await _0x1142c0[_0x30c517(0x222)]({'options':{..._0x10f12e,..._0x648c},'args':_0x87754?[_0x87754]:[],'tdx':_0x48f2e1});gracefulExit(_0x215547);});const wfSecretsCmd=workflowCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x365))[a2_0x40ec05(0x383)]('Manage\x20workflow\x20project\x20secrets');wfSecretsCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x31b))[a2_0x40ec05(0x383)](a2_0x40ec05(0x23d))[a2_0x40ec05(0x260)](async(_0x37282a,_0x27f7f3)=>{const _0x77bae4=new WorkflowSecretsListCommand(),_0x346aa4=program['opts'](),_0x2e3b09=await createTDXInstance(_0x346aa4),_0x1721a0=await _0x77bae4['run']({'options':{..._0x346aa4,..._0x27f7f3},'args':_0x37282a?[_0x37282a]:[],'tdx':_0x2e3b09});gracefulExit(_0x1721a0);}),wfSecretsCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2fe))[a2_0x40ec05(0x383)](a2_0x40ec05(0x161))['action'](async(_0x2f0b87,_0x2b4381)=>{const _0x4791dc=a2_0x40ec05,_0x5d6773=new WorkflowSecretsSetCommand(),_0x2741e6=program[_0x4791dc(0x184)](),_0x4e6847=await createTDXInstance(_0x2741e6),_0x2a9e0a=await _0x5d6773[_0x4791dc(0x222)]({'options':{..._0x2741e6,..._0x2b4381},'args':_0x2f0b87,'tdx':_0x4e6847});gracefulExit(_0x2a9e0a);}),wfSecretsCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2fa))[a2_0x40ec05(0x383)](a2_0x40ec05(0x319))['action'](async(_0x486569,_0x9a0a0d)=>{const _0x4a5b79=a2_0x40ec05,_0x2d7c7b=new WorkflowSecretsDeleteCommand(),_0x22c2a1=program[_0x4a5b79(0x184)](),_0x453443=await createTDXInstance(_0x22c2a1),_0x2c8fbc=await _0x2d7c7b[_0x4a5b79(0x222)]({'options':{..._0x22c2a1,..._0x9a0a0d},'args':_0x486569,'tdx':_0x453443});gracefulExit(_0x2c8fbc);});const jobCmd=program[a2_0x40ec05(0x1d7)]('job')['description'](a2_0x40ec05(0xe3)),jobListAction=async _0x323e70=>{const _0x180475=a2_0x40ec05,_0x5aa25b=new JobListCommand(),_0x7c1c60=program[_0x180475(0x184)](),_0x1d60a3=await createTDXInstance(_0x7c1c60),_0x498147=await _0x5aa25b[_0x180475(0x222)]({'options':{..._0x7c1c60,..._0x323e70},'args':[],'tdx':_0x1d60a3});gracefulExit(_0x498147);};jobCmd['command']('list')['description'](a2_0x40ec05(0x25e))[a2_0x40ec05(0x295)](a2_0x40ec05(0x386),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x40ec05(0x260)](jobListAction),program['command'](a2_0x40ec05(0xa0),{'hidden':!![]})[a2_0x40ec05(0x383)](a2_0x40ec05(0x297))[a2_0x40ec05(0x295)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x40ec05(0x260)](jobListAction),jobCmd[a2_0x40ec05(0x1d7)]('show\x20<job-id>')[a2_0x40ec05(0x383)](a2_0x40ec05(0xc9))['action'](async(_0x15dbed,_0xbc3dc9)=>{const _0x5a9c5a=a2_0x40ec05,_0x36f318=new JobShowCommand(),_0x160668=program[_0x5a9c5a(0x184)](),_0x535a7=await createTDXInstance(_0x160668),_0x2c4b1f=await _0x36f318[_0x5a9c5a(0x222)]({'options':{..._0x160668,..._0xbc3dc9},'args':[_0x15dbed],'tdx':_0x535a7});gracefulExit(_0x2c4b1f);}),jobCmd['command'](a2_0x40ec05(0x20d))[a2_0x40ec05(0x383)](a2_0x40ec05(0x185))[a2_0x40ec05(0x260)](async(_0x3843de,_0x261266)=>{const _0x246dcc=a2_0x40ec05,_0x5a0d9b=new JobKillCommand(),_0x8221a4=program[_0x246dcc(0x184)](),_0x4ef05d=await createTDXInstance(_0x8221a4),_0xe50de3=await _0x5a0d9b[_0x246dcc(0x222)]({'options':{..._0x8221a4,..._0x261266},'args':[_0x3843de],'tdx':_0x4ef05d});gracefulExit(_0xe50de3);}),jobCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x1e2))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1cb))[a2_0x40ec05(0x295)](a2_0x40ec05(0x110),a2_0x40ec05(0x37a),a2_0x40ec05(0x256))[a2_0x40ec05(0x295)]('-f,\x20--file\x20<path>','Read\x20query\x20from\x20file')[a2_0x40ec05(0x295)](a2_0x40ec05(0x2db),a2_0x40ec05(0x320),a2_0x40ec05(0x1c0))['option']('--result\x20<target>',a2_0x40ec05(0x3a9))[a2_0x40ec05(0x260)](async(_0x939c0e,_0x22bd7b)=>{const _0x12a3ab=a2_0x40ec05,_0x28e523=new JobSubmitCommand(),_0x4eacd6=program[_0x12a3ab(0x184)](),_0x3ddbe0=await createTDXInstance(_0x4eacd6),_0x3d6dd7=await _0x28e523[_0x12a3ab(0x222)]({'options':{..._0x4eacd6,..._0x22bd7b},'args':_0x939c0e?[_0x939c0e]:[],'tdx':_0x3ddbe0});gracefulExit(_0x3d6dd7);}),jobCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x36f))['description'](a2_0x40ec05(0x2da))[a2_0x40ec05(0x260)](async(_0x567bb4,_0x2ae5bc)=>{const _0x293a99=a2_0x40ec05,_0x2f85ea=new JobResultCommand(),_0x1d9715=program[_0x293a99(0x184)](),_0x4c4f83=await createTDXInstance(_0x1d9715),_0x26d793=await _0x2f85ea[_0x293a99(0x222)]({'options':{..._0x1d9715,..._0x2ae5bc},'args':[_0x567bb4],'tdx':_0x4c4f83});gracefulExit(_0x26d793);});const scheduleCmd=jobCmd['command'](a2_0x40ec05(0x36a))['description'](a2_0x40ec05(0x1d0));scheduleCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))['description'](a2_0x40ec05(0xa7))[a2_0x40ec05(0x260)](async(_0x200e82,_0x1d7658)=>{const _0x422e53=a2_0x40ec05,_0x1ec4f2=new ScheduleListCommand(),_0x25d3c2=program[_0x422e53(0x184)](),_0x1d88b8=await createTDXInstance(_0x25d3c2),_0x8f6bb7=await _0x1ec4f2[_0x422e53(0x222)]({'options':{..._0x25d3c2,..._0x1d7658},'args':_0x200e82?[_0x200e82]:[],'tdx':_0x1d88b8});gracefulExit(_0x8f6bb7);}),scheduleCmd['command'](a2_0x40ec05(0x159))['description'](a2_0x40ec05(0x33c))[a2_0x40ec05(0x260)](async(_0x391f11,_0x1408b8)=>{const _0x675501=a2_0x40ec05,_0x176156=new ScheduleShowCommand(),_0x2114ec=program[_0x675501(0x184)](),_0x283df1=await createTDXInstance(_0x2114ec),_0x3abd29=await _0x176156[_0x675501(0x222)]({'options':{..._0x2114ec,..._0x1408b8},'args':[_0x391f11],'tdx':_0x283df1});gracefulExit(_0x3abd29);}),scheduleCmd['command'](a2_0x40ec05(0x147))[a2_0x40ec05(0x383)](a2_0x40ec05(0x157))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2b8),a2_0x40ec05(0x2b4))[a2_0x40ec05(0x295)](a2_0x40ec05(0x36b),a2_0x40ec05(0x349))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x39f),a2_0x40ec05(0x3b5))[a2_0x40ec05(0x295)](a2_0x40ec05(0x9e),'Query\x20type:\x20trino\x20or\x20hive',a2_0x40ec05(0x256))[a2_0x40ec05(0x295)](a2_0x40ec05(0x12d),'Cron\x20expression\x20for\x20scheduling')[a2_0x40ec05(0x295)]('--timezone\x20<tz>',a2_0x40ec05(0x242))[a2_0x40ec05(0x295)](a2_0x40ec05(0x180),a2_0x40ec05(0x2e9))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1f5),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x302),a2_0x40ec05(0x1dc))[a2_0x40ec05(0x295)](a2_0x40ec05(0x35b),a2_0x40ec05(0x1e7))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2e5),'Result\x20output\x20destination\x20URL')[a2_0x40ec05(0x260)](async(_0xe2ac9d,_0x2655e1)=>{const _0x197162=a2_0x40ec05,_0x187ed4=new ScheduleCreateCommand(),_0x1bfc23=program[_0x197162(0x184)](),_0x2e48ca=await createTDXInstance(_0x1bfc23);_0x2655e1['in']&&(_0x2655e1['database']=_0x2655e1['in']);const _0x4c63af=await _0x187ed4[_0x197162(0x222)]({'options':{..._0x1bfc23,..._0x2655e1},'args':[_0xe2ac9d],'tdx':_0x2e48ca});gracefulExit(_0x4c63af);}),scheduleCmd['command'](a2_0x40ec05(0x1f4))[a2_0x40ec05(0x383)]('Update\x20a\x20scheduled\x20query')['option'](a2_0x40ec05(0x2b8),a2_0x40ec05(0x1c5))['option'](a2_0x40ec05(0x36b),a2_0x40ec05(0x349))[a2_0x40ec05(0x295)](a2_0x40ec05(0x39f),a2_0x40ec05(0x3b5))[a2_0x40ec05(0x295)]('--type\x20<type>','Query\x20type:\x20trino\x20or\x20hive')[a2_0x40ec05(0x295)](a2_0x40ec05(0x12d),'Cron\x20expression\x20for\x20scheduling')[a2_0x40ec05(0x295)](a2_0x40ec05(0x28e),a2_0x40ec05(0xbc))[a2_0x40ec05(0x295)](a2_0x40ec05(0x180),a2_0x40ec05(0x2e9))[a2_0x40ec05(0x295)]('--priority\x20<-2~2>','Job\x20priority\x20(-2\x20to\x202)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x302),a2_0x40ec05(0x1dc))[a2_0x40ec05(0x295)](a2_0x40ec05(0x35b),a2_0x40ec05(0x1e7))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2e5),a2_0x40ec05(0x169))[a2_0x40ec05(0x260)](async(_0x167dac,_0x17034f)=>{const _0x1db0df=a2_0x40ec05,_0x134756=new ScheduleUpdateCommand(),_0x30d423=program[_0x1db0df(0x184)](),_0x19c927=await createTDXInstance(_0x30d423);_0x17034f['in']&&(_0x17034f[_0x1db0df(0x34d)]=_0x17034f['in']);const _0x26e3e3=await _0x134756[_0x1db0df(0x222)]({'options':{..._0x30d423,..._0x17034f},'args':[_0x167dac],'tdx':_0x19c927});gracefulExit(_0x26e3e3);}),scheduleCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x101))[a2_0x40ec05(0x383)](a2_0x40ec05(0x291))[a2_0x40ec05(0x260)](async(_0x2da776,_0x166932)=>{const _0x277861=a2_0x40ec05,_0x43f69a=new ScheduleDeleteCommand(),_0x2a1b6c=program[_0x277861(0x184)](),_0x1f10b1=await createTDXInstance(_0x2a1b6c),_0x292103=await _0x43f69a[_0x277861(0x222)]({'options':{..._0x2a1b6c,..._0x166932},'args':[_0x2da776],'tdx':_0x1f10b1});gracefulExit(_0x292103);}),scheduleCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x359))[a2_0x40ec05(0x383)](a2_0x40ec05(0x3a0))['option'](a2_0x40ec05(0x25c),a2_0x40ec05(0x1dd))['option'](a2_0x40ec05(0x303),a2_0x40ec05(0x226))['action'](async(_0x39fabd,_0x332b22)=>{const _0x32c4ea=a2_0x40ec05,_0x11421b=new ScheduleRunCommand(),_0x3845b8=program[_0x32c4ea(0x184)](),_0xfef182=await createTDXInstance(_0x3845b8),_0x40e935=await _0x11421b['run']({'options':{..._0x3845b8,..._0x332b22},'args':[_0x39fabd],'tdx':_0xfef182});gracefulExit(_0x40e935);}),scheduleCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x368))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1e4))[a2_0x40ec05(0x295)]('--from\x20<n>',a2_0x40ec05(0x16e))[a2_0x40ec05(0x295)]('--to\x20<n>',a2_0x40ec05(0x34e))[a2_0x40ec05(0x260)](async(_0x58f699,_0xc49522)=>{const _0x2d08ad=a2_0x40ec05,_0xebc6c6=new ScheduleHistoryCommand(),_0x3e0569=program[_0x2d08ad(0x184)](),_0x2c13d1=await createTDXInstance(_0x3e0569),_0x37ebda=await _0xebc6c6[_0x2d08ad(0x222)]({'options':{..._0x3e0569,..._0xc49522},'args':[_0x58f699],'tdx':_0x2c13d1});gracefulExit(_0x37ebda);});const llmCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2b0))[a2_0x40ec05(0x383)](a2_0x40ec05(0x305));llmCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2fb))[a2_0x40ec05(0x383)](a2_0x40ec05(0x17e))[a2_0x40ec05(0x260)](async(_0x17db23,_0x445e5e)=>{const _0x2624a2=a2_0x40ec05,_0x2db7a8=new LLMUseCommand(),_0x3a391a=program[_0x2624a2(0x184)](),_0xa8a7bc=await createTDXInstance(_0x3a391a),_0x3c85a8=await _0x2db7a8[_0x2624a2(0x222)]({'options':{..._0x3a391a,..._0x445e5e},'args':[_0x17db23],'tdx':_0xa8a7bc});gracefulExit(_0x3c85a8);}),llmCmd['command'](a2_0x40ec05(0x183))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2ed))[a2_0x40ec05(0x260)](async _0x38f04b=>{const _0x3f6651=a2_0x40ec05,_0x663384=new LLMModelsCommand(),_0x9db2a4=program['opts'](),_0x33043c=await createTDXInstance(_0x9db2a4),_0x162725=await _0x663384[_0x3f6651(0x222)]({'options':{..._0x9db2a4,..._0x38f04b},'args':[],'tdx':_0x33043c});gracefulExit(_0x162725);});const projectCmd=llmCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x372))[a2_0x40ec05(0x383)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x352d69,_0x41ac76)=>{const _0x3bfcd6=a2_0x40ec05,_0x35a272=new LLMProjectsCommand(),_0x5423a9=program['opts'](),_0x476b60=await createTDXInstance(_0x5423a9),_0x3553f1=await _0x35a272[_0x3bfcd6(0x222)]({'options':{..._0x5423a9,..._0x41ac76},'args':_0x352d69?[_0x352d69]:[],'tdx':_0x476b60});gracefulExit(_0x3553f1);};projectCmd['command']('list\x20[pattern]')['description'](a2_0x40ec05(0x217))[a2_0x40ec05(0x260)](llmProjectListAction),llmCmd[a2_0x40ec05(0x1d7)]('projects\x20[pattern]')[a2_0x40ec05(0x383)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](llmProjectListAction),projectCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x147))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1fd))['option'](a2_0x40ec05(0x1fe),a2_0x40ec05(0x33a))[a2_0x40ec05(0x260)](async(_0x763b5c,_0x52585b)=>{const _0x20ccd5=a2_0x40ec05,_0x15f4cb=new LLMProjectCreateCommand(),_0xfcda61=program[_0x20ccd5(0x184)](),_0x2c236d=await createTDXInstance(_0xfcda61),_0x26e7e6=await _0x15f4cb[_0x20ccd5(0x222)]({'options':{..._0xfcda61,..._0x52585b},'args':[_0x763b5c],'tdx':_0x2c236d});gracefulExit(_0x26e7e6);}),projectCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x101))[a2_0x40ec05(0x383)](a2_0x40ec05(0x333))[a2_0x40ec05(0x260)](async(_0x3cf697,_0x503cbc)=>{const _0x1e4182=a2_0x40ec05,_0x19ab6a=new LLMProjectDeleteCommand(),_0x59e85d=program[_0x1e4182(0x184)](),_0x421206=await createTDXInstance(_0x59e85d),_0x3f18b1=await _0x19ab6a[_0x1e4182(0x222)]({'options':{..._0x59e85d,..._0x503cbc},'args':[_0x3cf697],'tdx':_0x421206});gracefulExit(_0x3f18b1);}),projectCmd['command'](a2_0x40ec05(0x2d1))[a2_0x40ec05(0x383)](a2_0x40ec05(0x3b2))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2eb),a2_0x40ec05(0x280))[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x40ec05(0x260)](async(_0xbd8fb5,_0xec532e)=>{const _0x5ccb66=a2_0x40ec05,_0xadb683=new LLMProjectBackupCommand(),_0x25961d=program[_0x5ccb66(0x184)](),_0x4316e1=await createTDXInstance(_0x25961d),_0x976c72=await _0xadb683[_0x5ccb66(0x222)]({'options':{..._0x25961d,..._0xec532e},'args':[_0xbd8fb5],'tdx':_0x4316e1});gracefulExit(_0x976c72);}),projectCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x230))[a2_0x40ec05(0x383)](a2_0x40ec05(0x27f))[a2_0x40ec05(0x295)]('--name\x20<new-name>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x40ec05(0x260)](async(_0x231359,_0x521c42)=>{const _0x27881e=a2_0x40ec05,_0x36fff2=new LLMProjectRestoreCommand(),_0x435a84=program[_0x27881e(0x184)](),_0x197fd5=await createTDXInstance(_0x435a84),_0x306566=await _0x36fff2[_0x27881e(0x222)]({'options':{..._0x435a84,..._0x521c42},'args':[_0x231359],'tdx':_0x197fd5});gracefulExit(_0x306566);});const llmAgentListAction=async(_0x4641e9,_0x10a22a)=>{const _0x4eb086=a2_0x40ec05,_0x58ad22=new LLMAgentsCommand(),_0x230f51=program[_0x4eb086(0x184)](),_0x221e62=await createTDXInstance(_0x230f51),_0x524db0=await _0x58ad22[_0x4eb086(0x222)]({'options':{..._0x230f51,..._0x10a22a},'args':_0x4641e9?[_0x4641e9]:[],'tdx':_0x221e62});gracefulExit(_0x524db0);};llmCmd[a2_0x40ec05(0x1d7)]('agents\x20[pattern]')['description'](a2_0x40ec05(0xeb))[a2_0x40ec05(0x260)](llmAgentListAction),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x32a))[a2_0x40ec05(0x383)](a2_0x40ec05(0xeb))[a2_0x40ec05(0x260)](llmAgentListAction),llmCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x38d))[a2_0x40ec05(0x383)](a2_0x40ec05(0x36c))[a2_0x40ec05(0x295)](a2_0x40ec05(0x234),a2_0x40ec05(0x1bd))[a2_0x40ec05(0x260)](async(_0x3fbb80,_0xdbe395)=>{const _0x17ece1=a2_0x40ec05,_0x1e8a07=new LLMHistoryCommand(),_0x15132c=program[_0x17ece1(0x184)](),_0x22d34d=await createTDXInstance(_0x15132c),_0x4ad860=await _0x1e8a07[_0x17ece1(0x222)]({'options':{..._0x15132c,..._0xdbe395},'args':_0x3fbb80?[_0x3fbb80]:[],'tdx':_0x22d34d});gracefulExit(_0x4ad860);});isExperimentalAvailable()&&llmCmd['command'](a2_0x40ec05(0x3ac))[a2_0x40ec05(0x383)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x40ec05(0x260)](async(_0x1e29af,_0x20358c)=>{const _0x1e072f=a2_0x40ec05,_0x3419bd=new LLMLogCommand(),_0xcc7c31=program[_0x1e072f(0x184)](),_0x23e701=await createTDXInstance(_0xcc7c31),_0x153d43=await _0x3419bd[_0x1e072f(0x222)]({'options':{..._0xcc7c31,..._0x20358c},'args':[_0x1e29af],'tdx':_0x23e701});gracefulExit(_0x153d43);});program[a2_0x40ec05(0x1d7)]('claude\x20[args...]')[a2_0x40ec05(0x23a)]('[options]\x20--\x20[claude-code-args...]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x308))[a2_0x40ec05(0x295)](a2_0x40ec05(0x264),a2_0x40ec05(0x263))[a2_0x40ec05(0x295)]('-r,\x20--resume',a2_0x40ec05(0x12a))['option']('--no-proxy',a2_0x40ec05(0x37e))[a2_0x40ec05(0x236)]()['allowExcessArguments'](!![])[a2_0x40ec05(0xe6)](a2_0x40ec05(0x318),a2_0x40ec05(0x290))[a2_0x40ec05(0x260)](async(_0x377fa7,_0x31b9a7)=>{const _0x4f17d0=a2_0x40ec05,_0x5a6748=program[_0x4f17d0(0x184)](),_0x9e2bc1=Array[_0x4f17d0(0x399)](_0x377fa7)?_0x377fa7:[];if(_0x9e2bc1[0x0]===_0x4f17d0(0x20b)){const _0x49a8b6=new ClaudeStatuslineCommand(),_0x1fa31f=await _0x49a8b6['run']({'options':{..._0x5a6748,..._0x31b9a7},'args':_0x9e2bc1['slice'](0x1),'tdx':null});gracefulExit(_0x1fa31f);}if(_0x9e2bc1[0x0]==='usage'){const _0x54423d=new ClaudeUsageCommand(),_0x5e1930=await _0x54423d[_0x4f17d0(0x222)]({'options':{..._0x5a6748,..._0x31b9a7},'args':_0x9e2bc1[_0x4f17d0(0x347)](0x1),'tdx':null});gracefulExit(_0x5e1930);}const _0x2007de=new ClaudeCommand(),_0x40583b=await createTDXInstance(_0x5a6748),_0x3714a1=await _0x2007de['run']({'options':{..._0x5a6748,..._0x31b9a7},'args':_0x9e2bc1,'tdx':_0x40583b});gracefulExit(_0x3714a1);}),program['command'](a2_0x40ec05(0x3ab))[a2_0x40ec05(0x383)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x1f7),a2_0x40ec05(0x176))[a2_0x40ec05(0x295)](a2_0x40ec05(0x122),a2_0x40ec05(0x177))[a2_0x40ec05(0x260)](async(_0x3448c5,_0x3c6225,_0x372aa4)=>{const _0x4f04b2=a2_0x40ec05,_0x44d5ff=new UseCommand(),_0x3edf9a=program[_0x4f04b2(0x184)](),_0x307b5f=[];if(_0x3448c5)_0x307b5f[_0x4f04b2(0xda)](_0x3448c5);if(_0x3c6225)_0x307b5f[_0x4f04b2(0xda)](_0x3c6225);const _0x22e5cc=_0x3448c5===_0x4f04b2(0x332),_0x533e39=_0x22e5cc?await createTDXInstance(_0x3edf9a):null,_0x246493=await _0x44d5ff[_0x4f04b2(0x222)]({'options':{..._0x3edf9a,..._0x372aa4},'args':_0x307b5f,'tdx':_0x533e39});gracefulExit(_0x246493);}),program[a2_0x40ec05(0x1d7)]('status')[a2_0x40ec05(0x383)]('Show\x20authentication\x20status\x20and\x20current\x20context')[a2_0x40ec05(0x260)](async _0x54e1bb=>{const _0x12eb15=a2_0x40ec05,_0x33c47d=new StatusCommand(),_0x5977fa=program[_0x12eb15(0x184)](),_0x2c55f4=await createTDXInstance(_0x5977fa),_0x31c013=await _0x33c47d['run']({'options':{..._0x5977fa,..._0x54e1bb},'args':[],'tdx':_0x2c55f4});gracefulExit(_0x31c013);}),program['command'](a2_0x40ec05(0x317))[a2_0x40ec05(0x383)](a2_0x40ec05(0x129))[a2_0x40ec05(0x295)]('--dry-run',a2_0x40ec05(0x1b6))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2dd),a2_0x40ec05(0x1c1))[a2_0x40ec05(0x295)](a2_0x40ec05(0x3a5),'Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)')[a2_0x40ec05(0x260)](async(_0x383473,_0x39d399)=>{const _0xa75171=a2_0x40ec05,_0x1791a5=new UpgradeCommand(),_0x4e68d2=program[_0xa75171(0x184)](),_0x53f13f=await _0x1791a5[_0xa75171(0x222)]({'options':{..._0x4e68d2,..._0x39d399},'args':_0x383473?[_0x383473]:[],'tdx':null});gracefulExit(_0x53f13f);}),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x3a2))[a2_0x40ec05(0x383)](a2_0x40ec05(0xb4))[a2_0x40ec05(0x295)]('--default',a2_0x40ec05(0x257))['action'](async(_0xc84210,_0x51865a)=>{const _0x566178=a2_0x40ec05,_0x5d0cf4=new UnsetCommand(),_0x5ed436=program[_0x566178(0x184)](),_0xb17390=await _0x5d0cf4[_0x566178(0x222)]({'options':{..._0x5ed436,..._0x51865a},'args':[_0xc84210],'tdx':null});gracefulExit(_0xb17390);}),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x1d4))[a2_0x40ec05(0x383)](a2_0x40ec05(0x285))['option'](a2_0x40ec05(0x234),a2_0x40ec05(0x189))[a2_0x40ec05(0x260)](async _0x4a393a=>{const _0x469a03=a2_0x40ec05,_0x38de1d=new ChatsCommand(),_0x216c1b=program[_0x469a03(0x184)](),_0x7d7449=await createTDXInstance(_0x216c1b),_0x5639e2=await _0x38de1d[_0x469a03(0x222)]({'options':{..._0x216c1b,..._0x4a393a},'args':[],'tdx':_0x7d7449});gracefulExit(_0x5639e2);});const authCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x390))['description'](a2_0x40ec05(0x19e));function a2_0x1d32(){const _0x4e0e54=['Show\x20schedule\x20details','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--session\x20<id>','sessions\x20[project]','[task-name]','list\x20[audience_name]','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--file\x20<path>','--timeout\x20<seconds>','Pull\x20specific\x20template\x20by\x20name','slice','--temperature\x20<n>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','repeat','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Campaign\x20description','database','Ending\x20offset\x20(default:\x2020)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Data\x20connection\x20management\x20(for\x20activations/exports)','Resume\x20a\x20paused\x20always-on\x20campaign','--html-file\x20<path>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--limit\x20<number>','--enriched','--days\x20<n>','activations\x20<name-or-path>','alias','run\x20<name>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--engine-version\x20<version>','launch\x20<name-or-id>','Validate\x20template\x20YAML\x20files\x20locally','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','stats\x20<name-or-path>','New\x20segment\x20name','-y,\x20--yes','Segment\x20description','Add\x20attributes\x20as\x20JSON\x20string','Customer\x20group\x20as\x20JSON\x20string','secrets','Path\x20is\x20not\x20a\x20directory:\x20','configureHelp','history\x20<name>','error','schedule','--in\x20<db>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','fields\x20[name]','result\x20<job-id>','folder','cas','project','--segment\x20<path>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','show\x20<name-or-id>','Export\x20journey(s)\x20as\x20YAML\x20files','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','upgrade','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','delivery','--add-attributes\x20<json>','Email\x20subject\x20template','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','2653812hQNMvk','chat\x20[message...]','--interval\x20<range>','--behavior\x20[name]','description','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--model\x20<name>','--status\x20<status>','describe','push\x20[parent_or_file]','--dry-run','Enable\x20verbose\x20logging','--full','pull\x20[name]','history\x20[chat-id]','set','Personalization\x20service\x20management','auth','Clear\x20workflow\x20project\x20context','Add\x20behaviors\x20from\x20JSON\x20file','--jsonl','AI-native\x20work\x20management','Maximum\x20rows\x20to\x20display','describe\x20[table]','entries','--folder-id\x20<id>','isArray','Show\x20master\x20table\x20sample\x20data','Skip\x20validation\x20of\x20.dig\x20files','--rule-file\x20<file>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','mcp','-f,\x20--file\x20<path>','Run\x20a\x20scheduled\x20query\x20immediately','Include\x20all\x20items\x20(no\x20stale\x20filtering)','unset\x20<resource>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20all\x20available\x20profiles','--method\x20<pm>','accessToken','Agent\x20description','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','use\x20[resource]\x20[value]','log\x20<chat-id>','-1d','pull\x20[workspace]','join','Target\x20directory\x20for\x20YAML\x20files','--prompt\x20<text>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Validate\x20campaign\x20YAML\x20files\x20locally','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Read\x20query\x20from\x20file','optionDescription','pull\x20<project>\x20[target-dir]','set\x20<key=value>','--version\x20<number>','Email\x20sender\x20ID\x20for\x20delivery','-u,\x20--use','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Filtering\x20rule\x20as\x20JSON\x20string','Open\x20segment\x20in\x20web\x20browser','projects\x20[pattern]','--starter-message\x20<text>','Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login','--type\x20<type>','use\x20<path>','jobs','show\x20<service_id>\x20[parent_segment]','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','us01','exit','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Revision\x20name\x20(default:\x20timestamp)','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','Service\x20description','parents\x20[pattern]','fields\x20[parent_name]','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','variadic','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Create\x20segment\x20folder','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Start\x20a\x20new\x20chat\x20session','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','--database\x20<db>','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','journey','Master\x20database\x20name','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Workspace\x20description','--force','Timezone\x20for\x20cron','isTTY','Maximum\x20recursion\x20depth\x20(default:\x2010)','7835274qZblaB','Preview\x20without\x20creating\x20the\x20project','Skip\x20confirmation\x20prompts','--in\x20<database>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','show\x20<folder_ref>','push\x20[source-dir]','retry','kill','Open\x20a\x20document\x20in\x20$EDITOR','Show\x20job\x20details','Delivery\x20operations\x20(email\x20senders)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','-r,\x20--recursive','commandDescription','run\x20[name]','attempts\x20[project]','Show\x20document\x20details','options','policy','Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)','init\x20[name]','tables\x20[pattern]','create\x20<name>\x20<service_id>\x20[parent_segment]','Commands:','move\x20<name>\x20<status>','push','Skip\x20population\x20counting','Push\x20without\x20confirmation','replace','Workspace\x20name','use\x20[name]','registeredArguments','duplicate\x20<name-or-id>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Job\x20management\x20commands','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Name\x20for\x20the\x20new\x20project\x20(required)','addHelpText','Folder\x20name\x20for\x20organization','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Resume\x20activations\x20in\x20an\x20RT\x20journey','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','remove\x20<name>','--kind\x20<kind>','--reason\x20<text>','desc','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','-o,\x20--output\x20<file>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--attributes\x20<json>','activations\x20<segment_name>','--color','Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted','campaign','Workflow\x20session\x20management','79436FzCGkG','columns\x20<name-or-path>','types','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Personalization\x20name','list\x20[name]','Pull\x20templates\x20to\x20YAML\x20files','delete\x20<name>','Read\x20request\x20body\x20from\x20file','show\x20<agent-name>','300UePYtq','Open\x20journey\x20in\x20web\x20browser','List\x20activations\x20for\x20a\x20journey','...','\x20-\x20built\x20','--stream','Force\x20retry\x20even\x20if\x20not\x20failed','pause_activations\x20<journeyId>','--schedule-option\x20<value>','update\x20<agent-name>','--parent-folder\x20<name>','noColor','--job-type\x20<type>','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','System\x20prompt/instructions\x20(default:\x20empty)','query\x20[sql]','Output\x20file\x20path','name','JSON\x20columns\x20for\x20connector\x20(comma-separated)','format','TRACE','Access\x20control\x20policy\x20commands','Create\x20a\x20new\x20profile','Create\x20an\x20email\x20template','Show\x20journey\x20table\x20column-to-step\x20mapping','Preview\x20operation\x20without\x20executing','--attribute\x20[name]','Preview\x20changes\x20without\x20pushing','Show\x20segment\x20schema\x20(column\x20types)','--default','--add-behaviors\x20<json>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','Resume\x20a\x20conversation\x20(shows\x20selector)','logLevel','connections','--cron\x20<expression>','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','long','includes','Sections\x20as\x20an\x20inline\x20JSON\x20array','chdir','Show\x20journey\x20statistics','Transition\x20a\x20task\x20to\x20a\x20new\x20status','view\x20<name-or-path>','Show\x20items\x20updated\x20within\x20N\x20days','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','token','[DEPRECATED]\x20Segment\x20folder\x20management','--kind\x20<type>','preview\x20[name]','api\x20[endpoint]','get','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','--type\x20<api_type>','--limit\x20<rows>','map','outputHelp','Table\x20management\x20commands','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','create','--reeval','create\x20<name>','[action]','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','setup','-f,\x20--force','--enable-utm-tracking','parse','INVALID_ARGUMENT','argumentTerm','Campaign\x20name','board','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','gitRevision','jsonl','desc\x20[name]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Create\x20a\x20scheduled\x20query','--new','show\x20<name>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','DEBUG','Journey\x20version\x20management','engage','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','New\x20service\x20description','Reason\x20for\x20killing\x20the\x20attempt','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','List\x20composable\x20audiences','Parent\x20folder\x20name\x20for\x20nested\x20folders','Agent\x20name','_list-commands','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Preview\x20composable\x20segment\x20query\x20on\x20CDW','length','Result\x20output\x20destination\x20URL','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Create\x20a\x20new\x20always-on\x20campaign','Campaign\x20type\x20(email\x20or\x20push)','Starting\x20offset\x20(default:\x200)','Starter\x20message','Pull\x20workflow\x20project\x20to\x20local\x20folder','service','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','profile','push\x20[path]','update\x20<service_id>\x20[parent_segment]','Clear\x20session\x20context','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','delete\x20<agent-name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--editor-type\x20<type>','New\x20template\x20name','tasks','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Include\x20raw\x20history\x20data\x20in\x20output','--delay\x20<seconds>','_hidden','Add\x20attributes\x20from\x20JSON\x20file','models','opts','Kill\x20a\x20job','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','\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','Show\x20the\x20most\x20recent\x20chat','validate\x20[file]','Follow/watch\x20timeline\x20for\x20running\x20attempts','--workspace\x20<name>','1180320QCLeuu','item','--include-stats','desc\x20[segment_name]','--audience\x20<name>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','--table','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','sql\x20[segment_name]','List\x20composable\x20segments\x20for\x20an\x20audience','senders\x20[pattern]','Open\x20parent\x20segment\x20in\x20web\x20browser','Attributes\x20from\x20JSON\x20file','retry\x20<session-id>','RT\x20Journey\x20management','template','find','Authentication\x20management','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Unknown\x20action:\x20','required','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','createAsync','--output\x20<file>','Pull\x20specific\x20revision\x20(default:\x20latest)','users','parent_segment','clear','Create\x20a\x20workspace','Include\x20retried\x20attempts','catch','Move\x20to\x20folder','sql\x20[name]','requiredOption','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Remove\x20API\x20key\x20from\x20system\x20keychain','Generate\x20test\x20conversations\x20without\x20evaluation','Change\x20to\x20directory\x20before\x20executing\x20command','Describe\x20table\x20schema','argv','resume\x20<name-or-id>','Check\x20for\x20updates\x20without\x20installing','--rule\x20<json>','[attempt-id]','Folder\x20description','Pull\x20specific\x20campaign\x20by\x20name','8087248XKVHxt','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Show\x20Kanban\x20board\x20view\x20of\x20tasks','-p,\x20--profile\x20<name>','information_schema','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','Document\x20body\x20text','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Output\x20as\x20JSON','Database\x20name','--json-columns\x20<cols>','aliases','Update\x20a\x20campaign','Preview\x20changes\x20without\x20writing\x20files','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Submit\x20a\x20job','--behaviors\x20<json>','--max-depth\x20<depth>','--allowed-ips\x20<ips>','segment','Scheduled\x20query\x20management\x20commands','List\x20all\x20users\x20in\x20the\x20account','stringify','Pull\x20campaigns\x20to\x20YAML\x20files','chats','Update\x20an\x20email\x20template','tdx','command','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Assignee','push\x20[file]','Add\x20behaviors\x20as\x20JSON\x20string','Retry\x20limit\x20(0\x20to\x2032)','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','forEach','--email-sender-id\x20<id>','Task\x20name\x20for\x20logs\x20action','commandUsage','submit\x20[query]','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','Show\x20schedule\x20execution\x20history','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--delete','Query\x20engine\x20version','Output\x20file\x20path\x20(default:\x20<name>.yml)','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--system-prompt\x20<text>','links\x20<name>','always-on-campaign','--account-name\x20<name>','Parent\x20segment\x20management','--from\x20<date>','view\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--template\x20<name>','site','update\x20<name>','--priority\x20<-2~2>','--resume-from\x20<task>','--clear','View\x20a\x20specific\x20version\x20of\x20a\x20journey','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses','--limit\x20<n>','--revision\x20<revision>','Output\x20directory','Create\x20a\x20new\x20LLM\x20project','--description\x20<text>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','-H,\x20--header\x20<header>','Override\x20project\x20name','list\x20[pattern]','stderr','Directory\x20does\x20not\x20exist:\x20','optionTerm','--path\x20<file-path>','segments\x20[path]','apiKey','Personalization\x20management','beefree','statusline','attempt:','kill\x20<job-id>','Workflow\x20(Digdag)\x20management\x20commands','Duplicate\x20an\x20always-on\x20campaign','Show\x20agent\x20details','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','preAction','--no-count-population','Parse\x20and\x20validate\x20without\x20executing','--session-time\x20<time>','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--tsv','use\x20<name>','json','Resume\x20from\x20specific\x20task\x20(retry)','Comma-separated\x20tags','Resume\x20a\x20paused\x20journey','--all','--skip-validation','journeys\x20[pattern]','Push\x20YAML\x20files\x20to\x20CAS\x20API','run','Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)','configuration_versions\x20[name]','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','User\x20management\x20commands','INFO','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','info\x20[segment_name]','workflows\x20[project]','\x22.\x20Must\x20be\x20a\x20number.','create\x20<name-or-path>','Show\x20workspace\x20details','restore\x20<folder>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','hidden','view\x20[segment_name]','--last','--body\x20<body>','allowUnknownOption','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Pause\x20a\x20running\x20journey','usage','--param\x20<key=value>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','List\x20secret\x20keys\x20for\x20a\x20project','Get\x20current\x20RT\x20configuration\x20version\x20status','audience','validate\x20[name]','--name\x20<text>','Timezone\x20for\x20cron\x20(default:\x20UTC)','Workspace\x20name\x20(required)','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','Show\x20email\x20template\x20details','--verbose','create\x20<name>\x20[parent_segment]','Campaign\x20management','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--agent\x20<ref>','isDirectory','--subject\x20<subject>','create\x20[name]','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','split','versions\x20<name-or-path>','Show\x20segment\x20details\x20(alias\x20for\x20view)','Run\x20specific\x20tests\x20(comma-separated)','Include\x20execution\x20statistics','--public','trino','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','--attempt-id\x20<id>','tsv','create\x20<segment_name>','--start-at\x20<datetime>','--time\x20<iso8601>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','List\x20jobs','--include-retried','action','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Continue\x20most\x20recent\x20conversation','-c,\x20--continue','Skip\x20confirmation\x20prompt','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)','status','Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Master\x20table\x20name','settings\x20<type>','Duplicate\x20a\x20campaign','Arguments:','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','--plaintext\x20<text>','--llm-project\x20<name>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--params\x20<json>','padWidth','argument','Updated\x20description','Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)','download\x20<project-name>\x20[output-dir]','Initial\x20status','push\x20[target]','help','Customer\x20group\x20from\x20JSON\x20file','templates\x20[pattern]','Database\x20management\x20commands','Pause\x20an\x20always-on\x20campaign','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Output\x20folder\x20(default:\x20{project_name}.llm)','-X,\x20--method\x20<method>','--json','timeline\x20[project.workflow]','Custom\x20revision\x20name\x20(default:\x20timestamp)','Interactive\x20chat\x20selector','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','validate\x20[target]','table','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','directory',',\x20version\x20','--version','parent-segment','--timezone\x20<tz>','--catalog\x20<catalog>','\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','Delete\x20a\x20scheduled\x20query','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--chat-id\x20<id>','HTML\x20template\x20content','option','Invalid\x20--limit\x20value:\x20\x22','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Run\x20Trino\x20query\x20with\x20streaming\x20results','injectIntoOptions','create\x20<parent_name>\x20<folder_name>','YAML\x20file\x20path\x20for\x20unpushed\x20segment','Workflow\x20project\x20management','subcommandDescription','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Delete\x20a\x20campaign','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','--customer-group-file\x20<file>','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Create\x20a\x20new\x20document','--yes','--to\x20<timestamp>','Make\x20service\x20public\x20(default:\x20private)','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Read\x20SQL\x20query\x20from\x20file','Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','filter','-a,\x20--agent\x20<name>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','llm','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','commands','Show\x20always-on\x20campaign\x20details','Database\x20name\x20(required)','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','--description\x20<desc>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','-d,\x20--database\x20<db>','login','argumentDescription','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','New\x20workspace\x20name','flatMap','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Show\x20a\x20specific\x20realtime\x20personalization','Plaintext\x20template\x20content','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','workflow','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','--assignee\x20<assignee>','--add-behaviors-file\x20<file>','trace','Read\x20HTML\x20template\x20from\x20file','subcommandTerm','--table\x20<table>','Pull\x20child\x20segments\x20to\x20YAML\x20files','--data\x20<data>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)','Show\x20only\x20master\x20table\x20validation','--from\x20<timestamp>','logs','backup\x20<name>','List\x20email\x20senders','connection','-w,\x20--web','--help','List\x20agents\x20in\x20current\x20project','--name\x20<name>','--no-color','Launch\x20an\x20always-on\x20campaign','Get\x20job\x20results','--database\x20<name>','show\x20[name]','--next','Output\x20as\x20JSON\x20Lines','session','Action:\x20logs,\x20tasks,\x20kill,\x20retry','buildTime','Delete\x20a\x20profile','Usage:\x20','version','--result\x20<url>','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','Priority\x20(critical,\x20high,\x20medium,\x20low)','new\x20<title>','Delay\x20in\x20seconds\x20before\x20execution','Make\x20segment\x20invisible\x20(default:\x20visible)','-o,\x20--output\x20<folder>','Database\x20to\x20query\x20(default:\x20information_schema)','List\x20available\x20LLM\x20models','931316haSLAT','-d,\x20--database\x20<database>','--from-task\x20<task>','--master','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','--max-tool-iterations\x20<n>','parent','\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','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','clone\x20[source]','show\x20[segment_name]','Set\x20operation\x20timeout\x20in\x20seconds','delete\x20<args...>','use\x20<project-name>','Attempt\x20ID','Save\x20output\x20to\x20file','set\x20<args...>','Updated\x20schedule\x20option','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','\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\x20\x20$\x20tdx\x20profile\x20create\x20prod\x20-f\x20\x20\x20\x20\x20\x20#\x20Overwrite\x20existing\x20\x27prod\x27\x20profile\x0a','--retry-limit\x20<0~32>','--num\x20<1-10>','log','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Workspace\x20management','Show\x20all\x20files\x20including\x20valid\x20ones','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','summary','-o,\x20--output\x20<dir>','agent','Version\x20number\x20to\x20view','traffic\x20<name-or-path>','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Updated\x20timezone','120638EdNxNM','always-on-campaigns\x20[pattern]','pause\x20<name-or-id>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Update\x20a\x20realtime\x20personalization\x20entity','Limit\x20number\x20of\x20rows','Set\x20a\x20profile\x20configuration\x20value','upgrade\x20[version]','after','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','5CSguQQ','list\x20[project]','--trace','--format\x20<format>','--html\x20<html>','Maximum\x20tool\x20iterations\x20(default:\x204)','Database\x20name\x20(default:\x20information_schema)','RT\x202.0\x20configuration\x20management','update\x20<name-or-id>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','profiles','--github\x20<owner/repo>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--folder\x20<name>','Workflow\x20parameter\x20(repeatable)','agents\x20[pattern]','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','list','Launch\x20a\x20campaign','--schedule-type\x20<type>','\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','padEnd','Update\x20an\x20always-on\x20campaign','engage_workspace','Delete\x20an\x20LLM\x20project','List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)','Personalization\x20description','user','Show\x20campaign\x20details','End\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)','Project\x20description','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)'];a2_0x1d32=function(){return _0x4e0e54;};return a2_0x1d32();}async function runAuthStatusCommand(_0x1b7e17){const _0x1b9108=a2_0x40ec05,_0x1f5d0c=new AuthStatusCommand(),_0x3b889f=program[_0x1b9108(0x184)](),_0x2ccaec=await createTDXInstance(_0x3b889f),_0x48b1a5=await _0x1f5d0c[_0x1b9108(0x222)]({'options':{..._0x3b889f,..._0x1b7e17},'args':[],'tdx':_0x2ccaec});gracefulExit(_0x48b1a5);}authCmd['action'](runAuthStatusCommand),authCmd['command'](a2_0x40ec05(0x268))[a2_0x40ec05(0x383)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')['action'](runAuthStatusCommand);async function authSetupAction(_0x3a458e){const _0x296c6e=a2_0x40ec05,_0x3bf32a=new AuthSetupCommand(),_0x5ba2fe=program[_0x296c6e(0x184)](),_0x519545=await createTDXInstance(_0x5ba2fe),_0x12e035=await _0x3bf32a['run']({'options':{..._0x5ba2fe,..._0x3a458e},'args':[],'tdx':_0x519545});gracefulExit(_0x12e035);}authCmd['command'](a2_0x40ec05(0x14a))[a2_0x40ec05(0x383)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x40ec05(0x295)]('--account-name\x20<name>',a2_0x40ec05(0x9d))[a2_0x40ec05(0xe6)](a2_0x40ec05(0x318),'\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')[a2_0x40ec05(0x260)](authSetupAction),authCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2b9),{'hidden':!![]})[a2_0x40ec05(0x295)](a2_0x40ec05(0x1ed),a2_0x40ec05(0x9d))[a2_0x40ec05(0x260)](authSetupAction),authCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x1a8))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1b0))[a2_0x40ec05(0xe6)](a2_0x40ec05(0x318),'\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0x40ec05(0x260)](async _0x33d3d8=>{const _0x2d03a8=a2_0x40ec05,_0x46e8c1=new AuthClearCommand(),_0x3a8baf=program[_0x2d03a8(0x184)](),_0x5a9e0a=await _0x46e8c1[_0x2d03a8(0x222)]({'options':{..._0x3a8baf,..._0x33d3d8},'args':[],'tdx':null});gracefulExit(_0x5a9e0a);});const userCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x336))[a2_0x40ec05(0x383)](a2_0x40ec05(0x228)),userListAction=async _0xbb5ef=>{const _0x4d041d=a2_0x40ec05,_0x4fbfda=new UserListCommand(),_0x261017=program[_0x4d041d(0x184)](),_0x27f22f=await createTDXInstance(_0x261017),_0x35f925=await _0x4fbfda[_0x4d041d(0x222)]({'options':{..._0x261017,..._0xbb5ef},'args':[],'tdx':_0x27f22f});gracefulExit(_0x35f925);};userCmd[a2_0x40ec05(0x260)](async _0x486e18=>{const _0x42bea6=a2_0x40ec05,_0x577c70=new UserCommand(),_0x5a4ce2=program[_0x42bea6(0x184)](),_0x4569ff=await createTDXInstance(_0x5a4ce2),_0x51b2a2=await _0x577c70[_0x42bea6(0x222)]({'options':{..._0x5a4ce2,..._0x486e18},'args':[],'tdx':_0x4569ff});gracefulExit(_0x51b2a2);}),userCmd['command'](a2_0x40ec05(0x32c))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1d1))[a2_0x40ec05(0x260)](userListAction),program['command'](a2_0x40ec05(0x1a6))[a2_0x40ec05(0x383)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x40ec05(0x260)](userListAction);const policyCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xd3))[a2_0x40ec05(0x383)](a2_0x40ec05(0x11a));policyCmd[a2_0x40ec05(0x260)](async _0x16f436=>{const _0x3e0149=a2_0x40ec05,_0x41fce9=new PolicyCommand(),_0x5049ca=program[_0x3e0149(0x184)](),_0xc239f5=await createTDXInstance(_0x5049ca),_0x328146=await _0x41fce9[_0x3e0149(0x222)]({'options':{..._0x5049ca,..._0x16f436},'args':[],'tdx':_0xc239f5});gracefulExit(_0x328146);}),policyCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x32c))[a2_0x40ec05(0x383)]('List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)')[a2_0x40ec05(0x260)](async _0x574c1d=>{const _0x5e8ffd=a2_0x40ec05,_0x52ba0c=new PolicyListCommand(),_0x3f25f7=program[_0x5e8ffd(0x184)](),_0x50bd53=await createTDXInstance(_0x3f25f7),_0x4a251a=await _0x52ba0c[_0x5e8ffd(0x222)]({'options':{..._0x3f25f7,..._0x574c1d},'args':[],'tdx':_0x50bd53});gracefulExit(_0x4a251a);}),policyCmd['command']('show\x20<policy>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x194))[a2_0x40ec05(0x260)](async(_0x132cfb,_0x395a7e)=>{const _0x5c7511=a2_0x40ec05,_0x41ed5e=new PolicyShowCommand(),_0x488f07=program[_0x5c7511(0x184)](),_0x2dc021=await createTDXInstance(_0x488f07),_0x5ab542=await _0x41ed5e[_0x5c7511(0x222)]({'options':{..._0x488f07,..._0x395a7e},'args':[_0x132cfb],'tdx':_0x2dc021});gracefulExit(_0x5ab542);}),program['command'](a2_0x40ec05(0x324))[a2_0x40ec05(0x383)]('List\x20all\x20available\x20profiles')['action'](async _0x4d6fb9=>{const _0x4e6e9b=a2_0x40ec05,_0x22bea9=new ProfilesCommand(),_0x36922c=program[_0x4e6e9b(0x184)](),_0x206896=await _0x22bea9[_0x4e6e9b(0x222)]({'options':{..._0x36922c,..._0x4d6fb9},'args':[],'tdx':null});gracefulExit(_0x206896);});const profileCmd=program['command'](a2_0x40ec05(0x173))[a2_0x40ec05(0x383)](a2_0x40ec05(0x16a));profileCmd[a2_0x40ec05(0x260)](()=>{const _0x1758df=a2_0x40ec05;profileCmd[_0x1758df(0x142)]();});const profileListAction=async _0x17621f=>{const _0x289441=a2_0x40ec05,_0x23cc90=new ProfilesCommand(),_0x281d89=program[_0x289441(0x184)](),_0x39a652=await _0x23cc90['run']({'options':{..._0x281d89,..._0x17621f},'args':[],'tdx':null});gracefulExit(_0x39a652);};profileCmd['command']('list')[a2_0x40ec05(0x383)](a2_0x40ec05(0x3a4))[a2_0x40ec05(0x260)](profileListAction),profileCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x24e))[a2_0x40ec05(0x383)](a2_0x40ec05(0x11b))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1ed),a2_0x40ec05(0x9d))['option'](a2_0x40ec05(0x14b),'Overwrite\x20existing\x20profile')[a2_0x40ec05(0xe6)]('after',a2_0x40ec05(0x301))['action'](async(_0x4ae0f0,_0x275fb8)=>{const _0x34adc9=a2_0x40ec05,_0x1ded13=new ProfileCreateCommand(),_0xe31050=program[_0x34adc9(0x184)](),_0x2b2ba6=await _0x1ded13[_0x34adc9(0x222)]({'options':{..._0xe31050,..._0x275fb8},'args':_0x4ae0f0?[_0x4ae0f0]:[],'tdx':null});gracefulExit(_0x2b2ba6);});async function profileDeleteAction(_0x48390f,_0x417045){const _0x140edf=a2_0x40ec05,_0x36a998=new ProfileDeleteCommand(),_0x2c5b85=program[_0x140edf(0x184)](),_0x320020=await _0x36a998[_0x140edf(0x222)]({'options':{..._0x2c5b85,..._0x417045},'args':[_0x48390f],'tdx':null});gracefulExit(_0x320020);}profileCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x101))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2e2))[a2_0x40ec05(0xe6)]('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20delete\x20staging\x20\x20\x20\x20\x20\x20#\x20Delete\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x40ec05(0x260)](profileDeleteAction),profileCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xec),{'hidden':!![]})[a2_0x40ec05(0x260)](profileDeleteAction),profileCmd['command'](a2_0x40ec05(0x93))[a2_0x40ec05(0x383)](a2_0x40ec05(0x316))['addHelpText'](a2_0x40ec05(0x318),'\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_0x40ec05(0x260)](async(_0x2f692b,_0x10c34c)=>{const _0x4f473e=a2_0x40ec05,_0x27f223=new ProfileSetCommand(),_0x1085c0=program[_0x4f473e(0x184)](),_0x58a34e=await _0x27f223['run']({'options':{..._0x1085c0,..._0x10c34c},'args':[_0x2f692b],'tdx':null});gracefulExit(_0x58a34e);}),profileCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x219))[a2_0x40ec05(0x383)](a2_0x40ec05(0x26e))[a2_0x40ec05(0x295)](a2_0x40ec05(0x122),a2_0x40ec05(0x177))['addHelpText'](a2_0x40ec05(0x318),a2_0x40ec05(0x2f5))[a2_0x40ec05(0x260)](async(_0x3c0937,_0x4f036d)=>{const _0x5e2846=a2_0x40ec05,_0x423226=new ProfileUseCommand(),_0x37f4c9=program[_0x5e2846(0x184)](),_0x477c02=await _0x423226[_0x5e2846(0x222)]({'options':{..._0x37f4c9,..._0x4f036d},'args':[_0x3c0937],'tdx':null});gracefulExit(_0x477c02);});const engageCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x15d))['description'](a2_0x40ec05(0x149)),createEngageAction=_0x2f216f=>{return async(_0xc96a5c,_0x2a7376)=>{const _0x1f5f55=a2_0x2945,_0x3aed73=new _0x2f216f(),_0x101ab8=program[_0x1f5f55(0x184)](),_0x16a7b4=await createTDXInstance(_0x101ab8),_0x2b3598=await _0x3aed73[_0x1f5f55(0x222)]({'options':{..._0x101ab8,..._0x2a7376},'args':[_0xc96a5c],'tdx':_0x16a7b4});gracefulExit(_0x2b3598);};},createEngageNoArgAction=_0x258575=>{return async _0x67b1a1=>{const _0x1ab7ec=a2_0x2945,_0x535b85=new _0x258575(),_0x58749c=program[_0x1ab7ec(0x184)](),_0x35f2ce=await createTDXInstance(_0x58749c),_0x342584=await _0x535b85['run']({'options':{..._0x58749c,..._0x67b1a1},'args':[],'tdx':_0x35f2ce});gracefulExit(_0x342584);};},createEngageListAction=_0x18471c=>{return async(_0x1d8d88,_0x544f8d)=>{const _0x4bff6b=a2_0x2945,_0x593e18=new _0x18471c(),_0x3fe858=program[_0x4bff6b(0x184)](),_0x22a747=await createTDXInstance(_0x3fe858),_0x46181a=await _0x593e18[_0x4bff6b(0x222)]({'options':{..._0x3fe858,..._0x544f8d},'args':_0x1d8d88?[_0x1d8d88]:[],'tdx':_0x22a747});gracefulExit(_0x46181a);};},campaignCmd=engageCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xf8))[a2_0x40ec05(0x383)](a2_0x40ec05(0x248));campaignCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))[a2_0x40ec05(0x383)](a2_0x40ec05(0xab))[a2_0x40ec05(0x295)](a2_0x40ec05(0x9e),a2_0x40ec05(0x125))[a2_0x40ec05(0x295)](a2_0x40ec05(0x386),a2_0x40ec05(0x39d))[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x260)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x40ec05(0x1d7)]('campaigns\x20[pattern]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x289))[a2_0x40ec05(0x295)](a2_0x40ec05(0x9e),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x40ec05(0x386),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x260)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x40ec05(0x1d7)]('show\x20<name-or-id>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x337))[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x295)](a2_0x40ec05(0x38b),a2_0x40ec05(0xcc))[a2_0x40ec05(0x260)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x145))['description']('Create\x20a\x20new\x20campaign')[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x2d7),a2_0x40ec05(0x150))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x9e),a2_0x40ec05(0x16d))[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0x243))['option'](a2_0x40ec05(0x2b6),a2_0x40ec05(0x34c))[a2_0x40ec05(0x295)](a2_0x40ec05(0x373),a2_0x40ec05(0x24f))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1df),a2_0x40ec05(0x95))['option'](a2_0x40ec05(0x1c6),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x25b),a2_0x40ec05(0x29e))['option'](a2_0x40ec05(0x28e),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x40ec05(0x260)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x322))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1c8))[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))['option'](a2_0x40ec05(0x2d7),'New\x20campaign\x20name')['option']('--description\x20<desc>',a2_0x40ec05(0x34c))[a2_0x40ec05(0x295)](a2_0x40ec05(0x373),a2_0x40ec05(0x24f))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1df),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x40ec05(0x295)](a2_0x40ec05(0x1c6),a2_0x40ec05(0x117))['option'](a2_0x40ec05(0x25b),a2_0x40ec05(0x29e))[a2_0x40ec05(0x295)](a2_0x40ec05(0x28e),a2_0x40ec05(0x33d))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')['description'](a2_0x40ec05(0x29f))[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2a7),'Skip\x20confirmation\x20prompt')[a2_0x40ec05(0x260)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x32d))[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x260)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x312))[a2_0x40ec05(0x383)]('Pause\x20a\x20campaign')[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x260)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x1b5))[a2_0x40ec05(0x383)]('Resume\x20a\x20paused\x20campaign')['option']('--workspace\x20<name>',a2_0x40ec05(0xde))[a2_0x40ec05(0x260)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x40ec05(0x1d7)]('duplicate\x20<name-or-id>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x26c))['option'](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x260)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x40ec05(0x1d7)]('pull\x20[workspace-name]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x1d3))['option']('--workspace\x20<name>',a2_0x40ec05(0xde))[a2_0x40ec05(0x295)]('--name\x20<name>',a2_0x40ec05(0x1ba))[a2_0x40ec05(0x295)]('--type\x20<type>',a2_0x40ec05(0x125))[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),a2_0x40ec05(0x3b4))[a2_0x40ec05(0x260)](createEngageAction(EngageCampaignPullCommand)),campaignCmd['command'](a2_0x40ec05(0x279))['description'](a2_0x40ec05(0x342))['option'](a2_0x40ec05(0x18c),'Workspace\x20name')['option'](a2_0x40ec05(0x389),a2_0x40ec05(0x152))['action'](createEngageAction(EngageCampaignPushCommand)),campaignCmd['command'](a2_0x40ec05(0x287))[a2_0x40ec05(0x383)](a2_0x40ec05(0x3b3))[a2_0x40ec05(0x295)](a2_0x40ec05(0x246),a2_0x40ec05(0x307))[a2_0x40ec05(0x260)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x1ec))[a2_0x40ec05(0x383)]('Always-on\x20campaign\x20management');alwaysOnCampaignCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2aa))['option']('--type\x20<type>',a2_0x40ec05(0x125))[a2_0x40ec05(0x295)](a2_0x40ec05(0x386),'Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)')[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x18c),a2_0x40ec05(0x243))[a2_0x40ec05(0x260)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd['command'](a2_0x40ec05(0x311))[a2_0x40ec05(0x383)]('List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x9e),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x40ec05(0x386),'Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)')[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x18c),'Workspace\x20name\x20(required)')[a2_0x40ec05(0x260)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x375))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2b3))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x18c),a2_0x40ec05(0x243))['option']('--full',a2_0x40ec05(0xcc))['action'](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd['command'](a2_0x40ec05(0x145))[a2_0x40ec05(0x383)](a2_0x40ec05(0x16c))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x2d7),a2_0x40ec05(0x150))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x9e),a2_0x40ec05(0x16d))['requiredOption'](a2_0x40ec05(0x18c),a2_0x40ec05(0x243))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2b6),'Campaign\x20description')[a2_0x40ec05(0x295)](a2_0x40ec05(0x373),a2_0x40ec05(0x97))['option'](a2_0x40ec05(0x14c),'Enable\x20UTM\x20tracking')[a2_0x40ec05(0x260)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd['command'](a2_0x40ec05(0x322))['description'](a2_0x40ec05(0x331))[a2_0x40ec05(0x1ae)]('--workspace\x20<name>',a2_0x40ec05(0x243))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2d7),'New\x20campaign\x20name')[a2_0x40ec05(0x295)](a2_0x40ec05(0x2b6),a2_0x40ec05(0x34c))[a2_0x40ec05(0x295)](a2_0x40ec05(0x373),a2_0x40ec05(0x97))[a2_0x40ec05(0x295)](a2_0x40ec05(0x14c),'Enable\x20UTM\x20tracking')[a2_0x40ec05(0x260)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x40ec05(0x1d7)]('delete\x20<name-or-id>')['description'](a2_0x40ec05(0x1e3))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x18c),a2_0x40ec05(0x243))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2a7),'Skip\x20confirmation\x20prompt')[a2_0x40ec05(0x260)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x35c))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2d9))[a2_0x40ec05(0x1ae)]('--workspace\x20<name>','Workspace\x20name\x20(required)')['action'](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x312))['description'](a2_0x40ec05(0x27e))[a2_0x40ec05(0x1ae)]('--workspace\x20<name>','Workspace\x20name\x20(required)')['action'](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd['command']('resume\x20<name-or-id>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x351))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x18c),a2_0x40ec05(0x243))[a2_0x40ec05(0x260)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x40ec05(0x1d7)]('finish\x20<name-or-id>')[a2_0x40ec05(0x383)]('Finish\x20an\x20always-on\x20campaign')[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x18c),'Workspace\x20name\x20(required)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x2a7),a2_0x40ec05(0x265))[a2_0x40ec05(0x260)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd['command'](a2_0x40ec05(0xe1))[a2_0x40ec05(0x383)](a2_0x40ec05(0x20f))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x18c),a2_0x40ec05(0x243))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x2d7),'Name\x20for\x20the\x20duplicated\x20campaign')[a2_0x40ec05(0x260)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x19c))[a2_0x40ec05(0x383)]('Email\x20template\x20management');templateCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))[a2_0x40ec05(0x383)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),'Workspace\x20name')['action'](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x27c))[a2_0x40ec05(0x383)](a2_0x40ec05(0x124))[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x260)](createEngageListAction(EngageTemplatesCommand)),templateCmd['command'](a2_0x40ec05(0x375))['description'](a2_0x40ec05(0x245))[a2_0x40ec05(0x295)]('--workspace\x20<name>','Workspace\x20name')[a2_0x40ec05(0x295)](a2_0x40ec05(0x38b),a2_0x40ec05(0xcc))[a2_0x40ec05(0x260)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x145))[a2_0x40ec05(0x383)](a2_0x40ec05(0x11c))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x2d7),'Template\x20name')['requiredOption']('--subject\x20<subject>',a2_0x40ec05(0x37d))[a2_0x40ec05(0x295)](a2_0x40ec05(0x31e),a2_0x40ec05(0x294))[a2_0x40ec05(0x295)]('--html-file\x20<path>',a2_0x40ec05(0x2c7))['option'](a2_0x40ec05(0x18c),'Workspace\x20name\x20(required)')['option'](a2_0x40ec05(0x26f),a2_0x40ec05(0x2c0))[a2_0x40ec05(0x295)](a2_0x40ec05(0x17a),a2_0x40ec05(0x2f2),_0x557f90=>{const _0xd3aea2=a2_0x40ec05;if(![_0xd3aea2(0x20a),'grapesjs']['includes'](_0x557f90))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20editor\x20type:\x20'+_0x557f90+_0xd3aea2(0x216));return _0x557f90;})[a2_0x40ec05(0x260)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x322))[a2_0x40ec05(0x383)](a2_0x40ec05(0x1d5))['option'](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2d7),a2_0x40ec05(0x17b))[a2_0x40ec05(0x295)](a2_0x40ec05(0x24d),a2_0x40ec05(0x37d))[a2_0x40ec05(0x295)](a2_0x40ec05(0x31e),'HTML\x20template\x20content')['option'](a2_0x40ec05(0x352),'Read\x20HTML\x20template\x20from\x20file')['option'](a2_0x40ec05(0x26f),a2_0x40ec05(0x2c0))[a2_0x40ec05(0x260)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x40ec05(0x3ae))[a2_0x40ec05(0x383)](a2_0x40ec05(0x100))[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),a2_0x40ec05(0xde))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2d7),a2_0x40ec05(0x346))[a2_0x40ec05(0x295)]('-y,\x20--yes',a2_0x40ec05(0x265))[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),a2_0x40ec05(0x3b4))['action'](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x40ec05(0x1d7)]('push\x20[target]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x244))['option'](a2_0x40ec05(0x18c),'Workspace\x20name')[a2_0x40ec05(0x295)](a2_0x40ec05(0x361),a2_0x40ec05(0x265))[a2_0x40ec05(0x295)]('--dry-run',a2_0x40ec05(0x152))['action'](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x287))[a2_0x40ec05(0x383)](a2_0x40ec05(0x35d))['option']('--verbose',a2_0x40ec05(0x307))[a2_0x40ec05(0x260)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x40ec05(0x1d7)]('delete\x20<name-or-id>')[a2_0x40ec05(0x383)]('Delete\x20an\x20email\x20template')[a2_0x40ec05(0x295)](a2_0x40ec05(0x18c),'Workspace\x20name')['option']('--yes',a2_0x40ec05(0x265))[a2_0x40ec05(0x260)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x40ec05(0x1d7)]('workspace')[a2_0x40ec05(0x383)](a2_0x40ec05(0x306));workspaceCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))['description'](a2_0x40ec05(0x300))[a2_0x40ec05(0x260)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x40ec05(0x1d7)]('workspaces\x20[pattern]')['description'](a2_0x40ec05(0x34f))[a2_0x40ec05(0x260)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd['command'](a2_0x40ec05(0x375))[a2_0x40ec05(0x383)](a2_0x40ec05(0x22f))[a2_0x40ec05(0x295)](a2_0x40ec05(0x38b),a2_0x40ec05(0xcc))[a2_0x40ec05(0x260)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x40ec05(0x1d7)]('create')['description'](a2_0x40ec05(0x1a9))[a2_0x40ec05(0x1ae)]('--name\x20<name>',a2_0x40ec05(0xde))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2b6),'Workspace\x20description')['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command']('update\x20<name-or-id>')[a2_0x40ec05(0x383)]('Update\x20a\x20workspace')['option'](a2_0x40ec05(0x2d7),a2_0x40ec05(0x2bc))['option']('--description\x20<desc>',a2_0x40ec05(0xba))[a2_0x40ec05(0x260)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x40ec05(0x1d7)]('delete\x20<name-or-id>')[a2_0x40ec05(0x383)]('Delete\x20a\x20workspace')[a2_0x40ec05(0x295)](a2_0x40ec05(0x2a7),'Skip\x20confirmation\x20prompt')[a2_0x40ec05(0x260)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x219))[a2_0x40ec05(0x383)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program['command'](a2_0x40ec05(0x37b))[a2_0x40ec05(0x383)](a2_0x40ec05(0xca));deliveryCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x197))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2d2))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x40ec05(0x260)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2d3))['description'](a2_0x40ec05(0x350)),connectionListAction=async _0x14126=>{const _0x15402f=a2_0x40ec05,_0x57ffb8=new ConnectionListCommand(),_0xedb195=program[_0x15402f(0x184)](),_0x15e1d3=await createTDXInstance(_0xedb195),_0x4383da=await _0x57ffb8['run']({'options':{..._0xedb195,..._0x14126},'args':[],'tdx':_0x15e1d3});gracefulExit(_0x4383da);};connectionCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x32c))[a2_0x40ec05(0x383)]('List\x20all\x20data\x20connections')[a2_0x40ec05(0x260)](connectionListAction),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x12c),{'hidden':!![]})[a2_0x40ec05(0x383)](a2_0x40ec05(0x25d))['action'](connectionListAction),connectionCmd['command'](a2_0x40ec05(0x159))['description']('Show\x20connection\x20details\x20by\x20name')[a2_0x40ec05(0x260)](async(_0x7b4a53,_0x3c27c7)=>{const _0x365c8d=new ConnectionShowCommand(),_0x3d371e=program['opts'](),_0x3c47cf=await createTDXInstance(_0x3d371e),_0x261abd=await _0x365c8d['run']({'options':{..._0x3d371e,..._0x3c27c7},'args':[_0x7b4a53],'tdx':_0x3c47cf});gracefulExit(_0x261abd);}),connectionCmd[a2_0x40ec05(0x1d7)]('schema\x20<type>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x1bc))[a2_0x40ec05(0x260)](async(_0x2a489d,_0x4ad770)=>{const _0x22c524=a2_0x40ec05,_0x5e6b0f=new ConnectionSchemaCommand(),_0x56de50=program[_0x22c524(0x184)](),_0x1bd7e9=await createTDXInstance(_0x56de50),_0x2d198f=await _0x5e6b0f[_0x22c524(0x222)]({'options':{..._0x56de50,..._0x4ad770},'args':[_0x2a489d],'tdx':_0x1bd7e9});gracefulExit(_0x2d198f);}),connectionCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xfc))[a2_0x40ec05(0x383)]('List\x20available\x20connector\x20types')[a2_0x40ec05(0x260)](async _0x168e34=>{const _0x2f5db8=a2_0x40ec05,_0x4757a8=new ConnectionTypesCommand(),_0x4050b6=program[_0x2f5db8(0x184)](),_0x418b98=await createTDXInstance(_0x4050b6),_0x5d1639=await _0x4757a8['run']({'options':{..._0x4050b6,..._0x168e34},'args':[],'tdx':_0x418b98});gracefulExit(_0x5d1639);}),connectionCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x26b))[a2_0x40ec05(0x383)](a2_0x40ec05(0x19f))[a2_0x40ec05(0x260)](async(_0x27e922,_0x1acf3a)=>{const _0xde1a62=a2_0x40ec05,_0x57fd2d=new ConnectionSettingsCommand(),_0x1bfacf=program['opts'](),_0x32fd63=await createTDXInstance(_0x1bfacf),_0x209919=await _0x57fd2d[_0xde1a62(0x222)]({'options':{..._0x1bfacf,..._0x1acf3a},'args':[_0x27e922],'tdx':_0x32fd63});gracefulExit(_0x209919);});const casCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x371))['description'](a2_0x40ec05(0x2cd));casCmd['command']('list')['description'](a2_0x40ec05(0x162))[a2_0x40ec05(0x260)](async _0x2ef563=>{const _0x174a3d=a2_0x40ec05,_0x134ef5=new CASListCommand(),_0x266cfb=program[_0x174a3d(0x184)](),_0x244504=await createTDXInstance(_0x266cfb),_0x57b1dd=await _0x134ef5['run']({'options':{..._0x266cfb,..._0x2ef563},'args':[],'tdx':_0x244504});gracefulExit(_0x57b1dd);}),casCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x155))[a2_0x40ec05(0x383)](a2_0x40ec05(0xd4))[a2_0x40ec05(0x260)](async(_0x510fca,_0x3ceeb4)=>{const _0x313929=a2_0x40ec05,_0x13d553=new CASDescCommand(),_0x42c53e=program[_0x313929(0x184)](),_0x31248f=await createTDXInstance(_0x42c53e),_0x116807=await _0x13d553[_0x313929(0x222)]({'options':{..._0x42c53e,..._0x3ceeb4},'args':_0x510fca?[_0x510fca]:[],'tdx':_0x31248f});gracefulExit(_0x116807);}),casCmd[a2_0x40ec05(0x1d7)]('pull\x20[name]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x276))[a2_0x40ec05(0x295)]('--dir\x20<dir>',a2_0x40ec05(0x3b0))[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),a2_0x40ec05(0xf2))[a2_0x40ec05(0x260)](async(_0x485fdd,_0x106db9)=>{const _0x313956=a2_0x40ec05,_0x162214=new CASPullCommand(),_0x52c946=program[_0x313956(0x184)](),_0x4a09ca=await createTDXInstance(_0x52c946),_0xfea66d=await _0x162214[_0x313956(0x222)]({'options':{..._0x52c946,..._0x106db9},'args':_0x485fdd?[_0x485fdd]:[],'tdx':_0x4a09ca});gracefulExit(_0xfea66d);}),casCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x279))[a2_0x40ec05(0x383)](a2_0x40ec05(0x221))[a2_0x40ec05(0x295)]('--dry-run',a2_0x40ec05(0x374))[a2_0x40ec05(0x260)](async(_0x472409,_0xcbb41)=>{const _0x3d262c=a2_0x40ec05,_0x2a3efd=new CASPushCommand(),_0x2a2a92=program[_0x3d262c(0x184)](),_0x4a535a=await createTDXInstance(_0x2a2a92),_0x927ce2=await _0x2a3efd['run']({'options':{..._0x2a2a92,..._0xcbb41},'args':_0x472409?[_0x472409]:[],'tdx':_0x4a535a});gracefulExit(_0x927ce2);}),casCmd[a2_0x40ec05(0x1d7)]('preview\x20<segment_name>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x167))[a2_0x40ec05(0x295)](a2_0x40ec05(0x191),'Composable\x20audience\x20name')[a2_0x40ec05(0x260)](async(_0x10111f,_0x5620ac)=>{const _0x52e333=a2_0x40ec05,_0x5ad82b=new CASPreviewCommand(),_0x387fb2=program[_0x52e333(0x184)](),_0x50f280=await createTDXInstance(_0x387fb2),_0xfc0a66=await _0x5ad82b[_0x52e333(0x222)]({'options':{..._0x387fb2,..._0x5620ac},'args':[_0x10111f,_0x5620ac[_0x52e333(0x23f)]],'tdx':_0x50f280});gracefulExit(_0xfc0a66);});const casSgCmd=casCmd[a2_0x40ec05(0x1d7)]('sg')[a2_0x40ec05(0x383)]('Composable\x20segment\x20commands');casSgCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x341))['description'](a2_0x40ec05(0x196))[a2_0x40ec05(0x260)](async(_0x26f07e,_0x36ad07)=>{const _0x77907b=a2_0x40ec05,_0x391461=new CASSegmentListCommand(),_0x4339b2=program[_0x77907b(0x184)](),_0x1a4f28=await createTDXInstance(_0x4339b2),_0x435c5c=await _0x391461['run']({'options':{..._0x4339b2,..._0x36ad07},'args':_0x26f07e?[_0x26f07e]:[],'tdx':_0x1a4f28});gracefulExit(_0x435c5c);});const journeyCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xb7))[a2_0x40ec05(0x383)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x5223f8,_0x4fe8ca)=>{const _0x526e1b=a2_0x40ec05,_0x7b599d=new JourneyListCommand(),_0x405921=program[_0x526e1b(0x184)](),_0x3ee778=await createTDXInstance(_0x405921),_0xa827cd=await _0x7b599d[_0x526e1b(0x222)]({'options':{..._0x405921,..._0x4fe8ca},'args':_0x5223f8?[_0x5223f8]:[],'tdx':_0x3ee778});gracefulExit(_0xa827cd);};journeyCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x202))[a2_0x40ec05(0x383)]('List\x20journeys\x20in\x20current\x20context')[a2_0x40ec05(0x260)](journeyListAction),journeyCmd[a2_0x40ec05(0x1d7)]('view\x20<name-or-path>')['description']('Show\x20journey\x20details')[a2_0x40ec05(0x295)](a2_0x40ec05(0x2d4),a2_0x40ec05(0x105))[a2_0x40ec05(0x295)](a2_0x40ec05(0x18f),a2_0x40ec05(0x254))[a2_0x40ec05(0x260)](async(_0x29e462,_0x37d5b1)=>{const _0x29637d=a2_0x40ec05,_0x15c998=new JourneyViewCommand(),_0x15c11a=program[_0x29637d(0x184)](),_0x333a75=await createTDXInstance(_0x15c11a),_0x5982ae=await _0x15c998[_0x29637d(0x222)]({'options':{..._0x15c11a,..._0x37d5b1},'args':[_0x29e462],'tdx':_0x333a75});gracefulExit(_0x5982ae);}),journeyCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x35f))['description'](a2_0x40ec05(0x133))[a2_0x40ec05(0x295)]('--stage\x20<name>','Show\x20stats\x20for\x20specific\x20stage')[a2_0x40ec05(0x295)](a2_0x40ec05(0x1ef),a2_0x40ec05(0x34b))[a2_0x40ec05(0x295)]('--to\x20<date>','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x40ec05(0x295)]('--include-history',a2_0x40ec05(0x17f))[a2_0x40ec05(0x260)](async(_0x357c3d,_0x2437ba)=>{const _0x16c417=a2_0x40ec05,_0x1052cb=new JourneyStatsCommand(),_0x393f82=program[_0x16c417(0x184)](),_0xe68ceb=await createTDXInstance(_0x393f82),_0x38050e=await _0x1052cb[_0x16c417(0x222)]({'options':{..._0x393f82,..._0x2437ba},'args':[_0x357c3d],'tdx':_0xe68ceb});gracefulExit(_0x38050e);}),journeyCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x30d))['description'](a2_0x40ec05(0x2e6))[a2_0x40ec05(0x295)](a2_0x40ec05(0x9e),a2_0x40ec05(0x249))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1ef),a2_0x40ec05(0x34b))[a2_0x40ec05(0x295)]('--to\x20<date>','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x354),'Maximum\x20number\x20of\x20nodes',_0x4874e2=>{const _0x3a408e=a2_0x40ec05,_0x35ff35=parseInt(_0x4874e2,0xa);if(isNaN(_0x35ff35))throw new Error(_0x3a408e(0x296)+_0x4874e2+_0x3a408e(0x22d));return _0x35ff35;})[a2_0x40ec05(0x260)](async(_0x3d889f,_0x2c4985)=>{const _0x1a1078=a2_0x40ec05,_0x33cc28=new JourneyTrafficCommand(),_0x2ae3aa=program['opts'](),_0x18fd86=await createTDXInstance(_0x2ae3aa),_0x2d3de5=await _0x33cc28[_0x1a1078(0x222)]({'options':{..._0x2ae3aa,..._0x2c4985},'args':[_0x3d889f],'tdx':_0x18fd86});gracefulExit(_0x2d3de5);}),journeyCmd[a2_0x40ec05(0x1d7)]('pause\x20<name-or-path>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x239))[a2_0x40ec05(0x260)](async(_0x2ec832,_0x238d14)=>{const _0x4a8fc6=a2_0x40ec05,_0x55d941=new JourneyPauseCommand(),_0x1e8a71=program['opts'](),_0x52f16c=await createTDXInstance(_0x1e8a71),_0x50a1f6=await _0x55d941[_0x4a8fc6(0x222)]({'options':{..._0x1e8a71,..._0x238d14},'args':[_0x2ec832],'tdx':_0x52f16c});gracefulExit(_0x50a1f6);}),journeyCmd[a2_0x40ec05(0x1d7)]('resume\x20<name-or-path>')[a2_0x40ec05(0x383)](a2_0x40ec05(0x21d))['action'](async(_0x1ca836,_0xee4bf9)=>{const _0x3ea6bb=new JourneyResumeCommand(),_0x4f3729=program['opts'](),_0x3ac087=await createTDXInstance(_0x4f3729),_0x34662c=await _0x3ea6bb['run']({'options':{..._0x4f3729,..._0xee4bf9},'args':[_0x1ca836],'tdx':_0x3ac087});gracefulExit(_0x34662c);}),journeyCmd[a2_0x40ec05(0x1d7)]('pull\x20[name]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x376))[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),a2_0x40ec05(0xf2))[a2_0x40ec05(0x260)](async(_0x107e21,_0x3547c5)=>{const _0x3df6f0=a2_0x40ec05,_0x4063c9=new JourneyPullCommand(),_0x5a3a15=program[_0x3df6f0(0x184)](),_0x2a4c2f=await createTDXInstance(_0x5a3a15),_0x2a3a05=await _0x4063c9[_0x3df6f0(0x222)]({'options':{..._0x5a3a15,..._0x3547c5},'args':_0x107e21?[_0x107e21]:[],'tdx':_0x2a4c2f});gracefulExit(_0x2a3a05);}),journeyCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x279))[a2_0x40ec05(0x383)](a2_0x40ec05(0x227))[a2_0x40ec05(0x260)](async(_0x5c8e7f,_0x2e916e)=>{const _0x5db15f=a2_0x40ec05,_0x27c723=new JourneyPushCommand(),_0x18ada6=program['opts'](),_0x2bad8f=await createTDXInstance(_0x18ada6),_0xf3ccf6=await _0x27c723[_0x5db15f(0x222)]({'options':{..._0x18ada6,..._0x2e916e},'args':_0x5c8e7f?[_0x5c8e7f]:[],'tdx':_0x2bad8f});gracefulExit(_0xf3ccf6);}),journeyCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xfb))[a2_0x40ec05(0x383)](a2_0x40ec05(0x11d))[a2_0x40ec05(0x260)](async(_0x59c85b,_0x211edc)=>{const _0x2b4efc=a2_0x40ec05,_0x294c5e=new JourneyColumnsCommand(),_0x55a4e0=program[_0x2b4efc(0x184)](),_0x3c3452=await createTDXInstance(_0x55a4e0),_0x36873a=await _0x294c5e[_0x2b4efc(0x222)]({'options':{..._0x55a4e0,..._0x211edc},'args':[_0x59c85b],'tdx':_0x3c3452});gracefulExit(_0x36873a);}),journeyCmd['command'](a2_0x40ec05(0x357))[a2_0x40ec05(0x383)](a2_0x40ec05(0x106))[a2_0x40ec05(0x260)](async(_0x2f9c28,_0x47169e)=>{const _0x29bf47=a2_0x40ec05,_0x1e11a1=new JourneyActivationsCommand(),_0x2a4463=program['opts'](),_0x27c53c=await createTDXInstance(_0x2a4463),_0x45aa46=await _0x1e11a1[_0x29bf47(0x222)]({'options':{..._0x2a4463,..._0x47169e},'args':[_0x2f9c28],'tdx':_0x27c53c});gracefulExit(_0x45aa46);}),journeyCmd['command'](a2_0x40ec05(0x251))['description']('List\x20all\x20versions\x20of\x20a\x20journey')[a2_0x40ec05(0x260)](async(_0x5cb786,_0x25151e)=>{const _0x546596=a2_0x40ec05,_0xc8cefe=new JourneyVersionsCommand(),_0x3b5e8f=program[_0x546596(0x184)](),_0x4533e0=await createTDXInstance(_0x3b5e8f),_0x41aabd=await _0xc8cefe[_0x546596(0x222)]({'options':{..._0x3b5e8f,..._0x25151e},'args':[_0x5cb786],'tdx':_0x4533e0});gracefulExit(_0x41aabd);});const journeyVersionCmd=journeyCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2e4))[a2_0x40ec05(0x383)](a2_0x40ec05(0x15c));journeyVersionCmd['command'](a2_0x40ec05(0x22e))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2b5))[a2_0x40ec05(0x260)](async(_0xc963a5,_0x3df851)=>{const _0x34540c=a2_0x40ec05,_0x29e95c=new JourneyVersionCreateCommand(),_0x2952ea=program[_0x34540c(0x184)](),_0x518150=await createTDXInstance(_0x2952ea),_0x2e25fe=await _0x29e95c[_0x34540c(0x222)]({'options':{..._0x2952ea,..._0x3df851},'args':[_0xc963a5],'tdx':_0x518150});gracefulExit(_0x2e25fe);}),journeyVersionCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x135))['description'](a2_0x40ec05(0x1f8))[a2_0x40ec05(0x1ae)](a2_0x40ec05(0x94),a2_0x40ec05(0x30c))['action'](async(_0x46aeae,_0x2c60a9)=>{const _0x5c878c=a2_0x40ec05,_0x534344=new JourneyVersionViewCommand(),_0x22b397=program[_0x5c878c(0x184)](),_0x43d34f=await createTDXInstance(_0x22b397),_0x5b3e8f=await _0x534344[_0x5c878c(0x222)]({'options':{..._0x22b397,..._0x2c60a9},'args':[_0x46aeae],'tdx':_0x43d34f});gracefulExit(_0x5b3e8f);}),journeyCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x287))[a2_0x40ec05(0x383)]('Validate\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x2976b1,_0x2ed1a2)=>{const _0x407673=a2_0x40ec05,_0x1b9c19=new JourneyValidateCommand(),_0x5d450e=program[_0x407673(0x184)](),_0x109ff5=await createTDXInstance(_0x5d450e),_0x350b1b=await _0x1b9c19[_0x407673(0x222)]({'options':{..._0x5d450e,..._0x2ed1a2},'args':_0x2976b1?[_0x2976b1]:[],'tdx':_0x109ff5});gracefulExit(_0x350b1b);}),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x220))['description'](a2_0x40ec05(0xe8))[a2_0x40ec05(0x260)](journeyListAction);const agentSyncCmd=program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x30b))[a2_0x40ec05(0x383)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x40ec05(0x1d7)]('pull\x20[project]\x20[agent-name]')[a2_0x40ec05(0x383)](a2_0x40ec05(0x24a))[a2_0x40ec05(0x295)](a2_0x40ec05(0x30a),a2_0x40ec05(0x1fc))['option'](a2_0x40ec05(0x14b),'Overwrite\x20local\x20changes\x20without\x20confirmation')[a2_0x40ec05(0x295)](a2_0x40ec05(0x2ae),a2_0x40ec05(0x3aa))[a2_0x40ec05(0x260)](async(_0x380365,_0x49cbbf,_0x30c92b)=>{const _0x56f8ce=a2_0x40ec05,_0x8d9eaf=new AgentPullCommand(),_0x5da613=program[_0x56f8ce(0x184)](),_0x42de1f=await createTDXInstance(_0x5da613),_0x25ca85=[];if(_0x380365)_0x25ca85['push'](_0x380365);if(_0x49cbbf)_0x25ca85['push'](_0x49cbbf);const _0x23c606=await _0x8d9eaf['run']({'options':{..._0x5da613,..._0x30c92b},'args':_0x25ca85,'tdx':_0x42de1f});gracefulExit(_0x23c606);}),agentSyncCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x174))[a2_0x40ec05(0x383)](a2_0x40ec05(0xa5))[a2_0x40ec05(0x295)](a2_0x40ec05(0x14b),a2_0x40ec05(0xdc))[a2_0x40ec05(0x260)](async(_0x451cf2,_0x50f044)=>{const _0x416be1=a2_0x40ec05,_0x563ed3=new AgentPushCommand(),_0x55fb43=program['opts'](),_0x4cf50a=await createTDXInstance(_0x55fb43),_0x363314=await _0x563ed3[_0x416be1(0x222)]({'options':{..._0x55fb43,..._0x50f044},'args':_0x451cf2?[_0x451cf2]:[],'tdx':_0x4cf50a});gracefulExit(_0x363314);}),agentSyncCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2f7))[a2_0x40ec05(0x383)](a2_0x40ec05(0xae))[a2_0x40ec05(0x295)]('-n,\x20--name\x20<name>',a2_0x40ec05(0xe5))['action'](async(_0x53676c,_0x3b6225)=>{const _0x1457b7=a2_0x40ec05,_0x59de56=new AgentCloneCommand(),_0x380965=program[_0x1457b7(0x184)](),_0x5e65d8=await createTDXInstance(_0x380965),_0x500110=await _0x59de56[_0x1457b7(0x222)]({'options':{..._0x380965,..._0x3b6225},'args':_0x53676c?[_0x53676c]:[],'tdx':_0x5e65d8});gracefulExit(_0x500110);}),agentSyncCmd[a2_0x40ec05(0x1d7)]('test\x20[path]')[a2_0x40ec05(0x383)]('Run\x20tests\x20for\x20an\x20LLM\x20agent')['option']('--name\x20<names>',a2_0x40ec05(0x253))[a2_0x40ec05(0x295)]('--tags\x20<tags>','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)')[a2_0x40ec05(0x295)](a2_0x40ec05(0x389),a2_0x40ec05(0x214))['option']('--no-eval',a2_0x40ec05(0x1b1))[a2_0x40ec05(0x295)](a2_0x40ec05(0x146),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')[a2_0x40ec05(0x260)](async(_0x23ec48,_0x34c788)=>{const _0x419a72=a2_0x40ec05,_0x219805=new AgentTestCommand(),_0x590c51=program['opts'](),_0x4bef9a=await createTDXInstance(_0x590c51),_0xdf52a=await _0x219805[_0x419a72(0x222)]({'options':{..._0x590c51,..._0x34c788},'args':_0x23ec48?[_0x23ec48]:[],'tdx':_0x4bef9a});gracefulExit(_0xdf52a);}),agentSyncCmd['command'](a2_0x40ec05(0x202))['description'](a2_0x40ec05(0x2d6))[a2_0x40ec05(0x260)](llmAgentListAction),agentSyncCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x103))[a2_0x40ec05(0x383)](a2_0x40ec05(0x210))['action'](async(_0x21b7c5,_0xbbbe4f)=>{const _0x9024bd=a2_0x40ec05,_0x5f5207=new LLMAgentShowCommand(),_0x30fe68=program[_0x9024bd(0x184)](),_0xd1af97=await createTDXInstance(_0x30fe68),_0x484cf8=await _0x5f5207[_0x9024bd(0x222)]({'options':{..._0x30fe68,..._0xbbbe4f},'args':[_0x21b7c5],'tdx':_0xd1af97});gracefulExit(_0x484cf8);}),agentSyncCmd[a2_0x40ec05(0x1d7)]('create\x20<name>')[a2_0x40ec05(0x383)](a2_0x40ec05(0xcb))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1ea),a2_0x40ec05(0x113))[a2_0x40ec05(0x295)](a2_0x40ec05(0x385),a2_0x40ec05(0xb6),'claude-4.5-sonnet')[a2_0x40ec05(0x295)](a2_0x40ec05(0x9c),a2_0x40ec05(0x16f))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2f3),a2_0x40ec05(0x31f),'4')[a2_0x40ec05(0x295)](a2_0x40ec05(0x348),'Temperature\x20(0.0-2.0,\x20default:\x200.7)','0.7')[a2_0x40ec05(0x260)](async(_0x4bc761,_0x33bd4a)=>{const _0xaedadb=a2_0x40ec05,_0x387f5f=new LLMAgentCreateCommand(),_0x1d3312=program[_0xaedadb(0x184)](),_0x213286=await createTDXInstance(_0x1d3312),_0x3465b5=await _0x387f5f['run']({'options':{..._0x1d3312,..._0x33bd4a},'args':[_0x4bc761],'tdx':_0x213286});gracefulExit(_0x3465b5);}),agentSyncCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x10d))['description']('Update\x20an\x20existing\x20agent')[a2_0x40ec05(0x295)]('--name\x20<text>',a2_0x40ec05(0x164))['option'](a2_0x40ec05(0x3b1),'Agent\x20prompt/instructions')[a2_0x40ec05(0x295)](a2_0x40ec05(0x1fe),a2_0x40ec05(0x3a7))['option'](a2_0x40ec05(0x9c),a2_0x40ec05(0x16f))[a2_0x40ec05(0x260)](async(_0x4bf621,_0x51e73f)=>{const _0x4d394f=a2_0x40ec05,_0x5dbbf0=new LLMAgentUpdateCommand(),_0x37222d=program[_0x4d394f(0x184)](),_0x301432=await createTDXInstance(_0x37222d),_0x586453=await _0x5dbbf0[_0x4d394f(0x222)]({'options':{..._0x37222d,..._0x51e73f},'args':[_0x4bf621],'tdx':_0x301432});gracefulExit(_0x586453);}),agentSyncCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x178))[a2_0x40ec05(0x383)]('Delete\x20an\x20agent')[a2_0x40ec05(0x260)](async(_0x2a1710,_0x5d2fbd)=>{const _0x29547c=a2_0x40ec05,_0x1b5901=new LLMAgentDeleteCommand(),_0x78be3e=program[_0x29547c(0x184)](),_0x47f9eb=await createTDXInstance(_0x78be3e),_0x12058e=await _0x1b5901['run']({'options':{..._0x78be3e,..._0x5d2fbd},'args':[_0x2a1710],'tdx':_0x47f9eb});gracefulExit(_0x12058e);});const workCmd=program[a2_0x40ec05(0x1d7)]('work')['description'](a2_0x40ec05(0x394));workCmd[a2_0x40ec05(0x295)]('--days\x20<n>',a2_0x40ec05(0x136))[a2_0x40ec05(0x295)](a2_0x40ec05(0x21e),a2_0x40ec05(0x3a1))[a2_0x40ec05(0x260)](workSummaryAction),workCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xd5))[a2_0x40ec05(0x383)]('Initialize\x20a\x20new\x20workspace')[a2_0x40ec05(0x295)](a2_0x40ec05(0x325),'Link\x20workspace\x20to\x20a\x20GitHub\x20repository')[a2_0x40ec05(0x260)](workInitAction),workCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x2e8))[a2_0x40ec05(0x383)](a2_0x40ec05(0x2a6))[a2_0x40ec05(0x295)](a2_0x40ec05(0xed),'Document\x20kind\x20(item,\x20goal,\x20guide,\x20note,\x20reference)',a2_0x40ec05(0x18e))[a2_0x40ec05(0x295)]('--tags\x20<tags>',a2_0x40ec05(0x21c))[a2_0x40ec05(0x295)]('--priority\x20<priority>',a2_0x40ec05(0x2e7))['option'](a2_0x40ec05(0x235),a2_0x40ec05(0x1c2))[a2_0x40ec05(0x295)](a2_0x40ec05(0x1f2),'Apply\x20a\x20template')[a2_0x40ec05(0x295)](a2_0x40ec05(0x386),a2_0x40ec05(0x278))[a2_0x40ec05(0x295)](a2_0x40ec05(0x2c4),a2_0x40ec05(0x1d9))[a2_0x40ec05(0x260)](workNewAction),workCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0xd9))[a2_0x40ec05(0x383)](a2_0x40ec05(0x134))[a2_0x40ec05(0x260)](workMoveAction),workCmd[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x151))['description'](a2_0x40ec05(0x1be))['option'](a2_0x40ec05(0x356),'Show\x20items\x20updated\x20within\x20N\x20days')[a2_0x40ec05(0x295)](a2_0x40ec05(0x21e),a2_0x40ec05(0x3a1))['action'](workBoardAction),workCmd[a2_0x40ec05(0x1d7)]('show\x20<name>')['description'](a2_0x40ec05(0xd1))[a2_0x40ec05(0x260)](workShowAction),workCmd['command'](a2_0x40ec05(0x1eb))[a2_0x40ec05(0x383)]('Show\x20wiki-links\x20and\x20backlinks\x20for\x20a\x20document')[a2_0x40ec05(0x260)](workLinksAction),workCmd['command']('open\x20<name>')[a2_0x40ec05(0x383)](a2_0x40ec05(0xc8))[a2_0x40ec05(0x260)](workOpenAction),program[a2_0x40ec05(0x1d7)](a2_0x40ec05(0x165),{'hidden':!![]})[a2_0x40ec05(0x260)](()=>{const _0x3fd181=a2_0x40ec05;function _0x3314d1(_0x5e8328,_0x4cf343){const _0x5b9f70=a2_0x2945,_0x234f39=[];for(const _0x5bfbae of _0x5e8328[_0x5b9f70(0x2b2)]){if(_0x5bfbae['_hidden'])continue;const _0x31d706=_0x4cf343?_0x4cf343+'\x20'+_0x5bfbae[_0x5b9f70(0x116)]():_0x5bfbae[_0x5b9f70(0x116)](),_0x178be2=_0x31d706[_0x5b9f70(0x250)]('\x20')[0x0],_0x136d70=COMMAND_CATEGORIES[_0x5b9f70(0x19d)](_0x1911a6=>_0x1911a6[_0x5b9f70(0x2b2)][_0x5b9f70(0x130)](_0x178be2)),_0x2db023=_0x136d70?.[_0x5b9f70(0x116)]??'';if(_0x5bfbae[_0x5b9f70(0x2b2)][_0x5b9f70(0x168)]>0x0)_0x234f39['push'](..._0x3314d1(_0x5bfbae,_0x31d706));else{const _0xbf9d4c=(_0x5bfbae[_0x5b9f70(0xe0)]||[])[_0x5b9f70(0x141)](_0xd84ee1=>{const _0x2509c6=_0x5b9f70,_0x2a9619=_0xd84ee1[_0x2509c6(0xad)]?_0xd84ee1[_0x2509c6(0x116)]()+_0x2509c6(0x107):_0xd84ee1[_0x2509c6(0x116)]();return _0xd84ee1[_0x2509c6(0x1a1)]?'<'+_0x2a9619+'>':'['+_0x2a9619+']';})[_0x5b9f70(0x3af)]('\x20'),_0x1d35dc=_0x5bfbae[_0x5b9f70(0xd2)][_0x5b9f70(0x2ad)](_0x4c1557=>!_0x4c1557[_0x5b9f70(0x232)]&&_0x4c1557[_0x5b9f70(0x12f)]!==_0x5b9f70(0x2d5))['map'](_0x5d0e3b=>({'flags':_0x5d0e3b['flags'],'description':_0x5d0e3b[_0x5b9f70(0x383)]}));_0x234f39[_0x5b9f70(0xda)]({'name':_0x31d706,'description':_0x5bfbae[_0x5b9f70(0x383)](),'group':_0x2db023,'usage':_0xbf9d4c,'options':_0x1d35dc});}}return _0x234f39;}console['log'](JSON[_0x3fd181(0x1d2)](_0x3314d1(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x2365a7=a2_0x40ec05,_0x79336f=!process[_0x2365a7(0x1b4)][_0x2365a7(0x347)](0x2)[_0x2365a7(0x168)];showBriefHelp=_0x79336f,program[_0x2365a7(0x14d)](process[_0x2365a7(0x1b4)]);_0x79336f&&program[_0x2365a7(0x142)]();const _0x1aafdc=process[_0x2365a7(0x1b4)][0x2]===_0x2365a7(0x378);if(process[_0x2365a7(0x203)][_0x2365a7(0xbd)]&&process[_0x2365a7(0x1b4)][_0x2365a7(0x168)]>0x2&&!isDevVersion()&&!_0x1aafdc){const _0x1c7d66=loadReleaseChannel();checkForUpdate(currentVersion,_0x1c7d66)['then'](_0x320b55=>{_0x320b55&&displayUpdateNotification(_0x320b55);})[_0x2365a7(0x1ab)](()=>{});}}
|