@treasuredata/tdx 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +2 -2
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/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.js +1 -1
- package/dist/client/trino-api-client.js +1 -1
- package/dist/client/workflow-client.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/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.d.ts.map +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/query-command.js.map +1 -1
- package/dist/commands/segment-command.d.ts.map +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-command.js.map +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.d.ts.map +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-pull-command.js.map +1 -1
- package/dist/commands/segment-push-command.d.ts.map +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-push-command.js.map +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segments.d.ts.map +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/segments.js.map +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.d.ts +21 -21
- package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/anthropic-adapter.js.map +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/conversation-utils.js.map +1 -1
- package/dist/proxy/server.d.ts.map +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/server.js.map +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.d.ts +18 -0
- package/dist/sdk/errors.d.ts.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/errors.js.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/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.d.ts +24 -5
- package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/agent-ref-parser.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/chat-cache.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/fields-display.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/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.d.ts +6 -0
- package/dist/utils/process.d.ts.map +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/process.js.map +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/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.d.ts +37 -1
- package/dist/utils/sql-parser.d.ts.map +1 -1
- package/dist/utils/sql-parser.js +1 -1
- package/dist/utils/sql-parser.js.map +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-config.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/tree-formatter.d.ts +4 -0
- package/dist/utils/tree-formatter.d.ts.map +1 -1
- package/dist/utils/tree-formatter.js +1 -1
- package/dist/utils/tree-formatter.js.map +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(
|
|
2
|
+
function a0_0x3164(_0x43381d,_0x2abfd0){_0x43381d=_0x43381d-0x16f;var _0x281a13=a0_0x281a();var _0x31645e=_0x281a13[_0x43381d];return _0x31645e;}(function(_0x105547,_0xdc2004){var _0x5deb93=a0_0x3164,_0x3a66d7=_0x105547();while(!![]){try{var _0x33395d=parseInt(_0x5deb93(0x175))/0x1*(-parseInt(_0x5deb93(0x170))/0x2)+parseInt(_0x5deb93(0x16f))/0x3+-parseInt(_0x5deb93(0x178))/0x4*(parseInt(_0x5deb93(0x173))/0x5)+-parseInt(_0x5deb93(0x177))/0x6*(-parseInt(_0x5deb93(0x172))/0x7)+parseInt(_0x5deb93(0x176))/0x8*(parseInt(_0x5deb93(0x179))/0x9)+parseInt(_0x5deb93(0x174))/0xa+-parseInt(_0x5deb93(0x171))/0xb;if(_0x33395d===_0xdc2004)break;else _0x3a66d7['push'](_0x3a66d7['shift']());}catch(_0xe7b9b6){_0x3a66d7['push'](_0x3a66d7['shift']());}}}(a0_0x281a,0x2a1bf));function a0_0x281a(){var _0x2b109c=['415ExcGYL','2376770nvTJBn','93Wauaax','8GAwlAI','1956792PRANVt','13292vifPVL','2468754ZNModp','814272acERdm','1960AmejiR','6271221oTuNKM','7fOgRvZ'];a0_0x281a=function(){return _0x2b109c;};return a0_0x281a();}import{runCLI}from'./cli.js';runCLI();
|
package/dist/build-info.json
CHANGED
package/dist/cli-categories.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x565e(){const _0x1f16e1=['cyan','147EUkMBx','610088bNukHj','show','1274571oKaRza','1005972LpHHth','describe','3274062pfCqDl','chats','parent-segment','profiles','Data','CDP','context','llm','table','activations','40zgixrE','Context','segment','840600dxLqbx','30908wuBxxv','14JiMBcV','magenta','use','users','api','Utilities','10FsTHOd','blue','13649aIxNZB','claude','engage','auth','query','workflow'];a1_0x565e=function(){return _0x1f16e1;};return a1_0x565e();}function a1_0x2de1(_0x354c04,_0x2d340d){_0x354c04=_0x354c04-0x1c1;const _0x565e92=a1_0x565e();let _0x2de1fb=_0x565e92[_0x354c04];return _0x2de1fb;}const a1_0x3ce4a3=a1_0x2de1;(function(_0x3df827,_0x43b11e){const _0x52c505=a1_0x2de1,_0x2bded0=_0x3df827();while(!![]){try{const _0x6c0020=-parseInt(_0x52c505(0x1d6))/0x1*(parseInt(_0x52c505(0x1c9))/0x2)+-parseInt(_0x52c505(0x1dd))/0x3*(-parseInt(_0x52c505(0x1cd))/0x4)+-parseInt(_0x52c505(0x1d4))/0x5*(-parseInt(_0x52c505(0x1e1))/0x6)+-parseInt(_0x52c505(0x1ce))/0x7*(-parseInt(_0x52c505(0x1de))/0x8)+-parseInt(_0x52c505(0x1e0))/0x9+parseInt(_0x52c505(0x1cc))/0xa+-parseInt(_0x52c505(0x1e3))/0xb;if(_0x6c0020===_0x43b11e)break;else _0x2bded0['push'](_0x2bded0['shift']());}catch(_0x1535b7){_0x2bded0['push'](_0x2bded0['shift']());}}}(a1_0x565e,0x3a2d0));import a1_0x5eea8b from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x3ce4a3(0x1c3),'colorFn':a1_0x5eea8b[a1_0x3ce4a3(0x1d5)],'commands':['database',a1_0x3ce4a3(0x1c7),a1_0x3ce4a3(0x1df),a1_0x3ce4a3(0x1e2),a1_0x3ce4a3(0x1da),'job',a1_0x3ce4a3(0x1db)]},{'name':a1_0x3ce4a3(0x1c4),'colorFn':a1_0x5eea8b[a1_0x3ce4a3(0x1cf)],'commands':[a1_0x3ce4a3(0x1cb),a1_0x3ce4a3(0x1c1),a1_0x3ce4a3(0x1c8),a1_0x3ce4a3(0x1d8),'connection']},{'name':'AI','colorFn':a1_0x5eea8b[a1_0x3ce4a3(0x1dc)],'commands':['chat',a1_0x3ce4a3(0x1e4),a1_0x3ce4a3(0x1c6),a1_0x3ce4a3(0x1d7)]},{'name':a1_0x3ce4a3(0x1ca),'colorFn':a1_0x5eea8b['yellow'],'commands':[a1_0x3ce4a3(0x1c5),a1_0x3ce4a3(0x1d0),a1_0x3ce4a3(0x1c2),a1_0x3ce4a3(0x1d9),'user',a1_0x3ce4a3(0x1d1)]},{'name':a1_0x3ce4a3(0x1d3),'colorFn':a1_0x5eea8b['green'],'commands':[a1_0x3ce4a3(0x1d2)]}];
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2JpC,QAAA,MAAM,OAAO,SAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2JpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAm+E9B,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;;GAGG;AACH,wBAAgB,MAAM,IAAI,IAAI,CAwB7B"}
|
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x48b67c=a2_0x2e78;(function(_0xad4359,_0x3dfee4){const _0x109cf0=a2_0x2e78,_0x213295=_0xad4359();while(!![]){try{const _0x23e858=-parseInt(_0x109cf0(0x2ba))/0x1+parseInt(_0x109cf0(0x2b0))/0x2+parseInt(_0x109cf0(0x2ee))/0x3+parseInt(_0x109cf0(0x2c5))/0x4*(parseInt(_0x109cf0(0x22a))/0x5)+parseInt(_0x109cf0(0x168))/0x6+parseInt(_0x109cf0(0x277))/0x7+parseInt(_0x109cf0(0x32e))/0x8*(-parseInt(_0x109cf0(0x174))/0x9);if(_0x23e858===_0x3dfee4)break;else _0x213295['push'](_0x213295['shift']());}catch(_0x2efe57){_0x213295['push'](_0x213295['shift']());}}}(a2_0x31c9,0x4798a));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';function a2_0x2e78(_0x319025,_0x2a9b19){_0x319025=_0x319025-0x131;const _0x31c9e7=a2_0x31c9();let _0x2e780b=_0x31c9e7[_0x319025];return _0x2e780b;}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';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_0x48b67c(0x22d)](readFileSync(join(__dirname,a2_0x48b67c(0x1fa)),a2_0x48b67c(0x1af)));let buildInfo={};try{buildInfo=JSON['parse'](readFileSync(join(__dirname,a2_0x48b67c(0x2d5)),a2_0x48b67c(0x1af)));}catch{}if(process['argv'][a2_0x48b67c(0x261)](a2_0x48b67c(0x2bc))){let versionOutput=a2_0x48b67c(0x30c)+packageJson[a2_0x48b67c(0x2a9)];buildInfo[a2_0x48b67c(0x2ce)]&&(versionOutput+='\x20('+buildInfo[a2_0x48b67c(0x2ce)]+')'),buildInfo[a2_0x48b67c(0x226)]&&(versionOutput+=a2_0x48b67c(0x1ed)+buildInfo['buildTime']),console[a2_0x48b67c(0x223)](versionOutput),process[a2_0x48b67c(0x248)](0x0);}const program=new Command();let description=a2_0x48b67c(0x21e);buildInfo[a2_0x48b67c(0x2ce)]?description+=a2_0x48b67c(0x31b)+packageJson[a2_0x48b67c(0x2a9)]+'\x20('+buildInfo[a2_0x48b67c(0x2ce)]+')':description+=',\x20version\x20'+packageJson['version'];program[a2_0x48b67c(0x31a)]('tdx')[a2_0x48b67c(0x1f4)](description),program[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x170),a2_0x48b67c(0x209))[a2_0x48b67c(0x1b5)]('--site\x20<site>',a2_0x48b67c(0x1ad),a2_0x48b67c(0x202))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2b4),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x48b67c(0x1b5)]('--table',a2_0x48b67c(0x284))['option'](a2_0x48b67c(0x134),a2_0x48b67c(0x1d6))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x296),a2_0x48b67c(0x265))['option'](a2_0x48b67c(0x133),a2_0x48b67c(0x252))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x322),a2_0x48b67c(0x339))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1b0),a2_0x48b67c(0x143))['option'](a2_0x48b67c(0x1c7),a2_0x48b67c(0x32b),![])[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x188),a2_0x48b67c(0x283),![])['option'](a2_0x48b67c(0x1d8),a2_0x48b67c(0x21a),![])['option']('--debug',a2_0x48b67c(0x290))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2ef),a2_0x48b67c(0x2bd))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x214),a2_0x48b67c(0x1b3),'30')['option'](a2_0x48b67c(0x1b4),'Preview\x20operation\x20without\x20executing',![])[a2_0x48b67c(0x1b5)]('-y,\x20--yes','Skip\x20confirmation\x20prompts',![])['option'](a2_0x48b67c(0x178),a2_0x48b67c(0x182))['option'](a2_0x48b67c(0x2a8),'Database\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x48b67c(0x193),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x13e),a2_0x48b67c(0x1f8))['option']('--llm-project\x20<name>',a2_0x48b67c(0x29e)),program['configureHelp']({'formatHelp':(_0x3325d1,_0x4521ba)=>{const _0x4b76d3=a2_0x48b67c,_0x2d985=_0x4521ba[_0x4b76d3(0x163)](_0x3325d1,_0x4521ba),_0x45d20c=0x2,_0x331e78=0x2;function _0x3bed9e(_0x896f27){const _0x5b970b=_0x4b76d3,_0x557ea4=_0x896f27;return!!(_0x557ea4[_0x5b970b(0x20e)]||_0x557ea4[_0x5b970b(0x136)]);}function _0x27508e(_0x3db98a,_0xe4c76){if(_0xe4c76){const _0x29d0c4=''+_0x3db98a['padEnd'](_0x2d985+_0x331e78)+_0xe4c76;return _0x29d0c4;}return _0x3db98a;}function _0x130304(_0x24a99c){const _0x1187f0=_0x4b76d3;return _0x24a99c[_0x1187f0(0x199)]('\x0a')[_0x1187f0(0x268)](/^/gm,'\x20'[_0x1187f0(0x273)](_0x45d20c));}const _0x3dd1bd=[];_0x3dd1bd['push'](_0x4b76d3(0x2c7)+_0x4521ba[_0x4b76d3(0x14c)](_0x3325d1));const _0x29683f=_0x4521ba[_0x4b76d3(0x246)](_0x3325d1);_0x29683f&&(_0x3dd1bd[_0x4b76d3(0x16e)](''),_0x3dd1bd[_0x4b76d3(0x16e)](_0x29683f));const _0x525ded=_0x3325d1[_0x4b76d3(0x140)][_0x4b76d3(0x249)](_0x36244b=>!_0x3bed9e(_0x36244b));if(_0x525ded[_0x4b76d3(0x1a6)]>0x0){if(_0x3325d1[_0x4b76d3(0x31a)]()===_0x4b76d3(0x318)){const _0xed724a=_0x3325d1[_0x4b76d3(0x18e)](),_0x55d98f=!_0xed724a[_0x4b76d3(0x16a)]&&process[_0x4b76d3(0x26c)][_0x4b76d3(0x25c)],_0xf2083d=COMMAND_CATEGORIES,_0x2a255e=(_0x2393a5,_0x4b05bc)=>_0x55d98f?_0x4b05bc(_0x2393a5):_0x2393a5,_0x56ff6c=new Map();_0x525ded[_0x4b76d3(0x291)](_0x66c918=>{const _0x38a42e=_0x4b76d3;_0x56ff6c[_0x38a42e(0x207)](_0x66c918[_0x38a42e(0x31a)](),_0x66c918);}),_0xf2083d[_0x4b76d3(0x291)](_0xd27aa8=>{const _0x49746e=_0x4b76d3,_0x1f2aac=_0xd27aa8[_0x49746e(0x140)][_0x49746e(0x1db)](_0x1c2aae=>_0x56ff6c[_0x49746e(0x293)](_0x1c2aae)??[]);if(_0x1f2aac[_0x49746e(0x1a6)]>0x0){_0x3dd1bd[_0x49746e(0x16e)](''),_0x3dd1bd['push'](_0x2a255e(_0xd27aa8[_0x49746e(0x31a)]+':',_0xd27aa8['colorFn']));const _0x15476c=_0x1f2aac[_0x49746e(0x1ff)](_0x267693=>{const _0x5e0e46=_0x49746e,_0x541779=_0x4521ba[_0x5e0e46(0x25b)](_0x267693),_0x345d2a=_0x4521ba[_0x5e0e46(0x1da)](_0x267693);return _0x27508e(_0x541779,_0x345d2a);});_0x3dd1bd['push'](_0x130304(_0x15476c));}}),_0x3dd1bd[_0x4b76d3(0x16e)](''),_0x3dd1bd['push']('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0xc05446=_0x525ded[_0x4b76d3(0x1ff)](_0x351dfb=>{const _0xec146a=_0x4b76d3,_0xd6138f=_0x4521ba[_0xec146a(0x25b)](_0x351dfb),_0x3b7b83=_0x4521ba['subcommandDescription'](_0x351dfb);return _0x27508e(_0xd6138f,_0x3b7b83);});_0x3dd1bd[_0x4b76d3(0x16e)](''),_0x3dd1bd[_0x4b76d3(0x16e)](_0x4b76d3(0x218)),_0x3dd1bd[_0x4b76d3(0x16e)](_0x130304(_0xc05446));}}const _0x35a16c=_0x3325d1[_0x4b76d3(0x151)][_0x4b76d3(0x249)](_0xb13e42=>!_0x3bed9e(_0xb13e42));if(_0x35a16c[_0x4b76d3(0x1a6)]>0x0){const _0x3c12d8=_0x35a16c[_0x4b76d3(0x1ff)](_0x58320e=>{const _0x7c285a=_0x4b76d3,_0x534ee4=_0x4521ba[_0x7c285a(0x294)](_0x58320e),_0x1f587e=_0x4521ba[_0x7c285a(0x2b5)](_0x58320e);return _0x27508e(_0x534ee4,_0x1f587e);});_0x3dd1bd[_0x4b76d3(0x16e)](''),_0x3dd1bd[_0x4b76d3(0x16e)](_0x4b76d3(0x253)),_0x3dd1bd[_0x4b76d3(0x16e)](_0x130304(_0x3c12d8));}const _0x3c698a=(_0x3325d1['registeredArguments']||[])[_0x4b76d3(0x249)](_0x2dcd59=>!_0x3bed9e(_0x2dcd59));if(_0x3c698a[_0x4b76d3(0x1a6)]>0x0){const _0x4fc03d=_0x3c698a['map'](_0xe86cea=>{const _0xe32b53=_0x4b76d3,_0x46e73c=_0x4521ba[_0xe32b53(0x1f2)](_0xe86cea),_0x409302=_0x4521ba[_0xe32b53(0x301)](_0xe86cea);return _0x27508e(_0x46e73c,_0x409302);});_0x3dd1bd[_0x4b76d3(0x16e)](''),_0x3dd1bd[_0x4b76d3(0x16e)](_0x4b76d3(0x14a)),_0x3dd1bd[_0x4b76d3(0x16e)](_0x130304(_0x4fc03d));}return _0x3dd1bd[_0x4b76d3(0x199)]('\x0a');},'subcommandTerm':_0x1c56a7=>{const _0x2a41c0=a2_0x48b67c,_0x46460b=(_0x1c56a7[_0x2a41c0(0x1f6)]||[])[_0x2a41c0(0x1ff)](_0x596a9a=>_0x596a9a['required']?'<'+_0x596a9a[_0x2a41c0(0x31a)]()+'>':'['+_0x596a9a[_0x2a41c0(0x31a)]()+']')[_0x2a41c0(0x199)]('\x20'),_0x46e016=_0x1c56a7['aliases'](),_0x1ba608=_0x46e016[_0x2a41c0(0x1a6)]>0x0?_0x1c56a7[_0x2a41c0(0x31a)]()+',\x20'+_0x46e016[_0x2a41c0(0x199)](',\x20'):_0x1c56a7[_0x2a41c0(0x31a)]();return _0x46460b?_0x1ba608+'\x20'+_0x46460b:_0x1ba608;}}),program[a2_0x48b67c(0x1d5)](a2_0x48b67c(0x33a),_0x10c762=>{const _0x50f5b2=a2_0x48b67c,_0x378c42=_0x10c762[_0x50f5b2(0x18e)]();if(!_0x378c42[_0x50f5b2(0x19e)]){if(_0x378c42['table'])_0x378c42['format']='table';else{if(_0x378c42['json'])_0x378c42[_0x50f5b2(0x19e)]='json';else{if(_0x378c42[_0x50f5b2(0x195)])_0x378c42[_0x50f5b2(0x19e)]=_0x50f5b2(0x195);else _0x378c42[_0x50f5b2(0x1d3)]&&(_0x378c42[_0x50f5b2(0x19e)]=_0x50f5b2(0x1d3));}}}_0x378c42['in']&&!_0x378c42[_0x50f5b2(0x30f)]&&(_0x378c42['database']=_0x378c42['in']);if(_0x378c42[_0x50f5b2(0x292)])_0x378c42[_0x50f5b2(0x17b)]=LogLevel['TRACE'];else{if(_0x378c42[_0x50f5b2(0x2c4)])_0x378c42[_0x50f5b2(0x17b)]=LogLevel[_0x50f5b2(0x2ec)];else _0x378c42[_0x50f5b2(0x17b)]===undefined&&(_0x378c42['logLevel']=LogLevel[_0x50f5b2(0x1ba)]);}});async function createTDXInstance(_0x3db16b){const _0x3c115c=a2_0x48b67c,_0x4f3798=await GlobalContext['createAsync'](_0x3db16b);return _0x4f3798['injectIntoOptions'](_0x3db16b),TDX[_0x3c115c(0x2e2)]({'site':_0x4f3798[_0x3c115c(0x306)],'apiKey':_0x4f3798[_0x3c115c(0x20c)],'logLevel':_0x4f3798[_0x3c115c(0x17b)],'profile':_0x4f3798['profile']});}const databaseCmd=program[a2_0x48b67c(0x305)](a2_0x48b67c(0x30f))[a2_0x48b67c(0x29f)]('db')[a2_0x48b67c(0x1f4)]('Database\x20management\x20commands'),databaseListAction=async(_0x4b1e4a,_0xb3c05e)=>{const _0x5af561=a2_0x48b67c,_0x44ef31=new DatabasesCommand(),_0x2b3902=program[_0x5af561(0x18e)](),_0x106a75=await createTDXInstance(_0x2b3902),_0x550fd9=await _0x44ef31[_0x5af561(0x247)]({'options':{..._0x2b3902,..._0xb3c05e},'args':_0x4b1e4a?[_0x4b1e4a]:[],'tdx':_0x106a75});process[_0x5af561(0x248)](_0x550fd9);};databaseCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x206))[a2_0x48b67c(0x1f4)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x48b67c(0x2c3)](databaseListAction),program[a2_0x48b67c(0x305)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1bb))[a2_0x48b67c(0x2c3)](databaseListAction),program['command'](a2_0x48b67c(0x1ce))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x33e))['option'](a2_0x48b67c(0x169),'Agent\x20reference\x20(project-name/agent-name)')[a2_0x48b67c(0x1b5)]('--model\x20<name>',a2_0x48b67c(0x13c))[a2_0x48b67c(0x1b5)]('--temperature\x20<n>',a2_0x48b67c(0x1b9))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x17d),a2_0x48b67c(0x150))['action'](async(_0x237959,_0xd7f3ad)=>{const _0x472b40=a2_0x48b67c,_0x4d946d=new ChatCommand(),_0x2009f0=program[_0x472b40(0x18e)](),_0x12f89f=await createTDXInstance(_0x2009f0),_0xf2b64e=await _0x4d946d[_0x472b40(0x247)]({'options':{..._0x2009f0,..._0xd7f3ad},'args':_0x237959,'tdx':_0x12f89f});process[_0x472b40(0x248)](_0xf2b64e);});const apiCmd=program['command'](a2_0x48b67c(0x295))[a2_0x48b67c(0x31d)](a2_0x48b67c(0x17e))[a2_0x48b67c(0x285)](a2_0x48b67c(0x1c1),a2_0x48b67c(0x19d))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x179),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x48b67c(0x24f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1a1),a2_0x48b67c(0x25f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x29a),a2_0x48b67c(0x26a))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x21f),a2_0x48b67c(0x1df),(_0x3a6851,_0x89ec89)=>{return _0x89ec89?[..._0x89ec89,_0x3a6851]:[_0x3a6851];})['option'](a2_0x48b67c(0x260),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x48b67c(0x2c3)](async(_0x167173,_0x1db2bb)=>{const _0x53832b=a2_0x48b67c;if(!_0x167173){apiCmd[_0x53832b(0x162)]();return;}const _0x79aa13=new ApiCommand(),_0x52848b=program[_0x53832b(0x18e)](),_0x166899=await createTDXInstance(_0x52848b),_0xda50=await _0x79aa13[_0x53832b(0x247)]({'options':{..._0x52848b,..._0x1db2bb},'args':[_0x167173],'tdx':_0x166899});process['exit'](_0xda50);}),tableCmd=program[a2_0x48b67c(0x305)](a2_0x48b67c(0x2a6))['description'](a2_0x48b67c(0x184)),tableListAction=async(_0x5ad326,_0x321db2)=>{const _0x1309f9=a2_0x48b67c,_0x439133=new TablesCommand(),_0x35e57d=program['opts'](),_0x42504d=await createTDXInstance(_0x35e57d);_0x321db2['in']&&(_0x321db2[_0x1309f9(0x30f)]=_0x321db2['in']);const _0x22be36=await _0x439133['run']({'options':{..._0x35e57d,..._0x321db2},'args':_0x5ad326?[_0x5ad326]:[],'tdx':_0x42504d});process[_0x1309f9(0x248)](_0x22be36);};tableCmd[a2_0x48b67c(0x305)]('list\x20[pattern]')['description'](a2_0x48b67c(0x28a))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1e3),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x177),a2_0x48b67c(0x26d))[a2_0x48b67c(0x2c3)](tableListAction),program[a2_0x48b67c(0x305)](a2_0x48b67c(0x157),{'hidden':!![]})[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x325))[a2_0x48b67c(0x1b5)]('-d,\x20--database\x20<database>',a2_0x48b67c(0x28d))[a2_0x48b67c(0x1b5)]('--in\x20<database>',a2_0x48b67c(0x26d))[a2_0x48b67c(0x2c3)](tableListAction),program[a2_0x48b67c(0x305)](a2_0x48b67c(0x319))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x286))['option'](a2_0x48b67c(0x1e3),a2_0x48b67c(0x24a))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x177),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x48b67c(0x2c3)](async(_0x40d3f4,_0x2cbe8d)=>{const _0x28879d=a2_0x48b67c,_0x15b6e0=new ShowCommand(),_0x158081=program[_0x28879d(0x18e)](),_0x1cbc41=await createTDXInstance(_0x158081);_0x2cbe8d['in']&&(_0x2cbe8d[_0x28879d(0x30f)]=_0x2cbe8d['in']);const _0x456397=await _0x15b6e0['run']({'options':{..._0x158081,..._0x2cbe8d},'args':_0x40d3f4?[_0x40d3f4]:[],'tdx':_0x1cbc41});process[_0x28879d(0x248)](_0x456397);}),program[a2_0x48b67c(0x305)](a2_0x48b67c(0x1a3))['alias'](a2_0x48b67c(0x22c))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x27a))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1e3),a2_0x48b67c(0x24a))[a2_0x48b67c(0x1b5)]('--in\x20<database>',a2_0x48b67c(0x26d))[a2_0x48b67c(0x2c3)](async(_0x2ae543,_0x43213e)=>{const _0x5f3404=a2_0x48b67c,_0x12cc5c=new DescribeCommand(),_0x1d6e35=program[_0x5f3404(0x18e)](),_0x594b01=await createTDXInstance(_0x1d6e35);_0x43213e['in']&&(_0x43213e[_0x5f3404(0x30f)]=_0x43213e['in']);const _0xfea2=await _0x12cc5c[_0x5f3404(0x247)]({'options':{..._0x1d6e35,..._0x43213e},'args':_0x2ae543?[_0x2ae543]:[],'tdx':_0x594b01});process[_0x5f3404(0x248)](_0xfea2);}),program[a2_0x48b67c(0x305)]('query\x20[sql]')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x256))['option'](a2_0x48b67c(0x1e3),a2_0x48b67c(0x198))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x177),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option']('--catalog\x20<catalog>',a2_0x48b67c(0x148))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x29a),a2_0x48b67c(0x2be))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2d6),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x48b67c(0x2c3)](async(_0x41e69f,_0x491fd3)=>{const _0x1f9665=a2_0x48b67c,_0x23d35a=new QueryCommand(),_0x585079=program[_0x1f9665(0x18e)](),_0x756b4a=await createTDXInstance(_0x585079);_0x491fd3['in']&&(_0x491fd3[_0x1f9665(0x30f)]=_0x491fd3['in']);const _0x4c6500=await _0x23d35a[_0x1f9665(0x247)]({'options':{..._0x585079,..._0x491fd3},'args':_0x41e69f?[_0x41e69f]:[],'tdx':_0x756b4a});process[_0x1f9665(0x248)](_0x4c6500);});const segmentCmd=program[a2_0x48b67c(0x305)](a2_0x48b67c(0x275))[a2_0x48b67c(0x29f)]('sg')[a2_0x48b67c(0x1f4)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x1c092a,_0x17bb62)=>{const _0x38bd68=a2_0x48b67c,_0x22a063=new SegmentsCommand(),_0x309a92=program[_0x38bd68(0x18e)](),_0x28f706=await createTDXInstance(_0x309a92),_0x5c1a7a=await _0x22a063[_0x38bd68(0x247)]({'options':{..._0x309a92,..._0x17bb62},'args':_0x1c092a?[_0x1c092a]:[],'tdx':_0x28f706});process[_0x38bd68(0x248)](_0x5c1a7a);};segmentCmd['command'](a2_0x48b67c(0x2d7))['description'](a2_0x48b67c(0x1dc))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x155),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x48b67c(0x16b),a2_0x48b67c(0x2d9),'10')[a2_0x48b67c(0x2c3)](segmentListAction),program[a2_0x48b67c(0x305)]('segments\x20[path]',{'hidden':!![]})[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x266))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x155),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x16b),a2_0x48b67c(0x2d9),'10')['action'](segmentListAction),segmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x176),{'hidden':!![]})[a2_0x48b67c(0x1f4)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x48b67c(0x2c3)](async(_0x296de6,_0x53c3a4)=>{const _0x495538=a2_0x48b67c,_0x32644a=new SegmentUseCommand(),_0x15ac70=program[_0x495538(0x18e)](),_0x5bbf69=await createTDXInstance(_0x15ac70),_0x4d0de9=await _0x32644a[_0x495538(0x247)]({'options':{..._0x15ac70,..._0x53c3a4},'args':[_0x296de6],'tdx':_0x5bbf69});process[_0x495538(0x248)](_0x4d0de9);});const segmentViewAction=async(_0x1530cb,_0x1b4f71)=>{const _0x568621=a2_0x48b67c,_0x8fc0bc=new SegmentViewCommand(),_0x386923=program['opts'](),_0xfa75f=await createTDXInstance(_0x386923),_0x317302=await _0x8fc0bc['run']({'options':{..._0x386923,..._0x1b4f71},'args':_0x1530cb?[_0x1530cb]:[],'tdx':_0xfa75f});process[_0x568621(0x248)](_0x317302);};segmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x272))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x15b))[a2_0x48b67c(0x2c3)](segmentViewAction),segmentCmd['command'](a2_0x48b67c(0x194),{'hidden':!![]})[a2_0x48b67c(0x29f)](a2_0x48b67c(0x245))['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x48b67c(0x2c3)](segmentViewAction),segmentCmd['command'](a2_0x48b67c(0x321))[a2_0x48b67c(0x1f4)]('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x48b67c(0x2c3)](async(_0x1e1120,_0x4b17d8)=>{const _0x345141=a2_0x48b67c,_0x1c4ccd=new SegmentDescCommand(),_0x170585=program['opts'](),_0x581f7b=await createTDXInstance(_0x170585),_0x4d6aa3=await _0x1c4ccd[_0x345141(0x247)]({'options':{..._0x170585,..._0x4b17d8},'args':_0x1e1120?[_0x1e1120]:[],'tdx':_0x581f7b});process[_0x345141(0x248)](_0x4d6aa3);}),segmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2e7))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2f0))[a2_0x48b67c(0x2c3)](async(_0x219e8e,_0xd7d3eb)=>{const _0x40577e=new SegmentShowCommand(),_0x3a885f=program['opts'](),_0x40f0d1=await createTDXInstance(_0x3a885f),_0x2e4902=await _0x40577e['run']({'options':{..._0x3a885f,..._0xd7d3eb},'args':_0x219e8e?[_0x219e8e]:[],'tdx':_0x40f0d1});process['exit'](_0x2e4902);}),segmentCmd[a2_0x48b67c(0x305)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x48b67c(0x1f4)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x48b67c(0x2c3)](async(_0x37517e,_0x4ef159)=>{const _0x2de0a7=a2_0x48b67c,_0x4210ce=new SegmentFolderListCommand(),_0x3c3706=program['opts'](),_0x6b1b75=await createTDXInstance(_0x3c3706),_0x2e7617=await _0x4210ce[_0x2de0a7(0x247)]({'options':{..._0x3c3706,..._0x4ef159},'args':[_0x37517e],'tdx':_0x6b1b75});process[_0x2de0a7(0x248)](_0x2e7617);});function a2_0x31c9(){const _0xf694fb=['--editor-type\x20<type>','[action]','--name\x20<name>','--skip-validation','-o,\x20--output\x20<folder>','describe','commandDescription','run','exit','filter','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Include\x20retried\x20attempts\x20(for\x20list)','Create\x20a\x20new\x20LLM\x20project','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','GET','job','--last','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Options:','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','backup\x20<name>','Run\x20Trino\x20query\x20with\x20streaming\x20results','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','requiredOption','--max-tool-iterations\x20<n>','Attributes\x20as\x20JSON\x20string','subcommandTerm','isTTY','New\x20workspace\x20name','Clear\x20session\x20context','Request\x20body\x20as\x20JSON\x20string','--type\x20<api_type>','includes','sonnet','Duplicate\x20a\x20campaign','-1d','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','argument','replace','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Read\x20request\x20body\x20from\x20file','--master','stdout','Alias\x20for\x20--database\x20(natural\x20language\x20style)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','allowExcessArguments','view\x20[segment_name]','repeat','--to\x20<timestamp>','segment','kill\x20<job-id>','3355632LlgsPx','Show\x20agent\x20details','push\x20[parent_or_file]','Describe\x20table\x20schema','--rule-file\x20<file>','pull\x20[name]','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','delete\x20<name>','port','list','--description\x20<desc>','--clear','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','addHelpText','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','projects\x20[pattern]','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','4000','campaigns\x20[pattern]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','forEach','trace','get','optionTerm','api\x20[endpoint]','--jsonl','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','--job-type\x20<type>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','-f,\x20--file\x20<path>','workspace','isArray','Update\x20a\x20campaign','LLM\x20project\x20to\x20use\x20(overrides\x20context)','alias','Include\x20subtasks\x20in\x20tasks\x20output','--include-subtasks','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','use\x20[resource]\x20[value]','Workspace\x20management','sql\x20[name]','table','--limit\x20<n>','-d,\x20--database\x20<name>','version','-c,\x20--continue','--model\x20<name>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Parent\x20folder\x20name\x20for\x20nested\x20folders','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--subject\x20<subject>','714368kxeIfw','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Job\x20management\x20commands','--resume-from\x20<task>','--format\x20<format>','optionDescription','Timezone\x20(e.g.,\x20America/Los_Angeles)','--interval\x20<range>','Master\x20database\x20name','--agent\x20<name>','559329eqWUXj','list\x20[project]','--version','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Read\x20SQL\x20query\x20from\x20file','--segment\x20<path>','--start-at\x20<datetime>','Campaign\x20type\x20(email\x20or\x20push)','create\x20<parent_name>\x20<folder_name>','action','debug','4VQLEjV','--kind\x20<type>','Usage:\x20','--attribute\x20[name]','pause\x20<name-or-id>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Segment\x20description','--revision\x20<revision>','--system-prompt\x20<text>','gitRevision','--name\x20<new-name>','Reason\x20for\x20killing\x20the\x20attempt','Workflow\x20session\x20management','Launch\x20a\x20campaign','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--schedule-option\x20<value>','build-info.json','--limit\x20<rows>','list\x20[path]','user','Maximum\x20recursion\x20depth\x20(default:\x2010)','Show\x20master\x20table\x20sample\x20data','--no-count-population','\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','profiles','Update\x20a\x20workspace','System\x20prompt/instructions\x20(default:\x20empty)','Updated\x20description','[attempt-id]','create','List\x20all\x20data\x20connections','List\x20all\x20users\x20in\x20the\x20account','attempt','0.7','show\x20[segment_name]','update\x20<name-or-id>','kill','New\x20template\x20name','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','DEBUG','Show\x20workspace\x20details','473928KzlcmY','--trace','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Parent\x20segment\x20description','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','Add\x20attributes\x20from\x20JSON\x20file','templates\x20[pattern]','--session-time\x20<time>','campaign','show\x20<name-or-id>','launch\x20<name-or-id>','--json-columns\x20<cols>','Create\x20a\x20new\x20campaign','Delete\x20an\x20agent','Database\x20name\x20(default:\x20information_schema)','--behaviors\x20<json>','--temperature\x20<n>','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','argumentDescription','Parent\x20segment\x20management','parents\x20[pattern]','Agent\x20prompt/instructions','command','site','Updated\x20timezone','--from\x20<timestamp>','-u,\x20--use','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--name\x20<text>','tdx\x20','parent-segment','Customer\x20group\x20as\x20JSON\x20string','database','push\x20[file]','Workspace\x20description','information_schema','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Update\x20an\x20email\x20template','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--add-behaviors\x20<json>','Folder\x20description','tdx','show\x20[table]','name',',\x20version\x20','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','summary','Delete\x20an\x20LLM\x20project','End\x20time\x20filter\x20(ISO\x208601\x20format)','statusline','desc\x20[segment_name]','--output\x20<file>','Get\x20job\x20results','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','download\x20<project-name>\x20[output-dir]','Create\x20an\x20email\x20template','run\x20<workflow>','--attributes-file\x20<file>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--type\x20<type>','2961584tLhrXh','Output\x20as\x20JSON','agent','validate\x20[file]','argv','users','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Resume\x20a\x20paused\x20campaign','Email\x20template\x20management','claude-4.5-sonnet','Updated\x20schedule\x20option','Save\x20output\x20to\x20file','preAction','create\x20<name>','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--add-attributes-file\x20<file>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--behavior\x20[name]','Workflow\x20project\x20management','workflow','--tsv','--json','attempt:','hidden','--workspace\x20<name>','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Workspace\x20name','Add\x20attributes\x20as\x20JSON\x20string','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Model\x20name\x20(default:\x20claude-4.5-sonnet)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','--parent-segment\x20<name>','List\x20all\x20available\x20profiles','commands','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','status','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','allowUnknownOption','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','delete\x20<project-name-or-id>','pull\x20[parent_or_file]','Trino\x20catalog\x20(default:\x20td)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Arguments:','Show\x20connection\x20details\x20by\x20name','commandUsage','Plaintext\x20template\x20content','parent','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Start\x20a\x20new\x20chat\x20session','options','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','delete\x20<name-or-id>','Include\x20retried\x20attempts','-r,\x20--recursive','Limit\x20number\x20of\x20rows','tables\x20[pattern]','Data\x20connection\x20management\x20(for\x20activations/exports)','duplicate\x20<name-or-id>','create\x20<segment_name>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','tasks','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Filtering\x20rule\x20as\x20JSON\x20string','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','show\x20[name]','help','padWidth','update\x20<segment_name>','parent_segment','-y,\x20--yes','--parent-folder\x20<name>','39834corfSW','--agent\x20<ref>','noColor','--max-depth\x20<depth>','--description\x20<text>','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','push','Read\x20query\x20from\x20file','-p,\x20--profile\x20<name>','--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','9zahgXB','--prompt\x20<text>','use\x20<path>','--in\x20<database>','--session\x20<id>','-X,\x20--method\x20<method>','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','logLevel','LLM\x20project\x20management','--new','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--invisible','--schedule-type\x20<type>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','session','Table\x20management\x20commands','use\x20<project-name>','--timezone\x20<tz>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--no-color','--full','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Unknown\x20action:\x20','view\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','opts','--database\x20<name>','--name\x20<new_name>','[task-name]','Workflow\x20parameter\x20(repeatable)','--in\x20<name>','info\x20[segment_name]','jsonl','Workspace\x20name\x20(required)','Resume\x20from\x20specific\x20task\x20(retry)','Database\x20to\x20query\x20(default:\x20information_schema)','join','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Kill\x20a\x20job','use\x20[name]','\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','format','--reason\x20<text>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--data\x20<data>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','describe\x20[table]','.dev','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','length','Override\x20project\x20name','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--port\x20<number>','usage','auth','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','utf-8','--limit\x20<number>','show\x20<folder_ref>','--plaintext\x20<text>','Set\x20operation\x20timeout\x20in\x20seconds','--dry-run','option','Folder\x20name\x20for\x20organization','Agent\x20description','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','INFO','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--yes','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Output\x20as\x20JSON\x20Lines','--rule\x20<json>','after','Skip\x20population\x20counting','project','workspaces\x20[pattern]','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','claude\x20[args...]','--color','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','slice','Agent\x20name','connection','Skip\x20confirmation\x20prompts','resume\x20<name-or-id>','chat\x20[message...]','--no-proxy','List\x20available\x20LLM\x20models','context','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','tsv','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','hook','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','show\x20<agent-name>','-v,\x20--verbose','outputHelp','subcommandDescription','flatMap','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','--include-retried','--add-behaviors-file\x20<file>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','proxy','Make\x20segment\x20invisible\x20(default:\x20visible)','Resume\x20a\x20conversation\x20(shows\x20selector)','-d,\x20--database\x20<database>','-o,\x20--output\x20<file>','Output\x20file\x20path\x20(default:\x20<name>.yml)','--starter-message\x20<text>','Campaign\x20management','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','LLM\x20agent\x20management','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','logs','Pause\x20a\x20campaign','\x20-\x20built\x20','Set\x20or\x20show\x20parent\x20segment\x20context','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Editor\x20type','submit\x20[query]','argumentTerm','fields\x20[name]','description','validate\x20[name]','registeredArguments','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','List\x20jobs','../package.json','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Attributes\x20from\x20JSON\x20file','connections','fields\x20[parent_name]','map','retry','attempts\x20[project]','us01','llm','--delete','--enriched','list\x20[pattern]','set','error','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','engage','--force','apiKey','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','_hidden','history\x20[chat-id]','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--database\x20<db>','Skip\x20confirmation\x20prompt','use\x20<name>','--timeout\x20<seconds>','Create\x20a\x20workspace','preview\x20[file]','catch','Commands:','update\x20<agent-name>','Enable\x20verbose\x20logging','--folder\x20<name>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','AI-native\x20CLI\x20for\x20Treasure\x20Data','-H,\x20--header\x20<header>','Show\x20only\x20master\x20table\x20validation','Resume\x20from\x20specific\x20task','Skip\x20validation\x20of\x20.dig\x20files','log','Move\x20to\x20folder','restore\x20<folder>','buildTime','HTML\x20template\x20content','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','sessions\x20[project]','1108050zWJAqt','Output\x20file\x20path','desc','parse','Master\x20table\x20name','-w,\x20--web','Delete\x20a\x20workspace','Campaign\x20description','Campaign\x20name','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Show\x20job\x20details','Pull\x20child\x20segments\x20to\x20YAML\x20files','agents\x20[pattern]','delete\x20<agent-name>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','--params\x20<json>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--html\x20<html>','Email\x20subject\x20template','Email\x20sender\x20ID\x20for\x20delivery','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'];a2_0x31c9=function(){return _0xf694fb;};return a2_0x31c9();}const folderCmd=segmentCmd[a2_0x48b67c(0x305)]('folder',{'hidden':!![]})[a2_0x48b67c(0x1f4)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd['command'](a2_0x48b67c(0x1b1))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x287))['action'](async(_0x4fbe7e,_0x429e91)=>{const _0x58b73b=a2_0x48b67c,_0x1508df=new SegmentFolderShowCommand(),_0x341f66=program['opts'](),_0x2201a1=await createTDXInstance(_0x341f66),_0x33b039=await _0x1508df[_0x58b73b(0x247)]({'options':{..._0x341f66,..._0x429e91},'args':[_0x4fbe7e],'tdx':_0x2201a1});process[_0x58b73b(0x248)](_0x33b039);}),segmentCmd[a2_0x48b67c(0x305)]('sql\x20[segment_name]')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1fb))[a2_0x48b67c(0x2c3)](async(_0x53bfe8,_0x3ddf70)=>{const _0x307da9=a2_0x48b67c,_0x2e33c3=new SegmentSQLCommand(),_0x467c8d=program[_0x307da9(0x18e)](),_0x498196=await createTDXInstance(_0x467c8d),_0x23b7d8=await _0x2e33c3[_0x307da9(0x247)]({'options':{..._0x467c8d,..._0x3ddf70},'args':_0x53bfe8?[_0x53bfe8]:[],'tdx':_0x498196});process[_0x307da9(0x248)](_0x23b7d8);}),segmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x1fe))['description'](a2_0x48b67c(0x32c))['action'](async(_0x4bd2f7,_0x51efb2)=>{const _0x4895bf=a2_0x48b67c,_0x34d3ef=new SegmentFieldsCommand(),_0x1cdfc8=program[_0x4895bf(0x18e)](),_0x4283d1=await createTDXInstance(_0x1cdfc8),_0x299603=await _0x34d3ef[_0x4895bf(0x247)]({'options':{..._0x1cdfc8,..._0x51efb2},'args':_0x4bd2f7?[_0x4bd2f7]:[],'tdx':_0x4283d1});process[_0x4895bf(0x248)](_0x299603);}),segmentCmd['command'](a2_0x48b67c(0x147))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x236))['option'](a2_0x48b67c(0x166),a2_0x48b67c(0x1cc))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1b4),a2_0x48b67c(0x13b))[a2_0x48b67c(0x2c3)](async(_0x399352,_0xd953af)=>{const _0x2f93ff=a2_0x48b67c,_0x46c1ae=new SegmentPullCommand(),_0x5a73e8=program[_0x2f93ff(0x18e)](),_0x16dc6f=await createTDXInstance(_0x5a73e8),_0x11a869=await _0x46c1ae[_0x2f93ff(0x247)]({'options':{..._0x5a73e8,..._0xd953af},'args':_0x399352?[_0x399352]:[],'tdx':_0x16dc6f});process['exit'](_0x11a869);}),segmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x279))['description'](a2_0x48b67c(0x1bc))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x166),a2_0x48b67c(0x1cc))['option'](a2_0x48b67c(0x1b4),a2_0x48b67c(0x13b))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x204),a2_0x48b67c(0x239))[a2_0x48b67c(0x2c3)](async(_0x505cd9,_0x51541f)=>{const _0x54fe9d=a2_0x48b67c,_0x300b7c=new SegmentPushCommand(),_0x1ba0e2=program[_0x54fe9d(0x18e)](),_0x2bad83=await createTDXInstance(_0x1ba0e2),_0xd729dd=await _0x300b7c[_0x54fe9d(0x247)]({'options':{..._0x1ba0e2,..._0x51541f},'args':_0x505cd9?[_0x505cd9]:[],'tdx':_0x2bad83});process['exit'](_0xd729dd);}),segmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x15a),{'hidden':!![]})['description'](a2_0x48b67c(0x17a))['option'](a2_0x48b67c(0x16c),a2_0x48b67c(0x2cb))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1c0),a2_0x48b67c(0x15f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x27b),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x21b),a2_0x48b67c(0x1b6))['option']('--kind\x20<type>',a2_0x48b67c(0x315))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x180),a2_0x48b67c(0x1e1))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2db),a2_0x48b67c(0x1c2))['action'](async(_0x4ff9ad,_0x1e7f2f)=>{const _0x4f0485=a2_0x48b67c,_0x19ab9b=new SegmentCreateCommand(),_0x5935fc=program[_0x4f0485(0x18e)](),_0x599ff4=await createTDXInstance(_0x5935fc),_0x2ebc69=await _0x19ab9b['run']({'options':{..._0x5935fc,..._0x1e7f2f},'args':[_0x4ff9ad],'tdx':_0x599ff4});process['exit'](_0x2ebc69);}),segmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x164),{'hidden':!![]})[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x26f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x190),'New\x20segment\x20name')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x16c),a2_0x48b67c(0x2e0))[a2_0x48b67c(0x1b5)]('--rule\x20<json>',a2_0x48b67c(0x2a2))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x27b),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x48b67c(0x1b5)]('--folder\x20<name>',a2_0x48b67c(0x224))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2c6),a2_0x48b67c(0x315))['action'](async(_0x93c6e4,_0x56cbaf)=>{const _0xde4cca=a2_0x48b67c,_0xf78308=new SegmentUpdateCommand(),_0xa8fb0f=program['opts'](),_0x4b091d=await createTDXInstance(_0xa8fb0f),_0x1e619c=await _0xf78308['run']({'options':{..._0xa8fb0f,..._0x56cbaf},'args':[_0x93c6e4],'tdx':_0x4b091d});process[_0xde4cca(0x248)](_0x1e619c);});const parentCmd=segmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x14e),{'hidden':!![]})[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x23f)),parentListAction=async(_0x4cf404,_0x37736d)=>{const _0x340fed=a2_0x48b67c,_0x2d4c3a=new ParentSegmentListCommand(),_0x51c11d=program[_0x340fed(0x18e)](),_0x3dd303=await createTDXInstance(_0x51c11d),_0xc6e4f4=await _0x2d4c3a['run']({'options':{..._0x51c11d,..._0x37736d},'args':_0x4cf404?[_0x4cf404]:[],'tdx':_0x3dd303});process[_0x340fed(0x248)](_0xc6e4f4);};parentCmd['command'](a2_0x48b67c(0x206))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x288))['action'](parentListAction),segmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x303),{'hidden':!![]})[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x233))[a2_0x48b67c(0x2c3)](parentListAction),parentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x27c))['description'](a2_0x48b67c(0x33f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1e4),a2_0x48b67c(0x1e5))[a2_0x48b67c(0x1b5)]('-y,\x20--yes',a2_0x48b67c(0x212))['action'](async(_0x5247c5,_0x180601)=>{const _0x3b92fa=a2_0x48b67c,_0x25ca7f=new ParentSegmentPullCommand(),_0x24307f=program[_0x3b92fa(0x18e)](),_0x43b20b=await createTDXInstance(_0x24307f),_0x2c1811=await _0x25ca7f[_0x3b92fa(0x247)]({'options':{..._0x24307f,..._0x180601},'args':_0x5247c5?[_0x5247c5]:[],'tdx':_0x43b20b});process['exit'](_0x2c1811);}),parentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x310))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x17f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x166),a2_0x48b67c(0x212))[a2_0x48b67c(0x2c3)](async(_0x4f726d,_0x12a45f)=>{const _0x2b7017=a2_0x48b67c,_0x51b236=new ParentSegmentPushCommand(),_0x121885=program[_0x2b7017(0x18e)](),_0x2309c6=await createTDXInstance(_0x121885),_0x308f60=await _0x51b236[_0x2b7017(0x247)]({'options':{..._0x121885,..._0x12a45f},'args':_0x4f726d?[_0x4f726d]:[],'tdx':_0x2309c6});process[_0x2b7017(0x248)](_0x308f60);}),parentCmd['command'](a2_0x48b67c(0x331))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x270))['option']('--master',a2_0x48b67c(0x220))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2c8),a2_0x48b67c(0x141))['option'](a2_0x48b67c(0x340),a2_0x48b67c(0x149))['option'](a2_0x48b67c(0x205),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x48b67c(0x1b5)]('--interval\x20<range>',a2_0x48b67c(0x297),'-1d')[a2_0x48b67c(0x2c3)](async(_0x2b2780,_0x4dfbf)=>{const _0x3bb778=a2_0x48b67c,_0x1e5305=new ParentSegmentValidateCommand(),_0x1e630a=program['opts'](),_0x28e311=await createTDXInstance(_0x1e630a),_0x35f31a=await _0x1e5305[_0x3bb778(0x247)]({'options':{..._0x1e630a,..._0x4dfbf},'args':_0x2b2780?[_0x2b2780]:[],'tdx':_0x28e311});process[_0x3bb778(0x248)](_0x35f31a);}),parentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x216))[a2_0x48b67c(0x1f4)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x26b),'Show\x20master\x20table\x20sample\x20data')['option'](a2_0x48b67c(0x2c8),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x340),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x205),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2b7),a2_0x48b67c(0x297),a2_0x48b67c(0x264))[a2_0x48b67c(0x2c3)](async(_0x30f468,_0x29758c)=>{const _0x37db65=a2_0x48b67c,_0x4ef9e8=new ParentSegmentPreviewCommand(),_0x4f2271=program[_0x37db65(0x18e)](),_0x2a41da=await createTDXInstance(_0x4f2271),_0x182d07=await _0x4ef9e8['run']({'options':{..._0x4f2271,..._0x29758c},'args':_0x30f468?[_0x30f468]:[],'tdx':_0x2a41da});process['exit'](_0x182d07);}),parentCmd[a2_0x48b67c(0x305)]('run\x20[name]')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2b1))[a2_0x48b67c(0x1b5)]('-y,\x20--yes',a2_0x48b67c(0x212))[a2_0x48b67c(0x2c3)](async(_0x2bc907,_0x237bb8)=>{const _0x213488=a2_0x48b67c,_0x5f0f73=new ParentSegmentRunCommand(),_0x56f902=program[_0x213488(0x18e)](),_0x15d1b6=await createTDXInstance(_0x56f902),_0x4b8eb2=await _0x5f0f73[_0x213488(0x247)]({'options':{..._0x56f902,..._0x237bb8},'args':_0x2bc907?[_0x2bc907]:[],'tdx':_0x15d1b6});process['exit'](_0x4b8eb2);});const parentSegmentCmd=program[a2_0x48b67c(0x305)](a2_0x48b67c(0x30d))['alias']('ps')['description'](a2_0x48b67c(0x302));parentSegmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x206))['description'](a2_0x48b67c(0x288))['action'](parentListAction),parentSegmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x27c))['description'](a2_0x48b67c(0x21d))['option'](a2_0x48b67c(0x1e4),a2_0x48b67c(0x22b))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x166),a2_0x48b67c(0x212))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x309),a2_0x48b67c(0x1a8))[a2_0x48b67c(0x2c3)](async(_0x4af45c,_0xc2f712)=>{const _0x17da3b=a2_0x48b67c,_0x450c20=new ParentSegmentPullCommand(),_0x10d231=program[_0x17da3b(0x18e)](),_0x464146=await createTDXInstance(_0x10d231),_0x59dd32=await _0x450c20[_0x17da3b(0x247)]({'options':{..._0x10d231,..._0xc2f712},'args':_0x4af45c?[_0x4af45c]:[],'tdx':_0x464146});process['exit'](_0x59dd32);}),parentSegmentCmd['command']('push\x20[name]')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2ca))['option'](a2_0x48b67c(0x166),a2_0x48b67c(0x212))['action'](async(_0x206afa,_0x158304)=>{const _0x5619e6=a2_0x48b67c,_0x2eef8f=new ParentSegmentPushCommand(),_0xbfd6fc=program[_0x5619e6(0x18e)](),_0x2bf9ed=await createTDXInstance(_0xbfd6fc),_0x64f16e=await _0x2eef8f['run']({'options':{..._0xbfd6fc,..._0x158304},'args':_0x206afa?[_0x206afa]:[],'tdx':_0x2bf9ed});process[_0x5619e6(0x248)](_0x64f16e);}),parentSegmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x1f5))[a2_0x48b67c(0x1f4)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x26b),a2_0x48b67c(0x220))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2c8),a2_0x48b67c(0x141))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x340),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x48b67c(0x205),a2_0x48b67c(0x18d))['option']('--interval\x20<range>',a2_0x48b67c(0x297),a2_0x48b67c(0x264))[a2_0x48b67c(0x2c3)](async(_0x18de94,_0x4e0e8e)=>{const _0x226477=a2_0x48b67c,_0x330259=new ParentSegmentValidateCommand(),_0x2e60c9=program[_0x226477(0x18e)](),_0x415bc9=await createTDXInstance(_0x2e60c9),_0x106f38=await _0x330259['run']({'options':{..._0x2e60c9,..._0x4e0e8e},'args':_0x18de94?[_0x18de94]:[],'tdx':_0x415bc9});process[_0x226477(0x248)](_0x106f38);}),parentSegmentCmd['command']('preview\x20[name]')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x254))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x26b),a2_0x48b67c(0x2da))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2c8),a2_0x48b67c(0x1ea))[a2_0x48b67c(0x1b5)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x48b67c(0x1b5)]('--enriched',a2_0x48b67c(0x2eb))['option'](a2_0x48b67c(0x2b7),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x48b67c(0x264))['action'](async(_0x4903ef,_0x6fba79)=>{const _0x458433=a2_0x48b67c,_0x5c4b8e=new ParentSegmentPreviewCommand(),_0x3a9080=program[_0x458433(0x18e)](),_0x35cce0=await createTDXInstance(_0x3a9080),_0x6a8503=await _0x5c4b8e[_0x458433(0x247)]({'options':{..._0x3a9080,..._0x6fba79},'args':_0x4903ef?[_0x4903ef]:[],'tdx':_0x35cce0});process[_0x458433(0x248)](_0x6a8503);}),parentSegmentCmd[a2_0x48b67c(0x305)]('run\x20[name]')[a2_0x48b67c(0x1f4)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x48b67c(0x166),'Skip\x20confirmation\x20prompt')[a2_0x48b67c(0x2c3)](async(_0xa94854,_0x3b5a05)=>{const _0x3e5ca5=a2_0x48b67c,_0x270782=new ParentSegmentRunCommand(),_0x2c07e4=program[_0x3e5ca5(0x18e)](),_0x333e82=await createTDXInstance(_0x2c07e4),_0x354e6d=await _0x270782['run']({'options':{..._0x2c07e4,..._0x3b5a05},'args':_0xa94854?[_0xa94854]:[],'tdx':_0x333e82});process['exit'](_0x354e6d);}),parentSegmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x1f3))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x13d))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x134),a2_0x48b67c(0x32f))['option']('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x48b67c(0x2c3)](async(_0x1cbb08,_0xc54ba4)=>{const _0x17d35d=a2_0x48b67c,_0x14dae7=new ParentSegmentFieldsCommand(),_0x357e75=program['opts'](),_0x3f60e2=await createTDXInstance(_0x357e75),_0x55e7d7=await _0x14dae7[_0x17d35d(0x247)]({'options':{..._0x357e75,..._0xc54ba4},'args':_0x1cbb08?[_0x1cbb08]:[],'tdx':_0x3f60e2});process['exit'](_0x55e7d7);}),parentSegmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x18c))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x16d))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x22f),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x134),'Output\x20as\x20JSON')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x296),'Output\x20as\x20JSON\x20Lines')[a2_0x48b67c(0x2c3)](async(_0x3a4be3,_0x40d70c)=>{const _0x584be7=a2_0x48b67c,_0xd7f3e2=new ParentSegmentViewCommand(),_0x452d33=program[_0x584be7(0x18e)](),_0x91223c=await createTDXInstance(_0x452d33),_0x577a26=await _0xd7f3e2['run']({'options':{..._0x452d33,..._0x40d70c},'args':_0x3a4be3?[_0x3a4be3]:[],'tdx':_0x91223c});process['exit'](_0x577a26);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1ac))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x134),a2_0x48b67c(0x32f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x296),a2_0x48b67c(0x1bf))[a2_0x48b67c(0x2c3)](async(_0x36cb46,_0x44e167)=>{const _0x5824fd=a2_0x48b67c,_0x4bd9c0=new ParentSegmentDescCommand(),_0x424b56=program['opts'](),_0x2b5f2a=await createTDXInstance(_0x424b56),_0xbf5b74=await _0x4bd9c0[_0x5824fd(0x247)]({'options':{..._0x424b56,..._0x44e167},'args':_0x36cb46?[_0x36cb46]:[],'tdx':_0x2b5f2a});process[_0x5824fd(0x248)](_0xbf5b74);}),parentSegmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2a5))[a2_0x48b67c(0x1f4)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x48b67c(0x1b5)]('--json',a2_0x48b67c(0x32f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x296),a2_0x48b67c(0x1bf))[a2_0x48b67c(0x2c3)](async(_0x589e3e,_0x2290d7)=>{const _0x548cde=a2_0x48b67c,_0x44a619=new ParentSegmentSQLCommand(),_0x2278f4=program[_0x548cde(0x18e)](),_0x27e818=await createTDXInstance(_0x2278f4),_0x3fb037=await _0x44a619[_0x548cde(0x247)]({'options':{..._0x2278f4,..._0x2290d7},'args':_0x589e3e?[_0x589e3e]:[],'tdx':_0x27e818});process[_0x548cde(0x248)](_0x3fb037);}),parentSegmentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x161))[a2_0x48b67c(0x1f4)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2a7),a2_0x48b67c(0x156))[a2_0x48b67c(0x1b5)]('--json',a2_0x48b67c(0x32f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x296),a2_0x48b67c(0x1bf))[a2_0x48b67c(0x2c3)](async(_0x21402c,_0x550893)=>{const _0x2c2667=a2_0x48b67c,_0x1c0395=new ParentSegmentShowCommand(),_0x114a22=program[_0x2c2667(0x18e)](),_0x5c9801=await createTDXInstance(_0x114a22),_0x168608=await _0x1c0395[_0x2c2667(0x247)]({'options':{..._0x114a22,..._0x550893},'args':_0x21402c?[_0x21402c]:[],'tdx':_0x5c9801});process[_0x2c2667(0x248)](_0x168608);}),parentSegmentCmd['command'](a2_0x48b67c(0x19c))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1ee))[a2_0x48b67c(0x2c3)](async(_0x21fb05,_0x2c06ce)=>{const _0x300032=a2_0x48b67c,_0x2a5742=new UseCommand(),_0x252d1c=program[_0x300032(0x18e)](),_0x433264=_0x21fb05?[_0x300032(0x165),_0x21fb05]:[],_0x11bcc1=await _0x2a5742[_0x300032(0x247)]({'options':{..._0x252d1c,..._0x2c06ce},'args':_0x433264,'tdx':null});process['exit'](_0x11bcc1);}),parentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x33b))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x18a))[a2_0x48b67c(0x258)](a2_0x48b67c(0x211),a2_0x48b67c(0x2b8))[a2_0x48b67c(0x258)]('--table\x20<table>',a2_0x48b67c(0x22e))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x16c),a2_0x48b67c(0x2f1))[a2_0x48b67c(0x1b5)]('--schedule-type\x20<type>',a2_0x48b67c(0x326))['option'](a2_0x48b67c(0x2d4),a2_0x48b67c(0x1d4))[a2_0x48b67c(0x1b5)]('--timezone\x20<tz>',a2_0x48b67c(0x2b6))[a2_0x48b67c(0x1b5)]('--attributes\x20<json>',a2_0x48b67c(0x25a))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x32a),a2_0x48b67c(0x1fc))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2fd),'Behaviors\x20as\x20JSON\x20string')[a2_0x48b67c(0x1b5)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x48b67c(0x1b5)]('--customer-group\x20<json>',a2_0x48b67c(0x30e))[a2_0x48b67c(0x1b5)]('--customer-group-file\x20<file>','Customer\x20group\x20from\x20JSON\x20file')[a2_0x48b67c(0x2c3)](async(_0x305004,_0x4699c7)=>{const _0x30b53d=a2_0x48b67c,_0x35b18d=new ParentSegmentCreateCommand(),_0x4f42c0=program['opts'](),_0x3be73c=await createTDXInstance(_0x4f42c0),_0x557652=await _0x35b18d[_0x30b53d(0x247)]({'options':{..._0x4f42c0,..._0x4699c7},'args':[_0x305004],'tdx':_0x3be73c});process[_0x30b53d(0x248)](_0x557652);}),parentCmd['command']('update\x20<name>')['description']('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x16c),a2_0x48b67c(0x2e0))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x181),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2d4),a2_0x48b67c(0x338))[a2_0x48b67c(0x1b5)]('--timezone\x20<tz>',a2_0x48b67c(0x307))['option']('--add-attributes\x20<json>',a2_0x48b67c(0x13a))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x33d),a2_0x48b67c(0x2f3))['option'](a2_0x48b67c(0x316),'Add\x20behaviors\x20as\x20JSON\x20string')['option'](a2_0x48b67c(0x1de),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x48b67c(0x2c3)](async(_0xa8779e,_0x4f0567)=>{const _0x34c8dd=a2_0x48b67c,_0x500fb5=new ParentSegmentUpdateCommand(),_0x5abcf0=program[_0x34c8dd(0x18e)](),_0x443c95=await createTDXInstance(_0x5abcf0),_0x182a03=await _0x500fb5[_0x34c8dd(0x247)]({'options':{..._0x5abcf0,..._0x4f0567},'args':[_0xa8779e],'tdx':_0x443c95});process[_0x34c8dd(0x248)](_0x182a03);}),folderCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2c2))[a2_0x48b67c(0x1f4)]('Create\x20segment\x20folder')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x16c),a2_0x48b67c(0x317))['option'](a2_0x48b67c(0x167),a2_0x48b67c(0x2ad))[a2_0x48b67c(0x2c3)](async(_0x68d68,_0x96e10e,_0x50008f)=>{const _0x29e7b2=a2_0x48b67c,_0x84d58a=new SegmentFolderCreateCommand(),_0x4be13b=program['opts'](),_0x5ce797=await createTDXInstance(_0x4be13b),_0x38a1bb=await _0x84d58a[_0x29e7b2(0x247)]({'options':{..._0x4be13b,..._0x50008f},'args':[_0x68d68,_0x96e10e],'tdx':_0x5ce797});process[_0x29e7b2(0x248)](_0x38a1bb);}),program['command']('activations\x20<segment_name>')['description'](a2_0x48b67c(0x1c8))['action'](async(_0x410152,_0x16e056)=>{const _0x38355a=a2_0x48b67c,_0x3e5372=new ActivationsCommand(),_0x3969b6=program[_0x38355a(0x18e)](),_0x40cb02=await createTDXInstance(_0x3969b6),_0x5c27eb=await _0x3e5372['run']({'options':{..._0x3969b6,..._0x16e056},'args':[_0x410152],'tdx':_0x40cb02});process[_0x38355a(0x248)](_0x5c27eb);});const workflowCmd=program[a2_0x48b67c(0x305)](a2_0x48b67c(0x132))[a2_0x48b67c(0x29f)]('wf')[a2_0x48b67c(0x1f4)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x1c3))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x131)),wfProjectListAction=async(_0x2f3cc2,_0x413a1a)=>{const _0x58442e=a2_0x48b67c,_0xcb65da=new WorkflowProjectsCommand(),_0x310d54=program[_0x58442e(0x18e)](),_0x44f16f=await createTDXInstance(_0x310d54),_0x4cee3e=await _0xcb65da[_0x58442e(0x247)]({'options':{..._0x310d54,..._0x413a1a},'args':_0x2f3cc2?[_0x2f3cc2]:[],'tdx':_0x44f16f});process[_0x58442e(0x248)](_0x4cee3e);};wfProjectCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x206))['description'](a2_0x48b67c(0x1a0))[a2_0x48b67c(0x2c3)](wfProjectListAction),workflowCmd[a2_0x48b67c(0x305)]('projects\x20[pattern]')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x20d))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x1ffc0d,_0x34ecf3)=>{const _0x110ee6=a2_0x48b67c,_0x521807=new WorkflowWorkflowsCommand(),_0x8ed869=program[_0x110ee6(0x18e)](),_0x3a00be=await createTDXInstance(_0x8ed869),_0x4f8999=await _0x521807[_0x110ee6(0x247)]({'options':{..._0x8ed869,..._0x34ecf3},'args':_0x1ffc0d?[_0x1ffc0d]:[],'tdx':_0x3a00be});process[_0x110ee6(0x248)](_0x4f8999);};workflowCmd['command']('workflows\x20[project]')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x257))[a2_0x48b67c(0x2c3)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x183))['description'](a2_0x48b67c(0x2d1)),wfSessionListAction=async(_0x2addc0,_0x149269)=>{const _0x4fbfc1=a2_0x48b67c,_0x53a5e7=new WorkflowSessionsCommand(),_0x13d3ef=program[_0x4fbfc1(0x18e)](),_0x5619d1=await createTDXInstance(_0x13d3ef),_0x316981=await _0x53a5e7[_0x4fbfc1(0x247)]({'options':{..._0x13d3ef,..._0x149269},'args':_0x2addc0?[_0x2addc0]:[],'tdx':_0x5619d1});process[_0x4fbfc1(0x248)](_0x316981);};wfSessionCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2bb))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1f7))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x171),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x308),a2_0x48b67c(0x2ae))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x274),a2_0x48b67c(0x31f))[a2_0x48b67c(0x2c3)](wfSessionListAction),workflowCmd['command'](a2_0x48b67c(0x229))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x313))['option'](a2_0x48b67c(0x171),a2_0x48b67c(0x172))['option']('--from\x20<timestamp>',a2_0x48b67c(0x2ae))[a2_0x48b67c(0x1b5)]('--to\x20<timestamp>',a2_0x48b67c(0x31f))[a2_0x48b67c(0x2c3)](wfSessionListAction);const wfAttemptListAction=async(_0x3fa521,_0x383dbb)=>{const _0x4c5aa9=a2_0x48b67c,_0xa731d1=new WorkflowAttemptsCommand(),_0x4a9dd6=program[_0x4c5aa9(0x18e)](),_0x3861a7=await createTDXInstance(_0x4a9dd6),_0x338f4e=await _0xa731d1[_0x4c5aa9(0x247)]({'options':{..._0x4a9dd6,..._0x383dbb},'args':_0x3fa521?[_0x3fa521]:[],'tdx':_0x3861a7});process['exit'](_0x338f4e);},attemptCmd=workflowCmd['command'](a2_0x48b67c(0x2e5))[a2_0x48b67c(0x1f4)]('Workflow\x20attempt\x20management')[a2_0x48b67c(0x267)](a2_0x48b67c(0x2e1),'Attempt\x20ID')[a2_0x48b67c(0x267)](a2_0x48b67c(0x241),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x48b67c(0x267)](a2_0x48b67c(0x191),'Task\x20name\x20for\x20logs\x20action')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2a1),a2_0x48b67c(0x2a0))['option'](a2_0x48b67c(0x19f),a2_0x48b67c(0x2d0))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2b3),a2_0x48b67c(0x197))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x23a),a2_0x48b67c(0x24e))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x20b),'Force\x20retry\x20even\x20if\x20not\x20failed')['option'](a2_0x48b67c(0x1dd),a2_0x48b67c(0x24b))['action'](async(_0x273179,_0x4f977f,_0x1f5729,_0x37b450)=>{const _0xd49d15=a2_0x48b67c;if(_0x273179==='list'){await wfAttemptListAction(_0x4f977f,_0x37b450);return;}if(!_0x273179){attemptCmd['help']();return;}const _0x530616=program[_0xd49d15(0x18e)](),_0x269f28=await createTDXInstance(_0x530616);let _0xa81337=0x0;if(!_0x4f977f){const _0x41d1ad=new WorkflowAttemptCommand();_0xa81337=await _0x41d1ad['run']({'options':{..._0x530616,..._0x37b450},'args':[_0x273179],'tdx':_0x269f28});}else{if(_0x4f977f===_0xd49d15(0x1eb)){const _0x532b54=new WorkflowLogsCommand();_0xa81337=await _0x532b54[_0xd49d15(0x247)]({'options':{..._0x530616,..._0x37b450},'args':_0x1f5729?[_0x273179,_0x1f5729]:[_0x273179],'tdx':_0x269f28});}else{if(_0x4f977f===_0xd49d15(0x15c)){const _0x2fdf38=new WorkflowTasksCommand();_0xa81337=await _0x2fdf38['run']({'options':{..._0x530616,..._0x37b450},'args':[_0x273179],'tdx':_0x269f28});}else{if(_0x4f977f===_0xd49d15(0x2e9)){const _0x170b5a=new WorkflowKillCommand();_0xa81337=await _0x170b5a[_0xd49d15(0x247)]({'options':{..._0x530616,..._0x37b450},'args':[_0x273179],'tdx':_0x269f28});}else{if(_0x4f977f===_0xd49d15(0x200)){const _0x2f92a5=new WorkflowRetryCommand();_0xa81337=await _0x2f92a5['run']({'options':{..._0x530616,..._0x37b450},'args':[_0xd49d15(0x135)+_0x273179],'tdx':_0x269f28});}else console[_0xd49d15(0x208)](_0xd49d15(0x18b)+_0x4f977f),console[_0xd49d15(0x208)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0xa81337=0x1;}}}}process['exit'](_0xa81337);});attemptCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2bb))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x14f))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1dd),a2_0x48b67c(0x154))[a2_0x48b67c(0x2c3)](wfAttemptListAction),workflowCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x201))['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1dd),a2_0x48b67c(0x154))[a2_0x48b67c(0x2c3)](wfAttemptListAction),workflowCmd[a2_0x48b67c(0x305)]('retry\x20<session-id>')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x234))[a2_0x48b67c(0x1b5)]('--from-task\x20<task>',a2_0x48b67c(0x221))['option'](a2_0x48b67c(0x23a),a2_0x48b67c(0x228))[a2_0x48b67c(0x2c3)](async(_0x7d1845,_0x1b081c)=>{const _0x230271=a2_0x48b67c,_0x362b33=new WorkflowRetryCommand(),_0x4c6442=program[_0x230271(0x18e)](),_0x4136b5=await createTDXInstance(_0x4c6442),_0x3c0b4b=await _0x362b33['run']({'options':{..._0x4c6442,..._0x1b081c},'args':[_0x7d1845],'tdx':_0x4136b5});process[_0x230271(0x248)](_0x3c0b4b);}),workflowCmd['command'](a2_0x48b67c(0x329))['description'](a2_0x48b67c(0x300))[a2_0x48b67c(0x1b5)]('--param\x20<key=value>',a2_0x48b67c(0x192),(_0x12a7b2,_0x432229=[])=>[..._0x432229,_0x12a7b2],[])[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2f5),a2_0x48b67c(0x21c))[a2_0x48b67c(0x2c3)](async(_0x59e2f9,_0x3ee09a)=>{const _0x3b2305=a2_0x48b67c,_0x383c69=new WorkflowRunCommand(),_0x291f24=program['opts'](),_0x23c5f4=await createTDXInstance(_0x291f24),_0x56536e=await _0x383c69[_0x3b2305(0x247)]({'options':{..._0x291f24,..._0x3ee09a},'args':[_0x59e2f9],'tdx':_0x23c5f4});process['exit'](_0x56536e);}),workflowCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x327))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1c5))[a2_0x48b67c(0x1b5)]('--revision\x20<revision>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x48b67c(0x2c3)](async(_0x36c664,_0xa1d8,_0x5f048f)=>{const _0x235e3e=a2_0x48b67c,_0x4031ac=new WorkflowDownloadCommand(),_0x5673c8=program[_0x235e3e(0x18e)](),_0x457c92=await createTDXInstance(_0x5673c8),_0x3f04f5=await _0x4031ac[_0x235e3e(0x247)]({'options':{..._0x5673c8,..._0x5f048f},'args':[_0x36c664,_0xa1d8||'.'],'tdx':_0x457c92});process[_0x235e3e(0x248)](_0x3f04f5);}),workflowCmd[a2_0x48b67c(0x305)]('push\x20[project-name-or-dir]')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1e8))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x242),a2_0x48b67c(0x1a7))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2cc),'Revision\x20name\x20(default:\x20timestamp)')['option'](a2_0x48b67c(0x243),a2_0x48b67c(0x222))[a2_0x48b67c(0x2c3)](async(_0x37380d,_0x981457)=>{const _0xb93947=a2_0x48b67c,_0x17f15a=new WorkflowPushCommand(),_0x5c52c1=program[_0xb93947(0x18e)](),_0x338f96=await createTDXInstance(_0x5c52c1),_0x2356a4=await _0x17f15a['run']({'options':{..._0x5c52c1,..._0x981457},'args':_0x37380d?[_0x37380d]:[],'tdx':_0x338f96});process[_0xb93947(0x248)](_0x2356a4);}),workflowCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x146))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x31c))['action'](async(_0x100cae,_0xc2ac1c)=>{const _0x4de96f=a2_0x48b67c,_0x1ed297=new WorkflowDeleteCommand(),_0x4225ca=program[_0x4de96f(0x18e)](),_0xb92037=await createTDXInstance(_0x4225ca),_0x19e39f=await _0x1ed297[_0x4de96f(0x247)]({'options':{..._0x4225ca,..._0xc2ac1c},'args':[_0x100cae],'tdx':_0xb92037});process[_0x4de96f(0x248)](_0x19e39f);});const jobCmd=program['command'](a2_0x48b67c(0x250))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2b2)),jobListAction=async _0x539bbf=>{const _0x877625=a2_0x48b67c,_0x4259fa=new JobListCommand(),_0x2f0a04=program[_0x877625(0x18e)](),_0x452901=await createTDXInstance(_0x2f0a04),_0x287d28=await _0x4259fa[_0x877625(0x247)]({'options':{..._0x2f0a04,..._0x539bbf},'args':[],'tdx':_0x452901});process[_0x877625(0x248)](_0x287d28);};jobCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x280))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1f9))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x171),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x48b67c(0x2c3)](jobListAction),program['command']('jobs',{'hidden':!![]})['description'](a2_0x48b67c(0x2d3))['option'](a2_0x48b67c(0x171),a2_0x48b67c(0x23b))[a2_0x48b67c(0x2c3)](jobListAction),jobCmd[a2_0x48b67c(0x305)]('show\x20<job-id>')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x235))[a2_0x48b67c(0x2c3)](async(_0x607bff,_0xda4cd5)=>{const _0x1b41bf=a2_0x48b67c,_0x1c1b1f=new JobShowCommand(),_0x53af95=program[_0x1b41bf(0x18e)](),_0x16847f=await createTDXInstance(_0x53af95),_0x2fd82e=await _0x1c1b1f['run']({'options':{..._0x53af95,..._0xda4cd5},'args':[_0x607bff],'tdx':_0x16847f});process[_0x1b41bf(0x248)](_0x2fd82e);}),jobCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x276))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x19b))[a2_0x48b67c(0x2c3)](async(_0x1e88fa,_0x2e31f7)=>{const _0x2fa206=a2_0x48b67c,_0x34d607=new JobKillCommand(),_0x2f2746=program[_0x2fa206(0x18e)](),_0x54b141=await createTDXInstance(_0x2f2746),_0x22ecb5=await _0x34d607[_0x2fa206(0x247)]({'options':{..._0x2f2746,..._0x2e31f7},'args':[_0x1e88fa],'tdx':_0x54b141});process['exit'](_0x22ecb5);}),jobCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x1f1))[a2_0x48b67c(0x1f4)]('Submit\x20a\x20job')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x298),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x29a),a2_0x48b67c(0x16f))['option'](a2_0x48b67c(0x18f),a2_0x48b67c(0x2fc),a2_0x48b67c(0x312))[a2_0x48b67c(0x2c3)](async(_0x4d276b,_0x23c803)=>{const _0x21b388=a2_0x48b67c,_0x231ba5=new JobSubmitCommand(),_0x106d31=program[_0x21b388(0x18e)](),_0x4966e3=await createTDXInstance(_0x106d31),_0x4ff0ec=await _0x231ba5['run']({'options':{..._0x106d31,..._0x23c803},'args':_0x4d276b?[_0x4d276b]:[],'tdx':_0x4966e3});process['exit'](_0x4ff0ec);}),jobCmd[a2_0x48b67c(0x305)]('result\x20<job-id>')['description'](a2_0x48b67c(0x323))[a2_0x48b67c(0x2c3)](async(_0x53c849,_0x33dc94)=>{const _0x4aa1b1=a2_0x48b67c,_0x2ac21c=new JobResultCommand(),_0x4b940=program[_0x4aa1b1(0x18e)](),_0x3b5f6b=await createTDXInstance(_0x4b940),_0x3c7fdd=await _0x2ac21c['run']({'options':{..._0x4b940,..._0x33dc94},'args':[_0x53c849],'tdx':_0x3b5f6b});process[_0x4aa1b1(0x248)](_0x3c7fdd);});const llmCmd=program[a2_0x48b67c(0x305)](a2_0x48b67c(0x203))['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x185))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x19a))[a2_0x48b67c(0x2c3)](async(_0xae28c7,_0x467e4e)=>{const _0x7fa312=a2_0x48b67c,_0xef43f8=new LLMUseCommand(),_0x5e88c5=program['opts'](),_0x466b3f=await createTDXInstance(_0x5e88c5),_0x18d870=await _0xef43f8['run']({'options':{..._0x5e88c5,..._0x467e4e},'args':[_0xae28c7],'tdx':_0x466b3f});process[_0x7fa312(0x248)](_0x18d870);}),llmCmd[a2_0x48b67c(0x305)]('models')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1d0))[a2_0x48b67c(0x2c3)](async _0x47b073=>{const _0x34834c=a2_0x48b67c,_0x325c95=new LLMModelsCommand(),_0x4d939a=program[_0x34834c(0x18e)](),_0x258456=await createTDXInstance(_0x4d939a),_0x29f237=await _0x325c95[_0x34834c(0x247)]({'options':{..._0x4d939a,..._0x47b073},'args':[],'tdx':_0x258456});process[_0x34834c(0x248)](_0x29f237);});const projectCmd=llmCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x1c3))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x17c)),llmProjectListAction=async(_0x2978fb,_0x505a29)=>{const _0x25e269=a2_0x48b67c,_0x597970=new LLMProjectsCommand(),_0x4f2b67=program[_0x25e269(0x18e)](),_0x5b12aa=await createTDXInstance(_0x4f2b67),_0x45ac44=await _0x597970[_0x25e269(0x247)]({'options':{..._0x4f2b67,..._0x505a29},'args':_0x2978fb?[_0x2978fb]:[],'tdx':_0x5b12aa});process[_0x25e269(0x248)](_0x45ac44);};projectCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x206))['description'](a2_0x48b67c(0x2ff))[a2_0x48b67c(0x2c3)](llmProjectListAction),llmCmd['command'](a2_0x48b67c(0x289))['description'](a2_0x48b67c(0x2ac))[a2_0x48b67c(0x2c3)](llmProjectListAction),projectCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x33b))['description'](a2_0x48b67c(0x24c))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x16c),'Project\x20description')[a2_0x48b67c(0x2c3)](async(_0x5dc3bb,_0x2cc7cc)=>{const _0x1c8553=a2_0x48b67c,_0x2a4d28=new LLMProjectCreateCommand(),_0xf0675c=program['opts'](),_0x395a1f=await createTDXInstance(_0xf0675c),_0x5d785e=await _0x2a4d28['run']({'options':{..._0xf0675c,..._0x2cc7cc},'args':[_0x5dc3bb],'tdx':_0x395a1f});process[_0x1c8553(0x248)](_0x5d785e);}),projectCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x27e))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x31e))['action'](async(_0x4d2868,_0x1ed628)=>{const _0x1c6213=a2_0x48b67c,_0x40da8f=new LLMProjectDeleteCommand(),_0x4b8533=program[_0x1c6213(0x18e)](),_0x2a5d00=await createTDXInstance(_0x4b8533),_0x2762d9=await _0x40da8f[_0x1c6213(0x247)]({'options':{..._0x4b8533,..._0x1ed628},'args':[_0x4d2868],'tdx':_0x2a5d00});process['exit'](_0x2762d9);}),projectCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x255))[a2_0x48b67c(0x1f4)]('Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x244),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x48b67c(0x1b5)]('--dry-run',a2_0x48b67c(0x269))[a2_0x48b67c(0x2c3)](async(_0x4011f6,_0x366230)=>{const _0x3ff8d2=a2_0x48b67c,_0x5e7d78=new LLMProjectBackupCommand(),_0x393205=program[_0x3ff8d2(0x18e)](),_0x3b5f99=await createTDXInstance(_0x393205),_0xca5661=await _0x5e7d78[_0x3ff8d2(0x247)]({'options':{..._0x393205,..._0x366230},'args':[_0x4011f6],'tdx':_0x3b5f99});process[_0x3ff8d2(0x248)](_0xca5661);}),projectCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x225))[a2_0x48b67c(0x1f4)]('Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2cf),a2_0x48b67c(0x30a))['option']('--dry-run',a2_0x48b67c(0x299))[a2_0x48b67c(0x2c3)](async(_0x556197,_0x4fa6d2)=>{const _0x16724c=a2_0x48b67c,_0x32e248=new LLMProjectRestoreCommand(),_0x2ea81f=program['opts'](),_0x5cb975=await createTDXInstance(_0x2ea81f),_0x78a5fe=await _0x32e248[_0x16724c(0x247)]({'options':{..._0x2ea81f,..._0x4fa6d2},'args':[_0x556197],'tdx':_0x5cb975});process[_0x16724c(0x248)](_0x78a5fe);});const agentCmd=llmCmd['command'](a2_0x48b67c(0x330))['description'](a2_0x48b67c(0x1e9)),llmAgentListAction=async(_0x278567,_0x322582)=>{const _0x1aff2c=a2_0x48b67c,_0x312330=new LLMAgentsCommand(),_0x3e4bc3=program[_0x1aff2c(0x18e)](),_0x5c8c85=await createTDXInstance(_0x3e4bc3),_0x5c6819=await _0x312330[_0x1aff2c(0x247)]({'options':{..._0x3e4bc3,..._0x322582},'args':_0x278567?[_0x278567]:[],'tdx':_0x5c8c85});process['exit'](_0x5c6819);};agentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x206))['description'](a2_0x48b67c(0x1a5))[a2_0x48b67c(0x2c3)](llmAgentListAction),llmCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x237))['description'](a2_0x48b67c(0x28e))[a2_0x48b67c(0x2c3)](llmAgentListAction),agentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x1d7))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x278))[a2_0x48b67c(0x2c3)](async(_0x4c538b,_0x304567)=>{const _0x571773=a2_0x48b67c,_0x2fed0f=new LLMAgentShowCommand(),_0x6acb4=program[_0x571773(0x18e)](),_0x232310=await createTDXInstance(_0x6acb4),_0x417478=await _0x2fed0f[_0x571773(0x247)]({'options':{..._0x6acb4,..._0x304567},'args':[_0x4c538b],'tdx':_0x232310});process['exit'](_0x417478);}),agentCmd[a2_0x48b67c(0x305)]('create\x20<name>')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x334))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2cd),a2_0x48b67c(0x2df))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2ab),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x48b67c(0x337))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1e6),'Starter\x20message')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x259),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')['option'](a2_0x48b67c(0x2fe),a2_0x48b67c(0x1b9),a2_0x48b67c(0x2e6))[a2_0x48b67c(0x2c3)](async(_0x5ab71,_0x167d43)=>{const _0x5514bb=a2_0x48b67c,_0x2ebb21=new LLMAgentCreateCommand(),_0x69f76b=program[_0x5514bb(0x18e)](),_0x11e3d1=await createTDXInstance(_0x69f76b),_0x2f7eda=await _0x2ebb21[_0x5514bb(0x247)]({'options':{..._0x69f76b,..._0x167d43},'args':[_0x5ab71],'tdx':_0x11e3d1});process[_0x5514bb(0x248)](_0x2f7eda);}),agentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x219))['description']('Update\x20an\x20existing\x20agent')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x30b),a2_0x48b67c(0x1ca))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x175),a2_0x48b67c(0x304))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x16c),a2_0x48b67c(0x1b7))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1e6),'Starter\x20message')['action'](async(_0x16e208,_0x39ab93)=>{const _0x1d6440=a2_0x48b67c,_0x4dc8ff=new LLMAgentUpdateCommand(),_0x34b871=program[_0x1d6440(0x18e)](),_0x2b7f0f=await createTDXInstance(_0x34b871),_0x31d099=await _0x4dc8ff[_0x1d6440(0x247)]({'options':{..._0x34b871,..._0x39ab93},'args':[_0x16e208],'tdx':_0x2b7f0f});process['exit'](_0x31d099);}),agentCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x238))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2fb))['action'](async(_0x8e46,_0x3d5fc7)=>{const _0xa0296e=a2_0x48b67c,_0x11384a=new LLMAgentDeleteCommand(),_0x55d817=program[_0xa0296e(0x18e)](),_0x2c2c9e=await createTDXInstance(_0x55d817),_0x2a0005=await _0x11384a[_0xa0296e(0x247)]({'options':{..._0x55d817,..._0x3d5fc7},'args':[_0x8e46],'tdx':_0x2c2c9e});process[_0xa0296e(0x248)](_0x2a0005);}),llmCmd['command'](a2_0x48b67c(0x20f))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x187))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x251),a2_0x48b67c(0x28f))[a2_0x48b67c(0x2c3)](async(_0x3ed21b,_0x4d9745)=>{const _0x1f08b9=a2_0x48b67c,_0x684daa=new LLMHistoryCommand(),_0x5a30c4=program[_0x1f08b9(0x18e)](),_0x1703db=await createTDXInstance(_0x5a30c4),_0x2da9aa=await _0x684daa[_0x1f08b9(0x247)]({'options':{..._0x5a30c4,..._0x4d9745},'args':_0x3ed21b?[_0x3ed21b]:[],'tdx':_0x1703db});process['exit'](_0x2da9aa);}),llmCmd['command'](a2_0x48b67c(0x1e0))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x152))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1a9),a2_0x48b67c(0x324),a2_0x48b67c(0x28b))['option']('--project\x20<name>',a2_0x48b67c(0x26e))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2b9),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x48b67c(0x2c3)](async _0x5f4b3e=>{const _0x2e6b08=a2_0x48b67c,_0x73fef1=new LLMProxyCommand(),_0x12e540=program[_0x2e6b08(0x18e)](),_0x59ff95=await createTDXInstance(_0x12e540),_0x4f28f5={..._0x5f4b3e,'port':_0x5f4b3e[_0x2e6b08(0x27f)]?parseInt(_0x5f4b3e[_0x2e6b08(0x27f)],0xa):undefined},_0x185f7f=await _0x73fef1[_0x2e6b08(0x247)]({'options':{..._0x12e540,..._0x4f28f5},'args':[],'tdx':_0x59ff95});process[_0x2e6b08(0x248)](_0x185f7f);}),program[a2_0x48b67c(0x305)](a2_0x48b67c(0x1c6))[a2_0x48b67c(0x1aa)]('[options]\x20--\x20[claude-code-args...]')[a2_0x48b67c(0x1f4)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2ab),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x48b67c(0x262))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2aa),'Continue\x20most\x20recent\x20conversation')[a2_0x48b67c(0x1b5)]('-r,\x20--resume',a2_0x48b67c(0x1e2))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1cf),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x48b67c(0x144)]()[a2_0x48b67c(0x271)](!![])[a2_0x48b67c(0x285)]('after',a2_0x48b67c(0x138))['action'](async(_0x2a285e,_0x2c18c6)=>{const _0x5bcf2d=a2_0x48b67c,_0x2e26b5=program[_0x5bcf2d(0x18e)](),_0x3e9985=Array[_0x5bcf2d(0x29c)](_0x2a285e)?_0x2a285e:[];if(_0x3e9985[0x0]===_0x5bcf2d(0x320)){const _0xdf18d1=new ClaudeStatuslineCommand(),_0x2276b5=await _0xdf18d1[_0x5bcf2d(0x247)]({'options':{..._0x2e26b5,..._0x2c18c6},'args':_0x3e9985[_0x5bcf2d(0x1c9)](0x1),'tdx':null});process[_0x5bcf2d(0x248)](_0x2276b5);}if(_0x3e9985[0x0]===_0x5bcf2d(0x1aa)){const _0x4800d7=new ClaudeUsageCommand(),_0x568c4a=await _0x4800d7[_0x5bcf2d(0x247)]({'options':{..._0x2e26b5,..._0x2c18c6},'args':_0x3e9985[_0x5bcf2d(0x1c9)](0x1),'tdx':null});process[_0x5bcf2d(0x248)](_0x568c4a);}const _0x4d3eac=new ClaudeCommand(),_0x567fbb=await createTDXInstance(_0x2e26b5),_0x51e6be=await _0x4d3eac[_0x5bcf2d(0x247)]({'options':{..._0x2e26b5,..._0x2c18c6},'args':_0x3e9985,'tdx':_0x567fbb});process['exit'](_0x51e6be);}),program[a2_0x48b67c(0x305)](a2_0x48b67c(0x1d1))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x15e))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x282),a2_0x48b67c(0x25e))[a2_0x48b67c(0x2c3)](async _0x374bc7=>{const _0x2c53d7=a2_0x48b67c,_0x483b41=new ContextCommand(),_0x4e4c20=program[_0x2c53d7(0x18e)](),_0x1f3f62=await _0x483b41[_0x2c53d7(0x247)]({'options':{..._0x4e4c20,..._0x374bc7},'args':[],'tdx':null});process[_0x2c53d7(0x248)](_0x1f3f62);}),program[a2_0x48b67c(0x305)](a2_0x48b67c(0x2a3))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2f2))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x282),'Clear\x20session\x20context')[a2_0x48b67c(0x2c3)](async(_0x1dc4d2,_0x3a0fd6,_0x4e16d7)=>{const _0x4012e2=a2_0x48b67c,_0x806243=new UseCommand(),_0x5616d4=program[_0x4012e2(0x18e)](),_0x255000=[];if(_0x1dc4d2)_0x255000[_0x4012e2(0x16e)](_0x1dc4d2);if(_0x3a0fd6)_0x255000[_0x4012e2(0x16e)](_0x3a0fd6);const _0xb63a1b=await _0x806243[_0x4012e2(0x247)]({'options':{..._0x5616d4,..._0x4e16d7},'args':_0x255000,'tdx':null});process[_0x4012e2(0x248)](_0xb63a1b);}),program[a2_0x48b67c(0x305)]('chats')[a2_0x48b67c(0x1f4)]('Interactive\x20chat\x20selector')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x251),'Show\x20the\x20most\x20recent\x20chat')[a2_0x48b67c(0x2c3)](async _0x5cb4e1=>{const _0x55b8cc=a2_0x48b67c,_0x59fd25=new ChatsCommand(),_0x3efe21=program['opts'](),_0x45c560=await createTDXInstance(_0x3efe21),_0x4115de=await _0x59fd25[_0x55b8cc(0x247)]({'options':{..._0x3efe21,..._0x5cb4e1},'args':[],'tdx':_0x45c560});process[_0x55b8cc(0x248)](_0x4115de);});const authCmd=program['command'](a2_0x48b67c(0x1ab))[a2_0x48b67c(0x1f4)]('Authentication\x20management');async function runAuthStatusCommand(_0x3bec43){const _0x5444a1=a2_0x48b67c,_0x383088=new AuthStatusCommand(),_0x5519d9=program[_0x5444a1(0x18e)](),_0x4e977a=await createTDXInstance(_0x5519d9),_0x55abd9=await _0x383088[_0x5444a1(0x247)]({'options':{..._0x5519d9,..._0x3bec43},'args':[],'tdx':_0x4e977a});process['exit'](_0x55abd9);}authCmd[a2_0x48b67c(0x2c3)](runAuthStatusCommand),authCmd['command'](a2_0x48b67c(0x142))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1a2))[a2_0x48b67c(0x2c3)](runAuthStatusCommand),authCmd[a2_0x48b67c(0x305)]('setup')[a2_0x48b67c(0x1f4)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x48b67c(0x285)](a2_0x48b67c(0x1c1),a2_0x48b67c(0x2dc))[a2_0x48b67c(0x2c3)](async _0x5a730b=>{const _0x5af63b=a2_0x48b67c,_0x15e6a6=new AuthSetupCommand(),_0x26b591=program[_0x5af63b(0x18e)](),_0x1fa197=await createTDXInstance(_0x26b591),_0x316b80=await _0x15e6a6['run']({'options':{..._0x26b591,..._0x5a730b},'args':[],'tdx':_0x1fa197});process[_0x5af63b(0x248)](_0x316b80);}),authCmd['command']('clear')['description']('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x48b67c(0x1c1),'\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_0x48b67c(0x2c3)](async _0x8677f4=>{const _0x2034d1=a2_0x48b67c,_0x13370e=new AuthClearCommand(),_0x2a9fb6=program[_0x2034d1(0x18e)](),_0x332d5b=await _0x13370e[_0x2034d1(0x247)]({'options':{..._0x2a9fb6,..._0x8677f4},'args':[],'tdx':null});process[_0x2034d1(0x248)](_0x332d5b);});const userCmd=program[a2_0x48b67c(0x305)](a2_0x48b67c(0x2d8))[a2_0x48b67c(0x1f4)]('User\x20management\x20commands'),userListAction=async _0x2eecfd=>{const _0x178a2b=a2_0x48b67c,_0x20e341=new UserListCommand(),_0x3b27e6=program['opts'](),_0x3b9725=await createTDXInstance(_0x3b27e6),_0x3d7c93=await _0x20e341[_0x178a2b(0x247)]({'options':{..._0x3b27e6,..._0x2eecfd},'args':[],'tdx':_0x3b9725});process[_0x178a2b(0x248)](_0x3d7c93);};userCmd[a2_0x48b67c(0x2c3)](async _0x25e272=>{const _0x442346=a2_0x48b67c,_0x35e11c=new UserCommand(),_0x20617b=program['opts'](),_0x889347=await createTDXInstance(_0x20617b),_0x3a9058=await _0x35e11c[_0x442346(0x247)]({'options':{..._0x20617b,..._0x25e272},'args':[],'tdx':_0x889347});process[_0x442346(0x248)](_0x3a9058);}),userCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x280))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2e4))['action'](userListAction),program[a2_0x48b67c(0x305)](a2_0x48b67c(0x333))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x173))['action'](userListAction),program[a2_0x48b67c(0x305)](a2_0x48b67c(0x2dd))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x13f))[a2_0x48b67c(0x2c3)](async _0x377773=>{const _0xe1c348=a2_0x48b67c,_0x216601=new ProfilesCommand(),_0x598f76=program[_0xe1c348(0x18e)](),_0x92bbcd=await _0x216601['run']({'options':{..._0x598f76,..._0x377773},'args':[],'tdx':null});process['exit'](_0x92bbcd);});const engageCmd=program[a2_0x48b67c(0x305)](a2_0x48b67c(0x20a))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1d2)),createEngageAction=_0x1a5811=>{return async(_0x75cff1,_0x40ca55)=>{const _0x3e24d9=a2_0x2e78,_0x1a9c55=new _0x1a5811(),_0x513b62=program[_0x3e24d9(0x18e)](),_0xa71926=await createTDXInstance(_0x513b62),_0x587032=await _0x1a9c55['run']({'options':{..._0x513b62,..._0x40ca55},'args':[_0x75cff1],'tdx':_0xa71926});process[_0x3e24d9(0x248)](_0x587032);};},createEngageNoArgAction=_0x572a63=>{return async _0x42ee3a=>{const _0x39e419=a2_0x2e78,_0x189e94=new _0x572a63(),_0x59de1d=program[_0x39e419(0x18e)](),_0x3fa6c3=await createTDXInstance(_0x59de1d),_0x4f43a0=await _0x189e94[_0x39e419(0x247)]({'options':{..._0x59de1d,..._0x42ee3a},'args':[],'tdx':_0x3fa6c3});process['exit'](_0x4f43a0);};},campaignCmd=engageCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2f6))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1e7)),campaignListAction=async(_0x5545cc,_0x5212b5)=>{const _0x58c201=a2_0x48b67c,_0x28de79=new EngageCampaignsCommand(),_0x1e7ebe=program[_0x58c201(0x18e)](),_0x15fa8=await createTDXInstance(_0x1e7ebe),_0x10866e=await _0x28de79['run']({'options':{..._0x1e7ebe,..._0x5212b5},'args':_0x5545cc?[_0x5545cc]:[],'tdx':_0x15fa8});process['exit'](_0x10866e);};campaignCmd[a2_0x48b67c(0x305)]('list\x20[pattern]')[a2_0x48b67c(0x1f4)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x32d),a2_0x48b67c(0x1be))[a2_0x48b67c(0x1b5)]('--status\x20<status>',a2_0x48b67c(0x145))[a2_0x48b67c(0x1b5)]('--workspace\x20<name>',a2_0x48b67c(0x139))[a2_0x48b67c(0x2c3)](campaignListAction),engageCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x28c))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x27d))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x32d),a2_0x48b67c(0x1be))['option']('--status\x20<status>',a2_0x48b67c(0x145))['option'](a2_0x48b67c(0x137),a2_0x48b67c(0x139))[a2_0x48b67c(0x2c3)](campaignListAction),campaignCmd['command']('show\x20<name-or-id>')[a2_0x48b67c(0x1f4)]('Show\x20campaign\x20details')[a2_0x48b67c(0x1b5)]('--workspace\x20<name>',a2_0x48b67c(0x139))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x189),a2_0x48b67c(0x24d))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x48b67c(0x2e2))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2fa))[a2_0x48b67c(0x258)](a2_0x48b67c(0x242),a2_0x48b67c(0x232))['requiredOption'](a2_0x48b67c(0x32d),a2_0x48b67c(0x2c1))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x137),'Workspace\x20name\x20(required)')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x281),a2_0x48b67c(0x231))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2bf),a2_0x48b67c(0x1ef))[a2_0x48b67c(0x1b5)]('--email-sender-id\x20<id>',a2_0x48b67c(0x23e))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2f9),a2_0x48b67c(0x1ae))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2c0),a2_0x48b67c(0x15d))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x186),a2_0x48b67c(0x210))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2e8))['description'](a2_0x48b67c(0x29d))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x137),a2_0x48b67c(0x139))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x242),'New\x20campaign\x20name')['option']('--description\x20<desc>',a2_0x48b67c(0x231))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2bf),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option']('--email-sender-id\x20<id>',a2_0x48b67c(0x23e))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2f9),a2_0x48b67c(0x1ae))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2c0),a2_0x48b67c(0x15d))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x186),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x48b67c(0x2c3)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x153))[a2_0x48b67c(0x1f4)]('Delete\x20a\x20campaign')[a2_0x48b67c(0x1b5)]('--workspace\x20<name>',a2_0x48b67c(0x139))['option'](a2_0x48b67c(0x1bd),'Skip\x20confirmation\x20prompt')[a2_0x48b67c(0x2c3)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2f8))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2d2))[a2_0x48b67c(0x1b5)]('--workspace\x20<name>',a2_0x48b67c(0x139))[a2_0x48b67c(0x2c3)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x48b67c(0x2c9))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1ec))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x137),a2_0x48b67c(0x139))[a2_0x48b67c(0x2c3)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x1cd))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x335))['option']('--workspace\x20<name>',a2_0x48b67c(0x139))[a2_0x48b67c(0x2c3)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x159))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x263))[a2_0x48b67c(0x1b5)]('--workspace\x20<name>',a2_0x48b67c(0x139))[a2_0x48b67c(0x2c3)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x48b67c(0x305)]('template')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x336)),templateListAction=async(_0x5e94d0,_0x5edef5)=>{const _0x438dde=a2_0x48b67c,_0x39ddde=new EngageTemplatesCommand(),_0x56e4bf=program[_0x438dde(0x18e)](),_0x2fc020=await createTDXInstance(_0x56e4bf),_0x3f270f=await _0x39ddde['run']({'options':{..._0x56e4bf,..._0x5edef5},'args':_0x5e94d0?[_0x5e94d0]:[],'tdx':_0x2fc020});process[_0x438dde(0x248)](_0x3f270f);};templateCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x206))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x33c))[a2_0x48b67c(0x1b5)]('--workspace\x20<name>',a2_0x48b67c(0x139))[a2_0x48b67c(0x2c3)](templateListAction),engageCmd['command'](a2_0x48b67c(0x2f4))[a2_0x48b67c(0x1f4)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x48b67c(0x1b5)]('--workspace\x20<name>','Workspace\x20name')[a2_0x48b67c(0x2c3)](templateListAction),templateCmd[a2_0x48b67c(0x305)]('show\x20<name-or-id>')[a2_0x48b67c(0x1f4)]('Show\x20email\x20template\x20details')[a2_0x48b67c(0x1b5)]('--workspace\x20<name>','Workspace\x20name')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x189),a2_0x48b67c(0x24d))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2e2))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x328))[a2_0x48b67c(0x258)](a2_0x48b67c(0x242),'Template\x20name')[a2_0x48b67c(0x258)]('--subject\x20<subject>',a2_0x48b67c(0x23d))['requiredOption']('--html\x20<html>',a2_0x48b67c(0x227))[a2_0x48b67c(0x1b5)]('--workspace\x20<name>',a2_0x48b67c(0x196))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1b2),'Plaintext\x20template\x20content')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x240),a2_0x48b67c(0x1f0))[a2_0x48b67c(0x2c3)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x48b67c(0x305)]('update\x20<name-or-id>')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x314))['option'](a2_0x48b67c(0x137),'Workspace\x20name')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x242),a2_0x48b67c(0x2ea))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x2af),a2_0x48b67c(0x23d))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x23c),'HTML\x20template\x20content')['option'](a2_0x48b67c(0x1b2),a2_0x48b67c(0x14d))[a2_0x48b67c(0x2c3)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x153))[a2_0x48b67c(0x1f4)]('Delete\x20an\x20email\x20template')[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x137),a2_0x48b67c(0x139))['option'](a2_0x48b67c(0x1bd),'Skip\x20confirmation\x20prompt')[a2_0x48b67c(0x2c3)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x48b67c(0x29b))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2a4)),workspaceListAction=async(_0x2b7a12,_0x2e733a)=>{const _0x56ebac=a2_0x48b67c,_0x1e3820=new EngageWorkspacesCommand(),_0x536c11=program[_0x56ebac(0x18e)](),_0x561ef3=await createTDXInstance(_0x536c11),_0x53e5f3=await _0x1e3820['run']({'options':{..._0x536c11,..._0x2e733a},'args':_0x2b7a12?[_0x2b7a12]:[],'tdx':_0x561ef3});process[_0x56ebac(0x248)](_0x53e5f3);};workspaceCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x206))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x1b8))[a2_0x48b67c(0x2c3)](workspaceListAction),engageCmd['command'](a2_0x48b67c(0x1c4))['description']('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x48b67c(0x2c3)](workspaceListAction),workspaceCmd['command'](a2_0x48b67c(0x2f7))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2ed))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x189),a2_0x48b67c(0x24d))[a2_0x48b67c(0x2c3)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x48b67c(0x305)]('create')['description'](a2_0x48b67c(0x215))[a2_0x48b67c(0x258)](a2_0x48b67c(0x242),a2_0x48b67c(0x139))['option']('--description\x20<desc>',a2_0x48b67c(0x311))[a2_0x48b67c(0x2c3)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x48b67c(0x305)](a2_0x48b67c(0x2e8))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2de))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x242),a2_0x48b67c(0x25d))['option'](a2_0x48b67c(0x281),'Workspace\x20description')['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x230))[a2_0x48b67c(0x1b5)](a2_0x48b67c(0x1bd),a2_0x48b67c(0x212))[a2_0x48b67c(0x2c3)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x48b67c(0x213))[a2_0x48b67c(0x1f4)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x48b67c(0x2c3)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x48b67c(0x305)](a2_0x48b67c(0x1cb))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x158)),connectionListAction=async _0x3cd213=>{const _0x53547c=a2_0x48b67c,_0x90b3bf=new ConnectionListCommand(),_0x179e1a=program[_0x53547c(0x18e)](),_0x497656=await createTDXInstance(_0x179e1a),_0x1698e9=await _0x90b3bf[_0x53547c(0x247)]({'options':{..._0x179e1a,..._0x3cd213},'args':[],'tdx':_0x497656});process[_0x53547c(0x248)](_0x1698e9);};connectionCmd['command'](a2_0x48b67c(0x280))[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x2e3))[a2_0x48b67c(0x2c3)](connectionListAction),program[a2_0x48b67c(0x305)](a2_0x48b67c(0x1fd),{'hidden':!![]})['description'](a2_0x48b67c(0x160))[a2_0x48b67c(0x2c3)](connectionListAction),connectionCmd[a2_0x48b67c(0x305)]('show\x20<name>')[a2_0x48b67c(0x1f4)](a2_0x48b67c(0x14b))[a2_0x48b67c(0x2c3)](async(_0x25bf85,_0x33e73b)=>{const _0x5ef3b1=a2_0x48b67c,_0x1a96fe=new ConnectionShowCommand(),_0x6e3e52=program[_0x5ef3b1(0x18e)](),_0x3d2c3e=await createTDXInstance(_0x6e3e52),_0x3eb383=await _0x1a96fe['run']({'options':{..._0x6e3e52,..._0x33e73b},'args':[_0x25bf85],'tdx':_0x3d2c3e});process[_0x5ef3b1(0x248)](_0x3eb383);});export{program};export function runCLI(){const _0x144227=a2_0x48b67c;program[_0x144227(0x22d)](process[_0x144227(0x332)]);!process[_0x144227(0x332)][_0x144227(0x1c9)](0x2)[_0x144227(0x1a6)]&&program[_0x144227(0x1d9)]();const _0x59c0ca=packageJson[_0x144227(0x2a9)];process['stderr'][_0x144227(0x25c)]&&process['argv']['length']>0x2&&!_0x59c0ca['includes'](_0x144227(0x1a4))&&checkForUpdate(_0x59c0ca)['then'](_0x1071dd=>{_0x1071dd&&displayUpdateNotification(_0x1071dd);})[_0x144227(0x217)](()=>{});}
|
|
1
|
+
const a2_0x246dba=a2_0x3ca7;(function(_0x312aae,_0x1d4f5a){const _0x31ea58=a2_0x3ca7,_0x47543c=_0x312aae();while(!![]){try{const _0x1ae23f=parseInt(_0x31ea58(0x18b))/0x1+-parseInt(_0x31ea58(0x2a2))/0x2*(parseInt(_0x31ea58(0x168))/0x3)+-parseInt(_0x31ea58(0x14c))/0x4+-parseInt(_0x31ea58(0x21c))/0x5+-parseInt(_0x31ea58(0x286))/0x6+parseInt(_0x31ea58(0x28a))/0x7*(-parseInt(_0x31ea58(0x243))/0x8)+-parseInt(_0x31ea58(0x241))/0x9*(-parseInt(_0x31ea58(0x1f8))/0xa);if(_0x1ae23f===_0x1d4f5a)break;else _0x47543c['push'](_0x47543c['shift']());}catch(_0x35fe87){_0x47543c['push'](_0x47543c['shift']());}}}(a2_0x3668,0x20532));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';function a2_0x3668(){const _0x11a57d=['Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--json-columns\x20<cols>','fields\x20[name]','Campaign\x20type\x20(email\x20or\x20push)','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Setup\x20API\x20key\x20authentication\x20interactively','table','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Parent\x20segment\x20management','delete\x20<project-name-or-id>','--project\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Save\x20output\x20to\x20file','show\x20<folder_ref>','Folder\x20description','List\x20all\x20users\x20in\x20the\x20account','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','parent-segment','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','campaign','Update\x20an\x20email\x20template','attempt','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','202924bKiMDF','Add\x20behaviors\x20as\x20JSON\x20string','Customer\x20group\x20from\x20JSON\x20file','--limit\x20<rows>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','database','preview\x20[file]','workspaces\x20[pattern]','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','profile','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','.dev','use\x20[name]','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','show\x20[segment_name]','Output\x20as\x20JSON\x20Lines','map','Segment\x20description','Workflow\x20attempt\x20management','databases\x20[pattern]','Include\x20retried\x20attempts\x20(for\x20list)','show\x20<name-or-id>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','list\x20[project]','3oeTjIs','attempt:','describe','name','commandDescription','activations\x20<segment_name>','Show\x20only\x20master\x20table\x20validation','pull\x20[name]','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','--resume-from\x20<task>','--no-color','-d,\x20--database\x20<name>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','auth','logs','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--add-attributes\x20<json>','resume\x20<name-or-id>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Get\x20job\x20results','exit','colorFn','--editor-type\x20<type>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','-c,\x20--continue','Start\x20a\x20new\x20chat\x20session','description','use\x20[resource]\x20[value]','show\x20[table]','repeat','INFO','workspace','95174DmfBSg','Limit\x20number\x20of\x20rows','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Include\x20retried\x20attempts','models','commands','Database\x20to\x20query\x20(default:\x20information_schema)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','subcommandDescription','result\x20<job-id>','Show\x20segment\x20details\x20(alias\x20for\x20view)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','folders\x20<parent_name>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Options:','Run\x20Trino\x20query\x20with\x20streaming\x20results','--trace','version','Output\x20folder\x20(default:\x20{project_name}.llm)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Revision\x20name\x20(default:\x20timestamp)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Create\x20an\x20email\x20template','Resume\x20a\x20conversation\x20(shows\x20selector)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','sonnet','command','argv','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','logLevel','alias','Skip\x20confirmation\x20prompt','Behaviors\x20as\x20JSON\x20string','update\x20<agent-name>','[task-name]','argumentTerm','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Request\x20body\x20as\x20JSON\x20string','length','Action:\x20logs,\x20tasks,\x20kill,\x20retry','tasks','Workspace\x20name\x20(required)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','\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','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','tdx\x20','--attributes-file\x20<file>','projects\x20[pattern]','stderr','workflows\x20[project]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','noColor','Authentication\x20management','Output\x20file\x20path','Maximum\x20tool\x20iterations\x20(default:\x204)','jsonl','parent','--limit\x20<n>','--interval\x20<range>','Read\x20SQL\x20query\x20from\x20file','commandUsage','--agent\x20<name>','Project\x20description','trace','--no-proxy','--workspace\x20<name>','--to\x20<timestamp>','--master','Timezone\x20(e.g.,\x20America/Los_Angeles)','--no-count-population','delete\x20<name-or-id>','argument','Trino\x20catalog\x20(default:\x20td)','isArray','--format\x20<format>','create\x20<segment_name>','--tsv','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Workflow\x20parameter\x20(repeatable)','Include\x20subtasks\x20in\x20tasks\x20output','summary','push\x20[parent_or_file]','create','--limit\x20<number>','Delete\x20a\x20workspace','-v,\x20--verbose','error','--params\x20<json>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','forEach','replace','--force','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','view\x20[segment_name]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--revision\x20<revision>','delete\x20<agent-name>','kill\x20<job-id>','Workflow\x20project\x20management','Campaign\x20name','Commands:','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','project','--include-subtasks','--table\x20<table>','gitRevision','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','7081380foXDAW','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','User\x20management\x20commands','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Delete\x20an\x20agent','run','Starter\x20message','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--name\x20<text>','--type\x20<api_type>','--behaviors\x20<json>','connection','List\x20available\x20LLM\x20models','Job\x20management\x20commands','show\x20<job-id>','create\x20<parent_name>\x20<folder_name>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','--add-behaviors-file\x20<file>','desc\x20[name]','--model\x20<name>','help','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','update\x20<segment_name>','--attribute\x20[name]','--plaintext\x20<text>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','segments\x20[path]','users','outputHelp','jobs','information_schema','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Master\x20table\x20name','Agent\x20prompt/instructions','user','561985VVHIeP','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','[action]','setup','--rule-file\x20<file>','Task\x20name\x20for\x20logs\x20action','Force\x20retry\x20even\x20if\x20not\x20failed','--from\x20<timestamp>','debug','injectIntoOptions','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--enriched','Delete\x20an\x20email\x20template','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20web\x20console\x20URLs\x20for\x20segments','Enable\x20verbose\x20logging','List\x20all\x20available\x20profiles','tsv','format','join','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--full','Usage:\x20','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','desc','options','--description\x20<text>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Launch\x20a\x20campaign','restore\x20<folder>','Email\x20sender\x20ID\x20for\x20delivery','retry','LLM\x20agent\x20management','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Workspace\x20description','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','9kJPmHK','Workspace\x20management','1067320WYGyCu','view\x20[name]','Database\x20to\x20use\x20(overrides\x20context)','Set\x20operation\x20timeout\x20in\x20seconds','Master\x20database\x20name','list','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','-p,\x20--profile\x20<name>','--html\x20<html>','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','System\x20prompt/instructions\x20(default:\x20empty)','--type\x20<type>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--invisible','--add-attributes-file\x20<file>','Describe\x20table\x20schema','show\x20<agent-name>','Workflow\x20session\x20management','--version','-1d','context','--rule\x20<json>','launch\x20<name-or-id>','Attributes\x20as\x20JSON\x20string','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','padWidth','Reason\x20for\x20killing\x20the\x20attempt','Show\x20workspace\x20details','includes','-y,\x20--yes','push\x20[project-name-or-dir]','--folder\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','--customer-group-file\x20<file>','Filtering\x20rule\x20as\x20JSON\x20string','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','describe\x20[table]','download\x20<project-name>\x20[output-dir]','Show\x20the\x20most\x20recent\x20chat','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','tdx','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Campaign\x20management','Agent\x20name','Clear\x20session\x20context','Arguments:','parent_segment','usage','0.7','Add\x20attributes\x20from\x20JSON\x20file','port','requiredOption','--llm-project\x20<name>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','--status\x20<status>','\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','duplicate\x20<name-or-id>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','workflow','log','_hidden','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','1537020DfenRR','Resume\x20from\x20specific\x20task\x20(retry)','--in\x20<name>','--color','7nLLItR','Kill\x20a\x20job','--last','profiles','--behavior\x20[name]','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','flatMap','sessions\x20[project]','End\x20time\x20filter\x20(ISO\x208601\x20format)','--description\x20<desc>',',\x20version\x20','../package.json','push\x20[file]','Model\x20type\x20(default:\x20claude-4.5-sonnet)','stdout','list\x20[path]','createAsync','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--subject\x20<subject>','apiKey','use\x20<path>','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','opts','236394KYfXOE','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Move\x20to\x20folder','Resume\x20from\x20specific\x20task','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--max-depth\x20<depth>','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--prompt\x20<text>','Campaign\x20description','action','TRACE','--debug','\x20-\x20built\x20','-r,\x20--resume','Workspace\x20name','buildTime','-H,\x20--header\x20<header>','--include-retried','Resume\x20a\x20paused\x20campaign','Create\x20a\x20workspace','Skip\x20confirmation\x20prompts','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','query\x20[sql]','--max-tool-iterations\x20<n>','retry\x20<session-id>','status','Updated\x20timezone','desc\x20[segment_name]','Update\x20a\x20campaign','then','-X,\x20--method\x20<method>','--starter-message\x20<text>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--reason\x20<text>','Data\x20connection\x20management\x20(for\x20activations/exports)','statusline','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Customer\x20group\x20as\x20JSON\x20string','submit\x20[query]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Create\x20a\x20new\x20LLM\x20project','Show\x20campaign\x20details','optionTerm','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','[attempt-id]','--email-sender-id\x20<id>','Preview\x20operation\x20without\x20executing','template','DEBUG','List\x20all\x20data\x20connections','Maximum\x20recursion\x20depth\x20(default:\x2010)','Email\x20template\x20management','Output\x20file\x20path\x20(default:\x20<name>.yml)','-o,\x20--output\x20<folder>','-d,\x20--database\x20<database>','sql\x20[segment_name]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','hidden','--data\x20<data>','-w,\x20--web','--from-task\x20<task>','api\x20[endpoint]','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','list\x20[pattern]','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--clear','-o,\x20--output\x20<file>','Override\x20project\x20name','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','after','--customer-group\x20<json>','--behaviors-file\x20<file>','Agent\x20description','registeredArguments','delete\x20<name>','Show\x20master\x20table\x20sample\x20data','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','addHelpText','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','create\x20<name>','Output\x20as\x20JSON','Table\x20management\x20commands','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Interactive\x20chat\x20selector','JSON\x20columns\x20for\x20connector\x20(comma-separated)','option','utf-8','filter','Folder\x20name\x20for\x20organization','--name\x20<name>','--dry-run','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--site\x20<site>','Database\x20management\x20commands','--param\x20<key=value>','build-info.json','--yes','Delete\x20a\x20campaign','--schedule-type\x20<type>','sql\x20[name]','Show\x20segment\x20schema\x20(column\x20types)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','update\x20<name-or-id>','--parent-folder\x20<name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--database\x20<name>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','json','--json','Filtering\x20rule\x20from\x20JSON\x20file','Read\x20query\x20from\x20file','--timeout\x20<seconds>','info\x20[segment_name]','folder','Skip\x20population\x20counting','Make\x20segment\x20invisible\x20(default:\x20visible)','-f,\x20--file\x20<path>','hook','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Create\x20segment\x20folder','--schedule-option\x20<value>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','push','subcommandTerm','--port\x20<number>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Updated\x20schedule\x20option','--output\x20<file>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','job','--in\x20<database>','--timezone\x20<tz>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--system-prompt\x20<text>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','Create\x20a\x20new\x20campaign','templates\x20[pattern]','HTML\x20template\x20content','--jsonl','--agent\x20<ref>','configureHelp','parse','run\x20[name]','Update\x20a\x20workspace','-r,\x20--recursive','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','New\x20segment\x20name','Behaviors\x20from\x20JSON\x20file','AI-native\x20CLI\x20for\x20Treasure\x20Data','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--session\x20<id>','Agent\x20reference\x20(project-name/agent-name)'];a2_0x3668=function(){return _0x11a57d;};return a2_0x3668();}import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x246dba(0x12a)](readFileSync(join(__dirname,a2_0x246dba(0x296)),a2_0x246dba(0xf3)));let buildInfo={};try{buildInfo=JSON[a2_0x246dba(0x12a)](readFileSync(join(__dirname,a2_0x246dba(0xfc)),'utf-8'));}catch{}if(process[a2_0x246dba(0x1a7)][a2_0x246dba(0x260)](a2_0x246dba(0x256))){let versionOutput=a2_0x246dba(0x1b9)+packageJson[a2_0x246dba(0x19d)];buildInfo[a2_0x246dba(0x1f6)]&&(versionOutput+='\x20('+buildInfo[a2_0x246dba(0x1f6)]+')'),buildInfo[a2_0x246dba(0x2b2)]&&(versionOutput+=a2_0x246dba(0x2af)+buildInfo[a2_0x246dba(0x2b2)]),console[a2_0x246dba(0x283)](versionOutput),process['exit'](0x0);}const program=new Command();let description=a2_0x246dba(0x131);buildInfo['gitRevision']?description+=a2_0x246dba(0x295)+packageJson[a2_0x246dba(0x19d)]+'\x20('+buildInfo[a2_0x246dba(0x1f6)]+')':description+=a2_0x246dba(0x295)+packageJson[a2_0x246dba(0x19d)];program[a2_0x246dba(0x16b)](a2_0x246dba(0x26d))[a2_0x246dba(0x185)](description),program[a2_0x246dba(0xf2)](a2_0x246dba(0x24a),a2_0x246dba(0x1f7))[a2_0x246dba(0xf2)](a2_0x246dba(0xf9),a2_0x246dba(0x12e),'us01')[a2_0x246dba(0xf2)](a2_0x246dba(0x1d6),a2_0x246dba(0xeb))[a2_0x246dba(0xf2)]('--table',a2_0x246dba(0x1e9))[a2_0x246dba(0xf2)](a2_0x246dba(0x109),a2_0x246dba(0x1fc))['option'](a2_0x246dba(0x127),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')['option'](a2_0x246dba(0x1d8),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')['option'](a2_0x246dba(0x11c),a2_0x246dba(0x141))[a2_0x246dba(0xf2)](a2_0x246dba(0x1df),a2_0x246dba(0x1f2))['option'](a2_0x246dba(0x289),a2_0x246dba(0x182),![])[a2_0x246dba(0xf2)](a2_0x246dba(0x172),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x246dba(0xf2)](a2_0x246dba(0x1e1),a2_0x246dba(0x22b),![])[a2_0x246dba(0xf2)](a2_0x246dba(0x2ae),a2_0x246dba(0x265))[a2_0x246dba(0xf2)](a2_0x246dba(0x19c),a2_0x246dba(0x11a))[a2_0x246dba(0xf2)](a2_0x246dba(0x10c),a2_0x246dba(0x246),'30')['option'](a2_0x246dba(0xf7),a2_0x246dba(0x2d4),![])[a2_0x246dba(0xf2)](a2_0x246dba(0x261),a2_0x246dba(0x2b7),![])[a2_0x246dba(0xf2)](a2_0x246dba(0x133),a2_0x246dba(0x21d))['option'](a2_0x246dba(0x173),a2_0x246dba(0x245))[a2_0x246dba(0xf2)](a2_0x246dba(0x288),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x246dba(0xf2)]('--parent-segment\x20<name>',a2_0x246dba(0x140))[a2_0x246dba(0xf2)](a2_0x246dba(0x27a),a2_0x246dba(0x1a4)),program[a2_0x246dba(0x129)]({'formatHelp':(_0x459765,_0x2deb4a)=>{const _0x1aa395=a2_0x246dba,_0x4038ff=_0x2deb4a[_0x1aa395(0x25d)](_0x459765,_0x2deb4a),_0x5aea5d=0x2,_0x5333c3=0x2;function _0x2e784f(_0x3f9e19){const _0x36de8c=_0x1aa395,_0x52043d=_0x3f9e19;return!!(_0x52043d[_0x36de8c(0x284)]||_0x52043d[_0x36de8c(0x2e0)]);}function _0x382faa(_0x59250d,_0x258ebe){if(_0x258ebe){const _0x52a1e8=''+_0x59250d['padEnd'](_0x4038ff+_0x5333c3)+_0x258ebe;return _0x52a1e8;}return _0x59250d;}function _0xe558a4(_0x35aa1b){const _0x117987=_0x1aa395;return _0x35aa1b[_0x117987(0x22f)]('\x0a')[_0x117987(0x1e6)](/^/gm,'\x20'[_0x117987(0x188)](_0x5aea5d));}const _0x494d6a=[];_0x494d6a[_0x1aa395(0x117)](_0x1aa395(0x233)+_0x2deb4a[_0x1aa395(0x1c8)](_0x459765));const _0x47efcb=_0x2deb4a[_0x1aa395(0x16c)](_0x459765);_0x47efcb&&(_0x494d6a['push'](''),_0x494d6a[_0x1aa395(0x117)](_0x47efcb));const _0x54299d=_0x459765[_0x1aa395(0x190)][_0x1aa395(0xf4)](_0x4d00d2=>!_0x2e784f(_0x4d00d2));if(_0x54299d['length']>0x0){if(_0x459765[_0x1aa395(0x16b)]()===_0x1aa395(0x26d)){const _0x1e3dd4=_0x459765[_0x1aa395(0x2a1)](),_0x2075fd=!_0x1e3dd4[_0x1aa395(0x1bf)]&&process[_0x1aa395(0x299)]['isTTY'],_0x39186a=COMMAND_CATEGORIES,_0x48344f=(_0x5f42c8,_0x1e49e4)=>_0x2075fd?_0x1e49e4(_0x5f42c8):_0x5f42c8,_0x371576=new Map();_0x54299d[_0x1aa395(0x1e5)](_0x1367d0=>{const _0x192630=_0x1aa395;_0x371576['set'](_0x1367d0[_0x192630(0x16b)](),_0x1367d0);}),_0x39186a[_0x1aa395(0x1e5)](_0x3648c9=>{const _0x40ebc9=_0x1aa395,_0x151762=_0x3648c9[_0x40ebc9(0x190)][_0x40ebc9(0x291)](_0x1b67af=>_0x371576['get'](_0x1b67af)??[]);if(_0x151762['length']>0x0){_0x494d6a[_0x40ebc9(0x117)](''),_0x494d6a[_0x40ebc9(0x117)](_0x48344f(_0x3648c9[_0x40ebc9(0x16b)]+':',_0x3648c9[_0x40ebc9(0x17d)]));const _0x8d4dd4=_0x151762[_0x40ebc9(0x160)](_0x2637b2=>{const _0x45417c=_0x40ebc9,_0x53ae16=_0x2deb4a[_0x45417c(0x118)](_0x2637b2),_0x584a80=_0x2deb4a[_0x45417c(0x193)](_0x2637b2);return _0x382faa(_0x53ae16,_0x584a80);});_0x494d6a[_0x40ebc9(0x117)](_0xe558a4(_0x8d4dd4));}}),_0x494d6a[_0x1aa395(0x117)](''),_0x494d6a[_0x1aa395(0x117)](_0x1aa395(0x1a1));}else{const _0x5c42d8=_0x54299d[_0x1aa395(0x160)](_0x3fbcb6=>{const _0x3d58c7=_0x1aa395,_0x9f6dde=_0x2deb4a[_0x3d58c7(0x118)](_0x3fbcb6),_0x40ac35=_0x2deb4a['subcommandDescription'](_0x3fbcb6);return _0x382faa(_0x9f6dde,_0x40ac35);});_0x494d6a[_0x1aa395(0x117)](''),_0x494d6a[_0x1aa395(0x117)](_0x1aa395(0x1f1)),_0x494d6a[_0x1aa395(0x117)](_0xe558a4(_0x5c42d8));}}const _0x5431af=_0x459765[_0x1aa395(0x236)][_0x1aa395(0xf4)](_0x5e7b84=>!_0x2e784f(_0x5e7b84));if(_0x5431af['length']>0x0){const _0x5f4fe7=_0x5431af['map'](_0x50004a=>{const _0xf6f8e0=_0x1aa395,_0x5adf0f=_0x2deb4a[_0xf6f8e0(0x2d0)](_0x50004a),_0x54041b=_0x2deb4a['optionDescription'](_0x50004a);return _0x382faa(_0x5adf0f,_0x54041b);});_0x494d6a[_0x1aa395(0x117)](''),_0x494d6a['push'](_0x1aa395(0x19a)),_0x494d6a['push'](_0xe558a4(_0x5f4fe7));}const _0x2ce9c5=(_0x459765[_0x1aa395(0xe6)]||[])[_0x1aa395(0xf4)](_0x3a2dcd=>!_0x2e784f(_0x3a2dcd));if(_0x2ce9c5['length']>0x0){const _0x54e761=_0x2ce9c5[_0x1aa395(0x160)](_0x33b1c3=>{const _0x28a1d8=_0x1aa395,_0x4ec752=_0x2deb4a[_0x28a1d8(0x1af)](_0x33b1c3),_0x2e208e=_0x2deb4a['argumentDescription'](_0x33b1c3);return _0x382faa(_0x4ec752,_0x2e208e);});_0x494d6a[_0x1aa395(0x117)](''),_0x494d6a[_0x1aa395(0x117)](_0x1aa395(0x273)),_0x494d6a['push'](_0xe558a4(_0x54e761));}return _0x494d6a[_0x1aa395(0x22f)]('\x0a');},'subcommandTerm':_0x32ad25=>{const _0x530456=a2_0x246dba,_0x189fe4=(_0x32ad25[_0x530456(0xe6)]||[])[_0x530456(0x160)](_0x3b3458=>_0x3b3458['required']?'<'+_0x3b3458[_0x530456(0x16b)]()+'>':'['+_0x3b3458[_0x530456(0x16b)]()+']')[_0x530456(0x22f)]('\x20'),_0x149d14=_0x32ad25['aliases'](),_0x2946d8=_0x149d14[_0x530456(0x1b2)]>0x0?_0x32ad25[_0x530456(0x16b)]()+',\x20'+_0x149d14['join'](',\x20'):_0x32ad25[_0x530456(0x16b)]();return _0x189fe4?_0x2946d8+'\x20'+_0x189fe4:_0x2946d8;}}),program[a2_0x246dba(0x112)]('preAction',_0x18bd74=>{const _0x464fe7=a2_0x246dba,_0x457fa3=_0x18bd74[_0x464fe7(0x2a1)]();if(!_0x457fa3[_0x464fe7(0x22e)]){if(_0x457fa3['table'])_0x457fa3[_0x464fe7(0x22e)]=_0x464fe7(0x13b);else{if(_0x457fa3[_0x464fe7(0x108)])_0x457fa3[_0x464fe7(0x22e)]=_0x464fe7(0x108);else{if(_0x457fa3[_0x464fe7(0x1c3)])_0x457fa3[_0x464fe7(0x22e)]=_0x464fe7(0x1c3);else _0x457fa3[_0x464fe7(0x22d)]&&(_0x457fa3['format']=_0x464fe7(0x22d));}}}_0x457fa3['in']&&!_0x457fa3[_0x464fe7(0x151)]&&(_0x457fa3[_0x464fe7(0x151)]=_0x457fa3['in']);if(_0x457fa3[_0x464fe7(0x1cb)])_0x457fa3[_0x464fe7(0x1a9)]=LogLevel[_0x464fe7(0x2ad)];else{if(_0x457fa3[_0x464fe7(0x224)])_0x457fa3[_0x464fe7(0x1a9)]=LogLevel[_0x464fe7(0x2d6)];else _0x457fa3[_0x464fe7(0x1a9)]===undefined&&(_0x457fa3[_0x464fe7(0x1a9)]=LogLevel[_0x464fe7(0x189)]);}});async function createTDXInstance(_0x28acbf){const _0x310eb9=a2_0x246dba,_0x33c64d=await GlobalContext[_0x310eb9(0x29b)](_0x28acbf);return _0x33c64d[_0x310eb9(0x225)](_0x28acbf),TDX[_0x310eb9(0x1de)]({'site':_0x33c64d['site'],'apiKey':_0x33c64d[_0x310eb9(0x29e)],'logLevel':_0x33c64d['logLevel'],'profile':_0x33c64d[_0x310eb9(0x156)]});}const databaseCmd=program['command'](a2_0x246dba(0x151))[a2_0x246dba(0x1aa)]('db')[a2_0x246dba(0x185)](a2_0x246dba(0xfa)),databaseListAction=async(_0x5906a7,_0x606561)=>{const _0x3cf83a=a2_0x246dba,_0x80bf89=new DatabasesCommand(),_0x3c1ca1=program[_0x3cf83a(0x2a1)](),_0x403168=await createTDXInstance(_0x3c1ca1),_0x3c3357=await _0x80bf89['run']({'options':{..._0x3c1ca1,..._0x606561},'args':_0x5906a7?[_0x5906a7]:[],'tdx':_0x403168});process[_0x3cf83a(0x17c)](_0x3c3357);};databaseCmd[a2_0x246dba(0x1a6)]('list\x20[pattern]')[a2_0x246dba(0x185)](a2_0x246dba(0x1b6))['action'](databaseListAction),program[a2_0x246dba(0x1a6)](a2_0x246dba(0x163),{'hidden':!![]})[a2_0x246dba(0x185)](a2_0x246dba(0x250))[a2_0x246dba(0x2ac)](databaseListAction),program[a2_0x246dba(0x1a6)]('chat\x20[message...]')[a2_0x246dba(0x185)](a2_0x246dba(0x17f))['option'](a2_0x246dba(0x128),a2_0x246dba(0x134))[a2_0x246dba(0xf2)](a2_0x246dba(0x20c),'Model\x20name\x20(default:\x20claude-4.5-sonnet)')[a2_0x246dba(0xf2)]('--temperature\x20<n>',a2_0x246dba(0x177))[a2_0x246dba(0xf2)]('--new',a2_0x246dba(0x184))['action'](async(_0x45f821,_0x27de9f)=>{const _0x1f2db6=a2_0x246dba,_0x4e80f0=new ChatCommand(),_0x5bf8b6=program[_0x1f2db6(0x2a1)](),_0x727611=await createTDXInstance(_0x5bf8b6),_0x194712=await _0x4e80f0[_0x1f2db6(0x1fe)]({'options':{..._0x5bf8b6,..._0x27de9f},'args':_0x45f821,'tdx':_0x727611});process['exit'](_0x194712);});const apiCmd=program[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e4))[a2_0x246dba(0x1dc)](a2_0x246dba(0x231))[a2_0x246dba(0xea)]('after',a2_0x246dba(0x1b7))[a2_0x246dba(0xf2)](a2_0x246dba(0x2c1),a2_0x246dba(0x212),'GET')[a2_0x246dba(0xf2)](a2_0x246dba(0x2e1),a2_0x246dba(0x1b1))['option']('-f,\x20--file\x20<path>','Read\x20request\x20body\x20from\x20file')['option'](a2_0x246dba(0x2b3),a2_0x246dba(0x285),(_0x43a84f,_0x4a356f)=>{return _0x4a356f?[..._0x4a356f,_0x43a84f]:[_0x43a84f];})[a2_0x246dba(0xf2)](a2_0x246dba(0x202),a2_0x246dba(0x230),'td')['action'](async(_0x226929,_0x10f381)=>{const _0x390201=a2_0x246dba;if(!_0x226929){apiCmd['help']();return;}const _0x55b28e=new ApiCommand(),_0x659b52=program[_0x390201(0x2a1)](),_0x43421d=await createTDXInstance(_0x659b52),_0x27d760=await _0x55b28e[_0x390201(0x1fe)]({'options':{..._0x659b52,..._0x10f381},'args':[_0x226929],'tdx':_0x43421d});process[_0x390201(0x17c)](_0x27d760);}),tableCmd=program[a2_0x246dba(0x1a6)](a2_0x246dba(0x13b))['description'](a2_0x246dba(0xee)),tableListAction=async(_0x2a1545,_0x41b308)=>{const _0xba5cb7=a2_0x246dba,_0x286b3a=new TablesCommand(),_0x56ff43=program['opts'](),_0x5d32ed=await createTDXInstance(_0x56ff43);_0x41b308['in']&&(_0x41b308['database']=_0x41b308['in']);const _0x274b18=await _0x286b3a[_0xba5cb7(0x1fe)]({'options':{..._0x56ff43,..._0x41b308},'args':_0x2a1545?[_0x2a1545]:[],'tdx':_0x5d32ed});process[_0xba5cb7(0x17c)](_0x274b18);};tableCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e6))['description'](a2_0x246dba(0x2c9))[a2_0x246dba(0xf2)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x246dba(0xf2)](a2_0x246dba(0x11f),a2_0x246dba(0x26f))['action'](tableListAction),program['command']('tables\x20[pattern]',{'hidden':!![]})[a2_0x246dba(0x185)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')['option'](a2_0x246dba(0x2dc),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x246dba(0xf2)]('--in\x20<database>',a2_0x246dba(0x26f))[a2_0x246dba(0x2ac)](tableListAction),program[a2_0x246dba(0x1a6)](a2_0x246dba(0x187))[a2_0x246dba(0x185)](a2_0x246dba(0x2b8))['option'](a2_0x246dba(0x2dc),a2_0x246dba(0x105))[a2_0x246dba(0xf2)](a2_0x246dba(0x11f),a2_0x246dba(0x26f))['action'](async(_0x4c4cb4,_0x47510e)=>{const _0x202c6d=a2_0x246dba,_0x1a53e4=new ShowCommand(),_0x4ed9fc=program[_0x202c6d(0x2a1)](),_0x2704ae=await createTDXInstance(_0x4ed9fc);_0x47510e['in']&&(_0x47510e[_0x202c6d(0x151)]=_0x47510e['in']);const _0x502368=await _0x1a53e4[_0x202c6d(0x1fe)]({'options':{..._0x4ed9fc,..._0x47510e},'args':_0x4c4cb4?[_0x4c4cb4]:[],'tdx':_0x2704ae});process[_0x202c6d(0x17c)](_0x502368);}),program[a2_0x246dba(0x1a6)](a2_0x246dba(0x269))['alias'](a2_0x246dba(0x235))[a2_0x246dba(0x185)](a2_0x246dba(0x253))[a2_0x246dba(0xf2)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x246dba(0xf2)](a2_0x246dba(0x11f),a2_0x246dba(0x26f))[a2_0x246dba(0x2ac)](async(_0x570524,_0x44586e)=>{const _0xb722b4=a2_0x246dba,_0x433812=new DescribeCommand(),_0x2ba031=program[_0xb722b4(0x2a1)](),_0x1ffb74=await createTDXInstance(_0x2ba031);_0x44586e['in']&&(_0x44586e['database']=_0x44586e['in']);const _0x4107fe=await _0x433812[_0xb722b4(0x1fe)]({'options':{..._0x2ba031,..._0x44586e},'args':_0x570524?[_0x570524]:[],'tdx':_0x1ffb74});process[_0xb722b4(0x17c)](_0x4107fe);}),program['command'](a2_0x246dba(0x2b9))['description'](a2_0x246dba(0x19b))[a2_0x246dba(0xf2)](a2_0x246dba(0x2dc),a2_0x246dba(0x191))[a2_0x246dba(0xf2)](a2_0x246dba(0x11f),a2_0x246dba(0x26f))[a2_0x246dba(0xf2)]('--catalog\x20<catalog>',a2_0x246dba(0x1d4))[a2_0x246dba(0xf2)](a2_0x246dba(0x111),a2_0x246dba(0x1c7))[a2_0x246dba(0xf2)](a2_0x246dba(0x14f),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')['action'](async(_0x1d0623,_0x554413)=>{const _0x33c113=a2_0x246dba,_0x297e48=new QueryCommand(),_0x7892f7=program[_0x33c113(0x2a1)](),_0x8aed90=await createTDXInstance(_0x7892f7);_0x554413['in']&&(_0x554413[_0x33c113(0x151)]=_0x554413['in']);const _0x30e2f3=await _0x297e48[_0x33c113(0x1fe)]({'options':{..._0x7892f7,..._0x554413},'args':_0x1d0623?[_0x1d0623]:[],'tdx':_0x8aed90});process[_0x33c113(0x17c)](_0x30e2f3);});const segmentCmd=program[a2_0x246dba(0x1a6)]('segment')[a2_0x246dba(0x1aa)]('sg')['description']('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x909ded,_0x53c49a)=>{const _0x40129c=a2_0x246dba,_0x251b34=new SegmentsCommand(),_0x5db427=program['opts'](),_0x29c338=await createTDXInstance(_0x5db427),_0x297914=await _0x251b34['run']({'options':{..._0x5db427,..._0x53c49a},'args':_0x909ded?[_0x909ded]:[],'tdx':_0x29c338});process[_0x40129c(0x17c)](_0x297914);};segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x29a))[a2_0x246dba(0x185)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')['option'](a2_0x246dba(0x12d),a2_0x246dba(0x1eb))[a2_0x246dba(0xf2)](a2_0x246dba(0x2a8),a2_0x246dba(0x2d8),'10')[a2_0x246dba(0xf2)](a2_0x246dba(0x2e2),a2_0x246dba(0x22a))[a2_0x246dba(0x2ac)](segmentListAction),program[a2_0x246dba(0x1a6)](a2_0x246dba(0x213),{'hidden':!![]})['description'](a2_0x246dba(0x132))[a2_0x246dba(0xf2)](a2_0x246dba(0x12d),a2_0x246dba(0x1eb))[a2_0x246dba(0xf2)]('--max-depth\x20<depth>',a2_0x246dba(0x2d8),'10')[a2_0x246dba(0xf2)](a2_0x246dba(0x2e2),a2_0x246dba(0x22a))[a2_0x246dba(0x2ac)](segmentListAction),segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x29f),{'hidden':!![]})[a2_0x246dba(0x185)](a2_0x246dba(0x13c))[a2_0x246dba(0x2ac)](async(_0x4e1ddf,_0x2b5423)=>{const _0x37ad5c=a2_0x246dba,_0x2407e1=new SegmentUseCommand(),_0x8e370c=program[_0x37ad5c(0x2a1)](),_0x5bc59e=await createTDXInstance(_0x8e370c),_0x53dce7=await _0x2407e1[_0x37ad5c(0x1fe)]({'options':{..._0x8e370c,..._0x2b5423},'args':[_0x4e1ddf],'tdx':_0x5bc59e});process['exit'](_0x53dce7);});const segmentViewAction=async(_0x5870f5,_0x196178)=>{const _0x4489c3=new SegmentViewCommand(),_0x146f38=program['opts'](),_0x167810=await createTDXInstance(_0x146f38),_0x1ec270=await _0x4489c3['run']({'options':{..._0x146f38,..._0x196178},'args':_0x5870f5?[_0x5870f5]:[],'tdx':_0x167810});process['exit'](_0x1ec270);};segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1ea))['description'](a2_0x246dba(0x116))[a2_0x246dba(0xf2)](a2_0x246dba(0x2e2),'Open\x20segment\x20in\x20web\x20browser')[a2_0x246dba(0x2ac)](segmentViewAction),segmentCmd['command'](a2_0x246dba(0x10d),{'hidden':!![]})[a2_0x246dba(0x1aa)](a2_0x246dba(0x16a))['option']('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')[a2_0x246dba(0x185)](a2_0x246dba(0x195))[a2_0x246dba(0x2ac)](segmentViewAction),segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2be))['description'](a2_0x246dba(0x101))[a2_0x246dba(0x2ac)](async(_0x5030a4,_0x1e0665)=>{const _0x1f83e1=a2_0x246dba,_0x3cc07b=new SegmentDescCommand(),_0x55230d=program[_0x1f83e1(0x2a1)](),_0x12c562=await createTDXInstance(_0x55230d),_0x538fda=await _0x3cc07b['run']({'options':{..._0x55230d,..._0x1e0665},'args':_0x5030a4?[_0x5030a4]:[],'tdx':_0x12c562});process[_0x1f83e1(0x17c)](_0x538fda);}),segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x15e))['description']('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x246dba(0x2ac)](async(_0x5e18d6,_0x4cca01)=>{const _0x3ff7ab=a2_0x246dba,_0xeb5f1a=new SegmentShowCommand(),_0x31bcf2=program['opts'](),_0x162066=await createTDXInstance(_0x31bcf2),_0x28e814=await _0xeb5f1a[_0x3ff7ab(0x1fe)]({'options':{..._0x31bcf2,..._0x4cca01},'args':_0x5e18d6?[_0x5e18d6]:[],'tdx':_0x162066});process['exit'](_0x28e814);}),segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x197),{'hidden':!![]})['description'](a2_0x246dba(0x139))['action'](async(_0x246d16,_0x48a811)=>{const _0x45b7dc=a2_0x246dba,_0x30527e=new SegmentFolderListCommand(),_0x164363=program['opts'](),_0x3de61c=await createTDXInstance(_0x164363),_0x4bd667=await _0x30527e[_0x45b7dc(0x1fe)]({'options':{..._0x164363,..._0x48a811},'args':[_0x246d16],'tdx':_0x3de61c});process[_0x45b7dc(0x17c)](_0x4bd667);});const folderCmd=segmentCmd['command'](a2_0x246dba(0x10e),{'hidden':!![]})[a2_0x246dba(0x185)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x142))['description'](a2_0x246dba(0x158))[a2_0x246dba(0x2ac)](async(_0x517173,_0x5acbbc)=>{const _0xdc6124=a2_0x246dba,_0xd43229=new SegmentFolderShowCommand(),_0x1d3aff=program[_0xdc6124(0x2a1)](),_0x1a4912=await createTDXInstance(_0x1d3aff),_0x5103ad=await _0xd43229[_0xdc6124(0x1fe)]({'options':{..._0x1d3aff,..._0x5acbbc},'args':[_0x517173],'tdx':_0x1a4912});process[_0xdc6124(0x17c)](_0x5103ad);}),segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2dd))[a2_0x246dba(0x185)](a2_0x246dba(0x24c))[a2_0x246dba(0x2ac)](async(_0x582c80,_0x2f83ef)=>{const _0xc020f6=a2_0x246dba,_0xb7976d=new SegmentSQLCommand(),_0x57c22e=program[_0xc020f6(0x2a1)](),_0x2ff2dd=await createTDXInstance(_0x57c22e),_0x5eec26=await _0xb7976d[_0xc020f6(0x1fe)]({'options':{..._0x57c22e,..._0x2f83ef},'args':_0x582c80?[_0x582c80]:[],'tdx':_0x2ff2dd});process[_0xc020f6(0x17c)](_0x5eec26);}),segmentCmd[a2_0x246dba(0x1a6)]('fields\x20[parent_name]')[a2_0x246dba(0x185)](a2_0x246dba(0x29c))[a2_0x246dba(0x2ac)](async(_0xdb4482,_0x1b2f12)=>{const _0xcebff7=a2_0x246dba,_0x5357cb=new SegmentFieldsCommand(),_0x32bbb0=program['opts'](),_0x2b35f7=await createTDXInstance(_0x32bbb0),_0x1f20f6=await _0x5357cb[_0xcebff7(0x1fe)]({'options':{..._0x32bbb0,..._0x1b2f12},'args':_0xdb4482?[_0xdb4482]:[],'tdx':_0x2b35f7});process[_0xcebff7(0x17c)](_0x1f20f6);}),segmentCmd[a2_0x246dba(0x1a6)]('pull\x20[parent_or_file]')['description']('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x246dba(0xf2)](a2_0x246dba(0x261),'Skip\x20confirmation\x20prompts')[a2_0x246dba(0xf2)](a2_0x246dba(0xf7),a2_0x246dba(0x2c8))['action'](async(_0x4bd11f,_0x3c48ac)=>{const _0x191dc2=a2_0x246dba,_0x29bbf9=new SegmentPullCommand(),_0x21189a=program[_0x191dc2(0x2a1)](),_0x2d95af=await createTDXInstance(_0x21189a),_0x5bf508=await _0x29bbf9[_0x191dc2(0x1fe)]({'options':{..._0x21189a,..._0x3c48ac},'args':_0x4bd11f?[_0x4bd11f]:[],'tdx':_0x2d95af});process[_0x191dc2(0x17c)](_0x5bf508);}),segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1dd))['description'](a2_0x246dba(0x121))[a2_0x246dba(0xf2)](a2_0x246dba(0x261),a2_0x246dba(0x2b7))[a2_0x246dba(0xf2)](a2_0x246dba(0xf7),a2_0x246dba(0x2c8))['option']('--delete',a2_0x246dba(0x1e8))[a2_0x246dba(0x2ac)](async(_0x26cc10,_0x311f17)=>{const _0x183aab=a2_0x246dba,_0x4647cb=new SegmentPushCommand(),_0x571b34=program[_0x183aab(0x2a1)](),_0x5aa81b=await createTDXInstance(_0x571b34),_0x59c7b2=await _0x4647cb['run']({'options':{..._0x571b34,..._0x311f17},'args':_0x26cc10?[_0x26cc10]:[],'tdx':_0x5aa81b});process[_0x183aab(0x17c)](_0x59c7b2);}),segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1d7),{'hidden':!![]})[a2_0x246dba(0x185)](a2_0x246dba(0x1b8))[a2_0x246dba(0xf2)]('--description\x20<text>',a2_0x246dba(0x161))[a2_0x246dba(0xf2)]('--rule\x20<json>',a2_0x246dba(0x267))[a2_0x246dba(0xf2)](a2_0x246dba(0x220),a2_0x246dba(0x10a))[a2_0x246dba(0xf2)]('--folder\x20<name>',a2_0x246dba(0xf5))[a2_0x246dba(0xf2)]('--kind\x20<type>',a2_0x246dba(0x268))[a2_0x246dba(0xf2)](a2_0x246dba(0x251),a2_0x246dba(0x110))[a2_0x246dba(0xf2)](a2_0x246dba(0x1d1),a2_0x246dba(0x10f))[a2_0x246dba(0x2ac)](async(_0x3e690b,_0xb4a474)=>{const _0x4cae75=a2_0x246dba,_0x4c8a66=new SegmentCreateCommand(),_0x5e9eb8=program[_0x4cae75(0x2a1)](),_0x2fdce6=await createTDXInstance(_0x5e9eb8),_0x3af83b=await _0x4c8a66[_0x4cae75(0x1fe)]({'options':{..._0x5e9eb8,..._0xb4a474},'args':[_0x3e690b],'tdx':_0x2fdce6});process[_0x4cae75(0x17c)](_0x3af83b);}),segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x20f),{'hidden':!![]})['description'](a2_0x246dba(0x19f))[a2_0x246dba(0xf2)]('--name\x20<new_name>',a2_0x246dba(0x12f))[a2_0x246dba(0xf2)](a2_0x246dba(0x237),'Updated\x20description')[a2_0x246dba(0xf2)](a2_0x246dba(0x259),a2_0x246dba(0x170))[a2_0x246dba(0xf2)](a2_0x246dba(0x220),a2_0x246dba(0x290))['option'](a2_0x246dba(0x263),a2_0x246dba(0x2a5))[a2_0x246dba(0xf2)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')['action'](async(_0x22317b,_0x28c22b)=>{const _0x55c243=a2_0x246dba,_0x512adf=new SegmentUpdateCommand(),_0x57d027=program[_0x55c243(0x2a1)](),_0x12ae3c=await createTDXInstance(_0x57d027),_0x3f82d4=await _0x512adf[_0x55c243(0x1fe)]({'options':{..._0x57d027,..._0x28c22b},'args':[_0x22317b],'tdx':_0x12ae3c});process[_0x55c243(0x17c)](_0x3f82d4);});const parentCmd=segmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1c4),{'hidden':!![]})[a2_0x246dba(0x185)](a2_0x246dba(0x2a0)),parentListAction=async(_0x298a7e,_0x9cbb38)=>{const _0x465d86=a2_0x246dba,_0x1427a3=new ParentSegmentListCommand(),_0x19e05f=program[_0x465d86(0x2a1)](),_0x546fbb=await createTDXInstance(_0x19e05f),_0x487090=await _0x1427a3[_0x465d86(0x1fe)]({'options':{..._0x19e05f,..._0x9cbb38},'args':_0x298a7e?[_0x298a7e]:[],'tdx':_0x546fbb});process[_0x465d86(0x17c)](_0x487090);};parentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e6))[a2_0x246dba(0x185)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x246dba(0x2ac)](parentListAction),segmentCmd[a2_0x246dba(0x1a6)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x246dba(0x185)](a2_0x246dba(0x198))['action'](parentListAction),parentCmd['command'](a2_0x246dba(0x16f))[a2_0x246dba(0x185)](a2_0x246dba(0x240))[a2_0x246dba(0xf2)](a2_0x246dba(0x2e9),a2_0x246dba(0x2da))[a2_0x246dba(0xf2)](a2_0x246dba(0x261),a2_0x246dba(0x1ab))[a2_0x246dba(0x2ac)](async(_0xaaec6a,_0x327781)=>{const _0x3eac97=a2_0x246dba,_0x1cb9d7=new ParentSegmentPullCommand(),_0x1157a9=program[_0x3eac97(0x2a1)](),_0x1b7450=await createTDXInstance(_0x1157a9),_0x14aa63=await _0x1cb9d7['run']({'options':{..._0x1157a9,..._0x327781},'args':_0xaaec6a?[_0xaaec6a]:[],'tdx':_0x1b7450});process['exit'](_0x14aa63);}),parentCmd['command'](a2_0x246dba(0x297))[a2_0x246dba(0x185)](a2_0x246dba(0x1be))[a2_0x246dba(0xf2)](a2_0x246dba(0x261),'Skip\x20confirmation\x20prompt')['action'](async(_0x38a474,_0x30994a)=>{const _0x3c3530=a2_0x246dba,_0x387923=new ParentSegmentPushCommand(),_0x39e9aa=program[_0x3c3530(0x2a1)](),_0x429232=await createTDXInstance(_0x39e9aa),_0x6aa36a=await _0x387923['run']({'options':{..._0x39e9aa,..._0x30994a},'args':_0x38a474?[_0x38a474]:[],'tdx':_0x429232});process['exit'](_0x6aa36a);}),parentCmd[a2_0x246dba(0x1a6)]('validate\x20[file]')[a2_0x246dba(0x185)](a2_0x246dba(0x113))['option']('--master',a2_0x246dba(0x16e))[a2_0x246dba(0xf2)](a2_0x246dba(0x210),a2_0x246dba(0x200))[a2_0x246dba(0xf2)](a2_0x246dba(0x28e),a2_0x246dba(0x280))[a2_0x246dba(0xf2)]('--enriched',a2_0x246dba(0x26c))['option']('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')['action'](async(_0x2d52f7,_0x241a82)=>{const _0x49ddd9=a2_0x246dba,_0x106a76=new ParentSegmentValidateCommand(),_0x577b77=program[_0x49ddd9(0x2a1)](),_0x31b6cf=await createTDXInstance(_0x577b77),_0x126c1c=await _0x106a76[_0x49ddd9(0x1fe)]({'options':{..._0x577b77,..._0x241a82},'args':_0x2d52f7?[_0x2d52f7]:[],'tdx':_0x31b6cf});process[_0x49ddd9(0x17c)](_0x126c1c);}),parentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x152))['description'](a2_0x246dba(0x135))['option']('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x246dba(0xf2)](a2_0x246dba(0x210),a2_0x246dba(0x199))[a2_0x246dba(0xf2)]('--behavior\x20[name]',a2_0x246dba(0x174))[a2_0x246dba(0xf2)](a2_0x246dba(0x227),a2_0x246dba(0x2df))[a2_0x246dba(0xf2)](a2_0x246dba(0x1c6),a2_0x246dba(0x264),a2_0x246dba(0x257))['action'](async(_0x4d6066,_0x2e68b4)=>{const _0x35c86f=a2_0x246dba,_0x551a51=new ParentSegmentPreviewCommand(),_0x51c373=program['opts'](),_0x4bc8e2=await createTDXInstance(_0x51c373),_0x31f029=await _0x551a51[_0x35c86f(0x1fe)]({'options':{..._0x51c373,..._0x2e68b4},'args':_0x4d6066?[_0x4d6066]:[],'tdx':_0x4bc8e2});process['exit'](_0x31f029);}),parentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x12b))[a2_0x246dba(0x185)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x246dba(0x261),a2_0x246dba(0x1ab))['action'](async(_0x54e165,_0x485372)=>{const _0x3d894c=a2_0x246dba,_0x217d4f=new ParentSegmentRunCommand(),_0x2b3e64=program[_0x3d894c(0x2a1)](),_0x137ddb=await createTDXInstance(_0x2b3e64),_0x1fcd82=await _0x217d4f[_0x3d894c(0x1fe)]({'options':{..._0x2b3e64,..._0x485372},'args':_0x54e165?[_0x54e165]:[],'tdx':_0x137ddb});process[_0x3d894c(0x17c)](_0x1fcd82);});const parentSegmentCmd=program[a2_0x246dba(0x1a6)](a2_0x246dba(0x146))['alias']('ps')[a2_0x246dba(0x185)](a2_0x246dba(0x13d));parentSegmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e6))[a2_0x246dba(0x185)](a2_0x246dba(0x2c7))[a2_0x246dba(0x2ac)](parentListAction),parentSegmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x16f))[a2_0x246dba(0x185)](a2_0x246dba(0x166))['option'](a2_0x246dba(0x2e9),a2_0x246dba(0x1c1))[a2_0x246dba(0xf2)](a2_0x246dba(0x261),a2_0x246dba(0x1ab))['option']('-u,\x20--use',a2_0x246dba(0x28f))[a2_0x246dba(0x2ac)](async(_0x314a15,_0x276f5)=>{const _0x556d3e=a2_0x246dba,_0x3f1f19=new ParentSegmentPullCommand(),_0x55a934=program[_0x556d3e(0x2a1)](),_0x99a2f5=await createTDXInstance(_0x55a934),_0x2479c4=await _0x3f1f19['run']({'options':{..._0x55a934,..._0x276f5},'args':_0x314a15?[_0x314a15]:[],'tdx':_0x99a2f5});process[_0x556d3e(0x17c)](_0x2479c4);}),parentSegmentCmd[a2_0x246dba(0x1a6)]('push\x20[name]')[a2_0x246dba(0x185)](a2_0x246dba(0x2cd))[a2_0x246dba(0xf2)](a2_0x246dba(0x261),a2_0x246dba(0x1ab))['action'](async(_0x32971e,_0x269802)=>{const _0x3ce450=a2_0x246dba,_0x5c78f7=new ParentSegmentPushCommand(),_0x3254fe=program[_0x3ce450(0x2a1)](),_0x2ded09=await createTDXInstance(_0x3254fe),_0x28a10a=await _0x5c78f7[_0x3ce450(0x1fe)]({'options':{..._0x3254fe,..._0x269802},'args':_0x32971e?[_0x32971e]:[],'tdx':_0x2ded09});process[_0x3ce450(0x17c)](_0x28a10a);}),parentSegmentCmd[a2_0x246dba(0x1a6)]('validate\x20[name]')['description'](a2_0x246dba(0x113))['option']('--master',a2_0x246dba(0x16e))[a2_0x246dba(0xf2)](a2_0x246dba(0x210),a2_0x246dba(0x200))['option'](a2_0x246dba(0x28e),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x246dba(0xf2)]('--enriched',a2_0x246dba(0x26c))['option'](a2_0x246dba(0x1c6),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x246dba(0x257))[a2_0x246dba(0x2ac)](async(_0x3fbe54,_0x1fa5cb)=>{const _0x1355d0=a2_0x246dba,_0x55776b=new ParentSegmentValidateCommand(),_0xa24344=program[_0x1355d0(0x2a1)](),_0x5d42d8=await createTDXInstance(_0xa24344),_0x16e4e3=await _0x55776b[_0x1355d0(0x1fe)]({'options':{..._0xa24344,..._0x1fa5cb},'args':_0x3fbe54?[_0x3fbe54]:[],'tdx':_0x5d42d8});process[_0x1355d0(0x17c)](_0x16e4e3);}),parentSegmentCmd[a2_0x246dba(0x1a6)]('preview\x20[name]')[a2_0x246dba(0x185)](a2_0x246dba(0x135))[a2_0x246dba(0xf2)](a2_0x246dba(0x1cf),a2_0x246dba(0xe8))[a2_0x246dba(0xf2)](a2_0x246dba(0x210),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x246dba(0xf2)](a2_0x246dba(0x28e),a2_0x246dba(0x174))[a2_0x246dba(0xf2)](a2_0x246dba(0x227),a2_0x246dba(0x2df))[a2_0x246dba(0xf2)](a2_0x246dba(0x1c6),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x246dba(0x257))['action'](async(_0x29d18d,_0x5a52a1)=>{const _0x25ba82=a2_0x246dba,_0x248d28=new ParentSegmentPreviewCommand(),_0x3b93c3=program[_0x25ba82(0x2a1)](),_0x2d88b0=await createTDXInstance(_0x3b93c3),_0x1b0608=await _0x248d28[_0x25ba82(0x1fe)]({'options':{..._0x3b93c3,..._0x5a52a1},'args':_0x29d18d?[_0x29d18d]:[],'tdx':_0x2d88b0});process[_0x25ba82(0x17c)](_0x1b0608);}),parentSegmentCmd['command'](a2_0x246dba(0x12b))['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x246dba(0x261),a2_0x246dba(0x1ab))[a2_0x246dba(0x2ac)](async(_0x108d37,_0x242cae)=>{const _0x40fae7=a2_0x246dba,_0x2b340b=new ParentSegmentRunCommand(),_0x42a2e7=program[_0x40fae7(0x2a1)](),_0x7d3e3b=await createTDXInstance(_0x42a2e7),_0x2d9a6b=await _0x2b340b[_0x40fae7(0x1fe)]({'options':{..._0x42a2e7,..._0x242cae},'args':_0x108d37?[_0x108d37]:[],'tdx':_0x7d3e3b});process[_0x40fae7(0x17c)](_0x2d9a6b);}),parentSegmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x137))[a2_0x246dba(0x185)](a2_0x246dba(0x2cc))[a2_0x246dba(0xf2)]('--json',a2_0x246dba(0xed))[a2_0x246dba(0xf2)]('--jsonl',a2_0x246dba(0x15f))[a2_0x246dba(0x2ac)](async(_0x5d0b3a,_0x1c7989)=>{const _0x26c880=a2_0x246dba,_0x2f1f95=new ParentSegmentFieldsCommand(),_0x347e22=program[_0x26c880(0x2a1)](),_0x26a3c8=await createTDXInstance(_0x347e22),_0x252231=await _0x2f1f95[_0x26c880(0x1fe)]({'options':{..._0x347e22,..._0x1c7989},'args':_0x5d0b3a?[_0x5d0b3a]:[],'tdx':_0x26a3c8});process[_0x26c880(0x17c)](_0x252231);}),parentSegmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x244))[a2_0x246dba(0x185)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x246dba(0xf2)](a2_0x246dba(0x2e2),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x246dba(0xf2)](a2_0x246dba(0x109),'Output\x20as\x20JSON')[a2_0x246dba(0xf2)](a2_0x246dba(0x127),a2_0x246dba(0x15f))[a2_0x246dba(0x2ac)](async(_0x33faf1,_0x53f546)=>{const _0x4f042a=a2_0x246dba,_0x4e15cb=new ParentSegmentViewCommand(),_0x2323f8=program['opts'](),_0x172f1b=await createTDXInstance(_0x2323f8),_0x54b4f2=await _0x4e15cb[_0x4f042a(0x1fe)]({'options':{..._0x2323f8,..._0x53f546},'args':_0x33faf1?[_0x33faf1]:[],'tdx':_0x172f1b});process[_0x4f042a(0x17c)](_0x54b4f2);}),parentSegmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x20b))[a2_0x246dba(0x185)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x246dba(0xf2)](a2_0x246dba(0x109),a2_0x246dba(0xed))[a2_0x246dba(0xf2)]('--jsonl',a2_0x246dba(0x15f))[a2_0x246dba(0x2ac)](async(_0x34081b,_0x4dcd00)=>{const _0x58e3cf=a2_0x246dba,_0x55a3b8=new ParentSegmentDescCommand(),_0x104127=program[_0x58e3cf(0x2a1)](),_0x390862=await createTDXInstance(_0x104127),_0x130d90=await _0x55a3b8[_0x58e3cf(0x1fe)]({'options':{..._0x104127,..._0x4dcd00},'args':_0x34081b?[_0x34081b]:[],'tdx':_0x390862});process[_0x58e3cf(0x17c)](_0x130d90);}),parentSegmentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x100))[a2_0x246dba(0x185)](a2_0x246dba(0x27c))[a2_0x246dba(0xf2)](a2_0x246dba(0x109),a2_0x246dba(0xed))[a2_0x246dba(0xf2)](a2_0x246dba(0x127),a2_0x246dba(0x15f))[a2_0x246dba(0x2ac)](async(_0x1ecd2b,_0x5ac78f)=>{const _0x5b78bb=a2_0x246dba,_0x40e59a=new ParentSegmentSQLCommand(),_0xee0f4d=program['opts'](),_0x14dd92=await createTDXInstance(_0xee0f4d),_0x2a64b6=await _0x40e59a[_0x5b78bb(0x1fe)]({'options':{..._0xee0f4d,..._0x5ac78f},'args':_0x1ecd2b?[_0x1ecd2b]:[],'tdx':_0x14dd92});process[_0x5b78bb(0x17c)](_0x2a64b6);}),parentSegmentCmd[a2_0x246dba(0x1a6)]('show\x20[name]')[a2_0x246dba(0x185)](a2_0x246dba(0x1fa))[a2_0x246dba(0xf2)](a2_0x246dba(0x1c5),a2_0x246dba(0x18c))['option'](a2_0x246dba(0x109),a2_0x246dba(0xed))['option'](a2_0x246dba(0x127),a2_0x246dba(0x15f))[a2_0x246dba(0x2ac)](async(_0x3db01a,_0x1148f8)=>{const _0x41a332=a2_0x246dba,_0x2fd5af=new ParentSegmentShowCommand(),_0x418305=program['opts'](),_0x1f53c3=await createTDXInstance(_0x418305),_0xa27a8e=await _0x2fd5af['run']({'options':{..._0x418305,..._0x1148f8},'args':_0x3db01a?[_0x3db01a]:[],'tdx':_0x1f53c3});process[_0x41a332(0x17c)](_0xa27a8e);}),parentSegmentCmd['command'](a2_0x246dba(0x15a))[a2_0x246dba(0x185)]('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x246dba(0x2ac)](async(_0xef0842,_0x2e61c5)=>{const _0x4ba34b=a2_0x246dba,_0x4d57d7=new UseCommand(),_0x161afe=program['opts'](),_0x51b801=_0xef0842?[_0x4ba34b(0x274),_0xef0842]:[],_0x5b22bc=await _0x4d57d7[_0x4ba34b(0x1fe)]({'options':{..._0x161afe,..._0x2e61c5},'args':_0x51b801,'tdx':null});process[_0x4ba34b(0x17c)](_0x5b22bc);}),parentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0xec))[a2_0x246dba(0x185)](a2_0x246dba(0x1e4))[a2_0x246dba(0x279)]('--database\x20<db>',a2_0x246dba(0x247))['requiredOption'](a2_0x246dba(0x1f5),a2_0x246dba(0x219))[a2_0x246dba(0xf2)](a2_0x246dba(0x237),'Parent\x20segment\x20description')[a2_0x246dba(0xf2)](a2_0x246dba(0xff),a2_0x246dba(0x15b))[a2_0x246dba(0xf2)](a2_0x246dba(0x115),a2_0x246dba(0x107))[a2_0x246dba(0xf2)](a2_0x246dba(0x120),a2_0x246dba(0x1d0))[a2_0x246dba(0xf2)]('--attributes\x20<json>',a2_0x246dba(0x25b))[a2_0x246dba(0xf2)](a2_0x246dba(0x1ba),'Attributes\x20from\x20JSON\x20file')[a2_0x246dba(0xf2)](a2_0x246dba(0x203),a2_0x246dba(0x1ac))[a2_0x246dba(0xf2)](a2_0x246dba(0xe4),a2_0x246dba(0x130))[a2_0x246dba(0xf2)](a2_0x246dba(0xe3),a2_0x246dba(0x2ca))[a2_0x246dba(0xf2)](a2_0x246dba(0x266),a2_0x246dba(0x14e))['action'](async(_0x10feb,_0x51ff7a)=>{const _0x47b6b8=a2_0x246dba,_0xc07aa3=new ParentSegmentCreateCommand(),_0x5142d0=program['opts'](),_0x49db46=await createTDXInstance(_0x5142d0),_0x12498f=await _0xc07aa3[_0x47b6b8(0x1fe)]({'options':{..._0x5142d0,..._0x51ff7a},'args':[_0x10feb],'tdx':_0x49db46});process[_0x47b6b8(0x17c)](_0x12498f);}),parentCmd[a2_0x246dba(0x1a6)]('update\x20<name>')[a2_0x246dba(0x185)](a2_0x246dba(0x150))[a2_0x246dba(0xf2)](a2_0x246dba(0x237),'Updated\x20description')[a2_0x246dba(0xf2)](a2_0x246dba(0xff),a2_0x246dba(0x226))[a2_0x246dba(0xf2)]('--schedule-option\x20<value>',a2_0x246dba(0x11b))[a2_0x246dba(0xf2)](a2_0x246dba(0x120),a2_0x246dba(0x2bd))[a2_0x246dba(0xf2)](a2_0x246dba(0x178),'Add\x20attributes\x20as\x20JSON\x20string')['option'](a2_0x246dba(0x252),a2_0x246dba(0x277))[a2_0x246dba(0xf2)]('--add-behaviors\x20<json>',a2_0x246dba(0x14d))[a2_0x246dba(0xf2)](a2_0x246dba(0x20a),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x246dba(0x2ac)](async(_0x4ac0e6,_0x26f26d)=>{const _0x4fed1e=a2_0x246dba,_0x2228f9=new ParentSegmentUpdateCommand(),_0x5e510d=program[_0x4fed1e(0x2a1)](),_0x416cf4=await createTDXInstance(_0x5e510d),_0x15ae59=await _0x2228f9[_0x4fed1e(0x1fe)]({'options':{..._0x5e510d,..._0x26f26d},'args':[_0x4ac0e6],'tdx':_0x416cf4});process[_0x4fed1e(0x17c)](_0x15ae59);}),folderCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x208))[a2_0x246dba(0x185)](a2_0x246dba(0x114))[a2_0x246dba(0xf2)]('--description\x20<text>',a2_0x246dba(0x143))[a2_0x246dba(0xf2)](a2_0x246dba(0x104),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0x1e3b48,_0x5c2c6e,_0x4a9e02)=>{const _0x5f1ee5=a2_0x246dba,_0x159faa=new SegmentFolderCreateCommand(),_0x3be207=program[_0x5f1ee5(0x2a1)](),_0x30f135=await createTDXInstance(_0x3be207),_0x3a4745=await _0x159faa['run']({'options':{..._0x3be207,..._0x4a9e02},'args':[_0x1e3b48,_0x5c2c6e],'tdx':_0x30f135});process[_0x5f1ee5(0x17c)](_0x3a4745);}),program[a2_0x246dba(0x1a6)](a2_0x246dba(0x16d))['description'](a2_0x246dba(0xe9))['action'](async(_0x2ccf24,_0x2a6a85)=>{const _0x279d34=a2_0x246dba,_0x51f776=new ActivationsCommand(),_0x475225=program[_0x279d34(0x2a1)](),_0x28a7a4=await createTDXInstance(_0x475225),_0x35343e=await _0x51f776[_0x279d34(0x1fe)]({'options':{..._0x475225,..._0x2a6a85},'args':[_0x2ccf24],'tdx':_0x28a7a4});process['exit'](_0x35343e);});function a2_0x3ca7(_0x4032b2,_0x192f90){_0x4032b2=_0x4032b2-0xe0;const _0x3668e7=a2_0x3668();let _0x3ca719=_0x3668e7[_0x4032b2];return _0x3ca719;}const workflowCmd=program[a2_0x246dba(0x1a6)](a2_0x246dba(0x282))[a2_0x246dba(0x1aa)]('wf')[a2_0x246dba(0x185)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1f3))['description'](a2_0x246dba(0x1ef)),wfProjectListAction=async(_0x16c3af,_0x45d988)=>{const _0x25677c=a2_0x246dba,_0x266285=new WorkflowProjectsCommand(),_0x35e6fb=program[_0x25677c(0x2a1)](),_0x3c6cce=await createTDXInstance(_0x35e6fb),_0x5a5dfe=await _0x266285['run']({'options':{..._0x35e6fb,..._0x45d988},'args':_0x16c3af?[_0x16c3af]:[],'tdx':_0x3c6cce});process['exit'](_0x5a5dfe);};wfProjectCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e6))[a2_0x246dba(0x185)](a2_0x246dba(0x1d9))[a2_0x246dba(0x2ac)](wfProjectListAction),workflowCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1bb))[a2_0x246dba(0x185)](a2_0x246dba(0x20e))[a2_0x246dba(0x2ac)](wfProjectListAction);const wfWorkflowListAction=async(_0x3a5414,_0x42ad40)=>{const _0x50085f=a2_0x246dba,_0x423ffc=new WorkflowWorkflowsCommand(),_0x1d8513=program[_0x50085f(0x2a1)](),_0xa68d8f=await createTDXInstance(_0x1d8513),_0x51e765=await _0x423ffc[_0x50085f(0x1fe)]({'options':{..._0x1d8513,..._0x42ad40},'args':_0x3a5414?[_0x3a5414]:[],'tdx':_0xa68d8f});process[_0x50085f(0x17c)](_0x51e765);};workflowCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1bd))['description'](a2_0x246dba(0x2a7))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command']('session')[a2_0x246dba(0x185)](a2_0x246dba(0x255)),wfSessionListAction=async(_0x5f3d8a,_0x53c549)=>{const _0x124766=a2_0x246dba,_0x2447c1=new WorkflowSessionsCommand(),_0xe13a1d=program[_0x124766(0x2a1)](),_0x49dcd4=await createTDXInstance(_0xe13a1d),_0x359eb6=await _0x2447c1[_0x124766(0x1fe)]({'options':{..._0xe13a1d,..._0x53c549},'args':_0x5f3d8a?[_0x5f3d8a]:[],'tdx':_0x49dcd4});process[_0x124766(0x17c)](_0x359eb6);};wfSessionCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x167))[a2_0x246dba(0x185)](a2_0x246dba(0xf8))['option'](a2_0x246dba(0x27d),a2_0x246dba(0x102))[a2_0x246dba(0xf2)](a2_0x246dba(0x223),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x246dba(0xf2)](a2_0x246dba(0x1ce),a2_0x246dba(0x293))[a2_0x246dba(0x2ac)](wfSessionListAction),workflowCmd['command'](a2_0x246dba(0x292))[a2_0x246dba(0x185)](a2_0x246dba(0x2c3))[a2_0x246dba(0xf2)](a2_0x246dba(0x27d),a2_0x246dba(0x102))[a2_0x246dba(0xf2)](a2_0x246dba(0x223),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x246dba(0xf2)]('--to\x20<timestamp>',a2_0x246dba(0x293))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x493aa2,_0x426fe4)=>{const _0x32e2cf=a2_0x246dba,_0x45031a=new WorkflowAttemptsCommand(),_0x6605b5=program[_0x32e2cf(0x2a1)](),_0x48c2f4=await createTDXInstance(_0x6605b5),_0x488123=await _0x45031a[_0x32e2cf(0x1fe)]({'options':{..._0x6605b5,..._0x426fe4},'args':_0x493aa2?[_0x493aa2]:[],'tdx':_0x48c2f4});process[_0x32e2cf(0x17c)](_0x488123);},attemptCmd=workflowCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x14a))[a2_0x246dba(0x185)](a2_0x246dba(0x162))['argument'](a2_0x246dba(0x2d2),'Attempt\x20ID')[a2_0x246dba(0x1d3)](a2_0x246dba(0x21e),a2_0x246dba(0x1b3))[a2_0x246dba(0x1d3)](a2_0x246dba(0x1ae),a2_0x246dba(0x221))[a2_0x246dba(0xf2)](a2_0x246dba(0x1f4),a2_0x246dba(0x1db))[a2_0x246dba(0xf2)](a2_0x246dba(0x2c4),a2_0x246dba(0x25e))[a2_0x246dba(0xf2)](a2_0x246dba(0x171),a2_0x246dba(0x287))[a2_0x246dba(0xf2)]('--params\x20<json>',a2_0x246dba(0x18d))[a2_0x246dba(0xf2)](a2_0x246dba(0x1e7),a2_0x246dba(0x222))[a2_0x246dba(0xf2)](a2_0x246dba(0x2b4),a2_0x246dba(0x164))[a2_0x246dba(0x2ac)](async(_0x2802da,_0x126fda,_0x88c626,_0x5f25ce)=>{const _0x2cda1a=a2_0x246dba;if(_0x2802da===_0x2cda1a(0x248)){await wfAttemptListAction(_0x126fda,_0x5f25ce);return;}if(!_0x2802da){attemptCmd[_0x2cda1a(0x20d)]();return;}const _0x4b0f1f=program[_0x2cda1a(0x2a1)](),_0x55e66f=await createTDXInstance(_0x4b0f1f);let _0x27dbe9=0x0;if(!_0x126fda){const _0x299d6b=new WorkflowAttemptCommand();_0x27dbe9=await _0x299d6b[_0x2cda1a(0x1fe)]({'options':{..._0x4b0f1f,..._0x5f25ce},'args':[_0x2802da],'tdx':_0x55e66f});}else{if(_0x126fda===_0x2cda1a(0x176)){const _0x1fe6ec=new WorkflowLogsCommand();_0x27dbe9=await _0x1fe6ec[_0x2cda1a(0x1fe)]({'options':{..._0x4b0f1f,..._0x5f25ce},'args':_0x88c626?[_0x2802da,_0x88c626]:[_0x2802da],'tdx':_0x55e66f});}else{if(_0x126fda===_0x2cda1a(0x1b4)){const _0x5b7bd6=new WorkflowTasksCommand();_0x27dbe9=await _0x5b7bd6[_0x2cda1a(0x1fe)]({'options':{..._0x4b0f1f,..._0x5f25ce},'args':[_0x2802da],'tdx':_0x55e66f});}else{if(_0x126fda==='kill'){const _0x481b1=new WorkflowKillCommand();_0x27dbe9=await _0x481b1['run']({'options':{..._0x4b0f1f,..._0x5f25ce},'args':[_0x2802da],'tdx':_0x55e66f});}else{if(_0x126fda===_0x2cda1a(0x23c)){const _0x476d8e=new WorkflowRetryCommand();_0x27dbe9=await _0x476d8e['run']({'options':{..._0x4b0f1f,..._0x5f25ce},'args':[_0x2cda1a(0x169)+_0x2802da],'tdx':_0x55e66f});}else console[_0x2cda1a(0x1e2)]('Unknown\x20action:\x20'+_0x126fda),console[_0x2cda1a(0x1e2)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x27dbe9=0x1;}}}}process[_0x2cda1a(0x17c)](_0x27dbe9);});attemptCmd['command'](a2_0x246dba(0x167))['description'](a2_0x246dba(0x2e7))[a2_0x246dba(0xf2)](a2_0x246dba(0x2b4),a2_0x246dba(0x18e))['action'](wfAttemptListAction),workflowCmd[a2_0x246dba(0x1a6)]('attempts\x20[project]')[a2_0x246dba(0x185)](a2_0x246dba(0x15d))[a2_0x246dba(0xf2)](a2_0x246dba(0x2b4),a2_0x246dba(0x18e))[a2_0x246dba(0x2ac)](wfAttemptListAction),workflowCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2bb))[a2_0x246dba(0x185)](a2_0x246dba(0x281))['option'](a2_0x246dba(0x2e3),a2_0x246dba(0x2a6))[a2_0x246dba(0xf2)](a2_0x246dba(0x1e3),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')['action'](async(_0x18a770,_0x4a6073)=>{const _0x61e87=a2_0x246dba,_0x1a994e=new WorkflowRetryCommand(),_0x20a15c=program[_0x61e87(0x2a1)](),_0x252ccf=await createTDXInstance(_0x20a15c),_0x268ac2=await _0x1a994e[_0x61e87(0x1fe)]({'options':{..._0x20a15c,..._0x4a6073},'args':[_0x18a770],'tdx':_0x252ccf});process[_0x61e87(0x17c)](_0x268ac2);}),workflowCmd[a2_0x246dba(0x1a6)]('run\x20<workflow>')[a2_0x246dba(0x185)](a2_0x246dba(0x123))[a2_0x246dba(0xf2)](a2_0x246dba(0xfb),a2_0x246dba(0x1da),(_0x4dcfec,_0x46f3c5=[])=>[..._0x46f3c5,_0x4dcfec],[])[a2_0x246dba(0xf2)]('--session-time\x20<time>',a2_0x246dba(0x209))[a2_0x246dba(0x2ac)](async(_0x2a91ca,_0x1856dc)=>{const _0x7f2208=a2_0x246dba,_0x2b55d4=new WorkflowRunCommand(),_0x1cd15a=program[_0x7f2208(0x2a1)](),_0x58d5c8=await createTDXInstance(_0x1cd15a),_0x1cb8b0=await _0x2b55d4['run']({'options':{..._0x1cd15a,..._0x1856dc},'args':[_0x2a91ca],'tdx':_0x58d5c8});process[_0x7f2208(0x17c)](_0x1cb8b0);}),workflowCmd['command'](a2_0x246dba(0x26a))[a2_0x246dba(0x185)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x246dba(0xf2)]('--revision\x20<revision>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x246dba(0x2ac)](async(_0x585e0f,_0x27a0f3,_0x5271cc)=>{const _0x5ebc2f=a2_0x246dba,_0xabbac5=new WorkflowDownloadCommand(),_0x2c418f=program[_0x5ebc2f(0x2a1)](),_0x514af3=await createTDXInstance(_0x2c418f),_0x185f3a=await _0xabbac5['run']({'options':{..._0x2c418f,..._0x5271cc},'args':[_0x585e0f,_0x27a0f3||'.'],'tdx':_0x514af3});process[_0x5ebc2f(0x17c)](_0x185f3a);}),workflowCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x262))[a2_0x246dba(0x185)](a2_0x246dba(0x2e5))['option'](a2_0x246dba(0xf6),a2_0x246dba(0xe0))[a2_0x246dba(0xf2)](a2_0x246dba(0x1ec),a2_0x246dba(0x1a0))[a2_0x246dba(0xf2)]('--skip-validation','Skip\x20validation\x20of\x20.dig\x20files')[a2_0x246dba(0x2ac)](async(_0x2f7d6c,_0x4ac734)=>{const _0x4a2061=a2_0x246dba,_0x850f76=new WorkflowPushCommand(),_0xdb672c=program['opts'](),_0x2c65d0=await createTDXInstance(_0xdb672c),_0x23f579=await _0x850f76[_0x4a2061(0x1fe)]({'options':{..._0xdb672c,..._0x4ac734},'args':_0x2f7d6c?[_0x2f7d6c]:[],'tdx':_0x2c65d0});process['exit'](_0x23f579);}),workflowCmd['command'](a2_0x246dba(0x13e))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x246dba(0x2ac)](async(_0x39c5e8,_0x402109)=>{const _0x5b076d=a2_0x246dba,_0x36e8a9=new WorkflowDeleteCommand(),_0x36b520=program[_0x5b076d(0x2a1)](),_0x2a7144=await createTDXInstance(_0x36b520),_0xd6d400=await _0x36e8a9[_0x5b076d(0x1fe)]({'options':{..._0x36b520,..._0x402109},'args':[_0x39c5e8],'tdx':_0x2a7144});process[_0x5b076d(0x17c)](_0xd6d400);});const jobCmd=program[a2_0x246dba(0x1a6)](a2_0x246dba(0x11e))[a2_0x246dba(0x185)](a2_0x246dba(0x206)),jobListAction=async _0x46c498=>{const _0x3593f7=a2_0x246dba,_0x292dc7=new JobListCommand(),_0x2ee1c4=program['opts'](),_0x5dc460=await createTDXInstance(_0x2ee1c4),_0x2f57a5=await _0x292dc7[_0x3593f7(0x1fe)]({'options':{..._0x2ee1c4,..._0x46c498},'args':[],'tdx':_0x5dc460});process[_0x3593f7(0x17c)](_0x2f57a5);};jobCmd['command'](a2_0x246dba(0x248))[a2_0x246dba(0x185)]('List\x20jobs')[a2_0x246dba(0xf2)](a2_0x246dba(0x27d),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x246dba(0x2ac)](jobListAction),program['command'](a2_0x246dba(0x216),{'hidden':!![]})[a2_0x246dba(0x185)](a2_0x246dba(0xef))[a2_0x246dba(0xf2)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x246dba(0x2ac)](jobListAction),jobCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x207))[a2_0x246dba(0x185)]('Show\x20job\x20details')[a2_0x246dba(0x2ac)](async(_0x31f3c4,_0x13ec74)=>{const _0x333b86=a2_0x246dba,_0x48cb5f=new JobShowCommand(),_0x3aadc3=program['opts'](),_0xf97d80=await createTDXInstance(_0x3aadc3),_0x234d0d=await _0x48cb5f[_0x333b86(0x1fe)]({'options':{..._0x3aadc3,..._0x13ec74},'args':[_0x31f3c4],'tdx':_0xf97d80});process['exit'](_0x234d0d);}),jobCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1ee))[a2_0x246dba(0x185)](a2_0x246dba(0x28b))['action'](async(_0x509ed6,_0x344a9e)=>{const _0x275713=a2_0x246dba,_0x155ea9=new JobKillCommand(),_0x320d44=program['opts'](),_0x45edfb=await createTDXInstance(_0x320d44),_0x5cff2f=await _0x155ea9['run']({'options':{..._0x320d44,..._0x344a9e},'args':[_0x509ed6],'tdx':_0x45edfb});process[_0x275713(0x17c)](_0x5cff2f);}),jobCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2cb))[a2_0x246dba(0x185)]('Submit\x20a\x20job')[a2_0x246dba(0xf2)]('--job-type\x20<type>',a2_0x246dba(0x17a),'trino')[a2_0x246dba(0xf2)](a2_0x246dba(0x111),a2_0x246dba(0x10b))[a2_0x246dba(0xf2)](a2_0x246dba(0x106),'Database\x20name\x20(default:\x20information_schema)',a2_0x246dba(0x217))[a2_0x246dba(0x2ac)](async(_0x57eacc,_0x53e1b5)=>{const _0x5bf207=a2_0x246dba,_0x1603f0=new JobSubmitCommand(),_0x1dc7e8=program[_0x5bf207(0x2a1)](),_0x13ee0f=await createTDXInstance(_0x1dc7e8),_0x129855=await _0x1603f0[_0x5bf207(0x1fe)]({'options':{..._0x1dc7e8,..._0x53e1b5},'args':_0x57eacc?[_0x57eacc]:[],'tdx':_0x13ee0f});process[_0x5bf207(0x17c)](_0x129855);}),jobCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x194))['description'](a2_0x246dba(0x17b))['action'](async(_0xdf885d,_0x3d62a9)=>{const _0x301fa4=a2_0x246dba,_0x36c01=new JobResultCommand(),_0x317d2e=program['opts'](),_0x38af12=await createTDXInstance(_0x317d2e),_0x22c39c=await _0x36c01[_0x301fa4(0x1fe)]({'options':{..._0x317d2e,..._0x3d62a9},'args':[_0xdf885d],'tdx':_0x38af12});process['exit'](_0x22c39c);});const llmCmd=program[a2_0x246dba(0x1a6)]('llm')[a2_0x246dba(0x185)](a2_0x246dba(0x181));llmCmd['command']('use\x20<project-name>')['description']('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x246dba(0x2ac)](async(_0x394458,_0x46d4ee)=>{const _0x2f1ded=a2_0x246dba,_0x4b62ea=new LLMUseCommand(),_0x5da132=program[_0x2f1ded(0x2a1)](),_0x7e3b70=await createTDXInstance(_0x5da132),_0x4d5c76=await _0x4b62ea[_0x2f1ded(0x1fe)]({'options':{..._0x5da132,..._0x46d4ee},'args':[_0x394458],'tdx':_0x7e3b70});process['exit'](_0x4d5c76);}),llmCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x18f))[a2_0x246dba(0x185)](a2_0x246dba(0x205))['action'](async _0x38d97a=>{const _0x352c3d=a2_0x246dba,_0x322314=new LLMModelsCommand(),_0x25235b=program['opts'](),_0x5c566f=await createTDXInstance(_0x25235b),_0x325441=await _0x322314[_0x352c3d(0x1fe)]({'options':{..._0x25235b,..._0x38d97a},'args':[],'tdx':_0x5c566f});process['exit'](_0x325441);});const projectCmd=llmCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1f3))[a2_0x246dba(0x185)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x1ba53c,_0x515440)=>{const _0x2b22a1=a2_0x246dba,_0x4c2b19=new LLMProjectsCommand(),_0x1c43b4=program[_0x2b22a1(0x2a1)](),_0x13da46=await createTDXInstance(_0x1c43b4),_0x269f09=await _0x4c2b19[_0x2b22a1(0x1fe)]({'options':{..._0x1c43b4,..._0x515440},'args':_0x1ba53c?[_0x1ba53c]:[],'tdx':_0x13da46});process['exit'](_0x269f09);};projectCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e6))[a2_0x246dba(0x185)](a2_0x246dba(0x2a9))[a2_0x246dba(0x2ac)](llmProjectListAction),llmCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1bb))[a2_0x246dba(0x185)](a2_0x246dba(0x192))[a2_0x246dba(0x2ac)](llmProjectListAction),projectCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0xec))[a2_0x246dba(0x185)](a2_0x246dba(0x2ce))['option']('--description\x20<text>',a2_0x246dba(0x1ca))[a2_0x246dba(0x2ac)](async(_0x47c935,_0x290085)=>{const _0x580da0=a2_0x246dba,_0x45eceb=new LLMProjectCreateCommand(),_0x14d6a0=program[_0x580da0(0x2a1)](),_0x4b69f1=await createTDXInstance(_0x14d6a0),_0x33f015=await _0x45eceb[_0x580da0(0x1fe)]({'options':{..._0x14d6a0,..._0x290085},'args':[_0x47c935],'tdx':_0x4b69f1});process[_0x580da0(0x17c)](_0x33f015);}),projectCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0xe7))[a2_0x246dba(0x185)]('Delete\x20an\x20LLM\x20project')['action'](async(_0x43baa3,_0x4f56a3)=>{const _0x479ec8=a2_0x246dba,_0x327cab=new LLMProjectDeleteCommand(),_0x3111ac=program['opts'](),_0x4fa579=await createTDXInstance(_0x3111ac),_0x3ac5a8=await _0x327cab[_0x479ec8(0x1fe)]({'options':{..._0x3111ac,..._0x4f56a3},'args':[_0x43baa3],'tdx':_0x4fa579});process[_0x479ec8(0x17c)](_0x3ac5a8);}),projectCmd[a2_0x246dba(0x1a6)]('backup\x20<name>')['description']('Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder')[a2_0x246dba(0xf2)](a2_0x246dba(0x2db),a2_0x246dba(0x19e))[a2_0x246dba(0xf2)]('--dry-run',a2_0x246dba(0x1b0))[a2_0x246dba(0x2ac)](async(_0x4f2414,_0x52bbb7)=>{const _0x475bc9=a2_0x246dba,_0x912f19=new LLMProjectBackupCommand(),_0x4dff4c=program[_0x475bc9(0x2a1)](),_0x2f1f44=await createTDXInstance(_0x4dff4c),_0x3230d3=await _0x912f19[_0x475bc9(0x1fe)]({'options':{..._0x4dff4c,..._0x52bbb7},'args':[_0x4f2414],'tdx':_0x2f1f44});process[_0x475bc9(0x17c)](_0x3230d3);}),projectCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x23a))[a2_0x246dba(0x185)](a2_0x246dba(0x14b))['option']('--name\x20<new-name>',a2_0x246dba(0x155))['option'](a2_0x246dba(0xf7),a2_0x246dba(0x1f9))[a2_0x246dba(0x2ac)](async(_0x516d91,_0x5665cc)=>{const _0x387cc7=a2_0x246dba,_0x15adcf=new LLMProjectRestoreCommand(),_0x5a2a4a=program[_0x387cc7(0x2a1)](),_0x4ffca1=await createTDXInstance(_0x5a2a4a),_0x1effbb=await _0x15adcf[_0x387cc7(0x1fe)]({'options':{..._0x5a2a4a,..._0x5665cc},'args':[_0x516d91],'tdx':_0x4ffca1});process[_0x387cc7(0x17c)](_0x1effbb);});const agentCmd=llmCmd[a2_0x246dba(0x1a6)]('agent')[a2_0x246dba(0x185)](a2_0x246dba(0x23d)),llmAgentListAction=async(_0x8503dd,_0x199798)=>{const _0x165733=a2_0x246dba,_0x2f7b96=new LLMAgentsCommand(),_0xacb109=program[_0x165733(0x2a1)](),_0x480ade=await createTDXInstance(_0xacb109),_0x550610=await _0x2f7b96['run']({'options':{..._0xacb109,..._0x199798},'args':_0x8503dd?[_0x8503dd]:[],'tdx':_0x480ade});process[_0x165733(0x17c)](_0x550610);};agentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e6))[a2_0x246dba(0x185)](a2_0x246dba(0x147))['action'](llmAgentListAction),llmCmd[a2_0x246dba(0x1a6)]('agents\x20[pattern]')[a2_0x246dba(0x185)](a2_0x246dba(0x23e))['action'](llmAgentListAction),agentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x254))[a2_0x246dba(0x185)]('Show\x20agent\x20details')['action'](async(_0x3bba75,_0x14b3f9)=>{const _0x5e6887=a2_0x246dba,_0xaa83f0=new LLMAgentShowCommand(),_0x19c2ea=program[_0x5e6887(0x2a1)](),_0x34748d=await createTDXInstance(_0x19c2ea),_0x705c3f=await _0xaa83f0[_0x5e6887(0x1fe)]({'options':{..._0x19c2ea,..._0x14b3f9},'args':[_0x3bba75],'tdx':_0x34748d});process[_0x5e6887(0x17c)](_0x705c3f);}),agentCmd[a2_0x246dba(0x1a6)]('create\x20<name>')[a2_0x246dba(0x185)](a2_0x246dba(0x11d))[a2_0x246dba(0xf2)](a2_0x246dba(0x122),a2_0x246dba(0x24e))[a2_0x246dba(0xf2)]('--model\x20<name>',a2_0x246dba(0x298),'claude-4.5-sonnet')[a2_0x246dba(0xf2)]('--starter-message\x20<text>',a2_0x246dba(0x1ff))[a2_0x246dba(0xf2)](a2_0x246dba(0x2ba),a2_0x246dba(0x1c2),'4')[a2_0x246dba(0xf2)]('--temperature\x20<n>',a2_0x246dba(0x177),a2_0x246dba(0x276))[a2_0x246dba(0x2ac)](async(_0x22b1a8,_0x4979ab)=>{const _0x3bba25=a2_0x246dba,_0x54d371=new LLMAgentCreateCommand(),_0x2b6949=program[_0x3bba25(0x2a1)](),_0x12c4e1=await createTDXInstance(_0x2b6949),_0x4c1bea=await _0x54d371['run']({'options':{..._0x2b6949,..._0x4979ab},'args':[_0x22b1a8],'tdx':_0x12c4e1});process[_0x3bba25(0x17c)](_0x4c1bea);}),agentCmd['command'](a2_0x246dba(0x1ad))[a2_0x246dba(0x185)]('Update\x20an\x20existing\x20agent')[a2_0x246dba(0xf2)](a2_0x246dba(0x201),a2_0x246dba(0x271))[a2_0x246dba(0xf2)](a2_0x246dba(0x2aa),a2_0x246dba(0x21a))[a2_0x246dba(0xf2)]('--description\x20<text>',a2_0x246dba(0xe5))[a2_0x246dba(0xf2)](a2_0x246dba(0x2c2),'Starter\x20message')['action'](async(_0x1b3904,_0xdbdecc)=>{const _0x9c83da=a2_0x246dba,_0x24873e=new LLMAgentUpdateCommand(),_0x5c79fe=program[_0x9c83da(0x2a1)](),_0x10896f=await createTDXInstance(_0x5c79fe),_0x452b1e=await _0x24873e[_0x9c83da(0x1fe)]({'options':{..._0x5c79fe,..._0xdbdecc},'args':[_0x1b3904],'tdx':_0x10896f});process[_0x9c83da(0x17c)](_0x452b1e);}),agentCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1ed))[a2_0x246dba(0x185)](a2_0x246dba(0x1fd))[a2_0x246dba(0x2ac)](async(_0x3afcd1,_0x427bc5)=>{const _0x113e4c=a2_0x246dba,_0xf03789=new LLMAgentDeleteCommand(),_0x387016=program[_0x113e4c(0x2a1)](),_0x5378b8=await createTDXInstance(_0x387016),_0x18f2b8=await _0xf03789[_0x113e4c(0x1fe)]({'options':{..._0x387016,..._0x427bc5},'args':[_0x3afcd1],'tdx':_0x5378b8});process[_0x113e4c(0x17c)](_0x18f2b8);}),llmCmd[a2_0x246dba(0x1a6)]('history\x20[chat-id]')['description'](a2_0x246dba(0x238))[a2_0x246dba(0xf2)](a2_0x246dba(0x28c),a2_0x246dba(0x2a4))[a2_0x246dba(0x2ac)](async(_0x5bc2d9,_0x2e6254)=>{const _0x38ab9d=a2_0x246dba,_0x35cf20=new LLMHistoryCommand(),_0x14cc3b=program[_0x38ab9d(0x2a1)](),_0x22e14f=await createTDXInstance(_0x14cc3b),_0x37c05d=await _0x35cf20[_0x38ab9d(0x1fe)]({'options':{..._0x14cc3b,..._0x2e6254},'args':_0x5bc2d9?[_0x5bc2d9]:[],'tdx':_0x22e14f});process['exit'](_0x37c05d);}),llmCmd[a2_0x246dba(0x1a6)]('proxy')[a2_0x246dba(0x185)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x246dba(0xf2)](a2_0x246dba(0x119),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on','4000')[a2_0x246dba(0xf2)](a2_0x246dba(0x13f),a2_0x246dba(0x196))[a2_0x246dba(0xf2)](a2_0x246dba(0x1c9),a2_0x246dba(0x180))['action'](async _0x760da5=>{const _0x3bf947=a2_0x246dba,_0x475b20=new LLMProxyCommand(),_0x32ccad=program[_0x3bf947(0x2a1)](),_0x3a6156=await createTDXInstance(_0x32ccad),_0x44bdbf={..._0x760da5,'port':_0x760da5[_0x3bf947(0x278)]?parseInt(_0x760da5[_0x3bf947(0x278)],0xa):undefined},_0x22b626=await _0x475b20[_0x3bf947(0x1fe)]({'options':{..._0x32ccad,..._0x44bdbf},'args':[],'tdx':_0x3a6156});process[_0x3bf947(0x17c)](_0x22b626);}),program[a2_0x246dba(0x1a6)]('claude\x20[args...]')[a2_0x246dba(0x275)]('[options]\x20--\x20[claude-code-args...]')[a2_0x246dba(0x185)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')['option'](a2_0x246dba(0x20c),a2_0x246dba(0x24d),a2_0x246dba(0x1a5))[a2_0x246dba(0xf2)](a2_0x246dba(0x183),'Continue\x20most\x20recent\x20conversation')[a2_0x246dba(0xf2)](a2_0x246dba(0x2b0),a2_0x246dba(0x1a3))[a2_0x246dba(0xf2)](a2_0x246dba(0x1cc),a2_0x246dba(0x2de))['allowUnknownOption']()['allowExcessArguments'](!![])[a2_0x246dba(0xea)](a2_0x246dba(0xe2),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')['action'](async(_0xfd9406,_0x20a887)=>{const _0x522d45=a2_0x246dba,_0xfc2e00=program[_0x522d45(0x2a1)](),_0x184943=Array[_0x522d45(0x1d5)](_0xfd9406)?_0xfd9406:[];if(_0x184943[0x0]===_0x522d45(0x2c6)){const _0x17d239=new ClaudeStatuslineCommand(),_0x49e2e5=await _0x17d239['run']({'options':{..._0xfc2e00,..._0x20a887},'args':_0x184943['slice'](0x1),'tdx':null});process[_0x522d45(0x17c)](_0x49e2e5);}if(_0x184943[0x0]===_0x522d45(0x275)){const _0x183b16=new ClaudeUsageCommand(),_0xb279f=await _0x183b16[_0x522d45(0x1fe)]({'options':{..._0xfc2e00,..._0x20a887},'args':_0x184943['slice'](0x1),'tdx':null});process[_0x522d45(0x17c)](_0xb279f);}const _0x4e49d9=new ClaudeCommand(),_0x3fb17a=await createTDXInstance(_0xfc2e00),_0x668d43=await _0x4e49d9['run']({'options':{..._0xfc2e00,..._0x20a887},'args':_0x184943,'tdx':_0x3fb17a});process[_0x522d45(0x17c)](_0x668d43);}),program[a2_0x246dba(0x1a6)](a2_0x246dba(0x258))[a2_0x246dba(0x185)](a2_0x246dba(0x145))[a2_0x246dba(0xf2)](a2_0x246dba(0x2e8),a2_0x246dba(0x272))[a2_0x246dba(0x2ac)](async _0x44f9b8=>{const _0x32967c=a2_0x246dba,_0x46cc5f=new ContextCommand(),_0xaa1b71=program[_0x32967c(0x2a1)](),_0x16eaaf=await _0x46cc5f[_0x32967c(0x1fe)]({'options':{..._0xaa1b71,..._0x44f9b8},'args':[],'tdx':null});process[_0x32967c(0x17c)](_0x16eaaf);}),program[a2_0x246dba(0x1a6)](a2_0x246dba(0x186))[a2_0x246dba(0x185)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0x246dba(0xf2)](a2_0x246dba(0x2e8),'Clear\x20session\x20context')[a2_0x246dba(0x2ac)](async(_0x554609,_0x4a7145,_0x9eeba1)=>{const _0x5b2d62=a2_0x246dba,_0x43cb0c=new UseCommand(),_0x320831=program[_0x5b2d62(0x2a1)](),_0x2502c5=[];if(_0x554609)_0x2502c5[_0x5b2d62(0x117)](_0x554609);if(_0x4a7145)_0x2502c5[_0x5b2d62(0x117)](_0x4a7145);const _0x300beb=await _0x43cb0c[_0x5b2d62(0x1fe)]({'options':{..._0x320831,..._0x9eeba1},'args':_0x2502c5,'tdx':null});process['exit'](_0x300beb);}),program[a2_0x246dba(0x1a6)]('chats')[a2_0x246dba(0x185)](a2_0x246dba(0xf0))['option']('--last',a2_0x246dba(0x26b))[a2_0x246dba(0x2ac)](async _0x39f1f1=>{const _0x11869c=a2_0x246dba,_0x58dd42=new ChatsCommand(),_0x12c268=program[_0x11869c(0x2a1)](),_0x39c63=await createTDXInstance(_0x12c268),_0x1b5d64=await _0x58dd42[_0x11869c(0x1fe)]({'options':{..._0x12c268,..._0x39f1f1},'args':[],'tdx':_0x39c63});process['exit'](_0x1b5d64);});const authCmd=program['command'](a2_0x246dba(0x175))[a2_0x246dba(0x185)](a2_0x246dba(0x1c0));async function runAuthStatusCommand(_0x536baa){const _0x3fc3b3=a2_0x246dba,_0x62893=new AuthStatusCommand(),_0x1d2bc5=program['opts'](),_0x510eaa=await createTDXInstance(_0x1d2bc5),_0x507c76=await _0x62893[_0x3fc3b3(0x1fe)]({'options':{..._0x1d2bc5,..._0x536baa},'args':[],'tdx':_0x510eaa});process[_0x3fc3b3(0x17c)](_0x507c76);}authCmd[a2_0x246dba(0x2ac)](runAuthStatusCommand),authCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2bc))[a2_0x246dba(0x185)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x246dba(0x2ac)](runAuthStatusCommand),authCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x21f))['description'](a2_0x246dba(0x13a))['addHelpText'](a2_0x246dba(0xe2),a2_0x246dba(0x234))[a2_0x246dba(0x2ac)](async _0x4ad2ae=>{const _0x180038=a2_0x246dba,_0x85d4a7=new AuthSetupCommand(),_0x99328b=program['opts'](),_0x1219b1=await createTDXInstance(_0x99328b),_0xf2a4b5=await _0x85d4a7['run']({'options':{..._0x99328b,..._0x4ad2ae},'args':[],'tdx':_0x1219b1});process[_0x180038(0x17c)](_0xf2a4b5);}),authCmd[a2_0x246dba(0x1a6)]('clear')[a2_0x246dba(0x185)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x246dba(0xe2),a2_0x246dba(0x27e))[a2_0x246dba(0x2ac)](async _0x3ee88f=>{const _0x2b778d=a2_0x246dba,_0x27c5e3=new AuthClearCommand(),_0x44f61b=program[_0x2b778d(0x2a1)](),_0x5b570b=await _0x27c5e3[_0x2b778d(0x1fe)]({'options':{..._0x44f61b,..._0x3ee88f},'args':[],'tdx':null});process[_0x2b778d(0x17c)](_0x5b570b);});const userCmd=program[a2_0x246dba(0x1a6)](a2_0x246dba(0x21b))[a2_0x246dba(0x185)](a2_0x246dba(0x1fb)),userListAction=async _0x25ae0a=>{const _0x4df849=a2_0x246dba,_0x57943e=new UserListCommand(),_0x34cced=program[_0x4df849(0x2a1)](),_0x413ffd=await createTDXInstance(_0x34cced),_0x2cb573=await _0x57943e[_0x4df849(0x1fe)]({'options':{..._0x34cced,..._0x25ae0a},'args':[],'tdx':_0x413ffd});process[_0x4df849(0x17c)](_0x2cb573);};userCmd[a2_0x246dba(0x2ac)](async _0xdc2ba6=>{const _0x473414=a2_0x246dba,_0x4f80a5=new UserCommand(),_0x29555a=program[_0x473414(0x2a1)](),_0x4ab8de=await createTDXInstance(_0x29555a),_0x8991d2=await _0x4f80a5[_0x473414(0x1fe)]({'options':{..._0x29555a,..._0xdc2ba6},'args':[],'tdx':_0x4ab8de});process['exit'](_0x8991d2);}),userCmd[a2_0x246dba(0x1a6)]('list')[a2_0x246dba(0x185)](a2_0x246dba(0x144))['action'](userListAction),program[a2_0x246dba(0x1a6)](a2_0x246dba(0x214))[a2_0x246dba(0x185)](a2_0x246dba(0x25c))[a2_0x246dba(0x2ac)](userListAction),program[a2_0x246dba(0x1a6)](a2_0x246dba(0x28d))[a2_0x246dba(0x185)](a2_0x246dba(0x22c))[a2_0x246dba(0x2ac)](async _0x5b3d97=>{const _0x4d9589=a2_0x246dba,_0x11926f=new ProfilesCommand(),_0x54273a=program['opts'](),_0x309837=await _0x11926f[_0x4d9589(0x1fe)]({'options':{..._0x54273a,..._0x5b3d97},'args':[],'tdx':null});process['exit'](_0x309837);});const engageCmd=program['command']('engage')[a2_0x246dba(0x185)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x5eda39=>{return async(_0x27c745,_0x3921e1)=>{const _0x11f35b=a2_0x3ca7,_0x58dbfa=new _0x5eda39(),_0x4f1bfd=program[_0x11f35b(0x2a1)](),_0x25264e=await createTDXInstance(_0x4f1bfd),_0xe1a87f=await _0x58dbfa[_0x11f35b(0x1fe)]({'options':{..._0x4f1bfd,..._0x3921e1},'args':[_0x27c745],'tdx':_0x25264e});process[_0x11f35b(0x17c)](_0xe1a87f);};},createEngageNoArgAction=_0x524cfa=>{return async _0x155f00=>{const _0xd27a6b=a2_0x3ca7,_0x2eeffc=new _0x524cfa(),_0x1e3fd9=program[_0xd27a6b(0x2a1)](),_0x56692e=await createTDXInstance(_0x1e3fd9),_0x33815b=await _0x2eeffc[_0xd27a6b(0x1fe)]({'options':{..._0x1e3fd9,..._0x155f00},'args':[],'tdx':_0x56692e});process[_0xd27a6b(0x17c)](_0x33815b);};},campaignCmd=engageCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x148))[a2_0x246dba(0x185)](a2_0x246dba(0x270)),campaignListAction=async(_0x31954f,_0x544d55)=>{const _0x1867a=a2_0x246dba,_0x5ed91a=new EngageCampaignsCommand(),_0xf48557=program[_0x1867a(0x2a1)](),_0x4c3e94=await createTDXInstance(_0xf48557),_0x245a0d=await _0x5ed91a[_0x1867a(0x1fe)]({'options':{..._0xf48557,..._0x544d55},'args':_0x31954f?[_0x31954f]:[],'tdx':_0x4c3e94});process[_0x1867a(0x17c)](_0x245a0d);};campaignCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e6))[a2_0x246dba(0x185)](a2_0x246dba(0x229))[a2_0x246dba(0xf2)](a2_0x246dba(0x24f),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x246dba(0xf2)](a2_0x246dba(0x27d),a2_0x246dba(0x15c))['option'](a2_0x246dba(0x1cd),a2_0x246dba(0x2b1))['action'](campaignListAction),engageCmd[a2_0x246dba(0x1a6)]('campaigns\x20[pattern]')[a2_0x246dba(0x185)](a2_0x246dba(0x157))[a2_0x246dba(0xf2)](a2_0x246dba(0x24f),a2_0x246dba(0xe1))[a2_0x246dba(0xf2)](a2_0x246dba(0x27d),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x246dba(0xf2)](a2_0x246dba(0x1cd),a2_0x246dba(0x2b1))[a2_0x246dba(0x2ac)](campaignListAction),campaignCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x165))['description'](a2_0x246dba(0x2cf))[a2_0x246dba(0xf2)](a2_0x246dba(0x1cd),'Workspace\x20name')['option'](a2_0x246dba(0x232),a2_0x246dba(0x26e))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1de))[a2_0x246dba(0x185)](a2_0x246dba(0x124))[a2_0x246dba(0x279)](a2_0x246dba(0xf6),a2_0x246dba(0x1f0))['requiredOption'](a2_0x246dba(0x24f),a2_0x246dba(0x138))['option']('--workspace\x20<name>',a2_0x246dba(0x1b5))[a2_0x246dba(0xf2)](a2_0x246dba(0x294),a2_0x246dba(0x2ab))[a2_0x246dba(0xf2)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option']('--email-sender-id\x20<id>',a2_0x246dba(0x23b))[a2_0x246dba(0xf2)](a2_0x246dba(0x136),a2_0x246dba(0xf1))[a2_0x246dba(0xf2)]('--start-at\x20<datetime>',a2_0x246dba(0x1a8))[a2_0x246dba(0xf2)](a2_0x246dba(0x120),a2_0x246dba(0x218))[a2_0x246dba(0x2ac)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x246dba(0x103))[a2_0x246dba(0x185)](a2_0x246dba(0x2bf))[a2_0x246dba(0xf2)]('--workspace\x20<name>',a2_0x246dba(0x2b1))['option'](a2_0x246dba(0xf6),'New\x20campaign\x20name')[a2_0x246dba(0xf2)]('--description\x20<desc>',a2_0x246dba(0x2ab))[a2_0x246dba(0xf2)]('--segment\x20<path>',a2_0x246dba(0x154))[a2_0x246dba(0xf2)](a2_0x246dba(0x2d3),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x246dba(0xf2)]('--json-columns\x20<cols>',a2_0x246dba(0xf1))[a2_0x246dba(0xf2)]('--start-at\x20<datetime>',a2_0x246dba(0x1a8))[a2_0x246dba(0xf2)](a2_0x246dba(0x120),a2_0x246dba(0x218))[a2_0x246dba(0x2ac)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x246dba(0x1a6)]('delete\x20<name-or-id>')[a2_0x246dba(0x185)](a2_0x246dba(0xfe))['option'](a2_0x246dba(0x1cd),a2_0x246dba(0x2b1))[a2_0x246dba(0xf2)]('--yes',a2_0x246dba(0x1ab))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x25a))[a2_0x246dba(0x185)](a2_0x246dba(0x239))[a2_0x246dba(0xf2)]('--workspace\x20<name>',a2_0x246dba(0x2b1))[a2_0x246dba(0x2ac)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x246dba(0x1a6)]('pause\x20<name-or-id>')[a2_0x246dba(0x185)]('Pause\x20a\x20campaign')[a2_0x246dba(0xf2)](a2_0x246dba(0x1cd),a2_0x246dba(0x2b1))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x179))[a2_0x246dba(0x185)](a2_0x246dba(0x2b5))[a2_0x246dba(0xf2)]('--workspace\x20<name>',a2_0x246dba(0x2b1))[a2_0x246dba(0x2ac)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x27f))[a2_0x246dba(0x185)]('Duplicate\x20a\x20campaign')[a2_0x246dba(0xf2)](a2_0x246dba(0x1cd),a2_0x246dba(0x2b1))[a2_0x246dba(0x2ac)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x246dba(0x2d5))[a2_0x246dba(0x185)](a2_0x246dba(0x2d9)),templateListAction=async(_0x496195,_0x5beea7)=>{const _0x3091ca=a2_0x246dba,_0x3f1d2c=new EngageTemplatesCommand(),_0x15c5e7=program['opts'](),_0x2ecd65=await createTDXInstance(_0x15c5e7),_0x44739d=await _0x3f1d2c[_0x3091ca(0x1fe)]({'options':{..._0x15c5e7,..._0x5beea7},'args':_0x496195?[_0x496195]:[],'tdx':_0x2ecd65});process[_0x3091ca(0x17c)](_0x44739d);};templateCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e6))[a2_0x246dba(0x185)](a2_0x246dba(0x249))[a2_0x246dba(0xf2)](a2_0x246dba(0x1cd),a2_0x246dba(0x2b1))[a2_0x246dba(0x2ac)](templateListAction),engageCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x125))['description'](a2_0x246dba(0x2d1))[a2_0x246dba(0xf2)](a2_0x246dba(0x1cd),'Workspace\x20name')[a2_0x246dba(0x2ac)](templateListAction),templateCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x165))[a2_0x246dba(0x185)]('Show\x20email\x20template\x20details')[a2_0x246dba(0xf2)](a2_0x246dba(0x1cd),a2_0x246dba(0x2b1))[a2_0x246dba(0xf2)](a2_0x246dba(0x232),a2_0x246dba(0x26e))[a2_0x246dba(0x2ac)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command']('create')[a2_0x246dba(0x185)](a2_0x246dba(0x1a2))['requiredOption'](a2_0x246dba(0xf6),'Template\x20name')[a2_0x246dba(0x279)](a2_0x246dba(0x29d),'Email\x20subject\x20template')[a2_0x246dba(0x279)](a2_0x246dba(0x24b),a2_0x246dba(0x126))['option'](a2_0x246dba(0x1cd),a2_0x246dba(0x1b5))[a2_0x246dba(0xf2)](a2_0x246dba(0x211),'Plaintext\x20template\x20content')[a2_0x246dba(0xf2)](a2_0x246dba(0x17e),'Editor\x20type')[a2_0x246dba(0x2ac)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x103))[a2_0x246dba(0x185)](a2_0x246dba(0x149))['option'](a2_0x246dba(0x1cd),a2_0x246dba(0x2b1))[a2_0x246dba(0xf2)](a2_0x246dba(0xf6),'New\x20template\x20name')[a2_0x246dba(0xf2)]('--subject\x20<subject>','Email\x20subject\x20template')['option'](a2_0x246dba(0x24b),a2_0x246dba(0x126))[a2_0x246dba(0xf2)](a2_0x246dba(0x211),'Plaintext\x20template\x20content')[a2_0x246dba(0x2ac)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x246dba(0x1d2))[a2_0x246dba(0x185)](a2_0x246dba(0x228))[a2_0x246dba(0xf2)](a2_0x246dba(0x1cd),a2_0x246dba(0x2b1))[a2_0x246dba(0xf2)](a2_0x246dba(0xfd),a2_0x246dba(0x1ab))[a2_0x246dba(0x2ac)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x246dba(0x18a))[a2_0x246dba(0x185)](a2_0x246dba(0x242)),workspaceListAction=async(_0x28cabd,_0xf7f6cc)=>{const _0x2a78c0=a2_0x246dba,_0x79d55b=new EngageWorkspacesCommand(),_0x715668=program[_0x2a78c0(0x2a1)](),_0x50b422=await createTDXInstance(_0x715668),_0x4a1fc6=await _0x79d55b[_0x2a78c0(0x1fe)]({'options':{..._0x715668,..._0xf7f6cc},'args':_0x28cabd?[_0x28cabd]:[],'tdx':_0x50b422});process['exit'](_0x4a1fc6);};workspaceCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x2e6))['description'](a2_0x246dba(0x2a3))[a2_0x246dba(0x2ac)](workspaceListAction),engageCmd['command'](a2_0x246dba(0x153))[a2_0x246dba(0x185)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x246dba(0x2ac)](workspaceListAction),workspaceCmd[a2_0x246dba(0x1a6)]('show\x20<name-or-id>')['description'](a2_0x246dba(0x25f))[a2_0x246dba(0xf2)](a2_0x246dba(0x232),a2_0x246dba(0x26e))[a2_0x246dba(0x2ac)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x1de))[a2_0x246dba(0x185)](a2_0x246dba(0x2b6))[a2_0x246dba(0x279)]('--name\x20<name>','Workspace\x20name')[a2_0x246dba(0xf2)](a2_0x246dba(0x294),a2_0x246dba(0x23f))[a2_0x246dba(0x2ac)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x246dba(0x103))['description'](a2_0x246dba(0x12c))['option'](a2_0x246dba(0xf6),'New\x20workspace\x20name')[a2_0x246dba(0xf2)](a2_0x246dba(0x294),a2_0x246dba(0x23f))[a2_0x246dba(0x2ac)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command'](a2_0x246dba(0x1d2))[a2_0x246dba(0x185)](a2_0x246dba(0x1e0))[a2_0x246dba(0xf2)]('--yes',a2_0x246dba(0x1ab))[a2_0x246dba(0x2ac)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x246dba(0x1a6)]('use\x20<name>')[a2_0x246dba(0x185)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x246dba(0x1a6)](a2_0x246dba(0x204))[a2_0x246dba(0x185)](a2_0x246dba(0x2c5)),connectionListAction=async _0x2a1cc8=>{const _0x5edf88=a2_0x246dba,_0x20602a=new ConnectionListCommand(),_0x26e508=program[_0x5edf88(0x2a1)](),_0x128ecb=await createTDXInstance(_0x26e508),_0x37c1e3=await _0x20602a['run']({'options':{..._0x26e508,..._0x2a1cc8},'args':[],'tdx':_0x128ecb});process['exit'](_0x37c1e3);};connectionCmd[a2_0x246dba(0x1a6)](a2_0x246dba(0x248))['description'](a2_0x246dba(0x2d7))[a2_0x246dba(0x2ac)](connectionListAction),program[a2_0x246dba(0x1a6)]('connections',{'hidden':!![]})['description'](a2_0x246dba(0x27b))[a2_0x246dba(0x2ac)](connectionListAction),connectionCmd[a2_0x246dba(0x1a6)]('show\x20<name>')[a2_0x246dba(0x185)]('Show\x20connection\x20details\x20by\x20name')[a2_0x246dba(0x2ac)](async(_0x38dbf8,_0x26d9da)=>{const _0x479f19=a2_0x246dba,_0x1165d7=new ConnectionShowCommand(),_0x589dce=program['opts'](),_0x484972=await createTDXInstance(_0x589dce),_0xf1c7d6=await _0x1165d7[_0x479f19(0x1fe)]({'options':{..._0x589dce,..._0x26d9da},'args':[_0x38dbf8],'tdx':_0x484972});process[_0x479f19(0x17c)](_0xf1c7d6);});export{program};export function runCLI(){const _0x2872b0=a2_0x246dba;program['parse'](process[_0x2872b0(0x1a7)]);!process[_0x2872b0(0x1a7)]['slice'](0x2)[_0x2872b0(0x1b2)]&&program[_0x2872b0(0x215)]();const _0x3e648b=packageJson[_0x2872b0(0x19d)];process[_0x2872b0(0x1bc)]['isTTY']&&process[_0x2872b0(0x1a7)][_0x2872b0(0x1b2)]>0x2&&!_0x3e648b[_0x2872b0(0x260)](_0x2872b0(0x159))&&checkForUpdate(_0x3e648b)[_0x2872b0(0x2c0)](_0x41a4cf=>{_0x41a4cf&&displayUpdateNotification(_0x41a4cf);})['catch'](()=>{});}
|