@treasuredata/tdx 0.7.0 → 0.7.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 (104) 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/api-command.js +1 -1
  15. package/dist/commands/auth-command.js +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.js +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-usage-command.js +1 -1
  20. package/dist/commands/command.js +1 -1
  21. package/dist/commands/context-command.js +1 -1
  22. package/dist/commands/databases.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/job-command.js +1 -1
  26. package/dist/commands/llm-command.js +1 -1
  27. package/dist/commands/llm-proxy.js +1 -1
  28. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  29. package/dist/commands/parent-segment-command.js +1 -1
  30. package/dist/commands/parent-segment-command.js.map +1 -1
  31. package/dist/commands/profiles-command.js +1 -1
  32. package/dist/commands/query-command.js +1 -1
  33. package/dist/commands/segment-command.js +1 -1
  34. package/dist/commands/segment-create-command.js +1 -1
  35. package/dist/commands/segment-fields-command.js +1 -1
  36. package/dist/commands/segment-pwd-command.js +1 -1
  37. package/dist/commands/segment-update-command.js +1 -1
  38. package/dist/commands/segment-use-command.js +1 -1
  39. package/dist/commands/segments.js +1 -1
  40. package/dist/commands/show.js +1 -1
  41. package/dist/commands/tables.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/workflow-command.js +1 -1
  44. package/dist/core/auth.js +1 -1
  45. package/dist/core/config.js +1 -1
  46. package/dist/core/credential-cache.js +1 -1
  47. package/dist/core/global-context.js +1 -1
  48. package/dist/core/keychain.js +1 -1
  49. package/dist/core/profile.js +1 -1
  50. package/dist/core/project-config.js +1 -1
  51. package/dist/core/session.js +1 -1
  52. package/dist/index.js +1 -1
  53. package/dist/proxy/anthropic-adapter.js +1 -1
  54. package/dist/proxy/claude-usage-tracker.js +1 -1
  55. package/dist/proxy/context-signature.js +1 -1
  56. package/dist/proxy/conversation-utils.js +1 -1
  57. package/dist/proxy/server.js +1 -1
  58. package/dist/proxy/session-cache.js +1 -1
  59. package/dist/sdk/api.js +1 -1
  60. package/dist/sdk/engage.js +1 -1
  61. package/dist/sdk/errors.js +1 -1
  62. package/dist/sdk/index.js +1 -1
  63. package/dist/sdk/job.js +1 -1
  64. package/dist/sdk/llm.js +1 -1
  65. package/dist/sdk/query.js +1 -1
  66. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  67. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  68. package/dist/sdk/segment.js +1 -1
  69. package/dist/sdk/workflow.js +1 -1
  70. package/dist/types/endpoints.d.ts +12 -0
  71. package/dist/types/endpoints.d.ts.map +1 -1
  72. package/dist/types/endpoints.js +1 -1
  73. package/dist/types/endpoints.js.map +1 -1
  74. package/dist/types/index.js +1 -1
  75. package/dist/utils/agent-ref-parser.js +1 -1
  76. package/dist/utils/chat-cache.js +1 -1
  77. package/dist/utils/colors.js +1 -1
  78. package/dist/utils/command-output.js +1 -1
  79. package/dist/utils/constants.js +1 -1
  80. package/dist/utils/diff.js +1 -1
  81. package/dist/utils/fields-display.js +1 -1
  82. package/dist/utils/file-permissions.js +1 -1
  83. package/dist/utils/format-detector.js +1 -1
  84. package/dist/utils/formatters.js +1 -1
  85. package/dist/utils/json-loader.js +1 -1
  86. package/dist/utils/llm-backup-utils.js +1 -1
  87. package/dist/utils/model-aliases.js +1 -1
  88. package/dist/utils/model-factors.js +1 -1
  89. package/dist/utils/option-validation.js +1 -1
  90. package/dist/utils/port.js +1 -1
  91. package/dist/utils/process.js +1 -1
  92. package/dist/utils/prompt.js +1 -1
  93. package/dist/utils/segment-path-parser.js +1 -1
  94. package/dist/utils/segment-ref-parser.js +1 -1
  95. package/dist/utils/spinner.js +1 -1
  96. package/dist/utils/sql-parser.js +1 -1
  97. package/dist/utils/sse-parser.js +1 -1
  98. package/dist/utils/string-utils.js +1 -1
  99. package/dist/utils/table-ref-parser.js +1 -1
  100. package/dist/utils/tdx-logger.js +1 -1
  101. package/dist/utils/tree-formatter.js +1 -1
  102. package/dist/utils/version-check.js +1 -1
  103. package/dist/utils/workflow-utils.js +1 -1
  104. package/package.json +4 -2
package/dist/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x51323d,_0x3805de){var _0x3a2099=a0_0x4232,_0x67e6fe=_0x51323d();while(!![]){try{var _0x2f335c=-parseInt(_0x3a2099(0xf4))/0x1+parseInt(_0x3a2099(0xf5))/0x2*(parseInt(_0x3a2099(0xf8))/0x3)+-parseInt(_0x3a2099(0xf1))/0x4+-parseInt(_0x3a2099(0xf0))/0x5+parseInt(_0x3a2099(0xef))/0x6*(parseInt(_0x3a2099(0xf6))/0x7)+parseInt(_0x3a2099(0xf7))/0x8+-parseInt(_0x3a2099(0xf3))/0x9*(-parseInt(_0x3a2099(0xf2))/0xa);if(_0x2f335c===_0x3805de)break;else _0x67e6fe['push'](_0x67e6fe['shift']());}catch(_0xcb9a25){_0x67e6fe['push'](_0x67e6fe['shift']());}}}(a0_0x2a5e,0x73df8));function a0_0x4232(_0x510bc4,_0x448cd5){var _0x2a5e96=a0_0x2a5e();return a0_0x4232=function(_0x423243,_0x28e1e9){_0x423243=_0x423243-0xef;var _0x4cb962=_0x2a5e96[_0x423243];return _0x4cb962;},a0_0x4232(_0x510bc4,_0x448cd5);}function a0_0x2a5e(){var _0x4ed6f1=['6vtarqw','6KSVtSD','1567465XziHQM','2348148PpbKbq','110MnplWE','659421imviaA','859794nTsTjp','347954TdvqBc','1466143lHbNWK','6972624ehZcfm'];a0_0x2a5e=function(){return _0x4ed6f1;};return a0_0x2a5e();}import{runCLI}from'./cli.js';runCLI();
2
+ (function(_0x1c0959,_0x3f8e44){var _0x86b1e8=a0_0x2cf4,_0x53b117=_0x1c0959();while(!![]){try{var _0x3887bc=parseInt(_0x86b1e8(0x13d))/0x1*(-parseInt(_0x86b1e8(0x137))/0x2)+parseInt(_0x86b1e8(0x135))/0x3*(parseInt(_0x86b1e8(0x13f))/0x4)+-parseInt(_0x86b1e8(0x13c))/0x5+parseInt(_0x86b1e8(0x134))/0x6+-parseInt(_0x86b1e8(0x139))/0x7*(-parseInt(_0x86b1e8(0x13b))/0x8)+parseInt(_0x86b1e8(0x138))/0x9*(parseInt(_0x86b1e8(0x136))/0xa)+-parseInt(_0x86b1e8(0x13a))/0xb*(-parseInt(_0x86b1e8(0x13e))/0xc);if(_0x3887bc===_0x3f8e44)break;else _0x53b117['push'](_0x53b117['shift']());}catch(_0x25bf33){_0x53b117['push'](_0x53b117['shift']());}}}(a0_0x23e0,0xc4eac));import{runCLI}from'./cli.js';function a0_0x23e0(){var _0x4d58bc=['1832NLOGvn','6237390UtblsL','1083QNCpik','1167430uQPPwt','54394QjtOQV','9KlbQIG','701484qxGQuZ','196394FRfccs','16kebVKz','608530AJePpT','54dsnZnw','588LHukfn'];a0_0x23e0=function(){return _0x4d58bc;};return a0_0x23e0();}function a0_0x2cf4(_0x2d086b,_0xbf7d0f){var _0x23e08d=a0_0x23e0();return a0_0x2cf4=function(_0x2cf435,_0x20ebe8){_0x2cf435=_0x2cf435-0x134;var _0x413749=_0x23e08d[_0x2cf435];return _0x413749;},a0_0x2cf4(_0x2d086b,_0xbf7d0f);}runCLI();
@@ -1,4 +1,4 @@
1
1
  {
2
- "gitRevision": "07c5228",
3
- "buildTime": "2025-12-05 07:03:38+0000"
2
+ "gitRevision": "1e38f46",
3
+ "buildTime": "2025-12-05 18:19:18+0000"
4
4
  }
