@treasuredata/tdx 0.16.4 → 0.16.6
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.d.ts.map +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-command.js.map +1 -1
- package/dist/commands/agent-test-command.d.ts +4 -0
- package/dist/commands/agent-test-command.d.ts.map +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/agent-test-command.js.map +1 -1
- package/dist/commands/api-command.js +1 -1
- 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/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.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/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.d.ts +7 -5
- 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.d.ts.map +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/connection-cache.js.map +1 -1
- package/dist/core/constants.d.ts +22 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/constants.js.map +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.d.ts.map +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/keychain.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.d.ts.map +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/user-cache.js.map +1 -1
- package/dist/core/version.d.ts +2 -2
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/claude-usage-tracker.js.map +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.d.ts +2 -0
- package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/agent-yaml.js.map +1 -1
- package/dist/sdk/agent/test/evaluator.d.ts +3 -6
- package/dist/sdk/agent/test/evaluator.d.ts.map +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/evaluator.js.map +1 -1
- package/dist/sdk/agent/test/executor.d.ts +57 -1
- package/dist/sdk/agent/test/executor.d.ts.map +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/executor.js.map +1 -1
- package/dist/sdk/agent/test/index.d.ts +2 -2
- package/dist/sdk/agent/test/index.d.ts.map +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/index.js.map +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.d.ts.map +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/test/parser.js.map +1 -1
- package/dist/sdk/agent/test/types.d.ts +44 -0
- package/dist/sdk/agent/test/types.d.ts.map +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/claude-agent/claude-agent-client.d.ts +13 -0
- package/dist/sdk/claude-agent/claude-agent-client.d.ts.map +1 -1
- package/dist/sdk/claude-agent/claude-agent-client.js +1 -1
- package/dist/sdk/claude-agent/claude-agent-client.js.map +1 -1
- package/dist/sdk/claude-agent/environment.js +1 -1
- package/dist/sdk/claude-agent/index.js +1 -1
- package/dist/sdk/claude-agent/system-prompts.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/endpoints.js.map +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.d.ts +6 -0
- package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js.map +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.d.ts.map +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/chat-cache.js.map +1 -1
- package/dist/sdk/llm/index.d.ts +11 -3
- package/dist/sdk/llm/index.d.ts.map +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/index.js.map +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-aliases.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/llm.d.ts +39 -0
- package/dist/sdk/types/llm.d.ts.map +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/global-cache.d.ts +88 -0
- package/dist/utils/global-cache.d.ts.map +1 -0
- package/dist/utils/global-cache.js +1 -0
- package/dist/utils/global-cache.js.map +1 -0
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.d.ts +48 -0
- package/dist/utils/local-cache.d.ts.map +1 -0
- package/dist/utils/local-cache.js +1 -0
- package/dist/utils/local-cache.js.map +1 -0
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.d.ts +10 -0
- package/dist/utils/process.d.ts.map +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/process.js.map +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/tdx-logger.js.map +1 -1
- package/dist/utils/version-check.d.ts.map +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/version-check.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x3df4f4=a2_0x54ca;(function(_0x2d81ac,_0x24ae92){const _0x50bc79=a2_0x54ca,_0x59836d=_0x2d81ac();while(!![]){try{const _0x449c31=-parseInt(_0x50bc79(0x2af))/0x1+parseInt(_0x50bc79(0x2fe))/0x2+parseInt(_0x50bc79(0x1f7))/0x3+-parseInt(_0x50bc79(0x29e))/0x4*(parseInt(_0x50bc79(0x232))/0x5)+-parseInt(_0x50bc79(0x228))/0x6+-parseInt(_0x50bc79(0x2b1))/0x7*(parseInt(_0x50bc79(0x29a))/0x8)+parseInt(_0x50bc79(0x362))/0x9;if(_0x449c31===_0x24ae92)break;else _0x59836d['push'](_0x59836d['shift']());}catch(_0x5a6a6a){_0x59836d['push'](_0x59836d['shift']());}}}(a2_0xb2fd,0x47cef));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';function a2_0xb2fd(){const _0x3f361b=['jobs','pull\x20[project]\x20[agent-name]','Limit\x20number\x20of\x20rows','Action:\x20logs,\x20tasks,\x20kill,\x20retry','--reason\x20<text>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Delete\x20an\x20email\x20template','database','Updated\x20schedule\x20option','required','Arguments:','--no-eval','stderr','format','Clear\x20workflow\x20project\x20context','--session-time\x20<time>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Show\x20master\x20table\x20sample\x20data','push\x20[target]','action','Export\x20journey(s)\x20as\x20YAML\x20files','--prompt\x20<text>','--master','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--customer-group-file\x20<file>','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--trace','--revision\x20<revision>','logLevel','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','638582aQtdpg','--rule\x20<json>','create\x20<segment_name>','use\x20<project-name>','\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','tsv','Preview\x20changes\x20without\x20writing\x20files','Unknown\x20action:\x20','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','use\x20<path>','Show\x20journey\x20details','-p,\x20--profile\x20<name>','Create\x20a\x20new\x20LLM\x20project','--name\x20<names>','New\x20segment\x20name','--tsv','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','use\x20<name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--name\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Updated\x20description','attempts\x20[project]','Delete\x20a\x20workspace','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','retry\x20<session-id>','parse','project','help','logs','--plaintext\x20<text>','user','--description\x20<text>','Pull\x20workflow\x20project\x20to\x20local\x20folder','registeredArguments','result\x20<job-id>','opts','Reason\x20for\x20killing\x20the\x20attempt','connection','--behavior\x20[name]','injectIntoOptions','allowUnknownOption','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','-c,\x20--continue','Output\x20directory','Workflow\x20parameter\x20(repeatable)','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','argumentTerm','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Template\x20name','schema\x20<type>','Show\x20campaign\x20details','Output\x20as\x20JSON','--html\x20<html>','Launch\x20a\x20campaign','desc\x20[segment_name]','get','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--attribute\x20[name]','Preview\x20without\x20creating\x20the\x20project','create\x20<name>','kill\x20<job-id>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','usage','Overwrite\x20local\x20changes\x20without\x20confirmation','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','profile','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--behaviors\x20<json>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--attributes\x20<json>','join','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Setup\x20API\x20key\x20authentication\x20interactively','--include-retried','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','setup','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--default','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Validate\x20journey\x20YAML\x20files\x20locally','--table','--full','configureHelp','-y,\x20--yes','description','Make\x20segment\x20invisible\x20(default:\x20visible)','pull\x20[parent_or_file]','createAsync','Filtering\x20rule\x20as\x20JSON\x20string','delete\x20<project-name-or-id>','Table\x20management\x20commands','llm','--jsonl','Set\x20a\x20profile\x20configuration\x20value','Skip\x20validation\x20of\x20.dig\x20files','7244406vAoTVV','padWidth','table','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','--port\x20<number>','Folder\x20name\x20for\x20organization','hook','Parent\x20segment\x20description','LLM\x20project\x20management','Revision\x20name\x20(default:\x20timestamp)','Include\x20retried\x20attempts\x20(for\x20list)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','validate\x20[name]','push','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','name','\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','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Set\x20operation\x20timeout\x20in\x20seconds','Read\x20SQL\x20query\x20from\x20file','Custom\x20revision\x20name\x20(default:\x20timestamp)','delete\x20<name-or-id>','--llm-proxy\x20[url]','log','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','flatMap','validate\x20[file]','Attempt\x20ID','jsonl','Skip\x20population\x20counting','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','statusline','stdout','-X,\x20--method\x20<method>','_hidden','Commands:','--timezone\x20<tz>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--temperature\x20<n>','--no-color','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','4000','Include\x20retried\x20attempts','Workflow\x20attempt\x20management','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','parent','Output\x20folder\x20(default:\x20{project_name}.llm)','--debug','Show\x20the\x20most\x20recent\x20chat','filter','describe\x20[table]','argument','optionTerm','colorFn','--job-type\x20<type>','template','set','Job\x20management\x20commands','tdx','New\x20template\x20name','Remove\x20a\x20profile','restore\x20<folder>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','commands','users','addHelpText','[DEPRECATED]\x20Segment\x20folder\x20management','--database\x20<db>','auth','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','0.7','run\x20[name]','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','backup\x20<name>',',\x20version\x20','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Pull\x20child\x20segments\x20to\x20YAML\x20files','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--clear','Database\x20management\x20commands','Maximum\x20tool\x20iterations\x20(default:\x204)','--add-behaviors-file\x20<file>','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','GET','Run\x20tests\x20for\x20an\x20LLM\x20agent','slice','Execute\x20tests\x20without\x20evaluation\x20(Phase\x202\x20only)','Workspace\x20name','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','--llm-project\x20<name>','requiredOption','replace','--in\x20<database>','Submit\x20a\x20job','Show\x20workspace\x20details','download\x20<project-name>\x20[output-dir]','remove\x20<name>','-w,\x20--web','--yes','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','session','--site\x20<site>','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Include\x20execution\x20statistics','--status\x20<status>','Follow/watch\x20timeline\x20for\x20running\x20attempts','port','--in\x20<name>','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Pause\x20a\x20running\x20journey','Read\x20query\x20from\x20file','--behaviors-file\x20<file>','Options:','--starter-message\x20<text>','Add\x20attributes\x20from\x20JSON\x20file','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','use\x20[project]','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Create\x20segment\x20folder','Open\x20segment\x20in\x20web\x20browser','show\x20<agent-name>','information_schema','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Starter\x20message','-n,\x20--name\x20<name>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','-r,\x20--recursive','\x20-\x20built\x20','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Preview\x20changes\x20without\x20pushing','includes','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--color','Run\x20specific\x20tests\x20(comma-separated)','update\x20<agent-name>','--json-columns\x20<cols>','unset\x20<resource>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','directory','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','timeline\x20[project.workflow]','view\x20<name-or-path>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','journeys\x20[pattern]','--enriched','--format\x20<format>','DEBUG','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Trino\x20catalog\x20(default:\x20td)','--add-attributes-file\x20<file>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Delete\x20an\x20LLM\x20project','Data\x20connection\x20management\x20(for\x20activations/exports)','--schedule-option\x20<value>','--param\x20<key=value>','validate\x20[target]','preview\x20[name]','--folder\x20<name>','show\x20[segment_name]','--parent-folder\x20<name>','workspace','List\x20available\x20LLM\x20models','-v,\x20--verbose','Show\x20timeline\x20for\x20specific\x20attempt','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','show\x20<name-or-id>','preAction','LLM\x20agent\x20management','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Attributes\x20as\x20JSON\x20string','optionDescription','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','journey','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','HTML\x20template\x20content','--customer-group\x20<json>','Create\x20a\x20new\x20profile','--rule-file\x20<file>','--interval\x20<range>','clone\x20[source-dir]','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Campaign\x20type\x20(email\x20or\x20push)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','pause\x20<name-or-path>','--from-task\x20<task>','--include-stats','--output\x20<file>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','--dry-run','parents\x20[pattern]','aliases','info\x20[segment_name]','alias','Behaviors\x20from\x20JSON\x20file','New\x20campaign\x20name','agents\x20[pattern]','models','Skip\x20confirmation\x20prompt','Workflow\x20(Digdag)\x20management\x20commands','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','folders\x20<parent_name>','list\x20[project]','CDP\x20Journey\x20Orchestration\x20commands','subcommandDescription','Database\x20to\x20query\x20(default:\x20information_schema)','run','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','projects\x20[pattern]','repeat','kill','attempt','noColor','-C,\x20--directory\x20<path>','Parent\x20segment\x20management','--include-subtasks','--from\x20<timestamp>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Output\x20as\x20JSON\x20Lines','hidden','isArray','desc','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Resume\x20from\x20specific\x20task\x20(retry)','site','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Editor\x20type','after','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--subject\x20<subject>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Plaintext\x20template\x20content','Interactive\x20chat\x20selector','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--catalog\x20<catalog>','resume\x20<name-or-id>','New\x20workspace\x20name','show\x20[table]','Push\x20without\x20confirmation','chats','connections','1338204LEZPyd','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','CDP\x20segment\x20management\x20commands','Project\x20description','End\x20time\x20filter\x20(ISO\x208601\x20format)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','sql\x20[name]','create','Updated\x20timezone','sessions\x20[project]','isTTY','--version','chat\x20[message...]','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Show\x20only\x20master\x20table\x20validation','Override\x20project\x20name','--limit\x20<rows>','-1d','Email\x20template\x20management','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--description\x20<desc>','use\x20[resource]\x20[value]','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--no-count-population','List\x20all\x20data\x20connections','--schedule-type\x20<type>','delete\x20<name>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','[options]\x20--\x20[claude-code-args...]','workflow','run\x20[workflow]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','activations\x20<segment_name>','--start-at\x20<datetime>','parent_segment','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','attempt:','Output\x20file\x20path','query\x20[sql]','preview\x20[file]','List\x20all\x20users\x20in\x20the\x20account','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','outputHelp','--data\x20<data>','push\x20[source-dir]','--resume-from\x20<task>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--json','3331506YDKLGi','Set\x20or\x20show\x20parent\x20segment\x20context','Workspace\x20description','Agent\x20name','Resume\x20from\x20specific\x20task','--max-depth\x20<depth>','--kind\x20<type>','command','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','sonnet','220TQCdIC','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','commandDescription','-f,\x20--file\x20<path>','--limit\x20<number>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','job','agent','describe','--email-sender-id\x20<id>','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','set\x20<key=value>','map','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','AI-native\x20CLI\x20for\x20Treasure\x20Data','pause\x20<name-or-id>','Create\x20a\x20new\x20campaign','--type\x20<type>','Show\x20job\x20details','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','List\x20all\x20available\x20profiles','pull\x20[name]','exit','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--parent-segment\x20<name>','set\x20<args...>','Workspace\x20name\x20(required)','Agent\x20description','--last','us01','gitRevision','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','workflows\x20[project]','update\x20<segment_name>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','view\x20[segment_name]','Open\x20journey\x20in\x20web\x20browser','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Duplicate\x20a\x20campaign','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--attributes-file\x20<file>','Email\x20subject\x20template','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','INVALID_ARGUMENT','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','claude-4.5-sonnet','push\x20[parent_or_file]','--skip-validation','databases\x20[pattern]','--type\x20<api_type>','--session-id\x20<id>','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','push\x20[name]','use\x20[name]','Show\x20segment\x20schema\x20(column\x20types)','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','System\x20prompt/instructions\x20(default:\x20empty)','Skip\x20confirmation\x20prompts','error','trino','-o,\x20--output\x20<file>','catch','List\x20available\x20connector\x20types','Start\x20a\x20new\x20chat\x20session','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Enable\x20verbose\x20logging','Get\x20job\x20results','Create\x20a\x20new\x20agent\x20in\x20current\x20project','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Authentication\x20management','delete\x20<agent-name>','update\x20<name-or-id>','Delete\x20an\x20agent','--timeout\x20<seconds>','-f,\x20--force','--name\x20<text>','secrets','Name\x20for\x20the\x20new\x20project\x20(required)','--table\x20<table>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--delete','List\x20agents\x20in\x20current\x20project','--to\x20<timestamp>','proxy','--follow','Create\x20a\x20workspace','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','push\x20[path]','upload\x20[project-name-or-dir]','--add-attributes\x20<json>','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Database\x20to\x20use\x20(overrides\x20context)','list\x20[pattern]','commandUsage','Clear\x20session\x20context','option','Create\x20an\x20email\x20template','--name\x20<new-name>','campaigns\x20[pattern]','length','--new','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','16cIJvJC','Campaign\x20name','push\x20[file]','types','16292uHVRnB','list','templates\x20[pattern]','segments\x20[path]','Email\x20sender\x20ID\x20for\x20delivery','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','argv','Customer\x20group\x20as\x20JSON\x20string','Master\x20database\x20name','--stage\x20<name>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Delete\x20a\x20campaign','--force','Segment\x20description','buildTime','chdir','Resume\x20a\x20paused\x20campaign','49509QXJMuY','Save\x20output\x20to\x20file','1722679EZKIBT','clone\x20[source]','delete\x20<args...>','Add\x20behaviors\x20as\x20JSON\x20string','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Pull\x20specific\x20revision\x20(default:\x20latest)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Workspace\x20management','--workspace\x20<name>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','argumentDescription','Continue\x20most\x20recent\x20conversation','forEach','engage','tdx\x20','settings\x20<type>','TRACE','Agent\x20prompt/instructions','Maximum\x20recursion\x20depth\x20(default:\x2010)','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--system-prompt\x20<text>','fields\x20[name]','Kill\x20a\x20job','parent-segment','Workflow\x20session\x20management','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','view\x20[name]','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--model\x20<name>','Read\x20request\x20body\x20from\x20file','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','-d,\x20--database\x20<database>','Folder\x20description','[action]','Campaign\x20description','status','List\x20jobs','Manage\x20workflow\x20project\x20secrets','Show\x20email\x20template\x20details','update\x20<name>','options','Resume\x20a\x20conversation\x20(shows\x20selector)','Database\x20name\x20(default:\x20information_schema)','retry'];a2_0xb2fd=function(){return _0x3f361b;};return a2_0xb2fd();}import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x3df4f4(0x2a4)][a2_0x3df4f4(0x180)](a2_0x3df4f4(0x202))){let versionOutput=a2_0x3df4f4(0x2bf)+currentVersion;buildInfo[a2_0x3df4f4(0x252)]&&!currentVersion[a2_0x3df4f4(0x180)](buildInfo[a2_0x3df4f4(0x252)])&&(versionOutput+='\x20('+buildInfo[a2_0x3df4f4(0x252)]+')'),buildInfo[a2_0x3df4f4(0x2ac)]&&(versionOutput+=a2_0x3df4f4(0x17d)+buildInfo[a2_0x3df4f4(0x2ac)]),console[a2_0x3df4f4(0x379)](versionOutput),process['exit'](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x3df4f4(0x241);buildInfo[a2_0x3df4f4(0x252)]&&!currentVersion['includes'](buildInfo[a2_0x3df4f4(0x252)])?description+=a2_0x3df4f4(0x3b0)+currentVersion+'\x20('+buildInfo[a2_0x3df4f4(0x252)]+')':description+=',\x20version\x20'+currentVersion;program['name'](a2_0x3df4f4(0x39f))[a2_0x3df4f4(0x357)](description),program['option'](a2_0x3df4f4(0x1d7),'Change\x20to\x20directory\x20before\x20executing\x20command')['option'](a2_0x3df4f4(0x309),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3cb),a2_0x3df4f4(0x2e3),a2_0x3df4f4(0x251))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x190),a2_0x3df4f4(0x20a))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x353),a2_0x3df4f4(0x230))[a2_0x3df4f4(0x293)]('--json',a2_0x3df4f4(0x1c9))['option']('--jsonl',a2_0x3df4f4(0x283))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x30d),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1bc),a2_0x3df4f4(0x2b0))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x237),a2_0x3df4f4(0x204))['option'](a2_0x3df4f4(0x182),a2_0x3df4f4(0x1ea),![])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x389),a2_0x3df4f4(0x1ca),![])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1a2),a2_0x3df4f4(0x275),![])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x394),a2_0x3df4f4(0x1bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fa),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x27d),a2_0x3df4f4(0x374),'30')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),'Preview\x20operation\x20without\x20executing',![])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x26d),![])['option']('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x3df4f4(0x293)]('-d,\x20--database\x20<name>',a2_0x3df4f4(0x28f))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3d1),a2_0x3df4f4(0x1ef))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x24c),a2_0x3df4f4(0x3ae))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3bf),a2_0x3df4f4(0x21b)),program[a2_0x3df4f4(0x355)]({'formatHelp':(_0x3aac79,_0x1339db)=>{const _0x38824a=a2_0x3df4f4,_0x161154=_0x1339db[_0x38824a(0x363)](_0x3aac79,_0x1339db),_0x426cfe=0x2,_0x317dc8=0x2;function _0x45cca2(_0x577d5a){const _0xfc18fe=_0x38824a,_0x24ee78=_0x577d5a;return!!(_0x24ee78[_0xfc18fe(0x384)]||_0x24ee78[_0xfc18fe(0x1dd)]);}function _0x53b1b6(_0x272d72,_0x36887a){if(_0x36887a){const _0x5f42d0=''+_0x272d72['padEnd'](_0x161154+_0x317dc8)+_0x36887a;return _0x5f42d0;}return _0x272d72;}function _0x500a30(_0x2dba8d){const _0x4c0011=_0x38824a;return _0x2dba8d[_0x4c0011(0x348)]('\x0a')[_0x4c0011(0x3c1)](/^/gm,'\x20'[_0x4c0011(0x1d3)](_0x426cfe));}const _0x116f35=[];_0x116f35[_0x38824a(0x36f)]('Usage:\x20'+_0x1339db[_0x38824a(0x291)](_0x3aac79));const _0x39916e=_0x1339db[_0x38824a(0x235)](_0x3aac79);_0x39916e&&(_0x116f35[_0x38824a(0x36f)](''),_0x116f35['push'](_0x39916e));const _0x5f51d7=_0x3aac79[_0x38824a(0x3a4)]['filter'](_0x3cd63c=>!_0x45cca2(_0x3cd63c));if(_0x5f51d7[_0x38824a(0x297)]>0x0){if(_0x3aac79[_0x38824a(0x371)]()==='tdx'){const _0xcb6d3a=_0x3aac79[_0x38824a(0x323)](),_0x225a30=!_0xcb6d3a[_0x38824a(0x1d6)]&&process[_0x38824a(0x382)]['isTTY'],_0x484c4b=COMMAND_CATEGORIES,_0x3f3a4b=(_0xf078d1,_0x3e181f)=>_0x225a30?_0x3e181f(_0xf078d1):_0xf078d1,_0x5bec26=new Map();_0x5f51d7[_0x38824a(0x2bd)](_0x360acb=>{const _0x52556f=_0x38824a;_0x5bec26[_0x52556f(0x39d)](_0x360acb[_0x52556f(0x371)](),_0x360acb);}),_0x484c4b[_0x38824a(0x2bd)](_0x2e5e25=>{const _0x3806f1=_0x38824a,_0xdc072d=_0x2e5e25[_0x3806f1(0x3a4)][_0x3806f1(0x37b)](_0x947171=>_0x5bec26[_0x3806f1(0x338)](_0x947171)??[]);if(_0xdc072d[_0x3806f1(0x297)]>0x0){_0x116f35[_0x3806f1(0x36f)](''),_0x116f35['push'](_0x3f3a4b(_0x2e5e25['name']+':',_0x2e5e25[_0x3806f1(0x39a)]));const _0x314b6d=_0xdc072d[_0x3806f1(0x23f)](_0x4967dd=>{const _0x622d14=_0x3806f1,_0x167113=_0x1339db['subcommandTerm'](_0x4967dd),_0x4ce600=_0x1339db[_0x622d14(0x1ce)](_0x4967dd);return _0x53b1b6(_0x167113,_0x4ce600);});_0x116f35[_0x3806f1(0x36f)](_0x500a30(_0x314b6d));}}),_0x116f35[_0x38824a(0x36f)](''),_0x116f35[_0x38824a(0x36f)](_0x38824a(0x1ac));}else{const _0x48e9cc=_0x5f51d7[_0x38824a(0x23f)](_0x2231c6=>{const _0x5c9b21=_0x38824a,_0x2916a3=_0x1339db['subcommandTerm'](_0x2231c6),_0x4a5d8c=_0x1339db[_0x5c9b21(0x1ce)](_0x2231c6);return _0x53b1b6(_0x2916a3,_0x4a5d8c);});_0x116f35['push'](''),_0x116f35[_0x38824a(0x36f)](_0x38824a(0x385)),_0x116f35[_0x38824a(0x36f)](_0x500a30(_0x48e9cc));}}if(showBriefHelp&&_0x3aac79[_0x38824a(0x371)]()===_0x38824a(0x39f))_0x116f35['push'](''),_0x116f35[_0x38824a(0x36f)](_0x38824a(0x330));else{const _0x20d198=_0x3aac79[_0x38824a(0x2da)][_0x38824a(0x396)](_0x2f6648=>!_0x45cca2(_0x2f6648));if(_0x20d198['length']>0x0){const _0x555d32=_0x20d198['map'](_0x211784=>{const _0x1c436b=_0x38824a,_0x6c51cf=_0x1339db[_0x1c436b(0x399)](_0x211784),_0x2c5772=_0x1339db[_0x1c436b(0x1aa)](_0x211784);return _0x53b1b6(_0x6c51cf,_0x2c5772);});_0x116f35['push'](''),_0x116f35[_0x38824a(0x36f)](_0x38824a(0x16c)),_0x116f35[_0x38824a(0x36f)](_0x500a30(_0x555d32));}}const _0x1c820f=(_0x3aac79[_0x38824a(0x321)]||[])['filter'](_0xa6fc05=>!_0x45cca2(_0xa6fc05));if(_0x1c820f[_0x38824a(0x297)]>0x0){const _0x52aef0=_0x1c820f[_0x38824a(0x23f)](_0x4aa123=>{const _0x2e5838=_0x38824a,_0x41b6bc=_0x1339db[_0x2e5838(0x32f)](_0x4aa123),_0x38eaab=_0x1339db[_0x2e5838(0x2bb)](_0x4aa123);return _0x53b1b6(_0x41b6bc,_0x38eaab);});_0x116f35[_0x38824a(0x36f)](''),_0x116f35['push'](_0x38824a(0x2e8)),_0x116f35[_0x38824a(0x36f)](_0x500a30(_0x52aef0));}return _0x116f35[_0x38824a(0x348)]('\x0a')+'\x0a';},'subcommandTerm':_0x56acaf=>{const _0x4bf888=a2_0x3df4f4,_0x10e6d7=(_0x56acaf[_0x4bf888(0x321)]||[])[_0x4bf888(0x23f)](_0x3c60b7=>_0x3c60b7[_0x4bf888(0x2e7)]?'<'+_0x3c60b7['name']()+'>':'['+_0x3c60b7[_0x4bf888(0x371)]()+']')[_0x4bf888(0x348)]('\x20'),_0x237e62=_0x56acaf[_0x4bf888(0x1c0)](),_0x505262=_0x237e62[_0x4bf888(0x297)]>0x0?_0x56acaf[_0x4bf888(0x371)]()+',\x20'+_0x237e62[_0x4bf888(0x348)](',\x20'):_0x56acaf[_0x4bf888(0x371)]();return _0x10e6d7?_0x505262+'\x20'+_0x10e6d7:_0x505262;}}),program[a2_0x3df4f4(0x368)](a2_0x3df4f4(0x1a6),_0x4d0131=>{const _0x542965=a2_0x3df4f4,_0x169cca=_0x4d0131[_0x542965(0x323)]();if(_0x169cca[_0x542965(0x188)]){const _0x16bff9=resolve(_0x169cca['directory']),_0x55e6ee=_0x16bff9!==_0x169cca['directory']?'\x20(resolved\x20to\x20'+_0x16bff9+')':'';if(!existsSync(_0x16bff9))throw new SDKError(ErrorCode[_0x542965(0x25f)],'Directory\x20does\x20not\x20exist:\x20'+_0x169cca['directory']+_0x55e6ee,undefined,{'helpText':_0x542965(0x38f)});const _0x20e3c3=statSync(_0x16bff9);if(!_0x20e3c3['isDirectory']())throw new SDKError(ErrorCode[_0x542965(0x25f)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x169cca[_0x542965(0x188)]+_0x55e6ee,undefined,{'helpText':_0x542965(0x329)});process[_0x542965(0x2ad)](_0x16bff9);}if(!_0x169cca[_0x542965(0x2eb)]){if(_0x169cca[_0x542965(0x364)])_0x169cca['format']=_0x542965(0x364);else{if(_0x169cca['json'])_0x169cca[_0x542965(0x2eb)]='json';else{if(_0x169cca[_0x542965(0x37e)])_0x169cca['format']=_0x542965(0x37e);else _0x169cca[_0x542965(0x303)]&&(_0x169cca['format']=_0x542965(0x303));}}}_0x169cca['in']&&!_0x169cca['database']&&(_0x169cca[_0x542965(0x2e5)]=_0x169cca['in']);if(_0x169cca['trace'])_0x169cca[_0x542965(0x2fc)]=LogLevel[_0x542965(0x2c1)];else{if(_0x169cca['debug'])_0x169cca[_0x542965(0x2fc)]=LogLevel[_0x542965(0x191)];else _0x169cca[_0x542965(0x2fc)]===undefined&&(_0x169cca['logLevel']=LogLevel['INFO']);}});async function createTDXInstance(_0x1ba9a4){const _0x1921e5=a2_0x3df4f4,_0x44491e=await GlobalContext[_0x1921e5(0x35a)](_0x1ba9a4);return _0x44491e[_0x1921e5(0x327)](_0x1ba9a4),TDX['create']({'site':_0x44491e[_0x1921e5(0x1e2)],'apiKey':_0x44491e['apiKey'],'logLevel':_0x44491e[_0x1921e5(0x2fc)],'profile':_0x44491e[_0x1921e5(0x343)]});}const databaseCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2e5))['alias']('db')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3b5)),databaseListAction=async(_0x5d1395,_0x2f462f)=>{const _0x578f94=a2_0x3df4f4,_0x490da8=new DatabasesCommand(),_0x347bce=program[_0x578f94(0x323)](),_0xc605e8=await createTDXInstance(_0x347bce),_0x37c983=await _0x490da8[_0x578f94(0x1d0)]({'options':{..._0x347bce,..._0x2f462f},'args':_0x5d1395?[_0x5d1395]:[],'tdx':_0xc605e8});process[_0x578f94(0x249)](_0x37c983);};databaseCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x192))[a2_0x3df4f4(0x2f2)](databaseListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x264),{'hidden':!![]})['description'](a2_0x3df4f4(0x32a))[a2_0x3df4f4(0x2f2)](databaseListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x203))[a2_0x3df4f4(0x357)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x3df4f4(0x293)]('--agent\x20<ref>',a2_0x3df4f4(0x1ab))['option'](a2_0x3df4f4(0x298),a2_0x3df4f4(0x273))[a2_0x3df4f4(0x2f2)](async(_0x5f2b6b,_0x40c07a)=>{const _0xb7fdee=a2_0x3df4f4,_0x55fa4e=new ChatCommand(),_0x34ae84=program[_0xb7fdee(0x323)](),_0x99cee=await createTDXInstance(_0x34ae84),_0x411ba8=await _0x55fa4e[_0xb7fdee(0x1d0)]({'options':{..._0x34ae84,..._0x40c07a},'args':_0x5f2b6b,'tdx':_0x99cee});process[_0xb7fdee(0x249)](_0x411ba8);});const apiCmd=program[a2_0x3df4f4(0x22f)]('api\x20[endpoint]')['summary'](a2_0x3df4f4(0x341))[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x302))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x383),a2_0x3df4f4(0x390),a2_0x3df4f4(0x3b9))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x223),'Request\x20body\x20as\x20JSON\x20string')['option'](a2_0x3df4f4(0x236),a2_0x3df4f4(0x2cf))[a2_0x3df4f4(0x293)]('-H,\x20--header\x20<header>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x343817,_0x35a4e2)=>{return _0x35a4e2?[..._0x35a4e2,_0x343817]:[_0x343817];})[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x265),a2_0x3df4f4(0x233),'td')[a2_0x3df4f4(0x2f2)](async(_0x2e58e4,_0x54921f)=>{const _0x34da2a=a2_0x3df4f4;if(!_0x2e58e4){apiCmd[_0x34da2a(0x31b)]();return;}const _0x35c85a=new ApiCommand(),_0x15bd97=program['opts'](),_0x389f29=await createTDXInstance(_0x15bd97),_0x40d160=await _0x35c85a['run']({'options':{..._0x15bd97,..._0x54921f},'args':[_0x2e58e4],'tdx':_0x389f29});process[_0x34da2a(0x249)](_0x40d160);});program[a2_0x3df4f4(0x22f)]('mcp')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x274))['addHelpText'](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x32e))[a2_0x3df4f4(0x2f2)](async _0x117d5e=>{const _0x5bab5a=a2_0x3df4f4,_0x3cb8cd=new MCPCommand(),_0xfb388b=program[_0x5bab5a(0x323)](),_0xd5ba63=await createTDXInstance(_0xfb388b),_0x67eb94=await _0x3cb8cd['run']({'options':{..._0xfb388b,..._0x117d5e},'args':[],'tdx':_0xd5ba63});process[_0x5bab5a(0x249)](_0x67eb94);});const tableCmd=program['command']('table')['description'](a2_0x3df4f4(0x35d)),tableListAction=async(_0x12e4a1,_0xf9123d)=>{const _0x2f9911=a2_0x3df4f4,_0x7e00b9=new TablesCommand(),_0x18bd3e=program['opts'](),_0xc63b93=await createTDXInstance(_0x18bd3e);_0xf9123d['in']&&(_0xf9123d['database']=_0xf9123d['in']);const _0x5f182e=await _0x7e00b9['run']({'options':{..._0x18bd3e,..._0xf9123d},'args':_0x12e4a1?[_0x12e4a1]:[],'tdx':_0xc63b93});process[_0x2f9911(0x249)](_0x5f182e);};tableCmd['command']('list\x20[pattern]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2f9))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2d1),a2_0x3df4f4(0x310))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),a2_0x3df4f4(0x1ef))[a2_0x3df4f4(0x2f2)](tableListAction),program[a2_0x3df4f4(0x22f)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x221))['option'](a2_0x3df4f4(0x2d1),a2_0x3df4f4(0x310))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3df4f4(0x2f2)](tableListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1f3))['description'](a2_0x3df4f4(0x1b7))[a2_0x3df4f4(0x293)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),a2_0x3df4f4(0x1ef))[a2_0x3df4f4(0x2f2)](async(_0x400203,_0x2adcb1)=>{const _0xc2d22c=a2_0x3df4f4,_0x2be6ef=new ShowCommand(),_0x1364db=program[_0xc2d22c(0x323)](),_0x3b1f94=await createTDXInstance(_0x1364db);_0x2adcb1['in']&&(_0x2adcb1[_0xc2d22c(0x2e5)]=_0x2adcb1['in']);const _0x5dc46f=await _0x2be6ef['run']({'options':{..._0x1364db,..._0x2adcb1},'args':_0x400203?[_0x400203]:[],'tdx':_0x3b1f94});process[_0xc2d22c(0x249)](_0x5dc46f);}),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x397))[a2_0x3df4f4(0x1c2)](a2_0x3df4f4(0x1df))[a2_0x3df4f4(0x357)]('Describe\x20table\x20schema')['option'](a2_0x3df4f4(0x2d1),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),a2_0x3df4f4(0x1ef))['action'](async(_0x182c45,_0x2a743f)=>{const _0x2ee8cf=a2_0x3df4f4,_0x30a354=new DescribeCommand(),_0x47d84d=program['opts'](),_0xd93b1f=await createTDXInstance(_0x47d84d);_0x2a743f['in']&&(_0x2a743f['database']=_0x2a743f['in']);const _0x5339a6=await _0x30a354['run']({'options':{..._0x47d84d,..._0x2a743f},'args':_0x182c45?[_0x182c45]:[],'tdx':_0xd93b1f});process[_0x2ee8cf(0x249)](_0x5339a6);}),program['command'](a2_0x3df4f4(0x21e))['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2d1),a2_0x3df4f4(0x1cf))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),a2_0x3df4f4(0x1ef))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1f0),a2_0x3df4f4(0x194))['option'](a2_0x3df4f4(0x236),a2_0x3df4f4(0x375))['option'](a2_0x3df4f4(0x207),a2_0x3df4f4(0x25b),'40')[a2_0x3df4f4(0x2f2)](async(_0x56c96d,_0x39b700)=>{const _0x2df4f3=a2_0x3df4f4,_0xef4b2a=new QueryCommand(),_0x507a6e=program['opts'](),_0x426a2b=await createTDXInstance(_0x507a6e);_0x39b700['in']&&(_0x39b700['database']=_0x39b700['in']);const _0x4baa4c=await _0xef4b2a['run']({'options':{..._0x507a6e,..._0x39b700},'args':_0x56c96d?[_0x56c96d]:[],'tdx':_0x426a2b});process[_0x2df4f3(0x249)](_0x4baa4c);});const segmentCmd=program[a2_0x3df4f4(0x22f)]('segment')[a2_0x3df4f4(0x1c2)]('sg')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1f9)),segmentListAction=async(_0x35323a,_0x22dd37)=>{const _0x19e480=a2_0x3df4f4,_0x275199=new SegmentsCommand(),_0x4e401f=program[_0x19e480(0x323)](),_0x4440d5=await createTDXInstance(_0x4e401f),_0x58bfda=await _0x275199[_0x19e480(0x1d0)]({'options':{..._0x4e401f,..._0x22dd37},'args':_0x35323a?[_0x35323a]:[],'tdx':_0x4440d5});process[_0x19e480(0x249)](_0x58bfda);};segmentCmd[a2_0x3df4f4(0x22f)]('list\x20[path]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x28e))[a2_0x3df4f4(0x293)]('-r,\x20--recursive',a2_0x3df4f4(0x1f8))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x22d),a2_0x3df4f4(0x2c3),'10')[a2_0x3df4f4(0x2f2)](segmentListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2a1),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x226))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x17c),a2_0x3df4f4(0x1f8))['option'](a2_0x3df4f4(0x22d),a2_0x3df4f4(0x2c3),'10')[a2_0x3df4f4(0x2f2)](segmentListAction),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x307),{'hidden':!![]})['description']('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')['action'](async(_0x5ebbe9,_0x300cde)=>{const _0x3437f3=a2_0x3df4f4,_0x2419a1=new SegmentUseCommand(),_0x498dde=program[_0x3437f3(0x323)](),_0x4adce1=await createTDXInstance(_0x498dde),_0x5bb66a=await _0x2419a1[_0x3437f3(0x1d0)]({'options':{..._0x498dde,..._0x300cde},'args':[_0x5ebbe9],'tdx':_0x4adce1});process['exit'](_0x5bb66a);});const segmentViewAction=async(_0x4b6b55,_0x26cfaf)=>{const _0x4a403c=a2_0x3df4f4,_0x4b3cef=new SegmentViewCommand(),_0x2184c5=program[_0x4a403c(0x323)](),_0x4f6113=await createTDXInstance(_0x2184c5),_0xc577a=await _0x4b3cef['run']({'options':{..._0x2184c5,..._0x26cfaf},'args':_0x4b6b55?[_0x4b6b55]:[],'tdx':_0x4f6113});process[_0x4a403c(0x249)](_0xc577a);};segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x257))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2c4))['option'](a2_0x3df4f4(0x3c7),'Open\x20segment\x20in\x20web\x20browser')[a2_0x3df4f4(0x2f2)](segmentViewAction),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1c1),{'hidden':!![]})[a2_0x3df4f4(0x1c2)](a2_0x3df4f4(0x23b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c7),a2_0x3df4f4(0x174))[a2_0x3df4f4(0x357)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x3df4f4(0x2f2)](segmentViewAction),segmentCmd['command'](a2_0x3df4f4(0x337))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x26a))['action'](async(_0x1c1802,_0x4beef1)=>{const _0x4f6d81=a2_0x3df4f4,_0x5acf5d=new SegmentDescCommand(),_0x5d04b2=program[_0x4f6d81(0x323)](),_0x138990=await createTDXInstance(_0x5d04b2),_0xeacbb4=await _0x5acf5d[_0x4f6d81(0x1d0)]({'options':{..._0x5d04b2,..._0x4beef1},'args':_0x1c1802?[_0x1c1802]:[],'tdx':_0x138990});process[_0x4f6d81(0x249)](_0xeacbb4);}),segmentCmd['command'](a2_0x3df4f4(0x19e))['description'](a2_0x3df4f4(0x33e))['action'](async(_0x24bfb4,_0x2d456d)=>{const _0x337cb8=a2_0x3df4f4,_0x20e679=new SegmentShowCommand(),_0xba135e=program[_0x337cb8(0x323)](),_0x377ff8=await createTDXInstance(_0xba135e),_0x4788c8=await _0x20e679[_0x337cb8(0x1d0)]({'options':{..._0xba135e,..._0x2d456d},'args':_0x24bfb4?[_0x24bfb4]:[],'tdx':_0x377ff8});process[_0x337cb8(0x249)](_0x4788c8);}),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1cb),{'hidden':!![]})[a2_0x3df4f4(0x357)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x3df4f4(0x2f2)](async(_0x14dd22,_0x4446d1)=>{const _0x3419d1=a2_0x3df4f4,_0x14985c=new SegmentFolderListCommand(),_0x2ef18d=program[_0x3419d1(0x323)](),_0x47e432=await createTDXInstance(_0x2ef18d),_0x15282d=await _0x14985c[_0x3419d1(0x1d0)]({'options':{..._0x2ef18d,..._0x4446d1},'args':[_0x14dd22],'tdx':_0x47e432});process[_0x3419d1(0x249)](_0x15282d);});const folderCmd=segmentCmd[a2_0x3df4f4(0x22f)]('folder',{'hidden':!![]})['description'](a2_0x3df4f4(0x3a7));folderCmd['command']('show\x20<folder_ref>')[a2_0x3df4f4(0x357)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')['action'](async(_0x2faa2a,_0x2afca4)=>{const _0x24c677=a2_0x3df4f4,_0x3600d9=new SegmentFolderShowCommand(),_0x4c217d=program['opts'](),_0x430f2d=await createTDXInstance(_0x4c217d),_0x4a47b4=await _0x3600d9[_0x24c677(0x1d0)]({'options':{..._0x4c217d,..._0x2afca4},'args':[_0x2faa2a],'tdx':_0x430f2d});process[_0x24c677(0x249)](_0x4a47b4);}),segmentCmd['command']('sql\x20[segment_name]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3d2))[a2_0x3df4f4(0x2f2)](async(_0x63ed2,_0x2c57be)=>{const _0x47fc2e=a2_0x3df4f4,_0x4e818f=new SegmentSQLCommand(),_0x53373b=program[_0x47fc2e(0x323)](),_0x441427=await createTDXInstance(_0x53373b),_0x48c15b=await _0x4e818f[_0x47fc2e(0x1d0)]({'options':{..._0x53373b,..._0x2c57be},'args':_0x63ed2?[_0x63ed2]:[],'tdx':_0x441427});process[_0x47fc2e(0x249)](_0x48c15b);}),segmentCmd[a2_0x3df4f4(0x22f)]('fields\x20[parent_name]')['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x3df4f4(0x2f2)](async(_0xa088ce,_0xbfa40b)=>{const _0x13b51c=a2_0x3df4f4,_0x2da8ba=new SegmentFieldsCommand(),_0x1976e4=program[_0x13b51c(0x323)](),_0xdd450c=await createTDXInstance(_0x1976e4),_0x26f59d=await _0x2da8ba[_0x13b51c(0x1d0)]({'options':{..._0x1976e4,..._0xbfa40b},'args':_0xa088ce?[_0xa088ce]:[],'tdx':_0xdd450c});process[_0x13b51c(0x249)](_0x26f59d);}),segmentCmd['command'](a2_0x3df4f4(0x359))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3b2))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompts')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x259))['action'](async(_0x1301b7,_0x18018e)=>{const _0x4262b5=a2_0x3df4f4,_0x23f4d8=new SegmentPullCommand(),_0x490c3b=program['opts'](),_0x15be00=await createTDXInstance(_0x490c3b),_0x2f5e85=await _0x23f4d8[_0x4262b5(0x1d0)]({'options':{..._0x490c3b,..._0x18018e},'args':_0x1301b7?[_0x1301b7]:[],'tdx':_0x15be00});process[_0x4262b5(0x249)](_0x2f5e85);}),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x262))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x34f))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x26d))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x259))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x284),a2_0x3df4f4(0x172))[a2_0x3df4f4(0x2f2)](async(_0x3905e8,_0x20c0ed)=>{const _0x1b7989=a2_0x3df4f4,_0x5eafca=new SegmentPushCommand(),_0x519270=program[_0x1b7989(0x323)](),_0x4800ad=await createTDXInstance(_0x519270),_0x34a78f=await _0x5eafca[_0x1b7989(0x1d0)]({'options':{..._0x519270,..._0x20c0ed},'args':_0x3905e8?[_0x3905e8]:[],'tdx':_0x4800ad});process[_0x1b7989(0x249)](_0x34a78f);}),segmentCmd['command'](a2_0x3df4f4(0x19b))['description'](a2_0x3df4f4(0x234))[a2_0x3df4f4(0x2f2)](async(_0x1c4b0a,_0x1e8ed4)=>{const _0x326fd4=a2_0x3df4f4,_0x4d4a4c=new SegmentValidateCommand(),_0x16e080=program[_0x326fd4(0x323)](),_0x5a9dc3=await createTDXInstance(_0x16e080),_0x3ff330=await _0x4d4a4c[_0x326fd4(0x1d0)]({'options':{..._0x16e080,..._0x1e8ed4},'args':_0x1c4b0a?[_0x1c4b0a]:[],'tdx':_0x5a9dc3});process[_0x326fd4(0x249)](_0x3ff330);}),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x300),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x349))[a2_0x3df4f4(0x293)]('--description\x20<text>',a2_0x3df4f4(0x2ab))['option'](a2_0x3df4f4(0x2ff),a2_0x3df4f4(0x35b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1b2),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x19d),a2_0x3df4f4(0x367))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x22e),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x3df4f4(0x293)]('--invisible',a2_0x3df4f4(0x358))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x20e),a2_0x3df4f4(0x37f))[a2_0x3df4f4(0x2f2)](async(_0x335611,_0x4caf20)=>{const _0x192775=a2_0x3df4f4,_0x3fb19f=new SegmentCreateCommand(),_0x45cabe=program[_0x192775(0x323)](),_0x5cf782=await createTDXInstance(_0x45cabe),_0x5b3cf4=await _0x3fb19f[_0x192775(0x1d0)]({'options':{..._0x45cabe,..._0x4caf20},'args':[_0x335611],'tdx':_0x5cf782});process['exit'](_0x5b3cf4);}),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x255),{'hidden':!![]})['description'](a2_0x3df4f4(0x3b8))[a2_0x3df4f4(0x293)]('--name\x20<new_name>',a2_0x3df4f4(0x30c))[a2_0x3df4f4(0x293)]('--description\x20<text>','Updated\x20description')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2ff),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1b2),a2_0x3df4f4(0x34c))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x19d),'Move\x20to\x20folder')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x22e),a2_0x3df4f4(0x18d))[a2_0x3df4f4(0x2f2)](async(_0xc051eb,_0x5db23c)=>{const _0x1d0bec=a2_0x3df4f4,_0x3b8b25=new SegmentUpdateCommand(),_0x3389d1=program[_0x1d0bec(0x323)](),_0x501300=await createTDXInstance(_0x3389d1),_0x5c8fcf=await _0x3b8b25['run']({'options':{..._0x3389d1,..._0x5db23c},'args':[_0xc051eb],'tdx':_0x501300});process['exit'](_0x5c8fcf);});const parentCmd=segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x392),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3be)),parentListAction=async(_0x15560c,_0x2229ae)=>{const _0x39217b=a2_0x3df4f4,_0x49c566=new ParentSegmentListCommand(),_0x413337=program[_0x39217b(0x323)](),_0x46a31f=await createTDXInstance(_0x413337),_0x1a145a=await _0x49c566[_0x39217b(0x1d0)]({'options':{..._0x413337,..._0x2229ae},'args':_0x15560c?[_0x15560c]:[],'tdx':_0x46a31f});process[_0x39217b(0x249)](_0x1a145a);};parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))['description'](a2_0x3df4f4(0x339))[a2_0x3df4f4(0x2f2)](parentListAction),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1bf),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x187))[a2_0x3df4f4(0x2f2)](parentListAction),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x248))[a2_0x3df4f4(0x357)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x270),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](async(_0x20adba,_0x5b4e7b)=>{const _0x2570e3=a2_0x3df4f4,_0x4137da=new ParentSegmentPullCommand(),_0x565dd2=program[_0x2570e3(0x323)](),_0x37d79c=await createTDXInstance(_0x565dd2),_0x3bef81=await _0x4137da['run']({'options':{..._0x565dd2,..._0x5b4e7b},'args':_0x20adba?[_0x20adba]:[],'tdx':_0x37d79c});process[_0x2570e3(0x249)](_0x3bef81);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29c))['description'](a2_0x3df4f4(0x260))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))['action'](async(_0x185c65,_0x1d2b59)=>{const _0x3049aa=a2_0x3df4f4,_0x8f2844=new ParentSegmentPushCommand(),_0x208ab0=program[_0x3049aa(0x323)](),_0x28b3f4=await createTDXInstance(_0x208ab0),_0xb556ad=await _0x8f2844[_0x3049aa(0x1d0)]({'options':{..._0x208ab0,..._0x1d2b59},'args':_0x185c65?[_0x185c65]:[],'tdx':_0x28b3f4});process[_0x3049aa(0x249)](_0xb556ad);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x37c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2fd))['option'](a2_0x3df4f4(0x2f5),a2_0x3df4f4(0x205))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x33a),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x326),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x3df4f4(0x18f),a2_0x3df4f4(0x24a))['option'](a2_0x3df4f4(0x1b3),a2_0x3df4f4(0x312),a2_0x3df4f4(0x208))['action'](async(_0x12963b,_0x9791d)=>{const _0xa7047d=new ParentSegmentValidateCommand(),_0x1bc4ce=program['opts'](),_0x3c5ea0=await createTDXInstance(_0x1bc4ce),_0x5ef29c=await _0xa7047d['run']({'options':{..._0x1bc4ce,..._0x9791d},'args':_0x12963b?[_0x12963b]:[],'tdx':_0x3c5ea0});process['exit'](_0x5ef29c);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x21f))['description'](a2_0x3df4f4(0x391))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2f5),a2_0x3df4f4(0x2f0))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x33a),a2_0x3df4f4(0x189))[a2_0x3df4f4(0x293)]('--behavior\x20[name]',a2_0x3df4f4(0x2ca))[a2_0x3df4f4(0x293)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x3df4f4(0x1b3),a2_0x3df4f4(0x312),a2_0x3df4f4(0x208))[a2_0x3df4f4(0x2f2)](async(_0x2213db,_0x3c27d6)=>{const _0x593176=a2_0x3df4f4,_0x4181c1=new ParentSegmentPreviewCommand(),_0x5881f2=program[_0x593176(0x323)](),_0x1818c7=await createTDXInstance(_0x5881f2),_0x2848e7=await _0x4181c1[_0x593176(0x1d0)]({'options':{..._0x5881f2,..._0x3c27d6},'args':_0x2213db?[_0x2213db]:[],'tdx':_0x1818c7});process[_0x593176(0x249)](_0x2848e7);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3ac))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x387))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),'Skip\x20confirmation\x20prompt')[a2_0x3df4f4(0x2f2)](async(_0x1eb8c7,_0x679484)=>{const _0x2319e5=a2_0x3df4f4,_0xa81a89=new ParentSegmentRunCommand(),_0x21e4ac=program[_0x2319e5(0x323)](),_0x14e522=await createTDXInstance(_0x21e4ac),_0x8c5992=await _0xa81a89[_0x2319e5(0x1d0)]({'options':{..._0x21e4ac,..._0x679484},'args':_0x1eb8c7?[_0x1eb8c7]:[],'tdx':_0x14e522});process[_0x2319e5(0x249)](_0x8c5992);});const parentSegmentCmd=program['command'](a2_0x3df4f4(0x2c8))[a2_0x3df4f4(0x1c2)]('ps')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1d8));parentSegmentCmd['command'](a2_0x3df4f4(0x290))['description'](a2_0x3df4f4(0x339))[a2_0x3df4f4(0x2f2)](parentListAction),parentSegmentCmd[a2_0x3df4f4(0x22f)]('pull\x20[name]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x17a))[a2_0x3df4f4(0x293)]('-o,\x20--output\x20<file>',a2_0x3df4f4(0x21d))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x293)]('-u,\x20--use',a2_0x3df4f4(0x3b3))['action'](async(_0x89eccb,_0x11e4ab)=>{const _0x392e5f=a2_0x3df4f4,_0x3c4d0b=new ParentSegmentPullCommand(),_0x40ecb9=program[_0x392e5f(0x323)](),_0x570387=await createTDXInstance(_0x40ecb9),_0x3c0ecd=await _0x3c4d0b['run']({'options':{..._0x40ecb9,..._0x11e4ab},'args':_0x89eccb?[_0x89eccb]:[],'tdx':_0x570387});process[_0x392e5f(0x249)](_0x3c0ecd);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x268))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x28a))['option'](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](async(_0x3f6cca,_0x4251e6)=>{const _0x60ec49=a2_0x3df4f4,_0x179544=new ParentSegmentPushCommand(),_0x52621e=program['opts'](),_0x470c21=await createTDXInstance(_0x52621e),_0x48f948=await _0x179544[_0x60ec49(0x1d0)]({'options':{..._0x52621e,..._0x4251e6},'args':_0x3f6cca?[_0x3f6cca]:[],'tdx':_0x470c21});process[_0x60ec49(0x249)](_0x48f948);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x36e))[a2_0x3df4f4(0x357)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x3df4f4(0x2f5),a2_0x3df4f4(0x205))['option'](a2_0x3df4f4(0x33a),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3df4f4(0x293)]('--behavior\x20[name]',a2_0x3df4f4(0x1db))[a2_0x3df4f4(0x293)]('--enriched',a2_0x3df4f4(0x24a))['option']('--interval\x20<range>',a2_0x3df4f4(0x312),a2_0x3df4f4(0x208))[a2_0x3df4f4(0x2f2)](async(_0x328116,_0x5b8699)=>{const _0x38472c=a2_0x3df4f4,_0x29012f=new ParentSegmentValidateCommand(),_0xe3c2ce=program[_0x38472c(0x323)](),_0x22f9f9=await createTDXInstance(_0xe3c2ce),_0x3dc83e=await _0x29012f['run']({'options':{..._0xe3c2ce,..._0x5b8699},'args':_0x328116?[_0x328116]:[],'tdx':_0x22f9f9});process[_0x38472c(0x249)](_0x3dc83e);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x19c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x391))[a2_0x3df4f4(0x293)]('--master',a2_0x3df4f4(0x2f0))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x33a),a2_0x3df4f4(0x189))['option'](a2_0x3df4f4(0x326),a2_0x3df4f4(0x2ca))['option'](a2_0x3df4f4(0x18f),a2_0x3df4f4(0x1ae))['option'](a2_0x3df4f4(0x1b3),a2_0x3df4f4(0x312),a2_0x3df4f4(0x208))['action'](async(_0x48d99a,_0x5c7281)=>{const _0x86c32=a2_0x3df4f4,_0x40092a=new ParentSegmentPreviewCommand(),_0xa06b6d=program[_0x86c32(0x323)](),_0x5d3ce2=await createTDXInstance(_0xa06b6d),_0x39789c=await _0x40092a[_0x86c32(0x1d0)]({'options':{..._0xa06b6d,..._0x5c7281},'args':_0x48d99a?[_0x48d99a]:[],'tdx':_0x5d3ce2});process['exit'](_0x39789c);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3ac))['description'](a2_0x3df4f4(0x387))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))['action'](async(_0x2b63b9,_0x216d45)=>{const _0x5d3f06=a2_0x3df4f4,_0x45bb30=new ParentSegmentRunCommand(),_0x156975=program[_0x5d3f06(0x323)](),_0x2fe868=await createTDXInstance(_0x156975),_0x12bc7d=await _0x45bb30['run']({'options':{..._0x156975,..._0x216d45},'args':_0x2b63b9?[_0x2b63b9]:[],'tdx':_0x2fe868});process[_0x5d3f06(0x249)](_0x12bc7d);}),parentSegmentCmd['command'](a2_0x3df4f4(0x2c6))[a2_0x3df4f4(0x357)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x227),a2_0x3df4f4(0x334))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x35f),a2_0x3df4f4(0x1dc))['action'](async(_0x1c2a68,_0x5d0a80)=>{const _0x591040=a2_0x3df4f4,_0x4cfd3b=new ParentSegmentFieldsCommand(),_0x2388a2=program[_0x591040(0x323)](),_0x97a6a6=await createTDXInstance(_0x2388a2),_0x208cca=await _0x4cfd3b[_0x591040(0x1d0)]({'options':{..._0x2388a2,..._0x5d0a80},'args':_0x1c2a68?[_0x1c2a68]:[],'tdx':_0x97a6a6});process['exit'](_0x208cca);}),parentSegmentCmd['command'](a2_0x3df4f4(0x2cb))['description'](a2_0x3df4f4(0x306))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c7),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x227),a2_0x3df4f4(0x334))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x35f),a2_0x3df4f4(0x1dc))[a2_0x3df4f4(0x2f2)](async(_0x56b6a7,_0x2ecb86)=>{const _0x1ded4e=a2_0x3df4f4,_0x566862=new ParentSegmentViewCommand(),_0x3e6b8a=program['opts'](),_0x8a1ac6=await createTDXInstance(_0x3e6b8a),_0x396f43=await _0x566862[_0x1ded4e(0x1d0)]({'options':{..._0x3e6b8a,..._0x2ecb86},'args':_0x56b6a7?[_0x56b6a7]:[],'tdx':_0x8a1ac6});process[_0x1ded4e(0x249)](_0x396f43);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x3df4f4(0x357)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x3df4f4(0x227),'Output\x20as\x20JSON')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x35f),a2_0x3df4f4(0x1dc))['action'](async(_0x3db60a,_0x5e672a)=>{const _0x3e3a39=a2_0x3df4f4,_0x38c6ea=new ParentSegmentDescCommand(),_0x55ffb3=program[_0x3e3a39(0x323)](),_0x5de9bc=await createTDXInstance(_0x55ffb3),_0x2fe10b=await _0x38c6ea[_0x3e3a39(0x1d0)]({'options':{..._0x55ffb3,..._0x5e672a},'args':_0x3db60a?[_0x3db60a]:[],'tdx':_0x5de9bc});process[_0x3e3a39(0x249)](_0x2fe10b);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1fd))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3aa))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x227),a2_0x3df4f4(0x334))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x35f),a2_0x3df4f4(0x1dc))[a2_0x3df4f4(0x2f2)](async(_0xd74485,_0x3c8416)=>{const _0x37ee53=a2_0x3df4f4,_0x332955=new ParentSegmentSQLCommand(),_0x27d989=program[_0x37ee53(0x323)](),_0x3ac891=await createTDXInstance(_0x27d989),_0x14196d=await _0x332955['run']({'options':{..._0x27d989,..._0x3c8416},'args':_0xd74485?[_0xd74485]:[],'tdx':_0x3ac891});process[_0x37ee53(0x249)](_0x14196d);}),parentSegmentCmd['command']('show\x20[name]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x37a))[a2_0x3df4f4(0x293)]('--limit\x20<n>',a2_0x3df4f4(0x2e0))[a2_0x3df4f4(0x293)]('--json',a2_0x3df4f4(0x334))[a2_0x3df4f4(0x293)]('--jsonl',a2_0x3df4f4(0x1dc))[a2_0x3df4f4(0x2f2)](async(_0x22b8ce,_0x5a7323)=>{const _0x550d2d=a2_0x3df4f4,_0x48e0af=new ParentSegmentShowCommand(),_0x2655b4=program[_0x550d2d(0x323)](),_0x2a94c8=await createTDXInstance(_0x2655b4),_0x1897d6=await _0x48e0af[_0x550d2d(0x1d0)]({'options':{..._0x2655b4,..._0x5a7323},'args':_0x22b8ce?[_0x22b8ce]:[],'tdx':_0x2a94c8});process['exit'](_0x1897d6);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x269))['description'](a2_0x3df4f4(0x229))[a2_0x3df4f4(0x2f2)](async(_0x205b2f,_0x23b958)=>{const _0x183e0e=a2_0x3df4f4,_0x508195=new UseCommand(),_0x3ed777=program[_0x183e0e(0x323)](),_0x348d6e=_0x205b2f?[_0x183e0e(0x219),_0x205b2f]:[],_0x4a9db2=await _0x508195['run']({'options':{..._0x3ed777,..._0x23b958},'args':_0x348d6e,'tdx':null});process[_0x183e0e(0x249)](_0x4a9db2);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x33c))[a2_0x3df4f4(0x357)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3df4f4(0x3c0)](a2_0x3df4f4(0x3a8),a2_0x3df4f4(0x2a6))[a2_0x3df4f4(0x3c0)](a2_0x3df4f4(0x282),'Master\x20table\x20name')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x31f),a2_0x3df4f4(0x369))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x210),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option']('--schedule-option\x20<value>',a2_0x3df4f4(0x3b1))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x386),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x347),a2_0x3df4f4(0x1a9))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x25c),'Attributes\x20from\x20JSON\x20file')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x345),'Behaviors\x20as\x20JSON\x20string')['option'](a2_0x3df4f4(0x3d5),a2_0x3df4f4(0x1c3))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1b0),a2_0x3df4f4(0x2a5))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2f7),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x3df4f4(0x2f2)](async(_0x3b10a2,_0x3a6596)=>{const _0x3efd25=a2_0x3df4f4,_0x3e2e03=new ParentSegmentCreateCommand(),_0x1e7d4f=program['opts'](),_0x52d4ca=await createTDXInstance(_0x1e7d4f),_0x277184=await _0x3e2e03['run']({'options':{..._0x1e7d4f,..._0x3a6596},'args':[_0x3b10a2],'tdx':_0x52d4ca});process[_0x3efd25(0x249)](_0x277184);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2d9))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x30e))[a2_0x3df4f4(0x293)]('--description\x20<text>',a2_0x3df4f4(0x314))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x210),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x199),a2_0x3df4f4(0x2e6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x386),a2_0x3df4f4(0x1ff))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x28d),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x195),a2_0x3df4f4(0x16e))[a2_0x3df4f4(0x293)]('--add-behaviors\x20<json>',a2_0x3df4f4(0x2b4))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3b7),'Add\x20behaviors\x20from\x20JSON\x20file')['action'](async(_0x29ed7a,_0x1e0b94)=>{const _0x41b2dc=a2_0x3df4f4,_0x12f2b3=new ParentSegmentUpdateCommand(),_0x484972=program[_0x41b2dc(0x323)](),_0x456107=await createTDXInstance(_0x484972),_0x509d44=await _0x12f2b3[_0x41b2dc(0x1d0)]({'options':{..._0x484972,..._0x1e0b94},'args':[_0x29ed7a],'tdx':_0x456107});process[_0x41b2dc(0x249)](_0x509d44);}),folderCmd[a2_0x3df4f4(0x22f)]('create\x20<parent_name>\x20<folder_name>')['description'](a2_0x3df4f4(0x173))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x31f),a2_0x3df4f4(0x2d2))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x19f),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0x4ef688,_0x5b7ba6,_0x2b68bd)=>{const _0x268cd6=a2_0x3df4f4,_0x23f275=new SegmentFolderCreateCommand(),_0x383391=program[_0x268cd6(0x323)](),_0x43014e=await createTDXInstance(_0x383391),_0x54bc51=await _0x23f275[_0x268cd6(0x1d0)]({'options':{..._0x383391,..._0x2b68bd},'args':[_0x4ef688,_0x5b7ba6],'tdx':_0x43014e});process[_0x268cd6(0x249)](_0x54bc51);}),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x217))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2b7))[a2_0x3df4f4(0x2f2)](async(_0x42ed2c,_0x5aaa9a)=>{const _0x40002c=a2_0x3df4f4,_0xb150a7=new ActivationsCommand(),_0x1b2428=program[_0x40002c(0x323)](),_0x4ad8c8=await createTDXInstance(_0x1b2428),_0x39323f=await _0xb150a7[_0x40002c(0x1d0)]({'options':{..._0x1b2428,..._0x5aaa9a},'args':[_0x42ed2c],'tdx':_0x4ad8c8});process[_0x40002c(0x249)](_0x39323f);});const workflowCmd=program['command'](a2_0x3df4f4(0x214))[a2_0x3df4f4(0x1c2)]('wf')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1c8)),wfProjectCmd=workflowCmd['command'](a2_0x3df4f4(0x31a))['description']('Workflow\x20project\x20management'),wfProjectListAction=async(_0x4b95d3,_0x3bb334)=>{const _0x13d405=a2_0x3df4f4,_0x1af6b9=new WorkflowProjectsCommand(),_0x575d41=program['opts'](),_0x478f59=await createTDXInstance(_0x575d41),_0x23ac25=await _0x1af6b9[_0x13d405(0x1d0)]({'options':{..._0x575d41,..._0x3bb334},'args':_0x4b95d3?[_0x4b95d3]:[],'tdx':_0x478f59});process[_0x13d405(0x249)](_0x23ac25);};wfProjectCmd[a2_0x3df4f4(0x22f)]('list\x20[pattern]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x313))[a2_0x3df4f4(0x2f2)](wfProjectListAction),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1d2))[a2_0x3df4f4(0x357)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x3df4f4(0x2f2)](wfProjectListAction);const wfWorkflowListAction=async(_0x31ac5a,_0x1f73c0)=>{const _0x57e4fd=a2_0x3df4f4,_0x56bd7b=new WorkflowWorkflowsCommand(),_0x551e6e=program[_0x57e4fd(0x323)](),_0x2aace6=await createTDXInstance(_0x551e6e),_0x5a582f=await _0x56bd7b[_0x57e4fd(0x1d0)]({'options':{..._0x551e6e,..._0x1f73c0},'args':_0x31ac5a?[_0x31ac5a]:[],'tdx':_0x2aace6});process[_0x57e4fd(0x249)](_0x5a582f);};workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x254))['description'](a2_0x3df4f4(0x1a4))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3ca))['description'](a2_0x3df4f4(0x2c9)),wfSessionListAction=async(_0x3df03c,_0x279ffd)=>{const _0x24cbd7=a2_0x3df4f4,_0x5a961e=new WorkflowSessionsCommand(),_0x2b7fa2=program[_0x24cbd7(0x323)](),_0x54157c=await createTDXInstance(_0x2b7fa2),_0x3275d4=await _0x5a961e[_0x24cbd7(0x1d0)]({'options':{..._0x2b7fa2,..._0x279ffd},'args':_0x3df03c?[_0x3df03c]:[],'tdx':_0x54157c});process[_0x24cbd7(0x249)](_0x3275d4);};wfSessionCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1cc))['description'](a2_0x3df4f4(0x34e))['option'](a2_0x3df4f4(0x3ce),a2_0x3df4f4(0x212))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1da),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x3df4f4(0x286),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x200))[a2_0x3df4f4(0x357)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3ce),a2_0x3df4f4(0x212))['option'](a2_0x3df4f4(0x1da),a2_0x3df4f4(0x2ee))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x286),a2_0x3df4f4(0x1fb))[a2_0x3df4f4(0x2f2)](wfSessionListAction);const wfAttemptListAction=async(_0x3c63f7,_0x14a94d)=>{const _0x30b32d=a2_0x3df4f4,_0x12863f=new WorkflowAttemptsCommand(),_0x2112a7=program['opts'](),_0x563c1c=await createTDXInstance(_0x2112a7),_0x2ea0ba=await _0x12863f[_0x30b32d(0x1d0)]({'options':{..._0x2112a7,..._0x14a94d},'args':_0x3c63f7?[_0x3c63f7]:[],'tdx':_0x563c1c});process[_0x30b32d(0x249)](_0x2ea0ba);},attemptCmd=workflowCmd['command'](a2_0x3df4f4(0x1d5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x38d))[a2_0x3df4f4(0x398)]('[attempt-id]',a2_0x3df4f4(0x37d))[a2_0x3df4f4(0x398)](a2_0x3df4f4(0x2d3),a2_0x3df4f4(0x2e1))[a2_0x3df4f4(0x398)]('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1d9),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2e2),a2_0x3df4f4(0x324))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x225),a2_0x3df4f4(0x1e1))[a2_0x3df4f4(0x293)]('--params\x20<json>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2aa),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x34b),a2_0x3df4f4(0x36c))[a2_0x3df4f4(0x2f2)](async(_0x2065a2,_0x7ce287,_0x95b052,_0x3d5847)=>{const _0x12b28c=a2_0x3df4f4;if(_0x2065a2===_0x12b28c(0x29f)){await wfAttemptListAction(_0x7ce287,_0x3d5847);return;}if(!_0x2065a2){attemptCmd[_0x12b28c(0x31b)]();return;}const _0x2cfa9c=program[_0x12b28c(0x323)](),_0xc97677=await createTDXInstance(_0x2cfa9c);let _0xbcb90d=0x0;if(!_0x7ce287){const _0x34700a=new WorkflowAttemptCommand();_0xbcb90d=await _0x34700a['run']({'options':{..._0x2cfa9c,..._0x3d5847},'args':[_0x2065a2],'tdx':_0xc97677});}else{if(_0x7ce287===_0x12b28c(0x31c)){const _0x403619=new WorkflowLogsCommand();_0xbcb90d=await _0x403619['run']({'options':{..._0x2cfa9c,..._0x3d5847},'args':_0x95b052?[_0x2065a2,_0x95b052]:[_0x2065a2],'tdx':_0xc97677});}else{if(_0x7ce287==='tasks'){const _0x5dbfbd=new WorkflowTasksCommand();_0xbcb90d=await _0x5dbfbd[_0x12b28c(0x1d0)]({'options':{..._0x2cfa9c,..._0x3d5847},'args':[_0x2065a2],'tdx':_0xc97677});}else{if(_0x7ce287===_0x12b28c(0x1d4)){const _0x158540=new WorkflowKillCommand();_0xbcb90d=await _0x158540['run']({'options':{..._0x2cfa9c,..._0x3d5847},'args':[_0x2065a2],'tdx':_0xc97677});}else{if(_0x7ce287===_0x12b28c(0x2dd)){const _0x41cdd4=new WorkflowRetryCommand();_0xbcb90d=await _0x41cdd4[_0x12b28c(0x1d0)]({'options':{..._0x2cfa9c,..._0x3d5847},'args':[_0x12b28c(0x21c)+_0x2065a2],'tdx':_0xc97677});}else console[_0x12b28c(0x26e)](_0x12b28c(0x305)+_0x7ce287),console[_0x12b28c(0x26e)](_0x12b28c(0x342)),_0xbcb90d=0x1;}}}}process[_0x12b28c(0x249)](_0xbcb90d);});attemptCmd['command'](a2_0x3df4f4(0x1cc))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2cd))['option'](a2_0x3df4f4(0x34b),'Include\x20retried\x20attempts')[a2_0x3df4f4(0x2f2)](wfAttemptListAction),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x315))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2f6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x34b),a2_0x3df4f4(0x38c))[a2_0x3df4f4(0x2f2)](wfAttemptListAction),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x18b))['description'](a2_0x3df4f4(0x23d))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x288),a2_0x3df4f4(0x3cf))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x266),a2_0x3df4f4(0x380))[a2_0x3df4f4(0x293)]('--attempt-id\x20<id>',a2_0x3df4f4(0x1a3))[a2_0x3df4f4(0x2f2)](async(_0x568f54,_0x55eba9)=>{const _0x3011fb=a2_0x3df4f4,_0x2a8110=new WorkflowTimelineCommand(),_0x55e877=program[_0x3011fb(0x323)](),_0xcbe54=await createTDXInstance(_0x55e877),_0x4467f9=await _0x2a8110[_0x3011fb(0x1d0)]({'options':{..._0x55e877,..._0x55eba9},'args':_0x568f54?[_0x568f54]:[],'tdx':_0xcbe54});process['exit'](_0x4467f9);}),workflowCmd['command'](a2_0x3df4f4(0x318))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x17b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1ba),a2_0x3df4f4(0x22c))[a2_0x3df4f4(0x293)]('--params\x20<json>',a2_0x3df4f4(0x1d1))[a2_0x3df4f4(0x2f2)](async(_0x4bed8e,_0x209c3c)=>{const _0x234edf=a2_0x3df4f4,_0x25a917=new WorkflowRetryCommand(),_0x45a94d=program[_0x234edf(0x323)](),_0x59a911=await createTDXInstance(_0x45a94d),_0xf017aa=await _0x25a917['run']({'options':{..._0x45a94d,..._0x209c3c},'args':[_0x4bed8e],'tdx':_0x59a911});process[_0x234edf(0x249)](_0xf017aa);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x215))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2a3))['option'](a2_0x3df4f4(0x19a),a2_0x3df4f4(0x32d),(_0x4131a9,_0x251ef7=[])=>[..._0x251ef7,_0x4131a9],[])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2ed),a2_0x3df4f4(0x1b5))['action'](async(_0x291aca,_0x4b0219)=>{const _0x4b7780=a2_0x3df4f4,_0x266c49=new WorkflowRunCommand(),_0xf21b97=program['opts'](),_0x30bdd8=await createTDXInstance(_0xf21b97),_0x572f9a=await _0x266c49[_0x4b7780(0x1d0)]({'options':{..._0xf21b97,..._0x4b0219},'args':_0x291aca?[_0x291aca]:[],'tdx':_0x30bdd8});process['exit'](_0x572f9a);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3c5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1e3))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x238))[a2_0x3df4f4(0x2f2)](async(_0x3ebe38,_0xf791e7,_0x3dd8c6)=>{const _0x46b168=a2_0x3df4f4,_0x44d089=new WorkflowDownloadCommand(),_0x80ce5f=program[_0x46b168(0x323)](),_0x5efa10=await createTDXInstance(_0x80ce5f),_0x440f7e=await _0x44d089[_0x46b168(0x1d0)]({'options':{..._0x80ce5f,..._0x3dd8c6},'args':[_0x3ebe38,_0xf791e7||'.'],'tdx':_0x5efa10});process[_0x46b168(0x249)](_0x440f7e);}),workflowCmd[a2_0x3df4f4(0x22f)]('pull\x20<project>\x20[target-dir]')['description'](a2_0x3df4f4(0x320))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x2b6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x304))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](async(_0x4b85e6,_0x5d741c,_0x363988)=>{const _0x4c7e02=a2_0x3df4f4,_0x1e05d2=new WorkflowPullCommand(),_0x5507e9=program[_0x4c7e02(0x323)](),_0x3a5998=await createTDXInstance(_0x5507e9),_0x3f06ac=await _0x1e05d2[_0x4c7e02(0x1d0)]({'options':{..._0x5507e9,..._0x363988},'args':_0x5d741c?[_0x4b85e6,_0x5d741c]:[_0x4b85e6],'tdx':_0x3a5998});process[_0x4c7e02(0x249)](_0x3f06ac);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x224))[a2_0x3df4f4(0x357)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')['option'](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x376))['option'](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x17f))[a2_0x3df4f4(0x293)]('--skip-validation',a2_0x3df4f4(0x361))[a2_0x3df4f4(0x293)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x3df4f4(0x2f2)](async(_0x11fec8,_0x1ae0aa)=>{const _0x8b84c6=a2_0x3df4f4,_0x423b78=new WorkflowPushCommand(),_0x252866=program[_0x8b84c6(0x323)](),_0x25bf60=await createTDXInstance(_0x252866),_0x357b0=await _0x423b78['run']({'options':{..._0x252866,..._0x1ae0aa},'args':_0x11fec8?[_0x11fec8]:[],'tdx':_0x25bf60});process[_0x8b84c6(0x249)](_0x357b0);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x28c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x253))[a2_0x3df4f4(0x293)]('--name\x20<name>',a2_0x3df4f4(0x206))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x36b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x263),a2_0x3df4f4(0x361))['action'](async(_0x37ae73,_0x4f1d0d)=>{const _0x1c9c39=a2_0x3df4f4,_0x10e099=new WorkflowUploadCommand(),_0x2a4218=program[_0x1c9c39(0x323)](),_0x138257=await createTDXInstance(_0x2a4218),_0x426800=await _0x10e099[_0x1c9c39(0x1d0)]({'options':{..._0x2a4218,..._0x4f1d0d},'args':_0x37ae73?[_0x37ae73]:[],'tdx':_0x138257});process['exit'](_0x426800);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1b4))[a2_0x3df4f4(0x357)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x311),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x376))['option'](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x33b))['option'](a2_0x3df4f4(0x263),a2_0x3df4f4(0x361))[a2_0x3df4f4(0x293)]('-y,\x20--yes',a2_0x3df4f4(0x1c7))['action'](async(_0x1d4b26,_0x3079a3)=>{const _0x30ab30=a2_0x3df4f4,_0x6c5cde=new WorkflowCloneCommand(),_0x4e9e1c=program[_0x30ab30(0x323)](),_0x5bad97=await createTDXInstance(_0x4e9e1c),_0x1513fe=await _0x6c5cde['run']({'options':{..._0x4e9e1c,..._0x3079a3},'args':_0x1d4b26?[_0x1d4b26]:[],'tdx':_0x5bad97});process[_0x30ab30(0x249)](_0x1513fe);}),workflowCmd['command'](a2_0x3df4f4(0x35c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x193))[a2_0x3df4f4(0x2f2)](async(_0x24dfce,_0x120dc2)=>{const _0x57ac55=a2_0x3df4f4,_0x289e15=new WorkflowDeleteCommand(),_0xf121e5=program['opts'](),_0x8ccf9d=await createTDXInstance(_0xf121e5),_0x2b1047=await _0x289e15[_0x57ac55(0x1d0)]({'options':{..._0xf121e5,..._0x120dc2},'args':[_0x24dfce],'tdx':_0x8ccf9d});process[_0x57ac55(0x249)](_0x2b1047);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x171))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x24b))['option'](a2_0x3df4f4(0x3b4),a2_0x3df4f4(0x2ec))[a2_0x3df4f4(0x2f2)](async(_0xb68dd9,_0x41799f)=>{const _0x2a207e=a2_0x3df4f4,_0x132809=new WorkflowUseCommand(),_0xc37459=program[_0x2a207e(0x323)](),_0x5297f7=await createTDXInstance(_0xc37459),_0x1b755b=await _0x132809[_0x2a207e(0x1d0)]({'options':{..._0xc37459,..._0x41799f},'args':_0xb68dd9?[_0xb68dd9]:[],'tdx':_0x5297f7});process['exit'](_0x1b755b);});const wfSecretsCmd=workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x280))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2d7));wfSecretsCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1cc))[a2_0x3df4f4(0x357)]('List\x20secret\x20keys\x20for\x20a\x20project')[a2_0x3df4f4(0x2f2)](async(_0x2daa9a,_0x7f731d)=>{const _0x576783=a2_0x3df4f4,_0x358e04=new WorkflowSecretsListCommand(),_0xc9d492=program['opts'](),_0x598142=await createTDXInstance(_0xc9d492),_0x52459c=await _0x358e04[_0x576783(0x1d0)]({'options':{..._0xc9d492,..._0x7f731d},'args':_0x2daa9a?[_0x2daa9a]:[],'tdx':_0x598142});process[_0x576783(0x249)](_0x52459c);}),wfSecretsCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x24d))[a2_0x3df4f4(0x357)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')['action'](async(_0x3a7d2e,_0x48fc17)=>{const _0x1adf30=a2_0x3df4f4,_0x212401=new WorkflowSecretsSetCommand(),_0x1bab58=program[_0x1adf30(0x323)](),_0x2e1724=await createTDXInstance(_0x1bab58),_0x2de423=await _0x212401[_0x1adf30(0x1d0)]({'options':{..._0x1bab58,..._0x48fc17},'args':_0x3a7d2e,'tdx':_0x2e1724});process[_0x1adf30(0x249)](_0x2de423);}),wfSecretsCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2b3))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x299))['option'](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))['action'](async(_0x7ff527,_0x2a1839)=>{const _0x583169=a2_0x3df4f4,_0x4af346=new WorkflowSecretsDeleteCommand(),_0x2bd742=program['opts'](),_0x2e8cf6=await createTDXInstance(_0x2bd742),_0xcd066b=await _0x4af346[_0x583169(0x1d0)]({'options':{..._0x2bd742,..._0x2a1839},'args':_0x7ff527,'tdx':_0x2e8cf6});process[_0x583169(0x249)](_0xcd066b);});const jobCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x239))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x39e)),jobListAction=async _0x4ffc2e=>{const _0x17ee9f=a2_0x3df4f4,_0x2502ba=new JobListCommand(),_0x4bcb23=program[_0x17ee9f(0x323)](),_0xe5dc8e=await createTDXInstance(_0x4bcb23),_0x35b4a0=await _0x2502ba['run']({'options':{..._0x4bcb23,..._0x4ffc2e},'args':[],'tdx':_0xe5dc8e});process['exit'](_0x35b4a0);};jobCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29f))['description'](a2_0x3df4f4(0x2d6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3ce),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),program['command'](a2_0x3df4f4(0x2de),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2d0))[a2_0x3df4f4(0x293)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),jobCmd[a2_0x3df4f4(0x22f)]('show\x20<job-id>')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x245))[a2_0x3df4f4(0x2f2)](async(_0x31b687,_0xedbf5d)=>{const _0x1039c8=a2_0x3df4f4,_0x1dc9e1=new JobShowCommand(),_0x1b255b=program[_0x1039c8(0x323)](),_0x25df22=await createTDXInstance(_0x1b255b),_0x27c709=await _0x1dc9e1[_0x1039c8(0x1d0)]({'options':{..._0x1b255b,..._0xedbf5d},'args':[_0x31b687],'tdx':_0x25df22});process[_0x1039c8(0x249)](_0x27c709);}),jobCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x33d))['description'](a2_0x3df4f4(0x2c7))[a2_0x3df4f4(0x2f2)](async(_0x7e127d,_0x22703b)=>{const _0x81c54f=a2_0x3df4f4,_0x47e309=new JobKillCommand(),_0x31ac70=program[_0x81c54f(0x323)](),_0x18fb9d=await createTDXInstance(_0x31ac70),_0xb0fc15=await _0x47e309[_0x81c54f(0x1d0)]({'options':{..._0x31ac70,..._0x22703b},'args':[_0x7e127d],'tdx':_0x18fb9d});process[_0x81c54f(0x249)](_0xb0fc15);}),jobCmd[a2_0x3df4f4(0x22f)]('submit\x20[query]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3c3))['option'](a2_0x3df4f4(0x39b),a2_0x3df4f4(0x256),a2_0x3df4f4(0x26f))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x236),a2_0x3df4f4(0x3d4))[a2_0x3df4f4(0x293)]('--database\x20<name>',a2_0x3df4f4(0x2dc),a2_0x3df4f4(0x176))[a2_0x3df4f4(0x2f2)](async(_0x3c7652,_0x3fb889)=>{const _0x228113=a2_0x3df4f4,_0x3f4a25=new JobSubmitCommand(),_0x3d4061=program[_0x228113(0x323)](),_0x1188c9=await createTDXInstance(_0x3d4061),_0x452811=await _0x3f4a25[_0x228113(0x1d0)]({'options':{..._0x3d4061,..._0x3fb889},'args':_0x3c7652?[_0x3c7652]:[],'tdx':_0x1188c9});process[_0x228113(0x249)](_0x452811);}),jobCmd['command'](a2_0x3df4f4(0x322))['description'](a2_0x3df4f4(0x276))[a2_0x3df4f4(0x2f2)](async(_0x111fc2,_0x4ebefd)=>{const _0x22fd06=a2_0x3df4f4,_0x39a974=new JobResultCommand(),_0x19b789=program[_0x22fd06(0x323)](),_0x40773b=await createTDXInstance(_0x19b789),_0x34d01b=await _0x39a974['run']({'options':{..._0x19b789,..._0x4ebefd},'args':[_0x111fc2],'tdx':_0x40773b});process['exit'](_0x34d01b);});const llmCmd=program['command'](a2_0x3df4f4(0x35e))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x346));llmCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x301))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x365))[a2_0x3df4f4(0x2f2)](async(_0x18c9db,_0xd0f2a3)=>{const _0x3f676e=a2_0x3df4f4,_0x2995fa=new LLMUseCommand(),_0x3e27f=program[_0x3f676e(0x323)](),_0x2f8776=await createTDXInstance(_0x3e27f),_0x580908=await _0x2995fa[_0x3f676e(0x1d0)]({'options':{..._0x3e27f,..._0xd0f2a3},'args':[_0x18c9db],'tdx':_0x2f8776});process[_0x3f676e(0x249)](_0x580908);}),llmCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1c6))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1a1))[a2_0x3df4f4(0x2f2)](async _0x285514=>{const _0x1c587a=a2_0x3df4f4,_0x512de=new LLMModelsCommand(),_0x3fcda1=program[_0x1c587a(0x323)](),_0x51be7f=await createTDXInstance(_0x3fcda1),_0x57e49b=await _0x512de[_0x1c587a(0x1d0)]({'options':{..._0x3fcda1,..._0x285514},'args':[],'tdx':_0x51be7f});process[_0x1c587a(0x249)](_0x57e49b);});const projectCmd=llmCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x31a))['description'](a2_0x3df4f4(0x36a)),llmProjectListAction=async(_0xcd070d,_0x61f1cc)=>{const _0x3eb817=a2_0x3df4f4,_0x2acbcf=new LLMProjectsCommand(),_0x504cfc=program[_0x3eb817(0x323)](),_0x5a7891=await createTDXInstance(_0x504cfc),_0x439ea2=await _0x2acbcf[_0x3eb817(0x1d0)]({'options':{..._0x504cfc,..._0x61f1cc},'args':_0xcd070d?[_0xcd070d]:[],'tdx':_0x5a7891});process[_0x3eb817(0x249)](_0x439ea2);};projectCmd['command']('list\x20[pattern]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2f8))['action'](llmProjectListAction),llmCmd['command'](a2_0x3df4f4(0x1d2))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1e7))['action'](llmProjectListAction),projectCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x33c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x30a))[a2_0x3df4f4(0x293)]('--description\x20<text>',a2_0x3df4f4(0x1fa))[a2_0x3df4f4(0x2f2)](async(_0x5d2924,_0x50f7da)=>{const _0x110e52=a2_0x3df4f4,_0x4faac8=new LLMProjectCreateCommand(),_0x147eb8=program[_0x110e52(0x323)](),_0x4b6cd7=await createTDXInstance(_0x147eb8),_0x2a394f=await _0x4faac8[_0x110e52(0x1d0)]({'options':{..._0x147eb8,..._0x50f7da},'args':[_0x5d2924],'tdx':_0x4b6cd7});process['exit'](_0x2a394f);}),projectCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x211))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x197))[a2_0x3df4f4(0x2f2)](async(_0x5128e7,_0x4d5447)=>{const _0x4c3ef5=a2_0x3df4f4,_0x3fb3fa=new LLMProjectDeleteCommand(),_0xc195e4=program['opts'](),_0x34bb87=await createTDXInstance(_0xc195e4),_0x533e91=await _0x3fb3fa[_0x4c3ef5(0x1d0)]({'options':{..._0xc195e4,..._0x4d5447},'args':[_0x5128e7],'tdx':_0x34bb87});process[_0x4c3ef5(0x249)](_0x533e91);}),projectCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3af))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2cc))['option']('-o,\x20--output\x20<folder>',a2_0x3df4f4(0x393))[a2_0x3df4f4(0x293)]('--dry-run',a2_0x3df4f4(0x344))[a2_0x3df4f4(0x2f2)](async(_0x81e42c,_0x425aa2)=>{const _0x3233de=a2_0x3df4f4,_0x46b492=new LLMProjectBackupCommand(),_0xaf129f=program['opts'](),_0x55065f=await createTDXInstance(_0xaf129f),_0xb029e=await _0x46b492[_0x3233de(0x1d0)]({'options':{..._0xaf129f,..._0x425aa2},'args':[_0x81e42c],'tdx':_0x55065f});process[_0x3233de(0x249)](_0xb029e);}),projectCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3a2))['description'](a2_0x3df4f4(0x21a))['option'](a2_0x3df4f4(0x295),a2_0x3df4f4(0x246))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x196))[a2_0x3df4f4(0x2f2)](async(_0x12bab8,_0xced07)=>{const _0x216f2f=a2_0x3df4f4,_0x1f0eae=new LLMProjectRestoreCommand(),_0x508aa8=program['opts'](),_0x312f0f=await createTDXInstance(_0x508aa8),_0x2c9f48=await _0x1f0eae[_0x216f2f(0x1d0)]({'options':{..._0x508aa8,..._0xced07},'args':[_0x12bab8],'tdx':_0x312f0f});process[_0x216f2f(0x249)](_0x2c9f48);});const llmAgentListAction=async(_0x41fea4,_0x3bb212)=>{const _0x4ac912=a2_0x3df4f4,_0x1c59b5=new LLMAgentsCommand(),_0x2f6438=program[_0x4ac912(0x323)](),_0xcf0fc7=await createTDXInstance(_0x2f6438),_0x434c7b=await _0x1c59b5['run']({'options':{..._0x2f6438,..._0x3bb212},'args':_0x41fea4?[_0x41fea4]:[],'tdx':_0xcf0fc7});process['exit'](_0x434c7b);};llmCmd['command']('agents\x20[pattern]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x240))[a2_0x3df4f4(0x2f2)](llmAgentListAction),program['command'](a2_0x3df4f4(0x1c5))['description'](a2_0x3df4f4(0x240))[a2_0x3df4f4(0x2f2)](llmAgentListAction),llmCmd[a2_0x3df4f4(0x22f)]('history\x20[chat-id]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3ad))[a2_0x3df4f4(0x293)]('--last',a2_0x3df4f4(0x26b))[a2_0x3df4f4(0x2f2)](async(_0x5e1df1,_0x21570f)=>{const _0x451895=a2_0x3df4f4,_0x18ca08=new LLMHistoryCommand(),_0x3a09b7=program[_0x451895(0x323)](),_0x735dbe=await createTDXInstance(_0x3a09b7),_0x4a3c69=await _0x18ca08['run']({'options':{..._0x3a09b7,..._0x21570f},'args':_0x5e1df1?[_0x5e1df1]:[],'tdx':_0x735dbe});process[_0x451895(0x249)](_0x4a3c69);}),llmCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x287))[a2_0x3df4f4(0x357)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')['option'](a2_0x3df4f4(0x366),a2_0x3df4f4(0x2a8),a2_0x3df4f4(0x38b))[a2_0x3df4f4(0x293)]('--project\x20<name>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3df4f4(0x293)]('--agent\x20<name>',a2_0x3df4f4(0x351))['action'](async _0x3d4525=>{const _0x1f03c9=a2_0x3df4f4,_0x3d64a4=new LLMProxyCommand(),_0x63452=program[_0x1f03c9(0x323)](),_0x35c23d=await createTDXInstance(_0x63452),_0x588576={..._0x3d4525,'port':_0x3d4525[_0x1f03c9(0x3d0)]?parseInt(_0x3d4525[_0x1f03c9(0x3d0)],0xa):undefined},_0x3afcff=await _0x3d64a4[_0x1f03c9(0x1d0)]({'options':{..._0x63452,..._0x588576},'args':[],'tdx':_0x35c23d});process[_0x1f03c9(0x249)](_0x3afcff);}),program['command']('claude\x20[args...]')[a2_0x3df4f4(0x33f)](a2_0x3df4f4(0x213))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1b8))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2ce),a2_0x3df4f4(0x170),a2_0x3df4f4(0x231))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x32b),a2_0x3df4f4(0x2bc))[a2_0x3df4f4(0x293)]('-r,\x20--resume',a2_0x3df4f4(0x2db))[a2_0x3df4f4(0x293)]('--no-proxy','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')['option'](a2_0x3df4f4(0x378),a2_0x3df4f4(0x370))[a2_0x3df4f4(0x328)]()['allowExcessArguments'](!![])[a2_0x3df4f4(0x3a6)]('after',a2_0x3df4f4(0x16f))['action'](async(_0x85229b,_0x2d9470)=>{const _0x82494c=a2_0x3df4f4,_0x399dc6=program[_0x82494c(0x323)](),_0x5e1b48=Array[_0x82494c(0x1de)](_0x85229b)?_0x85229b:[];if(_0x5e1b48[0x0]===_0x82494c(0x381)){const _0x58b376=new ClaudeStatuslineCommand(),_0x397672=await _0x58b376['run']({'options':{..._0x399dc6,..._0x2d9470},'args':_0x5e1b48['slice'](0x1),'tdx':null});process[_0x82494c(0x249)](_0x397672);}if(_0x5e1b48[0x0]==='usage'){const _0x290a1e=new ClaudeUsageCommand(),_0x1b9590=await _0x290a1e[_0x82494c(0x1d0)]({'options':{..._0x399dc6,..._0x2d9470},'args':_0x5e1b48[_0x82494c(0x3bb)](0x1),'tdx':null});process[_0x82494c(0x249)](_0x1b9590);}const _0x345c12=new ClaudeCommand(),_0x373586=await createTDXInstance(_0x399dc6),_0x3eebd9=await _0x345c12[_0x82494c(0x1d0)]({'options':{..._0x399dc6,..._0x2d9470},'args':_0x5e1b48,'tdx':_0x373586});process['exit'](_0x3eebd9);}),program['command'](a2_0x3df4f4(0x20c))[a2_0x3df4f4(0x357)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3b4),a2_0x3df4f4(0x292))['option'](a2_0x3df4f4(0x350),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')['action'](async(_0x24dfe0,_0x410b62,_0x1e52bd)=>{const _0x57bd14=a2_0x3df4f4,_0xadee15=new UseCommand(),_0xdaa16=program[_0x57bd14(0x323)](),_0x4a5628=[];if(_0x24dfe0)_0x4a5628['push'](_0x24dfe0);if(_0x410b62)_0x4a5628[_0x57bd14(0x36f)](_0x410b62);const _0x1b9948=await _0xadee15['run']({'options':{..._0xdaa16,..._0x1e52bd},'args':_0x4a5628,'tdx':null});process[_0x57bd14(0x249)](_0x1b9948);}),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x186))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x177))['option'](a2_0x3df4f4(0x350),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x3df4f4(0x2f2)](async(_0x575c96,_0x5602d3)=>{const _0x50eb70=a2_0x3df4f4,_0x40d38e=new UnsetCommand(),_0x495d51=program[_0x50eb70(0x323)](),_0x5037d5=await _0x40d38e[_0x50eb70(0x1d0)]({'options':{..._0x495d51,..._0x5602d3},'args':[_0x575c96],'tdx':null});process[_0x50eb70(0x249)](_0x5037d5);}),program['command'](a2_0x3df4f4(0x1f5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1ec))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x250),a2_0x3df4f4(0x395))[a2_0x3df4f4(0x2f2)](async _0x2e914c=>{const _0x42c59a=a2_0x3df4f4,_0x1a9c8c=new ChatsCommand(),_0xb89a81=program['opts'](),_0x4b974e=await createTDXInstance(_0xb89a81),_0x51d6ab=await _0x1a9c8c[_0x42c59a(0x1d0)]({'options':{..._0xb89a81,..._0x2e914c},'args':[],'tdx':_0x4b974e});process[_0x42c59a(0x249)](_0x51d6ab);});const authCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3a9))['description'](a2_0x3df4f4(0x279));async function runAuthStatusCommand(_0x15a729){const _0x2e4ce5=a2_0x3df4f4,_0x53360d=new AuthStatusCommand(),_0x14238e=program['opts'](),_0x51c4e1=await createTDXInstance(_0x14238e),_0xb1eb54=await _0x53360d[_0x2e4ce5(0x1d0)]({'options':{..._0x14238e,..._0x15a729},'args':[],'tdx':_0x51c4e1});process['exit'](_0xb1eb54);}function a2_0x54ca(_0x3986ac,_0x5b5c6d){_0x3986ac=_0x3986ac-0x16c;const _0xb2fd45=a2_0xb2fd();let _0x54ca88=_0xb2fd45[_0x3986ac];return _0x54ca88;}authCmd[a2_0x3df4f4(0x2f2)](runAuthStatusCommand),authCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2d5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x20d))[a2_0x3df4f4(0x2f2)](runAuthStatusCommand),authCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x34d))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x34a))[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x25e))[a2_0x3df4f4(0x2f2)](async _0x319b22=>{const _0x38541d=a2_0x3df4f4,_0x4460fa=new AuthSetupCommand(),_0x11b017=program[_0x38541d(0x323)](),_0x27b13a=await createTDXInstance(_0x11b017),_0x1f411a=await _0x4460fa[_0x38541d(0x1d0)]({'options':{..._0x11b017,..._0x319b22},'args':[],'tdx':_0x27b13a});process[_0x38541d(0x249)](_0x1f411a);}),authCmd['command']('clear')[a2_0x3df4f4(0x357)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x372))['action'](async _0x4fab3d=>{const _0x4ac954=a2_0x3df4f4,_0x1432c1=new AuthClearCommand(),_0x117115=program[_0x4ac954(0x323)](),_0x5890c2=await _0x1432c1[_0x4ac954(0x1d0)]({'options':{..._0x117115,..._0x4fab3d},'args':[],'tdx':null});process[_0x4ac954(0x249)](_0x5890c2);});const userCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x31e))[a2_0x3df4f4(0x357)]('User\x20management\x20commands'),userListAction=async _0xf594c8=>{const _0x1939b8=a2_0x3df4f4,_0x155204=new UserListCommand(),_0x2c0b7e=program[_0x1939b8(0x323)](),_0x27d5f6=await createTDXInstance(_0x2c0b7e),_0x2f038d=await _0x155204[_0x1939b8(0x1d0)]({'options':{..._0x2c0b7e,..._0xf594c8},'args':[],'tdx':_0x27d5f6});process['exit'](_0x2f038d);};userCmd['action'](async _0x2816a6=>{const _0x373b96=new UserCommand(),_0x58c910=program['opts'](),_0xa0eaf0=await createTDXInstance(_0x58c910),_0x2be635=await _0x373b96['run']({'options':{..._0x58c910,..._0x2816a6},'args':[],'tdx':_0xa0eaf0});process['exit'](_0x2be635);}),userCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29f))['description'](a2_0x3df4f4(0x220))[a2_0x3df4f4(0x2f2)](userListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3a5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x17e))[a2_0x3df4f4(0x2f2)](userListAction),program[a2_0x3df4f4(0x22f)]('profiles')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x247))[a2_0x3df4f4(0x2f2)](async _0x5520a6=>{const _0x2a6722=a2_0x3df4f4,_0x4da62b=new ProfilesCommand(),_0x250517=program['opts'](),_0x47e1a3=await _0x4da62b['run']({'options':{..._0x250517,..._0x5520a6},'args':[],'tdx':null});process[_0x2a6722(0x249)](_0x47e1a3);});const profileCmd=program['command'](a2_0x3df4f4(0x343))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1e4));profileCmd[a2_0x3df4f4(0x2f2)](()=>{const _0x21cdcd=a2_0x3df4f4;profileCmd[_0x21cdcd(0x222)]();});const profileListAction=async _0x4e5732=>{const _0x34d608=a2_0x3df4f4,_0x5e4cda=new ProfilesCommand(),_0x23bafb=program['opts'](),_0x2719f7=await _0x5e4cda[_0x34d608(0x1d0)]({'options':{..._0x23bafb,..._0x4e5732},'args':[],'tdx':null});process[_0x34d608(0x249)](_0x2719f7);};profileCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29f))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x247))[a2_0x3df4f4(0x2f2)](profileListAction),profileCmd['command']('create\x20[name]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1b1))[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a')['action'](async(_0x5d2865,_0x20371f)=>{const _0x8d6bc5=a2_0x3df4f4,_0x54b4e8=new ProfileCreateCommand(),_0x4ac958=program['opts'](),_0x5b450f=await _0x54b4e8['run']({'options':{..._0x4ac958,..._0x20371f},'args':_0x5d2865?[_0x5d2865]:[],'tdx':null});process[_0x8d6bc5(0x249)](_0x5b450f);}),profileCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3c6))['description'](a2_0x3df4f4(0x3a1))[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x216))[a2_0x3df4f4(0x2f2)](async(_0x58d87b,_0x4b71e3)=>{const _0x42f77f=a2_0x3df4f4,_0x5d84fa=new ProfileRemoveCommand(),_0x437366=program[_0x42f77f(0x323)](),_0x18b4d6=await _0x5d84fa[_0x42f77f(0x1d0)]({'options':{..._0x437366,..._0x4b71e3},'args':[_0x58d87b],'tdx':null});process['exit'](_0x18b4d6);}),profileCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x23e))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x360))['addHelpText'](a2_0x3df4f4(0x1e6),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x3df4f4(0x2f2)](async(_0x4efc07,_0x4f3938)=>{const _0x5497e5=a2_0x3df4f4,_0x37b90a=new ProfileSetCommand(),_0x495720=program[_0x5497e5(0x323)](),_0x5c2bd3=await _0x37b90a[_0x5497e5(0x1d0)]({'options':{..._0x495720,..._0x4f3938},'args':[_0x4efc07],'tdx':null});process[_0x5497e5(0x249)](_0x5c2bd3);}),profileCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x30f))['description'](a2_0x3df4f4(0x38e))['option'](a2_0x3df4f4(0x350),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x3df4f4(0x3a6)]('after','\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')[a2_0x3df4f4(0x2f2)](async(_0x5a7597,_0x13397b)=>{const _0x4b2de3=a2_0x3df4f4,_0x1cb1cf=new ProfileUseCommand(),_0x2a7188=program[_0x4b2de3(0x323)](),_0x1d09b0=await _0x1cb1cf['run']({'options':{..._0x2a7188,..._0x13397b},'args':[_0x5a7597],'tdx':null});process[_0x4b2de3(0x249)](_0x1d09b0);});const engageCmd=program['command'](a2_0x3df4f4(0x2be))['description'](a2_0x3df4f4(0x373)),createEngageAction=_0x4a6c6f=>{return async(_0x5ab172,_0x2ca2f0)=>{const _0x4c33d4=a2_0x54ca,_0x44b79d=new _0x4a6c6f(),_0x12f6c2=program[_0x4c33d4(0x323)](),_0x1df081=await createTDXInstance(_0x12f6c2),_0x348d2a=await _0x44b79d[_0x4c33d4(0x1d0)]({'options':{..._0x12f6c2,..._0x2ca2f0},'args':[_0x5ab172],'tdx':_0x1df081});process[_0x4c33d4(0x249)](_0x348d2a);};},createEngageNoArgAction=_0x1cc9b5=>{return async _0x3b9a96=>{const _0x535cc4=a2_0x54ca,_0x429c21=new _0x1cc9b5(),_0x186a25=program[_0x535cc4(0x323)](),_0x12731f=await createTDXInstance(_0x186a25),_0x57d923=await _0x429c21[_0x535cc4(0x1d0)]({'options':{..._0x186a25,..._0x3b9a96},'args':[],'tdx':_0x12731f});process[_0x535cc4(0x249)](_0x57d923);};},campaignCmd=engageCmd['command']('campaign')[a2_0x3df4f4(0x357)]('Campaign\x20management'),campaignListAction=async(_0x26159d,_0xd9e4b5)=>{const _0x4a45e7=a2_0x3df4f4,_0x38864a=new EngageCampaignsCommand(),_0x157802=program[_0x4a45e7(0x323)](),_0x1b8263=await createTDXInstance(_0x157802),_0x388a2b=await _0x38864a[_0x4a45e7(0x1d0)]({'options':{..._0x157802,..._0xd9e4b5},'args':_0x26159d?[_0x26159d]:[],'tdx':_0x1b8263});process[_0x4a45e7(0x249)](_0x388a2b);};campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x317))[a2_0x3df4f4(0x293)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3ce),a2_0x3df4f4(0x3a3))[a2_0x3df4f4(0x293)]('--workspace\x20<name>',a2_0x3df4f4(0x3bd))['action'](campaignListAction),engageCmd['command'](a2_0x3df4f4(0x296))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x278))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x244),a2_0x3df4f4(0x2ef))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3ce),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](campaignListAction),campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1a5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x333))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))['option']('--full',a2_0x3df4f4(0x1e0))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1fe))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x243))['requiredOption'](a2_0x3df4f4(0x311),a2_0x3df4f4(0x29b))['requiredOption'](a2_0x3df4f4(0x244),a2_0x3df4f4(0x1b6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x24e))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x20b),a2_0x3df4f4(0x2d4))[a2_0x3df4f4(0x293)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option'](a2_0x3df4f4(0x23c),a2_0x3df4f4(0x2a2))[a2_0x3df4f4(0x293)]('--json-columns\x20<cols>',a2_0x3df4f4(0x1ed))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x218),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x386),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x3df4f4(0x2f2)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3df4f4(0x22f)]('update\x20<name-or-id>')[a2_0x3df4f4(0x357)]('Update\x20a\x20campaign')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),'Workspace\x20name')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x311),a2_0x3df4f4(0x1c4))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x20b),a2_0x3df4f4(0x2d4))['option']('--segment\x20<path>',a2_0x3df4f4(0x18a))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x23c),a2_0x3df4f4(0x2a2))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x185),a2_0x3df4f4(0x1ed))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x218),a2_0x3df4f4(0x181))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x386),a2_0x3df4f4(0x1e8))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3df4f4(0x22f)]('delete\x20<name-or-id>')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2a9))['option'](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c8),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x336))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x242))[a2_0x3df4f4(0x357)]('Pause\x20a\x20campaign')['option'](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1f1))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2ae))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3df4f4(0x22f)]('duplicate\x20<name-or-id>')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x25a))['option'](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x3df4f4(0x39c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x209)),templateListAction=async(_0x18f57c,_0x35a7b7)=>{const _0x273a75=a2_0x3df4f4,_0x5e56f3=new EngageTemplatesCommand(),_0x234aa0=program[_0x273a75(0x323)](),_0x33a41d=await createTDXInstance(_0x234aa0),_0x27f171=await _0x5e56f3['run']({'options':{..._0x234aa0,..._0x35a7b7},'args':_0x18f57c?[_0x18f57c]:[],'tdx':_0x33a41d});process[_0x273a75(0x249)](_0x27f171);};templateCmd['command'](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2b5))['option']('--workspace\x20<name>',a2_0x3df4f4(0x3bd))['action'](templateListAction),engageCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2a0))[a2_0x3df4f4(0x357)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))['action'](templateListAction),templateCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1a5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2d8))[a2_0x3df4f4(0x293)]('--workspace\x20<name>',a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x354),a2_0x3df4f4(0x1e0))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3df4f4(0x22f)]('create')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x294))[a2_0x3df4f4(0x3c0)](a2_0x3df4f4(0x311),a2_0x3df4f4(0x331))[a2_0x3df4f4(0x3c0)]('--subject\x20<subject>',a2_0x3df4f4(0x25d))['requiredOption'](a2_0x3df4f4(0x335),'HTML\x20template\x20content')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x24e))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x31d),a2_0x3df4f4(0x1eb))[a2_0x3df4f4(0x293)]('--editor-type\x20<type>',a2_0x3df4f4(0x1e5))[a2_0x3df4f4(0x2f2)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x3df4f4(0x27b))[a2_0x3df4f4(0x357)]('Update\x20an\x20email\x20template')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x311),a2_0x3df4f4(0x3a0))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1e9),a2_0x3df4f4(0x25d))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x335),a2_0x3df4f4(0x1af))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x31d),a2_0x3df4f4(0x1eb))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x3df4f4(0x377))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2e4))['option'](a2_0x3df4f4(0x2b9),'Workspace\x20name')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c8),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x3df4f4(0x1a0))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2b8)),workspaceListAction=async(_0x3db468,_0x289350)=>{const _0x603c9=a2_0x3df4f4,_0x8fa555=new EngageWorkspacesCommand(),_0xad8bbb=program[_0x603c9(0x323)](),_0x50efaf=await createTDXInstance(_0xad8bbb),_0x160ca8=await _0x8fa555['run']({'options':{..._0xad8bbb,..._0x289350},'args':_0x3db468?[_0x3db468]:[],'tdx':_0x50efaf});process[_0x603c9(0x249)](_0x160ca8);};workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')['action'](workspaceListAction),engageCmd[a2_0x3df4f4(0x22f)]('workspaces\x20[pattern]')['description'](a2_0x3df4f4(0x38a))[a2_0x3df4f4(0x2f2)](workspaceListAction),workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1a5))['description'](a2_0x3df4f4(0x3c4))[a2_0x3df4f4(0x293)]('--full',a2_0x3df4f4(0x1e0))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3df4f4(0x22f)]('create')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x289))[a2_0x3df4f4(0x3c0)]('--name\x20<name>',a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x20b),a2_0x3df4f4(0x22a))[a2_0x3df4f4(0x2f2)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x27b))[a2_0x3df4f4(0x357)]('Update\x20a\x20workspace')[a2_0x3df4f4(0x293)]('--name\x20<name>',a2_0x3df4f4(0x1f2))[a2_0x3df4f4(0x293)]('--description\x20<desc>','Workspace\x20description')[a2_0x3df4f4(0x2f2)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x377))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x316))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c8),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x30f))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x267))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x3df4f4(0x325))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x198)),connectionListAction=async _0x16196d=>{const _0x16f38d=a2_0x3df4f4,_0x179e31=new ConnectionListCommand(),_0x46085b=program[_0x16f38d(0x323)](),_0x390047=await createTDXInstance(_0x46085b),_0x1aa4db=await _0x179e31[_0x16f38d(0x1d0)]({'options':{..._0x46085b,..._0x16196d},'args':[],'tdx':_0x390047});process[_0x16f38d(0x249)](_0x1aa4db);};connectionCmd['command'](a2_0x3df4f4(0x29f))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x20f))[a2_0x3df4f4(0x2f2)](connectionListAction),program['command'](a2_0x3df4f4(0x1f6),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1a8))[a2_0x3df4f4(0x2f2)](connectionListAction),connectionCmd[a2_0x3df4f4(0x22f)]('show\x20<name>')[a2_0x3df4f4(0x357)]('Show\x20connection\x20details\x20by\x20name')[a2_0x3df4f4(0x2f2)](async(_0x8cb48a,_0x1134f7)=>{const _0x3eb654=a2_0x3df4f4,_0x483537=new ConnectionShowCommand(),_0x5aead5=program[_0x3eb654(0x323)](),_0x3f799f=await createTDXInstance(_0x5aead5),_0xced158=await _0x483537[_0x3eb654(0x1d0)]({'options':{..._0x5aead5,..._0x1134f7},'args':[_0x8cb48a],'tdx':_0x3f799f});process[_0x3eb654(0x249)](_0xced158);}),connectionCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x332))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2ba))[a2_0x3df4f4(0x2f2)](async(_0x4fde24,_0x514b7a)=>{const _0x3a1743=a2_0x3df4f4,_0x713ec=new ConnectionSchemaCommand(),_0x473e9a=program[_0x3a1743(0x323)](),_0x16938c=await createTDXInstance(_0x473e9a),_0x4e7424=await _0x713ec[_0x3a1743(0x1d0)]({'options':{..._0x473e9a,..._0x514b7a},'args':[_0x4fde24],'tdx':_0x16938c});process[_0x3a1743(0x249)](_0x4e7424);}),connectionCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29d))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x272))[a2_0x3df4f4(0x2f2)](async _0x442463=>{const _0x3292fc=a2_0x3df4f4,_0x37afca=new ConnectionTypesCommand(),_0x53c357=program[_0x3292fc(0x323)](),_0x279516=await createTDXInstance(_0x53c357),_0x2ffb3a=await _0x37afca[_0x3292fc(0x1d0)]({'options':{..._0x53c357,..._0x442463},'args':[],'tdx':_0x279516});process['exit'](_0x2ffb3a);}),connectionCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2c0))[a2_0x3df4f4(0x357)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x3df4f4(0x2f2)](async(_0x40de19,_0x509ea2)=>{const _0x72b256=a2_0x3df4f4,_0x5b139b=new ConnectionSettingsCommand(),_0x20131c=program[_0x72b256(0x323)](),_0x1de52c=await createTDXInstance(_0x20131c),_0x154ffe=await _0x5b139b[_0x72b256(0x1d0)]({'options':{..._0x20131c,..._0x509ea2},'args':[_0x40de19],'tdx':_0x1de52c});process['exit'](_0x154ffe);});const journeyCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1ad))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1cd)),journeyListAction=async(_0x26c4ef,_0x2b8870)=>{const _0x30d31a=a2_0x3df4f4,_0x4c410d=new JourneyListCommand(),_0xff188e=program[_0x30d31a(0x323)](),_0x5aa9d4=await createTDXInstance(_0xff188e),_0x358ba2=await _0x4c410d[_0x30d31a(0x1d0)]({'options':{..._0xff188e,..._0x2b8870},'args':_0x26c4ef?[_0x26c4ef]:[],'tdx':_0x5aa9d4});process[_0x30d31a(0x249)](_0x358ba2);};journeyCmd[a2_0x3df4f4(0x22f)]('list\x20[pattern]')[a2_0x3df4f4(0x357)]('List\x20journeys\x20in\x20current\x20context')[a2_0x3df4f4(0x2f2)](journeyListAction),journeyCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x18c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x308))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c7),a2_0x3df4f4(0x258))['option'](a2_0x3df4f4(0x1bb),a2_0x3df4f4(0x3cd))[a2_0x3df4f4(0x2f2)](async(_0x36100c,_0x2bf01a)=>{const _0x298e29=a2_0x3df4f4,_0x5ea969=new JourneyViewCommand(),_0x52cfa3=program[_0x298e29(0x323)](),_0x1609ed=await createTDXInstance(_0x52cfa3),_0x40c685=await _0x5ea969['run']({'options':{..._0x52cfa3,..._0x2bf01a},'args':[_0x36100c],'tdx':_0x1609ed});process[_0x298e29(0x249)](_0x40c685);}),journeyCmd[a2_0x3df4f4(0x22f)]('stats\x20<name-or-path>')[a2_0x3df4f4(0x357)]('Show\x20journey\x20statistics')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2a7),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x3df4f4(0x2f2)](async(_0x48c37e,_0x3e612c)=>{const _0x5eaf81=a2_0x3df4f4,_0x2b0aea=new JourneyStatsCommand(),_0x573872=program[_0x5eaf81(0x323)](),_0x376a67=await createTDXInstance(_0x573872),_0x5c8f30=await _0x2b0aea[_0x5eaf81(0x1d0)]({'options':{..._0x573872,..._0x3e612c},'args':[_0x48c37e],'tdx':_0x376a67});process['exit'](_0x5c8f30);}),journeyCmd['command'](a2_0x3df4f4(0x1b9))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3d3))[a2_0x3df4f4(0x2f2)](async(_0x151ac0,_0x19deec)=>{const _0x461275=a2_0x3df4f4,_0x562a11=new JourneyPauseCommand(),_0x18bac0=program[_0x461275(0x323)](),_0xc2418c=await createTDXInstance(_0x18bac0),_0x23d3a8=await _0x562a11[_0x461275(0x1d0)]({'options':{..._0x18bac0,..._0x19deec},'args':[_0x151ac0],'tdx':_0xc2418c});process['exit'](_0x23d3a8);}),journeyCmd['command']('resume\x20<name-or-path>')[a2_0x3df4f4(0x357)]('Resume\x20a\x20paused\x20journey')[a2_0x3df4f4(0x2f2)](async(_0x4a846d,_0x406388)=>{const _0x3f6619=a2_0x3df4f4,_0x3fbd43=new JourneyResumeCommand(),_0x1b3b60=program[_0x3f6619(0x323)](),_0x5c1096=await createTDXInstance(_0x1b3b60),_0x40c169=await _0x3fbd43[_0x3f6619(0x1d0)]({'options':{..._0x1b3b60,..._0x406388},'args':[_0x4a846d],'tdx':_0x5c1096});process[_0x3f6619(0x249)](_0x40c169);}),journeyCmd[a2_0x3df4f4(0x22f)]('pull\x20[name]')['description'](a2_0x3df4f4(0x2f3))['option'](a2_0x3df4f4(0x356),'Skip\x20confirmation\x20prompt')['option'](a2_0x3df4f4(0x1be),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x3df4f4(0x2f2)](async(_0x403bae,_0x2be824)=>{const _0x3b18d6=a2_0x3df4f4,_0x36192a=new JourneyPullCommand(),_0x252fe5=program[_0x3b18d6(0x323)](),_0x14f827=await createTDXInstance(_0x252fe5),_0x1901cf=await _0x36192a['run']({'options':{..._0x252fe5,..._0x2be824},'args':_0x403bae?[_0x403bae]:[],'tdx':_0x14f827});process[_0x3b18d6(0x249)](_0x1901cf);}),journeyCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2f1))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1fc))['action'](async(_0x6cca85,_0x436499)=>{const _0x809fc4=a2_0x3df4f4,_0x508e00=new JourneyPushCommand(),_0x36642c=program[_0x809fc4(0x323)](),_0xce5d16=await createTDXInstance(_0x36642c),_0x297817=await _0x508e00['run']({'options':{..._0x36642c,..._0x436499},'args':_0x6cca85?[_0x6cca85]:[],'tdx':_0xce5d16});process['exit'](_0x297817);}),journeyCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x19b))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x352))[a2_0x3df4f4(0x2f2)](async(_0x470927,_0x2af42b)=>{const _0x5502e4=a2_0x3df4f4,_0xfe5dc2=new JourneyValidateCommand(),_0x349b08=program[_0x5502e4(0x323)](),_0x3c9717=await createTDXInstance(_0x349b08),_0x67fea7=await _0xfe5dc2[_0x5502e4(0x1d0)]({'options':{..._0x349b08,..._0x2af42b},'args':_0x470927?[_0x470927]:[],'tdx':_0x3c9717});process['exit'](_0x67fea7);}),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x18e))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3cc))[a2_0x3df4f4(0x2f2)](journeyListAction);const agentSyncCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x23a))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1a7));agentSyncCmd['command'](a2_0x3df4f4(0x2df))['description'](a2_0x3df4f4(0x3c9))[a2_0x3df4f4(0x293)]('-o,\x20--output\x20<dir>',a2_0x3df4f4(0x32c))['option'](a2_0x3df4f4(0x27e),a2_0x3df4f4(0x340))[a2_0x3df4f4(0x2f2)](async(_0x22abc2,_0xf142fa,_0x535ff8)=>{const _0x186002=a2_0x3df4f4,_0x1b20d8=new AgentPullCommand(),_0x100a1f=program[_0x186002(0x323)](),_0x9898c6=await createTDXInstance(_0x100a1f),_0x9cc1c9=[];if(_0x22abc2)_0x9cc1c9['push'](_0x22abc2);if(_0xf142fa)_0x9cc1c9['push'](_0xf142fa);const _0x12adeb=await _0x1b20d8['run']({'options':{..._0x100a1f,..._0x535ff8},'args':_0x9cc1c9,'tdx':_0x9898c6});process[_0x186002(0x249)](_0x12adeb);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x28b))[a2_0x3df4f4(0x357)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x3df4f4(0x293)]('-f,\x20--force',a2_0x3df4f4(0x1f4))['action'](async(_0x23a923,_0xf743e8)=>{const _0x431d44=a2_0x3df4f4,_0x5eda96=new AgentPushCommand(),_0x213142=program[_0x431d44(0x323)](),_0x12ea00=await createTDXInstance(_0x213142),_0x589344=await _0x5eda96[_0x431d44(0x1d0)]({'options':{..._0x213142,..._0xf743e8},'args':_0x23a923?[_0x23a923]:[],'tdx':_0x12ea00});process[_0x431d44(0x249)](_0x589344);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2b2))['description']('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x179),a2_0x3df4f4(0x281))['action'](async(_0x4ee56d,_0xbc27e7)=>{const _0x26e026=a2_0x3df4f4,_0x3f4ecb=new AgentCloneCommand(),_0x2ccb5b=program[_0x26e026(0x323)](),_0x1af025=await createTDXInstance(_0x2ccb5b),_0x433245=await _0x3f4ecb[_0x26e026(0x1d0)]({'options':{..._0x2ccb5b,..._0xbc27e7},'args':_0x4ee56d?[_0x4ee56d]:[],'tdx':_0x1af025});process[_0x26e026(0x249)](_0x433245);}),agentSyncCmd['command']('test\x20[path]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3ba))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x30b),a2_0x3df4f4(0x183))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),'Parse\x20and\x20validate\x20without\x20executing')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2e9),a2_0x3df4f4(0x3bc))[a2_0x3df4f4(0x2f2)](async(_0x5fa512,_0x505e34)=>{const _0x3396a4=a2_0x3df4f4,_0x33857b=new AgentTestCommand(),_0x2444fe=program[_0x3396a4(0x323)](),_0x405d25=await createTDXInstance(_0x2444fe),_0x522f5d=await _0x33857b[_0x3396a4(0x1d0)]({'options':{..._0x2444fe,..._0x505e34},'args':_0x5fa512?[_0x5fa512]:[],'tdx':_0x405d25});process[_0x3396a4(0x249)](_0x522f5d);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x285))[a2_0x3df4f4(0x2f2)](llmAgentListAction),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x175))['description']('Show\x20agent\x20details')[a2_0x3df4f4(0x2f2)](async(_0x6fe4cc,_0x297532)=>{const _0x5bf9ff=a2_0x3df4f4,_0x3deb11=new LLMAgentShowCommand(),_0xc029a8=program[_0x5bf9ff(0x323)](),_0x197315=await createTDXInstance(_0xc029a8),_0x3e8f98=await _0x3deb11[_0x5bf9ff(0x1d0)]({'options':{..._0xc029a8,..._0x297532},'args':[_0x6fe4cc],'tdx':_0x197315});process[_0x5bf9ff(0x249)](_0x3e8f98);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x33c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x277))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2c5),a2_0x3df4f4(0x26c))['option'](a2_0x3df4f4(0x2ce),a2_0x3df4f4(0x36d),a2_0x3df4f4(0x261))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x16d),a2_0x3df4f4(0x178))[a2_0x3df4f4(0x293)]('--max-tool-iterations\x20<n>',a2_0x3df4f4(0x3b6),'4')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x388),a2_0x3df4f4(0x1ee),a2_0x3df4f4(0x3ab))['action'](async(_0x406560,_0x5d3c8a)=>{const _0x45fe74=a2_0x3df4f4,_0x380434=new LLMAgentCreateCommand(),_0x30e3e7=program[_0x45fe74(0x323)](),_0x572e69=await createTDXInstance(_0x30e3e7),_0x33ff49=await _0x380434[_0x45fe74(0x1d0)]({'options':{..._0x30e3e7,..._0x5d3c8a},'args':[_0x406560],'tdx':_0x572e69});process[_0x45fe74(0x249)](_0x33ff49);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x184))[a2_0x3df4f4(0x357)]('Update\x20an\x20existing\x20agent')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x27f),a2_0x3df4f4(0x22b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2f4),a2_0x3df4f4(0x2c2))['option'](a2_0x3df4f4(0x31f),a2_0x3df4f4(0x24f))['option'](a2_0x3df4f4(0x16d),a2_0x3df4f4(0x178))[a2_0x3df4f4(0x2f2)](async(_0xecfe4e,_0x5bb355)=>{const _0x5666a3=a2_0x3df4f4,_0x4ac002=new LLMAgentUpdateCommand(),_0x444145=program[_0x5666a3(0x323)](),_0xba0546=await createTDXInstance(_0x444145),_0x1b90f3=await _0x4ac002['run']({'options':{..._0x444145,..._0x5bb355},'args':[_0xecfe4e],'tdx':_0xba0546});process['exit'](_0x1b90f3);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x27a))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x27c))[a2_0x3df4f4(0x2f2)](async(_0x404319,_0x56842c)=>{const _0x182ed0=a2_0x3df4f4,_0x5927a8=new LLMAgentDeleteCommand(),_0xe7bedc=program[_0x182ed0(0x323)](),_0x2452d6=await createTDXInstance(_0xe7bedc),_0x1c8f80=await _0x5927a8[_0x182ed0(0x1d0)]({'options':{..._0xe7bedc,..._0x56842c},'args':[_0x404319],'tdx':_0x2452d6});process['exit'](_0x1c8f80);});export{program};export function runCLI(){const _0x3f10fa=a2_0x3df4f4,_0x18a949=!process['argv']['slice'](0x2)[_0x3f10fa(0x297)];showBriefHelp=_0x18a949,program[_0x3f10fa(0x319)](process[_0x3f10fa(0x2a4)]),_0x18a949&&program[_0x3f10fa(0x222)](),process[_0x3f10fa(0x2ea)][_0x3f10fa(0x201)]&&process[_0x3f10fa(0x2a4)][_0x3f10fa(0x297)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)['then'](_0x10ec25=>{_0x10ec25&&displayUpdateNotification(_0x10ec25);})[_0x3f10fa(0x271)](()=>{});}
|
|
1
|
+
const a2_0xdfae8a=a2_0x371a;(function(_0x52742d,_0x553daa){const _0x1729a8=a2_0x371a,_0x11e88f=_0x52742d();while(!![]){try{const _0x3c8954=-parseInt(_0x1729a8(0x2f1))/0x1+-parseInt(_0x1729a8(0x338))/0x2+-parseInt(_0x1729a8(0x1c4))/0x3*(parseInt(_0x1729a8(0x2c2))/0x4)+parseInt(_0x1729a8(0x3f1))/0x5+parseInt(_0x1729a8(0x1e6))/0x6+parseInt(_0x1729a8(0x1a3))/0x7+parseInt(_0x1729a8(0x326))/0x8;if(_0x3c8954===_0x553daa)break;else _0x11e88f['push'](_0x11e88f['shift']());}catch(_0x1be566){_0x11e88f['push'](_0x11e88f['shift']());}}}(a2_0x1f5a,0x3492a));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';function a2_0x1f5a(){const _0x5a2f61=['--interval\x20<range>','profiles','connection','Attempt\x20ID','8BvuCAU','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','Job\x20management\x20commands','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','push\x20[source-dir]','trace','List\x20journeys\x20in\x20current\x20context','Follow/watch\x20timeline\x20for\x20running\x20attempts','Output\x20file\x20path\x20(default:\x20<name>.yml)','Output\x20as\x20JSON\x20Lines','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','use\x20[resource]\x20[value]','Filtering\x20rule\x20as\x20JSON\x20string','isArray','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','list','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','agents\x20[pattern]','Agent\x20description','Start\x20a\x20new\x20chat\x20session','--master','describe','HTML\x20template\x20content','Open\x20journey\x20in\x20web\x20browser','-w,\x20--web','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','create\x20<parent_name>\x20<folder_name>','Read\x20SQL\x20query\x20from\x20file','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','--dry-run','pause\x20<name-or-id>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Usage:\x20','--stage\x20<name>','name','delete\x20<agent-name>','pull\x20[name]','action','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','info\x20[segment_name]','-f,\x20--force','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','kill','create\x20<segment_name>','subcommandTerm','379527aglttc','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','user','New\x20segment\x20name','grapesjs','directory','Read\x20query\x20from\x20file','-c,\x20--continue','--rule-file\x20<file>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Parent\x20folder\x20name\x20for\x20nested\x20folders','Get\x20job\x20results','--agent\x20<ref>','--full','Database\x20to\x20use\x20(overrides\x20context)','opts','outputHelp','push\x20[target]','Workflow\x20session\x20management','Workspace\x20description','remove\x20<name>','--to\x20<timestamp>','Export\x20journey(s)\x20as\x20YAML\x20files','--debug','view\x20[segment_name]','describe\x20[table]','show\x20<job-id>','journeys\x20[pattern]','connections','--clear','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','AI-native\x20CLI\x20for\x20Treasure\x20Data','isTTY','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','--timeout\x20<seconds>','json','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','chat\x20[message...]','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--subject\x20<subject>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','after','Show\x20timeline\x20for\x20specific\x20attempt','--customer-group\x20<json>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','hook','Output\x20as\x20JSON','LLM\x20agent\x20management','Create\x20a\x20new\x20LLM\x20project','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Folder\x20description','2123416daLckZ','Kill\x20a\x20job','--json','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','_hidden','description','Resume\x20a\x20paused\x20journey','--name\x20<new-name>','INVALID_ARGUMENT','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Campaign\x20name','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Maximum\x20recursion\x20depth\x20(default:\x2010)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','journey','[DEPRECATED]\x20Segment\x20folder\x20management','pull\x20[project]\x20[agent-name]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','173900LyOGAL','Project\x20description','run\x20[name]','join','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','argumentTerm','Maximum\x20tool\x20iterations\x20(default:\x204)','pull\x20<project>\x20[target-dir]','models','Preview\x20changes\x20without\x20writing\x20files','--name\x20<name>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','job','Show\x20master\x20table\x20sample\x20data','List\x20jobs','Table\x20management\x20commands','show\x20<agent-name>','--plaintext\x20<text>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Attributes\x20as\x20JSON\x20string','show\x20[name]','attempts\x20[project]','Clear\x20session\x20context','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','-r,\x20--recursive','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--name\x20<text>','INFO','map','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Change\x20to\x20directory\x20before\x20executing\x20command','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Pull\x20workflow\x20project\x20to\x20local\x20folder','--type\x20<type>','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','stderr','Database\x20name\x20(default:\x20information_schema)','update\x20<agent-name>','use\x20[name]','forEach','Updated\x20schedule\x20option','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','result\x20<job-id>','Show\x20connection\x20details\x20by\x20name','delete\x20<args...>','Make\x20segment\x20invisible\x20(default:\x20visible)','Remove\x20API\x20key\x20from\x20system\x20keychain','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Preview\x20operation\x20without\x20executing','--limit\x20<rows>','llm','required','--parent-segment\x20<name>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Resume\x20from\x20specific\x20task\x20(retry)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Override\x20project\x20name','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--limit\x20<n>','databases\x20[pattern]','Skip\x20validation\x20of\x20.dig\x20files','--folder\x20<name>','--include-stats','--system-prompt\x20<text>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','--reason\x20<text>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--color','Show\x20journey\x20statistics','upload\x20[project-name-or-dir]','Plaintext\x20template\x20content','tdx\x20',',\x20version\x20','System\x20prompt/instructions\x20(default:\x20empty)','--customer-group-file\x20<file>','--jsonl','run','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--max-depth\x20<depth>','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','projects\x20[pattern]','Show\x20agent\x20details','workflows\x20[project]','--workspace\x20<name>','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','List\x20journeys\x20(alias\x20for\x20journey\x20list)','command','update\x20<name-or-id>','Create\x20a\x20new\x20profile','Output\x20directory','registeredArguments','Pull\x20child\x20segments\x20to\x20YAML\x20files','push\x20[name]','-1d','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--yes','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','list\x20[path]','List\x20available\x20LLM\x20models','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Trino\x20catalog\x20(default:\x20td)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Email\x20template\x20management','--schedule-option\x20<value>','use\x20[project]','--behaviors\x20<json>','slice','delete\x20<name-or-id>','--trace','-v,\x20--verbose','query\x20[sql]','Workflow\x20attempt\x20management','Workspace\x20management','show\x20<name>','--param\x20<key=value>','Campaign\x20description','Show\x20workspace\x20details','--model\x20<name>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--behavior\x20[name]','-o,\x20--output\x20<file>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--llm-proxy\x20[url]','--behaviors-file\x20<file>','proxy','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','filter','sonnet','padEnd','--from\x20<timestamp>','--description\x20<desc>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--schedule-type\x20<type>','push\x20[parent_or_file]','Campaign\x20type\x20(email\x20or\x20push)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Email\x20sender\x20ID\x20for\x20delivery','retry\x20<session-id>','Push\x20without\x20confirmation','Filtering\x20rule\x20from\x20JSON\x20file','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','campaign','stats\x20<name-or-path>','apiKey','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Add\x20behaviors\x20from\x20JSON\x20file','Overwrite\x20local\x20changes\x20without\x20confirmation','Workspace\x20name\x20(required)','site','tasks','Create\x20a\x20workspace','-y,\x20--yes','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','use\x20<name>','-p,\x20--profile\x20<name>','validate\x20[name]','Show\x20email\x20template\x20details','delete\x20<project-name-or-id>','set\x20<key=value>','--add-attributes\x20<json>','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','jsonl','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','parent_segment','show\x20[table]','--table','information_schema','retry','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','attempt','status','Add\x20behaviors\x20as\x20JSON\x20string','schema\x20<type>','--agent\x20<name>','update\x20<name>','1455700bxmgSl','logs','Email\x20subject\x20template','auth','workspaces\x20[pattern]','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Manage\x20workflow\x20project\x20secrets','help','show\x20[segment_name]','List\x20all\x20available\x20profiles','Create\x20a\x20new\x20agent\x20in\x20current\x20project','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','DEBUG','restore\x20<folder>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','Directory\x20does\x20not\x20exist:\x20','replace','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','\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','settings\x20<type>','--force','Show\x20journey\x20details','padWidth','510741TeNVLI','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','optionTerm','sessions\x20[project]','project','Options:','--new','--invisible','Update\x20a\x20workspace','Workspace\x20name','--session-time\x20<time>','Show\x20the\x20most\x20recent\x20chat','--reeval','segment','launch\x20<name-or-id>','folder','Set\x20or\x20show\x20parent\x20segment\x20context','create\x20[name]','\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','Updated\x20description','Force\x20retry\x20even\x20if\x20not\x20failed','commands','create','End\x20time\x20filter\x20(ISO\x208601\x20format)','--port\x20<number>','--segment\x20<path>','list\x20[project]','submit\x20[query]','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','view\x20[name]','tdx','clone\x20[source-dir]','parent','356241qTcwvG','chats','use\x20<path>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Pull\x20specific\x20revision\x20(default:\x20latest)','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','--max-tool-iterations\x20<n>','clear','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','template','workflow','-u,\x20--use','--catalog\x20<catalog>','configureHelp','argv','--job-type\x20<type>','parse','Authentication\x20management','option','show\x20<folder_ref>','Database\x20to\x20query\x20(default:\x20information_schema)','delete\x20<name>','--include-retried','update\x20<segment_name>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--timezone\x20<tz>','trino','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','table','-o,\x20--output\x20<folder>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','1738674vdEOeP','parents\x20[pattern]','Show\x20only\x20master\x20table\x20validation','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--database\x20<db>','Folder\x20name\x20for\x20organization','Updated\x20timezone','tsv','--kind\x20<type>','--start-at\x20<datetime>','set\x20<args...>','show\x20<name-or-id>','Name\x20for\x20the\x20new\x20project\x20(required)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','view\x20<name-or-path>','Data\x20connection\x20management\x20(for\x20activations/exports)','-f,\x20--file\x20<path>','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','debug','push','[options]\x20--\x20[claude-code-args...]','Duplicate\x20a\x20campaign','--params\x20<json>','--no-proxy','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Skip\x20confirmation\x20prompt','log','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','desc\x20[name]','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--skip-validation','commandUsage','Database\x20management\x20commands','CDP\x20segment\x20management\x20commands','CDP\x20Journey\x20Orchestration\x20commands','--json-columns\x20<cols>','Pause\x20a\x20campaign','[attempt-id]','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Skip\x20confirmation\x20prompts','0.7','List\x20secret\x20keys\x20for\x20a\x20project','Custom\x20revision\x20name\x20(default:\x20timestamp)','Include\x20execution\x20statistics','segments\x20[path]','logLevel','--add-behaviors-file\x20<file>','Invalid\x20editor\x20type:\x20','desc','Arguments:','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','--no-count-population','Open\x20segment\x20in\x20web\x20browser','parent-segment','jobs','push\x20[path]','--attribute\x20[name]','--email-sender-id\x20<id>','-o,\x20--output\x20<dir>','Workflow\x20(Digdag)\x20management\x20commands','validate\x20[target]','length','engage','Start\x20time\x20filter\x20(ISO\x208601\x20format)','New\x20workspace\x20name','argument','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','gitRevision','Run\x20tests\x20for\x20an\x20LLM\x20agent','Read\x20request\x20body\x20from\x20file','Delete\x20a\x20campaign','Move\x20to\x20folder','Skip\x20population\x20counting','activations\x20<segment_name>','--limit\x20<number>','then','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Remove\x20a\x20profile','--starter-message\x20<text>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','fields\x20[parent_name]','--in\x20<name>','--session\x20<id>','preview\x20[file]','--delete','-H,\x20--header\x20<header>','desc\x20[segment_name]','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--no-eval','--attempt-id\x20<id>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','error','Include\x20retried\x20attempts','push\x20[file]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Show\x20campaign\x20details','create\x20<name>','Validate\x20journey\x20YAML\x20files\x20locally','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','list\x20[pattern]','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--prompt\x20<text>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Output\x20folder\x20(default:\x20{project_name}.llm)','statusline','users','Customer\x20group\x20from\x20JSON\x20file','Agent\x20prompt/instructions','claude\x20[args...]','Request\x20body\x20as\x20JSON\x20string','--status\x20<status>','isDirectory','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--description\x20<text>','validate\x20[file]','hidden','flatMap','--enriched','usage','use\x20<project-name>','Starter\x20message','--revision\x20<revision>','Execute\x20tests\x20without\x20evaluation\x20(Phase\x202\x20only)','Update\x20a\x20campaign','includes','buildTime','Resume\x20a\x20conversation\x20(shows\x20selector)','TRACE','test\x20[path]','--default','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','List\x20agents\x20in\x20current\x20project','port','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','summary','--name\x20<new_name>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','addHelpText','Path\x20is\x20not\x20a\x20directory:\x20','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','--editor-type\x20<type>','alias','Workflow\x20project\x20management','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','preview\x20[name]','Clear\x20workflow\x20project\x20context','sql\x20[name]','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','User\x20management\x20commands','\x20-\x20built\x20','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','injectIntoOptions','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','timeline\x20[project.workflow]','--rule\x20<json>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','requiredOption','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Add\x20attributes\x20from\x20JSON\x20file','Resume\x20a\x20paused\x20campaign','Resume\x20from\x20specific\x20task','--name\x20<names>','types','--in\x20<database>','history\x20[chat-id]','-X,\x20--method\x20<method>','-d,\x20--database\x20<database>','Attributes\x20from\x20JSON\x20file','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','Preview\x20changes\x20without\x20pushing','attempt:','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','setup','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Parent\x20segment\x20description','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','templates\x20[pattern]','--project\x20<name>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','folders\x20<parent_name>','--attributes\x20<json>','GET','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Pause\x20a\x20running\x20journey','agent','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--type\x20<api_type>','Preview\x20without\x20creating\x20the\x20project','profile','--last','Include\x20retried\x20attempts\x20(for\x20list)','sql\x20[segment_name]','--attributes-file\x20<file>','Run\x20Trino\x20query\x20with\x20streaming\x20results','database','Delete\x20a\x20workspace','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Master\x20table\x20name','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','--resume-from\x20<task>','Set\x20a\x20profile\x20configuration\x20value','--follow','LLM\x20project\x20management','format','--add-behaviors\x20<json>','Include\x20subtasks\x20in\x20tasks\x20output','Save\x20output\x20to\x20file'];a2_0x1f5a=function(){return _0x5a2f61;};return a2_0x1f5a();}import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0xdfae8a(0x1d3)][a2_0xdfae8a(0x266)]('--version')){let versionOutput=a2_0xdfae8a(0x387)+currentVersion;buildInfo[a2_0xdfae8a(0x22a)]&&!currentVersion[a2_0xdfae8a(0x266)](buildInfo[a2_0xdfae8a(0x22a)])&&(versionOutput+='\x20('+buildInfo[a2_0xdfae8a(0x22a)]+')'),buildInfo[a2_0xdfae8a(0x267)]&&(versionOutput+=a2_0xdfae8a(0x27f)+buildInfo[a2_0xdfae8a(0x267)]),console[a2_0xdfae8a(0x201)](versionOutput),process['exit'](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0xdfae8a(0x311);buildInfo[a2_0xdfae8a(0x22a)]&&!currentVersion[a2_0xdfae8a(0x266)](buildInfo['gitRevision'])?description+=a2_0xdfae8a(0x388)+currentVersion+'\x20('+buildInfo[a2_0xdfae8a(0x22a)]+')':description+=a2_0xdfae8a(0x388)+currentVersion;program[a2_0xdfae8a(0x2e5)](a2_0xdfae8a(0x1c1))[a2_0xdfae8a(0x32b)](description),program[a2_0xdfae8a(0x1d7)]('-C,\x20--directory\x20<path>',a2_0xdfae8a(0x356))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3db),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0xdfae8a(0x1d7)]('--site\x20<site>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','us01')['option']('--format\x20<format>',a2_0xdfae8a(0x2ed))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3e7),a2_0xdfae8a(0x2d3))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x328),a2_0xdfae8a(0x382))['option'](a2_0xdfae8a(0x38b),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0xdfae8a(0x1d7)]('--tsv',a2_0xdfae8a(0x2cd))[a2_0xdfae8a(0x1d7)]('--output\x20<file>',a2_0xdfae8a(0x2bd))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x231),a2_0xdfae8a(0x1f4))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x383),a2_0xdfae8a(0x2fb),![])[a2_0xdfae8a(0x1d7)]('--no-color',a2_0xdfae8a(0x24d),![])['option'](a2_0xdfae8a(0x3ae),'Enable\x20verbose\x20logging',![])['option'](a2_0xdfae8a(0x309),a2_0xdfae8a(0x202))['option'](a2_0xdfae8a(0x3ad),a2_0xdfae8a(0x324))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x314),'Set\x20operation\x20timeout\x20in\x20seconds','30')['option'](a2_0xdfae8a(0x2e0),a2_0xdfae8a(0x36c),![])[a2_0xdfae8a(0x1d7)]('-y,\x20--yes',a2_0xdfae8a(0x20e),![])[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x239),a2_0xdfae8a(0x1bf))[a2_0xdfae8a(0x1d7)]('-d,\x20--database\x20<name>',a2_0xdfae8a(0x300))['option'](a2_0xdfae8a(0x238),a2_0xdfae8a(0x379))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x370),a2_0xdfae8a(0x32f))[a2_0xdfae8a(0x1d7)]('--llm-project\x20<name>',a2_0xdfae8a(0x373)),program[a2_0xdfae8a(0x1d2)]({'formatHelp':(_0x4ec157,_0x58fdb7)=>{const _0x16db82=a2_0xdfae8a,_0x2c2155=_0x58fdb7[_0x16db82(0x1a2)](_0x4ec157,_0x58fdb7),_0x52d41b=0x2,_0x4468ab=0x2;function _0x4af294(_0x394ad4){const _0x503c60=_0x16db82,_0x570aa4=_0x394ad4;return!!(_0x570aa4[_0x503c60(0x32a)]||_0x570aa4[_0x503c60(0x25d)]);}function _0x1b51b2(_0x39e0ca,_0x5e57fe){const _0x2cae79=_0x16db82;if(_0x5e57fe){const _0x35d029=''+_0x39e0ca[_0x2cae79(0x3c1)](_0x2c2155+_0x4468ab)+_0x5e57fe;return _0x35d029;}return _0x39e0ca;}function _0x48b294(_0x3912a7){const _0x2d6b9d=_0x16db82;return _0x3912a7[_0x2d6b9d(0x33b)]('\x0a')[_0x2d6b9d(0x19b)](/^/gm,'\x20'['repeat'](_0x52d41b));}const _0x5b2edb=[];_0x5b2edb[_0x16db82(0x1fa)](_0x16db82(0x2e3)+_0x58fdb7[_0x16db82(0x206)](_0x4ec157));const _0x33defc=_0x58fdb7['commandDescription'](_0x4ec157);_0x33defc&&(_0x5b2edb['push'](''),_0x5b2edb[_0x16db82(0x1fa)](_0x33defc));const _0x19e4da=_0x4ec157[_0x16db82(0x1b8)][_0x16db82(0x3bf)](_0x517133=>!_0x4af294(_0x517133));if(_0x19e4da[_0x16db82(0x224)]>0x0){if(_0x4ec157['name']()===_0x16db82(0x1c1)){const _0x423719=_0x4ec157['opts'](),_0x260c6b=!_0x423719['noColor']&&process['stdout'][_0x16db82(0x312)],_0x22b82c=COMMAND_CATEGORIES,_0x444b17=(_0x1ebe23,_0x8b039a)=>_0x260c6b?_0x8b039a(_0x1ebe23):_0x1ebe23,_0x4e8b06=new Map();_0x19e4da['forEach'](_0x2c8838=>{const _0x4c9b5a=_0x16db82;_0x4e8b06['set'](_0x2c8838[_0x4c9b5a(0x2e5)](),_0x2c8838);}),_0x22b82c[_0x16db82(0x361)](_0x16e01b=>{const _0x2779ff=_0x16db82,_0x40d011=_0x16e01b[_0x2779ff(0x1b8)][_0x2779ff(0x25e)](_0x4f0f06=>_0x4e8b06['get'](_0x4f0f06)??[]);if(_0x40d011[_0x2779ff(0x224)]>0x0){_0x5b2edb[_0x2779ff(0x1fa)](''),_0x5b2edb[_0x2779ff(0x1fa)](_0x444b17(_0x16e01b[_0x2779ff(0x2e5)]+':',_0x16e01b['colorFn']));const _0x347479=_0x40d011[_0x2779ff(0x354)](_0x1d3a56=>{const _0x1bed9c=_0x2779ff,_0x24d7bc=_0x58fdb7[_0x1bed9c(0x2f0)](_0x1d3a56),_0x3458e3=_0x58fdb7['subcommandDescription'](_0x1d3a56);return _0x1b51b2(_0x24d7bc,_0x3458e3);});_0x5b2edb[_0x2779ff(0x1fa)](_0x48b294(_0x347479));}}),_0x5b2edb[_0x16db82(0x1fa)](''),_0x5b2edb[_0x16db82(0x1fa)](_0x16db82(0x272));}else{const _0x56cd28=_0x19e4da[_0x16db82(0x354)](_0x368c8a=>{const _0xb70244=_0x16db82,_0x34cef8=_0x58fdb7[_0xb70244(0x2f0)](_0x368c8a),_0x3a5b1b=_0x58fdb7['subcommandDescription'](_0x368c8a);return _0x1b51b2(_0x34cef8,_0x3a5b1b);});_0x5b2edb[_0x16db82(0x1fa)](''),_0x5b2edb[_0x16db82(0x1fa)]('Commands:'),_0x5b2edb[_0x16db82(0x1fa)](_0x48b294(_0x56cd28));}}if(showBriefHelp&&_0x4ec157[_0x16db82(0x2e5)]()===_0x16db82(0x1c1))_0x5b2edb[_0x16db82(0x1fa)](''),_0x5b2edb[_0x16db82(0x1fa)](_0x16db82(0x29f));else{const _0x5d94c2=_0x4ec157['options'][_0x16db82(0x3bf)](_0x56d674=>!_0x4af294(_0x56d674));if(_0x5d94c2[_0x16db82(0x224)]>0x0){const _0x54cf67=_0x5d94c2['map'](_0x117ff6=>{const _0x3e6c7b=_0x16db82,_0x1a234e=_0x58fdb7[_0x3e6c7b(0x1a5)](_0x117ff6),_0x14b08a=_0x58fdb7['optionDescription'](_0x117ff6);return _0x1b51b2(_0x1a234e,_0x14b08a);});_0x5b2edb[_0x16db82(0x1fa)](''),_0x5b2edb['push'](_0x16db82(0x1a8)),_0x5b2edb['push'](_0x48b294(_0x54cf67));}}const _0x4ad1a5=(_0x4ec157[_0x16db82(0x39b)]||[])[_0x16db82(0x3bf)](_0x310867=>!_0x4af294(_0x310867));if(_0x4ad1a5[_0x16db82(0x224)]>0x0){const _0x52d928=_0x4ad1a5[_0x16db82(0x354)](_0xffa402=>{const _0x4942f8=_0x16db82,_0x43ef84=_0x58fdb7[_0x4942f8(0x33d)](_0xffa402),_0x4e9e63=_0x58fdb7['argumentDescription'](_0xffa402);return _0x1b51b2(_0x43ef84,_0x4e9e63);});_0x5b2edb[_0x16db82(0x1fa)](''),_0x5b2edb['push'](_0x16db82(0x218)),_0x5b2edb[_0x16db82(0x1fa)](_0x48b294(_0x52d928));}return _0x5b2edb['join']('\x0a')+'\x0a';},'subcommandTerm':_0xe1015e=>{const _0x40ef73=a2_0xdfae8a,_0x291e23=(_0xe1015e[_0x40ef73(0x39b)]||[])['map'](_0x24dc0b=>_0x24dc0b[_0x40ef73(0x36f)]?'<'+_0x24dc0b[_0x40ef73(0x2e5)]()+'>':'['+_0x24dc0b[_0x40ef73(0x2e5)]()+']')[_0x40ef73(0x33b)]('\x20'),_0x5c7cc8=_0xe1015e['aliases'](),_0x5b3dba=_0x5c7cc8[_0x40ef73(0x224)]>0x0?_0xe1015e[_0x40ef73(0x2e5)]()+',\x20'+_0x5c7cc8[_0x40ef73(0x33b)](',\x20'):_0xe1015e[_0x40ef73(0x2e5)]();return _0x291e23?_0x5b3dba+'\x20'+_0x291e23:_0x5b3dba;}}),program[a2_0xdfae8a(0x31f)]('preAction',_0x3ee5c0=>{const _0x186cbb=a2_0xdfae8a,_0x1468dc=_0x3ee5c0[_0x186cbb(0x301)]();if(_0x1468dc[_0x186cbb(0x2f7)]){const _0x1960fe=resolve(_0x1468dc[_0x186cbb(0x2f7)]),_0x4b4e26=_0x1960fe!==_0x1468dc['directory']?'\x20(resolved\x20to\x20'+_0x1960fe+')':'';if(!existsSync(_0x1960fe))throw new SDKError(ErrorCode[_0x186cbb(0x32e)],_0x186cbb(0x19a)+_0x1468dc[_0x186cbb(0x2f7)]+_0x4b4e26,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x54c6d1=statSync(_0x1960fe);if(!_0x54c6d1[_0x186cbb(0x258)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x186cbb(0x274)+_0x1468dc[_0x186cbb(0x2f7)]+_0x4b4e26,undefined,{'helpText':_0x186cbb(0x3a6)});process['chdir'](_0x1960fe);}if(!_0x1468dc[_0x186cbb(0x2ba)]){if(_0x1468dc[_0x186cbb(0x1e2)])_0x1468dc[_0x186cbb(0x2ba)]=_0x186cbb(0x1e2);else{if(_0x1468dc[_0x186cbb(0x315)])_0x1468dc['format']=_0x186cbb(0x315);else{if(_0x1468dc[_0x186cbb(0x3e3)])_0x1468dc[_0x186cbb(0x2ba)]=_0x186cbb(0x3e3);else _0x1468dc[_0x186cbb(0x1ed)]&&(_0x1468dc[_0x186cbb(0x2ba)]=_0x186cbb(0x1ed));}}}_0x1468dc['in']&&!_0x1468dc[_0x186cbb(0x2b0)]&&(_0x1468dc[_0x186cbb(0x2b0)]=_0x1468dc['in']);if(_0x1468dc[_0x186cbb(0x2c8)])_0x1468dc[_0x186cbb(0x214)]=LogLevel[_0x186cbb(0x269)];else{if(_0x1468dc[_0x186cbb(0x1f9)])_0x1468dc[_0x186cbb(0x214)]=LogLevel[_0x186cbb(0x196)];else _0x1468dc['logLevel']===undefined&&(_0x1468dc['logLevel']=LogLevel[_0x186cbb(0x353)]);}});async function createTDXInstance(_0x3552a9){const _0x4add3f=a2_0xdfae8a,_0x16c63f=await GlobalContext['createAsync'](_0x3552a9);return _0x16c63f[_0x4add3f(0x281)](_0x3552a9),TDX[_0x4add3f(0x1b9)]({'site':_0x16c63f[_0x4add3f(0x3d5)],'apiKey':_0x16c63f[_0x4add3f(0x3d0)],'logLevel':_0x16c63f[_0x4add3f(0x214)],'profile':_0x16c63f[_0x4add3f(0x2aa)]});}const databaseCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2b0))['alias']('db')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x207)),databaseListAction=async(_0x297810,_0x41544e)=>{const _0x4cf6ff=a2_0xdfae8a,_0x1b9e20=new DatabasesCommand(),_0x821bdf=program[_0x4cf6ff(0x301)](),_0x1164e6=await createTDXInstance(_0x821bdf),_0x6514ad=await _0x1b9e20[_0x4cf6ff(0x38c)]({'options':{..._0x821bdf,..._0x41544e},'args':_0x297810?[_0x297810]:[],'tdx':_0x1164e6});gracefulExit(_0x6514ad);};databaseCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x24a))[a2_0xdfae8a(0x32b)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0xdfae8a(0x2e8)](databaseListAction),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x37b),{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0xdfae8a(0x2e8)](databaseListAction),program['command'](a2_0xdfae8a(0x317))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2e9))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2fe),a2_0xdfae8a(0x2b5))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1a9),a2_0xdfae8a(0x2d6))['action'](async(_0x379e31,_0x253770)=>{const _0x5e67a0=a2_0xdfae8a,_0x1f0afd=new ChatCommand(),_0x27d428=program['opts'](),_0x519f8c=await createTDXInstance(_0x27d428),_0x457900=await _0x1f0afd[_0x5e67a0(0x38c)]({'options':{..._0x27d428,..._0x253770},'args':_0x379e31,'tdx':_0x519f8c});gracefulExit(_0x457900);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0xdfae8a(0x270)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0xdfae8a(0x273)]('after',a2_0xdfae8a(0x1b5))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x292),a2_0xdfae8a(0x2a7),a2_0xdfae8a(0x2a2))[a2_0xdfae8a(0x1d7)]('--data\x20<data>',a2_0xdfae8a(0x256))['option']('-f,\x20--file\x20<path>',a2_0xdfae8a(0x22c))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x23c),a2_0xdfae8a(0x323),(_0x5e6253,_0x1497f4)=>{return _0x1497f4?[..._0x1497f4,_0x5e6253]:[_0x5e6253];})[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2a8),a2_0xdfae8a(0x27d),'td')['action'](async(_0x12538c,_0x490d2a)=>{const _0x427e4f=a2_0xdfae8a;if(!_0x12538c){apiCmd[_0x427e4f(0x3f8)]();return;}const _0xabfe1d=new ApiCommand(),_0x48e640=program[_0x427e4f(0x301)](),_0x3f4e0d=await createTDXInstance(_0x48e640),_0x530755=await _0xabfe1d[_0x427e4f(0x38c)]({'options':{..._0x48e640,..._0x490d2a},'args':[_0x12538c],'tdx':_0x3f4e0d});gracefulExit(_0x530755);});program[a2_0xdfae8a(0x397)]('mcp')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x34f))[a2_0xdfae8a(0x273)]('after',a2_0xdfae8a(0x295))['action'](async _0x2d306a=>{const _0x75782a=a2_0xdfae8a,_0x407d58=new MCPCommand(),_0x5c2b7e=program[_0x75782a(0x301)](),_0x4224d7=await createTDXInstance(_0x5c2b7e),_0x582cd6=await _0x407d58[_0x75782a(0x38c)]({'options':{..._0x5c2b7e,..._0x2d306a},'args':[],'tdx':_0x4224d7});gracefulExit(_0x582cd6);});const tableCmd=program['command'](a2_0xdfae8a(0x1e2))['description'](a2_0xdfae8a(0x347)),tableListAction=async(_0x4b94c9,_0x2c10ec)=>{const _0x135b5e=a2_0xdfae8a,_0x3b961d=new TablesCommand(),_0x16fb88=program[_0x135b5e(0x301)](),_0x1ec356=await createTDXInstance(_0x16fb88);_0x2c10ec['in']&&(_0x2c10ec[_0x135b5e(0x2b0)]=_0x2c10ec['in']);const _0x135189=await _0x3b961d['run']({'options':{..._0x16fb88,..._0x2c10ec},'args':_0x4b94c9?[_0x4b94c9]:[],'tdx':_0x1ec356});gracefulExit(_0x135189);};tableCmd['command']('list\x20[pattern]')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x19d))['option'](a2_0xdfae8a(0x293),a2_0xdfae8a(0x245))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x290),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](tableListAction),program[a2_0xdfae8a(0x397)]('tables\x20[pattern]',{'hidden':!![]})[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x331))[a2_0xdfae8a(0x1d7)]('-d,\x20--database\x20<database>',a2_0xdfae8a(0x245))['option'](a2_0xdfae8a(0x290),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0xdfae8a(0x2e8)](tableListAction),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3e6))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x23e))['option'](a2_0xdfae8a(0x293),a2_0xdfae8a(0x29a))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x290),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0xdfae8a(0x2e8)](async(_0x5bdd9a,_0x33f056)=>{const _0x2719c2=a2_0xdfae8a,_0x439ab2=new ShowCommand(),_0x3bd556=program[_0x2719c2(0x301)](),_0x9ce713=await createTDXInstance(_0x3bd556);_0x33f056['in']&&(_0x33f056[_0x2719c2(0x2b0)]=_0x33f056['in']);const _0x52d2bc=await _0x439ab2[_0x2719c2(0x38c)]({'options':{..._0x3bd556,..._0x33f056},'args':_0x5bdd9a?[_0x5bdd9a]:[],'tdx':_0x9ce713});gracefulExit(_0x52d2bc);}),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x30b))[a2_0xdfae8a(0x277)](a2_0xdfae8a(0x217))['description']('Describe\x20table\x20schema')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x293),a2_0xdfae8a(0x29a))['option'](a2_0xdfae8a(0x290),a2_0xdfae8a(0x379))[a2_0xdfae8a(0x2e8)](async(_0x2b2ed9,_0x259cf5)=>{const _0x235c73=a2_0xdfae8a,_0x9347f4=new DescribeCommand(),_0xe2ed1b=program['opts'](),_0x5ffdd3=await createTDXInstance(_0xe2ed1b);_0x259cf5['in']&&(_0x259cf5[_0x235c73(0x2b0)]=_0x259cf5['in']);const _0x5aff37=await _0x9347f4[_0x235c73(0x38c)]({'options':{..._0xe2ed1b,..._0x259cf5},'args':_0x2b2ed9?[_0x2b2ed9]:[],'tdx':_0x5ffdd3});gracefulExit(_0x5aff37);}),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3af))['description'](a2_0xdfae8a(0x2af))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x293),a2_0xdfae8a(0x1d9))['option'](a2_0xdfae8a(0x290),a2_0xdfae8a(0x379))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1d1),a2_0xdfae8a(0x3a5))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1f7),a2_0xdfae8a(0x2de))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x36d),a2_0xdfae8a(0x2f2),'40')[a2_0xdfae8a(0x2e8)](async(_0x5a4b6c,_0x2e6b45)=>{const _0x1d9484=a2_0xdfae8a,_0x4c4f4c=new QueryCommand(),_0x4b7e76=program['opts'](),_0x5d94f6=await createTDXInstance(_0x4b7e76);_0x2e6b45['in']&&(_0x2e6b45['database']=_0x2e6b45['in']);const _0x50b049=await _0x4c4f4c[_0x1d9484(0x38c)]({'options':{..._0x4b7e76,..._0x2e6b45},'args':_0x5a4b6c?[_0x5a4b6c]:[],'tdx':_0x5d94f6});gracefulExit(_0x50b049);});const segmentCmd=program['command'](a2_0xdfae8a(0x1b0))[a2_0xdfae8a(0x277)]('sg')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x208)),segmentListAction=async(_0x9ab93c,_0x1ef1a0)=>{const _0x265612=a2_0xdfae8a,_0x33a0d4=new SegmentsCommand(),_0x5452c8=program[_0x265612(0x301)](),_0x1c5f10=await createTDXInstance(_0x5452c8),_0x510113=await _0x33a0d4[_0x265612(0x38c)]({'options':{..._0x5452c8,..._0x1ef1a0},'args':_0x9ab93c?[_0x9ab93c]:[],'tdx':_0x1c5f10});gracefulExit(_0x510113);};segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3a2))['description']('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')['option'](a2_0xdfae8a(0x350),a2_0xdfae8a(0x351))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x38f),a2_0xdfae8a(0x332),'10')[a2_0xdfae8a(0x2e8)](segmentListAction),program['command'](a2_0xdfae8a(0x213),{'hidden':!![]})[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x24b))[a2_0xdfae8a(0x1d7)]('-r,\x20--recursive',a2_0xdfae8a(0x351))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x38f),a2_0xdfae8a(0x332),'10')[a2_0xdfae8a(0x2e8)](segmentListAction),segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1c6),{'hidden':!![]})[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x310))[a2_0xdfae8a(0x2e8)](async(_0x3f88e0,_0x4d522b)=>{const _0x101227=a2_0xdfae8a,_0x1d3363=new SegmentUseCommand(),_0x2f995d=program[_0x101227(0x301)](),_0x13ba2c=await createTDXInstance(_0x2f995d),_0x23fc04=await _0x1d3363[_0x101227(0x38c)]({'options':{..._0x2f995d,..._0x4d522b},'args':[_0x3f88e0],'tdx':_0x13ba2c});gracefulExit(_0x23fc04);});const segmentViewAction=async(_0x291cf5,_0x136f3c)=>{const _0x3f3a74=a2_0xdfae8a,_0x2d44ea=new SegmentViewCommand(),_0x1b4c1d=program[_0x3f3a74(0x301)](),_0x29966b=await createTDXInstance(_0x1b4c1d),_0x246c47=await _0x2d44ea[_0x3f3a74(0x38c)]({'options':{..._0x1b4c1d,..._0x136f3c},'args':_0x291cf5?[_0x291cf5]:[],'tdx':_0x29966b});gracefulExit(_0x246c47);};segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x30a))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x29c))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2db),a2_0xdfae8a(0x21b))[a2_0xdfae8a(0x2e8)](segmentViewAction),segmentCmd['command'](a2_0xdfae8a(0x2eb),{'hidden':!![]})[a2_0xdfae8a(0x277)](a2_0xdfae8a(0x2d8))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2db),a2_0xdfae8a(0x21b))['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0xdfae8a(0x2e8)](segmentViewAction),segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x23d))[a2_0xdfae8a(0x32b)]('Show\x20segment\x20schema\x20(column\x20types)')[a2_0xdfae8a(0x2e8)](async(_0xccc72a,_0x114c5f)=>{const _0x283b11=new SegmentDescCommand(),_0x20140c=program['opts'](),_0x35f6d2=await createTDXInstance(_0x20140c),_0x1109e7=await _0x283b11['run']({'options':{..._0x20140c,..._0x114c5f},'args':_0xccc72a?[_0xccc72a]:[],'tdx':_0x35f6d2});gracefulExit(_0x1109e7);}),segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3f9))[a2_0xdfae8a(0x32b)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0xdfae8a(0x2e8)](async(_0x1f756e,_0x1d1711)=>{const _0x3fb47f=a2_0xdfae8a,_0x5d9571=new SegmentShowCommand(),_0x4fbfd0=program['opts'](),_0x1880d3=await createTDXInstance(_0x4fbfd0),_0x274748=await _0x5d9571[_0x3fb47f(0x38c)]({'options':{..._0x4fbfd0,..._0x1d1711},'args':_0x1f756e?[_0x1f756e]:[],'tdx':_0x1880d3});gracefulExit(_0x274748);}),segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2a0),{'hidden':!![]})[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1a4))[a2_0xdfae8a(0x2e8)](async(_0x39216b,_0x2d3a6a)=>{const _0x3971bd=a2_0xdfae8a,_0x9211d9=new SegmentFolderListCommand(),_0x8a2321=program['opts'](),_0x44d65f=await createTDXInstance(_0x8a2321),_0x48a258=await _0x9211d9[_0x3971bd(0x38c)]({'options':{..._0x8a2321,..._0x2d3a6a},'args':[_0x39216b],'tdx':_0x44d65f});gracefulExit(_0x48a258);});const folderCmd=segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1b2),{'hidden':!![]})[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x335));folderCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1d8))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x279))[a2_0xdfae8a(0x2e8)](async(_0x476edf,_0x194e42)=>{const _0x528d1d=a2_0xdfae8a,_0x8647b=new SegmentFolderShowCommand(),_0x111650=program[_0x528d1d(0x301)](),_0x149463=await createTDXInstance(_0x111650),_0x298b41=await _0x8647b[_0x528d1d(0x38c)]({'options':{..._0x111650,..._0x194e42},'args':[_0x476edf],'tdx':_0x149463});gracefulExit(_0x298b41);}),segmentCmd['command'](a2_0xdfae8a(0x2ad))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2ea))[a2_0xdfae8a(0x2e8)](async(_0x4facbf,_0x89b315)=>{const _0x42923a=a2_0xdfae8a,_0x3405eb=new SegmentSQLCommand(),_0x2ab8d5=program[_0x42923a(0x301)](),_0x238872=await createTDXInstance(_0x2ab8d5),_0x39465f=await _0x3405eb[_0x42923a(0x38c)]({'options':{..._0x2ab8d5,..._0x89b315},'args':_0x4facbf?[_0x4facbf]:[],'tdx':_0x238872});gracefulExit(_0x39465f);}),segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x237))[a2_0xdfae8a(0x32b)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x3d591a,_0x104c5c)=>{const _0x1f0d8d=a2_0xdfae8a,_0x153a30=new SegmentFieldsCommand(),_0x364f80=program[_0x1f0d8d(0x301)](),_0x56f905=await createTDXInstance(_0x364f80),_0x259002=await _0x153a30[_0x1f0d8d(0x38c)]({'options':{..._0x364f80,..._0x104c5c},'args':_0x3d591a?[_0x3d591a]:[],'tdx':_0x56f905});gracefulExit(_0x259002);}),segmentCmd[a2_0xdfae8a(0x397)]('pull\x20[parent_or_file]')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x39c))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),'Skip\x20confirmation\x20prompts')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2e0),a2_0xdfae8a(0x26c))['action'](async(_0x1cbecc,_0x31ed49)=>{const _0x301d3b=a2_0xdfae8a,_0x4850d1=new SegmentPullCommand(),_0xc586a1=program[_0x301d3b(0x301)](),_0x11792e=await createTDXInstance(_0xc586a1),_0xbcf3f2=await _0x4850d1[_0x301d3b(0x38c)]({'options':{..._0xc586a1,..._0x31ed49},'args':_0x1cbecc?[_0x1cbecc]:[],'tdx':_0x11792e});gracefulExit(_0xbcf3f2);}),segmentCmd['command'](a2_0xdfae8a(0x3c6))['description'](a2_0xdfae8a(0x229))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x20e))['option'](a2_0xdfae8a(0x2e0),a2_0xdfae8a(0x26c))['option'](a2_0xdfae8a(0x23b),a2_0xdfae8a(0x31a))[a2_0xdfae8a(0x2e8)](async(_0x2d34bb,_0x10adb2)=>{const _0x2ff77d=a2_0xdfae8a,_0x19453a=new SegmentPushCommand(),_0x591be1=program[_0x2ff77d(0x301)](),_0x478064=await createTDXInstance(_0x591be1),_0x23e98e=await _0x19453a['run']({'options':{..._0x591be1,..._0x10adb2},'args':_0x2d34bb?[_0x2d34bb]:[],'tdx':_0x478064});gracefulExit(_0x23e98e);}),segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x223))['description']('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x25aebc,_0x5e8b88)=>{const _0x558ee9=a2_0xdfae8a,_0x2990c2=new SegmentValidateCommand(),_0x797fea=program[_0x558ee9(0x301)](),_0x4e0b9a=await createTDXInstance(_0x797fea),_0x529353=await _0x2990c2[_0x558ee9(0x38c)]({'options':{..._0x797fea,..._0x5e8b88},'args':_0x25aebc?[_0x25aebc]:[],'tdx':_0x4e0b9a});gracefulExit(_0x529353);}),segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2ef),{'hidden':!![]})['description'](a2_0xdfae8a(0x1e9))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x25b),'Segment\x20description')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x285),a2_0xdfae8a(0x2cf))['option'](a2_0xdfae8a(0x2fa),a2_0xdfae8a(0x3cc))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x37d),a2_0xdfae8a(0x1eb))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1ee),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1aa),a2_0xdfae8a(0x368))['option'](a2_0xdfae8a(0x21a),a2_0xdfae8a(0x22f))[a2_0xdfae8a(0x2e8)](async(_0x569c60,_0x237ae8)=>{const _0xbec5fe=a2_0xdfae8a,_0x514202=new SegmentCreateCommand(),_0x5c1c6b=program[_0xbec5fe(0x301)](),_0x1a5a4a=await createTDXInstance(_0x5c1c6b),_0x1b5b3a=await _0x514202[_0xbec5fe(0x38c)]({'options':{..._0x5c1c6b,..._0x237ae8},'args':[_0x569c60],'tdx':_0x1a5a4a});gracefulExit(_0x1b5b3a);}),segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1dc),{'hidden':!![]})[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3fc))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x271),a2_0xdfae8a(0x2f5))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x25b),a2_0xdfae8a(0x1b6))['option'](a2_0xdfae8a(0x285),a2_0xdfae8a(0x259))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2fa),a2_0xdfae8a(0x380))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x37d),a2_0xdfae8a(0x22e))[a2_0xdfae8a(0x1d7)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0xdfae8a(0x2e8)](async(_0x30db45,_0x137deb)=>{const _0x4fd148=a2_0xdfae8a,_0xeb2c47=new SegmentUpdateCommand(),_0x374987=program[_0x4fd148(0x301)](),_0x31aba6=await createTDXInstance(_0x374987),_0x31e435=await _0xeb2c47[_0x4fd148(0x38c)]({'options':{..._0x374987,..._0x137deb},'args':[_0x30db45],'tdx':_0x31aba6});gracefulExit(_0x31e435);});const parentCmd=segmentCmd['command'](a2_0xdfae8a(0x1c3),{'hidden':!![]})[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3d9)),parentListAction=async(_0x1ef563,_0x1c9a25)=>{const _0x7d2657=a2_0xdfae8a,_0x87d75b=new ParentSegmentListCommand(),_0x4eb22b=program[_0x7d2657(0x301)](),_0x50e325=await createTDXInstance(_0x4eb22b),_0x4bcaf2=await _0x87d75b[_0x7d2657(0x38c)]({'options':{..._0x4eb22b,..._0x1c9a25},'args':_0x1ef563?[_0x1ef563]:[],'tdx':_0x50e325});gracefulExit(_0x4bcaf2);};parentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x24a))['description'](a2_0xdfae8a(0x2d1))[a2_0xdfae8a(0x2e8)](parentListAction),segmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1e7),{'hidden':!![]})['description'](a2_0xdfae8a(0x236))['action'](parentListAction),parentCmd['command'](a2_0xdfae8a(0x2e7))[a2_0xdfae8a(0x32b)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3b9),a2_0xdfae8a(0x2cb))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x200))[a2_0xdfae8a(0x2e8)](async(_0x38c2bf,_0xdebf9c)=>{const _0x13aed6=new ParentSegmentPullCommand(),_0x33ff13=program['opts'](),_0x4ffaf1=await createTDXInstance(_0x33ff13),_0x27bef2=await _0x13aed6['run']({'options':{..._0x33ff13,..._0xdebf9c},'args':_0x38c2bf?[_0x38c2bf]:[],'tdx':_0x4ffaf1});gracefulExit(_0x27bef2);}),parentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x244))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x329))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x200))['action'](async(_0x171328,_0x5d2cea)=>{const _0x41d769=a2_0xdfae8a,_0x562127=new ParentSegmentPushCommand(),_0x3b016b=program[_0x41d769(0x301)](),_0x301182=await createTDXInstance(_0x3b016b),_0x328485=await _0x562127[_0x41d769(0x38c)]({'options':{..._0x3b016b,..._0x5d2cea},'args':_0x171328?[_0x171328]:[],'tdx':_0x301182});gracefulExit(_0x328485);}),parentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x25c))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2c6))[a2_0xdfae8a(0x1d7)]('--master',a2_0xdfae8a(0x1e8))['option'](a2_0xdfae8a(0x21f),a2_0xdfae8a(0x2e2))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3b8),a2_0xdfae8a(0x3b7))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x25f),a2_0xdfae8a(0x3cd))[a2_0xdfae8a(0x1d7)]('--interval\x20<range>',a2_0xdfae8a(0x35c),a2_0xdfae8a(0x39e))['action'](async(_0xae933d,_0x557d6d)=>{const _0x5c68bb=a2_0xdfae8a,_0x59faf3=new ParentSegmentValidateCommand(),_0x4451c5=program['opts'](),_0x4c8c08=await createTDXInstance(_0x4451c5),_0x18fef3=await _0x59faf3[_0x5c68bb(0x38c)]({'options':{..._0x4451c5,..._0x557d6d},'args':_0xae933d?[_0xae933d]:[],'tdx':_0x4c8c08});gracefulExit(_0x18fef3);}),parentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x23a))['description'](a2_0xdfae8a(0x35b))[a2_0xdfae8a(0x1d7)]('--master',a2_0xdfae8a(0x345))['option'](a2_0xdfae8a(0x21f),a2_0xdfae8a(0x3c8))['option'](a2_0xdfae8a(0x3b8),a2_0xdfae8a(0x1dd))['option'](a2_0xdfae8a(0x25f),a2_0xdfae8a(0x2dc))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2be),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0xdfae8a(0x2e8)](async(_0x5e6576,_0x54d43d)=>{const _0x938341=a2_0xdfae8a,_0xca5ad7=new ParentSegmentPreviewCommand(),_0x4a6abe=program[_0x938341(0x301)](),_0x4dfbdc=await createTDXInstance(_0x4a6abe),_0x3b134e=await _0xca5ad7[_0x938341(0x38c)]({'options':{..._0x4a6abe,..._0x54d43d},'args':_0x5e6576?[_0x5e6576]:[],'tdx':_0x4dfbdc});gracefulExit(_0x3b134e);}),parentCmd['command'](a2_0xdfae8a(0x33a))[a2_0xdfae8a(0x32b)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x200))[a2_0xdfae8a(0x2e8)](async(_0x13cff6,_0x380c4f)=>{const _0xb98878=a2_0xdfae8a,_0x4d5402=new ParentSegmentRunCommand(),_0x50430b=program['opts'](),_0xb98dae=await createTDXInstance(_0x50430b),_0x406977=await _0x4d5402[_0xb98878(0x38c)]({'options':{..._0x50430b,..._0x380c4f},'args':_0x13cff6?[_0x13cff6]:[],'tdx':_0xb98dae});gracefulExit(_0x406977);});const parentSegmentCmd=program['command'](a2_0xdfae8a(0x21c))[a2_0xdfae8a(0x277)]('ps')[a2_0xdfae8a(0x32b)]('Parent\x20segment\x20management');parentSegmentCmd[a2_0xdfae8a(0x397)]('list\x20[pattern]')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2d1))[a2_0xdfae8a(0x2e8)](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2b4))['option'](a2_0xdfae8a(0x3b9),'Output\x20file\x20path')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x200))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1d0),a2_0xdfae8a(0x2a4))[a2_0xdfae8a(0x2e8)](async(_0x56b05c,_0x5eafdb)=>{const _0x11c1b4=new ParentSegmentPullCommand(),_0x506873=program['opts'](),_0x4cad99=await createTDXInstance(_0x506873),_0x584051=await _0x11c1b4['run']({'options':{..._0x506873,..._0x5eafdb},'args':_0x56b05c?[_0x56b05c]:[],'tdx':_0x4cad99});gracefulExit(_0x584051);}),parentSegmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x39d))['description'](a2_0xdfae8a(0x31e))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x200))[a2_0xdfae8a(0x2e8)](async(_0x1465c7,_0x11f87a)=>{const _0x1c06ff=a2_0xdfae8a,_0x229459=new ParentSegmentPushCommand(),_0x597fae=program[_0x1c06ff(0x301)](),_0x264bd6=await createTDXInstance(_0x597fae),_0x3e5af1=await _0x229459[_0x1c06ff(0x38c)]({'options':{..._0x597fae,..._0x11f87a},'args':_0x1465c7?[_0x1465c7]:[],'tdx':_0x264bd6});gracefulExit(_0x3e5af1);}),parentSegmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3dc))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2c6))[a2_0xdfae8a(0x1d7)]('--master',a2_0xdfae8a(0x1e8))['option'](a2_0xdfae8a(0x21f),a2_0xdfae8a(0x2e2))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3b8),a2_0xdfae8a(0x3b7))['option'](a2_0xdfae8a(0x25f),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2be),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0xdfae8a(0x39e))[a2_0xdfae8a(0x2e8)](async(_0x5c7a8c,_0x50569a)=>{const _0x11d830=a2_0xdfae8a,_0x3d5cb1=new ParentSegmentValidateCommand(),_0x4f2f24=program[_0x11d830(0x301)](),_0x563e72=await createTDXInstance(_0x4f2f24),_0x1de20a=await _0x3d5cb1[_0x11d830(0x38c)]({'options':{..._0x4f2f24,..._0x50569a},'args':_0x5c7a8c?[_0x5c7a8c]:[],'tdx':_0x563e72});gracefulExit(_0x1de20a);}),parentSegmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x27a))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x35b))['option'](a2_0xdfae8a(0x2d7),a2_0xdfae8a(0x345))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x21f),a2_0xdfae8a(0x3c8))[a2_0xdfae8a(0x1d7)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x25f),a2_0xdfae8a(0x2dc))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2be),a2_0xdfae8a(0x35c),a2_0xdfae8a(0x39e))[a2_0xdfae8a(0x2e8)](async(_0x47195a,_0x548305)=>{const _0x46b2c0=a2_0xdfae8a,_0x31194c=new ParentSegmentPreviewCommand(),_0x38ee13=program[_0x46b2c0(0x301)](),_0x5489b1=await createTDXInstance(_0x38ee13),_0x264ef5=await _0x31194c[_0x46b2c0(0x38c)]({'options':{..._0x38ee13,..._0x548305},'args':_0x47195a?[_0x47195a]:[],'tdx':_0x5489b1});gracefulExit(_0x264ef5);}),parentSegmentCmd['command'](a2_0xdfae8a(0x33a))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x38e))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),'Skip\x20confirmation\x20prompt')['action'](async(_0xe39b8f,_0x20a45a)=>{const _0xbd09c6=a2_0xdfae8a,_0x44379e=new ParentSegmentRunCommand(),_0x5318f3=program[_0xbd09c6(0x301)](),_0x18d119=await createTDXInstance(_0x5318f3),_0x41c9fb=await _0x44379e[_0xbd09c6(0x38c)]({'options':{..._0x5318f3,..._0x20a45a},'args':_0xe39b8f?[_0xe39b8f]:[],'tdx':_0x18d119});gracefulExit(_0x41c9fb);}),parentSegmentCmd[a2_0xdfae8a(0x397)]('fields\x20[name]')[a2_0xdfae8a(0x32b)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0xdfae8a(0x328),'Output\x20as\x20JSON')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x38b),a2_0xdfae8a(0x2cc))[a2_0xdfae8a(0x2e8)](async(_0x16bcc6,_0x4a9c8e)=>{const _0xb66eca=a2_0xdfae8a,_0x42b510=new ParentSegmentFieldsCommand(),_0x4ea756=program[_0xb66eca(0x301)](),_0x293aca=await createTDXInstance(_0x4ea756),_0x4a47f7=await _0x42b510[_0xb66eca(0x38c)]({'options':{..._0x4ea756,..._0x4a9c8e},'args':_0x16bcc6?[_0x16bcc6]:[],'tdx':_0x293aca});gracefulExit(_0x4a47f7);}),parentSegmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1c0))['description'](a2_0xdfae8a(0x3e1))['option'](a2_0xdfae8a(0x2db),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0xdfae8a(0x1d7)]('--json',a2_0xdfae8a(0x320))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x38b),a2_0xdfae8a(0x2cc))['action'](async(_0x483f77,_0x1a29f6)=>{const _0x42b3af=a2_0xdfae8a,_0x4e174f=new ParentSegmentViewCommand(),_0x5dd734=program[_0x42b3af(0x301)](),_0x13b242=await createTDXInstance(_0x5dd734),_0x49a919=await _0x4e174f[_0x42b3af(0x38c)]({'options':{..._0x5dd734,..._0x1a29f6},'args':_0x483f77?[_0x483f77]:[],'tdx':_0x13b242});gracefulExit(_0x49a919);}),parentSegmentCmd['command'](a2_0xdfae8a(0x203))[a2_0xdfae8a(0x32b)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x328),a2_0xdfae8a(0x320))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x38b),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x1a3728,_0x3d38d5)=>{const _0x2d4137=a2_0xdfae8a,_0x251a90=new ParentSegmentDescCommand(),_0x15d800=program[_0x2d4137(0x301)](),_0x32a3b6=await createTDXInstance(_0x15d800),_0xb0678c=await _0x251a90['run']({'options':{..._0x15d800,..._0x3d38d5},'args':_0x1a3728?[_0x1a3728]:[],'tdx':_0x32a3b6});gracefulExit(_0xb0678c);}),parentSegmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x27c))['description'](a2_0xdfae8a(0x2df))['option'](a2_0xdfae8a(0x328),a2_0xdfae8a(0x320))[a2_0xdfae8a(0x1d7)]('--jsonl',a2_0xdfae8a(0x2cc))['action'](async(_0x3b03b7,_0x17fee5)=>{const _0x3366f0=new ParentSegmentSQLCommand(),_0x2fbf6d=program['opts'](),_0x375d82=await createTDXInstance(_0x2fbf6d),_0x438d7f=await _0x3366f0['run']({'options':{..._0x2fbf6d,..._0x17fee5},'args':_0x3b03b7?[_0x3b03b7]:[],'tdx':_0x375d82});gracefulExit(_0x438d7f);}),parentSegmentCmd['command'](a2_0xdfae8a(0x34c))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x38d))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x37a),'Limit\x20number\x20of\x20rows')['option']('--json','Output\x20as\x20JSON')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x38b),'Output\x20as\x20JSON\x20Lines')[a2_0xdfae8a(0x2e8)](async(_0x2e15a4,_0x444eaa)=>{const _0x39950a=a2_0xdfae8a,_0x2fc4a2=new ParentSegmentShowCommand(),_0x2fdb12=program['opts'](),_0x1883f5=await createTDXInstance(_0x2fdb12),_0x1f5956=await _0x2fc4a2[_0x39950a(0x38c)]({'options':{..._0x2fdb12,..._0x444eaa},'args':_0x2e15a4?[_0x2e15a4]:[],'tdx':_0x1883f5});gracefulExit(_0x1f5956);}),parentSegmentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x360))['description'](a2_0xdfae8a(0x1b3))[a2_0xdfae8a(0x2e8)](async(_0x33a9fb,_0x456ef7)=>{const _0x5bb465=a2_0xdfae8a,_0x430192=new UseCommand(),_0x141e87=program[_0x5bb465(0x301)](),_0x420024=_0x33a9fb?[_0x5bb465(0x3e5),_0x33a9fb]:[],_0x31b536=await _0x430192['run']({'options':{..._0x141e87,..._0x456ef7},'args':_0x420024,'tdx':null});gracefulExit(_0x31b536);}),parentCmd[a2_0xdfae8a(0x397)]('create\x20<name>')[a2_0xdfae8a(0x32b)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0xdfae8a(0x288)](a2_0xdfae8a(0x1ea),'Master\x20database\x20name')[a2_0xdfae8a(0x288)]('--table\x20<table>',a2_0xdfae8a(0x2b3))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x25b),a2_0xdfae8a(0x29b))['option'](a2_0xdfae8a(0x3c5),a2_0xdfae8a(0x333))['option'](a2_0xdfae8a(0x3a8),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1de),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2a1),a2_0xdfae8a(0x34b))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2ae),a2_0xdfae8a(0x294))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3aa),'Behaviors\x20as\x20JSON\x20string')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3bc),'Behaviors\x20from\x20JSON\x20file')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x31d),'Customer\x20group\x20as\x20JSON\x20string')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x38a),a2_0xdfae8a(0x253))[a2_0xdfae8a(0x2e8)](async(_0x58b3e9,_0xad9941)=>{const _0x516e24=new ParentSegmentCreateCommand(),_0x5cce72=program['opts'](),_0x252c80=await createTDXInstance(_0x5cce72),_0x5498af=await _0x516e24['run']({'options':{..._0x5cce72,..._0xad9941},'args':[_0x58b3e9],'tdx':_0x252c80});gracefulExit(_0x5498af);}),parentCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3f0))['description'](a2_0xdfae8a(0x19c))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x25b),a2_0xdfae8a(0x1b6))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3c5),a2_0xdfae8a(0x371))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3a8),a2_0xdfae8a(0x362))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1de),a2_0xdfae8a(0x1ec))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3e0),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0xdfae8a(0x1d7)]('--add-attributes-file\x20<file>',a2_0xdfae8a(0x28b))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2bb),a2_0xdfae8a(0x3ed))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x215),a2_0xdfae8a(0x3d2))[a2_0xdfae8a(0x2e8)](async(_0x38220a,_0x221cfd)=>{const _0x328210=a2_0xdfae8a,_0x4d084a=new ParentSegmentUpdateCommand(),_0x421917=program[_0x328210(0x301)](),_0x306389=await createTDXInstance(_0x421917),_0x41e34d=await _0x4d084a['run']({'options':{..._0x421917,..._0x221cfd},'args':[_0x38220a],'tdx':_0x306389});gracefulExit(_0x41e34d);}),folderCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2dd))[a2_0xdfae8a(0x32b)]('Create\x20segment\x20folder')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x25b),a2_0xdfae8a(0x325))[a2_0xdfae8a(0x1d7)]('--parent-folder\x20<name>',a2_0xdfae8a(0x2fc))['action'](async(_0x39858a,_0x3311fb,_0x2a0f7b)=>{const _0x4189d3=a2_0xdfae8a,_0x96d3d3=new SegmentFolderCreateCommand(),_0x1a0d5b=program[_0x4189d3(0x301)](),_0x13f17f=await createTDXInstance(_0x1a0d5b),_0x5b137d=await _0x96d3d3[_0x4189d3(0x38c)]({'options':{..._0x1a0d5b,..._0x2a0f7b},'args':[_0x39858a,_0x3311fb],'tdx':_0x13f17f});gracefulExit(_0x5b137d);}),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x230))[a2_0xdfae8a(0x32b)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0xdfae8a(0x2e8)](async(_0x8d938b,_0x37f29b)=>{const _0x25a453=a2_0xdfae8a,_0x4aa331=new ActivationsCommand(),_0x54b232=program[_0x25a453(0x301)](),_0xfe635e=await createTDXInstance(_0x54b232),_0x4fa721=await _0x4aa331[_0x25a453(0x38c)]({'options':{..._0x54b232,..._0x37f29b},'args':[_0x8d938b],'tdx':_0xfe635e});gracefulExit(_0x4fa721);});const workflowCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1cf))[a2_0xdfae8a(0x277)]('wf')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x222)),wfProjectCmd=workflowCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1a7))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x278)),wfProjectListAction=async(_0x11bd9f,_0x1eb436)=>{const _0xe02333=a2_0xdfae8a,_0xa2b1a8=new WorkflowProjectsCommand(),_0x170b1c=program[_0xe02333(0x301)](),_0x37fc68=await createTDXInstance(_0x170b1c),_0x3728ef=await _0xa2b1a8[_0xe02333(0x38c)]({'options':{..._0x170b1c,..._0x1eb436},'args':_0x11bd9f?[_0x11bd9f]:[],'tdx':_0x37fc68});gracefulExit(_0x3728ef);};wfProjectCmd['command'](a2_0xdfae8a(0x24a))[a2_0xdfae8a(0x32b)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0xdfae8a(0x2e8)](wfProjectListAction),workflowCmd['command'](a2_0xdfae8a(0x391))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x241))[a2_0xdfae8a(0x2e8)](wfProjectListAction);function a2_0x371a(_0x32b37d,_0xd02d31){_0x32b37d=_0x32b37d-0x196;const _0x1f5a23=a2_0x1f5a();let _0x371a6a=_0x1f5a23[_0x32b37d];return _0x371a6a;}const wfWorkflowListAction=async(_0x287240,_0x7c51e6)=>{const _0x20d964=a2_0xdfae8a,_0x1895ea=new WorkflowWorkflowsCommand(),_0x267f1d=program['opts'](),_0x79fc57=await createTDXInstance(_0x267f1d),_0x54c31b=await _0x1895ea[_0x20d964(0x38c)]({'options':{..._0x267f1d,..._0x7c51e6},'args':_0x287240?[_0x287240]:[],'tdx':_0x79fc57});gracefulExit(_0x54c31b);};workflowCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x393))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3a1))[a2_0xdfae8a(0x2e8)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command']('session')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x304)),wfSessionListAction=async(_0x44b1f5,_0x39562d)=>{const _0x42eb0a=a2_0xdfae8a,_0xd2d491=new WorkflowSessionsCommand(),_0x4282c2=program[_0x42eb0a(0x301)](),_0x3a197c=await createTDXInstance(_0x4282c2),_0x2b027a=await _0xd2d491[_0x42eb0a(0x38c)]({'options':{..._0x4282c2,..._0x39562d},'args':_0x44b1f5?[_0x44b1f5]:[],'tdx':_0x3a197c});gracefulExit(_0x2b027a);};wfSessionCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1bd))['description'](a2_0xdfae8a(0x2a3))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x257),a2_0xdfae8a(0x1c7))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3c2),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0xdfae8a(0x307),a2_0xdfae8a(0x1ba))[a2_0xdfae8a(0x2e8)](wfSessionListAction),workflowCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1a6))['description'](a2_0xdfae8a(0x1e5))['option'](a2_0xdfae8a(0x257),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0xdfae8a(0x1d7)]('--from\x20<timestamp>',a2_0xdfae8a(0x226))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x307),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0xdfae8a(0x2e8)](wfSessionListAction);const wfAttemptListAction=async(_0x572af1,_0x51250c)=>{const _0x388758=a2_0xdfae8a,_0x1d6a00=new WorkflowAttemptsCommand(),_0x4f6862=program[_0x388758(0x301)](),_0x1b1964=await createTDXInstance(_0x4f6862),_0x1a8fce=await _0x1d6a00[_0x388758(0x38c)]({'options':{..._0x4f6862,..._0x51250c},'args':_0x572af1?[_0x572af1]:[],'tdx':_0x1b1964});gracefulExit(_0x1a8fce);},attemptCmd=workflowCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3eb))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3b0))[a2_0xdfae8a(0x228)](a2_0xdfae8a(0x20c),a2_0xdfae8a(0x2c1))['argument']('[action]',a2_0xdfae8a(0x3a4))['argument']('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0xdfae8a(0x1d7)]('--include-subtasks',a2_0xdfae8a(0x2bc))['option'](a2_0xdfae8a(0x381),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2b6),a2_0xdfae8a(0x372))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1fd),a2_0xdfae8a(0x316))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1a0),a2_0xdfae8a(0x1b7))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1db),a2_0xdfae8a(0x2ac))['action'](async(_0x4783f1,_0x5a83f6,_0x27c105,_0x19f3a7)=>{const _0x2dc4a8=a2_0xdfae8a;if(_0x4783f1===_0x2dc4a8(0x2d2)){await wfAttemptListAction(_0x5a83f6,_0x19f3a7);return;}if(!_0x4783f1){attemptCmd[_0x2dc4a8(0x3f8)]();return;}const _0x57f049=program[_0x2dc4a8(0x301)](),_0xd701cd=await createTDXInstance(_0x57f049);let _0x50c55e=0x0;if(!_0x5a83f6){const _0x40d603=new WorkflowAttemptCommand();_0x50c55e=await _0x40d603[_0x2dc4a8(0x38c)]({'options':{..._0x57f049,..._0x19f3a7},'args':[_0x4783f1],'tdx':_0xd701cd});}else{if(_0x5a83f6===_0x2dc4a8(0x3f2)){const _0x2e92d8=new WorkflowLogsCommand();_0x50c55e=await _0x2e92d8[_0x2dc4a8(0x38c)]({'options':{..._0x57f049,..._0x19f3a7},'args':_0x27c105?[_0x4783f1,_0x27c105]:[_0x4783f1],'tdx':_0xd701cd});}else{if(_0x5a83f6===_0x2dc4a8(0x3d6)){const _0xa13235=new WorkflowTasksCommand();_0x50c55e=await _0xa13235[_0x2dc4a8(0x38c)]({'options':{..._0x57f049,..._0x19f3a7},'args':[_0x4783f1],'tdx':_0xd701cd});}else{if(_0x5a83f6===_0x2dc4a8(0x2ee)){const _0x3a7539=new WorkflowKillCommand();_0x50c55e=await _0x3a7539['run']({'options':{..._0x57f049,..._0x19f3a7},'args':[_0x4783f1],'tdx':_0xd701cd});}else{if(_0x5a83f6===_0x2dc4a8(0x3e9)){const _0x22f9a7=new WorkflowRetryCommand();_0x50c55e=await _0x22f9a7[_0x2dc4a8(0x38c)]({'options':{..._0x57f049,..._0x19f3a7},'args':[_0x2dc4a8(0x297)+_0x4783f1],'tdx':_0xd701cd});}else console[_0x2dc4a8(0x242)]('Unknown\x20action:\x20'+_0x5a83f6),console[_0x2dc4a8(0x242)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x50c55e=0x1;}}}}gracefulExit(_0x50c55e);});attemptCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1bd))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x39f))['option'](a2_0xdfae8a(0x1db),a2_0xdfae8a(0x243))[a2_0xdfae8a(0x2e8)](wfAttemptListAction),workflowCmd['command'](a2_0xdfae8a(0x34d))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x26f))['option'](a2_0xdfae8a(0x1db),a2_0xdfae8a(0x243))[a2_0xdfae8a(0x2e8)](wfAttemptListAction),workflowCmd['command'](a2_0xdfae8a(0x284))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x313))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2b8),a2_0xdfae8a(0x2ca))[a2_0xdfae8a(0x1d7)]('--session-id\x20<id>',a2_0xdfae8a(0x1f8))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x240),a2_0xdfae8a(0x31c))[a2_0xdfae8a(0x2e8)](async(_0x32b7dc,_0x3290cd)=>{const _0x46d690=a2_0xdfae8a,_0x424383=new WorkflowTimelineCommand(),_0x479c45=program[_0x46d690(0x301)](),_0x8812ef=await createTDXInstance(_0x479c45),_0x1e647a=await _0x424383['run']({'options':{..._0x479c45,..._0x3290cd},'args':_0x32b7dc?[_0x32b7dc]:[],'tdx':_0x8812ef});gracefulExit(_0x1e647a);}),workflowCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3ca))['description'](a2_0xdfae8a(0x1e0))[a2_0xdfae8a(0x1d7)]('--from-task\x20<task>',a2_0xdfae8a(0x28d))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1fd),a2_0xdfae8a(0x204))[a2_0xdfae8a(0x2e8)](async(_0x5e537a,_0x43ee96)=>{const _0xbe437b=a2_0xdfae8a,_0x5ec7b8=new WorkflowRetryCommand(),_0x4a2684=program[_0xbe437b(0x301)](),_0x529006=await createTDXInstance(_0x4a2684),_0x6591e0=await _0x5ec7b8[_0xbe437b(0x38c)]({'options':{..._0x4a2684,..._0x43ee96},'args':[_0x5e537a],'tdx':_0x529006});gracefulExit(_0x6591e0);}),workflowCmd['command']('run\x20[workflow]')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x33c))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3b3),'Workflow\x20parameter\x20(repeatable)',(_0x11496b,_0x52510c=[])=>[..._0x52510c,_0x11496b],[])[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1ad),a2_0xdfae8a(0x36b))['action'](async(_0x26017e,_0x21b4f5)=>{const _0x16514f=a2_0xdfae8a,_0xc78c39=new WorkflowRunCommand(),_0x529ea0=program[_0x16514f(0x301)](),_0x5e5df8=await createTDXInstance(_0x529ea0),_0xe332ca=await _0xc78c39[_0x16514f(0x38c)]({'options':{..._0x529ea0,..._0x21b4f5},'args':_0x26017e?[_0x26017e]:[],'tdx':_0x5e5df8});gracefulExit(_0xe332ca);}),workflowCmd['command']('download\x20<project-name>\x20[output-dir]')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x28a))['option'](a2_0xdfae8a(0x263),a2_0xdfae8a(0x3e4))['action'](async(_0x531ea3,_0x40d158,_0x2a1083)=>{const _0x1da7cf=a2_0xdfae8a,_0x4609f9=new WorkflowDownloadCommand(),_0x3b6502=program['opts'](),_0x5c535e=await createTDXInstance(_0x3b6502),_0x594607=await _0x4609f9[_0x1da7cf(0x38c)]({'options':{..._0x3b6502,..._0x2a1083},'args':[_0x531ea3,_0x40d158||'.'],'tdx':_0x5c535e});gracefulExit(_0x594607);}),workflowCmd['command'](a2_0xdfae8a(0x33f))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x359))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x263),a2_0xdfae8a(0x1c9))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2e0),a2_0xdfae8a(0x341))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x200))[a2_0xdfae8a(0x2e8)](async(_0x3c9444,_0x30cf22,_0x1e5b58)=>{const _0x38d91d=a2_0xdfae8a,_0x2d0662=new WorkflowPullCommand(),_0x45bd51=program['opts'](),_0x4c1bfb=await createTDXInstance(_0x45bd51),_0x474a9f=await _0x2d0662[_0x38d91d(0x38c)]({'options':{..._0x45bd51,..._0x1e5b58},'args':_0x30cf22?[_0x3c9444,_0x30cf22]:[_0x3c9444],'tdx':_0x4c1bfb});gracefulExit(_0x474a9f);}),workflowCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2c7))[a2_0xdfae8a(0x32b)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0xdfae8a(0x1d7)]('--revision\x20<revision>',a2_0xdfae8a(0x211))['option'](a2_0xdfae8a(0x2e0),a2_0xdfae8a(0x296))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x205),a2_0xdfae8a(0x37c))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x200))[a2_0xdfae8a(0x2e8)](async(_0x27d1b5,_0x16a251)=>{const _0x4f2dfb=a2_0xdfae8a,_0x492b89=new WorkflowPushCommand(),_0x95b632=program[_0x4f2dfb(0x301)](),_0x177927=await createTDXInstance(_0x95b632),_0x589f7f=await _0x492b89[_0x4f2dfb(0x38c)]({'options':{..._0x95b632,..._0x16a251},'args':_0x27d1b5?[_0x27d1b5]:[],'tdx':_0x177927});gracefulExit(_0x589f7f);}),workflowCmd['command'](a2_0xdfae8a(0x385))['description'](a2_0xdfae8a(0x343))['option'](a2_0xdfae8a(0x342),a2_0xdfae8a(0x375))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x263),'Revision\x20name\x20(default:\x20timestamp)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x205),a2_0xdfae8a(0x37c))['action'](async(_0xb08158,_0x788a3d)=>{const _0x234197=a2_0xdfae8a,_0x388cef=new WorkflowUploadCommand(),_0x4f9201=program[_0x234197(0x301)](),_0x34a088=await createTDXInstance(_0x4f9201),_0x129f9d=await _0x388cef[_0x234197(0x38c)]({'options':{..._0x4f9201,..._0x788a3d},'args':_0xb08158?[_0xb08158]:[],'tdx':_0x34a088});gracefulExit(_0x129f9d);}),workflowCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1c2))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x390))[a2_0xdfae8a(0x1d7)]('--name\x20<name>',a2_0xdfae8a(0x1f2))['option'](a2_0xdfae8a(0x263),a2_0xdfae8a(0x211))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2e0),a2_0xdfae8a(0x2a9))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x205),a2_0xdfae8a(0x37c))['option'](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x200))['action'](async(_0x52a201,_0x458a50)=>{const _0x321faa=a2_0xdfae8a,_0x5d4f49=new WorkflowCloneCommand(),_0x42fe98=program[_0x321faa(0x301)](),_0x866c76=await createTDXInstance(_0x42fe98),_0x1df2fe=await _0x5d4f49['run']({'options':{..._0x42fe98,..._0x458a50},'args':_0x52a201?[_0x52a201]:[],'tdx':_0x866c76});gracefulExit(_0x1df2fe);}),workflowCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3de))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')['action'](async(_0x3da383,_0x50a1d2)=>{const _0x43635c=a2_0xdfae8a,_0x18b0bb=new WorkflowDeleteCommand(),_0x362f68=program[_0x43635c(0x301)](),_0x1be81d=await createTDXInstance(_0x362f68),_0x4be96b=await _0x18b0bb[_0x43635c(0x38c)]({'options':{..._0x362f68,..._0x50a1d2},'args':[_0x3da383],'tdx':_0x1be81d});gracefulExit(_0x4be96b);}),workflowCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3a9))['description'](a2_0xdfae8a(0x249))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x30f),a2_0xdfae8a(0x27b))[a2_0xdfae8a(0x2e8)](async(_0x420ea5,_0x3b7eea)=>{const _0x48435d=a2_0xdfae8a,_0x21dc5e=new WorkflowUseCommand(),_0x58aeea=program['opts'](),_0x2f20f5=await createTDXInstance(_0x58aeea),_0x2709ad=await _0x21dc5e[_0x48435d(0x38c)]({'options':{..._0x58aeea,..._0x3b7eea},'args':_0x420ea5?[_0x420ea5]:[],'tdx':_0x2f20f5});gracefulExit(_0x2709ad);});const wfSecretsCmd=workflowCmd[a2_0xdfae8a(0x397)]('secrets')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3f7));wfSecretsCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1bd))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x210))[a2_0xdfae8a(0x2e8)](async(_0x58ac94,_0x1587b0)=>{const _0x18d416=a2_0xdfae8a,_0x55037f=new WorkflowSecretsListCommand(),_0x280f=program[_0x18d416(0x301)](),_0x1cf8d1=await createTDXInstance(_0x280f),_0x457083=await _0x55037f[_0x18d416(0x38c)]({'options':{..._0x280f,..._0x1587b0},'args':_0x58ac94?[_0x58ac94]:[],'tdx':_0x1cf8d1});gracefulExit(_0x457083);}),wfSecretsCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1f0))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1ca))['action'](async(_0x4c9722,_0x1d0b79)=>{const _0x108f66=new WorkflowSecretsSetCommand(),_0x55ae1a=program['opts'](),_0x15e8fd=await createTDXInstance(_0x55ae1a),_0x1bbbd3=await _0x108f66['run']({'options':{..._0x55ae1a,..._0x1d0b79},'args':_0x4c9722,'tdx':_0x15e8fd});gracefulExit(_0x1bbbd3);}),wfSecretsCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x367))[a2_0xdfae8a(0x32b)]('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),'Skip\x20confirmation\x20prompt')[a2_0xdfae8a(0x2e8)](async(_0x327225,_0x22f2e3)=>{const _0xaab415=a2_0xdfae8a,_0x33256e=new WorkflowSecretsDeleteCommand(),_0x1e4594=program[_0xaab415(0x301)](),_0x8a25b9=await createTDXInstance(_0x1e4594),_0x2a3da6=await _0x33256e[_0xaab415(0x38c)]({'options':{..._0x1e4594,..._0x22f2e3},'args':_0x327225,'tdx':_0x8a25b9});gracefulExit(_0x2a3da6);});const jobCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x344))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2c5)),jobListAction=async _0x211514=>{const _0x131351=a2_0xdfae8a,_0x195450=new JobListCommand(),_0x2bb803=program[_0x131351(0x301)](),_0xee44fe=await createTDXInstance(_0x2bb803),_0x576bd8=await _0x195450[_0x131351(0x38c)]({'options':{..._0x2bb803,..._0x211514},'args':[],'tdx':_0xee44fe});gracefulExit(_0x576bd8);};jobCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2d2))['description'](a2_0xdfae8a(0x346))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x257),a2_0xdfae8a(0x357))[a2_0xdfae8a(0x2e8)](jobListAction),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x21d),{'hidden':!![]})[a2_0xdfae8a(0x32b)]('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x257),a2_0xdfae8a(0x357))[a2_0xdfae8a(0x2e8)](jobListAction),jobCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x30c))[a2_0xdfae8a(0x32b)]('Show\x20job\x20details')[a2_0xdfae8a(0x2e8)](async(_0x4e5caf,_0x29df2e)=>{const _0x4c5314=a2_0xdfae8a,_0x434d1f=new JobShowCommand(),_0x113e8d=program['opts'](),_0x56b737=await createTDXInstance(_0x113e8d),_0x14e137=await _0x434d1f[_0x4c5314(0x38c)]({'options':{..._0x113e8d,..._0x29df2e},'args':[_0x4e5caf],'tdx':_0x56b737});gracefulExit(_0x14e137);}),jobCmd[a2_0xdfae8a(0x397)]('kill\x20<job-id>')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x327))['action'](async(_0x196fed,_0x8ab5fd)=>{const _0x2d4249=a2_0xdfae8a,_0x50ea52=new JobKillCommand(),_0x470183=program[_0x2d4249(0x301)](),_0x280263=await createTDXInstance(_0x470183),_0xa31f67=await _0x50ea52[_0x2d4249(0x38c)]({'options':{..._0x470183,..._0x8ab5fd},'args':[_0x196fed],'tdx':_0x280263});gracefulExit(_0xa31f67);}),jobCmd['command'](a2_0xdfae8a(0x1be))[a2_0xdfae8a(0x32b)]('Submit\x20a\x20job')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1d4),a2_0xdfae8a(0x3ea),a2_0xdfae8a(0x1df))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1f7),a2_0xdfae8a(0x2f8))[a2_0xdfae8a(0x1d7)]('--database\x20<name>',a2_0xdfae8a(0x35e),a2_0xdfae8a(0x3e8))[a2_0xdfae8a(0x2e8)](async(_0x4103c4,_0x3ecfcb)=>{const _0x49b425=a2_0xdfae8a,_0x2722f4=new JobSubmitCommand(),_0xe75556=program[_0x49b425(0x301)](),_0x311ef2=await createTDXInstance(_0xe75556),_0x293557=await _0x2722f4['run']({'options':{..._0xe75556,..._0x3ecfcb},'args':_0x4103c4?[_0x4103c4]:[],'tdx':_0x311ef2});gracefulExit(_0x293557);}),jobCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x365))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2fd))['action'](async(_0x40904d,_0xd29424)=>{const _0x20a100=a2_0xdfae8a,_0x53b816=new JobResultCommand(),_0x45755d=program[_0x20a100(0x301)](),_0x1f993a=await createTDXInstance(_0x45755d),_0x39727b=await _0x53b816[_0x20a100(0x38c)]({'options':{..._0x45755d,..._0xd29424},'args':[_0x40904d],'tdx':_0x1f993a});gracefulExit(_0x39727b);});const llmCmd=program['command'](a2_0xdfae8a(0x36e))['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command'](a2_0xdfae8a(0x261))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x275))[a2_0xdfae8a(0x2e8)](async(_0x5e0208,_0x1cc022)=>{const _0x3a5cd1=a2_0xdfae8a,_0x910c97=new LLMUseCommand(),_0x4ed733=program[_0x3a5cd1(0x301)](),_0x4b4114=await createTDXInstance(_0x4ed733),_0x2b2ba8=await _0x910c97[_0x3a5cd1(0x38c)]({'options':{..._0x4ed733,..._0x1cc022},'args':[_0x5e0208],'tdx':_0x4b4114});gracefulExit(_0x2b2ba8);}),llmCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x340))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3a3))[a2_0xdfae8a(0x2e8)](async _0x1fc4da=>{const _0x340828=a2_0xdfae8a,_0x2c718b=new LLMModelsCommand(),_0x18d99a=program[_0x340828(0x301)](),_0x4e0bc9=await createTDXInstance(_0x18d99a),_0x27c43b=await _0x2c718b['run']({'options':{..._0x18d99a,..._0x1fc4da},'args':[],'tdx':_0x4e0bc9});gracefulExit(_0x27c43b);});const projectCmd=llmCmd['command'](a2_0xdfae8a(0x1a7))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2b9)),llmProjectListAction=async(_0x2686f3,_0x5c146a)=>{const _0x5f279a=a2_0xdfae8a,_0x10f28f=new LLMProjectsCommand(),_0xab91a4=program['opts'](),_0x2b5f87=await createTDXInstance(_0xab91a4),_0x5234df=await _0x10f28f[_0x5f279a(0x38c)]({'options':{..._0xab91a4,..._0x5c146a},'args':_0x2686f3?[_0x2686f3]:[],'tdx':_0x2b5f87});gracefulExit(_0x5234df);};projectCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x24a))[a2_0xdfae8a(0x32b)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')['action'](llmProjectListAction),llmCmd[a2_0xdfae8a(0x397)]('projects\x20[pattern]')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1ff))['action'](llmProjectListAction),projectCmd['command'](a2_0xdfae8a(0x247))['description'](a2_0xdfae8a(0x322))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x25b),a2_0xdfae8a(0x339))[a2_0xdfae8a(0x2e8)](async(_0x3da7f4,_0x2fa318)=>{const _0x171b3f=a2_0xdfae8a,_0x21c1b9=new LLMProjectCreateCommand(),_0x74ec2f=program[_0x171b3f(0x301)](),_0x567d25=await createTDXInstance(_0x74ec2f),_0x251c58=await _0x21c1b9[_0x171b3f(0x38c)]({'options':{..._0x74ec2f,..._0x2fa318},'args':[_0x3da7f4],'tdx':_0x567d25});gracefulExit(_0x251c58);}),projectCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1da))[a2_0xdfae8a(0x32b)]('Delete\x20an\x20LLM\x20project')['action'](async(_0x16373c,_0x2658fb)=>{const _0x105711=a2_0xdfae8a,_0xd72bdc=new LLMProjectDeleteCommand(),_0xd88f96=program[_0x105711(0x301)](),_0x3fc680=await createTDXInstance(_0xd88f96),_0x2e7916=await _0xd72bdc[_0x105711(0x38c)]({'options':{..._0xd88f96,..._0x2658fb},'args':[_0x16373c],'tdx':_0x3fc680});gracefulExit(_0x2e7916);}),projectCmd[a2_0xdfae8a(0x397)]('backup\x20<name>')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x287))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1e3),a2_0xdfae8a(0x250))['option'](a2_0xdfae8a(0x2e0),a2_0xdfae8a(0x282))[a2_0xdfae8a(0x2e8)](async(_0x55119f,_0x14e15d)=>{const _0x528093=a2_0xdfae8a,_0x17e01b=new LLMProjectBackupCommand(),_0x25feef=program[_0x528093(0x301)](),_0x623f85=await createTDXInstance(_0x25feef),_0x4eadd8=await _0x17e01b[_0x528093(0x38c)]({'options':{..._0x25feef,..._0x14e15d},'args':[_0x55119f],'tdx':_0x623f85});gracefulExit(_0x4eadd8);}),projectCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x197))[a2_0xdfae8a(0x32b)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')['option'](a2_0xdfae8a(0x32d),a2_0xdfae8a(0x3be))['option'](a2_0xdfae8a(0x2e0),a2_0xdfae8a(0x1f3))[a2_0xdfae8a(0x2e8)](async(_0x42d853,_0x4fe216)=>{const _0x58442d=a2_0xdfae8a,_0x59b12a=new LLMProjectRestoreCommand(),_0x4b4daf=program[_0x58442d(0x301)](),_0x4968c7=await createTDXInstance(_0x4b4daf),_0x193e44=await _0x59b12a[_0x58442d(0x38c)]({'options':{..._0x4b4daf,..._0x4fe216},'args':[_0x42d853],'tdx':_0x4968c7});gracefulExit(_0x193e44);});const llmAgentListAction=async(_0x5a351e,_0x4c2b68)=>{const _0x223052=a2_0xdfae8a,_0x241186=new LLMAgentsCommand(),_0x10aff3=program[_0x223052(0x301)](),_0x455db4=await createTDXInstance(_0x10aff3),_0x50e339=await _0x241186[_0x223052(0x38c)]({'options':{..._0x10aff3,..._0x4c2b68},'args':_0x5a351e?[_0x5a351e]:[],'tdx':_0x455db4});gracefulExit(_0x50e339);};llmCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2d4))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x355))[a2_0xdfae8a(0x2e8)](llmAgentListAction),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2d4))[a2_0xdfae8a(0x32b)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0xdfae8a(0x2e8)](llmAgentListAction),llmCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x291))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3c4))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2ab),a2_0xdfae8a(0x289))[a2_0xdfae8a(0x2e8)](async(_0x32d592,_0x5bdaf1)=>{const _0x1ec435=a2_0xdfae8a,_0x4004ba=new LLMHistoryCommand(),_0x2a58e6=program[_0x1ec435(0x301)](),_0x5eb3c1=await createTDXInstance(_0x2a58e6),_0x4df150=await _0x4004ba['run']({'options':{..._0x2a58e6,..._0x5bdaf1},'args':_0x32d592?[_0x32d592]:[],'tdx':_0x5eb3c1});gracefulExit(_0x4df150);}),llmCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3bd))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2c3))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1bb),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on','4000')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x29e),a2_0xdfae8a(0x318))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3ef),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0xdfae8a(0x2e8)](async _0x337cf4=>{const _0x4d6dbf=a2_0xdfae8a,_0xc70d8b=new LLMProxyCommand(),_0x4c08cc=program[_0x4d6dbf(0x301)](),_0x2664d4=await createTDXInstance(_0x4c08cc),_0x21eed8={..._0x337cf4,'port':_0x337cf4[_0x4d6dbf(0x26e)]?parseInt(_0x337cf4[_0x4d6dbf(0x26e)],0xa):undefined},_0xbe0e95=await _0xc70d8b[_0x4d6dbf(0x38c)]({'options':{..._0x4c08cc,..._0x21eed8},'args':[],'tdx':_0x2664d4});gracefulExit(_0xbe0e95);}),program['command'](a2_0xdfae8a(0x255))[a2_0xdfae8a(0x260)](a2_0xdfae8a(0x1fb))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x219))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3b6),a2_0xdfae8a(0x298),a2_0xdfae8a(0x3c0))['option'](a2_0xdfae8a(0x2f9),'Continue\x20most\x20recent\x20conversation')[a2_0xdfae8a(0x1d7)]('-r,\x20--resume',a2_0xdfae8a(0x268))['option'](a2_0xdfae8a(0x1fe),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')['option'](a2_0xdfae8a(0x3bb),'Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)')['allowUnknownOption']()['allowExcessArguments'](!![])['addHelpText'](a2_0xdfae8a(0x31b),a2_0xdfae8a(0x395))[a2_0xdfae8a(0x2e8)](async(_0x5a431b,_0x1f762f)=>{const _0x52df59=a2_0xdfae8a,_0x1d63d0=program[_0x52df59(0x301)](),_0x314a4f=Array[_0x52df59(0x2d0)](_0x5a431b)?_0x5a431b:[];if(_0x314a4f[0x0]===_0x52df59(0x251)){const _0x21de97=new ClaudeStatuslineCommand(),_0x56cf4a=await _0x21de97[_0x52df59(0x38c)]({'options':{..._0x1d63d0,..._0x1f762f},'args':_0x314a4f['slice'](0x1),'tdx':null});gracefulExit(_0x56cf4a);}if(_0x314a4f[0x0]===_0x52df59(0x260)){const _0x20b880=new ClaudeUsageCommand(),_0x14f523=await _0x20b880[_0x52df59(0x38c)]({'options':{..._0x1d63d0,..._0x1f762f},'args':_0x314a4f[_0x52df59(0x3ab)](0x1),'tdx':null});gracefulExit(_0x14f523);}const _0x1713b9=new ClaudeCommand(),_0x24f2ad=await createTDXInstance(_0x1d63d0),_0x1e2c2c=await _0x1713b9[_0x52df59(0x38c)]({'options':{..._0x1d63d0,..._0x1f762f},'args':_0x314a4f,'tdx':_0x24f2ad});gracefulExit(_0x1e2c2c);}),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2ce))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x34a))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x30f),a2_0xdfae8a(0x34e))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x26b),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0xdfae8a(0x2e8)](async(_0x4fcd08,_0xcc94ed,_0x266e13)=>{const _0xd549ca=a2_0xdfae8a,_0x3f266f=new UseCommand(),_0x8dbea7=program[_0xd549ca(0x301)](),_0x16f839=[];if(_0x4fcd08)_0x16f839[_0xd549ca(0x1fa)](_0x4fcd08);if(_0xcc94ed)_0x16f839[_0xd549ca(0x1fa)](_0xcc94ed);const _0x6366f4=await _0x3f266f[_0xd549ca(0x38c)]({'options':{..._0x8dbea7,..._0x266e13},'args':_0x16f839,'tdx':null});gracefulExit(_0x6366f4);}),program[a2_0xdfae8a(0x397)]('unset\x20<resource>')[a2_0xdfae8a(0x32b)]('Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x26b),a2_0xdfae8a(0x24c))[a2_0xdfae8a(0x2e8)](async(_0x37e462,_0x5695ef)=>{const _0x52a0d8=a2_0xdfae8a,_0x261142=new UnsetCommand(),_0xcb070c=program[_0x52a0d8(0x301)](),_0x397b08=await _0x261142[_0x52a0d8(0x38c)]({'options':{..._0xcb070c,..._0x5695ef},'args':[_0x37e462],'tdx':null});gracefulExit(_0x397b08);}),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1c5))['description']('Interactive\x20chat\x20selector')['option'](a2_0xdfae8a(0x2ab),a2_0xdfae8a(0x1ae))['action'](async _0xa6485b=>{const _0x38ca21=a2_0xdfae8a,_0x3739b6=new ChatsCommand(),_0x386a50=program[_0x38ca21(0x301)](),_0x581466=await createTDXInstance(_0x386a50),_0x16adef=await _0x3739b6['run']({'options':{..._0x386a50,..._0xa6485b},'args':[],'tdx':_0x581466});gracefulExit(_0x16adef);});const authCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3f4))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1d6));async function runAuthStatusCommand(_0x583431){const _0x33a45e=a2_0xdfae8a,_0x36b807=new AuthStatusCommand(),_0x4212e7=program[_0x33a45e(0x301)](),_0x3eb1a2=await createTDXInstance(_0x4212e7),_0x4dd4ff=await _0x36b807[_0x33a45e(0x38c)]({'options':{..._0x4212e7,..._0x583431},'args':[],'tdx':_0x3eb1a2});gracefulExit(_0x4dd4ff);}authCmd[a2_0xdfae8a(0x2e8)](runAuthStatusCommand),authCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3ec))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x198))[a2_0xdfae8a(0x2e8)](runAuthStatusCommand),authCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x299))[a2_0xdfae8a(0x32b)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0xdfae8a(0x273)](a2_0xdfae8a(0x31b),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')[a2_0xdfae8a(0x2e8)](async _0x3f21dd=>{const _0x13beb3=a2_0xdfae8a,_0x5e209c=new AuthSetupCommand(),_0x22c6a4=program[_0x13beb3(0x301)](),_0x4329e5=await createTDXInstance(_0x22c6a4),_0x46ed08=await _0x5e209c[_0x13beb3(0x38c)]({'options':{..._0x22c6a4,..._0x3f21dd},'args':[],'tdx':_0x4329e5});gracefulExit(_0x46ed08);}),authCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1cc))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x369))[a2_0xdfae8a(0x273)](a2_0xdfae8a(0x31b),'\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_0xdfae8a(0x2e8)](async _0x3a6127=>{const _0x529954=a2_0xdfae8a,_0x3593c8=new AuthClearCommand(),_0x46558e=program[_0x529954(0x301)](),_0x486505=await _0x3593c8[_0x529954(0x38c)]({'options':{..._0x46558e,..._0x3a6127},'args':[],'tdx':null});gracefulExit(_0x486505);});const userCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2f4))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x27e)),userListAction=async _0x2e6143=>{const _0x16885f=a2_0xdfae8a,_0x2bd2d7=new UserListCommand(),_0x11a705=program[_0x16885f(0x301)](),_0x49807f=await createTDXInstance(_0x11a705),_0x4d057d=await _0x2bd2d7[_0x16885f(0x38c)]({'options':{..._0x11a705,..._0x2e6143},'args':[],'tdx':_0x49807f});gracefulExit(_0x4d057d);};userCmd['action'](async _0xadb511=>{const _0x1ecc85=a2_0xdfae8a,_0xaecb94=new UserCommand(),_0x9ad3cc=program['opts'](),_0x3b7211=await createTDXInstance(_0x9ad3cc),_0x5b2549=await _0xaecb94[_0x1ecc85(0x38c)]({'options':{..._0x9ad3cc,..._0xadb511},'args':[],'tdx':_0x3b7211});gracefulExit(_0x5b2549);}),userCmd['command'](a2_0xdfae8a(0x2d2))['description']('List\x20all\x20users\x20in\x20the\x20account')[a2_0xdfae8a(0x2e8)](userListAction),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x252))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x358))[a2_0xdfae8a(0x2e8)](userListAction),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2bf))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3fa))['action'](async _0x1fd4c8=>{const _0x279a13=a2_0xdfae8a,_0x4fbb08=new ProfilesCommand(),_0x19071b=program['opts'](),_0x80389a=await _0x4fbb08[_0x279a13(0x38c)]({'options':{..._0x19071b,..._0x1fd4c8},'args':[],'tdx':null});gracefulExit(_0x80389a);});const profileCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2aa))[a2_0xdfae8a(0x32b)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd['action'](()=>{const _0x51bfed=a2_0xdfae8a;profileCmd[_0x51bfed(0x302)]();});const profileListAction=async _0x23f528=>{const _0x35fd92=a2_0xdfae8a,_0x15e320=new ProfilesCommand(),_0x39df27=program['opts'](),_0x5b1a6b=await _0x15e320[_0x35fd92(0x38c)]({'options':{..._0x39df27,..._0x23f528},'args':[],'tdx':null});gracefulExit(_0x5b1a6b);};profileCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2d2))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3fa))['action'](profileListAction),profileCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1b4))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x399))[a2_0xdfae8a(0x273)](a2_0xdfae8a(0x31b),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a')['action'](async(_0x1d3117,_0x2b3602)=>{const _0x19240e=a2_0xdfae8a,_0x387461=new ProfileCreateCommand(),_0x5662b5=program[_0x19240e(0x301)](),_0x130211=await _0x387461['run']({'options':{..._0x5662b5,..._0x2b3602},'args':_0x1d3117?[_0x1d3117]:[],'tdx':null});gracefulExit(_0x130211);}),profileCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x306))['description'](a2_0xdfae8a(0x234))[a2_0xdfae8a(0x273)]('after',a2_0xdfae8a(0x286))[a2_0xdfae8a(0x2e8)](async(_0x243eca,_0x618016)=>{const _0x2b2c83=a2_0xdfae8a,_0x2d4e21=new ProfileRemoveCommand(),_0xb4b4b6=program[_0x2b2c83(0x301)](),_0x2568b7=await _0x2d4e21[_0x2b2c83(0x38c)]({'options':{..._0xb4b4b6,..._0x618016},'args':[_0x243eca],'tdx':null});gracefulExit(_0x2568b7);}),profileCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3df))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2b7))[a2_0xdfae8a(0x273)](a2_0xdfae8a(0x31b),a2_0xdfae8a(0x199))['action'](async(_0x1e205b,_0x22f32a)=>{const _0x4d57ea=a2_0xdfae8a,_0x28e22f=new ProfileSetCommand(),_0x59cb8e=program[_0x4d57ea(0x301)](),_0x136860=await _0x28e22f[_0x4d57ea(0x38c)]({'options':{..._0x59cb8e,..._0x22f32a},'args':[_0x1e205b],'tdx':null});gracefulExit(_0x136860);}),profileCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3da))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2b2))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x26b),a2_0xdfae8a(0x376))[a2_0xdfae8a(0x273)]('after',a2_0xdfae8a(0x19e))[a2_0xdfae8a(0x2e8)](async(_0xf5d3ab,_0x1c085c)=>{const _0x5b67f2=a2_0xdfae8a,_0x37b5c7=new ProfileUseCommand(),_0x1559a4=program[_0x5b67f2(0x301)](),_0x1b70b7=await _0x37b5c7[_0x5b67f2(0x38c)]({'options':{..._0x1559a4,..._0x1c085c},'args':[_0xf5d3ab],'tdx':null});gracefulExit(_0x1b70b7);});const engageCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x225))[a2_0xdfae8a(0x32b)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x3aa236=>{return async(_0x8183bc,_0x5bde40)=>{const _0x3a7c10=a2_0x371a,_0x573879=new _0x3aa236(),_0x178ce5=program[_0x3a7c10(0x301)](),_0x874db7=await createTDXInstance(_0x178ce5),_0x683eb9=await _0x573879[_0x3a7c10(0x38c)]({'options':{..._0x178ce5,..._0x5bde40},'args':[_0x8183bc],'tdx':_0x874db7});gracefulExit(_0x683eb9);};},createEngageNoArgAction=_0x457c32=>{return async _0x46d5f6=>{const _0x5c613b=a2_0x371a,_0xb566df=new _0x457c32(),_0x2a5a17=program[_0x5c613b(0x301)](),_0x1a87a4=await createTDXInstance(_0x2a5a17),_0x19f603=await _0xb566df['run']({'options':{..._0x2a5a17,..._0x46d5f6},'args':[],'tdx':_0x1a87a4});gracefulExit(_0x19f603);};},campaignCmd=engageCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3ce))[a2_0xdfae8a(0x32b)]('Campaign\x20management'),campaignListAction=async(_0x5369b3,_0x26a0b4)=>{const _0xaca6=new EngageCampaignsCommand(),_0x2fba45=program['opts'](),_0x213183=await createTDXInstance(_0x2fba45),_0x2eab1a=await _0xaca6['run']({'options':{..._0x2fba45,..._0x26a0b4},'args':_0x5369b3?[_0x5369b3]:[],'tdx':_0x213183});gracefulExit(_0x2eab1a);};campaignCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x24a))[a2_0xdfae8a(0x32b)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x35a),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x257),a2_0xdfae8a(0x1e4))['option'](a2_0xdfae8a(0x394),a2_0xdfae8a(0x1ac))[a2_0xdfae8a(0x2e8)](campaignListAction),engageCmd['command']('campaigns\x20[pattern]')['description'](a2_0xdfae8a(0x374))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x35a),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0xdfae8a(0x257),a2_0xdfae8a(0x1e4))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x394),a2_0xdfae8a(0x1ac))['action'](campaignListAction),campaignCmd['command'](a2_0xdfae8a(0x1f1))['description'](a2_0xdfae8a(0x246))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x394),'Workspace\x20name')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2ff),a2_0xdfae8a(0x36a))[a2_0xdfae8a(0x2e8)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1b9))[a2_0xdfae8a(0x32b)]('Create\x20a\x20new\x20campaign')['requiredOption']('--name\x20<name>',a2_0xdfae8a(0x330))['requiredOption'](a2_0xdfae8a(0x35a),a2_0xdfae8a(0x3c7))[a2_0xdfae8a(0x1d7)]('--workspace\x20<name>','Workspace\x20name\x20(required)')['option']('--description\x20<desc>',a2_0xdfae8a(0x3b4))[a2_0xdfae8a(0x1d7)]('--segment\x20<path>',a2_0xdfae8a(0x233))[a2_0xdfae8a(0x1d7)]('--email-sender-id\x20<id>',a2_0xdfae8a(0x3c9))['option'](a2_0xdfae8a(0x20a),a2_0xdfae8a(0x337))['option'](a2_0xdfae8a(0x1ef),a2_0xdfae8a(0x2f3))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1de),a2_0xdfae8a(0x3d1))[a2_0xdfae8a(0x2e8)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x398))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x265))['option'](a2_0xdfae8a(0x394),'Workspace\x20name')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x342),'New\x20campaign\x20name')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3c3),a2_0xdfae8a(0x3b4))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1bc),a2_0xdfae8a(0x233))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x220),a2_0xdfae8a(0x3c9))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x20a),a2_0xdfae8a(0x337))['option'](a2_0xdfae8a(0x1ef),a2_0xdfae8a(0x2f3))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1de),a2_0xdfae8a(0x3d1))[a2_0xdfae8a(0x2e8)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x22d))['option']('--workspace\x20<name>',a2_0xdfae8a(0x1ac))['option']('--yes',a2_0xdfae8a(0x200))[a2_0xdfae8a(0x2e8)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0xdfae8a(0x1b1))[a2_0xdfae8a(0x32b)]('Launch\x20a\x20campaign')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x394),a2_0xdfae8a(0x1ac))[a2_0xdfae8a(0x2e8)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2e1))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x20b))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x394),'Workspace\x20name')['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0xdfae8a(0x397)]('resume\x20<name-or-id>')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x28c))[a2_0xdfae8a(0x1d7)]('--workspace\x20<name>','Workspace\x20name')[a2_0xdfae8a(0x2e8)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0xdfae8a(0x397)]('duplicate\x20<name-or-id>')['description'](a2_0xdfae8a(0x1fc))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x394),a2_0xdfae8a(0x1ac))[a2_0xdfae8a(0x2e8)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1ce))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3a7)),templateListAction=async(_0x3f2a34,_0x1a8ae1)=>{const _0x4b56ea=a2_0xdfae8a,_0x48fad9=new EngageTemplatesCommand(),_0x4b243c=program[_0x4b56ea(0x301)](),_0x1f20b5=await createTDXInstance(_0x4b243c),_0x267d69=await _0x48fad9['run']({'options':{..._0x4b243c,..._0x1a8ae1},'args':_0x3f2a34?[_0x3f2a34]:[],'tdx':_0x1f20b5});gracefulExit(_0x267d69);};templateCmd['command'](a2_0xdfae8a(0x24a))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1e1))['option'](a2_0xdfae8a(0x394),'Workspace\x20name')['action'](templateListAction),engageCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x29d))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x25a))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x394),a2_0xdfae8a(0x1ac))[a2_0xdfae8a(0x2e8)](templateListAction),templateCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1f1))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3dd))['option'](a2_0xdfae8a(0x394),'Workspace\x20name')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2ff),a2_0xdfae8a(0x36a))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1b9))[a2_0xdfae8a(0x32b)]('Create\x20an\x20email\x20template')['requiredOption'](a2_0xdfae8a(0x342),'Template\x20name')[a2_0xdfae8a(0x288)]('--subject\x20<subject>',a2_0xdfae8a(0x3f3))[a2_0xdfae8a(0x288)]('--html\x20<html>',a2_0xdfae8a(0x2d9))[a2_0xdfae8a(0x1d7)]('--workspace\x20<name>',a2_0xdfae8a(0x3d4))[a2_0xdfae8a(0x1d7)]('--plaintext\x20<text>',a2_0xdfae8a(0x386))['option'](a2_0xdfae8a(0x276),a2_0xdfae8a(0x363),_0x3c3003=>{const _0x42513c=a2_0xdfae8a;if(!['beefree',_0x42513c(0x2f6)][_0x42513c(0x266)](_0x3c3003))throw new SDKError(ErrorCode[_0x42513c(0x32e)],_0x42513c(0x216)+_0x3c3003+_0x42513c(0x2c4));return _0x3c3003;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x398))['description']('Update\x20an\x20email\x20template')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x394),a2_0xdfae8a(0x1ac))[a2_0xdfae8a(0x1d7)]('--name\x20<name>','New\x20template\x20name')['option'](a2_0xdfae8a(0x319),'Email\x20subject\x20template')[a2_0xdfae8a(0x1d7)]('--html\x20<html>',a2_0xdfae8a(0x2d9))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x349),a2_0xdfae8a(0x386))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3ac))['description']('Delete\x20an\x20email\x20template')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x394),'Workspace\x20name')['option']('--yes',a2_0xdfae8a(0x200))[a2_0xdfae8a(0x2e8)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0xdfae8a(0x397)]('workspace')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3b1)),workspaceListAction=async(_0x301de7,_0xa39108)=>{const _0x398b58=a2_0xdfae8a,_0x3dd72c=new EngageWorkspacesCommand(),_0x243336=program[_0x398b58(0x301)](),_0x2f070d=await createTDXInstance(_0x243336),_0x7df603=await _0x3dd72c[_0x398b58(0x38c)]({'options':{..._0x243336,..._0xa39108},'args':_0x301de7?[_0x301de7]:[],'tdx':_0x2f070d});gracefulExit(_0x7df603);};workspaceCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x24a))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x24f))[a2_0xdfae8a(0x2e8)](workspaceListAction),engageCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3f5))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1c8))[a2_0xdfae8a(0x2e8)](workspaceListAction),workspaceCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1f1))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3b5))[a2_0xdfae8a(0x1d7)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0xdfae8a(0x1b9))['description'](a2_0xdfae8a(0x3d7))[a2_0xdfae8a(0x288)](a2_0xdfae8a(0x342),'Workspace\x20name')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3c3),a2_0xdfae8a(0x305))[a2_0xdfae8a(0x2e8)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x398))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1ab))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x342),a2_0xdfae8a(0x227))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3c3),a2_0xdfae8a(0x305))[a2_0xdfae8a(0x2e8)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3ac))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2b1))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3a0),a2_0xdfae8a(0x200))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0xdfae8a(0x3da))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1cd))[a2_0xdfae8a(0x2e8)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2c0))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1f6)),connectionListAction=async _0x1f39db=>{const _0x591659=a2_0xdfae8a,_0x52c290=new ConnectionListCommand(),_0x461e71=program[_0x591659(0x301)](),_0x2ffcb0=await createTDXInstance(_0x461e71),_0x76c4c3=await _0x52c290['run']({'options':{..._0x461e71,..._0x1f39db},'args':[],'tdx':_0x2ffcb0});gracefulExit(_0x76c4c3);};connectionCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2d2))['description']('List\x20all\x20data\x20connections')[a2_0xdfae8a(0x2e8)](connectionListAction),program['command'](a2_0xdfae8a(0x30e),{'hidden':!![]})[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3f6))['action'](connectionListAction),connectionCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3b2))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x366))[a2_0xdfae8a(0x2e8)](async(_0x2bd85d,_0x45d078)=>{const _0x14e213=a2_0xdfae8a,_0x59f565=new ConnectionShowCommand(),_0x1eab87=program['opts'](),_0x53f098=await createTDXInstance(_0x1eab87),_0xf9f063=await _0x59f565[_0x14e213(0x38c)]({'options':{..._0x1eab87,..._0x45d078},'args':[_0x2bd85d],'tdx':_0x53f098});gracefulExit(_0xf9f063);}),connectionCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3ee))[a2_0xdfae8a(0x32b)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0xdfae8a(0x2e8)](async(_0x25060b,_0x29739d)=>{const _0x172ccc=a2_0xdfae8a,_0xf6bcd=new ConnectionSchemaCommand(),_0x294375=program[_0x172ccc(0x301)](),_0x486861=await createTDXInstance(_0x294375),_0xa48af2=await _0xf6bcd['run']({'options':{..._0x294375,..._0x29739d},'args':[_0x25060b],'tdx':_0x486861});gracefulExit(_0xa48af2);}),connectionCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x28f))[a2_0xdfae8a(0x32b)]('List\x20available\x20connector\x20types')[a2_0xdfae8a(0x2e8)](async _0x24b172=>{const _0x28fa50=a2_0xdfae8a,_0x195546=new ConnectionTypesCommand(),_0x56f3a6=program[_0x28fa50(0x301)](),_0x2db86d=await createTDXInstance(_0x56f3a6),_0x547e67=await _0x195546[_0x28fa50(0x38c)]({'options':{..._0x56f3a6,..._0x24b172},'args':[],'tdx':_0x2db86d});gracefulExit(_0x547e67);}),connectionCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x19f))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x280))[a2_0xdfae8a(0x2e8)](async(_0x2c14a3,_0x515f39)=>{const _0x17b885=a2_0xdfae8a,_0x40a784=new ConnectionSettingsCommand(),_0x398f8e=program[_0x17b885(0x301)](),_0x2c6a70=await createTDXInstance(_0x398f8e),_0x29a78a=await _0x40a784[_0x17b885(0x38c)]({'options':{..._0x398f8e,..._0x515f39},'args':[_0x2c14a3],'tdx':_0x2c6a70});gracefulExit(_0x29a78a);});const journeyCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x334))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x209)),journeyListAction=async(_0x4700f8,_0x4f14bd)=>{const _0x52a717=a2_0xdfae8a,_0x5d3313=new JourneyListCommand(),_0x307794=program[_0x52a717(0x301)](),_0x49c0b7=await createTDXInstance(_0x307794),_0x4d64f1=await _0x5d3313[_0x52a717(0x38c)]({'options':{..._0x307794,..._0x4f14bd},'args':_0x4700f8?[_0x4700f8]:[],'tdx':_0x49c0b7});gracefulExit(_0x4d64f1);};journeyCmd[a2_0xdfae8a(0x397)]('list\x20[pattern]')['description'](a2_0xdfae8a(0x2c9))[a2_0xdfae8a(0x2e8)](journeyListAction),journeyCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x1f5))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x1a1))[a2_0xdfae8a(0x1d7)]('-w,\x20--web',a2_0xdfae8a(0x2da))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x37e),a2_0xdfae8a(0x212))[a2_0xdfae8a(0x2e8)](async(_0x3b6713,_0x4a8c4c)=>{const _0x3b1343=a2_0xdfae8a,_0x40d974=new JourneyViewCommand(),_0x428e81=program[_0x3b1343(0x301)](),_0x42c0ea=await createTDXInstance(_0x428e81),_0x2aaaeb=await _0x40d974['run']({'options':{..._0x428e81,..._0x4a8c4c},'args':[_0x3b6713],'tdx':_0x42c0ea});gracefulExit(_0x2aaaeb);}),journeyCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x3cf))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x384))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2e4),'Show\x20stats\x20for\x20specific\x20stage')[a2_0xdfae8a(0x2e8)](async(_0x33d03d,_0x39838c)=>{const _0x52fd8e=new JourneyStatsCommand(),_0x173ce2=program['opts'](),_0x868cbf=await createTDXInstance(_0x173ce2),_0x4e0863=await _0x52fd8e['run']({'options':{..._0x173ce2,..._0x39838c},'args':[_0x33d03d],'tdx':_0x868cbf});gracefulExit(_0x4e0863);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x2a5))[a2_0xdfae8a(0x2e8)](async(_0x246dde,_0x1325f7)=>{const _0x3bd60c=a2_0xdfae8a,_0x57981c=new JourneyPauseCommand(),_0x2d1358=program[_0x3bd60c(0x301)](),_0x9053d2=await createTDXInstance(_0x2d1358),_0x47ee2b=await _0x57981c[_0x3bd60c(0x38c)]({'options':{..._0x2d1358,..._0x1325f7},'args':[_0x246dde],'tdx':_0x9053d2});gracefulExit(_0x47ee2b);}),journeyCmd[a2_0xdfae8a(0x397)]('resume\x20<name-or-path>')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x32c))['action'](async(_0x2495bd,_0x302480)=>{const _0x5a3c03=a2_0xdfae8a,_0x5cbd21=new JourneyResumeCommand(),_0x2a4bf7=program[_0x5a3c03(0x301)](),_0x1468d1=await createTDXInstance(_0x2a4bf7),_0x45515b=await _0x5cbd21[_0x5a3c03(0x38c)]({'options':{..._0x2a4bf7,..._0x302480},'args':[_0x2495bd],'tdx':_0x1468d1});gracefulExit(_0x45515b);}),journeyCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2e7))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x308))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3d8),a2_0xdfae8a(0x200))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2e0),a2_0xdfae8a(0x378))[a2_0xdfae8a(0x2e8)](async(_0x493ebe,_0x1ed84f)=>{const _0x367222=a2_0xdfae8a,_0x43e615=new JourneyPullCommand(),_0x4513cb=program[_0x367222(0x301)](),_0x3c1afb=await createTDXInstance(_0x4513cb),_0x3a101a=await _0x43e615[_0x367222(0x38c)]({'options':{..._0x4513cb,..._0x1ed84f},'args':_0x493ebe?[_0x493ebe]:[],'tdx':_0x3c1afb});gracefulExit(_0x3a101a);}),journeyCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x303))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x20d))[a2_0xdfae8a(0x2e8)](async(_0x4e8418,_0x201bfa)=>{const _0x30454a=a2_0xdfae8a,_0x5a2109=new JourneyPushCommand(),_0x5515df=program[_0x30454a(0x301)](),_0x166cdd=await createTDXInstance(_0x5515df),_0x5b6ffd=await _0x5a2109['run']({'options':{..._0x5515df,..._0x201bfa},'args':_0x4e8418?[_0x4e8418]:[],'tdx':_0x166cdd});gracefulExit(_0x5b6ffd);}),journeyCmd['command'](a2_0xdfae8a(0x223))['description'](a2_0xdfae8a(0x248))[a2_0xdfae8a(0x2e8)](async(_0x5e9f82,_0x10bbb9)=>{const _0x4e9ea5=a2_0xdfae8a,_0x17f4c9=new JourneyValidateCommand(),_0x34e6ff=program[_0x4e9ea5(0x301)](),_0x1cfbda=await createTDXInstance(_0x34e6ff),_0x4ed45b=await _0x17f4c9[_0x4e9ea5(0x38c)]({'options':{..._0x34e6ff,..._0x10bbb9},'args':_0x5e9f82?[_0x5e9f82]:[],'tdx':_0x1cfbda});gracefulExit(_0x4ed45b);}),program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x30d))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x396))[a2_0xdfae8a(0x2e8)](journeyListAction);const agentSyncCmd=program[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x2a6))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x321));agentSyncCmd['command'](a2_0xdfae8a(0x336))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3ba))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x221),a2_0xdfae8a(0x39a))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2ec),a2_0xdfae8a(0x3d3))[a2_0xdfae8a(0x2e8)](async(_0x5493e0,_0x1f5f3e,_0x8707d9)=>{const _0x2e91f7=a2_0xdfae8a,_0x3f22f8=new AgentPullCommand(),_0x23aeaa=program[_0x2e91f7(0x301)](),_0x5b624b=await createTDXInstance(_0x23aeaa),_0x844dcd=[];if(_0x5493e0)_0x844dcd[_0x2e91f7(0x1fa)](_0x5493e0);if(_0x1f5f3e)_0x844dcd['push'](_0x1f5f3e);const _0x1af2fd=await _0x3f22f8[_0x2e91f7(0x38c)]({'options':{..._0x23aeaa,..._0x8707d9},'args':_0x844dcd,'tdx':_0x5b624b});gracefulExit(_0x1af2fd);}),agentSyncCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x21e))['description'](a2_0xdfae8a(0x3e2))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x2ec),a2_0xdfae8a(0x3cb))[a2_0xdfae8a(0x2e8)](async(_0x5f4502,_0x25cda7)=>{const _0xbe06c1=a2_0xdfae8a,_0x1f772b=new AgentPushCommand(),_0x32647c=program[_0xbe06c1(0x301)](),_0x4cea5b=await createTDXInstance(_0x32647c),_0x169e59=await _0x1f772b['run']({'options':{..._0x32647c,..._0x25cda7},'args':_0x5f4502?[_0x5f4502]:[],'tdx':_0x4cea5b});gracefulExit(_0x169e59);}),agentSyncCmd['command']('clone\x20[source]')[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x283))[a2_0xdfae8a(0x1d7)]('-n,\x20--name\x20<name>',a2_0xdfae8a(0x1f2))[a2_0xdfae8a(0x2e8)](async(_0x1d665b,_0x21aeb6)=>{const _0x147c5b=a2_0xdfae8a,_0x4677f4=new AgentCloneCommand(),_0x3b91a4=program[_0x147c5b(0x301)](),_0x46a48e=await createTDXInstance(_0x3b91a4),_0x9a6c4c=await _0x4677f4['run']({'options':{..._0x3b91a4,..._0x21aeb6},'args':_0x1d665b?[_0x1d665b]:[],'tdx':_0x46a48e});gracefulExit(_0x9a6c4c);}),agentSyncCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x26a))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x22b))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x28e),'Run\x20specific\x20tests\x20(comma-separated)')['option'](a2_0xdfae8a(0x2e0),'Parse\x20and\x20validate\x20without\x20executing')['option'](a2_0xdfae8a(0x23f),a2_0xdfae8a(0x264))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1af),a2_0xdfae8a(0x377))[a2_0xdfae8a(0x2e8)](async(_0x1edce1,_0xab8681)=>{const _0x25b4a0=new AgentTestCommand(),_0x11d6af=program['opts'](),_0x352b4c=await createTDXInstance(_0x11d6af),_0x41ff78=await _0x25b4a0['run']({'options':{..._0x11d6af,..._0xab8681},'args':_0x1edce1?[_0x1edce1]:[],'tdx':_0x352b4c});gracefulExit(_0x41ff78);}),agentSyncCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x24a))['description'](a2_0xdfae8a(0x26d))[a2_0xdfae8a(0x2e8)](llmAgentListAction),agentSyncCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x348))['description'](a2_0xdfae8a(0x392))[a2_0xdfae8a(0x2e8)](async(_0x485317,_0x28cec5)=>{const _0x5bb53e=a2_0xdfae8a,_0x5e9b55=new LLMAgentShowCommand(),_0x58515a=program[_0x5bb53e(0x301)](),_0x2f8402=await createTDXInstance(_0x58515a),_0x53f772=await _0x5e9b55['run']({'options':{..._0x58515a,..._0x28cec5},'args':[_0x485317],'tdx':_0x2f8402});gracefulExit(_0x53f772);}),agentSyncCmd[a2_0xdfae8a(0x397)](a2_0xdfae8a(0x247))[a2_0xdfae8a(0x32b)](a2_0xdfae8a(0x3fb))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x37f),a2_0xdfae8a(0x389))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x3b6),'Model\x20type\x20(default:\x20claude-4.5-sonnet)','claude-4.5-sonnet')[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x235),a2_0xdfae8a(0x262))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x1cb),a2_0xdfae8a(0x33e),'4')[a2_0xdfae8a(0x1d7)]('--temperature\x20<n>',a2_0xdfae8a(0x364),a2_0xdfae8a(0x20f))['action'](async(_0x147e79,_0x118c1c)=>{const _0x102b66=a2_0xdfae8a,_0x34359c=new LLMAgentCreateCommand(),_0x5655f8=program[_0x102b66(0x301)](),_0x4e0040=await createTDXInstance(_0x5655f8),_0x15b3e2=await _0x34359c[_0x102b66(0x38c)]({'options':{..._0x5655f8,..._0x118c1c},'args':[_0x147e79],'tdx':_0x4e0040});gracefulExit(_0x15b3e2);}),agentSyncCmd['command'](a2_0xdfae8a(0x35f))['description']('Update\x20an\x20existing\x20agent')['option'](a2_0xdfae8a(0x352),'Agent\x20name')['option'](a2_0xdfae8a(0x24e),a2_0xdfae8a(0x254))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x25b),a2_0xdfae8a(0x2d5))[a2_0xdfae8a(0x1d7)](a2_0xdfae8a(0x235),'Starter\x20message')[a2_0xdfae8a(0x2e8)](async(_0x1a9403,_0x1e4b7e)=>{const _0x481055=a2_0xdfae8a,_0x29efa6=new LLMAgentUpdateCommand(),_0x28fc91=program['opts'](),_0x44ae5a=await createTDXInstance(_0x28fc91),_0x4b5d86=await _0x29efa6[_0x481055(0x38c)]({'options':{..._0x28fc91,..._0x1e4b7e},'args':[_0x1a9403],'tdx':_0x44ae5a});gracefulExit(_0x4b5d86);}),agentSyncCmd['command'](a2_0xdfae8a(0x2e6))['description']('Delete\x20an\x20agent')['action'](async(_0x25a2bb,_0x1122c5)=>{const _0xb950aa=a2_0xdfae8a,_0x43af66=new LLMAgentDeleteCommand(),_0x34f0a1=program[_0xb950aa(0x301)](),_0x10aac9=await createTDXInstance(_0x34f0a1),_0x595d7c=await _0x43af66[_0xb950aa(0x38c)]({'options':{..._0x34f0a1,..._0x1122c5},'args':[_0x25a2bb],'tdx':_0x10aac9});gracefulExit(_0x595d7c);});export{program};export function runCLI(){const _0x38befa=a2_0xdfae8a,_0x2b5f51=!process['argv'][_0x38befa(0x3ab)](0x2)[_0x38befa(0x224)];showBriefHelp=_0x2b5f51,program[_0x38befa(0x1d5)](process['argv']),_0x2b5f51&&program[_0x38befa(0x302)](),process[_0x38befa(0x35d)][_0x38befa(0x312)]&&process[_0x38befa(0x1d3)][_0x38befa(0x224)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x38befa(0x232)](_0xfea1da=>{_0xfea1da&&displayUpdateNotification(_0xfea1da);})['catch'](()=>{});}
|