@treasuredata/tdx 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +2 -2
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/client/cdp-api-client.js +1 -1
- package/dist/client/engage-api-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-api-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-api-client.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.d.ts.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.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.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.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-config.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/tree-formatter.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(
|
|
2
|
+
function a0_0x35bd(_0x29c0b2,_0x257bf6){_0x29c0b2=_0x29c0b2-0x13a;var _0x766dc0=a0_0x766d();var _0x35bd11=_0x766dc0[_0x29c0b2];return _0x35bd11;}(function(_0x370fa3,_0x38976d){var _0x331076=a0_0x35bd,_0x23cc0c=_0x370fa3();while(!![]){try{var _0x4466ce=parseInt(_0x331076(0x13d))/0x1*(parseInt(_0x331076(0x142))/0x2)+-parseInt(_0x331076(0x13b))/0x3+parseInt(_0x331076(0x13c))/0x4*(parseInt(_0x331076(0x13f))/0x5)+parseInt(_0x331076(0x13a))/0x6+parseInt(_0x331076(0x13e))/0x7+-parseInt(_0x331076(0x140))/0x8+-parseInt(_0x331076(0x141))/0x9;if(_0x4466ce===_0x38976d)break;else _0x23cc0c['push'](_0x23cc0c['shift']());}catch(_0x1c6e79){_0x23cc0c['push'](_0x23cc0c['shift']());}}}(a0_0x766d,0x36bfe));import{runCLI}from'./cli.js';function a0_0x766d(){var _0x370073=['5253597FMmBeq','13666WICYWU','1677174HMjSPA','572244yikQCO','824ycmvkl','11ymeOBB','2822372piWSuf','6635rFANOH','260120UgzaJH'];a0_0x766d=function(){return _0x370073;};return a0_0x766d();}runCLI();
|
package/dist/build-info.json
CHANGED
package/dist/cli-categories.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x459716=a1_0x3d88;(function(_0x26e04b,_0x33bcd9){const _0x53ab56=a1_0x3d88,_0x329866=_0x26e04b();while(!![]){try{const _0xf20deb=parseInt(_0x53ab56(0x17b))/0x1+parseInt(_0x53ab56(0x161))/0x2*(-parseInt(_0x53ab56(0x177))/0x3)+parseInt(_0x53ab56(0x17d))/0x4*(-parseInt(_0x53ab56(0x166))/0x5)+parseInt(_0x53ab56(0x165))/0x6*(-parseInt(_0x53ab56(0x175))/0x7)+parseInt(_0x53ab56(0x16b))/0x8*(parseInt(_0x53ab56(0x16e))/0x9)+parseInt(_0x53ab56(0x174))/0xa*(parseInt(_0x53ab56(0x162))/0xb)+parseInt(_0x53ab56(0x163))/0xc;if(_0xf20deb===_0x33bcd9)break;else _0x329866['push'](_0x329866['shift']());}catch(_0x4b408a){_0x329866['push'](_0x329866['shift']());}}}(a1_0x3f36,0x53248));import a1_0x214762 from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x459716(0x17e),'colorFn':a1_0x214762[a1_0x459716(0x16d)],'commands':['database','table',a1_0x459716(0x169),'describe',a1_0x459716(0x173),'job',a1_0x459716(0x179)]},{'name':'CDP','colorFn':a1_0x214762[a1_0x459716(0x16c)],'commands':[a1_0x459716(0x167),a1_0x459716(0x170),a1_0x459716(0x17c),a1_0x459716(0x16a),'engage',a1_0x459716(0x160)]},{'name':'AI','colorFn':a1_0x214762[a1_0x459716(0x172)],'commands':[a1_0x459716(0x164),a1_0x459716(0x180),'llm',a1_0x459716(0x168)]},{'name':a1_0x459716(0x16f),'colorFn':a1_0x214762['yellow'],'commands':['context',a1_0x459716(0x17f),a1_0x459716(0x176),'auth',a1_0x459716(0x178),a1_0x459716(0x17a)]},{'name':a1_0x459716(0x171),'colorFn':a1_0x214762['green'],'commands':['api']}];function a1_0x3d88(_0x260eee,_0x5b50dc){_0x260eee=_0x260eee-0x160;const _0x3f3606=a1_0x3f36();let _0x3d8846=_0x3f3606[_0x260eee];return _0x3d8846;}function a1_0x3f36(){const _0x1dec4b=['21415cMjKkw','segment','claude','show','activations','274088JblYbs','magenta','blue','126Lwrobl','Context','parent-segment','Utilities','cyan','query','3971810vCxkqF','14cypWhW','profiles','582NQhQRy','user','workflow','users','595438mbnfKu','journey','196EAVZnv','Data','use','chats','connection','6570FfqYpt','11iMcCQH','2674296xOVjOQ','chat','1522266frjFfm'];a1_0x3f36=function(){return _0x1dec4b;};return a1_0x3f36();}
|
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x2c6ba3=a2_0x5e18;(function(_0x1b3284,_0x2320cc){const _0x268266=a2_0x5e18,_0x25c454=_0x1b3284();while(!![]){try{const _0x41d010=-parseInt(_0x268266(0x7f))/0x1*(parseInt(_0x268266(0x282))/0x2)+-parseInt(_0x268266(0x22b))/0x3+-parseInt(_0x268266(0x13e))/0x4*(-parseInt(_0x268266(0x286))/0x5)+-parseInt(_0x268266(0xed))/0x6*(-parseInt(_0x268266(0x1e9))/0x7)+-parseInt(_0x268266(0x194))/0x8*(-parseInt(_0x268266(0x211))/0x9)+-parseInt(_0x268266(0x23f))/0xa+-parseInt(_0x268266(0xfc))/0xb;if(_0x41d010===_0x2320cc)break;else _0x25c454['push'](_0x25c454['shift']());}catch(_0x5d53be){_0x25c454['push'](_0x25c454['shift']());}}}(a2_0x1409,0x6f929));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{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';function a2_0x5e18(_0x1511ca,_0x3f926c){_0x1511ca=_0x1511ca-0x7b;const _0x14091a=a2_0x1409();let _0x5e188c=_0x14091a[_0x1511ca];return _0x5e188c;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x2c6ba3(0x299)](readFileSync(join(__dirname,'../package.json'),'utf-8'));let buildInfo={};try{buildInfo=JSON['parse'](readFileSync(join(__dirname,a2_0x2c6ba3(0x102)),a2_0x2c6ba3(0x276)));}catch{}if(process['argv'][a2_0x2c6ba3(0x15c)](a2_0x2c6ba3(0xf2))){let versionOutput=a2_0x2c6ba3(0x11d)+packageJson[a2_0x2c6ba3(0x221)];buildInfo[a2_0x2c6ba3(0x20e)]&&(versionOutput+='\x20('+buildInfo[a2_0x2c6ba3(0x20e)]+')'),buildInfo[a2_0x2c6ba3(0x144)]&&(versionOutput+=a2_0x2c6ba3(0x257)+buildInfo[a2_0x2c6ba3(0x144)]),console[a2_0x2c6ba3(0x1b2)](versionOutput),process[a2_0x2c6ba3(0x298)](0x0);}const program=new Command();let description=a2_0x2c6ba3(0x278);buildInfo[a2_0x2c6ba3(0x20e)]?description+=a2_0x2c6ba3(0xbb)+packageJson[a2_0x2c6ba3(0x221)]+'\x20('+buildInfo[a2_0x2c6ba3(0x20e)]+')':description+=a2_0x2c6ba3(0xbb)+packageJson[a2_0x2c6ba3(0x221)];program[a2_0x2c6ba3(0x1c4)](a2_0x2c6ba3(0x1ab))[a2_0x2c6ba3(0x1b4)](description),program[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x7d),a2_0x2c6ba3(0x12a))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xfa),a2_0x2c6ba3(0x161),a2_0x2c6ba3(0x136))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x181),a2_0x2c6ba3(0x12f))['option'](a2_0x2c6ba3(0x93),a2_0x2c6ba3(0x19f))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x244),a2_0x2c6ba3(0x274))['option'](a2_0x2c6ba3(0x275),a2_0x2c6ba3(0xac))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x196),a2_0x2c6ba3(0x90))[a2_0x2c6ba3(0x176)]('--output\x20<file>',a2_0x2c6ba3(0x130))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1f7),a2_0x2c6ba3(0x190))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x107),a2_0x2c6ba3(0x254),![])[a2_0x2c6ba3(0x176)]('--no-color','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x2c6ba3(0x176)]('-v,\x20--verbose',a2_0x2c6ba3(0x11a),![])[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xe9),a2_0x2c6ba3(0xb0))['option'](a2_0x2c6ba3(0xe2),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x2c6ba3(0x176)]('--timeout\x20<seconds>',a2_0x2c6ba3(0x10b),'30')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x109),'Preview\x20operation\x20without\x20executing',![])['option']('-y,\x20--yes','Skip\x20confirmation\x20prompts',![])[a2_0x2c6ba3(0x176)]('--session\x20<id>',a2_0x2c6ba3(0x1ec))[a2_0x2c6ba3(0x176)]('-d,\x20--database\x20<name>',a2_0x2c6ba3(0x1ce))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1dd),a2_0x2c6ba3(0x17a))[a2_0x2c6ba3(0x176)]('--parent-segment\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1b0),a2_0x2c6ba3(0x140)),program[a2_0x2c6ba3(0x20d)]({'formatHelp':(_0xdeea47,_0x20ddf3)=>{const _0x2ff7dc=a2_0x2c6ba3,_0x126df8=_0x20ddf3[_0x2ff7dc(0xb6)](_0xdeea47,_0x20ddf3),_0x4efccc=0x2,_0x47a455=0x2;function _0x1005f8(_0x996a41){const _0x44c1eb=_0x2ff7dc,_0x2514ea=_0x996a41;return!!(_0x2514ea[_0x44c1eb(0x8e)]||_0x2514ea[_0x44c1eb(0xf5)]);}function _0x3c617b(_0x55af49,_0x344bdd){const _0x262646=_0x2ff7dc;if(_0x344bdd){const _0x44009f=''+_0x55af49[_0x262646(0x1ad)](_0x126df8+_0x47a455)+_0x344bdd;return _0x44009f;}return _0x55af49;}function _0x5708da(_0x10167c){const _0x124a8b=_0x2ff7dc;return _0x10167c[_0x124a8b(0x27f)]('\x0a')['replace'](/^/gm,'\x20'[_0x124a8b(0x1e6)](_0x4efccc));}const _0x440ad5=[];_0x440ad5[_0x2ff7dc(0x7b)](_0x2ff7dc(0x209)+_0x20ddf3[_0x2ff7dc(0xbe)](_0xdeea47));const _0x5ea7f6=_0x20ddf3['commandDescription'](_0xdeea47);_0x5ea7f6&&(_0x440ad5[_0x2ff7dc(0x7b)](''),_0x440ad5['push'](_0x5ea7f6));const _0xb7e3bb=_0xdeea47['commands'][_0x2ff7dc(0x1b7)](_0x4803f7=>!_0x1005f8(_0x4803f7));if(_0xb7e3bb[_0x2ff7dc(0xab)]>0x0){if(_0xdeea47[_0x2ff7dc(0x1c4)]()===_0x2ff7dc(0x1ab)){const _0x5156a8=_0xdeea47[_0x2ff7dc(0x23a)](),_0x1b3a91=!_0x5156a8[_0x2ff7dc(0x25e)]&&process[_0x2ff7dc(0x10a)][_0x2ff7dc(0xdb)],_0x2d0b1f=COMMAND_CATEGORIES,_0x10ea6f=(_0x128edf,_0x5a59a2)=>_0x1b3a91?_0x5a59a2(_0x128edf):_0x128edf,_0x403373=new Map();_0xb7e3bb['forEach'](_0xd6cd60=>{const _0x9e88d8=_0x2ff7dc;_0x403373['set'](_0xd6cd60[_0x9e88d8(0x1c4)](),_0xd6cd60);}),_0x2d0b1f[_0x2ff7dc(0x24e)](_0x1f05ea=>{const _0x1e7b60=_0x2ff7dc,_0x2dfd17=_0x1f05ea[_0x1e7b60(0x1a3)][_0x1e7b60(0x271)](_0xb869eb=>_0x403373['get'](_0xb869eb)??[]);if(_0x2dfd17['length']>0x0){_0x440ad5[_0x1e7b60(0x7b)](''),_0x440ad5[_0x1e7b60(0x7b)](_0x10ea6f(_0x1f05ea[_0x1e7b60(0x1c4)]+':',_0x1f05ea['colorFn']));const _0x588597=_0x2dfd17[_0x1e7b60(0x1aa)](_0x2fab91=>{const _0x261f75=_0x1e7b60,_0x33f22d=_0x20ddf3[_0x261f75(0x98)](_0x2fab91),_0x4bd865=_0x20ddf3['subcommandDescription'](_0x2fab91);return _0x3c617b(_0x33f22d,_0x4bd865);});_0x440ad5['push'](_0x5708da(_0x588597));}}),_0x440ad5[_0x2ff7dc(0x7b)](''),_0x440ad5['push'](_0x2ff7dc(0xe5));}else{const _0x338146=_0xb7e3bb[_0x2ff7dc(0x1aa)](_0x13c5a0=>{const _0x969230=_0x2ff7dc,_0x3e7e90=_0x20ddf3['subcommandTerm'](_0x13c5a0),_0x58bffd=_0x20ddf3[_0x969230(0x175)](_0x13c5a0);return _0x3c617b(_0x3e7e90,_0x58bffd);});_0x440ad5[_0x2ff7dc(0x7b)](''),_0x440ad5[_0x2ff7dc(0x7b)](_0x2ff7dc(0x113)),_0x440ad5[_0x2ff7dc(0x7b)](_0x5708da(_0x338146));}}const _0x4d0b72=_0xdeea47[_0x2ff7dc(0x291)][_0x2ff7dc(0x1b7)](_0x563bd3=>!_0x1005f8(_0x563bd3));if(_0x4d0b72[_0x2ff7dc(0xab)]>0x0){const _0x5922c6=_0x4d0b72['map'](_0x46f936=>{const _0x204481=_0x2ff7dc,_0x480e7d=_0x20ddf3['optionTerm'](_0x46f936),_0x152e01=_0x20ddf3[_0x204481(0x208)](_0x46f936);return _0x3c617b(_0x480e7d,_0x152e01);});_0x440ad5['push'](''),_0x440ad5[_0x2ff7dc(0x7b)](_0x2ff7dc(0x1a7)),_0x440ad5[_0x2ff7dc(0x7b)](_0x5708da(_0x5922c6));}const _0x4a5455=(_0xdeea47[_0x2ff7dc(0x214)]||[])[_0x2ff7dc(0x1b7)](_0x5380e0=>!_0x1005f8(_0x5380e0));if(_0x4a5455[_0x2ff7dc(0xab)]>0x0){const _0x3a2cb2=_0x4a5455['map'](_0x1fe153=>{const _0x4ab216=_0x2ff7dc,_0x2669af=_0x20ddf3[_0x4ab216(0xb5)](_0x1fe153),_0x55d574=_0x20ddf3[_0x4ab216(0x18f)](_0x1fe153);return _0x3c617b(_0x2669af,_0x55d574);});_0x440ad5[_0x2ff7dc(0x7b)](''),_0x440ad5[_0x2ff7dc(0x7b)]('Arguments:'),_0x440ad5[_0x2ff7dc(0x7b)](_0x5708da(_0x3a2cb2));}return _0x440ad5[_0x2ff7dc(0x27f)]('\x0a');},'subcommandTerm':_0x60a5a0=>{const _0x355a56=a2_0x2c6ba3,_0x480cdb=(_0x60a5a0[_0x355a56(0x214)]||[])[_0x355a56(0x1aa)](_0x5973ab=>_0x5973ab[_0x355a56(0xc9)]?'<'+_0x5973ab[_0x355a56(0x1c4)]()+'>':'['+_0x5973ab[_0x355a56(0x1c4)]()+']')[_0x355a56(0x27f)]('\x20'),_0x18c424=_0x60a5a0['aliases'](),_0x672318=_0x18c424['length']>0x0?_0x60a5a0['name']()+',\x20'+_0x18c424[_0x355a56(0x27f)](',\x20'):_0x60a5a0[_0x355a56(0x1c4)]();return _0x480cdb?_0x672318+'\x20'+_0x480cdb:_0x672318;}}),program['hook']('preAction',_0x4720ef=>{const _0x3a23cb=a2_0x2c6ba3,_0x58579c=_0x4720ef[_0x3a23cb(0x23a)]();if(!_0x58579c[_0x3a23cb(0x1dc)]){if(_0x58579c[_0x3a23cb(0x215)])_0x58579c[_0x3a23cb(0x1dc)]='table';else{if(_0x58579c[_0x3a23cb(0x1a5)])_0x58579c[_0x3a23cb(0x1dc)]=_0x3a23cb(0x1a5);else{if(_0x58579c[_0x3a23cb(0x273)])_0x58579c[_0x3a23cb(0x1dc)]=_0x3a23cb(0x273);else _0x58579c[_0x3a23cb(0x182)]&&(_0x58579c[_0x3a23cb(0x1dc)]=_0x3a23cb(0x182));}}}_0x58579c['in']&&!_0x58579c[_0x3a23cb(0x189)]&&(_0x58579c['database']=_0x58579c['in']);if(_0x58579c['trace'])_0x58579c[_0x3a23cb(0x16e)]=LogLevel[_0x3a23cb(0x25f)];else{if(_0x58579c[_0x3a23cb(0x125)])_0x58579c[_0x3a23cb(0x16e)]=LogLevel[_0x3a23cb(0x288)];else _0x58579c[_0x3a23cb(0x16e)]===undefined&&(_0x58579c['logLevel']=LogLevel[_0x3a23cb(0x239)]);}});async function createTDXInstance(_0x296ec1){const _0x2df5df=a2_0x2c6ba3,_0x47e12d=await GlobalContext[_0x2df5df(0x10e)](_0x296ec1);return _0x47e12d[_0x2df5df(0x112)](_0x296ec1),TDX[_0x2df5df(0x19d)]({'site':_0x47e12d[_0x2df5df(0x128)],'apiKey':_0x47e12d['apiKey'],'logLevel':_0x47e12d[_0x2df5df(0x16e)],'profile':_0x47e12d[_0x2df5df(0x293)]});}const databaseCmd=program['command'](a2_0x2c6ba3(0x189))[a2_0x2c6ba3(0x1bd)]('db')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x16f)),databaseListAction=async(_0xc1abb6,_0x1fb455)=>{const _0x1c1256=a2_0x2c6ba3,_0x23b71e=new DatabasesCommand(),_0x2cbd9c=program['opts'](),_0x47e13d=await createTDXInstance(_0x2cbd9c),_0x2c5e9b=await _0x23b71e[_0x1c1256(0x152)]({'options':{..._0x2cbd9c,..._0x1fb455},'args':_0xc1abb6?[_0xc1abb6]:[],'tdx':_0x47e13d});process[_0x1c1256(0x298)](_0x2c5e9b);};databaseCmd['command'](a2_0x2c6ba3(0x268))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1b5))[a2_0x2c6ba3(0x14d)](databaseListAction),program['command'](a2_0x2c6ba3(0x22e),{'hidden':!![]})[a2_0x2c6ba3(0x1b4)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x2c6ba3(0x14d)](databaseListAction),program['command'](a2_0x2c6ba3(0x10f))['description']('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')['option'](a2_0x2c6ba3(0x226),a2_0x2c6ba3(0x200))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xcb),a2_0x2c6ba3(0x217))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x137),a2_0x2c6ba3(0xe1))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x184),'Start\x20a\x20new\x20chat\x20session')['action'](async(_0x462fc4,_0x21b074)=>{const _0x1f9fc9=a2_0x2c6ba3,_0x2bd7f3=new ChatCommand(),_0x55c82e=program[_0x1f9fc9(0x23a)](),_0x143ad2=await createTDXInstance(_0x55c82e),_0x2fe2cf=await _0x2bd7f3[_0x1f9fc9(0x152)]({'options':{..._0x55c82e,..._0x21b074},'args':_0x462fc4,'tdx':_0x143ad2});process['exit'](_0x2fe2cf);});const apiCmd=program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x111))['summary']('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x2c6ba3(0x204)](a2_0x2c6ba3(0xea),a2_0x2c6ba3(0x157))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x101),a2_0x2c6ba3(0x19a),a2_0x2c6ba3(0x10c))[a2_0x2c6ba3(0x176)]('--data\x20<data>','Request\x20body\x20as\x20JSON\x20string')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x153),'Read\x20request\x20body\x20from\x20file')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x187),a2_0x2c6ba3(0x131),(_0x4e263a,_0x587a13)=>{return _0x587a13?[..._0x587a13,_0x4e263a]:[_0x4e263a];})[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x149),a2_0x2c6ba3(0x1c9),'td')[a2_0x2c6ba3(0x14d)](async(_0x5a5c03,_0x4252b6)=>{const _0x2e6cc3=a2_0x2c6ba3;if(!_0x5a5c03){apiCmd[_0x2e6cc3(0xd3)]();return;}const _0x4bba69=new ApiCommand(),_0xec5748=program[_0x2e6cc3(0x23a)](),_0x56150d=await createTDXInstance(_0xec5748),_0x5685f1=await _0x4bba69[_0x2e6cc3(0x152)]({'options':{..._0xec5748,..._0x4252b6},'args':[_0x5a5c03],'tdx':_0x56150d});process[_0x2e6cc3(0x298)](_0x5685f1);}),tableCmd=program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x215))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x13d)),tableListAction=async(_0x33b19b,_0x47dfc6)=>{const _0x2c3ecd=a2_0x2c6ba3,_0x247eb7=new TablesCommand(),_0x6de44a=program['opts'](),_0x441e40=await createTDXInstance(_0x6de44a);_0x47dfc6['in']&&(_0x47dfc6['database']=_0x47dfc6['in']);const _0x480808=await _0x247eb7[_0x2c3ecd(0x152)]({'options':{..._0x6de44a,..._0x47dfc6},'args':_0x33b19b?[_0x33b19b]:[],'tdx':_0x441e40});process['exit'](_0x480808);};tableCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x268))['description'](a2_0x2c6ba3(0xc0))[a2_0x2c6ba3(0x176)]('-d,\x20--database\x20<database>',a2_0x2c6ba3(0x20f))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa4),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x2c6ba3(0x14d)](tableListAction),program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x156),{'hidden':!![]})[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x227))[a2_0x2c6ba3(0x176)]('-d,\x20--database\x20<database>',a2_0x2c6ba3(0x20f))[a2_0x2c6ba3(0x176)]('--in\x20<database>',a2_0x2c6ba3(0x17a))[a2_0x2c6ba3(0x14d)](tableListAction),program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xe6))[a2_0x2c6ba3(0x1b4)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xf0),a2_0x2c6ba3(0x8a))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa4),a2_0x2c6ba3(0x17a))[a2_0x2c6ba3(0x14d)](async(_0x556da1,_0x531529)=>{const _0x5ebd93=a2_0x2c6ba3,_0x30cd27=new ShowCommand(),_0x294cd3=program[_0x5ebd93(0x23a)](),_0x18a51b=await createTDXInstance(_0x294cd3);_0x531529['in']&&(_0x531529[_0x5ebd93(0x189)]=_0x531529['in']);const _0x56eeef=await _0x30cd27[_0x5ebd93(0x152)]({'options':{..._0x294cd3,..._0x531529},'args':_0x556da1?[_0x556da1]:[],'tdx':_0x18a51b});process[_0x5ebd93(0x298)](_0x56eeef);}),program[a2_0x2c6ba3(0x25d)]('describe\x20[table]')[a2_0x2c6ba3(0x1bd)]('desc')[a2_0x2c6ba3(0x1b4)]('Describe\x20table\x20schema')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xf0),a2_0x2c6ba3(0x8a))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa4),a2_0x2c6ba3(0x17a))[a2_0x2c6ba3(0x14d)](async(_0x50ab1e,_0x581ef7)=>{const _0x46bc89=a2_0x2c6ba3,_0x532e80=new DescribeCommand(),_0x1e8f4f=program['opts'](),_0x3bde3e=await createTDXInstance(_0x1e8f4f);_0x581ef7['in']&&(_0x581ef7[_0x46bc89(0x189)]=_0x581ef7['in']);const _0x4413db=await _0x532e80[_0x46bc89(0x152)]({'options':{..._0x1e8f4f,..._0x581ef7},'args':_0x50ab1e?[_0x50ab1e]:[],'tdx':_0x3bde3e});process[_0x46bc89(0x298)](_0x4413db);}),program['command'](a2_0x2c6ba3(0x235))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x171))['option']('-d,\x20--database\x20<database>',a2_0x2c6ba3(0x233))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa4),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x26f),a2_0x2c6ba3(0x24f))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x153),a2_0x2c6ba3(0x28f))[a2_0x2c6ba3(0x176)]('--limit\x20<rows>',a2_0x2c6ba3(0xa8),'40')[a2_0x2c6ba3(0x14d)](async(_0xe777d2,_0x47eb67)=>{const _0x94e117=a2_0x2c6ba3,_0x39e914=new QueryCommand(),_0x2e6a57=program[_0x94e117(0x23a)](),_0x625031=await createTDXInstance(_0x2e6a57);_0x47eb67['in']&&(_0x47eb67['database']=_0x47eb67['in']);const _0x29687c=await _0x39e914['run']({'options':{..._0x2e6a57,..._0x47eb67},'args':_0xe777d2?[_0xe777d2]:[],'tdx':_0x625031});process[_0x94e117(0x298)](_0x29687c);});const segmentCmd=program['command'](a2_0x2c6ba3(0x1ba))['alias']('sg')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1c5)),segmentListAction=async(_0x358e3c,_0x5c05d8)=>{const _0x2512ca=a2_0x2c6ba3,_0x5a0776=new SegmentsCommand(),_0x4609c6=program[_0x2512ca(0x23a)](),_0x42483b=await createTDXInstance(_0x4609c6),_0x474bbb=await _0x5a0776[_0x2512ca(0x152)]({'options':{..._0x4609c6,..._0x5c05d8},'args':_0x358e3c?[_0x358e3c]:[],'tdx':_0x42483b});process[_0x2512ca(0x298)](_0x474bbb);};segmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x172))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x195))[a2_0x2c6ba3(0x176)]('-r,\x20--recursive',a2_0x2c6ba3(0x280))[a2_0x2c6ba3(0x176)]('--max-depth\x20<depth>',a2_0x2c6ba3(0x284),'10')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1ae),'Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x2c6ba3(0x14d)](segmentListAction),program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1d6),{'hidden':!![]})[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x18a))['option'](a2_0x2c6ba3(0x23e),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x242),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x2c6ba3(0x176)]('-w,\x20--web',a2_0x2c6ba3(0x87))[a2_0x2c6ba3(0x14d)](segmentListAction),segmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x17d),{'hidden':!![]})['description'](a2_0x2c6ba3(0xc1))[a2_0x2c6ba3(0x14d)](async(_0x4ef379,_0x59d15f)=>{const _0x2f720c=a2_0x2c6ba3,_0x420529=new SegmentUseCommand(),_0x53a878=program[_0x2f720c(0x23a)](),_0x55915d=await createTDXInstance(_0x53a878),_0x2987d2=await _0x420529[_0x2f720c(0x152)]({'options':{..._0x53a878,..._0x59d15f},'args':[_0x4ef379],'tdx':_0x55915d});process[_0x2f720c(0x298)](_0x2987d2);});const segmentViewAction=async(_0x3d65e0,_0x14738c)=>{const _0x49cce6=a2_0x2c6ba3,_0x137472=new SegmentViewCommand(),_0x1a1f2b=program[_0x49cce6(0x23a)](),_0x56c145=await createTDXInstance(_0x1a1f2b),_0x2eebdd=await _0x137472['run']({'options':{..._0x1a1f2b,..._0x14738c},'args':_0x3d65e0?[_0x3d65e0]:[],'tdx':_0x56c145});process[_0x49cce6(0x298)](_0x2eebdd);};segmentCmd[a2_0x2c6ba3(0x25d)]('view\x20[segment_name]')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1ff))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1ae),a2_0x2c6ba3(0xe3))[a2_0x2c6ba3(0x14d)](segmentViewAction),segmentCmd['command'](a2_0x2c6ba3(0x183),{'hidden':!![]})[a2_0x2c6ba3(0x1bd)](a2_0x2c6ba3(0x27b))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1ae),a2_0x2c6ba3(0xe3))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x23d))[a2_0x2c6ba3(0x14d)](segmentViewAction),segmentCmd['command'](a2_0x2c6ba3(0x1d4))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1b8))[a2_0x2c6ba3(0x14d)](async(_0x1e2a01,_0x196979)=>{const _0x299843=a2_0x2c6ba3,_0xc33ee3=new SegmentDescCommand(),_0x48675d=program[_0x299843(0x23a)](),_0xc6f4d1=await createTDXInstance(_0x48675d),_0x237709=await _0xc33ee3[_0x299843(0x152)]({'options':{..._0x48675d,..._0x196979},'args':_0x1e2a01?[_0x1e2a01]:[],'tdx':_0xc6f4d1});process['exit'](_0x237709);}),segmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xdf))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x252))[a2_0x2c6ba3(0x14d)](async(_0x597aff,_0x232b2a)=>{const _0x4c653f=a2_0x2c6ba3,_0x361e66=new SegmentShowCommand(),_0x119cfd=program[_0x4c653f(0x23a)](),_0x1aa86e=await createTDXInstance(_0x119cfd),_0x234948=await _0x361e66[_0x4c653f(0x152)]({'options':{..._0x119cfd,..._0x232b2a},'args':_0x597aff?[_0x597aff]:[],'tdx':_0x1aa86e});process[_0x4c653f(0x298)](_0x234948);}),segmentCmd[a2_0x2c6ba3(0x25d)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1bb))[a2_0x2c6ba3(0x14d)](async(_0xfaac96,_0x2b3c53)=>{const _0x5d8b73=a2_0x2c6ba3,_0x407984=new SegmentFolderListCommand(),_0x397b0a=program[_0x5d8b73(0x23a)](),_0x3c5ef2=await createTDXInstance(_0x397b0a),_0x45cf72=await _0x407984['run']({'options':{..._0x397b0a,..._0x2b3c53},'args':[_0xfaac96],'tdx':_0x3c5ef2});process[_0x5d8b73(0x298)](_0x45cf72);});const folderCmd=segmentCmd['command'](a2_0x2c6ba3(0xf6),{'hidden':!![]})['description'](a2_0x2c6ba3(0xc6));folderCmd['command'](a2_0x2c6ba3(0x21d))['description'](a2_0x2c6ba3(0x219))[a2_0x2c6ba3(0x14d)](async(_0x1fc6da,_0x4d2dc6)=>{const _0x33e262=a2_0x2c6ba3,_0x544e2b=new SegmentFolderShowCommand(),_0x2c8aac=program['opts'](),_0x50328b=await createTDXInstance(_0x2c8aac),_0x3aa79e=await _0x544e2b[_0x33e262(0x152)]({'options':{..._0x2c8aac,..._0x4d2dc6},'args':[_0x1fc6da],'tdx':_0x50328b});process[_0x33e262(0x298)](_0x3aa79e);}),segmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x264))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x23b))[a2_0x2c6ba3(0x14d)](async(_0x23ec04,_0x3db257)=>{const _0x5d52cc=a2_0x2c6ba3,_0x3b735b=new SegmentSQLCommand(),_0x2481af=program[_0x5d52cc(0x23a)](),_0x3afbc4=await createTDXInstance(_0x2481af),_0x1b7db4=await _0x3b735b['run']({'options':{..._0x2481af,..._0x3db257},'args':_0x23ec04?[_0x23ec04]:[],'tdx':_0x3afbc4});process[_0x5d52cc(0x298)](_0x1b7db4);}),segmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x258))['description'](a2_0x2c6ba3(0x18b))['action'](async(_0x17415b,_0x5b1f13)=>{const _0x13d548=a2_0x2c6ba3,_0x312581=new SegmentFieldsCommand(),_0x4609d7=program[_0x13d548(0x23a)](),_0x5d8716=await createTDXInstance(_0x4609d7),_0x3f7bc3=await _0x312581[_0x13d548(0x152)]({'options':{..._0x4609d7,..._0x5b1f13},'args':_0x17415b?[_0x17415b]:[],'tdx':_0x5d8716});process[_0x13d548(0x298)](_0x3f7bc3);}),segmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x229))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1b3))[a2_0x2c6ba3(0x176)]('-y,\x20--yes',a2_0x2c6ba3(0x21e))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x109),a2_0x2c6ba3(0x1cf))[a2_0x2c6ba3(0x14d)](async(_0x1211ab,_0x447426)=>{const _0x5391d4=a2_0x2c6ba3,_0x474142=new SegmentPullCommand(),_0x221537=program[_0x5391d4(0x23a)](),_0x3bd24b=await createTDXInstance(_0x221537),_0x5a87e5=await _0x474142[_0x5391d4(0x152)]({'options':{..._0x221537,..._0x447426},'args':_0x1211ab?[_0x1211ab]:[],'tdx':_0x3bd24b});process[_0x5391d4(0x298)](_0x5a87e5);}),segmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x216))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x16a))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x133),a2_0x2c6ba3(0x21e))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x109),a2_0x2c6ba3(0x1cf))['option'](a2_0x2c6ba3(0xd2),a2_0x2c6ba3(0x110))[a2_0x2c6ba3(0x14d)](async(_0x585f11,_0x1b5fd3)=>{const _0x1f71df=a2_0x2c6ba3,_0x5b104d=new SegmentPushCommand(),_0x21c2ef=program[_0x1f71df(0x23a)](),_0x347f64=await createTDXInstance(_0x21c2ef),_0x192373=await _0x5b104d['run']({'options':{..._0x21c2ef,..._0x1b5fd3},'args':_0x585f11?[_0x585f11]:[],'tdx':_0x347f64});process[_0x1f71df(0x298)](_0x192373);}),segmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x9c),{'hidden':!![]})[a2_0x2c6ba3(0x1b4)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xcd),a2_0x2c6ba3(0x1fe))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xbc),a2_0x2c6ba3(0x267))[a2_0x2c6ba3(0x176)]('--rule-file\x20<file>',a2_0x2c6ba3(0x9b))[a2_0x2c6ba3(0x176)]('--folder\x20<name>',a2_0x2c6ba3(0x1ef))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x17b),a2_0x2c6ba3(0x134))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x174),a2_0x2c6ba3(0x14c))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x15f),a2_0x2c6ba3(0xd7))[a2_0x2c6ba3(0x14d)](async(_0x1a27a9,_0x25bc8a)=>{const _0x5cde7b=a2_0x2c6ba3,_0xd122c=new SegmentCreateCommand(),_0x563dd4=program[_0x5cde7b(0x23a)](),_0x5c42aa=await createTDXInstance(_0x563dd4),_0x41e9e7=await _0xd122c[_0x5cde7b(0x152)]({'options':{..._0x563dd4,..._0x25bc8a},'args':[_0x1a27a9],'tdx':_0x5c42aa});process[_0x5cde7b(0x298)](_0x41e9e7);}),segmentCmd['command']('update\x20<segment_name>',{'hidden':!![]})[a2_0x2c6ba3(0x1b4)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x2c6ba3(0x176)]('--name\x20<new_name>','New\x20segment\x20name')['option']('--description\x20<text>',a2_0x2c6ba3(0x251))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xbc),a2_0x2c6ba3(0x150))['option'](a2_0x2c6ba3(0xf9),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x2c6ba3(0x176)]('--folder\x20<name>',a2_0x2c6ba3(0x188))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x17b),a2_0x2c6ba3(0x134))[a2_0x2c6ba3(0x14d)](async(_0x3cc04d,_0x586e9b)=>{const _0x3898b9=a2_0x2c6ba3,_0x3ab38c=new SegmentUpdateCommand(),_0x3dd0bc=program[_0x3898b9(0x23a)](),_0x2ac69c=await createTDXInstance(_0x3dd0bc),_0x9996f6=await _0x3ab38c[_0x3898b9(0x152)]({'options':{..._0x3dd0bc,..._0x586e9b},'args':[_0x3cc04d],'tdx':_0x2ac69c});process[_0x3898b9(0x298)](_0x9996f6);});const parentCmd=segmentCmd[a2_0x2c6ba3(0x25d)]('parent',{'hidden':!![]})[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x21a)),parentListAction=async(_0x13ff71,_0x121da6)=>{const _0x3d378e=a2_0x2c6ba3,_0x18018b=new ParentSegmentListCommand(),_0xd66064=program[_0x3d378e(0x23a)](),_0x117bb5=await createTDXInstance(_0xd66064),_0x172c20=await _0x18018b[_0x3d378e(0x152)]({'options':{..._0xd66064,..._0x121da6},'args':_0x13ff71?[_0x13ff71]:[],'tdx':_0x117bb5});process[_0x3d378e(0x298)](_0x172c20);};parentCmd[a2_0x2c6ba3(0x25d)]('list\x20[pattern]')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x145))['action'](parentListAction),segmentCmd['command'](a2_0x2c6ba3(0x162),{'hidden':!![]})[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1e8))[a2_0x2c6ba3(0x14d)](parentListAction),parentCmd['command'](a2_0x2c6ba3(0x11b))['description'](a2_0x2c6ba3(0x287))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x14b),'Output\x20file\x20path\x20(default:\x20<name>.yml)')['option']('-y,\x20--yes',a2_0x2c6ba3(0x19b))[a2_0x2c6ba3(0x14d)](async(_0x5c93a5,_0x5401b2)=>{const _0x4286b0=a2_0x2c6ba3,_0x2673a0=new ParentSegmentPullCommand(),_0x16b8fa=program[_0x4286b0(0x23a)](),_0xc1a9be=await createTDXInstance(_0x16b8fa),_0x22bbb6=await _0x2673a0['run']({'options':{..._0x16b8fa,..._0x5401b2},'args':_0x5c93a5?[_0x5c93a5]:[],'tdx':_0xc1a9be});process[_0x4286b0(0x298)](_0x22bbb6);}),parentCmd['command'](a2_0x2c6ba3(0xb7))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x89))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x133),'Skip\x20confirmation\x20prompt')[a2_0x2c6ba3(0x14d)](async(_0xd32906,_0x1c4b40)=>{const _0x1ece82=a2_0x2c6ba3,_0x3a4cc7=new ParentSegmentPushCommand(),_0x3cb645=program[_0x1ece82(0x23a)](),_0x46a7f0=await createTDXInstance(_0x3cb645),_0x29676b=await _0x3a4cc7[_0x1ece82(0x152)]({'options':{..._0x3cb645,..._0x1c4b40},'args':_0xd32906?[_0xd32906]:[],'tdx':_0x46a7f0});process['exit'](_0x29676b);}),parentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xc8))[a2_0x2c6ba3(0x1b4)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x21b),a2_0x2c6ba3(0x146))[a2_0x2c6ba3(0x176)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x266),a2_0x2c6ba3(0x84))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x27c),a2_0x2c6ba3(0x1f9))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x224),a2_0x2c6ba3(0x12c),a2_0x2c6ba3(0x9d))['action'](async(_0x3780e5,_0x1d9986)=>{const _0x135d83=a2_0x2c6ba3,_0x35866f=new ParentSegmentValidateCommand(),_0x23b25b=program[_0x135d83(0x23a)](),_0x4cd55d=await createTDXInstance(_0x23b25b),_0x5e8e98=await _0x35866f[_0x135d83(0x152)]({'options':{..._0x23b25b,..._0x1d9986},'args':_0x3780e5?[_0x3780e5]:[],'tdx':_0x4cd55d});process[_0x135d83(0x298)](_0x5e8e98);}),parentCmd['command'](a2_0x2c6ba3(0xcc))['description'](a2_0x2c6ba3(0x1e3))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x21b),a2_0x2c6ba3(0x245))['option'](a2_0x2c6ba3(0x1d5),a2_0x2c6ba3(0x263))['option']('--behavior\x20[name]',a2_0x2c6ba3(0x1e7))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x27c),a2_0x2c6ba3(0x24c))[a2_0x2c6ba3(0x176)]('--interval\x20<range>',a2_0x2c6ba3(0x12c),a2_0x2c6ba3(0x9d))[a2_0x2c6ba3(0x14d)](async(_0x4ba44f,_0x4b39de)=>{const _0x154cb5=a2_0x2c6ba3,_0x2a4242=new ParentSegmentPreviewCommand(),_0x453530=program[_0x154cb5(0x23a)](),_0x2331fe=await createTDXInstance(_0x453530),_0x570690=await _0x2a4242['run']({'options':{..._0x453530,..._0x4b39de},'args':_0x4ba44f?[_0x4ba44f]:[],'tdx':_0x2331fe});process[_0x154cb5(0x298)](_0x570690);}),parentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1b1))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x154))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x133),'Skip\x20confirmation\x20prompt')[a2_0x2c6ba3(0x14d)](async(_0x51503a,_0x1e7364)=>{const _0x2aedf3=a2_0x2c6ba3,_0x162059=new ParentSegmentRunCommand(),_0x547bbb=program['opts'](),_0x49848b=await createTDXInstance(_0x547bbb),_0x133de7=await _0x162059[_0x2aedf3(0x152)]({'options':{..._0x547bbb,..._0x1e7364},'args':_0x51503a?[_0x51503a]:[],'tdx':_0x49848b});process[_0x2aedf3(0x298)](_0x133de7);});const parentSegmentCmd=program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xa3))[a2_0x2c6ba3(0x1bd)]('ps')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x123));parentSegmentCmd['command'](a2_0x2c6ba3(0x268))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x145))[a2_0x2c6ba3(0x14d)](parentListAction),parentSegmentCmd['command']('pull\x20[name]')['description'](a2_0x2c6ba3(0x28e))['option']('-o,\x20--output\x20<file>',a2_0x2c6ba3(0x289))['option']('-y,\x20--yes',a2_0x2c6ba3(0x19b))['option']('-u,\x20--use','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x2c6ba3(0x14d)](async(_0x1a6b54,_0x49fc6b)=>{const _0x5e9226=a2_0x2c6ba3,_0x52960a=new ParentSegmentPullCommand(),_0x571eeb=program['opts'](),_0x3f3664=await createTDXInstance(_0x571eeb),_0x47aef4=await _0x52960a['run']({'options':{..._0x571eeb,..._0x49fc6b},'args':_0x1a6b54?[_0x1a6b54]:[],'tdx':_0x3f3664});process[_0x5e9226(0x298)](_0x47aef4);}),parentSegmentCmd['command']('push\x20[name]')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x9f))['option'](a2_0x2c6ba3(0x133),a2_0x2c6ba3(0x19b))[a2_0x2c6ba3(0x14d)](async(_0x519cc5,_0x9c735f)=>{const _0x466879=a2_0x2c6ba3,_0xe663f2=new ParentSegmentPushCommand(),_0x41a341=program[_0x466879(0x23a)](),_0x491257=await createTDXInstance(_0x41a341),_0x2da343=await _0xe663f2[_0x466879(0x152)]({'options':{..._0x41a341,..._0x9c735f},'args':_0x519cc5?[_0x519cc5]:[],'tdx':_0x491257});process[_0x466879(0x298)](_0x2da343);}),parentSegmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1da))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1f6))[a2_0x2c6ba3(0x176)]('--master','Show\x20only\x20master\x20table\x20validation')[a2_0x2c6ba3(0x176)]('--attribute\x20[name]',a2_0x2c6ba3(0x148))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x266),a2_0x2c6ba3(0x84))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x27c),a2_0x2c6ba3(0x1f9))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x224),a2_0x2c6ba3(0x12c),'-1d')['action'](async(_0x2bad7c,_0x59f9e8)=>{const _0x1af1c8=a2_0x2c6ba3,_0x447003=new ParentSegmentValidateCommand(),_0xf170b9=program['opts'](),_0x3a88f2=await createTDXInstance(_0xf170b9),_0x23aae5=await _0x447003[_0x1af1c8(0x152)]({'options':{..._0xf170b9,..._0x59f9e8},'args':_0x2bad7c?[_0x2bad7c]:[],'tdx':_0x3a88f2});process[_0x1af1c8(0x298)](_0x23aae5);}),parentSegmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x20b))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1e3))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x21b),a2_0x2c6ba3(0x245))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1d5),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')['option'](a2_0x2c6ba3(0x266),a2_0x2c6ba3(0x1e7))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x27c),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x224),a2_0x2c6ba3(0x12c),a2_0x2c6ba3(0x9d))[a2_0x2c6ba3(0x14d)](async(_0x156cdd,_0x3a534f)=>{const _0x559741=a2_0x2c6ba3,_0x3b5a02=new ParentSegmentPreviewCommand(),_0x31ec7f=program['opts'](),_0x5f2842=await createTDXInstance(_0x31ec7f),_0x43566c=await _0x3b5a02[_0x559741(0x152)]({'options':{..._0x31ec7f,..._0x3a534f},'args':_0x156cdd?[_0x156cdd]:[],'tdx':_0x5f2842});process[_0x559741(0x298)](_0x43566c);}),parentSegmentCmd['command'](a2_0x2c6ba3(0x1b1))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x154))['option'](a2_0x2c6ba3(0x133),a2_0x2c6ba3(0x19b))[a2_0x2c6ba3(0x14d)](async(_0xdb4d7e,_0x5983fb)=>{const _0x247443=a2_0x2c6ba3,_0x315d14=new ParentSegmentRunCommand(),_0x2375e1=program['opts'](),_0x571287=await createTDXInstance(_0x2375e1),_0x12774b=await _0x315d14[_0x247443(0x152)]({'options':{..._0x2375e1,..._0x5983fb},'args':_0xdb4d7e?[_0xdb4d7e]:[],'tdx':_0x571287});process[_0x247443(0x298)](_0x12774b);}),parentSegmentCmd['command'](a2_0x2c6ba3(0xb4))[a2_0x2c6ba3(0x1b4)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x244),'Output\x20as\x20JSON')['option'](a2_0x2c6ba3(0x275),a2_0x2c6ba3(0xc3))[a2_0x2c6ba3(0x14d)](async(_0x36ca25,_0x4999a6)=>{const _0x551aa2=a2_0x2c6ba3,_0x293de9=new ParentSegmentFieldsCommand(),_0x16d06e=program['opts'](),_0x2d81a4=await createTDXInstance(_0x16d06e),_0x8bd845=await _0x293de9[_0x551aa2(0x152)]({'options':{..._0x16d06e,..._0x4999a6},'args':_0x36ca25?[_0x36ca25]:[],'tdx':_0x2d81a4});process[_0x551aa2(0x298)](_0x8bd845);}),parentSegmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xd6))[a2_0x2c6ba3(0x1b4)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1ae),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x2c6ba3(0x176)]('--json',a2_0x2c6ba3(0x95))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x275),a2_0x2c6ba3(0xc3))[a2_0x2c6ba3(0x14d)](async(_0x4e388f,_0x4a42de)=>{const _0x4420bf=a2_0x2c6ba3,_0x412f55=new ParentSegmentViewCommand(),_0x1dbef8=program[_0x4420bf(0x23a)](),_0xd17388=await createTDXInstance(_0x1dbef8),_0x1ff55b=await _0x412f55['run']({'options':{..._0x1dbef8,..._0x4a42de},'args':_0x4e388f?[_0x4e388f]:[],'tdx':_0xd17388});process[_0x4420bf(0x298)](_0x1ff55b);}),parentSegmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x105))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0xbd))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x244),a2_0x2c6ba3(0x95))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x275),a2_0x2c6ba3(0xc3))[a2_0x2c6ba3(0x14d)](async(_0x36b7ce,_0x188e6a)=>{const _0x5f0a09=a2_0x2c6ba3,_0x4022f9=new ParentSegmentDescCommand(),_0xd140f6=program[_0x5f0a09(0x23a)](),_0x1b7cc1=await createTDXInstance(_0xd140f6),_0x4a1e89=await _0x4022f9[_0x5f0a09(0x152)]({'options':{..._0xd140f6,..._0x188e6a},'args':_0x36b7ce?[_0x36b7ce]:[],'tdx':_0x1b7cc1});process[_0x5f0a09(0x298)](_0x4a1e89);}),parentSegmentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x86))['description'](a2_0x2c6ba3(0x179))[a2_0x2c6ba3(0x176)]('--json','Output\x20as\x20JSON')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x275),a2_0x2c6ba3(0xc3))['action'](async(_0xfac837,_0x3fca5e)=>{const _0x166a2b=a2_0x2c6ba3,_0x6d58ea=new ParentSegmentSQLCommand(),_0x1cb220=program[_0x166a2b(0x23a)](),_0x58d9a4=await createTDXInstance(_0x1cb220),_0x4e1293=await _0x6d58ea[_0x166a2b(0x152)]({'options':{..._0x1cb220,..._0x3fca5e},'args':_0xfac837?[_0xfac837]:[],'tdx':_0x58d9a4});process[_0x166a2b(0x298)](_0x4e1293);}),parentSegmentCmd['command'](a2_0x2c6ba3(0x8d))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x173))['option']('--limit\x20<n>',a2_0x2c6ba3(0x13a))['option'](a2_0x2c6ba3(0x244),a2_0x2c6ba3(0x95))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x275),a2_0x2c6ba3(0xc3))[a2_0x2c6ba3(0x14d)](async(_0x1b0d09,_0x2c4617)=>{const _0x217149=a2_0x2c6ba3,_0x40edc3=new ParentSegmentShowCommand(),_0x123816=program[_0x217149(0x23a)](),_0x18cab7=await createTDXInstance(_0x123816),_0x8b3be3=await _0x40edc3[_0x217149(0x152)]({'options':{..._0x123816,..._0x2c4617},'args':_0x1b0d09?[_0x1b0d09]:[],'tdx':_0x18cab7});process[_0x217149(0x298)](_0x8b3be3);}),parentSegmentCmd['command'](a2_0x2c6ba3(0x210))['description'](a2_0x2c6ba3(0x222))[a2_0x2c6ba3(0x14d)](async(_0x44848d,_0x2105b6)=>{const _0x365aea=a2_0x2c6ba3,_0x2a37d2=new UseCommand(),_0x266f27=program[_0x365aea(0x23a)](),_0x132205=_0x44848d?['parent_segment',_0x44848d]:[],_0x18fadf=await _0x2a37d2[_0x365aea(0x152)]({'options':{..._0x266f27,..._0x2105b6},'args':_0x132205,'tdx':null});process[_0x365aea(0x298)](_0x18fadf);}),parentCmd['command']('create\x20<name>')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x13b))['requiredOption'](a2_0x2c6ba3(0x155),'Master\x20database\x20name')['requiredOption'](a2_0x2c6ba3(0x1d0),a2_0x2c6ba3(0xc5))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xcd),'Parent\x20segment\x20description')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x14e),a2_0x2c6ba3(0xb8))[a2_0x2c6ba3(0x176)]('--schedule-option\x20<value>',a2_0x2c6ba3(0x1df))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x24d),a2_0x2c6ba3(0x255))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1a1),a2_0x2c6ba3(0x17e))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xb1),a2_0x2c6ba3(0xde))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x99),'Behaviors\x20as\x20JSON\x20string')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1f3),'Behaviors\x20from\x20JSON\x20file')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x202),a2_0x2c6ba3(0x25a))['option'](a2_0x2c6ba3(0x19e),'Customer\x20group\x20from\x20JSON\x20file')['action'](async(_0xc1aeb9,_0x1b48f2)=>{const _0x275257=a2_0x2c6ba3,_0xe06e31=new ParentSegmentCreateCommand(),_0x27ea1c=program[_0x275257(0x23a)](),_0x4087ef=await createTDXInstance(_0x27ea1c),_0x3944a3=await _0xe06e31['run']({'options':{..._0x27ea1c,..._0x1b48f2},'args':[_0xc1aeb9],'tdx':_0x4087ef});process[_0x275257(0x298)](_0x3944a3);}),parentCmd[a2_0x2c6ba3(0x25d)]('update\x20<name>')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x142))['option'](a2_0x2c6ba3(0xcd),a2_0x2c6ba3(0x251))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x14e),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option']('--schedule-option\x20<value>','Updated\x20schedule\x20option')[a2_0x2c6ba3(0x176)]('--timezone\x20<tz>',a2_0x2c6ba3(0x168))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1b6),a2_0x2c6ba3(0x1fc))[a2_0x2c6ba3(0x176)]('--add-attributes-file\x20<file>',a2_0x2c6ba3(0x1d1))[a2_0x2c6ba3(0x176)]('--add-behaviors\x20<json>',a2_0x2c6ba3(0x1e1))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x15e),a2_0x2c6ba3(0x23c))[a2_0x2c6ba3(0x14d)](async(_0x34a58d,_0x47f410)=>{const _0x367b12=a2_0x2c6ba3,_0x3fface=new ParentSegmentUpdateCommand(),_0x2954b3=program[_0x367b12(0x23a)](),_0x450ba0=await createTDXInstance(_0x2954b3),_0x1ee6d0=await _0x3fface[_0x367b12(0x152)]({'options':{..._0x2954b3,..._0x47f410},'args':[_0x34a58d],'tdx':_0x450ba0});process[_0x367b12(0x298)](_0x1ee6d0);}),folderCmd['command']('create\x20<parent_name>\x20<folder_name>')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x265))['option'](a2_0x2c6ba3(0xcd),a2_0x2c6ba3(0x236))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x119),a2_0x2c6ba3(0xf4))[a2_0x2c6ba3(0x14d)](async(_0x155e96,_0x5b019f,_0xb36897)=>{const _0x49ddb0=a2_0x2c6ba3,_0x1726b1=new SegmentFolderCreateCommand(),_0x335a3c=program[_0x49ddb0(0x23a)](),_0x295221=await createTDXInstance(_0x335a3c),_0x3c36a0=await _0x1726b1[_0x49ddb0(0x152)]({'options':{..._0x335a3c,..._0xb36897},'args':[_0x155e96,_0x5b019f],'tdx':_0x295221});process['exit'](_0x3c36a0);}),program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x228))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x20a))[a2_0x2c6ba3(0x14d)](async(_0x15d777,_0x4cbe8c)=>{const _0x18edf3=a2_0x2c6ba3,_0x385c81=new ActivationsCommand(),_0x3385b5=program['opts'](),_0x1fc098=await createTDXInstance(_0x3385b5),_0x23c9d8=await _0x385c81[_0x18edf3(0x152)]({'options':{..._0x3385b5,..._0x4cbe8c},'args':[_0x15d777],'tdx':_0x1fc098});process[_0x18edf3(0x298)](_0x23c9d8);});const workflowCmd=program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x159))['alias']('wf')[a2_0x2c6ba3(0x1b4)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x100))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x120)),wfProjectListAction=async(_0x581832,_0x189f24)=>{const _0x38cb65=a2_0x2c6ba3,_0x450fc1=new WorkflowProjectsCommand(),_0x971866=program[_0x38cb65(0x23a)](),_0x25cea3=await createTDXInstance(_0x971866),_0x33391=await _0x450fc1['run']({'options':{..._0x971866,..._0x189f24},'args':_0x581832?[_0x581832]:[],'tdx':_0x25cea3});process[_0x38cb65(0x298)](_0x33391);};wfProjectCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x268))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x295))[a2_0x2c6ba3(0x14d)](wfProjectListAction),workflowCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x218))[a2_0x2c6ba3(0x1b4)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x2c6ba3(0x14d)](wfProjectListAction);const wfWorkflowListAction=async(_0x10fae3,_0x5bbec7)=>{const _0x202444=a2_0x2c6ba3,_0x3e3f5b=new WorkflowWorkflowsCommand(),_0x55b364=program['opts'](),_0x11c4cc=await createTDXInstance(_0x55b364),_0x559b00=await _0x3e3f5b[_0x202444(0x152)]({'options':{..._0x55b364,..._0x5bbec7},'args':_0x10fae3?[_0x10fae3]:[],'tdx':_0x11c4cc});process[_0x202444(0x298)](_0x559b00);};workflowCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xba))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x94))[a2_0x2c6ba3(0x14d)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x2c6ba3(0xd1))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x164)),wfSessionListAction=async(_0x3a783d,_0x72de91)=>{const _0x3e33bb=a2_0x2c6ba3,_0x8d11d7=new WorkflowSessionsCommand(),_0x34c8ca=program[_0x3e33bb(0x23a)](),_0x5910be=await createTDXInstance(_0x34c8ca),_0x57955b=await _0x8d11d7[_0x3e33bb(0x152)]({'options':{..._0x34c8ca,..._0x72de91},'args':_0x3a783d?[_0x3a783d]:[],'tdx':_0x5910be});process[_0x3e33bb(0x298)](_0x57955b);};wfSessionCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xe0))['description'](a2_0x2c6ba3(0xae))[a2_0x2c6ba3(0x176)]('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x193),a2_0x2c6ba3(0x1d3))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1fd),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x2c6ba3(0x14d)](wfSessionListAction),workflowCmd[a2_0x2c6ba3(0x25d)]('sessions\x20[project]')['description'](a2_0x2c6ba3(0x1c6))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x151),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x193),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x2c6ba3(0x176)]('--to\x20<timestamp>',a2_0x2c6ba3(0x158))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x202fa8,_0x2b36d3)=>{const _0x304454=a2_0x2c6ba3,_0x5771e6=new WorkflowAttemptsCommand(),_0xb6f9cd=program[_0x304454(0x23a)](),_0x40ecdd=await createTDXInstance(_0xb6f9cd),_0x3a727d=await _0x5771e6[_0x304454(0x152)]({'options':{..._0xb6f9cd,..._0x2b36d3},'args':_0x202fa8?[_0x202fa8]:[],'tdx':_0x40ecdd});process[_0x304454(0x298)](_0x3a727d);},attemptCmd=workflowCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x186))['description']('Workflow\x20attempt\x20management')[a2_0x2c6ba3(0x212)]('[attempt-id]',a2_0x2c6ba3(0x28c))[a2_0x2c6ba3(0x212)](a2_0x2c6ba3(0x16b),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x2c6ba3(0x212)](a2_0x2c6ba3(0x26b),a2_0x2c6ba3(0x1d7))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x18d),a2_0x2c6ba3(0x283))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xdc),a2_0x2c6ba3(0x132))['option'](a2_0x2c6ba3(0x279),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x28b),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1a0),a2_0x2c6ba3(0x160))[a2_0x2c6ba3(0x176)]('--include-retried',a2_0x2c6ba3(0x12b))[a2_0x2c6ba3(0x14d)](async(_0x1986b2,_0x109fd2,_0x3239cd,_0x32615d)=>{const _0x2904ca=a2_0x2c6ba3;if(_0x1986b2==='list'){await wfAttemptListAction(_0x109fd2,_0x32615d);return;}if(!_0x1986b2){attemptCmd[_0x2904ca(0xd3)]();return;}const _0x2ca988=program[_0x2904ca(0x23a)](),_0x5e0203=await createTDXInstance(_0x2ca988);let _0x1a92ce=0x0;if(!_0x109fd2){const _0x39c724=new WorkflowAttemptCommand();_0x1a92ce=await _0x39c724['run']({'options':{..._0x2ca988,..._0x32615d},'args':[_0x1986b2],'tdx':_0x5e0203});}else{if(_0x109fd2===_0x2904ca(0x225)){const _0x45631f=new WorkflowLogsCommand();_0x1a92ce=await _0x45631f[_0x2904ca(0x152)]({'options':{..._0x2ca988,..._0x32615d},'args':_0x3239cd?[_0x1986b2,_0x3239cd]:[_0x1986b2],'tdx':_0x5e0203});}else{if(_0x109fd2===_0x2904ca(0x297)){const _0x343700=new WorkflowTasksCommand();_0x1a92ce=await _0x343700[_0x2904ca(0x152)]({'options':{..._0x2ca988,..._0x32615d},'args':[_0x1986b2],'tdx':_0x5e0203});}else{if(_0x109fd2===_0x2904ca(0x122)){const _0x3dbbbf=new WorkflowKillCommand();_0x1a92ce=await _0x3dbbbf[_0x2904ca(0x152)]({'options':{..._0x2ca988,..._0x32615d},'args':[_0x1986b2],'tdx':_0x5e0203});}else{if(_0x109fd2==='retry'){const _0xcb6e4=new WorkflowRetryCommand();_0x1a92ce=await _0xcb6e4['run']({'options':{..._0x2ca988,..._0x32615d},'args':[_0x2904ca(0xcf)+_0x1986b2],'tdx':_0x5e0203});}else console[_0x2904ca(0x82)](_0x2904ca(0x1f0)+_0x109fd2),console[_0x2904ca(0x82)](_0x2904ca(0xc7)),_0x1a92ce=0x1;}}}}process[_0x2904ca(0x298)](_0x1a92ce);});attemptCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xe0))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x22f))['option'](a2_0x2c6ba3(0xf7),a2_0x2c6ba3(0x1be))[a2_0x2c6ba3(0x14d)](wfAttemptListAction),workflowCmd[a2_0x2c6ba3(0x25d)]('attempts\x20[project]')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0xf1))['option'](a2_0x2c6ba3(0xf7),a2_0x2c6ba3(0x1be))['action'](wfAttemptListAction),workflowCmd[a2_0x2c6ba3(0x25d)]('retry\x20<session-id>')['description']('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')['option'](a2_0x2c6ba3(0x238),a2_0x2c6ba3(0x7c))[a2_0x2c6ba3(0x176)]('--params\x20<json>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')['action'](async(_0x539f1e,_0x19a605)=>{const _0x12f7ce=a2_0x2c6ba3,_0x11e6cb=new WorkflowRetryCommand(),_0x43af82=program['opts'](),_0x3dc7f4=await createTDXInstance(_0x43af82),_0x549ff8=await _0x11e6cb[_0x12f7ce(0x152)]({'options':{..._0x43af82,..._0x19a605},'args':[_0x539f1e],'tdx':_0x3dc7f4});process['exit'](_0x549ff8);}),workflowCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1de))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x206))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x22a),a2_0x2c6ba3(0x198),(_0x50947a,_0x1c7e4c=[])=>[..._0x1c7e4c,_0x50947a],[])[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1f5),a2_0x2c6ba3(0x1a9))['action'](async(_0x1d5b07,_0x24d3db)=>{const _0x1b36a9=a2_0x2c6ba3,_0x4550d6=new WorkflowRunCommand(),_0x16fd33=program[_0x1b36a9(0x23a)](),_0x2449e8=await createTDXInstance(_0x16fd33),_0x11a4cb=await _0x4550d6[_0x1b36a9(0x152)]({'options':{..._0x16fd33,..._0x24d3db},'args':[_0x1d5b07],'tdx':_0x2449e8});process[_0x1b36a9(0x298)](_0x11a4cb);}),workflowCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xfd))['description'](a2_0x2c6ba3(0x83))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1e5),a2_0x2c6ba3(0x1ed))[a2_0x2c6ba3(0x14d)](async(_0x19bde7,_0x1281bb,_0x3edfbd)=>{const _0x52657f=a2_0x2c6ba3,_0x370fac=new WorkflowDownloadCommand(),_0x11ea15=program[_0x52657f(0x23a)](),_0x268ffc=await createTDXInstance(_0x11ea15),_0xbe7ad4=await _0x370fac['run']({'options':{..._0x11ea15,..._0x3edfbd},'args':[_0x19bde7,_0x1281bb||'.'],'tdx':_0x268ffc});process[_0x52657f(0x298)](_0xbe7ad4);}),workflowCmd['command']('push\x20[project-name-or-dir]')[a2_0x2c6ba3(0x1b4)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x8c),a2_0x2c6ba3(0x18c))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1e5),a2_0x2c6ba3(0xa6))['option'](a2_0x2c6ba3(0x1a8),a2_0x2c6ba3(0x88))[a2_0x2c6ba3(0x14d)](async(_0x326d77,_0xc2e8c)=>{const _0x198490=a2_0x2c6ba3,_0x5aad24=new WorkflowPushCommand(),_0x4ce94d=program[_0x198490(0x23a)](),_0x194d23=await createTDXInstance(_0x4ce94d),_0x4994cd=await _0x5aad24[_0x198490(0x152)]({'options':{..._0x4ce94d,..._0xc2e8c},'args':_0x326d77?[_0x326d77]:[],'tdx':_0x194d23});process[_0x198490(0x298)](_0x4994cd);}),workflowCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x22d))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1bf))[a2_0x2c6ba3(0x14d)](async(_0x451c28,_0x5bde73)=>{const _0x530d28=a2_0x2c6ba3,_0x1f190c=new WorkflowDeleteCommand(),_0x6f98de=program[_0x530d28(0x23a)](),_0x3b87b4=await createTDXInstance(_0x6f98de),_0x556a72=await _0x1f190c[_0x530d28(0x152)]({'options':{..._0x6f98de,..._0x5bde73},'args':[_0x451c28],'tdx':_0x3b87b4});process[_0x530d28(0x298)](_0x556a72);});const jobCmd=program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xa5))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x25b)),jobListAction=async _0x65dffb=>{const _0x28935a=a2_0x2c6ba3,_0x257ea4=new JobListCommand(),_0x1dcb24=program[_0x28935a(0x23a)](),_0x46c402=await createTDXInstance(_0x1dcb24),_0x1d1482=await _0x257ea4[_0x28935a(0x152)]({'options':{..._0x1dcb24,..._0x65dffb},'args':[],'tdx':_0x46c402});process['exit'](_0x1d1482);};jobCmd[a2_0x2c6ba3(0x25d)]('list')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x14f))['option'](a2_0x2c6ba3(0x151),a2_0x2c6ba3(0x1f1))[a2_0x2c6ba3(0x14d)](jobListAction),program['command'](a2_0x2c6ba3(0x15b),{'hidden':!![]})[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x180))[a2_0x2c6ba3(0x176)]('--status\x20<status>',a2_0x2c6ba3(0x1f1))['action'](jobListAction),jobCmd['command'](a2_0x2c6ba3(0x163))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x8b))[a2_0x2c6ba3(0x14d)](async(_0x424856,_0xc66ef)=>{const _0x252ada=a2_0x2c6ba3,_0x269b61=new JobShowCommand(),_0xcd7e85=program[_0x252ada(0x23a)](),_0x4255c3=await createTDXInstance(_0xcd7e85),_0x115143=await _0x269b61[_0x252ada(0x152)]({'options':{..._0xcd7e85,..._0xc66ef},'args':[_0x424856],'tdx':_0x4255c3});process['exit'](_0x115143);}),jobCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xe7))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1d2))['action'](async(_0xf892d1,_0x57f955)=>{const _0x2bf458=a2_0x2c6ba3,_0xf4c721=new JobKillCommand(),_0x44c0d1=program[_0x2bf458(0x23a)](),_0x2c7c48=await createTDXInstance(_0x44c0d1),_0x17231e=await _0xf4c721['run']({'options':{..._0x44c0d1,..._0x57f955},'args':[_0xf892d1],'tdx':_0x2c7c48});process[_0x2bf458(0x298)](_0x17231e);}),jobCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x27d))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x220))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x104),a2_0x2c6ba3(0xc2),a2_0x2c6ba3(0xeb))['option']('-f,\x20--file\x20<path>',a2_0x2c6ba3(0x237))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x203),a2_0x2c6ba3(0x12e),a2_0x2c6ba3(0x165))[a2_0x2c6ba3(0x14d)](async(_0x2fcef7,_0x535a92)=>{const _0x428777=a2_0x2c6ba3,_0x312491=new JobSubmitCommand(),_0x45d03e=program[_0x428777(0x23a)](),_0x45a535=await createTDXInstance(_0x45d03e),_0x35cc02=await _0x312491['run']({'options':{..._0x45d03e,..._0x535a92},'args':_0x2fcef7?[_0x2fcef7]:[],'tdx':_0x45a535});process[_0x428777(0x298)](_0x35cc02);}),jobCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x97))['description'](a2_0x2c6ba3(0x21c))[a2_0x2c6ba3(0x14d)](async(_0x117a18,_0x3ab05d)=>{const _0x20927a=a2_0x2c6ba3,_0x3d3ee9=new JobResultCommand(),_0x356f5f=program[_0x20927a(0x23a)](),_0x30963a=await createTDXInstance(_0x356f5f),_0x2b13df=await _0x3d3ee9['run']({'options':{..._0x356f5f,..._0x3ab05d},'args':[_0x117a18],'tdx':_0x30963a});process['exit'](_0x2b13df);});const llmCmd=program[a2_0x2c6ba3(0x25d)]('llm')['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x141))['description']('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x2c6ba3(0x14d)](async(_0x160669,_0x46d133)=>{const _0x5c114b=a2_0x2c6ba3,_0x337419=new LLMUseCommand(),_0x371b85=program[_0x5c114b(0x23a)](),_0x5e0e9a=await createTDXInstance(_0x371b85),_0x3c4485=await _0x337419[_0x5c114b(0x152)]({'options':{..._0x371b85,..._0x46d133},'args':[_0x160669],'tdx':_0x5e0e9a});process[_0x5c114b(0x298)](_0x3c4485);}),llmCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xfb))[a2_0x2c6ba3(0x1b4)]('List\x20available\x20LLM\x20models')['action'](async _0x32b5aa=>{const _0xa18ae4=a2_0x2c6ba3,_0x4f49f7=new LLMModelsCommand(),_0x328727=program[_0xa18ae4(0x23a)](),_0x130cea=await createTDXInstance(_0x328727),_0x4a4d53=await _0x4f49f7[_0xa18ae4(0x152)]({'options':{..._0x328727,..._0x32b5aa},'args':[],'tdx':_0x130cea});process['exit'](_0x4a4d53);});const projectCmd=llmCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x100))['description']('LLM\x20project\x20management'),llmProjectListAction=async(_0x233568,_0x29222a)=>{const _0xa111b9=a2_0x2c6ba3,_0x4e677b=new LLMProjectsCommand(),_0x3209e0=program[_0xa111b9(0x23a)](),_0x1f0950=await createTDXInstance(_0x3209e0),_0x5a2aae=await _0x4e677b[_0xa111b9(0x152)]({'options':{..._0x3209e0,..._0x29222a},'args':_0x233568?[_0x233568]:[],'tdx':_0x1f0950});process['exit'](_0x5a2aae);};projectCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x268))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x26e))[a2_0x2c6ba3(0x14d)](llmProjectListAction),llmCmd['command'](a2_0x2c6ba3(0x218))[a2_0x2c6ba3(0x1b4)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x2c6ba3(0x14d)](llmProjectListAction),projectCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x27a))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x26a))[a2_0x2c6ba3(0x176)]('--description\x20<text>',a2_0x2c6ba3(0x292))[a2_0x2c6ba3(0x14d)](async(_0x55bb97,_0x352667)=>{const _0x540b9a=a2_0x2c6ba3,_0x4f4eab=new LLMProjectCreateCommand(),_0x50bf9a=program[_0x540b9a(0x23a)](),_0x4fb4e4=await createTDXInstance(_0x50bf9a),_0x1b4713=await _0x4f4eab[_0x540b9a(0x152)]({'options':{..._0x50bf9a,..._0x352667},'args':[_0x55bb97],'tdx':_0x4fb4e4});process[_0x540b9a(0x298)](_0x1b4713);}),projectCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x126))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x197))[a2_0x2c6ba3(0x14d)](async(_0x2ceb83,_0x31c230)=>{const _0x31db4d=a2_0x2c6ba3,_0x289597=new LLMProjectDeleteCommand(),_0x3cceb4=program[_0x31db4d(0x23a)](),_0x804780=await createTDXInstance(_0x3cceb4),_0x282c5b=await _0x289597['run']({'options':{..._0x3cceb4,..._0x31c230},'args':[_0x2ceb83],'tdx':_0x804780});process[_0x31db4d(0x298)](_0x282c5b);}),projectCmd[a2_0x2c6ba3(0x25d)]('backup\x20<name>')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x135))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x21f),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x109),a2_0x2c6ba3(0x13f))['action'](async(_0x398455,_0x2a6cf3)=>{const _0x51786e=a2_0x2c6ba3,_0x516b3b=new LLMProjectBackupCommand(),_0x2f0e4a=program['opts'](),_0x315cdc=await createTDXInstance(_0x2f0e4a),_0x4076b2=await _0x516b3b[_0x51786e(0x152)]({'options':{..._0x2f0e4a,..._0x2a6cf3},'args':[_0x398455],'tdx':_0x315cdc});process[_0x51786e(0x298)](_0x4076b2);}),projectCmd['command'](a2_0x2c6ba3(0xff))['description']('Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x192),a2_0x2c6ba3(0x18e))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x109),a2_0x2c6ba3(0x240))[a2_0x2c6ba3(0x14d)](async(_0xcea6d6,_0x1396cd)=>{const _0x156fbd=a2_0x2c6ba3,_0x560ca7=new LLMProjectRestoreCommand(),_0xd7d020=program[_0x156fbd(0x23a)](),_0x24d6f8=await createTDXInstance(_0xd7d020),_0x331d27=await _0x560ca7[_0x156fbd(0x152)]({'options':{..._0xd7d020,..._0x1396cd},'args':[_0xcea6d6],'tdx':_0x24d6f8});process[_0x156fbd(0x298)](_0x331d27);});const agentCmd=llmCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xb3))[a2_0x2c6ba3(0x1b4)]('LLM\x20agent\x20management'),llmAgentListAction=async(_0x19c0b6,_0x25c325)=>{const _0x36465e=a2_0x2c6ba3,_0x3d2a5b=new LLMAgentsCommand(),_0xaef8ae=program[_0x36465e(0x23a)](),_0x2b19d6=await createTDXInstance(_0xaef8ae),_0x215071=await _0x3d2a5b['run']({'options':{..._0xaef8ae,..._0x25c325},'args':_0x19c0b6?[_0x19c0b6]:[],'tdx':_0x2b19d6});process['exit'](_0x215071);};agentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x268))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1ac))[a2_0x2c6ba3(0x14d)](llmAgentListAction),llmCmd['command'](a2_0x2c6ba3(0x1f8))['description'](a2_0x2c6ba3(0xe4))[a2_0x2c6ba3(0x14d)](llmAgentListAction),agentCmd['command']('show\x20<agent-name>')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x114))['action'](async(_0x257c2e,_0x29c008)=>{const _0x12dfad=a2_0x2c6ba3,_0x439ee3=new LLMAgentShowCommand(),_0x5320a3=program[_0x12dfad(0x23a)](),_0x231854=await createTDXInstance(_0x5320a3),_0x1a2ac0=await _0x439ee3[_0x12dfad(0x152)]({'options':{..._0x5320a3,..._0x29c008},'args':[_0x257c2e],'tdx':_0x231854});process[_0x12dfad(0x298)](_0x1a2ac0);}),agentCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x27a))['description']('Create\x20a\x20new\x20agent\x20in\x20current\x20project')['option'](a2_0x2c6ba3(0x121),a2_0x2c6ba3(0x7e))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xcb),a2_0x2c6ba3(0xa7),a2_0x2c6ba3(0x103))['option'](a2_0x2c6ba3(0x231),'Starter\x20message')['option'](a2_0x2c6ba3(0xee),a2_0x2c6ba3(0x1c7),'4')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x137),a2_0x2c6ba3(0xe1),a2_0x2c6ba3(0x138))[a2_0x2c6ba3(0x14d)](async(_0x487844,_0x34f222)=>{const _0x36cee6=a2_0x2c6ba3,_0x21aa2e=new LLMAgentCreateCommand(),_0x5e6f7b=program[_0x36cee6(0x23a)](),_0x129357=await createTDXInstance(_0x5e6f7b),_0x4dd9fa=await _0x21aa2e[_0x36cee6(0x152)]({'options':{..._0x5e6f7b,..._0x34f222},'args':[_0x487844],'tdx':_0x129357});process['exit'](_0x4dd9fa);}),agentCmd[a2_0x2c6ba3(0x25d)]('update\x20<agent-name>')[a2_0x2c6ba3(0x1b4)]('Update\x20an\x20existing\x20agent')['option'](a2_0x2c6ba3(0x108),a2_0x2c6ba3(0x15d))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xf8),a2_0x2c6ba3(0x1ca))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xcd),a2_0x2c6ba3(0x290))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x231),a2_0x2c6ba3(0x249))[a2_0x2c6ba3(0x14d)](async(_0x1ffdc1,_0x35e51d)=>{const _0x166077=a2_0x2c6ba3,_0x59715c=new LLMAgentUpdateCommand(),_0x48fd4b=program[_0x166077(0x23a)](),_0x282111=await createTDXInstance(_0x48fd4b),_0x22b6c7=await _0x59715c[_0x166077(0x152)]({'options':{..._0x48fd4b,..._0x35e51d},'args':[_0x1ffdc1],'tdx':_0x282111});process['exit'](_0x22b6c7);}),agentCmd[a2_0x2c6ba3(0x25d)]('delete\x20<agent-name>')['description'](a2_0x2c6ba3(0x277))['action'](async(_0x7b5160,_0x375a8c)=>{const _0x58a901=a2_0x2c6ba3,_0x5d9402=new LLMAgentDeleteCommand(),_0x43cfcc=program[_0x58a901(0x23a)](),_0x14920e=await createTDXInstance(_0x43cfcc),_0x1df574=await _0x5d9402[_0x58a901(0x152)]({'options':{..._0x43cfcc,..._0x375a8c},'args':[_0x7b5160],'tdx':_0x14920e});process[_0x58a901(0x298)](_0x1df574);}),llmCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x106))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x19c))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x177),a2_0x2c6ba3(0xb9))[a2_0x2c6ba3(0x14d)](async(_0x5190d5,_0x35e081)=>{const _0x20d145=a2_0x2c6ba3,_0x42c5b3=new LLMHistoryCommand(),_0x386b94=program['opts'](),_0x45c0da=await createTDXInstance(_0x386b94),_0x48d477=await _0x42c5b3[_0x20d145(0x152)]({'options':{..._0x386b94,..._0x35e081},'args':_0x5190d5?[_0x5190d5]:[],'tdx':_0x45c0da});process[_0x20d145(0x298)](_0x48d477);}),llmCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x246))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x28d))[a2_0x2c6ba3(0x176)]('--port\x20<number>',a2_0x2c6ba3(0x1c2),a2_0x2c6ba3(0x24b))[a2_0x2c6ba3(0x176)]('--project\x20<name>',a2_0x2c6ba3(0x230))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1e2),a2_0x2c6ba3(0xec))[a2_0x2c6ba3(0x14d)](async _0x155b17=>{const _0x2ea46f=a2_0x2c6ba3,_0x4b3ba7=new LLMProxyCommand(),_0x1e08e6=program[_0x2ea46f(0x23a)](),_0x127121=await createTDXInstance(_0x1e08e6),_0x2095a0={..._0x155b17,'port':_0x155b17[_0x2ea46f(0x117)]?parseInt(_0x155b17[_0x2ea46f(0x117)],0xa):undefined},_0x5dfb40=await _0x4b3ba7[_0x2ea46f(0x152)]({'options':{..._0x1e08e6,..._0x2095a0},'args':[],'tdx':_0x127121});process['exit'](_0x5dfb40);}),program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x207))[a2_0x2c6ba3(0x199)]('[options]\x20--\x20[claude-code-args...]')[a2_0x2c6ba3(0x1b4)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xcb),a2_0x2c6ba3(0x1b9),a2_0x2c6ba3(0xaa))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1db),a2_0x2c6ba3(0x28a))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1bc),a2_0x2c6ba3(0x1d8))[a2_0x2c6ba3(0x176)]('--no-proxy',a2_0x2c6ba3(0x241))[a2_0x2c6ba3(0x247)]()[a2_0x2c6ba3(0x1cc)](!![])[a2_0x2c6ba3(0x204)]('after',a2_0x2c6ba3(0x205))[a2_0x2c6ba3(0x14d)](async(_0x35132a,_0x404eb8)=>{const _0x161668=a2_0x2c6ba3,_0x264680=program[_0x161668(0x23a)](),_0x346d05=Array[_0x161668(0x115)](_0x35132a)?_0x35132a:[];if(_0x346d05[0x0]==='statusline'){const _0x34f90f=new ClaudeStatuslineCommand(),_0x42d840=await _0x34f90f[_0x161668(0x152)]({'options':{..._0x264680,..._0x404eb8},'args':_0x346d05[_0x161668(0x256)](0x1),'tdx':null});process[_0x161668(0x298)](_0x42d840);}if(_0x346d05[0x0]===_0x161668(0x199)){const _0xef0ba=new ClaudeUsageCommand(),_0x2c65d8=await _0xef0ba[_0x161668(0x152)]({'options':{..._0x264680,..._0x404eb8},'args':_0x346d05[_0x161668(0x256)](0x1),'tdx':null});process[_0x161668(0x298)](_0x2c65d8);}const _0x4f695a=new ClaudeCommand(),_0x1b36db=await createTDXInstance(_0x264680),_0x69d2e9=await _0x4f695a[_0x161668(0x152)]({'options':{..._0x264680,..._0x404eb8},'args':_0x346d05,'tdx':_0x1b36db});process['exit'](_0x69d2e9);}),program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x124))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1f2))['option']('--clear',a2_0x2c6ba3(0x26c))[a2_0x2c6ba3(0x14d)](async _0x5c03a9=>{const _0x5372ab=a2_0x2c6ba3,_0x5d5076=new ContextCommand(),_0x1e7269=program[_0x5372ab(0x23a)](),_0x586d56=await _0x5d5076[_0x5372ab(0x152)]({'options':{..._0x1e7269,..._0x5c03a9},'args':[],'tdx':null});process['exit'](_0x586d56);}),program['command']('use\x20[resource]\x20[value]')[a2_0x2c6ba3(0x1b4)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')['option'](a2_0x2c6ba3(0x232),a2_0x2c6ba3(0x26c))[a2_0x2c6ba3(0x14d)](async(_0x1e5cd9,_0x151a5e,_0x2112e5)=>{const _0x3d6c9a=a2_0x2c6ba3,_0x4370b7=new UseCommand(),_0x967500=program[_0x3d6c9a(0x23a)](),_0x5ab980=[];if(_0x1e5cd9)_0x5ab980[_0x3d6c9a(0x7b)](_0x1e5cd9);if(_0x151a5e)_0x5ab980[_0x3d6c9a(0x7b)](_0x151a5e);const _0x1d5e14=await _0x4370b7['run']({'options':{..._0x967500,..._0x2112e5},'args':_0x5ab980,'tdx':null});process[_0x3d6c9a(0x298)](_0x1d5e14);}),program['command'](a2_0x2c6ba3(0x118))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x11e))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x177),a2_0x2c6ba3(0x85))[a2_0x2c6ba3(0x14d)](async _0x3abeb8=>{const _0x42c173=a2_0x2c6ba3,_0x384c06=new ChatsCommand(),_0xe58127=program[_0x42c173(0x23a)](),_0x30c78f=await createTDXInstance(_0xe58127),_0x85b95c=await _0x384c06[_0x42c173(0x152)]({'options':{..._0xe58127,..._0x3abeb8},'args':[],'tdx':_0x30c78f});process['exit'](_0x85b95c);});const authCmd=program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xce))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x129));async function runAuthStatusCommand(_0x12f690){const _0x37573f=a2_0x2c6ba3,_0x5bca00=new AuthStatusCommand(),_0x95bc8b=program[_0x37573f(0x23a)](),_0x4f0cab=await createTDXInstance(_0x95bc8b),_0x2d1a5c=await _0x5bca00[_0x37573f(0x152)]({'options':{..._0x95bc8b,..._0x12f690},'args':[],'tdx':_0x4f0cab});process[_0x37573f(0x298)](_0x2d1a5c);}function a2_0x1409(){const _0x55e3c6=['--last','Plaintext\x20template\x20content','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--kind\x20<type>','Workspace\x20name','use\x20<path>','Attributes\x20as\x20JSON\x20string','user','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--format\x20<format>','tsv','info\x20[segment_name]','--new','Campaign\x20type\x20(email\x20or\x20push)','attempt','-H,\x20--header\x20<header>','Move\x20to\x20folder','database','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Override\x20project\x20name','--include-subtasks','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','argumentDescription','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','duplicate\x20<name-or-id>','--name\x20<new-name>','--from\x20<timestamp>','116736pDNlKJ','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','--tsv','Delete\x20an\x20LLM\x20project','Workflow\x20parameter\x20(repeatable)','usage','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Skip\x20confirmation\x20prompt','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','create','--customer-group-file\x20<file>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','--force','--attributes\x20<json>','.dev','commands','catch','json','Duplicate\x20a\x20campaign','Options:','--skip-validation','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','map','tdx','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','padEnd','-w,\x20--web','--json-columns\x20<cols>','--llm-project\x20<name>','run\x20[name]','log','Pull\x20child\x20segments\x20to\x20YAML\x20files','description','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--add-attributes\x20<json>','filter','Show\x20segment\x20schema\x20(column\x20types)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','segment','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','-r,\x20--resume','alias','Include\x20retried\x20attempts','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Campaign\x20description','Export\x20journey(s)\x20as\x20YAML\x20files','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Show\x20journey\x20statistics','name','CDP\x20segment\x20management\x20commands','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Maximum\x20tool\x20iterations\x20(default:\x204)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Agent\x20prompt/instructions','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','allowExcessArguments','use\x20<name>','Database\x20to\x20use\x20(overrides\x20context)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--table\x20<table>','Add\x20attributes\x20from\x20JSON\x20file','Kill\x20a\x20job','Start\x20time\x20filter\x20(ISO\x208601\x20format)','desc\x20[segment_name]','--attribute\x20[name]','segments\x20[path]','Task\x20name\x20for\x20logs\x20action','Resume\x20a\x20conversation\x20(shows\x20selector)','update\x20<name-or-id>','validate\x20[name]','-c,\x20--continue','format','--in\x20<name>','run\x20<workflow>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','New\x20template\x20name','Add\x20behaviors\x20as\x20JSON\x20string','--agent\x20<name>','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--subject\x20<subject>','--revision\x20<revision>','repeat','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','294217VPEWvD','Delete\x20an\x20email\x20template','resume\x20<name-or-path>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','show\x20<name-or-id>','Folder\x20name\x20for\x20organization','Unknown\x20action:\x20','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','--behaviors-file\x20<file>','\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','--session-time\x20<time>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','--limit\x20<number>','agents\x20[pattern]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Data\x20connection\x20management\x20(for\x20activations/exports)','--editor-type\x20<type>','Add\x20attributes\x20as\x20JSON\x20string','--to\x20<timestamp>','Segment\x20description','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Agent\x20reference\x20(project-name/agent-name)','workspaces\x20[pattern]','--customer-group\x20<json>','--database\x20<name>','addHelpText','\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','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','claude\x20[args...]','optionDescription','Usage:\x20','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','preview\x20[name]','then','configureHelp','gitRevision','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','use\x20[name]','441RVwAMF','argument','--type\x20<type>','registeredArguments','table','push\x20[parent_or_file]','Model\x20name\x20(default:\x20claude-4.5-sonnet)','projects\x20[pattern]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','--master','Get\x20job\x20results','show\x20<folder_ref>','Skip\x20confirmation\x20prompts','-o,\x20--output\x20<folder>','Submit\x20a\x20job','version','Set\x20or\x20show\x20parent\x20segment\x20context','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','--interval\x20<range>','logs','--agent\x20<ref>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','activations\x20<segment_name>','pull\x20[parent_or_file]','--param\x20<key=value>','1157832oQhuHJ','--yes','delete\x20<project-name-or-id>','databases\x20[pattern]','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--starter-message\x20<text>','--clear','Database\x20to\x20query\x20(default:\x20information_schema)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','query\x20[sql]','Folder\x20description','Read\x20query\x20from\x20file','--from-task\x20<task>','INFO','opts','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Add\x20behaviors\x20from\x20JSON\x20file','Show\x20segment\x20details\x20(alias\x20for\x20view)','-r,\x20--recursive','1745290wpnQAC','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--max-depth\x20<depth>','Editor\x20type','--json','Show\x20master\x20table\x20sample\x20data','proxy','allowUnknownOption','Template\x20name','Starter\x20message','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','4000','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--timezone\x20<tz>','forEach','Trino\x20catalog\x20(default:\x20td)','--html\x20<html>','Updated\x20description','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','templates\x20[pattern]','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Timezone\x20(e.g.,\x20America/Los_Angeles)','slice','\x20-\x20built\x20','fields\x20[parent_name]','--full','Customer\x20group\x20as\x20JSON\x20string','Job\x20management\x20commands','Workspace\x20description','command','noColor','TRACE','Remove\x20API\x20key\x20from\x20system\x20keychain','show\x20<name>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','sql\x20[segment_name]','Create\x20segment\x20folder','--behavior\x20[name]','Filtering\x20rule\x20as\x20JSON\x20string','list\x20[pattern]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Create\x20a\x20new\x20LLM\x20project','[task-name]','Clear\x20session\x20context','JSON\x20columns\x20for\x20connector\x20(comma-separated)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--catalog\x20<catalog>','--description\x20<desc>','flatMap','users','jsonl','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--jsonl','utf-8','Delete\x20an\x20agent','AI-native\x20CLI\x20for\x20Treasure\x20Data','--resume-from\x20<task>','create\x20<name>','describe','--enriched','submit\x20[query]','Pause\x20a\x20campaign','join','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Delete\x20a\x20campaign','179518RXmSiy','Include\x20subtasks\x20in\x20tasks\x20output','Maximum\x20recursion\x20depth\x20(default:\x2010)','--email-sender-id\x20<id>','740Aqruyg','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','DEBUG','Output\x20file\x20path','Continue\x20most\x20recent\x20conversation','--params\x20<json>','Attempt\x20ID','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Read\x20SQL\x20query\x20from\x20file','Agent\x20description','options','Project\x20description','profile','Show\x20connection\x20details\x20by\x20name','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','pause\x20<name-or-path>','tasks','exit','parse','push','Resume\x20from\x20specific\x20task','-p,\x20--profile\x20<name>','System\x20prompt/instructions\x20(default:\x20empty)','6jfreNp','--segment\x20<path>','Show\x20journey\x20details','error','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Show\x20the\x20most\x20recent\x20chat','sql\x20[name]','Show\x20web\x20console\x20URLs\x20for\x20segments','Skip\x20validation\x20of\x20.dig\x20files','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Show\x20job\x20details','--name\x20<name>','show\x20[name]','_hidden','Create\x20a\x20new\x20campaign','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Workspace\x20name\x20(required)','New\x20workspace\x20name','--table','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Output\x20as\x20JSON','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','result\x20<job-id>','subcommandTerm','--behaviors\x20<json>','Launch\x20a\x20campaign','Filtering\x20rule\x20from\x20JSON\x20file','create\x20<segment_name>','-1d','workspace','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--workspace\x20<name>','Campaign\x20name','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','parent-segment','--in\x20<database>','job','Revision\x20name\x20(default:\x20timestamp)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Workspace\x20management','sonnet','length','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Email\x20template\x20management','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Email\x20subject\x20template','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','--attributes-file\x20<file>','view\x20<name-or-path>','agent','fields\x20[name]','argumentTerm','padWidth','push\x20[file]','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','workflows\x20[project]',',\x20version\x20','--rule\x20<json>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','commandUsage','Show\x20email\x20template\x20details','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Output\x20as\x20JSON\x20Lines','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Master\x20table\x20name','[DEPRECATED]\x20Segment\x20folder\x20management','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','validate\x20[file]','required','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--model\x20<name>','preview\x20[file]','--description\x20<text>','auth','attempt:','CDP\x20Journey\x20Orchestration\x20commands','session','--delete','help','--plaintext\x20<text>','profiles','view\x20[name]','Skip\x20population\x20counting','List\x20all\x20users\x20in\x20the\x20account','Email\x20sender\x20ID\x20for\x20delivery','template','isTTY','--reason\x20<text>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Attributes\x20from\x20JSON\x20file','show\x20[segment_name]','list\x20[project]','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--trace','Open\x20segment\x20in\x20web\x20browser','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','show\x20[table]','kill\x20<job-id>','Setup\x20API\x20key\x20authentication\x20interactively','--debug','after','trino','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','102KwfxeX','--max-tool-iterations\x20<n>','clear','-d,\x20--database\x20<database>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--version','List\x20all\x20data\x20connections','Parent\x20folder\x20name\x20for\x20nested\x20folders','hidden','folder','--include-retried','--prompt\x20<text>','--rule-file\x20<file>','--site\x20<site>','models','1908533jZtTIy','download\x20<project-name>\x20[output-dir]','resume\x20<name-or-id>','restore\x20<folder>','project','-X,\x20--method\x20<method>','build-info.json','claude-4.5-sonnet','--job-type\x20<type>','desc\x20[name]','history\x20[chat-id]','--color','--name\x20<text>','--dry-run','stdout','Set\x20operation\x20timeout\x20in\x20seconds','GET','journey','createAsync','chat\x20[message...]','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','api\x20[endpoint]','injectIntoOptions','Commands:','Show\x20agent\x20details','isArray','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','port','chats','--parent-folder\x20<name>','Enable\x20verbose\x20logging','pull\x20[name]','\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','tdx\x20','Interactive\x20chat\x20selector','User\x20management\x20commands','Workflow\x20project\x20management','--system-prompt\x20<text>','kill','Parent\x20segment\x20management','context','debug','delete\x20<name>','Show\x20workspace\x20details','site','Authentication\x20management','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Include\x20retried\x20attempts\x20(for\x20list)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','--stage\x20<name>','Database\x20name\x20(default:\x20information_schema)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Save\x20output\x20to\x20file','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Reason\x20for\x20killing\x20the\x20attempt','-y,\x20--yes','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','us01','--temperature\x20<n>','0.7','--include-stats','Limit\x20number\x20of\x20rows','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Pause\x20a\x20running\x20journey','Table\x20management\x20commands','8108ylepbJ','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','LLM\x20project\x20to\x20use\x20(overrides\x20context)','use\x20<project-name>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20journeys\x20in\x20current\x20context','buildTime','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Show\x20only\x20master\x20table\x20validation','requiredOption','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--type\x20<api_type>','Update\x20an\x20email\x20template','-o,\x20--output\x20<file>','Make\x20segment\x20invisible\x20(default:\x20visible)','action','--schedule-type\x20<type>','List\x20jobs','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','--status\x20<status>','run','-f,\x20--file\x20<path>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--database\x20<db>','tables\x20[pattern]','\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','End\x20time\x20filter\x20(ISO\x208601\x20format)','workflow','Campaign\x20management','jobs','includes','Agent\x20name','--add-behaviors-file\x20<file>','--no-count-population','Force\x20retry\x20even\x20if\x20not\x20failed','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','parents\x20[pattern]','show\x20<job-id>','Workflow\x20session\x20management','information_schema','Show\x20campaign\x20details','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Updated\x20timezone','status','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','[action]','delete\x20<name-or-id>','list','logLevel','Database\x20management\x20commands','argv','Run\x20Trino\x20query\x20with\x20streaming\x20results','list\x20[path]','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','--invisible','subcommandDescription','option'];a2_0x1409=function(){return _0x55e3c6;};return a2_0x1409();}authCmd['action'](runAuthStatusCommand),authCmd['command'](a2_0x2c6ba3(0x169))['description']('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x2c6ba3(0x14d)](runAuthStatusCommand),authCmd[a2_0x2c6ba3(0x25d)]('setup')['description'](a2_0x2c6ba3(0xe8))[a2_0x2c6ba3(0x204)](a2_0x2c6ba3(0xea),a2_0x2c6ba3(0x11c))['action'](async _0x33d219=>{const _0x38c380=a2_0x2c6ba3,_0x41a031=new AuthSetupCommand(),_0x14f699=program[_0x38c380(0x23a)](),_0x446a98=await createTDXInstance(_0x14f699),_0x517d63=await _0x41a031[_0x38c380(0x152)]({'options':{..._0x14f699,..._0x33d219},'args':[],'tdx':_0x446a98});process['exit'](_0x517d63);}),authCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xef))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x260))[a2_0x2c6ba3(0x204)]('after',a2_0x2c6ba3(0x1f4))[a2_0x2c6ba3(0x14d)](async _0x2b9a6f=>{const _0x57c113=a2_0x2c6ba3,_0xa600c=new AuthClearCommand(),_0x54913b=program[_0x57c113(0x23a)](),_0xb9db1e=await _0xa600c[_0x57c113(0x152)]({'options':{..._0x54913b,..._0x2b9a6f},'args':[],'tdx':null});process[_0x57c113(0x298)](_0xb9db1e);});const userCmd=program['command'](a2_0x2c6ba3(0x17f))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x11f)),userListAction=async _0x3fc50b=>{const _0x43366d=a2_0x2c6ba3,_0x958efe=new UserListCommand(),_0x182f6d=program[_0x43366d(0x23a)](),_0xb9c43a=await createTDXInstance(_0x182f6d),_0x11546e=await _0x958efe[_0x43366d(0x152)]({'options':{..._0x182f6d,..._0x3fc50b},'args':[],'tdx':_0xb9c43a});process[_0x43366d(0x298)](_0x11546e);};userCmd[a2_0x2c6ba3(0x14d)](async _0x47ea57=>{const _0x2b5e4f=a2_0x2c6ba3,_0x49e302=new UserCommand(),_0x27c97c=program[_0x2b5e4f(0x23a)](),_0x168f71=await createTDXInstance(_0x27c97c),_0x2974cf=await _0x49e302[_0x2b5e4f(0x152)]({'options':{..._0x27c97c,..._0x47ea57},'args':[],'tdx':_0x168f71});process['exit'](_0x2974cf);}),userCmd['command'](a2_0x2c6ba3(0x16d))['description'](a2_0x2c6ba3(0xd8))[a2_0x2c6ba3(0x14d)](userListAction),program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x272))['description'](a2_0x2c6ba3(0x262))[a2_0x2c6ba3(0x14d)](userListAction),program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xd5))[a2_0x2c6ba3(0x1b4)]('List\x20all\x20available\x20profiles')[a2_0x2c6ba3(0x14d)](async _0x16515f=>{const _0x53e154=a2_0x2c6ba3,_0x22d2c8=new ProfilesCommand(),_0x16411a=program['opts'](),_0x3ba380=await _0x22d2c8[_0x53e154(0x152)]({'options':{..._0x16411a,..._0x16515f},'args':[],'tdx':null});process[_0x53e154(0x298)](_0x3ba380);});const engageCmd=program['command']('engage')['description'](a2_0x2c6ba3(0x116)),createEngageAction=_0x49c9fb=>{return async(_0x14cc88,_0x1bdd08)=>{const _0x2e7140=a2_0x5e18,_0x248162=new _0x49c9fb(),_0x2a29f9=program[_0x2e7140(0x23a)](),_0x5ae540=await createTDXInstance(_0x2a29f9),_0x100b81=await _0x248162[_0x2e7140(0x152)]({'options':{..._0x2a29f9,..._0x1bdd08},'args':[_0x14cc88],'tdx':_0x5ae540});process['exit'](_0x100b81);};},createEngageNoArgAction=_0x56e45c=>{return async _0x51ae10=>{const _0x41dfb7=a2_0x5e18,_0x342583=new _0x56e45c(),_0x30029e=program[_0x41dfb7(0x23a)](),_0x87e582=await createTDXInstance(_0x30029e),_0x89bfbd=await _0x342583['run']({'options':{..._0x30029e,..._0x51ae10},'args':[],'tdx':_0x87e582});process['exit'](_0x89bfbd);};},campaignCmd=engageCmd['command']('campaign')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x15a)),campaignListAction=async(_0x304fcc,_0x309514)=>{const _0x458223=a2_0x2c6ba3,_0x280b11=new EngageCampaignsCommand(),_0xb48fff=program[_0x458223(0x23a)](),_0x3bf0be=await createTDXInstance(_0xb48fff),_0x1691de=await _0x280b11['run']({'options':{..._0xb48fff,..._0x309514},'args':_0x304fcc?[_0x304fcc]:[],'tdx':_0x3bf0be});process[_0x458223(0x298)](_0x1691de);};campaignCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x268))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x223))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x213),a2_0x2c6ba3(0x24a))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x151),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x2c6ba3(0x176)]('--workspace\x20<name>',a2_0x2c6ba3(0x17c))['action'](campaignListAction),engageCmd['command']('campaigns\x20[pattern]')[a2_0x2c6ba3(0x1b4)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x213),a2_0x2c6ba3(0x24a))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x151),a2_0x2c6ba3(0xdd))[a2_0x2c6ba3(0x176)]('--workspace\x20<name>',a2_0x2c6ba3(0x17c))[a2_0x2c6ba3(0x14d)](campaignListAction),campaignCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1ee))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x166))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa0),a2_0x2c6ba3(0x17c))[a2_0x2c6ba3(0x176)]('--full',a2_0x2c6ba3(0x1c8))[a2_0x2c6ba3(0x14d)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x19d))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x8f))[a2_0x2c6ba3(0x147)]('--name\x20<name>',a2_0x2c6ba3(0xa1))[a2_0x2c6ba3(0x147)](a2_0x2c6ba3(0x213),a2_0x2c6ba3(0x185))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa0),a2_0x2c6ba3(0x91))['option'](a2_0x2c6ba3(0x270),a2_0x2c6ba3(0x1c0))['option']('--segment\x20<path>',a2_0x2c6ba3(0x1cb))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x285),a2_0x2c6ba3(0xd9))['option']('--json-columns\x20<cols>',a2_0x2c6ba3(0x26d))['option']('--start-at\x20<datetime>',a2_0x2c6ba3(0x234))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x24d),a2_0x2c6ba3(0xca))[a2_0x2c6ba3(0x14d)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1d9))[a2_0x2c6ba3(0x1b4)]('Update\x20a\x20campaign')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa0),a2_0x2c6ba3(0x17c))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x8c),'New\x20campaign\x20name')['option']('--description\x20<desc>',a2_0x2c6ba3(0x1c0))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x80),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x285),a2_0x2c6ba3(0xd9))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1af),a2_0x2c6ba3(0x26d))[a2_0x2c6ba3(0x176)]('--start-at\x20<datetime>',a2_0x2c6ba3(0x234))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x24d),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x2c6ba3(0x14d)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x16c))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x281))[a2_0x2c6ba3(0x176)]('--workspace\x20<name>',a2_0x2c6ba3(0x17c))['option'](a2_0x2c6ba3(0x22c),'Skip\x20confirmation\x20prompt')[a2_0x2c6ba3(0x14d)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x9a))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa0),a2_0x2c6ba3(0x17c))[a2_0x2c6ba3(0x14d)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')['description'](a2_0x2c6ba3(0x27e))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa0),a2_0x2c6ba3(0x17c))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xfe))[a2_0x2c6ba3(0x1b4)]('Resume\x20a\x20paused\x20campaign')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa0),a2_0x2c6ba3(0x17c))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x191))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1a6))[a2_0x2c6ba3(0x176)]('--workspace\x20<name>',a2_0x2c6ba3(0x17c))[a2_0x2c6ba3(0x14d)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x2c6ba3(0xda))['description'](a2_0x2c6ba3(0xad)),templateListAction=async(_0x56f3b5,_0x2cb681)=>{const _0x4043b6=a2_0x2c6ba3,_0xdb9a68=new EngageTemplatesCommand(),_0x26a5cb=program[_0x4043b6(0x23a)](),_0x1e0344=await createTDXInstance(_0x26a5cb),_0x3cec73=await _0xdb9a68[_0x4043b6(0x152)]({'options':{..._0x26a5cb,..._0x2cb681},'args':_0x56f3b5?[_0x56f3b5]:[],'tdx':_0x1e0344});process[_0x4043b6(0x298)](_0x3cec73);};templateCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x268))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x269))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa0),a2_0x2c6ba3(0x17c))[a2_0x2c6ba3(0x14d)](templateListAction),engageCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x253))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0xa2))[a2_0x2c6ba3(0x176)]('--workspace\x20<name>',a2_0x2c6ba3(0x17c))['action'](templateListAction),templateCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1ee))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0xbf))[a2_0x2c6ba3(0x176)]('--workspace\x20<name>','Workspace\x20name')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x259),a2_0x2c6ba3(0x1c8))[a2_0x2c6ba3(0x14d)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x2c6ba3(0x25d)]('create')[a2_0x2c6ba3(0x1b4)]('Create\x20an\x20email\x20template')['requiredOption']('--name\x20<name>',a2_0x2c6ba3(0x248))[a2_0x2c6ba3(0x147)](a2_0x2c6ba3(0x1e4),a2_0x2c6ba3(0xaf))[a2_0x2c6ba3(0x147)]('--html\x20<html>','HTML\x20template\x20content')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa0),a2_0x2c6ba3(0x91))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xd4),'Plaintext\x20template\x20content')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x1fb),a2_0x2c6ba3(0x243))[a2_0x2c6ba3(0x14d)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1d9))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x14a))[a2_0x2c6ba3(0x176)]('--workspace\x20<name>',a2_0x2c6ba3(0x17c))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x8c),a2_0x2c6ba3(0x1e0))[a2_0x2c6ba3(0x176)]('--subject\x20<subject>',a2_0x2c6ba3(0xaf))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x250),'HTML\x20template\x20content')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xd4),a2_0x2c6ba3(0x178))[a2_0x2c6ba3(0x14d)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x2c6ba3(0x16c))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1ea))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0xa0),a2_0x2c6ba3(0x17c))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x22c),'Skip\x20confirmation\x20prompt')[a2_0x2c6ba3(0x14d)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x9e))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0xa9)),workspaceListAction=async(_0x5aa39e,_0x39fc70)=>{const _0x3972d3=a2_0x2c6ba3,_0x3095ef=new EngageWorkspacesCommand(),_0x1f0e1d=program[_0x3972d3(0x23a)](),_0x18f97a=await createTDXInstance(_0x1f0e1d),_0x15bc14=await _0x3095ef['run']({'options':{..._0x1f0e1d,..._0x39fc70},'args':_0x5aa39e?[_0x5aa39e]:[],'tdx':_0x18f97a});process[_0x3972d3(0x298)](_0x15bc14);};workspaceCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x268))[a2_0x2c6ba3(0x1b4)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x2c6ba3(0x14d)](workspaceListAction),engageCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x201))[a2_0x2c6ba3(0x1b4)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x2c6ba3(0x14d)](workspaceListAction),workspaceCmd[a2_0x2c6ba3(0x25d)]('show\x20<name-or-id>')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x127))[a2_0x2c6ba3(0x176)]('--full',a2_0x2c6ba3(0x1c8))[a2_0x2c6ba3(0x14d)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x19d))[a2_0x2c6ba3(0x1b4)]('Create\x20a\x20workspace')['requiredOption']('--name\x20<name>',a2_0x2c6ba3(0x17c))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x270),a2_0x2c6ba3(0x25c))[a2_0x2c6ba3(0x14d)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1d9))['description']('Update\x20a\x20workspace')[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x8c),a2_0x2c6ba3(0x92))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x270),'Workspace\x20description')[a2_0x2c6ba3(0x14d)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command'](a2_0x2c6ba3(0x16c))[a2_0x2c6ba3(0x1b4)]('Delete\x20a\x20workspace')[a2_0x2c6ba3(0x176)]('--yes','Skip\x20confirmation\x20prompt')[a2_0x2c6ba3(0x14d)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1cd))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x167))[a2_0x2c6ba3(0x14d)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x2c6ba3(0x25d)]('connection')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1fa)),connectionListAction=async _0x2f80f6=>{const _0x3047f4=a2_0x2c6ba3,_0x577ffb=new ConnectionListCommand(),_0x58fbe7=program[_0x3047f4(0x23a)](),_0x3b65dd=await createTDXInstance(_0x58fbe7),_0x5918c0=await _0x577ffb[_0x3047f4(0x152)]({'options':{..._0x58fbe7,..._0x2f80f6},'args':[],'tdx':_0x3b65dd});process[_0x3047f4(0x298)](_0x5918c0);};connectionCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x16d))['description'](a2_0x2c6ba3(0xf3))[a2_0x2c6ba3(0x14d)](connectionListAction),program[a2_0x2c6ba3(0x25d)]('connections',{'hidden':!![]})[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x96))[a2_0x2c6ba3(0x14d)](connectionListAction),connectionCmd['command'](a2_0x2c6ba3(0x261))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x294))[a2_0x2c6ba3(0x14d)](async(_0x1cb1fc,_0x1ec3f4)=>{const _0x58d76a=a2_0x2c6ba3,_0x103203=new ConnectionShowCommand(),_0x37c049=program[_0x58d76a(0x23a)](),_0x446ab3=await createTDXInstance(_0x37c049),_0xc313ef=await _0x103203[_0x58d76a(0x152)]({'options':{..._0x37c049,..._0x1ec3f4},'args':[_0x1cb1fc],'tdx':_0x446ab3});process['exit'](_0xc313ef);});const journeyCmd=program[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x10d))['description'](a2_0x2c6ba3(0xd0));journeyCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x268))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x143))[a2_0x2c6ba3(0x14d)](async(_0x58699f,_0xaa8e15)=>{const _0x3fc190=a2_0x2c6ba3,_0x48fb22=new JourneyListCommand(),_0x272c41=program[_0x3fc190(0x23a)](),_0x37db59=await createTDXInstance(_0x272c41),_0x38e31b=await _0x48fb22['run']({'options':{..._0x272c41,..._0xaa8e15},'args':_0x58699f?[_0x58699f]:[],'tdx':_0x37db59});process[_0x3fc190(0x298)](_0x38e31b);}),journeyCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0xb2))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x81))['option'](a2_0x2c6ba3(0x139),'Include\x20execution\x20statistics')[a2_0x2c6ba3(0x14d)](async(_0x1c81f6,_0x336e7a)=>{const _0x182524=a2_0x2c6ba3,_0x26480c=new JourneyViewCommand(),_0x4a3960=program['opts'](),_0x51a041=await createTDXInstance(_0x4a3960),_0x107c94=await _0x26480c[_0x182524(0x152)]({'options':{..._0x4a3960,..._0x336e7a},'args':[_0x1c81f6],'tdx':_0x51a041});process[_0x182524(0x298)](_0x107c94);}),journeyCmd[a2_0x2c6ba3(0x25d)]('stats\x20<name-or-path>')[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x1c3))['option'](a2_0x2c6ba3(0x12d),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x2c6ba3(0x14d)](async(_0x2517cf,_0x27e785)=>{const _0x429015=a2_0x2c6ba3,_0x19cf9a=new JourneyStatsCommand(),_0x5dc8ea=program[_0x429015(0x23a)](),_0x240d50=await createTDXInstance(_0x5dc8ea),_0x443258=await _0x19cf9a[_0x429015(0x152)]({'options':{..._0x5dc8ea,..._0x27e785},'args':[_0x2517cf],'tdx':_0x240d50});process['exit'](_0x443258);}),journeyCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x296))[a2_0x2c6ba3(0x1b4)](a2_0x2c6ba3(0x13c))['action'](async(_0x1a2ca2,_0x355aa2)=>{const _0x183afc=a2_0x2c6ba3,_0x163896=new JourneyPauseCommand(),_0x3e492e=program['opts'](),_0x3d820f=await createTDXInstance(_0x3e492e),_0x330e85=await _0x163896[_0x183afc(0x152)]({'options':{..._0x3e492e,..._0x355aa2},'args':[_0x1a2ca2],'tdx':_0x3d820f});process['exit'](_0x330e85);}),journeyCmd[a2_0x2c6ba3(0x25d)](a2_0x2c6ba3(0x1eb))[a2_0x2c6ba3(0x1b4)]('Resume\x20a\x20paused\x20journey')['action'](async(_0xa8ae61,_0x2ed23c)=>{const _0x242f81=a2_0x2c6ba3,_0xb9f9f8=new JourneyResumeCommand(),_0x51945f=program['opts'](),_0x38b92a=await createTDXInstance(_0x51945f),_0x85d050=await _0xb9f9f8[_0x242f81(0x152)]({'options':{..._0x51945f,..._0x2ed23c},'args':[_0xa8ae61],'tdx':_0x38b92a});process[_0x242f81(0x298)](_0x85d050);}),journeyCmd[a2_0x2c6ba3(0x25d)]('pull\x20[name]')['description'](a2_0x2c6ba3(0x1c1))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x133),a2_0x2c6ba3(0x19b))[a2_0x2c6ba3(0x176)](a2_0x2c6ba3(0x109),a2_0x2c6ba3(0xc4))[a2_0x2c6ba3(0x14d)](async(_0xe67d98,_0x1a4a05)=>{const _0x14c64c=a2_0x2c6ba3,_0x2f8640=new JourneyPullCommand(),_0x21f842=program[_0x14c64c(0x23a)](),_0x3dbb88=await createTDXInstance(_0x21f842),_0x15d58a=await _0x2f8640['run']({'options':{..._0x21f842,..._0x1a4a05},'args':_0xe67d98?[_0xe67d98]:[],'tdx':_0x3dbb88});process['exit'](_0x15d58a);});export{program};export function runCLI(){const _0x433156=a2_0x2c6ba3;program[_0x433156(0x299)](process['argv']);!process[_0x433156(0x170)][_0x433156(0x256)](0x2)['length']&&program['outputHelp']();const _0x1f1ca3=packageJson[_0x433156(0x221)];process['stderr'][_0x433156(0xdb)]&&process[_0x433156(0x170)][_0x433156(0xab)]>0x2&&!_0x1f1ca3[_0x433156(0x15c)](_0x433156(0x1a2))&&checkForUpdate(_0x1f1ca3)[_0x433156(0x20c)](_0x1533c2=>{_0x1533c2&&displayUpdateNotification(_0x1533c2);})[_0x433156(0x1a4)](()=>{});}
|
|
1
|
+
const a2_0x424d2f=a2_0x1c8c;(function(_0x3c6922,_0x42a0ff){const _0x4ba609=a2_0x1c8c,_0x4f3b4f=_0x3c6922();while(!![]){try{const _0x15407c=parseInt(_0x4ba609(0x100))/0x1+-parseInt(_0x4ba609(0x247))/0x2*(parseInt(_0x4ba609(0x235))/0x3)+parseInt(_0x4ba609(0x166))/0x4*(parseInt(_0x4ba609(0x14a))/0x5)+-parseInt(_0x4ba609(0x1e1))/0x6*(parseInt(_0x4ba609(0x19c))/0x7)+-parseInt(_0x4ba609(0x28c))/0x8+parseInt(_0x4ba609(0x12f))/0x9*(-parseInt(_0x4ba609(0x18b))/0xa)+-parseInt(_0x4ba609(0x13a))/0xb*(-parseInt(_0x4ba609(0x1a8))/0xc);if(_0x15407c===_0x42a0ff)break;else _0x4f3b4f['push'](_0x4f3b4f['shift']());}catch(_0x1b48f3){_0x4f3b4f['push'](_0x4f3b4f['shift']());}}}(a2_0x1e7b,0x9a688));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{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';function a2_0x1c8c(_0x1190f2,_0x23e5c7){_0x1190f2=_0x1190f2-0xc4;const _0x1e7bd0=a2_0x1e7b();let _0x1c8c81=_0x1e7bd0[_0x1190f2];return _0x1c8c81;}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_0x424d2f(0x18f)](readFileSync(join(__dirname,a2_0x424d2f(0x114)),a2_0x424d2f(0x134)));function a2_0x1e7b(){const _0x3be18d=['use\x20<project-name>','auth','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Describe\x20table\x20schema','Folder\x20description','Attributes\x20from\x20JSON\x20file','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Submit\x20a\x20job','Show\x20master\x20table\x20sample\x20data','-f,\x20--file\x20<path>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','optionDescription','backup\x20<name>','--site\x20<site>','-r,\x20--recursive','agent','Read\x20request\x20body\x20from\x20file','--json-columns\x20<cols>','\x20-\x20built\x20','Attributes\x20as\x20JSON\x20string','addHelpText','Agent\x20description','information_schema','delete\x20<agent-name>','filter','--plaintext\x20<text>','196716jnopKM','Project\x20description','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','then','--reason\x20<text>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--limit\x20<n>','Include\x20subtasks\x20in\x20tasks\x20output','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--new','--customer-group\x20<json>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','pull\x20[name]','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Campaign\x20type\x20(email\x20or\x20push)','--add-attributes-file\x20<file>','run','30vXNzrY','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Launch\x20a\x20campaign','--rule\x20<json>','--session-time\x20<time>','templates\x20[pattern]','join','attempt:','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--behavior\x20[name]','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--trace','Show\x20agent\x20details','tdx\x20','Workspace\x20name','after','chats','kill\x20<job-id>','Run\x20Trino\x20query\x20with\x20streaming\x20results','Update\x20an\x20email\x20template','format','sessions\x20[project]','Duplicate\x20a\x20campaign','Database\x20to\x20query\x20(default:\x20information_schema)','--stage\x20<name>','Force\x20retry\x20even\x20if\x20not\x20failed','stats\x20<name-or-path>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Filtering\x20rule\x20as\x20JSON\x20string','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','pull\x20[parent_or_file]','agents\x20[pattern]','slice','--customer-group-file\x20<file>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Master\x20table\x20name','status','[action]','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','run\x20[name]','New\x20workspace\x20name','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','info\x20[segment_name]','Workflow\x20(Digdag)\x20management\x20commands','Show\x20stats\x20for\x20specific\x20stage','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','CDP\x20Journey\x20Orchestration\x20commands','--html\x20<html>','--dry-run','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','--skip-validation','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','List\x20all\x20users\x20in\x20the\x20account','Move\x20to\x20folder','--format\x20<format>','List\x20jobs','-v,\x20--verbose','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','list\x20[path]','sql\x20[name]','command','--agent\x20<name>','--database\x20<name>','8915104ttqiik','Create\x20segment\x20folder','alias','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Trino\x20catalog\x20(default:\x20td)','usage','trace','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Agent\x20reference\x20(project-name/agent-name)','--email-sender-id\x20<id>','Show\x20journey\x20details','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Skip\x20confirmation\x20prompts','--json','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','[options]\x20--\x20[claude-code-args...]','--output\x20<file>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','delete\x20<name-or-id>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','-1d','--name\x20<name>','argv','map','Master\x20database\x20name','repeat','Show\x20segment\x20details\x20(alias\x20for\x20view)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','parent',',\x20version\x20','Timezone\x20(e.g.,\x20America/Los_Angeles)','Delete\x20a\x20workspace','Resume\x20from\x20specific\x20task\x20(retry)','--debug','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','workspaces\x20[pattern]','engage','update\x20<name-or-id>','fields\x20[name]','Output\x20as\x20JSON\x20Lines','--params\x20<json>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--force','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Revision\x20name\x20(default:\x20timestamp)','--database\x20<db>','--name\x20<new-name>','colorFn','desc','catch','Create\x20a\x20new\x20campaign','\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','Maximum\x20tool\x20iterations\x20(default:\x204)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','hook','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Output\x20as\x20JSON','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Plaintext\x20template\x20content','statusline','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','4000','-o,\x20--output\x20<file>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','tables\x20[pattern]','requiredOption','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','-d,\x20--database\x20<name>','push\x20[file]','-X,\x20--method\x20<method>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','fields\x20[parent_name]','--in\x20<database>','commands','duplicate\x20<name-or-id>','resume\x20<name-or-path>','Clear\x20session\x20context','-y,\x20--yes','Show\x20the\x20most\x20recent\x20chat','gitRevision','Show\x20job\x20details','project','push\x20[parent_or_file]','create\x20<parent_name>\x20<folder_name>','isTTY','--delete','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Commands:','folders\x20<parent_name>','connections','show\x20<name>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','use\x20<name>','logLevel','Segment\x20description','stdout','length','[DEPRECATED]\x20Segment\x20folder\x20management','claude\x20[args...]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--schedule-option\x20<value>','Set\x20operation\x20timeout\x20in\x20seconds','push','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','show\x20<name-or-id>','--status\x20<status>','--clear','Resume\x20from\x20specific\x20task','query\x20[sql]','-w,\x20--web','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','attempts\x20[project]','Resume\x20a\x20paused\x20campaign','--editor-type\x20<type>','commandUsage','HTML\x20template\x20content','--llm-project\x20<name>','226305PwIYZW','_hidden','includes','--add-behaviors\x20<json>','DEBUG','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','segments\x20[path]','users','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20available\x20LLM\x20models','help','Get\x20job\x20results','view\x20[segment_name]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Email\x20template\x20management','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','sonnet','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','-u,\x20--use','../package.json','models','Setup\x20API\x20key\x20authentication\x20interactively','subcommandTerm','jsonl','segment','--color','opts','Open\x20parent\x20segment\x20in\x20web\x20browser','forEach','describe\x20[table]','--kind\x20<type>','--description\x20<text>','Export\x20journey(s)\x20as\x20YAML\x20files','--add-attributes\x20<json>','attempt','desc\x20[segment_name]','trino','databases\x20[pattern]','outputHelp','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Folder\x20name\x20for\x20organization','summary','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','-o,\x20--output\x20<folder>','--model\x20<name>','Save\x20output\x20to\x20file','9iXorYH','--catalog\x20<catalog>','--param\x20<key=value>','show\x20[table]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','utf-8','workspace','preview\x20[name]','LLM\x20agent\x20management','--starter-message\x20<text>','End\x20time\x20filter\x20(ISO\x208601\x20format)','28295597fqXDst','result\x20<job-id>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--version','retry','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','push\x20[project-name-or-dir]','--prompt\x20<text>','buildTime','New\x20campaign\x20name','activations\x20<segment_name>','--description\x20<desc>','\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','--full','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','5VJhVEz','update\x20<segment_name>','Updated\x20timezone','--include-subtasks','Show\x20only\x20master\x20table\x20validation','Read\x20SQL\x20query\x20from\x20file','--timezone\x20<tz>','Resume\x20a\x20paused\x20journey','--from\x20<timestamp>','--yes','campaigns\x20[pattern]','create','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--type\x20<type>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','--behaviors-file\x20<file>','-d,\x20--database\x20<database>','Add\x20behaviors\x20as\x20JSON\x20string','port','update\x20<name>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','show\x20<job-id>','launch\x20<name-or-id>','List\x20all\x20data\x20connections','description','use\x20<path>','--parent-folder\x20<name>','--max-depth\x20<depth>','2494556vWvzVT','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Skip\x20confirmation\x20prompt','claude-4.5-sonnet','Editor\x20type','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','json','isArray','user','Agent\x20name','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Set\x20or\x20show\x20parent\x20segment\x20context','error','Delete\x20a\x20campaign','Show\x20workspace\x20details','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Model\x20type\x20(default:\x20claude-4.5-sonnet)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','GET','--workspace\x20<name>','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--timeout\x20<seconds>','sql\x20[segment_name]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','set','required','parent_segment','job','--limit\x20<rows>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Continue\x20most\x20recent\x20conversation','jobs','setup','Pause\x20a\x20campaign','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','3992910WnASNA','Arguments:','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','Workflow\x20session\x20management','parse','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Add\x20attributes\x20as\x20JSON\x20string','delete\x20<project-name-or-id>','Show\x20segment\x20schema\x20(column\x20types)','chat\x20[message...]','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','create\x20<name>','--include-retried','create\x20<segment_name>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--no-proxy','Output\x20file\x20path','28cksscr','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Unknown\x20action:\x20','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','--schedule-type\x20<type>','get','option','Agent\x20prompt/instructions','Maximum\x20recursion\x20depth\x20(default:\x2010)','Options:','profile','Parent\x20segment\x20management','12gOoywA','action','--to\x20<timestamp>','Parent\x20segment\x20description','download\x20<project-name>\x20[output-dir]','Include\x20retried\x20attempts','TRACE','Alias\x20for\x20--database\x20(natural\x20language\x20style)','log','--start-at\x20<datetime>','allowUnknownOption','update\x20<agent-name>','Behaviors\x20from\x20JSON\x20file','--project\x20<name>','.dev','Email\x20subject\x20template','--in\x20<name>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--attributes\x20<json>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Workspace\x20name\x20(required)','--revision\x20<revision>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','workflow','validate\x20[file]','subcommandDescription','--job-type\x20<type>','view\x20[name]','exit','argumentTerm','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--no-count-population','--master','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','table','tsv','Customer\x20group\x20as\x20JSON\x20string','--interval\x20<range>','--temperature\x20<n>','argument','INFO','[attempt-id]','--table\x20<table>','Email\x20sender\x20ID\x20for\x20delivery','Create\x20a\x20workspace','Show\x20campaign\x20details','Delete\x20an\x20email\x20template','Show\x20web\x20console\x20URLs\x20for\x20segments','Workspace\x20description','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Include\x20execution\x20statistics','version','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','registeredArguments','--parent-segment\x20<name>','438834kdBlVE','Add\x20behaviors\x20from\x20JSON\x20file','workflows\x20[project]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Request\x20body\x20as\x20JSON\x20string','Table\x20management\x20commands','Parent\x20folder\x20name\x20for\x20nested\x20folders','Customer\x20group\x20from\x20JSON\x20file','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Campaign\x20management','User\x20management\x20commands','--segment\x20<path>','--tsv','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--invisible','--name\x20<text>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','padWidth','Enable\x20verbose\x20logging','list\x20[project]','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','connection','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','site','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--jsonl','desc\x20[name]','List\x20all\x20available\x20profiles','projects\x20[pattern]','--attribute\x20[name]','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','Update\x20an\x20existing\x20agent','name','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Template\x20name','list\x20[pattern]','LLM\x20project\x20management','Starter\x20message','--folder\x20<name>','Update\x20a\x20workspace','aliases','Database\x20name\x20(default:\x20information_schema)','Include\x20retried\x20attempts\x20(for\x20list)','database','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','--from-task\x20<task>','CDP\x20segment\x20management\x20commands','Attempt\x20ID','restore\x20<folder>','Limit\x20number\x20of\x20rows','proxy','list','--enriched','System\x20prompt/instructions\x20(default:\x20empty)','--subject\x20<subject>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)'];a2_0x1e7b=function(){return _0x3be18d;};return a2_0x1e7b();}let buildInfo={};try{buildInfo=JSON[a2_0x424d2f(0x18f)](readFileSync(join(__dirname,'build-info.json'),'utf-8'));}catch{}if(process[a2_0x424d2f(0x2a3)][a2_0x424d2f(0x102)](a2_0x424d2f(0x13d))){let versionOutput=a2_0x424d2f(0x254)+packageJson['version'];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x424d2f(0x143)]&&(versionOutput+=a2_0x424d2f(0x22d)+buildInfo['buildTime']),console[a2_0x424d2f(0x1b0)](versionOutput),process[a2_0x424d2f(0x1c4)](0x0);}const program=new Command();let description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo['gitRevision']?description+=',\x20version\x20'+packageJson['version']+'\x20('+buildInfo[a2_0x424d2f(0xd9)]+')':description+=a2_0x424d2f(0x2aa)+packageJson['version'];program[a2_0x424d2f(0x202)]('tdx')[a2_0x424d2f(0x162)](description),program[a2_0x424d2f(0x1a2)]('-p,\x20--profile\x20<name>',a2_0x424d2f(0x1bb))['option'](a2_0x424d2f(0x228),a2_0x424d2f(0x1cb),'us01')['option'](a2_0x424d2f(0x280),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x424d2f(0x1a2)]('--table',a2_0x424d2f(0x170))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x299),a2_0x424d2f(0x133))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0xcb))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ed),a2_0x424d2f(0x279))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x29d),a2_0x424d2f(0x12e))[a2_0x424d2f(0x1a2)]('--limit\x20<number>',a2_0x424d2f(0x27a))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x11a),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])['option']('--no-color','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])['option'](a2_0x424d2f(0x282),a2_0x424d2f(0x1f3),![])['option'](a2_0x424d2f(0x2ae),a2_0x424d2f(0x184))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x252),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x17c),a2_0x424d2f(0xef),'30')['option'](a2_0x424d2f(0x278),'Preview\x20operation\x20without\x20executing',![])[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),'Skip\x20confirmation\x20prompts',![])[a2_0x424d2f(0x1a2)]('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xcd),'Database\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x424d2f(0x1b8),a2_0x424d2f(0x1af))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1e0),a2_0x424d2f(0x251))['option'](a2_0x424d2f(0xff),a2_0x424d2f(0x2c7)),program['configureHelp']({'formatHelp':(_0x4ff960,_0x1eef09)=>{const _0x59613a=a2_0x424d2f,_0x1e9291=_0x1eef09[_0x59613a(0x1f2)](_0x4ff960,_0x1eef09),_0x465904=0x2,_0x1b48ff=0x2;function _0x1ce40f(_0x678819){const _0x3d6891=_0x59613a,_0x306e64=_0x678819;return!!(_0x306e64[_0x3d6891(0x101)]||_0x306e64['hidden']);}function _0x4bed51(_0x47b8a8,_0x317bab){if(_0x317bab){const _0x1689bf=''+_0x47b8a8['padEnd'](_0x1e9291+_0x1b48ff)+_0x317bab;return _0x1689bf;}return _0x47b8a8;}function _0x1b2b42(_0xa22775){const _0x3a4cb2=_0x59613a;return _0xa22775[_0x3a4cb2(0x24d)]('\x0a')['replace'](/^/gm,'\x20'[_0x3a4cb2(0x2a6)](_0x465904));}const _0x115d17=[];_0x115d17[_0x59613a(0xf0)]('Usage:\x20'+_0x1eef09[_0x59613a(0xfd)](_0x4ff960));const _0x477812=_0x1eef09['commandDescription'](_0x4ff960);_0x477812&&(_0x115d17[_0x59613a(0xf0)](''),_0x115d17['push'](_0x477812));const _0x2ea91e=_0x4ff960[_0x59613a(0xd3)][_0x59613a(0x233)](_0xf7822a=>!_0x1ce40f(_0xf7822a));if(_0x2ea91e['length']>0x0){if(_0x4ff960['name']()==='tdx'){const _0x55f25d=_0x4ff960['opts'](),_0x54fdb1=!_0x55f25d['noColor']&&process[_0x59613a(0xe9)][_0x59613a(0xde)],_0x4561e4=COMMAND_CATEGORIES,_0x255d3e=(_0x596e79,_0x34f274)=>_0x54fdb1?_0x34f274(_0x596e79):_0x596e79,_0xb40b14=new Map();_0x2ea91e['forEach'](_0x5b9958=>{const _0x494d7f=_0x59613a;_0xb40b14[_0x494d7f(0x17f)](_0x5b9958[_0x494d7f(0x202)](),_0x5b9958);}),_0x4561e4[_0x59613a(0x11d)](_0x368de2=>{const _0x5aa0ce=_0x59613a,_0x44b9b9=_0x368de2['commands']['flatMap'](_0x5d48a4=>_0xb40b14[_0x5aa0ce(0x1a1)](_0x5d48a4)??[]);if(_0x44b9b9[_0x5aa0ce(0xea)]>0x0){_0x115d17[_0x5aa0ce(0xf0)](''),_0x115d17[_0x5aa0ce(0xf0)](_0x255d3e(_0x368de2[_0x5aa0ce(0x202)]+':',_0x368de2[_0x5aa0ce(0x2bc)]));const _0x2a68b5=_0x44b9b9[_0x5aa0ce(0x2a4)](_0xafdb5d=>{const _0x38da5f=_0x5aa0ce,_0x2ea50a=_0x1eef09[_0x38da5f(0x117)](_0xafdb5d),_0x58e392=_0x1eef09['subcommandDescription'](_0xafdb5d);return _0x4bed51(_0x2ea50a,_0x58e392);});_0x115d17['push'](_0x1b2b42(_0x2a68b5));}}),_0x115d17[_0x59613a(0xf0)](''),_0x115d17['push'](_0x59613a(0x10f));}else{const _0x5d6844=_0x2ea91e[_0x59613a(0x2a4)](_0x102329=>{const _0x1f69fb=_0x59613a,_0x399ec9=_0x1eef09[_0x1f69fb(0x117)](_0x102329),_0x58e986=_0x1eef09[_0x1f69fb(0x1c1)](_0x102329);return _0x4bed51(_0x399ec9,_0x58e986);});_0x115d17[_0x59613a(0xf0)](''),_0x115d17[_0x59613a(0xf0)](_0x59613a(0xe1)),_0x115d17[_0x59613a(0xf0)](_0x1b2b42(_0x5d6844));}}const _0x5ba5d8=_0x4ff960['options']['filter'](_0x5bea98=>!_0x1ce40f(_0x5bea98));if(_0x5ba5d8[_0x59613a(0xea)]>0x0){const _0x5b5c55=_0x5ba5d8[_0x59613a(0x2a4)](_0x3ef173=>{const _0x125dfc=_0x59613a,_0x1f2860=_0x1eef09['optionTerm'](_0x3ef173),_0x4af320=_0x1eef09[_0x125dfc(0x226)](_0x3ef173);return _0x4bed51(_0x1f2860,_0x4af320);});_0x115d17[_0x59613a(0xf0)](''),_0x115d17['push'](_0x59613a(0x1a5)),_0x115d17[_0x59613a(0xf0)](_0x1b2b42(_0x5b5c55));}const _0x55b1df=(_0x4ff960[_0x59613a(0x1df)]||[])['filter'](_0x37663f=>!_0x1ce40f(_0x37663f));if(_0x55b1df[_0x59613a(0xea)]>0x0){const _0x54d975=_0x55b1df[_0x59613a(0x2a4)](_0x38db85=>{const _0x1e2b54=_0x59613a,_0x5cbf81=_0x1eef09[_0x1e2b54(0x1c5)](_0x38db85),_0x3e955b=_0x1eef09['argumentDescription'](_0x38db85);return _0x4bed51(_0x5cbf81,_0x3e955b);});_0x115d17[_0x59613a(0xf0)](''),_0x115d17[_0x59613a(0xf0)](_0x59613a(0x18c)),_0x115d17[_0x59613a(0xf0)](_0x1b2b42(_0x54d975));}return _0x115d17[_0x59613a(0x24d)]('\x0a');},'subcommandTerm':_0x3855a1=>{const _0x25e860=a2_0x424d2f,_0x3f0071=(_0x3855a1[_0x25e860(0x1df)]||[])[_0x25e860(0x2a4)](_0x5bb67f=>_0x5bb67f[_0x25e860(0x180)]?'<'+_0x5bb67f[_0x25e860(0x202)]()+'>':'['+_0x5bb67f['name']()+']')[_0x25e860(0x24d)]('\x20'),_0x18d4da=_0x3855a1[_0x25e860(0x20a)](),_0x2f900b=_0x18d4da[_0x25e860(0xea)]>0x0?_0x3855a1[_0x25e860(0x202)]()+',\x20'+_0x18d4da[_0x25e860(0x24d)](',\x20'):_0x3855a1['name']();return _0x3f0071?_0x2f900b+'\x20'+_0x3f0071:_0x2f900b;}}),program[a2_0x424d2f(0x2c3)]('preAction',_0x594073=>{const _0x469fcf=a2_0x424d2f,_0xa05aac=_0x594073[_0x469fcf(0x11b)]();if(!_0xa05aac[_0x469fcf(0x25b)]){if(_0xa05aac[_0x469fcf(0x1cc)])_0xa05aac['format']='table';else{if(_0xa05aac['json'])_0xa05aac[_0x469fcf(0x25b)]=_0x469fcf(0x16c);else{if(_0xa05aac['jsonl'])_0xa05aac['format']=_0x469fcf(0x118);else _0xa05aac['tsv']&&(_0xa05aac[_0x469fcf(0x25b)]=_0x469fcf(0x1cd));}}}_0xa05aac['in']&&!_0xa05aac['database']&&(_0xa05aac['database']=_0xa05aac['in']);if(_0xa05aac[_0x469fcf(0x292)])_0xa05aac[_0x469fcf(0xe7)]=LogLevel[_0x469fcf(0x1ae)];else{if(_0xa05aac['debug'])_0xa05aac[_0x469fcf(0xe7)]=LogLevel[_0x469fcf(0x104)];else _0xa05aac[_0x469fcf(0xe7)]===undefined&&(_0xa05aac[_0x469fcf(0xe7)]=LogLevel[_0x469fcf(0x1d2)]);}});async function createTDXInstance(_0x534f2e){const _0x5ace68=a2_0x424d2f,_0xf6fe4=await GlobalContext['createAsync'](_0x534f2e);return _0xf6fe4['injectIntoOptions'](_0x534f2e),TDX[_0x5ace68(0x155)]({'site':_0xf6fe4[_0x5ace68(0x1f9)],'apiKey':_0xf6fe4['apiKey'],'logLevel':_0xf6fe4[_0x5ace68(0xe7)],'profile':_0xf6fe4[_0x5ace68(0x1a6)]});}const databaseCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x20d))[a2_0x424d2f(0x28e)]('db')['description']('Database\x20management\x20commands'),databaseListAction=async(_0x22f02f,_0x540005)=>{const _0x31f4bd=a2_0x424d2f,_0x1f2b2d=new DatabasesCommand(),_0x23a7cf=program[_0x31f4bd(0x11b)](),_0x26e543=await createTDXInstance(_0x23a7cf),_0xe6c3dd=await _0x1f2b2d[_0x31f4bd(0x246)]({'options':{..._0x23a7cf,..._0x540005},'args':_0x22f02f?[_0x22f02f]:[],'tdx':_0x26e543});process[_0x31f4bd(0x1c4)](_0xe6c3dd);};databaseCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program['command'](a2_0x424d2f(0x126),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x1e9))['action'](databaseListAction),program['command'](a2_0x424d2f(0x194))[a2_0x424d2f(0x162)](a2_0x424d2f(0x13c))[a2_0x424d2f(0x1a2)]('--agent\x20<ref>',a2_0x424d2f(0x294))[a2_0x424d2f(0x1a2)]('--model\x20<name>','Model\x20name\x20(default:\x20claude-4.5-sonnet)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1d0),'Temperature\x20(0.0-2.0,\x20default:\x200.7)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x23e),'Start\x20a\x20new\x20chat\x20session')[a2_0x424d2f(0x1a9)](async(_0x17fb25,_0x512868)=>{const _0xc55952=a2_0x424d2f,_0x3f7bbc=new ChatCommand(),_0x2a6579=program['opts'](),_0x39bd93=await createTDXInstance(_0x2a6579),_0x1b2e59=await _0x3f7bbc[_0xc55952(0x246)]({'options':{..._0x2a6579,..._0x512868},'args':_0x17fb25,'tdx':_0x39bd93});process[_0xc55952(0x1c4)](_0x1b2e59);});const apiCmd=program[a2_0x424d2f(0x289)]('api\x20[endpoint]')[a2_0x424d2f(0x12a)](a2_0x424d2f(0x1fa))[a2_0x424d2f(0x22f)](a2_0x424d2f(0x256),a2_0x424d2f(0x147))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xcf),a2_0x424d2f(0x111),a2_0x424d2f(0x178))[a2_0x424d2f(0x1a2)]('--data\x20<data>',a2_0x424d2f(0x1e5))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x224),a2_0x424d2f(0x22b))['option']('-H,\x20--header\x20<header>',a2_0x424d2f(0xe5),(_0x5d179c,_0x41f949)=>{return _0x41f949?[..._0x41f949,_0x5d179c]:[_0x5d179c];})[a2_0x424d2f(0x1a2)]('--type\x20<api_type>',a2_0x424d2f(0x2b8),'td')[a2_0x424d2f(0x1a9)](async(_0x4a25c7,_0x271332)=>{const _0x4152ea=a2_0x424d2f;if(!_0x4a25c7){apiCmd[_0x4152ea(0x10a)]();return;}const _0xe83f9=new ApiCommand(),_0x4c7932=program['opts'](),_0xfa718a=await createTDXInstance(_0x4c7932),_0x4443a4=await _0xe83f9[_0x4152ea(0x246)]({'options':{..._0x4c7932,..._0x271332},'args':[_0x4a25c7],'tdx':_0xfa718a});process['exit'](_0x4443a4);}),tableCmd=program[a2_0x424d2f(0x289)]('table')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1e6)),tableListAction=async(_0x41feb7,_0x461dee)=>{const _0x2a5475=a2_0x424d2f,_0x4d7daf=new TablesCommand(),_0x4cb098=program[_0x2a5475(0x11b)](),_0x2f7e86=await createTDXInstance(_0x4cb098);_0x461dee['in']&&(_0x461dee[_0x2a5475(0x20d)]=_0x461dee['in']);const _0x1a7b39=await _0x4d7daf[_0x2a5475(0x246)]({'options':{..._0x4cb098,..._0x461dee},'args':_0x41feb7?[_0x41feb7]:[],'tdx':_0x2f7e86});process['exit'](_0x1a7b39);};tableCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x424d2f(0x1a2)]('-d,\x20--database\x20<database>',a2_0x424d2f(0x13f))['option'](a2_0x424d2f(0xd2),a2_0x424d2f(0x1af))[a2_0x424d2f(0x1a9)](tableListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0xc9),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x269))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x15a),a2_0x424d2f(0x13f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd2),a2_0x424d2f(0x1af))[a2_0x424d2f(0x1a9)](tableListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0x132))[a2_0x424d2f(0x162)](a2_0x424d2f(0x2c2))[a2_0x424d2f(0x1a2)]('-d,\x20--database\x20<database>',a2_0x424d2f(0x283))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd2),a2_0x424d2f(0x1af))['action'](async(_0x3beea2,_0x22f40f)=>{const _0x2ccfae=a2_0x424d2f,_0xc25d90=new ShowCommand(),_0x1552c8=program[_0x2ccfae(0x11b)](),_0x58dd9e=await createTDXInstance(_0x1552c8);_0x22f40f['in']&&(_0x22f40f['database']=_0x22f40f['in']);const _0x1e5c5a=await _0xc25d90[_0x2ccfae(0x246)]({'options':{..._0x1552c8,..._0x22f40f},'args':_0x3beea2?[_0x3beea2]:[],'tdx':_0x58dd9e});process[_0x2ccfae(0x1c4)](_0x1e5c5a);}),program['command'](a2_0x424d2f(0x11e))[a2_0x424d2f(0x28e)](a2_0x424d2f(0x2bd))[a2_0x424d2f(0x162)](a2_0x424d2f(0x21e))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x15a),a2_0x424d2f(0x283))[a2_0x424d2f(0x1a2)]('--in\x20<database>',a2_0x424d2f(0x1af))[a2_0x424d2f(0x1a9)](async(_0x3a1978,_0x250a90)=>{const _0x3127b6=a2_0x424d2f,_0x12270c=new DescribeCommand(),_0x17cb33=program['opts'](),_0x4f48eb=await createTDXInstance(_0x17cb33);_0x250a90['in']&&(_0x250a90[_0x3127b6(0x20d)]=_0x250a90['in']);const _0x4353a3=await _0x12270c[_0x3127b6(0x246)]({'options':{..._0x17cb33,..._0x250a90},'args':_0x3a1978?[_0x3a1978]:[],'tdx':_0x4f48eb});process[_0x3127b6(0x1c4)](_0x4353a3);}),program['command'](a2_0x424d2f(0xf7))[a2_0x424d2f(0x162)](a2_0x424d2f(0x259))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x15a),a2_0x424d2f(0x25e))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd2),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x130),a2_0x424d2f(0x290))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x224),a2_0x424d2f(0x14f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x183),a2_0x424d2f(0x112),'40')[a2_0x424d2f(0x1a9)](async(_0x54c556,_0x462ec8)=>{const _0x42602f=a2_0x424d2f,_0x217e56=new QueryCommand(),_0x3d5094=program[_0x42602f(0x11b)](),_0x4effae=await createTDXInstance(_0x3d5094);_0x462ec8['in']&&(_0x462ec8[_0x42602f(0x20d)]=_0x462ec8['in']);const _0x2ec2a6=await _0x217e56[_0x42602f(0x246)]({'options':{..._0x3d5094,..._0x462ec8},'args':_0x54c556?[_0x54c556]:[],'tdx':_0x4effae});process[_0x42602f(0x1c4)](_0x2ec2a6);});const segmentCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x119))['alias']('sg')[a2_0x424d2f(0x162)](a2_0x424d2f(0x211)),segmentListAction=async(_0x292393,_0x1dbbda)=>{const _0x403430=a2_0x424d2f,_0xb96f30=new SegmentsCommand(),_0x1829b6=program[_0x403430(0x11b)](),_0x579653=await createTDXInstance(_0x1829b6),_0x2bd50a=await _0xb96f30[_0x403430(0x246)]({'options':{..._0x1829b6,..._0x1dbbda},'args':_0x292393?[_0x292393]:[],'tdx':_0x579653});process[_0x403430(0x1c4)](_0x2bd50a);};segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x287))[a2_0x424d2f(0x162)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x229),a2_0x424d2f(0x2c5))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x165),a2_0x424d2f(0x1a4),'10')['option'](a2_0x424d2f(0xf8),a2_0x424d2f(0x1d9))[a2_0x424d2f(0x1a9)](segmentListAction),program['command'](a2_0x424d2f(0x106),{'hidden':!![]})['description'](a2_0x424d2f(0x16b))[a2_0x424d2f(0x1a2)]('-r,\x20--recursive','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x424d2f(0x1a2)]('--max-depth\x20<depth>',a2_0x424d2f(0x1a4),'10')['option'](a2_0x424d2f(0xf8),a2_0x424d2f(0x1d9))['action'](segmentListAction),segmentCmd['command'](a2_0x424d2f(0x163),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x20e))[a2_0x424d2f(0x1a9)](async(_0x3719a0,_0x476709)=>{const _0x30bc59=a2_0x424d2f,_0x5b9201=new SegmentUseCommand(),_0x558235=program[_0x30bc59(0x11b)](),_0x326b45=await createTDXInstance(_0x558235),_0x5c7433=await _0x5b9201[_0x30bc59(0x246)]({'options':{..._0x558235,..._0x476709},'args':[_0x3719a0],'tdx':_0x326b45});process[_0x30bc59(0x1c4)](_0x5c7433);});const segmentViewAction=async(_0x4e3be5,_0x2a44ca)=>{const _0x16b92a=new SegmentViewCommand(),_0x522ced=program['opts'](),_0x144de5=await createTDXInstance(_0x522ced),_0x468d99=await _0x16b92a['run']({'options':{..._0x522ced,..._0x2a44ca},'args':_0x4e3be5?[_0x4e3be5]:[],'tdx':_0x144de5});process['exit'](_0x468d99);};segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x10c))['description']('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x424d2f(0x1a2)]('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')['action'](segmentViewAction),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x272),{'hidden':!![]})[a2_0x424d2f(0x28e)]('describe')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf8),'Open\x20segment\x20in\x20web\x20browser')[a2_0x424d2f(0x162)](a2_0x424d2f(0x2a7))[a2_0x424d2f(0x1a9)](segmentViewAction),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x124))[a2_0x424d2f(0x162)](a2_0x424d2f(0x193))[a2_0x424d2f(0x1a9)](async(_0x2f5ea1,_0xebc676)=>{const _0x293253=a2_0x424d2f,_0x2c3f28=new SegmentDescCommand(),_0x2b678f=program['opts'](),_0x3f0998=await createTDXInstance(_0x2b678f),_0x2e16f2=await _0x2c3f28[_0x293253(0x246)]({'options':{..._0x2b678f,..._0xebc676},'args':_0x2f5ea1?[_0x2f5ea1]:[],'tdx':_0x3f0998});process[_0x293253(0x1c4)](_0x2e16f2);}),segmentCmd[a2_0x424d2f(0x289)]('show\x20[segment_name]')['description'](a2_0x424d2f(0x1e4))[a2_0x424d2f(0x1a9)](async(_0x134d09,_0x4e80ff)=>{const _0x1352d7=a2_0x424d2f,_0x5bf868=new SegmentShowCommand(),_0x1118a8=program[_0x1352d7(0x11b)](),_0xd2d584=await createTDXInstance(_0x1118a8),_0x2ee17a=await _0x5bf868[_0x1352d7(0x246)]({'options':{..._0x1118a8,..._0x4e80ff},'args':_0x134d09?[_0x134d09]:[],'tdx':_0xd2d584});process[_0x1352d7(0x1c4)](_0x2ee17a);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xe2),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x1c6))['action'](async(_0x5ebd09,_0xc5bc49)=>{const _0x1b83e2=a2_0x424d2f,_0x4c2a2e=new SegmentFolderListCommand(),_0x3d3fa5=program[_0x1b83e2(0x11b)](),_0x32c2a3=await createTDXInstance(_0x3d3fa5),_0x157ecb=await _0x4c2a2e[_0x1b83e2(0x246)]({'options':{..._0x3d3fa5,..._0xc5bc49},'args':[_0x5ebd09],'tdx':_0x32c2a3});process['exit'](_0x157ecb);});const folderCmd=segmentCmd[a2_0x424d2f(0x289)]('folder',{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0xeb));folderCmd[a2_0x424d2f(0x289)]('show\x20<folder_ref>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x237))['action'](async(_0x21b08a,_0x26907f)=>{const _0x342ded=a2_0x424d2f,_0x41fecd=new SegmentFolderShowCommand(),_0x4062e7=program['opts'](),_0x547617=await createTDXInstance(_0x4062e7),_0x5e0689=await _0x41fecd[_0x342ded(0x246)]({'options':{..._0x4062e7,..._0x26907f},'args':[_0x21b08a],'tdx':_0x547617});process['exit'](_0x5e0689);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x17d))[a2_0x424d2f(0x162)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x424d2f(0x1a9)](async(_0x32967c,_0x2d53c0)=>{const _0xd2c19c=a2_0x424d2f,_0x32779e=new SegmentSQLCommand(),_0x27e155=program[_0xd2c19c(0x11b)](),_0xf4d577=await createTDXInstance(_0x27e155),_0x323e72=await _0x32779e[_0xd2c19c(0x246)]({'options':{..._0x27e155,..._0x2d53c0},'args':_0x32967c?[_0x32967c]:[],'tdx':_0xf4d577});process['exit'](_0x323e72);}),segmentCmd['command'](a2_0x424d2f(0xd1))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x424d2f(0x1a9)](async(_0x1c3fec,_0x24a7e6)=>{const _0x2d82cc=a2_0x424d2f,_0xd39436=new SegmentFieldsCommand(),_0x4a31e1=program['opts'](),_0x47a680=await createTDXInstance(_0x4a31e1),_0x5d884d=await _0xd39436['run']({'options':{..._0x4a31e1,..._0x24a7e6},'args':_0x1c3fec?[_0x1c3fec]:[],'tdx':_0x47a680});process[_0x2d82cc(0x1c4)](_0x5d884d);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x265))[a2_0x424d2f(0x162)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')['option'](a2_0x424d2f(0xd7),a2_0x424d2f(0x298))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),a2_0x424d2f(0x2af))[a2_0x424d2f(0x1a9)](async(_0x5cf7d8,_0x190086)=>{const _0x3debfd=a2_0x424d2f,_0x2a084e=new SegmentPullCommand(),_0xe4485f=program[_0x3debfd(0x11b)](),_0x5a1336=await createTDXInstance(_0xe4485f),_0x5dd5e2=await _0x2a084e[_0x3debfd(0x246)]({'options':{..._0xe4485f,..._0x190086},'args':_0x5cf7d8?[_0x5cf7d8]:[],'tdx':_0x5a1336});process[_0x3debfd(0x1c4)](_0x5dd5e2);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xdc))['description']('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),a2_0x424d2f(0x298))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')['option'](a2_0x424d2f(0xdf),a2_0x424d2f(0x262))[a2_0x424d2f(0x1a9)](async(_0x391562,_0xef9c0)=>{const _0x16b7ad=a2_0x424d2f,_0x3ca4fe=new SegmentPushCommand(),_0x1c6612=program[_0x16b7ad(0x11b)](),_0x28486b=await createTDXInstance(_0x1c6612),_0x203477=await _0x3ca4fe[_0x16b7ad(0x246)]({'options':{..._0x1c6612,..._0xef9c0},'args':_0x391562?[_0x391562]:[],'tdx':_0x28486b});process['exit'](_0x203477);}),segmentCmd['command'](a2_0x424d2f(0x198),{'hidden':!![]})[a2_0x424d2f(0x162)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option'](a2_0x424d2f(0x120),a2_0x424d2f(0xe8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x24a),a2_0x424d2f(0x263))[a2_0x424d2f(0x1a2)]('--rule-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x208),a2_0x424d2f(0x129))[a2_0x424d2f(0x1a2)]('--kind\x20<type>',a2_0x424d2f(0x248))['option'](a2_0x424d2f(0x1ef),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1c9),'Skip\x20population\x20counting')['action'](async(_0x22b112,_0x56cd91)=>{const _0x2ca219=a2_0x424d2f,_0x42a4a3=new SegmentCreateCommand(),_0x5ecf5f=program['opts'](),_0x1e472b=await createTDXInstance(_0x5ecf5f),_0x2fa7a2=await _0x42a4a3['run']({'options':{..._0x5ecf5f,..._0x56cd91},'args':[_0x22b112],'tdx':_0x1e472b});process[_0x2ca219(0x1c4)](_0x2fa7a2);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x14b),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x177))['option']('--name\x20<new_name>','New\x20segment\x20name')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x120),'Updated\x20description')['option'](a2_0x424d2f(0x24a),a2_0x424d2f(0x2c4))['option']('--rule-file\x20<file>',a2_0x424d2f(0x221))[a2_0x424d2f(0x1a2)]('--folder\x20<name>',a2_0x424d2f(0x27f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x11f),a2_0x424d2f(0x248))[a2_0x424d2f(0x1a9)](async(_0x70c35e,_0x2180cb)=>{const _0x245604=a2_0x424d2f,_0x4d823a=new SegmentUpdateCommand(),_0x3fb08e=program[_0x245604(0x11b)](),_0x12f307=await createTDXInstance(_0x3fb08e),_0x457a2b=await _0x4d823a[_0x245604(0x246)]({'options':{..._0x3fb08e,..._0x2180cb},'args':[_0x70c35e],'tdx':_0x12f307});process[_0x245604(0x1c4)](_0x457a2b);});const parentCmd=segmentCmd['command'](a2_0x424d2f(0x2a9),{'hidden':!![]})[a2_0x424d2f(0x162)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x30c08a,_0x5dfcdd)=>{const _0x103ac6=a2_0x424d2f,_0x2f85e2=new ParentSegmentListCommand(),_0x16b00d=program[_0x103ac6(0x11b)](),_0x2b42d9=await createTDXInstance(_0x16b00d),_0x4dab5d=await _0x2f85e2[_0x103ac6(0x246)]({'options':{..._0x16b00d,..._0x5dfcdd},'args':_0x30c08a?[_0x30c08a]:[],'tdx':_0x2b42d9});process[_0x103ac6(0x1c4)](_0x4dab5d);};parentCmd['command'](a2_0x424d2f(0x205))['description'](a2_0x424d2f(0x108))[a2_0x424d2f(0x1a9)](parentListAction),segmentCmd['command']('parents\x20[pattern]',{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x158))[a2_0x424d2f(0x1a9)](parentListAction),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x241))[a2_0x424d2f(0x162)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')['option'](a2_0x424d2f(0xc7),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x424d2f(0x1a2)]('-y,\x20--yes',a2_0x424d2f(0x168))[a2_0x424d2f(0x1a9)](async(_0x3fceb8,_0x26db28)=>{const _0x352009=a2_0x424d2f,_0x4e772b=new ParentSegmentPullCommand(),_0x4ceb6e=program['opts'](),_0x5aa7da=await createTDXInstance(_0x4ceb6e),_0x1855e1=await _0x4e772b[_0x352009(0x246)]({'options':{..._0x4ceb6e,..._0x26db28},'args':_0x3fceb8?[_0x3fceb8]:[],'tdx':_0x5aa7da});process[_0x352009(0x1c4)](_0x1855e1);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xce))['description'](a2_0x424d2f(0x2a8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),'Skip\x20confirmation\x20prompt')['action'](async(_0x3da9a8,_0x586fee)=>{const _0x4d1727=a2_0x424d2f,_0x5d993d=new ParentSegmentPushCommand(),_0x1c3c18=program['opts'](),_0x2aa191=await createTDXInstance(_0x1c3c18),_0xd0b7b3=await _0x5d993d[_0x4d1727(0x246)]({'options':{..._0x1c3c18,..._0x586fee},'args':_0x3da9a8?[_0x3da9a8]:[],'tdx':_0x2aa191});process[_0x4d1727(0x1c4)](_0xd0b7b3);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1c0))[a2_0x424d2f(0x162)](a2_0x424d2f(0x175))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ca),'Show\x20only\x20master\x20table\x20validation')[a2_0x424d2f(0x1a2)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x424d2f(0x250),a2_0x424d2f(0x1be))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x217),a2_0x424d2f(0xc5))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1cf),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x424d2f(0x2a1))[a2_0x424d2f(0x1a9)](async(_0x25fc0e,_0x5ae877)=>{const _0x216b39=a2_0x424d2f,_0x4d0d6e=new ParentSegmentValidateCommand(),_0x5ad5e9=program[_0x216b39(0x11b)](),_0x59be3a=await createTDXInstance(_0x5ad5e9),_0x453656=await _0x4d0d6e['run']({'options':{..._0x5ad5e9,..._0x5ae877},'args':_0x25fc0e?[_0x25fc0e]:[],'tdx':_0x59be3a});process['exit'](_0x453656);}),parentCmd[a2_0x424d2f(0x289)]('preview\x20[file]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1ee))['option'](a2_0x424d2f(0x1ca),'Show\x20master\x20table\x20sample\x20data')['option']('--attribute\x20[name]',a2_0x424d2f(0x167))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x250),a2_0x424d2f(0xf2))['option'](a2_0x424d2f(0x217),a2_0x424d2f(0x21a))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1cf),a2_0x424d2f(0x264),a2_0x424d2f(0x2a1))[a2_0x424d2f(0x1a9)](async(_0x4711fb,_0x4b52dc)=>{const _0x44467b=a2_0x424d2f,_0x5605a7=new ParentSegmentPreviewCommand(),_0x3e39ce=program[_0x44467b(0x11b)](),_0x326035=await createTDXInstance(_0x3e39ce),_0x599232=await _0x5605a7[_0x44467b(0x246)]({'options':{..._0x3e39ce,..._0x4b52dc},'args':_0x4711fb?[_0x4711fb]:[],'tdx':_0x326035});process['exit'](_0x599232);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x26f))['description'](a2_0x424d2f(0x286))[a2_0x424d2f(0x1a2)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x424d2f(0x1a9)](async(_0x1e3dc6,_0x5b595f)=>{const _0xde2d35=a2_0x424d2f,_0x5c15a7=new ParentSegmentRunCommand(),_0x475cb4=program[_0xde2d35(0x11b)](),_0x3df817=await createTDXInstance(_0x475cb4),_0xea6df5=await _0x5c15a7['run']({'options':{..._0x475cb4,..._0x5b595f},'args':_0x1e3dc6?[_0x1e3dc6]:[],'tdx':_0x3df817});process[_0xde2d35(0x1c4)](_0xea6df5);});const parentSegmentCmd=program[a2_0x424d2f(0x289)]('parent-segment')[a2_0x424d2f(0x28e)]('ps')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1a7));parentSegmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))['description'](a2_0x424d2f(0x108))['action'](parentListAction),parentSegmentCmd[a2_0x424d2f(0x289)]('pull\x20[name]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x10d))['option'](a2_0x424d2f(0xc7),a2_0x424d2f(0x19b))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),a2_0x424d2f(0x168))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x113),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x424d2f(0x1a9)](async(_0x106d8f,_0x47c747)=>{const _0x3a101f=a2_0x424d2f,_0x3bddae=new ParentSegmentPullCommand(),_0xa23550=program[_0x3a101f(0x11b)](),_0x30fa29=await createTDXInstance(_0xa23550),_0x5ab8f0=await _0x3bddae[_0x3a101f(0x246)]({'options':{..._0xa23550,..._0x47c747},'args':_0x106d8f?[_0x106d8f]:[],'tdx':_0x30fa29});process[_0x3a101f(0x1c4)](_0x5ab8f0);}),parentSegmentCmd[a2_0x424d2f(0x289)]('push\x20[name]')[a2_0x424d2f(0x162)](a2_0x424d2f(0xd0))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),a2_0x424d2f(0x168))[a2_0x424d2f(0x1a9)](async(_0x5504c3,_0x5bc61f)=>{const _0x1769e1=a2_0x424d2f,_0x291856=new ParentSegmentPushCommand(),_0x23c8a9=program[_0x1769e1(0x11b)](),_0x3197b5=await createTDXInstance(_0x23c8a9),_0xfc3e74=await _0x291856[_0x1769e1(0x246)]({'options':{..._0x23c8a9,..._0x5bc61f},'args':_0x5504c3?[_0x5504c3]:[],'tdx':_0x3197b5});process[_0x1769e1(0x1c4)](_0xfc3e74);}),parentSegmentCmd[a2_0x424d2f(0x289)]('validate\x20[name]')['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x424d2f(0x1a2)]('--master',a2_0x424d2f(0x14e))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ff),a2_0x424d2f(0x203))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x250),a2_0x424d2f(0x1be))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x217),a2_0x424d2f(0xc5))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1cf),a2_0x424d2f(0x264),a2_0x424d2f(0x2a1))[a2_0x424d2f(0x1a9)](async(_0x283d95,_0x2e799d)=>{const _0x1d60dd=a2_0x424d2f,_0x20b528=new ParentSegmentValidateCommand(),_0x41cc33=program['opts'](),_0x5e59ea=await createTDXInstance(_0x41cc33),_0x4ac03f=await _0x20b528[_0x1d60dd(0x246)]({'options':{..._0x41cc33,..._0x2e799d},'args':_0x283d95?[_0x283d95]:[],'tdx':_0x5e59ea});process[_0x1d60dd(0x1c4)](_0x4ac03f);}),parentSegmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x136))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1ee))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ca),a2_0x424d2f(0x223))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ff),a2_0x424d2f(0x167))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x250),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x217),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1cf),a2_0x424d2f(0x264),a2_0x424d2f(0x2a1))[a2_0x424d2f(0x1a9)](async(_0x1a804f,_0x32e2ef)=>{const _0xeadc36=a2_0x424d2f,_0x353157=new ParentSegmentPreviewCommand(),_0xc14255=program[_0xeadc36(0x11b)](),_0x22a590=await createTDXInstance(_0xc14255),_0x3743a4=await _0x353157[_0xeadc36(0x246)]({'options':{..._0xc14255,..._0x32e2ef},'args':_0x1a804f?[_0x1a804f]:[],'tdx':_0x22a590});process[_0xeadc36(0x1c4)](_0x3743a4);}),parentSegmentCmd['command']('run\x20[name]')['description'](a2_0x424d2f(0x286))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),a2_0x424d2f(0x168))[a2_0x424d2f(0x1a9)](async(_0x507dc8,_0x2ecc1a)=>{const _0xe8b7be=a2_0x424d2f,_0x3a0d56=new ParentSegmentRunCommand(),_0x2b3f77=program[_0xe8b7be(0x11b)](),_0xfe2bc6=await createTDXInstance(_0x2b3f77),_0x410892=await _0x3a0d56[_0xe8b7be(0x246)]({'options':{..._0x2b3f77,..._0x2ecc1a},'args':_0x507dc8?[_0x507dc8]:[],'tdx':_0xfe2bc6});process[_0xe8b7be(0x1c4)](_0x410892);}),parentSegmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x2b3))['description'](a2_0x424d2f(0x20f))[a2_0x424d2f(0x1a2)]('--json',a2_0x424d2f(0x2c6))['option'](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))[a2_0x424d2f(0x1a9)](async(_0x53bc10,_0x424b73)=>{const _0xbdfafa=a2_0x424d2f,_0x513fbe=new ParentSegmentFieldsCommand(),_0x21b207=program['opts'](),_0x44b7fc=await createTDXInstance(_0x21b207),_0x1a7a29=await _0x513fbe[_0xbdfafa(0x246)]({'options':{..._0x21b207,..._0x424b73},'args':_0x53bc10?[_0x53bc10]:[],'tdx':_0x44b7fc});process[_0xbdfafa(0x1c4)](_0x1a7a29);}),parentSegmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1c3))[a2_0x424d2f(0x162)](a2_0x424d2f(0x29b))[a2_0x424d2f(0x1a2)]('-w,\x20--web',a2_0x424d2f(0x11c))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x299),a2_0x424d2f(0x2c6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))[a2_0x424d2f(0x1a9)](async(_0x3a4964,_0x2e234b)=>{const _0x4f9ce2=a2_0x424d2f,_0x23c9cd=new ParentSegmentViewCommand(),_0xf6f782=program[_0x4f9ce2(0x11b)](),_0x2e15b4=await createTDXInstance(_0xf6f782),_0x36e00b=await _0x23c9cd['run']({'options':{..._0xf6f782,..._0x2e234b},'args':_0x3a4964?[_0x3a4964]:[],'tdx':_0x2e15b4});process[_0x4f9ce2(0x1c4)](_0x36e00b);}),parentSegmentCmd['command'](a2_0x424d2f(0x1fc))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('--json',a2_0x424d2f(0x2c6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))[a2_0x424d2f(0x1a9)](async(_0x301486,_0x22039e)=>{const _0x5de32a=a2_0x424d2f,_0x21a61a=new ParentSegmentDescCommand(),_0x1827de=program[_0x5de32a(0x11b)](),_0x425093=await createTDXInstance(_0x1827de),_0x1f9c97=await _0x21a61a[_0x5de32a(0x246)]({'options':{..._0x1827de,..._0x22039e},'args':_0x301486?[_0x301486]:[],'tdx':_0x425093});process['exit'](_0x1f9c97);}),parentSegmentCmd['command'](a2_0x424d2f(0x288))[a2_0x424d2f(0x162)](a2_0x424d2f(0x26a))[a2_0x424d2f(0x1a2)]('--json',a2_0x424d2f(0x2c6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))[a2_0x424d2f(0x1a9)](async(_0x496070,_0x4e52c3)=>{const _0x85e7a0=a2_0x424d2f,_0x2c7bcd=new ParentSegmentSQLCommand(),_0x5db523=program['opts'](),_0x2d89b3=await createTDXInstance(_0x5db523),_0x2e8a44=await _0x2c7bcd['run']({'options':{..._0x5db523,..._0x4e52c3},'args':_0x496070?[_0x496070]:[],'tdx':_0x2d89b3});process[_0x85e7a0(0x1c4)](_0x2e8a44);}),parentSegmentCmd[a2_0x424d2f(0x289)]('show\x20[name]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x105))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x23b),a2_0x424d2f(0x214))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x299),a2_0x424d2f(0x2c6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))['action'](async(_0x40f12a,_0x20fdb4)=>{const _0x35e58f=a2_0x424d2f,_0x1c299f=new ParentSegmentShowCommand(),_0x338196=program[_0x35e58f(0x11b)](),_0x340751=await createTDXInstance(_0x338196),_0x28459e=await _0x1c299f[_0x35e58f(0x246)]({'options':{..._0x338196,..._0x20fdb4},'args':_0x40f12a?[_0x40f12a]:[],'tdx':_0x340751});process[_0x35e58f(0x1c4)](_0x28459e);}),parentSegmentCmd[a2_0x424d2f(0x289)]('use\x20[name]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x171))['action'](async(_0x2f905a,_0x1e8f41)=>{const _0x139615=a2_0x424d2f,_0x63a708=new UseCommand(),_0x9a6317=program[_0x139615(0x11b)](),_0x140b60=_0x2f905a?[_0x139615(0x181),_0x2f905a]:[],_0x432c62=await _0x63a708['run']({'options':{..._0x9a6317,..._0x1e8f41},'args':_0x140b60,'tdx':null});process[_0x139615(0x1c4)](_0x432c62);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x196))[a2_0x424d2f(0x162)](a2_0x424d2f(0x15e))[a2_0x424d2f(0xca)](a2_0x424d2f(0x2ba),a2_0x424d2f(0x2a5))[a2_0x424d2f(0xca)](a2_0x424d2f(0x1d4),a2_0x424d2f(0x26b))[a2_0x424d2f(0x1a2)]('--description\x20<text>',a2_0x424d2f(0x1ab))['option'](a2_0x424d2f(0x1a0),a2_0x424d2f(0xe0))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xee),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x150),a2_0x424d2f(0x2ab))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ba),a2_0x424d2f(0x22e))['option']('--attributes-file\x20<file>',a2_0x424d2f(0x220))['option']('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x159),a2_0x424d2f(0x1b4))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x23f),a2_0x424d2f(0x1ce))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x268),a2_0x424d2f(0x1e8))[a2_0x424d2f(0x1a9)](async(_0x13866e,_0x327c5b)=>{const _0x5be87f=new ParentSegmentCreateCommand(),_0x502099=program['opts'](),_0x5905bc=await createTDXInstance(_0x502099),_0x3c3016=await _0x5be87f['run']({'options':{..._0x502099,..._0x327c5b},'args':[_0x13866e],'tdx':_0x5905bc});process['exit'](_0x3c3016);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x15d))['description'](a2_0x424d2f(0x12b))[a2_0x424d2f(0x1a2)]('--description\x20<text>','Updated\x20description')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1a0),a2_0x424d2f(0x2a0))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xee),'Updated\x20schedule\x20option')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x150),a2_0x424d2f(0x14c))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x122),a2_0x424d2f(0x191))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x245),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x103),a2_0x424d2f(0x15b))[a2_0x424d2f(0x1a2)]('--add-behaviors-file\x20<file>',a2_0x424d2f(0x1e2))[a2_0x424d2f(0x1a9)](async(_0x2a38c8,_0x1ca4ab)=>{const _0x4472ec=a2_0x424d2f,_0x28a61c=new ParentSegmentUpdateCommand(),_0x493557=program[_0x4472ec(0x11b)](),_0x3bbdac=await createTDXInstance(_0x493557),_0x48b27e=await _0x28a61c[_0x4472ec(0x246)]({'options':{..._0x493557,..._0x1ca4ab},'args':[_0x2a38c8],'tdx':_0x3bbdac});process[_0x4472ec(0x1c4)](_0x48b27e);}),folderCmd['command'](a2_0x424d2f(0xdd))['description'](a2_0x424d2f(0x28d))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x120),a2_0x424d2f(0x21f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x164),a2_0x424d2f(0x1e7))['action'](async(_0x266c33,_0x22a446,_0x3836b0)=>{const _0x3d19fa=a2_0x424d2f,_0x5957cc=new SegmentFolderCreateCommand(),_0x5a2f71=program['opts'](),_0x55fb16=await createTDXInstance(_0x5a2f71),_0x2112ab=await _0x5957cc['run']({'options':{..._0x5a2f71,..._0x3836b0},'args':[_0x266c33,_0x22a446],'tdx':_0x55fb16});process[_0x3d19fa(0x1c4)](_0x2112ab);}),program['command'](a2_0x424d2f(0x145))[a2_0x424d2f(0x162)](a2_0x424d2f(0x21d))[a2_0x424d2f(0x1a9)](async(_0x532b9b,_0x26f0fb)=>{const _0x3dc57a=a2_0x424d2f,_0xdf168f=new ActivationsCommand(),_0x5123bd=program[_0x3dc57a(0x11b)](),_0x3fbac2=await createTDXInstance(_0x5123bd),_0x14e32d=await _0xdf168f[_0x3dc57a(0x246)]({'options':{..._0x5123bd,..._0x26f0fb},'args':[_0x532b9b],'tdx':_0x3fbac2});process[_0x3dc57a(0x1c4)](_0x14e32d);});const workflowCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x1bf))[a2_0x424d2f(0x28e)]('wf')['description'](a2_0x424d2f(0x273)),wfProjectCmd=workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xdb))[a2_0x424d2f(0x162)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0x1eeaaf,_0xa81477)=>{const _0x3f183f=a2_0x424d2f,_0x1d7acd=new WorkflowProjectsCommand(),_0x204038=program[_0x3f183f(0x11b)](),_0x53b472=await createTDXInstance(_0x204038),_0x15e62b=await _0x1d7acd[_0x3f183f(0x246)]({'options':{..._0x204038,..._0xa81477},'args':_0x1eeaaf?[_0x1eeaaf]:[],'tdx':_0x53b472});process['exit'](_0x15e62b);};wfProjectCmd[a2_0x424d2f(0x289)]('list\x20[pattern]')[a2_0x424d2f(0x162)](a2_0x424d2f(0xcc))['action'](wfProjectListAction),workflowCmd['command'](a2_0x424d2f(0x1fe))[a2_0x424d2f(0x162)](a2_0x424d2f(0x19d))[a2_0x424d2f(0x1a9)](wfProjectListAction);const wfWorkflowListAction=async(_0x28836b,_0x575910)=>{const _0x4bbee7=a2_0x424d2f,_0x10d4bf=new WorkflowWorkflowsCommand(),_0x3becb1=program[_0x4bbee7(0x11b)](),_0x30018f=await createTDXInstance(_0x3becb1),_0x33a7c9=await _0x10d4bf['run']({'options':{..._0x3becb1,..._0x575910},'args':_0x28836b?[_0x28836b]:[],'tdx':_0x30018f});process['exit'](_0x33a7c9);};workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1e3))[a2_0x424d2f(0x162)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x424d2f(0x1a9)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x424d2f(0x289)]('session')['description'](a2_0x424d2f(0x18e)),wfSessionListAction=async(_0x144063,_0x1bfcfb)=>{const _0x40e5df=a2_0x424d2f,_0x307aad=new WorkflowSessionsCommand(),_0x2ff1e1=program[_0x40e5df(0x11b)](),_0x531a55=await createTDXInstance(_0x2ff1e1),_0x58c0cb=await _0x307aad[_0x40e5df(0x246)]({'options':{..._0x2ff1e1,..._0x1bfcfb},'args':_0x144063?[_0x144063]:[],'tdx':_0x531a55});process['exit'](_0x58c0cb);};wfSessionCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1f4))[a2_0x424d2f(0x162)](a2_0x424d2f(0xf9))[a2_0x424d2f(0x1a2)]('--status\x20<status>',a2_0x424d2f(0x297))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x152),a2_0x424d2f(0x243))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1aa),a2_0x424d2f(0x139))[a2_0x424d2f(0x1a9)](wfSessionListAction),workflowCmd['command'](a2_0x424d2f(0x25c))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1f1))['option'](a2_0x424d2f(0xf4),a2_0x424d2f(0x297))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x152),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x424d2f(0x1aa),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction);const wfAttemptListAction=async(_0xa7034e,_0x1ae2bb)=>{const _0x1fdffc=a2_0x424d2f,_0x5e7ffc=new WorkflowAttemptsCommand(),_0x9e0943=program[_0x1fdffc(0x11b)](),_0x58a4cb=await createTDXInstance(_0x9e0943),_0x463c87=await _0x5e7ffc[_0x1fdffc(0x246)]({'options':{..._0x9e0943,..._0x1ae2bb},'args':_0xa7034e?[_0xa7034e]:[],'tdx':_0x58a4cb});process[_0x1fdffc(0x1c4)](_0x463c87);},attemptCmd=workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x123))[a2_0x424d2f(0x162)]('Workflow\x20attempt\x20management')[a2_0x424d2f(0x1d1)](a2_0x424d2f(0x1d3),a2_0x424d2f(0x212))[a2_0x424d2f(0x1d1)](a2_0x424d2f(0x26d),a2_0x424d2f(0x17e))[a2_0x424d2f(0x1d1)]('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x14d),a2_0x424d2f(0x23c))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x239),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x424d2f(0x1a2)]('--resume-from\x20<task>',a2_0x424d2f(0x2ad))[a2_0x424d2f(0x1a2)]('--params\x20<json>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x424d2f(0x2b7),a2_0x424d2f(0x260))['option']('--include-retried',a2_0x424d2f(0x20c))[a2_0x424d2f(0x1a9)](async(_0x43d339,_0x283f86,_0x513df0,_0x29eb0e)=>{const _0xf585f9=a2_0x424d2f;if(_0x43d339==='list'){await wfAttemptListAction(_0x283f86,_0x29eb0e);return;}if(!_0x43d339){attemptCmd[_0xf585f9(0x10a)]();return;}const _0x3bd611=program[_0xf585f9(0x11b)](),_0x3e9d99=await createTDXInstance(_0x3bd611);let _0x687f4b=0x0;if(!_0x283f86){const _0xa45e2=new WorkflowAttemptCommand();_0x687f4b=await _0xa45e2['run']({'options':{..._0x3bd611,..._0x29eb0e},'args':[_0x43d339],'tdx':_0x3e9d99});}else{if(_0x283f86==='logs'){const _0x3c0b7b=new WorkflowLogsCommand();_0x687f4b=await _0x3c0b7b[_0xf585f9(0x246)]({'options':{..._0x3bd611,..._0x29eb0e},'args':_0x513df0?[_0x43d339,_0x513df0]:[_0x43d339],'tdx':_0x3e9d99});}else{if(_0x283f86==='tasks'){const _0x8a9fce=new WorkflowTasksCommand();_0x687f4b=await _0x8a9fce[_0xf585f9(0x246)]({'options':{..._0x3bd611,..._0x29eb0e},'args':[_0x43d339],'tdx':_0x3e9d99});}else{if(_0x283f86==='kill'){const _0x22448f=new WorkflowKillCommand();_0x687f4b=await _0x22448f[_0xf585f9(0x246)]({'options':{..._0x3bd611,..._0x29eb0e},'args':[_0x43d339],'tdx':_0x3e9d99});}else{if(_0x283f86===_0xf585f9(0x13e)){const _0x5f4a2b=new WorkflowRetryCommand();_0x687f4b=await _0x5f4a2b[_0xf585f9(0x246)]({'options':{..._0x3bd611,..._0x29eb0e},'args':[_0xf585f9(0x24e)+_0x43d339],'tdx':_0x3e9d99});}else console['error'](_0xf585f9(0x19e)+_0x283f86),console[_0xf585f9(0x172)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x687f4b=0x1;}}}}process[_0xf585f9(0x1c4)](_0x687f4b);});attemptCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1f4))['description'](a2_0x424d2f(0x293))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x197),a2_0x424d2f(0x1ad))[a2_0x424d2f(0x1a9)](wfAttemptListAction),workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xfa))[a2_0x424d2f(0x162)](a2_0x424d2f(0x225))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x197),a2_0x424d2f(0x1ad))[a2_0x424d2f(0x1a9)](wfAttemptListAction),workflowCmd['command']('retry\x20<session-id>')[a2_0x424d2f(0x162)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x210),a2_0x424d2f(0xf6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x2b5),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x424d2f(0x1a9)](async(_0x3856f5,_0x14bdc1)=>{const _0x41bfe5=a2_0x424d2f,_0x35af70=new WorkflowRetryCommand(),_0x355406=program['opts'](),_0x4aecfd=await createTDXInstance(_0x355406),_0x1acd71=await _0x35af70[_0x41bfe5(0x246)]({'options':{..._0x355406,..._0x14bdc1},'args':[_0x3856f5],'tdx':_0x4aecfd});process[_0x41bfe5(0x1c4)](_0x1acd71);}),workflowCmd['command']('run\x20<workflow>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x140))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x131),'Workflow\x20parameter\x20(repeatable)',(_0x3cd0a4,_0x3a43d2=[])=>[..._0x3a43d2,_0x3cd0a4],[])[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x24b),a2_0x424d2f(0x19f))[a2_0x424d2f(0x1a9)](async(_0x1d2023,_0x17b7e7)=>{const _0x10a04e=a2_0x424d2f,_0x2b1295=new WorkflowRunCommand(),_0x584a21=program[_0x10a04e(0x11b)](),_0x2a342a=await createTDXInstance(_0x584a21),_0x20369f=await _0x2b1295[_0x10a04e(0x246)]({'options':{..._0x584a21,..._0x17b7e7},'args':[_0x1d2023],'tdx':_0x2a342a});process[_0x10a04e(0x1c4)](_0x20369f);}),workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1ac))['description']('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a2_0x424d2f(0x1bd),a2_0x424d2f(0x1c7))[a2_0x424d2f(0x1a9)](async(_0x5cb48d,_0x2468a1,_0x466029)=>{const _0x5a0406=a2_0x424d2f,_0x2a4577=new WorkflowDownloadCommand(),_0x3348c6=program[_0x5a0406(0x11b)](),_0x473c37=await createTDXInstance(_0x3348c6),_0x1be641=await _0x2a4577[_0x5a0406(0x246)]({'options':{..._0x3348c6,..._0x466029},'args':[_0x5cb48d,_0x2468a1||'.'],'tdx':_0x473c37});process[_0x5a0406(0x1c4)](_0x1be641);}),workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x141))[a2_0x424d2f(0x162)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x2a2),'Override\x20project\x20name')['option']('--revision\x20<revision>',a2_0x424d2f(0x2b9))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x27b),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x40d557,_0x512bff)=>{const _0x3ce376=a2_0x424d2f,_0x2a91d9=new WorkflowPushCommand(),_0x4c7691=program[_0x3ce376(0x11b)](),_0x4e46ce=await createTDXInstance(_0x4c7691),_0x57efa4=await _0x2a91d9[_0x3ce376(0x246)]({'options':{..._0x4c7691,..._0x512bff},'args':_0x40d557?[_0x40d557]:[],'tdx':_0x4e46ce});process[_0x3ce376(0x1c4)](_0x57efa4);}),workflowCmd['command'](a2_0x424d2f(0x192))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')['action'](async(_0x18dc4e,_0x523efd)=>{const _0x57cc1b=a2_0x424d2f,_0x17cb18=new WorkflowDeleteCommand(),_0x3ee564=program[_0x57cc1b(0x11b)](),_0x18976e=await createTDXInstance(_0x3ee564),_0x376462=await _0x17cb18[_0x57cc1b(0x246)]({'options':{..._0x3ee564,..._0x523efd},'args':[_0x18dc4e],'tdx':_0x18976e});process[_0x57cc1b(0x1c4)](_0x376462);});const jobCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x182))[a2_0x424d2f(0x162)]('Job\x20management\x20commands'),jobListAction=async _0x288c53=>{const _0x286cc4=a2_0x424d2f,_0x339c18=new JobListCommand(),_0x37d312=program[_0x286cc4(0x11b)](),_0x33eb72=await createTDXInstance(_0x37d312),_0x48d8af=await _0x339c18[_0x286cc4(0x246)]({'options':{..._0x37d312,..._0x288c53},'args':[],'tdx':_0x33eb72});process[_0x286cc4(0x1c4)](_0x48d8af);};jobCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x216))[a2_0x424d2f(0x162)](a2_0x424d2f(0x281))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf4),a2_0x424d2f(0xed))['action'](jobListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0x187),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x29a))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf4),a2_0x424d2f(0xed))[a2_0x424d2f(0x1a9)](jobListAction),jobCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x15f))['description'](a2_0x424d2f(0xda))['action'](async(_0x3594c6,_0x35a215)=>{const _0x4e9fb8=a2_0x424d2f,_0x147a40=new JobShowCommand(),_0x18aaf1=program['opts'](),_0x1d9857=await createTDXInstance(_0x18aaf1),_0xd08a27=await _0x147a40[_0x4e9fb8(0x246)]({'options':{..._0x18aaf1,..._0x35a215},'args':[_0x3594c6],'tdx':_0x1d9857});process[_0x4e9fb8(0x1c4)](_0xd08a27);}),jobCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x258))[a2_0x424d2f(0x162)]('Kill\x20a\x20job')[a2_0x424d2f(0x1a9)](async(_0x8ca9ab,_0x3fabdf)=>{const _0x57bf31=a2_0x424d2f,_0x549398=new JobKillCommand(),_0x411b3c=program[_0x57bf31(0x11b)](),_0x150f1c=await createTDXInstance(_0x411b3c),_0x2fa6a2=await _0x549398['run']({'options':{..._0x411b3c,..._0x3fabdf},'args':[_0x8ca9ab],'tdx':_0x150f1c});process[_0x57bf31(0x1c4)](_0x2fa6a2);}),jobCmd['command']('submit\x20[query]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x222))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1c2),a2_0x424d2f(0x199),a2_0x424d2f(0x125))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x224),'Read\x20query\x20from\x20file')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x28b),a2_0x424d2f(0x20b),a2_0x424d2f(0x231))['action'](async(_0x49ead8,_0x399824)=>{const _0x18d0dd=a2_0x424d2f,_0x29e3db=new JobSubmitCommand(),_0x2a9888=program[_0x18d0dd(0x11b)](),_0x1ed834=await createTDXInstance(_0x2a9888),_0x46fb73=await _0x29e3db['run']({'options':{..._0x2a9888,..._0x399824},'args':_0x49ead8?[_0x49ead8]:[],'tdx':_0x1ed834});process[_0x18d0dd(0x1c4)](_0x46fb73);}),jobCmd['command'](a2_0x424d2f(0x13b))[a2_0x424d2f(0x162)](a2_0x424d2f(0x10b))['action'](async(_0x5a52eb,_0x1eaf72)=>{const _0x1773d9=a2_0x424d2f,_0x4eb436=new JobResultCommand(),_0x60314d=program['opts'](),_0x16cc0d=await createTDXInstance(_0x60314d),_0x119d83=await _0x4eb436[_0x1773d9(0x246)]({'options':{..._0x60314d,..._0x1eaf72},'args':[_0x5a52eb],'tdx':_0x16cc0d});process[_0x1773d9(0x1c4)](_0x119d83);});const llmCmd=program[a2_0x424d2f(0x289)]('llm')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1b9));llmCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x21b))[a2_0x424d2f(0x162)](a2_0x424d2f(0x242))[a2_0x424d2f(0x1a9)](async(_0x18bb79,_0x123aee)=>{const _0x3c54ba=a2_0x424d2f,_0x1d163b=new LLMUseCommand(),_0x5055e5=program[_0x3c54ba(0x11b)](),_0x35ea09=await createTDXInstance(_0x5055e5),_0x419fe6=await _0x1d163b[_0x3c54ba(0x246)]({'options':{..._0x5055e5,..._0x123aee},'args':[_0x18bb79],'tdx':_0x35ea09});process[_0x3c54ba(0x1c4)](_0x419fe6);}),llmCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x115))[a2_0x424d2f(0x162)](a2_0x424d2f(0x109))['action'](async _0x546b5a=>{const _0x5e5c41=a2_0x424d2f,_0x356d94=new LLMModelsCommand(),_0x51e643=program[_0x5e5c41(0x11b)](),_0x87412e=await createTDXInstance(_0x51e643),_0x9e1585=await _0x356d94[_0x5e5c41(0x246)]({'options':{..._0x51e643,..._0x546b5a},'args':[],'tdx':_0x87412e});process['exit'](_0x9e1585);});const projectCmd=llmCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xdb))['description'](a2_0x424d2f(0x206)),llmProjectListAction=async(_0x1d3e93,_0x3942bf)=>{const _0x2f7abe=a2_0x424d2f,_0x3643af=new LLMProjectsCommand(),_0x364ce5=program[_0x2f7abe(0x11b)](),_0x1133e4=await createTDXInstance(_0x364ce5),_0x510afb=await _0x3643af['run']({'options':{..._0x364ce5,..._0x3942bf},'args':_0x1d3e93?[_0x1d3e93]:[],'tdx':_0x1133e4});process[_0x2f7abe(0x1c4)](_0x510afb);};projectCmd['command'](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)](a2_0x424d2f(0x285))[a2_0x424d2f(0x1a9)](llmProjectListAction),llmCmd['command'](a2_0x424d2f(0x1fe))[a2_0x424d2f(0x162)](a2_0x424d2f(0x18a))['action'](llmProjectListAction),projectCmd[a2_0x424d2f(0x289)]('create\x20<name>')['description']('Create\x20a\x20new\x20LLM\x20project')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x120),a2_0x424d2f(0x236))[a2_0x424d2f(0x1a9)](async(_0x4c5f38,_0x2dadac)=>{const _0x6148e3=a2_0x424d2f,_0x3a0d1d=new LLMProjectCreateCommand(),_0x2077e6=program['opts'](),_0x2d7f20=await createTDXInstance(_0x2077e6),_0x18f429=await _0x3a0d1d[_0x6148e3(0x246)]({'options':{..._0x2077e6,..._0x2dadac},'args':[_0x4c5f38],'tdx':_0x2d7f20});process[_0x6148e3(0x1c4)](_0x18f429);}),projectCmd['command']('delete\x20<name>')[a2_0x424d2f(0x162)]('Delete\x20an\x20LLM\x20project')[a2_0x424d2f(0x1a9)](async(_0x2c13d2,_0x1e468e)=>{const _0x15be07=a2_0x424d2f,_0xffeb0d=new LLMProjectDeleteCommand(),_0x5b9292=program[_0x15be07(0x11b)](),_0x53c03c=await createTDXInstance(_0x5b9292),_0x3d6ecf=await _0xffeb0d[_0x15be07(0x246)]({'options':{..._0x5b9292,..._0x1e468e},'args':[_0x2c13d2],'tdx':_0x53c03c});process[_0x15be07(0x1c4)](_0x3d6ecf);}),projectCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x227))['description'](a2_0x424d2f(0x200))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x12c),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),a2_0x424d2f(0xf1))['action'](async(_0x317cf9,_0x279b2a)=>{const _0x44a742=a2_0x424d2f,_0xa9c56c=new LLMProjectBackupCommand(),_0x5b1087=program[_0x44a742(0x11b)](),_0x479b20=await createTDXInstance(_0x5b1087),_0x5010f8=await _0xa9c56c[_0x44a742(0x246)]({'options':{..._0x5b1087,..._0x279b2a},'args':[_0x317cf9],'tdx':_0x479b20});process[_0x44a742(0x1c4)](_0x5010f8);}),projectCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x213))[a2_0x424d2f(0x162)](a2_0x424d2f(0x17a))['option'](a2_0x424d2f(0x2bb),a2_0x424d2f(0x1c8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),a2_0x424d2f(0x195))[a2_0x424d2f(0x1a9)](async(_0x42548e,_0x32bcbd)=>{const _0x346adf=a2_0x424d2f,_0xfc51e5=new LLMProjectRestoreCommand(),_0x2e74fe=program[_0x346adf(0x11b)](),_0x1bd9d9=await createTDXInstance(_0x2e74fe),_0xe1c57d=await _0xfc51e5[_0x346adf(0x246)]({'options':{..._0x2e74fe,..._0x32bcbd},'args':[_0x42548e],'tdx':_0x1bd9d9});process['exit'](_0xe1c57d);});const agentCmd=llmCmd['command'](a2_0x424d2f(0x22a))[a2_0x424d2f(0x162)](a2_0x424d2f(0x137)),llmAgentListAction=async(_0x3cb2ec,_0x3d2a33)=>{const _0x211b8a=a2_0x424d2f,_0x5bf377=new LLMAgentsCommand(),_0x521b43=program[_0x211b8a(0x11b)](),_0x204216=await createTDXInstance(_0x521b43),_0x248151=await _0x5bf377[_0x211b8a(0x246)]({'options':{..._0x521b43,..._0x3d2a33},'args':_0x3cb2ec?[_0x3cb2ec]:[],'tdx':_0x204216});process[_0x211b8a(0x1c4)](_0x248151);};agentCmd['command'](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)](a2_0x424d2f(0x18d))[a2_0x424d2f(0x1a9)](llmAgentListAction),llmCmd['command'](a2_0x424d2f(0x266))[a2_0x424d2f(0x162)](a2_0x424d2f(0x28f))[a2_0x424d2f(0x1a9)](llmAgentListAction),agentCmd[a2_0x424d2f(0x289)]('show\x20<agent-name>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x253))[a2_0x424d2f(0x1a9)](async(_0x31b391,_0x211660)=>{const _0x36d5f6=a2_0x424d2f,_0x39b4ad=new LLMAgentShowCommand(),_0x263dff=program[_0x36d5f6(0x11b)](),_0x10f8a4=await createTDXInstance(_0x263dff),_0x47d432=await _0x39b4ad[_0x36d5f6(0x246)]({'options':{..._0x263dff,..._0x211660},'args':[_0x31b391],'tdx':_0x10f8a4});process['exit'](_0x47d432);}),agentCmd['command'](a2_0x424d2f(0x196))[a2_0x424d2f(0x162)](a2_0x424d2f(0x2b6))[a2_0x424d2f(0x1a2)]('--system-prompt\x20<text>',a2_0x424d2f(0x218))['option']('--model\x20<name>',a2_0x424d2f(0x176),a2_0x424d2f(0x169))['option'](a2_0x424d2f(0x138),a2_0x424d2f(0x207))[a2_0x424d2f(0x1a2)]('--max-tool-iterations\x20<n>',a2_0x424d2f(0x2c1),'4')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1d0),'Temperature\x20(0.0-2.0,\x20default:\x200.7)','0.7')[a2_0x424d2f(0x1a9)](async(_0x53b135,_0x3d5a3e)=>{const _0x401758=a2_0x424d2f,_0x3c4e0d=new LLMAgentCreateCommand(),_0x1480f3=program['opts'](),_0x36bdd1=await createTDXInstance(_0x1480f3),_0x5f1362=await _0x3c4e0d[_0x401758(0x246)]({'options':{..._0x1480f3,..._0x3d5a3e},'args':[_0x53b135],'tdx':_0x36bdd1});process[_0x401758(0x1c4)](_0x5f1362);}),agentCmd['command'](a2_0x424d2f(0x1b3))[a2_0x424d2f(0x162)](a2_0x424d2f(0x201))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1f0),a2_0x424d2f(0x16f))['option'](a2_0x424d2f(0x142),a2_0x424d2f(0x1a3))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x120),a2_0x424d2f(0x230))[a2_0x424d2f(0x1a2)]('--starter-message\x20<text>','Starter\x20message')[a2_0x424d2f(0x1a9)](async(_0x2f0585,_0x3c4d36)=>{const _0x3e9def=a2_0x424d2f,_0x31ad65=new LLMAgentUpdateCommand(),_0x1eb9ff=program[_0x3e9def(0x11b)](),_0x6dc7f3=await createTDXInstance(_0x1eb9ff),_0x33f7d3=await _0x31ad65[_0x3e9def(0x246)]({'options':{..._0x1eb9ff,..._0x3c4d36},'args':[_0x2f0585],'tdx':_0x6dc7f3});process[_0x3e9def(0x1c4)](_0x33f7d3);}),agentCmd['command'](a2_0x424d2f(0x232))[a2_0x424d2f(0x162)]('Delete\x20an\x20agent')[a2_0x424d2f(0x1a9)](async(_0x55bf28,_0x436b7d)=>{const _0x2a99a9=a2_0x424d2f,_0x56952a=new LLMAgentDeleteCommand(),_0x2a0473=program[_0x2a99a9(0x11b)](),_0x3342d5=await createTDXInstance(_0x2a0473),_0x1de691=await _0x56952a['run']({'options':{..._0x2a0473,..._0x436b7d},'args':[_0x55bf28],'tdx':_0x3342d5});process['exit'](_0x1de691);}),llmCmd[a2_0x424d2f(0x289)]('history\x20[chat-id]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1f7))[a2_0x424d2f(0x1a2)]('--last',a2_0x424d2f(0xc8))['action'](async(_0x21d29d,_0x59174d)=>{const _0x578cfc=a2_0x424d2f,_0x4e3db6=new LLMHistoryCommand(),_0x5b6ed2=program[_0x578cfc(0x11b)](),_0x1f2a47=await createTDXInstance(_0x5b6ed2),_0x16a59b=await _0x4e3db6[_0x578cfc(0x246)]({'options':{..._0x5b6ed2,..._0x59174d},'args':_0x21d29d?[_0x21d29d]:[],'tdx':_0x1f2a47});process['exit'](_0x16a59b);}),llmCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x215))['description'](a2_0x424d2f(0x27d))[a2_0x424d2f(0x1a2)]('--port\x20<number>',a2_0x424d2f(0x17b),a2_0x424d2f(0xc6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1b5),a2_0x424d2f(0x1f8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x28a),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x424d2f(0x1a9)](async _0x3111d8=>{const _0x5cf112=a2_0x424d2f,_0x2dac6d=new LLMProxyCommand(),_0x5a1364=program[_0x5cf112(0x11b)](),_0x2be3aa=await createTDXInstance(_0x5a1364),_0xb5eb93={..._0x3111d8,'port':_0x3111d8['port']?parseInt(_0x3111d8[_0x5cf112(0x15c)],0xa):undefined},_0x296983=await _0x2dac6d[_0x5cf112(0x246)]({'options':{..._0x5a1364,..._0xb5eb93},'args':[],'tdx':_0x2be3aa});process['exit'](_0x296983);}),program['command'](a2_0x424d2f(0xec))[a2_0x424d2f(0x291)](a2_0x424d2f(0x29c))[a2_0x424d2f(0x162)](a2_0x424d2f(0x29e))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x12d),a2_0x424d2f(0x1db),a2_0x424d2f(0x110))['option']('-c,\x20--continue',a2_0x424d2f(0x186))[a2_0x424d2f(0x1a2)]('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x19a),a2_0x424d2f(0x240))[a2_0x424d2f(0x1b2)]()['allowExcessArguments'](!![])[a2_0x424d2f(0x22f)](a2_0x424d2f(0x256),a2_0x424d2f(0x2c0))[a2_0x424d2f(0x1a9)](async(_0x3ca88c,_0x1eb71c)=>{const _0x22abbb=a2_0x424d2f,_0xfc8b7d=program[_0x22abbb(0x11b)](),_0x56a3cd=Array[_0x22abbb(0x16d)](_0x3ca88c)?_0x3ca88c:[];if(_0x56a3cd[0x0]===_0x22abbb(0xc4)){const _0x19f689=new ClaudeStatuslineCommand(),_0x5b833b=await _0x19f689[_0x22abbb(0x246)]({'options':{..._0xfc8b7d,..._0x1eb71c},'args':_0x56a3cd[_0x22abbb(0x267)](0x1),'tdx':null});process[_0x22abbb(0x1c4)](_0x5b833b);}if(_0x56a3cd[0x0]==='usage'){const _0x21be43=new ClaudeUsageCommand(),_0x39e003=await _0x21be43['run']({'options':{..._0xfc8b7d,..._0x1eb71c},'args':_0x56a3cd[_0x22abbb(0x267)](0x1),'tdx':null});process[_0x22abbb(0x1c4)](_0x39e003);}const _0x3bba56=new ClaudeCommand(),_0x441b76=await createTDXInstance(_0xfc8b7d),_0xedf144=await _0x3bba56[_0x22abbb(0x246)]({'options':{..._0xfc8b7d,..._0x1eb71c},'args':_0x56a3cd,'tdx':_0x441b76});process['exit'](_0xedf144);}),program['command']('context')[a2_0x424d2f(0x162)](a2_0x424d2f(0x128))['option'](a2_0x424d2f(0xf5),'Clear\x20session\x20context')[a2_0x424d2f(0x1a9)](async _0x486b09=>{const _0x2ce5dc=a2_0x424d2f,_0x188d5e=new ContextCommand(),_0x16e525=program[_0x2ce5dc(0x11b)](),_0x4f3e20=await _0x188d5e[_0x2ce5dc(0x246)]({'options':{..._0x16e525,..._0x486b09},'args':[],'tdx':null});process[_0x2ce5dc(0x1c4)](_0x4f3e20);}),program[a2_0x424d2f(0x289)]('use\x20[resource]\x20[value]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x284))['option'](a2_0x424d2f(0xf5),a2_0x424d2f(0xd6))[a2_0x424d2f(0x1a9)](async(_0x331d99,_0x1ad4e1,_0x532137)=>{const _0x1212ae=a2_0x424d2f,_0x66c3f7=new UseCommand(),_0x17ac20=program[_0x1212ae(0x11b)](),_0x57dc43=[];if(_0x331d99)_0x57dc43[_0x1212ae(0xf0)](_0x331d99);if(_0x1ad4e1)_0x57dc43[_0x1212ae(0xf0)](_0x1ad4e1);const _0x399f98=await _0x66c3f7['run']({'options':{..._0x17ac20,..._0x532137},'args':_0x57dc43,'tdx':null});process['exit'](_0x399f98);}),program[a2_0x424d2f(0x289)](a2_0x424d2f(0x257))[a2_0x424d2f(0x162)]('Interactive\x20chat\x20selector')[a2_0x424d2f(0x1a2)]('--last',a2_0x424d2f(0xd8))[a2_0x424d2f(0x1a9)](async _0x144fb3=>{const _0x23d8a5=a2_0x424d2f,_0x8207ff=new ChatsCommand(),_0x2df21c=program[_0x23d8a5(0x11b)](),_0x27d5a1=await createTDXInstance(_0x2df21c),_0x26b03a=await _0x8207ff['run']({'options':{..._0x2df21c,..._0x144fb3},'args':[],'tdx':_0x27d5a1});process[_0x23d8a5(0x1c4)](_0x26b03a);});const authCmd=program['command'](a2_0x424d2f(0x21c))[a2_0x424d2f(0x162)]('Authentication\x20management');async function runAuthStatusCommand(_0x1ebfa5){const _0x188bd7=a2_0x424d2f,_0x590709=new AuthStatusCommand(),_0x11e4d3=program['opts'](),_0x357b4a=await createTDXInstance(_0x11e4d3),_0x5b6d7d=await _0x590709[_0x188bd7(0x246)]({'options':{..._0x11e4d3,..._0x1ebfa5},'args':[],'tdx':_0x357b4a});process[_0x188bd7(0x1c4)](_0x5b6d7d);}authCmd[a2_0x424d2f(0x1a9)](runAuthStatusCommand),authCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x26c))[a2_0x424d2f(0x162)](a2_0x424d2f(0x23a))['action'](runAuthStatusCommand),authCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x188))[a2_0x424d2f(0x162)](a2_0x424d2f(0x116))[a2_0x424d2f(0x22f)](a2_0x424d2f(0x256),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')['action'](async _0x3c1561=>{const _0x5eb669=a2_0x424d2f,_0x7f2464=new AuthSetupCommand(),_0x2a2020=program[_0x5eb669(0x11b)](),_0x5e8386=await createTDXInstance(_0x2a2020),_0x539338=await _0x7f2464[_0x5eb669(0x246)]({'options':{..._0x2a2020,..._0x3c1561},'args':[],'tdx':_0x5e8386});process['exit'](_0x539338);}),authCmd[a2_0x424d2f(0x289)]('clear')[a2_0x424d2f(0x162)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x424d2f(0x22f)](a2_0x424d2f(0x256),'\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_0x424d2f(0x1a9)](async _0x2e57d1=>{const _0x4e5164=a2_0x424d2f,_0x1444a0=new AuthClearCommand(),_0x960cdb=program['opts'](),_0x10c98a=await _0x1444a0[_0x4e5164(0x246)]({'options':{..._0x960cdb,..._0x2e57d1},'args':[],'tdx':null});process[_0x4e5164(0x1c4)](_0x10c98a);});const userCmd=program['command'](a2_0x424d2f(0x16e))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1eb)),userListAction=async _0x8c8e70=>{const _0x50b605=a2_0x424d2f,_0x46ec8c=new UserListCommand(),_0x2725b8=program[_0x50b605(0x11b)](),_0x4c4c19=await createTDXInstance(_0x2725b8),_0x2e3662=await _0x46ec8c[_0x50b605(0x246)]({'options':{..._0x2725b8,..._0x8c8e70},'args':[],'tdx':_0x4c4c19});process[_0x50b605(0x1c4)](_0x2e3662);};userCmd[a2_0x424d2f(0x1a9)](async _0x38f900=>{const _0x4e800c=a2_0x424d2f,_0x52737c=new UserCommand(),_0x2f8219=program['opts'](),_0x58b3f2=await createTDXInstance(_0x2f8219),_0x31b804=await _0x52737c[_0x4e800c(0x246)]({'options':{..._0x2f8219,..._0x38f900},'args':[],'tdx':_0x58b3f2});process['exit'](_0x31b804);}),userCmd['command']('list')[a2_0x424d2f(0x162)](a2_0x424d2f(0x27e))[a2_0x424d2f(0x1a9)](userListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0x107))[a2_0x424d2f(0x162)](a2_0x424d2f(0x26e))[a2_0x424d2f(0x1a9)](userListAction),program[a2_0x424d2f(0x289)]('profiles')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1fd))[a2_0x424d2f(0x1a9)](async _0x40abc4=>{const _0x169274=a2_0x424d2f,_0x25021a=new ProfilesCommand(),_0x4952f9=program[_0x169274(0x11b)](),_0x3e917f=await _0x25021a[_0x169274(0x246)]({'options':{..._0x4952f9,..._0x40abc4},'args':[],'tdx':null});process['exit'](_0x3e917f);});const engageCmd=program['command'](a2_0x424d2f(0x2b1))[a2_0x424d2f(0x162)](a2_0x424d2f(0x149)),createEngageAction=_0x107c24=>{return async(_0x4ac4fe,_0x282215)=>{const _0x3b4ded=a2_0x1c8c,_0x48c1df=new _0x107c24(),_0x4327af=program['opts'](),_0xf3aa5c=await createTDXInstance(_0x4327af),_0x5c7425=await _0x48c1df[_0x3b4ded(0x246)]({'options':{..._0x4327af,..._0x282215},'args':[_0x4ac4fe],'tdx':_0xf3aa5c});process[_0x3b4ded(0x1c4)](_0x5c7425);};},createEngageNoArgAction=_0x238160=>{return async _0x16c45b=>{const _0x4bbaa9=a2_0x1c8c,_0x1126d9=new _0x238160(),_0x8bfb83=program[_0x4bbaa9(0x11b)](),_0x33ecf3=await createTDXInstance(_0x8bfb83),_0xc54776=await _0x1126d9[_0x4bbaa9(0x246)]({'options':{..._0x8bfb83,..._0x16c45b},'args':[],'tdx':_0x33ecf3});process['exit'](_0xc54776);};},campaignCmd=engageCmd['command']('campaign')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1ea)),campaignListAction=async(_0x10c0c8,_0x1b90f7)=>{const _0x150346=a2_0x424d2f,_0x45e966=new EngageCampaignsCommand(),_0x3ab240=program[_0x150346(0x11b)](),_0x474871=await createTDXInstance(_0x3ab240),_0x3e8562=await _0x45e966['run']({'options':{..._0x3ab240,..._0x1b90f7},'args':_0x10c0c8?[_0x10c0c8]:[],'tdx':_0x474871});process[_0x150346(0x1c4)](_0x3e8562);};campaignCmd['command'](a2_0x424d2f(0x205))['description'](a2_0x424d2f(0x271))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x157),a2_0x424d2f(0x27c))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf4),a2_0x424d2f(0x156))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x424d2f(0x1a9)](campaignListAction),engageCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x154))[a2_0x424d2f(0x162)](a2_0x424d2f(0x185))['option']('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf4),a2_0x424d2f(0x156))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))['action'](campaignListAction),campaignCmd[a2_0x424d2f(0x289)]('show\x20<name-or-id>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1d7))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x148),a2_0x424d2f(0x275))[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x155))['description'](a2_0x424d2f(0x2bf))['requiredOption']('--name\x20<name>','Campaign\x20name')[a2_0x424d2f(0xca)](a2_0x424d2f(0x157),a2_0x424d2f(0x244))[a2_0x424d2f(0x1a2)]('--workspace\x20<name>',a2_0x424d2f(0x1bc))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x146),'Campaign\x20description')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ec),a2_0x424d2f(0x23d))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x295),'Email\x20sender\x20ID\x20for\x20delivery')['option'](a2_0x424d2f(0x22c),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1b1),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x424d2f(0x1a2)]('--timezone\x20<tz>',a2_0x424d2f(0x190))[a2_0x424d2f(0x1a9)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x424d2f(0x289)]('update\x20<name-or-id>')[a2_0x424d2f(0x162)]('Update\x20a\x20campaign')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))['option']('--name\x20<name>',a2_0x424d2f(0x144))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x146),'Campaign\x20description')['option'](a2_0x424d2f(0x1ec),a2_0x424d2f(0x23d))[a2_0x424d2f(0x1a2)]('--email-sender-id\x20<id>',a2_0x424d2f(0x1d5))['option'](a2_0x424d2f(0x22c),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1b1),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x424d2f(0x1a2)]('--timezone\x20<tz>',a2_0x424d2f(0x190))[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x29f))[a2_0x424d2f(0x162)](a2_0x424d2f(0x173))['option']('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x424d2f(0x153),a2_0x424d2f(0x168))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x160))[a2_0x424d2f(0x162)](a2_0x424d2f(0x249))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),'Workspace\x20name')[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x424d2f(0x289)]('pause\x20<name-or-id>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x189))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x424d2f(0x289)]('resume\x20<name-or-id>')['description'](a2_0x424d2f(0xfb))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),'Workspace\x20name')[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xd4))['description'](a2_0x424d2f(0x25d))['option'](a2_0x424d2f(0x179),'Workspace\x20name')[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x424d2f(0x289)]('template')[a2_0x424d2f(0x162)](a2_0x424d2f(0x10e)),templateListAction=async(_0x21e08e,_0x3a37ff)=>{const _0xd29346=a2_0x424d2f,_0x27b9cd=new EngageTemplatesCommand(),_0x350a59=program[_0xd29346(0x11b)](),_0x1fb26b=await createTDXInstance(_0x350a59),_0x3c05a6=await _0x27b9cd[_0xd29346(0x246)]({'options':{..._0x350a59,..._0x3a37ff},'args':_0x21e08e?[_0x21e08e]:[],'tdx':_0x1fb26b});process[_0xd29346(0x1c4)](_0x3c05a6);};templateCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))['description'](a2_0x424d2f(0x24f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a9)](templateListAction),engageCmd['command'](a2_0x424d2f(0x24c))['description']('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')['option']('--workspace\x20<name>',a2_0x424d2f(0x255))[a2_0x424d2f(0x1a9)](templateListAction),templateCmd[a2_0x424d2f(0x289)]('show\x20<name-or-id>')[a2_0x424d2f(0x162)]('Show\x20email\x20template\x20details')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x148),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x155))[a2_0x424d2f(0x162)]('Create\x20an\x20email\x20template')[a2_0x424d2f(0xca)]('--name\x20<name>',a2_0x424d2f(0x204))[a2_0x424d2f(0xca)](a2_0x424d2f(0x219),a2_0x424d2f(0x1b7))[a2_0x424d2f(0xca)]('--html\x20<html>','HTML\x20template\x20content')[a2_0x424d2f(0x1a2)]('--workspace\x20<name>',a2_0x424d2f(0x1bc))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x234),a2_0x424d2f(0x2c8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xfc),a2_0x424d2f(0x16a))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x424d2f(0x2b2))[a2_0x424d2f(0x162)](a2_0x424d2f(0x25a))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x2a2),'New\x20template\x20name')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x219),a2_0x424d2f(0x1b7))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x277),a2_0x424d2f(0xfe))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x234),a2_0x424d2f(0x2c8))[a2_0x424d2f(0x1a9)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('delete\x20<name-or-id>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1d8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)]('--yes',a2_0x424d2f(0x168))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x135))['description']('Workspace\x20management'),workspaceListAction=async(_0x5b38eb,_0x203e2)=>{const _0xf1cced=a2_0x424d2f,_0x1483bb=new EngageWorkspacesCommand(),_0x43aec3=program[_0xf1cced(0x11b)](),_0x378b9b=await createTDXInstance(_0x43aec3),_0xf18547=await _0x1483bb[_0xf1cced(0x246)]({'options':{..._0x43aec3,..._0x203e2},'args':_0x5b38eb?[_0x5b38eb]:[],'tdx':_0x378b9b});process[_0xf1cced(0x1c4)](_0xf18547);};workspaceCmd['command'](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1de))[a2_0x424d2f(0x1a9)](workspaceListAction),engageCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x2b0))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1f5))[a2_0x424d2f(0x1a9)](workspaceListAction),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xf3))['description'](a2_0x424d2f(0x174))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x148),a2_0x424d2f(0x275))[a2_0x424d2f(0x1a9)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x155))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1d6))[a2_0x424d2f(0xca)](a2_0x424d2f(0x2a2),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)]('--description\x20<desc>',a2_0x424d2f(0x1da))[a2_0x424d2f(0x1a9)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x2b2))[a2_0x424d2f(0x162)](a2_0x424d2f(0x209))['option'](a2_0x424d2f(0x2a2),a2_0x424d2f(0x270))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x146),a2_0x424d2f(0x1da))[a2_0x424d2f(0x1a9)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x29f))[a2_0x424d2f(0x162)](a2_0x424d2f(0x2ac))['option']('--yes',a2_0x424d2f(0x168))[a2_0x424d2f(0x1a9)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xe6))[a2_0x424d2f(0x162)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x424d2f(0x1a9)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x1f6))['description']('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x2e348e=>{const _0x3a2077=a2_0x424d2f,_0x37664f=new ConnectionListCommand(),_0x41dbc9=program['opts'](),_0xfd9197=await createTDXInstance(_0x41dbc9),_0x343d05=await _0x37664f['run']({'options':{..._0x41dbc9,..._0x2e348e},'args':[],'tdx':_0xfd9197});process[_0x3a2077(0x1c4)](_0x343d05);};connectionCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x216))[a2_0x424d2f(0x162)](a2_0x424d2f(0x161))[a2_0x424d2f(0x1a9)](connectionListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0xe3),{'hidden':!![]})['description']('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x424d2f(0x1a9)](connectionListAction),connectionCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xe4))[a2_0x424d2f(0x162)]('Show\x20connection\x20details\x20by\x20name')[a2_0x424d2f(0x1a9)](async(_0x4fafe6,_0x3d4907)=>{const _0x3ff4ac=a2_0x424d2f,_0x13bf54=new ConnectionShowCommand(),_0x4fc1f2=program[_0x3ff4ac(0x11b)](),_0x8141ca=await createTDXInstance(_0x4fc1f2),_0x176aad=await _0x13bf54[_0x3ff4ac(0x246)]({'options':{..._0x4fc1f2,..._0x3d4907},'args':[_0x4fafe6],'tdx':_0x8141ca});process['exit'](_0x176aad);});const journeyCmd=program['command']('journey')[a2_0x424d2f(0x162)](a2_0x424d2f(0x276));journeyCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)]('List\x20journeys\x20in\x20current\x20context')[a2_0x424d2f(0x1a9)](async(_0x4cec3d,_0xfe9c4e)=>{const _0x29a818=a2_0x424d2f,_0x178d8e=new JourneyListCommand(),_0xbccb15=program[_0x29a818(0x11b)](),_0x359776=await createTDXInstance(_0xbccb15),_0x91898f=await _0x178d8e['run']({'options':{..._0xbccb15,..._0xfe9c4e},'args':_0x4cec3d?[_0x4cec3d]:[],'tdx':_0x359776});process['exit'](_0x91898f);}),journeyCmd['command']('view\x20<name-or-path>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x296))['option']('--include-stats',a2_0x424d2f(0x1dc))[a2_0x424d2f(0x1a9)](async(_0xa5d3e4,_0x42b6c0)=>{const _0x9bc8af=a2_0x424d2f,_0x25c2a2=new JourneyViewCommand(),_0x4ab7ce=program[_0x9bc8af(0x11b)](),_0x5f24c4=await createTDXInstance(_0x4ab7ce),_0x4dbf1e=await _0x25c2a2['run']({'options':{..._0x4ab7ce,..._0x42b6c0},'args':[_0xa5d3e4],'tdx':_0x5f24c4});process[_0x9bc8af(0x1c4)](_0x4dbf1e);}),journeyCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x261))[a2_0x424d2f(0x162)]('Show\x20journey\x20statistics')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x25f),a2_0x424d2f(0x274))[a2_0x424d2f(0x1a9)](async(_0xe20ef1,_0x3c51e2)=>{const _0x4c0548=a2_0x424d2f,_0x36e165=new JourneyStatsCommand(),_0x5d58bb=program[_0x4c0548(0x11b)](),_0x501926=await createTDXInstance(_0x5d58bb),_0x5dbf71=await _0x36e165[_0x4c0548(0x246)]({'options':{..._0x5d58bb,..._0x3c51e2},'args':[_0xe20ef1],'tdx':_0x501926});process[_0x4c0548(0x1c4)](_0x5dbf71);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0x424d2f(0x162)]('Pause\x20a\x20running\x20journey')['action'](async(_0xef64dd,_0x43fda2)=>{const _0x5ab20f=a2_0x424d2f,_0x3bbd08=new JourneyPauseCommand(),_0x1249aa=program[_0x5ab20f(0x11b)](),_0x282853=await createTDXInstance(_0x1249aa),_0x5bbcf9=await _0x3bbd08['run']({'options':{..._0x1249aa,..._0x43fda2},'args':[_0xef64dd],'tdx':_0x282853});process[_0x5ab20f(0x1c4)](_0x5bbcf9);}),journeyCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xd5))[a2_0x424d2f(0x162)](a2_0x424d2f(0x151))[a2_0x424d2f(0x1a9)](async(_0x28c723,_0xcfa962)=>{const _0x29210c=a2_0x424d2f,_0x21a926=new JourneyResumeCommand(),_0x1bd60a=program[_0x29210c(0x11b)](),_0xac69fe=await createTDXInstance(_0x1bd60a),_0x3523c3=await _0x21a926[_0x29210c(0x246)]({'options':{..._0x1bd60a,..._0xcfa962},'args':[_0x28c723],'tdx':_0xac69fe});process['exit'](_0x3523c3);}),journeyCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x241))[a2_0x424d2f(0x162)](a2_0x424d2f(0x121))[a2_0x424d2f(0x1a2)]('-y,\x20--yes',a2_0x424d2f(0x168))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')['action'](async(_0x39b33e,_0x417e4a)=>{const _0x28bab1=a2_0x424d2f,_0x3ef313=new JourneyPullCommand(),_0xc3f3f5=program[_0x28bab1(0x11b)](),_0x36436c=await createTDXInstance(_0xc3f3f5),_0x19b90e=await _0x3ef313['run']({'options':{..._0xc3f3f5,..._0x417e4a},'args':_0x39b33e?[_0x39b33e]:[],'tdx':_0x36436c});process[_0x28bab1(0x1c4)](_0x19b90e);});export{program};export function runCLI(){const _0x9d8517=a2_0x424d2f;program['parse'](process['argv']);!process[_0x9d8517(0x2a3)][_0x9d8517(0x267)](0x2)[_0x9d8517(0xea)]&&program[_0x9d8517(0x127)]();const _0x37e9ee=packageJson[_0x9d8517(0x1dd)];process['stderr'][_0x9d8517(0xde)]&&process[_0x9d8517(0x2a3)][_0x9d8517(0xea)]>0x2&&!_0x37e9ee['includes'](_0x9d8517(0x1b6))&&checkForUpdate(_0x37e9ee)[_0x9d8517(0x238)](_0x1619f0=>{_0x1619f0&&displayUpdateNotification(_0x1619f0);})[_0x9d8517(0x2be)](()=>{});}
|