@treasuredata/tdx 0.7.0 → 0.7.1

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 (99) 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.js +1 -1
  29. package/dist/commands/profiles-command.js +1 -1
  30. package/dist/commands/query-command.js +1 -1
  31. package/dist/commands/segment-command.js +1 -1
  32. package/dist/commands/segment-create-command.js +1 -1
  33. package/dist/commands/segment-fields-command.js +1 -1
  34. package/dist/commands/segment-pwd-command.js +1 -1
  35. package/dist/commands/segment-update-command.js +1 -1
  36. package/dist/commands/segment-use-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/tables.js +1 -1
  40. package/dist/commands/use-command.js +1 -1
  41. package/dist/commands/workflow-command.js +1 -1
  42. package/dist/core/auth.js +1 -1
  43. package/dist/core/config.js +1 -1
  44. package/dist/core/credential-cache.js +1 -1
  45. package/dist/core/global-context.js +1 -1
  46. package/dist/core/keychain.js +1 -1
  47. package/dist/core/profile.js +1 -1
  48. package/dist/core/project-config.js +1 -1
  49. package/dist/core/session.js +1 -1
  50. package/dist/index.js +1 -1
  51. package/dist/proxy/anthropic-adapter.js +1 -1
  52. package/dist/proxy/claude-usage-tracker.js +1 -1
  53. package/dist/proxy/context-signature.js +1 -1
  54. package/dist/proxy/conversation-utils.js +1 -1
  55. package/dist/proxy/server.js +1 -1
  56. package/dist/proxy/session-cache.js +1 -1
  57. package/dist/sdk/api.js +1 -1
  58. package/dist/sdk/engage.js +1 -1
  59. package/dist/sdk/errors.js +1 -1
  60. package/dist/sdk/index.js +1 -1
  61. package/dist/sdk/job.js +1 -1
  62. package/dist/sdk/llm.js +1 -1
  63. package/dist/sdk/query.js +1 -1
  64. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  65. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  66. package/dist/sdk/segment.js +1 -1
  67. package/dist/sdk/workflow.js +1 -1
  68. package/dist/types/endpoints.js +1 -1
  69. package/dist/types/index.js +1 -1
  70. package/dist/utils/agent-ref-parser.js +1 -1
  71. package/dist/utils/chat-cache.js +1 -1
  72. package/dist/utils/colors.js +1 -1
  73. package/dist/utils/command-output.js +1 -1
  74. package/dist/utils/constants.js +1 -1
  75. package/dist/utils/diff.js +1 -1
  76. package/dist/utils/fields-display.js +1 -1
  77. package/dist/utils/file-permissions.js +1 -1
  78. package/dist/utils/format-detector.js +1 -1
  79. package/dist/utils/formatters.js +1 -1
  80. package/dist/utils/json-loader.js +1 -1
  81. package/dist/utils/llm-backup-utils.js +1 -1
  82. package/dist/utils/model-aliases.js +1 -1
  83. package/dist/utils/model-factors.js +1 -1
  84. package/dist/utils/option-validation.js +1 -1
  85. package/dist/utils/port.js +1 -1
  86. package/dist/utils/process.js +1 -1
  87. package/dist/utils/prompt.js +1 -1
  88. package/dist/utils/segment-path-parser.js +1 -1
  89. package/dist/utils/segment-ref-parser.js +1 -1
  90. package/dist/utils/spinner.js +1 -1
  91. package/dist/utils/sql-parser.js +1 -1
  92. package/dist/utils/sse-parser.js +1 -1
  93. package/dist/utils/string-utils.js +1 -1
  94. package/dist/utils/table-ref-parser.js +1 -1
  95. package/dist/utils/tdx-logger.js +1 -1
  96. package/dist/utils/tree-formatter.js +1 -1
  97. package/dist/utils/version-check.js +1 -1
  98. package/dist/utils/workflow-utils.js +1 -1
  99. 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 a0_0x332d(_0x2a2826,_0x1f9761){var _0x4f5501=a0_0x4f55();return a0_0x332d=function(_0x332ddd,_0x31474a){_0x332ddd=_0x332ddd-0x85;var _0x14a46e=_0x4f5501[_0x332ddd];return _0x14a46e;},a0_0x332d(_0x2a2826,_0x1f9761);}(function(_0x5f1acd,_0x5409cd){var _0x564b0f=a0_0x332d,_0x318009=_0x5f1acd();while(!![]){try{var _0x529ebb=-parseInt(_0x564b0f(0x89))/0x1+parseInt(_0x564b0f(0x8b))/0x2*(-parseInt(_0x564b0f(0x85))/0x3)+parseInt(_0x564b0f(0x87))/0x4+parseInt(_0x564b0f(0x8d))/0x5+parseInt(_0x564b0f(0x88))/0x6*(parseInt(_0x564b0f(0x8c))/0x7)+parseInt(_0x564b0f(0x86))/0x8+parseInt(_0x564b0f(0x8a))/0x9;if(_0x529ebb===_0x5409cd)break;else _0x318009['push'](_0x318009['shift']());}catch(_0x2731a0){_0x318009['push'](_0x318009['shift']());}}}(a0_0x4f55,0x1b27e));import{runCLI}from'./cli.js';function a0_0x4f55(){var _0xaf918=['319168icKqJy','387138eHdSMp','139919ekdysz','323649InOrSU','17362LVgKkg','7ZiNPjw','388295WsqiHH','75vvidBl','1681912HAQgDZ'];a0_0x4f55=function(){return _0xaf918;};return a0_0x4f55();}runCLI();
