@treasuredata/tdx 0.9.1 → 0.9.2

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.
Files changed (119) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.js +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-api-client.js +1 -1
  11. package/dist/client/trino-api-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/agent-command.js +1 -1
  15. package/dist/commands/api-command.js +1 -1
  16. package/dist/commands/auth-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/claude-statusline-command.js +1 -1
  20. package/dist/commands/claude-usage-command.js +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/connection-command.js +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/llm-command.js +1 -1
  30. package/dist/commands/llm-proxy.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profiles-command.js +1 -1
  33. package/dist/commands/query-command.js +1 -1
  34. package/dist/commands/segment-command.js +1 -1
  35. package/dist/commands/segment-create-command.js +1 -1
  36. package/dist/commands/segment-fields-command.js +1 -1
  37. package/dist/commands/segment-pull-command.js +1 -1
  38. package/dist/commands/segment-push-command.js +1 -1
  39. package/dist/commands/segment-update-command.js +1 -1
  40. package/dist/commands/segment-use-command.js +1 -1
  41. package/dist/commands/segments.js +1 -1
  42. package/dist/commands/show.js +1 -1
  43. package/dist/commands/tables.js +1 -1
  44. package/dist/commands/use-command.js +1 -1
  45. package/dist/commands/user-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/connection-cache.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/proxy/anthropic-adapter.js +1 -1
  59. package/dist/proxy/claude-usage-tracker.js +1 -1
  60. package/dist/proxy/context-signature.js +1 -1
  61. package/dist/proxy/conversation-utils.js +1 -1
  62. package/dist/proxy/server.js +1 -1
  63. package/dist/proxy/session-cache.js +1 -1
  64. package/dist/sdk/agent/agent-yaml.js +1 -1
  65. package/dist/sdk/api.js +1 -1
  66. package/dist/sdk/connection.js +1 -1
  67. package/dist/sdk/engage.js +1 -1
  68. package/dist/sdk/errors.js +1 -1
  69. package/dist/sdk/index.js +1 -1
  70. package/dist/sdk/job.js +1 -1
  71. package/dist/sdk/journey.js +1 -1
  72. package/dist/sdk/llm.d.ts +27 -20
  73. package/dist/sdk/llm.d.ts.map +1 -1
  74. package/dist/sdk/llm.js +1 -1
  75. package/dist/sdk/llm.js.map +1 -1
  76. package/dist/sdk/query.js +1 -1
  77. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  78. package/dist/sdk/segment/journey-yaml.js +1 -1
  79. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  80. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  81. package/dist/sdk/segment.js +1 -1
  82. package/dist/sdk/user.js +1 -1
  83. package/dist/sdk/workflow.js +1 -1
  84. package/dist/types/endpoints.js +1 -1
  85. package/dist/types/index.js +1 -1
  86. package/dist/utils/agent-config.js +1 -1
  87. package/dist/utils/agent-ref-parser.js +1 -1
  88. package/dist/utils/async.js +1 -1
  89. package/dist/utils/chat-cache.js +1 -1
  90. package/dist/utils/colors.js +1 -1
  91. package/dist/utils/command-output.js +1 -1
  92. package/dist/utils/constants.js +1 -1
  93. package/dist/utils/diff.js +1 -1
  94. package/dist/utils/fields-display.js +1 -1
  95. package/dist/utils/file-permissions.js +1 -1
  96. package/dist/utils/format-detector.js +1 -1
  97. package/dist/utils/formatters.js +1 -1
  98. package/dist/utils/journey-utils.js +1 -1
  99. package/dist/utils/json-loader.js +1 -1
  100. package/dist/utils/llm-backup-utils.js +1 -1
  101. package/dist/utils/model-aliases.js +1 -1
  102. package/dist/utils/model-factors.js +1 -1
  103. package/dist/utils/option-validation.js +1 -1
  104. package/dist/utils/port.js +1 -1
  105. package/dist/utils/process.js +1 -1
  106. package/dist/utils/prompt.js +1 -1
  107. package/dist/utils/segment-path-parser.js +1 -1
  108. package/dist/utils/segment-ref-parser.js +1 -1
  109. package/dist/utils/spinner.js +1 -1
  110. package/dist/utils/sql-parser.js +1 -1
  111. package/dist/utils/sse-parser.js +1 -1
  112. package/dist/utils/string-utils.js +1 -1
  113. package/dist/utils/table-ref-parser.js +1 -1
  114. package/dist/utils/tdx-config.js +1 -1
  115. package/dist/utils/tdx-logger.js +1 -1
  116. package/dist/utils/tree-formatter.js +1 -1
  117. package/dist/utils/version-check.js +1 -1
  118. package/dist/utils/workflow-utils.js +1 -1
  119. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x522ed1=a2_0x3fa4;(function(_0x3356a5,_0x8854a){const _0x11c490=a2_0x3fa4,_0x3db460=_0x3356a5();while(!![]){try{const _0xc47ec9=-parseInt(_0x11c490(0x2ed))/0x1*(-parseInt(_0x11c490(0x2a9))/0x2)+-parseInt(_0x11c490(0x255))/0x3*(-parseInt(_0x11c490(0x33c))/0x4)+-parseInt(_0x11c490(0x37c))/0x5*(-parseInt(_0x11c490(0x2df))/0x6)+-parseInt(_0x11c490(0x3f5))/0x7*(parseInt(_0x11c490(0x1e3))/0x8)+parseInt(_0x11c490(0x3e0))/0x9*(-parseInt(_0x11c490(0x358))/0xa)+-parseInt(_0x11c490(0x392))/0xb*(-parseInt(_0x11c490(0x230))/0xc)+-parseInt(_0x11c490(0x27a))/0xd*(parseInt(_0x11c490(0x227))/0xe);if(_0xc47ec9===_0x8854a)break;else _0x3db460['push'](_0x3db460['shift']());}catch(_0x19d707){_0x3db460['push'](_0x3db460['shift']());}}}(a2_0x1580,0x6019b));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,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}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_0x522ed1(0x35d)](readFileSync(join(__dirname,a2_0x522ed1(0x1f4)),a2_0x522ed1(0x327)));let buildInfo={};try{buildInfo=JSON['parse'](readFileSync(join(__dirname,'build-info.json'),'utf-8'));}catch{}if(process['argv'][a2_0x522ed1(0x231)]('--version')){let versionOutput=a2_0x522ed1(0x36b)+packageJson[a2_0x522ed1(0x3e3)];buildInfo[a2_0x522ed1(0x25d)]&&(versionOutput+='\x20('+buildInfo[a2_0x522ed1(0x25d)]+')'),buildInfo[a2_0x522ed1(0x3dd)]&&(versionOutput+=a2_0x522ed1(0x209)+buildInfo[a2_0x522ed1(0x3dd)]),console[a2_0x522ed1(0x224)](versionOutput),process[a2_0x522ed1(0x2ba)](0x0);}const program=new Command();let description=a2_0x522ed1(0x32d);buildInfo[a2_0x522ed1(0x25d)]?description+=a2_0x522ed1(0x331)+packageJson[a2_0x522ed1(0x3e3)]+'\x20('+buildInfo[a2_0x522ed1(0x25d)]+')':description+=a2_0x522ed1(0x331)+packageJson[a2_0x522ed1(0x3e3)];program[a2_0x522ed1(0x3e1)](a2_0x522ed1(0x205))['description'](description),program[a2_0x522ed1(0x336)](a2_0x522ed1(0x28a),a2_0x522ed1(0x2fd))[a2_0x522ed1(0x336)](a2_0x522ed1(0x391),a2_0x522ed1(0x262),a2_0x522ed1(0x27b))[a2_0x522ed1(0x336)](a2_0x522ed1(0x25f),a2_0x522ed1(0x340))[a2_0x522ed1(0x336)](a2_0x522ed1(0x1ec),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3bf),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x333),a2_0x522ed1(0x3b4))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3ca),a2_0x522ed1(0x2a8))[a2_0x522ed1(0x336)](a2_0x522ed1(0x407),a2_0x522ed1(0x2cc))['option'](a2_0x522ed1(0x402),a2_0x522ed1(0x34a))['option'](a2_0x522ed1(0x291),a2_0x522ed1(0x2e5),![])['option'](a2_0x522ed1(0x1ee),a2_0x522ed1(0x3a0),![])['option'](a2_0x522ed1(0x317),a2_0x522ed1(0x367),![])[a2_0x522ed1(0x336)](a2_0x522ed1(0x2a0),a2_0x522ed1(0x22b))[a2_0x522ed1(0x336)](a2_0x522ed1(0x248),a2_0x522ed1(0x3a9))[a2_0x522ed1(0x336)]('--timeout\x20<seconds>',a2_0x522ed1(0x226),'30')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3c7),a2_0x522ed1(0x26d),![])[a2_0x522ed1(0x336)]('-y,\x20--yes',a2_0x522ed1(0x20f),![])[a2_0x522ed1(0x336)]('--session\x20<id>',a2_0x522ed1(0x3ac))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3f1),a2_0x522ed1(0x24c))['option'](a2_0x522ed1(0x356),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3d1),a2_0x522ed1(0x239))[a2_0x522ed1(0x336)](a2_0x522ed1(0x26c),a2_0x522ed1(0x2ee)),program[a2_0x522ed1(0x2f4)]({'formatHelp':(_0x2f2969,_0x1f01e4)=>{const _0x218329=a2_0x522ed1,_0x1a103e=_0x1f01e4[_0x218329(0x252)](_0x2f2969,_0x1f01e4),_0x27482b=0x2,_0x27795b=0x2;function _0x5c0ad9(_0x33e350){const _0x2dfdc5=_0x218329,_0x24a9b6=_0x33e350;return!!(_0x24a9b6[_0x2dfdc5(0x3bd)]||_0x24a9b6[_0x2dfdc5(0x2ae)]);}function _0x264513(_0x4a33b5,_0x81b25d){if(_0x81b25d){const _0x2ea482=''+_0x4a33b5['padEnd'](_0x1a103e+_0x27795b)+_0x81b25d;return _0x2ea482;}return _0x4a33b5;}function _0x14a74c(_0x3a02c1){const _0x40a5b8=_0x218329;return _0x3a02c1[_0x40a5b8(0x25a)]('\x0a')[_0x40a5b8(0x311)](/^/gm,'\x20'[_0x40a5b8(0x1e2)](_0x27482b));}const _0x281473=[];_0x281473['push']('Usage:\x20'+_0x1f01e4['commandUsage'](_0x2f2969));const _0x28b8a6=_0x1f01e4[_0x218329(0x220)](_0x2f2969);_0x28b8a6&&(_0x281473[_0x218329(0x2f1)](''),_0x281473[_0x218329(0x2f1)](_0x28b8a6));const _0x700d21=_0x2f2969[_0x218329(0x30c)][_0x218329(0x34c)](_0x4b1408=>!_0x5c0ad9(_0x4b1408));if(_0x700d21[_0x218329(0x32a)]>0x0){if(_0x2f2969['name']()===_0x218329(0x205)){const _0x5a01ee=_0x2f2969[_0x218329(0x380)](),_0x5686c7=!_0x5a01ee[_0x218329(0x204)]&&process['stdout'][_0x218329(0x401)],_0x2ad0d8=COMMAND_CATEGORIES,_0x4dd6e4=(_0x48abd3,_0x5205d9)=>_0x5686c7?_0x5205d9(_0x48abd3):_0x48abd3,_0x5f2b88=new Map();_0x700d21[_0x218329(0x3d4)](_0x50e5a6=>{const _0x329fe=_0x218329;_0x5f2b88[_0x329fe(0x253)](_0x50e5a6[_0x329fe(0x3e1)](),_0x50e5a6);}),_0x2ad0d8['forEach'](_0x580c1c=>{const _0x3d1bc0=_0x218329,_0x4eb1d8=_0x580c1c['commands'][_0x3d1bc0(0x29c)](_0x32affc=>_0x5f2b88[_0x3d1bc0(0x37e)](_0x32affc)??[]);if(_0x4eb1d8[_0x3d1bc0(0x32a)]>0x0){_0x281473['push'](''),_0x281473[_0x3d1bc0(0x2f1)](_0x4dd6e4(_0x580c1c[_0x3d1bc0(0x3e1)]+':',_0x580c1c[_0x3d1bc0(0x388)]));const _0x1c1285=_0x4eb1d8[_0x3d1bc0(0x37f)](_0x356138=>{const _0x2388b3=_0x3d1bc0,_0xc2358f=_0x1f01e4[_0x2388b3(0x3b7)](_0x356138),_0x1c6566=_0x1f01e4[_0x2388b3(0x400)](_0x356138);return _0x264513(_0xc2358f,_0x1c6566);});_0x281473[_0x3d1bc0(0x2f1)](_0x14a74c(_0x1c1285));}}),_0x281473['push'](''),_0x281473['push'](_0x218329(0x2bc));}else{const _0x3e6524=_0x700d21[_0x218329(0x37f)](_0x1a897b=>{const _0x4a1c77=_0x218329,_0xfe5b39=_0x1f01e4[_0x4a1c77(0x3b7)](_0x1a897b),_0x2bb4d5=_0x1f01e4['subcommandDescription'](_0x1a897b);return _0x264513(_0xfe5b39,_0x2bb4d5);});_0x281473[_0x218329(0x2f1)](''),_0x281473[_0x218329(0x2f1)](_0x218329(0x324)),_0x281473['push'](_0x14a74c(_0x3e6524));}}const _0x1d9908=_0x2f2969[_0x218329(0x26f)]['filter'](_0x1dd7b6=>!_0x5c0ad9(_0x1dd7b6));if(_0x1d9908[_0x218329(0x32a)]>0x0){const _0x5a4e3e=_0x1d9908[_0x218329(0x37f)](_0x47ad9b=>{const _0x3c7d3d=_0x218329,_0x4638ed=_0x1f01e4[_0x3c7d3d(0x1f3)](_0x47ad9b),_0x416181=_0x1f01e4[_0x3c7d3d(0x293)](_0x47ad9b);return _0x264513(_0x4638ed,_0x416181);});_0x281473['push'](''),_0x281473[_0x218329(0x2f1)](_0x218329(0x236)),_0x281473[_0x218329(0x2f1)](_0x14a74c(_0x5a4e3e));}const _0x4e6d4c=(_0x2f2969[_0x218329(0x2a1)]||[])[_0x218329(0x34c)](_0x1baffd=>!_0x5c0ad9(_0x1baffd));if(_0x4e6d4c[_0x218329(0x32a)]>0x0){const _0x11ccd8=_0x4e6d4c[_0x218329(0x37f)](_0x3b29d6=>{const _0x485ace=_0x218329,_0x4441be=_0x1f01e4[_0x485ace(0x213)](_0x3b29d6),_0x44c242=_0x1f01e4['argumentDescription'](_0x3b29d6);return _0x264513(_0x4441be,_0x44c242);});_0x281473['push'](''),_0x281473[_0x218329(0x2f1)](_0x218329(0x3a3)),_0x281473[_0x218329(0x2f1)](_0x14a74c(_0x11ccd8));}return _0x281473[_0x218329(0x25a)]('\x0a');},'subcommandTerm':_0x3f4801=>{const _0x2c980f=a2_0x522ed1,_0x2f4cec=(_0x3f4801[_0x2c980f(0x2a1)]||[])[_0x2c980f(0x37f)](_0x358794=>_0x358794[_0x2c980f(0x295)]?'<'+_0x358794[_0x2c980f(0x3e1)]()+'>':'['+_0x358794['name']()+']')[_0x2c980f(0x25a)]('\x20'),_0x59254f=_0x3f4801['aliases'](),_0x4e9d8d=_0x59254f[_0x2c980f(0x32a)]>0x0?_0x3f4801[_0x2c980f(0x3e1)]()+',\x20'+_0x59254f[_0x2c980f(0x25a)](',\x20'):_0x3f4801[_0x2c980f(0x3e1)]();return _0x2f4cec?_0x4e9d8d+'\x20'+_0x2f4cec:_0x4e9d8d;}}),program['hook'](a2_0x522ed1(0x2b3),_0xb7b352=>{const _0x1f47be=a2_0x522ed1,_0xdf212e=_0xb7b352[_0x1f47be(0x380)]();if(!_0xdf212e[_0x1f47be(0x330)]){if(_0xdf212e[_0x1f47be(0x2c4)])_0xdf212e[_0x1f47be(0x330)]=_0x1f47be(0x2c4);else{if(_0xdf212e[_0x1f47be(0x3c4)])_0xdf212e[_0x1f47be(0x330)]='json';else{if(_0xdf212e['jsonl'])_0xdf212e[_0x1f47be(0x330)]=_0x1f47be(0x349);else _0xdf212e[_0x1f47be(0x2ce)]&&(_0xdf212e[_0x1f47be(0x330)]=_0x1f47be(0x2ce));}}}_0xdf212e['in']&&!_0xdf212e[_0x1f47be(0x364)]&&(_0xdf212e[_0x1f47be(0x364)]=_0xdf212e['in']);if(_0xdf212e['trace'])_0xdf212e[_0x1f47be(0x2cf)]=LogLevel[_0x1f47be(0x256)];else{if(_0xdf212e['debug'])_0xdf212e[_0x1f47be(0x2cf)]=LogLevel[_0x1f47be(0x316)];else _0xdf212e['logLevel']===undefined&&(_0xdf212e['logLevel']=LogLevel[_0x1f47be(0x33e)]);}});async function createTDXInstance(_0x3c2d6e){const _0x5ed3fd=a2_0x522ed1,_0x4e2610=await GlobalContext[_0x5ed3fd(0x29d)](_0x3c2d6e);return _0x4e2610[_0x5ed3fd(0x3d7)](_0x3c2d6e),TDX['create']({'site':_0x4e2610[_0x5ed3fd(0x3a2)],'apiKey':_0x4e2610[_0x5ed3fd(0x3c3)],'logLevel':_0x4e2610[_0x5ed3fd(0x2cf)],'profile':_0x4e2610['profile']});}const databaseCmd=program['command'](a2_0x522ed1(0x364))[a2_0x522ed1(0x306)]('db')[a2_0x522ed1(0x365)](a2_0x522ed1(0x3e8)),databaseListAction=async(_0x51a528,_0x419480)=>{const _0x27d3e7=a2_0x522ed1,_0x2444a6=new DatabasesCommand(),_0x30a92d=program[_0x27d3e7(0x380)](),_0xd92c82=await createTDXInstance(_0x30a92d),_0x4ae47e=await _0x2444a6[_0x27d3e7(0x22a)]({'options':{..._0x30a92d,..._0x419480},'args':_0x51a528?[_0x51a528]:[],'tdx':_0xd92c82});process['exit'](_0x4ae47e);};databaseCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2c1))['action'](databaseListAction),program['command'](a2_0x522ed1(0x35b),{'hidden':!![]})['description'](a2_0x522ed1(0x31f))[a2_0x522ed1(0x3c6)](databaseListAction),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x371))[a2_0x522ed1(0x365)](a2_0x522ed1(0x35e))[a2_0x522ed1(0x336)](a2_0x522ed1(0x21d),a2_0x522ed1(0x3ea))[a2_0x522ed1(0x336)](a2_0x522ed1(0x362),a2_0x522ed1(0x1f6))['action'](async(_0x5a9ef1,_0x4a3cf1)=>{const _0x5e66f5=a2_0x522ed1,_0x502521=new ChatCommand(),_0x24c39a=program[_0x5e66f5(0x380)](),_0x563bb8=await createTDXInstance(_0x24c39a),_0x59e95a=await _0x502521[_0x5e66f5(0x22a)]({'options':{..._0x24c39a,..._0x4a3cf1},'args':_0x5a9ef1,'tdx':_0x563bb8});process[_0x5e66f5(0x2ba)](_0x59e95a);});const apiCmd=program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3f0))[a2_0x522ed1(0x29a)](a2_0x522ed1(0x37a))[a2_0x522ed1(0x238)](a2_0x522ed1(0x29e),a2_0x522ed1(0x1e5))[a2_0x522ed1(0x336)]('-X,\x20--method\x20<method>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x522ed1(0x225))[a2_0x522ed1(0x336)]('--data\x20<data>','Request\x20body\x20as\x20JSON\x20string')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3f2),'Read\x20request\x20body\x20from\x20file')[a2_0x522ed1(0x336)](a2_0x522ed1(0x2b1),a2_0x522ed1(0x30a),(_0x30cac4,_0x3acd68)=>{return _0x3acd68?[..._0x3acd68,_0x30cac4]:[_0x30cac4];})[a2_0x522ed1(0x336)]('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x522ed1(0x3c6)](async(_0x1a41dd,_0x1e0a0)=>{const _0x324079=a2_0x522ed1;if(!_0x1a41dd){apiCmd[_0x324079(0x277)]();return;}const _0x34c764=new ApiCommand(),_0x54c34e=program[_0x324079(0x380)](),_0x3bfdbc=await createTDXInstance(_0x54c34e),_0x3d970c=await _0x34c764[_0x324079(0x22a)]({'options':{..._0x54c34e,..._0x1e0a0},'args':[_0x1a41dd],'tdx':_0x3bfdbc});process[_0x324079(0x2ba)](_0x3d970c);}),tableCmd=program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2c4))[a2_0x522ed1(0x365)](a2_0x522ed1(0x39a)),tableListAction=async(_0x4bc6fc,_0x3e5657)=>{const _0x4313aa=a2_0x522ed1,_0x237304=new TablesCommand(),_0x2f2637=program[_0x4313aa(0x380)](),_0x21300c=await createTDXInstance(_0x2f2637);_0x3e5657['in']&&(_0x3e5657[_0x4313aa(0x364)]=_0x3e5657['in']);const _0x47890e=await _0x237304[_0x4313aa(0x22a)]({'options':{..._0x2f2637,..._0x3e5657},'args':_0x4bc6fc?[_0x4bc6fc]:[],'tdx':_0x21300c});process[_0x4313aa(0x2ba)](_0x47890e);};tableCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)](a2_0x522ed1(0x1e0))[a2_0x522ed1(0x336)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x522ed1(0x336)]('--in\x20<database>',a2_0x522ed1(0x294))[a2_0x522ed1(0x3c6)](tableListAction),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x1eb),{'hidden':!![]})[a2_0x522ed1(0x365)](a2_0x522ed1(0x3b5))[a2_0x522ed1(0x336)]('-d,\x20--database\x20<database>',a2_0x522ed1(0x320))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2e7),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x522ed1(0x3c6)](tableListAction),program['command'](a2_0x522ed1(0x3aa))[a2_0x522ed1(0x365)](a2_0x522ed1(0x22f))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3fd),a2_0x522ed1(0x20b))['option']('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x522ed1(0x3c6)](async(_0x4f201d,_0x576681)=>{const _0x48e396=a2_0x522ed1,_0xb42be=new ShowCommand(),_0x31c513=program['opts'](),_0x56bf75=await createTDXInstance(_0x31c513);_0x576681['in']&&(_0x576681['database']=_0x576681['in']);const _0x400610=await _0xb42be['run']({'options':{..._0x31c513,..._0x576681},'args':_0x4f201d?[_0x4f201d]:[],'tdx':_0x56bf75});process[_0x48e396(0x2ba)](_0x400610);}),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3db))[a2_0x522ed1(0x306)](a2_0x522ed1(0x381))[a2_0x522ed1(0x365)](a2_0x522ed1(0x406))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3fd),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x2e7),a2_0x522ed1(0x294))['action'](async(_0x1131f5,_0x33359a)=>{const _0x543498=a2_0x522ed1,_0x2be14d=new DescribeCommand(),_0x17d49a=program['opts'](),_0x47b083=await createTDXInstance(_0x17d49a);_0x33359a['in']&&(_0x33359a['database']=_0x33359a['in']);const _0x3a63b6=await _0x2be14d[_0x543498(0x22a)]({'options':{..._0x17d49a,..._0x33359a},'args':_0x1131f5?[_0x1131f5]:[],'tdx':_0x47b083});process[_0x543498(0x2ba)](_0x3a63b6);}),program['command'](a2_0x522ed1(0x1e6))[a2_0x522ed1(0x365)](a2_0x522ed1(0x1ef))[a2_0x522ed1(0x336)]('-d,\x20--database\x20<database>','Database\x20to\x20query\x20(default:\x20information_schema)')['option'](a2_0x522ed1(0x2e7),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x522ed1(0x336)]('--catalog\x20<catalog>','Trino\x20catalog\x20(default:\x20td)')['option']('-f,\x20--file\x20<path>',a2_0x522ed1(0x373))[a2_0x522ed1(0x336)](a2_0x522ed1(0x27d),a2_0x522ed1(0x36d),'40')[a2_0x522ed1(0x3c6)](async(_0x395073,_0x413fe4)=>{const _0x106336=a2_0x522ed1,_0x3b0716=new QueryCommand(),_0x12e8a3=program[_0x106336(0x380)](),_0x447e25=await createTDXInstance(_0x12e8a3);_0x413fe4['in']&&(_0x413fe4['database']=_0x413fe4['in']);const _0xbe028d=await _0x3b0716[_0x106336(0x22a)]({'options':{..._0x12e8a3,..._0x413fe4},'args':_0x395073?[_0x395073]:[],'tdx':_0x447e25});process[_0x106336(0x2ba)](_0xbe028d);});const segmentCmd=program['command']('segment')['alias']('sg')[a2_0x522ed1(0x365)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0xabb004,_0x1bc6fb)=>{const _0x30017d=a2_0x522ed1,_0x282344=new SegmentsCommand(),_0x4c7848=program[_0x30017d(0x380)](),_0x47b950=await createTDXInstance(_0x4c7848),_0xfc141b=await _0x282344[_0x30017d(0x22a)]({'options':{..._0x4c7848,..._0x1bc6fb},'args':_0xabb004?[_0xabb004]:[],'tdx':_0x47b950});process[_0x30017d(0x2ba)](_0xfc141b);};segmentCmd['command'](a2_0x522ed1(0x1e4))[a2_0x522ed1(0x365)](a2_0x522ed1(0x1f5))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3c9),a2_0x522ed1(0x2c0))[a2_0x522ed1(0x336)]('--max-depth\x20<depth>','Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x522ed1(0x336)](a2_0x522ed1(0x375),'Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x522ed1(0x3c6)](segmentListAction),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x202),{'hidden':!![]})[a2_0x522ed1(0x365)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3c9),a2_0x522ed1(0x2c0))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2f6),a2_0x522ed1(0x2d0),'10')[a2_0x522ed1(0x336)](a2_0x522ed1(0x375),a2_0x522ed1(0x3fc))[a2_0x522ed1(0x3c6)](segmentListAction),segmentCmd[a2_0x522ed1(0x39e)]('use\x20<path>',{'hidden':!![]})[a2_0x522ed1(0x365)](a2_0x522ed1(0x38a))['action'](async(_0xab6e7c,_0x4f9c80)=>{const _0x33962b=a2_0x522ed1,_0x216423=new SegmentUseCommand(),_0x3b2dbc=program[_0x33962b(0x380)](),_0x11a92d=await createTDXInstance(_0x3b2dbc),_0x589eac=await _0x216423[_0x33962b(0x22a)]({'options':{..._0x3b2dbc,..._0x4f9c80},'args':[_0xab6e7c],'tdx':_0x11a92d});process[_0x33962b(0x2ba)](_0x589eac);});const segmentViewAction=async(_0x2d6d55,_0x4b942c)=>{const _0x1565b2=a2_0x522ed1,_0x42f31e=new SegmentViewCommand(),_0x5ea656=program[_0x1565b2(0x380)](),_0x2eb57b=await createTDXInstance(_0x5ea656),_0x4ccbf4=await _0x42f31e[_0x1565b2(0x22a)]({'options':{..._0x5ea656,..._0x4b942c},'args':_0x2d6d55?[_0x2d6d55]:[],'tdx':_0x2eb57b});process[_0x1565b2(0x2ba)](_0x4ccbf4);};segmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x1fd))[a2_0x522ed1(0x365)](a2_0x522ed1(0x314))[a2_0x522ed1(0x336)](a2_0x522ed1(0x375),a2_0x522ed1(0x3e4))[a2_0x522ed1(0x3c6)](segmentViewAction),segmentCmd[a2_0x522ed1(0x39e)]('info\x20[segment_name]',{'hidden':!![]})[a2_0x522ed1(0x306)](a2_0x522ed1(0x23d))[a2_0x522ed1(0x336)]('-w,\x20--web',a2_0x522ed1(0x3e4))['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x522ed1(0x3c6)](segmentViewAction),segmentCmd['command'](a2_0x522ed1(0x339))[a2_0x522ed1(0x365)](a2_0x522ed1(0x27e))[a2_0x522ed1(0x3c6)](async(_0x4ba7ec,_0x3b8d14)=>{const _0x27403d=a2_0x522ed1,_0x20d8e1=new SegmentDescCommand(),_0x5dea58=program[_0x27403d(0x380)](),_0x3d8efe=await createTDXInstance(_0x5dea58),_0xc057db=await _0x20d8e1[_0x27403d(0x22a)]({'options':{..._0x5dea58,..._0x3b8d14},'args':_0x4ba7ec?[_0x4ba7ec]:[],'tdx':_0x3d8efe});process[_0x27403d(0x2ba)](_0xc057db);}),segmentCmd['command']('show\x20[segment_name]')['description'](a2_0x522ed1(0x1fe))[a2_0x522ed1(0x3c6)](async(_0x420079,_0xef03fb)=>{const _0x5b8399=a2_0x522ed1,_0x310c01=new SegmentShowCommand(),_0x5e29ca=program[_0x5b8399(0x380)](),_0x30fb84=await createTDXInstance(_0x5e29ca),_0x227257=await _0x310c01[_0x5b8399(0x22a)]({'options':{..._0x5e29ca,..._0xef03fb},'args':_0x420079?[_0x420079]:[],'tdx':_0x30fb84});process[_0x5b8399(0x2ba)](_0x227257);}),segmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x263),{'hidden':!![]})[a2_0x522ed1(0x365)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x522ed1(0x3c6)](async(_0xdf5bdf,_0x46d216)=>{const _0x317a51=a2_0x522ed1,_0x24f00a=new SegmentFolderListCommand(),_0x7f179=program[_0x317a51(0x380)](),_0x238734=await createTDXInstance(_0x7f179),_0x3f6410=await _0x24f00a['run']({'options':{..._0x7f179,..._0x46d216},'args':[_0xdf5bdf],'tdx':_0x238734});process[_0x317a51(0x2ba)](_0x3f6410);});const folderCmd=segmentCmd['command'](a2_0x522ed1(0x3f6),{'hidden':!![]})['description'](a2_0x522ed1(0x3b8));folderCmd['command'](a2_0x522ed1(0x38e))[a2_0x522ed1(0x365)](a2_0x522ed1(0x3fb))[a2_0x522ed1(0x3c6)](async(_0x4fa5c5,_0x11a4c0)=>{const _0xc32188=a2_0x522ed1,_0x39eaf1=new SegmentFolderShowCommand(),_0x71ac04=program[_0xc32188(0x380)](),_0x611e24=await createTDXInstance(_0x71ac04),_0x2a71c=await _0x39eaf1[_0xc32188(0x22a)]({'options':{..._0x71ac04,..._0x11a4c0},'args':[_0x4fa5c5],'tdx':_0x611e24});process[_0xc32188(0x2ba)](_0x2a71c);}),segmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x357))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2be))[a2_0x522ed1(0x3c6)](async(_0x1eeaac,_0x584da9)=>{const _0x275314=a2_0x522ed1,_0x5ab089=new SegmentSQLCommand(),_0x485dec=program['opts'](),_0xa2a724=await createTDXInstance(_0x485dec),_0x422d0d=await _0x5ab089[_0x275314(0x22a)]({'options':{..._0x485dec,..._0x584da9},'args':_0x1eeaac?[_0x1eeaac]:[],'tdx':_0xa2a724});process['exit'](_0x422d0d);}),segmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x372))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2fc))[a2_0x522ed1(0x3c6)](async(_0x505f7f,_0xd99851)=>{const _0x53e5d2=a2_0x522ed1,_0x4a0164=new SegmentFieldsCommand(),_0x569b70=program[_0x53e5d2(0x380)](),_0x123f8c=await createTDXInstance(_0x569b70),_0x5dd62c=await _0x4a0164[_0x53e5d2(0x22a)]({'options':{..._0x569b70,..._0xd99851},'args':_0x505f7f?[_0x505f7f]:[],'tdx':_0x123f8c});process[_0x53e5d2(0x2ba)](_0x5dd62c);}),segmentCmd[a2_0x522ed1(0x39e)]('pull\x20[parent_or_file]')[a2_0x522ed1(0x365)](a2_0x522ed1(0x28d))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3b9),a2_0x522ed1(0x20f))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3c7),a2_0x522ed1(0x233))[a2_0x522ed1(0x3c6)](async(_0x18c1b3,_0x56a7e4)=>{const _0x347706=a2_0x522ed1,_0x1f40de=new SegmentPullCommand(),_0x2280e7=program[_0x347706(0x380)](),_0x3b13c5=await createTDXInstance(_0x2280e7),_0x42d07b=await _0x1f40de[_0x347706(0x22a)]({'options':{..._0x2280e7,..._0x56a7e4},'args':_0x18c1b3?[_0x18c1b3]:[],'tdx':_0x3b13c5});process[_0x347706(0x2ba)](_0x42d07b);}),segmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x348))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2fe))[a2_0x522ed1(0x336)]('-y,\x20--yes',a2_0x522ed1(0x20f))['option'](a2_0x522ed1(0x3c7),a2_0x522ed1(0x233))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3c2),a2_0x522ed1(0x276))['action'](async(_0xd3d1a4,_0x54fbb1)=>{const _0x293261=a2_0x522ed1,_0x44eed1=new SegmentPushCommand(),_0x9c2d53=program['opts'](),_0x14e070=await createTDXInstance(_0x9c2d53),_0x2f6e93=await _0x44eed1[_0x293261(0x22a)]({'options':{..._0x9c2d53,..._0x54fbb1},'args':_0xd3d1a4?[_0xd3d1a4]:[],'tdx':_0x14e070});process[_0x293261(0x2ba)](_0x2f6e93);}),segmentCmd[a2_0x522ed1(0x39e)]('create\x20<segment_name>',{'hidden':!![]})[a2_0x522ed1(0x365)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x207),a2_0x522ed1(0x3b6))[a2_0x522ed1(0x336)](a2_0x522ed1(0x1ff),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x522ed1(0x336)](a2_0x522ed1(0x329),a2_0x522ed1(0x3d2))['option']('--folder\x20<name>',a2_0x522ed1(0x241))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3cd),a2_0x522ed1(0x33b))[a2_0x522ed1(0x336)]('--invisible',a2_0x522ed1(0x3d6))[a2_0x522ed1(0x336)]('--no-count-population','Skip\x20population\x20counting')[a2_0x522ed1(0x3c6)](async(_0x373467,_0x3352b9)=>{const _0x3eb766=a2_0x522ed1,_0x4ccd89=new SegmentCreateCommand(),_0x186e3c=program[_0x3eb766(0x380)](),_0x23e8a9=await createTDXInstance(_0x186e3c),_0x454bba=await _0x4ccd89[_0x3eb766(0x22a)]({'options':{..._0x186e3c,..._0x3352b9},'args':[_0x373467],'tdx':_0x23e8a9});process['exit'](_0x454bba);}),segmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x395),{'hidden':!![]})[a2_0x522ed1(0x365)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3a8),a2_0x522ed1(0x20a))['option'](a2_0x522ed1(0x207),a2_0x522ed1(0x219))[a2_0x522ed1(0x336)](a2_0x522ed1(0x1ff),a2_0x522ed1(0x271))['option'](a2_0x522ed1(0x329),a2_0x522ed1(0x382))['option'](a2_0x522ed1(0x245),a2_0x522ed1(0x2f8))['option']('--kind\x20<type>',a2_0x522ed1(0x33b))[a2_0x522ed1(0x3c6)](async(_0x295b03,_0x427706)=>{const _0x3b899f=a2_0x522ed1,_0x2e4144=new SegmentUpdateCommand(),_0xa9777c=program[_0x3b899f(0x380)](),_0x28ee9f=await createTDXInstance(_0xa9777c),_0x124305=await _0x2e4144['run']({'options':{..._0xa9777c,..._0x427706},'args':[_0x295b03],'tdx':_0x28ee9f});process[_0x3b899f(0x2ba)](_0x124305);});const parentCmd=segmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3df),{'hidden':!![]})[a2_0x522ed1(0x365)](a2_0x522ed1(0x3ef)),parentListAction=async(_0x1ca711,_0x2b4524)=>{const _0x4e01ed=a2_0x522ed1,_0x578d6c=new ParentSegmentListCommand(),_0x5f4d17=program[_0x4e01ed(0x380)](),_0x1b62d3=await createTDXInstance(_0x5f4d17),_0x54d767=await _0x578d6c[_0x4e01ed(0x22a)]({'options':{..._0x5f4d17,..._0x2b4524},'args':_0x1ca711?[_0x1ca711]:[],'tdx':_0x1b62d3});process[_0x4e01ed(0x2ba)](_0x54d767);};parentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x522ed1(0x3c6)](parentListAction),segmentCmd['command'](a2_0x522ed1(0x285),{'hidden':!![]})[a2_0x522ed1(0x365)](a2_0x522ed1(0x38b))[a2_0x522ed1(0x3c6)](parentListAction),parentCmd[a2_0x522ed1(0x39e)]('pull\x20[name]')[a2_0x522ed1(0x365)](a2_0x522ed1(0x250))['option'](a2_0x522ed1(0x384),a2_0x522ed1(0x286))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3b9),a2_0x522ed1(0x26b))[a2_0x522ed1(0x3c6)](async(_0x1ec0ea,_0x2a9c48)=>{const _0x4c5847=a2_0x522ed1,_0x4df83e=new ParentSegmentPullCommand(),_0x57d0c9=program[_0x4c5847(0x380)](),_0x227d4d=await createTDXInstance(_0x57d0c9),_0x880c23=await _0x4df83e[_0x4c5847(0x22a)]({'options':{..._0x57d0c9,..._0x2a9c48},'args':_0x1ec0ea?[_0x1ec0ea]:[],'tdx':_0x227d4d});process[_0x4c5847(0x2ba)](_0x880c23);}),parentCmd[a2_0x522ed1(0x39e)]('push\x20[file]')[a2_0x522ed1(0x365)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3b9),'Skip\x20confirmation\x20prompt')['action'](async(_0x322e7d,_0x250f9e)=>{const _0x22bb1b=a2_0x522ed1,_0x270bb2=new ParentSegmentPushCommand(),_0x4b0258=program['opts'](),_0x5ca852=await createTDXInstance(_0x4b0258),_0x2e07b0=await _0x270bb2[_0x22bb1b(0x22a)]({'options':{..._0x4b0258,..._0x250f9e},'args':_0x322e7d?[_0x322e7d]:[],'tdx':_0x5ca852});process['exit'](_0x2e07b0);}),parentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2aa))['description'](a2_0x522ed1(0x1fb))[a2_0x522ed1(0x336)](a2_0x522ed1(0x39f),'Show\x20only\x20master\x20table\x20validation')[a2_0x522ed1(0x336)](a2_0x522ed1(0x2e2),a2_0x522ed1(0x1e8))['option'](a2_0x522ed1(0x3bb),a2_0x522ed1(0x249))['option'](a2_0x522ed1(0x266),a2_0x522ed1(0x35a))[a2_0x522ed1(0x336)]('--interval\x20<range>',a2_0x522ed1(0x275),'-1d')['action'](async(_0x5a0ea9,_0x37f556)=>{const _0x2064f5=a2_0x522ed1,_0x1abf22=new ParentSegmentValidateCommand(),_0x3dd2d9=program[_0x2064f5(0x380)](),_0x37d41a=await createTDXInstance(_0x3dd2d9),_0x486e7b=await _0x1abf22[_0x2064f5(0x22a)]({'options':{..._0x3dd2d9,..._0x37f556},'args':_0x5a0ea9?[_0x5a0ea9]:[],'tdx':_0x37d41a});process[_0x2064f5(0x2ba)](_0x486e7b);}),parentCmd['command']('preview\x20[file]')[a2_0x522ed1(0x365)](a2_0x522ed1(0x2bd))['option'](a2_0x522ed1(0x39f),a2_0x522ed1(0x22d))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2e2),a2_0x522ed1(0x323))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3bb),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option']('--enriched',a2_0x522ed1(0x292))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3be),a2_0x522ed1(0x275),a2_0x522ed1(0x3b2))['action'](async(_0x24c657,_0x581d53)=>{const _0x13c398=a2_0x522ed1,_0x1e6c0e=new ParentSegmentPreviewCommand(),_0x1650db=program[_0x13c398(0x380)](),_0x40404b=await createTDXInstance(_0x1650db),_0xd26c6=await _0x1e6c0e['run']({'options':{..._0x1650db,..._0x581d53},'args':_0x24c657?[_0x24c657]:[],'tdx':_0x40404b});process[_0x13c398(0x2ba)](_0xd26c6);}),parentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x243))[a2_0x522ed1(0x365)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3b9),a2_0x522ed1(0x26b))[a2_0x522ed1(0x3c6)](async(_0x1f0db0,_0x3014a7)=>{const _0x5a9596=a2_0x522ed1,_0x2826db=new ParentSegmentRunCommand(),_0x1d0c1c=program[_0x5a9596(0x380)](),_0x51e8d1=await createTDXInstance(_0x1d0c1c),_0x2798ba=await _0x2826db[_0x5a9596(0x22a)]({'options':{..._0x1d0c1c,..._0x3014a7},'args':_0x1f0db0?[_0x1f0db0]:[],'tdx':_0x51e8d1});process[_0x5a9596(0x2ba)](_0x2798ba);});const parentSegmentCmd=program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3f8))[a2_0x522ed1(0x306)]('ps')['description'](a2_0x522ed1(0x2bb));parentSegmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)](a2_0x522ed1(0x3cf))[a2_0x522ed1(0x3c6)](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0x522ed1(0x365)](a2_0x522ed1(0x270))[a2_0x522ed1(0x336)]('-o,\x20--output\x20<file>',a2_0x522ed1(0x2b4))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3b9),a2_0x522ed1(0x26b))[a2_0x522ed1(0x336)]('-u,\x20--use',a2_0x522ed1(0x322))['action'](async(_0x2ab5f7,_0x3ef24b)=>{const _0x3f6acf=a2_0x522ed1,_0x1aa5a1=new ParentSegmentPullCommand(),_0x46f36e=program[_0x3f6acf(0x380)](),_0x19b9a5=await createTDXInstance(_0x46f36e),_0x573ae3=await _0x1aa5a1['run']({'options':{..._0x46f36e,..._0x3ef24b},'args':_0x2ab5f7?[_0x2ab5f7]:[],'tdx':_0x19b9a5});process[_0x3f6acf(0x2ba)](_0x573ae3);}),parentSegmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x235))[a2_0x522ed1(0x365)](a2_0x522ed1(0x269))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3b9),'Skip\x20confirmation\x20prompt')['action'](async(_0x5ae74b,_0x14ba4f)=>{const _0x12784c=a2_0x522ed1,_0x446789=new ParentSegmentPushCommand(),_0x1c0d3b=program['opts'](),_0x570bf0=await createTDXInstance(_0x1c0d3b),_0x9b0dd4=await _0x446789['run']({'options':{..._0x1c0d3b,..._0x14ba4f},'args':_0x5ae74b?[_0x5ae74b]:[],'tdx':_0x570bf0});process[_0x12784c(0x2ba)](_0x9b0dd4);}),parentSegmentCmd['command'](a2_0x522ed1(0x3de))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x522ed1(0x336)](a2_0x522ed1(0x39f),a2_0x522ed1(0x24b))['option'](a2_0x522ed1(0x2e2),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3bb),a2_0x522ed1(0x249))[a2_0x522ed1(0x336)](a2_0x522ed1(0x266),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')['option'](a2_0x522ed1(0x3be),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x522ed1(0x3b2))[a2_0x522ed1(0x3c6)](async(_0x8de5d4,_0x5a8830)=>{const _0x3a1694=a2_0x522ed1,_0x1b2884=new ParentSegmentValidateCommand(),_0x3394ef=program[_0x3a1694(0x380)](),_0x392216=await createTDXInstance(_0x3394ef),_0x30e7ee=await _0x1b2884[_0x3a1694(0x22a)]({'options':{..._0x3394ef,..._0x5a8830},'args':_0x8de5d4?[_0x8de5d4]:[],'tdx':_0x392216});process['exit'](_0x30e7ee);}),parentSegmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x309))['description'](a2_0x522ed1(0x2bd))[a2_0x522ed1(0x336)](a2_0x522ed1(0x39f),a2_0x522ed1(0x22d))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2e2),a2_0x522ed1(0x323))['option'](a2_0x522ed1(0x3bb),a2_0x522ed1(0x24a))[a2_0x522ed1(0x336)](a2_0x522ed1(0x266),a2_0x522ed1(0x292))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3be),a2_0x522ed1(0x275),'-1d')[a2_0x522ed1(0x3c6)](async(_0x4fb25b,_0x533311)=>{const _0x515e7c=a2_0x522ed1,_0x5125e1=new ParentSegmentPreviewCommand(),_0x36a831=program[_0x515e7c(0x380)](),_0x27528d=await createTDXInstance(_0x36a831),_0x4e761d=await _0x5125e1[_0x515e7c(0x22a)]({'options':{..._0x36a831,..._0x533311},'args':_0x4fb25b?[_0x4fb25b]:[],'tdx':_0x27528d});process[_0x515e7c(0x2ba)](_0x4e761d);}),parentSegmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x243))[a2_0x522ed1(0x365)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3b9),'Skip\x20confirmation\x20prompt')[a2_0x522ed1(0x3c6)](async(_0x51462e,_0x2eef53)=>{const _0x340210=a2_0x522ed1,_0x9d98e7=new ParentSegmentRunCommand(),_0x4994cb=program[_0x340210(0x380)](),_0x491bb1=await createTDXInstance(_0x4994cb),_0x3e6da3=await _0x9d98e7[_0x340210(0x22a)]({'options':{..._0x4994cb,..._0x2eef53},'args':_0x51462e?[_0x51462e]:[],'tdx':_0x491bb1});process['exit'](_0x3e6da3);}),parentSegmentCmd['command'](a2_0x522ed1(0x2b9))[a2_0x522ed1(0x365)](a2_0x522ed1(0x321))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3bf),a2_0x522ed1(0x1ea))['option'](a2_0x522ed1(0x333),a2_0x522ed1(0x3e6))['action'](async(_0x5db688,_0x4bccf5)=>{const _0x245e53=a2_0x522ed1,_0x5ba44a=new ParentSegmentFieldsCommand(),_0x329713=program[_0x245e53(0x380)](),_0x45cd11=await createTDXInstance(_0x329713),_0x563048=await _0x5ba44a[_0x245e53(0x22a)]({'options':{..._0x329713,..._0x4bccf5},'args':_0x5db688?[_0x5db688]:[],'tdx':_0x45cd11});process[_0x245e53(0x2ba)](_0x563048);}),parentSegmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x310))[a2_0x522ed1(0x365)](a2_0x522ed1(0x33f))['option'](a2_0x522ed1(0x375),a2_0x522ed1(0x1f7))['option'](a2_0x522ed1(0x3bf),a2_0x522ed1(0x1ea))[a2_0x522ed1(0x336)](a2_0x522ed1(0x333),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x3bab66,_0x35fee0)=>{const _0x20adb2=a2_0x522ed1,_0x16c3f2=new ParentSegmentViewCommand(),_0x1d282d=program['opts'](),_0x42ed3d=await createTDXInstance(_0x1d282d),_0x323e2d=await _0x16c3f2[_0x20adb2(0x22a)]({'options':{..._0x1d282d,..._0x35fee0},'args':_0x3bab66?[_0x3bab66]:[],'tdx':_0x42ed3d});process['exit'](_0x323e2d);}),parentSegmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x273))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2d9))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3bf),a2_0x522ed1(0x1ea))[a2_0x522ed1(0x336)](a2_0x522ed1(0x333),a2_0x522ed1(0x3e6))[a2_0x522ed1(0x3c6)](async(_0x331080,_0x3c7c51)=>{const _0x5e71b2=a2_0x522ed1,_0x5a9b1c=new ParentSegmentDescCommand(),_0x2998e3=program[_0x5e71b2(0x380)](),_0x59f7d0=await createTDXInstance(_0x2998e3),_0x4a17fa=await _0x5a9b1c[_0x5e71b2(0x22a)]({'options':{..._0x2998e3,..._0x3c7c51},'args':_0x331080?[_0x331080]:[],'tdx':_0x59f7d0});process[_0x5e71b2(0x2ba)](_0x4a17fa);}),parentSegmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x390))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2a5))['option'](a2_0x522ed1(0x3bf),a2_0x522ed1(0x1ea))[a2_0x522ed1(0x336)](a2_0x522ed1(0x333),a2_0x522ed1(0x3e6))[a2_0x522ed1(0x3c6)](async(_0x3b93b6,_0x37f230)=>{const _0x1af7fe=a2_0x522ed1,_0x206f11=new ParentSegmentSQLCommand(),_0x18bb3f=program[_0x1af7fe(0x380)](),_0x2eb636=await createTDXInstance(_0x18bb3f),_0x4d16bc=await _0x206f11[_0x1af7fe(0x22a)]({'options':{..._0x18bb3f,..._0x37f230},'args':_0x3b93b6?[_0x3b93b6]:[],'tdx':_0x2eb636});process[_0x1af7fe(0x2ba)](_0x4d16bc);}),parentSegmentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2f3))[a2_0x522ed1(0x365)](a2_0x522ed1(0x298))[a2_0x522ed1(0x336)](a2_0x522ed1(0x1e7),a2_0x522ed1(0x2a4))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3bf),a2_0x522ed1(0x1ea))[a2_0x522ed1(0x336)]('--jsonl',a2_0x522ed1(0x3e6))[a2_0x522ed1(0x3c6)](async(_0x333f04,_0x36473b)=>{const _0x340446=a2_0x522ed1,_0xd0df7c=new ParentSegmentShowCommand(),_0x477a7a=program[_0x340446(0x380)](),_0x800254=await createTDXInstance(_0x477a7a),_0x1c1881=await _0xd0df7c['run']({'options':{..._0x477a7a,..._0x36473b},'args':_0x333f04?[_0x333f04]:[],'tdx':_0x800254});process['exit'](_0x1c1881);}),parentSegmentCmd[a2_0x522ed1(0x39e)]('use\x20[name]')[a2_0x522ed1(0x365)](a2_0x522ed1(0x267))[a2_0x522ed1(0x3c6)](async(_0x2e3b1c,_0x4be64e)=>{const _0x1b7e95=a2_0x522ed1,_0x10aba1=new UseCommand(),_0x494eff=program[_0x1b7e95(0x380)](),_0x4597e8=_0x2e3b1c?[_0x1b7e95(0x36c),_0x2e3b1c]:[],_0x49c0ff=await _0x10aba1[_0x1b7e95(0x22a)]({'options':{..._0x494eff,..._0x4be64e},'args':_0x4597e8,'tdx':null});process['exit'](_0x49c0ff);}),parentCmd[a2_0x522ed1(0x39e)]('create\x20<name>')[a2_0x522ed1(0x365)](a2_0x522ed1(0x397))[a2_0x522ed1(0x312)](a2_0x522ed1(0x3ab),a2_0x522ed1(0x3d8))['requiredOption'](a2_0x522ed1(0x23f),a2_0x522ed1(0x302))[a2_0x522ed1(0x336)](a2_0x522ed1(0x207),'Parent\x20segment\x20description')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3a4),a2_0x522ed1(0x398))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2a6),a2_0x522ed1(0x2d4))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2b2),a2_0x522ed1(0x2e1))[a2_0x522ed1(0x336)]('--attributes\x20<json>',a2_0x522ed1(0x2af))[a2_0x522ed1(0x336)]('--attributes-file\x20<file>',a2_0x522ed1(0x338))[a2_0x522ed1(0x336)](a2_0x522ed1(0x342),a2_0x522ed1(0x3dc))['option']('--behaviors-file\x20<file>',a2_0x522ed1(0x25e))[a2_0x522ed1(0x336)](a2_0x522ed1(0x39c),a2_0x522ed1(0x300))[a2_0x522ed1(0x336)](a2_0x522ed1(0x378),a2_0x522ed1(0x215))[a2_0x522ed1(0x3c6)](async(_0x43939d,_0x35f35f)=>{const _0xe4bab4=a2_0x522ed1,_0x25dc6b=new ParentSegmentCreateCommand(),_0x1ea2c2=program[_0xe4bab4(0x380)](),_0x485c97=await createTDXInstance(_0x1ea2c2),_0x288ca1=await _0x25dc6b[_0xe4bab4(0x22a)]({'options':{..._0x1ea2c2,..._0x35f35f},'args':[_0x43939d],'tdx':_0x485c97});process[_0xe4bab4(0x2ba)](_0x288ca1);}),parentCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x1fc))[a2_0x522ed1(0x365)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x522ed1(0x336)]('--description\x20<text>',a2_0x522ed1(0x219))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3a4),a2_0x522ed1(0x383))[a2_0x522ed1(0x336)]('--schedule-option\x20<value>',a2_0x522ed1(0x2ab))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2b2),a2_0x522ed1(0x223))['option'](a2_0x522ed1(0x2d5),a2_0x522ed1(0x3e5))[a2_0x522ed1(0x336)]('--add-attributes-file\x20<file>',a2_0x522ed1(0x345))[a2_0x522ed1(0x336)](a2_0x522ed1(0x35f),'Add\x20behaviors\x20as\x20JSON\x20string')[a2_0x522ed1(0x336)]('--add-behaviors-file\x20<file>',a2_0x522ed1(0x30d))[a2_0x522ed1(0x3c6)](async(_0x5eeed2,_0x187816)=>{const _0xbbac6e=a2_0x522ed1,_0x364e51=new ParentSegmentUpdateCommand(),_0x2da22a=program[_0xbbac6e(0x380)](),_0x49ba09=await createTDXInstance(_0x2da22a),_0x37637a=await _0x364e51[_0xbbac6e(0x22a)]({'options':{..._0x2da22a,..._0x187816},'args':[_0x5eeed2],'tdx':_0x49ba09});process[_0xbbac6e(0x2ba)](_0x37637a);}),folderCmd['command']('create\x20<parent_name>\x20<folder_name>')[a2_0x522ed1(0x365)](a2_0x522ed1(0x32c))[a2_0x522ed1(0x336)]('--description\x20<text>',a2_0x522ed1(0x308))[a2_0x522ed1(0x336)](a2_0x522ed1(0x305),a2_0x522ed1(0x2fa))[a2_0x522ed1(0x3c6)](async(_0x151a56,_0x1e8e78,_0x50d5f6)=>{const _0x48819b=a2_0x522ed1,_0x487b1c=new SegmentFolderCreateCommand(),_0x27c0ce=program[_0x48819b(0x380)](),_0x37c104=await createTDXInstance(_0x27c0ce),_0x507950=await _0x487b1c[_0x48819b(0x22a)]({'options':{..._0x27c0ce,..._0x50d5f6},'args':[_0x151a56,_0x1e8e78],'tdx':_0x37c104});process[_0x48819b(0x2ba)](_0x507950);}),program[a2_0x522ed1(0x39e)]('activations\x20<segment_name>')[a2_0x522ed1(0x365)](a2_0x522ed1(0x1f0))[a2_0x522ed1(0x3c6)](async(_0x3145bf,_0x54008b)=>{const _0x57e83d=a2_0x522ed1,_0x1b5ab7=new ActivationsCommand(),_0xf34504=program['opts'](),_0x331e2d=await createTDXInstance(_0xf34504),_0x4e4e1d=await _0x1b5ab7[_0x57e83d(0x22a)]({'options':{..._0xf34504,..._0x54008b},'args':[_0x3145bf],'tdx':_0x331e2d});process[_0x57e83d(0x2ba)](_0x4e4e1d);});const workflowCmd=program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x405))[a2_0x522ed1(0x306)]('wf')[a2_0x522ed1(0x365)](a2_0x522ed1(0x396)),wfProjectCmd=workflowCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3ee))[a2_0x522ed1(0x365)](a2_0x522ed1(0x353)),wfProjectListAction=async(_0x2f13ca,_0x4b192c)=>{const _0x32763d=a2_0x522ed1,_0x158b30=new WorkflowProjectsCommand(),_0x44ba8d=program[_0x32763d(0x380)](),_0x22c06b=await createTDXInstance(_0x44ba8d),_0x182c41=await _0x158b30[_0x32763d(0x22a)]({'options':{..._0x44ba8d,..._0x4b192c},'args':_0x2f13ca?[_0x2f13ca]:[],'tdx':_0x22c06b});process['exit'](_0x182c41);};wfProjectCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](wfProjectListAction),workflowCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x334))['description'](a2_0x522ed1(0x2c2))[a2_0x522ed1(0x3c6)](wfProjectListAction);const wfWorkflowListAction=async(_0x5f50d4,_0x251a1b)=>{const _0x5dec1f=a2_0x522ed1,_0x35d31c=new WorkflowWorkflowsCommand(),_0x2f9ef6=program[_0x5dec1f(0x380)](),_0x6b5f33=await createTDXInstance(_0x2f9ef6),_0x2fcaef=await _0x35d31c['run']({'options':{..._0x2f9ef6,..._0x251a1b},'args':_0x5f50d4?[_0x5f50d4]:[],'tdx':_0x6b5f33});process['exit'](_0x2fcaef);};workflowCmd['command'](a2_0x522ed1(0x355))[a2_0x522ed1(0x365)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x522ed1(0x3c6)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command']('session')[a2_0x522ed1(0x365)](a2_0x522ed1(0x3ad)),wfSessionListAction=async(_0x56184e,_0xe5e36)=>{const _0x1fbe49=a2_0x522ed1,_0x1de102=new WorkflowSessionsCommand(),_0x1259e9=program[_0x1fbe49(0x380)](),_0x2fc415=await createTDXInstance(_0x1259e9),_0x210fa3=await _0x1de102[_0x1fbe49(0x22a)]({'options':{..._0x1259e9,..._0xe5e36},'args':_0x56184e?[_0x56184e]:[],'tdx':_0x2fc415});process['exit'](_0x210fa3);};wfSessionCmd[a2_0x522ed1(0x39e)]('list\x20[project]')[a2_0x522ed1(0x365)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x379),a2_0x522ed1(0x23e))[a2_0x522ed1(0x336)](a2_0x522ed1(0x1fa),a2_0x522ed1(0x3f4))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3ba),a2_0x522ed1(0x264))[a2_0x522ed1(0x3c6)](wfSessionListAction),workflowCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x374))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2b6))[a2_0x522ed1(0x336)]('--status\x20<status>',a2_0x522ed1(0x23e))[a2_0x522ed1(0x336)](a2_0x522ed1(0x1fa),a2_0x522ed1(0x3f4))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3ba),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x522ed1(0x3c6)](wfSessionListAction);const wfAttemptListAction=async(_0x1eec35,_0x3e5740)=>{const _0x5293c2=a2_0x522ed1,_0x596f16=new WorkflowAttemptsCommand(),_0x1d2d45=program['opts'](),_0x3a5fc2=await createTDXInstance(_0x1d2d45),_0x3e0f50=await _0x596f16['run']({'options':{..._0x1d2d45,..._0x3e5740},'args':_0x1eec35?[_0x1eec35]:[],'tdx':_0x3a5fc2});process[_0x5293c2(0x2ba)](_0x3e0f50);},attemptCmd=workflowCmd['command'](a2_0x522ed1(0x1f9))[a2_0x522ed1(0x365)](a2_0x522ed1(0x1db))[a2_0x522ed1(0x28b)](a2_0x522ed1(0x3a6),a2_0x522ed1(0x3b3))[a2_0x522ed1(0x28b)]('[action]',a2_0x522ed1(0x210))[a2_0x522ed1(0x28b)](a2_0x522ed1(0x259),'Task\x20name\x20for\x20logs\x20action')[a2_0x522ed1(0x336)]('--include-subtasks',a2_0x522ed1(0x234))[a2_0x522ed1(0x336)]('--reason\x20<text>',a2_0x522ed1(0x38d))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3cc),a2_0x522ed1(0x268))[a2_0x522ed1(0x336)](a2_0x522ed1(0x40a),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x522ed1(0x393),a2_0x522ed1(0x200))[a2_0x522ed1(0x336)](a2_0x522ed1(0x278),a2_0x522ed1(0x3b1))[a2_0x522ed1(0x3c6)](async(_0x4185ab,_0x13c938,_0x4919df,_0x5f38ed)=>{const _0xb8f57e=a2_0x522ed1;if(_0x4185ab===_0xb8f57e(0x337)){await wfAttemptListAction(_0x13c938,_0x5f38ed);return;}if(!_0x4185ab){attemptCmd[_0xb8f57e(0x277)]();return;}const _0x2294ef=program[_0xb8f57e(0x380)](),_0xd03d8d=await createTDXInstance(_0x2294ef);let _0x20dcc6=0x0;if(!_0x13c938){const _0xaaf24b=new WorkflowAttemptCommand();_0x20dcc6=await _0xaaf24b['run']({'options':{..._0x2294ef,..._0x5f38ed},'args':[_0x4185ab],'tdx':_0xd03d8d});}else{if(_0x13c938===_0xb8f57e(0x39d)){const _0x43a280=new WorkflowLogsCommand();_0x20dcc6=await _0x43a280[_0xb8f57e(0x22a)]({'options':{..._0x2294ef,..._0x5f38ed},'args':_0x4919df?[_0x4185ab,_0x4919df]:[_0x4185ab],'tdx':_0xd03d8d});}else{if(_0x13c938==='tasks'){const _0x8d9eef=new WorkflowTasksCommand();_0x20dcc6=await _0x8d9eef[_0xb8f57e(0x22a)]({'options':{..._0x2294ef,..._0x5f38ed},'args':[_0x4185ab],'tdx':_0xd03d8d});}else{if(_0x13c938===_0xb8f57e(0x31d)){const _0x11d2a6=new WorkflowKillCommand();_0x20dcc6=await _0x11d2a6[_0xb8f57e(0x22a)]({'options':{..._0x2294ef,..._0x5f38ed},'args':[_0x4185ab],'tdx':_0xd03d8d});}else{if(_0x13c938==='retry'){const _0x1a7ab3=new WorkflowRetryCommand();_0x20dcc6=await _0x1a7ab3[_0xb8f57e(0x22a)]({'options':{..._0x2294ef,..._0x5f38ed},'args':['attempt:'+_0x4185ab],'tdx':_0xd03d8d});}else console['error']('Unknown\x20action:\x20'+_0x13c938),console[_0xb8f57e(0x24e)](_0xb8f57e(0x325)),_0x20dcc6=0x1;}}}}process[_0xb8f57e(0x2ba)](_0x20dcc6);});attemptCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x363))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2dd))['option'](a2_0x522ed1(0x278),a2_0x522ed1(0x2e0))['action'](wfAttemptListAction),workflowCmd[a2_0x522ed1(0x39e)]('attempts\x20[project]')[a2_0x522ed1(0x365)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x278),'Include\x20retried\x20attempts')[a2_0x522ed1(0x3c6)](wfAttemptListAction),workflowCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x30f))[a2_0x522ed1(0x365)](a2_0x522ed1(0x228))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2e6),a2_0x522ed1(0x2d7))[a2_0x522ed1(0x336)](a2_0x522ed1(0x40a),a2_0x522ed1(0x33a))[a2_0x522ed1(0x3c6)](async(_0x390cad,_0x56e389)=>{const _0xe79d3f=a2_0x522ed1,_0x498b46=new WorkflowRetryCommand(),_0x278931=program[_0xe79d3f(0x380)](),_0x413156=await createTDXInstance(_0x278931),_0x298c0c=await _0x498b46[_0xe79d3f(0x22a)]({'options':{..._0x278931,..._0x56e389},'args':[_0x390cad],'tdx':_0x413156});process[_0xe79d3f(0x2ba)](_0x298c0c);}),workflowCmd['command'](a2_0x522ed1(0x344))[a2_0x522ed1(0x365)](a2_0x522ed1(0x350))['option'](a2_0x522ed1(0x36e),'Workflow\x20parameter\x20(repeatable)',(_0x5dcfd6,_0x130f56=[])=>[..._0x130f56,_0x5dcfd6],[])[a2_0x522ed1(0x336)]('--session-time\x20<time>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')['action'](async(_0x103ab6,_0xb6b910)=>{const _0x222672=a2_0x522ed1,_0x8e3678=new WorkflowRunCommand(),_0x39c589=program[_0x222672(0x380)](),_0x33499c=await createTDXInstance(_0x39c589),_0x397173=await _0x8e3678[_0x222672(0x22a)]({'options':{..._0x39c589,..._0xb6b910},'args':[_0x103ab6],'tdx':_0x33499c});process[_0x222672(0x2ba)](_0x397173);}),workflowCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2dc))['description'](a2_0x522ed1(0x242))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2d8),a2_0x522ed1(0x369))[a2_0x522ed1(0x3c6)](async(_0x2aa61d,_0x553169,_0x15324b)=>{const _0x3db1b4=a2_0x522ed1,_0xc3f0d7=new WorkflowDownloadCommand(),_0x596413=program[_0x3db1b4(0x380)](),_0x5c1298=await createTDXInstance(_0x596413),_0x48a03a=await _0xc3f0d7[_0x3db1b4(0x22a)]({'options':{..._0x596413,..._0x15324b},'args':[_0x2aa61d,_0x553169||'.'],'tdx':_0x5c1298});process[_0x3db1b4(0x2ba)](_0x48a03a);}),workflowCmd['command'](a2_0x522ed1(0x2ec))[a2_0x522ed1(0x365)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x522ed1(0x336)]('--name\x20<name>',a2_0x522ed1(0x2e9))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2d8),a2_0x522ed1(0x370))['option'](a2_0x522ed1(0x30e),a2_0x522ed1(0x37d))['action'](async(_0x40a125,_0x2a944e)=>{const _0x57ae74=a2_0x522ed1,_0x277ec9=new WorkflowPushCommand(),_0x18204b=program[_0x57ae74(0x380)](),_0x14df70=await createTDXInstance(_0x18204b),_0x14ad10=await _0x277ec9[_0x57ae74(0x22a)]({'options':{..._0x18204b,..._0x2a944e},'args':_0x40a125?[_0x40a125]:[],'tdx':_0x14df70});process['exit'](_0x14ad10);}),workflowCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x360))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')['action'](async(_0x1cf2e8,_0x4d0c98)=>{const _0x13465d=a2_0x522ed1,_0x4cb671=new WorkflowDeleteCommand(),_0x18891=program[_0x13465d(0x380)](),_0x8a1b4=await createTDXInstance(_0x18891),_0x1644f8=await _0x4cb671[_0x13465d(0x22a)]({'options':{..._0x18891,..._0x4d0c98},'args':[_0x1cf2e8],'tdx':_0x8a1b4});process['exit'](_0x1644f8);});const jobCmd=program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3d3))[a2_0x522ed1(0x365)](a2_0x522ed1(0x387)),jobListAction=async _0x3690ec=>{const _0x1a6e8b=a2_0x522ed1,_0x2f4f1c=new JobListCommand(),_0x39c5c5=program['opts'](),_0x44f17a=await createTDXInstance(_0x39c5c5),_0x51778f=await _0x2f4f1c[_0x1a6e8b(0x22a)]({'options':{..._0x39c5c5,..._0x3690ec},'args':[],'tdx':_0x44f17a});process['exit'](_0x51778f);};jobCmd['command'](a2_0x522ed1(0x337))['description'](a2_0x522ed1(0x2b7))[a2_0x522ed1(0x336)](a2_0x522ed1(0x379),a2_0x522ed1(0x2f9))['action'](jobListAction),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2ac),{'hidden':!![]})['description'](a2_0x522ed1(0x2b0))[a2_0x522ed1(0x336)]('--status\x20<status>',a2_0x522ed1(0x2f9))[a2_0x522ed1(0x3c6)](jobListAction),jobCmd['command'](a2_0x522ed1(0x31c))['description'](a2_0x522ed1(0x403))[a2_0x522ed1(0x3c6)](async(_0x56542e,_0x154d29)=>{const _0x5f2236=a2_0x522ed1,_0x5a285d=new JobShowCommand(),_0xde610=program[_0x5f2236(0x380)](),_0x974863=await createTDXInstance(_0xde610),_0x1a9c66=await _0x5a285d['run']({'options':{..._0xde610,..._0x154d29},'args':[_0x56542e],'tdx':_0x974863});process[_0x5f2236(0x2ba)](_0x1a9c66);}),jobCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x280))[a2_0x522ed1(0x365)](a2_0x522ed1(0x21a))[a2_0x522ed1(0x3c6)](async(_0x5c9011,_0x4a2980)=>{const _0x121aa6=a2_0x522ed1,_0x3c301d=new JobKillCommand(),_0x7d7d73=program[_0x121aa6(0x380)](),_0xb15991=await createTDXInstance(_0x7d7d73),_0x4c525a=await _0x3c301d[_0x121aa6(0x22a)]({'options':{..._0x7d7d73,..._0x4a2980},'args':[_0x5c9011],'tdx':_0xb15991});process[_0x121aa6(0x2ba)](_0x4c525a);}),jobCmd['command'](a2_0x522ed1(0x2f0))[a2_0x522ed1(0x365)](a2_0x522ed1(0x304))[a2_0x522ed1(0x336)](a2_0x522ed1(0x247),a2_0x522ed1(0x3c1),a2_0x522ed1(0x3e2))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3f2),'Read\x20query\x20from\x20file')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3fa),a2_0x522ed1(0x22c),'information_schema')[a2_0x522ed1(0x3c6)](async(_0x48da1e,_0x57d063)=>{const _0x540248=a2_0x522ed1,_0x461a10=new JobSubmitCommand(),_0x5dca7d=program[_0x540248(0x380)](),_0x7dd3ca=await createTDXInstance(_0x5dca7d),_0x32aef9=await _0x461a10[_0x540248(0x22a)]({'options':{..._0x5dca7d,..._0x57d063},'args':_0x48da1e?[_0x48da1e]:[],'tdx':_0x7dd3ca});process[_0x540248(0x2ba)](_0x32aef9);}),jobCmd['command']('result\x20<job-id>')[a2_0x522ed1(0x365)](a2_0x522ed1(0x318))[a2_0x522ed1(0x3c6)](async(_0x2fe87c,_0x131f68)=>{const _0x506145=a2_0x522ed1,_0x3897a3=new JobResultCommand(),_0x2209ac=program['opts'](),_0x41c5f1=await createTDXInstance(_0x2209ac),_0x1c96a1=await _0x3897a3['run']({'options':{..._0x2209ac,..._0x131f68},'args':[_0x2fe87c],'tdx':_0x41c5f1});process[_0x506145(0x2ba)](_0x1c96a1);});const llmCmd=program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x206))[a2_0x522ed1(0x365)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x522ed1(0x39e)]('use\x20<project-name>')['description'](a2_0x522ed1(0x26a))[a2_0x522ed1(0x3c6)](async(_0x1bd354,_0x26a256)=>{const _0x310dae=a2_0x522ed1,_0x1fc91e=new LLMUseCommand(),_0x5f31e3=program[_0x310dae(0x380)](),_0x2b948e=await createTDXInstance(_0x5f31e3),_0x3df2fe=await _0x1fc91e[_0x310dae(0x22a)]({'options':{..._0x5f31e3,..._0x26a256},'args':[_0x1bd354],'tdx':_0x2b948e});process[_0x310dae(0x2ba)](_0x3df2fe);}),llmCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x31b))[a2_0x522ed1(0x365)](a2_0x522ed1(0x26e))[a2_0x522ed1(0x3c6)](async _0x995ab8=>{const _0x34c7fb=a2_0x522ed1,_0x22be9f=new LLMModelsCommand(),_0x3c4d5c=program[_0x34c7fb(0x380)](),_0xb489ca=await createTDXInstance(_0x3c4d5c),_0x32311d=await _0x22be9f[_0x34c7fb(0x22a)]({'options':{..._0x3c4d5c,..._0x995ab8},'args':[],'tdx':_0xb489ca});process[_0x34c7fb(0x2ba)](_0x32311d);});const projectCmd=llmCmd[a2_0x522ed1(0x39e)]('project')[a2_0x522ed1(0x365)](a2_0x522ed1(0x2f5)),llmProjectListAction=async(_0x56f531,_0x2f693a)=>{const _0x4a2053=a2_0x522ed1,_0x15e33a=new LLMProjectsCommand(),_0x2bb21b=program['opts'](),_0x450979=await createTDXInstance(_0x2bb21b),_0x55cc0e=await _0x15e33a[_0x4a2053(0x22a)]({'options':{..._0x2bb21b,..._0x2f693a},'args':_0x56f531?[_0x56f531]:[],'tdx':_0x450979});process[_0x4a2053(0x2ba)](_0x55cc0e);};projectCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)](a2_0x522ed1(0x303))['option'](a2_0x522ed1(0x375),a2_0x522ed1(0x376))['action'](llmProjectListAction),llmCmd['command']('projects\x20[pattern]')[a2_0x522ed1(0x365)](a2_0x522ed1(0x3ce))[a2_0x522ed1(0x336)](a2_0x522ed1(0x375),a2_0x522ed1(0x376))[a2_0x522ed1(0x3c6)](llmProjectListAction),projectCmd['command'](a2_0x522ed1(0x2da))[a2_0x522ed1(0x365)](a2_0x522ed1(0x32b))['option'](a2_0x522ed1(0x207),a2_0x522ed1(0x3f9))[a2_0x522ed1(0x3c6)](async(_0x2a2901,_0x20ba07)=>{const _0x4eec7b=a2_0x522ed1,_0x3fecb8=new LLMProjectCreateCommand(),_0x40db18=program[_0x4eec7b(0x380)](),_0x2eba76=await createTDXInstance(_0x40db18),_0x49f0b8=await _0x3fecb8[_0x4eec7b(0x22a)]({'options':{..._0x40db18,..._0x20ba07},'args':[_0x2a2901],'tdx':_0x2eba76});process[_0x4eec7b(0x2ba)](_0x49f0b8);}),projectCmd['command']('delete\x20<name>')[a2_0x522ed1(0x365)]('Delete\x20an\x20LLM\x20project')['action'](async(_0x9947a,_0x1d9ad4)=>{const _0x4a0174=a2_0x522ed1,_0x1c0a4e=new LLMProjectDeleteCommand(),_0x16f2ae=program[_0x4a0174(0x380)](),_0xfbf99d=await createTDXInstance(_0x16f2ae),_0x1de2be=await _0x1c0a4e[_0x4a0174(0x22a)]({'options':{..._0x16f2ae,..._0x1d9ad4},'args':[_0x9947a],'tdx':_0xfbf99d});process['exit'](_0x1de2be);}),projectCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x352))['description']('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x522ed1(0x336)]('-o,\x20--output\x20<folder>',a2_0x522ed1(0x274))[a2_0x522ed1(0x336)]('--dry-run','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')['action'](async(_0x581d62,_0x457715)=>{const _0x400e0f=a2_0x522ed1,_0x2d93b1=new LLMProjectBackupCommand(),_0x2ec8e5=program[_0x400e0f(0x380)](),_0x18fa98=await createTDXInstance(_0x2ec8e5),_0x1db7e9=await _0x2d93b1[_0x400e0f(0x22a)]({'options':{..._0x2ec8e5,..._0x457715},'args':[_0x581d62],'tdx':_0x18fa98});process[_0x400e0f(0x2ba)](_0x1db7e9);}),projectCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x21b))['description'](a2_0x522ed1(0x346))[a2_0x522ed1(0x336)](a2_0x522ed1(0x385),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x522ed1(0x336)]('--dry-run',a2_0x522ed1(0x2ad))[a2_0x522ed1(0x3c6)](async(_0x4a2c20,_0x2a165c)=>{const _0x4da28c=a2_0x522ed1,_0x3f662c=new LLMProjectRestoreCommand(),_0x27dfb3=program[_0x4da28c(0x380)](),_0x17b2e5=await createTDXInstance(_0x27dfb3),_0x222bca=await _0x3f662c[_0x4da28c(0x22a)]({'options':{..._0x27dfb3,..._0x2a165c},'args':[_0x4a2c20],'tdx':_0x17b2e5});process[_0x4da28c(0x2ba)](_0x222bca);});const llmAgentListAction=async(_0x49f37d,_0x16a972)=>{const _0x3ee860=a2_0x522ed1,_0x12b5a1=new LLMAgentsCommand(),_0x25f107=program[_0x3ee860(0x380)](),_0x2dc981=await createTDXInstance(_0x25f107),_0x3354b3=await _0x12b5a1[_0x3ee860(0x22a)]({'options':{..._0x25f107,..._0x16a972},'args':_0x49f37d?[_0x49f37d]:[],'tdx':_0x2dc981});process[_0x3ee860(0x2ba)](_0x3354b3);};llmCmd['command'](a2_0x522ed1(0x2d3))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')['option'](a2_0x522ed1(0x375),a2_0x522ed1(0x341))[a2_0x522ed1(0x3c6)](llmAgentListAction),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2d3))[a2_0x522ed1(0x365)](a2_0x522ed1(0x3cb))['option']('-w,\x20--web',a2_0x522ed1(0x341))['action'](llmAgentListAction),llmCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2c5))[a2_0x522ed1(0x365)](a2_0x522ed1(0x27c))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2d1),a2_0x522ed1(0x1f8))[a2_0x522ed1(0x3c6)](async(_0x486064,_0x46e8ea)=>{const _0x40acd7=a2_0x522ed1,_0x2a6bbc=new LLMHistoryCommand(),_0x4d6f58=program[_0x40acd7(0x380)](),_0x26ea49=await createTDXInstance(_0x4d6f58),_0x5bb05d=await _0x2a6bbc[_0x40acd7(0x22a)]({'options':{..._0x4d6f58,..._0x46e8ea},'args':_0x486064?[_0x486064]:[],'tdx':_0x26ea49});process[_0x40acd7(0x2ba)](_0x5bb05d);}),llmCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x404))[a2_0x522ed1(0x365)](a2_0x522ed1(0x1e1))[a2_0x522ed1(0x336)]('--port\x20<number>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x522ed1(0x2cd))['option'](a2_0x522ed1(0x297),a2_0x522ed1(0x2f7))['option']('--agent\x20<name>','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x522ed1(0x3c6)](async _0x30bdca=>{const _0x10f7aa=a2_0x522ed1,_0x29dc2a=new LLMProxyCommand(),_0x162489=program[_0x10f7aa(0x380)](),_0xa9c7ba=await createTDXInstance(_0x162489),_0xdabe63={..._0x30bdca,'port':_0x30bdca[_0x10f7aa(0x29f)]?parseInt(_0x30bdca[_0x10f7aa(0x29f)],0xa):undefined},_0x11fd44=await _0x29dc2a[_0x10f7aa(0x22a)]({'options':{..._0x162489,..._0xdabe63},'args':[],'tdx':_0xa9c7ba});process[_0x10f7aa(0x2ba)](_0x11fd44);}),program['command'](a2_0x522ed1(0x27f))[a2_0x522ed1(0x3ec)](a2_0x522ed1(0x212))[a2_0x522ed1(0x365)](a2_0x522ed1(0x3a7))['option']('--model\x20<name>',a2_0x522ed1(0x251),a2_0x522ed1(0x272))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2c9),a2_0x522ed1(0x386))[a2_0x522ed1(0x336)]('-r,\x20--resume',a2_0x522ed1(0x289))['option'](a2_0x522ed1(0x347),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x522ed1(0x23a)]()[a2_0x522ed1(0x34b)](!![])[a2_0x522ed1(0x238)](a2_0x522ed1(0x29e),'\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')[a2_0x522ed1(0x3c6)](async(_0x374743,_0x179940)=>{const _0x4cc00f=a2_0x522ed1,_0x1073e7=program['opts'](),_0x2f22fe=Array[_0x4cc00f(0x2bf)](_0x374743)?_0x374743:[];if(_0x2f22fe[0x0]===_0x4cc00f(0x38f)){const _0x489587=new ClaudeStatuslineCommand(),_0x1ef5f7=await _0x489587[_0x4cc00f(0x22a)]({'options':{..._0x1073e7,..._0x179940},'args':_0x2f22fe[_0x4cc00f(0x221)](0x1),'tdx':null});process[_0x4cc00f(0x2ba)](_0x1ef5f7);}if(_0x2f22fe[0x0]===_0x4cc00f(0x3ec)){const _0x163b62=new ClaudeUsageCommand(),_0x35b7d5=await _0x163b62[_0x4cc00f(0x22a)]({'options':{..._0x1073e7,..._0x179940},'args':_0x2f22fe[_0x4cc00f(0x221)](0x1),'tdx':null});process[_0x4cc00f(0x2ba)](_0x35b7d5);}const _0x4a153b=new ClaudeCommand(),_0x1044ed=await createTDXInstance(_0x1073e7),_0x1017db=await _0x4a153b[_0x4cc00f(0x22a)]({'options':{..._0x1073e7,..._0x179940},'args':_0x2f22fe,'tdx':_0x1044ed});process['exit'](_0x1017db);}),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x34f))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2ca))[a2_0x522ed1(0x336)](a2_0x522ed1(0x368),'Clear\x20session\x20context')['action'](async _0xa599e3=>{const _0x128e1c=a2_0x522ed1,_0x19ff1c=new ContextCommand(),_0xdcd59a=program[_0x128e1c(0x380)](),_0x434c55=await _0x19ff1c['run']({'options':{..._0xdcd59a,..._0xa599e3},'args':[],'tdx':null});process['exit'](_0x434c55);}),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x254))[a2_0x522ed1(0x365)](a2_0x522ed1(0x3c5))[a2_0x522ed1(0x336)](a2_0x522ed1(0x368),a2_0x522ed1(0x315))[a2_0x522ed1(0x3c6)](async(_0x3ac805,_0x1fb785,_0x3380a4)=>{const _0x2954ed=a2_0x522ed1,_0x36a185=new UseCommand(),_0x49bfac=program[_0x2954ed(0x380)](),_0x24de3d=[];if(_0x3ac805)_0x24de3d[_0x2954ed(0x2f1)](_0x3ac805);if(_0x1fb785)_0x24de3d[_0x2954ed(0x2f1)](_0x1fb785);const _0x1b437b=await _0x36a185[_0x2954ed(0x22a)]({'options':{..._0x49bfac,..._0x3380a4},'args':_0x24de3d,'tdx':null});process[_0x2954ed(0x2ba)](_0x1b437b);}),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x335))[a2_0x522ed1(0x365)](a2_0x522ed1(0x1dd))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2d1),'Show\x20the\x20most\x20recent\x20chat')['action'](async _0x1a4149=>{const _0x1a9bc6=a2_0x522ed1,_0x6b6427=new ChatsCommand(),_0x3b8338=program[_0x1a9bc6(0x380)](),_0x102961=await createTDXInstance(_0x3b8338),_0xbe5acb=await _0x6b6427[_0x1a9bc6(0x22a)]({'options':{..._0x3b8338,..._0x1a4149},'args':[],'tdx':_0x102961});process[_0x1a9bc6(0x2ba)](_0xbe5acb);});const authCmd=program['command'](a2_0x522ed1(0x307))[a2_0x522ed1(0x365)](a2_0x522ed1(0x1df));async function runAuthStatusCommand(_0x1628b3){const _0x29cb4e=a2_0x522ed1,_0x29c3dc=new AuthStatusCommand(),_0x54dfc6=program[_0x29cb4e(0x380)](),_0x566bc1=await createTDXInstance(_0x54dfc6),_0x516b0d=await _0x29c3dc[_0x29cb4e(0x22a)]({'options':{..._0x54dfc6,..._0x1628b3},'args':[],'tdx':_0x566bc1});process[_0x29cb4e(0x2ba)](_0x516b0d);}authCmd[a2_0x522ed1(0x3c6)](runAuthStatusCommand),authCmd['command'](a2_0x522ed1(0x37b))['description'](a2_0x522ed1(0x31e))[a2_0x522ed1(0x3c6)](runAuthStatusCommand),authCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2db))[a2_0x522ed1(0x365)](a2_0x522ed1(0x246))[a2_0x522ed1(0x238)](a2_0x522ed1(0x29e),a2_0x522ed1(0x25c))[a2_0x522ed1(0x3c6)](async _0x2a2de5=>{const _0x525023=a2_0x522ed1,_0x2a0e39=new AuthSetupCommand(),_0x4ceb5c=program[_0x525023(0x380)](),_0x5b096c=await createTDXInstance(_0x4ceb5c),_0x1f2c86=await _0x2a0e39[_0x525023(0x22a)]({'options':{..._0x4ceb5c,..._0x2a2de5},'args':[],'tdx':_0x5b096c});process[_0x525023(0x2ba)](_0x1f2c86);}),authCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x287))['description']('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x522ed1(0x238)]('after','\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_0x522ed1(0x3c6)](async _0x5a1b75=>{const _0x491d7e=a2_0x522ed1,_0x1cf94f=new AuthClearCommand(),_0x2efe1d=program['opts'](),_0xf94d4d=await _0x1cf94f[_0x491d7e(0x22a)]({'options':{..._0x2efe1d,..._0x5a1b75},'args':[],'tdx':null});process[_0x491d7e(0x2ba)](_0xf94d4d);});const userCmd=program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2e8))[a2_0x522ed1(0x365)]('User\x20management\x20commands'),userListAction=async _0x33a9a2=>{const _0xd5984f=a2_0x522ed1,_0x44c876=new UserListCommand(),_0x30bb37=program[_0xd5984f(0x380)](),_0x522a03=await createTDXInstance(_0x30bb37),_0xbcb7f0=await _0x44c876[_0xd5984f(0x22a)]({'options':{..._0x30bb37,..._0x33a9a2},'args':[],'tdx':_0x522a03});process[_0xd5984f(0x2ba)](_0xbcb7f0);};userCmd[a2_0x522ed1(0x3c6)](async _0x447ac2=>{const _0x329246=new UserCommand(),_0x583794=program['opts'](),_0x205d7a=await createTDXInstance(_0x583794),_0x2db884=await _0x329246['run']({'options':{..._0x583794,..._0x447ac2},'args':[],'tdx':_0x205d7a});process['exit'](_0x2db884);}),userCmd['command'](a2_0x522ed1(0x337))[a2_0x522ed1(0x365)](a2_0x522ed1(0x24f))[a2_0x522ed1(0x3c6)](userListAction),program['command'](a2_0x522ed1(0x2eb))[a2_0x522ed1(0x365)](a2_0x522ed1(0x359))[a2_0x522ed1(0x3c6)](userListAction),program[a2_0x522ed1(0x39e)]('profiles')[a2_0x522ed1(0x365)](a2_0x522ed1(0x2ef))[a2_0x522ed1(0x3c6)](async _0x54e6db=>{const _0x21e547=a2_0x522ed1,_0x3aede5=new ProfilesCommand(),_0x591fa5=program[_0x21e547(0x380)](),_0x47cfd2=await _0x3aede5['run']({'options':{..._0x591fa5,..._0x54e6db},'args':[],'tdx':null});process[_0x21e547(0x2ba)](_0x47cfd2);});const engageCmd=program[a2_0x522ed1(0x39e)]('engage')[a2_0x522ed1(0x365)](a2_0x522ed1(0x1ed)),createEngageAction=_0x2b7106=>{return async(_0x3034e1,_0x56f8a6)=>{const _0xb37d63=a2_0x3fa4,_0x311388=new _0x2b7106(),_0x418702=program[_0xb37d63(0x380)](),_0x38b8dd=await createTDXInstance(_0x418702),_0x138ef1=await _0x311388['run']({'options':{..._0x418702,..._0x56f8a6},'args':[_0x3034e1],'tdx':_0x38b8dd});process[_0xb37d63(0x2ba)](_0x138ef1);};},createEngageNoArgAction=_0x1ba043=>{return async _0x125dcb=>{const _0x1bdd0c=a2_0x3fa4,_0x47d02e=new _0x1ba043(),_0x29a380=program[_0x1bdd0c(0x380)](),_0x213f2c=await createTDXInstance(_0x29a380),_0x76ce16=await _0x47d02e[_0x1bdd0c(0x22a)]({'options':{..._0x29a380,..._0x125dcb},'args':[],'tdx':_0x213f2c});process['exit'](_0x76ce16);};},campaignCmd=engageCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x258))[a2_0x522ed1(0x365)](a2_0x522ed1(0x28c)),campaignListAction=async(_0x43acf8,_0x300724)=>{const _0x574a73=a2_0x522ed1,_0x49337c=new EngageCampaignsCommand(),_0xf0acb=program['opts'](),_0x48ff57=await createTDXInstance(_0xf0acb),_0x1a244b=await _0x49337c[_0x574a73(0x22a)]({'options':{..._0xf0acb,..._0x300724},'args':_0x43acf8?[_0x43acf8]:[],'tdx':_0x48ff57});process[_0x574a73(0x2ba)](_0x1a244b);};campaignCmd['command'](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x279),a2_0x522ed1(0x1dc))[a2_0x522ed1(0x336)](a2_0x522ed1(0x379),a2_0x522ed1(0x1de))[a2_0x522ed1(0x336)]('--workspace\x20<name>',a2_0x522ed1(0x328))[a2_0x522ed1(0x3c6)](campaignListAction),engageCmd['command'](a2_0x522ed1(0x217))[a2_0x522ed1(0x365)](a2_0x522ed1(0x21e))['option'](a2_0x522ed1(0x279),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x379),a2_0x522ed1(0x1de))['option'](a2_0x522ed1(0x40b),'Workspace\x20name')['action'](campaignListAction),campaignCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x34d))[a2_0x522ed1(0x365)](a2_0x522ed1(0x208))['option'](a2_0x522ed1(0x40b),a2_0x522ed1(0x328))[a2_0x522ed1(0x336)](a2_0x522ed1(0x237),a2_0x522ed1(0x290))[a2_0x522ed1(0x3c6)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x522ed1(0x39e)]('create')['description'](a2_0x522ed1(0x282))['requiredOption'](a2_0x522ed1(0x39b),a2_0x522ed1(0x2c8))[a2_0x522ed1(0x312)](a2_0x522ed1(0x279),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x522ed1(0x336)](a2_0x522ed1(0x40b),a2_0x522ed1(0x222))[a2_0x522ed1(0x336)]('--description\x20<desc>',a2_0x522ed1(0x2c7))[a2_0x522ed1(0x336)]('--segment\x20<path>',a2_0x522ed1(0x29b))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3d0),a2_0x522ed1(0x2a2))['option']('--json-columns\x20<cols>',a2_0x522ed1(0x3da))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3ed),a2_0x522ed1(0x2de))[a2_0x522ed1(0x336)]('--timezone\x20<tz>',a2_0x522ed1(0x3f7))[a2_0x522ed1(0x3c6)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x522ed1(0x22e))['description']('Update\x20a\x20campaign')[a2_0x522ed1(0x336)](a2_0x522ed1(0x40b),a2_0x522ed1(0x328))[a2_0x522ed1(0x336)]('--name\x20<name>','New\x20campaign\x20name')[a2_0x522ed1(0x336)](a2_0x522ed1(0x2ea),a2_0x522ed1(0x2c7))[a2_0x522ed1(0x336)](a2_0x522ed1(0x30b),a2_0x522ed1(0x29b))[a2_0x522ed1(0x336)]('--email-sender-id\x20<id>',a2_0x522ed1(0x2a2))['option'](a2_0x522ed1(0x31a),a2_0x522ed1(0x3da))[a2_0x522ed1(0x336)]('--start-at\x20<datetime>',a2_0x522ed1(0x2de))[a2_0x522ed1(0x336)](a2_0x522ed1(0x2b2),a2_0x522ed1(0x3f7))[a2_0x522ed1(0x3c6)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x522ed1(0x39e)]('delete\x20<name-or-id>')[a2_0x522ed1(0x365)](a2_0x522ed1(0x3eb))[a2_0x522ed1(0x336)](a2_0x522ed1(0x40b),a2_0x522ed1(0x328))['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x522ed1(0x3c6)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x522ed1(0x366))[a2_0x522ed1(0x365)]('Launch\x20a\x20campaign')[a2_0x522ed1(0x336)](a2_0x522ed1(0x40b),a2_0x522ed1(0x328))[a2_0x522ed1(0x3c6)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x1da))['description'](a2_0x522ed1(0x2c3))[a2_0x522ed1(0x336)]('--workspace\x20<name>','Workspace\x20name')[a2_0x522ed1(0x3c6)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x229))[a2_0x522ed1(0x365)](a2_0x522ed1(0x288))[a2_0x522ed1(0x336)](a2_0x522ed1(0x40b),a2_0x522ed1(0x328))[a2_0x522ed1(0x3c6)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3a1))['description'](a2_0x522ed1(0x2cb))[a2_0x522ed1(0x336)]('--workspace\x20<name>','Workspace\x20name')[a2_0x522ed1(0x3c6)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x23c))[a2_0x522ed1(0x365)](a2_0x522ed1(0x265)),templateListAction=async(_0x2bf1d5,_0x38400c)=>{const _0x4a765a=a2_0x522ed1,_0x35587f=new EngageTemplatesCommand(),_0xc2e69b=program['opts'](),_0x29dfdc=await createTDXInstance(_0xc2e69b),_0x2ce8ae=await _0x35587f[_0x4a765a(0x22a)]({'options':{..._0xc2e69b,..._0x38400c},'args':_0x2bf1d5?[_0x2bf1d5]:[],'tdx':_0x29dfdc});process[_0x4a765a(0x2ba)](_0x2ce8ae);};templateCmd['command'](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x522ed1(0x336)]('--workspace\x20<name>',a2_0x522ed1(0x328))[a2_0x522ed1(0x3c6)](templateListAction),engageCmd[a2_0x522ed1(0x39e)]('templates\x20[pattern]')['description'](a2_0x522ed1(0x408))[a2_0x522ed1(0x336)]('--workspace\x20<name>','Workspace\x20name')[a2_0x522ed1(0x3c6)](templateListAction),templateCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x34d))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2b8))['option']('--workspace\x20<name>',a2_0x522ed1(0x328))[a2_0x522ed1(0x336)](a2_0x522ed1(0x237),a2_0x522ed1(0x290))[a2_0x522ed1(0x3c6)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3ff))[a2_0x522ed1(0x365)](a2_0x522ed1(0x3bc))[a2_0x522ed1(0x312)](a2_0x522ed1(0x39b),a2_0x522ed1(0x25b))[a2_0x522ed1(0x312)]('--subject\x20<subject>','Email\x20subject\x20template')[a2_0x522ed1(0x312)](a2_0x522ed1(0x1d9),a2_0x522ed1(0x389))[a2_0x522ed1(0x336)]('--workspace\x20<name>',a2_0x522ed1(0x222))[a2_0x522ed1(0x336)](a2_0x522ed1(0x244),'Plaintext\x20template\x20content')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3ae),a2_0x522ed1(0x218))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x22e))[a2_0x522ed1(0x365)](a2_0x522ed1(0x3c0))['option']('--workspace\x20<name>',a2_0x522ed1(0x328))['option'](a2_0x522ed1(0x39b),'New\x20template\x20name')[a2_0x522ed1(0x336)](a2_0x522ed1(0x260),a2_0x522ed1(0x211))[a2_0x522ed1(0x336)](a2_0x522ed1(0x1d9),a2_0x522ed1(0x389))[a2_0x522ed1(0x336)](a2_0x522ed1(0x244),a2_0x522ed1(0x1e9))[a2_0x522ed1(0x3c6)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x319))[a2_0x522ed1(0x365)](a2_0x522ed1(0x21c))[a2_0x522ed1(0x336)]('--workspace\x20<name>',a2_0x522ed1(0x328))[a2_0x522ed1(0x336)](a2_0x522ed1(0x240),a2_0x522ed1(0x26b))[a2_0x522ed1(0x3c6)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x522ed1(0x39e)]('workspace')[a2_0x522ed1(0x365)]('Workspace\x20management'),workspaceListAction=async(_0x4eb724,_0x463dc5)=>{const _0x3ccfdd=a2_0x522ed1,_0x5976aa=new EngageWorkspacesCommand(),_0x101348=program[_0x3ccfdd(0x380)](),_0x214d82=await createTDXInstance(_0x101348),_0x19af97=await _0x5976aa[_0x3ccfdd(0x22a)]({'options':{..._0x101348,..._0x463dc5},'args':_0x4eb724?[_0x4eb724]:[],'tdx':_0x214d82});process[_0x3ccfdd(0x2ba)](_0x19af97);};function a2_0x1580(){const _0x2ef4a1=['Setup\x20API\x20key\x20authentication\x20interactively','--job-type\x20<type>','--trace','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Show\x20only\x20master\x20table\x20validation','Database\x20to\x20use\x20(overrides\x20context)','Open\x20journey\x20in\x20web\x20browser','error','List\x20all\x20users\x20in\x20the\x20account','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','padWidth','set','use\x20[resource]\x20[value]','2379zEouec','TRACE','-n,\x20--name\x20<name>','campaign','[task-name]','join','Template\x20name','\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','gitRevision','Behaviors\x20from\x20JSON\x20file','--format\x20<format>','--subject\x20<subject>','stats\x20<name-or-path>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','folders\x20<parent_name>','End\x20time\x20filter\x20(ISO\x208601\x20format)','Email\x20template\x20management','--enriched','Set\x20or\x20show\x20parent\x20segment\x20context','Resume\x20from\x20specific\x20task\x20(retry)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Skip\x20confirmation\x20prompt','--llm-project\x20<name>','Preview\x20operation\x20without\x20executing','List\x20available\x20LLM\x20models','options','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','sonnet','desc\x20[name]','Output\x20folder\x20(default:\x20{project_name}.llm)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','help','--include-retried','--type\x20<type>','26AGUiHZ','us01','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--limit\x20<rows>','Show\x20segment\x20schema\x20(column\x20types)','claude\x20[args...]','kill\x20<job-id>','outputHelp','Create\x20a\x20new\x20campaign','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--include-stats','parents\x20[pattern]','Output\x20file\x20path\x20(default:\x20<name>.yml)','clear','Resume\x20a\x20paused\x20campaign','Resume\x20a\x20conversation\x20(shows\x20selector)','-p,\x20--profile\x20<name>','argument','Campaign\x20management','Pull\x20child\x20segments\x20to\x20YAML\x20files','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','argv','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--color','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','optionDescription','Alias\x20for\x20--database\x20(natural\x20language\x20style)','required','catch','--project\x20<name>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20journey\x20details','summary','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','flatMap','createAsync','after','port','--debug','registeredArguments','Email\x20sender\x20ID\x20for\x20delivery','CDP\x20Journey\x20Orchestration\x20commands','Limit\x20number\x20of\x20rows','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','--schedule-option\x20<value>','resume\x20<name-or-path>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','76nSFhrl','validate\x20[file]','Updated\x20schedule\x20option','jobs','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','hidden','Attributes\x20as\x20JSON\x20string','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','-H,\x20--header\x20<header>','--timezone\x20<tz>','preAction','Output\x20file\x20path','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','List\x20jobs','Show\x20email\x20template\x20details','fields\x20[name]','exit','Parent\x20segment\x20management','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','isArray','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Pause\x20a\x20campaign','table','history\x20[chat-id]','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Campaign\x20description','Campaign\x20name','-c,\x20--continue','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Duplicate\x20a\x20campaign','Save\x20output\x20to\x20file','4000','tsv','logLevel','Maximum\x20recursion\x20depth\x20(default:\x2010)','--last','Delete\x20an\x20agent','agents\x20[pattern]','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--add-attributes\x20<json>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Resume\x20from\x20specific\x20task','--revision\x20<revision>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','create\x20<name>','setup','download\x20<project-name>\x20[output-dir]','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','6GitPxS','Include\x20retried\x20attempts','Timezone\x20(e.g.,\x20America/Los_Angeles)','--attribute\x20[name]','connection','Pause\x20a\x20running\x20journey','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--from-task\x20<task>','--in\x20<database>','user','Override\x20project\x20name','--description\x20<desc>','users','push\x20[project-name-or-dir]','19562gFQNYE','LLM\x20project\x20to\x20use\x20(overrides\x20context)','List\x20all\x20available\x20profiles','submit\x20[query]','push','then','show\x20[name]','configureHelp','LLM\x20project\x20management','--max-depth\x20<depth>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Move\x20to\x20folder','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Parent\x20folder\x20name\x20for\x20nested\x20folders','Push\x20without\x20confirmation','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','0.7','Customer\x20group\x20as\x20JSON\x20string','Show\x20web\x20console\x20URLs\x20for\x20journeys','Master\x20table\x20name','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Submit\x20a\x20job','--parent-folder\x20<name>','alias','auth','Folder\x20description','preview\x20[name]','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--segment\x20<path>','commands','Add\x20behaviors\x20from\x20JSON\x20file','--skip-validation','retry\x20<session-id>','view\x20[name]','replace','requiredOption','Show\x20stats\x20for\x20specific\x20stage','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Clear\x20session\x20context','DEBUG','-v,\x20--verbose','Get\x20job\x20results','delete\x20<name-or-id>','--json-columns\x20<cols>','models','show\x20<job-id>','kill','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Commands:','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--model\x20<name>','utf-8','Workspace\x20name','--rule-file\x20<file>','length','Create\x20a\x20new\x20LLM\x20project','Create\x20segment\x20folder','AI-native\x20CLI\x20for\x20Treasure\x20Data','Data\x20connection\x20management\x20(for\x20activations/exports)','push\x20[path]','format',',\x20version\x20','--max-tool-iterations\x20<n>','--jsonl','projects\x20[pattern]','chats','option','list','Attributes\x20from\x20JSON\x20file','desc\x20[segment_name]','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','3924aLAGIr','List\x20all\x20data\x20connections','INFO','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Show\x20agent\x20chat\x20URLs','--behaviors\x20<json>','clone\x20[source]','run\x20<workflow>','Add\x20attributes\x20from\x20JSON\x20file','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','--no-proxy','push\x20[parent_or_file]','jsonl','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','allowExcessArguments','filter','show\x20<name-or-id>','Starter\x20message','context','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','stderr','backup\x20<name>','Workflow\x20project\x20management','Show\x20journey\x20statistics','workflows\x20[project]','--in\x20<name>','sql\x20[segment_name]','10MbcovX','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','databases\x20[pattern]','Agent\x20name','parse','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--add-behaviors\x20<json>','delete\x20<project-name-or-id>','-o,\x20--output\x20<dir>','--new','list\x20[project]','database','description','launch\x20<name-or-id>','Enable\x20verbose\x20logging','--clear','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','tdx\x20','parent_segment','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--param\x20<key=value>','Resume\x20a\x20paused\x20journey','Revision\x20name\x20(default:\x20timestamp)','chat\x20[message...]','fields\x20[parent_name]','Read\x20SQL\x20query\x20from\x20file','sessions\x20[project]','-w,\x20--web','Show\x20console\x20URLs','pull\x20[project]\x20[agent-name]','--customer-group-file\x20<file>','--status\x20<status>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','status','1251295imGVKl','Skip\x20validation\x20of\x20.dig\x20files','get','map','opts','desc','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','-o,\x20--output\x20<file>','--name\x20<new-name>','Continue\x20most\x20recent\x20conversation','Job\x20management\x20commands','colorFn','HTML\x20template\x20content','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Maximum\x20tool\x20iterations\x20(default:\x204)','Reason\x20for\x20killing\x20the\x20attempt','show\x20<folder_ref>','statusline','sql\x20[name]','--site\x20<site>','7831065gUqSBA','--force','System\x20prompt/instructions\x20(default:\x20empty)','update\x20<segment_name>','Workflow\x20(Digdag)\x20management\x20commands','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','connections','Table\x20management\x20commands','--name\x20<name>','--customer-group\x20<json>','logs','command','--master','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','duplicate\x20<name-or-id>','site','Arguments:','--schedule-type\x20<type>','-f,\x20--force','[attempt-id]','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','--name\x20<new_name>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','show\x20[table]','--database\x20<db>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Workflow\x20session\x20management','--editor-type\x20<type>','LLM\x20agent\x20management','Show\x20agent\x20details','Include\x20retried\x20attempts\x20(for\x20list)','-1d','Attempt\x20ID','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Segment\x20description','subcommandTerm','[DEPRECATED]\x20Segment\x20folder\x20management','-y,\x20--yes','--to\x20<timestamp>','--behavior\x20[name]','Create\x20an\x20email\x20template','_hidden','--interval\x20<range>','--json','Update\x20an\x20email\x20template','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--delete','apiKey','json','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','action','--dry-run','Include\x20execution\x20statistics','-r,\x20--recursive','--tsv','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','--resume-from\x20<task>','--kind\x20<type>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--email-sender-id\x20<id>','--parent-segment\x20<name>','Filtering\x20rule\x20from\x20JSON\x20file','job','forEach','Name\x20for\x20the\x20new\x20project\x20(required)','Make\x20segment\x20invisible\x20(default:\x20visible)','injectIntoOptions','Master\x20database\x20name','Workspace\x20description','JSON\x20columns\x20for\x20connector\x20(comma-separated)','describe\x20[table]','Behaviors\x20as\x20JSON\x20string','buildTime','validate\x20[name]','parent','4395609YsOxVJ','name','trino','version','Open\x20segment\x20in\x20web\x20browser','Add\x20attributes\x20as\x20JSON\x20string','Output\x20as\x20JSON\x20Lines','--prompt\x20<text>','Database\x20management\x20commands','use\x20<name>','Agent\x20reference\x20(project-name/agent-name)','Delete\x20a\x20campaign','usage','--start-at\x20<datetime>','project','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','api\x20[endpoint]','-d,\x20--database\x20<name>','-f,\x20--file\x20<path>','Show\x20workspace\x20details','Start\x20time\x20filter\x20(ISO\x208601\x20format)','469BJwJvS','folder','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','parent-segment','Project\x20description','--database\x20<name>','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Show\x20web\x20console\x20URLs\x20for\x20segments','-d,\x20--database\x20<database>','.dev','create','subcommandDescription','isTTY','--limit\x20<number>','Show\x20job\x20details','proxy','workflow','Describe\x20table\x20schema','--output\x20<file>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','claude-4.5-sonnet','--params\x20<json>','--workspace\x20<name>','--html\x20<html>','pause\x20<name-or-id>','Workflow\x20attempt\x20management','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Interactive\x20chat\x20selector','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Authentication\x20management','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','repeat','58648qdlIfv','list\x20[path]','\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','query\x20[sql]','--limit\x20<n>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Plaintext\x20template\x20content','Output\x20as\x20JSON','tables\x20[pattern]','--table','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','--no-color','Run\x20Trino\x20query\x20with\x20streaming\x20results','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--system-prompt\x20<text>','show\x20<name>','optionTerm','../package.json','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Start\x20a\x20new\x20chat\x20session','Open\x20parent\x20segment\x20in\x20web\x20browser','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','attempt','--from\x20<timestamp>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','update\x20<name>','view\x20[segment_name]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--rule\x20<json>','Force\x20retry\x20even\x20if\x20not\x20failed','list\x20[pattern]','segments\x20[path]','delete\x20<agent-name>','noColor','tdx','llm','--description\x20<text>','Show\x20campaign\x20details','\x20-\x20built\x20','New\x20segment\x20name','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Overwrite\x20local\x20changes\x20without\x20confirmation','Agent\x20prompt/instructions','Skip\x20confirmation\x20prompts','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Email\x20subject\x20template','[options]\x20--\x20[claude-code-args...]','argumentTerm','--name\x20<text>','Customer\x20group\x20from\x20JSON\x20file','Delete\x20a\x20workspace','campaigns\x20[pattern]','Editor\x20type','Updated\x20description','Kill\x20a\x20job','restore\x20<folder>','Delete\x20an\x20email\x20template','--agent\x20<ref>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--temperature\x20<n>','commandDescription','slice','Workspace\x20name\x20(required)','Updated\x20timezone','log','GET','Set\x20operation\x20timeout\x20in\x20seconds','7771806MYfFLQ','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','resume\x20<name-or-id>','run','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Database\x20name\x20(default:\x20information_schema)','Show\x20master\x20table\x20sample\x20data','update\x20<name-or-id>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','12cqCvcq','includes','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Include\x20subtasks\x20in\x20tasks\x20output','push\x20[name]','Options:','--full','addHelpText','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','allowUnknownOption','push\x20[target]','template','describe','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--table\x20<table>','--yes','Folder\x20name\x20for\x20organization','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','run\x20[name]','--plaintext\x20<text>','--folder\x20<name>'];a2_0x1580=function(){return _0x2ef4a1;};return a2_0x1580();}workspaceCmd['command'](a2_0x522ed1(0x201))['description']('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')['action'](workspaceListAction),engageCmd[a2_0x522ed1(0x39e)]('workspaces\x20[pattern]')[a2_0x522ed1(0x365)](a2_0x522ed1(0x2b5))[a2_0x522ed1(0x3c6)](workspaceListAction),workspaceCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x34d))[a2_0x522ed1(0x365)](a2_0x522ed1(0x3f3))[a2_0x522ed1(0x336)]('--full',a2_0x522ed1(0x290))[a2_0x522ed1(0x3c6)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3ff))[a2_0x522ed1(0x365)]('Create\x20a\x20workspace')['requiredOption']('--name\x20<name>',a2_0x522ed1(0x328))[a2_0x522ed1(0x336)]('--description\x20<desc>',a2_0x522ed1(0x3d9))[a2_0x522ed1(0x3c6)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x22e))[a2_0x522ed1(0x365)]('Update\x20a\x20workspace')[a2_0x522ed1(0x336)](a2_0x522ed1(0x39b),'New\x20workspace\x20name')['option']('--description\x20<desc>','Workspace\x20description')[a2_0x522ed1(0x3c6)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x319))[a2_0x522ed1(0x365)](a2_0x522ed1(0x216))[a2_0x522ed1(0x336)](a2_0x522ed1(0x240),a2_0x522ed1(0x26b))[a2_0x522ed1(0x3c6)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x3e9))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2c6))[a2_0x522ed1(0x3c6)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x2e3))[a2_0x522ed1(0x365)](a2_0x522ed1(0x32e)),connectionListAction=async _0x5961b4=>{const _0x443e1d=a2_0x522ed1,_0x1792da=new ConnectionListCommand(),_0x44623a=program[_0x443e1d(0x380)](),_0x55e5ff=await createTDXInstance(_0x44623a),_0x5f019a=await _0x1792da[_0x443e1d(0x22a)]({'options':{..._0x44623a,..._0x5961b4},'args':[],'tdx':_0x55e5ff});process['exit'](_0x5f019a);};connectionCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x337))[a2_0x522ed1(0x365)](a2_0x522ed1(0x33d))[a2_0x522ed1(0x3c6)](connectionListAction),program[a2_0x522ed1(0x39e)](a2_0x522ed1(0x399),{'hidden':!![]})[a2_0x522ed1(0x365)](a2_0x522ed1(0x283))[a2_0x522ed1(0x3c6)](connectionListAction),connectionCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x1f2))[a2_0x522ed1(0x365)]('Show\x20connection\x20details\x20by\x20name')[a2_0x522ed1(0x3c6)](async(_0x958e2b,_0x2430da)=>{const _0x2348f0=a2_0x522ed1,_0x48931a=new ConnectionShowCommand(),_0x220989=program[_0x2348f0(0x380)](),_0xcbd4d0=await createTDXInstance(_0x220989),_0x472f79=await _0x48931a[_0x2348f0(0x22a)]({'options':{..._0x220989,..._0x2430da},'args':[_0x958e2b],'tdx':_0xcbd4d0});process[_0x2348f0(0x2ba)](_0x472f79);});const journeyCmd=program['command']('journey')[a2_0x522ed1(0x365)](a2_0x522ed1(0x2a3));journeyCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)]('List\x20journeys\x20in\x20current\x20context')['option']('-w,\x20--web',a2_0x522ed1(0x301))[a2_0x522ed1(0x3c6)](async(_0x37e205,_0x28082d)=>{const _0x1102cc=a2_0x522ed1,_0x402215=new JourneyListCommand(),_0x2afb63=program[_0x1102cc(0x380)](),_0x11410c=await createTDXInstance(_0x2afb63),_0x1b3b8d=await _0x402215[_0x1102cc(0x22a)]({'options':{..._0x2afb63,..._0x28082d},'args':_0x37e205?[_0x37e205]:[],'tdx':_0x11410c});process[_0x1102cc(0x2ba)](_0x1b3b8d);}),journeyCmd[a2_0x522ed1(0x39e)]('view\x20<name-or-path>')['description'](a2_0x522ed1(0x299))['option'](a2_0x522ed1(0x375),a2_0x522ed1(0x24d))[a2_0x522ed1(0x336)](a2_0x522ed1(0x284),a2_0x522ed1(0x3c8))['action'](async(_0xb59a4,_0x1ae562)=>{const _0x1c6c6f=a2_0x522ed1,_0x45e7b5=new JourneyViewCommand(),_0x30bf75=program['opts'](),_0x3fcb1e=await createTDXInstance(_0x30bf75),_0x8ea0f3=await _0x45e7b5['run']({'options':{..._0x30bf75,..._0x1ae562},'args':[_0xb59a4],'tdx':_0x3fcb1e});process[_0x1c6c6f(0x2ba)](_0x8ea0f3);}),journeyCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x261))[a2_0x522ed1(0x365)](a2_0x522ed1(0x354))[a2_0x522ed1(0x336)]('--stage\x20<name>',a2_0x522ed1(0x313))['action'](async(_0x30be39,_0x52cb5b)=>{const _0x2cb966=a2_0x522ed1,_0x41ba27=new JourneyStatsCommand(),_0x1439fb=program[_0x2cb966(0x380)](),_0x1fb815=await createTDXInstance(_0x1439fb),_0x281fbb=await _0x41ba27[_0x2cb966(0x22a)]({'options':{..._0x1439fb,..._0x52cb5b},'args':[_0x30be39],'tdx':_0x1fb815});process[_0x2cb966(0x2ba)](_0x281fbb);}),journeyCmd[a2_0x522ed1(0x39e)]('pause\x20<name-or-path>')[a2_0x522ed1(0x365)](a2_0x522ed1(0x2e4))[a2_0x522ed1(0x3c6)](async(_0x2d55a4,_0x500db9)=>{const _0x26c764=a2_0x522ed1,_0x2c0cd3=new JourneyPauseCommand(),_0xb965a=program[_0x26c764(0x380)](),_0x341752=await createTDXInstance(_0xb965a),_0xfcc9d1=await _0x2c0cd3[_0x26c764(0x22a)]({'options':{..._0xb965a,..._0x500db9},'args':[_0x2d55a4],'tdx':_0x341752});process[_0x26c764(0x2ba)](_0xfcc9d1);}),journeyCmd['command'](a2_0x522ed1(0x2a7))[a2_0x522ed1(0x365)](a2_0x522ed1(0x36f))['action'](async(_0x31d405,_0x18ed1b)=>{const _0x490131=a2_0x522ed1,_0x532fbd=new JourneyResumeCommand(),_0x19f1a9=program[_0x490131(0x380)](),_0x1c0d30=await createTDXInstance(_0x19f1a9),_0x46e69e=await _0x532fbd['run']({'options':{..._0x19f1a9,..._0x18ed1b},'args':[_0x31d405],'tdx':_0x1c0d30});process[_0x490131(0x2ba)](_0x46e69e);}),journeyCmd[a2_0x522ed1(0x39e)]('pull\x20[name]')[a2_0x522ed1(0x365)]('Export\x20journey(s)\x20as\x20YAML\x20files')['option'](a2_0x522ed1(0x3b9),'Skip\x20confirmation\x20prompt')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3c7),a2_0x522ed1(0x20c))[a2_0x522ed1(0x3c6)](async(_0x48fd29,_0x4d4752)=>{const _0x50f594=a2_0x522ed1,_0xaf8636=new JourneyPullCommand(),_0x59b0ca=program[_0x50f594(0x380)](),_0xfed5=await createTDXInstance(_0x59b0ca),_0x2fb09e=await _0xaf8636[_0x50f594(0x22a)]({'options':{..._0x59b0ca,..._0x4d4752},'args':_0x48fd29?[_0x48fd29]:[],'tdx':_0xfed5});process[_0x50f594(0x2ba)](_0x2fb09e);}),journeyCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x23b))[a2_0x522ed1(0x365)](a2_0x522ed1(0x36a))[a2_0x522ed1(0x3c6)](async(_0x4cf2b1,_0x230a9c)=>{const _0x421e2d=a2_0x522ed1,_0x592a29=new JourneyPushCommand(),_0x40a822=program[_0x421e2d(0x380)](),_0x93d8ff=await createTDXInstance(_0x40a822),_0xcd8ecd=await _0x592a29[_0x421e2d(0x22a)]({'options':{..._0x40a822,..._0x230a9c},'args':_0x4cf2b1?[_0x4cf2b1]:[],'tdx':_0x93d8ff});process['exit'](_0xcd8ecd);});const agentSyncCmd=program['command']('agent')[a2_0x522ed1(0x365)](a2_0x522ed1(0x3af));function a2_0x3fa4(_0x1ac7d8,_0x20f704){_0x1ac7d8=_0x1ac7d8-0x1d9;const _0x158076=a2_0x1580();let _0x3fa4c2=_0x158076[_0x1ac7d8];return _0x3fa4c2;}agentSyncCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x377))[a2_0x522ed1(0x365)](a2_0x522ed1(0x232))['option'](a2_0x522ed1(0x361),'Output\x20directory')['option'](a2_0x522ed1(0x3a5),a2_0x522ed1(0x20d))[a2_0x522ed1(0x3c6)](async(_0x1f0836,_0x45efc7,_0x34f55e)=>{const _0x46bf30=a2_0x522ed1,_0x397e19=new AgentPullCommand(),_0x487b78=program[_0x46bf30(0x380)](),_0x24987e=await createTDXInstance(_0x487b78),_0x4ff1b2=[];if(_0x1f0836)_0x4ff1b2[_0x46bf30(0x2f1)](_0x1f0836);if(_0x45efc7)_0x4ff1b2[_0x46bf30(0x2f1)](_0x45efc7);const _0x3ce34b=await _0x397e19[_0x46bf30(0x22a)]({'options':{..._0x487b78,..._0x34f55e},'args':_0x4ff1b2,'tdx':_0x24987e});process['exit'](_0x3ce34b);}),agentSyncCmd['command'](a2_0x522ed1(0x32f))[a2_0x522ed1(0x365)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x522ed1(0x336)](a2_0x522ed1(0x3a5),a2_0x522ed1(0x2fb))[a2_0x522ed1(0x3c6)](async(_0x399c60,_0x4ee800)=>{const _0x52f3ea=a2_0x522ed1,_0x5452e8=new AgentPushCommand(),_0x9a967e=program['opts'](),_0x4d5838=await createTDXInstance(_0x9a967e),_0xdb67ab=await _0x5452e8[_0x52f3ea(0x22a)]({'options':{..._0x9a967e,..._0x4ee800},'args':_0x399c60?[_0x399c60]:[],'tdx':_0x4d5838});process[_0x52f3ea(0x2ba)](_0xdb67ab);}),agentSyncCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x343))['description'](a2_0x522ed1(0x28e))[a2_0x522ed1(0x336)](a2_0x522ed1(0x257),a2_0x522ed1(0x3d5))[a2_0x522ed1(0x3c6)](async(_0x44cd89,_0x47f51d)=>{const _0x581fed=a2_0x522ed1,_0x2763df=new AgentCloneCommand(),_0x41792f=program[_0x581fed(0x380)](),_0x2cc079=await createTDXInstance(_0x41792f),_0x1372bc=await _0x2763df['run']({'options':{..._0x41792f,..._0x47f51d},'args':_0x44cd89?[_0x44cd89]:[],'tdx':_0x2cc079});process[_0x581fed(0x2ba)](_0x1372bc);}),agentSyncCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x201))[a2_0x522ed1(0x365)]('List\x20agents\x20in\x20current\x20project')[a2_0x522ed1(0x336)](a2_0x522ed1(0x375),a2_0x522ed1(0x341))['action'](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')[a2_0x522ed1(0x365)](a2_0x522ed1(0x3b0))[a2_0x522ed1(0x3c6)](async(_0x5d125f,_0x288cc0)=>{const _0xf46710=a2_0x522ed1,_0xa79859=new LLMAgentShowCommand(),_0x339e39=program['opts'](),_0x2066f0=await createTDXInstance(_0x339e39),_0x11248a=await _0xa79859['run']({'options':{..._0x339e39,..._0x288cc0},'args':[_0x5d125f],'tdx':_0x2066f0});process[_0xf46710(0x2ba)](_0x11248a);}),agentSyncCmd['command'](a2_0x522ed1(0x2da))[a2_0x522ed1(0x365)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x522ed1(0x336)](a2_0x522ed1(0x1f1),a2_0x522ed1(0x394))[a2_0x522ed1(0x336)](a2_0x522ed1(0x326),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x522ed1(0x409))[a2_0x522ed1(0x336)]('--starter-message\x20<text>',a2_0x522ed1(0x34e))[a2_0x522ed1(0x336)](a2_0x522ed1(0x332),a2_0x522ed1(0x38c),'4')[a2_0x522ed1(0x336)](a2_0x522ed1(0x21f),a2_0x522ed1(0x2d6),a2_0x522ed1(0x2ff))[a2_0x522ed1(0x3c6)](async(_0x454040,_0x4820cd)=>{const _0x22aa40=a2_0x522ed1,_0x4fb5b1=new LLMAgentCreateCommand(),_0x3df2eb=program[_0x22aa40(0x380)](),_0x31e651=await createTDXInstance(_0x3df2eb),_0x7b4961=await _0x4fb5b1[_0x22aa40(0x22a)]({'options':{..._0x3df2eb,..._0x4820cd},'args':[_0x454040],'tdx':_0x31e651});process[_0x22aa40(0x2ba)](_0x7b4961);}),agentSyncCmd[a2_0x522ed1(0x39e)]('update\x20<agent-name>')['description']('Update\x20an\x20existing\x20agent')[a2_0x522ed1(0x336)](a2_0x522ed1(0x214),a2_0x522ed1(0x35c))[a2_0x522ed1(0x336)](a2_0x522ed1(0x3e7),a2_0x522ed1(0x20e))[a2_0x522ed1(0x336)](a2_0x522ed1(0x207),'Agent\x20description')[a2_0x522ed1(0x336)]('--starter-message\x20<text>',a2_0x522ed1(0x34e))['action'](async(_0x3e7c46,_0xeb2033)=>{const _0xd08b87=a2_0x522ed1,_0x41ea74=new LLMAgentUpdateCommand(),_0x2c21b0=program['opts'](),_0x2a3a35=await createTDXInstance(_0x2c21b0),_0x139a10=await _0x41ea74[_0xd08b87(0x22a)]({'options':{..._0x2c21b0,..._0xeb2033},'args':[_0x3e7c46],'tdx':_0x2a3a35});process['exit'](_0x139a10);}),agentSyncCmd[a2_0x522ed1(0x39e)](a2_0x522ed1(0x203))[a2_0x522ed1(0x365)](a2_0x522ed1(0x2d2))['action'](async(_0x4dbe0f,_0x3c9f99)=>{const _0x19cb0c=a2_0x522ed1,_0x100323=new LLMAgentDeleteCommand(),_0x37c549=program[_0x19cb0c(0x380)](),_0x341e18=await createTDXInstance(_0x37c549),_0x39621d=await _0x100323[_0x19cb0c(0x22a)]({'options':{..._0x37c549,..._0x3c9f99},'args':[_0x4dbe0f],'tdx':_0x341e18});process['exit'](_0x39621d);});export{program};export function runCLI(){const _0x2df994=a2_0x522ed1;program[_0x2df994(0x35d)](process[_0x2df994(0x28f)]);!process[_0x2df994(0x28f)][_0x2df994(0x221)](0x2)[_0x2df994(0x32a)]&&program[_0x2df994(0x281)]();const _0x4839f4=packageJson['version'];process[_0x2df994(0x351)][_0x2df994(0x401)]&&process[_0x2df994(0x28f)][_0x2df994(0x32a)]>0x2&&!_0x4839f4[_0x2df994(0x231)](_0x2df994(0x3fe))&&checkForUpdate(_0x4839f4)[_0x2df994(0x2f2)](_0x1e175b=>{_0x1e175b&&displayUpdateNotification(_0x1e175b);})[_0x2df994(0x296)](()=>{});}
