@treasuredata/tdx 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +2 -2
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/client/cdp-api-client.js +1 -1
- package/dist/client/engage-api-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-api-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-api-client.d.ts +2 -0
- package/dist/client/td-api-client.d.ts.map +1 -1
- package/dist/client/td-api-client.js +1 -1
- package/dist/client/td-api-client.js.map +1 -1
- package/dist/client/trino-api-client.js +1 -1
- package/dist/client/workflow-client.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.d.ts.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +1 -1
- package/dist/commands/claude-statusline-command.d.ts +1 -1
- package/dist/commands/claude-statusline-command.d.ts.map +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-statusline-command.js.map +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/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.d.ts +26 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.d.ts +20 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/agent-ref-parser.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/chat-cache.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/fields-display.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/llm-backup-utils.js +1 -1
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/model-factors.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/segment-path-parser.js +1 -1
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sql-parser.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-config.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/tree-formatter.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function
|
|
2
|
+
function a0_0x1ee4(_0x17af14,_0x48806e){_0x17af14=_0x17af14-0x80;var _0x1dc083=a0_0x1dc0();var _0x1ee4be=_0x1dc083[_0x17af14];return _0x1ee4be;}(function(_0x167c26,_0x59f5c2){var _0x4c0c15=a0_0x1ee4,_0x3ef0a7=_0x167c26();while(!![]){try{var _0x56f352=parseInt(_0x4c0c15(0x83))/0x1*(parseInt(_0x4c0c15(0x85))/0x2)+-parseInt(_0x4c0c15(0x80))/0x3+-parseInt(_0x4c0c15(0x82))/0x4+parseInt(_0x4c0c15(0x88))/0x5*(parseInt(_0x4c0c15(0x89))/0x6)+-parseInt(_0x4c0c15(0x87))/0x7*(parseInt(_0x4c0c15(0x86))/0x8)+-parseInt(_0x4c0c15(0x84))/0x9*(parseInt(_0x4c0c15(0x8b))/0xa)+parseInt(_0x4c0c15(0x8a))/0xb*(parseInt(_0x4c0c15(0x81))/0xc);if(_0x56f352===_0x59f5c2)break;else _0x3ef0a7['push'](_0x3ef0a7['shift']());}catch(_0x5a771f){_0x3ef0a7['push'](_0x3ef0a7['shift']());}}}(a0_0x1dc0,0x4a2de));import{runCLI}from'./cli.js';runCLI();function a0_0x1dc0(){var _0x25ed40=['9kGtzpu','4rDlEwf','442176TcUdnM','63bcZAkN','155bZGFhz','115284YDyUCw','5555kwGBtj','6019170wRhePV','1511412wXSZns','25596gqrnnb','1218400jfWEYX','269404KuBWFp'];a0_0x1dc0=function(){return _0x25ed40;};return a0_0x1dc0();}
|
package/dist/build-info.json
CHANGED
package/dist/cli-categories.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x14a2c9=a1_0x1d0f;(function(_0x267ff6,_0x381943){const _0x5a6857=a1_0x1d0f,_0x4408dc=_0x267ff6();while(!![]){try{const _0xf334a5=parseInt(_0x5a6857(0xda))/0x1*(-parseInt(_0x5a6857(0xec))/0x2)+parseInt(_0x5a6857(0xd9))/0x3*(parseInt(_0x5a6857(0xde))/0x4)+-parseInt(_0x5a6857(0xdf))/0x5*(parseInt(_0x5a6857(0xe9))/0x6)+-parseInt(_0x5a6857(0xcf))/0x7*(-parseInt(_0x5a6857(0xe6))/0x8)+parseInt(_0x5a6857(0xd3))/0x9+-parseInt(_0x5a6857(0xdc))/0xa+parseInt(_0x5a6857(0xe0))/0xb*(parseInt(_0x5a6857(0xd7))/0xc);if(_0xf334a5===_0x381943)break;else _0x4408dc['push'](_0x4408dc['shift']());}catch(_0x33731a){_0x4408dc['push'](_0x4408dc['shift']());}}}(a1_0x2c73,0x6704b));function a1_0x1d0f(_0x2525c8,_0x40b751){_0x2525c8=_0x2525c8-0xcf;const _0x2c73a0=a1_0x2c73();let _0x1d0f61=_0x2c73a0[_0x2525c8];return _0x1d0f61;}import a1_0x3659a3 from'chalk';function a1_0x2c73(){const _0x4ed05d=['user','4xszrrX','5PDyAhl','11edkkIe','job','query','Data','Context','parent-segment','17240FujXui','connection','api','3369774eWJHBA','green','show','33094LZKswo','table','cyan','yellow','use','workflow','CDP','llm','segment','chat','2128ddWOwC','Utilities','users','engage','57600UYxglG','chats','database','blue','13095708QGWjnH','profiles','616563tdEKJA','11tPhrEX','magenta','7927410EOpEvT'];a1_0x2c73=function(){return _0x4ed05d;};return a1_0x2c73();}export const COMMAND_CATEGORIES=[{'name':a1_0x14a2c9(0xe3),'colorFn':a1_0x3659a3[a1_0x14a2c9(0xd6)],'commands':[a1_0x14a2c9(0xd5),a1_0x14a2c9(0xed),a1_0x14a2c9(0xeb),'describe',a1_0x14a2c9(0xe2),a1_0x14a2c9(0xe1),a1_0x14a2c9(0xf1)]},{'name':a1_0x14a2c9(0xf2),'colorFn':a1_0x3659a3[a1_0x14a2c9(0xdb)],'commands':[a1_0x14a2c9(0xf4),a1_0x14a2c9(0xe5),'activations',a1_0x14a2c9(0xd2),a1_0x14a2c9(0xe7)]},{'name':'AI','colorFn':a1_0x3659a3[a1_0x14a2c9(0xee)],'commands':[a1_0x14a2c9(0xf5),a1_0x14a2c9(0xd4),a1_0x14a2c9(0xf3),'claude']},{'name':a1_0x14a2c9(0xe4),'colorFn':a1_0x3659a3[a1_0x14a2c9(0xef)],'commands':['context',a1_0x14a2c9(0xf0),a1_0x14a2c9(0xd8),'auth',a1_0x14a2c9(0xdd),a1_0x14a2c9(0xd1)]},{'name':a1_0x14a2c9(0xd0),'colorFn':a1_0x3659a3[a1_0x14a2c9(0xea)],'commands':[a1_0x14a2c9(0xe8)]}];
|
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x6a4618=a2_0x3ba0;(function(_0x439330,_0x41d787){const _0x335036=a2_0x3ba0,_0x3681bb=_0x439330();while(!![]){try{const _0x102ee9=parseInt(_0x335036(0x2b8))/0x1+-parseInt(_0x335036(0x10a))/0x2*(parseInt(_0x335036(0xd9))/0x3)+parseInt(_0x335036(0x148))/0x4*(parseInt(_0x335036(0x1d5))/0x5)+parseInt(_0x335036(0x27f))/0x6+-parseInt(_0x335036(0x225))/0x7*(-parseInt(_0x335036(0xe0))/0x8)+-parseInt(_0x335036(0x1a6))/0x9*(-parseInt(_0x335036(0x122))/0xa)+parseInt(_0x335036(0x131))/0xb*(-parseInt(_0x335036(0xd7))/0xc);if(_0x102ee9===_0x41d787)break;else _0x3681bb['push'](_0x3681bb['shift']());}catch(_0x58935a){_0x3681bb['push'](_0x3681bb['shift']());}}}(a2_0x25aa,0x1b5c6));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';function a2_0x25aa(){const _0x16be67=['HTML\x20template\x20content','CDP\x20segment\x20management\x20commands','map','Resume\x20a\x20paused\x20campaign','Database\x20to\x20query\x20(default:\x20information_schema)','--output\x20<file>','Skip\x20validation\x20of\x20.dig\x20files','workflows\x20[project]','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead',',\x20version\x20','trace','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','--include-retried','view\x20[segment_name]','--tsv','New\x20workspace\x20name','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','query\x20[sql]','attempt:','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--add-attributes\x20<json>','addHelpText','-o,\x20--output\x20<file>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','debug','--type\x20<type>','action','Add\x20behaviors\x20as\x20JSON\x20string','--full','show\x20[name]','commands','New\x20campaign\x20name','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Run\x20Trino\x20query\x20with\x20streaming\x20results','Update\x20a\x20campaign','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--starter-message\x20<text>','use\x20<path>','[task-name]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','slice','repeat','Start\x20time\x20filter\x20(ISO\x208601\x20format)','-d,\x20--database\x20<database>','1157238WwQbNa','Describe\x20table\x20schema','tdx','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--model\x20<name>','--llm-project\x20<name>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','isArray','--job-type\x20<type>','sessions\x20[project]','user','Kill\x20a\x20job','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20the\x20most\x20recent\x20chat','engage','--segment\x20<path>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','validate\x20[name]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--description\x20<desc>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Workflow\x20project\x20management','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Attributes\x20from\x20JSON\x20file','Email\x20template\x20management','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','List\x20available\x20LLM\x20models','Interactive\x20chat\x20selector','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Limit\x20number\x20of\x20rows','show\x20<name>','Updated\x20timezone','Commands:','--add-behaviors-file\x20<file>','--in\x20<name>','Email\x20subject\x20template','users','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--behavior\x20[name]','list\x20[project]','Maximum\x20tool\x20iterations\x20(default:\x204)','Output\x20as\x20JSON\x20Lines','includes','Add\x20attributes\x20as\x20JSON\x20string','list','-r,\x20--recursive','jsonl','-H,\x20--header\x20<header>','padEnd','72057MicLJE','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','delete\x20<name>','Move\x20to\x20folder','--rule-file\x20<file>','Database\x20name\x20(default:\x20information_schema)','Skip\x20population\x20counting','--description\x20<text>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--timeout\x20<seconds>','view\x20[name]','replace','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','templates\x20[pattern]','-f,\x20--file\x20<path>','Template\x20name','LLM\x20project\x20management','push\x20[parent_or_file]','Output\x20as\x20JSON','requiredOption','attempts\x20[project]','Setup\x20API\x20key\x20authentication\x20interactively','show\x20<folder_ref>','--table','help','Starter\x20message','Submit\x20a\x20job','configureHelp','\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','statusline','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Updated\x20schedule\x20option','Delete\x20an\x20LLM\x20project','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--prompt\x20<text>','duplicate\x20<name-or-id>','delete\x20<project-name-or-id>','aliases','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Include\x20retried\x20attempts','LLM\x20agent\x20management','workspaces\x20[pattern]','Maximum\x20recursion\x20depth\x20(default:\x2010)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Delete\x20a\x20workspace','after','pull\x20[parent_or_file]','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--yes','Timezone\x20(e.g.,\x20America/Los_Angeles)','option','run','-o,\x20--output\x20<folder>','Resume\x20from\x20specific\x20task','36mUFsOR','Folder\x20description','21KFIxWr','push\x20[file]','outputHelp','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','profile','Workspace\x20management','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','104BXQKJH','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','noColor','-d,\x20--database\x20<name>','--kind\x20<type>','delete\x20<name-or-id>','Master\x20database\x20name','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','allowExcessArguments','claude-4.5-sonnet','--json-columns\x20<cols>','Project\x20description','--clear','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--attribute\x20[name]','download\x20<project-name>\x20[output-dir]','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--limit\x20<n>','json','-w,\x20--web','delete\x20<agent-name>','name','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Job\x20management\x20commands','--name\x20<name>','setup','--from\x20<timestamp>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','allowUnknownOption','run\x20<workflow>','-X,\x20--method\x20<method>','segments\x20[path]','\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','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','table','Parent\x20folder\x20name\x20for\x20nested\x20folders','Skip\x20confirmation\x20prompts','--editor-type\x20<type>','tdx\x20','list\x20[pattern]','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','17254OPsfji','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','pause\x20<name-or-id>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--jsonl','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Show\x20segment\x20schema\x20(column\x20types)','create\x20<segment_name>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Workflow\x20parameter\x20(repeatable)','Show\x20master\x20table\x20sample\x20data','Skip\x20confirmation\x20prompt','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','agents\x20[pattern]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','../package.json','flatMap','pull\x20[name]','End\x20time\x20filter\x20(ISO\x208601\x20format)','User\x20management\x20commands','logLevel','summary','Create\x20a\x20workspace','us01','393590zbJxMQ','Model\x20name\x20(default:\x20claude-4.5-sonnet)','--no-color','TRACE','set','hook','List\x20all\x20available\x20profiles','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','history\x20[chat-id]','-y,\x20--yes','Delete\x20an\x20email\x20template','--status\x20<status>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--version','project','1741333JOXiRF','--schedule-option\x20<value>','--customer-group\x20<json>','--resume-from\x20<task>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','show\x20[table]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','trino','sql\x20[name]','chat\x20[message...]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','databases\x20[pattern]','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Updated\x20description','proxy','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Plaintext\x20template\x20content','buildTime','--include-subtasks','--workspace\x20<name>','11464vxtESO','--dry-run','--add-attributes-file\x20<file>','Unknown\x20action:\x20','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Create\x20a\x20new\x20agent\x20in\x20current\x20project','folders\x20<parent_name>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Customer\x20group\x20as\x20JSON\x20string','--database\x20<db>','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','kill','tsv','createAsync','registeredArguments','catch','Behaviors\x20as\x20JSON\x20string','site','--type\x20<api_type>','description','--name\x20<new_name>','--table\x20<table>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','use\x20[name]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--site\x20<site>','Show\x20segment\x20details\x20(alias\x20for\x20view)','-u,\x20--use','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','parents\x20[pattern]','--format\x20<format>','update\x20<name-or-id>','opts','Set\x20or\x20show\x20parent\x20segment\x20context','--project\x20<name>','Preview\x20operation\x20without\x20executing','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','restore\x20<folder>','retry\x20<session-id>','Output\x20file\x20path\x20(default:\x20<name>.yml)','--max-tool-iterations\x20<n>','context','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','join','parent-segment','clear','--database\x20<name>','--schedule-type\x20<type>','port','Filtering\x20rule\x20from\x20JSON\x20file','--data\x20<data>','result\x20<job-id>','--last','Filtering\x20rule\x20as\x20JSON\x20string','--enriched','--parent-folder\x20<name>','Options:','claude\x20[args...]','Workspace\x20name','Open\x20parent\x20segment\x20in\x20web\x20browser','[DEPRECATED]\x20Segment\x20folder\x20management','Revision\x20name\x20(default:\x20timestamp)','Save\x20output\x20to\x20file','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Parent\x20segment\x20description','Clear\x20session\x20context','exit','get','chats','--param\x20<key=value>','Workspace\x20name\x20(required)','gitRevision','show\x20<name-or-id>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','stdout','Alias\x20for\x20--database\x20(natural\x20language\x20style)','-p,\x20--profile\x20<name>','campaigns\x20[pattern]','build-info.json','Enable\x20verbose\x20logging','--no-count-population','argumentTerm','alias','Task\x20name\x20for\x20logs\x20action','length','preview\x20[file]','--name\x20<new-name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','argumentDescription','Attempt\x20ID','Agent\x20description','9UHYRcm','Campaign\x20description','push\x20[name]','fields\x20[name]','--from-task\x20<task>','command','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','colorFn','--agent\x20<ref>','--limit\x20<rows>','--start-at\x20<datetime>','Get\x20job\x20results','--timezone\x20<tz>','Behaviors\x20from\x20JSON\x20file','fields\x20[parent_name]','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Workspace\x20description','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','_hidden','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','apiKey','--new','submit\x20[query]','Usage:\x20','--reason\x20<text>','Include\x20subtasks\x20in\x20tasks\x20output','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','format','update\x20<agent-name>','database','--attributes\x20<json>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','--in\x20<database>','update\x20<segment_name>','AI-native\x20CLI\x20for\x20Treasure\x20Data','-v,\x20--verbose','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--rule\x20<json>','optionDescription','auth','argv','show\x20[segment_name]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--html\x20<html>','parent','235KyWfpn','Editor\x20type','llm','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','preAction','New\x20template\x20name','Start\x20a\x20new\x20chat\x20session','job','isTTY','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','\x20-\x20built\x20','update\x20<name>','stderr','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','--no-proxy','--session\x20<id>','then','push','DEBUG','--plaintext\x20<text>','argument','segment','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Show\x20job\x20details','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','--folder\x20<name>','required','optionTerm','forEach','profiles','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Include\x20retried\x20attempts\x20(for\x20list)','Create\x20segment\x20folder','sonnet','Campaign\x20management','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Database\x20to\x20use\x20(overrides\x20context)','run\x20[name]','Remove\x20API\x20key\x20from\x20system\x20keychain','Database\x20management\x20commands','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--behaviors-file\x20<file>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--revision\x20<revision>','create','Make\x20segment\x20invisible\x20(default:\x20visible)','workspace','launch\x20<name-or-id>','utf-8','--parent-segment\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','subcommandTerm','activations\x20<segment_name>','[attempt-id]','workflow','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Show\x20agent\x20details','Email\x20sender\x20ID\x20for\x20delivery','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','tasks','Pull\x20child\x20segments\x20to\x20YAML\x20files','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','version','--email-sender-id\x20<id>','Show\x20only\x20master\x20table\x20validation','--max-depth\x20<depth>','Workflow\x20attempt\x20management','log','Launch\x20a\x20campaign','Read\x20SQL\x20query\x20from\x20file','Show\x20connection\x20details\x20by\x20name','logs','-1d','--json','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','show\x20<job-id>','--customer-group-file\x20<file>','validate\x20[file]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','112203UdgqZw','padWidth','error','Show\x20workspace\x20details','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Folder\x20name\x20for\x20organization','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Attributes\x20as\x20JSON\x20string','--session-time\x20<time>','information_schema','subcommandDescription','list\x20[path]','--subject\x20<subject>','--to\x20<timestamp>','--catalog\x20<catalog>','create\x20<name>','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','folder','System\x20prompt/instructions\x20(default:\x20empty)','GET','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--master','Workflow\x20(Digdag)\x20management\x20commands','agent','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','options','Authentication\x20management','Segment\x20description','Add\x20attributes\x20from\x20JSON\x20file','desc\x20[name]','Update\x20an\x20existing\x20agent','Create\x20a\x20new\x20LLM\x20project','Create\x20an\x20email\x20template','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--interval\x20<range>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','Agent\x20reference\x20(project-name/agent-name)','--params\x20<json>','filter','attempt','--name\x20<text>','--behaviors\x20<json>'];a2_0x25aa=function(){return _0x16be67;};return a2_0x25aa();}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{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,a2_0x6a4618(0x119)),a2_0x6a4618(0x206)));let buildInfo={};try{buildInfo=JSON['parse'](readFileSync(join(__dirname,a2_0x6a4618(0x198)),a2_0x6a4618(0x206)));}catch{}if(process[a2_0x6a4618(0x1d0)][a2_0x6a4618(0x2b1)](a2_0x6a4618(0x12f))){let versionOutput=a2_0x6a4618(0x107)+packageJson[a2_0x6a4618(0x214)];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo[a2_0x6a4618(0x191)]+')'),buildInfo[a2_0x6a4618(0x145)]&&(versionOutput+=a2_0x6a4618(0x1df)+buildInfo[a2_0x6a4618(0x145)]),console[a2_0x6a4618(0x219)](versionOutput),process[a2_0x6a4618(0x18c)](0x0);}const program=new Command();let description=a2_0x6a4618(0x1ca);buildInfo['gitRevision']?description+=a2_0x6a4618(0x259)+packageJson['version']+'\x20('+buildInfo[a2_0x6a4618(0x191)]+')':description+=',\x20version\x20'+packageJson[a2_0x6a4618(0x214)];program[a2_0x6a4618(0xf6)]('tdx')['description'](description),program[a2_0x6a4618(0xd3)](a2_0x6a4618(0x196),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x163),a2_0x6a4618(0x2e8),a2_0x6a4618(0x121))['option'](a2_0x6a4618(0x168),a2_0x6a4618(0x174))['option'](a2_0x6a4618(0x2d1),a2_0x6a4618(0x2a0))['option']('--json',a2_0x6a4618(0x27a))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x10e),a2_0x6a4618(0x14c))['option'](a2_0x6a4618(0x25f),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x255),a2_0x6a4618(0x188))[a2_0x6a4618(0xd3)]('--limit\x20<number>',a2_0x6a4618(0x273))[a2_0x6a4618(0xd3)]('--color',a2_0x6a4618(0x2c1),![])[a2_0x6a4618(0xd3)](a2_0x6a4618(0x124),a2_0x6a4618(0x285),![])[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1cb),a2_0x6a4618(0x199),![])[a2_0x6a4618(0xd3)]('--debug',a2_0x6a4618(0x2e1))[a2_0x6a4618(0xd3)]('--trace',a2_0x6a4618(0x1ac))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c2),'Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x149),a2_0x6a4618(0x16d),![])[a2_0x6a4618(0xd3)]('-y,\x20--yes',a2_0x6a4618(0x105),![])['option'](a2_0x6a4618(0x1e4),a2_0x6a4618(0xdf))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xe3),a2_0x6a4618(0x1f9))['option'](a2_0x6a4618(0x2a9),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x6a4618(0x207),a2_0x6a4618(0x1a1))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x287),a2_0x6a4618(0x23a)),program[a2_0x6a4618(0x2d5)]({'formatHelp':(_0x46eead,_0x157aac)=>{const _0x5d422c=a2_0x6a4618,_0xe2d7d4=_0x157aac[_0x5d422c(0x226)](_0x46eead,_0x157aac),_0x2a937f=0x2,_0xbebe86=0x2;function _0x14c72e(_0x1fe651){const _0x1531de=_0x5d422c,_0xebe5dd=_0x1fe651;return!!(_0xebe5dd[_0x1531de(0x1b9)]||_0xebe5dd['hidden']);}function _0x12344d(_0x369daf,_0x423077){const _0x342642=_0x5d422c;if(_0x423077){const _0x5e7512=''+_0x369daf[_0x342642(0x2b7)](_0xe2d7d4+_0xbebe86)+_0x423077;return _0x5e7512;}return _0x369daf;}function _0x5b6947(_0x8942bb){const _0x3279b5=_0x5d422c;return _0x8942bb[_0x3279b5(0x175)]('\x0a')[_0x3279b5(0x2c4)](/^/gm,'\x20'[_0x3279b5(0x27c)](_0x2a937f));}const _0x1b87f5=[];_0x1b87f5[_0x5d422c(0x1e6)](_0x5d422c(0x1be)+_0x157aac['commandUsage'](_0x46eead));const _0x55af00=_0x157aac['commandDescription'](_0x46eead);_0x55af00&&(_0x1b87f5['push'](''),_0x1b87f5[_0x5d422c(0x1e6)](_0x55af00));const _0x2ec3b9=_0x46eead[_0x5d422c(0x271)][_0x5d422c(0x24c)](_0x84a46=>!_0x14c72e(_0x84a46));if(_0x2ec3b9[_0x5d422c(0x19e)]>0x0){if(_0x46eead['name']()===_0x5d422c(0x281)){const _0xcb6bdb=_0x46eead[_0x5d422c(0x16a)](),_0xae270a=!_0xcb6bdb[_0x5d422c(0xe2)]&&process[_0x5d422c(0x194)][_0x5d422c(0x1dd)],_0x202c8b=COMMAND_CATEGORIES,_0x2ea903=(_0x5aff36,_0x5e2de6)=>_0xae270a?_0x5e2de6(_0x5aff36):_0x5aff36,_0x4652ab=new Map();_0x2ec3b9[_0x5d422c(0x1f1)](_0x168004=>{const _0x17faaa=_0x5d422c;_0x4652ab[_0x17faaa(0x126)](_0x168004[_0x17faaa(0xf6)](),_0x168004);}),_0x202c8b[_0x5d422c(0x1f1)](_0x3c0aa3=>{const _0x25283d=_0x5d422c,_0xda91c=_0x3c0aa3['commands'][_0x25283d(0x11a)](_0x3c2b04=>_0x4652ab[_0x25283d(0x18d)](_0x3c2b04)??[]);if(_0xda91c[_0x25283d(0x19e)]>0x0){_0x1b87f5[_0x25283d(0x1e6)](''),_0x1b87f5[_0x25283d(0x1e6)](_0x2ea903(_0x3c0aa3[_0x25283d(0xf6)]+':',_0x3c0aa3[_0x25283d(0x1ad)]));const _0x2f87b0=_0xda91c[_0x25283d(0x252)](_0x5959a4=>{const _0xa3c752=_0x25283d,_0x19b4d7=_0x157aac[_0xa3c752(0x209)](_0x5959a4),_0x5fdb41=_0x157aac[_0xa3c752(0x230)](_0x5959a4);return _0x12344d(_0x19b4d7,_0x5fdb41);});_0x1b87f5['push'](_0x5b6947(_0x2f87b0));}}),_0x1b87f5[_0x5d422c(0x1e6)](''),_0x1b87f5['push'](_0x5d422c(0x296));}else{const _0x6c3621=_0x2ec3b9[_0x5d422c(0x252)](_0x527524=>{const _0x41f932=_0x5d422c,_0x2d164e=_0x157aac[_0x41f932(0x209)](_0x527524),_0x5a9725=_0x157aac[_0x41f932(0x230)](_0x527524);return _0x12344d(_0x2d164e,_0x5a9725);});_0x1b87f5[_0x5d422c(0x1e6)](''),_0x1b87f5[_0x5d422c(0x1e6)](_0x5d422c(0x2a7)),_0x1b87f5[_0x5d422c(0x1e6)](_0x5b6947(_0x6c3621));}}const _0x46dba6=_0x46eead[_0x5d422c(0x23f)]['filter'](_0x12a2fb=>!_0x14c72e(_0x12a2fb));if(_0x46dba6[_0x5d422c(0x19e)]>0x0){const _0x37f7b6=_0x46dba6[_0x5d422c(0x252)](_0xd81b82=>{const _0x3c35bd=_0x5d422c,_0x31ab5e=_0x157aac[_0x3c35bd(0x1f0)](_0xd81b82),_0x584b90=_0x157aac[_0x3c35bd(0x1ce)](_0xd81b82);return _0x12344d(_0x31ab5e,_0x584b90);});_0x1b87f5['push'](''),_0x1b87f5['push'](_0x5d422c(0x182)),_0x1b87f5[_0x5d422c(0x1e6)](_0x5b6947(_0x37f7b6));}const _0x1eeb7c=(_0x46eead[_0x5d422c(0x158)]||[])[_0x5d422c(0x24c)](_0x48595a=>!_0x14c72e(_0x48595a));if(_0x1eeb7c[_0x5d422c(0x19e)]>0x0){const _0x523222=_0x1eeb7c[_0x5d422c(0x252)](_0x1e5320=>{const _0x2c9065=_0x5d422c,_0x988cde=_0x157aac[_0x2c9065(0x19b)](_0x1e5320),_0x210547=_0x157aac[_0x2c9065(0x1a3)](_0x1e5320);return _0x12344d(_0x988cde,_0x210547);});_0x1b87f5['push'](''),_0x1b87f5['push']('Arguments:'),_0x1b87f5[_0x5d422c(0x1e6)](_0x5b6947(_0x523222));}return _0x1b87f5[_0x5d422c(0x175)]('\x0a');},'subcommandTerm':_0x550d14=>{const _0x38d16f=a2_0x6a4618,_0x30e022=(_0x550d14[_0x38d16f(0x158)]||[])['map'](_0x2d2d0d=>_0x2d2d0d[_0x38d16f(0x1ef)]?'<'+_0x2d2d0d[_0x38d16f(0xf6)]()+'>':'['+_0x2d2d0d[_0x38d16f(0xf6)]()+']')['join']('\x20'),_0x333a43=_0x550d14[_0x38d16f(0x2e0)](),_0x5d44ad=_0x333a43['length']>0x0?_0x550d14[_0x38d16f(0xf6)]()+',\x20'+_0x333a43[_0x38d16f(0x175)](',\x20'):_0x550d14[_0x38d16f(0xf6)]();return _0x30e022?_0x5d44ad+'\x20'+_0x30e022:_0x5d44ad;}}),program[a2_0x6a4618(0x127)](a2_0x6a4618(0x1d9),_0x8bf9ff=>{const _0x3ea292=a2_0x6a4618,_0x7226e3=_0x8bf9ff[_0x3ea292(0x16a)]();if(!_0x7226e3[_0x3ea292(0x1c3)]){if(_0x7226e3['table'])_0x7226e3[_0x3ea292(0x1c3)]=_0x3ea292(0x103);else{if(_0x7226e3[_0x3ea292(0xf3)])_0x7226e3[_0x3ea292(0x1c3)]=_0x3ea292(0xf3);else{if(_0x7226e3[_0x3ea292(0x2b5)])_0x7226e3[_0x3ea292(0x1c3)]=_0x3ea292(0x2b5);else _0x7226e3[_0x3ea292(0x156)]&&(_0x7226e3['format']=_0x3ea292(0x156));}}}_0x7226e3['in']&&!_0x7226e3[_0x3ea292(0x1c5)]&&(_0x7226e3[_0x3ea292(0x1c5)]=_0x7226e3['in']);if(_0x7226e3[_0x3ea292(0x25a)])_0x7226e3[_0x3ea292(0x11e)]=LogLevel[_0x3ea292(0x125)];else{if(_0x7226e3[_0x3ea292(0x26b)])_0x7226e3['logLevel']=LogLevel[_0x3ea292(0x1e7)];else _0x7226e3[_0x3ea292(0x11e)]===undefined&&(_0x7226e3[_0x3ea292(0x11e)]=LogLevel['INFO']);}});async function createTDXInstance(_0x188cca){const _0x21aeee=a2_0x6a4618,_0x58e53e=await GlobalContext[_0x21aeee(0x157)](_0x188cca);return _0x58e53e['injectIntoOptions'](_0x188cca),TDX[_0x21aeee(0x202)]({'site':_0x58e53e[_0x21aeee(0x15b)],'apiKey':_0x58e53e[_0x21aeee(0x1bb)],'logLevel':_0x58e53e['logLevel'],'profile':_0x58e53e[_0x21aeee(0xdd)]});}const databaseCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1c5))[a2_0x6a4618(0x19c)]('db')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1fc)),databaseListAction=async(_0x54ecba,_0x402377)=>{const _0x1861b4=a2_0x6a4618,_0x49d146=new DatabasesCommand(),_0x432920=program[_0x1861b4(0x16a)](),_0x4d5d4a=await createTDXInstance(_0x432920),_0x39a61b=await _0x49d146['run']({'options':{..._0x432920,..._0x402377},'args':_0x54ecba?[_0x54ecba]:[],'tdx':_0x4d5d4a});process['exit'](_0x39a61b);};databaseCmd[a2_0x6a4618(0x1ab)]('list\x20[pattern]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1d8))[a2_0x6a4618(0x26d)](databaseListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x13f),{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0x129))[a2_0x6a4618(0x26d)](databaseListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x13b))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xfc))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1ae),a2_0x6a4618(0x24a))['option'](a2_0x6a4618(0x286),a2_0x6a4618(0x123))[a2_0x6a4618(0xd3)]('--temperature\x20<n>',a2_0x6a4618(0x1b5))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1bc),a2_0x6a4618(0x1db))['action'](async(_0x153c97,_0x1a8a13)=>{const _0x1e4834=a2_0x6a4618,_0x1a324b=new ChatCommand(),_0x354e3d=program[_0x1e4834(0x16a)](),_0x4b1fe7=await createTDXInstance(_0x354e3d),_0x253219=await _0x1a324b['run']({'options':{..._0x354e3d,..._0x1a8a13},'args':_0x153c97,'tdx':_0x4b1fe7});process[_0x1e4834(0x18c)](_0x253219);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x6a4618(0x11f)](a2_0x6a4618(0x13e))['addHelpText'](a2_0x6a4618(0xce),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')[a2_0x6a4618(0xd3)](a2_0x6a4618(0xff),a2_0x6a4618(0x276),a2_0x6a4618(0x239))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x17c),'Request\x20body\x20as\x20JSON\x20string')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c8),'Read\x20request\x20body\x20from\x20file')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2b6),a2_0x6a4618(0x213),(_0x3e7ed7,_0x1073d9)=>{return _0x1073d9?[..._0x1073d9,_0x3e7ed7]:[_0x3e7ed7];})[a2_0x6a4618(0xd3)](a2_0x6a4618(0x15c),a2_0x6a4618(0x1ed),'td')[a2_0x6a4618(0x26d)](async(_0x20618d,_0x3e4f9f)=>{const _0x15c7a6=a2_0x6a4618;if(!_0x20618d){apiCmd[_0x15c7a6(0x2d2)]();return;}const _0x46d40a=new ApiCommand(),_0x4d70f8=program[_0x15c7a6(0x16a)](),_0x2b3cf7=await createTDXInstance(_0x4d70f8),_0x1c9acb=await _0x46d40a['run']({'options':{..._0x4d70f8,..._0x3e4f9f},'args':[_0x20618d],'tdx':_0x2b3cf7});process['exit'](_0x1c9acb);}),tableCmd=program['command'](a2_0x6a4618(0x103))[a2_0x6a4618(0x15d)]('Table\x20management\x20commands'),tableListAction=async(_0x4d5c81,_0xe8fc18)=>{const _0x323047=a2_0x6a4618,_0x481abe=new TablesCommand(),_0x59ec72=program['opts'](),_0xbec19c=await createTDXInstance(_0x59ec72);_0xe8fc18['in']&&(_0xe8fc18[_0x323047(0x1c5)]=_0xe8fc18['in']);const _0x34526b=await _0x481abe[_0x323047(0xd4)]({'options':{..._0x59ec72,..._0xe8fc18},'args':_0x4d5c81?[_0x4d5c81]:[],'tdx':_0xbec19c});process['exit'](_0x34526b);};tableCmd[a2_0x6a4618(0x1ab)]('list\x20[pattern]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x284))['option'](a2_0x6a4618(0x27e),a2_0x6a4618(0x1d2))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1c8),a2_0x6a4618(0x195))[a2_0x6a4618(0x26d)](tableListAction),program['command']('tables\x20[pattern]',{'hidden':!![]})[a2_0x6a4618(0x15d)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x27e),a2_0x6a4618(0x1d2))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1c8),a2_0x6a4618(0x195))[a2_0x6a4618(0x26d)](tableListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x137))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x288))[a2_0x6a4618(0xd3)]('-d,\x20--database\x20<database>',a2_0x6a4618(0x116))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1c8),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x6a4618(0x26d)](async(_0x27617e,_0xda12f7)=>{const _0x133564=a2_0x6a4618,_0x417f4d=new ShowCommand(),_0x15c306=program['opts'](),_0x5b2cdd=await createTDXInstance(_0x15c306);_0xda12f7['in']&&(_0xda12f7[_0x133564(0x1c5)]=_0xda12f7['in']);const _0x51ec36=await _0x417f4d[_0x133564(0xd4)]({'options':{..._0x15c306,..._0xda12f7},'args':_0x27617e?[_0x27617e]:[],'tdx':_0x5b2cdd});process['exit'](_0x51ec36);}),program[a2_0x6a4618(0x1ab)]('describe\x20[table]')['alias']('desc')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x280))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x27e),a2_0x6a4618(0x116))[a2_0x6a4618(0xd3)]('--in\x20<database>',a2_0x6a4618(0x195))[a2_0x6a4618(0x26d)](async(_0x5b0f6d,_0x318cc1)=>{const _0x1e9735=a2_0x6a4618,_0x7561e=new DescribeCommand(),_0x256d92=program[_0x1e9735(0x16a)](),_0x48e9e7=await createTDXInstance(_0x256d92);_0x318cc1['in']&&(_0x318cc1[_0x1e9735(0x1c5)]=_0x318cc1['in']);const _0x433c0a=await _0x7561e[_0x1e9735(0xd4)]({'options':{..._0x256d92,..._0x318cc1},'args':_0x5b0f6d?[_0x5b0f6d]:[],'tdx':_0x48e9e7});process[_0x1e9735(0x18c)](_0x433c0a);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x262))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x274))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x27e),a2_0x6a4618(0x254))['option'](a2_0x6a4618(0x1c8),a2_0x6a4618(0x195))['option'](a2_0x6a4618(0x234),'Trino\x20catalog\x20(default:\x20td)')['option']('-f,\x20--file\x20<path>',a2_0x6a4618(0x21b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1af),a2_0x6a4618(0x2ac),'40')[a2_0x6a4618(0x26d)](async(_0x31c25c,_0x52879c)=>{const _0x2afb72=a2_0x6a4618,_0xec40a8=new QueryCommand(),_0x463ed8=program[_0x2afb72(0x16a)](),_0x46e455=await createTDXInstance(_0x463ed8);_0x52879c['in']&&(_0x52879c[_0x2afb72(0x1c5)]=_0x52879c['in']);const _0x2f3a84=await _0xec40a8[_0x2afb72(0xd4)]({'options':{..._0x463ed8,..._0x52879c},'args':_0x31c25c?[_0x31c25c]:[],'tdx':_0x46e455});process[_0x2afb72(0x18c)](_0x2f3a84);});const segmentCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1ea))['alias']('sg')['description'](a2_0x6a4618(0x251)),segmentListAction=async(_0x2b7598,_0x3309cd)=>{const _0x46efb4=a2_0x6a4618,_0x4d25e6=new SegmentsCommand(),_0xbb91a9=program[_0x46efb4(0x16a)](),_0x219a3d=await createTDXInstance(_0xbb91a9),_0x47b8af=await _0x4d25e6[_0x46efb4(0xd4)]({'options':{..._0xbb91a9,..._0x3309cd},'args':_0x2b7598?[_0x2b7598]:[],'tdx':_0x219a3d});process[_0x46efb4(0x18c)](_0x47b8af);};segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x231))[a2_0x6a4618(0x15d)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')['option'](a2_0x6a4618(0x2b4),a2_0x6a4618(0x2c5))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x217),a2_0x6a4618(0x2e5),'10')[a2_0x6a4618(0x26d)](segmentListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x100),{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0x150))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2b4),a2_0x6a4618(0x2c5))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x217),a2_0x6a4618(0x2e5),'10')[a2_0x6a4618(0x26d)](segmentListAction),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x278),{'hidden':!![]})['description'](a2_0x6a4618(0xd0))[a2_0x6a4618(0x26d)](async(_0x3bdab7,_0x495246)=>{const _0x37d8ee=a2_0x6a4618,_0x34e898=new SegmentUseCommand(),_0x4ff735=program['opts'](),_0x5a4081=await createTDXInstance(_0x4ff735),_0x4b6c8d=await _0x34e898[_0x37d8ee(0xd4)]({'options':{..._0x4ff735,..._0x495246},'args':[_0x3bdab7],'tdx':_0x5a4081});process[_0x37d8ee(0x18c)](_0x4b6c8d);});const segmentViewAction=async(_0x2d09f7,_0x34a2fa)=>{const _0x18e380=a2_0x6a4618,_0x44ac59=new SegmentViewCommand(),_0x292b6b=program['opts'](),_0x162e4a=await createTDXInstance(_0x292b6b),_0x3c198e=await _0x44ac59[_0x18e380(0xd4)]({'options':{..._0x292b6b,..._0x34a2fa},'args':_0x2d09f7?[_0x2d09f7]:[],'tdx':_0x162e4a});process['exit'](_0x3c198e);};segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x25e))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x282))['action'](segmentViewAction),segmentCmd[a2_0x6a4618(0x1ab)]('info\x20[segment_name]',{'hidden':!![]})['alias']('describe')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x164))['action'](segmentViewAction),segmentCmd[a2_0x6a4618(0x1ab)]('desc\x20[segment_name]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x110))['action'](async(_0x172f6a,_0x1d9c84)=>{const _0x4aeaef=a2_0x6a4618,_0x213947=new SegmentDescCommand(),_0x2bc5ad=program[_0x4aeaef(0x16a)](),_0x406333=await createTDXInstance(_0x2bc5ad),_0x2826f1=await _0x213947[_0x4aeaef(0xd4)]({'options':{..._0x2bc5ad,..._0x1d9c84},'args':_0x172f6a?[_0x172f6a]:[],'tdx':_0x406333});process[_0x4aeaef(0x18c)](_0x2826f1);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1d1))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x224))[a2_0x6a4618(0x26d)](async(_0x2afedc,_0x56abc5)=>{const _0xdfa515=a2_0x6a4618,_0x1fb413=new SegmentShowCommand(),_0x2990cc=program['opts'](),_0x2dfc2e=await createTDXInstance(_0x2990cc),_0xd84fee=await _0x1fb413[_0xdfa515(0xd4)]({'options':{..._0x2990cc,..._0x56abc5},'args':_0x2afedc?[_0x2afedc]:[],'tdx':_0x2dfc2e});process[_0xdfa515(0x18c)](_0xd84fee);}),segmentCmd['command'](a2_0x6a4618(0x14f),{'hidden':!![]})['description'](a2_0x6a4618(0x1e2))['action'](async(_0x447f70,_0x549c6c)=>{const _0x5f1c3f=a2_0x6a4618,_0x2958c3=new SegmentFolderListCommand(),_0x9c868e=program['opts'](),_0xdafac3=await createTDXInstance(_0x9c868e),_0xbc2a9f=await _0x2958c3['run']({'options':{..._0x9c868e,..._0x549c6c},'args':[_0x447f70],'tdx':_0xdafac3});process[_0x5f1c3f(0x18c)](_0xbc2a9f);});const folderCmd=segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x237),{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0x186));folderCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2d0))['description'](a2_0x6a4618(0x189))[a2_0x6a4618(0x26d)](async(_0x5a2cff,_0x3f4735)=>{const _0x193617=a2_0x6a4618,_0x6a5bd1=new SegmentFolderShowCommand(),_0x5af042=program[_0x193617(0x16a)](),_0x1315b1=await createTDXInstance(_0x5af042),_0x325ba6=await _0x6a5bd1[_0x193617(0xd4)]({'options':{..._0x5af042,..._0x3f4735},'args':[_0x5a2cff],'tdx':_0x1315b1});process['exit'](_0x325ba6);}),segmentCmd[a2_0x6a4618(0x1ab)]('sql\x20[segment_name]')[a2_0x6a4618(0x15d)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x6a4618(0x26d)](async(_0x3263eb,_0x5d47d7)=>{const _0x12170a=a2_0x6a4618,_0x279f90=new SegmentSQLCommand(),_0x3c227c=program[_0x12170a(0x16a)](),_0x249623=await createTDXInstance(_0x3c227c),_0x556fcb=await _0x279f90[_0x12170a(0xd4)]({'options':{..._0x3c227c,..._0x5d47d7},'args':_0x3263eb?[_0x3263eb]:[],'tdx':_0x249623});process['exit'](_0x556fcb);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1b4))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x16e))[a2_0x6a4618(0x26d)](async(_0x58ffed,_0x542096)=>{const _0x5e4f72=a2_0x6a4618,_0x4fa431=new SegmentFieldsCommand(),_0x4d24a3=program[_0x5e4f72(0x16a)](),_0xb5d2fa=await createTDXInstance(_0x4d24a3),_0x294627=await _0x4fa431[_0x5e4f72(0xd4)]({'options':{..._0x4d24a3,..._0x542096},'args':_0x58ffed?[_0x58ffed]:[],'tdx':_0xb5d2fa});process[_0x5e4f72(0x18c)](_0x294627);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xcf))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x212))[a2_0x6a4618(0xd3)]('-y,\x20--yes',a2_0x6a4618(0x105))['option'](a2_0x6a4618(0x149),a2_0x6a4618(0xf1))[a2_0x6a4618(0x26d)](async(_0x1d7832,_0x2f1c7e)=>{const _0x33aef0=a2_0x6a4618,_0x2de537=new SegmentPullCommand(),_0x5b2056=program['opts'](),_0x5b74be=await createTDXInstance(_0x5b2056),_0x4503d2=await _0x2de537[_0x33aef0(0xd4)]({'options':{..._0x5b2056,..._0x2f1c7e},'args':_0x1d7832?[_0x1d7832]:[],'tdx':_0x5b74be});process[_0x33aef0(0x18c)](_0x4503d2);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2cb))[a2_0x6a4618(0x15d)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x6a4618(0xd3)]('-y,\x20--yes',a2_0x6a4618(0x105))[a2_0x6a4618(0xd3)]('--dry-run',a2_0x6a4618(0xf1))['option']('--delete',a2_0x6a4618(0x1c7))[a2_0x6a4618(0x26d)](async(_0x5be56c,_0x5cedc8)=>{const _0x3b67e8=a2_0x6a4618,_0x52f2ff=new SegmentPushCommand(),_0x535706=program[_0x3b67e8(0x16a)](),_0x3879c9=await createTDXInstance(_0x535706),_0x3bf4e3=await _0x52f2ff[_0x3b67e8(0xd4)]({'options':{..._0x535706,..._0x5cedc8},'args':_0x5be56c?[_0x5be56c]:[],'tdx':_0x3879c9});process['exit'](_0x3bf4e3);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x111),{'hidden':!![]})['description'](a2_0x6a4618(0x136))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c0),a2_0x6a4618(0x241))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1cd),a2_0x6a4618(0x17f))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2bd),a2_0x6a4618(0x17b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1ee),a2_0x6a4618(0x22a))[a2_0x6a4618(0xd3)]('--kind\x20<type>',a2_0x6a4618(0x1f3))['option']('--invisible',a2_0x6a4618(0x203))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x19a),a2_0x6a4618(0x2bf))[a2_0x6a4618(0x26d)](async(_0x5eb8a7,_0x24251c)=>{const _0xc9814d=a2_0x6a4618,_0x4b32d4=new SegmentCreateCommand(),_0xa96f50=program['opts'](),_0x2e33d6=await createTDXInstance(_0xa96f50),_0x54c138=await _0x4b32d4['run']({'options':{..._0xa96f50,..._0x24251c},'args':[_0x5eb8a7],'tdx':_0x2e33d6});process[_0xc9814d(0x18c)](_0x54c138);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1c9),{'hidden':!![]})['description'](a2_0x6a4618(0x236))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x15e),'New\x20segment\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c0),a2_0x6a4618(0x141))[a2_0x6a4618(0xd3)]('--rule\x20<json>',a2_0x6a4618(0xe1))[a2_0x6a4618(0xd3)]('--rule-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x6a4618(0xd3)]('--folder\x20<name>',a2_0x6a4618(0x2bc))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xe4),a2_0x6a4618(0x1f3))[a2_0x6a4618(0x26d)](async(_0x528389,_0x83767a)=>{const _0xd225a=a2_0x6a4618,_0x4cd6a3=new SegmentUpdateCommand(),_0x4148e5=program[_0xd225a(0x16a)](),_0x1187db=await createTDXInstance(_0x4148e5),_0x46a1b6=await _0x4cd6a3[_0xd225a(0xd4)]({'options':{..._0x4148e5,..._0x83767a},'args':[_0x528389],'tdx':_0x1187db});process[_0xd225a(0x18c)](_0x46a1b6);});const parentCmd=segmentCmd['command'](a2_0x6a4618(0x1d4),{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0x258)),parentListAction=async(_0x3cea8b,_0x1955cf)=>{const _0x2746eb=a2_0x6a4618,_0x590f13=new ParentSegmentListCommand(),_0x29ee18=program[_0x2746eb(0x16a)](),_0x2c4972=await createTDXInstance(_0x29ee18),_0x57d2b3=await _0x590f13[_0x2746eb(0xd4)]({'options':{..._0x29ee18,..._0x1955cf},'args':_0x3cea8b?[_0x3cea8b]:[],'tdx':_0x2c4972});process[_0x2746eb(0x18c)](_0x57d2b3);};parentCmd['command'](a2_0x6a4618(0x108))['description'](a2_0x6a4618(0x140))['action'](parentListAction),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x167),{'hidden':!![]})['description'](a2_0x6a4618(0x13d))[a2_0x6a4618(0x26d)](parentListAction),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x11b))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x138))['option'](a2_0x6a4618(0x267),a2_0x6a4618(0x171))['option'](a2_0x6a4618(0x12b),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](async(_0x2c9be2,_0xacc057)=>{const _0x2beb1e=a2_0x6a4618,_0x779eb=new ParentSegmentPullCommand(),_0x29b978=program['opts'](),_0x387732=await createTDXInstance(_0x29b978),_0x45cff3=await _0x779eb[_0x2beb1e(0xd4)]({'options':{..._0x29b978,..._0xacc057},'args':_0x2c9be2?[_0x2c9be2]:[],'tdx':_0x387732});process[_0x2beb1e(0x18c)](_0x45cff3);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xda))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x162))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12b),'Skip\x20confirmation\x20prompt')[a2_0x6a4618(0x26d)](async(_0x2b5a12,_0x39ae8f)=>{const _0x5a6923=a2_0x6a4618,_0x15d499=new ParentSegmentPushCommand(),_0x1c88c6=program[_0x5a6923(0x16a)](),_0x22134e=await createTDXInstance(_0x1c88c6),_0x2aa223=await _0x15d499[_0x5a6923(0xd4)]({'options':{..._0x1c88c6,..._0x39ae8f},'args':_0x2b5a12?[_0x2b5a12]:[],'tdx':_0x22134e});process[_0x5a6923(0x18c)](_0x2aa223);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x223))['description'](a2_0x6a4618(0x29c))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x23b),a2_0x6a4618(0x216))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xef),a2_0x6a4618(0x2a3))['option'](a2_0x6a4618(0x2ad),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x6a4618(0x180),a2_0x6a4618(0x2dc))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x248),a2_0x6a4618(0x208),a2_0x6a4618(0x21e))[a2_0x6a4618(0x26d)](async(_0x5139b9,_0x2c153a)=>{const _0x15614d=a2_0x6a4618,_0x3a1f80=new ParentSegmentValidateCommand(),_0x42786b=program[_0x15614d(0x16a)](),_0x268425=await createTDXInstance(_0x42786b),_0x4178ea=await _0x3a1f80[_0x15614d(0xd4)]({'options':{..._0x42786b,..._0x2c153a},'args':_0x5139b9?[_0x5139b9]:[],'tdx':_0x268425});process[_0x15614d(0x18c)](_0x4178ea);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x19f))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x261))[a2_0x6a4618(0xd3)]('--master',a2_0x6a4618(0x114))['option'](a2_0x6a4618(0xef),a2_0x6a4618(0x10d))['option'](a2_0x6a4618(0x2ad),a2_0x6a4618(0x1b7))[a2_0x6a4618(0xd3)]('--enriched',a2_0x6a4618(0x269))['option'](a2_0x6a4618(0x248),a2_0x6a4618(0x208),a2_0x6a4618(0x21e))[a2_0x6a4618(0x26d)](async(_0x32071e,_0x540ac6)=>{const _0x13d8e6=a2_0x6a4618,_0x4f97ea=new ParentSegmentPreviewCommand(),_0x1ba007=program[_0x13d8e6(0x16a)](),_0x4507aa=await createTDXInstance(_0x1ba007),_0x35ad90=await _0x4f97ea[_0x13d8e6(0xd4)]({'options':{..._0x1ba007,..._0x540ac6},'args':_0x32071e?[_0x32071e]:[],'tdx':_0x4507aa});process[_0x13d8e6(0x18c)](_0x35ad90);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1fa))['description'](a2_0x6a4618(0x10f))['option']('-y,\x20--yes',a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](async(_0xb15e15,_0x214a83)=>{const _0x4b86ec=a2_0x6a4618,_0x100854=new ParentSegmentRunCommand(),_0x41c3f4=program[_0x4b86ec(0x16a)](),_0x2e49be=await createTDXInstance(_0x41c3f4),_0x5a4a34=await _0x100854[_0x4b86ec(0xd4)]({'options':{..._0x41c3f4,..._0x214a83},'args':_0xb15e15?[_0xb15e15]:[],'tdx':_0x2e49be});process[_0x4b86ec(0x18c)](_0x5a4a34);});const parentSegmentCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x176))[a2_0x6a4618(0x19c)]('ps')[a2_0x6a4618(0x15d)]('Parent\x20segment\x20management');parentSegmentCmd['command']('list\x20[pattern]')[a2_0x6a4618(0x15d)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x11b))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1c2))['option'](a2_0x6a4618(0x267),'Output\x20file\x20path')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12b),a2_0x6a4618(0x115))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x165),a2_0x6a4618(0xf7))[a2_0x6a4618(0x26d)](async(_0x1cd6af,_0x47867f)=>{const _0x248744=a2_0x6a4618,_0x34916d=new ParentSegmentPullCommand(),_0x17b041=program['opts'](),_0x3ad849=await createTDXInstance(_0x17b041),_0x1490dd=await _0x34916d['run']({'options':{..._0x17b041,..._0x47867f},'args':_0x1cd6af?[_0x1cd6af]:[],'tdx':_0x3ad849});process[_0x248744(0x18c)](_0x1490dd);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1a8))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x26a))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12b),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](async(_0x4b7564,_0x5a97de)=>{const _0x4c8283=a2_0x6a4618,_0x591273=new ParentSegmentPushCommand(),_0x159277=program[_0x4c8283(0x16a)](),_0x37891d=await createTDXInstance(_0x159277),_0x12ff6d=await _0x591273[_0x4c8283(0xd4)]({'options':{..._0x159277,..._0x5a97de},'args':_0x4b7564?[_0x4b7564]:[],'tdx':_0x37891d});process[_0x4c8283(0x18c)](_0x12ff6d);}),parentSegmentCmd['command'](a2_0x6a4618(0x294))['description'](a2_0x6a4618(0x29c))[a2_0x6a4618(0xd3)]('--master','Show\x20only\x20master\x20table\x20validation')[a2_0x6a4618(0xd3)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2ad),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x6a4618(0xd3)]('--enriched',a2_0x6a4618(0x2dc))['option']('--interval\x20<range>',a2_0x6a4618(0x208),a2_0x6a4618(0x21e))[a2_0x6a4618(0x26d)](async(_0x24ef3c,_0x46e0f0)=>{const _0x577d7b=a2_0x6a4618,_0x1e47cc=new ParentSegmentValidateCommand(),_0x2fc53a=program[_0x577d7b(0x16a)](),_0x401d9f=await createTDXInstance(_0x2fc53a),_0x265cd4=await _0x1e47cc[_0x577d7b(0xd4)]({'options':{..._0x2fc53a,..._0x46e0f0},'args':_0x24ef3c?[_0x24ef3c]:[],'tdx':_0x401d9f});process[_0x577d7b(0x18c)](_0x265cd4);}),parentSegmentCmd[a2_0x6a4618(0x1ab)]('preview\x20[name]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x261))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x23b),'Show\x20master\x20table\x20sample\x20data')['option']('--attribute\x20[name]',a2_0x6a4618(0x10d))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2ad),a2_0x6a4618(0x1b7))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x180),a2_0x6a4618(0x269))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x248),a2_0x6a4618(0x208),a2_0x6a4618(0x21e))['action'](async(_0x45e53d,_0x5b345b)=>{const _0x479885=a2_0x6a4618,_0x58cf23=new ParentSegmentPreviewCommand(),_0x41a7dd=program[_0x479885(0x16a)](),_0x23d534=await createTDXInstance(_0x41a7dd),_0x1bc3ac=await _0x58cf23[_0x479885(0xd4)]({'options':{..._0x41a7dd,..._0x5b345b},'args':_0x45e53d?[_0x45e53d]:[],'tdx':_0x23d534});process[_0x479885(0x18c)](_0x1bc3ac);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1fa))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x10f))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12b),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](async(_0x12a8fe,_0x17117c)=>{const _0x4272fa=a2_0x6a4618,_0xbb0d2e=new ParentSegmentRunCommand(),_0x142146=program[_0x4272fa(0x16a)](),_0x3dbf84=await createTDXInstance(_0x142146),_0x5f51e8=await _0xbb0d2e['run']({'options':{..._0x142146,..._0x17117c},'args':_0x12a8fe?[_0x12a8fe]:[],'tdx':_0x3dbf84});process[_0x4272fa(0x18c)](_0x5f51e8);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1a9))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x25c))[a2_0x6a4618(0xd3)]('--json',a2_0x6a4618(0x2cc))['option'](a2_0x6a4618(0x10e),'Output\x20as\x20JSON\x20Lines')[a2_0x6a4618(0x26d)](async(_0x113bb0,_0x319701)=>{const _0x5f2520=a2_0x6a4618,_0x4e23ac=new ParentSegmentFieldsCommand(),_0x2f7c81=program[_0x5f2520(0x16a)](),_0x54117e=await createTDXInstance(_0x2f7c81),_0x240336=await _0x4e23ac['run']({'options':{..._0x2f7c81,..._0x319701},'args':_0x113bb0?[_0x113bb0]:[],'tdx':_0x54117e});process[_0x5f2520(0x18c)](_0x240336);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2c3))['description'](a2_0x6a4618(0x200))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf4),a2_0x6a4618(0x185))['option'](a2_0x6a4618(0x21f),'Output\x20as\x20JSON')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x10e),a2_0x6a4618(0x2b0))[a2_0x6a4618(0x26d)](async(_0x4c8c66,_0x46bd57)=>{const _0x1112eb=a2_0x6a4618,_0x3c5990=new ParentSegmentViewCommand(),_0x12329d=program[_0x1112eb(0x16a)](),_0x4ee127=await createTDXInstance(_0x12329d),_0x548681=await _0x3c5990['run']({'options':{..._0x12329d,..._0x46bd57},'args':_0x4c8c66?[_0x4c8c66]:[],'tdx':_0x4ee127});process[_0x1112eb(0x18c)](_0x548681);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x243))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x21f),'Output\x20as\x20JSON')['option'](a2_0x6a4618(0x10e),'Output\x20as\x20JSON\x20Lines')[a2_0x6a4618(0x26d)](async(_0xa945e6,_0x339f22)=>{const _0x114e23=a2_0x6a4618,_0xb92490=new ParentSegmentDescCommand(),_0x53e26b=program[_0x114e23(0x16a)](),_0xf44b87=await createTDXInstance(_0x53e26b),_0x173c83=await _0xb92490[_0x114e23(0xd4)]({'options':{..._0x53e26b,..._0x339f22},'args':_0xa945e6?[_0xa945e6]:[],'tdx':_0xf44b87});process[_0x114e23(0x18c)](_0x173c83);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x13a))[a2_0x6a4618(0x15d)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x6a4618(0xd3)]('--json','Output\x20as\x20JSON')['option']('--jsonl',a2_0x6a4618(0x2b0))[a2_0x6a4618(0x26d)](async(_0x8c2175,_0x584e07)=>{const _0x2c8092=a2_0x6a4618,_0x180a37=new ParentSegmentSQLCommand(),_0x1c0061=program[_0x2c8092(0x16a)](),_0xb354f=await createTDXInstance(_0x1c0061),_0x5bc628=await _0x180a37[_0x2c8092(0xd4)]({'options':{..._0x1c0061,..._0x584e07},'args':_0x8c2175?[_0x8c2175]:[],'tdx':_0xb354f});process[_0x2c8092(0x18c)](_0x5bc628);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x270))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x160))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf2),a2_0x6a4618(0x2a4))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x21f),'Output\x20as\x20JSON')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x10e),a2_0x6a4618(0x2b0))[a2_0x6a4618(0x26d)](async(_0x508367,_0x2c2f82)=>{const _0x197509=a2_0x6a4618,_0x51d5eb=new ParentSegmentShowCommand(),_0x2e61ae=program['opts'](),_0x53d209=await createTDXInstance(_0x2e61ae),_0x36ba44=await _0x51d5eb[_0x197509(0xd4)]({'options':{..._0x2e61ae,..._0x2c2f82},'args':_0x508367?[_0x508367]:[],'tdx':_0x53d209});process['exit'](_0x36ba44);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x161))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x16b))[a2_0x6a4618(0x26d)](async(_0x4a143e,_0x558442)=>{const _0x29869b=a2_0x6a4618,_0x5b12ac=new UseCommand(),_0xa26e96=program['opts'](),_0x529c3c=_0x4a143e?['parent_segment',_0x4a143e]:[],_0x38b261=await _0x5b12ac[_0x29869b(0xd4)]({'options':{..._0xa26e96,..._0x558442},'args':_0x529c3c,'tdx':null});process[_0x29869b(0x18c)](_0x38b261);}),parentCmd[a2_0x6a4618(0x1ab)]('create\x20<name>')['description'](a2_0x6a4618(0x268))[a2_0x6a4618(0x2cd)](a2_0x6a4618(0x152),a2_0x6a4618(0xe6))['requiredOption'](a2_0x6a4618(0x15f),'Master\x20table\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c0),a2_0x6a4618(0x18a))['option'](a2_0x6a4618(0x179),a2_0x6a4618(0xe7))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x132),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x6a4618(0xd3)]('--timezone\x20<tz>',a2_0x6a4618(0xd2))['option'](a2_0x6a4618(0x1c6),a2_0x6a4618(0x22d))['option']('--attributes-file\x20<file>',a2_0x6a4618(0x29d))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x24f),a2_0x6a4618(0x15a))['option'](a2_0x6a4618(0x1fe),a2_0x6a4618(0x1b3))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x133),a2_0x6a4618(0x151))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x222),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x6a4618(0x26d)](async(_0x1d3467,_0x3edc31)=>{const _0x4e2ad5=a2_0x6a4618,_0x5a5f67=new ParentSegmentCreateCommand(),_0x8a53d1=program[_0x4e2ad5(0x16a)](),_0x23f45c=await createTDXInstance(_0x8a53d1),_0x44f045=await _0x5a5f67[_0x4e2ad5(0xd4)]({'options':{..._0x8a53d1,..._0x3edc31},'args':[_0x1d3467],'tdx':_0x23f45c});process['exit'](_0x44f045);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1e0))['description'](a2_0x6a4618(0x299))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c0),a2_0x6a4618(0x141))['option'](a2_0x6a4618(0x179),a2_0x6a4618(0x10b))['option']('--schedule-option\x20<value>',a2_0x6a4618(0x2da))[a2_0x6a4618(0xd3)]('--timezone\x20<tz>',a2_0x6a4618(0x2a6))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x265),a2_0x6a4618(0x2b2))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x14a),a2_0x6a4618(0x242))[a2_0x6a4618(0xd3)]('--add-behaviors\x20<json>',a2_0x6a4618(0x26e))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2a8),'Add\x20behaviors\x20from\x20JSON\x20file')['action'](async(_0xf53b02,_0x5ea3da)=>{const _0xd7198d=a2_0x6a4618,_0x5b6971=new ParentSegmentUpdateCommand(),_0xd29d1f=program['opts'](),_0x470751=await createTDXInstance(_0xd29d1f),_0x36288c=await _0x5b6971[_0xd7198d(0xd4)]({'options':{..._0xd29d1f,..._0x5ea3da},'args':[_0xf53b02],'tdx':_0x470751});process[_0xd7198d(0x18c)](_0x36288c);}),folderCmd[a2_0x6a4618(0x1ab)]('create\x20<parent_name>\x20<folder_name>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1f5))[a2_0x6a4618(0xd3)]('--description\x20<text>',a2_0x6a4618(0xd8))['option'](a2_0x6a4618(0x181),a2_0x6a4618(0x104))[a2_0x6a4618(0x26d)](async(_0x2f77fd,_0x26f9ee,_0x22fa3e)=>{const _0x1973e3=a2_0x6a4618,_0x4d2079=new SegmentFolderCreateCommand(),_0x42849c=program[_0x1973e3(0x16a)](),_0x2fb465=await createTDXInstance(_0x42849c),_0x88410b=await _0x4d2079['run']({'options':{..._0x42849c,..._0x22fa3e},'args':[_0x2f77fd,_0x26f9ee],'tdx':_0x2fb465});process['exit'](_0x88410b);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x20a))['description'](a2_0x6a4618(0x1fd))[a2_0x6a4618(0x26d)](async(_0x59a7e1,_0xc65681)=>{const _0x4d178e=a2_0x6a4618,_0x2a1adc=new ActivationsCommand(),_0x4c42c3=program['opts'](),_0x372fcf=await createTDXInstance(_0x4c42c3),_0x53f4e2=await _0x2a1adc[_0x4d178e(0xd4)]({'options':{..._0x4c42c3,..._0xc65681},'args':[_0x59a7e1],'tdx':_0x372fcf});process['exit'](_0x53f4e2);});const workflowCmd=program['command'](a2_0x6a4618(0x20c))[a2_0x6a4618(0x19c)]('wf')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x23c)),wfProjectCmd=workflowCmd['command']('project')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x29a)),wfProjectListAction=async(_0x464a80,_0x18deb7)=>{const _0x174c6c=a2_0x6a4618,_0x121bb3=new WorkflowProjectsCommand(),_0x3408d2=program[_0x174c6c(0x16a)](),_0x2709ab=await createTDXInstance(_0x3408d2),_0x1dcd6d=await _0x121bb3[_0x174c6c(0xd4)]({'options':{..._0x3408d2,..._0x18deb7},'args':_0x464a80?[_0x464a80]:[],'tdx':_0x2709ab});process['exit'](_0x1dcd6d);};wfProjectCmd['command'](a2_0x6a4618(0x108))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xe8))[a2_0x6a4618(0x26d)](wfProjectListAction),workflowCmd[a2_0x6a4618(0x1ab)]('projects\x20[pattern]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x143))[a2_0x6a4618(0x26d)](wfProjectListAction);const wfWorkflowListAction=async(_0xbe184a,_0x5a4461)=>{const _0x27d494=a2_0x6a4618,_0x5df911=new WorkflowWorkflowsCommand(),_0x457779=program[_0x27d494(0x16a)](),_0x247889=await createTDXInstance(_0x457779),_0x52b5a4=await _0x5df911[_0x27d494(0xd4)]({'options':{..._0x457779,..._0x5a4461},'args':_0xbe184a?[_0xbe184a]:[],'tdx':_0x247889});process[_0x27d494(0x18c)](_0x52b5a4);};workflowCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x257))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x22c))[a2_0x6a4618(0x26d)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x6a4618(0x1ab)]('session')[a2_0x6a4618(0x15d)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x4ee00a,_0x245ff3)=>{const _0x5394c6=a2_0x6a4618,_0x1602d8=new WorkflowSessionsCommand(),_0x4f6a5e=program[_0x5394c6(0x16a)](),_0x539d06=await createTDXInstance(_0x4f6a5e),_0x19a669=await _0x1602d8[_0x5394c6(0xd4)]({'options':{..._0x4f6a5e,..._0x245ff3},'args':_0x4ee00a?[_0x4ee00a]:[],'tdx':_0x539d06});process['exit'](_0x19a669);};wfSessionCmd['command'](a2_0x6a4618(0x2ae))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x264))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12d),a2_0x6a4618(0x25b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xfb),a2_0x6a4618(0x27d))['option'](a2_0x6a4618(0x233),a2_0x6a4618(0x11c))['action'](wfSessionListAction),workflowCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x28b))[a2_0x6a4618(0x15d)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option'](a2_0x6a4618(0x12d),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a2_0x6a4618(0xfb),a2_0x6a4618(0x27d))['option'](a2_0x6a4618(0x233),a2_0x6a4618(0x11c))[a2_0x6a4618(0x26d)](wfSessionListAction);const wfAttemptListAction=async(_0x1c2841,_0x2e16b6)=>{const _0x3058f9=a2_0x6a4618,_0xc7cb5b=new WorkflowAttemptsCommand(),_0x4ecbef=program[_0x3058f9(0x16a)](),_0x5ef484=await createTDXInstance(_0x4ecbef),_0x207245=await _0xc7cb5b['run']({'options':{..._0x4ecbef,..._0x2e16b6},'args':_0x1c2841?[_0x1c2841]:[],'tdx':_0x5ef484});process['exit'](_0x207245);},attemptCmd=workflowCmd['command'](a2_0x6a4618(0x24d))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x218))[a2_0x6a4618(0x1e9)](a2_0x6a4618(0x20b),a2_0x6a4618(0x1a4))[a2_0x6a4618(0x1e9)]('[action]',a2_0x6a4618(0x14d))[a2_0x6a4618(0x1e9)](a2_0x6a4618(0x279),a2_0x6a4618(0x19d))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x146),a2_0x6a4618(0x1c0))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1bf),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x6a4618(0x134),'Resume\x20from\x20specific\x20task\x20(retry)')['option'](a2_0x6a4618(0x24b),a2_0x6a4618(0x2e6))[a2_0x6a4618(0xd3)]('--force','Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x25d),a2_0x6a4618(0x1f4))[a2_0x6a4618(0x26d)](async(_0x21270c,_0x51f785,_0x226d26,_0x122bc3)=>{const _0x2a31d4=a2_0x6a4618;if(_0x21270c===_0x2a31d4(0x2b3)){await wfAttemptListAction(_0x51f785,_0x122bc3);return;}if(!_0x21270c){attemptCmd[_0x2a31d4(0x2d2)]();return;}const _0xf9a00f=program['opts'](),_0x12f645=await createTDXInstance(_0xf9a00f);let _0x6f083b=0x0;if(!_0x51f785){const _0x404536=new WorkflowAttemptCommand();_0x6f083b=await _0x404536[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':[_0x21270c],'tdx':_0x12f645});}else{if(_0x51f785===_0x2a31d4(0x21d)){const _0x53fc1d=new WorkflowLogsCommand();_0x6f083b=await _0x53fc1d[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':_0x226d26?[_0x21270c,_0x226d26]:[_0x21270c],'tdx':_0x12f645});}else{if(_0x51f785===_0x2a31d4(0x211)){const _0x569f39=new WorkflowTasksCommand();_0x6f083b=await _0x569f39[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':[_0x21270c],'tdx':_0x12f645});}else{if(_0x51f785===_0x2a31d4(0x155)){const _0x53e19a=new WorkflowKillCommand();_0x6f083b=await _0x53e19a[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':[_0x21270c],'tdx':_0x12f645});}else{if(_0x51f785==='retry'){const _0x2cf918=new WorkflowRetryCommand();_0x6f083b=await _0x2cf918[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':[_0x2a31d4(0x263)+_0x21270c],'tdx':_0x12f645});}else console['error'](_0x2a31d4(0x14b)+_0x51f785),console[_0x2a31d4(0x227)](_0x2a31d4(0x29f)),_0x6f083b=0x1;}}}}process[_0x2a31d4(0x18c)](_0x6f083b);});attemptCmd[a2_0x6a4618(0x1ab)]('list\x20[project]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1ff))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x25d),a2_0x6a4618(0x2e2))[a2_0x6a4618(0x26d)](wfAttemptListAction),workflowCmd['command'](a2_0x6a4618(0x2ce))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xdc))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x25d),a2_0x6a4618(0x2e2))['action'](wfAttemptListAction),workflowCmd['command'](a2_0x6a4618(0x170))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2ba))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1aa),a2_0x6a4618(0xd6))['option'](a2_0x6a4618(0x24b),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x6a4618(0x26d)](async(_0x3482df,_0x328a32)=>{const _0x40aec7=a2_0x6a4618,_0x356e96=new WorkflowRetryCommand(),_0xc762b4=program['opts'](),_0x1d9405=await createTDXInstance(_0xc762b4),_0x49c688=await _0x356e96[_0x40aec7(0xd4)]({'options':{..._0xc762b4,..._0x328a32},'args':[_0x3482df],'tdx':_0x1d9405});process[_0x40aec7(0x18c)](_0x49c688);}),workflowCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xfe))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x135))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x18f),a2_0x6a4618(0x113),(_0x30c103,_0x1eb3cc=[])=>[..._0x1eb3cc,_0x30c103],[])[a2_0x6a4618(0xd3)](a2_0x6a4618(0x22e),a2_0x6a4618(0x1eb))[a2_0x6a4618(0x26d)](async(_0x52693e,_0x408c22)=>{const _0x34658f=a2_0x6a4618,_0x35207d=new WorkflowRunCommand(),_0x5130bd=program['opts'](),_0x28d6f7=await createTDXInstance(_0x5130bd),_0x323e36=await _0x35207d[_0x34658f(0xd4)]({'options':{..._0x5130bd,..._0x408c22},'args':[_0x52693e],'tdx':_0x28d6f7});process[_0x34658f(0x18c)](_0x323e36);}),workflowCmd['command'](a2_0x6a4618(0xf0))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x154))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x201),a2_0x6a4618(0x112))[a2_0x6a4618(0x26d)](async(_0x7fe6e0,_0x2638cc,_0x176b40)=>{const _0x202210=a2_0x6a4618,_0x199eb2=new WorkflowDownloadCommand(),_0x2e4b43=program[_0x202210(0x16a)](),_0x527e1f=await createTDXInstance(_0x2e4b43),_0x4e79b8=await _0x199eb2[_0x202210(0xd4)]({'options':{..._0x2e4b43,..._0x176b40},'args':[_0x7fe6e0,_0x2638cc||'.'],'tdx':_0x527e1f});process['exit'](_0x4e79b8);}),workflowCmd['command']('push\x20[project-name-or-dir]')['description'](a2_0x6a4618(0x1de))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf9),'Override\x20project\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x201),a2_0x6a4618(0x187))[a2_0x6a4618(0xd3)]('--skip-validation',a2_0x6a4618(0x256))['action'](async(_0x1070ae,_0x5ba18f)=>{const _0x576874=a2_0x6a4618,_0x139f2b=new WorkflowPushCommand(),_0x327b8b=program[_0x576874(0x16a)](),_0x49d418=await createTDXInstance(_0x327b8b),_0x593db1=await _0x139f2b[_0x576874(0xd4)]({'options':{..._0x327b8b,..._0x5ba18f},'args':_0x1070ae?[_0x1070ae]:[],'tdx':_0x49d418});process[_0x576874(0x18c)](_0x593db1);}),workflowCmd['command'](a2_0x6a4618(0x2df))['description'](a2_0x6a4618(0x1a2))[a2_0x6a4618(0x26d)](async(_0x56c78f,_0x12c69a)=>{const _0x565859=a2_0x6a4618,_0x1049a6=new WorkflowDeleteCommand(),_0x3cec90=program[_0x565859(0x16a)](),_0x2f59c5=await createTDXInstance(_0x3cec90),_0x3635be=await _0x1049a6[_0x565859(0xd4)]({'options':{..._0x3cec90,..._0x12c69a},'args':[_0x56c78f],'tdx':_0x2f59c5});process['exit'](_0x3635be);});const jobCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1dc))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xf8)),jobListAction=async _0x2b045e=>{const _0x1e4cbf=a2_0x6a4618,_0x408e9f=new JobListCommand(),_0x2d0af0=program[_0x1e4cbf(0x16a)](),_0x131dd6=await createTDXInstance(_0x2d0af0),_0x3550d7=await _0x408e9f[_0x1e4cbf(0xd4)]({'options':{..._0x2d0af0,..._0x2b045e},'args':[],'tdx':_0x131dd6});process[_0x1e4cbf(0x18c)](_0x3550d7);};function a2_0x3ba0(_0x5a2f38,_0x1f4457){_0x5a2f38=_0x5a2f38-0xcd;const _0x25aa51=a2_0x25aa();let _0x3ba021=_0x25aa51[_0x5a2f38];return _0x3ba021;}jobCmd['command'](a2_0x6a4618(0x2b3))[a2_0x6a4618(0x15d)]('List\x20jobs')[a2_0x6a4618(0xd3)]('--status\x20<status>',a2_0x6a4618(0x13c))[a2_0x6a4618(0x26d)](jobListAction),program[a2_0x6a4618(0x1ab)]('jobs',{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0xee))[a2_0x6a4618(0xd3)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),jobCmd['command'](a2_0x6a4618(0x221))['description'](a2_0x6a4618(0x1ec))[a2_0x6a4618(0x26d)](async(_0x29847c,_0xb60baf)=>{const _0x349ce2=a2_0x6a4618,_0x3bea23=new JobShowCommand(),_0x1a58e2=program[_0x349ce2(0x16a)](),_0xc4af01=await createTDXInstance(_0x1a58e2),_0x60627f=await _0x3bea23[_0x349ce2(0xd4)]({'options':{..._0x1a58e2,..._0xb60baf},'args':[_0x29847c],'tdx':_0xc4af01});process[_0x349ce2(0x18c)](_0x60627f);}),jobCmd[a2_0x6a4618(0x1ab)]('kill\x20<job-id>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x28d))[a2_0x6a4618(0x26d)](async(_0x379404,_0x10fe99)=>{const _0x4c429d=a2_0x6a4618,_0x2c5e51=new JobKillCommand(),_0x370de7=program[_0x4c429d(0x16a)](),_0x85fe9c=await createTDXInstance(_0x370de7),_0x407feb=await _0x2c5e51[_0x4c429d(0xd4)]({'options':{..._0x370de7,..._0x10fe99},'args':[_0x379404],'tdx':_0x85fe9c});process[_0x4c429d(0x18c)](_0x407feb);}),jobCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1bd))['description'](a2_0x6a4618(0x2d4))['option'](a2_0x6a4618(0x28a),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x6a4618(0x139))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c8),'Read\x20query\x20from\x20file')['option'](a2_0x6a4618(0x178),a2_0x6a4618(0x2be),a2_0x6a4618(0x22f))[a2_0x6a4618(0x26d)](async(_0x4a5ef8,_0x2e88f8)=>{const _0x396bb2=a2_0x6a4618,_0xf6d2d4=new JobSubmitCommand(),_0x57783c=program['opts'](),_0x4cfde2=await createTDXInstance(_0x57783c),_0x3325e6=await _0xf6d2d4[_0x396bb2(0xd4)]({'options':{..._0x57783c,..._0x2e88f8},'args':_0x4a5ef8?[_0x4a5ef8]:[],'tdx':_0x4cfde2});process['exit'](_0x3325e6);}),jobCmd['command'](a2_0x6a4618(0x17d))['description'](a2_0x6a4618(0x1b1))['action'](async(_0x2bc73b,_0x3e7dd5)=>{const _0x1a4843=a2_0x6a4618,_0x318714=new JobResultCommand(),_0x3fa1ce=program[_0x1a4843(0x16a)](),_0x82061e=await createTDXInstance(_0x3fa1ce),_0x5f5d95=await _0x318714[_0x1a4843(0xd4)]({'options':{..._0x3fa1ce,..._0x3e7dd5},'args':[_0x2bc73b],'tdx':_0x82061e});process['exit'](_0x5f5d95);});const llmCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1d7))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x292));llmCmd[a2_0x6a4618(0x1ab)]('use\x20<project-name>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1ba))['action'](async(_0x3458dd,_0x2a2b95)=>{const _0x3469b8=new LLMUseCommand(),_0x3f2304=program['opts'](),_0x65df7a=await createTDXInstance(_0x3f2304),_0x5572f1=await _0x3469b8['run']({'options':{..._0x3f2304,..._0x2a2b95},'args':[_0x3458dd],'tdx':_0x65df7a});process['exit'](_0x5572f1);}),llmCmd[a2_0x6a4618(0x1ab)]('models')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2a1))[a2_0x6a4618(0x26d)](async _0x150f9e=>{const _0x2587b4=a2_0x6a4618,_0x1b6a91=new LLMModelsCommand(),_0x54d74f=program[_0x2587b4(0x16a)](),_0x52e89b=await createTDXInstance(_0x54d74f),_0x13bc50=await _0x1b6a91[_0x2587b4(0xd4)]({'options':{..._0x54d74f,..._0x150f9e},'args':[],'tdx':_0x52e89b});process[_0x2587b4(0x18c)](_0x13bc50);});const projectCmd=llmCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x130))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2ca)),llmProjectListAction=async(_0x15a92b,_0x2ba457)=>{const _0x5cc151=a2_0x6a4618,_0x2f6cda=new LLMProjectsCommand(),_0x42c1c=program[_0x5cc151(0x16a)](),_0x46b569=await createTDXInstance(_0x42c1c),_0x3cf8f6=await _0x2f6cda['run']({'options':{..._0x42c1c,..._0x2ba457},'args':_0x15a92b?[_0x15a92b]:[],'tdx':_0x46b569});process[_0x5cc151(0x18c)](_0x3cf8f6);};projectCmd['command'](a2_0x6a4618(0x108))['description'](a2_0x6a4618(0x2b9))['action'](llmProjectListAction),llmCmd['command']('projects\x20[pattern]')['description'](a2_0x6a4618(0x28e))[a2_0x6a4618(0x26d)](llmProjectListAction),projectCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x235))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x245))['option'](a2_0x6a4618(0x2c0),a2_0x6a4618(0xec))['action'](async(_0x4b7c42,_0x22a5c0)=>{const _0x2a3dd7=a2_0x6a4618,_0x35b488=new LLMProjectCreateCommand(),_0x2e7809=program['opts'](),_0x4cbf10=await createTDXInstance(_0x2e7809),_0x14a73d=await _0x35b488['run']({'options':{..._0x2e7809,..._0x22a5c0},'args':[_0x4b7c42],'tdx':_0x4cbf10});process[_0x2a3dd7(0x18c)](_0x14a73d);}),projectCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2bb))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2db))[a2_0x6a4618(0x26d)](async(_0x446dad,_0x307545)=>{const _0x35dadf=a2_0x6a4618,_0x538346=new LLMProjectDeleteCommand(),_0x5eb824=program[_0x35dadf(0x16a)](),_0x10f29a=await createTDXInstance(_0x5eb824),_0x50fb1c=await _0x538346[_0x35dadf(0xd4)]({'options':{..._0x5eb824,..._0x307545},'args':[_0x446dad],'tdx':_0x10f29a});process['exit'](_0x50fb1c);}),projectCmd[a2_0x6a4618(0x1ab)]('backup\x20<name>')['description']('Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder')['option'](a2_0x6a4618(0xd5),'Output\x20folder\x20(default:\x20{project_name}.llm)')['option'](a2_0x6a4618(0x149),a2_0x6a4618(0x29b))[a2_0x6a4618(0x26d)](async(_0x57a458,_0x5f340d)=>{const _0x316455=a2_0x6a4618,_0x349008=new LLMProjectBackupCommand(),_0x287cb6=program[_0x316455(0x16a)](),_0x44612f=await createTDXInstance(_0x287cb6),_0x6bca45=await _0x349008['run']({'options':{..._0x287cb6,..._0x5f340d},'args':[_0x57a458],'tdx':_0x44612f});process[_0x316455(0x18c)](_0x6bca45);}),projectCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x16f))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x102))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1a0),a2_0x6a4618(0x193))['option'](a2_0x6a4618(0x149),a2_0x6a4618(0x1c1))[a2_0x6a4618(0x26d)](async(_0x13ea2d,_0x3df90e)=>{const _0x2d0fe6=a2_0x6a4618,_0x1d5b9f=new LLMProjectRestoreCommand(),_0x10e6f5=program[_0x2d0fe6(0x16a)](),_0x3fa755=await createTDXInstance(_0x10e6f5),_0x11e5c4=await _0x1d5b9f[_0x2d0fe6(0xd4)]({'options':{..._0x10e6f5,..._0x3df90e},'args':[_0x13ea2d],'tdx':_0x3fa755});process[_0x2d0fe6(0x18c)](_0x11e5c4);});const agentCmd=llmCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x23d))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2e3)),llmAgentListAction=async(_0x5ced27,_0x4422df)=>{const _0x5e404e=a2_0x6a4618,_0x279b4=new LLMAgentsCommand(),_0x3a79ff=program[_0x5e404e(0x16a)](),_0x237cb3=await createTDXInstance(_0x3a79ff),_0x353d40=await _0x279b4['run']({'options':{..._0x3a79ff,..._0x4422df},'args':_0x5ced27?[_0x5ced27]:[],'tdx':_0x237cb3});process[_0x5e404e(0x18c)](_0x353d40);};agentCmd['command']('list\x20[pattern]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x153))[a2_0x6a4618(0x26d)](llmAgentListAction),llmCmd['command'](a2_0x6a4618(0x117))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x166))[a2_0x6a4618(0x26d)](llmAgentListAction),agentCmd[a2_0x6a4618(0x1ab)]('show\x20<agent-name>')['description'](a2_0x6a4618(0x20e))['action'](async(_0x11591c,_0x208fb1)=>{const _0x52d88a=a2_0x6a4618,_0x3b0127=new LLMAgentShowCommand(),_0x4b22b0=program[_0x52d88a(0x16a)](),_0x316627=await createTDXInstance(_0x4b22b0),_0x5ef8c5=await _0x3b0127['run']({'options':{..._0x4b22b0,..._0x208fb1},'args':[_0x11591c],'tdx':_0x316627});process['exit'](_0x5ef8c5);}),agentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x235))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x14e))[a2_0x6a4618(0xd3)]('--system-prompt\x20<text>',a2_0x6a4618(0x238))[a2_0x6a4618(0xd3)]('--model\x20<name>',a2_0x6a4618(0x283),a2_0x6a4618(0xea))[a2_0x6a4618(0xd3)]('--starter-message\x20<text>',a2_0x6a4618(0x2d3))['option'](a2_0x6a4618(0x172),a2_0x6a4618(0x2af),'4')['option']('--temperature\x20<n>',a2_0x6a4618(0x1b5),'0.7')['action'](async(_0xafebc,_0x96b850)=>{const _0x133950=a2_0x6a4618,_0x5ccc0d=new LLMAgentCreateCommand(),_0x52ca7c=program['opts'](),_0x1a0a91=await createTDXInstance(_0x52ca7c),_0x3b0e97=await _0x5ccc0d[_0x133950(0xd4)]({'options':{..._0x52ca7c,..._0x96b850},'args':[_0xafebc],'tdx':_0x1a0a91});process[_0x133950(0x18c)](_0x3b0e97);}),agentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1c4))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x244))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x24e),'Agent\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2dd),'Agent\x20prompt/instructions')['option']('--description\x20<text>',a2_0x6a4618(0x1a5))['option'](a2_0x6a4618(0x277),'Starter\x20message')[a2_0x6a4618(0x26d)](async(_0x109b1a,_0x5d87b7)=>{const _0x452da7=a2_0x6a4618,_0x11dac5=new LLMAgentUpdateCommand(),_0x4d2f0d=program[_0x452da7(0x16a)](),_0x4c84ac=await createTDXInstance(_0x4d2f0d),_0x5066cd=await _0x11dac5[_0x452da7(0xd4)]({'options':{..._0x4d2f0d,..._0x5d87b7},'args':[_0x109b1a],'tdx':_0x4c84ac});process[_0x452da7(0x18c)](_0x5066cd);}),agentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xf5))[a2_0x6a4618(0x15d)]('Delete\x20an\x20agent')[a2_0x6a4618(0x26d)](async(_0x347179,_0x255044)=>{const _0x5e4491=a2_0x6a4618,_0x2db9bd=new LLMAgentDeleteCommand(),_0x44b7be=program[_0x5e4491(0x16a)](),_0x1a4392=await createTDXInstance(_0x44b7be),_0x422122=await _0x2db9bd[_0x5e4491(0xd4)]({'options':{..._0x44b7be,..._0x255044},'args':[_0x347179],'tdx':_0x1a4392});process[_0x5e4491(0x18c)](_0x422122);}),llmCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x12a))['description'](a2_0x6a4618(0x12e))['option'](a2_0x6a4618(0x17e),a2_0x6a4618(0x109))[a2_0x6a4618(0x26d)](async(_0x4ab4a6,_0x3ad1cb)=>{const _0x1b4985=a2_0x6a4618,_0x3d801a=new LLMHistoryCommand(),_0x4fd66c=program[_0x1b4985(0x16a)](),_0x4e7ce1=await createTDXInstance(_0x4fd66c),_0x22dcbc=await _0x3d801a[_0x1b4985(0xd4)]({'options':{..._0x4fd66c,..._0x3ad1cb},'args':_0x4ab4a6?[_0x4ab4a6]:[],'tdx':_0x4e7ce1});process[_0x1b4985(0x18c)](_0x22dcbc);}),llmCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x142))['description']('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x6a4618(0xd3)]('--port\x20<number>',a2_0x6a4618(0x247),'4000')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x16c),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x6a4618(0xd3)]('--agent\x20<name>',a2_0x6a4618(0x2c6))[a2_0x6a4618(0x26d)](async _0x1b0dc1=>{const _0x83938a=a2_0x6a4618,_0xed76f6=new LLMProxyCommand(),_0x24d1bb=program[_0x83938a(0x16a)](),_0x407d0c=await createTDXInstance(_0x24d1bb),_0x20a178={..._0x1b0dc1,'port':_0x1b0dc1[_0x83938a(0x17a)]?parseInt(_0x1b0dc1[_0x83938a(0x17a)],0xa):undefined},_0xdf861f=await _0xed76f6[_0x83938a(0xd4)]({'options':{..._0x24d1bb,..._0x20a178},'args':[],'tdx':_0x407d0c});process[_0x83938a(0x18c)](_0xdf861f);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x183))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x210))[a2_0x6a4618(0xd3)]('--model\x20<name>',a2_0x6a4618(0x1cc),a2_0x6a4618(0x1f6))['option'](a2_0x6a4618(0x1e3),a2_0x6a4618(0x118))[a2_0x6a4618(0xfd)]()[a2_0x6a4618(0xe9)](!![])[a2_0x6a4618(0x266)](a2_0x6a4618(0xce),'\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\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20--\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20previous\x20Claude\x20Code\x20session\x0a\x20\x20tdx\x20claude\x20usage\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\x20Output\x20usage\x20as\x20JSON')[a2_0x6a4618(0x26d)](async(_0x2c831e,_0x2dcf17)=>{const _0xc20e08=a2_0x6a4618,_0x261540=program[_0xc20e08(0x16a)](),_0x1a0f57=Array[_0xc20e08(0x289)](_0x2c831e)?_0x2c831e:[];if(_0x1a0f57[0x0]===_0xc20e08(0x2d7)){const _0xbc6053=new ClaudeStatuslineCommand(),_0x5aba4f=await _0xbc6053[_0xc20e08(0xd4)]({'options':{..._0x261540,..._0x2dcf17},'args':_0x1a0f57[_0xc20e08(0x27b)](0x1),'tdx':null});process[_0xc20e08(0x18c)](_0x5aba4f);}if(_0x1a0f57[0x0]==='usage'){const _0x70b94c=new ClaudeUsageCommand(),_0x11b002=await _0x70b94c[_0xc20e08(0xd4)]({'options':{..._0x261540,..._0x2dcf17},'args':_0x1a0f57['slice'](0x1),'tdx':null});process[_0xc20e08(0x18c)](_0x11b002);}const _0x354170=new ClaudeCommand(),_0x4571b6=await createTDXInstance(_0x261540),_0x18c449=await _0x354170[_0xc20e08(0xd4)]({'options':{..._0x261540,..._0x2dcf17},'args':_0x1a0f57,'tdx':_0x4571b6});process[_0xc20e08(0x18c)](_0x18c449);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x173))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x298))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xed),'Clear\x20session\x20context')[a2_0x6a4618(0x26d)](async _0x41edf5=>{const _0x2d110e=a2_0x6a4618,_0x209e31=new ContextCommand(),_0x584683=program['opts'](),_0x5e9cf1=await _0x209e31[_0x2d110e(0xd4)]({'options':{..._0x584683,..._0x41edf5},'args':[],'tdx':null});process['exit'](_0x5e9cf1);}),program[a2_0x6a4618(0x1ab)]('use\x20[resource]\x20[value]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x249))['option'](a2_0x6a4618(0xed),a2_0x6a4618(0x18b))[a2_0x6a4618(0x26d)](async(_0x4a7ca6,_0x476e88,_0x4ec16c)=>{const _0x4bdb4b=a2_0x6a4618,_0x11431e=new UseCommand(),_0x391570=program[_0x4bdb4b(0x16a)](),_0x3ae1c8=[];if(_0x4a7ca6)_0x3ae1c8[_0x4bdb4b(0x1e6)](_0x4a7ca6);if(_0x476e88)_0x3ae1c8[_0x4bdb4b(0x1e6)](_0x476e88);const _0x2492af=await _0x11431e[_0x4bdb4b(0xd4)]({'options':{..._0x391570,..._0x4ec16c},'args':_0x3ae1c8,'tdx':null});process[_0x4bdb4b(0x18c)](_0x2492af);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x18e))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2a2))['option']('--last',a2_0x6a4618(0x28f))[a2_0x6a4618(0x26d)](async _0x3c3e14=>{const _0x49795f=a2_0x6a4618,_0x206d44=new ChatsCommand(),_0x11b05f=program[_0x49795f(0x16a)](),_0x2dcb44=await createTDXInstance(_0x11b05f),_0x4f90a3=await _0x206d44[_0x49795f(0xd4)]({'options':{..._0x11b05f,..._0x3c3e14},'args':[],'tdx':_0x2dcb44});process[_0x49795f(0x18c)](_0x4f90a3);});const authCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1cf))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x240));async function runAuthStatusCommand(_0x4a3b7d){const _0x374afb=a2_0x6a4618,_0x2ab233=new AuthStatusCommand(),_0x36b353=program['opts'](),_0x54062e=await createTDXInstance(_0x36b353),_0xbdf6a7=await _0x2ab233[_0x374afb(0xd4)]({'options':{..._0x36b353,..._0x4a3b7d},'args':[],'tdx':_0x54062e});process[_0x374afb(0x18c)](_0xbdf6a7);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x6a4618(0x1ab)]('status')['description'](a2_0x6a4618(0x2e7))[a2_0x6a4618(0x26d)](runAuthStatusCommand),authCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xfa))['description'](a2_0x6a4618(0x2cf))[a2_0x6a4618(0x266)](a2_0x6a4618(0xce),a2_0x6a4618(0x2d6))[a2_0x6a4618(0x26d)](async _0x310eb3=>{const _0x913334=a2_0x6a4618,_0x73feac=new AuthSetupCommand(),_0x15f264=program['opts'](),_0x45637e=await createTDXInstance(_0x15f264),_0x22b7a7=await _0x73feac['run']({'options':{..._0x15f264,..._0x310eb3},'args':[],'tdx':_0x45637e});process[_0x913334(0x18c)](_0x22b7a7);}),authCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x177))['description'](a2_0x6a4618(0x1fb))['addHelpText']('after',a2_0x6a4618(0x101))[a2_0x6a4618(0x26d)](async _0x15151e=>{const _0x2a7b77=a2_0x6a4618,_0x150e63=new AuthClearCommand(),_0x6129c8=program[_0x2a7b77(0x16a)](),_0x2cdffc=await _0x150e63[_0x2a7b77(0xd4)]({'options':{..._0x6129c8,..._0x15151e},'args':[],'tdx':null});process[_0x2a7b77(0x18c)](_0x2cdffc);});const userCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x28c))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x11d)),userListAction=async _0x1428da=>{const _0x568ab4=a2_0x6a4618,_0x32f223=new UserListCommand(),_0x3ebd68=program[_0x568ab4(0x16a)](),_0x46a94f=await createTDXInstance(_0x3ebd68),_0x196b47=await _0x32f223[_0x568ab4(0xd4)]({'options':{..._0x3ebd68,..._0x1428da},'args':[],'tdx':_0x46a94f});process[_0x568ab4(0x18c)](_0x196b47);};userCmd[a2_0x6a4618(0x26d)](async _0x20dacc=>{const _0x5463fb=a2_0x6a4618,_0x22361c=new UserCommand(),_0x21580b=program['opts'](),_0x3c9436=await createTDXInstance(_0x21580b),_0x47a634=await _0x22361c['run']({'options':{..._0x21580b,..._0x20dacc},'args':[],'tdx':_0x3c9436});process[_0x5463fb(0x18c)](_0x47a634);}),userCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2b3))[a2_0x6a4618(0x15d)]('List\x20all\x20users\x20in\x20the\x20account')['action'](userListAction),program['command'](a2_0x6a4618(0x2ab))['description']('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')['action'](userListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1f2))['description'](a2_0x6a4618(0x128))['action'](async _0x39314f=>{const _0x407632=a2_0x6a4618,_0x55e139=new ProfilesCommand(),_0x217f72=program[_0x407632(0x16a)](),_0x1aa905=await _0x55e139[_0x407632(0xd4)]({'options':{..._0x217f72,..._0x39314f},'args':[],'tdx':null});process['exit'](_0x1aa905);});const engageCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x290))[a2_0x6a4618(0x15d)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0xd4aa6c=>{return async(_0x233e9b,_0x1460c3)=>{const _0x4c4c55=a2_0x3ba0,_0x3adc93=new _0xd4aa6c(),_0x3cf989=program['opts'](),_0x5b4ade=await createTDXInstance(_0x3cf989),_0x56f168=await _0x3adc93['run']({'options':{..._0x3cf989,..._0x1460c3},'args':[_0x233e9b],'tdx':_0x5b4ade});process[_0x4c4c55(0x18c)](_0x56f168);};},createEngageNoArgAction=_0x3d0eba=>{return async _0x635bea=>{const _0x3d0159=a2_0x3ba0,_0x4575b7=new _0x3d0eba(),_0x1fe87a=program[_0x3d0159(0x16a)](),_0x27599f=await createTDXInstance(_0x1fe87a),_0x29d2a7=await _0x4575b7[_0x3d0159(0xd4)]({'options':{..._0x1fe87a,..._0x635bea},'args':[],'tdx':_0x27599f});process['exit'](_0x29d2a7);};},campaignCmd=engageCmd[a2_0x6a4618(0x1ab)]('campaign')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1f7)),campaignListAction=async(_0x5793a0,_0x4781f5)=>{const _0x514842=a2_0x6a4618,_0x1b706c=new EngageCampaignsCommand(),_0xf296cc=program[_0x514842(0x16a)](),_0x1c7074=await createTDXInstance(_0xf296cc),_0x195223=await _0x1b706c[_0x514842(0xd4)]({'options':{..._0xf296cc,..._0x4781f5},'args':_0x5793a0?[_0x5793a0]:[],'tdx':_0x1c7074});process[_0x514842(0x18c)](_0x195223);};campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x108))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x220))['option']('--type\x20<type>',a2_0x6a4618(0x2d9))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12d),a2_0x6a4618(0x1f8))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),a2_0x6a4618(0x184))[a2_0x6a4618(0x26d)](campaignListAction),engageCmd['command'](a2_0x6a4618(0x197))[a2_0x6a4618(0x15d)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x6a4618(0xd3)]('--type\x20<type>',a2_0x6a4618(0x2d9))['option'](a2_0x6a4618(0x12d),a2_0x6a4618(0x1f8))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0x26d)](campaignListAction),campaignCmd['command']('show\x20<name-or-id>')[a2_0x6a4618(0x15d)]('Show\x20campaign\x20details')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0xd3)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x202))[a2_0x6a4618(0x15d)]('Create\x20a\x20new\x20campaign')[a2_0x6a4618(0x2cd)](a2_0x6a4618(0xf9),'Campaign\x20name')[a2_0x6a4618(0x2cd)](a2_0x6a4618(0x26c),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x6a4618(0xd3)]('--workspace\x20<name>','Workspace\x20name\x20(required)')['option']('--description\x20<desc>',a2_0x6a4618(0x1a7))[a2_0x6a4618(0xd3)]('--segment\x20<path>',a2_0x6a4618(0x20d))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x215),a2_0x6a4618(0x20f))['option'](a2_0x6a4618(0xeb),a2_0x6a4618(0x2d8))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1b0),a2_0x6a4618(0x22b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1b2),a2_0x6a4618(0x229))[a2_0x6a4618(0x26d)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command']('update\x20<name-or-id>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x275))[a2_0x6a4618(0xd3)]('--workspace\x20<name>',a2_0x6a4618(0x184))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf9),a2_0x6a4618(0x272))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x297),a2_0x6a4618(0x1a7))['option'](a2_0x6a4618(0x291),a2_0x6a4618(0x20d))[a2_0x6a4618(0xd3)]('--email-sender-id\x20<id>',a2_0x6a4618(0x20f))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xeb),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1b0),a2_0x6a4618(0x22b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1b2),a2_0x6a4618(0x229))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x6a4618(0xe5))[a2_0x6a4618(0x15d)]('Delete\x20a\x20campaign')[a2_0x6a4618(0xd3)]('--workspace\x20<name>','Workspace\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0xd1),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x205))['description'](a2_0x6a4618(0x21a))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x10c))[a2_0x6a4618(0x15d)]('Pause\x20a\x20campaign')[a2_0x6a4618(0xd3)]('--workspace\x20<name>','Workspace\x20name')[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x6a4618(0x1ab)]('resume\x20<name-or-id>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x253))[a2_0x6a4618(0xd3)]('--workspace\x20<name>',a2_0x6a4618(0x184))[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2de))[a2_0x6a4618(0x15d)]('Duplicate\x20a\x20campaign')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),a2_0x6a4618(0x184))[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command']('template')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x29e)),templateListAction=async(_0x11c243,_0x519d56)=>{const _0x13455e=a2_0x6a4618,_0x2e6f12=new EngageTemplatesCommand(),_0x1f74b4=program[_0x13455e(0x16a)](),_0x58a12a=await createTDXInstance(_0x1f74b4),_0xc65296=await _0x2e6f12['run']({'options':{..._0x1f74b4,..._0x519d56},'args':_0x11c243?[_0x11c243]:[],'tdx':_0x58a12a});process[_0x13455e(0x18c)](_0xc65296);};templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x108))['description'](a2_0x6a4618(0x295))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0x26d)](templateListAction),engageCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2c7))[a2_0x6a4618(0x15d)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')['option'](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0x26d)](templateListAction),templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x192))[a2_0x6a4618(0x15d)]('Show\x20email\x20template\x20details')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),a2_0x6a4618(0x184))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x26f),a2_0x6a4618(0x23e))[a2_0x6a4618(0x26d)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x202))['description'](a2_0x6a4618(0x246))['requiredOption']('--name\x20<name>',a2_0x6a4618(0x2c9))[a2_0x6a4618(0x2cd)](a2_0x6a4618(0x232),a2_0x6a4618(0x2aa))[a2_0x6a4618(0x2cd)](a2_0x6a4618(0x1d3),a2_0x6a4618(0x250))['option']('--workspace\x20<name>',a2_0x6a4618(0x190))[a2_0x6a4618(0xd3)]('--plaintext\x20<text>','Plaintext\x20template\x20content')['option'](a2_0x6a4618(0x106),a2_0x6a4618(0x1d6))[a2_0x6a4618(0x26d)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x169))['description']('Update\x20an\x20email\x20template')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),a2_0x6a4618(0x184))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf9),a2_0x6a4618(0x1da))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x232),a2_0x6a4618(0x2aa))[a2_0x6a4618(0xd3)]('--html\x20<html>',a2_0x6a4618(0x250))['option'](a2_0x6a4618(0x1e8),a2_0x6a4618(0x144))[a2_0x6a4618(0x26d)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xe5))['description'](a2_0x6a4618(0x12c))[a2_0x6a4618(0xd3)]('--workspace\x20<name>',a2_0x6a4618(0x184))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xd1),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x204))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xde)),workspaceListAction=async(_0x1947a6,_0x37efd5)=>{const _0x3eabd6=a2_0x6a4618,_0xae16eb=new EngageWorkspacesCommand(),_0x3411c1=program[_0x3eabd6(0x16a)](),_0x58664b=await createTDXInstance(_0x3411c1),_0x4df04c=await _0xae16eb[_0x3eabd6(0xd4)]({'options':{..._0x3411c1,..._0x37efd5},'args':_0x1947a6?[_0x1947a6]:[],'tdx':_0x58664b});process['exit'](_0x4df04c);};workspaceCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x108))[a2_0x6a4618(0x15d)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x6a4618(0x26d)](workspaceListAction),engageCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2e4))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x293))[a2_0x6a4618(0x26d)](workspaceListAction),workspaceCmd['command'](a2_0x6a4618(0x192))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x228))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x26f),a2_0x6a4618(0x23e))[a2_0x6a4618(0x26d)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x202))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x120))[a2_0x6a4618(0x2cd)](a2_0x6a4618(0xf9),'Workspace\x20name')['option'](a2_0x6a4618(0x297),'Workspace\x20description')[a2_0x6a4618(0x26d)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x6a4618(0x1ab)]('update\x20<name-or-id>')[a2_0x6a4618(0x15d)]('Update\x20a\x20workspace')[a2_0x6a4618(0xd3)]('--name\x20<name>',a2_0x6a4618(0x260))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x297),a2_0x6a4618(0x1b6))[a2_0x6a4618(0x26d)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xe5))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xcd))['option'](a2_0x6a4618(0xd1),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command']('use\x20<name>')[a2_0x6a4618(0x15d)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x6a4618(0x26d)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command']('connection')[a2_0x6a4618(0x15d)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x4cee5b=>{const _0x27bd03=a2_0x6a4618,_0xc73711=new ConnectionListCommand(),_0x1adaaa=program[_0x27bd03(0x16a)](),_0x1aacfb=await createTDXInstance(_0x1adaaa),_0x4c0f66=await _0xc73711[_0x27bd03(0xd4)]({'options':{..._0x1adaaa,..._0x4cee5b},'args':[],'tdx':_0x1aacfb});process['exit'](_0x4c0f66);};connectionCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2b3))[a2_0x6a4618(0x15d)]('List\x20all\x20data\x20connections')[a2_0x6a4618(0x26d)](connectionListAction),program['command']('connections',{'hidden':!![]})['description'](a2_0x6a4618(0x1b8))[a2_0x6a4618(0x26d)](connectionListAction),connectionCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2a5))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x21c))[a2_0x6a4618(0x26d)](async(_0x545fe8,_0x14ed0f)=>{const _0x184a94=a2_0x6a4618,_0x3439ee=new ConnectionShowCommand(),_0x5b9792=program[_0x184a94(0x16a)](),_0x5984f7=await createTDXInstance(_0x5b9792),_0x39d670=await _0x3439ee[_0x184a94(0xd4)]({'options':{..._0x5b9792,..._0x14ed0f},'args':[_0x545fe8],'tdx':_0x5984f7});process['exit'](_0x39d670);});export{program};export function runCLI(){const _0x36b53c=a2_0x6a4618;program['parse'](process[_0x36b53c(0x1d0)]);!process[_0x36b53c(0x1d0)][_0x36b53c(0x27b)](0x2)[_0x36b53c(0x19e)]&&program[_0x36b53c(0xdb)]();const _0x1785a5=packageJson[_0x36b53c(0x214)];process[_0x36b53c(0x1e1)]['isTTY']&&process[_0x36b53c(0x1d0)][_0x36b53c(0x19e)]>0x2&&!_0x1785a5[_0x36b53c(0x2b1)]('.dev')&&checkForUpdate(_0x1785a5)[_0x36b53c(0x1e5)](_0x43cb44=>{_0x43cb44&&displayUpdateNotification(_0x43cb44);})[_0x36b53c(0x159)](()=>{});}
|
|
1
|
+
const a2_0x1de319=a2_0x4b4d;(function(_0x333cf8,_0xfe98f3){const _0x5f56c8=a2_0x4b4d,_0x34418e=_0x333cf8();while(!![]){try{const _0x57fd44=parseInt(_0x5f56c8(0x21f))/0x1*(parseInt(_0x5f56c8(0x3b4))/0x2)+parseInt(_0x5f56c8(0x35e))/0x3*(-parseInt(_0x5f56c8(0x36c))/0x4)+-parseInt(_0x5f56c8(0x390))/0x5*(parseInt(_0x5f56c8(0x211))/0x6)+parseInt(_0x5f56c8(0x2de))/0x7+-parseInt(_0x5f56c8(0x3a6))/0x8+parseInt(_0x5f56c8(0x3bc))/0x9+parseInt(_0x5f56c8(0x278))/0xa*(parseInt(_0x5f56c8(0x26b))/0xb);if(_0x57fd44===_0xfe98f3)break;else _0x34418e['push'](_0x34418e['shift']());}catch(_0x50cff3){_0x34418e['push'](_0x34418e['shift']());}}}(a2_0xbcf1,0x58d14));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{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{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';function a2_0xbcf1(){const _0x1a6c6a=['Skip\x20confirmation\x20prompts','filter','113773gUJryW','Skip\x20population\x20counting','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','outputHelp','logLevel','Master\x20database\x20name','Database\x20to\x20query\x20(default:\x20information_schema)','\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\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20--\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20previous\x20Claude\x20Code\x20session\x0a\x20\x20tdx\x20claude\x20usage\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\x20Output\x20usage\x20as\x20JSON','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--reason\x20<text>','create\x20<parent_name>\x20<folder_name>','Job\x20management\x20commands','30eGDXwR','Database\x20name\x20(default:\x20information_schema)','Start\x20a\x20new\x20chat\x20session','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--name\x20<name>','0.7','--limit\x20<number>','End\x20time\x20filter\x20(ISO\x208601\x20format)','System\x20prompt/instructions\x20(default:\x20empty)','workflow','activations\x20<segment_name>','fields\x20[name]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','--from\x20<timestamp>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','subcommandDescription','Task\x20name\x20for\x20logs\x20action','Include\x20retried\x20attempts','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','INFO','--last','--add-behaviors-file\x20<file>','slice','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Create\x20a\x20workspace','--project\x20<name>','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','describe','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','build-info.json','models','format','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','update\x20<name-or-id>','then','Pause\x20a\x20campaign','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','database','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','required','agent','forEach','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','parents\x20[pattern]','Delete\x20a\x20campaign','subcommandTerm','update\x20<segment_name>','submit\x20[query]','--max-tool-iterations\x20<n>','aliases','-d,\x20--database\x20<name>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','List\x20available\x20LLM\x20models','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','--session-time\x20<time>','--schedule-option\x20<value>','attempt','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--llm-project\x20<name>','List\x20all\x20users\x20in\x20the\x20account','databases\x20[pattern]','List\x20all\x20data\x20connections','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--status\x20<status>','utf-8','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Email\x20sender\x20ID\x20for\x20delivery','view\x20[segment_name]','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','table','show\x20<name>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','--table\x20<table>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','show\x20<name-or-id>','show\x20[table]','--attributes\x20<json>','context','--name\x20<text>','Parent\x20segment\x20description','Request\x20body\x20as\x20JSON\x20string','Create\x20segment\x20folder','use\x20<path>','--prompt\x20<text>','Workflow\x20project\x20management','length','--no-proxy','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','show\x20[segment_name]','isTTY','log','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','gitRevision','Show\x20connection\x20details\x20by\x20name','Table\x20management\x20commands','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','TRACE','Duplicate\x20a\x20campaign','--type\x20<api_type>','colorFn','3509121fJnFoH','-X,\x20--method\x20<method>','push\x20[parent_or_file]','CDP\x20segment\x20management\x20commands','segment','Agent\x20description','Workflow\x20parameter\x20(repeatable)','logs','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','-w,\x20--web','connection','--full','--add-attributes-file\x20<file>','--tsv','Usage:\x20','pause\x20<name-or-id>','stdout','[task-name]','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Save\x20output\x20to\x20file','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','-y,\x20--yes','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','list\x20[project]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','addHelpText','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Segment\x20description','--format\x20<format>','Output\x20as\x20JSON','version','hidden','Output\x20folder\x20(default:\x20{project_name}.llm)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Database\x20management\x20commands','-d,\x20--database\x20<database>','json','info\x20[segment_name]','kill','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Setup\x20API\x20key\x20authentication\x20interactively','Timezone\x20(e.g.,\x20America/Los_Angeles)','show\x20[name]','Include\x20retried\x20attempts\x20(for\x20list)','--skip-validation','--params\x20<json>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','--parent-folder\x20<name>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','usage','Master\x20table\x20name','profiles','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Attributes\x20as\x20JSON\x20string','Add\x20behaviors\x20as\x20JSON\x20string','argv','--kind\x20<type>','--name\x20<new_name>','parent_segment','--rule-file\x20<file>','--dry-run','status','Commands:','--data\x20<data>','--clear','hook','Set\x20operation\x20timeout\x20in\x20seconds','Filtering\x20rule\x20as\x20JSON\x20string','--folder\x20<name>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--trace','engage','clear','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','get','Customer\x20group\x20from\x20JSON\x20file','--behavior\x20[name]','.dev','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--email-sender-id\x20<id>','commandUsage','Behaviors\x20from\x20JSON\x20file','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--rule\x20<json>','use\x20<name>','registeredArguments','fields\x20[parent_name]','Show\x20master\x20table\x20sample\x20data','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Show\x20segment\x20details\x20(alias\x20for\x20view)','api\x20[endpoint]','--parent-segment\x20<name>','Updated\x20description','Read\x20query\x20from\x20file','isArray','Update\x20a\x20workspace','desc','after','Interactive\x20chat\x20selector','tsv','proxy','--jsonl','list\x20[pattern]','result\x20<job-id>','-r,\x20--recursive','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Resume\x20a\x20paused\x20campaign','Attempt\x20ID','Submit\x20a\x20job','workflows\x20[project]','view\x20[name]','Clear\x20session\x20context','padWidth','Add\x20attributes\x20as\x20JSON\x20string','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--enriched','--temperature\x20<n>','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','jsonl','download\x20<project-name>\x20[output-dir]','Email\x20subject\x20template','argument','[attempt-id]','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','--description\x20<desc>','491943pNQITi','requiredOption','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--start-at\x20<datetime>','Set\x20or\x20show\x20parent\x20segment\x20context','New\x20segment\x20name','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--to\x20<timestamp>','--segment\x20<path>','-v,\x20--verbose','show\x20<agent-name>','delete\x20<name-or-id>','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','8yfHukb','--yes','[action]','padEnd','User\x20management\x20commands','--timeout\x20<seconds>','backup\x20<name>','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','--in\x20<name>','-o,\x20--output\x20<folder>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','desc\x20[segment_name]','restore\x20<folder>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','pull\x20[name]','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Unknown\x20action:\x20','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Create\x20a\x20new\x20campaign','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','pull\x20[parent_or_file]','Trino\x20catalog\x20(default:\x20td)','catch','buildTime','Agent\x20reference\x20(project-name/agent-name)','Output\x20as\x20JSON\x20Lines','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--schedule-type\x20<type>','--revision\x20<revision>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','map','4000','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--subject\x20<subject>','commandDescription','allowExcessArguments','177305ACPBgO','parent-segment','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Make\x20segment\x20invisible\x20(default:\x20visible)','summary','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','run','duplicate\x20<name-or-id>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','parse','Agent\x20prompt/instructions','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--agent\x20<name>','Options:','commands','Show\x20workspace\x20details','Maximum\x20recursion\x20depth\x20(default:\x2010)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','project','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Delete\x20an\x20LLM\x20project','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','1681600AUqZAe','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--add-attributes\x20<json>','--force','retry','users','Starter\x20message','update\x20<agent-name>','information_schema','repeat','Enable\x20verbose\x20logging','Resume\x20from\x20specific\x20task\x20(retry)','Revision\x20name\x20(default:\x20timestamp)','Editor\x20type','2586nOCXQQ','projects\x20[pattern]','-f,\x20--file\x20<path>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','list','--workspace\x20<name>','claude\x20[args...]','segments\x20[path]','651339fMSsIb','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--model\x20<name>','Open\x20parent\x20segment\x20in\x20web\x20browser','--include-retried','resume\x20<name-or-id>','--json-columns\x20<cols>','tables\x20[pattern]','folder','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--starter-message\x20<text>','name','Create\x20a\x20new\x20LLM\x20project','sql\x20[segment_name]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Workspace\x20name','create','--agent\x20<ref>','alias','--attribute\x20[name]','description','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Updated\x20timezone','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','campaign','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--invisible','argumentDescription','Show\x20only\x20master\x20table\x20validation','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','debug','--customer-group\x20<json>','Update\x20an\x20existing\x20agent','validate\x20[name]','-o,\x20--output\x20<file>','New\x20workspace\x20name','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','session','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','sql\x20[name]','Parent\x20segment\x20management','--in\x20<database>','Campaign\x20management','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Override\x20project\x20name','command','--plaintext\x20<text>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','HTML\x20template\x20content','--description\x20<text>','apiKey','Folder\x20description','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Workflow\x20(Digdag)\x20management\x20commands','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','-u,\x20--use','-H,\x20--header\x20<header>','Customer\x20group\x20as\x20JSON\x20string','us01','--job-type\x20<type>','--site\x20<site>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--system-prompt\x20<text>','preview\x20[file]','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Output\x20file\x20path\x20(default:\x20<name>.yml)','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','optionTerm','auth','DEBUG','create\x20<segment_name>','templates\x20[pattern]','trace','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','run\x20[name]','delete\x20<project-name-or-id>','Remove\x20API\x20key\x20from\x20system\x20keychain','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','_hidden','kill\x20<job-id>','Skip\x20confirmation\x20prompt','template','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','error','--limit\x20<rows>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','injectIntoOptions','List\x20all\x20available\x20profiles','Workspace\x20name\x20(required)','--output\x20<file>','72QkRGzN','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Template\x20name','push\x20[file]','--max-depth\x20<depth>','use\x20<project-name>','show\x20<folder_ref>','Updated\x20schedule\x20option','LLM\x20project\x20management','preAction','history\x20[chat-id]','options','parent','559zjgHQd','folders\x20<parent_name>','Arguments:','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Parent\x20folder\x20name\x20for\x20nested\x20folders','configureHelp','\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','includes','port','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)',',\x20version\x20','--include-subtasks','[DEPRECATED]\x20Segment\x20folder\x20management','replace','optionDescription','--html\x20<html>','Delete\x20a\x20workspace','opts','Plaintext\x20template\x20content','push','help','--timezone\x20<tz>','Force\x20retry\x20even\x20if\x20not\x20failed','Reason\x20for\x20killing\x20the\x20attempt','Campaign\x20name','validate\x20[file]','Attributes\x20from\x20JSON\x20file','--table','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','argumentTerm','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','query\x20[sql]','../package.json','--master','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','flatMap','--no-color','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--interval\x20<range>','--editor-type\x20<type>','action','Launch\x20a\x20campaign','retry\x20<session-id>','tdx','--type\x20<type>','--name\x20<new-name>','--limit\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','tdx\x20','create\x20<name>','Run\x20Trino\x20query\x20with\x20streaming\x20results','option','chats','show\x20<job-id>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Update\x20an\x20email\x20template','use\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Model\x20name\x20(default:\x20claude-4.5-sonnet)','push\x20[name]','--json','\x20-\x20built\x20','Pull\x20child\x20segments\x20to\x20YAML\x20files','campaigns\x20[pattern]','join','Output\x20file\x20path','--color','exit','-1d','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Campaign\x20description','--database\x20<name>'];a2_0xbcf1=function(){return _0x1a6c6a;};return a2_0xbcf1();}import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x1de319(0x399)](readFileSync(join(__dirname,a2_0x1de319(0x240)),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0x1de319(0x399)](readFileSync(join(__dirname,a2_0x1de319(0x295)),a2_0x1de319(0x2b8)));}catch{}if(process[a2_0x1de319(0x317)]['includes']('--version')){let versionOutput=a2_0x1de319(0x251)+packageJson[a2_0x1de319(0x2fe)];buildInfo[a2_0x1de319(0x2d6)]&&(versionOutput+='\x20('+buildInfo[a2_0x1de319(0x2d6)]+')'),buildInfo[a2_0x1de319(0x383)]&&(versionOutput+=a2_0x1de319(0x25e)+buildInfo[a2_0x1de319(0x383)]),console[a2_0x1de319(0x2d4)](versionOutput),process['exit'](0x0);}const program=new Command();let description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo['gitRevision']?description+=',\x20version\x20'+packageJson['version']+'\x20('+buildInfo[a2_0x1de319(0x2d6)]+')':description+=a2_0x1de319(0x229)+packageJson[a2_0x1de319(0x2fe)];program['name'](a2_0x1de319(0x24c))['description'](description),program[a2_0x1de319(0x254)]('-p,\x20--profile\x20<name>',a2_0x1de319(0x2f3))['option'](a2_0x1de319(0x3fa),a2_0x1de319(0x3e9),a2_0x1de319(0x3f8))[a2_0x1de319(0x254)](a2_0x1de319(0x2fc),a2_0x1de319(0x27b))[a2_0x1de319(0x254)](a2_0x1de319(0x23a),a2_0x1de319(0x3d5))['option'](a2_0x1de319(0x25d),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x1de319(0x254)]('--jsonl',a2_0x1de319(0x222))[a2_0x1de319(0x254)](a2_0x1de319(0x2ec),a2_0x1de319(0x34a))[a2_0x1de319(0x254)](a2_0x1de319(0x210),a2_0x1de319(0x2f2))[a2_0x1de319(0x254)](a2_0x1de319(0x27e),a2_0x1de319(0x2d0))[a2_0x1de319(0x254)](a2_0x1de319(0x263),a2_0x1de319(0x274),![])[a2_0x1de319(0x254)](a2_0x1de319(0x244),a2_0x1de319(0x310),![])[a2_0x1de319(0x254)](a2_0x1de319(0x368),a2_0x1de319(0x3b0),![])[a2_0x1de319(0x254)]('--debug','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x1de319(0x254)](a2_0x1de319(0x326),a2_0x1de319(0x2b9))[a2_0x1de319(0x254)](a2_0x1de319(0x371),a2_0x1de319(0x322),'30')['option'](a2_0x1de319(0x31c),'Preview\x20operation\x20without\x20executing',![])[a2_0x1de319(0x254)]('-y,\x20--yes',a2_0x1de319(0x269),![])['option']('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x1de319(0x254)](a2_0x1de319(0x2aa),'Database\x20to\x20use\x20(overrides\x20context)')[a2_0x1de319(0x254)](a2_0x1de319(0x374),a2_0x1de319(0x39b))[a2_0x1de319(0x254)](a2_0x1de319(0x33c),a2_0x1de319(0x26e))['option'](a2_0x1de319(0x2b2),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x1de319(0x224)]({'formatHelp':(_0x2f15b4,_0x5d61e9)=>{const _0x4abde4=a2_0x1de319,_0x3a2be4=_0x5d61e9[_0x4abde4(0x351)](_0x2f15b4,_0x5d61e9),_0x4e7989=0x2,_0x324c83=0x2;function _0x30364e(_0x515752){const _0x5a2dce=_0x4abde4,_0x4b3501=_0x515752;return!!(_0x4b3501[_0x5a2dce(0x205)]||_0x4b3501[_0x5a2dce(0x2ff)]);}function _0x50a3d9(_0x537b73,_0x1b8ff5){const _0xcaa86a=_0x4abde4;if(_0x1b8ff5){const _0xdfcb86=''+_0x537b73[_0xcaa86a(0x36f)](_0x3a2be4+_0x324c83)+_0x1b8ff5;return _0xdfcb86;}return _0x537b73;}function _0x31553a(_0x33b17b){const _0x3e5411=_0x4abde4;return _0x33b17b[_0x3e5411(0x261)]('\x0a')[_0x3e5411(0x22c)](/^/gm,'\x20'[_0x3e5411(0x3af)](_0x4e7989));}const _0x160ca6=[];_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x2ed)+_0x5d61e9[_0x4abde4(0x331)](_0x2f15b4));const _0xd0c94c=_0x5d61e9[_0x4abde4(0x38e)](_0x2f15b4);_0xd0c94c&&(_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6['push'](_0xd0c94c));const _0x5d47e8=_0x2f15b4[_0x4abde4(0x39e)][_0x4abde4(0x26a)](_0x49b5c5=>!_0x30364e(_0x49b5c5));if(_0x5d47e8[_0x4abde4(0x2cd)]>0x0){if(_0x2f15b4['name']()===_0x4abde4(0x24c)){const _0x17142c=_0x2f15b4[_0x4abde4(0x230)](),_0x196ed1=!_0x17142c['noColor']&&process[_0x4abde4(0x2ef)][_0x4abde4(0x2d3)],_0x5726b9=COMMAND_CATEGORIES,_0x3f5735=(_0xe0fd7,_0x341363)=>_0x196ed1?_0x341363(_0xe0fd7):_0xe0fd7,_0x33cbe0=new Map();_0x5d47e8[_0x4abde4(0x2a1)](_0x2fea6f=>{_0x33cbe0['set'](_0x2fea6f['name'](),_0x2fea6f);}),_0x5726b9['forEach'](_0x1feb43=>{const _0x8582a0=_0x4abde4,_0x399ae8=_0x1feb43['commands'][_0x8582a0(0x243)](_0x22ae60=>_0x33cbe0[_0x8582a0(0x32a)](_0x22ae60)??[]);if(_0x399ae8[_0x8582a0(0x2cd)]>0x0){_0x160ca6[_0x8582a0(0x232)](''),_0x160ca6[_0x8582a0(0x232)](_0x3f5735(_0x1feb43['name']+':',_0x1feb43[_0x8582a0(0x2dd)]));const _0x4e1173=_0x399ae8['map'](_0x4bcbc9=>{const _0x72722d=_0x8582a0,_0x20ef72=_0x5d61e9[_0x72722d(0x2a5)](_0x4bcbc9),_0xd3d378=_0x5d61e9['subcommandDescription'](_0x4bcbc9);return _0x50a3d9(_0x20ef72,_0xd3d378);});_0x160ca6[_0x8582a0(0x232)](_0x31553a(_0x4e1173));}}),_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x3fb));}else{const _0x49072b=_0x5d47e8[_0x4abde4(0x38a)](_0x3413c6=>{const _0x4a2513=_0x4abde4,_0x36747f=_0x5d61e9['subcommandTerm'](_0x3413c6),_0x5208bf=_0x5d61e9[_0x4a2513(0x287)](_0x3413c6);return _0x50a3d9(_0x36747f,_0x5208bf);});_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x31e)),_0x160ca6['push'](_0x31553a(_0x49072b));}}const _0x46cd38=_0x2f15b4[_0x4abde4(0x21d)][_0x4abde4(0x26a)](_0x220d41=>!_0x30364e(_0x220d41));if(_0x46cd38['length']>0x0){const _0x529e0b=_0x46cd38['map'](_0x1d91c4=>{const _0x10135c=_0x4abde4,_0x4122c9=_0x5d61e9[_0x10135c(0x1f8)](_0x1d91c4),_0x16f3ed=_0x5d61e9[_0x10135c(0x22d)](_0x1d91c4);return _0x50a3d9(_0x4122c9,_0x16f3ed);});_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x39d)),_0x160ca6[_0x4abde4(0x232)](_0x31553a(_0x529e0b));}const _0x23465d=(_0x2f15b4[_0x4abde4(0x336)]||[])['filter'](_0x2cc6a9=>!_0x30364e(_0x2cc6a9));if(_0x23465d[_0x4abde4(0x2cd)]>0x0){const _0x457a77=_0x23465d[_0x4abde4(0x38a)](_0x2b990e=>{const _0x34c028=_0x4abde4,_0xef5a87=_0x5d61e9[_0x34c028(0x23d)](_0x2b990e),_0x5a4541=_0x5d61e9[_0x34c028(0x3d9)](_0x2b990e);return _0x50a3d9(_0xef5a87,_0x5a4541);});_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x221)),_0x160ca6['push'](_0x31553a(_0x457a77));}return _0x160ca6[_0x4abde4(0x261)]('\x0a');},'subcommandTerm':_0x394b33=>{const _0x17c246=a2_0x1de319,_0x12a520=(_0x394b33[_0x17c246(0x336)]||[])[_0x17c246(0x38a)](_0x18d308=>_0x18d308[_0x17c246(0x29f)]?'<'+_0x18d308[_0x17c246(0x3c9)]()+'>':'['+_0x18d308['name']()+']')[_0x17c246(0x261)]('\x20'),_0x44411f=_0x394b33[_0x17c246(0x2a9)](),_0x28b1e1=_0x44411f['length']>0x0?_0x394b33[_0x17c246(0x3c9)]()+',\x20'+_0x44411f[_0x17c246(0x261)](',\x20'):_0x394b33['name']();return _0x12a520?_0x28b1e1+'\x20'+_0x12a520:_0x28b1e1;}}),program[a2_0x1de319(0x321)](a2_0x1de319(0x21b),_0x10799f=>{const _0x11c316=a2_0x1de319,_0xd36216=_0x10799f[_0x11c316(0x230)]();if(!_0xd36216[_0x11c316(0x297)]){if(_0xd36216[_0x11c316(0x2bd)])_0xd36216[_0x11c316(0x297)]=_0x11c316(0x2bd);else{if(_0xd36216[_0x11c316(0x304)])_0xd36216[_0x11c316(0x297)]='json';else{if(_0xd36216[_0x11c316(0x357)])_0xd36216['format']=_0x11c316(0x357);else _0xd36216['tsv']&&(_0xd36216[_0x11c316(0x297)]=_0x11c316(0x344));}}}_0xd36216['in']&&!_0xd36216[_0x11c316(0x29d)]&&(_0xd36216[_0x11c316(0x29d)]=_0xd36216['in']);if(_0xd36216[_0x11c316(0x1fd)])_0xd36216['logLevel']=LogLevel[_0x11c316(0x2da)];else{if(_0xd36216[_0x11c316(0x3dc)])_0xd36216[_0x11c316(0x270)]=LogLevel[_0x11c316(0x1fa)];else _0xd36216[_0x11c316(0x270)]===undefined&&(_0xd36216[_0x11c316(0x270)]=LogLevel[_0x11c316(0x28b)]);}});async function createTDXInstance(_0x4d21b1){const _0x26a6b4=a2_0x1de319,_0x27ebbe=await GlobalContext['createAsync'](_0x4d21b1);return _0x27ebbe[_0x26a6b4(0x20d)](_0x4d21b1),TDX['create']({'site':_0x27ebbe['site'],'apiKey':_0x27ebbe[_0x26a6b4(0x3f0)],'logLevel':_0x27ebbe[_0x26a6b4(0x270)],'profile':_0x27ebbe['profile']});}const databaseCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x29d))[a2_0x1de319(0x3d0)]('db')[a2_0x1de319(0x3d2)](a2_0x1de319(0x302)),databaseListAction=async(_0x56a535,_0x4b307d)=>{const _0x176490=a2_0x1de319,_0x1f3555=new DatabasesCommand(),_0x4cb73e=program[_0x176490(0x230)](),_0x19b868=await createTDXInstance(_0x4cb73e),_0x24d689=await _0x1f3555[_0x176490(0x396)]({'options':{..._0x4cb73e,..._0x4b307d},'args':_0x56a535?[_0x56a535]:[],'tdx':_0x19b868});process[_0x176490(0x264)](_0x24d689);};databaseCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x1de319(0x249)](databaseListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2b4),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x1f7))[a2_0x1de319(0x249)](databaseListAction),program[a2_0x1de319(0x3eb)]('chat\x20[message...]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2f8))[a2_0x1de319(0x254)](a2_0x1de319(0x3cf),a2_0x1de319(0x384))[a2_0x1de319(0x254)](a2_0x1de319(0x3bf),a2_0x1de319(0x25b))[a2_0x1de319(0x254)](a2_0x1de319(0x355),'Temperature\x20(0.0-2.0,\x20default:\x200.7)')[a2_0x1de319(0x254)]('--new',a2_0x1de319(0x27a))[a2_0x1de319(0x249)](async(_0x494889,_0x1ef9fd)=>{const _0xbb64af=a2_0x1de319,_0x2c7bbc=new ChatCommand(),_0x2864d6=program['opts'](),_0x3aa386=await createTDXInstance(_0x2864d6),_0x1c0adb=await _0x2c7bbc[_0xbb64af(0x396)]({'options':{..._0x2864d6,..._0x1ef9fd},'args':_0x494889,'tdx':_0x3aa386});process['exit'](_0x1c0adb);});const apiCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x33b))[a2_0x1de319(0x394)](a2_0x1de319(0x3d7))[a2_0x1de319(0x2f9)](a2_0x1de319(0x342),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')[a2_0x1de319(0x254)](a2_0x1de319(0x2df),a2_0x1de319(0x266),'GET')['option'](a2_0x1de319(0x31f),a2_0x1de319(0x2c8))[a2_0x1de319(0x254)]('-f,\x20--file\x20<path>','Read\x20request\x20body\x20from\x20file')[a2_0x1de319(0x254)](a2_0x1de319(0x3f6),a2_0x1de319(0x3b7),(_0x1444b2,_0xe30576)=>{return _0xe30576?[..._0xe30576,_0x1444b2]:[_0x1444b2];})[a2_0x1de319(0x254)](a2_0x1de319(0x2dc),a2_0x1de319(0x2f1),'td')[a2_0x1de319(0x249)](async(_0x4d2840,_0x21c60c)=>{const _0x45eb4b=a2_0x1de319;if(!_0x4d2840){apiCmd[_0x45eb4b(0x233)]();return;}const _0x17dda8=new ApiCommand(),_0x1e442c=program[_0x45eb4b(0x230)](),_0x2dd83a=await createTDXInstance(_0x1e442c),_0x16be06=await _0x17dda8[_0x45eb4b(0x396)]({'options':{..._0x1e442c,..._0x21c60c},'args':[_0x4d2840],'tdx':_0x2dd83a});process[_0x45eb4b(0x264)](_0x16be06);}),tableCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2bd))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2d8)),tableListAction=async(_0x129ef5,_0x44794a)=>{const _0x498cd6=a2_0x1de319,_0x33c5a1=new TablesCommand(),_0x4876be=program[_0x498cd6(0x230)](),_0x2b68c6=await createTDXInstance(_0x4876be);_0x44794a['in']&&(_0x44794a[_0x498cd6(0x29d)]=_0x44794a['in']);const _0x3e76a0=await _0x33c5a1[_0x498cd6(0x396)]({'options':{..._0x4876be,..._0x44794a},'args':_0x129ef5?[_0x129ef5]:[],'tdx':_0x2b68c6});process[_0x498cd6(0x264)](_0x3e76a0);};tableCmd['command']('list\x20[pattern]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2cf))['option'](a2_0x1de319(0x303),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x1de319(0x254)]('--in\x20<database>',a2_0x1de319(0x39b))[a2_0x1de319(0x249)](tableListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x3c4),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x395))[a2_0x1de319(0x254)](a2_0x1de319(0x303),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x1de319(0x254)](a2_0x1de319(0x3e7),a2_0x1de319(0x39b))[a2_0x1de319(0x249)](tableListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c3))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2d9))[a2_0x1de319(0x254)](a2_0x1de319(0x303),a2_0x1de319(0x228))[a2_0x1de319(0x254)](a2_0x1de319(0x3e7),a2_0x1de319(0x39b))[a2_0x1de319(0x249)](async(_0x3e3ff4,_0x5cae51)=>{const _0x11419c=a2_0x1de319,_0x4e95fd=new ShowCommand(),_0x2361c2=program[_0x11419c(0x230)](),_0x56e58a=await createTDXInstance(_0x2361c2);_0x5cae51['in']&&(_0x5cae51[_0x11419c(0x29d)]=_0x5cae51['in']);const _0x40c22a=await _0x4e95fd['run']({'options':{..._0x2361c2,..._0x5cae51},'args':_0x3e3ff4?[_0x3e3ff4]:[],'tdx':_0x56e58a});process['exit'](_0x40c22a);}),program[a2_0x1de319(0x3eb)]('describe\x20[table]')['alias'](a2_0x1de319(0x341))['description']('Describe\x20table\x20schema')[a2_0x1de319(0x254)]('-d,\x20--database\x20<database>',a2_0x1de319(0x228))['option']('--in\x20<database>',a2_0x1de319(0x39b))['action'](async(_0x179f66,_0x4f6fe9)=>{const _0x28303f=a2_0x1de319,_0x38282d=new DescribeCommand(),_0x3794d7=program[_0x28303f(0x230)](),_0x388ad5=await createTDXInstance(_0x3794d7);_0x4f6fe9['in']&&(_0x4f6fe9[_0x28303f(0x29d)]=_0x4f6fe9['in']);const _0x5bb7ce=await _0x38282d['run']({'options':{..._0x3794d7,..._0x4f6fe9},'args':_0x179f66?[_0x179f66]:[],'tdx':_0x388ad5});process[_0x28303f(0x264)](_0x5bb7ce);}),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x23f))[a2_0x1de319(0x3d2)](a2_0x1de319(0x253))['option']('-d,\x20--database\x20<database>',a2_0x1de319(0x272))[a2_0x1de319(0x254)](a2_0x1de319(0x3e7),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option']('--catalog\x20<catalog>',a2_0x1de319(0x381))[a2_0x1de319(0x254)](a2_0x1de319(0x3b6),'Read\x20SQL\x20query\x20from\x20file')['option'](a2_0x1de319(0x20b),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')['action'](async(_0x536660,_0x5d2c90)=>{const _0x46d109=a2_0x1de319,_0x3244d2=new QueryCommand(),_0xe7809a=program[_0x46d109(0x230)](),_0x35f42f=await createTDXInstance(_0xe7809a);_0x5d2c90['in']&&(_0x5d2c90[_0x46d109(0x29d)]=_0x5d2c90['in']);const _0x4f9756=await _0x3244d2['run']({'options':{..._0xe7809a,..._0x5d2c90},'args':_0x536660?[_0x536660]:[],'tdx':_0x35f42f});process[_0x46d109(0x264)](_0x4f9756);});const segmentCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2e2))['alias']('sg')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2e1)),segmentListAction=async(_0x21470c,_0x18e4e2)=>{const _0x1b2b9e=a2_0x1de319,_0x6aca1=new SegmentsCommand(),_0x4cf97f=program['opts'](),_0x3d5c1a=await createTDXInstance(_0x4cf97f),_0x3f87a4=await _0x6aca1[_0x1b2b9e(0x396)]({'options':{..._0x4cf97f,..._0x18e4e2},'args':_0x21470c?[_0x21470c]:[],'tdx':_0x3d5c1a});process[_0x1b2b9e(0x264)](_0x3f87a4);};segmentCmd[a2_0x1de319(0x3eb)]('list\x20[path]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x28a))['option'](a2_0x1de319(0x349),a2_0x1de319(0x3be))[a2_0x1de319(0x254)](a2_0x1de319(0x216),a2_0x1de319(0x3a0),'10')[a2_0x1de319(0x249)](segmentListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x3bb),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x204))[a2_0x1de319(0x254)](a2_0x1de319(0x349),a2_0x1de319(0x3be))[a2_0x1de319(0x254)](a2_0x1de319(0x216),a2_0x1de319(0x3a0),'10')['action'](segmentListAction),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2ca),{'hidden':!![]})['description'](a2_0x1de319(0x2c1))[a2_0x1de319(0x249)](async(_0x47182d,_0x3536f8)=>{const _0x4baad8=a2_0x1de319,_0x4dd3fe=new SegmentUseCommand(),_0x4116bb=program[_0x4baad8(0x230)](),_0x182af5=await createTDXInstance(_0x4116bb),_0x59111a=await _0x4dd3fe['run']({'options':{..._0x4116bb,..._0x3536f8},'args':[_0x47182d],'tdx':_0x182af5});process[_0x4baad8(0x264)](_0x59111a);});const segmentViewAction=async(_0x48c9c6,_0x234d0a)=>{const _0x39e9c5=a2_0x1de319,_0x58894d=new SegmentViewCommand(),_0x6f6bd6=program[_0x39e9c5(0x230)](),_0x43f53e=await createTDXInstance(_0x6f6bd6),_0x2f94aa=await _0x58894d[_0x39e9c5(0x396)]({'options':{..._0x6f6bd6,..._0x234d0a},'args':_0x48c9c6?[_0x48c9c6]:[],'tdx':_0x43f53e});process[_0x39e9c5(0x264)](_0x2f94aa);};segmentCmd['command'](a2_0x1de319(0x2bb))['description'](a2_0x1de319(0x29c))[a2_0x1de319(0x249)](segmentViewAction),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x305),{'hidden':!![]})[a2_0x1de319(0x3d0)](a2_0x1de319(0x293))[a2_0x1de319(0x3d2)](a2_0x1de319(0x33a))[a2_0x1de319(0x249)](segmentViewAction),segmentCmd['command'](a2_0x1de319(0x377))['description']('Show\x20segment\x20schema\x20(column\x20types)')['action'](async(_0x5d23b8,_0x52bc65)=>{const _0x43d643=a2_0x1de319,_0x3041ee=new SegmentDescCommand(),_0x112eb8=program['opts'](),_0x4431cb=await createTDXInstance(_0x112eb8),_0x52fc7a=await _0x3041ee[_0x43d643(0x396)]({'options':{..._0x112eb8,..._0x52bc65},'args':_0x5d23b8?[_0x5d23b8]:[],'tdx':_0x4431cb});process['exit'](_0x52fc7a);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2d2))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3e2))[a2_0x1de319(0x249)](async(_0xf0fb7e,_0x16b414)=>{const _0xdb3d4d=a2_0x1de319,_0x2084c5=new SegmentShowCommand(),_0x3376c6=program['opts'](),_0x4bc8fb=await createTDXInstance(_0x3376c6),_0x42bfbb=await _0x2084c5[_0xdb3d4d(0x396)]({'options':{..._0x3376c6,..._0x16b414},'args':_0xf0fb7e?[_0xf0fb7e]:[],'tdx':_0x4bc8fb});process[_0xdb3d4d(0x264)](_0x42bfbb);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x220),{'hidden':!![]})[a2_0x1de319(0x3d2)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x1de319(0x249)](async(_0x3c2a81,_0xe26978)=>{const _0x5283e4=a2_0x1de319,_0x4cdfd5=new SegmentFolderListCommand(),_0x3f8516=program['opts'](),_0xc909b7=await createTDXInstance(_0x3f8516),_0x46b391=await _0x4cdfd5[_0x5283e4(0x396)]({'options':{..._0x3f8516,..._0xe26978},'args':[_0x3c2a81],'tdx':_0xc909b7});process[_0x5283e4(0x264)](_0x46b391);});const folderCmd=segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3c5),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x22b));folderCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x218))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2f7))['action'](async(_0x4ce90f,_0x24062b)=>{const _0x4fd164=a2_0x1de319,_0x25a949=new SegmentFolderShowCommand(),_0x56999a=program[_0x4fd164(0x230)](),_0x1a8bbc=await createTDXInstance(_0x56999a),_0x159684=await _0x25a949[_0x4fd164(0x396)]({'options':{..._0x56999a,..._0x24062b},'args':[_0x4ce90f],'tdx':_0x1a8bbc});process['exit'](_0x159684);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3cb))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3a1))[a2_0x1de319(0x249)](async(_0x3fecf4,_0x194349)=>{const _0x14f960=a2_0x1de319,_0xe343=new SegmentSQLCommand(),_0x292667=program[_0x14f960(0x230)](),_0x20a857=await createTDXInstance(_0x292667),_0x18584f=await _0xe343[_0x14f960(0x396)]({'options':{..._0x292667,..._0x194349},'args':_0x3fecf4?[_0x3fecf4]:[],'tdx':_0x20a857});process['exit'](_0x18584f);}),segmentCmd['command'](a2_0x1de319(0x337))['description'](a2_0x1de319(0x2d5))[a2_0x1de319(0x249)](async(_0x4cff95,_0x54d2db)=>{const _0x2e9f1f=a2_0x1de319,_0x4c8bc7=new SegmentFieldsCommand(),_0x3b9598=program[_0x2e9f1f(0x230)](),_0x5984cb=await createTDXInstance(_0x3b9598),_0xd67cf6=await _0x4c8bc7[_0x2e9f1f(0x396)]({'options':{..._0x3b9598,..._0x54d2db},'args':_0x4cff95?[_0x4cff95]:[],'tdx':_0x5984cb});process[_0x2e9f1f(0x264)](_0xd67cf6);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x380))[a2_0x1de319(0x3d2)](a2_0x1de319(0x25f))['option'](a2_0x1de319(0x2f4),a2_0x1de319(0x269))['option']('--dry-run',a2_0x1de319(0x2e6))['action'](async(_0xb93c24,_0x1f03fa)=>{const _0x297f6a=a2_0x1de319,_0x228434=new SegmentPullCommand(),_0x248bd1=program[_0x297f6a(0x230)](),_0x45a3c1=await createTDXInstance(_0x248bd1),_0x4a73f6=await _0x228434[_0x297f6a(0x396)]({'options':{..._0x248bd1,..._0x1f03fa},'args':_0xb93c24?[_0xb93c24]:[],'tdx':_0x45a3c1});process[_0x297f6a(0x264)](_0x4a73f6);}),segmentCmd['command'](a2_0x1de319(0x2e0))['description']('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x269))[a2_0x1de319(0x254)](a2_0x1de319(0x31c),a2_0x1de319(0x2e6))[a2_0x1de319(0x254)]('--delete',a2_0x1de319(0x29e))[a2_0x1de319(0x249)](async(_0x466aa2,_0x5a006d)=>{const _0x56caea=a2_0x1de319,_0x5dd298=new SegmentPushCommand(),_0x1b98a3=program['opts'](),_0x438329=await createTDXInstance(_0x1b98a3),_0x1b8404=await _0x5dd298[_0x56caea(0x396)]({'options':{..._0x1b98a3,..._0x5a006d},'args':_0x466aa2?[_0x466aa2]:[],'tdx':_0x438329});process['exit'](_0x1b8404);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x1fb),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x1f5))[a2_0x1de319(0x254)]('--description\x20<text>',a2_0x1de319(0x2fb))[a2_0x1de319(0x254)](a2_0x1de319(0x334),a2_0x1de319(0x323))['option'](a2_0x1de319(0x31b),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x1de319(0x254)](a2_0x1de319(0x324),'Folder\x20name\x20for\x20organization')[a2_0x1de319(0x254)](a2_0x1de319(0x318),a2_0x1de319(0x3d3))[a2_0x1de319(0x254)](a2_0x1de319(0x3d8),a2_0x1de319(0x393))[a2_0x1de319(0x254)]('--no-count-population',a2_0x1de319(0x26c))[a2_0x1de319(0x249)](async(_0x2831e4,_0x2f318b)=>{const _0x1c56ef=a2_0x1de319,_0x433433=new SegmentCreateCommand(),_0x5c507b=program['opts'](),_0x42d4b3=await createTDXInstance(_0x5c507b),_0x3e800a=await _0x433433[_0x1c56ef(0x396)]({'options':{..._0x5c507b,..._0x2f318b},'args':[_0x2831e4],'tdx':_0x42d4b3});process['exit'](_0x3e800a);}),segmentCmd['command'](a2_0x1de319(0x2a6),{'hidden':!![]})[a2_0x1de319(0x3d2)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x1de319(0x254)](a2_0x1de319(0x319),a2_0x1de319(0x364))[a2_0x1de319(0x254)](a2_0x1de319(0x3ef),a2_0x1de319(0x33d))[a2_0x1de319(0x254)](a2_0x1de319(0x334),a2_0x1de319(0x35c))[a2_0x1de319(0x254)]('--rule-file\x20<file>',a2_0x1de319(0x376))[a2_0x1de319(0x254)]('--folder\x20<name>','Move\x20to\x20folder')[a2_0x1de319(0x254)](a2_0x1de319(0x318),a2_0x1de319(0x3d3))['action'](async(_0x198b91,_0x43063f)=>{const _0x3aca58=a2_0x1de319,_0xbaf4e7=new SegmentUpdateCommand(),_0x235faf=program[_0x3aca58(0x230)](),_0x3c8c0b=await createTDXInstance(_0x235faf),_0x44c711=await _0xbaf4e7[_0x3aca58(0x396)]({'options':{..._0x235faf,..._0x43063f},'args':[_0x198b91],'tdx':_0x3c8c0b});process[_0x3aca58(0x264)](_0x44c711);});const parentCmd=segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x21e),{'hidden':!![]})['description'](a2_0x1de319(0x213)),parentListAction=async(_0x25913d,_0x47dd4d)=>{const _0x3c5ea7=a2_0x1de319,_0x5c2213=new ParentSegmentListCommand(),_0x197b9f=program[_0x3c5ea7(0x230)](),_0x47ad6b=await createTDXInstance(_0x197b9f),_0x220bc2=await _0x5c2213['run']({'options':{..._0x197b9f,..._0x47dd4d},'args':_0x25913d?[_0x25913d]:[],'tdx':_0x47ad6b});process[_0x3c5ea7(0x264)](_0x220bc2);};parentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)](a2_0x1de319(0x1fe))[a2_0x1de319(0x249)](parentListAction),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2a3),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x3db))[a2_0x1de319(0x249)](parentListAction),parentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x37a))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3f2))[a2_0x1de319(0x254)](a2_0x1de319(0x3e0),a2_0x1de319(0x1f6))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))[a2_0x1de319(0x249)](async(_0x482d2d,_0x9ff344)=>{const _0x3f00f6=a2_0x1de319,_0x2bd4eb=new ParentSegmentPullCommand(),_0x29072b=program[_0x3f00f6(0x230)](),_0x19bff7=await createTDXInstance(_0x29072b),_0x1a1b29=await _0x2bd4eb[_0x3f00f6(0x396)]({'options':{..._0x29072b,..._0x9ff344},'args':_0x482d2d?[_0x482d2d]:[],'tdx':_0x19bff7});process[_0x3f00f6(0x264)](_0x1a1b29);}),parentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x215))[a2_0x1de319(0x3d2)](a2_0x1de319(0x333))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))[a2_0x1de319(0x249)](async(_0x3664fb,_0x3b747d)=>{const _0x4b0dc9=a2_0x1de319,_0x5532ef=new ParentSegmentPushCommand(),_0xa25396=program[_0x4b0dc9(0x230)](),_0x39ccd6=await createTDXInstance(_0xa25396),_0xdca0b0=await _0x5532ef[_0x4b0dc9(0x396)]({'options':{..._0xa25396,..._0x3b747d},'args':_0x3664fb?[_0x3664fb]:[],'tdx':_0x39ccd6});process[_0x4b0dc9(0x264)](_0xdca0b0);}),parentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x238))['description'](a2_0x1de319(0x2bf))[a2_0x1de319(0x254)](a2_0x1de319(0x241),'Show\x20only\x20master\x20table\x20validation')[a2_0x1de319(0x254)](a2_0x1de319(0x3d1),a2_0x1de319(0x325))[a2_0x1de319(0x254)](a2_0x1de319(0x32c),a2_0x1de319(0x203))[a2_0x1de319(0x254)](a2_0x1de319(0x354),a2_0x1de319(0x25a))[a2_0x1de319(0x254)](a2_0x1de319(0x247),a2_0x1de319(0x2fa),a2_0x1de319(0x265))[a2_0x1de319(0x249)](async(_0x25010f,_0x1e3b42)=>{const _0x5b1d79=a2_0x1de319,_0x4fe640=new ParentSegmentValidateCommand(),_0x24e16a=program[_0x5b1d79(0x230)](),_0x2db20e=await createTDXInstance(_0x24e16a),_0x5e2cbe=await _0x4fe640[_0x5b1d79(0x396)]({'options':{..._0x24e16a,..._0x1e3b42},'args':_0x25010f?[_0x25010f]:[],'tdx':_0x2db20e});process[_0x5b1d79(0x264)](_0x5e2cbe);}),parentCmd['command'](a2_0x1de319(0x1f4))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2e7))[a2_0x1de319(0x254)](a2_0x1de319(0x241),a2_0x1de319(0x338))['option'](a2_0x1de319(0x3d1),a2_0x1de319(0x3a7))['option'](a2_0x1de319(0x32c),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x1de319(0x254)](a2_0x1de319(0x354),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x1de319(0x254)](a2_0x1de319(0x247),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x1de319(0x265))[a2_0x1de319(0x249)](async(_0x476a61,_0x512962)=>{const _0x47ccce=a2_0x1de319,_0xdb9a8e=new ParentSegmentPreviewCommand(),_0x40adef=program[_0x47ccce(0x230)](),_0x360816=await createTDXInstance(_0x40adef),_0x84b604=await _0xdb9a8e['run']({'options':{..._0x40adef,..._0x512962},'args':_0x476a61?[_0x476a61]:[],'tdx':_0x360816});process['exit'](_0x84b604);}),parentCmd['command'](a2_0x1de319(0x200))[a2_0x1de319(0x3d2)](a2_0x1de319(0x242))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))[a2_0x1de319(0x249)](async(_0x81d8e4,_0x3d5650)=>{const _0xbdb92e=a2_0x1de319,_0x180085=new ParentSegmentRunCommand(),_0x2f4e35=program[_0xbdb92e(0x230)](),_0x49a5f5=await createTDXInstance(_0x2f4e35),_0x5b73ef=await _0x180085[_0xbdb92e(0x396)]({'options':{..._0x2f4e35,..._0x3d5650},'args':_0x81d8e4?[_0x81d8e4]:[],'tdx':_0x49a5f5});process[_0xbdb92e(0x264)](_0x5b73ef);});const parentSegmentCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x391))[a2_0x1de319(0x3d0)]('ps')['description'](a2_0x1de319(0x3e6));parentSegmentCmd['command']('list\x20[pattern]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x1fe))[a2_0x1de319(0x249)](parentListAction),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x37a))[a2_0x1de319(0x3d2)](a2_0x1de319(0x20c))['option'](a2_0x1de319(0x3e0),a2_0x1de319(0x262))[a2_0x1de319(0x254)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x1de319(0x254)](a2_0x1de319(0x3f5),a2_0x1de319(0x286))['action'](async(_0x228dab,_0x41a330)=>{const _0x789d2=a2_0x1de319,_0x277ccd=new ParentSegmentPullCommand(),_0xfaf73d=program['opts'](),_0x3a8052=await createTDXInstance(_0xfaf73d),_0x14772a=await _0x277ccd['run']({'options':{..._0xfaf73d,..._0x41a330},'args':_0x228dab?[_0x228dab]:[],'tdx':_0x3a8052});process[_0x789d2(0x264)](_0x14772a);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x25c))[a2_0x1de319(0x3d2)](a2_0x1de319(0x392))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))['action'](async(_0x34dc93,_0x5de4c0)=>{const _0x2ca312=a2_0x1de319,_0x413229=new ParentSegmentPushCommand(),_0x327d3c=program['opts'](),_0x4021e3=await createTDXInstance(_0x327d3c),_0x606a1f=await _0x413229['run']({'options':{..._0x327d3c,..._0x5de4c0},'args':_0x34dc93?[_0x34dc93]:[],'tdx':_0x4021e3});process[_0x2ca312(0x264)](_0x606a1f);}),parentSegmentCmd['command'](a2_0x1de319(0x3df))[a2_0x1de319(0x3d2)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x1de319(0x254)]('--master',a2_0x1de319(0x3da))[a2_0x1de319(0x254)](a2_0x1de319(0x3d1),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x1de319(0x254)](a2_0x1de319(0x32c),a2_0x1de319(0x203))['option']('--enriched',a2_0x1de319(0x25a))[a2_0x1de319(0x254)](a2_0x1de319(0x247),a2_0x1de319(0x2fa),a2_0x1de319(0x265))[a2_0x1de319(0x249)](async(_0x37e310,_0x20c505)=>{const _0x29eb64=a2_0x1de319,_0x4e7dbd=new ParentSegmentValidateCommand(),_0x3d5fd8=program[_0x29eb64(0x230)](),_0x358845=await createTDXInstance(_0x3d5fd8),_0x36ee64=await _0x4e7dbd[_0x29eb64(0x396)]({'options':{..._0x3d5fd8,..._0x20c505},'args':_0x37e310?[_0x37e310]:[],'tdx':_0x358845});process['exit'](_0x36ee64);}),parentSegmentCmd['command']('preview\x20[name]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2e7))['option'](a2_0x1de319(0x241),a2_0x1de319(0x338))['option'](a2_0x1de319(0x3d1),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x1de319(0x254)](a2_0x1de319(0x32c),a2_0x1de319(0x3c7))[a2_0x1de319(0x254)](a2_0x1de319(0x354),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x1de319(0x254)](a2_0x1de319(0x247),a2_0x1de319(0x2fa),'-1d')['action'](async(_0x2904bb,_0x3aaf2a)=>{const _0x33fbb5=a2_0x1de319,_0x4227bc=new ParentSegmentPreviewCommand(),_0x25b619=program[_0x33fbb5(0x230)](),_0x4728d9=await createTDXInstance(_0x25b619),_0x4f80c0=await _0x4227bc['run']({'options':{..._0x25b619,..._0x3aaf2a},'args':_0x2904bb?[_0x2904bb]:[],'tdx':_0x4728d9});process['exit'](_0x4f80c0);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x200))[a2_0x1de319(0x3d2)](a2_0x1de319(0x242))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))[a2_0x1de319(0x249)](async(_0x34e552,_0x356a9d)=>{const _0x27bd0c=a2_0x1de319,_0x371192=new ParentSegmentRunCommand(),_0x281939=program['opts'](),_0x18125f=await createTDXInstance(_0x281939),_0x40d6b0=await _0x371192[_0x27bd0c(0x396)]({'options':{..._0x281939,..._0x356a9d},'args':_0x34e552?[_0x34e552]:[],'tdx':_0x18125f});process[_0x27bd0c(0x264)](_0x40d6b0);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x283))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('--json',a2_0x1de319(0x2fd))[a2_0x1de319(0x254)](a2_0x1de319(0x346),a2_0x1de319(0x385))[a2_0x1de319(0x249)](async(_0x19e29c,_0x4c8d0e)=>{const _0x34d4fe=a2_0x1de319,_0x367aee=new ParentSegmentFieldsCommand(),_0x4b9c88=program[_0x34d4fe(0x230)](),_0x38924c=await createTDXInstance(_0x4b9c88),_0x370841=await _0x367aee['run']({'options':{..._0x4b9c88,..._0x4c8d0e},'args':_0x19e29c?[_0x19e29c]:[],'tdx':_0x38924c});process['exit'](_0x370841);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x34f))[a2_0x1de319(0x3d2)](a2_0x1de319(0x37f))['option'](a2_0x1de319(0x2e8),a2_0x1de319(0x3c0))[a2_0x1de319(0x254)](a2_0x1de319(0x25d),a2_0x1de319(0x2fd))[a2_0x1de319(0x254)](a2_0x1de319(0x346),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x54569a,_0x363164)=>{const _0x138283=a2_0x1de319,_0x1056ee=new ParentSegmentViewCommand(),_0x109e9c=program['opts'](),_0x2cdb90=await createTDXInstance(_0x109e9c),_0x5014c5=await _0x1056ee[_0x138283(0x396)]({'options':{..._0x109e9c,..._0x363164},'args':_0x54569a?[_0x54569a]:[],'tdx':_0x2cdb90});process[_0x138283(0x264)](_0x5014c5);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2bc))[a2_0x1de319(0x254)](a2_0x1de319(0x25d),a2_0x1de319(0x2fd))[a2_0x1de319(0x254)](a2_0x1de319(0x346),a2_0x1de319(0x385))[a2_0x1de319(0x249)](async(_0x2664e1,_0x3ca0cc)=>{const _0x17d287=a2_0x1de319,_0x477693=new ParentSegmentDescCommand(),_0x2cc178=program['opts'](),_0x5359c4=await createTDXInstance(_0x2cc178),_0xd1ff41=await _0x477693[_0x17d287(0x396)]({'options':{..._0x2cc178,..._0x3ca0cc},'args':_0x2664e1?[_0x2664e1]:[],'tdx':_0x5359c4});process[_0x17d287(0x264)](_0xd1ff41);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3e5))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3cc))[a2_0x1de319(0x254)](a2_0x1de319(0x25d),'Output\x20as\x20JSON')[a2_0x1de319(0x254)](a2_0x1de319(0x346),a2_0x1de319(0x385))[a2_0x1de319(0x249)](async(_0x172530,_0x25ef2a)=>{const _0x128929=a2_0x1de319,_0x3605de=new ParentSegmentSQLCommand(),_0x5713a4=program[_0x128929(0x230)](),_0x4d83f0=await createTDXInstance(_0x5713a4),_0x20c8d3=await _0x3605de[_0x128929(0x396)]({'options':{..._0x5713a4,..._0x25ef2a},'args':_0x172530?[_0x172530]:[],'tdx':_0x4d83f0});process[_0x128929(0x264)](_0x20c8d3);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x30a))[a2_0x1de319(0x3d2)](a2_0x1de319(0x245))[a2_0x1de319(0x254)](a2_0x1de319(0x24f),'Limit\x20number\x20of\x20rows')[a2_0x1de319(0x254)](a2_0x1de319(0x25d),'Output\x20as\x20JSON')[a2_0x1de319(0x254)](a2_0x1de319(0x346),a2_0x1de319(0x385))[a2_0x1de319(0x249)](async(_0x42e58f,_0xcc3b01)=>{const _0x4a7a77=a2_0x1de319,_0x280e1b=new ParentSegmentShowCommand(),_0x3bfac9=program[_0x4a7a77(0x230)](),_0x3b384d=await createTDXInstance(_0x3bfac9),_0x55a575=await _0x280e1b[_0x4a7a77(0x396)]({'options':{..._0x3bfac9,..._0xcc3b01},'args':_0x42e58f?[_0x42e58f]:[],'tdx':_0x3b384d});process[_0x4a7a77(0x264)](_0x55a575);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x259))[a2_0x1de319(0x3d2)](a2_0x1de319(0x363))[a2_0x1de319(0x249)](async(_0x24161f,_0x109e5c)=>{const _0x45b03a=a2_0x1de319,_0x248017=new UseCommand(),_0x9e26e8=program[_0x45b03a(0x230)](),_0x3c3639=_0x24161f?[_0x45b03a(0x31a),_0x24161f]:[],_0x13361d=await _0x248017['run']({'options':{..._0x9e26e8,..._0x109e5c},'args':_0x3c3639,'tdx':null});process[_0x45b03a(0x264)](_0x13361d);}),parentCmd[a2_0x1de319(0x3eb)]('create\x20<name>')[a2_0x1de319(0x3d2)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x1de319(0x35f)]('--database\x20<db>',a2_0x1de319(0x271))[a2_0x1de319(0x35f)](a2_0x1de319(0x2c0),a2_0x1de319(0x312))[a2_0x1de319(0x254)](a2_0x1de319(0x3ef),a2_0x1de319(0x2c7))[a2_0x1de319(0x254)](a2_0x1de319(0x387),a2_0x1de319(0x209))['option']('--schedule-option\x20<value>',a2_0x1de319(0x37d))[a2_0x1de319(0x254)]('--timezone\x20<tz>',a2_0x1de319(0x309))['option'](a2_0x1de319(0x2c4),a2_0x1de319(0x315))[a2_0x1de319(0x254)]('--attributes-file\x20<file>',a2_0x1de319(0x239))['option']('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x1de319(0x254)]('--behaviors-file\x20<file>',a2_0x1de319(0x332))['option'](a2_0x1de319(0x3dd),a2_0x1de319(0x3f7))[a2_0x1de319(0x254)]('--customer-group-file\x20<file>',a2_0x1de319(0x32b))['action'](async(_0x5bb66e,_0x1d7919)=>{const _0xafdacd=a2_0x1de319,_0xb42aa1=new ParentSegmentCreateCommand(),_0x9b85c2=program['opts'](),_0x26d470=await createTDXInstance(_0x9b85c2),_0x551841=await _0xb42aa1[_0xafdacd(0x396)]({'options':{..._0x9b85c2,..._0x1d7919},'args':[_0x5bb66e],'tdx':_0x26d470});process[_0xafdacd(0x264)](_0x551841);}),parentCmd[a2_0x1de319(0x3eb)]('update\x20<name>')[a2_0x1de319(0x3d2)](a2_0x1de319(0x361))[a2_0x1de319(0x254)]('--description\x20<text>','Updated\x20description')[a2_0x1de319(0x254)](a2_0x1de319(0x387),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x1de319(0x2af),a2_0x1de319(0x219))[a2_0x1de319(0x254)]('--timezone\x20<tz>',a2_0x1de319(0x3d4))['option'](a2_0x1de319(0x3a8),a2_0x1de319(0x352))[a2_0x1de319(0x254)](a2_0x1de319(0x2eb),'Add\x20attributes\x20from\x20JSON\x20file')['option']('--add-behaviors\x20<json>',a2_0x1de319(0x316))['option'](a2_0x1de319(0x28d),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x1de319(0x249)](async(_0x2e768f,_0x49709b)=>{const _0x3dd190=a2_0x1de319,_0x1a8eac=new ParentSegmentUpdateCommand(),_0x41e45c=program['opts'](),_0x40dfc9=await createTDXInstance(_0x41e45c),_0x1d8bbe=await _0x1a8eac[_0x3dd190(0x396)]({'options':{..._0x41e45c,..._0x49709b},'args':[_0x2e768f],'tdx':_0x40dfc9});process[_0x3dd190(0x264)](_0x1d8bbe);}),folderCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x276))['description'](a2_0x1de319(0x2c9))[a2_0x1de319(0x254)]('--description\x20<text>',a2_0x1de319(0x3f1))[a2_0x1de319(0x254)](a2_0x1de319(0x30f),a2_0x1de319(0x223))[a2_0x1de319(0x249)](async(_0x55fc72,_0x2bbb6d,_0x5d27dd)=>{const _0x1af185=a2_0x1de319,_0x1a920d=new SegmentFolderCreateCommand(),_0x484814=program[_0x1af185(0x230)](),_0x3702f8=await createTDXInstance(_0x484814),_0x3515db=await _0x1a920d['run']({'options':{..._0x484814,..._0x5d27dd},'args':[_0x55fc72,_0x2bbb6d],'tdx':_0x3702f8});process[_0x1af185(0x264)](_0x3515db);}),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x282))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2ab))[a2_0x1de319(0x249)](async(_0xe47298,_0x35e633)=>{const _0x32c117=a2_0x1de319,_0x52b56f=new ActivationsCommand(),_0x2da756=program[_0x32c117(0x230)](),_0x2d9b1c=await createTDXInstance(_0x2da756),_0x5cdfee=await _0x52b56f[_0x32c117(0x396)]({'options':{..._0x2da756,..._0x35e633},'args':[_0xe47298],'tdx':_0x2d9b1c});process['exit'](_0x5cdfee);});const workflowCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x281))['alias']('wf')[a2_0x1de319(0x3d2)](a2_0x1de319(0x3f3)),wfProjectCmd=workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3a2))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2cc)),wfProjectListAction=async(_0x4c526a,_0x228a4d)=>{const _0x68e637=a2_0x1de319,_0x5db468=new WorkflowProjectsCommand(),_0x36c997=program[_0x68e637(0x230)](),_0x1c0f3c=await createTDXInstance(_0x36c997),_0x52066e=await _0x5db468[_0x68e637(0x396)]({'options':{..._0x36c997,..._0x228a4d},'args':_0x4c526a?[_0x4c526a]:[],'tdx':_0x1c0f3c});process[_0x68e637(0x264)](_0x52066e);};wfProjectCmd['command'](a2_0x1de319(0x347))['description']('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x1de319(0x249)](wfProjectListAction),workflowCmd['command']('projects\x20[pattern]')['description'](a2_0x1de319(0x301))[a2_0x1de319(0x249)](wfProjectListAction);const wfWorkflowListAction=async(_0x2da8b8,_0x4b2c32)=>{const _0x5ba2f8=a2_0x1de319,_0x368071=new WorkflowWorkflowsCommand(),_0x273f92=program[_0x5ba2f8(0x230)](),_0x47ed91=await createTDXInstance(_0x273f92),_0xeef46c=await _0x368071[_0x5ba2f8(0x396)]({'options':{..._0x273f92,..._0x4b2c32},'args':_0x2da8b8?[_0x2da8b8]:[],'tdx':_0x47ed91});process[_0x5ba2f8(0x264)](_0xeef46c);};workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x34e))[a2_0x1de319(0x3d2)](a2_0x1de319(0x1ff))[a2_0x1de319(0x249)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3e3))[a2_0x1de319(0x3d2)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x422679,_0x221201)=>{const _0x556b18=a2_0x1de319,_0x4b66f8=new WorkflowSessionsCommand(),_0x349002=program['opts'](),_0x407207=await createTDXInstance(_0x349002),_0x213562=await _0x4b66f8[_0x556b18(0x396)]({'options':{..._0x349002,..._0x221201},'args':_0x422679?[_0x422679]:[],'tdx':_0x407207});process[_0x556b18(0x264)](_0x213562);};wfSessionCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2f6))[a2_0x1de319(0x3d2)](a2_0x1de319(0x360))[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),a2_0x1de319(0x3ed))[a2_0x1de319(0x254)](a2_0x1de319(0x285),a2_0x1de319(0x28f))[a2_0x1de319(0x254)](a2_0x1de319(0x366),a2_0x1de319(0x27f))['action'](wfSessionListAction),workflowCmd['command']('sessions\x20[project]')['description'](a2_0x1de319(0x3c6))[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),a2_0x1de319(0x3ed))[a2_0x1de319(0x254)]('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x1de319(0x254)](a2_0x1de319(0x366),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction);const wfAttemptListAction=async(_0x4d97bc,_0x1a031f)=>{const _0x203bd9=a2_0x1de319,_0x365728=new WorkflowAttemptsCommand(),_0x306bac=program[_0x203bd9(0x230)](),_0x129cde=await createTDXInstance(_0x306bac),_0x14c2bb=await _0x365728[_0x203bd9(0x396)]({'options':{..._0x306bac,..._0x1a031f},'args':_0x4d97bc?[_0x4d97bc]:[],'tdx':_0x129cde});process[_0x203bd9(0x264)](_0x14c2bb);},attemptCmd=workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2b0))['description']('Workflow\x20attempt\x20management')[a2_0x1de319(0x35a)](a2_0x1de319(0x35b),a2_0x1de319(0x34c))[a2_0x1de319(0x35a)](a2_0x1de319(0x36e),a2_0x1de319(0x284))['argument'](a2_0x1de319(0x2f0),a2_0x1de319(0x288))['option'](a2_0x1de319(0x22a),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x1de319(0x254)](a2_0x1de319(0x275),a2_0x1de319(0x236))[a2_0x1de319(0x254)]('--resume-from\x20<task>',a2_0x1de319(0x3b1))[a2_0x1de319(0x254)](a2_0x1de319(0x30d),a2_0x1de319(0x2f5))['option'](a2_0x1de319(0x3a9),a2_0x1de319(0x235))[a2_0x1de319(0x254)](a2_0x1de319(0x3c1),a2_0x1de319(0x30b))[a2_0x1de319(0x249)](async(_0x210e1d,_0x1a6981,_0x15d7e0,_0x5ca30a)=>{const _0x281135=a2_0x1de319;if(_0x210e1d===_0x281135(0x3b8)){await wfAttemptListAction(_0x1a6981,_0x5ca30a);return;}if(!_0x210e1d){attemptCmd[_0x281135(0x233)]();return;}const _0x3c5b28=program['opts'](),_0x271484=await createTDXInstance(_0x3c5b28);let _0x20d902=0x0;if(!_0x1a6981){const _0xe6f4dc=new WorkflowAttemptCommand();_0x20d902=await _0xe6f4dc[_0x281135(0x396)]({'options':{..._0x3c5b28,..._0x5ca30a},'args':[_0x210e1d],'tdx':_0x271484});}else{if(_0x1a6981===_0x281135(0x2e5)){const _0x1f02ff=new WorkflowLogsCommand();_0x20d902=await _0x1f02ff[_0x281135(0x396)]({'options':{..._0x3c5b28,..._0x5ca30a},'args':_0x15d7e0?[_0x210e1d,_0x15d7e0]:[_0x210e1d],'tdx':_0x271484});}else{if(_0x1a6981==='tasks'){const _0x3ddaf6=new WorkflowTasksCommand();_0x20d902=await _0x3ddaf6['run']({'options':{..._0x3c5b28,..._0x5ca30a},'args':[_0x210e1d],'tdx':_0x271484});}else{if(_0x1a6981===_0x281135(0x306)){const _0x4c6031=new WorkflowKillCommand();_0x20d902=await _0x4c6031[_0x281135(0x396)]({'options':{..._0x3c5b28,..._0x5ca30a},'args':[_0x210e1d],'tdx':_0x271484});}else{if(_0x1a6981===_0x281135(0x3aa)){const _0x2aea63=new WorkflowRetryCommand();_0x20d902=await _0x2aea63['run']({'options':{..._0x3c5b28,..._0x5ca30a},'args':['attempt:'+_0x210e1d],'tdx':_0x271484});}else console[_0x281135(0x20a)](_0x281135(0x37c)+_0x1a6981),console['error']('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x20d902=0x1;}}}}process[_0x281135(0x264)](_0x20d902);});attemptCmd['command']('list\x20[project]')['description'](a2_0x1de319(0x3a3))[a2_0x1de319(0x254)](a2_0x1de319(0x3c1),a2_0x1de319(0x289))['action'](wfAttemptListAction),workflowCmd[a2_0x1de319(0x3eb)]('attempts\x20[project]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x37b))[a2_0x1de319(0x254)](a2_0x1de319(0x3c1),a2_0x1de319(0x289))[a2_0x1de319(0x249)](wfAttemptListAction),workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x24b))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2d1))['option']('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x1de319(0x254)](a2_0x1de319(0x30d),a2_0x1de319(0x339))[a2_0x1de319(0x249)](async(_0x40754c,_0x58c8f9)=>{const _0x341059=a2_0x1de319,_0x29baeb=new WorkflowRetryCommand(),_0x3e2ff7=program[_0x341059(0x230)](),_0x2c0f6f=await createTDXInstance(_0x3e2ff7),_0x2c1dd2=await _0x29baeb['run']({'options':{..._0x3e2ff7,..._0x58c8f9},'args':[_0x40754c],'tdx':_0x2c0f6f});process['exit'](_0x2c1dd2);}),workflowCmd[a2_0x1de319(0x3eb)]('run\x20<workflow>')['description']('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0x1de319(0x254)]('--param\x20<key=value>',a2_0x1de319(0x2e4),(_0x3b8f90,_0x5d66d7=[])=>[..._0x5d66d7,_0x3b8f90],[])[a2_0x1de319(0x254)](a2_0x1de319(0x2ae),a2_0x1de319(0x30e))[a2_0x1de319(0x249)](async(_0x31a135,_0x5f2810)=>{const _0x5c1f9a=a2_0x1de319,_0x5049e6=new WorkflowRunCommand(),_0x44f4b7=program[_0x5c1f9a(0x230)](),_0xf2058e=await createTDXInstance(_0x44f4b7),_0x1a6a22=await _0x5049e6[_0x5c1f9a(0x396)]({'options':{..._0x44f4b7,..._0x5f2810},'args':[_0x31a135],'tdx':_0xf2058e});process[_0x5c1f9a(0x264)](_0x1a6a22);}),workflowCmd['command'](a2_0x1de319(0x358))[a2_0x1de319(0x3d2)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x1de319(0x254)](a2_0x1de319(0x388),a2_0x1de319(0x2b6))['action'](async(_0x131672,_0x49b877,_0x208016)=>{const _0x1639c8=a2_0x1de319,_0x17f962=new WorkflowDownloadCommand(),_0xf07475=program[_0x1639c8(0x230)](),_0x39a370=await createTDXInstance(_0xf07475),_0x31362f=await _0x17f962[_0x1639c8(0x396)]({'options':{..._0xf07475,..._0x208016},'args':[_0x131672,_0x49b877||'.'],'tdx':_0x39a370});process['exit'](_0x31362f);}),workflowCmd[a2_0x1de319(0x3eb)]('push\x20[project-name-or-dir]')[a2_0x1de319(0x3d2)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x1de319(0x254)](a2_0x1de319(0x27c),a2_0x1de319(0x3ea))[a2_0x1de319(0x254)](a2_0x1de319(0x388),a2_0x1de319(0x3b2))[a2_0x1de319(0x254)](a2_0x1de319(0x30c),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0xdce021,_0x5a545c)=>{const _0x3a17ff=a2_0x1de319,_0x1f109d=new WorkflowPushCommand(),_0x2e39f5=program[_0x3a17ff(0x230)](),_0x364f90=await createTDXInstance(_0x2e39f5),_0x4f4c14=await _0x1f109d['run']({'options':{..._0x2e39f5,..._0x5a545c},'args':_0xdce021?[_0xdce021]:[],'tdx':_0x364f90});process[_0x3a17ff(0x264)](_0x4f4c14);}),workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x201))[a2_0x1de319(0x3d2)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x1de319(0x249)](async(_0x62f823,_0x10d30b)=>{const _0x58eccf=a2_0x1de319,_0x396033=new WorkflowDeleteCommand(),_0xe79e55=program['opts'](),_0x2eebaf=await createTDXInstance(_0xe79e55),_0x39baf0=await _0x396033['run']({'options':{..._0xe79e55,..._0x10d30b},'args':[_0x62f823],'tdx':_0x2eebaf});process[_0x58eccf(0x264)](_0x39baf0);});const jobCmd=program[a2_0x1de319(0x3eb)]('job')['description'](a2_0x1de319(0x277)),jobListAction=async _0x20b506=>{const _0x5a0f93=a2_0x1de319,_0x389494=new JobListCommand(),_0x59be94=program[_0x5a0f93(0x230)](),_0x4e57dd=await createTDXInstance(_0x59be94),_0x5f44a9=await _0x389494[_0x5a0f93(0x396)]({'options':{..._0x59be94,..._0x20b506},'args':[],'tdx':_0x4e57dd});process[_0x5a0f93(0x264)](_0x5f44a9);};jobCmd['command'](a2_0x1de319(0x3b8))[a2_0x1de319(0x3d2)]('List\x20jobs')[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),a2_0x1de319(0x386))[a2_0x1de319(0x249)](jobListAction),program[a2_0x1de319(0x3eb)]('jobs',{'hidden':!![]})['description'](a2_0x1de319(0x23c))[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),a2_0x1de319(0x386))[a2_0x1de319(0x249)](jobListAction),jobCmd['command'](a2_0x1de319(0x256))['description']('Show\x20job\x20details')['action'](async(_0x53840b,_0x555a53)=>{const _0x15e353=a2_0x1de319,_0x17527b=new JobShowCommand(),_0x4aefde=program['opts'](),_0x1b95b2=await createTDXInstance(_0x4aefde),_0x3406f1=await _0x17527b[_0x15e353(0x396)]({'options':{..._0x4aefde,..._0x555a53},'args':[_0x53840b],'tdx':_0x1b95b2});process[_0x15e353(0x264)](_0x3406f1);}),jobCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x206))[a2_0x1de319(0x3d2)]('Kill\x20a\x20job')[a2_0x1de319(0x249)](async(_0x302989,_0x36c66e)=>{const _0x5bc9fe=a2_0x1de319,_0x1750a4=new JobKillCommand(),_0x367c17=program[_0x5bc9fe(0x230)](),_0x1160c0=await createTDXInstance(_0x367c17),_0x1216eb=await _0x1750a4['run']({'options':{..._0x367c17,..._0x36c66e},'args':[_0x302989],'tdx':_0x1160c0});process[_0x5bc9fe(0x264)](_0x1216eb);}),jobCmd['command'](a2_0x1de319(0x2a7))[a2_0x1de319(0x3d2)](a2_0x1de319(0x34d))[a2_0x1de319(0x254)](a2_0x1de319(0x3f9),a2_0x1de319(0x329),'trino')[a2_0x1de319(0x254)]('-f,\x20--file\x20<path>',a2_0x1de319(0x33e))[a2_0x1de319(0x254)](a2_0x1de319(0x268),a2_0x1de319(0x279),a2_0x1de319(0x3ae))[a2_0x1de319(0x249)](async(_0x477a59,_0x3b077d)=>{const _0x1f76c0=a2_0x1de319,_0x340f90=new JobSubmitCommand(),_0x2f642d=program[_0x1f76c0(0x230)](),_0x5a9ff8=await createTDXInstance(_0x2f642d),_0x5219e2=await _0x340f90[_0x1f76c0(0x396)]({'options':{..._0x2f642d,..._0x3b077d},'args':_0x477a59?[_0x477a59]:[],'tdx':_0x5a9ff8});process['exit'](_0x5219e2);}),jobCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x348))[a2_0x1de319(0x3d2)]('Get\x20job\x20results')['action'](async(_0x46f54b,_0x5e2da8)=>{const _0x2211d1=a2_0x1de319,_0x2ed01e=new JobResultCommand(),_0x50d931=program[_0x2211d1(0x230)](),_0x55da28=await createTDXInstance(_0x50d931),_0x43597b=await _0x2ed01e[_0x2211d1(0x396)]({'options':{..._0x50d931,..._0x5e2da8},'args':[_0x46f54b],'tdx':_0x55da28});process[_0x2211d1(0x264)](_0x43597b);});const llmCmd=program[a2_0x1de319(0x3eb)]('llm')['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x217))[a2_0x1de319(0x3d2)](a2_0x1de319(0x307))[a2_0x1de319(0x249)](async(_0x416e3a,_0x311352)=>{const _0x1c1c10=a2_0x1de319,_0x2afe95=new LLMUseCommand(),_0xce962f=program[_0x1c1c10(0x230)](),_0x1497f6=await createTDXInstance(_0xce962f),_0x7cf25b=await _0x2afe95[_0x1c1c10(0x396)]({'options':{..._0xce962f,..._0x311352},'args':[_0x416e3a],'tdx':_0x1497f6});process[_0x1c1c10(0x264)](_0x7cf25b);}),llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x296))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2ac))[a2_0x1de319(0x249)](async _0x4600a4=>{const _0x16c447=a2_0x1de319,_0x4a14d7=new LLMModelsCommand(),_0xb73b2a=program[_0x16c447(0x230)](),_0x3ca388=await createTDXInstance(_0xb73b2a),_0x20247d=await _0x4a14d7[_0x16c447(0x396)]({'options':{..._0xb73b2a,..._0x4600a4},'args':[],'tdx':_0x3ca388});process[_0x16c447(0x264)](_0x20247d);});const projectCmd=llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3a2))[a2_0x1de319(0x3d2)](a2_0x1de319(0x21a)),llmProjectListAction=async(_0x156470,_0x5bb762)=>{const _0x26f639=a2_0x1de319,_0x51719f=new LLMProjectsCommand(),_0x27879c=program[_0x26f639(0x230)](),_0x4d3dd9=await createTDXInstance(_0x27879c),_0x470577=await _0x51719f['run']({'options':{..._0x27879c,..._0x5bb762},'args':_0x156470?[_0x156470]:[],'tdx':_0x4d3dd9});process[_0x26f639(0x264)](_0x470577);};projectCmd['command'](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')['action'](llmProjectListAction),llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3b5))[a2_0x1de319(0x3d2)](a2_0x1de319(0x246))[a2_0x1de319(0x249)](llmProjectListAction),projectCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x252))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3ca))['option'](a2_0x1de319(0x3ef),'Project\x20description')['action'](async(_0x4de6ee,_0x35a9a5)=>{const _0x1e04ae=a2_0x1de319,_0x4378ad=new LLMProjectCreateCommand(),_0x497e36=program[_0x1e04ae(0x230)](),_0x3591d5=await createTDXInstance(_0x497e36),_0x38e9a9=await _0x4378ad['run']({'options':{..._0x497e36,..._0x35a9a5},'args':[_0x4de6ee],'tdx':_0x3591d5});process[_0x1e04ae(0x264)](_0x38e9a9);}),projectCmd[a2_0x1de319(0x3eb)]('delete\x20<name>')[a2_0x1de319(0x3d2)](a2_0x1de319(0x3a4))[a2_0x1de319(0x249)](async(_0x1fa291,_0x153349)=>{const _0xd14c65=a2_0x1de319,_0x4d3f6e=new LLMProjectDeleteCommand(),_0x1d3487=program['opts'](),_0x587b46=await createTDXInstance(_0x1d3487),_0xb3cd1c=await _0x4d3f6e[_0xd14c65(0x396)]({'options':{..._0x1d3487,..._0x153349},'args':[_0x1fa291],'tdx':_0x587b46});process['exit'](_0xb3cd1c);}),projectCmd['command'](a2_0x1de319(0x372))[a2_0x1de319(0x3d2)](a2_0x1de319(0x373))[a2_0x1de319(0x254)](a2_0x1de319(0x375),a2_0x1de319(0x300))['option'](a2_0x1de319(0x31c),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x1de319(0x249)](async(_0x117b6b,_0x363084)=>{const _0x534620=a2_0x1de319,_0x52ec4b=new LLMProjectBackupCommand(),_0x497e5b=program['opts'](),_0x505a01=await createTDXInstance(_0x497e5b),_0x4b32ba=await _0x52ec4b[_0x534620(0x396)]({'options':{..._0x497e5b,..._0x363084},'args':[_0x117b6b],'tdx':_0x505a01});process[_0x534620(0x264)](_0x4b32ba);}),projectCmd['command'](a2_0x1de319(0x378))[a2_0x1de319(0x3d2)](a2_0x1de319(0x292))[a2_0x1de319(0x254)](a2_0x1de319(0x24e),a2_0x1de319(0x3bd))[a2_0x1de319(0x254)](a2_0x1de319(0x31c),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x1de319(0x249)](async(_0x328939,_0x5181b1)=>{const _0x3196c3=a2_0x1de319,_0x25e08a=new LLMProjectRestoreCommand(),_0x5bdfea=program[_0x3196c3(0x230)](),_0x14317d=await createTDXInstance(_0x5bdfea),_0xee9ceb=await _0x25e08a[_0x3196c3(0x396)]({'options':{..._0x5bdfea,..._0x5181b1},'args':[_0x328939],'tdx':_0x14317d});process['exit'](_0xee9ceb);});const agentCmd=llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2a0))[a2_0x1de319(0x3d2)]('LLM\x20agent\x20management'),llmAgentListAction=async(_0x2933a6,_0x482325)=>{const _0x44b630=a2_0x1de319,_0x595e78=new LLMAgentsCommand(),_0x3b0fdb=program[_0x44b630(0x230)](),_0xc17e75=await createTDXInstance(_0x3b0fdb),_0x54bbd8=await _0x595e78[_0x44b630(0x396)]({'options':{..._0x3b0fdb,..._0x482325},'args':_0x2933a6?[_0x2933a6]:[],'tdx':_0xc17e75});process['exit'](_0x54bbd8);};agentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)](a2_0x1de319(0x356))[a2_0x1de319(0x249)](llmAgentListAction),llmCmd[a2_0x1de319(0x3eb)]('agents\x20[pattern]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x379))[a2_0x1de319(0x249)](llmAgentListAction),agentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x369))['description']('Show\x20agent\x20details')[a2_0x1de319(0x249)](async(_0x1db0a1,_0x31e817)=>{const _0x32791c=a2_0x1de319,_0x3892f4=new LLMAgentShowCommand(),_0xb14523=program['opts'](),_0x342255=await createTDXInstance(_0xb14523),_0x240b77=await _0x3892f4[_0x32791c(0x396)]({'options':{..._0xb14523,..._0x31e817},'args':[_0x1db0a1],'tdx':_0x342255});process[_0x32791c(0x264)](_0x240b77);}),agentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x252))[a2_0x1de319(0x3d2)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')['option'](a2_0x1de319(0x1f3),a2_0x1de319(0x280))[a2_0x1de319(0x254)](a2_0x1de319(0x3bf),a2_0x1de319(0x365),'claude-4.5-sonnet')['option'](a2_0x1de319(0x3c8),a2_0x1de319(0x3ac))[a2_0x1de319(0x254)](a2_0x1de319(0x2a8),a2_0x1de319(0x250),'4')[a2_0x1de319(0x254)](a2_0x1de319(0x355),a2_0x1de319(0x32f),a2_0x1de319(0x27d))[a2_0x1de319(0x249)](async(_0x470bd2,_0x42a776)=>{const _0x10c775=a2_0x1de319,_0x1cdb71=new LLMAgentCreateCommand(),_0x273b92=program[_0x10c775(0x230)](),_0xde9a3d=await createTDXInstance(_0x273b92),_0x2b8c10=await _0x1cdb71[_0x10c775(0x396)]({'options':{..._0x273b92,..._0x42a776},'args':[_0x470bd2],'tdx':_0xde9a3d});process[_0x10c775(0x264)](_0x2b8c10);}),agentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3ad))['description'](a2_0x1de319(0x3de))['option'](a2_0x1de319(0x2c6),'Agent\x20name')[a2_0x1de319(0x254)](a2_0x1de319(0x2cb),a2_0x1de319(0x39a))[a2_0x1de319(0x254)]('--description\x20<text>',a2_0x1de319(0x2e3))[a2_0x1de319(0x254)](a2_0x1de319(0x3c8),a2_0x1de319(0x3ac))['action'](async(_0x316945,_0x116dd4)=>{const _0x45ddc5=a2_0x1de319,_0x1321f3=new LLMAgentUpdateCommand(),_0x5bfcfa=program[_0x45ddc5(0x230)](),_0x20ab85=await createTDXInstance(_0x5bfcfa),_0x1e57a6=await _0x1321f3[_0x45ddc5(0x396)]({'options':{..._0x5bfcfa,..._0x116dd4},'args':[_0x316945],'tdx':_0x20ab85});process[_0x45ddc5(0x264)](_0x1e57a6);}),agentCmd[a2_0x1de319(0x3eb)]('delete\x20<agent-name>')['description']('Delete\x20an\x20agent')[a2_0x1de319(0x249)](async(_0x51df66,_0x376a8f)=>{const _0xd88c44=a2_0x1de319,_0x3bd596=new LLMAgentDeleteCommand(),_0x18d1b4=program['opts'](),_0x3c4cd6=await createTDXInstance(_0x18d1b4),_0x1a6826=await _0x3bd596[_0xd88c44(0x396)]({'options':{..._0x18d1b4,..._0x376a8f},'args':[_0x51df66],'tdx':_0x3c4cd6});process[_0xd88c44(0x264)](_0x1a6826);}),llmCmd['command'](a2_0x1de319(0x21c))[a2_0x1de319(0x3d2)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x1de319(0x254)](a2_0x1de319(0x28c),a2_0x1de319(0x212))[a2_0x1de319(0x249)](async(_0x1ad1ba,_0x17d9db)=>{const _0x103111=a2_0x1de319,_0x15e2ab=new LLMHistoryCommand(),_0x1e3245=program[_0x103111(0x230)](),_0xa10fc8=await createTDXInstance(_0x1e3245),_0x5b2f87=await _0x15e2ab['run']({'options':{..._0x1e3245,..._0x17d9db},'args':_0x1ad1ba?[_0x1ad1ba]:[],'tdx':_0xa10fc8});process[_0x103111(0x264)](_0x5b2f87);}),llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x345))[a2_0x1de319(0x3d2)](a2_0x1de319(0x36b))[a2_0x1de319(0x254)]('--port\x20<number>',a2_0x1de319(0x23e),a2_0x1de319(0x38b))[a2_0x1de319(0x254)](a2_0x1de319(0x291),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x1de319(0x254)](a2_0x1de319(0x39c),a2_0x1de319(0x298))[a2_0x1de319(0x249)](async _0x2f2ce0=>{const _0x196ab9=a2_0x1de319,_0x35900f=new LLMProxyCommand(),_0x869f65=program[_0x196ab9(0x230)](),_0x4dbdb8=await createTDXInstance(_0x869f65),_0x65dc2={..._0x2f2ce0,'port':_0x2f2ce0[_0x196ab9(0x227)]?parseInt(_0x2f2ce0[_0x196ab9(0x227)],0xa):undefined},_0x117650=await _0x35900f['run']({'options':{..._0x869f65,..._0x65dc2},'args':[],'tdx':_0x4dbdb8});process[_0x196ab9(0x264)](_0x117650);}),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x3ba))['description'](a2_0x1de319(0x23b))[a2_0x1de319(0x254)]('--model\x20<name>',a2_0x1de319(0x353),'sonnet')[a2_0x1de319(0x254)](a2_0x1de319(0x2ce),a2_0x1de319(0x38c))['allowUnknownOption']()[a2_0x1de319(0x38f)](!![])['addHelpText'](a2_0x1de319(0x342),a2_0x1de319(0x273))[a2_0x1de319(0x249)](async(_0x5c0be6,_0x26b017)=>{const _0x1c9387=a2_0x1de319,_0x443158=program[_0x1c9387(0x230)](),_0x940d4d=Array[_0x1c9387(0x33f)](_0x5c0be6)?_0x5c0be6:[];if(_0x940d4d[0x0]==='statusline'){const _0xe66d47=new ClaudeStatuslineCommand(),_0x49bb95=await _0xe66d47[_0x1c9387(0x396)]({'options':{..._0x443158,..._0x26b017},'args':_0x940d4d[_0x1c9387(0x28e)](0x1),'tdx':null});process[_0x1c9387(0x264)](_0x49bb95);}if(_0x940d4d[0x0]===_0x1c9387(0x311)){const _0x1753db=new ClaudeUsageCommand(),_0x22369c=await _0x1753db[_0x1c9387(0x396)]({'options':{..._0x443158,..._0x26b017},'args':_0x940d4d[_0x1c9387(0x28e)](0x1),'tdx':null});process[_0x1c9387(0x264)](_0x22369c);}const _0x4ff133=new ClaudeCommand(),_0x1d881c=await createTDXInstance(_0x443158),_0x13bc7e=await _0x4ff133[_0x1c9387(0x396)]({'options':{..._0x443158,..._0x26b017},'args':_0x940d4d,'tdx':_0x1d881c});process['exit'](_0x13bc7e);}),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c5))['description']('Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)')['option'](a2_0x1de319(0x320),a2_0x1de319(0x350))['action'](async _0x1ce54d=>{const _0x51fbe0=a2_0x1de319,_0x124dfd=new ContextCommand(),_0x384888=program[_0x51fbe0(0x230)](),_0x291b04=await _0x124dfd[_0x51fbe0(0x396)]({'options':{..._0x384888,..._0x1ce54d},'args':[],'tdx':null});process['exit'](_0x291b04);}),program['command']('use\x20[resource]\x20[value]')[a2_0x1de319(0x3d2)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0x1de319(0x254)](a2_0x1de319(0x320),'Clear\x20session\x20context')[a2_0x1de319(0x249)](async(_0x13456a,_0x7e43ce,_0x2141c0)=>{const _0x2560da=a2_0x1de319,_0x4fea55=new UseCommand(),_0x4cedd6=program[_0x2560da(0x230)](),_0x46ee9a=[];if(_0x13456a)_0x46ee9a[_0x2560da(0x232)](_0x13456a);if(_0x7e43ce)_0x46ee9a[_0x2560da(0x232)](_0x7e43ce);const _0x5ad224=await _0x4fea55[_0x2560da(0x396)]({'options':{..._0x4cedd6,..._0x2141c0},'args':_0x46ee9a,'tdx':null});process[_0x2560da(0x264)](_0x5ad224);}),program['command'](a2_0x1de319(0x255))['description'](a2_0x1de319(0x343))['option'](a2_0x1de319(0x28c),'Show\x20the\x20most\x20recent\x20chat')[a2_0x1de319(0x249)](async _0x597e2a=>{const _0x346478=a2_0x1de319,_0x5d5c69=new ChatsCommand(),_0x40d07c=program[_0x346478(0x230)](),_0x159021=await createTDXInstance(_0x40d07c),_0x44faff=await _0x5d5c69[_0x346478(0x396)]({'options':{..._0x40d07c,..._0x597e2a},'args':[],'tdx':_0x159021});process['exit'](_0x44faff);});const authCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x1f9))[a2_0x1de319(0x3d2)]('Authentication\x20management');async function runAuthStatusCommand(_0x2a6b64){const _0xf37081=a2_0x1de319,_0x24639d=new AuthStatusCommand(),_0x23b173=program[_0xf37081(0x230)](),_0x1cb470=await createTDXInstance(_0x23b173),_0x1df153=await _0x24639d[_0xf37081(0x396)]({'options':{..._0x23b173,..._0x2a6b64},'args':[],'tdx':_0x1cb470});process['exit'](_0x1df153);}authCmd['action'](runAuthStatusCommand),authCmd['command'](a2_0x1de319(0x31d))['description'](a2_0x1de319(0x32e))[a2_0x1de319(0x249)](runAuthStatusCommand),authCmd[a2_0x1de319(0x3eb)]('setup')[a2_0x1de319(0x3d2)](a2_0x1de319(0x308))[a2_0x1de319(0x2f9)]('after',a2_0x1de319(0x225))[a2_0x1de319(0x249)](async _0x42fc32=>{const _0x113355=a2_0x1de319,_0x5d8a84=new AuthSetupCommand(),_0x4729b5=program[_0x113355(0x230)](),_0x482f18=await createTDXInstance(_0x4729b5),_0x1e102d=await _0x5d8a84[_0x113355(0x396)]({'options':{..._0x4729b5,..._0x42fc32},'args':[],'tdx':_0x482f18});process[_0x113355(0x264)](_0x1e102d);}),authCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x328))[a2_0x1de319(0x3d2)](a2_0x1de319(0x202))[a2_0x1de319(0x2f9)](a2_0x1de319(0x342),'\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_0x1de319(0x249)](async _0x265321=>{const _0x286178=a2_0x1de319,_0x276290=new AuthClearCommand(),_0x9c8c21=program[_0x286178(0x230)](),_0xfd909b=await _0x276290[_0x286178(0x396)]({'options':{..._0x9c8c21,..._0x265321},'args':[],'tdx':null});process[_0x286178(0x264)](_0xfd909b);});const userCmd=program[a2_0x1de319(0x3eb)]('user')[a2_0x1de319(0x3d2)](a2_0x1de319(0x370)),userListAction=async _0x5d89d3=>{const _0x249a6d=a2_0x1de319,_0x5c1c0e=new UserListCommand(),_0x422b6d=program[_0x249a6d(0x230)](),_0x461459=await createTDXInstance(_0x422b6d),_0x421aff=await _0x5c1c0e[_0x249a6d(0x396)]({'options':{..._0x422b6d,..._0x5d89d3},'args':[],'tdx':_0x461459});process[_0x249a6d(0x264)](_0x421aff);};userCmd[a2_0x1de319(0x249)](async _0x22def1=>{const _0x447be0=a2_0x1de319,_0x49dff2=new UserCommand(),_0x13f534=program[_0x447be0(0x230)](),_0x5945d5=await createTDXInstance(_0x13f534),_0xff5e8b=await _0x49dff2['run']({'options':{..._0x13f534,..._0x22def1},'args':[],'tdx':_0x5945d5});process[_0x447be0(0x264)](_0xff5e8b);}),userCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3b8))['description'](a2_0x1de319(0x2b3))['action'](userListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x3ab))['description'](a2_0x1de319(0x3f4))[a2_0x1de319(0x249)](userListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x313))[a2_0x1de319(0x3d2)](a2_0x1de319(0x20e))['action'](async _0x530fba=>{const _0x184480=new ProfilesCommand(),_0x1f81b1=program['opts'](),_0x3abca5=await _0x184480['run']({'options':{..._0x1f81b1,..._0x530fba},'args':[],'tdx':null});process['exit'](_0x3abca5);});const engageCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x327))['description'](a2_0x1de319(0x2ad)),createEngageAction=_0x598efd=>{return async(_0x2733ef,_0x5ea120)=>{const _0x15f307=a2_0x4b4d,_0x50126f=new _0x598efd(),_0xe2a2f4=program['opts'](),_0x43a234=await createTDXInstance(_0xe2a2f4),_0xcf75d7=await _0x50126f[_0x15f307(0x396)]({'options':{..._0xe2a2f4,..._0x5ea120},'args':[_0x2733ef],'tdx':_0x43a234});process['exit'](_0xcf75d7);};},createEngageNoArgAction=_0xa47024=>{return async _0x16ad19=>{const _0x3025e6=a2_0x4b4d,_0x3f1d37=new _0xa47024(),_0x3b9f6c=program[_0x3025e6(0x230)](),_0x3be6f3=await createTDXInstance(_0x3b9f6c),_0x1b2ec1=await _0x3f1d37[_0x3025e6(0x396)]({'options':{..._0x3b9f6c,..._0x16ad19},'args':[],'tdx':_0x3be6f3});process[_0x3025e6(0x264)](_0x1b2ec1);};},campaignCmd=engageCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3d6))['description'](a2_0x1de319(0x3e8)),campaignListAction=async(_0x375867,_0x2b8dfb)=>{const _0x4a7f70=a2_0x1de319,_0x2b48c0=new EngageCampaignsCommand(),_0x364159=program[_0x4a7f70(0x230)](),_0x4cdcdb=await createTDXInstance(_0x364159),_0x522957=await _0x2b48c0[_0x4a7f70(0x396)]({'options':{..._0x364159,..._0x2b8dfb},'args':_0x375867?[_0x375867]:[],'tdx':_0x4cdcdb});process[_0x4a7f70(0x264)](_0x522957);};campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)](a2_0x1de319(0x398))[a2_0x1de319(0x254)]('--type\x20<type>',a2_0x1de319(0x294))[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x1de319(0x254)]('--workspace\x20<name>',a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](campaignListAction),engageCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x260))['description']('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')['option']('--type\x20<type>',a2_0x1de319(0x294))['option']('--status\x20<status>',a2_0x1de319(0x257))['option']('--workspace\x20<name>','Workspace\x20name')['action'](campaignListAction),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c2))[a2_0x1de319(0x3d2)]('Show\x20campaign\x20details')[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),'Workspace\x20name')[a2_0x1de319(0x254)](a2_0x1de319(0x2ea),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x1de319(0x249)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')[a2_0x1de319(0x3d2)](a2_0x1de319(0x37e))[a2_0x1de319(0x35f)]('--name\x20<name>',a2_0x1de319(0x237))[a2_0x1de319(0x35f)](a2_0x1de319(0x24d),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x20f))[a2_0x1de319(0x254)](a2_0x1de319(0x35d),a2_0x1de319(0x267))[a2_0x1de319(0x254)]('--segment\x20<path>',a2_0x1de319(0x3a5))[a2_0x1de319(0x254)](a2_0x1de319(0x330),a2_0x1de319(0x2ba))['option'](a2_0x1de319(0x3c3),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x1de319(0x362),a2_0x1de319(0x389))[a2_0x1de319(0x254)]('--timezone\x20<tz>',a2_0x1de319(0x2b1))[a2_0x1de319(0x249)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x299))[a2_0x1de319(0x3d2)]('Update\x20a\x20campaign')[a2_0x1de319(0x254)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x1de319(0x27c),'New\x20campaign\x20name')[a2_0x1de319(0x254)]('--description\x20<desc>',a2_0x1de319(0x267))[a2_0x1de319(0x254)](a2_0x1de319(0x367),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x1de319(0x254)](a2_0x1de319(0x330),a2_0x1de319(0x2ba))[a2_0x1de319(0x254)](a2_0x1de319(0x3c3),a2_0x1de319(0x314))[a2_0x1de319(0x254)](a2_0x1de319(0x362),a2_0x1de319(0x389))[a2_0x1de319(0x254)](a2_0x1de319(0x234),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x1de319(0x249)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x36a))['description'](a2_0x1de319(0x2a4))['option'](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x254)](a2_0x1de319(0x36d),a2_0x1de319(0x207))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x1de319(0x3eb)]('launch\x20<name-or-id>')[a2_0x1de319(0x3d2)](a2_0x1de319(0x24a))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2ee))[a2_0x1de319(0x3d2)](a2_0x1de319(0x29b))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3c2))['description'](a2_0x1de319(0x34b))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x397))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2db))['option'](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x208))[a2_0x1de319(0x3d2)]('Email\x20template\x20management'),templateListAction=async(_0x5936f9,_0x551c29)=>{const _0x7004e6=a2_0x1de319,_0x5ac7fd=new EngageTemplatesCommand(),_0x35c0c7=program[_0x7004e6(0x230)](),_0x5f2764=await createTDXInstance(_0x35c0c7),_0x1da13e=await _0x5ac7fd['run']({'options':{..._0x35c0c7,..._0x551c29},'args':_0x5936f9?[_0x5936f9]:[],'tdx':_0x5f2764});process[_0x7004e6(0x264)](_0x1da13e);};templateCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3e4))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](templateListAction),engageCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x1fc))[a2_0x1de319(0x3d2)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](templateListAction),templateCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c2))['description']('Show\x20email\x20template\x20details')['option']('--workspace\x20<name>',a2_0x1de319(0x3cd))[a2_0x1de319(0x254)](a2_0x1de319(0x2ea),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3ce))['description']('Create\x20an\x20email\x20template')[a2_0x1de319(0x35f)](a2_0x1de319(0x27c),a2_0x1de319(0x214))['requiredOption'](a2_0x1de319(0x38d),'Email\x20subject\x20template')['requiredOption'](a2_0x1de319(0x22e),'HTML\x20template\x20content')[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x20f))[a2_0x1de319(0x254)](a2_0x1de319(0x3ec),a2_0x1de319(0x231))[a2_0x1de319(0x254)](a2_0x1de319(0x248),a2_0x1de319(0x3b3))[a2_0x1de319(0x249)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x299))['description'](a2_0x1de319(0x258))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x254)](a2_0x1de319(0x27c),'New\x20template\x20name')[a2_0x1de319(0x254)]('--subject\x20<subject>',a2_0x1de319(0x359))[a2_0x1de319(0x254)](a2_0x1de319(0x22e),a2_0x1de319(0x3ee))[a2_0x1de319(0x254)]('--plaintext\x20<text>',a2_0x1de319(0x231))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x1de319(0x3eb)]('delete\x20<name-or-id>')['description']('Delete\x20an\x20email\x20template')[a2_0x1de319(0x254)]('--workspace\x20<name>','Workspace\x20name')[a2_0x1de319(0x254)](a2_0x1de319(0x36d),a2_0x1de319(0x207))[a2_0x1de319(0x249)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x1de319(0x3d2)]('Workspace\x20management'),workspaceListAction=async(_0x294dbe,_0x505410)=>{const _0x361cc4=a2_0x1de319,_0x526eb3=new EngageWorkspacesCommand(),_0xd9ce8d=program[_0x361cc4(0x230)](),_0x372e35=await createTDXInstance(_0xd9ce8d),_0x540081=await _0x526eb3[_0x361cc4(0x396)]({'options':{..._0xd9ce8d,..._0x505410},'args':_0x294dbe?[_0x294dbe]:[],'tdx':_0x372e35});process[_0x361cc4(0x264)](_0x540081);};workspaceCmd['command'](a2_0x1de319(0x347))['description'](a2_0x1de319(0x2a2))[a2_0x1de319(0x249)](workspaceListAction),engageCmd[a2_0x1de319(0x3eb)]('workspaces\x20[pattern]')['description'](a2_0x1de319(0x26d))[a2_0x1de319(0x249)](workspaceListAction),workspaceCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c2))[a2_0x1de319(0x3d2)](a2_0x1de319(0x39f))[a2_0x1de319(0x254)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x1de319(0x249)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x1de319(0x3eb)]('create')[a2_0x1de319(0x3d2)](a2_0x1de319(0x290))[a2_0x1de319(0x35f)](a2_0x1de319(0x27c),a2_0x1de319(0x3cd))['option'](a2_0x1de319(0x35d),'Workspace\x20description')[a2_0x1de319(0x249)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x299))[a2_0x1de319(0x3d2)](a2_0x1de319(0x340))[a2_0x1de319(0x254)](a2_0x1de319(0x27c),a2_0x1de319(0x3e1))[a2_0x1de319(0x254)](a2_0x1de319(0x35d),'Workspace\x20description')[a2_0x1de319(0x249)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')[a2_0x1de319(0x3d2)](a2_0x1de319(0x22f))[a2_0x1de319(0x254)](a2_0x1de319(0x36d),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x1de319(0x335))['description']('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x1de319(0x2e9))[a2_0x1de319(0x3d2)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x1cd454=>{const _0xeb4195=a2_0x1de319,_0x25ee62=new ConnectionListCommand(),_0x38e1ce=program[_0xeb4195(0x230)](),_0x2f1ae9=await createTDXInstance(_0x38e1ce),_0x4054b2=await _0x25ee62[_0xeb4195(0x396)]({'options':{..._0x38e1ce,..._0x1cd454},'args':[],'tdx':_0x2f1ae9});process['exit'](_0x4054b2);};function a2_0x4b4d(_0x33d032,_0x3ebb90){_0x33d032=_0x33d032-0x1f3;const _0xbcf1f4=a2_0xbcf1();let _0x4b4d07=_0xbcf1f4[_0x33d032];return _0x4b4d07;}connectionCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3b8))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2b5))[a2_0x1de319(0x249)](connectionListAction),program[a2_0x1de319(0x3eb)]('connections',{'hidden':!![]})[a2_0x1de319(0x3d2)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x1de319(0x249)](connectionListAction),connectionCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2be))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2d7))[a2_0x1de319(0x249)](async(_0x24a7e7,_0xab9dcf)=>{const _0x185352=a2_0x1de319,_0x504ab1=new ConnectionShowCommand(),_0x5bf31e=program[_0x185352(0x230)](),_0x380ab2=await createTDXInstance(_0x5bf31e),_0x1d6fb4=await _0x504ab1['run']({'options':{..._0x5bf31e,..._0xab9dcf},'args':[_0x24a7e7],'tdx':_0x380ab2});process[_0x185352(0x264)](_0x1d6fb4);});export{program};export function runCLI(){const _0x111ef9=a2_0x1de319;program[_0x111ef9(0x399)](process[_0x111ef9(0x317)]);!process[_0x111ef9(0x317)][_0x111ef9(0x28e)](0x2)[_0x111ef9(0x2cd)]&&program[_0x111ef9(0x26f)]();const _0x307944=packageJson[_0x111ef9(0x2fe)];process['stderr']['isTTY']&&process[_0x111ef9(0x317)][_0x111ef9(0x2cd)]>0x2&&!_0x307944[_0x111ef9(0x226)](_0x111ef9(0x32d))&&checkForUpdate(_0x307944)[_0x111ef9(0x29a)](_0x4c86fb=>{_0x4c86fb&&displayUpdateNotification(_0x4c86fb);})[_0x111ef9(0x382)](()=>{});}
|