@@ -1,4 +1,4 @@
1
1
  {
2
- "gitRevision": "07c5228",
3
- "buildTime": "2025-12-05 07:03:38+0000"
2
+ "gitRevision": "9796383",
3
+ "buildTime": "2025-12-05 15:45:34+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
+ function a1_0xee3f(){const _0x1f2cc0=['36bksitO','cyan','101280GNhgmT','blue','Context','CDP','api','4qBoLsT','describe','activations','Data','yellow','profiles','217590dUPjGh','use','203cGMemq','workflow','table','90Kmtmij','llm','claude','magenta','208168wymysp','39776FezMif','2731993mqNiOy','564294YwQzAs','green','chats','4590BEnggM','query','database','parent-segment','auth'];a1_0xee3f=function(){return _0x1f2cc0;};return a1_0xee3f();}function a1_0x265a(_0x324313,_0x4fffef){const _0xee3f52=a1_0xee3f();return a1_0x265a=function(_0x265a1a,_0x38cb73){_0x265a1a=_0x265a1a-0xa4;let _0x5e05fc=_0xee3f52[_0x265a1a];return _0x5e05fc;},a1_0x265a(_0x324313,_0x4fffef);}const a1_0x41adc7=a1_0x265a;(function(_0x1d8aa6,_0x29797d){const _0x35b688=a1_0x265a,_0x5ea375=_0x1d8aa6();while(!![]){try{const _0x574531=-parseInt(_0x35b688(0xae))/0x1+parseInt(_0x35b688(0xbb))/0x2+-parseInt(_0x35b688(0xb1))/0x3*(-parseInt(_0x35b688(0xc0))/0x4)+-parseInt(_0x35b688(0xa5))/0x5*(parseInt(_0x35b688(0xb9))/0x6)+parseInt(_0x35b688(0xa7))/0x7*(parseInt(_0x35b688(0xaf))/0x8)+-parseInt(_0x35b688(0xaa))/0x9*(-parseInt(_0x35b688(0xb4))/0xa)+parseInt(_0x35b688(0xb0))/0xb;if(_0x574531===_0x29797d)break;else _0x5ea375['push'](_0x5ea375['shift']());}catch(_0x70966c){_0x5ea375['push'](_0x5ea375['shift']());}}}(a1_0xee3f,0x28acb));import a1_0x2d509e from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x41adc7(0xc3),'colorFn':a1_0x2d509e[a1_0x41adc7(0xbc)],'commands':[a1_0x41adc7(0xb6),a1_0x41adc7(0xa9),'show',a1_0x41adc7(0xc1),a1_0x41adc7(0xb5),'job',a1_0x41adc7(0xa8)]},{'name':a1_0x41adc7(0xbe),'colorFn':a1_0x2d509e[a1_0x41adc7(0xad)],'commands':['segment',a1_0x41adc7(0xb7),a1_0x41adc7(0xc2),'engage']},{'name':'AI','colorFn':a1_0x2d509e[a1_0x41adc7(0xba)],'commands':['chat',a1_0x41adc7(0xb3),a1_0x41adc7(0xab),a1_0x41adc7(0xac)]},{'name':a1_0x41adc7(0xbd),'colorFn':a1_0x2d509e[a1_0x41adc7(0xc4)],'commands':['context',a1_0x41adc7(0xa6),a1_0x41adc7(0xa4),a1_0x41adc7(0xb8)]},{'name':'Utilities','colorFn':a1_0x2d509e[a1_0x41adc7(0xb2)],'commands':[a1_0x41adc7(0xbf)]}];
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_0x5f47db=a2_0xa2b0;(function(_0x4217be,_0x4d2606){const _0x454779=a2_0xa2b0,_0x4649e6=_0x4217be();while(!![]){try{const _0x1277bb=parseInt(_0x454779(0x1a0))/0x1+-parseInt(_0x454779(0x2ea))/0x2+parseInt(_0x454779(0x2bd))/0x3*(-parseInt(_0x454779(0x21b))/0x4)+parseInt(_0x454779(0x1df))/0x5+-parseInt(_0x454779(0x1ea))/0x6*(-parseInt(_0x454779(0x2e5))/0x7)+parseInt(_0x454779(0x21f))/0x8+parseInt(_0x454779(0x1f5))/0x9;if(_0x1277bb===_0x4d2606)break;else _0x4649e6['push'](_0x4649e6['shift']());}catch(_0x39492a){_0x4649e6['push'](_0x4649e6['shift']());}}}(a2_0x2b6f,0x209cf));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';function a2_0x2b6f(){const _0xff7d93=['Show\x20segment\x20schema\x20(column\x20types)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--last','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','filter','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Force\x20retry\x20even\x20if\x20not\x20failed','Preview\x20operation\x20without\x20executing','--jsonl','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','profiles','Show\x20the\x20most\x20recent\x20chat','--timeout\x20<seconds>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','result\x20<job-id>','delete\x20<name-or-id>','Delete\x20an\x20agent','Job\x20management\x20commands','--behaviors-file\x20<file>','-v,\x20--verbose','Workspace\x20name\x20(required)','fields\x20[name]','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Workflow\x20session\x20management','commands','delete\x20<agent-name>','213eNhgDp','databases\x20[pattern]','--name\x20<new_name>','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','Submit\x20a\x20job','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Add\x20behaviors\x20as\x20JSON\x20string','argumentTerm','length','--behavior\x20[name]','--data\x20<data>','Maximum\x20recursion\x20depth\x20(default:\x2010)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','desc','delete\x20<project-name-or-id>','Timezone\x20(e.g.,\x20America/Los_Angeles)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','opts','-u,\x20--use','us01','_hidden','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Behaviors\x20as\x20JSON\x20string','Task\x20name\x20for\x20logs\x20action','attempt','--invisible','Workspace\x20management','optionDescription','list\x20[pattern]','subcommandTerm','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','agents\x20[pattern]','allowUnknownOption','--database\x20<name>','--reason\x20<text>','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','Duplicate\x20a\x20campaign','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','-r,\x20--recursive','jobs','-d,\x20--database\x20<name>','database','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','-p,\x20--profile\x20<name>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','information_schema','Editor\x20type','Usage:\x20','GET','use\x20<project-name>','description','Update\x20a\x20campaign','Create\x20a\x20new\x20campaign','trino','Output\x20folder\x20(default:\x20{project_name}.llm)','Starter\x20message','tdx\x20','includes','-d,\x20--database\x20<database>','List\x20all\x20available\x20profiles','DEBUG','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','1268375PpboZK','Clear\x20session\x20context','--folder\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','parents\x20[pattern]','--rule-file\x20<file>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--skip-validation','commandDescription','Output\x20file\x20path\x20(default:\x20<name>.yml)','Override\x20project\x20name','158322GpqpEH','--full','Project\x20description','padEnd','slice','run\x20[name]','update\x20<segment_name>','push','Limit\x20number\x20of\x20rows','Include\x20retried\x20attempts','backup\x20<name>','390843VPCPyy','\x20-\x20built\x20','CDP\x20segment\x20management\x20commands','replace','Alias\x20for\x20--database\x20(natural\x20language\x20style)','proxy','run\x20<workflow>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','kill','--to\x20<timestamp>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Trino\x20catalog\x20(default:\x20td)','profile','Customer\x20group\x20as\x20JSON\x20string','Email\x20template\x20management','--workspace\x20<name>','list','Output\x20file\x20path','--name\x20<name>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Attributes\x20from\x20JSON\x20file','option','Show\x20master\x20table\x20sample\x20data','--description\x20<desc>','LLM\x20agent\x20management','--name\x20<text>','job','--resume-from\x20<task>','flatMap','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','--attribute\x20[name]','--session\x20<id>','Make\x20segment\x20invisible\x20(default:\x20visible)','statusline','help','Customer\x20group\x20from\x20JSON\x20file','Include\x20retried\x20attempts\x20(for\x20list)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','3044oUlava','--email-sender-id\x20<id>','Workspace\x20description','Workspace\x20name','652056jfdeTx','Updated\x20timezone','json','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--in\x20<database>','list\x20[project]','forEach','Skip\x20confirmation\x20prompt','show\x20<folder_ref>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Delete\x20a\x20campaign','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Skip\x20population\x20counting','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--prompt\x20<text>','--tsv','-y,\x20--yes','jsonl','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','HTML\x20template\x20content','repeat','--limit\x20<rows>','Set\x20or\x20show\x20parent\x20segment\x20context','parse','--customer-group-file\x20<file>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','colorFn','Unknown\x20action:\x20','attempt:','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Plaintext\x20template\x20content','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','New\x20workspace\x20name','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Show\x20only\x20master\x20table\x20validation','campaigns\x20[pattern]','--trace','--from\x20<timestamp>','use\x20<path>','query\x20[sql]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Authentication\x20management','subcommandDescription','Options:','name','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','port','configureHelp','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Show\x20email\x20template\x20details','--behaviors\x20<json>','activations\x20<segment_name>','--schedule-option\x20<value>','after','Model\x20name\x20(default:\x20claude-4.5-sonnet)','join','log','Resume\x20from\x20specific\x20task','--html\x20<html>','isArray','--master','Read\x20query\x20from\x20file','\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','update\x20<agent-name>','create','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','context','utf-8','--new','../package.json','projects\x20[pattern]','Behaviors\x20from\x20JSON\x20file','--no-count-population','submit\x20[query]','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','-H,\x20--header\x20<header>','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','AI-native\x20CLI\x20for\x20Treasure\x20Data','Temperature\x20(0.0-2.0,\x20default:\x200.7)','noColor','Workflow\x20parameter\x20(repeatable)','--add-behaviors-file\x20<file>','Updated\x20description','Create\x20a\x20new\x20LLM\x20project','map','segments\x20[path]','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','kill\x20<job-id>','--add-behaviors\x20<json>','--starter-message\x20<text>','--include-retried','restore\x20<folder>','stderr','Parent\x20segment\x20description','command','Attempt\x20ID','show\x20[name]','update\x20<name>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','registeredArguments','describe\x20[table]','-X,\x20--method\x20<method>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--plaintext\x20<text>','--kind\x20<type>','trace','--limit\x20<n>','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','create\x20<segment_name>','-o,\x20--output\x20<folder>','--status\x20<status>','Request\x20body\x20as\x20JSON\x20string','Read\x20request\x20body\x20from\x20file','Email\x20sender\x20ID\x20for\x20delivery','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Add\x20attributes\x20as\x20JSON\x20string','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','status','Update\x20an\x20email\x20template','[attempt-id]','delete\x20<name>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','show\x20<agent-name>','parent_segment','Attributes\x20as\x20JSON\x20string',',\x20version\x20','--json-columns\x20<cols>','allowExcessArguments','--limit\x20<number>','buildTime','--timezone\x20<tz>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','argv','options','fields\x20[parent_name]','push\x20[file]','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Revision\x20name\x20(default:\x20timestamp)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','[action]','error','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','injectIntoOptions','Agent\x20description','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Master\x20database\x20name','--yes','--parent-segment\x20<name>','catch','\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','Update\x20an\x20existing\x20agent','414gaZtFj','format','Updated\x20schedule\x20option','Show\x20current\x20segment/folder\x20context','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','alias','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','retry','preAction','-f,\x20--file\x20<path>','--no-color','optionTerm','padWidth','version','--type\x20<api_type>','project','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Setup\x20API\x20key\x20authentication\x20interactively','show\x20[table]','Arguments:','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','action','chat\x20[message...]','--catalog\x20<catalog>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--editor-type\x20<type>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Campaign\x20type\x20(email\x20or\x20push)','Add\x20behaviors\x20from\x20JSON\x20file','Kill\x20a\x20job','folders\x20<parent_name>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--params\x20<json>','--llm-project\x20<name>','Launch\x20a\x20campaign','url','create\x20<parent_name>\x20<folder_name>','7TwkwYm','Move\x20to\x20folder','Create\x20segment\x20folder','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Workflow\x20project\x20management','333216eaYiQk','--max-depth\x20<depth>','--segment\x20<path>','New\x20segment\x20name','aliases','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Workflow\x20(Digdag)\x20management\x20commands','Segment\x20folder\x20management','Save\x20output\x20to\x20file','auth','--clear','--type\x20<type>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','list\x20[path]','--enriched','then','models','--name\x20<new-name>','summary','Email\x20subject\x20template','Show\x20workspace\x20details','history\x20[chat-id]','System\x20prompt/instructions\x20(default:\x20empty)','preview\x20[file]','--parent-folder\x20<name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','-o,\x20--output\x20<file>','Campaign\x20name','tables\x20[pattern]','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--agent\x20<name>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--rule\x20<json>','Describe\x20table\x20schema','launch\x20<name-or-id>','--subject\x20<subject>','Database\x20to\x20use\x20(overrides\x20context)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Start\x20a\x20new\x20chat\x20session','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','folder','run','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','claude\x20[args...]','--force','--schedule-type\x20<type>','push\x20[project-name-or-dir]','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','--site\x20<site>','Database\x20management\x20commands','use\x20<name>','update\x20<name-or-id>','usage','requiredOption','build-info.json','\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','pull\x20[name]','List\x20jobs','Output\x20as\x20JSON\x20Lines','--format\x20<format>','Delete\x20an\x20LLM\x20project','0.7','exit','retry\x20<session-id>','info\x20[name]','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','Delete\x20an\x20email\x20template','--no-proxy','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','apiKey','validate\x20[file]','--start-at\x20<datetime>','--include-subtasks','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','chats','workflow','addHelpText','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','--port\x20<number>','argument','gitRevision','duplicate\x20<name-or-id>','required','--project\x20<name>','workflows\x20[project]','create\x20<name>','INFO','--agent\x20<ref>','--interval\x20<range>','push\x20[name]','Enable\x20verbose\x20logging','resume\x20<name-or-id>','Agent\x20reference\x20(project-name/agent-name)','Skip\x20validation\x20of\x20.dig\x20files','Create\x20a\x20workspace','sql\x20[name]','Folder\x20name\x20for\x20organization','Skip\x20confirmation\x20prompts','desc\x20[name]','Reason\x20for\x20killing\x20the\x20attempt','tdx','Filtering\x20rule\x20as\x20JSON\x20string','show\x20<name-or-id>','--model\x20<name>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--dry-run','--json','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','4000','segment','logLevel','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20available\x20LLM\x20models','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Include\x20subtasks\x20in\x20tasks\x20output','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','--in\x20<name>','isTTY','Create\x20an\x20email\x20template','get','-1d','TRACE','--description\x20<text>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--debug','sessions\x20[project]','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--revision\x20<revision>','Output\x20as\x20JSON'];a2_0x2b6f=function(){return _0xff7d93;};return a2_0x2b6f();}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_0x5f47db(0x2e3)]),__dirname=dirname(__filename),packageJson=JSON[a2_0x5f47db(0x239)](readFileSync(join(__dirname,a2_0x5f47db(0x267)),a2_0x5f47db(0x265)));let buildInfo={};try{buildInfo=JSON[a2_0x5f47db(0x239)](readFileSync(join(__dirname,a2_0x5f47db(0x137)),a2_0x5f47db(0x265)));}catch{}if(process[a2_0x5f47db(0x2a9)][a2_0x5f47db(0x1da)]('--version')){let versionOutput=a2_0x5f47db(0x1d9)+packageJson[a2_0x5f47db(0x2cb)];buildInfo[a2_0x5f47db(0x151)]&&(versionOutput+='\x20('+buildInfo[a2_0x5f47db(0x151)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x5f47db(0x1f6)+buildInfo[a2_0x5f47db(0x2a6)]),console[a2_0x5f47db(0x25a)](versionOutput),process['exit'](0x0);}const program=new Command();let description=a2_0x5f47db(0x26f);buildInfo['gitRevision']?description+=a2_0x5f47db(0x2a2)+packageJson[a2_0x5f47db(0x2cb)]+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x5f47db(0x2a2)+packageJson[a2_0x5f47db(0x2cb)];program[a2_0x5f47db(0x24e)](a2_0x5f47db(0x165))[a2_0x5f47db(0x1d3)](description),program['option'](a2_0x5f47db(0x1cc),a2_0x5f47db(0x304))['option'](a2_0x5f47db(0x131),a2_0x5f47db(0x28a),a2_0x5f47db(0x1b3))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x13c),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x5f47db(0x20a)]('--json','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x18d),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x230),a2_0x5f47db(0x2a8))[a2_0x5f47db(0x20a)]('--output\x20<file>',a2_0x5f47db(0x2f2))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2a5),a2_0x5f47db(0x127))[a2_0x5f47db(0x20a)]('--color',a2_0x5f47db(0x24f),![])[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2c8),a2_0x5f47db(0x229),![])[a2_0x5f47db(0x20a)](a2_0x5f47db(0x199),a2_0x5f47db(0x15b),![])[a2_0x5f47db(0x20a)](a2_0x5f47db(0x17f),a2_0x5f47db(0x29e))['option'](a2_0x5f47db(0x246),a2_0x5f47db(0x1e5))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x191),'Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0x5f47db(0x20a)]('--dry-run',a2_0x5f47db(0x18c),![])[a2_0x5f47db(0x20a)](a2_0x5f47db(0x231),a2_0x5f47db(0x162),![])['option'](a2_0x5f47db(0x214),a2_0x5f47db(0x130))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1c9),a2_0x5f47db(0x124))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x177),a2_0x5f47db(0x1f9))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2b9),a2_0x5f47db(0x145))['option'](a2_0x5f47db(0x2e1),a2_0x5f47db(0x252)),program[a2_0x5f47db(0x251)]({'formatHelp':(_0x2299ed,_0x59d4c5)=>{const _0x3a2342=a2_0x5f47db,_0x4193e8=_0x59d4c5[_0x3a2342(0x2ca)](_0x2299ed,_0x59d4c5),_0x5b786b=0x2,_0x53d15b=0x2;function _0x132f2c(_0x18e92a){const _0x2513b6=_0x3a2342,_0x427047=_0x18e92a;return!!(_0x427047[_0x2513b6(0x1b4)]||_0x427047['hidden']);}function _0x332ec7(_0x13c41b,_0x5afbb4){const _0x3a4424=_0x3a2342;if(_0x5afbb4){const _0x4f747d=''+_0x13c41b[_0x3a4424(0x1ed)](_0x4193e8+_0x53d15b)+_0x5afbb4;return _0x4f747d;}return _0x13c41b;}function _0x50e992(_0x5e0435){const _0x3e03db=_0x3a2342;return _0x5e0435['join']('\x0a')[_0x3e03db(0x1f8)](/^/gm,'\x20'[_0x3e03db(0x236)](_0x5b786b));}const _0x24f7c7=[];_0x24f7c7['push'](_0x3a2342(0x1d0)+_0x59d4c5['commandUsage'](_0x2299ed));const _0x24e3e5=_0x59d4c5[_0x3a2342(0x1e7)](_0x2299ed);_0x24e3e5&&(_0x24f7c7['push'](''),_0x24f7c7[_0x3a2342(0x1f1)](_0x24e3e5));const _0x4809d4=_0x2299ed[_0x3a2342(0x19e)][_0x3a2342(0x189)](_0x5ba1e0=>!_0x132f2c(_0x5ba1e0));if(_0x4809d4[_0x3a2342(0x1a8)]>0x0){if(_0x2299ed['name']()==='tdx'){const _0x29cc80=_0x2299ed[_0x3a2342(0x1b1)](),_0x1f5c2e=!_0x29cc80[_0x3a2342(0x271)]&&process['stdout']['isTTY'],_0x2a91e8=COMMAND_CATEGORIES,_0x20c7d1=(_0x53aa71,_0x243d7f)=>_0x1f5c2e?_0x243d7f(_0x53aa71):_0x53aa71,_0x1811ed=new Map();_0x4809d4[_0x3a2342(0x226)](_0x554b4=>{const _0x47b759=_0x3a2342;_0x1811ed['set'](_0x554b4[_0x47b759(0x24e)](),_0x554b4);}),_0x2a91e8[_0x3a2342(0x226)](_0x201a3e=>{const _0x3f2362=_0x3a2342,_0x54fdb6=_0x201a3e['commands'][_0x3f2362(0x211)](_0x138855=>_0x1811ed[_0x3f2362(0x17a)](_0x138855)??[]);if(_0x54fdb6['length']>0x0){_0x24f7c7[_0x3f2362(0x1f1)](''),_0x24f7c7[_0x3f2362(0x1f1)](_0x20c7d1(_0x201a3e[_0x3f2362(0x24e)]+':',_0x201a3e[_0x3f2362(0x23c)]));const _0x4b6224=_0x54fdb6[_0x3f2362(0x276)](_0x182f85=>{const _0x4cfbad=_0x3f2362,_0x1da719=_0x59d4c5[_0x4cfbad(0x1bd)](_0x182f85),_0x13e44a=_0x59d4c5[_0x4cfbad(0x24c)](_0x182f85);return _0x332ec7(_0x1da719,_0x13e44a);});_0x24f7c7[_0x3f2362(0x1f1)](_0x50e992(_0x4b6224));}}),_0x24f7c7[_0x3a2342(0x1f1)](''),_0x24f7c7[_0x3a2342(0x1f1)](_0x3a2342(0x286));}else{const _0x39100e=_0x4809d4[_0x3a2342(0x276)](_0x26281e=>{const _0x4f50a2=_0x3a2342,_0xc3a972=_0x59d4c5[_0x4f50a2(0x1bd)](_0x26281e),_0x519c5e=_0x59d4c5[_0x4f50a2(0x24c)](_0x26281e);return _0x332ec7(_0xc3a972,_0x519c5e);});_0x24f7c7[_0x3a2342(0x1f1)](''),_0x24f7c7[_0x3a2342(0x1f1)]('Commands:'),_0x24f7c7['push'](_0x50e992(_0x39100e));}}const _0xb375f7=_0x2299ed[_0x3a2342(0x2aa)][_0x3a2342(0x189)](_0x432981=>!_0x132f2c(_0x432981));if(_0xb375f7['length']>0x0){const _0x55adf0=_0xb375f7[_0x3a2342(0x276)](_0x38564a=>{const _0x28b3ae=_0x3a2342,_0x35c8af=_0x59d4c5[_0x28b3ae(0x2c9)](_0x38564a),_0x41cb75=_0x59d4c5[_0x28b3ae(0x1bb)](_0x38564a);return _0x332ec7(_0x35c8af,_0x41cb75);});_0x24f7c7[_0x3a2342(0x1f1)](''),_0x24f7c7[_0x3a2342(0x1f1)](_0x3a2342(0x24d)),_0x24f7c7[_0x3a2342(0x1f1)](_0x50e992(_0x55adf0));}const _0x42a4a7=(_0x2299ed[_0x3a2342(0x287)]||[])[_0x3a2342(0x189)](_0x302aa6=>!_0x132f2c(_0x302aa6));if(_0x42a4a7[_0x3a2342(0x1a8)]>0x0){const _0xb0e49d=_0x42a4a7[_0x3a2342(0x276)](_0x5cd10b=>{const _0xa0f8b7=_0x3a2342,_0x337f69=_0x59d4c5[_0xa0f8b7(0x1a7)](_0x5cd10b),_0x14ea19=_0x59d4c5['argumentDescription'](_0x5cd10b);return _0x332ec7(_0x337f69,_0x14ea19);});_0x24f7c7[_0x3a2342(0x1f1)](''),_0x24f7c7[_0x3a2342(0x1f1)](_0x3a2342(0x2d1)),_0x24f7c7[_0x3a2342(0x1f1)](_0x50e992(_0xb0e49d));}return _0x24f7c7['join']('\x0a');},'subcommandTerm':_0x589b0c=>{const _0x4bc67e=a2_0x5f47db,_0x2b1551=(_0x589b0c[_0x4bc67e(0x287)]||[])[_0x4bc67e(0x276)](_0x5d7ecf=>_0x5d7ecf[_0x4bc67e(0x153)]?'<'+_0x5d7ecf[_0x4bc67e(0x24e)]()+'>':'['+_0x5d7ecf['name']()+']')[_0x4bc67e(0x259)]('\x20'),_0x107f6e=_0x589b0c[_0x4bc67e(0x2ee)](),_0x39c3d0=_0x107f6e[_0x4bc67e(0x1a8)]>0x0?_0x589b0c[_0x4bc67e(0x24e)]()+',\x20'+_0x107f6e[_0x4bc67e(0x259)](',\x20'):_0x589b0c[_0x4bc67e(0x24e)]();return _0x2b1551?_0x39c3d0+'\x20'+_0x2b1551:_0x39c3d0;}}),program['hook'](a2_0x5f47db(0x2c6),_0x2d26cb=>{const _0x244523=a2_0x5f47db,_0x7f2d2a=_0x2d26cb[_0x244523(0x1b1)]();if(!_0x7f2d2a[_0x244523(0x2be)]){if(_0x7f2d2a[_0x244523(0x221)])_0x7f2d2a[_0x244523(0x2be)]=_0x244523(0x221);else{if(_0x7f2d2a['jsonl'])_0x7f2d2a[_0x244523(0x2be)]=_0x244523(0x232);else _0x7f2d2a['tsv']&&(_0x7f2d2a['format']='tsv');}}_0x7f2d2a['in']&&!_0x7f2d2a[_0x244523(0x1ca)]&&(_0x7f2d2a['database']=_0x7f2d2a['in']);if(_0x7f2d2a[_0x244523(0x28d)])_0x7f2d2a[_0x244523(0x170)]=LogLevel[_0x244523(0x17c)];else{if(_0x7f2d2a['debug'])_0x7f2d2a[_0x244523(0x170)]=LogLevel[_0x244523(0x1dd)];else _0x7f2d2a[_0x244523(0x170)]===undefined&&(_0x7f2d2a[_0x244523(0x170)]=LogLevel[_0x244523(0x157)]);}});async function createTDXInstance(_0x118156){const _0x38fec1=a2_0x5f47db,_0x5457f5=await GlobalContext['createAsync'](_0x118156);return _0x5457f5[_0x38fec1(0x2b3)](_0x118156),TDX[_0x38fec1(0x262)]({'site':_0x5457f5['site'],'apiKey':_0x5457f5[_0x38fec1(0x146)],'logLevel':_0x5457f5[_0x38fec1(0x170)],'profile':_0x5457f5[_0x38fec1(0x201)]});}const databaseCmd=program[a2_0x5f47db(0x282)](a2_0x5f47db(0x1ca))[a2_0x5f47db(0x2c3)]('db')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x132)),databaseListAction=async(_0x36b449,_0x331a13)=>{const _0x34a062=a2_0x5f47db,_0x26ab97=new DatabasesCommand(),_0x2b3cd7=program[_0x34a062(0x1b1)](),_0x3cdcf9=await createTDXInstance(_0x2b3cd7),_0x298cb9=await _0x26ab97['run']({'options':{..._0x2b3cd7,..._0x331a13},'args':_0x36b449?[_0x36b449]:[],'tdx':_0x3cdcf9});process['exit'](_0x298cb9);};databaseCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2b6))['action'](databaseListAction),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x1a1),{'hidden':!![]})[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2df))['action'](databaseListAction),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x2d4))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2af))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x158),a2_0x5f47db(0x15d))['option'](a2_0x5f47db(0x168),a2_0x5f47db(0x258))[a2_0x5f47db(0x20a)]('--temperature\x20<n>',a2_0x5f47db(0x270))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x266),a2_0x5f47db(0x126))['action'](async(_0x47ed08,_0x4f8d56)=>{const _0x3e54b6=a2_0x5f47db,_0x14e97a=new ChatCommand(),_0x8ae75b=program[_0x3e54b6(0x1b1)](),_0x4fb0b0=await createTDXInstance(_0x8ae75b),_0xb1ec07=await _0x14e97a[_0x3e54b6(0x129)]({'options':{..._0x8ae75b,..._0x4f8d56},'args':_0x47ed08,'tdx':_0x4fb0b0});process[_0x3e54b6(0x13f)](_0xb1ec07);});const apiCmd=program[a2_0x5f47db(0x282)]('api\x20[endpoint]')[a2_0x5f47db(0x2fd)](a2_0x5f47db(0x308))['addHelpText'](a2_0x5f47db(0x257),a2_0x5f47db(0x138))['option'](a2_0x5f47db(0x289),a2_0x5f47db(0x1fc),a2_0x5f47db(0x1d1))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1aa),a2_0x5f47db(0x294))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2c7),a2_0x5f47db(0x295))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x26d),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x5e764c,_0x6d87d3)=>{return _0x6d87d3?[..._0x6d87d3,_0x5e764c]:[_0x5e764c];})[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2cc),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x5f47db(0x2d3)](async(_0xbe82f1,_0x4aaff3)=>{const _0x30b674=a2_0x5f47db;if(!_0xbe82f1){apiCmd[_0x30b674(0x217)]();return;}const _0x2ff75f=new ApiCommand(),_0x188cb3=program[_0x30b674(0x1b1)](),_0x513625=await createTDXInstance(_0x188cb3),_0x3c4744=await _0x2ff75f[_0x30b674(0x129)]({'options':{..._0x188cb3,..._0x4aaff3},'args':[_0xbe82f1],'tdx':_0x513625});process[_0x30b674(0x13f)](_0x3c4744);}),tableCmd=program[a2_0x5f47db(0x282)]('table')['description']('Table\x20management\x20commands'),tableListAction=async(_0x3f9659,_0x5dbeb8)=>{const _0x3b0e12=a2_0x5f47db,_0x114bf4=new TablesCommand(),_0x345860=program[_0x3b0e12(0x1b1)](),_0x1b4833=await createTDXInstance(_0x345860);_0x5dbeb8['in']&&(_0x5dbeb8[_0x3b0e12(0x1ca)]=_0x5dbeb8['in']);const _0x579ecd=await _0x114bf4[_0x3b0e12(0x129)]({'options':{..._0x345860,..._0x5dbeb8},'args':_0x3f9659?[_0x3f9659]:[],'tdx':_0x1b4833});process[_0x3b0e12(0x13f)](_0x579ecd);};tableCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x26e))[a2_0x5f47db(0x20a)]('-d,\x20--database\x20<database>',a2_0x5f47db(0x2c1))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x224),a2_0x5f47db(0x1f9))[a2_0x5f47db(0x2d3)](tableListAction),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x307),{'hidden':!![]})[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1cb))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1db),a2_0x5f47db(0x2c1))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x224),a2_0x5f47db(0x1f9))[a2_0x5f47db(0x2d3)](tableListAction),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x2d0))['description']('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1db),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x5f47db(0x20a)]('--in\x20<database>',a2_0x5f47db(0x1f9))['action'](async(_0x3e7552,_0x45b22c)=>{const _0x5e6642=a2_0x5f47db,_0x3f82d5=new ShowCommand(),_0x251c4d=program[_0x5e6642(0x1b1)](),_0x1fd38f=await createTDXInstance(_0x251c4d);_0x45b22c['in']&&(_0x45b22c[_0x5e6642(0x1ca)]=_0x45b22c['in']);const _0x50b424=await _0x3f82d5['run']({'options':{..._0x251c4d,..._0x45b22c},'args':_0x3e7552?[_0x3e7552]:[],'tdx':_0x1fd38f});process[_0x5e6642(0x13f)](_0x50b424);}),program['command'](a2_0x5f47db(0x288))[a2_0x5f47db(0x2c3)](a2_0x5f47db(0x1ad))['description'](a2_0x5f47db(0x121))[a2_0x5f47db(0x20a)]('-d,\x20--database\x20<database>',a2_0x5f47db(0x2b5))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x224),a2_0x5f47db(0x1f9))[a2_0x5f47db(0x2d3)](async(_0x57fafa,_0x4374cb)=>{const _0x410fde=a2_0x5f47db,_0x530431=new DescribeCommand(),_0x1af221=program[_0x410fde(0x1b1)](),_0x442357=await createTDXInstance(_0x1af221);_0x4374cb['in']&&(_0x4374cb[_0x410fde(0x1ca)]=_0x4374cb['in']);const _0x38e4c8=await _0x530431['run']({'options':{..._0x1af221,..._0x4374cb},'args':_0x57fafa?[_0x57fafa]:[],'tdx':_0x442357});process[_0x410fde(0x13f)](_0x38e4c8);}),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x249))[a2_0x5f47db(0x1d3)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1db),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x5f47db(0x20a)]('--in\x20<database>',a2_0x5f47db(0x1f9))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2d5),a2_0x5f47db(0x200))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2c7),'Read\x20SQL\x20query\x20from\x20file')['option'](a2_0x5f47db(0x237),a2_0x5f47db(0x181),'40')[a2_0x5f47db(0x2d3)](async(_0x514674,_0x9c3324)=>{const _0x4f0356=a2_0x5f47db,_0x1b9723=new QueryCommand(),_0x1c6ddc=program['opts'](),_0x22c432=await createTDXInstance(_0x1c6ddc);_0x9c3324['in']&&(_0x9c3324[_0x4f0356(0x1ca)]=_0x9c3324['in']);const _0x54836e=await _0x1b9723[_0x4f0356(0x129)]({'options':{..._0x1c6ddc,..._0x9c3324},'args':_0x514674?[_0x514674]:[],'tdx':_0x22c432});process[_0x4f0356(0x13f)](_0x54836e);});const segmentCmd=program[a2_0x5f47db(0x282)](a2_0x5f47db(0x16f))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1f7)),segmentListAction=async(_0xbb03f3,_0x3307b3)=>{const _0x24f6a5=a2_0x5f47db,_0xae4e68=new SegmentsCommand(),_0x385605=program[_0x24f6a5(0x1b1)](),_0x712808=await createTDXInstance(_0x385605),_0x5c30ff=await _0xae4e68[_0x24f6a5(0x129)]({'options':{..._0x385605,..._0x3307b3},'args':_0xbb03f3?[_0xbb03f3]:[],'tdx':_0x712808});process[_0x24f6a5(0x13f)](_0x5c30ff);};segmentCmd['command'](a2_0x5f47db(0x2f8))['description']('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1c7),a2_0x5f47db(0x1ac))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2eb),a2_0x5f47db(0x1ab),'10')[a2_0x5f47db(0x2d3)](segmentListAction),program['command'](a2_0x5f47db(0x277),{'hidden':!![]})[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2c2))['option'](a2_0x5f47db(0x1c7),a2_0x5f47db(0x1ac))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2eb),a2_0x5f47db(0x1ab),'10')[a2_0x5f47db(0x2d3)](segmentListAction),segmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x248))[a2_0x5f47db(0x1d3)]('Set\x20current\x20segment/folder\x20context\x20for\x20navigation')['action'](async(_0x5ef9a0,_0x21f739)=>{const _0x2e7779=a2_0x5f47db,_0x5b7506=new SegmentUseCommand(),_0x540408=program[_0x2e7779(0x1b1)](),_0x1c9d16=await createTDXInstance(_0x540408),_0x14966d=await _0x5b7506[_0x2e7779(0x129)]({'options':{..._0x540408,..._0x21f739},'args':[_0x5ef9a0],'tdx':_0x1c9d16});process[_0x2e7779(0x13f)](_0x14966d);}),segmentCmd[a2_0x5f47db(0x282)]('pwd')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2c0))['action'](async _0x2fa0a8=>{const _0xd78d9=a2_0x5f47db,_0x113935=new SegmentPwdCommand(),_0xe7b66e=program[_0xd78d9(0x1b1)](),_0x4653fd=await createTDXInstance(_0xe7b66e),_0x2634d7=await _0x113935['run']({'options':{..._0xe7b66e,..._0x2fa0a8},'args':[],'tdx':_0x4653fd});process[_0xd78d9(0x13f)](_0x2634d7);}),segmentCmd[a2_0x5f47db(0x282)]('info\x20[segment_name]')[a2_0x5f47db(0x2c3)]('describe')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x278))[a2_0x5f47db(0x2d3)](async(_0xf993a,_0x515cd8)=>{const _0x5e5c96=a2_0x5f47db,_0x392b5f=new SegmentInfoCommand(),_0x28b300=program[_0x5e5c96(0x1b1)](),_0x1b9034=await createTDXInstance(_0x28b300),_0x1aac6c=await _0x392b5f['run']({'options':{..._0x28b300,..._0x515cd8},'args':_0xf993a?[_0xf993a]:[],'tdx':_0x1b9034});process[_0x5e5c96(0x13f)](_0x1aac6c);}),segmentCmd['command']('desc\x20[segment_name]')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x184))[a2_0x5f47db(0x2d3)](async(_0x4b19a6,_0x44ddf3)=>{const _0x1e9794=a2_0x5f47db,_0x33364b=new SegmentDescCommand(),_0x20cd13=program[_0x1e9794(0x1b1)](),_0x417ccb=await createTDXInstance(_0x20cd13),_0x103493=await _0x33364b[_0x1e9794(0x129)]({'options':{..._0x20cd13,..._0x44ddf3},'args':_0x4b19a6?[_0x4b19a6]:[],'tdx':_0x417ccb});process['exit'](_0x103493);}),segmentCmd[a2_0x5f47db(0x282)]('show\x20[segment_name]')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x30c))[a2_0x5f47db(0x2d3)](async(_0x4c3970,_0x487d34)=>{const _0x5781dd=a2_0x5f47db,_0x43775f=new SegmentShowCommand(),_0x1fac04=program[_0x5781dd(0x1b1)](),_0x36acf9=await createTDXInstance(_0x1fac04),_0x4aa48b=await _0x43775f[_0x5781dd(0x129)]({'options':{..._0x1fac04,..._0x487d34},'args':_0x4c3970?[_0x4c3970]:[],'tdx':_0x36acf9});process['exit'](_0x4aa48b);}),segmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x2de))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x188))['action'](async(_0x4506b5,_0x4bad8c)=>{const _0x24f504=a2_0x5f47db,_0x33faa6=new SegmentFolderListCommand(),_0x4ac928=program[_0x24f504(0x1b1)](),_0x29b0d9=await createTDXInstance(_0x4ac928),_0x2b752e=await _0x33faa6[_0x24f504(0x129)]({'options':{..._0x4ac928,..._0x4bad8c},'args':[_0x4506b5],'tdx':_0x29b0d9});process[_0x24f504(0x13f)](_0x2b752e);});const folderCmd=segmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x128))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2f1));folderCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x228))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1a5))[a2_0x5f47db(0x2d3)](async(_0x5bf2ed,_0x32f67b)=>{const _0x310762=a2_0x5f47db,_0x18d51d=new SegmentFolderShowCommand(),_0x52ddf6=program[_0x310762(0x1b1)](),_0x337373=await createTDXInstance(_0x52ddf6),_0x5d9d28=await _0x18d51d['run']({'options':{..._0x52ddf6,..._0x32f67b},'args':[_0x5bf2ed],'tdx':_0x337373});process['exit'](_0x5d9d28);}),segmentCmd[a2_0x5f47db(0x282)]('sql\x20[segment_name]')[a2_0x5f47db(0x1d3)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x5f47db(0x2d3)](async(_0x1e0260,_0x417ad1)=>{const _0x482d1e=a2_0x5f47db,_0x17a471=new SegmentSQLCommand(),_0x116bb8=program['opts'](),_0x31d2b5=await createTDXInstance(_0x116bb8),_0x46b599=await _0x17a471[_0x482d1e(0x129)]({'options':{..._0x116bb8,..._0x417ad1},'args':_0x1e0260?[_0x1e0260]:[],'tdx':_0x31d2b5});process['exit'](_0x46b599);}),segmentCmd['command'](a2_0x5f47db(0x2ab))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x223))[a2_0x5f47db(0x2d3)](async(_0x1defb0,_0x98b927)=>{const _0x3584f6=a2_0x5f47db,_0x35bb8b=new SegmentFieldsCommand(),_0x39e246=program['opts'](),_0xa66ddb=await createTDXInstance(_0x39e246),_0x4fc37e=await _0x35bb8b[_0x3584f6(0x129)]({'options':{..._0x39e246,..._0x98b927},'args':_0x1defb0?[_0x1defb0]:[],'tdx':_0xa66ddb});process[_0x3584f6(0x13f)](_0x4fc37e);}),segmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x291))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1be))[a2_0x5f47db(0x20a)]('--description\x20<text>','Segment\x20description')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x120),a2_0x5f47db(0x166))['option'](a2_0x5f47db(0x1e4),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x5f47db(0x20a)]('--folder\x20<name>',a2_0x5f47db(0x161))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x28c),a2_0x5f47db(0x18e))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1b9),a2_0x5f47db(0x215))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x26a),a2_0x5f47db(0x22d))[a2_0x5f47db(0x2d3)](async(_0x26fcc5,_0x148239)=>{const _0xc6d20b=a2_0x5f47db,_0x56bceb=new SegmentCreateCommand(),_0x4aa7f2=program[_0xc6d20b(0x1b1)](),_0x309e42=await createTDXInstance(_0x4aa7f2),_0x92110c=await _0x56bceb['run']({'options':{..._0x4aa7f2,..._0x148239},'args':[_0x26fcc5],'tdx':_0x309e42});process['exit'](_0x92110c);}),segmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1f0))[a2_0x5f47db(0x1d3)]('Update\x20child\x20segment\x20(use\x20parent_name/child_name)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1a2),a2_0x5f47db(0x2ed))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x17d),a2_0x5f47db(0x274))[a2_0x5f47db(0x20a)]('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x5f47db(0x20a)]('--rule-file\x20<file>',a2_0x5f47db(0x234))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1e1),a2_0x5f47db(0x2e6))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x28c),a2_0x5f47db(0x18e))[a2_0x5f47db(0x2d3)](async(_0x57a644,_0x16076a)=>{const _0x351758=a2_0x5f47db,_0x598c6a=new SegmentUpdateCommand(),_0x2fb77e=program['opts'](),_0x15d644=await createTDXInstance(_0x2fb77e),_0xd909ff=await _0x598c6a[_0x351758(0x129)]({'options':{..._0x2fb77e,..._0x16076a},'args':[_0x57a644],'tdx':_0x15d644});process[_0x351758(0x13f)](_0xd909ff);});const parentCmd=segmentCmd[a2_0x5f47db(0x282)]('parent')['description']('Parent\x20segment\x20(audience)\x20management'),parentListAction=async(_0x37e9b6,_0x3e5c4a)=>{const _0x4344f6=a2_0x5f47db,_0x35d3bf=new ParentSegmentListCommand(),_0x422bb5=program[_0x4344f6(0x1b1)](),_0x57f5fa=await createTDXInstance(_0x422bb5),_0x362736=await _0x35d3bf[_0x4344f6(0x129)]({'options':{..._0x422bb5,..._0x3e5c4a},'args':_0x37e9b6?[_0x37e9b6]:[],'tdx':_0x57f5fa});process[_0x4344f6(0x13f)](_0x362736);};parentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x171))[a2_0x5f47db(0x2d3)](parentListAction),segmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1e3),{'hidden':!![]})[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x125))['action'](parentListAction),parentCmd[a2_0x5f47db(0x282)]('pull\x20[name]')['description'](a2_0x5f47db(0x279))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x305),a2_0x5f47db(0x1e8))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x231),a2_0x5f47db(0x227))[a2_0x5f47db(0x2d3)](async(_0x5ee04c,_0x3118ae)=>{const _0x5da3b9=a2_0x5f47db,_0x417ab7=new ParentSegmentPullCommand(),_0xa6778f=program['opts'](),_0x3f06e9=await createTDXInstance(_0xa6778f),_0x3b0b36=await _0x417ab7[_0x5da3b9(0x129)]({'options':{..._0xa6778f,..._0x3118ae},'args':_0x5ee04c?[_0x5ee04c]:[],'tdx':_0x3f06e9});process[_0x5da3b9(0x13f)](_0x3b0b36);}),parentCmd['command'](a2_0x5f47db(0x2ac))['description'](a2_0x5f47db(0x222))['option'](a2_0x5f47db(0x231),a2_0x5f47db(0x227))['action'](async(_0x10d276,_0x283e8c)=>{const _0x4d2423=a2_0x5f47db,_0x44e7d3=new ParentSegmentPushCommand(),_0x3d79e3=program[_0x4d2423(0x1b1)](),_0x147934=await createTDXInstance(_0x3d79e3),_0x2e1de6=await _0x44e7d3[_0x4d2423(0x129)]({'options':{..._0x3d79e3,..._0x283e8c},'args':_0x10d276?[_0x10d276]:[],'tdx':_0x147934});process[_0x4d2423(0x13f)](_0x2e1de6);}),parentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x147))[a2_0x5f47db(0x1d3)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option']('--master',a2_0x5f47db(0x244))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x213),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x5f47db(0x20a)]('--behavior\x20[name]',a2_0x5f47db(0x16c))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2f9),a2_0x5f47db(0x2f7))[a2_0x5f47db(0x20a)]('--interval\x20<range>',a2_0x5f47db(0x1e2),a2_0x5f47db(0x17b))[a2_0x5f47db(0x2d3)](async(_0x12ec39,_0x11f89b)=>{const _0x176aaf=a2_0x5f47db,_0x427d86=new ParentSegmentValidateCommand(),_0x6a9149=program[_0x176aaf(0x1b1)](),_0x35b170=await createTDXInstance(_0x6a9149),_0x1971d4=await _0x427d86[_0x176aaf(0x129)]({'options':{..._0x6a9149,..._0x11f89b},'args':_0x12ec39?[_0x12ec39]:[],'tdx':_0x35b170});process[_0x176aaf(0x13f)](_0x1971d4);}),parentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x302))['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x25e),a2_0x5f47db(0x20b))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x213),a2_0x5f47db(0x185))['option']('--behavior\x20[name]',a2_0x5f47db(0x2da))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2f9),a2_0x5f47db(0x21a))[a2_0x5f47db(0x20a)]('--interval\x20<range>',a2_0x5f47db(0x1e2),a2_0x5f47db(0x17b))[a2_0x5f47db(0x2d3)](async(_0x1ccdda,_0x8d3ea6)=>{const _0x199e3d=a2_0x5f47db,_0x3b2ec5=new ParentSegmentPreviewCommand(),_0x4050c7=program['opts'](),_0x28ea77=await createTDXInstance(_0x4050c7),_0x127ead=await _0x3b2ec5[_0x199e3d(0x129)]({'options':{..._0x4050c7,..._0x8d3ea6},'args':_0x1ccdda?[_0x1ccdda]:[],'tdx':_0x28ea77});process['exit'](_0x127ead);}),parentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1ef))[a2_0x5f47db(0x1d3)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x231),a2_0x5f47db(0x227))[a2_0x5f47db(0x2d3)](async(_0x3c326d,_0x17cf4e)=>{const _0x4619f7=a2_0x5f47db,_0x627db3=new ParentSegmentRunCommand(),_0x33bacb=program[_0x4619f7(0x1b1)](),_0x1d3f46=await createTDXInstance(_0x33bacb),_0x3c8f2a=await _0x627db3[_0x4619f7(0x129)]({'options':{..._0x33bacb,..._0x17cf4e},'args':_0x3c326d?[_0x3c326d]:[],'tdx':_0x1d3f46});process[_0x4619f7(0x13f)](_0x3c8f2a);});const parentSegmentCmd=program[a2_0x5f47db(0x282)]('parent-segment')['alias']('ps')[a2_0x5f47db(0x1d3)]('Parent\x20segment\x20management');parentSegmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x171))['action'](parentListAction),parentSegmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x139))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x299))[a2_0x5f47db(0x20a)]('-o,\x20--output\x20<file>',a2_0x5f47db(0x206))['option'](a2_0x5f47db(0x231),'Skip\x20confirmation\x20prompt')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1b2),a2_0x5f47db(0x233))['action'](async(_0x5eb26b,_0x1c313f)=>{const _0x19f0d2=a2_0x5f47db,_0x64fbab=new ParentSegmentPullCommand(),_0x356723=program[_0x19f0d2(0x1b1)](),_0x4655b0=await createTDXInstance(_0x356723),_0xf07ffd=await _0x64fbab[_0x19f0d2(0x129)]({'options':{..._0x356723,..._0x1c313f},'args':_0x5eb26b?[_0x5eb26b]:[],'tdx':_0x4655b0});process['exit'](_0xf07ffd);}),parentSegmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x15a))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x192))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x231),a2_0x5f47db(0x227))[a2_0x5f47db(0x2d3)](async(_0x1be089,_0x5a093d)=>{const _0x390bc0=a2_0x5f47db,_0x27fc65=new ParentSegmentPushCommand(),_0x2c2017=program[_0x390bc0(0x1b1)](),_0x31643b=await createTDXInstance(_0x2c2017),_0x252fe7=await _0x27fc65[_0x390bc0(0x129)]({'options':{..._0x2c2017,..._0x5a093d},'args':_0x1be089?[_0x1be089]:[],'tdx':_0x31643b});process['exit'](_0x252fe7);}),parentSegmentCmd['command']('validate\x20[name]')[a2_0x5f47db(0x1d3)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x5f47db(0x25e),'Show\x20only\x20master\x20table\x20validation')[a2_0x5f47db(0x20a)]('--attribute\x20[name]',a2_0x5f47db(0x2f6))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1a9),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2f9),a2_0x5f47db(0x2f7))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x159),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')['action'](async(_0x2b0d72,_0x55cfe8)=>{const _0x27622c=a2_0x5f47db,_0x51062a=new ParentSegmentValidateCommand(),_0x1e1ac6=program[_0x27622c(0x1b1)](),_0x464c80=await createTDXInstance(_0x1e1ac6),_0x33eb77=await _0x51062a['run']({'options':{..._0x1e1ac6,..._0x55cfe8},'args':_0x2b0d72?[_0x2b0d72]:[],'tdx':_0x464c80});process['exit'](_0x33eb77);}),parentSegmentCmd[a2_0x5f47db(0x282)]('preview\x20[name]')[a2_0x5f47db(0x1d3)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x25e),'Show\x20master\x20table\x20sample\x20data')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x213),a2_0x5f47db(0x185))['option'](a2_0x5f47db(0x1a9),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2f9),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x159),a2_0x5f47db(0x1e2),a2_0x5f47db(0x17b))[a2_0x5f47db(0x2d3)](async(_0x4f9d98,_0x3b0f0b)=>{const _0xd99a17=a2_0x5f47db,_0x128fd3=new ParentSegmentPreviewCommand(),_0x1f1b75=program['opts'](),_0x208458=await createTDXInstance(_0x1f1b75),_0x3f47e0=await _0x128fd3['run']({'options':{..._0x1f1b75,..._0x3b0f0b},'args':_0x4f9d98?[_0x4f9d98]:[],'tdx':_0x208458});process[_0xd99a17(0x13f)](_0x3f47e0);}),parentSegmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1ef))[a2_0x5f47db(0x1d3)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x5f47db(0x231),a2_0x5f47db(0x227))[a2_0x5f47db(0x2d3)](async(_0x29af94,_0x9eec05)=>{const _0x1ab467=a2_0x5f47db,_0x28d91e=new ParentSegmentRunCommand(),_0x27b700=program[_0x1ab467(0x1b1)](),_0x3c479c=await createTDXInstance(_0x27b700),_0x38832a=await _0x28d91e['run']({'options':{..._0x27b700,..._0x9eec05},'args':_0x29af94?[_0x29af94]:[],'tdx':_0x3c479c});process[_0x1ab467(0x13f)](_0x38832a);}),parentSegmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x19b))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2ef))['option'](a2_0x5f47db(0x16b),a2_0x5f47db(0x183))['option']('--jsonl',a2_0x5f47db(0x13b))[a2_0x5f47db(0x2d3)](async(_0x466222,_0x571f21)=>{const _0x74642c=a2_0x5f47db,_0x361976=new ParentSegmentFieldsCommand(),_0x1e7445=program[_0x74642c(0x1b1)](),_0x3d1db8=await createTDXInstance(_0x1e7445),_0xdd34c9=await _0x361976[_0x74642c(0x129)]({'options':{..._0x1e7445,..._0x571f21},'args':_0x466222?[_0x466222]:[],'tdx':_0x3d1db8});process[_0x74642c(0x13f)](_0xdd34c9);}),parentSegmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x141))[a2_0x5f47db(0x1d3)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x16b),a2_0x5f47db(0x183))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x18d),a2_0x5f47db(0x13b))[a2_0x5f47db(0x2d3)](async(_0x3e210f,_0x49bd95)=>{const _0x57a2e7=a2_0x5f47db,_0x7514ce=new ParentSegmentInfoCommand(),_0x47fac6=program[_0x57a2e7(0x1b1)](),_0x230c10=await createTDXInstance(_0x47fac6),_0x314a29=await _0x7514ce[_0x57a2e7(0x129)]({'options':{..._0x47fac6,..._0x49bd95},'args':_0x3e210f?[_0x3e210f]:[],'tdx':_0x230c10});process['exit'](_0x314a29);}),parentSegmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x163))[a2_0x5f47db(0x1d3)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x16b),a2_0x5f47db(0x183))['option'](a2_0x5f47db(0x18d),a2_0x5f47db(0x13b))['action'](async(_0x5546e0,_0x517412)=>{const _0x42faa0=a2_0x5f47db,_0x4a2aba=new ParentSegmentDescCommand(),_0x4b8158=program[_0x42faa0(0x1b1)](),_0x3589d8=await createTDXInstance(_0x4b8158),_0x5fb9bd=await _0x4a2aba['run']({'options':{..._0x4b8158,..._0x517412},'args':_0x5546e0?[_0x5546e0]:[],'tdx':_0x3589d8});process[_0x42faa0(0x13f)](_0x5fb9bd);}),parentSegmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x160))[a2_0x5f47db(0x1d3)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5f47db(0x20a)]('--json',a2_0x5f47db(0x183))['option']('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x5f47db(0x2d3)](async(_0x1fda74,_0x56dbe0)=>{const _0x403f04=a2_0x5f47db,_0x37aef1=new ParentSegmentSQLCommand(),_0x996ede=program[_0x403f04(0x1b1)](),_0x4a0be6=await createTDXInstance(_0x996ede),_0x1f04f1=await _0x37aef1['run']({'options':{..._0x996ede,..._0x56dbe0},'args':_0x1fda74?[_0x1fda74]:[],'tdx':_0x4a0be6});process['exit'](_0x1f04f1);}),parentSegmentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x284))['description'](a2_0x5f47db(0x175))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x28e),a2_0x5f47db(0x1f2))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x16b),a2_0x5f47db(0x183))['option'](a2_0x5f47db(0x18d),a2_0x5f47db(0x13b))[a2_0x5f47db(0x2d3)](async(_0x4d15d9,_0x428d97)=>{const _0x2d7338=a2_0x5f47db,_0x5f28bc=new ParentSegmentShowCommand(),_0x22baa5=program[_0x2d7338(0x1b1)](),_0x1b9a74=await createTDXInstance(_0x22baa5),_0x5720e9=await _0x5f28bc[_0x2d7338(0x129)]({'options':{..._0x22baa5,..._0x428d97},'args':_0x4d15d9?[_0x4d15d9]:[],'tdx':_0x1b9a74});process[_0x2d7338(0x13f)](_0x5720e9);}),parentSegmentCmd[a2_0x5f47db(0x282)]('use\x20[name]')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x238))[a2_0x5f47db(0x2d3)](async(_0x15b428,_0x2a9bb3)=>{const _0x3617ff=a2_0x5f47db,_0x1798a8=new UseCommand(),_0x450d27=program[_0x3617ff(0x1b1)](),_0x109927=_0x15b428?[_0x3617ff(0x2a0),_0x15b428]:[],_0x225f59=await _0x1798a8[_0x3617ff(0x129)]({'options':{..._0x450d27,..._0x2a9bb3},'args':_0x109927,'tdx':null});process[_0x3617ff(0x13f)](_0x225f59);}),parentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x156))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x30a))['requiredOption']('--database\x20<db>',a2_0x5f47db(0x2b7))[a2_0x5f47db(0x136)]('--table\x20<table>','Master\x20table\x20name')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x17d),a2_0x5f47db(0x281))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x12e),a2_0x5f47db(0x16d))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x256),a2_0x5f47db(0x18a))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2a7),a2_0x5f47db(0x1af))[a2_0x5f47db(0x20a)]('--attributes\x20<json>',a2_0x5f47db(0x2a1))[a2_0x5f47db(0x20a)]('--attributes-file\x20<file>',a2_0x5f47db(0x209))['option'](a2_0x5f47db(0x254),a2_0x5f47db(0x1b6))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x198),a2_0x5f47db(0x269))[a2_0x5f47db(0x20a)]('--customer-group\x20<json>',a2_0x5f47db(0x202))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x23a),a2_0x5f47db(0x218))[a2_0x5f47db(0x2d3)](async(_0x3caaeb,_0x243052)=>{const _0x49f778=a2_0x5f47db,_0x153e9a=new ParentSegmentCreateCommand(),_0x4c1d55=program[_0x49f778(0x1b1)](),_0x3fd640=await createTDXInstance(_0x4c1d55),_0x1626e9=await _0x153e9a[_0x49f778(0x129)]({'options':{..._0x4c1d55,..._0x243052},'args':[_0x3caaeb],'tdx':_0x3fd640});process[_0x49f778(0x13f)](_0x1626e9);}),parentCmd['command'](a2_0x5f47db(0x285))[a2_0x5f47db(0x1d3)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['option'](a2_0x5f47db(0x17d),a2_0x5f47db(0x274))['option'](a2_0x5f47db(0x12e),a2_0x5f47db(0x173))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x256),a2_0x5f47db(0x2bf))[a2_0x5f47db(0x20a)]('--timezone\x20<tz>',a2_0x5f47db(0x220))[a2_0x5f47db(0x20a)]('--add-attributes\x20<json>',a2_0x5f47db(0x298))[a2_0x5f47db(0x20a)]('--add-attributes-file\x20<file>','Add\x20attributes\x20from\x20JSON\x20file')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x27c),a2_0x5f47db(0x1a6))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x273),a2_0x5f47db(0x2dc))[a2_0x5f47db(0x2d3)](async(_0x4c2745,_0x5cb167)=>{const _0x8cd0dd=a2_0x5f47db,_0x298d97=new ParentSegmentUpdateCommand(),_0x476039=program[_0x8cd0dd(0x1b1)](),_0x253239=await createTDXInstance(_0x476039),_0x2fce6f=await _0x298d97[_0x8cd0dd(0x129)]({'options':{..._0x476039,..._0x5cb167},'args':[_0x4c2745],'tdx':_0x253239});process[_0x8cd0dd(0x13f)](_0x2fce6f);}),folderCmd['command'](a2_0x5f47db(0x2e4))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2e7))[a2_0x5f47db(0x20a)]('--description\x20<text>','Folder\x20description')['option'](a2_0x5f47db(0x303),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0x274773,_0x364de0,_0x16fc0f)=>{const _0x962e3b=a2_0x5f47db,_0x3c9963=new SegmentFolderCreateCommand(),_0x2b9c20=program[_0x962e3b(0x1b1)](),_0x1db5a1=await createTDXInstance(_0x2b9c20),_0x12a9cc=await _0x3c9963[_0x962e3b(0x129)]({'options':{..._0x2b9c20,..._0x16fc0f},'args':[_0x274773,_0x364de0],'tdx':_0x1db5a1});process[_0x962e3b(0x13f)](_0x12a9cc);}),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x255))['description'](a2_0x5f47db(0x2d7))['action'](async(_0x24f5bc,_0xc7d1f6)=>{const _0x1a40c1=a2_0x5f47db,_0x1c0f7a=new ActivationsCommand(),_0x470a9f=program[_0x1a40c1(0x1b1)](),_0x2e3a38=await createTDXInstance(_0x470a9f),_0x532105=await _0x1c0f7a[_0x1a40c1(0x129)]({'options':{..._0x470a9f,..._0xc7d1f6},'args':[_0x24f5bc],'tdx':_0x2e3a38});process[_0x1a40c1(0x13f)](_0x532105);});const workflowCmd=program[a2_0x5f47db(0x282)](a2_0x5f47db(0x14c))['alias']('wf')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2f0)),wfProjectCmd=workflowCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x2cd))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2e9)),wfProjectListAction=async(_0x22d082,_0x53c9c0)=>{const _0x3d7831=a2_0x5f47db,_0x48e64d=new WorkflowProjectsCommand(),_0x27745e=program[_0x3d7831(0x1b1)](),_0x1a318b=await createTDXInstance(_0x27745e),_0x449539=await _0x48e64d[_0x3d7831(0x129)]({'options':{..._0x27745e,..._0x53c9c0},'args':_0x22d082?[_0x22d082]:[],'tdx':_0x1a318b});process[_0x3d7831(0x13f)](_0x449539);};function a2_0xa2b0(_0x2b4bc5,_0x55b8fe){const _0x2b6f63=a2_0x2b6f();return a2_0xa2b0=function(_0xa2b0e9,_0x139162){_0xa2b0e9=_0xa2b0e9-0x120;let _0x2c5970=_0x2b6f63[_0xa2b0e9];return _0x2c5970;},a2_0xa2b0(_0x2b4bc5,_0x55b8fe);}wfProjectCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x5f47db(0x2d3)](wfProjectListAction),workflowCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x268))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x186))[a2_0x5f47db(0x2d3)](wfProjectListAction);const wfWorkflowListAction=async(_0x478b29,_0x507f84)=>{const _0x29d96a=a2_0x5f47db,_0x59e7c1=new WorkflowWorkflowsCommand(),_0x26f5e7=program[_0x29d96a(0x1b1)](),_0x4dff67=await createTDXInstance(_0x26f5e7),_0x3eb13e=await _0x59e7c1[_0x29d96a(0x129)]({'options':{..._0x26f5e7,..._0x507f84},'args':_0x478b29?[_0x478b29]:[],'tdx':_0x4dff67});process[_0x29d96a(0x13f)](_0x3eb13e);};workflowCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x155))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1ff))[a2_0x5f47db(0x2d3)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x5f47db(0x282)]('session')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x19d)),wfSessionListAction=async(_0x3ff466,_0x24def0)=>{const _0x4e5c8d=a2_0x5f47db,_0x5ebf08=new WorkflowSessionsCommand(),_0xf62039=program[_0x4e5c8d(0x1b1)](),_0x58bad6=await createTDXInstance(_0xf62039),_0x3b0035=await _0x5ebf08[_0x4e5c8d(0x129)]({'options':{..._0xf62039,..._0x24def0},'args':_0x3ff466?[_0x3ff466]:[],'tdx':_0x58bad6});process['exit'](_0x3b0035);};wfSessionCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x225))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2b2))['option'](a2_0x5f47db(0x293),a2_0x5f47db(0x208))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x247),a2_0x5f47db(0x23f))['option']('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x180))[a2_0x5f47db(0x1d3)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option'](a2_0x5f47db(0x293),a2_0x5f47db(0x208))['option'](a2_0x5f47db(0x247),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1fe),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x5f47db(0x2d3)](wfSessionListAction);const wfAttemptListAction=async(_0x4d9c12,_0x267dbd)=>{const _0x11f184=new WorkflowAttemptsCommand(),_0x52d636=program['opts'](),_0x24761e=await createTDXInstance(_0x52d636),_0x3c490e=await _0x11f184['run']({'options':{..._0x52d636,..._0x267dbd},'args':_0x4d9c12?[_0x4d9c12]:[],'tdx':_0x24761e});process['exit'](_0x3c490e);},attemptCmd=workflowCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1b8))[a2_0x5f47db(0x1d3)]('Workflow\x20attempt\x20management')[a2_0x5f47db(0x150)](a2_0x5f47db(0x29c),a2_0x5f47db(0x283))[a2_0x5f47db(0x150)](a2_0x5f47db(0x2b0),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x5f47db(0x150)]('[task-name]',a2_0x5f47db(0x1b7))['option'](a2_0x5f47db(0x149),a2_0x5f47db(0x174))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1c2),a2_0x5f47db(0x164))['option'](a2_0x5f47db(0x210),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2e0),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x12d),a2_0x5f47db(0x18b))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x27e),a2_0x5f47db(0x219))[a2_0x5f47db(0x2d3)](async(_0xe7d422,_0x2e4bf0,_0x7efba8,_0x4c1d58)=>{const _0x483fa2=a2_0x5f47db;if(_0xe7d422==='list'){await wfAttemptListAction(_0x2e4bf0,_0x4c1d58);return;}if(!_0xe7d422){attemptCmd[_0x483fa2(0x217)]();return;}const _0x568db6=program[_0x483fa2(0x1b1)](),_0xd7ac51=await createTDXInstance(_0x568db6);let _0x4d1be0=0x0;if(!_0x2e4bf0){const _0x289ec4=new WorkflowAttemptCommand();_0x4d1be0=await _0x289ec4[_0x483fa2(0x129)]({'options':{..._0x568db6,..._0x4c1d58},'args':[_0xe7d422],'tdx':_0xd7ac51});}else{if(_0x2e4bf0==='logs'){const _0x2601c6=new WorkflowLogsCommand();_0x4d1be0=await _0x2601c6[_0x483fa2(0x129)]({'options':{..._0x568db6,..._0x4c1d58},'args':_0x7efba8?[_0xe7d422,_0x7efba8]:[_0xe7d422],'tdx':_0xd7ac51});}else{if(_0x2e4bf0==='tasks'){const _0x2bd924=new WorkflowTasksCommand();_0x4d1be0=await _0x2bd924[_0x483fa2(0x129)]({'options':{..._0x568db6,..._0x4c1d58},'args':[_0xe7d422],'tdx':_0xd7ac51});}else{if(_0x2e4bf0===_0x483fa2(0x1fd)){const _0x2234c6=new WorkflowKillCommand();_0x4d1be0=await _0x2234c6['run']({'options':{..._0x568db6,..._0x4c1d58},'args':[_0xe7d422],'tdx':_0xd7ac51});}else{if(_0x2e4bf0===_0x483fa2(0x2c5)){const _0x4964a7=new WorkflowRetryCommand();_0x4d1be0=await _0x4964a7[_0x483fa2(0x129)]({'options':{..._0x568db6,..._0x4c1d58},'args':[_0x483fa2(0x23e)+_0xe7d422],'tdx':_0xd7ac51});}else console[_0x483fa2(0x2b1)](_0x483fa2(0x23d)+_0x2e4bf0),console[_0x483fa2(0x2b1)](_0x483fa2(0x1b0)),_0x4d1be0=0x1;}}}}process[_0x483fa2(0x13f)](_0x4d1be0);});attemptCmd['command'](a2_0x5f47db(0x225))[a2_0x5f47db(0x1d3)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x27e),'Include\x20retried\x20attempts')[a2_0x5f47db(0x2d3)](wfAttemptListAction),workflowCmd[a2_0x5f47db(0x282)]('attempts\x20[project]')['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')['option']('--include-retried',a2_0x5f47db(0x1f3))[a2_0x5f47db(0x2d3)](wfAttemptListAction),workflowCmd['command'](a2_0x5f47db(0x140))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x14a))[a2_0x5f47db(0x20a)]('--from-task\x20<task>',a2_0x5f47db(0x25b))[a2_0x5f47db(0x20a)]('--params\x20<json>',a2_0x5f47db(0x26c))[a2_0x5f47db(0x2d3)](async(_0x36a731,_0x196837)=>{const _0x1f0d18=a2_0x5f47db,_0x296961=new WorkflowRetryCommand(),_0x165b79=program[_0x1f0d18(0x1b1)](),_0x4479d8=await createTDXInstance(_0x165b79),_0x12f10e=await _0x296961[_0x1f0d18(0x129)]({'options':{..._0x165b79,..._0x196837},'args':[_0x36a731],'tdx':_0x4479d8});process['exit'](_0x12f10e);}),workflowCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1fb))['description'](a2_0x5f47db(0x23b))[a2_0x5f47db(0x20a)]('--param\x20<key=value>',a2_0x5f47db(0x272),(_0xa553a8,_0x2b80dd=[])=>[..._0x2b80dd,_0xa553a8],[])['option']('--session-time\x20<time>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')['action'](async(_0x41229d,_0x2bd641)=>{const _0x24cdfe=a2_0x5f47db,_0x2482ea=new WorkflowRunCommand(),_0xe6b92c=program[_0x24cdfe(0x1b1)](),_0x3a3f9d=await createTDXInstance(_0xe6b92c),_0x266df4=await _0x2482ea[_0x24cdfe(0x129)]({'options':{..._0xe6b92c,..._0x2bd641},'args':[_0x41229d],'tdx':_0x3a3f9d});process[_0x24cdfe(0x13f)](_0x266df4);}),workflowCmd[a2_0x5f47db(0x282)]('download\x20<project-name>\x20[output-dir]')['description'](a2_0x5f47db(0x1de))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x182),a2_0x5f47db(0x2d8))[a2_0x5f47db(0x2d3)](async(_0x52b0af,_0x2cae2f,_0x2d4301)=>{const _0x54ae0c=a2_0x5f47db,_0x252a41=new WorkflowDownloadCommand(),_0x49f441=program['opts'](),_0x1bc089=await createTDXInstance(_0x49f441),_0xcf0737=await _0x252a41['run']({'options':{..._0x49f441,..._0x2d4301},'args':[_0x52b0af,_0x2cae2f||'.'],'tdx':_0x1bc089});process[_0x54ae0c(0x13f)](_0xcf0737);}),workflowCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x12f))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1c3))['option'](a2_0x5f47db(0x207),a2_0x5f47db(0x1e9))['option'](a2_0x5f47db(0x182),a2_0x5f47db(0x2ae))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1e6),a2_0x5f47db(0x15e))['action'](async(_0x13f945,_0x5d4299)=>{const _0x482594=a2_0x5f47db,_0x5c364e=new WorkflowPushCommand(),_0x420a13=program[_0x482594(0x1b1)](),_0x2e033e=await createTDXInstance(_0x420a13),_0x4fe60a=await _0x5c364e[_0x482594(0x129)]({'options':{..._0x420a13,..._0x5d4299},'args':_0x13f945?[_0x13f945]:[],'tdx':_0x2e033e});process[_0x482594(0x13f)](_0x4fe60a);}),workflowCmd['command'](a2_0x5f47db(0x1ae))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x19c))['action'](async(_0x3b0b34,_0x204b7c)=>{const _0x13a238=a2_0x5f47db,_0x574ca9=new WorkflowDeleteCommand(),_0x30991e=program[_0x13a238(0x1b1)](),_0x1cd553=await createTDXInstance(_0x30991e),_0x59ff20=await _0x574ca9['run']({'options':{..._0x30991e,..._0x204b7c},'args':[_0x3b0b34],'tdx':_0x1cd553});process[_0x13a238(0x13f)](_0x59ff20);});const jobCmd=program[a2_0x5f47db(0x282)](a2_0x5f47db(0x20f))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x197)),jobListAction=async _0xfb008b=>{const _0x58e76e=a2_0x5f47db,_0x5c9da3=new JobListCommand(),_0x373090=program[_0x58e76e(0x1b1)](),_0x61961d=await createTDXInstance(_0x373090),_0x1ec998=await _0x5c9da3['run']({'options':{..._0x373090,..._0xfb008b},'args':[],'tdx':_0x61961d});process[_0x58e76e(0x13f)](_0x1ec998);};jobCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x205))['description'](a2_0x5f47db(0x13a))['option'](a2_0x5f47db(0x293),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x5f47db(0x2d3)](jobListAction),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x1c8),{'hidden':!![]})['description'](a2_0x5f47db(0x297))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x293),a2_0x5f47db(0x17e))['action'](jobListAction),jobCmd[a2_0x5f47db(0x282)]('show\x20<job-id>')['description']('Show\x20job\x20details')['action'](async(_0x500800,_0x11cc0b)=>{const _0x12b9da=a2_0x5f47db,_0x30f5c1=new JobShowCommand(),_0x48b4bd=program[_0x12b9da(0x1b1)](),_0x381efb=await createTDXInstance(_0x48b4bd),_0x377e7d=await _0x30f5c1[_0x12b9da(0x129)]({'options':{..._0x48b4bd,..._0x11cc0b},'args':[_0x500800],'tdx':_0x381efb});process[_0x12b9da(0x13f)](_0x377e7d);}),jobCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x27b))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2dd))[a2_0x5f47db(0x2d3)](async(_0x53f71b,_0x5d4f10)=>{const _0x3e40eb=a2_0x5f47db,_0xa1ae46=new JobKillCommand(),_0x38917a=program[_0x3e40eb(0x1b1)](),_0x338fc2=await createTDXInstance(_0x38917a),_0x4d5a30=await _0xa1ae46['run']({'options':{..._0x38917a,..._0x5d4f10},'args':[_0x53f71b],'tdx':_0x338fc2});process[_0x3e40eb(0x13f)](_0x4d5a30);}),jobCmd['command'](a2_0x5f47db(0x26b))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1a4))['option']('--job-type\x20<type>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x5f47db(0x1d6))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2c7),a2_0x5f47db(0x25f))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1c1),'Database\x20name\x20(default:\x20information_schema)',a2_0x5f47db(0x1ce))[a2_0x5f47db(0x2d3)](async(_0x301a07,_0xe50b46)=>{const _0x4a8506=a2_0x5f47db,_0x1b0b95=new JobSubmitCommand(),_0x2ca1b1=program['opts'](),_0x5396de=await createTDXInstance(_0x2ca1b1),_0xc3f713=await _0x1b0b95[_0x4a8506(0x129)]({'options':{..._0x2ca1b1,..._0xe50b46},'args':_0x301a07?[_0x301a07]:[],'tdx':_0x5396de});process[_0x4a8506(0x13f)](_0xc3f713);}),jobCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x194))[a2_0x5f47db(0x1d3)]('Get\x20job\x20results')[a2_0x5f47db(0x2d3)](async(_0x151a95,_0x56eb97)=>{const _0x264fa5=a2_0x5f47db,_0x1263cb=new JobResultCommand(),_0x55f90b=program[_0x264fa5(0x1b1)](),_0x51bfb9=await createTDXInstance(_0x55f90b),_0x4f8086=await _0x1263cb[_0x264fa5(0x129)]({'options':{..._0x55f90b,..._0x56eb97},'args':[_0x151a95],'tdx':_0x51bfb9});process[_0x264fa5(0x13f)](_0x4f8086);});const llmCmd=program[a2_0x5f47db(0x282)]('llm')[a2_0x5f47db(0x1d3)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1d2))['description'](a2_0x5f47db(0x2ad))[a2_0x5f47db(0x2d3)](async(_0x2f0b91,_0x5f0b83)=>{const _0x43bb87=a2_0x5f47db,_0x2338b2=new LLMUseCommand(),_0x322da5=program[_0x43bb87(0x1b1)](),_0x187be7=await createTDXInstance(_0x322da5),_0x1c96b4=await _0x2338b2[_0x43bb87(0x129)]({'options':{..._0x322da5,..._0x5f0b83},'args':[_0x2f0b91],'tdx':_0x187be7});process[_0x43bb87(0x13f)](_0x1c96b4);}),llmCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x2fb))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x172))['action'](async _0x12a0af=>{const _0x3b597d=a2_0x5f47db,_0x59cc8d=new LLMModelsCommand(),_0x363d88=program[_0x3b597d(0x1b1)](),_0x484380=await createTDXInstance(_0x363d88),_0x5d2a1f=await _0x59cc8d[_0x3b597d(0x129)]({'options':{..._0x363d88,..._0x12a0af},'args':[],'tdx':_0x484380});process[_0x3b597d(0x13f)](_0x5d2a1f);});const projectCmd=llmCmd[a2_0x5f47db(0x282)]('project')[a2_0x5f47db(0x1d3)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x44838e,_0x2eb824)=>{const _0x18c5ed=a2_0x5f47db,_0x495058=new LLMProjectsCommand(),_0x501136=program[_0x18c5ed(0x1b1)](),_0x931702=await createTDXInstance(_0x501136),_0x504f51=await _0x495058['run']({'options':{..._0x501136,..._0x2eb824},'args':_0x44838e?[_0x44838e]:[],'tdx':_0x931702});process[_0x18c5ed(0x13f)](_0x504f51);};projectCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x27a))[a2_0x5f47db(0x2d3)](llmProjectListAction),llmCmd['command'](a2_0x5f47db(0x268))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2c4))[a2_0x5f47db(0x2d3)](llmProjectListAction),projectCmd['command'](a2_0x5f47db(0x156))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x275))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x17d),a2_0x5f47db(0x1ec))[a2_0x5f47db(0x2d3)](async(_0x446758,_0x5dcd94)=>{const _0x3bb179=a2_0x5f47db,_0x2643eb=new LLMProjectCreateCommand(),_0x5b658f=program[_0x3bb179(0x1b1)](),_0x4a49bd=await createTDXInstance(_0x5b658f),_0x780aa3=await _0x2643eb[_0x3bb179(0x129)]({'options':{..._0x5b658f,..._0x5dcd94},'args':[_0x446758],'tdx':_0x4a49bd});process[_0x3bb179(0x13f)](_0x780aa3);}),projectCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x29d))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x13d))['action'](async(_0x3aa242,_0x18ba3c)=>{const _0x4d286c=a2_0x5f47db,_0x18194b=new LLMProjectDeleteCommand(),_0xb5152c=program[_0x4d286c(0x1b1)](),_0x25a434=await createTDXInstance(_0xb5152c),_0x48e285=await _0x18194b[_0x4d286c(0x129)]({'options':{..._0xb5152c,..._0x18ba3c},'args':[_0x3aa242],'tdx':_0x25a434});process[_0x4d286c(0x13f)](_0x48e285);}),projectCmd['command'](a2_0x5f47db(0x1f4))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1a3))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x292),a2_0x5f47db(0x1d7))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x16a),a2_0x5f47db(0x22c))[a2_0x5f47db(0x2d3)](async(_0x369007,_0x2e235f)=>{const _0x4f0a36=a2_0x5f47db,_0x52a9da=new LLMProjectBackupCommand(),_0xe45018=program[_0x4f0a36(0x1b1)](),_0x132b95=await createTDXInstance(_0xe45018),_0x8acfe4=await _0x52a9da['run']({'options':{..._0xe45018,..._0x2e235f},'args':[_0x369007],'tdx':_0x132b95});process[_0x4f0a36(0x13f)](_0x8acfe4);}),projectCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x27f))[a2_0x5f47db(0x1d3)]('Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2fc),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')['option'](a2_0x5f47db(0x16a),a2_0x5f47db(0x243))[a2_0x5f47db(0x2d3)](async(_0x44b3f2,_0x3670e9)=>{const _0x333bf1=a2_0x5f47db,_0x1ba291=new LLMProjectRestoreCommand(),_0x5a586a=program[_0x333bf1(0x1b1)](),_0x469e7d=await createTDXInstance(_0x5a586a),_0x15bca2=await _0x1ba291[_0x333bf1(0x129)]({'options':{..._0x5a586a,..._0x3670e9},'args':[_0x44b3f2],'tdx':_0x469e7d});process[_0x333bf1(0x13f)](_0x15bca2);});const agentCmd=llmCmd[a2_0x5f47db(0x282)]('agent')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x20d)),llmAgentListAction=async(_0x415831,_0x6d7c0)=>{const _0x5db833=a2_0x5f47db,_0x2b9c99=new LLMAgentsCommand(),_0x1827f4=program[_0x5db833(0x1b1)](),_0x31e816=await createTDXInstance(_0x1827f4),_0x37c384=await _0x2b9c99[_0x5db833(0x129)]({'options':{..._0x1827f4,..._0x6d7c0},'args':_0x415831?[_0x415831]:[],'tdx':_0x31e816});process[_0x5db833(0x13f)](_0x37c384);};agentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x142))[a2_0x5f47db(0x2d3)](llmAgentListAction),llmCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bf))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2d2))[a2_0x5f47db(0x2d3)](llmAgentListAction),agentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x29f))[a2_0x5f47db(0x1d3)]('Show\x20agent\x20details')['action'](async(_0x5425ab,_0x22097a)=>{const _0x35b746=new LLMAgentShowCommand(),_0x466dd6=program['opts'](),_0x318604=await createTDXInstance(_0x466dd6),_0x133308=await _0x35b746['run']({'options':{..._0x466dd6,..._0x22097a},'args':[_0x5425ab],'tdx':_0x318604});process['exit'](_0x133308);}),agentCmd[a2_0x5f47db(0x282)]('create\x20<name>')['description']('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x5f47db(0x20a)]('--system-prompt\x20<text>',a2_0x5f47db(0x301))[a2_0x5f47db(0x20a)]('--model\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','claude-4.5-sonnet')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x27d),a2_0x5f47db(0x1d8))['option']('--max-tool-iterations\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x5f47db(0x20a)]('--temperature\x20<n>',a2_0x5f47db(0x270),a2_0x5f47db(0x13e))[a2_0x5f47db(0x2d3)](async(_0x1e9dd9,_0x18b90a)=>{const _0xc35deb=a2_0x5f47db,_0x4fb7a3=new LLMAgentCreateCommand(),_0x550d07=program[_0xc35deb(0x1b1)](),_0x1f4558=await createTDXInstance(_0x550d07),_0x1c5787=await _0x4fb7a3[_0xc35deb(0x129)]({'options':{..._0x550d07,..._0x18b90a},'args':[_0x1e9dd9],'tdx':_0x1f4558});process[_0xc35deb(0x13f)](_0x1c5787);}),agentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x261))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2bc))['option'](a2_0x5f47db(0x20e),'Agent\x20name')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x22f),'Agent\x20prompt/instructions')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x17d),a2_0x5f47db(0x2b4))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x27d),a2_0x5f47db(0x1d8))['action'](async(_0x47d888,_0x16ba57)=>{const _0x116ff3=a2_0x5f47db,_0x369197=new LLMAgentUpdateCommand(),_0x5b42c6=program[_0x116ff3(0x1b1)](),_0x58955b=await createTDXInstance(_0x5b42c6),_0x295041=await _0x369197[_0x116ff3(0x129)]({'options':{..._0x5b42c6,..._0x16ba57},'args':[_0x47d888],'tdx':_0x58955b});process[_0x116ff3(0x13f)](_0x295041);}),agentCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x19f))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x196))[a2_0x5f47db(0x2d3)](async(_0x22cd0f,_0x1ce06d)=>{const _0x39392b=a2_0x5f47db,_0x2a01b8=new LLMAgentDeleteCommand(),_0x26e431=program[_0x39392b(0x1b1)](),_0x24836b=await createTDXInstance(_0x26e431),_0x260c67=await _0x2a01b8[_0x39392b(0x129)]({'options':{..._0x26e431,..._0x1ce06d},'args':[_0x22cd0f],'tdx':_0x24836b});process[_0x39392b(0x13f)](_0x260c67);}),llmCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x300))[a2_0x5f47db(0x1d3)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x5f47db(0x20a)]('--last',a2_0x5f47db(0x290))[a2_0x5f47db(0x2d3)](async(_0x24360c,_0x2b1328)=>{const _0x3286fe=a2_0x5f47db,_0x2c1bb3=new LLMHistoryCommand(),_0x36d730=program['opts'](),_0x10050e=await createTDXInstance(_0x36d730),_0x2a5266=await _0x2c1bb3['run']({'options':{..._0x36d730,..._0x2b1328},'args':_0x24360c?[_0x24360c]:[],'tdx':_0x10050e});process[_0x3286fe(0x13f)](_0x2a5266);}),llmCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1fa))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x309))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x14f),a2_0x5f47db(0x1b5),a2_0x5f47db(0x16e))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x154),a2_0x5f47db(0x193))['option'](a2_0x5f47db(0x30b),a2_0x5f47db(0x28f))[a2_0x5f47db(0x2d3)](async _0x17e8d9=>{const _0x400766=a2_0x5f47db,_0x163819=new LLMProxyCommand(),_0x180ac4=program[_0x400766(0x1b1)](),_0x514a46=await createTDXInstance(_0x180ac4),_0x4c4cc1={..._0x17e8d9,'port':_0x17e8d9[_0x400766(0x250)]?parseInt(_0x17e8d9[_0x400766(0x250)],0xa):undefined},_0x4214d9=await _0x163819[_0x400766(0x129)]({'options':{..._0x180ac4,..._0x4c4cc1},'args':[],'tdx':_0x514a46});process[_0x400766(0x13f)](_0x4214d9);}),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x12c))[a2_0x5f47db(0x1d3)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)')['option'](a2_0x5f47db(0x168),a2_0x5f47db(0x2d6),'sonnet')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x144),a2_0x5f47db(0x169))[a2_0x5f47db(0x1c0)]()[a2_0x5f47db(0x2a4)](!![])[a2_0x5f47db(0x14d)]('after',a2_0x5f47db(0x2bb))[a2_0x5f47db(0x2d3)](async(_0x42009c,_0x4963ac)=>{const _0x159832=a2_0x5f47db,_0x40c183=program[_0x159832(0x1b1)](),_0x7e6051=Array[_0x159832(0x25d)](_0x42009c)?_0x42009c:[];if(_0x7e6051[0x0]===_0x159832(0x216)){const _0x914050=new ClaudeStatuslineCommand(),_0x2aeb4c=await _0x914050['run']({'options':{..._0x40c183,..._0x4963ac},'args':_0x7e6051[_0x159832(0x1ee)](0x1),'tdx':null});process['exit'](_0x2aeb4c);}if(_0x7e6051[0x0]===_0x159832(0x135)){const _0x307546=new ClaudeUsageCommand(),_0x5f145c=await _0x307546[_0x159832(0x129)]({'options':{..._0x40c183,..._0x4963ac},'args':_0x7e6051[_0x159832(0x1ee)](0x1),'tdx':null});process[_0x159832(0x13f)](_0x5f145c);}const _0x5c07a8=new ClaudeCommand(),_0x492573=await createTDXInstance(_0x40c183),_0x547aba=await _0x5c07a8[_0x159832(0x129)]({'options':{..._0x40c183,..._0x4963ac},'args':_0x7e6051,'tdx':_0x492573});process[_0x159832(0x13f)](_0x547aba);}),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x264))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2e8))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2f4),a2_0x5f47db(0x1e0))['action'](async _0x2c286f=>{const _0x13bb5d=a2_0x5f47db,_0x3e164b=new ContextCommand(),_0x9a6d80=program[_0x13bb5d(0x1b1)](),_0xc71cb=await _0x3e164b[_0x13bb5d(0x129)]({'options':{..._0x9a6d80,..._0x2c286f},'args':[],'tdx':null});process[_0x13bb5d(0x13f)](_0xc71cb);}),program[a2_0x5f47db(0x282)]('use\x20[resource]\x20[value]')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x212))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2f4),a2_0x5f47db(0x1e0))[a2_0x5f47db(0x2d3)](async(_0xa45b68,_0x18386e,_0x66f362)=>{const _0x3d2e47=a2_0x5f47db,_0x35f72a=new UseCommand(),_0x14fb99=program[_0x3d2e47(0x1b1)](),_0x304c7d=[];if(_0xa45b68)_0x304c7d[_0x3d2e47(0x1f1)](_0xa45b68);if(_0x18386e)_0x304c7d[_0x3d2e47(0x1f1)](_0x18386e);const _0x509ef8=await _0x35f72a['run']({'options':{..._0x14fb99,..._0x66f362},'args':_0x304c7d,'tdx':null});process[_0x3d2e47(0x13f)](_0x509ef8);}),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x14b))[a2_0x5f47db(0x1d3)]('Interactive\x20chat\x20selector')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x187),a2_0x5f47db(0x190))[a2_0x5f47db(0x2d3)](async _0x53b6c7=>{const _0x297cab=a2_0x5f47db,_0x5e255f=new ChatsCommand(),_0x6c0b30=program['opts'](),_0x20129f=await createTDXInstance(_0x6c0b30),_0x5e22e5=await _0x5e255f[_0x297cab(0x129)]({'options':{..._0x6c0b30,..._0x53b6c7},'args':[],'tdx':_0x20129f});process[_0x297cab(0x13f)](_0x5e22e5);});const authCmd=program['command'](a2_0x5f47db(0x2f3))['description'](a2_0x5f47db(0x24b));async function runAuthStatusCommand(_0x493d75){const _0x892f90=a2_0x5f47db,_0x519714=new AuthStatusCommand(),_0x2d6e55=program[_0x892f90(0x1b1)](),_0x1b3e6f=await createTDXInstance(_0x2d6e55),_0x5cc06e=await _0x519714[_0x892f90(0x129)]({'options':{..._0x2d6e55,..._0x493d75},'args':[],'tdx':_0x1b3e6f});process[_0x892f90(0x13f)](_0x5cc06e);}authCmd[a2_0x5f47db(0x2d3)](runAuthStatusCommand),authCmd['command'](a2_0x5f47db(0x29a))['description'](a2_0x5f47db(0x22b))[a2_0x5f47db(0x2d3)](runAuthStatusCommand),authCmd[a2_0x5f47db(0x282)]('setup')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2cf))[a2_0x5f47db(0x14d)](a2_0x5f47db(0x257),'\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')[a2_0x5f47db(0x2d3)](async _0x4838ea=>{const _0x592bd4=a2_0x5f47db,_0x13615e=new AuthSetupCommand(),_0x56b08f=program[_0x592bd4(0x1b1)](),_0x19f72d=await createTDXInstance(_0x56b08f),_0x1b9aac=await _0x13615e[_0x592bd4(0x129)]({'options':{..._0x56b08f,..._0x4838ea},'args':[],'tdx':_0x19f72d});process[_0x592bd4(0x13f)](_0x1b9aac);}),authCmd[a2_0x5f47db(0x282)]('clear')[a2_0x5f47db(0x1d3)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x5f47db(0x14d)]('after',a2_0x5f47db(0x260))[a2_0x5f47db(0x2d3)](async _0x32faac=>{const _0x3d67bc=a2_0x5f47db,_0x52f4c8=new AuthClearCommand(),_0x55abf0=program[_0x3d67bc(0x1b1)](),_0x23c761=await _0x52f4c8[_0x3d67bc(0x129)]({'options':{..._0x55abf0,..._0x32faac},'args':[],'tdx':null});process[_0x3d67bc(0x13f)](_0x23c761);}),program[a2_0x5f47db(0x282)](a2_0x5f47db(0x18f))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1dc))['action'](async _0x3006d2=>{const _0x4f02f9=a2_0x5f47db,_0x38ace5=new ProfilesCommand(),_0x47a4cd=program[_0x4f02f9(0x1b1)](),_0x11780c=await _0x38ace5[_0x4f02f9(0x129)]({'options':{..._0x47a4cd,..._0x3006d2},'args':[],'tdx':null});process[_0x4f02f9(0x13f)](_0x11780c);});const engageCmd=program[a2_0x5f47db(0x282)]('engage')[a2_0x5f47db(0x1d3)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x4feaab=>{return async(_0x4cb555,_0x33af07)=>{const _0x408e16=a2_0xa2b0,_0x45b097=new _0x4feaab(),_0x173a86=program['opts'](),_0x165124=await createTDXInstance(_0x173a86),_0x3a91ff=await _0x45b097['run']({'options':{..._0x173a86,..._0x33af07},'args':[_0x4cb555],'tdx':_0x165124});process[_0x408e16(0x13f)](_0x3a91ff);};},createEngageNoArgAction=_0x4e5df6=>{return async _0x357d78=>{const _0x42a735=a2_0xa2b0,_0xa3a52=new _0x4e5df6(),_0x1e2966=program[_0x42a735(0x1b1)](),_0x2b04df=await createTDXInstance(_0x1e2966),_0x525de2=await _0xa3a52['run']({'options':{..._0x1e2966,..._0x357d78},'args':[],'tdx':_0x2b04df});process[_0x42a735(0x13f)](_0x525de2);};},campaignCmd=engageCmd['command']('campaign')['description']('Campaign\x20management'),campaignListAction=async(_0x151138,_0x3f16e2)=>{const _0x39e871=a2_0x5f47db,_0x262d53=new EngageCampaignsCommand(),_0x17576f=program['opts'](),_0x34252a=await createTDXInstance(_0x17576f),_0x4bb05c=await _0x262d53[_0x39e871(0x129)]({'options':{..._0x17576f,..._0x3f16e2},'args':_0x151138?[_0x151138]:[],'tdx':_0x34252a});process[_0x39e871(0x13f)](_0x4bb05c);};campaignCmd['command'](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x176))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2f5),a2_0x5f47db(0x12b))[a2_0x5f47db(0x20a)]('--status\x20<status>',a2_0x5f47db(0x241))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),a2_0x5f47db(0x21e))[a2_0x5f47db(0x2d3)](campaignListAction),engageCmd['command'](a2_0x5f47db(0x245))[a2_0x5f47db(0x1d3)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2f5),a2_0x5f47db(0x12b))['option'](a2_0x5f47db(0x293),a2_0x5f47db(0x241))['option'](a2_0x5f47db(0x204),'Workspace\x20name')[a2_0x5f47db(0x2d3)](campaignListAction),campaignCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x167))[a2_0x5f47db(0x1d3)]('Show\x20campaign\x20details')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),a2_0x5f47db(0x21e))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1eb),a2_0x5f47db(0x263))[a2_0x5f47db(0x2d3)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x5f47db(0x282)]('create')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1d5))[a2_0x5f47db(0x136)](a2_0x5f47db(0x207),a2_0x5f47db(0x306))['requiredOption'](a2_0x5f47db(0x2f5),a2_0x5f47db(0x2db))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),a2_0x5f47db(0x19a))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x20c),'Campaign\x20description')['option'](a2_0x5f47db(0x2ec),a2_0x5f47db(0x1cd))['option'](a2_0x5f47db(0x21c),a2_0x5f47db(0x296))['option']('--json-columns\x20<cols>',a2_0x5f47db(0x24a))[a2_0x5f47db(0x20a)]('--start-at\x20<datetime>',a2_0x5f47db(0x1c5))[a2_0x5f47db(0x20a)]('--timezone\x20<tz>',a2_0x5f47db(0x12a))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x134))['description'](a2_0x5f47db(0x1d4))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),'Workspace\x20name')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x207),'New\x20campaign\x20name')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x20c),'Campaign\x20description')['option'](a2_0x5f47db(0x2ec),a2_0x5f47db(0x1cd))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x21c),a2_0x5f47db(0x296))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2a3),a2_0x5f47db(0x24a))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x148),a2_0x5f47db(0x1c5))[a2_0x5f47db(0x20a)]('--timezone\x20<tz>',a2_0x5f47db(0x12a))[a2_0x5f47db(0x2d3)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x195))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x22a))[a2_0x5f47db(0x20a)]('--workspace\x20<name>',a2_0x5f47db(0x21e))['option'](a2_0x5f47db(0x2b8),'Skip\x20confirmation\x20prompt')[a2_0x5f47db(0x2d3)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x5f47db(0x122))['description'](a2_0x5f47db(0x2e2))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),a2_0x5f47db(0x21e))[a2_0x5f47db(0x2d3)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x5f47db(0x282)]('pause\x20<name-or-id>')[a2_0x5f47db(0x1d3)]('Pause\x20a\x20campaign')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),a2_0x5f47db(0x21e))[a2_0x5f47db(0x2d3)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x5f47db(0x15c))[a2_0x5f47db(0x1d3)]('Resume\x20a\x20paused\x20campaign')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),a2_0x5f47db(0x21e))[a2_0x5f47db(0x2d3)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x5f47db(0x152))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1c4))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),a2_0x5f47db(0x21e))[a2_0x5f47db(0x2d3)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x5f47db(0x282)]('template')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x203)),templateListAction=async(_0x1265cb,_0xc922c2)=>{const _0x2d7dad=a2_0x5f47db,_0x403923=new EngageTemplatesCommand(),_0x319ccb=program['opts'](),_0x250ea5=await createTDXInstance(_0x319ccb),_0x4afde0=await _0x403923['run']({'options':{..._0x319ccb,..._0xc922c2},'args':_0x1265cb?[_0x1265cb]:[],'tdx':_0x250ea5});process[_0x2d7dad(0x13f)](_0x4afde0);};templateCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x2ce))[a2_0x5f47db(0x20a)]('--workspace\x20<name>',a2_0x5f47db(0x21e))[a2_0x5f47db(0x2d3)](templateListAction),engageCmd['command']('templates\x20[pattern]')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x22e))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),a2_0x5f47db(0x21e))[a2_0x5f47db(0x2d3)](templateListAction),templateCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x167))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x253))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),'Workspace\x20name')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1eb),a2_0x5f47db(0x263))[a2_0x5f47db(0x2d3)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0x5f47db(0x262))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x179))[a2_0x5f47db(0x136)](a2_0x5f47db(0x207),'Template\x20name')[a2_0x5f47db(0x136)](a2_0x5f47db(0x123),a2_0x5f47db(0x2fe))[a2_0x5f47db(0x136)]('--html\x20<html>',a2_0x5f47db(0x235))['option']('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x28b),a2_0x5f47db(0x240))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2d9),a2_0x5f47db(0x1cf))[a2_0x5f47db(0x2d3)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x134))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x29b))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x204),a2_0x5f47db(0x21e))[a2_0x5f47db(0x20a)]('--name\x20<name>','New\x20template\x20name')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x123),'Email\x20subject\x20template')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x25c),a2_0x5f47db(0x235))['option'](a2_0x5f47db(0x28b),a2_0x5f47db(0x240))[a2_0x5f47db(0x2d3)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x195))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x143))['option'](a2_0x5f47db(0x204),a2_0x5f47db(0x21e))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2b8),a2_0x5f47db(0x227))[a2_0x5f47db(0x2d3)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x5f47db(0x282)]('workspace')['description'](a2_0x5f47db(0x1ba)),workspaceListAction=async(_0x2e6b44,_0x2492a5)=>{const _0x37f7ad=a2_0x5f47db,_0x5c77e6=new EngageWorkspacesCommand(),_0x2a4d25=program[_0x37f7ad(0x1b1)](),_0x23606b=await createTDXInstance(_0x2a4d25),_0x21a4df=await _0x5c77e6[_0x37f7ad(0x129)]({'options':{..._0x2a4d25,..._0x2492a5},'args':_0x2e6b44?[_0x2e6b44]:[],'tdx':_0x23606b});process[_0x37f7ad(0x13f)](_0x21a4df);};workspaceCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x1bc))[a2_0x5f47db(0x1d3)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5f47db(0x2d3)](workspaceListAction),engageCmd[a2_0x5f47db(0x282)]('workspaces\x20[pattern]')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x14e))[a2_0x5f47db(0x2d3)](workspaceListAction),workspaceCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x167))['description'](a2_0x5f47db(0x2ff))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x1eb),a2_0x5f47db(0x263))[a2_0x5f47db(0x2d3)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x5f47db(0x282)]('create')[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x15f))[a2_0x5f47db(0x136)](a2_0x5f47db(0x207),a2_0x5f47db(0x21e))[a2_0x5f47db(0x20a)](a2_0x5f47db(0x20c),a2_0x5f47db(0x21d))[a2_0x5f47db(0x2d3)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x134))['description']('Update\x20a\x20workspace')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x207),a2_0x5f47db(0x242))['option'](a2_0x5f47db(0x20c),a2_0x5f47db(0x21d))[a2_0x5f47db(0x2d3)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x5f47db(0x282)]('delete\x20<name-or-id>')[a2_0x5f47db(0x1d3)]('Delete\x20a\x20workspace')[a2_0x5f47db(0x20a)](a2_0x5f47db(0x2b8),a2_0x5f47db(0x227))[a2_0x5f47db(0x2d3)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x5f47db(0x282)](a2_0x5f47db(0x133))[a2_0x5f47db(0x1d3)](a2_0x5f47db(0x1c6))['action'](createEngageAction(EngageWorkspaceUseCommand));export{program};export function runCLI(){const _0x28c7a2=a2_0x5f47db;program['parse'](process['argv']);!process['argv'][_0x28c7a2(0x1ee)](0x2)[_0x28c7a2(0x1a8)]&&program['outputHelp']();const _0x4baf79=packageJson[_0x28c7a2(0x2cb)];process[_0x28c7a2(0x280)][_0x28c7a2(0x178)]&&process[_0x28c7a2(0x2a9)][_0x28c7a2(0x1a8)]>0x2&&!_0x4baf79[_0x28c7a2(0x1da)]('.dev')&&checkForUpdate(_0x4baf79)[_0x28c7a2(0x2fa)](_0x44885e=>{_0x44885e&&displayUpdateNotification(_0x44885e);})[_0x28c7a2(0x2ba)](()=>{});}