@@ -1 +1 @@
1
- const a1_0x7f021d=a1_0x2770;(function(_0x525b54,_0x975809){const _0x54664b=a1_0x2770,_0xb1739e=_0x525b54();while(!![]){try{const _0x15a5e9=-parseInt(_0x54664b(0x1fd))/0x1*(parseInt(_0x54664b(0x1e4))/0x2)+-parseInt(_0x54664b(0x1e2))/0x3+parseInt(_0x54664b(0x1f9))/0x4+-parseInt(_0x54664b(0x1fa))/0x5*(-parseInt(_0x54664b(0x1ec))/0x6)+parseInt(_0x54664b(0x1e3))/0x7+parseInt(_0x54664b(0x1f8))/0x8+parseInt(_0x54664b(0x200))/0x9*(-parseInt(_0x54664b(0x1df))/0xa);if(_0x15a5e9===_0x975809)break;else _0xb1739e['push'](_0xb1739e['shift']());}catch(_0x2f0c16){_0xb1739e['push'](_0xb1739e['shift']());}}}(a1_0x2738,0xc6a78));import a1_0xfa37af from'chalk';function a1_0x2770(_0x36c54f,_0x5f3ec9){const _0x27386a=a1_0x2738();return a1_0x2770=function(_0x27701b,_0x2cb123){_0x27701b=_0x27701b-0x1de;let _0x50dc24=_0x27386a[_0x27701b];return _0x50dc24;},a1_0x2770(_0x36c54f,_0x5f3ec9);}export const COMMAND_CATEGORIES=[{'name':a1_0x7f021d(0x1e1),'colorFn':a1_0xfa37af[a1_0x7f021d(0x1ef)],'commands':[a1_0x7f021d(0x1fe),a1_0x7f021d(0x1e5),a1_0x7f021d(0x1f4),'describe',a1_0x7f021d(0x1ee),a1_0x7f021d(0x1fb),a1_0x7f021d(0x1e6)]},{'name':a1_0x7f021d(0x1f6),'colorFn':a1_0xfa37af[a1_0x7f021d(0x1ed)],'commands':[a1_0x7f021d(0x1f5),a1_0x7f021d(0x1e7),'activations',a1_0x7f021d(0x1ea)]},{'name':'AI','colorFn':a1_0xfa37af[a1_0x7f021d(0x1eb)],'commands':[a1_0x7f021d(0x1e9),a1_0x7f021d(0x1f3),a1_0x7f021d(0x1e8),a1_0x7f021d(0x1f2)]},{'name':a1_0x7f021d(0x1de),'colorFn':a1_0xfa37af['yellow'],'commands':[a1_0x7f021d(0x1f7),'use',a1_0x7f021d(0x1f0),a1_0x7f021d(0x1ff)]},{'name':a1_0x7f021d(0x1e0),'colorFn':a1_0xfa37af[a1_0x7f021d(0x1fc)],'commands':[a1_0x7f021d(0x1f1)]}];function a1_0x2738(){const _0x1e8242=['auth','2889693muGIbb','Context','10AcakGJ','Utilities','Data','2668698txbBPQ','3546900panKQZ','2434siedCr','table','workflow','parent-segment','llm','chat','engage','cyan','81258uZFGbN','magenta','query','blue','profiles','api','claude','chats','show','segment','CDP','context','5798136MOhQZR','4185880FJllPE','375NkwNJz','job','green','1043vAfFyu','database'];a1_0x2738=function(){return _0x1e8242;};return a1_0x2738();}
1
+ const a1_0x24fdd6=a1_0x17b8;(function(_0x58a978,_0x4f9553){const _0xcc70d1=a1_0x17b8,_0x579114=_0x58a978();while(!![]){try{const _0x30f095=parseInt(_0xcc70d1(0x148))/0x1+-parseInt(_0xcc70d1(0x13a))/0x2+-parseInt(_0xcc70d1(0x149))/0x3+-parseInt(_0xcc70d1(0x147))/0x4+-parseInt(_0xcc70d1(0x14c))/0x5+parseInt(_0xcc70d1(0x14e))/0x6+parseInt(_0xcc70d1(0x140))/0x7*(parseInt(_0xcc70d1(0x14d))/0x8);if(_0x30f095===_0x4f9553)break;else _0x579114['push'](_0x579114['shift']());}catch(_0x14745f){_0x579114['push'](_0x579114['shift']());}}}(a1_0x176d,0x9e3ac));function a1_0x17b8(_0x34d5ad,_0x2e5428){const _0x176dff=a1_0x176d();return a1_0x17b8=function(_0x17b8ba,_0x40ca18){_0x17b8ba=_0x17b8ba-0x13a;let _0x51c93=_0x176dff[_0x17b8ba];return _0x51c93;},a1_0x17b8(_0x34d5ad,_0x2e5428);}function a1_0x176d(){const _0x44da21=['database','job','yellow','green','167656LHguWG','engage','show','Data','llm','workflow','21448hweeAZ','magenta','api','chats','Context','claude','context','1530680lJCofJ','384690kbcgRq','2406570DewamG','parent-segment','use','3117915uYKnfz','2368iIEcyS','7492470JUSvWy','Utilities','cyan','profiles'];a1_0x176d=function(){return _0x44da21;};return a1_0x176d();}import a1_0x4908c3 from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x24fdd6(0x13d),'colorFn':a1_0x4908c3['blue'],'commands':[a1_0x24fdd6(0x152),'table',a1_0x24fdd6(0x13c),'describe','query',a1_0x24fdd6(0x153),a1_0x24fdd6(0x13f)]},{'name':'CDP','colorFn':a1_0x4908c3[a1_0x24fdd6(0x141)],'commands':['segment',a1_0x24fdd6(0x14a),'activations',a1_0x24fdd6(0x13b)]},{'name':'AI','colorFn':a1_0x4908c3[a1_0x24fdd6(0x150)],'commands':['chat',a1_0x24fdd6(0x143),a1_0x24fdd6(0x13e),a1_0x24fdd6(0x145)]},{'name':a1_0x24fdd6(0x144),'colorFn':a1_0x4908c3[a1_0x24fdd6(0x154)],'commands':[a1_0x24fdd6(0x146),a1_0x24fdd6(0x14b),a1_0x24fdd6(0x151),'auth']},{'name':a1_0x24fdd6(0x14f),'colorFn':a1_0x4908c3[a1_0x24fdd6(0x155)],'commands':[a1_0x24fdd6(0x142)]}];
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x4bfcb6=a2_0x5c13;(function(_0x3cf6da,_0x44e091){const _0x3e5116=a2_0x5c13,_0x55ffd2=_0x3cf6da();while(!![]){try{const _0x1237b5=parseInt(_0x3e5116(0x37f))/0x1*(parseInt(_0x3e5116(0x2ec))/0x2)+parseInt(_0x3e5116(0x213))/0x3+-parseInt(_0x3e5116(0x2aa))/0x4*(parseInt(_0x3e5116(0x21f))/0x5)+-parseInt(_0x3e5116(0x262))/0x6+parseInt(_0x3e5116(0x2a8))/0x7*(-parseInt(_0x3e5116(0x1d1))/0x8)+parseInt(_0x3e5116(0x32b))/0x9+parseInt(_0x3e5116(0x2bc))/0xa*(-parseInt(_0x3e5116(0x1ea))/0xb);if(_0x1237b5===_0x44e091)break;else _0x55ffd2['push'](_0x55ffd2['shift']());}catch(_0x4df934){_0x55ffd2['push'](_0x55ffd2['shift']());}}}(a2_0x5947,0x90ff9));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,SegmentInfoCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentInfoCommand,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{SegmentUseCommand}from'./commands/segment-use-command.js';import{SegmentPwdCommand}from'./commands/segment-pwd-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename),packageJson=JSON[a2_0x4bfcb6(0x326)](readFileSync(join(__dirname,a2_0x4bfcb6(0x292)),a2_0x4bfcb6(0x1d5)));let buildInfo={};try{buildInfo=JSON[a2_0x4bfcb6(0x326)](readFileSync(join(__dirname,'build-info.json'),a2_0x4bfcb6(0x1d5)));}catch{}if(process['argv']['includes']('--version')){let versionOutput=a2_0x4bfcb6(0x1e6)+packageJson[a2_0x4bfcb6(0x37d)];buildInfo[a2_0x4bfcb6(0x370)]&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x4bfcb6(0x1fe)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x4bfcb6(0x1fe)]),console[a2_0x4bfcb6(0x1cf)](versionOutput),process[a2_0x4bfcb6(0x28a)](0x0);}const program=new Command();let description=a2_0x4bfcb6(0x2a6);function a2_0x5947(){const _0x3b127b=['kill','Delete\x20a\x20campaign','session','Create\x20a\x20new\x20campaign','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','desc','catch','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','database','--master','CDP\x20segment\x20management\x20commands','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--behavior\x20[name]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','argv','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','profile','JSON\x20columns\x20for\x20connector\x20(comma-separated)','-1d','--session-time\x20<time>','allowUnknownOption','--workspace\x20<name>','Customer\x20group\x20from\x20JSON\x20file','--no-proxy','forEach','--project\x20<name>','Updated\x20schedule\x20option','Output\x20file\x20path','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','TRACE','aliases','Describe\x20table\x20schema','push\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Filtering\x20rule\x20as\x20JSON\x20string','--starter-message\x20<text>','jsonl','Behaviors\x20from\x20JSON\x20file','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Add\x20behaviors\x20as\x20JSON\x20string','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','run\x20<workflow>','--params\x20<json>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Launch\x20a\x20campaign','profiles','pause\x20<name-or-id>','delete\x20<agent-name>','-d,\x20--database\x20<database>','_hidden','sessions\x20[project]','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Job\x20management\x20commands','Workspace\x20description','Workspace\x20name\x20(required)','--subject\x20<subject>','subcommandTerm','-p,\x20--profile\x20<name>','--description\x20<desc>','4797846NQisdU','Agent\x20prompt/instructions','isTTY','show\x20<name-or-id>','templates\x20[pattern]','use\x20[name]','Master\x20table\x20name','logLevel','includes','--rule-file\x20<file>','Duplicate\x20a\x20campaign','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Add\x20attributes\x20from\x20JSON\x20file','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','Options:','show\x20<folder_ref>','parents\x20[pattern]','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Editor\x20type','Revision\x20name\x20(default:\x20timestamp)','duplicate\x20<name-or-id>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Include\x20retried\x20attempts','Maximum\x20recursion\x20depth\x20(default:\x2010)','-f,\x20--file\x20<path>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','command','Campaign\x20name','Add\x20attributes\x20as\x20JSON\x20string','list\x20[pattern]','--attribute\x20[name]','--invisible','Parent\x20segment\x20(audience)\x20management','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','filter','Table\x20management\x20commands','Agent\x20description','flatMap','exit','--debug','--max-tool-iterations\x20<n>','map','Workflow\x20project\x20management','requiredOption','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','push','../package.json','update\x20<segment_name>','resume\x20<name-or-id>','Database\x20management\x20commands','list','run','argumentDescription','Save\x20output\x20to\x20file','push\x20[file]','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','Campaign\x20description','Project\x20description','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--session\x20<id>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','noColor','[attempt-id]','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','folders\x20<parent_name>','AI-native\x20CLI\x20for\x20Treasure\x20Data','optionDescription','7upHgPD','parent_segment','472352xoNLnm','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','-r,\x20--recursive','Output\x20as\x20JSON\x20Lines','createAsync','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','[task-name]','claude-4.5-sonnet','Create\x20segment\x20folder','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','create\x20<name>','Delete\x20a\x20workspace','--in\x20<name>','4000','--attributes\x20<json>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Update\x20a\x20workspace','8270MxHebQ','Setup\x20API\x20key\x20authentication\x20interactively','New\x20segment\x20name','use\x20<path>','--reason\x20<text>','Agent\x20reference\x20(project-name/agent-name)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Skip\x20confirmation\x20prompt','INFO','action','pwd','--dry-run','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','create\x20<parent_name>\x20<folder_name>','--name\x20<new-name>','--from-task\x20<task>','workflows\x20[project]','required','--start-at\x20<datetime>','--to\x20<timestamp>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--no-count-population','Attempt\x20ID','attempt:','--add-attributes\x20<json>',',\x20version\x20','retry\x20<session-id>','commandUsage','project','workspace','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','usage','Override\x20project\x20name','activations\x20<segment_name>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a','Add\x20behaviors\x20from\x20JSON\x20file','--json','--agent\x20<ref>','--status\x20<status>','trino','Authentication\x20management','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','create','--folder\x20<name>','preview\x20[name]','1469758eynTis','Updated\x20description','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','-o,\x20--output\x20<folder>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Create\x20an\x20email\x20template','Workspace\x20name','Segment\x20folder\x20management','--json-columns\x20<cols>','--parent-segment\x20<name>','--tsv','query\x20[sql]','Request\x20body\x20as\x20JSON\x20string','--limit\x20<number>','--revision\x20<revision>','Move\x20to\x20folder','-o,\x20--output\x20<file>','colorFn','preview\x20[file]','stderr','submit\x20[query]','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--full','argument','Folder\x20description','Read\x20SQL\x20query\x20from\x20file','Show\x20only\x20master\x20table\x20validation','optionTerm','use\x20<name>','--name\x20<name>','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','\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','show\x20<job-id>','Parent\x20folder\x20name\x20for\x20nested\x20folders','Plaintext\x20template\x20content','Model\x20type\x20(default:\x20claude-4.5-sonnet)','preAction','New\x20campaign\x20name','run\x20[name]','injectIntoOptions','Set\x20operation\x20timeout\x20in\x20seconds','summary','fields\x20[name]','--yes','template','push\x20[project-name-or-dir]','trace','format','List\x20all\x20available\x20profiles','parent','job','-u,\x20--use','Show\x20the\x20most\x20recent\x20chat','Output\x20as\x20JSON','get','status','parse','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--in\x20<database>','argumentTerm','registeredArguments','7867134zeTzin','Attributes\x20from\x20JSON\x20file','Skip\x20population\x20counting','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','desc\x20[segment_name]','agents\x20[pattern]','show\x20<agent-name>','Show\x20agent\x20details','projects\x20[pattern]','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--database\x20<db>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--clear','Workflow\x20(Digdag)\x20management\x20commands','update\x20<agent-name>','Commands:','Include\x20retried\x20attempts\x20(for\x20list)','Set\x20or\x20show\x20parent\x20segment\x20context','--jsonl','--enriched','Resume\x20from\x20specific\x20task\x20(retry)','list\x20[project]','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Resume\x20from\x20specific\x20task','sql\x20[name]','name','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','commands','info\x20[name]','--system-prompt\x20<text>','restore\x20<folder>','--include-retried','--schedule-type\x20<type>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--name\x20<new_name>','--add-behaviors\x20<json>','Reason\x20for\x20killing\x20the\x20attempt','delete\x20<project-name-or-id>','--plaintext\x20<text>','replace','Show\x20segment\x20schema\x20(column\x20types)','description','proxy','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','DEBUG','Campaign\x20type\x20(email\x20or\x20push)','Task\x20name\x20for\x20logs\x20action','Parent\x20segment\x20description','--resume-from\x20<task>','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--add-attributes-file\x20<file>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','delete\x20<name>','Show\x20current\x20segment/folder\x20context','logs','--kind\x20<type>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','option','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','json','--customer-group\x20<json>','use\x20[resource]\x20[value]','show\x20[name]','Unknown\x20action:\x20','--limit\x20<n>','--model\x20<name>','gitRevision','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','--last','Delete\x20an\x20email\x20template','HTML\x20template\x20content','slice','describe\x20[table]','help','List\x20jobs','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--description\x20<text>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','version','Workflow\x20parameter\x20(repeatable)','1vQUIiH','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--llm-project\x20<name>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','then','Pause\x20a\x20campaign','opts','Template\x20name','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','-H,\x20--header\x20<header>','Master\x20database\x20name','port','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Output\x20file\x20path\x20(default:\x20<name>.yml)','Output\x20folder\x20(default:\x20{project_name}.llm)','Update\x20an\x20email\x20template','--attributes-file\x20<file>','attempt','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--max-depth\x20<depth>','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--force','fields\x20[parent_name]','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','tsv','models','--schedule-option\x20<value>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--temperature\x20<n>','campaign','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','use\x20<project-name>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--type\x20<type>','options','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','desc\x20[name]','Show\x20job\x20details','allowExcessArguments','pull\x20[name]','Kill\x20a\x20job','--timezone\x20<tz>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','folder','--include-subtasks','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--no-color','alias','context','addHelpText','--skip-validation','describe','log','agent','844824bXEHqM','tdx','us01','--color','utf-8','attempts\x20[project]','--interval\x20<range>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','join','history\x20[chat-id]','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Maximum\x20tool\x20iterations\x20(default:\x204)','Skip\x20confirmation\x20prompts','Preview\x20operation\x20without\x20executing','Folder\x20name\x20for\x20organization','--rule\x20<json>','tdx\x20','campaigns\x20[pattern]','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','sql\x20[segment_name]','4411Rcufqa','engage','Delete\x20an\x20agent','Make\x20segment\x20invisible\x20(default:\x20visible)','--name\x20<text>','--type\x20<api_type>','Force\x20retry\x20even\x20if\x20not\x20failed','segments\x20[path]','--param\x20<key=value>','--trace','--catalog\x20<catalog>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Update\x20an\x20existing\x20agent','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','stdout','claude\x20[args...]','delete\x20<name-or-id>','--data\x20<data>','Timezone\x20(e.g.,\x20America/Los_Angeles)','buildTime','Email\x20sender\x20ID\x20for\x20delivery','segment','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','-y,\x20--yes','Attributes\x20as\x20JSON\x20string','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','length','workspaces\x20[pattern]','Starter\x20message','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Email\x20subject\x20template','Database\x20to\x20use\x20(overrides\x20context)','--segment\x20<path>','retry','parent-segment','Skip\x20validation\x20of\x20.dig\x20files','show\x20[table]','Remove\x20API\x20key\x20from\x20system\x20keychain','Create\x20a\x20workspace','3499449beFJbp','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20--\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20previous\x20Claude\x20Code\x20session\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Updated\x20timezone','Workflow\x20attempt\x20management','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20master\x20table\x20sample\x20data','Include\x20subtasks\x20in\x20tasks\x20output','Arguments:','--output\x20<file>','update\x20<name-or-id>','after','40QBgKjI','Customer\x20group\x20as\x20JSON\x20string','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Trino\x20catalog\x20(default:\x20td)'];a2_0x5947=function(){return _0x3b127b;};return a2_0x5947();}buildInfo[a2_0x4bfcb6(0x370)]?description+=a2_0x4bfcb6(0x2d8)+packageJson[a2_0x4bfcb6(0x37d)]+'\x20('+buildInfo[a2_0x4bfcb6(0x370)]+')':description+=a2_0x4bfcb6(0x2d8)+packageJson[a2_0x4bfcb6(0x37d)];program[a2_0x4bfcb6(0x345)](a2_0x4bfcb6(0x1d2))[a2_0x4bfcb6(0x355)](description),program['option'](a2_0x4bfcb6(0x260),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x4bfcb6(0x366)]('--site\x20<site>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x4bfcb6(0x1d3))[a2_0x4bfcb6(0x366)]('--format\x20<format>',a2_0x4bfcb6(0x2c3))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e3),a2_0x4bfcb6(0x336))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33d),a2_0x4bfcb6(0x24f))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2f6),a2_0x4bfcb6(0x242))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x21c),a2_0x4bfcb6(0x299))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2f9),a2_0x4bfcb6(0x1dd))['option'](a2_0x4bfcb6(0x1d4),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c9),a2_0x4bfcb6(0x302),![])['option']('-v,\x20--verbose','Enable\x20verbose\x20logging',![])['option'](a2_0x4bfcb6(0x28b),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')['option'](a2_0x4bfcb6(0x1f3),a2_0x4bfcb6(0x30c))[a2_0x4bfcb6(0x366)]('--timeout\x20<seconds>',a2_0x4bfcb6(0x316),'30')['option']('--dry-run',a2_0x4bfcb6(0x1e3),![])[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x202),a2_0x4bfcb6(0x1e2),![])[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x29f),a2_0x4bfcb6(0x371))[a2_0x4bfcb6(0x366)]('-d,\x20--database\x20<name>',a2_0x4bfcb6(0x20b))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2b7),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x4bfcb6(0x2f5),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x4bfcb6(0x381),a2_0x4bfcb6(0x274)),program['configureHelp']({'formatHelp':(_0x3eca5a,_0x54ee2a)=>{const _0x5425ee=a2_0x4bfcb6,_0x4a0595=_0x54ee2a['padWidth'](_0x3eca5a,_0x54ee2a),_0x5d1155=0x2,_0x48082c=0x2;function _0x58e3b3(_0x1e190d){const _0x526cef=a2_0x5c13,_0x146d8c=_0x1e190d;return!!(_0x146d8c[_0x526cef(0x258)]||_0x146d8c['hidden']);}function _0x32e78f(_0x2c5610,_0x1f8e61){if(_0x1f8e61){const _0x28edf6=''+_0x2c5610['padEnd'](_0x4a0595+_0x48082c)+_0x1f8e61;return _0x28edf6;}return _0x2c5610;}function _0x5a6e29(_0x3680da){const _0x4c3f22=a2_0x5c13;return _0x3680da[_0x4c3f22(0x1d9)]('\x0a')[_0x4c3f22(0x353)](/^/gm,'\x20'['repeat'](_0x5d1155));}const _0x1bbebb=[];_0x1bbebb[_0x5425ee(0x291)]('Usage:\x20'+_0x54ee2a[_0x5425ee(0x2da)](_0x3eca5a));const _0x263ce0=_0x54ee2a['commandDescription'](_0x3eca5a);_0x263ce0&&(_0x1bbebb[_0x5425ee(0x291)](''),_0x1bbebb[_0x5425ee(0x291)](_0x263ce0));const _0x44b4ff=_0x3eca5a[_0x5425ee(0x347)][_0x5425ee(0x286)](_0x531449=>!_0x58e3b3(_0x531449));if(_0x44b4ff[_0x5425ee(0x205)]>0x0){if(_0x3eca5a[_0x5425ee(0x345)]()==='tdx'){const _0x10ab16=_0x3eca5a['opts'](),_0x4075dd=!_0x10ab16[_0x5425ee(0x2a2)]&&process[_0x5425ee(0x1f9)]['isTTY'],_0x270454=COMMAND_CATEGORIES,_0x5e7e76=(_0x26972e,_0x2331f2)=>_0x4075dd?_0x2331f2(_0x26972e):_0x26972e,_0x37a523=new Map();_0x44b4ff['forEach'](_0x532001=>{_0x37a523['set'](_0x532001['name'](),_0x532001);}),_0x270454[_0x5425ee(0x23e)](_0x3f6235=>{const _0x1794f2=_0x5425ee,_0x1c194f=_0x3f6235[_0x1794f2(0x347)][_0x1794f2(0x289)](_0x565a34=>_0x37a523[_0x1794f2(0x324)](_0x565a34)??[]);if(_0x1c194f[_0x1794f2(0x205)]>0x0){_0x1bbebb[_0x1794f2(0x291)](''),_0x1bbebb['push'](_0x5e7e76(_0x3f6235[_0x1794f2(0x345)]+':',_0x3f6235[_0x1794f2(0x2fd)]));const _0x114a10=_0x1c194f[_0x1794f2(0x28d)](_0x254a7b=>{const _0x332080=_0x1794f2,_0x3e3757=_0x54ee2a[_0x332080(0x25f)](_0x254a7b),_0x5ce60e=_0x54ee2a['subcommandDescription'](_0x254a7b);return _0x32e78f(_0x3e3757,_0x5ce60e);});_0x1bbebb[_0x1794f2(0x291)](_0x5a6e29(_0x114a10));}}),_0x1bbebb['push'](''),_0x1bbebb[_0x5425ee(0x291)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x366125=_0x44b4ff[_0x5425ee(0x28d)](_0x54a990=>{const _0x3b243f=_0x5425ee,_0x46101a=_0x54ee2a[_0x3b243f(0x25f)](_0x54a990),_0x4f4923=_0x54ee2a['subcommandDescription'](_0x54a990);return _0x32e78f(_0x46101a,_0x4f4923);});_0x1bbebb[_0x5425ee(0x291)](''),_0x1bbebb['push'](_0x5425ee(0x33a)),_0x1bbebb['push'](_0x5a6e29(_0x366125));}}const _0x4eb762=_0x3eca5a[_0x5425ee(0x3a4)]['filter'](_0x6ac235=>!_0x58e3b3(_0x6ac235));if(_0x4eb762['length']>0x0){const _0x878958=_0x4eb762['map'](_0x5cd222=>{const _0x1f8af4=_0x5425ee,_0x57af37=_0x54ee2a[_0x1f8af4(0x308)](_0x5cd222),_0x3d7dff=_0x54ee2a[_0x1f8af4(0x2a7)](_0x5cd222);return _0x32e78f(_0x57af37,_0x3d7dff);});_0x1bbebb[_0x5425ee(0x291)](''),_0x1bbebb['push'](_0x5425ee(0x271)),_0x1bbebb[_0x5425ee(0x291)](_0x5a6e29(_0x878958));}const _0xe2e5fc=(_0x3eca5a[_0x5425ee(0x32a)]||[])['filter'](_0x38dfff=>!_0x58e3b3(_0x38dfff));if(_0xe2e5fc['length']>0x0){const _0x3b866c=_0xe2e5fc[_0x5425ee(0x28d)](_0x537762=>{const _0x802ead=_0x5425ee,_0x23a181=_0x54ee2a[_0x802ead(0x329)](_0x537762),_0x19a800=_0x54ee2a[_0x802ead(0x298)](_0x537762);return _0x32e78f(_0x23a181,_0x19a800);});_0x1bbebb[_0x5425ee(0x291)](''),_0x1bbebb[_0x5425ee(0x291)](_0x5425ee(0x21b)),_0x1bbebb[_0x5425ee(0x291)](_0x5a6e29(_0x3b866c));}return _0x1bbebb[_0x5425ee(0x1d9)]('\x0a');},'subcommandTerm':_0x5cdfa5=>{const _0x786267=a2_0x4bfcb6,_0x4cda8b=(_0x5cdfa5['registeredArguments']||[])[_0x786267(0x28d)](_0x59d947=>_0x59d947[_0x786267(0x2ce)]?'<'+_0x59d947[_0x786267(0x345)]()+'>':'['+_0x59d947[_0x786267(0x345)]()+']')[_0x786267(0x1d9)]('\x20'),_0x256a64=_0x5cdfa5[_0x786267(0x245)](),_0x41d8a4=_0x256a64[_0x786267(0x205)]>0x0?_0x5cdfa5[_0x786267(0x345)]()+',\x20'+_0x256a64[_0x786267(0x1d9)](',\x20'):_0x5cdfa5['name']();return _0x4cda8b?_0x41d8a4+'\x20'+_0x4cda8b:_0x41d8a4;}}),program['hook'](a2_0x4bfcb6(0x312),_0x37cdcb=>{const _0x1a8e70=a2_0x4bfcb6,_0x234319=_0x37cdcb[_0x1a8e70(0x385)]();if(!_0x234319[_0x1a8e70(0x31d)]){if(_0x234319[_0x1a8e70(0x369)])_0x234319[_0x1a8e70(0x31d)]='json';else{if(_0x234319[_0x1a8e70(0x24b)])_0x234319[_0x1a8e70(0x31d)]=_0x1a8e70(0x24b);else _0x234319[_0x1a8e70(0x39a)]&&(_0x234319[_0x1a8e70(0x31d)]=_0x1a8e70(0x39a));}}_0x234319['in']&&!_0x234319['database']&&(_0x234319[_0x1a8e70(0x22c)]=_0x234319['in']);if(_0x234319[_0x1a8e70(0x31c)])_0x234319[_0x1a8e70(0x269)]=LogLevel[_0x1a8e70(0x244)];else{if(_0x234319['debug'])_0x234319[_0x1a8e70(0x269)]=LogLevel[_0x1a8e70(0x358)];else _0x234319['logLevel']===undefined&&(_0x234319['logLevel']=LogLevel[_0x1a8e70(0x2c5)]);}});async function createTDXInstance(_0x3aa85f){const _0x53c2dd=a2_0x4bfcb6,_0x4a3e65=await GlobalContext[_0x53c2dd(0x2ae)](_0x3aa85f);return _0x4a3e65[_0x53c2dd(0x315)](_0x3aa85f),TDX[_0x53c2dd(0x2e9)]({'site':_0x4a3e65['site'],'apiKey':_0x4a3e65['apiKey'],'logLevel':_0x4a3e65[_0x53c2dd(0x269)],'profile':_0x4a3e65[_0x53c2dd(0x236)]});}const databaseCmd=program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x22c))['alias']('db')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x295)),databaseListAction=async(_0x1a972f,_0x2150f8)=>{const _0x1d55f4=a2_0x4bfcb6,_0x11825e=new DatabasesCommand(),_0x3f60c8=program[_0x1d55f4(0x385)](),_0x30946b=await createTDXInstance(_0x3f60c8),_0x5824c5=await _0x11825e[_0x1d55f4(0x297)]({'options':{..._0x3f60c8,..._0x2150f8},'args':_0x1a972f?[_0x1a972f]:[],'tdx':_0x30946b});process['exit'](_0x5824c5);};databaseCmd['command'](a2_0x4bfcb6(0x281))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x334))['action'](databaseListAction),program['command']('databases\x20[pattern]',{'hidden':!![]})[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x395))[a2_0x4bfcb6(0x2c6)](databaseListAction),program['command']('chat\x20[message...]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x38b))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e4),a2_0x4bfcb6(0x2c1))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x36f),'Model\x20name\x20(default:\x20claude-4.5-sonnet)')[a2_0x4bfcb6(0x366)]('--temperature\x20<n>',a2_0x4bfcb6(0x24d))[a2_0x4bfcb6(0x366)]('--new','Start\x20a\x20new\x20chat\x20session')[a2_0x4bfcb6(0x2c6)](async(_0x4a0262,_0x3e1463)=>{const _0x23f97d=a2_0x4bfcb6,_0x277d52=new ChatCommand(),_0x49ae01=program[_0x23f97d(0x385)](),_0x49bd2d=await createTDXInstance(_0x49ae01),_0x4c0440=await _0x277d52[_0x23f97d(0x297)]({'options':{..._0x49ae01,..._0x3e1463},'args':_0x4a0262,'tdx':_0x49bd2d});process[_0x23f97d(0x28a)](_0x4c0440);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x4bfcb6(0x317)](a2_0x4bfcb6(0x3a2))[a2_0x4bfcb6(0x1cc)](a2_0x4bfcb6(0x21e),a2_0x4bfcb6(0x2e1))[a2_0x4bfcb6(0x366)]('-X,\x20--method\x20<method>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')['option'](a2_0x4bfcb6(0x1fc),a2_0x4bfcb6(0x2f8))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x27c),'Read\x20request\x20body\x20from\x20file')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x388),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x3b5eff,_0x57a2cd)=>{return _0x57a2cd?[..._0x57a2cd,_0x3b5eff]:[_0x3b5eff];})[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1ef),a2_0x4bfcb6(0x2e8),'td')[a2_0x4bfcb6(0x2c6)](async(_0x29a8d1,_0x78ca31)=>{const _0x2eaafe=a2_0x4bfcb6;if(!_0x29a8d1){apiCmd[_0x2eaafe(0x377)]();return;}const _0x453b48=new ApiCommand(),_0x13081c=program['opts'](),_0x3738d6=await createTDXInstance(_0x13081c),_0x1c6fb2=await _0x453b48[_0x2eaafe(0x297)]({'options':{..._0x13081c,..._0x78ca31},'args':[_0x29a8d1],'tdx':_0x3738d6});process[_0x2eaafe(0x28a)](_0x1c6fb2);}),tableCmd=program[a2_0x4bfcb6(0x27e)]('table')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x287)),tableListAction=async(_0x57d34d,_0x155ab8)=>{const _0x30b1fa=a2_0x4bfcb6,_0x59591f=new TablesCommand(),_0x3f5e4f=program['opts'](),_0x3fe4c9=await createTDXInstance(_0x3f5e4f);_0x155ab8['in']&&(_0x155ab8['database']=_0x155ab8['in']);const _0x398cf6=await _0x59591f[_0x30b1fa(0x297)]({'options':{..._0x3f5e4f,..._0x155ab8},'args':_0x57d34d?[_0x57d34d]:[],'tdx':_0x3fe4c9});process['exit'](_0x398cf6);};tableCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x341))[a2_0x4bfcb6(0x366)]('-d,\x20--database\x20<database>',a2_0x4bfcb6(0x360))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x328),a2_0x4bfcb6(0x399))[a2_0x4bfcb6(0x2c6)](tableListAction),program['command']('tables\x20[pattern]',{'hidden':!![]})[a2_0x4bfcb6(0x355)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x257),a2_0x4bfcb6(0x360))['option']('--in\x20<database>',a2_0x4bfcb6(0x399))[a2_0x4bfcb6(0x2c6)](tableListAction),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x210))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1f7))['option']('-d,\x20--database\x20<database>',a2_0x4bfcb6(0x342))[a2_0x4bfcb6(0x366)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4bfcb6(0x2c6)](async(_0x28f9dc,_0x25a6ce)=>{const _0x12112c=a2_0x4bfcb6,_0x286ca7=new ShowCommand(),_0x1315d1=program[_0x12112c(0x385)](),_0x1bd247=await createTDXInstance(_0x1315d1);_0x25a6ce['in']&&(_0x25a6ce[_0x12112c(0x22c)]=_0x25a6ce['in']);const _0x5a5c9=await _0x286ca7[_0x12112c(0x297)]({'options':{..._0x1315d1,..._0x25a6ce},'args':_0x28f9dc?[_0x28f9dc]:[],'tdx':_0x1bd247});process[_0x12112c(0x28a)](_0x5a5c9);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x376))[a2_0x4bfcb6(0x1ca)](a2_0x4bfcb6(0x229))['description'](a2_0x4bfcb6(0x246))['option'](a2_0x4bfcb6(0x257),a2_0x4bfcb6(0x342))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x328),a2_0x4bfcb6(0x399))[a2_0x4bfcb6(0x2c6)](async(_0x244009,_0x18be78)=>{const _0x88cc50=a2_0x4bfcb6,_0x3f78ab=new DescribeCommand(),_0x2fe476=program[_0x88cc50(0x385)](),_0x2e0f53=await createTDXInstance(_0x2fe476);_0x18be78['in']&&(_0x18be78[_0x88cc50(0x22c)]=_0x18be78['in']);const _0x147a40=await _0x3f78ab[_0x88cc50(0x297)]({'options':{..._0x2fe476,..._0x18be78},'args':_0x244009?[_0x244009]:[],'tdx':_0x2e0f53});process[_0x88cc50(0x28a)](_0x147a40);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2f7))['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x257),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x328),a2_0x4bfcb6(0x399))['option'](a2_0x4bfcb6(0x1f4),a2_0x4bfcb6(0x223))[a2_0x4bfcb6(0x366)]('-f,\x20--file\x20<path>',a2_0x4bfcb6(0x306))['option']('--limit\x20<rows>',a2_0x4bfcb6(0x2af),'40')[a2_0x4bfcb6(0x2c6)](async(_0x49bc9a,_0x2db371)=>{const _0x416cac=a2_0x4bfcb6,_0x9eebfc=new QueryCommand(),_0x2ab29a=program[_0x416cac(0x385)](),_0x4c0ff4=await createTDXInstance(_0x2ab29a);_0x2db371['in']&&(_0x2db371[_0x416cac(0x22c)]=_0x2db371['in']);const _0x58716e=await _0x9eebfc['run']({'options':{..._0x2ab29a,..._0x2db371},'args':_0x49bc9a?[_0x49bc9a]:[],'tdx':_0x4c0ff4});process[_0x416cac(0x28a)](_0x58716e);});const segmentCmd=program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x200))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x22e)),segmentListAction=async(_0x2cb9aa,_0x27436d)=>{const _0x8175ef=a2_0x4bfcb6,_0x59dbeb=new SegmentsCommand(),_0x84dab8=program[_0x8175ef(0x385)](),_0xd9d6c8=await createTDXInstance(_0x84dab8),_0x5ee701=await _0x59dbeb['run']({'options':{..._0x84dab8,..._0x27436d},'args':_0x2cb9aa?[_0x2cb9aa]:[],'tdx':_0xd9d6c8});process['exit'](_0x5ee701);};segmentCmd[a2_0x4bfcb6(0x27e)]('list\x20[path]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x301))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2ac),a2_0x4bfcb6(0x392))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x393),a2_0x4bfcb6(0x27b),'10')['action'](segmentListAction),program['command'](a2_0x4bfcb6(0x1f1),{'hidden':!![]})[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2dd))[a2_0x4bfcb6(0x366)]('-r,\x20--recursive',a2_0x4bfcb6(0x392))['option'](a2_0x4bfcb6(0x393),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['action'](segmentListAction),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2bf))['description']('Set\x20current\x20segment/folder\x20context\x20for\x20navigation')['action'](async(_0x1e9805,_0x4ac8aa)=>{const _0x4caed1=a2_0x4bfcb6,_0x12cdae=new SegmentUseCommand(),_0xb07355=program[_0x4caed1(0x385)](),_0x5704df=await createTDXInstance(_0xb07355),_0x22ac7a=await _0x12cdae['run']({'options':{..._0xb07355,..._0x4ac8aa},'args':[_0x1e9805],'tdx':_0x5704df});process['exit'](_0x22ac7a);}),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2c7))['description'](a2_0x4bfcb6(0x362))[a2_0x4bfcb6(0x2c6)](async _0x55ae5f=>{const _0x8a9987=a2_0x4bfcb6,_0x20fa4c=new SegmentPwdCommand(),_0x52a4de=program['opts'](),_0x50d937=await createTDXInstance(_0x52a4de),_0x1cb891=await _0x20fa4c['run']({'options':{..._0x52a4de,..._0x55ae5f},'args':[],'tdx':_0x50d937});process[_0x8a9987(0x28a)](_0x1cb891);}),segmentCmd['command']('info\x20[segment_name]')['alias'](a2_0x4bfcb6(0x1ce))[a2_0x4bfcb6(0x355)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x4bfcb6(0x2c6)](async(_0x42bf97,_0x504faf)=>{const _0x45f950=a2_0x4bfcb6,_0x2d3e61=new SegmentInfoCommand(),_0x86d0e1=program['opts'](),_0x19e8d9=await createTDXInstance(_0x86d0e1),_0x20c7be=await _0x2d3e61[_0x45f950(0x297)]({'options':{..._0x86d0e1,..._0x504faf},'args':_0x42bf97?[_0x42bf97]:[],'tdx':_0x19e8d9});process[_0x45f950(0x28a)](_0x20c7be);}),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x32f))['description'](a2_0x4bfcb6(0x354))['action'](async(_0x4b5c30,_0x12a5ad)=>{const _0x35310d=a2_0x4bfcb6,_0x515515=new SegmentDescCommand(),_0x111f75=program['opts'](),_0x335451=await createTDXInstance(_0x111f75),_0x2082d5=await _0x515515[_0x35310d(0x297)]({'options':{..._0x111f75,..._0x12a5ad},'args':_0x4b5c30?[_0x4b5c30]:[],'tdx':_0x335451});process[_0x35310d(0x28a)](_0x2082d5);}),segmentCmd[a2_0x4bfcb6(0x27e)]('show\x20[segment_name]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x290))[a2_0x4bfcb6(0x2c6)](async(_0x422194,_0xc0ff58)=>{const _0x4f0aa3=a2_0x4bfcb6,_0x24e211=new SegmentShowCommand(),_0x585864=program['opts'](),_0x3f5137=await createTDXInstance(_0x585864),_0x156569=await _0x24e211['run']({'options':{..._0x585864,..._0xc0ff58},'args':_0x422194?[_0x422194]:[],'tdx':_0x3f5137});process[_0x4f0aa3(0x28a)](_0x156569);}),segmentCmd['command'](a2_0x4bfcb6(0x2a5))['description'](a2_0x4bfcb6(0x1db))[a2_0x4bfcb6(0x2c6)](async(_0x1134dd,_0x4aa8e5)=>{const _0x344d34=a2_0x4bfcb6,_0x119780=new SegmentFolderListCommand(),_0x365a62=program[_0x344d34(0x385)](),_0x57987d=await createTDXInstance(_0x365a62),_0x58277f=await _0x119780['run']({'options':{..._0x365a62,..._0x4aa8e5},'args':[_0x1134dd],'tdx':_0x57987d});process[_0x344d34(0x28a)](_0x58277f);});const folderCmd=segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1c6))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2f3));folderCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x272))[a2_0x4bfcb6(0x355)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x4bfcb6(0x2c6)](async(_0xa2c614,_0x2c2f7b)=>{const _0x1921e1=a2_0x4bfcb6,_0xe84f2b=new SegmentFolderShowCommand(),_0x592344=program[_0x1921e1(0x385)](),_0x109e96=await createTDXInstance(_0x592344),_0x34be86=await _0xe84f2b[_0x1921e1(0x297)]({'options':{..._0x592344,..._0x2c2f7b},'args':[_0xa2c614],'tdx':_0x109e96});process[_0x1921e1(0x28a)](_0x34be86);}),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1e9))['description']('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x407b45,_0x305554)=>{const _0x2519c0=a2_0x4bfcb6,_0x24ac76=new SegmentSQLCommand(),_0x4e2c7d=program['opts'](),_0x299284=await createTDXInstance(_0x4e2c7d),_0x5b2259=await _0x24ac76[_0x2519c0(0x297)]({'options':{..._0x4e2c7d,..._0x305554},'args':_0x407b45?[_0x407b45]:[],'tdx':_0x299284});process['exit'](_0x5b2259);}),segmentCmd['command'](a2_0x4bfcb6(0x397))['description'](a2_0x4bfcb6(0x201))[a2_0x4bfcb6(0x2c6)](async(_0x2b70d1,_0x4ac3a8)=>{const _0x7688cd=a2_0x4bfcb6,_0x4c6487=new SegmentFieldsCommand(),_0xab702f=program[_0x7688cd(0x385)](),_0x30c4f2=await createTDXInstance(_0xab702f),_0x5a8cc0=await _0x4c6487[_0x7688cd(0x297)]({'options':{..._0xab702f,..._0x4ac3a8},'args':_0x2b70d1?[_0x2b70d1]:[],'tdx':_0x30c4f2});process[_0x7688cd(0x28a)](_0x5a8cc0);}),segmentCmd[a2_0x4bfcb6(0x27e)]('create\x20<segment_name>')['description'](a2_0x4bfcb6(0x35d))['option'](a2_0x4bfcb6(0x37a),'Segment\x20description')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1e5),a2_0x4bfcb6(0x249))[a2_0x4bfcb6(0x366)]('--rule-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2ea),a2_0x4bfcb6(0x1e4))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x364),a2_0x4bfcb6(0x382))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x283),a2_0x4bfcb6(0x1ed))['option'](a2_0x4bfcb6(0x2d4),a2_0x4bfcb6(0x32d))[a2_0x4bfcb6(0x2c6)](async(_0x57ae99,_0x13efa1)=>{const _0x475b09=a2_0x4bfcb6,_0x54b6d2=new SegmentCreateCommand(),_0xba6e11=program['opts'](),_0x272b0c=await createTDXInstance(_0xba6e11),_0x1dcf9d=await _0x54b6d2[_0x475b09(0x297)]({'options':{..._0xba6e11,..._0x13efa1},'args':[_0x57ae99],'tdx':_0x272b0c});process[_0x475b09(0x28a)](_0x1dcf9d);}),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x293))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x29b))['option'](a2_0x4bfcb6(0x34e),a2_0x4bfcb6(0x2be))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x2ed))['option'](a2_0x4bfcb6(0x1e5),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x26b),a2_0x4bfcb6(0x2b4))[a2_0x4bfcb6(0x366)]('--folder\x20<name>',a2_0x4bfcb6(0x2fb))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x364),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x4bfcb6(0x2c6)](async(_0x57bd5c,_0x2224b1)=>{const _0xc4ac79=a2_0x4bfcb6,_0x1362e9=new SegmentUpdateCommand(),_0x5d1350=program[_0xc4ac79(0x385)](),_0x1cf0c2=await createTDXInstance(_0x5d1350),_0x4c69d4=await _0x1362e9[_0xc4ac79(0x297)]({'options':{..._0x5d1350,..._0x2224b1},'args':[_0x57bd5c],'tdx':_0x1cf0c2});process[_0xc4ac79(0x28a)](_0x4c69d4);});const parentCmd=segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x31f))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x284)),parentListAction=async(_0x25299d,_0x283820)=>{const _0x37866d=a2_0x4bfcb6,_0x533eda=new ParentSegmentListCommand(),_0x7a65e5=program[_0x37866d(0x385)](),_0xc54ef8=await createTDXInstance(_0x7a65e5),_0x3d24a9=await _0x533eda[_0x37866d(0x297)]({'options':{..._0x7a65e5,..._0x283820},'args':_0x25299d?[_0x25299d]:[],'tdx':_0xc54ef8});process[_0x37866d(0x28a)](_0x3d24a9);};parentCmd[a2_0x4bfcb6(0x27e)]('list\x20[pattern]')['description'](a2_0x4bfcb6(0x204))[a2_0x4bfcb6(0x2c6)](parentListAction),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x273),{'hidden':!![]})['description'](a2_0x4bfcb6(0x233))[a2_0x4bfcb6(0x2c6)](parentListAction),parentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1c2))['description'](a2_0x4bfcb6(0x380))['option'](a2_0x4bfcb6(0x2fc),a2_0x4bfcb6(0x38c))['option'](a2_0x4bfcb6(0x202),'Skip\x20confirmation\x20prompt')[a2_0x4bfcb6(0x2c6)](async(_0x46910c,_0x2f900c)=>{const _0x102e09=a2_0x4bfcb6,_0x4925b8=new ParentSegmentPullCommand(),_0x2ce9b3=program[_0x102e09(0x385)](),_0x359781=await createTDXInstance(_0x2ce9b3),_0x254fa2=await _0x4925b8[_0x102e09(0x297)]({'options':{..._0x2ce9b3,..._0x2f900c},'args':_0x46910c?[_0x46910c]:[],'tdx':_0x359781});process[_0x102e09(0x28a)](_0x254fa2);}),parentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x29a))['description'](a2_0x4bfcb6(0x285))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x202),a2_0x4bfcb6(0x2c4))[a2_0x4bfcb6(0x2c6)](async(_0x1f1ce3,_0x5bed8b)=>{const _0x133d31=a2_0x4bfcb6,_0x2270b5=new ParentSegmentPushCommand(),_0x1dbd9c=program[_0x133d31(0x385)](),_0x2a1633=await createTDXInstance(_0x1dbd9c),_0x576cd4=await _0x2270b5['run']({'options':{..._0x1dbd9c,..._0x5bed8b},'args':_0x1f1ce3?[_0x1f1ce3]:[],'tdx':_0x2a1633});process['exit'](_0x576cd4);}),parentCmd['command']('validate\x20[file]')[a2_0x4bfcb6(0x355)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x22d),a2_0x4bfcb6(0x307))[a2_0x4bfcb6(0x366)]('--attribute\x20[name]',a2_0x4bfcb6(0x2a1))[a2_0x4bfcb6(0x366)]('--behavior\x20[name]',a2_0x4bfcb6(0x1f5))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33e),a2_0x4bfcb6(0x35e))['option']('--interval\x20<range>',a2_0x4bfcb6(0x1de),a2_0x4bfcb6(0x238))[a2_0x4bfcb6(0x2c6)](async(_0x3cddfe,_0x3dfff1)=>{const _0x200356=a2_0x4bfcb6,_0x308952=new ParentSegmentValidateCommand(),_0x42b201=program[_0x200356(0x385)](),_0x1e9c0d=await createTDXInstance(_0x42b201),_0x192c9a=await _0x308952['run']({'options':{..._0x42b201,..._0x3dfff1},'args':_0x3cddfe?[_0x3cddfe]:[],'tdx':_0x1e9c0d});process[_0x200356(0x28a)](_0x192c9a);}),parentCmd['command'](a2_0x4bfcb6(0x2fe))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x29e))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x22d),a2_0x4bfcb6(0x219))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x282),a2_0x4bfcb6(0x327))[a2_0x4bfcb6(0x366)]('--behavior\x20[name]',a2_0x4bfcb6(0x248))['option'](a2_0x4bfcb6(0x33e),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1d7),a2_0x4bfcb6(0x1de),'-1d')[a2_0x4bfcb6(0x2c6)](async(_0x33a6c0,_0x3cf46e)=>{const _0x2dae9e=a2_0x4bfcb6,_0x3e6bd6=new ParentSegmentPreviewCommand(),_0x44fced=program[_0x2dae9e(0x385)](),_0x2d1263=await createTDXInstance(_0x44fced),_0x5b88b4=await _0x3e6bd6[_0x2dae9e(0x297)]({'options':{..._0x44fced,..._0x3cf46e},'args':_0x33a6c0?[_0x33a6c0]:[],'tdx':_0x2d1263});process['exit'](_0x5b88b4);}),parentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x314))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1e8))['option']('-y,\x20--yes',a2_0x4bfcb6(0x2c4))[a2_0x4bfcb6(0x2c6)](async(_0x95907,_0x5992db)=>{const _0x19f23e=a2_0x4bfcb6,_0x4275ec=new ParentSegmentRunCommand(),_0x47eb32=program[_0x19f23e(0x385)](),_0x2c13b5=await createTDXInstance(_0x47eb32),_0x15649f=await _0x4275ec[_0x19f23e(0x297)]({'options':{..._0x47eb32,..._0x5992db},'args':_0x95907?[_0x95907]:[],'tdx':_0x2c13b5});process[_0x19f23e(0x28a)](_0x15649f);});const parentSegmentCmd=program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x20e))[a2_0x4bfcb6(0x1ca)]('ps')[a2_0x4bfcb6(0x355)]('Parent\x20segment\x20management');parentSegmentCmd[a2_0x4bfcb6(0x27e)]('list\x20[pattern]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x204))[a2_0x4bfcb6(0x2c6)](parentListAction),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1c2))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x208))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2fc),a2_0x4bfcb6(0x241))[a2_0x4bfcb6(0x366)]('-y,\x20--yes',a2_0x4bfcb6(0x2c4))['option'](a2_0x4bfcb6(0x321),a2_0x4bfcb6(0x37b))[a2_0x4bfcb6(0x2c6)](async(_0x278598,_0x5f1d2a)=>{const _0x522799=a2_0x4bfcb6,_0xdd7d73=new ParentSegmentPullCommand(),_0x39bac4=program[_0x522799(0x385)](),_0x31f3d9=await createTDXInstance(_0x39bac4),_0x102e0a=await _0xdd7d73[_0x522799(0x297)]({'options':{..._0x39bac4,..._0x5f1d2a},'args':_0x278598?[_0x278598]:[],'tdx':_0x31f3d9});process['exit'](_0x102e0a);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x247))['description'](a2_0x4bfcb6(0x221))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x202),a2_0x4bfcb6(0x2c4))['action'](async(_0x4c4396,_0x4197f9)=>{const _0x5756e6=a2_0x4bfcb6,_0x220c83=new ParentSegmentPushCommand(),_0x266661=program[_0x5756e6(0x385)](),_0x1e09c8=await createTDXInstance(_0x266661),_0xba1ab7=await _0x220c83['run']({'options':{..._0x266661,..._0x4197f9},'args':_0x4c4396?[_0x4c4396]:[],'tdx':_0x1e09c8});process[_0x5756e6(0x28a)](_0xba1ab7);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)]('validate\x20[name]')['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x4bfcb6(0x22d),'Show\x20only\x20master\x20table\x20validation')[a2_0x4bfcb6(0x366)]('--attribute\x20[name]',a2_0x4bfcb6(0x2a1))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x230),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33e),a2_0x4bfcb6(0x35e))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1d7),a2_0x4bfcb6(0x1de),'-1d')[a2_0x4bfcb6(0x2c6)](async(_0x5f249a,_0xa67b84)=>{const _0x38f3f7=a2_0x4bfcb6,_0x3520b3=new ParentSegmentValidateCommand(),_0x29ca43=program[_0x38f3f7(0x385)](),_0x3bd0dd=await createTDXInstance(_0x29ca43),_0x45cacd=await _0x3520b3['run']({'options':{..._0x29ca43,..._0xa67b84},'args':_0x5f249a?[_0x5f249a]:[],'tdx':_0x3bd0dd});process[_0x38f3f7(0x28a)](_0x45cacd);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2eb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x29e))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x22d),a2_0x4bfcb6(0x219))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x282),a2_0x4bfcb6(0x327))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x230),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33e),a2_0x4bfcb6(0x2c9))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1d7),a2_0x4bfcb6(0x1de),a2_0x4bfcb6(0x238))[a2_0x4bfcb6(0x2c6)](async(_0x3008d1,_0x58b463)=>{const _0x1cd5f0=a2_0x4bfcb6,_0x4da7f6=new ParentSegmentPreviewCommand(),_0x15caf9=program['opts'](),_0x5cc7de=await createTDXInstance(_0x15caf9),_0x30b5f0=await _0x4da7f6[_0x1cd5f0(0x297)]({'options':{..._0x15caf9,..._0x58b463},'args':_0x3008d1?[_0x3008d1]:[],'tdx':_0x5cc7de});process['exit'](_0x30b5f0);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x314))['description'](a2_0x4bfcb6(0x1e8))['option'](a2_0x4bfcb6(0x202),a2_0x4bfcb6(0x2c4))[a2_0x4bfcb6(0x2c6)](async(_0x3dac62,_0x3ac40e)=>{const _0x1136a6=a2_0x4bfcb6,_0x31236c=new ParentSegmentRunCommand(),_0x5b2071=program[_0x1136a6(0x385)](),_0x461fb8=await createTDXInstance(_0x5b2071),_0xac203e=await _0x31236c[_0x1136a6(0x297)]({'options':{..._0x5b2071,..._0x3ac40e},'args':_0x3dac62?[_0x3dac62]:[],'tdx':_0x461fb8});process[_0x1136a6(0x28a)](_0xac203e);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x318))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x27d))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e3),a2_0x4bfcb6(0x323))['option'](a2_0x4bfcb6(0x33d),'Output\x20as\x20JSON\x20Lines')[a2_0x4bfcb6(0x2c6)](async(_0x198b18,_0x2d5beb)=>{const _0x357d35=a2_0x4bfcb6,_0x61e9df=new ParentSegmentFieldsCommand(),_0x55d2cd=program['opts'](),_0x4c2b60=await createTDXInstance(_0x55d2cd),_0x2a8b06=await _0x61e9df[_0x357d35(0x297)]({'options':{..._0x55d2cd,..._0x2d5beb},'args':_0x198b18?[_0x198b18]:[],'tdx':_0x4c2b60});process['exit'](_0x2a8b06);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x348))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x379))[a2_0x4bfcb6(0x366)]('--json','Output\x20as\x20JSON')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33d),a2_0x4bfcb6(0x2ad))[a2_0x4bfcb6(0x2c6)](async(_0x350ea0,_0x1a191e)=>{const _0x4b73b0=a2_0x4bfcb6,_0x4d08de=new ParentSegmentInfoCommand(),_0x431a83=program[_0x4b73b0(0x385)](),_0x3c62d4=await createTDXInstance(_0x431a83),_0x5e6114=await _0x4d08de['run']({'options':{..._0x431a83,..._0x1a191e},'args':_0x350ea0?[_0x350ea0]:[],'tdx':_0x3c62d4});process['exit'](_0x5e6114);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1bf))[a2_0x4bfcb6(0x355)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e3),a2_0x4bfcb6(0x323))['option'](a2_0x4bfcb6(0x33d),a2_0x4bfcb6(0x2ad))['action'](async(_0x102f3d,_0x5aad14)=>{const _0x5103a3=a2_0x4bfcb6,_0x27357f=new ParentSegmentDescCommand(),_0x3bf5d3=program[_0x5103a3(0x385)](),_0x30d73c=await createTDXInstance(_0x3bf5d3),_0x40bd7f=await _0x27357f[_0x5103a3(0x297)]({'options':{..._0x3bf5d3,..._0x5aad14},'args':_0x102f3d?[_0x102f3d]:[],'tdx':_0x30d73c});process[_0x5103a3(0x28a)](_0x40bd7f);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x344))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x22b))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e3),a2_0x4bfcb6(0x323))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33d),a2_0x4bfcb6(0x2ad))[a2_0x4bfcb6(0x2c6)](async(_0x564b19,_0xede7b0)=>{const _0x189274=a2_0x4bfcb6,_0x1d87dc=new ParentSegmentSQLCommand(),_0x300cc1=program[_0x189274(0x385)](),_0x8d06e6=await createTDXInstance(_0x300cc1),_0x321ab2=await _0x1d87dc[_0x189274(0x297)]({'options':{..._0x300cc1,..._0xede7b0},'args':_0x564b19?[_0x564b19]:[],'tdx':_0x8d06e6});process[_0x189274(0x28a)](_0x321ab2);}),parentSegmentCmd['command'](a2_0x4bfcb6(0x36c))[a2_0x4bfcb6(0x355)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x36e),'Limit\x20number\x20of\x20rows')[a2_0x4bfcb6(0x366)]('--json',a2_0x4bfcb6(0x323))[a2_0x4bfcb6(0x366)]('--jsonl',a2_0x4bfcb6(0x2ad))[a2_0x4bfcb6(0x2c6)](async(_0x3ef99c,_0x3a4870)=>{const _0xe9b9a1=a2_0x4bfcb6,_0x59435e=new ParentSegmentShowCommand(),_0x512064=program[_0xe9b9a1(0x385)](),_0x5d52ef=await createTDXInstance(_0x512064),_0x345bc6=await _0x59435e['run']({'options':{..._0x512064,..._0x3a4870},'args':_0x3ef99c?[_0x3ef99c]:[],'tdx':_0x5d52ef});process[_0xe9b9a1(0x28a)](_0x345bc6);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x267))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x33c))['action'](async(_0xed7ad4,_0x677471)=>{const _0x482345=a2_0x4bfcb6,_0x400294=new UseCommand(),_0x108ff5=program[_0x482345(0x385)](),_0x386879=_0xed7ad4?[_0x482345(0x2a9),_0xed7ad4]:[],_0x51af69=await _0x400294[_0x482345(0x297)]({'options':{..._0x108ff5,..._0x677471},'args':_0x386879,'tdx':null});process[_0x482345(0x28a)](_0x51af69);}),parentCmd[a2_0x4bfcb6(0x27e)]('create\x20<name>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2ba))['requiredOption'](a2_0x4bfcb6(0x335),a2_0x4bfcb6(0x389))[a2_0x4bfcb6(0x28f)]('--table\x20<table>',a2_0x4bfcb6(0x268))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x35b))['option'](a2_0x4bfcb6(0x34c),a2_0x4bfcb6(0x218))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x39c),a2_0x4bfcb6(0x26d))[a2_0x4bfcb6(0x366)]('--timezone\x20<tz>',a2_0x4bfcb6(0x1fd))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2b9),a2_0x4bfcb6(0x203))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x38f),a2_0x4bfcb6(0x32c))['option']('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x4bfcb6(0x366)]('--behaviors-file\x20<file>',a2_0x4bfcb6(0x24c))['option'](a2_0x4bfcb6(0x36a),a2_0x4bfcb6(0x220))['option']('--customer-group-file\x20<file>',a2_0x4bfcb6(0x23c))[a2_0x4bfcb6(0x2c6)](async(_0x1bef29,_0x389f5c)=>{const _0x1b7cd8=a2_0x4bfcb6,_0x456480=new ParentSegmentCreateCommand(),_0x576626=program[_0x1b7cd8(0x385)](),_0x2a5570=await createTDXInstance(_0x576626),_0x4222b2=await _0x456480['run']({'options':{..._0x576626,..._0x389f5c},'args':[_0x1bef29],'tdx':_0x2a5570});process[_0x1b7cd8(0x28a)](_0x4222b2);}),parentCmd[a2_0x4bfcb6(0x27e)]('update\x20<name>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1c5))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x2ed))['option']('--schedule-type\x20<type>',a2_0x4bfcb6(0x2a0))['option'](a2_0x4bfcb6(0x39c),a2_0x4bfcb6(0x240))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c4),a2_0x4bfcb6(0x216))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2d7),a2_0x4bfcb6(0x280))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x35f),a2_0x4bfcb6(0x26f))['option'](a2_0x4bfcb6(0x34f),a2_0x4bfcb6(0x24e))['option']('--add-behaviors-file\x20<file>',a2_0x4bfcb6(0x2e2))[a2_0x4bfcb6(0x2c6)](async(_0x193d89,_0x35c759)=>{const _0x1ccabe=a2_0x4bfcb6,_0x12ba08=new ParentSegmentUpdateCommand(),_0x50cd15=program[_0x1ccabe(0x385)](),_0x183d94=await createTDXInstance(_0x50cd15),_0x1b68ae=await _0x12ba08[_0x1ccabe(0x297)]({'options':{..._0x50cd15,..._0x35c759},'args':[_0x193d89],'tdx':_0x183d94});process['exit'](_0x1b68ae);}),folderCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2ca))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2b2))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x305))[a2_0x4bfcb6(0x366)]('--parent-folder\x20<name>',a2_0x4bfcb6(0x30f))[a2_0x4bfcb6(0x2c6)](async(_0x27578b,_0x229d8f,_0x49770c)=>{const _0x50c9cb=a2_0x4bfcb6,_0x359060=new SegmentFolderCreateCommand(),_0x37ad8e=program[_0x50c9cb(0x385)](),_0xfc5586=await createTDXInstance(_0x37ad8e),_0x18ad41=await _0x359060[_0x50c9cb(0x297)]({'options':{..._0x37ad8e,..._0x49770c},'args':[_0x27578b,_0x229d8f],'tdx':_0xfc5586});process['exit'](_0x18ad41);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2e0))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2ab))['action'](async(_0x4b0441,_0x3dbbce)=>{const _0x3b9d93=a2_0x4bfcb6,_0x271825=new ActivationsCommand(),_0x3368fa=program[_0x3b9d93(0x385)](),_0x220ff=await createTDXInstance(_0x3368fa),_0x942edd=await _0x271825[_0x3b9d93(0x297)]({'options':{..._0x3368fa,..._0x3dbbce},'args':[_0x4b0441],'tdx':_0x220ff});process[_0x3b9d93(0x28a)](_0x942edd);});const workflowCmd=program['command']('workflow')[a2_0x4bfcb6(0x1ca)]('wf')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x338)),wfProjectCmd=workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2db))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x28e)),wfProjectListAction=async(_0x19a04e,_0x5221ee)=>{const _0x463876=a2_0x4bfcb6,_0x699f64=new WorkflowProjectsCommand(),_0x132c3b=program['opts'](),_0x67bc28=await createTDXInstance(_0x132c3b),_0x198cd3=await _0x699f64[_0x463876(0x297)]({'options':{..._0x132c3b,..._0x5221ee},'args':_0x19a04e?[_0x19a04e]:[],'tdx':_0x67bc28});process['exit'](_0x198cd3);};wfProjectCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))['description'](a2_0x4bfcb6(0x32e))[a2_0x4bfcb6(0x2c6)](wfProjectListAction),workflowCmd['command']('projects\x20[pattern]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2d1))[a2_0x4bfcb6(0x2c6)](wfProjectListAction);const wfWorkflowListAction=async(_0x2e7015,_0x46d27c)=>{const _0x2273cf=a2_0x4bfcb6,_0x57749c=new WorkflowWorkflowsCommand(),_0x14ad9d=program[_0x2273cf(0x385)](),_0x3a79f3=await createTDXInstance(_0x14ad9d),_0x193e02=await _0x57749c[_0x2273cf(0x297)]({'options':{..._0x14ad9d,..._0x46d27c},'args':_0x2e7015?[_0x2e7015]:[],'tdx':_0x3a79f3});process['exit'](_0x193e02);};workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2cd))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x22f))[a2_0x4bfcb6(0x2c6)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x4bfcb6(0x226))[a2_0x4bfcb6(0x355)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x130c5d,_0x1ac30c)=>{const _0x2eb94a=a2_0x4bfcb6,_0x5a7810=new WorkflowSessionsCommand(),_0x365cf7=program[_0x2eb94a(0x385)](),_0x437596=await createTDXInstance(_0x365cf7),_0x1246b4=await _0x5a7810[_0x2eb94a(0x297)]({'options':{..._0x365cf7,..._0x1ac30c},'args':_0x130c5d?[_0x130c5d]:[],'tdx':_0x437596});process[_0x2eb94a(0x28a)](_0x1246b4);};wfSessionCmd['command'](a2_0x4bfcb6(0x340))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1c8))['option'](a2_0x4bfcb6(0x2e5),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option']('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x4bfcb6(0x2d0),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x259))['description'](a2_0x4bfcb6(0x39d))[a2_0x4bfcb6(0x366)]('--status\x20<status>',a2_0x4bfcb6(0x252))[a2_0x4bfcb6(0x366)]('--from\x20<timestamp>',a2_0x4bfcb6(0x275))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2d0),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x4bfcb6(0x2c6)](wfSessionListAction);const wfAttemptListAction=async(_0x4fecc5,_0x35636d)=>{const _0x150728=a2_0x4bfcb6,_0xecf563=new WorkflowAttemptsCommand(),_0x101aff=program[_0x150728(0x385)](),_0x6da1a7=await createTDXInstance(_0x101aff),_0x79729=await _0xecf563[_0x150728(0x297)]({'options':{..._0x101aff,..._0x35636d},'args':_0x4fecc5?[_0x4fecc5]:[],'tdx':_0x6da1a7});process['exit'](_0x79729);},attemptCmd=workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x390))['description'](a2_0x4bfcb6(0x217))[a2_0x4bfcb6(0x304)](a2_0x4bfcb6(0x2a3),a2_0x4bfcb6(0x2d5))[a2_0x4bfcb6(0x304)]('[action]','Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x4bfcb6(0x304)](a2_0x4bfcb6(0x2b0),a2_0x4bfcb6(0x35a))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c7),a2_0x4bfcb6(0x21a))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2c0),a2_0x4bfcb6(0x350))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x35c),a2_0x4bfcb6(0x33f))['option'](a2_0x4bfcb6(0x251),a2_0x4bfcb6(0x3a0))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x396),a2_0x4bfcb6(0x1f0))['option'](a2_0x4bfcb6(0x34b),a2_0x4bfcb6(0x33b))['action'](async(_0x2a5fe9,_0x2fae95,_0x58e7bf,_0x41e045)=>{const _0x489876=a2_0x4bfcb6;if(_0x2a5fe9===_0x489876(0x296)){await wfAttemptListAction(_0x2fae95,_0x41e045);return;}if(!_0x2a5fe9){attemptCmd[_0x489876(0x377)]();return;}const _0x5a813c=program[_0x489876(0x385)](),_0x1fe673=await createTDXInstance(_0x5a813c);let _0x292ae4=0x0;if(!_0x2fae95){const _0x232767=new WorkflowAttemptCommand();_0x292ae4=await _0x232767[_0x489876(0x297)]({'options':{..._0x5a813c,..._0x41e045},'args':[_0x2a5fe9],'tdx':_0x1fe673});}else{if(_0x2fae95===_0x489876(0x363)){const _0x306cba=new WorkflowLogsCommand();_0x292ae4=await _0x306cba[_0x489876(0x297)]({'options':{..._0x5a813c,..._0x41e045},'args':_0x58e7bf?[_0x2a5fe9,_0x58e7bf]:[_0x2a5fe9],'tdx':_0x1fe673});}else{if(_0x2fae95==='tasks'){const _0x54d7ff=new WorkflowTasksCommand();_0x292ae4=await _0x54d7ff[_0x489876(0x297)]({'options':{..._0x5a813c,..._0x41e045},'args':[_0x2a5fe9],'tdx':_0x1fe673});}else{if(_0x2fae95===_0x489876(0x224)){const _0x453213=new WorkflowKillCommand();_0x292ae4=await _0x453213['run']({'options':{..._0x5a813c,..._0x41e045},'args':[_0x2a5fe9],'tdx':_0x1fe673});}else{if(_0x2fae95===_0x489876(0x20d)){const _0x539941=new WorkflowRetryCommand();_0x292ae4=await _0x539941[_0x489876(0x297)]({'options':{..._0x5a813c,..._0x41e045},'args':[_0x489876(0x2d6)+_0x2a5fe9],'tdx':_0x1fe673});}else console['error'](_0x489876(0x36d)+_0x2fae95),console['error'](_0x489876(0x1d8)),_0x292ae4=0x1;}}}}process['exit'](_0x292ae4);});attemptCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x340))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x387))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x34b),a2_0x4bfcb6(0x27a))[a2_0x4bfcb6(0x2c6)](wfAttemptListAction),workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1d6))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1be))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x34b),a2_0x4bfcb6(0x27a))[a2_0x4bfcb6(0x2c6)](wfAttemptListAction),workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2d9))[a2_0x4bfcb6(0x355)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2cc),a2_0x4bfcb6(0x343))['option'](a2_0x4bfcb6(0x251),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')['action'](async(_0x190ad1,_0xfcc48f)=>{const _0x27c107=a2_0x4bfcb6,_0x4e11d9=new WorkflowRetryCommand(),_0xf6493=program[_0x27c107(0x385)](),_0x8e97fb=await createTDXInstance(_0xf6493),_0x3a2bb4=await _0x4e11d9[_0x27c107(0x297)]({'options':{..._0xf6493,..._0xfcc48f},'args':[_0x190ad1],'tdx':_0x8e97fb});process[_0x27c107(0x28a)](_0x3a2bb4);}),workflowCmd['command'](a2_0x4bfcb6(0x250))[a2_0x4bfcb6(0x355)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1f2),a2_0x4bfcb6(0x37e),(_0x3ac2bc,_0x580ac6=[])=>[..._0x580ac6,_0x3ac2bc],[])['option'](a2_0x4bfcb6(0x239),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x4bfcb6(0x2c6)](async(_0x1857e2,_0x2e1125)=>{const _0x2bad1b=a2_0x4bfcb6,_0x292771=new WorkflowRunCommand(),_0x24ddb6=program['opts'](),_0x3661c1=await createTDXInstance(_0x24ddb6),_0x5d632f=await _0x292771[_0x2bad1b(0x297)]({'options':{..._0x24ddb6,..._0x2e1125},'args':[_0x1857e2],'tdx':_0x3661c1});process[_0x2bad1b(0x28a)](_0x5d632f);}),workflowCmd['command']('download\x20<project-name>\x20[output-dir]')['description'](a2_0x4bfcb6(0x1df))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2fa),a2_0x4bfcb6(0x2c2))[a2_0x4bfcb6(0x2c6)](async(_0x157054,_0xc6f1f8,_0x5c985e)=>{const _0x5ad900=a2_0x4bfcb6,_0x1ae252=new WorkflowDownloadCommand(),_0x50a501=program[_0x5ad900(0x385)](),_0xa34b06=await createTDXInstance(_0x50a501),_0x5c2d68=await _0x1ae252['run']({'options':{..._0x50a501,..._0x5c985e},'args':[_0x157054,_0xc6f1f8||'.'],'tdx':_0xa34b06});process[_0x5ad900(0x28a)](_0x5c2d68);}),workflowCmd['command'](a2_0x4bfcb6(0x31b))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x391))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x30a),a2_0x4bfcb6(0x2df))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2fa),a2_0x4bfcb6(0x277))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1cd),a2_0x4bfcb6(0x20f))[a2_0x4bfcb6(0x2c6)](async(_0x35ec03,_0x2fdbd9)=>{const _0x823838=a2_0x4bfcb6,_0x28dd64=new WorkflowPushCommand(),_0xcb5f12=program[_0x823838(0x385)](),_0x295f96=await createTDXInstance(_0xcb5f12),_0x113cc8=await _0x28dd64['run']({'options':{..._0xcb5f12,..._0x2fdbd9},'args':_0x35ec03?[_0x35ec03]:[],'tdx':_0x295f96});process[_0x823838(0x28a)](_0x113cc8);}),workflowCmd['command'](a2_0x4bfcb6(0x351))[a2_0x4bfcb6(0x355)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x4bfcb6(0x2c6)](async(_0x51d9dd,_0xb495eb)=>{const _0x34aafb=a2_0x4bfcb6,_0x35818d=new WorkflowDeleteCommand(),_0xb8883f=program['opts'](),_0x2c3b85=await createTDXInstance(_0xb8883f),_0x3b991e=await _0x35818d[_0x34aafb(0x297)]({'options':{..._0xb8883f,..._0xb495eb},'args':[_0x51d9dd],'tdx':_0x2c3b85});process[_0x34aafb(0x28a)](_0x3b991e);});function a2_0x5c13(_0x558ce8,_0x2d4170){const _0x594798=a2_0x5947();return a2_0x5c13=function(_0x5c1354,_0x3150e6){_0x5c1354=_0x5c1354-0x1be;let _0x1681b4=_0x594798[_0x5c1354];return _0x1681b4;},a2_0x5c13(_0x558ce8,_0x2d4170);}const jobCmd=program['command'](a2_0x4bfcb6(0x320))['description'](a2_0x4bfcb6(0x25b)),jobListAction=async _0x459820=>{const _0x77e92=a2_0x4bfcb6,_0x53f9a0=new JobListCommand(),_0xf3b842=program[_0x77e92(0x385)](),_0x533ec9=await createTDXInstance(_0xf3b842),_0x2d136f=await _0x53f9a0[_0x77e92(0x297)]({'options':{..._0xf3b842,..._0x459820},'args':[],'tdx':_0x533ec9});process['exit'](_0x2d136f);};jobCmd[a2_0x4bfcb6(0x27e)]('list')['description'](a2_0x4bfcb6(0x378))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e5),a2_0x4bfcb6(0x209))[a2_0x4bfcb6(0x2c6)](jobListAction),program[a2_0x4bfcb6(0x27e)]('jobs',{'hidden':!![]})[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x243))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e5),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x4bfcb6(0x2c6)](jobListAction),jobCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x30e))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1c0))[a2_0x4bfcb6(0x2c6)](async(_0x33012d,_0x19ad78)=>{const _0x1b5e3e=a2_0x4bfcb6,_0x5efeee=new JobShowCommand(),_0x129416=program[_0x1b5e3e(0x385)](),_0x34d48d=await createTDXInstance(_0x129416),_0x4178b8=await _0x5efeee[_0x1b5e3e(0x297)]({'options':{..._0x129416,..._0x19ad78},'args':[_0x33012d],'tdx':_0x34d48d});process['exit'](_0x4178b8);}),jobCmd[a2_0x4bfcb6(0x27e)]('kill\x20<job-id>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1c3))[a2_0x4bfcb6(0x2c6)](async(_0x58b649,_0x478191)=>{const _0x155183=a2_0x4bfcb6,_0x1dd53f=new JobKillCommand(),_0x10b0de=program[_0x155183(0x385)](),_0x4af001=await createTDXInstance(_0x10b0de),_0x1d0026=await _0x1dd53f[_0x155183(0x297)]({'options':{..._0x10b0de,..._0x478191},'args':[_0x58b649],'tdx':_0x4af001});process[_0x155183(0x28a)](_0x1d0026);}),jobCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x300))[a2_0x4bfcb6(0x355)]('Submit\x20a\x20job')[a2_0x4bfcb6(0x366)]('--job-type\x20<type>',a2_0x4bfcb6(0x2b3),a2_0x4bfcb6(0x2e6))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x27c),'Read\x20query\x20from\x20file')[a2_0x4bfcb6(0x366)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)','information_schema')[a2_0x4bfcb6(0x2c6)](async(_0x54d414,_0x503802)=>{const _0x184149=a2_0x4bfcb6,_0x116416=new JobSubmitCommand(),_0xdb15b1=program[_0x184149(0x385)](),_0x116dc5=await createTDXInstance(_0xdb15b1),_0xecf0c8=await _0x116416[_0x184149(0x297)]({'options':{..._0xdb15b1,..._0x503802},'args':_0x54d414?[_0x54d414]:[],'tdx':_0x116dc5});process[_0x184149(0x28a)](_0xecf0c8);}),jobCmd[a2_0x4bfcb6(0x27e)]('result\x20<job-id>')[a2_0x4bfcb6(0x355)]('Get\x20job\x20results')['action'](async(_0x1ec65f,_0x57fe79)=>{const _0x2221e7=a2_0x4bfcb6,_0x3c8a38=new JobResultCommand(),_0x17b8be=program[_0x2221e7(0x385)](),_0x48c663=await createTDXInstance(_0x17b8be),_0x553da8=await _0x3c8a38[_0x2221e7(0x297)]({'options':{..._0x17b8be,..._0x57fe79},'args':[_0x1ec65f],'tdx':_0x48c663});process[_0x2221e7(0x28a)](_0x553da8);});const llmCmd=program[a2_0x4bfcb6(0x27e)]('llm')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1e0));llmCmd['command'](a2_0x4bfcb6(0x3a1))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x25a))['action'](async(_0x8198bb,_0x4d1e78)=>{const _0x210c21=a2_0x4bfcb6,_0x26ce79=new LLMUseCommand(),_0x3bdbdb=program[_0x210c21(0x385)](),_0x525bf9=await createTDXInstance(_0x3bdbdb),_0x20b108=await _0x26ce79[_0x210c21(0x297)]({'options':{..._0x3bdbdb,..._0x4d1e78},'args':[_0x8198bb],'tdx':_0x525bf9});process[_0x210c21(0x28a)](_0x20b108);}),llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x39b))[a2_0x4bfcb6(0x355)]('List\x20available\x20LLM\x20models')['action'](async _0x2af94f=>{const _0x59dfa2=a2_0x4bfcb6,_0x1b0004=new LLMModelsCommand(),_0x59114c=program['opts'](),_0x2f82c4=await createTDXInstance(_0x59114c),_0x53f055=await _0x1b0004[_0x59dfa2(0x297)]({'options':{..._0x59114c,..._0x2af94f},'args':[],'tdx':_0x2f82c4});process[_0x59dfa2(0x28a)](_0x53f055);});const projectCmd=llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2db))[a2_0x4bfcb6(0x355)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x30fd69,_0x224a53)=>{const _0x3c0632=a2_0x4bfcb6,_0x1e5e94=new LLMProjectsCommand(),_0x43dafb=program[_0x3c0632(0x385)](),_0x156035=await createTDXInstance(_0x43dafb),_0x1dca08=await _0x1e5e94[_0x3c0632(0x297)]({'options':{..._0x43dafb,..._0x224a53},'args':_0x30fd69?[_0x30fd69]:[],'tdx':_0x156035});process[_0x3c0632(0x28a)](_0x1dca08);};projectCmd[a2_0x4bfcb6(0x27e)]('list\x20[pattern]')['description']('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4bfcb6(0x2c6)](llmProjectListAction),llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x333))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x222))[a2_0x4bfcb6(0x2c6)](llmProjectListAction),projectCmd['command'](a2_0x4bfcb6(0x2b5))[a2_0x4bfcb6(0x355)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x29d))[a2_0x4bfcb6(0x2c6)](async(_0x191be4,_0x2187d8)=>{const _0x4358e6=a2_0x4bfcb6,_0x1ea881=new LLMProjectCreateCommand(),_0x216c9e=program[_0x4358e6(0x385)](),_0x4331bf=await createTDXInstance(_0x216c9e),_0x3897d0=await _0x1ea881['run']({'options':{..._0x216c9e,..._0x2187d8},'args':[_0x191be4],'tdx':_0x4331bf});process[_0x4358e6(0x28a)](_0x3897d0);}),projectCmd['command'](a2_0x4bfcb6(0x361))['description']('Delete\x20an\x20LLM\x20project')[a2_0x4bfcb6(0x2c6)](async(_0x4717be,_0x38fac1)=>{const _0x320dce=a2_0x4bfcb6,_0x4b672b=new LLMProjectDeleteCommand(),_0x6e7558=program[_0x320dce(0x385)](),_0x5da6ce=await createTDXInstance(_0x6e7558),_0x10fb69=await _0x4b672b[_0x320dce(0x297)]({'options':{..._0x6e7558,..._0x38fac1},'args':[_0x4717be],'tdx':_0x5da6ce});process[_0x320dce(0x28a)](_0x10fb69);}),projectCmd[a2_0x4bfcb6(0x27e)]('backup\x20<name>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x270))['option'](a2_0x4bfcb6(0x2ef),a2_0x4bfcb6(0x38d))[a2_0x4bfcb6(0x366)]('--dry-run',a2_0x4bfcb6(0x2d3))[a2_0x4bfcb6(0x2c6)](async(_0x153562,_0x4e7971)=>{const _0x262bdb=a2_0x4bfcb6,_0x4803ba=new LLMProjectBackupCommand(),_0x16c7eb=program['opts'](),_0x51d989=await createTDXInstance(_0x16c7eb),_0x461fa1=await _0x4803ba[_0x262bdb(0x297)]({'options':{..._0x16c7eb,..._0x4e7971},'args':[_0x153562],'tdx':_0x51d989});process[_0x262bdb(0x28a)](_0x461fa1);}),projectCmd['command'](a2_0x4bfcb6(0x34a))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x30b))['option'](a2_0x4bfcb6(0x2cb),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')['option'](a2_0x4bfcb6(0x2c8),a2_0x4bfcb6(0x279))[a2_0x4bfcb6(0x2c6)](async(_0x55d123,_0x63979f)=>{const _0x5afa8e=a2_0x4bfcb6,_0xb9269b=new LLMProjectRestoreCommand(),_0x220eb1=program[_0x5afa8e(0x385)](),_0x5b424b=await createTDXInstance(_0x220eb1),_0x18aa6a=await _0xb9269b[_0x5afa8e(0x297)]({'options':{..._0x220eb1,..._0x63979f},'args':[_0x55d123],'tdx':_0x5b424b});process[_0x5afa8e(0x28a)](_0x18aa6a);});const agentCmd=llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1d0))[a2_0x4bfcb6(0x355)]('LLM\x20agent\x20management'),llmAgentListAction=async(_0x4ab26c,_0x3cdcaf)=>{const _0x470beb=a2_0x4bfcb6,_0x3cdab3=new LLMAgentsCommand(),_0x5107e9=program[_0x470beb(0x385)](),_0x26a94d=await createTDXInstance(_0x5107e9),_0x508eea=await _0x3cdab3['run']({'options':{..._0x5107e9,..._0x3cdcaf},'args':_0x4ab26c?[_0x4ab26c]:[],'tdx':_0x26a94d});process[_0x470beb(0x28a)](_0x508eea);};agentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))['description'](a2_0x4bfcb6(0x235))[a2_0x4bfcb6(0x2c6)](llmAgentListAction),llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x330))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x398))[a2_0x4bfcb6(0x2c6)](llmAgentListAction),agentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x331))['description'](a2_0x4bfcb6(0x332))['action'](async(_0x2f50a5,_0x409c7a)=>{const _0x1dc561=a2_0x4bfcb6,_0x2d85d7=new LLMAgentShowCommand(),_0xa8acd5=program[_0x1dc561(0x385)](),_0x57c6fe=await createTDXInstance(_0xa8acd5),_0x319c79=await _0x2d85d7['run']({'options':{..._0xa8acd5,..._0x409c7a},'args':[_0x2f50a5],'tdx':_0x57c6fe});process[_0x1dc561(0x28a)](_0x319c79);}),agentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2b5))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x34d))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x349),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x4bfcb6(0x366)]('--model\x20<name>',a2_0x4bfcb6(0x311),a2_0x4bfcb6(0x2b1))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x24a),a2_0x4bfcb6(0x207))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x28c),a2_0x4bfcb6(0x1e1),'4')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x39e),'Temperature\x20(0.0-2.0,\x20default:\x200.7)','0.7')['action'](async(_0x4d5758,_0x5a3745)=>{const _0x8122d3=a2_0x4bfcb6,_0x569184=new LLMAgentCreateCommand(),_0x8f10fe=program[_0x8122d3(0x385)](),_0x128d4a=await createTDXInstance(_0x8f10fe),_0x4e25ce=await _0x569184[_0x8122d3(0x297)]({'options':{..._0x8f10fe,..._0x5a3745},'args':[_0x4d5758],'tdx':_0x128d4a});process['exit'](_0x4e25ce);}),agentCmd['command'](a2_0x4bfcb6(0x339))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1f6))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1ee),'Agent\x20name')['option']('--prompt\x20<text>',a2_0x4bfcb6(0x263))[a2_0x4bfcb6(0x366)]('--description\x20<text>',a2_0x4bfcb6(0x288))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x24a),a2_0x4bfcb6(0x207))[a2_0x4bfcb6(0x2c6)](async(_0x5f121b,_0x242815)=>{const _0x21c46b=a2_0x4bfcb6,_0x1e2dce=new LLMAgentUpdateCommand(),_0x52d508=program[_0x21c46b(0x385)](),_0x35e118=await createTDXInstance(_0x52d508),_0x413e94=await _0x1e2dce[_0x21c46b(0x297)]({'options':{..._0x52d508,..._0x242815},'args':[_0x5f121b],'tdx':_0x35e118});process[_0x21c46b(0x28a)](_0x413e94);}),agentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x256))['description'](a2_0x4bfcb6(0x1ec))[a2_0x4bfcb6(0x2c6)](async(_0x4be464,_0xfd2afc)=>{const _0x24a247=a2_0x4bfcb6,_0xa6b339=new LLMAgentDeleteCommand(),_0x1cc3cc=program[_0x24a247(0x385)](),_0xde8bd5=await createTDXInstance(_0x1cc3cc),_0x46524c=await _0xa6b339[_0x24a247(0x297)]({'options':{..._0x1cc3cc,..._0xfd2afc},'args':[_0x4be464],'tdx':_0xde8bd5});process[_0x24a247(0x28a)](_0x46524c);}),llmCmd['command'](a2_0x4bfcb6(0x1da))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2ee))['option'](a2_0x4bfcb6(0x372),a2_0x4bfcb6(0x214))[a2_0x4bfcb6(0x2c6)](async(_0x513f5e,_0x368663)=>{const _0x304bff=a2_0x4bfcb6,_0x16a245=new LLMHistoryCommand(),_0x373622=program['opts'](),_0x236485=await createTDXInstance(_0x373622),_0x59a650=await _0x16a245[_0x304bff(0x297)]({'options':{..._0x373622,..._0x368663},'args':_0x513f5e?[_0x513f5e]:[],'tdx':_0x236485});process['exit'](_0x59a650);}),llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x356))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x228))[a2_0x4bfcb6(0x366)]('--port\x20<number>',a2_0x4bfcb6(0x26e),a2_0x4bfcb6(0x2b8))['option'](a2_0x4bfcb6(0x23f),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x4bfcb6(0x366)]('--agent\x20<name>',a2_0x4bfcb6(0x367))[a2_0x4bfcb6(0x2c6)](async _0x2f23b8=>{const _0x5a929f=a2_0x4bfcb6,_0x43fc52=new LLMProxyCommand(),_0x238cdc=program[_0x5a929f(0x385)](),_0x10ada7=await createTDXInstance(_0x238cdc),_0x14d85d={..._0x2f23b8,'port':_0x2f23b8[_0x5a929f(0x38a)]?parseInt(_0x2f23b8[_0x5a929f(0x38a)],0xa):undefined},_0x1aefdf=await _0x43fc52['run']({'options':{..._0x238cdc,..._0x14d85d},'args':[],'tdx':_0x10ada7});process[_0x5a929f(0x28a)](_0x1aefdf);}),program['command'](a2_0x4bfcb6(0x1fa))[a2_0x4bfcb6(0x355)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)')['option'](a2_0x4bfcb6(0x36f),a2_0x4bfcb6(0x2f0),'sonnet')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23d),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x4bfcb6(0x23a)]()[a2_0x4bfcb6(0x1c1)](!![])[a2_0x4bfcb6(0x1cc)](a2_0x4bfcb6(0x21e),a2_0x4bfcb6(0x215))[a2_0x4bfcb6(0x2c6)](async(_0x428cc6,_0x210cfc)=>{const _0x444ad1=a2_0x4bfcb6,_0x18ad7b=program[_0x444ad1(0x385)](),_0x66b7fc=Array['isArray'](_0x428cc6)?_0x428cc6:[];if(_0x66b7fc[0x0]==='statusline'){const _0x5f5006=new ClaudeStatuslineCommand(),_0x290446=await _0x5f5006[_0x444ad1(0x297)]({'options':{..._0x18ad7b,..._0x210cfc},'args':_0x66b7fc[_0x444ad1(0x375)](0x1),'tdx':null});process[_0x444ad1(0x28a)](_0x290446);}if(_0x66b7fc[0x0]===_0x444ad1(0x2de)){const _0x56960c=new ClaudeUsageCommand(),_0x382dec=await _0x56960c['run']({'options':{..._0x18ad7b,..._0x210cfc},'args':_0x66b7fc[_0x444ad1(0x375)](0x1),'tdx':null});process[_0x444ad1(0x28a)](_0x382dec);}const _0x5373c7=new ClaudeCommand(),_0x32c741=await createTDXInstance(_0x18ad7b),_0x361c73=await _0x5373c7[_0x444ad1(0x297)]({'options':{..._0x18ad7b,..._0x210cfc},'args':_0x66b7fc,'tdx':_0x32c741});process['exit'](_0x361c73);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1cb))['description'](a2_0x4bfcb6(0x357))['option'](a2_0x4bfcb6(0x337),'Clear\x20session\x20context')[a2_0x4bfcb6(0x2c6)](async _0x17b4c3=>{const _0x4086f2=a2_0x4bfcb6,_0x143758=new ContextCommand(),_0xb133b5=program[_0x4086f2(0x385)](),_0x44d813=await _0x143758['run']({'options':{..._0xb133b5,..._0x17b4c3},'args':[],'tdx':null});process[_0x4086f2(0x28a)](_0x44d813);}),program['command'](a2_0x4bfcb6(0x36b))[a2_0x4bfcb6(0x355)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x337),'Clear\x20session\x20context')[a2_0x4bfcb6(0x2c6)](async(_0x1d3d84,_0x17e08d,_0x447a71)=>{const _0x43d9de=a2_0x4bfcb6,_0x34f90a=new UseCommand(),_0x3c3999=program['opts'](),_0x52efdf=[];if(_0x1d3d84)_0x52efdf[_0x43d9de(0x291)](_0x1d3d84);if(_0x17e08d)_0x52efdf[_0x43d9de(0x291)](_0x17e08d);const _0x351505=await _0x34f90a[_0x43d9de(0x297)]({'options':{..._0x3c3999,..._0x447a71},'args':_0x52efdf,'tdx':null});process[_0x43d9de(0x28a)](_0x351505);}),program[a2_0x4bfcb6(0x27e)]('chats')[a2_0x4bfcb6(0x355)]('Interactive\x20chat\x20selector')['option'](a2_0x4bfcb6(0x372),a2_0x4bfcb6(0x322))[a2_0x4bfcb6(0x2c6)](async _0x4fa465=>{const _0x19dc3e=a2_0x4bfcb6,_0xfa4ed1=new ChatsCommand(),_0x35d667=program['opts'](),_0x3a0ed7=await createTDXInstance(_0x35d667),_0x3ebff6=await _0xfa4ed1[_0x19dc3e(0x297)]({'options':{..._0x35d667,..._0x4fa465},'args':[],'tdx':_0x3a0ed7});process[_0x19dc3e(0x28a)](_0x3ebff6);});const authCmd=program[a2_0x4bfcb6(0x27e)]('auth')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2e7));async function runAuthStatusCommand(_0x211fe5){const _0x228b26=a2_0x4bfcb6,_0x247999=new AuthStatusCommand(),_0x4a970c=program['opts'](),_0x571a0f=await createTDXInstance(_0x4a970c),_0x53c371=await _0x247999[_0x228b26(0x297)]({'options':{..._0x4a970c,..._0x211fe5},'args':[],'tdx':_0x571a0f});process[_0x228b26(0x28a)](_0x53c371);}authCmd['action'](runAuthStatusCommand),authCmd['command'](a2_0x4bfcb6(0x325))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2d2))[a2_0x4bfcb6(0x2c6)](runAuthStatusCommand),authCmd['command']('setup')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2bd))[a2_0x4bfcb6(0x1cc)](a2_0x4bfcb6(0x21e),a2_0x4bfcb6(0x394))[a2_0x4bfcb6(0x2c6)](async _0x30755e=>{const _0x4a2c89=a2_0x4bfcb6,_0x2b3ed2=new AuthSetupCommand(),_0x84ae7c=program[_0x4a2c89(0x385)](),_0x287d22=await createTDXInstance(_0x84ae7c),_0x51d66d=await _0x2b3ed2['run']({'options':{..._0x84ae7c,..._0x30755e},'args':[],'tdx':_0x287d22});process[_0x4a2c89(0x28a)](_0x51d66d);}),authCmd[a2_0x4bfcb6(0x27e)]('clear')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x211))[a2_0x4bfcb6(0x1cc)](a2_0x4bfcb6(0x21e),a2_0x4bfcb6(0x30d))[a2_0x4bfcb6(0x2c6)](async _0x797e93=>{const _0x294ca0=a2_0x4bfcb6,_0x10bbc3=new AuthClearCommand(),_0x5071c6=program['opts'](),_0x256f6c=await _0x10bbc3[_0x294ca0(0x297)]({'options':{..._0x5071c6,..._0x797e93},'args':[],'tdx':null});process[_0x294ca0(0x28a)](_0x256f6c);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x254))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x31e))[a2_0x4bfcb6(0x2c6)](async _0x8013b6=>{const _0x3cd4cd=a2_0x4bfcb6,_0x491c7c=new ProfilesCommand(),_0x2c2d10=program[_0x3cd4cd(0x385)](),_0x38fee9=await _0x491c7c[_0x3cd4cd(0x297)]({'options':{..._0x2c2d10,..._0x8013b6},'args':[],'tdx':null});process['exit'](_0x38fee9);});const engageCmd=program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1eb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x365)),createEngageAction=_0x44a98c=>{return async(_0x1a434c,_0x587d3c)=>{const _0x4c201a=a2_0x5c13,_0x3dbb46=new _0x44a98c(),_0x198ce5=program['opts'](),_0x2fd4ec=await createTDXInstance(_0x198ce5),_0x37a488=await _0x3dbb46['run']({'options':{..._0x198ce5,..._0x587d3c},'args':[_0x1a434c],'tdx':_0x2fd4ec});process[_0x4c201a(0x28a)](_0x37a488);};},createEngageNoArgAction=_0x1a89a3=>{return async _0x326a0d=>{const _0xe9cfef=a2_0x5c13,_0x498065=new _0x1a89a3(),_0x12003e=program[_0xe9cfef(0x385)](),_0x28491a=await createTDXInstance(_0x12003e),_0x4dcbc4=await _0x498065[_0xe9cfef(0x297)]({'options':{..._0x12003e,..._0x326a0d},'args':[],'tdx':_0x28491a});process['exit'](_0x4dcbc4);};},campaignCmd=engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x39f))['description']('Campaign\x20management'),campaignListAction=async(_0x470ba2,_0x4077bf)=>{const _0x4c71a9=a2_0x4bfcb6,_0x15c98d=new EngageCampaignsCommand(),_0x463fac=program['opts'](),_0x254cc2=await createTDXInstance(_0x463fac),_0x46e7b7=await _0x15c98d[_0x4c71a9(0x297)]({'options':{..._0x463fac,..._0x4077bf},'args':_0x470ba2?[_0x470ba2]:[],'tdx':_0x254cc2});process['exit'](_0x46e7b7);};campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))['description'](a2_0x4bfcb6(0x346))[a2_0x4bfcb6(0x366)]('--type\x20<type>',a2_0x4bfcb6(0x3a5))['option'](a2_0x4bfcb6(0x2e5),a2_0x4bfcb6(0x37c))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](campaignListAction),engageCmd['command'](a2_0x4bfcb6(0x1e7))[a2_0x4bfcb6(0x355)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x3a3),a2_0x4bfcb6(0x3a5))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e5),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](campaignListAction),campaignCmd[a2_0x4bfcb6(0x27e)]('show\x20<name-or-id>')[a2_0x4bfcb6(0x355)]('Show\x20campaign\x20details')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),'Workspace\x20name')['option'](a2_0x4bfcb6(0x303),a2_0x4bfcb6(0x368))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x4bfcb6(0x27e)]('create')['description'](a2_0x4bfcb6(0x227))['requiredOption'](a2_0x4bfcb6(0x30a),a2_0x4bfcb6(0x27f))['requiredOption'](a2_0x4bfcb6(0x3a3),a2_0x4bfcb6(0x359))['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x25d))[a2_0x4bfcb6(0x366)]('--description\x20<desc>',a2_0x4bfcb6(0x29c))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x20c),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x4bfcb6(0x366)]('--email-sender-id\x20<id>',a2_0x4bfcb6(0x1ff))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2f4),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2cf),a2_0x4bfcb6(0x1dc))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c4),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x21d))[a2_0x4bfcb6(0x355)]('Update\x20a\x20campaign')[a2_0x4bfcb6(0x366)]('--workspace\x20<name>',a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x30a),a2_0x4bfcb6(0x313))[a2_0x4bfcb6(0x366)]('--description\x20<desc>','Campaign\x20description')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x20c),a2_0x4bfcb6(0x1f8))[a2_0x4bfcb6(0x366)]('--email-sender-id\x20<id>',a2_0x4bfcb6(0x1ff))[a2_0x4bfcb6(0x366)]('--json-columns\x20<cols>',a2_0x4bfcb6(0x237))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2cf),a2_0x4bfcb6(0x1dc))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c4),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1fb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x225))['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x366)]('--yes',a2_0x4bfcb6(0x2c4))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x4bfcb6(0x27e)]('launch\x20<name-or-id>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x253))['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x255))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x384))[a2_0x4bfcb6(0x366)]('--workspace\x20<name>','Workspace\x20name')[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x294))['description']('Resume\x20a\x20paused\x20campaign')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x278))['description'](a2_0x4bfcb6(0x26c))[a2_0x4bfcb6(0x366)]('--workspace\x20<name>',a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x31a))[a2_0x4bfcb6(0x355)]('Email\x20template\x20management'),templateListAction=async(_0x33b7e9,_0x253951)=>{const _0x42096d=a2_0x4bfcb6,_0x5e701e=new EngageTemplatesCommand(),_0x32a931=program['opts'](),_0x5aeb25=await createTDXInstance(_0x32a931),_0x1cf4ef=await _0x5e701e['run']({'options':{..._0x32a931,..._0x253951},'args':_0x33b7e9?[_0x33b7e9]:[],'tdx':_0x5aeb25});process[_0x42096d(0x28a)](_0x1cf4ef);};templateCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x231))['option']('--workspace\x20<name>',a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](templateListAction),engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x266))[a2_0x4bfcb6(0x355)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),'Workspace\x20name')[a2_0x4bfcb6(0x2c6)](templateListAction),templateCmd['command'](a2_0x4bfcb6(0x265))[a2_0x4bfcb6(0x355)]('Show\x20email\x20template\x20details')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x303),a2_0x4bfcb6(0x368))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2e9))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2f1))['requiredOption'](a2_0x4bfcb6(0x30a),a2_0x4bfcb6(0x386))[a2_0x4bfcb6(0x28f)](a2_0x4bfcb6(0x25e),'Email\x20subject\x20template')[a2_0x4bfcb6(0x28f)]('--html\x20<html>',a2_0x4bfcb6(0x374))['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x25d))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x352),a2_0x4bfcb6(0x310))[a2_0x4bfcb6(0x366)]('--editor-type\x20<type>',a2_0x4bfcb6(0x276))[a2_0x4bfcb6(0x2c6)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x21d))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x38e))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),'Workspace\x20name')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x30a),'New\x20template\x20name')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x25e),a2_0x4bfcb6(0x20a))[a2_0x4bfcb6(0x366)]('--html\x20<html>','HTML\x20template\x20content')['option']('--plaintext\x20<text>',a2_0x4bfcb6(0x310))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1fb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x373))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))['option'](a2_0x4bfcb6(0x319),a2_0x4bfcb6(0x2c4))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2dc))[a2_0x4bfcb6(0x355)]('Workspace\x20management'),workspaceListAction=async(_0x53bc4f,_0x31d0a1)=>{const _0xb93d39=a2_0x4bfcb6,_0x13ae07=new EngageWorkspacesCommand(),_0x4d0d1b=program[_0xb93d39(0x385)](),_0x34745a=await createTDXInstance(_0x4d0d1b),_0x445dbd=await _0x13ae07[_0xb93d39(0x297)]({'options':{..._0x4d0d1b,..._0x31d0a1},'args':_0x53bc4f?[_0x53bc4f]:[],'tdx':_0x34745a});process['exit'](_0x445dbd);};workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))['description']('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4bfcb6(0x2c6)](workspaceListAction),engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x206))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2a4))[a2_0x4bfcb6(0x2c6)](workspaceListAction),workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x265))[a2_0x4bfcb6(0x355)]('Show\x20workspace\x20details')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x303),a2_0x4bfcb6(0x368))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2e9))['description'](a2_0x4bfcb6(0x212))[a2_0x4bfcb6(0x28f)](a2_0x4bfcb6(0x30a),'Workspace\x20name')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x261),a2_0x4bfcb6(0x25c))[a2_0x4bfcb6(0x2c6)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x4bfcb6(0x21d))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2bb))['option']('--name\x20<name>','New\x20workspace\x20name')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x261),'Workspace\x20description')['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1fb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2b6))['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x309))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x234))['action'](createEngageAction(EngageWorkspaceUseCommand));export{program};export function runCLI(){const _0x33701d=a2_0x4bfcb6;program[_0x33701d(0x326)](process[_0x33701d(0x232)]);!process[_0x33701d(0x232)][_0x33701d(0x375)](0x2)[_0x33701d(0x205)]&&program['outputHelp']();const _0x30933c=packageJson[_0x33701d(0x37d)];process[_0x33701d(0x2ff)][_0x33701d(0x264)]&&process[_0x33701d(0x232)]['length']>0x2&&!_0x30933c[_0x33701d(0x26a)]('.dev')&&checkForUpdate(_0x30933c)[_0x33701d(0x383)](_0x565e58=>{_0x565e58&&displayUpdateNotification(_0x565e58);})[_0x33701d(0x22a)](()=>{});}
1
+ const a2_0x5087ce=a2_0x5269;(function(_0x3793df,_0x1b6edc){const _0x2036e1=a2_0x5269,_0x3c300d=_0x3793df();while(!![]){try{const _0x39cb27=parseInt(_0x2036e1(0x2a6))/0x1+-parseInt(_0x2036e1(0x250))/0x2+-parseInt(_0x2036e1(0x1fc))/0x3*(-parseInt(_0x2036e1(0x2f2))/0x4)+-parseInt(_0x2036e1(0x25e))/0x5+parseInt(_0x2036e1(0x336))/0x6+parseInt(_0x2036e1(0x195))/0x7+-parseInt(_0x2036e1(0x2ac))/0x8*(parseInt(_0x2036e1(0x337))/0x9);if(_0x39cb27===_0x1b6edc)break;else _0x3c300d['push'](_0x3c300d['shift']());}catch(_0x5865e1){_0x3c300d['push'](_0x3c300d['shift']());}}}(a2_0x3c39,0x634f8));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,SegmentInfoCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentInfoCommand,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{SegmentUseCommand}from'./commands/segment-use-command.js';import{SegmentPwdCommand}from'./commands/segment-pwd-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';function a2_0x5269(_0xfd222,_0x18ba06){const _0x3c395b=a2_0x3c39();return a2_0x5269=function(_0x5269cd,_0x4cc7ec){_0x5269cd=_0x5269cd-0x194;let _0x435afc=_0x3c395b[_0x5269cd];return _0x435afc;},a2_0x5269(_0xfd222,_0x18ba06);}import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta[a2_0x5087ce(0x1d5)]),__dirname=dirname(__filename),packageJson=JSON[a2_0x5087ce(0x2ad)](readFileSync(join(__dirname,a2_0x5087ce(0x1a4)),a2_0x5087ce(0x31b)));let buildInfo={};try{buildInfo=JSON[a2_0x5087ce(0x2ad)](readFileSync(join(__dirname,a2_0x5087ce(0x272)),'utf-8'));}catch{}if(process['argv'][a2_0x5087ce(0x2aa)](a2_0x5087ce(0x23a))){let versionOutput=a2_0x5087ce(0x301)+packageJson['version'];buildInfo[a2_0x5087ce(0x1fa)]&&(versionOutput+='\x20('+buildInfo[a2_0x5087ce(0x1fa)]+')'),buildInfo[a2_0x5087ce(0x231)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo['buildTime']),console[a2_0x5087ce(0x355)](versionOutput),process['exit'](0x0);}const program=new Command();let description=a2_0x5087ce(0x2a1);buildInfo[a2_0x5087ce(0x1fa)]?description+=a2_0x5087ce(0x34b)+packageJson[a2_0x5087ce(0x360)]+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x5087ce(0x34b)+packageJson['version'];program[a2_0x5087ce(0x37d)](a2_0x5087ce(0x30e))['description'](description),program[a2_0x5087ce(0x212)]('-p,\x20--profile\x20<name>',a2_0x5087ce(0x31c))[a2_0x5087ce(0x212)](a2_0x5087ce(0x25c),a2_0x5087ce(0x288),a2_0x5087ce(0x20e))['option'](a2_0x5087ce(0x22e),a2_0x5087ce(0x1ea))[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),a2_0x5087ce(0x221))[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x364),a2_0x5087ce(0x274))[a2_0x5087ce(0x212)]('--output\x20<file>',a2_0x5087ce(0x227))[a2_0x5087ce(0x212)](a2_0x5087ce(0x266),a2_0x5087ce(0x292))[a2_0x5087ce(0x212)](a2_0x5087ce(0x21d),a2_0x5087ce(0x361),![])[a2_0x5087ce(0x212)](a2_0x5087ce(0x1c8),a2_0x5087ce(0x239),![])[a2_0x5087ce(0x212)](a2_0x5087ce(0x2a5),'Enable\x20verbose\x20logging',![])[a2_0x5087ce(0x212)]('--debug',a2_0x5087ce(0x32e))[a2_0x5087ce(0x212)](a2_0x5087ce(0x300),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')['option'](a2_0x5087ce(0x388),a2_0x5087ce(0x218),'30')[a2_0x5087ce(0x212)](a2_0x5087ce(0x253),'Preview\x20operation\x20without\x20executing',![])[a2_0x5087ce(0x212)]('-y,\x20--yes','Skip\x20confirmation\x20prompts',![])[a2_0x5087ce(0x212)]('--session\x20<id>',a2_0x5087ce(0x2ef))['option']('-d,\x20--database\x20<name>',a2_0x5087ce(0x284))[a2_0x5087ce(0x212)]('--in\x20<name>',a2_0x5087ce(0x2f9))[a2_0x5087ce(0x212)](a2_0x5087ce(0x311),a2_0x5087ce(0x357))[a2_0x5087ce(0x212)]('--llm-project\x20<name>',a2_0x5087ce(0x370)),program[a2_0x5087ce(0x33f)]({'formatHelp':(_0x2afcc8,_0x2d9b24)=>{const _0xe88132=a2_0x5087ce,_0x3b69ae=_0x2d9b24[_0xe88132(0x1c6)](_0x2afcc8,_0x2d9b24),_0x147eaa=0x2,_0x45e79f=0x2;function _0x29450b(_0x30e1b1){const _0x2b8cbf=_0xe88132,_0x12adb0=_0x30e1b1;return!!(_0x12adb0[_0x2b8cbf(0x2ed)]||_0x12adb0[_0x2b8cbf(0x368)]);}function _0x44735a(_0x30a3bb,_0x3f9b59){const _0x34503d=_0xe88132;if(_0x3f9b59){const _0x3902c6=''+_0x30a3bb[_0x34503d(0x2a0)](_0x3b69ae+_0x45e79f)+_0x3f9b59;return _0x3902c6;}return _0x30a3bb;}function _0x2d8dd5(_0x571674){const _0x448bed=_0xe88132;return _0x571674[_0x448bed(0x36d)]('\x0a')[_0x448bed(0x2d4)](/^/gm,'\x20'['repeat'](_0x147eaa));}const _0x28d087=[];_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x381)+_0x2d9b24[_0xe88132(0x36e)](_0x2afcc8));const _0x2a4635=_0x2d9b24['commandDescription'](_0x2afcc8);_0x2a4635&&(_0x28d087[_0xe88132(0x1b3)](''),_0x28d087['push'](_0x2a4635));const _0x1a1a19=_0x2afcc8[_0xe88132(0x1fe)][_0xe88132(0x2a7)](_0x21c2dd=>!_0x29450b(_0x21c2dd));if(_0x1a1a19[_0xe88132(0x387)]>0x0){if(_0x2afcc8[_0xe88132(0x37d)]()===_0xe88132(0x30e)){const _0x26f14e=_0x2afcc8[_0xe88132(0x313)](),_0x5bb766=!_0x26f14e[_0xe88132(0x264)]&&process[_0xe88132(0x1fb)][_0xe88132(0x236)],_0x28637c=COMMAND_CATEGORIES,_0x428851=(_0xc32e98,_0x2a7a11)=>_0x5bb766?_0x2a7a11(_0xc32e98):_0xc32e98,_0x391484=new Map();_0x1a1a19[_0xe88132(0x312)](_0x5a6d40=>{const _0xb79c80=_0xe88132;_0x391484[_0xb79c80(0x2ce)](_0x5a6d40['name'](),_0x5a6d40);}),_0x28637c[_0xe88132(0x312)](_0x1797c7=>{const _0x4b9c30=_0xe88132,_0x16e219=_0x1797c7['commands']['flatMap'](_0x48b97d=>_0x391484[_0x4b9c30(0x26a)](_0x48b97d)??[]);if(_0x16e219[_0x4b9c30(0x387)]>0x0){_0x28d087[_0x4b9c30(0x1b3)](''),_0x28d087[_0x4b9c30(0x1b3)](_0x428851(_0x1797c7[_0x4b9c30(0x37d)]+':',_0x1797c7['colorFn']));const _0x1229ca=_0x16e219[_0x4b9c30(0x220)](_0x29447e=>{const _0x44f06a=_0x4b9c30,_0x5f358b=_0x2d9b24[_0x44f06a(0x198)](_0x29447e),_0xbb78c=_0x2d9b24[_0x44f06a(0x341)](_0x29447e);return _0x44735a(_0x5f358b,_0xbb78c);});_0x28d087[_0x4b9c30(0x1b3)](_0x2d8dd5(_0x1229ca));}}),_0x28d087[_0xe88132(0x1b3)](''),_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x205));}else{const _0x46e8b3=_0x1a1a19['map'](_0xc2e028=>{const _0x55d1be=_0xe88132,_0x4a3a26=_0x2d9b24['subcommandTerm'](_0xc2e028),_0x5f40bb=_0x2d9b24[_0x55d1be(0x341)](_0xc2e028);return _0x44735a(_0x4a3a26,_0x5f40bb);});_0x28d087['push'](''),_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x371)),_0x28d087[_0xe88132(0x1b3)](_0x2d8dd5(_0x46e8b3));}}const _0x3bdd14=_0x2afcc8[_0xe88132(0x2dd)][_0xe88132(0x2a7)](_0x13028a=>!_0x29450b(_0x13028a));if(_0x3bdd14[_0xe88132(0x387)]>0x0){const _0x1b04f8=_0x3bdd14[_0xe88132(0x220)](_0x1a995c=>{const _0x14a296=_0xe88132,_0x3af686=_0x2d9b24[_0x14a296(0x363)](_0x1a995c),_0x408dee=_0x2d9b24[_0x14a296(0x1ff)](_0x1a995c);return _0x44735a(_0x3af686,_0x408dee);});_0x28d087[_0xe88132(0x1b3)](''),_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x2e0)),_0x28d087[_0xe88132(0x1b3)](_0x2d8dd5(_0x1b04f8));}const _0x47c969=(_0x2afcc8[_0xe88132(0x382)]||[])['filter'](_0x27e1f9=>!_0x29450b(_0x27e1f9));if(_0x47c969[_0xe88132(0x387)]>0x0){const _0xb0c73f=_0x47c969[_0xe88132(0x220)](_0x415b45=>{const _0x3b3bfb=_0xe88132,_0x5285a3=_0x2d9b24[_0x3b3bfb(0x1e2)](_0x415b45),_0x14b373=_0x2d9b24['argumentDescription'](_0x415b45);return _0x44735a(_0x5285a3,_0x14b373);});_0x28d087[_0xe88132(0x1b3)](''),_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x35e)),_0x28d087[_0xe88132(0x1b3)](_0x2d8dd5(_0xb0c73f));}return _0x28d087[_0xe88132(0x36d)]('\x0a');},'subcommandTerm':_0x1bb13b=>{const _0x38b40f=a2_0x5087ce,_0x351114=(_0x1bb13b[_0x38b40f(0x382)]||[])[_0x38b40f(0x220)](_0x3fa3dd=>_0x3fa3dd[_0x38b40f(0x356)]?'<'+_0x3fa3dd['name']()+'>':'['+_0x3fa3dd['name']()+']')[_0x38b40f(0x36d)]('\x20'),_0x52ba44=_0x1bb13b[_0x38b40f(0x278)](),_0x4e59fd=_0x52ba44[_0x38b40f(0x387)]>0x0?_0x1bb13b['name']()+',\x20'+_0x52ba44[_0x38b40f(0x36d)](',\x20'):_0x1bb13b['name']();return _0x351114?_0x4e59fd+'\x20'+_0x351114:_0x4e59fd;}}),program[a2_0x5087ce(0x345)](a2_0x5087ce(0x1f7),_0x35c38a=>{const _0x1a3956=a2_0x5087ce,_0x19952b=_0x35c38a[_0x1a3956(0x313)]();if(!_0x19952b[_0x1a3956(0x30d)]){if(_0x19952b[_0x1a3956(0x23b)])_0x19952b[_0x1a3956(0x30d)]=_0x1a3956(0x23b);else{if(_0x19952b['jsonl'])_0x19952b[_0x1a3956(0x30d)]='jsonl';else _0x19952b['tsv']&&(_0x19952b[_0x1a3956(0x30d)]='tsv');}}_0x19952b['in']&&!_0x19952b[_0x1a3956(0x260)]&&(_0x19952b[_0x1a3956(0x260)]=_0x19952b['in']);if(_0x19952b[_0x1a3956(0x2fc)])_0x19952b[_0x1a3956(0x328)]=LogLevel[_0x1a3956(0x2b7)];else{if(_0x19952b[_0x1a3956(0x2dc)])_0x19952b[_0x1a3956(0x328)]=LogLevel[_0x1a3956(0x383)];else _0x19952b[_0x1a3956(0x328)]===undefined&&(_0x19952b[_0x1a3956(0x328)]=LogLevel[_0x1a3956(0x293)]);}});async function createTDXInstance(_0x5d36b8){const _0x497221=a2_0x5087ce,_0xb4131f=await GlobalContext['createAsync'](_0x5d36b8);return _0xb4131f[_0x497221(0x1e8)](_0x5d36b8),TDX[_0x497221(0x1d7)]({'site':_0xb4131f[_0x497221(0x2cd)],'apiKey':_0xb4131f[_0x497221(0x327)],'logLevel':_0xb4131f[_0x497221(0x328)],'profile':_0xb4131f[_0x497221(0x2f3)]});}const databaseCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x260))[a2_0x5087ce(0x1c1)]('db')['description'](a2_0x5087ce(0x2ff)),databaseListAction=async(_0x4dbefb,_0x4667d4)=>{const _0x34b4bf=a2_0x5087ce,_0x39bb3b=new DatabasesCommand(),_0x1a04ab=program[_0x34b4bf(0x313)](),_0x5c7f1d=await createTDXInstance(_0x1a04ab),_0x3d6448=await _0x39bb3b['run']({'options':{..._0x1a04ab,..._0x4667d4},'args':_0x4dbefb?[_0x4dbefb]:[],'tdx':_0x5c7f1d});process['exit'](_0x3d6448);};databaseCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1f2))[a2_0x5087ce(0x2ba)](databaseListAction),program[a2_0x5087ce(0x202)]('databases\x20[pattern]',{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')['action'](databaseListAction),program['command'](a2_0x5087ce(0x1c0))['description']('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x5087ce(0x212)]('--agent\x20<ref>',a2_0x5087ce(0x338))[a2_0x5087ce(0x212)]('--model\x20<name>',a2_0x5087ce(0x1cc))['option'](a2_0x5087ce(0x2b8),a2_0x5087ce(0x35a))[a2_0x5087ce(0x212)]('--new',a2_0x5087ce(0x38a))['action'](async(_0x43be48,_0xeb9af)=>{const _0x490f8b=a2_0x5087ce,_0x1191d3=new ChatCommand(),_0x43ab9f=program[_0x490f8b(0x313)](),_0x5b0417=await createTDXInstance(_0x43ab9f),_0x38f68c=await _0x1191d3[_0x490f8b(0x28e)]({'options':{..._0x43ab9f,..._0xeb9af},'args':_0x43be48,'tdx':_0x5b0417});process['exit'](_0x38f68c);});const apiCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x37f))[a2_0x5087ce(0x2c2)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x5087ce(0x32d)](a2_0x5087ce(0x1a3),a2_0x5087ce(0x245))[a2_0x5087ce(0x212)]('-X,\x20--method\x20<method>',a2_0x5087ce(0x1a0),a2_0x5087ce(0x2cc))[a2_0x5087ce(0x212)]('--data\x20<data>',a2_0x5087ce(0x21c))['option']('-f,\x20--file\x20<path>',a2_0x5087ce(0x308))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1e5),a2_0x5087ce(0x282),(_0x33a45b,_0x29ef4c)=>{return _0x29ef4c?[..._0x29ef4c,_0x33a45b]:[_0x33a45b];})[a2_0x5087ce(0x212)](a2_0x5087ce(0x34a),a2_0x5087ce(0x305),'td')[a2_0x5087ce(0x2ba)](async(_0x1208c5,_0x376dfd)=>{const _0x42e358=a2_0x5087ce;if(!_0x1208c5){apiCmd[_0x42e358(0x1ec)]();return;}const _0x565627=new ApiCommand(),_0x5ab42b=program[_0x42e358(0x313)](),_0x439377=await createTDXInstance(_0x5ab42b),_0x29c256=await _0x565627[_0x42e358(0x28e)]({'options':{..._0x5ab42b,..._0x376dfd},'args':[_0x1208c5],'tdx':_0x439377});process[_0x42e358(0x33d)](_0x29c256);}),tableCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x1ed))['description'](a2_0x5087ce(0x2af)),tableListAction=async(_0x3288f8,_0x23afd0)=>{const _0x3eff2b=a2_0x5087ce,_0x22b4bf=new TablesCommand(),_0x5dedfc=program[_0x3eff2b(0x313)](),_0x3a8b4c=await createTDXInstance(_0x5dedfc);_0x23afd0['in']&&(_0x23afd0['database']=_0x23afd0['in']);const _0x5b12a4=await _0x22b4bf[_0x3eff2b(0x28e)]({'options':{..._0x5dedfc,..._0x23afd0},'args':_0x3288f8?[_0x3288f8]:[],'tdx':_0x3a8b4c});process['exit'](_0x5b12a4);};tableCmd['command'](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e6),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x5087ce(0x25d),a2_0x5087ce(0x2f9))[a2_0x5087ce(0x2ba)](tableListAction),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x330),{'hidden':!![]})[a2_0x5087ce(0x303)](a2_0x5087ce(0x1b2))['option'](a2_0x5087ce(0x2e6),a2_0x5087ce(0x333))[a2_0x5087ce(0x212)](a2_0x5087ce(0x25d),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5087ce(0x2ba)](tableListAction),program[a2_0x5087ce(0x202)]('show\x20[table]')['description']('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')['option'](a2_0x5087ce(0x2e6),a2_0x5087ce(0x1bd))[a2_0x5087ce(0x212)](a2_0x5087ce(0x25d),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5087ce(0x2ba)](async(_0x41a25b,_0x41e8ab)=>{const _0x4f8283=a2_0x5087ce,_0xae9d63=new ShowCommand(),_0x4f2db8=program[_0x4f8283(0x313)](),_0x58ad0a=await createTDXInstance(_0x4f2db8);_0x41e8ab['in']&&(_0x41e8ab[_0x4f8283(0x260)]=_0x41e8ab['in']);const _0xe8408c=await _0xae9d63[_0x4f8283(0x28e)]({'options':{..._0x4f2db8,..._0x41e8ab},'args':_0x41a25b?[_0x41a25b]:[],'tdx':_0x58ad0a});process[_0x4f8283(0x33d)](_0xe8408c);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x256))[a2_0x5087ce(0x1c1)](a2_0x5087ce(0x230))['description']('Describe\x20table\x20schema')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e6),a2_0x5087ce(0x1bd))['option'](a2_0x5087ce(0x25d),a2_0x5087ce(0x2f9))[a2_0x5087ce(0x2ba)](async(_0x46f7a3,_0x2d7ab3)=>{const _0x31ee94=a2_0x5087ce,_0x577db1=new DescribeCommand(),_0x3b9e4b=program['opts'](),_0x2140a8=await createTDXInstance(_0x3b9e4b);_0x2d7ab3['in']&&(_0x2d7ab3[_0x31ee94(0x260)]=_0x2d7ab3['in']);const _0x48805e=await _0x577db1[_0x31ee94(0x28e)]({'options':{..._0x3b9e4b,..._0x2d7ab3},'args':_0x46f7a3?[_0x46f7a3]:[],'tdx':_0x2140a8});process[_0x31ee94(0x33d)](_0x48805e);}),program[a2_0x5087ce(0x202)]('query\x20[sql]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x2ca))[a2_0x5087ce(0x212)]('-d,\x20--database\x20<database>',a2_0x5087ce(0x27a))[a2_0x5087ce(0x212)](a2_0x5087ce(0x25d),a2_0x5087ce(0x2f9))[a2_0x5087ce(0x212)](a2_0x5087ce(0x310),a2_0x5087ce(0x2cb))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2c0),a2_0x5087ce(0x1d0))['option'](a2_0x5087ce(0x29a),a2_0x5087ce(0x347),'40')[a2_0x5087ce(0x2ba)](async(_0x5961f9,_0xce17c3)=>{const _0x16c6ce=a2_0x5087ce,_0x29fdb8=new QueryCommand(),_0x1c5f44=program[_0x16c6ce(0x313)](),_0x4700cb=await createTDXInstance(_0x1c5f44);_0xce17c3['in']&&(_0xce17c3['database']=_0xce17c3['in']);const _0x5593d2=await _0x29fdb8[_0x16c6ce(0x28e)]({'options':{..._0x1c5f44,..._0xce17c3},'args':_0x5961f9?[_0x5961f9]:[],'tdx':_0x4700cb});process['exit'](_0x5593d2);});const segmentCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x1af))[a2_0x5087ce(0x303)](a2_0x5087ce(0x375)),segmentListAction=async(_0x41efd7,_0xa11202)=>{const _0xf5690d=a2_0x5087ce,_0x49ab3b=new SegmentsCommand(),_0x1c2a5b=program['opts'](),_0x26b074=await createTDXInstance(_0x1c2a5b),_0xa5b0df=await _0x49ab3b[_0xf5690d(0x28e)]({'options':{..._0x1c2a5b,..._0xa11202},'args':_0x41efd7?[_0x41efd7]:[],'tdx':_0x26b074});process[_0xf5690d(0x33d)](_0xa5b0df);};segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x297))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2ec))['option'](a2_0x5087ce(0x2a4),a2_0x5087ce(0x2c8))[a2_0x5087ce(0x212)]('--max-depth\x20<depth>',a2_0x5087ce(0x339),'10')['action'](segmentListAction),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x1f3),{'hidden':!![]})['description'](a2_0x5087ce(0x237))[a2_0x5087ce(0x212)]('-r,\x20--recursive',a2_0x5087ce(0x2c8))[a2_0x5087ce(0x212)](a2_0x5087ce(0x348),a2_0x5087ce(0x339),'10')['action'](segmentListAction),segmentCmd['command'](a2_0x5087ce(0x365))[a2_0x5087ce(0x303)]('Set\x20current\x20segment/folder\x20context\x20for\x20navigation')[a2_0x5087ce(0x2ba)](async(_0x374ecd,_0x1b3553)=>{const _0x38717e=a2_0x5087ce,_0x2d801f=new SegmentUseCommand(),_0x18827c=program['opts'](),_0x2a87e7=await createTDXInstance(_0x18827c),_0x1427fc=await _0x2d801f['run']({'options':{..._0x18827c,..._0x1b3553},'args':[_0x374ecd],'tdx':_0x2a87e7});process[_0x38717e(0x33d)](_0x1427fc);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x273))[a2_0x5087ce(0x303)](a2_0x5087ce(0x277))[a2_0x5087ce(0x2ba)](async _0x381426=>{const _0x5417f7=a2_0x5087ce,_0x26c4f0=new SegmentPwdCommand(),_0x20e107=program[_0x5417f7(0x313)](),_0x114386=await createTDXInstance(_0x20e107),_0x1cf584=await _0x26c4f0[_0x5417f7(0x28e)]({'options':{..._0x20e107,..._0x381426},'args':[],'tdx':_0x114386});process[_0x5417f7(0x33d)](_0x1cf584);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x317))[a2_0x5087ce(0x1c1)](a2_0x5087ce(0x28c))[a2_0x5087ce(0x303)](a2_0x5087ce(0x238))[a2_0x5087ce(0x2ba)](async(_0x5cd9a0,_0x45b49e)=>{const _0x5d4964=a2_0x5087ce,_0x5ce721=new SegmentInfoCommand(),_0x46ac5d=program[_0x5d4964(0x313)](),_0x3f9732=await createTDXInstance(_0x46ac5d),_0x31bb70=await _0x5ce721[_0x5d4964(0x28e)]({'options':{..._0x46ac5d,..._0x45b49e},'args':_0x5cd9a0?[_0x5cd9a0]:[],'tdx':_0x3f9732});process[_0x5d4964(0x33d)](_0x31bb70);}),segmentCmd['command'](a2_0x5087ce(0x229))['description']('Show\x20segment\x20schema\x20(column\x20types)')['action'](async(_0x3e18e6,_0x7e51ed)=>{const _0x7ce748=a2_0x5087ce,_0x504b5b=new SegmentDescCommand(),_0x4973bc=program[_0x7ce748(0x313)](),_0x39a2a9=await createTDXInstance(_0x4973bc),_0x48b9e4=await _0x504b5b[_0x7ce748(0x28e)]({'options':{..._0x4973bc,..._0x7e51ed},'args':_0x3e18e6?[_0x3e18e6]:[],'tdx':_0x39a2a9});process[_0x7ce748(0x33d)](_0x48b9e4);}),segmentCmd[a2_0x5087ce(0x202)]('show\x20[segment_name]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x269))[a2_0x5087ce(0x2ba)](async(_0x12f671,_0x42cddb)=>{const _0x48d308=a2_0x5087ce,_0x5da0bc=new SegmentShowCommand(),_0x33949c=program[_0x48d308(0x313)](),_0x109d4d=await createTDXInstance(_0x33949c),_0x3336f0=await _0x5da0bc['run']({'options':{..._0x33949c,..._0x42cddb},'args':_0x12f671?[_0x12f671]:[],'tdx':_0x109d4d});process['exit'](_0x3336f0);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x322))[a2_0x5087ce(0x303)](a2_0x5087ce(0x23c))[a2_0x5087ce(0x2ba)](async(_0x30a18b,_0x361cce)=>{const _0x1c7d0e=a2_0x5087ce,_0x216510=new SegmentFolderListCommand(),_0x26283d=program[_0x1c7d0e(0x313)](),_0x50d34f=await createTDXInstance(_0x26283d),_0x169b0c=await _0x216510[_0x1c7d0e(0x28e)]({'options':{..._0x26283d,..._0x361cce},'args':[_0x30a18b],'tdx':_0x50d34f});process['exit'](_0x169b0c);});const folderCmd=segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x28f))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2bb));folderCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x373))[a2_0x5087ce(0x303)](a2_0x5087ce(0x21e))[a2_0x5087ce(0x2ba)](async(_0x380561,_0x5d4f3b)=>{const _0x29c08a=a2_0x5087ce,_0x16d921=new SegmentFolderShowCommand(),_0x2d85c2=program[_0x29c08a(0x313)](),_0x52ebab=await createTDXInstance(_0x2d85c2),_0x4b67be=await _0x16d921['run']({'options':{..._0x2d85c2,..._0x5d4f3b},'args':[_0x380561],'tdx':_0x52ebab});process['exit'](_0x4b67be);}),segmentCmd['command'](a2_0x5087ce(0x380))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1a5))['action'](async(_0x4c2626,_0x545427)=>{const _0x135ccc=a2_0x5087ce,_0x5129f2=new SegmentSQLCommand(),_0x9bcab0=program[_0x135ccc(0x313)](),_0x1dffa2=await createTDXInstance(_0x9bcab0),_0x525ddf=await _0x5129f2[_0x135ccc(0x28e)]({'options':{..._0x9bcab0,..._0x545427},'args':_0x4c2626?[_0x4c2626]:[],'tdx':_0x1dffa2});process[_0x135ccc(0x33d)](_0x525ddf);}),segmentCmd['command'](a2_0x5087ce(0x2c1))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1ee))[a2_0x5087ce(0x2ba)](async(_0x3e19c7,_0x3c72f4)=>{const _0xe72ce9=a2_0x5087ce,_0x3c29dc=new SegmentFieldsCommand(),_0x35b1e6=program[_0xe72ce9(0x313)](),_0x56bb37=await createTDXInstance(_0x35b1e6),_0x4617be=await _0x3c29dc[_0xe72ce9(0x28e)]({'options':{..._0x35b1e6,..._0x3c72f4},'args':_0x3e19c7?[_0x3e19c7]:[],'tdx':_0x56bb37});process[_0xe72ce9(0x33d)](_0x4617be);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2f7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1ac))[a2_0x5087ce(0x212)](a2_0x5087ce(0x358),a2_0x5087ce(0x247))[a2_0x5087ce(0x212)](a2_0x5087ce(0x216),a2_0x5087ce(0x196))[a2_0x5087ce(0x212)]('--rule-file\x20<file>',a2_0x5087ce(0x276))[a2_0x5087ce(0x212)](a2_0x5087ce(0x31e),a2_0x5087ce(0x259))['option'](a2_0x5087ce(0x280),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x5087ce(0x212)]('--invisible',a2_0x5087ce(0x244))[a2_0x5087ce(0x212)](a2_0x5087ce(0x255),a2_0x5087ce(0x23e))[a2_0x5087ce(0x2ba)](async(_0x463d1c,_0x26ccaa)=>{const _0x17b02c=a2_0x5087ce,_0x2c8a6c=new SegmentCreateCommand(),_0x41f279=program[_0x17b02c(0x313)](),_0xc9fa04=await createTDXInstance(_0x41f279),_0x59df3a=await _0x2c8a6c[_0x17b02c(0x28e)]({'options':{..._0x41f279,..._0x26ccaa},'args':[_0x463d1c],'tdx':_0xc9fa04});process['exit'](_0x59df3a);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x33b))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1bf))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1ba),a2_0x5087ce(0x37c))['option']('--description\x20<text>',a2_0x5087ce(0x2fb))[a2_0x5087ce(0x212)]('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x5087ce(0x212)]('--rule-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x5087ce(0x212)](a2_0x5087ce(0x31e),'Move\x20to\x20folder')[a2_0x5087ce(0x212)](a2_0x5087ce(0x280),a2_0x5087ce(0x367))['action'](async(_0x29eda0,_0x396505)=>{const _0x42c47b=a2_0x5087ce,_0x44c109=new SegmentUpdateCommand(),_0x23b93d=program['opts'](),_0x559655=await createTDXInstance(_0x23b93d),_0xea088c=await _0x44c109[_0x42c47b(0x28e)]({'options':{..._0x23b93d,..._0x396505},'args':[_0x29eda0],'tdx':_0x559655});process[_0x42c47b(0x33d)](_0xea088c);});const parentCmd=segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x286))[a2_0x5087ce(0x303)](a2_0x5087ce(0x36f)),parentListAction=async(_0x10c9e1,_0x35fc27)=>{const _0xb02415=a2_0x5087ce,_0xc36355=new ParentSegmentListCommand(),_0x5205a1=program[_0xb02415(0x313)](),_0x4fe751=await createTDXInstance(_0x5205a1),_0x3c6690=await _0xc36355['run']({'options':{..._0x5205a1,..._0x35fc27},'args':_0x10c9e1?[_0x10c9e1]:[],'tdx':_0x4fe751});process[_0xb02415(0x33d)](_0x3c6690);};parentCmd['command']('list\x20[pattern]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x32f))[a2_0x5087ce(0x2ba)](parentListAction),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1f5),{'hidden':!![]})[a2_0x5087ce(0x303)](a2_0x5087ce(0x283))[a2_0x5087ce(0x2ba)](parentListAction),parentCmd[a2_0x5087ce(0x202)]('pull\x20[name]')[a2_0x5087ce(0x303)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2b6),a2_0x5087ce(0x1a9))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')['action'](async(_0x3b9475,_0x20f3c9)=>{const _0x12756a=a2_0x5087ce,_0x36c9b1=new ParentSegmentPullCommand(),_0x38fada=program['opts'](),_0x355320=await createTDXInstance(_0x38fada),_0x2eacec=await _0x36c9b1[_0x12756a(0x28e)]({'options':{..._0x38fada,..._0x20f3c9},'args':_0x3b9475?[_0x3b9475]:[],'tdx':_0x355320});process[_0x12756a(0x33d)](_0x2eacec);}),parentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x19a))[a2_0x5087ce(0x303)](a2_0x5087ce(0x251))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1b5),'Skip\x20confirmation\x20prompt')[a2_0x5087ce(0x2ba)](async(_0x13e762,_0x4d022f)=>{const _0x562098=a2_0x5087ce,_0x3b8540=new ParentSegmentPushCommand(),_0x3d8f1f=program['opts'](),_0x4076e=await createTDXInstance(_0x3d8f1f),_0x3a98de=await _0x3b8540[_0x562098(0x28e)]({'options':{..._0x3d8f1f,..._0x4d022f},'args':_0x13e762?[_0x13e762]:[],'tdx':_0x4076e});process[_0x562098(0x33d)](_0x3a98de);}),parentCmd[a2_0x5087ce(0x202)]('validate\x20[file]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x28b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x20b),'Show\x20only\x20master\x20table\x20validation')[a2_0x5087ce(0x212)](a2_0x5087ce(0x290),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x5087ce(0x212)](a2_0x5087ce(0x240),a2_0x5087ce(0x19e))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e4),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1e0),a2_0x5087ce(0x352),a2_0x5087ce(0x1d3))[a2_0x5087ce(0x2ba)](async(_0xbb9638,_0x34831b)=>{const _0x360eb3=a2_0x5087ce,_0x2a9085=new ParentSegmentValidateCommand(),_0x4f7cf6=program[_0x360eb3(0x313)](),_0x36af32=await createTDXInstance(_0x4f7cf6),_0x4e22ca=await _0x2a9085[_0x360eb3(0x28e)]({'options':{..._0x4f7cf6,..._0x34831b},'args':_0xbb9638?[_0xbb9638]:[],'tdx':_0x36af32});process[_0x360eb3(0x33d)](_0x4e22ca);}),parentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2c9))[a2_0x5087ce(0x303)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x5087ce(0x212)](a2_0x5087ce(0x20b),a2_0x5087ce(0x19b))[a2_0x5087ce(0x212)]('--attribute\x20[name]',a2_0x5087ce(0x376))[a2_0x5087ce(0x212)]('--behavior\x20[name]',a2_0x5087ce(0x1b4))['option']('--enriched',a2_0x5087ce(0x1c2))[a2_0x5087ce(0x212)]('--interval\x20<range>',a2_0x5087ce(0x352),a2_0x5087ce(0x1d3))[a2_0x5087ce(0x2ba)](async(_0x6b2721,_0x40658d)=>{const _0x45d03c=a2_0x5087ce,_0x3d8a14=new ParentSegmentPreviewCommand(),_0x19a6ef=program['opts'](),_0x2f1ba2=await createTDXInstance(_0x19a6ef),_0x83595f=await _0x3d8a14[_0x45d03c(0x28e)]({'options':{..._0x19a6ef,..._0x40658d},'args':_0x6b2721?[_0x6b2721]:[],'tdx':_0x2f1ba2});process[_0x45d03c(0x33d)](_0x83595f);}),parentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1eb))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1cd))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1b5),'Skip\x20confirmation\x20prompt')['action'](async(_0x51a0b6,_0x594b78)=>{const _0x51150f=a2_0x5087ce,_0x3ae44f=new ParentSegmentRunCommand(),_0x35e2d0=program['opts'](),_0x5d5179=await createTDXInstance(_0x35e2d0),_0x86e3fb=await _0x3ae44f[_0x51150f(0x28e)]({'options':{..._0x35e2d0,..._0x594b78},'args':_0x51a0b6?[_0x51a0b6]:[],'tdx':_0x5d5179});process[_0x51150f(0x33d)](_0x86e3fb);});const parentSegmentCmd=program[a2_0x5087ce(0x202)]('parent-segment')['alias']('ps')[a2_0x5087ce(0x303)](a2_0x5087ce(0x27f));parentSegmentCmd['command']('list\x20[pattern]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x32f))[a2_0x5087ce(0x2ba)](parentListAction),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x252))['description'](a2_0x5087ce(0x2c6))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2b6),a2_0x5087ce(0x1de))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2ab),a2_0x5087ce(0x209))[a2_0x5087ce(0x2ba)](async(_0x45e2db,_0x172c55)=>{const _0x2ba45a=a2_0x5087ce,_0x12fe73=new ParentSegmentPullCommand(),_0x14ce82=program[_0x2ba45a(0x313)](),_0x42e5e5=await createTDXInstance(_0x14ce82),_0x1cb84d=await _0x12fe73[_0x2ba45a(0x28e)]({'options':{..._0x14ce82,..._0x172c55},'args':_0x45e2db?[_0x45e2db]:[],'tdx':_0x42e5e5});process[_0x2ba45a(0x33d)](_0x1cb84d);}),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x19d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x262))[a2_0x5087ce(0x212)]('-y,\x20--yes',a2_0x5087ce(0x351))['action'](async(_0x11b202,_0x49456e)=>{const _0x1d3008=a2_0x5087ce,_0x34114e=new ParentSegmentPushCommand(),_0x52f0d7=program[_0x1d3008(0x313)](),_0x1fb5c9=await createTDXInstance(_0x52f0d7),_0x24fd22=await _0x34114e[_0x1d3008(0x28e)]({'options':{..._0x52f0d7,..._0x49456e},'args':_0x11b202?[_0x11b202]:[],'tdx':_0x1fb5c9});process[_0x1d3008(0x33d)](_0x24fd22);}),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1b8))[a2_0x5087ce(0x303)](a2_0x5087ce(0x28b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x20b),a2_0x5087ce(0x2da))[a2_0x5087ce(0x212)]('--attribute\x20[name]',a2_0x5087ce(0x267))['option']('--behavior\x20[name]',a2_0x5087ce(0x19e))[a2_0x5087ce(0x212)]('--enriched',a2_0x5087ce(0x225))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1e0),a2_0x5087ce(0x352),a2_0x5087ce(0x1d3))[a2_0x5087ce(0x2ba)](async(_0x29f59e,_0x5884e8)=>{const _0x45fc37=a2_0x5087ce,_0x2efa7d=new ParentSegmentValidateCommand(),_0x647d95=program[_0x45fc37(0x313)](),_0x3362d7=await createTDXInstance(_0x647d95),_0x57823f=await _0x2efa7d[_0x45fc37(0x28e)]({'options':{..._0x647d95,..._0x5884e8},'args':_0x29f59e?[_0x29f59e]:[],'tdx':_0x3362d7});process[_0x45fc37(0x33d)](_0x57823f);}),parentSegmentCmd[a2_0x5087ce(0x202)]('preview\x20[name]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x26d))[a2_0x5087ce(0x212)](a2_0x5087ce(0x20b),'Show\x20master\x20table\x20sample\x20data')['option']('--attribute\x20[name]',a2_0x5087ce(0x376))[a2_0x5087ce(0x212)](a2_0x5087ce(0x240),a2_0x5087ce(0x1b4))['option'](a2_0x5087ce(0x2e4),a2_0x5087ce(0x1c2))['option'](a2_0x5087ce(0x1e0),a2_0x5087ce(0x352),'-1d')[a2_0x5087ce(0x2ba)](async(_0x573d94,_0x57907c)=>{const _0x2ce9e1=a2_0x5087ce,_0x1c4883=new ParentSegmentPreviewCommand(),_0x4c5dce=program[_0x2ce9e1(0x313)](),_0x488386=await createTDXInstance(_0x4c5dce),_0x4f7189=await _0x1c4883[_0x2ce9e1(0x28e)]({'options':{..._0x4c5dce,..._0x57907c},'args':_0x573d94?[_0x573d94]:[],'tdx':_0x488386});process[_0x2ce9e1(0x33d)](_0x4f7189);}),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1eb))['description'](a2_0x5087ce(0x1cd))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1b5),a2_0x5087ce(0x351))[a2_0x5087ce(0x2ba)](async(_0xc9b858,_0x1116fb)=>{const _0x4e09ac=a2_0x5087ce,_0x36b6d8=new ParentSegmentRunCommand(),_0x44c91a=program[_0x4e09ac(0x313)](),_0x2a128d=await createTDXInstance(_0x44c91a),_0x4ffef6=await _0x36b6d8[_0x4e09ac(0x28e)]({'options':{..._0x44c91a,..._0x1116fb},'args':_0xc9b858?[_0xc9b858]:[],'tdx':_0x2a128d});process[_0x4e09ac(0x33d)](_0x4ffef6);}),parentSegmentCmd['command'](a2_0x5087ce(0x2c7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x295))[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),'Output\x20as\x20JSON')[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))[a2_0x5087ce(0x2ba)](async(_0x209a57,_0x3e9c5b)=>{const _0x2b8f71=a2_0x5087ce,_0x52c4b7=new ParentSegmentFieldsCommand(),_0x49a2ca=program[_0x2b8f71(0x313)](),_0x2e9d29=await createTDXInstance(_0x49a2ca),_0x269e94=await _0x52c4b7[_0x2b8f71(0x28e)]({'options':{..._0x49a2ca,..._0x3e9c5b},'args':_0x209a57?[_0x209a57]:[],'tdx':_0x2e9d29});process['exit'](_0x269e94);}),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2f6))[a2_0x5087ce(0x303)](a2_0x5087ce(0x20f))['option'](a2_0x5087ce(0x37e),'Output\x20as\x20JSON')[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))['action'](async(_0x235992,_0x436bfb)=>{const _0x41f4b6=a2_0x5087ce,_0x4b2757=new ParentSegmentInfoCommand(),_0x2dfe07=program[_0x41f4b6(0x313)](),_0x1c475b=await createTDXInstance(_0x2dfe07),_0x3e1ce1=await _0x4b2757[_0x41f4b6(0x28e)]({'options':{..._0x2dfe07,..._0x436bfb},'args':_0x235992?[_0x235992]:[],'tdx':_0x1c475b});process[_0x41f4b6(0x33d)](_0x3e1ce1);}),parentSegmentCmd['command'](a2_0x5087ce(0x1b7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x37b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),a2_0x5087ce(0x26b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))[a2_0x5087ce(0x2ba)](async(_0x162146,_0x3504c0)=>{const _0x14fe41=a2_0x5087ce,_0x8f6358=new ParentSegmentDescCommand(),_0x21d132=program[_0x14fe41(0x313)](),_0x3d93de=await createTDXInstance(_0x21d132),_0x3c2168=await _0x8f6358[_0x14fe41(0x28e)]({'options':{..._0x21d132,..._0x3504c0},'args':_0x162146?[_0x162146]:[],'tdx':_0x3d93de});process[_0x14fe41(0x33d)](_0x3c2168);}),parentSegmentCmd['command'](a2_0x5087ce(0x23f))[a2_0x5087ce(0x303)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),a2_0x5087ce(0x26b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))['action'](async(_0x2e04a2,_0x46afa9)=>{const _0x513e57=a2_0x5087ce,_0x338043=new ParentSegmentSQLCommand(),_0x161c24=program[_0x513e57(0x313)](),_0x8f277b=await createTDXInstance(_0x161c24),_0x1bc15a=await _0x338043['run']({'options':{..._0x161c24,..._0x46afa9},'args':_0x2e04a2?[_0x2e04a2]:[],'tdx':_0x8f277b});process[_0x513e57(0x33d)](_0x1bc15a);}),parentSegmentCmd['command']('show\x20[name]')['description'](a2_0x5087ce(0x296))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e3),a2_0x5087ce(0x21b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),'Output\x20as\x20JSON')[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))[a2_0x5087ce(0x2ba)](async(_0x3ea0fc,_0x29b76c)=>{const _0xd65c77=a2_0x5087ce,_0x5a7791=new ParentSegmentShowCommand(),_0x36f09b=program[_0xd65c77(0x313)](),_0x5837eb=await createTDXInstance(_0x36f09b),_0x2bcf94=await _0x5a7791[_0xd65c77(0x28e)]({'options':{..._0x36f09b,..._0x29b76c},'args':_0x3ea0fc?[_0x3ea0fc]:[],'tdx':_0x5837eb});process[_0xd65c77(0x33d)](_0x2bcf94);}),parentSegmentCmd[a2_0x5087ce(0x202)]('use\x20[name]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x228))[a2_0x5087ce(0x2ba)](async(_0x2380ea,_0x5147dd)=>{const _0x1d39ef=a2_0x5087ce,_0x431d1a=new UseCommand(),_0x3f9317=program['opts'](),_0x595a82=_0x2380ea?[_0x1d39ef(0x302),_0x2380ea]:[],_0x1f48a2=await _0x431d1a[_0x1d39ef(0x28e)]({'options':{..._0x3f9317,..._0x5147dd},'args':_0x595a82,'tdx':null});process['exit'](_0x1f48a2);}),parentCmd[a2_0x5087ce(0x202)]('create\x20<name>')[a2_0x5087ce(0x303)](a2_0x5087ce(0x2e9))['requiredOption']('--database\x20<db>',a2_0x5087ce(0x33a))['requiredOption'](a2_0x5087ce(0x2e2),'Master\x20table\x20name')[a2_0x5087ce(0x212)](a2_0x5087ce(0x358),a2_0x5087ce(0x22c))[a2_0x5087ce(0x212)]('--schedule-type\x20<type>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option']('--schedule-option\x20<value>',a2_0x5087ce(0x258))[a2_0x5087ce(0x212)]('--timezone\x20<tz>',a2_0x5087ce(0x197))[a2_0x5087ce(0x212)](a2_0x5087ce(0x369),a2_0x5087ce(0x342))['option'](a2_0x5087ce(0x362),a2_0x5087ce(0x2b4))['option']('--behaviors\x20<json>',a2_0x5087ce(0x36a))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2c5),a2_0x5087ce(0x1a1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x279),a2_0x5087ce(0x334))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2c4),a2_0x5087ce(0x2bd))[a2_0x5087ce(0x2ba)](async(_0x506acc,_0x59a367)=>{const _0x5a0a71=a2_0x5087ce,_0x366a65=new ParentSegmentCreateCommand(),_0x444842=program[_0x5a0a71(0x313)](),_0x540b8e=await createTDXInstance(_0x444842),_0x16009a=await _0x366a65[_0x5a0a71(0x28e)]({'options':{..._0x444842,..._0x59a367},'args':[_0x506acc],'tdx':_0x540b8e});process[_0x5a0a71(0x33d)](_0x16009a);}),parentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x285))[a2_0x5087ce(0x303)](a2_0x5087ce(0x31a))[a2_0x5087ce(0x212)]('--description\x20<text>','Updated\x20description')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1e6),a2_0x5087ce(0x1db))['option']('--schedule-option\x20<value>',a2_0x5087ce(0x379))[a2_0x5087ce(0x212)]('--timezone\x20<tz>',a2_0x5087ce(0x1ef))[a2_0x5087ce(0x212)]('--add-attributes\x20<json>',a2_0x5087ce(0x332))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d9),a2_0x5087ce(0x241))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1cb),'Add\x20behaviors\x20as\x20JSON\x20string')['option']('--add-behaviors-file\x20<file>','Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x5087ce(0x2ba)](async(_0x411416,_0x574fa1)=>{const _0x5d5a77=a2_0x5087ce,_0x1d5fe5=new ParentSegmentUpdateCommand(),_0x4bbbf3=program[_0x5d5a77(0x313)](),_0x5f0c86=await createTDXInstance(_0x4bbbf3),_0x21c3ce=await _0x1d5fe5[_0x5d5a77(0x28e)]({'options':{..._0x4bbbf3,..._0x574fa1},'args':[_0x411416],'tdx':_0x5f0c86});process[_0x5d5a77(0x33d)](_0x21c3ce);}),folderCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x326))[a2_0x5087ce(0x303)](a2_0x5087ce(0x233))[a2_0x5087ce(0x212)]('--description\x20<text>',a2_0x5087ce(0x1e7))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2ee),a2_0x5087ce(0x1c9))[a2_0x5087ce(0x2ba)](async(_0x50dc51,_0x104cee,_0x103967)=>{const _0x50b5a6=a2_0x5087ce,_0x316371=new SegmentFolderCreateCommand(),_0x44bf65=program[_0x50b5a6(0x313)](),_0x29f893=await createTDXInstance(_0x44bf65),_0x23238e=await _0x316371[_0x50b5a6(0x28e)]({'options':{..._0x44bf65,..._0x103967},'args':[_0x50dc51,_0x104cee],'tdx':_0x29f893});process['exit'](_0x23238e);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x203))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1da))['action'](async(_0x304766,_0x4bc106)=>{const _0x29e3b6=a2_0x5087ce,_0x11b626=new ActivationsCommand(),_0x1d7414=program[_0x29e3b6(0x313)](),_0x4a05c5=await createTDXInstance(_0x1d7414),_0x458ac4=await _0x11b626[_0x29e3b6(0x28e)]({'options':{..._0x1d7414,..._0x4bc106},'args':[_0x304766],'tdx':_0x4a05c5});process[_0x29e3b6(0x33d)](_0x458ac4);});const workflowCmd=program[a2_0x5087ce(0x202)]('workflow')[a2_0x5087ce(0x1c1)]('wf')['description'](a2_0x5087ce(0x223)),wfProjectCmd=workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2be))[a2_0x5087ce(0x303)](a2_0x5087ce(0x29e)),wfProjectListAction=async(_0xb8e6f9,_0x14bc6e)=>{const _0x557ba1=a2_0x5087ce,_0x455e09=new WorkflowProjectsCommand(),_0x56eb0e=program[_0x557ba1(0x313)](),_0x25d9c1=await createTDXInstance(_0x56eb0e),_0x400322=await _0x455e09[_0x557ba1(0x28e)]({'options':{..._0x56eb0e,..._0x14bc6e},'args':_0xb8e6f9?[_0xb8e6f9]:[],'tdx':_0x25d9c1});process[_0x557ba1(0x33d)](_0x400322);};wfProjectCmd['command'](a2_0x5087ce(0x24a))['description']('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](wfProjectListAction),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x25a))[a2_0x5087ce(0x303)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x5087ce(0x2ba)](wfProjectListAction);const wfWorkflowListAction=async(_0x4d8efb,_0x3db5f6)=>{const _0x281419=a2_0x5087ce,_0x43e290=new WorkflowWorkflowsCommand(),_0x449b31=program[_0x281419(0x313)](),_0xc83dc6=await createTDXInstance(_0x449b31),_0x4ac87c=await _0x43e290['run']({'options':{..._0x449b31,..._0x3db5f6},'args':_0x4d8efb?[_0x4d8efb]:[],'tdx':_0xc83dc6});process[_0x281419(0x33d)](_0x4ac87c);};function a2_0x3c39(){const _0x3cad90=['filter','--subject\x20<subject>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','includes','-u,\x20--use','1776egWzKj','parse','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Table\x20management\x20commands','tasks','--html\x20<html>','0.7','Show\x20campaign\x20details','Attributes\x20from\x20JSON\x20file','System\x20prompt/instructions\x20(default:\x20empty)','-o,\x20--output\x20<file>','TRACE','--temperature\x20<n>','\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','action','Segment\x20folder\x20management','Get\x20job\x20results','Customer\x20group\x20from\x20JSON\x20file','project','stderr','-f,\x20--file\x20<path>','fields\x20[parent_name]','summary','Submit\x20a\x20job','--customer-group-file\x20<file>','--behaviors-file\x20<file>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','fields\x20[name]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','preview\x20[file]','Run\x20Trino\x20query\x20with\x20streaming\x20results','Trino\x20catalog\x20(default:\x20td)','GET','site','set','LLM\x20project\x20management','Delete\x20an\x20LLM\x20project','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Update\x20a\x20campaign','Delete\x20an\x20email\x20template','replace','Workflow\x20session\x20management','Show\x20job\x20details','retry','attempt','--clear','Show\x20only\x20master\x20table\x20validation','Create\x20a\x20new\x20campaign','debug','options','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--prompt\x20<text>','Options:','catch','--table\x20<table>','--limit\x20<n>','--enriched','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','-d,\x20--database\x20<database>','--last','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','show\x20<job-id>','slice','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','_hidden','--parent-folder\x20<name>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Setup\x20API\x20key\x20authentication\x20interactively','--email-sender-id\x20<id>','50524FbkIcS','profile','sonnet','--reason\x20<text>','info\x20[name]','create\x20<segment_name>','Delete\x20an\x20agent','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--port\x20<number>','Updated\x20description','trace','Include\x20retried\x20attempts','proxy','Database\x20management\x20commands','--trace','tdx\x20','parent_segment','description','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','show\x20<name-or-id>','error','Read\x20request\x20body\x20from\x20file','--database\x20<name>','End\x20time\x20filter\x20(ISO\x208601\x20format)','show\x20<agent-name>','claude-4.5-sonnet','format','tdx','Plaintext\x20template\x20content','--catalog\x20<catalog>','--parent-segment\x20<name>','forEach','opts','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--resume-from\x20<task>','info\x20[segment_name]','Show\x20workspace\x20details','isArray','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','utf-8','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','clear','--folder\x20<name>','Delete\x20a\x20campaign','Agent\x20name','Update\x20an\x20existing\x20agent','folders\x20<parent_name>','history\x20[chat-id]','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','create\x20<parent_name>\x20<folder_name>','apiKey','logLevel','setup','Output\x20as\x20JSON\x20Lines','Include\x20retried\x20attempts\x20(for\x20list)','--from\x20<timestamp>','addHelpText','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','tables\x20[pattern]','resume\x20<name-or-id>','Add\x20attributes\x20as\x20JSON\x20string','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Customer\x20group\x20as\x20JSON\x20string','--full','4404360LTKcrO','1404zDjPQH','Agent\x20reference\x20(project-name/agent-name)','Maximum\x20recursion\x20depth\x20(default:\x2010)','Master\x20database\x20name','update\x20<segment_name>','push\x20[project-name-or-dir]','exit','--jsonl','configureHelp','attempts\x20[project]','subcommandDescription','Attributes\x20as\x20JSON\x20string','--revision\x20<revision>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','hook','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--max-depth\x20<depth>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--type\x20<api_type>',',\x20version\x20','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','context','Update\x20a\x20workspace','Starter\x20message','\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','Skip\x20confirmation\x20prompt','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','workflows\x20[project]','Database\x20name\x20(default:\x20information_schema)','log','required','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--description\x20<text>','chats','Temperature\x20(0.0-2.0,\x20default:\x200.7)','List\x20all\x20available\x20profiles','workspace','delete\x20<name-or-id>','Arguments:','--plaintext\x20<text>','version','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--attributes-file\x20<file>','optionTerm','--tsv','use\x20<path>','trino','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','hidden','--attributes\x20<json>','Behaviors\x20as\x20JSON\x20string','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','join','commandUsage','Parent\x20segment\x20(audience)\x20management','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Commands:','[attempt-id]','show\x20<folder_ref>','campaigns\x20[pattern]','CDP\x20segment\x20management\x20commands','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','usage','List\x20available\x20LLM\x20models','Updated\x20schedule\x20option','delete\x20<project-name-or-id>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','New\x20segment\x20name','name','--json','api\x20[endpoint]','sql\x20[segment_name]','Usage:\x20','registeredArguments','DEBUG','status','use\x20[resource]\x20[value]','-o,\x20--output\x20<folder>','length','--timeout\x20<seconds>','--timezone\x20<tz>','Start\x20a\x20new\x20chat\x20session','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','661913uKitQA','Filtering\x20rule\x20as\x20JSON\x20string','Timezone\x20(e.g.,\x20America/Los_Angeles)','subcommandTerm','templates\x20[pattern]','push\x20[file]','Show\x20master\x20table\x20sample\x20data','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','push\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--project\x20<name>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Behaviors\x20from\x20JSON\x20file','Authentication\x20management','after','../package.json','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--description\x20<desc>','[action]','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Output\x20file\x20path\x20(default:\x20<name>.yml)','Output\x20folder\x20(default:\x20{project_name}.llm)','restore\x20<folder>','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','segment','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Workspace\x20name','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','push','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','-y,\x20--yes','workspaces\x20[pattern]','desc\x20[name]','validate\x20[name]','outputHelp','--name\x20<new_name>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','--json-columns\x20<cols>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--name\x20<name>','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','chat\x20[message...]','alias','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Agent\x20prompt/instructions','list\x20[project]','--include-retried','padWidth','Campaign\x20type\x20(email\x20or\x20push)','--no-color','Parent\x20folder\x20name\x20for\x20nested\x20folders','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--add-behaviors\x20<json>','Model\x20name\x20(default:\x20claude-4.5-sonnet)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','create\x20<name>','sessions\x20[project]','Read\x20SQL\x20query\x20from\x20file','run\x20<workflow>','--workspace\x20<name>','-1d','Update\x20an\x20email\x20template','url','--segment\x20<path>','create','Email\x20template\x20management','--add-attributes-file\x20<file>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','.dev','Reason\x20for\x20killing\x20the\x20attempt','Output\x20file\x20path','--agent\x20<name>','--interval\x20<range>','Campaign\x20description','argumentTerm','Workflow\x20parameter\x20(repeatable)','logs','-H,\x20--header\x20<header>','--schedule-type\x20<type>','Folder\x20description','injectIntoOptions','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','run\x20[name]','help','table','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Updated\x20timezone','--starter-message\x20<text>','Create\x20a\x20new\x20LLM\x20project','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','segments\x20[path]','Revision\x20name\x20(default:\x20timestamp)','parents\x20[pattern]','use\x20<name>','preAction','Resume\x20from\x20specific\x20task\x20(retry)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','gitRevision','stdout','21AmZxSS','--to\x20<timestamp>','commands','optionDescription','--start-at\x20<datetime>','--skip-validation','command','activations\x20<segment_name>','--name\x20<text>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20--\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20previous\x20Claude\x20Code\x20session\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','argument','--master','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','List\x20jobs','us01','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','option','Campaign\x20name','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','4000','--rule\x20<json>','Create\x20an\x20email\x20template','Set\x20operation\x20timeout\x20in\x20seconds','Pause\x20a\x20campaign','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Limit\x20number\x20of\x20rows','Request\x20body\x20as\x20JSON\x20string','--color','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Override\x20project\x20name','map','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','New\x20workspace\x20name','Workflow\x20(Digdag)\x20management\x20commands','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Save\x20output\x20to\x20file','Set\x20or\x20show\x20parent\x20segment\x20context','desc\x20[segment_name]','HTML\x20template\x20content','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Parent\x20segment\x20description','--job-type\x20<type>','--format\x20<format>','--from-task\x20<task>','desc','buildTime','delete\x20<agent-name>','Create\x20segment\x20folder','--params\x20<json>','submit\x20[query]','isTTY','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--version','json','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','argv','Skip\x20population\x20counting','sql\x20[name]','--behavior\x20[name]','Add\x20attributes\x20from\x20JSON\x20file','Create\x20a\x20workspace','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Make\x20segment\x20invisible\x20(default:\x20visible)','\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','Email\x20subject\x20template','Segment\x20description','Create\x20a\x20new\x20agent\x20in\x20current\x20project','agents\x20[pattern]','list\x20[pattern]','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','template','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Email\x20sender\x20ID\x20for\x20delivery','341936YXbInW','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','pull\x20[name]','--dry-run','requiredOption','--no-count-population','describe\x20[table]','Clear\x20session\x20context','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Folder\x20name\x20for\x20organization','projects\x20[pattern]','statusline','--site\x20<site>','--in\x20<database>','2776670auAYAM','information_schema','database','session','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','list','noColor','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--limit\x20<number>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','port','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','get','Output\x20as\x20JSON','Force\x20retry\x20even\x20if\x20not\x20failed','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Workspace\x20name\x20(required)','Workspace\x20description','--model\x20<name>','models','build-info.json','pwd','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','agent','Filtering\x20rule\x20from\x20JSON\x20file','Show\x20current\x20segment/folder\x20context','aliases','--customer-group\x20<json>','Database\x20to\x20query\x20(default:\x20information_schema)','campaign','--max-tool-iterations\x20<n>','use\x20<project-name>','Template\x20name','Parent\x20segment\x20management','--kind\x20<type>','engage','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Database\x20to\x20use\x20(overrides\x20context)','update\x20<name>','parent','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','pause\x20<name-or-id>','allowExcessArguments','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','describe','--status\x20<status>','run','folder','--attribute\x20[name]','Unknown\x20action:\x20','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','INFO','job','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','list\x20[path]','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Workflow\x20attempt\x20management','--limit\x20<rows>','jobs','attempt:','update\x20<name-or-id>','Workflow\x20project\x20management','--name\x20<new-name>','padEnd','AI-native\x20CLI\x20for\x20Treasure\x20Data','--system-prompt\x20<text>','Agent\x20description','-r,\x20--recursive','-v,\x20--verbose','250674fxCbAt'];a2_0x3c39=function(){return _0x3cad90;};return a2_0x3c39();}workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x353))[a2_0x5087ce(0x303)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x5087ce(0x2ba)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x261))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2d5)),wfSessionListAction=async(_0x1ecc0d,_0x4a1764)=>{const _0x56ea78=a2_0x5087ce,_0xe825b0=new WorkflowSessionsCommand(),_0x539ecd=program[_0x56ea78(0x313)](),_0x173a23=await createTDXInstance(_0x539ecd),_0x59b8ec=await _0xe825b0[_0x56ea78(0x28e)]({'options':{..._0x539ecd,..._0x4a1764},'args':_0x1ecc0d?[_0x1ecc0d]:[],'tdx':_0x173a23});process['exit'](_0x59b8ec);};wfSessionCmd['command'](a2_0x5087ce(0x1c4))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2de))[a2_0x5087ce(0x212)](a2_0x5087ce(0x28d),a2_0x5087ce(0x1e9))['option'](a2_0x5087ce(0x32c),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x5087ce(0x1fd),a2_0x5087ce(0x30a))['action'](wfSessionListAction),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1cf))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1a8))[a2_0x5087ce(0x212)](a2_0x5087ce(0x28d),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x32c),a2_0x5087ce(0x206))['option'](a2_0x5087ce(0x1fd),a2_0x5087ce(0x30a))[a2_0x5087ce(0x2ba)](wfSessionListAction);const wfAttemptListAction=async(_0xebca5a,_0x5ba8a6)=>{const _0x5b0387=a2_0x5087ce,_0x586d98=new WorkflowAttemptsCommand(),_0x2bcdda=program['opts'](),_0x3f305c=await createTDXInstance(_0x2bcdda),_0x2f3a64=await _0x586d98[_0x5b0387(0x28e)]({'options':{..._0x2bcdda,..._0x5ba8a6},'args':_0xebca5a?[_0xebca5a]:[],'tdx':_0x3f305c});process['exit'](_0x2f3a64);},attemptCmd=workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2d8))[a2_0x5087ce(0x303)](a2_0x5087ce(0x299))[a2_0x5087ce(0x20a)](a2_0x5087ce(0x372),'Attempt\x20ID')[a2_0x5087ce(0x20a)](a2_0x5087ce(0x1a7),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')['argument']('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x5087ce(0x212)]('--include-subtasks','Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2f5),a2_0x5087ce(0x1dd))[a2_0x5087ce(0x212)](a2_0x5087ce(0x316),a2_0x5087ce(0x1f8))[a2_0x5087ce(0x212)]('--params\x20<json>',a2_0x5087ce(0x226))['option']('--force',a2_0x5087ce(0x26c))[a2_0x5087ce(0x212)]('--include-retried',a2_0x5087ce(0x32b))['action'](async(_0x5744f8,_0x15db8e,_0x3c05c6,_0x11a6d2)=>{const _0x2ca87c=a2_0x5087ce;if(_0x5744f8===_0x2ca87c(0x263)){await wfAttemptListAction(_0x15db8e,_0x11a6d2);return;}if(!_0x5744f8){attemptCmd[_0x2ca87c(0x1ec)]();return;}const _0x4a0b27=program[_0x2ca87c(0x313)](),_0x2d5807=await createTDXInstance(_0x4a0b27);let _0x465d77=0x0;if(!_0x15db8e){const _0x5de90e=new WorkflowAttemptCommand();_0x465d77=await _0x5de90e[_0x2ca87c(0x28e)]({'options':{..._0x4a0b27,..._0x11a6d2},'args':[_0x5744f8],'tdx':_0x2d5807});}else{if(_0x15db8e===_0x2ca87c(0x1e4)){const _0xf23e0d=new WorkflowLogsCommand();_0x465d77=await _0xf23e0d[_0x2ca87c(0x28e)]({'options':{..._0x4a0b27,..._0x11a6d2},'args':_0x3c05c6?[_0x5744f8,_0x3c05c6]:[_0x5744f8],'tdx':_0x2d5807});}else{if(_0x15db8e===_0x2ca87c(0x2b0)){const _0x152213=new WorkflowTasksCommand();_0x465d77=await _0x152213[_0x2ca87c(0x28e)]({'options':{..._0x4a0b27,..._0x11a6d2},'args':[_0x5744f8],'tdx':_0x2d5807});}else{if(_0x15db8e==='kill'){const _0x408dbf=new WorkflowKillCommand();_0x465d77=await _0x408dbf['run']({'options':{..._0x4a0b27,..._0x11a6d2},'args':[_0x5744f8],'tdx':_0x2d5807});}else{if(_0x15db8e===_0x2ca87c(0x2d7)){const _0x372231=new WorkflowRetryCommand();_0x465d77=await _0x372231[_0x2ca87c(0x28e)]({'options':{..._0x4a0b27,..._0x11a6d2},'args':[_0x2ca87c(0x29c)+_0x5744f8],'tdx':_0x2d5807});}else console[_0x2ca87c(0x307)](_0x2ca87c(0x291)+_0x15db8e),console['error'](_0x2ca87c(0x24b)),_0x465d77=0x1;}}}}process['exit'](_0x465d77);});attemptCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1c4))[a2_0x5087ce(0x303)](a2_0x5087ce(0x34c))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1c5),a2_0x5087ce(0x2fd))[a2_0x5087ce(0x2ba)](wfAttemptListAction),workflowCmd['command'](a2_0x5087ce(0x340))[a2_0x5087ce(0x303)](a2_0x5087ce(0x287))['option'](a2_0x5087ce(0x1c5),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd['command']('retry\x20<session-id>')['description'](a2_0x5087ce(0x1bb))[a2_0x5087ce(0x212)](a2_0x5087ce(0x22f),'Resume\x20from\x20specific\x20task')['option'](a2_0x5087ce(0x234),a2_0x5087ce(0x24e))[a2_0x5087ce(0x2ba)](async(_0x8392f8,_0x5daeac)=>{const _0x4de073=a2_0x5087ce,_0x86a741=new WorkflowRetryCommand(),_0x331f76=program[_0x4de073(0x313)](),_0x54312d=await createTDXInstance(_0x331f76),_0x30a0a3=await _0x86a741[_0x4de073(0x28e)]({'options':{..._0x331f76,..._0x5daeac},'args':[_0x8392f8],'tdx':_0x54312d});process[_0x4de073(0x33d)](_0x30a0a3);}),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1d1))['description']('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0x5087ce(0x212)]('--param\x20<key=value>',a2_0x5087ce(0x1e3),(_0x2e61f6,_0x3f419a=[])=>[..._0x3f419a,_0x2e61f6],[])[a2_0x5087ce(0x212)]('--session-time\x20<time>',a2_0x5087ce(0x344))['action'](async(_0x380a0c,_0x48f7b2)=>{const _0x7e435=a2_0x5087ce,_0xdd2e67=new WorkflowRunCommand(),_0x451db7=program[_0x7e435(0x313)](),_0x22d650=await createTDXInstance(_0x451db7),_0x49cd22=await _0xdd2e67['run']({'options':{..._0x451db7,..._0x48f7b2},'args':[_0x380a0c],'tdx':_0x22d650});process[_0x7e435(0x33d)](_0x49cd22);}),workflowCmd[a2_0x5087ce(0x202)]('download\x20<project-name>\x20[output-dir]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x21a))[a2_0x5087ce(0x212)]('--revision\x20<revision>',a2_0x5087ce(0x210))['action'](async(_0x175b58,_0x1bc5d8,_0x472ba1)=>{const _0x5bec55=a2_0x5087ce,_0x5b8b00=new WorkflowDownloadCommand(),_0xce6f26=program[_0x5bec55(0x313)](),_0x27aae6=await createTDXInstance(_0xce6f26),_0x374e1f=await _0x5b8b00[_0x5bec55(0x28e)]({'options':{..._0xce6f26,..._0x472ba1},'args':[_0x175b58,_0x1bc5d8||'.'],'tdx':_0x27aae6});process[_0x5bec55(0x33d)](_0x374e1f);}),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x33c))[a2_0x5087ce(0x303)](a2_0x5087ce(0x314))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1be),a2_0x5087ce(0x21f))[a2_0x5087ce(0x212)](a2_0x5087ce(0x343),a2_0x5087ce(0x1f4))[a2_0x5087ce(0x212)](a2_0x5087ce(0x201),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x5bc1a5,_0x1e5856)=>{const _0x255fd8=a2_0x5087ce,_0x6172dc=new WorkflowPushCommand(),_0x351024=program[_0x255fd8(0x313)](),_0x5e188f=await createTDXInstance(_0x351024),_0x42bc24=await _0x6172dc[_0x255fd8(0x28e)]({'options':{..._0x351024,..._0x1e5856},'args':_0x5bc1a5?[_0x5bc1a5]:[],'tdx':_0x5e188f});process[_0x255fd8(0x33d)](_0x42bc24);}),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x37a))[a2_0x5087ce(0x303)](a2_0x5087ce(0x265))[a2_0x5087ce(0x2ba)](async(_0x59e062,_0x581b04)=>{const _0x22b8f2=a2_0x5087ce,_0x249c2e=new WorkflowDeleteCommand(),_0x383770=program['opts'](),_0x816029=await createTDXInstance(_0x383770),_0x41873f=await _0x249c2e[_0x22b8f2(0x28e)]({'options':{..._0x383770,..._0x581b04},'args':[_0x59e062],'tdx':_0x816029});process[_0x22b8f2(0x33d)](_0x41873f);});const jobCmd=program['command'](a2_0x5087ce(0x294))[a2_0x5087ce(0x303)]('Job\x20management\x20commands'),jobListAction=async _0x455411=>{const _0x2eb0fb=a2_0x5087ce,_0x1d6348=new JobListCommand(),_0x532b72=program[_0x2eb0fb(0x313)](),_0x48ac61=await createTDXInstance(_0x532b72),_0x2c579c=await _0x1d6348[_0x2eb0fb(0x28e)]({'options':{..._0x532b72,..._0x455411},'args':[],'tdx':_0x48ac61});process['exit'](_0x2c579c);};jobCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x263))[a2_0x5087ce(0x303)](a2_0x5087ce(0x20d))['option']('--status\x20<status>',a2_0x5087ce(0x2a9))['action'](jobListAction),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x29b),{'hidden':!![]})[a2_0x5087ce(0x303)](a2_0x5087ce(0x214))[a2_0x5087ce(0x212)](a2_0x5087ce(0x28d),a2_0x5087ce(0x2a9))['action'](jobListAction),jobCmd['command'](a2_0x5087ce(0x2ea))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2d6))[a2_0x5087ce(0x2ba)](async(_0x3cf9b8,_0x437f40)=>{const _0x464c5c=a2_0x5087ce,_0xf594dc=new JobShowCommand(),_0x38aa1d=program[_0x464c5c(0x313)](),_0x260ae9=await createTDXInstance(_0x38aa1d),_0xd00bc=await _0xf594dc[_0x464c5c(0x28e)]({'options':{..._0x38aa1d,..._0x437f40},'args':[_0x3cf9b8],'tdx':_0x260ae9});process[_0x464c5c(0x33d)](_0xd00bc);}),jobCmd[a2_0x5087ce(0x202)]('kill\x20<job-id>')['description']('Kill\x20a\x20job')[a2_0x5087ce(0x2ba)](async(_0xf47089,_0x354d2c)=>{const _0x35d745=a2_0x5087ce,_0x56ecac=new JobKillCommand(),_0x227240=program[_0x35d745(0x313)](),_0xb64ea7=await createTDXInstance(_0x227240),_0x641578=await _0x56ecac['run']({'options':{..._0x227240,..._0x354d2c},'args':[_0xf47089],'tdx':_0xb64ea7});process[_0x35d745(0x33d)](_0x641578);}),jobCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x235))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2c3))['option'](a2_0x5087ce(0x22d),a2_0x5087ce(0x349),a2_0x5087ce(0x366))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2c0),'Read\x20query\x20from\x20file')[a2_0x5087ce(0x212)](a2_0x5087ce(0x309),a2_0x5087ce(0x354),a2_0x5087ce(0x25f))[a2_0x5087ce(0x2ba)](async(_0x3ef667,_0x352d5c)=>{const _0xc760a0=a2_0x5087ce,_0x3927e9=new JobSubmitCommand(),_0x444478=program[_0xc760a0(0x313)](),_0x5e1a7e=await createTDXInstance(_0x444478),_0x2adc84=await _0x3927e9['run']({'options':{..._0x444478,..._0x352d5c},'args':_0x3ef667?[_0x3ef667]:[],'tdx':_0x5e1a7e});process[_0xc760a0(0x33d)](_0x2adc84);}),jobCmd[a2_0x5087ce(0x202)]('result\x20<job-id>')['description'](a2_0x5087ce(0x2bc))[a2_0x5087ce(0x2ba)](async(_0x241e54,_0x4fab00)=>{const _0x33bc91=a2_0x5087ce,_0x45f8fc=new JobResultCommand(),_0x3fd864=program[_0x33bc91(0x313)](),_0x48aac4=await createTDXInstance(_0x3fd864),_0x502822=await _0x45f8fc[_0x33bc91(0x28e)]({'options':{..._0x3fd864,..._0x4fab00},'args':[_0x241e54],'tdx':_0x48aac4});process[_0x33bc91(0x33d)](_0x502822);});const llmCmd=program['command']('llm')[a2_0x5087ce(0x303)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x27d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x304))[a2_0x5087ce(0x2ba)](async(_0x229f0a,_0x2f2305)=>{const _0x113042=a2_0x5087ce,_0x2f4425=new LLMUseCommand(),_0xc0891e=program[_0x113042(0x313)](),_0x259f1c=await createTDXInstance(_0xc0891e),_0x323080=await _0x2f4425['run']({'options':{..._0xc0891e,..._0x2f2305},'args':[_0x229f0a],'tdx':_0x259f1c});process[_0x113042(0x33d)](_0x323080);}),llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x271))[a2_0x5087ce(0x303)](a2_0x5087ce(0x378))[a2_0x5087ce(0x2ba)](async _0x2d44b7=>{const _0xedcca5=a2_0x5087ce,_0x509994=new LLMModelsCommand(),_0x14adfb=program[_0xedcca5(0x313)](),_0x426148=await createTDXInstance(_0x14adfb),_0x4f1e7a=await _0x509994[_0xedcca5(0x28e)]({'options':{..._0x14adfb,..._0x2d44b7},'args':[],'tdx':_0x426148});process[_0xedcca5(0x33d)](_0x4f1e7a);});const projectCmd=llmCmd['command']('project')[a2_0x5087ce(0x303)](a2_0x5087ce(0x2cf)),llmProjectListAction=async(_0x5e7b67,_0x42dec2)=>{const _0x520c88=a2_0x5087ce,_0x1d6353=new LLMProjectsCommand(),_0xe6399e=program[_0x520c88(0x313)](),_0x36cc41=await createTDXInstance(_0xe6399e),_0x419ab7=await _0x1d6353[_0x520c88(0x28e)]({'options':{..._0xe6399e,..._0x42dec2},'args':_0x5e7b67?[_0x5e7b67]:[],'tdx':_0x36cc41});process['exit'](_0x419ab7);};projectCmd['command'](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5087ce(0x2ba)](llmProjectListAction),llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x25a))['description'](a2_0x5087ce(0x315))[a2_0x5087ce(0x2ba)](llmProjectListAction),projectCmd[a2_0x5087ce(0x202)]('create\x20<name>')[a2_0x5087ce(0x303)](a2_0x5087ce(0x1f1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x358),'Project\x20description')[a2_0x5087ce(0x2ba)](async(_0x4753f4,_0x392c4c)=>{const _0x2003bf=a2_0x5087ce,_0x3ed1ab=new LLMProjectCreateCommand(),_0x1badcb=program[_0x2003bf(0x313)](),_0x3902d=await createTDXInstance(_0x1badcb),_0x8d9a00=await _0x3ed1ab['run']({'options':{..._0x1badcb,..._0x392c4c},'args':[_0x4753f4],'tdx':_0x3902d});process['exit'](_0x8d9a00);}),projectCmd['command']('delete\x20<name>')['description'](a2_0x5087ce(0x2d0))[a2_0x5087ce(0x2ba)](async(_0x1a2d5a,_0x4345c9)=>{const _0x330760=a2_0x5087ce,_0x222e9c=new LLMProjectDeleteCommand(),_0x3a7533=program['opts'](),_0x291006=await createTDXInstance(_0x3a7533),_0x6d3f49=await _0x222e9c[_0x330760(0x28e)]({'options':{..._0x3a7533,..._0x4345c9},'args':[_0x1a2d5a],'tdx':_0x291006});process[_0x330760(0x33d)](_0x6d3f49);}),projectCmd[a2_0x5087ce(0x202)]('backup\x20<name>')['description'](a2_0x5087ce(0x346))[a2_0x5087ce(0x212)](a2_0x5087ce(0x386),a2_0x5087ce(0x1aa))[a2_0x5087ce(0x212)](a2_0x5087ce(0x253),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x5087ce(0x2ba)](async(_0x2c4bfd,_0x406410)=>{const _0x8ac7ee=a2_0x5087ce,_0xd235f7=new LLMProjectBackupCommand(),_0xe20a20=program['opts'](),_0x2fd700=await createTDXInstance(_0xe20a20),_0x5c8c1d=await _0xd235f7[_0x8ac7ee(0x28e)]({'options':{..._0xe20a20,..._0x406410},'args':[_0x2c4bfd],'tdx':_0x2fd700});process[_0x8ac7ee(0x33d)](_0x5c8c1d);}),projectCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1ab))[a2_0x5087ce(0x303)](a2_0x5087ce(0x207))[a2_0x5087ce(0x212)](a2_0x5087ce(0x29f),a2_0x5087ce(0x211))[a2_0x5087ce(0x212)](a2_0x5087ce(0x253),a2_0x5087ce(0x2ae))['action'](async(_0x2f0aae,_0x37c1a3)=>{const _0x3ba14c=a2_0x5087ce,_0x38fde2=new LLMProjectRestoreCommand(),_0x32c877=program[_0x3ba14c(0x313)](),_0xfb57b5=await createTDXInstance(_0x32c877),_0x52ca2f=await _0x38fde2[_0x3ba14c(0x28e)]({'options':{..._0x32c877,..._0x37c1a3},'args':[_0x2f0aae],'tdx':_0xfb57b5});process['exit'](_0x52ca2f);});const agentCmd=llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x275))[a2_0x5087ce(0x303)]('LLM\x20agent\x20management'),llmAgentListAction=async(_0x461bbc,_0x3b306e)=>{const _0x30300d=a2_0x5087ce,_0x7389e7=new LLMAgentsCommand(),_0x4655b2=program[_0x30300d(0x313)](),_0x359d8e=await createTDXInstance(_0x4655b2),_0x3454cd=await _0x7389e7[_0x30300d(0x28e)]({'options':{..._0x4655b2,..._0x3b306e},'args':_0x461bbc?[_0x461bbc]:[],'tdx':_0x359d8e});process['exit'](_0x3454cd);};agentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)')['action'](llmAgentListAction),llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x249))[a2_0x5087ce(0x303)](a2_0x5087ce(0x325))[a2_0x5087ce(0x2ba)](llmAgentListAction),agentCmd['command'](a2_0x5087ce(0x30b))[a2_0x5087ce(0x303)]('Show\x20agent\x20details')[a2_0x5087ce(0x2ba)](async(_0x5ed6cd,_0x1c505e)=>{const _0x4325c4=a2_0x5087ce,_0x126b7d=new LLMAgentShowCommand(),_0x3925cb=program[_0x4325c4(0x313)](),_0x492a3f=await createTDXInstance(_0x3925cb),_0xf530f8=await _0x126b7d[_0x4325c4(0x28e)]({'options':{..._0x3925cb,..._0x1c505e},'args':[_0x5ed6cd],'tdx':_0x492a3f});process['exit'](_0xf530f8);}),agentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1ce))[a2_0x5087ce(0x303)](a2_0x5087ce(0x248))['option'](a2_0x5087ce(0x2a2),a2_0x5087ce(0x2b5))[a2_0x5087ce(0x212)](a2_0x5087ce(0x270),a2_0x5087ce(0x24d),a2_0x5087ce(0x30c))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1f0),a2_0x5087ce(0x34f))['option'](a2_0x5087ce(0x27c),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')['option'](a2_0x5087ce(0x2b8),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x5087ce(0x2b2))['action'](async(_0x54768,_0x1b800b)=>{const _0x277696=a2_0x5087ce,_0x46777e=new LLMAgentCreateCommand(),_0xf058cb=program[_0x277696(0x313)](),_0x1f2160=await createTDXInstance(_0xf058cb),_0x33a1ce=await _0x46777e['run']({'options':{..._0xf058cb,..._0x1b800b},'args':[_0x54768],'tdx':_0x1f2160});process['exit'](_0x33a1ce);}),agentCmd[a2_0x5087ce(0x202)]('update\x20<agent-name>')[a2_0x5087ce(0x303)](a2_0x5087ce(0x321))[a2_0x5087ce(0x212)](a2_0x5087ce(0x204),a2_0x5087ce(0x320))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2df),a2_0x5087ce(0x1c3))['option'](a2_0x5087ce(0x358),a2_0x5087ce(0x2a3))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1f0),'Starter\x20message')[a2_0x5087ce(0x2ba)](async(_0x2a4d07,_0x53a6d8)=>{const _0x5073ad=a2_0x5087ce,_0x34c6de=new LLMAgentUpdateCommand(),_0x5e5a7b=program[_0x5073ad(0x313)](),_0x19fe3d=await createTDXInstance(_0x5e5a7b),_0x28354a=await _0x34c6de['run']({'options':{..._0x5e5a7b,..._0x53a6d8},'args':[_0x2a4d07],'tdx':_0x19fe3d});process['exit'](_0x28354a);}),agentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x232))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2f8))[a2_0x5087ce(0x2ba)](async(_0x35b8f0,_0x12bf25)=>{const _0x42cd91=a2_0x5087ce,_0x33f04f=new LLMAgentDeleteCommand(),_0x2375ff=program['opts'](),_0x28f08c=await createTDXInstance(_0x2375ff),_0x4b7bf4=await _0x33f04f[_0x42cd91(0x28e)]({'options':{..._0x2375ff,..._0x12bf25},'args':[_0x35b8f0],'tdx':_0x28f08c});process[_0x42cd91(0x33d)](_0x4b7bf4);}),llmCmd['command'](a2_0x5087ce(0x323))[a2_0x5087ce(0x303)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e7),a2_0x5087ce(0x2d1))[a2_0x5087ce(0x2ba)](async(_0x300fab,_0x213e6c)=>{const _0x24ebfd=a2_0x5087ce,_0x3d9c48=new LLMHistoryCommand(),_0x23fd77=program[_0x24ebfd(0x313)](),_0x45ff4f=await createTDXInstance(_0x23fd77),_0x35d6ab=await _0x3d9c48[_0x24ebfd(0x28e)]({'options':{..._0x23fd77,..._0x213e6c},'args':_0x300fab?[_0x300fab]:[],'tdx':_0x45ff4f});process[_0x24ebfd(0x33d)](_0x35d6ab);}),llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2fe))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1f9))['option'](a2_0x5087ce(0x2fa),a2_0x5087ce(0x36c),a2_0x5087ce(0x215))[a2_0x5087ce(0x212)](a2_0x5087ce(0x19f),a2_0x5087ce(0x36b))['option'](a2_0x5087ce(0x1df),a2_0x5087ce(0x1ae))[a2_0x5087ce(0x2ba)](async _0xdd9b7=>{const _0x466fff=a2_0x5087ce,_0xe923de=new LLMProxyCommand(),_0xcb44ca=program[_0x466fff(0x313)](),_0x612783=await createTDXInstance(_0xcb44ca),_0xbc4141={..._0xdd9b7,'port':_0xdd9b7[_0x466fff(0x268)]?parseInt(_0xdd9b7['port'],0xa):undefined},_0x699a37=await _0xe923de[_0x466fff(0x28e)]({'options':{..._0xcb44ca,..._0xbc4141},'args':[],'tdx':_0x612783});process[_0x466fff(0x33d)](_0x699a37);}),program['command']('claude\x20[args...]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x1ad))[a2_0x5087ce(0x212)](a2_0x5087ce(0x270),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x5087ce(0x2f4))[a2_0x5087ce(0x212)]('--no-proxy',a2_0x5087ce(0x2e5))['allowUnknownOption']()[a2_0x5087ce(0x28a)](!![])[a2_0x5087ce(0x32d)](a2_0x5087ce(0x1a3),a2_0x5087ce(0x208))[a2_0x5087ce(0x2ba)](async(_0x4646d4,_0x29f156)=>{const _0x371d9d=a2_0x5087ce,_0x2bce7e=program[_0x371d9d(0x313)](),_0x3f1394=Array[_0x371d9d(0x319)](_0x4646d4)?_0x4646d4:[];if(_0x3f1394[0x0]===_0x371d9d(0x25b)){const _0x4b3d67=new ClaudeStatuslineCommand(),_0x455aad=await _0x4b3d67['run']({'options':{..._0x2bce7e,..._0x29f156},'args':_0x3f1394['slice'](0x1),'tdx':null});process[_0x371d9d(0x33d)](_0x455aad);}if(_0x3f1394[0x0]===_0x371d9d(0x377)){const _0x5004d6=new ClaudeUsageCommand(),_0x4a1153=await _0x5004d6[_0x371d9d(0x28e)]({'options':{..._0x2bce7e,..._0x29f156},'args':_0x3f1394['slice'](0x1),'tdx':null});process[_0x371d9d(0x33d)](_0x4a1153);}const _0x2d339b=new ClaudeCommand(),_0x461996=await createTDXInstance(_0x2bce7e),_0x1d928d=await _0x2d339b['run']({'options':{..._0x2bce7e,..._0x29f156},'args':_0x3f1394,'tdx':_0x461996});process[_0x371d9d(0x33d)](_0x1d928d);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x34d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x324))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2d9),a2_0x5087ce(0x257))[a2_0x5087ce(0x2ba)](async _0x250c0b=>{const _0x3e8117=a2_0x5087ce,_0x1a7282=new ContextCommand(),_0x3bb477=program[_0x3e8117(0x313)](),_0x260d8a=await _0x1a7282['run']({'options':{..._0x3bb477,..._0x250c0b},'args':[],'tdx':null});process[_0x3e8117(0x33d)](_0x260d8a);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x385))[a2_0x5087ce(0x303)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2d9),a2_0x5087ce(0x257))['action'](async(_0x41f5ed,_0x35bf85,_0x17a49f)=>{const _0x4b3b7e=a2_0x5087ce,_0x4e63b9=new UseCommand(),_0x5922ad=program[_0x4b3b7e(0x313)](),_0x25fe96=[];if(_0x41f5ed)_0x25fe96[_0x4b3b7e(0x1b3)](_0x41f5ed);if(_0x35bf85)_0x25fe96[_0x4b3b7e(0x1b3)](_0x35bf85);const _0x333e3a=await _0x4e63b9['run']({'options':{..._0x5922ad,..._0x17a49f},'args':_0x25fe96,'tdx':null});process[_0x4b3b7e(0x33d)](_0x333e3a);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x359))['description']('Interactive\x20chat\x20selector')[a2_0x5087ce(0x212)]('--last','Show\x20the\x20most\x20recent\x20chat')[a2_0x5087ce(0x2ba)](async _0xde8c4a=>{const _0xad1281=a2_0x5087ce,_0x36561b=new ChatsCommand(),_0x1c95d1=program['opts'](),_0x3b8315=await createTDXInstance(_0x1c95d1),_0x5be98d=await _0x36561b[_0xad1281(0x28e)]({'options':{..._0x1c95d1,..._0xde8c4a},'args':[],'tdx':_0x3b8315});process[_0xad1281(0x33d)](_0x5be98d);});const authCmd=program['command']('auth')[a2_0x5087ce(0x303)](a2_0x5087ce(0x1a2));async function runAuthStatusCommand(_0x3199a7){const _0x1c5a27=a2_0x5087ce,_0x58824d=new AuthStatusCommand(),_0x20cc48=program[_0x1c5a27(0x313)](),_0x379bfc=await createTDXInstance(_0x20cc48),_0x3677dc=await _0x58824d[_0x1c5a27(0x28e)]({'options':{..._0x20cc48,..._0x3199a7},'args':[],'tdx':_0x379bfc});process[_0x1c5a27(0x33d)](_0x3677dc);}authCmd[a2_0x5087ce(0x2ba)](runAuthStatusCommand),authCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x384))[a2_0x5087ce(0x303)](a2_0x5087ce(0x224))[a2_0x5087ce(0x2ba)](runAuthStatusCommand),authCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x329))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2f0))['addHelpText'](a2_0x5087ce(0x1a3),a2_0x5087ce(0x350))['action'](async _0x3c03cd=>{const _0x2c9220=a2_0x5087ce,_0x308ab0=new AuthSetupCommand(),_0x23da60=program[_0x2c9220(0x313)](),_0x2c7b77=await createTDXInstance(_0x23da60),_0x457a7c=await _0x308ab0[_0x2c9220(0x28e)]({'options':{..._0x23da60,..._0x3c03cd},'args':[],'tdx':_0x2c7b77});process[_0x2c9220(0x33d)](_0x457a7c);}),authCmd['command'](a2_0x5087ce(0x31d))[a2_0x5087ce(0x303)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x5087ce(0x1a3),a2_0x5087ce(0x2b9))[a2_0x5087ce(0x2ba)](async _0x50768a=>{const _0x1bbf95=a2_0x5087ce,_0xd5188d=new AuthClearCommand(),_0x44e187=program['opts'](),_0x50b31f=await _0xd5188d[_0x1bbf95(0x28e)]({'options':{..._0x44e187,..._0x50768a},'args':[],'tdx':null});process[_0x1bbf95(0x33d)](_0x50b31f);}),program[a2_0x5087ce(0x202)]('profiles')[a2_0x5087ce(0x303)](a2_0x5087ce(0x35b))[a2_0x5087ce(0x2ba)](async _0xd2f3c4=>{const _0x19c9f2=new ProfilesCommand(),_0x4d1510=program['opts'](),_0x3a6f3f=await _0x19c9f2['run']({'options':{..._0x4d1510,..._0xd2f3c4},'args':[],'tdx':null});process['exit'](_0x3a6f3f);});const engageCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x281))[a2_0x5087ce(0x303)](a2_0x5087ce(0x298)),createEngageAction=_0x49c1f9=>{return async(_0x75e99,_0x1a3262)=>{const _0x1d9510=a2_0x5269,_0xe064a6=new _0x49c1f9(),_0x50de89=program[_0x1d9510(0x313)](),_0x57a907=await createTDXInstance(_0x50de89),_0x555399=await _0xe064a6[_0x1d9510(0x28e)]({'options':{..._0x50de89,..._0x1a3262},'args':[_0x75e99],'tdx':_0x57a907});process[_0x1d9510(0x33d)](_0x555399);};},createEngageNoArgAction=_0x5bd23a=>{return async _0x4d54f0=>{const _0x1e2ed9=a2_0x5269,_0x132a36=new _0x5bd23a(),_0xd7ec73=program[_0x1e2ed9(0x313)](),_0x289052=await createTDXInstance(_0xd7ec73),_0x5f5a85=await _0x132a36['run']({'options':{..._0xd7ec73,..._0x4d54f0},'args':[],'tdx':_0x289052});process[_0x1e2ed9(0x33d)](_0x5f5a85);};},campaignCmd=engageCmd['command'](a2_0x5087ce(0x27b))[a2_0x5087ce(0x303)]('Campaign\x20management'),campaignListAction=async(_0x525242,_0x4a793b)=>{const _0xe23a29=a2_0x5087ce,_0x3e795e=new EngageCampaignsCommand(),_0xd2ae90=program[_0xe23a29(0x313)](),_0x60a5a3=await createTDXInstance(_0xd2ae90),_0x2439e8=await _0x3e795e[_0xe23a29(0x28e)]({'options':{..._0xd2ae90,..._0x4a793b},'args':_0x525242?[_0x525242]:[],'tdx':_0x60a5a3});process[_0xe23a29(0x33d)](_0x2439e8);};campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5087ce(0x212)]('--type\x20<type>',a2_0x5087ce(0x2e8))[a2_0x5087ce(0x212)](a2_0x5087ce(0x28d),a2_0x5087ce(0x1b0))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),'Workspace\x20name')[a2_0x5087ce(0x2ba)](campaignListAction),engageCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x374))[a2_0x5087ce(0x303)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')['option']('--type\x20<type>',a2_0x5087ce(0x2e8))['option'](a2_0x5087ce(0x28d),a2_0x5087ce(0x1b0))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x5087ce(0x2ba)](campaignListAction),campaignCmd['command'](a2_0x5087ce(0x306))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2b3))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x335),a2_0x5087ce(0x1ca))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1d7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2db))[a2_0x5087ce(0x254)](a2_0x5087ce(0x1be),a2_0x5087ce(0x213))[a2_0x5087ce(0x254)]('--type\x20<type>',a2_0x5087ce(0x1c7))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x26e))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1a6),a2_0x5087ce(0x1e1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d6),a2_0x5087ce(0x22b))[a2_0x5087ce(0x212)]('--email-sender-id\x20<id>',a2_0x5087ce(0x24f))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1bc),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x5087ce(0x200),a2_0x5087ce(0x194))['option'](a2_0x5087ce(0x389),a2_0x5087ce(0x20c))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x29d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2d2))['option'](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))['option'](a2_0x5087ce(0x1be),'New\x20campaign\x20name')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1a6),a2_0x5087ce(0x1e1))[a2_0x5087ce(0x212)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option'](a2_0x5087ce(0x2f1),a2_0x5087ce(0x24f))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1bc),a2_0x5087ce(0x243))['option'](a2_0x5087ce(0x200),a2_0x5087ce(0x194))[a2_0x5087ce(0x212)](a2_0x5087ce(0x389),a2_0x5087ce(0x20c))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x35d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x31f))[a2_0x5087ce(0x212)]('--workspace\x20<name>',a2_0x5087ce(0x1b1))['option']('--yes',a2_0x5087ce(0x351))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x5087ce(0x303)]('Launch\x20a\x20campaign')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x5087ce(0x289))[a2_0x5087ce(0x303)](a2_0x5087ce(0x219))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x331))[a2_0x5087ce(0x303)]('Resume\x20a\x20paused\x20campaign')['option'](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command']('duplicate\x20<name-or-id>')[a2_0x5087ce(0x303)]('Duplicate\x20a\x20campaign')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),'Workspace\x20name')[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24c))['description'](a2_0x5087ce(0x1d8)),templateListAction=async(_0x3cf046,_0x2ae9b0)=>{const _0x2fc2f3=a2_0x5087ce,_0x348c22=new EngageTemplatesCommand(),_0x263f6b=program['opts'](),_0x3c12ca=await createTDXInstance(_0x263f6b),_0x678c26=await _0x348c22['run']({'options':{..._0x263f6b,..._0x2ae9b0},'args':_0x3cf046?[_0x3cf046]:[],'tdx':_0x3c12ca});process[_0x2fc2f3(0x33d)](_0x678c26);};templateCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)](a2_0x5087ce(0x19c))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),'Workspace\x20name')[a2_0x5087ce(0x2ba)](templateListAction),engageCmd['command'](a2_0x5087ce(0x199))['description']('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x5087ce(0x212)]('--workspace\x20<name>',a2_0x5087ce(0x1b1))[a2_0x5087ce(0x2ba)](templateListAction),templateCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x306))['description']('Show\x20email\x20template\x20details')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x335),a2_0x5087ce(0x1ca))[a2_0x5087ce(0x2ba)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0x5087ce(0x1d7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x217))[a2_0x5087ce(0x254)](a2_0x5087ce(0x1be),a2_0x5087ce(0x27e))[a2_0x5087ce(0x254)](a2_0x5087ce(0x2a8),a2_0x5087ce(0x246))[a2_0x5087ce(0x254)](a2_0x5087ce(0x2b1),'HTML\x20template\x20content')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),'Workspace\x20name\x20(required)')[a2_0x5087ce(0x212)]('--plaintext\x20<text>','Plaintext\x20template\x20content')[a2_0x5087ce(0x212)]('--editor-type\x20<type>','Editor\x20type')[a2_0x5087ce(0x2ba)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x29d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1d4))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1be),'New\x20template\x20name')[a2_0x5087ce(0x212)]('--subject\x20<subject>',a2_0x5087ce(0x246))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2b1),a2_0x5087ce(0x22a))[a2_0x5087ce(0x212)](a2_0x5087ce(0x35f),a2_0x5087ce(0x30f))[a2_0x5087ce(0x2ba)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x5087ce(0x35d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2d3))['option'](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x212)]('--yes','Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x35c))[a2_0x5087ce(0x303)]('Workspace\x20management'),workspaceListAction=async(_0x4348c0,_0x4f102a)=>{const _0x516d7b=a2_0x5087ce,_0x3eaefd=new EngageWorkspacesCommand(),_0x2c37f3=program[_0x516d7b(0x313)](),_0x2e03a1=await createTDXInstance(_0x2c37f3),_0x11c5ea=await _0x3eaefd['run']({'options':{..._0x2c37f3,..._0x4f102a},'args':_0x4348c0?[_0x4348c0]:[],'tdx':_0x2e03a1});process[_0x516d7b(0x33d)](_0x11c5ea);};workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')['action'](workspaceListAction),engageCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1b6))[a2_0x5087ce(0x303)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x5087ce(0x2ba)](workspaceListAction),workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x306))[a2_0x5087ce(0x303)](a2_0x5087ce(0x318))['option']('--full',a2_0x5087ce(0x1ca))[a2_0x5087ce(0x2ba)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1d7))['description'](a2_0x5087ce(0x242))[a2_0x5087ce(0x254)](a2_0x5087ce(0x1be),'Workspace\x20name')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1a6),a2_0x5087ce(0x26f))[a2_0x5087ce(0x2ba)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x29d))['description'](a2_0x5087ce(0x34e))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1be),a2_0x5087ce(0x222))[a2_0x5087ce(0x212)]('--description\x20<desc>',a2_0x5087ce(0x26f))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x35d))[a2_0x5087ce(0x303)]('Delete\x20a\x20workspace')['option']('--yes',a2_0x5087ce(0x351))[a2_0x5087ce(0x2ba)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x5087ce(0x1f6))[a2_0x5087ce(0x303)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x5087ce(0x2ba)](createEngageAction(EngageWorkspaceUseCommand));export{program};export function runCLI(){const _0x196fed=a2_0x5087ce;program['parse'](process[_0x196fed(0x23d)]);!process[_0x196fed(0x23d)][_0x196fed(0x2eb)](0x2)[_0x196fed(0x387)]&&program[_0x196fed(0x1b9)]();const _0x472942=packageJson[_0x196fed(0x360)];process[_0x196fed(0x2bf)][_0x196fed(0x236)]&&process[_0x196fed(0x23d)][_0x196fed(0x387)]>0x2&&!_0x472942[_0x196fed(0x2aa)](_0x196fed(0x1dc))&&checkForUpdate(_0x472942)['then'](_0xabc96a=>{_0xabc96a&&displayUpdateNotification(_0xabc96a);})[_0x196fed(0x2e1)](()=>{});}