@treasuredata/tdx 0.14.4 → 0.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.d.ts +1 -1
- package/dist/cli-categories.js +1 -1
- package/dist/cli-categories.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +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.d.ts +0 -4
- package/dist/commands/claude-command.d.ts.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.d.ts +1 -1
- package/dist/commands/profile-command.d.ts.map +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profile-command.js.map +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.d.ts +18 -0
- package/dist/commands/unset-command.d.ts.map +1 -0
- package/dist/commands/unset-command.js +1 -0
- package/dist/commands/unset-command.js.map +1 -0
- package/dist/commands/use-command.d.ts.map +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/use-command.js.map +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.d.ts +18 -0
- package/dist/core/profile.d.ts.map +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/profile.js.map +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.d.ts +11 -0
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/session.js.map +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-aliases.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.d.ts +1 -0
- package/dist/sdk/types/index.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/index.js.map +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.d.ts +25 -1
- package/dist/utils/process.d.ts.map +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/process.js.map +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.d.ts +3 -0
- package/dist/utils/spinner.d.ts.map +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x3025ae=a2_0x238e;(function(_0x413452,_0x1b5d1e){const _0x26a158=a2_0x238e,_0x20c62c=_0x413452();while(!![]){try{const _0x2a793e=parseInt(_0x26a158(0x234))/0x1*(-parseInt(_0x26a158(0x21a))/0x2)+-parseInt(_0x26a158(0x226))/0x3*(parseInt(_0x26a158(0xed))/0x4)+parseInt(_0x26a158(0x24c))/0x5+-parseInt(_0x26a158(0x2b7))/0x6*(parseInt(_0x26a158(0x1ba))/0x7)+parseInt(_0x26a158(0x189))/0x8+parseInt(_0x26a158(0x256))/0x9+parseInt(_0x26a158(0x260))/0xa*(parseInt(_0x26a158(0x25f))/0xb);if(_0x2a793e===_0x1b5d1e)break;else _0x20c62c['push'](_0x20c62c['shift']());}catch(_0x3735c2){_0x20c62c['push'](_0x20c62c['shift']());}}}(a2_0x58ac,0x4aebc));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';function a2_0x58ac(){const _0x5c089a=['Manage\x20workflow\x20project\x20secrets','duplicate\x20<name-or-id>','Maximum\x20recursion\x20depth\x20(default:\x2010)','exit','\x20-\x20built\x20','--segment\x20<path>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Read\x20request\x20body\x20from\x20file','proxy','aliases','Add\x20behaviors\x20as\x20JSON\x20string','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','push\x20[parent_or_file]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','requiredOption','sql\x20[segment_name]','List\x20jobs','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--type\x20<type>','show\x20[segment_name]','Show\x20only\x20master\x20table\x20validation','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Workspace\x20management','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Resume\x20from\x20specific\x20task','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','--workspace\x20<name>','--model\x20<name>','Starter\x20message','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','folders\x20<parent_name>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Action:\x20logs,\x20tasks,\x20kill,\x20retry','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20available\x20connector\x20types','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Output\x20as\x20JSON','Get\x20job\x20results','New\x20segment\x20name','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','List\x20available\x20LLM\x20models','--session-time\x20<time>','agent','outputHelp','Set\x20or\x20show\x20parent\x20segment\x20context','\x20(resolved\x20to\x20','--resume-from\x20<task>','campaign','pause\x20<name-or-path>','projects\x20[pattern]','validate\x20[target]','tdx\x20','Read\x20query\x20from\x20file','connection','show\x20<agent-name>','Add\x20attributes\x20from\x20JSON\x20file','describe','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Revision\x20name\x20(default:\x20timestamp)','create\x20[name]','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','commandUsage','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','required','pull\x20[project]\x20[agent-name]','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','--system-prompt\x20<text>','New\x20workspace\x20name','pull\x20[parent_or_file]','--kind\x20<type>','Force\x20retry\x20even\x20if\x20not\x20failed','-o,\x20--output\x20<file>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Job\x20management\x20commands','folder','Show\x20segment\x20schema\x20(column\x20types)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--max-tool-iterations\x20<n>','download\x20<project-name>\x20[output-dir]','allowUnknownOption','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','-r,\x20--resume','show\x20[name]','delete\x20<name-or-id>','-y,\x20--yes','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--starter-message\x20<text>','then','table','list\x20[project]','after','gitRevision','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Behaviors\x20from\x20JSON\x20file','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Submit\x20a\x20job','length','resume\x20<name-or-id>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','sonnet','Show\x20master\x20table\x20sample\x20data','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','engage','Attributes\x20as\x20JSON\x20string','--editor-type\x20<type>','Limit\x20number\x20of\x20rows','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','repeat','Model\x20type\x20(default:\x20claude-4.5-sonnet)','settings\x20<type>','[task-name]','Behaviors\x20as\x20JSON\x20string','Update\x20an\x20existing\x20agent','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','List\x20secret\x20keys\x20for\x20a\x20project','secrets','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','types','Show\x20email\x20template\x20details','agents\x20[pattern]','--no-color','Show\x20timeline\x20for\x20specific\x20attempt','Preview\x20operation\x20without\x20executing','help','templates\x20[pattern]','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--start-at\x20<datetime>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','map','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','show\x20<folder_ref>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','join','List\x20all\x20available\x20profiles','auth','Workspace\x20name\x20(required)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Include\x20execution\x20statistics','submit\x20[query]','367424jNwWfa','Workspace\x20name','--delete','options','Workspace\x20description','--clear','-w,\x20--web','Open\x20journey\x20in\x20web\x20browser','--skip-validation','--attributes-file\x20<file>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','show\x20<name>','view\x20[name]','Show\x20agent\x20details','user','chats','Trino\x20catalog\x20(default:\x20td)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','retry','--name\x20<name>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Run\x20Trino\x20query\x20with\x20streaming\x20results','--attributes\x20<json>','set\x20<args...>','Skip\x20population\x20counting','--master','--stage\x20<name>','format','--dry-run','--name\x20<new-name>','--in\x20<name>','clear','optionTerm','0.7','Preview\x20changes\x20without\x20writing\x20files','result\x20<job-id>','Name\x20for\x20the\x20new\x20project\x20(required)','Campaign\x20management','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','preAction','Remove\x20a\x20profile','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Attributes\x20from\x20JSON\x20file','Show\x20job\x20details','users','flatMap','--agent\x20<name>','6461zxduxp','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','use\x20<path>','Agent\x20name','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--invisible','update\x20<agent-name>','workspaces\x20[pattern]','Unknown\x20action:\x20','-d,\x20--database\x20<database>','Pull\x20child\x20segments\x20to\x20YAML\x20files','--in\x20<database>','--add-behaviors\x20<json>','remove\x20<name>','GET','Editor\x20type','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Database\x20to\x20query\x20(default:\x20information_schema)','Workflow\x20parameter\x20(repeatable)','Clear\x20session\x20context','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Validate\x20journey\x20YAML\x20files\x20locally','--param\x20<key=value>','show\x20<job-id>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','llm','Create\x20segment\x20folder','create\x20<parent_name>\x20<folder_name>','port','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','pull\x20[name]','api\x20[endpoint]','-d,\x20--database\x20<name>','-f,\x20--file\x20<path>','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Delete\x20an\x20email\x20template','Include\x20retried\x20attempts\x20(for\x20list)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--catalog\x20<catalog>','run','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--color','DEBUG','information_schema','status','tdx','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Usage:\x20','jobs','CDP\x20segment\x20management\x20commands','--behaviors-file\x20<file>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','list\x20[path]','attempt:','journeys\x20[pattern]','noColor','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--include-retried','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','update\x20<segment_name>','Set\x20a\x20profile\x20configuration\x20value','project','log','Workflow\x20session\x20management','Show\x20the\x20most\x20recent\x20chat','configureHelp','-o,\x20--output\x20<folder>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a','--session\x20<id>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Campaign\x20description','filter','Attempt\x20ID','Resume\x20a\x20paused\x20campaign','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','pause\x20<name-or-id>','models','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','argv','New\x20campaign\x20name','Customer\x20group\x20as\x20JSON\x20string','Custom\x20revision\x20name\x20(default:\x20timestamp)','Options:','desc','alias','workspace','--attempt-id\x20<id>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','create\x20<segment_name>','Agent\x20prompt/instructions','--llm-proxy\x20[url]','2MmiWYo','--full','parent','preview\x20[file]','--data\x20<data>','update\x20<name>','--last','TRACE','End\x20time\x20filter\x20(ISO\x208601\x20format)','command','option','-f,\x20--force','59790ZibGeg','use\x20[resource]\x20[value]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--port\x20<number>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--limit\x20<rows>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','error','parent_segment','--enriched','segment','469331MMnrDP','commands','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Workflow\x20(Digdag)\x20management\x20commands','_hidden','use\x20[project]','use\x20[name]','--to\x20<timestamp>','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','-o,\x20--output\x20<dir>','Create\x20a\x20new\x20profile','trace','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Output\x20file\x20path','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Create\x20a\x20new\x20campaign','--folder\x20<name>','resume\x20<name-or-path>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','timeline\x20[project.workflow]','INVALID_ARGUMENT','1587945LYqlUo','workflow','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--html\x20<html>','-r,\x20--recursive','registeredArguments','--format\x20<format>','-u,\x20--use','Pull\x20specific\x20revision\x20(default:\x20latest)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','3199167liWtUe','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','replace','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Show\x20journey\x20details','Database\x20management\x20commands','Parent\x20segment\x20management','Clear\x20workflow\x20project\x20context','describe\x20[table]','3849879uYfNTg','10OJmFPd','chdir','Open\x20parent\x20segment\x20in\x20web\x20browser','-C,\x20--directory\x20<path>','Push\x20without\x20confirmation','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--prompt\x20<text>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Directory\x20does\x20not\x20exist:\x20','Arguments:','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','Campaign\x20type\x20(email\x20or\x20push)','--no-proxy','--temperature\x20<n>','--include-stats','pull\x20<project>\x20[target-dir]','validate\x20[file]','restore\x20<folder>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','jsonl','Customer\x20group\x20from\x20JSON\x20file','kill\x20<job-id>','subcommandDescription','--new','Interactive\x20chat\x20selector','description','Create\x20a\x20workspace','--description\x20<desc>','--add-attributes\x20<json>','create','--schedule-type\x20<type>',',\x20version\x20','hidden','history\x20[chat-id]','Agent\x20description','Add\x20attributes\x20as\x20JSON\x20string','usage','Skip\x20confirmation\x20prompt','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--parent-folder\x20<name>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','update\x20<name-or-id>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','directory','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Skip\x20confirmation\x20prompts','buildTime','backup\x20<name>','--interval\x20<range>','Master\x20database\x20name','Email\x20sender\x20ID\x20for\x20delivery','colorFn','template','Show\x20stats\x20for\x20specific\x20stage','[attempt-id]','--trace','--name\x20<new_name>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','isTTY','includes','Segment\x20description','delete\x20<project-name-or-id>','Database\x20name\x20(default:\x20information_schema)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','-X,\x20--method\x20<method>','Open\x20segment\x20in\x20web\x20browser','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--no-count-population','Describe\x20table\x20schema','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','logs','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--timezone\x20<tz>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','fields\x20[parent_name]','connections','summary','List\x20journeys\x20in\x20current\x20context','create\x20<name>','--schedule-option\x20<value>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','push\x20[file]','1644bkeVjo','--status\x20<status>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','stats\x20<name-or-path>','slice','parents\x20[pattern]','push\x20[target]','--jsonl','Move\x20to\x20folder','allowExcessArguments','Save\x20output\x20to\x20file','Kill\x20a\x20job','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','--from-task\x20<task>','--attribute\x20[name]','argument','Pause\x20a\x20running\x20journey','logLevel','schema\x20<type>','Create\x20a\x20new\x20LLM\x20project','--json-columns\x20<cols>','Update\x20an\x20email\x20template','--type\x20<api_type>','--project\x20<name>','Enable\x20verbose\x20logging','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','--subject\x20<subject>','action','catch','launch\x20<name-or-id>','Campaign\x20name','--yes','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Plaintext\x20template\x20content','Include\x20retried\x20attempts','Follow/watch\x20timeline\x20for\x20running\x20attempts','--rule\x20<json>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--rule-file\x20<file>','--behavior\x20[name]','Updated\x20description','push','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','run\x20[name]','Email\x20subject\x20template','--name\x20<text>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--version','Add\x20behaviors\x20from\x20JSON\x20file','Override\x20project\x20name','--timeout\x20<seconds>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Create\x20an\x20email\x20template','Output\x20directory','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','INFO','Email\x20template\x20management','\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--debug','stdout','Show\x20connection\x20details\x20by\x20name','use\x20<project-name>','info\x20[segment_name]','Folder\x20name\x20for\x20organization','opts','Filtering\x20rule\x20from\x20JSON\x20file','--from\x20<timestamp>','--revision\x20<revision>','validate\x20[name]','Commands:','AI-native\x20CLI\x20for\x20Treasure\x20Data','--reason\x20<text>','Task\x20name\x20for\x20logs\x20action','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--max-depth\x20<depth>','list\x20[pattern]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a','Folder\x20description','Path\x20is\x20not\x20a\x20directory:\x20','[options]\x20--\x20[claude-code-args...]','--llm-project\x20<name>','--add-behaviors-file\x20<file>','set\x20<key=value>','hook','Workflow\x20project\x20management','list','set','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','--email-sender-id\x20<id>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Parent\x20segment\x20description','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','List\x20agents\x20in\x20current\x20project','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--include-subtasks','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','push\x20[path]','\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','[action]','Delete\x20an\x20LLM\x20project','Resume\x20a\x20conversation\x20(shows\x20selector)','--table','name','Skip\x20validation\x20of\x20.dig\x20files','Authentication\x20management','--plaintext\x20<text>','-1d','\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','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','json','--params\x20<json>','tables\x20[pattern]','run\x20[workflow]','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--description\x20<text>','retry\x20<session-id>','use\x20<name>','Update\x20a\x20campaign','Update\x20a\x20workspace','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','clone\x20[source]','--limit\x20<n>','--limit\x20<number>','--parent-segment\x20<name>','Preview\x20changes\x20without\x20pushing','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','site','--json','HTML\x20template\x20content','stderr','addHelpText','profile','Project\x20description','show\x20<name-or-id>','fields\x20[name]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','padEnd','campaigns\x20[pattern]','journey','tsv','8hsaNGO','--site\x20<site>','isDirectory','setup','Set\x20session\x20profile','Pull\x20workflow\x20project\x20to\x20local\x20folder','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','tasks','Output\x20as\x20JSON\x20Lines','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','database','subcommandTerm','-n,\x20--name\x20<name>'];a2_0x58ac=function(){return _0x5c089a;};return a2_0x58ac();}import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x3025ae(0x20d)][a2_0x3025ae(0x29e)](a2_0x3025ae(0x8e))){let versionOutput=a2_0x3025ae(0x12f)+currentVersion;buildInfo[a2_0x3025ae(0x157)]&&!currentVersion['includes'](buildInfo[a2_0x3025ae(0x157)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x3025ae(0x291)]&&(versionOutput+=a2_0x3025ae(0xfe)+buildInfo[a2_0x3025ae(0x291)]),console[a2_0x3025ae(0x1fb)](versionOutput),process[a2_0x3025ae(0xfd)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x3025ae(0xa6);buildInfo[a2_0x3025ae(0x157)]&&!currentVersion[a2_0x3025ae(0x29e)](buildInfo[a2_0x3025ae(0x157)])?description+=a2_0x3025ae(0x280)+currentVersion+'\x20('+buildInfo[a2_0x3025ae(0x157)]+')':description+=a2_0x3025ae(0x280)+currentVersion;program['name'](a2_0x3025ae(0x1e9))[a2_0x3025ae(0x27a)](description),program[a2_0x3025ae(0x224)](a2_0x3025ae(0x263),'Change\x20to\x20directory\x20before\x20executing\x20command')[a2_0x3025ae(0x224)]('-p,\x20--profile\x20<name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xee),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','us01')[a2_0x3025ae(0x224)](a2_0x3025ae(0x252),a2_0x3025ae(0x28c))[a2_0x3025ae(0x224)](a2_0x3025ae(0xc5),a2_0x3025ae(0x13d))[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x8c))[a2_0x3025ae(0x224)]('--jsonl',a2_0x3025ae(0x28f))['option']('--tsv',a2_0x3025ae(0x1be))[a2_0x3025ae(0x224)]('--output\x20<file>',a2_0x3025ae(0x2c1))[a2_0x3025ae(0x224)](a2_0x3025ae(0xda),a2_0x3025ae(0xf6))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1e5),a2_0x3025ae(0x209),![])[a2_0x3025ae(0x224)](a2_0x3025ae(0x175),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])['option']('-v,\x20--verbose',a2_0x3025ae(0x2cf),![])['option'](a2_0x3025ae(0x9a),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')['option'](a2_0x3025ae(0x29a),a2_0x3025ae(0xa9))[a2_0x3025ae(0x224)](a2_0x3025ae(0x91),'Set\x20operation\x20timeout\x20in\x20seconds','30')['option'](a2_0x3025ae(0x1a6),a2_0x3025ae(0x177),![])[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x290),![])[a2_0x3025ae(0x224)](a2_0x3025ae(0x201),a2_0x3025ae(0x171))['option'](a2_0x3025ae(0x1dc),'Database\x20to\x20use\x20(overrides\x20context)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a8),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xdb),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xb0),a2_0x3025ae(0x110)),program[a2_0x3025ae(0x1fe)]({'formatHelp':(_0xd46184,_0x1707bf)=>{const _0x4e42c3=a2_0x3025ae,_0x39ce2e=_0x1707bf['padWidth'](_0xd46184,_0x1707bf),_0x20c08f=0x2,_0x4dfd9f=0x2;function _0x467aa7(_0xeb77d3){const _0x43fe68=a2_0x238e,_0x57101b=_0xeb77d3;return!!(_0x57101b[_0x43fe68(0x239)]||_0x57101b[_0x43fe68(0x281)]);}function _0xf25308(_0x240b31,_0x462365){const _0x564159=a2_0x238e;if(_0x462365){const _0x1906c0=''+_0x240b31[_0x564159(0xe9)](_0x39ce2e+_0x4dfd9f)+_0x462365;return _0x1906c0;}return _0x240b31;}function _0xfc6349(_0x1fe38f){const _0x113371=a2_0x238e;return _0x1fe38f['join']('\x0a')[_0x113371(0x258)](/^/gm,'\x20'[_0x113371(0x168)](_0x20c08f));}const _0x1f47d1=[];_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0x1eb)+_0x1707bf[_0x4e42c3(0x139)](_0xd46184));const _0x3a2e9a=_0x1707bf['commandDescription'](_0xd46184);_0x3a2e9a&&(_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1['push'](_0x3a2e9a));const _0x758f50=_0xd46184['commands'][_0x4e42c3(0x205)](_0x29b2fe=>!_0x467aa7(_0x29b2fe));if(_0x758f50['length']>0x0){if(_0xd46184['name']()===_0x4e42c3(0x1e9)){const _0x2c468b=_0xd46184['opts'](),_0x502ad7=!_0x2c468b[_0x4e42c3(0x1f3)]&&process[_0x4e42c3(0x9b)][_0x4e42c3(0x29d)],_0x3fb99a=COMMAND_CATEGORIES,_0x6d78d8=(_0x3e4d18,_0xa20dd3)=>_0x502ad7?_0xa20dd3(_0x3e4d18):_0x3e4d18,_0x645a6=new Map();_0x758f50['forEach'](_0x733446=>{const _0x592c94=_0x4e42c3;_0x645a6[_0x592c94(0xb6)](_0x733446['name'](),_0x733446);}),_0x3fb99a['forEach'](_0x2859de=>{const _0x221325=_0x4e42c3,_0x48cdc3=_0x2859de[_0x221325(0x235)][_0x221325(0x1b8)](_0x379943=>_0x645a6['get'](_0x379943)??[]);if(_0x48cdc3['length']>0x0){_0x1f47d1['push'](''),_0x1f47d1[_0x221325(0x86)](_0x6d78d8(_0x2859de[_0x221325(0xc6)]+':',_0x2859de[_0x221325(0x296)]));const _0x51d1e6=_0x48cdc3['map'](_0xcd5776=>{const _0x1c15a3=_0x221325,_0x50563e=_0x1707bf[_0x1c15a3(0xf8)](_0xcd5776),_0x5ab022=_0x1707bf['subcommandDescription'](_0xcd5776);return _0xf25308(_0x50563e,_0x5ab022);});_0x1f47d1[_0x221325(0x86)](_0xfc6349(_0x51d1e6));}}),_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1['push'](_0x4e42c3(0x2ae));}else{const _0x53d061=_0x758f50['map'](_0xbc2390=>{const _0x5a1f88=_0x4e42c3,_0x11baa0=_0x1707bf['subcommandTerm'](_0xbc2390),_0x31086c=_0x1707bf[_0x5a1f88(0x277)](_0xbc2390);return _0xf25308(_0x11baa0,_0x31086c);});_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0xa5)),_0x1f47d1['push'](_0xfc6349(_0x53d061));}}if(showBriefHelp&&_0xd46184[_0x4e42c3(0xc6)]()==='tdx')_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0x88));else{const _0x49ae3d=_0xd46184[_0x4e42c3(0x18c)][_0x4e42c3(0x205)](_0x28bda8=>!_0x467aa7(_0x28bda8));if(_0x49ae3d['length']>0x0){const _0x2e527d=_0x49ae3d[_0x4e42c3(0x17d)](_0x964512=>{const _0x311532=_0x4e42c3,_0x58a899=_0x1707bf[_0x311532(0x1aa)](_0x964512),_0xa80e6f=_0x1707bf['optionDescription'](_0x964512);return _0xf25308(_0x58a899,_0xa80e6f);});_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0x211)),_0x1f47d1['push'](_0xfc6349(_0x2e527d));}}const _0x54ef33=(_0xd46184[_0x4e42c3(0x251)]||[])[_0x4e42c3(0x205)](_0x1d347d=>!_0x467aa7(_0x1d347d));if(_0x54ef33['length']>0x0){const _0x5271d4=_0x54ef33[_0x4e42c3(0x17d)](_0x22c65e=>{const _0x33b8ac=_0x1707bf['argumentTerm'](_0x22c65e),_0x3a7e42=_0x1707bf['argumentDescription'](_0x22c65e);return _0xf25308(_0x33b8ac,_0x3a7e42);});_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0x26a)),_0x1f47d1[_0x4e42c3(0x86)](_0xfc6349(_0x5271d4));}return _0x1f47d1[_0x4e42c3(0x181)]('\x0a')+'\x0a';},'subcommandTerm':_0x36d04e=>{const _0x413aaf=a2_0x3025ae,_0x9bd055=(_0x36d04e['registeredArguments']||[])['map'](_0x3ffbdd=>_0x3ffbdd[_0x413aaf(0x13b)]?'<'+_0x3ffbdd[_0x413aaf(0xc6)]()+'>':'['+_0x3ffbdd[_0x413aaf(0xc6)]()+']')[_0x413aaf(0x181)]('\x20'),_0x79415b=_0x36d04e[_0x413aaf(0x104)](),_0x13f1b0=_0x79415b[_0x413aaf(0x15c)]>0x0?_0x36d04e[_0x413aaf(0xc6)]()+',\x20'+_0x79415b['join'](',\x20'):_0x36d04e[_0x413aaf(0xc6)]();return _0x9bd055?_0x13f1b0+'\x20'+_0x9bd055:_0x13f1b0;}}),program[a2_0x3025ae(0xb3)](a2_0x3025ae(0x1b2),_0x10d414=>{const _0x351a98=a2_0x3025ae,_0x1c3019=_0x10d414['opts']();if(_0x1c3019[_0x351a98(0x28e)]){const _0x5880a8=resolve(_0x1c3019[_0x351a98(0x28e)]),_0x50278d=_0x5880a8!==_0x1c3019[_0x351a98(0x28e)]?_0x351a98(0x129)+_0x5880a8+')':'';if(!existsSync(_0x5880a8))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x351a98(0x269)+_0x1c3019[_0x351a98(0x28e)]+_0x50278d,undefined,{'helpText':_0x351a98(0x119)});const _0x379676=statSync(_0x5880a8);if(!_0x379676[_0x351a98(0xef)]())throw new SDKError(ErrorCode[_0x351a98(0x24b)],_0x351a98(0xae)+_0x1c3019['directory']+_0x50278d,undefined,{'helpText':_0x351a98(0x19b)});process[_0x351a98(0x261)](_0x5880a8);}if(!_0x1c3019['format']){if(_0x1c3019[_0x351a98(0x154)])_0x1c3019[_0x351a98(0x1a5)]=_0x351a98(0x154);else{if(_0x1c3019[_0x351a98(0xcd)])_0x1c3019[_0x351a98(0x1a5)]=_0x351a98(0xcd);else{if(_0x1c3019[_0x351a98(0x274)])_0x1c3019['format']='jsonl';else _0x1c3019[_0x351a98(0xec)]&&(_0x1c3019[_0x351a98(0x1a5)]=_0x351a98(0xec));}}}_0x1c3019['in']&&!_0x1c3019['database']&&(_0x1c3019[_0x351a98(0xf7)]=_0x1c3019['in']);if(_0x1c3019[_0x351a98(0x240)])_0x1c3019[_0x351a98(0x2c8)]=LogLevel[_0x351a98(0x221)];else{if(_0x1c3019['debug'])_0x1c3019['logLevel']=LogLevel[_0x351a98(0x1e6)];else _0x1c3019[_0x351a98(0x2c8)]===undefined&&(_0x1c3019[_0x351a98(0x2c8)]=LogLevel[_0x351a98(0x96)]);}});async function createTDXInstance(_0x42b313){const _0x1a5512=a2_0x3025ae,_0x5c8ce7=await GlobalContext['createAsync'](_0x42b313);return _0x5c8ce7['injectIntoOptions'](_0x42b313),TDX[_0x1a5512(0x27e)]({'site':_0x5c8ce7[_0x1a5512(0xde)],'apiKey':_0x5c8ce7['apiKey'],'logLevel':_0x5c8ce7[_0x1a5512(0x2c8)],'profile':_0x5c8ce7['profile']});}const databaseCmd=program['command']('database')[a2_0x3025ae(0x213)]('db')['description'](a2_0x3025ae(0x25b)),databaseListAction=async(_0x5881a3,_0x27b9c2)=>{const _0x5f186d=a2_0x3025ae,_0x333097=new DatabasesCommand(),_0x57c951=program[_0x5f186d(0xa0)](),_0x533dbb=await createTDXInstance(_0x57c951),_0x1bfd40=await _0x333097[_0x5f186d(0x1e3)]({'options':{..._0x57c951,..._0x27b9c2},'args':_0x5881a3?[_0x5881a3]:[],'tdx':_0x533dbb});process[_0x5f186d(0xfd)](_0x1bfd40);};databaseCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3025ae(0x2d2)](databaseListAction),program[a2_0x3025ae(0x223)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0xbb))[a2_0x3025ae(0x2d2)](databaseListAction),program[a2_0x3025ae(0x223)]('chat\x20[message...]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x144))['option']('--agent\x20<ref>',a2_0x3025ae(0x245))['option'](a2_0x3025ae(0x278),'Start\x20a\x20new\x20chat\x20session')[a2_0x3025ae(0x2d2)](async(_0x1123a8,_0x1fe068)=>{const _0x57b181=a2_0x3025ae,_0x35555d=new ChatCommand(),_0x488024=program[_0x57b181(0xa0)](),_0x23848d=await createTDXInstance(_0x488024),_0x5e2e6a=await _0x35555d['run']({'options':{..._0x488024,..._0x1fe068},'args':_0x1123a8,'tdx':_0x23848d});process['exit'](_0x5e2e6a);});const apiCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1db))[a2_0x3025ae(0x2b1)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x3025ae(0xe2)](a2_0x3025ae(0x156),a2_0x3025ae(0xc1))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2a4),a2_0x3025ae(0x2b5),a2_0x3025ae(0x1c9))[a2_0x3025ae(0x224)](a2_0x3025ae(0x21e),'Request\x20body\x20as\x20JSON\x20string')[a2_0x3025ae(0x224)]('-f,\x20--file\x20<path>',a2_0x3025ae(0x102))[a2_0x3025ae(0x224)]('-H,\x20--header\x20<header>',a2_0x3025ae(0x100),(_0x574a8b,_0x1a5048)=>{return _0x1a5048?[..._0x1a5048,_0x574a8b]:[_0x574a8b];})[a2_0x3025ae(0x224)](a2_0x3025ae(0x2cd),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x3025ae(0x2d2)](async(_0x37a75e,_0x55f694)=>{const _0x1371d9=a2_0x3025ae;if(!_0x37a75e){apiCmd[_0x1371d9(0x178)]();return;}const _0x4e5464=new ApiCommand(),_0x2451a7=program[_0x1371d9(0xa0)](),_0x1ae548=await createTDXInstance(_0x2451a7),_0xe7ab53=await _0x4e5464['run']({'options':{..._0x2451a7,..._0x55f694},'args':[_0x37a75e],'tdx':_0x1ae548});process[_0x1371d9(0xfd)](_0xe7ab53);}),tableCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x154))['description']('Table\x20management\x20commands'),tableListAction=async(_0x419d91,_0x348519)=>{const _0x5ad034=a2_0x3025ae,_0x379be9=new TablesCommand(),_0x58dc0a=program['opts'](),_0x84557=await createTDXInstance(_0x58dc0a);_0x348519['in']&&(_0x348519[_0x5ad034(0xf7)]=_0x348519['in']);const _0x1d9b71=await _0x379be9[_0x5ad034(0x1e3)]({'options':{..._0x58dc0a,..._0x348519},'args':_0x419d91?[_0x419d91]:[],'tdx':_0x84557});process[_0x5ad034(0xfd)](_0x1d9b71);};tableCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')['option'](a2_0x3025ae(0x1c4),a2_0x3025ae(0x193))['option']('--in\x20<database>',a2_0x3025ae(0x255))[a2_0x3025ae(0x2d2)](tableListAction),program['command'](a2_0x3025ae(0xcf),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x186))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c4),a2_0x3025ae(0x193))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c6),a2_0x3025ae(0x255))[a2_0x3025ae(0x2d2)](tableListAction),program['command']('show\x20[table]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2a3))['option'](a2_0x3025ae(0x1c4),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c6),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x4ed4e4,_0x5e51f5)=>{const _0x12e9a6=a2_0x3025ae,_0xa03a5d=new ShowCommand(),_0x54c096=program[_0x12e9a6(0xa0)](),_0x56e4e7=await createTDXInstance(_0x54c096);_0x5e51f5['in']&&(_0x5e51f5[_0x12e9a6(0xf7)]=_0x5e51f5['in']);const _0x132f65=await _0xa03a5d['run']({'options':{..._0x54c096,..._0x5e51f5},'args':_0x4ed4e4?[_0x4ed4e4]:[],'tdx':_0x56e4e7});process[_0x12e9a6(0xfd)](_0x132f65);}),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x25e))[a2_0x3025ae(0x213)](a2_0x3025ae(0x212))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2a8))['option'](a2_0x3025ae(0x1c4),a2_0x3025ae(0x28d))['option'](a2_0x3025ae(0x1c6),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x2c12c3,_0x1ba481)=>{const _0x4331b7=a2_0x3025ae,_0x4e03b5=new DescribeCommand(),_0x49abbe=program[_0x4331b7(0xa0)](),_0x32785b=await createTDXInstance(_0x49abbe);_0x1ba481['in']&&(_0x1ba481[_0x4331b7(0xf7)]=_0x1ba481['in']);const _0x1be8da=await _0x4e03b5[_0x4331b7(0x1e3)]({'options':{..._0x49abbe,..._0x1ba481},'args':_0x2c12c3?[_0x2c12c3]:[],'tdx':_0x32785b});process[_0x4331b7(0xfd)](_0x1be8da);}),program[a2_0x3025ae(0x223)]('query\x20[sql]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x19f))['option'](a2_0x3025ae(0x1c4),a2_0x3025ae(0x1cc))['option'](a2_0x3025ae(0x1c6),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1e2),a2_0x3025ae(0x199))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1dd),'Read\x20SQL\x20query\x20from\x20file')[a2_0x3025ae(0x224)](a2_0x3025ae(0x22e),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x3025ae(0x2d2)](async(_0x23fea8,_0x472b49)=>{const _0x58c3c7=a2_0x3025ae,_0xcbcead=new QueryCommand(),_0x3efa9b=program[_0x58c3c7(0xa0)](),_0x525a02=await createTDXInstance(_0x3efa9b);_0x472b49['in']&&(_0x472b49[_0x58c3c7(0xf7)]=_0x472b49['in']);const _0x154dd3=await _0xcbcead['run']({'options':{..._0x3efa9b,..._0x472b49},'args':_0x23fea8?[_0x23fea8]:[],'tdx':_0x525a02});process[_0x58c3c7(0xfd)](_0x154dd3);});const segmentCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x233))[a2_0x3025ae(0x213)]('sg')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1ed)),segmentListAction=async(_0x3b72df,_0x177afa)=>{const _0x1d0645=a2_0x3025ae,_0x6955c6=new SegmentsCommand(),_0x548aef=program[_0x1d0645(0xa0)](),_0x5f582d=await createTDXInstance(_0x548aef),_0x5d7cea=await _0x6955c6['run']({'options':{..._0x548aef,..._0x177afa},'args':_0x3b72df?[_0x3b72df]:[],'tdx':_0x5f582d});process[_0x1d0645(0xfd)](_0x5d7cea);};segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1f0))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xe8))[a2_0x3025ae(0x224)](a2_0x3025ae(0x250),a2_0x3025ae(0xe7))[a2_0x3025ae(0x224)](a2_0x3025ae(0xaa),a2_0x3025ae(0xfc),'10')['action'](segmentListAction),program[a2_0x3025ae(0x223)]('segments\x20[path]',{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x202))[a2_0x3025ae(0x224)](a2_0x3025ae(0x250),a2_0x3025ae(0xe7))[a2_0x3025ae(0x224)](a2_0x3025ae(0xaa),a2_0x3025ae(0xfc),'10')[a2_0x3025ae(0x2d2)](segmentListAction),segmentCmd['command'](a2_0x3025ae(0x1bc),{'hidden':!![]})[a2_0x3025ae(0x27a)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x3025ae(0x2d2)](async(_0x4767d5,_0x159844)=>{const _0x3ee57d=a2_0x3025ae,_0x41bbe1=new SegmentUseCommand(),_0x1ad248=program[_0x3ee57d(0xa0)](),_0x441734=await createTDXInstance(_0x1ad248),_0x2b6315=await _0x41bbe1[_0x3ee57d(0x1e3)]({'options':{..._0x1ad248,..._0x159844},'args':[_0x4767d5],'tdx':_0x441734});process['exit'](_0x2b6315);});const segmentViewAction=async(_0x8e56fa,_0x37af94)=>{const _0x1282b1=a2_0x3025ae,_0xddb7d9=new SegmentViewCommand(),_0x3095a2=program[_0x1282b1(0xa0)](),_0x27c84d=await createTDXInstance(_0x3095a2),_0x369696=await _0xddb7d9['run']({'options':{..._0x3095a2,..._0x37af94},'args':_0x8e56fa?[_0x8e56fa]:[],'tdx':_0x27c84d});process['exit'](_0x369696);};segmentCmd[a2_0x3025ae(0x223)]('view\x20[segment_name]')['description'](a2_0x3025ae(0x8d))[a2_0x3025ae(0x224)](a2_0x3025ae(0x18f),a2_0x3025ae(0x2a5))[a2_0x3025ae(0x2d2)](segmentViewAction),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x9e),{'hidden':!![]})[a2_0x3025ae(0x213)](a2_0x3025ae(0x134))[a2_0x3025ae(0x224)](a2_0x3025ae(0x18f),a2_0x3025ae(0x2a5))[a2_0x3025ae(0x27a)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x3025ae(0x2d2)](segmentViewAction),segmentCmd[a2_0x3025ae(0x223)]('desc\x20[segment_name]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x147))[a2_0x3025ae(0x2d2)](async(_0x3f1934,_0x4a5659)=>{const _0x20dfba=a2_0x3025ae,_0x169e04=new SegmentDescCommand(),_0x52c729=program[_0x20dfba(0xa0)](),_0x1f670a=await createTDXInstance(_0x52c729),_0x172990=await _0x169e04[_0x20dfba(0x1e3)]({'options':{..._0x52c729,..._0x4a5659},'args':_0x3f1934?[_0x3f1934]:[],'tdx':_0x1f670a});process[_0x20dfba(0xfd)](_0x172990);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x10e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1bb))[a2_0x3025ae(0x2d2)](async(_0x4c6dfa,_0x22e6b9)=>{const _0x5c3456=a2_0x3025ae,_0x2f233f=new SegmentShowCommand(),_0x1ea2b8=program[_0x5c3456(0xa0)](),_0x16a223=await createTDXInstance(_0x1ea2b8),_0x5e8b6c=await _0x2f233f[_0x5c3456(0x1e3)]({'options':{..._0x1ea2b8,..._0x22e6b9},'args':_0x4c6dfa?[_0x4c6dfa]:[],'tdx':_0x16a223});process[_0x5c3456(0xfd)](_0x5e8b6c);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x11a),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x236))['action'](async(_0x5174a9,_0x4179d0)=>{const _0x2fe4b4=a2_0x3025ae,_0x5ca930=new SegmentFolderListCommand(),_0x28dbd6=program[_0x2fe4b4(0xa0)](),_0x251702=await createTDXInstance(_0x28dbd6),_0x5bb99f=await _0x5ca930[_0x2fe4b4(0x1e3)]({'options':{..._0x28dbd6,..._0x4179d0},'args':[_0x5174a9],'tdx':_0x251702});process['exit'](_0x5bb99f);});const folderCmd=segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x146),{'hidden':!![]})[a2_0x3025ae(0x27a)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x17f))[a2_0x3025ae(0x27a)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x3025ae(0x2d2)](async(_0x1f9b1c,_0xd44c41)=>{const _0x23d607=a2_0x3025ae,_0x267bc8=new SegmentFolderShowCommand(),_0xad54a6=program[_0x23d607(0xa0)](),_0x68a63f=await createTDXInstance(_0xad54a6),_0xf6f4b2=await _0x267bc8[_0x23d607(0x1e3)]({'options':{..._0xad54a6,..._0xd44c41},'args':[_0x1f9b1c],'tdx':_0x68a63f});process[_0x23d607(0xfd)](_0xf6f4b2);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x10a))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1de))[a2_0x3025ae(0x2d2)](async(_0x50d94b,_0x16b01c)=>{const _0x397612=a2_0x3025ae,_0x90dc5=new SegmentSQLCommand(),_0x50d72c=program[_0x397612(0xa0)](),_0x32b9fa=await createTDXInstance(_0x50d72c),_0xa88262=await _0x90dc5[_0x397612(0x1e3)]({'options':{..._0x50d72c,..._0x16b01c},'args':_0x50d94b?[_0x50d94b]:[],'tdx':_0x32b9fa});process[_0x397612(0xfd)](_0xa88262);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2af))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x228))['action'](async(_0x53566f,_0x3aa2ea)=>{const _0x32525e=a2_0x3025ae,_0x1ab6b1=new SegmentFieldsCommand(),_0x9f8d9b=program[_0x32525e(0xa0)](),_0x4be42e=await createTDXInstance(_0x9f8d9b),_0x466628=await _0x1ab6b1[_0x32525e(0x1e3)]({'options':{..._0x9f8d9b,..._0x3aa2ea},'args':_0x53566f?[_0x53566f]:[],'tdx':_0x4be42e});process['exit'](_0x466628);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x140))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1c5))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x290))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3025ae(0x2d2)](async(_0x45ef17,_0x4636bb)=>{const _0x2e523a=a2_0x3025ae,_0x18d193=new SegmentPullCommand(),_0x46918b=program[_0x2e523a(0xa0)](),_0x362f39=await createTDXInstance(_0x46918b),_0x3c1f15=await _0x18d193[_0x2e523a(0x1e3)]({'options':{..._0x46918b,..._0x4636bb},'args':_0x45ef17?[_0x45ef17]:[],'tdx':_0x362f39});process[_0x2e523a(0xfd)](_0x3c1f15);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x107))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1f7))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),'Skip\x20confirmation\x20prompts')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),a2_0x3025ae(0x11b))[a2_0x3025ae(0x224)](a2_0x3025ae(0x18b),a2_0x3025ae(0x1b1))[a2_0x3025ae(0x2d2)](async(_0x94f42b,_0x478d78)=>{const _0x5fc0c3=a2_0x3025ae,_0x2f90c6=new SegmentPushCommand(),_0xf6fd4a=program['opts'](),_0x1f13f7=await createTDXInstance(_0xf6fd4a),_0x1de2de=await _0x2f90c6[_0x5fc0c3(0x1e3)]({'options':{..._0xf6fd4a,..._0x478d78},'args':_0x94f42b?[_0x94f42b]:[],'tdx':_0x1f13f7});process[_0x5fc0c3(0xfd)](_0x1de2de);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12e))[a2_0x3025ae(0x27a)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x6a7ea9,_0x966c53)=>{const _0x405923=a2_0x3025ae,_0x36da3a=new SegmentValidateCommand(),_0x53c3ae=program['opts'](),_0x59fb94=await createTDXInstance(_0x53c3ae),_0x135ac5=await _0x36da3a['run']({'options':{..._0x53c3ae,..._0x966c53},'args':_0x6a7ea9?[_0x6a7ea9]:[],'tdx':_0x59fb94});process[_0x405923(0xfd)](_0x135ac5);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x217),{'hidden':!![]})['description'](a2_0x3025ae(0x1e4))['option'](a2_0x3025ae(0xd2),a2_0x3025ae(0x29f))[a2_0x3025ae(0x224)](a2_0x3025ae(0x81),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x3025ae(0x224)](a2_0x3025ae(0x83),a2_0x3025ae(0xa1))[a2_0x3025ae(0x224)](a2_0x3025ae(0x247),a2_0x3025ae(0x9f))[a2_0x3025ae(0x224)](a2_0x3025ae(0x141),a2_0x3025ae(0x249))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c0),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x2a7),a2_0x3025ae(0x1a2))[a2_0x3025ae(0x2d2)](async(_0x277175,_0x462ae1)=>{const _0x390ce7=a2_0x3025ae,_0x58b46b=new SegmentCreateCommand(),_0x2a6337=program['opts'](),_0x2413bf=await createTDXInstance(_0x2a6337),_0x444659=await _0x58b46b[_0x390ce7(0x1e3)]({'options':{..._0x2a6337,..._0x462ae1},'args':[_0x277175],'tdx':_0x2413bf});process[_0x390ce7(0xfd)](_0x444659);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1f8),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2a6))['option'](a2_0x3025ae(0x29b),a2_0x3025ae(0x122))[a2_0x3025ae(0x224)]('--description\x20<text>',a2_0x3025ae(0x85))['option'](a2_0x3025ae(0x81),a2_0x3025ae(0x87))[a2_0x3025ae(0x224)](a2_0x3025ae(0x83),a2_0x3025ae(0x2a2))[a2_0x3025ae(0x224)]('--folder\x20<name>',a2_0x3025ae(0x2bf))[a2_0x3025ae(0x224)]('--kind\x20<type>',a2_0x3025ae(0x249))[a2_0x3025ae(0x2d2)](async(_0x43d0e9,_0x49287f)=>{const _0x21f0bf=a2_0x3025ae,_0x143bf0=new SegmentUpdateCommand(),_0x5c8f34=program[_0x21f0bf(0xa0)](),_0x2b50cf=await createTDXInstance(_0x5c8f34),_0x3c7e85=await _0x143bf0['run']({'options':{..._0x5c8f34,..._0x49287f},'args':[_0x43d0e9],'tdx':_0x2b50cf});process[_0x21f0bf(0xfd)](_0x3c7e85);});const parentCmd=segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x21c),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1b0)),parentListAction=async(_0x5d7be2,_0x130a37)=>{const _0x1a2992=a2_0x3025ae,_0x5c8498=new ParentSegmentListCommand(),_0x5aa0ee=program[_0x1a2992(0xa0)](),_0x5a9266=await createTDXInstance(_0x5aa0ee),_0x429b88=await _0x5c8498['run']({'options':{..._0x5aa0ee,..._0x130a37},'args':_0x5d7be2?[_0x5d7be2]:[],'tdx':_0x5a9266});process[_0x1a2992(0xfd)](_0x429b88);};parentCmd['command']('list\x20[pattern]')['description'](a2_0x3025ae(0x15a))[a2_0x3025ae(0x2d2)](parentListAction),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2bc),{'hidden':!![]})[a2_0x3025ae(0x27a)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x3025ae(0x2d2)](parentListAction),parentCmd['command'](a2_0x3025ae(0x1da))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x22d))[a2_0x3025ae(0x224)](a2_0x3025ae(0x143),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x5adc6e,_0x4c018d)=>{const _0x2e059b=a2_0x3025ae,_0x5b591d=new ParentSegmentPullCommand(),_0x1d3b0f=program[_0x2e059b(0xa0)](),_0x3569dc=await createTDXInstance(_0x1d3b0f),_0x332d40=await _0x5b591d[_0x2e059b(0x1e3)]({'options':{..._0x1d3b0f,..._0x4c018d},'args':_0x5adc6e?[_0x5adc6e]:[],'tdx':_0x3569dc});process['exit'](_0x332d40);}),parentCmd['command'](a2_0x3025ae(0x2b6))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x29c))['option'](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x72b31f,_0x106b26)=>{const _0x149c30=a2_0x3025ae,_0x2ea0b4=new ParentSegmentPushCommand(),_0x4a9e18=program[_0x149c30(0xa0)](),_0x5b036b=await createTDXInstance(_0x4a9e18),_0x1e7152=await _0x2ea0b4[_0x149c30(0x1e3)]({'options':{..._0x4a9e18,..._0x106b26},'args':_0x72b31f?[_0x72b31f]:[],'tdx':_0x5b036b});process[_0x149c30(0xfd)](_0x1e7152);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x271))[a2_0x3025ae(0x27a)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a3),a2_0x3025ae(0x10f))[a2_0x3025ae(0x224)]('--attribute\x20[name]',a2_0x3025ae(0x108))['option'](a2_0x3025ae(0x84),a2_0x3025ae(0xdd))[a2_0x3025ae(0x224)](a2_0x3025ae(0x232),a2_0x3025ae(0x268))[a2_0x3025ae(0x224)](a2_0x3025ae(0x293),a2_0x3025ae(0x185),'-1d')[a2_0x3025ae(0x2d2)](async(_0x2e7238,_0x1be2a3)=>{const _0x3b6f5c=a2_0x3025ae,_0x41c12f=new ParentSegmentValidateCommand(),_0x1ac4f9=program[_0x3b6f5c(0xa0)](),_0xf1f65d=await createTDXInstance(_0x1ac4f9),_0x2e3eb8=await _0x41c12f['run']({'options':{..._0x1ac4f9,..._0x1be2a3},'args':_0x2e7238?[_0x2e7238]:[],'tdx':_0xf1f65d});process['exit'](_0x2e3eb8);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x21d))[a2_0x3025ae(0x27a)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option']('--master',a2_0x3025ae(0x160))[a2_0x3025ae(0x224)]('--attribute\x20[name]',a2_0x3025ae(0x162))[a2_0x3025ae(0x224)](a2_0x3025ae(0x84),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x3025ae(0x232),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x293),a2_0x3025ae(0x185),a2_0x3025ae(0xca))[a2_0x3025ae(0x2d2)](async(_0x3906b5,_0x5c18b8)=>{const _0xb692f5=a2_0x3025ae,_0x2b22de=new ParentSegmentPreviewCommand(),_0x455f52=program['opts'](),_0x4a14a8=await createTDXInstance(_0x455f52),_0x2f49d6=await _0x2b22de[_0xb692f5(0x1e3)]({'options':{..._0x455f52,..._0x5c18b8},'args':_0x3906b5?[_0x3906b5]:[],'tdx':_0x4a14a8});process[_0xb692f5(0xfd)](_0x2f49d6);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x89))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x259))['option'](a2_0x3025ae(0x150),'Skip\x20confirmation\x20prompt')[a2_0x3025ae(0x2d2)](async(_0x2c2f17,_0x1c9f54)=>{const _0x4848c3=a2_0x3025ae,_0x4b502a=new ParentSegmentRunCommand(),_0x50cb51=program[_0x4848c3(0xa0)](),_0x13d8f1=await createTDXInstance(_0x50cb51),_0x267e74=await _0x4b502a['run']({'options':{..._0x50cb51,..._0x1c9f54},'args':_0x2c2f17?[_0x2c2f17]:[],'tdx':_0x13d8f1});process[_0x4848c3(0xfd)](_0x267e74);});const parentSegmentCmd=program[a2_0x3025ae(0x223)]('parent-segment')[a2_0x3025ae(0x213)]('ps')['description'](a2_0x3025ae(0x25c));parentSegmentCmd[a2_0x3025ae(0x223)]('list\x20[pattern]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x15a))['action'](parentListAction),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1da))['description'](a2_0x3025ae(0x99))[a2_0x3025ae(0x224)]('-o,\x20--output\x20<file>',a2_0x3025ae(0x243))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x224)](a2_0x3025ae(0x253),a2_0x3025ae(0x17e))[a2_0x3025ae(0x2d2)](async(_0x3a5ac3,_0x317b28)=>{const _0x40e353=a2_0x3025ae,_0x890a2b=new ParentSegmentPullCommand(),_0x465700=program[_0x40e353(0xa0)](),_0x1bc91f=await createTDXInstance(_0x465700),_0x5826b8=await _0x890a2b[_0x40e353(0x1e3)]({'options':{..._0x465700,..._0x317b28},'args':_0x3a5ac3?[_0x3a5ac3]:[],'tdx':_0x1bc91f});process['exit'](_0x5826b8);}),parentSegmentCmd[a2_0x3025ae(0x223)]('push\x20[name]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1cb))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),'Skip\x20confirmation\x20prompt')[a2_0x3025ae(0x2d2)](async(_0x32fbde,_0xc8e083)=>{const _0x574dae=a2_0x3025ae,_0x178429=new ParentSegmentPushCommand(),_0x1830e4=program[_0x574dae(0xa0)](),_0x13c861=await createTDXInstance(_0x1830e4),_0x2399ef=await _0x178429[_0x574dae(0x1e3)]({'options':{..._0x1830e4,..._0xc8e083},'args':_0x32fbde?[_0x32fbde]:[],'tdx':_0x13c861});process[_0x574dae(0xfd)](_0x2399ef);}),parentSegmentCmd['command'](a2_0x3025ae(0xa4))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a3),a2_0x3025ae(0x10f))['option'](a2_0x3025ae(0x2c5),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3025ae(0x224)](a2_0x3025ae(0x84),a2_0x3025ae(0xdd))[a2_0x3025ae(0x224)](a2_0x3025ae(0x232),a2_0x3025ae(0x268))['option'](a2_0x3025ae(0x293),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x3025ae(0x2d2)](async(_0x3859e1,_0x21ea7f)=>{const _0x328d85=a2_0x3025ae,_0x3ab0fc=new ParentSegmentValidateCommand(),_0x3c033e=program[_0x328d85(0xa0)](),_0x34e23c=await createTDXInstance(_0x3c033e),_0x5a6d74=await _0x3ab0fc[_0x328d85(0x1e3)]({'options':{..._0x3c033e,..._0x21ea7f},'args':_0x3859e1?[_0x3859e1]:[],'tdx':_0x34e23c});process[_0x328d85(0xfd)](_0x5a6d74);}),parentSegmentCmd[a2_0x3025ae(0x223)]('preview\x20[name]')['description'](a2_0x3025ae(0x1f4))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a3),a2_0x3025ae(0x160))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2c5),a2_0x3025ae(0x162))[a2_0x3025ae(0x224)](a2_0x3025ae(0x84),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x3025ae(0x232),a2_0x3025ae(0x24e))[a2_0x3025ae(0x224)](a2_0x3025ae(0x293),a2_0x3025ae(0x185),a2_0x3025ae(0xca))[a2_0x3025ae(0x2d2)](async(_0x1ac247,_0xf236b6)=>{const _0xcf3dbd=a2_0x3025ae,_0x2a5011=new ParentSegmentPreviewCommand(),_0x392fe4=program[_0xcf3dbd(0xa0)](),_0x50de2e=await createTDXInstance(_0x392fe4),_0x5c7994=await _0x2a5011[_0xcf3dbd(0x1e3)]({'options':{..._0x392fe4,..._0xf236b6},'args':_0x1ac247?[_0x1ac247]:[],'tdx':_0x50de2e});process[_0xcf3dbd(0xfd)](_0x5c7994);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x89))[a2_0x3025ae(0x27a)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))['action'](async(_0x8e7d65,_0x37ba1f)=>{const _0x57043c=a2_0x3025ae,_0x1b7f7e=new ParentSegmentRunCommand(),_0x371f09=program[_0x57043c(0xa0)](),_0x30be0b=await createTDXInstance(_0x371f09),_0xb5b78b=await _0x1b7f7e[_0x57043c(0x1e3)]({'options':{..._0x371f09,..._0x37ba1f},'args':_0x8e7d65?[_0x8e7d65]:[],'tdx':_0x30be0b});process[_0x57043c(0xfd)](_0xb5b78b);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xe6))[a2_0x3025ae(0x27a)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x120))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2be),a2_0x3025ae(0xf5))[a2_0x3025ae(0x2d2)](async(_0x724431,_0xe80bbf)=>{const _0x155c5b=a2_0x3025ae,_0x29e074=new ParentSegmentFieldsCommand(),_0x17267c=program['opts'](),_0x417157=await createTDXInstance(_0x17267c),_0x56cb9f=await _0x29e074[_0x155c5b(0x1e3)]({'options':{..._0x17267c,..._0xe80bbf},'args':_0x724431?[_0x724431]:[],'tdx':_0x417157});process[_0x155c5b(0xfd)](_0x56cb9f);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x195))['description'](a2_0x3025ae(0x1e1))['option'](a2_0x3025ae(0x18f),a2_0x3025ae(0x262))[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x120))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2be),a2_0x3025ae(0xf5))['action'](async(_0x3e22d2,_0x42ace0)=>{const _0x294ba2=a2_0x3025ae,_0x117d1e=new ParentSegmentViewCommand(),_0x38d559=program['opts'](),_0x2c2ffd=await createTDXInstance(_0x38d559),_0x286845=await _0x117d1e[_0x294ba2(0x1e3)]({'options':{..._0x38d559,..._0x42ace0},'args':_0x3e22d2?[_0x3e22d2]:[],'tdx':_0x2c2ffd});process[_0x294ba2(0xfd)](_0x286845);}),parentSegmentCmd[a2_0x3025ae(0x223)]('desc\x20[name]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1ea))[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),'Output\x20as\x20JSON')[a2_0x3025ae(0x224)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x3025ae(0x2d2)](async(_0x441057,_0x328f71)=>{const _0x2a932c=a2_0x3025ae,_0x1e98e6=new ParentSegmentDescCommand(),_0x458d22=program['opts'](),_0x9f6f60=await createTDXInstance(_0x458d22),_0x10b980=await _0x1e98e6['run']({'options':{..._0x458d22,..._0x328f71},'args':_0x441057?[_0x441057]:[],'tdx':_0x9f6f60});process[_0x2a932c(0xfd)](_0x10b980);}),parentSegmentCmd[a2_0x3025ae(0x223)]('sql\x20[name]')[a2_0x3025ae(0x27a)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x120))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2be),a2_0x3025ae(0xf5))[a2_0x3025ae(0x2d2)](async(_0x814009,_0x4ee240)=>{const _0x1b6a84=a2_0x3025ae,_0x4f61e0=new ParentSegmentSQLCommand(),_0x196090=program[_0x1b6a84(0xa0)](),_0x3c7073=await createTDXInstance(_0x196090),_0x295209=await _0x4f61e0[_0x1b6a84(0x1e3)]({'options':{..._0x196090,..._0x4ee240},'args':_0x814009?[_0x814009]:[],'tdx':_0x3c7073});process[_0x1b6a84(0xfd)](_0x295209);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x14e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x115))[a2_0x3025ae(0x224)](a2_0x3025ae(0xd9),a2_0x3025ae(0x166))[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x120))[a2_0x3025ae(0x224)]('--jsonl',a2_0x3025ae(0xf5))[a2_0x3025ae(0x2d2)](async(_0x143a2c,_0x1ab2d3)=>{const _0xbce785=a2_0x3025ae,_0x5f492f=new ParentSegmentShowCommand(),_0x2c9ea1=program[_0xbce785(0xa0)](),_0x4d2507=await createTDXInstance(_0x2c9ea1),_0x1ffb33=await _0x5f492f[_0xbce785(0x1e3)]({'options':{..._0x2c9ea1,..._0x1ab2d3},'args':_0x143a2c?[_0x143a2c]:[],'tdx':_0x4d2507});process[_0xbce785(0xfd)](_0x1ffb33);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x23b))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x128))[a2_0x3025ae(0x2d2)](async(_0x34cfa3,_0x12f34a)=>{const _0x4fcf20=a2_0x3025ae,_0x3196ef=new UseCommand(),_0x560441=program[_0x4fcf20(0xa0)](),_0x57ba39=_0x34cfa3?[_0x4fcf20(0x231),_0x34cfa3]:[],_0x1d4dd6=await _0x3196ef[_0x4fcf20(0x1e3)]({'options':{..._0x560441,..._0x12f34a},'args':_0x57ba39,'tdx':null});process[_0x4fcf20(0xfd)](_0x1d4dd6);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2b3))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x11d))[a2_0x3025ae(0x109)]('--database\x20<db>',a2_0x3025ae(0x294))[a2_0x3025ae(0x109)]('--table\x20<table>','Master\x20table\x20name')[a2_0x3025ae(0x224)]('--description\x20<text>',a2_0x3025ae(0xba))[a2_0x3025ae(0x224)](a2_0x3025ae(0x27f),a2_0x3025ae(0x257))['option'](a2_0x3025ae(0x2b4),a2_0x3025ae(0xd1))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2ad),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a0),a2_0x3025ae(0x164))[a2_0x3025ae(0x224)](a2_0x3025ae(0x192),a2_0x3025ae(0x1b5))[a2_0x3025ae(0x224)]('--behaviors\x20<json>',a2_0x3025ae(0x16c))['option'](a2_0x3025ae(0x1ee),a2_0x3025ae(0x159))[a2_0x3025ae(0x224)]('--customer-group\x20<json>',a2_0x3025ae(0x20f))['option']('--customer-group-file\x20<file>',a2_0x3025ae(0x275))['action'](async(_0x4aefa5,_0x5e6a73)=>{const _0x2c8058=a2_0x3025ae,_0x32cda3=new ParentSegmentCreateCommand(),_0x33afa9=program[_0x2c8058(0xa0)](),_0x176569=await createTDXInstance(_0x33afa9),_0x2dee75=await _0x32cda3['run']({'options':{..._0x33afa9,..._0x5e6a73},'args':[_0x4aefa5],'tdx':_0x176569});process[_0x2c8058(0xfd)](_0x2dee75);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x21f))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2ac))[a2_0x3025ae(0x224)]('--description\x20<text>',a2_0x3025ae(0x85))[a2_0x3025ae(0x224)]('--schedule-type\x20<type>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3025ae(0x224)](a2_0x3025ae(0x2b4),'Updated\x20schedule\x20option')[a2_0x3025ae(0x224)]('--timezone\x20<tz>','Updated\x20timezone')['option'](a2_0x3025ae(0x27d),a2_0x3025ae(0x284))[a2_0x3025ae(0x224)]('--add-attributes-file\x20<file>',a2_0x3025ae(0x133))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c7),a2_0x3025ae(0x105))[a2_0x3025ae(0x224)](a2_0x3025ae(0xb1),a2_0x3025ae(0x8f))['action'](async(_0x19e877,_0x53619b)=>{const _0x2f5890=a2_0x3025ae,_0x50eab8=new ParentSegmentUpdateCommand(),_0x282593=program[_0x2f5890(0xa0)](),_0x3ece55=await createTDXInstance(_0x282593),_0x42a358=await _0x50eab8['run']({'options':{..._0x282593,..._0x53619b},'args':[_0x19e877],'tdx':_0x3ece55});process[_0x2f5890(0xfd)](_0x42a358);}),folderCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1d7))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d6))['option'](a2_0x3025ae(0xd2),a2_0x3025ae(0xad))[a2_0x3025ae(0x224)](a2_0x3025ae(0x288),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0xc74ca2,_0x2e9b9b,_0x4208e6)=>{const _0x2b6d9c=a2_0x3025ae,_0x159aa2=new SegmentFolderCreateCommand(),_0x5b9d8b=program[_0x2b6d9c(0xa0)](),_0x19dfa6=await createTDXInstance(_0x5b9d8b),_0x58d679=await _0x159aa2[_0x2b6d9c(0x1e3)]({'options':{..._0x5b9d8b,..._0x4208e6},'args':[_0xc74ca2,_0x2e9b9b],'tdx':_0x19dfa6});process[_0x2b6d9c(0xfd)](_0x58d679);}),program[a2_0x3025ae(0x223)]('activations\x20<segment_name>')['description'](a2_0x3025ae(0x161))[a2_0x3025ae(0x2d2)](async(_0x3dba70,_0x24be96)=>{const _0x4c7932=a2_0x3025ae,_0x8b5a78=new ActivationsCommand(),_0x2e44d9=program[_0x4c7932(0xa0)](),_0x380017=await createTDXInstance(_0x2e44d9),_0x54135c=await _0x8b5a78[_0x4c7932(0x1e3)]({'options':{..._0x2e44d9,..._0x24be96},'args':[_0x3dba70],'tdx':_0x380017});process[_0x4c7932(0xfd)](_0x54135c);});const workflowCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x24d))[a2_0x3025ae(0x213)]('wf')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x238)),wfProjectCmd=workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1fa))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xb4)),wfProjectListAction=async(_0x40a230,_0x4fabcb)=>{const _0xfc0d9f=a2_0x3025ae,_0x4bfe8b=new WorkflowProjectsCommand(),_0x144f0d=program[_0xfc0d9f(0xa0)](),_0x43b5a4=await createTDXInstance(_0x144f0d),_0x55420e=await _0x4bfe8b['run']({'options':{..._0x144f0d,..._0x4fabcb},'args':_0x40a230?[_0x40a230]:[],'tdx':_0x43b5a4});process[_0xfc0d9f(0xfd)](_0x55420e);};wfProjectCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x216))[a2_0x3025ae(0x2d2)](wfProjectListAction),workflowCmd[a2_0x3025ae(0x223)]('projects\x20[pattern]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x242))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x29c716,_0x12eea6)=>{const _0x54b7d1=a2_0x3025ae,_0x268a56=new WorkflowWorkflowsCommand(),_0x51e4b2=program['opts'](),_0x46ae64=await createTDXInstance(_0x51e4b2),_0x475e28=await _0x268a56[_0x54b7d1(0x1e3)]({'options':{..._0x51e4b2,..._0x12eea6},'args':_0x29c716?[_0x29c716]:[],'tdx':_0x46ae64});process[_0x54b7d1(0xfd)](_0x475e28);};workflowCmd[a2_0x3025ae(0x223)]('workflows\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x19a))[a2_0x3025ae(0x2d2)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3025ae(0x223)]('session')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1fc)),wfSessionListAction=async(_0x489e9c,_0xf273bd)=>{const _0x221885=a2_0x3025ae,_0x4c5cda=new WorkflowSessionsCommand(),_0x51f3a1=program[_0x221885(0xa0)](),_0x2292c0=await createTDXInstance(_0x51f3a1),_0x1ccb26=await _0x4c5cda[_0x221885(0x1e3)]({'options':{..._0x51f3a1,..._0xf273bd},'args':_0x489e9c?[_0x489e9c]:[],'tdx':_0x2292c0});process[_0x221885(0xfd)](_0x1ccb26);};wfSessionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x155))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x273))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2b8),a2_0x3025ae(0x151))['option'](a2_0x3025ae(0xa2),a2_0x3025ae(0x17a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x23c),a2_0x3025ae(0x222))[a2_0x3025ae(0x2d2)](wfSessionListAction),workflowCmd['command']('sessions\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x158))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2b8),a2_0x3025ae(0x151))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa2),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x23c),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3025ae(0x2d2)](wfSessionListAction);const wfAttemptListAction=async(_0x3068fa,_0x57d110)=>{const _0x5a299e=a2_0x3025ae,_0x47cd85=new WorkflowAttemptsCommand(),_0x511c34=program[_0x5a299e(0xa0)](),_0x42c5fe=await createTDXInstance(_0x511c34),_0x35a3cc=await _0x47cd85[_0x5a299e(0x1e3)]({'options':{..._0x511c34,..._0x57d110},'args':_0x3068fa?[_0x3068fa]:[],'tdx':_0x42c5fe});process[_0x5a299e(0xfd)](_0x35a3cc);},attemptCmd=workflowCmd[a2_0x3025ae(0x223)]('attempt')[a2_0x3025ae(0x27a)]('Workflow\x20attempt\x20management')[a2_0x3025ae(0x2c6)](a2_0x3025ae(0x299),a2_0x3025ae(0x206))[a2_0x3025ae(0x2c6)](a2_0x3025ae(0xc2),a2_0x3025ae(0x11c))[a2_0x3025ae(0x2c6)](a2_0x3025ae(0x16b),a2_0x3025ae(0xa8))[a2_0x3025ae(0x224)](a2_0x3025ae(0xbe),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x3025ae(0x224)](a2_0x3025ae(0xa7),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x3025ae(0x224)](a2_0x3025ae(0x12a),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xce),a2_0x3025ae(0x2c3))['option']('--force',a2_0x3025ae(0x142))[a2_0x3025ae(0x224)]('--include-retried',a2_0x3025ae(0x1e0))[a2_0x3025ae(0x2d2)](async(_0x5ae7c2,_0x361ab9,_0x2005f5,_0x3dbda6)=>{const _0x3c3f79=a2_0x3025ae;if(_0x5ae7c2===_0x3c3f79(0xb5)){await wfAttemptListAction(_0x361ab9,_0x3dbda6);return;}if(!_0x5ae7c2){attemptCmd[_0x3c3f79(0x178)]();return;}const _0x5aa5f6=program['opts'](),_0x4a13a0=await createTDXInstance(_0x5aa5f6);let _0x2e6b79=0x0;if(!_0x361ab9){const _0x30751d=new WorkflowAttemptCommand();_0x2e6b79=await _0x30751d[_0x3c3f79(0x1e3)]({'options':{..._0x5aa5f6,..._0x3dbda6},'args':[_0x5ae7c2],'tdx':_0x4a13a0});}else{if(_0x361ab9===_0x3c3f79(0x2ab)){const _0x472950=new WorkflowLogsCommand();_0x2e6b79=await _0x472950[_0x3c3f79(0x1e3)]({'options':{..._0x5aa5f6,..._0x3dbda6},'args':_0x2005f5?[_0x5ae7c2,_0x2005f5]:[_0x5ae7c2],'tdx':_0x4a13a0});}else{if(_0x361ab9===_0x3c3f79(0xf4)){const _0x22f654=new WorkflowTasksCommand();_0x2e6b79=await _0x22f654['run']({'options':{..._0x5aa5f6,..._0x3dbda6},'args':[_0x5ae7c2],'tdx':_0x4a13a0});}else{if(_0x361ab9==='kill'){const _0x24cc6e=new WorkflowKillCommand();_0x2e6b79=await _0x24cc6e[_0x3c3f79(0x1e3)]({'options':{..._0x5aa5f6,..._0x3dbda6},'args':[_0x5ae7c2],'tdx':_0x4a13a0});}else{if(_0x361ab9===_0x3c3f79(0x19c)){const _0x38fcb6=new WorkflowRetryCommand();_0x2e6b79=await _0x38fcb6[_0x3c3f79(0x1e3)]({'options':{..._0x5aa5f6,..._0x3dbda6},'args':[_0x3c3f79(0x1f1)+_0x5ae7c2],'tdx':_0x4a13a0});}else console[_0x3c3f79(0x230)](_0x3c3f79(0x1c3)+_0x361ab9),console[_0x3c3f79(0x230)](_0x3c3f79(0x148)),_0x2e6b79=0x1;}}}}process[_0x3c3f79(0xfd)](_0x2e6b79);});attemptCmd[a2_0x3025ae(0x223)]('list\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x13a))['option'](a2_0x3025ae(0x1f6),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x3025ae(0x223)]('attempts\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x106))['option'](a2_0x3025ae(0x1f6),a2_0x3025ae(0x7f))['action'](wfAttemptListAction),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x24a))['description'](a2_0x3025ae(0x208))[a2_0x3025ae(0x224)]('--follow',a2_0x3025ae(0x80))[a2_0x3025ae(0x224)]('--session-id\x20<id>',a2_0x3025ae(0x241))[a2_0x3025ae(0x224)](a2_0x3025ae(0x215),a2_0x3025ae(0x176))[a2_0x3025ae(0x2d2)](async(_0x7d9c57,_0x4886fc)=>{const _0x16587b=a2_0x3025ae,_0x3db653=new WorkflowTimelineCommand(),_0x8d3ace=program['opts'](),_0x5762eb=await createTDXInstance(_0x8d3ace),_0x4be662=await _0x3db653[_0x16587b(0x1e3)]({'options':{..._0x8d3ace,..._0x4886fc},'args':_0x7d9c57?[_0x7d9c57]:[],'tdx':_0x5762eb});process['exit'](_0x4be662);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xd3))[a2_0x3025ae(0x27a)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x2c4),a2_0x3025ae(0x114))['option']('--params\x20<json>',a2_0x3025ae(0x1bf))[a2_0x3025ae(0x2d2)](async(_0x101bbc,_0x137e48)=>{const _0x4e67c6=a2_0x3025ae,_0x175de2=new WorkflowRetryCommand(),_0x51c316=program[_0x4e67c6(0xa0)](),_0x2d5572=await createTDXInstance(_0x51c316),_0xeab6cf=await _0x175de2['run']({'options':{..._0x51c316,..._0x137e48},'args':[_0x101bbc],'tdx':_0x2d5572});process[_0x4e67c6(0xfd)](_0xeab6cf);}),workflowCmd['command'](a2_0x3025ae(0xd0))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1cf))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1d1),a2_0x3025ae(0x1cd),(_0x2cf5d4,_0x428be1=[])=>[..._0x428be1,_0x2cf5d4],[])['option'](a2_0x3025ae(0x125),a2_0x3025ae(0x113))[a2_0x3025ae(0x2d2)](async(_0x2cb56b,_0x2f0892)=>{const _0xbf02df=a2_0x3025ae,_0x5429b2=new WorkflowRunCommand(),_0x360a80=program[_0xbf02df(0xa0)](),_0x3d58f0=await createTDXInstance(_0x360a80),_0x2156bc=await _0x5429b2[_0xbf02df(0x1e3)]({'options':{..._0x360a80,..._0x2f0892},'args':_0x2cb56b?[_0x2cb56b]:[],'tdx':_0x3d58f0});process[_0xbf02df(0xfd)](_0x2156bc);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x14a))['description'](a2_0x3025ae(0x1ef))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa3),a2_0x3025ae(0x101))[a2_0x3025ae(0x2d2)](async(_0x534a46,_0x4d7e87,_0x40a17a)=>{const _0x4264b3=a2_0x3025ae,_0x5bff5b=new WorkflowDownloadCommand(),_0x1296c9=program[_0x4264b3(0xa0)](),_0x4a03fc=await createTDXInstance(_0x1296c9),_0x55d5b2=await _0x5bff5b[_0x4264b3(0x1e3)]({'options':{..._0x1296c9,..._0x40a17a},'args':[_0x534a46,_0x4d7e87||'.'],'tdx':_0x4a03fc});process[_0x4264b3(0xfd)](_0x55d5b2);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x270))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xf2))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa3),a2_0x3025ae(0x254))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),a2_0x3025ae(0x1ac))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))['action'](async(_0x94579b,_0x443c97,_0x15df4f)=>{const _0xf2b743=a2_0x3025ae,_0x1a7d7f=new WorkflowPullCommand(),_0x562332=program['opts'](),_0x3c1ed4=await createTDXInstance(_0x562332),_0x90b6a1=await _0x1a7d7f['run']({'options':{..._0x562332,..._0x15df4f},'args':_0x443c97?[_0x94579b,_0x443c97]:[_0x94579b],'tdx':_0x3c1ed4});process[_0xf2b743(0xfd)](_0x90b6a1);}),workflowCmd['command']('push\x20[source-dir]')[a2_0x3025ae(0x27a)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x3025ae(0x224)]('--revision\x20<revision>',a2_0x3025ae(0x210))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),a2_0x3025ae(0xdc))['option'](a2_0x3025ae(0x191),a2_0x3025ae(0xc7))['option'](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x23978b,_0x18cc5e)=>{const _0x2b1dd1=a2_0x3025ae,_0x15928a=new WorkflowPushCommand(),_0x1e0cd2=program[_0x2b1dd1(0xa0)](),_0x4186cf=await createTDXInstance(_0x1e0cd2),_0xcb591c=await _0x15928a['run']({'options':{..._0x1e0cd2,..._0x18cc5e},'args':_0x23978b?[_0x23978b]:[],'tdx':_0x4186cf});process[_0x2b1dd1(0xfd)](_0xcb591c);}),workflowCmd[a2_0x3025ae(0x223)]('upload\x20[project-name-or-dir]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0xb7))[a2_0x3025ae(0x224)](a2_0x3025ae(0x19d),a2_0x3025ae(0x90))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa3),a2_0x3025ae(0x136))[a2_0x3025ae(0x224)](a2_0x3025ae(0x191),a2_0x3025ae(0xc7))[a2_0x3025ae(0x2d2)](async(_0x4e99d3,_0xc8ed36)=>{const _0x20bc6f=a2_0x3025ae,_0x2d5284=new WorkflowUploadCommand(),_0x4444ef=program[_0x20bc6f(0xa0)](),_0x2f9ce9=await createTDXInstance(_0x4444ef),_0x193f6d=await _0x2d5284[_0x20bc6f(0x1e3)]({'options':{..._0x4444ef,..._0xc8ed36},'args':_0x4e99d3?[_0x4e99d3]:[],'tdx':_0x2f9ce9});process[_0x20bc6f(0xfd)](_0x193f6d);}),workflowCmd[a2_0x3025ae(0x223)]('clone\x20[source-dir]')['description'](a2_0x3025ae(0x244))[a2_0x3025ae(0x224)](a2_0x3025ae(0x19d),a2_0x3025ae(0x1ae))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa3),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),'Preview\x20without\x20creating\x20the\x20project')[a2_0x3025ae(0x224)](a2_0x3025ae(0x191),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x2c8346,_0x4dd2fe)=>{const _0x31ec78=a2_0x3025ae,_0x208418=new WorkflowCloneCommand(),_0x413d1f=program[_0x31ec78(0xa0)](),_0x5a848e=await createTDXInstance(_0x413d1f),_0x465c34=await _0x208418[_0x31ec78(0x1e3)]({'options':{..._0x413d1f,..._0x4dd2fe},'args':_0x2c8346?[_0x2c8346]:[],'tdx':_0x5a848e});process['exit'](_0x465c34);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2a0))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x15e))['action'](async(_0x19049d,_0x47971e)=>{const _0x323a11=a2_0x3025ae,_0x36e3ad=new WorkflowDeleteCommand(),_0x55b911=program[_0x323a11(0xa0)](),_0x1133ed=await createTDXInstance(_0x55b911),_0x5d3cc3=await _0x36e3ad['run']({'options':{..._0x55b911,..._0x47971e},'args':[_0x19049d],'tdx':_0x1133ed});process[_0x323a11(0xfd)](_0x5d3cc3);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x23a))['description'](a2_0x3025ae(0x2a9))[a2_0x3025ae(0x224)]('--clear',a2_0x3025ae(0x25d))[a2_0x3025ae(0x2d2)](async(_0x4cf6ba,_0x2589d8)=>{const _0x9f746c=a2_0x3025ae,_0x36a7b8=new WorkflowUseCommand(),_0x398705=program[_0x9f746c(0xa0)](),_0x55d89a=await createTDXInstance(_0x398705),_0xe77619=await _0x36a7b8[_0x9f746c(0x1e3)]({'options':{..._0x398705,..._0x2589d8},'args':_0x4cf6ba?[_0x4cf6ba]:[],'tdx':_0x55d89a});process[_0x9f746c(0xfd)](_0xe77619);});const wfSecretsCmd=workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x170))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xfa));wfSecretsCmd[a2_0x3025ae(0x223)]('list\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x16f))[a2_0x3025ae(0x2d2)](async(_0xbfa37a,_0x1c41b8)=>{const _0x41ef7d=a2_0x3025ae,_0x266e46=new WorkflowSecretsListCommand(),_0x51463e=program[_0x41ef7d(0xa0)](),_0x5025b=await createTDXInstance(_0x51463e),_0x267d99=await _0x266e46[_0x41ef7d(0x1e3)]({'options':{..._0x51463e,..._0x1c41b8},'args':_0xbfa37a?[_0xbfa37a]:[],'tdx':_0x5025b});process['exit'](_0x267d99);}),wfSecretsCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1a1))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x23d))[a2_0x3025ae(0x2d2)](async(_0x55b5c1,_0x381500)=>{const _0x12ced7=a2_0x3025ae,_0x1fa64f=new WorkflowSecretsSetCommand(),_0x4255f7=program[_0x12ced7(0xa0)](),_0x551d37=await createTDXInstance(_0x4255f7),_0x7d4f91=await _0x1fa64f[_0x12ced7(0x1e3)]({'options':{..._0x4255f7,..._0x381500},'args':_0x55b5c1,'tdx':_0x551d37});process[_0x12ced7(0xfd)](_0x7d4f91);}),wfSecretsCmd[a2_0x3025ae(0x223)]('delete\x20<args...>')[a2_0x3025ae(0x27a)]('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x3216ef,_0x6518dc)=>{const _0x3bcb23=a2_0x3025ae,_0x3b7693=new WorkflowSecretsDeleteCommand(),_0x29271f=program['opts'](),_0x56faac=await createTDXInstance(_0x29271f),_0x208bc5=await _0x3b7693[_0x3bcb23(0x1e3)]({'options':{..._0x29271f,..._0x6518dc},'args':_0x3216ef,'tdx':_0x56faac});process['exit'](_0x208bc5);});const jobCmd=program[a2_0x3025ae(0x223)]('job')['description'](a2_0x3025ae(0x145)),jobListAction=async _0x51f64d=>{const _0x34b07d=a2_0x3025ae,_0x29991f=new JobListCommand(),_0x291720=program[_0x34b07d(0xa0)](),_0x551130=await createTDXInstance(_0x291720),_0x47e3e5=await _0x29991f[_0x34b07d(0x1e3)]({'options':{..._0x291720,..._0x51f64d},'args':[],'tdx':_0x551130});process['exit'](_0x47e3e5);};jobCmd['command'](a2_0x3025ae(0xb5))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x10b))['option'](a2_0x3025ae(0x2b8),a2_0x3025ae(0x22b))['action'](jobListAction),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1ec),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x11f))['option'](a2_0x3025ae(0x2b8),a2_0x3025ae(0x22b))[a2_0x3025ae(0x2d2)](jobListAction),jobCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1d2))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1b6))[a2_0x3025ae(0x2d2)](async(_0x1a0a3c,_0x338ee9)=>{const _0x4b34a1=a2_0x3025ae,_0x96515b=new JobShowCommand(),_0x44b32a=program[_0x4b34a1(0xa0)](),_0xf71c8c=await createTDXInstance(_0x44b32a),_0x2f6c23=await _0x96515b['run']({'options':{..._0x44b32a,..._0x338ee9},'args':[_0x1a0a3c],'tdx':_0xf71c8c});process['exit'](_0x2f6c23);}),jobCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x276))['description'](a2_0x3025ae(0x2c2))[a2_0x3025ae(0x2d2)](async(_0x12a7b4,_0x751e0e)=>{const _0x35b1a6=a2_0x3025ae,_0x3e483a=new JobKillCommand(),_0x1a3613=program[_0x35b1a6(0xa0)](),_0x43b7aa=await createTDXInstance(_0x1a3613),_0x36dc79=await _0x3e483a[_0x35b1a6(0x1e3)]({'options':{..._0x1a3613,..._0x751e0e},'args':[_0x12a7b4],'tdx':_0x43b7aa});process['exit'](_0x36dc79);}),jobCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x188))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x15b))['option']('--job-type\x20<type>',a2_0x3025ae(0x2d7),'trino')[a2_0x3025ae(0x224)]('-f,\x20--file\x20<path>',a2_0x3025ae(0x130))[a2_0x3025ae(0x224)]('--database\x20<name>',a2_0x3025ae(0x2a1),a2_0x3025ae(0x1e7))[a2_0x3025ae(0x2d2)](async(_0x7b47e6,_0x5967d)=>{const _0x33c7df=a2_0x3025ae,_0x9cea15=new JobSubmitCommand(),_0x558f20=program[_0x33c7df(0xa0)](),_0x67f09b=await createTDXInstance(_0x558f20),_0x346555=await _0x9cea15[_0x33c7df(0x1e3)]({'options':{..._0x558f20,..._0x5967d},'args':_0x7b47e6?[_0x7b47e6]:[],'tdx':_0x67f09b});process[_0x33c7df(0xfd)](_0x346555);}),jobCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1ad))['description'](a2_0x3025ae(0x121))[a2_0x3025ae(0x2d2)](async(_0x60be2a,_0x7d9f68)=>{const _0x16080c=a2_0x3025ae,_0x111daf=new JobResultCommand(),_0xaadf9=program[_0x16080c(0xa0)](),_0x4d17a7=await createTDXInstance(_0xaadf9),_0x1b025d=await _0x111daf[_0x16080c(0x1e3)]({'options':{..._0xaadf9,..._0x7d9f68},'args':[_0x60be2a],'tdx':_0x4d17a7});process[_0x16080c(0xfd)](_0x1b025d);});const llmCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1d5))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d4));llmCmd['command'](a2_0x3025ae(0x9d))[a2_0x3025ae(0x27a)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x3025ae(0x2d2)](async(_0xa12aa2,_0x307273)=>{const _0x14c870=a2_0x3025ae,_0x36ce56=new LLMUseCommand(),_0x2ca100=program[_0x14c870(0xa0)](),_0x2c45bf=await createTDXInstance(_0x2ca100),_0xc23a25=await _0x36ce56[_0x14c870(0x1e3)]({'options':{..._0x2ca100,..._0x307273},'args':[_0xa12aa2],'tdx':_0x2c45bf});process[_0x14c870(0xfd)](_0xc23a25);}),llmCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x20b))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x124))['action'](async _0x5810e4=>{const _0x591c56=a2_0x3025ae,_0x2dd22a=new LLMModelsCommand(),_0x428747=program[_0x591c56(0xa0)](),_0x316f35=await createTDXInstance(_0x428747),_0x507686=await _0x2dd22a[_0x591c56(0x1e3)]({'options':{..._0x428747,..._0x5810e4},'args':[],'tdx':_0x316f35});process[_0x591c56(0xfd)](_0x507686);});const projectCmd=llmCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1fa))[a2_0x3025ae(0x27a)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x4512e2,_0x5bb5de)=>{const _0x18bbcd=a2_0x3025ae,_0x49908a=new LLMProjectsCommand(),_0xe6d0f8=program['opts'](),_0x242691=await createTDXInstance(_0xe6d0f8),_0x4ea355=await _0x49908a[_0x18bbcd(0x1e3)]({'options':{..._0xe6d0f8,..._0x5bb5de},'args':_0x4512e2?[_0x4512e2]:[],'tdx':_0x242691});process['exit'](_0x4ea355);};projectCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x237))[a2_0x3025ae(0x2d2)](llmProjectListAction),llmCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12d))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x167))[a2_0x3025ae(0x2d2)](llmProjectListAction),projectCmd['command']('create\x20<name>')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2ca))[a2_0x3025ae(0x224)]('--description\x20<text>',a2_0x3025ae(0xe4))[a2_0x3025ae(0x2d2)](async(_0x29d73c,_0x58d1bf)=>{const _0x2b2ab8=a2_0x3025ae,_0x35943e=new LLMProjectCreateCommand(),_0xfffe92=program[_0x2b2ab8(0xa0)](),_0x40e1db=await createTDXInstance(_0xfffe92),_0x232d60=await _0x35943e['run']({'options':{..._0xfffe92,..._0x58d1bf},'args':[_0x29d73c],'tdx':_0x40e1db});process[_0x2b2ab8(0xfd)](_0x232d60);}),projectCmd[a2_0x3025ae(0x223)]('delete\x20<name>')[a2_0x3025ae(0x27a)](a2_0x3025ae(0xc3))[a2_0x3025ae(0x2d2)](async(_0x555682,_0x3d4af7)=>{const _0xca6514=a2_0x3025ae,_0x1c8706=new LLMProjectDeleteCommand(),_0x771f2d=program['opts'](),_0x5d4961=await createTDXInstance(_0x771f2d),_0x4c4d9e=await _0x1c8706['run']({'options':{..._0x771f2d,..._0x3d4af7},'args':[_0x555682],'tdx':_0x5d4961});process[_0xca6514(0xfd)](_0x4c4d9e);}),projectCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x292))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1b4))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1ff),'Output\x20folder\x20(default:\x20{project_name}.llm)')['option'](a2_0x3025ae(0x1a6),a2_0x3025ae(0xcc))['action'](async(_0x4ae1b9,_0x322b02)=>{const _0xaa98ce=a2_0x3025ae,_0x5f0a3f=new LLMProjectBackupCommand(),_0x3a908b=program['opts'](),_0x2beb86=await createTDXInstance(_0x3a908b),_0x417604=await _0x5f0a3f[_0xaa98ce(0x1e3)]({'options':{..._0x3a908b,..._0x322b02},'args':[_0x4ae1b9],'tdx':_0x2beb86});process[_0xaa98ce(0xfd)](_0x417604);}),projectCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x272))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x289))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a7),a2_0x3025ae(0x17c))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),a2_0x3025ae(0x20c))[a2_0x3025ae(0x2d2)](async(_0x511ed,_0x1d063b)=>{const _0x3d9406=a2_0x3025ae,_0x2f1651=new LLMProjectRestoreCommand(),_0x34b4d6=program['opts'](),_0xbbc8fa=await createTDXInstance(_0x34b4d6),_0x379c8d=await _0x2f1651[_0x3d9406(0x1e3)]({'options':{..._0x34b4d6,..._0x1d063b},'args':[_0x511ed],'tdx':_0xbbc8fa});process[_0x3d9406(0xfd)](_0x379c8d);});const llmAgentListAction=async(_0x274393,_0x3e9bb1)=>{const _0x624a70=a2_0x3025ae,_0xb468f2=new LLMAgentsCommand(),_0x29d6e6=program[_0x624a70(0xa0)](),_0x2fd39e=await createTDXInstance(_0x29d6e6),_0x4c7f66=await _0xb468f2[_0x624a70(0x1e3)]({'options':{..._0x29d6e6,..._0x3e9bb1},'args':_0x274393?[_0x274393]:[],'tdx':_0x2fd39e});process[_0x624a70(0xfd)](_0x4c7f66);};llmCmd['command'](a2_0x3025ae(0x174))['description'](a2_0x3025ae(0x16e))[a2_0x3025ae(0x2d2)](llmAgentListAction),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x174))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x16e))[a2_0x3025ae(0x2d2)](llmAgentListAction),llmCmd['command'](a2_0x3025ae(0x282))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xf3))[a2_0x3025ae(0x224)](a2_0x3025ae(0x220),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x3025ae(0x2d2)](async(_0x5f001c,_0x3efe61)=>{const _0x1232fe=a2_0x3025ae,_0x205d4e=new LLMHistoryCommand(),_0x1a2baf=program['opts'](),_0x10e58d=await createTDXInstance(_0x1a2baf),_0x3fd9a8=await _0x205d4e[_0x1232fe(0x1e3)]({'options':{..._0x1a2baf,..._0x3efe61},'args':_0x5f001c?[_0x5f001c]:[],'tdx':_0x10e58d});process[_0x1232fe(0xfd)](_0x3fd9a8);}),llmCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x103))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2d0))[a2_0x3025ae(0x224)](a2_0x3025ae(0x22c),a2_0x3025ae(0x95),'4000')['option'](a2_0x3025ae(0x2ce),a2_0x3025ae(0x22f))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1b9),a2_0x3025ae(0xbd))[a2_0x3025ae(0x2d2)](async _0x46544e=>{const _0x17bc37=a2_0x3025ae,_0x523a41=new LLMProxyCommand(),_0x155a7f=program[_0x17bc37(0xa0)](),_0x8934dd=await createTDXInstance(_0x155a7f),_0x17d2e2={..._0x46544e,'port':_0x46544e[_0x17bc37(0x1d8)]?parseInt(_0x46544e['port'],0xa):undefined},_0x3007f4=await _0x523a41[_0x17bc37(0x1e3)]({'options':{..._0x155a7f,..._0x17d2e2},'args':[],'tdx':_0x8934dd});process[_0x17bc37(0xfd)](_0x3007f4);}),program[a2_0x3025ae(0x223)]('claude\x20[args...]')[a2_0x3025ae(0x285)](a2_0x3025ae(0xaf))['description']('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x3025ae(0x224)](a2_0x3025ae(0x117),a2_0x3025ae(0x2b9),a2_0x3025ae(0x15f))['option']('-c,\x20--continue','Continue\x20most\x20recent\x20conversation')[a2_0x3025ae(0x224)](a2_0x3025ae(0x14d),a2_0x3025ae(0xc4))[a2_0x3025ae(0x224)](a2_0x3025ae(0x26d),a2_0x3025ae(0x92))['option'](a2_0x3025ae(0x219),a2_0x3025ae(0x26b))[a2_0x3025ae(0x14b)]()[a2_0x3025ae(0x2c0)](!![])[a2_0x3025ae(0xe2)](a2_0x3025ae(0x156),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x3025ae(0x2d2)](async(_0x574af6,_0x4cad80)=>{const _0x134617=a2_0x3025ae,_0x1ebc95=program[_0x134617(0xa0)](),_0x14f70b=Array['isArray'](_0x574af6)?_0x574af6:[];if(_0x14f70b[0x0]==='statusline'){const _0x96b750=new ClaudeStatuslineCommand(),_0x3cd41d=await _0x96b750[_0x134617(0x1e3)]({'options':{..._0x1ebc95,..._0x4cad80},'args':_0x14f70b[_0x134617(0x2bb)](0x1),'tdx':null});process[_0x134617(0xfd)](_0x3cd41d);}if(_0x14f70b[0x0]===_0x134617(0x285)){const _0x592384=new ClaudeUsageCommand(),_0x23474b=await _0x592384[_0x134617(0x1e3)]({'options':{..._0x1ebc95,..._0x4cad80},'args':_0x14f70b['slice'](0x1),'tdx':null});process[_0x134617(0xfd)](_0x23474b);}const _0x56bcb5=new ClaudeCommand(),_0x451fa9=await createTDXInstance(_0x1ebc95),_0x22e2df=await _0x56bcb5[_0x134617(0x1e3)]({'options':{..._0x1ebc95,..._0x4cad80},'args':_0x14f70b,'tdx':_0x451fa9});process['exit'](_0x22e2df);}),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x227))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x10c))[a2_0x3025ae(0x224)](a2_0x3025ae(0x18e),a2_0x3025ae(0x1ce))[a2_0x3025ae(0x2d2)](async(_0x2eb51d,_0x374f7e,_0x4549df)=>{const _0x177417=a2_0x3025ae,_0x3ad130=new UseCommand(),_0x38190f=program[_0x177417(0xa0)](),_0x54b8d1=[];if(_0x2eb51d)_0x54b8d1['push'](_0x2eb51d);if(_0x374f7e)_0x54b8d1[_0x177417(0x86)](_0x374f7e);const _0x1308f9=await _0x3ad130['run']({'options':{..._0x38190f,..._0x4549df},'args':_0x54b8d1,'tdx':null});process['exit'](_0x1308f9);}),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x198))['description'](a2_0x3025ae(0x279))[a2_0x3025ae(0x224)](a2_0x3025ae(0x220),a2_0x3025ae(0x1fd))[a2_0x3025ae(0x2d2)](async _0x36de90=>{const _0x5b8be7=a2_0x3025ae,_0x4c1c92=new ChatsCommand(),_0x17037f=program[_0x5b8be7(0xa0)](),_0x12e759=await createTDXInstance(_0x17037f),_0x3a7f58=await _0x4c1c92['run']({'options':{..._0x17037f,..._0x36de90},'args':[],'tdx':_0x12e759});process[_0x5b8be7(0xfd)](_0x3a7f58);});const authCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x183))['description'](a2_0x3025ae(0xc8));async function runAuthStatusCommand(_0x4e393a){const _0x5870c5=a2_0x3025ae,_0x393541=new AuthStatusCommand(),_0x375aef=program[_0x5870c5(0xa0)](),_0x4d16c7=await createTDXInstance(_0x375aef),_0x4d42cc=await _0x393541[_0x5870c5(0x1e3)]({'options':{..._0x375aef,..._0x4e393a},'args':[],'tdx':_0x4d16c7});process[_0x5870c5(0xfd)](_0x4d42cc);}authCmd[a2_0x3025ae(0x2d2)](runAuthStatusCommand),authCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1e8))['description']('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x3025ae(0x2d2)](runAuthStatusCommand),authCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xf0))[a2_0x3025ae(0x27a)]('Setup\x20API\x20key\x20authentication\x20interactively')['addHelpText'](a2_0x3025ae(0x156),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')['action'](async _0x5c341f=>{const _0x559253=a2_0x3025ae,_0x481b2f=new AuthSetupCommand(),_0x38b4ef=program[_0x559253(0xa0)](),_0x56d6a0=await createTDXInstance(_0x38b4ef),_0x397a90=await _0x481b2f[_0x559253(0x1e3)]({'options':{..._0x38b4ef,..._0x5c341f},'args':[],'tdx':_0x56d6a0});process[_0x559253(0xfd)](_0x397a90);}),authCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1a9))[a2_0x3025ae(0x27a)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x3025ae(0xe2)]('after',a2_0x3025ae(0xcb))[a2_0x3025ae(0x2d2)](async _0x2de696=>{const _0x3610d2=a2_0x3025ae,_0x57ad7c=new AuthClearCommand(),_0x16eb20=program['opts'](),_0x198502=await _0x57ad7c[_0x3610d2(0x1e3)]({'options':{..._0x16eb20,..._0x2de696},'args':[],'tdx':null});process[_0x3610d2(0xfd)](_0x198502);});const userCmd=program['command'](a2_0x3025ae(0x197))[a2_0x3025ae(0x27a)]('User\x20management\x20commands'),userListAction=async _0x1bcaf8=>{const _0x16200c=a2_0x3025ae,_0x544312=new UserListCommand(),_0x3bb125=program[_0x16200c(0xa0)](),_0x2057b4=await createTDXInstance(_0x3bb125),_0xacaa91=await _0x544312[_0x16200c(0x1e3)]({'options':{..._0x3bb125,..._0x1bcaf8},'args':[],'tdx':_0x2057b4});process[_0x16200c(0xfd)](_0xacaa91);};userCmd['action'](async _0x40a9a6=>{const _0x40e27a=a2_0x3025ae,_0x23305c=new UserCommand(),_0x374c74=program['opts'](),_0x52d53b=await createTDXInstance(_0x374c74),_0x43d734=await _0x23305c[_0x40e27a(0x1e3)]({'options':{..._0x374c74,..._0x40a9a6},'args':[],'tdx':_0x52d53b});process[_0x40e27a(0xfd)](_0x43d734);}),userCmd[a2_0x3025ae(0x223)]('list')[a2_0x3025ae(0x27a)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x3025ae(0x2d2)](userListAction),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1b7))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x135))[a2_0x3025ae(0x2d2)](userListAction),program[a2_0x3025ae(0x223)]('profiles')[a2_0x3025ae(0x27a)]('List\x20all\x20available\x20profiles')['action'](async _0x460658=>{const _0x1e2a4e=a2_0x3025ae,_0x12d86b=new ProfilesCommand(),_0x3aba69=program[_0x1e2a4e(0xa0)](),_0x4da4af=await _0x12d86b[_0x1e2a4e(0x1e3)]({'options':{..._0x3aba69,..._0x460658},'args':[],'tdx':null});process['exit'](_0x4da4af);});const profileCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0xe3))[a2_0x3025ae(0x27a)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x3025ae(0x2d2)](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x2a39a7=>{const _0x296f97=a2_0x3025ae,_0x5ec21e=new ProfilesCommand(),_0x19c1a4=program['opts'](),_0x5154f5=await _0x5ec21e['run']({'options':{..._0x19c1a4,..._0x2a39a7},'args':[],'tdx':null});process[_0x296f97(0xfd)](_0x5154f5);};profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xb5))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x182))[a2_0x3025ae(0x2d2)](profileListAction),profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x137))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x23f))[a2_0x3025ae(0xe2)](a2_0x3025ae(0x156),a2_0x3025ae(0x200))[a2_0x3025ae(0x2d2)](async(_0x174c74,_0x9380e9)=>{const _0x247b26=a2_0x3025ae,_0x3d01f8=new ProfileCreateCommand(),_0x288cf6=program[_0x247b26(0xa0)](),_0x91d71e=await _0x3d01f8[_0x247b26(0x1e3)]({'options':{..._0x288cf6,..._0x9380e9},'args':_0x174c74?[_0x174c74]:[],'tdx':null});process[_0x247b26(0xfd)](_0x91d71e);}),profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1c8))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1b3))[a2_0x3025ae(0xe2)](a2_0x3025ae(0x156),a2_0x3025ae(0x14c))[a2_0x3025ae(0x2d2)](async(_0x2b5f8f,_0x5278ac)=>{const _0x2273bf=a2_0x3025ae,_0x725e77=new ProfileRemoveCommand(),_0x223406=program[_0x2273bf(0xa0)](),_0x586b5e=await _0x725e77['run']({'options':{..._0x223406,..._0x5278ac},'args':[_0x2b5f8f],'tdx':null});process[_0x2273bf(0xfd)](_0x586b5e);}),profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xb2))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1f9))[a2_0x3025ae(0xe2)]('after',a2_0x3025ae(0x98))[a2_0x3025ae(0x2d2)](async(_0x1070c1,_0x21a0f3)=>{const _0x457105=a2_0x3025ae,_0x1a78ab=new ProfileSetCommand(),_0x5cea57=program[_0x457105(0xa0)](),_0x3db6b2=await _0x1a78ab[_0x457105(0x1e3)]({'options':{..._0x5cea57,..._0x21a0f3},'args':[_0x1070c1],'tdx':null});process[_0x457105(0xfd)](_0x3db6b2);}),profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xd4))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xf1))['addHelpText'](a2_0x3025ae(0x156),a2_0x3025ae(0xac))[a2_0x3025ae(0x2d2)](async(_0xe9fa13,_0x3a6525)=>{const _0x35d9db=a2_0x3025ae,_0x1517d3=new ProfileUseCommand(),_0xeb2bf9=program[_0x35d9db(0xa0)](),_0x464370=await _0x1517d3['run']({'options':{..._0xeb2bf9,..._0x3a6525},'args':[_0xe9fa13],'tdx':null});process['exit'](_0x464370);});const engageCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x163))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x138)),createEngageAction=_0x3fd699=>{return async(_0x238036,_0x58fecb)=>{const _0x4f3ace=a2_0x238e,_0x327361=new _0x3fd699(),_0x237827=program[_0x4f3ace(0xa0)](),_0x2e67da=await createTDXInstance(_0x237827),_0xccc7b2=await _0x327361[_0x4f3ace(0x1e3)]({'options':{..._0x237827,..._0x58fecb},'args':[_0x238036],'tdx':_0x2e67da});process[_0x4f3ace(0xfd)](_0xccc7b2);};},createEngageNoArgAction=_0x3b9976=>{return async _0x391a54=>{const _0x331fd3=a2_0x238e,_0x1a7191=new _0x3b9976(),_0x2f95ed=program[_0x331fd3(0xa0)](),_0x538229=await createTDXInstance(_0x2f95ed),_0x29aa57=await _0x1a7191['run']({'options':{..._0x2f95ed,..._0x391a54},'args':[],'tdx':_0x538229});process[_0x331fd3(0xfd)](_0x29aa57);};},campaignCmd=engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12b))['description'](a2_0x3025ae(0x1af)),campaignListAction=async(_0x1cdbd1,_0x170aad)=>{const _0x2a7fd7=a2_0x3025ae,_0x304fff=new EngageCampaignsCommand(),_0x30fc2c=program[_0x2a7fd7(0xa0)](),_0x136c13=await createTDXInstance(_0x30fc2c),_0x186891=await _0x304fff[_0x2a7fd7(0x1e3)]({'options':{..._0x30fc2c,..._0x170aad},'args':_0x1cdbd1?[_0x1cdbd1]:[],'tdx':_0x136c13});process[_0x2a7fd7(0xfd)](_0x186891);};campaignCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x19e))[a2_0x3025ae(0x224)]('--type\x20<type>',a2_0x3025ae(0xbf))['option'](a2_0x3025ae(0x2b8),a2_0x3025ae(0x123))[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](campaignListAction),engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xea))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x266))[a2_0x3025ae(0x224)]('--type\x20<type>',a2_0x3025ae(0xbf))['option'](a2_0x3025ae(0x2b8),a2_0x3025ae(0x123))[a2_0x3025ae(0x224)]('--workspace\x20<name>',a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](campaignListAction),campaignCmd[a2_0x3025ae(0x223)]('show\x20<name-or-id>')['description']('Show\x20campaign\x20details')['option'](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))['option']('--full',a2_0x3025ae(0x229))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x27e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x246))[a2_0x3025ae(0x109)]('--name\x20<name>',a2_0x3025ae(0x2d5))[a2_0x3025ae(0x109)](a2_0x3025ae(0x10d),a2_0x3025ae(0x26c))['option'](a2_0x3025ae(0x116),a2_0x3025ae(0x184))[a2_0x3025ae(0x224)](a2_0x3025ae(0x27c),a2_0x3025ae(0x204))[a2_0x3025ae(0x224)](a2_0x3025ae(0xff),a2_0x3025ae(0xb9))[a2_0x3025ae(0x224)](a2_0x3025ae(0xb8),'Email\x20sender\x20ID\x20for\x20delivery')['option']('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x17b),a2_0x3025ae(0x1f5))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2ad),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3025ae(0x223)]('update\x20<name-or-id>')['description'](a2_0x3025ae(0xd5))[a2_0x3025ae(0x224)]('--workspace\x20<name>',a2_0x3025ae(0x18a))['option'](a2_0x3025ae(0x19d),a2_0x3025ae(0x20e))[a2_0x3025ae(0x224)](a2_0x3025ae(0x27c),a2_0x3025ae(0x204))[a2_0x3025ae(0x224)](a2_0x3025ae(0xff),a2_0x3025ae(0xb9))[a2_0x3025ae(0x224)]('--email-sender-id\x20<id>',a2_0x3025ae(0x295))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2cb),a2_0x3025ae(0x203))[a2_0x3025ae(0x224)]('--start-at\x20<datetime>',a2_0x3025ae(0x1f5))[a2_0x3025ae(0x224)]('--timezone\x20<tz>',a2_0x3025ae(0x265))[a2_0x3025ae(0x2d2)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x14f))[a2_0x3025ae(0x27a)]('Delete\x20a\x20campaign')[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2d6),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x3025ae(0x2d4))[a2_0x3025ae(0x27a)]('Launch\x20a\x20campaign')[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x20a))[a2_0x3025ae(0x27a)]('Pause\x20a\x20campaign')[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),'Workspace\x20name')[a2_0x3025ae(0x2d2)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x15d))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x207))[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xfb))[a2_0x3025ae(0x27a)]('Duplicate\x20a\x20campaign')['option']('--workspace\x20<name>',a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](createEngageAction(EngageCampaignDuplicateCommand));function a2_0x238e(_0x2bc919,_0xc3f894){_0x2bc919=_0x2bc919-0x7b;const _0x58ac2e=a2_0x58ac();let _0x238e49=_0x58ac2e[_0x2bc919];return _0x238e49;}const templateCmd=engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x297))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x97)),templateListAction=async(_0xde7821,_0x4e9f09)=>{const _0x3a6e99=a2_0x3025ae,_0x57fcc9=new EngageTemplatesCommand(),_0x8a7b9f=program[_0x3a6e99(0xa0)](),_0x4a394e=await createTDXInstance(_0x8a7b9f),_0x161553=await _0x57fcc9[_0x3a6e99(0x1e3)]({'options':{..._0x8a7b9f,..._0x4e9f09},'args':_0xde7821?[_0xde7821]:[],'tdx':_0x4a394e});process[_0x3a6e99(0xfd)](_0x161553);};templateCmd[a2_0x3025ae(0x223)]('list\x20[pattern]')[a2_0x3025ae(0x27a)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](templateListAction),engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x179))['description'](a2_0x3025ae(0x7d))['option'](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))['action'](templateListAction),templateCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xe5))['description'](a2_0x3025ae(0x173))[a2_0x3025ae(0x224)]('--workspace\x20<name>',a2_0x3025ae(0x18a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x21b),a2_0x3025ae(0x229))[a2_0x3025ae(0x2d2)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x27e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x93))[a2_0x3025ae(0x109)]('--name\x20<name>','Template\x20name')['requiredOption'](a2_0x3025ae(0x2d1),a2_0x3025ae(0x8a))['requiredOption'](a2_0x3025ae(0x24f),a2_0x3025ae(0xe0))[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x184))[a2_0x3025ae(0x224)](a2_0x3025ae(0xc9),a2_0x3025ae(0x7e))[a2_0x3025ae(0x224)](a2_0x3025ae(0x165),a2_0x3025ae(0x1ca))[a2_0x3025ae(0x2d2)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x28a))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2cc))[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x19d),'New\x20template\x20name')[a2_0x3025ae(0x224)](a2_0x3025ae(0x2d1),a2_0x3025ae(0x8a))[a2_0x3025ae(0x224)]('--html\x20<html>',a2_0x3025ae(0xe0))[a2_0x3025ae(0x224)]('--plaintext\x20<text>',a2_0x3025ae(0x7e))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x3025ae(0x14f))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1df))['option'](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2d6),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x214))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x111)),workspaceListAction=async(_0x3dec3b,_0x23b1cb)=>{const _0x5c7cf8=a2_0x3025ae,_0x576948=new EngageWorkspacesCommand(),_0x24ad38=program['opts'](),_0x46cbe7=await createTDXInstance(_0x24ad38),_0x260dba=await _0x576948[_0x5c7cf8(0x1e3)]({'options':{..._0x24ad38,..._0x23b1cb},'args':_0x3dec3b?[_0x3dec3b]:[],'tdx':_0x46cbe7});process['exit'](_0x260dba);};workspaceCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d9))[a2_0x3025ae(0x2d2)](workspaceListAction),engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1c2))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x28b))[a2_0x3025ae(0x2d2)](workspaceListAction),workspaceCmd['command'](a2_0x3025ae(0xe5))[a2_0x3025ae(0x27a)]('Show\x20workspace\x20details')[a2_0x3025ae(0x224)](a2_0x3025ae(0x21b),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3025ae(0x2d2)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3025ae(0x223)]('create')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x27b))[a2_0x3025ae(0x109)](a2_0x3025ae(0x19d),'Workspace\x20name')[a2_0x3025ae(0x224)]('--description\x20<desc>',a2_0x3025ae(0x18d))[a2_0x3025ae(0x2d2)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x3025ae(0x28a))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xd6))[a2_0x3025ae(0x224)](a2_0x3025ae(0x19d),a2_0x3025ae(0x13f))[a2_0x3025ae(0x224)](a2_0x3025ae(0x27c),a2_0x3025ae(0x18d))[a2_0x3025ae(0x2d2)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3025ae(0x223)]('delete\x20<name-or-id>')[a2_0x3025ae(0x27a)]('Delete\x20a\x20workspace')['option'](a2_0x3025ae(0x2d6),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xd4))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xd7))['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x131))[a2_0x3025ae(0x27a)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x44c9fb=>{const _0x28abfa=a2_0x3025ae,_0x2a5a83=new ConnectionListCommand(),_0x2e8e5c=program[_0x28abfa(0xa0)](),_0x3f6efa=await createTDXInstance(_0x2e8e5c),_0x423ab7=await _0x2a5a83['run']({'options':{..._0x2e8e5c,..._0x44c9fb},'args':[],'tdx':_0x3f6efa});process[_0x28abfa(0xfd)](_0x423ab7);};connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xb5))[a2_0x3025ae(0x27a)]('List\x20all\x20data\x20connections')[a2_0x3025ae(0x2d2)](connectionListAction),program['command'](a2_0x3025ae(0x2b0),{'hidden':!![]})['description'](a2_0x3025ae(0x287))[a2_0x3025ae(0x2d2)](connectionListAction),connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x194))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x9c))[a2_0x3025ae(0x2d2)](async(_0x3adbd7,_0x75af3e)=>{const _0xfa909b=a2_0x3025ae,_0xcb9268=new ConnectionShowCommand(),_0x2be5f8=program['opts'](),_0x904094=await createTDXInstance(_0x2be5f8),_0x3297ca=await _0xcb9268[_0xfa909b(0x1e3)]({'options':{..._0x2be5f8,..._0x75af3e},'args':[_0x3adbd7],'tdx':_0x904094});process['exit'](_0x3297ca);}),connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2c9))[a2_0x3025ae(0x27a)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x3025ae(0x2d2)](async(_0x1add9d,_0x50511e)=>{const _0x3ad40a=a2_0x3025ae,_0x8c892a=new ConnectionSchemaCommand(),_0x402f7e=program['opts'](),_0x24df85=await createTDXInstance(_0x402f7e),_0x26c8cf=await _0x8c892a[_0x3ad40a(0x1e3)]({'options':{..._0x402f7e,..._0x50511e},'args':[_0x1add9d],'tdx':_0x24df85});process['exit'](_0x26c8cf);}),connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x172))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x11e))[a2_0x3025ae(0x2d2)](async _0x294ea4=>{const _0x2973cb=a2_0x3025ae,_0x2484c7=new ConnectionTypesCommand(),_0x120c4c=program[_0x2973cb(0xa0)](),_0x3107d4=await createTDXInstance(_0x120c4c),_0x13a1e1=await _0x2484c7[_0x2973cb(0x1e3)]({'options':{..._0x120c4c,..._0x294ea4},'args':[],'tdx':_0x3107d4});process[_0x2973cb(0xfd)](_0x13a1e1);}),connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x16a))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d3))[a2_0x3025ae(0x2d2)](async(_0x4cbb5a,_0x20ddbd)=>{const _0x320338=a2_0x3025ae,_0x501ae6=new ConnectionSettingsCommand(),_0x333e91=program[_0x320338(0xa0)](),_0x2003e3=await createTDXInstance(_0x333e91),_0x53fe51=await _0x501ae6[_0x320338(0x1e3)]({'options':{..._0x333e91,..._0x20ddbd},'args':[_0x4cbb5a],'tdx':_0x2003e3});process[_0x320338(0xfd)](_0x53fe51);});const journeyCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0xeb))[a2_0x3025ae(0x27a)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x3f0b76,_0x4536a4)=>{const _0x5503de=a2_0x3025ae,_0x171123=new JourneyListCommand(),_0x24385d=program[_0x5503de(0xa0)](),_0x35fec8=await createTDXInstance(_0x24385d),_0x2402ad=await _0x171123[_0x5503de(0x1e3)]({'options':{..._0x24385d,..._0x4536a4},'args':_0x3f0b76?[_0x3f0b76]:[],'tdx':_0x35fec8});process['exit'](_0x2402ad);};journeyCmd['command']('list\x20[pattern]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2b2))['action'](journeyListAction),journeyCmd[a2_0x3025ae(0x223)]('view\x20<name-or-path>')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x25a))[a2_0x3025ae(0x224)]('-w,\x20--web',a2_0x3025ae(0x190))[a2_0x3025ae(0x224)](a2_0x3025ae(0x26f),a2_0x3025ae(0x187))['action'](async(_0x2b6d45,_0x351c4a)=>{const _0x417c8d=a2_0x3025ae,_0x4a0ceb=new JourneyViewCommand(),_0x4dfe8b=program[_0x417c8d(0xa0)](),_0x4d9240=await createTDXInstance(_0x4dfe8b),_0x3abed2=await _0x4a0ceb[_0x417c8d(0x1e3)]({'options':{..._0x4dfe8b,..._0x351c4a},'args':[_0x2b6d45],'tdx':_0x4d9240});process[_0x417c8d(0xfd)](_0x3abed2);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2ba))[a2_0x3025ae(0x27a)]('Show\x20journey\x20statistics')['option'](a2_0x3025ae(0x1a4),a2_0x3025ae(0x298))['action'](async(_0x219c8c,_0x17921e)=>{const _0x526ed9=a2_0x3025ae,_0x20a64c=new JourneyStatsCommand(),_0x267010=program[_0x526ed9(0xa0)](),_0x5b52ba=await createTDXInstance(_0x267010),_0x4e46cc=await _0x20a64c[_0x526ed9(0x1e3)]({'options':{..._0x267010,..._0x17921e},'args':[_0x219c8c],'tdx':_0x5b52ba});process[_0x526ed9(0xfd)](_0x4e46cc);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12c))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2c7))[a2_0x3025ae(0x2d2)](async(_0x4567e0,_0xc7381a)=>{const _0x3f91df=a2_0x3025ae,_0x59bf57=new JourneyPauseCommand(),_0x273a58=program[_0x3f91df(0xa0)](),_0x4e83d1=await createTDXInstance(_0x273a58),_0x4743b4=await _0x59bf57['run']({'options':{..._0x273a58,..._0xc7381a},'args':[_0x4567e0],'tdx':_0x4e83d1});process[_0x3f91df(0xfd)](_0x4743b4);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x248))[a2_0x3025ae(0x27a)]('Resume\x20a\x20paused\x20journey')[a2_0x3025ae(0x2d2)](async(_0xdf9c28,_0x3f8331)=>{const _0x2229e1=a2_0x3025ae,_0x57b78f=new JourneyResumeCommand(),_0x5061d2=program[_0x2229e1(0xa0)](),_0xddf8d5=await createTDXInstance(_0x5061d2),_0x1709c7=await _0x57b78f[_0x2229e1(0x1e3)]({'options':{..._0x5061d2,..._0x3f8331},'args':[_0xdf9c28],'tdx':_0xddf8d5});process[_0x2229e1(0xfd)](_0x1709c7);}),journeyCmd['command'](a2_0x3025ae(0x1da))[a2_0x3025ae(0x27a)]('Export\x20journey(s)\x20as\x20YAML\x20files')['option'](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x224)]('--dry-run',a2_0x3025ae(0x82))[a2_0x3025ae(0x2d2)](async(_0x21ee7d,_0x2d45a8)=>{const _0xbcfbb3=a2_0x3025ae,_0x35319a=new JourneyPullCommand(),_0x5bf878=program['opts'](),_0x260b39=await createTDXInstance(_0x5bf878),_0x811eb6=await _0x35319a['run']({'options':{..._0x5bf878,..._0x2d45a8},'args':_0x21ee7d?[_0x21ee7d]:[],'tdx':_0x260b39});process[_0xbcfbb3(0xfd)](_0x811eb6);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2bd))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2aa))[a2_0x3025ae(0x2d2)](async(_0x183d52,_0x3f407b)=>{const _0x355615=a2_0x3025ae,_0x30b6ad=new JourneyPushCommand(),_0x21171f=program[_0x355615(0xa0)](),_0x46e0b6=await createTDXInstance(_0x21171f),_0x298d26=await _0x30b6ad['run']({'options':{..._0x21171f,..._0x3f407b},'args':_0x183d52?[_0x183d52]:[],'tdx':_0x46e0b6});process[_0x355615(0xfd)](_0x298d26);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d0))[a2_0x3025ae(0x2d2)](async(_0x38a545,_0x5ee418)=>{const _0x1d264f=a2_0x3025ae,_0x5cc5db=new JourneyValidateCommand(),_0x5ebde7=program['opts'](),_0x2053c6=await createTDXInstance(_0x5ebde7),_0x571647=await _0x5cc5db['run']({'options':{..._0x5ebde7,..._0x5ee418},'args':_0x38a545?[_0x38a545]:[],'tdx':_0x2053c6});process[_0x1d264f(0xfd)](_0x571647);}),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1f2))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x7b))[a2_0x3025ae(0x2d2)](journeyListAction);const agentSyncCmd=program['command'](a2_0x3025ae(0x126))[a2_0x3025ae(0x27a)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x13c))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x22a))['option'](a2_0x3025ae(0x23e),a2_0x3025ae(0x94))[a2_0x3025ae(0x224)](a2_0x3025ae(0x225),'Overwrite\x20local\x20changes\x20without\x20confirmation')[a2_0x3025ae(0x2d2)](async(_0x4c81f1,_0x5ea7a6,_0x49c875)=>{const _0x4ad9f2=a2_0x3025ae,_0x29613e=new AgentPullCommand(),_0x4ed1c7=program[_0x4ad9f2(0xa0)](),_0x430ff7=await createTDXInstance(_0x4ed1c7),_0x5bc563=[];if(_0x4c81f1)_0x5bc563[_0x4ad9f2(0x86)](_0x4c81f1);if(_0x5ea7a6)_0x5bc563[_0x4ad9f2(0x86)](_0x5ea7a6);const _0x43397e=await _0x29613e[_0x4ad9f2(0x1e3)]({'options':{..._0x4ed1c7,..._0x49c875},'args':_0x5bc563,'tdx':_0x430ff7});process[_0x4ad9f2(0xfd)](_0x43397e);}),agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xc0))[a2_0x3025ae(0x27a)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x3025ae(0x224)]('-f,\x20--force',a2_0x3025ae(0x264))['action'](async(_0x1b6050,_0x4af695)=>{const _0x4cbaf9=a2_0x3025ae,_0x4ae2b0=new AgentPushCommand(),_0x47fc59=program[_0x4cbaf9(0xa0)](),_0x4faaae=await createTDXInstance(_0x47fc59),_0x28eede=await _0x4ae2b0[_0x4cbaf9(0x1e3)]({'options':{..._0x47fc59,..._0x4af695},'args':_0x1b6050?[_0x1b6050]:[],'tdx':_0x4faaae});process[_0x4cbaf9(0xfd)](_0x28eede);}),agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xd8))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x112))['option'](a2_0x3025ae(0xf9),a2_0x3025ae(0x1ae))[a2_0x3025ae(0x2d2)](async(_0x158650,_0x2cddab)=>{const _0x5f2e3e=a2_0x3025ae,_0x3bb1d9=new AgentCloneCommand(),_0x20cedd=program[_0x5f2e3e(0xa0)](),_0x46d0fa=await createTDXInstance(_0x20cedd),_0x2c24ba=await _0x3bb1d9[_0x5f2e3e(0x1e3)]({'options':{..._0x20cedd,..._0x2cddab},'args':_0x158650?[_0x158650]:[],'tdx':_0x46d0fa});process[_0x5f2e3e(0xfd)](_0x2c24ba);}),agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xab))['description'](a2_0x3025ae(0xbc))[a2_0x3025ae(0x2d2)](llmAgentListAction),agentSyncCmd['command'](a2_0x3025ae(0x132))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x196))[a2_0x3025ae(0x2d2)](async(_0x32c645,_0x1668f6)=>{const _0x595fa1=a2_0x3025ae,_0x370237=new LLMAgentShowCommand(),_0x8f8d5c=program['opts'](),_0x5b55d4=await createTDXInstance(_0x8f8d5c),_0x210315=await _0x370237[_0x595fa1(0x1e3)]({'options':{..._0x8f8d5c,..._0x1668f6},'args':[_0x32c645],'tdx':_0x5b55d4});process['exit'](_0x210315);}),agentSyncCmd['command']('create\x20<name>')['description'](a2_0x3025ae(0x7c))[a2_0x3025ae(0x224)](a2_0x3025ae(0x13e),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x117),a2_0x3025ae(0x169),'claude-4.5-sonnet')['option']('--starter-message\x20<text>',a2_0x3025ae(0x118))['option'](a2_0x3025ae(0x149),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x3025ae(0x224)](a2_0x3025ae(0x26e),a2_0x3025ae(0x180),a2_0x3025ae(0x1ab))[a2_0x3025ae(0x2d2)](async(_0x2a38f0,_0x23a9e8)=>{const _0x1585dd=a2_0x3025ae,_0x18cc8c=new LLMAgentCreateCommand(),_0xfa9a6c=program[_0x1585dd(0xa0)](),_0x88528d=await createTDXInstance(_0xfa9a6c),_0x3e103e=await _0x18cc8c['run']({'options':{..._0xfa9a6c,..._0x23a9e8},'args':[_0x2a38f0],'tdx':_0x88528d});process[_0x1585dd(0xfd)](_0x3e103e);}),agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1c1))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x16d))['option'](a2_0x3025ae(0x8b),a2_0x3025ae(0x1bd))['option'](a2_0x3025ae(0x267),a2_0x3025ae(0x218))[a2_0x3025ae(0x224)](a2_0x3025ae(0xd2),a2_0x3025ae(0x283))[a2_0x3025ae(0x224)](a2_0x3025ae(0x152),'Starter\x20message')[a2_0x3025ae(0x2d2)](async(_0x59ce57,_0x1ba924)=>{const _0x4f5c64=a2_0x3025ae,_0x52f722=new LLMAgentUpdateCommand(),_0x56b008=program['opts'](),_0x18ef26=await createTDXInstance(_0x56b008),_0x2dc778=await _0x52f722[_0x4f5c64(0x1e3)]({'options':{..._0x56b008,..._0x1ba924},'args':[_0x59ce57],'tdx':_0x18ef26});process[_0x4f5c64(0xfd)](_0x2dc778);}),agentSyncCmd[a2_0x3025ae(0x223)]('delete\x20<agent-name>')['description']('Delete\x20an\x20agent')[a2_0x3025ae(0x2d2)](async(_0x124a37,_0x175bf2)=>{const _0x1f4f21=a2_0x3025ae,_0x5472da=new LLMAgentDeleteCommand(),_0x591f05=program[_0x1f4f21(0xa0)](),_0x17eb93=await createTDXInstance(_0x591f05),_0x507dd6=await _0x5472da[_0x1f4f21(0x1e3)]({'options':{..._0x591f05,..._0x175bf2},'args':[_0x124a37],'tdx':_0x17eb93});process[_0x1f4f21(0xfd)](_0x507dd6);});export{program};export function runCLI(){const _0x96bab1=a2_0x3025ae,_0x506b12=!process[_0x96bab1(0x20d)][_0x96bab1(0x2bb)](0x2)[_0x96bab1(0x15c)];showBriefHelp=_0x506b12,program['parse'](process[_0x96bab1(0x20d)]),_0x506b12&&program[_0x96bab1(0x127)](),process[_0x96bab1(0xe1)]['isTTY']&&process[_0x96bab1(0x20d)][_0x96bab1(0x15c)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x96bab1(0x153)](_0x4f0d40=>{_0x4f0d40&&displayUpdateNotification(_0x4f0d40);})[_0x96bab1(0x2d3)](()=>{});}
|
|
1
|
+
const a2_0x55b37c=a2_0x76ce;(function(_0x8e823b,_0x360757){const _0x416ad4=a2_0x76ce,_0x27a59f=_0x8e823b();while(!![]){try{const _0x4cd6f7=parseInt(_0x416ad4(0x23b))/0x1+-parseInt(_0x416ad4(0x8d))/0x2*(parseInt(_0x416ad4(0x2af))/0x3)+parseInt(_0x416ad4(0xb6))/0x4+parseInt(_0x416ad4(0x295))/0x5*(-parseInt(_0x416ad4(0x272))/0x6)+parseInt(_0x416ad4(0x19a))/0x7+parseInt(_0x416ad4(0x127))/0x8+-parseInt(_0x416ad4(0x12a))/0x9;if(_0x4cd6f7===_0x360757)break;else _0x27a59f['push'](_0x27a59f['shift']());}catch(_0xced1be){_0x27a59f['push'](_0x27a59f['shift']());}}}(a2_0x1574,0xd09a0));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';function a2_0x76ce(_0x2ed423,_0x199cbe){_0x2ed423=_0x2ed423-0x88;const _0x1574ee=a2_0x1574();let _0x76ceef=_0x1574ee[_0x2ed423];return _0x76ceef;}import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x55b37c(0x165)][a2_0x55b37c(0x1f1)](a2_0x55b37c(0xe1))){let versionOutput=a2_0x55b37c(0x1fb)+currentVersion;buildInfo[a2_0x55b37c(0x1af)]&&!currentVersion[a2_0x55b37c(0x1f1)](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x55b37c(0x218)]&&(versionOutput+=a2_0x55b37c(0x101)+buildInfo[a2_0x55b37c(0x218)]),console['log'](versionOutput),process[a2_0x55b37c(0x12d)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x55b37c(0x281);buildInfo[a2_0x55b37c(0x1af)]&&!currentVersion['includes'](buildInfo[a2_0x55b37c(0x1af)])?description+=',\x20version\x20'+currentVersion+'\x20('+buildInfo[a2_0x55b37c(0x1af)]+')':description+=a2_0x55b37c(0x16f)+currentVersion;program[a2_0x55b37c(0x230)]('tdx')[a2_0x55b37c(0x99)](description),program[a2_0x55b37c(0xe5)]('-C,\x20--directory\x20<path>',a2_0x55b37c(0x12f))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x118),a2_0x55b37c(0x91))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1c8),a2_0x55b37c(0x20f),a2_0x55b37c(0x271))['option'](a2_0x55b37c(0x1c4),a2_0x55b37c(0xd9))[a2_0x55b37c(0xe5)]('--table',a2_0x55b37c(0xa1))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x145),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1b6),a2_0x55b37c(0x267))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x8c),a2_0x55b37c(0xdb))[a2_0x55b37c(0xe5)]('--output\x20<file>',a2_0x55b37c(0x2c8))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xb9),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2ad),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x55b37c(0xe5)](a2_0x55b37c(0x259),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])['option']('-v,\x20--verbose','Enable\x20verbose\x20logging',![])['option']('--debug','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x55b37c(0xe5)]('--trace',a2_0x55b37c(0x23e))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1a6),a2_0x55b37c(0xdc),'30')[a2_0x55b37c(0xe5)]('--dry-run','Preview\x20operation\x20without\x20executing',![])[a2_0x55b37c(0xe5)](a2_0x55b37c(0x239),a2_0x55b37c(0x2d2),![])['option'](a2_0x55b37c(0x1ce),a2_0x55b37c(0x1ca))[a2_0x55b37c(0xe5)]('-d,\x20--database\x20<name>',a2_0x55b37c(0x26a))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x22e),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x55b37c(0xa3),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2aa),a2_0x55b37c(0x21b)),program[a2_0x55b37c(0x1db)]({'formatHelp':(_0x4e7486,_0x4a80ef)=>{const _0x54dc68=a2_0x55b37c,_0xdb5550=_0x4a80ef[_0x54dc68(0x10c)](_0x4e7486,_0x4a80ef),_0x2d58c9=0x2,_0x2ee572=0x2;function _0x4e0e3c(_0x22c7f1){const _0x2917de=_0x54dc68,_0x5cc1c5=_0x22c7f1;return!!(_0x5cc1c5[_0x2917de(0x2ca)]||_0x5cc1c5[_0x2917de(0x1eb)]);}function _0x3856bf(_0x2baa8d,_0x3deb5f){const _0x91f027=_0x54dc68;if(_0x3deb5f){const _0x22bd35=''+_0x2baa8d[_0x91f027(0x220)](_0xdb5550+_0x2ee572)+_0x3deb5f;return _0x22bd35;}return _0x2baa8d;}function _0x206a72(_0x541e5a){const _0x4fcd20=_0x54dc68;return _0x541e5a[_0x4fcd20(0x114)]('\x0a')[_0x4fcd20(0x196)](/^/gm,'\x20'[_0x4fcd20(0x24f)](_0x2d58c9));}const _0xf48a2f=[];_0xf48a2f[_0x54dc68(0x1f2)]('Usage:\x20'+_0x4a80ef[_0x54dc68(0xc0)](_0x4e7486));const _0x38ea99=_0x4a80ef['commandDescription'](_0x4e7486);_0x38ea99&&(_0xf48a2f[_0x54dc68(0x1f2)](''),_0xf48a2f[_0x54dc68(0x1f2)](_0x38ea99));const _0x41d3de=_0x4e7486[_0x54dc68(0x232)]['filter'](_0x2e0851=>!_0x4e0e3c(_0x2e0851));if(_0x41d3de[_0x54dc68(0x249)]>0x0){if(_0x4e7486[_0x54dc68(0x230)]()===_0x54dc68(0x2c5)){const _0x59de02=_0x4e7486[_0x54dc68(0x247)](),_0x77af7d=!_0x59de02['noColor']&&process[_0x54dc68(0xf0)]['isTTY'],_0x1ea797=COMMAND_CATEGORIES,_0x184de2=(_0x110222,_0x773f2c)=>_0x77af7d?_0x773f2c(_0x110222):_0x110222,_0x23ad31=new Map();_0x41d3de[_0x54dc68(0x10b)](_0x2d42e6=>{const _0x23433d=_0x54dc68;_0x23ad31[_0x23433d(0x255)](_0x2d42e6['name'](),_0x2d42e6);}),_0x1ea797['forEach'](_0x120206=>{const _0x5920dc=_0x54dc68,_0x1bdf35=_0x120206[_0x5920dc(0x232)][_0x5920dc(0x2b2)](_0x59e87f=>_0x23ad31[_0x5920dc(0x213)](_0x59e87f)??[]);if(_0x1bdf35[_0x5920dc(0x249)]>0x0){_0xf48a2f[_0x5920dc(0x1f2)](''),_0xf48a2f[_0x5920dc(0x1f2)](_0x184de2(_0x120206[_0x5920dc(0x230)]+':',_0x120206[_0x5920dc(0x142)]));const _0x4a259d=_0x1bdf35[_0x5920dc(0x25f)](_0x4fb8e4=>{const _0x11960c=_0x5920dc,_0x1e686a=_0x4a80ef['subcommandTerm'](_0x4fb8e4),_0xf1d4ad=_0x4a80ef[_0x11960c(0x279)](_0x4fb8e4);return _0x3856bf(_0x1e686a,_0xf1d4ad);});_0xf48a2f['push'](_0x206a72(_0x4a259d));}}),_0xf48a2f[_0x54dc68(0x1f2)](''),_0xf48a2f[_0x54dc68(0x1f2)](_0x54dc68(0x121));}else{const _0x18a1de=_0x41d3de[_0x54dc68(0x25f)](_0x19395d=>{const _0x532612=_0x54dc68,_0x466415=_0x4a80ef['subcommandTerm'](_0x19395d),_0x721462=_0x4a80ef[_0x532612(0x279)](_0x19395d);return _0x3856bf(_0x466415,_0x721462);});_0xf48a2f['push'](''),_0xf48a2f[_0x54dc68(0x1f2)]('Commands:'),_0xf48a2f[_0x54dc68(0x1f2)](_0x206a72(_0x18a1de));}}if(showBriefHelp&&_0x4e7486[_0x54dc68(0x230)]()===_0x54dc68(0x2c5))_0xf48a2f[_0x54dc68(0x1f2)](''),_0xf48a2f['push'](_0x54dc68(0x119));else{const _0x239c3f=_0x4e7486['options']['filter'](_0x1300a3=>!_0x4e0e3c(_0x1300a3));if(_0x239c3f[_0x54dc68(0x249)]>0x0){const _0x15273c=_0x239c3f[_0x54dc68(0x25f)](_0x50e428=>{const _0x3e587d=_0x4a80ef['optionTerm'](_0x50e428),_0x9a612d=_0x4a80ef['optionDescription'](_0x50e428);return _0x3856bf(_0x3e587d,_0x9a612d);});_0xf48a2f[_0x54dc68(0x1f2)](''),_0xf48a2f[_0x54dc68(0x1f2)](_0x54dc68(0x235)),_0xf48a2f[_0x54dc68(0x1f2)](_0x206a72(_0x15273c));}}const _0x5e1991=(_0x4e7486[_0x54dc68(0x2a6)]||[])[_0x54dc68(0x1be)](_0x77cf9b=>!_0x4e0e3c(_0x77cf9b));if(_0x5e1991[_0x54dc68(0x249)]>0x0){const _0x17d1ab=_0x5e1991[_0x54dc68(0x25f)](_0x36e7a0=>{const _0x337bbc=_0x54dc68,_0x2a746c=_0x4a80ef[_0x337bbc(0x1a3)](_0x36e7a0),_0x58fcb9=_0x4a80ef[_0x337bbc(0x236)](_0x36e7a0);return _0x3856bf(_0x2a746c,_0x58fcb9);});_0xf48a2f['push'](''),_0xf48a2f[_0x54dc68(0x1f2)](_0x54dc68(0x1c6)),_0xf48a2f['push'](_0x206a72(_0x17d1ab));}return _0xf48a2f[_0x54dc68(0x114)]('\x0a')+'\x0a';},'subcommandTerm':_0x2ffb6b=>{const _0x51ee36=a2_0x55b37c,_0x15a9c4=(_0x2ffb6b[_0x51ee36(0x2a6)]||[])[_0x51ee36(0x25f)](_0x48aeec=>_0x48aeec[_0x51ee36(0x16b)]?'<'+_0x48aeec[_0x51ee36(0x230)]()+'>':'['+_0x48aeec[_0x51ee36(0x230)]()+']')[_0x51ee36(0x114)]('\x20'),_0x59968f=_0x2ffb6b[_0x51ee36(0x1e4)](),_0x447158=_0x59968f['length']>0x0?_0x2ffb6b[_0x51ee36(0x230)]()+',\x20'+_0x59968f[_0x51ee36(0x114)](',\x20'):_0x2ffb6b[_0x51ee36(0x230)]();return _0x15a9c4?_0x447158+'\x20'+_0x15a9c4:_0x447158;}}),program[a2_0x55b37c(0x29c)](a2_0x55b37c(0x27f),_0xfd755=>{const _0x404830=a2_0x55b37c,_0x4c8e06=_0xfd755['opts']();if(_0x4c8e06['directory']){const _0x18b5d6=resolve(_0x4c8e06['directory']),_0x444c86=_0x18b5d6!==_0x4c8e06[_0x404830(0x193)]?'\x20(resolved\x20to\x20'+_0x18b5d6+')':'';if(!existsSync(_0x18b5d6))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x404830(0xd3)+_0x4c8e06['directory']+_0x444c86,undefined,{'helpText':_0x404830(0x2d9)});const _0x37383d=statSync(_0x18b5d6);if(!_0x37383d['isDirectory']())throw new SDKError(ErrorCode[_0x404830(0x15f)],_0x404830(0x285)+_0x4c8e06[_0x404830(0x193)]+_0x444c86,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process['chdir'](_0x18b5d6);}if(!_0x4c8e06[_0x404830(0x169)]){if(_0x4c8e06[_0x404830(0xba)])_0x4c8e06[_0x404830(0x169)]=_0x404830(0xba);else{if(_0x4c8e06['json'])_0x4c8e06[_0x404830(0x169)]=_0x404830(0xa0);else{if(_0x4c8e06[_0x404830(0x92)])_0x4c8e06[_0x404830(0x169)]=_0x404830(0x92);else _0x4c8e06[_0x404830(0x1cb)]&&(_0x4c8e06[_0x404830(0x169)]=_0x404830(0x1cb));}}}_0x4c8e06['in']&&!_0x4c8e06[_0x404830(0x174)]&&(_0x4c8e06[_0x404830(0x174)]=_0x4c8e06['in']);if(_0x4c8e06['trace'])_0x4c8e06[_0x404830(0x209)]=LogLevel['TRACE'];else{if(_0x4c8e06['debug'])_0x4c8e06[_0x404830(0x209)]=LogLevel[_0x404830(0x1b9)];else _0x4c8e06[_0x404830(0x209)]===undefined&&(_0x4c8e06[_0x404830(0x209)]=LogLevel['INFO']);}});async function createTDXInstance(_0x130e83){const _0x387e7c=a2_0x55b37c,_0x39bcbd=await GlobalContext[_0x387e7c(0x1c7)](_0x130e83);return _0x39bcbd['injectIntoOptions'](_0x130e83),TDX[_0x387e7c(0x24b)]({'site':_0x39bcbd[_0x387e7c(0x2da)],'apiKey':_0x39bcbd[_0x387e7c(0x282)],'logLevel':_0x39bcbd[_0x387e7c(0x209)],'profile':_0x39bcbd[_0x387e7c(0xf2)]});}const databaseCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x174))['alias']('db')[a2_0x55b37c(0x99)]('Database\x20management\x20commands'),databaseListAction=async(_0x5b9468,_0x207dd0)=>{const _0x50278e=a2_0x55b37c,_0x2176cd=new DatabasesCommand(),_0x5f1483=program[_0x50278e(0x247)](),_0x48da72=await createTDXInstance(_0x5f1483),_0xedca0c=await _0x2176cd[_0x50278e(0x16d)]({'options':{..._0x5f1483,..._0x207dd0},'args':_0x5b9468?[_0x5b9468]:[],'tdx':_0x48da72});process[_0x50278e(0x12d)](_0xedca0c);};databaseCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x103))[a2_0x55b37c(0x99)](a2_0x55b37c(0x110))['action'](databaseListAction),program[a2_0x55b37c(0x14c)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x55b37c(0x99)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x55b37c(0x2bf)](databaseListAction),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0xe2))[a2_0x55b37c(0x99)](a2_0x55b37c(0x20c))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2b0),a2_0x55b37c(0x1b7))[a2_0x55b37c(0xe5)]('--new',a2_0x55b37c(0x9a))['action'](async(_0x5826d4,_0x270790)=>{const _0x3578f0=a2_0x55b37c,_0x25b5e0=new ChatCommand(),_0x573ffb=program[_0x3578f0(0x247)](),_0x406e7c=await createTDXInstance(_0x573ffb),_0x1d964e=await _0x25b5e0['run']({'options':{..._0x573ffb,..._0x270790},'args':_0x5826d4,'tdx':_0x406e7c});process[_0x3578f0(0x12d)](_0x1d964e);});const apiCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0xb7))['summary'](a2_0x55b37c(0x182))[a2_0x55b37c(0x1f3)](a2_0x55b37c(0x205),a2_0x55b37c(0x1cd))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2b4),a2_0x55b37c(0x228),a2_0x55b37c(0x131))['option'](a2_0x55b37c(0x163),a2_0x55b37c(0x2b5))['option'](a2_0x55b37c(0x229),a2_0x55b37c(0x13e))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xf9),a2_0x55b37c(0xf8),(_0x3cf3ca,_0x272fe7)=>{return _0x272fe7?[..._0x272fe7,_0x3cf3ca]:[_0x3cf3ca];})['option']('--type\x20<api_type>',a2_0x55b37c(0xee),'td')['action'](async(_0x5b2855,_0x45e8de)=>{const _0x37b732=a2_0x55b37c;if(!_0x5b2855){apiCmd['help']();return;}const _0x105f15=new ApiCommand(),_0x20f6f9=program[_0x37b732(0x247)](),_0x55d4cd=await createTDXInstance(_0x20f6f9),_0x4d3076=await _0x105f15[_0x37b732(0x16d)]({'options':{..._0x20f6f9,..._0x45e8de},'args':[_0x5b2855],'tdx':_0x55d4cd});process[_0x37b732(0x12d)](_0x4d3076);}),tableCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0xba))[a2_0x55b37c(0x99)](a2_0x55b37c(0x224)),tableListAction=async(_0x388b47,_0x4bb83)=>{const _0x3c07da=a2_0x55b37c,_0x33e0a4=new TablesCommand(),_0x336eea=program[_0x3c07da(0x247)](),_0x2fda57=await createTDXInstance(_0x336eea);_0x4bb83['in']&&(_0x4bb83[_0x3c07da(0x174)]=_0x4bb83['in']);const _0x2504c3=await _0x33e0a4[_0x3c07da(0x16d)]({'options':{..._0x336eea,..._0x4bb83},'args':_0x388b47?[_0x388b47]:[],'tdx':_0x2fda57});process['exit'](_0x2504c3);};tableCmd[a2_0x55b37c(0x14c)]('list\x20[pattern]')[a2_0x55b37c(0x99)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x10a),a2_0x55b37c(0x21f))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x197),a2_0x55b37c(0x290))[a2_0x55b37c(0x2bf)](tableListAction),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x248),{'hidden':!![]})[a2_0x55b37c(0x99)](a2_0x55b37c(0x28e))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x10a),a2_0x55b37c(0x21f))[a2_0x55b37c(0xe5)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x55b37c(0x2bf)](tableListAction),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0xf6))['description'](a2_0x55b37c(0x1cf))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x10a),a2_0x55b37c(0xd4))[a2_0x55b37c(0xe5)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x55b37c(0x2bf)](async(_0xb195fb,_0x83304c)=>{const _0x3cfa38=a2_0x55b37c,_0x1b6e48=new ShowCommand(),_0xc271f6=program[_0x3cfa38(0x247)](),_0x106721=await createTDXInstance(_0xc271f6);_0x83304c['in']&&(_0x83304c['database']=_0x83304c['in']);const _0x8a2d59=await _0x1b6e48['run']({'options':{..._0xc271f6,..._0x83304c},'args':_0xb195fb?[_0xb195fb]:[],'tdx':_0x106721});process[_0x3cfa38(0x12d)](_0x8a2d59);}),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x18c))[a2_0x55b37c(0x181)](a2_0x55b37c(0x10d))['description'](a2_0x55b37c(0x2a8))['option'](a2_0x55b37c(0x10a),a2_0x55b37c(0xd4))['option']('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x55b37c(0x2bf)](async(_0x3bda37,_0x404eda)=>{const _0x2f64b4=a2_0x55b37c,_0x31ff44=new DescribeCommand(),_0x12c16d=program[_0x2f64b4(0x247)](),_0x1cba37=await createTDXInstance(_0x12c16d);_0x404eda['in']&&(_0x404eda[_0x2f64b4(0x174)]=_0x404eda['in']);const _0x4f5331=await _0x31ff44[_0x2f64b4(0x16d)]({'options':{..._0x12c16d,..._0x404eda},'args':_0x3bda37?[_0x3bda37]:[],'tdx':_0x1cba37});process[_0x2f64b4(0x12d)](_0x4f5331);}),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x117))['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x10a),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x197),a2_0x55b37c(0x290))['option']('--catalog\x20<catalog>',a2_0x55b37c(0x263))['option'](a2_0x55b37c(0x229),a2_0x55b37c(0x1a2))[a2_0x55b37c(0xe5)]('--limit\x20<rows>',a2_0x55b37c(0x1ab),'40')[a2_0x55b37c(0x2bf)](async(_0x20edfa,_0x55bee5)=>{const _0xc92c12=a2_0x55b37c,_0x76bad9=new QueryCommand(),_0x190567=program[_0xc92c12(0x247)](),_0x557987=await createTDXInstance(_0x190567);_0x55bee5['in']&&(_0x55bee5['database']=_0x55bee5['in']);const _0x4f8c3a=await _0x76bad9[_0xc92c12(0x16d)]({'options':{..._0x190567,..._0x55bee5},'args':_0x20edfa?[_0x20edfa]:[],'tdx':_0x557987});process[_0xc92c12(0x12d)](_0x4f8c3a);});const segmentCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x17f))[a2_0x55b37c(0x181)]('sg')['description'](a2_0x55b37c(0xa9)),segmentListAction=async(_0x32d2c9,_0x38c7d4)=>{const _0x90bc43=a2_0x55b37c,_0x5c4a6e=new SegmentsCommand(),_0x23d80d=program[_0x90bc43(0x247)](),_0x4c649b=await createTDXInstance(_0x23d80d),_0x12fceb=await _0x5c4a6e['run']({'options':{..._0x23d80d,..._0x38c7d4},'args':_0x32d2c9?[_0x32d2c9]:[],'tdx':_0x4c649b});process[_0x90bc43(0x12d)](_0x12fceb);};segmentCmd['command'](a2_0x55b37c(0xcf))['description']('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x22f),a2_0x55b37c(0x12c))[a2_0x55b37c(0xe5)]('--max-depth\x20<depth>',a2_0x55b37c(0x278),'10')['action'](segmentListAction),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x225),{'hidden':!![]})['description']('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x22f),a2_0x55b37c(0x12c))['option'](a2_0x55b37c(0x115),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['action'](segmentListAction),segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x2c1),{'hidden':!![]})[a2_0x55b37c(0x99)](a2_0x55b37c(0x2c0))[a2_0x55b37c(0x2bf)](async(_0x61a5ec,_0x53e585)=>{const _0x2ce249=a2_0x55b37c,_0x11a2f0=new SegmentUseCommand(),_0x540f18=program[_0x2ce249(0x247)](),_0x484ac3=await createTDXInstance(_0x540f18),_0x506b58=await _0x11a2f0['run']({'options':{..._0x540f18,..._0x53e585},'args':[_0x61a5ec],'tdx':_0x484ac3});process[_0x2ce249(0x12d)](_0x506b58);});const segmentViewAction=async(_0x5c8306,_0x478d49)=>{const _0x3248e2=a2_0x55b37c,_0x54f8e8=new SegmentViewCommand(),_0x1b9c30=program[_0x3248e2(0x247)](),_0x5d1438=await createTDXInstance(_0x1b9c30),_0x389a6e=await _0x54f8e8[_0x3248e2(0x16d)]({'options':{..._0x1b9c30,..._0x478d49},'args':_0x5c8306?[_0x5c8306]:[],'tdx':_0x5d1438});process[_0x3248e2(0x12d)](_0x389a6e);};segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xc4))[a2_0x55b37c(0x99)](a2_0x55b37c(0xf4))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x17c),a2_0x55b37c(0x297))[a2_0x55b37c(0x2bf)](segmentViewAction),segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x226),{'hidden':!![]})[a2_0x55b37c(0x181)]('describe')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x17c),a2_0x55b37c(0x297))[a2_0x55b37c(0x99)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x55b37c(0x2bf)](segmentViewAction),segmentCmd[a2_0x55b37c(0x14c)]('desc\x20[segment_name]')[a2_0x55b37c(0x99)](a2_0x55b37c(0xd7))[a2_0x55b37c(0x2bf)](async(_0x57b2dd,_0x290c18)=>{const _0x54f90b=a2_0x55b37c,_0x2c2e76=new SegmentDescCommand(),_0x436789=program['opts'](),_0x269672=await createTDXInstance(_0x436789),_0x42d3c9=await _0x2c2e76[_0x54f90b(0x16d)]({'options':{..._0x436789,..._0x290c18},'args':_0x57b2dd?[_0x57b2dd]:[],'tdx':_0x269672});process['exit'](_0x42d3c9);}),segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x243))[a2_0x55b37c(0x99)](a2_0x55b37c(0x2c2))[a2_0x55b37c(0x2bf)](async(_0x3ab1a9,_0x272beb)=>{const _0x13eebb=a2_0x55b37c,_0x22387c=new SegmentShowCommand(),_0x396c99=program[_0x13eebb(0x247)](),_0x5699ae=await createTDXInstance(_0x396c99),_0x1facf6=await _0x22387c[_0x13eebb(0x16d)]({'options':{..._0x396c99,..._0x272beb},'args':_0x3ab1a9?[_0x3ab1a9]:[],'tdx':_0x5699ae});process[_0x13eebb(0x12d)](_0x1facf6);}),segmentCmd[a2_0x55b37c(0x14c)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x55b37c(0x99)](a2_0x55b37c(0x187))[a2_0x55b37c(0x2bf)](async(_0x478ba6,_0x3d835d)=>{const _0x3b3f7d=a2_0x55b37c,_0x41cdfd=new SegmentFolderListCommand(),_0x57f6b1=program[_0x3b3f7d(0x247)](),_0x176fb5=await createTDXInstance(_0x57f6b1),_0xa24585=await _0x41cdfd[_0x3b3f7d(0x16d)]({'options':{..._0x57f6b1,..._0x3d835d},'args':[_0x478ba6],'tdx':_0x176fb5});process[_0x3b3f7d(0x12d)](_0xa24585);});const folderCmd=segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1f5),{'hidden':!![]})[a2_0x55b37c(0x99)](a2_0x55b37c(0x237));folderCmd['command'](a2_0x55b37c(0x2bd))[a2_0x55b37c(0x99)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x55b37c(0x2bf)](async(_0x5d599b,_0x58e4eb)=>{const _0xe44b3e=a2_0x55b37c,_0x4d9220=new SegmentFolderShowCommand(),_0x558f7e=program[_0xe44b3e(0x247)](),_0x385312=await createTDXInstance(_0x558f7e),_0x268e8d=await _0x4d9220[_0xe44b3e(0x16d)]({'options':{..._0x558f7e,..._0x58e4eb},'args':[_0x5d599b],'tdx':_0x385312});process[_0xe44b3e(0x12d)](_0x268e8d);}),segmentCmd['command']('sql\x20[segment_name]')['description'](a2_0x55b37c(0x223))[a2_0x55b37c(0x2bf)](async(_0x4843b5,_0x40da98)=>{const _0xf42f19=a2_0x55b37c,_0x1c6d7f=new SegmentSQLCommand(),_0x323bb5=program[_0xf42f19(0x247)](),_0x2778d4=await createTDXInstance(_0x323bb5),_0x33a338=await _0x1c6d7f[_0xf42f19(0x16d)]({'options':{..._0x323bb5,..._0x40da98},'args':_0x4843b5?[_0x4843b5]:[],'tdx':_0x2778d4});process[_0xf42f19(0x12d)](_0x33a338);}),segmentCmd[a2_0x55b37c(0x14c)]('fields\x20[parent_name]')[a2_0x55b37c(0x99)](a2_0x55b37c(0x1a5))['action'](async(_0x2a8ed0,_0x571fe1)=>{const _0x5cc1fc=a2_0x55b37c,_0xf1995c=new SegmentFieldsCommand(),_0x5c802d=program[_0x5cc1fc(0x247)](),_0xd29f54=await createTDXInstance(_0x5c802d),_0x277957=await _0xf1995c[_0x5cc1fc(0x16d)]({'options':{..._0x5c802d,..._0x571fe1},'args':_0x2a8ed0?[_0x2a8ed0]:[],'tdx':_0xd29f54});process['exit'](_0x277957);}),segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x120))[a2_0x55b37c(0x99)](a2_0x55b37c(0xde))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x239),a2_0x55b37c(0x2d2))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1e1),a2_0x55b37c(0x143))[a2_0x55b37c(0x2bf)](async(_0x218a8e,_0x397864)=>{const _0x9e883a=a2_0x55b37c,_0x2b1353=new SegmentPullCommand(),_0x263bf9=program[_0x9e883a(0x247)](),_0x1e260f=await createTDXInstance(_0x263bf9),_0x294478=await _0x2b1353[_0x9e883a(0x16d)]({'options':{..._0x263bf9,..._0x397864},'args':_0x218a8e?[_0x218a8e]:[],'tdx':_0x1e260f});process[_0x9e883a(0x12d)](_0x294478);}),segmentCmd[a2_0x55b37c(0x14c)]('push\x20[parent_or_file]')[a2_0x55b37c(0x99)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x55b37c(0xe5)]('-y,\x20--yes',a2_0x55b37c(0x2d2))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1e1),a2_0x55b37c(0x143))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x22c),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')['action'](async(_0x17b772,_0x465c70)=>{const _0x22aa09=a2_0x55b37c,_0x4a3662=new SegmentPushCommand(),_0x285ec1=program[_0x22aa09(0x247)](),_0x515ba4=await createTDXInstance(_0x285ec1),_0x440415=await _0x4a3662['run']({'options':{..._0x285ec1,..._0x465c70},'args':_0x17b772?[_0x17b772]:[],'tdx':_0x515ba4});process[_0x22aa09(0x12d)](_0x440415);}),segmentCmd['command'](a2_0x55b37c(0x89))[a2_0x55b37c(0x99)](a2_0x55b37c(0x166))[a2_0x55b37c(0x2bf)](async(_0x125746,_0x106e0f)=>{const _0x41f4d2=a2_0x55b37c,_0x12d8d5=new SegmentValidateCommand(),_0x4e6a59=program[_0x41f4d2(0x247)](),_0x31d500=await createTDXInstance(_0x4e6a59),_0x27202b=await _0x12d8d5[_0x41f4d2(0x16d)]({'options':{..._0x4e6a59,..._0x106e0f},'args':_0x125746?[_0x125746]:[],'tdx':_0x31d500});process[_0x41f4d2(0x12d)](_0x27202b);}),segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1dd),{'hidden':!![]})['description'](a2_0x55b37c(0xfc))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2d5),a2_0x55b37c(0x2a3))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x14b),a2_0x55b37c(0x210))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2d4),a2_0x55b37c(0x2cf))[a2_0x55b37c(0xe5)]('--folder\x20<name>','Folder\x20name\x20for\x20organization')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x146),a2_0x55b37c(0x11a))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2ae),a2_0x55b37c(0x22a))['option'](a2_0x55b37c(0xef),a2_0x55b37c(0x18f))['action'](async(_0x16cade,_0x3a6017)=>{const _0x465a35=a2_0x55b37c,_0xb3aa2c=new SegmentCreateCommand(),_0x3dfe8e=program[_0x465a35(0x247)](),_0x48de7c=await createTDXInstance(_0x3dfe8e),_0x3f0575=await _0xb3aa2c[_0x465a35(0x16d)]({'options':{..._0x3dfe8e,..._0x3a6017},'args':[_0x16cade],'tdx':_0x48de7c});process[_0x465a35(0x12d)](_0x3f0575);}),segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x139),{'hidden':!![]})[a2_0x55b37c(0x99)](a2_0x55b37c(0x14f))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x18a),a2_0x55b37c(0x201))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2d5),a2_0x55b37c(0xe6))[a2_0x55b37c(0xe5)]('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x55b37c(0xe5)]('--rule-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x55b37c(0x20d),a2_0x55b37c(0x20e))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x146),a2_0x55b37c(0x11a))[a2_0x55b37c(0x2bf)](async(_0x182ba3,_0x3817c5)=>{const _0x479563=a2_0x55b37c,_0xe8c893=new SegmentUpdateCommand(),_0xc012bb=program[_0x479563(0x247)](),_0x4fba21=await createTDXInstance(_0xc012bb),_0x131d90=await _0xe8c893[_0x479563(0x16d)]({'options':{..._0xc012bb,..._0x3817c5},'args':[_0x182ba3],'tdx':_0x4fba21});process[_0x479563(0x12d)](_0x131d90);});const parentCmd=segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1ed),{'hidden':!![]})['description'](a2_0x55b37c(0x29d)),parentListAction=async(_0x11fc1f,_0x3212b0)=>{const _0x14084a=a2_0x55b37c,_0x389159=new ParentSegmentListCommand(),_0x2d9d81=program[_0x14084a(0x247)](),_0x457c81=await createTDXInstance(_0x2d9d81),_0x2f9f55=await _0x389159['run']({'options':{..._0x2d9d81,..._0x3212b0},'args':_0x11fc1f?[_0x11fc1f]:[],'tdx':_0x457c81});process[_0x14084a(0x12d)](_0x2f9f55);};parentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x103))[a2_0x55b37c(0x99)](a2_0x55b37c(0x24c))[a2_0x55b37c(0x2bf)](parentListAction),segmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x156),{'hidden':!![]})['description']('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x55b37c(0x2bf)](parentListAction),parentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xac))['description'](a2_0x55b37c(0xd5))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x18b),a2_0x55b37c(0x130))['option'](a2_0x55b37c(0x239),a2_0x55b37c(0x100))['action'](async(_0x246fc2,_0x4b0fdc)=>{const _0x11fa12=a2_0x55b37c,_0x107c18=new ParentSegmentPullCommand(),_0x5547e2=program[_0x11fa12(0x247)](),_0x5dae2c=await createTDXInstance(_0x5547e2),_0x28cdee=await _0x107c18[_0x11fa12(0x16d)]({'options':{..._0x5547e2,..._0x4b0fdc},'args':_0x246fc2?[_0x246fc2]:[],'tdx':_0x5dae2c});process['exit'](_0x28cdee);}),parentCmd[a2_0x55b37c(0x14c)]('push\x20[file]')[a2_0x55b37c(0x99)](a2_0x55b37c(0x2bc))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x239),a2_0x55b37c(0x100))[a2_0x55b37c(0x2bf)](async(_0x4a0e1e,_0x5bd3dc)=>{const _0x37ab6d=a2_0x55b37c,_0xa1b466=new ParentSegmentPushCommand(),_0x175815=program[_0x37ab6d(0x247)](),_0x2425f5=await createTDXInstance(_0x175815),_0x190e09=await _0xa1b466[_0x37ab6d(0x16d)]({'options':{..._0x175815,..._0x5bd3dc},'args':_0x4a0e1e?[_0x4a0e1e]:[],'tdx':_0x2425f5});process[_0x37ab6d(0x12d)](_0x190e09);}),parentCmd[a2_0x55b37c(0x14c)]('validate\x20[file]')[a2_0x55b37c(0x99)](a2_0x55b37c(0x1e3))['option'](a2_0x55b37c(0x190),a2_0x55b37c(0x1fa))['option'](a2_0x55b37c(0x207),a2_0x55b37c(0x1c0))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xff),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x55b37c(0x1f9),a2_0x55b37c(0x97))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2d8),a2_0x55b37c(0x2a9),'-1d')['action'](async(_0x5788bc,_0x518a3b)=>{const _0x3daaa0=a2_0x55b37c,_0x40da55=new ParentSegmentValidateCommand(),_0x42aa93=program[_0x3daaa0(0x247)](),_0x4354da=await createTDXInstance(_0x42aa93),_0x3a3100=await _0x40da55[_0x3daaa0(0x16d)]({'options':{..._0x42aa93,..._0x518a3b},'args':_0x5788bc?[_0x5788bc]:[],'tdx':_0x4354da});process[_0x3daaa0(0x12d)](_0x3a3100);}),parentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x14a))['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x190),a2_0x55b37c(0x8a))['option'](a2_0x55b37c(0x207),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x55b37c(0xe5)](a2_0x55b37c(0xff),a2_0x55b37c(0x159))['option'](a2_0x55b37c(0x1f9),a2_0x55b37c(0x136))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2d8),a2_0x55b37c(0x2a9),a2_0x55b37c(0x246))[a2_0x55b37c(0x2bf)](async(_0x58d8e0,_0x5ad23e)=>{const _0xdb2a5a=a2_0x55b37c,_0x4e1c83=new ParentSegmentPreviewCommand(),_0x3094fd=program[_0xdb2a5a(0x247)](),_0x161183=await createTDXInstance(_0x3094fd),_0x52c926=await _0x4e1c83[_0xdb2a5a(0x16d)]({'options':{..._0x3094fd,..._0x5ad23e},'args':_0x58d8e0?[_0x58d8e0]:[],'tdx':_0x161183});process[_0xdb2a5a(0x12d)](_0x52c926);}),parentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x217))[a2_0x55b37c(0x99)](a2_0x55b37c(0xe9))[a2_0x55b37c(0xe5)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x55b37c(0x2bf)](async(_0x559b8d,_0x81c67b)=>{const _0x433f95=a2_0x55b37c,_0x44c5b2=new ParentSegmentRunCommand(),_0x53c7eb=program['opts'](),_0x5534bc=await createTDXInstance(_0x53c7eb),_0x167119=await _0x44c5b2['run']({'options':{..._0x53c7eb,..._0x81c67b},'args':_0x559b8d?[_0x559b8d]:[],'tdx':_0x5534bc});process[_0x433f95(0x12d)](_0x167119);});const parentSegmentCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x15c))['alias']('ps')['description'](a2_0x55b37c(0x28b));parentSegmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x103))[a2_0x55b37c(0x99)](a2_0x55b37c(0x24c))['action'](parentListAction),parentSegmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xac))['description'](a2_0x55b37c(0x108))['option'](a2_0x55b37c(0x18b),a2_0x55b37c(0x13b))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x239),a2_0x55b37c(0x100))['option'](a2_0x55b37c(0x11e),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x55b37c(0x2bf)](async(_0x2e6ba8,_0x26e4a1)=>{const _0x3a10c8=a2_0x55b37c,_0x2aa0e4=new ParentSegmentPullCommand(),_0x4b10ff=program[_0x3a10c8(0x247)](),_0x235a7c=await createTDXInstance(_0x4b10ff),_0x4483ed=await _0x2aa0e4['run']({'options':{..._0x4b10ff,..._0x26e4a1},'args':_0x2e6ba8?[_0x2e6ba8]:[],'tdx':_0x235a7c});process[_0x3a10c8(0x12d)](_0x4483ed);}),parentSegmentCmd[a2_0x55b37c(0x14c)]('push\x20[name]')['description']('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x239),a2_0x55b37c(0x100))[a2_0x55b37c(0x2bf)](async(_0x841c54,_0x551fad)=>{const _0x3c1135=new ParentSegmentPushCommand(),_0x48274b=program['opts'](),_0x25ccad=await createTDXInstance(_0x48274b),_0x279b75=await _0x3c1135['run']({'options':{..._0x48274b,..._0x551fad},'args':_0x841c54?[_0x841c54]:[],'tdx':_0x25ccad});process['exit'](_0x279b75);}),parentSegmentCmd['command'](a2_0x55b37c(0x1c1))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1e3))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x190),'Show\x20only\x20master\x20table\x20validation')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x207),a2_0x55b37c(0x1c0))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xff),a2_0x55b37c(0x2b7))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1f9),a2_0x55b37c(0x97))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2d8),a2_0x55b37c(0x2a9),a2_0x55b37c(0x246))[a2_0x55b37c(0x2bf)](async(_0x189251,_0x4d9013)=>{const _0x10ae78=a2_0x55b37c,_0x463b94=new ParentSegmentValidateCommand(),_0x382a8b=program['opts'](),_0x2da953=await createTDXInstance(_0x382a8b),_0x3bcfb7=await _0x463b94[_0x10ae78(0x16d)]({'options':{..._0x382a8b,..._0x4d9013},'args':_0x189251?[_0x189251]:[],'tdx':_0x2da953});process['exit'](_0x3bcfb7);}),parentSegmentCmd[a2_0x55b37c(0x14c)]('preview\x20[name]')['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x55b37c(0xe5)]('--master',a2_0x55b37c(0x8a))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x207),a2_0x55b37c(0x140))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xff),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x55b37c(0x1f9),a2_0x55b37c(0x136))['option'](a2_0x55b37c(0x2d8),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x55b37c(0x246))['action'](async(_0x12811d,_0x29f726)=>{const _0x208703=a2_0x55b37c,_0x17bf0d=new ParentSegmentPreviewCommand(),_0x3057f0=program[_0x208703(0x247)](),_0x160835=await createTDXInstance(_0x3057f0),_0xd3015e=await _0x17bf0d[_0x208703(0x16d)]({'options':{..._0x3057f0,..._0x29f726},'args':_0x12811d?[_0x12811d]:[],'tdx':_0x160835});process[_0x208703(0x12d)](_0xd3015e);}),parentSegmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x217))['description'](a2_0x55b37c(0xe9))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x239),a2_0x55b37c(0x100))[a2_0x55b37c(0x2bf)](async(_0x33e11d,_0x404795)=>{const _0x43f7b6=a2_0x55b37c,_0x5536ac=new ParentSegmentRunCommand(),_0x5d037b=program[_0x43f7b6(0x247)](),_0x27f374=await createTDXInstance(_0x5d037b),_0x1e44da=await _0x5536ac[_0x43f7b6(0x16d)]({'options':{..._0x5d037b,..._0x404795},'args':_0x33e11d?[_0x33e11d]:[],'tdx':_0x27f374});process['exit'](_0x1e44da);}),parentSegmentCmd[a2_0x55b37c(0x14c)]('fields\x20[name]')['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x55b37c(0xe5)]('--json',a2_0x55b37c(0xa6))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1b6),a2_0x55b37c(0x2b1))[a2_0x55b37c(0x2bf)](async(_0x4086ba,_0x286ccd)=>{const _0x2017d9=a2_0x55b37c,_0x39f07f=new ParentSegmentFieldsCommand(),_0x49dcb7=program[_0x2017d9(0x247)](),_0x3b5f03=await createTDXInstance(_0x49dcb7),_0x49eafd=await _0x39f07f[_0x2017d9(0x16d)]({'options':{..._0x49dcb7,..._0x286ccd},'args':_0x4086ba?[_0x4086ba]:[],'tdx':_0x3b5f03});process[_0x2017d9(0x12d)](_0x49eafd);}),parentSegmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x286))[a2_0x55b37c(0x99)](a2_0x55b37c(0x191))[a2_0x55b37c(0xe5)]('-w,\x20--web',a2_0x55b37c(0x25e))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x145),'Output\x20as\x20JSON')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1b6),'Output\x20as\x20JSON\x20Lines')[a2_0x55b37c(0x2bf)](async(_0x3507f4,_0x50a127)=>{const _0x1188de=a2_0x55b37c,_0x3cc8a6=new ParentSegmentViewCommand(),_0x2ff585=program[_0x1188de(0x247)](),_0x1e9b6c=await createTDXInstance(_0x2ff585),_0x126b81=await _0x3cc8a6[_0x1188de(0x16d)]({'options':{..._0x2ff585,..._0x50a127},'args':_0x3507f4?[_0x3507f4]:[],'tdx':_0x1e9b6c});process[_0x1188de(0x12d)](_0x126b81);}),parentSegmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1b1))[a2_0x55b37c(0x99)](a2_0x55b37c(0x29f))['option'](a2_0x55b37c(0x145),a2_0x55b37c(0xa6))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1b6),a2_0x55b37c(0x2b1))[a2_0x55b37c(0x2bf)](async(_0x2aec0e,_0x377d58)=>{const _0x3b56dc=a2_0x55b37c,_0x5189d5=new ParentSegmentDescCommand(),_0x5aa6c5=program[_0x3b56dc(0x247)](),_0x59007c=await createTDXInstance(_0x5aa6c5),_0x271eb1=await _0x5189d5[_0x3b56dc(0x16d)]({'options':{..._0x5aa6c5,..._0x377d58},'args':_0x2aec0e?[_0x2aec0e]:[],'tdx':_0x59007c});process[_0x3b56dc(0x12d)](_0x271eb1);}),parentSegmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xbf))['description'](a2_0x55b37c(0x276))['option'](a2_0x55b37c(0x145),a2_0x55b37c(0xa6))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1b6),a2_0x55b37c(0x2b1))[a2_0x55b37c(0x2bf)](async(_0x9a0c45,_0xa14bdc)=>{const _0x45e543=a2_0x55b37c,_0x4bcd3d=new ParentSegmentSQLCommand(),_0x3e8f74=program['opts'](),_0x2f4ed8=await createTDXInstance(_0x3e8f74),_0x3ea106=await _0x4bcd3d[_0x45e543(0x16d)]({'options':{..._0x3e8f74,..._0xa14bdc},'args':_0x9a0c45?[_0x9a0c45]:[],'tdx':_0x2f4ed8});process['exit'](_0x3ea106);}),parentSegmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x184))[a2_0x55b37c(0x99)](a2_0x55b37c(0x128))[a2_0x55b37c(0xe5)]('--limit\x20<n>',a2_0x55b37c(0x1b5))[a2_0x55b37c(0xe5)]('--json',a2_0x55b37c(0xa6))['option']('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x55b37c(0x2bf)](async(_0x44ef26,_0x437c10)=>{const _0x3d8c78=new ParentSegmentShowCommand(),_0x114c93=program['opts'](),_0x1951f6=await createTDXInstance(_0x114c93),_0x248ccd=await _0x3d8c78['run']({'options':{..._0x114c93,..._0x437c10},'args':_0x44ef26?[_0x44ef26]:[],'tdx':_0x1951f6});process['exit'](_0x248ccd);}),parentSegmentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x13c))[a2_0x55b37c(0x99)](a2_0x55b37c(0x24d))[a2_0x55b37c(0x2bf)](async(_0x40e04b,_0x87592c)=>{const _0x17ffbc=a2_0x55b37c,_0x536f38=new UseCommand(),_0x2eab70=program[_0x17ffbc(0x247)](),_0x8bc128=_0x40e04b?[_0x17ffbc(0xe8),_0x40e04b]:[],_0x191a51=await _0x536f38['run']({'options':{..._0x2eab70,..._0x87592c},'args':_0x8bc128,'tdx':null});process[_0x17ffbc(0x12d)](_0x191a51);}),parentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xc5))[a2_0x55b37c(0x99)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['requiredOption']('--database\x20<db>','Master\x20database\x20name')[a2_0x55b37c(0x11d)](a2_0x55b37c(0x1f0),'Master\x20table\x20name')['option'](a2_0x55b37c(0x2d5),a2_0x55b37c(0x112))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x240),a2_0x55b37c(0x129))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1a7),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x204),a2_0x55b37c(0x216))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x93),'Attributes\x20as\x20JSON\x20string')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x19c),'Attributes\x20from\x20JSON\x20file')[a2_0x55b37c(0xe5)](a2_0x55b37c(0xc9),a2_0x55b37c(0x25a))['option']('--behaviors-file\x20<file>',a2_0x55b37c(0x27d))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x98),a2_0x55b37c(0x141))[a2_0x55b37c(0xe5)]('--customer-group-file\x20<file>','Customer\x20group\x20from\x20JSON\x20file')['action'](async(_0x185c3e,_0x5170d0)=>{const _0x77bde0=a2_0x55b37c,_0x1b1647=new ParentSegmentCreateCommand(),_0x16f584=program[_0x77bde0(0x247)](),_0x3abc25=await createTDXInstance(_0x16f584),_0x56a66e=await _0x1b1647[_0x77bde0(0x16d)]({'options':{..._0x16f584,..._0x5170d0},'args':[_0x185c3e],'tdx':_0x3abc25});process[_0x77bde0(0x12d)](_0x56a66e);}),parentCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xca))[a2_0x55b37c(0x99)](a2_0x55b37c(0xa7))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2d5),a2_0x55b37c(0xe6))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x240),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1a7),'Updated\x20schedule\x20option')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x204),a2_0x55b37c(0x258))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x270),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x55b37c(0xe5)]('--add-attributes-file\x20<file>',a2_0x55b37c(0x238))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x250),a2_0x55b37c(0x2a2))['option']('--add-behaviors-file\x20<file>',a2_0x55b37c(0xeb))['action'](async(_0x6f6d24,_0x5ac35c)=>{const _0x49c9be=a2_0x55b37c,_0x365242=new ParentSegmentUpdateCommand(),_0x388054=program[_0x49c9be(0x247)](),_0x5e6534=await createTDXInstance(_0x388054),_0x39f789=await _0x365242['run']({'options':{..._0x388054,..._0x5ac35c},'args':[_0x6f6d24],'tdx':_0x5e6534});process[_0x49c9be(0x12d)](_0x39f789);}),folderCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1b4))[a2_0x55b37c(0x99)](a2_0x55b37c(0x88))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2d5),a2_0x55b37c(0x2ba))['option'](a2_0x55b37c(0x1b2),a2_0x55b37c(0x172))[a2_0x55b37c(0x2bf)](async(_0x27ac23,_0x1c5c63,_0x1676fa)=>{const _0xbbf755=a2_0x55b37c,_0x19a80b=new SegmentFolderCreateCommand(),_0x4ff964=program[_0xbbf755(0x247)](),_0x4da517=await createTDXInstance(_0x4ff964),_0x3c918c=await _0x19a80b[_0xbbf755(0x16d)]({'options':{..._0x4ff964,..._0x1676fa},'args':[_0x27ac23,_0x1c5c63],'tdx':_0x4da517});process['exit'](_0x3c918c);}),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1d9))[a2_0x55b37c(0x99)](a2_0x55b37c(0x164))[a2_0x55b37c(0x2bf)](async(_0x13b82a,_0x194145)=>{const _0x430074=a2_0x55b37c,_0x2293cb=new ActivationsCommand(),_0x12b5e7=program['opts'](),_0x54f09d=await createTDXInstance(_0x12b5e7),_0x630d30=await _0x2293cb[_0x430074(0x16d)]({'options':{..._0x12b5e7,..._0x194145},'args':[_0x13b82a],'tdx':_0x54f09d});process['exit'](_0x630d30);});const workflowCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x244))[a2_0x55b37c(0x181)]('wf')['description'](a2_0x55b37c(0x175)),wfProjectCmd=workflowCmd[a2_0x55b37c(0x14c)]('project')['description'](a2_0x55b37c(0x215)),wfProjectListAction=async(_0x1b1c8a,_0x4cfe3f)=>{const _0x4a38bc=new WorkflowProjectsCommand(),_0x47f50d=program['opts'](),_0x485d08=await createTDXInstance(_0x47f50d),_0xf90d54=await _0x4a38bc['run']({'options':{..._0x47f50d,..._0x4cfe3f},'args':_0x1b1c8a?[_0x1b1c8a]:[],'tdx':_0x485d08});process['exit'](_0xf90d54);};wfProjectCmd[a2_0x55b37c(0x14c)]('list\x20[pattern]')[a2_0x55b37c(0x99)](a2_0x55b37c(0x26b))[a2_0x55b37c(0x2bf)](wfProjectListAction),workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x154))['description'](a2_0x55b37c(0x19f))[a2_0x55b37c(0x2bf)](wfProjectListAction);const wfWorkflowListAction=async(_0x5ed85a,_0x4f223a)=>{const _0x3a89e5=a2_0x55b37c,_0x436ab1=new WorkflowWorkflowsCommand(),_0x1ffbbe=program[_0x3a89e5(0x247)](),_0x2d5d65=await createTDXInstance(_0x1ffbbe),_0x16189d=await _0x436ab1['run']({'options':{..._0x1ffbbe,..._0x4f223a},'args':_0x5ed85a?[_0x5ed85a]:[],'tdx':_0x2d5d65});process[_0x3a89e5(0x12d)](_0x16189d);};workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x25b))[a2_0x55b37c(0x99)](a2_0x55b37c(0xaa))[a2_0x55b37c(0x2bf)](wfWorkflowListAction);function a2_0x1574(){const _0x377f91=['Filtering\x20rule\x20as\x20JSON\x20string','4000','System\x20prompt/instructions\x20(default:\x20empty)','get','clone\x20[source]','Workflow\x20project\x20management','Timezone\x20(e.g.,\x20America/Los_Angeles)','run\x20[name]','buildTime','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Override\x20project\x20name','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Campaign\x20type\x20(email\x20or\x20push)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','padEnd','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','--plaintext\x20<text>','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Table\x20management\x20commands','segments\x20[path]','info\x20[segment_name]','push\x20[source-dir]','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','-f,\x20--file\x20<path>','Make\x20segment\x20invisible\x20(default:\x20visible)','Show\x20journey\x20statistics','--delete','Include\x20retried\x20attempts','--in\x20<name>','-r,\x20--recursive','name','delete\x20<name>','commands','[action]','Continue\x20most\x20recent\x20conversation','Options:','argumentDescription','[DEPRECATED]\x20Segment\x20folder\x20management','Add\x20attributes\x20from\x20JSON\x20file','-y,\x20--yes','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','94795ZJRWfc','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Interactive\x20chat\x20selector','--schedule-type\x20<type>','Show\x20campaign\x20details','[options]\x20--\x20[claude-code-args...]','show\x20[segment_name]','workflow','session','-1d','opts','tables\x20[pattern]','length','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','create','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Set\x20or\x20show\x20parent\x20segment\x20context','clone\x20[source-dir]','repeat','--add-behaviors\x20<json>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','argument','-c,\x20--continue','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','set','--params\x20<json>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','Updated\x20timezone','--no-color','Behaviors\x20as\x20JSON\x20string','workflows\x20[project]','Submit\x20a\x20job','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Open\x20parent\x20segment\x20in\x20web\x20browser','map','--port\x20<number>','Remove\x20a\x20profile','Set\x20a\x20profile\x20configuration\x20value','Trino\x20catalog\x20(default:\x20td)','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','\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','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--system-prompt\x20<text>','List\x20secret\x20keys\x20for\x20a\x20project','Database\x20to\x20use\x20(overrides\x20context)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','show\x20<job-id>','Resume\x20a\x20paused\x20journey','List\x20all\x20data\x20connections','Pull\x20specific\x20revision\x20(default:\x20latest)','--add-attributes\x20<json>','us01','12NWsNMm','--type\x20<type>','Include\x20retried\x20attempts\x20(for\x20list)','--workspace\x20<name>','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','allowExcessArguments','Maximum\x20recursion\x20depth\x20(default:\x2010)','subcommandDescription','users','unset\x20<resource>','Preview\x20changes\x20without\x20writing\x20files','Behaviors\x20from\x20JSON\x20file','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','preAction','Email\x20sender\x20ID\x20for\x20delivery','AI-native\x20CLI\x20for\x20Treasure\x20Data','apiKey','usage','campaigns\x20[pattern]','Path\x20is\x20not\x20a\x20directory:\x20','view\x20[name]','HTML\x20template\x20content','Manage\x20workflow\x20project\x20secrets','--no-proxy','types','Parent\x20segment\x20management','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','--full','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--resume-from\x20<task>','agent','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','898435XqurRs','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Open\x20segment\x20in\x20web\x20browser','Agent\x20prompt/instructions','Resume\x20from\x20specific\x20task','parse','Delete\x20a\x20workspace','hook','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','End\x20time\x20filter\x20(ISO\x208601\x20format)','\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','Add\x20behaviors\x20as\x20JSON\x20string','Segment\x20description','Job\x20management\x20commands','Pull\x20workflow\x20project\x20to\x20local\x20folder','registeredArguments','claude-4.5-sonnet','Describe\x20table\x20schema','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','--llm-project\x20<name>','Clear\x20workflow\x20project\x20context','backup\x20<name>','--color','--invisible','1215WSGAuN','--agent\x20<ref>','Output\x20as\x20JSON\x20Lines','flatMap','Include\x20subtasks\x20in\x20tasks\x20output','-X,\x20--method\x20<method>','Request\x20body\x20as\x20JSON\x20string','List\x20available\x20connector\x20types','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--default','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Folder\x20description','Setup\x20API\x20key\x20authentication\x20interactively','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','show\x20<folder_ref>','--name\x20<name>','action','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','use\x20<path>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--email-sender-id\x20<id>','Email\x20template\x20management','tdx','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Save\x20output\x20to\x20file','Clear\x20session\x20context','_hidden','workspaces\x20[pattern]','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','llm','Filtering\x20rule\x20from\x20JSON\x20file','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Campaign\x20management','Skip\x20confirmation\x20prompts','models','--rule-file\x20<file>','--description\x20<text>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','--interval\x20<range>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','site','Create\x20segment\x20folder','validate\x20[target]','Show\x20master\x20table\x20sample\x20data','isArray','--tsv','3770uCVFRI','isTTY','List\x20agents\x20in\x20current\x20project','List\x20all\x20available\x20profiles','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','jsonl','--attributes\x20<json>','status','Agent\x20name','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--customer-group\x20<json>','description','Start\x20a\x20new\x20chat\x20session','Database\x20name\x20(default:\x20information_schema)','Workflow\x20parameter\x20(repeatable)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','push\x20[target]','--job-type\x20<type>','json','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','trino','--parent-segment\x20<name>','--subject\x20<subject>','--starter-message\x20<text>','Output\x20as\x20JSON','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Project\x20description','CDP\x20segment\x20management\x20commands','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','agents\x20[pattern]','pull\x20[name]','List\x20all\x20users\x20in\x20the\x20account','--session-id\x20<id>','error','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','workspace','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Delete\x20an\x20agent','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','1902736cAvczA','api\x20[endpoint]','Plaintext\x20template\x20content','--limit\x20<number>','table','claude\x20[args...]','list','Authentication\x20management','journey','sql\x20[name]','commandUsage','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Update\x20a\x20workspace','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','view\x20[segment_name]','create\x20<name>','help','--include-retried','duplicate\x20<name-or-id>','--behaviors\x20<json>','update\x20<name>','Kill\x20a\x20job','create\x20[name]','--project\x20<name>','-o,\x20--output\x20<folder>','list\x20[path]','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','--include-stats','Workspace\x20name\x20(required)','Directory\x20does\x20not\x20exist:\x20','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','port','Show\x20segment\x20schema\x20(column\x20types)','Show\x20connection\x20details\x20by\x20name','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--session-time\x20<time>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Set\x20operation\x20timeout\x20in\x20seconds','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Pull\x20child\x20segments\x20to\x20YAML\x20files','resume\x20<name-or-id>','resume\x20<name-or-path>','--version','chat\x20[message...]','New\x20workspace\x20name','--status\x20<status>','option','Updated\x20description','Data\x20connection\x20management\x20(for\x20activations/exports)','parent_segment','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','auth','Add\x20behaviors\x20from\x20JSON\x20file','--yes','show\x20<name-or-id>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','--no-count-population','stdout','template','profile','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Task\x20name\x20for\x20logs\x20action','show\x20[table]','Show\x20job\x20details','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','-H,\x20--header\x20<header>','--last','delete\x20<project-name-or-id>','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','attempt','Email\x20subject\x20template','--behavior\x20[name]','Skip\x20confirmation\x20prompt','\x20-\x20built\x20','--revision\x20<revision>','list\x20[pattern]','history\x20[chat-id]','Create\x20a\x20new\x20LLM\x20project','proxy','Template\x20name','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','chats','-d,\x20--database\x20<database>','forEach','padWidth','desc','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','stats\x20<name-or-path>','Parent\x20segment\x20description','jobs','join','--max-depth\x20<depth>','Pause\x20a\x20running\x20journey','query\x20[sql]','-p,\x20--profile\x20<name>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Output\x20directory','Create\x20a\x20new\x20campaign','requiredOption','-u,\x20--use','Delete\x20an\x20LLM\x20project','pull\x20[parent_or_file]','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--prompt\x20<text>','Campaign\x20description','outputHelp','Show\x20the\x20most\x20recent\x20chat','use\x20<name>','5990192bNNnZS','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','6432768IDSEWu','Show\x20journey\x20details','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','exit','-o,\x20--output\x20<dir>','Change\x20to\x20directory\x20before\x20executing\x20command','Output\x20file\x20path\x20(default:\x20<name>.yml)','GET','project','timeline\x20[project.workflow]','Create\x20an\x20email\x20template','-n,\x20--name\x20<name>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Include\x20execution\x20statistics','journeys\x20[pattern]','update\x20<segment_name>','Open\x20journey\x20in\x20web\x20browser','Output\x20file\x20path','use\x20[name]','--force','Read\x20request\x20body\x20from\x20file','Attempt\x20ID','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Customer\x20group\x20as\x20JSON\x20string','colorFn','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','--json','--kind\x20<type>','Show\x20workspace\x20details','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','allowUnknownOption','preview\x20[file]','--rule\x20<json>','command','--start-at\x20<datetime>','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--from\x20<timestamp>','settings\x20<type>','--reason\x20<text>','attempt:','projects\x20[pattern]','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','parents\x20[pattern]','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','submit\x20[query]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Resume\x20a\x20conversation\x20(shows\x20selector)','launch\x20<name-or-id>','parent-segment','Launch\x20a\x20campaign','statusline','INVALID_ARGUMENT','New\x20template\x20name','retry','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--data\x20<data>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','argv','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','set\x20<args...>','Follow/watch\x20timeline\x20for\x20running\x20attempts','format','Maximum\x20tool\x20iterations\x20(default:\x204)','required','Validate\x20journey\x20YAML\x20files\x20locally','run','--temperature\x20<n>',',\x20version\x20','retry\x20<session-id>','[task-name]','Parent\x20folder\x20name\x20for\x20nested\x20folders','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','database','Workflow\x20(Digdag)\x20management\x20commands','user','connections','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','list\x20[project]','--clear','Workspace\x20name','-w,\x20--web','0.7','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','segment','remove\x20<name>','alias','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--model\x20<name>','show\x20[name]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','slice','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Force\x20retry\x20even\x20if\x20not\x20failed','Resume\x20a\x20paused\x20campaign','--name\x20<new_name>','-o,\x20--output\x20<file>','describe\x20[table]','Workflow\x20session\x20management','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Skip\x20population\x20counting','--master','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','upload\x20[project-name-or-dir]','directory','--stage\x20<name>','--segment\x20<path>','replace','--in\x20<database>','pull\x20<project>\x20[target-dir]','update\x20<name-or-id>','9609110hQlTLC','Workflow\x20attempt\x20management','--attributes-file\x20<file>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--name\x20<new-name>','delete\x20<name-or-id>','Read\x20SQL\x20query\x20from\x20file','argumentTerm','Overwrite\x20local\x20changes\x20without\x20confirmation','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--timeout\x20<seconds>','--schedule-option\x20<value>','--description\x20<desc>','--agent\x20<name>','-f,\x20--force','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','\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','Workspace\x20management','Campaign\x20name','gitRevision','kill\x20<job-id>','desc\x20[name]','--parent-folder\x20<name>','Resume\x20from\x20specific\x20task\x20(retry)','create\x20<parent_name>\x20<folder_name>','Limit\x20number\x20of\x20rows','--jsonl','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Preview\x20without\x20creating\x20the\x20project','DEBUG','set\x20<key=value>','templates\x20[pattern]','Workspace\x20description','Update\x20an\x20email\x20template','filter','Show\x20timeline\x20for\x20specific\x20attempt','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','validate\x20[name]','List\x20available\x20LLM\x20models','Agent\x20description','--format\x20<format>','--html\x20<html>','Arguments:','createAsync','--site\x20<site>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','tsv','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','\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','--session\x20<id>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','use\x20<project-name>','then','Pause\x20a\x20campaign','--json-columns\x20<cols>','Editor\x20type','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','--skip-validation','New\x20campaign\x20name','show\x20<agent-name>','activations\x20<segment_name>','run\x20[workflow]','configureHelp','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','create\x20<segment_name>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','logs','Remove\x20API\x20key\x20from\x20system\x20keychain','--dry-run','Starter\x20message','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','aliases','Duplicate\x20a\x20campaign','view\x20<name-or-path>','Revision\x20name\x20(default:\x20timestamp)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','show\x20<name>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','hidden','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','parent','Custom\x20revision\x20name\x20(default:\x20timestamp)','Skip\x20validation\x20of\x20.dig\x20files','--table\x20<table>','includes','push','addHelpText','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','folder','connection','Show\x20agent\x20details','--include-subtasks','--enriched','Show\x20only\x20master\x20table\x20validation','tdx\x20','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','List\x20jobs','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','New\x20segment\x20name','catch','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','--timezone\x20<tz>','after','stderr','--attribute\x20[name]','sonnet','logLevel','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--folder\x20<name>','Move\x20to\x20folder','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)'];a2_0x1574=function(){return _0x377f91;};return a2_0x1574();}const wfSessionCmd=workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x245))['description'](a2_0x55b37c(0x18d)),wfSessionListAction=async(_0x594efc,_0x110a07)=>{const _0x32264e=a2_0x55b37c,_0x44ed94=new WorkflowSessionsCommand(),_0x49a865=program[_0x32264e(0x247)](),_0xc62c45=await createTDXInstance(_0x49a865),_0x3a7e6a=await _0x44ed94[_0x32264e(0x16d)]({'options':{..._0x49a865,..._0x110a07},'args':_0x594efc?[_0x594efc]:[],'tdx':_0xc62c45});process[_0x32264e(0x12d)](_0x3a7e6a);};wfSessionCmd['command'](a2_0x55b37c(0x179))[a2_0x55b37c(0x99)](a2_0x55b37c(0xb1))['option'](a2_0x55b37c(0xe4),a2_0x55b37c(0x2cc))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x150),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x55b37c(0xe5)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x55b37c(0x14c)]('sessions\x20[project]')[a2_0x55b37c(0x99)](a2_0x55b37c(0x20b))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xe4),a2_0x55b37c(0x2cc))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x150),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x55b37c(0xe5)]('--to\x20<timestamp>',a2_0x55b37c(0x2a0))[a2_0x55b37c(0x2bf)](wfSessionListAction);const wfAttemptListAction=async(_0x40244f,_0x5953f2)=>{const _0x542da8=a2_0x55b37c,_0x20a744=new WorkflowAttemptsCommand(),_0x56975a=program[_0x542da8(0x247)](),_0x23d8d8=await createTDXInstance(_0x56975a),_0x317c4f=await _0x20a744['run']({'options':{..._0x56975a,..._0x5953f2},'args':_0x40244f?[_0x40244f]:[],'tdx':_0x23d8d8});process[_0x542da8(0x12d)](_0x317c4f);},attemptCmd=workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xfd))['description'](a2_0x55b37c(0x19b))['argument']('[attempt-id]',a2_0x55b37c(0x13f))['argument'](a2_0x55b37c(0x233),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x55b37c(0x252)](a2_0x55b37c(0x171),a2_0x55b37c(0xf5))['option'](a2_0x55b37c(0x1f8),a2_0x55b37c(0x2b3))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x152),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x291),a2_0x55b37c(0x1b3))[a2_0x55b37c(0xe5)]('--params\x20<json>',a2_0x55b37c(0x23d))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x13d),a2_0x55b37c(0x188))[a2_0x55b37c(0xe5)]('--include-retried',a2_0x55b37c(0x274))[a2_0x55b37c(0x2bf)](async(_0x272ade,_0x4d2384,_0x51b033,_0x4a6ced)=>{const _0xce7201=a2_0x55b37c;if(_0x272ade===_0xce7201(0xbc)){await wfAttemptListAction(_0x4d2384,_0x4a6ced);return;}if(!_0x272ade){attemptCmd[_0xce7201(0xc6)]();return;}const _0x129545=program[_0xce7201(0x247)](),_0x19c9a0=await createTDXInstance(_0x129545);let _0xe39e2b=0x0;if(!_0x4d2384){const _0x3c3bc4=new WorkflowAttemptCommand();_0xe39e2b=await _0x3c3bc4[_0xce7201(0x16d)]({'options':{..._0x129545,..._0x4a6ced},'args':[_0x272ade],'tdx':_0x19c9a0});}else{if(_0x4d2384===_0xce7201(0x1df)){const _0x467bab=new WorkflowLogsCommand();_0xe39e2b=await _0x467bab[_0xce7201(0x16d)]({'options':{..._0x129545,..._0x4a6ced},'args':_0x51b033?[_0x272ade,_0x51b033]:[_0x272ade],'tdx':_0x19c9a0});}else{if(_0x4d2384==='tasks'){const _0x4f645c=new WorkflowTasksCommand();_0xe39e2b=await _0x4f645c[_0xce7201(0x16d)]({'options':{..._0x129545,..._0x4a6ced},'args':[_0x272ade],'tdx':_0x19c9a0});}else{if(_0x4d2384==='kill'){const _0x489da8=new WorkflowKillCommand();_0xe39e2b=await _0x489da8[_0xce7201(0x16d)]({'options':{..._0x129545,..._0x4a6ced},'args':[_0x272ade],'tdx':_0x19c9a0});}else{if(_0x4d2384===_0xce7201(0x161)){const _0x1a267b=new WorkflowRetryCommand();_0xe39e2b=await _0x1a267b[_0xce7201(0x16d)]({'options':{..._0x129545,..._0x4a6ced},'args':[_0xce7201(0x153)+_0x272ade],'tdx':_0x19c9a0});}else console['error']('Unknown\x20action:\x20'+_0x4d2384),console[_0xce7201(0xaf)](_0xce7201(0x200)),_0xe39e2b=0x1;}}}}process[_0xce7201(0x12d)](_0xe39e2b);});attemptCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x179))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1ea))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xc7),a2_0x55b37c(0x22d))['action'](wfAttemptListAction),workflowCmd[a2_0x55b37c(0x14c)]('attempts\x20[project]')[a2_0x55b37c(0x99)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')['option']('--include-retried',a2_0x55b37c(0x22d))['action'](wfAttemptListAction),workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x133))[a2_0x55b37c(0x99)](a2_0x55b37c(0x264))[a2_0x55b37c(0xe5)]('--follow',a2_0x55b37c(0x168))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xae),a2_0x55b37c(0x24a))['option']('--attempt-id\x20<id>',a2_0x55b37c(0x1bf))[a2_0x55b37c(0x2bf)](async(_0x545a1f,_0xdcbfb5)=>{const _0x19460d=a2_0x55b37c,_0x1f7885=new WorkflowTimelineCommand(),_0x3a023c=program['opts'](),_0x463a60=await createTDXInstance(_0x3a023c),_0x2b6b00=await _0x1f7885[_0x19460d(0x16d)]({'options':{..._0x3a023c,..._0xdcbfb5},'args':_0x545a1f?[_0x545a1f]:[],'tdx':_0x463a60});process[_0x19460d(0x12d)](_0x2b6b00);}),workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x170))[a2_0x55b37c(0x99)](a2_0x55b37c(0x21e))[a2_0x55b37c(0xe5)]('--from-task\x20<task>',a2_0x55b37c(0x299))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x256),a2_0x55b37c(0x296))['action'](async(_0xf58391,_0x25e8be)=>{const _0x304f6c=a2_0x55b37c,_0x13d23a=new WorkflowRetryCommand(),_0xfab8a1=program[_0x304f6c(0x247)](),_0x5d1fff=await createTDXInstance(_0xfab8a1),_0x125506=await _0x13d23a[_0x304f6c(0x16d)]({'options':{..._0xfab8a1,..._0x25e8be},'args':[_0xf58391],'tdx':_0x5d1fff});process[_0x304f6c(0x12d)](_0x125506);}),workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1da))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1c9))[a2_0x55b37c(0xe5)]('--param\x20<key=value>',a2_0x55b37c(0x9c),(_0x22a108,_0x2549bf=[])=>[..._0x2549bf,_0x22a108],[])['option'](a2_0x55b37c(0xda),a2_0x55b37c(0x148))[a2_0x55b37c(0x2bf)](async(_0x388e15,_0xfbb8a2)=>{const _0xb1528d=a2_0x55b37c,_0xf8ab9e=new WorkflowRunCommand(),_0x569dc3=program[_0xb1528d(0x247)](),_0x311067=await createTDXInstance(_0x569dc3),_0x1f6699=await _0xf8ab9e[_0xb1528d(0x16d)]({'options':{..._0x569dc3,..._0xfbb8a2},'args':_0x388e15?[_0x388e15]:[],'tdx':_0x311067});process[_0xb1528d(0x12d)](_0x1f6699);}),workflowCmd[a2_0x55b37c(0x14c)]('download\x20<project-name>\x20[output-dir]')[a2_0x55b37c(0x99)](a2_0x55b37c(0xb0))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x102),a2_0x55b37c(0xdd))[a2_0x55b37c(0x2bf)](async(_0x4c682d,_0x1a171b,_0x34279d)=>{const _0x20263c=a2_0x55b37c,_0x498d76=new WorkflowDownloadCommand(),_0x572515=program[_0x20263c(0x247)](),_0x179c0f=await createTDXInstance(_0x572515),_0x1905f1=await _0x498d76[_0x20263c(0x16d)]({'options':{..._0x572515,..._0x34279d},'args':[_0x4c682d,_0x1a171b||'.'],'tdx':_0x179c0f});process['exit'](_0x1905f1);}),workflowCmd['command'](a2_0x55b37c(0x198))[a2_0x55b37c(0x99)](a2_0x55b37c(0x2a5))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x102),a2_0x55b37c(0x26f))['option'](a2_0x55b37c(0x1e1),a2_0x55b37c(0x27c))['option']('-y,\x20--yes',a2_0x55b37c(0x100))[a2_0x55b37c(0x2bf)](async(_0x659882,_0x1028aa,_0x42fba7)=>{const _0x410bea=a2_0x55b37c,_0x11a002=new WorkflowPullCommand(),_0x245ef5=program[_0x410bea(0x247)](),_0x579c62=await createTDXInstance(_0x245ef5),_0x220b46=await _0x11a002[_0x410bea(0x16d)]({'options':{..._0x245ef5,..._0x42fba7},'args':_0x1028aa?[_0x659882,_0x1028aa]:[_0x659882],'tdx':_0x579c62});process[_0x410bea(0x12d)](_0x220b46);}),workflowCmd['command'](a2_0x55b37c(0x227))[a2_0x55b37c(0x99)](a2_0x55b37c(0x173))[a2_0x55b37c(0xe5)]('--revision\x20<revision>','Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1e1),'Preview\x20changes\x20without\x20pushing')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1d6),a2_0x55b37c(0x1ef))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x239),'Skip\x20confirmation\x20prompt')[a2_0x55b37c(0x2bf)](async(_0x9ea528,_0x5722b8)=>{const _0xed60c4=a2_0x55b37c,_0x48a333=new WorkflowPushCommand(),_0x3af81d=program[_0xed60c4(0x247)](),_0x101ed9=await createTDXInstance(_0x3af81d),_0x458698=await _0x48a333[_0xed60c4(0x16d)]({'options':{..._0x3af81d,..._0x5722b8},'args':_0x9ea528?[_0x9ea528]:[],'tdx':_0x101ed9});process[_0xed60c4(0x12d)](_0x458698);}),workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x192))[a2_0x55b37c(0x99)](a2_0x55b37c(0x2d7))[a2_0x55b37c(0xe5)]('--name\x20<name>',a2_0x55b37c(0x21a))['option'](a2_0x55b37c(0x102),a2_0x55b37c(0x1e7))['option'](a2_0x55b37c(0x1d6),a2_0x55b37c(0x1ef))[a2_0x55b37c(0x2bf)](async(_0x1ab5c8,_0x3bd6a3)=>{const _0xe316fd=a2_0x55b37c,_0x4b0ff1=new WorkflowUploadCommand(),_0x4adf29=program[_0xe316fd(0x247)](),_0x26ff8f=await createTDXInstance(_0x4adf29),_0x40493e=await _0x4b0ff1[_0xe316fd(0x16d)]({'options':{..._0x4adf29,..._0x3bd6a3},'args':_0x1ab5c8?[_0x1ab5c8]:[],'tdx':_0x26ff8f});process['exit'](_0x40493e);}),workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x24e))[a2_0x55b37c(0x99)](a2_0x55b37c(0x28c))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2be),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x102),a2_0x55b37c(0x1ee))['option'](a2_0x55b37c(0x1e1),a2_0x55b37c(0x1b8))['option'](a2_0x55b37c(0x1d6),a2_0x55b37c(0x1ef))[a2_0x55b37c(0xe5)]('-y,\x20--yes',a2_0x55b37c(0x100))[a2_0x55b37c(0x2bf)](async(_0x2b7468,_0x6f13cb)=>{const _0x5154ee=a2_0x55b37c,_0x5cd5f4=new WorkflowCloneCommand(),_0x4f2404=program[_0x5154ee(0x247)](),_0x45e7cf=await createTDXInstance(_0x4f2404),_0x51af59=await _0x5cd5f4[_0x5154ee(0x16d)]({'options':{..._0x4f2404,..._0x6f13cb},'args':_0x2b7468?[_0x2b7468]:[],'tdx':_0x45e7cf});process[_0x5154ee(0x12d)](_0x51af59);}),workflowCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xfb))['description'](a2_0x55b37c(0x155))[a2_0x55b37c(0x2bf)](async(_0x5f20e7,_0x305452)=>{const _0x16e7ef=a2_0x55b37c,_0x1afce1=new WorkflowDeleteCommand(),_0x1a2fd2=program[_0x16e7ef(0x247)](),_0x3b02b6=await createTDXInstance(_0x1a2fd2),_0x1cc464=await _0x1afce1[_0x16e7ef(0x16d)]({'options':{..._0x1a2fd2,..._0x305452},'args':[_0x5f20e7],'tdx':_0x3b02b6});process['exit'](_0x1cc464);}),workflowCmd[a2_0x55b37c(0x14c)]('use\x20[project]')[a2_0x55b37c(0x99)](a2_0x55b37c(0x162))['option'](a2_0x55b37c(0x17a),a2_0x55b37c(0x2ab))[a2_0x55b37c(0x2bf)](async(_0x4d01f7,_0x3358f8)=>{const _0x3bf96f=a2_0x55b37c,_0x529b06=new WorkflowUseCommand(),_0x2fa0c8=program['opts'](),_0x37a535=await createTDXInstance(_0x2fa0c8),_0x1ac2c1=await _0x529b06['run']({'options':{..._0x2fa0c8,..._0x3358f8},'args':_0x4d01f7?[_0x4d01f7]:[],'tdx':_0x37a535});process[_0x3bf96f(0x12d)](_0x1ac2c1);});const wfSecretsCmd=workflowCmd[a2_0x55b37c(0x14c)]('secrets')['description'](a2_0x55b37c(0x288));wfSecretsCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x179))[a2_0x55b37c(0x99)](a2_0x55b37c(0x269))[a2_0x55b37c(0x2bf)](async(_0x483eea,_0x2e2e81)=>{const _0x436150=a2_0x55b37c,_0x7234ac=new WorkflowSecretsListCommand(),_0x374915=program['opts'](),_0xb428c7=await createTDXInstance(_0x374915),_0x48f126=await _0x7234ac['run']({'options':{..._0x374915,..._0x2e2e81},'args':_0x483eea?[_0x483eea]:[],'tdx':_0xb428c7});process[_0x436150(0x12d)](_0x48f126);}),wfSecretsCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x167))['description'](a2_0x55b37c(0xc3))[a2_0x55b37c(0x2bf)](async(_0x16ab21,_0x51e006)=>{const _0x3ab4d7=a2_0x55b37c,_0x512d82=new WorkflowSecretsSetCommand(),_0x203b4b=program[_0x3ab4d7(0x247)](),_0x4146fe=await createTDXInstance(_0x203b4b),_0x114559=await _0x512d82[_0x3ab4d7(0x16d)]({'options':{..._0x203b4b,..._0x51e006},'args':_0x16ab21,'tdx':_0x4146fe});process[_0x3ab4d7(0x12d)](_0x114559);}),wfSecretsCmd[a2_0x55b37c(0x14c)]('delete\x20<args...>')[a2_0x55b37c(0x99)](a2_0x55b37c(0x144))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x239),a2_0x55b37c(0x100))['action'](async(_0x4aa040,_0x51abc8)=>{const _0xa94190=a2_0x55b37c,_0x12130c=new WorkflowSecretsDeleteCommand(),_0x3a80b4=program[_0xa94190(0x247)](),_0x48632d=await createTDXInstance(_0x3a80b4),_0x235cbf=await _0x12130c[_0xa94190(0x16d)]({'options':{..._0x3a80b4,..._0x51abc8},'args':_0x4aa040,'tdx':_0x48632d});process[_0xa94190(0x12d)](_0x235cbf);});const jobCmd=program[a2_0x55b37c(0x14c)]('job')[a2_0x55b37c(0x99)](a2_0x55b37c(0x2a4)),jobListAction=async _0x16b0f5=>{const _0x5e629e=a2_0x55b37c,_0x36430b=new JobListCommand(),_0x424caf=program[_0x5e629e(0x247)](),_0x4a4665=await createTDXInstance(_0x424caf),_0x500386=await _0x36430b['run']({'options':{..._0x424caf,..._0x16b0f5},'args':[],'tdx':_0x4a4665});process['exit'](_0x500386);};jobCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xbc))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1fd))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xe4),a2_0x55b37c(0x1dc))[a2_0x55b37c(0x2bf)](jobListAction),program['command'](a2_0x55b37c(0x113),{'hidden':!![]})[a2_0x55b37c(0x99)](a2_0x55b37c(0x14e))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xe4),a2_0x55b37c(0x1dc))[a2_0x55b37c(0x2bf)](jobListAction),jobCmd['command'](a2_0x55b37c(0x26c))['description'](a2_0x55b37c(0xf7))[a2_0x55b37c(0x2bf)](async(_0x2c0e6c,_0x3fb328)=>{const _0x2da728=a2_0x55b37c,_0x18e573=new JobShowCommand(),_0x566ec6=program[_0x2da728(0x247)](),_0x1667c9=await createTDXInstance(_0x566ec6),_0x3f3390=await _0x18e573[_0x2da728(0x16d)]({'options':{..._0x566ec6,..._0x3fb328},'args':[_0x2c0e6c],'tdx':_0x1667c9});process['exit'](_0x3f3390);}),jobCmd['command'](a2_0x55b37c(0x1b0))[a2_0x55b37c(0x99)](a2_0x55b37c(0xcb))['action'](async(_0x36e9a9,_0x3d9a9f)=>{const _0x5e0b75=a2_0x55b37c,_0x189ad8=new JobKillCommand(),_0x2d495e=program[_0x5e0b75(0x247)](),_0x469937=await createTDXInstance(_0x2d495e),_0x5b2088=await _0x189ad8[_0x5e0b75(0x16d)]({'options':{..._0x2d495e,..._0x3d9a9f},'args':[_0x36e9a9],'tdx':_0x469937});process[_0x5e0b75(0x12d)](_0x5b2088);}),jobCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x158))[a2_0x55b37c(0x99)](a2_0x55b37c(0x25c))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x9f),a2_0x55b37c(0x1cc),a2_0x55b37c(0xa2))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x229),'Read\x20query\x20from\x20file')[a2_0x55b37c(0xe5)]('--database\x20<name>',a2_0x55b37c(0x9b),'information_schema')[a2_0x55b37c(0x2bf)](async(_0x439870,_0x517618)=>{const _0x55a20a=a2_0x55b37c,_0x469e8b=new JobSubmitCommand(),_0x27787b=program[_0x55a20a(0x247)](),_0x107ae4=await createTDXInstance(_0x27787b),_0x2b8d85=await _0x469e8b['run']({'options':{..._0x27787b,..._0x517618},'args':_0x439870?[_0x439870]:[],'tdx':_0x107ae4});process[_0x55a20a(0x12d)](_0x2b8d85);}),jobCmd['command']('result\x20<job-id>')[a2_0x55b37c(0x99)]('Get\x20job\x20results')[a2_0x55b37c(0x2bf)](async(_0x423469,_0x1da101)=>{const _0x314243=a2_0x55b37c,_0x526595=new JobResultCommand(),_0x582643=program[_0x314243(0x247)](),_0x5a7006=await createTDXInstance(_0x582643),_0x183be6=await _0x526595[_0x314243(0x16d)]({'options':{..._0x582643,..._0x1da101},'args':[_0x423469],'tdx':_0x5a7006});process[_0x314243(0x12d)](_0x183be6);});const llmCmd=program['command'](a2_0x55b37c(0x2ce))[a2_0x55b37c(0x99)](a2_0x55b37c(0x23a));llmCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1d0))[a2_0x55b37c(0x99)](a2_0x55b37c(0x28f))['action'](async(_0x2c1d7c,_0x3d19dc)=>{const _0xc28086=a2_0x55b37c,_0x12f5b1=new LLMUseCommand(),_0x474584=program[_0xc28086(0x247)](),_0x23056e=await createTDXInstance(_0x474584),_0x1ba321=await _0x12f5b1[_0xc28086(0x16d)]({'options':{..._0x474584,..._0x3d19dc},'args':[_0x2c1d7c],'tdx':_0x23056e});process[_0xc28086(0x12d)](_0x1ba321);}),llmCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x2d3))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1c2))[a2_0x55b37c(0x2bf)](async _0x28a065=>{const _0x230e85=a2_0x55b37c,_0x61ed46=new LLMModelsCommand(),_0x261926=program[_0x230e85(0x247)](),_0x5887c0=await createTDXInstance(_0x261926),_0x40b0c3=await _0x61ed46['run']({'options':{..._0x261926,..._0x28a065},'args':[],'tdx':_0x5887c0});process[_0x230e85(0x12d)](_0x40b0c3);});const projectCmd=llmCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x132))[a2_0x55b37c(0x99)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x24c9fc,_0x441974)=>{const _0x478385=a2_0x55b37c,_0x15f426=new LLMProjectsCommand(),_0x438c38=program['opts'](),_0x2c8c28=await createTDXInstance(_0x438c38),_0x5c8947=await _0x15f426[_0x478385(0x16d)]({'options':{..._0x438c38,..._0x441974},'args':_0x24c9fc?[_0x24c9fc]:[],'tdx':_0x2c8c28});process[_0x478385(0x12d)](_0x5c8947);};projectCmd['command'](a2_0x55b37c(0x103))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1fc))[a2_0x55b37c(0x2bf)](llmProjectListAction),llmCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x154))[a2_0x55b37c(0x99)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](llmProjectListAction),projectCmd[a2_0x55b37c(0x14c)]('create\x20<name>')[a2_0x55b37c(0x99)](a2_0x55b37c(0x105))[a2_0x55b37c(0xe5)]('--description\x20<text>',a2_0x55b37c(0xa8))[a2_0x55b37c(0x2bf)](async(_0x2bbe9c,_0x530573)=>{const _0x49d78d=a2_0x55b37c,_0x46c2e2=new LLMProjectCreateCommand(),_0x341d41=program[_0x49d78d(0x247)](),_0x292849=await createTDXInstance(_0x341d41),_0x3c623f=await _0x46c2e2[_0x49d78d(0x16d)]({'options':{..._0x341d41,..._0x530573},'args':[_0x2bbe9c],'tdx':_0x292849});process[_0x49d78d(0x12d)](_0x3c623f);}),projectCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x231))[a2_0x55b37c(0x99)](a2_0x55b37c(0x11f))['action'](async(_0x4aa738,_0x263a85)=>{const _0xde5c79=a2_0x55b37c,_0x63bca4=new LLMProjectDeleteCommand(),_0x5983b9=program[_0xde5c79(0x247)](),_0x4ea7f3=await createTDXInstance(_0x5983b9),_0x41ed83=await _0x63bca4[_0xde5c79(0x16d)]({'options':{..._0x5983b9,..._0x263a85},'args':[_0x4aa738],'tdx':_0x4ea7f3});process['exit'](_0x41ed83);}),projectCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x2ac))[a2_0x55b37c(0x99)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0xce),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1e1),a2_0x55b37c(0x18e))['action'](async(_0x472c99,_0x5e2b15)=>{const _0x119ffa=a2_0x55b37c,_0x2b9566=new LLMProjectBackupCommand(),_0x58dc56=program[_0x119ffa(0x247)](),_0x528e44=await createTDXInstance(_0x58dc56),_0x2cca7d=await _0x2b9566[_0x119ffa(0x16d)]({'options':{..._0x58dc56,..._0x5e2b15},'args':[_0x472c99],'tdx':_0x528e44});process[_0x119ffa(0x12d)](_0x2cca7d);}),projectCmd['command']('restore\x20<folder>')[a2_0x55b37c(0x99)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1a0),a2_0x55b37c(0xf3))['option'](a2_0x55b37c(0x1e1),a2_0x55b37c(0x10f))[a2_0x55b37c(0x2bf)](async(_0xb62e2,_0x235bae)=>{const _0x1f6bff=a2_0x55b37c,_0x966873=new LLMProjectRestoreCommand(),_0x24395f=program[_0x1f6bff(0x247)](),_0x4077fc=await createTDXInstance(_0x24395f),_0x332f06=await _0x966873[_0x1f6bff(0x16d)]({'options':{..._0x24395f,..._0x235bae},'args':[_0xb62e2],'tdx':_0x4077fc});process['exit'](_0x332f06);});const llmAgentListAction=async(_0x5d133a,_0x2d8205)=>{const _0x1b2ae4=a2_0x55b37c,_0x1e9597=new LLMAgentsCommand(),_0x56759e=program['opts'](),_0x9e72c8=await createTDXInstance(_0x56759e),_0x396f8a=await _0x1e9597[_0x1b2ae4(0x16d)]({'options':{..._0x56759e,..._0x2d8205},'args':_0x5d133a?[_0x5d133a]:[],'tdx':_0x9e72c8});process[_0x1b2ae4(0x12d)](_0x396f8a);};llmCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xab))['description'](a2_0x55b37c(0x1de))[a2_0x55b37c(0x2bf)](llmAgentListAction),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0xab))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x55b37c(0x2bf)](llmAgentListAction),llmCmd['command'](a2_0x55b37c(0x104))[a2_0x55b37c(0x99)](a2_0x55b37c(0x2d0))[a2_0x55b37c(0xe5)]('--last',a2_0x55b37c(0xd0))[a2_0x55b37c(0x2bf)](async(_0x59d532,_0x14087a)=>{const _0x4a3858=a2_0x55b37c,_0x2ce5d9=new LLMHistoryCommand(),_0x45d670=program[_0x4a3858(0x247)](),_0x53aa04=await createTDXInstance(_0x45d670),_0x548367=await _0x2ce5d9[_0x4a3858(0x16d)]({'options':{..._0x45d670,..._0x14087a},'args':_0x59d532?[_0x59d532]:[],'tdx':_0x53aa04});process[_0x4a3858(0x12d)](_0x548367);}),llmCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x106))[a2_0x55b37c(0x99)](a2_0x55b37c(0x293))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x260),a2_0x55b37c(0x2d6),a2_0x55b37c(0x211))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xcd),a2_0x55b37c(0x1e8))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1a9),a2_0x55b37c(0x1f4))['action'](async _0x29a1e2=>{const _0x1a6c82=a2_0x55b37c,_0x292075=new LLMProxyCommand(),_0x10f588=program[_0x1a6c82(0x247)](),_0x26a493=await createTDXInstance(_0x10f588),_0x1a4f7c={..._0x29a1e2,'port':_0x29a1e2[_0x1a6c82(0xd6)]?parseInt(_0x29a1e2[_0x1a6c82(0xd6)],0xa):undefined},_0x2675ae=await _0x292075[_0x1a6c82(0x16d)]({'options':{..._0x10f588,..._0x1a4f7c},'args':[],'tdx':_0x26a493});process[_0x1a6c82(0x12d)](_0x2675ae);}),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0xbb))[a2_0x55b37c(0x283)](a2_0x55b37c(0x242))[a2_0x55b37c(0x99)](a2_0x55b37c(0x254))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x183),a2_0x55b37c(0x2c7),a2_0x55b37c(0x208))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x253),a2_0x55b37c(0x234))[a2_0x55b37c(0xe5)]('-r,\x20--resume',a2_0x55b37c(0x15a))['option'](a2_0x55b37c(0x289),a2_0x55b37c(0x185))[a2_0x55b37c(0xe5)]('--llm-proxy\x20[url]',a2_0x55b37c(0x157))[a2_0x55b37c(0x149)]()[a2_0x55b37c(0x277)](!![])[a2_0x55b37c(0x1f3)](a2_0x55b37c(0x205),a2_0x55b37c(0x221))[a2_0x55b37c(0x2bf)](async(_0x34fc18,_0x1d3199)=>{const _0x3d7511=a2_0x55b37c,_0x453369=program['opts'](),_0x12cde2=Array[_0x3d7511(0x8b)](_0x34fc18)?_0x34fc18:[];if(_0x12cde2[0x0]===_0x3d7511(0x15e)){const _0x251513=new ClaudeStatuslineCommand(),_0x42c871=await _0x251513[_0x3d7511(0x16d)]({'options':{..._0x453369,..._0x1d3199},'args':_0x12cde2[_0x3d7511(0x186)](0x1),'tdx':null});process[_0x3d7511(0x12d)](_0x42c871);}if(_0x12cde2[0x0]===_0x3d7511(0x283)){const _0x5652ad=new ClaudeUsageCommand(),_0x5cf911=await _0x5652ad[_0x3d7511(0x16d)]({'options':{..._0x453369,..._0x1d3199},'args':_0x12cde2[_0x3d7511(0x186)](0x1),'tdx':null});process[_0x3d7511(0x12d)](_0x5cf911);}const _0x39f6bf=new ClaudeCommand(),_0x13a1b7=await createTDXInstance(_0x453369),_0x154190=await _0x39f6bf[_0x3d7511(0x16d)]({'options':{..._0x453369,..._0x1d3199},'args':_0x12cde2,'tdx':_0x13a1b7});process[_0x3d7511(0x12d)](_0x154190);}),program[a2_0x55b37c(0x14c)]('use\x20[resource]\x20[value]')[a2_0x55b37c(0x99)](a2_0x55b37c(0x2c6))[a2_0x55b37c(0xe5)]('--clear',a2_0x55b37c(0x2c9))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2b8),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x55b37c(0x2bf)](async(_0x5390c5,_0x809899,_0x40a0d4)=>{const _0x572463=a2_0x55b37c,_0x43d7b2=new UseCommand(),_0x58be53=program[_0x572463(0x247)](),_0x5830c0=[];if(_0x5390c5)_0x5830c0[_0x572463(0x1f2)](_0x5390c5);if(_0x809899)_0x5830c0[_0x572463(0x1f2)](_0x809899);const _0x4b8bb5=await _0x43d7b2[_0x572463(0x16d)]({'options':{..._0x58be53,..._0x40a0d4},'args':_0x5830c0,'tdx':null});process[_0x572463(0x12d)](_0x4b8bb5);}),program['command'](a2_0x55b37c(0x27b))[a2_0x55b37c(0x99)](a2_0x55b37c(0x266))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2b8),a2_0x55b37c(0x25d))[a2_0x55b37c(0x2bf)](async(_0x169f5c,_0x35c932)=>{const _0x3b3691=a2_0x55b37c,_0x5005b4=new UnsetCommand(),_0x2da4dc=program[_0x3b3691(0x247)](),_0x5d7ca7=await _0x5005b4[_0x3b3691(0x16d)]({'options':{..._0x2da4dc,..._0x35c932},'args':[_0x169f5c],'tdx':null});process[_0x3b3691(0x12d)](_0x5d7ca7);}),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x109))[a2_0x55b37c(0x99)](a2_0x55b37c(0x23f))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xfa),a2_0x55b37c(0x125))[a2_0x55b37c(0x2bf)](async _0x57d814=>{const _0x1bba8e=a2_0x55b37c,_0x63da7b=new ChatsCommand(),_0x3939eb=program['opts'](),_0xc003f8=await createTDXInstance(_0x3939eb),_0x45d36a=await _0x63da7b[_0x1bba8e(0x16d)]({'options':{..._0x3939eb,..._0x57d814},'args':[],'tdx':_0xc003f8});process[_0x1bba8e(0x12d)](_0x45d36a);});const authCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0xea))[a2_0x55b37c(0x99)](a2_0x55b37c(0xbd));async function runAuthStatusCommand(_0x25f10b){const _0x39e70a=a2_0x55b37c,_0x114ecb=new AuthStatusCommand(),_0x333690=program[_0x39e70a(0x247)](),_0x407839=await createTDXInstance(_0x333690),_0xeacb57=await _0x114ecb[_0x39e70a(0x16d)]({'options':{..._0x333690,..._0x25f10b},'args':[],'tdx':_0x407839});process[_0x39e70a(0x12d)](_0xeacb57);}authCmd[a2_0x55b37c(0x2bf)](runAuthStatusCommand),authCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x94))[a2_0x55b37c(0x99)](a2_0x55b37c(0x9d))[a2_0x55b37c(0x2bf)](runAuthStatusCommand),authCmd[a2_0x55b37c(0x14c)]('setup')[a2_0x55b37c(0x99)](a2_0x55b37c(0x2bb))[a2_0x55b37c(0x1f3)]('after',a2_0x55b37c(0x1ac))['action'](async _0x22e45e=>{const _0x50bdea=a2_0x55b37c,_0x372408=new AuthSetupCommand(),_0x5f3dbe=program['opts'](),_0xe18b77=await createTDXInstance(_0x5f3dbe),_0x41b4e1=await _0x372408[_0x50bdea(0x16d)]({'options':{..._0x5f3dbe,..._0x22e45e},'args':[],'tdx':_0xe18b77});process['exit'](_0x41b4e1);}),authCmd['command']('clear')[a2_0x55b37c(0x99)](a2_0x55b37c(0x1e0))[a2_0x55b37c(0x1f3)](a2_0x55b37c(0x205),a2_0x55b37c(0x265))['action'](async _0x4eea69=>{const _0x50cab7=a2_0x55b37c,_0x921794=new AuthClearCommand(),_0x288d2c=program[_0x50cab7(0x247)](),_0x3d1e3b=await _0x921794['run']({'options':{..._0x288d2c,..._0x4eea69},'args':[],'tdx':null});process[_0x50cab7(0x12d)](_0x3d1e3b);});const userCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x176))[a2_0x55b37c(0x99)]('User\x20management\x20commands'),userListAction=async _0x1eee22=>{const _0xc7987=a2_0x55b37c,_0x3ea47e=new UserListCommand(),_0xfce642=program[_0xc7987(0x247)](),_0x49e7da=await createTDXInstance(_0xfce642),_0x283e16=await _0x3ea47e[_0xc7987(0x16d)]({'options':{..._0xfce642,..._0x1eee22},'args':[],'tdx':_0x49e7da});process[_0xc7987(0x12d)](_0x283e16);};userCmd['action'](async _0x340e8e=>{const _0x41eabd=a2_0x55b37c,_0x559ad2=new UserCommand(),_0x464d41=program[_0x41eabd(0x247)](),_0x3a024c=await createTDXInstance(_0x464d41),_0x485a5=await _0x559ad2['run']({'options':{..._0x464d41,..._0x340e8e},'args':[],'tdx':_0x3a024c});process['exit'](_0x485a5);}),userCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xbc))['description'](a2_0x55b37c(0xad))['action'](userListAction),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x27a))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1ec))[a2_0x55b37c(0x2bf)](userListAction),program[a2_0x55b37c(0x14c)]('profiles')[a2_0x55b37c(0x99)](a2_0x55b37c(0x90))['action'](async _0x4b8f68=>{const _0x5b315a=a2_0x55b37c,_0x425b4b=new ProfilesCommand(),_0x264073=program[_0x5b315a(0x247)](),_0x1fbf0c=await _0x425b4b[_0x5b315a(0x16d)]({'options':{..._0x264073,..._0x4b8f68},'args':[],'tdx':null});process[_0x5b315a(0x12d)](_0x1fbf0c);});const profileCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0xf2))[a2_0x55b37c(0x99)](a2_0x55b37c(0x27e));profileCmd[a2_0x55b37c(0x2bf)](()=>{const _0x314b8c=a2_0x55b37c;profileCmd[_0x314b8c(0x124)]();});const profileListAction=async _0x31574a=>{const _0x56760f=new ProfilesCommand(),_0x48a7b3=program['opts'](),_0x25b8b3=await _0x56760f['run']({'options':{..._0x48a7b3,..._0x31574a},'args':[],'tdx':null});process['exit'](_0x25b8b3);};profileCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xbc))[a2_0x55b37c(0x99)](a2_0x55b37c(0x90))[a2_0x55b37c(0x2bf)](profileListAction),profileCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xcc))['description']('Create\x20a\x20new\x20profile')[a2_0x55b37c(0x1f3)](a2_0x55b37c(0x205),a2_0x55b37c(0x19d))[a2_0x55b37c(0x2bf)](async(_0x18836a,_0x1f69cc)=>{const _0x1f7c04=a2_0x55b37c,_0x52db54=new ProfileCreateCommand(),_0x493c97=program['opts'](),_0x270403=await _0x52db54[_0x1f7c04(0x16d)]({'options':{..._0x493c97,..._0x1f69cc},'args':_0x18836a?[_0x18836a]:[],'tdx':null});process[_0x1f7c04(0x12d)](_0x270403);}),profileCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x180))[a2_0x55b37c(0x99)](a2_0x55b37c(0x261))['addHelpText'](a2_0x55b37c(0x205),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')['action'](async(_0x16507c,_0x55e39e)=>{const _0x4b5702=a2_0x55b37c,_0x5218ea=new ProfileRemoveCommand(),_0x56fc2c=program[_0x4b5702(0x247)](),_0x93ad2b=await _0x5218ea[_0x4b5702(0x16d)]({'options':{..._0x56fc2c,..._0x55e39e},'args':[_0x16507c],'tdx':null});process['exit'](_0x93ad2b);}),profileCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1ba))[a2_0x55b37c(0x99)](a2_0x55b37c(0x262))[a2_0x55b37c(0x1f3)]('after',a2_0x55b37c(0x2a1))[a2_0x55b37c(0x2bf)](async(_0x37a995,_0x4d19b0)=>{const _0x133740=a2_0x55b37c,_0x472a82=new ProfileSetCommand(),_0x2285cf=program[_0x133740(0x247)](),_0xbddd26=await _0x472a82[_0x133740(0x16d)]({'options':{..._0x2285cf,..._0x4d19b0},'args':[_0x37a995],'tdx':null});process[_0x133740(0x12d)](_0xbddd26);}),profileCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x126))[a2_0x55b37c(0x99)](a2_0x55b37c(0x19e))['option']('--default','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x55b37c(0x1f3)]('after',a2_0x55b37c(0x257))[a2_0x55b37c(0x2bf)](async(_0x29fc52,_0x1d9ead)=>{const _0x39c539=a2_0x55b37c,_0x58c574=new ProfileUseCommand(),_0x1e9c7b=program[_0x39c539(0x247)](),_0x4bde86=await _0x58c574[_0x39c539(0x16d)]({'options':{..._0x1e9c7b,..._0x1d9ead},'args':[_0x29fc52],'tdx':null});process[_0x39c539(0x12d)](_0x4bde86);});const engageCmd=program['command']('engage')['description'](a2_0x55b37c(0x21c)),createEngageAction=_0x4901f7=>{return async(_0x2d4299,_0x3414a4)=>{const _0x47471=a2_0x76ce,_0x3122f9=new _0x4901f7(),_0x1c072d=program['opts'](),_0x175c33=await createTDXInstance(_0x1c072d),_0x21f866=await _0x3122f9[_0x47471(0x16d)]({'options':{..._0x1c072d,..._0x3414a4},'args':[_0x2d4299],'tdx':_0x175c33});process[_0x47471(0x12d)](_0x21f866);};},createEngageNoArgAction=_0x560c31=>{return async _0x28ca9d=>{const _0x412cc7=a2_0x76ce,_0x240d19=new _0x560c31(),_0x5ed315=program[_0x412cc7(0x247)](),_0x34e41f=await createTDXInstance(_0x5ed315),_0x5cde92=await _0x240d19['run']({'options':{..._0x5ed315,..._0x28ca9d},'args':[],'tdx':_0x34e41f});process[_0x412cc7(0x12d)](_0x5cde92);};},campaignCmd=engageCmd[a2_0x55b37c(0x14c)]('campaign')['description'](a2_0x55b37c(0x2d1)),campaignListAction=async(_0x275691,_0x38e534)=>{const _0x17b702=a2_0x55b37c,_0x11ed5e=new EngageCampaignsCommand(),_0x10cc07=program[_0x17b702(0x247)](),_0x4e8b96=await createTDXInstance(_0x10cc07),_0x24aebd=await _0x11ed5e['run']({'options':{..._0x10cc07,..._0x38e534},'args':_0x275691?[_0x275691]:[],'tdx':_0x4e8b96});process[_0x17b702(0x12d)](_0x24aebd);};campaignCmd[a2_0x55b37c(0x14c)]('list\x20[pattern]')[a2_0x55b37c(0x99)](a2_0x55b37c(0x178))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x273),a2_0x55b37c(0x20a))[a2_0x55b37c(0xe5)]('--status\x20<status>',a2_0x55b37c(0xc1))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0x17b))['action'](campaignListAction),engageCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x284))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1fe))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x273),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0xe4),a2_0x55b37c(0xc1))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0x17b))[a2_0x55b37c(0x2bf)](campaignListAction),campaignCmd['command'](a2_0x55b37c(0xed))[a2_0x55b37c(0x99)](a2_0x55b37c(0x241))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0x17b))[a2_0x55b37c(0xe5)]('--full',a2_0x55b37c(0xb3))[a2_0x55b37c(0x2bf)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x55b37c(0x24b))[a2_0x55b37c(0x99)](a2_0x55b37c(0x11c))[a2_0x55b37c(0x11d)](a2_0x55b37c(0x2be),a2_0x55b37c(0x1ae))[a2_0x55b37c(0x11d)](a2_0x55b37c(0x273),a2_0x55b37c(0x21d))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0xd2))['option']('--description\x20<desc>',a2_0x55b37c(0x123))['option'](a2_0x55b37c(0x195),a2_0x55b37c(0x10e))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2c3),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x55b37c(0xe5)]('--json-columns\x20<cols>',a2_0x55b37c(0x294))[a2_0x55b37c(0xe5)]('--start-at\x20<datetime>',a2_0x55b37c(0x219))['option']('--timezone\x20<tz>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x55b37c(0x2bf)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x199))[a2_0x55b37c(0x99)]('Update\x20a\x20campaign')['option'](a2_0x55b37c(0x275),'Workspace\x20name')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2be),a2_0x55b37c(0x1d7))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1a8),a2_0x55b37c(0x123))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x195),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2c3),a2_0x55b37c(0x280))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1d3),a2_0x55b37c(0x294))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x14d),a2_0x55b37c(0x219))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x204),a2_0x55b37c(0x251))[a2_0x55b37c(0x2bf)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1a1))[a2_0x55b37c(0x99)]('Delete\x20a\x20campaign')[a2_0x55b37c(0xe5)]('--workspace\x20<name>','Workspace\x20name')[a2_0x55b37c(0xe5)](a2_0x55b37c(0xec),a2_0x55b37c(0x100))[a2_0x55b37c(0x2bf)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x55b37c(0x15b))['description'](a2_0x55b37c(0x15d))[a2_0x55b37c(0xe5)]('--workspace\x20<name>',a2_0x55b37c(0x17b))[a2_0x55b37c(0x2bf)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x55b37c(0x14c)]('pause\x20<name-or-id>')[a2_0x55b37c(0x99)](a2_0x55b37c(0x1d2))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0x17b))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xdf))['description'](a2_0x55b37c(0x189))[a2_0x55b37c(0xe5)]('--workspace\x20<name>',a2_0x55b37c(0x17b))[a2_0x55b37c(0x2bf)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xc8))['description'](a2_0x55b37c(0x1e5))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0x17b))['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xf1))[a2_0x55b37c(0x99)](a2_0x55b37c(0x2c4)),templateListAction=async(_0x441991,_0x4e268c)=>{const _0x4f01e1=a2_0x55b37c,_0x1ec959=new EngageTemplatesCommand(),_0x45ce36=program[_0x4f01e1(0x247)](),_0x533e98=await createTDXInstance(_0x45ce36),_0x3f586a=await _0x1ec959[_0x4f01e1(0x16d)]({'options':{..._0x45ce36,..._0x4e268c},'args':_0x441991?[_0x441991]:[],'tdx':_0x533e98});process[_0x4f01e1(0x12d)](_0x3f586a);};templateCmd[a2_0x55b37c(0x14c)]('list\x20[pattern]')[a2_0x55b37c(0x99)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0x17b))[a2_0x55b37c(0x2bf)](templateListAction),engageCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1bb))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1ff))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0x17b))[a2_0x55b37c(0x2bf)](templateListAction),templateCmd[a2_0x55b37c(0x14c)]('show\x20<name-or-id>')[a2_0x55b37c(0x99)]('Show\x20email\x20template\x20details')['option'](a2_0x55b37c(0x275),a2_0x55b37c(0x17b))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x28d),a2_0x55b37c(0xb3))[a2_0x55b37c(0x2bf)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x24b))[a2_0x55b37c(0x99)](a2_0x55b37c(0x134))[a2_0x55b37c(0x11d)]('--name\x20<name>',a2_0x55b37c(0x107))[a2_0x55b37c(0x11d)]('--subject\x20<subject>','Email\x20subject\x20template')[a2_0x55b37c(0x11d)](a2_0x55b37c(0x1c5),a2_0x55b37c(0x287))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0xd2))['option'](a2_0x55b37c(0x222),a2_0x55b37c(0xb8))['option']('--editor-type\x20<type>',a2_0x55b37c(0x1d4))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x199))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1bd))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x275),a2_0x55b37c(0x17b))['option']('--name\x20<name>',a2_0x55b37c(0x160))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xa4),a2_0x55b37c(0xfe))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1c5),a2_0x55b37c(0x287))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x222),'Plaintext\x20template\x20content')[a2_0x55b37c(0x2bf)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1a1))[a2_0x55b37c(0x99)]('Delete\x20an\x20email\x20template')['option']('--workspace\x20<name>',a2_0x55b37c(0x17b))['option']('--yes',a2_0x55b37c(0x100))[a2_0x55b37c(0x2bf)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xb2))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1ad)),workspaceListAction=async(_0x45dbf0,_0x24285f)=>{const _0x12a7be=a2_0x55b37c,_0x216172=new EngageWorkspacesCommand(),_0x2f327c=program[_0x12a7be(0x247)](),_0x4a88fc=await createTDXInstance(_0x2f327c),_0x549fcf=await _0x216172[_0x12a7be(0x16d)]({'options':{..._0x2f327c,..._0x24285f},'args':_0x45dbf0?[_0x45dbf0]:[],'tdx':_0x4a88fc});process[_0x12a7be(0x12d)](_0x549fcf);};workspaceCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x103))[a2_0x55b37c(0x99)](a2_0x55b37c(0x2cd))[a2_0x55b37c(0x2bf)](workspaceListAction),engageCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x2cb))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1d5))['action'](workspaceListAction),workspaceCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xed))[a2_0x55b37c(0x99)](a2_0x55b37c(0x147))['option']('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x55b37c(0x14c)]('create')['description']('Create\x20a\x20workspace')['requiredOption']('--name\x20<name>',a2_0x55b37c(0x17b))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1a8),a2_0x55b37c(0x1bc))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command']('update\x20<name-or-id>')['description'](a2_0x55b37c(0xc2))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2be),a2_0x55b37c(0xe3))['option']('--description\x20<desc>','Workspace\x20description')['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command'](a2_0x55b37c(0x1a1))[a2_0x55b37c(0x99)](a2_0x55b37c(0x29b))['option'](a2_0x55b37c(0xec),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x126))['description'](a2_0x55b37c(0x203))['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x55b37c(0x1f6))['description'](a2_0x55b37c(0xe7)),connectionListAction=async _0x57236d=>{const _0x56c788=a2_0x55b37c,_0x1cdc08=new ConnectionListCommand(),_0x16589e=program['opts'](),_0x104fb5=await createTDXInstance(_0x16589e),_0x4e0b2d=await _0x1cdc08[_0x56c788(0x16d)]({'options':{..._0x16589e,..._0x57236d},'args':[],'tdx':_0x104fb5});process[_0x56c788(0x12d)](_0x4e0b2d);};connectionCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xbc))['description'](a2_0x55b37c(0x26e))[a2_0x55b37c(0x2bf)](connectionListAction),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x177),{'hidden':!![]})[a2_0x55b37c(0x99)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x55b37c(0x2bf)](connectionListAction),connectionCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1e9))[a2_0x55b37c(0x99)](a2_0x55b37c(0xd8))[a2_0x55b37c(0x2bf)](async(_0x1c3e19,_0x500f05)=>{const _0x285311=a2_0x55b37c,_0x1515a2=new ConnectionShowCommand(),_0x173abe=program[_0x285311(0x247)](),_0x34b0d9=await createTDXInstance(_0x173abe),_0x5a5c33=await _0x1515a2['run']({'options':{..._0x173abe,..._0x500f05},'args':[_0x1c3e19],'tdx':_0x34b0d9});process['exit'](_0x5a5c33);}),connectionCmd['command']('schema\x20<type>')[a2_0x55b37c(0x99)](a2_0x55b37c(0x96))[a2_0x55b37c(0x2bf)](async(_0x3a12d5,_0x3f50e7)=>{const _0x12a619=a2_0x55b37c,_0x577f20=new ConnectionSchemaCommand(),_0x3cfb9c=program[_0x12a619(0x247)](),_0x4fc87e=await createTDXInstance(_0x3cfb9c),_0x5093a6=await _0x577f20[_0x12a619(0x16d)]({'options':{..._0x3cfb9c,..._0x3f50e7},'args':[_0x3a12d5],'tdx':_0x4fc87e});process[_0x12a619(0x12d)](_0x5093a6);}),connectionCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x28a))['description'](a2_0x55b37c(0x2b6))[a2_0x55b37c(0x2bf)](async _0x27f6bd=>{const _0xc8205a=a2_0x55b37c,_0x3c8734=new ConnectionTypesCommand(),_0x2a054c=program['opts'](),_0x57562b=await createTDXInstance(_0x2a054c),_0x5c008a=await _0x3c8734[_0xc8205a(0x16d)]({'options':{..._0x2a054c,..._0x27f6bd},'args':[],'tdx':_0x57562b});process['exit'](_0x5c008a);}),connectionCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x151))['description'](a2_0x55b37c(0x17e))['action'](async(_0x51ecaf,_0x3a047b)=>{const _0x4c179e=a2_0x55b37c,_0x57c84a=new ConnectionSettingsCommand(),_0x4f22ee=program[_0x4c179e(0x247)](),_0x3358b6=await createTDXInstance(_0x4f22ee),_0x476ec8=await _0x57c84a[_0x4c179e(0x16d)]({'options':{..._0x4f22ee,..._0x3a047b},'args':[_0x51ecaf],'tdx':_0x3358b6});process['exit'](_0x476ec8);});const journeyCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0xbe))[a2_0x55b37c(0x99)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x4a250c,_0x522600)=>{const _0x2761be=a2_0x55b37c,_0x4c2120=new JourneyListCommand(),_0x36fc2d=program[_0x2761be(0x247)](),_0x2432b6=await createTDXInstance(_0x36fc2d),_0xbd65ce=await _0x4c2120[_0x2761be(0x16d)]({'options':{..._0x36fc2d,..._0x522600},'args':_0x4a250c?[_0x4a250c]:[],'tdx':_0x2432b6});process[_0x2761be(0x12d)](_0xbd65ce);};journeyCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x103))[a2_0x55b37c(0x99)]('List\x20journeys\x20in\x20current\x20context')[a2_0x55b37c(0x2bf)](journeyListAction),journeyCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1e6))[a2_0x55b37c(0x99)](a2_0x55b37c(0x12b))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x17c),a2_0x55b37c(0x13a))['option'](a2_0x55b37c(0xd1),a2_0x55b37c(0x137))[a2_0x55b37c(0x2bf)](async(_0x44aca3,_0x468669)=>{const _0x27aa1e=a2_0x55b37c,_0x1b6d07=new JourneyViewCommand(),_0x3d3467=program[_0x27aa1e(0x247)](),_0x3e314c=await createTDXInstance(_0x3d3467),_0x5327c6=await _0x1b6d07[_0x27aa1e(0x16d)]({'options':{..._0x3d3467,..._0x468669},'args':[_0x44aca3],'tdx':_0x3e314c});process[_0x27aa1e(0x12d)](_0x5327c6);}),journeyCmd['command'](a2_0x55b37c(0x111))[a2_0x55b37c(0x99)](a2_0x55b37c(0x22b))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x194),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x55b37c(0x2bf)](async(_0x47dadc,_0x4d09fe)=>{const _0x29b280=a2_0x55b37c,_0x401f75=new JourneyStatsCommand(),_0x386197=program[_0x29b280(0x247)](),_0x3976f1=await createTDXInstance(_0x386197),_0x604ebc=await _0x401f75[_0x29b280(0x16d)]({'options':{..._0x386197,..._0x4d09fe},'args':[_0x47dadc],'tdx':_0x3976f1});process[_0x29b280(0x12d)](_0x604ebc);}),journeyCmd[a2_0x55b37c(0x14c)]('pause\x20<name-or-path>')[a2_0x55b37c(0x99)](a2_0x55b37c(0x116))[a2_0x55b37c(0x2bf)](async(_0xb5e985,_0x2c0353)=>{const _0x38685a=a2_0x55b37c,_0x2f8f38=new JourneyPauseCommand(),_0x45a5f6=program['opts'](),_0x5b8a4f=await createTDXInstance(_0x45a5f6),_0x474b03=await _0x2f8f38[_0x38685a(0x16d)]({'options':{..._0x45a5f6,..._0x2c0353},'args':[_0xb5e985],'tdx':_0x5b8a4f});process[_0x38685a(0x12d)](_0x474b03);}),journeyCmd['command'](a2_0x55b37c(0xe0))[a2_0x55b37c(0x99)](a2_0x55b37c(0x26d))['action'](async(_0x1c78ca,_0x259479)=>{const _0x37974d=a2_0x55b37c,_0x2b501e=new JourneyResumeCommand(),_0xc07650=program[_0x37974d(0x247)](),_0xb66269=await createTDXInstance(_0xc07650),_0x464647=await _0x2b501e['run']({'options':{..._0xc07650,..._0x259479},'args':[_0x1c78ca],'tdx':_0xb66269});process[_0x37974d(0x12d)](_0x464647);}),journeyCmd[a2_0x55b37c(0x14c)]('pull\x20[name]')[a2_0x55b37c(0x99)]('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x55b37c(0xe5)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x55b37c(0xe5)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x55b37c(0x2bf)](async(_0x4b6af3,_0x1c15c3)=>{const _0x7a23e8=a2_0x55b37c,_0x121868=new JourneyPullCommand(),_0x2053f5=program[_0x7a23e8(0x247)](),_0x15eb07=await createTDXInstance(_0x2053f5),_0x45d261=await _0x121868[_0x7a23e8(0x16d)]({'options':{..._0x2053f5,..._0x1c15c3},'args':_0x4b6af3?[_0x4b6af3]:[],'tdx':_0x15eb07});process[_0x7a23e8(0x12d)](_0x45d261);}),journeyCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x9e))[a2_0x55b37c(0x99)](a2_0x55b37c(0xb5))['action'](async(_0x51ffce,_0x286f50)=>{const _0x3856b5=a2_0x55b37c,_0x3247d1=new JourneyPushCommand(),_0x49ae6d=program[_0x3856b5(0x247)](),_0x375eca=await createTDXInstance(_0x49ae6d),_0x17e21a=await _0x3247d1[_0x3856b5(0x16d)]({'options':{..._0x49ae6d,..._0x286f50},'args':_0x51ffce?[_0x51ffce]:[],'tdx':_0x375eca});process[_0x3856b5(0x12d)](_0x17e21a);}),journeyCmd[a2_0x55b37c(0x14c)]('validate\x20[target]')['description'](a2_0x55b37c(0x16c))['action'](async(_0x357ad3,_0x14f812)=>{const _0x5951e0=a2_0x55b37c,_0x1aaf71=new JourneyValidateCommand(),_0x5e49eb=program[_0x5951e0(0x247)](),_0x3c213e=await createTDXInstance(_0x5e49eb),_0x4aed01=await _0x1aaf71[_0x5951e0(0x16d)]({'options':{..._0x5e49eb,..._0x14f812},'args':_0x357ad3?[_0x357ad3]:[],'tdx':_0x3c213e});process[_0x5951e0(0x12d)](_0x4aed01);}),program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x138))[a2_0x55b37c(0x99)]('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x55b37c(0x2bf)](journeyListAction);const agentSyncCmd=program[a2_0x55b37c(0x14c)](a2_0x55b37c(0x292))[a2_0x55b37c(0x99)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x55b37c(0x14c)]('pull\x20[project]\x20[agent-name]')[a2_0x55b37c(0x99)](a2_0x55b37c(0x29e))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x12e),a2_0x55b37c(0x11b))['option'](a2_0x55b37c(0x1aa),a2_0x55b37c(0x1a4))[a2_0x55b37c(0x2bf)](async(_0x16919f,_0x3406d7,_0x1f1516)=>{const _0x3277fe=a2_0x55b37c,_0x44db1a=new AgentPullCommand(),_0x5c26a1=program[_0x3277fe(0x247)](),_0xe230e1=await createTDXInstance(_0x5c26a1),_0x4104a2=[];if(_0x16919f)_0x4104a2[_0x3277fe(0x1f2)](_0x16919f);if(_0x3406d7)_0x4104a2['push'](_0x3406d7);const _0x59cf1a=await _0x44db1a[_0x3277fe(0x16d)]({'options':{..._0x5c26a1,..._0x1f1516},'args':_0x4104a2,'tdx':_0xe230e1});process['exit'](_0x59cf1a);}),agentSyncCmd['command']('push\x20[path]')[a2_0x55b37c(0x99)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x1aa),'Push\x20without\x20confirmation')[a2_0x55b37c(0x2bf)](async(_0x38107b,_0x1d2008)=>{const _0x9a6986=a2_0x55b37c,_0x58526c=new AgentPushCommand(),_0x38fc2e=program['opts'](),_0x59539a=await createTDXInstance(_0x38fc2e),_0x58e2b2=await _0x58526c[_0x9a6986(0x16d)]({'options':{..._0x38fc2e,..._0x1d2008},'args':_0x38107b?[_0x38107b]:[],'tdx':_0x59539a});process[_0x9a6986(0x12d)](_0x58e2b2);}),agentSyncCmd['command'](a2_0x55b37c(0x214))['description']('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')['option'](a2_0x55b37c(0x135),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x55b37c(0x2bf)](async(_0xa7372b,_0x14f339)=>{const _0x369f73=a2_0x55b37c,_0x105ded=new AgentCloneCommand(),_0x3532c7=program[_0x369f73(0x247)](),_0xd53fb3=await createTDXInstance(_0x3532c7),_0xb525f1=await _0x105ded[_0x369f73(0x16d)]({'options':{..._0x3532c7,..._0x14f339},'args':_0xa7372b?[_0xa7372b]:[],'tdx':_0xd53fb3});process[_0x369f73(0x12d)](_0xb525f1);}),agentSyncCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x103))['description'](a2_0x55b37c(0x8f))['action'](llmAgentListAction),agentSyncCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0x1d8))[a2_0x55b37c(0x99)](a2_0x55b37c(0x1f7))['action'](async(_0x4123c5,_0x24fb37)=>{const _0x7e55c=a2_0x55b37c,_0x28626d=new LLMAgentShowCommand(),_0x3f7a20=program['opts'](),_0x27cdc2=await createTDXInstance(_0x3f7a20),_0xb9a67a=await _0x28626d[_0x7e55c(0x16d)]({'options':{..._0x3f7a20,..._0x24fb37},'args':[_0x4123c5],'tdx':_0x27cdc2});process[_0x7e55c(0x12d)](_0xb9a67a);}),agentSyncCmd[a2_0x55b37c(0x14c)](a2_0x55b37c(0xc5))[a2_0x55b37c(0x99)](a2_0x55b37c(0x2b9))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x268),a2_0x55b37c(0x212))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x183),a2_0x55b37c(0x23c),a2_0x55b37c(0x2a7))[a2_0x55b37c(0xe5)](a2_0x55b37c(0xa5),'Starter\x20message')['option']('--max-tool-iterations\x20<n>',a2_0x55b37c(0x16a),'4')[a2_0x55b37c(0xe5)](a2_0x55b37c(0x16e),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x55b37c(0x17d))[a2_0x55b37c(0x2bf)](async(_0x45f3f3,_0x5146d4)=>{const _0x208216=a2_0x55b37c,_0x504ed9=new LLMAgentCreateCommand(),_0x5d945b=program[_0x208216(0x247)](),_0x5081c7=await createTDXInstance(_0x5d945b),_0x4f8e4b=await _0x504ed9[_0x208216(0x16d)]({'options':{..._0x5d945b,..._0x5146d4},'args':[_0x45f3f3],'tdx':_0x5081c7});process[_0x208216(0x12d)](_0x4f8e4b);}),agentSyncCmd['command']('update\x20<agent-name>')[a2_0x55b37c(0x99)]('Update\x20an\x20existing\x20agent')[a2_0x55b37c(0xe5)]('--name\x20<text>',a2_0x55b37c(0x95))['option'](a2_0x55b37c(0x122),a2_0x55b37c(0x298))[a2_0x55b37c(0xe5)](a2_0x55b37c(0x2d5),a2_0x55b37c(0x1c3))['option'](a2_0x55b37c(0xa5),a2_0x55b37c(0x1e2))['action'](async(_0x3cf723,_0x258fcf)=>{const _0x4f2fb8=a2_0x55b37c,_0xb44794=new LLMAgentUpdateCommand(),_0x300ba4=program[_0x4f2fb8(0x247)](),_0x40443f=await createTDXInstance(_0x300ba4),_0x35e91d=await _0xb44794[_0x4f2fb8(0x16d)]({'options':{..._0x300ba4,..._0x258fcf},'args':[_0x3cf723],'tdx':_0x40443f});process[_0x4f2fb8(0x12d)](_0x35e91d);}),agentSyncCmd[a2_0x55b37c(0x14c)]('delete\x20<agent-name>')[a2_0x55b37c(0x99)](a2_0x55b37c(0xb4))['action'](async(_0x5a5bf1,_0x3bf959)=>{const _0x172378=a2_0x55b37c,_0x13456b=new LLMAgentDeleteCommand(),_0x3510b7=program['opts'](),_0x573c39=await createTDXInstance(_0x3510b7),_0x83c516=await _0x13456b[_0x172378(0x16d)]({'options':{..._0x3510b7,..._0x3bf959},'args':[_0x5a5bf1],'tdx':_0x573c39});process[_0x172378(0x12d)](_0x83c516);});export{program};export function runCLI(){const _0x44eb0f=a2_0x55b37c,_0x30161c=!process[_0x44eb0f(0x165)][_0x44eb0f(0x186)](0x2)[_0x44eb0f(0x249)];showBriefHelp=_0x30161c,program[_0x44eb0f(0x29a)](process[_0x44eb0f(0x165)]),_0x30161c&&program[_0x44eb0f(0x124)](),process[_0x44eb0f(0x206)][_0x44eb0f(0x8e)]&&process[_0x44eb0f(0x165)][_0x44eb0f(0x249)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x44eb0f(0x1d1)](_0x408dcd=>{_0x408dcd&&displayUpdateNotification(_0x408dcd);})[_0x44eb0f(0x202)](()=>{});}
|