@treasuredata/tdx 0.9.2 → 0.9.3
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 +2 -2
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/client/cdp-api-client.js +1 -1
- package/dist/client/engage-api-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-api-client.d.ts +35 -1
- package/dist/client/llm-api-client.d.ts.map +1 -1
- package/dist/client/llm-api-client.js +1 -1
- package/dist/client/llm-api-client.js.map +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-api-client.js +1 -1
- package/dist/client/trino-api-client.js +1 -1
- package/dist/client/workflow-client.js +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/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/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/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/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/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-yaml.d.ts +45 -1
- package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/agent-yaml.js.map +1 -1
- package/dist/sdk/api.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/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm.d.ts.map +1 -1
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/llm.js.map +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.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.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/llm.d.ts +80 -4
- package/dist/types/llm.d.ts.map +1 -1
- package/dist/utils/agent-config.js +1 -1
- package/dist/utils/agent-ref-parser.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/chat-cache.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/fields-display.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/journey-utils.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/llm-backup-utils.js +1 -1
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/model-factors.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/segment-path-parser.js +1 -1
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sql-parser.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-config.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/tree-formatter.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x5aac0e=a2_0x5c65;(function(_0x2e58b3,_0x913ce2){const _0x2ae9fa=a2_0x5c65,_0x439af8=_0x2e58b3();while(!![]){try{const _0x13ea5d=-parseInt(_0x2ae9fa(0x2ae))/0x1+-parseInt(_0x2ae9fa(0x28a))/0x2*(-parseInt(_0x2ae9fa(0x224))/0x3)+parseInt(_0x2ae9fa(0x2b9))/0x4+-parseInt(_0x2ae9fa(0x294))/0x5+-parseInt(_0x2ae9fa(0x26d))/0x6*(-parseInt(_0x2ae9fa(0x299))/0x7)+parseInt(_0x2ae9fa(0x295))/0x8+parseInt(_0x2ae9fa(0x3a3))/0x9;if(_0x13ea5d===_0x913ce2)break;else _0x439af8['push'](_0x439af8['shift']());}catch(_0x141ba6){_0x439af8['push'](_0x439af8['shift']());}}}(a2_0x1cdf,0xf29e2));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.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';function a2_0x5c65(_0xd1c86f,_0x37e74c){_0xd1c86f=_0xd1c86f-0x19d;const _0x1cdf50=a2_0x1cdf();let _0x5c6536=_0x1cdf50[_0xd1c86f];return _0x5c6536;}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{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-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';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}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';function a2_0x1cdf(){const _0x4181e0=['--version','Show\x20connection\x20details\x20by\x20name','--html\x20<html>','tsv','projects\x20[pattern]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Submit\x20a\x20job','List\x20available\x20LLM\x20models','jsonl','query\x20[sql]','[task-name]','show\x20<folder_ref>','-o,\x20--output\x20<dir>','Email\x20subject\x20template','models','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','delete\x20<name>','--from\x20<timestamp>','attempt','--name\x20<name>','New\x20segment\x20name','command','validate\x20[file]','Create\x20a\x20workspace','profile','kill','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Model\x20type\x20(default:\x20claude-4.5-sonnet)','noColor','--behaviors-file\x20<file>','job','Workflow\x20project\x20management','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--folder\x20<name>','use\x20[name]','sql\x20[name]','tdx','Agent\x20description','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Update\x20an\x20existing\x20agent','Show\x20agent\x20chat\x20URLs','push\x20[project-name-or-dir]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','submit\x20[query]','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--include-retried','--session\x20<id>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','create\x20<name>','Timezone\x20(e.g.,\x20America/Los_Angeles)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','port','download\x20<project-name>\x20[output-dir]','Skip\x20confirmation\x20prompts','Move\x20to\x20folder','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','update\x20<name-or-id>','delete\x20<project-name-or-id>','Enable\x20verbose\x20logging','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','opts','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','LLM\x20project\x20management','use\x20[resource]\x20[value]','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--subject\x20<subject>','--force','--param\x20<key=value>','Limit\x20number\x20of\x20rows','argumentDescription','isTTY','--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--include-subtasks','trace','--session-time\x20<time>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Set\x20or\x20show\x20parent\x20segment\x20context','Delete\x20an\x20agent','describe\x20[table]','Attempt\x20ID','--segment\x20<path>','--agent\x20<ref>',',\x20version\x20','List\x20all\x20data\x20connections','Read\x20request\x20body\x20from\x20file','pull\x20[name]','fields\x20[parent_name]','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--parent-segment\x20<name>','join','--add-behaviors-file\x20<file>','desc\x20[name]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','connection','optionDescription','Setup\x20API\x20key\x20authentication\x20interactively','--include-stats','view\x20[name]','retry','Export\x20journey(s)\x20as\x20YAML\x20files','sonnet','view\x20[segment_name]','summary','Make\x20segment\x20invisible\x20(default:\x20visible)','Interactive\x20chat\x20selector','-r,\x20--resume','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','16668189fSsxzQ','--limit\x20<number>','Filtering\x20rule\x20from\x20JSON\x20file','LLM\x20agent\x20management','Show\x20master\x20table\x20sample\x20data','Include\x20subtasks\x20in\x20tasks\x20output','push\x20[path]','kill\x20<job-id>','hidden','New\x20campaign\x20name','then','Show\x20the\x20most\x20recent\x20chat','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','-f,\x20--file\x20<path>','--llm-project\x20<name>','auth','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','desc','--full','Read\x20SQL\x20query\x20from\x20file','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','-w,\x20--web','Start\x20a\x20new\x20chat\x20session','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','injectIntoOptions','--starter-message\x20<text>','run\x20[name]','show\x20<agent-name>','--site\x20<site>','fields\x20[name]','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Resume\x20from\x20specific\x20task','create','Table\x20management\x20commands','backup\x20<name>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','create\x20<segment_name>','0.7','Skip\x20validation\x20of\x20.dig\x20files','configureHelp','Database\x20to\x20use\x20(overrides\x20context)','--attributes-file\x20<file>','Arguments:','error','--editor-type\x20<type>','4000','Open\x20parent\x20segment\x20in\x20web\x20browser','--status\x20<status>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','--attributes\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string','Workspace\x20name\x20(required)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','statusline','Update\x20an\x20email\x20template','Name\x20for\x20the\x20new\x20project\x20(required)','Show\x20web\x20console\x20URLs\x20for\x20segments','-v,\x20--verbose','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Output\x20as\x20JSON\x20Lines','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--project\x20<name>','database','-o,\x20--output\x20<file>','use\x20<path>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','utf-8','Task\x20name\x20for\x20logs\x20action','Maximum\x20tool\x20iterations\x20(default:\x204)','--no-proxy','Campaign\x20description','stderr','--yes','\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','Clear\x20session\x20context','\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','use\x20<name>','parse','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--description\x20<desc>','--debug','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','[DEPRECATED]\x20Segment\x20folder\x20management','users','pull\x20[project]\x20[agent-name]','run','map','Show\x20stats\x20for\x20specific\x20stage','action','Include\x20retried\x20attempts\x20(for\x20list)','Create\x20an\x20email\x20template','AI-native\x20CLI\x20for\x20Treasure\x20Data','Email\x20sender\x20ID\x20for\x20delivery','logs','System\x20prompt/instructions\x20(default:\x20empty)','-u,\x20--use','--schedule-type\x20<type>','outputHelp','context','--type\x20<type>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Read\x20query\x20from\x20file','Campaign\x20name','padWidth','Campaign\x20type\x20(email\x20or\x20push)','--add-behaviors\x20<json>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','show\x20<name>','--invisible','Force\x20retry\x20even\x20if\x20not\x20failed','--attribute\x20[name]','session','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','commandUsage','update\x20<name>','attempt:','Show\x20segment\x20schema\x20(column\x20types)','Preview\x20operation\x20without\x20executing','Add\x20behaviors\x20from\x20JSON\x20file','--schedule-option\x20<value>','-X,\x20--method\x20<method>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--tsv','-y,\x20--yes','Resume\x20a\x20paused\x20campaign','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--customer-group\x20<json>','Template\x20name','push','--prompt\x20<text>','-H,\x20--header\x20<header>','Workflow\x20parameter\x20(repeatable)','show\x20<job-id>','length','colorFn','resume\x20<name-or-id>','allowExcessArguments','Create\x20a\x20new\x20agent\x20in\x20current\x20project','get','Create\x20a\x20new\x20LLM\x20project','--limit\x20<n>','name','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Folder\x20name\x20for\x20organization','llm','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','stats\x20<name-or-path>','--table','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Show\x20email\x20template\x20details','Updated\x20description','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','argument','slice','addHelpText','20571wZTAPn','_hidden','workspace','--in\x20<name>','User\x20management\x20commands','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Segment\x20description','Open\x20segment\x20in\x20web\x20browser','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--parent-folder\x20<name>','List\x20jobs','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Show\x20agent\x20details','after','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Push\x20without\x20confirmation','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','pull\x20[parent_or_file]','-r,\x20--recursive','use\x20<project-name>','site','-f,\x20--force','--behavior\x20[name]','Project\x20description','Show\x20campaign\x20details','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20segment\x20details\x20(alias\x20for\x20view)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--interval\x20<range>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--last','--json-columns\x20<cols>','allowUnknownOption','--jsonl','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','HTML\x20template\x20content','--kind\x20<type>','Show\x20only\x20master\x20table\x20validation','--no-color','desc\x20[segment_name]','options','Folder\x20description','commands','--behaviors\x20<json>','-d,\x20--database\x20<database>','chats','List\x20all\x20available\x20profiles','Campaign\x20management','Data\x20connection\x20management\x20(for\x20activations/exports)','--in\x20<database>','Parent\x20folder\x20name\x20for\x20nested\x20folders','Show\x20web\x20console\x20URLs\x20for\x20journeys','Add\x20attributes\x20from\x20JSON\x20file','hook','Pause\x20a\x20campaign','help','Skip\x20population\x20counting','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','list\x20[path]','description','Behaviors\x20from\x20JSON\x20file','--to\x20<timestamp>','update\x20<segment_name>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','list','launch\x20<name-or-id>','Delete\x20an\x20email\x20template','info\x20[segment_name]','12ROuqSN','createAsync','--clear','Skip\x20confirmation\x20prompt','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','CDP\x20Journey\x20Orchestration\x20commands','repeat','End\x20time\x20filter\x20(ISO\x208601\x20format)','setup','Master\x20table\x20name','Create\x20a\x20new\x20campaign','alias','--format\x20<format>','parent-segment','Update\x20a\x20campaign','logLevel','Save\x20output\x20to\x20file','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Kill\x20a\x20job','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Workflow\x20(Digdag)\x20management\x20commands','Plaintext\x20template\x20content','subcommandTerm','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','TRACE','proxy','CDP\x20segment\x20management\x20commands','duplicate\x20<name-or-id>','42TqiQzI','--start-at\x20<datetime>','--json','usage','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','optionTerm','Include\x20retried\x20attempts','delete\x20<agent-name>','Duplicate\x20a\x20campaign','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','7783100fgctDo','1698832FQuRMB','option','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--name\x20<text>','237671xznQUX','--master','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','exit','delete\x20<name-or-id>','Unknown\x20action:\x20','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--add-attributes-file\x20<file>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Open\x20journey\x20in\x20web\x20browser','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Overwrite\x20local\x20changes\x20without\x20confirmation','-1d','--timezone\x20<tz>','push\x20[parent_or_file]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Revision\x20name\x20(default:\x20timestamp)','New\x20template\x20name','Run\x20Trino\x20query\x20with\x20streaming\x20results','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','168319zBuVSz','buildTime','attempts\x20[project]','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--plaintext\x20<text>','tasks','--rule-file\x20<file>','information_schema','1769692XnKyKz','engage','--description\x20<text>','Continue\x20most\x20recent\x20conversation','profiles','Filtering\x20rule\x20as\x20JSON\x20string','--no-count-population','Output\x20directory','[attempt-id]','requiredOption','describe','includes','Attributes\x20as\x20JSON\x20string','--workspace\x20<name>','claude-4.5-sonnet','New\x20workspace\x20name','sessions\x20[project]','json','Resume\x20from\x20specific\x20task\x20(retry)','--revision\x20<revision>','Authentication\x20management','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','restore\x20<folder>','argv','resume\x20<name-or-path>','version','jobs','--params\x20<json>','Parent\x20segment\x20description','--resume-from\x20<task>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','\x20-\x20built\x20','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','workflows\x20[project]','forEach','folder','Trino\x20catalog\x20(default:\x20td)','Parent\x20segment\x20management','-n,\x20--name\x20<name>','Workspace\x20management','Workspace\x20name','Workflow\x20session\x20management','Request\x20body\x20as\x20JSON\x20string','--data\x20<data>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','templates\x20[pattern]','--enriched','view\x20<name-or-path>','segment','--database\x20<db>','\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','Output\x20as\x20JSON','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','../package.json','--customer-group-file\x20<file>','--model\x20<name>','registeredArguments','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--job-type\x20<type>','tables\x20[pattern]','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','[action]','project','Launch\x20a\x20campaign','Show\x20console\x20URLs','show\x20<name-or-id>','Maximum\x20recursion\x20depth\x20(default:\x2010)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','result\x20<job-id>','--timeout\x20<seconds>','--output\x20<file>','list\x20[pattern]','show\x20[name]','gitRevision','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Output\x20folder\x20(default:\x20{project_name}.llm)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','activations\x20<segment_name>','Starter\x20message','Update\x20a\x20workspace','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','create\x20<parent_name>\x20<folder_name>','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Pull\x20child\x20segments\x20to\x20YAML\x20files','filter','Workflow\x20attempt\x20management','Show\x20journey\x20statistics','list\x20[project]','Workspace\x20description','Customer\x20group\x20as\x20JSON\x20string','--reason\x20<text>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20all\x20users\x20in\x20the\x20account','--type\x20<api_type>','padEnd','--skip-validation','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--max-depth\x20<depth>','Customer\x20group\x20from\x20JSON\x20file','format','tdx\x20','List\x20journeys\x20in\x20current\x20context','--rule\x20<json>','Usage:\x20','Output\x20file\x20path','catch','Show\x20workspace\x20details','parent_segment','Database\x20management\x20commands','folders\x20<parent_name>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)'];a2_0x1cdf=function(){return _0x4181e0;};return a2_0x1cdf();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x5aac0e(0x1d3)](readFileSync(join(__dirname,a2_0x5aac0e(0x2f0)),a2_0x5aac0e(0x1c8)));let buildInfo={};try{buildInfo=JSON[a2_0x5aac0e(0x1d3)](readFileSync(join(__dirname,'build-info.json'),'utf-8'));}catch{}if(process[a2_0x5aac0e(0x2d0)][a2_0x5aac0e(0x2c4)](a2_0x5aac0e(0x32f))){let versionOutput=a2_0x5aac0e(0x322)+packageJson[a2_0x5aac0e(0x2d2)];buildInfo[a2_0x5aac0e(0x306)]&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x5aac0e(0x2af)]&&(versionOutput+=a2_0x5aac0e(0x2d8)+buildInfo['buildTime']),console['log'](versionOutput),process[a2_0x5aac0e(0x29c)](0x0);}const program=new Command();let description=a2_0x5aac0e(0x1e2);buildInfo[a2_0x5aac0e(0x306)]?description+=',\x20version\x20'+packageJson['version']+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x5aac0e(0x38a)+packageJson['version'];program[a2_0x5aac0e(0x214)](a2_0x5aac0e(0x354))[a2_0x5aac0e(0x263)](description),program[a2_0x5aac0e(0x296)]('-p,\x20--profile\x20<name>',a2_0x5aac0e(0x37e))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1a2),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','us01')['option'](a2_0x5aac0e(0x279),a2_0x5aac0e(0x1d4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x21b),a2_0x5aac0e(0x3af))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x21d))[a2_0x5aac0e(0x296)]('--jsonl',a2_0x5aac0e(0x233))['option'](a2_0x5aac0e(0x201),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x303),a2_0x5aac0e(0x27d))['option'](a2_0x5aac0e(0x3a4),a2_0x5aac0e(0x2d9))['option']('--color','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])['option'](a2_0x5aac0e(0x24e),a2_0x5aac0e(0x35d),![])['option'](a2_0x5aac0e(0x1bf),a2_0x5aac0e(0x36c),![])[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1d6),a2_0x5aac0e(0x382))[a2_0x5aac0e(0x296)]('--trace',a2_0x5aac0e(0x375))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x302),'Set\x20operation\x20timeout\x20in\x20seconds','30')['option'](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x1fc),![])['option'](a2_0x5aac0e(0x202),a2_0x5aac0e(0x367),![])['option'](a2_0x5aac0e(0x35f),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')['option']('-d,\x20--database\x20<name>',a2_0x5aac0e(0x1ae))['option'](a2_0x5aac0e(0x227),a2_0x5aac0e(0x2b3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x390),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b1),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x5aac0e(0x1ad)]({'formatHelp':(_0x4d8688,_0x19e23a)=>{const _0x2df7ae=a2_0x5aac0e,_0x589308=_0x19e23a[_0x2df7ae(0x1ee)](_0x4d8688,_0x19e23a),_0x5823bf=0x2,_0x50510a=0x2;function _0x19a4e8(_0x32cf94){const _0x249f72=_0x2df7ae,_0x57a830=_0x32cf94;return!!(_0x57a830[_0x249f72(0x225)]||_0x57a830[_0x249f72(0x3ab)]);}function _0x1a79d0(_0x191c8b,_0x6963a6){const _0x2b9924=_0x2df7ae;if(_0x6963a6){const _0x30011f=''+_0x191c8b[_0x2b9924(0x31c)](_0x589308+_0x50510a)+_0x6963a6;return _0x30011f;}return _0x191c8b;}function _0x38c445(_0x45e542){const _0x1f3d9e=_0x2df7ae;return _0x45e542[_0x1f3d9e(0x391)]('\x0a')['replace'](/^/gm,'\x20'[_0x1f3d9e(0x273)](_0x5823bf));}const _0x2410f8=[];_0x2410f8[_0x2df7ae(0x207)](_0x2df7ae(0x325)+_0x19e23a[_0x2df7ae(0x1f8)](_0x4d8688));const _0x1a24f3=_0x19e23a['commandDescription'](_0x4d8688);_0x1a24f3&&(_0x2410f8[_0x2df7ae(0x207)](''),_0x2410f8['push'](_0x1a24f3));const _0xe7f375=_0x4d8688[_0x2df7ae(0x252)][_0x2df7ae(0x311)](_0x451265=>!_0x19a4e8(_0x451265));if(_0xe7f375[_0x2df7ae(0x20c)]>0x0){if(_0x4d8688['name']()===_0x2df7ae(0x354)){const _0x382d93=_0x4d8688[_0x2df7ae(0x36e)](),_0x47dfe2=!_0x382d93[_0x2df7ae(0x34c)]&&process['stdout'][_0x2df7ae(0x37b)],_0x2afc26=COMMAND_CATEGORIES,_0x99e6b2=(_0x29c193,_0x402cf8)=>_0x47dfe2?_0x402cf8(_0x29c193):_0x29c193,_0xbc206d=new Map();_0xe7f375[_0x2df7ae(0x2db)](_0x52c418=>{_0xbc206d['set'](_0x52c418['name'](),_0x52c418);}),_0x2afc26[_0x2df7ae(0x2db)](_0x375ce3=>{const _0x1880d2=_0x2df7ae,_0x3a3908=_0x375ce3['commands']['flatMap'](_0x57645a=>_0xbc206d[_0x1880d2(0x211)](_0x57645a)??[]);if(_0x3a3908[_0x1880d2(0x20c)]>0x0){_0x2410f8[_0x1880d2(0x207)](''),_0x2410f8[_0x1880d2(0x207)](_0x99e6b2(_0x375ce3[_0x1880d2(0x214)]+':',_0x375ce3[_0x1880d2(0x20d)]));const _0x2963d8=_0x3a3908['map'](_0x15a5c2=>{const _0x1c0857=_0x1880d2,_0x3ec236=_0x19e23a[_0x1c0857(0x284)](_0x15a5c2),_0x138a97=_0x19e23a['subcommandDescription'](_0x15a5c2);return _0x1a79d0(_0x3ec236,_0x138a97);});_0x2410f8[_0x1880d2(0x207)](_0x38c445(_0x2963d8));}}),_0x2410f8[_0x2df7ae(0x207)](''),_0x2410f8['push']('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x480caf=_0xe7f375[_0x2df7ae(0x1dd)](_0x370be0=>{const _0x4ad95e=_0x2df7ae,_0x514489=_0x19e23a[_0x4ad95e(0x284)](_0x370be0),_0x234080=_0x19e23a['subcommandDescription'](_0x370be0);return _0x1a79d0(_0x514489,_0x234080);});_0x2410f8['push'](''),_0x2410f8[_0x2df7ae(0x207)]('Commands:'),_0x2410f8[_0x2df7ae(0x207)](_0x38c445(_0x480caf));}}const _0x334d74=_0x4d8688[_0x2df7ae(0x250)][_0x2df7ae(0x311)](_0x1a8fb0=>!_0x19a4e8(_0x1a8fb0));if(_0x334d74[_0x2df7ae(0x20c)]>0x0){const _0x5c388c=_0x334d74[_0x2df7ae(0x1dd)](_0x80b0dc=>{const _0x4a264d=_0x2df7ae,_0x4492b8=_0x19e23a[_0x4a264d(0x28f)](_0x80b0dc),_0x12da5f=_0x19e23a[_0x4a264d(0x396)](_0x80b0dc);return _0x1a79d0(_0x4492b8,_0x12da5f);});_0x2410f8[_0x2df7ae(0x207)](''),_0x2410f8[_0x2df7ae(0x207)]('Options:'),_0x2410f8[_0x2df7ae(0x207)](_0x38c445(_0x5c388c));}const _0x2f8425=(_0x4d8688[_0x2df7ae(0x2f3)]||[])[_0x2df7ae(0x311)](_0x355558=>!_0x19a4e8(_0x355558));if(_0x2f8425[_0x2df7ae(0x20c)]>0x0){const _0x212e0b=_0x2f8425[_0x2df7ae(0x1dd)](_0x45ee8a=>{const _0x3aa650=_0x2df7ae,_0x1cd286=_0x19e23a['argumentTerm'](_0x45ee8a),_0x5defe8=_0x19e23a[_0x3aa650(0x37a)](_0x45ee8a);return _0x1a79d0(_0x1cd286,_0x5defe8);});_0x2410f8[_0x2df7ae(0x207)](''),_0x2410f8['push'](_0x2df7ae(0x1b0)),_0x2410f8[_0x2df7ae(0x207)](_0x38c445(_0x212e0b));}return _0x2410f8[_0x2df7ae(0x391)]('\x0a');},'subcommandTerm':_0x423c87=>{const _0x56e4cc=a2_0x5aac0e,_0x10d013=(_0x423c87[_0x56e4cc(0x2f3)]||[])['map'](_0x1f45b3=>_0x1f45b3['required']?'<'+_0x1f45b3[_0x56e4cc(0x214)]()+'>':'['+_0x1f45b3[_0x56e4cc(0x214)]()+']')[_0x56e4cc(0x391)]('\x20'),_0x48e3f4=_0x423c87['aliases'](),_0x377bc0=_0x48e3f4[_0x56e4cc(0x20c)]>0x0?_0x423c87['name']()+',\x20'+_0x48e3f4[_0x56e4cc(0x391)](',\x20'):_0x423c87[_0x56e4cc(0x214)]();return _0x10d013?_0x377bc0+'\x20'+_0x10d013:_0x377bc0;}}),program[a2_0x5aac0e(0x25d)]('preAction',_0x4bc6e6=>{const _0x2d90ea=a2_0x5aac0e,_0x4e125b=_0x4bc6e6[_0x2d90ea(0x36e)]();if(!_0x4e125b[_0x2d90ea(0x321)]){if(_0x4e125b['table'])_0x4e125b[_0x2d90ea(0x321)]='table';else{if(_0x4e125b['json'])_0x4e125b[_0x2d90ea(0x321)]=_0x2d90ea(0x2ca);else{if(_0x4e125b[_0x2d90ea(0x337)])_0x4e125b[_0x2d90ea(0x321)]=_0x2d90ea(0x337);else _0x4e125b['tsv']&&(_0x4e125b[_0x2d90ea(0x321)]=_0x2d90ea(0x332));}}}_0x4e125b['in']&&!_0x4e125b['database']&&(_0x4e125b[_0x2d90ea(0x1c4)]=_0x4e125b['in']);if(_0x4e125b[_0x2d90ea(0x380)])_0x4e125b['logLevel']=LogLevel[_0x2d90ea(0x286)];else{if(_0x4e125b['debug'])_0x4e125b[_0x2d90ea(0x27c)]=LogLevel['DEBUG'];else _0x4e125b[_0x2d90ea(0x27c)]===undefined&&(_0x4e125b[_0x2d90ea(0x27c)]=LogLevel['INFO']);}});async function createTDXInstance(_0x154567){const _0x102e6c=a2_0x5aac0e,_0x64be69=await GlobalContext[_0x102e6c(0x26e)](_0x154567);return _0x64be69[_0x102e6c(0x19e)](_0x154567),TDX[_0x102e6c(0x1a6)]({'site':_0x64be69[_0x102e6c(0x23b)],'apiKey':_0x64be69['apiKey'],'logLevel':_0x64be69[_0x102e6c(0x27c)],'profile':_0x64be69[_0x102e6c(0x348)]});}const databaseCmd=program['command'](a2_0x5aac0e(0x1c4))[a2_0x5aac0e(0x278)]('db')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x32a)),databaseListAction=async(_0x2a424d,_0x33a5f5)=>{const _0x22f1e0=a2_0x5aac0e,_0x1e816e=new DatabasesCommand(),_0x14d06c=program[_0x22f1e0(0x36e)](),_0x4765c8=await createTDXInstance(_0x14d06c),_0x204157=await _0x1e816e[_0x22f1e0(0x1dc)]({'options':{..._0x14d06c,..._0x33a5f5},'args':_0x2a424d?[_0x2a424d]:[],'tdx':_0x4765c8});process['exit'](_0x204157);};databaseCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x300))[a2_0x5aac0e(0x1df)](databaseListAction),program[a2_0x5aac0e(0x345)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x31e))[a2_0x5aac0e(0x1df)](databaseListAction),program[a2_0x5aac0e(0x345)]('chat\x20[message...]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x30d))['option'](a2_0x5aac0e(0x389),'Agent\x20reference\x20(project-name/agent-name)')[a2_0x5aac0e(0x296)]('--new',a2_0x5aac0e(0x3b9))[a2_0x5aac0e(0x1df)](async(_0x226ed5,_0x563fd7)=>{const _0x46cec0=a2_0x5aac0e,_0x24f7aa=new ChatCommand(),_0x106f02=program[_0x46cec0(0x36e)](),_0x309ace=await createTDXInstance(_0x106f02),_0x5fdb31=await _0x24f7aa['run']({'options':{..._0x106f02,..._0x563fd7},'args':_0x226ed5,'tdx':_0x309ace});process['exit'](_0x5fdb31);});const apiCmd=program[a2_0x5aac0e(0x345)]('api\x20[endpoint]')[a2_0x5aac0e(0x39e)](a2_0x5aac0e(0x29b))[a2_0x5aac0e(0x223)](a2_0x5aac0e(0x232),a2_0x5aac0e(0x2ec))['option'](a2_0x5aac0e(0x1ff),a2_0x5aac0e(0x383),'GET')['option'](a2_0x5aac0e(0x2e4),a2_0x5aac0e(0x2e3))[a2_0x5aac0e(0x296)]('-f,\x20--file\x20<path>',a2_0x5aac0e(0x38c))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x209),a2_0x5aac0e(0x1c2),(_0xae62d0,_0x1d1046)=>{return _0x1d1046?[..._0x1d1046,_0xae62d0]:[_0xae62d0];})[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x31b),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x5aac0e(0x1df)](async(_0x2ccbe3,_0x2538c6)=>{const _0x1c0d14=a2_0x5aac0e;if(!_0x2ccbe3){apiCmd[_0x1c0d14(0x25f)]();return;}const _0x988f18=new ApiCommand(),_0x217900=program[_0x1c0d14(0x36e)](),_0x7aeac1=await createTDXInstance(_0x217900),_0x38abae=await _0x988f18[_0x1c0d14(0x1dc)]({'options':{..._0x217900,..._0x2538c6},'args':[_0x2ccbe3],'tdx':_0x7aeac1});process['exit'](_0x38abae);}),tableCmd=program[a2_0x5aac0e(0x345)]('table')['description'](a2_0x5aac0e(0x1a7)),tableListAction=async(_0x3e8c3e,_0x225f6a)=>{const _0x15e3ad=a2_0x5aac0e,_0x32f319=new TablesCommand(),_0x5e7f35=program[_0x15e3ad(0x36e)](),_0x484a11=await createTDXInstance(_0x5e7f35);_0x225f6a['in']&&(_0x225f6a[_0x15e3ad(0x1c4)]=_0x225f6a['in']);const _0x5eaf63=await _0x32f319['run']({'options':{..._0x5e7f35,..._0x225f6a},'args':_0x3e8c3e?[_0x3e8c3e]:[],'tdx':_0x484a11});process['exit'](_0x5eaf63);};tableCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2f4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x254),a2_0x5aac0e(0x271))['option']('--in\x20<database>',a2_0x5aac0e(0x2b3))[a2_0x5aac0e(0x1df)](tableListAction),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2f6),{'hidden':!![]})['description'](a2_0x5aac0e(0x297))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x254),a2_0x5aac0e(0x271))['option'](a2_0x5aac0e(0x259),a2_0x5aac0e(0x2b3))['action'](tableListAction),program[a2_0x5aac0e(0x345)]('show\x20[table]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x242))['option'](a2_0x5aac0e(0x254),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x259),a2_0x5aac0e(0x2b3))['action'](async(_0x335e6e,_0x4d7479)=>{const _0x21e4c3=a2_0x5aac0e,_0x478fc6=new ShowCommand(),_0xb86919=program[_0x21e4c3(0x36e)](),_0x3c8282=await createTDXInstance(_0xb86919);_0x4d7479['in']&&(_0x4d7479[_0x21e4c3(0x1c4)]=_0x4d7479['in']);const _0x53c620=await _0x478fc6['run']({'options':{..._0xb86919,..._0x4d7479},'args':_0x335e6e?[_0x335e6e]:[],'tdx':_0x3c8282});process[_0x21e4c3(0x29c)](_0x53c620);}),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x386))[a2_0x5aac0e(0x278)](a2_0x5aac0e(0x3b4))[a2_0x5aac0e(0x263)]('Describe\x20table\x20schema')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x254),a2_0x5aac0e(0x32d))[a2_0x5aac0e(0x296)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5aac0e(0x1df)](async(_0x26223b,_0x1c8546)=>{const _0x4f4415=a2_0x5aac0e,_0x52ba1b=new DescribeCommand(),_0x542b16=program['opts'](),_0x42554c=await createTDXInstance(_0x542b16);_0x1c8546['in']&&(_0x1c8546[_0x4f4415(0x1c4)]=_0x1c8546['in']);const _0x41dfe1=await _0x52ba1b['run']({'options':{..._0x542b16,..._0x1c8546},'args':_0x26223b?[_0x26223b]:[],'tdx':_0x42554c});process['exit'](_0x41dfe1);}),program['command'](a2_0x5aac0e(0x338))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2ac))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x254),'Database\x20to\x20query\x20(default:\x20information_schema)')['option']('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option']('--catalog\x20<catalog>',a2_0x5aac0e(0x2dd))['option'](a2_0x5aac0e(0x3b0),a2_0x5aac0e(0x3b6))['option']('--limit\x20<rows>',a2_0x5aac0e(0x1f7),'40')[a2_0x5aac0e(0x1df)](async(_0x3c005c,_0x391dbc)=>{const _0x4dde65=a2_0x5aac0e,_0x556bd5=new QueryCommand(),_0x2d8080=program[_0x4dde65(0x36e)](),_0x2fd175=await createTDXInstance(_0x2d8080);_0x391dbc['in']&&(_0x391dbc[_0x4dde65(0x1c4)]=_0x391dbc['in']);const _0x105a5e=await _0x556bd5['run']({'options':{..._0x2d8080,..._0x391dbc},'args':_0x3c005c?[_0x3c005c]:[],'tdx':_0x2fd175});process[_0x4dde65(0x29c)](_0x105a5e);});const segmentCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2ea))[a2_0x5aac0e(0x278)]('sg')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x288)),segmentListAction=async(_0x4cfdf6,_0x25fe46)=>{const _0x348643=a2_0x5aac0e,_0x5b7b8c=new SegmentsCommand(),_0x2ef772=program[_0x348643(0x36e)](),_0x2024e0=await createTDXInstance(_0x2ef772),_0x5f5982=await _0x5b7b8c['run']({'options':{..._0x2ef772,..._0x25fe46},'args':_0x4cfdf6?[_0x4cfdf6]:[],'tdx':_0x2024e0});process[_0x348643(0x29c)](_0x5f5982);};segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x262))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x236))['option'](a2_0x5aac0e(0x239),a2_0x5aac0e(0x1d8))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x31f),a2_0x5aac0e(0x2ff),'10')['option'](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x1be))[a2_0x5aac0e(0x1df)](segmentListAction),program[a2_0x5aac0e(0x345)]('segments\x20[path]',{'hidden':!![]})[a2_0x5aac0e(0x263)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')['option'](a2_0x5aac0e(0x239),a2_0x5aac0e(0x1d8))[a2_0x5aac0e(0x296)]('--max-depth\x20<depth>',a2_0x5aac0e(0x2ff),'10')['option']('-w,\x20--web','Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x5aac0e(0x1df)](segmentListAction),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1c6),{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x372))[a2_0x5aac0e(0x1df)](async(_0x47200c,_0x1b633b)=>{const _0x1efac6=a2_0x5aac0e,_0x3e8c00=new SegmentUseCommand(),_0x13f9a4=program[_0x1efac6(0x36e)](),_0x126819=await createTDXInstance(_0x13f9a4),_0x42c79f=await _0x3e8c00[_0x1efac6(0x1dc)]({'options':{..._0x13f9a4,..._0x1b633b},'args':[_0x47200c],'tdx':_0x126819});process[_0x1efac6(0x29c)](_0x42c79f);});const segmentViewAction=async(_0x59599f,_0x3b16ab)=>{const _0x45b5b3=a2_0x5aac0e,_0xc996c=new SegmentViewCommand(),_0x5b1a8c=program[_0x45b5b3(0x36e)](),_0x18d449=await createTDXInstance(_0x5b1a8c),_0x292bb5=await _0xc996c['run']({'options':{..._0x5b1a8c,..._0x3b16ab},'args':_0x59599f?[_0x59599f]:[],'tdx':_0x18d449});process[_0x45b5b3(0x29c)](_0x292bb5);};segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x39d))[a2_0x5aac0e(0x263)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x5aac0e(0x296)]('-w,\x20--web',a2_0x5aac0e(0x22c))['action'](segmentViewAction),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x26c),{'hidden':!![]})['alias'](a2_0x5aac0e(0x2c3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x22c))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x241))[a2_0x5aac0e(0x1df)](segmentViewAction),segmentCmd['command'](a2_0x5aac0e(0x24f))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1fb))[a2_0x5aac0e(0x1df)](async(_0x37b6b3,_0x5be9f6)=>{const _0x2bd214=a2_0x5aac0e,_0x2ccf4c=new SegmentDescCommand(),_0x134e03=program[_0x2bd214(0x36e)](),_0x4da4ab=await createTDXInstance(_0x134e03),_0x49d9b7=await _0x2ccf4c[_0x2bd214(0x1dc)]({'options':{..._0x134e03,..._0x5be9f6},'args':_0x37b6b3?[_0x37b6b3]:[],'tdx':_0x4da4ab});process['exit'](_0x49d9b7);}),segmentCmd[a2_0x5aac0e(0x345)]('show\x20[segment_name]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2b4))['action'](async(_0x1af31c,_0x57f76e)=>{const _0x5df846=a2_0x5aac0e,_0x4422a2=new SegmentShowCommand(),_0x38686d=program['opts'](),_0x1194f9=await createTDXInstance(_0x38686d),_0x63494f=await _0x4422a2[_0x5df846(0x1dc)]({'options':{..._0x38686d,..._0x57f76e},'args':_0x1af31c?[_0x1af31c]:[],'tdx':_0x1194f9});process[_0x5df846(0x29c)](_0x63494f);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x32b),{'hidden':!![]})['description'](a2_0x5aac0e(0x1c7))[a2_0x5aac0e(0x1df)](async(_0x383615,_0x46a966)=>{const _0xadb945=a2_0x5aac0e,_0x272cfe=new SegmentFolderListCommand(),_0x53e22e=program[_0xadb945(0x36e)](),_0x14bf88=await createTDXInstance(_0x53e22e),_0x3c87e0=await _0x272cfe[_0xadb945(0x1dc)]({'options':{..._0x53e22e,..._0x46a966},'args':[_0x383615],'tdx':_0x14bf88});process[_0xadb945(0x29c)](_0x3c87e0);});const folderCmd=segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2dc),{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1d9));folderCmd['command'](a2_0x5aac0e(0x33a))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x364))[a2_0x5aac0e(0x1df)](async(_0xff1c7a,_0x2662ab)=>{const _0x1f82ea=a2_0x5aac0e,_0x153980=new SegmentFolderShowCommand(),_0x32b46e=program[_0x1f82ea(0x36e)](),_0x5307a0=await createTDXInstance(_0x32b46e),_0x352ac8=await _0x153980[_0x1f82ea(0x1dc)]({'options':{..._0x32b46e,..._0x2662ab},'args':[_0xff1c7a],'tdx':_0x5307a0});process[_0x1f82ea(0x29c)](_0x352ac8);}),segmentCmd[a2_0x5aac0e(0x345)]('sql\x20[segment_name]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x22d))[a2_0x5aac0e(0x1df)](async(_0x5b933a,_0xd1c998)=>{const _0x5441b9=a2_0x5aac0e,_0x43569b=new SegmentSQLCommand(),_0x16cadc=program[_0x5441b9(0x36e)](),_0x397b05=await createTDXInstance(_0x16cadc),_0x2a1fad=await _0x43569b[_0x5441b9(0x1dc)]({'options':{..._0x16cadc,..._0xd1c998},'args':_0x5b933a?[_0x5b933a]:[],'tdx':_0x397b05});process['exit'](_0x2a1fad);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x38e))['description'](a2_0x5aac0e(0x3a2))[a2_0x5aac0e(0x1df)](async(_0x2cffa7,_0x54ec77)=>{const _0x58bc19=a2_0x5aac0e,_0x5c5139=new SegmentFieldsCommand(),_0x3b5c10=program[_0x58bc19(0x36e)](),_0x504494=await createTDXInstance(_0x3b5c10),_0x1215f3=await _0x5c5139[_0x58bc19(0x1dc)]({'options':{..._0x3b5c10,..._0x54ec77},'args':_0x2cffa7?[_0x2cffa7]:[],'tdx':_0x504494});process[_0x58bc19(0x29c)](_0x1215f3);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x238))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x310))[a2_0x5aac0e(0x296)]('-y,\x20--yes',a2_0x5aac0e(0x367))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x28e))[a2_0x5aac0e(0x1df)](async(_0x3f5198,_0x225650)=>{const _0x47006c=a2_0x5aac0e,_0x4a0480=new SegmentPullCommand(),_0x38b12f=program[_0x47006c(0x36e)](),_0x2e70a2=await createTDXInstance(_0x38b12f),_0x202955=await _0x4a0480[_0x47006c(0x1dc)]({'options':{..._0x38b12f,..._0x225650},'args':_0x3f5198?[_0x3f5198]:[],'tdx':_0x2e70a2});process[_0x47006c(0x29c)](_0x202955);}),segmentCmd['command'](a2_0x5aac0e(0x2a8))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x204))['option'](a2_0x5aac0e(0x202),'Skip\x20confirmation\x20prompts')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x28e))[a2_0x5aac0e(0x296)]('--delete','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x5aac0e(0x1df)](async(_0x242140,_0x1d00cf)=>{const _0x57b033=a2_0x5aac0e,_0x1c7a74=new SegmentPushCommand(),_0x58af80=program[_0x57b033(0x36e)](),_0x50bbc2=await createTDXInstance(_0x58af80),_0x2fc964=await _0x1c7a74[_0x57b033(0x1dc)]({'options':{..._0x58af80,..._0x1d00cf},'args':_0x242140?[_0x242140]:[],'tdx':_0x50bbc2});process['exit'](_0x2fc964);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1aa),{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2ce))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x22b))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x324),a2_0x5aac0e(0x2be))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2b7),a2_0x5aac0e(0x3a5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x351),a2_0x5aac0e(0x217))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x24c),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f3),a2_0x5aac0e(0x39f))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2bf),a2_0x5aac0e(0x260))[a2_0x5aac0e(0x1df)](async(_0xd2536,_0x33288c)=>{const _0x452740=a2_0x5aac0e,_0x35b882=new SegmentCreateCommand(),_0x3f75f6=program[_0x452740(0x36e)](),_0x39018d=await createTDXInstance(_0x3f75f6),_0x45ea34=await _0x35b882[_0x452740(0x1dc)]({'options':{..._0x3f75f6,..._0x33288c},'args':[_0xd2536],'tdx':_0x39018d});process[_0x452740(0x29c)](_0x45ea34);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x266),{'hidden':!![]})['description']('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option']('--name\x20<new_name>',a2_0x5aac0e(0x344))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x21f))['option']('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x5aac0e(0x2b7),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x351),a2_0x5aac0e(0x368))['option'](a2_0x5aac0e(0x24c),a2_0x5aac0e(0x34a))['action'](async(_0x362f66,_0x4bbff5)=>{const _0x307dd0=a2_0x5aac0e,_0x5d14ae=new SegmentUpdateCommand(),_0x538352=program['opts'](),_0x393a26=await createTDXInstance(_0x538352),_0x2bf922=await _0x5d14ae[_0x307dd0(0x1dc)]({'options':{..._0x538352,..._0x4bbff5},'args':[_0x362f66],'tdx':_0x393a26});process['exit'](_0x2bf922);});const parentCmd=segmentCmd[a2_0x5aac0e(0x345)]('parent',{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x357)),parentListAction=async(_0x2cbd44,_0x467a97)=>{const _0xb3bf0d=a2_0x5aac0e,_0x3d63f=new ParentSegmentListCommand(),_0x26ae94=program[_0xb3bf0d(0x36e)](),_0x3a9c14=await createTDXInstance(_0x26ae94),_0x153637=await _0x3d63f['run']({'options':{..._0x26ae94,..._0x467a97},'args':_0x2cbd44?[_0x2cbd44]:[],'tdx':_0x3a9c14});process[_0xb3bf0d(0x29c)](_0x153637);};parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x5aac0e(0x1df)](parentListAction),segmentCmd[a2_0x5aac0e(0x345)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1a4))[a2_0x5aac0e(0x1df)](parentListAction),parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x38d))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x220))[a2_0x5aac0e(0x296)]('-o,\x20--output\x20<file>','Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x5aac0e(0x296)]('-y,\x20--yes',a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](async(_0x4018a0,_0x3f3830)=>{const _0x35e470=a2_0x5aac0e,_0x4e3677=new ParentSegmentPullCommand(),_0x20d058=program[_0x35e470(0x36e)](),_0x1a4ed8=await createTDXInstance(_0x20d058),_0x528431=await _0x4e3677[_0x35e470(0x1dc)]({'options':{..._0x20d058,..._0x3f3830},'args':_0x4018a0?[_0x4018a0]:[],'tdx':_0x1a4ed8});process[_0x35e470(0x29c)](_0x528431);}),parentCmd[a2_0x5aac0e(0x345)]('push\x20[file]')['description'](a2_0x5aac0e(0x33e))[a2_0x5aac0e(0x296)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')['action'](async(_0x292b6b,_0xedb9f6)=>{const _0x34ca1f=a2_0x5aac0e,_0x340361=new ParentSegmentPushCommand(),_0x46167f=program[_0x34ca1f(0x36e)](),_0x5a2d50=await createTDXInstance(_0x46167f),_0x1389de=await _0x340361[_0x34ca1f(0x1dc)]({'options':{..._0x46167f,..._0xedb9f6},'args':_0x292b6b?[_0x292b6b]:[],'tdx':_0x5a2d50});process[_0x34ca1f(0x29c)](_0x1389de);}),parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x346))[a2_0x5aac0e(0x263)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x5aac0e(0x296)]('--master',a2_0x5aac0e(0x24d))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f5),a2_0x5aac0e(0x229))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23d),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2e8),a2_0x5aac0e(0x2b2))['option'](a2_0x5aac0e(0x243),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x5aac0e(0x2a6))[a2_0x5aac0e(0x1df)](async(_0x11cd7a,_0x48aa92)=>{const _0x2c28a9=a2_0x5aac0e,_0x397182=new ParentSegmentValidateCommand(),_0x25edb0=program[_0x2c28a9(0x36e)](),_0x286e08=await createTDXInstance(_0x25edb0),_0x13dca6=await _0x397182[_0x2c28a9(0x1dc)]({'options':{..._0x25edb0,..._0x48aa92},'args':_0x11cd7a?[_0x11cd7a]:[],'tdx':_0x286e08});process[_0x2c28a9(0x29c)](_0x13dca6);}),parentCmd[a2_0x5aac0e(0x345)]('preview\x20[file]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x22a))['option']('--master',a2_0x5aac0e(0x3a7))['option']('--attribute\x20[name]',a2_0x5aac0e(0x2a9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23d),a2_0x5aac0e(0x334))['option']('--enriched',a2_0x5aac0e(0x1c0))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x243),a2_0x5aac0e(0x293),a2_0x5aac0e(0x2a6))[a2_0x5aac0e(0x1df)](async(_0x2fc909,_0x4f93bb)=>{const _0x30f932=a2_0x5aac0e,_0x20b65d=new ParentSegmentPreviewCommand(),_0x57d340=program[_0x30f932(0x36e)](),_0x5b3db2=await createTDXInstance(_0x57d340),_0x42e5b1=await _0x20b65d[_0x30f932(0x1dc)]({'options':{..._0x57d340,..._0x4f93bb},'args':_0x2fc909?[_0x2fc909]:[],'tdx':_0x5b3db2});process[_0x30f932(0x29c)](_0x42e5b1);}),parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a0))['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x202),a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](async(_0x397862,_0x46c1c0)=>{const _0x33feed=a2_0x5aac0e,_0x305f07=new ParentSegmentRunCommand(),_0x533629=program[_0x33feed(0x36e)](),_0x356874=await createTDXInstance(_0x533629),_0x4b6c5b=await _0x305f07['run']({'options':{..._0x533629,..._0x46c1c0},'args':_0x397862?[_0x397862]:[],'tdx':_0x356874});process['exit'](_0x4b6c5b);});const parentSegmentCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x27a))[a2_0x5aac0e(0x278)]('ps')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2de));parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))['description'](a2_0x5aac0e(0x267))[a2_0x5aac0e(0x1df)](parentListAction),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x38d))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x374))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1c5),a2_0x5aac0e(0x326))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x202),'Skip\x20confirmation\x20prompt')['option'](a2_0x5aac0e(0x1e6),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')['action'](async(_0x2f4d59,_0x3e7872)=>{const _0x3eef5a=a2_0x5aac0e,_0x363c9a=new ParentSegmentPullCommand(),_0x43c686=program[_0x3eef5a(0x36e)](),_0x381b7c=await createTDXInstance(_0x43c686),_0x2c5743=await _0x363c9a[_0x3eef5a(0x1dc)]({'options':{..._0x43c686,..._0x3e7872},'args':_0x2f4d59?[_0x2f4d59]:[],'tdx':_0x381b7c});process['exit'](_0x2c5743);}),parentSegmentCmd['command']('push\x20[name]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x27e))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x202),a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](async(_0x15429e,_0x22f118)=>{const _0x3b9fb6=a2_0x5aac0e,_0x196759=new ParentSegmentPushCommand(),_0x33b82a=program[_0x3b9fb6(0x36e)](),_0x30086c=await createTDXInstance(_0x33b82a),_0x341972=await _0x196759['run']({'options':{..._0x33b82a,..._0x22f118},'args':_0x15429e?[_0x15429e]:[],'tdx':_0x30086c});process['exit'](_0x341972);}),parentSegmentCmd[a2_0x5aac0e(0x345)]('validate\x20[name]')['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x5aac0e(0x29a),a2_0x5aac0e(0x24d))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f5),a2_0x5aac0e(0x229))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23d),a2_0x5aac0e(0x360))[a2_0x5aac0e(0x296)]('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x243),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x5aac0e(0x2a6))[a2_0x5aac0e(0x1df)](async(_0x70ab8f,_0x37baec)=>{const _0x30edce=a2_0x5aac0e,_0xceabec=new ParentSegmentValidateCommand(),_0xb7ab50=program['opts'](),_0x5333d9=await createTDXInstance(_0xb7ab50),_0x4084ad=await _0xceabec[_0x30edce(0x1dc)]({'options':{..._0xb7ab50,..._0x37baec},'args':_0x70ab8f?[_0x70ab8f]:[],'tdx':_0x5333d9});process[_0x30edce(0x29c)](_0x4084ad);}),parentSegmentCmd[a2_0x5aac0e(0x345)]('preview\x20[name]')[a2_0x5aac0e(0x263)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x29a),a2_0x5aac0e(0x3a7))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f5),a2_0x5aac0e(0x2a9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23d),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x5aac0e(0x296)]('--enriched',a2_0x5aac0e(0x1c0))['option'](a2_0x5aac0e(0x243),a2_0x5aac0e(0x293),'-1d')['action'](async(_0x44f301,_0x5145d9)=>{const _0x2be1d0=a2_0x5aac0e,_0x36a065=new ParentSegmentPreviewCommand(),_0x3af34b=program[_0x2be1d0(0x36e)](),_0x35a2f9=await createTDXInstance(_0x3af34b),_0x3968b1=await _0x36a065[_0x2be1d0(0x1dc)]({'options':{..._0x3af34b,..._0x5145d9},'args':_0x44f301?[_0x44f301]:[],'tdx':_0x35a2f9});process['exit'](_0x3968b1);}),parentSegmentCmd['command'](a2_0x5aac0e(0x1a0))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x36d))['option'](a2_0x5aac0e(0x202),a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](async(_0x382f6a,_0x390848)=>{const _0x850a5=a2_0x5aac0e,_0x1676b7=new ParentSegmentRunCommand(),_0x4e673f=program[_0x850a5(0x36e)](),_0x51338e=await createTDXInstance(_0x4e673f),_0x36cd03=await _0x1676b7[_0x850a5(0x1dc)]({'options':{..._0x4e673f,..._0x390848},'args':_0x382f6a?[_0x382f6a]:[],'tdx':_0x51338e});process[_0x850a5(0x29c)](_0x36cd03);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a3))[a2_0x5aac0e(0x263)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x2ed))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x248),a2_0x5aac0e(0x1c1))[a2_0x5aac0e(0x1df)](async(_0x42ada3,_0x41c62a)=>{const _0x2da00a=a2_0x5aac0e,_0x4f78bc=new ParentSegmentFieldsCommand(),_0x5a2bf0=program[_0x2da00a(0x36e)](),_0x1c7bcc=await createTDXInstance(_0x5a2bf0),_0x462d5a=await _0x4f78bc[_0x2da00a(0x1dc)]({'options':{..._0x5a2bf0,..._0x41c62a},'args':_0x42ada3?[_0x42ada3]:[],'tdx':_0x1c7bcc});process[_0x2da00a(0x29c)](_0x462d5a);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x399))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x268))[a2_0x5aac0e(0x296)]('-w,\x20--web',a2_0x5aac0e(0x1b4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x2ed))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x248),'Output\x20as\x20JSON\x20Lines')[a2_0x5aac0e(0x1df)](async(_0x4da2c3,_0x40e423)=>{const _0x1a0a6a=a2_0x5aac0e,_0x14f7e5=new ParentSegmentViewCommand(),_0x476e73=program[_0x1a0a6a(0x36e)](),_0x48a92f=await createTDXInstance(_0x476e73),_0x53ec47=await _0x14f7e5['run']({'options':{..._0x476e73,..._0x40e423},'args':_0x4da2c3?[_0x4da2c3]:[],'tdx':_0x48a92f});process[_0x1a0a6a(0x29c)](_0x53ec47);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x393))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x5aac0e(0x28c),'Output\x20as\x20JSON')['option'](a2_0x5aac0e(0x248),a2_0x5aac0e(0x1c1))[a2_0x5aac0e(0x1df)](async(_0x2986c9,_0x1bf86b)=>{const _0x36d52c=new ParentSegmentDescCommand(),_0x4da930=program['opts'](),_0x13601f=await createTDXInstance(_0x4da930),_0x5aa212=await _0x36d52c['run']({'options':{..._0x4da930,..._0x1bf86b},'args':_0x2986c9?[_0x2986c9]:[],'tdx':_0x13601f});process['exit'](_0x5aa212);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x353))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x394))['option'](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x2ed))['option'](a2_0x5aac0e(0x248),a2_0x5aac0e(0x1c1))[a2_0x5aac0e(0x1df)](async(_0x5b4348,_0x5ca1d3)=>{const _0x1a6cec=a2_0x5aac0e,_0x13b223=new ParentSegmentSQLCommand(),_0x2ab6e9=program['opts'](),_0x154ef3=await createTDXInstance(_0x2ab6e9),_0x58a888=await _0x13b223[_0x1a6cec(0x1dc)]({'options':{..._0x2ab6e9,..._0x5ca1d3},'args':_0x5b4348?[_0x5b4348]:[],'tdx':_0x154ef3});process[_0x1a6cec(0x29c)](_0x58a888);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x305))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x32e))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x213),a2_0x5aac0e(0x379))['option'](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x2ed))[a2_0x5aac0e(0x296)]('--jsonl',a2_0x5aac0e(0x1c1))[a2_0x5aac0e(0x1df)](async(_0x572b3d,_0x561e3d)=>{const _0x512f6f=a2_0x5aac0e,_0x3dd1f0=new ParentSegmentShowCommand(),_0x41e570=program[_0x512f6f(0x36e)](),_0x353759=await createTDXInstance(_0x41e570),_0x1cb8bb=await _0x3dd1f0['run']({'options':{..._0x41e570,..._0x561e3d},'args':_0x572b3d?[_0x572b3d]:[],'tdx':_0x353759});process['exit'](_0x1cb8bb);}),parentSegmentCmd['command'](a2_0x5aac0e(0x352))['description'](a2_0x5aac0e(0x384))[a2_0x5aac0e(0x1df)](async(_0x4e4eb6,_0x259695)=>{const _0x1bd7ad=a2_0x5aac0e,_0x258c16=new UseCommand(),_0xa4612d=program['opts'](),_0x2445c8=_0x4e4eb6?[_0x1bd7ad(0x329),_0x4e4eb6]:[],_0x55ad34=await _0x258c16[_0x1bd7ad(0x1dc)]({'options':{..._0xa4612d,..._0x259695},'args':_0x2445c8,'tdx':null});process[_0x1bd7ad(0x29c)](_0x55ad34);}),parentCmd[a2_0x5aac0e(0x345)]('create\x20<name>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x29f))[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x2eb),'Master\x20database\x20name')['requiredOption']('--table\x20<table>',a2_0x5aac0e(0x276))['option'](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x2d5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1e7),a2_0x5aac0e(0x1d7))['option'](a2_0x5aac0e(0x1fe),a2_0x5aac0e(0x2a4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2a7),a2_0x5aac0e(0x363))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1b7),a2_0x5aac0e(0x2c5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1af),'Attributes\x20from\x20JSON\x20file')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x253),'Behaviors\x20as\x20JSON\x20string')['option'](a2_0x5aac0e(0x34d),a2_0x5aac0e(0x264))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x205),a2_0x5aac0e(0x316))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2f1),a2_0x5aac0e(0x320))['action'](async(_0x56405c,_0x4934dc)=>{const _0x22f043=new ParentSegmentCreateCommand(),_0x3e991f=program['opts'](),_0x5dfbd9=await createTDXInstance(_0x3e991f),_0x10a4d4=await _0x22f043['run']({'options':{..._0x3e991f,..._0x4934dc},'args':[_0x56405c],'tdx':_0x5dfbd9});process['exit'](_0x10a4d4);}),parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1f9))['description']('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x21f))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1e7),a2_0x5aac0e(0x2f9))['option'](a2_0x5aac0e(0x1fe),'Updated\x20schedule\x20option')[a2_0x5aac0e(0x296)]('--timezone\x20<tz>','Updated\x20timezone')[a2_0x5aac0e(0x296)]('--add-attributes\x20<json>','Add\x20attributes\x20as\x20JSON\x20string')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2a0),a2_0x5aac0e(0x25c))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f0),a2_0x5aac0e(0x1b8))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x392),a2_0x5aac0e(0x1fd))[a2_0x5aac0e(0x1df)](async(_0x5a67b5,_0x25ed4d)=>{const _0xdd4584=a2_0x5aac0e,_0x2167f8=new ParentSegmentUpdateCommand(),_0x3418c3=program[_0xdd4584(0x36e)](),_0x2463c0=await createTDXInstance(_0x3418c3),_0x1acaaa=await _0x2167f8[_0xdd4584(0x1dc)]({'options':{..._0x3418c3,..._0x25ed4d},'args':[_0x5a67b5],'tdx':_0x2463c0});process[_0xdd4584(0x29c)](_0x1acaaa);}),folderCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x30e))[a2_0x5aac0e(0x263)]('Create\x20segment\x20folder')['option'](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x251))['option'](a2_0x5aac0e(0x22e),a2_0x5aac0e(0x25a))['action'](async(_0x44b7d5,_0x405d57,_0x394011)=>{const _0x246de6=new SegmentFolderCreateCommand(),_0x1fab9f=program['opts'](),_0x20ad7a=await createTDXInstance(_0x1fab9f),_0x34c3b6=await _0x246de6['run']({'options':{..._0x1fab9f,..._0x394011},'args':[_0x44b7d5,_0x405d57],'tdx':_0x20ad7a});process['exit'](_0x34c3b6);}),program['command'](a2_0x5aac0e(0x30a))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2f7))[a2_0x5aac0e(0x1df)](async(_0x5a5297,_0x141e67)=>{const _0x34caeb=a2_0x5aac0e,_0x1ec0c4=new ActivationsCommand(),_0x1ec370=program[_0x34caeb(0x36e)](),_0x25ef91=await createTDXInstance(_0x1ec370),_0x1734d3=await _0x1ec0c4[_0x34caeb(0x1dc)]({'options':{..._0x1ec370,..._0x141e67},'args':[_0x5a5297],'tdx':_0x25ef91});process[_0x34caeb(0x29c)](_0x1734d3);});const workflowCmd=program['command']('workflow')[a2_0x5aac0e(0x278)]('wf')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x282)),wfProjectCmd=workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2fb))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x34f)),wfProjectListAction=async(_0x38e8a9,_0x49f7f6)=>{const _0xe80787=a2_0x5aac0e,_0x90bde9=new WorkflowProjectsCommand(),_0x22aaa5=program['opts'](),_0x45f485=await createTDXInstance(_0x22aaa5),_0x392063=await _0x90bde9[_0xe80787(0x1dc)]({'options':{..._0x22aaa5,..._0x49f7f6},'args':_0x38e8a9?[_0x38e8a9]:[],'tdx':_0x45f485});process[_0xe80787(0x29c)](_0x392063);};wfProjectCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x5aac0e(0x1df)](wfProjectListAction),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x333))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2f8))[a2_0x5aac0e(0x1df)](wfProjectListAction);const wfWorkflowListAction=async(_0x4a9d69,_0x3b8d4d)=>{const _0x13e7cd=a2_0x5aac0e,_0x20a680=new WorkflowWorkflowsCommand(),_0x322439=program[_0x13e7cd(0x36e)](),_0x3e5db2=await createTDXInstance(_0x322439),_0x4a393b=await _0x20a680[_0x13e7cd(0x1dc)]({'options':{..._0x322439,..._0x3b8d4d},'args':_0x4a9d69?[_0x4a9d69]:[],'tdx':_0x3e5db2});process[_0x13e7cd(0x29c)](_0x4a393b);};workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2da))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x38f))[a2_0x5aac0e(0x1df)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x5aac0e(0x1f6))['description'](a2_0x5aac0e(0x2e2)),wfSessionListAction=async(_0x4547ea,_0x5e337c)=>{const _0x49cbda=a2_0x5aac0e,_0x4a32fc=new WorkflowSessionsCommand(),_0x4e55d8=program[_0x49cbda(0x36e)](),_0x5c4c83=await createTDXInstance(_0x4e55d8),_0x127944=await _0x4a32fc['run']({'options':{..._0x4e55d8,..._0x5e337c},'args':_0x4547ea?[_0x4547ea]:[],'tdx':_0x5c4c83});process[_0x49cbda(0x29c)](_0x127944);};wfSessionCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x314))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x21c))[a2_0x5aac0e(0x296)]('--status\x20<status>',a2_0x5aac0e(0x33f))[a2_0x5aac0e(0x296)]('--from\x20<timestamp>',a2_0x5aac0e(0x319))[a2_0x5aac0e(0x296)]('--to\x20<timestamp>',a2_0x5aac0e(0x274))[a2_0x5aac0e(0x1df)](wfSessionListAction),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2c9))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x307))[a2_0x5aac0e(0x296)]('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x341),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x5aac0e(0x265),a2_0x5aac0e(0x274))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x436c08,_0x33563d)=>{const _0x2a64bf=a2_0x5aac0e,_0xfcb59e=new WorkflowAttemptsCommand(),_0x11e155=program['opts'](),_0x50c5b5=await createTDXInstance(_0x11e155),_0xa5f8e3=await _0xfcb59e[_0x2a64bf(0x1dc)]({'options':{..._0x11e155,..._0x33563d},'args':_0x436c08?[_0x436c08]:[],'tdx':_0x50c5b5});process['exit'](_0xa5f8e3);},attemptCmd=workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x342))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x312))[a2_0x5aac0e(0x221)](a2_0x5aac0e(0x2c1),a2_0x5aac0e(0x387))[a2_0x5aac0e(0x221)](a2_0x5aac0e(0x2fa),a2_0x5aac0e(0x35b))[a2_0x5aac0e(0x221)](a2_0x5aac0e(0x339),a2_0x5aac0e(0x1c9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37f),a2_0x5aac0e(0x3a8))['option'](a2_0x5aac0e(0x317),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x5aac0e(0x2d6),a2_0x5aac0e(0x2cb))['option'](a2_0x5aac0e(0x2d4),a2_0x5aac0e(0x2a3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x377),a2_0x5aac0e(0x1f4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x35e),a2_0x5aac0e(0x1e0))[a2_0x5aac0e(0x1df)](async(_0x1f4aff,_0x5a15de,_0x2b06de,_0x954820)=>{const _0x37ba60=a2_0x5aac0e;if(_0x1f4aff===_0x37ba60(0x269)){await wfAttemptListAction(_0x5a15de,_0x954820);return;}if(!_0x1f4aff){attemptCmd[_0x37ba60(0x25f)]();return;}const _0x5246c1=program[_0x37ba60(0x36e)](),_0x445008=await createTDXInstance(_0x5246c1);let _0x1f9bef=0x0;if(!_0x5a15de){const _0x43ad81=new WorkflowAttemptCommand();_0x1f9bef=await _0x43ad81[_0x37ba60(0x1dc)]({'options':{..._0x5246c1,..._0x954820},'args':[_0x1f4aff],'tdx':_0x445008});}else{if(_0x5a15de===_0x37ba60(0x1e4)){const _0x44d1f3=new WorkflowLogsCommand();_0x1f9bef=await _0x44d1f3[_0x37ba60(0x1dc)]({'options':{..._0x5246c1,..._0x954820},'args':_0x2b06de?[_0x1f4aff,_0x2b06de]:[_0x1f4aff],'tdx':_0x445008});}else{if(_0x5a15de===_0x37ba60(0x2b6)){const _0x38c90a=new WorkflowTasksCommand();_0x1f9bef=await _0x38c90a['run']({'options':{..._0x5246c1,..._0x954820},'args':[_0x1f4aff],'tdx':_0x445008});}else{if(_0x5a15de===_0x37ba60(0x349)){const _0x259918=new WorkflowKillCommand();_0x1f9bef=await _0x259918['run']({'options':{..._0x5246c1,..._0x954820},'args':[_0x1f4aff],'tdx':_0x445008});}else{if(_0x5a15de===_0x37ba60(0x39a)){const _0xd76031=new WorkflowRetryCommand();_0x1f9bef=await _0xd76031[_0x37ba60(0x1dc)]({'options':{..._0x5246c1,..._0x954820},'args':[_0x37ba60(0x1fa)+_0x1f4aff],'tdx':_0x445008});}else console['error'](_0x37ba60(0x29e)+_0x5a15de),console[_0x37ba60(0x1b1)](_0x37ba60(0x2e6)),_0x1f9bef=0x1;}}}}process[_0x37ba60(0x29c)](_0x1f9bef);});attemptCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x314))[a2_0x5aac0e(0x263)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x35e),'Include\x20retried\x20attempts')[a2_0x5aac0e(0x1df)](wfAttemptListAction),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2b0))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2ef))[a2_0x5aac0e(0x296)]('--include-retried',a2_0x5aac0e(0x290))[a2_0x5aac0e(0x1df)](wfAttemptListAction),workflowCmd[a2_0x5aac0e(0x345)]('retry\x20<session-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2e5))[a2_0x5aac0e(0x296)]('--from-task\x20<task>',a2_0x5aac0e(0x1a5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2d4),a2_0x5aac0e(0x2ad))['action'](async(_0x5c74b1,_0x338d4a)=>{const _0x45bdbc=a2_0x5aac0e,_0x41163f=new WorkflowRetryCommand(),_0x149ef1=program['opts'](),_0x22f779=await createTDXInstance(_0x149ef1),_0x4444c0=await _0x41163f['run']({'options':{..._0x149ef1,..._0x338d4a},'args':[_0x5c74b1],'tdx':_0x22f779});process[_0x45bdbc(0x29c)](_0x4444c0);}),workflowCmd[a2_0x5aac0e(0x345)]('run\x20<workflow>')['description'](a2_0x5aac0e(0x373))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x378),a2_0x5aac0e(0x20a),(_0xd6b8fc,_0x4acc11=[])=>[..._0x4acc11,_0xd6b8fc],[])[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x381),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x5aac0e(0x1df)](async(_0x481832,_0xe35e44)=>{const _0x29a824=a2_0x5aac0e,_0x2b1ba9=new WorkflowRunCommand(),_0x1f9a33=program['opts'](),_0x17d9f0=await createTDXInstance(_0x1f9a33),_0x55e366=await _0x2b1ba9['run']({'options':{..._0x1f9a33,..._0xe35e44},'args':[_0x481832],'tdx':_0x17d9f0});process[_0x29a824(0x29c)](_0x55e366);}),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x366))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x3b3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2cc),a2_0x5aac0e(0x350))[a2_0x5aac0e(0x1df)](async(_0x20fdfb,_0x16dfd8,_0x2a09b2)=>{const _0x505783=a2_0x5aac0e,_0x2339f6=new WorkflowDownloadCommand(),_0x1e54bd=program[_0x505783(0x36e)](),_0x1452eb=await createTDXInstance(_0x1e54bd),_0x2678f4=await _0x2339f6[_0x505783(0x1dc)]({'options':{..._0x1e54bd,..._0x2a09b2},'args':[_0x20fdfb,_0x16dfd8||'.'],'tdx':_0x1452eb});process[_0x505783(0x29c)](_0x2678f4);}),workflowCmd['command'](a2_0x5aac0e(0x35a))[a2_0x5aac0e(0x263)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')['option'](a2_0x5aac0e(0x343),'Override\x20project\x20name')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2cc),a2_0x5aac0e(0x2aa))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x31d),a2_0x5aac0e(0x1ac))[a2_0x5aac0e(0x1df)](async(_0x47127d,_0x4d5a2b)=>{const _0x360766=a2_0x5aac0e,_0x5b9447=new WorkflowPushCommand(),_0x491415=program[_0x360766(0x36e)](),_0x34875e=await createTDXInstance(_0x491415),_0x16df09=await _0x5b9447[_0x360766(0x1dc)]({'options':{..._0x491415,..._0x4d5a2b},'args':_0x47127d?[_0x47127d]:[],'tdx':_0x34875e});process[_0x360766(0x29c)](_0x16df09);}),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x36b))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x280))[a2_0x5aac0e(0x1df)](async(_0x4a9f83,_0x24f86e)=>{const _0x42cc33=a2_0x5aac0e,_0x5bd969=new WorkflowDeleteCommand(),_0x5119a4=program['opts'](),_0x52774c=await createTDXInstance(_0x5119a4),_0x44fb6e=await _0x5bd969[_0x42cc33(0x1dc)]({'options':{..._0x5119a4,..._0x24f86e},'args':[_0x4a9f83],'tdx':_0x52774c});process[_0x42cc33(0x29c)](_0x44fb6e);});const jobCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x34e))[a2_0x5aac0e(0x263)]('Job\x20management\x20commands'),jobListAction=async _0x30e405=>{const _0x30ac70=a2_0x5aac0e,_0x5c62a0=new JobListCommand(),_0x49d13b=program[_0x30ac70(0x36e)](),_0x32a3de=await createTDXInstance(_0x49d13b),_0x42f702=await _0x5c62a0[_0x30ac70(0x1dc)]({'options':{..._0x49d13b,..._0x30e405},'args':[],'tdx':_0x32a3de});process[_0x30ac70(0x29c)](_0x42f702);};jobCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x269))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x22f))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1b5),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2d3),{'hidden':!![]})['description']('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')['option']('--status\x20<status>',a2_0x5aac0e(0x36f))[a2_0x5aac0e(0x1df)](jobListAction),jobCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x20b))[a2_0x5aac0e(0x263)]('Show\x20job\x20details')[a2_0x5aac0e(0x1df)](async(_0x1ab0f0,_0x4e163a)=>{const _0x4a4cad=a2_0x5aac0e,_0x5bfce6=new JobShowCommand(),_0x3bf3dd=program[_0x4a4cad(0x36e)](),_0x26bf31=await createTDXInstance(_0x3bf3dd),_0x27adba=await _0x5bfce6[_0x4a4cad(0x1dc)]({'options':{..._0x3bf3dd,..._0x4e163a},'args':[_0x1ab0f0],'tdx':_0x26bf31});process[_0x4a4cad(0x29c)](_0x27adba);}),jobCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x3aa))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x27f))[a2_0x5aac0e(0x1df)](async(_0x50ca84,_0x586586)=>{const _0x5158d9=a2_0x5aac0e,_0x409987=new JobKillCommand(),_0x10e792=program['opts'](),_0x583185=await createTDXInstance(_0x10e792),_0x2f6f6d=await _0x409987[_0x5158d9(0x1dc)]({'options':{..._0x10e792,..._0x586586},'args':[_0x50ca84],'tdx':_0x583185});process[_0x5158d9(0x29c)](_0x2f6f6d);}),jobCmd['command'](a2_0x5aac0e(0x35c))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x335))['option'](a2_0x5aac0e(0x2f5),a2_0x5aac0e(0x24a),'trino')['option'](a2_0x5aac0e(0x3b0),a2_0x5aac0e(0x1ec))[a2_0x5aac0e(0x296)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x5aac0e(0x2b8))[a2_0x5aac0e(0x1df)](async(_0x36ee7e,_0x1716e5)=>{const _0x5a6ed6=a2_0x5aac0e,_0x215b1a=new JobSubmitCommand(),_0x215b8f=program[_0x5a6ed6(0x36e)](),_0x1a2225=await createTDXInstance(_0x215b8f),_0x46373b=await _0x215b1a[_0x5a6ed6(0x1dc)]({'options':{..._0x215b8f,..._0x1716e5},'args':_0x36ee7e?[_0x36ee7e]:[],'tdx':_0x1a2225});process[_0x5a6ed6(0x29c)](_0x46373b);}),jobCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x301))['description']('Get\x20job\x20results')[a2_0x5aac0e(0x1df)](async(_0x2257b9,_0x579392)=>{const _0x340e53=a2_0x5aac0e,_0x3ab1d1=new JobResultCommand(),_0x320adf=program[_0x340e53(0x36e)](),_0x419898=await createTDXInstance(_0x320adf),_0x4e0047=await _0x3ab1d1['run']({'options':{..._0x320adf,..._0x579392},'args':[_0x2257b9],'tdx':_0x419898});process['exit'](_0x4e0047);});const llmCmd=program['command'](a2_0x5aac0e(0x218))['description'](a2_0x5aac0e(0x3b7));llmCmd['command'](a2_0x5aac0e(0x23a))['description'](a2_0x5aac0e(0x30f))[a2_0x5aac0e(0x1df)](async(_0x216737,_0x3b1b8f)=>{const _0xc9e8ad=a2_0x5aac0e,_0x17d750=new LLMUseCommand(),_0x3c1fc5=program[_0xc9e8ad(0x36e)](),_0x46b870=await createTDXInstance(_0x3c1fc5),_0x575a35=await _0x17d750['run']({'options':{..._0x3c1fc5,..._0x3b1b8f},'args':[_0x216737],'tdx':_0x46b870});process[_0xc9e8ad(0x29c)](_0x575a35);}),llmCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x33d))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x336))[a2_0x5aac0e(0x1df)](async _0x1ca4b2=>{const _0x42c870=a2_0x5aac0e,_0x36e811=new LLMModelsCommand(),_0x5e745a=program['opts'](),_0x12fb7f=await createTDXInstance(_0x5e745a),_0x1d1b93=await _0x36e811[_0x42c870(0x1dc)]({'options':{..._0x5e745a,..._0x1ca4b2},'args':[],'tdx':_0x12fb7f});process[_0x42c870(0x29c)](_0x1d1b93);});const projectCmd=llmCmd['command'](a2_0x5aac0e(0x2fb))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x370)),llmProjectListAction=async(_0x52091c,_0x47e112)=>{const _0x4d1717=a2_0x5aac0e,_0x3ce7b7=new LLMProjectsCommand(),_0x23fff3=program[_0x4d1717(0x36e)](),_0x49df0e=await createTDXInstance(_0x23fff3),_0x3d8d0d=await _0x3ce7b7[_0x4d1717(0x1dc)]({'options':{..._0x23fff3,..._0x47e112},'args':_0x52091c?[_0x52091c]:[],'tdx':_0x49df0e});process[_0x4d1717(0x29c)](_0x3d8d0d);};projectCmd['command'](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')['option'](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x2fd))['action'](llmProjectListAction),llmCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x333))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x244))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x2fd))[a2_0x5aac0e(0x1df)](llmProjectListAction),projectCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x362))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x212))[a2_0x5aac0e(0x296)]('--description\x20<text>',a2_0x5aac0e(0x23e))[a2_0x5aac0e(0x1df)](async(_0x26b666,_0x4e0ebc)=>{const _0x284de4=a2_0x5aac0e,_0x10b2d3=new LLMProjectCreateCommand(),_0x168954=program[_0x284de4(0x36e)](),_0xcf394c=await createTDXInstance(_0x168954),_0x18189e=await _0x10b2d3[_0x284de4(0x1dc)]({'options':{..._0x168954,..._0x4e0ebc},'args':[_0x26b666],'tdx':_0xcf394c});process['exit'](_0x18189e);}),projectCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x340))[a2_0x5aac0e(0x263)]('Delete\x20an\x20LLM\x20project')['action'](async(_0xb6d331,_0x4eeafe)=>{const _0x32b413=a2_0x5aac0e,_0x1a3f2e=new LLMProjectDeleteCommand(),_0xbf7e66=program[_0x32b413(0x36e)](),_0x1c27b6=await createTDXInstance(_0xbf7e66),_0x48b16d=await _0x1a3f2e[_0x32b413(0x1dc)]({'options':{..._0xbf7e66,..._0x4eeafe},'args':[_0xb6d331],'tdx':_0x1c27b6});process[_0x32b413(0x29c)](_0x48b16d);}),projectCmd['command'](a2_0x5aac0e(0x1a8))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x318))[a2_0x5aac0e(0x296)]('-o,\x20--output\x20<folder>',a2_0x5aac0e(0x308))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x249))[a2_0x5aac0e(0x1df)](async(_0x25a79b,_0x5977b6)=>{const _0x37b164=a2_0x5aac0e,_0x5d489c=new LLMProjectBackupCommand(),_0x26aec2=program['opts'](),_0x41b648=await createTDXInstance(_0x26aec2),_0x16eb3b=await _0x5d489c[_0x37b164(0x1dc)]({'options':{..._0x26aec2,..._0x5977b6},'args':[_0x25a79b],'tdx':_0x41b648});process['exit'](_0x16eb3b);}),projectCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2cf))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1b6))['option']('--name\x20<new-name>',a2_0x5aac0e(0x2a1))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x285))[a2_0x5aac0e(0x1df)](async(_0x3f3387,_0x3e3e24)=>{const _0x828f4e=a2_0x5aac0e,_0x2bfe40=new LLMProjectRestoreCommand(),_0x72ff5e=program[_0x828f4e(0x36e)](),_0x2a74a4=await createTDXInstance(_0x72ff5e),_0xf52d1b=await _0x2bfe40[_0x828f4e(0x1dc)]({'options':{..._0x72ff5e,..._0x3e3e24},'args':[_0x3f3387],'tdx':_0x2a74a4});process['exit'](_0xf52d1b);});const llmAgentListAction=async(_0x3c96ae,_0x494014)=>{const _0x101c2a=a2_0x5aac0e,_0x2fc8e1=new LLMAgentsCommand(),_0x20dd80=program[_0x101c2a(0x36e)](),_0xdae50c=await createTDXInstance(_0x20dd80),_0xb56960=await _0x2fc8e1[_0x101c2a(0x1dc)]({'options':{..._0x20dd80,..._0x494014},'args':_0x3c96ae?[_0x3c96ae]:[],'tdx':_0xdae50c});process[_0x101c2a(0x29c)](_0xb56960);};llmCmd[a2_0x5aac0e(0x345)]('agents\x20[pattern]')['description'](a2_0x5aac0e(0x281))[a2_0x5aac0e(0x296)]('-w,\x20--web',a2_0x5aac0e(0x359))[a2_0x5aac0e(0x1df)](llmAgentListAction),program[a2_0x5aac0e(0x345)]('agents\x20[pattern]')[a2_0x5aac0e(0x263)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x359))[a2_0x5aac0e(0x1df)](llmAgentListAction),llmCmd[a2_0x5aac0e(0x345)]('history\x20[chat-id]')[a2_0x5aac0e(0x263)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x245),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')['action'](async(_0x164c7c,_0x114b9e)=>{const _0x3e300f=a2_0x5aac0e,_0x202555=new LLMHistoryCommand(),_0x329c24=program['opts'](),_0x679fe=await createTDXInstance(_0x329c24),_0x4b0513=await _0x202555[_0x3e300f(0x1dc)]({'options':{..._0x329c24,..._0x114b9e},'args':_0x164c7c?[_0x164c7c]:[],'tdx':_0x679fe});process[_0x3e300f(0x29c)](_0x4b0513);}),llmCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x287))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x234))['option']('--port\x20<number>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x5aac0e(0x1b3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1c3),a2_0x5aac0e(0x240))['option']('--agent\x20<name>',a2_0x5aac0e(0x361))[a2_0x5aac0e(0x1df)](async _0x55c1e7=>{const _0x4c54c3=a2_0x5aac0e,_0x27ac00=new LLMProxyCommand(),_0x406054=program[_0x4c54c3(0x36e)](),_0x5441f0=await createTDXInstance(_0x406054),_0x3c6e26={..._0x55c1e7,'port':_0x55c1e7[_0x4c54c3(0x365)]?parseInt(_0x55c1e7[_0x4c54c3(0x365)],0xa):undefined},_0x5035f4=await _0x27ac00['run']({'options':{..._0x406054,..._0x3c6e26},'args':[],'tdx':_0x5441f0});process[_0x4c54c3(0x29c)](_0x5035f4);}),program[a2_0x5aac0e(0x345)]('claude\x20[args...]')[a2_0x5aac0e(0x28d)]('[options]\x20--\x20[claude-code-args...]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x261))[a2_0x5aac0e(0x296)]('--model\x20<name>',a2_0x5aac0e(0x19d),a2_0x5aac0e(0x39c))[a2_0x5aac0e(0x296)]('-c,\x20--continue',a2_0x5aac0e(0x2bc))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3a1),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1cb),a2_0x5aac0e(0x309))[a2_0x5aac0e(0x247)]()[a2_0x5aac0e(0x20f)](!![])[a2_0x5aac0e(0x223)](a2_0x5aac0e(0x232),a2_0x5aac0e(0x1cf))[a2_0x5aac0e(0x1df)](async(_0x2723db,_0x167c9e)=>{const _0x56ad43=a2_0x5aac0e,_0x32416d=program['opts'](),_0x5f5c7d=Array['isArray'](_0x2723db)?_0x2723db:[];if(_0x5f5c7d[0x0]===_0x56ad43(0x1bb)){const _0x4c8ffd=new ClaudeStatuslineCommand(),_0x1fec31=await _0x4c8ffd[_0x56ad43(0x1dc)]({'options':{..._0x32416d,..._0x167c9e},'args':_0x5f5c7d[_0x56ad43(0x222)](0x1),'tdx':null});process[_0x56ad43(0x29c)](_0x1fec31);}if(_0x5f5c7d[0x0]===_0x56ad43(0x28d)){const _0x3d01da=new ClaudeUsageCommand(),_0x110555=await _0x3d01da['run']({'options':{..._0x32416d,..._0x167c9e},'args':_0x5f5c7d[_0x56ad43(0x222)](0x1),'tdx':null});process[_0x56ad43(0x29c)](_0x110555);}const _0x625784=new ClaudeCommand(),_0x25f8e8=await createTDXInstance(_0x32416d),_0x16c506=await _0x625784['run']({'options':{..._0x32416d,..._0x167c9e},'args':_0x5f5c7d,'tdx':_0x25f8e8});process['exit'](_0x16c506);}),program['command'](a2_0x5aac0e(0x1e9))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x230))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x26f),'Clear\x20session\x20context')['action'](async _0x15126b=>{const _0x47125e=a2_0x5aac0e,_0x3770e7=new ContextCommand(),_0x38447f=program['opts'](),_0x2422df=await _0x3770e7[_0x47125e(0x1dc)]({'options':{..._0x38447f,..._0x15126b},'args':[],'tdx':null});process[_0x47125e(0x29c)](_0x2422df);}),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x371))['description'](a2_0x5aac0e(0x215))[a2_0x5aac0e(0x296)]('--clear',a2_0x5aac0e(0x1d0))[a2_0x5aac0e(0x1df)](async(_0x240008,_0xdf2ccf,_0x43881d)=>{const _0x9ca3db=a2_0x5aac0e,_0x18ff5b=new UseCommand(),_0x257b80=program[_0x9ca3db(0x36e)](),_0x55b8ec=[];if(_0x240008)_0x55b8ec[_0x9ca3db(0x207)](_0x240008);if(_0xdf2ccf)_0x55b8ec[_0x9ca3db(0x207)](_0xdf2ccf);const _0x285907=await _0x18ff5b[_0x9ca3db(0x1dc)]({'options':{..._0x257b80,..._0x43881d},'args':_0x55b8ec,'tdx':null});process[_0x9ca3db(0x29c)](_0x285907);}),program['command'](a2_0x5aac0e(0x255))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x3a0))['option'](a2_0x5aac0e(0x245),a2_0x5aac0e(0x3ae))[a2_0x5aac0e(0x1df)](async _0x10154f=>{const _0x27fffc=a2_0x5aac0e,_0x9c1fbb=new ChatsCommand(),_0x465641=program[_0x27fffc(0x36e)](),_0x85c861=await createTDXInstance(_0x465641),_0x215eee=await _0x9c1fbb[_0x27fffc(0x1dc)]({'options':{..._0x465641,..._0x10154f},'args':[],'tdx':_0x85c861});process[_0x27fffc(0x29c)](_0x215eee);});const authCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x3b2))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2cd));async function runAuthStatusCommand(_0x434ae1){const _0x1c9046=a2_0x5aac0e,_0x1d60c7=new AuthStatusCommand(),_0x4c58b6=program[_0x1c9046(0x36e)](),_0x154f44=await createTDXInstance(_0x4c58b6),_0x308874=await _0x1d60c7[_0x1c9046(0x1dc)]({'options':{..._0x4c58b6,..._0x434ae1},'args':[],'tdx':_0x154f44});process['exit'](_0x308874);}authCmd[a2_0x5aac0e(0x1df)](runAuthStatusCommand),authCmd[a2_0x5aac0e(0x345)]('status')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x369))['action'](runAuthStatusCommand),authCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x275))['description'](a2_0x5aac0e(0x397))[a2_0x5aac0e(0x223)](a2_0x5aac0e(0x232),a2_0x5aac0e(0x1d1))[a2_0x5aac0e(0x1df)](async _0x820f2=>{const _0x41e35a=a2_0x5aac0e,_0x354d38=new AuthSetupCommand(),_0x1e2b70=program[_0x41e35a(0x36e)](),_0x37a0bf=await createTDXInstance(_0x1e2b70),_0xf0fe35=await _0x354d38['run']({'options':{..._0x1e2b70,..._0x820f2},'args':[],'tdx':_0x37a0bf});process['exit'](_0xf0fe35);}),authCmd[a2_0x5aac0e(0x345)]('clear')[a2_0x5aac0e(0x263)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x5aac0e(0x223)]('after','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0x5aac0e(0x1df)](async _0x4e42f8=>{const _0x27232d=a2_0x5aac0e,_0x3c25e1=new AuthClearCommand(),_0x2664b9=program[_0x27232d(0x36e)](),_0x24ba17=await _0x3c25e1[_0x27232d(0x1dc)]({'options':{..._0x2664b9,..._0x4e42f8},'args':[],'tdx':null});process[_0x27232d(0x29c)](_0x24ba17);});const userCmd=program['command']('user')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x228)),userListAction=async _0xd0ffc2=>{const _0x7fe66d=a2_0x5aac0e,_0x2953ef=new UserListCommand(),_0x5c36b6=program[_0x7fe66d(0x36e)](),_0x5094cf=await createTDXInstance(_0x5c36b6),_0x494aa3=await _0x2953ef[_0x7fe66d(0x1dc)]({'options':{..._0x5c36b6,..._0xd0ffc2},'args':[],'tdx':_0x5094cf});process[_0x7fe66d(0x29c)](_0x494aa3);};userCmd[a2_0x5aac0e(0x1df)](async _0x5b999b=>{const _0x37e5b9=a2_0x5aac0e,_0x359bf0=new UserCommand(),_0x1b1250=program[_0x37e5b9(0x36e)](),_0x1ad884=await createTDXInstance(_0x1b1250),_0x302895=await _0x359bf0['run']({'options':{..._0x1b1250,..._0x5b999b},'args':[],'tdx':_0x1ad884});process[_0x37e5b9(0x29c)](_0x302895);}),userCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x269))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x31a))[a2_0x5aac0e(0x1df)](userListAction),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1da))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x237))[a2_0x5aac0e(0x1df)](userListAction),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2bd))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x256))['action'](async _0x50559e=>{const _0x347b45=a2_0x5aac0e,_0x2ab646=new ProfilesCommand(),_0x4b2913=program[_0x347b45(0x36e)](),_0x4085fa=await _0x2ab646[_0x347b45(0x1dc)]({'options':{..._0x4b2913,..._0x50559e},'args':[],'tdx':null});process['exit'](_0x4085fa);});const engageCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2ba))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1a9)),createEngageAction=_0x872dbe=>{return async(_0xf90cdd,_0x369e06)=>{const _0x4b58f0=a2_0x5c65,_0x2155db=new _0x872dbe(),_0x3b13b9=program[_0x4b58f0(0x36e)](),_0x2f442c=await createTDXInstance(_0x3b13b9),_0x50a9f3=await _0x2155db[_0x4b58f0(0x1dc)]({'options':{..._0x3b13b9,..._0x369e06},'args':[_0xf90cdd],'tdx':_0x2f442c});process[_0x4b58f0(0x29c)](_0x50a9f3);};},createEngageNoArgAction=_0x33d60d=>{return async _0x31a1d4=>{const _0x461f02=a2_0x5c65,_0x2bdef3=new _0x33d60d(),_0x10f55c=program[_0x461f02(0x36e)](),_0x5e2533=await createTDXInstance(_0x10f55c),_0x3f450f=await _0x2bdef3['run']({'options':{..._0x10f55c,..._0x31a1d4},'args':[],'tdx':_0x5e2533});process[_0x461f02(0x29c)](_0x3f450f);};},campaignCmd=engageCmd[a2_0x5aac0e(0x345)]('campaign')['description'](a2_0x5aac0e(0x257)),campaignListAction=async(_0x225a91,_0x6082ea)=>{const _0x540bdd=a2_0x5aac0e,_0x9a1f64=new EngageCampaignsCommand(),_0x45934b=program[_0x540bdd(0x36e)](),_0x3654c3=await createTDXInstance(_0x45934b),_0x5b1715=await _0x9a1f64[_0x540bdd(0x1dc)]({'options':{..._0x45934b,..._0x6082ea},'args':_0x225a91?[_0x225a91]:[],'tdx':_0x3654c3});process['exit'](_0x5b1715);};campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1ea),a2_0x5aac0e(0x2ee))['option']('--status\x20<status>',a2_0x5aac0e(0x200))[a2_0x5aac0e(0x296)]('--workspace\x20<name>',a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](campaignListAction),engageCmd[a2_0x5aac0e(0x345)]('campaigns\x20[pattern]')['description']('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1ea),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1b5),a2_0x5aac0e(0x200))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](campaignListAction),campaignCmd['command'](a2_0x5aac0e(0x2fe))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x23f))[a2_0x5aac0e(0x296)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x5aac0e(0x3b5),a2_0x5aac0e(0x1ba))[a2_0x5aac0e(0x1df)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a6))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x277))['requiredOption']('--name\x20<name>',a2_0x5aac0e(0x1ed))[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x1ea),a2_0x5aac0e(0x1ef))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x1b9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1d5),'Campaign\x20description')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x388),a2_0x5aac0e(0x216))[a2_0x5aac0e(0x296)]('--email-sender-id\x20<id>',a2_0x5aac0e(0x1e3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x246),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x5aac0e(0x28b),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2a7),a2_0x5aac0e(0x1f1))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x36a))['description'](a2_0x5aac0e(0x27b))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))['option'](a2_0x5aac0e(0x343),a2_0x5aac0e(0x3ac))[a2_0x5aac0e(0x296)]('--description\x20<desc>',a2_0x5aac0e(0x1cc))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x388),a2_0x5aac0e(0x216))[a2_0x5aac0e(0x296)]('--email-sender-id\x20<id>',a2_0x5aac0e(0x1e3))['option'](a2_0x5aac0e(0x246),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x28b),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2a7),a2_0x5aac0e(0x1f1))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x5aac0e(0x345)]('delete\x20<name-or-id>')[a2_0x5aac0e(0x263)]('Delete\x20a\x20campaign')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x296)]('--yes',a2_0x5aac0e(0x270))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x26a))['description'](a2_0x5aac0e(0x2fc))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x25e))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x5aac0e(0x20e))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x203))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x289))['description'](a2_0x5aac0e(0x292))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x5aac0e(0x345)]('template')['description']('Email\x20template\x20management'),templateListAction=async(_0x2e64c8,_0x358c73)=>{const _0x10e43e=a2_0x5aac0e,_0x1f8a02=new EngageTemplatesCommand(),_0x5976c6=program[_0x10e43e(0x36e)](),_0x556c75=await createTDXInstance(_0x5976c6),_0x3de92f=await _0x1f8a02['run']({'options':{..._0x5976c6,..._0x358c73},'args':_0x2e64c8?[_0x2e64c8]:[],'tdx':_0x556c75});process[_0x10e43e(0x29c)](_0x3de92f);};templateCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x356))[a2_0x5aac0e(0x296)]('--workspace\x20<name>',a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](templateListAction),engageCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2e7))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2d7))['option'](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))['action'](templateListAction),templateCmd['command']('show\x20<name-or-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x21e))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b5),a2_0x5aac0e(0x1ba))[a2_0x5aac0e(0x1df)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a6))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1e1))['requiredOption'](a2_0x5aac0e(0x343),a2_0x5aac0e(0x206))[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x376),'Email\x20subject\x20template')[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x331),a2_0x5aac0e(0x24b))['option']('--workspace\x20<name>',a2_0x5aac0e(0x1b9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2b5),a2_0x5aac0e(0x283))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1b2),'Editor\x20type')[a2_0x5aac0e(0x1df)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x5aac0e(0x345)]('update\x20<name-or-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1bc))['option'](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x343),a2_0x5aac0e(0x2ab))['option']('--subject\x20<subject>',a2_0x5aac0e(0x33c))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x331),'HTML\x20template\x20content')[a2_0x5aac0e(0x296)]('--plaintext\x20<text>',a2_0x5aac0e(0x283))[a2_0x5aac0e(0x1df)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x5aac0e(0x345)]('delete\x20<name-or-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x26b))['option'](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x296)]('--yes',a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x226))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2e0)),workspaceListAction=async(_0xbedcba,_0x9e8ca8)=>{const _0x45e371=a2_0x5aac0e,_0x3dc140=new EngageWorkspacesCommand(),_0x577f45=program[_0x45e371(0x36e)](),_0x166aa9=await createTDXInstance(_0x577f45),_0x1e1bf9=await _0x3dc140['run']({'options':{..._0x577f45,..._0x9e8ca8},'args':_0xbedcba?[_0xbedcba]:[],'tdx':_0x166aa9});process['exit'](_0x1e1bf9);};workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5aac0e(0x1df)](workspaceListAction),engageCmd['command']('workspaces\x20[pattern]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x32c))[a2_0x5aac0e(0x1df)](workspaceListAction),workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2fe))['description'](a2_0x5aac0e(0x328))['option'](a2_0x5aac0e(0x3b5),a2_0x5aac0e(0x1ba))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x5aac0e(0x345)]('create')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x347))[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x343),'Workspace\x20name')[a2_0x5aac0e(0x296)]('--description\x20<desc>',a2_0x5aac0e(0x315))[a2_0x5aac0e(0x1df)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x36a))['description'](a2_0x5aac0e(0x30c))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x343),a2_0x5aac0e(0x2c8))[a2_0x5aac0e(0x296)]('--description\x20<desc>','Workspace\x20description')[a2_0x5aac0e(0x1df)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x29d))[a2_0x5aac0e(0x263)]('Delete\x20a\x20workspace')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1ce),a2_0x5aac0e(0x270))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1d2))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x219))[a2_0x5aac0e(0x1df)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x395))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x258)),connectionListAction=async _0x129223=>{const _0x114c66=a2_0x5aac0e,_0x1ff561=new ConnectionListCommand(),_0x40c1d4=program[_0x114c66(0x36e)](),_0x1a67ed=await createTDXInstance(_0x40c1d4),_0x27c581=await _0x1ff561[_0x114c66(0x1dc)]({'options':{..._0x40c1d4,..._0x129223},'args':[],'tdx':_0x1a67ed});process[_0x114c66(0x29c)](_0x27c581);};connectionCmd[a2_0x5aac0e(0x345)]('list')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x38b))[a2_0x5aac0e(0x1df)](connectionListAction),program[a2_0x5aac0e(0x345)]('connections',{'hidden':!![]})['description'](a2_0x5aac0e(0x2b1))[a2_0x5aac0e(0x1df)](connectionListAction),connectionCmd['command'](a2_0x5aac0e(0x1f2))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x330))[a2_0x5aac0e(0x1df)](async(_0x1209dc,_0x557496)=>{const _0x597d9b=a2_0x5aac0e,_0x44972d=new ConnectionShowCommand(),_0x566f21=program[_0x597d9b(0x36e)](),_0x109238=await createTDXInstance(_0x566f21),_0x294b5e=await _0x44972d[_0x597d9b(0x1dc)]({'options':{..._0x566f21,..._0x557496},'args':[_0x1209dc],'tdx':_0x109238});process[_0x597d9b(0x29c)](_0x294b5e);});const journeyCmd=program['command']('journey')['description'](a2_0x5aac0e(0x272));journeyCmd['command'](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x323))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x25b))[a2_0x5aac0e(0x1df)](async(_0x18b317,_0x5db1c7)=>{const _0x94706b=a2_0x5aac0e,_0x60d5e2=new JourneyListCommand(),_0x4e5d10=program[_0x94706b(0x36e)](),_0x13f412=await createTDXInstance(_0x4e5d10),_0x23b8e7=await _0x60d5e2['run']({'options':{..._0x4e5d10,..._0x5db1c7},'args':_0x18b317?[_0x18b317]:[],'tdx':_0x13f412});process[_0x94706b(0x29c)](_0x23b8e7);}),journeyCmd['command'](a2_0x5aac0e(0x2e9))[a2_0x5aac0e(0x263)]('Show\x20journey\x20details')['option'](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x2a2))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x398),'Include\x20execution\x20statistics')[a2_0x5aac0e(0x1df)](async(_0x2d8f24,_0x488c1d)=>{const _0xb06207=a2_0x5aac0e,_0x29d948=new JourneyViewCommand(),_0x2eb8a4=program[_0xb06207(0x36e)](),_0x3a0630=await createTDXInstance(_0x2eb8a4),_0x72ed04=await _0x29d948[_0xb06207(0x1dc)]({'options':{..._0x2eb8a4,..._0x488c1d},'args':[_0x2d8f24],'tdx':_0x3a0630});process[_0xb06207(0x29c)](_0x72ed04);}),journeyCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x21a))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x313))[a2_0x5aac0e(0x296)]('--stage\x20<name>',a2_0x5aac0e(0x1de))[a2_0x5aac0e(0x1df)](async(_0x271c99,_0x24221d)=>{const _0xb39b2a=a2_0x5aac0e,_0x4ce198=new JourneyStatsCommand(),_0x464914=program[_0xb39b2a(0x36e)](),_0xb9b9ba=await createTDXInstance(_0x464914),_0xcbd73e=await _0x4ce198[_0xb39b2a(0x1dc)]({'options':{..._0x464914,..._0x24221d},'args':[_0x271c99],'tdx':_0xb9b9ba});process[_0xb39b2a(0x29c)](_0xcbd73e);}),journeyCmd[a2_0x5aac0e(0x345)]('pause\x20<name-or-path>')[a2_0x5aac0e(0x263)]('Pause\x20a\x20running\x20journey')[a2_0x5aac0e(0x1df)](async(_0x3f7eec,_0x5a7135)=>{const _0x2baa78=a2_0x5aac0e,_0x2cd826=new JourneyPauseCommand(),_0x467e98=program['opts'](),_0x2b9089=await createTDXInstance(_0x467e98),_0x27be89=await _0x2cd826[_0x2baa78(0x1dc)]({'options':{..._0x467e98,..._0x5a7135},'args':[_0x3f7eec],'tdx':_0x2b9089});process[_0x2baa78(0x29c)](_0x27be89);}),journeyCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2d1))[a2_0x5aac0e(0x263)]('Resume\x20a\x20paused\x20journey')[a2_0x5aac0e(0x1df)](async(_0x305d36,_0x467d40)=>{const _0x22257e=a2_0x5aac0e,_0x1b3193=new JourneyResumeCommand(),_0xbd6c70=program[_0x22257e(0x36e)](),_0x4b4f55=await createTDXInstance(_0xbd6c70),_0x1001c7=await _0x1b3193[_0x22257e(0x1dc)]({'options':{..._0xbd6c70,..._0x467d40},'args':[_0x305d36],'tdx':_0x4b4f55});process[_0x22257e(0x29c)](_0x1001c7);}),journeyCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x38d))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x39b))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x202),a2_0x5aac0e(0x270))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x37d))[a2_0x5aac0e(0x1df)](async(_0x26e4f3,_0x5ff564)=>{const _0x4c1dba=a2_0x5aac0e,_0x40c3c1=new JourneyPullCommand(),_0x3f2d92=program[_0x4c1dba(0x36e)](),_0x1f6bcf=await createTDXInstance(_0x3f2d92),_0x3e0e8b=await _0x40c3c1[_0x4c1dba(0x1dc)]({'options':{..._0x3f2d92,..._0x5ff564},'args':_0x26e4f3?[_0x26e4f3]:[],'tdx':_0x1f6bcf});process['exit'](_0x3e0e8b);}),journeyCmd[a2_0x5aac0e(0x345)]('push\x20[target]')[a2_0x5aac0e(0x263)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x5aac0e(0x1df)](async(_0x2aea20,_0x100491)=>{const _0x1f869d=a2_0x5aac0e,_0x35e724=new JourneyPushCommand(),_0x497fea=program['opts'](),_0x3a9a61=await createTDXInstance(_0x497fea),_0x2c262d=await _0x35e724[_0x1f869d(0x1dc)]({'options':{..._0x497fea,..._0x100491},'args':_0x2aea20?[_0x2aea20]:[],'tdx':_0x3a9a61});process[_0x1f869d(0x29c)](_0x2c262d);});const agentSyncCmd=program[a2_0x5aac0e(0x345)]('agent')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x3a6));agentSyncCmd['command'](a2_0x5aac0e(0x1db))['description']('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x33b),a2_0x5aac0e(0x2c0))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23c),a2_0x5aac0e(0x2a5))[a2_0x5aac0e(0x1df)](async(_0xc315c7,_0x455d2b,_0x37e3f0)=>{const _0x3e8519=a2_0x5aac0e,_0x3296b9=new AgentPullCommand(),_0x43f585=program[_0x3e8519(0x36e)](),_0x212977=await createTDXInstance(_0x43f585),_0x5e0a26=[];if(_0xc315c7)_0x5e0a26[_0x3e8519(0x207)](_0xc315c7);if(_0x455d2b)_0x5e0a26[_0x3e8519(0x207)](_0x455d2b);const _0xaad161=await _0x3296b9[_0x3e8519(0x1dc)]({'options':{..._0x43f585,..._0x37e3f0},'args':_0x5e0a26,'tdx':_0x212977});process[_0x3e8519(0x29c)](_0xaad161);}),agentSyncCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x3a9))['description']('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23c),a2_0x5aac0e(0x235))[a2_0x5aac0e(0x1df)](async(_0x102daa,_0xb8439a)=>{const _0x1139bc=a2_0x5aac0e,_0x52496c=new AgentPushCommand(),_0x4d130a=program[_0x1139bc(0x36e)](),_0x405550=await createTDXInstance(_0x4d130a),_0x19143f=await _0x52496c[_0x1139bc(0x1dc)]({'options':{..._0x4d130a,..._0xb8439a},'args':_0x102daa?[_0x102daa]:[],'tdx':_0x405550});process[_0x1139bc(0x29c)](_0x19143f);}),agentSyncCmd[a2_0x5aac0e(0x345)]('clone\x20[source]')[a2_0x5aac0e(0x263)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')['option'](a2_0x5aac0e(0x2df),a2_0x5aac0e(0x1bd))[a2_0x5aac0e(0x1df)](async(_0x1fe30a,_0x2f7d83)=>{const _0x498ec0=a2_0x5aac0e,_0x342c3f=new AgentCloneCommand(),_0xec0ebf=program[_0x498ec0(0x36e)](),_0x1121f1=await createTDXInstance(_0xec0ebf),_0x4c7478=await _0x342c3f[_0x498ec0(0x1dc)]({'options':{..._0xec0ebf,..._0x2f7d83},'args':_0x1fe30a?[_0x1fe30a]:[],'tdx':_0x1121f1});process['exit'](_0x4c7478);}),agentSyncCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20agents\x20in\x20current\x20project')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x359))[a2_0x5aac0e(0x1df)](llmAgentListAction),agentSyncCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a1))['description'](a2_0x5aac0e(0x231))[a2_0x5aac0e(0x1df)](async(_0x4fa7eb,_0x47d00e)=>{const _0x2b19c6=a2_0x5aac0e,_0x19c04c=new LLMAgentShowCommand(),_0x5ae7c6=program[_0x2b19c6(0x36e)](),_0x31a43d=await createTDXInstance(_0x5ae7c6),_0x204401=await _0x19c04c[_0x2b19c6(0x1dc)]({'options':{..._0x5ae7c6,..._0x47d00e},'args':[_0x4fa7eb],'tdx':_0x31a43d});process['exit'](_0x204401);}),agentSyncCmd['command'](a2_0x5aac0e(0x362))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x210))[a2_0x5aac0e(0x296)]('--system-prompt\x20<text>',a2_0x5aac0e(0x1e5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2f2),a2_0x5aac0e(0x34b),a2_0x5aac0e(0x2c7))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x19f),a2_0x5aac0e(0x30b))[a2_0x5aac0e(0x296)]('--max-tool-iterations\x20<n>',a2_0x5aac0e(0x1ca),'4')[a2_0x5aac0e(0x296)]('--temperature\x20<n>',a2_0x5aac0e(0x1eb),a2_0x5aac0e(0x1ab))[a2_0x5aac0e(0x1df)](async(_0x1104af,_0x50e01d)=>{const _0xc488eb=a2_0x5aac0e,_0x4724ae=new LLMAgentCreateCommand(),_0x467d88=program['opts'](),_0x261487=await createTDXInstance(_0x467d88),_0x387f34=await _0x4724ae['run']({'options':{..._0x467d88,..._0x50e01d},'args':[_0x1104af],'tdx':_0x261487});process[_0xc488eb(0x29c)](_0x387f34);}),agentSyncCmd[a2_0x5aac0e(0x345)]('update\x20<agent-name>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x358))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x298),'Agent\x20name')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x208),'Agent\x20prompt/instructions')[a2_0x5aac0e(0x296)]('--description\x20<text>',a2_0x5aac0e(0x355))['option'](a2_0x5aac0e(0x19f),a2_0x5aac0e(0x30b))[a2_0x5aac0e(0x1df)](async(_0x4e989e,_0xe2a149)=>{const _0x3834c7=a2_0x5aac0e,_0x4cb357=new LLMAgentUpdateCommand(),_0x1366e6=program[_0x3834c7(0x36e)](),_0x301071=await createTDXInstance(_0x1366e6),_0x4755cc=await _0x4cb357[_0x3834c7(0x1dc)]({'options':{..._0x1366e6,..._0xe2a149},'args':[_0x4e989e],'tdx':_0x301071});process[_0x3834c7(0x29c)](_0x4755cc);}),agentSyncCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x291))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x385))[a2_0x5aac0e(0x1df)](async(_0x6011c8,_0xfa1ec5)=>{const _0x4d07dc=a2_0x5aac0e,_0x4d84d4=new LLMAgentDeleteCommand(),_0xef3bb3=program[_0x4d07dc(0x36e)](),_0x4703cb=await createTDXInstance(_0xef3bb3),_0x34a8f9=await _0x4d84d4[_0x4d07dc(0x1dc)]({'options':{..._0xef3bb3,..._0xfa1ec5},'args':[_0x6011c8],'tdx':_0x4703cb});process['exit'](_0x34a8f9);});export{program};export function runCLI(){const _0x2b30fe=a2_0x5aac0e;program[_0x2b30fe(0x1d3)](process[_0x2b30fe(0x2d0)]);!process['argv'][_0x2b30fe(0x222)](0x2)[_0x2b30fe(0x20c)]&&program[_0x2b30fe(0x1e8)]();const _0x57274d=packageJson['version'];process[_0x2b30fe(0x1cd)][_0x2b30fe(0x37b)]&&process[_0x2b30fe(0x2d0)][_0x2b30fe(0x20c)]>0x2&&!_0x57274d[_0x2b30fe(0x2c4)]('.dev')&&checkForUpdate(_0x57274d)[_0x2b30fe(0x3ad)](_0x4949f9=>{_0x4949f9&&displayUpdateNotification(_0x4949f9);})[_0x2b30fe(0x327)](()=>{});}
|
|
1
|
+
const a2_0x59d18d=a2_0x14e0;(function(_0x3aa36d,_0x38207e){const _0x52abcd=a2_0x14e0,_0x309202=_0x3aa36d();while(!![]){try{const _0x433b99=parseInt(_0x52abcd(0x303))/0x1+-parseInt(_0x52abcd(0x213))/0x2+parseInt(_0x52abcd(0x1cf))/0x3+-parseInt(_0x52abcd(0x284))/0x4*(parseInt(_0x52abcd(0x222))/0x5)+-parseInt(_0x52abcd(0x289))/0x6*(parseInt(_0x52abcd(0x313))/0x7)+parseInt(_0x52abcd(0x26a))/0x8+-parseInt(_0x52abcd(0x2c4))/0x9;if(_0x433b99===_0x38207e)break;else _0x309202['push'](_0x309202['shift']());}catch(_0x26d7bd){_0x309202['push'](_0x309202['shift']());}}}(a2_0x281c,0xdbfe5));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';function a2_0x281c(){const _0x9d8172=['Create\x20a\x20new\x20campaign','Customer\x20group\x20from\x20JSON\x20file','push\x20[parent_or_file]','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--include-retried','LLM\x20agent\x20management','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--tsv','requiredOption','--name\x20<new_name>','logLevel','HTML\x20template\x20content','--limit\x20<n>','join','describe','jsonl','-d,\x20--database\x20<database>','--add-attributes-file\x20<file>','Run\x20Trino\x20query\x20with\x20streaming\x20results','subcommandTerm','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Show\x20master\x20table\x20sample\x20data','after','list\x20[pattern]','command','Create\x20a\x20workspace','desc\x20[name]','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','fields\x20[parent_name]','list','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','includes','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--trace','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','result\x20<job-id>','description','--interval\x20<range>','-o,\x20--output\x20<dir>','error','Export\x20journey(s)\x20as\x20YAML\x20files','database','-p,\x20--profile\x20<name>','tdx','port','--reason\x20<text>','delete\x20<agent-name>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','replace','--type\x20<type>','models','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Resume\x20from\x20specific\x20task','connection','Clear\x20session\x20context','--dry-run','Override\x20project\x20name','11109056MlrXIi','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--system-prompt\x20<text>','Output\x20file\x20path\x20(default:\x20<name>.yml)','--add-behaviors-file\x20<file>','backup\x20<name>','Delete\x20a\x20workspace','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Add\x20behaviors\x20from\x20JSON\x20file','Folder\x20name\x20for\x20organization','-X,\x20--method\x20<method>','--llm-project\x20<name>','../package.json','help','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Editor\x20type','update\x20<name-or-id>','clone\x20[source]','Update\x20an\x20email\x20template','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','list\x20[project]','parent-segment','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','create','--html\x20<html>','84eviJqp','Show\x20segment\x20schema\x20(column\x20types)','Include\x20subtasks\x20in\x20tasks\x20output','subcommandDescription','argv','8594562YSVktk','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','log','agent','list\x20[path]','forEach','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','push\x20[project-name-or-dir]','required','--name\x20<new-name>','gitRevision','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Campaign\x20description','Attributes\x20as\x20JSON\x20string','repeat','Pause\x20a\x20running\x20journey','Resume\x20a\x20conversation\x20(shows\x20selector)','duplicate\x20<name-or-id>','site','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Workspace\x20management','Database\x20to\x20use\x20(overrides\x20context)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--jsonl','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','projects\x20[pattern]','Show\x20agent\x20details','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','-r,\x20--resume','restore\x20<folder>','Request\x20body\x20as\x20JSON\x20string','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','create\x20<name>','Agent\x20prompt/instructions','--max-tool-iterations\x20<n>','sessions\x20[project]','hook','--limit\x20<number>','Kill\x20a\x20job','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Include\x20retried\x20attempts\x20(for\x20list)','Read\x20request\x20body\x20from\x20file','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','preview\x20[file]','Agent\x20name','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','action','--no-proxy','0.7','Save\x20output\x20to\x20file','New\x20template\x20name','Resume\x20from\x20specific\x20task\x20(retry)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','-f,\x20--force','--full','--attribute\x20[name]','validate\x20[name]','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','4012893XOMLdE','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Describe\x20table\x20schema','--output\x20<file>','--from-task\x20<task>','Options:','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--clear','Data\x20connection\x20management\x20(for\x20activations/exports)','Attributes\x20from\x20JSON\x20file','Timezone\x20(e.g.,\x20America/Los_Angeles)','--include-subtasks','New\x20campaign\x20name','--params\x20<json>','_hidden','Open\x20segment\x20in\x20web\x20browser','JSON\x20columns\x20for\x20connector\x20(comma-separated)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--plaintext\x20<text>','Show\x20journey\x20statistics','--json','get','project','[options]\x20--\x20[claude-code-args...]','describe\x20[table]','Campaign\x20type\x20(email\x20or\x20push)','status','Workspace\x20name','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Delete\x20an\x20LLM\x20project','run\x20[name]','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','--agent\x20<name>','filter','List\x20journeys\x20in\x20current\x20context','--parent-folder\x20<name>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Show\x20segment\x20details\x20(alias\x20for\x20view)','Model\x20type\x20(default:\x20claude-4.5-sonnet)',',\x20version\x20','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Make\x20segment\x20invisible\x20(default:\x20visible)','llm','version','--last','--workspace\x20<name>','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Master\x20table\x20name','\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','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','json','New\x20workspace\x20name','tdx\x20','Workspace\x20name\x20(required)','tasks','Get\x20job\x20results','Behaviors\x20from\x20JSON\x20file','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Resume\x20a\x20paused\x20campaign','--prompt\x20<text>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','1516909dSjtNQ','workflows\x20[project]','argumentTerm','push\x20[path]','template','pull\x20[parent_or_file]','tables\x20[pattern]','Show\x20console\x20URLs','show\x20<job-id>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--skip-validation','Push\x20without\x20confirmation','Include\x20execution\x20statistics','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','auth','Reason\x20for\x20killing\x20the\x20attempt','7gcSftz','campaign','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Show\x20connection\x20details\x20by\x20name','-o,\x20--output\x20<folder>','Show\x20stats\x20for\x20specific\x20stage','--behaviors-file\x20<file>','Update\x20a\x20workspace','--max-depth\x20<depth>','--parent-segment\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','resume\x20<name-or-id>','push','debug','table','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--email-sender-id\x20<id>','--table','map','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','[attempt-id]','Commands:','Overwrite\x20local\x20changes\x20without\x20confirmation','Show\x20email\x20template\x20details','Workflow\x20project\x20management','update\x20<segment_name>','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Customer\x20group\x20as\x20JSON\x20string','retry\x20<session-id>','Unknown\x20action:\x20','\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','show\x20<folder_ref>','Agent\x20reference\x20(project-name/agent-name)','view\x20<name-or-path>','folders\x20<parent_name>','TRACE','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','registeredArguments','Database\x20to\x20query\x20(default:\x20information_schema)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Add\x20attributes\x20from\x20JSON\x20file','databases\x20[pattern]','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','profile','--behaviors\x20<json>','attempt','agents\x20[pattern]','opts','CDP\x20segment\x20management\x20commands','user','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Template\x20name','-w,\x20--web','information_schema','jobs','--stage\x20<name>','show\x20<name-or-id>','delete\x20<project-name-or-id>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','parse','AI-native\x20CLI\x20for\x20Treasure\x20Data','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Add\x20behaviors\x20as\x20JSON\x20string','List\x20all\x20users\x20in\x20the\x20account','run','optionDescription','--schedule-type\x20<type>','show\x20<name>','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','--type\x20<api_type>','users','exit','Read\x20query\x20from\x20file','Trino\x20catalog\x20(default:\x20td)','Parent\x20segment\x20management','Output\x20directory','validate\x20[file]','colorFn','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--yes','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--start-at\x20<datetime>','createAsync','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--version','use\x20<name>','--data\x20<data>','use\x20<path>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--no-color','name','[DEPRECATED]\x20Segment\x20folder\x20management','Revision\x20name\x20(default:\x20timestamp)','--temperature\x20<n>','padEnd','allowUnknownOption','then','journey','Usage:\x20','Show\x20only\x20master\x20table\x20validation','--debug','run\x20<workflow>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--table\x20<table>','delete\x20<name>','Database\x20management\x20commands','use\x20<project-name>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Output\x20file\x20path','Show\x20web\x20console\x20URLs\x20for\x20segments','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','desc','Behaviors\x20as\x20JSON\x20string','--schedule-option\x20<value>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','-y,\x20--yes','stdout','job','commands','launch\x20<name-or-id>','argument','update\x20<name>','Pause\x20a\x20campaign','segments\x20[path]','create\x20<segment_name>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','option','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--starter-message\x20<text>','tsv','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','DEBUG','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--port\x20<number>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','buildTime','--name\x20<text>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--rule-file\x20<file>','sonnet','GET','User\x20management\x20commands','Email\x20sender\x20ID\x20for\x20delivery','CDP\x20Journey\x20Orchestration\x20commands','segment','query\x20[sql]','Create\x20an\x20email\x20template','Plaintext\x20template\x20content','-r,\x20--recursive','allowExcessArguments','-1d','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','isTTY','-v,\x20--verbose','Updated\x20timezone','Name\x20for\x20the\x20new\x20project\x20(required)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--behavior\x20[name]','pull\x20[project]\x20[agent-name]','preAction','Campaign\x20management','format','Output\x20as\x20JSON','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','-c,\x20--continue','Launch\x20a\x20campaign','Output\x20as\x20JSON\x20Lines','connections','\x20-\x20built\x20','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--to\x20<timestamp>','-f,\x20--file\x20<path>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','kill\x20<job-id>','--description\x20<text>','Open\x20parent\x20segment\x20in\x20web\x20browser','sql\x20[name]','Maximum\x20recursion\x20depth\x20(default:\x2010)','\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','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Parent\x20segment\x20description','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','addHelpText','clear','parent','build-info.json','trino','claude-4.5-sonnet','--project\x20<name>','List\x20all\x20available\x20profiles','Add\x20attributes\x20as\x20JSON\x20string','chats','--in\x20<name>','pull\x20[name]','-H,\x20--header\x20<header>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--description\x20<desc>','--master','workspaces\x20[pattern]','Show\x20the\x20most\x20recent\x20chat','claude\x20[args...]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Workflow\x20session\x20management','4000','sql\x20[segment_name]','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Email\x20subject\x20template','[task-name]','--agent\x20<ref>','System\x20prompt/instructions\x20(default:\x20empty)','-u,\x20--use','Starter\x20message','--invisible','--status\x20<status>','--new','--revision\x20<revision>','4257633lbTfOF','--timezone\x20<tz>','create\x20<parent_name>\x20<folder_name>','--editor-type\x20<type>','Start\x20a\x20new\x20chat\x20session','Delete\x20an\x20email\x20template','Project\x20description','engage','Create\x20segment\x20folder','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','resume\x20<name-or-path>','--from\x20<timestamp>','hidden','Enable\x20verbose\x20logging','Open\x20journey\x20in\x20web\x20browser','Skip\x20validation\x20of\x20.dig\x20files','Skip\x20confirmation\x20prompt','Filtering\x20rule\x20as\x20JSON\x20string','Show\x20web\x20console\x20URLs\x20for\x20journeys','Resume\x20a\x20paused\x20journey','info\x20[segment_name]','LLM\x20project\x20management','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Updated\x20schedule\x20option','usage','length','show\x20[segment_name]','delete\x20<name-or-id>','retry','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','slice','outputHelp','view\x20[name]','Duplicate\x20a\x20campaign','Workspace\x20description','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Attempt\x20ID','show\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Set\x20or\x20show\x20parent\x20segment\x20context','--session\x20<id>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--kind\x20<type>','setup','trace','Authentication\x20management','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','List\x20available\x20LLM\x20models','activations\x20<segment_name>','--in\x20<database>','options','pause\x20<name-or-id>','--enriched','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Preview\x20operation\x20without\x20executing','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','workspace','Skip\x20population\x20counting','--name\x20<name>','--resume-from\x20<task>','set','--add-attributes\x20<json>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','pause\x20<name-or-path>','1750616AssxJG','--force','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Campaign\x20name','attempts\x20[project]','Include\x20retried\x20attempts','--include-stats','isArray','End\x20time\x20filter\x20(ISO\x208601\x20format)','--attributes\x20<json>','show\x20[table]','Arguments:','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Show\x20agent\x20chat\x20URLs','--subject\x20<subject>','159535RrWpBP','Output\x20folder\x20(default:\x20{project_name}.llm)','List\x20jobs','Skip\x20confirmation\x20prompts','padWidth','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--session-time\x20<time>','--folder\x20<name>','alias','commandDescription','download\x20<project-name>\x20[output-dir]'];a2_0x281c=function(){return _0x9d8172;};return a2_0x281c();}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{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-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';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}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x59d18d(0x352)](readFileSync(join(__dirname,a2_0x59d18d(0x276)),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0x59d18d(0x352)](readFileSync(join(__dirname,a2_0x59d18d(0x1b0)),'utf-8'));}catch{}if(process[a2_0x59d18d(0x288)][a2_0x59d18d(0x24f)](a2_0x59d18d(0x36f))){let versionOutput=a2_0x59d18d(0x2f9)+packageJson['version'];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo[a2_0x59d18d(0x293)]+')'),buildInfo[a2_0x59d18d(0x3a5)]&&(versionOutput+=a2_0x59d18d(0x3c7)+buildInfo['buildTime']),console[a2_0x59d18d(0x28b)](versionOutput),process['exit'](0x0);}const program=new Command();let description=a2_0x59d18d(0x353);buildInfo[a2_0x59d18d(0x293)]?description+=a2_0x59d18d(0x2eb)+packageJson[a2_0x59d18d(0x2ef)]+'\x20('+buildInfo[a2_0x59d18d(0x293)]+')':description+=a2_0x59d18d(0x2eb)+packageJson[a2_0x59d18d(0x2ef)];program[a2_0x59d18d(0x375)](a2_0x59d18d(0x25b))[a2_0x59d18d(0x254)](description),program[a2_0x59d18d(0x39b)](a2_0x59d18d(0x25a),a2_0x59d18d(0x373))['option']('--site\x20<site>',a2_0x59d18d(0x36a),'us01')[a2_0x59d18d(0x39b)]('--format\x20<format>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x324),a2_0x59d18d(0x33c))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2d8),a2_0x59d18d(0x3c9))['option'](a2_0x59d18d(0x2a0),a2_0x59d18d(0x3c8))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x235),a2_0x59d18d(0x399))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2c7),a2_0x59d18d(0x2bb))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2ae),a2_0x59d18d(0x3d5))[a2_0x59d18d(0x39b)]('--color','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x59d18d(0x39b)](a2_0x59d18d(0x374),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3b7),a2_0x59d18d(0x1de),![])[a2_0x59d18d(0x39b)](a2_0x59d18d(0x37f),a2_0x59d18d(0x381))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x251),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')['option']('--timeout\x20<seconds>','Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x268),a2_0x59d18d(0x209),![])[a2_0x59d18d(0x39b)]('-y,\x20--yes',a2_0x59d18d(0x225),![])[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1f9),a2_0x59d18d(0x2ff))[a2_0x59d18d(0x39b)]('-d,\x20--database\x20<name>',a2_0x59d18d(0x29e))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1b7),a2_0x59d18d(0x39c))['option'](a2_0x59d18d(0x31c),a2_0x59d18d(0x31d))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x275),a2_0x59d18d(0x21f)),program['configureHelp']({'formatHelp':(_0x3cd696,_0x2a3aa3)=>{const _0x4bf0b=a2_0x59d18d,_0xc92f5d=_0x2a3aa3[_0x4bf0b(0x226)](_0x3cd696,_0x2a3aa3),_0x1a0435=0x2,_0x5c66f0=0x2;function _0x5fc0b7(_0x56a4bc){const _0x3fa339=_0x4bf0b,_0x484206=_0x56a4bc;return!!(_0x484206[_0x3fa339(0x2d2)]||_0x484206[_0x3fa339(0x1dd)]);}function _0x40ec92(_0x484b4b,_0xaaacb8){const _0x4cb535=_0x4bf0b;if(_0xaaacb8){const _0x450576=''+_0x484b4b[_0x4cb535(0x379)](_0xc92f5d+_0x5c66f0)+_0xaaacb8;return _0x450576;}return _0x484b4b;}function _0x46e59b(_0x42af24){const _0x3695ab=_0x4bf0b;return _0x42af24[_0x3695ab(0x23b)]('\x0a')[_0x3695ab(0x260)](/^/gm,'\x20'[_0x3695ab(0x297)](_0x1a0435));}const _0x535b36=[];_0x535b36[_0x4bf0b(0x31f)](_0x4bf0b(0x37d)+_0x2a3aa3['commandUsage'](_0x3cd696));const _0x469b65=_0x2a3aa3[_0x4bf0b(0x22c)](_0x3cd696);_0x469b65&&(_0x535b36['push'](''),_0x535b36[_0x4bf0b(0x31f)](_0x469b65));const _0x559895=_0x3cd696[_0x4bf0b(0x392)][_0x4bf0b(0x2e5)](_0x2e33a7=>!_0x5fc0b7(_0x2e33a7));if(_0x559895[_0x4bf0b(0x1ea)]>0x0){if(_0x3cd696[_0x4bf0b(0x375)]()===_0x4bf0b(0x25b)){const _0xb122d9=_0x3cd696[_0x4bf0b(0x346)](),_0x2a3091=!_0xb122d9['noColor']&&process[_0x4bf0b(0x390)][_0x4bf0b(0x3b6)],_0x3bf90a=COMMAND_CATEGORIES,_0x1f116b=(_0x13b1fe,_0x1b670f)=>_0x2a3091?_0x1b670f(_0x13b1fe):_0x13b1fe,_0x4993c1=new Map();_0x559895[_0x4bf0b(0x28e)](_0x349c63=>{const _0xb65375=_0x4bf0b;_0x4993c1[_0xb65375(0x20f)](_0x349c63['name'](),_0x349c63);}),_0x3bf90a['forEach'](_0x74651e=>{const _0x31e327=_0x4bf0b,_0x317635=_0x74651e[_0x31e327(0x392)]['flatMap'](_0x4b891a=>_0x4993c1[_0x31e327(0x2d9)](_0x4b891a)??[]);if(_0x317635[_0x31e327(0x1ea)]>0x0){_0x535b36[_0x31e327(0x31f)](''),_0x535b36[_0x31e327(0x31f)](_0x1f116b(_0x74651e[_0x31e327(0x375)]+':',_0x74651e[_0x31e327(0x366)]));const _0xfef46e=_0x317635[_0x31e327(0x325)](_0x465ec4=>{const _0x39c266=_0x31e327,_0x41da61=_0x2a3aa3[_0x39c266(0x241)](_0x465ec4),_0x3c6e40=_0x2a3aa3[_0x39c266(0x287)](_0x465ec4);return _0x40ec92(_0x41da61,_0x3c6e40);});_0x535b36[_0x31e327(0x31f)](_0x46e59b(_0xfef46e));}}),_0x535b36[_0x4bf0b(0x31f)](''),_0x535b36['push'](_0x4bf0b(0x215));}else{const _0x94a83b=_0x559895[_0x4bf0b(0x325)](_0x5ccf04=>{const _0x5a4d14=_0x4bf0b,_0x1ae12e=_0x2a3aa3[_0x5a4d14(0x241)](_0x5ccf04),_0x356434=_0x2a3aa3[_0x5a4d14(0x287)](_0x5ccf04);return _0x40ec92(_0x1ae12e,_0x356434);});_0x535b36[_0x4bf0b(0x31f)](''),_0x535b36[_0x4bf0b(0x31f)](_0x4bf0b(0x32a)),_0x535b36[_0x4bf0b(0x31f)](_0x46e59b(_0x94a83b));}}const _0x36c047=_0x3cd696[_0x4bf0b(0x205)][_0x4bf0b(0x2e5)](_0x3fd3b2=>!_0x5fc0b7(_0x3fd3b2));if(_0x36c047[_0x4bf0b(0x1ea)]>0x0){const _0x1db25d=_0x36c047[_0x4bf0b(0x325)](_0x5408b9=>{const _0x7d7d19=_0x4bf0b,_0x444664=_0x2a3aa3['optionTerm'](_0x5408b9),_0x2e870d=_0x2a3aa3[_0x7d7d19(0x35a)](_0x5408b9);return _0x40ec92(_0x444664,_0x2e870d);});_0x535b36[_0x4bf0b(0x31f)](''),_0x535b36[_0x4bf0b(0x31f)](_0x4bf0b(0x2c9)),_0x535b36[_0x4bf0b(0x31f)](_0x46e59b(_0x1db25d));}const _0x253dd6=(_0x3cd696[_0x4bf0b(0x33a)]||[])[_0x4bf0b(0x2e5)](_0x4da084=>!_0x5fc0b7(_0x4da084));if(_0x253dd6[_0x4bf0b(0x1ea)]>0x0){const _0x55f6b7=_0x253dd6['map'](_0x41536d=>{const _0x16ed2d=_0x4bf0b,_0x2740e2=_0x2a3aa3[_0x16ed2d(0x305)](_0x41536d),_0x378330=_0x2a3aa3['argumentDescription'](_0x41536d);return _0x40ec92(_0x2740e2,_0x378330);});_0x535b36['push'](''),_0x535b36[_0x4bf0b(0x31f)](_0x4bf0b(0x21e)),_0x535b36[_0x4bf0b(0x31f)](_0x46e59b(_0x55f6b7));}return _0x535b36[_0x4bf0b(0x23b)]('\x0a');},'subcommandTerm':_0x4b1c75=>{const _0x118194=a2_0x59d18d,_0x1ef47c=(_0x4b1c75['registeredArguments']||[])['map'](_0x138e72=>_0x138e72[_0x118194(0x291)]?'<'+_0x138e72['name']()+'>':'['+_0x138e72[_0x118194(0x375)]()+']')[_0x118194(0x23b)]('\x20'),_0x373e92=_0x4b1c75['aliases'](),_0x1cbea4=_0x373e92[_0x118194(0x1ea)]>0x0?_0x4b1c75[_0x118194(0x375)]()+',\x20'+_0x373e92['join'](',\x20'):_0x4b1c75[_0x118194(0x375)]();return _0x1ef47c?_0x1cbea4+'\x20'+_0x1ef47c:_0x1cbea4;}}),program[a2_0x59d18d(0x2ad)](a2_0x59d18d(0x3bd),_0x5b23f7=>{const _0x1c04cc=a2_0x59d18d,_0x1bdf3e=_0x5b23f7[_0x1c04cc(0x346)]();if(!_0x1bdf3e['format']){if(_0x1bdf3e[_0x1c04cc(0x321)])_0x1bdf3e[_0x1c04cc(0x3bf)]='table';else{if(_0x1bdf3e[_0x1c04cc(0x2f7)])_0x1bdf3e[_0x1c04cc(0x3bf)]='json';else{if(_0x1bdf3e[_0x1c04cc(0x23d)])_0x1bdf3e['format']=_0x1c04cc(0x23d);else _0x1bdf3e[_0x1c04cc(0x39e)]&&(_0x1bdf3e[_0x1c04cc(0x3bf)]=_0x1c04cc(0x39e));}}}_0x1bdf3e['in']&&!_0x1bdf3e[_0x1c04cc(0x259)]&&(_0x1bdf3e['database']=_0x1bdf3e['in']);if(_0x1bdf3e[_0x1c04cc(0x1fd)])_0x1bdf3e[_0x1c04cc(0x238)]=LogLevel[_0x1c04cc(0x338)];else{if(_0x1bdf3e[_0x1c04cc(0x320)])_0x1bdf3e[_0x1c04cc(0x238)]=LogLevel[_0x1c04cc(0x3a1)];else _0x1bdf3e[_0x1c04cc(0x238)]===undefined&&(_0x1bdf3e[_0x1c04cc(0x238)]=LogLevel['INFO']);}});async function createTDXInstance(_0x30a49d){const _0x228b92=a2_0x59d18d,_0x9b478=await GlobalContext[_0x228b92(0x36c)](_0x30a49d);return _0x9b478['injectIntoOptions'](_0x30a49d),TDX[_0x228b92(0x282)]({'site':_0x9b478[_0x228b92(0x29b)],'apiKey':_0x9b478['apiKey'],'logLevel':_0x9b478[_0x228b92(0x238)],'profile':_0x9b478[_0x228b92(0x342)]});}function a2_0x14e0(_0xef968d,_0x35fc68){_0xef968d=_0xef968d-0x1ae;const _0x281cf3=a2_0x281c();let _0x14e01a=_0x281cf3[_0xef968d];return _0x14e01a;}const databaseCmd=program['command'](a2_0x59d18d(0x259))[a2_0x59d18d(0x22b)]('db')[a2_0x59d18d(0x254)](a2_0x59d18d(0x385)),databaseListAction=async(_0x189f88,_0x173ec7)=>{const _0x489046=a2_0x59d18d,_0x57bce0=new DatabasesCommand(),_0x2c413b=program[_0x489046(0x346)](),_0x239f99=await createTDXInstance(_0x2c413b),_0x3ef3ea=await _0x57bce0[_0x489046(0x359)]({'options':{..._0x2c413b,..._0x173ec7},'args':_0x189f88?[_0x189f88]:[],'tdx':_0x239f99});process['exit'](_0x3ef3ea);};databaseCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x247))[a2_0x59d18d(0x254)](a2_0x59d18d(0x28f))[a2_0x59d18d(0x2b8)](databaseListAction),program['command'](a2_0x59d18d(0x33f),{'hidden':!![]})[a2_0x59d18d(0x254)](a2_0x59d18d(0x2a4))[a2_0x59d18d(0x2b8)](databaseListAction),program[a2_0x59d18d(0x248)]('chat\x20[message...]')['description'](a2_0x59d18d(0x340))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1c7),a2_0x59d18d(0x335))['option'](a2_0x59d18d(0x1cd),a2_0x59d18d(0x1d3))[a2_0x59d18d(0x2b8)](async(_0x31d21c,_0x46897c)=>{const _0x3a514a=a2_0x59d18d,_0x7602b2=new ChatCommand(),_0x27c1f2=program[_0x3a514a(0x346)](),_0x3b8b52=await createTDXInstance(_0x27c1f2),_0x1b52ea=await _0x7602b2[_0x3a514a(0x359)]({'options':{..._0x27c1f2,..._0x46897c},'args':_0x31d21c,'tdx':_0x3b8b52});process[_0x3a514a(0x360)](_0x1b52ea);});const apiCmd=program['command']('api\x20[endpoint]')['summary'](a2_0x59d18d(0x24b))['addHelpText'](a2_0x59d18d(0x246),a2_0x59d18d(0x3d4))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x274),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x59d18d(0x3aa))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x371),a2_0x59d18d(0x2a7))['option'](a2_0x59d18d(0x3cd),a2_0x59d18d(0x2b2))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1b9),a2_0x59d18d(0x1ba),(_0x16606c,_0x2d95db)=>{return _0x2d95db?[..._0x2d95db,_0x16606c]:[_0x16606c];})[a2_0x59d18d(0x39b)](a2_0x59d18d(0x35e),a2_0x59d18d(0x1d8),'td')[a2_0x59d18d(0x2b8)](async(_0x218b70,_0x5158bc)=>{const _0x4aea10=a2_0x59d18d;if(!_0x218b70){apiCmd['help']();return;}const _0x404467=new ApiCommand(),_0x277032=program[_0x4aea10(0x346)](),_0x3f5753=await createTDXInstance(_0x277032),_0x4ba703=await _0x404467[_0x4aea10(0x359)]({'options':{..._0x277032,..._0x5158bc},'args':[_0x218b70],'tdx':_0x3f5753});process['exit'](_0x4ba703);}),tableCmd=program[a2_0x59d18d(0x248)](a2_0x59d18d(0x321))['description']('Table\x20management\x20commands'),tableListAction=async(_0xdd8b1a,_0x227aca)=>{const _0x5f052a=a2_0x59d18d,_0xa0a0f3=new TablesCommand(),_0x3a36f6=program[_0x5f052a(0x346)](),_0x1efb5c=await createTDXInstance(_0x3a36f6);_0x227aca['in']&&(_0x227aca['database']=_0x227aca['in']);const _0x525784=await _0xa0a0f3[_0x5f052a(0x359)]({'options':{..._0x3a36f6,..._0x227aca},'args':_0xdd8b1a?[_0xdd8b1a]:[],'tdx':_0x1efb5c});process[_0x5f052a(0x360)](_0x525784);};tableCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x247))[a2_0x59d18d(0x254)](a2_0x59d18d(0x32f))[a2_0x59d18d(0x39b)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x59d18d(0x204),a2_0x59d18d(0x39c))[a2_0x59d18d(0x2b8)](tableListAction),program['command'](a2_0x59d18d(0x309),{'hidden':!![]})[a2_0x59d18d(0x254)](a2_0x59d18d(0x2d5))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x23e),a2_0x59d18d(0x20a))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x204),a2_0x59d18d(0x39c))[a2_0x59d18d(0x2b8)](tableListAction),program['command'](a2_0x59d18d(0x21d))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2b7))['option'](a2_0x59d18d(0x23e),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x204),a2_0x59d18d(0x39c))[a2_0x59d18d(0x2b8)](async(_0x3aa4b8,_0x26c733)=>{const _0x3e639f=a2_0x59d18d,_0x328697=new ShowCommand(),_0x4cb331=program[_0x3e639f(0x346)](),_0x2e0b35=await createTDXInstance(_0x4cb331);_0x26c733['in']&&(_0x26c733['database']=_0x26c733['in']);const _0x134ce0=await _0x328697[_0x3e639f(0x359)]({'options':{..._0x4cb331,..._0x26c733},'args':_0x3aa4b8?[_0x3aa4b8]:[],'tdx':_0x2e0b35});process[_0x3e639f(0x360)](_0x134ce0);}),program[a2_0x59d18d(0x248)](a2_0x59d18d(0x2dc))[a2_0x59d18d(0x22b)](a2_0x59d18d(0x38b))['description'](a2_0x59d18d(0x2c6))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x23e),a2_0x59d18d(0x2c5))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x204),a2_0x59d18d(0x39c))[a2_0x59d18d(0x2b8)](async(_0xe41478,_0x596d27)=>{const _0x3f6c53=a2_0x59d18d,_0x4d23a5=new DescribeCommand(),_0x5ea50e=program['opts'](),_0x8d8261=await createTDXInstance(_0x5ea50e);_0x596d27['in']&&(_0x596d27[_0x3f6c53(0x259)]=_0x596d27['in']);const _0x2cd7ea=await _0x4d23a5['run']({'options':{..._0x5ea50e,..._0x596d27},'args':_0xe41478?[_0xe41478]:[],'tdx':_0x8d8261});process['exit'](_0x2cd7ea);}),program[a2_0x59d18d(0x248)](a2_0x59d18d(0x3af))[a2_0x59d18d(0x254)](a2_0x59d18d(0x240))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x23e),a2_0x59d18d(0x33b))[a2_0x59d18d(0x39b)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x59d18d(0x39b)]('--catalog\x20<catalog>',a2_0x59d18d(0x362))['option'](a2_0x59d18d(0x3cd),'Read\x20SQL\x20query\x20from\x20file')['option']('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x59d18d(0x2b8)](async(_0x2d489e,_0x1a926b)=>{const _0x3b70fb=a2_0x59d18d,_0x353bbe=new QueryCommand(),_0x51cef4=program[_0x3b70fb(0x346)](),_0x3b96f9=await createTDXInstance(_0x51cef4);_0x1a926b['in']&&(_0x1a926b['database']=_0x1a926b['in']);const _0x3efa79=await _0x353bbe['run']({'options':{..._0x51cef4,..._0x1a926b},'args':_0x2d489e?[_0x2d489e]:[],'tdx':_0x3b96f9});process['exit'](_0x3efa79);});const segmentCmd=program[a2_0x59d18d(0x248)](a2_0x59d18d(0x3ae))[a2_0x59d18d(0x22b)]('sg')[a2_0x59d18d(0x254)](a2_0x59d18d(0x347)),segmentListAction=async(_0x4b6507,_0x1af2da)=>{const _0x275c8e=a2_0x59d18d,_0x5e9bb7=new SegmentsCommand(),_0x587769=program[_0x275c8e(0x346)](),_0x1bec21=await createTDXInstance(_0x587769),_0x5a17b6=await _0x5e9bb7[_0x275c8e(0x359)]({'options':{..._0x587769,..._0x1af2da},'args':_0x4b6507?[_0x4b6507]:[],'tdx':_0x1bec21});process[_0x275c8e(0x360)](_0x5a17b6);};segmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x28d))['description'](a2_0x59d18d(0x35d))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3b2),a2_0x59d18d(0x1da))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x31b),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34b),'Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x59d18d(0x2b8)](segmentListAction),program[a2_0x59d18d(0x248)](a2_0x59d18d(0x397),{'hidden':!![]})[a2_0x59d18d(0x254)](a2_0x59d18d(0x2a1))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3b2),a2_0x59d18d(0x1da))['option']('--max-depth\x20<depth>',a2_0x59d18d(0x3d3),'10')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34b),a2_0x59d18d(0x389))['action'](segmentListAction),segmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x372),{'hidden':!![]})[a2_0x59d18d(0x254)](a2_0x59d18d(0x2e0))[a2_0x59d18d(0x2b8)](async(_0x4e2567,_0x2ba8ed)=>{const _0x5eb5fc=a2_0x59d18d,_0x4b7db4=new SegmentUseCommand(),_0x443c38=program['opts'](),_0x458064=await createTDXInstance(_0x443c38),_0x26acc6=await _0x4b7db4[_0x5eb5fc(0x359)]({'options':{..._0x443c38,..._0x2ba8ed},'args':[_0x4e2567],'tdx':_0x458064});process['exit'](_0x26acc6);});const segmentViewAction=async(_0x71de35,_0x5c535d)=>{const _0x3b61c7=a2_0x59d18d,_0x20dec5=new SegmentViewCommand(),_0x17c742=program[_0x3b61c7(0x346)](),_0x50bcb3=await createTDXInstance(_0x17c742),_0x4d5f26=await _0x20dec5['run']({'options':{..._0x17c742,..._0x5c535d},'args':_0x71de35?[_0x71de35]:[],'tdx':_0x50bcb3});process['exit'](_0x4d5f26);};segmentCmd['command']('view\x20[segment_name]')[a2_0x59d18d(0x254)](a2_0x59d18d(0x3a2))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34b),a2_0x59d18d(0x2d3))[a2_0x59d18d(0x2b8)](segmentViewAction),segmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1e5),{'hidden':!![]})['alias'](a2_0x59d18d(0x23c))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34b),a2_0x59d18d(0x2d3))['description'](a2_0x59d18d(0x2e9))[a2_0x59d18d(0x2b8)](segmentViewAction),segmentCmd[a2_0x59d18d(0x248)]('desc\x20[segment_name]')[a2_0x59d18d(0x254)](a2_0x59d18d(0x285))[a2_0x59d18d(0x2b8)](async(_0x4f4e4c,_0x2e4c4b)=>{const _0x233f29=a2_0x59d18d,_0xa6dd8e=new SegmentDescCommand(),_0x5a59cb=program['opts'](),_0x15d50b=await createTDXInstance(_0x5a59cb),_0xe43d93=await _0xa6dd8e[_0x233f29(0x359)]({'options':{..._0x5a59cb,..._0x2e4c4b},'args':_0x4f4e4c?[_0x4f4e4c]:[],'tdx':_0x15d50b});process[_0x233f29(0x360)](_0xe43d93);}),segmentCmd['command'](a2_0x59d18d(0x1eb))[a2_0x59d18d(0x254)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x59d18d(0x2b8)](async(_0x5e2263,_0x3d70e0)=>{const _0x54533c=a2_0x59d18d,_0x2a8189=new SegmentShowCommand(),_0x4b0738=program[_0x54533c(0x346)](),_0x369829=await createTDXInstance(_0x4b0738),_0x5d82b0=await _0x2a8189[_0x54533c(0x359)]({'options':{..._0x4b0738,..._0x3d70e0},'args':_0x5e2263?[_0x5e2263]:[],'tdx':_0x369829});process[_0x54533c(0x360)](_0x5d82b0);}),segmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x337),{'hidden':!![]})['description'](a2_0x59d18d(0x1ee))[a2_0x59d18d(0x2b8)](async(_0x477a79,_0x10914b)=>{const _0x25a2c5=a2_0x59d18d,_0x1af232=new SegmentFolderListCommand(),_0x3fcbcf=program[_0x25a2c5(0x346)](),_0x1b146d=await createTDXInstance(_0x3fcbcf),_0x51a893=await _0x1af232[_0x25a2c5(0x359)]({'options':{..._0x3fcbcf,..._0x10914b},'args':[_0x477a79],'tdx':_0x1b146d});process[_0x25a2c5(0x360)](_0x51a893);});const folderCmd=segmentCmd[a2_0x59d18d(0x248)]('folder',{'hidden':!![]})[a2_0x59d18d(0x254)](a2_0x59d18d(0x376));folderCmd['command'](a2_0x59d18d(0x334))['description']('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')['action'](async(_0x3a2e58,_0x5b30c1)=>{const _0x582a6d=a2_0x59d18d,_0xfd038e=new SegmentFolderShowCommand(),_0x4a4029=program[_0x582a6d(0x346)](),_0x241fd6=await createTDXInstance(_0x4a4029),_0x30ae22=await _0xfd038e[_0x582a6d(0x359)]({'options':{..._0x4a4029,..._0x5b30c1},'args':[_0x3a2e58],'tdx':_0x241fd6});process[_0x582a6d(0x360)](_0x30ae22);}),segmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1c3))['description'](a2_0x59d18d(0x1e7))[a2_0x59d18d(0x2b8)](async(_0x4d79be,_0x12a412)=>{const _0x155aa1=a2_0x59d18d,_0x4a8ae9=new SegmentSQLCommand(),_0x22f990=program[_0x155aa1(0x346)](),_0xa695d3=await createTDXInstance(_0x22f990),_0x52505d=await _0x4a8ae9[_0x155aa1(0x359)]({'options':{..._0x22f990,..._0x12a412},'args':_0x4d79be?[_0x4d79be]:[],'tdx':_0xa695d3});process[_0x155aa1(0x360)](_0x52505d);}),segmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x24c))[a2_0x59d18d(0x254)](a2_0x59d18d(0x3ce))[a2_0x59d18d(0x2b8)](async(_0x387179,_0x1eda9)=>{const _0x78b1d3=a2_0x59d18d,_0x5d5f4a=new SegmentFieldsCommand(),_0xbe363b=program[_0x78b1d3(0x346)](),_0x1a5241=await createTDXInstance(_0xbe363b),_0x1047db=await _0x5d5f4a[_0x78b1d3(0x359)]({'options':{..._0xbe363b,..._0x1eda9},'args':_0x387179?[_0x387179]:[],'tdx':_0x1a5241});process[_0x78b1d3(0x360)](_0x1047db);}),segmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x308))['description']('Pull\x20child\x20segments\x20to\x20YAML\x20files')['option'](a2_0x59d18d(0x38f),a2_0x59d18d(0x225))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x268),a2_0x59d18d(0x227))[a2_0x59d18d(0x2b8)](async(_0x4ef915,_0x46e93c)=>{const _0x521846=a2_0x59d18d,_0x417b09=new SegmentPullCommand(),_0x3ddf0f=program[_0x521846(0x346)](),_0x1f6f59=await createTDXInstance(_0x3ddf0f),_0x51e34a=await _0x417b09[_0x521846(0x359)]({'options':{..._0x3ddf0f,..._0x46e93c},'args':_0x4ef915?[_0x4ef915]:[],'tdx':_0x1f6f59});process[_0x521846(0x360)](_0x51e34a);}),segmentCmd['command'](a2_0x59d18d(0x230))[a2_0x59d18d(0x254)](a2_0x59d18d(0x25f))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x38f),'Skip\x20confirmation\x20prompts')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x268),a2_0x59d18d(0x227))[a2_0x59d18d(0x39b)]('--delete',a2_0x59d18d(0x33d))[a2_0x59d18d(0x2b8)](async(_0x352f26,_0x94d44c)=>{const _0x45e3f5=a2_0x59d18d,_0x3aa87a=new SegmentPushCommand(),_0x2769fd=program[_0x45e3f5(0x346)](),_0xc0d04d=await createTDXInstance(_0x2769fd),_0x7065c3=await _0x3aa87a[_0x45e3f5(0x359)]({'options':{..._0x2769fd,..._0x94d44c},'args':_0x352f26?[_0x352f26]:[],'tdx':_0xc0d04d});process[_0x45e3f5(0x360)](_0x7065c3);}),segmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x398),{'hidden':!![]})[a2_0x59d18d(0x254)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3d0),'Segment\x20description')['option']('--rule\x20<json>',a2_0x59d18d(0x1e2))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3a8),'Filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x59d18d(0x22a),a2_0x59d18d(0x273))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1fb),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')['option'](a2_0x59d18d(0x1cb),a2_0x59d18d(0x2ed))[a2_0x59d18d(0x39b)]('--no-count-population',a2_0x59d18d(0x20c))[a2_0x59d18d(0x2b8)](async(_0x35f10b,_0x5550d7)=>{const _0x57502b=a2_0x59d18d,_0x4533c5=new SegmentCreateCommand(),_0x3107d3=program['opts'](),_0x3c7c76=await createTDXInstance(_0x3107d3),_0xba70b1=await _0x4533c5[_0x57502b(0x359)]({'options':{..._0x3107d3,..._0x5550d7},'args':[_0x35f10b],'tdx':_0x3c7c76});process[_0x57502b(0x360)](_0xba70b1);}),segmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x32e),{'hidden':!![]})[a2_0x59d18d(0x254)](a2_0x59d18d(0x3cb))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x237),'New\x20segment\x20name')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3d0),'Updated\x20description')[a2_0x59d18d(0x39b)]('--rule\x20<json>',a2_0x59d18d(0x3d6))['option']('--rule-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x22a),'Move\x20to\x20folder')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1fb),a2_0x59d18d(0x2ec))['action'](async(_0x29ee72,_0x8c9af4)=>{const _0x1bdf26=a2_0x59d18d,_0x4393ab=new SegmentUpdateCommand(),_0x2fd834=program['opts'](),_0x2f19ae=await createTDXInstance(_0x2fd834),_0x3e5577=await _0x4393ab[_0x1bdf26(0x359)]({'options':{..._0x2fd834,..._0x8c9af4},'args':[_0x29ee72],'tdx':_0x2f19ae});process[_0x1bdf26(0x360)](_0x3e5577);});const parentCmd=segmentCmd['command'](a2_0x59d18d(0x1af),{'hidden':!![]})[a2_0x59d18d(0x254)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x1baae7,_0x498b07)=>{const _0x1b6dc0=a2_0x59d18d,_0x437935=new ParentSegmentListCommand(),_0x43e284=program['opts'](),_0x13ab08=await createTDXInstance(_0x43e284),_0x210b36=await _0x437935[_0x1b6dc0(0x359)]({'options':{..._0x43e284,..._0x498b07},'args':_0x1baae7?[_0x1baae7]:[],'tdx':_0x13ab08});process[_0x1b6dc0(0x360)](_0x210b36);};parentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x247))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2b3))[a2_0x59d18d(0x2b8)](parentListAction),segmentCmd[a2_0x59d18d(0x248)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x59d18d(0x254)](a2_0x59d18d(0x2b4))[a2_0x59d18d(0x2b8)](parentListAction),parentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1b8))['description'](a2_0x59d18d(0x2b0))[a2_0x59d18d(0x39b)]('-o,\x20--output\x20<file>',a2_0x59d18d(0x26d))['option'](a2_0x59d18d(0x38f),'Skip\x20confirmation\x20prompt')[a2_0x59d18d(0x2b8)](async(_0x4f32f2,_0x5271c8)=>{const _0x203dc8=a2_0x59d18d,_0x415c7c=new ParentSegmentPullCommand(),_0x4a14ea=program[_0x203dc8(0x346)](),_0x81044d=await createTDXInstance(_0x4a14ea),_0x1bc859=await _0x415c7c[_0x203dc8(0x359)]({'options':{..._0x4a14ea,..._0x5271c8},'args':_0x4f32f2?[_0x4f32f2]:[],'tdx':_0x81044d});process[_0x203dc8(0x360)](_0x1bc859);}),parentCmd[a2_0x59d18d(0x248)]('push\x20[file]')[a2_0x59d18d(0x254)](a2_0x59d18d(0x200))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x38f),a2_0x59d18d(0x1e1))[a2_0x59d18d(0x2b8)](async(_0x4b3867,_0x3bdf9b)=>{const _0x186e73=a2_0x59d18d,_0x3df068=new ParentSegmentPushCommand(),_0x3beadb=program[_0x186e73(0x346)](),_0x52d7a6=await createTDXInstance(_0x3beadb),_0x230e0e=await _0x3df068[_0x186e73(0x359)]({'options':{..._0x3beadb,..._0x3bdf9b},'args':_0x4b3867?[_0x4b3867]:[],'tdx':_0x52d7a6});process[_0x186e73(0x360)](_0x230e0e);}),parentCmd['command'](a2_0x59d18d(0x365))[a2_0x59d18d(0x254)](a2_0x59d18d(0x211))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1bc),a2_0x59d18d(0x37e))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2c1),a2_0x59d18d(0x39a))['option'](a2_0x59d18d(0x3bb),a2_0x59d18d(0x1f7))['option'](a2_0x59d18d(0x207),a2_0x59d18d(0x3c1))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x255),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x59d18d(0x2b8)](async(_0x307de5,_0x388044)=>{const _0x1ec1db=a2_0x59d18d,_0x37514f=new ParentSegmentValidateCommand(),_0x5c7275=program[_0x1ec1db(0x346)](),_0x5f2a74=await createTDXInstance(_0x5c7275),_0xc5549e=await _0x37514f[_0x1ec1db(0x359)]({'options':{..._0x5c7275,..._0x388044},'args':_0x307de5?[_0x307de5]:[],'tdx':_0x5f2a74});process[_0x1ec1db(0x360)](_0xc5549e);}),parentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x2b5))['description'](a2_0x59d18d(0x356))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1bc),'Show\x20master\x20table\x20sample\x20data')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2c1),a2_0x59d18d(0x244))[a2_0x59d18d(0x39b)]('--behavior\x20[name]',a2_0x59d18d(0x3a7))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x207),a2_0x59d18d(0x3a4))[a2_0x59d18d(0x39b)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x59d18d(0x2b8)](async(_0x2273c8,_0x3beb10)=>{const _0xdb0a89=a2_0x59d18d,_0x2ad6aa=new ParentSegmentPreviewCommand(),_0x25374c=program['opts'](),_0x2bec15=await createTDXInstance(_0x25374c),_0x1ae672=await _0x2ad6aa[_0xdb0a89(0x359)]({'options':{..._0x25374c,..._0x3beb10},'args':_0x2273c8?[_0x2273c8]:[],'tdx':_0x2bec15});process['exit'](_0x1ae672);}),parentCmd['command'](a2_0x59d18d(0x2e2))[a2_0x59d18d(0x254)](a2_0x59d18d(0x3ca))[a2_0x59d18d(0x39b)]('-y,\x20--yes',a2_0x59d18d(0x1e1))[a2_0x59d18d(0x2b8)](async(_0x3e84d2,_0x506542)=>{const _0x974780=a2_0x59d18d,_0x254be9=new ParentSegmentRunCommand(),_0x1a8443=program[_0x974780(0x346)](),_0x2afe11=await createTDXInstance(_0x1a8443),_0xa35b02=await _0x254be9['run']({'options':{..._0x1a8443,..._0x506542},'args':_0x3e84d2?[_0x3e84d2]:[],'tdx':_0x2afe11});process[_0x974780(0x360)](_0xa35b02);});const parentSegmentCmd=program['command'](a2_0x59d18d(0x27f))[a2_0x59d18d(0x22b)]('ps')[a2_0x59d18d(0x254)](a2_0x59d18d(0x363));parentSegmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x247))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2b3))['action'](parentListAction),parentSegmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1b8))[a2_0x59d18d(0x254)](a2_0x59d18d(0x234))[a2_0x59d18d(0x39b)]('-o,\x20--output\x20<file>',a2_0x59d18d(0x388))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x38f),a2_0x59d18d(0x1e1))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1c9),a2_0x59d18d(0x38e))[a2_0x59d18d(0x2b8)](async(_0x44b75d,_0x18cf78)=>{const _0x7a5ec9=a2_0x59d18d,_0x37e34a=new ParentSegmentPullCommand(),_0x27a10b=program[_0x7a5ec9(0x346)](),_0x1b6270=await createTDXInstance(_0x27a10b),_0x390c75=await _0x37e34a[_0x7a5ec9(0x359)]({'options':{..._0x27a10b,..._0x18cf78},'args':_0x44b75d?[_0x44b75d]:[],'tdx':_0x1b6270});process[_0x7a5ec9(0x360)](_0x390c75);}),parentSegmentCmd[a2_0x59d18d(0x248)]('push\x20[name]')[a2_0x59d18d(0x254)](a2_0x59d18d(0x339))['option'](a2_0x59d18d(0x38f),a2_0x59d18d(0x1e1))['action'](async(_0x46978f,_0x3eb7d6)=>{const _0x33d225=a2_0x59d18d,_0x5479fe=new ParentSegmentPushCommand(),_0x3a4b20=program[_0x33d225(0x346)](),_0x56e334=await createTDXInstance(_0x3a4b20),_0x2d62e2=await _0x5479fe['run']({'options':{..._0x3a4b20,..._0x3eb7d6},'args':_0x46978f?[_0x46978f]:[],'tdx':_0x56e334});process[_0x33d225(0x360)](_0x2d62e2);}),parentSegmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x2c2))['description'](a2_0x59d18d(0x211))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1bc),a2_0x59d18d(0x37e))['option']('--attribute\x20[name]',a2_0x59d18d(0x39a))[a2_0x59d18d(0x39b)]('--behavior\x20[name]',a2_0x59d18d(0x1f7))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x207),a2_0x59d18d(0x3c1))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x255),a2_0x59d18d(0x327),a2_0x59d18d(0x3b4))[a2_0x59d18d(0x2b8)](async(_0x2af2e1,_0x45844d)=>{const _0x5d520b=a2_0x59d18d,_0x3067a3=new ParentSegmentValidateCommand(),_0x3dadd8=program[_0x5d520b(0x346)](),_0x3c7619=await createTDXInstance(_0x3dadd8),_0x37063a=await _0x3067a3[_0x5d520b(0x359)]({'options':{..._0x3dadd8,..._0x45844d},'args':_0x2af2e1?[_0x2af2e1]:[],'tdx':_0x3c7619});process[_0x5d520b(0x360)](_0x37063a);}),parentSegmentCmd['command']('preview\x20[name]')['description'](a2_0x59d18d(0x356))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1bc),a2_0x59d18d(0x245))['option'](a2_0x59d18d(0x2c1),a2_0x59d18d(0x244))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3bb),a2_0x59d18d(0x3a7))['option'](a2_0x59d18d(0x207),a2_0x59d18d(0x3a4))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x255),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x59d18d(0x3b4))[a2_0x59d18d(0x2b8)](async(_0x2b87ca,_0x3e8dce)=>{const _0x10e9d3=a2_0x59d18d,_0x179f10=new ParentSegmentPreviewCommand(),_0x9f6561=program[_0x10e9d3(0x346)](),_0x4037bd=await createTDXInstance(_0x9f6561),_0x24d02b=await _0x179f10[_0x10e9d3(0x359)]({'options':{..._0x9f6561,..._0x3e8dce},'args':_0x2b87ca?[_0x2b87ca]:[],'tdx':_0x4037bd});process[_0x10e9d3(0x360)](_0x24d02b);}),parentSegmentCmd[a2_0x59d18d(0x248)]('run\x20[name]')[a2_0x59d18d(0x254)](a2_0x59d18d(0x3ca))['option'](a2_0x59d18d(0x38f),a2_0x59d18d(0x1e1))[a2_0x59d18d(0x2b8)](async(_0x1deaac,_0x54e379)=>{const _0xfbfa7c=a2_0x59d18d,_0x4d617e=new ParentSegmentRunCommand(),_0x38c218=program['opts'](),_0x1c6892=await createTDXInstance(_0x38c218),_0x35bf4c=await _0x4d617e[_0xfbfa7c(0x359)]({'options':{..._0x38c218,..._0x54e379},'args':_0x1deaac?[_0x1deaac]:[],'tdx':_0x1c6892});process['exit'](_0x35bf4c);}),parentSegmentCmd['command']('fields\x20[name]')[a2_0x59d18d(0x254)](a2_0x59d18d(0x39f))['option'](a2_0x59d18d(0x2d8),'Output\x20as\x20JSON')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2a0),'Output\x20as\x20JSON\x20Lines')[a2_0x59d18d(0x2b8)](async(_0x1d7155,_0x463547)=>{const _0x297067=a2_0x59d18d,_0x7611fb=new ParentSegmentFieldsCommand(),_0x291fce=program[_0x297067(0x346)](),_0x22d22c=await createTDXInstance(_0x291fce),_0x765063=await _0x7611fb['run']({'options':{..._0x291fce,..._0x463547},'args':_0x1d7155?[_0x1d7155]:[],'tdx':_0x22d22c});process[_0x297067(0x360)](_0x765063);}),parentSegmentCmd['command'](a2_0x59d18d(0x1f1))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2f2))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34b),a2_0x59d18d(0x3d1))['option']('--json',a2_0x59d18d(0x3c0))['option'](a2_0x59d18d(0x2a0),a2_0x59d18d(0x3c5))[a2_0x59d18d(0x2b8)](async(_0x4e3645,_0x158972)=>{const _0x421d37=a2_0x59d18d,_0x5269a2=new ParentSegmentViewCommand(),_0x16453d=program[_0x421d37(0x346)](),_0x1ea058=await createTDXInstance(_0x16453d),_0x5eb97e=await _0x5269a2[_0x421d37(0x359)]({'options':{..._0x16453d,..._0x158972},'args':_0x4e3645?[_0x4e3645]:[],'tdx':_0x1ea058});process[_0x421d37(0x360)](_0x5eb97e);}),parentSegmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x24a))['description'](a2_0x59d18d(0x231))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2d8),a2_0x59d18d(0x3c0))[a2_0x59d18d(0x39b)]('--jsonl',a2_0x59d18d(0x3c5))['action'](async(_0x269f40,_0x813ede)=>{const _0xcec23b=a2_0x59d18d,_0x41ef82=new ParentSegmentDescCommand(),_0x5371d8=program[_0xcec23b(0x346)](),_0x4c62d7=await createTDXInstance(_0x5371d8),_0x2d5655=await _0x41ef82[_0xcec23b(0x359)]({'options':{..._0x5371d8,..._0x813ede},'args':_0x269f40?[_0x269f40]:[],'tdx':_0x4c62d7});process[_0xcec23b(0x360)](_0x2d5655);}),parentSegmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x3d2))[a2_0x59d18d(0x254)](a2_0x59d18d(0x27d))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2d8),a2_0x59d18d(0x3c0))['option'](a2_0x59d18d(0x2a0),a2_0x59d18d(0x3c5))[a2_0x59d18d(0x2b8)](async(_0x31da4e,_0x511c65)=>{const _0x3db844=a2_0x59d18d,_0x119f27=new ParentSegmentSQLCommand(),_0x2efc00=program[_0x3db844(0x346)](),_0x662915=await createTDXInstance(_0x2efc00),_0x436b88=await _0x119f27['run']({'options':{..._0x2efc00,..._0x511c65},'args':_0x31da4e?[_0x31da4e]:[],'tdx':_0x662915});process['exit'](_0x436b88);}),parentSegmentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1f6))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2f5))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x23a),'Limit\x20number\x20of\x20rows')['option'](a2_0x59d18d(0x2d8),a2_0x59d18d(0x3c0))['option'](a2_0x59d18d(0x2a0),'Output\x20as\x20JSON\x20Lines')[a2_0x59d18d(0x2b8)](async(_0x5357d3,_0x53f8ad)=>{const _0x757f29=a2_0x59d18d,_0x209239=new ParentSegmentShowCommand(),_0x23ece8=program['opts'](),_0x193c4b=await createTDXInstance(_0x23ece8),_0x513fce=await _0x209239[_0x757f29(0x359)]({'options':{..._0x23ece8,..._0x53f8ad},'args':_0x5357d3?[_0x5357d3]:[],'tdx':_0x193c4b});process[_0x757f29(0x360)](_0x513fce);}),parentSegmentCmd[a2_0x59d18d(0x248)]('use\x20[name]')['description'](a2_0x59d18d(0x1f8))[a2_0x59d18d(0x2b8)](async(_0x127218,_0x4aacc3)=>{const _0x50e4c9=a2_0x59d18d,_0x10f694=new UseCommand(),_0x4b010c=program['opts'](),_0x343ad4=_0x127218?['parent_segment',_0x127218]:[],_0x42e73f=await _0x10f694['run']({'options':{..._0x4b010c,..._0x4aacc3},'args':_0x343ad4,'tdx':null});process[_0x50e4c9(0x360)](_0x42e73f);}),parentCmd['command']('create\x20<name>')[a2_0x59d18d(0x254)](a2_0x59d18d(0x2ca))[a2_0x59d18d(0x236)]('--database\x20<db>','Master\x20database\x20name')[a2_0x59d18d(0x236)](a2_0x59d18d(0x383),a2_0x59d18d(0x2f3))['option'](a2_0x59d18d(0x3d0),a2_0x59d18d(0x3d8))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x35b),a2_0x59d18d(0x29c))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x38d),a2_0x59d18d(0x263))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1d0),a2_0x59d18d(0x2ce))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x21c),a2_0x59d18d(0x296))[a2_0x59d18d(0x39b)]('--attributes-file\x20<file>',a2_0x59d18d(0x2cd))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x343),a2_0x59d18d(0x38c))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x319),a2_0x59d18d(0x2fd))['option']('--customer-group\x20<json>',a2_0x59d18d(0x330))['option']('--customer-group-file\x20<file>',a2_0x59d18d(0x22f))[a2_0x59d18d(0x2b8)](async(_0x32c5ec,_0x4dd1c4)=>{const _0x5ebac4=a2_0x59d18d,_0x5623ee=new ParentSegmentCreateCommand(),_0x2871ec=program[_0x5ebac4(0x346)](),_0x383b9a=await createTDXInstance(_0x2871ec),_0x59b628=await _0x5623ee[_0x5ebac4(0x359)]({'options':{..._0x2871ec,..._0x4dd1c4},'args':[_0x32c5ec],'tdx':_0x383b9a});process[_0x5ebac4(0x360)](_0x59b628);}),parentCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x395))['description'](a2_0x59d18d(0x243))['option'](a2_0x59d18d(0x3d0),'Updated\x20description')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x35b),a2_0x59d18d(0x1f4))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x38d),a2_0x59d18d(0x1e8))[a2_0x59d18d(0x39b)]('--timezone\x20<tz>',a2_0x59d18d(0x3b8))['option'](a2_0x59d18d(0x210),a2_0x59d18d(0x1b5))['option'](a2_0x59d18d(0x23f),a2_0x59d18d(0x33e))[a2_0x59d18d(0x39b)]('--add-behaviors\x20<json>',a2_0x59d18d(0x357))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x26e),a2_0x59d18d(0x272))[a2_0x59d18d(0x2b8)](async(_0x2d8230,_0x2b6686)=>{const _0x4bb5e6=a2_0x59d18d,_0xc75dda=new ParentSegmentUpdateCommand(),_0x2b091a=program['opts'](),_0x3857ef=await createTDXInstance(_0x2b091a),_0x4f9bf2=await _0xc75dda[_0x4bb5e6(0x359)]({'options':{..._0x2b091a,..._0x2b6686},'args':[_0x2d8230],'tdx':_0x3857ef});process[_0x4bb5e6(0x360)](_0x4f9bf2);}),folderCmd['command'](a2_0x59d18d(0x1d1))[a2_0x59d18d(0x254)](a2_0x59d18d(0x1d7))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3d0),'Folder\x20description')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2e7),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x59d18d(0x2b8)](async(_0x437f3a,_0x223466,_0x1d046c)=>{const _0x6ede02=a2_0x59d18d,_0x4c14b0=new SegmentFolderCreateCommand(),_0x273f1f=program[_0x6ede02(0x346)](),_0xb89f5d=await createTDXInstance(_0x273f1f),_0x3474a4=await _0x4c14b0[_0x6ede02(0x359)]({'options':{..._0x273f1f,..._0x1d046c},'args':[_0x437f3a,_0x223466],'tdx':_0xb89f5d});process[_0x6ede02(0x360)](_0x3474a4);}),program['command'](a2_0x59d18d(0x203))[a2_0x59d18d(0x254)](a2_0x59d18d(0x38a))[a2_0x59d18d(0x2b8)](async(_0x1877bd,_0x4e8e91)=>{const _0x1d6680=a2_0x59d18d,_0xf5053b=new ActivationsCommand(),_0x2a9406=program['opts'](),_0x465f60=await createTDXInstance(_0x2a9406),_0x5f1e17=await _0xf5053b[_0x1d6680(0x359)]({'options':{..._0x2a9406,..._0x4e8e91},'args':[_0x1877bd],'tdx':_0x465f60});process[_0x1d6680(0x360)](_0x5f1e17);});const workflowCmd=program[a2_0x59d18d(0x248)]('workflow')[a2_0x59d18d(0x22b)]('wf')[a2_0x59d18d(0x254)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd['command'](a2_0x59d18d(0x2da))[a2_0x59d18d(0x254)](a2_0x59d18d(0x32d)),wfProjectListAction=async(_0x1d23fb,_0x3d2041)=>{const _0x3e9fd4=a2_0x59d18d,_0x4633df=new WorkflowProjectsCommand(),_0x26fde6=program[_0x3e9fd4(0x346)](),_0x56dab5=await createTDXInstance(_0x26fde6),_0x5963a4=await _0x4633df[_0x3e9fd4(0x359)]({'options':{..._0x26fde6,..._0x3d2041},'args':_0x1d23fb?[_0x1d23fb]:[],'tdx':_0x56dab5});process[_0x3e9fd4(0x360)](_0x5963a4);};wfProjectCmd[a2_0x59d18d(0x248)]('list\x20[pattern]')['description'](a2_0x59d18d(0x242))[a2_0x59d18d(0x2b8)](wfProjectListAction),workflowCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x2a2))[a2_0x59d18d(0x254)](a2_0x59d18d(0x201))[a2_0x59d18d(0x2b8)](wfProjectListAction);const wfWorkflowListAction=async(_0x4834f1,_0x4d1511)=>{const _0x488d0e=a2_0x59d18d,_0x1a0641=new WorkflowWorkflowsCommand(),_0x24d5d0=program[_0x488d0e(0x346)](),_0x218d61=await createTDXInstance(_0x24d5d0),_0x156265=await _0x1a0641[_0x488d0e(0x359)]({'options':{..._0x24d5d0,..._0x4d1511},'args':_0x4834f1?[_0x4834f1]:[],'tdx':_0x218d61});process[_0x488d0e(0x360)](_0x156265);};workflowCmd['command'](a2_0x59d18d(0x304))[a2_0x59d18d(0x254)](a2_0x59d18d(0x278))[a2_0x59d18d(0x2b8)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x59d18d(0x248)]('session')[a2_0x59d18d(0x254)](a2_0x59d18d(0x1c1)),wfSessionListAction=async(_0x2c3665,_0x1e2e4c)=>{const _0x543614=a2_0x59d18d,_0x179345=new WorkflowSessionsCommand(),_0x21dce6=program[_0x543614(0x346)](),_0x7a4f5f=await createTDXInstance(_0x21dce6),_0x5aba9a=await _0x179345[_0x543614(0x359)]({'options':{..._0x21dce6,..._0x1e2e4c},'args':_0x2c3665?[_0x2c3665]:[],'tdx':_0x7a4f5f});process[_0x543614(0x360)](_0x5aba9a);};wfSessionCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x27e))[a2_0x59d18d(0x254)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1cc),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a2_0x59d18d(0x1dc),a2_0x59d18d(0x302))['option'](a2_0x59d18d(0x3cc),a2_0x59d18d(0x21b))[a2_0x59d18d(0x2b8)](wfSessionListAction),workflowCmd['command'](a2_0x59d18d(0x2ac))['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option'](a2_0x59d18d(0x1cc),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1dc),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3cc),a2_0x59d18d(0x21b))[a2_0x59d18d(0x2b8)](wfSessionListAction);const wfAttemptListAction=async(_0x145764,_0x3247a7)=>{const _0x52d96f=a2_0x59d18d,_0x50cfea=new WorkflowAttemptsCommand(),_0x389b82=program['opts'](),_0x2a1102=await createTDXInstance(_0x389b82),_0x5311fe=await _0x50cfea[_0x52d96f(0x359)]({'options':{..._0x389b82,..._0x3247a7},'args':_0x145764?[_0x145764]:[],'tdx':_0x2a1102});process[_0x52d96f(0x360)](_0x5311fe);},attemptCmd=workflowCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x344))[a2_0x59d18d(0x254)]('Workflow\x20attempt\x20management')[a2_0x59d18d(0x394)](a2_0x59d18d(0x329),a2_0x59d18d(0x1f5))[a2_0x59d18d(0x394)]('[action]','Action:\x20logs,\x20tasks,\x20kill,\x20retry')['argument'](a2_0x59d18d(0x1c6),'Task\x20name\x20for\x20logs\x20action')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2cf),a2_0x59d18d(0x286))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x25d),a2_0x59d18d(0x312))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x20e),a2_0x59d18d(0x2bd))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2d1),a2_0x59d18d(0x328))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x214),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x232),a2_0x59d18d(0x2b1))['action'](async(_0x269aa4,_0x565a7d,_0x2985f9,_0x57d9c3)=>{const _0x51afbd=a2_0x59d18d;if(_0x269aa4===_0x51afbd(0x24d)){await wfAttemptListAction(_0x565a7d,_0x57d9c3);return;}if(!_0x269aa4){attemptCmd[_0x51afbd(0x277)]();return;}const _0x2e7dd9=program['opts'](),_0x5ebf65=await createTDXInstance(_0x2e7dd9);let _0x24686e=0x0;if(!_0x565a7d){const _0x2d6a80=new WorkflowAttemptCommand();_0x24686e=await _0x2d6a80[_0x51afbd(0x359)]({'options':{..._0x2e7dd9,..._0x57d9c3},'args':[_0x269aa4],'tdx':_0x5ebf65});}else{if(_0x565a7d==='logs'){const _0x3feb5b=new WorkflowLogsCommand();_0x24686e=await _0x3feb5b[_0x51afbd(0x359)]({'options':{..._0x2e7dd9,..._0x57d9c3},'args':_0x2985f9?[_0x269aa4,_0x2985f9]:[_0x269aa4],'tdx':_0x5ebf65});}else{if(_0x565a7d===_0x51afbd(0x2fb)){const _0x1f5106=new WorkflowTasksCommand();_0x24686e=await _0x1f5106[_0x51afbd(0x359)]({'options':{..._0x2e7dd9,..._0x57d9c3},'args':[_0x269aa4],'tdx':_0x5ebf65});}else{if(_0x565a7d==='kill'){const _0x1a845e=new WorkflowKillCommand();_0x24686e=await _0x1a845e[_0x51afbd(0x359)]({'options':{..._0x2e7dd9,..._0x57d9c3},'args':[_0x269aa4],'tdx':_0x5ebf65});}else{if(_0x565a7d===_0x51afbd(0x1ed)){const _0x262491=new WorkflowRetryCommand();_0x24686e=await _0x262491['run']({'options':{..._0x2e7dd9,..._0x57d9c3},'args':['attempt:'+_0x269aa4],'tdx':_0x5ebf65});}else console[_0x51afbd(0x257)](_0x51afbd(0x332)+_0x565a7d),console[_0x51afbd(0x257)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x24686e=0x1;}}}}process['exit'](_0x24686e);});attemptCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x27e))['description'](a2_0x59d18d(0x354))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x232),a2_0x59d18d(0x218))['action'](wfAttemptListAction),workflowCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x217))[a2_0x59d18d(0x254)](a2_0x59d18d(0x1ff))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x232),a2_0x59d18d(0x218))['action'](wfAttemptListAction),workflowCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x331))['description']('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2c8),a2_0x59d18d(0x265))[a2_0x59d18d(0x39b)]('--params\x20<json>',a2_0x59d18d(0x3d9))[a2_0x59d18d(0x2b8)](async(_0x5beb72,_0x351c7b)=>{const _0x96455c=a2_0x59d18d,_0x5977da=new WorkflowRetryCommand(),_0x4a8a6a=program[_0x96455c(0x346)](),_0x6d5a0a=await createTDXInstance(_0x4a8a6a),_0x469435=await _0x5977da['run']({'options':{..._0x4a8a6a,..._0x351c7b},'args':[_0x5beb72],'tdx':_0x6d5a0a});process[_0x96455c(0x360)](_0x469435);}),workflowCmd['command'](a2_0x59d18d(0x380))['description'](a2_0x59d18d(0x24e))[a2_0x59d18d(0x39b)]('--param\x20<key=value>','Workflow\x20parameter\x20(repeatable)',(_0x340840,_0x4f92d5=[])=>[..._0x4f92d5,_0x340840],[])[a2_0x59d18d(0x39b)](a2_0x59d18d(0x229),a2_0x59d18d(0x315))[a2_0x59d18d(0x2b8)](async(_0x270261,_0x4b3fdb)=>{const _0x3d90fd=a2_0x59d18d,_0xcb0c32=new WorkflowRunCommand(),_0x4891ea=program[_0x3d90fd(0x346)](),_0xcce73b=await createTDXInstance(_0x4891ea),_0x4b7299=await _0xcb0c32[_0x3d90fd(0x359)]({'options':{..._0x4891ea,..._0x4b3fdb},'args':[_0x270261],'tdx':_0xcce73b});process['exit'](_0x4b7299);}),workflowCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x22d))[a2_0x59d18d(0x254)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a2_0x59d18d(0x1ce),a2_0x59d18d(0x368))['action'](async(_0x1f0078,_0x10b61e,_0x3e56b4)=>{const _0x5db2d4=a2_0x59d18d,_0x153349=new WorkflowDownloadCommand(),_0x394172=program['opts'](),_0x1cce4e=await createTDXInstance(_0x394172),_0x461cbf=await _0x153349[_0x5db2d4(0x359)]({'options':{..._0x394172,..._0x3e56b4},'args':[_0x1f0078,_0x10b61e||'.'],'tdx':_0x1cce4e});process['exit'](_0x461cbf);}),workflowCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x290))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2f6))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x20d),a2_0x59d18d(0x269))[a2_0x59d18d(0x39b)]('--revision\x20<revision>',a2_0x59d18d(0x377))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x30d),a2_0x59d18d(0x1e0))['action'](async(_0xca803f,_0x2a9efe)=>{const _0x564827=a2_0x59d18d,_0x225e58=new WorkflowPushCommand(),_0x302cf9=program['opts'](),_0x33c2b5=await createTDXInstance(_0x302cf9),_0x2244e1=await _0x225e58[_0x564827(0x359)]({'options':{..._0x302cf9,..._0x2a9efe},'args':_0xca803f?[_0xca803f]:[],'tdx':_0x33c2b5});process[_0x564827(0x360)](_0x2244e1);}),workflowCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x350))[a2_0x59d18d(0x254)](a2_0x59d18d(0x264))['action'](async(_0x19a4b6,_0x1a1a33)=>{const _0x1fbf83=a2_0x59d18d,_0x526108=new WorkflowDeleteCommand(),_0x4735ad=program[_0x1fbf83(0x346)](),_0x2e786f=await createTDXInstance(_0x4735ad),_0x2e9cd8=await _0x526108[_0x1fbf83(0x359)]({'options':{..._0x4735ad,..._0x1a1a33},'args':[_0x19a4b6],'tdx':_0x2e786f});process[_0x1fbf83(0x360)](_0x2e9cd8);});const jobCmd=program['command'](a2_0x59d18d(0x391))[a2_0x59d18d(0x254)]('Job\x20management\x20commands'),jobListAction=async _0x3d08b2=>{const _0x210807=a2_0x59d18d,_0x69240c=new JobListCommand(),_0x342c71=program[_0x210807(0x346)](),_0x5e3812=await createTDXInstance(_0x342c71),_0x50ba26=await _0x69240c[_0x210807(0x359)]({'options':{..._0x342c71,..._0x3d08b2},'args':[],'tdx':_0x5e3812});process[_0x210807(0x360)](_0x50ba26);};jobCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x24d))['description'](a2_0x59d18d(0x224))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1cc),a2_0x59d18d(0x3b5))[a2_0x59d18d(0x2b8)](jobListAction),program[a2_0x59d18d(0x248)](a2_0x59d18d(0x34d),{'hidden':!![]})[a2_0x59d18d(0x254)](a2_0x59d18d(0x1c4))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1cc),a2_0x59d18d(0x3b5))['action'](jobListAction),jobCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x30b))[a2_0x59d18d(0x254)]('Show\x20job\x20details')[a2_0x59d18d(0x2b8)](async(_0x379717,_0x538efc)=>{const _0xb047c1=a2_0x59d18d,_0x51f680=new JobShowCommand(),_0x3b81e0=program[_0xb047c1(0x346)](),_0x217b0c=await createTDXInstance(_0x3b81e0),_0x547c1b=await _0x51f680[_0xb047c1(0x359)]({'options':{..._0x3b81e0,..._0x538efc},'args':[_0x379717],'tdx':_0x217b0c});process[_0xb047c1(0x360)](_0x547c1b);}),jobCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x3cf))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2af))[a2_0x59d18d(0x2b8)](async(_0x1824ee,_0x30397a)=>{const _0x30385c=a2_0x59d18d,_0x47ea2e=new JobKillCommand(),_0x58cf2a=program[_0x30385c(0x346)](),_0x3859ff=await createTDXInstance(_0x58cf2a),_0x20bfc5=await _0x47ea2e[_0x30385c(0x359)]({'options':{..._0x58cf2a,..._0x30397a},'args':[_0x1824ee],'tdx':_0x3859ff});process[_0x30385c(0x360)](_0x20bfc5);}),jobCmd[a2_0x59d18d(0x248)]('submit\x20[query]')[a2_0x59d18d(0x254)]('Submit\x20a\x20job')['option']('--job-type\x20<type>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x59d18d(0x1b1))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3cd),a2_0x59d18d(0x361))[a2_0x59d18d(0x39b)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x59d18d(0x34c))[a2_0x59d18d(0x2b8)](async(_0xa2c8e8,_0x5cfea1)=>{const _0x4ff7a8=a2_0x59d18d,_0xc439b1=new JobSubmitCommand(),_0x1bd35f=program[_0x4ff7a8(0x346)](),_0x3fcc84=await createTDXInstance(_0x1bd35f),_0x2afe48=await _0xc439b1['run']({'options':{..._0x1bd35f,..._0x5cfea1},'args':_0xa2c8e8?[_0xa2c8e8]:[],'tdx':_0x3fcc84});process[_0x4ff7a8(0x360)](_0x2afe48);}),jobCmd['command'](a2_0x59d18d(0x253))['description'](a2_0x59d18d(0x2fc))['action'](async(_0x2c9e86,_0x360658)=>{const _0x3b8611=a2_0x59d18d,_0x927a24=new JobResultCommand(),_0x51923f=program[_0x3b8611(0x346)](),_0x59c325=await createTDXInstance(_0x51923f),_0x1d71c0=await _0x927a24[_0x3b8611(0x359)]({'options':{..._0x51923f,..._0x360658},'args':[_0x2c9e86],'tdx':_0x59c325});process[_0x3b8611(0x360)](_0x1d71c0);});const llmCmd=program[a2_0x59d18d(0x248)](a2_0x59d18d(0x2ee))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2e8));llmCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x386))[a2_0x59d18d(0x254)](a2_0x59d18d(0x355))[a2_0x59d18d(0x2b8)](async(_0x386273,_0x565a3b)=>{const _0x1fdb56=a2_0x59d18d,_0x1e67d8=new LLMUseCommand(),_0x486149=program[_0x1fdb56(0x346)](),_0x686cf4=await createTDXInstance(_0x486149),_0x5b66bb=await _0x1e67d8[_0x1fdb56(0x359)]({'options':{..._0x486149,..._0x565a3b},'args':[_0x386273],'tdx':_0x686cf4});process[_0x1fdb56(0x360)](_0x5b66bb);}),llmCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x262))[a2_0x59d18d(0x254)](a2_0x59d18d(0x202))['action'](async _0x4c143d=>{const _0x1b38dc=a2_0x59d18d,_0x18b779=new LLMModelsCommand(),_0x216b01=program[_0x1b38dc(0x346)](),_0x2beccb=await createTDXInstance(_0x216b01),_0x5b5afb=await _0x18b779['run']({'options':{..._0x216b01,..._0x4c143d},'args':[],'tdx':_0x2beccb});process[_0x1b38dc(0x360)](_0x5b5afb);});const projectCmd=llmCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x2da))[a2_0x59d18d(0x254)](a2_0x59d18d(0x1e6)),llmProjectListAction=async(_0x2738c8,_0x284251)=>{const _0x30f12=a2_0x59d18d,_0x484cfe=new LLMProjectsCommand(),_0x13a983=program['opts'](),_0x1c052a=await createTDXInstance(_0x13a983),_0x2cdce8=await _0x484cfe[_0x30f12(0x359)]({'options':{..._0x13a983,..._0x284251},'args':_0x2738c8?[_0x2738c8]:[],'tdx':_0x1c052a});process[_0x30f12(0x360)](_0x2cdce8);};projectCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x247))[a2_0x59d18d(0x254)](a2_0x59d18d(0x3ba))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34b),a2_0x59d18d(0x30a))[a2_0x59d18d(0x2b8)](llmProjectListAction),llmCmd[a2_0x59d18d(0x248)]('projects\x20[pattern]')['description'](a2_0x59d18d(0x2fe))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34b),a2_0x59d18d(0x30a))[a2_0x59d18d(0x2b8)](llmProjectListAction),projectCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x2a9))[a2_0x59d18d(0x254)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x59d18d(0x39b)]('--description\x20<text>',a2_0x59d18d(0x1d5))[a2_0x59d18d(0x2b8)](async(_0x149be0,_0x2a3e6f)=>{const _0x2bceb9=a2_0x59d18d,_0x48094e=new LLMProjectCreateCommand(),_0x23d8d9=program[_0x2bceb9(0x346)](),_0x37cdd5=await createTDXInstance(_0x23d8d9),_0x242106=await _0x48094e[_0x2bceb9(0x359)]({'options':{..._0x23d8d9,..._0x2a3e6f},'args':[_0x149be0],'tdx':_0x37cdd5});process[_0x2bceb9(0x360)](_0x242106);}),projectCmd['command'](a2_0x59d18d(0x384))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2e1))[a2_0x59d18d(0x2b8)](async(_0x4adc77,_0x336999)=>{const _0x5e85bd=a2_0x59d18d,_0x13b569=new LLMProjectDeleteCommand(),_0x560c82=program[_0x5e85bd(0x346)](),_0x41e72a=await createTDXInstance(_0x560c82),_0x578347=await _0x13b569[_0x5e85bd(0x359)]({'options':{..._0x560c82,..._0x336999},'args':[_0x4adc77],'tdx':_0x41e72a});process['exit'](_0x578347);}),projectCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x26f))['description'](a2_0x59d18d(0x28a))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x317),a2_0x59d18d(0x223))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x268),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')['action'](async(_0x2f827b,_0x17b1d8)=>{const _0x111671=a2_0x59d18d,_0x149b5a=new LLMProjectBackupCommand(),_0x93b5bf=program[_0x111671(0x346)](),_0x12f789=await createTDXInstance(_0x93b5bf),_0x42438b=await _0x149b5a[_0x111671(0x359)]({'options':{..._0x93b5bf,..._0x17b1d8},'args':[_0x2f827b],'tdx':_0x12f789});process[_0x111671(0x360)](_0x42438b);}),projectCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x2a6))[a2_0x59d18d(0x254)](a2_0x59d18d(0x1d9))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x292),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')['option'](a2_0x59d18d(0x268),a2_0x59d18d(0x2a8))[a2_0x59d18d(0x2b8)](async(_0x1c0694,_0x543e8b)=>{const _0x4d89ea=a2_0x59d18d,_0x3aa364=new LLMProjectRestoreCommand(),_0x4fe2e5=program[_0x4d89ea(0x346)](),_0x1958c7=await createTDXInstance(_0x4fe2e5),_0x5d1260=await _0x3aa364[_0x4d89ea(0x359)]({'options':{..._0x4fe2e5,..._0x543e8b},'args':[_0x1c0694],'tdx':_0x1958c7});process[_0x4d89ea(0x360)](_0x5d1260);});const llmAgentListAction=async(_0x5808ab,_0x3060dd)=>{const _0xf50149=a2_0x59d18d,_0x5e86fd=new LLMAgentsCommand(),_0x5d7b95=program[_0xf50149(0x346)](),_0xe9c54d=await createTDXInstance(_0x5d7b95),_0x1700e7=await _0x5e86fd[_0xf50149(0x359)]({'options':{..._0x5d7b95,..._0x3060dd},'args':_0x5808ab?[_0x5808ab]:[],'tdx':_0xe9c54d});process[_0xf50149(0x360)](_0x1700e7);};llmCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x345))[a2_0x59d18d(0x254)](a2_0x59d18d(0x280))[a2_0x59d18d(0x39b)]('-w,\x20--web',a2_0x59d18d(0x220))['action'](llmAgentListAction),program['command'](a2_0x59d18d(0x345))[a2_0x59d18d(0x254)](a2_0x59d18d(0x280))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34b),a2_0x59d18d(0x220))[a2_0x59d18d(0x2b8)](llmAgentListAction),llmCmd[a2_0x59d18d(0x248)]('history\x20[chat-id]')[a2_0x59d18d(0x254)](a2_0x59d18d(0x271))[a2_0x59d18d(0x39b)]('--last',a2_0x59d18d(0x2e3))[a2_0x59d18d(0x2b8)](async(_0x5ea538,_0x3154b4)=>{const _0x12b201=a2_0x59d18d,_0x24306a=new LLMHistoryCommand(),_0x37a4ec=program['opts'](),_0x43ce45=await createTDXInstance(_0x37a4ec),_0x20c59e=await _0x24306a[_0x12b201(0x359)]({'options':{..._0x37a4ec,..._0x3154b4},'args':_0x5ea538?[_0x5ea538]:[],'tdx':_0x43ce45});process['exit'](_0x20c59e);}),llmCmd['command']('proxy')[a2_0x59d18d(0x254)](a2_0x59d18d(0x367))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3a3),a2_0x59d18d(0x1fa),a2_0x59d18d(0x1c2))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1b3),a2_0x59d18d(0x30c))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2e4),a2_0x59d18d(0x3d7))[a2_0x59d18d(0x2b8)](async _0x261493=>{const _0x33863c=a2_0x59d18d,_0x43f978=new LLMProxyCommand(),_0x5a5aca=program[_0x33863c(0x346)](),_0x3417ec=await createTDXInstance(_0x5a5aca),_0x3e2994={..._0x261493,'port':_0x261493['port']?parseInt(_0x261493[_0x33863c(0x25c)],0xa):undefined},_0x204eb4=await _0x43f978[_0x33863c(0x359)]({'options':{..._0x5a5aca,..._0x3e2994},'args':[],'tdx':_0x3417ec});process['exit'](_0x204eb4);}),program['command'](a2_0x59d18d(0x1bf))[a2_0x59d18d(0x1e9)](a2_0x59d18d(0x2db))['description']('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')['option']('--model\x20<name>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x59d18d(0x3a9))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3c3),'Continue\x20most\x20recent\x20conversation')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2a5),a2_0x59d18d(0x299))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2b9),a2_0x59d18d(0x228))[a2_0x59d18d(0x37a)]()[a2_0x59d18d(0x3b3)](!![])[a2_0x59d18d(0x3da)](a2_0x59d18d(0x246),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')['action'](async(_0x35fc4e,_0x41c305)=>{const _0x55a649=a2_0x59d18d,_0x3cee1d=program[_0x55a649(0x346)](),_0x132414=Array[_0x55a649(0x21a)](_0x35fc4e)?_0x35fc4e:[];if(_0x132414[0x0]==='statusline'){const _0x294e8c=new ClaudeStatuslineCommand(),_0x6d1f49=await _0x294e8c['run']({'options':{..._0x3cee1d,..._0x41c305},'args':_0x132414[_0x55a649(0x1ef)](0x1),'tdx':null});process[_0x55a649(0x360)](_0x6d1f49);}if(_0x132414[0x0]===_0x55a649(0x1e9)){const _0x1b64bc=new ClaudeUsageCommand(),_0x5e968a=await _0x1b64bc[_0x55a649(0x359)]({'options':{..._0x3cee1d,..._0x41c305},'args':_0x132414[_0x55a649(0x1ef)](0x1),'tdx':null});process[_0x55a649(0x360)](_0x5e968a);}const _0x3bf561=new ClaudeCommand(),_0x2b4878=await createTDXInstance(_0x3cee1d),_0x23f8e8=await _0x3bf561[_0x55a649(0x359)]({'options':{..._0x3cee1d,..._0x41c305},'args':_0x132414,'tdx':_0x2b4878});process[_0x55a649(0x360)](_0x23f8e8);}),program[a2_0x59d18d(0x248)]('context')[a2_0x59d18d(0x254)](a2_0x59d18d(0x351))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2cb),'Clear\x20session\x20context')['action'](async _0x1daba8=>{const _0x169f75=a2_0x59d18d,_0x5833b6=new ContextCommand(),_0x3e2a72=program[_0x169f75(0x346)](),_0xce621e=await _0x5833b6[_0x169f75(0x359)]({'options':{..._0x3e2a72,..._0x1daba8},'args':[],'tdx':null});process[_0x169f75(0x360)](_0xce621e);}),program[a2_0x59d18d(0x248)]('use\x20[resource]\x20[value]')['description'](a2_0x59d18d(0x294))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2cb),a2_0x59d18d(0x267))[a2_0x59d18d(0x2b8)](async(_0x133679,_0x57e52f,_0x487a5a)=>{const _0x5a8e21=a2_0x59d18d,_0xe14e5=new UseCommand(),_0x33412a=program[_0x5a8e21(0x346)](),_0x20b3c6=[];if(_0x133679)_0x20b3c6[_0x5a8e21(0x31f)](_0x133679);if(_0x57e52f)_0x20b3c6[_0x5a8e21(0x31f)](_0x57e52f);const _0x84ebd6=await _0xe14e5[_0x5a8e21(0x359)]({'options':{..._0x33412a,..._0x487a5a},'args':_0x20b3c6,'tdx':null});process[_0x5a8e21(0x360)](_0x84ebd6);}),program[a2_0x59d18d(0x248)](a2_0x59d18d(0x1b6))[a2_0x59d18d(0x254)]('Interactive\x20chat\x20selector')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2f0),a2_0x59d18d(0x1be))[a2_0x59d18d(0x2b8)](async _0x3dc012=>{const _0x4589d8=a2_0x59d18d,_0x201eea=new ChatsCommand(),_0xa12554=program[_0x4589d8(0x346)](),_0x1cdd37=await createTDXInstance(_0xa12554),_0x1c6e9c=await _0x201eea[_0x4589d8(0x359)]({'options':{..._0xa12554,..._0x3dc012},'args':[],'tdx':_0x1cdd37});process['exit'](_0x1c6e9c);});const authCmd=program[a2_0x59d18d(0x248)](a2_0x59d18d(0x311))['description'](a2_0x59d18d(0x1fe));async function runAuthStatusCommand(_0x2ee038){const _0x49b764=a2_0x59d18d,_0xbd9745=new AuthStatusCommand(),_0x44c35e=program[_0x49b764(0x346)](),_0x2b4464=await createTDXInstance(_0x44c35e),_0x2054d0=await _0xbd9745[_0x49b764(0x359)]({'options':{..._0x44c35e,..._0x2ee038},'args':[],'tdx':_0x2b4464});process['exit'](_0x2054d0);}authCmd[a2_0x59d18d(0x2b8)](runAuthStatusCommand),authCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x2de))[a2_0x59d18d(0x254)](a2_0x59d18d(0x382))[a2_0x59d18d(0x2b8)](runAuthStatusCommand),authCmd['command'](a2_0x59d18d(0x1fc))[a2_0x59d18d(0x254)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x59d18d(0x3da)](a2_0x59d18d(0x246),a2_0x59d18d(0x333))['action'](async _0x6113e4=>{const _0x464503=a2_0x59d18d,_0x271afb=new AuthSetupCommand(),_0x467f91=program['opts'](),_0x190199=await createTDXInstance(_0x467f91),_0x13618e=await _0x271afb[_0x464503(0x359)]({'options':{..._0x467f91,..._0x6113e4},'args':[],'tdx':_0x190199});process[_0x464503(0x360)](_0x13618e);}),authCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1ae))[a2_0x59d18d(0x254)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x59d18d(0x3da)]('after',a2_0x59d18d(0x2f4))[a2_0x59d18d(0x2b8)](async _0x29f12f=>{const _0x41ca80=a2_0x59d18d,_0x52838b=new AuthClearCommand(),_0x604bdc=program[_0x41ca80(0x346)](),_0x69ddef=await _0x52838b[_0x41ca80(0x359)]({'options':{..._0x604bdc,..._0x29f12f},'args':[],'tdx':null});process['exit'](_0x69ddef);});const userCmd=program[a2_0x59d18d(0x248)](a2_0x59d18d(0x348))[a2_0x59d18d(0x254)](a2_0x59d18d(0x3ab)),userListAction=async _0x53b30b=>{const _0x3094c6=a2_0x59d18d,_0x13d98e=new UserListCommand(),_0x44664a=program[_0x3094c6(0x346)](),_0x4e9ffb=await createTDXInstance(_0x44664a),_0x4c7273=await _0x13d98e[_0x3094c6(0x359)]({'options':{..._0x44664a,..._0x53b30b},'args':[],'tdx':_0x4e9ffb});process[_0x3094c6(0x360)](_0x4c7273);};userCmd[a2_0x59d18d(0x2b8)](async _0x34ad98=>{const _0xfb98f=a2_0x59d18d,_0x40ab6e=new UserCommand(),_0x410071=program['opts'](),_0x927d0e=await createTDXInstance(_0x410071),_0x509d18=await _0x40ab6e[_0xfb98f(0x359)]({'options':{..._0x410071,..._0x34ad98},'args':[],'tdx':_0x927d0e});process['exit'](_0x509d18);}),userCmd[a2_0x59d18d(0x248)]('list')['description'](a2_0x59d18d(0x358))[a2_0x59d18d(0x2b8)](userListAction),program[a2_0x59d18d(0x248)](a2_0x59d18d(0x35f))[a2_0x59d18d(0x254)](a2_0x59d18d(0x326))['action'](userListAction),program[a2_0x59d18d(0x248)]('profiles')[a2_0x59d18d(0x254)](a2_0x59d18d(0x1b4))[a2_0x59d18d(0x2b8)](async _0x3075c9=>{const _0x3ceeaa=a2_0x59d18d,_0x4968d9=new ProfilesCommand(),_0x599939=program['opts'](),_0x2603f1=await _0x4968d9['run']({'options':{..._0x599939,..._0x3075c9},'args':[],'tdx':null});process[_0x3ceeaa(0x360)](_0x2603f1);});const engageCmd=program[a2_0x59d18d(0x248)](a2_0x59d18d(0x1d6))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2c3)),createEngageAction=_0x5d7eef=>{return async(_0x1bc1ba,_0x4c9475)=>{const _0x1c68d6=a2_0x14e0,_0x4ca7d5=new _0x5d7eef(),_0x26af02=program[_0x1c68d6(0x346)](),_0x161edf=await createTDXInstance(_0x26af02),_0x5ea47a=await _0x4ca7d5[_0x1c68d6(0x359)]({'options':{..._0x26af02,..._0x4c9475},'args':[_0x1bc1ba],'tdx':_0x161edf});process[_0x1c68d6(0x360)](_0x5ea47a);};},createEngageNoArgAction=_0x3e8e27=>{return async _0x3daf47=>{const _0x249491=a2_0x14e0,_0x5e7da7=new _0x3e8e27(),_0x265a52=program['opts'](),_0x42c4e9=await createTDXInstance(_0x265a52),_0x4553e8=await _0x5e7da7['run']({'options':{..._0x265a52,..._0x3daf47},'args':[],'tdx':_0x42c4e9});process[_0x249491(0x360)](_0x4553e8);};},campaignCmd=engageCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x314))[a2_0x59d18d(0x254)](a2_0x59d18d(0x3be)),campaignListAction=async(_0x3199d0,_0xb09725)=>{const _0x11304c=a2_0x59d18d,_0x15fca8=new EngageCampaignsCommand(),_0xaf81f2=program['opts'](),_0x501fb9=await createTDXInstance(_0xaf81f2),_0x2bd755=await _0x15fca8[_0x11304c(0x359)]({'options':{..._0xaf81f2,..._0xb09725},'args':_0x3199d0?[_0x3199d0]:[],'tdx':_0x501fb9});process[_0x11304c(0x360)](_0x2bd755);};campaignCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x247))[a2_0x59d18d(0x254)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x261),a2_0x59d18d(0x36d))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1cc),a2_0x59d18d(0x26b))['option'](a2_0x59d18d(0x2f1),'Workspace\x20name')[a2_0x59d18d(0x2b8)](campaignListAction),engageCmd[a2_0x59d18d(0x248)]('campaigns\x20[pattern]')['description'](a2_0x59d18d(0x250))['option'](a2_0x59d18d(0x261),a2_0x59d18d(0x36d))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1cc),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))[a2_0x59d18d(0x2b8)](campaignListAction),campaignCmd['command']('show\x20<name-or-id>')['description']('Show\x20campaign\x20details')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))['option'](a2_0x59d18d(0x2c0),a2_0x59d18d(0x341))[a2_0x59d18d(0x2b8)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x282))[a2_0x59d18d(0x254)](a2_0x59d18d(0x22e))[a2_0x59d18d(0x236)](a2_0x59d18d(0x20d),a2_0x59d18d(0x216))[a2_0x59d18d(0x236)](a2_0x59d18d(0x261),a2_0x59d18d(0x2dd))[a2_0x59d18d(0x39b)]('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1bb),a2_0x59d18d(0x295))[a2_0x59d18d(0x39b)]('--segment\x20<path>',a2_0x59d18d(0x3c2))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x323),a2_0x59d18d(0x3ac))[a2_0x59d18d(0x39b)]('--json-columns\x20<cols>',a2_0x59d18d(0x2d4))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x36b),a2_0x59d18d(0x208))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1d0),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x59d18d(0x2b8)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command']('update\x20<name-or-id>')[a2_0x59d18d(0x254)]('Update\x20a\x20campaign')['option'](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))['option'](a2_0x59d18d(0x20d),a2_0x59d18d(0x2d0))['option'](a2_0x59d18d(0x1bb),a2_0x59d18d(0x295))['option']('--segment\x20<path>',a2_0x59d18d(0x3c2))['option'](a2_0x59d18d(0x323),a2_0x59d18d(0x3ac))[a2_0x59d18d(0x39b)]('--json-columns\x20<cols>',a2_0x59d18d(0x2d4))['option'](a2_0x59d18d(0x36b),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x59d18d(0x39b)]('--timezone\x20<tz>',a2_0x59d18d(0x3a0))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1ec))[a2_0x59d18d(0x254)]('Delete\x20a\x20campaign')[a2_0x59d18d(0x39b)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x59d18d(0x369),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x393))['description'](a2_0x59d18d(0x3c4))['option'](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x59d18d(0x206))['description'](a2_0x59d18d(0x396))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))[a2_0x59d18d(0x2b8)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x31e))[a2_0x59d18d(0x254)](a2_0x59d18d(0x300))['option'](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))[a2_0x59d18d(0x2b8)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x29a))[a2_0x59d18d(0x254)](a2_0x59d18d(0x1f2))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))[a2_0x59d18d(0x2b8)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x307))['description']('Email\x20template\x20management'),templateListAction=async(_0x331b62,_0x108ff7)=>{const _0x12a347=a2_0x59d18d,_0x34d216=new EngageTemplatesCommand(),_0x43137a=program[_0x12a347(0x346)](),_0xafeba4=await createTDXInstance(_0x43137a),_0x54a02c=await _0x34d216[_0x12a347(0x359)]({'options':{..._0x43137a,..._0x108ff7},'args':_0x331b62?[_0x331b62]:[],'tdx':_0xafeba4});process[_0x12a347(0x360)](_0x54a02c);};templateCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x247))[a2_0x59d18d(0x254)](a2_0x59d18d(0x36e))[a2_0x59d18d(0x39b)]('--workspace\x20<name>',a2_0x59d18d(0x2df))[a2_0x59d18d(0x2b8)](templateListAction),engageCmd[a2_0x59d18d(0x248)]('templates\x20[pattern]')[a2_0x59d18d(0x254)](a2_0x59d18d(0x2be))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))[a2_0x59d18d(0x2b8)](templateListAction),templateCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x34f))[a2_0x59d18d(0x254)](a2_0x59d18d(0x32c))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2c0),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x59d18d(0x2b8)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x282))[a2_0x59d18d(0x254)](a2_0x59d18d(0x3b0))[a2_0x59d18d(0x236)](a2_0x59d18d(0x20d),a2_0x59d18d(0x34a))[a2_0x59d18d(0x236)](a2_0x59d18d(0x221),a2_0x59d18d(0x1c5))[a2_0x59d18d(0x236)](a2_0x59d18d(0x283),a2_0x59d18d(0x239))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2fa))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2d6),a2_0x59d18d(0x3b1))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1d2),a2_0x59d18d(0x279))[a2_0x59d18d(0x2b8)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x27a))[a2_0x59d18d(0x254)](a2_0x59d18d(0x27c))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2f1),a2_0x59d18d(0x2df))[a2_0x59d18d(0x39b)]('--name\x20<name>',a2_0x59d18d(0x2bc))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x221),a2_0x59d18d(0x1c5))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x283),'HTML\x20template\x20content')['option'](a2_0x59d18d(0x2d6),'Plaintext\x20template\x20content')[a2_0x59d18d(0x2b8)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1ec))['description'](a2_0x59d18d(0x1d4))[a2_0x59d18d(0x39b)]('--workspace\x20<name>',a2_0x59d18d(0x2df))[a2_0x59d18d(0x39b)]('--yes',a2_0x59d18d(0x1e1))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x20b))[a2_0x59d18d(0x254)](a2_0x59d18d(0x29d)),workspaceListAction=async(_0x4b7fe2,_0x4b840d)=>{const _0x2693be=a2_0x59d18d,_0x498dff=new EngageWorkspacesCommand(),_0x3a1fe2=program[_0x2693be(0x346)](),_0x10f9e7=await createTDXInstance(_0x3a1fe2),_0xe77045=await _0x498dff[_0x2693be(0x359)]({'options':{..._0x3a1fe2,..._0x4b840d},'args':_0x4b7fe2?[_0x4b7fe2]:[],'tdx':_0x10f9e7});process[_0x2693be(0x360)](_0xe77045);};workspaceCmd['command']('list\x20[pattern]')['description'](a2_0x59d18d(0x281))[a2_0x59d18d(0x2b8)](workspaceListAction),engageCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1bd))[a2_0x59d18d(0x254)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x59d18d(0x2b8)](workspaceListAction),workspaceCmd[a2_0x59d18d(0x248)]('show\x20<name-or-id>')[a2_0x59d18d(0x254)]('Show\x20workspace\x20details')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2c0),a2_0x59d18d(0x341))[a2_0x59d18d(0x2b8)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x59d18d(0x282))[a2_0x59d18d(0x254)](a2_0x59d18d(0x249))[a2_0x59d18d(0x236)](a2_0x59d18d(0x20d),'Workspace\x20name')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x1bb),a2_0x59d18d(0x1f3))[a2_0x59d18d(0x2b8)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x27a))[a2_0x59d18d(0x254)](a2_0x59d18d(0x31a))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x20d),a2_0x59d18d(0x2f8))[a2_0x59d18d(0x39b)]('--description\x20<desc>',a2_0x59d18d(0x1f3))[a2_0x59d18d(0x2b8)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1ec))[a2_0x59d18d(0x254)](a2_0x59d18d(0x270))['option'](a2_0x59d18d(0x369),a2_0x59d18d(0x1e1))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x370))[a2_0x59d18d(0x254)](a2_0x59d18d(0x349))['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x59d18d(0x248)](a2_0x59d18d(0x266))['description'](a2_0x59d18d(0x2cc)),connectionListAction=async _0x4dc8d0=>{const _0x47c52d=a2_0x59d18d,_0x4ca17a=new ConnectionListCommand(),_0x464a00=program[_0x47c52d(0x346)](),_0x1807cc=await createTDXInstance(_0x464a00),_0x5d89b9=await _0x4ca17a['run']({'options':{..._0x464a00,..._0x4dc8d0},'args':[],'tdx':_0x1807cc});process[_0x47c52d(0x360)](_0x5d89b9);};connectionCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x24d))[a2_0x59d18d(0x254)]('List\x20all\x20data\x20connections')[a2_0x59d18d(0x2b8)](connectionListAction),program[a2_0x59d18d(0x248)](a2_0x59d18d(0x3c6),{'hidden':!![]})['description'](a2_0x59d18d(0x387))[a2_0x59d18d(0x2b8)](connectionListAction),connectionCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x35c))[a2_0x59d18d(0x254)](a2_0x59d18d(0x316))[a2_0x59d18d(0x2b8)](async(_0xfad321,_0x590df6)=>{const _0x19f93a=a2_0x59d18d,_0x584715=new ConnectionShowCommand(),_0x102188=program[_0x19f93a(0x346)](),_0x33b6be=await createTDXInstance(_0x102188),_0xeda2ea=await _0x584715['run']({'options':{..._0x102188,..._0x590df6},'args':[_0xfad321],'tdx':_0x33b6be});process['exit'](_0xeda2ea);});const journeyCmd=program['command'](a2_0x59d18d(0x37c))['description'](a2_0x59d18d(0x3ad));journeyCmd['command'](a2_0x59d18d(0x247))[a2_0x59d18d(0x254)](a2_0x59d18d(0x2e6))['option']('-w,\x20--web',a2_0x59d18d(0x1e3))[a2_0x59d18d(0x2b8)](async(_0x2a1875,_0x311d4a)=>{const _0x148c1c=a2_0x59d18d,_0x336b20=new JourneyListCommand(),_0x2a1521=program[_0x148c1c(0x346)](),_0x411678=await createTDXInstance(_0x2a1521),_0x36c2f6=await _0x336b20[_0x148c1c(0x359)]({'options':{..._0x2a1521,..._0x311d4a},'args':_0x2a1875?[_0x2a1875]:[],'tdx':_0x411678});process[_0x148c1c(0x360)](_0x36c2f6);}),journeyCmd['command'](a2_0x59d18d(0x336))[a2_0x59d18d(0x254)]('Show\x20journey\x20details')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34b),a2_0x59d18d(0x1df))['option'](a2_0x59d18d(0x219),a2_0x59d18d(0x30f))['action'](async(_0x4bc4ef,_0x3ede46)=>{const _0x3936de=a2_0x59d18d,_0x28fc68=new JourneyViewCommand(),_0xec2ebb=program[_0x3936de(0x346)](),_0x33ca5b=await createTDXInstance(_0xec2ebb),_0x263949=await _0x28fc68['run']({'options':{..._0xec2ebb,..._0x3ede46},'args':[_0x4bc4ef],'tdx':_0x33ca5b});process[_0x3936de(0x360)](_0x263949);}),journeyCmd['command']('stats\x20<name-or-path>')[a2_0x59d18d(0x254)](a2_0x59d18d(0x2d7))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x34e),a2_0x59d18d(0x318))['action'](async(_0x3143f1,_0xf9ad0a)=>{const _0x3ccb7d=a2_0x59d18d,_0x281b33=new JourneyStatsCommand(),_0x5e4b32=program[_0x3ccb7d(0x346)](),_0xc3f655=await createTDXInstance(_0x5e4b32),_0xb371b4=await _0x281b33[_0x3ccb7d(0x359)]({'options':{..._0x5e4b32,..._0xf9ad0a},'args':[_0x3143f1],'tdx':_0xc3f655});process[_0x3ccb7d(0x360)](_0xb371b4);}),journeyCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x212))[a2_0x59d18d(0x254)](a2_0x59d18d(0x298))['action'](async(_0x4d2240,_0x272e61)=>{const _0x1648ec=a2_0x59d18d,_0xaaccf6=new JourneyPauseCommand(),_0x57b59a=program[_0x1648ec(0x346)](),_0x3bb577=await createTDXInstance(_0x57b59a),_0x399cae=await _0xaaccf6[_0x1648ec(0x359)]({'options':{..._0x57b59a,..._0x272e61},'args':[_0x4d2240],'tdx':_0x3bb577});process[_0x1648ec(0x360)](_0x399cae);}),journeyCmd['command'](a2_0x59d18d(0x1db))[a2_0x59d18d(0x254)](a2_0x59d18d(0x1e4))['action'](async(_0x561a6d,_0x186577)=>{const _0x8491ad=a2_0x59d18d,_0x37a0c1=new JourneyResumeCommand(),_0x5ac62c=program[_0x8491ad(0x346)](),_0xfbb4ca=await createTDXInstance(_0x5ac62c),_0x4d75d5=await _0x37a0c1[_0x8491ad(0x359)]({'options':{..._0x5ac62c,..._0x186577},'args':[_0x561a6d],'tdx':_0xfbb4ca});process[_0x8491ad(0x360)](_0x4d75d5);}),journeyCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x1b8))['description'](a2_0x59d18d(0x258))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x38f),a2_0x59d18d(0x1e1))[a2_0x59d18d(0x39b)]('--dry-run',a2_0x59d18d(0x252))[a2_0x59d18d(0x2b8)](async(_0x277022,_0x49706c)=>{const _0x10d9de=a2_0x59d18d,_0x377184=new JourneyPullCommand(),_0x3d3790=program[_0x10d9de(0x346)](),_0x38e61e=await createTDXInstance(_0x3d3790),_0x531fc0=await _0x377184[_0x10d9de(0x359)]({'options':{..._0x3d3790,..._0x49706c},'args':_0x277022?[_0x277022]:[],'tdx':_0x38e61e});process[_0x10d9de(0x360)](_0x531fc0);}),journeyCmd['command']('push\x20[target]')[a2_0x59d18d(0x254)](a2_0x59d18d(0x310))['action'](async(_0x51e1c5,_0x396580)=>{const _0x2bd841=a2_0x59d18d,_0x5571e6=new JourneyPushCommand(),_0x333099=program[_0x2bd841(0x346)](),_0x26652c=await createTDXInstance(_0x333099),_0x6f1286=await _0x5571e6[_0x2bd841(0x359)]({'options':{..._0x333099,..._0x396580},'args':_0x51e1c5?[_0x51e1c5]:[],'tdx':_0x26652c});process[_0x2bd841(0x360)](_0x6f1286);});const agentSyncCmd=program[a2_0x59d18d(0x248)](a2_0x59d18d(0x28c))['description'](a2_0x59d18d(0x233));agentSyncCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x3bc))[a2_0x59d18d(0x254)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x256),a2_0x59d18d(0x364))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x2bf),a2_0x59d18d(0x32b))[a2_0x59d18d(0x2b8)](async(_0x5bc20f,_0xe73e07,_0x433a06)=>{const _0x2ee497=a2_0x59d18d,_0x2d8a78=new AgentPullCommand(),_0x241c9d=program[_0x2ee497(0x346)](),_0x1de11b=await createTDXInstance(_0x241c9d),_0x35c076=[];if(_0x5bc20f)_0x35c076[_0x2ee497(0x31f)](_0x5bc20f);if(_0xe73e07)_0x35c076[_0x2ee497(0x31f)](_0xe73e07);const _0x1a9585=await _0x2d8a78[_0x2ee497(0x359)]({'options':{..._0x241c9d,..._0x433a06},'args':_0x35c076,'tdx':_0x1de11b});process[_0x2ee497(0x360)](_0x1a9585);}),agentSyncCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x306))[a2_0x59d18d(0x254)](a2_0x59d18d(0x1c0))[a2_0x59d18d(0x39b)]('-f,\x20--force',a2_0x59d18d(0x30e))[a2_0x59d18d(0x2b8)](async(_0x2ee5a8,_0x400da0)=>{const _0x171a2b=a2_0x59d18d,_0x32d493=new AgentPushCommand(),_0x2eb11a=program['opts'](),_0x478ec8=await createTDXInstance(_0x2eb11a),_0x110a86=await _0x32d493[_0x171a2b(0x359)]({'options':{..._0x2eb11a,..._0x400da0},'args':_0x2ee5a8?[_0x2ee5a8]:[],'tdx':_0x478ec8});process[_0x171a2b(0x360)](_0x110a86);}),agentSyncCmd['command'](a2_0x59d18d(0x27b))['description'](a2_0x59d18d(0x29f))[a2_0x59d18d(0x39b)]('-n,\x20--name\x20<name>',a2_0x59d18d(0x3b9))[a2_0x59d18d(0x2b8)](async(_0x4f1a9b,_0x5e91a9)=>{const _0x5bac15=a2_0x59d18d,_0x6b2738=new AgentCloneCommand(),_0x388936=program[_0x5bac15(0x346)](),_0x4f1aca=await createTDXInstance(_0x388936),_0x268bf4=await _0x6b2738[_0x5bac15(0x359)]({'options':{..._0x388936,..._0x5e91a9},'args':_0x4f1a9b?[_0x4f1a9b]:[],'tdx':_0x4f1aca});process['exit'](_0x268bf4);}),agentSyncCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x247))[a2_0x59d18d(0x254)]('List\x20agents\x20in\x20current\x20project')[a2_0x59d18d(0x39b)]('-w,\x20--web',a2_0x59d18d(0x220))[a2_0x59d18d(0x2b8)](llmAgentListAction),agentSyncCmd[a2_0x59d18d(0x248)]('show\x20<agent-name>')['description'](a2_0x59d18d(0x2a3))[a2_0x59d18d(0x2b8)](async(_0x5c55e0,_0x5a2afb)=>{const _0x24cd39=a2_0x59d18d,_0x266d28=new LLMAgentShowCommand(),_0x1f612b=program[_0x24cd39(0x346)](),_0x811956=await createTDXInstance(_0x1f612b),_0x21f4c3=await _0x266d28['run']({'options':{..._0x1f612b,..._0x5a2afb},'args':[_0x5c55e0],'tdx':_0x811956});process[_0x24cd39(0x360)](_0x21f4c3);}),agentSyncCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x2a9))[a2_0x59d18d(0x254)](a2_0x59d18d(0x322))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x26c),a2_0x59d18d(0x1c8))[a2_0x59d18d(0x39b)]('--model\x20<name>',a2_0x59d18d(0x2ea),a2_0x59d18d(0x1b2))['option'](a2_0x59d18d(0x39d),a2_0x59d18d(0x1ca))['option'](a2_0x59d18d(0x2ab),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x378),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x59d18d(0x2ba))[a2_0x59d18d(0x2b8)](async(_0x2e300a,_0x44589b)=>{const _0x24e802=a2_0x59d18d,_0x1e3a0d=new LLMAgentCreateCommand(),_0xc4ede6=program[_0x24e802(0x346)](),_0x57e238=await createTDXInstance(_0xc4ede6),_0x4cecfc=await _0x1e3a0d[_0x24e802(0x359)]({'options':{..._0xc4ede6,..._0x44589b},'args':[_0x2e300a],'tdx':_0x57e238});process[_0x24e802(0x360)](_0x4cecfc);}),agentSyncCmd[a2_0x59d18d(0x248)]('update\x20<agent-name>')['description']('Update\x20an\x20existing\x20agent')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x3a6),a2_0x59d18d(0x2b6))[a2_0x59d18d(0x39b)](a2_0x59d18d(0x301),a2_0x59d18d(0x2aa))['option'](a2_0x59d18d(0x3d0),'Agent\x20description')[a2_0x59d18d(0x39b)](a2_0x59d18d(0x39d),a2_0x59d18d(0x1ca))[a2_0x59d18d(0x2b8)](async(_0x3071f3,_0x293ccc)=>{const _0x473067=a2_0x59d18d,_0x3577c7=new LLMAgentUpdateCommand(),_0x11933c=program[_0x473067(0x346)](),_0x4fd0e1=await createTDXInstance(_0x11933c),_0x5a9c37=await _0x3577c7['run']({'options':{..._0x11933c,..._0x293ccc},'args':[_0x3071f3],'tdx':_0x4fd0e1});process[_0x473067(0x360)](_0x5a9c37);}),agentSyncCmd[a2_0x59d18d(0x248)](a2_0x59d18d(0x25e))[a2_0x59d18d(0x254)]('Delete\x20an\x20agent')['action'](async(_0x358067,_0x23b55a)=>{const _0x571628=a2_0x59d18d,_0x2726e9=new LLMAgentDeleteCommand(),_0x368cc2=program[_0x571628(0x346)](),_0x3d8a3c=await createTDXInstance(_0x368cc2),_0x2150f7=await _0x2726e9[_0x571628(0x359)]({'options':{..._0x368cc2,..._0x23b55a},'args':[_0x358067],'tdx':_0x3d8a3c});process[_0x571628(0x360)](_0x2150f7);});export{program};export function runCLI(){const _0x9cca2a=a2_0x59d18d;program[_0x9cca2a(0x352)](process[_0x9cca2a(0x288)]);!process[_0x9cca2a(0x288)]['slice'](0x2)[_0x9cca2a(0x1ea)]&&program[_0x9cca2a(0x1f0)]();const _0x9e1b8=packageJson[_0x9cca2a(0x2ef)];process['stderr'][_0x9cca2a(0x3b6)]&&process[_0x9cca2a(0x288)][_0x9cca2a(0x1ea)]>0x2&&!_0x9e1b8[_0x9cca2a(0x24f)]('.dev')&&checkForUpdate(_0x9e1b8)[_0x9cca2a(0x37b)](_0x5e0a38=>{_0x5e0a38&&displayUpdateNotification(_0x5e0a38);})['catch'](()=>{});}
|