@treasuredata/tdx 0.9.6 → 0.9.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/agent-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/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/agent/agent-yaml.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/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.d.ts +53 -18
- package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/journey-yaml.js.map +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment.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-config.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/journey-utils.d.ts +30 -0
- package/dist/utils/journey-utils.d.ts.map +1 -1
- package/dist/utils/journey-utils.js +1 -1
- package/dist/utils/journey-utils.js.map +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/llm-backup-utils.js +1 -1
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/model-factors.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/segment-path-parser.js +1 -1
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sql-parser.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-config.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/tree-formatter.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x1c1acf=a2_0x476c;(function(_0x9243f0,_0x5431ac){const _0x42bcc6=a2_0x476c,_0x101ed7=_0x9243f0();while(!![]){try{const _0x71f706=-parseInt(_0x42bcc6(0x25c))/0x1+-parseInt(_0x42bcc6(0x122))/0x2+-parseInt(_0x42bcc6(0x2b0))/0x3+parseInt(_0x42bcc6(0x17e))/0x4+-parseInt(_0x42bcc6(0xf7))/0x5+parseInt(_0x42bcc6(0x2bb))/0x6+parseInt(_0x42bcc6(0x182))/0x7*(parseInt(_0x42bcc6(0x204))/0x8);if(_0x71f706===_0x5431ac)break;else _0x101ed7['push'](_0x101ed7['shift']());}catch(_0x445dfd){_0x101ed7['push'](_0x101ed7['shift']());}}}(a2_0x51da,0x8e762));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';function a2_0x476c(_0x28c4ca,_0xbe46d6){_0x28c4ca=_0x28c4ca-0xe0;const _0x51dacb=a2_0x51da();let _0x476c7d=_0x51dacb[_0x28c4ca];return _0x476c7d;}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,JourneyPushCommand}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{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x1c1acf(0x233)](readFileSync(join(__dirname,'../package.json'),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0x1c1acf(0x233)](readFileSync(join(__dirname,a2_0x1c1acf(0x10d)),a2_0x1c1acf(0x104)));}catch{}if(process['argv'][a2_0x1c1acf(0xfa)](a2_0x1c1acf(0x30a))){let versionOutput=a2_0x1c1acf(0x141)+packageJson[a2_0x1c1acf(0x2b1)];buildInfo[a2_0x1c1acf(0x2cc)]&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x1c1acf(0x1ab)]&&(versionOutput+=a2_0x1c1acf(0x203)+buildInfo[a2_0x1c1acf(0x1ab)]),console[a2_0x1c1acf(0x1ee)](versionOutput),process['exit'](0x0);}const program=new Command();let description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x1c1acf(0x2cc)]?description+=a2_0x1c1acf(0x2e5)+packageJson['version']+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x1c1acf(0x2e5)+packageJson[a2_0x1c1acf(0x2b1)];program[a2_0x1c1acf(0x1a1)](a2_0x1c1acf(0x2a7))[a2_0x1c1acf(0x1d0)](description),program[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x263),a2_0x1c1acf(0x1c7))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x292),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2dc),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','us01')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x200),a2_0x1c1acf(0x13d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x14b),a2_0x1c1acf(0x12b))[a2_0x1c1acf(0x288)]('--json',a2_0x1c1acf(0x210))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f8),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x1c1acf(0x288)]('--tsv',a2_0x1c1acf(0x276))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x221),a2_0x1c1acf(0xfb))['option']('--limit\x20<number>',a2_0x1c1acf(0x1fe))['option'](a2_0x1c1acf(0x219),a2_0x1c1acf(0x209),![])[a2_0x1c1acf(0x288)](a2_0x1c1acf(0xe6),a2_0x1c1acf(0x275),![])['option']('-v,\x20--verbose',a2_0x1c1acf(0x284),![])['option'](a2_0x1c1acf(0x1c2),a2_0x1c1acf(0x29c))[a2_0x1c1acf(0x288)]('--trace',a2_0x1c1acf(0x2d7))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x138),a2_0x1c1acf(0x1b2),'30')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22e),a2_0x1c1acf(0x28d),![])[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x309),![])[a2_0x1c1acf(0x288)]('--session\x20<id>',a2_0x1c1acf(0x1a6))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1fa),a2_0x1c1acf(0xe1))[a2_0x1c1acf(0x288)]('--in\x20<name>',a2_0x1c1acf(0x2d1))[a2_0x1c1acf(0x288)]('--parent-segment\x20<name>',a2_0x1c1acf(0x2a3))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x107),a2_0x1c1acf(0x2b2)),program[a2_0x1c1acf(0x2d3)]({'formatHelp':(_0x1ae3b8,_0x49935a)=>{const _0x4e12eb=a2_0x1c1acf,_0x12a55a=_0x49935a[_0x4e12eb(0x30c)](_0x1ae3b8,_0x49935a),_0x2db4f1=0x2,_0x2df2bc=0x2;function _0x4bb38e(_0x2a6cfc){const _0x4304b7=_0x4e12eb,_0x105677=_0x2a6cfc;return!!(_0x105677[_0x4304b7(0x207)]||_0x105677[_0x4304b7(0x307)]);}function _0x17781b(_0x53c425,_0x5d527a){if(_0x5d527a){const _0x9e643c=''+_0x53c425['padEnd'](_0x12a55a+_0x2df2bc)+_0x5d527a;return _0x9e643c;}return _0x53c425;}function _0x4f3017(_0x2294ba){const _0x20c476=_0x4e12eb;return _0x2294ba['join']('\x0a')[_0x20c476(0x223)](/^/gm,'\x20'[_0x20c476(0x1af)](_0x2db4f1));}const _0x143822=[];_0x143822[_0x4e12eb(0x1fc)](_0x4e12eb(0x225)+_0x49935a[_0x4e12eb(0x24a)](_0x1ae3b8));const _0x4a5c28=_0x49935a[_0x4e12eb(0x252)](_0x1ae3b8);_0x4a5c28&&(_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)](_0x4a5c28));const _0xd3a1d8=_0x1ae3b8['commands'][_0x4e12eb(0x15b)](_0x2fb62e=>!_0x4bb38e(_0x2fb62e));if(_0xd3a1d8[_0x4e12eb(0x130)]>0x0){if(_0x1ae3b8['name']()===_0x4e12eb(0x2a7)){const _0x27b5e0=_0x1ae3b8[_0x4e12eb(0x305)](),_0x22670e=!_0x27b5e0[_0x4e12eb(0x297)]&&process[_0x4e12eb(0x1f8)][_0x4e12eb(0x2af)],_0x11a4c4=COMMAND_CATEGORIES,_0xfc15e=(_0x3d0a1d,_0xe4601b)=>_0x22670e?_0xe4601b(_0x3d0a1d):_0x3d0a1d,_0x40ed6a=new Map();_0xd3a1d8['forEach'](_0x3b5119=>{const _0x3e75f8=_0x4e12eb;_0x40ed6a[_0x3e75f8(0x19a)](_0x3b5119[_0x3e75f8(0x1a1)](),_0x3b5119);}),_0x11a4c4[_0x4e12eb(0x1b7)](_0xb2543f=>{const _0x3c934b=_0x4e12eb,_0x2d5e8b=_0xb2543f[_0x3c934b(0x11a)][_0x3c934b(0xf2)](_0x32dbd8=>_0x40ed6a[_0x3c934b(0x1bc)](_0x32dbd8)??[]);if(_0x2d5e8b[_0x3c934b(0x130)]>0x0){_0x143822[_0x3c934b(0x1fc)](''),_0x143822[_0x3c934b(0x1fc)](_0xfc15e(_0xb2543f[_0x3c934b(0x1a1)]+':',_0xb2543f['colorFn']));const _0x51ee7b=_0x2d5e8b[_0x3c934b(0x2bd)](_0x3a2f86=>{const _0x528efe=_0x3c934b,_0x5cd693=_0x49935a[_0x528efe(0x27d)](_0x3a2f86),_0x460cc6=_0x49935a[_0x528efe(0x1a9)](_0x3a2f86);return _0x17781b(_0x5cd693,_0x460cc6);});_0x143822['push'](_0x4f3017(_0x51ee7b));}}),_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)](_0x4e12eb(0x17a));}else{const _0x3203d8=_0xd3a1d8[_0x4e12eb(0x2bd)](_0x22901b=>{const _0x384261=_0x4e12eb,_0x420f18=_0x49935a[_0x384261(0x27d)](_0x22901b),_0x952842=_0x49935a[_0x384261(0x1a9)](_0x22901b);return _0x17781b(_0x420f18,_0x952842);});_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)](_0x4e12eb(0x260)),_0x143822[_0x4e12eb(0x1fc)](_0x4f3017(_0x3203d8));}}const _0x4b9ce1=_0x1ae3b8[_0x4e12eb(0x289)][_0x4e12eb(0x15b)](_0x190f60=>!_0x4bb38e(_0x190f60));if(_0x4b9ce1[_0x4e12eb(0x130)]>0x0){const _0x1ea154=_0x4b9ce1[_0x4e12eb(0x2bd)](_0x2c3279=>{const _0x2bbf5b=_0x4e12eb,_0x373d1f=_0x49935a['optionTerm'](_0x2c3279),_0x35f431=_0x49935a[_0x2bbf5b(0x1c1)](_0x2c3279);return _0x17781b(_0x373d1f,_0x35f431);});_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)]('Options:'),_0x143822[_0x4e12eb(0x1fc)](_0x4f3017(_0x1ea154));}const _0x13ba57=(_0x1ae3b8[_0x4e12eb(0x231)]||[])[_0x4e12eb(0x15b)](_0x1b23e8=>!_0x4bb38e(_0x1b23e8));if(_0x13ba57[_0x4e12eb(0x130)]>0x0){const _0x29acc4=_0x13ba57[_0x4e12eb(0x2bd)](_0x4a7aa4=>{const _0x42e40e=_0x4e12eb,_0x37de73=_0x49935a[_0x42e40e(0x29f)](_0x4a7aa4),_0x2dd3ed=_0x49935a[_0x42e40e(0x2ed)](_0x4a7aa4);return _0x17781b(_0x37de73,_0x2dd3ed);});_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)](_0x4e12eb(0x1b6)),_0x143822[_0x4e12eb(0x1fc)](_0x4f3017(_0x29acc4));}return _0x143822[_0x4e12eb(0x1aa)]('\x0a');},'subcommandTerm':_0x10f997=>{const _0x6ce959=a2_0x1c1acf,_0xc236fa=(_0x10f997[_0x6ce959(0x231)]||[])[_0x6ce959(0x2bd)](_0x25b73b=>_0x25b73b[_0x6ce959(0x2f5)]?'<'+_0x25b73b[_0x6ce959(0x1a1)]()+'>':'['+_0x25b73b[_0x6ce959(0x1a1)]()+']')[_0x6ce959(0x1aa)]('\x20'),_0x4c0d7e=_0x10f997[_0x6ce959(0x24f)](),_0x465540=_0x4c0d7e[_0x6ce959(0x130)]>0x0?_0x10f997[_0x6ce959(0x1a1)]()+',\x20'+_0x4c0d7e[_0x6ce959(0x1aa)](',\x20'):_0x10f997[_0x6ce959(0x1a1)]();return _0xc236fa?_0x465540+'\x20'+_0xc236fa:_0x465540;}}),program[a2_0x1c1acf(0x216)](a2_0x1c1acf(0x2dd),_0xe45d82=>{const _0xdb4627=a2_0x1c1acf,_0x2e5271=_0xe45d82['opts']();if(_0x2e5271[_0xdb4627(0x308)]){const _0x3bbf90=resolve(_0x2e5271['directory']),_0x23a9f2=_0x3bbf90!==_0x2e5271['directory']?_0xdb4627(0x2cf)+_0x3bbf90+')':'';if(!existsSync(_0x3bbf90))throw new SDKError(ErrorCode[_0xdb4627(0x244)],_0xdb4627(0x25e)+_0x2e5271[_0xdb4627(0x308)]+_0x23a9f2,undefined,{'helpText':_0xdb4627(0x283)});const _0x4e7783=statSync(_0x3bbf90);if(!_0x4e7783[_0xdb4627(0x2ef)]())throw new SDKError(ErrorCode[_0xdb4627(0x244)],_0xdb4627(0x185)+_0x2e5271[_0xdb4627(0x308)]+_0x23a9f2,undefined,{'helpText':_0xdb4627(0x265)});process[_0xdb4627(0xe4)](_0x3bbf90);}if(!_0x2e5271[_0xdb4627(0x11b)]){if(_0x2e5271['table'])_0x2e5271[_0xdb4627(0x11b)]='table';else{if(_0x2e5271[_0xdb4627(0x294)])_0x2e5271['format']=_0xdb4627(0x294);else{if(_0x2e5271['jsonl'])_0x2e5271[_0xdb4627(0x11b)]=_0xdb4627(0x19e);else _0x2e5271[_0xdb4627(0x2c8)]&&(_0x2e5271[_0xdb4627(0x11b)]=_0xdb4627(0x2c8));}}}_0x2e5271['in']&&!_0x2e5271[_0xdb4627(0x171)]&&(_0x2e5271[_0xdb4627(0x171)]=_0x2e5271['in']);if(_0x2e5271[_0xdb4627(0x16c)])_0x2e5271['logLevel']=LogLevel[_0xdb4627(0x179)];else{if(_0x2e5271[_0xdb4627(0x18e)])_0x2e5271[_0xdb4627(0x102)]=LogLevel[_0xdb4627(0x2e6)];else _0x2e5271['logLevel']===undefined&&(_0x2e5271[_0xdb4627(0x102)]=LogLevel['INFO']);}});async function createTDXInstance(_0xcda86c){const _0x1f5d14=a2_0x1c1acf,_0x3366db=await GlobalContext[_0x1f5d14(0x2c3)](_0xcda86c);return _0x3366db['injectIntoOptions'](_0xcda86c),TDX[_0x1f5d14(0x258)]({'site':_0x3366db[_0x1f5d14(0xf6)],'apiKey':_0x3366db[_0x1f5d14(0x186)],'logLevel':_0x3366db['logLevel'],'profile':_0x3366db[_0x1f5d14(0x105)]});}const databaseCmd=program[a2_0x1c1acf(0x19c)]('database')['alias']('db')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x22a)),databaseListAction=async(_0x4f3df9,_0x441ba6)=>{const _0x4bd0d4=a2_0x1c1acf,_0x3e2d49=new DatabasesCommand(),_0x3afb77=program[_0x4bd0d4(0x305)](),_0x1c12e3=await createTDXInstance(_0x3afb77),_0x19ba1d=await _0x3e2d49[_0x4bd0d4(0x188)]({'options':{..._0x3afb77,..._0x441ba6},'args':_0x4f3df9?[_0x4f3df9]:[],'tdx':_0x1c12e3});process['exit'](_0x19ba1d);};databaseCmd['command'](a2_0x1c1acf(0x123))['description']('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xf8),{'hidden':!![]})['description'](a2_0x1c1acf(0x27e))[a2_0x1c1acf(0x1e1)](databaseListAction),program[a2_0x1c1acf(0x19c)]('chat\x20[message...]')['description'](a2_0x1c1acf(0x160))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2c1),a2_0x1c1acf(0xf3))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2de),a2_0x1c1acf(0x10c))[a2_0x1c1acf(0x1e1)](async(_0x24c8ac,_0x430d7c)=>{const _0x18010d=a2_0x1c1acf,_0x1aabd4=new ChatCommand(),_0x4752fd=program[_0x18010d(0x305)](),_0x5698b2=await createTDXInstance(_0x4752fd),_0x48a044=await _0x1aabd4[_0x18010d(0x188)]({'options':{..._0x4752fd,..._0x430d7c},'args':_0x24c8ac,'tdx':_0x5698b2});process['exit'](_0x48a044);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x1c1acf(0x271)](a2_0x1c1acf(0xe8))[a2_0x1c1acf(0x177)](a2_0x1c1acf(0x2b3),a2_0x1c1acf(0x166))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x154),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x26b),a2_0x1c1acf(0x242))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x20d),a2_0x1c1acf(0x1df))[a2_0x1c1acf(0x288)]('-H,\x20--header\x20<header>',a2_0x1c1acf(0x1ef),(_0x5c5163,_0x519691)=>{return _0x519691?[..._0x519691,_0x5c5163]:[_0x5c5163];})[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1be),a2_0x1c1acf(0x15c),'td')[a2_0x1c1acf(0x1e1)](async(_0x448a8,_0x3005a3)=>{const _0xad8d23=a2_0x1c1acf;if(!_0x448a8){apiCmd[_0xad8d23(0x20a)]();return;}const _0x58c12a=new ApiCommand(),_0x420aca=program[_0xad8d23(0x305)](),_0x1e6e80=await createTDXInstance(_0x420aca),_0x1c9673=await _0x58c12a[_0xad8d23(0x188)]({'options':{..._0x420aca,..._0x3005a3},'args':[_0x448a8],'tdx':_0x1e6e80});process['exit'](_0x1c9673);}),tableCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2c4))['description']('Table\x20management\x20commands'),tableListAction=async(_0x2d4815,_0x131e8c)=>{const _0x182a88=a2_0x1c1acf,_0x49a97e=new TablesCommand(),_0x194c10=program[_0x182a88(0x305)](),_0x20b50c=await createTDXInstance(_0x194c10);_0x131e8c['in']&&(_0x131e8c[_0x182a88(0x171)]=_0x131e8c['in']);const _0x13edf=await _0x49a97e['run']({'options':{..._0x194c10,..._0x131e8c},'args':_0x2d4815?[_0x2d4815]:[],'tdx':_0x20b50c});process[_0x182a88(0x28c)](_0x13edf);};tableCmd[a2_0x1c1acf(0x19c)]('list\x20[pattern]')[a2_0x1c1acf(0x1d0)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a7),a2_0x1c1acf(0x25d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22b),a2_0x1c1acf(0x2d1))[a2_0x1c1acf(0x1e1)](tableListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1f4),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x159))['option'](a2_0x1c1acf(0x1a7),a2_0x1c1acf(0x25d))[a2_0x1c1acf(0x288)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1c1acf(0x1e1)](tableListAction),program['command'](a2_0x1c1acf(0x1c6))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x16f))['option'](a2_0x1c1acf(0x1a7),a2_0x1c1acf(0x278))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22b),a2_0x1c1acf(0x2d1))['action'](async(_0x56eaa0,_0x22b844)=>{const _0x50e1e0=a2_0x1c1acf,_0x58e0b9=new ShowCommand(),_0x3561d5=program[_0x50e1e0(0x305)](),_0x469e76=await createTDXInstance(_0x3561d5);_0x22b844['in']&&(_0x22b844['database']=_0x22b844['in']);const _0x48ae50=await _0x58e0b9[_0x50e1e0(0x188)]({'options':{..._0x3561d5,..._0x22b844},'args':_0x56eaa0?[_0x56eaa0]:[],'tdx':_0x469e76});process[_0x50e1e0(0x28c)](_0x48ae50);}),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2e4))[a2_0x1c1acf(0x14f)](a2_0x1c1acf(0x178))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1f9))['option'](a2_0x1c1acf(0x1a7),a2_0x1c1acf(0x278))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22b),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1c1acf(0x1e1)](async(_0x3904dc,_0x507675)=>{const _0x3158f2=a2_0x1c1acf,_0x1a2bf7=new DescribeCommand(),_0x5d273f=program['opts'](),_0x24258c=await createTDXInstance(_0x5d273f);_0x507675['in']&&(_0x507675['database']=_0x507675['in']);const _0x485ad4=await _0x1a2bf7[_0x3158f2(0x188)]({'options':{..._0x5d273f,..._0x507675},'args':_0x3904dc?[_0x3904dc]:[],'tdx':_0x24258c});process['exit'](_0x485ad4);}),program[a2_0x1c1acf(0x19c)]('query\x20[sql]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2fb))['option']('-d,\x20--database\x20<database>','Database\x20to\x20query\x20(default:\x20information_schema)')['option'](a2_0x1c1acf(0x22b),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option']('--catalog\x20<catalog>',a2_0x1c1acf(0xe5))['option'](a2_0x1c1acf(0x20d),a2_0x1c1acf(0x2ea))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x282),a2_0x1c1acf(0x273),'40')['action'](async(_0x4acadd,_0x3da074)=>{const _0x2b5fee=a2_0x1c1acf,_0x4ea0a8=new QueryCommand(),_0x34ba62=program[_0x2b5fee(0x305)](),_0x2db50e=await createTDXInstance(_0x34ba62);_0x3da074['in']&&(_0x3da074[_0x2b5fee(0x171)]=_0x3da074['in']);const _0x2d4173=await _0x4ea0a8[_0x2b5fee(0x188)]({'options':{..._0x34ba62,..._0x3da074},'args':_0x4acadd?[_0x4acadd]:[],'tdx':_0x2db50e});process['exit'](_0x2d4173);});const segmentCmd=program['command'](a2_0x1c1acf(0x27b))[a2_0x1c1acf(0x14f)]('sg')['description'](a2_0x1c1acf(0x29d)),segmentListAction=async(_0x52b1c3,_0x511387)=>{const _0x1636a5=a2_0x1c1acf,_0x34b9cd=new SegmentsCommand(),_0x17c7cb=program[_0x1636a5(0x305)](),_0x3f8602=await createTDXInstance(_0x17c7cb),_0x502ac6=await _0x34b9cd[_0x1636a5(0x188)]({'options':{..._0x17c7cb,..._0x511387},'args':_0x52b1c3?[_0x52b1c3]:[],'tdx':_0x3f8602});process[_0x1636a5(0x28c)](_0x502ac6);};segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x228))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x253))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x112),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x1c1acf(0x248),a2_0x1c1acf(0x1d6),'10')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0xef))['action'](segmentListAction),program[a2_0x1c1acf(0x19c)]('segments\x20[path]',{'hidden':!![]})['description'](a2_0x1c1acf(0x27f))['option'](a2_0x1c1acf(0x112),a2_0x1c1acf(0x2fd))['option'](a2_0x1c1acf(0x248),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['option']('-w,\x20--web','Show\x20web\x20console\x20URLs\x20for\x20segments')['action'](segmentListAction),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xe0),{'hidden':!![]})[a2_0x1c1acf(0x1d0)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')['action'](async(_0xb5d053,_0x2483b0)=>{const _0x571cb4=a2_0x1c1acf,_0x3cb829=new SegmentUseCommand(),_0x4a6be3=program[_0x571cb4(0x305)](),_0x5e1956=await createTDXInstance(_0x4a6be3),_0x427bed=await _0x3cb829[_0x571cb4(0x188)]({'options':{..._0x4a6be3,..._0x2483b0},'args':[_0xb5d053],'tdx':_0x5e1956});process[_0x571cb4(0x28c)](_0x427bed);});const segmentViewAction=async(_0x24fd90,_0x298c88)=>{const _0x19f16a=a2_0x1c1acf,_0x3897d3=new SegmentViewCommand(),_0x332a73=program['opts'](),_0x592dde=await createTDXInstance(_0x332a73),_0x37668c=await _0x3897d3[_0x19f16a(0x188)]({'options':{..._0x332a73,..._0x298c88},'args':_0x24fd90?[_0x24fd90]:[],'tdx':_0x592dde});process[_0x19f16a(0x28c)](_0x37668c);};segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x280))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x314))['option'](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x243))[a2_0x1c1acf(0x1e1)](segmentViewAction),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x113),{'hidden':!![]})['alias']('describe')['option']('-w,\x20--web',a2_0x1c1acf(0x243))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x17c))['action'](segmentViewAction),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2b7))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2ce))['action'](async(_0xb85c88,_0x3a893b)=>{const _0x8cfd26=a2_0x1c1acf,_0x3d88b0=new SegmentDescCommand(),_0x49437e=program['opts'](),_0x278665=await createTDXInstance(_0x49437e),_0x570249=await _0x3d88b0[_0x8cfd26(0x188)]({'options':{..._0x49437e,..._0x3a893b},'args':_0xb85c88?[_0xb85c88]:[],'tdx':_0x278665});process['exit'](_0x570249);}),segmentCmd[a2_0x1c1acf(0x19c)]('show\x20[segment_name]')['description'](a2_0x1c1acf(0x245))[a2_0x1c1acf(0x1e1)](async(_0x32409b,_0x33d43e)=>{const _0x2f7b01=a2_0x1c1acf,_0x4a9416=new SegmentShowCommand(),_0x2e0926=program[_0x2f7b01(0x305)](),_0x48e327=await createTDXInstance(_0x2e0926),_0x1fb9f0=await _0x4a9416[_0x2f7b01(0x188)]({'options':{..._0x2e0926,..._0x33d43e},'args':_0x32409b?[_0x32409b]:[],'tdx':_0x48e327});process[_0x2f7b01(0x28c)](_0x1fb9f0);}),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2a4),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x20c))['action'](async(_0x20a5f7,_0x5d4883)=>{const _0x27b0f2=a2_0x1c1acf,_0x389e63=new SegmentFolderListCommand(),_0x1fab52=program[_0x27b0f2(0x305)](),_0xb1ee78=await createTDXInstance(_0x1fab52),_0x215007=await _0x389e63[_0x27b0f2(0x188)]({'options':{..._0x1fab52,..._0x5d4883},'args':[_0x20a5f7],'tdx':_0xb1ee78});process[_0x27b0f2(0x28c)](_0x215007);});const folderCmd=segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x110),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x317));folderCmd[a2_0x1c1acf(0x19c)]('show\x20<folder_ref>')[a2_0x1c1acf(0x1d0)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x1c1acf(0x1e1)](async(_0x402e86,_0x54d959)=>{const _0x4ea872=a2_0x1c1acf,_0x2f11a5=new SegmentFolderShowCommand(),_0x2b08a7=program[_0x4ea872(0x305)](),_0x537e03=await createTDXInstance(_0x2b08a7),_0x198c31=await _0x2f11a5[_0x4ea872(0x188)]({'options':{..._0x2b08a7,..._0x54d959},'args':[_0x402e86],'tdx':_0x537e03});process[_0x4ea872(0x28c)](_0x198c31);}),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x133))[a2_0x1c1acf(0x1d0)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x1c1acf(0x1e1)](async(_0x5f3efe,_0x4b7780)=>{const _0x38b17f=a2_0x1c1acf,_0x1e6674=new SegmentSQLCommand(),_0x4d022f=program[_0x38b17f(0x305)](),_0x563e89=await createTDXInstance(_0x4d022f),_0x4fb05e=await _0x1e6674[_0x38b17f(0x188)]({'options':{..._0x4d022f,..._0x4b7780},'args':_0x5f3efe?[_0x5f3efe]:[],'tdx':_0x563e89});process['exit'](_0x4fb05e);}),segmentCmd['command'](a2_0x1c1acf(0x109))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2b5))[a2_0x1c1acf(0x1e1)](async(_0x4e58c7,_0x47b3bb)=>{const _0x2e3edd=a2_0x1c1acf,_0x27ec30=new SegmentFieldsCommand(),_0x5e4967=program[_0x2e3edd(0x305)](),_0x4ffc02=await createTDXInstance(_0x5e4967),_0x3b1000=await _0x27ec30[_0x2e3edd(0x188)]({'options':{..._0x5e4967,..._0x47b3bb},'args':_0x4e58c7?[_0x4e58c7]:[],'tdx':_0x4ffc02});process[_0x2e3edd(0x28c)](_0x3b1000);}),segmentCmd[a2_0x1c1acf(0x19c)]('pull\x20[parent_or_file]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x238))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x309))['option'](a2_0x1c1acf(0x22e),a2_0x1c1acf(0x28e))[a2_0x1c1acf(0x1e1)](async(_0x41fdd2,_0x4afe3a)=>{const _0x1b3aff=a2_0x1c1acf,_0xc67e03=new SegmentPullCommand(),_0x524b5b=program[_0x1b3aff(0x305)](),_0x1af4a6=await createTDXInstance(_0x524b5b),_0x4ac7ba=await _0xc67e03[_0x1b3aff(0x188)]({'options':{..._0x524b5b,..._0x4afe3a},'args':_0x41fdd2?[_0x41fdd2]:[],'tdx':_0x1af4a6});process['exit'](_0x4ac7ba);}),segmentCmd['command']('push\x20[parent_or_file]')[a2_0x1c1acf(0x1d0)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')['option']('-y,\x20--yes','Skip\x20confirmation\x20prompts')[a2_0x1c1acf(0x288)]('--dry-run',a2_0x1c1acf(0x28e))['option']('--delete',a2_0x1c1acf(0x21c))[a2_0x1c1acf(0x1e1)](async(_0x309d69,_0x280a6e)=>{const _0x5dd83d=a2_0x1c1acf,_0x3d7ca0=new SegmentPushCommand(),_0x222817=program['opts'](),_0x33972c=await createTDXInstance(_0x222817),_0x648a32=await _0x3d7ca0[_0x5dd83d(0x188)]({'options':{..._0x222817,..._0x280a6e},'args':_0x309d69?[_0x309d69]:[],'tdx':_0x33972c});process[_0x5dd83d(0x28c)](_0x648a32);}),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x21d),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x14d))['option'](a2_0x1c1acf(0x286),a2_0x1c1acf(0x2d8))['option']('--rule\x20<json>','Filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x1c1acf(0x30e),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1b3),a2_0x1c1acf(0x195))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x148),a2_0x1c1acf(0x1c8))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x169),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x1c1acf(0x288)]('--no-count-population',a2_0x1c1acf(0x259))[a2_0x1c1acf(0x1e1)](async(_0x3b5186,_0x36b730)=>{const _0x2ecf6f=a2_0x1c1acf,_0x4f0095=new SegmentCreateCommand(),_0x4798d8=program['opts'](),_0x4d76f3=await createTDXInstance(_0x4798d8),_0x132e74=await _0x4f0095['run']({'options':{..._0x4798d8,..._0x36b730},'args':[_0x3b5186],'tdx':_0x4d76f3});process[_0x2ecf6f(0x28c)](_0x132e74);}),segmentCmd['command'](a2_0x1c1acf(0x298),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x24b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x128),a2_0x1c1acf(0x293))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x286),a2_0x1c1acf(0x312))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x17d),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x30e),a2_0x1c1acf(0x162))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1b3),'Move\x20to\x20folder')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x148),a2_0x1c1acf(0x1c8))[a2_0x1c1acf(0x1e1)](async(_0x1ad80b,_0x13b8b8)=>{const _0x5b6075=a2_0x1c1acf,_0x1d7631=new SegmentUpdateCommand(),_0x514cc6=program[_0x5b6075(0x305)](),_0x300382=await createTDXInstance(_0x514cc6),_0x356330=await _0x1d7631['run']({'options':{..._0x514cc6,..._0x13b8b8},'args':[_0x1ad80b],'tdx':_0x300382});process[_0x5b6075(0x28c)](_0x356330);});const parentCmd=segmentCmd[a2_0x1c1acf(0x19c)]('parent',{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x187)),parentListAction=async(_0x5a2a06,_0x1cafd7)=>{const _0x18f626=new ParentSegmentListCommand(),_0x1071b7=program['opts'](),_0x267c09=await createTDXInstance(_0x1071b7),_0x46e1f2=await _0x18f626['run']({'options':{..._0x1071b7,..._0x1cafd7},'args':_0x5a2a06?[_0x5a2a06]:[],'tdx':_0x267c09});process['exit'](_0x46e1f2);};parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2bc))['action'](parentListAction),segmentCmd[a2_0x1c1acf(0x19c)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1e3))[a2_0x1c1acf(0x1e1)](parentListAction),parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x315))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0xff))['option'](a2_0x1c1acf(0x1ed),a2_0x1c1acf(0x211))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))['action'](async(_0x55318c,_0x4fb9ff)=>{const _0x149f1a=a2_0x1c1acf,_0x482102=new ParentSegmentPullCommand(),_0x1a48bd=program[_0x149f1a(0x305)](),_0x500741=await createTDXInstance(_0x1a48bd),_0xd0841=await _0x482102[_0x149f1a(0x188)]({'options':{..._0x1a48bd,..._0x4fb9ff},'args':_0x55318c?[_0x55318c]:[],'tdx':_0x500741});process[_0x149f1a(0x28c)](_0xd0841);}),parentCmd[a2_0x1c1acf(0x19c)]('push\x20[file]')['description'](a2_0x1c1acf(0xeb))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](async(_0x7f7431,_0x2fe516)=>{const _0x103cb9=a2_0x1c1acf,_0x5b4e26=new ParentSegmentPushCommand(),_0x2be565=program[_0x103cb9(0x305)](),_0x51a828=await createTDXInstance(_0x2be565),_0x4175bc=await _0x5b4e26[_0x103cb9(0x188)]({'options':{..._0x2be565,..._0x2fe516},'args':_0x7f7431?[_0x7f7431]:[],'tdx':_0x51a828});process[_0x103cb9(0x28c)](_0x4175bc);}),parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xf0))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x269))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x239),a2_0x1c1acf(0x1d3))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x184),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option']('--behavior\x20[name]',a2_0x1c1acf(0x117))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x28a),a2_0x1c1acf(0xee))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a3),a2_0x1c1acf(0x29a),a2_0x1c1acf(0x1ec))[a2_0x1c1acf(0x1e1)](async(_0x5e05a2,_0x4c5924)=>{const _0x34a0c8=a2_0x1c1acf,_0x2e18ca=new ParentSegmentValidateCommand(),_0x456652=program['opts'](),_0x338441=await createTDXInstance(_0x456652),_0x4dd9dc=await _0x2e18ca[_0x34a0c8(0x188)]({'options':{..._0x456652,..._0x4c5924},'args':_0x5e05a2?[_0x5e05a2]:[],'tdx':_0x338441});process['exit'](_0x4dd9dc);}),parentCmd[a2_0x1c1acf(0x19c)]('preview\x20[file]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x214))['option'](a2_0x1c1acf(0x239),a2_0x1c1acf(0x262))[a2_0x1c1acf(0x288)]('--attribute\x20[name]',a2_0x1c1acf(0x134))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21b),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x28a),a2_0x1c1acf(0x29b))['option'](a2_0x1c1acf(0x1a3),a2_0x1c1acf(0x29a),a2_0x1c1acf(0x1ec))[a2_0x1c1acf(0x1e1)](async(_0x24efa2,_0x167861)=>{const _0x959d91=a2_0x1c1acf,_0x282cc0=new ParentSegmentPreviewCommand(),_0x2f5c73=program[_0x959d91(0x305)](),_0x255c68=await createTDXInstance(_0x2f5c73),_0x442572=await _0x282cc0[_0x959d91(0x188)]({'options':{..._0x2f5c73,..._0x167861},'args':_0x24efa2?[_0x24efa2]:[],'tdx':_0x255c68});process[_0x959d91(0x28c)](_0x442572);}),parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x19f))['description'](a2_0x1c1acf(0xe7))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))['action'](async(_0x5a8427,_0x71683d)=>{const _0x487cb6=a2_0x1c1acf,_0x3469d2=new ParentSegmentRunCommand(),_0x3c9ba9=program[_0x487cb6(0x305)](),_0x264454=await createTDXInstance(_0x3c9ba9),_0xd6052=await _0x3469d2['run']({'options':{..._0x3c9ba9,..._0x71683d},'args':_0x5a8427?[_0x5a8427]:[],'tdx':_0x264454});process[_0x487cb6(0x28c)](_0xd6052);});const parentSegmentCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x226))['alias']('ps')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x139));parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2bc))[a2_0x1c1acf(0x1e1)](parentListAction),parentSegmentCmd['command'](a2_0x1c1acf(0x315))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x31b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1ed),'Output\x20file\x20path')['option'](a2_0x1c1acf(0x137),'Skip\x20confirmation\x20prompt')[a2_0x1c1acf(0x288)]('-u,\x20--use',a2_0x1c1acf(0x234))[a2_0x1c1acf(0x1e1)](async(_0x42369b,_0x1a3104)=>{const _0x26a874=a2_0x1c1acf,_0x599ad9=new ParentSegmentPullCommand(),_0x35cdab=program[_0x26a874(0x305)](),_0x552be0=await createTDXInstance(_0x35cdab),_0x1469e1=await _0x599ad9[_0x26a874(0x188)]({'options':{..._0x35cdab,..._0x1a3104},'args':_0x42369b?[_0x42369b]:[],'tdx':_0x552be0});process['exit'](_0x1469e1);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x175))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1e7))['option'](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](async(_0x1a7fef,_0x4aae7c)=>{const _0x54ee9b=a2_0x1c1acf,_0x5e8b5c=new ParentSegmentPushCommand(),_0x10d7fb=program[_0x54ee9b(0x305)](),_0xc391b8=await createTDXInstance(_0x10d7fb),_0x32dffc=await _0x5e8b5c[_0x54ee9b(0x188)]({'options':{..._0x10d7fb,..._0x4aae7c},'args':_0x1a7fef?[_0x1a7fef]:[],'tdx':_0xc391b8});process['exit'](_0x32dffc);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x255))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x269))['option'](a2_0x1c1acf(0x239),a2_0x1c1acf(0x1d3))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x184),a2_0x1c1acf(0x23e))[a2_0x1c1acf(0x288)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x1c1acf(0x28a),a2_0x1c1acf(0xee))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a3),a2_0x1c1acf(0x29a),a2_0x1c1acf(0x1ec))['action'](async(_0x50b162,_0x304ef8)=>{const _0x434564=a2_0x1c1acf,_0x2567d0=new ParentSegmentValidateCommand(),_0x59b14c=program[_0x434564(0x305)](),_0x19176d=await createTDXInstance(_0x59b14c),_0x54c21e=await _0x2567d0[_0x434564(0x188)]({'options':{..._0x59b14c,..._0x304ef8},'args':_0x50b162?[_0x50b162]:[],'tdx':_0x19176d});process[_0x434564(0x28c)](_0x54c21e);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2d5))['description'](a2_0x1c1acf(0x214))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x239),a2_0x1c1acf(0x262))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x184),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21b),a2_0x1c1acf(0x30b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x28a),a2_0x1c1acf(0x29b))['option'](a2_0x1c1acf(0x1a3),a2_0x1c1acf(0x29a),a2_0x1c1acf(0x1ec))[a2_0x1c1acf(0x1e1)](async(_0x70230b,_0x4bc7c3)=>{const _0x33820b=a2_0x1c1acf,_0xa6c4=new ParentSegmentPreviewCommand(),_0x1131f9=program[_0x33820b(0x305)](),_0x3f46e0=await createTDXInstance(_0x1131f9),_0x58b2dd=await _0xa6c4[_0x33820b(0x188)]({'options':{..._0x1131f9,..._0x4bc7c3},'args':_0x70230b?[_0x70230b]:[],'tdx':_0x3f46e0});process[_0x33820b(0x28c)](_0x58b2dd);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x19f))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0xe7))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),'Skip\x20confirmation\x20prompt')[a2_0x1c1acf(0x1e1)](async(_0x43f483,_0x39d2bc)=>{const _0x451a03=a2_0x1c1acf,_0xb9651e=new ParentSegmentRunCommand(),_0x3b0a41=program['opts'](),_0x263913=await createTDXInstance(_0x3b0a41),_0xf19151=await _0xb9651e[_0x451a03(0x188)]({'options':{..._0x3b0a41,..._0x39d2bc},'args':_0x43f483?[_0x43f483]:[],'tdx':_0x263913});process[_0x451a03(0x28c)](_0xf19151);}),parentSegmentCmd['command'](a2_0x1c1acf(0x217))['description'](a2_0x1c1acf(0x189))['option']('--json',a2_0x1c1acf(0x10f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f8),a2_0x1c1acf(0x1b1))[a2_0x1c1acf(0x1e1)](async(_0xb58d51,_0x42cd61)=>{const _0x39c4c2=a2_0x1c1acf,_0x3519c2=new ParentSegmentFieldsCommand(),_0x22dd4b=program[_0x39c4c2(0x305)](),_0x2c4259=await createTDXInstance(_0x22dd4b),_0x43042c=await _0x3519c2[_0x39c4c2(0x188)]({'options':{..._0x22dd4b,..._0x42cd61},'args':_0xb58d51?[_0xb58d51]:[],'tdx':_0x2c4259});process[_0x39c4c2(0x28c)](_0x43042c);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x205))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x21f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x311))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x152),a2_0x1c1acf(0x10f))[a2_0x1c1acf(0x288)]('--jsonl',a2_0x1c1acf(0x1b1))['action'](async(_0x27ecb9,_0x173b0b)=>{const _0x4c38a8=a2_0x1c1acf,_0x30b31e=new ParentSegmentViewCommand(),_0x47670e=program['opts'](),_0x3274a1=await createTDXInstance(_0x47670e),_0x460b6b=await _0x30b31e[_0x4c38a8(0x188)]({'options':{..._0x47670e,..._0x173b0b},'args':_0x27ecb9?[_0x27ecb9]:[],'tdx':_0x3274a1});process['exit'](_0x460b6b);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x101))['description'](a2_0x1c1acf(0x13f))[a2_0x1c1acf(0x288)]('--json',a2_0x1c1acf(0x10f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f8),'Output\x20as\x20JSON\x20Lines')[a2_0x1c1acf(0x1e1)](async(_0x1abd1e,_0x3d57aa)=>{const _0xbef980=a2_0x1c1acf,_0x2a4b96=new ParentSegmentDescCommand(),_0x43f0c5=program[_0xbef980(0x305)](),_0x534ce7=await createTDXInstance(_0x43f0c5),_0x4f41a0=await _0x2a4b96['run']({'options':{..._0x43f0c5,..._0x3d57aa},'args':_0x1abd1e?[_0x1abd1e]:[],'tdx':_0x534ce7});process['exit'](_0x4f41a0);}),parentSegmentCmd[a2_0x1c1acf(0x19c)]('sql\x20[name]')['description'](a2_0x1c1acf(0x193))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x152),a2_0x1c1acf(0x10f))['option'](a2_0x1c1acf(0x2f8),a2_0x1c1acf(0x1b1))[a2_0x1c1acf(0x1e1)](async(_0x5f2438,_0x42f878)=>{const _0x3fb31c=a2_0x1c1acf,_0x80d61d=new ParentSegmentSQLCommand(),_0x3e72e2=program['opts'](),_0x4fda0b=await createTDXInstance(_0x3e72e2),_0x5d221e=await _0x80d61d[_0x3fb31c(0x188)]({'options':{..._0x3e72e2,..._0x42f878},'args':_0x5f2438?[_0x5f2438]:[],'tdx':_0x4fda0b});process[_0x3fb31c(0x28c)](_0x5d221e);}),parentSegmentCmd['command'](a2_0x1c1acf(0x19b))['description'](a2_0x1c1acf(0x2ca))['option'](a2_0x1c1acf(0x215),a2_0x1c1acf(0x145))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x152),a2_0x1c1acf(0x10f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f8),a2_0x1c1acf(0x1b1))[a2_0x1c1acf(0x1e1)](async(_0x4ffce5,_0x49ffe2)=>{const _0x7025=a2_0x1c1acf,_0x179448=new ParentSegmentShowCommand(),_0x270772=program[_0x7025(0x305)](),_0x1a4828=await createTDXInstance(_0x270772),_0x35dc6c=await _0x179448[_0x7025(0x188)]({'options':{..._0x270772,..._0x49ffe2},'args':_0x4ffce5?[_0x4ffce5]:[],'tdx':_0x1a4828});process[_0x7025(0x28c)](_0x35dc6c);}),parentSegmentCmd['command']('use\x20[name]')[a2_0x1c1acf(0x1d0)]('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x1c1acf(0x1e1)](async(_0x2bd9d,_0x290386)=>{const _0x1d5024=a2_0x1c1acf,_0x4d4774=new UseCommand(),_0x5252d3=program[_0x1d5024(0x305)](),_0x17d451=_0x2bd9d?[_0x1d5024(0x12c),_0x2bd9d]:[],_0x35c6fe=await _0x4d4774[_0x1d5024(0x188)]({'options':{..._0x5252d3,..._0x290386},'args':_0x17d451,'tdx':null});process['exit'](_0x35c6fe);}),parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xec))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1b5))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x136),a2_0x1c1acf(0x270))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x261),a2_0x1c1acf(0x246))['option']('--description\x20<text>',a2_0x1c1acf(0x21e))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x100),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x1c1acf(0x14e),a2_0x1c1acf(0x11f))[a2_0x1c1acf(0x288)]('--timezone\x20<tz>',a2_0x1c1acf(0x2a9))['option'](a2_0x1c1acf(0x11e),a2_0x1c1acf(0x2d4))['option'](a2_0x1c1acf(0x146),a2_0x1c1acf(0x15a))['option'](a2_0x1c1acf(0x1c4),a2_0x1c1acf(0x191))[a2_0x1c1acf(0x288)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x256),a2_0x1c1acf(0x1b0))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x12e),a2_0x1c1acf(0x19d))[a2_0x1c1acf(0x1e1)](async(_0x1ac719,_0x14cf27)=>{const _0x1836df=a2_0x1c1acf,_0xc2ccf7=new ParentSegmentCreateCommand(),_0x95c89e=program[_0x1836df(0x305)](),_0xc0708a=await createTDXInstance(_0x95c89e),_0xcd9f32=await _0xc2ccf7[_0x1836df(0x188)]({'options':{..._0x95c89e,..._0x14cf27},'args':[_0x1ac719],'tdx':_0xc0708a});process[_0x1836df(0x28c)](_0xcd9f32);}),parentCmd['command'](a2_0x1c1acf(0x2f4))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x201))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x286),a2_0x1c1acf(0x312))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x100),a2_0x1c1acf(0x300))[a2_0x1c1acf(0x288)]('--schedule-option\x20<value>',a2_0x1c1acf(0x2e0))['option']('--timezone\x20<tz>',a2_0x1c1acf(0x192))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x206),a2_0x1c1acf(0x164))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x26e),a2_0x1c1acf(0x10b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1b4),a2_0x1c1acf(0x281))[a2_0x1c1acf(0x288)]('--add-behaviors-file\x20<file>',a2_0x1c1acf(0x254))[a2_0x1c1acf(0x1e1)](async(_0x1228c3,_0x5e61dc)=>{const _0x379ba8=a2_0x1c1acf,_0x2959a9=new ParentSegmentUpdateCommand(),_0x44ba18=program[_0x379ba8(0x305)](),_0x271ad3=await createTDXInstance(_0x44ba18),_0x46ffc8=await _0x2959a9[_0x379ba8(0x188)]({'options':{..._0x44ba18,..._0x5e61dc},'args':[_0x1228c3],'tdx':_0x271ad3});process[_0x379ba8(0x28c)](_0x46ffc8);}),folderCmd[a2_0x1c1acf(0x19c)]('create\x20<parent_name>\x20<folder_name>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x268))['option']('--description\x20<text>',a2_0x1c1acf(0x2db))['option'](a2_0x1c1acf(0x272),a2_0x1c1acf(0x2ab))[a2_0x1c1acf(0x1e1)](async(_0x376923,_0x3b227a,_0x5bd728)=>{const _0x4cb33e=a2_0x1c1acf,_0x507ac2=new SegmentFolderCreateCommand(),_0xce718c=program[_0x4cb33e(0x305)](),_0x330e96=await createTDXInstance(_0xce718c),_0xf99f95=await _0x507ac2['run']({'options':{..._0xce718c,..._0x5bd728},'args':[_0x376923,_0x3b227a],'tdx':_0x330e96});process[_0x4cb33e(0x28c)](_0xf99f95);}),program['command'](a2_0x1c1acf(0x124))[a2_0x1c1acf(0x1d0)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x1c1acf(0x1e1)](async(_0x25dccd,_0x4099b2)=>{const _0x362e39=a2_0x1c1acf,_0x2d39fd=new ActivationsCommand(),_0x4c49df=program[_0x362e39(0x305)](),_0x111a57=await createTDXInstance(_0x4c49df),_0x5bffc4=await _0x2d39fd[_0x362e39(0x188)]({'options':{..._0x4c49df,..._0x4099b2},'args':[_0x25dccd],'tdx':_0x111a57});process[_0x362e39(0x28c)](_0x5bffc4);});const workflowCmd=program['command'](a2_0x1c1acf(0x198))[a2_0x1c1acf(0x14f)]('wf')['description'](a2_0x1c1acf(0x17f)),wfProjectCmd=workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x27a))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1e9)),wfProjectListAction=async(_0x2de6e2,_0x569149)=>{const _0x16788a=a2_0x1c1acf,_0xc75972=new WorkflowProjectsCommand(),_0x232de5=program[_0x16788a(0x305)](),_0x43c74d=await createTDXInstance(_0x232de5),_0x3d5417=await _0xc75972[_0x16788a(0x188)]({'options':{..._0x232de5,..._0x569149},'args':_0x2de6e2?[_0x2de6e2]:[],'tdx':_0x43c74d});process[_0x16788a(0x28c)](_0x3d5417);};wfProjectCmd[a2_0x1c1acf(0x19c)]('list\x20[pattern]')['description'](a2_0x1c1acf(0x2c7))[a2_0x1c1acf(0x1e1)](wfProjectListAction),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2fe))[a2_0x1c1acf(0x1d0)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x1c1acf(0x1e1)](wfProjectListAction);const wfWorkflowListAction=async(_0x1fabf3,_0x59d398)=>{const _0x18f709=a2_0x1c1acf,_0x4a0074=new WorkflowWorkflowsCommand(),_0x117cb1=program[_0x18f709(0x305)](),_0x2f4c9b=await createTDXInstance(_0x117cb1),_0x4e79d0=await _0x4a0074[_0x18f709(0x188)]({'options':{..._0x117cb1,..._0x59d398},'args':_0x1fabf3?[_0x1fabf3]:[],'tdx':_0x2f4c9b});process[_0x18f709(0x28c)](_0x4e79d0);};workflowCmd['command'](a2_0x1c1acf(0x291))[a2_0x1c1acf(0x1d0)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x241))['description'](a2_0x1c1acf(0x2b4)),wfSessionListAction=async(_0x3cdee6,_0x311eb4)=>{const _0x1a45ce=a2_0x1c1acf,_0x35e7ec=new WorkflowSessionsCommand(),_0x4f886f=program[_0x1a45ce(0x305)](),_0x17c9a2=await createTDXInstance(_0x4f886f),_0x594aac=await _0x35e7ec[_0x1a45ce(0x188)]({'options':{..._0x4f886f,..._0x311eb4},'args':_0x3cdee6?[_0x3cdee6]:[],'tdx':_0x17c9a2});process[_0x1a45ce(0x28c)](_0x594aac);};wfSessionCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x212))[a2_0x1c1acf(0x1d0)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21a),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x11d),a2_0x1c1acf(0x2a5))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x153),a2_0x1c1acf(0x1f7))[a2_0x1c1acf(0x1e1)](wfSessionListAction),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x240))['description'](a2_0x1c1acf(0x25b))[a2_0x1c1acf(0x288)]('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a2_0x1c1acf(0x11d),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x153),a2_0x1c1acf(0x1f7))[a2_0x1c1acf(0x1e1)](wfSessionListAction);const wfAttemptListAction=async(_0x17d224,_0xb61ad7)=>{const _0x51031e=a2_0x1c1acf,_0x4571d4=new WorkflowAttemptsCommand(),_0x389d3d=program[_0x51031e(0x305)](),_0x3ac949=await createTDXInstance(_0x389d3d),_0x43fb31=await _0x4571d4[_0x51031e(0x188)]({'options':{..._0x389d3d,..._0xb61ad7},'args':_0x17d224?[_0x17d224]:[],'tdx':_0x3ac949});process[_0x51031e(0x28c)](_0x43fb31);},attemptCmd=workflowCmd[a2_0x1c1acf(0x19c)]('attempt')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2e1))['argument'](a2_0x1c1acf(0x142),a2_0x1c1acf(0x1d7))[a2_0x1c1acf(0x1ca)]('[action]',a2_0x1c1acf(0x22d))[a2_0x1c1acf(0x1ca)](a2_0x1c1acf(0x18a),a2_0x1c1acf(0x1d2))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x213),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1d8),'Reason\x20for\x20killing\x20the\x20attempt')['option']('--resume-from\x20<task>',a2_0x1c1acf(0x172))[a2_0x1c1acf(0x288)]('--params\x20<json>',a2_0x1c1acf(0x299))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2be),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x302),'Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x1c1acf(0x1e1)](async(_0xcdecb5,_0x3b6db6,_0x35e0ac,_0xa45811)=>{const _0x548aa1=a2_0x1c1acf;if(_0xcdecb5===_0x548aa1(0x1fb)){await wfAttemptListAction(_0x3b6db6,_0xa45811);return;}if(!_0xcdecb5){attemptCmd['help']();return;}const _0x333a50=program[_0x548aa1(0x305)](),_0x53ad20=await createTDXInstance(_0x333a50);let _0x5109bf=0x0;if(!_0x3b6db6){const _0x486c07=new WorkflowAttemptCommand();_0x5109bf=await _0x486c07[_0x548aa1(0x188)]({'options':{..._0x333a50,..._0xa45811},'args':[_0xcdecb5],'tdx':_0x53ad20});}else{if(_0x3b6db6===_0x548aa1(0xe2)){const _0x266af3=new WorkflowLogsCommand();_0x5109bf=await _0x266af3[_0x548aa1(0x188)]({'options':{..._0x333a50,..._0xa45811},'args':_0x35e0ac?[_0xcdecb5,_0x35e0ac]:[_0xcdecb5],'tdx':_0x53ad20});}else{if(_0x3b6db6===_0x548aa1(0x13b)){const _0x1b2944=new WorkflowTasksCommand();_0x5109bf=await _0x1b2944['run']({'options':{..._0x333a50,..._0xa45811},'args':[_0xcdecb5],'tdx':_0x53ad20});}else{if(_0x3b6db6==='kill'){const _0xc26984=new WorkflowKillCommand();_0x5109bf=await _0xc26984[_0x548aa1(0x188)]({'options':{..._0x333a50,..._0xa45811},'args':[_0xcdecb5],'tdx':_0x53ad20});}else{if(_0x3b6db6==='retry'){const _0x4e883b=new WorkflowRetryCommand();_0x5109bf=await _0x4e883b[_0x548aa1(0x188)]({'options':{..._0x333a50,..._0xa45811},'args':[_0x548aa1(0x2f3)+_0xcdecb5],'tdx':_0x53ad20});}else console[_0x548aa1(0x155)](_0x548aa1(0xf4)+_0x3b6db6),console['error'](_0x548aa1(0x25a)),_0x5109bf=0x1;}}}}process[_0x548aa1(0x28c)](_0x5109bf);});attemptCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x212))['description'](a2_0x1c1acf(0x1f2))[a2_0x1c1acf(0x288)]('--include-retried','Include\x20retried\x20attempts')[a2_0x1c1acf(0x1e1)](wfAttemptListAction),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x121))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2f0))['option'](a2_0x1c1acf(0x302),'Include\x20retried\x20attempts')[a2_0x1c1acf(0x1e1)](wfAttemptListAction),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x236))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2a8))['option'](a2_0x1c1acf(0x1bb),'Resume\x20from\x20specific\x20task')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1b8),a2_0x1c1acf(0x149))[a2_0x1c1acf(0x1e1)](async(_0x28d1df,_0xe60029)=>{const _0x212a3c=a2_0x1c1acf,_0x2fd597=new WorkflowRetryCommand(),_0x372aa2=program['opts'](),_0x1359b2=await createTDXInstance(_0x372aa2),_0x3564f8=await _0x2fd597[_0x212a3c(0x188)]({'options':{..._0x372aa2,..._0xe60029},'args':[_0x28d1df],'tdx':_0x1359b2});process['exit'](_0x3564f8);}),workflowCmd['command'](a2_0x1c1acf(0x2e7))['description'](a2_0x1c1acf(0x13c))['option'](a2_0x1c1acf(0x26c),a2_0x1c1acf(0x1db),(_0x3ac8b6,_0x27af86=[])=>[..._0x27af86,_0x3ac8b6],[])[a2_0x1c1acf(0x288)]('--session-time\x20<time>',a2_0x1c1acf(0x23f))['action'](async(_0x13d99c,_0x27f47f)=>{const _0x544fb7=a2_0x1c1acf,_0x223c1b=new WorkflowRunCommand(),_0x15017d=program[_0x544fb7(0x305)](),_0x41fc02=await createTDXInstance(_0x15017d),_0x40bb7e=await _0x223c1b[_0x544fb7(0x188)]({'options':{..._0x15017d,..._0x27f47f},'args':[_0x13d99c],'tdx':_0x41fc02});process[_0x544fb7(0x28c)](_0x40bb7e);}),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1ba))['description']('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a2_0x1c1acf(0x30d),a2_0x1c1acf(0x194))[a2_0x1c1acf(0x1e1)](async(_0x21bc66,_0x578222,_0x1d9e64)=>{const _0x48abbe=a2_0x1c1acf,_0x3069e1=new WorkflowDownloadCommand(),_0x4d4685=program['opts'](),_0x993475=await createTDXInstance(_0x4d4685),_0x34d097=await _0x3069e1[_0x48abbe(0x188)]({'options':{..._0x4d4685,..._0x1d9e64},'args':[_0x21bc66,_0x578222||'.'],'tdx':_0x993475});process[_0x48abbe(0x28c)](_0x34d097);}),workflowCmd['command'](a2_0x1c1acf(0x218))[a2_0x1c1acf(0x1d0)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x267),'Override\x20project\x20name')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x30d),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2bf),a2_0x1c1acf(0x163))['action'](async(_0x11b225,_0x11201c)=>{const _0x3a69c6=a2_0x1c1acf,_0xabbf40=new WorkflowPushCommand(),_0x5d978c=program[_0x3a69c6(0x305)](),_0x3309de=await createTDXInstance(_0x5d978c),_0x1f679c=await _0xabbf40[_0x3a69c6(0x188)]({'options':{..._0x5d978c,..._0x11201c},'args':_0x11b225?[_0x11b225]:[],'tdx':_0x3309de});process[_0x3a69c6(0x28c)](_0x1f679c);}),workflowCmd['command']('delete\x20<project-name-or-id>')[a2_0x1c1acf(0x1d0)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x1c1acf(0x1e1)](async(_0x479ac6,_0x145bdc)=>{const _0xd6ba78=a2_0x1c1acf,_0x225809=new WorkflowDeleteCommand(),_0xcb897f=program[_0xd6ba78(0x305)](),_0x5aa0f6=await createTDXInstance(_0xcb897f),_0x15e2c5=await _0x225809[_0xd6ba78(0x188)]({'options':{..._0xcb897f,..._0x145bdc},'args':[_0x479ac6],'tdx':_0x5aa0f6});process[_0xd6ba78(0x28c)](_0x15e2c5);});const jobCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x230))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2f6)),jobListAction=async _0x2c02fb=>{const _0x122802=a2_0x1c1acf,_0x12584d=new JobListCommand(),_0x2f174d=program['opts'](),_0x5e7888=await createTDXInstance(_0x2f174d),_0x49afd9=await _0x12584d[_0x122802(0x188)]({'options':{..._0x2f174d,..._0x2c02fb},'args':[],'tdx':_0x5e7888});process[_0x122802(0x28c)](_0x49afd9);};jobCmd['command'](a2_0x1c1acf(0x1fb))['description']('List\x20jobs')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21a),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2ee),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x23a))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21a),a2_0x1c1acf(0x18c))[a2_0x1c1acf(0x1e1)](jobListAction),jobCmd['command'](a2_0x1c1acf(0x237))[a2_0x1c1acf(0x1d0)]('Show\x20job\x20details')[a2_0x1c1acf(0x1e1)](async(_0x5dddb2,_0x175149)=>{const _0x518eee=a2_0x1c1acf,_0x32f928=new JobShowCommand(),_0x52d837=program[_0x518eee(0x305)](),_0x9905c7=await createTDXInstance(_0x52d837),_0x56cba6=await _0x32f928[_0x518eee(0x188)]({'options':{..._0x52d837,..._0x175149},'args':[_0x5dddb2],'tdx':_0x9905c7});process[_0x518eee(0x28c)](_0x56cba6);}),jobCmd[a2_0x1c1acf(0x19c)]('kill\x20<job-id>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x168))[a2_0x1c1acf(0x1e1)](async(_0x536547,_0x4d4b81)=>{const _0x59e782=a2_0x1c1acf,_0x4aec69=new JobKillCommand(),_0x17da95=program[_0x59e782(0x305)](),_0x386bce=await createTDXInstance(_0x17da95),_0x22fc8b=await _0x4aec69[_0x59e782(0x188)]({'options':{..._0x17da95,..._0x4d4b81},'args':[_0x536547],'tdx':_0x386bce});process[_0x59e782(0x28c)](_0x22fc8b);}),jobCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1f6))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x158))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x24c),a2_0x1c1acf(0x10a),'trino')[a2_0x1c1acf(0x288)]('-f,\x20--file\x20<path>',a2_0x1c1acf(0x24e))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x316),a2_0x1c1acf(0x115),'information_schema')[a2_0x1c1acf(0x1e1)](async(_0x580ef9,_0x2744b6)=>{const _0x997e70=a2_0x1c1acf,_0x199d80=new JobSubmitCommand(),_0x4ca1cf=program[_0x997e70(0x305)](),_0x374585=await createTDXInstance(_0x4ca1cf),_0x3f8791=await _0x199d80['run']({'options':{..._0x4ca1cf,..._0x2744b6},'args':_0x580ef9?[_0x580ef9]:[],'tdx':_0x374585});process['exit'](_0x3f8791);}),jobCmd['command']('result\x20<job-id>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0xfc))[a2_0x1c1acf(0x1e1)](async(_0x2aaf08,_0x3756cc)=>{const _0x2ad8f4=a2_0x1c1acf,_0x3932d9=new JobResultCommand(),_0x51a6dd=program['opts'](),_0x5192e0=await createTDXInstance(_0x51a6dd),_0x5259e9=await _0x3932d9[_0x2ad8f4(0x188)]({'options':{..._0x51a6dd,..._0x3756cc},'args':[_0x2aaf08],'tdx':_0x5192e0});process['exit'](_0x5259e9);});const llmCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2f9))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x224));llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x250))[a2_0x1c1acf(0x1d0)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x1c1acf(0x1e1)](async(_0x5a9189,_0x4bc12a)=>{const _0x416784=a2_0x1c1acf,_0x503521=new LLMUseCommand(),_0x5b717e=program[_0x416784(0x305)](),_0x31db2e=await createTDXInstance(_0x5b717e),_0x32e65b=await _0x503521[_0x416784(0x188)]({'options':{..._0x5b717e,..._0x4bc12a},'args':[_0x5a9189],'tdx':_0x31db2e});process[_0x416784(0x28c)](_0x32e65b);}),llmCmd['command']('models')[a2_0x1c1acf(0x1d0)]('List\x20available\x20LLM\x20models')[a2_0x1c1acf(0x1e1)](async _0x52c7c1=>{const _0x3520ee=a2_0x1c1acf,_0x3bf3cf=new LLMModelsCommand(),_0x157822=program[_0x3520ee(0x305)](),_0x156dd3=await createTDXInstance(_0x157822),_0x5f5d9d=await _0x3bf3cf['run']({'options':{..._0x157822,..._0x52c7c1},'args':[],'tdx':_0x156dd3});process['exit'](_0x5f5d9d);});const projectCmd=llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x27a))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1c3)),llmProjectListAction=async(_0x101842,_0x2c6e01)=>{const _0x3545c0=a2_0x1c1acf,_0x3f5c93=new LLMProjectsCommand(),_0x3f16f2=program[_0x3545c0(0x305)](),_0x2e6c0f=await createTDXInstance(_0x3f16f2),_0x1430bb=await _0x3f5c93[_0x3545c0(0x188)]({'options':{..._0x3f16f2,..._0x2c6e01},'args':_0x101842?[_0x101842]:[],'tdx':_0x2e6c0f});process[_0x3545c0(0x28c)](_0x1430bb);};projectCmd[a2_0x1c1acf(0x19c)]('list\x20[pattern]')['description'](a2_0x1c1acf(0x1f3))[a2_0x1c1acf(0x288)]('-w,\x20--web',a2_0x1c1acf(0x1bf))[a2_0x1c1acf(0x1e1)](llmProjectListAction),llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2fe))['description']('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x1bf))[a2_0x1c1acf(0x1e1)](llmProjectListAction),projectCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xec))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1ac))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x286),a2_0x1c1acf(0x249))[a2_0x1c1acf(0x1e1)](async(_0x473666,_0x2ba2f2)=>{const _0x2fdab0=a2_0x1c1acf,_0x4fe1ff=new LLMProjectCreateCommand(),_0x50c305=program[_0x2fdab0(0x305)](),_0x3b6647=await createTDXInstance(_0x50c305),_0x35e757=await _0x4fe1ff['run']({'options':{..._0x50c305,..._0x2ba2f2},'args':[_0x473666],'tdx':_0x3b6647});process[_0x2fdab0(0x28c)](_0x35e757);}),projectCmd['command']('delete\x20<name>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2eb))[a2_0x1c1acf(0x1e1)](async(_0x55f485,_0x23e142)=>{const _0x45d86b=a2_0x1c1acf,_0x2787f3=new LLMProjectDeleteCommand(),_0x3a8b20=program[_0x45d86b(0x305)](),_0x2ffa67=await createTDXInstance(_0x3a8b20),_0x2112ee=await _0x2787f3[_0x45d86b(0x188)]({'options':{..._0x3a8b20,..._0x23e142},'args':[_0x55f485],'tdx':_0x2ffa67});process[_0x45d86b(0x28c)](_0x2112ee);}),projectCmd['command'](a2_0x1c1acf(0x1e4))[a2_0x1c1acf(0x1d0)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f2),a2_0x1c1acf(0x31a))['option'](a2_0x1c1acf(0x22e),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x1c1acf(0x1e1)](async(_0x36ba82,_0x25d4e4)=>{const _0x33c3f6=a2_0x1c1acf,_0x182aa9=new LLMProjectBackupCommand(),_0x390cc2=program['opts'](),_0x2fd104=await createTDXInstance(_0x390cc2),_0x19d07c=await _0x182aa9[_0x33c3f6(0x188)]({'options':{..._0x390cc2,..._0x25d4e4},'args':[_0x36ba82],'tdx':_0x2fd104});process[_0x33c3f6(0x28c)](_0x19d07c);}),projectCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x313))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1e5))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x251),a2_0x1c1acf(0x319))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22e),a2_0x1c1acf(0x181))[a2_0x1c1acf(0x1e1)](async(_0xfff443,_0x1ad92c)=>{const _0x4089ac=a2_0x1c1acf,_0x3bf245=new LLMProjectRestoreCommand(),_0x10ec88=program['opts'](),_0x46fe7a=await createTDXInstance(_0x10ec88),_0x89a2c2=await _0x3bf245[_0x4089ac(0x188)]({'options':{..._0x10ec88,..._0x1ad92c},'args':[_0xfff443],'tdx':_0x46fe7a});process[_0x4089ac(0x28c)](_0x89a2c2);});const llmAgentListAction=async(_0x4097c3,_0x211dac)=>{const _0x216752=a2_0x1c1acf,_0x39c2b2=new LLMAgentsCommand(),_0x20f413=program[_0x216752(0x305)](),_0xa549ac=await createTDXInstance(_0x20f413),_0x36f627=await _0x39c2b2[_0x216752(0x188)]({'options':{..._0x20f413,..._0x211dac},'args':_0x4097c3?[_0x4097c3]:[],'tdx':_0xa549ac});process[_0x216752(0x28c)](_0x36f627);};llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x106))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0xf9))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x170))[a2_0x1c1acf(0x1e1)](llmAgentListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x106))['description'](a2_0x1c1acf(0xf9))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x170))[a2_0x1c1acf(0x1e1)](llmAgentListAction),llmCmd[a2_0x1c1acf(0x19c)]('history\x20[chat-id]')['description']('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0xf1),a2_0x1c1acf(0x2a1))[a2_0x1c1acf(0x1e1)](async(_0x37662e,_0x3ceec3)=>{const _0x49d2f9=a2_0x1c1acf,_0x521def=new LLMHistoryCommand(),_0x214fd4=program['opts'](),_0x1ff2f5=await createTDXInstance(_0x214fd4),_0x3e2686=await _0x521def[_0x49d2f9(0x188)]({'options':{..._0x214fd4,..._0x3ceec3},'args':_0x37662e?[_0x37662e]:[],'tdx':_0x1ff2f5});process['exit'](_0x3e2686);}),llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1d9))[a2_0x1c1acf(0x1d0)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x1c1acf(0x288)]('--port\x20<number>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','4000')[a2_0x1c1acf(0x288)]('--project\x20<name>',a2_0x1c1acf(0x2c9))['option'](a2_0x1c1acf(0x14c),a2_0x1c1acf(0x13e))[a2_0x1c1acf(0x1e1)](async _0x475cae=>{const _0xc7ceb1=a2_0x1c1acf,_0x2c324a=new LLMProxyCommand(),_0x4e4e03=program[_0xc7ceb1(0x305)](),_0x2b6b89=await createTDXInstance(_0x4e4e03),_0x3a4821={..._0x475cae,'port':_0x475cae[_0xc7ceb1(0x127)]?parseInt(_0x475cae[_0xc7ceb1(0x127)],0xa):undefined},_0x233697=await _0x2c324a[_0xc7ceb1(0x188)]({'options':{..._0x4e4e03,..._0x3a4821},'args':[],'tdx':_0x2b6b89});process[_0xc7ceb1(0x28c)](_0x233697);}),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x232))['usage'](a2_0x1c1acf(0x1e6))[a2_0x1c1acf(0x1d0)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')['option'](a2_0x1c1acf(0x2b8),a2_0x1c1acf(0x2a6),a2_0x1c1acf(0x140))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x220),a2_0x1c1acf(0x147))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x12d),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2c5),a2_0x1c1acf(0x196))[a2_0x1c1acf(0x22f)]()[a2_0x1c1acf(0x2ad)](!![])[a2_0x1c1acf(0x177)](a2_0x1c1acf(0x2b3),a2_0x1c1acf(0x1d5))[a2_0x1c1acf(0x1e1)](async(_0x385cbf,_0x53d002)=>{const _0x2dccaf=a2_0x1c1acf,_0x59ad7a=program[_0x2dccaf(0x305)](),_0x2c2d10=Array[_0x2dccaf(0x2b9)](_0x385cbf)?_0x385cbf:[];if(_0x2c2d10[0x0]===_0x2dccaf(0x108)){const _0x165586=new ClaudeStatuslineCommand(),_0x2814c1=await _0x165586[_0x2dccaf(0x188)]({'options':{..._0x59ad7a,..._0x53d002},'args':_0x2c2d10['slice'](0x1),'tdx':null});process[_0x2dccaf(0x28c)](_0x2814c1);}if(_0x2c2d10[0x0]===_0x2dccaf(0x167)){const _0x14bad3=new ClaudeUsageCommand(),_0x52935b=await _0x14bad3[_0x2dccaf(0x188)]({'options':{..._0x59ad7a,..._0x53d002},'args':_0x2c2d10[_0x2dccaf(0x165)](0x1),'tdx':null});process['exit'](_0x52935b);}const _0x26162=new ClaudeCommand(),_0x432603=await createTDXInstance(_0x59ad7a),_0x44842b=await _0x26162[_0x2dccaf(0x188)]({'options':{..._0x59ad7a,..._0x53d002},'args':_0x2c2d10,'tdx':_0x432603});process['exit'](_0x44842b);}),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x131))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1de))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x235),a2_0x1c1acf(0xe3))[a2_0x1c1acf(0x1e1)](async _0xde083d=>{const _0x1b72ad=a2_0x1c1acf,_0x5c86d9=new ContextCommand(),_0xf28884=program[_0x1b72ad(0x305)](),_0x3dd402=await _0x5c86d9[_0x1b72ad(0x188)]({'options':{..._0xf28884,..._0xde083d},'args':[],'tdx':null});process[_0x1b72ad(0x28c)](_0x3dd402);}),program[a2_0x1c1acf(0x19c)]('use\x20[resource]\x20[value]')['description'](a2_0x1c1acf(0x20e))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x235),'Clear\x20session\x20context')[a2_0x1c1acf(0x1e1)](async(_0x23a206,_0x3b4722,_0x52bb93)=>{const _0x4f99c0=a2_0x1c1acf,_0x11cf09=new UseCommand(),_0x4ce9f6=program[_0x4f99c0(0x305)](),_0x39122a=[];if(_0x23a206)_0x39122a[_0x4f99c0(0x1fc)](_0x23a206);if(_0x3b4722)_0x39122a[_0x4f99c0(0x1fc)](_0x3b4722);const _0x101d80=await _0x11cf09[_0x4f99c0(0x188)]({'options':{..._0x4ce9f6,..._0x52bb93},'args':_0x39122a,'tdx':null});process[_0x4f99c0(0x28c)](_0x101d80);}),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x10e))[a2_0x1c1acf(0x1d0)]('Interactive\x20chat\x20selector')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0xf1),'Show\x20the\x20most\x20recent\x20chat')[a2_0x1c1acf(0x1e1)](async _0x19289f=>{const _0xaf6e7a=a2_0x1c1acf,_0x3056aa=new ChatsCommand(),_0x17ef22=program[_0xaf6e7a(0x305)](),_0x1df0d9=await createTDXInstance(_0x17ef22),_0x2475e3=await _0x3056aa['run']({'options':{..._0x17ef22,..._0x19289f},'args':[],'tdx':_0x1df0d9});process[_0xaf6e7a(0x28c)](_0x2475e3);});const authCmd=program['command'](a2_0x1c1acf(0x190))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x24d));async function runAuthStatusCommand(_0xff1a68){const _0x13ff73=a2_0x1c1acf,_0x500a53=new AuthStatusCommand(),_0x61cd4a=program['opts'](),_0x23488e=await createTDXInstance(_0x61cd4a),_0x53a3b6=await _0x500a53['run']({'options':{..._0x61cd4a,..._0xff1a68},'args':[],'tdx':_0x23488e});process[_0x13ff73(0x28c)](_0x53a3b6);}authCmd[a2_0x1c1acf(0x1e1)](runAuthStatusCommand),authCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x264))['description'](a2_0x1c1acf(0x279))[a2_0x1c1acf(0x1e1)](runAuthStatusCommand),authCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x227))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x26f))[a2_0x1c1acf(0x177)](a2_0x1c1acf(0x2b3),a2_0x1c1acf(0x16d))[a2_0x1c1acf(0x1e1)](async _0x50985d=>{const _0x4bc938=a2_0x1c1acf,_0x47e697=new AuthSetupCommand(),_0x5185a0=program[_0x4bc938(0x305)](),_0x245c1f=await createTDXInstance(_0x5185a0),_0x11e834=await _0x47e697['run']({'options':{..._0x5185a0,..._0x50985d},'args':[],'tdx':_0x245c1f});process[_0x4bc938(0x28c)](_0x11e834);}),authCmd['command'](a2_0x1c1acf(0x180))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x161))['addHelpText']('after',a2_0x1c1acf(0x31d))['action'](async _0x224c28=>{const _0x13263d=a2_0x1c1acf,_0x56c83d=new AuthClearCommand(),_0x2f9f1f=program[_0x13263d(0x305)](),_0x1cc0ba=await _0x56c83d['run']({'options':{..._0x2f9f1f,..._0x224c28},'args':[],'tdx':null});process[_0x13263d(0x28c)](_0x1cc0ba);});const userCmd=program[a2_0x1c1acf(0x19c)]('user')['description']('User\x20management\x20commands'),userListAction=async _0x4bd3d0=>{const _0x4e7a6e=new UserListCommand(),_0x1ed2c3=program['opts'](),_0x163f6b=await createTDXInstance(_0x1ed2c3),_0x49825c=await _0x4e7a6e['run']({'options':{..._0x1ed2c3,..._0x4bd3d0},'args':[],'tdx':_0x163f6b});process['exit'](_0x49825c);};userCmd[a2_0x1c1acf(0x1e1)](async _0x59912f=>{const _0x30c328=a2_0x1c1acf,_0x27be1a=new UserCommand(),_0x1aa005=program['opts'](),_0x5db156=await createTDXInstance(_0x1aa005),_0x248a62=await _0x27be1a[_0x30c328(0x188)]({'options':{..._0x1aa005,..._0x59912f},'args':[],'tdx':_0x5db156});process[_0x30c328(0x28c)](_0x248a62);}),userCmd['command'](a2_0x1c1acf(0x1fb))[a2_0x1c1acf(0x1d0)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x1c1acf(0x1e1)](userListAction),program['command'](a2_0x1c1acf(0x257))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x274))[a2_0x1c1acf(0x1e1)](userListAction),program['command'](a2_0x1c1acf(0x135))['description']('List\x20all\x20available\x20profiles')[a2_0x1c1acf(0x1e1)](async _0x147520=>{const _0x15ae4e=a2_0x1c1acf,_0x2fea9c=new ProfilesCommand(),_0x1dcfa9=program['opts'](),_0x120612=await _0x2fea9c[_0x15ae4e(0x188)]({'options':{..._0x1dcfa9,..._0x147520},'args':[],'tdx':null});process[_0x15ae4e(0x28c)](_0x120612);});const engageCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x143))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1b9)),createEngageAction=_0x579860=>{return async(_0x556c8e,_0x4ce7f3)=>{const _0x43fe98=a2_0x476c,_0x312c8b=new _0x579860(),_0x5dfd58=program[_0x43fe98(0x305)](),_0x50ef0c=await createTDXInstance(_0x5dfd58),_0x3caeac=await _0x312c8b['run']({'options':{..._0x5dfd58,..._0x4ce7f3},'args':[_0x556c8e],'tdx':_0x50ef0c});process[_0x43fe98(0x28c)](_0x3caeac);};},createEngageNoArgAction=_0x5d8d0a=>{return async _0xb62ab3=>{const _0x5c773b=a2_0x476c,_0xfd3833=new _0x5d8d0a(),_0x426a82=program[_0x5c773b(0x305)](),_0x1952ce=await createTDXInstance(_0x426a82),_0x1f023a=await _0xfd3833[_0x5c773b(0x188)]({'options':{..._0x426a82,..._0xb62ab3},'args':[],'tdx':_0x1952ce});process[_0x5c773b(0x28c)](_0x1f023a);};},campaignCmd=engageCmd['command'](a2_0x1c1acf(0x2c2))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x208)),campaignListAction=async(_0x58e540,_0x5b645a)=>{const _0x35eb4c=a2_0x1c1acf,_0x4ae5d1=new EngageCampaignsCommand(),_0x4c04a4=program['opts'](),_0x1baecb=await createTDXInstance(_0x4c04a4),_0x19c53d=await _0x4ae5d1['run']({'options':{..._0x4c04a4,..._0x5b645a},'args':_0x58e540?[_0x58e540]:[],'tdx':_0x1baecb});process[_0x35eb4c(0x28c)](_0x19c53d);};function a2_0x51da(){const _0x14311d=['use\x20<name>','subcommandDescription','join','buildTime','Create\x20a\x20new\x20LLM\x20project','List\x20agents\x20in\x20current\x20project','Update\x20an\x20email\x20template','repeat','Customer\x20group\x20as\x20JSON\x20string','Output\x20as\x20JSON\x20Lines','Set\x20operation\x20timeout\x20in\x20seconds','--folder\x20<name>','--add-behaviors\x20<json>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Arguments:','forEach','--params\x20<json>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','download\x20<project-name>\x20[output-dir]','--from-task\x20<task>','get','HTML\x20template\x20content','--type\x20<api_type>','Show\x20console\x20URLs','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','optionDescription','--debug','LLM\x20project\x20management','--behaviors\x20<json>','journey','show\x20[table]','Change\x20to\x20directory\x20before\x20executing\x20command','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Starter\x20message','argument','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Output\x20directory','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Email\x20subject\x20template','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','description','workspaces\x20[pattern]','Task\x20name\x20for\x20logs\x20action','Show\x20only\x20master\x20table\x20validation','Agent\x20prompt/instructions','\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\x20recursion\x20depth\x20(default:\x2010)','Attempt\x20ID','--reason\x20<text>','proxy','--segment\x20<path>','Workflow\x20parameter\x20(repeatable)','New\x20template\x20name','Resume\x20a\x20paused\x20journey','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Read\x20request\x20body\x20from\x20file','templates\x20[pattern]','action','Include\x20execution\x20statistics','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','backup\x20<name>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','[options]\x20--\x20[claude-code-args...]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Update\x20an\x20existing\x20agent','Workflow\x20project\x20management','Show\x20agent\x20details','--json-columns\x20<cols>','-1d','-o,\x20--output\x20<file>','log','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Push\x20without\x20confirmation','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','tables\x20[pattern]','.dev','submit\x20[query]','End\x20time\x20filter\x20(ISO\x208601\x20format)','stdout','Describe\x20table\x20schema','-d,\x20--database\x20<name>','list','push','Data\x20connection\x20management\x20(for\x20activations/exports)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Campaign\x20description','--format\x20<format>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--starter-message\x20<text>','\x20-\x20built\x20','1336OYEooa','view\x20[name]','--add-attributes\x20<json>','_hidden','Campaign\x20management','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','help','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','-f,\x20--file\x20<path>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','requiredOption','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Output\x20file\x20path\x20(default:\x20<name>.yml)','list\x20[project]','--include-subtasks','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--limit\x20<n>','hook','fields\x20[name]','push\x20[project-name-or-dir]','--color','--status\x20<status>','--behavior\x20[name]','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','create\x20<segment_name>','Parent\x20segment\x20description','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','-c,\x20--continue','--output\x20<file>','Pause\x20a\x20running\x20journey','replace','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Usage:\x20','parent-segment','setup','list\x20[path]','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Database\x20management\x20commands','--in\x20<database>','template','Action:\x20logs,\x20tasks,\x20kill,\x20retry','--dry-run','allowUnknownOption','job','registeredArguments','claude\x20[args...]','parse','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--clear','retry\x20<session-id>','show\x20<job-id>','Pull\x20child\x20segments\x20to\x20YAML\x20files','--master','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Show\x20connection\x20details\x20by\x20name','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Workspace\x20name\x20(required)','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','sessions\x20[project]','session','Request\x20body\x20as\x20JSON\x20string','Open\x20segment\x20in\x20web\x20browser','INVALID_ARGUMENT','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Master\x20table\x20name','Resume\x20a\x20paused\x20campaign','--max-depth\x20<depth>','Project\x20description','commandUsage','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--job-type\x20<type>','Authentication\x20management','Read\x20query\x20from\x20file','aliases','use\x20<project-name>','--name\x20<new-name>','commandDescription','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Add\x20behaviors\x20from\x20JSON\x20file','validate\x20[name]','--customer-group\x20<json>','users','create','Skip\x20population\x20counting','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','649606JBTgVg','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Directory\x20does\x20not\x20exist:\x20','Plaintext\x20template\x20content','Commands:','--table\x20<table>','Show\x20master\x20table\x20sample\x20data','-C,\x20--directory\x20<path>','status','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','List\x20all\x20data\x20connections','--name\x20<name>','Create\x20segment\x20folder','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','clone\x20[source]','--data\x20<data>','--param\x20<key=value>','Open\x20journey\x20in\x20web\x20browser','--add-attributes-file\x20<file>','Setup\x20API\x20key\x20authentication\x20interactively','Master\x20database\x20name','summary','--parent-folder\x20<name>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Launch\x20a\x20campaign','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','project','segment','Show\x20workspace\x20details','subcommandTerm','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','view\x20[segment_name]','Add\x20behaviors\x20as\x20JSON\x20string','--limit\x20<rows>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Enable\x20verbose\x20logging','Maximum\x20tool\x20iterations\x20(default:\x204)','--description\x20<text>','Email\x20sender\x20ID\x20for\x20delivery','option','options','--enriched','Campaign\x20type\x20(email\x20or\x20push)','exit','Preview\x20operation\x20without\x20executing','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20web\x20console\x20URLs\x20for\x20journeys','workflows\x20[project]','-p,\x20--profile\x20<name>','New\x20segment\x20name','json','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Show\x20journey\x20statistics','noColor','update\x20<segment_name>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','CDP\x20segment\x20management\x20commands','launch\x20<name-or-id>','argumentTerm','Template\x20name','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Agent\x20description','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','folders\x20<parent_name>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','tdx','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Timezone\x20(e.g.,\x20America/Los_Angeles)','--timezone\x20<tz>','Parent\x20folder\x20name\x20for\x20nested\x20folders','campaigns\x20[pattern]','allowExcessArguments','view\x20<name-or-path>','isTTY','2217957IquPvM','version','LLM\x20project\x20to\x20use\x20(overrides\x20context)','after','Workflow\x20session\x20management','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Overwrite\x20local\x20changes\x20without\x20confirmation','desc\x20[segment_name]','--model\x20<name>','isArray','--html\x20<html>','3907482HlupzZ','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','map','--force','--skip-validation','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--agent\x20<ref>','campaign','createAsync','table','--no-proxy','--include-stats','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','tsv','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20available\x20connector\x20types','gitRevision','--email-sender-id\x20<id>','Show\x20segment\x20schema\x20(column\x20types)','\x20(resolved\x20to\x20','--plaintext\x20<text>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','configureHelp','Attributes\x20as\x20JSON\x20string','preview\x20[name]','Show\x20journey\x20details','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Segment\x20description','agent','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Folder\x20description','--site\x20<site>','preAction','--new','--start-at\x20<datetime>','Updated\x20schedule\x20option','Workflow\x20attempt\x20management','--prompt\x20<text>','Create\x20a\x20new\x20campaign','describe\x20[table]',',\x20version\x20','DEBUG','run\x20<workflow>','List\x20journeys\x20in\x20current\x20context','Campaign\x20name','Read\x20SQL\x20query\x20from\x20file','Delete\x20an\x20LLM\x20project','catch','argumentDescription','jobs','isDirectory','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--workspace\x20<name>','-o,\x20--output\x20<folder>','attempt:','update\x20<name>','required','Job\x20management\x20commands','Editor\x20type','--jsonl','llm','--description\x20<desc>','Run\x20Trino\x20query\x20with\x20streaming\x20results','--stage\x20<name>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','projects\x20[pattern]','System\x20prompt/instructions\x20(default:\x20empty)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','--include-retried','argv','0.7','opts','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','hidden','directory','Skip\x20confirmation\x20prompts','--version','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','padWidth','--revision\x20<revision>','--rule-file\x20<file>','Workspace\x20management','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Open\x20parent\x20segment\x20in\x20web\x20browser','Updated\x20description','restore\x20<folder>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','pull\x20[name]','--database\x20<name>','[DEPRECATED]\x20Segment\x20folder\x20management','delete\x20<name-or-id>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Output\x20folder\x20(default:\x20{project_name}.llm)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','show\x20<agent-name>','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','Create\x20an\x20email\x20template','use\x20<path>','Database\x20to\x20use\x20(overrides\x20context)','logs','Clear\x20session\x20context','chdir','Trino\x20catalog\x20(default:\x20td)','--no-color','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','resume\x20<name-or-id>','update\x20<agent-name>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','create\x20<name>','Agent\x20name','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Show\x20web\x20console\x20URLs\x20for\x20segments','validate\x20[file]','--last','flatMap','Agent\x20reference\x20(project-name/agent-name)','Unknown\x20action:\x20','workspace','site','5206435osDzPP','databases\x20[pattern]','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','includes','Save\x20output\x20to\x20file','Get\x20job\x20results','--subject\x20<subject>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--schedule-type\x20<type>','desc\x20[name]','logLevel','Email\x20template\x20management','utf-8','profile','agents\x20[pattern]','--llm-project\x20<name>','statusline','fields\x20[parent_name]','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Add\x20attributes\x20from\x20JSON\x20file','Start\x20a\x20new\x20chat\x20session','build-info.json','chats','Output\x20as\x20JSON','folder','claude-4.5-sonnet','-r,\x20--recursive','info\x20[segment_name]','--max-tool-iterations\x20<n>','Database\x20name\x20(default:\x20information_schema)','stats\x20<name-or-path>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--full','Skip\x20confirmation\x20prompt','commands','format','Workspace\x20name','--from\x20<timestamp>','--attributes\x20<json>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','stderr','attempts\x20[project]','1973340UWiznM','list\x20[pattern]','activations\x20<segment_name>','--system-prompt\x20<text>','update\x20<name-or-id>','port','--name\x20<new_name>','--editor-type\x20<type>','settings\x20<type>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','parent_segment','-r,\x20--resume','--customer-group-file\x20<file>','delete\x20<agent-name>','length','context','Delete\x20a\x20campaign','sql\x20[segment_name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','profiles','--database\x20<db>','-y,\x20--yes','--timeout\x20<seconds>','Parent\x20segment\x20management','LLM\x20agent\x20management','tasks','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','sonnet','tdx\x20','[attempt-id]','engage','Show\x20campaign\x20details','Limit\x20number\x20of\x20rows','--attributes-file\x20<file>','Continue\x20most\x20recent\x20conversation','--kind\x20<type>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','New\x20campaign\x20name','--table','--agent\x20<name>','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--schedule-option\x20<value>','alias','Update\x20a\x20workspace','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--json','--to\x20<timestamp>','-X,\x20--method\x20<method>','error','duplicate\x20<name-or-id>','Delete\x20a\x20workspace','Submit\x20a\x20job','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Attributes\x20from\x20JSON\x20file','filter','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','-n,\x20--name\x20<name>','--yes','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Remove\x20API\x20key\x20from\x20system\x20keychain','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Skip\x20validation\x20of\x20.dig\x20files','Add\x20attributes\x20as\x20JSON\x20string','slice','\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','usage','Kill\x20a\x20job','--invisible','--type\x20<type>','Duplicate\x20a\x20campaign','trace','\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','pull\x20[project]\x20[agent-name]','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Show\x20agent\x20chat\x20URLs','database','Resume\x20from\x20specific\x20task\x20(retry)','schema\x20<type>','Show\x20stats\x20for\x20specific\x20stage','push\x20[name]','pause\x20<name-or-path>','addHelpText','desc','TRACE','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','-f,\x20--force','Show\x20segment\x20details\x20(alias\x20for\x20view)','--rule\x20<json>','2577700iTPBlu','Workflow\x20(Digdag)\x20management\x20commands','clear','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','113372xXaOgf','pause\x20<name-or-id>','--attribute\x20[name]','Path\x20is\x20not\x20a\x20directory:\x20','apiKey','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','run','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','[task-name]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','New\x20workspace\x20name','debug','show\x20<name-or-id>','auth','Behaviors\x20as\x20JSON\x20string','Updated\x20timezone','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Folder\x20name\x20for\x20organization','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','connections','workflow','resume\x20<name-or-path>','set','show\x20[name]','command','Customer\x20group\x20from\x20JSON\x20file','jsonl','run\x20[name]','-w,\x20--web','name','Update\x20a\x20campaign','--interval\x20<range>','Workspace\x20description','Name\x20for\x20the\x20new\x20project\x20(required)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','-d,\x20--database\x20<database>'];a2_0x51da=function(){return _0x14311d;};return a2_0x51da();}campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x28f))[a2_0x1c1acf(0x288)]('--type\x20<type>',a2_0x1c1acf(0x1c0))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21a),a2_0x1c1acf(0x15d))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](campaignListAction),engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2ac))['description'](a2_0x1c1acf(0x2c0))['option'](a2_0x1c1acf(0x16a),a2_0x1c1acf(0x1c0))['option'](a2_0x1c1acf(0x21a),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](campaignListAction),campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x18f))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x144))[a2_0x1c1acf(0x288)]('--workspace\x20<name>','Workspace\x20name')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x118),a2_0x1c1acf(0x1f1))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')['description'](a2_0x1c1acf(0x2e3))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x2e9))['requiredOption'](a2_0x1c1acf(0x16a),a2_0x1c1acf(0x28b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x23d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2fa),a2_0x1c1acf(0x1ff))['option']('--segment\x20<path>',a2_0x1c1acf(0x1cf))[a2_0x1c1acf(0x288)]('--email-sender-id\x20<id>',a2_0x1c1acf(0x287))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1eb),a2_0x1c1acf(0xfe))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2df),a2_0x1c1acf(0x310))[a2_0x1c1acf(0x288)]('--timezone\x20<tz>',a2_0x1c1acf(0x306))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x126))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1a2))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x14a))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2fa),a2_0x1c1acf(0x1ff))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1da),a2_0x1c1acf(0x1cf))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2cd),a2_0x1c1acf(0x287))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1eb),a2_0x1c1acf(0xfe))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2df),a2_0x1c1acf(0x310))['option'](a2_0x1c1acf(0x2aa),a2_0x1c1acf(0x306))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x318))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x132))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))['option'](a2_0x1c1acf(0x15f),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x1c1acf(0x29e))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x277))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x1c1acf(0x183))[a2_0x1c1acf(0x1d0)]('Pause\x20a\x20campaign')['option'](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x1c1acf(0xe9))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x247))['option'](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x156))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x16b))['option'](a2_0x1c1acf(0x2f1),'Workspace\x20name')['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x22c))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x103)),templateListAction=async(_0x19b1b7,_0x5b5f3a)=>{const _0x279d5f=a2_0x1c1acf,_0x13dbcb=new EngageTemplatesCommand(),_0x394259=program[_0x279d5f(0x305)](),_0x3941f1=await createTDXInstance(_0x394259),_0x28fd69=await _0x13dbcb[_0x279d5f(0x188)]({'options':{..._0x394259,..._0x5b5f3a},'args':_0x19b1b7?[_0x19b1b7]:[],'tdx':_0x3941f1});process[_0x279d5f(0x28c)](_0x28fd69);};templateCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1cd))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](templateListAction),engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1e0))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x151))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f1),'Workspace\x20name')['action'](templateListAction),templateCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x18f))[a2_0x1c1acf(0x1d0)]('Show\x20email\x20template\x20details')['option'](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x118),a2_0x1c1acf(0x1f1))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x1c1acf(0x19c)]('create')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x31e))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x2a0))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0xfd),'Email\x20subject\x20template')[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x2ba),a2_0x1c1acf(0x1bd))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x23d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2d0),a2_0x1c1acf(0x25f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x129),a2_0x1c1acf(0x2f7))[a2_0x1c1acf(0x1e1)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x126))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1ae))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x1dc))['option'](a2_0x1c1acf(0xfd),a2_0x1c1acf(0x1ce))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2ba),a2_0x1c1acf(0x1bd))[a2_0x1c1acf(0x288)]('--plaintext\x20<text>',a2_0x1c1acf(0x25f))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x318))[a2_0x1c1acf(0x1d0)]('Delete\x20an\x20email\x20template')[a2_0x1c1acf(0x288)]('--workspace\x20<name>','Workspace\x20name')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x15f),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xf5))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x30f)),workspaceListAction=async(_0xcdfd52,_0x2f8b7c)=>{const _0x33a8a2=a2_0x1c1acf,_0x5a4339=new EngageWorkspacesCommand(),_0x4b5b99=program[_0x33a8a2(0x305)](),_0x145b61=await createTDXInstance(_0x4b5b99),_0x242aee=await _0x5a4339[_0x33a8a2(0x188)]({'options':{..._0x4b5b99,..._0x2f8b7c},'args':_0xcdfd52?[_0xcdfd52]:[],'tdx':_0x145b61});process['exit'](_0x242aee);};workspaceCmd['command'](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x18b))[a2_0x1c1acf(0x1e1)](workspaceListAction),engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1d1))['description']('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x1c1acf(0x1e1)](workspaceListAction),workspaceCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x18f))['description'](a2_0x1c1acf(0x27c))[a2_0x1c1acf(0x288)]('--full',a2_0x1c1acf(0x1f1))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x258))['description']('Create\x20a\x20workspace')[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x288)]('--description\x20<desc>',a2_0x1c1acf(0x1a4))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x1c1acf(0x126))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x150))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x18d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2fa),'Workspace\x20description')[a2_0x1c1acf(0x1e1)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x318))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x157))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x15f),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x1c1acf(0x1a8))[a2_0x1c1acf(0x1d0)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x1c1acf(0x1e1)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x1c1acf(0x19c)]('connection')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1fd)),connectionListAction=async _0x46bf56=>{const _0x1e11c6=a2_0x1c1acf,_0x3ea118=new ConnectionListCommand(),_0x4992db=program['opts'](),_0x2d6597=await createTDXInstance(_0x4992db),_0x5b3109=await _0x3ea118[_0x1e11c6(0x188)]({'options':{..._0x4992db,..._0x46bf56},'args':[],'tdx':_0x2d6597});process['exit'](_0x5b3109);};connectionCmd['command']('list')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x266))[a2_0x1c1acf(0x1e1)](connectionListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x197),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x229))[a2_0x1c1acf(0x1e1)](connectionListAction),connectionCmd[a2_0x1c1acf(0x19c)]('show\x20<name>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x23b))[a2_0x1c1acf(0x1e1)](async(_0x10d0da,_0xdb3fd6)=>{const _0x5a9ff8=new ConnectionShowCommand(),_0x378ef9=program['opts'](),_0x24d1d5=await createTDXInstance(_0x378ef9),_0x173c64=await _0x5a9ff8['run']({'options':{..._0x378ef9,..._0xdb3fd6},'args':[_0x10d0da],'tdx':_0x24d1d5});process['exit'](_0x173c64);}),connectionCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x173))['description']('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x1c1acf(0x1e1)](async(_0x36325d,_0x39537c)=>{const _0x4e3f87=a2_0x1c1acf,_0x3ebc86=new ConnectionSchemaCommand(),_0x4735f6=program['opts'](),_0x586d5e=await createTDXInstance(_0x4735f6),_0x53a6a7=await _0x3ebc86[_0x4e3f87(0x188)]({'options':{..._0x4735f6,..._0x39537c},'args':[_0x36325d],'tdx':_0x586d5e});process[_0x4e3f87(0x28c)](_0x53a6a7);}),connectionCmd['command']('types')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2cb))[a2_0x1c1acf(0x1e1)](async _0x1c802c=>{const _0x12fbb6=a2_0x1c1acf,_0x3bb53e=new ConnectionTypesCommand(),_0x14a33e=program[_0x12fbb6(0x305)](),_0x19f746=await createTDXInstance(_0x14a33e),_0x4c17d5=await _0x3bb53e[_0x12fbb6(0x188)]({'options':{..._0x14a33e,..._0x1c802c},'args':[],'tdx':_0x19f746});process[_0x12fbb6(0x28c)](_0x4c17d5);}),connectionCmd['command'](a2_0x1c1acf(0x12a))['description']('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x1c1acf(0x1e1)](async(_0x4fe21b,_0x2eeb88)=>{const _0x48edf1=a2_0x1c1acf,_0x445148=new ConnectionSettingsCommand(),_0x377d1b=program[_0x48edf1(0x305)](),_0x29a1dc=await createTDXInstance(_0x377d1b),_0x19872c=await _0x445148[_0x48edf1(0x188)]({'options':{..._0x377d1b,..._0x2eeb88},'args':[_0x4fe21b],'tdx':_0x29a1dc});process[_0x48edf1(0x28c)](_0x19872c);});const journeyCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1c5))[a2_0x1c1acf(0x1d0)]('CDP\x20Journey\x20Orchestration\x20commands');journeyCmd['command'](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2e8))['option'](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x290))[a2_0x1c1acf(0x1e1)](async(_0x17e58a,_0x5eb61e)=>{const _0x1b2641=a2_0x1c1acf,_0x58f808=new JourneyListCommand(),_0x3d3d61=program[_0x1b2641(0x305)](),_0x591b9c=await createTDXInstance(_0x3d3d61),_0x17336a=await _0x58f808[_0x1b2641(0x188)]({'options':{..._0x3d3d61,..._0x5eb61e},'args':_0x17e58a?[_0x17e58a]:[],'tdx':_0x591b9c});process[_0x1b2641(0x28c)](_0x17336a);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2ae))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2d6))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x26d))['option'](a2_0x1c1acf(0x2c6),a2_0x1c1acf(0x1e2))[a2_0x1c1acf(0x1e1)](async(_0x420e9a,_0x31122c)=>{const _0x8ee48=a2_0x1c1acf,_0x4b7ee9=new JourneyViewCommand(),_0x1f7caf=program['opts'](),_0x456ad5=await createTDXInstance(_0x1f7caf),_0x250c53=await _0x4b7ee9[_0x8ee48(0x188)]({'options':{..._0x1f7caf,..._0x31122c},'args':[_0x420e9a],'tdx':_0x456ad5});process[_0x8ee48(0x28c)](_0x250c53);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x116))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x296))['option'](a2_0x1c1acf(0x2fc),a2_0x1c1acf(0x174))[a2_0x1c1acf(0x1e1)](async(_0x2675b9,_0x43f1b9)=>{const _0x4c3a40=a2_0x1c1acf,_0x508a64=new JourneyStatsCommand(),_0x58c75b=program[_0x4c3a40(0x305)](),_0x1340cc=await createTDXInstance(_0x58c75b),_0x160fd2=await _0x508a64['run']({'options':{..._0x58c75b,..._0x43f1b9},'args':[_0x2675b9],'tdx':_0x1340cc});process[_0x4c3a40(0x28c)](_0x160fd2);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x176))['description'](a2_0x1c1acf(0x222))[a2_0x1c1acf(0x1e1)](async(_0x27cd4a,_0x9d97dc)=>{const _0x2cf73e=a2_0x1c1acf,_0x47d7a0=new JourneyPauseCommand(),_0x2001a2=program[_0x2cf73e(0x305)](),_0x240948=await createTDXInstance(_0x2001a2),_0x1bbde5=await _0x47d7a0[_0x2cf73e(0x188)]({'options':{..._0x2001a2,..._0x9d97dc},'args':[_0x27cd4a],'tdx':_0x240948});process[_0x2cf73e(0x28c)](_0x1bbde5);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x199))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1dd))[a2_0x1c1acf(0x1e1)](async(_0x119535,_0x312cda)=>{const _0xde9867=a2_0x1c1acf,_0x4fd45f=new JourneyResumeCommand(),_0xfbd39b=program['opts'](),_0xad69b3=await createTDXInstance(_0xfbd39b),_0x10d131=await _0x4fd45f['run']({'options':{..._0xfbd39b,..._0x312cda},'args':[_0x119535],'tdx':_0xad69b3});process[_0xde9867(0x28c)](_0x10d131);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x315))[a2_0x1c1acf(0x1d0)]('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22e),a2_0x1c1acf(0x2da))[a2_0x1c1acf(0x1e1)](async(_0x26d89c,_0x15c5ec)=>{const _0x130bf3=a2_0x1c1acf,_0x3734d9=new JourneyPullCommand(),_0x89f68=program[_0x130bf3(0x305)](),_0x5a95f6=await createTDXInstance(_0x89f68),_0x5a31d5=await _0x3734d9[_0x130bf3(0x188)]({'options':{..._0x89f68,..._0x15c5ec},'args':_0x26d89c?[_0x26d89c]:[],'tdx':_0x5a95f6});process[_0x130bf3(0x28c)](_0x5a31d5);}),journeyCmd[a2_0x1c1acf(0x19c)]('push\x20[target]')['description'](a2_0x1c1acf(0x20b))[a2_0x1c1acf(0x1e1)](async(_0x223675,_0x1cad6c)=>{const _0x5bafa5=a2_0x1c1acf,_0xf87291=new JourneyPushCommand(),_0x4f13e1=program[_0x5bafa5(0x305)](),_0x4c8bf1=await createTDXInstance(_0x4f13e1),_0x254d51=await _0xf87291['run']({'options':{..._0x4f13e1,..._0x1cad6c},'args':_0x223675?[_0x223675]:[],'tdx':_0x4c8bf1});process[_0x5bafa5(0x28c)](_0x254d51);});const agentSyncCmd=program['command'](a2_0x1c1acf(0x2d9))['description'](a2_0x1c1acf(0x13a));agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x16e))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1cb))[a2_0x1c1acf(0x288)]('-o,\x20--output\x20<dir>',a2_0x1c1acf(0x1cc))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x17b),a2_0x1c1acf(0x2b6))[a2_0x1c1acf(0x1e1)](async(_0x401bef,_0x5bd9d,_0x1b618e)=>{const _0x3ee7cf=a2_0x1c1acf,_0x1143c7=new AgentPullCommand(),_0xfac72e=program[_0x3ee7cf(0x305)](),_0xce23ad=await createTDXInstance(_0xfac72e),_0x4926a7=[];if(_0x401bef)_0x4926a7['push'](_0x401bef);if(_0x5bd9d)_0x4926a7[_0x3ee7cf(0x1fc)](_0x5bd9d);const _0x12071d=await _0x1143c7[_0x3ee7cf(0x188)]({'options':{..._0xfac72e,..._0x1b618e},'args':_0x4926a7,'tdx':_0xce23ad});process['exit'](_0x12071d);}),agentSyncCmd[a2_0x1c1acf(0x19c)]('push\x20[path]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x301))['option']('-f,\x20--force',a2_0x1c1acf(0x1f0))[a2_0x1c1acf(0x1e1)](async(_0x2f6934,_0x3ad59c)=>{const _0x53ab85=a2_0x1c1acf,_0x3ef5c9=new AgentPushCommand(),_0x4427b8=program[_0x53ab85(0x305)](),_0x55b31c=await createTDXInstance(_0x4427b8),_0x514f80=await _0x3ef5c9[_0x53ab85(0x188)]({'options':{..._0x4427b8,..._0x3ad59c},'args':_0x2f6934?[_0x2f6934]:[],'tdx':_0x55b31c});process[_0x53ab85(0x28c)](_0x514f80);}),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x26a))['description'](a2_0x1c1acf(0x23c))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x15e),a2_0x1c1acf(0x1a5))[a2_0x1c1acf(0x1e1)](async(_0x5c9fcf,_0x55a6f4)=>{const _0x4c0555=a2_0x1c1acf,_0x35f3e8=new AgentCloneCommand(),_0x20c969=program[_0x4c0555(0x305)](),_0x10ac7e=await createTDXInstance(_0x20c969),_0x2cba04=await _0x35f3e8['run']({'options':{..._0x20c969,..._0x55a6f4},'args':_0x5c9fcf?[_0x5c9fcf]:[],'tdx':_0x10ac7e});process[_0x4c0555(0x28c)](_0x2cba04);}),agentSyncCmd[a2_0x1c1acf(0x19c)]('list\x20[pattern]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1ad))[a2_0x1c1acf(0x288)]('-w,\x20--web','Show\x20agent\x20chat\x20URLs')[a2_0x1c1acf(0x1e1)](llmAgentListAction),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x31c))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1ea))['action'](async(_0x3bce25,_0x556eed)=>{const _0x3f9b56=a2_0x1c1acf,_0x2fadf9=new LLMAgentShowCommand(),_0x149cc2=program['opts'](),_0x57e752=await createTDXInstance(_0x149cc2),_0xadda52=await _0x2fadf9[_0x3f9b56(0x188)]({'options':{..._0x149cc2,..._0x556eed},'args':[_0x3bce25],'tdx':_0x57e752});process[_0x3f9b56(0x28c)](_0xadda52);}),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xec))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x295))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x125),a2_0x1c1acf(0x2ff))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2b8),a2_0x1c1acf(0x2d2),a2_0x1c1acf(0x111))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x202),a2_0x1c1acf(0x1c9))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x114),a2_0x1c1acf(0x285),'4')[a2_0x1c1acf(0x288)]('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x1c1acf(0x304))['action'](async(_0x681981,_0x1ce47e)=>{const _0x277383=a2_0x1c1acf,_0x2c300e=new LLMAgentCreateCommand(),_0x32c09e=program[_0x277383(0x305)](),_0x406b53=await createTDXInstance(_0x32c09e),_0x54b415=await _0x2c300e[_0x277383(0x188)]({'options':{..._0x32c09e,..._0x1ce47e},'args':[_0x681981],'tdx':_0x406b53});process['exit'](_0x54b415);}),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xea))['description'](a2_0x1c1acf(0x1e8))[a2_0x1c1acf(0x288)]('--name\x20<text>',a2_0x1c1acf(0xed))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2e2),a2_0x1c1acf(0x1d4))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x286),a2_0x1c1acf(0x2a2))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x202),'Starter\x20message')[a2_0x1c1acf(0x1e1)](async(_0x5c729d,_0x556021)=>{const _0x45b6ea=a2_0x1c1acf,_0x14ae9f=new LLMAgentUpdateCommand(),_0x41b3c8=program[_0x45b6ea(0x305)](),_0x434393=await createTDXInstance(_0x41b3c8),_0x5d4725=await _0x14ae9f['run']({'options':{..._0x41b3c8,..._0x556021},'args':[_0x5c729d],'tdx':_0x434393});process['exit'](_0x5d4725);}),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x12f))['description']('Delete\x20an\x20agent')['action'](async(_0x44de56,_0x19c99a)=>{const _0x508161=a2_0x1c1acf,_0x58b843=new LLMAgentDeleteCommand(),_0x2e3100=program['opts'](),_0x4c5633=await createTDXInstance(_0x2e3100),_0x658aa0=await _0x58b843[_0x508161(0x188)]({'options':{..._0x2e3100,..._0x19c99a},'args':[_0x44de56],'tdx':_0x4c5633});process[_0x508161(0x28c)](_0x658aa0);});export{program};export function runCLI(){const _0xc12ecc=a2_0x1c1acf;program[_0xc12ecc(0x233)](process[_0xc12ecc(0x303)]);!process[_0xc12ecc(0x303)][_0xc12ecc(0x165)](0x2)[_0xc12ecc(0x130)]&&program['outputHelp']();const _0x4d5952=packageJson[_0xc12ecc(0x2b1)];process[_0xc12ecc(0x120)][_0xc12ecc(0x2af)]&&process[_0xc12ecc(0x303)][_0xc12ecc(0x130)]>0x2&&!_0x4d5952[_0xc12ecc(0xfa)](_0xc12ecc(0x1f5))&&checkForUpdate(_0x4d5952)['then'](_0x476b90=>{_0x476b90&&displayUpdateNotification(_0x476b90);})[_0xc12ecc(0x2ec)](()=>{});}
|
|
1
|
+
const a2_0x5f1ae4=a2_0x151b;(function(_0x736cc9,_0x3accd4){const _0x162fea=a2_0x151b,_0x41109e=_0x736cc9();while(!![]){try{const _0x428baa=parseInt(_0x162fea(0x25b))/0x1*(parseInt(_0x162fea(0x2b5))/0x2)+-parseInt(_0x162fea(0x18f))/0x3*(parseInt(_0x162fea(0x2ad))/0x4)+parseInt(_0x162fea(0x2a4))/0x5+-parseInt(_0x162fea(0x23b))/0x6*(parseInt(_0x162fea(0x1c4))/0x7)+parseInt(_0x162fea(0x1ac))/0x8+-parseInt(_0x162fea(0x25f))/0x9+parseInt(_0x162fea(0x284))/0xa*(parseInt(_0x162fea(0x256))/0xb);if(_0x428baa===_0x3accd4)break;else _0x41109e['push'](_0x41109e['shift']());}catch(_0x4cbceb){_0x41109e['push'](_0x41109e['shift']());}}}(a2_0xe2e8,0xdce50));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';function a2_0xe2e8(){const _0x316ccd=['Set\x20or\x20show\x20parent\x20segment\x20context','Show\x20web\x20console\x20URLs\x20for\x20segments','--include-retried','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','description','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','template','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','tdx','Update\x20an\x20email\x20template','--limit\x20<rows>','padEnd','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Skip\x20confirmation\x20prompt','Data\x20connection\x20management\x20(for\x20activations/exports)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','forEach','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','command','argument','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','show\x20[table]','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','-d,\x20--database\x20<name>','-d,\x20--database\x20<database>','flatMap','padWidth','Add\x20attributes\x20from\x20JSON\x20file','--description\x20<desc>','--data\x20<data>','Show\x20email\x20template\x20details','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','engage','describe\x20[table]','repeat','Usage:\x20','Set\x20operation\x20timeout\x20in\x20seconds','kill\x20<job-id>','--editor-type\x20<type>','commandDescription','-u,\x20--use','Filtering\x20rule\x20as\x20JSON\x20string','commands','update\x20<name>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','gitRevision','catch','stats\x20<name-or-path>','Campaign\x20management','Updated\x20schedule\x20option','Workflow\x20parameter\x20(repeatable)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','apiKey','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','jsonl','--timeout\x20<seconds>','LLM\x20project\x20management','List\x20all\x20users\x20in\x20the\x20account','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','buildTime','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--database\x20<db>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','DEBUG','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--port\x20<number>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--params\x20<json>','--customer-group\x20<json>','session','Task\x20name\x20for\x20logs\x20action','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','--in\x20<name>','use\x20<project-name>','--schedule-option\x20<value>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','project','-H,\x20--header\x20<header>','User\x20management\x20commands','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','configureHelp','settings\x20<type>','users','--skip-validation','list','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','subcommandTerm','use\x20<name>','--model\x20<name>','agents\x20[pattern]','Attributes\x20from\x20JSON\x20file','Database\x20to\x20use\x20(overrides\x20context)','--parent-segment\x20<name>','addHelpText','--jsonl','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','tdx\x20','--customer-group-file\x20<file>','create','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','desc\x20[name]','directory','Workspace\x20name','length','Skip\x20confirmation\x20prompts','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','fields\x20[name]','Workflow\x20project\x20management','tasks','attempt','campaign','logLevel','LLM\x20agent\x20management','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--site\x20<site>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20segment\x20details\x20(alias\x20for\x20view)','1094151rapied','Update\x20an\x20existing\x20agent','--status\x20<status>','-c,\x20--continue','resume\x20<name-or-path>','claude\x20[args...]','--version','--workspace\x20<name>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','preview\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','campaigns\x20[pattern]','delete\x20<project-name-or-id>','parent','Resume\x20from\x20specific\x20task','Resume\x20from\x20specific\x20task\x20(retry)','--new','chats','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Create\x20a\x20new\x20campaign','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--from\x20<timestamp>','Create\x20segment\x20folder','show\x20<name>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','optionDescription','6423216RlHTxH','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--segment\x20<path>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Options:','Clear\x20session\x20context','--json','New\x20campaign\x20name','--job-type\x20<type>','desc\x20[segment_name]','option','Include\x20subtasks\x20in\x20tasks\x20output','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','resume\x20<name-or-id>','required','Show\x20workspace\x20details','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','activations\x20<segment_name>','run\x20[name]','New\x20workspace\x20name','trace','kill','Interactive\x20chat\x20selector','filter','8834462jDfyHH','update\x20<name-or-id>','optionTerm','clear','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Include\x20retried\x20attempts','Path\x20is\x20not\x20a\x20directory:\x20','Editor\x20type','site','-y,\x20--yes','get','validate\x20[file]','delete\x20<name-or-id>','--llm-project\x20<name>','Agent\x20reference\x20(project-name/agent-name)','--name\x20<text>','database','--revision\x20<revision>','--interval\x20<range>','CDP\x20Journey\x20Orchestration\x20commands','Updated\x20description','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Output\x20as\x20JSON\x20Lines','Create\x20an\x20email\x20template','stdout','--agent\x20<name>','--timezone\x20<tz>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Duplicate\x20a\x20campaign','Overwrite\x20local\x20changes\x20without\x20confirmation','push\x20[project-name-or-dir]','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Add\x20behaviors\x20from\x20JSON\x20file','Show\x20only\x20master\x20table\x20validation','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','-v,\x20--verbose','argumentTerm','attempts\x20[project]','--behavior\x20[name]','Export\x20journey(s)\x20as\x20YAML\x20files','Pause\x20a\x20campaign','-w,\x20--web','version','fields\x20[parent_name]','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Make\x20segment\x20invisible\x20(default:\x20visible)','Attempt\x20ID','format','Update\x20a\x20workspace','Show\x20master\x20table\x20sample\x20data','List\x20jobs','--yes','List\x20available\x20LLM\x20models','push\x20[file]','--delete','push','commandUsage','Job\x20management\x20commands','types','allowExcessArguments','--enriched','--attributes\x20<json>','Request\x20body\x20as\x20JSON\x20string','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','pull\x20[name]','--force','Show\x20agent\x20details','utf-8','download\x20<project-name>\x20[output-dir]','Table\x20management\x20commands','--include-subtasks','--resume-from\x20<task>','Database\x20to\x20query\x20(default:\x20information_schema)','INVALID_ARGUMENT','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','stderr','Parent\x20segment\x20management','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','\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','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','-p,\x20--profile\x20<name>','Move\x20to\x20folder','folder','createAsync','0.7','Workflow\x20session\x20management','Show\x20the\x20most\x20recent\x20chat','--agent\x20<ref>','--reason\x20<text>','\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','replace','Behaviors\x20as\x20JSON\x20string','use\x20[resource]\x20[value]','Alias\x20for\x20--database\x20(natural\x20language\x20style)','usage','--email-sender-id\x20<id>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Enable\x20verbose\x20logging','-o,\x20--output\x20<folder>','--add-attributes-file\x20<file>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--param\x20<key=value>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','run','create\x20<parent_name>\x20<folder_name>','INFO','requiredOption','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Output\x20as\x20JSON','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Open\x20segment\x20in\x20web\x20browser','[action]','6BEbNag','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--max-tool-iterations\x20<n>','registeredArguments','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','history\x20[chat-id]','List\x20all\x20available\x20profiles','Read\x20SQL\x20query\x20from\x20file','colorFn','action','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','GET','use\x20<path>','retry','Pause\x20a\x20running\x20journey','argumentDescription','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--html\x20<html>','-o,\x20--output\x20<file>','tsv','--max-depth\x20<depth>','--name\x20<name>','Campaign\x20name','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','28338299xagRwW','Delete\x20an\x20LLM\x20project','list\x20[project]','-r,\x20--recursive','exit','15098gnvpwR','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','projects\x20[pattern]','Launch\x20a\x20campaign','6996294tZSmEY','parse','show\x20<name-or-id>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','create\x20<name>','result\x20<job-id>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','job','--type\x20<type>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','--tsv','desc','\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','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Override\x20project\x20name','--project\x20<name>','jobs','Revision\x20name\x20(default:\x20timestamp)','Kill\x20a\x20job','allowUnknownOption','--no-proxy','hook','Describe\x20table\x20schema','Workspace\x20management','--name\x20<new_name>','--full','AI-native\x20CLI\x20for\x20Treasure\x20Data','log','isTTY','info\x20[segment_name]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--behaviors-file\x20<file>','chat\x20[message...]','journey','-f,\x20--file\x20<path>','--kind\x20<type>','10jCSKNU','--in\x20<database>','Delete\x20an\x20email\x20template','--table','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','summary','Start\x20a\x20new\x20chat\x20session','Force\x20retry\x20even\x20if\x20not\x20failed','view\x20[segment_name]','Agent\x20description','Create\x20a\x20workspace','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','New\x20template\x20name','workspaces\x20[pattern]','Master\x20table\x20name','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','after','delete\x20<name>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','context','--invisible','trino','Remove\x20API\x20key\x20from\x20system\x20keychain','Starter\x20message','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Show\x20journey\x20statistics','update\x20<agent-name>','--attribute\x20[name]','Resume\x20a\x20paused\x20journey','Add\x20attributes\x20as\x20JSON\x20string','Workspace\x20description','1182560hsPkDT','error','argv','proxy','parent_segment','create\x20<segment_name>','Output\x20file\x20path','--parent-folder\x20<name>','--add-attributes\x20<json>','12bjsEBd','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','databases\x20[pattern]','HTML\x20template\x20content','Arguments:','preview\x20[file]','duplicate\x20<name-or-id>','56BoNper','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','opts','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','sonnet','Updated\x20timezone','profile','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','slice','aliases','--dry-run','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--type\x20<api_type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','logs','--limit\x20<n>','--master','Show\x20campaign\x20details','pull\x20[project]\x20[agent-name]','--include-stats','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','-C,\x20--directory\x20<path>','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--color','Show\x20journey\x20details','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','.dev','--start-at\x20<datetime>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Setup\x20API\x20key\x20authentication\x20interactively','\x20-\x20built\x20','Read\x20query\x20from\x20file','Segment\x20description','parent-segment','Parent\x20folder\x20name\x20for\x20nested\x20folders','retry\x20<session-id>','workspace','schema\x20<type>','Skip\x20population\x20counting','Behaviors\x20from\x20JSON\x20file','table','workflow','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','[DEPRECATED]\x20Segment\x20folder\x20management','--name\x20<new-name>','--last','--behaviors\x20<json>','port','Maximum\x20recursion\x20depth\x20(default:\x2010)','--add-behaviors-file\x20<file>','sql\x20[name]','Attributes\x20as\x20JSON\x20string','List\x20all\x20data\x20connections','Open\x20journey\x20in\x20web\x20browser','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Workspace\x20name\x20(required)','pause\x20<name-or-path>','chdir','run\x20<workflow>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','segment','Plaintext\x20template\x20content','view\x20<name-or-path>','use\x20[name]','parents\x20[pattern]','_hidden','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','alias','Directory\x20does\x20not\x20exist:\x20','Show\x20agent\x20chat\x20URLs','--catalog\x20<catalog>','preAction','pause\x20<name-or-id>','Folder\x20name\x20for\x20organization','Timezone\x20(e.g.,\x20America/Los_Angeles)','delete\x20<agent-name>','[task-name]','Show\x20web\x20console\x20URLs\x20for\x20journeys','-n,\x20--name\x20<name>','debug','--subject\x20<subject>','isArray','templates\x20[pattern]','--description\x20<text>','backup\x20<name>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--rule-file\x20<file>','Agent\x20prompt/instructions','connections','Filtering\x20rule\x20from\x20JSON\x20file','workflows\x20[project]','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','join','then','-1d','Email\x20sender\x20ID\x20for\x20delivery','validate\x20[name]','status','subcommandDescription','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20agents\x20in\x20current\x20project','[attempt-id]','--table\x20<table>','--no-count-population','--clear','Show\x20console\x20URLs','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Maximum\x20tool\x20iterations\x20(default:\x204)','information_schema','Customer\x20group\x20from\x20JSON\x20file','End\x20time\x20filter\x20(ISO\x208601\x20format)','--to\x20<timestamp>','--starter-message\x20<text>','--schedule-type\x20<type>','-f,\x20--force','Update\x20a\x20campaign','Create\x20a\x20new\x20agent\x20in\x20current\x20project','clone\x20[source]','show\x20<folder_ref>','map','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','list\x20[pattern]','Campaign\x20type\x20(email\x20or\x20push)','--no-color','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--plaintext\x20<text>','isDirectory','Pull\x20child\x20segments\x20to\x20YAML\x20files','pull\x20[parent_or_file]','--debug',',\x20version\x20','Email\x20template\x20management','name','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','json','push\x20[parent_or_file]','sessions\x20[project]','Authentication\x20management'];a2_0xe2e8=function(){return _0x316ccd;};return a2_0xe2e8();}import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x5f1ae4(0x260)](readFileSync(join(__dirname,'../package.json'),a2_0x5f1ae4(0x209)));let buildInfo={};try{buildInfo=JSON[a2_0x5f1ae4(0x260)](readFileSync(join(__dirname,'build-info.json'),'utf-8'));}catch{}if(process[a2_0x5f1ae4(0x2a6)]['includes'](a2_0x5f1ae4(0x195))){let versionOutput=a2_0x5f1ae4(0x17a)+packageJson[a2_0x5f1ae4(0x1f0)];buildInfo[a2_0x5f1ae4(0x374)]&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x5f1ae4(0x382)]&&(versionOutput+=a2_0x5f1ae4(0x2d4)+buildInfo[a2_0x5f1ae4(0x382)]),console[a2_0x5f1ae4(0x27b)](versionOutput),process[a2_0x5f1ae4(0x25a)](0x0);}const program=new Command();let description=a2_0x5f1ae4(0x27a);buildInfo[a2_0x5f1ae4(0x374)]?description+=',\x20version\x20'+packageJson['version']+'\x20('+buildInfo[a2_0x5f1ae4(0x374)]+')':description+=a2_0x5f1ae4(0x33b)+packageJson[a2_0x5f1ae4(0x1f0)];program[a2_0x5f1ae4(0x33d)](a2_0x5f1ae4(0x34d))[a2_0x5f1ae4(0x348)](description),program[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2ca),'Change\x20to\x20directory\x20before\x20executing\x20command')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x216),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x18c),a2_0x5f1ae4(0x39f),'us01')[a2_0x5f1ae4(0x1b6)]('--format\x20<format>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x287),a2_0x5f1ae4(0x237))['option'](a2_0x5f1ae4(0x1b2),a2_0x5f1ae4(0x293))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x3a9),a2_0x5f1ae4(0x390))['option'](a2_0x5f1ae4(0x26a),a2_0x5f1ae4(0x294))[a2_0x5f1ae4(0x1b6)]('--output\x20<file>','Save\x20output\x20to\x20file')[a2_0x5f1ae4(0x1b6)]('--limit\x20<number>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2cd),a2_0x5f1ae4(0x37c),![])[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x334),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1e9),a2_0x5f1ae4(0x227),![])[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x33a),a2_0x5f1ae4(0x183))['option']('--trace',a2_0x5f1ae4(0x323))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x37e),a2_0x5f1ae4(0x36a),'30')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2bf),'Preview\x20operation\x20without\x20executing',![])[a2_0x5f1ae4(0x1b6)]('-y,\x20--yes',a2_0x5f1ae4(0x182),![])[a2_0x5f1ae4(0x1b6)]('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x35d),a2_0x5f1ae4(0x3a6))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x392),a2_0x5f1ae4(0x223))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x3a7),a2_0x5f1ae4(0x235))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d2),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x5f1ae4(0x39a)]({'formatHelp':(_0x21765b,_0x2fc845)=>{const _0x4f063d=a2_0x5f1ae4,_0x42c319=_0x2fc845[_0x4f063d(0x360)](_0x21765b,_0x2fc845),_0x61b6da=0x2,_0x3315b3=0x2;function _0x181a76(_0x207f1f){const _0x49c8f6=_0x4f063d,_0x5e3c8c=_0x207f1f;return!!(_0x5e3c8c[_0x49c8f6(0x2f9)]||_0x5e3c8c['hidden']);}function _0x357f08(_0x3e94e0,_0x5486ed){const _0x1a7b21=_0x4f063d;if(_0x5486ed){const _0xa1439c=''+_0x3e94e0[_0x1a7b21(0x350)](_0x42c319+_0x3315b3)+_0x5486ed;return _0xa1439c;}return _0x3e94e0;}function _0x1c052e(_0x447ad6){const _0x21302e=_0x4f063d;return _0x447ad6[_0x21302e(0x315)]('\x0a')[_0x21302e(0x220)](/^/gm,'\x20'[_0x21302e(0x368)](_0x61b6da));}const _0x4913e9=[];_0x4913e9[_0x4f063d(0x1fd)](_0x4f063d(0x369)+_0x2fc845[_0x4f063d(0x1fe)](_0x21765b));const _0xadf2f4=_0x2fc845[_0x4f063d(0x36d)](_0x21765b);_0xadf2f4&&(_0x4913e9['push'](''),_0x4913e9['push'](_0xadf2f4));const _0x16f951=_0x21765b[_0x4f063d(0x370)][_0x4f063d(0x1c3)](_0x26e7e0=>!_0x181a76(_0x26e7e0));if(_0x16f951[_0x4f063d(0x181)]>0x0){if(_0x21765b[_0x4f063d(0x33d)]()===_0x4f063d(0x34d)){const _0x422edd=_0x21765b[_0x4f063d(0x2b7)](),_0x2811e9=!_0x422edd['noColor']&&process[_0x4f063d(0x1dd)][_0x4f063d(0x27c)],_0x47ff26=COMMAND_CATEGORIES,_0x42ddc0=(_0x475c9a,_0x2609b7)=>_0x2811e9?_0x2609b7(_0x475c9a):_0x475c9a,_0x227775=new Map();_0x16f951['forEach'](_0x3e0652=>{const _0x5e5daf=_0x4f063d;_0x227775['set'](_0x3e0652[_0x5e5daf(0x33d)](),_0x3e0652);}),_0x47ff26[_0x4f063d(0x355)](_0x19becf=>{const _0x3e1539=_0x4f063d,_0x64cd56=_0x19becf[_0x3e1539(0x370)][_0x3e1539(0x35f)](_0x3ba074=>_0x227775[_0x3e1539(0x1cf)](_0x3ba074)??[]);if(_0x64cd56[_0x3e1539(0x181)]>0x0){_0x4913e9[_0x3e1539(0x1fd)](''),_0x4913e9[_0x3e1539(0x1fd)](_0x42ddc0(_0x19becf[_0x3e1539(0x33d)]+':',_0x19becf[_0x3e1539(0x243)]));const _0x3218d5=_0x64cd56[_0x3e1539(0x330)](_0x1029ca=>{const _0x2d7641=_0x3e1539,_0x1ed259=_0x2fc845[_0x2d7641(0x3a1)](_0x1029ca),_0x4594d8=_0x2fc845[_0x2d7641(0x31b)](_0x1029ca);return _0x357f08(_0x1ed259,_0x4594d8);});_0x4913e9[_0x3e1539(0x1fd)](_0x1c052e(_0x3218d5));}}),_0x4913e9[_0x4f063d(0x1fd)](''),_0x4913e9['push'](_0x4f063d(0x232));}else{const _0x5cb448=_0x16f951[_0x4f063d(0x330)](_0x5476a7=>{const _0x1dfe94=_0x4f063d,_0x43f6d7=_0x2fc845['subcommandTerm'](_0x5476a7),_0x197893=_0x2fc845[_0x1dfe94(0x31b)](_0x5476a7);return _0x357f08(_0x43f6d7,_0x197893);});_0x4913e9[_0x4f063d(0x1fd)](''),_0x4913e9['push']('Commands:'),_0x4913e9[_0x4f063d(0x1fd)](_0x1c052e(_0x5cb448));}}const _0x4a9c3d=_0x21765b['options'][_0x4f063d(0x1c3)](_0x25d62f=>!_0x181a76(_0x25d62f));if(_0x4a9c3d['length']>0x0){const _0x33e3d1=_0x4a9c3d[_0x4f063d(0x330)](_0xd881b8=>{const _0x43409c=_0x4f063d,_0x11d620=_0x2fc845[_0x43409c(0x1c6)](_0xd881b8),_0x9988cf=_0x2fc845[_0x43409c(0x1ab)](_0xd881b8);return _0x357f08(_0x11d620,_0x9988cf);});_0x4913e9[_0x4f063d(0x1fd)](''),_0x4913e9[_0x4f063d(0x1fd)](_0x4f063d(0x1b0)),_0x4913e9[_0x4f063d(0x1fd)](_0x1c052e(_0x33e3d1));}const _0x2a4341=(_0x21765b['registeredArguments']||[])[_0x4f063d(0x1c3)](_0x1ce14f=>!_0x181a76(_0x1ce14f));if(_0x2a4341[_0x4f063d(0x181)]>0x0){const _0x38a129=_0x2a4341[_0x4f063d(0x330)](_0x587ffb=>{const _0x1c9d04=_0x4f063d,_0x333563=_0x2fc845[_0x1c9d04(0x1ea)](_0x587ffb),_0x4e7afe=_0x2fc845[_0x1c9d04(0x24a)](_0x587ffb);return _0x357f08(_0x333563,_0x4e7afe);});_0x4913e9['push'](''),_0x4913e9[_0x4f063d(0x1fd)](_0x4f063d(0x2b2)),_0x4913e9[_0x4f063d(0x1fd)](_0x1c052e(_0x38a129));}return _0x4913e9['join']('\x0a');},'subcommandTerm':_0x2cb2c6=>{const _0x53b057=a2_0x5f1ae4,_0x24cb9c=(_0x2cb2c6[_0x53b057(0x23e)]||[])[_0x53b057(0x330)](_0x2036c7=>_0x2036c7[_0x53b057(0x1ba)]?'<'+_0x2036c7['name']()+'>':'['+_0x2036c7[_0x53b057(0x33d)]()+']')[_0x53b057(0x315)]('\x20'),_0x382e7c=_0x2cb2c6[_0x53b057(0x2be)](),_0x1870be=_0x382e7c['length']>0x0?_0x2cb2c6['name']()+',\x20'+_0x382e7c['join'](',\x20'):_0x2cb2c6[_0x53b057(0x33d)]();return _0x24cb9c?_0x1870be+'\x20'+_0x24cb9c:_0x1870be;}}),program[a2_0x5f1ae4(0x275)](a2_0x5f1ae4(0x2ff),_0x53619c=>{const _0x563e8c=a2_0x5f1ae4,_0xce3f7e=_0x53619c[_0x563e8c(0x2b7)]();if(_0xce3f7e[_0x563e8c(0x17f)]){const _0x7a2afe=resolve(_0xce3f7e['directory']),_0x149dc7=_0x7a2afe!==_0xce3f7e[_0x563e8c(0x17f)]?'\x20(resolved\x20to\x20'+_0x7a2afe+')':'';if(!existsSync(_0x7a2afe))throw new SDKError(ErrorCode[_0x563e8c(0x20f)],_0x563e8c(0x2fc)+_0xce3f7e[_0x563e8c(0x17f)]+_0x149dc7,undefined,{'helpText':_0x563e8c(0x255)});const _0x4a7e0b=statSync(_0x7a2afe);if(!_0x4a7e0b[_0x563e8c(0x337)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x563e8c(0x1cb)+_0xce3f7e[_0x563e8c(0x17f)]+_0x149dc7,undefined,{'helpText':_0x563e8c(0x238)});process[_0x563e8c(0x2f1)](_0x7a2afe);}if(!_0xce3f7e[_0x563e8c(0x1f5)]){if(_0xce3f7e[_0x563e8c(0x2de)])_0xce3f7e[_0x563e8c(0x1f5)]=_0x563e8c(0x2de);else{if(_0xce3f7e[_0x563e8c(0x340)])_0xce3f7e[_0x563e8c(0x1f5)]=_0x563e8c(0x340);else{if(_0xce3f7e[_0x563e8c(0x37d)])_0xce3f7e['format']=_0x563e8c(0x37d);else _0xce3f7e[_0x563e8c(0x24f)]&&(_0xce3f7e['format']=_0x563e8c(0x24f));}}}_0xce3f7e['in']&&!_0xce3f7e[_0x563e8c(0x1d5)]&&(_0xce3f7e[_0x563e8c(0x1d5)]=_0xce3f7e['in']);if(_0xce3f7e[_0x563e8c(0x1c0)])_0xce3f7e[_0x563e8c(0x189)]=LogLevel['TRACE'];else{if(_0xce3f7e[_0x563e8c(0x307)])_0xce3f7e['logLevel']=LogLevel[_0x563e8c(0x387)];else _0xce3f7e[_0x563e8c(0x189)]===undefined&&(_0xce3f7e[_0x563e8c(0x189)]=LogLevel[_0x563e8c(0x230)]);}});async function createTDXInstance(_0x2e4c67){const _0x553038=a2_0x5f1ae4,_0x45c637=await GlobalContext[_0x553038(0x219)](_0x2e4c67);return _0x45c637['injectIntoOptions'](_0x2e4c67),TDX[_0x553038(0x17c)]({'site':_0x45c637[_0x553038(0x1cd)],'apiKey':_0x45c637[_0x553038(0x37b)],'logLevel':_0x45c637[_0x553038(0x189)],'profile':_0x45c637[_0x553038(0x2bb)]});}const databaseCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1d5))[a2_0x5f1ae4(0x2fb)]('db')[a2_0x5f1ae4(0x348)]('Database\x20management\x20commands'),databaseListAction=async(_0x214667,_0x402c2f)=>{const _0x3efb86=a2_0x5f1ae4,_0x2b3de7=new DatabasesCommand(),_0xcd77be=program[_0x3efb86(0x2b7)](),_0x1a784f=await createTDXInstance(_0xcd77be),_0x4ff916=await _0x2b3de7[_0x3efb86(0x22e)]({'options':{..._0xcd77be,..._0x402c2f},'args':_0x214667?[_0x214667]:[],'tdx':_0x1a784f});process['exit'](_0x4ff916);};databaseCmd['command'](a2_0x5f1ae4(0x332))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1e5))[a2_0x5f1ae4(0x244)](databaseListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2b0),{'hidden':!![]})['description'](a2_0x5f1ae4(0x383))[a2_0x5f1ae4(0x244)](databaseListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x280))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x25c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x21d),a2_0x5f1ae4(0x1d3))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1a0),a2_0x5f1ae4(0x28a))['action'](async(_0x3ae817,_0x15eaef)=>{const _0x573b0c=a2_0x5f1ae4,_0x30b858=new ChatCommand(),_0x5636b4=program[_0x573b0c(0x2b7)](),_0x10ccb6=await createTDXInstance(_0x5636b4),_0x12d179=await _0x30b858['run']({'options':{..._0x5636b4,..._0x15eaef},'args':_0x3ae817,'tdx':_0x10ccb6});process['exit'](_0x12d179);});const apiCmd=program[a2_0x5f1ae4(0x357)]('api\x20[endpoint]')[a2_0x5f1ae4(0x289)](a2_0x5f1ae4(0x385))['addHelpText'](a2_0x5f1ae4(0x295),a2_0x5f1ae4(0x21f))[a2_0x5f1ae4(0x1b6)]('-X,\x20--method\x20<method>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x5f1ae4(0x246))['option'](a2_0x5f1ae4(0x363),a2_0x5f1ae4(0x204))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x282),'Read\x20request\x20body\x20from\x20file')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x397),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x5525a8,_0x48a17f)=>{return _0x48a17f?[..._0x48a17f,_0x5525a8]:[_0x5525a8];})[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2c1),a2_0x5f1ae4(0x391),'td')['action'](async(_0x296f32,_0x5c1a98)=>{const _0x25a09b=a2_0x5f1ae4;if(!_0x296f32){apiCmd['help']();return;}const _0x5cc830=new ApiCommand(),_0x435c8a=program[_0x25a09b(0x2b7)](),_0x2a97e2=await createTDXInstance(_0x435c8a),_0x590e05=await _0x5cc830[_0x25a09b(0x22e)]({'options':{..._0x435c8a,..._0x5c1a98},'args':[_0x296f32],'tdx':_0x2a97e2});process[_0x25a09b(0x25a)](_0x590e05);}),tableCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2de))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x20b)),tableListAction=async(_0x59a4b7,_0x1fae92)=>{const _0x3c6772=a2_0x5f1ae4,_0xf43a14=new TablesCommand(),_0x50a65d=program['opts'](),_0x1e9d62=await createTDXInstance(_0x50a65d);_0x1fae92['in']&&(_0x1fae92[_0x3c6772(0x1d5)]=_0x1fae92['in']);const _0x132885=await _0xf43a14[_0x3c6772(0x22e)]({'options':{..._0x50a65d,..._0x1fae92},'args':_0x59a4b7?[_0x59a4b7]:[],'tdx':_0x1e9d62});process[_0x3c6772(0x25a)](_0x132885);};tableCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))['description'](a2_0x5f1ae4(0x386))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x35e),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x5f1ae4(0x285),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5f1ae4(0x244)](tableListAction),program[a2_0x5f1ae4(0x357)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x29d))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x35e),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x285),a2_0x5f1ae4(0x223))[a2_0x5f1ae4(0x244)](tableListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x35b))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x331))['option'](a2_0x5f1ae4(0x35e),a2_0x5f1ae4(0x205))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x285),a2_0x5f1ae4(0x223))[a2_0x5f1ae4(0x244)](async(_0x2a33c0,_0x36de74)=>{const _0x8a357=a2_0x5f1ae4,_0x225d03=new ShowCommand(),_0x4f3634=program['opts'](),_0x575215=await createTDXInstance(_0x4f3634);_0x36de74['in']&&(_0x36de74[_0x8a357(0x1d5)]=_0x36de74['in']);const _0x5f5150=await _0x225d03[_0x8a357(0x22e)]({'options':{..._0x4f3634,..._0x36de74},'args':_0x2a33c0?[_0x2a33c0]:[],'tdx':_0x575215});process[_0x8a357(0x25a)](_0x5f5150);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x367))[a2_0x5f1ae4(0x2fb)](a2_0x5f1ae4(0x26b))['description'](a2_0x5f1ae4(0x276))['option'](a2_0x5f1ae4(0x35e),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option']('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5f1ae4(0x244)](async(_0x5e1e71,_0x5e57e2)=>{const _0x4a1c27=a2_0x5f1ae4,_0x224907=new DescribeCommand(),_0x1c1a41=program[_0x4a1c27(0x2b7)](),_0x4ad310=await createTDXInstance(_0x1c1a41);_0x5e57e2['in']&&(_0x5e57e2['database']=_0x5e57e2['in']);const _0x2a20e2=await _0x224907[_0x4a1c27(0x22e)]({'options':{..._0x1c1a41,..._0x5e57e2},'args':_0x5e1e71?[_0x5e1e71]:[],'tdx':_0x4ad310});process['exit'](_0x2a20e2);}),program[a2_0x5f1ae4(0x357)]('query\x20[sql]')['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x5f1ae4(0x1b6)]('-d,\x20--database\x20<database>',a2_0x5f1ae4(0x20e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x285),a2_0x5f1ae4(0x223))['option'](a2_0x5f1ae4(0x2fe),'Trino\x20catalog\x20(default:\x20td)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x282),a2_0x5f1ae4(0x242))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x34f),a2_0x5f1ae4(0x18b),'40')['action'](async(_0x189754,_0x2387bd)=>{const _0xb9ba46=a2_0x5f1ae4,_0x3be561=new QueryCommand(),_0x4ce665=program[_0xb9ba46(0x2b7)](),_0x5c0dc6=await createTDXInstance(_0x4ce665);_0x2387bd['in']&&(_0x2387bd[_0xb9ba46(0x1d5)]=_0x2387bd['in']);const _0x42adc1=await _0x3be561[_0xb9ba46(0x22e)]({'options':{..._0x4ce665,..._0x2387bd},'args':_0x189754?[_0x189754]:[],'tdx':_0x5c0dc6});process['exit'](_0x42adc1);});const segmentCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f4))[a2_0x5f1ae4(0x2fb)]('sg')['description']('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x4313e2,_0x5b9e0a)=>{const _0x24c183=a2_0x5f1ae4,_0x16d036=new SegmentsCommand(),_0x15dcce=program[_0x24c183(0x2b7)](),_0xc54df0=await createTDXInstance(_0x15dcce),_0x4f5afd=await _0x16d036[_0x24c183(0x22e)]({'options':{..._0x15dcce,..._0x5b9e0a},'args':_0x4313e2?[_0x4313e2]:[],'tdx':_0xc54df0});process[_0x24c183(0x25a)](_0x4f5afd);};segmentCmd['command']('list\x20[path]')['description'](a2_0x5f1ae4(0x1a2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x259),a2_0x5f1ae4(0x226))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x250),a2_0x5f1ae4(0x2e6),'10')[a2_0x5f1ae4(0x1b6)]('-w,\x20--web',a2_0x5f1ae4(0x345))[a2_0x5f1ae4(0x244)](segmentListAction),program[a2_0x5f1ae4(0x357)]('segments\x20[path]',{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x395))['option'](a2_0x5f1ae4(0x259),a2_0x5f1ae4(0x226))[a2_0x5f1ae4(0x1b6)]('--max-depth\x20<depth>',a2_0x5f1ae4(0x2e6),'10')[a2_0x5f1ae4(0x1b6)]('-w,\x20--web',a2_0x5f1ae4(0x345))[a2_0x5f1ae4(0x244)](segmentListAction),segmentCmd['command'](a2_0x5f1ae4(0x247),{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x22a))[a2_0x5f1ae4(0x244)](async(_0x57521d,_0xfb930)=>{const _0x3bb40b=a2_0x5f1ae4,_0x52861a=new SegmentUseCommand(),_0x5f1681=program[_0x3bb40b(0x2b7)](),_0x50b3eb=await createTDXInstance(_0x5f1681),_0x3c59fe=await _0x52861a['run']({'options':{..._0x5f1681,..._0xfb930},'args':[_0x57521d],'tdx':_0x50b3eb});process[_0x3bb40b(0x25a)](_0x3c59fe);});const segmentViewAction=async(_0x250f64,_0x46c82d)=>{const _0x56e5ff=a2_0x5f1ae4,_0x5334e0=new SegmentViewCommand(),_0x5d0d6b=program[_0x56e5ff(0x2b7)](),_0x45e54d=await createTDXInstance(_0x5d0d6b),_0x56db9f=await _0x5334e0[_0x56e5ff(0x22e)]({'options':{..._0x5d0d6b,..._0x46c82d},'args':_0x250f64?[_0x250f64]:[],'tdx':_0x45e54d});process['exit'](_0x56db9f);};segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x28c))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2c0))['option'](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x239))[a2_0x5f1ae4(0x244)](segmentViewAction),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x27d),{'hidden':!![]})[a2_0x5f1ae4(0x2fb)]('describe')['option'](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x239))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x18e))['action'](segmentViewAction),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1b5))[a2_0x5f1ae4(0x348)]('Show\x20segment\x20schema\x20(column\x20types)')['action'](async(_0x1d48fd,_0x548b55)=>{const _0x2568b1=a2_0x5f1ae4,_0x3451f9=new SegmentDescCommand(),_0x57ee86=program[_0x2568b1(0x2b7)](),_0xd07409=await createTDXInstance(_0x57ee86),_0x14f355=await _0x3451f9['run']({'options':{..._0x57ee86,..._0x548b55},'args':_0x1d48fd?[_0x1d48fd]:[],'tdx':_0xd07409});process[_0x2568b1(0x25a)](_0x14f355);}),segmentCmd[a2_0x5f1ae4(0x357)]('show\x20[segment_name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x197))[a2_0x5f1ae4(0x244)](async(_0x59669a,_0x46c11e)=>{const _0x1ae98d=a2_0x5f1ae4,_0x46e2d2=new SegmentShowCommand(),_0x574795=program['opts'](),_0x3d7b2c=await createTDXInstance(_0x574795),_0x2f9ebd=await _0x46e2d2[_0x1ae98d(0x22e)]({'options':{..._0x574795,..._0x46c11e},'args':_0x59669a?[_0x59669a]:[],'tdx':_0x3d7b2c});process[_0x1ae98d(0x25a)](_0x2f9ebd);}),segmentCmd[a2_0x5f1ae4(0x357)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x17d))[a2_0x5f1ae4(0x244)](async(_0x317f9c,_0x5273c0)=>{const _0x121b8a=a2_0x5f1ae4,_0x45bf36=new SegmentFolderListCommand(),_0x1eea78=program['opts'](),_0x4f3bcb=await createTDXInstance(_0x1eea78),_0x2b96e3=await _0x45bf36[_0x121b8a(0x22e)]({'options':{..._0x1eea78,..._0x5273c0},'args':[_0x317f9c],'tdx':_0x4f3bcb});process['exit'](_0x2b96e3);});const folderCmd=segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x218),{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2e1));folderCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x32f))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2b6))[a2_0x5f1ae4(0x244)](async(_0x347a35,_0x3152f3)=>{const _0x1c10cd=a2_0x5f1ae4,_0x48be1b=new SegmentFolderShowCommand(),_0x4f309b=program[_0x1c10cd(0x2b7)](),_0x4b5488=await createTDXInstance(_0x4f309b),_0x3936ff=await _0x48be1b[_0x1c10cd(0x22e)]({'options':{..._0x4f309b,..._0x3152f3},'args':[_0x347a35],'tdx':_0x4b5488});process[_0x1c10cd(0x25a)](_0x3936ff);}),segmentCmd['command']('sql\x20[segment_name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x23c))['action'](async(_0x1b7ca9,_0x138e55)=>{const _0x26713b=a2_0x5f1ae4,_0x1086bf=new SegmentSQLCommand(),_0x38e38f=program[_0x26713b(0x2b7)](),_0x10a5c5=await createTDXInstance(_0x38e38f),_0xb100f3=await _0x1086bf[_0x26713b(0x22e)]({'options':{..._0x38e38f,..._0x138e55},'args':_0x1b7ca9?[_0x1b7ca9]:[],'tdx':_0x10a5c5});process[_0x26713b(0x25a)](_0xb100f3);}),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1f1))[a2_0x5f1ae4(0x348)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x4ca64b,_0x12d1ca)=>{const _0x3ad895=a2_0x5f1ae4,_0x4afc20=new SegmentFieldsCommand(),_0x348475=program['opts'](),_0x54c7fd=await createTDXInstance(_0x348475),_0x113ced=await _0x4afc20[_0x3ad895(0x22e)]({'options':{..._0x348475,..._0x12d1ca},'args':_0x4ca64b?[_0x4ca64b]:[],'tdx':_0x54c7fd});process[_0x3ad895(0x25a)](_0x113ced);}),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x339))['description'](a2_0x5f1ae4(0x338))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),'Skip\x20confirmation\x20prompts')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2bf),a2_0x5f1ae4(0x179))['action'](async(_0xaca3a3,_0x291ef3)=>{const _0x392486=a2_0x5f1ae4,_0x509e32=new SegmentPullCommand(),_0x44c11a=program['opts'](),_0x5baceb=await createTDXInstance(_0x44c11a),_0x24c35c=await _0x509e32[_0x392486(0x22e)]({'options':{..._0x44c11a,..._0x291ef3},'args':_0xaca3a3?[_0xaca3a3]:[],'tdx':_0x5baceb});process[_0x392486(0x25a)](_0x24c35c);}),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x341))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2e0))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x182))[a2_0x5f1ae4(0x1b6)]('--dry-run',a2_0x5f1ae4(0x179))['option'](a2_0x5f1ae4(0x1fc),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x5f1ae4(0x244)](async(_0x3fcae8,_0x4ba8c9)=>{const _0x42405a=a2_0x5f1ae4,_0x42ccf8=new SegmentPushCommand(),_0x3a96d1=program[_0x42405a(0x2b7)](),_0xd66006=await createTDXInstance(_0x3a96d1),_0x7bd20a=await _0x42ccf8[_0x42405a(0x22e)]({'options':{..._0x3a96d1,..._0x4ba8c9},'args':_0x3fcae8?[_0x3fcae8]:[],'tdx':_0xd66006});process[_0x42405a(0x25a)](_0x7bd20a);}),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2a9),{'hidden':!![]})['description'](a2_0x5f1ae4(0x35a))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),a2_0x5f1ae4(0x2d6))[a2_0x5f1ae4(0x1b6)]('--rule\x20<json>',a2_0x5f1ae4(0x36f))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30f),a2_0x5f1ae4(0x312))[a2_0x5f1ae4(0x1b6)]('--folder\x20<name>',a2_0x5f1ae4(0x301))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x283),a2_0x5f1ae4(0x2c2))['option'](a2_0x5f1ae4(0x299),a2_0x5f1ae4(0x1f3))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x320),a2_0x5f1ae4(0x2dc))[a2_0x5f1ae4(0x244)](async(_0x81a085,_0x3adb51)=>{const _0x767f40=a2_0x5f1ae4,_0x5cc832=new SegmentCreateCommand(),_0xbf571b=program[_0x767f40(0x2b7)](),_0x197187=await createTDXInstance(_0xbf571b),_0x12efa9=await _0x5cc832['run']({'options':{..._0xbf571b,..._0x3adb51},'args':[_0x81a085],'tdx':_0x197187});process[_0x767f40(0x25a)](_0x12efa9);}),segmentCmd['command']('update\x20<segment_name>',{'hidden':!![]})[a2_0x5f1ae4(0x348)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x278),'New\x20segment\x20name')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),a2_0x5f1ae4(0x1d9))[a2_0x5f1ae4(0x1b6)]('--rule\x20<json>',a2_0x5f1ae4(0x245))['option'](a2_0x5f1ae4(0x30f),a2_0x5f1ae4(0x2bc))[a2_0x5f1ae4(0x1b6)]('--folder\x20<name>',a2_0x5f1ae4(0x217))['option'](a2_0x5f1ae4(0x283),a2_0x5f1ae4(0x2c2))[a2_0x5f1ae4(0x244)](async(_0x59f75d,_0x399a1c)=>{const _0x5ac5e5=a2_0x5f1ae4,_0x1c9f66=new SegmentUpdateCommand(),_0x36b26d=program['opts'](),_0x1f88d8=await createTDXInstance(_0x36b26d),_0x4cee82=await _0x1c9f66[_0x5ac5e5(0x22e)]({'options':{..._0x36b26d,..._0x399a1c},'args':[_0x59f75d],'tdx':_0x1f88d8});process[_0x5ac5e5(0x25a)](_0x4cee82);});const parentCmd=segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x19d),{'hidden':!![]})['description']('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x12eb73,_0x1a3c0b)=>{const _0x1cd708=a2_0x5f1ae4,_0x11930a=new ParentSegmentListCommand(),_0x217118=program[_0x1cd708(0x2b7)](),_0x325113=await createTDXInstance(_0x217118),_0x573490=await _0x11930a['run']({'options':{..._0x217118,..._0x1a3c0b},'args':_0x12eb73?[_0x12eb73]:[],'tdx':_0x325113});process[_0x1cd708(0x25a)](_0x573490);};parentCmd['command']('list\x20[pattern]')['description'](a2_0x5f1ae4(0x38b))[a2_0x5f1ae4(0x244)](parentListAction),segmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f8),{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x35c))[a2_0x5f1ae4(0x244)](parentListAction),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x206))['description'](a2_0x5f1ae4(0x2ae))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x24e),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))['action'](async(_0x23e2d0,_0x1b1cee)=>{const _0x368fac=a2_0x5f1ae4,_0x372948=new ParentSegmentPullCommand(),_0x1ded2c=program[_0x368fac(0x2b7)](),_0x53d8d2=await createTDXInstance(_0x1ded2c),_0x1b18a8=await _0x372948[_0x368fac(0x22e)]({'options':{..._0x1ded2c,..._0x1b1cee},'args':_0x23e2d0?[_0x23e2d0]:[],'tdx':_0x53d8d2});process[_0x368fac(0x25a)](_0x1b18a8);}),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1fb))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1ad))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),'Skip\x20confirmation\x20prompt')[a2_0x5f1ae4(0x244)](async(_0x41f103,_0x348b62)=>{const _0x174a52=a2_0x5f1ae4,_0x231865=new ParentSegmentPushCommand(),_0x2d0ad8=program[_0x174a52(0x2b7)](),_0x3c659a=await createTDXInstance(_0x2d0ad8),_0x34bb8c=await _0x231865['run']({'options':{..._0x2d0ad8,..._0x348b62},'args':_0x41f103?[_0x41f103]:[],'tdx':_0x3c659a});process['exit'](_0x34bb8c);}),parentCmd['command'](a2_0x5f1ae4(0x1d0))[a2_0x5f1ae4(0x348)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2c5),a2_0x5f1ae4(0x1e7))['option'](a2_0x5f1ae4(0x2a0),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x5f1ae4(0x1ec),a2_0x5f1ae4(0x268))['option'](a2_0x5f1ae4(0x202),a2_0x5f1ae4(0x19a))[a2_0x5f1ae4(0x1b6)]('--interval\x20<range>',a2_0x5f1ae4(0x1bc),a2_0x5f1ae4(0x317))[a2_0x5f1ae4(0x244)](async(_0x4432ae,_0x76282a)=>{const _0x49f8ea=a2_0x5f1ae4,_0x420af0=new ParentSegmentValidateCommand(),_0x3c9da3=program[_0x49f8ea(0x2b7)](),_0x484352=await createTDXInstance(_0x3c9da3),_0x33f26d=await _0x420af0[_0x49f8ea(0x22e)]({'options':{..._0x3c9da3,..._0x76282a},'args':_0x4432ae?[_0x4432ae]:[],'tdx':_0x484352});process[_0x49f8ea(0x25a)](_0x33f26d);}),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2b3))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1f2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2c5),a2_0x5f1ae4(0x1f7))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2a0),a2_0x5f1ae4(0x30e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ec),a2_0x5f1ae4(0x1af))['option']('--enriched',a2_0x5f1ae4(0x24b))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d7),a2_0x5f1ae4(0x1bc),a2_0x5f1ae4(0x317))[a2_0x5f1ae4(0x244)](async(_0x2696ad,_0x3d31fc)=>{const _0x39f1a5=a2_0x5f1ae4,_0x22e5c0=new ParentSegmentPreviewCommand(),_0x1d7720=program[_0x39f1a5(0x2b7)](),_0x21f040=await createTDXInstance(_0x1d7720),_0xd9161=await _0x22e5c0[_0x39f1a5(0x22e)]({'options':{..._0x1d7720,..._0x3d31fc},'args':_0x2696ad?[_0x2696ad]:[],'tdx':_0x21f040});process[_0x39f1a5(0x25a)](_0xd9161);}),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1be))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1e4))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))['action'](async(_0x385330,_0x5879ce)=>{const _0x1de62a=a2_0x5f1ae4,_0x5050ba=new ParentSegmentRunCommand(),_0x4a3b9a=program[_0x1de62a(0x2b7)](),_0x3ed135=await createTDXInstance(_0x4a3b9a),_0x4427d2=await _0x5050ba[_0x1de62a(0x22e)]({'options':{..._0x4a3b9a,..._0x5879ce},'args':_0x385330?[_0x385330]:[],'tdx':_0x3ed135});process[_0x1de62a(0x25a)](_0x4427d2);});const parentSegmentCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2d7))[a2_0x5f1ae4(0x2fb)]('ps')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x212));parentSegmentCmd['command'](a2_0x5f1ae4(0x332))[a2_0x5f1ae4(0x348)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x365))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x24e),a2_0x5f1ae4(0x2aa))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x36e),a2_0x5f1ae4(0x1e8))[a2_0x5f1ae4(0x244)](async(_0x2cec96,_0x1edc71)=>{const _0x28050a=a2_0x5f1ae4,_0x2df243=new ParentSegmentPullCommand(),_0x2009a0=program[_0x28050a(0x2b7)](),_0x5d4fba=await createTDXInstance(_0x2009a0),_0x59157e=await _0x2df243[_0x28050a(0x22e)]({'options':{..._0x2009a0,..._0x1edc71},'args':_0x2cec96?[_0x2cec96]:[],'tdx':_0x5d4fba});process[_0x28050a(0x25a)](_0x59157e);}),parentSegmentCmd[a2_0x5f1ae4(0x357)]('push\x20[name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x27e))['option'](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))[a2_0x5f1ae4(0x244)](async(_0x443769,_0x561e5a)=>{const _0x5dd796=a2_0x5f1ae4,_0x191c3b=new ParentSegmentPushCommand(),_0x51f746=program[_0x5dd796(0x2b7)](),_0x2a920b=await createTDXInstance(_0x51f746),_0x89b952=await _0x191c3b[_0x5dd796(0x22e)]({'options':{..._0x51f746,..._0x561e5a},'args':_0x443769?[_0x443769]:[],'tdx':_0x2a920b});process[_0x5dd796(0x25a)](_0x89b952);}),parentSegmentCmd['command'](a2_0x5f1ae4(0x319))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2f3))['option'](a2_0x5f1ae4(0x2c5),'Show\x20only\x20master\x20table\x20validation')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2a0),a2_0x5f1ae4(0x388))['option'](a2_0x5f1ae4(0x1ec),a2_0x5f1ae4(0x268))[a2_0x5f1ae4(0x1b6)]('--enriched',a2_0x5f1ae4(0x19a))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d7),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x5f1ae4(0x317))[a2_0x5f1ae4(0x244)](async(_0xadb49c,_0xd3ab6b)=>{const _0x629b0c=a2_0x5f1ae4,_0x55811b=new ParentSegmentValidateCommand(),_0x34fbc9=program[_0x629b0c(0x2b7)](),_0xf3ad47=await createTDXInstance(_0x34fbc9),_0x20934b=await _0x55811b[_0x629b0c(0x22e)]({'options':{..._0x34fbc9,..._0xd3ab6b},'args':_0xadb49c?[_0xadb49c]:[],'tdx':_0xf3ad47});process[_0x629b0c(0x25a)](_0x20934b);}),parentSegmentCmd['command'](a2_0x5f1ae4(0x199))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1f2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2c5),a2_0x5f1ae4(0x1f7))['option'](a2_0x5f1ae4(0x2a0),a2_0x5f1ae4(0x30e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ec),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x202),a2_0x5f1ae4(0x24b))['option'](a2_0x5f1ae4(0x1d7),a2_0x5f1ae4(0x1bc),a2_0x5f1ae4(0x317))[a2_0x5f1ae4(0x244)](async(_0x570a5a,_0x936c37)=>{const _0x165df7=a2_0x5f1ae4,_0x586c51=new ParentSegmentPreviewCommand(),_0x5e5c5a=program['opts'](),_0x362626=await createTDXInstance(_0x5e5c5a),_0x4b9136=await _0x586c51[_0x165df7(0x22e)]({'options':{..._0x5e5c5a,..._0x936c37},'args':_0x570a5a?[_0x570a5a]:[],'tdx':_0x362626});process['exit'](_0x4b9136);}),parentSegmentCmd['command'](a2_0x5f1ae4(0x1be))[a2_0x5f1ae4(0x348)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))['action'](async(_0x5f0517,_0x554684)=>{const _0x494c50=a2_0x5f1ae4,_0x58ecad=new ParentSegmentRunCommand(),_0x84f8aa=program[_0x494c50(0x2b7)](),_0x3733b1=await createTDXInstance(_0x84f8aa),_0x484a3f=await _0x58ecad['run']({'options':{..._0x84f8aa,..._0x554684},'args':_0x5f0517?[_0x5f0517]:[],'tdx':_0x3733b1});process[_0x494c50(0x25a)](_0x484a3f);}),parentSegmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x184))[a2_0x5f1ae4(0x348)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5f1ae4(0x1b6)]('--json',a2_0x5f1ae4(0x236))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x3a9),'Output\x20as\x20JSON\x20Lines')[a2_0x5f1ae4(0x244)](async(_0x1d06fd,_0x4c5a8a)=>{const _0x109bf4=a2_0x5f1ae4,_0x47f733=new ParentSegmentFieldsCommand(),_0x253ed8=program[_0x109bf4(0x2b7)](),_0x5ca35b=await createTDXInstance(_0x253ed8),_0x3f724c=await _0x47f733['run']({'options':{..._0x253ed8,..._0x4c5a8a},'args':_0x1d06fd?[_0x1d06fd]:[],'tdx':_0x5ca35b});process['exit'](_0x3f724c);}),parentSegmentCmd[a2_0x5f1ae4(0x357)]('view\x20[name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x34c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1b2),a2_0x5f1ae4(0x236))['option'](a2_0x5f1ae4(0x3a9),'Output\x20as\x20JSON\x20Lines')[a2_0x5f1ae4(0x244)](async(_0x354cba,_0x382618)=>{const _0x4626e0=new ParentSegmentViewCommand(),_0x55c29b=program['opts'](),_0x44d19c=await createTDXInstance(_0x55c29b),_0x392fc7=await _0x4626e0['run']({'options':{..._0x55c29b,..._0x382618},'args':_0x354cba?[_0x354cba]:[],'tdx':_0x44d19c});process['exit'](_0x392fc7);}),parentSegmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x17e))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x5f1ae4(0x1b2),'Output\x20as\x20JSON')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x3a9),a2_0x5f1ae4(0x1db))[a2_0x5f1ae4(0x244)](async(_0xaf65a6,_0x281aa0)=>{const _0x161224=a2_0x5f1ae4,_0x41a2b9=new ParentSegmentDescCommand(),_0x420c5b=program[_0x161224(0x2b7)](),_0x37ecf8=await createTDXInstance(_0x420c5b),_0x1e209f=await _0x41a2b9['run']({'options':{..._0x420c5b,..._0x281aa0},'args':_0xaf65a6?[_0xaf65a6]:[],'tdx':_0x37ecf8});process[_0x161224(0x25a)](_0x1e209f);}),parentSegmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2e8))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2b8))[a2_0x5f1ae4(0x1b6)]('--json','Output\x20as\x20JSON')[a2_0x5f1ae4(0x1b6)]('--jsonl',a2_0x5f1ae4(0x1db))['action'](async(_0x3b9930,_0x3f25f1)=>{const _0x4082c8=a2_0x5f1ae4,_0x531249=new ParentSegmentSQLCommand(),_0x148545=program[_0x4082c8(0x2b7)](),_0x391a24=await createTDXInstance(_0x148545),_0x3665b0=await _0x531249[_0x4082c8(0x22e)]({'options':{..._0x148545,..._0x3f25f1},'args':_0x3b9930?[_0x3b9930]:[],'tdx':_0x391a24});process['exit'](_0x3665b0);}),parentSegmentCmd[a2_0x5f1ae4(0x357)]('show\x20[name]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x31c))['option'](a2_0x5f1ae4(0x2c4),'Limit\x20number\x20of\x20rows')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1b2),a2_0x5f1ae4(0x236))['option']('--jsonl',a2_0x5f1ae4(0x1db))[a2_0x5f1ae4(0x244)](async(_0x258eb1,_0x2fa0da)=>{const _0xe87532=a2_0x5f1ae4,_0x1075e0=new ParentSegmentShowCommand(),_0x4af295=program[_0xe87532(0x2b7)](),_0x323008=await createTDXInstance(_0x4af295),_0x3c5e54=await _0x1075e0['run']({'options':{..._0x4af295,..._0x2fa0da},'args':_0x258eb1?[_0x258eb1]:[],'tdx':_0x323008});process[_0xe87532(0x25a)](_0x3c5e54);}),parentSegmentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f7))['description'](a2_0x5f1ae4(0x344))[a2_0x5f1ae4(0x244)](async(_0x1ef510,_0x3f2649)=>{const _0x10c8a0=a2_0x5f1ae4,_0x2c3716=new UseCommand(),_0xb151db=program[_0x10c8a0(0x2b7)](),_0x4e2489=_0x1ef510?[_0x10c8a0(0x2a8),_0x1ef510]:[],_0x4e931a=await _0x2c3716[_0x10c8a0(0x22e)]({'options':{..._0xb151db,..._0x3f2649},'args':_0x4e2489,'tdx':null});process['exit'](_0x4e931a);}),parentCmd['command'](a2_0x5f1ae4(0x263))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x34a))['requiredOption'](a2_0x5f1ae4(0x384),'Master\x20database\x20name')[a2_0x5f1ae4(0x231)](a2_0x5f1ae4(0x31f),a2_0x5f1ae4(0x292))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),'Parent\x20segment\x20description')['option'](a2_0x5f1ae4(0x32a),a2_0x5f1ae4(0x288))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x394),a2_0x5f1ae4(0x1a5))[a2_0x5f1ae4(0x1b6)]('--timezone\x20<tz>',a2_0x5f1ae4(0x302))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x203),a2_0x5f1ae4(0x2e9))[a2_0x5f1ae4(0x1b6)]('--attributes-file\x20<file>',a2_0x5f1ae4(0x3a5))['option'](a2_0x5f1ae4(0x2e4),a2_0x5f1ae4(0x221))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x27f),a2_0x5f1ae4(0x2dd))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x38d),'Customer\x20group\x20as\x20JSON\x20string')['option'](a2_0x5f1ae4(0x17b),a2_0x5f1ae4(0x326))[a2_0x5f1ae4(0x244)](async(_0x27d660,_0x14de47)=>{const _0x26a483=a2_0x5f1ae4,_0x4ce4e5=new ParentSegmentCreateCommand(),_0xb92155=program[_0x26a483(0x2b7)](),_0x3c5921=await createTDXInstance(_0xb92155),_0x19326a=await _0x4ce4e5[_0x26a483(0x22e)]({'options':{..._0xb92155,..._0x14de47},'args':[_0x27d660],'tdx':_0x3c5921});process[_0x26a483(0x25a)](_0x19326a);}),parentCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x371))[a2_0x5f1ae4(0x348)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x5f1ae4(0x1b6)]('--description\x20<text>','Updated\x20description')['option'](a2_0x5f1ae4(0x32a),a2_0x5f1ae4(0x1a3))['option']('--schedule-option\x20<value>',a2_0x5f1ae4(0x378))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1df),a2_0x5f1ae4(0x2ba))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2ac),a2_0x5f1ae4(0x2a2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x229),a2_0x5f1ae4(0x361))[a2_0x5f1ae4(0x1b6)]('--add-behaviors\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string')['option'](a2_0x5f1ae4(0x2e7),a2_0x5f1ae4(0x1e6))[a2_0x5f1ae4(0x244)](async(_0x26ad58,_0x58b5f4)=>{const _0x4b47cb=a2_0x5f1ae4,_0x1f0d1d=new ParentSegmentUpdateCommand(),_0x34cd35=program[_0x4b47cb(0x2b7)](),_0x516abd=await createTDXInstance(_0x34cd35),_0x5e4aac=await _0x1f0d1d[_0x4b47cb(0x22e)]({'options':{..._0x34cd35,..._0x58b5f4},'args':[_0x26ad58],'tdx':_0x516abd});process[_0x4b47cb(0x25a)](_0x5e4aac);}),folderCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x22f))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1a8))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),'Folder\x20description')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2ab),a2_0x5f1ae4(0x2d8))[a2_0x5f1ae4(0x244)](async(_0x123710,_0x2c6ed0,_0x118fe8)=>{const _0x2a462a=a2_0x5f1ae4,_0x34b175=new SegmentFolderCreateCommand(),_0x3d1f0a=program[_0x2a462a(0x2b7)](),_0x2d0d59=await createTDXInstance(_0x3d1f0a),_0x236523=await _0x34b175[_0x2a462a(0x22e)]({'options':{..._0x3d1f0a,..._0x118fe8},'args':[_0x123710,_0x2c6ed0],'tdx':_0x2d0d59});process[_0x2a462a(0x25a)](_0x236523);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1bd))['description'](a2_0x5f1ae4(0x373))[a2_0x5f1ae4(0x244)](async(_0x1335ee,_0x3f1403)=>{const _0x5c98fb=a2_0x5f1ae4,_0x266be1=new ActivationsCommand(),_0x40b38b=program['opts'](),_0x51473b=await createTDXInstance(_0x40b38b),_0x2babf8=await _0x266be1['run']({'options':{..._0x40b38b,..._0x3f1403},'args':[_0x1335ee],'tdx':_0x51473b});process[_0x5c98fb(0x25a)](_0x2babf8);});const workflowCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2df))[a2_0x5f1ae4(0x2fb)]('wf')[a2_0x5f1ae4(0x348)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x396))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x185)),wfProjectListAction=async(_0x1cd089,_0x4440ea)=>{const _0x435855=a2_0x5f1ae4,_0x232362=new WorkflowProjectsCommand(),_0x5afb2a=program[_0x435855(0x2b7)](),_0x3e946a=await createTDXInstance(_0x5afb2a),_0x52af7c=await _0x232362['run']({'options':{..._0x5afb2a,..._0x4440ea},'args':_0x1cd089?[_0x1cd089]:[],'tdx':_0x3e946a});process[_0x435855(0x25a)](_0x52af7c);};wfProjectCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))['description'](a2_0x5f1ae4(0x198))[a2_0x5f1ae4(0x244)](wfProjectListAction),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x25d))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x215))[a2_0x5f1ae4(0x244)](wfProjectListAction);const wfWorkflowListAction=async(_0x544b2c,_0x340647)=>{const _0x4586c3=a2_0x5f1ae4,_0x2b5f1a=new WorkflowWorkflowsCommand(),_0x4e1c51=program[_0x4586c3(0x2b7)](),_0x377140=await createTDXInstance(_0x4e1c51),_0x32c4a5=await _0x2b5f1a['run']({'options':{..._0x4e1c51,..._0x340647},'args':_0x544b2c?[_0x544b2c]:[],'tdx':_0x377140});process[_0x4586c3(0x25a)](_0x32c4a5);};function a2_0x151b(_0x34dbe5,_0xab6784){_0x34dbe5=_0x34dbe5-0x179;const _0xe2e85f=a2_0xe2e8();let _0x151b20=_0xe2e85f[_0x34dbe5];return _0x151b20;}workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x313))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x234))[a2_0x5f1ae4(0x244)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x38e))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x21b)),wfSessionListAction=async(_0x39cc69,_0x362ea9)=>{const _0x15c241=a2_0x5f1ae4,_0x5a803a=new WorkflowSessionsCommand(),_0x155cb8=program[_0x15c241(0x2b7)](),_0xeef1cc=await createTDXInstance(_0x155cb8),_0x35f352=await _0x5a803a['run']({'options':{..._0x155cb8,..._0x362ea9},'args':_0x39cc69?[_0x39cc69]:[],'tdx':_0xeef1cc});process[_0x15c241(0x25a)](_0x35f352);};wfSessionCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x258))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2af))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),a2_0x5f1ae4(0x335))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1a7),a2_0x5f1ae4(0x354))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x328),a2_0x5f1ae4(0x327))['action'](wfSessionListAction),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x342))['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),a2_0x5f1ae4(0x335))[a2_0x5f1ae4(0x1b6)]('--from\x20<timestamp>',a2_0x5f1ae4(0x354))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x328),a2_0x5f1ae4(0x327))[a2_0x5f1ae4(0x244)](wfSessionListAction);const wfAttemptListAction=async(_0x417183,_0x1c91f0)=>{const _0x518070=a2_0x5f1ae4,_0x3bf10a=new WorkflowAttemptsCommand(),_0x208c9a=program['opts'](),_0x49632b=await createTDXInstance(_0x208c9a),_0x6ce0b1=await _0x3bf10a[_0x518070(0x22e)]({'options':{..._0x208c9a,..._0x1c91f0},'args':_0x417183?[_0x417183]:[],'tdx':_0x49632b});process[_0x518070(0x25a)](_0x6ce0b1);},attemptCmd=workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x187))[a2_0x5f1ae4(0x348)]('Workflow\x20attempt\x20management')['argument'](a2_0x5f1ae4(0x31e),a2_0x5f1ae4(0x1f4))[a2_0x5f1ae4(0x358)](a2_0x5f1ae4(0x23a),a2_0x5f1ae4(0x2ee))[a2_0x5f1ae4(0x358)](a2_0x5f1ae4(0x304),a2_0x5f1ae4(0x38f))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x20c),a2_0x5f1ae4(0x1b7))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x21e),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x20d),a2_0x5f1ae4(0x19f))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x38c),a2_0x5f1ae4(0x314))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x207),a2_0x5f1ae4(0x28b))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x346),'Include\x20retried\x20attempts\x20(for\x20list)')['action'](async(_0x8d31f1,_0x125b40,_0x2725a5,_0xe8fcbc)=>{const _0x4c9969=a2_0x5f1ae4;if(_0x8d31f1===_0x4c9969(0x39e)){await wfAttemptListAction(_0x125b40,_0xe8fcbc);return;}if(!_0x8d31f1){attemptCmd['help']();return;}const _0x208b94=program['opts'](),_0x2ce9ac=await createTDXInstance(_0x208b94);let _0x54f363=0x0;if(!_0x125b40){const _0x197230=new WorkflowAttemptCommand();_0x54f363=await _0x197230['run']({'options':{..._0x208b94,..._0xe8fcbc},'args':[_0x8d31f1],'tdx':_0x2ce9ac});}else{if(_0x125b40===_0x4c9969(0x2c3)){const _0x49d1fa=new WorkflowLogsCommand();_0x54f363=await _0x49d1fa['run']({'options':{..._0x208b94,..._0xe8fcbc},'args':_0x2725a5?[_0x8d31f1,_0x2725a5]:[_0x8d31f1],'tdx':_0x2ce9ac});}else{if(_0x125b40===_0x4c9969(0x186)){const _0x14ff2d=new WorkflowTasksCommand();_0x54f363=await _0x14ff2d[_0x4c9969(0x22e)]({'options':{..._0x208b94,..._0xe8fcbc},'args':[_0x8d31f1],'tdx':_0x2ce9ac});}else{if(_0x125b40===_0x4c9969(0x1c1)){const _0x131309=new WorkflowKillCommand();_0x54f363=await _0x131309[_0x4c9969(0x22e)]({'options':{..._0x208b94,..._0xe8fcbc},'args':[_0x8d31f1],'tdx':_0x2ce9ac});}else{if(_0x125b40===_0x4c9969(0x248)){const _0x8997b7=new WorkflowRetryCommand();_0x54f363=await _0x8997b7[_0x4c9969(0x22e)]({'options':{..._0x208b94,..._0xe8fcbc},'args':['attempt:'+_0x8d31f1],'tdx':_0x2ce9ac});}else console[_0x4c9969(0x2a5)]('Unknown\x20action:\x20'+_0x125b40),console[_0x4c9969(0x2a5)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x54f363=0x1;}}}}process[_0x4c9969(0x25a)](_0x54f363);});attemptCmd['command'](a2_0x5f1ae4(0x258))['description']('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x5f1ae4(0x1b6)]('--include-retried','Include\x20retried\x20attempts')[a2_0x5f1ae4(0x244)](wfAttemptListAction),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1eb))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x26d))['option']('--include-retried',a2_0x5f1ae4(0x1ca))[a2_0x5f1ae4(0x244)](wfAttemptListAction),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2d9))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x28f))[a2_0x5f1ae4(0x1b6)]('--from-task\x20<task>',a2_0x5f1ae4(0x19e))['option'](a2_0x5f1ae4(0x38c),a2_0x5f1ae4(0x2fa))[a2_0x5f1ae4(0x244)](async(_0x1349a7,_0x2db8f5)=>{const _0xe3b033=a2_0x5f1ae4,_0x1ecca9=new WorkflowRetryCommand(),_0x2be854=program[_0xe3b033(0x2b7)](),_0x393060=await createTDXInstance(_0x2be854),_0x2dd1a2=await _0x1ecca9['run']({'options':{..._0x2be854,..._0x2db8f5},'args':[_0x1349a7],'tdx':_0x393060});process['exit'](_0x2dd1a2);}),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f2))['description'](a2_0x5f1ae4(0x399))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x22b),a2_0x5f1ae4(0x379),(_0x372b6b,_0x266503=[])=>[..._0x266503,_0x372b6b],[])[a2_0x5f1ae4(0x1b6)]('--session-time\x20<time>',a2_0x5f1ae4(0x2ec))[a2_0x5f1ae4(0x244)](async(_0x52b69d,_0x4e1e2a)=>{const _0x34871c=a2_0x5f1ae4,_0x38a422=new WorkflowRunCommand(),_0x567c38=program['opts'](),_0x18e705=await createTDXInstance(_0x567c38),_0x2c7d62=await _0x38a422[_0x34871c(0x22e)]({'options':{..._0x567c38,..._0x4e1e2a},'args':[_0x52b69d],'tdx':_0x18e705});process[_0x34871c(0x25a)](_0x2c7d62);}),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x20a))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2c9))[a2_0x5f1ae4(0x1b6)]('--revision\x20<revision>',a2_0x5f1ae4(0x38a))['action'](async(_0x2d4157,_0x14d639,_0x30098d)=>{const _0x391450=a2_0x5f1ae4,_0x4b334b=new WorkflowDownloadCommand(),_0x51930a=program['opts'](),_0x3ef2b9=await createTDXInstance(_0x51930a),_0x48239a=await _0x4b334b[_0x391450(0x22e)]({'options':{..._0x51930a,..._0x30098d},'args':[_0x2d4157,_0x14d639||'.'],'tdx':_0x3ef2b9});process[_0x391450(0x25a)](_0x48239a);}),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1e3))[a2_0x5f1ae4(0x348)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x5f1ae4(0x1b6)]('--name\x20<name>',a2_0x5f1ae4(0x26e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d6),a2_0x5f1ae4(0x271))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x39d),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x5f1ae4(0x244)](async(_0x2db5ca,_0x5ab4d3)=>{const _0x56fb76=a2_0x5f1ae4,_0xb8786b=new WorkflowPushCommand(),_0x304a3d=program[_0x56fb76(0x2b7)](),_0x4914ad=await createTDXInstance(_0x304a3d),_0xacfb91=await _0xb8786b['run']({'options':{..._0x304a3d,..._0x5ab4d3},'args':_0x2db5ca?[_0x2db5ca]:[],'tdx':_0x4914ad});process[_0x56fb76(0x25a)](_0xacfb91);}),workflowCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x19c))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x372))[a2_0x5f1ae4(0x244)](async(_0x122469,_0x46aa8e)=>{const _0x184d0e=a2_0x5f1ae4,_0x13a81e=new WorkflowDeleteCommand(),_0x1a38c2=program[_0x184d0e(0x2b7)](),_0x1c81ad=await createTDXInstance(_0x1a38c2),_0x558238=await _0x13a81e[_0x184d0e(0x22e)]({'options':{..._0x1a38c2,..._0x46aa8e},'args':[_0x122469],'tdx':_0x1c81ad});process[_0x184d0e(0x25a)](_0x558238);});const jobCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x266))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1ff)),jobListAction=async _0x5317c7=>{const _0x36245b=a2_0x5f1ae4,_0x439077=new JobListCommand(),_0x532804=program[_0x36245b(0x2b7)](),_0x2613d9=await createTDXInstance(_0x532804),_0x3d496e=await _0x439077['run']({'options':{..._0x532804,..._0x5317c7},'args':[],'tdx':_0x2613d9});process[_0x36245b(0x25a)](_0x3d496e);};jobCmd['command'](a2_0x5f1ae4(0x39e))['description'](a2_0x5f1ae4(0x1f8))[a2_0x5f1ae4(0x1b6)]('--status\x20<status>',a2_0x5f1ae4(0x2cf))[a2_0x5f1ae4(0x244)](jobListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x270),{'hidden':!![]})[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x359))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),a2_0x5f1ae4(0x2cf))[a2_0x5f1ae4(0x244)](jobListAction),jobCmd[a2_0x5f1ae4(0x357)]('show\x20<job-id>')['description']('Show\x20job\x20details')[a2_0x5f1ae4(0x244)](async(_0x2913c6,_0x2746b1)=>{const _0x2e3b75=a2_0x5f1ae4,_0x4fb707=new JobShowCommand(),_0x1ca4cc=program[_0x2e3b75(0x2b7)](),_0x135301=await createTDXInstance(_0x1ca4cc),_0x26c414=await _0x4fb707['run']({'options':{..._0x1ca4cc,..._0x2746b1},'args':[_0x2913c6],'tdx':_0x135301});process[_0x2e3b75(0x25a)](_0x26c414);}),jobCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x36b))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x272))[a2_0x5f1ae4(0x244)](async(_0x355c14,_0x34f9ee)=>{const _0x209c5e=a2_0x5f1ae4,_0x4e729d=new JobKillCommand(),_0x5e4ba4=program[_0x209c5e(0x2b7)](),_0x175738=await createTDXInstance(_0x5e4ba4),_0x17035f=await _0x4e729d[_0x209c5e(0x22e)]({'options':{..._0x5e4ba4,..._0x34f9ee},'args':[_0x355c14],'tdx':_0x175738});process['exit'](_0x17035f);}),jobCmd[a2_0x5f1ae4(0x357)]('submit\x20[query]')['description']('Submit\x20a\x20job')['option'](a2_0x5f1ae4(0x1b4),a2_0x5f1ae4(0x351),a2_0x5f1ae4(0x29a))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x282),a2_0x5f1ae4(0x2d5))[a2_0x5f1ae4(0x1b6)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x5f1ae4(0x325))[a2_0x5f1ae4(0x244)](async(_0x4c4483,_0x14f82e)=>{const _0x2d4a22=a2_0x5f1ae4,_0x2ef0e8=new JobSubmitCommand(),_0x1181a3=program[_0x2d4a22(0x2b7)](),_0x21d6d7=await createTDXInstance(_0x1181a3),_0x183e4f=await _0x2ef0e8[_0x2d4a22(0x22e)]({'options':{..._0x1181a3,..._0x14f82e},'args':_0x4c4483?[_0x4c4483]:[],'tdx':_0x21d6d7});process[_0x2d4a22(0x25a)](_0x183e4f);}),jobCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x264))[a2_0x5f1ae4(0x348)]('Get\x20job\x20results')[a2_0x5f1ae4(0x244)](async(_0xddec36,_0x43d8cd)=>{const _0x431e9c=a2_0x5f1ae4,_0x4e796a=new JobResultCommand(),_0x107f26=program['opts'](),_0x530b23=await createTDXInstance(_0x107f26),_0x79d1f1=await _0x4e796a[_0x431e9c(0x22e)]({'options':{..._0x107f26,..._0x43d8cd},'args':[_0xddec36],'tdx':_0x530b23});process[_0x431e9c(0x25a)](_0x79d1f1);});const llmCmd=program[a2_0x5f1ae4(0x357)]('llm')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2cc));llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x393))['description'](a2_0x5f1ae4(0x269))[a2_0x5f1ae4(0x244)](async(_0x530700,_0x48ef88)=>{const _0x2d862b=a2_0x5f1ae4,_0x49962f=new LLMUseCommand(),_0x3dfa56=program[_0x2d862b(0x2b7)](),_0x407bc4=await createTDXInstance(_0x3dfa56),_0x343a55=await _0x49962f[_0x2d862b(0x22e)]({'options':{..._0x3dfa56,..._0x48ef88},'args':[_0x530700],'tdx':_0x407bc4});process[_0x2d862b(0x25a)](_0x343a55);}),llmCmd[a2_0x5f1ae4(0x357)]('models')['description'](a2_0x5f1ae4(0x1fa))['action'](async _0x1b01ea=>{const _0x1b6c02=a2_0x5f1ae4,_0xb78145=new LLMModelsCommand(),_0x3c0f18=program[_0x1b6c02(0x2b7)](),_0x862387=await createTDXInstance(_0x3c0f18),_0x3d5ca9=await _0xb78145[_0x1b6c02(0x22e)]({'options':{..._0x3c0f18,..._0x1b01ea},'args':[],'tdx':_0x862387});process['exit'](_0x3d5ca9);});const projectCmd=llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x396))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x37f)),llmProjectListAction=async(_0xc3e081,_0x5595b7)=>{const _0x3e4679=a2_0x5f1ae4,_0x5b4cab=new LLMProjectsCommand(),_0x45ae33=program[_0x3e4679(0x2b7)](),_0x6d7a6=await createTDXInstance(_0x45ae33),_0x353278=await _0x5b4cab[_0x3e4679(0x22e)]({'options':{..._0x45ae33,..._0x5595b7},'args':_0xc3e081?[_0xc3e081]:[],'tdx':_0x6d7a6});process[_0x3e4679(0x25a)](_0x353278);};projectCmd['command'](a2_0x5f1ae4(0x332))['description'](a2_0x5f1ae4(0x356))['option']('-w,\x20--web',a2_0x5f1ae4(0x322))[a2_0x5f1ae4(0x244)](llmProjectListAction),llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x25d))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x22d))[a2_0x5f1ae4(0x1b6)]('-w,\x20--web','Show\x20console\x20URLs')[a2_0x5f1ae4(0x244)](llmProjectListAction),projectCmd['command']('create\x20<name>')[a2_0x5f1ae4(0x348)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),'Project\x20description')[a2_0x5f1ae4(0x244)](async(_0x19e9c8,_0xa11ce4)=>{const _0x26909a=a2_0x5f1ae4,_0x32f976=new LLMProjectCreateCommand(),_0x4abc9c=program[_0x26909a(0x2b7)](),_0x331564=await createTDXInstance(_0x4abc9c),_0x4d02f9=await _0x32f976['run']({'options':{..._0x4abc9c,..._0xa11ce4},'args':[_0x19e9c8],'tdx':_0x331564});process[_0x26909a(0x25a)](_0x4d02f9);}),projectCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x296))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x257))[a2_0x5f1ae4(0x244)](async(_0x44d271,_0x353b66)=>{const _0x5c4adf=a2_0x5f1ae4,_0x11797c=new LLMProjectDeleteCommand(),_0x2005bf=program['opts'](),_0xe7f66b=await createTDXInstance(_0x2005bf),_0x5c9c50=await _0x11797c[_0x5c4adf(0x22e)]({'options':{..._0x2005bf,..._0x353b66},'args':[_0x44d271],'tdx':_0xe7f66b});process[_0x5c4adf(0x25a)](_0x5c9c50);}),projectCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x30c))['description']('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x228),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2bf),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x5f1ae4(0x244)](async(_0xd2282a,_0x1f088d)=>{const _0x260388=a2_0x5f1ae4,_0x2662cd=new LLMProjectBackupCommand(),_0x5ce682=program['opts'](),_0x2023da=await createTDXInstance(_0x5ce682),_0x41bd60=await _0x2662cd[_0x260388(0x22e)]({'options':{..._0x5ce682,..._0x1f088d},'args':[_0xd2282a],'tdx':_0x2023da});process[_0x260388(0x25a)](_0x41bd60);}),projectCmd['command']('restore\x20<folder>')[a2_0x5f1ae4(0x348)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')['option'](a2_0x5f1ae4(0x2e2),a2_0x5f1ae4(0x24c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2bf),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x5f1ae4(0x244)](async(_0x43c2b6,_0x441b85)=>{const _0x4390ab=a2_0x5f1ae4,_0x305aa7=new LLMProjectRestoreCommand(),_0x2b4400=program['opts'](),_0x18955f=await createTDXInstance(_0x2b4400),_0x2e1ae5=await _0x305aa7[_0x4390ab(0x22e)]({'options':{..._0x2b4400,..._0x441b85},'args':[_0x43c2b6],'tdx':_0x18955f});process[_0x4390ab(0x25a)](_0x2e1ae5);});const llmAgentListAction=async(_0x3ac4c9,_0x1e8635)=>{const _0x4173ce=new LLMAgentsCommand(),_0x5683ff=program['opts'](),_0x5e380b=await createTDXInstance(_0x5683ff),_0x451248=await _0x4173ce['run']({'options':{..._0x5683ff,..._0x1e8635},'args':_0x3ac4c9?[_0x3ac4c9]:[],'tdx':_0x5e380b});process['exit'](_0x451248);};llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x3a4))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1aa))[a2_0x5f1ae4(0x1b6)]('-w,\x20--web',a2_0x5f1ae4(0x2fd))['action'](llmAgentListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x3a4))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1aa))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),'Show\x20agent\x20chat\x20URLs')[a2_0x5f1ae4(0x244)](llmAgentListAction),llmCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x240))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x233))[a2_0x5f1ae4(0x1b6)]('--last',a2_0x5f1ae4(0x22c))[a2_0x5f1ae4(0x244)](async(_0x2dda62,_0x1241f1)=>{const _0x234ad9=a2_0x5f1ae4,_0x5881f2=new LLMHistoryCommand(),_0xcfc217=program[_0x234ad9(0x2b7)](),_0x2c7b5a=await createTDXInstance(_0xcfc217),_0x4b73df=await _0x5881f2['run']({'options':{..._0xcfc217,..._0x1241f1},'args':_0x2dda62?[_0x2dda62]:[],'tdx':_0x2c7b5a});process[_0x234ad9(0x25a)](_0x4b73df);}),llmCmd['command'](a2_0x5f1ae4(0x2a7))[a2_0x5f1ae4(0x348)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x389),a2_0x5f1ae4(0x265),'4000')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x26f),a2_0x5f1ae4(0x18d))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1de),a2_0x5f1ae4(0x1c8))[a2_0x5f1ae4(0x244)](async _0x16daea=>{const _0x19ace9=a2_0x5f1ae4,_0x55b793=new LLMProxyCommand(),_0x4e57e4=program[_0x19ace9(0x2b7)](),_0x26eaba=await createTDXInstance(_0x4e57e4),_0x5570a5={..._0x16daea,'port':_0x16daea[_0x19ace9(0x2e5)]?parseInt(_0x16daea['port'],0xa):undefined},_0x40de41=await _0x55b793[_0x19ace9(0x22e)]({'options':{..._0x4e57e4,..._0x5570a5},'args':[],'tdx':_0x26eaba});process['exit'](_0x40de41);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x194))[a2_0x5f1ae4(0x224)]('[options]\x20--\x20[claude-code-args...]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x33f))['option']('--model\x20<name>',a2_0x5f1ae4(0x2ed),a2_0x5f1ae4(0x2b9))['option'](a2_0x5f1ae4(0x192),'Continue\x20most\x20recent\x20conversation')['option']('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x274),a2_0x5f1ae4(0x1a6))[a2_0x5f1ae4(0x273)]()[a2_0x5f1ae4(0x201)](!![])['addHelpText']('after',a2_0x5f1ae4(0x214))[a2_0x5f1ae4(0x244)](async(_0x18b891,_0xcabd24)=>{const _0x2b7dc6=a2_0x5f1ae4,_0x432625=program[_0x2b7dc6(0x2b7)](),_0x50b306=Array[_0x2b7dc6(0x309)](_0x18b891)?_0x18b891:[];if(_0x50b306[0x0]==='statusline'){const _0x502af2=new ClaudeStatuslineCommand(),_0xe3bb7e=await _0x502af2['run']({'options':{..._0x432625,..._0xcabd24},'args':_0x50b306[_0x2b7dc6(0x2bd)](0x1),'tdx':null});process[_0x2b7dc6(0x25a)](_0xe3bb7e);}if(_0x50b306[0x0]==='usage'){const _0x30739a=new ClaudeUsageCommand(),_0xa92793=await _0x30739a[_0x2b7dc6(0x22e)]({'options':{..._0x432625,..._0xcabd24},'args':_0x50b306['slice'](0x1),'tdx':null});process[_0x2b7dc6(0x25a)](_0xa92793);}const _0x5d4986=new ClaudeCommand(),_0x4a1ae8=await createTDXInstance(_0x432625),_0x41dbf2=await _0x5d4986['run']({'options':{..._0x432625,..._0xcabd24},'args':_0x50b306,'tdx':_0x4a1ae8});process['exit'](_0x41dbf2);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x298))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x297))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x321),'Clear\x20session\x20context')['action'](async _0x47a294=>{const _0x3af1de=a2_0x5f1ae4,_0x317d54=new ContextCommand(),_0x7f1d2a=program['opts'](),_0x5f4814=await _0x317d54['run']({'options':{..._0x7f1d2a,..._0x47a294},'args':[],'tdx':null});process[_0x3af1de(0x25a)](_0x5f4814);}),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x222))[a2_0x5f1ae4(0x348)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x5f1ae4(0x1b6)]('--clear',a2_0x5f1ae4(0x1b1))[a2_0x5f1ae4(0x244)](async(_0x38541f,_0x2d45a1,_0x4a51cb)=>{const _0xcc72cd=a2_0x5f1ae4,_0x547c4d=new UseCommand(),_0x2f210b=program['opts'](),_0xa55859=[];if(_0x38541f)_0xa55859[_0xcc72cd(0x1fd)](_0x38541f);if(_0x2d45a1)_0xa55859[_0xcc72cd(0x1fd)](_0x2d45a1);const _0x11683c=await _0x547c4d['run']({'options':{..._0x2f210b,..._0x4a51cb},'args':_0xa55859,'tdx':null});process['exit'](_0x11683c);}),program['command'](a2_0x5f1ae4(0x1a1))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1c2))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2e3),a2_0x5f1ae4(0x21c))[a2_0x5f1ae4(0x244)](async _0x5c0709=>{const _0x656038=a2_0x5f1ae4,_0x2c067b=new ChatsCommand(),_0x9d0592=program[_0x656038(0x2b7)](),_0x2c3acd=await createTDXInstance(_0x9d0592),_0x932879=await _0x2c067b[_0x656038(0x22e)]({'options':{..._0x9d0592,..._0x5c0709},'args':[],'tdx':_0x2c3acd});process[_0x656038(0x25a)](_0x932879);});const authCmd=program[a2_0x5f1ae4(0x357)]('auth')['description'](a2_0x5f1ae4(0x343));async function runAuthStatusCommand(_0x321110){const _0x51436c=a2_0x5f1ae4,_0x48dbe6=new AuthStatusCommand(),_0x55b4d7=program[_0x51436c(0x2b7)](),_0x2b388c=await createTDXInstance(_0x55b4d7),_0x4f51d0=await _0x48dbe6[_0x51436c(0x22e)]({'options':{..._0x55b4d7,..._0x321110},'args':[],'tdx':_0x2b388c});process[_0x51436c(0x25a)](_0x4f51d0);}authCmd[a2_0x5f1ae4(0x244)](runAuthStatusCommand),authCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x31a))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1b8))[a2_0x5f1ae4(0x244)](runAuthStatusCommand),authCmd['command']('setup')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2d3))['addHelpText'](a2_0x5f1ae4(0x295),a2_0x5f1ae4(0x26c))[a2_0x5f1ae4(0x244)](async _0x12d0ac=>{const _0x486dc0=a2_0x5f1ae4,_0x4271c2=new AuthSetupCommand(),_0x18a133=program['opts'](),_0x23fdd2=await createTDXInstance(_0x18a133),_0x11a10c=await _0x4271c2[_0x486dc0(0x22e)]({'options':{..._0x18a133,..._0x12d0ac},'args':[],'tdx':_0x23fdd2});process[_0x486dc0(0x25a)](_0x11a10c);}),authCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1c7))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x29b))[a2_0x5f1ae4(0x3a8)](a2_0x5f1ae4(0x295),'\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_0x5f1ae4(0x244)](async _0x2a4a12=>{const _0x27c8ae=a2_0x5f1ae4,_0x572653=new AuthClearCommand(),_0x5c6a38=program['opts'](),_0x32947e=await _0x572653['run']({'options':{..._0x5c6a38,..._0x2a4a12},'args':[],'tdx':null});process[_0x27c8ae(0x25a)](_0x32947e);});const userCmd=program['command']('user')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x398)),userListAction=async _0x548825=>{const _0xe4b3f8=a2_0x5f1ae4,_0x41dd36=new UserListCommand(),_0x326219=program['opts'](),_0xce6508=await createTDXInstance(_0x326219),_0x10657c=await _0x41dd36['run']({'options':{..._0x326219,..._0x548825},'args':[],'tdx':_0xce6508});process[_0xe4b3f8(0x25a)](_0x10657c);};userCmd['action'](async _0x56930f=>{const _0x5cf304=a2_0x5f1ae4,_0x17f0ac=new UserCommand(),_0x4ea0b8=program[_0x5cf304(0x2b7)](),_0x1d3add=await createTDXInstance(_0x4ea0b8),_0x200dc6=await _0x17f0ac[_0x5cf304(0x22e)]({'options':{..._0x4ea0b8,..._0x56930f},'args':[],'tdx':_0x1d3add});process[_0x5cf304(0x25a)](_0x200dc6);}),userCmd[a2_0x5f1ae4(0x357)]('list')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x380))[a2_0x5f1ae4(0x244)](userListAction),program['command'](a2_0x5f1ae4(0x39c))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x349))['action'](userListAction),program[a2_0x5f1ae4(0x357)]('profiles')['description'](a2_0x5f1ae4(0x241))['action'](async _0x39ae05=>{const _0x126fde=a2_0x5f1ae4,_0x1c83da=new ProfilesCommand(),_0x29564a=program[_0x126fde(0x2b7)](),_0x3c4411=await _0x1c83da['run']({'options':{..._0x29564a,..._0x39ae05},'args':[],'tdx':null});process[_0x126fde(0x25a)](_0x3c4411);});const engageCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x366))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x30d)),createEngageAction=_0xb9ec81=>{return async(_0x1a7d86,_0x4d10ca)=>{const _0x42341b=a2_0x151b,_0x41120b=new _0xb9ec81(),_0x991be4=program[_0x42341b(0x2b7)](),_0x44d78b=await createTDXInstance(_0x991be4),_0x4a2aa0=await _0x41120b[_0x42341b(0x22e)]({'options':{..._0x991be4,..._0x4d10ca},'args':[_0x1a7d86],'tdx':_0x44d78b});process['exit'](_0x4a2aa0);};},createEngageNoArgAction=_0x14602f=>{return async _0x578854=>{const _0x50f599=a2_0x151b,_0x3e9fad=new _0x14602f(),_0x2d7f23=program[_0x50f599(0x2b7)](),_0x4bc3b2=await createTDXInstance(_0x2d7f23),_0x13be30=await _0x3e9fad[_0x50f599(0x22e)]({'options':{..._0x2d7f23,..._0x578854},'args':[],'tdx':_0x4bc3b2});process[_0x50f599(0x25a)](_0x13be30);};},campaignCmd=engageCmd['command'](a2_0x5f1ae4(0x188))['description'](a2_0x5f1ae4(0x377)),campaignListAction=async(_0x1cd2b5,_0x1b081e)=>{const _0x58189f=a2_0x5f1ae4,_0x475819=new EngageCampaignsCommand(),_0x3f9ce1=program[_0x58189f(0x2b7)](),_0x9cad79=await createTDXInstance(_0x3f9ce1),_0x4454ba=await _0x475819[_0x58189f(0x22e)]({'options':{..._0x3f9ce1,..._0x1b081e},'args':_0x1cd2b5?[_0x1cd2b5]:[],'tdx':_0x9cad79});process[_0x58189f(0x25a)](_0x4454ba);};campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))['description'](a2_0x5f1ae4(0x254))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x267),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x244)](campaignListAction),engageCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x19b))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x347))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x267),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x191),a2_0x5f1ae4(0x213))[a2_0x5f1ae4(0x1b6)]('--workspace\x20<name>',a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x244)](campaignListAction),campaignCmd[a2_0x5f1ae4(0x357)]('show\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2c6))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))['option'](a2_0x5f1ae4(0x279),a2_0x5f1ae4(0x2cb))[a2_0x5f1ae4(0x244)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x17c))['description'](a2_0x5f1ae4(0x1a4))['requiredOption'](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x252))[a2_0x5f1ae4(0x231)](a2_0x5f1ae4(0x267),a2_0x5f1ae4(0x333))['option']('--workspace\x20<name>',a2_0x5f1ae4(0x2ef))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x362),'Campaign\x20description')['option']('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x225),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x5f1ae4(0x1b6)]('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x5f1ae4(0x2d1),a2_0x5f1ae4(0x1e0))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1df),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x5f1ae4(0x244)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1c5))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x32c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x1b3))[a2_0x5f1ae4(0x1b6)]('--description\x20<desc>','Campaign\x20description')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ae),a2_0x5f1ae4(0x210))['option'](a2_0x5f1ae4(0x225),a2_0x5f1ae4(0x318))[a2_0x5f1ae4(0x1b6)]('--json-columns\x20<cols>',a2_0x5f1ae4(0x37a))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x2d1),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1df),a2_0x5f1ae4(0x262))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1d1))['description']('Delete\x20a\x20campaign')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))['option'](a2_0x5f1ae4(0x1f9),a2_0x5f1ae4(0x352))[a2_0x5f1ae4(0x244)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x5f1ae4(0x357)]('launch\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x25e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x300))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1ee))['option'](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x244)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1b9))[a2_0x5f1ae4(0x348)]('Resume\x20a\x20paused\x20campaign')['option'](a2_0x5f1ae4(0x196),'Workspace\x20name')['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x5f1ae4(0x2b4))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1e1))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),'Workspace\x20name')['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x34b))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x33c)),templateListAction=async(_0x2188e0,_0x12c46f)=>{const _0x460b4a=a2_0x5f1ae4,_0x542ef3=new EngageTemplatesCommand(),_0x3fbe2e=program['opts'](),_0xd79c1=await createTDXInstance(_0x3fbe2e),_0x264541=await _0x542ef3[_0x460b4a(0x22e)]({'options':{..._0x3fbe2e,..._0x12c46f},'args':_0x2188e0?[_0x2188e0]:[],'tdx':_0xd79c1});process['exit'](_0x264541);};templateCmd[a2_0x5f1ae4(0x357)]('list\x20[pattern]')['description']('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')['option']('--workspace\x20<name>',a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x244)](templateListAction),engageCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x30a))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1da))['option']('--workspace\x20<name>','Workspace\x20name')['action'](templateListAction),templateCmd['command']('show\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x364))[a2_0x5f1ae4(0x1b6)]('--workspace\x20<name>',a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)]('--full',a2_0x5f1ae4(0x2cb))[a2_0x5f1ae4(0x244)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x17c))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1dc))['requiredOption']('--name\x20<name>','Template\x20name')[a2_0x5f1ae4(0x231)](a2_0x5f1ae4(0x308),'Email\x20subject\x20template')['requiredOption'](a2_0x5f1ae4(0x24d),a2_0x5f1ae4(0x2b1))[a2_0x5f1ae4(0x1b6)]('--workspace\x20<name>',a2_0x5f1ae4(0x2ef))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x336),a2_0x5f1ae4(0x2f5))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x36c),a2_0x5f1ae4(0x1cc))[a2_0x5f1ae4(0x244)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command']('update\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x34e))[a2_0x5f1ae4(0x1b6)]('--workspace\x20<name>',a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x290))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x308),'Email\x20subject\x20template')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x24d),a2_0x5f1ae4(0x2b1))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x336),a2_0x5f1ae4(0x2f5))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x5f1ae4(0x1d1))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x286))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x196),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1f9),'Skip\x20confirmation\x20prompt')[a2_0x5f1ae4(0x244)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x5f1ae4(0x2da))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x277)),workspaceListAction=async(_0x251cb9,_0x38839f)=>{const _0x4eae7b=a2_0x5f1ae4,_0x3d6581=new EngageWorkspacesCommand(),_0x4de155=program['opts'](),_0x4f1d98=await createTDXInstance(_0x4de155),_0x39b914=await _0x3d6581[_0x4eae7b(0x22e)]({'options':{..._0x4de155,..._0x38839f},'args':_0x251cb9?[_0x251cb9]:[],'tdx':_0x4f1d98});process[_0x4eae7b(0x25a)](_0x39b914);};workspaceCmd[a2_0x5f1ae4(0x357)]('list\x20[pattern]')[a2_0x5f1ae4(0x348)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5f1ae4(0x244)](workspaceListAction),engageCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x291))['description'](a2_0x5f1ae4(0x381))['action'](workspaceListAction),workspaceCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x261))['description'](a2_0x5f1ae4(0x1bb))[a2_0x5f1ae4(0x1b6)]('--full',a2_0x5f1ae4(0x2cb))[a2_0x5f1ae4(0x244)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x5f1ae4(0x17c))['description'](a2_0x5f1ae4(0x28e))[a2_0x5f1ae4(0x231)](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x180))[a2_0x5f1ae4(0x1b6)]('--description\x20<desc>',a2_0x5f1ae4(0x2a3))[a2_0x5f1ae4(0x244)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command']('update\x20<name-or-id>')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1f6))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x251),a2_0x5f1ae4(0x1bf))[a2_0x5f1ae4(0x1b6)]('--description\x20<desc>',a2_0x5f1ae4(0x2a3))[a2_0x5f1ae4(0x244)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1d1))[a2_0x5f1ae4(0x348)]('Delete\x20a\x20workspace')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1f9),a2_0x5f1ae4(0x352))[a2_0x5f1ae4(0x244)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x3a2))['description']('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x5f1ae4(0x244)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x5f1ae4(0x357)]('connection')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x353)),connectionListAction=async _0x2043e0=>{const _0x1aa81a=a2_0x5f1ae4,_0x1f8eb6=new ConnectionListCommand(),_0x4fc351=program['opts'](),_0xd2eafe=await createTDXInstance(_0x4fc351),_0x6b0b5e=await _0x1f8eb6['run']({'options':{..._0x4fc351,..._0x2043e0},'args':[],'tdx':_0xd2eafe});process[_0x1aa81a(0x25a)](_0x6b0b5e);};connectionCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x39e))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2ea))[a2_0x5f1ae4(0x244)](connectionListAction),program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x311),{'hidden':!![]})[a2_0x5f1ae4(0x348)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x5f1ae4(0x244)](connectionListAction),connectionCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x1a9))['description']('Show\x20connection\x20details\x20by\x20name')['action'](async(_0x224612,_0x18bbf2)=>{const _0x2a25bc=a2_0x5f1ae4,_0x47109b=new ConnectionShowCommand(),_0xeb429f=program[_0x2a25bc(0x2b7)](),_0x380a9d=await createTDXInstance(_0xeb429f),_0x20df2f=await _0x47109b[_0x2a25bc(0x22e)]({'options':{..._0xeb429f,..._0x18bbf2},'args':[_0x224612],'tdx':_0x380a9d});process[_0x2a25bc(0x25a)](_0x20df2f);}),connectionCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2db))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2d2))[a2_0x5f1ae4(0x244)](async(_0x505239,_0x1f1bb4)=>{const _0x4db623=a2_0x5f1ae4,_0x2702bc=new ConnectionSchemaCommand(),_0x3c21bd=program[_0x4db623(0x2b7)](),_0x2416ef=await createTDXInstance(_0x3c21bd),_0x2100df=await _0x2702bc[_0x4db623(0x22e)]({'options':{..._0x3c21bd,..._0x1f1bb4},'args':[_0x505239],'tdx':_0x2416ef});process[_0x4db623(0x25a)](_0x2100df);}),connectionCmd['command'](a2_0x5f1ae4(0x200))[a2_0x5f1ae4(0x348)]('List\x20available\x20connector\x20types')[a2_0x5f1ae4(0x244)](async _0x28817f=>{const _0x33f7c7=a2_0x5f1ae4,_0x42c149=new ConnectionTypesCommand(),_0x53562e=program[_0x33f7c7(0x2b7)](),_0x3dfc31=await createTDXInstance(_0x53562e),_0x50468f=await _0x42c149[_0x33f7c7(0x22e)]({'options':{..._0x53562e,..._0x28817f},'args':[],'tdx':_0x3dfc31});process[_0x33f7c7(0x25a)](_0x50468f);}),connectionCmd['command'](a2_0x5f1ae4(0x39b))['description'](a2_0x5f1ae4(0x3a0))[a2_0x5f1ae4(0x244)](async(_0x1d449f,_0x19f719)=>{const _0x63f59c=a2_0x5f1ae4,_0x34cfe7=new ConnectionSettingsCommand(),_0x2d9e5f=program[_0x63f59c(0x2b7)](),_0x44a6e7=await createTDXInstance(_0x2d9e5f),_0x274a50=await _0x34cfe7[_0x63f59c(0x22e)]({'options':{..._0x2d9e5f,..._0x19f719},'args':[_0x1d449f],'tdx':_0x44a6e7});process[_0x63f59c(0x25a)](_0x274a50);});const journeyCmd=program[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x281))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x1d8));journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))[a2_0x5f1ae4(0x348)]('List\x20journeys\x20in\x20current\x20context')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x305))[a2_0x5f1ae4(0x244)](async(_0x343afa,_0x25a874)=>{const _0x39bb92=a2_0x5f1ae4,_0x123de0=new JourneyListCommand(),_0x344d6f=program[_0x39bb92(0x2b7)](),_0x50d5ad=await createTDXInstance(_0x344d6f),_0x3a4022=await _0x123de0[_0x39bb92(0x22e)]({'options':{..._0x344d6f,..._0x25a874},'args':_0x343afa?[_0x343afa]:[],'tdx':_0x50d5ad});process['exit'](_0x3a4022);}),journeyCmd['command'](a2_0x5f1ae4(0x2f6))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2ce))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x2eb))['option'](a2_0x5f1ae4(0x2c8),'Include\x20execution\x20statistics')[a2_0x5f1ae4(0x244)](async(_0x481139,_0x23f0a5)=>{const _0x5a35c3=a2_0x5f1ae4,_0xe5a8e3=new JourneyViewCommand(),_0xc5660d=program[_0x5a35c3(0x2b7)](),_0x332def=await createTDXInstance(_0xc5660d),_0x3d24e9=await _0xe5a8e3['run']({'options':{..._0xc5660d,..._0x23f0a5},'args':[_0x481139],'tdx':_0x332def});process[_0x5a35c3(0x25a)](_0x3d24e9);}),journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x376))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x29e))[a2_0x5f1ae4(0x1b6)]('--stage\x20<name>','Show\x20stats\x20for\x20specific\x20stage')[a2_0x5f1ae4(0x244)](async(_0x341525,_0x24e63f)=>{const _0x5b2983=a2_0x5f1ae4,_0x3dcdb0=new JourneyStatsCommand(),_0xb7ab51=program[_0x5b2983(0x2b7)](),_0x33e992=await createTDXInstance(_0xb7ab51),_0x2a0d2a=await _0x3dcdb0[_0x5b2983(0x22e)]({'options':{..._0xb7ab51,..._0x24e63f},'args':[_0x341525],'tdx':_0x33e992});process['exit'](_0x2a0d2a);}),journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2f0))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x249))[a2_0x5f1ae4(0x244)](async(_0x29825c,_0x3d943c)=>{const _0x115ca6=a2_0x5f1ae4,_0x46ac65=new JourneyPauseCommand(),_0x32a9a3=program[_0x115ca6(0x2b7)](),_0x12e41c=await createTDXInstance(_0x32a9a3),_0x2734af=await _0x46ac65[_0x115ca6(0x22e)]({'options':{..._0x32a9a3,..._0x3d943c},'args':[_0x29825c],'tdx':_0x12e41c});process[_0x115ca6(0x25a)](_0x2734af);}),journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x193))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x2a1))[a2_0x5f1ae4(0x244)](async(_0x36b024,_0x30b23a)=>{const _0x415006=a2_0x5f1ae4,_0xfae331=new JourneyResumeCommand(),_0x363ba8=program[_0x415006(0x2b7)](),_0x2004db=await createTDXInstance(_0x363ba8),_0x7d532b=await _0xfae331[_0x415006(0x22e)]({'options':{..._0x363ba8,..._0x30b23a},'args':[_0x36b024],'tdx':_0x2004db});process[_0x415006(0x25a)](_0x7d532b);}),journeyCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x206))['description'](a2_0x5f1ae4(0x1ed))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ce),a2_0x5f1ae4(0x352))['option'](a2_0x5f1ae4(0x2bf),a2_0x5f1ae4(0x1c9))[a2_0x5f1ae4(0x244)](async(_0x564194,_0x2cf38f)=>{const _0x5dc3a2=a2_0x5f1ae4,_0x44cee9=new JourneyPullCommand(),_0x78a00e=program['opts'](),_0x3f0d54=await createTDXInstance(_0x78a00e),_0x53ece0=await _0x44cee9[_0x5dc3a2(0x22e)]({'options':{..._0x78a00e,..._0x2cf38f},'args':_0x564194?[_0x564194]:[],'tdx':_0x3f0d54});process['exit'](_0x53ece0);}),journeyCmd['command']('push\x20[target]')[a2_0x5f1ae4(0x348)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x5f1ae4(0x244)](async(_0x4d0efb,_0x299dc1)=>{const _0x5ae8e4=a2_0x5f1ae4,_0x26f5ca=new JourneyPushCommand(),_0x4a2214=program[_0x5ae8e4(0x2b7)](),_0x581d17=await createTDXInstance(_0x4a2214),_0x4eb637=await _0x26f5ca[_0x5ae8e4(0x22e)]({'options':{..._0x4a2214,..._0x299dc1},'args':_0x4d0efb?[_0x4d0efb]:[],'tdx':_0x581d17});process[_0x5ae8e4(0x25a)](_0x4eb637);});const agentSyncCmd=program[a2_0x5f1ae4(0x357)]('agent')['description'](a2_0x5f1ae4(0x18a));agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x2c7))['description'](a2_0x5f1ae4(0x253))[a2_0x5f1ae4(0x1b6)]('-o,\x20--output\x20<dir>','Output\x20directory')['option']('-f,\x20--force',a2_0x5f1ae4(0x1e2))[a2_0x5f1ae4(0x244)](async(_0x1ffadb,_0x5e752d,_0x3a07e0)=>{const _0x3a08be=a2_0x5f1ae4,_0x1062da=new AgentPullCommand(),_0x3d99b5=program['opts'](),_0x126125=await createTDXInstance(_0x3d99b5),_0x2bcbd1=[];if(_0x1ffadb)_0x2bcbd1['push'](_0x1ffadb);if(_0x5e752d)_0x2bcbd1[_0x3a08be(0x1fd)](_0x5e752d);const _0x1f1be4=await _0x1062da[_0x3a08be(0x22e)]({'options':{..._0x3d99b5,..._0x3a07e0},'args':_0x2bcbd1,'tdx':_0x126125});process[_0x3a08be(0x25a)](_0x1f1be4);}),agentSyncCmd[a2_0x5f1ae4(0x357)]('push\x20[path]')[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x23f))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x32b),'Push\x20without\x20confirmation')[a2_0x5f1ae4(0x244)](async(_0x5ddcae,_0x1e9205)=>{const _0x5bc0ce=a2_0x5f1ae4,_0x57f772=new AgentPushCommand(),_0x4da38a=program['opts'](),_0x4eaf9d=await createTDXInstance(_0x4da38a),_0x487ebe=await _0x57f772['run']({'options':{..._0x4da38a,..._0x1e9205},'args':_0x5ddcae?[_0x5ddcae]:[],'tdx':_0x4eaf9d});process[_0x5bc0ce(0x25a)](_0x487ebe);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x32e))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x33e))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x306),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x5f1ae4(0x244)](async(_0x4bad7d,_0x29d304)=>{const _0x467449=a2_0x5f1ae4,_0x22e834=new AgentCloneCommand(),_0x3a2636=program[_0x467449(0x2b7)](),_0x1798db=await createTDXInstance(_0x3a2636),_0x570ccf=await _0x22e834['run']({'options':{..._0x3a2636,..._0x29d304},'args':_0x4bad7d?[_0x4bad7d]:[],'tdx':_0x1798db});process['exit'](_0x570ccf);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x332))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x31d))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1ef),a2_0x5f1ae4(0x2fd))[a2_0x5f1ae4(0x244)](llmAgentListAction),agentSyncCmd[a2_0x5f1ae4(0x357)]('show\x20<agent-name>')['description'](a2_0x5f1ae4(0x208))[a2_0x5f1ae4(0x244)](async(_0x2ade6e,_0x2e3f04)=>{const _0x54425b=a2_0x5f1ae4,_0x3e54d8=new LLMAgentShowCommand(),_0x43c879=program['opts'](),_0x4b3791=await createTDXInstance(_0x43c879),_0x4b6cd9=await _0x3e54d8[_0x54425b(0x22e)]({'options':{..._0x43c879,..._0x2e3f04},'args':[_0x2ade6e],'tdx':_0x4b3791});process['exit'](_0x4b6cd9);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x263))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x32d))['option']('--system-prompt\x20<text>','System\x20prompt/instructions\x20(default:\x20empty)')['option'](a2_0x5f1ae4(0x3a3),'Model\x20type\x20(default:\x20claude-4.5-sonnet)','claude-4.5-sonnet')[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x329),a2_0x5f1ae4(0x29c))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x23d),a2_0x5f1ae4(0x324),'4')['option']('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x5f1ae4(0x21a))[a2_0x5f1ae4(0x244)](async(_0x1e9bf3,_0x37ed84)=>{const _0xbd94e5=a2_0x5f1ae4,_0x4574a4=new LLMAgentCreateCommand(),_0x34bd07=program[_0xbd94e5(0x2b7)](),_0x4f7f1e=await createTDXInstance(_0x34bd07),_0x207317=await _0x4574a4[_0xbd94e5(0x22e)]({'options':{..._0x34bd07,..._0x37ed84},'args':[_0x1e9bf3],'tdx':_0x4f7f1e});process[_0xbd94e5(0x25a)](_0x207317);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x29f))[a2_0x5f1ae4(0x348)](a2_0x5f1ae4(0x190))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x1d4),'Agent\x20name')[a2_0x5f1ae4(0x1b6)]('--prompt\x20<text>',a2_0x5f1ae4(0x310))[a2_0x5f1ae4(0x1b6)](a2_0x5f1ae4(0x30b),a2_0x5f1ae4(0x28d))['option'](a2_0x5f1ae4(0x329),a2_0x5f1ae4(0x29c))[a2_0x5f1ae4(0x244)](async(_0xa77ce3,_0x189433)=>{const _0x32db20=a2_0x5f1ae4,_0xabb5e3=new LLMAgentUpdateCommand(),_0x2d6a5c=program[_0x32db20(0x2b7)](),_0x3140fd=await createTDXInstance(_0x2d6a5c),_0x5d793a=await _0xabb5e3[_0x32db20(0x22e)]({'options':{..._0x2d6a5c,..._0x189433},'args':[_0xa77ce3],'tdx':_0x3140fd});process[_0x32db20(0x25a)](_0x5d793a);}),agentSyncCmd[a2_0x5f1ae4(0x357)](a2_0x5f1ae4(0x303))[a2_0x5f1ae4(0x348)]('Delete\x20an\x20agent')['action'](async(_0x445008,_0x2271a9)=>{const _0x3347ea=a2_0x5f1ae4,_0x57bbf7=new LLMAgentDeleteCommand(),_0x4ce208=program[_0x3347ea(0x2b7)](),_0x5a990f=await createTDXInstance(_0x4ce208),_0x3582b3=await _0x57bbf7['run']({'options':{..._0x4ce208,..._0x2271a9},'args':[_0x445008],'tdx':_0x5a990f});process[_0x3347ea(0x25a)](_0x3582b3);});export{program};export function runCLI(){const _0x47d279=a2_0x5f1ae4;program[_0x47d279(0x260)](process[_0x47d279(0x2a6)]);!process[_0x47d279(0x2a6)][_0x47d279(0x2bd)](0x2)[_0x47d279(0x181)]&&program['outputHelp']();const _0x36f84c=packageJson['version'];process[_0x47d279(0x211)][_0x47d279(0x27c)]&&process[_0x47d279(0x2a6)][_0x47d279(0x181)]>0x2&&!_0x36f84c['includes'](_0x47d279(0x2d0))&&checkForUpdate(_0x36f84c)[_0x47d279(0x316)](_0x11ccc0=>{_0x11ccc0&&displayUpdateNotification(_0x11ccc0);})[_0x47d279(0x375)](()=>{});}
|