@treasuredata/tdx 0.14.0 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/api-command.js.map +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.d.ts +1 -0
- package/dist/commands/claude-command.d.ts.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.d.ts +3 -4
- 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/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.d.ts +2 -0
- package/dist/proxy/claude-usage-tracker.d.ts.map +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.d.ts +86 -0
- package/dist/proxy/passthrough-server.d.ts.map +1 -0
- package/dist/proxy/passthrough-server.js +1 -0
- package/dist/proxy/passthrough-server.js.map +1 -0
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/proxy/sse-usage-parser.d.ts +99 -0
- package/dist/proxy/sse-usage-parser.d.ts.map +1 -0
- package/dist/proxy/sse-usage-parser.js +1 -0
- package/dist/proxy/sse-usage-parser.js.map +1 -0
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.d.ts +5 -0
- package/dist/sdk/client/endpoints.d.ts.map +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.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-aliases.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.d.ts +1 -1
- package/dist/sdk/types/index.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/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.d.ts.map +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js.map +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.d.ts +60 -0
- package/dist/sdk/workflow/workflow-utils.d.ts.map +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js.map +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/json-loader.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +2 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x4ac895=a2_0x781d;(function(_0x17ec6c,_0x1f7f70){const _0x368939=a2_0x781d,_0x34287c=_0x17ec6c();while(!![]){try{const _0x4a54c4=-parseInt(_0x368939(0x168))/0x1*(-parseInt(_0x368939(0x25f))/0x2)+-parseInt(_0x368939(0x333))/0x3+-parseInt(_0x368939(0x2ec))/0x4+parseInt(_0x368939(0x338))/0x5+-parseInt(_0x368939(0x1ec))/0x6*(-parseInt(_0x368939(0x1bf))/0x7)+parseInt(_0x368939(0x1fe))/0x8+-parseInt(_0x368939(0x223))/0x9;if(_0x4a54c4===_0x1f7f70)break;else _0x34287c['push'](_0x34287c['shift']());}catch(_0x189d19){_0x34287c['push'](_0x34287c['shift']());}}}(a2_0x33cf,0x40de2));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x4ac895(0x257)][a2_0x4ac895(0x207)](a2_0x4ac895(0x1e2))){let versionOutput=a2_0x4ac895(0x30d)+currentVersion;buildInfo['gitRevision']&&!currentVersion[a2_0x4ac895(0x207)](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x4ac895(0x313)]+')'),buildInfo[a2_0x4ac895(0x1a1)]&&(versionOutput+=a2_0x4ac895(0x1d0)+buildInfo[a2_0x4ac895(0x1a1)]),console['log'](versionOutput),process[a2_0x4ac895(0x2d1)](0x0);}const program=new Command();let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x4ac895(0x313)]&&!currentVersion[a2_0x4ac895(0x207)](buildInfo[a2_0x4ac895(0x313)])?description+=a2_0x4ac895(0x270)+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x4ac895(0x270)+currentVersion;function a2_0x33cf(){const _0x35ef25=['61264aAfdPr','isTTY','_hidden','stats\x20<name-or-path>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','delete\x20<name-or-id>','--segment\x20<path>','Parent\x20folder\x20name\x20for\x20nested\x20folders','Change\x20to\x20directory\x20before\x20executing\x20command','models','--schedule-option\x20<value>','folders\x20<parent_name>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','information_schema','--table','Arguments:','--add-behaviors-file\x20<file>',',\x20version\x20','argumentTerm','createAsync','Include\x20retried\x20attempts','push\x20[target]','CDP\x20Journey\x20Orchestration\x20commands','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--include-stats','Update\x20a\x20campaign','allowExcessArguments','List\x20available\x20LLM\x20models','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','[attempt-id]','Clear\x20workflow\x20project\x20context','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--project\x20<name>','Manage\x20workflow\x20project\x20secrets','api\x20[endpoint]','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Create\x20a\x20new\x20LLM\x20project','Create\x20a\x20new\x20agent\x20in\x20current\x20project','usage','fields\x20[name]','Add\x20behaviors\x20from\x20JSON\x20file','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--prompt\x20<text>','show\x20<name-or-id>','Filtering\x20rule\x20from\x20JSON\x20file','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Preview\x20changes\x20without\x20writing\x20files','map','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','List\x20available\x20connector\x20types','--params\x20<json>','Update\x20an\x20email\x20template','join','configureHelp','HTML\x20template\x20content','Show\x20master\x20table\x20sample\x20data','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','preview\x20[file]','--limit\x20<rows>','show\x20[segment_name]','-w,\x20--web','profile','--param\x20<key=value>','launch\x20<name-or-id>','List\x20jobs','update\x20<name-or-id>','pull\x20[parent_or_file]','--plaintext\x20<text>','fields\x20[parent_name]','databases\x20[pattern]','Follow/watch\x20timeline\x20for\x20running\x20attempts','INVALID_ARGUMENT','--revision\x20<revision>','--subject\x20<subject>','attempts\x20[project]','Set\x20session\x20profile','\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','filter','--system-prompt\x20<text>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','secrets','--json','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','DEBUG','Output\x20folder\x20(default:\x20{project_name}.llm)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','slice','--data\x20<data>','Pause\x20a\x20running\x20journey','Setup\x20API\x20key\x20authentication\x20interactively','repeat','\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','templates\x20[pattern]','Open\x20parent\x20segment\x20in\x20web\x20browser','--force','--behavior\x20[name]','campaigns\x20[pattern]','--from-task\x20<task>','database','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','push\x20[parent_or_file]','logLevel','Path\x20is\x20not\x20a\x20directory:\x20','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--attributes-file\x20<file>','projects\x20[pattern]','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','exit','users','engage','then','Show\x20journey\x20details','upload\x20[project-name-or-dir]','Starter\x20message','--interval\x20<range>','--attempt-id\x20<id>','Update\x20a\x20workspace','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Create\x20a\x20new\x20profile\x20interactively','sessions\x20[project]','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','--add-attributes\x20<json>','workflows\x20[project]','Set\x20a\x20profile\x20configuration\x20value','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','use\x20<project-name>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--database\x20<name>','Options:','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Skip\x20confirmation\x20prompt','Workspace\x20description','387132ixHyRz','trace','-H,\x20--header\x20<header>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--rule\x20<json>','-o,\x20--output\x20<file>','List\x20all\x20available\x20profiles','clone\x20[source]','\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','backup\x20<name>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--port\x20<number>','--status\x20<status>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--temperature\x20<n>','Remove\x20a\x20profile','--type\x20<type>','activations\x20<segment_name>','timeline\x20[project.workflow]','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','colorFn','set\x20<key=value>','Updated\x20description','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','CDP\x20segment\x20management\x20commands','--timezone\x20<tz>','Create\x20segment\x20folder','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','[DEPRECATED]\x20Segment\x20folder\x20management','--llm-project\x20<name>','-r,\x20--recursive','--max-depth\x20<depth>','agent','tdx\x20','show\x20<name>','push\x20[name]','desc','user','Workspace\x20management','gitRevision','tdx','--json-columns\x20<cols>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','info\x20[segment_name]','--behaviors\x20<json>','use\x20<name>','segments\x20[path]','Launch\x20a\x20campaign','-r,\x20--resume','create\x20<name>','update\x20<agent-name>','options','push\x20[source-dir]','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Override\x20project\x20name','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Enable\x20verbose\x20logging','-f,\x20--file\x20<path>','Template\x20name','--email-sender-id\x20<id>','Maximum\x20recursion\x20depth\x20(default:\x2010)','INFO','schema\x20<type>','--trace','parent_segment','Delete\x20a\x20workspace','--last','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','show\x20<folder_ref>','--color','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','681510NWoekk','--start-at\x20<datetime>','set\x20<args...>','--schedule-type\x20<type>','get','1555080MAHEOB','run','Skip\x20confirmation\x20prompts','Pull\x20child\x20segments\x20to\x20YAML\x20files','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','parent','Create\x20a\x20workspace','Submit\x20a\x20job','Campaign\x20type\x20(email\x20or\x20push)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','--add-behaviors\x20<json>','option','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','-1d','Job\x20management\x20commands','--jsonl','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','create','--master','List\x20all\x20users\x20in\x20the\x20account','replace','--folder\x20<name>','-f,\x20--force','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','pull\x20[project]\x20[agent-name]','query\x20[sql]','Agent\x20name','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','New\x20segment\x20name','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','hidden','folder','--add-attributes-file\x20<file>','chats','--customer-group-file\x20<file>','Updated\x20timezone','List\x20secret\x20keys\x20for\x20a\x20project','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','LLM\x20project\x20management','logs','Interactive\x20chat\x20selector','summary','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Plaintext\x20template\x20content','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','proxy','End\x20time\x20filter\x20(ISO\x208601\x20format)','Limit\x20number\x20of\x20rows','Delete\x20an\x20LLM\x20project','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','journeys\x20[pattern]','attempt:','Agent\x20prompt/instructions','TRACE','view\x20[segment_name]','Resume\x20a\x20paused\x20journey','Run\x20Trino\x20query\x20with\x20streaming\x20results','Export\x20journey(s)\x20as\x20YAML\x20files','Validate\x20journey\x20YAML\x20files\x20locally','--name\x20<text>','--model\x20<name>','error','table','--full','List\x20journeys\x20in\x20current\x20context','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--skip-validation','port','aliases','required','Create\x20an\x20email\x20template','kill\x20<job-id>','--rule-file\x20<file>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Authentication\x20management','Output\x20as\x20JSON','campaign','journey','describe','Save\x20output\x20to\x20file','show\x20<job-id>','--html\x20<html>','push\x20[path]','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','preAction','describe\x20[table]','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','directory','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','show\x20[name]','Database\x20to\x20use\x20(overrides\x20context)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','stderr','--agent\x20<name>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--editor-type\x20<type>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','kill','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','forEach','optionDescription','--session\x20<id>','--customer-group\x20<json>','jsonl','json','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','segment','Customer\x20group\x20from\x20JSON\x20file','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Parent\x20segment\x20management','--job-type\x20<type>','Task\x20name\x20for\x20logs\x20action','Database\x20management\x20commands','Read\x20request\x20body\x20from\x20file','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','-C,\x20--directory\x20<path>','Custom\x20revision\x20name\x20(default:\x20timestamp)','Get\x20job\x20results','Open\x20journey\x20in\x20web\x20browser','Skip\x20validation\x20of\x20.dig\x20files','--session-id\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','7VuUIoF','restore\x20<folder>','Folder\x20name\x20for\x20organization','Preview\x20changes\x20without\x20pushing','Set\x20or\x20show\x20parent\x20segment\x20context','-v,\x20--verbose','Output\x20as\x20JSON\x20Lines','status','--name\x20<name>','parse','Agent\x20description','--include-retried','length','Remove\x20API\x20key\x20from\x20system\x20keychain','sonnet','Master\x20database\x20name','-p,\x20--profile\x20<name>','claude\x20[args...]','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Folder\x20description','Push\x20without\x20confirmation','--invisible','--enriched','Workflow\x20(Digdag)\x20management\x20commands','agents\x20[pattern]','delete\x20<agent-name>','Show\x20agent\x20details','jobs','--output\x20<file>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--include-subtasks','--workspace\x20<name>','template','Move\x20to\x20folder','Attributes\x20from\x20JSON\x20file','Campaign\x20management','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Add\x20behaviors\x20as\x20JSON\x20string','Behaviors\x20from\x20JSON\x20file','-d,\x20--database\x20<database>','Attempt\x20ID','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Set\x20operation\x20timeout\x20in\x20seconds','subcommandTerm','Show\x20connection\x20details\x20by\x20name','list','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','tables\x20[pattern]','[options]\x20--\x20[claude-code-args...]','workspace','--no-proxy','push','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\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#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a','--yes','buildTime','parents\x20[pattern]','Table\x20management\x20commands','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','validate\x20[target]','--description\x20<desc>','connection','statusline','--parent-segment\x20<name>','apiKey','create\x20<segment_name>','subcommandDescription','allowUnknownOption','list\x20[project]','auth','list\x20[path]','clear','-X,\x20--method\x20<method>','help','delete\x20<project-name-or-id>','--behaviors-file\x20<file>','parent-segment','noColor','--clear','--description\x20<text>','registeredArguments','optionTerm','Pause\x20a\x20campaign','--tsv','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','350FVtCdz','--dry-run','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','opts','command','commandDescription','push\x20[file]','Project\x20description','Campaign\x20description','--kind\x20<type>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','retry\x20<session-id>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Workspace\x20name\x20(required)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Action:\x20logs,\x20tasks,\x20kill,\x20retry','\x20-\x20built\x20','after','--resume-from\x20<task>','--in\x20<database>','llm','isArray','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','requiredOption','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Open\x20segment\x20in\x20web\x20browser','-c,\x20--continue','--attribute\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--limit\x20<number>','--parent-folder\x20<name>','pull\x20[name]','chat\x20[message...]','tsv','--version','JSON\x20columns\x20for\x20connector\x20(comma-separated)','--no-color','workspaces\x20[pattern]','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Resume\x20from\x20specific\x20task','--to\x20<timestamp>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','resume\x20<name-or-path>','47418RlisQE','use\x20<path>','Show\x20journey\x20statistics','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Show\x20only\x20master\x20table\x20validation','Editor\x20type','validate\x20[name]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--name\x20<new_name>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','setup','-o,\x20--output\x20<folder>','4000','Workflow\x20parameter\x20(repeatable)','Updated\x20schedule\x20option','Start\x20time\x20filter\x20(ISO\x208601\x20format)','473584qVPoXs','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Timezone\x20(e.g.,\x20America/Los_Angeles)','Resume\x20a\x20conversation\x20(shows\x20selector)','use\x20[project]','Delete\x20an\x20email\x20template','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Email\x20sender\x20ID\x20for\x20delivery','includes','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--delete','Workspace\x20name','run\x20[name]','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Resume\x20a\x20paused\x20campaign','--attributes\x20<json>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','list\x20[pattern]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','argument','Include\x20execution\x20statistics','Reason\x20for\x20killing\x20the\x20attempt','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','description','Add\x20attributes\x20as\x20JSON\x20string','--name\x20<new-name>','Workflow\x20session\x20management','Show\x20email\x20template\x20details','commands','Parent\x20segment\x20description','Show\x20stats\x20for\x20specific\x20stage','workflow','Show\x20timeline\x20for\x20specific\x20attempt','history\x20[chat-id]','view\x20<name-or-path>','3511233rAuycB','Workflow\x20attempt\x20management','isDirectory','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--format\x20<format>','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','-y,\x20--yes','padEnd','Data\x20connection\x20management\x20(for\x20activations/exports)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Maximum\x20tool\x20iterations\x20(default:\x204)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','sql\x20[name]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','format','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','flatMap','use\x20[resource]\x20[value]','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--starter-message\x20<text>','--limit\x20<n>','Show\x20workspace\x20details','Make\x20segment\x20invisible\x20(default:\x20visible)','--debug','alias','Attributes\x20as\x20JSON\x20string','Describe\x20table\x20schema','Create\x20a\x20new\x20campaign','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','set','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Campaign\x20name','Database\x20to\x20query\x20(default:\x20information_schema)','action','Behaviors\x20as\x20JSON\x20string','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','remove\x20<name>','claude-4.5-sonnet','Name\x20for\x20the\x20new\x20project\x20(required)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Show\x20the\x20most\x20recent\x20chat','outputHelp','Include\x20retried\x20attempts\x20(for\x20list)','addHelpText','0.7','Database\x20name\x20(default:\x20information_schema)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','sql\x20[segment_name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Usage:\x20','argv','pause\x20<name-or-id>','name','delete\x20<args...>','update\x20<segment_name>','--new','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','delete\x20<name>'];a2_0x33cf=function(){return _0x35ef25;};return a2_0x33cf();}program['name'](a2_0x4ac895(0x314))[a2_0x4ac895(0x217)](description),program['option'](a2_0x4ac895(0x161),a2_0x4ac895(0x267))[a2_0x4ac895(0x343)](a2_0x4ac895(0x178),a2_0x4ac895(0x160))[a2_0x4ac895(0x343)]('--site\x20<site>',a2_0x4ac895(0x28d),'us01')[a2_0x4ac895(0x343)](a2_0x4ac895(0x227),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x26d),a2_0x4ac895(0x1d6))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),a2_0x4ac895(0x212))['option'](a2_0x4ac895(0x347),a2_0x4ac895(0x14c))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1bd),a2_0x4ac895(0x226))[a2_0x4ac895(0x343)](a2_0x4ac895(0x184),a2_0x4ac895(0x13c))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1dd),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x331),a2_0x4ac895(0x2e3),![])[a2_0x4ac895(0x343)](a2_0x4ac895(0x1e4),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x4ac895(0x343)](a2_0x4ac895(0x16d),a2_0x4ac895(0x324),![])['option'](a2_0x4ac895(0x23b),a2_0x4ac895(0x348))[a2_0x4ac895(0x343)](a2_0x4ac895(0x32b),a2_0x4ac895(0x240))[a2_0x4ac895(0x343)]('--timeout\x20<seconds>',a2_0x4ac895(0x193),'30')[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c0),'Preview\x20operation\x20without\x20executing',![])[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x33a),![])[a2_0x4ac895(0x343)](a2_0x4ac895(0x153),a2_0x4ac895(0x167))[a2_0x4ac895(0x343)]('-d,\x20--database\x20<name>',a2_0x4ac895(0x148))[a2_0x4ac895(0x343)]('--in\x20<name>',a2_0x4ac895(0x1ca))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1a9),a2_0x4ac895(0x146))[a2_0x4ac895(0x343)](a2_0x4ac895(0x309),a2_0x4ac895(0x1c2)),program[a2_0x4ac895(0x29a)]({'formatHelp':(_0x17984f,_0x35d2b6)=>{const _0x50db7d=a2_0x4ac895,_0xa2eff0=_0x35d2b6['padWidth'](_0x17984f,_0x35d2b6),_0x4c931b=0x2,_0x41cc2d=0x2;function _0x317800(_0x13c7f1){const _0x25a2df=a2_0x781d,_0x3e70ff=_0x13c7f1;return!!(_0x3e70ff[_0x25a2df(0x261)]||_0x3e70ff[_0x25a2df(0x108)]);}function _0x45fab3(_0x50af49,_0x479df3){const _0x76220f=a2_0x781d;if(_0x479df3){const _0x4d8433=''+_0x50af49[_0x76220f(0x22a)](_0xa2eff0+_0x41cc2d)+_0x479df3;return _0x4d8433;}return _0x50af49;}function _0x34c847(_0x496229){const _0x39ea3a=a2_0x781d;return _0x496229[_0x39ea3a(0x299)]('\x0a')[_0x39ea3a(0x34c)](/^/gm,'\x20'[_0x39ea3a(0x2bf)](_0x4c931b));}const _0x549327=[];_0x549327[_0x50db7d(0x19e)](_0x50db7d(0x256)+_0x35d2b6['commandUsage'](_0x17984f));const _0x321cce=_0x35d2b6[_0x50db7d(0x1c5)](_0x17984f);_0x321cce&&(_0x549327['push'](''),_0x549327[_0x50db7d(0x19e)](_0x321cce));const _0x481563=_0x17984f[_0x50db7d(0x21c)][_0x50db7d(0x2b2)](_0x45d273=>!_0x317800(_0x45d273));if(_0x481563['length']>0x0){if(_0x17984f[_0x50db7d(0x259)]()==='tdx'){const _0x32aedd=_0x17984f[_0x50db7d(0x1c3)](),_0x53ed49=!_0x32aedd[_0x50db7d(0x1b7)]&&process['stdout']['isTTY'],_0x19b842=COMMAND_CATEGORIES,_0x4012c1=(_0x44ae94,_0x44d513)=>_0x53ed49?_0x44d513(_0x44ae94):_0x44ae94,_0x2688dd=new Map();_0x481563[_0x50db7d(0x151)](_0x8d3d42=>{const _0x851893=_0x50db7d;_0x2688dd[_0x851893(0x241)](_0x8d3d42[_0x851893(0x259)](),_0x8d3d42);}),_0x19b842[_0x50db7d(0x151)](_0x4734b8=>{const _0x11bd9d=_0x50db7d,_0x4db083=_0x4734b8[_0x11bd9d(0x21c)][_0x11bd9d(0x233)](_0x25b2e4=>_0x2688dd[_0x11bd9d(0x337)](_0x25b2e4)??[]);if(_0x4db083[_0x11bd9d(0x174)]>0x0){_0x549327[_0x11bd9d(0x19e)](''),_0x549327[_0x11bd9d(0x19e)](_0x4012c1(_0x4734b8[_0x11bd9d(0x259)]+':',_0x4734b8[_0x11bd9d(0x300)]));const _0x5583f7=_0x4db083[_0x11bd9d(0x293)](_0x3ce596=>{const _0x3e3376=_0x11bd9d,_0x58b649=_0x35d2b6[_0x3e3376(0x194)](_0x3ce596),_0x502fea=_0x35d2b6[_0x3e3376(0x1ac)](_0x3ce596);return _0x45fab3(_0x58b649,_0x502fea);});_0x549327['push'](_0x34c847(_0x5583f7));}}),_0x549327[_0x50db7d(0x19e)](''),_0x549327[_0x50db7d(0x19e)](_0x50db7d(0x2ba));}else{const _0x5bbaf2=_0x481563['map'](_0x10dd48=>{const _0x3f3038=_0x50db7d,_0x49e4f1=_0x35d2b6['subcommandTerm'](_0x10dd48),_0x34ada6=_0x35d2b6[_0x3f3038(0x1ac)](_0x10dd48);return _0x45fab3(_0x49e4f1,_0x34ada6);});_0x549327[_0x50db7d(0x19e)](''),_0x549327[_0x50db7d(0x19e)]('Commands:'),_0x549327['push'](_0x34c847(_0x5bbaf2));}}if(showBriefHelp&&_0x17984f[_0x50db7d(0x259)]()===_0x50db7d(0x314))_0x549327['push'](''),_0x549327['push']('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x2b1315=_0x17984f[_0x50db7d(0x31f)]['filter'](_0x4bd4b8=>!_0x317800(_0x4bd4b8));if(_0x2b1315[_0x50db7d(0x174)]>0x0){const _0x2d695d=_0x2b1315[_0x50db7d(0x293)](_0x3eb90a=>{const _0x353974=_0x50db7d,_0x32e6e7=_0x35d2b6[_0x353974(0x1bb)](_0x3eb90a),_0x12cdd0=_0x35d2b6[_0x353974(0x152)](_0x3eb90a);return _0x45fab3(_0x32e6e7,_0x12cdd0);});_0x549327['push'](''),_0x549327[_0x50db7d(0x19e)](_0x50db7d(0x2e8)),_0x549327[_0x50db7d(0x19e)](_0x34c847(_0x2d695d));}}const _0x57098a=(_0x17984f['registeredArguments']||[])[_0x50db7d(0x2b2)](_0x5db7b2=>!_0x317800(_0x5db7b2));if(_0x57098a[_0x50db7d(0x174)]>0x0){const _0xa00581=_0x57098a[_0x50db7d(0x293)](_0x4d2509=>{const _0x5b8e26=_0x50db7d,_0x5bfe28=_0x35d2b6[_0x5b8e26(0x271)](_0x4d2509),_0x4dc108=_0x35d2b6['argumentDescription'](_0x4d2509);return _0x45fab3(_0x5bfe28,_0x4dc108);});_0x549327[_0x50db7d(0x19e)](''),_0x549327['push'](_0x50db7d(0x26e)),_0x549327[_0x50db7d(0x19e)](_0x34c847(_0xa00581));}return _0x549327[_0x50db7d(0x299)]('\x0a')+'\x0a';},'subcommandTerm':_0x562b62=>{const _0x1cb41b=a2_0x4ac895,_0x2834c8=(_0x562b62[_0x1cb41b(0x1ba)]||[])['map'](_0x18cc12=>_0x18cc12[_0x1cb41b(0x132)]?'<'+_0x18cc12['name']()+'>':'['+_0x18cc12[_0x1cb41b(0x259)]()+']')[_0x1cb41b(0x299)]('\x20'),_0x1ce9d6=_0x562b62[_0x1cb41b(0x131)](),_0x532dcd=_0x1ce9d6[_0x1cb41b(0x174)]>0x0?_0x562b62['name']()+',\x20'+_0x1ce9d6[_0x1cb41b(0x299)](',\x20'):_0x562b62[_0x1cb41b(0x259)]();return _0x2834c8?_0x532dcd+'\x20'+_0x2834c8:_0x532dcd;}}),program['hook'](a2_0x4ac895(0x142),_0xa092ed=>{const _0x59e337=a2_0x4ac895,_0x47a008=_0xa092ed['opts']();if(_0x47a008[_0x59e337(0x145)]){const _0x2fd0d2=resolve(_0x47a008['directory']),_0x3125d8=_0x2fd0d2!==_0x47a008[_0x59e337(0x145)]?'\x20(resolved\x20to\x20'+_0x2fd0d2+')':'';if(!existsSync(_0x2fd0d2))throw new SDKError(ErrorCode[_0x59e337(0x2ac)],'Directory\x20does\x20not\x20exist:\x20'+_0x47a008[_0x59e337(0x145)]+_0x3125d8,undefined,{'helpText':_0x59e337(0x18d)});const _0x1ffd6d=statSync(_0x2fd0d2);if(!_0x1ffd6d[_0x59e337(0x225)]())throw new SDKError(ErrorCode[_0x59e337(0x2ac)],_0x59e337(0x2cb)+_0x47a008[_0x59e337(0x145)]+_0x3125d8,undefined,{'helpText':_0x59e337(0x341)});process['chdir'](_0x2fd0d2);}if(!_0x47a008[_0x59e337(0x231)]){if(_0x47a008[_0x59e337(0x12b)])_0x47a008['format']=_0x59e337(0x12b);else{if(_0x47a008['json'])_0x47a008[_0x59e337(0x231)]=_0x59e337(0x156);else{if(_0x47a008[_0x59e337(0x155)])_0x47a008[_0x59e337(0x231)]=_0x59e337(0x155);else _0x47a008['tsv']&&(_0x47a008[_0x59e337(0x231)]=_0x59e337(0x1e1));}}}_0x47a008['in']&&!_0x47a008['database']&&(_0x47a008[_0x59e337(0x2c7)]=_0x47a008['in']);if(_0x47a008[_0x59e337(0x2ed)])_0x47a008[_0x59e337(0x2ca)]=LogLevel[_0x59e337(0x122)];else{if(_0x47a008['debug'])_0x47a008[_0x59e337(0x2ca)]=LogLevel[_0x59e337(0x2b8)];else _0x47a008['logLevel']===undefined&&(_0x47a008[_0x59e337(0x2ca)]=LogLevel[_0x59e337(0x329)]);}});async function createTDXInstance(_0x4c389b){const _0x58b8a5=a2_0x4ac895,_0x46755f=await GlobalContext[_0x58b8a5(0x272)](_0x4c389b);return _0x46755f['injectIntoOptions'](_0x4c389b),TDX[_0x58b8a5(0x349)]({'site':_0x46755f['site'],'apiKey':_0x46755f[_0x58b8a5(0x1aa)],'logLevel':_0x46755f[_0x58b8a5(0x2ca)],'profile':_0x46755f[_0x58b8a5(0x2a2)]});}const databaseCmd=program['command'](a2_0x4ac895(0x2c7))[a2_0x4ac895(0x23c)]('db')['description'](a2_0x4ac895(0x15e)),databaseListAction=async(_0x108057,_0xc62334)=>{const _0x20ae7f=a2_0x4ac895,_0x5e1b0d=new DatabasesCommand(),_0x5bb32c=program[_0x20ae7f(0x1c3)](),_0xf9d0c7=await createTDXInstance(_0x5bb32c),_0x34b003=await _0x5e1b0d[_0x20ae7f(0x339)]({'options':{..._0x5bb32c,..._0xc62334},'args':_0x108057?[_0x108057]:[],'tdx':_0xf9d0c7});process[_0x20ae7f(0x2d1)](_0x34b003);};databaseCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x25d))['action'](databaseListAction),program['command'](a2_0x4ac895(0x2aa),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x2e5))['action'](databaseListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1e0))[a2_0x4ac895(0x217)](a2_0x4ac895(0x205))['option']('--agent\x20<ref>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x25c),'Start\x20a\x20new\x20chat\x20session')['action'](async(_0x4eba09,_0x48b3d3)=>{const _0x30d56a=a2_0x4ac895,_0x5e0fad=new ChatCommand(),_0x22a6da=program[_0x30d56a(0x1c3)](),_0x1b5fdb=await createTDXInstance(_0x22a6da),_0x5815eb=await _0x5e0fad[_0x30d56a(0x339)]({'options':{..._0x22a6da,..._0x48b3d3},'args':_0x4eba09,'tdx':_0x1b5fdb});process[_0x30d56a(0x2d1)](_0x5815eb);});const apiCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x284))[a2_0x4ac895(0x114)](a2_0x4ac895(0x2ff))[a2_0x4ac895(0x250)]('after',a2_0x4ac895(0x2b1))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b2),a2_0x4ac895(0x107),'GET')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2bc),'Request\x20body\x20as\x20JSON\x20string')[a2_0x4ac895(0x343)](a2_0x4ac895(0x325),a2_0x4ac895(0x15f))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2ee),a2_0x4ac895(0x1e6),(_0x49a07c,_0x35e5ea)=>{return _0x35e5ea?[..._0x35e5ea,_0x49a07c]:[_0x49a07c];})['option']('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x4ac895(0x245)](async(_0x4ec921,_0x281168)=>{const _0x530365=a2_0x4ac895;if(!_0x4ec921){apiCmd['help']();return;}const _0x58d3a4=new ApiCommand(),_0x46be3b=program[_0x530365(0x1c3)](),_0x4b3f6c=await createTDXInstance(_0x46be3b),_0x4bf6e=await _0x58d3a4[_0x530365(0x339)]({'options':{..._0x46be3b,..._0x281168},'args':[_0x4ec921],'tdx':_0x4b3f6c});process['exit'](_0x4bf6e);}),tableCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x12b))['description'](a2_0x4ac895(0x1a3)),tableListAction=async(_0x2d79ee,_0x28cf97)=>{const _0x292363=a2_0x4ac895,_0x227257=new TablesCommand(),_0x38c1bd=program[_0x292363(0x1c3)](),_0x3bd45d=await createTDXInstance(_0x38c1bd);_0x28cf97['in']&&(_0x28cf97[_0x292363(0x2c7)]=_0x28cf97['in']);const _0xd51307=await _0x227257['run']({'options':{..._0x38c1bd,..._0x28cf97},'args':_0x2d79ee?[_0x2d79ee]:[],'tdx':_0x3bd45d});process['exit'](_0xd51307);};tableCmd[a2_0x4ac895(0x1c4)]('list\x20[pattern]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x321))[a2_0x4ac895(0x343)]('-d,\x20--database\x20<database>',a2_0x4ac895(0x323))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1d3),a2_0x4ac895(0x1ca))[a2_0x4ac895(0x245)](tableListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x19a),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x2f9))['option']('-d,\x20--database\x20<database>',a2_0x4ac895(0x323))[a2_0x4ac895(0x343)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4ac895(0x245)](tableListAction),program[a2_0x4ac895(0x1c4)]('show\x20[table]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x11d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x190),a2_0x4ac895(0x286))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1d3),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4ac895(0x245)](async(_0x27dd8b,_0x1bda46)=>{const _0x1f59c1=a2_0x4ac895,_0xb0674c=new ShowCommand(),_0x99b49a=program[_0x1f59c1(0x1c3)](),_0x18ba8c=await createTDXInstance(_0x99b49a);_0x1bda46['in']&&(_0x1bda46['database']=_0x1bda46['in']);const _0x3f6499=await _0xb0674c[_0x1f59c1(0x339)]({'options':{..._0x99b49a,..._0x1bda46},'args':_0x27dd8b?[_0x27dd8b]:[],'tdx':_0x18ba8c});process[_0x1f59c1(0x2d1)](_0x3f6499);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x143))['alias'](a2_0x4ac895(0x310))[a2_0x4ac895(0x217)](a2_0x4ac895(0x23e))[a2_0x4ac895(0x343)](a2_0x4ac895(0x190),a2_0x4ac895(0x286))['option']('--in\x20<database>',a2_0x4ac895(0x1ca))['action'](async(_0x1c2116,_0x3e216d)=>{const _0x15027e=a2_0x4ac895,_0x1b4f57=new DescribeCommand(),_0x8b75a0=program[_0x15027e(0x1c3)](),_0x205ade=await createTDXInstance(_0x8b75a0);_0x3e216d['in']&&(_0x3e216d[_0x15027e(0x2c7)]=_0x3e216d['in']);const _0x121894=await _0x1b4f57['run']({'options':{..._0x8b75a0,..._0x3e216d},'args':_0x1c2116?[_0x1c2116]:[],'tdx':_0x205ade});process[_0x15027e(0x2d1)](_0x121894);}),program['command'](a2_0x4ac895(0x351))['description'](a2_0x4ac895(0x125))['option'](a2_0x4ac895(0x190),a2_0x4ac895(0x244))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1d3),a2_0x4ac895(0x1ca))[a2_0x4ac895(0x343)]('--catalog\x20<catalog>','Trino\x20catalog\x20(default:\x20td)')['option'](a2_0x4ac895(0x325),'Read\x20SQL\x20query\x20from\x20file')[a2_0x4ac895(0x343)](a2_0x4ac895(0x29f),a2_0x4ac895(0x2dc),'40')[a2_0x4ac895(0x245)](async(_0x59af05,_0x1b6cc6)=>{const _0x5d1364=a2_0x4ac895,_0x582b75=new QueryCommand(),_0x574097=program[_0x5d1364(0x1c3)](),_0x18065f=await createTDXInstance(_0x574097);_0x1b6cc6['in']&&(_0x1b6cc6['database']=_0x1b6cc6['in']);const _0x3c79b1=await _0x582b75[_0x5d1364(0x339)]({'options':{..._0x574097,..._0x1b6cc6},'args':_0x59af05?[_0x59af05]:[],'tdx':_0x18065f});process[_0x5d1364(0x2d1)](_0x3c79b1);});const segmentCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x158))['alias']('sg')[a2_0x4ac895(0x217)](a2_0x4ac895(0x304)),segmentListAction=async(_0x5b432a,_0xe7970e)=>{const _0x71c7be=a2_0x4ac895,_0x274615=new SegmentsCommand(),_0x1a9455=program[_0x71c7be(0x1c3)](),_0x283b58=await createTDXInstance(_0x1a9455),_0xaaaf26=await _0x274615['run']({'options':{..._0x1a9455,..._0xe7970e},'args':_0x5b432a?[_0x5b432a]:[],'tdx':_0x283b58});process['exit'](_0xaaaf26);};function a2_0x781d(_0x296c6e,_0xa95e89){_0x296c6e=_0x296c6e-0x104;const _0x33cf2c=a2_0x33cf();let _0x781d2=_0x33cf2c[_0x296c6e];return _0x781d2;}segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1b0))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2b7))[a2_0x4ac895(0x343)](a2_0x4ac895(0x30a),a2_0x4ac895(0x263))['option'](a2_0x4ac895(0x30b),a2_0x4ac895(0x328),'10')[a2_0x4ac895(0x245)](segmentListAction),program['command'](a2_0x4ac895(0x31a),{'hidden':!![]})[a2_0x4ac895(0x217)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x30a),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x30b),a2_0x4ac895(0x328),'10')[a2_0x4ac895(0x245)](segmentListAction),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1ed),{'hidden':!![]})['description'](a2_0x4ac895(0x210))[a2_0x4ac895(0x245)](async(_0x2bd0aa,_0x133024)=>{const _0x4d768d=a2_0x4ac895,_0x163743=new SegmentUseCommand(),_0x43afe3=program['opts'](),_0x2016f4=await createTDXInstance(_0x43afe3),_0x3d01c8=await _0x163743[_0x4d768d(0x339)]({'options':{..._0x43afe3,..._0x133024},'args':[_0x2bd0aa],'tdx':_0x2016f4});process[_0x4d768d(0x2d1)](_0x3d01c8);});const segmentViewAction=async(_0x55c2fe,_0xea7c7d)=>{const _0x308d5d=a2_0x4ac895,_0x373abc=new SegmentViewCommand(),_0x4f756c=program[_0x308d5d(0x1c3)](),_0x17cb3c=await createTDXInstance(_0x4f756c),_0x25b09e=await _0x373abc['run']({'options':{..._0x4f756c,..._0xea7c7d},'args':_0x55c2fe?[_0x55c2fe]:[],'tdx':_0x17cb3c});process[_0x308d5d(0x2d1)](_0x25b09e);};segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x123))[a2_0x4ac895(0x217)](a2_0x4ac895(0x29d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a1),a2_0x4ac895(0x1d9))[a2_0x4ac895(0x245)](segmentViewAction),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x317),{'hidden':!![]})['alias'](a2_0x4ac895(0x13b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a1),a2_0x4ac895(0x1d9))['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')['action'](segmentViewAction),segmentCmd[a2_0x4ac895(0x1c4)]('desc\x20[segment_name]')['description']('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x4ac895(0x245)](async(_0x50c51a,_0x8bffa1)=>{const _0x323d2f=a2_0x4ac895,_0x1f13f1=new SegmentDescCommand(),_0xa7951c=program[_0x323d2f(0x1c3)](),_0x363a22=await createTDXInstance(_0xa7951c),_0x56fa1a=await _0x1f13f1[_0x323d2f(0x339)]({'options':{..._0xa7951c,..._0x8bffa1},'args':_0x50c51a?[_0x50c51a]:[],'tdx':_0x363a22});process[_0x323d2f(0x2d1)](_0x56fa1a);}),segmentCmd['command'](a2_0x4ac895(0x2a0))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2db))[a2_0x4ac895(0x245)](async(_0x181ca,_0x337120)=>{const _0x59cdeb=a2_0x4ac895,_0x3ae4e3=new SegmentShowCommand(),_0xb739c0=program[_0x59cdeb(0x1c3)](),_0x54b7cd=await createTDXInstance(_0xb739c0),_0x539cc9=await _0x3ae4e3[_0x59cdeb(0x339)]({'options':{..._0xb739c0,..._0x337120},'args':_0x181ca?[_0x181ca]:[],'tdx':_0x54b7cd});process[_0x59cdeb(0x2d1)](_0x539cc9);}),segmentCmd['command'](a2_0x4ac895(0x26a),{'hidden':!![]})['description'](a2_0x4ac895(0x144))['action'](async(_0x27fa0a,_0x1f0e2f)=>{const _0x3588f8=a2_0x4ac895,_0x36c624=new SegmentFolderListCommand(),_0x1f58d1=program[_0x3588f8(0x1c3)](),_0x31a89b=await createTDXInstance(_0x1f58d1),_0x130572=await _0x36c624[_0x3588f8(0x339)]({'options':{..._0x1f58d1,..._0x1f0e2f},'args':[_0x27fa0a],'tdx':_0x31a89b});process[_0x3588f8(0x2d1)](_0x130572);});const folderCmd=segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x109),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x308));folderCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x330))['description']('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x4ac895(0x245)](async(_0x26c2d3,_0x5de8b1)=>{const _0xc75069=a2_0x4ac895,_0x2d4e53=new SegmentFolderShowCommand(),_0x3c3e4=program[_0xc75069(0x1c3)](),_0x34a2e0=await createTDXInstance(_0x3c3e4),_0x29091f=await _0x2d4e53['run']({'options':{..._0x3c3e4,..._0x5de8b1},'args':[_0x26c2d3],'tdx':_0x34a2e0});process[_0xc75069(0x2d1)](_0x29091f);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x254))[a2_0x4ac895(0x217)](a2_0x4ac895(0x192))[a2_0x4ac895(0x245)](async(_0x2f79d5,_0x4a7775)=>{const _0x55d43c=a2_0x4ac895,_0x183027=new SegmentSQLCommand(),_0x1d47d9=program['opts'](),_0x164c2d=await createTDXInstance(_0x1d47d9),_0x12aec4=await _0x183027['run']({'options':{..._0x1d47d9,..._0x4a7775},'args':_0x2f79d5?[_0x2f79d5]:[],'tdx':_0x164c2d});process[_0x55d43c(0x2d1)](_0x12aec4);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2a9))['description'](a2_0x4ac895(0x22e))[a2_0x4ac895(0x245)](async(_0xb39fdf,_0x3cdb46)=>{const _0x360301=a2_0x4ac895,_0x9ed363=new SegmentFieldsCommand(),_0x2210e0=program[_0x360301(0x1c3)](),_0x1f5543=await createTDXInstance(_0x2210e0),_0x5c6623=await _0x9ed363[_0x360301(0x339)]({'options':{..._0x2210e0,..._0x3cdb46},'args':_0xb39fdf?[_0xb39fdf]:[],'tdx':_0x1f5543});process[_0x360301(0x2d1)](_0x5c6623);}),segmentCmd['command'](a2_0x4ac895(0x2a7))[a2_0x4ac895(0x217)](a2_0x4ac895(0x33b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x33a))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c0),a2_0x4ac895(0x1e9))[a2_0x4ac895(0x245)](async(_0x140be1,_0x5bf229)=>{const _0xe96f64=a2_0x4ac895,_0x23699a=new SegmentPullCommand(),_0x3e1244=program[_0xe96f64(0x1c3)](),_0x101a1b=await createTDXInstance(_0x3e1244),_0x17b2a5=await _0x23699a['run']({'options':{..._0x3e1244,..._0x5bf229},'args':_0x140be1?[_0x140be1]:[],'tdx':_0x101a1b});process[_0xe96f64(0x2d1)](_0x17b2a5);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2c9))[a2_0x4ac895(0x217)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x4ac895(0x343)]('-y,\x20--yes',a2_0x4ac895(0x33a))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c0),a2_0x4ac895(0x1e9))[a2_0x4ac895(0x343)](a2_0x4ac895(0x209),a2_0x4ac895(0x115))[a2_0x4ac895(0x245)](async(_0x1d96da,_0x127d68)=>{const _0x215076=a2_0x4ac895,_0x21008b=new SegmentPushCommand(),_0x279c1e=program[_0x215076(0x1c3)](),_0xaeb4ab=await createTDXInstance(_0x279c1e),_0x3baffc=await _0x21008b[_0x215076(0x339)]({'options':{..._0x279c1e,..._0x127d68},'args':_0x1d96da?[_0x1d96da]:[],'tdx':_0xaeb4ab});process[_0x215076(0x2d1)](_0x3baffc);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1a5))[a2_0x4ac895(0x217)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x29b6a6,_0x2f762f)=>{const _0x5381cf=a2_0x4ac895,_0x444b4b=new SegmentValidateCommand(),_0x4f75d2=program[_0x5381cf(0x1c3)](),_0x592a3b=await createTDXInstance(_0x4f75d2),_0x5e4c9c=await _0x444b4b['run']({'options':{..._0x4f75d2,..._0x2f762f},'args':_0x29b6a6?[_0x29b6a6]:[],'tdx':_0x592a3b});process[_0x5381cf(0x2d1)](_0x5e4c9c);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1ab),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x149))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b9),'Segment\x20description')['option'](a2_0x4ac895(0x2f0),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x4ac895(0x343)](a2_0x4ac895(0x135),a2_0x4ac895(0x290))[a2_0x4ac895(0x343)](a2_0x4ac895(0x34d),a2_0x4ac895(0x16a))[a2_0x4ac895(0x343)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')['option'](a2_0x4ac895(0x17d),a2_0x4ac895(0x23a))[a2_0x4ac895(0x343)]('--no-count-population','Skip\x20population\x20counting')[a2_0x4ac895(0x245)](async(_0x5ea2d9,_0x5b221f)=>{const _0x21efdd=a2_0x4ac895,_0xef9aa2=new SegmentCreateCommand(),_0x4b27f2=program[_0x21efdd(0x1c3)](),_0x35b728=await createTDXInstance(_0x4b27f2),_0x18df36=await _0xef9aa2[_0x21efdd(0x339)]({'options':{..._0x4b27f2,..._0x5b221f},'args':[_0x5ea2d9],'tdx':_0x35b728});process['exit'](_0x18df36);}),segmentCmd['command'](a2_0x4ac895(0x25b),{'hidden':!![]})[a2_0x4ac895(0x217)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option'](a2_0x4ac895(0x1f5),a2_0x4ac895(0x106))['option'](a2_0x4ac895(0x1b9),'Updated\x20description')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f0),a2_0x4ac895(0x253))['option'](a2_0x4ac895(0x135),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x4ac895(0x343)](a2_0x4ac895(0x34d),a2_0x4ac895(0x18a))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c9),a2_0x4ac895(0x12e))[a2_0x4ac895(0x245)](async(_0x4a4336,_0xbad7ae)=>{const _0x17bc34=a2_0x4ac895,_0x3234f0=new SegmentUpdateCommand(),_0x38f01a=program['opts'](),_0x28b6a0=await createTDXInstance(_0x38f01a),_0x488b93=await _0x3234f0['run']({'options':{..._0x38f01a,..._0xbad7ae},'args':[_0x4a4336],'tdx':_0x28b6a0});process[_0x17bc34(0x2d1)](_0x488b93);});const parentCmd=segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x33d),{'hidden':!![]})[a2_0x4ac895(0x217)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x5467f8,_0x43158f)=>{const _0x13aa11=a2_0x4ac895,_0x508512=new ParentSegmentListCommand(),_0x2e488d=program[_0x13aa11(0x1c3)](),_0x1d76ef=await createTDXInstance(_0x2e488d),_0xe89db8=await _0x508512[_0x13aa11(0x339)]({'options':{..._0x2e488d,..._0x43158f},'args':_0x5467f8?[_0x5467f8]:[],'tdx':_0x1d76ef});process[_0x13aa11(0x2d1)](_0xe89db8);};parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2cd))['action'](parentListAction),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1a2),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x24c))[a2_0x4ac895(0x245)](parentListAction),parentCmd['command']('pull\x20[name]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x105))[a2_0x4ac895(0x343)]('-o,\x20--output\x20<file>','Output\x20file\x20path\x20(default:\x20<name>.yml)')['option'](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x295b9f,_0x292b40)=>{const _0x1bc7ab=a2_0x4ac895,_0x4ebecc=new ParentSegmentPullCommand(),_0x5560d1=program[_0x1bc7ab(0x1c3)](),_0x5a0325=await createTDXInstance(_0x5560d1),_0x14d31a=await _0x4ebecc[_0x1bc7ab(0x339)]({'options':{..._0x5560d1,..._0x292b40},'args':_0x295b9f?[_0x295b9f]:[],'tdx':_0x5a0325});process[_0x1bc7ab(0x2d1)](_0x14d31a);}),parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1c6))[a2_0x4ac895(0x217)](a2_0x4ac895(0x278))[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x243aea,_0x14f303)=>{const _0x31057d=a2_0x4ac895,_0x4d834d=new ParentSegmentPushCommand(),_0x2447f3=program[_0x31057d(0x1c3)](),_0x846a62=await createTDXInstance(_0x2447f3),_0x8ea864=await _0x4d834d[_0x31057d(0x339)]({'options':{..._0x2447f3,..._0x14f303},'args':_0x243aea?[_0x243aea]:[],'tdx':_0x846a62});process['exit'](_0x8ea864);}),parentCmd[a2_0x4ac895(0x1c4)]('validate\x20[file]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x1f7))[a2_0x4ac895(0x343)](a2_0x4ac895(0x34a),a2_0x4ac895(0x1f0))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1db),a2_0x4ac895(0x276))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2c4),a2_0x4ac895(0x255))[a2_0x4ac895(0x343)](a2_0x4ac895(0x17e),a2_0x4ac895(0x1dc))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2d8),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x4ac895(0x345))[a2_0x4ac895(0x245)](async(_0x5e49a5,_0x19f26a)=>{const _0x2c7f07=a2_0x4ac895,_0x4c363c=new ParentSegmentValidateCommand(),_0x33649c=program[_0x2c7f07(0x1c3)](),_0x4c9845=await createTDXInstance(_0x33649c),_0x3401a9=await _0x4c363c['run']({'options':{..._0x33649c,..._0x19f26a},'args':_0x5e49a5?[_0x5e49a5]:[],'tdx':_0x4c9845});process[_0x2c7f07(0x2d1)](_0x3401a9);}),parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x29e))['description'](a2_0x4ac895(0x295))[a2_0x4ac895(0x343)](a2_0x4ac895(0x34a),a2_0x4ac895(0x29c))[a2_0x4ac895(0x343)]('--attribute\x20[name]',a2_0x4ac895(0x186))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2c4),a2_0x4ac895(0x198))[a2_0x4ac895(0x343)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2d8),a2_0x4ac895(0x1d8),a2_0x4ac895(0x345))['action'](async(_0x5061f5,_0x522859)=>{const _0x27a563=new ParentSegmentPreviewCommand(),_0xbb8fba=program['opts'](),_0x491657=await createTDXInstance(_0xbb8fba),_0xd3da29=await _0x27a563['run']({'options':{..._0xbb8fba,..._0x522859},'args':_0x5061f5?[_0x5061f5]:[],'tdx':_0x491657});process['exit'](_0xd3da29);}),parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x20b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x14e))[a2_0x4ac895(0x343)]('-y,\x20--yes',a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x2d152c,_0x58274a)=>{const _0x5802dd=a2_0x4ac895,_0x2d28d9=new ParentSegmentRunCommand(),_0x2dd6dd=program['opts'](),_0x217554=await createTDXInstance(_0x2dd6dd),_0x369164=await _0x2d28d9[_0x5802dd(0x339)]({'options':{..._0x2dd6dd,..._0x58274a},'args':_0x2d152c?[_0x2d152c]:[],'tdx':_0x217554});process['exit'](_0x369164);});const parentSegmentCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1b6))['alias']('ps')[a2_0x4ac895(0x217)](a2_0x4ac895(0x15b));parentSegmentCmd[a2_0x4ac895(0x1c4)]('list\x20[pattern]')['description']('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1df))[a2_0x4ac895(0x217)](a2_0x4ac895(0x32f))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f1),'Output\x20file\x20path')['option'](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x343)]('-u,\x20--use',a2_0x4ac895(0x22c))['action'](async(_0x19ca4b,_0x1c9db7)=>{const _0x110936=a2_0x4ac895,_0x3beff1=new ParentSegmentPullCommand(),_0x1c1497=program[_0x110936(0x1c3)](),_0x3aa710=await createTDXInstance(_0x1c1497),_0x449bab=await _0x3beff1[_0x110936(0x339)]({'options':{..._0x1c1497,..._0x1c9db7},'args':_0x19ca4b?[_0x19ca4b]:[],'tdx':_0x3aa710});process[_0x110936(0x2d1)](_0x449bab);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x30f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2ef))['option'](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x1f8bfe,_0x1627fa)=>{const _0x455bb2=a2_0x4ac895,_0x2476ea=new ParentSegmentPushCommand(),_0x29c43c=program[_0x455bb2(0x1c3)](),_0x2a2056=await createTDXInstance(_0x29c43c),_0x187014=await _0x2476ea[_0x455bb2(0x339)]({'options':{..._0x29c43c,..._0x1627fa},'args':_0x1f8bfe?[_0x1f8bfe]:[],'tdx':_0x2a2056});process[_0x455bb2(0x2d1)](_0x187014);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1f2))[a2_0x4ac895(0x217)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x4ac895(0x343)](a2_0x4ac895(0x34a),a2_0x4ac895(0x1f0))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1db),a2_0x4ac895(0x276))[a2_0x4ac895(0x343)]('--behavior\x20[name]',a2_0x4ac895(0x255))[a2_0x4ac895(0x343)](a2_0x4ac895(0x17e),a2_0x4ac895(0x1dc))['option']('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x4ac895(0x245)](async(_0xa3b127,_0x38e9f1)=>{const _0x35c24f=a2_0x4ac895,_0x4896d7=new ParentSegmentValidateCommand(),_0x2f3699=program[_0x35c24f(0x1c3)](),_0x16a3bf=await createTDXInstance(_0x2f3699),_0x4803ae=await _0x4896d7[_0x35c24f(0x339)]({'options':{..._0x2f3699,..._0x38e9f1},'args':_0xa3b127?[_0xa3b127]:[],'tdx':_0x16a3bf});process['exit'](_0x4803ae);}),parentSegmentCmd[a2_0x4ac895(0x1c4)]('preview\x20[name]')['description'](a2_0x4ac895(0x295))[a2_0x4ac895(0x343)]('--master',a2_0x4ac895(0x29c))['option'](a2_0x4ac895(0x1db),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x4ac895(0x343)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x4ac895(0x343)](a2_0x4ac895(0x17e),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x4ac895(0x343)]('--interval\x20<range>',a2_0x4ac895(0x1d8),a2_0x4ac895(0x345))[a2_0x4ac895(0x245)](async(_0x28fb2a,_0x42a0d3)=>{const _0xd048f5=a2_0x4ac895,_0xc4a35c=new ParentSegmentPreviewCommand(),_0x2bd81b=program['opts'](),_0x3bf2ab=await createTDXInstance(_0x2bd81b),_0x48347b=await _0xc4a35c[_0xd048f5(0x339)]({'options':{..._0x2bd81b,..._0x42a0d3},'args':_0x28fb2a?[_0x28fb2a]:[],'tdx':_0x3bf2ab});process['exit'](_0x48347b);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x20b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x14e))[a2_0x4ac895(0x343)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')['action'](async(_0x4e4203,_0x41d6ce)=>{const _0x48ff17=a2_0x4ac895,_0x4ba43b=new ParentSegmentRunCommand(),_0x233ce2=program[_0x48ff17(0x1c3)](),_0x407c26=await createTDXInstance(_0x233ce2),_0x3a8b53=await _0x4ba43b['run']({'options':{..._0x233ce2,..._0x41d6ce},'args':_0x4e4203?[_0x4e4203]:[],'tdx':_0x407c26});process[_0x48ff17(0x2d1)](_0x3a8b53);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x28b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x230))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),a2_0x4ac895(0x138))['option']('--jsonl',a2_0x4ac895(0x16e))[a2_0x4ac895(0x245)](async(_0x3449e8,_0x40d8ca)=>{const _0x281621=a2_0x4ac895,_0x588677=new ParentSegmentFieldsCommand(),_0x2492c1=program[_0x281621(0x1c3)](),_0x5d005d=await createTDXInstance(_0x2492c1),_0x3b0a14=await _0x588677[_0x281621(0x339)]({'options':{..._0x2492c1,..._0x40d8ca},'args':_0x3449e8?[_0x3449e8]:[],'tdx':_0x5d005d});process['exit'](_0x3b0a14);}),parentSegmentCmd['command']('view\x20[name]')[a2_0x4ac895(0x217)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a1),a2_0x4ac895(0x2c2))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),'Output\x20as\x20JSON')['option'](a2_0x4ac895(0x347),a2_0x4ac895(0x16e))['action'](async(_0x29185f,_0x4bc21a)=>{const _0x57fe64=a2_0x4ac895,_0x2588fc=new ParentSegmentViewCommand(),_0x377e6d=program['opts'](),_0x4ef1b7=await createTDXInstance(_0x377e6d),_0x242b27=await _0x2588fc[_0x57fe64(0x339)]({'options':{..._0x377e6d,..._0x4bc21a},'args':_0x29185f?[_0x29185f]:[],'tdx':_0x4ef1b7});process[_0x57fe64(0x2d1)](_0x242b27);}),parentSegmentCmd[a2_0x4ac895(0x1c4)]('desc\x20[name]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x232))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),'Output\x20as\x20JSON')[a2_0x4ac895(0x343)](a2_0x4ac895(0x347),a2_0x4ac895(0x16e))[a2_0x4ac895(0x245)](async(_0x4fbc94,_0x13f424)=>{const _0x17fc11=a2_0x4ac895,_0x1115cf=new ParentSegmentDescCommand(),_0x2fe539=program[_0x17fc11(0x1c3)](),_0x30b493=await createTDXInstance(_0x2fe539),_0x3256e0=await _0x1115cf['run']({'options':{..._0x2fe539,..._0x13f424},'args':_0x4fbc94?[_0x4fbc94]:[],'tdx':_0x30b493});process[_0x17fc11(0x2d1)](_0x3256e0);}),parentSegmentCmd['command'](a2_0x4ac895(0x22f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x228))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),a2_0x4ac895(0x138))[a2_0x4ac895(0x343)](a2_0x4ac895(0x347),'Output\x20as\x20JSON\x20Lines')[a2_0x4ac895(0x245)](async(_0x5cb045,_0x465fe2)=>{const _0x50265e=a2_0x4ac895,_0x111844=new ParentSegmentSQLCommand(),_0x217b03=program[_0x50265e(0x1c3)](),_0x1c6902=await createTDXInstance(_0x217b03),_0x18ceba=await _0x111844[_0x50265e(0x339)]({'options':{..._0x217b03,..._0x465fe2},'args':_0x5cb045?[_0x5cb045]:[],'tdx':_0x1c6902});process['exit'](_0x18ceba);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x147))['description'](a2_0x4ac895(0x2df))['option'](a2_0x4ac895(0x238),a2_0x4ac895(0x11b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),a2_0x4ac895(0x138))[a2_0x4ac895(0x343)](a2_0x4ac895(0x347),a2_0x4ac895(0x16e))[a2_0x4ac895(0x245)](async(_0x4c0024,_0x2f6be0)=>{const _0x1d9d76=a2_0x4ac895,_0x5a9455=new ParentSegmentShowCommand(),_0x5cfce9=program['opts'](),_0x4382d0=await createTDXInstance(_0x5cfce9),_0x10c290=await _0x5a9455[_0x1d9d76(0x339)]({'options':{..._0x5cfce9,..._0x2f6be0},'args':_0x4c0024?[_0x4c0024]:[],'tdx':_0x4382d0});process[_0x1d9d76(0x2d1)](_0x10c290);}),parentSegmentCmd[a2_0x4ac895(0x1c4)]('use\x20[name]')['description'](a2_0x4ac895(0x16c))[a2_0x4ac895(0x245)](async(_0x394f72,_0x14f9d0)=>{const _0x2949a3=a2_0x4ac895,_0x20e802=new UseCommand(),_0x3672a9=program['opts'](),_0x261a12=_0x394f72?[_0x2949a3(0x32c),_0x394f72]:[],_0x121712=await _0x20e802[_0x2949a3(0x339)]({'options':{..._0x3672a9,..._0x14f9d0},'args':_0x261a12,'tdx':null});process[_0x2949a3(0x2d1)](_0x121712);}),parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x31d))['description'](a2_0x4ac895(0x216))['requiredOption']('--database\x20<db>',a2_0x4ac895(0x177))[a2_0x4ac895(0x1d7)]('--table\x20<table>','Master\x20table\x20name')['option'](a2_0x4ac895(0x1b9),a2_0x4ac895(0x21d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x336),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x4ac895(0x269),a2_0x4ac895(0x1f4))[a2_0x4ac895(0x343)](a2_0x4ac895(0x305),a2_0x4ac895(0x201))['option'](a2_0x4ac895(0x20f),a2_0x4ac895(0x23d))['option'](a2_0x4ac895(0x2ce),a2_0x4ac895(0x18b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x318),a2_0x4ac895(0x246))['option'](a2_0x4ac895(0x1b5),a2_0x4ac895(0x18f))[a2_0x4ac895(0x343)](a2_0x4ac895(0x154),'Customer\x20group\x20as\x20JSON\x20string')['option'](a2_0x4ac895(0x10c),a2_0x4ac895(0x159))[a2_0x4ac895(0x245)](async(_0x348be7,_0x29f9b9)=>{const _0xde4494=a2_0x4ac895,_0x21e8d2=new ParentSegmentCreateCommand(),_0xcecee7=program[_0xde4494(0x1c3)](),_0xb17e6f=await createTDXInstance(_0xcecee7),_0x5a5ae4=await _0x21e8d2[_0xde4494(0x339)]({'options':{..._0xcecee7,..._0x29f9b9},'args':[_0x348be7],'tdx':_0xb17e6f});process[_0xde4494(0x2d1)](_0x5a5ae4);}),parentCmd[a2_0x4ac895(0x1c4)]('update\x20<name>')['description']('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x4ac895(0x343)]('--description\x20<text>',a2_0x4ac895(0x302))[a2_0x4ac895(0x343)](a2_0x4ac895(0x336),a2_0x4ac895(0x200))['option'](a2_0x4ac895(0x269),a2_0x4ac895(0x1fc))[a2_0x4ac895(0x343)](a2_0x4ac895(0x305),a2_0x4ac895(0x10d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2e0),a2_0x4ac895(0x218))[a2_0x4ac895(0x343)](a2_0x4ac895(0x10a),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x4ac895(0x343)](a2_0x4ac895(0x342),a2_0x4ac895(0x18e))[a2_0x4ac895(0x343)](a2_0x4ac895(0x26f),a2_0x4ac895(0x28c))[a2_0x4ac895(0x245)](async(_0x265554,_0x531af6)=>{const _0xded296=a2_0x4ac895,_0x1656d1=new ParentSegmentUpdateCommand(),_0xefe74a=program[_0xded296(0x1c3)](),_0xf833eb=await createTDXInstance(_0xefe74a),_0x2e27af=await _0x1656d1[_0xded296(0x339)]({'options':{..._0xefe74a,..._0x531af6},'args':[_0x265554],'tdx':_0xf833eb});process[_0xded296(0x2d1)](_0x2e27af);}),folderCmd[a2_0x4ac895(0x1c4)]('create\x20<parent_name>\x20<folder_name>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x306))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b9),a2_0x4ac895(0x17b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1de),a2_0x4ac895(0x266))[a2_0x4ac895(0x245)](async(_0x6d060,_0x5edbe0,_0x5d45c3)=>{const _0x8f531b=a2_0x4ac895,_0x182f52=new SegmentFolderCreateCommand(),_0x522f53=program[_0x8f531b(0x1c3)](),_0xe9dde2=await createTDXInstance(_0x522f53),_0xe2c1e5=await _0x182f52[_0x8f531b(0x339)]({'options':{..._0x522f53,..._0x5d45c3},'args':[_0x6d060,_0x5edbe0],'tdx':_0xe9dde2});process['exit'](_0xe2c1e5);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2fd))[a2_0x4ac895(0x217)](a2_0x4ac895(0x17a))[a2_0x4ac895(0x245)](async(_0x389e15,_0x45c0bf)=>{const _0x147497=a2_0x4ac895,_0x25c900=new ActivationsCommand(),_0x2078b4=program[_0x147497(0x1c3)](),_0x372186=await createTDXInstance(_0x2078b4),_0x276a6d=await _0x25c900[_0x147497(0x339)]({'options':{..._0x2078b4,..._0x45c0bf},'args':[_0x389e15],'tdx':_0x372186});process[_0x147497(0x2d1)](_0x276a6d);});const workflowCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x21f))[a2_0x4ac895(0x23c)]('wf')[a2_0x4ac895(0x217)](a2_0x4ac895(0x17f)),wfProjectCmd=workflowCmd[a2_0x4ac895(0x1c4)]('project')[a2_0x4ac895(0x217)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0x765ade,_0x1fa959)=>{const _0x3f2cae=a2_0x4ac895,_0x2cddb2=new WorkflowProjectsCommand(),_0x475193=program[_0x3f2cae(0x1c3)](),_0x13b068=await createTDXInstance(_0x475193),_0x3616c8=await _0x2cddb2[_0x3f2cae(0x339)]({'options':{..._0x475193,..._0x1fa959},'args':_0x765ade?[_0x765ade]:[],'tdx':_0x13b068});process['exit'](_0x3616c8);};wfProjectCmd['command'](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x118))['action'](wfProjectListAction),workflowCmd[a2_0x4ac895(0x1c4)]('projects\x20[pattern]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x33c))[a2_0x4ac895(0x245)](wfProjectListAction);const wfWorkflowListAction=async(_0x320da0,_0x59cbae)=>{const _0xb64303=a2_0x4ac895,_0xfdac43=new WorkflowWorkflowsCommand(),_0x34d90d=program[_0xb64303(0x1c3)](),_0x278463=await createTDXInstance(_0x34d90d),_0x2c2778=await _0xfdac43['run']({'options':{..._0x34d90d,..._0x59cbae},'args':_0x320da0?[_0x320da0]:[],'tdx':_0x278463});process[_0xb64303(0x2d1)](_0x2c2778);};workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2e1))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2f6))[a2_0x4ac895(0x245)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x4ac895(0x1c4)]('session')[a2_0x4ac895(0x217)](a2_0x4ac895(0x21a)),wfSessionListAction=async(_0x521936,_0xc5e938)=>{const _0x3d0f22=a2_0x4ac895,_0x59614f=new WorkflowSessionsCommand(),_0x1287e1=program[_0x3d0f22(0x1c3)](),_0x4e2f44=await createTDXInstance(_0x1287e1),_0x4cee5f=await _0x59614f[_0x3d0f22(0x339)]({'options':{..._0x1287e1,..._0xc5e938},'args':_0x521936?[_0x521936]:[],'tdx':_0x4e2f44});process[_0x3d0f22(0x2d1)](_0x4cee5f);};wfSessionCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1ae))[a2_0x4ac895(0x217)](a2_0x4ac895(0x27d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f8),a2_0x4ac895(0x332))[a2_0x4ac895(0x343)]('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x1e8),a2_0x4ac895(0x11a))[a2_0x4ac895(0x245)](wfSessionListAction),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2de))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1ef))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f8),a2_0x4ac895(0x332))['option']('--from\x20<timestamp>',a2_0x4ac895(0x1fd))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1e8),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x4ac895(0x245)](wfSessionListAction);const wfAttemptListAction=async(_0x3b9944,_0x1f38ce)=>{const _0x2d34ce=a2_0x4ac895,_0x15fc73=new WorkflowAttemptsCommand(),_0x4e78d3=program[_0x2d34ce(0x1c3)](),_0xc81079=await createTDXInstance(_0x4e78d3),_0x101a6c=await _0x15fc73[_0x2d34ce(0x339)]({'options':{..._0x4e78d3,..._0x1f38ce},'args':_0x3b9944?[_0x3b9944]:[],'tdx':_0xc81079});process[_0x2d34ce(0x2d1)](_0x101a6c);},attemptCmd=workflowCmd[a2_0x4ac895(0x1c4)]('attempt')[a2_0x4ac895(0x217)](a2_0x4ac895(0x224))['argument'](a2_0x4ac895(0x27f),a2_0x4ac895(0x191))[a2_0x4ac895(0x213)]('[action]',a2_0x4ac895(0x1cf))[a2_0x4ac895(0x213)]('[task-name]',a2_0x4ac895(0x15d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x187),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x4ac895(0x343)]('--reason\x20<text>',a2_0x4ac895(0x215))['option'](a2_0x4ac895(0x1d2),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x297),a2_0x4ac895(0x344))['option'](a2_0x4ac895(0x2c3),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x4ac895(0x343)](a2_0x4ac895(0x173),a2_0x4ac895(0x24f))[a2_0x4ac895(0x245)](async(_0x25a838,_0x1f50c5,_0xa08718,_0x421e44)=>{const _0x56805=a2_0x4ac895;if(_0x25a838===_0x56805(0x196)){await wfAttemptListAction(_0x1f50c5,_0x421e44);return;}if(!_0x25a838){attemptCmd[_0x56805(0x1b3)]();return;}const _0x571e88=program[_0x56805(0x1c3)](),_0x365351=await createTDXInstance(_0x571e88);let _0x72dd6=0x0;if(!_0x1f50c5){const _0x3f18f7=new WorkflowAttemptCommand();_0x72dd6=await _0x3f18f7[_0x56805(0x339)]({'options':{..._0x571e88,..._0x421e44},'args':[_0x25a838],'tdx':_0x365351});}else{if(_0x1f50c5===_0x56805(0x112)){const _0x47107a=new WorkflowLogsCommand();_0x72dd6=await _0x47107a['run']({'options':{..._0x571e88,..._0x421e44},'args':_0xa08718?[_0x25a838,_0xa08718]:[_0x25a838],'tdx':_0x365351});}else{if(_0x1f50c5==='tasks'){const _0x47374a=new WorkflowTasksCommand();_0x72dd6=await _0x47374a[_0x56805(0x339)]({'options':{..._0x571e88,..._0x421e44},'args':[_0x25a838],'tdx':_0x365351});}else{if(_0x1f50c5===_0x56805(0x14f)){const _0x3a5d32=new WorkflowKillCommand();_0x72dd6=await _0x3a5d32[_0x56805(0x339)]({'options':{..._0x571e88,..._0x421e44},'args':[_0x25a838],'tdx':_0x365351});}else{if(_0x1f50c5==='retry'){const _0x18d712=new WorkflowRetryCommand();_0x72dd6=await _0x18d712[_0x56805(0x339)]({'options':{..._0x571e88,..._0x421e44},'args':[_0x56805(0x120)+_0x25a838],'tdx':_0x365351});}else console['error']('Unknown\x20action:\x20'+_0x1f50c5),console[_0x56805(0x12a)](_0x56805(0x2b4)),_0x72dd6=0x1;}}}}process['exit'](_0x72dd6);});attemptCmd[a2_0x4ac895(0x1c4)]('list\x20[project]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x277))[a2_0x4ac895(0x343)](a2_0x4ac895(0x173),a2_0x4ac895(0x273))[a2_0x4ac895(0x245)](wfAttemptListAction),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2af))['description'](a2_0x4ac895(0x307))[a2_0x4ac895(0x343)]('--include-retried',a2_0x4ac895(0x273))[a2_0x4ac895(0x245)](wfAttemptListAction),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2fe))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1a4))[a2_0x4ac895(0x343)]('--follow',a2_0x4ac895(0x2ab))[a2_0x4ac895(0x343)](a2_0x4ac895(0x166),a2_0x4ac895(0x287))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2d9),a2_0x4ac895(0x220))[a2_0x4ac895(0x245)](async(_0x44fc64,_0x1dabf3)=>{const _0xd9b160=a2_0x4ac895,_0x5bcf9a=new WorkflowTimelineCommand(),_0x46f233=program[_0xd9b160(0x1c3)](),_0x56b778=await createTDXInstance(_0x46f233),_0x24ff51=await _0x5bcf9a[_0xd9b160(0x339)]({'options':{..._0x46f233,..._0x1dabf3},'args':_0x44fc64?[_0x44fc64]:[],'tdx':_0x56b778});process[_0xd9b160(0x2d1)](_0x24ff51);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1cb))[a2_0x4ac895(0x217)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2c6),a2_0x4ac895(0x1e7))['option'](a2_0x4ac895(0x297),a2_0x4ac895(0x2e6))[a2_0x4ac895(0x245)](async(_0x3445bd,_0x1e7027)=>{const _0x1a1cff=a2_0x4ac895,_0x31edd4=new WorkflowRetryCommand(),_0x191c59=program[_0x1a1cff(0x1c3)](),_0x1634ac=await createTDXInstance(_0x191c59),_0x3aa2d1=await _0x31edd4[_0x1a1cff(0x339)]({'options':{..._0x191c59,..._0x1e7027},'args':[_0x3445bd],'tdx':_0x1634ac});process[_0x1a1cff(0x2d1)](_0x3aa2d1);}),workflowCmd[a2_0x4ac895(0x1c4)]('run\x20[workflow]')['description'](a2_0x4ac895(0x136))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a3),a2_0x4ac895(0x1fb),(_0x335408,_0x466b46=[])=>[..._0x466b46,_0x335408],[])['option']('--session-time\x20<time>',a2_0x4ac895(0x2c8))[a2_0x4ac895(0x245)](async(_0xf51275,_0x3dfd2e)=>{const _0x184b68=a2_0x4ac895,_0x79247a=new WorkflowRunCommand(),_0x470f9a=program['opts'](),_0x140db3=await createTDXInstance(_0x470f9a),_0x426007=await _0x79247a[_0x184b68(0x339)]({'options':{..._0x470f9a,..._0x3dfd2e},'args':_0xf51275?[_0xf51275]:[],'tdx':_0x140db3});process[_0x184b68(0x2d1)](_0x426007);}),workflowCmd[a2_0x4ac895(0x1c4)]('download\x20<project-name>\x20[output-dir]')['description'](a2_0x4ac895(0x1ce))['option'](a2_0x4ac895(0x2ad),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x4ac895(0x245)](async(_0x2d1e75,_0x5552e5,_0x385cad)=>{const _0x21a72d=a2_0x4ac895,_0x161361=new WorkflowDownloadCommand(),_0x4916ed=program[_0x21a72d(0x1c3)](),_0x5a7679=await createTDXInstance(_0x4916ed),_0x1513f7=await _0x161361['run']({'options':{..._0x4916ed,..._0x385cad},'args':[_0x2d1e75,_0x5552e5||'.'],'tdx':_0x5a7679});process[_0x21a72d(0x2d1)](_0x1513f7);}),workflowCmd['command']('pull\x20<project>\x20[target-dir]')[a2_0x4ac895(0x217)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')['option'](a2_0x4ac895(0x2ad),'Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x4ac895(0x343)]('--dry-run',a2_0x4ac895(0x292))[a2_0x4ac895(0x343)]('-y,\x20--yes',a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x12741c,_0x5bd682,_0x26c2df)=>{const _0x766460=a2_0x4ac895,_0x43660c=new WorkflowPullCommand(),_0x20f92b=program[_0x766460(0x1c3)](),_0x402c82=await createTDXInstance(_0x20f92b),_0x1fbdbc=await _0x43660c[_0x766460(0x339)]({'options':{..._0x20f92b,..._0x26c2df},'args':_0x5bd682?[_0x12741c,_0x5bd682]:[_0x12741c],'tdx':_0x402c82});process[_0x766460(0x2d1)](_0x1fbdbc);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x320))[a2_0x4ac895(0x217)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2ad),a2_0x4ac895(0x162))['option'](a2_0x4ac895(0x1c0),a2_0x4ac895(0x16b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x12f),a2_0x4ac895(0x165))[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))['action'](async(_0x4478b1,_0x4e7ec7)=>{const _0x239959=a2_0x4ac895,_0x595867=new WorkflowPushCommand(),_0x5b50e2=program['opts'](),_0x3f85d8=await createTDXInstance(_0x5b50e2),_0x581e2a=await _0x595867['run']({'options':{..._0x5b50e2,..._0x4e7ec7},'args':_0x4478b1?[_0x4478b1]:[],'tdx':_0x3f85d8});process[_0x239959(0x2d1)](_0x581e2a);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2d6))[a2_0x4ac895(0x217)](a2_0x4ac895(0x316))[a2_0x4ac895(0x343)](a2_0x4ac895(0x170),a2_0x4ac895(0x322))['option'](a2_0x4ac895(0x2ad),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x12f),a2_0x4ac895(0x165))['action'](async(_0x5ee08a,_0x3b1927)=>{const _0x59b424=a2_0x4ac895,_0x20154b=new WorkflowUploadCommand(),_0x1d433a=program[_0x59b424(0x1c3)](),_0x4189d2=await createTDXInstance(_0x1d433a),_0x2cbe52=await _0x20154b[_0x59b424(0x339)]({'options':{..._0x1d433a,..._0x3b1927},'args':_0x5ee08a?[_0x5ee08a]:[],'tdx':_0x4189d2});process['exit'](_0x2cbe52);}),workflowCmd[a2_0x4ac895(0x1c4)]('clone\x20[source-dir]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x2d0))[a2_0x4ac895(0x343)](a2_0x4ac895(0x170),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x4ac895(0x343)]('--revision\x20<revision>',a2_0x4ac895(0x162))[a2_0x4ac895(0x343)]('--dry-run','Preview\x20without\x20creating\x20the\x20project')[a2_0x4ac895(0x343)](a2_0x4ac895(0x12f),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),'Skip\x20confirmation\x20prompt')['action'](async(_0x9d99ff,_0x27f625)=>{const _0x131e98=a2_0x4ac895,_0x574567=new WorkflowCloneCommand(),_0x5e6793=program[_0x131e98(0x1c3)](),_0x50d915=await createTDXInstance(_0x5e6793),_0x3cca6b=await _0x574567[_0x131e98(0x339)]({'options':{..._0x5e6793,..._0x27f625},'args':_0x9d99ff?[_0x9d99ff]:[],'tdx':_0x50d915});process[_0x131e98(0x2d1)](_0x3cca6b);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1b4))[a2_0x4ac895(0x217)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')['action'](async(_0x559d9e,_0x2a50d8)=>{const _0xa16e96=a2_0x4ac895,_0x39f359=new WorkflowDeleteCommand(),_0x26f8d7=program['opts'](),_0x38b28e=await createTDXInstance(_0x26f8d7),_0x449e02=await _0x39f359[_0xa16e96(0x339)]({'options':{..._0x26f8d7,..._0x2a50d8},'args':[_0x559d9e],'tdx':_0x38b28e});process[_0xa16e96(0x2d1)](_0x449e02);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x203))[a2_0x4ac895(0x217)](a2_0x4ac895(0x281))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b8),a2_0x4ac895(0x280))['action'](async(_0x36d1b2,_0x1eb24a)=>{const _0x19fdc3=a2_0x4ac895,_0x43bff1=new WorkflowUseCommand(),_0x4b18b6=program[_0x19fdc3(0x1c3)](),_0x5ca3ef=await createTDXInstance(_0x4b18b6),_0x2f8700=await _0x43bff1[_0x19fdc3(0x339)]({'options':{..._0x4b18b6,..._0x1eb24a},'args':_0x36d1b2?[_0x36d1b2]:[],'tdx':_0x5ca3ef});process[_0x19fdc3(0x2d1)](_0x2f8700);});const wfSecretsCmd=workflowCmd['command'](a2_0x4ac895(0x2b5))[a2_0x4ac895(0x217)](a2_0x4ac895(0x283));wfSecretsCmd['command']('list\x20[project]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x10e))[a2_0x4ac895(0x245)](async(_0x32e9f3,_0x49dccb)=>{const _0x3692c3=a2_0x4ac895,_0x43a210=new WorkflowSecretsListCommand(),_0x2f7cf6=program[_0x3692c3(0x1c3)](),_0x20c6ac=await createTDXInstance(_0x2f7cf6),_0x4e5fc9=await _0x43a210['run']({'options':{..._0x2f7cf6,..._0x49dccb},'args':_0x32e9f3?[_0x32e9f3]:[],'tdx':_0x20c6ac});process[_0x3692c3(0x2d1)](_0x4e5fc9);}),wfSecretsCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x335))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1c1))[a2_0x4ac895(0x245)](async(_0x292d49,_0x21e951)=>{const _0x489853=a2_0x4ac895,_0x493cb2=new WorkflowSecretsSetCommand(),_0x220c53=program[_0x489853(0x1c3)](),_0x4bf43b=await createTDXInstance(_0x220c53),_0x2de8b9=await _0x493cb2[_0x489853(0x339)]({'options':{..._0x220c53,..._0x21e951},'args':_0x292d49,'tdx':_0x4bf43b});process[_0x489853(0x2d1)](_0x2de8b9);}),wfSecretsCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x25a))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x4ac895(0x343)]('-y,\x20--yes',a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x5a3e42,_0x292206)=>{const _0x1e0851=a2_0x4ac895,_0x8f92a7=new WorkflowSecretsDeleteCommand(),_0x49db73=program[_0x1e0851(0x1c3)](),_0x38bef1=await createTDXInstance(_0x49db73),_0x5ab98a=await _0x8f92a7[_0x1e0851(0x339)]({'options':{..._0x49db73,..._0x292206},'args':_0x5a3e42,'tdx':_0x38bef1});process[_0x1e0851(0x2d1)](_0x5ab98a);});const jobCmd=program[a2_0x4ac895(0x1c4)]('job')[a2_0x4ac895(0x217)](a2_0x4ac895(0x346)),jobListAction=async _0x4c1c87=>{const _0x3a1edf=a2_0x4ac895,_0x1aac9f=new JobListCommand(),_0x933dd7=program[_0x3a1edf(0x1c3)](),_0x3290ff=await createTDXInstance(_0x933dd7),_0x3f7973=await _0x1aac9f[_0x3a1edf(0x339)]({'options':{..._0x933dd7,..._0x4c1c87},'args':[],'tdx':_0x3290ff});process[_0x3a1edf(0x2d1)](_0x3f7973);};jobCmd[a2_0x4ac895(0x1c4)]('list')['description'](a2_0x4ac895(0x2a5))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f8),a2_0x4ac895(0x294))[a2_0x4ac895(0x245)](jobListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x183),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x27e))['option'](a2_0x4ac895(0x2f8),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x4ac895(0x245)](jobListAction),jobCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x13d))[a2_0x4ac895(0x217)]('Show\x20job\x20details')[a2_0x4ac895(0x245)](async(_0x1c2de6,_0x26592a)=>{const _0x32878d=a2_0x4ac895,_0x493df2=new JobShowCommand(),_0x7b447a=program['opts'](),_0x454f3a=await createTDXInstance(_0x7b447a),_0x1226da=await _0x493df2[_0x32878d(0x339)]({'options':{..._0x7b447a,..._0x26592a},'args':[_0x1c2de6],'tdx':_0x454f3a});process[_0x32878d(0x2d1)](_0x1226da);}),jobCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x134))[a2_0x4ac895(0x217)]('Kill\x20a\x20job')['action'](async(_0x2f810b,_0x2fcd5c)=>{const _0x434d89=a2_0x4ac895,_0x5786d0=new JobKillCommand(),_0x377df8=program[_0x434d89(0x1c3)](),_0x3fba43=await createTDXInstance(_0x377df8),_0x1049a1=await _0x5786d0[_0x434d89(0x339)]({'options':{..._0x377df8,..._0x2fcd5c},'args':[_0x2f810b],'tdx':_0x3fba43});process[_0x434d89(0x2d1)](_0x1049a1);}),jobCmd[a2_0x4ac895(0x1c4)]('submit\x20[query]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x33f))[a2_0x4ac895(0x343)](a2_0x4ac895(0x15c),a2_0x4ac895(0x185),'trino')[a2_0x4ac895(0x343)](a2_0x4ac895(0x325),'Read\x20query\x20from\x20file')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2e7),a2_0x4ac895(0x252),a2_0x4ac895(0x26c))[a2_0x4ac895(0x245)](async(_0xf366d7,_0x1618e9)=>{const _0x4129b8=a2_0x4ac895,_0x3f4b16=new JobSubmitCommand(),_0x228c82=program[_0x4129b8(0x1c3)](),_0x2929e3=await createTDXInstance(_0x228c82),_0x5db444=await _0x3f4b16['run']({'options':{..._0x228c82,..._0x1618e9},'args':_0xf366d7?[_0xf366d7]:[],'tdx':_0x2929e3});process['exit'](_0x5db444);}),jobCmd[a2_0x4ac895(0x1c4)]('result\x20<job-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x163))[a2_0x4ac895(0x245)](async(_0x52c431,_0xe20463)=>{const _0x31dd67=a2_0x4ac895,_0xb58d5a=new JobResultCommand(),_0x257e6b=program[_0x31dd67(0x1c3)](),_0x96696=await createTDXInstance(_0x257e6b),_0x50f7a6=await _0xb58d5a[_0x31dd67(0x339)]({'options':{..._0x257e6b,..._0xe20463},'args':[_0x52c431],'tdx':_0x96696});process['exit'](_0x50f7a6);});const llmCmd=program['command'](a2_0x4ac895(0x1d4))['description'](a2_0x4ac895(0x20c));llmCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2e4))[a2_0x4ac895(0x217)](a2_0x4ac895(0x247))[a2_0x4ac895(0x245)](async(_0x3c32c1,_0x27c0a3)=>{const _0x254639=a2_0x4ac895,_0x420521=new LLMUseCommand(),_0x4e76a1=program[_0x254639(0x1c3)](),_0x28f774=await createTDXInstance(_0x4e76a1),_0x4bb447=await _0x420521['run']({'options':{..._0x4e76a1,..._0x27c0a3},'args':[_0x3c32c1],'tdx':_0x28f774});process['exit'](_0x4bb447);}),llmCmd['command'](a2_0x4ac895(0x268))['description'](a2_0x4ac895(0x27c))[a2_0x4ac895(0x245)](async _0x53c1ae=>{const _0x5bc9e2=a2_0x4ac895,_0x411834=new LLMModelsCommand(),_0x5e59d1=program[_0x5bc9e2(0x1c3)](),_0x164a90=await createTDXInstance(_0x5e59d1),_0x5d2c87=await _0x411834[_0x5bc9e2(0x339)]({'options':{..._0x5e59d1,..._0x53c1ae},'args':[],'tdx':_0x164a90});process[_0x5bc9e2(0x2d1)](_0x5d2c87);});const projectCmd=llmCmd['command']('project')[a2_0x4ac895(0x217)](a2_0x4ac895(0x111)),llmProjectListAction=async(_0x44e672,_0x2ad2b4)=>{const _0x82e0f3=a2_0x4ac895,_0x7c81a5=new LLMProjectsCommand(),_0x1211a6=program[_0x82e0f3(0x1c3)](),_0x52b4b6=await createTDXInstance(_0x1211a6),_0x285856=await _0x7c81a5['run']({'options':{..._0x1211a6,..._0x2ad2b4},'args':_0x44e672?[_0x44e672]:[],'tdx':_0x52b4b6});process[_0x82e0f3(0x2d1)](_0x285856);};projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x24b))[a2_0x4ac895(0x245)](llmProjectListAction),llmCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2cf))[a2_0x4ac895(0x217)](a2_0x4ac895(0x199))[a2_0x4ac895(0x245)](llmProjectListAction),projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x31d))['description'](a2_0x4ac895(0x288))['option'](a2_0x4ac895(0x1b9),a2_0x4ac895(0x1c7))['action'](async(_0x3a83ce,_0x3589a3)=>{const _0x1712e8=a2_0x4ac895,_0x30d56d=new LLMProjectCreateCommand(),_0x545245=program[_0x1712e8(0x1c3)](),_0x53cdd7=await createTDXInstance(_0x545245),_0x45431c=await _0x30d56d[_0x1712e8(0x339)]({'options':{..._0x545245,..._0x3589a3},'args':[_0x3a83ce],'tdx':_0x53cdd7});process[_0x1712e8(0x2d1)](_0x45431c);}),projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x25e))['description'](a2_0x4ac895(0x11c))['action'](async(_0x30664c,_0x3cffff)=>{const _0x3b4941=a2_0x4ac895,_0xd03475=new LLMProjectDeleteCommand(),_0x46023b=program[_0x3b4941(0x1c3)](),_0x4f3d03=await createTDXInstance(_0x46023b),_0x146fcb=await _0xd03475[_0x3b4941(0x339)]({'options':{..._0x46023b,..._0x3cffff},'args':[_0x30664c],'tdx':_0x4f3d03});process['exit'](_0x146fcb);}),projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2f5))[a2_0x4ac895(0x217)](a2_0x4ac895(0x11e))['option'](a2_0x4ac895(0x1f9),a2_0x4ac895(0x2b9))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c0),a2_0x4ac895(0x20d))[a2_0x4ac895(0x245)](async(_0x267bb5,_0x4fbd5f)=>{const _0x4a466b=a2_0x4ac895,_0x2cbeea=new LLMProjectBackupCommand(),_0x54c29b=program[_0x4a466b(0x1c3)](),_0x411534=await createTDXInstance(_0x54c29b),_0x3fec72=await _0x2cbeea[_0x4a466b(0x339)]({'options':{..._0x54c29b,..._0x4fbd5f},'args':[_0x267bb5],'tdx':_0x411534});process[_0x4a466b(0x2d1)](_0x3fec72);}),projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x169))[a2_0x4ac895(0x217)](a2_0x4ac895(0x117))[a2_0x4ac895(0x343)](a2_0x4ac895(0x219),a2_0x4ac895(0x1f6))[a2_0x4ac895(0x343)]('--dry-run','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x4ac895(0x245)](async(_0x28c0f2,_0x58ce8b)=>{const _0x35afbb=a2_0x4ac895,_0xa36f16=new LLMProjectRestoreCommand(),_0x4011a0=program[_0x35afbb(0x1c3)](),_0x3562b5=await createTDXInstance(_0x4011a0),_0x25c273=await _0xa36f16[_0x35afbb(0x339)]({'options':{..._0x4011a0,..._0x58ce8b},'args':[_0x28c0f2],'tdx':_0x3562b5});process[_0x35afbb(0x2d1)](_0x25c273);});const llmAgentListAction=async(_0x456d17,_0x300e0b)=>{const _0x59fb8d=a2_0x4ac895,_0x377ea5=new LLMAgentsCommand(),_0x387ab6=program['opts'](),_0x3aa662=await createTDXInstance(_0x387ab6),_0x345561=await _0x377ea5[_0x59fb8d(0x339)]({'options':{..._0x387ab6,..._0x300e0b},'args':_0x456d17?[_0x456d17]:[],'tdx':_0x3aa662});process[_0x59fb8d(0x2d1)](_0x345561);};llmCmd['command'](a2_0x4ac895(0x180))[a2_0x4ac895(0x217)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x4ac895(0x245)](llmAgentListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x180))['description'](a2_0x4ac895(0x26b))[a2_0x4ac895(0x245)](llmAgentListAction),llmCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x221))[a2_0x4ac895(0x217)](a2_0x4ac895(0x150))[a2_0x4ac895(0x343)](a2_0x4ac895(0x32e),a2_0x4ac895(0x197))[a2_0x4ac895(0x245)](async(_0x4a2c79,_0x413c71)=>{const _0x19576c=a2_0x4ac895,_0x175b99=new LLMHistoryCommand(),_0x29f90e=program[_0x19576c(0x1c3)](),_0x41f88f=await createTDXInstance(_0x29f90e),_0x5dccc2=await _0x175b99[_0x19576c(0x339)]({'options':{..._0x29f90e,..._0x413c71},'args':_0x4a2c79?[_0x4a2c79]:[],'tdx':_0x41f88f});process['exit'](_0x5dccc2);}),llmCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x119))[a2_0x4ac895(0x217)](a2_0x4ac895(0x303))['option'](a2_0x4ac895(0x2f7),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x4ac895(0x1fa))[a2_0x4ac895(0x343)](a2_0x4ac895(0x282),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')['option'](a2_0x4ac895(0x14b),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')['action'](async _0x204301=>{const _0x1cd466=a2_0x4ac895,_0x2ab984=new LLMProxyCommand(),_0x530b2a=program['opts'](),_0x22912b=await createTDXInstance(_0x530b2a),_0x45d5c8={..._0x204301,'port':_0x204301[_0x1cd466(0x130)]?parseInt(_0x204301[_0x1cd466(0x130)],0xa):undefined},_0xb0c27f=await _0x2ab984[_0x1cd466(0x339)]({'options':{..._0x530b2a,..._0x45d5c8},'args':[],'tdx':_0x22912b});process[_0x1cd466(0x2d1)](_0xb0c27f);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x179))[a2_0x4ac895(0x28a)](a2_0x4ac895(0x19b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x34f))['option'](a2_0x4ac895(0x129),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x4ac895(0x176))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1da),'Continue\x20most\x20recent\x20conversation')[a2_0x4ac895(0x343)](a2_0x4ac895(0x31c),a2_0x4ac895(0x202))[a2_0x4ac895(0x343)](a2_0x4ac895(0x19d),a2_0x4ac895(0x208))[a2_0x4ac895(0x1ad)]()[a2_0x4ac895(0x27b)](!![])[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')['action'](async(_0x2b2743,_0x57029d)=>{const _0x38c446=a2_0x4ac895,_0x5d62bd=program[_0x38c446(0x1c3)](),_0x1ae059=Array[_0x38c446(0x1d5)](_0x2b2743)?_0x2b2743:[];if(_0x1ae059[0x0]===_0x38c446(0x1a8)){const _0x42d927=new ClaudeStatuslineCommand(),_0x2eeaab=await _0x42d927['run']({'options':{..._0x5d62bd,..._0x57029d},'args':_0x1ae059[_0x38c446(0x2bb)](0x1),'tdx':null});process[_0x38c446(0x2d1)](_0x2eeaab);}if(_0x1ae059[0x0]===_0x38c446(0x28a)){const _0x3734a0=new ClaudeUsageCommand(),_0x257031=await _0x3734a0[_0x38c446(0x339)]({'options':{..._0x5d62bd,..._0x57029d},'args':_0x1ae059[_0x38c446(0x2bb)](0x1),'tdx':null});process[_0x38c446(0x2d1)](_0x257031);}const _0x48b29d=new ClaudeCommand(),_0x4b5bf4=await createTDXInstance(_0x5d62bd),_0x2bc8ee=await _0x48b29d['run']({'options':{..._0x5d62bd,..._0x57029d},'args':_0x1ae059,'tdx':_0x4b5bf4});process['exit'](_0x2bc8ee);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x234))['description'](a2_0x4ac895(0x110))[a2_0x4ac895(0x343)]('--clear','Clear\x20session\x20context')[a2_0x4ac895(0x245)](async(_0x49363f,_0xd6b4d8,_0x4f9e16)=>{const _0x4ebc49=a2_0x4ac895,_0x3966ac=new UseCommand(),_0x14c1af=program[_0x4ebc49(0x1c3)](),_0x16f63f=[];if(_0x49363f)_0x16f63f[_0x4ebc49(0x19e)](_0x49363f);if(_0xd6b4d8)_0x16f63f[_0x4ebc49(0x19e)](_0xd6b4d8);const _0x56b40f=await _0x3966ac[_0x4ebc49(0x339)]({'options':{..._0x14c1af,..._0x4f9e16},'args':_0x16f63f,'tdx':null});process['exit'](_0x56b40f);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x10b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x113))[a2_0x4ac895(0x343)]('--last',a2_0x4ac895(0x24d))['action'](async _0x4d7198=>{const _0x19db6b=a2_0x4ac895,_0x34fb40=new ChatsCommand(),_0x3ee8db=program[_0x19db6b(0x1c3)](),_0xbf70ba=await createTDXInstance(_0x3ee8db),_0x5bb823=await _0x34fb40[_0x19db6b(0x339)]({'options':{..._0x3ee8db,..._0x4d7198},'args':[],'tdx':_0xbf70ba});process[_0x19db6b(0x2d1)](_0x5bb823);});const authCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1af))['description'](a2_0x4ac895(0x137));async function runAuthStatusCommand(_0x532edd){const _0x26e746=a2_0x4ac895,_0x4b69ba=new AuthStatusCommand(),_0x4caf7e=program[_0x26e746(0x1c3)](),_0x21e787=await createTDXInstance(_0x4caf7e),_0x4fd485=await _0x4b69ba[_0x26e746(0x339)]({'options':{..._0x4caf7e,..._0x532edd},'args':[],'tdx':_0x21e787});process[_0x26e746(0x2d1)](_0x4fd485);}authCmd[a2_0x4ac895(0x245)](runAuthStatusCommand),authCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x16f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1ff))[a2_0x4ac895(0x245)](runAuthStatusCommand),authCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1f8))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2be))[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),'\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_0x4ac895(0x245)](async _0x36662a=>{const _0xe4b52=a2_0x4ac895,_0x1cd2ce=new AuthSetupCommand(),_0x12cd3d=program[_0xe4b52(0x1c3)](),_0x13a78e=await createTDXInstance(_0x12cd3d),_0x4af1a7=await _0x1cd2ce[_0xe4b52(0x339)]({'options':{..._0x12cd3d,..._0x36662a},'args':[],'tdx':_0x13a78e});process['exit'](_0x4af1a7);}),authCmd['command'](a2_0x4ac895(0x1b1))[a2_0x4ac895(0x217)](a2_0x4ac895(0x175))[a2_0x4ac895(0x250)]('after',a2_0x4ac895(0x2f4))[a2_0x4ac895(0x245)](async _0x182170=>{const _0x50889e=a2_0x4ac895,_0x282798=new AuthClearCommand(),_0xd093f8=program['opts'](),_0x36af0f=await _0x282798[_0x50889e(0x339)]({'options':{..._0xd093f8,..._0x182170},'args':[],'tdx':null});process[_0x50889e(0x2d1)](_0x36af0f);});const userCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x311))[a2_0x4ac895(0x217)]('User\x20management\x20commands'),userListAction=async _0xdab6dd=>{const _0x396ee6=a2_0x4ac895,_0x1ae8d7=new UserListCommand(),_0x4c8d09=program[_0x396ee6(0x1c3)](),_0x1933e9=await createTDXInstance(_0x4c8d09),_0x2563d7=await _0x1ae8d7[_0x396ee6(0x339)]({'options':{..._0x4c8d09,..._0xdab6dd},'args':[],'tdx':_0x1933e9});process[_0x396ee6(0x2d1)](_0x2563d7);};userCmd[a2_0x4ac895(0x245)](async _0x1fbee8=>{const _0x1feb95=a2_0x4ac895,_0x339092=new UserCommand(),_0x481ea2=program[_0x1feb95(0x1c3)](),_0x2d725b=await createTDXInstance(_0x481ea2),_0x286653=await _0x339092[_0x1feb95(0x339)]({'options':{..._0x481ea2,..._0x1fbee8},'args':[],'tdx':_0x2d725b});process['exit'](_0x286653);}),userCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x196))[a2_0x4ac895(0x217)](a2_0x4ac895(0x34b))['action'](userListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2d2))[a2_0x4ac895(0x217)](a2_0x4ac895(0x236))[a2_0x4ac895(0x245)](userListAction),program[a2_0x4ac895(0x1c4)]('profiles')[a2_0x4ac895(0x217)](a2_0x4ac895(0x2f2))[a2_0x4ac895(0x245)](async _0x260769=>{const _0x2c0347=a2_0x4ac895,_0x4df742=new ProfilesCommand(),_0x9bbea3=program['opts'](),_0x35ec1f=await _0x4df742[_0x2c0347(0x339)]({'options':{..._0x9bbea3,..._0x260769},'args':[],'tdx':null});process[_0x2c0347(0x2d1)](_0x35ec1f);});const profileCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2a2))[a2_0x4ac895(0x217)](a2_0x4ac895(0x157));profileCmd['action'](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x579cfa=>{const _0x362e19=a2_0x4ac895,_0x1782bb=new ProfilesCommand(),_0x3b4285=program[_0x362e19(0x1c3)](),_0x191647=await _0x1782bb[_0x362e19(0x339)]({'options':{..._0x3b4285,..._0x579cfa},'args':[],'tdx':null});process[_0x362e19(0x2d1)](_0x191647);};profileCmd['command'](a2_0x4ac895(0x196))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2f2))['action'](profileListAction),profileCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x349))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2dd))[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),a2_0x4ac895(0x2c0))['action'](async _0x28ee3d=>{const _0x2e4ea6=a2_0x4ac895,_0x3db72d=new ProfileCreateCommand(),_0x65d4f0=program[_0x2e4ea6(0x1c3)](),_0x1a1798=await _0x3db72d[_0x2e4ea6(0x339)]({'options':{..._0x65d4f0,..._0x28ee3d},'args':[],'tdx':null});process[_0x2e4ea6(0x2d1)](_0x1a1798);}),profileCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x248))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2fb))[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x4ac895(0x245)](async(_0x57d7cd,_0x4166c0)=>{const _0x1283c0=a2_0x4ac895,_0x433ff4=new ProfileRemoveCommand(),_0x579543=program['opts'](),_0x555784=await _0x433ff4['run']({'options':{..._0x579543,..._0x4166c0},'args':[_0x57d7cd],'tdx':null});process[_0x1283c0(0x2d1)](_0x555784);}),profileCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x301))['description'](a2_0x4ac895(0x2e2))[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),'\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_0x4ac895(0x245)](async(_0xf4b53a,_0x579aa4)=>{const _0x5e6c69=a2_0x4ac895,_0x394ece=new ProfileSetCommand(),_0x2865b9=program[_0x5e6c69(0x1c3)](),_0x4b4dff=await _0x394ece[_0x5e6c69(0x339)]({'options':{..._0x2865b9,..._0x579aa4},'args':[_0xf4b53a],'tdx':null});process['exit'](_0x4b4dff);}),profileCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x319))['description'](a2_0x4ac895(0x2b0))[a2_0x4ac895(0x250)]('after',a2_0x4ac895(0x19f))['action'](async(_0x3191c6,_0xd27eb2)=>{const _0x2f7c36=a2_0x4ac895,_0x161cd5=new ProfileUseCommand(),_0x296a15=program[_0x2f7c36(0x1c3)](),_0x210892=await _0x161cd5['run']({'options':{..._0x296a15,..._0xd27eb2},'args':[_0x3191c6],'tdx':null});process[_0x2f7c36(0x2d1)](_0x210892);});const engageCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2d3))[a2_0x4ac895(0x217)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x1cd556=>{return async(_0x3ee411,_0x4b58b5)=>{const _0x27a8ab=a2_0x781d,_0x498dc9=new _0x1cd556(),_0x2515f7=program[_0x27a8ab(0x1c3)](),_0x55c737=await createTDXInstance(_0x2515f7),_0x4c8709=await _0x498dc9['run']({'options':{..._0x2515f7,..._0x4b58b5},'args':[_0x3ee411],'tdx':_0x55c737});process[_0x27a8ab(0x2d1)](_0x4c8709);};},createEngageNoArgAction=_0x4af5c8=>{return async _0x110292=>{const _0x5e9d0d=a2_0x781d,_0x2a93fe=new _0x4af5c8(),_0x16257d=program[_0x5e9d0d(0x1c3)](),_0x14c01e=await createTDXInstance(_0x16257d),_0x137bc0=await _0x2a93fe['run']({'options':{..._0x16257d,..._0x110292},'args':[],'tdx':_0x14c01e});process[_0x5e9d0d(0x2d1)](_0x137bc0);};},campaignCmd=engageCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x139))[a2_0x4ac895(0x217)](a2_0x4ac895(0x18c)),campaignListAction=async(_0x1b23db,_0x1eea64)=>{const _0x26d554=a2_0x4ac895,_0x4075d9=new EngageCampaignsCommand(),_0x13aa55=program[_0x26d554(0x1c3)](),_0xbd9947=await createTDXInstance(_0x13aa55),_0x1569bf=await _0x4075d9[_0x26d554(0x339)]({'options':{..._0x13aa55,..._0x1eea64},'args':_0x1b23db?[_0x1b23db]:[],'tdx':_0xbd9947});process[_0x26d554(0x2d1)](_0x1569bf);};campaignCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2fc),a2_0x4ac895(0x235))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f8),a2_0x4ac895(0x140))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))['action'](campaignListAction),engageCmd['command'](a2_0x4ac895(0x2c5))[a2_0x4ac895(0x217)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x4ac895(0x343)]('--type\x20<type>',a2_0x4ac895(0x235))[a2_0x4ac895(0x343)]('--status\x20<status>',a2_0x4ac895(0x140))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x245)](campaignListAction),campaignCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x28f))[a2_0x4ac895(0x217)]('Show\x20campaign\x20details')[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))['option'](a2_0x4ac895(0x12c),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x4ac895(0x245)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x4ac895(0x349))[a2_0x4ac895(0x217)](a2_0x4ac895(0x23f))[a2_0x4ac895(0x1d7)](a2_0x4ac895(0x170),a2_0x4ac895(0x243))[a2_0x4ac895(0x1d7)](a2_0x4ac895(0x2fc),a2_0x4ac895(0x340))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),'Workspace\x20name\x20(required)')[a2_0x4ac895(0x343)]('--description\x20<desc>',a2_0x4ac895(0x1c8))[a2_0x4ac895(0x343)]('--segment\x20<path>',a2_0x4ac895(0x291))[a2_0x4ac895(0x343)](a2_0x4ac895(0x327),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x4ac895(0x343)]('--json-columns\x20<cols>',a2_0x4ac895(0x1e3))[a2_0x4ac895(0x343)](a2_0x4ac895(0x334),a2_0x4ac895(0x2cc))['option'](a2_0x4ac895(0x305),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x4ac895(0x245)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x4ac895(0x2a6))['description'](a2_0x4ac895(0x27a))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x343)]('--name\x20<name>','New\x20campaign\x20name')['option'](a2_0x4ac895(0x1a6),a2_0x4ac895(0x1c8))[a2_0x4ac895(0x343)](a2_0x4ac895(0x265),a2_0x4ac895(0x291))['option']('--email-sender-id\x20<id>',a2_0x4ac895(0x206))[a2_0x4ac895(0x343)](a2_0x4ac895(0x315),a2_0x4ac895(0x1e3))[a2_0x4ac895(0x343)](a2_0x4ac895(0x334),a2_0x4ac895(0x2cc))[a2_0x4ac895(0x343)](a2_0x4ac895(0x305),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x4ac895(0x245)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')[a2_0x4ac895(0x217)]('Delete\x20a\x20campaign')[a2_0x4ac895(0x343)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x4ac895(0x1a0),a2_0x4ac895(0x2ea))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2a4))[a2_0x4ac895(0x217)](a2_0x4ac895(0x31b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x258))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1bc))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),'Workspace\x20name')[a2_0x4ac895(0x245)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x4ac895(0x1c4)]('resume\x20<name-or-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x20e))[a2_0x4ac895(0x343)]('--workspace\x20<name>',a2_0x4ac895(0x20a))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x4ac895(0x1c4)]('duplicate\x20<name-or-id>')[a2_0x4ac895(0x217)]('Duplicate\x20a\x20campaign')[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x245)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x189))[a2_0x4ac895(0x217)]('Email\x20template\x20management'),templateListAction=async(_0x580d3f,_0x533356)=>{const _0x3c988a=a2_0x4ac895,_0x812ea4=new EngageTemplatesCommand(),_0x514ee7=program[_0x3c988a(0x1c3)](),_0x35fbe1=await createTDXInstance(_0x514ee7),_0x5020a9=await _0x812ea4[_0x3c988a(0x339)]({'options':{..._0x514ee7,..._0x533356},'args':_0x580d3f?[_0x580d3f]:[],'tdx':_0x35fbe1});process[_0x3c988a(0x2d1)](_0x5020a9);};templateCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x15a))[a2_0x4ac895(0x343)]('--workspace\x20<name>',a2_0x4ac895(0x20a))['action'](templateListAction),engageCmd['command'](a2_0x4ac895(0x2c1))[a2_0x4ac895(0x217)](a2_0x4ac895(0x242))['option'](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x245)](templateListAction),templateCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x28f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x21b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x343)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x349))['description'](a2_0x4ac895(0x133))[a2_0x4ac895(0x1d7)](a2_0x4ac895(0x170),a2_0x4ac895(0x326))['requiredOption'](a2_0x4ac895(0x2ae),'Email\x20subject\x20template')[a2_0x4ac895(0x1d7)](a2_0x4ac895(0x13e),a2_0x4ac895(0x29b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x1cd))[a2_0x4ac895(0x343)]('--plaintext\x20<text>',a2_0x4ac895(0x116))['option'](a2_0x4ac895(0x14d),a2_0x4ac895(0x1f1))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command']('update\x20<name-or-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x298))['option'](a2_0x4ac895(0x188),'Workspace\x20name')[a2_0x4ac895(0x343)](a2_0x4ac895(0x170),'New\x20template\x20name')['option']('--subject\x20<subject>','Email\x20subject\x20template')['option'](a2_0x4ac895(0x13e),a2_0x4ac895(0x29b))['option'](a2_0x4ac895(0x2a8),a2_0x4ac895(0x116))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x4ac895(0x1c4)]('delete\x20<name-or-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x204))[a2_0x4ac895(0x343)]('--workspace\x20<name>','Workspace\x20name')['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x4ac895(0x245)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x19c))[a2_0x4ac895(0x217)](a2_0x4ac895(0x312)),workspaceListAction=async(_0x44ab52,_0x56bf79)=>{const _0x128d1c=a2_0x4ac895,_0x2e5581=new EngageWorkspacesCommand(),_0x396196=program['opts'](),_0x2ee735=await createTDXInstance(_0x396196),_0x52ef51=await _0x2e5581['run']({'options':{..._0x396196,..._0x56bf79},'args':_0x44ab52?[_0x44ab52]:[],'tdx':_0x2ee735});process[_0x128d1c(0x2d1)](_0x52ef51);};workspaceCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2e9))[a2_0x4ac895(0x245)](workspaceListAction),engageCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1e5))[a2_0x4ac895(0x217)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x4ac895(0x245)](workspaceListAction),workspaceCmd[a2_0x4ac895(0x1c4)]('show\x20<name-or-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x239))['option'](a2_0x4ac895(0x12c),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x4ac895(0x245)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x349))[a2_0x4ac895(0x217)](a2_0x4ac895(0x33e))['requiredOption'](a2_0x4ac895(0x170),a2_0x4ac895(0x20a))[a2_0x4ac895(0x343)]('--description\x20<desc>',a2_0x4ac895(0x2eb))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2a6))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2da))[a2_0x4ac895(0x343)](a2_0x4ac895(0x170),'New\x20workspace\x20name')['option'](a2_0x4ac895(0x1a6),a2_0x4ac895(0x2eb))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x264))[a2_0x4ac895(0x217)](a2_0x4ac895(0x32d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1a0),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command']('use\x20<name>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x285))[a2_0x4ac895(0x245)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x4ac895(0x1a7))[a2_0x4ac895(0x217)](a2_0x4ac895(0x22b)),connectionListAction=async _0x5ba5c0=>{const _0x51d3ed=a2_0x4ac895,_0x389422=new ConnectionListCommand(),_0x329e18=program[_0x51d3ed(0x1c3)](),_0x5b586e=await createTDXInstance(_0x329e18),_0x14f90c=await _0x389422[_0x51d3ed(0x339)]({'options':{..._0x329e18,..._0x5ba5c0},'args':[],'tdx':_0x5b586e});process['exit'](_0x14f90c);};connectionCmd[a2_0x4ac895(0x1c4)]('list')[a2_0x4ac895(0x217)]('List\x20all\x20data\x20connections')[a2_0x4ac895(0x245)](connectionListAction),program[a2_0x4ac895(0x1c4)]('connections',{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x10f))[a2_0x4ac895(0x245)](connectionListAction),connectionCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x30e))[a2_0x4ac895(0x217)](a2_0x4ac895(0x195))['action'](async(_0x16f170,_0x5b296e)=>{const _0x26f860=a2_0x4ac895,_0x2104be=new ConnectionShowCommand(),_0xcea66f=program[_0x26f860(0x1c3)](),_0x511caf=await createTDXInstance(_0xcea66f),_0x17b50b=await _0x2104be['run']({'options':{..._0xcea66f,..._0x5b296e},'args':[_0x16f170],'tdx':_0x511caf});process['exit'](_0x17b50b);}),connectionCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x32a))['description'](a2_0x4ac895(0x1be))[a2_0x4ac895(0x245)](async(_0x2e48f3,_0x905dce)=>{const _0x5e9517=a2_0x4ac895,_0x11e321=new ConnectionSchemaCommand(),_0x245733=program[_0x5e9517(0x1c3)](),_0x2a9c03=await createTDXInstance(_0x245733),_0x272b5a=await _0x11e321[_0x5e9517(0x339)]({'options':{..._0x245733,..._0x905dce},'args':[_0x2e48f3],'tdx':_0x2a9c03});process[_0x5e9517(0x2d1)](_0x272b5a);}),connectionCmd[a2_0x4ac895(0x1c4)]('types')[a2_0x4ac895(0x217)](a2_0x4ac895(0x296))[a2_0x4ac895(0x245)](async _0x4ed02e=>{const _0x197cc9=a2_0x4ac895,_0x3d61bf=new ConnectionTypesCommand(),_0x17e100=program[_0x197cc9(0x1c3)](),_0x2335ca=await createTDXInstance(_0x17e100),_0x49764a=await _0x3d61bf[_0x197cc9(0x339)]({'options':{..._0x17e100,..._0x4ed02e},'args':[],'tdx':_0x2335ca});process['exit'](_0x49764a);}),connectionCmd['command']('settings\x20<type>')[a2_0x4ac895(0x217)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')['action'](async(_0x572e57,_0x1a6138)=>{const _0x4d9bbe=a2_0x4ac895,_0x405cf8=new ConnectionSettingsCommand(),_0x2c912b=program[_0x4d9bbe(0x1c3)](),_0x1d12f7=await createTDXInstance(_0x2c912b),_0xdba48e=await _0x405cf8[_0x4d9bbe(0x339)]({'options':{..._0x2c912b,..._0x1a6138},'args':[_0x572e57],'tdx':_0x1d12f7});process[_0x4d9bbe(0x2d1)](_0xdba48e);});const journeyCmd=program['command'](a2_0x4ac895(0x13a))[a2_0x4ac895(0x217)](a2_0x4ac895(0x275)),journeyListAction=async(_0x671c51,_0x2633e9)=>{const _0x3a8e29=a2_0x4ac895,_0x2e2d96=new JourneyListCommand(),_0x139081=program[_0x3a8e29(0x1c3)](),_0x16c0a0=await createTDXInstance(_0x139081),_0x22be17=await _0x2e2d96[_0x3a8e29(0x339)]({'options':{..._0x139081,..._0x2633e9},'args':_0x671c51?[_0x671c51]:[],'tdx':_0x16c0a0});process[_0x3a8e29(0x2d1)](_0x22be17);};journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x12d))[a2_0x4ac895(0x245)](journeyListAction),journeyCmd['command'](a2_0x4ac895(0x222))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2d5))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a1),a2_0x4ac895(0x164))[a2_0x4ac895(0x343)](a2_0x4ac895(0x279),a2_0x4ac895(0x214))[a2_0x4ac895(0x245)](async(_0x37b050,_0x13b51a)=>{const _0x17178e=a2_0x4ac895,_0x15c2dc=new JourneyViewCommand(),_0x5f3df2=program[_0x17178e(0x1c3)](),_0x37d553=await createTDXInstance(_0x5f3df2),_0x4472af=await _0x15c2dc['run']({'options':{..._0x5f3df2,..._0x13b51a},'args':[_0x37b050],'tdx':_0x37d553});process['exit'](_0x4472af);}),journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x262))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1ee))[a2_0x4ac895(0x343)]('--stage\x20<name>',a2_0x4ac895(0x21e))['action'](async(_0x330151,_0x4ed092)=>{const _0x59fe3d=a2_0x4ac895,_0x29e945=new JourneyStatsCommand(),_0x56d365=program[_0x59fe3d(0x1c3)](),_0x2e25be=await createTDXInstance(_0x56d365),_0x59f78a=await _0x29e945[_0x59fe3d(0x339)]({'options':{..._0x56d365,..._0x4ed092},'args':[_0x330151],'tdx':_0x2e25be});process['exit'](_0x59f78a);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x2bd))[a2_0x4ac895(0x245)](async(_0x2d366b,_0x370ce4)=>{const _0x12c26d=a2_0x4ac895,_0x3b0fa1=new JourneyPauseCommand(),_0x4a194a=program[_0x12c26d(0x1c3)](),_0x373100=await createTDXInstance(_0x4a194a),_0x2906d3=await _0x3b0fa1[_0x12c26d(0x339)]({'options':{..._0x4a194a,..._0x370ce4},'args':[_0x2d366b],'tdx':_0x373100});process[_0x12c26d(0x2d1)](_0x2906d3);}),journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1eb))[a2_0x4ac895(0x217)](a2_0x4ac895(0x124))[a2_0x4ac895(0x245)](async(_0x296fac,_0x461c77)=>{const _0x3fe667=a2_0x4ac895,_0x52ba9d=new JourneyResumeCommand(),_0x5e151b=program[_0x3fe667(0x1c3)](),_0x437ed6=await createTDXInstance(_0x5e151b),_0x59e16f=await _0x52ba9d[_0x3fe667(0x339)]({'options':{..._0x5e151b,..._0x461c77},'args':[_0x296fac],'tdx':_0x437ed6});process['exit'](_0x59e16f);}),journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1df))[a2_0x4ac895(0x217)](a2_0x4ac895(0x126))[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x343)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x4ac895(0x245)](async(_0x29b9ef,_0x28c486)=>{const _0xc587bc=a2_0x4ac895,_0x2d9561=new JourneyPullCommand(),_0x4bf010=program['opts'](),_0x393525=await createTDXInstance(_0x4bf010),_0x840e01=await _0x2d9561[_0xc587bc(0x339)]({'options':{..._0x4bf010,..._0x28c486},'args':_0x29b9ef?[_0x29b9ef]:[],'tdx':_0x393525});process[_0xc587bc(0x2d1)](_0x840e01);}),journeyCmd['command'](a2_0x4ac895(0x274))['description'](a2_0x4ac895(0x141))[a2_0x4ac895(0x245)](async(_0x309243,_0x1de98e)=>{const _0x56284d=new JourneyPushCommand(),_0x44029d=program['opts'](),_0x5f0952=await createTDXInstance(_0x44029d),_0x2c65f5=await _0x56284d['run']({'options':{..._0x44029d,..._0x1de98e},'args':_0x309243?[_0x309243]:[],'tdx':_0x5f0952});process['exit'](_0x2c65f5);}),journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1a5))[a2_0x4ac895(0x217)](a2_0x4ac895(0x127))[a2_0x4ac895(0x245)](async(_0x5bd487,_0x25f34a)=>{const _0x3f31c4=a2_0x4ac895,_0x1cbae9=new JourneyValidateCommand(),_0x75efd4=program[_0x3f31c4(0x1c3)](),_0x3754e4=await createTDXInstance(_0x75efd4),_0x155b00=await _0x1cbae9[_0x3f31c4(0x339)]({'options':{..._0x75efd4,..._0x25f34a},'args':_0x5bd487?[_0x5bd487]:[],'tdx':_0x3754e4});process[_0x3f31c4(0x2d1)](_0x155b00);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x11f))[a2_0x4ac895(0x217)]('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x4ac895(0x245)](journeyListAction);const agentSyncCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x30c))[a2_0x4ac895(0x217)]('LLM\x20agent\x20management');agentSyncCmd['command'](a2_0x4ac895(0x350))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1cc))[a2_0x4ac895(0x343)]('-o,\x20--output\x20<dir>','Output\x20directory')[a2_0x4ac895(0x343)](a2_0x4ac895(0x34e),'Overwrite\x20local\x20changes\x20without\x20confirmation')[a2_0x4ac895(0x245)](async(_0x277258,_0xfd9d56,_0x4b3ecd)=>{const _0x49d101=a2_0x4ac895,_0x40b00a=new AgentPullCommand(),_0x14f230=program[_0x49d101(0x1c3)](),_0x40031a=await createTDXInstance(_0x14f230),_0x2c8770=[];if(_0x277258)_0x2c8770[_0x49d101(0x19e)](_0x277258);if(_0xfd9d56)_0x2c8770[_0x49d101(0x19e)](_0xfd9d56);const _0x275301=await _0x40b00a[_0x49d101(0x339)]({'options':{..._0x14f230,..._0x4b3ecd},'args':_0x2c8770,'tdx':_0x40031a});process[_0x49d101(0x2d1)](_0x275301);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x13f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1f3))[a2_0x4ac895(0x343)]('-f,\x20--force',a2_0x4ac895(0x17c))[a2_0x4ac895(0x245)](async(_0x42eab5,_0x33ead5)=>{const _0xbdb285=a2_0x4ac895,_0x3534db=new AgentPushCommand(),_0x2be51c=program['opts'](),_0x3c12c8=await createTDXInstance(_0x2be51c),_0xcd20b1=await _0x3534db['run']({'options':{..._0x2be51c,..._0x33ead5},'args':_0x42eab5?[_0x42eab5]:[],'tdx':_0x3c12c8});process[_0xbdb285(0x2d1)](_0xcd20b1);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2f3))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1ea))['option']('-n,\x20--name\x20<name>',a2_0x4ac895(0x24a))['action'](async(_0x394623,_0x16569f)=>{const _0x52d702=a2_0x4ac895,_0x326c90=new AgentCloneCommand(),_0xbe776d=program['opts'](),_0x2a749d=await createTDXInstance(_0xbe776d),_0x29e448=await _0x326c90[_0x52d702(0x339)]({'options':{..._0xbe776d,..._0x16569f},'args':_0x394623?[_0x394623]:[],'tdx':_0x2a749d});process[_0x52d702(0x2d1)](_0x29e448);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)]('List\x20agents\x20in\x20current\x20project')[a2_0x4ac895(0x245)](llmAgentListAction),agentSyncCmd[a2_0x4ac895(0x1c4)]('show\x20<agent-name>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x182))[a2_0x4ac895(0x245)](async(_0x170d6b,_0x47da08)=>{const _0x23e795=a2_0x4ac895,_0x38bfbd=new LLMAgentShowCommand(),_0x1a06f3=program['opts'](),_0x57275c=await createTDXInstance(_0x1a06f3),_0x2e53d5=await _0x38bfbd['run']({'options':{..._0x1a06f3,..._0x47da08},'args':[_0x170d6b],'tdx':_0x57275c});process[_0x23e795(0x2d1)](_0x2e53d5);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x31d))[a2_0x4ac895(0x217)](a2_0x4ac895(0x289))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b3),'System\x20prompt/instructions\x20(default:\x20empty)')['option'](a2_0x4ac895(0x129),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x4ac895(0x249))[a2_0x4ac895(0x343)](a2_0x4ac895(0x237),a2_0x4ac895(0x2d7))[a2_0x4ac895(0x343)]('--max-tool-iterations\x20<n>',a2_0x4ac895(0x22d),'4')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2fa),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x4ac895(0x251))[a2_0x4ac895(0x245)](async(_0x54261,_0x3b495f)=>{const _0x575be6=a2_0x4ac895,_0x407112=new LLMAgentCreateCommand(),_0x12522b=program[_0x575be6(0x1c3)](),_0x1862c2=await createTDXInstance(_0x12522b),_0x5cd5bd=await _0x407112[_0x575be6(0x339)]({'options':{..._0x12522b,..._0x3b495f},'args':[_0x54261],'tdx':_0x1862c2});process[_0x575be6(0x2d1)](_0x5cd5bd);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x31e))[a2_0x4ac895(0x217)]('Update\x20an\x20existing\x20agent')[a2_0x4ac895(0x343)](a2_0x4ac895(0x128),a2_0x4ac895(0x104))[a2_0x4ac895(0x343)](a2_0x4ac895(0x28e),a2_0x4ac895(0x121))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b9),a2_0x4ac895(0x172))[a2_0x4ac895(0x343)](a2_0x4ac895(0x237),a2_0x4ac895(0x2d7))[a2_0x4ac895(0x245)](async(_0x5c02e6,_0x116965)=>{const _0x2b9fca=a2_0x4ac895,_0x11bf80=new LLMAgentUpdateCommand(),_0x58c92b=program['opts'](),_0x504073=await createTDXInstance(_0x58c92b),_0x4279c9=await _0x11bf80[_0x2b9fca(0x339)]({'options':{..._0x58c92b,..._0x116965},'args':[_0x5c02e6],'tdx':_0x504073});process[_0x2b9fca(0x2d1)](_0x4279c9);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x181))[a2_0x4ac895(0x217)]('Delete\x20an\x20agent')['action'](async(_0x4c615c,_0x3e8c4e)=>{const _0xdbde25=a2_0x4ac895,_0x105150=new LLMAgentDeleteCommand(),_0x169230=program['opts'](),_0x32c3c9=await createTDXInstance(_0x169230),_0x473523=await _0x105150[_0xdbde25(0x339)]({'options':{..._0x169230,..._0x3e8c4e},'args':[_0x4c615c],'tdx':_0x32c3c9});process[_0xdbde25(0x2d1)](_0x473523);});export{program};export function runCLI(){const _0x3f461e=a2_0x4ac895,_0x27beea=!process['argv'][_0x3f461e(0x2bb)](0x2)['length'];showBriefHelp=_0x27beea,program[_0x3f461e(0x171)](process[_0x3f461e(0x257)]),_0x27beea&&program[_0x3f461e(0x24e)](),process[_0x3f461e(0x14a)][_0x3f461e(0x260)]&&process[_0x3f461e(0x257)]['length']>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x3f461e(0x2d4)](_0xeddc1e=>{_0xeddc1e&&displayUpdateNotification(_0xeddc1e);})['catch'](()=>{});}
|
|
1
|
+
const a2_0x3231b5=a2_0x30cc;(function(_0x12cf05,_0xb43542){const _0x1090ef=a2_0x30cc,_0x18af61=_0x12cf05();while(!![]){try{const _0xbb85e4=-parseInt(_0x1090ef(0x300))/0x1+parseInt(_0x1090ef(0x19e))/0x2+parseInt(_0x1090ef(0x1e6))/0x3+-parseInt(_0x1090ef(0x14c))/0x4*(parseInt(_0x1090ef(0x191))/0x5)+-parseInt(_0x1090ef(0x1a5))/0x6+parseInt(_0x1090ef(0x247))/0x7*(-parseInt(_0x1090ef(0x25a))/0x8)+parseInt(_0x1090ef(0x1b7))/0x9*(parseInt(_0x1090ef(0x25d))/0xa);if(_0xbb85e4===_0xb43542)break;else _0x18af61['push'](_0x18af61['shift']());}catch(_0xea235f){_0x18af61['push'](_0x18af61['shift']());}}}(a2_0x57f0,0x79861));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';function a2_0x30cc(_0x3f692e,_0x312498){_0x3f692e=_0x3f692e-0xe3;const _0x57f0bc=a2_0x57f0();let _0x30cc4c=_0x57f0bc[_0x3f692e];return _0x30cc4c;}import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv'][a2_0x3231b5(0x2b3)]('--version')){let versionOutput=a2_0x3231b5(0x155)+currentVersion;buildInfo[a2_0x3231b5(0x311)]&&!currentVersion[a2_0x3231b5(0x2b3)](buildInfo[a2_0x3231b5(0x311)])&&(versionOutput+='\x20('+buildInfo[a2_0x3231b5(0x311)]+')'),buildInfo[a2_0x3231b5(0x1ab)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x3231b5(0x1ab)]),console['log'](versionOutput),process['exit'](0x0);}const program=new Command();let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x3231b5(0x311)])?description+=a2_0x3231b5(0x277)+currentVersion+'\x20('+buildInfo[a2_0x3231b5(0x311)]+')':description+=a2_0x3231b5(0x277)+currentVersion;program[a2_0x3231b5(0x250)](a2_0x3231b5(0x11b))[a2_0x3231b5(0x1ef)](description),program[a2_0x3231b5(0x2fe)]('-C,\x20--directory\x20<path>',a2_0x3231b5(0x2f0))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x248),a2_0x3231b5(0x159))['option'](a2_0x3231b5(0x30b),a2_0x3231b5(0xef),a2_0x3231b5(0x27a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2d3),a2_0x3231b5(0x23f))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x179),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')['option']('--json',a2_0x3231b5(0x264))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25b),a2_0x3231b5(0x30f))['option'](a2_0x3231b5(0x170),a2_0x3231b5(0x328))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x249),a2_0x3231b5(0x116))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1e1),a2_0x3231b5(0x1cb))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x220),a2_0x3231b5(0x2ef),![])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xed),a2_0x3231b5(0x2d7),![])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x19a),a2_0x3231b5(0x131),![])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x178),a2_0x3231b5(0x1d8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1b6),a2_0x3231b5(0x242))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1bd),a2_0x3231b5(0x156),'30')['option']('--dry-run',a2_0x3231b5(0x1ff),![])['option'](a2_0x3231b5(0x2e5),a2_0x3231b5(0x1a2),![])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x18d),a2_0x3231b5(0x14e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x252),a2_0x3231b5(0x204))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1f4),a2_0x3231b5(0x175))[a2_0x3231b5(0x2fe)]('--parent-segment\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x26b),a2_0x3231b5(0x1cd)),program['configureHelp']({'formatHelp':(_0x149151,_0x4b42a9)=>{const _0x331c5f=a2_0x3231b5,_0x41bb30=_0x4b42a9[_0x331c5f(0x1fd)](_0x149151,_0x4b42a9),_0x270972=0x2,_0x3850e1=0x2;function _0x367ef4(_0x2a0809){const _0x3a3f4c=_0x331c5f,_0x4509e3=_0x2a0809;return!!(_0x4509e3[_0x3a3f4c(0x274)]||_0x4509e3[_0x3a3f4c(0x199)]);}function _0x51333d(_0x4ef758,_0xd24b8b){const _0xe1c0cd=_0x331c5f;if(_0xd24b8b){const _0xf3dc2d=''+_0x4ef758[_0xe1c0cd(0x169)](_0x41bb30+_0x3850e1)+_0xd24b8b;return _0xf3dc2d;}return _0x4ef758;}function _0x49a020(_0x4ce763){const _0x137789=_0x331c5f;return _0x4ce763[_0x137789(0x106)]('\x0a')[_0x137789(0x1f5)](/^/gm,'\x20'[_0x137789(0x2ac)](_0x270972));}const _0x5891b7=[];_0x5891b7[_0x331c5f(0x15b)]('Usage:\x20'+_0x4b42a9[_0x331c5f(0x2dc)](_0x149151));const _0x270ff9=_0x4b42a9['commandDescription'](_0x149151);_0x270ff9&&(_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x270ff9));const _0x5ecce7=_0x149151[_0x331c5f(0x335)][_0x331c5f(0x2a3)](_0x1d8ed5=>!_0x367ef4(_0x1d8ed5));if(_0x5ecce7['length']>0x0){if(_0x149151['name']()===_0x331c5f(0x11b)){const _0x3db165=_0x149151[_0x331c5f(0x281)](),_0x4c136=!_0x3db165['noColor']&&process['stdout'][_0x331c5f(0x2a8)],_0x569e81=COMMAND_CATEGORIES,_0x3e8a58=(_0x2de7a5,_0xfcfb93)=>_0x4c136?_0xfcfb93(_0x2de7a5):_0x2de7a5,_0x2a4695=new Map();_0x5ecce7[_0x331c5f(0x206)](_0x47c3fe=>{const _0x20bd32=_0x331c5f;_0x2a4695['set'](_0x47c3fe[_0x20bd32(0x250)](),_0x47c3fe);}),_0x569e81[_0x331c5f(0x206)](_0x432c98=>{const _0x46479a=_0x331c5f,_0x57a6fa=_0x432c98[_0x46479a(0x335)][_0x46479a(0x1b9)](_0x5c60bd=>_0x2a4695[_0x46479a(0x2df)](_0x5c60bd)??[]);if(_0x57a6fa[_0x46479a(0x2b0)]>0x0){_0x5891b7[_0x46479a(0x15b)](''),_0x5891b7[_0x46479a(0x15b)](_0x3e8a58(_0x432c98['name']+':',_0x432c98['colorFn']));const _0x5a6204=_0x57a6fa[_0x46479a(0x18e)](_0x5d166f=>{const _0x248f8e=_0x4b42a9['subcommandTerm'](_0x5d166f),_0x4b414b=_0x4b42a9['subcommandDescription'](_0x5d166f);return _0x51333d(_0x248f8e,_0x4b414b);});_0x5891b7[_0x46479a(0x15b)](_0x49a020(_0x5a6204));}}),_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x331c5f(0x161));}else{const _0x3d6afc=_0x5ecce7[_0x331c5f(0x18e)](_0x538b50=>{const _0x33d9ab=_0x331c5f,_0x170c66=_0x4b42a9[_0x33d9ab(0x1fc)](_0x538b50),_0x269c39=_0x4b42a9[_0x33d9ab(0x294)](_0x538b50);return _0x51333d(_0x170c66,_0x269c39);});_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7['push'](_0x331c5f(0x1de)),_0x5891b7[_0x331c5f(0x15b)](_0x49a020(_0x3d6afc));}}if(showBriefHelp&&_0x149151[_0x331c5f(0x250)]()===_0x331c5f(0x11b))_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x331c5f(0x14b));else{const _0x2b7906=_0x149151[_0x331c5f(0x146)][_0x331c5f(0x2a3)](_0x5519b8=>!_0x367ef4(_0x5519b8));if(_0x2b7906[_0x331c5f(0x2b0)]>0x0){const _0x1fb461=_0x2b7906[_0x331c5f(0x18e)](_0x24a399=>{const _0x34b8a5=_0x331c5f,_0x1ff18c=_0x4b42a9[_0x34b8a5(0x241)](_0x24a399),_0x435405=_0x4b42a9['optionDescription'](_0x24a399);return _0x51333d(_0x1ff18c,_0x435405);});_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x331c5f(0x30c)),_0x5891b7['push'](_0x49a020(_0x1fb461));}}const _0x555227=(_0x149151[_0x331c5f(0x26d)]||[])[_0x331c5f(0x2a3)](_0xdb948f=>!_0x367ef4(_0xdb948f));if(_0x555227[_0x331c5f(0x2b0)]>0x0){const _0x496ac4=_0x555227[_0x331c5f(0x18e)](_0x289cdd=>{const _0x16ec40=_0x331c5f,_0x4dbab8=_0x4b42a9[_0x16ec40(0x141)](_0x289cdd),_0x22e66c=_0x4b42a9[_0x16ec40(0x174)](_0x289cdd);return _0x51333d(_0x4dbab8,_0x22e66c);});_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x331c5f(0x19b)),_0x5891b7[_0x331c5f(0x15b)](_0x49a020(_0x496ac4));}return _0x5891b7['join']('\x0a')+'\x0a';},'subcommandTerm':_0x550784=>{const _0x2b2bfd=a2_0x3231b5,_0xdf3de5=(_0x550784['registeredArguments']||[])['map'](_0x12e98e=>_0x12e98e[_0x2b2bfd(0x2c4)]?'<'+_0x12e98e[_0x2b2bfd(0x250)]()+'>':'['+_0x12e98e[_0x2b2bfd(0x250)]()+']')['join']('\x20'),_0x65c59f=_0x550784['aliases'](),_0x14fbb1=_0x65c59f[_0x2b2bfd(0x2b0)]>0x0?_0x550784[_0x2b2bfd(0x250)]()+',\x20'+_0x65c59f['join'](',\x20'):_0x550784[_0x2b2bfd(0x250)]();return _0xdf3de5?_0x14fbb1+'\x20'+_0xdf3de5:_0x14fbb1;}}),program[a2_0x3231b5(0x132)](a2_0x3231b5(0xf3),_0x377213=>{const _0x11cb44=a2_0x3231b5,_0x23cb16=_0x377213[_0x11cb44(0x281)]();if(_0x23cb16[_0x11cb44(0x25c)]){const _0x2d22fd=resolve(_0x23cb16['directory']),_0xedbd7a=_0x2d22fd!==_0x23cb16[_0x11cb44(0x25c)]?'\x20(resolved\x20to\x20'+_0x2d22fd+')':'';if(!existsSync(_0x2d22fd))throw new SDKError(ErrorCode[_0x11cb44(0x1eb)],_0x11cb44(0x14f)+_0x23cb16[_0x11cb44(0x25c)]+_0xedbd7a,undefined,{'helpText':_0x11cb44(0x255)});const _0x309a54=statSync(_0x2d22fd);if(!_0x309a54[_0x11cb44(0x1a4)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x11cb44(0x1e2)+_0x23cb16['directory']+_0xedbd7a,undefined,{'helpText':_0x11cb44(0x2d1)});process[_0x11cb44(0x1be)](_0x2d22fd);}if(!_0x23cb16[_0x11cb44(0x1b4)]){if(_0x23cb16[_0x11cb44(0x238)])_0x23cb16[_0x11cb44(0x1b4)]=_0x11cb44(0x238);else{if(_0x23cb16[_0x11cb44(0x2dd)])_0x23cb16[_0x11cb44(0x1b4)]=_0x11cb44(0x2dd);else{if(_0x23cb16[_0x11cb44(0x23e)])_0x23cb16[_0x11cb44(0x1b4)]=_0x11cb44(0x23e);else _0x23cb16[_0x11cb44(0x271)]&&(_0x23cb16[_0x11cb44(0x1b4)]=_0x11cb44(0x271));}}}_0x23cb16['in']&&!_0x23cb16[_0x11cb44(0x10c)]&&(_0x23cb16[_0x11cb44(0x10c)]=_0x23cb16['in']);if(_0x23cb16[_0x11cb44(0x24b)])_0x23cb16[_0x11cb44(0x187)]=LogLevel[_0x11cb44(0x2c0)];else{if(_0x23cb16[_0x11cb44(0x1b3)])_0x23cb16['logLevel']=LogLevel['DEBUG'];else _0x23cb16['logLevel']===undefined&&(_0x23cb16[_0x11cb44(0x187)]=LogLevel[_0x11cb44(0x263)]);}});async function createTDXInstance(_0x1753ec){const _0x14adfc=a2_0x3231b5,_0x2685ba=await GlobalContext[_0x14adfc(0x339)](_0x1753ec);return _0x2685ba['injectIntoOptions'](_0x1753ec),TDX[_0x14adfc(0x19c)]({'site':_0x2685ba[_0x14adfc(0x152)],'apiKey':_0x2685ba[_0x14adfc(0x114)],'logLevel':_0x2685ba[_0x14adfc(0x187)],'profile':_0x2685ba[_0x14adfc(0xf0)]});}const databaseCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x10c))[a2_0x3231b5(0x126)]('db')[a2_0x3231b5(0x1ef)]('Database\x20management\x20commands'),databaseListAction=async(_0x41c7db,_0x307511)=>{const _0x2b1adb=a2_0x3231b5,_0x533d81=new DatabasesCommand(),_0x36e3be=program[_0x2b1adb(0x281)](),_0x208d2d=await createTDXInstance(_0x36e3be),_0x426e38=await _0x533d81[_0x2b1adb(0x2ae)]({'options':{..._0x36e3be,..._0x307511},'args':_0x41c7db?[_0x41c7db]:[],'tdx':_0x208d2d});process[_0x2b1adb(0x2de)](_0x426e38);};databaseCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1c6))[a2_0x3231b5(0x330)](databaseListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x284),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x118))['action'](databaseListAction),program[a2_0x3231b5(0x168)]('chat\x20[message...]')[a2_0x3231b5(0x1ef)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x3231b5(0x2fe)]('--agent\x20<ref>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x3231b5(0x2fe)]('--new',a2_0x3231b5(0x256))['action'](async(_0x387454,_0x575dd5)=>{const _0x3f9b38=a2_0x3231b5,_0x5e91b1=new ChatCommand(),_0x1f2a0b=program[_0x3f9b38(0x281)](),_0x79b728=await createTDXInstance(_0x1f2a0b),_0x463446=await _0x5e91b1[_0x3f9b38(0x2ae)]({'options':{..._0x1f2a0b,..._0x575dd5},'args':_0x387454,'tdx':_0x79b728});process['exit'](_0x463446);});const apiCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x2ea))[a2_0x3231b5(0x2b2)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x273),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')['option'](a2_0x3231b5(0x304),a2_0x3231b5(0x142))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1a0),a2_0x3231b5(0x150))[a2_0x3231b5(0x2fe)]('-H,\x20--header\x20<header>',a2_0x3231b5(0x2a0),(_0xd8227b,_0x27522d)=>{return _0x27522d?[..._0x27522d,_0xd8227b]:[_0xd8227b];})[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1c1),a2_0x3231b5(0x1c8),'td')[a2_0x3231b5(0x330)](async(_0x5af8f4,_0x57decd)=>{const _0x496a54=a2_0x3231b5;if(!_0x5af8f4){apiCmd['help']();return;}const _0x5f1454=new ApiCommand(),_0x1e2e05=program[_0x496a54(0x281)](),_0x5df093=await createTDXInstance(_0x1e2e05),_0x1a5b6e=await _0x5f1454[_0x496a54(0x2ae)]({'options':{..._0x1e2e05,..._0x57decd},'args':[_0x5af8f4],'tdx':_0x5df093});process[_0x496a54(0x2de)](_0x1a5b6e);}),tableCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x238))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x16a)),tableListAction=async(_0x5ca3fa,_0x1a1ed5)=>{const _0x209259=a2_0x3231b5,_0x271043=new TablesCommand(),_0x4c584b=program[_0x209259(0x281)](),_0x42de29=await createTDXInstance(_0x4c584b);_0x1a1ed5['in']&&(_0x1a1ed5['database']=_0x1a1ed5['in']);const _0x6bd5b5=await _0x271043['run']({'options':{..._0x4c584b,..._0x1a1ed5},'args':_0x5ca3fa?[_0x5ca3fa]:[],'tdx':_0x42de29});process[_0x209259(0x2de)](_0x6bd5b5);};tableCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x270))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1d5),a2_0x3231b5(0x22a))['option'](a2_0x3231b5(0x21f),a2_0x3231b5(0x175))['action'](tableListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0xe3),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x157))['option'](a2_0x3231b5(0x1d5),a2_0x3231b5(0x22a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21f),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3231b5(0x330)](tableListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x105))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x33b))[a2_0x3231b5(0x2fe)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3231b5(0x2fe)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3231b5(0x330)](async(_0x2ee556,_0x51d08a)=>{const _0x146f15=a2_0x3231b5,_0x2210a5=new ShowCommand(),_0x48ed53=program[_0x146f15(0x281)](),_0x5603b6=await createTDXInstance(_0x48ed53);_0x51d08a['in']&&(_0x51d08a['database']=_0x51d08a['in']);const _0x2083ad=await _0x2210a5[_0x146f15(0x2ae)]({'options':{..._0x48ed53,..._0x51d08a},'args':_0x2ee556?[_0x2ee556]:[],'tdx':_0x5603b6});process[_0x146f15(0x2de)](_0x2083ad);}),program[a2_0x3231b5(0x168)]('describe\x20[table]')[a2_0x3231b5(0x126)](a2_0x3231b5(0x243))[a2_0x3231b5(0x1ef)]('Describe\x20table\x20schema')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1d5),a2_0x3231b5(0x2e2))[a2_0x3231b5(0x2fe)]('--in\x20<database>',a2_0x3231b5(0x175))[a2_0x3231b5(0x330)](async(_0x1f0460,_0x208508)=>{const _0x33e17f=a2_0x3231b5,_0x3bee77=new DescribeCommand(),_0x41112a=program[_0x33e17f(0x281)](),_0x287770=await createTDXInstance(_0x41112a);_0x208508['in']&&(_0x208508['database']=_0x208508['in']);const _0x2a62c9=await _0x3bee77['run']({'options':{..._0x41112a,..._0x208508},'args':_0x1f0460?[_0x1f0460]:[],'tdx':_0x287770});process[_0x33e17f(0x2de)](_0x2a62c9);}),program[a2_0x3231b5(0x168)]('query\x20[sql]')[a2_0x3231b5(0x1ef)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')['option'](a2_0x3231b5(0x1d5),a2_0x3231b5(0x1dc))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21f),a2_0x3231b5(0x175))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2ee),a2_0x3231b5(0x1cf))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1a0),a2_0x3231b5(0x299))[a2_0x3231b5(0x2fe)]('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x3231b5(0x330)](async(_0xcde195,_0x4f609d)=>{const _0x36a99e=a2_0x3231b5,_0x2bf65f=new QueryCommand(),_0x5cb0b6=program[_0x36a99e(0x281)](),_0x1c53fe=await createTDXInstance(_0x5cb0b6);_0x4f609d['in']&&(_0x4f609d['database']=_0x4f609d['in']);const _0x47fc78=await _0x2bf65f[_0x36a99e(0x2ae)]({'options':{..._0x5cb0b6,..._0x4f609d},'args':_0xcde195?[_0xcde195]:[],'tdx':_0x1c53fe});process[_0x36a99e(0x2de)](_0x47fc78);});const segmentCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x177))[a2_0x3231b5(0x126)]('sg')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x280)),segmentListAction=async(_0x3b4c24,_0x316e5c)=>{const _0x3630d0=a2_0x3231b5,_0x30c04c=new SegmentsCommand(),_0x13b165=program[_0x3630d0(0x281)](),_0x1b3dfb=await createTDXInstance(_0x13b165),_0x4720a7=await _0x30c04c['run']({'options':{..._0x13b165,..._0x316e5c},'args':_0x3b4c24?[_0x3b4c24]:[],'tdx':_0x1b3dfb});process[_0x3630d0(0x2de)](_0x4720a7);};segmentCmd[a2_0x3231b5(0x168)]('list\x20[path]')['description'](a2_0x3231b5(0x298))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x194),a2_0x3231b5(0x327))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2f4),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['action'](segmentListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x17d),{'hidden':!![]})['description']('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x194),a2_0x3231b5(0x327))[a2_0x3231b5(0x2fe)]('--max-depth\x20<depth>','Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x3231b5(0x330)](segmentListAction),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x165),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x180))[a2_0x3231b5(0x330)](async(_0x5dc3c2,_0x13d524)=>{const _0x16021a=a2_0x3231b5,_0x1fa5e2=new SegmentUseCommand(),_0x3bef90=program[_0x16021a(0x281)](),_0x19f62f=await createTDXInstance(_0x3bef90),_0x374b94=await _0x1fa5e2[_0x16021a(0x2ae)]({'options':{..._0x3bef90,..._0x13d524},'args':[_0x5dc3c2],'tdx':_0x19f62f});process[_0x16021a(0x2de)](_0x374b94);});const segmentViewAction=async(_0x4e8776,_0x2d1416)=>{const _0x1a06d6=a2_0x3231b5,_0x49edd8=new SegmentViewCommand(),_0x3070b6=program[_0x1a06d6(0x281)](),_0x27cbbc=await createTDXInstance(_0x3070b6),_0x346b79=await _0x49edd8[_0x1a06d6(0x2ae)]({'options':{..._0x3070b6,..._0x2d1416},'args':_0x4e8776?[_0x4e8776]:[],'tdx':_0x27cbbc});process[_0x1a06d6(0x2de)](_0x346b79);};segmentCmd['command']('view\x20[segment_name]')['description'](a2_0x3231b5(0x217))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x181),a2_0x3231b5(0x122))[a2_0x3231b5(0x330)](segmentViewAction),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x18f),{'hidden':!![]})['alias']('describe')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x181),a2_0x3231b5(0x122))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x166))[a2_0x3231b5(0x330)](segmentViewAction),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x192))['description'](a2_0x3231b5(0x1d6))[a2_0x3231b5(0x330)](async(_0x3de96e,_0x516211)=>{const _0x35f51c=a2_0x3231b5,_0x9a5677=new SegmentDescCommand(),_0x5010e6=program['opts'](),_0x3a3677=await createTDXInstance(_0x5010e6),_0x4c0e17=await _0x9a5677['run']({'options':{..._0x5010e6,..._0x516211},'args':_0x3de96e?[_0x3de96e]:[],'tdx':_0x3a3677});process[_0x35f51c(0x2de)](_0x4c0e17);}),segmentCmd['command'](a2_0x3231b5(0x1db))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x202))[a2_0x3231b5(0x330)](async(_0x2ea318,_0x6af6a9)=>{const _0x585521=a2_0x3231b5,_0x51fe5d=new SegmentShowCommand(),_0x5880b4=program[_0x585521(0x281)](),_0x49340b=await createTDXInstance(_0x5880b4),_0xd9a3de=await _0x51fe5d[_0x585521(0x2ae)]({'options':{..._0x5880b4,..._0x6af6a9},'args':_0x2ea318?[_0x2ea318]:[],'tdx':_0x49340b});process['exit'](_0xd9a3de);}),segmentCmd[a2_0x3231b5(0x168)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x315))[a2_0x3231b5(0x330)](async(_0x1787e8,_0x2a0c0a)=>{const _0x336fff=a2_0x3231b5,_0x7de1e0=new SegmentFolderListCommand(),_0x50522b=program[_0x336fff(0x281)](),_0x348c54=await createTDXInstance(_0x50522b),_0x4c94e1=await _0x7de1e0['run']({'options':{..._0x50522b,..._0x2a0c0a},'args':[_0x1787e8],'tdx':_0x348c54});process['exit'](_0x4c94e1);});const folderCmd=segmentCmd[a2_0x3231b5(0x168)]('folder',{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x185));folderCmd[a2_0x3231b5(0x168)]('show\x20<folder_ref>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x310))[a2_0x3231b5(0x330)](async(_0x4ad347,_0x310bd4)=>{const _0x164360=a2_0x3231b5,_0x1710a8=new SegmentFolderShowCommand(),_0x55459f=program[_0x164360(0x281)](),_0x236d4c=await createTDXInstance(_0x55459f),_0x42c017=await _0x1710a8['run']({'options':{..._0x55459f,..._0x310bd4},'args':[_0x4ad347],'tdx':_0x236d4c});process[_0x164360(0x2de)](_0x42c017);}),segmentCmd['command'](a2_0x3231b5(0x275))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xff))[a2_0x3231b5(0x330)](async(_0x29dab4,_0x55efad)=>{const _0x431978=a2_0x3231b5,_0x31f1e7=new SegmentSQLCommand(),_0x1fbbaa=program[_0x431978(0x281)](),_0x235fb1=await createTDXInstance(_0x1fbbaa),_0x2020d6=await _0x31f1e7[_0x431978(0x2ae)]({'options':{..._0x1fbbaa,..._0x55efad},'args':_0x29dab4?[_0x29dab4]:[],'tdx':_0x235fb1});process[_0x431978(0x2de)](_0x2020d6);}),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x20a))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x10f))[a2_0x3231b5(0x330)](async(_0xa95acd,_0x1c57c)=>{const _0x4adb7d=a2_0x3231b5,_0x5cb14b=new SegmentFieldsCommand(),_0x2ba2db=program[_0x4adb7d(0x281)](),_0x8e1b13=await createTDXInstance(_0x2ba2db),_0x1dda2c=await _0x5cb14b['run']({'options':{..._0x2ba2db,..._0x1c57c},'args':_0xa95acd?[_0xa95acd]:[],'tdx':_0x8e1b13});process[_0x4adb7d(0x2de)](_0x1dda2c);}),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2fa))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xf8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x1a2))['option'](a2_0x3231b5(0x24f),a2_0x3231b5(0x305))[a2_0x3231b5(0x330)](async(_0x1b1856,_0x3ecfab)=>{const _0x2f41cc=a2_0x3231b5,_0x58f05b=new SegmentPullCommand(),_0xabc5c6=program[_0x2f41cc(0x281)](),_0x573fd7=await createTDXInstance(_0xabc5c6),_0x3d9743=await _0x58f05b[_0x2f41cc(0x2ae)]({'options':{..._0xabc5c6,..._0x3ecfab},'args':_0x1b1856?[_0x1b1856]:[],'tdx':_0x573fd7});process['exit'](_0x3d9743);}),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1ac))[a2_0x3231b5(0x1ef)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x3231b5(0x2fe)]('-y,\x20--yes',a2_0x3231b5(0x1a2))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x24f),a2_0x3231b5(0x305))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1c7),a2_0x3231b5(0x326))['action'](async(_0x5f200f,_0x58eb35)=>{const _0x272c53=a2_0x3231b5,_0x32ceab=new SegmentPushCommand(),_0x5076f7=program[_0x272c53(0x281)](),_0x3aa505=await createTDXInstance(_0x5076f7),_0x255bf0=await _0x32ceab['run']({'options':{..._0x5076f7,..._0x58eb35},'args':_0x5f200f?[_0x5f200f]:[],'tdx':_0x3aa505});process[_0x272c53(0x2de)](_0x255bf0);}),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x188))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x20b))[a2_0x3231b5(0x330)](async(_0x506e48,_0xe3303)=>{const _0x1aa452=a2_0x3231b5,_0x18b1b1=new SegmentValidateCommand(),_0x5260cd=program['opts'](),_0x3bb998=await createTDXInstance(_0x5260cd),_0x3fb6ab=await _0x18b1b1['run']({'options':{..._0x5260cd,..._0xe3303},'args':_0x506e48?[_0x506e48]:[],'tdx':_0x3bb998});process[_0x1aa452(0x2de)](_0x3fb6ab);}),segmentCmd['command'](a2_0x3231b5(0x306),{'hidden':!![]})['description'](a2_0x3231b5(0x319))['option']('--description\x20<text>',a2_0x3231b5(0x33c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x287),a2_0x3231b5(0x12f))[a2_0x3231b5(0x2fe)]('--rule-file\x20<file>',a2_0x3231b5(0x1c4))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x312),'Folder\x20name\x20for\x20organization')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2ff),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x107),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x10e),a2_0x3231b5(0x293))[a2_0x3231b5(0x330)](async(_0x52785a,_0xb1be89)=>{const _0x482712=a2_0x3231b5,_0x57ee11=new SegmentCreateCommand(),_0x24d2d9=program[_0x482712(0x281)](),_0x160fb2=await createTDXInstance(_0x24d2d9),_0x58e179=await _0x57ee11[_0x482712(0x2ae)]({'options':{..._0x24d2d9,..._0xb1be89},'args':[_0x52785a],'tdx':_0x160fb2});process[_0x482712(0x2de)](_0x58e179);}),segmentCmd[a2_0x3231b5(0x168)]('update\x20<segment_name>',{'hidden':!![]})['description'](a2_0x3231b5(0x31f))[a2_0x3231b5(0x2fe)]('--name\x20<new_name>',a2_0x3231b5(0x12e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1f8),a2_0x3231b5(0x1d3))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x287),a2_0x3231b5(0x1c9))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x26a),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x312),'Move\x20to\x20folder')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2ff),a2_0x3231b5(0x123))[a2_0x3231b5(0x330)](async(_0x43de29,_0x16bf48)=>{const _0x106e1e=a2_0x3231b5,_0x2586e2=new SegmentUpdateCommand(),_0x2eafed=program[_0x106e1e(0x281)](),_0x363227=await createTDXInstance(_0x2eafed),_0x1eee6c=await _0x2586e2[_0x106e1e(0x2ae)]({'options':{..._0x2eafed,..._0x16bf48},'args':[_0x43de29],'tdx':_0x363227});process[_0x106e1e(0x2de)](_0x1eee6c);});const parentCmd=segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1c3),{'hidden':!![]})['description'](a2_0x3231b5(0x209)),parentListAction=async(_0x41dd9e,_0x45bec6)=>{const _0x294324=a2_0x3231b5,_0x134a74=new ParentSegmentListCommand(),_0x516323=program['opts'](),_0x5490f4=await createTDXInstance(_0x516323),_0x322b99=await _0x134a74[_0x294324(0x2ae)]({'options':{..._0x516323,..._0x45bec6},'args':_0x41dd9e?[_0x41dd9e]:[],'tdx':_0x5490f4});process['exit'](_0x322b99);};parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xf7))['action'](parentListAction),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x13a),{'hidden':!![]})[a2_0x3231b5(0x1ef)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x3231b5(0x330)](parentListAction),parentCmd['command'](a2_0x3231b5(0x213))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x140))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x101),a2_0x3231b5(0x2a2))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](async(_0x325870,_0x42bb0a)=>{const _0x217499=a2_0x3231b5,_0xb6c5f0=new ParentSegmentPullCommand(),_0x49cbc6=program[_0x217499(0x281)](),_0x45db04=await createTDXInstance(_0x49cbc6),_0x1d8ddd=await _0xb6c5f0[_0x217499(0x2ae)]({'options':{..._0x49cbc6,..._0x42bb0a},'args':_0x325870?[_0x325870]:[],'tdx':_0x45db04});process[_0x217499(0x2de)](_0x1d8ddd);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0xfb))['description'](a2_0x3231b5(0x1e4))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))['action'](async(_0x30858a,_0x27c507)=>{const _0x4d3141=a2_0x3231b5,_0x3478c2=new ParentSegmentPushCommand(),_0x13149a=program['opts'](),_0x23f21a=await createTDXInstance(_0x13149a),_0x490423=await _0x3478c2[_0x4d3141(0x2ae)]({'options':{..._0x13149a,..._0x27c507},'args':_0x30858a?[_0x30858a]:[],'tdx':_0x23f21a});process[_0x4d3141(0x2de)](_0x490423);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x28a))[a2_0x3231b5(0x1ef)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3231b5(0x2fe)]('--master',a2_0x3231b5(0x108))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xe8),a2_0x3231b5(0xe7))[a2_0x3231b5(0x2fe)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3231b5(0x2fe)]('--enriched',a2_0x3231b5(0x1ca))[a2_0x3231b5(0x2fe)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3231b5(0x257))[a2_0x3231b5(0x330)](async(_0x54ca96,_0x4d1802)=>{const _0x53d07e=a2_0x3231b5,_0xcaefc9=new ParentSegmentValidateCommand(),_0x553325=program[_0x53d07e(0x281)](),_0x58012d=await createTDXInstance(_0x553325),_0x294ce0=await _0xcaefc9[_0x53d07e(0x2ae)]({'options':{..._0x553325,..._0x4d1802},'args':_0x54ca96?[_0x54ca96]:[],'tdx':_0x58012d});process[_0x53d07e(0x2de)](_0x294ce0);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1d9))['description'](a2_0x3231b5(0x27b))[a2_0x3231b5(0x2fe)]('--master',a2_0x3231b5(0x2c3))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xe8),a2_0x3231b5(0x10d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1f2),a2_0x3231b5(0x303))[a2_0x3231b5(0x2fe)]('--enriched',a2_0x3231b5(0x212))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x12d),a2_0x3231b5(0x1b2),a2_0x3231b5(0x257))[a2_0x3231b5(0x330)](async(_0x432d24,_0x54b699)=>{const _0x1feb57=a2_0x3231b5,_0x1f8302=new ParentSegmentPreviewCommand(),_0x5ee3eb=program[_0x1feb57(0x281)](),_0x498d79=await createTDXInstance(_0x5ee3eb),_0x540256=await _0x1f8302[_0x1feb57(0x2ae)]({'options':{..._0x5ee3eb,..._0x54b699},'args':_0x432d24?[_0x432d24]:[],'tdx':_0x498d79});process[_0x1feb57(0x2de)](_0x540256);}),parentCmd['command'](a2_0x3231b5(0x24c))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x137))['option'](a2_0x3231b5(0x2e5),'Skip\x20confirmation\x20prompt')['action'](async(_0x2d50e1,_0x268766)=>{const _0x41597b=a2_0x3231b5,_0xadcc1c=new ParentSegmentRunCommand(),_0x51381a=program[_0x41597b(0x281)](),_0xcbff4a=await createTDXInstance(_0x51381a),_0x58ae9f=await _0xadcc1c['run']({'options':{..._0x51381a,..._0x268766},'args':_0x2d50e1?[_0x2d50e1]:[],'tdx':_0xcbff4a});process[_0x41597b(0x2de)](_0x58ae9f);});const parentSegmentCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0xfc))[a2_0x3231b5(0x126)]('ps')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x336));function a2_0x57f0(){const _0x1c2fef=['Email\x20template\x20management','List\x20all\x20available\x20profiles','--type\x20<api_type>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','parent','Filtering\x20rule\x20from\x20JSON\x20file','attempt:','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--delete','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Limit\x20number\x20of\x20rows','LLM\x20project\x20to\x20use\x20(overrides\x20context)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Trino\x20catalog\x20(default:\x20td)','Resume\x20a\x20paused\x20journey','error','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Updated\x20description','--max-tool-iterations\x20<n>','-d,\x20--database\x20<database>','Show\x20segment\x20schema\x20(column\x20types)','logs','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','preview\x20[file]','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','show\x20[segment_name]','Database\x20to\x20query\x20(default:\x20information_schema)','Overwrite\x20local\x20changes\x20without\x20confirmation','Commands:','--json-columns\x20<cols>','--last','--limit\x20<number>','Path\x20is\x20not\x20a\x20directory:\x20','Workspace\x20management','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','1930773vcGDEh','jobs','Behaviors\x20from\x20JSON\x20file','Submit\x20a\x20job','Include\x20retried\x20attempts\x20(for\x20list)','INVALID_ARGUMENT','download\x20<project-name>\x20[output-dir]','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--attributes\x20<json>','description','setup','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--behavior\x20[name]','Workflow\x20parameter\x20(repeatable)','--in\x20<name>','replace','show\x20<name-or-id>','trino','--description\x20<text>','Show\x20timeline\x20for\x20specific\x20attempt','parent_segment','result\x20<job-id>','subcommandTerm','padWidth','Update\x20a\x20campaign','Preview\x20operation\x20without\x20executing','Parent\x20folder\x20name\x20for\x20nested\x20folders','usage','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','-c,\x20--continue','Database\x20to\x20use\x20(overrides\x20context)','--job-type\x20<type>','forEach','use\x20[name]','List\x20journeys\x20(alias\x20for\x20journey\x20list)','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','fields\x20[parent_name]','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','--enriched','Follow/watch\x20timeline\x20for\x20running\x20attempts','New\x20template\x20name','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','-o,\x20--output\x20<dir>','show\x20<agent-name>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','pull\x20[name]','create\x20<parent_name>\x20<folder_name>','launch\x20<name-or-id>','Delete\x20an\x20agent','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','claude-4.5-sonnet','Timezone\x20(e.g.,\x20America/Los_Angeles)','--to\x20<timestamp>','Agent\x20name','--customer-group\x20<json>','\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','--behaviors-file\x20<file>','--in\x20<database>','--color','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Setup\x20API\x20key\x20authentication\x20interactively','Pause\x20a\x20running\x20journey','list','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','sql\x20[name]','--customer-group-file\x20<file>','\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','resume\x20<name-or-id>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Show\x20agent\x20details','Show\x20workspace\x20details','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','activations\x20<segment_name>','--port\x20<number>','--param\x20<key=value>','LLM\x20agent\x20management','Create\x20a\x20new\x20profile','remove\x20<name>','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Skip\x20confirmation\x20prompt','argv','table','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Launch\x20a\x20campaign','resume\x20<name-or-path>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','isArray','jsonl','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','optionTerm','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','desc','Pull\x20workflow\x20project\x20to\x20local\x20folder','Master\x20table\x20name','--name\x20<new-name>','5222777NTzlEh','-p,\x20--profile\x20<name>','--output\x20<file>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','trace','run\x20[name]','User\x20management\x20commands','Workflow\x20(Digdag)\x20management\x20commands','--dry-run','name','Workspace\x20description','-d,\x20--database\x20<name>','job','Resume\x20from\x20specific\x20task\x20(retry)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Start\x20a\x20new\x20chat\x20session','-1d','campaign','Starter\x20message','8zFSUcq','--jsonl','directory','12588910RhAlOY','--include-stats','--from\x20<timestamp>','Name\x20for\x20the\x20new\x20project\x20(required)','Override\x20project\x20name','--add-behaviors\x20<json>','INFO','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Include\x20retried\x20attempts','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','campaigns\x20[pattern]','update\x20<name>','Customer\x20group\x20from\x20JSON\x20file','--rule-file\x20<file>','--llm-project\x20<name>','Updated\x20schedule\x20option','registeredArguments','Email\x20sender\x20ID\x20for\x20delivery','Include\x20subtasks\x20in\x20tasks\x20output','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','tsv','retry\x20<session-id>','-X,\x20--method\x20<method>','_hidden','sql\x20[segment_name]','--full',',\x20version\x20','port','Set\x20a\x20profile\x20configuration\x20value','us01','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','projects\x20[pattern]','--database\x20<db>','Template\x20name','slice','CDP\x20segment\x20management\x20commands','opts','Include\x20execution\x20statistics','Output\x20folder\x20(default:\x20{project_name}.llm)','databases\x20[pattern]','--model\x20<name>','create\x20<name>','--rule\x20<json>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--start-at\x20<datetime>','validate\x20[file]','then','Add\x20attributes\x20as\x20JSON\x20string','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\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#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a','--yes','auth','--timezone\x20<tz>','workflow','--limit\x20<n>','Skip\x20population\x20counting','subcommandDescription','--email-sender-id\x20<id>','--temperature\x20<n>','Output\x20directory','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Read\x20SQL\x20query\x20from\x20file','--attributes-file\x20<file>','Master\x20database\x20name','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','timeline\x20[project.workflow]','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Output\x20file\x20path\x20(default:\x20<name>.yml)','filter','Show\x20the\x20most\x20recent\x20chat','Create\x20a\x20workspace','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','delete\x20<agent-name>','isTTY','Delete\x20an\x20LLM\x20project','Resume\x20a\x20paused\x20campaign','Temperature\x20(0.0-2.0,\x20default:\x200.7)','repeat','Preview\x20changes\x20without\x20pushing','run','validate\x20[name]','length','profiles','summary','includes','--resume-from\x20<task>','--project\x20<name>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20jobs','Parent\x20segment\x20description','set\x20<key=value>','Output\x20file\x20path','project','--plaintext\x20<text>','Unknown\x20action:\x20','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','-f,\x20--force','TRACE','Project\x20description','templates\x20[pattern]','Show\x20master\x20table\x20sample\x20data','required','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','list\x20[pattern]','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','--workspace\x20<name>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Create\x20a\x20new\x20campaign','System\x20prompt/instructions\x20(default:\x20empty)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','New\x20workspace\x20name','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Clear\x20workflow\x20project\x20context','--session-time\x20<time>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--format\x20<format>','--type\x20<type>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--add-attributes-file\x20<file>','clone\x20[source]','--starter-message\x20<text>','--params\x20<json>','commandUsage','json','exit','get','journeys\x20[pattern]','--database\x20<name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','HTML\x20template\x20content','Plaintext\x20template\x20content','-y,\x20--yes','Delete\x20an\x20email\x20template','Show\x20job\x20details','sonnet','show\x20<name>','api\x20[endpoint]','Delete\x20a\x20campaign','push\x20[name]','Pull\x20specific\x20revision\x20(default:\x20latest)','--catalog\x20<catalog>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Change\x20to\x20directory\x20before\x20executing\x20command','--table\x20<table>','--no-proxy','restore\x20<folder>','--max-depth\x20<depth>','requiredOption','Workflow\x20attempt\x20management','after','Attributes\x20from\x20JSON\x20file','engage','pull\x20[parent_or_file]','backup\x20<name>','List\x20all\x20data\x20connections','Skip\x20validation\x20of\x20.dig\x20files','option','--kind\x20<type>','655134GDXctl','--behaviors\x20<json>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--data\x20<data>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','create\x20<segment_name>','retry','show\x20<job-id>','Email\x20subject\x20template','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','--site\x20<site>','Options:','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','gitRevision','--folder\x20<name>','Add\x20behaviors\x20from\x20JSON\x20file','view\x20[name]','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','session','Folder\x20description','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','\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','stats\x20<name-or-path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--master','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Kill\x20a\x20job','Output\x20as\x20JSON\x20Lines','Get\x20job\x20results','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Read\x20query\x20from\x20file','duplicate\x20<name-or-id>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Resume\x20a\x20conversation\x20(shows\x20selector)','Show\x20connection\x20details\x20by\x20name','agents\x20[pattern]','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Interactive\x20chat\x20selector','Export\x20journey(s)\x20as\x20YAML\x20files','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','action','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','argument','Campaign\x20type\x20(email\x20or\x20push)','workspaces\x20[pattern]','commands','Parent\x20segment\x20management','--session-id\x20<id>','delete\x20<name-or-id>','createAsync','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Segment\x20description','tables\x20[pattern]','--schedule-type\x20<type>','outputHelp','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--attribute\x20[name]','Validate\x20journey\x20YAML\x20files\x20locally','create\x20[name]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Add\x20attributes\x20from\x20JSON\x20file','--no-color','update\x20<agent-name>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','profile','journey','chats','preAction','sessions\x20[project]','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Pull\x20child\x20segments\x20to\x20YAML\x20files','-u,\x20--use','--prompt\x20<text>','push\x20[file]','parent-segment','workflows\x20[project]','-r,\x20--resume','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','-o,\x20--output\x20<file>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','New\x20campaign\x20name','list\x20[project]','show\x20[table]','join','--invisible','Show\x20only\x20master\x20table\x20validation','--include-subtasks','addHelpText','Output\x20as\x20JSON','database','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--no-count-population','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Editor\x20type','--subject\x20<subject>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','apiKey','--agent\x20<name>','Save\x20output\x20to\x20file','Force\x20retry\x20even\x20if\x20not\x20failed','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Agent\x20description','4000','tdx','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--skip-validation','Campaign\x20name','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Pause\x20a\x20campaign','Set\x20session\x20profile','Open\x20segment\x20in\x20web\x20browser','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Create\x20an\x20email\x20template','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','alias','stderr','Agent\x20prompt/instructions','List\x20journeys\x20in\x20current\x20context','Attempt\x20ID','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--interval\x20<range>','New\x20segment\x20name','Filtering\x20rule\x20as\x20JSON\x20string','--segment\x20<path>','Enable\x20verbose\x20logging','hook','-o,\x20--output\x20<folder>','Data\x20connection\x20management\x20(for\x20activations/exports)','Campaign\x20description','update\x20<name-or-id>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','fields\x20[name]','-n,\x20--name\x20<name>','parents\x20[pattern]','connections','claude\x20[args...]','Continue\x20most\x20recent\x20conversation','clone\x20[source-dir]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','argumentTerm','Request\x20body\x20as\x20JSON\x20string','pause\x20<name-or-id>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--clear','options','Push\x20without\x20confirmation','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','--from-task\x20<task>','delete\x20<name>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','266892DZWjCc','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Directory\x20does\x20not\x20exist:\x20','Read\x20request\x20body\x20from\x20file','--json','site','--parent-folder\x20<name>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','tdx\x20','Set\x20operation\x20timeout\x20in\x20seconds','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','use\x20[project]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','push','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--description\x20<desc>','Database\x20name\x20(default:\x20information_schema)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','attempt','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Show\x20campaign\x20details','Duplicate\x20a\x20campaign','Delete\x20a\x20workspace','use\x20<path>','Show\x20segment\x20details\x20(alias\x20for\x20view)','status','command','padEnd','Table\x20management\x20commands','Job\x20management\x20commands','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','delete\x20<args...>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','use\x20<name>','--tsv','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','argumentDescription','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Custom\x20revision\x20name\x20(default:\x20timestamp)','segment','--debug','--table','Updated\x20timezone','Clear\x20session\x20context','--follow','segments\x20[path]','Open\x20parent\x20segment\x20in\x20web\x20browser','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','-w,\x20--web','Create\x20segment\x20folder','Open\x20journey\x20in\x20web\x20browser','run\x20[workflow]','[DEPRECATED]\x20Segment\x20folder\x20management','models','logLevel','validate\x20[target]','--schedule-option\x20<value>','upload\x20[project-name-or-dir]','pause\x20<name-or-path>','Show\x20journey\x20statistics','--session\x20<id>','map','info\x20[segment_name]','[action]','5Labfaz','desc\x20[segment_name]','--include-retried','-r,\x20--recursive','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--status\x20<status>','--name\x20<name>','hidden','-v,\x20--verbose','Arguments:','create','Workflow\x20project\x20management','1117388XqhOHz','--add-behaviors-file\x20<file>','-f,\x20--file\x20<path>','user','Skip\x20confirmation\x20prompts','--system-prompt\x20<text>','isDirectory','2972682gvlvFM','Manage\x20workflow\x20project\x20secrets','view\x20<name-or-path>','Workspace\x20name\x20(required)','attempts\x20[project]','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','buildTime','push\x20[parent_or_file]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--add-attributes\x20<json>','--html\x20<html>','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','--revision\x20<revision>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','debug','format','Workspace\x20name','--trace','9RLDyJz','End\x20time\x20filter\x20(ISO\x208601\x20format)','flatMap','tasks','Update\x20an\x20existing\x20agent','Add\x20behaviors\x20as\x20JSON\x20string','--timeout\x20<seconds>','chdir'];a2_0x57f0=function(){return _0x1c2fef;};return a2_0x57f0();}parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xf7))[a2_0x3231b5(0x330)](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xeb))[a2_0x3231b5(0x2fe)]('-o,\x20--output\x20<file>',a2_0x3231b5(0x2ba))['option'](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))['option'](a2_0x3231b5(0xf9),a2_0x3231b5(0x2be))['action'](async(_0x5d29e4,_0x592f01)=>{const _0x1c0b56=a2_0x3231b5,_0x364173=new ParentSegmentPullCommand(),_0x34d9fe=program[_0x1c0b56(0x281)](),_0x465e93=await createTDXInstance(_0x34d9fe),_0x110ca3=await _0x364173['run']({'options':{..._0x34d9fe,..._0x592f01},'args':_0x5d29e4?[_0x5d29e4]:[],'tdx':_0x465e93});process[_0x1c0b56(0x2de)](_0x110ca3);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2ec))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2a6))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](async(_0x495da7,_0xee945c)=>{const _0x34b131=a2_0x3231b5,_0x26a2c0=new ParentSegmentPushCommand(),_0x1aadeb=program['opts'](),_0x4580a7=await createTDXInstance(_0x1aadeb),_0x251eae=await _0x26a2c0['run']({'options':{..._0x1aadeb,..._0xee945c},'args':_0x495da7?[_0x495da7]:[],'tdx':_0x4580a7});process[_0x34b131(0x2de)](_0x251eae);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2af))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x22b))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x31d),a2_0x3231b5(0x108))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xe8),a2_0x3231b5(0xe7))['option'](a2_0x3231b5(0x1f2),a2_0x3231b5(0x15c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x20c),a2_0x3231b5(0x1ca))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x12d),a2_0x3231b5(0x1b2),'-1d')['action'](async(_0xf7b7e1,_0xd29003)=>{const _0x4f2f2c=a2_0x3231b5,_0x33cfec=new ParentSegmentValidateCommand(),_0x31aa22=program['opts'](),_0x5ce8d2=await createTDXInstance(_0x31aa22),_0x1a912d=await _0x33cfec[_0x4f2f2c(0x2ae)]({'options':{..._0x31aa22,..._0xd29003},'args':_0xf7b7e1?[_0xf7b7e1]:[],'tdx':_0x5ce8d2});process[_0x4f2f2c(0x2de)](_0x1a912d);}),parentSegmentCmd[a2_0x3231b5(0x168)]('preview\x20[name]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x27b))['option'](a2_0x3231b5(0x31d),a2_0x3231b5(0x2c3))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xe8),a2_0x3231b5(0x10d))['option'](a2_0x3231b5(0x1f2),a2_0x3231b5(0x303))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x20c),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x12d),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3231b5(0x257))['action'](async(_0x37012f,_0x40904b)=>{const _0x542c74=a2_0x3231b5,_0x387a17=new ParentSegmentPreviewCommand(),_0x5ef9b1=program['opts'](),_0x418f23=await createTDXInstance(_0x5ef9b1),_0x2c6b11=await _0x387a17['run']({'options':{..._0x5ef9b1,..._0x40904b},'args':_0x37012f?[_0x37012f]:[],'tdx':_0x418f23});process[_0x542c74(0x2de)](_0x2c6b11);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x24c))['description'](a2_0x3231b5(0x137))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](async(_0x4068fa,_0x56ac0b)=>{const _0xed5c52=a2_0x3231b5,_0x282b36=new ParentSegmentRunCommand(),_0x5c2814=program[_0xed5c52(0x281)](),_0x4c1cbf=await createTDXInstance(_0x5c2814),_0x3c5fa5=await _0x282b36['run']({'options':{..._0x5c2814,..._0x56ac0b},'args':_0x4068fa?[_0x4068fa]:[],'tdx':_0x4c1cbf});process[_0xed5c52(0x2de)](_0x3c5fa5);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x138))['description'](a2_0x3231b5(0x239))['option'](a2_0x3231b5(0x151),a2_0x3231b5(0x10b))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25b),a2_0x3231b5(0x321))[a2_0x3231b5(0x330)](async(_0x2d6add,_0x1625dd)=>{const _0x32e0e5=a2_0x3231b5,_0x1f9ea3=new ParentSegmentFieldsCommand(),_0x4d91aa=program['opts'](),_0x46d64b=await createTDXInstance(_0x4d91aa),_0x3e198c=await _0x1f9ea3[_0x32e0e5(0x2ae)]({'options':{..._0x4d91aa,..._0x1625dd},'args':_0x2d6add?[_0x2d6add]:[],'tdx':_0x46d64b});process[_0x32e0e5(0x2de)](_0x3e198c);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x314))[a2_0x3231b5(0x1ef)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x181),a2_0x3231b5(0x17e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x151),a2_0x3231b5(0x10b))['option'](a2_0x3231b5(0x25b),a2_0x3231b5(0x321))[a2_0x3231b5(0x330)](async(_0x1cbc3c,_0x2e367b)=>{const _0x37b2e9=a2_0x3231b5,_0x2b28e7=new ParentSegmentViewCommand(),_0x5498ae=program[_0x37b2e9(0x281)](),_0x2cd985=await createTDXInstance(_0x5498ae),_0x206c12=await _0x2b28e7[_0x37b2e9(0x2ae)]({'options':{..._0x5498ae,..._0x2e367b},'args':_0x1cbc3c?[_0x1cbc3c]:[],'tdx':_0x2cd985});process['exit'](_0x206c12);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x331))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x151),a2_0x3231b5(0x10b))[a2_0x3231b5(0x2fe)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x3231b5(0x330)](async(_0x46a82a,_0x4b9512)=>{const _0x4384b8=a2_0x3231b5,_0x3689e0=new ParentSegmentDescCommand(),_0x3e8504=program[_0x4384b8(0x281)](),_0x29146f=await createTDXInstance(_0x3e8504),_0x6f15d4=await _0x3689e0[_0x4384b8(0x2ae)]({'options':{..._0x3e8504,..._0x4b9512},'args':_0x46a82a?[_0x46a82a]:[],'tdx':_0x29146f});process[_0x4384b8(0x2de)](_0x6f15d4);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x226))[a2_0x3231b5(0x1ef)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x151),a2_0x3231b5(0x10b))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25b),a2_0x3231b5(0x321))[a2_0x3231b5(0x330)](async(_0x2d1fd5,_0x3d0ccb)=>{const _0x37ad2b=a2_0x3231b5,_0x3f5b47=new ParentSegmentSQLCommand(),_0x4ae177=program['opts'](),_0x2822bb=await createTDXInstance(_0x4ae177),_0x4c8e79=await _0x3f5b47[_0x37ad2b(0x2ae)]({'options':{..._0x4ae177,..._0x3d0ccb},'args':_0x2d1fd5?[_0x2d1fd5]:[],'tdx':_0x2822bb});process[_0x37ad2b(0x2de)](_0x4c8e79);}),parentSegmentCmd[a2_0x3231b5(0x168)]('show\x20[name]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x29c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x292),a2_0x3231b5(0x1cc))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x151),'Output\x20as\x20JSON')[a2_0x3231b5(0x2fe)]('--jsonl','Output\x20as\x20JSON\x20Lines')['action'](async(_0xafacfb,_0x2f585f)=>{const _0x8e2c1c=a2_0x3231b5,_0x44dcd8=new ParentSegmentShowCommand(),_0x401161=program['opts'](),_0x333484=await createTDXInstance(_0x401161),_0x4b1e9f=await _0x44dcd8[_0x8e2c1c(0x2ae)]({'options':{..._0x401161,..._0x2f585f},'args':_0xafacfb?[_0xafacfb]:[],'tdx':_0x333484});process[_0x8e2c1c(0x2de)](_0x4b1e9f);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x207))[a2_0x3231b5(0x1ef)]('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x3231b5(0x330)](async(_0x6dd9b9,_0x5dc792)=>{const _0x177319=a2_0x3231b5,_0x15d44e=new UseCommand(),_0x3894ed=program[_0x177319(0x281)](),_0x12b247=_0x6dd9b9?[_0x177319(0x1fa),_0x6dd9b9]:[],_0x2a4536=await _0x15d44e[_0x177319(0x2ae)]({'options':{..._0x3894ed,..._0x5dc792},'args':_0x12b247,'tdx':null});process['exit'](_0x2a4536);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x286))['description'](a2_0x3231b5(0x2b6))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x27d),a2_0x3231b5(0x29b))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x2f1),a2_0x3231b5(0x245))['option'](a2_0x3231b5(0x1f8),a2_0x3231b5(0x2b8))[a2_0x3231b5(0x2fe)]('--schedule-type\x20<type>',a2_0x3231b5(0x33a))['option'](a2_0x3231b5(0x189),a2_0x3231b5(0x30d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x290),a2_0x3231b5(0x219))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1ee),'Attributes\x20as\x20JSON\x20string')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x29a),a2_0x3231b5(0x2f8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x301),'Behaviors\x20as\x20JSON\x20string')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21e),a2_0x3231b5(0x1e8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21c),'Customer\x20group\x20as\x20JSON\x20string')['option'](a2_0x3231b5(0x227),a2_0x3231b5(0x269))[a2_0x3231b5(0x330)](async(_0x3f714c,_0x4cf0c4)=>{const _0x27aee7=a2_0x3231b5,_0xe880f2=new ParentSegmentCreateCommand(),_0x273de4=program[_0x27aee7(0x281)](),_0x1dbcad=await createTDXInstance(_0x273de4),_0x58caf6=await _0xe880f2[_0x27aee7(0x2ae)]({'options':{..._0x273de4,..._0x4cf0c4},'args':[_0x3f714c],'tdx':_0x1dbcad});process['exit'](_0x58caf6);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x268))[a2_0x3231b5(0x1ef)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['option'](a2_0x3231b5(0x1f8),a2_0x3231b5(0x1d3))['option'](a2_0x3231b5(0xe4),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option']('--schedule-option\x20<value>',a2_0x3231b5(0x26c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x290),a2_0x3231b5(0x17a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1ae),a2_0x3231b5(0x28c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2d8),a2_0x3231b5(0xec))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x262),a2_0x3231b5(0x1bc))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x19f),a2_0x3231b5(0x313))[a2_0x3231b5(0x330)](async(_0x57d794,_0x150f9e)=>{const _0x775a56=a2_0x3231b5,_0x5b30fc=new ParentSegmentUpdateCommand(),_0x132146=program[_0x775a56(0x281)](),_0x5f7adc=await createTDXInstance(_0x132146),_0x36199a=await _0x5b30fc[_0x775a56(0x2ae)]({'options':{..._0x132146,..._0x150f9e},'args':[_0x57d794],'tdx':_0x5f7adc});process[_0x775a56(0x2de)](_0x36199a);}),folderCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x214))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x182))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1f8),a2_0x3231b5(0x317))['option'](a2_0x3231b5(0x153),a2_0x3231b5(0x200))[a2_0x3231b5(0x330)](async(_0x4f9359,_0x3e0255,_0x137ac6)=>{const _0x3c10c2=a2_0x3231b5,_0x292a85=new SegmentFolderCreateCommand(),_0xef8828=program[_0x3c10c2(0x281)](),_0x3ede23=await createTDXInstance(_0xef8828),_0x2c3b74=await _0x292a85[_0x3c10c2(0x2ae)]({'options':{..._0xef8828,..._0x137ac6},'args':[_0x4f9359,_0x3e0255],'tdx':_0x3ede23});process[_0x3c10c2(0x2de)](_0x2c3b74);}),program['command'](a2_0x3231b5(0x22f))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x15f))[a2_0x3231b5(0x330)](async(_0x519942,_0x451544)=>{const _0xe0a1ed=a2_0x3231b5,_0xfd4350=new ActivationsCommand(),_0x331414=program['opts'](),_0x5dd2db=await createTDXInstance(_0x331414),_0x31ac98=await _0xfd4350[_0xe0a1ed(0x2ae)]({'options':{..._0x331414,..._0x451544},'args':[_0x519942],'tdx':_0x5dd2db});process['exit'](_0x31ac98);});const workflowCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x291))[a2_0x3231b5(0x126)]('wf')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x24e)),wfProjectCmd=workflowCmd['command']('project')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x19d)),wfProjectListAction=async(_0x1c3e13,_0x139343)=>{const _0x1ae4d8=a2_0x3231b5,_0x12649c=new WorkflowProjectsCommand(),_0x5180b1=program['opts'](),_0x2905c8=await createTDXInstance(_0x5180b1),_0x25a20c=await _0x12649c[_0x1ae4d8(0x2ae)]({'options':{..._0x5180b1,..._0x139343},'args':_0x1c3e13?[_0x1c3e13]:[],'tdx':_0x2905c8});process[_0x1ae4d8(0x2de)](_0x25a20c);};wfProjectCmd[a2_0x3231b5(0x168)]('list\x20[pattern]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x288))[a2_0x3231b5(0x330)](wfProjectListAction),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x27c))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1da))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x435905,_0x20d004)=>{const _0x474517=a2_0x3231b5,_0x29154c=new WorkflowWorkflowsCommand(),_0x2921ad=program[_0x474517(0x281)](),_0x173824=await createTDXInstance(_0x2921ad),_0x548a2f=await _0x29154c['run']({'options':{..._0x2921ad,..._0x20d004},'args':_0x435905?[_0x435905]:[],'tdx':_0x173824});process[_0x474517(0x2de)](_0x548a2f);};workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0xfd))['description']('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x3231b5(0x330)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x3231b5(0x316))['description']('Workflow\x20session\x20management'),wfSessionListAction=async(_0xbf8c50,_0x422930)=>{const _0x24f82a=a2_0x3231b5,_0x4e9c85=new WorkflowSessionsCommand(),_0x2c238f=program[_0x24f82a(0x281)](),_0x2f5d7d=await createTDXInstance(_0x2c238f),_0x4e34c8=await _0x4e9c85[_0x24f82a(0x2ae)]({'options':{..._0x2c238f,..._0x422930},'args':_0xbf8c50?[_0xbf8c50]:[],'tdx':_0x2f5d7d});process[_0x24f82a(0x2de)](_0x4e34c8);};wfSessionCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x104))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x15a))['option'](a2_0x3231b5(0x197),a2_0x3231b5(0x323))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25f),a2_0x3231b5(0x100))[a2_0x3231b5(0x2fe)]('--to\x20<timestamp>',a2_0x3231b5(0x1b8))['action'](wfSessionListAction),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0xf4))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2a1))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x197),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25f),a2_0x3231b5(0x100))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21a),a2_0x3231b5(0x1b8))[a2_0x3231b5(0x330)](wfSessionListAction);const wfAttemptListAction=async(_0x4c25ca,_0x4fb52e)=>{const _0x126a10=a2_0x3231b5,_0x2a13dc=new WorkflowAttemptsCommand(),_0x2a2cf2=program['opts'](),_0xd05bae=await createTDXInstance(_0x2a2cf2),_0x48c903=await _0x2a13dc[_0x126a10(0x2ae)]({'options':{..._0x2a2cf2,..._0x4fb52e},'args':_0x4c25ca?[_0x4c25ca]:[],'tdx':_0xd05bae});process[_0x126a10(0x2de)](_0x48c903);},attemptCmd=workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x160))['description'](a2_0x3231b5(0x2f6))[a2_0x3231b5(0x332)]('[attempt-id]',a2_0x3231b5(0x12a))[a2_0x3231b5(0x332)](a2_0x3231b5(0x190),a2_0x3231b5(0x13f))[a2_0x3231b5(0x332)]('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x109),a2_0x3231b5(0x26f))[a2_0x3231b5(0x2fe)]('--reason\x20<text>','Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x3231b5(0x2b4),a2_0x3231b5(0x254))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2db),a2_0x3231b5(0x148))[a2_0x3231b5(0x2fe)]('--force',a2_0x3231b5(0x117))['option'](a2_0x3231b5(0x193),a2_0x3231b5(0x1ea))[a2_0x3231b5(0x330)](async(_0x450c78,_0x22afb3,_0x4fb7c2,_0x4b3ab8)=>{const _0x56d5d4=a2_0x3231b5;if(_0x450c78==='list'){await wfAttemptListAction(_0x22afb3,_0x4b3ab8);return;}if(!_0x450c78){attemptCmd['help']();return;}const _0x10bf66=program[_0x56d5d4(0x281)](),_0x1142d3=await createTDXInstance(_0x10bf66);let _0xad674a=0x0;if(!_0x22afb3){const _0x5623ce=new WorkflowAttemptCommand();_0xad674a=await _0x5623ce[_0x56d5d4(0x2ae)]({'options':{..._0x10bf66,..._0x4b3ab8},'args':[_0x450c78],'tdx':_0x1142d3});}else{if(_0x22afb3===_0x56d5d4(0x1d7)){const _0x183caf=new WorkflowLogsCommand();_0xad674a=await _0x183caf['run']({'options':{..._0x10bf66,..._0x4b3ab8},'args':_0x4fb7c2?[_0x450c78,_0x4fb7c2]:[_0x450c78],'tdx':_0x1142d3});}else{if(_0x22afb3===_0x56d5d4(0x1ba)){const _0xe75d7a=new WorkflowTasksCommand();_0xad674a=await _0xe75d7a[_0x56d5d4(0x2ae)]({'options':{..._0x10bf66,..._0x4b3ab8},'args':[_0x450c78],'tdx':_0x1142d3});}else{if(_0x22afb3==='kill'){const _0x371937=new WorkflowKillCommand();_0xad674a=await _0x371937[_0x56d5d4(0x2ae)]({'options':{..._0x10bf66,..._0x4b3ab8},'args':[_0x450c78],'tdx':_0x1142d3});}else{if(_0x22afb3===_0x56d5d4(0x307)){const _0x2f2dc2=new WorkflowRetryCommand();_0xad674a=await _0x2f2dc2['run']({'options':{..._0x10bf66,..._0x4b3ab8},'args':[_0x56d5d4(0x1c5)+_0x450c78],'tdx':_0x1142d3});}else console['error'](_0x56d5d4(0x2bd)+_0x22afb3),console[_0x56d5d4(0x1d1)](_0x56d5d4(0x11c)),_0xad674a=0x1;}}}}process['exit'](_0xad674a);});attemptCmd['command']('list\x20[project]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1ce))['option'](a2_0x3231b5(0x193),a2_0x3231b5(0x265))[a2_0x3231b5(0x330)](wfAttemptListAction),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1a9))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x16e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x193),'Include\x20retried\x20attempts')[a2_0x3231b5(0x330)](wfAttemptListAction),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x29d))['description'](a2_0x3231b5(0x1aa))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x17c),a2_0x3231b5(0x20d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x337),a2_0x3231b5(0x16c))[a2_0x3231b5(0x2fe)]('--attempt-id\x20<id>',a2_0x3231b5(0x1f9))[a2_0x3231b5(0x330)](async(_0x2c5a5a,_0x142370)=>{const _0x4abb2a=a2_0x3231b5,_0x45d490=new WorkflowTimelineCommand(),_0x925696=program['opts'](),_0x5647ac=await createTDXInstance(_0x925696),_0x497199=await _0x45d490[_0x4abb2a(0x2ae)]({'options':{..._0x925696,..._0x142370},'args':_0x2c5a5a?[_0x2c5a5a]:[],'tdx':_0x5647ac});process[_0x4abb2a(0x2de)](_0x497199);}),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x272))['description'](a2_0x3231b5(0x1d2))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x149),'Resume\x20from\x20specific\x20task')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2db),a2_0x3231b5(0x2cc))[a2_0x3231b5(0x330)](async(_0x49ad95,_0x59e781)=>{const _0x5c8a09=a2_0x3231b5,_0x275aa9=new WorkflowRetryCommand(),_0x2283a3=program[_0x5c8a09(0x281)](),_0x4852dc=await createTDXInstance(_0x2283a3),_0x20a11d=await _0x275aa9[_0x5c8a09(0x2ae)]({'options':{..._0x2283a3,..._0x59e781},'args':[_0x49ad95],'tdx':_0x4852dc});process[_0x5c8a09(0x2de)](_0x20a11d);}),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x184))['description'](a2_0x3231b5(0x240))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x231),a2_0x3231b5(0x1f3),(_0xb87226,_0x25f159=[])=>[..._0x25f159,_0xb87226],[])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2d0),a2_0x3231b5(0x32c))[a2_0x3231b5(0x330)](async(_0x505ec6,_0x528806)=>{const _0x2443a2=a2_0x3231b5,_0x48e05c=new WorkflowRunCommand(),_0x120b17=program[_0x2443a2(0x281)](),_0x4cb2f2=await createTDXInstance(_0x120b17),_0x432aca=await _0x48e05c[_0x2443a2(0x2ae)]({'options':{..._0x120b17,..._0x528806},'args':_0x505ec6?[_0x505ec6]:[],'tdx':_0x4cb2f2});process['exit'](_0x432aca);}),workflowCmd['command'](a2_0x3231b5(0x1ec))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2ce))[a2_0x3231b5(0x2fe)]('--revision\x20<revision>',a2_0x3231b5(0x144))[a2_0x3231b5(0x330)](async(_0x59472e,_0x5170b8,_0xdfe026)=>{const _0x2bbad5=a2_0x3231b5,_0xcfc25e=new WorkflowDownloadCommand(),_0x15db0e=program[_0x2bbad5(0x281)](),_0x57d9fc=await createTDXInstance(_0x15db0e),_0x1bb8e1=await _0xcfc25e[_0x2bbad5(0x2ae)]({'options':{..._0x15db0e,..._0xdfe026},'args':[_0x59472e,_0x5170b8||'.'],'tdx':_0x57d9fc});process['exit'](_0x1bb8e1);}),workflowCmd['command']('pull\x20<project>\x20[target-dir]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x244))['option'](a2_0x3231b5(0x1b1),a2_0x3231b5(0x2ed))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x24f),'Preview\x20changes\x20without\x20writing\x20files')[a2_0x3231b5(0x2fe)]('-y,\x20--yes',a2_0x3231b5(0x236))['action'](async(_0x22c22e,_0x33c3b5,_0x46323a)=>{const _0x4ae4a1=a2_0x3231b5,_0x390f15=new WorkflowPullCommand(),_0x30f663=program['opts'](),_0xfb05f=await createTDXInstance(_0x30f663),_0x3ae205=await _0x390f15[_0x4ae4a1(0x2ae)]({'options':{..._0x30f663,..._0x46323a},'args':_0x33c3b5?[_0x22c22e,_0x33c3b5]:[_0x22c22e],'tdx':_0xfb05f});process[_0x4ae4a1(0x2de)](_0x3ae205);}),workflowCmd['command']('push\x20[source-dir]')['description']('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1b1),a2_0x3231b5(0x176))[a2_0x3231b5(0x2fe)]('--dry-run',a2_0x3231b5(0x2ad))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x11d),a2_0x3231b5(0x2fd))['option'](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))['action'](async(_0x5ae1ca,_0x2e639f)=>{const _0x3f947d=a2_0x3231b5,_0x5be29f=new WorkflowPushCommand(),_0xd36fb=program['opts'](),_0x564dbc=await createTDXInstance(_0xd36fb),_0x451622=await _0x5be29f[_0x3f947d(0x2ae)]({'options':{..._0xd36fb,..._0x2e639f},'args':_0x5ae1ca?[_0x5ae1ca]:[],'tdx':_0x564dbc});process[_0x3f947d(0x2de)](_0x451622);}),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x18a))[a2_0x3231b5(0x1ef)]('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')['option'](a2_0x3231b5(0x198),a2_0x3231b5(0x261))['option'](a2_0x3231b5(0x1b1),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x11d),a2_0x3231b5(0x2fd))[a2_0x3231b5(0x330)](async(_0x238a85,_0x455338)=>{const _0x5d96c1=a2_0x3231b5,_0x3a5369=new WorkflowUploadCommand(),_0x142c94=program[_0x5d96c1(0x281)](),_0x4f2e34=await createTDXInstance(_0x142c94),_0x46cab7=await _0x3a5369[_0x5d96c1(0x2ae)]({'options':{..._0x142c94,..._0x455338},'args':_0x238a85?[_0x238a85]:[],'tdx':_0x4f2e34});process['exit'](_0x46cab7);}),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x13e))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x14d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x198),a2_0x3231b5(0x260))[a2_0x3231b5(0x2fe)]('--revision\x20<revision>',a2_0x3231b5(0x176))[a2_0x3231b5(0x2fe)]('--dry-run','Preview\x20without\x20creating\x20the\x20project')[a2_0x3231b5(0x2fe)]('--skip-validation',a2_0x3231b5(0x2fd))['option'](a2_0x3231b5(0x2e5),'Skip\x20confirmation\x20prompt')['action'](async(_0x50ae14,_0x2150c1)=>{const _0x5ab560=a2_0x3231b5,_0x63af36=new WorkflowCloneCommand(),_0x576950=program[_0x5ab560(0x281)](),_0x46f548=await createTDXInstance(_0x576950),_0x139779=await _0x63af36['run']({'options':{..._0x576950,..._0x2150c1},'args':_0x50ae14?[_0x50ae14]:[],'tdx':_0x46f548});process[_0x5ab560(0x2de)](_0x139779);}),workflowCmd[a2_0x3231b5(0x168)]('delete\x20<project-name-or-id>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x11f))[a2_0x3231b5(0x330)](async(_0x4798b5,_0xd1ad2)=>{const _0x20abd5=a2_0x3231b5,_0xd4155a=new WorkflowDeleteCommand(),_0x209f2a=program[_0x20abd5(0x281)](),_0xaabd0a=await createTDXInstance(_0x209f2a),_0xbe402a=await _0xd4155a[_0x20abd5(0x2ae)]({'options':{..._0x209f2a,..._0xd1ad2},'args':[_0x4798b5],'tdx':_0xaabd0a});process[_0x20abd5(0x2de)](_0xbe402a);}),workflowCmd['command'](a2_0x3231b5(0x158))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x17f))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x145),a2_0x3231b5(0x2cf))[a2_0x3231b5(0x330)](async(_0x5491b6,_0x5db1a4)=>{const _0x458a0b=a2_0x3231b5,_0x49f1e2=new WorkflowUseCommand(),_0x358db9=program['opts'](),_0x5b69cd=await createTDXInstance(_0x358db9),_0x281364=await _0x49f1e2[_0x458a0b(0x2ae)]({'options':{..._0x358db9,..._0x5db1a4},'args':_0x5491b6?[_0x5491b6]:[],'tdx':_0x5b69cd});process[_0x458a0b(0x2de)](_0x281364);});const wfSecretsCmd=workflowCmd['command']('secrets')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1a6));wfSecretsCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x104))['description']('List\x20secret\x20keys\x20for\x20a\x20project')[a2_0x3231b5(0x330)](async(_0x1a3bfc,_0x13a007)=>{const _0x4ab3b3=new WorkflowSecretsListCommand(),_0x17fc9c=program['opts'](),_0x369e0f=await createTDXInstance(_0x17fc9c),_0x3905d0=await _0x4ab3b3['run']({'options':{..._0x17fc9c,..._0x13a007},'args':_0x1a3bfc?[_0x1a3bfc]:[],'tdx':_0x369e0f});process['exit'](_0x3905d0);}),wfSecretsCmd[a2_0x3231b5(0x168)]('set\x20<args...>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x221))[a2_0x3231b5(0x330)](async(_0x4abba6,_0x23525f)=>{const _0x2304a9=a2_0x3231b5,_0x985696=new WorkflowSecretsSetCommand(),_0x3be10d=program[_0x2304a9(0x281)](),_0x1e989b=await createTDXInstance(_0x3be10d),_0x353b03=await _0x985696[_0x2304a9(0x2ae)]({'options':{..._0x3be10d,..._0x23525f},'args':_0x4abba6,'tdx':_0x1e989b});process[_0x2304a9(0x2de)](_0x353b03);}),wfSecretsCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x16d))['description'](a2_0x3231b5(0x30a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),'Skip\x20confirmation\x20prompt')[a2_0x3231b5(0x330)](async(_0xde2001,_0x2d14cb)=>{const _0x1a4d19=a2_0x3231b5,_0x353193=new WorkflowSecretsDeleteCommand(),_0x64bf1f=program['opts'](),_0x33709c=await createTDXInstance(_0x64bf1f),_0x19d58f=await _0x353193['run']({'options':{..._0x64bf1f,..._0x2d14cb},'args':_0xde2001,'tdx':_0x33709c});process[_0x1a4d19(0x2de)](_0x19d58f);});const jobCmd=program['command'](a2_0x3231b5(0x253))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x16b)),jobListAction=async _0x4fbd43=>{const _0x4ca4a6=a2_0x3231b5,_0x5950ff=new JobListCommand(),_0x25afee=program[_0x4ca4a6(0x281)](),_0x171daf=await createTDXInstance(_0x25afee),_0x4bc1c9=await _0x5950ff[_0x4ca4a6(0x2ae)]({'options':{..._0x25afee,..._0x4fbd43},'args':[],'tdx':_0x171daf});process[_0x4ca4a6(0x2de)](_0x4bc1c9);};jobCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x224))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2b7))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x197),a2_0x3231b5(0x1ad))[a2_0x3231b5(0x330)](jobListAction),program['command'](a2_0x3231b5(0x1e7),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x195))['option'](a2_0x3231b5(0x197),a2_0x3231b5(0x1ad))[a2_0x3231b5(0x330)](jobListAction),jobCmd['command'](a2_0x3231b5(0x308))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2e7))[a2_0x3231b5(0x330)](async(_0x3bb859,_0x2ce820)=>{const _0x3b198c=new JobShowCommand(),_0x27d5bc=program['opts'](),_0x26b4ba=await createTDXInstance(_0x27d5bc),_0x1181a3=await _0x3b198c['run']({'options':{..._0x27d5bc,..._0x2ce820},'args':[_0x3bb859],'tdx':_0x26b4ba});process['exit'](_0x1181a3);}),jobCmd['command']('kill\x20<job-id>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x320))[a2_0x3231b5(0x330)](async(_0x3d3d9e,_0x2acd3d)=>{const _0x5186e5=a2_0x3231b5,_0x13c243=new JobKillCommand(),_0x5b0220=program[_0x5186e5(0x281)](),_0x56c7ec=await createTDXInstance(_0x5b0220),_0x27e499=await _0x13c243[_0x5186e5(0x2ae)]({'options':{..._0x5b0220,..._0x2acd3d},'args':[_0x3d3d9e],'tdx':_0x56c7ec});process[_0x5186e5(0x2de)](_0x27e499);}),jobCmd[a2_0x3231b5(0x168)]('submit\x20[query]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1e9))['option'](a2_0x3231b5(0x205),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x3231b5(0x1f7))[a2_0x3231b5(0x2fe)]('-f,\x20--file\x20<path>',a2_0x3231b5(0x324))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e1),a2_0x3231b5(0x15e),'information_schema')[a2_0x3231b5(0x330)](async(_0x4667c8,_0x1b0740)=>{const _0x78f305=a2_0x3231b5,_0x3421bc=new JobSubmitCommand(),_0x45af93=program[_0x78f305(0x281)](),_0x1254bd=await createTDXInstance(_0x45af93),_0x468743=await _0x3421bc[_0x78f305(0x2ae)]({'options':{..._0x45af93,..._0x1b0740},'args':_0x4667c8?[_0x4667c8]:[],'tdx':_0x1254bd});process[_0x78f305(0x2de)](_0x468743);}),jobCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1fb))['description'](a2_0x3231b5(0x322))[a2_0x3231b5(0x330)](async(_0x41d7ab,_0x365049)=>{const _0x17471c=a2_0x3231b5,_0x4ba78c=new JobResultCommand(),_0x3193b4=program[_0x17471c(0x281)](),_0x4bba1b=await createTDXInstance(_0x3193b4),_0x4cbe08=await _0x4ba78c[_0x17471c(0x2ae)]({'options':{..._0x3193b4,..._0x365049},'args':[_0x41d7ab],'tdx':_0x4bba1b});process[_0x17471c(0x2de)](_0x4cbe08);});const llmCmd=program[a2_0x3231b5(0x168)]('llm')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x125));llmCmd[a2_0x3231b5(0x168)]('use\x20<project-name>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x173))[a2_0x3231b5(0x330)](async(_0x5a3fad,_0x12756e)=>{const _0x180ffa=a2_0x3231b5,_0x37468e=new LLMUseCommand(),_0xeb9c3e=program[_0x180ffa(0x281)](),_0x52bfeb=await createTDXInstance(_0xeb9c3e),_0x359075=await _0x37468e[_0x180ffa(0x2ae)]({'options':{..._0xeb9c3e,..._0x12756e},'args':[_0x5a3fad],'tdx':_0x52bfeb});process[_0x180ffa(0x2de)](_0x359075);}),llmCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x186))[a2_0x3231b5(0x1ef)]('List\x20available\x20LLM\x20models')['action'](async _0x5c43bb=>{const _0x3ae58c=a2_0x3231b5,_0x2bf15f=new LLMModelsCommand(),_0x341471=program[_0x3ae58c(0x281)](),_0x500efd=await createTDXInstance(_0x341471),_0x40f31b=await _0x2bf15f[_0x3ae58c(0x2ae)]({'options':{..._0x341471,..._0x5c43bb},'args':[],'tdx':_0x500efd});process[_0x3ae58c(0x2de)](_0x40f31b);});const projectCmd=llmCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2bb))[a2_0x3231b5(0x1ef)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x4573c8,_0x320461)=>{const _0x372952=a2_0x3231b5,_0x1797c1=new LLMProjectsCommand(),_0x38c018=program[_0x372952(0x281)](),_0x1ac471=await createTDXInstance(_0x38c018),_0x271e36=await _0x1797c1['run']({'options':{..._0x38c018,..._0x320461},'args':_0x4573c8?[_0x4573c8]:[],'tdx':_0x1ac471});process[_0x372952(0x2de)](_0x271e36);};projectCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x266))[a2_0x3231b5(0x330)](llmProjectListAction),llmCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x27c))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x31e))[a2_0x3231b5(0x330)](llmProjectListAction),projectCmd[a2_0x3231b5(0x168)]('create\x20<name>')['description']('Create\x20a\x20new\x20LLM\x20project')['option']('--description\x20<text>',a2_0x3231b5(0x2c1))[a2_0x3231b5(0x330)](async(_0x455733,_0x10dbfe)=>{const _0x546983=a2_0x3231b5,_0x1ef6f6=new LLMProjectCreateCommand(),_0x4febb9=program[_0x546983(0x281)](),_0x517bdb=await createTDXInstance(_0x4febb9),_0x38dbc3=await _0x1ef6f6[_0x546983(0x2ae)]({'options':{..._0x4febb9,..._0x10dbfe},'args':[_0x455733],'tdx':_0x517bdb});process[_0x546983(0x2de)](_0x38dbc3);}),projectCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x14a))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2a9))[a2_0x3231b5(0x330)](async(_0x4d4405,_0x4146a1)=>{const _0xac36d7=a2_0x3231b5,_0x2fd386=new LLMProjectDeleteCommand(),_0x52d3f6=program['opts'](),_0x5e6f33=await createTDXInstance(_0x52d3f6),_0x1d961e=await _0x2fd386[_0xac36d7(0x2ae)]({'options':{..._0x52d3f6,..._0x4146a1},'args':[_0x4d4405],'tdx':_0x5e6f33});process[_0xac36d7(0x2de)](_0x1d961e);}),projectCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2fb))['description'](a2_0x3231b5(0x2c7))['option'](a2_0x3231b5(0x133),a2_0x3231b5(0x283))['option']('--dry-run','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x3231b5(0x330)](async(_0x5d95e4,_0x448af7)=>{const _0x3a538d=a2_0x3231b5,_0x2a30c6=new LLMProjectBackupCommand(),_0x11468c=program['opts'](),_0x48cda3=await createTDXInstance(_0x11468c),_0x15a824=await _0x2a30c6['run']({'options':{..._0x11468c,..._0x448af7},'args':[_0x5d95e4],'tdx':_0x48cda3});process[_0x3a538d(0x2de)](_0x15a824);}),projectCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2f3))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x32f))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x246),a2_0x3231b5(0x2c5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x24f),a2_0x3231b5(0x29e))['action'](async(_0x2bea0f,_0x1fb947)=>{const _0x5bc5ba=a2_0x3231b5,_0x25bc9b=new LLMProjectRestoreCommand(),_0x6e45e9=program[_0x5bc5ba(0x281)](),_0xc2ff0a=await createTDXInstance(_0x6e45e9),_0x3e859e=await _0x25bc9b['run']({'options':{..._0x6e45e9,..._0x1fb947},'args':[_0x2bea0f],'tdx':_0xc2ff0a});process[_0x5bc5ba(0x2de)](_0x3e859e);});const llmAgentListAction=async(_0x9fbdb6,_0x2541d9)=>{const _0x51a18d=a2_0x3231b5,_0x5103e5=new LLMAgentsCommand(),_0x426d21=program[_0x51a18d(0x281)](),_0x50a085=await createTDXInstance(_0x426d21),_0x489ca8=await _0x5103e5[_0x51a18d(0x2ae)]({'options':{..._0x426d21,..._0x2541d9},'args':_0x9fbdb6?[_0x9fbdb6]:[],'tdx':_0x50a085});process[_0x51a18d(0x2de)](_0x489ca8);};llmCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x32b))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x172))['action'](llmAgentListAction),program['command'](a2_0x3231b5(0x32b))['description'](a2_0x3231b5(0x172))[a2_0x3231b5(0x330)](llmAgentListAction),llmCmd[a2_0x3231b5(0x168)]('history\x20[chat-id]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x20f))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1e0),a2_0x3231b5(0xe6))[a2_0x3231b5(0x330)](async(_0x20416a,_0x4b7c0d)=>{const _0x1a4e58=a2_0x3231b5,_0x51ff42=new LLMHistoryCommand(),_0x48f1fd=program['opts'](),_0x780640=await createTDXInstance(_0x48f1fd),_0x3286c3=await _0x51ff42[_0x1a4e58(0x2ae)]({'options':{..._0x48f1fd,..._0x4b7c0d},'args':_0x20416a?[_0x20416a]:[],'tdx':_0x780640});process[_0x1a4e58(0x2de)](_0x3286c3);}),llmCmd[a2_0x3231b5(0x168)]('proxy')['description']('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x230),a2_0x3231b5(0x154),a2_0x3231b5(0x11a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2b5),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x115),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3231b5(0x330)](async _0x4a7278=>{const _0x10c889=a2_0x3231b5,_0x2225ea=new LLMProxyCommand(),_0x3ab09f=program[_0x10c889(0x281)](),_0x5b6106=await createTDXInstance(_0x3ab09f),_0xe4527a={..._0x4a7278,'port':_0x4a7278[_0x10c889(0x278)]?parseInt(_0x4a7278[_0x10c889(0x278)],0xa):undefined},_0x47d2f5=await _0x2225ea[_0x10c889(0x2ae)]({'options':{..._0x3ab09f,..._0xe4527a},'args':[],'tdx':_0x5b6106});process[_0x10c889(0x2de)](_0x47d2f5);}),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x13c))['usage']('[options]\x20--\x20[claude-code-args...]')['description']('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x285),a2_0x3231b5(0x1ed),a2_0x3231b5(0x2e8))['option'](a2_0x3231b5(0x203),a2_0x3231b5(0x13d))['option'](a2_0x3231b5(0xfe),a2_0x3231b5(0x329))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2f2),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x3231b5(0x2fe)]('--llm-proxy\x20[url]',a2_0x3231b5(0x171))['allowUnknownOption']()['allowExcessArguments'](!![])[a2_0x3231b5(0x10a)]('after',a2_0x3231b5(0x21d))[a2_0x3231b5(0x330)](async(_0x5d4a77,_0x55eebe)=>{const _0x92266d=a2_0x3231b5,_0x1dda13=program[_0x92266d(0x281)](),_0x32b36f=Array[_0x92266d(0x23d)](_0x5d4a77)?_0x5d4a77:[];if(_0x32b36f[0x0]==='statusline'){const _0x166954=new ClaudeStatuslineCommand(),_0xc5f092=await _0x166954[_0x92266d(0x2ae)]({'options':{..._0x1dda13,..._0x55eebe},'args':_0x32b36f['slice'](0x1),'tdx':null});process[_0x92266d(0x2de)](_0xc5f092);}if(_0x32b36f[0x0]===_0x92266d(0x201)){const _0x1bb8ea=new ClaudeUsageCommand(),_0x1626ac=await _0x1bb8ea['run']({'options':{..._0x1dda13,..._0x55eebe},'args':_0x32b36f['slice'](0x1),'tdx':null});process[_0x92266d(0x2de)](_0x1626ac);}const _0xd148e4=new ClaudeCommand(),_0x15981c=await createTDXInstance(_0x1dda13),_0x4c848e=await _0xd148e4[_0x92266d(0x2ae)]({'options':{..._0x1dda13,..._0x55eebe},'args':_0x32b36f,'tdx':_0x15981c});process[_0x92266d(0x2de)](_0x4c848e);}),program[a2_0x3231b5(0x168)]('use\x20[resource]\x20[value]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xf6))['option']('--clear',a2_0x3231b5(0x17b))['action'](async(_0x4e1073,_0x32f0cf,_0x4adbd1)=>{const _0x302e6e=a2_0x3231b5,_0x593870=new UseCommand(),_0x4b7fd9=program[_0x302e6e(0x281)](),_0x3bf492=[];if(_0x4e1073)_0x3bf492[_0x302e6e(0x15b)](_0x4e1073);if(_0x32f0cf)_0x3bf492[_0x302e6e(0x15b)](_0x32f0cf);const _0x8c9fec=await _0x593870['run']({'options':{..._0x4b7fd9,..._0x4adbd1},'args':_0x3bf492,'tdx':null});process[_0x302e6e(0x2de)](_0x8c9fec);}),program[a2_0x3231b5(0x168)](a2_0x3231b5(0xf2))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x32d))[a2_0x3231b5(0x2fe)]('--last',a2_0x3231b5(0x2a4))[a2_0x3231b5(0x330)](async _0x27517b=>{const _0x35dfcb=a2_0x3231b5,_0x23ac86=new ChatsCommand(),_0x4c5430=program[_0x35dfcb(0x281)](),_0x3d99df=await createTDXInstance(_0x4c5430),_0x597e59=await _0x23ac86[_0x35dfcb(0x2ae)]({'options':{..._0x4c5430,..._0x27517b},'args':[],'tdx':_0x3d99df});process['exit'](_0x597e59);});const authCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x28f))[a2_0x3231b5(0x1ef)]('Authentication\x20management');async function runAuthStatusCommand(_0x5567b4){const _0x2e712f=a2_0x3231b5,_0x34ef44=new AuthStatusCommand(),_0x43aa20=program[_0x2e712f(0x281)](),_0x37c5ae=await createTDXInstance(_0x43aa20),_0x1eaa42=await _0x34ef44[_0x2e712f(0x2ae)]({'options':{..._0x43aa20,..._0x5567b4},'args':[],'tdx':_0x37c5ae});process[_0x2e712f(0x2de)](_0x1eaa42);}authCmd[a2_0x3231b5(0x330)](runAuthStatusCommand),authCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x167))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x302))['action'](runAuthStatusCommand),authCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1f0))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x222))[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),'\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')['action'](async _0x7105c7=>{const _0xb9bc76=a2_0x3231b5,_0x34ba93=new AuthSetupCommand(),_0x346f37=program[_0xb9bc76(0x281)](),_0x12d33c=await createTDXInstance(_0x346f37),_0x1626c7=await _0x34ba93[_0xb9bc76(0x2ae)]({'options':{..._0x346f37,..._0x7105c7},'args':[],'tdx':_0x12d33c});process[_0xb9bc76(0x2de)](_0x1626c7);}),authCmd['command']('clear')[a2_0x3231b5(0x1ef)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText']('after',a2_0x3231b5(0x31a))[a2_0x3231b5(0x330)](async _0x21993a=>{const _0x1f55e4=a2_0x3231b5,_0x307858=new AuthClearCommand(),_0x26aa89=program[_0x1f55e4(0x281)](),_0x5cd21e=await _0x307858['run']({'options':{..._0x26aa89,..._0x21993a},'args':[],'tdx':null});process['exit'](_0x5cd21e);});const userCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x1a1))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x24d)),userListAction=async _0x518952=>{const _0xe50e4f=a2_0x3231b5,_0x3f1630=new UserListCommand(),_0x27b3a7=program[_0xe50e4f(0x281)](),_0x193fa4=await createTDXInstance(_0x27b3a7),_0x39c5d6=await _0x3f1630[_0xe50e4f(0x2ae)]({'options':{..._0x27b3a7,..._0x518952},'args':[],'tdx':_0x193fa4});process[_0xe50e4f(0x2de)](_0x39c5d6);};userCmd[a2_0x3231b5(0x330)](async _0x371b81=>{const _0x8e08b0=a2_0x3231b5,_0x48a394=new UserCommand(),_0x519345=program[_0x8e08b0(0x281)](),_0x4f4ddb=await createTDXInstance(_0x519345),_0x50ec1b=await _0x48a394[_0x8e08b0(0x2ae)]({'options':{..._0x519345,..._0x371b81},'args':[],'tdx':_0x4f4ddb});process['exit'](_0x50ec1b);}),userCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x224))['description']('List\x20all\x20users\x20in\x20the\x20account')['action'](userListAction),program['command']('users')[a2_0x3231b5(0x1ef)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x3231b5(0x330)](userListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x2b1))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1c0))[a2_0x3231b5(0x330)](async _0x46b35c=>{const _0x1e54d2=a2_0x3231b5,_0x2465c9=new ProfilesCommand(),_0x2d15f5=program[_0x1e54d2(0x281)](),_0xeb0035=await _0x2465c9[_0x1e54d2(0x2ae)]({'options':{..._0x2d15f5,..._0x46b35c},'args':[],'tdx':null});process['exit'](_0xeb0035);});const profileCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0xf0))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x225));profileCmd[a2_0x3231b5(0x330)](()=>{const _0x2ecad2=a2_0x3231b5;profileCmd[_0x2ecad2(0xe5)]();});const profileListAction=async _0x396e8f=>{const _0x33b7f4=a2_0x3231b5,_0x414154=new ProfilesCommand(),_0x5378a2=program['opts'](),_0xf588ae=await _0x414154[_0x33b7f4(0x2ae)]({'options':{..._0x5378a2,..._0x396e8f},'args':[],'tdx':null});process['exit'](_0xf588ae);};profileCmd['command']('list')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1c0))[a2_0x3231b5(0x330)](profileListAction),profileCmd['command'](a2_0x3231b5(0xea))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x233))[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),a2_0x3231b5(0x228))[a2_0x3231b5(0x330)](async(_0x1d8896,_0x12fbea)=>{const _0x255771=a2_0x3231b5,_0x5bdcda=new ProfileCreateCommand(),_0x4885ce=program[_0x255771(0x281)](),_0x2f7c89=await _0x5bdcda[_0x255771(0x2ae)]({'options':{..._0x4885ce,..._0x12fbea},'args':_0x1d8896?[_0x1d8896]:[],'tdx':null});process['exit'](_0x2f7c89);}),profileCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x234))[a2_0x3231b5(0x1ef)]('Remove\x20a\x20profile')[a2_0x3231b5(0x10a)]('after',a2_0x3231b5(0x2d5))['action'](async(_0x5c4891,_0x5a28f3)=>{const _0x3418bb=a2_0x3231b5,_0x4bcf8b=new ProfileRemoveCommand(),_0x4bc88a=program[_0x3418bb(0x281)](),_0x1008d7=await _0x4bcf8b['run']({'options':{..._0x4bc88a,..._0x5a28f3},'args':[_0x5c4891],'tdx':null});process[_0x3418bb(0x2de)](_0x1008d7);}),profileCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2b9))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x279))[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),'\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')['action'](async(_0x4ced5e,_0x1c6a7b)=>{const _0x31704e=a2_0x3231b5,_0x1f524c=new ProfileSetCommand(),_0x5f0564=program[_0x31704e(0x281)](),_0x2c4160=await _0x1f524c[_0x31704e(0x2ae)]({'options':{..._0x5f0564,..._0x1c6a7b},'args':[_0x4ced5e],'tdx':null});process[_0x31704e(0x2de)](_0x2c4160);}),profileCmd['command'](a2_0x3231b5(0x16f))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x121))[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),a2_0x3231b5(0x28d))['action'](async(_0x5a143c,_0x11880d)=>{const _0x5a85d2=a2_0x3231b5,_0x4570a8=new ProfileUseCommand(),_0x391f9e=program['opts'](),_0x3fef13=await _0x4570a8[_0x5a85d2(0x2ae)]({'options':{..._0x391f9e,..._0x11880d},'args':[_0x5a143c],'tdx':null});process[_0x5a85d2(0x2de)](_0x3fef13);});const engageCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x2f9))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x29f)),createEngageAction=_0x573af8=>{return async(_0x11558c,_0x43ea9d)=>{const _0x237490=a2_0x30cc,_0x286116=new _0x573af8(),_0x54fa09=program['opts'](),_0x334d4f=await createTDXInstance(_0x54fa09),_0x4fdaf6=await _0x286116[_0x237490(0x2ae)]({'options':{..._0x54fa09,..._0x43ea9d},'args':[_0x11558c],'tdx':_0x334d4f});process['exit'](_0x4fdaf6);};},createEngageNoArgAction=_0xc5187b=>{return async _0x598d78=>{const _0xc3ecca=a2_0x30cc,_0x119718=new _0xc5187b(),_0x89fa2b=program[_0xc3ecca(0x281)](),_0x36ff3e=await createTDXInstance(_0x89fa2b),_0x3d5ba2=await _0x119718[_0xc3ecca(0x2ae)]({'options':{..._0x89fa2b,..._0x598d78},'args':[],'tdx':_0x36ff3e});process[_0xc3ecca(0x2de)](_0x3d5ba2);};},campaignCmd=engageCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x258))['description']('Campaign\x20management'),campaignListAction=async(_0x120476,_0x96c722)=>{const _0x3798b7=a2_0x3231b5,_0x5de94b=new EngageCampaignsCommand(),_0x589c2b=program[_0x3798b7(0x281)](),_0x4f551b=await createTDXInstance(_0x589c2b),_0x319007=await _0x5de94b[_0x3798b7(0x2ae)]({'options':{..._0x589c2b,..._0x96c722},'args':_0x120476?[_0x120476]:[],'tdx':_0x4f551b});process[_0x3798b7(0x2de)](_0x319007);};campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))['description'](a2_0x3231b5(0x22e))[a2_0x3231b5(0x2fe)]('--type\x20<type>',a2_0x3231b5(0x1e5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x197),a2_0x3231b5(0x2c9))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](campaignListAction),engageCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x267))['description'](a2_0x3231b5(0x196))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2d4),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x197),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))['action'](campaignListAction),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1f6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x162))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x276),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')['description'](a2_0x3231b5(0x2ca))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x198),a2_0x3231b5(0x11e))['requiredOption'](a2_0x3231b5(0x2d4),a2_0x3231b5(0x333))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1a8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x15d),'Campaign\x20description')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x130),a2_0x3231b5(0x31c))['option'](a2_0x3231b5(0x295),a2_0x3231b5(0x26e))[a2_0x3231b5(0x2fe)]('--json-columns\x20<cols>',a2_0x3231b5(0x102))['option'](a2_0x3231b5(0x289),a2_0x3231b5(0x2d2))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x290),a2_0x3231b5(0xf5))[a2_0x3231b5(0x330)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x136))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1fe))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),'Workspace\x20name')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x198),a2_0x3231b5(0x103))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x15d),a2_0x3231b5(0x135))[a2_0x3231b5(0x2fe)]('--segment\x20<path>',a2_0x3231b5(0x31c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x295),a2_0x3231b5(0x26e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1df),a2_0x3231b5(0x102))[a2_0x3231b5(0x2fe)]('--start-at\x20<datetime>',a2_0x3231b5(0x2d2))['option']('--timezone\x20<tz>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x338))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2eb))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x28e),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x215))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x23a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x143))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x120))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x229))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2aa))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),'Workspace\x20name')[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x325))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x163))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3231b5(0x168)]('template')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1bf)),templateListAction=async(_0x3d9f71,_0x1eaab2)=>{const _0x29befd=a2_0x3231b5,_0x3229a2=new EngageTemplatesCommand(),_0x543194=program['opts'](),_0x2488e7=await createTDXInstance(_0x543194),_0x163cf2=await _0x3229a2[_0x29befd(0x2ae)]({'options':{..._0x543194,..._0x1eaab2},'args':_0x3d9f71?[_0x3d9f71]:[],'tdx':_0x2488e7});process[_0x29befd(0x2de)](_0x163cf2);};templateCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))['description']('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')['option'](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](templateListAction),engageCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c2))['description'](a2_0x3231b5(0x12c))['option'](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](templateListAction),templateCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1f6))[a2_0x3231b5(0x1ef)]('Show\x20email\x20template\x20details')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x276),a2_0x3231b5(0x1f1))[a2_0x3231b5(0x330)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0x3231b5(0x19c))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x124))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x198),a2_0x3231b5(0x27e))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x111),a2_0x3231b5(0x309))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x1af),'HTML\x20template\x20content')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1a8))[a2_0x3231b5(0x2fe)]('--plaintext\x20<text>','Plaintext\x20template\x20content')[a2_0x3231b5(0x2fe)]('--editor-type\x20<type>',a2_0x3231b5(0x110))[a2_0x3231b5(0x330)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x136))['description']('Update\x20an\x20email\x20template')[a2_0x3231b5(0x2fe)]('--workspace\x20<name>',a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)]('--name\x20<name>',a2_0x3231b5(0x20e))[a2_0x3231b5(0x2fe)]('--subject\x20<subject>',a2_0x3231b5(0x309))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1af),a2_0x3231b5(0x2e3))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2bc),a2_0x3231b5(0x2e4))[a2_0x3231b5(0x330)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x338))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2e6))[a2_0x3231b5(0x2fe)]('--workspace\x20<name>',a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x28e),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1e3)),workspaceListAction=async(_0x3f876d,_0x5187e9)=>{const _0x19d107=a2_0x3231b5,_0x2c7663=new EngageWorkspacesCommand(),_0x2abb67=program[_0x19d107(0x281)](),_0x3aed12=await createTDXInstance(_0x2abb67),_0x2a3a27=await _0x2c7663[_0x19d107(0x2ae)]({'options':{..._0x2abb67,..._0x5187e9},'args':_0x3f876d?[_0x3f876d]:[],'tdx':_0x3aed12});process['exit'](_0x2a3a27);};workspaceCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x112))[a2_0x3231b5(0x330)](workspaceListAction),engageCmd['command'](a2_0x3231b5(0x334))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x318))[a2_0x3231b5(0x330)](workspaceListAction),workspaceCmd['command'](a2_0x3231b5(0x1f6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x22d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x276),a2_0x3231b5(0x1f1))[a2_0x3231b5(0x330)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x19c))['description'](a2_0x3231b5(0x2a5))[a2_0x3231b5(0x2f5)]('--name\x20<name>',a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x15d),'Workspace\x20description')['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3231b5(0x168)]('update\x20<name-or-id>')['description']('Update\x20a\x20workspace')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x198),a2_0x3231b5(0x2cd))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x15d),a2_0x3231b5(0x251))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x338))['description'](a2_0x3231b5(0x164))['option'](a2_0x3231b5(0x28e),a2_0x3231b5(0x236))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x16f))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x12b))[a2_0x3231b5(0x330)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3231b5(0x168)]('connection')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x134)),connectionListAction=async _0x4a1cee=>{const _0x2d0d58=a2_0x3231b5,_0x186743=new ConnectionListCommand(),_0x243b8b=program[_0x2d0d58(0x281)](),_0x54b2e5=await createTDXInstance(_0x243b8b),_0x5c2dfe=await _0x186743[_0x2d0d58(0x2ae)]({'options':{..._0x243b8b,..._0x4a1cee},'args':[],'tdx':_0x54b2e5});process[_0x2d0d58(0x2de)](_0x5c2dfe);};connectionCmd['command']('list')['description'](a2_0x3231b5(0x2fc))[a2_0x3231b5(0x330)](connectionListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x13b),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1c2))[a2_0x3231b5(0x330)](connectionListAction),connectionCmd['command'](a2_0x3231b5(0x2e9))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x32a))[a2_0x3231b5(0x330)](async(_0x57ad85,_0xb56c5f)=>{const _0x238186=a2_0x3231b5,_0x3cccb8=new ConnectionShowCommand(),_0x519238=program['opts'](),_0x14feeb=await createTDXInstance(_0x519238),_0x5f23f9=await _0x3cccb8[_0x238186(0x2ae)]({'options':{..._0x519238,..._0xb56c5f},'args':[_0x57ad85],'tdx':_0x14feeb});process[_0x238186(0x2de)](_0x5f23f9);}),connectionCmd[a2_0x3231b5(0x168)]('schema\x20<type>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x24a))['action'](async(_0x41bce4,_0x3d35f3)=>{const _0x400c1e=a2_0x3231b5,_0x339c24=new ConnectionSchemaCommand(),_0x4235a0=program['opts'](),_0x26b681=await createTDXInstance(_0x4235a0),_0x3938fa=await _0x339c24[_0x400c1e(0x2ae)]({'options':{..._0x4235a0,..._0x3d35f3},'args':[_0x41bce4],'tdx':_0x26b681});process[_0x400c1e(0x2de)](_0x3938fa);}),connectionCmd[a2_0x3231b5(0x168)]('types')['description']('List\x20available\x20connector\x20types')[a2_0x3231b5(0x330)](async _0x4800b8=>{const _0x5b46e4=a2_0x3231b5,_0x5790d3=new ConnectionTypesCommand(),_0x1e934d=program[_0x5b46e4(0x281)](),_0x25e145=await createTDXInstance(_0x1e934d),_0x3f6ae5=await _0x5790d3[_0x5b46e4(0x2ae)]({'options':{..._0x1e934d,..._0x4800b8},'args':[],'tdx':_0x25e145});process[_0x5b46e4(0x2de)](_0x3f6ae5);}),connectionCmd[a2_0x3231b5(0x168)]('settings\x20<type>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x113))[a2_0x3231b5(0x330)](async(_0x1de45b,_0x22ac76)=>{const _0x215bf2=a2_0x3231b5,_0xda1d53=new ConnectionSettingsCommand(),_0x5bd551=program[_0x215bf2(0x281)](),_0x2baaa2=await createTDXInstance(_0x5bd551),_0x4b2e25=await _0xda1d53[_0x215bf2(0x2ae)]({'options':{..._0x5bd551,..._0x22ac76},'args':[_0x1de45b],'tdx':_0x2baaa2});process[_0x215bf2(0x2de)](_0x4b2e25);});const journeyCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0xf1))[a2_0x3231b5(0x1ef)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x16e011,_0x225d7b)=>{const _0x55ea42=a2_0x3231b5,_0x241e5c=new JourneyListCommand(),_0x4ae8f5=program[_0x55ea42(0x281)](),_0xe199c7=await createTDXInstance(_0x4ae8f5),_0x3fd26c=await _0x241e5c[_0x55ea42(0x2ae)]({'options':{..._0x4ae8f5,..._0x225d7b},'args':_0x16e011?[_0x16e011]:[],'tdx':_0xe199c7});process[_0x55ea42(0x2de)](_0x3fd26c);};journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))['description'](a2_0x3231b5(0x129))[a2_0x3231b5(0x330)](journeyListAction),journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1a7))[a2_0x3231b5(0x1ef)]('Show\x20journey\x20details')[a2_0x3231b5(0x2fe)]('-w,\x20--web',a2_0x3231b5(0x183))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25e),a2_0x3231b5(0x282))[a2_0x3231b5(0x330)](async(_0x2b794d,_0x5d195b)=>{const _0x17748d=a2_0x3231b5,_0xfb94de=new JourneyViewCommand(),_0x3347f8=program[_0x17748d(0x281)](),_0x15b094=await createTDXInstance(_0x3347f8),_0xd0e3e6=await _0xfb94de['run']({'options':{..._0x3347f8,..._0x5d195b},'args':[_0x2b794d],'tdx':_0x15b094});process[_0x17748d(0x2de)](_0xd0e3e6);}),journeyCmd['command'](a2_0x3231b5(0x31b))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x18c))[a2_0x3231b5(0x2fe)]('--stage\x20<name>','Show\x20stats\x20for\x20specific\x20stage')[a2_0x3231b5(0x330)](async(_0x1fdd66,_0x17c4da)=>{const _0x5da707=a2_0x3231b5,_0x276f33=new JourneyStatsCommand(),_0x589f3c=program[_0x5da707(0x281)](),_0x17eb27=await createTDXInstance(_0x589f3c),_0x49b1ad=await _0x276f33[_0x5da707(0x2ae)]({'options':{..._0x589f3c,..._0x17c4da},'args':[_0x1fdd66],'tdx':_0x17eb27});process[_0x5da707(0x2de)](_0x49b1ad);}),journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x18b))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x223))['action'](async(_0x190206,_0x11f441)=>{const _0x529c1d=a2_0x3231b5,_0x207f1b=new JourneyPauseCommand(),_0x472ae0=program[_0x529c1d(0x281)](),_0x4279f0=await createTDXInstance(_0x472ae0),_0x4381ce=await _0x207f1b['run']({'options':{..._0x472ae0,..._0x11f441},'args':[_0x190206],'tdx':_0x4279f0});process[_0x529c1d(0x2de)](_0x4381ce);}),journeyCmd['command'](a2_0x3231b5(0x23b))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1d0))[a2_0x3231b5(0x330)](async(_0x38e6c5,_0x562643)=>{const _0x2b1429=a2_0x3231b5,_0x18c982=new JourneyResumeCommand(),_0x299b07=program[_0x2b1429(0x281)](),_0x1d9ba8=await createTDXInstance(_0x299b07),_0x2013fa=await _0x18c982[_0x2b1429(0x2ae)]({'options':{..._0x299b07,..._0x562643},'args':[_0x38e6c5],'tdx':_0x1d9ba8});process[_0x2b1429(0x2de)](_0x2013fa);}),journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x213))['description'](a2_0x3231b5(0x32e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x24f),a2_0x3231b5(0x2d6))[a2_0x3231b5(0x330)](async(_0x39f35c,_0x5b82f6)=>{const _0x505a28=a2_0x3231b5,_0x1ac1f2=new JourneyPullCommand(),_0x3dd161=program['opts'](),_0x1a47d5=await createTDXInstance(_0x3dd161),_0x28a152=await _0x1ac1f2[_0x505a28(0x2ae)]({'options':{..._0x3dd161,..._0x5b82f6},'args':_0x39f35c?[_0x39f35c]:[],'tdx':_0x1a47d5});process['exit'](_0x28a152);}),journeyCmd[a2_0x3231b5(0x168)]('push\x20[target]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1b0))[a2_0x3231b5(0x330)](async(_0x2f9706,_0x1c249f)=>{const _0x279fce=a2_0x3231b5,_0x386458=new JourneyPushCommand(),_0x256b59=program[_0x279fce(0x281)](),_0x37e809=await createTDXInstance(_0x256b59),_0x32ca2f=await _0x386458[_0x279fce(0x2ae)]({'options':{..._0x256b59,..._0x1c249f},'args':_0x2f9706?[_0x2f9706]:[],'tdx':_0x37e809});process['exit'](_0x32ca2f);}),journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x188))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xe9))[a2_0x3231b5(0x330)](async(_0x4ec258,_0x395659)=>{const _0x419033=a2_0x3231b5,_0x36c883=new JourneyValidateCommand(),_0x2a193e=program[_0x419033(0x281)](),_0x20fa27=await createTDXInstance(_0x2a193e),_0x58c661=await _0x36c883[_0x419033(0x2ae)]({'options':{..._0x2a193e,..._0x395659},'args':_0x4ec258?[_0x4ec258]:[],'tdx':_0x20fa27});process[_0x419033(0x2de)](_0x58c661);}),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x2e0))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x208))[a2_0x3231b5(0x330)](journeyListAction);const agentSyncCmd=program[a2_0x3231b5(0x168)]('agent')['description'](a2_0x3231b5(0x232));agentSyncCmd['command']('pull\x20[project]\x20[agent-name]')[a2_0x3231b5(0x1ef)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x210),a2_0x3231b5(0x297))['option']('-f,\x20--force',a2_0x3231b5(0x1dd))['action'](async(_0x422402,_0x3deb10,_0x61f682)=>{const _0x4dcc9d=a2_0x3231b5,_0x5bc851=new AgentPullCommand(),_0x151776=program[_0x4dcc9d(0x281)](),_0x133166=await createTDXInstance(_0x151776),_0x1dda09=[];if(_0x422402)_0x1dda09[_0x4dcc9d(0x15b)](_0x422402);if(_0x3deb10)_0x1dda09[_0x4dcc9d(0x15b)](_0x3deb10);const _0xda9f28=await _0x5bc851['run']({'options':{..._0x151776,..._0x61f682},'args':_0x1dda09,'tdx':_0x133166});process[_0x4dcc9d(0x2de)](_0xda9f28);}),agentSyncCmd[a2_0x3231b5(0x168)]('push\x20[path]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x30e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2bf),a2_0x3231b5(0x147))[a2_0x3231b5(0x330)](async(_0x47b30f,_0x246d6a)=>{const _0x2201c9=a2_0x3231b5,_0x667946=new AgentPushCommand(),_0x2913c4=program[_0x2201c9(0x281)](),_0x367354=await createTDXInstance(_0x2913c4),_0x4fe125=await _0x667946[_0x2201c9(0x2ae)]({'options':{..._0x2913c4,..._0x246d6a},'args':_0x47b30f?[_0x47b30f]:[],'tdx':_0x367354});process[_0x2201c9(0x2de)](_0x4fe125);}),agentSyncCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2d9))['description'](a2_0x3231b5(0x235))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x139),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x3231b5(0x330)](async(_0x4ea589,_0x1afab3)=>{const _0x2a2e14=a2_0x3231b5,_0x5d9bb6=new AgentCloneCommand(),_0x1bf283=program[_0x2a2e14(0x281)](),_0x321f04=await createTDXInstance(_0x1bf283),_0x37b85a=await _0x5d9bb6[_0x2a2e14(0x2ae)]({'options':{..._0x1bf283,..._0x1afab3},'args':_0x4ea589?[_0x4ea589]:[],'tdx':_0x321f04});process[_0x2a2e14(0x2de)](_0x37b85a);}),agentSyncCmd[a2_0x3231b5(0x168)]('list\x20[pattern]')[a2_0x3231b5(0x1ef)]('List\x20agents\x20in\x20current\x20project')[a2_0x3231b5(0x330)](llmAgentListAction),agentSyncCmd['command'](a2_0x3231b5(0x211))['description'](a2_0x3231b5(0x22c))[a2_0x3231b5(0x330)](async(_0x2e422e,_0x3ea44a)=>{const _0x48e66e=a2_0x3231b5,_0x47e78b=new LLMAgentShowCommand(),_0x18acf8=program['opts'](),_0x58700a=await createTDXInstance(_0x18acf8),_0x505696=await _0x47e78b[_0x48e66e(0x2ae)]({'options':{..._0x18acf8,..._0x3ea44a},'args':[_0x2e422e],'tdx':_0x58700a});process[_0x48e66e(0x2de)](_0x505696);}),agentSyncCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x286))['description']('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1a3),a2_0x3231b5(0x2cb))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x285),a2_0x3231b5(0x23c),a2_0x3231b5(0x218))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2da),a2_0x3231b5(0x259))['option'](a2_0x3231b5(0x1d4),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x296),a2_0x3231b5(0x2ab),'0.7')[a2_0x3231b5(0x330)](async(_0x278f5a,_0xddadd1)=>{const _0x1940f0=a2_0x3231b5,_0x37b639=new LLMAgentCreateCommand(),_0x3ed1ae=program[_0x1940f0(0x281)](),_0x5a2bc7=await createTDXInstance(_0x3ed1ae),_0xe32e75=await _0x37b639[_0x1940f0(0x2ae)]({'options':{..._0x3ed1ae,..._0xddadd1},'args':[_0x278f5a],'tdx':_0x5a2bc7});process[_0x1940f0(0x2de)](_0xe32e75);}),agentSyncCmd['command'](a2_0x3231b5(0xee))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1bb))[a2_0x3231b5(0x2fe)]('--name\x20<text>',a2_0x3231b5(0x21b))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xfa),a2_0x3231b5(0x128))['option'](a2_0x3231b5(0x1f8),a2_0x3231b5(0x119))['option'](a2_0x3231b5(0x2da),a2_0x3231b5(0x259))[a2_0x3231b5(0x330)](async(_0x5c0afc,_0x1f8b14)=>{const _0x4d37e9=a2_0x3231b5,_0x17f8f9=new LLMAgentUpdateCommand(),_0x3a8d15=program['opts'](),_0xb8f289=await createTDXInstance(_0x3a8d15),_0x5c4761=await _0x17f8f9[_0x4d37e9(0x2ae)]({'options':{..._0x3a8d15,..._0x1f8b14},'args':[_0x5c0afc],'tdx':_0xb8f289});process['exit'](_0x5c4761);}),agentSyncCmd['command'](a2_0x3231b5(0x2a7))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x216))[a2_0x3231b5(0x330)](async(_0x1339eb,_0x3fae18)=>{const _0x129830=a2_0x3231b5,_0x407a09=new LLMAgentDeleteCommand(),_0x67d98c=program['opts'](),_0x31b16e=await createTDXInstance(_0x67d98c),_0x2196fc=await _0x407a09[_0x129830(0x2ae)]({'options':{..._0x67d98c,..._0x3fae18},'args':[_0x1339eb],'tdx':_0x31b16e});process[_0x129830(0x2de)](_0x2196fc);});export{program};export function runCLI(){const _0x213a35=a2_0x3231b5,_0x3ee9bd=!process[_0x213a35(0x237)][_0x213a35(0x27f)](0x2)[_0x213a35(0x2b0)];showBriefHelp=_0x3ee9bd,program['parse'](process[_0x213a35(0x237)]),_0x3ee9bd&&program[_0x213a35(0xe5)](),process[_0x213a35(0x127)][_0x213a35(0x2a8)]&&process[_0x213a35(0x237)][_0x213a35(0x2b0)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x213a35(0x28b)](_0x40a97d=>{_0x40a97d&&displayUpdateNotification(_0x40a97d);})['catch'](()=>{});}
|