@treasuredata/tdx 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +2 -2
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/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/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.d.ts +73 -3
- package/dist/commands/workflow-command.d.ts.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.d.ts +1 -1
- package/dist/core/command-output.d.ts.map +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.d.ts +1 -0
- package/dist/core/global-context.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/global-context.js.map +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.d.ts +1 -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/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.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.d.ts +32 -4
- package/dist/sdk/client/workflow-client.d.ts.map +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/client/workflow-client.js.map +1 -1
- package/dist/sdk/connection-validator.d.ts +10 -6
- package/dist/sdk/connection-validator.d.ts.map +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection-validator.js.map +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.d.ts +2 -0
- package/dist/sdk/errors.d.ts.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/errors.js.map +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.d.ts.map +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/journey-yaml.js.map +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/push-workflow.js.map +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/cdp.d.ts +5 -2
- package/dist/sdk/types/cdp.d.ts.map +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/index.d.ts +74 -4
- package/dist/sdk/workflow/index.d.ts.map +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/index.js.map +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x26ab3c=a2_0x4809;(function(_0x1c2f48,_0x253138){const _0x10f388=a2_0x4809,_0x4ecb54=_0x1c2f48();while(!![]){try{const _0x4a90d6=-parseInt(_0x10f388(0xea))/0x1*(parseInt(_0x10f388(0x157))/0x2)+parseInt(_0x10f388(0x1e6))/0x3+parseInt(_0x10f388(0x14e))/0x4+-parseInt(_0x10f388(0x254))/0x5*(-parseInt(_0x10f388(0x237))/0x6)+-parseInt(_0x10f388(0x10d))/0x7*(parseInt(_0x10f388(0x1fc))/0x8)+parseInt(_0x10f388(0x18a))/0x9*(-parseInt(_0x10f388(0xeb))/0xa)+parseInt(_0x10f388(0x194))/0xb;if(_0x4a90d6===_0x253138)break;else _0x4ecb54['push'](_0x4ecb54['shift']());}catch(_0x11b82a){_0x4ecb54['push'](_0x4ecb54['shift']());}}}(a2_0x107d,0xc4541));import{Command}from'commander';function a2_0x107d(){const _0x4c92fb=['summary','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files',',\x20version\x20','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','stats\x20<name-or-path>','Read\x20request\x20body\x20from\x20file','Read\x20SQL\x20query\x20from\x20file','--in\x20<name>','Show\x20master\x20table\x20sample\x20data','Directory\x20does\x20not\x20exist:\x20','--from\x20<timestamp>','New\x20workspace\x20name','chat\x20[message...]','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Include\x20execution\x20statistics','optionTerm','stderr','Workspace\x20description','error','site','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','validate\x20[file]','Continue\x20most\x20recent\x20conversation','Master\x20table\x20name','--table','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','claude\x20[args...]','map','activations\x20<segment_name>','options','--interval\x20<range>','--master','isTTY','show\x20[name]','then','--attributes-file\x20<file>','push','join','List\x20jobs','replace','Temperature\x20(0.0-2.0,\x20default:\x200.7)','list\x20[path]','Show\x20the\x20most\x20recent\x20chat','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Run\x20Trino\x20query\x20with\x20streaming\x20results','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','view\x20[name]','--agent\x20<ref>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','List\x20agents\x20in\x20current\x20project','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','[options]\x20--\x20[claude-code-args...]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','argumentDescription','types','Alias\x20for\x20--database\x20(natural\x20language\x20style)','attempt:','--database\x20<db>','--limit\x20<n>','argument','--llm-project\x20<name>','--email-sender-id\x20<id>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','padEnd','--name\x20<new_name>','Interactive\x20chat\x20selector','Remove\x20API\x20key\x20from\x20system\x20keychain','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--skip-validation','--session-time\x20<time>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','\x20(resolved\x20to\x20','--format\x20<format>','--dry-run','Editor\x20type','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Overwrite\x20local\x20changes\x20without\x20confirmation','--project\x20<name>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','registeredArguments','0.7','Open\x20parent\x20segment\x20in\x20web\x20browser','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','-d,\x20--database\x20<database>','pause\x20<name-or-path>','subcommandDescription','Show\x20agent\x20chat\x20URLs','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','describe','help','pause\x20<name-or-id>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','directory','Show\x20segment\x20schema\x20(column\x20types)','action','noColor','--description\x20<desc>','information_schema','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','parents\x20[pattern]','Read\x20query\x20from\x20file','desc','opts','LLM\x20project\x20to\x20use\x20(overrides\x20context)','AI-native\x20CLI\x20for\x20Treasure\x20Data','projects\x20[pattern]','Submit\x20a\x20job','connections','info\x20[segment_name]','create','End\x20time\x20filter\x20(ISO\x208601\x20format)','table','Plaintext\x20template\x20content','Export\x20journey(s)\x20as\x20YAML\x20files','backup\x20<name>','argumentTerm','connection','buildTime','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','hook','Arguments:','pull\x20[name]','Duplicate\x20a\x20campaign','Add\x20attributes\x20from\x20JSON\x20file','after','use\x20[name]','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','Updated\x20timezone','Starter\x20message','isDirectory','injectIntoOptions','required','-n,\x20--name\x20<name>','Include\x20subtasks\x20in\x20tasks\x20output','Show\x20job\x20details','Attributes\x20from\x20JSON\x20file','clone\x20[source]','setup','User\x20management\x20commands','--schedule-option\x20<value>','1yzHDSB','10dRVfzT','chdir','Output\x20as\x20JSON','command','--stage\x20<name>','Setup\x20API\x20key\x20authentication\x20interactively','name','Skip\x20population\x20counting','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--customer-group-file\x20<file>','delete\x20<name>','[task-name]','padWidth','-f,\x20--file\x20<path>','.dev','set','json','LLM\x20project\x20management','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Show\x20web\x20console\x20URLs\x20for\x20segments','update\x20<name-or-id>','--jsonl','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--version','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','gitRevision','Show\x20journey\x20statistics','\x20-\x20built\x20','Delete\x20an\x20email\x20template','--name\x20<name>','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--schedule-type\x20<type>','-u,\x20--use','54089geqjYd','parent-segment','parent','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Database\x20to\x20query\x20(default:\x20information_schema)','--invisible','workflow','--params\x20<json>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Data\x20connection\x20management\x20(for\x20activations/exports)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','database','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','apiKey','--timezone\x20<tz>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','-r,\x20--recursive','--behaviors-file\x20<file>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','list\x20[pattern]','proxy','update\x20<segment_name>','exit','push\x20[target]','show\x20<folder_ref>','--no-color','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Make\x20segment\x20invisible\x20(default:\x20visible)','allowUnknownOption','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','push\x20[file]','Agent\x20reference\x20(project-name/agent-name)','tsv','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Attempt\x20ID','--rule-file\x20<file>','preview\x20[file]','--yes','--rule\x20<json>','Get\x20job\x20results','slice','../package.json','--include-stats','Resume\x20a\x20paused\x20journey','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','--json-columns\x20<cols>','Override\x20project\x20name','validate\x20[target]','--start-at\x20<datetime>','Email\x20template\x20management','-w,\x20--web','alias','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Reason\x20for\x20killing\x20the\x20attempt','pull\x20[parent_or_file]','4000','clear','Output\x20directory','6116032gDQUtQ','Kill\x20a\x20job','--job-type\x20<type>','New\x20template\x20name','flatMap','[action]','--include-subtasks','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','2030366IECsKM','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','filter','--session\x20<id>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','--segment\x20<path>','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Show\x20console\x20URLs','--behavior\x20[name]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--description\x20<text>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','Create\x20a\x20new\x20LLM\x20project','Change\x20to\x20directory\x20before\x20executing\x20command','--full','--starter-message\x20<text>','Open\x20segment\x20in\x20web\x20browser','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Usage:\x20','Email\x20sender\x20ID\x20for\x20delivery','Resume\x20a\x20paused\x20campaign','--timeout\x20<seconds>','List\x20all\x20data\x20connections','session','use\x20<project-name>','update\x20<agent-name>','stdout','auth','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','run\x20[name]','parent_segment','--subject\x20<subject>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','push\x20[path]','Updated\x20description','Add\x20behaviors\x20as\x20JSON\x20string','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','campaigns\x20[pattern]','Email\x20subject\x20template','--model\x20<name>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','download\x20<project-name>\x20[output-dir]','addHelpText','--agent\x20<name>','Workflow\x20(Digdag)\x20management\x20commands','duplicate\x20<name-or-id>','forEach','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','profile','2293983NSZqgd','delete\x20<project-name-or-id>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','HTML\x20template\x20content','Authentication\x20management','run\x20<workflow>','jsonl','--folder\x20<name>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','9470527BbpeLN','-X,\x20--method\x20<method>','LLM\x20agent\x20management','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Workspace\x20name','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--max-depth\x20<depth>','List\x20all\x20users\x20in\x20the\x20account','subcommandTerm','--parent-segment\x20<name>','use\x20<path>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Revision\x20name\x20(default:\x20timestamp)','--in\x20<database>','--name\x20<new-name>','--tsv','-o,\x20--output\x20<file>','Campaign\x20type\x20(email\x20or\x20push)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','attempt','Enable\x20verbose\x20logging','Create\x20a\x20new\x20campaign','--table\x20<table>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','preview\x20[name]','INFO','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','sonnet','List\x20all\x20available\x20profiles','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','list\x20[project]','logs','[DEPRECATED]\x20Segment\x20folder\x20management','Add\x20attributes\x20as\x20JSON\x20string','show\x20<name-or-id>','Push\x20without\x20confirmation','user','show\x20[segment_name]','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','list','Database\x20to\x20use\x20(overrides\x20context)','history\x20[chat-id]','templates\x20[pattern]','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','statusline','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','optionDescription','Pull\x20child\x20segments\x20to\x20YAML\x20files','--clear','jobs','Filtering\x20rule\x20as\x20JSON\x20string','Update\x20a\x20workspace','desc\x20[name]','Show\x20journey\x20details','--max-tool-iterations\x20<n>','Skip\x20confirmation\x20prompt','Limit\x20number\x20of\x20rows','requiredOption','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--from-task\x20<task>','Validate\x20journey\x20YAML\x20files\x20locally','--debug','status','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--add-attributes-file\x20<file>','Workspace\x20management','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','resume\x20<name-or-path>','Move\x20to\x20folder','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20only\x20master\x20table\x20validation','--to\x20<timestamp>','--attributes\x20<json>','us01','Name\x20for\x20the\x20new\x20project\x20(required)','List\x20journeys\x20in\x20current\x20context','Pause\x20a\x20running\x20journey','Clear\x20session\x20context','2124585FMIdDC','Show\x20agent\x20details','tables\x20[pattern]','Show\x20segment\x20details\x20(alias\x20for\x20view)','CDP\x20Journey\x20Orchestration\x20commands','Delete\x20a\x20campaign','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Output\x20as\x20JSON\x20Lines','Show\x20stats\x20for\x20specific\x20stage','describe\x20[table]','Delete\x20a\x20workspace','tdx','show\x20<name>','--name\x20<text>','--editor-type\x20<type>','-d,\x20--database\x20<name>','--color','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--revision\x20<revision>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','--catalog\x20<catalog>','createAsync','1648AVQfkn','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--last','Delete\x20an\x20LLM\x20project','Pause\x20a\x20campaign','--kind\x20<type>','--trace','--html\x20<html>','Workflow\x20project\x20management','argv','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','segment','template','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Campaign\x20management','Show\x20campaign\x20details','INVALID_ARGUMENT','delete\x20<name-or-id>','run','DEBUG','--workspace\x20<name>','--add-behaviors-file\x20<file>','System\x20prompt/instructions\x20(default:\x20empty)','length','settings\x20<type>','push\x20[name]','restore\x20<folder>','Table\x20management\x20commands','Start\x20a\x20new\x20chat\x20session','-o,\x20--output\x20<folder>','Agent\x20prompt/instructions','Include\x20retried\x20attempts','Database\x20management\x20commands','version','--add-behaviors\x20<json>','Timezone\x20(e.g.,\x20America/Los_Angeles)','-C,\x20--directory\x20<path>','Campaign\x20name','claude-4.5-sonnet','--resume-from\x20<task>','-o,\x20--output\x20<dir>','port','--force','fields\x20[parent_name]','validate\x20[name]','show\x20<job-id>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Parent\x20folder\x20name\x20for\x20nested\x20folders','format','Show\x20email\x20template\x20details','Customer\x20group\x20from\x20JSON\x20file','build-info.json','Customer\x20group\x20as\x20JSON\x20string','--delete','campaign','-y,\x20--yes','Open\x20journey\x20in\x20web\x20browser','Filtering\x20rule\x20from\x20JSON\x20file','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','42LoyElc','Delete\x20an\x20agent','--no-proxy','--status\x20<status>','folder','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','commandDescription','create\x20<name>','logLevel','Trino\x20catalog\x20(default:\x20td)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--type\x20<type>','Unknown\x20action:\x20','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','--new','option','Force\x20retry\x20even\x20if\x20not\x20failed','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Parent\x20segment\x20management','configureHelp','view\x20<name-or-path>','utf-8','commandUsage','-f,\x20--force','desc\x20[segment_name]','--enriched','TRACE','Include\x20retried\x20attempts\x20(for\x20list)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','405595dGpGGr','Database\x20name\x20(default:\x20information_schema)','Maximum\x20recursion\x20depth\x20(default:\x2010)','Create\x20a\x20workspace','launch\x20<name-or-id>','Workspace\x20name\x20(required)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Workflow\x20parameter\x20(repeatable)','--attribute\x20[name]','parse','--parent-folder\x20<name>','New\x20segment\x20name','project','Show\x20web\x20console\x20URLs\x20for\x20journeys','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','create\x20<parent_name>\x20<folder_name>','--limit\x20<number>','commands','result\x20<job-id>','--behaviors\x20<json>','get','trino','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Update\x20an\x20email\x20template','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Output\x20file\x20path\x20(default:\x20<name>.yml)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','llm','--include-retried','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','retry','Save\x20output\x20to\x20file','create\x20<segment_name>','--temperature\x20<n>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','description','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','users','Set\x20or\x20show\x20parent\x20segment\x20context','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','New\x20campaign\x20name','Create\x20an\x20email\x20template','show\x20<agent-name>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Set\x20operation\x20timeout\x20in\x20seconds','Resume\x20from\x20specific\x20task','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','workflows\x20[project]','allowExcessArguments','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Attributes\x20as\x20JSON\x20string','-1d','--json','Task\x20name\x20for\x20logs\x20action','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','--plaintext\x20<text>','--customer-group\x20<json>','engage','Output\x20file\x20path','workspaces\x20[pattern]'];a2_0x107d=function(){return _0x4c92fb;};return a2_0x107d();}import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x26ab3c(0x25e)](readFileSync(join(__dirname,a2_0x26ab3c(0x13c)),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0x26ab3c(0x25e)](readFileSync(join(__dirname,a2_0x26ab3c(0x22f)),a2_0x26ab3c(0x24c)));}catch{}if(process[a2_0x26ab3c(0x205)]['includes'](a2_0x26ab3c(0x103))){let versionOutput='tdx\x20'+packageJson[a2_0x26ab3c(0x21d)];buildInfo[a2_0x26ab3c(0x105)]&&(versionOutput+='\x20('+buildInfo[a2_0x26ab3c(0x105)]+')'),buildInfo[a2_0x26ab3c(0xd3)]&&(versionOutput+=a2_0x26ab3c(0x107)+buildInfo[a2_0x26ab3c(0xd3)]),console['log'](versionOutput),process[a2_0x26ab3c(0x126)](0x0);}const program=new Command();let description=a2_0x26ab3c(0x303);buildInfo[a2_0x26ab3c(0x105)]?description+=a2_0x26ab3c(0x298)+packageJson[a2_0x26ab3c(0x21d)]+'\x20('+buildInfo['gitRevision']+')':description+=',\x20version\x20'+packageJson[a2_0x26ab3c(0x21d)];program[a2_0x26ab3c(0xf1)](a2_0x26ab3c(0x1f1))[a2_0x26ab3c(0x27b)](description),program[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x220),a2_0x26ab3c(0x166))[a2_0x26ab3c(0x246)]('-p,\x20--profile\x20<name>',a2_0x26ab3c(0x1b1))[a2_0x26ab3c(0x246)]('--site\x20<site>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x26ab3c(0x1e1))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2e0),a2_0x26ab3c(0x12f))['option'](a2_0x26ab3c(0x2ae),a2_0x26ab3c(0x1c1))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x28e),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x100),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1a3),a2_0x26ab3c(0x11a))[a2_0x26ab3c(0x246)]('--output\x20<file>',a2_0x26ab3c(0x275))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x265),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')['option'](a2_0x26ab3c(0x1f6),a2_0x26ab3c(0x1d2),![])[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x129),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x26ab3c(0x246)]('-v,\x20--verbose',a2_0x26ab3c(0x1a8),![])[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1d5),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x202),a2_0x26ab3c(0x1c0))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x16e),a2_0x26ab3c(0x286),'30')['option'](a2_0x26ab3c(0x2e1),'Preview\x20operation\x20without\x20executing',![])[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x233),'Skip\x20confirmation\x20prompts',![])[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x15b),a2_0x26ab3c(0x23c))['option'](a2_0x26ab3c(0x1f5),a2_0x26ab3c(0x1bc))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x29d),a2_0x26ab3c(0x2ce))['option'](a2_0x26ab3c(0x19d),a2_0x26ab3c(0x11f))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2d3),a2_0x26ab3c(0x302)),program[a2_0x26ab3c(0x24a)]({'formatHelp':(_0x323f9a,_0x4bcf40)=>{const _0x49eb56=a2_0x26ab3c,_0x2a15d6=_0x4bcf40[_0x49eb56(0xf7)](_0x323f9a,_0x4bcf40),_0x49baca=0x2,_0x20973e=0x2;function _0x169942(_0x3b0f69){const _0x102ccb=_0x3b0f69;return!!(_0x102ccb['_hidden']||_0x102ccb['hidden']);}function _0x1424cc(_0x15f825,_0x5715e0){const _0x54d69b=_0x49eb56;if(_0x5715e0){const _0x518342=''+_0x15f825[_0x54d69b(0x2d7)](_0x2a15d6+_0x20973e)+_0x5715e0;return _0x518342;}return _0x15f825;}function _0x2ecb0c(_0x5127c2){const _0x2ae8df=_0x49eb56;return _0x5127c2[_0x2ae8df(0x2bb)]('\x0a')[_0x2ae8df(0x2bd)](/^/gm,'\x20'['repeat'](_0x49baca));}const _0x4a8601=[];_0x4a8601[_0x49eb56(0x2ba)](_0x49eb56(0x16b)+_0x4bcf40[_0x49eb56(0x24d)](_0x323f9a));const _0x3f7974=_0x4bcf40[_0x49eb56(0x23d)](_0x323f9a);_0x3f7974&&(_0x4a8601[_0x49eb56(0x2ba)](''),_0x4a8601[_0x49eb56(0x2ba)](_0x3f7974));const _0x19d62e=_0x323f9a[_0x49eb56(0x266)][_0x49eb56(0x15a)](_0x389398=>!_0x169942(_0x389398));if(_0x19d62e[_0x49eb56(0x213)]>0x0){if(_0x323f9a[_0x49eb56(0xf1)]()===_0x49eb56(0x1f1)){const _0x4985b3=_0x323f9a[_0x49eb56(0x301)](),_0x143b81=!_0x4985b3[_0x49eb56(0x2fa)]&&process[_0x49eb56(0x173)][_0x49eb56(0x2b6)],_0x56c7a3=COMMAND_CATEGORIES,_0x309616=(_0x1b0d3a,_0x2a6e92)=>_0x143b81?_0x2a6e92(_0x1b0d3a):_0x1b0d3a,_0x31c3c0=new Map();_0x19d62e[_0x49eb56(0x187)](_0x1a266f=>{const _0x2b3825=_0x49eb56;_0x31c3c0[_0x2b3825(0xfa)](_0x1a266f[_0x2b3825(0xf1)](),_0x1a266f);}),_0x56c7a3['forEach'](_0x2d475d=>{const _0x5b1a46=_0x49eb56,_0x202996=_0x2d475d[_0x5b1a46(0x266)][_0x5b1a46(0x152)](_0xae45e8=>_0x31c3c0[_0x5b1a46(0x269)](_0xae45e8)??[]);if(_0x202996[_0x5b1a46(0x213)]>0x0){_0x4a8601[_0x5b1a46(0x2ba)](''),_0x4a8601[_0x5b1a46(0x2ba)](_0x309616(_0x2d475d[_0x5b1a46(0xf1)]+':',_0x2d475d['colorFn']));const _0xde871e=_0x202996[_0x5b1a46(0x2b1)](_0x24d1a4=>{const _0x217ecf=_0x5b1a46,_0x1bac65=_0x4bcf40['subcommandTerm'](_0x24d1a4),_0x41b584=_0x4bcf40[_0x217ecf(0x2ef)](_0x24d1a4);return _0x1424cc(_0x1bac65,_0x41b584);});_0x4a8601['push'](_0x2ecb0c(_0xde871e));}}),_0x4a8601[_0x49eb56(0x2ba)](''),_0x4a8601[_0x49eb56(0x2ba)](_0x49eb56(0x1ae));}else{const _0x5469a9=_0x19d62e[_0x49eb56(0x2b1)](_0x19ee6d=>{const _0x4b1afd=_0x49eb56,_0x4612a5=_0x4bcf40[_0x4b1afd(0x19c)](_0x19ee6d),_0xf3ca3b=_0x4bcf40['subcommandDescription'](_0x19ee6d);return _0x1424cc(_0x4612a5,_0xf3ca3b);});_0x4a8601[_0x49eb56(0x2ba)](''),_0x4a8601[_0x49eb56(0x2ba)]('Commands:'),_0x4a8601[_0x49eb56(0x2ba)](_0x2ecb0c(_0x5469a9));}}const _0x240e70=_0x323f9a[_0x49eb56(0x2b3)][_0x49eb56(0x15a)](_0x1032ba=>!_0x169942(_0x1032ba));if(_0x240e70[_0x49eb56(0x213)]>0x0){const _0x5587ad=_0x240e70[_0x49eb56(0x2b1)](_0x373b6f=>{const _0x27afac=_0x49eb56,_0x45dd2c=_0x4bcf40[_0x27afac(0x2a5)](_0x373b6f),_0x19dc33=_0x4bcf40[_0x27afac(0x1c6)](_0x373b6f);return _0x1424cc(_0x45dd2c,_0x19dc33);});_0x4a8601[_0x49eb56(0x2ba)](''),_0x4a8601[_0x49eb56(0x2ba)]('Options:'),_0x4a8601['push'](_0x2ecb0c(_0x5587ad));}const _0x4262c9=(_0x323f9a[_0x49eb56(0x2e8)]||[])['filter'](_0x43d9f0=>!_0x169942(_0x43d9f0));if(_0x4262c9[_0x49eb56(0x213)]>0x0){const _0x5e8beb=_0x4262c9['map'](_0x28b026=>{const _0x43976f=_0x49eb56,_0x4df77e=_0x4bcf40[_0x43976f(0xd1)](_0x28b026),_0x26331f=_0x4bcf40[_0x43976f(0x2cc)](_0x28b026);return _0x1424cc(_0x4df77e,_0x26331f);});_0x4a8601[_0x49eb56(0x2ba)](''),_0x4a8601[_0x49eb56(0x2ba)](_0x49eb56(0xd6)),_0x4a8601[_0x49eb56(0x2ba)](_0x2ecb0c(_0x5e8beb));}return _0x4a8601[_0x49eb56(0x2bb)]('\x0a');},'subcommandTerm':_0x28ab0d=>{const _0x59912e=a2_0x26ab3c,_0x2d1af5=(_0x28ab0d[_0x59912e(0x2e8)]||[])[_0x59912e(0x2b1)](_0x4893f7=>_0x4893f7[_0x59912e(0xe1)]?'<'+_0x4893f7['name']()+'>':'['+_0x4893f7[_0x59912e(0xf1)]()+']')[_0x59912e(0x2bb)]('\x20'),_0x3639c2=_0x28ab0d['aliases'](),_0xbdac66=_0x3639c2[_0x59912e(0x213)]>0x0?_0x28ab0d['name']()+',\x20'+_0x3639c2[_0x59912e(0x2bb)](',\x20'):_0x28ab0d['name']();return _0x2d1af5?_0xbdac66+'\x20'+_0x2d1af5:_0xbdac66;}}),program[a2_0x26ab3c(0xd5)]('preAction',_0x5c24b3=>{const _0x3494f5=a2_0x26ab3c,_0x3734c1=_0x5c24b3[_0x3494f5(0x301)]();if(_0x3734c1[_0x3494f5(0x2f7)]){const _0x3bd815=resolve(_0x3734c1[_0x3494f5(0x2f7)]),_0x3b2239=_0x3bd815!==_0x3734c1[_0x3494f5(0x2f7)]?_0x3494f5(0x2df)+_0x3bd815+')':'';if(!existsSync(_0x3bd815))throw new SDKError(ErrorCode[_0x3494f5(0x20c)],_0x3494f5(0x29f)+_0x3734c1[_0x3494f5(0x2f7)]+_0x3b2239,undefined,{'helpText':_0x3494f5(0x1f9)});const _0xc41a80=statSync(_0x3bd815);if(!_0xc41a80[_0x3494f5(0xdf)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x3734c1[_0x3494f5(0x2f7)]+_0x3b2239,undefined,{'helpText':_0x3494f5(0x2e6)});process[_0x3494f5(0xec)](_0x3bd815);}if(!_0x3734c1[_0x3494f5(0x22c)]){if(_0x3734c1[_0x3494f5(0x30a)])_0x3734c1[_0x3494f5(0x22c)]=_0x3494f5(0x30a);else{if(_0x3734c1[_0x3494f5(0xfb)])_0x3734c1[_0x3494f5(0x22c)]=_0x3494f5(0xfb);else{if(_0x3734c1[_0x3494f5(0x190)])_0x3734c1[_0x3494f5(0x22c)]=_0x3494f5(0x190);else _0x3734c1[_0x3494f5(0x133)]&&(_0x3734c1['format']=_0x3494f5(0x133));}}}_0x3734c1['in']&&!_0x3734c1[_0x3494f5(0x119)]&&(_0x3734c1['database']=_0x3734c1['in']);if(_0x3734c1['trace'])_0x3734c1['logLevel']=LogLevel[_0x3494f5(0x251)];else{if(_0x3734c1['debug'])_0x3734c1['logLevel']=LogLevel[_0x3494f5(0x20f)];else _0x3734c1[_0x3494f5(0x23f)]===undefined&&(_0x3734c1[_0x3494f5(0x23f)]=LogLevel[_0x3494f5(0x1ad)]);}});async function createTDXInstance(_0x220041){const _0x534811=a2_0x26ab3c,_0xc39a29=await GlobalContext[_0x534811(0x1fb)](_0x220041);return _0xc39a29[_0x534811(0xe0)](_0x220041),TDX[_0x534811(0x308)]({'site':_0xc39a29[_0x534811(0x2a9)],'apiKey':_0xc39a29[_0x534811(0x11c)],'logLevel':_0xc39a29['logLevel'],'profile':_0xc39a29[_0x534811(0x189)]});}const databaseCmd=program[a2_0x26ab3c(0xee)]('database')['alias']('db')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x21c)),databaseListAction=async(_0x384aad,_0x1160f2)=>{const _0x49cfee=new DatabasesCommand(),_0x82ab4d=program['opts'](),_0xbdfbc1=await createTDXInstance(_0x82ab4d),_0x52cd3f=await _0x49cfee['run']({'options':{..._0x82ab4d,..._0x1160f2},'args':_0x384aad?[_0x384aad]:[],'tdx':_0xbdfbc1});process['exit'](_0x52cd3f);};databaseCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x123))['description'](a2_0x26ab3c(0x1da))[a2_0x26ab3c(0x2f9)](databaseListAction),program[a2_0x26ab3c(0xee)]('databases\x20[pattern]',{'hidden':!![]})['description'](a2_0x26ab3c(0x1f7))['action'](databaseListAction),program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x2a2))['description']('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2c5),a2_0x26ab3c(0x132))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x245),a2_0x26ab3c(0x218))[a2_0x26ab3c(0x2f9)](async(_0x132e27,_0x500602)=>{const _0x2ffdcb=new ChatCommand(),_0x2b5c70=program['opts'](),_0x37924c=await createTDXInstance(_0x2b5c70),_0x5c968b=await _0x2ffdcb['run']({'options':{..._0x2b5c70,..._0x500602},'args':_0x132e27,'tdx':_0x37924c});process['exit'](_0x5c968b);});const apiCmd=program[a2_0x26ab3c(0xee)]('api\x20[endpoint]')[a2_0x26ab3c(0x296)](a2_0x26ab3c(0x209))[a2_0x26ab3c(0x183)](a2_0x26ab3c(0xda),a2_0x26ab3c(0x281))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x195),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')['option']('--data\x20<data>','Request\x20body\x20as\x20JSON\x20string')['option']('-f,\x20--file\x20<path>',a2_0x26ab3c(0x29b))[a2_0x26ab3c(0x246)]('-H,\x20--header\x20<header>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x428d21,_0x2ffd51)=>{return _0x2ffd51?[..._0x2ffd51,_0x428d21]:[_0x428d21];})[a2_0x26ab3c(0x246)]('--type\x20<api_type>',a2_0x26ab3c(0x27d),'td')['action'](async(_0x5b6e48,_0x276e43)=>{const _0x874136=a2_0x26ab3c;if(!_0x5b6e48){apiCmd[_0x874136(0x2f4)]();return;}const _0x32df36=new ApiCommand(),_0x1b1eac=program[_0x874136(0x301)](),_0x2e001d=await createTDXInstance(_0x1b1eac),_0x5bc21e=await _0x32df36[_0x874136(0x20e)]({'options':{..._0x1b1eac,..._0x276e43},'args':[_0x5b6e48],'tdx':_0x2e001d});process[_0x874136(0x126)](_0x5bc21e);}),tableCmd=program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x30a))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x217)),tableListAction=async(_0x473f74,_0x576b50)=>{const _0x2fcc8a=a2_0x26ab3c,_0x31eb9f=new TablesCommand(),_0x189b54=program[_0x2fcc8a(0x301)](),_0x2c4ecc=await createTDXInstance(_0x189b54);_0x576b50['in']&&(_0x576b50[_0x2fcc8a(0x119)]=_0x576b50['in']);const _0x4b4542=await _0x31eb9f[_0x2fcc8a(0x20e)]({'options':{..._0x189b54,..._0x576b50},'args':_0x473f74?[_0x473f74]:[],'tdx':_0x2c4ecc});process[_0x2fcc8a(0x126)](_0x4b4542);};tableCmd[a2_0x26ab3c(0xee)]('list\x20[pattern]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x197))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2ed),a2_0x26ab3c(0x1fd))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1a1),a2_0x26ab3c(0x2ce))['action'](tableListAction),program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1e8),{'hidden':!![]})['description'](a2_0x26ab3c(0x15c))[a2_0x26ab3c(0x246)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x26ab3c(0x1a1),a2_0x26ab3c(0x2ce))['action'](tableListAction),program[a2_0x26ab3c(0xee)]('show\x20[table]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x253))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2ed),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1a1),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x26ab3c(0x2f9)](async(_0x9f895f,_0x303f3e)=>{const _0x96665f=a2_0x26ab3c,_0xfe38ca=new ShowCommand(),_0x334eb3=program[_0x96665f(0x301)](),_0x59311f=await createTDXInstance(_0x334eb3);_0x303f3e['in']&&(_0x303f3e['database']=_0x303f3e['in']);const _0x3bb2f1=await _0xfe38ca['run']({'options':{..._0x334eb3,..._0x303f3e},'args':_0x9f895f?[_0x9f895f]:[],'tdx':_0x59311f});process['exit'](_0x3bb2f1);}),program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1ef))[a2_0x26ab3c(0x147)](a2_0x26ab3c(0x300))[a2_0x26ab3c(0x27b)]('Describe\x20table\x20schema')[a2_0x26ab3c(0x246)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option'](a2_0x26ab3c(0x1a1),a2_0x26ab3c(0x2ce))[a2_0x26ab3c(0x2f9)](async(_0x9fc821,_0x2bd291)=>{const _0x33ec12=a2_0x26ab3c,_0x241c37=new DescribeCommand(),_0x1d6609=program[_0x33ec12(0x301)](),_0x477dc4=await createTDXInstance(_0x1d6609);_0x2bd291['in']&&(_0x2bd291[_0x33ec12(0x119)]=_0x2bd291['in']);const _0x1da8bc=await _0x241c37[_0x33ec12(0x20e)]({'options':{..._0x1d6609,..._0x2bd291},'args':_0x9fc821?[_0x9fc821]:[],'tdx':_0x477dc4});process[_0x33ec12(0x126)](_0x1da8bc);}),program['command']('query\x20[sql]')['description'](a2_0x26ab3c(0x2c2))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2ed),a2_0x26ab3c(0x111))['option']('--in\x20<database>',a2_0x26ab3c(0x2ce))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1fa),a2_0x26ab3c(0x240))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0xf8),a2_0x26ab3c(0x29c))[a2_0x26ab3c(0x246)]('--limit\x20<rows>',a2_0x26ab3c(0x2af),'40')[a2_0x26ab3c(0x2f9)](async(_0x1d229c,_0xf6824c)=>{const _0x4503ef=a2_0x26ab3c,_0x5ba8c6=new QueryCommand(),_0x3318d8=program[_0x4503ef(0x301)](),_0x2edac2=await createTDXInstance(_0x3318d8);_0xf6824c['in']&&(_0xf6824c[_0x4503ef(0x119)]=_0xf6824c['in']);const _0x4c3e3e=await _0x5ba8c6[_0x4503ef(0x20e)]({'options':{..._0x3318d8,..._0xf6824c},'args':_0x1d229c?[_0x1d229c]:[],'tdx':_0x2edac2});process[_0x4503ef(0x126)](_0x4c3e3e);});const segmentCmd=program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x207))['alias']('sg')[a2_0x26ab3c(0x27b)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x382cf9,_0x22b1e6)=>{const _0x407ee5=a2_0x26ab3c,_0xff3fc7=new SegmentsCommand(),_0x282fe7=program[_0x407ee5(0x301)](),_0x49cdab=await createTDXInstance(_0x282fe7),_0x37a952=await _0xff3fc7[_0x407ee5(0x20e)]({'options':{..._0x282fe7,..._0x22b1e6},'args':_0x382cf9?[_0x382cf9]:[],'tdx':_0x49cdab});process[_0x407ee5(0x126)](_0x37a952);};segmentCmd['command'](a2_0x26ab3c(0x2bf))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x193))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x120),a2_0x26ab3c(0x115))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x19a),a2_0x26ab3c(0x256),'10')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x146),a2_0x26ab3c(0xfe))[a2_0x26ab3c(0x2f9)](segmentListAction),program['command']('segments\x20[path]',{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x181))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x120),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x26ab3c(0x19a),a2_0x26ab3c(0x256),'10')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x146),a2_0x26ab3c(0xfe))[a2_0x26ab3c(0x2f9)](segmentListAction),segmentCmd['command'](a2_0x26ab3c(0x19e),{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x27a))[a2_0x26ab3c(0x2f9)](async(_0x281117,_0x54c3c5)=>{const _0x996134=a2_0x26ab3c,_0x2ecc14=new SegmentUseCommand(),_0x144a90=program['opts'](),_0x3d896b=await createTDXInstance(_0x144a90),_0x4709c5=await _0x2ecc14[_0x996134(0x20e)]({'options':{..._0x144a90,..._0x54c3c5},'args':[_0x281117],'tdx':_0x3d896b});process['exit'](_0x4709c5);});const segmentViewAction=async(_0x2f3835,_0x29c5cf)=>{const _0x3e7690=a2_0x26ab3c,_0x54cef8=new SegmentViewCommand(),_0x3b2199=program[_0x3e7690(0x301)](),_0x586d09=await createTDXInstance(_0x3b2199),_0x3e89a9=await _0x54cef8[_0x3e7690(0x20e)]({'options':{..._0x3b2199,..._0x29c5cf},'args':_0x2f3835?[_0x2f3835]:[],'tdx':_0x586d09});process[_0x3e7690(0x126)](_0x3e89a9);};segmentCmd[a2_0x26ab3c(0xee)]('view\x20[segment_name]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x2e7))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x146),a2_0x26ab3c(0x169))[a2_0x26ab3c(0x2f9)](segmentViewAction),segmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x307),{'hidden':!![]})['alias'](a2_0x26ab3c(0x2f3))['option'](a2_0x26ab3c(0x146),a2_0x26ab3c(0x169))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1e9))[a2_0x26ab3c(0x2f9)](segmentViewAction),segmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x24f))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x2f8))['action'](async(_0x5b21d2,_0x38d25f)=>{const _0x64e1a7=a2_0x26ab3c,_0x3962b3=new SegmentDescCommand(),_0xe57b1b=program[_0x64e1a7(0x301)](),_0x2c5a09=await createTDXInstance(_0xe57b1b),_0x1bd0e8=await _0x3962b3[_0x64e1a7(0x20e)]({'options':{..._0xe57b1b,..._0x38d25f},'args':_0x5b21d2?[_0x5b21d2]:[],'tdx':_0x2c5a09});process['exit'](_0x1bd0e8);}),segmentCmd['command'](a2_0x26ab3c(0x1b9))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x179))[a2_0x26ab3c(0x2f9)](async(_0x332849,_0x18b02b)=>{const _0x5a4d8d=a2_0x26ab3c,_0x20bb4f=new SegmentShowCommand(),_0x3647af=program['opts'](),_0x39d6d0=await createTDXInstance(_0x3647af),_0xdf0af8=await _0x20bb4f[_0x5a4d8d(0x20e)]({'options':{..._0x3647af,..._0x18b02b},'args':_0x332849?[_0x332849]:[],'tdx':_0x39d6d0});process['exit'](_0xdf0af8);}),segmentCmd[a2_0x26ab3c(0xee)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x2c6))['action'](async(_0x4d45e6,_0x4f6648)=>{const _0x1fc5af=a2_0x26ab3c,_0x23ced0=new SegmentFolderListCommand(),_0x43588f=program[_0x1fc5af(0x301)](),_0x43463c=await createTDXInstance(_0x43588f),_0x32c377=await _0x23ced0[_0x1fc5af(0x20e)]({'options':{..._0x43588f,..._0x4f6648},'args':[_0x4d45e6],'tdx':_0x43463c});process[_0x1fc5af(0x126)](_0x32c377);});const folderCmd=segmentCmd['command'](a2_0x26ab3c(0x23b),{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1b4));folderCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x128))['description']('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x26ab3c(0x2f9)](async(_0x3960e9,_0x1a6b2a)=>{const _0x12b842=a2_0x26ab3c,_0x5db810=new SegmentFolderShowCommand(),_0x3bf854=program[_0x12b842(0x301)](),_0x2f41fc=await createTDXInstance(_0x3bf854),_0x1af49a=await _0x5db810[_0x12b842(0x20e)]({'options':{..._0x3bf854,..._0x1a6b2a},'args':[_0x3960e9],'tdx':_0x2f41fc});process[_0x12b842(0x126)](_0x1af49a);}),segmentCmd[a2_0x26ab3c(0xee)]('sql\x20[segment_name]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x156))[a2_0x26ab3c(0x2f9)](async(_0x26e7b4,_0x4d14bd)=>{const _0x5ce3f2=a2_0x26ab3c,_0xf4fa6d=new SegmentSQLCommand(),_0x2bb931=program['opts'](),_0x668c4a=await createTDXInstance(_0x2bb931),_0x3f8bc7=await _0xf4fa6d[_0x5ce3f2(0x20e)]({'options':{..._0x2bb931,..._0x4d14bd},'args':_0x26e7b4?[_0x26e7b4]:[],'tdx':_0x668c4a});process[_0x5ce3f2(0x126)](_0x3f8bc7);}),segmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x227))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x159))['action'](async(_0x535d5b,_0x4e516b)=>{const _0x1fcbbc=a2_0x26ab3c,_0x610d0=new SegmentFieldsCommand(),_0x8249d6=program[_0x1fcbbc(0x301)](),_0x1e69a8=await createTDXInstance(_0x8249d6),_0x4d9f97=await _0x610d0[_0x1fcbbc(0x20e)]({'options':{..._0x8249d6,..._0x4e516b},'args':_0x535d5b?[_0x535d5b]:[],'tdx':_0x1e69a8});process[_0x1fcbbc(0x126)](_0x4d9f97);}),segmentCmd['command'](a2_0x26ab3c(0x14a))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1c7))['option'](a2_0x26ab3c(0x233),'Skip\x20confirmation\x20prompts')['option'](a2_0x26ab3c(0x2e1),a2_0x26ab3c(0x2d5))[a2_0x26ab3c(0x2f9)](async(_0x134cee,_0xc6e193)=>{const _0x3925c9=a2_0x26ab3c,_0xec072a=new SegmentPullCommand(),_0xc0f112=program[_0x3925c9(0x301)](),_0x295f74=await createTDXInstance(_0xc0f112),_0x52a086=await _0xec072a[_0x3925c9(0x20e)]({'options':{..._0xc0f112,..._0xc6e193},'args':_0x134cee?[_0x134cee]:[],'tdx':_0x295f74});process['exit'](_0x52a086);}),segmentCmd[a2_0x26ab3c(0xee)]('push\x20[parent_or_file]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1ec))[a2_0x26ab3c(0x246)]('-y,\x20--yes','Skip\x20confirmation\x20prompts')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2e1),a2_0x26ab3c(0x2d5))['option'](a2_0x26ab3c(0x231),a2_0x26ab3c(0x28b))['action'](async(_0x1924d7,_0x23de7e)=>{const _0xe88568=a2_0x26ab3c,_0x46f5ec=new SegmentPushCommand(),_0x3acffa=program[_0xe88568(0x301)](),_0x40b119=await createTDXInstance(_0x3acffa),_0x447186=await _0x46f5ec[_0xe88568(0x20e)]({'options':{..._0x3acffa,..._0x23de7e},'args':_0x1924d7?[_0x1924d7]:[],'tdx':_0x40b119});process[_0xe88568(0x126)](_0x447186);}),segmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x143))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x11b))[a2_0x26ab3c(0x2f9)](async(_0x48e92d,_0x332f2d)=>{const _0x3106f2=a2_0x26ab3c,_0x5dbc2f=new SegmentValidateCommand(),_0x28ad7b=program[_0x3106f2(0x301)](),_0x331a81=await createTDXInstance(_0x28ad7b),_0x4bf679=await _0x5dbc2f[_0x3106f2(0x20e)]({'options':{..._0x28ad7b,..._0x332f2d},'args':_0x48e92d?[_0x48e92d]:[],'tdx':_0x331a81});process['exit'](_0x4bf679);}),segmentCmd['command'](a2_0x26ab3c(0x276),{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x15f))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x163),'Segment\x20description')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x139),a2_0x26ab3c(0x1ca))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x136),a2_0x26ab3c(0x235))['option']('--folder\x20<name>','Folder\x20name\x20for\x20organization')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x201),a2_0x26ab3c(0x241))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x112),a2_0x26ab3c(0x12d))[a2_0x26ab3c(0x246)]('--no-count-population',a2_0x26ab3c(0xf2))[a2_0x26ab3c(0x2f9)](async(_0x2091f7,_0x4547d8)=>{const _0x4486f8=a2_0x26ab3c,_0x2ca1b8=new SegmentCreateCommand(),_0x4f4365=program[_0x4486f8(0x301)](),_0x478171=await createTDXInstance(_0x4f4365),_0x1fb266=await _0x2ca1b8[_0x4486f8(0x20e)]({'options':{..._0x4f4365,..._0x4547d8},'args':[_0x2091f7],'tdx':_0x478171});process[_0x4486f8(0x126)](_0x1fb266);}),segmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x125),{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x27c))['option'](a2_0x26ab3c(0x2d8),a2_0x26ab3c(0x260))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x163),a2_0x26ab3c(0x17b))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x139),a2_0x26ab3c(0x17d))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x136),a2_0x26ab3c(0x278))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x191),a2_0x26ab3c(0x1dc))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x201),a2_0x26ab3c(0x241))[a2_0x26ab3c(0x2f9)](async(_0x49b020,_0x5a7a0a)=>{const _0x397427=a2_0x26ab3c,_0x695235=new SegmentUpdateCommand(),_0x518b30=program[_0x397427(0x301)](),_0x228a7c=await createTDXInstance(_0x518b30),_0x4f743b=await _0x695235[_0x397427(0x20e)]({'options':{..._0x518b30,..._0x5a7a0a},'args':[_0x49b020],'tdx':_0x228a7c});process[_0x397427(0x126)](_0x4f743b);});const parentCmd=segmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x10f),{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x15d)),parentListAction=async(_0x4ba1db,_0x3246e5)=>{const _0x5613b0=a2_0x26ab3c,_0x5ef24c=new ParentSegmentListCommand(),_0x3ecfd7=program[_0x5613b0(0x301)](),_0x3d363e=await createTDXInstance(_0x3ecfd7),_0xa5f8f9=await _0x5ef24c[_0x5613b0(0x20e)]({'options':{..._0x3ecfd7,..._0x3246e5},'args':_0x4ba1db?[_0x4ba1db]:[],'tdx':_0x3d363e});process['exit'](_0xa5f8f9);};parentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x123))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x104))[a2_0x26ab3c(0x2f9)](parentListAction),segmentCmd['command'](a2_0x26ab3c(0x2fe),{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x158))[a2_0x26ab3c(0x2f9)](parentListAction),parentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xd7))['description'](a2_0x26ab3c(0x22a))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1a4),a2_0x26ab3c(0x26f))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x26ab3c(0x2f9)](async(_0x237da0,_0x5c7cd6)=>{const _0xce4443=a2_0x26ab3c,_0x29e7d4=new ParentSegmentPullCommand(),_0x3fa1cc=program['opts'](),_0x4eac67=await createTDXInstance(_0x3fa1cc),_0x309b42=await _0x29e7d4[_0xce4443(0x20e)]({'options':{..._0x3fa1cc,..._0x5c7cd6},'args':_0x237da0?[_0x237da0]:[],'tdx':_0x4eac67});process[_0xce4443(0x126)](_0x309b42);}),parentCmd['command'](a2_0x26ab3c(0x131))[a2_0x26ab3c(0x27b)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x233),a2_0x26ab3c(0x1cf))['action'](async(_0x544fa9,_0x1d55c8)=>{const _0x3c2fd0=a2_0x26ab3c,_0xc0a0ba=new ParentSegmentPushCommand(),_0x3c8857=program['opts'](),_0x1a3d96=await createTDXInstance(_0x3c8857),_0x3dee6c=await _0xc0a0ba['run']({'options':{..._0x3c8857,..._0x1d55c8},'args':_0x544fa9?[_0x544fa9]:[],'tdx':_0x1a3d96});process[_0x3c2fd0(0x126)](_0x3dee6c);}),parentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x2ab))['description'](a2_0x26ab3c(0x1c3))['option']('--master',a2_0x26ab3c(0x1de))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x25d),a2_0x26ab3c(0x2e3))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x161),a2_0x26ab3c(0xfd))[a2_0x26ab3c(0x246)]('--enriched',a2_0x26ab3c(0x2aa))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2b4),a2_0x26ab3c(0x2f6),a2_0x26ab3c(0x28d))[a2_0x26ab3c(0x2f9)](async(_0x21644c,_0x3acb19)=>{const _0x5e39ee=a2_0x26ab3c,_0x2d0bb7=new ParentSegmentValidateCommand(),_0x46879d=program['opts'](),_0x2b2dcd=await createTDXInstance(_0x46879d),_0x25a910=await _0x2d0bb7[_0x5e39ee(0x20e)]({'options':{..._0x46879d,..._0x3acb19},'args':_0x21644c?[_0x21644c]:[],'tdx':_0x2b2dcd});process[_0x5e39ee(0x126)](_0x25a910);}),parentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x137))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x206))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2b5),'Show\x20master\x20table\x20sample\x20data')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x25d),a2_0x26ab3c(0x2d6))[a2_0x26ab3c(0x246)]('--behavior\x20[name]',a2_0x26ab3c(0xd4))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x250),a2_0x26ab3c(0xf3))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2b4),a2_0x26ab3c(0x2f6),a2_0x26ab3c(0x28d))[a2_0x26ab3c(0x2f9)](async(_0x17c6f1,_0x268f29)=>{const _0x55d257=a2_0x26ab3c,_0xa1f361=new ParentSegmentPreviewCommand(),_0x3ffc04=program['opts'](),_0x43fb08=await createTDXInstance(_0x3ffc04),_0x4514b8=await _0xa1f361[_0x55d257(0x20e)]({'options':{..._0x3ffc04,..._0x268f29},'args':_0x17c6f1?[_0x17c6f1]:[],'tdx':_0x43fb08});process['exit'](_0x4514b8);}),parentCmd['command'](a2_0x26ab3c(0x176))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1ba))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x233),'Skip\x20confirmation\x20prompt')[a2_0x26ab3c(0x2f9)](async(_0x18e387,_0x16cb04)=>{const _0x408cbf=a2_0x26ab3c,_0x2a86d=new ParentSegmentRunCommand(),_0x12ceaf=program[_0x408cbf(0x301)](),_0x3e814f=await createTDXInstance(_0x12ceaf),_0x3890e3=await _0x2a86d[_0x408cbf(0x20e)]({'options':{..._0x12ceaf,..._0x16cb04},'args':_0x18e387?[_0x18e387]:[],'tdx':_0x3e814f});process[_0x408cbf(0x126)](_0x3890e3);});const parentSegmentCmd=program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x10e))['alias']('ps')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x249));parentSegmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x123))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x104))['action'](parentListAction),parentSegmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xd7))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x2cb))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1a4),a2_0x26ab3c(0x294))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x233),a2_0x26ab3c(0x1cf))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x10c),a2_0x26ab3c(0x1a6))[a2_0x26ab3c(0x2f9)](async(_0x377b0f,_0x563af9)=>{const _0x10105d=a2_0x26ab3c,_0xa2ec3d=new ParentSegmentPullCommand(),_0x48b178=program[_0x10105d(0x301)](),_0x1cc9fa=await createTDXInstance(_0x48b178),_0x9bacf4=await _0xa2ec3d[_0x10105d(0x20e)]({'options':{..._0x48b178,..._0x563af9},'args':_0x377b0f?[_0x377b0f]:[],'tdx':_0x1cc9fa});process[_0x10105d(0x126)](_0x9bacf4);}),parentSegmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x215))[a2_0x26ab3c(0x27b)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x233),a2_0x26ab3c(0x1cf))['action'](async(_0x2900c6,_0xc7b2e7)=>{const _0x3d482e=a2_0x26ab3c,_0x5e3220=new ParentSegmentPushCommand(),_0x483a46=program['opts'](),_0x58e97a=await createTDXInstance(_0x483a46),_0x2cc3b9=await _0x5e3220[_0x3d482e(0x20e)]({'options':{..._0x483a46,..._0xc7b2e7},'args':_0x2900c6?[_0x2900c6]:[],'tdx':_0x58e97a});process['exit'](_0x2cc3b9);}),parentSegmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x228))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1c3))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2b5),a2_0x26ab3c(0x1de))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x25d),a2_0x26ab3c(0x2e3))[a2_0x26ab3c(0x246)]('--behavior\x20[name]',a2_0x26ab3c(0xfd))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x250),a2_0x26ab3c(0x2aa))[a2_0x26ab3c(0x246)]('--interval\x20<range>',a2_0x26ab3c(0x2f6),a2_0x26ab3c(0x28d))[a2_0x26ab3c(0x2f9)](async(_0x221655,_0x3bd846)=>{const _0x347e6a=a2_0x26ab3c,_0x1780f0=new ParentSegmentValidateCommand(),_0x4d250a=program[_0x347e6a(0x301)](),_0x3486f8=await createTDXInstance(_0x4d250a),_0x2b8d3a=await _0x1780f0[_0x347e6a(0x20e)]({'options':{..._0x4d250a,..._0x3bd846},'args':_0x221655?[_0x221655]:[],'tdx':_0x3486f8});process['exit'](_0x2b8d3a);}),parentSegmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1ac))[a2_0x26ab3c(0x27b)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2b5),a2_0x26ab3c(0x29e))[a2_0x26ab3c(0x246)]('--attribute\x20[name]',a2_0x26ab3c(0x2d6))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x161),a2_0x26ab3c(0xd4))[a2_0x26ab3c(0x246)]('--enriched',a2_0x26ab3c(0xf3))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2b4),a2_0x26ab3c(0x2f6),a2_0x26ab3c(0x28d))[a2_0x26ab3c(0x2f9)](async(_0x1ebbdc,_0x3f9899)=>{const _0xe36f4a=a2_0x26ab3c,_0x490b2d=new ParentSegmentPreviewCommand(),_0x10d8a2=program['opts'](),_0x379ff5=await createTDXInstance(_0x10d8a2),_0xe05286=await _0x490b2d[_0xe36f4a(0x20e)]({'options':{..._0x10d8a2,..._0x3f9899},'args':_0x1ebbdc?[_0x1ebbdc]:[],'tdx':_0x379ff5});process[_0xe36f4a(0x126)](_0xe05286);}),parentSegmentCmd[a2_0x26ab3c(0xee)]('run\x20[name]')['description'](a2_0x26ab3c(0x1ba))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x233),'Skip\x20confirmation\x20prompt')[a2_0x26ab3c(0x2f9)](async(_0x44d5ba,_0x4a3d39)=>{const _0x2cedc1=a2_0x26ab3c,_0xc9fa0c=new ParentSegmentRunCommand(),_0x40c2df=program[_0x2cedc1(0x301)](),_0x3efe74=await createTDXInstance(_0x40c2df),_0x13ddfc=await _0xc9fa0c[_0x2cedc1(0x20e)]({'options':{..._0x40c2df,..._0x4a3d39},'args':_0x44d5ba?[_0x44d5ba]:[],'tdx':_0x3efe74});process[_0x2cedc1(0x126)](_0x13ddfc);}),parentSegmentCmd[a2_0x26ab3c(0xee)]('fields\x20[name]')[a2_0x26ab3c(0x27b)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x28e),a2_0x26ab3c(0xed))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x100),a2_0x26ab3c(0x1ed))[a2_0x26ab3c(0x2f9)](async(_0x1d723a,_0x679908)=>{const _0x442fe5=a2_0x26ab3c,_0x4fb3ba=new ParentSegmentFieldsCommand(),_0x4f4396=program[_0x442fe5(0x301)](),_0x23293b=await createTDXInstance(_0x4f4396),_0x230442=await _0x4fb3ba['run']({'options':{..._0x4f4396,..._0x679908},'args':_0x1d723a?[_0x1d723a]:[],'tdx':_0x23293b});process[_0x442fe5(0x126)](_0x230442);}),parentSegmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x2c4))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x110))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x146),a2_0x26ab3c(0x2ea))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x28e),'Output\x20as\x20JSON')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x100),a2_0x26ab3c(0x1ed))[a2_0x26ab3c(0x2f9)](async(_0x1c0ad5,_0x59e22c)=>{const _0xc18842=a2_0x26ab3c,_0x5dace6=new ParentSegmentViewCommand(),_0xe65ae=program[_0xc18842(0x301)](),_0xba4fbe=await createTDXInstance(_0xe65ae),_0x21bf24=await _0x5dace6[_0xc18842(0x20e)]({'options':{..._0xe65ae,..._0x59e22c},'args':_0x1c0ad5?[_0x1c0ad5]:[],'tdx':_0xba4fbe});process[_0xc18842(0x126)](_0x21bf24);}),parentSegmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1cc))[a2_0x26ab3c(0x27b)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x26ab3c(0x246)]('--json','Output\x20as\x20JSON')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x100),a2_0x26ab3c(0x1ed))[a2_0x26ab3c(0x2f9)](async(_0x5631c3,_0x2c5e21)=>{const _0x13d06c=a2_0x26ab3c,_0x569782=new ParentSegmentDescCommand(),_0x286958=program[_0x13d06c(0x301)](),_0x4ff175=await createTDXInstance(_0x286958),_0x2c0280=await _0x569782['run']({'options':{..._0x286958,..._0x2c5e21},'args':_0x5631c3?[_0x5631c3]:[],'tdx':_0x4ff175});process[_0x13d06c(0x126)](_0x2c0280);}),parentSegmentCmd[a2_0x26ab3c(0xee)]('sql\x20[name]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x26c))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x28e),'Output\x20as\x20JSON')['option'](a2_0x26ab3c(0x100),a2_0x26ab3c(0x1ed))[a2_0x26ab3c(0x2f9)](async(_0x4f7f2d,_0x14227d)=>{const _0x549472=a2_0x26ab3c,_0x351add=new ParentSegmentSQLCommand(),_0x1b0033=program['opts'](),_0x2ffc20=await createTDXInstance(_0x1b0033),_0x29a9fe=await _0x351add[_0x549472(0x20e)]({'options':{..._0x1b0033,..._0x14227d},'args':_0x4f7f2d?[_0x4f7f2d]:[],'tdx':_0x2ffc20});process['exit'](_0x29a9fe);}),parentSegmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x2b7))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x13f))['option'](a2_0x26ab3c(0x2d1),a2_0x26ab3c(0x1d0))['option'](a2_0x26ab3c(0x28e),a2_0x26ab3c(0xed))['option'](a2_0x26ab3c(0x100),'Output\x20as\x20JSON\x20Lines')[a2_0x26ab3c(0x2f9)](async(_0x4c3e5e,_0x25819a)=>{const _0x3eaab6=a2_0x26ab3c,_0x35eaf=new ParentSegmentShowCommand(),_0x446e12=program['opts'](),_0x325bff=await createTDXInstance(_0x446e12),_0x2cb343=await _0x35eaf[_0x3eaab6(0x20e)]({'options':{..._0x446e12,..._0x25819a},'args':_0x4c3e5e?[_0x4c3e5e]:[],'tdx':_0x325bff});process[_0x3eaab6(0x126)](_0x2cb343);}),parentSegmentCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xdb))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x27f))[a2_0x26ab3c(0x2f9)](async(_0x57760e,_0x2e8e5a)=>{const _0x380809=a2_0x26ab3c,_0x69607a=new UseCommand(),_0x72de17=program['opts'](),_0x399048=_0x57760e?[_0x380809(0x177),_0x57760e]:[],_0x9d5025=await _0x69607a[_0x380809(0x20e)]({'options':{..._0x72de17,..._0x2e8e5a},'args':_0x399048,'tdx':null});process[_0x380809(0x126)](_0x9d5025);}),parentCmd['command']('create\x20<name>')['description']('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x26ab3c(0x1d1)](a2_0x26ab3c(0x2d0),'Master\x20database\x20name')[a2_0x26ab3c(0x1d1)](a2_0x26ab3c(0x1aa),a2_0x26ab3c(0x2ad))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x163),'Parent\x20segment\x20description')['option'](a2_0x26ab3c(0x10b),a2_0x26ab3c(0x148))['option'](a2_0x26ab3c(0xe9),a2_0x26ab3c(0x188))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x11d),a2_0x26ab3c(0x21f))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1e0),a2_0x26ab3c(0x28c))['option'](a2_0x26ab3c(0x2b9),a2_0x26ab3c(0xe5))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x268),'Behaviors\x20as\x20JSON\x20string')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x121),'Behaviors\x20from\x20JSON\x20file')['option'](a2_0x26ab3c(0x292),a2_0x26ab3c(0x230))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0xf4),a2_0x26ab3c(0x22e))[a2_0x26ab3c(0x2f9)](async(_0x277d79,_0x2592c2)=>{const _0x26108e=a2_0x26ab3c,_0x150450=new ParentSegmentCreateCommand(),_0x381f85=program[_0x26108e(0x301)](),_0x46c596=await createTDXInstance(_0x381f85),_0xc86e90=await _0x150450[_0x26108e(0x20e)]({'options':{..._0x381f85,..._0x2592c2},'args':[_0x277d79],'tdx':_0x46c596});process['exit'](_0xc86e90);}),parentCmd['command']('update\x20<name>')['description']('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x163),a2_0x26ab3c(0x17b))['option']('--schedule-type\x20<type>',a2_0x26ab3c(0x1ab))['option'](a2_0x26ab3c(0xe9),'Updated\x20schedule\x20option')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x11d),a2_0x26ab3c(0xdd))[a2_0x26ab3c(0x246)]('--add-attributes\x20<json>',a2_0x26ab3c(0x1b5))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1d8),a2_0x26ab3c(0xd9))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x21e),a2_0x26ab3c(0x17c))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x211),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x26ab3c(0x2f9)](async(_0x2e1b0a,_0x5f23e8)=>{const _0x5d25e1=a2_0x26ab3c,_0x2a6c33=new ParentSegmentUpdateCommand(),_0x188f2a=program[_0x5d25e1(0x301)](),_0x3978ee=await createTDXInstance(_0x188f2a),_0x4d78c1=await _0x2a6c33['run']({'options':{..._0x188f2a,..._0x5f23e8},'args':[_0x2e1b0a],'tdx':_0x3978ee});process[_0x5d25e1(0x126)](_0x4d78c1);}),folderCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x264))[a2_0x26ab3c(0x27b)]('Create\x20segment\x20folder')[a2_0x26ab3c(0x246)]('--description\x20<text>','Folder\x20description')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x25f),a2_0x26ab3c(0x22b))[a2_0x26ab3c(0x2f9)](async(_0x252eb9,_0x113fba,_0x333747)=>{const _0x285841=a2_0x26ab3c,_0x2c18a0=new SegmentFolderCreateCommand(),_0x12698b=program['opts'](),_0x2aa276=await createTDXInstance(_0x12698b),_0x48dfa7=await _0x2c18a0[_0x285841(0x20e)]({'options':{..._0x12698b,..._0x333747},'args':[_0x252eb9,_0x113fba],'tdx':_0x2aa276});process['exit'](_0x48dfa7);}),program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x2b2))[a2_0x26ab3c(0x27b)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x26ab3c(0x2f9)](async(_0x1642c8,_0xb6ed85)=>{const _0x16d069=a2_0x26ab3c,_0x4f346e=new ActivationsCommand(),_0x544fbb=program[_0x16d069(0x301)](),_0x1adf93=await createTDXInstance(_0x544fbb),_0x1277db=await _0x4f346e['run']({'options':{..._0x544fbb,..._0xb6ed85},'args':[_0x1642c8],'tdx':_0x1adf93});process['exit'](_0x1277db);});function a2_0x4809(_0x13b5b,_0x215b33){_0x13b5b=_0x13b5b-0xcf;const _0x107def=a2_0x107d();let _0x480987=_0x107def[_0x13b5b];return _0x480987;}const workflowCmd=program['command'](a2_0x26ab3c(0x113))[a2_0x26ab3c(0x147)]('wf')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x185)),wfProjectCmd=workflowCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x261))['description'](a2_0x26ab3c(0x204)),wfProjectListAction=async(_0x22dd8c,_0x316946)=>{const _0x280501=a2_0x26ab3c,_0x22b6d6=new WorkflowProjectsCommand(),_0x23d2d8=program[_0x280501(0x301)](),_0x28e551=await createTDXInstance(_0x23d2d8),_0x404dac=await _0x22b6d6[_0x280501(0x20e)]({'options':{..._0x23d2d8,..._0x316946},'args':_0x22dd8c?[_0x22dd8c]:[],'tdx':_0x28e551});process[_0x280501(0x126)](_0x404dac);};wfProjectCmd['command'](a2_0x26ab3c(0x123))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x102))[a2_0x26ab3c(0x2f9)](wfProjectListAction),workflowCmd['command'](a2_0x26ab3c(0x304))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1bf))[a2_0x26ab3c(0x2f9)](wfProjectListAction);const wfWorkflowListAction=async(_0x412131,_0x301a29)=>{const _0x125d1c=a2_0x26ab3c,_0x56e5ad=new WorkflowWorkflowsCommand(),_0x52df59=program[_0x125d1c(0x301)](),_0x4af131=await createTDXInstance(_0x52df59),_0x302f57=await _0x56e5ad[_0x125d1c(0x20e)]({'options':{..._0x52df59,..._0x301a29},'args':_0x412131?[_0x412131]:[],'tdx':_0x4af131});process['exit'](_0x302f57);};workflowCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x289))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x192))[a2_0x26ab3c(0x2f9)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x170))['description']('Workflow\x20session\x20management'),wfSessionListAction=async(_0x54ff01,_0x50d6a2)=>{const _0x596d2c=a2_0x26ab3c,_0x4b17b5=new WorkflowSessionsCommand(),_0x257f33=program[_0x596d2c(0x301)](),_0x5f2c01=await createTDXInstance(_0x257f33),_0x5eeb6f=await _0x4b17b5[_0x596d2c(0x20e)]({'options':{..._0x257f33,..._0x50d6a2},'args':_0x54ff01?[_0x54ff01]:[],'tdx':_0x5f2c01});process[_0x596d2c(0x126)](_0x5eeb6f);};wfSessionCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1b2))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x130))['option'](a2_0x26ab3c(0x23a),a2_0x26ab3c(0x1d7))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2a0),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x26ab3c(0x246)]('--to\x20<timestamp>',a2_0x26ab3c(0x309))[a2_0x26ab3c(0x2f9)](wfSessionListAction),workflowCmd[a2_0x26ab3c(0xee)]('sessions\x20[project]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x273))[a2_0x26ab3c(0x246)]('--status\x20<status>',a2_0x26ab3c(0x1d7))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2a0),a2_0x26ab3c(0x2de))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1df),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction);const wfAttemptListAction=async(_0x431b4d,_0x29dce5)=>{const _0x59c29b=a2_0x26ab3c,_0x2f0e40=new WorkflowAttemptsCommand(),_0x475f61=program[_0x59c29b(0x301)](),_0x1683d7=await createTDXInstance(_0x475f61),_0x290165=await _0x2f0e40[_0x59c29b(0x20e)]({'options':{..._0x475f61,..._0x29dce5},'args':_0x431b4d?[_0x431b4d]:[],'tdx':_0x1683d7});process[_0x59c29b(0x126)](_0x290165);},attemptCmd=workflowCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1a7))[a2_0x26ab3c(0x27b)]('Workflow\x20attempt\x20management')[a2_0x26ab3c(0x2d2)]('[attempt-id]',a2_0x26ab3c(0x135))[a2_0x26ab3c(0x2d2)](a2_0x26ab3c(0x153),a2_0x26ab3c(0x26e))[a2_0x26ab3c(0x2d2)](a2_0x26ab3c(0xf6),a2_0x26ab3c(0x28f))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x154),a2_0x26ab3c(0xe3))[a2_0x26ab3c(0x246)]('--reason\x20<text>',a2_0x26ab3c(0x149))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x223),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x114),a2_0x26ab3c(0x2fd))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x226),a2_0x26ab3c(0x247))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x272),a2_0x26ab3c(0x252))[a2_0x26ab3c(0x2f9)](async(_0x33fdcf,_0x468757,_0x113506,_0x4886c6)=>{const _0x361fb8=a2_0x26ab3c;if(_0x33fdcf===_0x361fb8(0x1bb)){await wfAttemptListAction(_0x468757,_0x4886c6);return;}if(!_0x33fdcf){attemptCmd[_0x361fb8(0x2f4)]();return;}const _0x28fb74=program['opts'](),_0x3c672b=await createTDXInstance(_0x28fb74);let _0x304c08=0x0;if(!_0x468757){const _0x205572=new WorkflowAttemptCommand();_0x304c08=await _0x205572[_0x361fb8(0x20e)]({'options':{..._0x28fb74,..._0x4886c6},'args':[_0x33fdcf],'tdx':_0x3c672b});}else{if(_0x468757===_0x361fb8(0x1b3)){const _0x222194=new WorkflowLogsCommand();_0x304c08=await _0x222194[_0x361fb8(0x20e)]({'options':{..._0x28fb74,..._0x4886c6},'args':_0x113506?[_0x33fdcf,_0x113506]:[_0x33fdcf],'tdx':_0x3c672b});}else{if(_0x468757==='tasks'){const _0x7cef38=new WorkflowTasksCommand();_0x304c08=await _0x7cef38[_0x361fb8(0x20e)]({'options':{..._0x28fb74,..._0x4886c6},'args':[_0x33fdcf],'tdx':_0x3c672b});}else{if(_0x468757==='kill'){const _0x33ebee=new WorkflowKillCommand();_0x304c08=await _0x33ebee[_0x361fb8(0x20e)]({'options':{..._0x28fb74,..._0x4886c6},'args':[_0x33fdcf],'tdx':_0x3c672b});}else{if(_0x468757===_0x361fb8(0x274)){const _0x4acf71=new WorkflowRetryCommand();_0x304c08=await _0x4acf71[_0x361fb8(0x20e)]({'options':{..._0x28fb74,..._0x4886c6},'args':[_0x361fb8(0x2cf)+_0x33fdcf],'tdx':_0x3c672b});}else console['error'](_0x361fb8(0x243)+_0x468757),console[_0x361fb8(0x2a8)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x304c08=0x1;}}}}process['exit'](_0x304c08);});attemptCmd['command'](a2_0x26ab3c(0x1b2))['description'](a2_0x26ab3c(0x1c5))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x272),a2_0x26ab3c(0x21b))[a2_0x26ab3c(0x2f9)](wfAttemptListAction),workflowCmd[a2_0x26ab3c(0xee)]('attempts\x20[project]')['description'](a2_0x26ab3c(0x2c8))['option'](a2_0x26ab3c(0x272),'Include\x20retried\x20attempts')[a2_0x26ab3c(0x2f9)](wfAttemptListAction),workflowCmd[a2_0x26ab3c(0xee)]('retry\x20<session-id>')['description'](a2_0x26ab3c(0x2ec))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1d3),a2_0x26ab3c(0x287))['option']('--params\x20<json>',a2_0x26ab3c(0x25a))['action'](async(_0x40dae8,_0x2ebe60)=>{const _0xcf881d=a2_0x26ab3c,_0x11b80d=new WorkflowRetryCommand(),_0x376072=program[_0xcf881d(0x301)](),_0x511b4d=await createTDXInstance(_0x376072),_0x44031c=await _0x11b80d[_0xcf881d(0x20e)]({'options':{..._0x376072,..._0x2ebe60},'args':[_0x40dae8],'tdx':_0x511b4d});process[_0xcf881d(0x126)](_0x44031c);}),workflowCmd['command'](a2_0x26ab3c(0x18f))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x164))[a2_0x26ab3c(0x246)]('--param\x20<key=value>',a2_0x26ab3c(0x25c),(_0x64d4ea,_0xf1688a=[])=>[..._0xf1688a,_0x64d4ea],[])['option'](a2_0x26ab3c(0x2dd),a2_0x26ab3c(0x19f))[a2_0x26ab3c(0x2f9)](async(_0x118c49,_0x2d39b8)=>{const _0x5c84bb=a2_0x26ab3c,_0x2cd046=new WorkflowRunCommand(),_0x531ceb=program[_0x5c84bb(0x301)](),_0x5dff86=await createTDXInstance(_0x531ceb),_0x5c0d07=await _0x2cd046[_0x5c84bb(0x20e)]({'options':{..._0x531ceb,..._0x2d39b8},'args':[_0x118c49],'tdx':_0x5dff86});process['exit'](_0x5c0d07);}),workflowCmd['command'](a2_0x26ab3c(0x182))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x236))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1f8),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x26ab3c(0x2f9)](async(_0x16c5bc,_0x4906aa,_0x3bf61a)=>{const _0x2ba8d2=a2_0x26ab3c,_0x271129=new WorkflowDownloadCommand(),_0xe04976=program[_0x2ba8d2(0x301)](),_0x4b4c62=await createTDXInstance(_0xe04976),_0x29136d=await _0x271129[_0x2ba8d2(0x20e)]({'options':{..._0xe04976,..._0x3bf61a},'args':[_0x16c5bc,_0x4906aa||'.'],'tdx':_0x4b4c62});process[_0x2ba8d2(0x126)](_0x29136d);}),workflowCmd[a2_0x26ab3c(0xee)]('push\x20[project-name-or-dir]')[a2_0x26ab3c(0x27b)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x109),a2_0x26ab3c(0x142))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1f8),a2_0x26ab3c(0x1a0))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2dc),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x26ab3c(0x2f9)](async(_0x38f077,_0x280624)=>{const _0x26d859=a2_0x26ab3c,_0x3292c6=new WorkflowPushCommand(),_0x173cb1=program[_0x26d859(0x301)](),_0xf88f71=await createTDXInstance(_0x173cb1),_0x116a57=await _0x3292c6[_0x26d859(0x20e)]({'options':{..._0x173cb1,..._0x280624},'args':_0x38f077?[_0x38f077]:[],'tdx':_0xf88f71});process[_0x26d859(0x126)](_0x116a57);}),workflowCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x18b))[a2_0x26ab3c(0x27b)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x26ab3c(0x2f9)](async(_0x3e9988,_0x6fba87)=>{const _0x4f965a=a2_0x26ab3c,_0x27820a=new WorkflowDeleteCommand(),_0x237b47=program[_0x4f965a(0x301)](),_0x5066bc=await createTDXInstance(_0x237b47),_0x4a997d=await _0x27820a['run']({'options':{..._0x237b47,..._0x6fba87},'args':[_0x3e9988],'tdx':_0x5066bc});process['exit'](_0x4a997d);});const jobCmd=program[a2_0x26ab3c(0xee)]('job')[a2_0x26ab3c(0x27b)]('Job\x20management\x20commands'),jobListAction=async _0x51edf3=>{const _0x27a7eb=a2_0x26ab3c,_0x218ab5=new JobListCommand(),_0x19c7f0=program[_0x27a7eb(0x301)](),_0x47664d=await createTDXInstance(_0x19c7f0),_0x40d9e1=await _0x218ab5['run']({'options':{..._0x19c7f0,..._0x51edf3},'args':[],'tdx':_0x47664d});process[_0x27a7eb(0x126)](_0x40d9e1);};jobCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1bb))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x2bc))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x23a),a2_0x26ab3c(0x16a))[a2_0x26ab3c(0x2f9)](jobListAction),program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1c9),{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x299))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x23a),a2_0x26ab3c(0x16a))[a2_0x26ab3c(0x2f9)](jobListAction),jobCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x229))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0xe4))[a2_0x26ab3c(0x2f9)](async(_0x48f2f8,_0x56d090)=>{const _0x147101=a2_0x26ab3c,_0x5986c4=new JobShowCommand(),_0x3c0518=program['opts'](),_0x52f607=await createTDXInstance(_0x3c0518),_0x5aeaf6=await _0x5986c4['run']({'options':{..._0x3c0518,..._0x56d090},'args':[_0x48f2f8],'tdx':_0x52f607});process[_0x147101(0x126)](_0x5aeaf6);}),jobCmd[a2_0x26ab3c(0xee)]('kill\x20<job-id>')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x14f))[a2_0x26ab3c(0x2f9)](async(_0x5e105c,_0xe6b497)=>{const _0x4d0557=a2_0x26ab3c,_0x1a65b6=new JobKillCommand(),_0x41bd0b=program[_0x4d0557(0x301)](),_0x533001=await createTDXInstance(_0x41bd0b),_0x271453=await _0x1a65b6[_0x4d0557(0x20e)]({'options':{..._0x41bd0b,..._0xe6b497},'args':[_0x5e105c],'tdx':_0x533001});process['exit'](_0x271453);}),jobCmd[a2_0x26ab3c(0xee)]('submit\x20[query]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x305))['option'](a2_0x26ab3c(0x150),a2_0x26ab3c(0x280),a2_0x26ab3c(0x26a))['option'](a2_0x26ab3c(0xf8),a2_0x26ab3c(0x2ff))[a2_0x26ab3c(0x246)]('--database\x20<name>',a2_0x26ab3c(0x255),a2_0x26ab3c(0x2fc))[a2_0x26ab3c(0x2f9)](async(_0x20cbb3,_0x5d57a9)=>{const _0x3811b7=a2_0x26ab3c,_0x193bce=new JobSubmitCommand(),_0x428388=program[_0x3811b7(0x301)](),_0x281524=await createTDXInstance(_0x428388),_0x5a6492=await _0x193bce[_0x3811b7(0x20e)]({'options':{..._0x428388,..._0x5d57a9},'args':_0x20cbb3?[_0x20cbb3]:[],'tdx':_0x281524});process[_0x3811b7(0x126)](_0x5a6492);}),jobCmd['command'](a2_0x26ab3c(0x267))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x13a))[a2_0x26ab3c(0x2f9)](async(_0xfba700,_0x22ac65)=>{const _0x688bb4=a2_0x26ab3c,_0x3dced4=new JobResultCommand(),_0x171bcd=program[_0x688bb4(0x301)](),_0x1c629c=await createTDXInstance(_0x171bcd),_0x2e9d09=await _0x3dced4[_0x688bb4(0x20e)]({'options':{..._0x171bcd,..._0x22ac65},'args':[_0xfba700],'tdx':_0x1c629c});process[_0x688bb4(0x126)](_0x2e9d09);});const llmCmd=program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x271))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x248));llmCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x171))[a2_0x26ab3c(0x27b)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')['action'](async(_0x403c94,_0x4ef854)=>{const _0x51a1f7=a2_0x26ab3c,_0x25f10f=new LLMUseCommand(),_0x178c65=program[_0x51a1f7(0x301)](),_0xf90716=await createTDXInstance(_0x178c65),_0x1e8453=await _0x25f10f[_0x51a1f7(0x20e)]({'options':{..._0x178c65,..._0x4ef854},'args':[_0x403c94],'tdx':_0xf90716});process['exit'](_0x1e8453);}),llmCmd[a2_0x26ab3c(0xee)]('models')['description']('List\x20available\x20LLM\x20models')[a2_0x26ab3c(0x2f9)](async _0x36b725=>{const _0x48103c=a2_0x26ab3c,_0x56e2e0=new LLMModelsCommand(),_0x422dfb=program[_0x48103c(0x301)](),_0x19ad25=await createTDXInstance(_0x422dfb),_0x4ba07b=await _0x56e2e0[_0x48103c(0x20e)]({'options':{..._0x422dfb,..._0x36b725},'args':[],'tdx':_0x19ad25});process[_0x48103c(0x126)](_0x4ba07b);});const projectCmd=llmCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x261))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0xfc)),llmProjectListAction=async(_0x6e4b95,_0x1ae11a)=>{const _0x37ce5e=new LLMProjectsCommand(),_0x3c6696=program['opts'](),_0xfd5546=await createTDXInstance(_0x3c6696),_0x288ba3=await _0x37ce5e['run']({'options':{..._0x3c6696,..._0x1ae11a},'args':_0x6e4b95?[_0x6e4b95]:[],'tdx':_0xfd5546});process['exit'](_0x288ba3);};projectCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x123))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x10a))[a2_0x26ab3c(0x246)]('-w,\x20--web',a2_0x26ab3c(0x160))[a2_0x26ab3c(0x2f9)](llmProjectListAction),llmCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x304))[a2_0x26ab3c(0x27b)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x26ab3c(0x246)]('-w,\x20--web','Show\x20console\x20URLs')[a2_0x26ab3c(0x2f9)](llmProjectListAction),projectCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x23e))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x165))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x163),'Project\x20description')[a2_0x26ab3c(0x2f9)](async(_0x1334e3,_0x46ee76)=>{const _0x175255=a2_0x26ab3c,_0xbbf15d=new LLMProjectCreateCommand(),_0x50c49c=program[_0x175255(0x301)](),_0xe678c6=await createTDXInstance(_0x50c49c),_0x4306cc=await _0xbbf15d[_0x175255(0x20e)]({'options':{..._0x50c49c,..._0x46ee76},'args':[_0x1334e3],'tdx':_0xe678c6});process['exit'](_0x4306cc);}),projectCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xf5))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1ff))['action'](async(_0x33f491,_0xe41df8)=>{const _0x429292=a2_0x26ab3c,_0xfcbdca=new LLMProjectDeleteCommand(),_0x49994e=program[_0x429292(0x301)](),_0x244253=await createTDXInstance(_0x49994e),_0x332f5b=await _0xfcbdca['run']({'options':{..._0x49994e,..._0xe41df8},'args':[_0x33f491],'tdx':_0x244253});process[_0x429292(0x126)](_0x332f5b);}),projectCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xd0))['description'](a2_0x26ab3c(0x290))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x219),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2e1),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x26ab3c(0x2f9)](async(_0x4c6b0f,_0x29b497)=>{const _0x9e6fbd=a2_0x26ab3c,_0x38a4b7=new LLMProjectBackupCommand(),_0x576540=program[_0x9e6fbd(0x301)](),_0x2a2776=await createTDXInstance(_0x576540),_0x4a15e4=await _0x38a4b7[_0x9e6fbd(0x20e)]({'options':{..._0x576540,..._0x29b497},'args':[_0x4c6b0f],'tdx':_0x2a2776});process[_0x9e6fbd(0x126)](_0x4a15e4);}),projectCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x216))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x25b))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1a2),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2e1),a2_0x26ab3c(0x11e))[a2_0x26ab3c(0x2f9)](async(_0x3e43c7,_0xc3dfd8)=>{const _0x33aba6=a2_0x26ab3c,_0x280cb3=new LLMProjectRestoreCommand(),_0x2f387e=program[_0x33aba6(0x301)](),_0xcf146a=await createTDXInstance(_0x2f387e),_0xefe197=await _0x280cb3[_0x33aba6(0x20e)]({'options':{..._0x2f387e,..._0xc3dfd8},'args':[_0x3e43c7],'tdx':_0xcf146a});process['exit'](_0xefe197);});const llmAgentListAction=async(_0x465504,_0x4305cc)=>{const _0x5ab8d8=a2_0x26ab3c,_0x2c0a1d=new LLMAgentsCommand(),_0x2bdb2c=program['opts'](),_0x2b4f6d=await createTDXInstance(_0x2bdb2c),_0x14d3f5=await _0x2c0a1d[_0x5ab8d8(0x20e)]({'options':{..._0x2bdb2c,..._0x4305cc},'args':_0x465504?[_0x465504]:[],'tdx':_0x2b4f6d});process[_0x5ab8d8(0x126)](_0x14d3f5);};llmCmd[a2_0x26ab3c(0xee)]('agents\x20[pattern]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x18c))['option'](a2_0x26ab3c(0x146),'Show\x20agent\x20chat\x20URLs')['action'](llmAgentListAction),program[a2_0x26ab3c(0xee)]('agents\x20[pattern]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x18c))[a2_0x26ab3c(0x246)]('-w,\x20--web',a2_0x26ab3c(0x2f0))['action'](llmAgentListAction),llmCmd['command'](a2_0x26ab3c(0x1bd))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x288))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1fe),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x26ab3c(0x2f9)](async(_0x2e03e1,_0x4b7517)=>{const _0x53f094=a2_0x26ab3c,_0x3eed48=new LLMHistoryCommand(),_0xa21591=program[_0x53f094(0x301)](),_0xeaf398=await createTDXInstance(_0xa21591),_0x5cc819=await _0x3eed48['run']({'options':{..._0xa21591,..._0x4b7517},'args':_0x2e03e1?[_0x2e03e1]:[],'tdx':_0xeaf398});process[_0x53f094(0x126)](_0x5cc819);}),llmCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x124))[a2_0x26ab3c(0x27b)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x26ab3c(0x246)]('--port\x20<number>',a2_0x26ab3c(0x199),a2_0x26ab3c(0x14b))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2e5),a2_0x26ab3c(0x2a3))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x184),a2_0x26ab3c(0x1dd))['action'](async _0x5e1a71=>{const _0x5056e5=a2_0x26ab3c,_0x51666d=new LLMProxyCommand(),_0x29e869=program[_0x5056e5(0x301)](),_0x179492=await createTDXInstance(_0x29e869),_0x446525={..._0x5e1a71,'port':_0x5e1a71[_0x5056e5(0x225)]?parseInt(_0x5e1a71['port'],0xa):undefined},_0xde7b46=await _0x51666d[_0x5056e5(0x20e)]({'options':{..._0x29e869,..._0x446525},'args':[],'tdx':_0x179492});process['exit'](_0xde7b46);}),program['command'](a2_0x26ab3c(0x2b0))['usage'](a2_0x26ab3c(0x2ca))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x155))['option'](a2_0x26ab3c(0x180),a2_0x26ab3c(0x263),a2_0x26ab3c(0x1af))[a2_0x26ab3c(0x246)]('-c,\x20--continue',a2_0x26ab3c(0x2ac))[a2_0x26ab3c(0x246)]('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')['option'](a2_0x26ab3c(0x239),a2_0x26ab3c(0x118))[a2_0x26ab3c(0x12e)]()[a2_0x26ab3c(0x28a)](!![])['addHelpText'](a2_0x26ab3c(0xda),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')['action'](async(_0x187afe,_0x32fbb4)=>{const _0xfdee80=a2_0x26ab3c,_0x274d5d=program['opts'](),_0x17f691=Array['isArray'](_0x187afe)?_0x187afe:[];if(_0x17f691[0x0]===_0xfdee80(0x1c4)){const _0x23e145=new ClaudeStatuslineCommand(),_0x264761=await _0x23e145[_0xfdee80(0x20e)]({'options':{..._0x274d5d,..._0x32fbb4},'args':_0x17f691[_0xfdee80(0x13b)](0x1),'tdx':null});process[_0xfdee80(0x126)](_0x264761);}if(_0x17f691[0x0]==='usage'){const _0x2e98aa=new ClaudeUsageCommand(),_0x5a561e=await _0x2e98aa[_0xfdee80(0x20e)]({'options':{..._0x274d5d,..._0x32fbb4},'args':_0x17f691[_0xfdee80(0x13b)](0x1),'tdx':null});process['exit'](_0x5a561e);}const _0x1de84a=new ClaudeCommand(),_0x5b3821=await createTDXInstance(_0x274d5d),_0x3bf0bd=await _0x1de84a[_0xfdee80(0x20e)]({'options':{..._0x274d5d,..._0x32fbb4},'args':_0x17f691,'tdx':_0x5b3821});process[_0xfdee80(0x126)](_0x3bf0bd);}),program[a2_0x26ab3c(0xee)]('context')['description']('Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1c8),a2_0x26ab3c(0x1e5))[a2_0x26ab3c(0x2f9)](async _0x1ab829=>{const _0x47c731=a2_0x26ab3c,_0x3ada60=new ContextCommand(),_0x5d15b7=program[_0x47c731(0x301)](),_0xbc512c=await _0x3ada60[_0x47c731(0x20e)]({'options':{..._0x5d15b7,..._0x1ab829},'args':[],'tdx':null});process[_0x47c731(0x126)](_0xbc512c);}),program['command']('use\x20[resource]\x20[value]')['description'](a2_0x26ab3c(0x12b))['option'](a2_0x26ab3c(0x1c8),a2_0x26ab3c(0x1e5))[a2_0x26ab3c(0x2f9)](async(_0x1c3d49,_0x227e78,_0x381eb8)=>{const _0x550cbb=a2_0x26ab3c,_0x347f7a=new UseCommand(),_0x26dd91=program[_0x550cbb(0x301)](),_0x4ee284=[];if(_0x1c3d49)_0x4ee284[_0x550cbb(0x2ba)](_0x1c3d49);if(_0x227e78)_0x4ee284[_0x550cbb(0x2ba)](_0x227e78);const _0x3d6baf=await _0x347f7a[_0x550cbb(0x20e)]({'options':{..._0x26dd91,..._0x381eb8},'args':_0x4ee284,'tdx':null});process['exit'](_0x3d6baf);}),program[a2_0x26ab3c(0xee)]('chats')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x2d9))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1fe),a2_0x26ab3c(0x2c0))[a2_0x26ab3c(0x2f9)](async _0x1aa277=>{const _0xf70e50=a2_0x26ab3c,_0x1697d0=new ChatsCommand(),_0x40b397=program[_0xf70e50(0x301)](),_0x171cbf=await createTDXInstance(_0x40b397),_0x4a4b28=await _0x1697d0[_0xf70e50(0x20e)]({'options':{..._0x40b397,..._0x1aa277},'args':[],'tdx':_0x171cbf});process[_0xf70e50(0x126)](_0x4a4b28);});const authCmd=program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x174))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x18e));async function runAuthStatusCommand(_0x537bc8){const _0x1b7c24=a2_0x26ab3c,_0x260543=new AuthStatusCommand(),_0x539c5a=program[_0x1b7c24(0x301)](),_0x1c2aa8=await createTDXInstance(_0x539c5a),_0x5b047a=await _0x260543[_0x1b7c24(0x20e)]({'options':{..._0x539c5a,..._0x537bc8},'args':[],'tdx':_0x1c2aa8});process['exit'](_0x5b047a);}authCmd[a2_0x26ab3c(0x2f9)](runAuthStatusCommand),authCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1d6))[a2_0x26ab3c(0x27b)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')['action'](runAuthStatusCommand),authCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xe7))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0xf0))[a2_0x26ab3c(0x183)](a2_0x26ab3c(0xda),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')[a2_0x26ab3c(0x2f9)](async _0x497695=>{const _0x458995=a2_0x26ab3c,_0x49ad9b=new AuthSetupCommand(),_0x55c6f9=program[_0x458995(0x301)](),_0x439529=await createTDXInstance(_0x55c6f9),_0x4a82b0=await _0x49ad9b[_0x458995(0x20e)]({'options':{..._0x55c6f9,..._0x497695},'args':[],'tdx':_0x439529});process[_0x458995(0x126)](_0x4a82b0);}),authCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x14c))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x2da))[a2_0x26ab3c(0x183)]('after',a2_0x26ab3c(0xdc))[a2_0x26ab3c(0x2f9)](async _0x37397f=>{const _0x1504c5=a2_0x26ab3c,_0x540d50=new AuthClearCommand(),_0x2323f=program[_0x1504c5(0x301)](),_0x139918=await _0x540d50[_0x1504c5(0x20e)]({'options':{..._0x2323f,..._0x37397f},'args':[],'tdx':null});process[_0x1504c5(0x126)](_0x139918);});const userCmd=program['command'](a2_0x26ab3c(0x1b8))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0xe8)),userListAction=async _0x440253=>{const _0x4aece4=a2_0x26ab3c,_0x409281=new UserListCommand(),_0x3ddfc3=program['opts'](),_0xf3e7c9=await createTDXInstance(_0x3ddfc3),_0x3e2fa5=await _0x409281[_0x4aece4(0x20e)]({'options':{..._0x3ddfc3,..._0x440253},'args':[],'tdx':_0xf3e7c9});process['exit'](_0x3e2fa5);};userCmd[a2_0x26ab3c(0x2f9)](async _0x5187bb=>{const _0x1eaf36=a2_0x26ab3c,_0x22049b=new UserCommand(),_0x3c108d=program[_0x1eaf36(0x301)](),_0x393008=await createTDXInstance(_0x3c108d),_0x283ac1=await _0x22049b[_0x1eaf36(0x20e)]({'options':{..._0x3c108d,..._0x5187bb},'args':[],'tdx':_0x393008});process[_0x1eaf36(0x126)](_0x283ac1);}),userCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1bb))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x19b))['action'](userListAction),program[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x27e))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x2f2))['action'](userListAction),program[a2_0x26ab3c(0xee)]('profiles')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1b0))[a2_0x26ab3c(0x2f9)](async _0x2deb8f=>{const _0x6234c1=a2_0x26ab3c,_0x46f8db=new ProfilesCommand(),_0x513f73=program[_0x6234c1(0x301)](),_0x465914=await _0x46f8db[_0x6234c1(0x20e)]({'options':{..._0x513f73,..._0x2deb8f},'args':[],'tdx':null});process[_0x6234c1(0x126)](_0x465914);});const engageCmd=program['command'](a2_0x26ab3c(0x293))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1c2)),createEngageAction=_0x32e32c=>{return async(_0x45f260,_0x1ded11)=>{const _0x22e5d3=a2_0x4809,_0x4c37a0=new _0x32e32c(),_0x35ab80=program[_0x22e5d3(0x301)](),_0x56d8bb=await createTDXInstance(_0x35ab80),_0x24220d=await _0x4c37a0[_0x22e5d3(0x20e)]({'options':{..._0x35ab80,..._0x1ded11},'args':[_0x45f260],'tdx':_0x56d8bb});process[_0x22e5d3(0x126)](_0x24220d);};},createEngageNoArgAction=_0x475a1a=>{return async _0x2aea72=>{const _0x3ba677=a2_0x4809,_0x463d48=new _0x475a1a(),_0x3720d4=program[_0x3ba677(0x301)](),_0x38e3a4=await createTDXInstance(_0x3720d4),_0x5343a9=await _0x463d48[_0x3ba677(0x20e)]({'options':{..._0x3720d4,..._0x2aea72},'args':[],'tdx':_0x38e3a4});process[_0x3ba677(0x126)](_0x5343a9);};},campaignCmd=engageCmd['command'](a2_0x26ab3c(0x232))['description'](a2_0x26ab3c(0x20a)),campaignListAction=async(_0x2c2700,_0x44da2f)=>{const _0xbe6470=a2_0x26ab3c,_0x120854=new EngageCampaignsCommand(),_0xe2d578=program[_0xbe6470(0x301)](),_0x11bf9e=await createTDXInstance(_0xe2d578),_0x418439=await _0x120854['run']({'options':{..._0xe2d578,..._0x44da2f},'args':_0x2c2700?[_0x2c2700]:[],'tdx':_0x11bf9e});process['exit'](_0x418439);};campaignCmd['command']('list\x20[pattern]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x101))[a2_0x26ab3c(0x246)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x26ab3c(0x23a),a2_0x26ab3c(0x26b))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))['action'](campaignListAction),engageCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x17e))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x270))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x242),a2_0x26ab3c(0x12a))['option'](a2_0x26ab3c(0x23a),a2_0x26ab3c(0x26b))['option'](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))[a2_0x26ab3c(0x2f9)](campaignListAction),campaignCmd[a2_0x26ab3c(0xee)]('show\x20<name-or-id>')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x20b))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x167),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x26ab3c(0x2f9)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1a9))[a2_0x26ab3c(0x1d1)](a2_0x26ab3c(0x109),a2_0x26ab3c(0x221))[a2_0x26ab3c(0x1d1)](a2_0x26ab3c(0x242),a2_0x26ab3c(0x1a5))[a2_0x26ab3c(0x246)]('--workspace\x20<name>',a2_0x26ab3c(0x259))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2fb),'Campaign\x20description')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x15e),a2_0x26ab3c(0x2db))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2d4),a2_0x26ab3c(0x16c))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x141),a2_0x26ab3c(0x285))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x144),a2_0x26ab3c(0x134))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x11d),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xff))['description']('Update\x20a\x20campaign')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x109),a2_0x26ab3c(0x282))[a2_0x26ab3c(0x246)]('--description\x20<desc>','Campaign\x20description')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x15e),a2_0x26ab3c(0x2db))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2d4),a2_0x26ab3c(0x16c))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x141),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x144),a2_0x26ab3c(0x134))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x11d),a2_0x26ab3c(0x12c))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x20d))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1eb))['option'](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x138),'Skip\x20confirmation\x20prompt')[a2_0x26ab3c(0x2f9)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x258))[a2_0x26ab3c(0x27b)]('Launch\x20a\x20campaign')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x210),'Workspace\x20name')[a2_0x26ab3c(0x2f9)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x26ab3c(0x2f5))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x200))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))[a2_0x26ab3c(0x2f9)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x26ab3c(0xee)]('resume\x20<name-or-id>')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x16d))['option'](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))[a2_0x26ab3c(0x2f9)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x186))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0xd8))[a2_0x26ab3c(0x246)]('--workspace\x20<name>',a2_0x26ab3c(0x198))[a2_0x26ab3c(0x2f9)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x208))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x145)),templateListAction=async(_0x241318,_0x1bf876)=>{const _0x2f50e1=a2_0x26ab3c,_0x1c4631=new EngageTemplatesCommand(),_0x4fdd21=program[_0x2f50e1(0x301)](),_0x406965=await createTDXInstance(_0x4fdd21),_0x145e00=await _0x1c4631[_0x2f50e1(0x20e)]({'options':{..._0x4fdd21,..._0x1bf876},'args':_0x241318?[_0x241318]:[],'tdx':_0x406965});process[_0x2f50e1(0x126)](_0x145e00);};templateCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x123))['description'](a2_0x26ab3c(0x117))['option'](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))[a2_0x26ab3c(0x2f9)](templateListAction),engageCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1be))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x122))['option'](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))[a2_0x26ab3c(0x2f9)](templateListAction),templateCmd['command'](a2_0x26ab3c(0x1b6))['description'](a2_0x26ab3c(0x22d))[a2_0x26ab3c(0x246)]('--workspace\x20<name>',a2_0x26ab3c(0x198))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x167),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x26ab3c(0x2f9)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x308))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x283))['requiredOption']('--name\x20<name>','Template\x20name')[a2_0x26ab3c(0x1d1)](a2_0x26ab3c(0x178),a2_0x26ab3c(0x17f))[a2_0x26ab3c(0x1d1)](a2_0x26ab3c(0x203),a2_0x26ab3c(0x18d))['option'](a2_0x26ab3c(0x210),a2_0x26ab3c(0x259))[a2_0x26ab3c(0x246)]('--plaintext\x20<text>',a2_0x26ab3c(0x30b))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1f4),a2_0x26ab3c(0x2e2))[a2_0x26ab3c(0x2f9)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x26ab3c(0xee)]('update\x20<name-or-id>')['description'](a2_0x26ab3c(0x26d))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x210),a2_0x26ab3c(0x198))[a2_0x26ab3c(0x246)]('--name\x20<name>',a2_0x26ab3c(0x151))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x178),a2_0x26ab3c(0x17f))['option'](a2_0x26ab3c(0x203),a2_0x26ab3c(0x18d))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x291),a2_0x26ab3c(0x30b))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x26ab3c(0x20d))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x108))[a2_0x26ab3c(0x246)]('--workspace\x20<name>','Workspace\x20name')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x138),a2_0x26ab3c(0x1cf))[a2_0x26ab3c(0x2f9)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x26ab3c(0xee)]('workspace')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1d9)),workspaceListAction=async(_0x5a7f4b,_0x223782)=>{const _0x45625d=a2_0x26ab3c,_0x398bb7=new EngageWorkspacesCommand(),_0x554a6f=program[_0x45625d(0x301)](),_0x42c0a7=await createTDXInstance(_0x554a6f),_0x5bb60b=await _0x398bb7[_0x45625d(0x20e)]({'options':{..._0x554a6f,..._0x223782},'args':_0x5a7f4b?[_0x5a7f4b]:[],'tdx':_0x42c0a7});process[_0x45625d(0x126)](_0x5bb60b);};workspaceCmd['command'](a2_0x26ab3c(0x123))['description'](a2_0x26ab3c(0x162))['action'](workspaceListAction),engageCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x295))['description'](a2_0x26ab3c(0x2c3))[a2_0x26ab3c(0x2f9)](workspaceListAction),workspaceCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1b6))['description']('Show\x20workspace\x20details')[a2_0x26ab3c(0x246)]('--full',a2_0x26ab3c(0x2c1))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x26ab3c(0x308))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x257))['requiredOption']('--name\x20<name>','Workspace\x20name')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x2fb),a2_0x26ab3c(0x2a7))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xff))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1cb))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x109),a2_0x26ab3c(0x2a1))['option'](a2_0x26ab3c(0x2fb),a2_0x26ab3c(0x2a7))[a2_0x26ab3c(0x2f9)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x20d))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1f0))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x138),a2_0x26ab3c(0x1cf))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x26ab3c(0xee)]('use\x20<name>')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x279))[a2_0x26ab3c(0x2f9)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x26ab3c(0xd2))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x116)),connectionListAction=async _0x12597e=>{const _0x45e4ce=a2_0x26ab3c,_0x5e80ba=new ConnectionListCommand(),_0x3103d4=program[_0x45e4ce(0x301)](),_0x8492d8=await createTDXInstance(_0x3103d4),_0x1f53df=await _0x5e80ba[_0x45e4ce(0x20e)]({'options':{..._0x3103d4,..._0x12597e},'args':[],'tdx':_0x8492d8});process['exit'](_0x1f53df);};connectionCmd[a2_0x26ab3c(0xee)]('list')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x16f))[a2_0x26ab3c(0x2f9)](connectionListAction),program['command'](a2_0x26ab3c(0x306),{'hidden':!![]})[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x175))[a2_0x26ab3c(0x2f9)](connectionListAction),connectionCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1f2))[a2_0x26ab3c(0x27b)]('Show\x20connection\x20details\x20by\x20name')['action'](async(_0x1ae4bf,_0xc1bda7)=>{const _0x563643=a2_0x26ab3c,_0x2451b7=new ConnectionShowCommand(),_0x3e4eba=program[_0x563643(0x301)](),_0xddb60d=await createTDXInstance(_0x3e4eba),_0x4c25b7=await _0x2451b7[_0x563643(0x20e)]({'options':{..._0x3e4eba,..._0xc1bda7},'args':[_0x1ae4bf],'tdx':_0xddb60d});process[_0x563643(0x126)](_0x4c25b7);}),connectionCmd[a2_0x26ab3c(0xee)]('schema\x20<type>')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x244))[a2_0x26ab3c(0x2f9)](async(_0x1c4187,_0x5598ed)=>{const _0x1f4fad=a2_0x26ab3c,_0x2c2052=new ConnectionSchemaCommand(),_0x1483c1=program[_0x1f4fad(0x301)](),_0x16b609=await createTDXInstance(_0x1483c1),_0x201b70=await _0x2c2052[_0x1f4fad(0x20e)]({'options':{..._0x1483c1,..._0x5598ed},'args':[_0x1c4187],'tdx':_0x16b609});process[_0x1f4fad(0x126)](_0x201b70);}),connectionCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x2cd))[a2_0x26ab3c(0x27b)]('List\x20available\x20connector\x20types')[a2_0x26ab3c(0x2f9)](async _0x1932ce=>{const _0x5399e4=a2_0x26ab3c,_0x1adfa4=new ConnectionTypesCommand(),_0x1fef87=program[_0x5399e4(0x301)](),_0x115410=await createTDXInstance(_0x1fef87),_0x5cf301=await _0x1adfa4['run']({'options':{..._0x1fef87,..._0x1932ce},'args':[],'tdx':_0x115410});process[_0x5399e4(0x126)](_0x5cf301);}),connectionCmd['command'](a2_0x26ab3c(0x214))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x2c9))[a2_0x26ab3c(0x2f9)](async(_0x3354d5,_0x1af958)=>{const _0x2f9d15=a2_0x26ab3c,_0x1561a3=new ConnectionSettingsCommand(),_0x855456=program[_0x2f9d15(0x301)](),_0x5299c2=await createTDXInstance(_0x855456),_0x59efd1=await _0x1561a3['run']({'options':{..._0x855456,..._0x1af958},'args':[_0x3354d5],'tdx':_0x5299c2});process[_0x2f9d15(0x126)](_0x59efd1);});const journeyCmd=program[a2_0x26ab3c(0xee)]('journey')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1ea));journeyCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x123))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1e3))['option']('-w,\x20--web',a2_0x26ab3c(0x262))['action'](async(_0x51284c,_0x1a923d)=>{const _0x2ff7ee=a2_0x26ab3c,_0x1d3acc=new JourneyListCommand(),_0x53bea7=program['opts'](),_0x1e4b69=await createTDXInstance(_0x53bea7),_0x2089b9=await _0x1d3acc[_0x2ff7ee(0x20e)]({'options':{..._0x53bea7,..._0x1a923d},'args':_0x51284c?[_0x51284c]:[],'tdx':_0x1e4b69});process[_0x2ff7ee(0x126)](_0x2089b9);}),journeyCmd['command'](a2_0x26ab3c(0x24b))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1cd))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x146),a2_0x26ab3c(0x234))['option'](a2_0x26ab3c(0x13d),a2_0x26ab3c(0x2a4))[a2_0x26ab3c(0x2f9)](async(_0x162936,_0x1419c0)=>{const _0xe20ed0=a2_0x26ab3c,_0x1c54d0=new JourneyViewCommand(),_0x801b6e=program[_0xe20ed0(0x301)](),_0x912511=await createTDXInstance(_0x801b6e),_0x3094fd=await _0x1c54d0['run']({'options':{..._0x801b6e,..._0x1419c0},'args':[_0x162936],'tdx':_0x912511});process[_0xe20ed0(0x126)](_0x3094fd);}),journeyCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x29a))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x106))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0xef),a2_0x26ab3c(0x1ee))[a2_0x26ab3c(0x2f9)](async(_0x57967c,_0x5213e3)=>{const _0x3d2540=a2_0x26ab3c,_0x2728a0=new JourneyStatsCommand(),_0x452129=program[_0x3d2540(0x301)](),_0x1866b8=await createTDXInstance(_0x452129),_0x48d377=await _0x2728a0[_0x3d2540(0x20e)]({'options':{..._0x452129,..._0x5213e3},'args':[_0x57967c],'tdx':_0x1866b8});process[_0x3d2540(0x126)](_0x48d377);}),journeyCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x2ee))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1e4))[a2_0x26ab3c(0x2f9)](async(_0x4feff5,_0x3bbe2b)=>{const _0x2d3f39=a2_0x26ab3c,_0x2f5f39=new JourneyPauseCommand(),_0x11e708=program[_0x2d3f39(0x301)](),_0x577057=await createTDXInstance(_0x11e708),_0x393994=await _0x2f5f39[_0x2d3f39(0x20e)]({'options':{..._0x11e708,..._0x3bbe2b},'args':[_0x4feff5],'tdx':_0x577057});process['exit'](_0x393994);}),journeyCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x1db))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x13e))[a2_0x26ab3c(0x2f9)](async(_0x119286,_0x4c4dc2)=>{const _0x9c24c1=a2_0x26ab3c,_0x38ed43=new JourneyResumeCommand(),_0x15f94d=program[_0x9c24c1(0x301)](),_0x5dad69=await createTDXInstance(_0x15f94d),_0x31a182=await _0x38ed43[_0x9c24c1(0x20e)]({'options':{..._0x15f94d,..._0x4c4dc2},'args':[_0x119286],'tdx':_0x5dad69});process['exit'](_0x31a182);}),journeyCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xd7))['description'](a2_0x26ab3c(0xcf))[a2_0x26ab3c(0x246)]('-y,\x20--yes',a2_0x26ab3c(0x1cf))[a2_0x26ab3c(0x246)]('--dry-run',a2_0x26ab3c(0x2f1))[a2_0x26ab3c(0x2f9)](async(_0x1a14c2,_0x24e26a)=>{const _0x3ebd44=a2_0x26ab3c,_0x5049bb=new JourneyPullCommand(),_0x1491cb=program[_0x3ebd44(0x301)](),_0x82455=await createTDXInstance(_0x1491cb),_0x2518af=await _0x5049bb[_0x3ebd44(0x20e)]({'options':{..._0x1491cb,..._0x24e26a},'args':_0x1a14c2?[_0x1a14c2]:[],'tdx':_0x82455});process[_0x3ebd44(0x126)](_0x2518af);}),journeyCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x127))[a2_0x26ab3c(0x27b)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x26ab3c(0x2f9)](async(_0x3158d0,_0x3b5a95)=>{const _0x103bc5=a2_0x26ab3c,_0xa60195=new JourneyPushCommand(),_0x22f695=program[_0x103bc5(0x301)](),_0x14f6c4=await createTDXInstance(_0x22f695),_0x10cd64=await _0xa60195[_0x103bc5(0x20e)]({'options':{..._0x22f695,..._0x3b5a95},'args':_0x3158d0?[_0x3158d0]:[],'tdx':_0x14f6c4});process[_0x103bc5(0x126)](_0x10cd64);}),journeyCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x143))['description'](a2_0x26ab3c(0x1d4))['action'](async(_0x1d50ac,_0x4a08d9)=>{const _0x419389=a2_0x26ab3c,_0x758fb5=new JourneyValidateCommand(),_0x18372e=program['opts'](),_0x25b5e3=await createTDXInstance(_0x18372e),_0x4b776a=await _0x758fb5[_0x419389(0x20e)]({'options':{..._0x18372e,..._0x4a08d9},'args':_0x1d50ac?[_0x1d50ac]:[],'tdx':_0x25b5e3});process[_0x419389(0x126)](_0x4b776a);});const agentSyncCmd=program[a2_0x26ab3c(0xee)]('agent')['description'](a2_0x26ab3c(0x196));agentSyncCmd['command']('pull\x20[project]\x20[agent-name]')[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x297))['option'](a2_0x26ab3c(0x224),a2_0x26ab3c(0x14d))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x24e),a2_0x26ab3c(0x2e4))['action'](async(_0x1dd59e,_0x54a6b6,_0x51e9e8)=>{const _0x3b8898=a2_0x26ab3c,_0x101ea4=new AgentPullCommand(),_0x51469e=program[_0x3b8898(0x301)](),_0x2a956a=await createTDXInstance(_0x51469e),_0x1c8425=[];if(_0x1dd59e)_0x1c8425['push'](_0x1dd59e);if(_0x54a6b6)_0x1c8425['push'](_0x54a6b6);const _0x3b2e0e=await _0x101ea4['run']({'options':{..._0x51469e,..._0x51e9e8},'args':_0x1c8425,'tdx':_0x2a956a});process[_0x3b8898(0x126)](_0x3b2e0e);}),agentSyncCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x17a))['description'](a2_0x26ab3c(0x140))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x24e),a2_0x26ab3c(0x1b7))[a2_0x26ab3c(0x2f9)](async(_0x5d111a,_0x3f1952)=>{const _0x3aec28=a2_0x26ab3c,_0x1abee3=new AgentPushCommand(),_0x50f570=program[_0x3aec28(0x301)](),_0x2b6ded=await createTDXInstance(_0x50f570),_0xfb4cbd=await _0x1abee3[_0x3aec28(0x20e)]({'options':{..._0x50f570,..._0x3f1952},'args':_0x5d111a?[_0x5d111a]:[],'tdx':_0x2b6ded});process[_0x3aec28(0x126)](_0xfb4cbd);}),agentSyncCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0xe6))[a2_0x26ab3c(0x27b)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')['option'](a2_0x26ab3c(0xe2),a2_0x26ab3c(0x1e2))[a2_0x26ab3c(0x2f9)](async(_0x318c35,_0x3c9c20)=>{const _0x5bc2e7=a2_0x26ab3c,_0x1032b3=new AgentCloneCommand(),_0x1bd47f=program[_0x5bc2e7(0x301)](),_0x80e39=await createTDXInstance(_0x1bd47f),_0xac6835=await _0x1032b3['run']({'options':{..._0x1bd47f,..._0x3c9c20},'args':_0x318c35?[_0x318c35]:[],'tdx':_0x80e39});process[_0x5bc2e7(0x126)](_0xac6835);}),agentSyncCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x123))['description'](a2_0x26ab3c(0x2c7))['option']('-w,\x20--web',a2_0x26ab3c(0x2f0))[a2_0x26ab3c(0x2f9)](llmAgentListAction),agentSyncCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x284))[a2_0x26ab3c(0x27b)](a2_0x26ab3c(0x1e7))['action'](async(_0x5d30c4,_0x41505b)=>{const _0x555a89=a2_0x26ab3c,_0x334304=new LLMAgentShowCommand(),_0x3b0971=program[_0x555a89(0x301)](),_0x136e96=await createTDXInstance(_0x3b0971),_0x1d279b=await _0x334304[_0x555a89(0x20e)]({'options':{..._0x3b0971,..._0x41505b},'args':[_0x5d30c4],'tdx':_0x136e96});process[_0x555a89(0x126)](_0x1d279b);}),agentSyncCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x23e))[a2_0x26ab3c(0x27b)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')['option']('--system-prompt\x20<text>',a2_0x26ab3c(0x212))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x180),a2_0x26ab3c(0x2eb),a2_0x26ab3c(0x222))['option'](a2_0x26ab3c(0x168),a2_0x26ab3c(0xde))[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x1ce),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x277),a2_0x26ab3c(0x2be),a2_0x26ab3c(0x2e9))[a2_0x26ab3c(0x2f9)](async(_0x532734,_0x51fc57)=>{const _0x51eafa=a2_0x26ab3c,_0x4615e3=new LLMAgentCreateCommand(),_0x118207=program[_0x51eafa(0x301)](),_0x4b61ad=await createTDXInstance(_0x118207),_0x177641=await _0x4615e3[_0x51eafa(0x20e)]({'options':{..._0x118207,..._0x51fc57},'args':[_0x532734],'tdx':_0x4b61ad});process[_0x51eafa(0x126)](_0x177641);}),agentSyncCmd[a2_0x26ab3c(0xee)](a2_0x26ab3c(0x172))[a2_0x26ab3c(0x27b)]('Update\x20an\x20existing\x20agent')['option'](a2_0x26ab3c(0x1f3),'Agent\x20name')[a2_0x26ab3c(0x246)]('--prompt\x20<text>',a2_0x26ab3c(0x21a))[a2_0x26ab3c(0x246)]('--description\x20<text>','Agent\x20description')[a2_0x26ab3c(0x246)](a2_0x26ab3c(0x168),a2_0x26ab3c(0xde))[a2_0x26ab3c(0x2f9)](async(_0x514991,_0x1be698)=>{const _0xd9c24f=a2_0x26ab3c,_0x588a85=new LLMAgentUpdateCommand(),_0x3890c0=program[_0xd9c24f(0x301)](),_0x36c32a=await createTDXInstance(_0x3890c0),_0x30fd4c=await _0x588a85[_0xd9c24f(0x20e)]({'options':{..._0x3890c0,..._0x1be698},'args':[_0x514991],'tdx':_0x36c32a});process[_0xd9c24f(0x126)](_0x30fd4c);}),agentSyncCmd[a2_0x26ab3c(0xee)]('delete\x20<agent-name>')['description'](a2_0x26ab3c(0x238))['action'](async(_0x1c5a7c,_0x3e518a)=>{const _0x15cf4f=a2_0x26ab3c,_0x36766f=new LLMAgentDeleteCommand(),_0x19088e=program[_0x15cf4f(0x301)](),_0x31768c=await createTDXInstance(_0x19088e),_0x113112=await _0x36766f['run']({'options':{..._0x19088e,..._0x3e518a},'args':[_0x1c5a7c],'tdx':_0x31768c});process[_0x15cf4f(0x126)](_0x113112);});export{program};export function runCLI(){const _0x298919=a2_0x26ab3c;program[_0x298919(0x25e)](process['argv']);!process[_0x298919(0x205)][_0x298919(0x13b)](0x2)[_0x298919(0x213)]&&program['outputHelp']();const _0x2612e9=packageJson[_0x298919(0x21d)];process[_0x298919(0x2a6)][_0x298919(0x2b6)]&&process[_0x298919(0x205)][_0x298919(0x213)]>0x2&&!_0x2612e9['includes'](_0x298919(0xf9))&&checkForUpdate(_0x2612e9)[_0x298919(0x2b8)](_0x1faed0=>{_0x1faed0&&displayUpdateNotification(_0x1faed0);})['catch'](()=>{});}
|
|
1
|
+
const a2_0x25d654=a2_0x941b;(function(_0x478dd5,_0x3823a7){const _0x211f60=a2_0x941b,_0xa877d8=_0x478dd5();while(!![]){try{const _0x51c52d=-parseInt(_0x211f60(0x268))/0x1*(parseInt(_0x211f60(0x359))/0x2)+-parseInt(_0x211f60(0x1d0))/0x3*(-parseInt(_0x211f60(0x337))/0x4)+-parseInt(_0x211f60(0x27d))/0x5*(parseInt(_0x211f60(0x316))/0x6)+-parseInt(_0x211f60(0x2c3))/0x7*(parseInt(_0x211f60(0x3bb))/0x8)+-parseInt(_0x211f60(0x1cf))/0x9+parseInt(_0x211f60(0x202))/0xa+parseInt(_0x211f60(0x204))/0xb;if(_0x51c52d===_0x3823a7)break;else _0xa877d8['push'](_0xa877d8['shift']());}catch(_0x135fd5){_0xa877d8['push'](_0xa877d8['shift']());}}}(a2_0x22a5,0xa4e1c));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x25d654(0x20f)](readFileSync(join(__dirname,a2_0x25d654(0x279)),a2_0x25d654(0x20a)));let buildInfo={};try{buildInfo=JSON[a2_0x25d654(0x20f)](readFileSync(join(__dirname,a2_0x25d654(0x210)),a2_0x25d654(0x20a)));}catch{}if(process[a2_0x25d654(0x1b6)][a2_0x25d654(0x3cd)](a2_0x25d654(0x1bf))){let versionOutput=a2_0x25d654(0x1e6)+packageJson[a2_0x25d654(0x2b2)];buildInfo[a2_0x25d654(0x246)]&&(versionOutput+='\x20('+buildInfo[a2_0x25d654(0x246)]+')'),buildInfo[a2_0x25d654(0x21e)]&&(versionOutput+=a2_0x25d654(0x28d)+buildInfo[a2_0x25d654(0x21e)]),console[a2_0x25d654(0x274)](versionOutput),process[a2_0x25d654(0x36c)](0x0);}const program=new Command();let description=a2_0x25d654(0x3b7);buildInfo[a2_0x25d654(0x246)]?description+=a2_0x25d654(0x1fa)+packageJson[a2_0x25d654(0x2b2)]+'\x20('+buildInfo[a2_0x25d654(0x246)]+')':description+=a2_0x25d654(0x1fa)+packageJson[a2_0x25d654(0x2b2)];program[a2_0x25d654(0x1d1)]('tdx')[a2_0x25d654(0x258)](description),program[a2_0x25d654(0x1f3)](a2_0x25d654(0x224),a2_0x25d654(0x24a))[a2_0x25d654(0x1f3)]('-p,\x20--profile\x20<name>',a2_0x25d654(0x2e4))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2b6),a2_0x25d654(0x1aa),a2_0x25d654(0x292))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2f7),a2_0x25d654(0x22c))[a2_0x25d654(0x1f3)](a2_0x25d654(0x299),a2_0x25d654(0x1e7))[a2_0x25d654(0x1f3)]('--json',a2_0x25d654(0x1ee))[a2_0x25d654(0x1f3)](a2_0x25d654(0x396),a2_0x25d654(0x277))[a2_0x25d654(0x1f3)]('--tsv',a2_0x25d654(0x267))[a2_0x25d654(0x1f3)](a2_0x25d654(0x220),'Save\x20output\x20to\x20file')[a2_0x25d654(0x1f3)](a2_0x25d654(0x2fb),a2_0x25d654(0x226))[a2_0x25d654(0x1f3)](a2_0x25d654(0x24b),a2_0x25d654(0x313),![])[a2_0x25d654(0x1f3)](a2_0x25d654(0x2b5),a2_0x25d654(0x3b3),![])[a2_0x25d654(0x1f3)](a2_0x25d654(0x2e1),'Enable\x20verbose\x20logging',![])[a2_0x25d654(0x1f3)](a2_0x25d654(0x386),a2_0x25d654(0x28b))['option'](a2_0x25d654(0x3c0),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')['option'](a2_0x25d654(0x321),a2_0x25d654(0x391),'30')['option'](a2_0x25d654(0x39f),a2_0x25d654(0x251),![])['option'](a2_0x25d654(0x29d),a2_0x25d654(0x29a),![])[a2_0x25d654(0x1f3)](a2_0x25d654(0x1de),a2_0x25d654(0x223))[a2_0x25d654(0x1f3)](a2_0x25d654(0x234),a2_0x25d654(0x20e))['option']('--in\x20<name>',a2_0x25d654(0x301))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2cd),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x265),a2_0x25d654(0x383)),program[a2_0x25d654(0x29f)]({'formatHelp':(_0x31047c,_0xab3904)=>{const _0x4ac322=a2_0x25d654,_0x37bce6=_0xab3904[_0x4ac322(0x387)](_0x31047c,_0xab3904),_0x3fb0bc=0x2,_0x6de448=0x2;function _0x37a31e(_0xa3b546){const _0x355c65=_0x4ac322,_0x6b59bd=_0xa3b546;return!!(_0x6b59bd['_hidden']||_0x6b59bd[_0x355c65(0x1f6)]);}function _0xe97801(_0x2775d4,_0x49f0b2){const _0x15a5f9=_0x4ac322;if(_0x49f0b2){const _0x4cac64=''+_0x2775d4[_0x15a5f9(0x3a4)](_0x37bce6+_0x6de448)+_0x49f0b2;return _0x4cac64;}return _0x2775d4;}function _0x3c5a22(_0x9546d9){const _0x94e75b=_0x4ac322;return _0x9546d9['join']('\x0a')[_0x94e75b(0x1d4)](/^/gm,'\x20'[_0x94e75b(0x1f8)](_0x3fb0bc));}const _0xbdc1ba=[];_0xbdc1ba[_0x4ac322(0x1a9)](_0x4ac322(0x1fd)+_0xab3904[_0x4ac322(0x1ad)](_0x31047c));const _0x1a5f96=_0xab3904['commandDescription'](_0x31047c);_0x1a5f96&&(_0xbdc1ba['push'](''),_0xbdc1ba[_0x4ac322(0x1a9)](_0x1a5f96));const _0xbea16=_0x31047c['commands']['filter'](_0x509ab3=>!_0x37a31e(_0x509ab3));if(_0xbea16['length']>0x0){if(_0x31047c[_0x4ac322(0x1d1)]()===_0x4ac322(0x33b)){const _0x43a5cd=_0x31047c['opts'](),_0x850a09=!_0x43a5cd[_0x4ac322(0x2f6)]&&process['stdout']['isTTY'],_0x51a425=COMMAND_CATEGORIES,_0xfef231=(_0x43a79f,_0x311eba)=>_0x850a09?_0x311eba(_0x43a79f):_0x43a79f,_0x598f70=new Map();_0xbea16[_0x4ac322(0x351)](_0x2e453e=>{const _0x151d77=_0x4ac322;_0x598f70[_0x151d77(0x2db)](_0x2e453e[_0x151d77(0x1d1)](),_0x2e453e);}),_0x51a425[_0x4ac322(0x351)](_0x18ceda=>{const _0x8693f6=_0x4ac322,_0x4289b6=_0x18ceda['commands'][_0x8693f6(0x35d)](_0x34dc0e=>_0x598f70[_0x8693f6(0x24e)](_0x34dc0e)??[]);if(_0x4289b6[_0x8693f6(0x363)]>0x0){_0xbdc1ba[_0x8693f6(0x1a9)](''),_0xbdc1ba[_0x8693f6(0x1a9)](_0xfef231(_0x18ceda[_0x8693f6(0x1d1)]+':',_0x18ceda['colorFn']));const _0x61ea77=_0x4289b6[_0x8693f6(0x2dc)](_0xe88a4a=>{const _0x2be441=_0xab3904['subcommandTerm'](_0xe88a4a),_0x1af7e0=_0xab3904['subcommandDescription'](_0xe88a4a);return _0xe97801(_0x2be441,_0x1af7e0);});_0xbdc1ba[_0x8693f6(0x1a9)](_0x3c5a22(_0x61ea77));}}),_0xbdc1ba[_0x4ac322(0x1a9)](''),_0xbdc1ba['push'](_0x4ac322(0x3d1));}else{const _0x3687c0=_0xbea16[_0x4ac322(0x2dc)](_0x541f4d=>{const _0x506840=_0x4ac322,_0x525662=_0xab3904[_0x506840(0x394)](_0x541f4d),_0x132b91=_0xab3904[_0x506840(0x389)](_0x541f4d);return _0xe97801(_0x525662,_0x132b91);});_0xbdc1ba['push'](''),_0xbdc1ba[_0x4ac322(0x1a9)](_0x4ac322(0x39a)),_0xbdc1ba['push'](_0x3c5a22(_0x3687c0));}}const _0x583b39=_0x31047c[_0x4ac322(0x27c)][_0x4ac322(0x1b0)](_0x57cf75=>!_0x37a31e(_0x57cf75));if(_0x583b39[_0x4ac322(0x363)]>0x0){const _0x1ca1f2=_0x583b39[_0x4ac322(0x2dc)](_0x804782=>{const _0x102b04=_0xab3904['optionTerm'](_0x804782),_0x10834c=_0xab3904['optionDescription'](_0x804782);return _0xe97801(_0x102b04,_0x10834c);});_0xbdc1ba[_0x4ac322(0x1a9)](''),_0xbdc1ba[_0x4ac322(0x1a9)](_0x4ac322(0x2d9)),_0xbdc1ba[_0x4ac322(0x1a9)](_0x3c5a22(_0x1ca1f2));}const _0x3edf6c=(_0x31047c[_0x4ac322(0x317)]||[])[_0x4ac322(0x1b0)](_0x413db4=>!_0x37a31e(_0x413db4));if(_0x3edf6c[_0x4ac322(0x363)]>0x0){const _0x2bcc89=_0x3edf6c[_0x4ac322(0x2dc)](_0x890265=>{const _0xe4cb92=_0x4ac322,_0x4bfdde=_0xab3904[_0xe4cb92(0x235)](_0x890265),_0x147f81=_0xab3904[_0xe4cb92(0x3c9)](_0x890265);return _0xe97801(_0x4bfdde,_0x147f81);});_0xbdc1ba[_0x4ac322(0x1a9)](''),_0xbdc1ba[_0x4ac322(0x1a9)](_0x4ac322(0x1fb)),_0xbdc1ba[_0x4ac322(0x1a9)](_0x3c5a22(_0x2bcc89));}return _0xbdc1ba[_0x4ac322(0x3a7)]('\x0a');},'subcommandTerm':_0x509de7=>{const _0x429a31=a2_0x25d654,_0x126462=(_0x509de7[_0x429a31(0x317)]||[])[_0x429a31(0x2dc)](_0x441783=>_0x441783[_0x429a31(0x3aa)]?'<'+_0x441783[_0x429a31(0x1d1)]()+'>':'['+_0x441783[_0x429a31(0x1d1)]()+']')[_0x429a31(0x3a7)]('\x20'),_0x4294f2=_0x509de7[_0x429a31(0x361)](),_0x135853=_0x4294f2['length']>0x0?_0x509de7[_0x429a31(0x1d1)]()+',\x20'+_0x4294f2[_0x429a31(0x3a7)](',\x20'):_0x509de7['name']();return _0x126462?_0x135853+'\x20'+_0x126462:_0x135853;}}),program['hook'](a2_0x25d654(0x1a4),_0x54785f=>{const _0x2ffcd8=a2_0x25d654,_0x4745b0=_0x54785f[_0x2ffcd8(0x3d5)]();if(_0x4745b0[_0x2ffcd8(0x196)]){const _0x117cf3=resolve(_0x4745b0[_0x2ffcd8(0x196)]),_0x48b4c8=_0x117cf3!==_0x4745b0[_0x2ffcd8(0x196)]?_0x2ffcd8(0x208)+_0x117cf3+')':'';if(!existsSync(_0x117cf3))throw new SDKError(ErrorCode[_0x2ffcd8(0x3b8)],_0x2ffcd8(0x3d4)+_0x4745b0[_0x2ffcd8(0x196)]+_0x48b4c8,undefined,{'helpText':_0x2ffcd8(0x1ef)});const _0x487a60=statSync(_0x117cf3);if(!_0x487a60[_0x2ffcd8(0x3af)]())throw new SDKError(ErrorCode[_0x2ffcd8(0x3b8)],_0x2ffcd8(0x231)+_0x4745b0[_0x2ffcd8(0x196)]+_0x48b4c8,undefined,{'helpText':_0x2ffcd8(0x1ea)});process[_0x2ffcd8(0x2bc)](_0x117cf3);}if(!_0x4745b0[_0x2ffcd8(0x397)]){if(_0x4745b0[_0x2ffcd8(0x1b1)])_0x4745b0[_0x2ffcd8(0x397)]=_0x2ffcd8(0x1b1);else{if(_0x4745b0[_0x2ffcd8(0x30e)])_0x4745b0[_0x2ffcd8(0x397)]=_0x2ffcd8(0x30e);else{if(_0x4745b0[_0x2ffcd8(0x2bf)])_0x4745b0[_0x2ffcd8(0x397)]=_0x2ffcd8(0x2bf);else _0x4745b0[_0x2ffcd8(0x1ed)]&&(_0x4745b0[_0x2ffcd8(0x397)]=_0x2ffcd8(0x1ed));}}}_0x4745b0['in']&&!_0x4745b0[_0x2ffcd8(0x1e4)]&&(_0x4745b0[_0x2ffcd8(0x1e4)]=_0x4745b0['in']);if(_0x4745b0[_0x2ffcd8(0x26b)])_0x4745b0[_0x2ffcd8(0x2cb)]=LogLevel['TRACE'];else{if(_0x4745b0[_0x2ffcd8(0x2ec)])_0x4745b0[_0x2ffcd8(0x2cb)]=LogLevel['DEBUG'];else _0x4745b0['logLevel']===undefined&&(_0x4745b0[_0x2ffcd8(0x2cb)]=LogLevel[_0x2ffcd8(0x302)]);}});async function createTDXInstance(_0x4aadac){const _0x2e4b11=a2_0x25d654,_0x5859a9=await GlobalContext['createAsync'](_0x4aadac);return _0x5859a9[_0x2e4b11(0x288)](_0x4aadac),TDX[_0x2e4b11(0x343)]({'site':_0x5859a9['site'],'apiKey':_0x5859a9[_0x2e4b11(0x2a3)],'logLevel':_0x5859a9[_0x2e4b11(0x2cb)],'profile':_0x5859a9[_0x2e4b11(0x2b9)]});}const databaseCmd=program[a2_0x25d654(0x25b)](a2_0x25d654(0x1e4))[a2_0x25d654(0x255)]('db')['description'](a2_0x25d654(0x32d)),databaseListAction=async(_0x401842,_0x527f0f)=>{const _0x2bdf08=a2_0x25d654,_0xfd01d7=new DatabasesCommand(),_0x234038=program[_0x2bdf08(0x3d5)](),_0x564d1e=await createTDXInstance(_0x234038),_0x498fae=await _0xfd01d7['run']({'options':{..._0x234038,..._0x527f0f},'args':_0x401842?[_0x401842]:[],'tdx':_0x564d1e});process[_0x2bdf08(0x36c)](_0x498fae);};databaseCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x24f))[a2_0x25d654(0x258)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program[a2_0x25d654(0x25b)](a2_0x25d654(0x33f),{'hidden':!![]})['description'](a2_0x25d654(0x36a))[a2_0x25d654(0x263)](databaseListAction),program[a2_0x25d654(0x25b)]('chat\x20[message...]')[a2_0x25d654(0x258)](a2_0x25d654(0x373))['option'](a2_0x25d654(0x284),a2_0x25d654(0x209))['option'](a2_0x25d654(0x20b),a2_0x25d654(0x2a4))['action'](async(_0x225dcd,_0x5c50bd)=>{const _0x3795a0=a2_0x25d654,_0xcdb7b0=new ChatCommand(),_0x268019=program[_0x3795a0(0x3d5)](),_0x49e4f6=await createTDXInstance(_0x268019),_0x229ba7=await _0xcdb7b0['run']({'options':{..._0x268019,..._0x5c50bd},'args':_0x225dcd,'tdx':_0x49e4f6});process['exit'](_0x229ba7);});const apiCmd=program['command'](a2_0x25d654(0x252))['summary'](a2_0x25d654(0x262))[a2_0x25d654(0x393)](a2_0x25d654(0x25d),a2_0x25d654(0x395))['option'](a2_0x25d654(0x1ec),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')[a2_0x25d654(0x1f3)](a2_0x25d654(0x27b),a2_0x25d654(0x2b1))[a2_0x25d654(0x1f3)](a2_0x25d654(0x212),a2_0x25d654(0x29e))[a2_0x25d654(0x1f3)](a2_0x25d654(0x21c),a2_0x25d654(0x1e9),(_0x5e1d0a,_0x409043)=>{return _0x409043?[..._0x409043,_0x5e1d0a]:[_0x5e1d0a];})[a2_0x25d654(0x1f3)](a2_0x25d654(0x331),a2_0x25d654(0x2a2),'td')[a2_0x25d654(0x263)](async(_0x898412,_0xb26e3b)=>{const _0x559e09=a2_0x25d654;if(!_0x898412){apiCmd[_0x559e09(0x3bd)]();return;}const _0x5e89d1=new ApiCommand(),_0x5a2ab7=program[_0x559e09(0x3d5)](),_0x1f357f=await createTDXInstance(_0x5a2ab7),_0x197aec=await _0x5e89d1[_0x559e09(0x260)]({'options':{..._0x5a2ab7,..._0xb26e3b},'args':[_0x898412],'tdx':_0x1f357f});process[_0x559e09(0x36c)](_0x197aec);}),tableCmd=program['command'](a2_0x25d654(0x1b1))[a2_0x25d654(0x258)](a2_0x25d654(0x2ff)),tableListAction=async(_0x45f504,_0x8271a4)=>{const _0x2b520e=a2_0x25d654,_0x55f6c4=new TablesCommand(),_0x240f78=program[_0x2b520e(0x3d5)](),_0x19fd21=await createTDXInstance(_0x240f78);_0x8271a4['in']&&(_0x8271a4[_0x2b520e(0x1e4)]=_0x8271a4['in']);const _0xd89926=await _0x55f6c4[_0x2b520e(0x260)]({'options':{..._0x240f78,..._0x8271a4},'args':_0x45f504?[_0x45f504]:[],'tdx':_0x19fd21});process[_0x2b520e(0x36c)](_0xd89926);};tableCmd[a2_0x25d654(0x25b)]('list\x20[pattern]')['description'](a2_0x25d654(0x1c2))['option']('-d,\x20--database\x20<database>',a2_0x25d654(0x348))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1ac),a2_0x25d654(0x301))[a2_0x25d654(0x263)](tableListAction),program[a2_0x25d654(0x25b)](a2_0x25d654(0x1ce),{'hidden':!![]})['description'](a2_0x25d654(0x1d7))[a2_0x25d654(0x1f3)](a2_0x25d654(0x247),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x25d654(0x1ac),a2_0x25d654(0x301))[a2_0x25d654(0x263)](tableListAction),program[a2_0x25d654(0x25b)](a2_0x25d654(0x23d))['description']('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x247),a2_0x25d654(0x2c5))['option'](a2_0x25d654(0x1ac),a2_0x25d654(0x301))[a2_0x25d654(0x263)](async(_0x4dde1f,_0xb6c3e)=>{const _0x497ff3=a2_0x25d654,_0x59e3a0=new ShowCommand(),_0x5a8938=program[_0x497ff3(0x3d5)](),_0xdde9dd=await createTDXInstance(_0x5a8938);_0xb6c3e['in']&&(_0xb6c3e[_0x497ff3(0x1e4)]=_0xb6c3e['in']);const _0x3303cc=await _0x59e3a0[_0x497ff3(0x260)]({'options':{..._0x5a8938,..._0xb6c3e},'args':_0x4dde1f?[_0x4dde1f]:[],'tdx':_0xdde9dd});process[_0x497ff3(0x36c)](_0x3303cc);}),program[a2_0x25d654(0x25b)](a2_0x25d654(0x24d))[a2_0x25d654(0x255)](a2_0x25d654(0x1b9))[a2_0x25d654(0x258)](a2_0x25d654(0x1be))[a2_0x25d654(0x1f3)](a2_0x25d654(0x247),a2_0x25d654(0x2c5))['option']('--in\x20<database>',a2_0x25d654(0x301))[a2_0x25d654(0x263)](async(_0x360042,_0x65620b)=>{const _0x41baef=a2_0x25d654,_0x2038fc=new DescribeCommand(),_0x45e46d=program[_0x41baef(0x3d5)](),_0x592fd0=await createTDXInstance(_0x45e46d);_0x65620b['in']&&(_0x65620b[_0x41baef(0x1e4)]=_0x65620b['in']);const _0x5dfd0b=await _0x2038fc[_0x41baef(0x260)]({'options':{..._0x45e46d,..._0x65620b},'args':_0x360042?[_0x360042]:[],'tdx':_0x592fd0});process[_0x41baef(0x36c)](_0x5dfd0b);}),program[a2_0x25d654(0x25b)](a2_0x25d654(0x200))[a2_0x25d654(0x258)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x25d654(0x1f3)](a2_0x25d654(0x247),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x1ac),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x2c7),'Trino\x20catalog\x20(default:\x20td)')[a2_0x25d654(0x1f3)]('-f,\x20--file\x20<path>',a2_0x25d654(0x1d3))['option']('--limit\x20<rows>',a2_0x25d654(0x342),'40')[a2_0x25d654(0x263)](async(_0x1723db,_0x5914d6)=>{const _0x406166=a2_0x25d654,_0x464bdd=new QueryCommand(),_0x1bd7dc=program['opts'](),_0x16e608=await createTDXInstance(_0x1bd7dc);_0x5914d6['in']&&(_0x5914d6[_0x406166(0x1e4)]=_0x5914d6['in']);const _0x1f3a98=await _0x464bdd[_0x406166(0x260)]({'options':{..._0x1bd7dc,..._0x5914d6},'args':_0x1723db?[_0x1723db]:[],'tdx':_0x16e608});process[_0x406166(0x36c)](_0x1f3a98);});const segmentCmd=program['command'](a2_0x25d654(0x233))[a2_0x25d654(0x255)]('sg')[a2_0x25d654(0x258)](a2_0x25d654(0x22e)),segmentListAction=async(_0x5138e9,_0x3581f0)=>{const _0x58bc02=a2_0x25d654,_0x3009f5=new SegmentsCommand(),_0x27c7e7=program[_0x58bc02(0x3d5)](),_0x112401=await createTDXInstance(_0x27c7e7),_0x3aaa47=await _0x3009f5[_0x58bc02(0x260)]({'options':{..._0x27c7e7,..._0x3581f0},'args':_0x5138e9?[_0x5138e9]:[],'tdx':_0x112401});process[_0x58bc02(0x36c)](_0x3aaa47);};segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1ff))[a2_0x25d654(0x258)](a2_0x25d654(0x355))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2bb),a2_0x25d654(0x264))[a2_0x25d654(0x1f3)](a2_0x25d654(0x30d),a2_0x25d654(0x216),'10')[a2_0x25d654(0x1f3)](a2_0x25d654(0x237),a2_0x25d654(0x1d2))['action'](segmentListAction),program['command'](a2_0x25d654(0x197),{'hidden':!![]})['description'](a2_0x25d654(0x3c8))['option'](a2_0x25d654(0x2bb),a2_0x25d654(0x264))[a2_0x25d654(0x1f3)]('--max-depth\x20<depth>',a2_0x25d654(0x216),'10')['option'](a2_0x25d654(0x237),a2_0x25d654(0x1d2))[a2_0x25d654(0x263)](segmentListAction),segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x356),{'hidden':!![]})[a2_0x25d654(0x258)](a2_0x25d654(0x39c))[a2_0x25d654(0x263)](async(_0x28751d,_0x5cf114)=>{const _0x8e7939=a2_0x25d654,_0x1e00eb=new SegmentUseCommand(),_0x29a773=program['opts'](),_0x192146=await createTDXInstance(_0x29a773),_0x165dcc=await _0x1e00eb[_0x8e7939(0x260)]({'options':{..._0x29a773,..._0x5cf114},'args':[_0x28751d],'tdx':_0x192146});process[_0x8e7939(0x36c)](_0x165dcc);});const segmentViewAction=async(_0x3f3c01,_0x2033c8)=>{const _0x54bfca=a2_0x25d654,_0x680c96=new SegmentViewCommand(),_0x51df74=program['opts'](),_0x4536bf=await createTDXInstance(_0x51df74),_0x14f12d=await _0x680c96[_0x54bfca(0x260)]({'options':{..._0x51df74,..._0x2033c8},'args':_0x3f3c01?[_0x3f3c01]:[],'tdx':_0x4536bf});process['exit'](_0x14f12d);};segmentCmd['command'](a2_0x25d654(0x2a0))[a2_0x25d654(0x258)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x237),a2_0x25d654(0x227))[a2_0x25d654(0x263)](segmentViewAction),segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x298),{'hidden':!![]})['alias']('describe')[a2_0x25d654(0x1f3)](a2_0x25d654(0x237),a2_0x25d654(0x227))[a2_0x25d654(0x258)](a2_0x25d654(0x3ce))['action'](segmentViewAction),segmentCmd['command']('desc\x20[segment_name]')[a2_0x25d654(0x258)](a2_0x25d654(0x31b))[a2_0x25d654(0x263)](async(_0x16d96f,_0x148fc)=>{const _0x3a5ac5=a2_0x25d654,_0x2f35c5=new SegmentDescCommand(),_0x3696d3=program['opts'](),_0x271d60=await createTDXInstance(_0x3696d3),_0x920a4f=await _0x2f35c5['run']({'options':{..._0x3696d3,..._0x148fc},'args':_0x16d96f?[_0x16d96f]:[],'tdx':_0x271d60});process[_0x3a5ac5(0x36c)](_0x920a4f);}),segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x35e))[a2_0x25d654(0x258)](a2_0x25d654(0x1e5))[a2_0x25d654(0x263)](async(_0x4c9d95,_0x3bce0e)=>{const _0x482124=a2_0x25d654,_0x1d1ecf=new SegmentShowCommand(),_0x2753bc=program['opts'](),_0x3301c3=await createTDXInstance(_0x2753bc),_0x25b1f6=await _0x1d1ecf[_0x482124(0x260)]({'options':{..._0x2753bc,..._0x3bce0e},'args':_0x4c9d95?[_0x4c9d95]:[],'tdx':_0x3301c3});process[_0x482124(0x36c)](_0x25b1f6);}),segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x242),{'hidden':!![]})[a2_0x25d654(0x258)](a2_0x25d654(0x33a))[a2_0x25d654(0x263)](async(_0x173ea7,_0x178f99)=>{const _0x23cb92=a2_0x25d654,_0x1aa116=new SegmentFolderListCommand(),_0x378d45=program[_0x23cb92(0x3d5)](),_0x24debe=await createTDXInstance(_0x378d45),_0x2e037e=await _0x1aa116[_0x23cb92(0x260)]({'options':{..._0x378d45,..._0x178f99},'args':[_0x173ea7],'tdx':_0x24debe});process[_0x23cb92(0x36c)](_0x2e037e);});const folderCmd=segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x22b),{'hidden':!![]})['description'](a2_0x25d654(0x20c));folderCmd['command'](a2_0x25d654(0x338))[a2_0x25d654(0x258)](a2_0x25d654(0x2d2))[a2_0x25d654(0x263)](async(_0x4e4479,_0xbd71d6)=>{const _0x4a0b11=a2_0x25d654,_0x40b40c=new SegmentFolderShowCommand(),_0x338456=program[_0x4a0b11(0x3d5)](),_0x10d7e8=await createTDXInstance(_0x338456),_0xbd8602=await _0x40b40c['run']({'options':{..._0x338456,..._0xbd71d6},'args':[_0x4e4479],'tdx':_0x10d7e8});process[_0x4a0b11(0x36c)](_0xbd8602);}),segmentCmd['command'](a2_0x25d654(0x219))['description'](a2_0x25d654(0x2be))[a2_0x25d654(0x263)](async(_0x27e624,_0x5858f1)=>{const _0x440c67=a2_0x25d654,_0x79c81a=new SegmentSQLCommand(),_0x573ab3=program[_0x440c67(0x3d5)](),_0x4cf9fb=await createTDXInstance(_0x573ab3),_0x4197ff=await _0x79c81a[_0x440c67(0x260)]({'options':{..._0x573ab3,..._0x5858f1},'args':_0x27e624?[_0x27e624]:[],'tdx':_0x4cf9fb});process[_0x440c67(0x36c)](_0x4197ff);}),segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x3d0))[a2_0x25d654(0x258)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0xe98463,_0x325049)=>{const _0x3a19e4=a2_0x25d654,_0x184c49=new SegmentFieldsCommand(),_0x46f12e=program[_0x3a19e4(0x3d5)](),_0x21a078=await createTDXInstance(_0x46f12e),_0x445f7a=await _0x184c49[_0x3a19e4(0x260)]({'options':{..._0x46f12e,..._0x325049},'args':_0xe98463?[_0xe98463]:[],'tdx':_0x21a078});process[_0x3a19e4(0x36c)](_0x445f7a);}),segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x32c))[a2_0x25d654(0x258)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x25d654(0x1f3)]('-y,\x20--yes','Skip\x20confirmation\x20prompts')[a2_0x25d654(0x1f3)](a2_0x25d654(0x39f),a2_0x25d654(0x282))[a2_0x25d654(0x263)](async(_0x43d2a6,_0x39924b)=>{const _0xbd987b=a2_0x25d654,_0x4f9da4=new SegmentPullCommand(),_0x286c21=program['opts'](),_0x1cdd8c=await createTDXInstance(_0x286c21),_0x29a2b2=await _0x4f9da4[_0xbd987b(0x260)]({'options':{..._0x286c21,..._0x39924b},'args':_0x43d2a6?[_0x43d2a6]:[],'tdx':_0x1cdd8c});process[_0xbd987b(0x36c)](_0x29a2b2);}),segmentCmd['command'](a2_0x25d654(0x271))['description'](a2_0x25d654(0x1eb))[a2_0x25d654(0x1f3)](a2_0x25d654(0x29d),'Skip\x20confirmation\x20prompts')[a2_0x25d654(0x1f3)](a2_0x25d654(0x39f),a2_0x25d654(0x282))[a2_0x25d654(0x1f3)](a2_0x25d654(0x392),a2_0x25d654(0x195))[a2_0x25d654(0x263)](async(_0x16ed41,_0x2fd726)=>{const _0x466b1e=a2_0x25d654,_0x46ed82=new SegmentPushCommand(),_0x257561=program[_0x466b1e(0x3d5)](),_0x3318eb=await createTDXInstance(_0x257561),_0x3e5847=await _0x46ed82[_0x466b1e(0x260)]({'options':{..._0x257561,..._0x2fd726},'args':_0x16ed41?[_0x16ed41]:[],'tdx':_0x3318eb});process[_0x466b1e(0x36c)](_0x3e5847);}),segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2ab))['description']('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x36f7da,_0x19de8e)=>{const _0x49fe69=a2_0x25d654,_0x20e35d=new SegmentValidateCommand(),_0x171b11=program[_0x49fe69(0x3d5)](),_0x1fd562=await createTDXInstance(_0x171b11),_0x56fbaf=await _0x20e35d[_0x49fe69(0x260)]({'options':{..._0x171b11,..._0x19de8e},'args':_0x36f7da?[_0x36f7da]:[],'tdx':_0x1fd562});process['exit'](_0x56fbaf);}),segmentCmd['command']('create\x20<segment_name>',{'hidden':!![]})[a2_0x25d654(0x258)](a2_0x25d654(0x232))[a2_0x25d654(0x1f3)](a2_0x25d654(0x201),a2_0x25d654(0x3cc))[a2_0x25d654(0x1f3)](a2_0x25d654(0x256),a2_0x25d654(0x311))[a2_0x25d654(0x1f3)](a2_0x25d654(0x335),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x25d654(0x1f3)](a2_0x25d654(0x2a9),a2_0x25d654(0x2ee))[a2_0x25d654(0x1f3)](a2_0x25d654(0x339),a2_0x25d654(0x240))[a2_0x25d654(0x1f3)]('--invisible','Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x334),'Skip\x20population\x20counting')['action'](async(_0x3678a8,_0x575982)=>{const _0x2714bf=a2_0x25d654,_0x4d76af=new SegmentCreateCommand(),_0x34d79c=program['opts'](),_0x23effc=await createTDXInstance(_0x34d79c),_0x5cd148=await _0x4d76af[_0x2714bf(0x260)]({'options':{..._0x34d79c,..._0x575982},'args':[_0x3678a8],'tdx':_0x23effc});process[_0x2714bf(0x36c)](_0x5cd148);}),segmentCmd['command'](a2_0x25d654(0x21f),{'hidden':!![]})[a2_0x25d654(0x258)](a2_0x25d654(0x322))['option']('--name\x20<new_name>',a2_0x25d654(0x25a))['option'](a2_0x25d654(0x201),a2_0x25d654(0x357))[a2_0x25d654(0x1f3)](a2_0x25d654(0x256),a2_0x25d654(0x28a))[a2_0x25d654(0x1f3)](a2_0x25d654(0x335),a2_0x25d654(0x225))['option'](a2_0x25d654(0x2a9),'Move\x20to\x20folder')[a2_0x25d654(0x1f3)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x25d654(0x263)](async(_0x332755,_0x5c105a)=>{const _0x50e1dd=a2_0x25d654,_0x2f4aeb=new SegmentUpdateCommand(),_0x74f5ee=program['opts'](),_0x4bec37=await createTDXInstance(_0x74f5ee),_0x225d43=await _0x2f4aeb['run']({'options':{..._0x74f5ee,..._0x5c105a},'args':[_0x332755],'tdx':_0x4bec37});process[_0x50e1dd(0x36c)](_0x225d43);});const parentCmd=segmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x305),{'hidden':!![]})[a2_0x25d654(0x258)](a2_0x25d654(0x370)),parentListAction=async(_0xd3626b,_0x4f78b9)=>{const _0x335cf9=a2_0x25d654,_0x2cd027=new ParentSegmentListCommand(),_0x51dce=program['opts'](),_0x21b979=await createTDXInstance(_0x51dce),_0xe9df2e=await _0x2cd027[_0x335cf9(0x260)]({'options':{..._0x51dce,..._0x4f78b9},'args':_0xd3626b?[_0xd3626b]:[],'tdx':_0x21b979});process[_0x335cf9(0x36c)](_0xe9df2e);};function a2_0x22a5(){const _0x5879a3=['-X,\x20--method\x20<method>','tsv','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Add\x20behaviors\x20as\x20JSON\x20string','--name\x20<name>','Add\x20behaviors\x20from\x20JSON\x20file','option','Create\x20an\x20email\x20template','Limit\x20number\x20of\x20rows','hidden','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','repeat','--from-task\x20<task>',',\x20version\x20','Arguments:','--from\x20<timestamp>','Usage:\x20','Campaign\x20description','list\x20[path]','query\x20[sql]','--description\x20<text>','9941830JzbZiz','use\x20[name]','18617225HIooql','--agent\x20<name>','--clear','--prompt\x20<text>','\x20(resolved\x20to\x20','Agent\x20reference\x20(project-name/agent-name)','utf-8','--new','[DEPRECATED]\x20Segment\x20folder\x20management','-o,\x20--output\x20<dir>','Database\x20to\x20use\x20(overrides\x20context)','parse','build-info.json','show\x20[name]','-f,\x20--file\x20<path>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Output\x20as\x20JSON','Workflow\x20session\x20management','Maximum\x20recursion\x20depth\x20(default:\x2010)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','[task-name]','sql\x20[segment_name]','sql\x20[name]','delete\x20<name>','-H,\x20--header\x20<header>','Pause\x20a\x20campaign','buildTime','update\x20<segment_name>','--output\x20<file>','--segment\x20<path>','-f,\x20--force','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','-C,\x20--directory\x20<path>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Open\x20segment\x20in\x20web\x20browser','models','Include\x20execution\x20statistics','Duplicate\x20a\x20campaign','folder','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','CDP\x20segment\x20management\x20commands','--customer-group-file\x20<file>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Path\x20is\x20not\x20a\x20directory:\x20','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','segment','-d,\x20--database\x20<name>','argumentTerm','--to\x20<timestamp>','-w,\x20--web','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','parents\x20[pattern]','workflows\x20[project]','Agent\x20name','--workspace\x20<name>','show\x20[table]','desc\x20[name]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','New\x20campaign\x20name','folders\x20<parent_name>','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','schema\x20<type>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','gitRevision','-d,\x20--database\x20<database>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','project','Change\x20to\x20directory\x20before\x20executing\x20command','--color','information_schema','describe\x20[table]','get','list\x20[pattern]','-u,\x20--use','Preview\x20operation\x20without\x20executing','api\x20[endpoint]','Validate\x20journey\x20YAML\x20files\x20locally','Workflow\x20(Digdag)\x20management\x20commands','alias','--rule\x20<json>','pause\x20<name-or-path>','description','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','New\x20segment\x20name','command','Maximum\x20tool\x20iterations\x20(default:\x204)','after','trino','List\x20all\x20data\x20connections','run','Attributes\x20as\x20JSON\x20string','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','action','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--llm-project\x20<name>','Customer\x20group\x20as\x20JSON\x20string','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','22543SuWBlR','journey','session','trace','Workspace\x20name','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Campaign\x20management','port','push\x20[parent_or_file]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','log','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','outputHelp','../package.json','Resume\x20a\x20paused\x20journey','--data\x20<data>','options','224545VYbvRh','then','Workflow\x20project\x20management','campaigns\x20[pattern]','Resume\x20a\x20conversation\x20(shows\x20selector)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','attempt','--agent\x20<ref>','types','argument','--parent-folder\x20<name>','injectIntoOptions','--enriched','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20agents\x20in\x20current\x20project','\x20-\x20built\x20','-c,\x20--continue','--attributes-file\x20<file>','Show\x20connection\x20details\x20by\x20name','Interactive\x20chat\x20selector','us01','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','view\x20<name-or-path>','Show\x20journey\x20statistics','Name\x20for\x20the\x20new\x20project\x20(required)','Set\x20or\x20show\x20parent\x20segment\x20context','info\x20[segment_name]','--table','Skip\x20confirmation\x20prompts','engage','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','-y,\x20--yes','Read\x20request\x20body\x20from\x20file','configureHelp','view\x20[segment_name]','validate\x20[name]','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','apiKey','Start\x20a\x20new\x20chat\x20session','Show\x20campaign\x20details','Resume\x20a\x20paused\x20campaign','Workflow\x20attempt\x20management','--add-attributes-file\x20<file>','--folder\x20<name>','-n,\x20--name\x20<name>','validate\x20[target]','List\x20journeys\x20in\x20current\x20context','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','restore\x20<folder>','Launch\x20a\x20campaign','Pause\x20a\x20running\x20journey','Request\x20body\x20as\x20JSON\x20string','version','--force','--params\x20<json>','--no-color','--site\x20<site>','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Attempt\x20ID','profile','List\x20available\x20connector\x20types','-r,\x20--recursive','chdir','Reason\x20for\x20killing\x20the\x20attempt','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','jsonl','Job\x20management\x20commands','Include\x20subtasks\x20in\x20tasks\x20output','--add-behaviors\x20<json>','2212CjYYJq','Show\x20only\x20master\x20table\x20validation','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Workspace\x20name\x20(required)','--catalog\x20<catalog>','Create\x20segment\x20folder','--full','--name\x20<text>','logLevel','secrets','--parent-segment\x20<name>','submit\x20[query]','--system-prompt\x20<text>','Remove\x20API\x20key\x20from\x20system\x20keychain','Behaviors\x20from\x20JSON\x20file','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','connections','Continue\x20most\x20recent\x20conversation','Editor\x20type','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Options:','--editor-type\x20<type>','set','map','validate\x20[file]','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Delete\x20an\x20LLM\x20project','-o,\x20--output\x20<file>','-v,\x20--verbose','agents\x20[pattern]','Export\x20journey(s)\x20as\x20YAML\x20files','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','catch','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--json-columns\x20<cols>','error','Create\x20a\x20new\x20LLM\x20project','--html\x20<html>','debug','-1d','Folder\x20name\x20for\x20organization','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Updated\x20schedule\x20option','--include-stats','template','Overwrite\x20local\x20changes\x20without\x20confirmation','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','update\x20<agent-name>','noColor','--format\x20<format>','show\x20<job-id>','Read\x20query\x20from\x20file','Add\x20attributes\x20as\x20JSON\x20string','--limit\x20<number>','4000','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','campaign','Table\x20management\x20commands','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Alias\x20for\x20--database\x20(natural\x20language\x20style)','INFO','Workspace\x20description','Agent\x20prompt/instructions','parent','Show\x20web\x20console\x20URLs\x20for\x20journeys','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--status\x20<status>','System\x20prompt/instructions\x20(default:\x20empty)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--max-depth\x20<depth>','json','run\x20[name]','--starter-message\x20<text>','Filtering\x20rule\x20as\x20JSON\x20string','--plaintext\x20<text>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','create\x20<name>','create\x20<parent_name>\x20<folder_name>','78uehgfp','registeredArguments','Add\x20attributes\x20from\x20JSON\x20file','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','claude\x20[args...]','Show\x20segment\x20schema\x20(column\x20types)','update\x20<name>','use\x20<name>','templates\x20[pattern]','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','users','--timeout\x20<seconds>','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','usage','kill\x20<job-id>','Delete\x20an\x20email\x20template','Show\x20console\x20URLs','projects\x20[pattern]','Clear\x20workflow\x20project\x20context','setup','show\x20<agent-name>','tasks','pull\x20[parent_or_file]','Database\x20management\x20commands','sessions\x20[project]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--type\x20<api_type>','logs','HTML\x20template\x20content','--no-count-population','--rule-file\x20<file>','.dev','12euWlhP','show\x20<folder_ref>','--kind\x20<type>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','tdx','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','claude-4.5-sonnet','push\x20[file]','databases\x20[pattern]','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','Show\x20agent\x20details','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','create','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--resume-from\x20<task>','Setup\x20API\x20key\x20authentication\x20interactively','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','workspaces\x20[pattern]','--customer-group\x20<json>','Create\x20a\x20workspace','--email-sender-id\x20<id>','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','forEach','list','statusline','Email\x20template\x20management','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','use\x20<path>','Updated\x20description','--attributes\x20<json>','94CuLkIw','retry\x20<session-id>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--add-behaviors-file\x20<file>','flatMap','show\x20[segment_name]','Plaintext\x20template\x20content','run\x20<workflow>','aliases','Campaign\x20name','length','LLM\x20agent\x20management','requiredOption','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','pull\x20[name]','--type\x20<type>','Push\x20without\x20confirmation','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--include-subtasks','exit','Create\x20a\x20new\x20campaign','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','retry','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','workspace','chats','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Email\x20sender\x20ID\x20for\x20delivery','New\x20workspace\x20name','resume\x20<name-or-path>','--param\x20<key=value>','pause\x20<name-or-id>','attempts\x20[project]','--last','--attribute\x20[name]','context','Open\x20parent\x20segment\x20in\x20web\x20browser','Customer\x20group\x20from\x20JSON\x20file','--yes','Delete\x20an\x20agent','push\x20[project-name-or-dir]','[options]\x20--\x20[claude-code-args...]','LLM\x20project\x20to\x20use\x20(overrides\x20context)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Revision\x20name\x20(default:\x20timestamp)','--debug','padWidth','Parent\x20folder\x20name\x20for\x20nested\x20folders','subcommandDescription','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Open\x20journey\x20in\x20web\x20browser','User\x20management\x20commands','Starter\x20message','--master','set\x20<args...>','--job-type\x20<type>','Set\x20operation\x20timeout\x20in\x20seconds','--delete','addHelpText','subcommandTerm','\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','--jsonl','format','Force\x20retry\x20even\x20if\x20not\x20failed','Delete\x20a\x20campaign','Commands:','Skip\x20validation\x20of\x20.dig\x20files','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Resume\x20from\x20specific\x20task','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--dry-run','view\x20[name]','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','activations\x20<segment_name>','Master\x20database\x20name','padEnd','--no-proxy','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','join','Behaviors\x20as\x20JSON\x20string','--schedule-option\x20<value>','required','user','List\x20jobs','Include\x20retried\x20attempts','End\x20time\x20filter\x20(ISO\x208601\x20format)','isDirectory','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','List\x20secret\x20keys\x20for\x20a\x20project','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','isArray','--description\x20<desc>','AI-native\x20CLI\x20for\x20Treasure\x20Data','INVALID_ARGUMENT','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','5744KSAqDH','Email\x20subject\x20template','help','use\x20[project]','isTTY','--trace','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--behaviors\x20<json>','Output\x20as\x20JSON\x20Lines','parent-segment','--model\x20<name>','--revision\x20<revision>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','argumentDescription','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20journey\x20details','Segment\x20description','includes','Show\x20segment\x20details\x20(alias\x20for\x20view)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','fields\x20[parent_name]','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Kill\x20a\x20job','Output\x20file\x20path','Directory\x20does\x20not\x20exist:\x20','opts','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Get\x20job\x20results','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','directory','segments\x20[path]','job','allowUnknownOption','CDP\x20Journey\x20Orchestration\x20commands','Show\x20agent\x20chat\x20URLs','Skip\x20confirmation\x20prompt','--schedule-type\x20<type>','profiles','-r,\x20--resume','--reason\x20<text>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Clear\x20session\x20context','--include-retried','preAction','Override\x20project\x20name','push\x20[path]','backup\x20<name>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','push','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--stage\x20<name>','--in\x20<database>','commandUsage','list\x20[project]','duplicate\x20<name-or-id>','filter','table','--port\x20<number>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','preview\x20[file]','argv','result\x20<job-id>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','desc','Delete\x20a\x20workspace','show\x20<name>','--interval\x20<range>','connection','Describe\x20table\x20schema','--version','--json','slice','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','allowExcessArguments','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','stats\x20<name-or-path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--behavior\x20[name]','update\x20<name-or-id>','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','parent_segment','show\x20<name-or-id>','delete\x20<name-or-id>','tables\x20[pattern]','8941464EXGUSi','852420vQHcHG','name','Show\x20web\x20console\x20URLs\x20for\x20segments','Read\x20SQL\x20query\x20from\x20file','replace','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--timezone\x20<tz>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','List\x20available\x20LLM\x20models','Parent\x20segment\x20management','Update\x20an\x20email\x20template','pull\x20[project]\x20[agent-name]','--database\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--session\x20<id>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','status','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Template\x20name','Master\x20table\x20name','database','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','tdx\x20','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments'];a2_0x22a5=function(){return _0x5879a3;};return a2_0x22a5();}parentCmd['command'](a2_0x25d654(0x24f))[a2_0x25d654(0x258)](a2_0x25d654(0x30b))[a2_0x25d654(0x263)](parentListAction),segmentCmd['command'](a2_0x25d654(0x239),{'hidden':!![]})[a2_0x25d654(0x258)](a2_0x25d654(0x1c3))[a2_0x25d654(0x263)](parentListAction),parentCmd['command'](a2_0x25d654(0x367))[a2_0x25d654(0x258)](a2_0x25d654(0x245))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2e0),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x29d),'Skip\x20confirmation\x20prompt')[a2_0x25d654(0x263)](async(_0x365a49,_0x1678be)=>{const _0x409a35=a2_0x25d654,_0x34a417=new ParentSegmentPullCommand(),_0x28ffc9=program[_0x409a35(0x3d5)](),_0x1be72d=await createTDXInstance(_0x28ffc9),_0x25a0f9=await _0x34a417[_0x409a35(0x260)]({'options':{..._0x28ffc9,..._0x1678be},'args':_0x365a49?[_0x365a49]:[],'tdx':_0x1be72d});process['exit'](_0x25a0f9);}),parentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x33e))[a2_0x25d654(0x258)](a2_0x25d654(0x2ef))[a2_0x25d654(0x1f3)](a2_0x25d654(0x29d),a2_0x25d654(0x19c))['action'](async(_0x510f30,_0x141531)=>{const _0x579674=a2_0x25d654,_0x4f8c4b=new ParentSegmentPushCommand(),_0x594336=program[_0x579674(0x3d5)](),_0x2b7d2f=await createTDXInstance(_0x594336),_0x1fe10a=await _0x4f8c4b[_0x579674(0x260)]({'options':{..._0x594336,..._0x141531},'args':_0x510f30?[_0x510f30]:[],'tdx':_0x2b7d2f});process[_0x579674(0x36c)](_0x1fe10a);}),parentCmd['command'](a2_0x25d654(0x2dd))[a2_0x25d654(0x258)](a2_0x25d654(0x300))[a2_0x25d654(0x1f3)](a2_0x25d654(0x38e),a2_0x25d654(0x2c4))[a2_0x25d654(0x1f3)](a2_0x25d654(0x37b),a2_0x25d654(0x272))['option'](a2_0x25d654(0x1c8),a2_0x25d654(0x344))[a2_0x25d654(0x1f3)](a2_0x25d654(0x289),a2_0x25d654(0x230))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1bc),a2_0x25d654(0x2d8),a2_0x25d654(0x2ed))[a2_0x25d654(0x263)](async(_0x198e42,_0xaa6588)=>{const _0x3dae29=a2_0x25d654,_0x1d7c70=new ParentSegmentValidateCommand(),_0x204be3=program['opts'](),_0x1e5b8c=await createTDXInstance(_0x204be3),_0x34b06e=await _0x1d7c70[_0x3dae29(0x260)]({'options':{..._0x204be3,..._0xaa6588},'args':_0x198e42?[_0x198e42]:[],'tdx':_0x1e5b8c});process[_0x3dae29(0x36c)](_0x34b06e);}),parentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1b5))[a2_0x25d654(0x258)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option'](a2_0x25d654(0x38e),'Show\x20master\x20table\x20sample\x20data')[a2_0x25d654(0x1f3)]('--attribute\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x25d654(0x1f3)](a2_0x25d654(0x1c8),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x25d654(0x1f3)]('--enriched',a2_0x25d654(0x1a1))['option'](a2_0x25d654(0x1bc),a2_0x25d654(0x2d8),'-1d')[a2_0x25d654(0x263)](async(_0x2117a7,_0x430a70)=>{const _0x5c2992=a2_0x25d654,_0x40ac87=new ParentSegmentPreviewCommand(),_0x2a86fe=program[_0x5c2992(0x3d5)](),_0x46401e=await createTDXInstance(_0x2a86fe),_0xe713fa=await _0x40ac87[_0x5c2992(0x260)]({'options':{..._0x2a86fe,..._0x430a70},'args':_0x2117a7?[_0x2117a7]:[],'tdx':_0x46401e});process[_0x5c2992(0x36c)](_0xe713fa);}),parentCmd[a2_0x25d654(0x25b)]('run\x20[name]')['description'](a2_0x25d654(0x319))[a2_0x25d654(0x1f3)](a2_0x25d654(0x29d),a2_0x25d654(0x19c))[a2_0x25d654(0x263)](async(_0x1b7810,_0x16dba8)=>{const _0x243274=a2_0x25d654,_0x5ae392=new ParentSegmentRunCommand(),_0x21dcbc=program[_0x243274(0x3d5)](),_0x2d9bdc=await createTDXInstance(_0x21dcbc),_0x36f249=await _0x5ae392[_0x243274(0x260)]({'options':{..._0x21dcbc,..._0x16dba8},'args':_0x1b7810?[_0x1b7810]:[],'tdx':_0x2d9bdc});process[_0x243274(0x36c)](_0x36f249);});const parentSegmentCmd=program[a2_0x25d654(0x25b)](a2_0x25d654(0x3c5))['alias']('ps')[a2_0x25d654(0x258)](a2_0x25d654(0x1d9));parentSegmentCmd['command'](a2_0x25d654(0x24f))['description'](a2_0x25d654(0x30b))[a2_0x25d654(0x263)](parentListAction),parentSegmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x367))[a2_0x25d654(0x258)](a2_0x25d654(0x1b4))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2e0),a2_0x25d654(0x3d3))[a2_0x25d654(0x1f3)](a2_0x25d654(0x29d),a2_0x25d654(0x19c))[a2_0x25d654(0x1f3)](a2_0x25d654(0x250),a2_0x25d654(0x35b))[a2_0x25d654(0x263)](async(_0x548453,_0xe832ec)=>{const _0x45392e=a2_0x25d654,_0x299677=new ParentSegmentPullCommand(),_0x37f6c8=program[_0x45392e(0x3d5)](),_0x89dd33=await createTDXInstance(_0x37f6c8),_0xc47dc8=await _0x299677[_0x45392e(0x260)]({'options':{..._0x37f6c8,..._0xe832ec},'args':_0x548453?[_0x548453]:[],'tdx':_0x89dd33});process['exit'](_0xc47dc8);}),parentSegmentCmd[a2_0x25d654(0x25b)]('push\x20[name]')[a2_0x25d654(0x258)](a2_0x25d654(0x1b3))[a2_0x25d654(0x1f3)](a2_0x25d654(0x29d),'Skip\x20confirmation\x20prompt')[a2_0x25d654(0x263)](async(_0x4b0f2e,_0x3bf604)=>{const _0x8e93b6=a2_0x25d654,_0x431dee=new ParentSegmentPushCommand(),_0x5d8ca8=program[_0x8e93b6(0x3d5)](),_0x56e1f7=await createTDXInstance(_0x5d8ca8),_0x4cb6fa=await _0x431dee[_0x8e93b6(0x260)]({'options':{..._0x5d8ca8,..._0x3bf604},'args':_0x4b0f2e?[_0x4b0f2e]:[],'tdx':_0x56e1f7});process[_0x8e93b6(0x36c)](_0x4cb6fa);}),parentSegmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2a1))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x25d654(0x1f3)](a2_0x25d654(0x38e),'Show\x20only\x20master\x20table\x20validation')[a2_0x25d654(0x1f3)](a2_0x25d654(0x37b),a2_0x25d654(0x272))['option'](a2_0x25d654(0x1c8),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x25d654(0x1f3)](a2_0x25d654(0x289),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x1bc),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x25d654(0x2ed))['action'](async(_0x551300,_0x26b115)=>{const _0x1a6cd8=a2_0x25d654,_0x476af7=new ParentSegmentValidateCommand(),_0x1ed1b9=program[_0x1a6cd8(0x3d5)](),_0x15cc6b=await createTDXInstance(_0x1ed1b9),_0x96230f=await _0x476af7['run']({'options':{..._0x1ed1b9,..._0x26b115},'args':_0x551300?[_0x551300]:[],'tdx':_0x15cc6b});process[_0x1a6cd8(0x36c)](_0x96230f);}),parentSegmentCmd[a2_0x25d654(0x25b)]('preview\x20[name]')[a2_0x25d654(0x258)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x25d654(0x1f3)](a2_0x25d654(0x38e),'Show\x20master\x20table\x20sample\x20data')[a2_0x25d654(0x1f3)](a2_0x25d654(0x37b),a2_0x25d654(0x3a6))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1c8),a2_0x25d654(0x259))[a2_0x25d654(0x1f3)](a2_0x25d654(0x289),a2_0x25d654(0x1a1))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1bc),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x25d654(0x2ed))[a2_0x25d654(0x263)](async(_0x456317,_0xc36293)=>{const _0x6b898b=a2_0x25d654,_0x9bb955=new ParentSegmentPreviewCommand(),_0x31664f=program[_0x6b898b(0x3d5)](),_0x19f97a=await createTDXInstance(_0x31664f),_0x1be5a6=await _0x9bb955['run']({'options':{..._0x31664f,..._0xc36293},'args':_0x456317?[_0x456317]:[],'tdx':_0x19f97a});process[_0x6b898b(0x36c)](_0x1be5a6);}),parentSegmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x30f))[a2_0x25d654(0x258)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option']('-y,\x20--yes',a2_0x25d654(0x19c))[a2_0x25d654(0x263)](async(_0x19c9fd,_0x2b0735)=>{const _0x136fe7=a2_0x25d654,_0x2b4251=new ParentSegmentRunCommand(),_0x140b3d=program[_0x136fe7(0x3d5)](),_0x2a3fda=await createTDXInstance(_0x140b3d),_0x21f51b=await _0x2b4251[_0x136fe7(0x260)]({'options':{..._0x140b3d,..._0x2b0735},'args':_0x19c9fd?[_0x19c9fd]:[],'tdx':_0x2a3fda});process[_0x136fe7(0x36c)](_0x21f51b);}),parentSegmentCmd[a2_0x25d654(0x25b)]('fields\x20[name]')['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x25d654(0x1c0),a2_0x25d654(0x214))[a2_0x25d654(0x1f3)](a2_0x25d654(0x396),a2_0x25d654(0x3c4))['action'](async(_0x20a7bd,_0x3095ac)=>{const _0x4b82c2=a2_0x25d654,_0x34c334=new ParentSegmentFieldsCommand(),_0xc807d8=program['opts'](),_0x3dfa0e=await createTDXInstance(_0xc807d8),_0x1c9012=await _0x34c334[_0x4b82c2(0x260)]({'options':{..._0xc807d8,..._0x3095ac},'args':_0x20a7bd?[_0x20a7bd]:[],'tdx':_0x3dfa0e});process['exit'](_0x1c9012);}),parentSegmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x3a0))[a2_0x25d654(0x258)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x237),a2_0x25d654(0x37d))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1c0),a2_0x25d654(0x214))[a2_0x25d654(0x1f3)]('--jsonl',a2_0x25d654(0x3c4))[a2_0x25d654(0x263)](async(_0x1fa098,_0x2d5c54)=>{const _0x5cec40=a2_0x25d654,_0x3c3301=new ParentSegmentViewCommand(),_0x5dbffa=program[_0x5cec40(0x3d5)](),_0x3027c0=await createTDXInstance(_0x5dbffa),_0x51f97c=await _0x3c3301[_0x5cec40(0x260)]({'options':{..._0x5dbffa,..._0x2d5c54},'args':_0x1fa098?[_0x1fa098]:[],'tdx':_0x3027c0});process[_0x5cec40(0x36c)](_0x51f97c);}),parentSegmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x23e))['description'](a2_0x25d654(0x275))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1c0),a2_0x25d654(0x214))['option'](a2_0x25d654(0x396),'Output\x20as\x20JSON\x20Lines')[a2_0x25d654(0x263)](async(_0x2bca8f,_0x479d6b)=>{const _0xed4c0d=a2_0x25d654,_0x150abc=new ParentSegmentDescCommand(),_0xea8ba2=program['opts'](),_0x5065d6=await createTDXInstance(_0xea8ba2),_0x1bac32=await _0x150abc[_0xed4c0d(0x260)]({'options':{..._0xea8ba2,..._0x479d6b},'args':_0x2bca8f?[_0x2bca8f]:[],'tdx':_0x5065d6});process[_0xed4c0d(0x36c)](_0x1bac32);}),parentSegmentCmd['command'](a2_0x25d654(0x21a))[a2_0x25d654(0x258)](a2_0x25d654(0x3cf))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1c0),a2_0x25d654(0x214))[a2_0x25d654(0x1f3)](a2_0x25d654(0x396),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x171b09,_0x51ebbb)=>{const _0xe0e404=a2_0x25d654,_0x4a163c=new ParentSegmentSQLCommand(),_0x458cc1=program[_0xe0e404(0x3d5)](),_0x52e1c5=await createTDXInstance(_0x458cc1),_0x2ea9b7=await _0x4a163c['run']({'options':{..._0x458cc1,..._0x51ebbb},'args':_0x171b09?[_0x171b09]:[],'tdx':_0x52e1c5});process[_0xe0e404(0x36c)](_0x2ea9b7);}),parentSegmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x211))['description'](a2_0x25d654(0x33c))[a2_0x25d654(0x1f3)]('--limit\x20<n>',a2_0x25d654(0x1f5))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1c0),a2_0x25d654(0x214))['option'](a2_0x25d654(0x396),a2_0x25d654(0x3c4))[a2_0x25d654(0x263)](async(_0x515814,_0x4b1c1c)=>{const _0x4da84e=a2_0x25d654,_0xad7f2=new ParentSegmentShowCommand(),_0x3554be=program[_0x4da84e(0x3d5)](),_0x3abbf8=await createTDXInstance(_0x3554be),_0x2ed4a1=await _0xad7f2[_0x4da84e(0x260)]({'options':{..._0x3554be,..._0x4b1c1c},'args':_0x515814?[_0x515814]:[],'tdx':_0x3abbf8});process[_0x4da84e(0x36c)](_0x2ed4a1);}),parentSegmentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x203))[a2_0x25d654(0x258)](a2_0x25d654(0x297))[a2_0x25d654(0x263)](async(_0x15465a,_0x128c6e)=>{const _0x3272ba=a2_0x25d654,_0x434158=new UseCommand(),_0x17700=program[_0x3272ba(0x3d5)](),_0x2a6c99=_0x15465a?[_0x3272ba(0x1cb),_0x15465a]:[],_0x3e6d1e=await _0x434158[_0x3272ba(0x260)]({'options':{..._0x17700,..._0x128c6e},'args':_0x2a6c99,'tdx':null});process['exit'](_0x3e6d1e);}),parentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x314))[a2_0x25d654(0x258)](a2_0x25d654(0x2d6))[a2_0x25d654(0x365)]('--database\x20<db>',a2_0x25d654(0x3a3))[a2_0x25d654(0x365)]('--table\x20<table>',a2_0x25d654(0x1e3))[a2_0x25d654(0x1f3)](a2_0x25d654(0x201),'Parent\x20segment\x20description')[a2_0x25d654(0x1f3)](a2_0x25d654(0x19d),a2_0x25d654(0x1a8))[a2_0x25d654(0x1f3)](a2_0x25d654(0x3a9),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')['option']('--timezone\x20<tz>','Timezone\x20(e.g.,\x20America/Los_Angeles)')['option'](a2_0x25d654(0x358),a2_0x25d654(0x261))['option'](a2_0x25d654(0x28f),'Attributes\x20from\x20JSON\x20file')['option'](a2_0x25d654(0x3c3),a2_0x25d654(0x3a8))['option']('--behaviors-file\x20<file>',a2_0x25d654(0x2d1))['option'](a2_0x25d654(0x34d),a2_0x25d654(0x266))['option'](a2_0x25d654(0x22f),a2_0x25d654(0x37e))[a2_0x25d654(0x263)](async(_0xf41340,_0x5cff80)=>{const _0x2787fb=a2_0x25d654,_0x616a1=new ParentSegmentCreateCommand(),_0x2f9057=program[_0x2787fb(0x3d5)](),_0x5840b4=await createTDXInstance(_0x2f9057),_0x50c947=await _0x616a1[_0x2787fb(0x260)]({'options':{..._0x2f9057,..._0x5cff80},'args':[_0xf41340],'tdx':_0x5840b4});process['exit'](_0x50c947);}),parentCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x31c))[a2_0x25d654(0x258)](a2_0x25d654(0x2d7))[a2_0x25d654(0x1f3)](a2_0x25d654(0x201),a2_0x25d654(0x357))[a2_0x25d654(0x1f3)](a2_0x25d654(0x19d),a2_0x25d654(0x349))['option'](a2_0x25d654(0x3a9),a2_0x25d654(0x2f0))['option'](a2_0x25d654(0x1d6),'Updated\x20timezone')[a2_0x25d654(0x1f3)]('--add-attributes\x20<json>',a2_0x25d654(0x2fa))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2a8),a2_0x25d654(0x318))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2c2),a2_0x25d654(0x1f0))[a2_0x25d654(0x1f3)](a2_0x25d654(0x35c),a2_0x25d654(0x1f2))[a2_0x25d654(0x263)](async(_0x50687f,_0x24799f)=>{const _0x5c06e1=a2_0x25d654,_0x40f5d3=new ParentSegmentUpdateCommand(),_0x2f4763=program[_0x5c06e1(0x3d5)](),_0x1d0bef=await createTDXInstance(_0x2f4763),_0x422c7d=await _0x40f5d3[_0x5c06e1(0x260)]({'options':{..._0x2f4763,..._0x24799f},'args':[_0x50687f],'tdx':_0x1d0bef});process[_0x5c06e1(0x36c)](_0x422c7d);}),folderCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x315))[a2_0x25d654(0x258)](a2_0x25d654(0x2c8))['option'](a2_0x25d654(0x201),'Folder\x20description')[a2_0x25d654(0x1f3)](a2_0x25d654(0x287),a2_0x25d654(0x388))[a2_0x25d654(0x263)](async(_0x2168b5,_0x1deeda,_0x1935c6)=>{const _0x26ce39=a2_0x25d654,_0x16bce8=new SegmentFolderCreateCommand(),_0x4e0e52=program[_0x26ce39(0x3d5)](),_0x1eee57=await createTDXInstance(_0x4e0e52),_0xadfdb4=await _0x16bce8[_0x26ce39(0x260)]({'options':{..._0x4e0e52,..._0x1935c6},'args':[_0x2168b5,_0x1deeda],'tdx':_0x1eee57});process[_0x26ce39(0x36c)](_0xadfdb4);}),program['command'](a2_0x25d654(0x3a2))[a2_0x25d654(0x258)](a2_0x25d654(0x1c5))['action'](async(_0x491369,_0x4f1804)=>{const _0x45bc98=a2_0x25d654,_0x47e120=new ActivationsCommand(),_0x182bf1=program[_0x45bc98(0x3d5)](),_0x44fb5f=await createTDXInstance(_0x182bf1),_0x1121a8=await _0x47e120[_0x45bc98(0x260)]({'options':{..._0x182bf1,..._0x4f1804},'args':[_0x491369],'tdx':_0x44fb5f});process[_0x45bc98(0x36c)](_0x1121a8);});const workflowCmd=program[a2_0x25d654(0x25b)]('workflow')[a2_0x25d654(0x255)]('wf')[a2_0x25d654(0x258)](a2_0x25d654(0x254)),wfProjectCmd=workflowCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x249))[a2_0x25d654(0x258)](a2_0x25d654(0x27f)),wfProjectListAction=async(_0x1e52e5,_0x19d7d0)=>{const _0x38c6c6=a2_0x25d654,_0xdee269=new WorkflowProjectsCommand(),_0x3c9296=program[_0x38c6c6(0x3d5)](),_0x141a0a=await createTDXInstance(_0x3c9296),_0x17f60b=await _0xdee269['run']({'options':{..._0x3c9296,..._0x19d7d0},'args':_0x1e52e5?[_0x1e52e5]:[],'tdx':_0x141a0a});process[_0x38c6c6(0x36c)](_0x17f60b);};wfProjectCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x24f))[a2_0x25d654(0x258)](a2_0x25d654(0x3b1))[a2_0x25d654(0x263)](wfProjectListAction),workflowCmd['command'](a2_0x25d654(0x327))[a2_0x25d654(0x258)](a2_0x25d654(0x192))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x5bd18d,_0x2b0215)=>{const _0x262f1b=a2_0x25d654,_0x56bbef=new WorkflowWorkflowsCommand(),_0x3fa9d0=program['opts'](),_0x29e17c=await createTDXInstance(_0x3fa9d0),_0x259d54=await _0x56bbef[_0x262f1b(0x260)]({'options':{..._0x3fa9d0,..._0x2b0215},'args':_0x5bd18d?[_0x5bd18d]:[],'tdx':_0x29e17c});process[_0x262f1b(0x36c)](_0x259d54);};workflowCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x23a))[a2_0x25d654(0x258)](a2_0x25d654(0x384))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x25d654(0x26a))[a2_0x25d654(0x258)](a2_0x25d654(0x215)),wfSessionListAction=async(_0x49375d,_0x550e0c)=>{const _0x461126=a2_0x25d654,_0x326dda=new WorkflowSessionsCommand(),_0x542587=program[_0x461126(0x3d5)](),_0x2fbd0c=await createTDXInstance(_0x542587),_0x413c71=await _0x326dda[_0x461126(0x260)]({'options':{..._0x542587,..._0x550e0c},'args':_0x49375d?[_0x49375d]:[],'tdx':_0x2fbd0c});process[_0x461126(0x36c)](_0x413c71);};wfSessionCmd[a2_0x25d654(0x25b)]('list\x20[project]')['description'](a2_0x25d654(0x1e1))[a2_0x25d654(0x1f3)](a2_0x25d654(0x309),a2_0x25d654(0x3b9))[a2_0x25d654(0x1f3)]('--from\x20<timestamp>',a2_0x25d654(0x213))[a2_0x25d654(0x1f3)](a2_0x25d654(0x236),a2_0x25d654(0x3ae))['action'](wfSessionListAction),workflowCmd['command'](a2_0x25d654(0x32e))[a2_0x25d654(0x258)](a2_0x25d654(0x34b))[a2_0x25d654(0x1f3)](a2_0x25d654(0x309),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x1fc),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x25d654(0x236),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x25d654(0x263)](wfSessionListAction);const wfAttemptListAction=async(_0x5d090d,_0x284fb3)=>{const _0x2bd67e=a2_0x25d654,_0x16b740=new WorkflowAttemptsCommand(),_0x3de0a9=program['opts'](),_0x3f5256=await createTDXInstance(_0x3de0a9),_0x1e9538=await _0x16b740['run']({'options':{..._0x3de0a9,..._0x284fb3},'args':_0x5d090d?[_0x5d090d]:[],'tdx':_0x3f5256});process[_0x2bd67e(0x36c)](_0x1e9538);},attemptCmd=workflowCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x283))[a2_0x25d654(0x258)](a2_0x25d654(0x2a7))[a2_0x25d654(0x286)]('[attempt-id]',a2_0x25d654(0x2b8))[a2_0x25d654(0x286)]('[action]','Action:\x20logs,\x20tasks,\x20kill,\x20retry')['argument'](a2_0x25d654(0x218),'Task\x20name\x20for\x20logs\x20action')[a2_0x25d654(0x1f3)](a2_0x25d654(0x36b),a2_0x25d654(0x2c1))['option'](a2_0x25d654(0x1a0),a2_0x25d654(0x2bd))['option'](a2_0x25d654(0x346),'Resume\x20from\x20specific\x20task\x20(retry)')['option'](a2_0x25d654(0x2b4),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x2b3),a2_0x25d654(0x398))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1a3),'Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x25d654(0x263)](async(_0xe0269c,_0x1fd2c3,_0x324abc,_0x10340b)=>{const _0x44f346=a2_0x25d654;if(_0xe0269c==='list'){await wfAttemptListAction(_0x1fd2c3,_0x10340b);return;}if(!_0xe0269c){attemptCmd[_0x44f346(0x3bd)]();return;}const _0x4cb19f=program[_0x44f346(0x3d5)](),_0x13013f=await createTDXInstance(_0x4cb19f);let _0x457c6e=0x0;if(!_0x1fd2c3){const _0x529e45=new WorkflowAttemptCommand();_0x457c6e=await _0x529e45[_0x44f346(0x260)]({'options':{..._0x4cb19f,..._0x10340b},'args':[_0xe0269c],'tdx':_0x13013f});}else{if(_0x1fd2c3===_0x44f346(0x332)){const _0x303e72=new WorkflowLogsCommand();_0x457c6e=await _0x303e72[_0x44f346(0x260)]({'options':{..._0x4cb19f,..._0x10340b},'args':_0x324abc?[_0xe0269c,_0x324abc]:[_0xe0269c],'tdx':_0x13013f});}else{if(_0x1fd2c3===_0x44f346(0x32b)){const _0x33fe78=new WorkflowTasksCommand();_0x457c6e=await _0x33fe78[_0x44f346(0x260)]({'options':{..._0x4cb19f,..._0x10340b},'args':[_0xe0269c],'tdx':_0x13013f});}else{if(_0x1fd2c3==='kill'){const _0x408e1d=new WorkflowKillCommand();_0x457c6e=await _0x408e1d[_0x44f346(0x260)]({'options':{..._0x4cb19f,..._0x10340b},'args':[_0xe0269c],'tdx':_0x13013f});}else{if(_0x1fd2c3===_0x44f346(0x36f)){const _0x5e2e70=new WorkflowRetryCommand();_0x457c6e=await _0x5e2e70[_0x44f346(0x260)]({'options':{..._0x4cb19f,..._0x10340b},'args':['attempt:'+_0xe0269c],'tdx':_0x13013f});}else console[_0x44f346(0x2e9)]('Unknown\x20action:\x20'+_0x1fd2c3),console[_0x44f346(0x2e9)](_0x44f346(0x330)),_0x457c6e=0x1;}}}}process[_0x44f346(0x36c)](_0x457c6e);});attemptCmd[a2_0x25d654(0x25b)]('list\x20[project]')['description'](a2_0x25d654(0x26e))['option'](a2_0x25d654(0x1a3),a2_0x25d654(0x3ad))[a2_0x25d654(0x263)](wfAttemptListAction),workflowCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x379))[a2_0x25d654(0x258)](a2_0x25d654(0x31f))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1a3),a2_0x25d654(0x3ad))[a2_0x25d654(0x263)](wfAttemptListAction),workflowCmd['command'](a2_0x25d654(0x35a))[a2_0x25d654(0x258)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x1f9),a2_0x25d654(0x39d))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2b4),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x25d654(0x263)](async(_0x47bf97,_0x422e9d)=>{const _0x2c980a=a2_0x25d654,_0x8e65b4=new WorkflowRetryCommand(),_0x5ebbb7=program[_0x2c980a(0x3d5)](),_0x65b7dd=await createTDXInstance(_0x5ebbb7),_0x27db70=await _0x8e65b4[_0x2c980a(0x260)]({'options':{..._0x5ebbb7,..._0x422e9d},'args':[_0x47bf97],'tdx':_0x65b7dd});process[_0x2c980a(0x36c)](_0x27db70);}),workflowCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x360))['description'](a2_0x25d654(0x2fd))['option'](a2_0x25d654(0x377),'Workflow\x20parameter\x20(repeatable)',(_0x18e594,_0xedb622=[])=>[..._0xedb622,_0x18e594],[])[a2_0x25d654(0x1f3)]('--session-time\x20<time>',a2_0x25d654(0x3c1))[a2_0x25d654(0x263)](async(_0x267dd3,_0x2ee098)=>{const _0x13471e=a2_0x25d654,_0x15ffc5=new WorkflowRunCommand(),_0x2c44e0=program[_0x13471e(0x3d5)](),_0x492b1e=await createTDXInstance(_0x2c44e0),_0x1209d6=await _0x15ffc5[_0x13471e(0x260)]({'options':{..._0x2c44e0,..._0x2ee098},'args':[_0x267dd3],'tdx':_0x492b1e});process[_0x13471e(0x36c)](_0x1209d6);}),workflowCmd[a2_0x25d654(0x25b)]('download\x20<project-name>\x20[output-dir]')[a2_0x25d654(0x258)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x25d654(0x1f3)](a2_0x25d654(0x3c7),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')['action'](async(_0x144d70,_0x1a18b6,_0x5f2ba7)=>{const _0x438044=a2_0x25d654,_0x3d2894=new WorkflowDownloadCommand(),_0x161496=program[_0x438044(0x3d5)](),_0x51bb50=await createTDXInstance(_0x161496),_0x21a21b=await _0x3d2894[_0x438044(0x260)]({'options':{..._0x161496,..._0x5f2ba7},'args':[_0x144d70,_0x1a18b6||'.'],'tdx':_0x51bb50});process['exit'](_0x21a21b);}),workflowCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x381))['description'](a2_0x25d654(0x3a1))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1f1),a2_0x25d654(0x1a5))[a2_0x25d654(0x1f3)](a2_0x25d654(0x3c7),a2_0x25d654(0x385))[a2_0x25d654(0x1f3)]('--skip-validation',a2_0x25d654(0x39b))[a2_0x25d654(0x263)](async(_0xeba984,_0x5e191c)=>{const _0x2cff8f=a2_0x25d654,_0x44d754=new WorkflowPushCommand(),_0x5279e6=program[_0x2cff8f(0x3d5)](),_0x5ae3a4=await createTDXInstance(_0x5279e6),_0xaaed85=await _0x44d754[_0x2cff8f(0x260)]({'options':{..._0x5279e6,..._0x5e191c},'args':_0xeba984?[_0xeba984]:[],'tdx':_0x5ae3a4});process[_0x2cff8f(0x36c)](_0xaaed85);}),workflowCmd[a2_0x25d654(0x25b)]('delete\x20<project-name-or-id>')[a2_0x25d654(0x258)](a2_0x25d654(0x345))['action'](async(_0x464057,_0x38bb10)=>{const _0x57bcf5=a2_0x25d654,_0x46442c=new WorkflowDeleteCommand(),_0x193709=program['opts'](),_0x20bd78=await createTDXInstance(_0x193709),_0x4a2607=await _0x46442c[_0x57bcf5(0x260)]({'options':{..._0x193709,..._0x38bb10},'args':[_0x464057],'tdx':_0x20bd78});process[_0x57bcf5(0x36c)](_0x4a2607);}),workflowCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x3be))[a2_0x25d654(0x258)](a2_0x25d654(0x307))[a2_0x25d654(0x1f3)](a2_0x25d654(0x206),a2_0x25d654(0x328))[a2_0x25d654(0x263)](async(_0x3375ea,_0x245294)=>{const _0x168c40=a2_0x25d654,_0x22e665=new WorkflowUseCommand(),_0x139f76=program[_0x168c40(0x3d5)](),_0x81c9a5=await createTDXInstance(_0x139f76),_0x4be55f=await _0x22e665[_0x168c40(0x260)]({'options':{..._0x139f76,..._0x245294},'args':_0x3375ea?[_0x3375ea]:[],'tdx':_0x81c9a5});process['exit'](_0x4be55f);});const wfSecretsCmd=workflowCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2cc))['description']('Manage\x20workflow\x20project\x20secrets');wfSecretsCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1ae))[a2_0x25d654(0x258)](a2_0x25d654(0x3b2))[a2_0x25d654(0x263)](async(_0x3a910e,_0x879161)=>{const _0x3f0ed4=a2_0x25d654,_0x2c374f=new WorkflowSecretsListCommand(),_0x6f74b8=program[_0x3f0ed4(0x3d5)](),_0x1e091d=await createTDXInstance(_0x6f74b8),_0x39e0c5=await _0x2c374f[_0x3f0ed4(0x260)]({'options':{..._0x6f74b8,..._0x879161},'args':_0x3a910e?[_0x3a910e]:[],'tdx':_0x1e091d});process[_0x3f0ed4(0x36c)](_0x39e0c5);}),wfSecretsCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x38f))['description'](a2_0x25d654(0x1e8))[a2_0x25d654(0x263)](async(_0x814e93,_0x5c5170)=>{const _0x649676=a2_0x25d654,_0x3391a5=new WorkflowSecretsSetCommand(),_0x5046d6=program['opts'](),_0x334091=await createTDXInstance(_0x5046d6),_0x592b7d=await _0x3391a5[_0x649676(0x260)]({'options':{..._0x5046d6,..._0x5c5170},'args':_0x814e93,'tdx':_0x334091});process[_0x649676(0x36c)](_0x592b7d);}),wfSecretsCmd[a2_0x25d654(0x25b)]('delete\x20<args...>')[a2_0x25d654(0x258)](a2_0x25d654(0x243))['option'](a2_0x25d654(0x29d),'Skip\x20confirmation\x20prompt')[a2_0x25d654(0x263)](async(_0x4b321e,_0x1573d8)=>{const _0x188ad0=a2_0x25d654,_0x432206=new WorkflowSecretsDeleteCommand(),_0x34af91=program[_0x188ad0(0x3d5)](),_0x2e91df=await createTDXInstance(_0x34af91),_0x2a8439=await _0x432206[_0x188ad0(0x260)]({'options':{..._0x34af91,..._0x1573d8},'args':_0x4b321e,'tdx':_0x2e91df});process['exit'](_0x2a8439);});const jobCmd=program['command'](a2_0x25d654(0x198))['description'](a2_0x25d654(0x2c0)),jobListAction=async _0x40d08f=>{const _0xffea58=a2_0x25d654,_0x395a63=new JobListCommand(),_0x1497b0=program[_0xffea58(0x3d5)](),_0xe38c62=await createTDXInstance(_0x1497b0),_0x340e1d=await _0x395a63[_0xffea58(0x260)]({'options':{..._0x1497b0,..._0x40d08f},'args':[],'tdx':_0xe38c62});process[_0xffea58(0x36c)](_0x340e1d);};jobCmd['command']('list')['description'](a2_0x25d654(0x3ac))[a2_0x25d654(0x1f3)](a2_0x25d654(0x309),a2_0x25d654(0x366))['action'](jobListAction),program[a2_0x25d654(0x25b)]('jobs',{'hidden':!![]})[a2_0x25d654(0x258)](a2_0x25d654(0x350))[a2_0x25d654(0x1f3)](a2_0x25d654(0x309),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x25d654(0x263)](jobListAction),jobCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2f8))[a2_0x25d654(0x258)]('Show\x20job\x20details')[a2_0x25d654(0x263)](async(_0xfc04f1,_0x1848db)=>{const _0x9e144f=a2_0x25d654,_0x1cc827=new JobShowCommand(),_0x1cbce6=program[_0x9e144f(0x3d5)](),_0x51aeb7=await createTDXInstance(_0x1cbce6),_0x3cf616=await _0x1cc827['run']({'options':{..._0x1cbce6,..._0x1848db},'args':[_0xfc04f1],'tdx':_0x51aeb7});process[_0x9e144f(0x36c)](_0x3cf616);}),jobCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x324))['description'](a2_0x25d654(0x3d2))[a2_0x25d654(0x263)](async(_0x54552b,_0x2a604e)=>{const _0x22ca59=a2_0x25d654,_0x487008=new JobKillCommand(),_0x221850=program[_0x22ca59(0x3d5)](),_0x3d3389=await createTDXInstance(_0x221850),_0x196e77=await _0x487008[_0x22ca59(0x260)]({'options':{..._0x221850,..._0x2a604e},'args':[_0x54552b],'tdx':_0x3d3389});process[_0x22ca59(0x36c)](_0x196e77);}),jobCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2ce))[a2_0x25d654(0x258)]('Submit\x20a\x20job')[a2_0x25d654(0x1f3)](a2_0x25d654(0x390),a2_0x25d654(0x34a),a2_0x25d654(0x25e))[a2_0x25d654(0x1f3)](a2_0x25d654(0x212),a2_0x25d654(0x2f9))['option'](a2_0x25d654(0x1dc),'Database\x20name\x20(default:\x20information_schema)',a2_0x25d654(0x24c))['action'](async(_0x58dc79,_0x47d9a8)=>{const _0x2ecf36=a2_0x25d654,_0x1bb57e=new JobSubmitCommand(),_0x45e224=program[_0x2ecf36(0x3d5)](),_0x502233=await createTDXInstance(_0x45e224),_0x449b6c=await _0x1bb57e[_0x2ecf36(0x260)]({'options':{..._0x45e224,..._0x47d9a8},'args':_0x58dc79?[_0x58dc79]:[],'tdx':_0x502233});process['exit'](_0x449b6c);}),jobCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1b7))[a2_0x25d654(0x258)](a2_0x25d654(0x191))[a2_0x25d654(0x263)](async(_0xc44d18,_0x17a38b)=>{const _0x29b2c1=a2_0x25d654,_0x1e2169=new JobResultCommand(),_0x309059=program['opts'](),_0x5ebf9a=await createTDXInstance(_0x309059),_0x11d9b8=await _0x1e2169[_0x29b2c1(0x260)]({'options':{..._0x309059,..._0x17a38b},'args':[_0xc44d18],'tdx':_0x5ebf9a});process[_0x29b2c1(0x36c)](_0x11d9b8);});const llmCmd=program[a2_0x25d654(0x25b)]('llm')[a2_0x25d654(0x258)](a2_0x25d654(0x1b8));llmCmd['command']('use\x20<project-name>')[a2_0x25d654(0x258)](a2_0x25d654(0x1ca))[a2_0x25d654(0x263)](async(_0x26432a,_0x2415c6)=>{const _0x5f4461=a2_0x25d654,_0x3f54a7=new LLMUseCommand(),_0x15f299=program['opts'](),_0x5ddac9=await createTDXInstance(_0x15f299),_0x7819ae=await _0x3f54a7[_0x5f4461(0x260)]({'options':{..._0x15f299,..._0x2415c6},'args':[_0x26432a],'tdx':_0x5ddac9});process['exit'](_0x7819ae);}),llmCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x228))[a2_0x25d654(0x258)](a2_0x25d654(0x1d8))[a2_0x25d654(0x263)](async _0x3a9c71=>{const _0x21eae2=a2_0x25d654,_0x4cd743=new LLMModelsCommand(),_0x408c32=program[_0x21eae2(0x3d5)](),_0xaaacec=await createTDXInstance(_0x408c32),_0x340293=await _0x4cd743['run']({'options':{..._0x408c32,..._0x3a9c71},'args':[],'tdx':_0xaaacec});process[_0x21eae2(0x36c)](_0x340293);});const projectCmd=llmCmd['command'](a2_0x25d654(0x249))[a2_0x25d654(0x258)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x423f99,_0x3ac0e2)=>{const _0x505615=a2_0x25d654,_0x2095b8=new LLMProjectsCommand(),_0x1ee34d=program[_0x505615(0x3d5)](),_0x4ddafb=await createTDXInstance(_0x1ee34d),_0x88057b=await _0x2095b8[_0x505615(0x260)]({'options':{..._0x1ee34d,..._0x3ac0e2},'args':_0x423f99?[_0x423f99]:[],'tdx':_0x4ddafb});process[_0x505615(0x36c)](_0x88057b);};projectCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x24f))['description']('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')['option'](a2_0x25d654(0x237),a2_0x25d654(0x326))['action'](llmProjectListAction),llmCmd['command']('projects\x20[pattern]')[a2_0x25d654(0x258)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x237),a2_0x25d654(0x326))[a2_0x25d654(0x263)](llmProjectListAction),projectCmd['command'](a2_0x25d654(0x314))['description'](a2_0x25d654(0x2ea))[a2_0x25d654(0x1f3)]('--description\x20<text>','Project\x20description')[a2_0x25d654(0x263)](async(_0x31218a,_0x59fd13)=>{const _0x7883f9=a2_0x25d654,_0x472c03=new LLMProjectCreateCommand(),_0x38e24a=program[_0x7883f9(0x3d5)](),_0x2dc0e3=await createTDXInstance(_0x38e24a),_0x27ff8c=await _0x472c03[_0x7883f9(0x260)]({'options':{..._0x38e24a,..._0x59fd13},'args':[_0x31218a],'tdx':_0x2dc0e3});process[_0x7883f9(0x36c)](_0x27ff8c);}),projectCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x21b))['description'](a2_0x25d654(0x2df))[a2_0x25d654(0x263)](async(_0x50e684,_0x257f02)=>{const _0xf17186=a2_0x25d654,_0xaa6ad6=new LLMProjectDeleteCommand(),_0x215a29=program['opts'](),_0x434b4e=await createTDXInstance(_0x215a29),_0x2abaa2=await _0xaa6ad6[_0xf17186(0x260)]({'options':{..._0x215a29,..._0x257f02},'args':[_0x50e684],'tdx':_0x434b4e});process[_0xf17186(0x36c)](_0x2abaa2);}),projectCmd['command'](a2_0x25d654(0x1a7))['description'](a2_0x25d654(0x238))[a2_0x25d654(0x1f3)]('-o,\x20--output\x20<folder>','Output\x20folder\x20(default:\x20{project_name}.llm)')['option'](a2_0x25d654(0x39f),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x25d654(0x263)](async(_0x173a9d,_0x32f8c1)=>{const _0x578fcc=a2_0x25d654,_0x5bce3e=new LLMProjectBackupCommand(),_0x3b65c3=program[_0x578fcc(0x3d5)](),_0x3274b0=await createTDXInstance(_0x3b65c3),_0x213470=await _0x5bce3e['run']({'options':{..._0x3b65c3,..._0x32f8c1},'args':[_0x173a9d],'tdx':_0x3274b0});process['exit'](_0x213470);}),projectCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2ae))['description']('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')['option']('--name\x20<new-name>',a2_0x25d654(0x2e7))[a2_0x25d654(0x1f3)](a2_0x25d654(0x39f),a2_0x25d654(0x193))[a2_0x25d654(0x263)](async(_0x1927e5,_0x544b8c)=>{const _0x2cec83=a2_0x25d654,_0x304579=new LLMProjectRestoreCommand(),_0x44bcbe=program[_0x2cec83(0x3d5)](),_0x11323e=await createTDXInstance(_0x44bcbe),_0xbdfa44=await _0x304579[_0x2cec83(0x260)]({'options':{..._0x44bcbe,..._0x544b8c},'args':[_0x1927e5],'tdx':_0x11323e});process['exit'](_0xbdfa44);});const llmAgentListAction=async(_0x4c5574,_0x4f9124)=>{const _0x45b783=a2_0x25d654,_0x4f5fb2=new LLMAgentsCommand(),_0x2489f7=program['opts'](),_0x9e4627=await createTDXInstance(_0x2489f7),_0x2e7151=await _0x4f5fb2[_0x45b783(0x260)]({'options':{..._0x2489f7,..._0x4f9124},'args':_0x4c5574?[_0x4c5574]:[],'tdx':_0x9e4627});process[_0x45b783(0x36c)](_0x2e7151);};llmCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2e2))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x237),a2_0x25d654(0x19b))[a2_0x25d654(0x263)](llmAgentListAction),program['command']('agents\x20[pattern]')[a2_0x25d654(0x258)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x25d654(0x1f3)]('-w,\x20--web',a2_0x25d654(0x19b))['action'](llmAgentListAction),llmCmd[a2_0x25d654(0x25b)]('history\x20[chat-id]')[a2_0x25d654(0x258)](a2_0x25d654(0x217))['option']('--last',a2_0x25d654(0x3b4))['action'](async(_0x134bb0,_0x2ef6fb)=>{const _0x60c651=a2_0x25d654,_0x48bfb3=new LLMHistoryCommand(),_0x29d633=program[_0x60c651(0x3d5)](),_0x4bbe18=await createTDXInstance(_0x29d633),_0x1c6a49=await _0x48bfb3['run']({'options':{..._0x29d633,..._0x2ef6fb},'args':_0x134bb0?[_0x134bb0]:[],'tdx':_0x4bbe18});process[_0x60c651(0x36c)](_0x1c6a49);}),llmCmd[a2_0x25d654(0x25b)]('proxy')[a2_0x25d654(0x258)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x1b2),a2_0x25d654(0x273),a2_0x25d654(0x2fc))[a2_0x25d654(0x1f3)]('--project\x20<name>',a2_0x25d654(0x3ba))[a2_0x25d654(0x1f3)](a2_0x25d654(0x205),a2_0x25d654(0x2b7))[a2_0x25d654(0x263)](async _0x5413a0=>{const _0x1dfcb4=a2_0x25d654,_0x40d0b8=new LLMProxyCommand(),_0x8642f=program['opts'](),_0x407dcb=await createTDXInstance(_0x8642f),_0x58a52f={..._0x5413a0,'port':_0x5413a0[_0x1dfcb4(0x270)]?parseInt(_0x5413a0[_0x1dfcb4(0x270)],0xa):undefined},_0x35884b=await _0x40d0b8[_0x1dfcb4(0x260)]({'options':{..._0x8642f,..._0x58a52f},'args':[],'tdx':_0x407dcb});process[_0x1dfcb4(0x36c)](_0x35884b);}),program[a2_0x25d654(0x25b)](a2_0x25d654(0x31a))[a2_0x25d654(0x323)](a2_0x25d654(0x382))[a2_0x25d654(0x258)](a2_0x25d654(0x1df))[a2_0x25d654(0x1f3)](a2_0x25d654(0x3c6),a2_0x25d654(0x3c2),'sonnet')[a2_0x25d654(0x1f3)](a2_0x25d654(0x28e),a2_0x25d654(0x2d4))[a2_0x25d654(0x1f3)](a2_0x25d654(0x19f),a2_0x25d654(0x281))[a2_0x25d654(0x1f3)](a2_0x25d654(0x3a5),a2_0x25d654(0x23f))[a2_0x25d654(0x199)]()[a2_0x25d654(0x1c4)](!![])[a2_0x25d654(0x393)](a2_0x25d654(0x25d),a2_0x25d654(0x1f7))['action'](async(_0x54b964,_0x50ac59)=>{const _0x2cd272=a2_0x25d654,_0x534027=program[_0x2cd272(0x3d5)](),_0x4f0228=Array[_0x2cd272(0x3b5)](_0x54b964)?_0x54b964:[];if(_0x4f0228[0x0]===_0x2cd272(0x353)){const _0x456008=new ClaudeStatuslineCommand(),_0x208b0c=await _0x456008[_0x2cd272(0x260)]({'options':{..._0x534027,..._0x50ac59},'args':_0x4f0228[_0x2cd272(0x1c1)](0x1),'tdx':null});process[_0x2cd272(0x36c)](_0x208b0c);}if(_0x4f0228[0x0]===_0x2cd272(0x323)){const _0x2d3556=new ClaudeUsageCommand(),_0x21e14c=await _0x2d3556[_0x2cd272(0x260)]({'options':{..._0x534027,..._0x50ac59},'args':_0x4f0228[_0x2cd272(0x1c1)](0x1),'tdx':null});process[_0x2cd272(0x36c)](_0x21e14c);}const _0x3a9148=new ClaudeCommand(),_0x50435b=await createTDXInstance(_0x534027),_0x440d87=await _0x3a9148['run']({'options':{..._0x534027,..._0x50ac59},'args':_0x4f0228,'tdx':_0x50435b});process[_0x2cd272(0x36c)](_0x440d87);}),program[a2_0x25d654(0x25b)](a2_0x25d654(0x37c))[a2_0x25d654(0x258)](a2_0x25d654(0x276))['option'](a2_0x25d654(0x206),a2_0x25d654(0x1a2))[a2_0x25d654(0x263)](async _0x29439a=>{const _0x2c1397=a2_0x25d654,_0x340abd=new ContextCommand(),_0x1087ca=program[_0x2c1397(0x3d5)](),_0x2d6ac4=await _0x340abd[_0x2c1397(0x260)]({'options':{..._0x1087ca,..._0x29439a},'args':[],'tdx':null});process[_0x2c1397(0x36c)](_0x2d6ac4);}),program[a2_0x25d654(0x25b)]('use\x20[resource]\x20[value]')[a2_0x25d654(0x258)](a2_0x25d654(0x39e))[a2_0x25d654(0x1f3)](a2_0x25d654(0x206),a2_0x25d654(0x1a2))[a2_0x25d654(0x263)](async(_0x5e475f,_0xb561f6,_0x129f40)=>{const _0x10379c=a2_0x25d654,_0x1cdcdd=new UseCommand(),_0x400bf6=program['opts'](),_0x441b38=[];if(_0x5e475f)_0x441b38[_0x10379c(0x1a9)](_0x5e475f);if(_0xb561f6)_0x441b38[_0x10379c(0x1a9)](_0xb561f6);const _0x48a22c=await _0x1cdcdd[_0x10379c(0x260)]({'options':{..._0x400bf6,..._0x129f40},'args':_0x441b38,'tdx':null});process[_0x10379c(0x36c)](_0x48a22c);}),program['command'](a2_0x25d654(0x372))[a2_0x25d654(0x258)](a2_0x25d654(0x291))[a2_0x25d654(0x1f3)](a2_0x25d654(0x37a),'Show\x20the\x20most\x20recent\x20chat')[a2_0x25d654(0x263)](async _0x93958d=>{const _0x1f907b=a2_0x25d654,_0x1ba9f3=new ChatsCommand(),_0x1b04e8=program['opts'](),_0x328b70=await createTDXInstance(_0x1b04e8),_0x29a9d9=await _0x1ba9f3[_0x1f907b(0x260)]({'options':{..._0x1b04e8,..._0x93958d},'args':[],'tdx':_0x328b70});process[_0x1f907b(0x36c)](_0x29a9d9);});const authCmd=program[a2_0x25d654(0x25b)]('auth')['description']('Authentication\x20management');async function runAuthStatusCommand(_0x22ad5c){const _0x3f4ac9=a2_0x25d654,_0x37e5a0=new AuthStatusCommand(),_0x42d59c=program[_0x3f4ac9(0x3d5)](),_0x11f302=await createTDXInstance(_0x42d59c),_0x5b3f0d=await _0x37e5a0[_0x3f4ac9(0x260)]({'options':{..._0x42d59c,..._0x22ad5c},'args':[],'tdx':_0x11f302});process[_0x3f4ac9(0x36c)](_0x5b3f0d);}authCmd[a2_0x25d654(0x263)](runAuthStatusCommand),authCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1e0))[a2_0x25d654(0x258)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x25d654(0x263)](runAuthStatusCommand),authCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x329))['description'](a2_0x25d654(0x347))['addHelpText'](a2_0x25d654(0x25d),a2_0x25d654(0x340))['action'](async _0x17e79a=>{const _0x46aa53=a2_0x25d654,_0x4f6aca=new AuthSetupCommand(),_0x1fd978=program[_0x46aa53(0x3d5)](),_0x4a3303=await createTDXInstance(_0x1fd978),_0x3b161d=await _0x4f6aca['run']({'options':{..._0x1fd978,..._0x17e79a},'args':[],'tdx':_0x4a3303});process[_0x46aa53(0x36c)](_0x3b161d);}),authCmd['command']('clear')[a2_0x25d654(0x258)](a2_0x25d654(0x2d0))[a2_0x25d654(0x393)](a2_0x25d654(0x25d),'\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0x25d654(0x263)](async _0x3a669c=>{const _0x580418=a2_0x25d654,_0x52a80e=new AuthClearCommand(),_0x386ea5=program[_0x580418(0x3d5)](),_0x534d47=await _0x52a80e[_0x580418(0x260)]({'options':{..._0x386ea5,..._0x3a669c},'args':[],'tdx':null});process[_0x580418(0x36c)](_0x534d47);});const userCmd=program[a2_0x25d654(0x25b)](a2_0x25d654(0x3ab))[a2_0x25d654(0x258)](a2_0x25d654(0x38c)),userListAction=async _0x406b91=>{const _0x262748=a2_0x25d654,_0x30bb60=new UserListCommand(),_0x281dcc=program[_0x262748(0x3d5)](),_0x472e00=await createTDXInstance(_0x281dcc),_0x2453ff=await _0x30bb60[_0x262748(0x260)]({'options':{..._0x281dcc,..._0x406b91},'args':[],'tdx':_0x472e00});process['exit'](_0x2453ff);};userCmd[a2_0x25d654(0x263)](async _0x137536=>{const _0x444ad8=a2_0x25d654,_0xca9b0a=new UserCommand(),_0x1785a9=program[_0x444ad8(0x3d5)](),_0x199a2f=await createTDXInstance(_0x1785a9),_0x29c012=await _0xca9b0a['run']({'options':{..._0x1785a9,..._0x137536},'args':[],'tdx':_0x199a2f});process['exit'](_0x29c012);}),userCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x352))[a2_0x25d654(0x258)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x25d654(0x263)](userListAction),program[a2_0x25d654(0x25b)](a2_0x25d654(0x320))[a2_0x25d654(0x258)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x25d654(0x263)](userListAction),program['command'](a2_0x25d654(0x19e))[a2_0x25d654(0x258)]('List\x20all\x20available\x20profiles')[a2_0x25d654(0x263)](async _0x470f7=>{const _0x5dd9db=a2_0x25d654,_0x5dba5b=new ProfilesCommand(),_0x588e11=program[_0x5dd9db(0x3d5)](),_0x3ac3f7=await _0x5dba5b[_0x5dd9db(0x260)]({'options':{..._0x588e11,..._0x470f7},'args':[],'tdx':null});process[_0x5dd9db(0x36c)](_0x3ac3f7);});const engageCmd=program[a2_0x25d654(0x25b)](a2_0x25d654(0x29b))[a2_0x25d654(0x258)](a2_0x25d654(0x36e)),createEngageAction=_0x4adc7a=>{return async(_0x32f6bf,_0x31e855)=>{const _0x387d27=a2_0x941b,_0x57cf9e=new _0x4adc7a(),_0x1711a3=program['opts'](),_0x1771f2=await createTDXInstance(_0x1711a3),_0x1a19f0=await _0x57cf9e[_0x387d27(0x260)]({'options':{..._0x1711a3,..._0x31e855},'args':[_0x32f6bf],'tdx':_0x1771f2});process[_0x387d27(0x36c)](_0x1a19f0);};},createEngageNoArgAction=_0x14131b=>{return async _0x4d399e=>{const _0x5e0d00=a2_0x941b,_0x355152=new _0x14131b(),_0x202a77=program[_0x5e0d00(0x3d5)](),_0x2b06e5=await createTDXInstance(_0x202a77),_0x490350=await _0x355152[_0x5e0d00(0x260)]({'options':{..._0x202a77,..._0x4d399e},'args':[],'tdx':_0x2b06e5});process[_0x5e0d00(0x36c)](_0x490350);};},campaignCmd=engageCmd['command'](a2_0x25d654(0x2fe))[a2_0x25d654(0x258)](a2_0x25d654(0x26f)),campaignListAction=async(_0x6dff58,_0x2f8fa7)=>{const _0x367d74=a2_0x25d654,_0x34a06e=new EngageCampaignsCommand(),_0x27ed3e=program[_0x367d74(0x3d5)](),_0x1fece2=await createTDXInstance(_0x27ed3e),_0x4aee4f=await _0x34a06e[_0x367d74(0x260)]({'options':{..._0x27ed3e,..._0x2f8fa7},'args':_0x6dff58?[_0x6dff58]:[],'tdx':_0x1fece2});process[_0x367d74(0x36c)](_0x4aee4f);};campaignCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x24f))[a2_0x25d654(0x258)](a2_0x25d654(0x29c))['option']('--type\x20<type>',a2_0x25d654(0x3b0))[a2_0x25d654(0x1f3)]('--status\x20<status>',a2_0x25d654(0x2e5))[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),a2_0x25d654(0x26c))[a2_0x25d654(0x263)](campaignListAction),engageCmd['command'](a2_0x25d654(0x280))[a2_0x25d654(0x258)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x368),a2_0x25d654(0x3b0))[a2_0x25d654(0x1f3)](a2_0x25d654(0x309),a2_0x25d654(0x2e5))[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),a2_0x25d654(0x26c))[a2_0x25d654(0x263)](campaignListAction),campaignCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1cc))[a2_0x25d654(0x258)](a2_0x25d654(0x2a5))[a2_0x25d654(0x1f3)]('--workspace\x20<name>',a2_0x25d654(0x26c))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2c9),a2_0x25d654(0x190))[a2_0x25d654(0x263)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x343))['description'](a2_0x25d654(0x36d))['requiredOption'](a2_0x25d654(0x1f1),a2_0x25d654(0x362))['requiredOption'](a2_0x25d654(0x368),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),a2_0x25d654(0x2c6))['option'](a2_0x25d654(0x3b6),a2_0x25d654(0x1fe))['option'](a2_0x25d654(0x221),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x34f),a2_0x25d654(0x374))[a2_0x25d654(0x1f3)]('--json-columns\x20<cols>',a2_0x25d654(0x38a))[a2_0x25d654(0x1f3)]('--start-at\x20<datetime>',a2_0x25d654(0x2ad))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1d6),a2_0x25d654(0x2f4))[a2_0x25d654(0x263)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x25d654(0x1c9))[a2_0x25d654(0x258)]('Update\x20a\x20campaign')[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),a2_0x25d654(0x26c))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1f1),a2_0x25d654(0x241))[a2_0x25d654(0x1f3)](a2_0x25d654(0x3b6),a2_0x25d654(0x1fe))[a2_0x25d654(0x1f3)]('--segment\x20<path>',a2_0x25d654(0x1c7))[a2_0x25d654(0x1f3)](a2_0x25d654(0x34f),a2_0x25d654(0x374))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2e8),a2_0x25d654(0x38a))[a2_0x25d654(0x1f3)]('--start-at\x20<datetime>',a2_0x25d654(0x2ad))[a2_0x25d654(0x1f3)]('--timezone\x20<tz>',a2_0x25d654(0x2f4))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x25d654(0x25b)]('delete\x20<name-or-id>')[a2_0x25d654(0x258)](a2_0x25d654(0x399))[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),'Workspace\x20name')['option'](a2_0x25d654(0x37f),a2_0x25d654(0x19c))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x25d654(0x25b)]('launch\x20<name-or-id>')['description'](a2_0x25d654(0x2af))[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),'Workspace\x20name')[a2_0x25d654(0x263)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x25d654(0x378))['description'](a2_0x25d654(0x21d))['option'](a2_0x25d654(0x23c),a2_0x25d654(0x26c))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x25d654(0x25b)]('resume\x20<name-or-id>')[a2_0x25d654(0x258)](a2_0x25d654(0x2a6))[a2_0x25d654(0x1f3)]('--workspace\x20<name>',a2_0x25d654(0x26c))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x25d654(0x1af))[a2_0x25d654(0x258)](a2_0x25d654(0x22a))[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),a2_0x25d654(0x26c))[a2_0x25d654(0x263)](createEngageAction(EngageCampaignDuplicateCommand));function a2_0x941b(_0x5ebe52,_0x3870d9){_0x5ebe52=_0x5ebe52-0x190;const _0x22a541=a2_0x22a5();let _0x941b8=_0x22a541[_0x5ebe52];return _0x941b8;}const templateCmd=engageCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2f2))['description'](a2_0x25d654(0x354)),templateListAction=async(_0x1bb270,_0x1db79e)=>{const _0x64d396=a2_0x25d654,_0x2c44e8=new EngageTemplatesCommand(),_0x27039a=program['opts'](),_0x3c691a=await createTDXInstance(_0x27039a),_0x403b86=await _0x2c44e8['run']({'options':{..._0x27039a,..._0x1db79e},'args':_0x1bb270?[_0x1bb270]:[],'tdx':_0x3c691a});process[_0x64d396(0x36c)](_0x403b86);};templateCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x24f))['description'](a2_0x25d654(0x22d))[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),a2_0x25d654(0x26c))[a2_0x25d654(0x263)](templateListAction),engageCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x31e))[a2_0x25d654(0x258)](a2_0x25d654(0x1d5))[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),a2_0x25d654(0x26c))[a2_0x25d654(0x263)](templateListAction),templateCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1cc))[a2_0x25d654(0x258)]('Show\x20email\x20template\x20details')['option']('--workspace\x20<name>',a2_0x25d654(0x26c))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2c9),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x25d654(0x263)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x343))['description'](a2_0x25d654(0x1f4))[a2_0x25d654(0x365)](a2_0x25d654(0x1f1),a2_0x25d654(0x1e2))[a2_0x25d654(0x365)]('--subject\x20<subject>','Email\x20subject\x20template')[a2_0x25d654(0x365)](a2_0x25d654(0x2eb),a2_0x25d654(0x333))['option'](a2_0x25d654(0x23c),'Workspace\x20name\x20(required)')[a2_0x25d654(0x1f3)](a2_0x25d654(0x312),a2_0x25d654(0x35f))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2da),a2_0x25d654(0x2d5))[a2_0x25d654(0x263)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1c9))[a2_0x25d654(0x258)](a2_0x25d654(0x1da))[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),'Workspace\x20name')[a2_0x25d654(0x1f3)](a2_0x25d654(0x1f1),'New\x20template\x20name')[a2_0x25d654(0x1f3)]('--subject\x20<subject>',a2_0x25d654(0x3bc))[a2_0x25d654(0x1f3)](a2_0x25d654(0x2eb),'HTML\x20template\x20content')[a2_0x25d654(0x1f3)]('--plaintext\x20<text>',a2_0x25d654(0x35f))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1cd))['description'](a2_0x25d654(0x325))[a2_0x25d654(0x1f3)](a2_0x25d654(0x23c),'Workspace\x20name')[a2_0x25d654(0x1f3)](a2_0x25d654(0x37f),a2_0x25d654(0x19c))[a2_0x25d654(0x263)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x371))[a2_0x25d654(0x258)]('Workspace\x20management'),workspaceListAction=async(_0x31f1f7,_0x161ab7)=>{const _0x186d63=a2_0x25d654,_0x59cf90=new EngageWorkspacesCommand(),_0x32f1ec=program[_0x186d63(0x3d5)](),_0x1ab581=await createTDXInstance(_0x32f1ec),_0x36953e=await _0x59cf90['run']({'options':{..._0x32f1ec,..._0x161ab7},'args':_0x31f1f7?[_0x31f1f7]:[],'tdx':_0x1ab581});process[_0x186d63(0x36c)](_0x36953e);};workspaceCmd['command'](a2_0x25d654(0x24f))['description'](a2_0x25d654(0x3ca))[a2_0x25d654(0x263)](workspaceListAction),engageCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x34c))[a2_0x25d654(0x258)](a2_0x25d654(0x248))[a2_0x25d654(0x263)](workspaceListAction),workspaceCmd['command'](a2_0x25d654(0x1cc))[a2_0x25d654(0x258)]('Show\x20workspace\x20details')[a2_0x25d654(0x1f3)](a2_0x25d654(0x2c9),a2_0x25d654(0x190))[a2_0x25d654(0x263)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x25d654(0x343))[a2_0x25d654(0x258)](a2_0x25d654(0x34e))[a2_0x25d654(0x365)](a2_0x25d654(0x1f1),'Workspace\x20name')[a2_0x25d654(0x1f3)]('--description\x20<desc>',a2_0x25d654(0x303))[a2_0x25d654(0x263)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1c9))[a2_0x25d654(0x258)]('Update\x20a\x20workspace')['option'](a2_0x25d654(0x1f1),a2_0x25d654(0x375))[a2_0x25d654(0x1f3)](a2_0x25d654(0x3b6),a2_0x25d654(0x303))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x25d654(0x25b)]('delete\x20<name-or-id>')['description'](a2_0x25d654(0x1ba))[a2_0x25d654(0x1f3)](a2_0x25d654(0x37f),a2_0x25d654(0x19c))[a2_0x25d654(0x263)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x31d))[a2_0x25d654(0x258)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x25d654(0x25b)](a2_0x25d654(0x1bd))[a2_0x25d654(0x258)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0xe095d=>{const _0x1bef73=a2_0x25d654,_0x3cd0a7=new ConnectionListCommand(),_0x1bbb1c=program[_0x1bef73(0x3d5)](),_0x37434d=await createTDXInstance(_0x1bbb1c),_0x37060d=await _0x3cd0a7[_0x1bef73(0x260)]({'options':{..._0x1bbb1c,..._0xe095d},'args':[],'tdx':_0x37434d});process[_0x1bef73(0x36c)](_0x37060d);};connectionCmd['command'](a2_0x25d654(0x352))[a2_0x25d654(0x258)](a2_0x25d654(0x25f))[a2_0x25d654(0x263)](connectionListAction),program[a2_0x25d654(0x25b)](a2_0x25d654(0x2d3),{'hidden':!![]})[a2_0x25d654(0x258)](a2_0x25d654(0x26d))[a2_0x25d654(0x263)](connectionListAction),connectionCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1bb))[a2_0x25d654(0x258)](a2_0x25d654(0x290))[a2_0x25d654(0x263)](async(_0x5e8bfe,_0x20b1ae)=>{const _0x5b5c6a=a2_0x25d654,_0x556d94=new ConnectionShowCommand(),_0x24c359=program['opts'](),_0x121aec=await createTDXInstance(_0x24c359),_0x19042e=await _0x556d94[_0x5b5c6a(0x260)]({'options':{..._0x24c359,..._0x20b1ae},'args':[_0x5e8bfe],'tdx':_0x121aec});process['exit'](_0x19042e);}),connectionCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x244))[a2_0x25d654(0x258)](a2_0x25d654(0x2de))[a2_0x25d654(0x263)](async(_0x2f9a79,_0x3f4beb)=>{const _0x52ed57=a2_0x25d654,_0x57a456=new ConnectionSchemaCommand(),_0x374596=program[_0x52ed57(0x3d5)](),_0x169fd6=await createTDXInstance(_0x374596),_0x42bf0b=await _0x57a456[_0x52ed57(0x260)]({'options':{..._0x374596,..._0x3f4beb},'args':[_0x2f9a79],'tdx':_0x169fd6});process['exit'](_0x42bf0b);}),connectionCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x285))[a2_0x25d654(0x258)](a2_0x25d654(0x2ba))[a2_0x25d654(0x263)](async _0x53d27f=>{const _0x38bb3a=a2_0x25d654,_0x141fb5=new ConnectionTypesCommand(),_0x375f27=program['opts'](),_0x2c564d=await createTDXInstance(_0x375f27),_0x38e534=await _0x141fb5[_0x38bb3a(0x260)]({'options':{..._0x375f27,..._0x53d27f},'args':[],'tdx':_0x2c564d});process[_0x38bb3a(0x36c)](_0x38e534);}),connectionCmd[a2_0x25d654(0x25b)]('settings\x20<type>')[a2_0x25d654(0x258)](a2_0x25d654(0x293))[a2_0x25d654(0x263)](async(_0x4862d4,_0x225cfa)=>{const _0x41188b=a2_0x25d654,_0x111362=new ConnectionSettingsCommand(),_0x4d83bb=program[_0x41188b(0x3d5)](),_0x300635=await createTDXInstance(_0x4d83bb),_0x2c5ca4=await _0x111362['run']({'options':{..._0x4d83bb,..._0x225cfa},'args':[_0x4862d4],'tdx':_0x300635});process['exit'](_0x2c5ca4);});const journeyCmd=program[a2_0x25d654(0x25b)](a2_0x25d654(0x269))[a2_0x25d654(0x258)](a2_0x25d654(0x19a));journeyCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x24f))[a2_0x25d654(0x258)](a2_0x25d654(0x2ac))[a2_0x25d654(0x1f3)](a2_0x25d654(0x237),a2_0x25d654(0x306))[a2_0x25d654(0x263)](async(_0x3ee224,_0x3694a6)=>{const _0x4e5efd=a2_0x25d654,_0x58d6a1=new JourneyListCommand(),_0x1bc495=program[_0x4e5efd(0x3d5)](),_0x34b1a2=await createTDXInstance(_0x1bc495),_0x449efa=await _0x58d6a1[_0x4e5efd(0x260)]({'options':{..._0x1bc495,..._0x3694a6},'args':_0x3ee224?[_0x3ee224]:[],'tdx':_0x34b1a2});process[_0x4e5efd(0x36c)](_0x449efa);}),journeyCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x294))[a2_0x25d654(0x258)](a2_0x25d654(0x3cb))[a2_0x25d654(0x1f3)](a2_0x25d654(0x237),a2_0x25d654(0x38b))['option'](a2_0x25d654(0x2f1),a2_0x25d654(0x229))[a2_0x25d654(0x263)](async(_0x50b449,_0xc00f6e)=>{const _0x4a1280=a2_0x25d654,_0xe2f9c=new JourneyViewCommand(),_0x34a97b=program[_0x4a1280(0x3d5)](),_0x56da9c=await createTDXInstance(_0x34a97b),_0xbd8d51=await _0xe2f9c[_0x4a1280(0x260)]({'options':{..._0x34a97b,..._0xc00f6e},'args':[_0x50b449],'tdx':_0x56da9c});process[_0x4a1280(0x36c)](_0xbd8d51);}),journeyCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1c6))['description'](a2_0x25d654(0x295))[a2_0x25d654(0x1f3)](a2_0x25d654(0x1ab),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x25d654(0x263)](async(_0x8d20e2,_0x5a823f)=>{const _0x3d8883=a2_0x25d654,_0x3c90cc=new JourneyStatsCommand(),_0x934d76=program[_0x3d8883(0x3d5)](),_0x1b4c2d=await createTDXInstance(_0x934d76),_0x17ba7f=await _0x3c90cc[_0x3d8883(0x260)]({'options':{..._0x934d76,..._0x5a823f},'args':[_0x8d20e2],'tdx':_0x1b4c2d});process['exit'](_0x17ba7f);}),journeyCmd['command'](a2_0x25d654(0x257))['description'](a2_0x25d654(0x2b0))[a2_0x25d654(0x263)](async(_0x5a166c,_0x26078b)=>{const _0x546e44=a2_0x25d654,_0x5ef294=new JourneyPauseCommand(),_0x4421e2=program['opts'](),_0x4128fa=await createTDXInstance(_0x4421e2),_0x3dfc37=await _0x5ef294[_0x546e44(0x260)]({'options':{..._0x4421e2,..._0x26078b},'args':[_0x5a166c],'tdx':_0x4128fa});process[_0x546e44(0x36c)](_0x3dfc37);}),journeyCmd['command'](a2_0x25d654(0x376))['description'](a2_0x25d654(0x27a))[a2_0x25d654(0x263)](async(_0x270236,_0x2dc5b8)=>{const _0x5e9818=a2_0x25d654,_0x1be181=new JourneyResumeCommand(),_0x2d8cf3=program[_0x5e9818(0x3d5)](),_0x137c4d=await createTDXInstance(_0x2d8cf3),_0x5ab9a4=await _0x1be181[_0x5e9818(0x260)]({'options':{..._0x2d8cf3,..._0x2dc5b8},'args':[_0x270236],'tdx':_0x137c4d});process[_0x5e9818(0x36c)](_0x5ab9a4);}),journeyCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x367))[a2_0x25d654(0x258)](a2_0x25d654(0x2e3))[a2_0x25d654(0x1f3)](a2_0x25d654(0x29d),'Skip\x20confirmation\x20prompt')[a2_0x25d654(0x1f3)](a2_0x25d654(0x39f),a2_0x25d654(0x308))[a2_0x25d654(0x263)](async(_0x168044,_0x237df7)=>{const _0x3a98eb=a2_0x25d654,_0x16b785=new JourneyPullCommand(),_0x5202ed=program[_0x3a98eb(0x3d5)](),_0xd6e96e=await createTDXInstance(_0x5202ed),_0x4e50eb=await _0x16b785[_0x3a98eb(0x260)]({'options':{..._0x5202ed,..._0x237df7},'args':_0x168044?[_0x168044]:[],'tdx':_0xd6e96e});process[_0x3a98eb(0x36c)](_0x4e50eb);}),journeyCmd[a2_0x25d654(0x25b)]('push\x20[target]')[a2_0x25d654(0x258)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')['action'](async(_0x882e42,_0x3568d6)=>{const _0x3016e6=a2_0x25d654,_0x3b4119=new JourneyPushCommand(),_0x3a3379=program[_0x3016e6(0x3d5)](),_0x3e9e7f=await createTDXInstance(_0x3a3379),_0x5b7220=await _0x3b4119[_0x3016e6(0x260)]({'options':{..._0x3a3379,..._0x3568d6},'args':_0x882e42?[_0x882e42]:[],'tdx':_0x3e9e7f});process[_0x3016e6(0x36c)](_0x5b7220);}),journeyCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2ab))['description'](a2_0x25d654(0x253))[a2_0x25d654(0x263)](async(_0xe95a14,_0x465ea7)=>{const _0xba1b44=a2_0x25d654,_0x205f4d=new JourneyValidateCommand(),_0x30e6b4=program[_0xba1b44(0x3d5)](),_0x133103=await createTDXInstance(_0x30e6b4),_0x151ec9=await _0x205f4d[_0xba1b44(0x260)]({'options':{..._0x30e6b4,..._0x465ea7},'args':_0xe95a14?[_0xe95a14]:[],'tdx':_0x133103});process[_0xba1b44(0x36c)](_0x151ec9);});const agentSyncCmd=program['command']('agent')['description'](a2_0x25d654(0x364));agentSyncCmd['command'](a2_0x25d654(0x1db))['description'](a2_0x25d654(0x30c))[a2_0x25d654(0x1f3)](a2_0x25d654(0x20d),'Output\x20directory')[a2_0x25d654(0x1f3)](a2_0x25d654(0x222),a2_0x25d654(0x2f3))['action'](async(_0x426292,_0x41d32d,_0x58dbd3)=>{const _0x142ebd=a2_0x25d654,_0x546f3a=new AgentPullCommand(),_0x54da1e=program[_0x142ebd(0x3d5)](),_0x5ac830=await createTDXInstance(_0x54da1e),_0xf9dbfc=[];if(_0x426292)_0xf9dbfc[_0x142ebd(0x1a9)](_0x426292);if(_0x41d32d)_0xf9dbfc['push'](_0x41d32d);const _0x2676cf=await _0x546f3a['run']({'options':{..._0x54da1e,..._0x58dbd3},'args':_0xf9dbfc,'tdx':_0x5ac830});process['exit'](_0x2676cf);}),agentSyncCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x1a6))[a2_0x25d654(0x258)](a2_0x25d654(0x32f))['option'](a2_0x25d654(0x222),a2_0x25d654(0x369))['action'](async(_0x1c7c23,_0x25826d)=>{const _0x256d3f=a2_0x25d654,_0x5cb7a6=new AgentPushCommand(),_0x30cc2a=program[_0x256d3f(0x3d5)](),_0x146003=await createTDXInstance(_0x30cc2a),_0x307766=await _0x5cb7a6[_0x256d3f(0x260)]({'options':{..._0x30cc2a,..._0x25826d},'args':_0x1c7c23?[_0x1c7c23]:[],'tdx':_0x146003});process[_0x256d3f(0x36c)](_0x307766);}),agentSyncCmd[a2_0x25d654(0x25b)]('clone\x20[source]')[a2_0x25d654(0x258)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')['option'](a2_0x25d654(0x2aa),a2_0x25d654(0x296))[a2_0x25d654(0x263)](async(_0x1a4dd0,_0x17b272)=>{const _0x421b04=a2_0x25d654,_0x437ea5=new AgentCloneCommand(),_0x187114=program['opts'](),_0x54122f=await createTDXInstance(_0x187114),_0x468d46=await _0x437ea5[_0x421b04(0x260)]({'options':{..._0x187114,..._0x17b272},'args':_0x1a4dd0?[_0x1a4dd0]:[],'tdx':_0x54122f});process[_0x421b04(0x36c)](_0x468d46);}),agentSyncCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x24f))['description'](a2_0x25d654(0x28c))[a2_0x25d654(0x1f3)]('-w,\x20--web','Show\x20agent\x20chat\x20URLs')[a2_0x25d654(0x263)](llmAgentListAction),agentSyncCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x32a))[a2_0x25d654(0x258)](a2_0x25d654(0x341))[a2_0x25d654(0x263)](async(_0x4b4f54,_0x29ac55)=>{const _0x307f0c=a2_0x25d654,_0x43383d=new LLMAgentShowCommand(),_0xec2592=program[_0x307f0c(0x3d5)](),_0x3d8a90=await createTDXInstance(_0xec2592),_0x2daf9d=await _0x43383d[_0x307f0c(0x260)]({'options':{..._0xec2592,..._0x29ac55},'args':[_0x4b4f54],'tdx':_0x3d8a90});process['exit'](_0x2daf9d);}),agentSyncCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x314))[a2_0x25d654(0x258)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x25d654(0x1f3)](a2_0x25d654(0x2cf),a2_0x25d654(0x30a))['option'](a2_0x25d654(0x3c6),a2_0x25d654(0x1dd),a2_0x25d654(0x33d))[a2_0x25d654(0x1f3)](a2_0x25d654(0x310),a2_0x25d654(0x38d))['option']('--max-tool-iterations\x20<n>',a2_0x25d654(0x25c),'4')[a2_0x25d654(0x1f3)]('--temperature\x20<n>',a2_0x25d654(0x194),'0.7')['action'](async(_0x2f7163,_0x8738c2)=>{const _0x13f406=a2_0x25d654,_0x4868dc=new LLMAgentCreateCommand(),_0x468ee3=program[_0x13f406(0x3d5)](),_0x5121a3=await createTDXInstance(_0x468ee3),_0x475f87=await _0x4868dc[_0x13f406(0x260)]({'options':{..._0x468ee3,..._0x8738c2},'args':[_0x2f7163],'tdx':_0x5121a3});process[_0x13f406(0x36c)](_0x475f87);}),agentSyncCmd[a2_0x25d654(0x25b)](a2_0x25d654(0x2f5))[a2_0x25d654(0x258)]('Update\x20an\x20existing\x20agent')[a2_0x25d654(0x1f3)](a2_0x25d654(0x2ca),a2_0x25d654(0x23b))[a2_0x25d654(0x1f3)](a2_0x25d654(0x207),a2_0x25d654(0x304))[a2_0x25d654(0x1f3)](a2_0x25d654(0x201),'Agent\x20description')['option'](a2_0x25d654(0x310),a2_0x25d654(0x38d))[a2_0x25d654(0x263)](async(_0x28206e,_0xb3ba43)=>{const _0x55a60b=a2_0x25d654,_0x3dd057=new LLMAgentUpdateCommand(),_0x4c659e=program[_0x55a60b(0x3d5)](),_0x1d7d8a=await createTDXInstance(_0x4c659e),_0x1249da=await _0x3dd057[_0x55a60b(0x260)]({'options':{..._0x4c659e,..._0xb3ba43},'args':[_0x28206e],'tdx':_0x1d7d8a});process['exit'](_0x1249da);}),agentSyncCmd['command']('delete\x20<agent-name>')[a2_0x25d654(0x258)](a2_0x25d654(0x380))['action'](async(_0x1107b4,_0x5be1d0)=>{const _0x4ecabb=a2_0x25d654,_0x70d032=new LLMAgentDeleteCommand(),_0xc0f03a=program[_0x4ecabb(0x3d5)](),_0x3b7917=await createTDXInstance(_0xc0f03a),_0x56dec4=await _0x70d032[_0x4ecabb(0x260)]({'options':{..._0xc0f03a,..._0x5be1d0},'args':[_0x1107b4],'tdx':_0x3b7917});process[_0x4ecabb(0x36c)](_0x56dec4);});export{program};export function runCLI(){const _0x3eddbb=a2_0x25d654;program['parse'](process['argv']);!process['argv'][_0x3eddbb(0x1c1)](0x2)[_0x3eddbb(0x363)]&&program[_0x3eddbb(0x278)]();const _0x3f3c43=packageJson['version'];process['stderr'][_0x3eddbb(0x3bf)]&&process[_0x3eddbb(0x1b6)][_0x3eddbb(0x363)]>0x2&&!_0x3f3c43[_0x3eddbb(0x3cd)](_0x3eddbb(0x336))&&checkForUpdate(_0x3f3c43)[_0x3eddbb(0x27e)](_0xdacd11=>{_0xdacd11&&displayUpdateNotification(_0xdacd11);})[_0x3eddbb(0x2e6)](()=>{});}
|