@treasuredata/tdx 0.12.0 → 0.13.0
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 -2
- package/dist/cli-categories.d.ts +1 -1
- package/dist/cli-categories.js +1 -1
- package/dist/cli-categories.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.d.ts.map +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-command.js.map +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-command.js.map +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 +50 -0
- package/dist/commands/profile-command.d.ts.map +1 -0
- package/dist/commands/profile-command.js +1 -0
- package/dist/commands/profile-command.js.map +1 -0
- 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-use-command.js.map +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.d.ts.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +1 -1
- package/dist/core/auth.d.ts +2 -4
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/auth.js.map +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/command-output.js.map +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.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/global-context.js.map +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.d.ts +9 -1
- package/dist/core/profile.d.ts.map +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/profile.js.map +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.d.ts +45 -0
- package/dist/core/version.d.ts.map +1 -0
- package/dist/core/version.js +1 -0
- package/dist/core/version.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.d.ts +19 -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.d.ts.map +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/client/workflow-client.js.map +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-aliases.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workflow.d.ts +6 -0
- package/dist/sdk/types/workflow.d.ts.map +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.d.ts +11 -0
- package/dist/sdk/util/formatters.d.ts.map +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/formatters.js.map +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.d.ts.map +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/index.js.map +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/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 -3
- package/LICENSE +0 -190
- package/dist/commands/context-command.d.ts +0 -15
- package/dist/commands/context-command.d.ts.map +0 -1
- package/dist/commands/context-command.js +0 -1
- package/dist/commands/context-command.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x3d4a9d=a2_0x2b74;(function(_0xa74590,_0x226fea){const _0x5afd32=a2_0x2b74,_0x258e0a=_0xa74590();while(!![]){try{const _0x2da057=parseInt(_0x5afd32(0x2f2))/0x1+parseInt(_0x5afd32(0x3f8))/0x2+-parseInt(_0x5afd32(0x21d))/0x3*(parseInt(_0x5afd32(0x1fa))/0x4)+-parseInt(_0x5afd32(0x329))/0x5+parseInt(_0x5afd32(0x2b1))/0x6+-parseInt(_0x5afd32(0x33a))/0x7*(-parseInt(_0x5afd32(0x2f8))/0x8)+-parseInt(_0x5afd32(0x341))/0x9;if(_0x2da057===_0x226fea)break;else _0x258e0a['push'](_0x258e0a['shift']());}catch(_0x3eafcb){_0x258e0a['push'](_0x258e0a['shift']());}}}(a2_0x1e4b,0x4174c));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';function a2_0x2b74(_0x3c5779,_0x188388){_0x3c5779=_0x3c5779-0x1c1;const _0x1e4b52=a2_0x1e4b();let _0x2b7488=_0x1e4b52[_0x3c5779];return _0x2b7488;}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,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{ContextCommand}from'./commands/context-command.js';function a2_0x1e4b(){const _0x502090=['workflow','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Get\x20job\x20results','parents\x20[pattern]','use\x20<name>','exit','Template\x20name','project','--email-sender-id\x20<id>','--table\x20<table>','--customer-group\x20<json>','--limit\x20<number>','use\x20<path>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','-p,\x20--profile\x20<name>','stats\x20<name-or-path>','includes','--table','--add-attributes\x20<json>','--description\x20<desc>','Agent\x20name','Path\x20is\x20not\x20a\x20directory:\x20','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','result\x20<job-id>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','List\x20all\x20users\x20in\x20the\x20account','duplicate\x20<name-or-id>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Describe\x20table\x20schema','Workspace\x20name','System\x20prompt/instructions\x20(default:\x20empty)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','information_schema','set','--catalog\x20<catalog>','Master\x20database\x20name','Unknown\x20action:\x20','Show\x20connection\x20details\x20by\x20name','--folder\x20<name>','logs','Validate\x20journey\x20YAML\x20files\x20locally','--include-stats','Plaintext\x20template\x20content','show\x20[table]','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Start\x20a\x20new\x20chat\x20session','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--subject\x20<subject>','List\x20agents\x20in\x20current\x20project','api\x20[endpoint]','../package.json','chat\x20[message...]','segments\x20[path]','Create\x20a\x20new\x20campaign','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--dry-run','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','padEnd','push\x20[source-dir]','--jsonl','push\x20[file]','pause\x20<name-or-path>','auth','Open\x20segment\x20in\x20web\x20browser','types','Clear\x20workflow\x20project\x20context','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--segment\x20<path>','desc','launch\x20<name-or-id>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Folder\x20description','Set\x20operation\x20timeout\x20in\x20seconds','Run\x20Trino\x20query\x20with\x20streaming\x20results','chdir','-c,\x20--continue','Task\x20name\x20for\x20logs\x20action','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','--resume-from\x20<task>','--system-prompt\x20<text>','validate\x20[name]','-o,\x20--output\x20<file>','filter','Pull\x20workflow\x20project\x20to\x20local\x20folder','Action:\x20logs,\x20tasks,\x20kill,\x20retry','subcommandTerm','--status\x20<status>','Show\x20job\x20details','Create\x20a\x20workspace','requiredOption','New\x20segment\x20name','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Folder\x20name\x20for\x20organization','Manage\x20workflow\x20project\x20secrets','Pull\x20specific\x20revision\x20(default:\x20latest)','--in\x20<database>','view\x20[segment_name]','Update\x20an\x20email\x20template','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','user','[task-name]','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','preview\x20[file]','--from-task\x20<task>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','us01','trino','Resume\x20from\x20specific\x20task\x20(retry)','INFO','kill\x20<job-id>','--database\x20<db>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','desc\x20[segment_name]','List\x20available\x20connector\x20types','Campaign\x20type\x20(email\x20or\x20push)','Create\x20a\x20new\x20LLM\x20project','--type\x20<api_type>','get',',\x20version\x20','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','validate\x20[target]','-y,\x20--yes','--schedule-option\x20<value>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','agents\x20[pattern]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Updated\x20description','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--site\x20<site>','Maximum\x20tool\x20iterations\x20(default:\x204)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','User\x20management\x20commands','run\x20[workflow]','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Show\x20agent\x20details','--add-behaviors-file\x20<file>','llm','optionTerm','Set\x20or\x20show\x20parent\x20segment\x20context','preAction','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Campaign\x20name','use\x20<project-name>','name','Campaign\x20management','retry','workspace','tables\x20[pattern]','argumentTerm','-d,\x20--database\x20<database>','create\x20<segment_name>','Parent\x20segment\x20management','activations\x20<segment_name>','Segment\x20description','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','--invisible','--type\x20<type>','--output\x20<file>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','commands','Pause\x20a\x20running\x20journey','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','-u,\x20--use','show\x20[name]','Agent\x20prompt/instructions','update\x20<name-or-id>','repeat','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Preview\x20changes\x20without\x20writing\x20files','show\x20<agent-name>','update\x20<agent-name>','--parent-segment\x20<name>','template','264278bzRZWg','create\x20<name>','--name\x20<new-name>','Workflow\x20attempt\x20management','claude\x20[args...]','summary','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','download\x20<project-name>\x20[output-dir]','create\x20<parent_name>\x20<folder_name>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','json','site','show\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Show\x20stats\x20for\x20specific\x20stage','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Read\x20query\x20from\x20file','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','stderr','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--session-time\x20<time>','view\x20<name-or-path>','templates\x20[pattern]','--add-behaviors\x20<json>','commandDescription','INVALID_ARGUMENT','List\x20jobs','Job\x20management\x20commands','Timezone\x20(e.g.,\x20America/Los_Angeles)','status','validate\x20[file]','--param\x20<key=value>','Skip\x20validation\x20of\x20.dig\x20files','Parent\x20segment\x20description','registeredArguments','Force\x20retry\x20even\x20if\x20not\x20failed','--model\x20<name>','Maximum\x20recursion\x20depth\x20(default:\x2010)','Show\x20only\x20master\x20table\x20validation','run','--max-depth\x20<depth>','parse','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Delete\x20an\x20email\x20template','--enriched','Delete\x20an\x20LLM\x20project','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Show\x20web\x20console\x20URLs\x20for\x20segments','0.7','--delete','Updated\x20timezone','TRACE','CDP\x20Journey\x20Orchestration\x20commands','Usage:\x20','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','format','--clear','argumentDescription','list','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','noColor','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Arguments:','segment','Database\x20name\x20(default:\x20information_schema)','delete\x20<agent-name>','replace','context','-n,\x20--name\x20<name>','--port\x20<number>','--tsv','--prompt\x20<text>','-d,\x20--database\x20<name>','--timeout\x20<seconds>','--max-tool-iterations\x20<n>','list\x20[project]','--parent-folder\x20<name>','folder','--include-subtasks','description','-C,\x20--directory\x20<path>','argv','Email\x20subject\x20template','upload\x20[project-name-or-dir]','--trace','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','parent_segment','[action]','4frUwBk','length','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','isTTY','Table\x20management\x20commands','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','connections','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Preview\x20changes\x20without\x20pushing','attempts\x20[project]','Custom\x20revision\x20name\x20(default:\x20timestamp)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','database','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Show\x20segment\x20details\x20(alias\x20for\x20view)','--stage\x20<name>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Workflow\x20(Digdag)\x20management\x20commands','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Show\x20email\x20template\x20details','--schedule-type\x20<type>','Show\x20journey\x20details','buildTime','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','view\x20[name]','after','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Output\x20file\x20path\x20(default:\x20<name>.yml)','Show\x20journey\x20statistics','pull\x20[parent_or_file]','Launch\x20a\x20campaign','251004SWLMfe','Override\x20project\x20name','Trino\x20catalog\x20(default:\x20td)','push\x20[name]','createAsync','--plaintext\x20<text>','Show\x20agent\x20chat\x20URLs','DEBUG','table','Resume\x20a\x20paused\x20journey','\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','sessions\x20[project]','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--timezone\x20<tz>','Revision\x20name\x20(default:\x20timestamp)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--interval\x20<range>','Campaign\x20description','Kill\x20a\x20job','kill','Move\x20to\x20folder','usage','create','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Master\x20table\x20name','history\x20[chat-id]','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','delete\x20<name-or-id>','Show\x20master\x20table\x20sample\x20data','\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','--include-retried','build-info.json','campaign','workflows\x20[project]','secrets','Commands:','-o,\x20--output\x20<dir>','folders\x20<parent_name>','push\x20[target]','utf-8','--params\x20<json>','slice','Update\x20an\x20existing\x20agent','Read\x20SQL\x20query\x20from\x20file','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','--editor-type\x20<type>','--format\x20<format>','argument','Include\x20retried\x20attempts','tdx','subcommandDescription','Starter\x20message','map','--behaviors\x20<json>','Workspace\x20management','-w,\x20--web','Output\x20directory','Parent\x20folder\x20name\x20for\x20nested\x20folders','Name\x20for\x20the\x20new\x20project\x20(required)','Skip\x20confirmation\x20prompt','--workspace\x20<name>','--from\x20<timestamp>','Delete\x20a\x20workspace','-r,\x20--recursive','--attribute\x20[name]','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','agent','engage','List\x20available\x20LLM\x20models','run\x20[name]','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Continue\x20most\x20recent\x20conversation','Remove\x20API\x20key\x20from\x20system\x20keychain','\x20-\x20built\x20','pause\x20<name-or-id>','\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','list\x20[pattern]','help','--project\x20<name>','push\x20[path]','action','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Output\x20as\x20JSON','join','-f,\x20--force','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','--attributes-file\x20<file>','--name\x20<name>','-r,\x20--resume','backup\x20<name>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Skip\x20confirmation\x20prompts','.dev','submit\x20[query]','preview\x20[name]','command','schema\x20<type>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','New\x20template\x20name','--in\x20<name>','users','Show\x20the\x20most\x20recent\x20chat','--full','Delete\x20an\x20agent','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','[attempt-id]','error','opts','--starter-message\x20<text>','End\x20time\x20filter\x20(ISO\x208601\x20format)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--last','describe\x20[table]','isArray','JSON\x20columns\x20for\x20connector\x20(comma-separated)','LLM\x20project\x20management','--limit\x20<n>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Database\x20management\x20commands','alias','allowExcessArguments','Include\x20retried\x20attempts\x20(for\x20list)','New\x20campaign\x20name','Open\x20journey\x20in\x20web\x20browser','Options:','Agent\x20description','Attempt\x20ID','update\x20<segment_name>','logLevel','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','resume\x20<name-or-id>','Interactive\x20chat\x20selector','-X,\x20--method\x20<method>','port','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','log','query\x20[sql]','--html\x20<html>','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','desc\x20[name]','Add\x20behaviors\x20from\x20JSON\x20file','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Duplicate\x20a\x20campaign','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Delete\x20a\x20campaign','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','configureHelp','1907580mMHYEG','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','delete\x20<project-name-or-id>','--description\x20<text>','isDirectory','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','List\x20all\x20data\x20connections','List\x20secret\x20keys\x20for\x20a\x20project','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','parent-segment','sql\x20[segment_name]','addHelpText','delete\x20<args...>','use\x20[name]','profiles','projects\x20[pattern]','attempt:','show\x20[segment_name]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','hook','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--json-columns\x20<cols>','--agent\x20<ref>','--no-proxy','directory','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--force','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','tasks','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','allowUnknownOption','Authentication\x20management','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','debug','Request\x20body\x20as\x20JSON\x20string','--name\x20<new_name>','sql\x20[name]','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','describe','Attributes\x20as\x20JSON\x20string','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Output\x20folder\x20(default:\x20{project_name}.llm)','Workflow\x20project\x20management','HTML\x20template\x20content','--rule\x20<json>','clear','tsv','padWidth','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Submit\x20a\x20job','Customer\x20group\x20from\x20JSON\x20file','pull\x20[name]','Clear\x20session\x20context','--debug','Workflow\x20session\x20management','Output\x20as\x20JSON\x20Lines','Preview\x20operation\x20without\x20executing','--temperature\x20<n>','--master','236287qHwbWO','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','optionDescription','--color','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','208MXPMuK','show\x20<job-id>','\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','--revision\x20<revision>','\x20(resolved\x20to\x20','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','commandUsage','--database\x20<name>','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Limit\x20number\x20of\x20rows','statusline','Show\x20campaign\x20details','--reason\x20<text>','GET','Email\x20sender\x20ID\x20for\x20delivery','--json','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Filtering\x20rule\x20from\x20JSON\x20file','Show\x20workspace\x20details','Make\x20segment\x20invisible\x20(default:\x20visible)','show\x20<folder_ref>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--new','use\x20[project]','-f,\x20--file\x20<path>','show\x20<name-or-id>','injectIntoOptions','Filtering\x20rule\x20as\x20JSON\x20string','Project\x20description','pull\x20[project]\x20[agent-name]','push','--yes','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','gitRevision','Behaviors\x20as\x20JSON\x20string','--kind\x20<type>','--behavior\x20[name]','Show\x20console\x20URLs','option','--skip-validation','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Overwrite\x20local\x20changes\x20without\x20confirmation','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','colorFn','fields\x20[parent_name]','394435FnBiOK','Push\x20without\x20confirmation','options','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--start-at\x20<datetime>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Resume\x20from\x20specific\x20task','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','-1d','stdout','Workspace\x20description','flatMap','--to\x20<timestamp>','Database\x20to\x20query\x20(default:\x20information_schema)','attempt','version','Add\x20behaviors\x20as\x20JSON\x20string','129479FJvAxV','--version','jsonl','profile','-H,\x20--header\x20<header>','-o,\x20--output\x20<folder>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','6629535rCxhGb','workspaces\x20[pattern]'];a2_0x1e4b=function(){return _0x502090;};return a2_0x1e4b();}import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-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 __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,a2_0x3d4a9d(0x376)),a2_0x3d4a9d(0x245)));let buildInfo={};try{buildInfo=JSON[a2_0x3d4a9d(0x1cb)](readFileSync(join(__dirname,a2_0x3d4a9d(0x23d)),a2_0x3d4a9d(0x245)));}catch{}if(process[a2_0x3d4a9d(0x1f3)][a2_0x3d4a9d(0x354)](a2_0x3d4a9d(0x33b))){let versionOutput='tdx\x20'+packageJson[a2_0x3d4a9d(0x338)];buildInfo[a2_0x3d4a9d(0x31c)]&&(versionOutput+='\x20('+buildInfo[a2_0x3d4a9d(0x31c)]+')'),buildInfo[a2_0x3d4a9d(0x213)]&&(versionOutput+=a2_0x3d4a9d(0x267)+buildInfo[a2_0x3d4a9d(0x213)]),console[a2_0x3d4a9d(0x2a5)](versionOutput),process[a2_0x3d4a9d(0x348)](0x0);}const program=new Command();let description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo['gitRevision']?description+=a2_0x3d4a9d(0x3be)+packageJson[a2_0x3d4a9d(0x338)]+'\x20('+buildInfo[a2_0x3d4a9d(0x31c)]+')':description+=a2_0x3d4a9d(0x3be)+packageJson[a2_0x3d4a9d(0x338)];program['name'](a2_0x3d4a9d(0x24f))[a2_0x3d4a9d(0x1f1)](description),program[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1f2),'Change\x20to\x20directory\x20before\x20executing\x20command')['option'](a2_0x3d4a9d(0x352),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c9),a2_0x3d4a9d(0x278),a2_0x3d4a9d(0x3b1))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x24c),a2_0x3d4a9d(0x2d2))['option'](a2_0x3d4a9d(0x355),a2_0x3d4a9d(0x2f7))['option'](a2_0x3d4a9d(0x308),a2_0x3d4a9d(0x372))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37f),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1e8),a2_0x3d4a9d(0x3bf))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e8),'Save\x20output\x20to\x20file')['option'](a2_0x3d4a9d(0x34e),a2_0x3d4a9d(0x32e))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2f5),a2_0x3d4a9d(0x2c8),![])[a2_0x3d4a9d(0x321)]('--no-color',a2_0x3d4a9d(0x237),![])[a2_0x3d4a9d(0x321)]('-v,\x20--verbose','Enable\x20verbose\x20logging',![])[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2ec),a2_0x3d4a9d(0x370))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1f6),a2_0x3d4a9d(0x214))['option'](a2_0x3d4a9d(0x1eb),a2_0x3d4a9d(0x38f),'30')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x2ef),![])[a2_0x3d4a9d(0x321)]('-y,\x20--yes','Skip\x20confirmation\x20prompts',![])[a2_0x3d4a9d(0x321)]('--session\x20<id>',a2_0x3d4a9d(0x1d8))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ea),'Database\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x3d4a9d(0x281),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3f6),a2_0x3d4a9d(0x405))[a2_0x3d4a9d(0x321)]('--llm-project\x20<name>',a2_0x3d4a9d(0x2b8)),program[a2_0x3d4a9d(0x2b0)]({'formatHelp':(_0x39e2f1,_0x48b9b1)=>{const _0x2e2976=a2_0x3d4a9d,_0x4153f8=_0x48b9b1[_0x2e2976(0x2e6)](_0x39e2f1,_0x48b9b1),_0x157fdf=0x2,_0x4fcd12=0x2;function _0x2851d6(_0x1e6615){const _0x125a28=_0x1e6615;return!!(_0x125a28['_hidden']||_0x125a28['hidden']);}function _0x49a87c(_0x3f2c79,_0x1cf29c){const _0x103c0c=_0x2e2976;if(_0x1cf29c){const _0x381cb5=''+_0x3f2c79[_0x103c0c(0x37d)](_0x4153f8+_0x4fcd12)+_0x1cf29c;return _0x381cb5;}return _0x3f2c79;}function _0xb53278(_0x5cd41c){const _0x2ef3f5=_0x2e2976;return _0x5cd41c[_0x2ef3f5(0x271)]('\x0a')[_0x2ef3f5(0x1e4)](/^/gm,'\x20'[_0x2ef3f5(0x3f1)](_0x157fdf));}const _0x431af7=[];_0x431af7[_0x2e2976(0x317)](_0x2e2976(0x1d7)+_0x48b9b1[_0x2e2976(0x2fe)](_0x39e2f1));const _0x18e54a=_0x48b9b1[_0x2e2976(0x413)](_0x39e2f1);_0x18e54a&&(_0x431af7[_0x2e2976(0x317)](''),_0x431af7[_0x2e2976(0x317)](_0x18e54a));const _0x2e5e50=_0x39e2f1[_0x2e2976(0x3ea)][_0x2e2976(0x399)](_0x12e726=>!_0x2851d6(_0x12e726));if(_0x2e5e50[_0x2e2976(0x1fb)]>0x0){if(_0x39e2f1[_0x2e2976(0x3da)]()===_0x2e2976(0x24f)){const _0x1e8e8d=_0x39e2f1[_0x2e2976(0x289)](),_0x991b53=!_0x1e8e8d[_0x2e2976(0x1de)]&&process[_0x2e2976(0x332)]['isTTY'],_0x2e1aed=COMMAND_CATEGORIES,_0x2c5b7a=(_0xd11cb,_0x1dfe8f)=>_0x991b53?_0x1dfe8f(_0xd11cb):_0xd11cb,_0x5ccc77=new Map();_0x2e5e50['forEach'](_0x20b64a=>{const _0x31c262=_0x2e2976;_0x5ccc77[_0x31c262(0x365)](_0x20b64a[_0x31c262(0x3da)](),_0x20b64a);}),_0x2e1aed['forEach'](_0x1b4537=>{const _0x1eceeb=_0x2e2976,_0x102d36=_0x1b4537['commands'][_0x1eceeb(0x334)](_0x514e0a=>_0x5ccc77[_0x1eceeb(0x3bd)](_0x514e0a)??[]);if(_0x102d36[_0x1eceeb(0x1fb)]>0x0){_0x431af7[_0x1eceeb(0x317)](''),_0x431af7[_0x1eceeb(0x317)](_0x2c5b7a(_0x1b4537[_0x1eceeb(0x3da)]+':',_0x1b4537[_0x1eceeb(0x327)]));const _0x4f9f21=_0x102d36[_0x1eceeb(0x252)](_0x4eb9bf=>{const _0x3496e7=_0x1eceeb,_0xbbd344=_0x48b9b1[_0x3496e7(0x39c)](_0x4eb9bf),_0x44d593=_0x48b9b1[_0x3496e7(0x250)](_0x4eb9bf);return _0x49a87c(_0xbbd344,_0x44d593);});_0x431af7['push'](_0xb53278(_0x4f9f21));}}),_0x431af7[_0x2e2976(0x317)](''),_0x431af7['push'](_0x2e2976(0x40b));}else{const _0x2a33cc=_0x2e5e50[_0x2e2976(0x252)](_0x32a749=>{const _0x3eb18a=_0x2e2976,_0x304e22=_0x48b9b1[_0x3eb18a(0x39c)](_0x32a749),_0x55409e=_0x48b9b1[_0x3eb18a(0x250)](_0x32a749);return _0x49a87c(_0x304e22,_0x55409e);});_0x431af7[_0x2e2976(0x317)](''),_0x431af7['push'](_0x2e2976(0x241)),_0x431af7[_0x2e2976(0x317)](_0xb53278(_0x2a33cc));}}const _0x239d90=_0x39e2f1[_0x2e2976(0x32b)][_0x2e2976(0x399)](_0x2bb343=>!_0x2851d6(_0x2bb343));if(_0x239d90[_0x2e2976(0x1fb)]>0x0){const _0x46856c=_0x239d90[_0x2e2976(0x252)](_0x53d454=>{const _0x28bc73=_0x2e2976,_0x670cfc=_0x48b9b1[_0x28bc73(0x3d4)](_0x53d454),_0x5d5755=_0x48b9b1[_0x28bc73(0x2f4)](_0x53d454);return _0x49a87c(_0x670cfc,_0x5d5755);});_0x431af7[_0x2e2976(0x317)](''),_0x431af7['push'](_0x2e2976(0x29a)),_0x431af7[_0x2e2976(0x317)](_0xb53278(_0x46856c));}const _0x2dd5ca=(_0x39e2f1['registeredArguments']||[])[_0x2e2976(0x399)](_0x14c63c=>!_0x2851d6(_0x14c63c));if(_0x2dd5ca['length']>0x0){const _0x4ae0cb=_0x2dd5ca['map'](_0x1893e5=>{const _0x253ca7=_0x2e2976,_0x5d9734=_0x48b9b1[_0x253ca7(0x3df)](_0x1893e5),_0xf0bdfd=_0x48b9b1[_0x253ca7(0x1db)](_0x1893e5);return _0x49a87c(_0x5d9734,_0xf0bdfd);});_0x431af7[_0x2e2976(0x317)](''),_0x431af7[_0x2e2976(0x317)](_0x2e2976(0x1e0)),_0x431af7[_0x2e2976(0x317)](_0xb53278(_0x4ae0cb));}return _0x431af7[_0x2e2976(0x271)]('\x0a');},'subcommandTerm':_0x4fffd5=>{const _0x26dc8f=a2_0x3d4a9d,_0x86998e=(_0x4fffd5[_0x26dc8f(0x1c4)]||[])['map'](_0x27eac9=>_0x27eac9['required']?'<'+_0x27eac9[_0x26dc8f(0x3da)]()+'>':'['+_0x27eac9[_0x26dc8f(0x3da)]()+']')[_0x26dc8f(0x271)]('\x20'),_0x3242f4=_0x4fffd5['aliases'](),_0x2b5fd1=_0x3242f4[_0x26dc8f(0x1fb)]>0x0?_0x4fffd5['name']()+',\x20'+_0x3242f4[_0x26dc8f(0x271)](',\x20'):_0x4fffd5['name']();return _0x86998e?_0x2b5fd1+'\x20'+_0x86998e:_0x2b5fd1;}}),program[a2_0x3d4a9d(0x2c9)](a2_0x3d4a9d(0x3d6),_0x4bb9a2=>{const _0x44d440=a2_0x3d4a9d,_0x40bcab=_0x4bb9a2[_0x44d440(0x289)]();if(_0x40bcab['directory']){const _0x26b1c6=resolve(_0x40bcab['directory']),_0x103e2d=_0x26b1c6!==_0x40bcab[_0x44d440(0x2ce)]?_0x44d440(0x2fc)+_0x26b1c6+')':'';if(!existsSync(_0x26b1c6))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Directory\x20does\x20not\x20exist:\x20'+_0x40bcab['directory']+_0x103e2d,undefined,{'helpText':_0x44d440(0x1f7)});const _0x19ea19=statSync(_0x26b1c6);if(!_0x19ea19[_0x44d440(0x2b5)]())throw new SDKError(ErrorCode[_0x44d440(0x414)],_0x44d440(0x359)+_0x40bcab['directory']+_0x103e2d,undefined,{'helpText':_0x44d440(0x2d1)});process[_0x44d440(0x391)](_0x26b1c6);}if(!_0x40bcab['format']){if(_0x40bcab[_0x44d440(0x225)])_0x40bcab[_0x44d440(0x1d9)]=_0x44d440(0x225);else{if(_0x40bcab[_0x44d440(0x402)])_0x40bcab['format']=_0x44d440(0x402);else{if(_0x40bcab[_0x44d440(0x33c)])_0x40bcab[_0x44d440(0x1d9)]=_0x44d440(0x33c);else _0x40bcab[_0x44d440(0x2e5)]&&(_0x40bcab[_0x44d440(0x1d9)]=_0x44d440(0x2e5));}}}_0x40bcab['in']&&!_0x40bcab[_0x44d440(0x208)]&&(_0x40bcab[_0x44d440(0x208)]=_0x40bcab['in']);if(_0x40bcab['trace'])_0x40bcab[_0x44d440(0x29e)]=LogLevel[_0x44d440(0x1d5)];else{if(_0x40bcab[_0x44d440(0x2d8)])_0x40bcab[_0x44d440(0x29e)]=LogLevel[_0x44d440(0x224)];else _0x40bcab['logLevel']===undefined&&(_0x40bcab[_0x44d440(0x29e)]=LogLevel[_0x44d440(0x3b4)]);}});async function createTDXInstance(_0x36199c){const _0x291528=a2_0x3d4a9d,_0xf487b0=await GlobalContext[_0x291528(0x221)](_0x36199c);return _0xf487b0[_0x291528(0x313)](_0x36199c),TDX['create']({'site':_0xf487b0[_0x291528(0x403)],'apiKey':_0xf487b0['apiKey'],'logLevel':_0xf487b0[_0x291528(0x29e)],'profile':_0xf487b0[_0x291528(0x33d)]});}const databaseCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x208))['alias']('db')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x294)),databaseListAction=async(_0x4c5da7,_0x6f2535)=>{const _0xe17225=a2_0x3d4a9d,_0x30aa3a=new DatabasesCommand(),_0x42cc82=program[_0xe17225(0x289)](),_0x10832d=await createTDXInstance(_0x42cc82),_0x8a0914=await _0x30aa3a[_0xe17225(0x1c9)]({'options':{..._0x42cc82,..._0x6f2535},'args':_0x4c5da7?[_0x4c5da7]:[],'tdx':_0x10832d});process[_0xe17225(0x348)](_0x8a0914);};databaseCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3d4a9d(0x26e)](databaseListAction),program[a2_0x3d4a9d(0x27d)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x3d4a9d(0x1f1)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x3d4a9d(0x26e)](databaseListAction),program['command'](a2_0x3d4a9d(0x377))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3d7))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2cc),'Agent\x20reference\x20(project-name/agent-name)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x30f),a2_0x3d4a9d(0x371))[a2_0x3d4a9d(0x26e)](async(_0x4cb577,_0x4f42af)=>{const _0x5ef2b2=a2_0x3d4a9d,_0xb76f9a=new ChatCommand(),_0x10b9ad=program[_0x5ef2b2(0x289)](),_0x4e23aa=await createTDXInstance(_0x10b9ad),_0xffba8a=await _0xb76f9a[_0x5ef2b2(0x1c9)]({'options':{..._0x10b9ad,..._0x4f42af},'args':_0x4cb577,'tdx':_0x4e23aa});process[_0x5ef2b2(0x348)](_0xffba8a);});const apiCmd=program['command'](a2_0x3d4a9d(0x375))[a2_0x3d4a9d(0x3fd)](a2_0x3d4a9d(0x25f))[a2_0x3d4a9d(0x2c0)](a2_0x3d4a9d(0x217),a2_0x3d4a9d(0x227))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2a2),a2_0x3d4a9d(0x2cf),a2_0x3d4a9d(0x306))[a2_0x3d4a9d(0x321)]('--data\x20<data>',a2_0x3d4a9d(0x2d9))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x311),'Read\x20request\x20body\x20from\x20file')['option'](a2_0x3d4a9d(0x33e),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x5d6818,_0x281aee)=>{return _0x281aee?[..._0x281aee,_0x5d6818]:[_0x5d6818];})[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3bc),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x3d4a9d(0x26e)](async(_0x56cea0,_0xf134d8)=>{const _0x1eed34=a2_0x3d4a9d;if(!_0x56cea0){apiCmd[_0x1eed34(0x26b)]();return;}const _0x444667=new ApiCommand(),_0x560376=program[_0x1eed34(0x289)](),_0x50571e=await createTDXInstance(_0x560376),_0x2ee00d=await _0x444667[_0x1eed34(0x1c9)]({'options':{..._0x560376,..._0xf134d8},'args':[_0x56cea0],'tdx':_0x50571e});process[_0x1eed34(0x348)](_0x2ee00d);}),tableCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x225))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x1fe)),tableListAction=async(_0x3a40fd,_0x336159)=>{const _0x3df8fe=a2_0x3d4a9d,_0x5e7d32=new TablesCommand(),_0x41755c=program[_0x3df8fe(0x289)](),_0x41a504=await createTDXInstance(_0x41755c);_0x336159['in']&&(_0x336159[_0x3df8fe(0x208)]=_0x336159['in']);const _0x10aecb=await _0x5e7d32[_0x3df8fe(0x1c9)]({'options':{..._0x41755c,..._0x336159},'args':_0x3a40fd?[_0x3a40fd]:[],'tdx':_0x41a504});process[_0x3df8fe(0x348)](_0x10aecb);};tableCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x32c))[a2_0x3d4a9d(0x321)]('-d,\x20--database\x20<database>',a2_0x3d4a9d(0x3c5))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3a6),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x26e)](tableListAction),program['command'](a2_0x3d4a9d(0x3de),{'hidden':!![]})['description'](a2_0x3d4a9d(0x37a))[a2_0x3d4a9d(0x321)]('-d,\x20--database\x20<database>',a2_0x3d4a9d(0x3c5))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3a6),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x26e)](tableListAction),program['command'](a2_0x3d4a9d(0x36f))[a2_0x3d4a9d(0x1f1)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e0),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3a6),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x26e)](async(_0x1d6e46,_0x1ba85d)=>{const _0xebd5f0=a2_0x3d4a9d,_0x218b63=new ShowCommand(),_0x4d0d39=program['opts'](),_0x3e4d46=await createTDXInstance(_0x4d0d39);_0x1ba85d['in']&&(_0x1ba85d[_0xebd5f0(0x208)]=_0x1ba85d['in']);const _0x49e13a=await _0x218b63['run']({'options':{..._0x4d0d39,..._0x1ba85d},'args':_0x1d6e46?[_0x1d6e46]:[],'tdx':_0x3e4d46});process['exit'](_0x49e13a);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x28e))[a2_0x3d4a9d(0x295)](a2_0x3d4a9d(0x388))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x360))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e0),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3d4a9d(0x321)]('--in\x20<database>',a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x26e)](async(_0x7c741,_0x4ffe1a)=>{const _0x57ac83=a2_0x3d4a9d,_0x1a0e04=new DescribeCommand(),_0x43605e=program[_0x57ac83(0x289)](),_0x3d1035=await createTDXInstance(_0x43605e);_0x4ffe1a['in']&&(_0x4ffe1a[_0x57ac83(0x208)]=_0x4ffe1a['in']);const _0x2d0f3b=await _0x1a0e04[_0x57ac83(0x1c9)]({'options':{..._0x43605e,..._0x4ffe1a},'args':_0x7c741?[_0x7c741]:[],'tdx':_0x3d1035});process['exit'](_0x2d0f3b);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2a6))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x390))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e0),a2_0x3d4a9d(0x336))['option'](a2_0x3d4a9d(0x3a6),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x366),a2_0x3d4a9d(0x21f))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x311),a2_0x3d4a9d(0x249))[a2_0x3d4a9d(0x321)]('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x3d4a9d(0x26e)](async(_0x2254a7,_0x8a114e)=>{const _0x4f63f4=a2_0x3d4a9d,_0x5245c1=new QueryCommand(),_0x39b0a6=program[_0x4f63f4(0x289)](),_0x3e9817=await createTDXInstance(_0x39b0a6);_0x8a114e['in']&&(_0x8a114e[_0x4f63f4(0x208)]=_0x8a114e['in']);const _0x540add=await _0x5245c1[_0x4f63f4(0x1c9)]({'options':{..._0x39b0a6,..._0x8a114e},'args':_0x2254a7?[_0x2254a7]:[],'tdx':_0x3e9817});process[_0x4f63f4(0x348)](_0x540add);});const segmentCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1e1))['alias']('sg')[a2_0x3d4a9d(0x1f1)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x45467e,_0x31c96d)=>{const _0x17b3fe=a2_0x3d4a9d,_0x2f2b3a=new SegmentsCommand(),_0x8fb83f=program[_0x17b3fe(0x289)](),_0x121d05=await createTDXInstance(_0x8fb83f),_0x21c065=await _0x2f2b3a['run']({'options':{..._0x8fb83f,..._0x31c96d},'args':_0x45467e?[_0x45467e]:[],'tdx':_0x121d05});process[_0x17b3fe(0x348)](_0x21c065);};segmentCmd[a2_0x3d4a9d(0x27d)]('list\x20[path]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x40c))[a2_0x3d4a9d(0x321)]('-r,\x20--recursive',a2_0x3d4a9d(0x40e))['option']('--max-depth\x20<depth>',a2_0x3d4a9d(0x1c7),'10')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x1d1))[a2_0x3d4a9d(0x26e)](segmentListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x378),{'hidden':!![]})['description'](a2_0x3d4a9d(0x35f))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25d),a2_0x3d4a9d(0x40e))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ca),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['option'](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x1d1))['action'](segmentListAction),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x34f),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x386))[a2_0x3d4a9d(0x26e)](async(_0x3ce009,_0x277695)=>{const _0x128c9e=a2_0x3d4a9d,_0x5ec20d=new SegmentUseCommand(),_0x3c1355=program['opts'](),_0x482779=await createTDXInstance(_0x3c1355),_0x1c79f2=await _0x5ec20d[_0x128c9e(0x1c9)]({'options':{..._0x3c1355,..._0x277695},'args':[_0x3ce009],'tdx':_0x482779});process[_0x128c9e(0x348)](_0x1c79f2);});const segmentViewAction=async(_0x1a136f,_0x4988ba)=>{const _0x1a7a67=a2_0x3d4a9d,_0x4c2ee0=new SegmentViewCommand(),_0x2c84f2=program[_0x1a7a67(0x289)](),_0x31feb5=await createTDXInstance(_0x2c84f2),_0x5f177d=await _0x4c2ee0['run']({'options':{..._0x2c84f2,..._0x4988ba},'args':_0x1a136f?[_0x1a136f]:[],'tdx':_0x31feb5});process['exit'](_0x5f177d);};segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3a7))[a2_0x3d4a9d(0x1f1)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x383))[a2_0x3d4a9d(0x26e)](segmentViewAction),segmentCmd['command']('info\x20[segment_name]',{'hidden':!![]})[a2_0x3d4a9d(0x295)](a2_0x3d4a9d(0x2dd))['option']('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x20a))['action'](segmentViewAction),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3b8))[a2_0x3d4a9d(0x1f1)]('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x3d4a9d(0x26e)](async(_0x18ccfc,_0x1ea8f8)=>{const _0x16b1d9=a2_0x3d4a9d,_0x8aa774=new SegmentDescCommand(),_0x56302f=program[_0x16b1d9(0x289)](),_0x4bcf26=await createTDXInstance(_0x56302f),_0x322a8f=await _0x8aa774[_0x16b1d9(0x1c9)]({'options':{..._0x56302f,..._0x1ea8f8},'args':_0x18ccfc?[_0x18ccfc]:[],'tdx':_0x4bcf26});process[_0x16b1d9(0x348)](_0x322a8f);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2c6))['description'](a2_0x3d4a9d(0x207))[a2_0x3d4a9d(0x26e)](async(_0x5876bc,_0x3d6083)=>{const _0x4b8ad8=a2_0x3d4a9d,_0x3bd845=new SegmentShowCommand(),_0x386d2a=program[_0x4b8ad8(0x289)](),_0x5c9ccc=await createTDXInstance(_0x386d2a),_0x4e3138=await _0x3bd845[_0x4b8ad8(0x1c9)]({'options':{..._0x386d2a,..._0x3d6083},'args':_0x5876bc?[_0x5876bc]:[],'tdx':_0x5c9ccc});process[_0x4b8ad8(0x348)](_0x4e3138);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x243),{'hidden':!![]})['description'](a2_0x3d4a9d(0x350))[a2_0x3d4a9d(0x26e)](async(_0x3ed535,_0x35c107)=>{const _0x350e5a=a2_0x3d4a9d,_0x24ba50=new SegmentFolderListCommand(),_0xec0c25=program[_0x350e5a(0x289)](),_0x830f67=await createTDXInstance(_0xec0c25),_0x23026a=await _0x24ba50['run']({'options':{..._0xec0c25,..._0x35c107},'args':[_0x3ed535],'tdx':_0x830f67});process['exit'](_0x23026a);});const folderCmd=segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1ef),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x30d))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2c7))[a2_0x3d4a9d(0x26e)](async(_0x232dca,_0x45ba7c)=>{const _0x194e15=a2_0x3d4a9d,_0x54afcc=new SegmentFolderShowCommand(),_0x4703b1=program[_0x194e15(0x289)](),_0x332a80=await createTDXInstance(_0x4703b1),_0x22c4e5=await _0x54afcc[_0x194e15(0x1c9)]({'options':{..._0x4703b1,..._0x45ba7c},'args':[_0x232dca],'tdx':_0x332a80});process[_0x194e15(0x348)](_0x22c4e5);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2bf))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2fd))[a2_0x3d4a9d(0x26e)](async(_0x433d01,_0x5c3bef)=>{const _0x22a807=a2_0x3d4a9d,_0x769947=new SegmentSQLCommand(),_0x949c55=program[_0x22a807(0x289)](),_0x4bd1ed=await createTDXInstance(_0x949c55),_0x5a2db2=await _0x769947[_0x22a807(0x1c9)]({'options':{..._0x949c55,..._0x5c3bef},'args':_0x433d01?[_0x433d01]:[],'tdx':_0x4bd1ed});process['exit'](_0x5a2db2);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x328))[a2_0x3d4a9d(0x1f1)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x3d4a9d(0x26e)](async(_0x33884e,_0x2cb676)=>{const _0x3f9fdf=a2_0x3d4a9d,_0x771943=new SegmentFieldsCommand(),_0x5e3d19=program[_0x3f9fdf(0x289)](),_0x113dac=await createTDXInstance(_0x5e3d19),_0xc339ff=await _0x771943[_0x3f9fdf(0x1c9)]({'options':{..._0x5e3d19,..._0x2cb676},'args':_0x33884e?[_0x33884e]:[],'tdx':_0x113dac});process[_0x3f9fdf(0x348)](_0xc339ff);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x21b))[a2_0x3d4a9d(0x1f1)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x279))[a2_0x3d4a9d(0x321)]('--dry-run',a2_0x3d4a9d(0x2af))['action'](async(_0x3ab348,_0x395c7d)=>{const _0x12b658=a2_0x3d4a9d,_0x1e9929=new SegmentPullCommand(),_0x596342=program[_0x12b658(0x289)](),_0x54cece=await createTDXInstance(_0x596342),_0x5c272b=await _0x1e9929['run']({'options':{..._0x596342,..._0x395c7d},'args':_0x3ab348?[_0x3ab348]:[],'tdx':_0x54cece});process[_0x12b658(0x348)](_0x5c272b);}),segmentCmd[a2_0x3d4a9d(0x27d)]('push\x20[parent_or_file]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x35c))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x279))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x2af))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1d3),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x3d4a9d(0x26e)](async(_0x29900d,_0x483505)=>{const _0x4d7107=a2_0x3d4a9d,_0x1af324=new SegmentPushCommand(),_0x155fbb=program['opts'](),_0x458a15=await createTDXInstance(_0x155fbb),_0x387fc6=await _0x1af324[_0x4d7107(0x1c9)]({'options':{..._0x155fbb,..._0x483505},'args':_0x29900d?[_0x29900d]:[],'tdx':_0x458a15});process['exit'](_0x387fc6);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3c0))['description'](a2_0x3d4a9d(0x3cc))['action'](async(_0x1fe2b6,_0x1b8237)=>{const _0x3d021c=a2_0x3d4a9d,_0x169216=new SegmentValidateCommand(),_0x1f7799=program[_0x3d021c(0x289)](),_0x1d5247=await createTDXInstance(_0x1f7799),_0x96cff0=await _0x169216[_0x3d021c(0x1c9)]({'options':{..._0x1f7799,..._0x1b8237},'args':_0x1fe2b6?[_0x1fe2b6]:[],'tdx':_0x1d5247});process[_0x3d021c(0x348)](_0x96cff0);}),segmentCmd['command'](a2_0x3d4a9d(0x3e1),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x3e4))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2e3),a2_0x3d4a9d(0x314))['option']('--rule-file\x20<file>',a2_0x3d4a9d(0x30a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x36a),a2_0x3d4a9d(0x3a3))['option'](a2_0x3d4a9d(0x31e),a2_0x3d4a9d(0x26f))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e6),a2_0x3d4a9d(0x30c))['option']('--no-count-population','Skip\x20population\x20counting')[a2_0x3d4a9d(0x26e)](async(_0x138703,_0x43c89a)=>{const _0x2b868b=a2_0x3d4a9d,_0x28f01f=new SegmentCreateCommand(),_0x44fb1c=program['opts'](),_0x10fe9e=await createTDXInstance(_0x44fb1c),_0x2a2f50=await _0x28f01f[_0x2b868b(0x1c9)]({'options':{..._0x44fb1c,..._0x43c89a},'args':[_0x138703],'tdx':_0x10fe9e});process[_0x2b868b(0x348)](_0x2a2f50);}),segmentCmd['command'](a2_0x3d4a9d(0x29d),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2b6))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2da),a2_0x3d4a9d(0x3a1))['option'](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x3c7))['option']('--rule\x20<json>',a2_0x3d4a9d(0x1cc))[a2_0x3d4a9d(0x321)]('--rule-file\x20<file>',a2_0x3d4a9d(0x1dd))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x36a),a2_0x3d4a9d(0x231))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x31e),a2_0x3d4a9d(0x26f))[a2_0x3d4a9d(0x26e)](async(_0x3288c2,_0x5788a0)=>{const _0x541650=a2_0x3d4a9d,_0x3689b5=new SegmentUpdateCommand(),_0x47b899=program[_0x541650(0x289)](),_0x3e06e3=await createTDXInstance(_0x47b899),_0x10fbfe=await _0x3689b5['run']({'options':{..._0x47b899,..._0x5788a0},'args':[_0x3288c2],'tdx':_0x3e06e3});process[_0x541650(0x348)](_0x10fbfe);});const parentCmd=segmentCmd[a2_0x3d4a9d(0x27d)]('parent',{'hidden':!![]})['description'](a2_0x3d4a9d(0x2d7)),parentListAction=async(_0x133af4,_0x571bf9)=>{const _0x37be6e=a2_0x3d4a9d,_0xc8e0b2=new ParentSegmentListCommand(),_0x2ca9fa=program[_0x37be6e(0x289)](),_0x6de407=await createTDXInstance(_0x2ca9fa),_0x5ce1e6=await _0xc8e0b2[_0x37be6e(0x1c9)]({'options':{..._0x2ca9fa,..._0x571bf9},'args':_0x133af4?[_0x133af4]:[],'tdx':_0x6de407});process[_0x37be6e(0x348)](_0x5ce1e6);};parentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x30e))[a2_0x3d4a9d(0x26e)](parentListAction),segmentCmd['command'](a2_0x3d4a9d(0x346),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x325))[a2_0x3d4a9d(0x26e)](parentListAction),parentCmd[a2_0x3d4a9d(0x27d)]('pull\x20[name]')[a2_0x3d4a9d(0x1f1)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x398),a2_0x3d4a9d(0x219))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),'Skip\x20confirmation\x20prompt')['action'](async(_0x301154,_0x3a40b3)=>{const _0x52806c=a2_0x3d4a9d,_0xd975de=new ParentSegmentPullCommand(),_0x150575=program['opts'](),_0x5d7156=await createTDXInstance(_0x150575),_0x506d5e=await _0xd975de[_0x52806c(0x1c9)]({'options':{..._0x150575,..._0x3a40b3},'args':_0x301154?[_0x301154]:[],'tdx':_0x5d7156});process[_0x52806c(0x348)](_0x506d5e);}),parentCmd['command'](a2_0x3d4a9d(0x380))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3e9))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x1046e4,_0x2a37e1)=>{const _0xbb1b0c=a2_0x3d4a9d,_0x1070a3=new ParentSegmentPushCommand(),_0x3c7cda=program[_0xbb1b0c(0x289)](),_0x4accd7=await createTDXInstance(_0x3c7cda),_0x508b9d=await _0x1070a3[_0xbb1b0c(0x1c9)]({'options':{..._0x3c7cda,..._0x2a37e1},'args':_0x1046e4?[_0x1046e4]:[],'tdx':_0x4accd7});process['exit'](_0x508b9d);}),parentCmd['command'](a2_0x3d4a9d(0x419))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3c3))[a2_0x3d4a9d(0x321)]('--master','Show\x20only\x20master\x20table\x20validation')[a2_0x3d4a9d(0x321)]('--attribute\x20[name]',a2_0x3d4a9d(0x2b2))['option']('--behavior\x20[name]',a2_0x3d4a9d(0x301))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ce),a2_0x3d4a9d(0x38a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22d),a2_0x3d4a9d(0x3a9),a2_0x3d4a9d(0x331))[a2_0x3d4a9d(0x26e)](async(_0x71c7bd,_0x247b73)=>{const _0x1920f5=a2_0x3d4a9d,_0x29884c=new ParentSegmentValidateCommand(),_0x4db694=program['opts'](),_0x45290d=await createTDXInstance(_0x4db694),_0x4c5b6d=await _0x29884c['run']({'options':{..._0x4db694,..._0x247b73},'args':_0x71c7bd?[_0x71c7bd]:[],'tdx':_0x45290d});process[_0x1920f5(0x348)](_0x4c5b6d);}),parentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3ad))['description'](a2_0x3d4a9d(0x351))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2f1),a2_0x3d4a9d(0x23a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25e),a2_0x3d4a9d(0x293))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x31f),a2_0x3d4a9d(0x40d))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ce),a2_0x3d4a9d(0x3c8))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22d),a2_0x3d4a9d(0x3a9),a2_0x3d4a9d(0x331))[a2_0x3d4a9d(0x26e)](async(_0x4a7081,_0x7cc8b9)=>{const _0x467cc0=a2_0x3d4a9d,_0x1cc8ef=new ParentSegmentPreviewCommand(),_0x293fc0=program[_0x467cc0(0x289)](),_0x96c125=await createTDXInstance(_0x293fc0),_0x115c47=await _0x1cc8ef[_0x467cc0(0x1c9)]({'options':{..._0x293fc0,..._0x7cc8b9},'args':_0x4a7081?[_0x4a7081]:[],'tdx':_0x96c125});process['exit'](_0x115c47);}),parentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x263))[a2_0x3d4a9d(0x1f1)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x4a6a2b,_0x10dc68)=>{const _0x527cd8=a2_0x3d4a9d,_0x3a1f98=new ParentSegmentRunCommand(),_0x2ae4ca=program[_0x527cd8(0x289)](),_0x270e82=await createTDXInstance(_0x2ae4ca),_0x1c6aa5=await _0x3a1f98[_0x527cd8(0x1c9)]({'options':{..._0x2ae4ca,..._0x10dc68},'args':_0x4a6a2b?[_0x4a6a2b]:[],'tdx':_0x270e82});process[_0x527cd8(0x348)](_0x1c6aa5);});const parentSegmentCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2be))[a2_0x3d4a9d(0x295)]('ps')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3e2));parentSegmentCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x30e))[a2_0x3d4a9d(0x26e)](parentListAction),parentSegmentCmd['command'](a2_0x3d4a9d(0x2ea))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x215))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x398),'Output\x20file\x20path')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3ed),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x3d4a9d(0x26e)](async(_0x2f6e83,_0x397601)=>{const _0x2302b3=a2_0x3d4a9d,_0x27b5ef=new ParentSegmentPullCommand(),_0x389a4b=program[_0x2302b3(0x289)](),_0x218fee=await createTDXInstance(_0x389a4b),_0x12f65e=await _0x27b5ef[_0x2302b3(0x1c9)]({'options':{..._0x389a4b,..._0x397601},'args':_0x2f6e83?[_0x2f6e83]:[],'tdx':_0x218fee});process[_0x2302b3(0x348)](_0x12f65e);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x220))[a2_0x3d4a9d(0x1f1)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3d4a9d(0x321)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x3d4a9d(0x26e)](async(_0x408709,_0x493433)=>{const _0xd7a18e=a2_0x3d4a9d,_0x5a33fe=new ParentSegmentPushCommand(),_0x42cbca=program[_0xd7a18e(0x289)](),_0x556936=await createTDXInstance(_0x42cbca),_0x1f5b55=await _0x5a33fe[_0xd7a18e(0x1c9)]({'options':{..._0x42cbca,..._0x493433},'args':_0x408709?[_0x408709]:[],'tdx':_0x556936});process['exit'](_0x1f5b55);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x397))[a2_0x3d4a9d(0x1f1)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2f1),a2_0x3d4a9d(0x1c8))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25e),a2_0x3d4a9d(0x2b2))['option'](a2_0x3d4a9d(0x31f),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ce),a2_0x3d4a9d(0x38a))[a2_0x3d4a9d(0x321)]('--interval\x20<range>',a2_0x3d4a9d(0x3a9),'-1d')[a2_0x3d4a9d(0x26e)](async(_0x9eb07e,_0x2023b0)=>{const _0x2fd40b=a2_0x3d4a9d,_0x30378b=new ParentSegmentValidateCommand(),_0x2c98b0=program['opts'](),_0x40d5f8=await createTDXInstance(_0x2c98b0),_0x489e46=await _0x30378b['run']({'options':{..._0x2c98b0,..._0x2023b0},'args':_0x9eb07e?[_0x9eb07e]:[],'tdx':_0x40d5f8});process[_0x2fd40b(0x348)](_0x489e46);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x27c))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x351))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2f1),a2_0x3d4a9d(0x23a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25e),a2_0x3d4a9d(0x293))['option'](a2_0x3d4a9d(0x31f),a2_0x3d4a9d(0x40d))[a2_0x3d4a9d(0x321)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22d),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3d4a9d(0x331))['action'](async(_0x41c7e3,_0x27f61e)=>{const _0x26e64c=a2_0x3d4a9d,_0x39e5b8=new ParentSegmentPreviewCommand(),_0xd97a46=program[_0x26e64c(0x289)](),_0x5962a3=await createTDXInstance(_0xd97a46),_0x388b36=await _0x39e5b8[_0x26e64c(0x1c9)]({'options':{..._0xd97a46,..._0x27f61e},'args':_0x41c7e3?[_0x41c7e3]:[],'tdx':_0x5962a3});process[_0x26e64c(0x348)](_0x388b36);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)]('run\x20[name]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2f6))['option'](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x2265a4,_0x36a674)=>{const _0x11d1f7=a2_0x3d4a9d,_0x56c25a=new ParentSegmentRunCommand(),_0xad3544=program['opts'](),_0xeb921a=await createTDXInstance(_0xad3544),_0x320d10=await _0x56c25a[_0x11d1f7(0x1c9)]({'options':{..._0xad3544,..._0x36a674},'args':_0x2265a4?[_0x2265a4]:[],'tdx':_0xeb921a});process[_0x11d1f7(0x348)](_0x320d10);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)]('fields\x20[name]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x38c))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x308),a2_0x3d4a9d(0x270))[a2_0x3d4a9d(0x321)]('--jsonl',a2_0x3d4a9d(0x2ee))[a2_0x3d4a9d(0x26e)](async(_0x5c6629,_0x39bfc2)=>{const _0x268bc4=a2_0x3d4a9d,_0x473a0f=new ParentSegmentFieldsCommand(),_0x18535d=program[_0x268bc4(0x289)](),_0x29cf00=await createTDXInstance(_0x18535d),_0x36b262=await _0x473a0f[_0x268bc4(0x1c9)]({'options':{..._0x18535d,..._0x39bfc2},'args':_0x5c6629?[_0x5c6629]:[],'tdx':_0x29cf00});process[_0x268bc4(0x348)](_0x36b262);}),parentSegmentCmd['command'](a2_0x3d4a9d(0x216))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2a4))[a2_0x3d4a9d(0x321)]('-w,\x20--web','Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x3d4a9d(0x321)]('--json',a2_0x3d4a9d(0x270))[a2_0x3d4a9d(0x321)]('--jsonl',a2_0x3d4a9d(0x2ee))[a2_0x3d4a9d(0x26e)](async(_0x5c0594,_0x1d261b)=>{const _0x92e579=a2_0x3d4a9d,_0x1990b1=new ParentSegmentViewCommand(),_0x239ab4=program[_0x92e579(0x289)](),_0x37cbd9=await createTDXInstance(_0x239ab4),_0x5bede7=await _0x1990b1['run']({'options':{..._0x239ab4,..._0x1d261b},'args':_0x5c0594?[_0x5c0594]:[],'tdx':_0x37cbd9});process[_0x92e579(0x348)](_0x5bede7);}),parentSegmentCmd['command'](a2_0x3d4a9d(0x2a9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2ca))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x308),'Output\x20as\x20JSON')[a2_0x3d4a9d(0x321)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x3d4a9d(0x26e)](async(_0x1a27ce,_0x4ea41b)=>{const _0x403521=a2_0x3d4a9d,_0x1cf1b3=new ParentSegmentDescCommand(),_0x49c46e=program['opts'](),_0x164dbc=await createTDXInstance(_0x49c46e),_0x374d8d=await _0x1cf1b3[_0x403521(0x1c9)]({'options':{..._0x49c46e,..._0x4ea41b},'args':_0x1a27ce?[_0x1a27ce]:[],'tdx':_0x164dbc});process['exit'](_0x374d8d);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2db))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2a8))[a2_0x3d4a9d(0x321)]('--json',a2_0x3d4a9d(0x270))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37f),'Output\x20as\x20JSON\x20Lines')[a2_0x3d4a9d(0x26e)](async(_0x3b6dee,_0x341c2d)=>{const _0x377d60=a2_0x3d4a9d,_0x288cef=new ParentSegmentSQLCommand(),_0x27fe21=program[_0x377d60(0x289)](),_0x27fa1c=await createTDXInstance(_0x27fe21),_0x5e8945=await _0x288cef[_0x377d60(0x1c9)]({'options':{..._0x27fe21,..._0x341c2d},'args':_0x3b6dee?[_0x3b6dee]:[],'tdx':_0x27fa1c});process[_0x377d60(0x348)](_0x5e8945);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3ee))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2bd))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x292),a2_0x3d4a9d(0x302))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x308),a2_0x3d4a9d(0x270))[a2_0x3d4a9d(0x321)]('--jsonl',a2_0x3d4a9d(0x2ee))[a2_0x3d4a9d(0x26e)](async(_0xafd388,_0xcdde4f)=>{const _0x3df5d1=a2_0x3d4a9d,_0x3a5bdb=new ParentSegmentShowCommand(),_0x17c694=program[_0x3df5d1(0x289)](),_0x312753=await createTDXInstance(_0x17c694),_0x227d59=await _0x3a5bdb[_0x3df5d1(0x1c9)]({'options':{..._0x17c694,..._0xcdde4f},'args':_0xafd388?[_0xafd388]:[],'tdx':_0x312753});process[_0x3df5d1(0x348)](_0x227d59);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2c2))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3d5))[a2_0x3d4a9d(0x26e)](async(_0x4c243c,_0x5dd2b2)=>{const _0x4f7b48=a2_0x3d4a9d,_0x12aebc=new UseCommand(),_0x2a8f7a=program['opts'](),_0x25a889=_0x4c243c?[_0x4f7b48(0x1f8),_0x4c243c]:[],_0xba9331=await _0x12aebc[_0x4f7b48(0x1c9)]({'options':{..._0x2a8f7a,..._0x5dd2b2},'args':_0x25a889,'tdx':null});process[_0x4f7b48(0x348)](_0xba9331);}),parentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x264))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x3b6),a2_0x3d4a9d(0x367))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x34c),a2_0x3d4a9d(0x235))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x1c3))['option']('--schedule-type\x20<type>',a2_0x3d4a9d(0x323))['option'](a2_0x3d4a9d(0x3c2),a2_0x3d4a9d(0x20d))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22a),a2_0x3d4a9d(0x417))[a2_0x3d4a9d(0x321)]('--attributes\x20<json>',a2_0x3d4a9d(0x2de))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x274),'Attributes\x20from\x20JSON\x20file')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x253),a2_0x3d4a9d(0x31d))[a2_0x3d4a9d(0x321)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x34d),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x3d4a9d(0x321)]('--customer-group-file\x20<file>',a2_0x3d4a9d(0x2e9))[a2_0x3d4a9d(0x26e)](async(_0x372cfc,_0x30bf65)=>{const _0x33879b=a2_0x3d4a9d,_0x1fb2bd=new ParentSegmentCreateCommand(),_0x4ac005=program[_0x33879b(0x289)](),_0x87a070=await createTDXInstance(_0x4ac005),_0x283853=await _0x1fb2bd[_0x33879b(0x1c9)]({'options':{..._0x4ac005,..._0x30bf65},'args':[_0x372cfc],'tdx':_0x87a070});process[_0x33879b(0x348)](_0x283853);}),parentCmd[a2_0x3d4a9d(0x27d)]('update\x20<name>')['description'](a2_0x3d4a9d(0x3d0))[a2_0x3d4a9d(0x321)]('--description\x20<text>',a2_0x3d4a9d(0x3c7))['option'](a2_0x3d4a9d(0x211),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c2),'Updated\x20schedule\x20option')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22a),a2_0x3d4a9d(0x1d4))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x356),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x3d4a9d(0x321)]('--add-attributes-file\x20<file>','Add\x20attributes\x20from\x20JSON\x20file')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x412),a2_0x3d4a9d(0x339))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3d2),a2_0x3d4a9d(0x2aa))[a2_0x3d4a9d(0x26e)](async(_0x436bfd,_0x308cf2)=>{const _0x411821=a2_0x3d4a9d,_0x53cd45=new ParentSegmentUpdateCommand(),_0xaad3b4=program[_0x411821(0x289)](),_0x268ea8=await createTDXInstance(_0xaad3b4),_0x49cdc0=await _0x53cd45[_0x411821(0x1c9)]({'options':{..._0xaad3b4,..._0x308cf2},'args':[_0x436bfd],'tdx':_0x268ea8});process[_0x411821(0x348)](_0x49cdc0);}),folderCmd['command'](a2_0x3d4a9d(0x400))[a2_0x3d4a9d(0x1f1)]('Create\x20segment\x20folder')['option'](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x38e))['option'](a2_0x3d4a9d(0x1ee),a2_0x3d4a9d(0x257))[a2_0x3d4a9d(0x26e)](async(_0x2ecba7,_0x34089d,_0x47013f)=>{const _0x3b93fc=a2_0x3d4a9d,_0x16e2b4=new SegmentFolderCreateCommand(),_0x5f1417=program[_0x3b93fc(0x289)](),_0x5e10d1=await createTDXInstance(_0x5f1417),_0x161ab5=await _0x16e2b4[_0x3b93fc(0x1c9)]({'options':{..._0x5f1417,..._0x47013f},'args':[_0x2ecba7,_0x34089d],'tdx':_0x5e10d1});process[_0x3b93fc(0x348)](_0x161ab5);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3e3))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2b9))[a2_0x3d4a9d(0x26e)](async(_0x22ee7a,_0xd928ba)=>{const _0x33f19e=a2_0x3d4a9d,_0x10e0ec=new ActivationsCommand(),_0x3ecdb2=program[_0x33f19e(0x289)](),_0x2a55a0=await createTDXInstance(_0x3ecdb2),_0x24db2b=await _0x10e0ec[_0x33f19e(0x1c9)]({'options':{..._0x3ecdb2,..._0xd928ba},'args':[_0x22ee7a],'tdx':_0x2a55a0});process['exit'](_0x24db2b);});const workflowCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x343))['alias']('wf')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x20e)),wfProjectCmd=workflowCmd['command'](a2_0x3d4a9d(0x34a))['description'](a2_0x3d4a9d(0x2e1)),wfProjectListAction=async(_0x8554ca,_0x49de70)=>{const _0x3fbd96=a2_0x3d4a9d,_0xad8fd4=new WorkflowProjectsCommand(),_0x5f1344=program[_0x3fbd96(0x289)](),_0x47f242=await createTDXInstance(_0x5f1344),_0x5c016e=await _0xad8fd4[_0x3fbd96(0x1c9)]({'options':{..._0x5f1344,..._0x49de70},'args':_0x8554ca?[_0x8554ca]:[],'tdx':_0x47f242});process[_0x3fbd96(0x348)](_0x5c016e);};wfProjectCmd['command'](a2_0x3d4a9d(0x26a))['description'](a2_0x3d4a9d(0x1df))[a2_0x3d4a9d(0x26e)](wfProjectListAction),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2c4))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3ac))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x5a6ecf,_0x118af3)=>{const _0x2de8b8=a2_0x3d4a9d,_0x2f9696=new WorkflowWorkflowsCommand(),_0x52775f=program[_0x2de8b8(0x289)](),_0x4a5a4b=await createTDXInstance(_0x52775f),_0x2fb73f=await _0x2f9696[_0x2de8b8(0x1c9)]({'options':{..._0x52775f,..._0x118af3},'args':_0x5a6ecf?[_0x5a6ecf]:[],'tdx':_0x4a5a4b});process[_0x2de8b8(0x348)](_0x2fb73f);};workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x23f))[a2_0x3d4a9d(0x1f1)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x3d4a9d(0x26e)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3d4a9d(0x27d)]('session')['description'](a2_0x3d4a9d(0x2ed)),wfSessionListAction=async(_0x4c2d57,_0x307f1c)=>{const _0x11a1d4=a2_0x3d4a9d,_0x4195f2=new WorkflowSessionsCommand(),_0x4beda4=program[_0x11a1d4(0x289)](),_0x1a5f22=await createTDXInstance(_0x4beda4),_0x3ee7ad=await _0x4195f2[_0x11a1d4(0x1c9)]({'options':{..._0x4beda4,..._0x307f1c},'args':_0x4c2d57?[_0x4c2d57]:[],'tdx':_0x1a5f22});process[_0x11a1d4(0x348)](_0x3ee7ad);};wfSessionCmd['command'](a2_0x3d4a9d(0x1ed))['description'](a2_0x3d4a9d(0x2f3))['option'](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x3fe))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25b),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x335),a2_0x3d4a9d(0x28b))[a2_0x3d4a9d(0x26e)](wfSessionListAction),workflowCmd['command'](a2_0x3d4a9d(0x228))['description'](a2_0x3d4a9d(0x3cd))['option'](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x3fe))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25b),a2_0x3d4a9d(0x28c))[a2_0x3d4a9d(0x321)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3d4a9d(0x26e)](wfSessionListAction);const wfAttemptListAction=async(_0x25acef,_0x101220)=>{const _0x1eb614=a2_0x3d4a9d,_0x207ec6=new WorkflowAttemptsCommand(),_0xb78c77=program[_0x1eb614(0x289)](),_0x221059=await createTDXInstance(_0xb78c77),_0x510ae3=await _0x207ec6[_0x1eb614(0x1c9)]({'options':{..._0xb78c77,..._0x101220},'args':_0x25acef?[_0x25acef]:[],'tdx':_0x221059});process[_0x1eb614(0x348)](_0x510ae3);},attemptCmd=workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x337))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3fb))['argument'](a2_0x3d4a9d(0x287),a2_0x3d4a9d(0x29c))[a2_0x3d4a9d(0x24d)](a2_0x3d4a9d(0x1f9),a2_0x3d4a9d(0x39b))[a2_0x3d4a9d(0x24d)](a2_0x3d4a9d(0x3ab),a2_0x3d4a9d(0x393))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1f0),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x305),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x3d4a9d(0x395),a2_0x3d4a9d(0x3b3))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x246),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2d0),a2_0x3d4a9d(0x1c5))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x23c),a2_0x3d4a9d(0x297))[a2_0x3d4a9d(0x26e)](async(_0x2fe910,_0x3a49fd,_0x5db666,_0x1d077a)=>{const _0x18fee0=a2_0x3d4a9d;if(_0x2fe910===_0x18fee0(0x1dc)){await wfAttemptListAction(_0x3a49fd,_0x1d077a);return;}if(!_0x2fe910){attemptCmd['help']();return;}const _0x13bd7=program[_0x18fee0(0x289)](),_0x1a6071=await createTDXInstance(_0x13bd7);let _0x3c8c18=0x0;if(!_0x3a49fd){const _0x1edb83=new WorkflowAttemptCommand();_0x3c8c18=await _0x1edb83['run']({'options':{..._0x13bd7,..._0x1d077a},'args':[_0x2fe910],'tdx':_0x1a6071});}else{if(_0x3a49fd===_0x18fee0(0x36b)){const _0x2983fa=new WorkflowLogsCommand();_0x3c8c18=await _0x2983fa[_0x18fee0(0x1c9)]({'options':{..._0x13bd7,..._0x1d077a},'args':_0x5db666?[_0x2fe910,_0x5db666]:[_0x2fe910],'tdx':_0x1a6071});}else{if(_0x3a49fd===_0x18fee0(0x2d3)){const _0xb4e7bc=new WorkflowTasksCommand();_0x3c8c18=await _0xb4e7bc[_0x18fee0(0x1c9)]({'options':{..._0x13bd7,..._0x1d077a},'args':[_0x2fe910],'tdx':_0x1a6071});}else{if(_0x3a49fd===_0x18fee0(0x230)){const _0x50cd1b=new WorkflowKillCommand();_0x3c8c18=await _0x50cd1b[_0x18fee0(0x1c9)]({'options':{..._0x13bd7,..._0x1d077a},'args':[_0x2fe910],'tdx':_0x1a6071});}else{if(_0x3a49fd===_0x18fee0(0x3dc)){const _0x3137ba=new WorkflowRetryCommand();_0x3c8c18=await _0x3137ba[_0x18fee0(0x1c9)]({'options':{..._0x13bd7,..._0x1d077a},'args':[_0x18fee0(0x2c5)+_0x2fe910],'tdx':_0x1a6071});}else console['error'](_0x18fee0(0x368)+_0x3a49fd),console[_0x18fee0(0x288)](_0x18fee0(0x3af)),_0x3c8c18=0x1;}}}}process[_0x18fee0(0x348)](_0x3c8c18);});attemptCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1ed))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x38d))['option'](a2_0x3d4a9d(0x23c),a2_0x3d4a9d(0x24e))[a2_0x3d4a9d(0x26e)](wfAttemptListAction),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x205))['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x23c),a2_0x3d4a9d(0x24e))[a2_0x3d4a9d(0x26e)](wfAttemptListAction),workflowCmd[a2_0x3d4a9d(0x27d)]('retry\x20<session-id>')['description'](a2_0x3d4a9d(0x2ab))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3ae),a2_0x3d4a9d(0x32f))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x246),a2_0x3d4a9d(0x29f))[a2_0x3d4a9d(0x26e)](async(_0x22f948,_0x5b5daf)=>{const _0x347936=a2_0x3d4a9d,_0x479bab=new WorkflowRetryCommand(),_0x5710e0=program[_0x347936(0x289)](),_0x4decc6=await createTDXInstance(_0x5710e0),_0x42b8e1=await _0x479bab['run']({'options':{..._0x5710e0,..._0x5b5daf},'args':[_0x22f948],'tdx':_0x4decc6});process[_0x347936(0x348)](_0x42b8e1);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3cf))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x344))['option'](a2_0x3d4a9d(0x1c1),'Workflow\x20parameter\x20(repeatable)',(_0x435abf,_0x53fb50=[])=>[..._0x53fb50,_0x435abf],[])[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x40f),a2_0x3d4a9d(0x20f))[a2_0x3d4a9d(0x26e)](async(_0x1d6d29,_0x279af2)=>{const _0x12ecf5=a2_0x3d4a9d,_0x27f338=new WorkflowRunCommand(),_0x23c464=program[_0x12ecf5(0x289)](),_0x5761bb=await createTDXInstance(_0x23c464),_0x3bf74a=await _0x27f338['run']({'options':{..._0x23c464,..._0x279af2},'args':_0x1d6d29?[_0x1d6d29]:[],'tdx':_0x5761bb});process['exit'](_0x3bf74a);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3ff))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3e5))[a2_0x3d4a9d(0x321)]('--revision\x20<revision>',a2_0x3d4a9d(0x363))[a2_0x3d4a9d(0x26e)](async(_0x5d83c6,_0x47e5e5,_0x3534c5)=>{const _0x5438ba=a2_0x3d4a9d,_0x5e9bb1=new WorkflowDownloadCommand(),_0x5e9bdb=program[_0x5438ba(0x289)](),_0x52aadd=await createTDXInstance(_0x5e9bdb),_0x16d4d9=await _0x5e9bb1[_0x5438ba(0x1c9)]({'options':{..._0x5e9bdb,..._0x3534c5},'args':[_0x5d83c6,_0x47e5e5||'.'],'tdx':_0x52aadd});process[_0x5438ba(0x348)](_0x16d4d9);}),workflowCmd[a2_0x3d4a9d(0x27d)]('pull\x20<project>\x20[target-dir]')['description'](a2_0x3d4a9d(0x39a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2fb),a2_0x3d4a9d(0x3a5))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x3f3))[a2_0x3d4a9d(0x321)]('-y,\x20--yes',a2_0x3d4a9d(0x259))['action'](async(_0x296bfe,_0x588542,_0x175def)=>{const _0x2aaa77=a2_0x3d4a9d,_0x375790=new WorkflowPullCommand(),_0x27d452=program[_0x2aaa77(0x289)](),_0x5bce65=await createTDXInstance(_0x27d452),_0x492fa7=await _0x375790['run']({'options':{..._0x27d452,..._0x175def},'args':_0x588542?[_0x296bfe,_0x588542]:[_0x296bfe],'tdx':_0x5bce65});process[_0x2aaa77(0x348)](_0x492fa7);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x37e))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x273))['option'](a2_0x3d4a9d(0x2fb),a2_0x3d4a9d(0x206))['option'](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x204))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x322),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x3d4a9d(0x321)]('-y,\x20--yes',a2_0x3d4a9d(0x259))['action'](async(_0x3ab3de,_0x1e69f7)=>{const _0x55ca27=a2_0x3d4a9d,_0x26fb9f=new WorkflowPushCommand(),_0x5d524c=program[_0x55ca27(0x289)](),_0x1d102b=await createTDXInstance(_0x5d524c),_0x294725=await _0x26fb9f[_0x55ca27(0x1c9)]({'options':{..._0x5d524c,..._0x1e69f7},'args':_0x3ab3de?[_0x3ab3de]:[],'tdx':_0x1d102b});process[_0x55ca27(0x348)](_0x294725);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1f5))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3b7))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x21e))['option'](a2_0x3d4a9d(0x2fb),a2_0x3d4a9d(0x22b))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x322),a2_0x3d4a9d(0x1c2))[a2_0x3d4a9d(0x26e)](async(_0x2fb1d6,_0x310ec1)=>{const _0x114369=a2_0x3d4a9d,_0x1e12cb=new WorkflowUploadCommand(),_0x4b9d4a=program[_0x114369(0x289)](),_0x3d75b7=await createTDXInstance(_0x4b9d4a),_0x548aea=await _0x1e12cb[_0x114369(0x1c9)]({'options':{..._0x4b9d4a,..._0x310ec1},'args':_0x2fb1d6?[_0x2fb1d6]:[],'tdx':_0x3d75b7});process[_0x114369(0x348)](_0x548aea);}),workflowCmd['command']('clone\x20[source-dir]')[a2_0x3d4a9d(0x1f1)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x258))[a2_0x3d4a9d(0x321)]('--revision\x20<revision>',a2_0x3d4a9d(0x206))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),'Preview\x20without\x20creating\x20the\x20project')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x322),a2_0x3d4a9d(0x1c2))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x7f9dcd,_0x4196f8)=>{const _0x521aa1=a2_0x3d4a9d,_0x7f792=new WorkflowCloneCommand(),_0x187d9f=program[_0x521aa1(0x289)](),_0xc1efdd=await createTDXInstance(_0x187d9f),_0x431932=await _0x7f792['run']({'options':{..._0x187d9f,..._0x4196f8},'args':_0x7f9dcd?[_0x7f9dcd]:[],'tdx':_0xc1efdd});process[_0x521aa1(0x348)](_0x431932);}),workflowCmd['command'](a2_0x3d4a9d(0x2b3))['description'](a2_0x3d4a9d(0x319))[a2_0x3d4a9d(0x26e)](async(_0x147ac3,_0x270a4d)=>{const _0x43ebdc=a2_0x3d4a9d,_0x1a310d=new WorkflowDeleteCommand(),_0x3153e3=program[_0x43ebdc(0x289)](),_0x196ad1=await createTDXInstance(_0x3153e3),_0x355415=await _0x1a310d[_0x43ebdc(0x1c9)]({'options':{..._0x3153e3,..._0x270a4d},'args':[_0x147ac3],'tdx':_0x196ad1});process[_0x43ebdc(0x348)](_0x355415);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x310))[a2_0x3d4a9d(0x1f1)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')['option'](a2_0x3d4a9d(0x1da),a2_0x3d4a9d(0x385))[a2_0x3d4a9d(0x26e)](async(_0x1fc3c,_0x552764)=>{const _0x84dab=a2_0x3d4a9d,_0x4c92fb=new WorkflowUseCommand(),_0x5bfa6d=program[_0x84dab(0x289)](),_0x4a9a82=await createTDXInstance(_0x5bfa6d),_0x201657=await _0x4c92fb[_0x84dab(0x1c9)]({'options':{..._0x5bfa6d,..._0x552764},'args':_0x1fc3c?[_0x1fc3c]:[],'tdx':_0x4a9a82});process[_0x84dab(0x348)](_0x201657);});const wfSecretsCmd=workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x240))['description'](a2_0x3d4a9d(0x3a4));wfSecretsCmd[a2_0x3d4a9d(0x27d)]('list\x20[project]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2bc))['action'](async(_0x3d46e0,_0xc165f8)=>{const _0x1e5bcc=a2_0x3d4a9d,_0x428605=new WorkflowSecretsListCommand(),_0x4b14dc=program[_0x1e5bcc(0x289)](),_0x341df4=await createTDXInstance(_0x4b14dc),_0x3e645d=await _0x428605[_0x1e5bcc(0x1c9)]({'options':{..._0x4b14dc,..._0xc165f8},'args':_0x3d46e0?[_0x3d46e0]:[],'tdx':_0x341df4});process[_0x1e5bcc(0x348)](_0x3e645d);}),wfSecretsCmd['command']('set\x20<args...>')[a2_0x3d4a9d(0x1f1)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')[a2_0x3d4a9d(0x26e)](async(_0x101e59,_0x13619f)=>{const _0x333567=a2_0x3d4a9d,_0x539e51=new WorkflowSecretsSetCommand(),_0x5e80e7=program['opts'](),_0x411ea3=await createTDXInstance(_0x5e80e7),_0x4e63c2=await _0x539e51['run']({'options':{..._0x5e80e7,..._0x13619f},'args':_0x101e59,'tdx':_0x411ea3});process[_0x333567(0x348)](_0x4e63c2);}),wfSecretsCmd['command'](a2_0x3d4a9d(0x2c1))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x38b))[a2_0x3d4a9d(0x321)]('-y,\x20--yes',a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x465ef1,_0x3dd5f8)=>{const _0x2be33f=a2_0x3d4a9d,_0x48325a=new WorkflowSecretsDeleteCommand(),_0x28bb68=program[_0x2be33f(0x289)](),_0x25cd05=await createTDXInstance(_0x28bb68),_0x530313=await _0x48325a[_0x2be33f(0x1c9)]({'options':{..._0x28bb68,..._0x3dd5f8},'args':_0x465ef1,'tdx':_0x25cd05});process[_0x2be33f(0x348)](_0x530313);});const jobCmd=program[a2_0x3d4a9d(0x27d)]('job')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x416)),jobListAction=async _0x2c2de0=>{const _0x44012e=a2_0x3d4a9d,_0x2ade54=new JobListCommand(),_0x54a357=program[_0x44012e(0x289)](),_0x37d2df=await createTDXInstance(_0x54a357),_0x5b29ca=await _0x2ade54[_0x44012e(0x1c9)]({'options':{..._0x54a357,..._0x2c2de0},'args':[],'tdx':_0x37d2df});process[_0x44012e(0x348)](_0x5b29ca);};jobCmd['command']('list')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x415))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x39d),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x3d4a9d(0x26e)](jobListAction),program[a2_0x3d4a9d(0x27d)]('jobs',{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x202))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x37c))['action'](jobListAction),jobCmd['command'](a2_0x3d4a9d(0x2f9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x39e))[a2_0x3d4a9d(0x26e)](async(_0x2eff0a,_0x16ffca)=>{const _0xe24232=a2_0x3d4a9d,_0x47abeb=new JobShowCommand(),_0x5066a3=program['opts'](),_0x5662aa=await createTDXInstance(_0x5066a3),_0x2b0f4a=await _0x47abeb[_0xe24232(0x1c9)]({'options':{..._0x5066a3,..._0x16ffca},'args':[_0x2eff0a],'tdx':_0x5662aa});process[_0xe24232(0x348)](_0x2b0f4a);}),jobCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3b5))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x22f))['action'](async(_0x2c3227,_0x4822b2)=>{const _0x57bf2c=a2_0x3d4a9d,_0x1db6b1=new JobKillCommand(),_0x5352de=program[_0x57bf2c(0x289)](),_0x9f44cd=await createTDXInstance(_0x5352de),_0x256488=await _0x1db6b1[_0x57bf2c(0x1c9)]({'options':{..._0x5352de,..._0x4822b2},'args':[_0x2c3227],'tdx':_0x9f44cd});process['exit'](_0x256488);}),jobCmd['command'](a2_0x3d4a9d(0x27b))['description'](a2_0x3d4a9d(0x2e8))[a2_0x3d4a9d(0x321)]('--job-type\x20<type>',a2_0x3d4a9d(0x22c),a2_0x3d4a9d(0x3b2))[a2_0x3d4a9d(0x321)]('-f,\x20--file\x20<path>',a2_0x3d4a9d(0x408))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2ff),a2_0x3d4a9d(0x1e2),a2_0x3d4a9d(0x364))['action'](async(_0x152547,_0x3952ff)=>{const _0x2bbec5=a2_0x3d4a9d,_0x500259=new JobSubmitCommand(),_0x182c8d=program['opts'](),_0x3475de=await createTDXInstance(_0x182c8d),_0x2923e5=await _0x500259[_0x2bbec5(0x1c9)]({'options':{..._0x182c8d,..._0x3952ff},'args':_0x152547?[_0x152547]:[],'tdx':_0x3475de});process[_0x2bbec5(0x348)](_0x2923e5);}),jobCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x35b))['description'](a2_0x3d4a9d(0x345))[a2_0x3d4a9d(0x26e)](async(_0x46d4f8,_0x1eb2b7)=>{const _0x47a6c6=a2_0x3d4a9d,_0xb1b73=new JobResultCommand(),_0xc1e8bb=program[_0x47a6c6(0x289)](),_0x343287=await createTDXInstance(_0xc1e8bb),_0x21378a=await _0xb1b73['run']({'options':{..._0xc1e8bb,..._0x1eb2b7},'args':[_0x46d4f8],'tdx':_0x343287});process[_0x47a6c6(0x348)](_0x21378a);});const llmCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3d3))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x330));llmCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3d9))['description']('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x3d4a9d(0x26e)](async(_0x1264a2,_0x128890)=>{const _0x5be49b=a2_0x3d4a9d,_0x1fd450=new LLMUseCommand(),_0x4199ef=program['opts'](),_0x5c8e7d=await createTDXInstance(_0x4199ef),_0x452221=await _0x1fd450[_0x5be49b(0x1c9)]({'options':{..._0x4199ef,..._0x128890},'args':[_0x1264a2],'tdx':_0x5c8e7d});process[_0x5be49b(0x348)](_0x452221);}),llmCmd[a2_0x3d4a9d(0x27d)]('models')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x262))['action'](async _0x216414=>{const _0xc58c58=a2_0x3d4a9d,_0x18edf3=new LLMModelsCommand(),_0x388265=program['opts'](),_0x32e4a8=await createTDXInstance(_0x388265),_0x299a1a=await _0x18edf3[_0xc58c58(0x1c9)]({'options':{..._0x388265,..._0x216414},'args':[],'tdx':_0x32e4a8});process['exit'](_0x299a1a);});const projectCmd=llmCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x34a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x291)),llmProjectListAction=async(_0x349f95,_0x3d803f)=>{const _0x5b8f77=a2_0x3d4a9d,_0x43dbb8=new LLMProjectsCommand(),_0x536482=program[_0x5b8f77(0x289)](),_0x100b16=await createTDXInstance(_0x536482),_0x52e7e0=await _0x43dbb8['run']({'options':{..._0x536482,..._0x3d803f},'args':_0x349f95?[_0x349f95]:[],'tdx':_0x100b16});process[_0x5b8f77(0x348)](_0x52e7e0);};projectCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x320))['action'](llmProjectListAction),llmCmd[a2_0x3d4a9d(0x27d)]('projects\x20[pattern]')['description'](a2_0x3d4a9d(0x309))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x320))[a2_0x3d4a9d(0x26e)](llmProjectListAction),projectCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3bb))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x315))[a2_0x3d4a9d(0x26e)](async(_0x1bc1d0,_0x1aafd5)=>{const _0x4938b9=a2_0x3d4a9d,_0x4d63bf=new LLMProjectCreateCommand(),_0x22a617=program[_0x4938b9(0x289)](),_0x5af801=await createTDXInstance(_0x22a617),_0x36cee9=await _0x4d63bf[_0x4938b9(0x1c9)]({'options':{..._0x22a617,..._0x1aafd5},'args':[_0x1bc1d0],'tdx':_0x5af801});process[_0x4938b9(0x348)](_0x36cee9);}),projectCmd[a2_0x3d4a9d(0x27d)]('delete\x20<name>')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x1cf))[a2_0x3d4a9d(0x26e)](async(_0x444ca9,_0x5a5b43)=>{const _0x23e79e=a2_0x3d4a9d,_0xd6318d=new LLMProjectDeleteCommand(),_0x7213fd=program[_0x23e79e(0x289)](),_0x1d9087=await createTDXInstance(_0x7213fd),_0x13d7eb=await _0xd6318d[_0x23e79e(0x1c9)]({'options':{..._0x7213fd,..._0x5a5b43},'args':[_0x444ca9],'tdx':_0x1d9087});process['exit'](_0x13d7eb);}),projectCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x277))['description'](a2_0x3d4a9d(0x326))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x33f),a2_0x3d4a9d(0x2e0))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x300))[a2_0x3d4a9d(0x26e)](async(_0x4b9294,_0xe10216)=>{const _0x354941=a2_0x3d4a9d,_0x9addcc=new LLMProjectBackupCommand(),_0xedf708=program[_0x354941(0x289)](),_0x4982b5=await createTDXInstance(_0xedf708),_0x4faf17=await _0x9addcc['run']({'options':{..._0xedf708,..._0xe10216},'args':[_0x4b9294],'tdx':_0x4982b5});process[_0x354941(0x348)](_0x4faf17);}),projectCmd[a2_0x3d4a9d(0x27d)]('restore\x20<folder>')['description'](a2_0x3d4a9d(0x286))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3fa),a2_0x3d4a9d(0x1d0))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x218))[a2_0x3d4a9d(0x26e)](async(_0xac23ef,_0x571d2e)=>{const _0x1c6753=a2_0x3d4a9d,_0x59bae1=new LLMProjectRestoreCommand(),_0x18fb6a=program['opts'](),_0x43b63b=await createTDXInstance(_0x18fb6a),_0x3b0b1d=await _0x59bae1[_0x1c6753(0x1c9)]({'options':{..._0x18fb6a,..._0x571d2e},'args':[_0xac23ef],'tdx':_0x43b63b});process[_0x1c6753(0x348)](_0x3b0b1d);});const llmAgentListAction=async(_0x531eb5,_0x577a69)=>{const _0x214e94=a2_0x3d4a9d,_0x44a92a=new LLMAgentsCommand(),_0x24622d=program[_0x214e94(0x289)](),_0x390be5=await createTDXInstance(_0x24622d),_0x1b2b15=await _0x44a92a[_0x214e94(0x1c9)]({'options':{..._0x24622d,..._0x577a69},'args':_0x531eb5?[_0x531eb5]:[],'tdx':_0x390be5});process['exit'](_0x1b2b15);};llmCmd[a2_0x3d4a9d(0x27d)]('agents\x20[pattern]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x24a))[a2_0x3d4a9d(0x321)]('-w,\x20--web',a2_0x3d4a9d(0x223))[a2_0x3d4a9d(0x26e)](llmAgentListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3c4))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x24a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x223))[a2_0x3d4a9d(0x26e)](llmAgentListAction),llmCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x236))[a2_0x3d4a9d(0x1f1)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x3d4a9d(0x321)]('--last',a2_0x3d4a9d(0x27f))[a2_0x3d4a9d(0x26e)](async(_0x410969,_0x133c05)=>{const _0xcf8b8e=a2_0x3d4a9d,_0x4eb3af=new LLMHistoryCommand(),_0x20845e=program[_0xcf8b8e(0x289)](),_0x626d4b=await createTDXInstance(_0x20845e),_0x7b827f=await _0x4eb3af[_0xcf8b8e(0x1c9)]({'options':{..._0x20845e,..._0x133c05},'args':_0x410969?[_0x410969]:[],'tdx':_0x626d4b});process[_0xcf8b8e(0x348)](_0x7b827f);}),llmCmd[a2_0x3d4a9d(0x27d)]('proxy')[a2_0x3d4a9d(0x1f1)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1e7),a2_0x3d4a9d(0x1fc),'4000')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x26c),a2_0x3d4a9d(0x35a))[a2_0x3d4a9d(0x321)]('--agent\x20<name>',a2_0x3d4a9d(0x2e7))['action'](async _0x240e40=>{const _0x20cbd0=a2_0x3d4a9d,_0x4d15f4=new LLMProxyCommand(),_0x5bfc40=program['opts'](),_0x58a4f9=await createTDXInstance(_0x5bfc40),_0x59c0ba={..._0x240e40,'port':_0x240e40[_0x20cbd0(0x2a3)]?parseInt(_0x240e40[_0x20cbd0(0x2a3)],0xa):undefined},_0xfdb3bc=await _0x4d15f4['run']({'options':{..._0x5bfc40,..._0x59c0ba},'args':[],'tdx':_0x58a4f9});process['exit'](_0xfdb3bc);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3fc))[a2_0x3d4a9d(0x232)]('[options]\x20--\x20[claude-code-args...]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x340))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1c6),a2_0x3d4a9d(0x407),'sonnet')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x392),a2_0x3d4a9d(0x265))['option'](a2_0x3d4a9d(0x276),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2cd),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x3d4a9d(0x2d5)]()[a2_0x3d4a9d(0x296)](!![])[a2_0x3d4a9d(0x2c0)]('after',a2_0x3d4a9d(0x23b))[a2_0x3d4a9d(0x26e)](async(_0x1f0552,_0x264df0)=>{const _0x56987d=a2_0x3d4a9d,_0x43b529=program[_0x56987d(0x289)](),_0x5bcf48=Array[_0x56987d(0x28f)](_0x1f0552)?_0x1f0552:[];if(_0x5bcf48[0x0]===_0x56987d(0x303)){const _0x2e9f73=new ClaudeStatuslineCommand(),_0x16d064=await _0x2e9f73[_0x56987d(0x1c9)]({'options':{..._0x43b529,..._0x264df0},'args':_0x5bcf48[_0x56987d(0x247)](0x1),'tdx':null});process['exit'](_0x16d064);}if(_0x5bcf48[0x0]===_0x56987d(0x232)){const _0x47e94e=new ClaudeUsageCommand(),_0x3b0da7=await _0x47e94e[_0x56987d(0x1c9)]({'options':{..._0x43b529,..._0x264df0},'args':_0x5bcf48['slice'](0x1),'tdx':null});process[_0x56987d(0x348)](_0x3b0da7);}const _0x1f88c0=new ClaudeCommand(),_0x33da23=await createTDXInstance(_0x43b529),_0x39f460=await _0x1f88c0['run']({'options':{..._0x43b529,..._0x264df0},'args':_0x5bcf48,'tdx':_0x33da23});process[_0x56987d(0x348)](_0x39f460);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1e5))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x201))['option'](a2_0x3d4a9d(0x1da),'Clear\x20session\x20context')[a2_0x3d4a9d(0x26e)](async _0x4d94fc=>{const _0x2691f9=a2_0x3d4a9d,_0x5da8be=new ContextCommand(),_0x467caa=program[_0x2691f9(0x289)](),_0x377e89=await _0x5da8be[_0x2691f9(0x1c9)]({'options':{..._0x467caa,..._0x4d94fc},'args':[],'tdx':null});process[_0x2691f9(0x348)](_0x377e89);}),program[a2_0x3d4a9d(0x27d)]('use\x20[resource]\x20[value]')['description']('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1da),a2_0x3d4a9d(0x2eb))[a2_0x3d4a9d(0x26e)](async(_0x5bd806,_0x3629de,_0x42555d)=>{const _0x41184b=a2_0x3d4a9d,_0xa9417c=new UseCommand(),_0x54eea4=program[_0x41184b(0x289)](),_0x31ea3e=[];if(_0x5bd806)_0x31ea3e[_0x41184b(0x317)](_0x5bd806);if(_0x3629de)_0x31ea3e[_0x41184b(0x317)](_0x3629de);const _0x1af3ce=await _0xa9417c['run']({'options':{..._0x54eea4,..._0x42555d},'args':_0x31ea3e,'tdx':null});process[_0x41184b(0x348)](_0x1af3ce);}),program[a2_0x3d4a9d(0x27d)]('chats')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2a1))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x28d),a2_0x3d4a9d(0x283))['action'](async _0xbcf21d=>{const _0x19b3c1=a2_0x3d4a9d,_0x5ee3ee=new ChatsCommand(),_0x45a40b=program[_0x19b3c1(0x289)](),_0x51e90b=await createTDXInstance(_0x45a40b),_0x9b969f=await _0x5ee3ee[_0x19b3c1(0x1c9)]({'options':{..._0x45a40b,..._0xbcf21d},'args':[],'tdx':_0x51e90b});process[_0x19b3c1(0x348)](_0x9b969f);});const authCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x382))['description'](a2_0x3d4a9d(0x2d6));async function runAuthStatusCommand(_0x4205e8){const _0x3f1b29=a2_0x3d4a9d,_0x313e8c=new AuthStatusCommand(),_0x562f20=program[_0x3f1b29(0x289)](),_0x1f872d=await createTDXInstance(_0x562f20),_0x59d0e1=await _0x313e8c['run']({'options':{..._0x562f20,..._0x4205e8},'args':[],'tdx':_0x1f872d});process[_0x3f1b29(0x348)](_0x59d0e1);}authCmd[a2_0x3d4a9d(0x26e)](runAuthStatusCommand),authCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x418))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3c6))[a2_0x3d4a9d(0x26e)](runAuthStatusCommand),authCmd[a2_0x3d4a9d(0x27d)]('setup')[a2_0x3d4a9d(0x1f1)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x3d4a9d(0x2c0)](a2_0x3d4a9d(0x217),a2_0x3d4a9d(0x269))[a2_0x3d4a9d(0x26e)](async _0x39ded8=>{const _0x1cdc06=a2_0x3d4a9d,_0x3332de=new AuthSetupCommand(),_0x21db30=program[_0x1cdc06(0x289)](),_0x1a92cd=await createTDXInstance(_0x21db30),_0x3643dd=await _0x3332de[_0x1cdc06(0x1c9)]({'options':{..._0x21db30,..._0x39ded8},'args':[],'tdx':_0x1a92cd});process['exit'](_0x3643dd);}),authCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2e4))['description'](a2_0x3d4a9d(0x266))[a2_0x3d4a9d(0x2c0)](a2_0x3d4a9d(0x217),a2_0x3d4a9d(0x2fa))[a2_0x3d4a9d(0x26e)](async _0x3ebb2e=>{const _0xd0358b=a2_0x3d4a9d,_0x130bd4=new AuthClearCommand(),_0x57c290=program[_0xd0358b(0x289)](),_0x27c7ff=await _0x130bd4[_0xd0358b(0x1c9)]({'options':{..._0x57c290,..._0x3ebb2e},'args':[],'tdx':null});process[_0xd0358b(0x348)](_0x27c7ff);});const userCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3aa))['description'](a2_0x3d4a9d(0x3ce)),userListAction=async _0x20761f=>{const _0x2187f1=a2_0x3d4a9d,_0x5345b1=new UserListCommand(),_0x27527c=program['opts'](),_0xf210da=await createTDXInstance(_0x27527c),_0x29f9f8=await _0x5345b1[_0x2187f1(0x1c9)]({'options':{..._0x27527c,..._0x20761f},'args':[],'tdx':_0xf210da});process[_0x2187f1(0x348)](_0x29f9f8);};userCmd[a2_0x3d4a9d(0x26e)](async _0x23572b=>{const _0x25ebd0=a2_0x3d4a9d,_0x30d5a3=new UserCommand(),_0x14a458=program[_0x25ebd0(0x289)](),_0x137d1f=await createTDXInstance(_0x14a458),_0x519fb6=await _0x30d5a3[_0x25ebd0(0x1c9)]({'options':{..._0x14a458,..._0x23572b},'args':[],'tdx':_0x137d1f});process[_0x25ebd0(0x348)](_0x519fb6);}),userCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1dc))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x35d))[a2_0x3d4a9d(0x26e)](userListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x282))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x229))['action'](userListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2c3))['description']('List\x20all\x20available\x20profiles')[a2_0x3d4a9d(0x26e)](async _0x2098a0=>{const _0x217f54=a2_0x3d4a9d,_0xb6a9a0=new ProfilesCommand(),_0x4dbf4e=program[_0x217f54(0x289)](),_0x44c443=await _0xb6a9a0[_0x217f54(0x1c9)]({'options':{..._0x4dbf4e,..._0x2098a0},'args':[],'tdx':null});process[_0x217f54(0x348)](_0x44c443);});const engageCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x261))['description']('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x450247=>{return async(_0x316eb8,_0x6b8da5)=>{const _0x48b094=a2_0x2b74,_0x829c7e=new _0x450247(),_0x228603=program[_0x48b094(0x289)](),_0x5ea6cc=await createTDXInstance(_0x228603),_0xe51684=await _0x829c7e[_0x48b094(0x1c9)]({'options':{..._0x228603,..._0x6b8da5},'args':[_0x316eb8],'tdx':_0x5ea6cc});process[_0x48b094(0x348)](_0xe51684);};},createEngageNoArgAction=_0x363ad0=>{return async _0x26d883=>{const _0x1fec8c=a2_0x2b74,_0x5ed7a3=new _0x363ad0(),_0x2babc9=program[_0x1fec8c(0x289)](),_0x1fc77d=await createTDXInstance(_0x2babc9),_0x4cc57e=await _0x5ed7a3['run']({'options':{..._0x2babc9,..._0x26d883},'args':[],'tdx':_0x1fc77d});process[_0x1fec8c(0x348)](_0x4cc57e);};},campaignCmd=engageCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x23e))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3db)),campaignListAction=async(_0x2848cc,_0x466eb6)=>{const _0x3c50ce=a2_0x3d4a9d,_0x31abe=new EngageCampaignsCommand(),_0x50db26=program['opts'](),_0x144e90=await createTDXInstance(_0x50db26),_0x2e8b8d=await _0x31abe[_0x3c50ce(0x1c9)]({'options':{..._0x50db26,..._0x466eb6},'args':_0x2848cc?[_0x2848cc]:[],'tdx':_0x144e90});process[_0x3c50ce(0x348)](_0x2e8b8d);};campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2b7))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e7),a2_0x3d4a9d(0x394))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x2dc))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](campaignListAction),engageCmd['command']('campaigns\x20[pattern]')[a2_0x3d4a9d(0x1f1)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')['option'](a2_0x3d4a9d(0x3e7),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x2dc))['option'](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](campaignListAction),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x312))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x304))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x284),a2_0x3d4a9d(0x2d4))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3d4a9d(0x27d)]('create')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x379))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x3d8))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x3e7),a2_0x3d4a9d(0x3ba))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),'Workspace\x20name\x20(required)')['option'](a2_0x3d4a9d(0x357),a2_0x3d4a9d(0x22e))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x387),a2_0x3d4a9d(0x3f2))['option'](a2_0x3d4a9d(0x34b),a2_0x3d4a9d(0x307))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2cb),a2_0x3d4a9d(0x290))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x32d),a2_0x3d4a9d(0x409))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22a),a2_0x3d4a9d(0x31b))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f0))[a2_0x3d4a9d(0x1f1)]('Update\x20a\x20campaign')['option']('--workspace\x20<name>',a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x298))[a2_0x3d4a9d(0x321)]('--description\x20<desc>',a2_0x3d4a9d(0x22e))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x387),a2_0x3d4a9d(0x3f2))[a2_0x3d4a9d(0x321)]('--email-sender-id\x20<id>',a2_0x3d4a9d(0x307))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2cb),a2_0x3d4a9d(0x290))['option']('--start-at\x20<datetime>',a2_0x3d4a9d(0x409))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22a),a2_0x3d4a9d(0x31b))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x3d4a9d(0x239))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2ae))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x318),a2_0x3d4a9d(0x259))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x3d4a9d(0x389))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x21c))[a2_0x3d4a9d(0x321)]('--workspace\x20<name>',a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x268))[a2_0x3d4a9d(0x1f1)]('Pause\x20a\x20campaign')['option'](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2a0))['description']('Resume\x20a\x20paused\x20campaign')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x35e))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2ac))['option']('--workspace\x20<name>',a2_0x3d4a9d(0x361))['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f7))[a2_0x3d4a9d(0x1f1)]('Email\x20template\x20management'),templateListAction=async(_0x3e45d3,_0x295263)=>{const _0x221a87=a2_0x3d4a9d,_0x5a993f=new EngageTemplatesCommand(),_0x131cc6=program[_0x221a87(0x289)](),_0x1b1f03=await createTDXInstance(_0x131cc6),_0xa26cd4=await _0x5a993f[_0x221a87(0x1c9)]({'options':{..._0x131cc6,..._0x295263},'args':_0x3e45d3?[_0x3e45d3]:[],'tdx':_0x1b1f03});process[_0x221a87(0x348)](_0xa26cd4);};templateCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x26a))['description'](a2_0x3d4a9d(0x203))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),'Workspace\x20name')[a2_0x3d4a9d(0x26e)](templateListAction),engageCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x411))['description'](a2_0x3d4a9d(0x20c))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](templateListAction),templateCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x312))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x210))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x284),a2_0x3d4a9d(0x2d4))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x233))[a2_0x3d4a9d(0x1f1)]('Create\x20an\x20email\x20template')[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x349))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x373),a2_0x3d4a9d(0x1f4))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x2a7),a2_0x3d4a9d(0x2e2))[a2_0x3d4a9d(0x321)]('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x222),'Plaintext\x20template\x20content')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x24b),'Editor\x20type')[a2_0x3d4a9d(0x26e)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f0))['description'](a2_0x3d4a9d(0x3a8))['option'](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)]('--name\x20<name>',a2_0x3d4a9d(0x280))[a2_0x3d4a9d(0x321)]('--subject\x20<subject>','Email\x20subject\x20template')['option'](a2_0x3d4a9d(0x2a7),a2_0x3d4a9d(0x2e2))['option']('--plaintext\x20<text>',a2_0x3d4a9d(0x36e))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x3d4a9d(0x239))['description'](a2_0x3d4a9d(0x1cd))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x318),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x3d4a9d(0x3dd))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x254)),workspaceListAction=async(_0xeaaa06,_0x5a6d09)=>{const _0x48ccf4=a2_0x3d4a9d,_0x3e875f=new EngageWorkspacesCommand(),_0x5b21e2=program[_0x48ccf4(0x289)](),_0x241cd3=await createTDXInstance(_0x5b21e2),_0x4c5d1c=await _0x3e875f[_0x48ccf4(0x1c9)]({'options':{..._0x5b21e2,..._0x5a6d09},'args':_0xeaaa06?[_0xeaaa06]:[],'tdx':_0x241cd3});process[_0x48ccf4(0x348)](_0x4c5d1c);};workspaceCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3b0))[a2_0x3d4a9d(0x26e)](workspaceListAction),engageCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x342))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x401))['action'](workspaceListAction),workspaceCmd['command'](a2_0x3d4a9d(0x312))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x30b))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x284),a2_0x3d4a9d(0x2d4))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x233))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x39f))[a2_0x3d4a9d(0x3a0)]('--name\x20<name>',a2_0x3d4a9d(0x361))['option'](a2_0x3d4a9d(0x357),a2_0x3d4a9d(0x333))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f0))['description']('Update\x20a\x20workspace')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x275),'New\x20workspace\x20name')[a2_0x3d4a9d(0x321)]('--description\x20<desc>','Workspace\x20description')['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x25c))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x318),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x347))['description'](a2_0x3d4a9d(0x31a))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3d4a9d(0x27d)]('connection')['description']('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x28303d=>{const _0x154383=a2_0x3d4a9d,_0x393a36=new ConnectionListCommand(),_0x1b03c7=program['opts'](),_0x17b4e4=await createTDXInstance(_0x1b03c7),_0x5dfb65=await _0x393a36[_0x154383(0x1c9)]({'options':{..._0x1b03c7,..._0x28303d},'args':[],'tdx':_0x17b4e4});process['exit'](_0x5dfb65);};connectionCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1dc))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2bb))[a2_0x3d4a9d(0x26e)](connectionListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x200),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3cb))[a2_0x3d4a9d(0x26e)](connectionListAction),connectionCmd['command'](a2_0x3d4a9d(0x404))['description'](a2_0x3d4a9d(0x369))[a2_0x3d4a9d(0x26e)](async(_0x28466f,_0x165b30)=>{const _0x36e5d8=a2_0x3d4a9d,_0x45da87=new ConnectionShowCommand(),_0x24dd99=program[_0x36e5d8(0x289)](),_0x3b1f9a=await createTDXInstance(_0x24dd99),_0x5dc438=await _0x45da87['run']({'options':{..._0x24dd99,..._0x165b30},'args':[_0x28466f],'tdx':_0x3b1f9a});process[_0x36e5d8(0x348)](_0x5dc438);}),connectionCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x27e))[a2_0x3d4a9d(0x1f1)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')['action'](async(_0x24c761,_0x3bdb0f)=>{const _0x4ba6a6=a2_0x3d4a9d,_0x55196b=new ConnectionSchemaCommand(),_0x35fee9=program[_0x4ba6a6(0x289)](),_0xfd6651=await createTDXInstance(_0x35fee9),_0x38358c=await _0x55196b[_0x4ba6a6(0x1c9)]({'options':{..._0x35fee9,..._0x3bdb0f},'args':[_0x24c761],'tdx':_0xfd6651});process[_0x4ba6a6(0x348)](_0x38358c);}),connectionCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x384))['description'](a2_0x3d4a9d(0x3b9))[a2_0x3d4a9d(0x26e)](async _0x5e66b3=>{const _0x38c32f=a2_0x3d4a9d,_0x586c57=new ConnectionTypesCommand(),_0x7f98c4=program['opts'](),_0x41dad1=await createTDXInstance(_0x7f98c4),_0x44e7ee=await _0x586c57[_0x38c32f(0x1c9)]({'options':{..._0x7f98c4,..._0x5e66b3},'args':[],'tdx':_0x41dad1});process['exit'](_0x44e7ee);}),connectionCmd['command']('settings\x20<type>')[a2_0x3d4a9d(0x1f1)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x3d4a9d(0x26e)](async(_0x3767a0,_0x5890b9)=>{const _0x112f05=a2_0x3d4a9d,_0x284a70=new ConnectionSettingsCommand(),_0x3a3517=program[_0x112f05(0x289)](),_0x148d44=await createTDXInstance(_0x3a3517),_0x4cb581=await _0x284a70['run']({'options':{..._0x3a3517,..._0x5890b9},'args':[_0x3767a0],'tdx':_0x148d44});process['exit'](_0x4cb581);});const journeyCmd=program[a2_0x3d4a9d(0x27d)]('journey')['description'](a2_0x3d4a9d(0x1d6));journeyCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)]('List\x20journeys\x20in\x20current\x20context')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),'Show\x20web\x20console\x20URLs\x20for\x20journeys')[a2_0x3d4a9d(0x26e)](async(_0x44d6b0,_0x4fcad0)=>{const _0x1fd70a=a2_0x3d4a9d,_0x563914=new JourneyListCommand(),_0x46b11d=program[_0x1fd70a(0x289)](),_0x18fdda=await createTDXInstance(_0x46b11d),_0x53c8b3=await _0x563914[_0x1fd70a(0x1c9)]({'options':{..._0x46b11d,..._0x4fcad0},'args':_0x44d6b0?[_0x44d6b0]:[],'tdx':_0x18fdda});process[_0x1fd70a(0x348)](_0x53c8b3);}),journeyCmd['command'](a2_0x3d4a9d(0x410))['description'](a2_0x3d4a9d(0x212))['option']('-w,\x20--web',a2_0x3d4a9d(0x299))['option'](a2_0x3d4a9d(0x36d),'Include\x20execution\x20statistics')['action'](async(_0x276f9a,_0xe0a23a)=>{const _0x215f90=a2_0x3d4a9d,_0x36b1c=new JourneyViewCommand(),_0x4eef8a=program[_0x215f90(0x289)](),_0x300a38=await createTDXInstance(_0x4eef8a),_0x2adab1=await _0x36b1c[_0x215f90(0x1c9)]({'options':{..._0x4eef8a,..._0xe0a23a},'args':[_0x276f9a],'tdx':_0x300a38});process['exit'](_0x2adab1);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x353))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x21a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x20b),a2_0x3d4a9d(0x406))[a2_0x3d4a9d(0x26e)](async(_0x393fbf,_0x49421f)=>{const _0x56c8ba=a2_0x3d4a9d,_0x2ca4bd=new JourneyStatsCommand(),_0x30560c=program[_0x56c8ba(0x289)](),_0xa9671=await createTDXInstance(_0x30560c),_0xe5fac8=await _0x2ca4bd[_0x56c8ba(0x1c9)]({'options':{..._0x30560c,..._0x49421f},'args':[_0x393fbf],'tdx':_0xa9671});process[_0x56c8ba(0x348)](_0xe5fac8);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x381))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3eb))['action'](async(_0x2eced0,_0x57791f)=>{const _0x3f0727=a2_0x3d4a9d,_0x4673bb=new JourneyPauseCommand(),_0x24e85d=program[_0x3f0727(0x289)](),_0x35377f=await createTDXInstance(_0x24e85d),_0x5b9a96=await _0x4673bb[_0x3f0727(0x1c9)]({'options':{..._0x24e85d,..._0x57791f},'args':[_0x2eced0],'tdx':_0x35377f});process[_0x3f0727(0x348)](_0x5b9a96);}),journeyCmd[a2_0x3d4a9d(0x27d)]('resume\x20<name-or-path>')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x226))[a2_0x3d4a9d(0x26e)](async(_0x200fd2,_0x38fe72)=>{const _0x5a45e1=a2_0x3d4a9d,_0x7d9dcd=new JourneyResumeCommand(),_0x3ad4fb=program['opts'](),_0xaf1f4e=await createTDXInstance(_0x3ad4fb),_0x52f665=await _0x7d9dcd[_0x5a45e1(0x1c9)]({'options':{..._0x3ad4fb,..._0x38fe72},'args':[_0x200fd2],'tdx':_0xaf1f4e});process[_0x5a45e1(0x348)](_0x52f665);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2ea))['description']('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x3ec))[a2_0x3d4a9d(0x26e)](async(_0x4aa385,_0x3de488)=>{const _0x2a28fe=a2_0x3d4a9d,_0x38f202=new JourneyPullCommand(),_0x3ab7fe=program[_0x2a28fe(0x289)](),_0x1c93eb=await createTDXInstance(_0x3ab7fe),_0x2fcfdd=await _0x38f202[_0x2a28fe(0x1c9)]({'options':{..._0x3ab7fe,..._0x3de488},'args':_0x4aa385?[_0x4aa385]:[],'tdx':_0x1c93eb});process[_0x2a28fe(0x348)](_0x2fcfdd);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x244))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x209))[a2_0x3d4a9d(0x26e)](async(_0x38a565,_0x43ec36)=>{const _0x32f966=a2_0x3d4a9d,_0x393603=new JourneyPushCommand(),_0x4802ce=program[_0x32f966(0x289)](),_0x2b40bd=await createTDXInstance(_0x4802ce),_0x835bb1=await _0x393603[_0x32f966(0x1c9)]({'options':{..._0x4802ce,..._0x43ec36},'args':_0x38a565?[_0x38a565]:[],'tdx':_0x2b40bd});process[_0x32f966(0x348)](_0x835bb1);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3c0))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x36c))[a2_0x3d4a9d(0x26e)](async(_0x55300e,_0x2e4bf9)=>{const _0x2cf607=a2_0x3d4a9d,_0x53800e=new JourneyValidateCommand(),_0x4bb6d9=program[_0x2cf607(0x289)](),_0xd74d3e=await createTDXInstance(_0x4bb6d9),_0x11eed6=await _0x53800e[_0x2cf607(0x1c9)]({'options':{..._0x4bb6d9,..._0x2e4bf9},'args':_0x55300e?[_0x55300e]:[],'tdx':_0xd74d3e});process[_0x2cf607(0x348)](_0x11eed6);});const agentSyncCmd=program['command'](a2_0x3d4a9d(0x260))[a2_0x3d4a9d(0x1f1)]('LLM\x20agent\x20management');agentSyncCmd['command'](a2_0x3d4a9d(0x316))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x238))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x242),a2_0x3d4a9d(0x256))['option']('-f,\x20--force',a2_0x3d4a9d(0x324))[a2_0x3d4a9d(0x26e)](async(_0x5c3e9d,_0x265c2e,_0xd47918)=>{const _0x2c4e77=a2_0x3d4a9d,_0x23b1d7=new AgentPullCommand(),_0x2694db=program[_0x2c4e77(0x289)](),_0x44c31c=await createTDXInstance(_0x2694db),_0x512ff8=[];if(_0x5c3e9d)_0x512ff8['push'](_0x5c3e9d);if(_0x265c2e)_0x512ff8['push'](_0x265c2e);const _0xc627c8=await _0x23b1d7[_0x2c4e77(0x1c9)]({'options':{..._0x2694db,..._0xd47918},'args':_0x512ff8,'tdx':_0x44c31c});process[_0x2c4e77(0x348)](_0xc627c8);}),agentSyncCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x26d))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x1ff))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x272),a2_0x3d4a9d(0x32a))[a2_0x3d4a9d(0x26e)](async(_0x4709cf,_0x46cfc7)=>{const _0x2be80e=a2_0x3d4a9d,_0xabf85=new AgentPushCommand(),_0x2c501a=program[_0x2be80e(0x289)](),_0x3eb78d=await createTDXInstance(_0x2c501a),_0x34a600=await _0xabf85[_0x2be80e(0x1c9)]({'options':{..._0x2c501a,..._0x46cfc7},'args':_0x4709cf?[_0x4709cf]:[],'tdx':_0x3eb78d});process[_0x2be80e(0x348)](_0x34a600);}),agentSyncCmd[a2_0x3d4a9d(0x27d)]('clone\x20[source]')['description'](a2_0x3d4a9d(0x2df))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1e6),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x3d4a9d(0x26e)](async(_0xa42560,_0xca52b2)=>{const _0x2561d7=a2_0x3d4a9d,_0x5cfeae=new AgentCloneCommand(),_0x55f697=program[_0x2561d7(0x289)](),_0x4cb506=await createTDXInstance(_0x55f697),_0x45abeb=await _0x5cfeae['run']({'options':{..._0x55f697,..._0xca52b2},'args':_0xa42560?[_0xa42560]:[],'tdx':_0x4cb506});process[_0x2561d7(0x348)](_0x45abeb);}),agentSyncCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x374))['option'](a2_0x3d4a9d(0x255),'Show\x20agent\x20chat\x20URLs')['action'](llmAgentListAction),agentSyncCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f4))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3d1))[a2_0x3d4a9d(0x26e)](async(_0x25e6dc,_0x514298)=>{const _0x71b89d=a2_0x3d4a9d,_0x2df9fc=new LLMAgentShowCommand(),_0x4d6162=program[_0x71b89d(0x289)](),_0x3c340a=await createTDXInstance(_0x4d6162),_0x505336=await _0x2df9fc['run']({'options':{..._0x4d6162,..._0x514298},'args':[_0x25e6dc],'tdx':_0x3c340a});process[_0x71b89d(0x348)](_0x505336);}),agentSyncCmd['command'](a2_0x3d4a9d(0x3f9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3a2))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x396),a2_0x3d4a9d(0x362))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1c6),a2_0x3d4a9d(0x2ba),'claude-4.5-sonnet')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x28a),a2_0x3d4a9d(0x251))['option'](a2_0x3d4a9d(0x1ec),a2_0x3d4a9d(0x3ca),'4')['option'](a2_0x3d4a9d(0x2f0),a2_0x3d4a9d(0x2ad),a2_0x3d4a9d(0x1d2))[a2_0x3d4a9d(0x26e)](async(_0x2e272c,_0x20c224)=>{const _0x4c3293=a2_0x3d4a9d,_0x55505a=new LLMAgentCreateCommand(),_0x4d3fa7=program[_0x4c3293(0x289)](),_0x541228=await createTDXInstance(_0x4d3fa7),_0x2659a5=await _0x55505a[_0x4c3293(0x1c9)]({'options':{..._0x4d3fa7,..._0x20c224},'args':[_0x2e272c],'tdx':_0x541228});process[_0x4c3293(0x348)](_0x2659a5);}),agentSyncCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f5))['description'](a2_0x3d4a9d(0x248))['option']('--name\x20<text>',a2_0x3d4a9d(0x358))['option'](a2_0x3d4a9d(0x1e9),a2_0x3d4a9d(0x3ef))['option'](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x29b))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x28a),a2_0x3d4a9d(0x251))[a2_0x3d4a9d(0x26e)](async(_0x1ba8df,_0xd4632b)=>{const _0x248036=a2_0x3d4a9d,_0xbf5e01=new LLMAgentUpdateCommand(),_0x10553e=program['opts'](),_0x330f30=await createTDXInstance(_0x10553e),_0x429f5d=await _0xbf5e01[_0x248036(0x1c9)]({'options':{..._0x10553e,..._0xd4632b},'args':[_0x1ba8df],'tdx':_0x330f30});process[_0x248036(0x348)](_0x429f5d);}),agentSyncCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1e3))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x285))[a2_0x3d4a9d(0x26e)](async(_0x5b9dc9,_0x339f6f)=>{const _0x4beeab=a2_0x3d4a9d,_0x349573=new LLMAgentDeleteCommand(),_0x314c8f=program['opts'](),_0x1ecf6f=await createTDXInstance(_0x314c8f),_0x11b833=await _0x349573[_0x4beeab(0x1c9)]({'options':{..._0x314c8f,..._0x339f6f},'args':[_0x5b9dc9],'tdx':_0x1ecf6f});process[_0x4beeab(0x348)](_0x11b833);});export{program};export function runCLI(){const _0xcfae03=a2_0x3d4a9d;program[_0xcfae03(0x1cb)](process[_0xcfae03(0x1f3)]);!process[_0xcfae03(0x1f3)][_0xcfae03(0x247)](0x2)[_0xcfae03(0x1fb)]&&program['outputHelp']();const _0x398a77=packageJson['version'];process[_0xcfae03(0x40a)][_0xcfae03(0x1fd)]&&process[_0xcfae03(0x1f3)]['length']>0x2&&!_0x398a77[_0xcfae03(0x354)](_0xcfae03(0x27a))&&checkForUpdate(_0x398a77)['then'](_0x354e3c=>{_0x354e3c&&displayUpdateNotification(_0x354e3c);})['catch'](()=>{});}
|
|
1
|
+
const a2_0x4ce3a1=a2_0x73b8;(function(_0x1a538f,_0x26bafd){const _0x57398e=a2_0x73b8,_0x1d2aea=_0x1a538f();while(!![]){try{const _0x519c6b=-parseInt(_0x57398e(0x28c))/0x1+-parseInt(_0x57398e(0x373))/0x2+-parseInt(_0x57398e(0x41b))/0x3*(-parseInt(_0x57398e(0x447))/0x4)+-parseInt(_0x57398e(0x382))/0x5*(-parseInt(_0x57398e(0x2dd))/0x6)+-parseInt(_0x57398e(0x3be))/0x7*(-parseInt(_0x57398e(0x2af))/0x8)+parseInt(_0x57398e(0x3cb))/0x9*(-parseInt(_0x57398e(0x2a6))/0xa)+-parseInt(_0x57398e(0x38b))/0xb*(-parseInt(_0x57398e(0x2d3))/0xc);if(_0x519c6b===_0x26bafd)break;else _0x1d2aea['push'](_0x1d2aea['shift']());}catch(_0x32b056){_0x1d2aea['push'](_0x1d2aea['shift']());}}}(a2_0x4efe,0x44731));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';function a2_0x73b8(_0x3af8df,_0x45d11e){_0x3af8df=_0x3af8df-0x1ec;const _0x4efee4=a2_0x4efe();let _0x73b85a=_0x4efee4[_0x3af8df];return _0x73b85a;}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,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_0x4ce3a1(0x388)][a2_0x4ce3a1(0x244)](a2_0x4ce3a1(0x2ec))){let versionOutput=a2_0x4ce3a1(0x243)+currentVersion;buildInfo[a2_0x4ce3a1(0x2b1)]&&!currentVersion[a2_0x4ce3a1(0x244)](buildInfo[a2_0x4ce3a1(0x2b1)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x4ce3a1(0x2e1)]&&(versionOutput+=a2_0x4ce3a1(0x2c9)+buildInfo[a2_0x4ce3a1(0x2e1)]),console[a2_0x4ce3a1(0x205)](versionOutput),process[a2_0x4ce3a1(0x430)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x4ce3a1(0x381);buildInfo[a2_0x4ce3a1(0x2b1)]&&!currentVersion[a2_0x4ce3a1(0x244)](buildInfo[a2_0x4ce3a1(0x2b1)])?description+=a2_0x4ce3a1(0x422)+currentVersion+'\x20('+buildInfo[a2_0x4ce3a1(0x2b1)]+')':description+=a2_0x4ce3a1(0x422)+currentVersion;program[a2_0x4ce3a1(0x208)](a2_0x4ce3a1(0x410))['description'](description),program[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3ad),a2_0x4ce3a1(0x40e))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x367),a2_0x4ce3a1(0x31f))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x20d),a2_0x4ce3a1(0x41c),a2_0x4ce3a1(0x29c))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x31d),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x4ce3a1(0x3cc)]('--table',a2_0x4ce3a1(0x3de))['option']('--json',a2_0x4ce3a1(0x322))[a2_0x4ce3a1(0x3cc)]('--jsonl','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2bb),a2_0x4ce3a1(0x2f5))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x216),a2_0x4ce3a1(0x358))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1ff),a2_0x4ce3a1(0x3ae))[a2_0x4ce3a1(0x3cc)]('--color','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x318),a2_0x4ce3a1(0x2d0),![])[a2_0x4ce3a1(0x3cc)]('-v,\x20--verbose',a2_0x4ce3a1(0x3a5),![])[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x292),a2_0x4ce3a1(0x421))[a2_0x4ce3a1(0x3cc)]('--trace',a2_0x4ce3a1(0x25c))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x361),'Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x261),a2_0x4ce3a1(0x29f),![])['option']('-y,\x20--yes',a2_0x4ce3a1(0x3a1),![])['option'](a2_0x4ce3a1(0x3b4),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2a4),a2_0x4ce3a1(0x1fe))['option'](a2_0x4ce3a1(0x378),a2_0x4ce3a1(0x35d))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3e4),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3ea),a2_0x4ce3a1(0x446)),program[a2_0x4ce3a1(0x408)]({'formatHelp':(_0x5a913f,_0x168b7e)=>{const _0x138b0f=a2_0x4ce3a1,_0x417a0b=_0x168b7e[_0x138b0f(0x371)](_0x5a913f,_0x168b7e),_0x26e606=0x2,_0x416cd8=0x2;function _0x4a6b3e(_0x1c6688){const _0x29038d=_0x138b0f,_0x400f57=_0x1c6688;return!!(_0x400f57['_hidden']||_0x400f57[_0x29038d(0x400)]);}function _0x38f51f(_0x1e3be7,_0x309ba2){if(_0x309ba2){const _0x2cc7ce=''+_0x1e3be7['padEnd'](_0x417a0b+_0x416cd8)+_0x309ba2;return _0x2cc7ce;}return _0x1e3be7;}function _0x1ef2f9(_0x2b6dc0){const _0x4d704a=_0x138b0f;return _0x2b6dc0[_0x4d704a(0x343)]('\x0a')[_0x4d704a(0x3c6)](/^/gm,'\x20'[_0x4d704a(0x2fd)](_0x26e606));}const _0xdf278a=[];_0xdf278a[_0x138b0f(0x34c)](_0x138b0f(0x3db)+_0x168b7e[_0x138b0f(0x277)](_0x5a913f));const _0x33c144=_0x168b7e[_0x138b0f(0x34e)](_0x5a913f);_0x33c144&&(_0xdf278a[_0x138b0f(0x34c)](''),_0xdf278a[_0x138b0f(0x34c)](_0x33c144));const _0x5506c8=_0x5a913f[_0x138b0f(0x2e5)][_0x138b0f(0x30d)](_0x5c4459=>!_0x4a6b3e(_0x5c4459));if(_0x5506c8[_0x138b0f(0x307)]>0x0){if(_0x5a913f[_0x138b0f(0x208)]()==='tdx'){const _0x3a84e9=_0x5a913f['opts'](),_0x5bfd24=!_0x3a84e9[_0x138b0f(0x3b1)]&&process[_0x138b0f(0x206)]['isTTY'],_0x363cb5=COMMAND_CATEGORIES,_0x1e98ec=(_0x54bcdf,_0x357e8d)=>_0x5bfd24?_0x357e8d(_0x54bcdf):_0x54bcdf,_0x14286d=new Map();_0x5506c8['forEach'](_0x18b0f2=>{const _0x148580=_0x138b0f;_0x14286d[_0x148580(0x3d6)](_0x18b0f2['name'](),_0x18b0f2);}),_0x363cb5[_0x138b0f(0x2e4)](_0x2b0840=>{const _0x15a3d8=_0x138b0f,_0x40b395=_0x2b0840[_0x15a3d8(0x2e5)][_0x15a3d8(0x2fc)](_0x5b0d77=>_0x14286d[_0x15a3d8(0x38c)](_0x5b0d77)??[]);if(_0x40b395[_0x15a3d8(0x307)]>0x0){_0xdf278a[_0x15a3d8(0x34c)](''),_0xdf278a['push'](_0x1e98ec(_0x2b0840[_0x15a3d8(0x208)]+':',_0x2b0840['colorFn']));const _0x3c63c3=_0x40b395[_0x15a3d8(0x36f)](_0x595cd2=>{const _0x542314=_0x15a3d8,_0x47fd7a=_0x168b7e['subcommandTerm'](_0x595cd2),_0x100766=_0x168b7e[_0x542314(0x2c7)](_0x595cd2);return _0x38f51f(_0x47fd7a,_0x100766);});_0xdf278a['push'](_0x1ef2f9(_0x3c63c3));}}),_0xdf278a[_0x138b0f(0x34c)](''),_0xdf278a[_0x138b0f(0x34c)](_0x138b0f(0x3a0));}else{const _0x3a6fc5=_0x5506c8[_0x138b0f(0x36f)](_0x20c727=>{const _0xbd4df0=_0x138b0f,_0x2b7901=_0x168b7e['subcommandTerm'](_0x20c727),_0xdda78d=_0x168b7e[_0xbd4df0(0x2c7)](_0x20c727);return _0x38f51f(_0x2b7901,_0xdda78d);});_0xdf278a['push'](''),_0xdf278a[_0x138b0f(0x34c)]('Commands:'),_0xdf278a[_0x138b0f(0x34c)](_0x1ef2f9(_0x3a6fc5));}}if(showBriefHelp&&_0x5a913f[_0x138b0f(0x208)]()===_0x138b0f(0x410))_0xdf278a[_0x138b0f(0x34c)](''),_0xdf278a[_0x138b0f(0x34c)](_0x138b0f(0x409));else{const _0x488c38=_0x5a913f['options'][_0x138b0f(0x30d)](_0xabe5b0=>!_0x4a6b3e(_0xabe5b0));if(_0x488c38[_0x138b0f(0x307)]>0x0){const _0x56d9a0=_0x488c38['map'](_0x5a2012=>{const _0x3693f0=_0x138b0f,_0x59d2bc=_0x168b7e['optionTerm'](_0x5a2012),_0x335267=_0x168b7e[_0x3693f0(0x445)](_0x5a2012);return _0x38f51f(_0x59d2bc,_0x335267);});_0xdf278a['push'](''),_0xdf278a[_0x138b0f(0x34c)]('Options:'),_0xdf278a['push'](_0x1ef2f9(_0x56d9a0));}}const _0x2dd492=(_0x5a913f[_0x138b0f(0x2d7)]||[])[_0x138b0f(0x30d)](_0x34c1c8=>!_0x4a6b3e(_0x34c1c8));if(_0x2dd492['length']>0x0){const _0x23f4c0=_0x2dd492[_0x138b0f(0x36f)](_0x18b1b1=>{const _0x433f3a=_0x138b0f,_0x418557=_0x168b7e[_0x433f3a(0x443)](_0x18b1b1),_0x1e38ad=_0x168b7e[_0x433f3a(0x3d0)](_0x18b1b1);return _0x38f51f(_0x418557,_0x1e38ad);});_0xdf278a[_0x138b0f(0x34c)](''),_0xdf278a[_0x138b0f(0x34c)](_0x138b0f(0x281)),_0xdf278a[_0x138b0f(0x34c)](_0x1ef2f9(_0x23f4c0));}return _0xdf278a[_0x138b0f(0x343)]('\x0a')+'\x0a';},'subcommandTerm':_0x3e1793=>{const _0xf829b7=a2_0x4ce3a1,_0x24e8ab=(_0x3e1793['registeredArguments']||[])[_0xf829b7(0x36f)](_0x97ed76=>_0x97ed76[_0xf829b7(0x24c)]?'<'+_0x97ed76['name']()+'>':'['+_0x97ed76[_0xf829b7(0x208)]()+']')[_0xf829b7(0x343)]('\x20'),_0x4b9a81=_0x3e1793[_0xf829b7(0x3b7)](),_0x4f8450=_0x4b9a81[_0xf829b7(0x307)]>0x0?_0x3e1793[_0xf829b7(0x208)]()+',\x20'+_0x4b9a81[_0xf829b7(0x343)](',\x20'):_0x3e1793['name']();return _0x24e8ab?_0x4f8450+'\x20'+_0x24e8ab:_0x4f8450;}}),program[a2_0x4ce3a1(0x40d)](a2_0x4ce3a1(0x34b),_0x144416=>{const _0x303340=a2_0x4ce3a1,_0x2eb5d2=_0x144416[_0x303340(0x264)]();if(_0x2eb5d2[_0x303340(0x29b)]){const _0x41d25e=resolve(_0x2eb5d2['directory']),_0x3d46e6=_0x41d25e!==_0x2eb5d2['directory']?_0x303340(0x362)+_0x41d25e+')':'';if(!existsSync(_0x41d25e))throw new SDKError(ErrorCode[_0x303340(0x413)],_0x303340(0x39e)+_0x2eb5d2[_0x303340(0x29b)]+_0x3d46e6,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x7d14a0=statSync(_0x41d25e);if(!_0x7d14a0[_0x303340(0x298)]())throw new SDKError(ErrorCode[_0x303340(0x413)],_0x303340(0x2f4)+_0x2eb5d2[_0x303340(0x29b)]+_0x3d46e6,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process[_0x303340(0x2bd)](_0x41d25e);}if(!_0x2eb5d2[_0x303340(0x398)]){if(_0x2eb5d2[_0x303340(0x3d2)])_0x2eb5d2[_0x303340(0x398)]=_0x303340(0x3d2);else{if(_0x2eb5d2[_0x303340(0x293)])_0x2eb5d2[_0x303340(0x398)]='json';else{if(_0x2eb5d2[_0x303340(0x213)])_0x2eb5d2[_0x303340(0x398)]=_0x303340(0x213);else _0x2eb5d2[_0x303340(0x347)]&&(_0x2eb5d2['format']=_0x303340(0x347));}}}_0x2eb5d2['in']&&!_0x2eb5d2[_0x303340(0x2b6)]&&(_0x2eb5d2[_0x303340(0x2b6)]=_0x2eb5d2['in']);if(_0x2eb5d2[_0x303340(0x267)])_0x2eb5d2[_0x303340(0x310)]=LogLevel[_0x303340(0x2d9)];else{if(_0x2eb5d2[_0x303340(0x2b0)])_0x2eb5d2[_0x303340(0x310)]=LogLevel[_0x303340(0x333)];else _0x2eb5d2[_0x303340(0x310)]===undefined&&(_0x2eb5d2[_0x303340(0x310)]=LogLevel[_0x303340(0x227)]);}});async function createTDXInstance(_0x46b591){const _0x5b3375=a2_0x4ce3a1,_0x232519=await GlobalContext[_0x5b3375(0x3a4)](_0x46b591);return _0x232519[_0x5b3375(0x35c)](_0x46b591),TDX[_0x5b3375(0x270)]({'site':_0x232519[_0x5b3375(0x419)],'apiKey':_0x232519[_0x5b3375(0x248)],'logLevel':_0x232519[_0x5b3375(0x310)],'profile':_0x232519[_0x5b3375(0x3c9)]});}const databaseCmd=program[a2_0x4ce3a1(0x442)]('database')['alias']('db')['description']('Database\x20management\x20commands'),databaseListAction=async(_0x23e344,_0x47230f)=>{const _0x3e993e=a2_0x4ce3a1,_0xa2f106=new DatabasesCommand(),_0x5affe3=program[_0x3e993e(0x264)](),_0x41dc5d=await createTDXInstance(_0x5affe3),_0xacf804=await _0xa2f106['run']({'options':{..._0x5affe3,..._0x47230f},'args':_0x23e344?[_0x23e344]:[],'tdx':_0x41dc5d});process[_0x3e993e(0x430)](_0xacf804);};databaseCmd[a2_0x4ce3a1(0x442)]('list\x20[pattern]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x424))[a2_0x4ce3a1(0x390)](databaseListAction),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x222),{'hidden':!![]})['description'](a2_0x4ce3a1(0x2fe))['action'](databaseListAction),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3ac))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3d1))['option'](a2_0x4ce3a1(0x39a),a2_0x4ce3a1(0x304))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x32c),'Start\x20a\x20new\x20chat\x20session')[a2_0x4ce3a1(0x390)](async(_0x1a17ef,_0x589abc)=>{const _0x439ace=a2_0x4ce3a1,_0x35a301=new ChatCommand(),_0xa62cc1=program['opts'](),_0x4c8cf6=await createTDXInstance(_0xa62cc1),_0x29b8d5=await _0x35a301[_0x439ace(0x271)]({'options':{..._0xa62cc1,..._0x589abc},'args':_0x1a17ef,'tdx':_0x4c8cf6});process['exit'](_0x29b8d5);});const apiCmd=program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x335))['summary'](a2_0x4ce3a1(0x219))[a2_0x4ce3a1(0x350)](a2_0x4ce3a1(0x32f),'\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_0x4ce3a1(0x3cc)]('-X,\x20--method\x20<method>',a2_0x4ce3a1(0x286),a2_0x4ce3a1(0x225))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1f3),a2_0x4ce3a1(0x251))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x44b),a2_0x4ce3a1(0x3d5))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x249),a2_0x4ce3a1(0x2e0),(_0x3f7791,_0x220d28)=>{return _0x220d28?[..._0x220d28,_0x3f7791]:[_0x3f7791];})[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x36b),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x4ce3a1(0x390)](async(_0x280122,_0x5a0a20)=>{const _0x7ea711=a2_0x4ce3a1;if(!_0x280122){apiCmd[_0x7ea711(0x33c)]();return;}const _0x4a8284=new ApiCommand(),_0x5ac712=program[_0x7ea711(0x264)](),_0x38d048=await createTDXInstance(_0x5ac712),_0xbe2260=await _0x4a8284['run']({'options':{..._0x5ac712,..._0x5a0a20},'args':[_0x280122],'tdx':_0x38d048});process[_0x7ea711(0x430)](_0xbe2260);}),tableCmd=program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3d2))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x1ef)),tableListAction=async(_0x5c2e62,_0x45848d)=>{const _0x14e9a1=a2_0x4ce3a1,_0x14683a=new TablesCommand(),_0x5caefc=program['opts'](),_0x288b07=await createTDXInstance(_0x5caefc);_0x45848d['in']&&(_0x45848d[_0x14e9a1(0x2b6)]=_0x45848d['in']);const _0x23a709=await _0x14683a[_0x14e9a1(0x271)]({'options':{..._0x5caefc,..._0x45848d},'args':_0x5c2e62?[_0x5c2e62]:[],'tdx':_0x288b07});process[_0x14e9a1(0x430)](_0x23a709);};tableCmd[a2_0x4ce3a1(0x442)]('list\x20[pattern]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3ab))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x291),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x4ce3a1(0x221),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4ce3a1(0x390)](tableListAction),program['command'](a2_0x4ce3a1(0x392),{'hidden':!![]})[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x284))['option'](a2_0x4ce3a1(0x291),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x221),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4ce3a1(0x390)](tableListAction),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2b5))['description'](a2_0x4ce3a1(0x21e))[a2_0x4ce3a1(0x3cc)]('-d,\x20--database\x20<database>',a2_0x4ce3a1(0x2f2))['option'](a2_0x4ce3a1(0x221),a2_0x4ce3a1(0x35d))[a2_0x4ce3a1(0x390)](async(_0x13a03e,_0x3ff109)=>{const _0x947fd=a2_0x4ce3a1,_0x3b6444=new ShowCommand(),_0x2ac096=program[_0x947fd(0x264)](),_0x1c4779=await createTDXInstance(_0x2ac096);_0x3ff109['in']&&(_0x3ff109['database']=_0x3ff109['in']);const _0x3f0eac=await _0x3b6444[_0x947fd(0x271)]({'options':{..._0x2ac096,..._0x3ff109},'args':_0x13a03e?[_0x13a03e]:[],'tdx':_0x1c4779});process['exit'](_0x3f0eac);}),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x339))[a2_0x4ce3a1(0x2a0)](a2_0x4ce3a1(0x36a))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x369))['option']('-d,\x20--database\x20<database>',a2_0x4ce3a1(0x2f2))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x221),a2_0x4ce3a1(0x35d))['action'](async(_0x3a19f6,_0x5f212e)=>{const _0x2c7311=a2_0x4ce3a1,_0x439585=new DescribeCommand(),_0x1957f1=program[_0x2c7311(0x264)](),_0x6e904d=await createTDXInstance(_0x1957f1);_0x5f212e['in']&&(_0x5f212e['database']=_0x5f212e['in']);const _0x3ae2b7=await _0x439585[_0x2c7311(0x271)]({'options':{..._0x1957f1,..._0x5f212e},'args':_0x3a19f6?[_0x3a19f6]:[],'tdx':_0x6e904d});process[_0x2c7311(0x430)](_0x3ae2b7);}),program['command']('query\x20[sql]')['description'](a2_0x4ce3a1(0x348))[a2_0x4ce3a1(0x3cc)]('-d,\x20--database\x20<database>','Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x221),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4ce3a1(0x3cc)]('--catalog\x20<catalog>',a2_0x4ce3a1(0x290))['option'](a2_0x4ce3a1(0x44b),'Read\x20SQL\x20query\x20from\x20file')['option']('--limit\x20<rows>',a2_0x4ce3a1(0x242),'40')[a2_0x4ce3a1(0x390)](async(_0x2e0787,_0x2e4a11)=>{const _0x5986f3=a2_0x4ce3a1,_0x4e162b=new QueryCommand(),_0x4315af=program[_0x5986f3(0x264)](),_0x1076b0=await createTDXInstance(_0x4315af);_0x2e4a11['in']&&(_0x2e4a11[_0x5986f3(0x2b6)]=_0x2e4a11['in']);const _0x189952=await _0x4e162b[_0x5986f3(0x271)]({'options':{..._0x4315af,..._0x2e4a11},'args':_0x2e0787?[_0x2e0787]:[],'tdx':_0x1076b0});process[_0x5986f3(0x430)](_0x189952);});const segmentCmd=program[a2_0x4ce3a1(0x442)]('segment')[a2_0x4ce3a1(0x2a0)]('sg')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2c6)),segmentListAction=async(_0x360a7e,_0x130da4)=>{const _0x3fad7e=a2_0x4ce3a1,_0x949b6=new SegmentsCommand(),_0x5ee0b5=program[_0x3fad7e(0x264)](),_0x5e8d20=await createTDXInstance(_0x5ee0b5),_0x32b118=await _0x949b6['run']({'options':{..._0x5ee0b5,..._0x130da4},'args':_0x360a7e?[_0x360a7e]:[],'tdx':_0x5e8d20});process['exit'](_0x32b118);};segmentCmd[a2_0x4ce3a1(0x442)]('list\x20[path]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x25d))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x20b),a2_0x4ce3a1(0x433))['option'](a2_0x4ce3a1(0x2f8),a2_0x4ce3a1(0x43e),'10')['option'](a2_0x4ce3a1(0x366),a2_0x4ce3a1(0x29e))[a2_0x4ce3a1(0x390)](segmentListAction),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x217),{'hidden':!![]})['description'](a2_0x4ce3a1(0x41d))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x20b),a2_0x4ce3a1(0x433))['option'](a2_0x4ce3a1(0x2f8),a2_0x4ce3a1(0x43e),'10')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x366),a2_0x4ce3a1(0x29e))[a2_0x4ce3a1(0x390)](segmentListAction),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x21a),{'hidden':!![]})[a2_0x4ce3a1(0x423)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x4ce3a1(0x390)](async(_0x10ea78,_0x21417d)=>{const _0x1e29ab=a2_0x4ce3a1,_0x5a3a59=new SegmentUseCommand(),_0x430259=program['opts'](),_0x35535f=await createTDXInstance(_0x430259),_0x2b64e5=await _0x5a3a59[_0x1e29ab(0x271)]({'options':{..._0x430259,..._0x21417d},'args':[_0x10ea78],'tdx':_0x35535f});process['exit'](_0x2b64e5);});const segmentViewAction=async(_0x1f80d0,_0x29065e)=>{const _0x5f4756=a2_0x4ce3a1,_0x16d822=new SegmentViewCommand(),_0x3e1217=program[_0x5f4756(0x264)](),_0x1a8bfe=await createTDXInstance(_0x3e1217),_0x2ef74a=await _0x16d822[_0x5f4756(0x271)]({'options':{..._0x3e1217,..._0x29065e},'args':_0x1f80d0?[_0x1f80d0]:[],'tdx':_0x1a8bfe});process[_0x5f4756(0x430)](_0x2ef74a);};segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2f9))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3ed))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x366),a2_0x4ce3a1(0x228))[a2_0x4ce3a1(0x390)](segmentViewAction),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x1f7),{'hidden':!![]})['alias'](a2_0x4ce3a1(0x346))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x366),a2_0x4ce3a1(0x228))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x288))[a2_0x4ce3a1(0x390)](segmentViewAction),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x377))['description'](a2_0x4ce3a1(0x280))['action'](async(_0x5370ae,_0xd3b590)=>{const _0x5bbb77=a2_0x4ce3a1,_0x2a8d99=new SegmentDescCommand(),_0x3a5b1e=program[_0x5bbb77(0x264)](),_0x158d3c=await createTDXInstance(_0x3a5b1e),_0x3ba01e=await _0x2a8d99[_0x5bbb77(0x271)]({'options':{..._0x3a5b1e,..._0xd3b590},'args':_0x5370ae?[_0x5370ae]:[],'tdx':_0x158d3c});process['exit'](_0x3ba01e);}),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x1f5))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x30e))[a2_0x4ce3a1(0x390)](async(_0x51d783,_0x3bd0c0)=>{const _0x22145a=a2_0x4ce3a1,_0xc3e681=new SegmentShowCommand(),_0x27aa5f=program[_0x22145a(0x264)](),_0x1ec593=await createTDXInstance(_0x27aa5f),_0x52c5ac=await _0xc3e681[_0x22145a(0x271)]({'options':{..._0x27aa5f,..._0x3bd0c0},'args':_0x51d783?[_0x51d783]:[],'tdx':_0x1ec593});process[_0x22145a(0x430)](_0x52c5ac);}),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x394),{'hidden':!![]})[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2d8))[a2_0x4ce3a1(0x390)](async(_0x29dc4d,_0x5d6fe7)=>{const _0x225653=a2_0x4ce3a1,_0x1b222b=new SegmentFolderListCommand(),_0x30fd26=program['opts'](),_0x2c4148=await createTDXInstance(_0x30fd26),_0x19a72b=await _0x1b222b[_0x225653(0x271)]({'options':{..._0x30fd26,..._0x5d6fe7},'args':[_0x29dc4d],'tdx':_0x2c4148});process['exit'](_0x19a72b);});const folderCmd=segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x22b),{'hidden':!![]})[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x407));folderCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x262))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x37a))['action'](async(_0x1ba77f,_0x275a19)=>{const _0x12486a=a2_0x4ce3a1,_0x9425e=new SegmentFolderShowCommand(),_0x20dd1d=program[_0x12486a(0x264)](),_0x48ab2d=await createTDXInstance(_0x20dd1d),_0x1ed5e9=await _0x9425e['run']({'options':{..._0x20dd1d,..._0x275a19},'args':[_0x1ba77f],'tdx':_0x48ab2d});process['exit'](_0x1ed5e9);}),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x324))[a2_0x4ce3a1(0x423)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x59c707,_0x4d480c)=>{const _0x3b44af=a2_0x4ce3a1,_0x852d6d=new SegmentSQLCommand(),_0xdbf3f2=program['opts'](),_0x1f011c=await createTDXInstance(_0xdbf3f2),_0xcf3595=await _0x852d6d[_0x3b44af(0x271)]({'options':{..._0xdbf3f2,..._0x4d480c},'args':_0x59c707?[_0x59c707]:[],'tdx':_0x1f011c});process[_0x3b44af(0x430)](_0xcf3595);}),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3e1))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x40f))[a2_0x4ce3a1(0x390)](async(_0xd6cd0c,_0x4c4cd4)=>{const _0x20d74a=a2_0x4ce3a1,_0x66848f=new SegmentFieldsCommand(),_0x2d026a=program[_0x20d74a(0x264)](),_0x56583f=await createTDXInstance(_0x2d026a),_0x446479=await _0x66848f[_0x20d74a(0x271)]({'options':{..._0x2d026a,..._0x4c4cd4},'args':_0xd6cd0c?[_0xd6cd0c]:[],'tdx':_0x56583f});process[_0x20d74a(0x430)](_0x446479);}),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x296))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3e8))[a2_0x4ce3a1(0x3cc)]('-y,\x20--yes',a2_0x4ce3a1(0x3a1))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x261),a2_0x4ce3a1(0x3c2))[a2_0x4ce3a1(0x390)](async(_0xbbb644,_0x4fafbf)=>{const _0x30b693=a2_0x4ce3a1,_0x13ca45=new SegmentPullCommand(),_0x2fd6d8=program['opts'](),_0x3a13c5=await createTDXInstance(_0x2fd6d8),_0x397964=await _0x13ca45[_0x30b693(0x271)]({'options':{..._0x2fd6d8,..._0x4fafbf},'args':_0xbbb644?[_0xbbb644]:[],'tdx':_0x3a13c5});process[_0x30b693(0x430)](_0x397964);}),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x29a))['description'](a2_0x4ce3a1(0x223))['option']('-y,\x20--yes',a2_0x4ce3a1(0x3a1))['option']('--dry-run',a2_0x4ce3a1(0x3c2))['option'](a2_0x4ce3a1(0x326),a2_0x4ce3a1(0x2a2))[a2_0x4ce3a1(0x390)](async(_0xa9d1e1,_0x587e15)=>{const _0x2e2d91=a2_0x4ce3a1,_0x4fa436=new SegmentPushCommand(),_0x35dc24=program['opts'](),_0x247252=await createTDXInstance(_0x35dc24),_0x245e74=await _0x4fa436[_0x2e2d91(0x271)]({'options':{..._0x35dc24,..._0x587e15},'args':_0xa9d1e1?[_0xa9d1e1]:[],'tdx':_0x247252});process[_0x2e2d91(0x430)](_0x245e74);}),segmentCmd['command']('validate\x20[target]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x33f))[a2_0x4ce3a1(0x390)](async(_0x25e17a,_0x1be21e)=>{const _0xe0084b=a2_0x4ce3a1,_0x2781a8=new SegmentValidateCommand(),_0x386435=program[_0xe0084b(0x264)](),_0x3c6e48=await createTDXInstance(_0x386435),_0x237bec=await _0x2781a8[_0xe0084b(0x271)]({'options':{..._0x386435,..._0x1be21e},'args':_0x25e17a?[_0x25e17a]:[],'tdx':_0x3c6e48});process[_0xe0084b(0x430)](_0x237bec);}),segmentCmd[a2_0x4ce3a1(0x442)]('create\x20<segment_name>',{'hidden':!![]})[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x364))['option']('--description\x20<text>',a2_0x4ce3a1(0x2c8))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2ad),a2_0x4ce3a1(0x2ea))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x383),'Filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x4ce3a1(0x268),a2_0x4ce3a1(0x1f9))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x26a),a2_0x4ce3a1(0x289))['option'](a2_0x4ce3a1(0x23a),a2_0x4ce3a1(0x426))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x36c),a2_0x4ce3a1(0x387))[a2_0x4ce3a1(0x390)](async(_0x964711,_0x253da3)=>{const _0x222957=a2_0x4ce3a1,_0x2f9cf9=new SegmentCreateCommand(),_0x319c13=program['opts'](),_0x443966=await createTDXInstance(_0x319c13),_0xb3fa4e=await _0x2f9cf9['run']({'options':{..._0x319c13,..._0x253da3},'args':[_0x964711],'tdx':_0x443966});process[_0x222957(0x430)](_0xb3fa4e);}),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3dd),{'hidden':!![]})[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x258))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2eb),a2_0x4ce3a1(0x42e))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x34f),a2_0x4ce3a1(0x370))['option'](a2_0x4ce3a1(0x2ad),a2_0x4ce3a1(0x241))['option'](a2_0x4ce3a1(0x383),a2_0x4ce3a1(0x31c))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x268),'Move\x20to\x20folder')['option'](a2_0x4ce3a1(0x26a),a2_0x4ce3a1(0x289))[a2_0x4ce3a1(0x390)](async(_0x46f406,_0x1a11d2)=>{const _0x2774bd=a2_0x4ce3a1,_0x276e92=new SegmentUpdateCommand(),_0x4f7526=program['opts'](),_0x496f4c=await createTDXInstance(_0x4f7526),_0x3445d3=await _0x276e92[_0x2774bd(0x271)]({'options':{..._0x4f7526,..._0x1a11d2},'args':[_0x46f406],'tdx':_0x496f4c});process[_0x2774bd(0x430)](_0x3445d3);});const parentCmd=segmentCmd[a2_0x4ce3a1(0x442)]('parent',{'hidden':!![]})[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x320)),parentListAction=async(_0x19cac9,_0x360a19)=>{const _0x3bfed8=a2_0x4ce3a1,_0x5cdf46=new ParentSegmentListCommand(),_0x5d5fe0=program[_0x3bfed8(0x264)](),_0x280eb2=await createTDXInstance(_0x5d5fe0),_0x14b98f=await _0x5cdf46[_0x3bfed8(0x271)]({'options':{..._0x5d5fe0,..._0x360a19},'args':_0x19cac9?[_0x19cac9]:[],'tdx':_0x280eb2});process[_0x3bfed8(0x430)](_0x14b98f);};parentCmd['command']('list\x20[pattern]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3ca))[a2_0x4ce3a1(0x390)](parentListAction),segmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2b2),{'hidden':!![]})['description'](a2_0x4ce3a1(0x3c5))[a2_0x4ce3a1(0x390)](parentListAction),parentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x33d))['description']('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3df),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fc),a2_0x4ce3a1(0x441))[a2_0x4ce3a1(0x390)](async(_0xfc85a2,_0x4e79a7)=>{const _0x4dc018=a2_0x4ce3a1,_0x43061b=new ParentSegmentPullCommand(),_0x135edd=program[_0x4dc018(0x264)](),_0x152801=await createTDXInstance(_0x135edd),_0x161f80=await _0x43061b['run']({'options':{..._0x135edd,..._0x4e79a7},'args':_0xfc85a2?[_0xfc85a2]:[],'tdx':_0x152801});process[_0x4dc018(0x430)](_0x161f80);}),parentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3b3))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3f5))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fc),a2_0x4ce3a1(0x441))[a2_0x4ce3a1(0x390)](async(_0x4291c6,_0x485242)=>{const _0x39bcfd=a2_0x4ce3a1,_0x155672=new ParentSegmentPushCommand(),_0xf08f84=program[_0x39bcfd(0x264)](),_0x34c469=await createTDXInstance(_0xf08f84),_0x4d0e37=await _0x155672[_0x39bcfd(0x271)]({'options':{..._0xf08f84,..._0x485242},'args':_0x4291c6?[_0x4291c6]:[],'tdx':_0x34c469});process['exit'](_0x4d0e37);}),parentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x203))['description'](a2_0x4ce3a1(0x211))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x417),a2_0x4ce3a1(0x3a9))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2a7),a2_0x4ce3a1(0x43b))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x391),a2_0x4ce3a1(0x2d5))['option'](a2_0x4ce3a1(0x43f),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fd),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x4ce3a1(0x340))[a2_0x4ce3a1(0x390)](async(_0x750e79,_0x9cbb27)=>{const _0x44c9ca=a2_0x4ce3a1,_0x422503=new ParentSegmentValidateCommand(),_0x823d50=program[_0x44c9ca(0x264)](),_0x393605=await createTDXInstance(_0x823d50),_0x104794=await _0x422503[_0x44c9ca(0x271)]({'options':{..._0x823d50,..._0x9cbb27},'args':_0x750e79?[_0x750e79]:[],'tdx':_0x393605});process[_0x44c9ca(0x430)](_0x104794);}),parentCmd['command'](a2_0x4ce3a1(0x3f0))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3b9))[a2_0x4ce3a1(0x3cc)]('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2a7),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x391),a2_0x4ce3a1(0x327))['option'](a2_0x4ce3a1(0x43f),a2_0x4ce3a1(0x26c))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fd),a2_0x4ce3a1(0x321),a2_0x4ce3a1(0x340))[a2_0x4ce3a1(0x390)](async(_0x1d97ba,_0xe31d06)=>{const _0x328079=a2_0x4ce3a1,_0xa72793=new ParentSegmentPreviewCommand(),_0x4c604e=program[_0x328079(0x264)](),_0x3dce5c=await createTDXInstance(_0x4c604e),_0x1943c2=await _0xa72793[_0x328079(0x271)]({'options':{..._0x4c604e,..._0xe31d06},'args':_0x1d97ba?[_0x1d97ba]:[],'tdx':_0x3dce5c});process['exit'](_0x1943c2);}),parentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x32d))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3e7))['option'](a2_0x4ce3a1(0x1fc),'Skip\x20confirmation\x20prompt')[a2_0x4ce3a1(0x390)](async(_0x4b8c94,_0x210394)=>{const _0x3aacbb=a2_0x4ce3a1,_0x4e70a7=new ParentSegmentRunCommand(),_0x28c9ca=program[_0x3aacbb(0x264)](),_0xeefe8a=await createTDXInstance(_0x28c9ca),_0x4932f6=await _0x4e70a7['run']({'options':{..._0x28c9ca,..._0x210394},'args':_0x4b8c94?[_0x4b8c94]:[],'tdx':_0xeefe8a});process[_0x3aacbb(0x430)](_0x4932f6);});const parentSegmentCmd=program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x24b))[a2_0x4ce3a1(0x2a0)]('ps')[a2_0x4ce3a1(0x423)]('Parent\x20segment\x20management');parentSegmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x420))['description'](a2_0x4ce3a1(0x3ca))[a2_0x4ce3a1(0x390)](parentListAction),parentSegmentCmd['command'](a2_0x4ce3a1(0x33d))['description'](a2_0x4ce3a1(0x3f6))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3df),a2_0x4ce3a1(0x2be))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fc),'Skip\x20confirmation\x20prompt')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x427),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x4ce3a1(0x390)](async(_0x1e4074,_0x499aa0)=>{const _0x2e7434=a2_0x4ce3a1,_0x38c770=new ParentSegmentPullCommand(),_0x3a6206=program[_0x2e7434(0x264)](),_0x1aebf2=await createTDXInstance(_0x3a6206),_0x2cfac0=await _0x38c770[_0x2e7434(0x271)]({'options':{..._0x3a6206,..._0x499aa0},'args':_0x1e4074?[_0x1e4074]:[],'tdx':_0x1aebf2});process['exit'](_0x2cfac0);}),parentSegmentCmd['command'](a2_0x4ce3a1(0x440))[a2_0x4ce3a1(0x423)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x4ce3a1(0x1fc),a2_0x4ce3a1(0x441))['action'](async(_0x5140b0,_0x1756f8)=>{const _0x2f1656=a2_0x4ce3a1,_0x45661a=new ParentSegmentPushCommand(),_0x3833a7=program['opts'](),_0x7f8782=await createTDXInstance(_0x3833a7),_0x4d35e3=await _0x45661a[_0x2f1656(0x271)]({'options':{..._0x3833a7,..._0x1756f8},'args':_0x5140b0?[_0x5140b0]:[],'tdx':_0x7f8782});process[_0x2f1656(0x430)](_0x4d35e3);}),parentSegmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2de))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x211))[a2_0x4ce3a1(0x3cc)]('--master',a2_0x4ce3a1(0x3a9))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2a7),a2_0x4ce3a1(0x43b))['option'](a2_0x4ce3a1(0x391),a2_0x4ce3a1(0x2d5))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x43f),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fd),a2_0x4ce3a1(0x321),a2_0x4ce3a1(0x340))[a2_0x4ce3a1(0x390)](async(_0x408f92,_0x449420)=>{const _0x5e7343=a2_0x4ce3a1,_0x488ad5=new ParentSegmentValidateCommand(),_0x365cf2=program['opts'](),_0x53c591=await createTDXInstance(_0x365cf2),_0x4e6634=await _0x488ad5[_0x5e7343(0x271)]({'options':{..._0x365cf2,..._0x449420},'args':_0x408f92?[_0x408f92]:[],'tdx':_0x53c591});process[_0x5e7343(0x430)](_0x4e6634);}),parentSegmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x35e))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3b9))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x417),a2_0x4ce3a1(0x363))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2a7),a2_0x4ce3a1(0x385))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x391),a2_0x4ce3a1(0x327))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x43f),a2_0x4ce3a1(0x26c))[a2_0x4ce3a1(0x3cc)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x4ce3a1(0x390)](async(_0x415eee,_0x1bf5e7)=>{const _0xf0c033=a2_0x4ce3a1,_0x10d707=new ParentSegmentPreviewCommand(),_0xcf002b=program[_0xf0c033(0x264)](),_0x16adb9=await createTDXInstance(_0xcf002b),_0x1f7cd0=await _0x10d707['run']({'options':{..._0xcf002b,..._0x1bf5e7},'args':_0x415eee?[_0x415eee]:[],'tdx':_0x16adb9});process[_0xf0c033(0x430)](_0x1f7cd0);}),parentSegmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x32d))[a2_0x4ce3a1(0x423)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fc),a2_0x4ce3a1(0x441))['action'](async(_0x1e2ce1,_0x1873b7)=>{const _0x418b67=a2_0x4ce3a1,_0x439189=new ParentSegmentRunCommand(),_0x486317=program[_0x418b67(0x264)](),_0x12902b=await createTDXInstance(_0x486317),_0x4d1723=await _0x439189[_0x418b67(0x271)]({'options':{..._0x486317,..._0x1873b7},'args':_0x1e2ce1?[_0x1e2ce1]:[],'tdx':_0x12902b});process['exit'](_0x4d1723);}),parentSegmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2ab))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x23b))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x294),a2_0x4ce3a1(0x22f))['option'](a2_0x4ce3a1(0x2a9),a2_0x4ce3a1(0x21b))['action'](async(_0x54496a,_0x44fd69)=>{const _0xf86532=a2_0x4ce3a1,_0x3eb509=new ParentSegmentFieldsCommand(),_0x19c7fe=program['opts'](),_0x1b8f81=await createTDXInstance(_0x19c7fe),_0xfc27e0=await _0x3eb509[_0xf86532(0x271)]({'options':{..._0x19c7fe,..._0x44fd69},'args':_0x54496a?[_0x54496a]:[],'tdx':_0x1b8f81});process[_0xf86532(0x430)](_0xfc27e0);}),parentSegmentCmd[a2_0x4ce3a1(0x442)]('view\x20[name]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3c8))['option'](a2_0x4ce3a1(0x366),'Open\x20parent\x20segment\x20in\x20web\x20browser')['option'](a2_0x4ce3a1(0x294),'Output\x20as\x20JSON')['option']('--jsonl',a2_0x4ce3a1(0x21b))[a2_0x4ce3a1(0x390)](async(_0x4f4e09,_0x39d68f)=>{const _0x4dc72c=a2_0x4ce3a1,_0x5dd042=new ParentSegmentViewCommand(),_0x5e0c87=program[_0x4dc72c(0x264)](),_0x3a59cc=await createTDXInstance(_0x5e0c87),_0x1d21d3=await _0x5dd042[_0x4dc72c(0x271)]({'options':{..._0x5e0c87,..._0x39d68f},'args':_0x4f4e09?[_0x4f4e09]:[],'tdx':_0x3a59cc});process['exit'](_0x1d21d3);}),parentSegmentCmd[a2_0x4ce3a1(0x442)]('desc\x20[name]')['description'](a2_0x4ce3a1(0x325))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x294),'Output\x20as\x20JSON')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2a9),'Output\x20as\x20JSON\x20Lines')[a2_0x4ce3a1(0x390)](async(_0x4dcff4,_0x107eef)=>{const _0x3bc44b=a2_0x4ce3a1,_0x25af83=new ParentSegmentDescCommand(),_0x189dcf=program[_0x3bc44b(0x264)](),_0x5ef766=await createTDXInstance(_0x189dcf),_0x893bb8=await _0x25af83[_0x3bc44b(0x271)]({'options':{..._0x189dcf,..._0x107eef},'args':_0x4dcff4?[_0x4dcff4]:[],'tdx':_0x5ef766});process[_0x3bc44b(0x430)](_0x893bb8);}),parentSegmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x272))['description'](a2_0x4ce3a1(0x2da))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x294),a2_0x4ce3a1(0x22f))['option']('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x4ce3a1(0x390)](async(_0x29282f,_0x4e9ed1)=>{const _0x29c428=a2_0x4ce3a1,_0x1bd5eb=new ParentSegmentSQLCommand(),_0x41b2f5=program[_0x29c428(0x264)](),_0x1f80e7=await createTDXInstance(_0x41b2f5),_0x468275=await _0x1bd5eb[_0x29c428(0x271)]({'options':{..._0x41b2f5,..._0x4e9ed1},'args':_0x29282f?[_0x29282f]:[],'tdx':_0x1f80e7});process['exit'](_0x468275);}),parentSegmentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x404))[a2_0x4ce3a1(0x423)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2ae),'Limit\x20number\x20of\x20rows')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x294),a2_0x4ce3a1(0x22f))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2a9),'Output\x20as\x20JSON\x20Lines')[a2_0x4ce3a1(0x390)](async(_0x718dc1,_0x10a8d6)=>{const _0x182b50=a2_0x4ce3a1,_0x3d62d6=new ParentSegmentShowCommand(),_0x5ad127=program['opts'](),_0x36ab48=await createTDXInstance(_0x5ad127),_0x112e77=await _0x3d62d6[_0x182b50(0x271)]({'options':{..._0x5ad127,..._0x10a8d6},'args':_0x718dc1?[_0x718dc1]:[],'tdx':_0x36ab48});process[_0x182b50(0x430)](_0x112e77);}),parentSegmentCmd[a2_0x4ce3a1(0x442)]('use\x20[name]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x342))[a2_0x4ce3a1(0x390)](async(_0x447c87,_0x42e0c7)=>{const _0x5d32b8=a2_0x4ce3a1,_0x35bb01=new UseCommand(),_0x218147=program[_0x5d32b8(0x264)](),_0xc9e812=_0x447c87?[_0x5d32b8(0x37b),_0x447c87]:[],_0x5ec97b=await _0x35bb01[_0x5d32b8(0x271)]({'options':{..._0x218147,..._0x42e0c7},'args':_0xc9e812,'tdx':null});process[_0x5d32b8(0x430)](_0x5ec97b);}),parentCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2fa))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3d4))[a2_0x4ce3a1(0x3f9)](a2_0x4ce3a1(0x357),a2_0x4ce3a1(0x30b))[a2_0x4ce3a1(0x3f9)](a2_0x4ce3a1(0x2c0),a2_0x4ce3a1(0x3b2))[a2_0x4ce3a1(0x3cc)]('--description\x20<text>',a2_0x4ce3a1(0x27a))[a2_0x4ce3a1(0x3cc)]('--schedule-type\x20<type>',a2_0x4ce3a1(0x38a))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2e9),a2_0x4ce3a1(0x303))['option'](a2_0x4ce3a1(0x35f),a2_0x4ce3a1(0x3b0))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x42c),a2_0x4ce3a1(0x393))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x28a),'Attributes\x20from\x20JSON\x20file')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x314),a2_0x4ce3a1(0x2a3))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x368),'Behaviors\x20from\x20JSON\x20file')['option']('--customer-group\x20<json>',a2_0x4ce3a1(0x1ed))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3f7),a2_0x4ce3a1(0x255))['action'](async(_0x274d3a,_0x53e6cd)=>{const _0x5318bd=a2_0x4ce3a1,_0x58efcc=new ParentSegmentCreateCommand(),_0x4a9af7=program[_0x5318bd(0x264)](),_0x30a9ca=await createTDXInstance(_0x4a9af7),_0x212970=await _0x58efcc[_0x5318bd(0x271)]({'options':{..._0x4a9af7,..._0x53e6cd},'args':[_0x274d3a],'tdx':_0x30a9ca});process[_0x5318bd(0x430)](_0x212970);}),parentCmd['command'](a2_0x4ce3a1(0x3fa))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x29d))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x34f),a2_0x4ce3a1(0x370))['option'](a2_0x4ce3a1(0x39f),a2_0x4ce3a1(0x44d))[a2_0x4ce3a1(0x3cc)]('--schedule-option\x20<value>',a2_0x4ce3a1(0x2ce))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x35f),a2_0x4ce3a1(0x431))['option'](a2_0x4ce3a1(0x37f),a2_0x4ce3a1(0x3a2))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x35b),a2_0x4ce3a1(0x386))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x412),a2_0x4ce3a1(0x43a))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3e5),a2_0x4ce3a1(0x44a))[a2_0x4ce3a1(0x390)](async(_0x3f4779,_0x3a6e17)=>{const _0x5ed279=a2_0x4ce3a1,_0x2a2634=new ParentSegmentUpdateCommand(),_0x1c0fbc=program[_0x5ed279(0x264)](),_0x2b2dae=await createTDXInstance(_0x1c0fbc),_0x1b6c4a=await _0x2a2634[_0x5ed279(0x271)]({'options':{..._0x1c0fbc,..._0x3a6e17},'args':[_0x3f4779],'tdx':_0x2b2dae});process[_0x5ed279(0x430)](_0x1b6c4a);}),folderCmd[a2_0x4ce3a1(0x442)]('create\x20<parent_name>\x20<folder_name>')[a2_0x4ce3a1(0x423)]('Create\x20segment\x20folder')['option'](a2_0x4ce3a1(0x34f),a2_0x4ce3a1(0x26b))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x329),a2_0x4ce3a1(0x380))[a2_0x4ce3a1(0x390)](async(_0x27b087,_0x5a8f62,_0x9e1c2)=>{const _0x11d28d=a2_0x4ce3a1,_0x33e31e=new SegmentFolderCreateCommand(),_0x476d82=program[_0x11d28d(0x264)](),_0x201712=await createTDXInstance(_0x476d82),_0x2aec9b=await _0x33e31e[_0x11d28d(0x271)]({'options':{..._0x476d82,..._0x9e1c2},'args':[_0x27b087,_0x5a8f62],'tdx':_0x201712});process['exit'](_0x2aec9b);}),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x236))['description'](a2_0x4ce3a1(0x2d6))[a2_0x4ce3a1(0x390)](async(_0x2d53c4,_0x1aadc7)=>{const _0x536027=a2_0x4ce3a1,_0x43646f=new ActivationsCommand(),_0x3e46d1=program[_0x536027(0x264)](),_0x44f0e8=await createTDXInstance(_0x3e46d1),_0x35b5f9=await _0x43646f[_0x536027(0x271)]({'options':{..._0x3e46d1,..._0x1aadc7},'args':[_0x2d53c4],'tdx':_0x44f0e8});process[_0x536027(0x430)](_0x35b5f9);});const workflowCmd=program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x319))[a2_0x4ce3a1(0x2a0)]('wf')['description'](a2_0x4ce3a1(0x256)),wfProjectCmd=workflowCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x273))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2c1)),wfProjectListAction=async(_0x45ce38,_0x5edfd4)=>{const _0x40cad4=a2_0x4ce3a1,_0x13649f=new WorkflowProjectsCommand(),_0x2b559c=program[_0x40cad4(0x264)](),_0x2acfd5=await createTDXInstance(_0x2b559c),_0x93e30b=await _0x13649f[_0x40cad4(0x271)]({'options':{..._0x2b559c,..._0x5edfd4},'args':_0x45ce38?[_0x45ce38]:[],'tdx':_0x2acfd5});process[_0x40cad4(0x430)](_0x93e30b);};wfProjectCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x420))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3e2))['action'](wfProjectListAction),workflowCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x230))[a2_0x4ce3a1(0x423)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x43549c,_0x5a8207)=>{const _0x3dbf87=a2_0x4ce3a1,_0x5c40d9=new WorkflowWorkflowsCommand(),_0x182520=program['opts'](),_0x38b621=await createTDXInstance(_0x182520),_0x3c85ac=await _0x5c40d9[_0x3dbf87(0x271)]({'options':{..._0x182520,..._0x5a8207},'args':_0x43549c?[_0x43549c]:[],'tdx':_0x38b621});process['exit'](_0x3c85ac);};workflowCmd[a2_0x4ce3a1(0x442)]('workflows\x20[project]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x353))[a2_0x4ce3a1(0x390)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x4ce3a1(0x2a8))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x25a)),wfSessionListAction=async(_0x4e8e22,_0x2cbec6)=>{const _0x4a00bf=a2_0x4ce3a1,_0x127687=new WorkflowSessionsCommand(),_0x35f4cc=program[_0x4a00bf(0x264)](),_0x3dfb41=await createTDXInstance(_0x35f4cc),_0x36b254=await _0x127687[_0x4a00bf(0x271)]({'options':{..._0x35f4cc,..._0x2cbec6},'args':_0x4e8e22?[_0x4e8e22]:[],'tdx':_0x3dfb41});process[_0x4a00bf(0x430)](_0x36b254);};wfSessionCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x331))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2ef))['option'](a2_0x4ce3a1(0x25b),a2_0x4ce3a1(0x245))['option']('--from\x20<timestamp>',a2_0x4ce3a1(0x2ac))[a2_0x4ce3a1(0x3cc)]('--to\x20<timestamp>',a2_0x4ce3a1(0x2f3))[a2_0x4ce3a1(0x390)](wfSessionListAction),workflowCmd['command'](a2_0x4ce3a1(0x39d))['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x4ce3a1(0x3cc)]('--status\x20<status>',a2_0x4ce3a1(0x245))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2bc),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x425),a2_0x4ce3a1(0x2f3))[a2_0x4ce3a1(0x390)](wfSessionListAction);const wfAttemptListAction=async(_0x4fc46a,_0x51fcb7)=>{const _0x53b6c2=a2_0x4ce3a1,_0x2a7cd7=new WorkflowAttemptsCommand(),_0x2e18d7=program['opts'](),_0x25f5f1=await createTDXInstance(_0x2e18d7),_0x3b040a=await _0x2a7cd7[_0x53b6c2(0x271)]({'options':{..._0x2e18d7,..._0x51fcb7},'args':_0x4fc46a?[_0x4fc46a]:[],'tdx':_0x25f5f1});process['exit'](_0x3b040a);},attemptCmd=workflowCmd['command']('attempt')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x354))[a2_0x4ce3a1(0x2ca)]('[attempt-id]',a2_0x4ce3a1(0x3bb))[a2_0x4ce3a1(0x2ca)](a2_0x4ce3a1(0x28f),a2_0x4ce3a1(0x332))[a2_0x4ce3a1(0x2ca)](a2_0x4ce3a1(0x32e),a2_0x4ce3a1(0x415))[a2_0x4ce3a1(0x3cc)]('--include-subtasks',a2_0x4ce3a1(0x220))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3ce),a2_0x4ce3a1(0x305))['option'](a2_0x4ce3a1(0x200),a2_0x4ce3a1(0x2ee))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x259),a2_0x4ce3a1(0x263))['option'](a2_0x4ce3a1(0x432),a2_0x4ce3a1(0x24a))['option'](a2_0x4ce3a1(0x2cf),a2_0x4ce3a1(0x278))[a2_0x4ce3a1(0x390)](async(_0x20d2ab,_0xec40f6,_0x4cffe8,_0x2ebd2b)=>{const _0x3a6c7d=a2_0x4ce3a1;if(_0x20d2ab===_0x3a6c7d(0x449)){await wfAttemptListAction(_0xec40f6,_0x2ebd2b);return;}if(!_0x20d2ab){attemptCmd[_0x3a6c7d(0x33c)]();return;}const _0x4b179d=program[_0x3a6c7d(0x264)](),_0x2468b0=await createTDXInstance(_0x4b179d);let _0x13a1ba=0x0;if(!_0xec40f6){const _0x470239=new WorkflowAttemptCommand();_0x13a1ba=await _0x470239[_0x3a6c7d(0x271)]({'options':{..._0x4b179d,..._0x2ebd2b},'args':[_0x20d2ab],'tdx':_0x2468b0});}else{if(_0xec40f6===_0x3a6c7d(0x214)){const _0x39fc1e=new WorkflowLogsCommand();_0x13a1ba=await _0x39fc1e[_0x3a6c7d(0x271)]({'options':{..._0x4b179d,..._0x2ebd2b},'args':_0x4cffe8?[_0x20d2ab,_0x4cffe8]:[_0x20d2ab],'tdx':_0x2468b0});}else{if(_0xec40f6===_0x3a6c7d(0x3ee)){const _0x1a4724=new WorkflowTasksCommand();_0x13a1ba=await _0x1a4724[_0x3a6c7d(0x271)]({'options':{..._0x4b179d,..._0x2ebd2b},'args':[_0x20d2ab],'tdx':_0x2468b0});}else{if(_0xec40f6===_0x3a6c7d(0x2cc)){const _0x49663e=new WorkflowKillCommand();_0x13a1ba=await _0x49663e[_0x3a6c7d(0x271)]({'options':{..._0x4b179d,..._0x2ebd2b},'args':[_0x20d2ab],'tdx':_0x2468b0});}else{if(_0xec40f6===_0x3a6c7d(0x226)){const _0x25272c=new WorkflowRetryCommand();_0x13a1ba=await _0x25272c[_0x3a6c7d(0x271)]({'options':{..._0x4b179d,..._0x2ebd2b},'args':['attempt:'+_0x20d2ab],'tdx':_0x2468b0});}else console[_0x3a6c7d(0x316)](_0x3a6c7d(0x34d)+_0xec40f6),console['error'](_0x3a6c7d(0x355)),_0x13a1ba=0x1;}}}}process[_0x3a6c7d(0x430)](_0x13a1ba);});attemptCmd[a2_0x4ce3a1(0x442)]('list\x20[project]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x201))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2cf),a2_0x4ce3a1(0x39b))[a2_0x4ce3a1(0x390)](wfAttemptListAction),workflowCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2c5))[a2_0x4ce3a1(0x423)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')['option'](a2_0x4ce3a1(0x2cf),a2_0x4ce3a1(0x39b))[a2_0x4ce3a1(0x390)](wfAttemptListAction),workflowCmd[a2_0x4ce3a1(0x442)]('retry\x20<session-id>')['description']('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')['option']('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x259),a2_0x4ce3a1(0x315))[a2_0x4ce3a1(0x390)](async(_0x480150,_0x56477c)=>{const _0x51a858=a2_0x4ce3a1,_0x3e7580=new WorkflowRetryCommand(),_0x31954f=program[_0x51a858(0x264)](),_0xfb1c85=await createTDXInstance(_0x31954f),_0xc23c42=await _0x3e7580[_0x51a858(0x271)]({'options':{..._0x31954f,..._0x56477c},'args':[_0x480150],'tdx':_0xfb1c85});process[_0x51a858(0x430)](_0xc23c42);}),workflowCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x317))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x299))['option'](a2_0x4ce3a1(0x328),a2_0x4ce3a1(0x21f),(_0x238179,_0x45b9a6=[])=>[..._0x45b9a6,_0x238179],[])[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x37e),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')['action'](async(_0x513066,_0x573836)=>{const _0x57ee5c=new WorkflowRunCommand(),_0x5af374=program['opts'](),_0x50c161=await createTDXInstance(_0x5af374),_0x275d34=await _0x57ee5c['run']({'options':{..._0x5af374,..._0x573836},'args':_0x513066?[_0x513066]:[],'tdx':_0x50c161});process['exit'](_0x275d34);}),workflowCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x20f))[a2_0x4ce3a1(0x423)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a2_0x4ce3a1(0x3c0),a2_0x4ce3a1(0x40c))[a2_0x4ce3a1(0x390)](async(_0x56d333,_0x32e652,_0x119f23)=>{const _0x4ea794=a2_0x4ce3a1,_0x1c89c8=new WorkflowDownloadCommand(),_0x49d8ad=program['opts'](),_0x4d228d=await createTDXInstance(_0x49d8ad),_0x5d7270=await _0x1c89c8[_0x4ea794(0x271)]({'options':{..._0x49d8ad,..._0x119f23},'args':[_0x56d333,_0x32e652||'.'],'tdx':_0x4d228d});process[_0x4ea794(0x430)](_0x5d7270);}),workflowCmd[a2_0x4ce3a1(0x442)]('pull\x20<project>\x20[target-dir]')[a2_0x4ce3a1(0x423)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3c0),a2_0x4ce3a1(0x1f1))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x261),a2_0x4ce3a1(0x247))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fc),a2_0x4ce3a1(0x441))[a2_0x4ce3a1(0x390)](async(_0x18099c,_0x3dfde4,_0x40ac18)=>{const _0x14ae0f=a2_0x4ce3a1,_0x4c1406=new WorkflowPullCommand(),_0x215d6e=program['opts'](),_0xce5f31=await createTDXInstance(_0x215d6e),_0x42fb6e=await _0x4c1406[_0x14ae0f(0x271)]({'options':{..._0x215d6e,..._0x40ac18},'args':_0x3dfde4?[_0x18099c,_0x3dfde4]:[_0x18099c],'tdx':_0xce5f31});process['exit'](_0x42fb6e);}),workflowCmd['command'](a2_0x4ce3a1(0x2db))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x233))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3c0),a2_0x4ce3a1(0x3a6))[a2_0x4ce3a1(0x3cc)]('--dry-run',a2_0x4ce3a1(0x3f4))[a2_0x4ce3a1(0x3cc)]('--skip-validation',a2_0x4ce3a1(0x24f))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fc),a2_0x4ce3a1(0x441))[a2_0x4ce3a1(0x390)](async(_0x45c1bd,_0x58342c)=>{const _0x58c00f=a2_0x4ce3a1,_0x5792ca=new WorkflowPushCommand(),_0x5b28f9=program[_0x58c00f(0x264)](),_0x2be5ad=await createTDXInstance(_0x5b28f9),_0x56d97c=await _0x5792ca['run']({'options':{..._0x5b28f9,..._0x58342c},'args':_0x45c1bd?[_0x45c1bd]:[],'tdx':_0x2be5ad});process[_0x58c00f(0x430)](_0x56d97c);}),workflowCmd['command'](a2_0x4ce3a1(0x376))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x306))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x36e),a2_0x4ce3a1(0x313))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3c0),a2_0x4ce3a1(0x246))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x252),a2_0x4ce3a1(0x24f))[a2_0x4ce3a1(0x390)](async(_0x15ee8d,_0x361a5c)=>{const _0x2960de=a2_0x4ce3a1,_0x4bb067=new WorkflowUploadCommand(),_0x4abcf7=program[_0x2960de(0x264)](),_0xf31f7=await createTDXInstance(_0x4abcf7),_0x123578=await _0x4bb067[_0x2960de(0x271)]({'options':{..._0x4abcf7,..._0x361a5c},'args':_0x15ee8d?[_0x15ee8d]:[],'tdx':_0xf31f7});process[_0x2960de(0x430)](_0x123578);}),workflowCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3e6))[a2_0x4ce3a1(0x423)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x4ce3a1(0x3cc)]('--name\x20<name>',a2_0x4ce3a1(0x27d))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3c0),a2_0x4ce3a1(0x3a6))['option'](a2_0x4ce3a1(0x261),a2_0x4ce3a1(0x2a5))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x252),a2_0x4ce3a1(0x24f))[a2_0x4ce3a1(0x3cc)]('-y,\x20--yes',a2_0x4ce3a1(0x441))[a2_0x4ce3a1(0x390)](async(_0x5c4193,_0x5e6be4)=>{const _0xb8915f=a2_0x4ce3a1,_0x4c9119=new WorkflowCloneCommand(),_0x36bf21=program['opts'](),_0x59b92f=await createTDXInstance(_0x36bf21),_0x53d2cd=await _0x4c9119[_0xb8915f(0x271)]({'options':{..._0x36bf21,..._0x5e6be4},'args':_0x5c4193?[_0x5c4193]:[],'tdx':_0x59b92f});process['exit'](_0x53d2cd);}),workflowCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x323))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x215))[a2_0x4ce3a1(0x390)](async(_0x243961,_0x308e44)=>{const _0x14d15c=a2_0x4ce3a1,_0x3ff1d3=new WorkflowDeleteCommand(),_0x1c9bde=program[_0x14d15c(0x264)](),_0x16e2ec=await createTDXInstance(_0x1c9bde),_0x2a5922=await _0x3ff1d3['run']({'options':{..._0x1c9bde,..._0x308e44},'args':[_0x243961],'tdx':_0x16e2ec});process[_0x14d15c(0x430)](_0x2a5922);}),workflowCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x31b))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x418))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x266),a2_0x4ce3a1(0x2b7))['action'](async(_0x38eb90,_0x96257d)=>{const _0x51f5d4=a2_0x4ce3a1,_0x2312f3=new WorkflowUseCommand(),_0x290e62=program[_0x51f5d4(0x264)](),_0x5e5f95=await createTDXInstance(_0x290e62),_0x1b7c04=await _0x2312f3[_0x51f5d4(0x271)]({'options':{..._0x290e62,..._0x96257d},'args':_0x38eb90?[_0x38eb90]:[],'tdx':_0x5e5f95});process[_0x51f5d4(0x430)](_0x1b7c04);});const wfSecretsCmd=workflowCmd['command'](a2_0x4ce3a1(0x336))['description'](a2_0x4ce3a1(0x42d));wfSecretsCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x331))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3ef))[a2_0x4ce3a1(0x390)](async(_0xeaad16,_0xe9a603)=>{const _0x1589ec=a2_0x4ce3a1,_0x48cb62=new WorkflowSecretsListCommand(),_0x1a50e2=program[_0x1589ec(0x264)](),_0x396b1b=await createTDXInstance(_0x1a50e2),_0x84a4e6=await _0x48cb62[_0x1589ec(0x271)]({'options':{..._0x1a50e2,..._0xe9a603},'args':_0xeaad16?[_0xeaad16]:[],'tdx':_0x396b1b});process[_0x1589ec(0x430)](_0x84a4e6);}),wfSecretsCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x269))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x24d))[a2_0x4ce3a1(0x390)](async(_0x4d1a2d,_0x1b29c8)=>{const _0x53fe60=a2_0x4ce3a1,_0x15eda4=new WorkflowSecretsSetCommand(),_0x3832e3=program['opts'](),_0x4d1181=await createTDXInstance(_0x3832e3),_0x2f2e0c=await _0x15eda4[_0x53fe60(0x271)]({'options':{..._0x3832e3,..._0x1b29c8},'args':_0x4d1a2d,'tdx':_0x4d1181});process[_0x53fe60(0x430)](_0x2f2e0c);}),wfSecretsCmd[a2_0x4ce3a1(0x442)]('delete\x20<args...>')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2f0))[a2_0x4ce3a1(0x3cc)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x4ce3a1(0x390)](async(_0x325a82,_0x3fc68e)=>{const _0x2c8000=a2_0x4ce3a1,_0x3d7a4c=new WorkflowSecretsDeleteCommand(),_0x467222=program[_0x2c8000(0x264)](),_0x8157b6=await createTDXInstance(_0x467222),_0x1557d5=await _0x3d7a4c[_0x2c8000(0x271)]({'options':{..._0x467222,..._0x3fc68e},'args':_0x325a82,'tdx':_0x8157b6});process[_0x2c8000(0x430)](_0x1557d5);});const jobCmd=program[a2_0x4ce3a1(0x442)]('job')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x359)),jobListAction=async _0x2e601e=>{const _0x51cdd2=a2_0x4ce3a1,_0x5ea1b6=new JobListCommand(),_0x654130=program['opts'](),_0x47d3b0=await createTDXInstance(_0x654130),_0x25ec75=await _0x5ea1b6['run']({'options':{..._0x654130,..._0x2e601e},'args':[],'tdx':_0x47d3b0});process[_0x51cdd2(0x430)](_0x25ec75);};jobCmd['command'](a2_0x4ce3a1(0x449))['description'](a2_0x4ce3a1(0x238))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x25b),a2_0x4ce3a1(0x250))[a2_0x4ce3a1(0x390)](jobListAction),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x239),{'hidden':!![]})['description']('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x25b),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x4ce3a1(0x390)](jobListAction),jobCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x43c))['description']('Show\x20job\x20details')[a2_0x4ce3a1(0x390)](async(_0x1029da,_0x256552)=>{const _0x2efecd=a2_0x4ce3a1,_0xc05c7d=new JobShowCommand(),_0x299c48=program[_0x2efecd(0x264)](),_0x1cfaa5=await createTDXInstance(_0x299c48),_0x3e2f59=await _0xc05c7d[_0x2efecd(0x271)]({'options':{..._0x299c48,..._0x256552},'args':[_0x1029da],'tdx':_0x1cfaa5});process[_0x2efecd(0x430)](_0x3e2f59);}),jobCmd[a2_0x4ce3a1(0x442)]('kill\x20<job-id>')['description'](a2_0x4ce3a1(0x27f))[a2_0x4ce3a1(0x390)](async(_0xe2e7b0,_0x11f52c)=>{const _0x113e52=a2_0x4ce3a1,_0x53034c=new JobKillCommand(),_0x36fdc9=program[_0x113e52(0x264)](),_0x11ce34=await createTDXInstance(_0x36fdc9),_0x4c39b6=await _0x53034c['run']({'options':{..._0x36fdc9,..._0x11f52c},'args':[_0xe2e7b0],'tdx':_0x11ce34});process[_0x113e52(0x430)](_0x4c39b6);}),jobCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x25e))[a2_0x4ce3a1(0x423)]('Submit\x20a\x20job')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2c2),a2_0x4ce3a1(0x38e),a2_0x4ce3a1(0x3e0))[a2_0x4ce3a1(0x3cc)]('-f,\x20--file\x20<path>','Read\x20query\x20from\x20file')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2e8),a2_0x4ce3a1(0x337),'information_schema')[a2_0x4ce3a1(0x390)](async(_0x1c09c9,_0x25e2e3)=>{const _0x4c76b1=a2_0x4ce3a1,_0x514a86=new JobSubmitCommand(),_0x151724=program[_0x4c76b1(0x264)](),_0x1967fb=await createTDXInstance(_0x151724),_0x392ba1=await _0x514a86['run']({'options':{..._0x151724,..._0x25e2e3},'args':_0x1c09c9?[_0x1c09c9]:[],'tdx':_0x1967fb});process[_0x4c76b1(0x430)](_0x392ba1);}),jobCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x395))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x20c))[a2_0x4ce3a1(0x390)](async(_0x1ba688,_0x42f9ad)=>{const _0x428bb1=a2_0x4ce3a1,_0x12ff5f=new JobResultCommand(),_0x496df5=program[_0x428bb1(0x264)](),_0x8267f1=await createTDXInstance(_0x496df5),_0x5d043e=await _0x12ff5f[_0x428bb1(0x271)]({'options':{..._0x496df5,..._0x42f9ad},'args':[_0x1ba688],'tdx':_0x8267f1});process[_0x428bb1(0x430)](_0x5d043e);});const llmCmd=program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x229))['description'](a2_0x4ce3a1(0x405));llmCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x360))['description'](a2_0x4ce3a1(0x282))[a2_0x4ce3a1(0x390)](async(_0x2e74b5,_0x12db43)=>{const _0x3ca202=a2_0x4ce3a1,_0x185ad6=new LLMUseCommand(),_0x2d9c44=program['opts'](),_0x2f85e3=await createTDXInstance(_0x2d9c44),_0x15280b=await _0x185ad6['run']({'options':{..._0x2d9c44,..._0x12db43},'args':[_0x2e74b5],'tdx':_0x2f85e3});process[_0x3ca202(0x430)](_0x15280b);}),llmCmd['command'](a2_0x4ce3a1(0x33a))['description'](a2_0x4ce3a1(0x397))['action'](async _0x308bcf=>{const _0x391b6a=a2_0x4ce3a1,_0x1530f5=new LLMModelsCommand(),_0x3031a9=program[_0x391b6a(0x264)](),_0x4eb37c=await createTDXInstance(_0x3031a9),_0x119837=await _0x1530f5[_0x391b6a(0x271)]({'options':{..._0x3031a9,..._0x308bcf},'args':[],'tdx':_0x4eb37c});process[_0x391b6a(0x430)](_0x119837);});const projectCmd=llmCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x273))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x437)),llmProjectListAction=async(_0x5f5d3e,_0x32aed4)=>{const _0x2239b7=a2_0x4ce3a1,_0x16789e=new LLMProjectsCommand(),_0x3c3e0c=program[_0x2239b7(0x264)](),_0x3b7061=await createTDXInstance(_0x3c3e0c),_0x5ce153=await _0x16789e[_0x2239b7(0x271)]({'options':{..._0x3c3e0c,..._0x32aed4},'args':_0x5f5d3e?[_0x5f5d3e]:[],'tdx':_0x3b7061});process[_0x2239b7(0x430)](_0x5ce153);};projectCmd['command'](a2_0x4ce3a1(0x420))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x40a))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x366),a2_0x4ce3a1(0x351))['action'](llmProjectListAction),llmCmd['command']('projects\x20[pattern]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x301))['option'](a2_0x4ce3a1(0x366),'Show\x20console\x20URLs')[a2_0x4ce3a1(0x390)](llmProjectListAction),projectCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2fa))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x330))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x34f),'Project\x20description')['action'](async(_0xf949ff,_0x6e6add)=>{const _0x2ba3fd=a2_0x4ce3a1,_0x544c0f=new LLMProjectCreateCommand(),_0xe379b0=program[_0x2ba3fd(0x264)](),_0x234509=await createTDXInstance(_0xe379b0),_0x5ee1b9=await _0x544c0f[_0x2ba3fd(0x271)]({'options':{..._0xe379b0,..._0x6e6add},'args':[_0xf949ff],'tdx':_0x234509});process[_0x2ba3fd(0x430)](_0x5ee1b9);}),projectCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x260))[a2_0x4ce3a1(0x423)]('Delete\x20an\x20LLM\x20project')[a2_0x4ce3a1(0x390)](async(_0x216949,_0x3a60fb)=>{const _0x2f33e3=a2_0x4ce3a1,_0x25fa85=new LLMProjectDeleteCommand(),_0x2ea2ae=program['opts'](),_0x244328=await createTDXInstance(_0x2ea2ae),_0x1543fa=await _0x25fa85['run']({'options':{..._0x2ea2ae,..._0x3a60fb},'args':[_0x216949],'tdx':_0x244328});process[_0x2f33e3(0x430)](_0x1543fa);}),projectCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x403))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2ed))[a2_0x4ce3a1(0x3cc)]('-o,\x20--output\x20<folder>',a2_0x4ce3a1(0x416))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x261),a2_0x4ce3a1(0x2d2))[a2_0x4ce3a1(0x390)](async(_0xe5054c,_0x3554fa)=>{const _0x1af5de=a2_0x4ce3a1,_0x272b2b=new LLMProjectBackupCommand(),_0x32af53=program['opts'](),_0x1e4268=await createTDXInstance(_0x32af53),_0x37d6af=await _0x272b2b[_0x1af5de(0x271)]({'options':{..._0x32af53,..._0x3554fa},'args':[_0xe5054c],'tdx':_0x1e4268});process[_0x1af5de(0x430)](_0x37d6af);}),projectCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x285))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2b4))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x26f),a2_0x4ce3a1(0x435))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x261),a2_0x4ce3a1(0x21d))[a2_0x4ce3a1(0x390)](async(_0x21547f,_0x1334c2)=>{const _0x2006d5=a2_0x4ce3a1,_0x4d59ae=new LLMProjectRestoreCommand(),_0x82f3b3=program[_0x2006d5(0x264)](),_0x28a1d1=await createTDXInstance(_0x82f3b3),_0x48c350=await _0x4d59ae['run']({'options':{..._0x82f3b3,..._0x1334c2},'args':[_0x21547f],'tdx':_0x28a1d1});process[_0x2006d5(0x430)](_0x48c350);});const llmAgentListAction=async(_0x2b6404,_0x44e9d5)=>{const _0x1834e8=a2_0x4ce3a1,_0x221e00=new LLMAgentsCommand(),_0x1180ab=program[_0x1834e8(0x264)](),_0x21b8d3=await createTDXInstance(_0x1180ab),_0x312339=await _0x221e00[_0x1834e8(0x271)]({'options':{..._0x1180ab,..._0x44e9d5},'args':_0x2b6404?[_0x2b6404]:[],'tdx':_0x21b8d3});process[_0x1834e8(0x430)](_0x312339);};llmCmd[a2_0x4ce3a1(0x442)]('agents\x20[pattern]')[a2_0x4ce3a1(0x423)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x366),a2_0x4ce3a1(0x22e))[a2_0x4ce3a1(0x390)](llmAgentListAction),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x27b))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x374))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x366),a2_0x4ce3a1(0x22e))[a2_0x4ce3a1(0x390)](llmAgentListAction),llmCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x41f))[a2_0x4ce3a1(0x423)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x22a),a2_0x4ce3a1(0x41e))[a2_0x4ce3a1(0x390)](async(_0x17c940,_0x36345f)=>{const _0x344161=a2_0x4ce3a1,_0x13c4e3=new LLMHistoryCommand(),_0xb4e4d5=program[_0x344161(0x264)](),_0xc88174=await createTDXInstance(_0xb4e4d5),_0x375098=await _0x13c4e3[_0x344161(0x271)]({'options':{..._0xb4e4d5,..._0x36345f},'args':_0x17c940?[_0x17c940]:[],'tdx':_0xc88174});process[_0x344161(0x430)](_0x375098);}),llmCmd['command']('proxy')['description'](a2_0x4ce3a1(0x2f6))['option'](a2_0x4ce3a1(0x42a),a2_0x4ce3a1(0x3d9),'4000')['option'](a2_0x4ce3a1(0x2a1),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3c1),a2_0x4ce3a1(0x22c))['action'](async _0x536dbb=>{const _0x373e65=a2_0x4ce3a1,_0x1a6570=new LLMProxyCommand(),_0x1e7cd6=program[_0x373e65(0x264)](),_0x2c6bdb=await createTDXInstance(_0x1e7cd6),_0xe8fd9b={..._0x536dbb,'port':_0x536dbb[_0x373e65(0x3b5)]?parseInt(_0x536dbb['port'],0xa):undefined},_0xbf563e=await _0x1a6570[_0x373e65(0x271)]({'options':{..._0x1e7cd6,..._0xe8fd9b},'args':[],'tdx':_0x2c6bdb});process[_0x373e65(0x430)](_0xbf563e);}),program[a2_0x4ce3a1(0x442)]('claude\x20[args...]')[a2_0x4ce3a1(0x31a)](a2_0x4ce3a1(0x2c3))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3a8))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x283),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x4ce3a1(0x2ff))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x406),a2_0x4ce3a1(0x43d))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x23e),a2_0x4ce3a1(0x234))['option'](a2_0x4ce3a1(0x40b),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x4ce3a1(0x3ba)]()['allowExcessArguments'](!![])['addHelpText'](a2_0x4ce3a1(0x32f),a2_0x4ce3a1(0x379))[a2_0x4ce3a1(0x390)](async(_0x4fc213,_0x2541ed)=>{const _0x2ffda6=a2_0x4ce3a1,_0x1cdd6b=program[_0x2ffda6(0x264)](),_0x1d61b6=Array[_0x2ffda6(0x32b)](_0x4fc213)?_0x4fc213:[];if(_0x1d61b6[0x0]==='statusline'){const _0x1cb2e5=new ClaudeStatuslineCommand(),_0x31c50e=await _0x1cb2e5[_0x2ffda6(0x271)]({'options':{..._0x1cdd6b,..._0x2541ed},'args':_0x1d61b6[_0x2ffda6(0x2d1)](0x1),'tdx':null});process[_0x2ffda6(0x430)](_0x31c50e);}if(_0x1d61b6[0x0]===_0x2ffda6(0x31a)){const _0x369996=new ClaudeUsageCommand(),_0x109424=await _0x369996[_0x2ffda6(0x271)]({'options':{..._0x1cdd6b,..._0x2541ed},'args':_0x1d61b6['slice'](0x1),'tdx':null});process[_0x2ffda6(0x430)](_0x109424);}const _0x51a521=new ClaudeCommand(),_0x51d7b1=await createTDXInstance(_0x1cdd6b),_0x4cd3b7=await _0x51a521[_0x2ffda6(0x271)]({'options':{..._0x1cdd6b,..._0x2541ed},'args':_0x1d61b6,'tdx':_0x51d7b1});process['exit'](_0x4cd3b7);}),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3af))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3b6))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x266),a2_0x4ce3a1(0x1f0))['action'](async(_0x1a6498,_0x4e2979,_0x1298b1)=>{const _0x2ea81b=a2_0x4ce3a1,_0x1385d5=new UseCommand(),_0x40d7aa=program['opts'](),_0x345972=[];if(_0x1a6498)_0x345972['push'](_0x1a6498);if(_0x4e2979)_0x345972['push'](_0x4e2979);const _0x2643c7=await _0x1385d5[_0x2ea81b(0x271)]({'options':{..._0x40d7aa,..._0x1298b1},'args':_0x345972,'tdx':null});process[_0x2ea81b(0x430)](_0x2643c7);}),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x37d))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x1fa))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x22a),a2_0x4ce3a1(0x1f4))['action'](async _0x5b5af8=>{const _0x5f1c95=a2_0x4ce3a1,_0x299852=new ChatsCommand(),_0x4fa308=program['opts'](),_0x860a43=await createTDXInstance(_0x4fa308),_0x465208=await _0x299852[_0x5f1c95(0x271)]({'options':{..._0x4fa308,..._0x5b5af8},'args':[],'tdx':_0x860a43});process['exit'](_0x465208);});const authCmd=program[a2_0x4ce3a1(0x442)]('auth')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x399));async function runAuthStatusCommand(_0x47cde4){const _0x1dc4f5=a2_0x4ce3a1,_0x5c7ff4=new AuthStatusCommand(),_0xdd7cbe=program[_0x1dc4f5(0x264)](),_0x16f1da=await createTDXInstance(_0xdd7cbe),_0x3d4762=await _0x5c7ff4[_0x1dc4f5(0x271)]({'options':{..._0xdd7cbe,..._0x47cde4},'args':[],'tdx':_0x16f1da});process['exit'](_0x3d4762);}authCmd[a2_0x4ce3a1(0x390)](runAuthStatusCommand),authCmd['command']('status')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3fd))[a2_0x4ce3a1(0x390)](runAuthStatusCommand),authCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x26d))['description']('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x4ce3a1(0x350)](a2_0x4ce3a1(0x32f),a2_0x4ce3a1(0x3e9))[a2_0x4ce3a1(0x390)](async _0x1a5edd=>{const _0x4372d9=a2_0x4ce3a1,_0x25a03c=new AuthSetupCommand(),_0x1ed78e=program[_0x4372d9(0x264)](),_0x57f6a6=await createTDXInstance(_0x1ed78e),_0x5e4119=await _0x25a03c[_0x4372d9(0x271)]({'options':{..._0x1ed78e,..._0x1a5edd},'args':[],'tdx':_0x57f6a6});process['exit'](_0x5e4119);}),authCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x311))['description']('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText']('after',a2_0x4ce3a1(0x375))[a2_0x4ce3a1(0x390)](async _0x5504e6=>{const _0x4b7ab2=a2_0x4ce3a1,_0x58653e=new AuthClearCommand(),_0x3ac587=program[_0x4b7ab2(0x264)](),_0x7f63e=await _0x58653e[_0x4b7ab2(0x271)]({'options':{..._0x3ac587,..._0x5504e6},'args':[],'tdx':null});process[_0x4b7ab2(0x430)](_0x7f63e);});const userCmd=program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x209))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x372)),userListAction=async _0x574408=>{const _0x22f3e9=a2_0x4ce3a1,_0x27e8f4=new UserListCommand(),_0x4fab5e=program[_0x22f3e9(0x264)](),_0x1a98db=await createTDXInstance(_0x4fab5e),_0x3e3785=await _0x27e8f4[_0x22f3e9(0x271)]({'options':{..._0x4fab5e,..._0x574408},'args':[],'tdx':_0x1a98db});process[_0x22f3e9(0x430)](_0x3e3785);};userCmd[a2_0x4ce3a1(0x390)](async _0x568b91=>{const _0x4ad929=a2_0x4ce3a1,_0x531a6b=new UserCommand(),_0x3b6a14=program[_0x4ad929(0x264)](),_0x5f02e3=await createTDXInstance(_0x3b6a14),_0x349d9d=await _0x531a6b['run']({'options':{..._0x3b6a14,..._0x568b91},'args':[],'tdx':_0x5f02e3});process[_0x4ad929(0x430)](_0x349d9d);}),userCmd[a2_0x4ce3a1(0x442)]('list')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2dc))[a2_0x4ce3a1(0x390)](userListAction),program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x202))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x274))[a2_0x4ce3a1(0x390)](userListAction),program['command'](a2_0x4ce3a1(0x20a))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x218))['action'](async _0x243965=>{const _0xf885=a2_0x4ce3a1,_0x9aefbf=new ProfilesCommand(),_0x270317=program[_0xf885(0x264)](),_0xca71ed=await _0x9aefbf[_0xf885(0x271)]({'options':{..._0x270317,..._0x243965},'args':[],'tdx':null});process[_0xf885(0x430)](_0xca71ed);});const profileCmd=program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3c9))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2df));profileCmd[a2_0x4ce3a1(0x390)](()=>{const _0xd2da44=a2_0x4ce3a1;profileCmd[_0xd2da44(0x28b)]();});function a2_0x4efe(){const _0x30306a=['List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','registeredArguments','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','TRACE','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','push\x20[source-dir]','List\x20all\x20users\x20in\x20the\x20account','36MLhoGb','validate\x20[name]','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','buildTime','pause\x20<name-or-path>','parse','forEach','commands','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--start-at\x20<datetime>','--database\x20<name>','--schedule-option\x20<value>','Filtering\x20rule\x20as\x20JSON\x20string','--name\x20<new_name>','--version','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Resume\x20from\x20specific\x20task\x20(retry)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Output\x20directory','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','End\x20time\x20filter\x20(ISO\x208601\x20format)','Path\x20is\x20not\x20a\x20directory:\x20','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','System\x20prompt/instructions\x20(default:\x20empty)','--max-depth\x20<depth>','view\x20[segment_name]','create\x20<name>','Maximum\x20tool\x20iterations\x20(default:\x204)','flatMap','repeat','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','sonnet','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','CDP\x20Journey\x20Orchestration\x20commands','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Reason\x20for\x20killing\x20the\x20attempt','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','length','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','stats\x20<name-or-path>','Campaign\x20management','Master\x20database\x20name','Temperature\x20(0.0-2.0,\x20default:\x200.7)','filter','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','New\x20campaign\x20name','logLevel','clear','connection','Override\x20project\x20name','--behaviors\x20<json>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','error','run\x20[workflow]','--no-color','workflow','usage','use\x20[project]','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','--format\x20<format>','connections','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','delete\x20<project-name-or-id>','sql\x20[segment_name]','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--delete','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--param\x20<key=value>','--parent-folder\x20<name>','Resume\x20a\x20paused\x20campaign','isArray','--new','run\x20[name]','[task-name]','after','Create\x20a\x20new\x20LLM\x20project','list\x20[project]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','DEBUG','resume\x20<name-or-id>','api\x20[endpoint]','secrets','Database\x20name\x20(default:\x20information_schema)','update\x20<name-or-id>','describe\x20[table]','models','Show\x20email\x20template\x20details','help','pull\x20[name]','--full','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','-1d','Workspace\x20description','Set\x20or\x20show\x20parent\x20segment\x20context','join','Plaintext\x20template\x20content','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','describe','tsv','Run\x20Trino\x20query\x20with\x20streaming\x20results','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','preAction','push','Unknown\x20action:\x20','commandDescription','--description\x20<text>','addHelpText','Show\x20console\x20URLs','Validate\x20journey\x20YAML\x20files\x20locally','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Workflow\x20attempt\x20management','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Create\x20a\x20new\x20campaign','--database\x20<db>','Save\x20output\x20to\x20file','Job\x20management\x20commands','Duplicate\x20a\x20campaign','--add-attributes-file\x20<file>','injectIntoOptions','Alias\x20for\x20--database\x20(natural\x20language\x20style)','preview\x20[name]','--timezone\x20<tz>','use\x20<project-name>','--timeout\x20<seconds>','\x20(resolved\x20to\x20','Show\x20master\x20table\x20sample\x20data','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','validate\x20[target]','-w,\x20--web','-p,\x20--profile\x20<name>','--behaviors-file\x20<file>','Describe\x20table\x20schema','desc','--type\x20<api_type>','--no-count-population','--editor-type\x20<type>','--name\x20<name>','map','Updated\x20description','padWidth','User\x20management\x20commands','981566lUTtWg','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','\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','upload\x20[project-name-or-dir]','desc\x20[segment_name]','--in\x20<name>','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\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','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','parent_segment','New\x20workspace\x20name','chats','--session-time\x20<time>','--add-attributes\x20<json>','Parent\x20folder\x20name\x20for\x20nested\x20folders','AI-native\x20CLI\x20for\x20Treasure\x20Data','87965qqvngd','--rule-file\x20<file>','-f,\x20--force','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Add\x20attributes\x20from\x20JSON\x20file','Skip\x20population\x20counting','argv','workspace','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','5354833EEFKap','get','Editor\x20type','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--subject\x20<subject>','action','--behavior\x20[name]','tables\x20[pattern]','Attributes\x20as\x20JSON\x20string','folders\x20<parent_name>','result\x20<job-id>','Agent\x20description','List\x20available\x20LLM\x20models','format','Authentication\x20management','--agent\x20<ref>','Include\x20retried\x20attempts','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','sessions\x20[project]','Directory\x20does\x20not\x20exist:\x20','--schedule-type\x20<type>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Skip\x20confirmation\x20prompts','Add\x20attributes\x20as\x20JSON\x20string','--starter-message\x20<text>','createAsync','Enable\x20verbose\x20logging','Custom\x20revision\x20name\x20(default:\x20timestamp)','launch\x20<name-or-id>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Show\x20only\x20master\x20table\x20validation','update\x20<agent-name>','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','chat\x20[message...]','-C,\x20--directory\x20<path>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','use\x20[resource]\x20[value]','Timezone\x20(e.g.,\x20America/Los_Angeles)','noColor','Master\x20table\x20name','push\x20[file]','--session\x20<id>','port','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','aliases','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','allowUnknownOption','Attempt\x20ID','Email\x20template\x20management','--include-stats','20440ESRXJF','Pause\x20a\x20campaign','--revision\x20<revision>','--agent\x20<name>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','-n,\x20--name\x20<name>','HTML\x20template\x20content','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','replace','claude-4.5-sonnet','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','profile','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','40077Lemboj','option','--prompt\x20<text>','--reason\x20<text>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','argumentDescription','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','table','delete\x20<name-or-id>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Read\x20request\x20body\x20from\x20file','set','Show\x20journey\x20details','List\x20agents\x20in\x20current\x20project','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','journey','Usage:\x20','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','update\x20<segment_name>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','-o,\x20--output\x20<file>','trino','fields\x20[parent_name]','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--parent-segment\x20<name>','--add-behaviors-file\x20<file>','clone\x20[source-dir]','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Pull\x20child\x20segments\x20to\x20YAML\x20files','\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','--llm-project\x20<name>','-o,\x20--output\x20<dir>','Update\x20an\x20existing\x20agent','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','tasks','List\x20secret\x20keys\x20for\x20a\x20project','preview\x20[file]','Starter\x20message','pull\x20[project]\x20[agent-name]','Show\x20connection\x20details\x20by\x20name','Preview\x20changes\x20without\x20pushing','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--customer-group-file\x20<file>','engage','requiredOption','update\x20<name>','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','List\x20all\x20data\x20connections','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','campaigns\x20[pattern]','pause\x20<name-or-id>','hidden','push\x20[target]','Workspace\x20name\x20(required)','backup\x20<name>','show\x20[name]','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','-c,\x20--continue','[DEPRECATED]\x20Segment\x20folder\x20management','configureHelp','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--no-proxy','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','hook','Change\x20to\x20directory\x20before\x20executing\x20command','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','tdx','Campaign\x20description','--add-behaviors\x20<json>','INVALID_ARGUMENT','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Task\x20name\x20for\x20logs\x20action','Output\x20folder\x20(default:\x20{project_name}.llm)','--master','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','site','Template\x20name','6TVkSNH','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','history\x20[chat-id]','list\x20[pattern]','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)',',\x20version\x20','description','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--to\x20<timestamp>','Make\x20segment\x20invisible\x20(default:\x20visible)','-u,\x20--use','Email\x20sender\x20ID\x20for\x20delivery','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--port\x20<number>','--segment\x20<path>','--attributes\x20<json>','Manage\x20workflow\x20project\x20secrets','New\x20segment\x20name','then','exit','Updated\x20timezone','--force','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','show\x20<name-or-id>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Create\x20a\x20workspace','LLM\x20project\x20management','Data\x20connection\x20management\x20(for\x20activations/exports)','settings\x20<type>','Add\x20behaviors\x20as\x20JSON\x20string','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','show\x20<job-id>','Continue\x20most\x20recent\x20conversation','Maximum\x20recursion\x20depth\x20(default:\x2010)','--enriched','push\x20[name]','Skip\x20confirmation\x20prompt','command','argumentTerm','New\x20template\x20name','optionDescription','LLM\x20project\x20to\x20use\x20(overrides\x20context)','409844FmElFC','--plaintext\x20<text>','list','Add\x20behaviors\x20from\x20JSON\x20file','-f,\x20--file\x20<path>','isTTY','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20stats\x20for\x20specific\x20stage','Customer\x20group\x20as\x20JSON\x20string','Update\x20an\x20email\x20template','Table\x20management\x20commands','Clear\x20session\x20context','Pull\x20specific\x20revision\x20(default:\x20latest)','delete\x20<agent-name>','--data\x20<data>','Show\x20the\x20most\x20recent\x20chat','show\x20[segment_name]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','info\x20[segment_name]','Pause\x20a\x20running\x20journey','Folder\x20name\x20for\x20organization','Interactive\x20chat\x20selector','--json-columns\x20<cols>','-y,\x20--yes','--interval\x20<range>','Database\x20to\x20use\x20(overrides\x20context)','--limit\x20<number>','--resume-from\x20<task>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','users','validate\x20[file]','Workspace\x20management','log','stdout','--email-sender-id\x20<id>','name','user','profiles','-r,\x20--recursive','Get\x20job\x20results','--site\x20<site>','show\x20<name>','download\x20<project-name>\x20[output-dir]','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Show\x20journey\x20statistics','jsonl','logs','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--output\x20<file>','segments\x20[path]','List\x20all\x20available\x20profiles','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','use\x20<path>','Output\x20as\x20JSON\x20Lines','--stage\x20<name>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Workflow\x20parameter\x20(repeatable)','Include\x20subtasks\x20in\x20tasks\x20output','--in\x20<database>','databases\x20[pattern]','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--description\x20<desc>','GET','retry','INFO','Open\x20segment\x20in\x20web\x20browser','llm','--last','folder','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','set\x20<key=value>','Show\x20agent\x20chat\x20URLs','Output\x20as\x20JSON','projects\x20[pattern]','Show\x20agent\x20details','Open\x20journey\x20in\x20web\x20browser','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Resume\x20a\x20conversation\x20(shows\x20selector)','catch','activations\x20<segment_name>','template','List\x20jobs','jobs','--invisible','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Delete\x20an\x20email\x20template','\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','-r,\x20--resume','remove\x20<name>','\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','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','tdx\x20','includes','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Revision\x20name\x20(default:\x20timestamp)','Preview\x20changes\x20without\x20writing\x20files','apiKey','-H,\x20--header\x20<header>','Force\x20retry\x20even\x20if\x20not\x20failed','parent-segment','required','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Update\x20a\x20campaign','Skip\x20validation\x20of\x20.dig\x20files','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Request\x20body\x20as\x20JSON\x20string','--skip-validation','Campaign\x20name','campaign','Customer\x20group\x20from\x20JSON\x20file','Workflow\x20(Digdag)\x20management\x20commands','Create\x20a\x20new\x20agent\x20in\x20current\x20project','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--params\x20<json>','Workflow\x20session\x20management','--status\x20<status>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','submit\x20[query]','duplicate\x20<name-or-id>','delete\x20<name>','--dry-run','show\x20<folder_ref>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','opts','--system-prompt\x20<text>','--clear','trace','--folder\x20<name>','set\x20<args...>','--kind\x20<type>','Folder\x20description','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','setup','use\x20<name>','--name\x20<new-name>','create','run','sql\x20[name]','project','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Create\x20a\x20new\x20profile\x20interactively','view\x20<name-or-path>','commandUsage','Include\x20retried\x20attempts\x20(for\x20list)','--type\x20<type>','Parent\x20segment\x20description','agents\x20[pattern]','Email\x20subject\x20template','Name\x20for\x20the\x20new\x20project\x20(required)','Set\x20a\x20profile\x20configuration\x20value','Kill\x20a\x20job','Show\x20segment\x20schema\x20(column\x20types)','Arguments:','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','--model\x20<name>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','restore\x20<folder>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','show\x20<agent-name>','Show\x20segment\x20details\x20(alias\x20for\x20view)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--attributes-file\x20<file>','outputHelp','556442IOmTtX','--name\x20<text>','Include\x20execution\x20statistics','[action]','Trino\x20catalog\x20(default:\x20td)','-d,\x20--database\x20<database>','--debug','json','--json','Agent\x20name','pull\x20[parent_or_file]','Show\x20campaign\x20details','isDirectory','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','push\x20[parent_or_file]','directory','us01','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Show\x20web\x20console\x20URLs\x20for\x20segments','Preview\x20operation\x20without\x20executing','alias','--project\x20<name>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Behaviors\x20as\x20JSON\x20string','-d,\x20--database\x20<name>','Preview\x20without\x20creating\x20the\x20project','40Hqbahg','--attribute\x20[name]','session','--jsonl','JSON\x20columns\x20for\x20connector\x20(comma-separated)','fields\x20[name]','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--rule\x20<json>','--limit\x20<n>','168VpUXqB','debug','gitRevision','parents\x20[pattern]','Delete\x20a\x20campaign','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','show\x20[table]','database','Clear\x20workflow\x20project\x20context','stderr','Export\x20journey(s)\x20as\x20YAML\x20files','Workspace\x20name','--tsv','--from\x20<timestamp>','chdir','Output\x20file\x20path','--yes','--table\x20<table>','Workflow\x20project\x20management','--job-type\x20<type>','[options]\x20--\x20[claude-code-args...]','--workspace\x20<name>','attempts\x20[project]','CDP\x20segment\x20management\x20commands','subcommandDescription','Segment\x20description','\x20-\x20built\x20','argument','Delete\x20an\x20agent','kill','Remove\x20a\x20profile','Updated\x20schedule\x20option','--include-retried','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','slice','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','24JwaXNN','--html\x20<html>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior'];a2_0x4efe=function(){return _0x30306a;};return a2_0x4efe();}const profileListAction=async _0x1da5b4=>{const _0x1cd3bc=a2_0x4ce3a1,_0x128497=new ProfilesCommand(),_0x5aeb84=program[_0x1cd3bc(0x264)](),_0x32e4d0=await _0x128497['run']({'options':{..._0x5aeb84,..._0x1da5b4},'args':[],'tdx':null});process['exit'](_0x32e4d0);};profileCmd['command']('list')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x218))[a2_0x4ce3a1(0x390)](profileListAction),profileCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x270))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x275))[a2_0x4ce3a1(0x350)](a2_0x4ce3a1(0x32f),a2_0x4ce3a1(0x23d))[a2_0x4ce3a1(0x390)](async _0x2eed78=>{const _0x39d136=new ProfileCreateCommand(),_0xdecdb6=program['opts'](),_0xe43f08=await _0x39d136['run']({'options':{..._0xdecdb6,..._0x2eed78},'args':[],'tdx':null});process['exit'](_0xe43f08);}),profileCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x23f))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2cd))['addHelpText'](a2_0x4ce3a1(0x32f),a2_0x4ce3a1(0x300))[a2_0x4ce3a1(0x390)](async(_0x3b1ccd,_0x26f7ba)=>{const _0xc6d3d3=a2_0x4ce3a1,_0x48f41c=new ProfileRemoveCommand(),_0x357ece=program[_0xc6d3d3(0x264)](),_0x2d9247=await _0x48f41c['run']({'options':{..._0x357ece,..._0x26f7ba},'args':[_0x3b1ccd],'tdx':null});process[_0xc6d3d3(0x430)](_0x2d9247);}),profileCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x22d))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x27e))[a2_0x4ce3a1(0x350)](a2_0x4ce3a1(0x32f),'\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(_0x8214de,_0x1f9c10)=>{const _0xcc11fb=a2_0x4ce3a1,_0x38df7a=new ProfileSetCommand(),_0x4d5189=program[_0xcc11fb(0x264)](),_0x1c728e=await _0x38df7a[_0xcc11fb(0x271)]({'options':{..._0x4d5189,..._0x1f9c10},'args':[_0x8214de],'tdx':null});process[_0xcc11fb(0x430)](_0x1c728e);}),profileCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x26e))[a2_0x4ce3a1(0x423)]('Set\x20session\x20profile')['addHelpText']('after',a2_0x4ce3a1(0x240))['action'](async(_0x591d27,_0xc33059)=>{const _0x2fc68f=a2_0x4ce3a1,_0x3126e4=new ProfileUseCommand(),_0x13b857=program['opts'](),_0x10f493=await _0x3126e4[_0x2fc68f(0x271)]({'options':{..._0x13b857,..._0xc33059},'args':[_0x591d27],'tdx':null});process[_0x2fc68f(0x430)](_0x10f493);});const engageCmd=program[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3f8))['description'](a2_0x4ce3a1(0x39c)),createEngageAction=_0x25b519=>{return async(_0x102f91,_0x4bc5e4)=>{const _0x3dc9ab=a2_0x73b8,_0x56efec=new _0x25b519(),_0x19dff0=program[_0x3dc9ab(0x264)](),_0x2fd64c=await createTDXInstance(_0x19dff0),_0x40e11a=await _0x56efec['run']({'options':{..._0x19dff0,..._0x4bc5e4},'args':[_0x102f91],'tdx':_0x2fd64c});process[_0x3dc9ab(0x430)](_0x40e11a);};},createEngageNoArgAction=_0x486b34=>{return async _0x855d97=>{const _0x3ca3d0=a2_0x73b8,_0x69eeb=new _0x486b34(),_0xebcb8=program['opts'](),_0x502a4e=await createTDXInstance(_0xebcb8),_0x5a8895=await _0x69eeb['run']({'options':{..._0xebcb8,..._0x855d97},'args':[],'tdx':_0x502a4e});process[_0x3ca3d0(0x430)](_0x5a8895);};},campaignCmd=engageCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x254))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x30a)),campaignListAction=async(_0x5fbc23,_0x52f44c)=>{const _0x58274c=a2_0x4ce3a1,_0x4da13e=new EngageCampaignsCommand(),_0x15154d=program['opts'](),_0x4a2347=await createTDXInstance(_0x15154d),_0x1a169b=await _0x4da13e[_0x58274c(0x271)]({'options':{..._0x15154d,..._0x52f44c},'args':_0x5fbc23?[_0x5fbc23]:[],'tdx':_0x4a2347});process['exit'](_0x1a169b);};campaignCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x420))[a2_0x4ce3a1(0x423)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x279),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x4ce3a1(0x25b),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2c4),a2_0x4ce3a1(0x2ba))[a2_0x4ce3a1(0x390)](campaignListAction),engageCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3fe))['description'](a2_0x4ce3a1(0x429))[a2_0x4ce3a1(0x3cc)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x4ce3a1(0x25b),a2_0x4ce3a1(0x3cf))[a2_0x4ce3a1(0x3cc)]('--workspace\x20<name>',a2_0x4ce3a1(0x2ba))[a2_0x4ce3a1(0x390)](campaignListAction),campaignCmd[a2_0x4ce3a1(0x442)]('show\x20<name-or-id>')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x297))['option'](a2_0x4ce3a1(0x2c4),a2_0x4ce3a1(0x2ba))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x33e),a2_0x4ce3a1(0x2e6))[a2_0x4ce3a1(0x390)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x356))[a2_0x4ce3a1(0x3f9)](a2_0x4ce3a1(0x36e),a2_0x4ce3a1(0x253))[a2_0x4ce3a1(0x3f9)](a2_0x4ce3a1(0x279),'Campaign\x20type\x20(email\x20or\x20push)')['option'](a2_0x4ce3a1(0x2c4),'Workspace\x20name\x20(required)')[a2_0x4ce3a1(0x3cc)]('--description\x20<desc>',a2_0x4ce3a1(0x411))[a2_0x4ce3a1(0x3cc)]('--segment\x20<path>',a2_0x4ce3a1(0x349))['option'](a2_0x4ce3a1(0x207),a2_0x4ce3a1(0x428))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fb),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option']('--start-at\x20<datetime>',a2_0x4ce3a1(0x3b8))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x35f),a2_0x4ce3a1(0x414))[a2_0x4ce3a1(0x390)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x4ce3a1(0x338))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x24e))[a2_0x4ce3a1(0x3cc)]('--workspace\x20<name>',a2_0x4ce3a1(0x2ba))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x36e),a2_0x4ce3a1(0x30f))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x224),a2_0x4ce3a1(0x411))['option'](a2_0x4ce3a1(0x42b),a2_0x4ce3a1(0x349))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x207),a2_0x4ce3a1(0x428))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fb),a2_0x4ce3a1(0x2aa))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2e7),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x4ce3a1(0x3cc)]('--timezone\x20<tz>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x4ce3a1(0x390)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3d3))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2b3))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2c4),'Workspace\x20name')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2bf),a2_0x4ce3a1(0x441))[a2_0x4ce3a1(0x390)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x4ce3a1(0x3a7))['description']('Launch\x20a\x20campaign')[a2_0x4ce3a1(0x3cc)]('--workspace\x20<name>',a2_0x4ce3a1(0x2ba))[a2_0x4ce3a1(0x390)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3ff))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3bf))['option'](a2_0x4ce3a1(0x2c4),a2_0x4ce3a1(0x2ba))[a2_0x4ce3a1(0x390)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x4ce3a1(0x334))['description'](a2_0x4ce3a1(0x32a))['option'](a2_0x4ce3a1(0x2c4),a2_0x4ce3a1(0x2ba))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x25f))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x35a))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2c4),'Workspace\x20name')['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x237))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3bc)),templateListAction=async(_0x416726,_0x57cc0f)=>{const _0x2cb316=a2_0x4ce3a1,_0x19ee79=new EngageTemplatesCommand(),_0x4b51a3=program['opts'](),_0x216774=await createTDXInstance(_0x4b51a3),_0x4bcd5b=await _0x19ee79['run']({'options':{..._0x4b51a3,..._0x57cc0f},'args':_0x416726?[_0x416726]:[],'tdx':_0x216774});process[_0x2cb316(0x430)](_0x4bcd5b);};templateCmd['command'](a2_0x4ce3a1(0x420))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x1f6))['option'](a2_0x4ce3a1(0x2c4),'Workspace\x20name')['action'](templateListAction),engageCmd[a2_0x4ce3a1(0x442)]('templates\x20[pattern]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x308))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2c4),a2_0x4ce3a1(0x2ba))['action'](templateListAction),templateCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x434))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x33b))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2c4),a2_0x4ce3a1(0x2ba))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x33e),a2_0x4ce3a1(0x2e6))[a2_0x4ce3a1(0x390)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x270))[a2_0x4ce3a1(0x423)]('Create\x20an\x20email\x20template')[a2_0x4ce3a1(0x3f9)](a2_0x4ce3a1(0x36e),a2_0x4ce3a1(0x41a))[a2_0x4ce3a1(0x3f9)](a2_0x4ce3a1(0x38f),a2_0x4ce3a1(0x27c))[a2_0x4ce3a1(0x3f9)](a2_0x4ce3a1(0x2d4),a2_0x4ce3a1(0x3c4))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2c4),a2_0x4ce3a1(0x402))[a2_0x4ce3a1(0x3cc)]('--plaintext\x20<text>',a2_0x4ce3a1(0x344))['option'](a2_0x4ce3a1(0x36d),a2_0x4ce3a1(0x38d))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x338))['description'](a2_0x4ce3a1(0x1ee))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2c4),a2_0x4ce3a1(0x2ba))['option'](a2_0x4ce3a1(0x36e),a2_0x4ce3a1(0x444))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x38f),'Email\x20subject\x20template')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2d4),a2_0x4ce3a1(0x3c4))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x448),a2_0x4ce3a1(0x344))[a2_0x4ce3a1(0x390)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('delete\x20<name-or-id>')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x23c))['option'](a2_0x4ce3a1(0x2c4),'Workspace\x20name')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x2bf),a2_0x4ce3a1(0x441))[a2_0x4ce3a1(0x390)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x389))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x204)),workspaceListAction=async(_0xc464f1,_0x45753a)=>{const _0x322375=a2_0x4ce3a1,_0x53fe3d=new EngageWorkspacesCommand(),_0x29e27b=program[_0x322375(0x264)](),_0x64c61d=await createTDXInstance(_0x29e27b),_0x43281d=await _0x53fe3d[_0x322375(0x271)]({'options':{..._0x29e27b,..._0x45753a},'args':_0xc464f1?[_0xc464f1]:[],'tdx':_0x64c61d});process['exit'](_0x43281d);};workspaceCmd[a2_0x4ce3a1(0x442)]('list\x20[pattern]')['description']('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4ce3a1(0x390)](workspaceListAction),engageCmd[a2_0x4ce3a1(0x442)]('workspaces\x20[pattern]')['description']('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')['action'](workspaceListAction),workspaceCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x434))[a2_0x4ce3a1(0x423)]('Show\x20workspace\x20details')[a2_0x4ce3a1(0x3cc)]('--full',a2_0x4ce3a1(0x2e6))[a2_0x4ce3a1(0x390)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command']('create')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x436))[a2_0x4ce3a1(0x3f9)]('--name\x20<name>','Workspace\x20name')['option'](a2_0x4ce3a1(0x224),a2_0x4ce3a1(0x341))[a2_0x4ce3a1(0x390)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x4ce3a1(0x338))[a2_0x4ce3a1(0x423)]('Update\x20a\x20workspace')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x36e),a2_0x4ce3a1(0x37c))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x224),a2_0x4ce3a1(0x341))[a2_0x4ce3a1(0x390)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3d3))['description']('Delete\x20a\x20workspace')['option'](a2_0x4ce3a1(0x2bf),'Skip\x20confirmation\x20prompt')[a2_0x4ce3a1(0x390)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x4ce3a1(0x26e))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x34a))[a2_0x4ce3a1(0x390)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x4ce3a1(0x312))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x438)),connectionListAction=async _0x43f886=>{const _0x272a22=a2_0x4ce3a1,_0x4725a1=new ConnectionListCommand(),_0x573e92=program['opts'](),_0x17fddd=await createTDXInstance(_0x573e92),_0x46c6b2=await _0x4725a1[_0x272a22(0x271)]({'options':{..._0x573e92,..._0x43f886},'args':[],'tdx':_0x17fddd});process['exit'](_0x46c6b2);};connectionCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x449))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3fc))[a2_0x4ce3a1(0x390)](connectionListAction),program['command'](a2_0x4ce3a1(0x31e),{'hidden':!![]})['description']('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x4ce3a1(0x390)](connectionListAction),connectionCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x20e))['description'](a2_0x4ce3a1(0x3f3))['action'](async(_0x53ec06,_0x3f75f1)=>{const _0x2df657=a2_0x4ce3a1,_0x5311e0=new ConnectionShowCommand(),_0x728550=program[_0x2df657(0x264)](),_0x4ad821=await createTDXInstance(_0x728550),_0x326154=await _0x5311e0[_0x2df657(0x271)]({'options':{..._0x728550,..._0x3f75f1},'args':[_0x53ec06],'tdx':_0x4ad821});process[_0x2df657(0x430)](_0x326154);}),connectionCmd[a2_0x4ce3a1(0x442)]('schema\x20<type>')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3dc))[a2_0x4ce3a1(0x390)](async(_0x24a316,_0x9390e1)=>{const _0x3b4dd7=a2_0x4ce3a1,_0x5e4f2b=new ConnectionSchemaCommand(),_0x1f514f=program[_0x3b4dd7(0x264)](),_0x31b2aa=await createTDXInstance(_0x1f514f),_0x51dc15=await _0x5e4f2b[_0x3b4dd7(0x271)]({'options':{..._0x1f514f,..._0x9390e1},'args':[_0x24a316],'tdx':_0x31b2aa});process[_0x3b4dd7(0x430)](_0x51dc15);}),connectionCmd['command']('types')[a2_0x4ce3a1(0x423)]('List\x20available\x20connector\x20types')[a2_0x4ce3a1(0x390)](async _0x3987a7=>{const _0x45e40a=a2_0x4ce3a1,_0x1659da=new ConnectionTypesCommand(),_0x4d4e66=program[_0x45e40a(0x264)](),_0x527041=await createTDXInstance(_0x4d4e66),_0x35562c=await _0x1659da[_0x45e40a(0x271)]({'options':{..._0x4d4e66,..._0x3987a7},'args':[],'tdx':_0x527041});process['exit'](_0x35562c);}),connectionCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x439))[a2_0x4ce3a1(0x423)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x4ce3a1(0x390)](async(_0x2d4625,_0x2a3f07)=>{const _0x124540=a2_0x4ce3a1,_0x29741d=new ConnectionSettingsCommand(),_0x426df5=program['opts'](),_0x51f9ad=await createTDXInstance(_0x426df5),_0x1c8ce6=await _0x29741d[_0x124540(0x271)]({'options':{..._0x426df5,..._0x2a3f07},'args':[_0x2d4625],'tdx':_0x51f9ad});process['exit'](_0x1c8ce6);});const journeyCmd=program['command'](a2_0x4ce3a1(0x3da))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x302));journeyCmd[a2_0x4ce3a1(0x442)]('list\x20[pattern]')[a2_0x4ce3a1(0x423)]('List\x20journeys\x20in\x20current\x20context')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x366),'Show\x20web\x20console\x20URLs\x20for\x20journeys')['action'](async(_0x1575ce,_0x589e26)=>{const _0x1c88e6=a2_0x4ce3a1,_0x32120e=new JourneyListCommand(),_0x2954fb=program[_0x1c88e6(0x264)](),_0x1f3eee=await createTDXInstance(_0x2954fb),_0x5943e9=await _0x32120e[_0x1c88e6(0x271)]({'options':{..._0x2954fb,..._0x589e26},'args':_0x1575ce?[_0x1575ce]:[],'tdx':_0x1f3eee});process[_0x1c88e6(0x430)](_0x5943e9);}),journeyCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x276))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3d7))['option'](a2_0x4ce3a1(0x366),a2_0x4ce3a1(0x232))['option'](a2_0x4ce3a1(0x3bd),a2_0x4ce3a1(0x28e))[a2_0x4ce3a1(0x390)](async(_0x28fd93,_0x44da05)=>{const _0x4b9dd9=a2_0x4ce3a1,_0x43dd18=new JourneyViewCommand(),_0xe98bf6=program['opts'](),_0x2f7721=await createTDXInstance(_0xe98bf6),_0x502651=await _0x43dd18['run']({'options':{..._0xe98bf6,..._0x44da05},'args':[_0x28fd93],'tdx':_0x2f7721});process[_0x4b9dd9(0x430)](_0x502651);}),journeyCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x309))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x212))['option'](a2_0x4ce3a1(0x21c),a2_0x4ce3a1(0x1ec))[a2_0x4ce3a1(0x390)](async(_0x4b7fa8,_0x4899d7)=>{const _0x359f8c=a2_0x4ce3a1,_0x3a2ab7=new JourneyStatsCommand(),_0xee8c7d=program['opts'](),_0x1ac2e8=await createTDXInstance(_0xee8c7d),_0x2b55b5=await _0x3a2ab7[_0x359f8c(0x271)]({'options':{..._0xee8c7d,..._0x4899d7},'args':[_0x4b7fa8],'tdx':_0x1ac2e8});process[_0x359f8c(0x430)](_0x2b55b5);}),journeyCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2e2))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x1f8))[a2_0x4ce3a1(0x390)](async(_0x26750b,_0x3fd854)=>{const _0x47a1e8=a2_0x4ce3a1,_0x2f750d=new JourneyPauseCommand(),_0x5d17ca=program[_0x47a1e8(0x264)](),_0x23783f=await createTDXInstance(_0x5d17ca),_0x15e097=await _0x2f750d[_0x47a1e8(0x271)]({'options':{..._0x5d17ca,..._0x3fd854},'args':[_0x26750b],'tdx':_0x23783f});process[_0x47a1e8(0x430)](_0x15e097);}),journeyCmd[a2_0x4ce3a1(0x442)]('resume\x20<name-or-path>')['description']('Resume\x20a\x20paused\x20journey')['action'](async(_0x35f7c8,_0x5daddc)=>{const _0x441094=a2_0x4ce3a1,_0x3a3dce=new JourneyResumeCommand(),_0x4f6d9b=program[_0x441094(0x264)](),_0x10e5a6=await createTDXInstance(_0x4f6d9b),_0x358039=await _0x3a3dce[_0x441094(0x271)]({'options':{..._0x4f6d9b,..._0x5daddc},'args':[_0x35f7c8],'tdx':_0x10e5a6});process[_0x441094(0x430)](_0x358039);}),journeyCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x33d))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2b9))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x1fc),a2_0x4ce3a1(0x441))['option'](a2_0x4ce3a1(0x261),a2_0x4ce3a1(0x3e3))[a2_0x4ce3a1(0x390)](async(_0x1f4b5a,_0x288569)=>{const _0x591baa=new JourneyPullCommand(),_0x54fcd6=program['opts'](),_0x5b0722=await createTDXInstance(_0x54fcd6),_0x8c2d00=await _0x591baa['run']({'options':{..._0x54fcd6,..._0x288569},'args':_0x1f4b5a?[_0x1f4b5a]:[],'tdx':_0x5b0722});process['exit'](_0x8c2d00);}),journeyCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x401))[a2_0x4ce3a1(0x423)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x4ce3a1(0x390)](async(_0x115461,_0x3b11c6)=>{const _0x281fb8=a2_0x4ce3a1,_0x5b7426=new JourneyPushCommand(),_0x383c7c=program['opts'](),_0x54db47=await createTDXInstance(_0x383c7c),_0x32a89e=await _0x5b7426[_0x281fb8(0x271)]({'options':{..._0x383c7c,..._0x3b11c6},'args':_0x115461?[_0x115461]:[],'tdx':_0x54db47});process[_0x281fb8(0x430)](_0x32a89e);}),journeyCmd['command'](a2_0x4ce3a1(0x365))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x352))[a2_0x4ce3a1(0x390)](async(_0x5c984f,_0xffa3fe)=>{const _0x3615cc=a2_0x4ce3a1,_0x4f50ed=new JourneyValidateCommand(),_0x1b4290=program[_0x3615cc(0x264)](),_0x525fa1=await createTDXInstance(_0x1b4290),_0x327afc=await _0x4f50ed[_0x3615cc(0x271)]({'options':{..._0x1b4290,..._0xffa3fe},'args':_0x5c984f?[_0x5c984f]:[],'tdx':_0x525fa1});process[_0x3615cc(0x430)](_0x327afc);});const agentSyncCmd=program[a2_0x4ce3a1(0x442)]('agent')[a2_0x4ce3a1(0x423)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3f2))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x210))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3eb),a2_0x4ce3a1(0x2f1))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x384),'Overwrite\x20local\x20changes\x20without\x20confirmation')['action'](async(_0x41deeb,_0x167ce1,_0x2e2ca8)=>{const _0x4562da=a2_0x4ce3a1,_0xf48f92=new AgentPullCommand(),_0x4003d9=program['opts'](),_0x59d5b4=await createTDXInstance(_0x4003d9),_0x66cc39=[];if(_0x41deeb)_0x66cc39[_0x4562da(0x34c)](_0x41deeb);if(_0x167ce1)_0x66cc39[_0x4562da(0x34c)](_0x167ce1);const _0x1e7c95=await _0xf48f92[_0x4562da(0x271)]({'options':{..._0x4003d9,..._0x2e2ca8},'args':_0x66cc39,'tdx':_0x59d5b4});process['exit'](_0x1e7c95);}),agentSyncCmd[a2_0x4ce3a1(0x442)]('push\x20[path]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x345))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x384),'Push\x20without\x20confirmation')[a2_0x4ce3a1(0x390)](async(_0x3630eb,_0x3772e9)=>{const _0x24d058=a2_0x4ce3a1,_0x3ef404=new AgentPushCommand(),_0x471455=program[_0x24d058(0x264)](),_0x555d69=await createTDXInstance(_0x471455),_0x12614b=await _0x3ef404[_0x24d058(0x271)]({'options':{..._0x471455,..._0x3772e9},'args':_0x3630eb?[_0x3630eb]:[],'tdx':_0x555d69});process[_0x24d058(0x430)](_0x12614b);}),agentSyncCmd[a2_0x4ce3a1(0x442)]('clone\x20[source]')['description'](a2_0x4ce3a1(0x3fb))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3c3),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x4ce3a1(0x390)](async(_0x48cbdf,_0x529097)=>{const _0x1a54fb=a2_0x4ce3a1,_0x213c2f=new AgentCloneCommand(),_0x53f6f1=program[_0x1a54fb(0x264)](),_0x5e22a7=await createTDXInstance(_0x53f6f1),_0x221d62=await _0x213c2f[_0x1a54fb(0x271)]({'options':{..._0x53f6f1,..._0x529097},'args':_0x48cbdf?[_0x48cbdf]:[],'tdx':_0x5e22a7});process['exit'](_0x221d62);}),agentSyncCmd[a2_0x4ce3a1(0x442)]('list\x20[pattern]')[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3d8))['option']('-w,\x20--web',a2_0x4ce3a1(0x22e))['action'](llmAgentListAction),agentSyncCmd['command'](a2_0x4ce3a1(0x287))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x231))[a2_0x4ce3a1(0x390)](async(_0x42bd7d,_0x3db307)=>{const _0x30caf9=a2_0x4ce3a1,_0x10fc77=new LLMAgentShowCommand(),_0x551273=program[_0x30caf9(0x264)](),_0x3e15af=await createTDXInstance(_0x551273),_0x4f3051=await _0x10fc77[_0x30caf9(0x271)]({'options':{..._0x551273,..._0x3db307},'args':[_0x42bd7d],'tdx':_0x3e15af});process['exit'](_0x4f3051);}),agentSyncCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x2fa))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x257))['option'](a2_0x4ce3a1(0x265),a2_0x4ce3a1(0x2f7))['option'](a2_0x4ce3a1(0x283),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x4ce3a1(0x3c7))[a2_0x4ce3a1(0x3cc)]('--starter-message\x20<text>',a2_0x4ce3a1(0x3f1))[a2_0x4ce3a1(0x3cc)]('--max-tool-iterations\x20<n>',a2_0x4ce3a1(0x2fb),'4')[a2_0x4ce3a1(0x3cc)]('--temperature\x20<n>',a2_0x4ce3a1(0x30c),'0.7')[a2_0x4ce3a1(0x390)](async(_0x4a9340,_0x1bc18f)=>{const _0x3caa53=a2_0x4ce3a1,_0x1f4463=new LLMAgentCreateCommand(),_0x1a44ca=program[_0x3caa53(0x264)](),_0x4fa39e=await createTDXInstance(_0x1a44ca),_0xe56970=await _0x1f4463['run']({'options':{..._0x1a44ca,..._0x1bc18f},'args':[_0x4a9340],'tdx':_0x4fa39e});process['exit'](_0xe56970);}),agentSyncCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x3aa))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x3ec))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x28d),a2_0x4ce3a1(0x295))[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x3cd),'Agent\x20prompt/instructions')[a2_0x4ce3a1(0x3cc)](a2_0x4ce3a1(0x34f),a2_0x4ce3a1(0x396))['option'](a2_0x4ce3a1(0x3a3),'Starter\x20message')[a2_0x4ce3a1(0x390)](async(_0x4a8755,_0x3dba1e)=>{const _0x56af1c=a2_0x4ce3a1,_0x9395ed=new LLMAgentUpdateCommand(),_0x2e8e34=program['opts'](),_0x4061bf=await createTDXInstance(_0x2e8e34),_0x5e6867=await _0x9395ed[_0x56af1c(0x271)]({'options':{..._0x2e8e34,..._0x3dba1e},'args':[_0x4a8755],'tdx':_0x4061bf});process['exit'](_0x5e6867);}),agentSyncCmd[a2_0x4ce3a1(0x442)](a2_0x4ce3a1(0x1f2))[a2_0x4ce3a1(0x423)](a2_0x4ce3a1(0x2cb))[a2_0x4ce3a1(0x390)](async(_0xcb4c6e,_0x52a6d6)=>{const _0x25f988=a2_0x4ce3a1,_0x2e159c=new LLMAgentDeleteCommand(),_0x47865d=program[_0x25f988(0x264)](),_0x368350=await createTDXInstance(_0x47865d),_0x1e97ac=await _0x2e159c[_0x25f988(0x271)]({'options':{..._0x47865d,..._0x52a6d6},'args':[_0xcb4c6e],'tdx':_0x368350});process[_0x25f988(0x430)](_0x1e97ac);});export{program};export function runCLI(){const _0x4cd60e=a2_0x4ce3a1,_0x43b7e0=!process['argv']['slice'](0x2)[_0x4cd60e(0x307)];showBriefHelp=_0x43b7e0,program[_0x4cd60e(0x2e3)](process[_0x4cd60e(0x388)]),_0x43b7e0&&program[_0x4cd60e(0x28b)](),process[_0x4cd60e(0x2b8)][_0x4cd60e(0x44c)]&&process[_0x4cd60e(0x388)][_0x4cd60e(0x307)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x4cd60e(0x42f)](_0x4b722c=>{_0x4b722c&&displayUpdateNotification(_0x4b722c);})[_0x4cd60e(0x235)](()=>{});}
|