1
+ const a2_0x5aac0e=a2_0x5c65;(function(_0x2e58b3,_0x913ce2){const _0x2ae9fa=a2_0x5c65,_0x439af8=_0x2e58b3();while(!![]){try{const _0x13ea5d=-parseInt(_0x2ae9fa(0x2ae))/0x1+-parseInt(_0x2ae9fa(0x28a))/0x2*(-parseInt(_0x2ae9fa(0x224))/0x3)+parseInt(_0x2ae9fa(0x2b9))/0x4+-parseInt(_0x2ae9fa(0x294))/0x5+-parseInt(_0x2ae9fa(0x26d))/0x6*(-parseInt(_0x2ae9fa(0x299))/0x7)+parseInt(_0x2ae9fa(0x295))/0x8+parseInt(_0x2ae9fa(0x3a3))/0x9;if(_0x13ea5d===_0x913ce2)break;else _0x439af8['push'](_0x439af8['shift']());}catch(_0x141ba6){_0x439af8['push'](_0x439af8['shift']());}}}(a2_0x1cdf,0xf29e2));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';function a2_0x5c65(_0xd1c86f,_0x37e74c){_0xd1c86f=_0xd1c86f-0x19d;const _0x1cdf50=a2_0x1cdf();let _0x5c6536=_0x1cdf50[_0xd1c86f];return _0x5c6536;}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';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';function a2_0x1cdf(){const _0x4181e0=['--version','Show\x20connection\x20details\x20by\x20name','--html\x20<html>','tsv','projects\x20[pattern]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Submit\x20a\x20job','List\x20available\x20LLM\x20models','jsonl','query\x20[sql]','[task-name]','show\x20<folder_ref>','-o,\x20--output\x20<dir>','Email\x20subject\x20template','models','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','delete\x20<name>','--from\x20<timestamp>','attempt','--name\x20<name>','New\x20segment\x20name','command','validate\x20[file]','Create\x20a\x20workspace','profile','kill','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Model\x20type\x20(default:\x20claude-4.5-sonnet)','noColor','--behaviors-file\x20<file>','job','Workflow\x20project\x20management','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--folder\x20<name>','use\x20[name]','sql\x20[name]','tdx','Agent\x20description','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Update\x20an\x20existing\x20agent','Show\x20agent\x20chat\x20URLs','push\x20[project-name-or-dir]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','submit\x20[query]','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--include-retried','--session\x20<id>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','create\x20<name>','Timezone\x20(e.g.,\x20America/Los_Angeles)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','port','download\x20<project-name>\x20[output-dir]','Skip\x20confirmation\x20prompts','Move\x20to\x20folder','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','update\x20<name-or-id>','delete\x20<project-name-or-id>','Enable\x20verbose\x20logging','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','opts','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','LLM\x20project\x20management','use\x20[resource]\x20[value]','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--subject\x20<subject>','--force','--param\x20<key=value>','Limit\x20number\x20of\x20rows','argumentDescription','isTTY','--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--include-subtasks','trace','--session-time\x20<time>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Set\x20or\x20show\x20parent\x20segment\x20context','Delete\x20an\x20agent','describe\x20[table]','Attempt\x20ID','--segment\x20<path>','--agent\x20<ref>',',\x20version\x20','List\x20all\x20data\x20connections','Read\x20request\x20body\x20from\x20file','pull\x20[name]','fields\x20[parent_name]','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--parent-segment\x20<name>','join','--add-behaviors-file\x20<file>','desc\x20[name]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','connection','optionDescription','Setup\x20API\x20key\x20authentication\x20interactively','--include-stats','view\x20[name]','retry','Export\x20journey(s)\x20as\x20YAML\x20files','sonnet','view\x20[segment_name]','summary','Make\x20segment\x20invisible\x20(default:\x20visible)','Interactive\x20chat\x20selector','-r,\x20--resume','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','16668189fSsxzQ','--limit\x20<number>','Filtering\x20rule\x20from\x20JSON\x20file','LLM\x20agent\x20management','Show\x20master\x20table\x20sample\x20data','Include\x20subtasks\x20in\x20tasks\x20output','push\x20[path]','kill\x20<job-id>','hidden','New\x20campaign\x20name','then','Show\x20the\x20most\x20recent\x20chat','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','-f,\x20--file\x20<path>','--llm-project\x20<name>','auth','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','desc','--full','Read\x20SQL\x20query\x20from\x20file','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','-w,\x20--web','Start\x20a\x20new\x20chat\x20session','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','injectIntoOptions','--starter-message\x20<text>','run\x20[name]','show\x20<agent-name>','--site\x20<site>','fields\x20[name]','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Resume\x20from\x20specific\x20task','create','Table\x20management\x20commands','backup\x20<name>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','create\x20<segment_name>','0.7','Skip\x20validation\x20of\x20.dig\x20files','configureHelp','Database\x20to\x20use\x20(overrides\x20context)','--attributes-file\x20<file>','Arguments:','error','--editor-type\x20<type>','4000','Open\x20parent\x20segment\x20in\x20web\x20browser','--status\x20<status>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','--attributes\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string','Workspace\x20name\x20(required)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','statusline','Update\x20an\x20email\x20template','Name\x20for\x20the\x20new\x20project\x20(required)','Show\x20web\x20console\x20URLs\x20for\x20segments','-v,\x20--verbose','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Output\x20as\x20JSON\x20Lines','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--project\x20<name>','database','-o,\x20--output\x20<file>','use\x20<path>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','utf-8','Task\x20name\x20for\x20logs\x20action','Maximum\x20tool\x20iterations\x20(default:\x204)','--no-proxy','Campaign\x20description','stderr','--yes','\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','Clear\x20session\x20context','\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','use\x20<name>','parse','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--description\x20<desc>','--debug','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','[DEPRECATED]\x20Segment\x20folder\x20management','users','pull\x20[project]\x20[agent-name]','run','map','Show\x20stats\x20for\x20specific\x20stage','action','Include\x20retried\x20attempts\x20(for\x20list)','Create\x20an\x20email\x20template','AI-native\x20CLI\x20for\x20Treasure\x20Data','Email\x20sender\x20ID\x20for\x20delivery','logs','System\x20prompt/instructions\x20(default:\x20empty)','-u,\x20--use','--schedule-type\x20<type>','outputHelp','context','--type\x20<type>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Read\x20query\x20from\x20file','Campaign\x20name','padWidth','Campaign\x20type\x20(email\x20or\x20push)','--add-behaviors\x20<json>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','show\x20<name>','--invisible','Force\x20retry\x20even\x20if\x20not\x20failed','--attribute\x20[name]','session','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','commandUsage','update\x20<name>','attempt:','Show\x20segment\x20schema\x20(column\x20types)','Preview\x20operation\x20without\x20executing','Add\x20behaviors\x20from\x20JSON\x20file','--schedule-option\x20<value>','-X,\x20--method\x20<method>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--tsv','-y,\x20--yes','Resume\x20a\x20paused\x20campaign','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--customer-group\x20<json>','Template\x20name','push','--prompt\x20<text>','-H,\x20--header\x20<header>','Workflow\x20parameter\x20(repeatable)','show\x20<job-id>','length','colorFn','resume\x20<name-or-id>','allowExcessArguments','Create\x20a\x20new\x20agent\x20in\x20current\x20project','get','Create\x20a\x20new\x20LLM\x20project','--limit\x20<n>','name','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Folder\x20name\x20for\x20organization','llm','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','stats\x20<name-or-path>','--table','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Show\x20email\x20template\x20details','Updated\x20description','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','argument','slice','addHelpText','20571wZTAPn','_hidden','workspace','--in\x20<name>','User\x20management\x20commands','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Segment\x20description','Open\x20segment\x20in\x20web\x20browser','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--parent-folder\x20<name>','List\x20jobs','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Show\x20agent\x20details','after','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Push\x20without\x20confirmation','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','pull\x20[parent_or_file]','-r,\x20--recursive','use\x20<project-name>','site','-f,\x20--force','--behavior\x20[name]','Project\x20description','Show\x20campaign\x20details','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20segment\x20details\x20(alias\x20for\x20view)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--interval\x20<range>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--last','--json-columns\x20<cols>','allowUnknownOption','--jsonl','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','HTML\x20template\x20content','--kind\x20<type>','Show\x20only\x20master\x20table\x20validation','--no-color','desc\x20[segment_name]','options','Folder\x20description','commands','--behaviors\x20<json>','-d,\x20--database\x20<database>','chats','List\x20all\x20available\x20profiles','Campaign\x20management','Data\x20connection\x20management\x20(for\x20activations/exports)','--in\x20<database>','Parent\x20folder\x20name\x20for\x20nested\x20folders','Show\x20web\x20console\x20URLs\x20for\x20journeys','Add\x20attributes\x20from\x20JSON\x20file','hook','Pause\x20a\x20campaign','help','Skip\x20population\x20counting','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','list\x20[path]','description','Behaviors\x20from\x20JSON\x20file','--to\x20<timestamp>','update\x20<segment_name>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','list','launch\x20<name-or-id>','Delete\x20an\x20email\x20template','info\x20[segment_name]','12ROuqSN','createAsync','--clear','Skip\x20confirmation\x20prompt','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','CDP\x20Journey\x20Orchestration\x20commands','repeat','End\x20time\x20filter\x20(ISO\x208601\x20format)','setup','Master\x20table\x20name','Create\x20a\x20new\x20campaign','alias','--format\x20<format>','parent-segment','Update\x20a\x20campaign','logLevel','Save\x20output\x20to\x20file','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Kill\x20a\x20job','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Workflow\x20(Digdag)\x20management\x20commands','Plaintext\x20template\x20content','subcommandTerm','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','TRACE','proxy','CDP\x20segment\x20management\x20commands','duplicate\x20<name-or-id>','42TqiQzI','--start-at\x20<datetime>','--json','usage','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','optionTerm','Include\x20retried\x20attempts','delete\x20<agent-name>','Duplicate\x20a\x20campaign','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','7783100fgctDo','1698832FQuRMB','option','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--name\x20<text>','237671xznQUX','--master','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','exit','delete\x20<name-or-id>','Unknown\x20action:\x20','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--add-attributes-file\x20<file>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Open\x20journey\x20in\x20web\x20browser','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Overwrite\x20local\x20changes\x20without\x20confirmation','-1d','--timezone\x20<tz>','push\x20[parent_or_file]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Revision\x20name\x20(default:\x20timestamp)','New\x20template\x20name','Run\x20Trino\x20query\x20with\x20streaming\x20results','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','168319zBuVSz','buildTime','attempts\x20[project]','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--plaintext\x20<text>','tasks','--rule-file\x20<file>','information_schema','1769692XnKyKz','engage','--description\x20<text>','Continue\x20most\x20recent\x20conversation','profiles','Filtering\x20rule\x20as\x20JSON\x20string','--no-count-population','Output\x20directory','[attempt-id]','requiredOption','describe','includes','Attributes\x20as\x20JSON\x20string','--workspace\x20<name>','claude-4.5-sonnet','New\x20workspace\x20name','sessions\x20[project]','json','Resume\x20from\x20specific\x20task\x20(retry)','--revision\x20<revision>','Authentication\x20management','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','restore\x20<folder>','argv','resume\x20<name-or-path>','version','jobs','--params\x20<json>','Parent\x20segment\x20description','--resume-from\x20<task>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','\x20-\x20built\x20','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','workflows\x20[project]','forEach','folder','Trino\x20catalog\x20(default:\x20td)','Parent\x20segment\x20management','-n,\x20--name\x20<name>','Workspace\x20management','Workspace\x20name','Workflow\x20session\x20management','Request\x20body\x20as\x20JSON\x20string','--data\x20<data>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','templates\x20[pattern]','--enriched','view\x20<name-or-path>','segment','--database\x20<db>','\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','Output\x20as\x20JSON','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','../package.json','--customer-group-file\x20<file>','--model\x20<name>','registeredArguments','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--job-type\x20<type>','tables\x20[pattern]','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','[action]','project','Launch\x20a\x20campaign','Show\x20console\x20URLs','show\x20<name-or-id>','Maximum\x20recursion\x20depth\x20(default:\x2010)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','result\x20<job-id>','--timeout\x20<seconds>','--output\x20<file>','list\x20[pattern]','show\x20[name]','gitRevision','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Output\x20folder\x20(default:\x20{project_name}.llm)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','activations\x20<segment_name>','Starter\x20message','Update\x20a\x20workspace','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','create\x20<parent_name>\x20<folder_name>','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Pull\x20child\x20segments\x20to\x20YAML\x20files','filter','Workflow\x20attempt\x20management','Show\x20journey\x20statistics','list\x20[project]','Workspace\x20description','Customer\x20group\x20as\x20JSON\x20string','--reason\x20<text>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20all\x20users\x20in\x20the\x20account','--type\x20<api_type>','padEnd','--skip-validation','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--max-depth\x20<depth>','Customer\x20group\x20from\x20JSON\x20file','format','tdx\x20','List\x20journeys\x20in\x20current\x20context','--rule\x20<json>','Usage:\x20','Output\x20file\x20path','catch','Show\x20workspace\x20details','parent_segment','Database\x20management\x20commands','folders\x20<parent_name>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)'];a2_0x1cdf=function(){return _0x4181e0;};return a2_0x1cdf();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x5aac0e(0x1d3)](readFileSync(join(__dirname,a2_0x5aac0e(0x2f0)),a2_0x5aac0e(0x1c8)));let buildInfo={};try{buildInfo=JSON[a2_0x5aac0e(0x1d3)](readFileSync(join(__dirname,'build-info.json'),'utf-8'));}catch{}if(process[a2_0x5aac0e(0x2d0)][a2_0x5aac0e(0x2c4)](a2_0x5aac0e(0x32f))){let versionOutput=a2_0x5aac0e(0x322)+packageJson[a2_0x5aac0e(0x2d2)];buildInfo[a2_0x5aac0e(0x306)]&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x5aac0e(0x2af)]&&(versionOutput+=a2_0x5aac0e(0x2d8)+buildInfo['buildTime']),console['log'](versionOutput),process[a2_0x5aac0e(0x29c)](0x0);}const program=new Command();let description=a2_0x5aac0e(0x1e2);buildInfo[a2_0x5aac0e(0x306)]?description+=',\x20version\x20'+packageJson['version']+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x5aac0e(0x38a)+packageJson['version'];program[a2_0x5aac0e(0x214)](a2_0x5aac0e(0x354))[a2_0x5aac0e(0x263)](description),program[a2_0x5aac0e(0x296)]('-p,\x20--profile\x20<name>',a2_0x5aac0e(0x37e))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1a2),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','us01')['option'](a2_0x5aac0e(0x279),a2_0x5aac0e(0x1d4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x21b),a2_0x5aac0e(0x3af))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x21d))[a2_0x5aac0e(0x296)]('--jsonl',a2_0x5aac0e(0x233))['option'](a2_0x5aac0e(0x201),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x303),a2_0x5aac0e(0x27d))['option'](a2_0x5aac0e(0x3a4),a2_0x5aac0e(0x2d9))['option']('--color','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])['option'](a2_0x5aac0e(0x24e),a2_0x5aac0e(0x35d),![])['option'](a2_0x5aac0e(0x1bf),a2_0x5aac0e(0x36c),![])[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1d6),a2_0x5aac0e(0x382))[a2_0x5aac0e(0x296)]('--trace',a2_0x5aac0e(0x375))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x302),'Set\x20operation\x20timeout\x20in\x20seconds','30')['option'](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x1fc),![])['option'](a2_0x5aac0e(0x202),a2_0x5aac0e(0x367),![])['option'](a2_0x5aac0e(0x35f),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')['option']('-d,\x20--database\x20<name>',a2_0x5aac0e(0x1ae))['option'](a2_0x5aac0e(0x227),a2_0x5aac0e(0x2b3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x390),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b1),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x5aac0e(0x1ad)]({'formatHelp':(_0x4d8688,_0x19e23a)=>{const _0x2df7ae=a2_0x5aac0e,_0x589308=_0x19e23a[_0x2df7ae(0x1ee)](_0x4d8688,_0x19e23a),_0x5823bf=0x2,_0x50510a=0x2;function _0x19a4e8(_0x32cf94){const _0x249f72=_0x2df7ae,_0x57a830=_0x32cf94;return!!(_0x57a830[_0x249f72(0x225)]||_0x57a830[_0x249f72(0x3ab)]);}function _0x1a79d0(_0x191c8b,_0x6963a6){const _0x2b9924=_0x2df7ae;if(_0x6963a6){const _0x30011f=''+_0x191c8b[_0x2b9924(0x31c)](_0x589308+_0x50510a)+_0x6963a6;return _0x30011f;}return _0x191c8b;}function _0x38c445(_0x45e542){const _0x1f3d9e=_0x2df7ae;return _0x45e542[_0x1f3d9e(0x391)]('\x0a')['replace'](/^/gm,'\x20'[_0x1f3d9e(0x273)](_0x5823bf));}const _0x2410f8=[];_0x2410f8[_0x2df7ae(0x207)](_0x2df7ae(0x325)+_0x19e23a[_0x2df7ae(0x1f8)](_0x4d8688));const _0x1a24f3=_0x19e23a['commandDescription'](_0x4d8688);_0x1a24f3&&(_0x2410f8[_0x2df7ae(0x207)](''),_0x2410f8['push'](_0x1a24f3));const _0xe7f375=_0x4d8688[_0x2df7ae(0x252)][_0x2df7ae(0x311)](_0x451265=>!_0x19a4e8(_0x451265));if(_0xe7f375[_0x2df7ae(0x20c)]>0x0){if(_0x4d8688['name']()===_0x2df7ae(0x354)){const _0x382d93=_0x4d8688[_0x2df7ae(0x36e)](),_0x47dfe2=!_0x382d93[_0x2df7ae(0x34c)]&&process['stdout'][_0x2df7ae(0x37b)],_0x2afc26=COMMAND_CATEGORIES,_0x99e6b2=(_0x29c193,_0x402cf8)=>_0x47dfe2?_0x402cf8(_0x29c193):_0x29c193,_0xbc206d=new Map();_0xe7f375[_0x2df7ae(0x2db)](_0x52c418=>{_0xbc206d['set'](_0x52c418['name'](),_0x52c418);}),_0x2afc26[_0x2df7ae(0x2db)](_0x375ce3=>{const _0x1880d2=_0x2df7ae,_0x3a3908=_0x375ce3['commands']['flatMap'](_0x57645a=>_0xbc206d[_0x1880d2(0x211)](_0x57645a)??[]);if(_0x3a3908[_0x1880d2(0x20c)]>0x0){_0x2410f8[_0x1880d2(0x207)](''),_0x2410f8[_0x1880d2(0x207)](_0x99e6b2(_0x375ce3[_0x1880d2(0x214)]+':',_0x375ce3[_0x1880d2(0x20d)]));const _0x2963d8=_0x3a3908['map'](_0x15a5c2=>{const _0x1c0857=_0x1880d2,_0x3ec236=_0x19e23a[_0x1c0857(0x284)](_0x15a5c2),_0x138a97=_0x19e23a['subcommandDescription'](_0x15a5c2);return _0x1a79d0(_0x3ec236,_0x138a97);});_0x2410f8[_0x1880d2(0x207)](_0x38c445(_0x2963d8));}}),_0x2410f8[_0x2df7ae(0x207)](''),_0x2410f8['push']('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x480caf=_0xe7f375[_0x2df7ae(0x1dd)](_0x370be0=>{const _0x4ad95e=_0x2df7ae,_0x514489=_0x19e23a[_0x4ad95e(0x284)](_0x370be0),_0x234080=_0x19e23a['subcommandDescription'](_0x370be0);return _0x1a79d0(_0x514489,_0x234080);});_0x2410f8['push'](''),_0x2410f8[_0x2df7ae(0x207)]('Commands:'),_0x2410f8[_0x2df7ae(0x207)](_0x38c445(_0x480caf));}}const _0x334d74=_0x4d8688[_0x2df7ae(0x250)][_0x2df7ae(0x311)](_0x1a8fb0=>!_0x19a4e8(_0x1a8fb0));if(_0x334d74[_0x2df7ae(0x20c)]>0x0){const _0x5c388c=_0x334d74[_0x2df7ae(0x1dd)](_0x80b0dc=>{const _0x4a264d=_0x2df7ae,_0x4492b8=_0x19e23a[_0x4a264d(0x28f)](_0x80b0dc),_0x12da5f=_0x19e23a[_0x4a264d(0x396)](_0x80b0dc);return _0x1a79d0(_0x4492b8,_0x12da5f);});_0x2410f8[_0x2df7ae(0x207)](''),_0x2410f8[_0x2df7ae(0x207)]('Options:'),_0x2410f8[_0x2df7ae(0x207)](_0x38c445(_0x5c388c));}const _0x2f8425=(_0x4d8688[_0x2df7ae(0x2f3)]||[])[_0x2df7ae(0x311)](_0x355558=>!_0x19a4e8(_0x355558));if(_0x2f8425[_0x2df7ae(0x20c)]>0x0){const _0x212e0b=_0x2f8425[_0x2df7ae(0x1dd)](_0x45ee8a=>{const _0x3aa650=_0x2df7ae,_0x1cd286=_0x19e23a['argumentTerm'](_0x45ee8a),_0x5defe8=_0x19e23a[_0x3aa650(0x37a)](_0x45ee8a);return _0x1a79d0(_0x1cd286,_0x5defe8);});_0x2410f8[_0x2df7ae(0x207)](''),_0x2410f8['push'](_0x2df7ae(0x1b0)),_0x2410f8[_0x2df7ae(0x207)](_0x38c445(_0x212e0b));}return _0x2410f8[_0x2df7ae(0x391)]('\x0a');},'subcommandTerm':_0x423c87=>{const _0x56e4cc=a2_0x5aac0e,_0x10d013=(_0x423c87[_0x56e4cc(0x2f3)]||[])['map'](_0x1f45b3=>_0x1f45b3['required']?'<'+_0x1f45b3[_0x56e4cc(0x214)]()+'>':'['+_0x1f45b3[_0x56e4cc(0x214)]()+']')[_0x56e4cc(0x391)]('\x20'),_0x48e3f4=_0x423c87['aliases'](),_0x377bc0=_0x48e3f4[_0x56e4cc(0x20c)]>0x0?_0x423c87['name']()+',\x20'+_0x48e3f4[_0x56e4cc(0x391)](',\x20'):_0x423c87[_0x56e4cc(0x214)]();return _0x10d013?_0x377bc0+'\x20'+_0x10d013:_0x377bc0;}}),program[a2_0x5aac0e(0x25d)]('preAction',_0x4bc6e6=>{const _0x2d90ea=a2_0x5aac0e,_0x4e125b=_0x4bc6e6[_0x2d90ea(0x36e)]();if(!_0x4e125b[_0x2d90ea(0x321)]){if(_0x4e125b['table'])_0x4e125b[_0x2d90ea(0x321)]='table';else{if(_0x4e125b['json'])_0x4e125b[_0x2d90ea(0x321)]=_0x2d90ea(0x2ca);else{if(_0x4e125b[_0x2d90ea(0x337)])_0x4e125b[_0x2d90ea(0x321)]=_0x2d90ea(0x337);else _0x4e125b['tsv']&&(_0x4e125b[_0x2d90ea(0x321)]=_0x2d90ea(0x332));}}}_0x4e125b['in']&&!_0x4e125b['database']&&(_0x4e125b[_0x2d90ea(0x1c4)]=_0x4e125b['in']);if(_0x4e125b[_0x2d90ea(0x380)])_0x4e125b['logLevel']=LogLevel[_0x2d90ea(0x286)];else{if(_0x4e125b['debug'])_0x4e125b[_0x2d90ea(0x27c)]=LogLevel['DEBUG'];else _0x4e125b[_0x2d90ea(0x27c)]===undefined&&(_0x4e125b[_0x2d90ea(0x27c)]=LogLevel['INFO']);}});async function createTDXInstance(_0x154567){const _0x102e6c=a2_0x5aac0e,_0x64be69=await GlobalContext[_0x102e6c(0x26e)](_0x154567);return _0x64be69[_0x102e6c(0x19e)](_0x154567),TDX[_0x102e6c(0x1a6)]({'site':_0x64be69[_0x102e6c(0x23b)],'apiKey':_0x64be69['apiKey'],'logLevel':_0x64be69[_0x102e6c(0x27c)],'profile':_0x64be69[_0x102e6c(0x348)]});}const databaseCmd=program['command'](a2_0x5aac0e(0x1c4))[a2_0x5aac0e(0x278)]('db')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x32a)),databaseListAction=async(_0x2a424d,_0x33a5f5)=>{const _0x22f1e0=a2_0x5aac0e,_0x1e816e=new DatabasesCommand(),_0x14d06c=program[_0x22f1e0(0x36e)](),_0x4765c8=await createTDXInstance(_0x14d06c),_0x204157=await _0x1e816e[_0x22f1e0(0x1dc)]({'options':{..._0x14d06c,..._0x33a5f5},'args':_0x2a424d?[_0x2a424d]:[],'tdx':_0x4765c8});process['exit'](_0x204157);};databaseCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x300))[a2_0x5aac0e(0x1df)](databaseListAction),program[a2_0x5aac0e(0x345)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x31e))[a2_0x5aac0e(0x1df)](databaseListAction),program[a2_0x5aac0e(0x345)]('chat\x20[message...]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x30d))['option'](a2_0x5aac0e(0x389),'Agent\x20reference\x20(project-name/agent-name)')[a2_0x5aac0e(0x296)]('--new',a2_0x5aac0e(0x3b9))[a2_0x5aac0e(0x1df)](async(_0x226ed5,_0x563fd7)=>{const _0x46cec0=a2_0x5aac0e,_0x24f7aa=new ChatCommand(),_0x106f02=program[_0x46cec0(0x36e)](),_0x309ace=await createTDXInstance(_0x106f02),_0x5fdb31=await _0x24f7aa['run']({'options':{..._0x106f02,..._0x563fd7},'args':_0x226ed5,'tdx':_0x309ace});process['exit'](_0x5fdb31);});const apiCmd=program[a2_0x5aac0e(0x345)]('api\x20[endpoint]')[a2_0x5aac0e(0x39e)](a2_0x5aac0e(0x29b))[a2_0x5aac0e(0x223)](a2_0x5aac0e(0x232),a2_0x5aac0e(0x2ec))['option'](a2_0x5aac0e(0x1ff),a2_0x5aac0e(0x383),'GET')['option'](a2_0x5aac0e(0x2e4),a2_0x5aac0e(0x2e3))[a2_0x5aac0e(0x296)]('-f,\x20--file\x20<path>',a2_0x5aac0e(0x38c))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x209),a2_0x5aac0e(0x1c2),(_0xae62d0,_0x1d1046)=>{return _0x1d1046?[..._0x1d1046,_0xae62d0]:[_0xae62d0];})[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x31b),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x5aac0e(0x1df)](async(_0x2ccbe3,_0x2538c6)=>{const _0x1c0d14=a2_0x5aac0e;if(!_0x2ccbe3){apiCmd[_0x1c0d14(0x25f)]();return;}const _0x988f18=new ApiCommand(),_0x217900=program[_0x1c0d14(0x36e)](),_0x7aeac1=await createTDXInstance(_0x217900),_0x38abae=await _0x988f18[_0x1c0d14(0x1dc)]({'options':{..._0x217900,..._0x2538c6},'args':[_0x2ccbe3],'tdx':_0x7aeac1});process['exit'](_0x38abae);}),tableCmd=program[a2_0x5aac0e(0x345)]('table')['description'](a2_0x5aac0e(0x1a7)),tableListAction=async(_0x3e8c3e,_0x225f6a)=>{const _0x15e3ad=a2_0x5aac0e,_0x32f319=new TablesCommand(),_0x5e7f35=program[_0x15e3ad(0x36e)](),_0x484a11=await createTDXInstance(_0x5e7f35);_0x225f6a['in']&&(_0x225f6a[_0x15e3ad(0x1c4)]=_0x225f6a['in']);const _0x5eaf63=await _0x32f319['run']({'options':{..._0x5e7f35,..._0x225f6a},'args':_0x3e8c3e?[_0x3e8c3e]:[],'tdx':_0x484a11});process['exit'](_0x5eaf63);};tableCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2f4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x254),a2_0x5aac0e(0x271))['option']('--in\x20<database>',a2_0x5aac0e(0x2b3))[a2_0x5aac0e(0x1df)](tableListAction),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2f6),{'hidden':!![]})['description'](a2_0x5aac0e(0x297))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x254),a2_0x5aac0e(0x271))['option'](a2_0x5aac0e(0x259),a2_0x5aac0e(0x2b3))['action'](tableListAction),program[a2_0x5aac0e(0x345)]('show\x20[table]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x242))['option'](a2_0x5aac0e(0x254),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x259),a2_0x5aac0e(0x2b3))['action'](async(_0x335e6e,_0x4d7479)=>{const _0x21e4c3=a2_0x5aac0e,_0x478fc6=new ShowCommand(),_0xb86919=program[_0x21e4c3(0x36e)](),_0x3c8282=await createTDXInstance(_0xb86919);_0x4d7479['in']&&(_0x4d7479[_0x21e4c3(0x1c4)]=_0x4d7479['in']);const _0x53c620=await _0x478fc6['run']({'options':{..._0xb86919,..._0x4d7479},'args':_0x335e6e?[_0x335e6e]:[],'tdx':_0x3c8282});process[_0x21e4c3(0x29c)](_0x53c620);}),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x386))[a2_0x5aac0e(0x278)](a2_0x5aac0e(0x3b4))[a2_0x5aac0e(0x263)]('Describe\x20table\x20schema')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x254),a2_0x5aac0e(0x32d))[a2_0x5aac0e(0x296)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5aac0e(0x1df)](async(_0x26223b,_0x1c8546)=>{const _0x4f4415=a2_0x5aac0e,_0x52ba1b=new DescribeCommand(),_0x542b16=program['opts'](),_0x42554c=await createTDXInstance(_0x542b16);_0x1c8546['in']&&(_0x1c8546[_0x4f4415(0x1c4)]=_0x1c8546['in']);const _0x41dfe1=await _0x52ba1b['run']({'options':{..._0x542b16,..._0x1c8546},'args':_0x26223b?[_0x26223b]:[],'tdx':_0x42554c});process['exit'](_0x41dfe1);}),program['command'](a2_0x5aac0e(0x338))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2ac))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x254),'Database\x20to\x20query\x20(default:\x20information_schema)')['option']('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option']('--catalog\x20<catalog>',a2_0x5aac0e(0x2dd))['option'](a2_0x5aac0e(0x3b0),a2_0x5aac0e(0x3b6))['option']('--limit\x20<rows>',a2_0x5aac0e(0x1f7),'40')[a2_0x5aac0e(0x1df)](async(_0x3c005c,_0x391dbc)=>{const _0x4dde65=a2_0x5aac0e,_0x556bd5=new QueryCommand(),_0x2d8080=program[_0x4dde65(0x36e)](),_0x2fd175=await createTDXInstance(_0x2d8080);_0x391dbc['in']&&(_0x391dbc[_0x4dde65(0x1c4)]=_0x391dbc['in']);const _0x105a5e=await _0x556bd5['run']({'options':{..._0x2d8080,..._0x391dbc},'args':_0x3c005c?[_0x3c005c]:[],'tdx':_0x2fd175});process[_0x4dde65(0x29c)](_0x105a5e);});const segmentCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2ea))[a2_0x5aac0e(0x278)]('sg')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x288)),segmentListAction=async(_0x4cfdf6,_0x25fe46)=>{const _0x348643=a2_0x5aac0e,_0x5b7b8c=new SegmentsCommand(),_0x2ef772=program[_0x348643(0x36e)](),_0x2024e0=await createTDXInstance(_0x2ef772),_0x5f5982=await _0x5b7b8c['run']({'options':{..._0x2ef772,..._0x25fe46},'args':_0x4cfdf6?[_0x4cfdf6]:[],'tdx':_0x2024e0});process[_0x348643(0x29c)](_0x5f5982);};segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x262))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x236))['option'](a2_0x5aac0e(0x239),a2_0x5aac0e(0x1d8))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x31f),a2_0x5aac0e(0x2ff),'10')['option'](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x1be))[a2_0x5aac0e(0x1df)](segmentListAction),program[a2_0x5aac0e(0x345)]('segments\x20[path]',{'hidden':!![]})[a2_0x5aac0e(0x263)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')['option'](a2_0x5aac0e(0x239),a2_0x5aac0e(0x1d8))[a2_0x5aac0e(0x296)]('--max-depth\x20<depth>',a2_0x5aac0e(0x2ff),'10')['option']('-w,\x20--web','Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x5aac0e(0x1df)](segmentListAction),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1c6),{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x372))[a2_0x5aac0e(0x1df)](async(_0x47200c,_0x1b633b)=>{const _0x1efac6=a2_0x5aac0e,_0x3e8c00=new SegmentUseCommand(),_0x13f9a4=program[_0x1efac6(0x36e)](),_0x126819=await createTDXInstance(_0x13f9a4),_0x42c79f=await _0x3e8c00[_0x1efac6(0x1dc)]({'options':{..._0x13f9a4,..._0x1b633b},'args':[_0x47200c],'tdx':_0x126819});process[_0x1efac6(0x29c)](_0x42c79f);});const segmentViewAction=async(_0x59599f,_0x3b16ab)=>{const _0x45b5b3=a2_0x5aac0e,_0xc996c=new SegmentViewCommand(),_0x5b1a8c=program[_0x45b5b3(0x36e)](),_0x18d449=await createTDXInstance(_0x5b1a8c),_0x292bb5=await _0xc996c['run']({'options':{..._0x5b1a8c,..._0x3b16ab},'args':_0x59599f?[_0x59599f]:[],'tdx':_0x18d449});process[_0x45b5b3(0x29c)](_0x292bb5);};segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x39d))[a2_0x5aac0e(0x263)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x5aac0e(0x296)]('-w,\x20--web',a2_0x5aac0e(0x22c))['action'](segmentViewAction),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x26c),{'hidden':!![]})['alias'](a2_0x5aac0e(0x2c3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x22c))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x241))[a2_0x5aac0e(0x1df)](segmentViewAction),segmentCmd['command'](a2_0x5aac0e(0x24f))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1fb))[a2_0x5aac0e(0x1df)](async(_0x37b6b3,_0x5be9f6)=>{const _0x2bd214=a2_0x5aac0e,_0x2ccf4c=new SegmentDescCommand(),_0x134e03=program[_0x2bd214(0x36e)](),_0x4da4ab=await createTDXInstance(_0x134e03),_0x49d9b7=await _0x2ccf4c[_0x2bd214(0x1dc)]({'options':{..._0x134e03,..._0x5be9f6},'args':_0x37b6b3?[_0x37b6b3]:[],'tdx':_0x4da4ab});process['exit'](_0x49d9b7);}),segmentCmd[a2_0x5aac0e(0x345)]('show\x20[segment_name]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2b4))['action'](async(_0x1af31c,_0x57f76e)=>{const _0x5df846=a2_0x5aac0e,_0x4422a2=new SegmentShowCommand(),_0x38686d=program['opts'](),_0x1194f9=await createTDXInstance(_0x38686d),_0x63494f=await _0x4422a2[_0x5df846(0x1dc)]({'options':{..._0x38686d,..._0x57f76e},'args':_0x1af31c?[_0x1af31c]:[],'tdx':_0x1194f9});process[_0x5df846(0x29c)](_0x63494f);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x32b),{'hidden':!![]})['description'](a2_0x5aac0e(0x1c7))[a2_0x5aac0e(0x1df)](async(_0x383615,_0x46a966)=>{const _0xadb945=a2_0x5aac0e,_0x272cfe=new SegmentFolderListCommand(),_0x53e22e=program[_0xadb945(0x36e)](),_0x14bf88=await createTDXInstance(_0x53e22e),_0x3c87e0=await _0x272cfe[_0xadb945(0x1dc)]({'options':{..._0x53e22e,..._0x46a966},'args':[_0x383615],'tdx':_0x14bf88});process[_0xadb945(0x29c)](_0x3c87e0);});const folderCmd=segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2dc),{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1d9));folderCmd['command'](a2_0x5aac0e(0x33a))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x364))[a2_0x5aac0e(0x1df)](async(_0xff1c7a,_0x2662ab)=>{const _0x1f82ea=a2_0x5aac0e,_0x153980=new SegmentFolderShowCommand(),_0x32b46e=program[_0x1f82ea(0x36e)](),_0x5307a0=await createTDXInstance(_0x32b46e),_0x352ac8=await _0x153980[_0x1f82ea(0x1dc)]({'options':{..._0x32b46e,..._0x2662ab},'args':[_0xff1c7a],'tdx':_0x5307a0});process[_0x1f82ea(0x29c)](_0x352ac8);}),segmentCmd[a2_0x5aac0e(0x345)]('sql\x20[segment_name]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x22d))[a2_0x5aac0e(0x1df)](async(_0x5b933a,_0xd1c998)=>{const _0x5441b9=a2_0x5aac0e,_0x43569b=new SegmentSQLCommand(),_0x16cadc=program[_0x5441b9(0x36e)](),_0x397b05=await createTDXInstance(_0x16cadc),_0x2a1fad=await _0x43569b[_0x5441b9(0x1dc)]({'options':{..._0x16cadc,..._0xd1c998},'args':_0x5b933a?[_0x5b933a]:[],'tdx':_0x397b05});process['exit'](_0x2a1fad);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x38e))['description'](a2_0x5aac0e(0x3a2))[a2_0x5aac0e(0x1df)](async(_0x2cffa7,_0x54ec77)=>{const _0x58bc19=a2_0x5aac0e,_0x5c5139=new SegmentFieldsCommand(),_0x3b5c10=program[_0x58bc19(0x36e)](),_0x504494=await createTDXInstance(_0x3b5c10),_0x1215f3=await _0x5c5139[_0x58bc19(0x1dc)]({'options':{..._0x3b5c10,..._0x54ec77},'args':_0x2cffa7?[_0x2cffa7]:[],'tdx':_0x504494});process[_0x58bc19(0x29c)](_0x1215f3);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x238))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x310))[a2_0x5aac0e(0x296)]('-y,\x20--yes',a2_0x5aac0e(0x367))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x28e))[a2_0x5aac0e(0x1df)](async(_0x3f5198,_0x225650)=>{const _0x47006c=a2_0x5aac0e,_0x4a0480=new SegmentPullCommand(),_0x38b12f=program[_0x47006c(0x36e)](),_0x2e70a2=await createTDXInstance(_0x38b12f),_0x202955=await _0x4a0480[_0x47006c(0x1dc)]({'options':{..._0x38b12f,..._0x225650},'args':_0x3f5198?[_0x3f5198]:[],'tdx':_0x2e70a2});process[_0x47006c(0x29c)](_0x202955);}),segmentCmd['command'](a2_0x5aac0e(0x2a8))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x204))['option'](a2_0x5aac0e(0x202),'Skip\x20confirmation\x20prompts')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x28e))[a2_0x5aac0e(0x296)]('--delete','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x5aac0e(0x1df)](async(_0x242140,_0x1d00cf)=>{const _0x57b033=a2_0x5aac0e,_0x1c7a74=new SegmentPushCommand(),_0x58af80=program[_0x57b033(0x36e)](),_0x50bbc2=await createTDXInstance(_0x58af80),_0x2fc964=await _0x1c7a74[_0x57b033(0x1dc)]({'options':{..._0x58af80,..._0x1d00cf},'args':_0x242140?[_0x242140]:[],'tdx':_0x50bbc2});process['exit'](_0x2fc964);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1aa),{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2ce))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x22b))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x324),a2_0x5aac0e(0x2be))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2b7),a2_0x5aac0e(0x3a5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x351),a2_0x5aac0e(0x217))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x24c),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f3),a2_0x5aac0e(0x39f))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2bf),a2_0x5aac0e(0x260))[a2_0x5aac0e(0x1df)](async(_0xd2536,_0x33288c)=>{const _0x452740=a2_0x5aac0e,_0x35b882=new SegmentCreateCommand(),_0x3f75f6=program[_0x452740(0x36e)](),_0x39018d=await createTDXInstance(_0x3f75f6),_0x45ea34=await _0x35b882[_0x452740(0x1dc)]({'options':{..._0x3f75f6,..._0x33288c},'args':[_0xd2536],'tdx':_0x39018d});process[_0x452740(0x29c)](_0x45ea34);}),segmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x266),{'hidden':!![]})['description']('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option']('--name\x20<new_name>',a2_0x5aac0e(0x344))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x21f))['option']('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x5aac0e(0x2b7),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x351),a2_0x5aac0e(0x368))['option'](a2_0x5aac0e(0x24c),a2_0x5aac0e(0x34a))['action'](async(_0x362f66,_0x4bbff5)=>{const _0x307dd0=a2_0x5aac0e,_0x5d14ae=new SegmentUpdateCommand(),_0x538352=program['opts'](),_0x393a26=await createTDXInstance(_0x538352),_0x2bf922=await _0x5d14ae[_0x307dd0(0x1dc)]({'options':{..._0x538352,..._0x4bbff5},'args':[_0x362f66],'tdx':_0x393a26});process['exit'](_0x2bf922);});const parentCmd=segmentCmd[a2_0x5aac0e(0x345)]('parent',{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x357)),parentListAction=async(_0x2cbd44,_0x467a97)=>{const _0xb3bf0d=a2_0x5aac0e,_0x3d63f=new ParentSegmentListCommand(),_0x26ae94=program[_0xb3bf0d(0x36e)](),_0x3a9c14=await createTDXInstance(_0x26ae94),_0x153637=await _0x3d63f['run']({'options':{..._0x26ae94,..._0x467a97},'args':_0x2cbd44?[_0x2cbd44]:[],'tdx':_0x3a9c14});process[_0xb3bf0d(0x29c)](_0x153637);};parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x5aac0e(0x1df)](parentListAction),segmentCmd[a2_0x5aac0e(0x345)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1a4))[a2_0x5aac0e(0x1df)](parentListAction),parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x38d))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x220))[a2_0x5aac0e(0x296)]('-o,\x20--output\x20<file>','Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x5aac0e(0x296)]('-y,\x20--yes',a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](async(_0x4018a0,_0x3f3830)=>{const _0x35e470=a2_0x5aac0e,_0x4e3677=new ParentSegmentPullCommand(),_0x20d058=program[_0x35e470(0x36e)](),_0x1a4ed8=await createTDXInstance(_0x20d058),_0x528431=await _0x4e3677[_0x35e470(0x1dc)]({'options':{..._0x20d058,..._0x3f3830},'args':_0x4018a0?[_0x4018a0]:[],'tdx':_0x1a4ed8});process[_0x35e470(0x29c)](_0x528431);}),parentCmd[a2_0x5aac0e(0x345)]('push\x20[file]')['description'](a2_0x5aac0e(0x33e))[a2_0x5aac0e(0x296)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')['action'](async(_0x292b6b,_0xedb9f6)=>{const _0x34ca1f=a2_0x5aac0e,_0x340361=new ParentSegmentPushCommand(),_0x46167f=program[_0x34ca1f(0x36e)](),_0x5a2d50=await createTDXInstance(_0x46167f),_0x1389de=await _0x340361[_0x34ca1f(0x1dc)]({'options':{..._0x46167f,..._0xedb9f6},'args':_0x292b6b?[_0x292b6b]:[],'tdx':_0x5a2d50});process[_0x34ca1f(0x29c)](_0x1389de);}),parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x346))[a2_0x5aac0e(0x263)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x5aac0e(0x296)]('--master',a2_0x5aac0e(0x24d))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f5),a2_0x5aac0e(0x229))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23d),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2e8),a2_0x5aac0e(0x2b2))['option'](a2_0x5aac0e(0x243),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x5aac0e(0x2a6))[a2_0x5aac0e(0x1df)](async(_0x11cd7a,_0x48aa92)=>{const _0x2c28a9=a2_0x5aac0e,_0x397182=new ParentSegmentValidateCommand(),_0x25edb0=program[_0x2c28a9(0x36e)](),_0x286e08=await createTDXInstance(_0x25edb0),_0x13dca6=await _0x397182[_0x2c28a9(0x1dc)]({'options':{..._0x25edb0,..._0x48aa92},'args':_0x11cd7a?[_0x11cd7a]:[],'tdx':_0x286e08});process[_0x2c28a9(0x29c)](_0x13dca6);}),parentCmd[a2_0x5aac0e(0x345)]('preview\x20[file]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x22a))['option']('--master',a2_0x5aac0e(0x3a7))['option']('--attribute\x20[name]',a2_0x5aac0e(0x2a9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23d),a2_0x5aac0e(0x334))['option']('--enriched',a2_0x5aac0e(0x1c0))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x243),a2_0x5aac0e(0x293),a2_0x5aac0e(0x2a6))[a2_0x5aac0e(0x1df)](async(_0x2fc909,_0x4f93bb)=>{const _0x30f932=a2_0x5aac0e,_0x20b65d=new ParentSegmentPreviewCommand(),_0x57d340=program[_0x30f932(0x36e)](),_0x5b3db2=await createTDXInstance(_0x57d340),_0x42e5b1=await _0x20b65d[_0x30f932(0x1dc)]({'options':{..._0x57d340,..._0x4f93bb},'args':_0x2fc909?[_0x2fc909]:[],'tdx':_0x5b3db2});process[_0x30f932(0x29c)](_0x42e5b1);}),parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a0))['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x202),a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](async(_0x397862,_0x46c1c0)=>{const _0x33feed=a2_0x5aac0e,_0x305f07=new ParentSegmentRunCommand(),_0x533629=program[_0x33feed(0x36e)](),_0x356874=await createTDXInstance(_0x533629),_0x4b6c5b=await _0x305f07['run']({'options':{..._0x533629,..._0x46c1c0},'args':_0x397862?[_0x397862]:[],'tdx':_0x356874});process['exit'](_0x4b6c5b);});const parentSegmentCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x27a))[a2_0x5aac0e(0x278)]('ps')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2de));parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))['description'](a2_0x5aac0e(0x267))[a2_0x5aac0e(0x1df)](parentListAction),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x38d))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x374))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1c5),a2_0x5aac0e(0x326))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x202),'Skip\x20confirmation\x20prompt')['option'](a2_0x5aac0e(0x1e6),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')['action'](async(_0x2f4d59,_0x3e7872)=>{const _0x3eef5a=a2_0x5aac0e,_0x363c9a=new ParentSegmentPullCommand(),_0x43c686=program[_0x3eef5a(0x36e)](),_0x381b7c=await createTDXInstance(_0x43c686),_0x2c5743=await _0x363c9a[_0x3eef5a(0x1dc)]({'options':{..._0x43c686,..._0x3e7872},'args':_0x2f4d59?[_0x2f4d59]:[],'tdx':_0x381b7c});process['exit'](_0x2c5743);}),parentSegmentCmd['command']('push\x20[name]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x27e))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x202),a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](async(_0x15429e,_0x22f118)=>{const _0x3b9fb6=a2_0x5aac0e,_0x196759=new ParentSegmentPushCommand(),_0x33b82a=program[_0x3b9fb6(0x36e)](),_0x30086c=await createTDXInstance(_0x33b82a),_0x341972=await _0x196759['run']({'options':{..._0x33b82a,..._0x22f118},'args':_0x15429e?[_0x15429e]:[],'tdx':_0x30086c});process['exit'](_0x341972);}),parentSegmentCmd[a2_0x5aac0e(0x345)]('validate\x20[name]')['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x5aac0e(0x29a),a2_0x5aac0e(0x24d))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f5),a2_0x5aac0e(0x229))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23d),a2_0x5aac0e(0x360))[a2_0x5aac0e(0x296)]('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x243),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x5aac0e(0x2a6))[a2_0x5aac0e(0x1df)](async(_0x70ab8f,_0x37baec)=>{const _0x30edce=a2_0x5aac0e,_0xceabec=new ParentSegmentValidateCommand(),_0xb7ab50=program['opts'](),_0x5333d9=await createTDXInstance(_0xb7ab50),_0x4084ad=await _0xceabec[_0x30edce(0x1dc)]({'options':{..._0xb7ab50,..._0x37baec},'args':_0x70ab8f?[_0x70ab8f]:[],'tdx':_0x5333d9});process[_0x30edce(0x29c)](_0x4084ad);}),parentSegmentCmd[a2_0x5aac0e(0x345)]('preview\x20[name]')[a2_0x5aac0e(0x263)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x29a),a2_0x5aac0e(0x3a7))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f5),a2_0x5aac0e(0x2a9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23d),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x5aac0e(0x296)]('--enriched',a2_0x5aac0e(0x1c0))['option'](a2_0x5aac0e(0x243),a2_0x5aac0e(0x293),'-1d')['action'](async(_0x44f301,_0x5145d9)=>{const _0x2be1d0=a2_0x5aac0e,_0x36a065=new ParentSegmentPreviewCommand(),_0x3af34b=program[_0x2be1d0(0x36e)](),_0x35a2f9=await createTDXInstance(_0x3af34b),_0x3968b1=await _0x36a065[_0x2be1d0(0x1dc)]({'options':{..._0x3af34b,..._0x5145d9},'args':_0x44f301?[_0x44f301]:[],'tdx':_0x35a2f9});process['exit'](_0x3968b1);}),parentSegmentCmd['command'](a2_0x5aac0e(0x1a0))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x36d))['option'](a2_0x5aac0e(0x202),a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](async(_0x382f6a,_0x390848)=>{const _0x850a5=a2_0x5aac0e,_0x1676b7=new ParentSegmentRunCommand(),_0x4e673f=program[_0x850a5(0x36e)](),_0x51338e=await createTDXInstance(_0x4e673f),_0x36cd03=await _0x1676b7[_0x850a5(0x1dc)]({'options':{..._0x4e673f,..._0x390848},'args':_0x382f6a?[_0x382f6a]:[],'tdx':_0x51338e});process[_0x850a5(0x29c)](_0x36cd03);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a3))[a2_0x5aac0e(0x263)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x2ed))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x248),a2_0x5aac0e(0x1c1))[a2_0x5aac0e(0x1df)](async(_0x42ada3,_0x41c62a)=>{const _0x2da00a=a2_0x5aac0e,_0x4f78bc=new ParentSegmentFieldsCommand(),_0x5a2bf0=program[_0x2da00a(0x36e)](),_0x1c7bcc=await createTDXInstance(_0x5a2bf0),_0x462d5a=await _0x4f78bc[_0x2da00a(0x1dc)]({'options':{..._0x5a2bf0,..._0x41c62a},'args':_0x42ada3?[_0x42ada3]:[],'tdx':_0x1c7bcc});process[_0x2da00a(0x29c)](_0x462d5a);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x399))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x268))[a2_0x5aac0e(0x296)]('-w,\x20--web',a2_0x5aac0e(0x1b4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x2ed))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x248),'Output\x20as\x20JSON\x20Lines')[a2_0x5aac0e(0x1df)](async(_0x4da2c3,_0x40e423)=>{const _0x1a0a6a=a2_0x5aac0e,_0x14f7e5=new ParentSegmentViewCommand(),_0x476e73=program[_0x1a0a6a(0x36e)](),_0x48a92f=await createTDXInstance(_0x476e73),_0x53ec47=await _0x14f7e5['run']({'options':{..._0x476e73,..._0x40e423},'args':_0x4da2c3?[_0x4da2c3]:[],'tdx':_0x48a92f});process[_0x1a0a6a(0x29c)](_0x53ec47);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x393))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x5aac0e(0x28c),'Output\x20as\x20JSON')['option'](a2_0x5aac0e(0x248),a2_0x5aac0e(0x1c1))[a2_0x5aac0e(0x1df)](async(_0x2986c9,_0x1bf86b)=>{const _0x36d52c=new ParentSegmentDescCommand(),_0x4da930=program['opts'](),_0x13601f=await createTDXInstance(_0x4da930),_0x5aa212=await _0x36d52c['run']({'options':{..._0x4da930,..._0x1bf86b},'args':_0x2986c9?[_0x2986c9]:[],'tdx':_0x13601f});process['exit'](_0x5aa212);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x353))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x394))['option'](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x2ed))['option'](a2_0x5aac0e(0x248),a2_0x5aac0e(0x1c1))[a2_0x5aac0e(0x1df)](async(_0x5b4348,_0x5ca1d3)=>{const _0x1a6cec=a2_0x5aac0e,_0x13b223=new ParentSegmentSQLCommand(),_0x2ab6e9=program['opts'](),_0x154ef3=await createTDXInstance(_0x2ab6e9),_0x58a888=await _0x13b223[_0x1a6cec(0x1dc)]({'options':{..._0x2ab6e9,..._0x5ca1d3},'args':_0x5b4348?[_0x5b4348]:[],'tdx':_0x154ef3});process[_0x1a6cec(0x29c)](_0x58a888);}),parentSegmentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x305))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x32e))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x213),a2_0x5aac0e(0x379))['option'](a2_0x5aac0e(0x28c),a2_0x5aac0e(0x2ed))[a2_0x5aac0e(0x296)]('--jsonl',a2_0x5aac0e(0x1c1))[a2_0x5aac0e(0x1df)](async(_0x572b3d,_0x561e3d)=>{const _0x512f6f=a2_0x5aac0e,_0x3dd1f0=new ParentSegmentShowCommand(),_0x41e570=program[_0x512f6f(0x36e)](),_0x353759=await createTDXInstance(_0x41e570),_0x1cb8bb=await _0x3dd1f0['run']({'options':{..._0x41e570,..._0x561e3d},'args':_0x572b3d?[_0x572b3d]:[],'tdx':_0x353759});process['exit'](_0x1cb8bb);}),parentSegmentCmd['command'](a2_0x5aac0e(0x352))['description'](a2_0x5aac0e(0x384))[a2_0x5aac0e(0x1df)](async(_0x4e4eb6,_0x259695)=>{const _0x1bd7ad=a2_0x5aac0e,_0x258c16=new UseCommand(),_0xa4612d=program['opts'](),_0x2445c8=_0x4e4eb6?[_0x1bd7ad(0x329),_0x4e4eb6]:[],_0x55ad34=await _0x258c16[_0x1bd7ad(0x1dc)]({'options':{..._0xa4612d,..._0x259695},'args':_0x2445c8,'tdx':null});process[_0x1bd7ad(0x29c)](_0x55ad34);}),parentCmd[a2_0x5aac0e(0x345)]('create\x20<name>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x29f))[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x2eb),'Master\x20database\x20name')['requiredOption']('--table\x20<table>',a2_0x5aac0e(0x276))['option'](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x2d5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1e7),a2_0x5aac0e(0x1d7))['option'](a2_0x5aac0e(0x1fe),a2_0x5aac0e(0x2a4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2a7),a2_0x5aac0e(0x363))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1b7),a2_0x5aac0e(0x2c5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1af),'Attributes\x20from\x20JSON\x20file')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x253),'Behaviors\x20as\x20JSON\x20string')['option'](a2_0x5aac0e(0x34d),a2_0x5aac0e(0x264))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x205),a2_0x5aac0e(0x316))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2f1),a2_0x5aac0e(0x320))['action'](async(_0x56405c,_0x4934dc)=>{const _0x22f043=new ParentSegmentCreateCommand(),_0x3e991f=program['opts'](),_0x5dfbd9=await createTDXInstance(_0x3e991f),_0x10a4d4=await _0x22f043['run']({'options':{..._0x3e991f,..._0x4934dc},'args':[_0x56405c],'tdx':_0x5dfbd9});process['exit'](_0x10a4d4);}),parentCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1f9))['description']('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x21f))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1e7),a2_0x5aac0e(0x2f9))['option'](a2_0x5aac0e(0x1fe),'Updated\x20schedule\x20option')[a2_0x5aac0e(0x296)]('--timezone\x20<tz>','Updated\x20timezone')[a2_0x5aac0e(0x296)]('--add-attributes\x20<json>','Add\x20attributes\x20as\x20JSON\x20string')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2a0),a2_0x5aac0e(0x25c))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1f0),a2_0x5aac0e(0x1b8))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x392),a2_0x5aac0e(0x1fd))[a2_0x5aac0e(0x1df)](async(_0x5a67b5,_0x25ed4d)=>{const _0xdd4584=a2_0x5aac0e,_0x2167f8=new ParentSegmentUpdateCommand(),_0x3418c3=program[_0xdd4584(0x36e)](),_0x2463c0=await createTDXInstance(_0x3418c3),_0x1acaaa=await _0x2167f8[_0xdd4584(0x1dc)]({'options':{..._0x3418c3,..._0x25ed4d},'args':[_0x5a67b5],'tdx':_0x2463c0});process[_0xdd4584(0x29c)](_0x1acaaa);}),folderCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x30e))[a2_0x5aac0e(0x263)]('Create\x20segment\x20folder')['option'](a2_0x5aac0e(0x2bb),a2_0x5aac0e(0x251))['option'](a2_0x5aac0e(0x22e),a2_0x5aac0e(0x25a))['action'](async(_0x44b7d5,_0x405d57,_0x394011)=>{const _0x246de6=new SegmentFolderCreateCommand(),_0x1fab9f=program['opts'](),_0x20ad7a=await createTDXInstance(_0x1fab9f),_0x34c3b6=await _0x246de6['run']({'options':{..._0x1fab9f,..._0x394011},'args':[_0x44b7d5,_0x405d57],'tdx':_0x20ad7a});process['exit'](_0x34c3b6);}),program['command'](a2_0x5aac0e(0x30a))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2f7))[a2_0x5aac0e(0x1df)](async(_0x5a5297,_0x141e67)=>{const _0x34caeb=a2_0x5aac0e,_0x1ec0c4=new ActivationsCommand(),_0x1ec370=program[_0x34caeb(0x36e)](),_0x25ef91=await createTDXInstance(_0x1ec370),_0x1734d3=await _0x1ec0c4[_0x34caeb(0x1dc)]({'options':{..._0x1ec370,..._0x141e67},'args':[_0x5a5297],'tdx':_0x25ef91});process[_0x34caeb(0x29c)](_0x1734d3);});const workflowCmd=program['command']('workflow')[a2_0x5aac0e(0x278)]('wf')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x282)),wfProjectCmd=workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2fb))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x34f)),wfProjectListAction=async(_0x38e8a9,_0x49f7f6)=>{const _0xe80787=a2_0x5aac0e,_0x90bde9=new WorkflowProjectsCommand(),_0x22aaa5=program['opts'](),_0x45f485=await createTDXInstance(_0x22aaa5),_0x392063=await _0x90bde9[_0xe80787(0x1dc)]({'options':{..._0x22aaa5,..._0x49f7f6},'args':_0x38e8a9?[_0x38e8a9]:[],'tdx':_0x45f485});process[_0xe80787(0x29c)](_0x392063);};wfProjectCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x5aac0e(0x1df)](wfProjectListAction),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x333))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2f8))[a2_0x5aac0e(0x1df)](wfProjectListAction);const wfWorkflowListAction=async(_0x4a9d69,_0x3b8d4d)=>{const _0x13e7cd=a2_0x5aac0e,_0x20a680=new WorkflowWorkflowsCommand(),_0x322439=program[_0x13e7cd(0x36e)](),_0x3e5db2=await createTDXInstance(_0x322439),_0x4a393b=await _0x20a680[_0x13e7cd(0x1dc)]({'options':{..._0x322439,..._0x3b8d4d},'args':_0x4a9d69?[_0x4a9d69]:[],'tdx':_0x3e5db2});process[_0x13e7cd(0x29c)](_0x4a393b);};workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2da))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x38f))[a2_0x5aac0e(0x1df)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x5aac0e(0x1f6))['description'](a2_0x5aac0e(0x2e2)),wfSessionListAction=async(_0x4547ea,_0x5e337c)=>{const _0x49cbda=a2_0x5aac0e,_0x4a32fc=new WorkflowSessionsCommand(),_0x4e55d8=program[_0x49cbda(0x36e)](),_0x5c4c83=await createTDXInstance(_0x4e55d8),_0x127944=await _0x4a32fc['run']({'options':{..._0x4e55d8,..._0x5e337c},'args':_0x4547ea?[_0x4547ea]:[],'tdx':_0x5c4c83});process[_0x49cbda(0x29c)](_0x127944);};wfSessionCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x314))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x21c))[a2_0x5aac0e(0x296)]('--status\x20<status>',a2_0x5aac0e(0x33f))[a2_0x5aac0e(0x296)]('--from\x20<timestamp>',a2_0x5aac0e(0x319))[a2_0x5aac0e(0x296)]('--to\x20<timestamp>',a2_0x5aac0e(0x274))[a2_0x5aac0e(0x1df)](wfSessionListAction),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2c9))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x307))[a2_0x5aac0e(0x296)]('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x341),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x5aac0e(0x265),a2_0x5aac0e(0x274))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x436c08,_0x33563d)=>{const _0x2a64bf=a2_0x5aac0e,_0xfcb59e=new WorkflowAttemptsCommand(),_0x11e155=program['opts'](),_0x50c5b5=await createTDXInstance(_0x11e155),_0xa5f8e3=await _0xfcb59e[_0x2a64bf(0x1dc)]({'options':{..._0x11e155,..._0x33563d},'args':_0x436c08?[_0x436c08]:[],'tdx':_0x50c5b5});process['exit'](_0xa5f8e3);},attemptCmd=workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x342))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x312))[a2_0x5aac0e(0x221)](a2_0x5aac0e(0x2c1),a2_0x5aac0e(0x387))[a2_0x5aac0e(0x221)](a2_0x5aac0e(0x2fa),a2_0x5aac0e(0x35b))[a2_0x5aac0e(0x221)](a2_0x5aac0e(0x339),a2_0x5aac0e(0x1c9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37f),a2_0x5aac0e(0x3a8))['option'](a2_0x5aac0e(0x317),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x5aac0e(0x2d6),a2_0x5aac0e(0x2cb))['option'](a2_0x5aac0e(0x2d4),a2_0x5aac0e(0x2a3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x377),a2_0x5aac0e(0x1f4))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x35e),a2_0x5aac0e(0x1e0))[a2_0x5aac0e(0x1df)](async(_0x1f4aff,_0x5a15de,_0x2b06de,_0x954820)=>{const _0x37ba60=a2_0x5aac0e;if(_0x1f4aff===_0x37ba60(0x269)){await wfAttemptListAction(_0x5a15de,_0x954820);return;}if(!_0x1f4aff){attemptCmd[_0x37ba60(0x25f)]();return;}const _0x5246c1=program[_0x37ba60(0x36e)](),_0x445008=await createTDXInstance(_0x5246c1);let _0x1f9bef=0x0;if(!_0x5a15de){const _0x43ad81=new WorkflowAttemptCommand();_0x1f9bef=await _0x43ad81[_0x37ba60(0x1dc)]({'options':{..._0x5246c1,..._0x954820},'args':[_0x1f4aff],'tdx':_0x445008});}else{if(_0x5a15de===_0x37ba60(0x1e4)){const _0x44d1f3=new WorkflowLogsCommand();_0x1f9bef=await _0x44d1f3[_0x37ba60(0x1dc)]({'options':{..._0x5246c1,..._0x954820},'args':_0x2b06de?[_0x1f4aff,_0x2b06de]:[_0x1f4aff],'tdx':_0x445008});}else{if(_0x5a15de===_0x37ba60(0x2b6)){const _0x38c90a=new WorkflowTasksCommand();_0x1f9bef=await _0x38c90a['run']({'options':{..._0x5246c1,..._0x954820},'args':[_0x1f4aff],'tdx':_0x445008});}else{if(_0x5a15de===_0x37ba60(0x349)){const _0x259918=new WorkflowKillCommand();_0x1f9bef=await _0x259918['run']({'options':{..._0x5246c1,..._0x954820},'args':[_0x1f4aff],'tdx':_0x445008});}else{if(_0x5a15de===_0x37ba60(0x39a)){const _0xd76031=new WorkflowRetryCommand();_0x1f9bef=await _0xd76031[_0x37ba60(0x1dc)]({'options':{..._0x5246c1,..._0x954820},'args':[_0x37ba60(0x1fa)+_0x1f4aff],'tdx':_0x445008});}else console['error'](_0x37ba60(0x29e)+_0x5a15de),console[_0x37ba60(0x1b1)](_0x37ba60(0x2e6)),_0x1f9bef=0x1;}}}}process[_0x37ba60(0x29c)](_0x1f9bef);});attemptCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x314))[a2_0x5aac0e(0x263)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x35e),'Include\x20retried\x20attempts')[a2_0x5aac0e(0x1df)](wfAttemptListAction),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2b0))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2ef))[a2_0x5aac0e(0x296)]('--include-retried',a2_0x5aac0e(0x290))[a2_0x5aac0e(0x1df)](wfAttemptListAction),workflowCmd[a2_0x5aac0e(0x345)]('retry\x20<session-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2e5))[a2_0x5aac0e(0x296)]('--from-task\x20<task>',a2_0x5aac0e(0x1a5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2d4),a2_0x5aac0e(0x2ad))['action'](async(_0x5c74b1,_0x338d4a)=>{const _0x45bdbc=a2_0x5aac0e,_0x41163f=new WorkflowRetryCommand(),_0x149ef1=program['opts'](),_0x22f779=await createTDXInstance(_0x149ef1),_0x4444c0=await _0x41163f['run']({'options':{..._0x149ef1,..._0x338d4a},'args':[_0x5c74b1],'tdx':_0x22f779});process[_0x45bdbc(0x29c)](_0x4444c0);}),workflowCmd[a2_0x5aac0e(0x345)]('run\x20<workflow>')['description'](a2_0x5aac0e(0x373))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x378),a2_0x5aac0e(0x20a),(_0xd6b8fc,_0x4acc11=[])=>[..._0x4acc11,_0xd6b8fc],[])[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x381),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x5aac0e(0x1df)](async(_0x481832,_0xe35e44)=>{const _0x29a824=a2_0x5aac0e,_0x2b1ba9=new WorkflowRunCommand(),_0x1f9a33=program['opts'](),_0x17d9f0=await createTDXInstance(_0x1f9a33),_0x55e366=await _0x2b1ba9['run']({'options':{..._0x1f9a33,..._0xe35e44},'args':[_0x481832],'tdx':_0x17d9f0});process[_0x29a824(0x29c)](_0x55e366);}),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x366))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x3b3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2cc),a2_0x5aac0e(0x350))[a2_0x5aac0e(0x1df)](async(_0x20fdfb,_0x16dfd8,_0x2a09b2)=>{const _0x505783=a2_0x5aac0e,_0x2339f6=new WorkflowDownloadCommand(),_0x1e54bd=program[_0x505783(0x36e)](),_0x1452eb=await createTDXInstance(_0x1e54bd),_0x2678f4=await _0x2339f6[_0x505783(0x1dc)]({'options':{..._0x1e54bd,..._0x2a09b2},'args':[_0x20fdfb,_0x16dfd8||'.'],'tdx':_0x1452eb});process[_0x505783(0x29c)](_0x2678f4);}),workflowCmd['command'](a2_0x5aac0e(0x35a))[a2_0x5aac0e(0x263)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')['option'](a2_0x5aac0e(0x343),'Override\x20project\x20name')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2cc),a2_0x5aac0e(0x2aa))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x31d),a2_0x5aac0e(0x1ac))[a2_0x5aac0e(0x1df)](async(_0x47127d,_0x4d5a2b)=>{const _0x360766=a2_0x5aac0e,_0x5b9447=new WorkflowPushCommand(),_0x491415=program[_0x360766(0x36e)](),_0x34875e=await createTDXInstance(_0x491415),_0x16df09=await _0x5b9447[_0x360766(0x1dc)]({'options':{..._0x491415,..._0x4d5a2b},'args':_0x47127d?[_0x47127d]:[],'tdx':_0x34875e});process[_0x360766(0x29c)](_0x16df09);}),workflowCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x36b))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x280))[a2_0x5aac0e(0x1df)](async(_0x4a9f83,_0x24f86e)=>{const _0x42cc33=a2_0x5aac0e,_0x5bd969=new WorkflowDeleteCommand(),_0x5119a4=program['opts'](),_0x52774c=await createTDXInstance(_0x5119a4),_0x44fb6e=await _0x5bd969[_0x42cc33(0x1dc)]({'options':{..._0x5119a4,..._0x24f86e},'args':[_0x4a9f83],'tdx':_0x52774c});process[_0x42cc33(0x29c)](_0x44fb6e);});const jobCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x34e))[a2_0x5aac0e(0x263)]('Job\x20management\x20commands'),jobListAction=async _0x30e405=>{const _0x30ac70=a2_0x5aac0e,_0x5c62a0=new JobListCommand(),_0x49d13b=program[_0x30ac70(0x36e)](),_0x32a3de=await createTDXInstance(_0x49d13b),_0x42f702=await _0x5c62a0[_0x30ac70(0x1dc)]({'options':{..._0x49d13b,..._0x30e405},'args':[],'tdx':_0x32a3de});process[_0x30ac70(0x29c)](_0x42f702);};jobCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x269))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x22f))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1b5),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2d3),{'hidden':!![]})['description']('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')['option']('--status\x20<status>',a2_0x5aac0e(0x36f))[a2_0x5aac0e(0x1df)](jobListAction),jobCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x20b))[a2_0x5aac0e(0x263)]('Show\x20job\x20details')[a2_0x5aac0e(0x1df)](async(_0x1ab0f0,_0x4e163a)=>{const _0x4a4cad=a2_0x5aac0e,_0x5bfce6=new JobShowCommand(),_0x3bf3dd=program[_0x4a4cad(0x36e)](),_0x26bf31=await createTDXInstance(_0x3bf3dd),_0x27adba=await _0x5bfce6[_0x4a4cad(0x1dc)]({'options':{..._0x3bf3dd,..._0x4e163a},'args':[_0x1ab0f0],'tdx':_0x26bf31});process[_0x4a4cad(0x29c)](_0x27adba);}),jobCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x3aa))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x27f))[a2_0x5aac0e(0x1df)](async(_0x50ca84,_0x586586)=>{const _0x5158d9=a2_0x5aac0e,_0x409987=new JobKillCommand(),_0x10e792=program['opts'](),_0x583185=await createTDXInstance(_0x10e792),_0x2f6f6d=await _0x409987[_0x5158d9(0x1dc)]({'options':{..._0x10e792,..._0x586586},'args':[_0x50ca84],'tdx':_0x583185});process[_0x5158d9(0x29c)](_0x2f6f6d);}),jobCmd['command'](a2_0x5aac0e(0x35c))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x335))['option'](a2_0x5aac0e(0x2f5),a2_0x5aac0e(0x24a),'trino')['option'](a2_0x5aac0e(0x3b0),a2_0x5aac0e(0x1ec))[a2_0x5aac0e(0x296)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x5aac0e(0x2b8))[a2_0x5aac0e(0x1df)](async(_0x36ee7e,_0x1716e5)=>{const _0x5a6ed6=a2_0x5aac0e,_0x215b1a=new JobSubmitCommand(),_0x215b8f=program[_0x5a6ed6(0x36e)](),_0x1a2225=await createTDXInstance(_0x215b8f),_0x46373b=await _0x215b1a[_0x5a6ed6(0x1dc)]({'options':{..._0x215b8f,..._0x1716e5},'args':_0x36ee7e?[_0x36ee7e]:[],'tdx':_0x1a2225});process[_0x5a6ed6(0x29c)](_0x46373b);}),jobCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x301))['description']('Get\x20job\x20results')[a2_0x5aac0e(0x1df)](async(_0x2257b9,_0x579392)=>{const _0x340e53=a2_0x5aac0e,_0x3ab1d1=new JobResultCommand(),_0x320adf=program[_0x340e53(0x36e)](),_0x419898=await createTDXInstance(_0x320adf),_0x4e0047=await _0x3ab1d1['run']({'options':{..._0x320adf,..._0x579392},'args':[_0x2257b9],'tdx':_0x419898});process['exit'](_0x4e0047);});const llmCmd=program['command'](a2_0x5aac0e(0x218))['description'](a2_0x5aac0e(0x3b7));llmCmd['command'](a2_0x5aac0e(0x23a))['description'](a2_0x5aac0e(0x30f))[a2_0x5aac0e(0x1df)](async(_0x216737,_0x3b1b8f)=>{const _0xc9e8ad=a2_0x5aac0e,_0x17d750=new LLMUseCommand(),_0x3c1fc5=program[_0xc9e8ad(0x36e)](),_0x46b870=await createTDXInstance(_0x3c1fc5),_0x575a35=await _0x17d750['run']({'options':{..._0x3c1fc5,..._0x3b1b8f},'args':[_0x216737],'tdx':_0x46b870});process[_0xc9e8ad(0x29c)](_0x575a35);}),llmCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x33d))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x336))[a2_0x5aac0e(0x1df)](async _0x1ca4b2=>{const _0x42c870=a2_0x5aac0e,_0x36e811=new LLMModelsCommand(),_0x5e745a=program['opts'](),_0x12fb7f=await createTDXInstance(_0x5e745a),_0x1d1b93=await _0x36e811[_0x42c870(0x1dc)]({'options':{..._0x5e745a,..._0x1ca4b2},'args':[],'tdx':_0x12fb7f});process[_0x42c870(0x29c)](_0x1d1b93);});const projectCmd=llmCmd['command'](a2_0x5aac0e(0x2fb))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x370)),llmProjectListAction=async(_0x52091c,_0x47e112)=>{const _0x4d1717=a2_0x5aac0e,_0x3ce7b7=new LLMProjectsCommand(),_0x23fff3=program[_0x4d1717(0x36e)](),_0x49df0e=await createTDXInstance(_0x23fff3),_0x3d8d0d=await _0x3ce7b7[_0x4d1717(0x1dc)]({'options':{..._0x23fff3,..._0x47e112},'args':_0x52091c?[_0x52091c]:[],'tdx':_0x49df0e});process[_0x4d1717(0x29c)](_0x3d8d0d);};projectCmd['command'](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')['option'](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x2fd))['action'](llmProjectListAction),llmCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x333))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x244))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x2fd))[a2_0x5aac0e(0x1df)](llmProjectListAction),projectCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x362))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x212))[a2_0x5aac0e(0x296)]('--description\x20<text>',a2_0x5aac0e(0x23e))[a2_0x5aac0e(0x1df)](async(_0x26b666,_0x4e0ebc)=>{const _0x284de4=a2_0x5aac0e,_0x10b2d3=new LLMProjectCreateCommand(),_0x168954=program[_0x284de4(0x36e)](),_0xcf394c=await createTDXInstance(_0x168954),_0x18189e=await _0x10b2d3[_0x284de4(0x1dc)]({'options':{..._0x168954,..._0x4e0ebc},'args':[_0x26b666],'tdx':_0xcf394c});process['exit'](_0x18189e);}),projectCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x340))[a2_0x5aac0e(0x263)]('Delete\x20an\x20LLM\x20project')['action'](async(_0xb6d331,_0x4eeafe)=>{const _0x32b413=a2_0x5aac0e,_0x1a3f2e=new LLMProjectDeleteCommand(),_0xbf7e66=program[_0x32b413(0x36e)](),_0x1c27b6=await createTDXInstance(_0xbf7e66),_0x48b16d=await _0x1a3f2e[_0x32b413(0x1dc)]({'options':{..._0xbf7e66,..._0x4eeafe},'args':[_0xb6d331],'tdx':_0x1c27b6});process[_0x32b413(0x29c)](_0x48b16d);}),projectCmd['command'](a2_0x5aac0e(0x1a8))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x318))[a2_0x5aac0e(0x296)]('-o,\x20--output\x20<folder>',a2_0x5aac0e(0x308))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x249))[a2_0x5aac0e(0x1df)](async(_0x25a79b,_0x5977b6)=>{const _0x37b164=a2_0x5aac0e,_0x5d489c=new LLMProjectBackupCommand(),_0x26aec2=program['opts'](),_0x41b648=await createTDXInstance(_0x26aec2),_0x16eb3b=await _0x5d489c[_0x37b164(0x1dc)]({'options':{..._0x26aec2,..._0x5977b6},'args':[_0x25a79b],'tdx':_0x41b648});process['exit'](_0x16eb3b);}),projectCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2cf))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1b6))['option']('--name\x20<new-name>',a2_0x5aac0e(0x2a1))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x285))[a2_0x5aac0e(0x1df)](async(_0x3f3387,_0x3e3e24)=>{const _0x828f4e=a2_0x5aac0e,_0x2bfe40=new LLMProjectRestoreCommand(),_0x72ff5e=program[_0x828f4e(0x36e)](),_0x2a74a4=await createTDXInstance(_0x72ff5e),_0xf52d1b=await _0x2bfe40[_0x828f4e(0x1dc)]({'options':{..._0x72ff5e,..._0x3e3e24},'args':[_0x3f3387],'tdx':_0x2a74a4});process['exit'](_0xf52d1b);});const llmAgentListAction=async(_0x3c96ae,_0x494014)=>{const _0x101c2a=a2_0x5aac0e,_0x2fc8e1=new LLMAgentsCommand(),_0x20dd80=program[_0x101c2a(0x36e)](),_0xdae50c=await createTDXInstance(_0x20dd80),_0xb56960=await _0x2fc8e1[_0x101c2a(0x1dc)]({'options':{..._0x20dd80,..._0x494014},'args':_0x3c96ae?[_0x3c96ae]:[],'tdx':_0xdae50c});process[_0x101c2a(0x29c)](_0xb56960);};llmCmd[a2_0x5aac0e(0x345)]('agents\x20[pattern]')['description'](a2_0x5aac0e(0x281))[a2_0x5aac0e(0x296)]('-w,\x20--web',a2_0x5aac0e(0x359))[a2_0x5aac0e(0x1df)](llmAgentListAction),program[a2_0x5aac0e(0x345)]('agents\x20[pattern]')[a2_0x5aac0e(0x263)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x359))[a2_0x5aac0e(0x1df)](llmAgentListAction),llmCmd[a2_0x5aac0e(0x345)]('history\x20[chat-id]')[a2_0x5aac0e(0x263)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x245),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')['action'](async(_0x164c7c,_0x114b9e)=>{const _0x3e300f=a2_0x5aac0e,_0x202555=new LLMHistoryCommand(),_0x329c24=program['opts'](),_0x679fe=await createTDXInstance(_0x329c24),_0x4b0513=await _0x202555[_0x3e300f(0x1dc)]({'options':{..._0x329c24,..._0x114b9e},'args':_0x164c7c?[_0x164c7c]:[],'tdx':_0x679fe});process[_0x3e300f(0x29c)](_0x4b0513);}),llmCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x287))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x234))['option']('--port\x20<number>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x5aac0e(0x1b3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1c3),a2_0x5aac0e(0x240))['option']('--agent\x20<name>',a2_0x5aac0e(0x361))[a2_0x5aac0e(0x1df)](async _0x55c1e7=>{const _0x4c54c3=a2_0x5aac0e,_0x27ac00=new LLMProxyCommand(),_0x406054=program[_0x4c54c3(0x36e)](),_0x5441f0=await createTDXInstance(_0x406054),_0x3c6e26={..._0x55c1e7,'port':_0x55c1e7[_0x4c54c3(0x365)]?parseInt(_0x55c1e7[_0x4c54c3(0x365)],0xa):undefined},_0x5035f4=await _0x27ac00['run']({'options':{..._0x406054,..._0x3c6e26},'args':[],'tdx':_0x5441f0});process[_0x4c54c3(0x29c)](_0x5035f4);}),program[a2_0x5aac0e(0x345)]('claude\x20[args...]')[a2_0x5aac0e(0x28d)]('[options]\x20--\x20[claude-code-args...]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x261))[a2_0x5aac0e(0x296)]('--model\x20<name>',a2_0x5aac0e(0x19d),a2_0x5aac0e(0x39c))[a2_0x5aac0e(0x296)]('-c,\x20--continue',a2_0x5aac0e(0x2bc))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3a1),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1cb),a2_0x5aac0e(0x309))[a2_0x5aac0e(0x247)]()[a2_0x5aac0e(0x20f)](!![])[a2_0x5aac0e(0x223)](a2_0x5aac0e(0x232),a2_0x5aac0e(0x1cf))[a2_0x5aac0e(0x1df)](async(_0x2723db,_0x167c9e)=>{const _0x56ad43=a2_0x5aac0e,_0x32416d=program['opts'](),_0x5f5c7d=Array['isArray'](_0x2723db)?_0x2723db:[];if(_0x5f5c7d[0x0]===_0x56ad43(0x1bb)){const _0x4c8ffd=new ClaudeStatuslineCommand(),_0x1fec31=await _0x4c8ffd[_0x56ad43(0x1dc)]({'options':{..._0x32416d,..._0x167c9e},'args':_0x5f5c7d[_0x56ad43(0x222)](0x1),'tdx':null});process[_0x56ad43(0x29c)](_0x1fec31);}if(_0x5f5c7d[0x0]===_0x56ad43(0x28d)){const _0x3d01da=new ClaudeUsageCommand(),_0x110555=await _0x3d01da['run']({'options':{..._0x32416d,..._0x167c9e},'args':_0x5f5c7d[_0x56ad43(0x222)](0x1),'tdx':null});process[_0x56ad43(0x29c)](_0x110555);}const _0x625784=new ClaudeCommand(),_0x25f8e8=await createTDXInstance(_0x32416d),_0x16c506=await _0x625784['run']({'options':{..._0x32416d,..._0x167c9e},'args':_0x5f5c7d,'tdx':_0x25f8e8});process['exit'](_0x16c506);}),program['command'](a2_0x5aac0e(0x1e9))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x230))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x26f),'Clear\x20session\x20context')['action'](async _0x15126b=>{const _0x47125e=a2_0x5aac0e,_0x3770e7=new ContextCommand(),_0x38447f=program['opts'](),_0x2422df=await _0x3770e7[_0x47125e(0x1dc)]({'options':{..._0x38447f,..._0x15126b},'args':[],'tdx':null});process[_0x47125e(0x29c)](_0x2422df);}),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x371))['description'](a2_0x5aac0e(0x215))[a2_0x5aac0e(0x296)]('--clear',a2_0x5aac0e(0x1d0))[a2_0x5aac0e(0x1df)](async(_0x240008,_0xdf2ccf,_0x43881d)=>{const _0x9ca3db=a2_0x5aac0e,_0x18ff5b=new UseCommand(),_0x257b80=program[_0x9ca3db(0x36e)](),_0x55b8ec=[];if(_0x240008)_0x55b8ec[_0x9ca3db(0x207)](_0x240008);if(_0xdf2ccf)_0x55b8ec[_0x9ca3db(0x207)](_0xdf2ccf);const _0x285907=await _0x18ff5b[_0x9ca3db(0x1dc)]({'options':{..._0x257b80,..._0x43881d},'args':_0x55b8ec,'tdx':null});process[_0x9ca3db(0x29c)](_0x285907);}),program['command'](a2_0x5aac0e(0x255))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x3a0))['option'](a2_0x5aac0e(0x245),a2_0x5aac0e(0x3ae))[a2_0x5aac0e(0x1df)](async _0x10154f=>{const _0x27fffc=a2_0x5aac0e,_0x9c1fbb=new ChatsCommand(),_0x465641=program[_0x27fffc(0x36e)](),_0x85c861=await createTDXInstance(_0x465641),_0x215eee=await _0x9c1fbb[_0x27fffc(0x1dc)]({'options':{..._0x465641,..._0x10154f},'args':[],'tdx':_0x85c861});process[_0x27fffc(0x29c)](_0x215eee);});const authCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x3b2))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2cd));async function runAuthStatusCommand(_0x434ae1){const _0x1c9046=a2_0x5aac0e,_0x1d60c7=new AuthStatusCommand(),_0x4c58b6=program[_0x1c9046(0x36e)](),_0x154f44=await createTDXInstance(_0x4c58b6),_0x308874=await _0x1d60c7[_0x1c9046(0x1dc)]({'options':{..._0x4c58b6,..._0x434ae1},'args':[],'tdx':_0x154f44});process['exit'](_0x308874);}authCmd[a2_0x5aac0e(0x1df)](runAuthStatusCommand),authCmd[a2_0x5aac0e(0x345)]('status')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x369))['action'](runAuthStatusCommand),authCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x275))['description'](a2_0x5aac0e(0x397))[a2_0x5aac0e(0x223)](a2_0x5aac0e(0x232),a2_0x5aac0e(0x1d1))[a2_0x5aac0e(0x1df)](async _0x820f2=>{const _0x41e35a=a2_0x5aac0e,_0x354d38=new AuthSetupCommand(),_0x1e2b70=program[_0x41e35a(0x36e)](),_0x37a0bf=await createTDXInstance(_0x1e2b70),_0xf0fe35=await _0x354d38['run']({'options':{..._0x1e2b70,..._0x820f2},'args':[],'tdx':_0x37a0bf});process['exit'](_0xf0fe35);}),authCmd[a2_0x5aac0e(0x345)]('clear')[a2_0x5aac0e(0x263)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x5aac0e(0x223)]('after','\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_0x5aac0e(0x1df)](async _0x4e42f8=>{const _0x27232d=a2_0x5aac0e,_0x3c25e1=new AuthClearCommand(),_0x2664b9=program[_0x27232d(0x36e)](),_0x24ba17=await _0x3c25e1[_0x27232d(0x1dc)]({'options':{..._0x2664b9,..._0x4e42f8},'args':[],'tdx':null});process[_0x27232d(0x29c)](_0x24ba17);});const userCmd=program['command']('user')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x228)),userListAction=async _0xd0ffc2=>{const _0x7fe66d=a2_0x5aac0e,_0x2953ef=new UserListCommand(),_0x5c36b6=program[_0x7fe66d(0x36e)](),_0x5094cf=await createTDXInstance(_0x5c36b6),_0x494aa3=await _0x2953ef[_0x7fe66d(0x1dc)]({'options':{..._0x5c36b6,..._0xd0ffc2},'args':[],'tdx':_0x5094cf});process[_0x7fe66d(0x29c)](_0x494aa3);};userCmd[a2_0x5aac0e(0x1df)](async _0x5b999b=>{const _0x37e5b9=a2_0x5aac0e,_0x359bf0=new UserCommand(),_0x1b1250=program[_0x37e5b9(0x36e)](),_0x1ad884=await createTDXInstance(_0x1b1250),_0x302895=await _0x359bf0['run']({'options':{..._0x1b1250,..._0x5b999b},'args':[],'tdx':_0x1ad884});process[_0x37e5b9(0x29c)](_0x302895);}),userCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x269))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x31a))[a2_0x5aac0e(0x1df)](userListAction),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1da))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x237))[a2_0x5aac0e(0x1df)](userListAction),program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2bd))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x256))['action'](async _0x50559e=>{const _0x347b45=a2_0x5aac0e,_0x2ab646=new ProfilesCommand(),_0x4b2913=program[_0x347b45(0x36e)](),_0x4085fa=await _0x2ab646[_0x347b45(0x1dc)]({'options':{..._0x4b2913,..._0x50559e},'args':[],'tdx':null});process['exit'](_0x4085fa);});const engageCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2ba))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1a9)),createEngageAction=_0x872dbe=>{return async(_0xf90cdd,_0x369e06)=>{const _0x4b58f0=a2_0x5c65,_0x2155db=new _0x872dbe(),_0x3b13b9=program[_0x4b58f0(0x36e)](),_0x2f442c=await createTDXInstance(_0x3b13b9),_0x50a9f3=await _0x2155db[_0x4b58f0(0x1dc)]({'options':{..._0x3b13b9,..._0x369e06},'args':[_0xf90cdd],'tdx':_0x2f442c});process[_0x4b58f0(0x29c)](_0x50a9f3);};},createEngageNoArgAction=_0x33d60d=>{return async _0x31a1d4=>{const _0x461f02=a2_0x5c65,_0x2bdef3=new _0x33d60d(),_0x10f55c=program[_0x461f02(0x36e)](),_0x5e2533=await createTDXInstance(_0x10f55c),_0x3f450f=await _0x2bdef3['run']({'options':{..._0x10f55c,..._0x31a1d4},'args':[],'tdx':_0x5e2533});process[_0x461f02(0x29c)](_0x3f450f);};},campaignCmd=engageCmd[a2_0x5aac0e(0x345)]('campaign')['description'](a2_0x5aac0e(0x257)),campaignListAction=async(_0x225a91,_0x6082ea)=>{const _0x540bdd=a2_0x5aac0e,_0x9a1f64=new EngageCampaignsCommand(),_0x45934b=program[_0x540bdd(0x36e)](),_0x3654c3=await createTDXInstance(_0x45934b),_0x5b1715=await _0x9a1f64[_0x540bdd(0x1dc)]({'options':{..._0x45934b,..._0x6082ea},'args':_0x225a91?[_0x225a91]:[],'tdx':_0x3654c3});process['exit'](_0x5b1715);};campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1ea),a2_0x5aac0e(0x2ee))['option']('--status\x20<status>',a2_0x5aac0e(0x200))[a2_0x5aac0e(0x296)]('--workspace\x20<name>',a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](campaignListAction),engageCmd[a2_0x5aac0e(0x345)]('campaigns\x20[pattern]')['description']('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1ea),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1b5),a2_0x5aac0e(0x200))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](campaignListAction),campaignCmd['command'](a2_0x5aac0e(0x2fe))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x23f))[a2_0x5aac0e(0x296)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x5aac0e(0x3b5),a2_0x5aac0e(0x1ba))[a2_0x5aac0e(0x1df)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a6))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x277))['requiredOption']('--name\x20<name>',a2_0x5aac0e(0x1ed))[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x1ea),a2_0x5aac0e(0x1ef))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x1b9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1d5),'Campaign\x20description')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x388),a2_0x5aac0e(0x216))[a2_0x5aac0e(0x296)]('--email-sender-id\x20<id>',a2_0x5aac0e(0x1e3))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x246),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x5aac0e(0x28b),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2a7),a2_0x5aac0e(0x1f1))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x36a))['description'](a2_0x5aac0e(0x27b))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))['option'](a2_0x5aac0e(0x343),a2_0x5aac0e(0x3ac))[a2_0x5aac0e(0x296)]('--description\x20<desc>',a2_0x5aac0e(0x1cc))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x388),a2_0x5aac0e(0x216))[a2_0x5aac0e(0x296)]('--email-sender-id\x20<id>',a2_0x5aac0e(0x1e3))['option'](a2_0x5aac0e(0x246),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x28b),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2a7),a2_0x5aac0e(0x1f1))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x5aac0e(0x345)]('delete\x20<name-or-id>')[a2_0x5aac0e(0x263)]('Delete\x20a\x20campaign')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x296)]('--yes',a2_0x5aac0e(0x270))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x26a))['description'](a2_0x5aac0e(0x2fc))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x25e))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x5aac0e(0x20e))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x203))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x289))['description'](a2_0x5aac0e(0x292))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x5aac0e(0x345)]('template')['description']('Email\x20template\x20management'),templateListAction=async(_0x2e64c8,_0x358c73)=>{const _0x10e43e=a2_0x5aac0e,_0x1f8a02=new EngageTemplatesCommand(),_0x5976c6=program[_0x10e43e(0x36e)](),_0x556c75=await createTDXInstance(_0x5976c6),_0x3de92f=await _0x1f8a02['run']({'options':{..._0x5976c6,..._0x358c73},'args':_0x2e64c8?[_0x2e64c8]:[],'tdx':_0x556c75});process[_0x10e43e(0x29c)](_0x3de92f);};templateCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x356))[a2_0x5aac0e(0x296)]('--workspace\x20<name>',a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x1df)](templateListAction),engageCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2e7))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2d7))['option'](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))['action'](templateListAction),templateCmd['command']('show\x20<name-or-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x21e))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b5),a2_0x5aac0e(0x1ba))[a2_0x5aac0e(0x1df)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a6))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1e1))['requiredOption'](a2_0x5aac0e(0x343),a2_0x5aac0e(0x206))[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x376),'Email\x20subject\x20template')[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x331),a2_0x5aac0e(0x24b))['option']('--workspace\x20<name>',a2_0x5aac0e(0x1b9))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2b5),a2_0x5aac0e(0x283))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1b2),'Editor\x20type')[a2_0x5aac0e(0x1df)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x5aac0e(0x345)]('update\x20<name-or-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x1bc))['option'](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x343),a2_0x5aac0e(0x2ab))['option']('--subject\x20<subject>',a2_0x5aac0e(0x33c))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x331),'HTML\x20template\x20content')[a2_0x5aac0e(0x296)]('--plaintext\x20<text>',a2_0x5aac0e(0x283))[a2_0x5aac0e(0x1df)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x5aac0e(0x345)]('delete\x20<name-or-id>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x26b))['option'](a2_0x5aac0e(0x2c6),a2_0x5aac0e(0x2e1))[a2_0x5aac0e(0x296)]('--yes',a2_0x5aac0e(0x270))[a2_0x5aac0e(0x1df)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x226))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x2e0)),workspaceListAction=async(_0xbedcba,_0x9e8ca8)=>{const _0x45e371=a2_0x5aac0e,_0x3dc140=new EngageWorkspacesCommand(),_0x577f45=program[_0x45e371(0x36e)](),_0x166aa9=await createTDXInstance(_0x577f45),_0x1e1bf9=await _0x3dc140['run']({'options':{..._0x577f45,..._0x9e8ca8},'args':_0xbedcba?[_0xbedcba]:[],'tdx':_0x166aa9});process['exit'](_0x1e1bf9);};workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5aac0e(0x1df)](workspaceListAction),engageCmd['command']('workspaces\x20[pattern]')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x32c))[a2_0x5aac0e(0x1df)](workspaceListAction),workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2fe))['description'](a2_0x5aac0e(0x328))['option'](a2_0x5aac0e(0x3b5),a2_0x5aac0e(0x1ba))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x5aac0e(0x345)]('create')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x347))[a2_0x5aac0e(0x2c2)](a2_0x5aac0e(0x343),'Workspace\x20name')[a2_0x5aac0e(0x296)]('--description\x20<desc>',a2_0x5aac0e(0x315))[a2_0x5aac0e(0x1df)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x36a))['description'](a2_0x5aac0e(0x30c))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x343),a2_0x5aac0e(0x2c8))[a2_0x5aac0e(0x296)]('--description\x20<desc>','Workspace\x20description')[a2_0x5aac0e(0x1df)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x29d))[a2_0x5aac0e(0x263)]('Delete\x20a\x20workspace')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x1ce),a2_0x5aac0e(0x270))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1d2))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x219))[a2_0x5aac0e(0x1df)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x395))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x258)),connectionListAction=async _0x129223=>{const _0x114c66=a2_0x5aac0e,_0x1ff561=new ConnectionListCommand(),_0x40c1d4=program[_0x114c66(0x36e)](),_0x1a67ed=await createTDXInstance(_0x40c1d4),_0x27c581=await _0x1ff561[_0x114c66(0x1dc)]({'options':{..._0x40c1d4,..._0x129223},'args':[],'tdx':_0x1a67ed});process[_0x114c66(0x29c)](_0x27c581);};connectionCmd[a2_0x5aac0e(0x345)]('list')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x38b))[a2_0x5aac0e(0x1df)](connectionListAction),program[a2_0x5aac0e(0x345)]('connections',{'hidden':!![]})['description'](a2_0x5aac0e(0x2b1))[a2_0x5aac0e(0x1df)](connectionListAction),connectionCmd['command'](a2_0x5aac0e(0x1f2))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x330))[a2_0x5aac0e(0x1df)](async(_0x1209dc,_0x557496)=>{const _0x597d9b=a2_0x5aac0e,_0x44972d=new ConnectionShowCommand(),_0x566f21=program[_0x597d9b(0x36e)](),_0x109238=await createTDXInstance(_0x566f21),_0x294b5e=await _0x44972d[_0x597d9b(0x1dc)]({'options':{..._0x566f21,..._0x557496},'args':[_0x1209dc],'tdx':_0x109238});process[_0x597d9b(0x29c)](_0x294b5e);});const journeyCmd=program['command']('journey')['description'](a2_0x5aac0e(0x272));journeyCmd['command'](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x323))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x25b))[a2_0x5aac0e(0x1df)](async(_0x18b317,_0x5db1c7)=>{const _0x94706b=a2_0x5aac0e,_0x60d5e2=new JourneyListCommand(),_0x4e5d10=program[_0x94706b(0x36e)](),_0x13f412=await createTDXInstance(_0x4e5d10),_0x23b8e7=await _0x60d5e2['run']({'options':{..._0x4e5d10,..._0x5db1c7},'args':_0x18b317?[_0x18b317]:[],'tdx':_0x13f412});process[_0x94706b(0x29c)](_0x23b8e7);}),journeyCmd['command'](a2_0x5aac0e(0x2e9))[a2_0x5aac0e(0x263)]('Show\x20journey\x20details')['option'](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x2a2))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x398),'Include\x20execution\x20statistics')[a2_0x5aac0e(0x1df)](async(_0x2d8f24,_0x488c1d)=>{const _0xb06207=a2_0x5aac0e,_0x29d948=new JourneyViewCommand(),_0x2eb8a4=program[_0xb06207(0x36e)](),_0x3a0630=await createTDXInstance(_0x2eb8a4),_0x72ed04=await _0x29d948[_0xb06207(0x1dc)]({'options':{..._0x2eb8a4,..._0x488c1d},'args':[_0x2d8f24],'tdx':_0x3a0630});process[_0xb06207(0x29c)](_0x72ed04);}),journeyCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x21a))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x313))[a2_0x5aac0e(0x296)]('--stage\x20<name>',a2_0x5aac0e(0x1de))[a2_0x5aac0e(0x1df)](async(_0x271c99,_0x24221d)=>{const _0xb39b2a=a2_0x5aac0e,_0x4ce198=new JourneyStatsCommand(),_0x464914=program[_0xb39b2a(0x36e)](),_0xb9b9ba=await createTDXInstance(_0x464914),_0xcbd73e=await _0x4ce198[_0xb39b2a(0x1dc)]({'options':{..._0x464914,..._0x24221d},'args':[_0x271c99],'tdx':_0xb9b9ba});process[_0xb39b2a(0x29c)](_0xcbd73e);}),journeyCmd[a2_0x5aac0e(0x345)]('pause\x20<name-or-path>')[a2_0x5aac0e(0x263)]('Pause\x20a\x20running\x20journey')[a2_0x5aac0e(0x1df)](async(_0x3f7eec,_0x5a7135)=>{const _0x2baa78=a2_0x5aac0e,_0x2cd826=new JourneyPauseCommand(),_0x467e98=program['opts'](),_0x2b9089=await createTDXInstance(_0x467e98),_0x27be89=await _0x2cd826[_0x2baa78(0x1dc)]({'options':{..._0x467e98,..._0x5a7135},'args':[_0x3f7eec],'tdx':_0x2b9089});process[_0x2baa78(0x29c)](_0x27be89);}),journeyCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x2d1))[a2_0x5aac0e(0x263)]('Resume\x20a\x20paused\x20journey')[a2_0x5aac0e(0x1df)](async(_0x305d36,_0x467d40)=>{const _0x22257e=a2_0x5aac0e,_0x1b3193=new JourneyResumeCommand(),_0xbd6c70=program[_0x22257e(0x36e)](),_0x4b4f55=await createTDXInstance(_0xbd6c70),_0x1001c7=await _0x1b3193[_0x22257e(0x1dc)]({'options':{..._0xbd6c70,..._0x467d40},'args':[_0x305d36],'tdx':_0x4b4f55});process[_0x22257e(0x29c)](_0x1001c7);}),journeyCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x38d))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x39b))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x202),a2_0x5aac0e(0x270))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x37c),a2_0x5aac0e(0x37d))[a2_0x5aac0e(0x1df)](async(_0x26e4f3,_0x5ff564)=>{const _0x4c1dba=a2_0x5aac0e,_0x40c3c1=new JourneyPullCommand(),_0x3f2d92=program[_0x4c1dba(0x36e)](),_0x1f6bcf=await createTDXInstance(_0x3f2d92),_0x3e0e8b=await _0x40c3c1[_0x4c1dba(0x1dc)]({'options':{..._0x3f2d92,..._0x5ff564},'args':_0x26e4f3?[_0x26e4f3]:[],'tdx':_0x1f6bcf});process['exit'](_0x3e0e8b);}),journeyCmd[a2_0x5aac0e(0x345)]('push\x20[target]')[a2_0x5aac0e(0x263)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x5aac0e(0x1df)](async(_0x2aea20,_0x100491)=>{const _0x1f869d=a2_0x5aac0e,_0x35e724=new JourneyPushCommand(),_0x497fea=program['opts'](),_0x3a9a61=await createTDXInstance(_0x497fea),_0x2c262d=await _0x35e724[_0x1f869d(0x1dc)]({'options':{..._0x497fea,..._0x100491},'args':_0x2aea20?[_0x2aea20]:[],'tdx':_0x3a9a61});process[_0x1f869d(0x29c)](_0x2c262d);});const agentSyncCmd=program[a2_0x5aac0e(0x345)]('agent')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x3a6));agentSyncCmd['command'](a2_0x5aac0e(0x1db))['description']('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x33b),a2_0x5aac0e(0x2c0))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23c),a2_0x5aac0e(0x2a5))[a2_0x5aac0e(0x1df)](async(_0xc315c7,_0x455d2b,_0x37e3f0)=>{const _0x3e8519=a2_0x5aac0e,_0x3296b9=new AgentPullCommand(),_0x43f585=program[_0x3e8519(0x36e)](),_0x212977=await createTDXInstance(_0x43f585),_0x5e0a26=[];if(_0xc315c7)_0x5e0a26[_0x3e8519(0x207)](_0xc315c7);if(_0x455d2b)_0x5e0a26[_0x3e8519(0x207)](_0x455d2b);const _0xaad161=await _0x3296b9[_0x3e8519(0x1dc)]({'options':{..._0x43f585,..._0x37e3f0},'args':_0x5e0a26,'tdx':_0x212977});process[_0x3e8519(0x29c)](_0xaad161);}),agentSyncCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x3a9))['description']('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x23c),a2_0x5aac0e(0x235))[a2_0x5aac0e(0x1df)](async(_0x102daa,_0xb8439a)=>{const _0x1139bc=a2_0x5aac0e,_0x52496c=new AgentPushCommand(),_0x4d130a=program[_0x1139bc(0x36e)](),_0x405550=await createTDXInstance(_0x4d130a),_0x19143f=await _0x52496c[_0x1139bc(0x1dc)]({'options':{..._0x4d130a,..._0xb8439a},'args':_0x102daa?[_0x102daa]:[],'tdx':_0x405550});process[_0x1139bc(0x29c)](_0x19143f);}),agentSyncCmd[a2_0x5aac0e(0x345)]('clone\x20[source]')[a2_0x5aac0e(0x263)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')['option'](a2_0x5aac0e(0x2df),a2_0x5aac0e(0x1bd))[a2_0x5aac0e(0x1df)](async(_0x1fe30a,_0x2f7d83)=>{const _0x498ec0=a2_0x5aac0e,_0x342c3f=new AgentCloneCommand(),_0xec0ebf=program[_0x498ec0(0x36e)](),_0x1121f1=await createTDXInstance(_0xec0ebf),_0x4c7478=await _0x342c3f[_0x498ec0(0x1dc)]({'options':{..._0xec0ebf,..._0x2f7d83},'args':_0x1fe30a?[_0x1fe30a]:[],'tdx':_0x1121f1});process['exit'](_0x4c7478);}),agentSyncCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x304))[a2_0x5aac0e(0x263)]('List\x20agents\x20in\x20current\x20project')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x3b8),a2_0x5aac0e(0x359))[a2_0x5aac0e(0x1df)](llmAgentListAction),agentSyncCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x1a1))['description'](a2_0x5aac0e(0x231))[a2_0x5aac0e(0x1df)](async(_0x4fa7eb,_0x47d00e)=>{const _0x2b19c6=a2_0x5aac0e,_0x19c04c=new LLMAgentShowCommand(),_0x5ae7c6=program[_0x2b19c6(0x36e)](),_0x31a43d=await createTDXInstance(_0x5ae7c6),_0x204401=await _0x19c04c[_0x2b19c6(0x1dc)]({'options':{..._0x5ae7c6,..._0x47d00e},'args':[_0x4fa7eb],'tdx':_0x31a43d});process['exit'](_0x204401);}),agentSyncCmd['command'](a2_0x5aac0e(0x362))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x210))[a2_0x5aac0e(0x296)]('--system-prompt\x20<text>',a2_0x5aac0e(0x1e5))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x2f2),a2_0x5aac0e(0x34b),a2_0x5aac0e(0x2c7))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x19f),a2_0x5aac0e(0x30b))[a2_0x5aac0e(0x296)]('--max-tool-iterations\x20<n>',a2_0x5aac0e(0x1ca),'4')[a2_0x5aac0e(0x296)]('--temperature\x20<n>',a2_0x5aac0e(0x1eb),a2_0x5aac0e(0x1ab))[a2_0x5aac0e(0x1df)](async(_0x1104af,_0x50e01d)=>{const _0xc488eb=a2_0x5aac0e,_0x4724ae=new LLMAgentCreateCommand(),_0x467d88=program['opts'](),_0x261487=await createTDXInstance(_0x467d88),_0x387f34=await _0x4724ae['run']({'options':{..._0x467d88,..._0x50e01d},'args':[_0x1104af],'tdx':_0x261487});process[_0xc488eb(0x29c)](_0x387f34);}),agentSyncCmd[a2_0x5aac0e(0x345)]('update\x20<agent-name>')[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x358))[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x298),'Agent\x20name')[a2_0x5aac0e(0x296)](a2_0x5aac0e(0x208),'Agent\x20prompt/instructions')[a2_0x5aac0e(0x296)]('--description\x20<text>',a2_0x5aac0e(0x355))['option'](a2_0x5aac0e(0x19f),a2_0x5aac0e(0x30b))[a2_0x5aac0e(0x1df)](async(_0x4e989e,_0xe2a149)=>{const _0x3834c7=a2_0x5aac0e,_0x4cb357=new LLMAgentUpdateCommand(),_0x1366e6=program[_0x3834c7(0x36e)](),_0x301071=await createTDXInstance(_0x1366e6),_0x4755cc=await _0x4cb357[_0x3834c7(0x1dc)]({'options':{..._0x1366e6,..._0xe2a149},'args':[_0x4e989e],'tdx':_0x301071});process[_0x3834c7(0x29c)](_0x4755cc);}),agentSyncCmd[a2_0x5aac0e(0x345)](a2_0x5aac0e(0x291))[a2_0x5aac0e(0x263)](a2_0x5aac0e(0x385))[a2_0x5aac0e(0x1df)](async(_0x6011c8,_0xfa1ec5)=>{const _0x4d07dc=a2_0x5aac0e,_0x4d84d4=new LLMAgentDeleteCommand(),_0xef3bb3=program[_0x4d07dc(0x36e)](),_0x4703cb=await createTDXInstance(_0xef3bb3),_0x34a8f9=await _0x4d84d4[_0x4d07dc(0x1dc)]({'options':{..._0xef3bb3,..._0xfa1ec5},'args':[_0x6011c8],'tdx':_0x4703cb});process['exit'](_0x34a8f9);});export{program};export function runCLI(){const _0x2b30fe=a2_0x5aac0e;program[_0x2b30fe(0x1d3)](process[_0x2b30fe(0x2d0)]);!process['argv'][_0x2b30fe(0x222)](0x2)[_0x2b30fe(0x20c)]&&program[_0x2b30fe(0x1e8)]();const _0x57274d=packageJson['version'];process[_0x2b30fe(0x1cd)][_0x2b30fe(0x37b)]&&process[_0x2b30fe(0x2d0)][_0x2b30fe(0x20c)]>0x2&&!_0x57274d[_0x2b30fe(0x2c4)]('.dev')&&checkForUpdate(_0x57274d)[_0x2b30fe(0x3ad)](_0x4949f9=>{_0x4949f9&&displayUpdateNotification(_0x4949f9);})[_0x2b30fe(0x327)](()=>{});}