@treasuredata/tdx 0.7.2 → 0.7.3

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 (111) 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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client/cdp-api-client.js +1 -1
  8. package/dist/client/engage-api-client.js +1 -1
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/rate-limiter.js +1 -1
  12. package/dist/client/td-api-client.js +1 -1
  13. package/dist/client/trino-api-client.js +1 -1
  14. package/dist/client/workflow-client.js +1 -1
  15. package/dist/commands/activations.js +1 -1
  16. package/dist/commands/api-command.js +1 -1
  17. package/dist/commands/auth-command.js +1 -1
  18. package/dist/commands/chat-command.js +1 -1
  19. package/dist/commands/claude-command.js +1 -1
  20. package/dist/commands/claude-statusline-command.js +1 -1
  21. package/dist/commands/claude-usage-command.js +1 -1
  22. package/dist/commands/command.js +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/llm-command.js +1 -1
  29. package/dist/commands/llm-proxy.js +1 -1
  30. package/dist/commands/parent-segment-command.d.ts +5 -4
  31. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js.map +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pwd-command.js +1 -1
  40. package/dist/commands/segment-update-command.js +1 -1
  41. package/dist/commands/segment-use-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/use-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/credential-cache.js +1 -1
  50. package/dist/core/global-context.js +1 -1
  51. package/dist/core/keychain.js +1 -1
  52. package/dist/core/profile.js +1 -1
  53. package/dist/core/project-config.js +1 -1
  54. package/dist/core/session.js +1 -1
  55. package/dist/index.js +1 -1
  56. package/dist/proxy/anthropic-adapter.js +1 -1
  57. package/dist/proxy/claude-usage-tracker.js +1 -1
  58. package/dist/proxy/context-signature.js +1 -1
  59. package/dist/proxy/conversation-utils.js +1 -1
  60. package/dist/proxy/server.js +1 -1
  61. package/dist/proxy/session-cache.js +1 -1
  62. package/dist/sdk/api.js +1 -1
  63. package/dist/sdk/engage.js +1 -1
  64. package/dist/sdk/errors.js +1 -1
  65. package/dist/sdk/index.js +1 -1
  66. package/dist/sdk/job.js +1 -1
  67. package/dist/sdk/llm.js +1 -1
  68. package/dist/sdk/query.js +1 -1
  69. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  70. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  71. package/dist/sdk/segment.d.ts.map +1 -1
  72. package/dist/sdk/segment.js +1 -1
  73. package/dist/sdk/segment.js.map +1 -1
  74. package/dist/sdk/workflow.js +1 -1
  75. package/dist/types/cdp.d.ts +1 -0
  76. package/dist/types/cdp.d.ts.map +1 -1
  77. package/dist/types/endpoints.js +1 -1
  78. package/dist/types/index.js +1 -1
  79. package/dist/utils/agent-ref-parser.js +1 -1
  80. package/dist/utils/chat-cache.js +1 -1
  81. package/dist/utils/colors.js +1 -1
  82. package/dist/utils/command-output.js +1 -1
  83. package/dist/utils/constants.js +1 -1
  84. package/dist/utils/diff.js +1 -1
  85. package/dist/utils/fields-display.d.ts +1 -0
  86. package/dist/utils/fields-display.d.ts.map +1 -1
  87. package/dist/utils/fields-display.js +1 -1
  88. package/dist/utils/fields-display.js.map +1 -1
  89. package/dist/utils/file-permissions.js +1 -1
  90. package/dist/utils/format-detector.js +1 -1
  91. package/dist/utils/formatters.js +1 -1
  92. package/dist/utils/json-loader.js +1 -1
  93. package/dist/utils/llm-backup-utils.js +1 -1
  94. package/dist/utils/model-aliases.js +1 -1
  95. package/dist/utils/model-factors.js +1 -1
  96. package/dist/utils/option-validation.js +1 -1
  97. package/dist/utils/port.js +1 -1
  98. package/dist/utils/process.js +1 -1
  99. package/dist/utils/prompt.js +1 -1
  100. package/dist/utils/segment-path-parser.js +1 -1
  101. package/dist/utils/segment-ref-parser.js +1 -1
  102. package/dist/utils/spinner.js +1 -1
  103. package/dist/utils/sql-parser.js +1 -1
  104. package/dist/utils/sse-parser.js +1 -1
  105. package/dist/utils/string-utils.js +1 -1
  106. package/dist/utils/table-ref-parser.js +1 -1
  107. package/dist/utils/tdx-logger.js +1 -1
  108. package/dist/utils/tree-formatter.js +1 -1
  109. package/dist/utils/version-check.js +1 -1
  110. package/dist/utils/workflow-utils.js +1 -1
  111. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x1c0959,_0x3f8e44){var _0x86b1e8=a0_0x2cf4,_0x53b117=_0x1c0959();while(!![]){try{var _0x3887bc=parseInt(_0x86b1e8(0x13d))/0x1*(-parseInt(_0x86b1e8(0x137))/0x2)+parseInt(_0x86b1e8(0x135))/0x3*(parseInt(_0x86b1e8(0x13f))/0x4)+-parseInt(_0x86b1e8(0x13c))/0x5+parseInt(_0x86b1e8(0x134))/0x6+-parseInt(_0x86b1e8(0x139))/0x7*(-parseInt(_0x86b1e8(0x13b))/0x8)+parseInt(_0x86b1e8(0x138))/0x9*(parseInt(_0x86b1e8(0x136))/0xa)+-parseInt(_0x86b1e8(0x13a))/0xb*(-parseInt(_0x86b1e8(0x13e))/0xc);if(_0x3887bc===_0x3f8e44)break;else _0x53b117['push'](_0x53b117['shift']());}catch(_0x25bf33){_0x53b117['push'](_0x53b117['shift']());}}}(a0_0x23e0,0xc4eac));import{runCLI}from'./cli.js';function a0_0x23e0(){var _0x4d58bc=['1832NLOGvn','6237390UtblsL','1083QNCpik','1167430uQPPwt','54394QjtOQV','9KlbQIG','701484qxGQuZ','196394FRfccs','16kebVKz','608530AJePpT','54dsnZnw','588LHukfn'];a0_0x23e0=function(){return _0x4d58bc;};return a0_0x23e0();}function a0_0x2cf4(_0x2d086b,_0xbf7d0f){var _0x23e08d=a0_0x23e0();return a0_0x2cf4=function(_0x2cf435,_0x20ebe8){_0x2cf435=_0x2cf435-0x134;var _0x413749=_0x23e08d[_0x2cf435];return _0x413749;},a0_0x2cf4(_0x2d086b,_0xbf7d0f);}runCLI();
2
+ (function(_0x4ee444,_0x24cd1e){var _0x2a47a8=a0_0x1e6c,_0x502f80=_0x4ee444();while(!![]){try{var _0x4bc5b9=parseInt(_0x2a47a8(0x89))/0x1+parseInt(_0x2a47a8(0x84))/0x2*(parseInt(_0x2a47a8(0x83))/0x3)+-parseInt(_0x2a47a8(0x8a))/0x4*(parseInt(_0x2a47a8(0x8b))/0x5)+parseInt(_0x2a47a8(0x88))/0x6*(parseInt(_0x2a47a8(0x85))/0x7)+parseInt(_0x2a47a8(0x87))/0x8+-parseInt(_0x2a47a8(0x86))/0x9*(-parseInt(_0x2a47a8(0x8d))/0xa)+-parseInt(_0x2a47a8(0x8c))/0xb;if(_0x4bc5b9===_0x24cd1e)break;else _0x502f80['push'](_0x502f80['shift']());}catch(_0x245bcd){_0x502f80['push'](_0x502f80['shift']());}}}(a0_0x7e4a,0x7651a));import{runCLI}from'./cli.js';function a0_0x1e6c(_0xa511fc,_0x15a69a){var _0x7e4a5b=a0_0x7e4a();return a0_0x1e6c=function(_0x1e6c10,_0x40173d){_0x1e6c10=_0x1e6c10-0x83;var _0x52a90b=_0x7e4a5b[_0x1e6c10];return _0x52a90b;},a0_0x1e6c(_0xa511fc,_0x15a69a);}function a0_0x7e4a(){var _0x1488e0=['58ZmKDmL','7YeYtuv','1069587IQBdAI','1365224YLzXze','5512554VBmRnx','299652nVEIGX','151324pTrRsF','100RYWYBq','11853116tLEdmK','60zCSczZ','22416OpbUuk'];a0_0x7e4a=function(){return _0x1488e0;};return a0_0x7e4a();}runCLI();
@@ -1,4 +1,4 @@
1
1
  {
2
- "gitRevision": "1e38f46",
3
- "buildTime": "2025-12-05 18:19:18+0000"
2
+ "gitRevision": "c14e688",
3
+ "buildTime": "2025-12-05 20:12:38+0000"
4
4
  }
@@ -1 +1 @@
1
- const a1_0x24fdd6=a1_0x17b8;(function(_0x58a978,_0x4f9553){const _0xcc70d1=a1_0x17b8,_0x579114=_0x58a978();while(!![]){try{const _0x30f095=parseInt(_0xcc70d1(0x148))/0x1+-parseInt(_0xcc70d1(0x13a))/0x2+-parseInt(_0xcc70d1(0x149))/0x3+-parseInt(_0xcc70d1(0x147))/0x4+-parseInt(_0xcc70d1(0x14c))/0x5+parseInt(_0xcc70d1(0x14e))/0x6+parseInt(_0xcc70d1(0x140))/0x7*(parseInt(_0xcc70d1(0x14d))/0x8);if(_0x30f095===_0x4f9553)break;else _0x579114['push'](_0x579114['shift']());}catch(_0x14745f){_0x579114['push'](_0x579114['shift']());}}}(a1_0x176d,0x9e3ac));function a1_0x17b8(_0x34d5ad,_0x2e5428){const _0x176dff=a1_0x176d();return a1_0x17b8=function(_0x17b8ba,_0x40ca18){_0x17b8ba=_0x17b8ba-0x13a;let _0x51c93=_0x176dff[_0x17b8ba];return _0x51c93;},a1_0x17b8(_0x34d5ad,_0x2e5428);}function a1_0x176d(){const _0x44da21=['database','job','yellow','green','167656LHguWG','engage','show','Data','llm','workflow','21448hweeAZ','magenta','api','chats','Context','claude','context','1530680lJCofJ','384690kbcgRq','2406570DewamG','parent-segment','use','3117915uYKnfz','2368iIEcyS','7492470JUSvWy','Utilities','cyan','profiles'];a1_0x176d=function(){return _0x44da21;};return a1_0x176d();}import a1_0x4908c3 from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x24fdd6(0x13d),'colorFn':a1_0x4908c3['blue'],'commands':[a1_0x24fdd6(0x152),'table',a1_0x24fdd6(0x13c),'describe','query',a1_0x24fdd6(0x153),a1_0x24fdd6(0x13f)]},{'name':'CDP','colorFn':a1_0x4908c3[a1_0x24fdd6(0x141)],'commands':['segment',a1_0x24fdd6(0x14a),'activations',a1_0x24fdd6(0x13b)]},{'name':'AI','colorFn':a1_0x4908c3[a1_0x24fdd6(0x150)],'commands':['chat',a1_0x24fdd6(0x143),a1_0x24fdd6(0x13e),a1_0x24fdd6(0x145)]},{'name':a1_0x24fdd6(0x144),'colorFn':a1_0x4908c3[a1_0x24fdd6(0x154)],'commands':[a1_0x24fdd6(0x146),a1_0x24fdd6(0x14b),a1_0x24fdd6(0x151),'auth']},{'name':a1_0x24fdd6(0x14f),'colorFn':a1_0x4908c3[a1_0x24fdd6(0x155)],'commands':[a1_0x24fdd6(0x142)]}];
1
+ function a1_0x23d1(_0x42240d,_0x5ecdf8){const _0x172274=a1_0x1722();return a1_0x23d1=function(_0x23d1c4,_0x5709b0){_0x23d1c4=_0x23d1c4-0x182;let _0x9b942f=_0x172274[_0x23d1c4];return _0x9b942f;},a1_0x23d1(_0x42240d,_0x5ecdf8);}const a1_0x3795a6=a1_0x23d1;(function(_0x3d46a5,_0x9070db){const _0x192707=a1_0x23d1,_0x548efc=_0x3d46a5();while(!![]){try{const _0x4c87d0=parseInt(_0x192707(0x184))/0x1*(-parseInt(_0x192707(0x18c))/0x2)+parseInt(_0x192707(0x19d))/0x3+parseInt(_0x192707(0x189))/0x4+-parseInt(_0x192707(0x18e))/0x5*(-parseInt(_0x192707(0x19a))/0x6)+parseInt(_0x192707(0x19e))/0x7*(parseInt(_0x192707(0x197))/0x8)+-parseInt(_0x192707(0x19f))/0x9*(-parseInt(_0x192707(0x18d))/0xa)+-parseInt(_0x192707(0x186))/0xb;if(_0x4c87d0===_0x9070db)break;else _0x548efc['push'](_0x548efc['shift']());}catch(_0x454ffc){_0x548efc['push'](_0x548efc['shift']());}}}(a1_0x1722,0x30284));function a1_0x1722(){const _0x55a48d=['6UsyCCk','chat','query','1151547crCqqu','1072358VKpHzB','245925ATWiRX','workflow','describe','44FAMpIr','Context','10446062ojhdME','magenta','context','1556196lNuoGN','green','segment','11150uLEAID','110GuaKqY','827635sQaVvv','activations','chats','show','profiles','Utilities','api','Data','table','8iTcaOx','blue','use'];a1_0x1722=function(){return _0x55a48d;};return a1_0x1722();}import a1_0x5dd840 from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x3795a6(0x195),'colorFn':a1_0x5dd840[a1_0x3795a6(0x198)],'commands':['database',a1_0x3795a6(0x196),a1_0x3795a6(0x191),a1_0x3795a6(0x183),a1_0x3795a6(0x19c),'job',a1_0x3795a6(0x182)]},{'name':'CDP','colorFn':a1_0x5dd840[a1_0x3795a6(0x187)],'commands':[a1_0x3795a6(0x18b),'parent-segment',a1_0x3795a6(0x18f),'engage']},{'name':'AI','colorFn':a1_0x5dd840['cyan'],'commands':[a1_0x3795a6(0x19b),a1_0x3795a6(0x190),'llm','claude']},{'name':a1_0x3795a6(0x185),'colorFn':a1_0x5dd840['yellow'],'commands':[a1_0x3795a6(0x188),a1_0x3795a6(0x199),a1_0x3795a6(0x192),'auth']},{'name':a1_0x3795a6(0x193),'colorFn':a1_0x5dd840[a1_0x3795a6(0x18a)],'commands':[a1_0x3795a6(0x194)]}];
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwJpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAo1E9B,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;;GAGG;AACH,wBAAgB,MAAM,IAAI,IAAI,CAwB7B"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwJpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAq1E9B,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;;GAGG;AACH,wBAAgB,MAAM,IAAI,IAAI,CAwB7B"}
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x5087ce=a2_0x5269;(function(_0x3793df,_0x1b6edc){const _0x2036e1=a2_0x5269,_0x3c300d=_0x3793df();while(!![]){try{const _0x39cb27=parseInt(_0x2036e1(0x2a6))/0x1+-parseInt(_0x2036e1(0x250))/0x2+-parseInt(_0x2036e1(0x1fc))/0x3*(-parseInt(_0x2036e1(0x2f2))/0x4)+-parseInt(_0x2036e1(0x25e))/0x5+parseInt(_0x2036e1(0x336))/0x6+parseInt(_0x2036e1(0x195))/0x7+-parseInt(_0x2036e1(0x2ac))/0x8*(parseInt(_0x2036e1(0x337))/0x9);if(_0x39cb27===_0x1b6edc)break;else _0x3c300d['push'](_0x3c300d['shift']());}catch(_0x5865e1){_0x3c300d['push'](_0x3c300d['shift']());}}}(a2_0x3c39,0x634f8));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentInfoCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentInfoCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{SegmentPwdCommand}from'./commands/segment-pwd-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';function a2_0x5269(_0xfd222,_0x18ba06){const _0x3c395b=a2_0x3c39();return a2_0x5269=function(_0x5269cd,_0x4cc7ec){_0x5269cd=_0x5269cd-0x194;let _0x435afc=_0x3c395b[_0x5269cd];return _0x435afc;},a2_0x5269(_0xfd222,_0x18ba06);}import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta[a2_0x5087ce(0x1d5)]),__dirname=dirname(__filename),packageJson=JSON[a2_0x5087ce(0x2ad)](readFileSync(join(__dirname,a2_0x5087ce(0x1a4)),a2_0x5087ce(0x31b)));let buildInfo={};try{buildInfo=JSON[a2_0x5087ce(0x2ad)](readFileSync(join(__dirname,a2_0x5087ce(0x272)),'utf-8'));}catch{}if(process['argv'][a2_0x5087ce(0x2aa)](a2_0x5087ce(0x23a))){let versionOutput=a2_0x5087ce(0x301)+packageJson['version'];buildInfo[a2_0x5087ce(0x1fa)]&&(versionOutput+='\x20('+buildInfo[a2_0x5087ce(0x1fa)]+')'),buildInfo[a2_0x5087ce(0x231)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo['buildTime']),console[a2_0x5087ce(0x355)](versionOutput),process['exit'](0x0);}const program=new Command();let description=a2_0x5087ce(0x2a1);buildInfo[a2_0x5087ce(0x1fa)]?description+=a2_0x5087ce(0x34b)+packageJson[a2_0x5087ce(0x360)]+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x5087ce(0x34b)+packageJson['version'];program[a2_0x5087ce(0x37d)](a2_0x5087ce(0x30e))['description'](description),program[a2_0x5087ce(0x212)]('-p,\x20--profile\x20<name>',a2_0x5087ce(0x31c))[a2_0x5087ce(0x212)](a2_0x5087ce(0x25c),a2_0x5087ce(0x288),a2_0x5087ce(0x20e))['option'](a2_0x5087ce(0x22e),a2_0x5087ce(0x1ea))[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),a2_0x5087ce(0x221))[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x364),a2_0x5087ce(0x274))[a2_0x5087ce(0x212)]('--output\x20<file>',a2_0x5087ce(0x227))[a2_0x5087ce(0x212)](a2_0x5087ce(0x266),a2_0x5087ce(0x292))[a2_0x5087ce(0x212)](a2_0x5087ce(0x21d),a2_0x5087ce(0x361),![])[a2_0x5087ce(0x212)](a2_0x5087ce(0x1c8),a2_0x5087ce(0x239),![])[a2_0x5087ce(0x212)](a2_0x5087ce(0x2a5),'Enable\x20verbose\x20logging',![])[a2_0x5087ce(0x212)]('--debug',a2_0x5087ce(0x32e))[a2_0x5087ce(0x212)](a2_0x5087ce(0x300),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')['option'](a2_0x5087ce(0x388),a2_0x5087ce(0x218),'30')[a2_0x5087ce(0x212)](a2_0x5087ce(0x253),'Preview\x20operation\x20without\x20executing',![])[a2_0x5087ce(0x212)]('-y,\x20--yes','Skip\x20confirmation\x20prompts',![])[a2_0x5087ce(0x212)]('--session\x20<id>',a2_0x5087ce(0x2ef))['option']('-d,\x20--database\x20<name>',a2_0x5087ce(0x284))[a2_0x5087ce(0x212)]('--in\x20<name>',a2_0x5087ce(0x2f9))[a2_0x5087ce(0x212)](a2_0x5087ce(0x311),a2_0x5087ce(0x357))[a2_0x5087ce(0x212)]('--llm-project\x20<name>',a2_0x5087ce(0x370)),program[a2_0x5087ce(0x33f)]({'formatHelp':(_0x2afcc8,_0x2d9b24)=>{const _0xe88132=a2_0x5087ce,_0x3b69ae=_0x2d9b24[_0xe88132(0x1c6)](_0x2afcc8,_0x2d9b24),_0x147eaa=0x2,_0x45e79f=0x2;function _0x29450b(_0x30e1b1){const _0x2b8cbf=_0xe88132,_0x12adb0=_0x30e1b1;return!!(_0x12adb0[_0x2b8cbf(0x2ed)]||_0x12adb0[_0x2b8cbf(0x368)]);}function _0x44735a(_0x30a3bb,_0x3f9b59){const _0x34503d=_0xe88132;if(_0x3f9b59){const _0x3902c6=''+_0x30a3bb[_0x34503d(0x2a0)](_0x3b69ae+_0x45e79f)+_0x3f9b59;return _0x3902c6;}return _0x30a3bb;}function _0x2d8dd5(_0x571674){const _0x448bed=_0xe88132;return _0x571674[_0x448bed(0x36d)]('\x0a')[_0x448bed(0x2d4)](/^/gm,'\x20'['repeat'](_0x147eaa));}const _0x28d087=[];_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x381)+_0x2d9b24[_0xe88132(0x36e)](_0x2afcc8));const _0x2a4635=_0x2d9b24['commandDescription'](_0x2afcc8);_0x2a4635&&(_0x28d087[_0xe88132(0x1b3)](''),_0x28d087['push'](_0x2a4635));const _0x1a1a19=_0x2afcc8[_0xe88132(0x1fe)][_0xe88132(0x2a7)](_0x21c2dd=>!_0x29450b(_0x21c2dd));if(_0x1a1a19[_0xe88132(0x387)]>0x0){if(_0x2afcc8[_0xe88132(0x37d)]()===_0xe88132(0x30e)){const _0x26f14e=_0x2afcc8[_0xe88132(0x313)](),_0x5bb766=!_0x26f14e[_0xe88132(0x264)]&&process[_0xe88132(0x1fb)][_0xe88132(0x236)],_0x28637c=COMMAND_CATEGORIES,_0x428851=(_0xc32e98,_0x2a7a11)=>_0x5bb766?_0x2a7a11(_0xc32e98):_0xc32e98,_0x391484=new Map();_0x1a1a19[_0xe88132(0x312)](_0x5a6d40=>{const _0xb79c80=_0xe88132;_0x391484[_0xb79c80(0x2ce)](_0x5a6d40['name'](),_0x5a6d40);}),_0x28637c[_0xe88132(0x312)](_0x1797c7=>{const _0x4b9c30=_0xe88132,_0x16e219=_0x1797c7['commands']['flatMap'](_0x48b97d=>_0x391484[_0x4b9c30(0x26a)](_0x48b97d)??[]);if(_0x16e219[_0x4b9c30(0x387)]>0x0){_0x28d087[_0x4b9c30(0x1b3)](''),_0x28d087[_0x4b9c30(0x1b3)](_0x428851(_0x1797c7[_0x4b9c30(0x37d)]+':',_0x1797c7['colorFn']));const _0x1229ca=_0x16e219[_0x4b9c30(0x220)](_0x29447e=>{const _0x44f06a=_0x4b9c30,_0x5f358b=_0x2d9b24[_0x44f06a(0x198)](_0x29447e),_0xbb78c=_0x2d9b24[_0x44f06a(0x341)](_0x29447e);return _0x44735a(_0x5f358b,_0xbb78c);});_0x28d087[_0x4b9c30(0x1b3)](_0x2d8dd5(_0x1229ca));}}),_0x28d087[_0xe88132(0x1b3)](''),_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x205));}else{const _0x46e8b3=_0x1a1a19['map'](_0xc2e028=>{const _0x55d1be=_0xe88132,_0x4a3a26=_0x2d9b24['subcommandTerm'](_0xc2e028),_0x5f40bb=_0x2d9b24[_0x55d1be(0x341)](_0xc2e028);return _0x44735a(_0x4a3a26,_0x5f40bb);});_0x28d087['push'](''),_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x371)),_0x28d087[_0xe88132(0x1b3)](_0x2d8dd5(_0x46e8b3));}}const _0x3bdd14=_0x2afcc8[_0xe88132(0x2dd)][_0xe88132(0x2a7)](_0x13028a=>!_0x29450b(_0x13028a));if(_0x3bdd14[_0xe88132(0x387)]>0x0){const _0x1b04f8=_0x3bdd14[_0xe88132(0x220)](_0x1a995c=>{const _0x14a296=_0xe88132,_0x3af686=_0x2d9b24[_0x14a296(0x363)](_0x1a995c),_0x408dee=_0x2d9b24[_0x14a296(0x1ff)](_0x1a995c);return _0x44735a(_0x3af686,_0x408dee);});_0x28d087[_0xe88132(0x1b3)](''),_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x2e0)),_0x28d087[_0xe88132(0x1b3)](_0x2d8dd5(_0x1b04f8));}const _0x47c969=(_0x2afcc8[_0xe88132(0x382)]||[])['filter'](_0x27e1f9=>!_0x29450b(_0x27e1f9));if(_0x47c969[_0xe88132(0x387)]>0x0){const _0xb0c73f=_0x47c969[_0xe88132(0x220)](_0x415b45=>{const _0x3b3bfb=_0xe88132,_0x5285a3=_0x2d9b24[_0x3b3bfb(0x1e2)](_0x415b45),_0x14b373=_0x2d9b24['argumentDescription'](_0x415b45);return _0x44735a(_0x5285a3,_0x14b373);});_0x28d087[_0xe88132(0x1b3)](''),_0x28d087[_0xe88132(0x1b3)](_0xe88132(0x35e)),_0x28d087[_0xe88132(0x1b3)](_0x2d8dd5(_0xb0c73f));}return _0x28d087[_0xe88132(0x36d)]('\x0a');},'subcommandTerm':_0x1bb13b=>{const _0x38b40f=a2_0x5087ce,_0x351114=(_0x1bb13b[_0x38b40f(0x382)]||[])[_0x38b40f(0x220)](_0x3fa3dd=>_0x3fa3dd[_0x38b40f(0x356)]?'<'+_0x3fa3dd['name']()+'>':'['+_0x3fa3dd['name']()+']')[_0x38b40f(0x36d)]('\x20'),_0x52ba44=_0x1bb13b[_0x38b40f(0x278)](),_0x4e59fd=_0x52ba44[_0x38b40f(0x387)]>0x0?_0x1bb13b['name']()+',\x20'+_0x52ba44[_0x38b40f(0x36d)](',\x20'):_0x1bb13b['name']();return _0x351114?_0x4e59fd+'\x20'+_0x351114:_0x4e59fd;}}),program[a2_0x5087ce(0x345)](a2_0x5087ce(0x1f7),_0x35c38a=>{const _0x1a3956=a2_0x5087ce,_0x19952b=_0x35c38a[_0x1a3956(0x313)]();if(!_0x19952b[_0x1a3956(0x30d)]){if(_0x19952b[_0x1a3956(0x23b)])_0x19952b[_0x1a3956(0x30d)]=_0x1a3956(0x23b);else{if(_0x19952b['jsonl'])_0x19952b[_0x1a3956(0x30d)]='jsonl';else _0x19952b['tsv']&&(_0x19952b[_0x1a3956(0x30d)]='tsv');}}_0x19952b['in']&&!_0x19952b[_0x1a3956(0x260)]&&(_0x19952b[_0x1a3956(0x260)]=_0x19952b['in']);if(_0x19952b[_0x1a3956(0x2fc)])_0x19952b[_0x1a3956(0x328)]=LogLevel[_0x1a3956(0x2b7)];else{if(_0x19952b[_0x1a3956(0x2dc)])_0x19952b[_0x1a3956(0x328)]=LogLevel[_0x1a3956(0x383)];else _0x19952b[_0x1a3956(0x328)]===undefined&&(_0x19952b[_0x1a3956(0x328)]=LogLevel[_0x1a3956(0x293)]);}});async function createTDXInstance(_0x5d36b8){const _0x497221=a2_0x5087ce,_0xb4131f=await GlobalContext['createAsync'](_0x5d36b8);return _0xb4131f[_0x497221(0x1e8)](_0x5d36b8),TDX[_0x497221(0x1d7)]({'site':_0xb4131f[_0x497221(0x2cd)],'apiKey':_0xb4131f[_0x497221(0x327)],'logLevel':_0xb4131f[_0x497221(0x328)],'profile':_0xb4131f[_0x497221(0x2f3)]});}const databaseCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x260))[a2_0x5087ce(0x1c1)]('db')['description'](a2_0x5087ce(0x2ff)),databaseListAction=async(_0x4dbefb,_0x4667d4)=>{const _0x34b4bf=a2_0x5087ce,_0x39bb3b=new DatabasesCommand(),_0x1a04ab=program[_0x34b4bf(0x313)](),_0x5c7f1d=await createTDXInstance(_0x1a04ab),_0x3d6448=await _0x39bb3b['run']({'options':{..._0x1a04ab,..._0x4667d4},'args':_0x4dbefb?[_0x4dbefb]:[],'tdx':_0x5c7f1d});process['exit'](_0x3d6448);};databaseCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1f2))[a2_0x5087ce(0x2ba)](databaseListAction),program[a2_0x5087ce(0x202)]('databases\x20[pattern]',{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')['action'](databaseListAction),program['command'](a2_0x5087ce(0x1c0))['description']('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x5087ce(0x212)]('--agent\x20<ref>',a2_0x5087ce(0x338))[a2_0x5087ce(0x212)]('--model\x20<name>',a2_0x5087ce(0x1cc))['option'](a2_0x5087ce(0x2b8),a2_0x5087ce(0x35a))[a2_0x5087ce(0x212)]('--new',a2_0x5087ce(0x38a))['action'](async(_0x43be48,_0xeb9af)=>{const _0x490f8b=a2_0x5087ce,_0x1191d3=new ChatCommand(),_0x43ab9f=program[_0x490f8b(0x313)](),_0x5b0417=await createTDXInstance(_0x43ab9f),_0x38f68c=await _0x1191d3[_0x490f8b(0x28e)]({'options':{..._0x43ab9f,..._0xeb9af},'args':_0x43be48,'tdx':_0x5b0417});process['exit'](_0x38f68c);});const apiCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x37f))[a2_0x5087ce(0x2c2)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x5087ce(0x32d)](a2_0x5087ce(0x1a3),a2_0x5087ce(0x245))[a2_0x5087ce(0x212)]('-X,\x20--method\x20<method>',a2_0x5087ce(0x1a0),a2_0x5087ce(0x2cc))[a2_0x5087ce(0x212)]('--data\x20<data>',a2_0x5087ce(0x21c))['option']('-f,\x20--file\x20<path>',a2_0x5087ce(0x308))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1e5),a2_0x5087ce(0x282),(_0x33a45b,_0x29ef4c)=>{return _0x29ef4c?[..._0x29ef4c,_0x33a45b]:[_0x33a45b];})[a2_0x5087ce(0x212)](a2_0x5087ce(0x34a),a2_0x5087ce(0x305),'td')[a2_0x5087ce(0x2ba)](async(_0x1208c5,_0x376dfd)=>{const _0x42e358=a2_0x5087ce;if(!_0x1208c5){apiCmd[_0x42e358(0x1ec)]();return;}const _0x565627=new ApiCommand(),_0x5ab42b=program[_0x42e358(0x313)](),_0x439377=await createTDXInstance(_0x5ab42b),_0x29c256=await _0x565627[_0x42e358(0x28e)]({'options':{..._0x5ab42b,..._0x376dfd},'args':[_0x1208c5],'tdx':_0x439377});process[_0x42e358(0x33d)](_0x29c256);}),tableCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x1ed))['description'](a2_0x5087ce(0x2af)),tableListAction=async(_0x3288f8,_0x23afd0)=>{const _0x3eff2b=a2_0x5087ce,_0x22b4bf=new TablesCommand(),_0x5dedfc=program[_0x3eff2b(0x313)](),_0x3a8b4c=await createTDXInstance(_0x5dedfc);_0x23afd0['in']&&(_0x23afd0['database']=_0x23afd0['in']);const _0x5b12a4=await _0x22b4bf[_0x3eff2b(0x28e)]({'options':{..._0x5dedfc,..._0x23afd0},'args':_0x3288f8?[_0x3288f8]:[],'tdx':_0x3a8b4c});process['exit'](_0x5b12a4);};tableCmd['command'](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e6),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x5087ce(0x25d),a2_0x5087ce(0x2f9))[a2_0x5087ce(0x2ba)](tableListAction),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x330),{'hidden':!![]})[a2_0x5087ce(0x303)](a2_0x5087ce(0x1b2))['option'](a2_0x5087ce(0x2e6),a2_0x5087ce(0x333))[a2_0x5087ce(0x212)](a2_0x5087ce(0x25d),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5087ce(0x2ba)](tableListAction),program[a2_0x5087ce(0x202)]('show\x20[table]')['description']('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')['option'](a2_0x5087ce(0x2e6),a2_0x5087ce(0x1bd))[a2_0x5087ce(0x212)](a2_0x5087ce(0x25d),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5087ce(0x2ba)](async(_0x41a25b,_0x41e8ab)=>{const _0x4f8283=a2_0x5087ce,_0xae9d63=new ShowCommand(),_0x4f2db8=program[_0x4f8283(0x313)](),_0x58ad0a=await createTDXInstance(_0x4f2db8);_0x41e8ab['in']&&(_0x41e8ab[_0x4f8283(0x260)]=_0x41e8ab['in']);const _0xe8408c=await _0xae9d63[_0x4f8283(0x28e)]({'options':{..._0x4f2db8,..._0x41e8ab},'args':_0x41a25b?[_0x41a25b]:[],'tdx':_0x58ad0a});process[_0x4f8283(0x33d)](_0xe8408c);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x256))[a2_0x5087ce(0x1c1)](a2_0x5087ce(0x230))['description']('Describe\x20table\x20schema')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e6),a2_0x5087ce(0x1bd))['option'](a2_0x5087ce(0x25d),a2_0x5087ce(0x2f9))[a2_0x5087ce(0x2ba)](async(_0x46f7a3,_0x2d7ab3)=>{const _0x31ee94=a2_0x5087ce,_0x577db1=new DescribeCommand(),_0x3b9e4b=program['opts'](),_0x2140a8=await createTDXInstance(_0x3b9e4b);_0x2d7ab3['in']&&(_0x2d7ab3[_0x31ee94(0x260)]=_0x2d7ab3['in']);const _0x48805e=await _0x577db1[_0x31ee94(0x28e)]({'options':{..._0x3b9e4b,..._0x2d7ab3},'args':_0x46f7a3?[_0x46f7a3]:[],'tdx':_0x2140a8});process[_0x31ee94(0x33d)](_0x48805e);}),program[a2_0x5087ce(0x202)]('query\x20[sql]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x2ca))[a2_0x5087ce(0x212)]('-d,\x20--database\x20<database>',a2_0x5087ce(0x27a))[a2_0x5087ce(0x212)](a2_0x5087ce(0x25d),a2_0x5087ce(0x2f9))[a2_0x5087ce(0x212)](a2_0x5087ce(0x310),a2_0x5087ce(0x2cb))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2c0),a2_0x5087ce(0x1d0))['option'](a2_0x5087ce(0x29a),a2_0x5087ce(0x347),'40')[a2_0x5087ce(0x2ba)](async(_0x5961f9,_0xce17c3)=>{const _0x16c6ce=a2_0x5087ce,_0x29fdb8=new QueryCommand(),_0x1c5f44=program[_0x16c6ce(0x313)](),_0x4700cb=await createTDXInstance(_0x1c5f44);_0xce17c3['in']&&(_0xce17c3['database']=_0xce17c3['in']);const _0x5593d2=await _0x29fdb8[_0x16c6ce(0x28e)]({'options':{..._0x1c5f44,..._0xce17c3},'args':_0x5961f9?[_0x5961f9]:[],'tdx':_0x4700cb});process['exit'](_0x5593d2);});const segmentCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x1af))[a2_0x5087ce(0x303)](a2_0x5087ce(0x375)),segmentListAction=async(_0x41efd7,_0xa11202)=>{const _0xf5690d=a2_0x5087ce,_0x49ab3b=new SegmentsCommand(),_0x1c2a5b=program['opts'](),_0x26b074=await createTDXInstance(_0x1c2a5b),_0xa5b0df=await _0x49ab3b[_0xf5690d(0x28e)]({'options':{..._0x1c2a5b,..._0xa11202},'args':_0x41efd7?[_0x41efd7]:[],'tdx':_0x26b074});process[_0xf5690d(0x33d)](_0xa5b0df);};segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x297))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2ec))['option'](a2_0x5087ce(0x2a4),a2_0x5087ce(0x2c8))[a2_0x5087ce(0x212)]('--max-depth\x20<depth>',a2_0x5087ce(0x339),'10')['action'](segmentListAction),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x1f3),{'hidden':!![]})['description'](a2_0x5087ce(0x237))[a2_0x5087ce(0x212)]('-r,\x20--recursive',a2_0x5087ce(0x2c8))[a2_0x5087ce(0x212)](a2_0x5087ce(0x348),a2_0x5087ce(0x339),'10')['action'](segmentListAction),segmentCmd['command'](a2_0x5087ce(0x365))[a2_0x5087ce(0x303)]('Set\x20current\x20segment/folder\x20context\x20for\x20navigation')[a2_0x5087ce(0x2ba)](async(_0x374ecd,_0x1b3553)=>{const _0x38717e=a2_0x5087ce,_0x2d801f=new SegmentUseCommand(),_0x18827c=program['opts'](),_0x2a87e7=await createTDXInstance(_0x18827c),_0x1427fc=await _0x2d801f['run']({'options':{..._0x18827c,..._0x1b3553},'args':[_0x374ecd],'tdx':_0x2a87e7});process[_0x38717e(0x33d)](_0x1427fc);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x273))[a2_0x5087ce(0x303)](a2_0x5087ce(0x277))[a2_0x5087ce(0x2ba)](async _0x381426=>{const _0x5417f7=a2_0x5087ce,_0x26c4f0=new SegmentPwdCommand(),_0x20e107=program[_0x5417f7(0x313)](),_0x114386=await createTDXInstance(_0x20e107),_0x1cf584=await _0x26c4f0[_0x5417f7(0x28e)]({'options':{..._0x20e107,..._0x381426},'args':[],'tdx':_0x114386});process[_0x5417f7(0x33d)](_0x1cf584);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x317))[a2_0x5087ce(0x1c1)](a2_0x5087ce(0x28c))[a2_0x5087ce(0x303)](a2_0x5087ce(0x238))[a2_0x5087ce(0x2ba)](async(_0x5cd9a0,_0x45b49e)=>{const _0x5d4964=a2_0x5087ce,_0x5ce721=new SegmentInfoCommand(),_0x46ac5d=program[_0x5d4964(0x313)](),_0x3f9732=await createTDXInstance(_0x46ac5d),_0x31bb70=await _0x5ce721[_0x5d4964(0x28e)]({'options':{..._0x46ac5d,..._0x45b49e},'args':_0x5cd9a0?[_0x5cd9a0]:[],'tdx':_0x3f9732});process[_0x5d4964(0x33d)](_0x31bb70);}),segmentCmd['command'](a2_0x5087ce(0x229))['description']('Show\x20segment\x20schema\x20(column\x20types)')['action'](async(_0x3e18e6,_0x7e51ed)=>{const _0x7ce748=a2_0x5087ce,_0x504b5b=new SegmentDescCommand(),_0x4973bc=program[_0x7ce748(0x313)](),_0x39a2a9=await createTDXInstance(_0x4973bc),_0x48b9e4=await _0x504b5b[_0x7ce748(0x28e)]({'options':{..._0x4973bc,..._0x7e51ed},'args':_0x3e18e6?[_0x3e18e6]:[],'tdx':_0x39a2a9});process[_0x7ce748(0x33d)](_0x48b9e4);}),segmentCmd[a2_0x5087ce(0x202)]('show\x20[segment_name]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x269))[a2_0x5087ce(0x2ba)](async(_0x12f671,_0x42cddb)=>{const _0x48d308=a2_0x5087ce,_0x5da0bc=new SegmentShowCommand(),_0x33949c=program[_0x48d308(0x313)](),_0x109d4d=await createTDXInstance(_0x33949c),_0x3336f0=await _0x5da0bc['run']({'options':{..._0x33949c,..._0x42cddb},'args':_0x12f671?[_0x12f671]:[],'tdx':_0x109d4d});process['exit'](_0x3336f0);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x322))[a2_0x5087ce(0x303)](a2_0x5087ce(0x23c))[a2_0x5087ce(0x2ba)](async(_0x30a18b,_0x361cce)=>{const _0x1c7d0e=a2_0x5087ce,_0x216510=new SegmentFolderListCommand(),_0x26283d=program[_0x1c7d0e(0x313)](),_0x50d34f=await createTDXInstance(_0x26283d),_0x169b0c=await _0x216510[_0x1c7d0e(0x28e)]({'options':{..._0x26283d,..._0x361cce},'args':[_0x30a18b],'tdx':_0x50d34f});process['exit'](_0x169b0c);});const folderCmd=segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x28f))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2bb));folderCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x373))[a2_0x5087ce(0x303)](a2_0x5087ce(0x21e))[a2_0x5087ce(0x2ba)](async(_0x380561,_0x5d4f3b)=>{const _0x29c08a=a2_0x5087ce,_0x16d921=new SegmentFolderShowCommand(),_0x2d85c2=program[_0x29c08a(0x313)](),_0x52ebab=await createTDXInstance(_0x2d85c2),_0x4b67be=await _0x16d921['run']({'options':{..._0x2d85c2,..._0x5d4f3b},'args':[_0x380561],'tdx':_0x52ebab});process['exit'](_0x4b67be);}),segmentCmd['command'](a2_0x5087ce(0x380))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1a5))['action'](async(_0x4c2626,_0x545427)=>{const _0x135ccc=a2_0x5087ce,_0x5129f2=new SegmentSQLCommand(),_0x9bcab0=program[_0x135ccc(0x313)](),_0x1dffa2=await createTDXInstance(_0x9bcab0),_0x525ddf=await _0x5129f2[_0x135ccc(0x28e)]({'options':{..._0x9bcab0,..._0x545427},'args':_0x4c2626?[_0x4c2626]:[],'tdx':_0x1dffa2});process[_0x135ccc(0x33d)](_0x525ddf);}),segmentCmd['command'](a2_0x5087ce(0x2c1))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1ee))[a2_0x5087ce(0x2ba)](async(_0x3e19c7,_0x3c72f4)=>{const _0xe72ce9=a2_0x5087ce,_0x3c29dc=new SegmentFieldsCommand(),_0x35b1e6=program[_0xe72ce9(0x313)](),_0x56bb37=await createTDXInstance(_0x35b1e6),_0x4617be=await _0x3c29dc[_0xe72ce9(0x28e)]({'options':{..._0x35b1e6,..._0x3c72f4},'args':_0x3e19c7?[_0x3e19c7]:[],'tdx':_0x56bb37});process[_0xe72ce9(0x33d)](_0x4617be);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2f7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1ac))[a2_0x5087ce(0x212)](a2_0x5087ce(0x358),a2_0x5087ce(0x247))[a2_0x5087ce(0x212)](a2_0x5087ce(0x216),a2_0x5087ce(0x196))[a2_0x5087ce(0x212)]('--rule-file\x20<file>',a2_0x5087ce(0x276))[a2_0x5087ce(0x212)](a2_0x5087ce(0x31e),a2_0x5087ce(0x259))['option'](a2_0x5087ce(0x280),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x5087ce(0x212)]('--invisible',a2_0x5087ce(0x244))[a2_0x5087ce(0x212)](a2_0x5087ce(0x255),a2_0x5087ce(0x23e))[a2_0x5087ce(0x2ba)](async(_0x463d1c,_0x26ccaa)=>{const _0x17b02c=a2_0x5087ce,_0x2c8a6c=new SegmentCreateCommand(),_0x41f279=program[_0x17b02c(0x313)](),_0xc9fa04=await createTDXInstance(_0x41f279),_0x59df3a=await _0x2c8a6c[_0x17b02c(0x28e)]({'options':{..._0x41f279,..._0x26ccaa},'args':[_0x463d1c],'tdx':_0xc9fa04});process['exit'](_0x59df3a);}),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x33b))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1bf))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1ba),a2_0x5087ce(0x37c))['option']('--description\x20<text>',a2_0x5087ce(0x2fb))[a2_0x5087ce(0x212)]('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x5087ce(0x212)]('--rule-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x5087ce(0x212)](a2_0x5087ce(0x31e),'Move\x20to\x20folder')[a2_0x5087ce(0x212)](a2_0x5087ce(0x280),a2_0x5087ce(0x367))['action'](async(_0x29eda0,_0x396505)=>{const _0x42c47b=a2_0x5087ce,_0x44c109=new SegmentUpdateCommand(),_0x23b93d=program['opts'](),_0x559655=await createTDXInstance(_0x23b93d),_0xea088c=await _0x44c109[_0x42c47b(0x28e)]({'options':{..._0x23b93d,..._0x396505},'args':[_0x29eda0],'tdx':_0x559655});process[_0x42c47b(0x33d)](_0xea088c);});const parentCmd=segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x286))[a2_0x5087ce(0x303)](a2_0x5087ce(0x36f)),parentListAction=async(_0x10c9e1,_0x35fc27)=>{const _0xb02415=a2_0x5087ce,_0xc36355=new ParentSegmentListCommand(),_0x5205a1=program[_0xb02415(0x313)](),_0x4fe751=await createTDXInstance(_0x5205a1),_0x3c6690=await _0xc36355['run']({'options':{..._0x5205a1,..._0x35fc27},'args':_0x10c9e1?[_0x10c9e1]:[],'tdx':_0x4fe751});process[_0xb02415(0x33d)](_0x3c6690);};parentCmd['command']('list\x20[pattern]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x32f))[a2_0x5087ce(0x2ba)](parentListAction),segmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1f5),{'hidden':!![]})[a2_0x5087ce(0x303)](a2_0x5087ce(0x283))[a2_0x5087ce(0x2ba)](parentListAction),parentCmd[a2_0x5087ce(0x202)]('pull\x20[name]')[a2_0x5087ce(0x303)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2b6),a2_0x5087ce(0x1a9))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')['action'](async(_0x3b9475,_0x20f3c9)=>{const _0x12756a=a2_0x5087ce,_0x36c9b1=new ParentSegmentPullCommand(),_0x38fada=program['opts'](),_0x355320=await createTDXInstance(_0x38fada),_0x2eacec=await _0x36c9b1[_0x12756a(0x28e)]({'options':{..._0x38fada,..._0x20f3c9},'args':_0x3b9475?[_0x3b9475]:[],'tdx':_0x355320});process[_0x12756a(0x33d)](_0x2eacec);}),parentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x19a))[a2_0x5087ce(0x303)](a2_0x5087ce(0x251))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1b5),'Skip\x20confirmation\x20prompt')[a2_0x5087ce(0x2ba)](async(_0x13e762,_0x4d022f)=>{const _0x562098=a2_0x5087ce,_0x3b8540=new ParentSegmentPushCommand(),_0x3d8f1f=program['opts'](),_0x4076e=await createTDXInstance(_0x3d8f1f),_0x3a98de=await _0x3b8540[_0x562098(0x28e)]({'options':{..._0x3d8f1f,..._0x4d022f},'args':_0x13e762?[_0x13e762]:[],'tdx':_0x4076e});process[_0x562098(0x33d)](_0x3a98de);}),parentCmd[a2_0x5087ce(0x202)]('validate\x20[file]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x28b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x20b),'Show\x20only\x20master\x20table\x20validation')[a2_0x5087ce(0x212)](a2_0x5087ce(0x290),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x5087ce(0x212)](a2_0x5087ce(0x240),a2_0x5087ce(0x19e))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e4),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1e0),a2_0x5087ce(0x352),a2_0x5087ce(0x1d3))[a2_0x5087ce(0x2ba)](async(_0xbb9638,_0x34831b)=>{const _0x360eb3=a2_0x5087ce,_0x2a9085=new ParentSegmentValidateCommand(),_0x4f7cf6=program[_0x360eb3(0x313)](),_0x36af32=await createTDXInstance(_0x4f7cf6),_0x4e22ca=await _0x2a9085[_0x360eb3(0x28e)]({'options':{..._0x4f7cf6,..._0x34831b},'args':_0xbb9638?[_0xbb9638]:[],'tdx':_0x36af32});process[_0x360eb3(0x33d)](_0x4e22ca);}),parentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2c9))[a2_0x5087ce(0x303)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x5087ce(0x212)](a2_0x5087ce(0x20b),a2_0x5087ce(0x19b))[a2_0x5087ce(0x212)]('--attribute\x20[name]',a2_0x5087ce(0x376))[a2_0x5087ce(0x212)]('--behavior\x20[name]',a2_0x5087ce(0x1b4))['option']('--enriched',a2_0x5087ce(0x1c2))[a2_0x5087ce(0x212)]('--interval\x20<range>',a2_0x5087ce(0x352),a2_0x5087ce(0x1d3))[a2_0x5087ce(0x2ba)](async(_0x6b2721,_0x40658d)=>{const _0x45d03c=a2_0x5087ce,_0x3d8a14=new ParentSegmentPreviewCommand(),_0x19a6ef=program['opts'](),_0x2f1ba2=await createTDXInstance(_0x19a6ef),_0x83595f=await _0x3d8a14[_0x45d03c(0x28e)]({'options':{..._0x19a6ef,..._0x40658d},'args':_0x6b2721?[_0x6b2721]:[],'tdx':_0x2f1ba2});process[_0x45d03c(0x33d)](_0x83595f);}),parentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1eb))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1cd))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1b5),'Skip\x20confirmation\x20prompt')['action'](async(_0x51a0b6,_0x594b78)=>{const _0x51150f=a2_0x5087ce,_0x3ae44f=new ParentSegmentRunCommand(),_0x35e2d0=program['opts'](),_0x5d5179=await createTDXInstance(_0x35e2d0),_0x86e3fb=await _0x3ae44f[_0x51150f(0x28e)]({'options':{..._0x35e2d0,..._0x594b78},'args':_0x51a0b6?[_0x51a0b6]:[],'tdx':_0x5d5179});process[_0x51150f(0x33d)](_0x86e3fb);});const parentSegmentCmd=program[a2_0x5087ce(0x202)]('parent-segment')['alias']('ps')[a2_0x5087ce(0x303)](a2_0x5087ce(0x27f));parentSegmentCmd['command']('list\x20[pattern]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x32f))[a2_0x5087ce(0x2ba)](parentListAction),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x252))['description'](a2_0x5087ce(0x2c6))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2b6),a2_0x5087ce(0x1de))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2ab),a2_0x5087ce(0x209))[a2_0x5087ce(0x2ba)](async(_0x45e2db,_0x172c55)=>{const _0x2ba45a=a2_0x5087ce,_0x12fe73=new ParentSegmentPullCommand(),_0x14ce82=program[_0x2ba45a(0x313)](),_0x42e5e5=await createTDXInstance(_0x14ce82),_0x1cb84d=await _0x12fe73[_0x2ba45a(0x28e)]({'options':{..._0x14ce82,..._0x172c55},'args':_0x45e2db?[_0x45e2db]:[],'tdx':_0x42e5e5});process[_0x2ba45a(0x33d)](_0x1cb84d);}),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x19d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x262))[a2_0x5087ce(0x212)]('-y,\x20--yes',a2_0x5087ce(0x351))['action'](async(_0x11b202,_0x49456e)=>{const _0x1d3008=a2_0x5087ce,_0x34114e=new ParentSegmentPushCommand(),_0x52f0d7=program[_0x1d3008(0x313)](),_0x1fb5c9=await createTDXInstance(_0x52f0d7),_0x24fd22=await _0x34114e[_0x1d3008(0x28e)]({'options':{..._0x52f0d7,..._0x49456e},'args':_0x11b202?[_0x11b202]:[],'tdx':_0x1fb5c9});process[_0x1d3008(0x33d)](_0x24fd22);}),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1b8))[a2_0x5087ce(0x303)](a2_0x5087ce(0x28b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x20b),a2_0x5087ce(0x2da))[a2_0x5087ce(0x212)]('--attribute\x20[name]',a2_0x5087ce(0x267))['option']('--behavior\x20[name]',a2_0x5087ce(0x19e))[a2_0x5087ce(0x212)]('--enriched',a2_0x5087ce(0x225))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1e0),a2_0x5087ce(0x352),a2_0x5087ce(0x1d3))[a2_0x5087ce(0x2ba)](async(_0x29f59e,_0x5884e8)=>{const _0x45fc37=a2_0x5087ce,_0x2efa7d=new ParentSegmentValidateCommand(),_0x647d95=program[_0x45fc37(0x313)](),_0x3362d7=await createTDXInstance(_0x647d95),_0x57823f=await _0x2efa7d[_0x45fc37(0x28e)]({'options':{..._0x647d95,..._0x5884e8},'args':_0x29f59e?[_0x29f59e]:[],'tdx':_0x3362d7});process[_0x45fc37(0x33d)](_0x57823f);}),parentSegmentCmd[a2_0x5087ce(0x202)]('preview\x20[name]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x26d))[a2_0x5087ce(0x212)](a2_0x5087ce(0x20b),'Show\x20master\x20table\x20sample\x20data')['option']('--attribute\x20[name]',a2_0x5087ce(0x376))[a2_0x5087ce(0x212)](a2_0x5087ce(0x240),a2_0x5087ce(0x1b4))['option'](a2_0x5087ce(0x2e4),a2_0x5087ce(0x1c2))['option'](a2_0x5087ce(0x1e0),a2_0x5087ce(0x352),'-1d')[a2_0x5087ce(0x2ba)](async(_0x573d94,_0x57907c)=>{const _0x2ce9e1=a2_0x5087ce,_0x1c4883=new ParentSegmentPreviewCommand(),_0x4c5dce=program[_0x2ce9e1(0x313)](),_0x488386=await createTDXInstance(_0x4c5dce),_0x4f7189=await _0x1c4883[_0x2ce9e1(0x28e)]({'options':{..._0x4c5dce,..._0x57907c},'args':_0x573d94?[_0x573d94]:[],'tdx':_0x488386});process[_0x2ce9e1(0x33d)](_0x4f7189);}),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1eb))['description'](a2_0x5087ce(0x1cd))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1b5),a2_0x5087ce(0x351))[a2_0x5087ce(0x2ba)](async(_0xc9b858,_0x1116fb)=>{const _0x4e09ac=a2_0x5087ce,_0x36b6d8=new ParentSegmentRunCommand(),_0x44c91a=program[_0x4e09ac(0x313)](),_0x2a128d=await createTDXInstance(_0x44c91a),_0x4ffef6=await _0x36b6d8[_0x4e09ac(0x28e)]({'options':{..._0x44c91a,..._0x1116fb},'args':_0xc9b858?[_0xc9b858]:[],'tdx':_0x2a128d});process[_0x4e09ac(0x33d)](_0x4ffef6);}),parentSegmentCmd['command'](a2_0x5087ce(0x2c7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x295))[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),'Output\x20as\x20JSON')[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))[a2_0x5087ce(0x2ba)](async(_0x209a57,_0x3e9c5b)=>{const _0x2b8f71=a2_0x5087ce,_0x52c4b7=new ParentSegmentFieldsCommand(),_0x49a2ca=program[_0x2b8f71(0x313)](),_0x2e9d29=await createTDXInstance(_0x49a2ca),_0x269e94=await _0x52c4b7[_0x2b8f71(0x28e)]({'options':{..._0x49a2ca,..._0x3e9c5b},'args':_0x209a57?[_0x209a57]:[],'tdx':_0x2e9d29});process['exit'](_0x269e94);}),parentSegmentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2f6))[a2_0x5087ce(0x303)](a2_0x5087ce(0x20f))['option'](a2_0x5087ce(0x37e),'Output\x20as\x20JSON')[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))['action'](async(_0x235992,_0x436bfb)=>{const _0x41f4b6=a2_0x5087ce,_0x4b2757=new ParentSegmentInfoCommand(),_0x2dfe07=program[_0x41f4b6(0x313)](),_0x1c475b=await createTDXInstance(_0x2dfe07),_0x3e1ce1=await _0x4b2757[_0x41f4b6(0x28e)]({'options':{..._0x2dfe07,..._0x436bfb},'args':_0x235992?[_0x235992]:[],'tdx':_0x1c475b});process[_0x41f4b6(0x33d)](_0x3e1ce1);}),parentSegmentCmd['command'](a2_0x5087ce(0x1b7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x37b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),a2_0x5087ce(0x26b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))[a2_0x5087ce(0x2ba)](async(_0x162146,_0x3504c0)=>{const _0x14fe41=a2_0x5087ce,_0x8f6358=new ParentSegmentDescCommand(),_0x21d132=program[_0x14fe41(0x313)](),_0x3d93de=await createTDXInstance(_0x21d132),_0x3c2168=await _0x8f6358[_0x14fe41(0x28e)]({'options':{..._0x21d132,..._0x3504c0},'args':_0x162146?[_0x162146]:[],'tdx':_0x3d93de});process[_0x14fe41(0x33d)](_0x3c2168);}),parentSegmentCmd['command'](a2_0x5087ce(0x23f))[a2_0x5087ce(0x303)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),a2_0x5087ce(0x26b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))['action'](async(_0x2e04a2,_0x46afa9)=>{const _0x513e57=a2_0x5087ce,_0x338043=new ParentSegmentSQLCommand(),_0x161c24=program[_0x513e57(0x313)](),_0x8f277b=await createTDXInstance(_0x161c24),_0x1bc15a=await _0x338043['run']({'options':{..._0x161c24,..._0x46afa9},'args':_0x2e04a2?[_0x2e04a2]:[],'tdx':_0x8f277b});process[_0x513e57(0x33d)](_0x1bc15a);}),parentSegmentCmd['command']('show\x20[name]')['description'](a2_0x5087ce(0x296))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e3),a2_0x5087ce(0x21b))[a2_0x5087ce(0x212)](a2_0x5087ce(0x37e),'Output\x20as\x20JSON')[a2_0x5087ce(0x212)](a2_0x5087ce(0x33e),a2_0x5087ce(0x32a))[a2_0x5087ce(0x2ba)](async(_0x3ea0fc,_0x29b76c)=>{const _0xd65c77=a2_0x5087ce,_0x5a7791=new ParentSegmentShowCommand(),_0x36f09b=program[_0xd65c77(0x313)](),_0x5837eb=await createTDXInstance(_0x36f09b),_0x2bcf94=await _0x5a7791[_0xd65c77(0x28e)]({'options':{..._0x36f09b,..._0x29b76c},'args':_0x3ea0fc?[_0x3ea0fc]:[],'tdx':_0x5837eb});process[_0xd65c77(0x33d)](_0x2bcf94);}),parentSegmentCmd[a2_0x5087ce(0x202)]('use\x20[name]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x228))[a2_0x5087ce(0x2ba)](async(_0x2380ea,_0x5147dd)=>{const _0x1d39ef=a2_0x5087ce,_0x431d1a=new UseCommand(),_0x3f9317=program['opts'](),_0x595a82=_0x2380ea?[_0x1d39ef(0x302),_0x2380ea]:[],_0x1f48a2=await _0x431d1a[_0x1d39ef(0x28e)]({'options':{..._0x3f9317,..._0x5147dd},'args':_0x595a82,'tdx':null});process['exit'](_0x1f48a2);}),parentCmd[a2_0x5087ce(0x202)]('create\x20<name>')[a2_0x5087ce(0x303)](a2_0x5087ce(0x2e9))['requiredOption']('--database\x20<db>',a2_0x5087ce(0x33a))['requiredOption'](a2_0x5087ce(0x2e2),'Master\x20table\x20name')[a2_0x5087ce(0x212)](a2_0x5087ce(0x358),a2_0x5087ce(0x22c))[a2_0x5087ce(0x212)]('--schedule-type\x20<type>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option']('--schedule-option\x20<value>',a2_0x5087ce(0x258))[a2_0x5087ce(0x212)]('--timezone\x20<tz>',a2_0x5087ce(0x197))[a2_0x5087ce(0x212)](a2_0x5087ce(0x369),a2_0x5087ce(0x342))['option'](a2_0x5087ce(0x362),a2_0x5087ce(0x2b4))['option']('--behaviors\x20<json>',a2_0x5087ce(0x36a))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2c5),a2_0x5087ce(0x1a1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x279),a2_0x5087ce(0x334))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2c4),a2_0x5087ce(0x2bd))[a2_0x5087ce(0x2ba)](async(_0x506acc,_0x59a367)=>{const _0x5a0a71=a2_0x5087ce,_0x366a65=new ParentSegmentCreateCommand(),_0x444842=program[_0x5a0a71(0x313)](),_0x540b8e=await createTDXInstance(_0x444842),_0x16009a=await _0x366a65[_0x5a0a71(0x28e)]({'options':{..._0x444842,..._0x59a367},'args':[_0x506acc],'tdx':_0x540b8e});process[_0x5a0a71(0x33d)](_0x16009a);}),parentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x285))[a2_0x5087ce(0x303)](a2_0x5087ce(0x31a))[a2_0x5087ce(0x212)]('--description\x20<text>','Updated\x20description')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1e6),a2_0x5087ce(0x1db))['option']('--schedule-option\x20<value>',a2_0x5087ce(0x379))[a2_0x5087ce(0x212)]('--timezone\x20<tz>',a2_0x5087ce(0x1ef))[a2_0x5087ce(0x212)]('--add-attributes\x20<json>',a2_0x5087ce(0x332))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d9),a2_0x5087ce(0x241))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1cb),'Add\x20behaviors\x20as\x20JSON\x20string')['option']('--add-behaviors-file\x20<file>','Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x5087ce(0x2ba)](async(_0x411416,_0x574fa1)=>{const _0x5d5a77=a2_0x5087ce,_0x1d5fe5=new ParentSegmentUpdateCommand(),_0x4bbbf3=program[_0x5d5a77(0x313)](),_0x5f0c86=await createTDXInstance(_0x4bbbf3),_0x21c3ce=await _0x1d5fe5[_0x5d5a77(0x28e)]({'options':{..._0x4bbbf3,..._0x574fa1},'args':[_0x411416],'tdx':_0x5f0c86});process[_0x5d5a77(0x33d)](_0x21c3ce);}),folderCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x326))[a2_0x5087ce(0x303)](a2_0x5087ce(0x233))[a2_0x5087ce(0x212)]('--description\x20<text>',a2_0x5087ce(0x1e7))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2ee),a2_0x5087ce(0x1c9))[a2_0x5087ce(0x2ba)](async(_0x50dc51,_0x104cee,_0x103967)=>{const _0x50b5a6=a2_0x5087ce,_0x316371=new SegmentFolderCreateCommand(),_0x44bf65=program[_0x50b5a6(0x313)](),_0x29f893=await createTDXInstance(_0x44bf65),_0x23238e=await _0x316371[_0x50b5a6(0x28e)]({'options':{..._0x44bf65,..._0x103967},'args':[_0x50dc51,_0x104cee],'tdx':_0x29f893});process['exit'](_0x23238e);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x203))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1da))['action'](async(_0x304766,_0x4bc106)=>{const _0x29e3b6=a2_0x5087ce,_0x11b626=new ActivationsCommand(),_0x1d7414=program[_0x29e3b6(0x313)](),_0x4a05c5=await createTDXInstance(_0x1d7414),_0x458ac4=await _0x11b626[_0x29e3b6(0x28e)]({'options':{..._0x1d7414,..._0x4bc106},'args':[_0x304766],'tdx':_0x4a05c5});process[_0x29e3b6(0x33d)](_0x458ac4);});const workflowCmd=program[a2_0x5087ce(0x202)]('workflow')[a2_0x5087ce(0x1c1)]('wf')['description'](a2_0x5087ce(0x223)),wfProjectCmd=workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2be))[a2_0x5087ce(0x303)](a2_0x5087ce(0x29e)),wfProjectListAction=async(_0xb8e6f9,_0x14bc6e)=>{const _0x557ba1=a2_0x5087ce,_0x455e09=new WorkflowProjectsCommand(),_0x56eb0e=program[_0x557ba1(0x313)](),_0x25d9c1=await createTDXInstance(_0x56eb0e),_0x400322=await _0x455e09[_0x557ba1(0x28e)]({'options':{..._0x56eb0e,..._0x14bc6e},'args':_0xb8e6f9?[_0xb8e6f9]:[],'tdx':_0x25d9c1});process[_0x557ba1(0x33d)](_0x400322);};wfProjectCmd['command'](a2_0x5087ce(0x24a))['description']('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](wfProjectListAction),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x25a))[a2_0x5087ce(0x303)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x5087ce(0x2ba)](wfProjectListAction);const wfWorkflowListAction=async(_0x4d8efb,_0x3db5f6)=>{const _0x281419=a2_0x5087ce,_0x43e290=new WorkflowWorkflowsCommand(),_0x449b31=program[_0x281419(0x313)](),_0xc83dc6=await createTDXInstance(_0x449b31),_0x4ac87c=await _0x43e290['run']({'options':{..._0x449b31,..._0x3db5f6},'args':_0x4d8efb?[_0x4d8efb]:[],'tdx':_0xc83dc6});process[_0x281419(0x33d)](_0x4ac87c);};function a2_0x3c39(){const _0x3cad90=['filter','--subject\x20<subject>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','includes','-u,\x20--use','1776egWzKj','parse','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Table\x20management\x20commands','tasks','--html\x20<html>','0.7','Show\x20campaign\x20details','Attributes\x20from\x20JSON\x20file','System\x20prompt/instructions\x20(default:\x20empty)','-o,\x20--output\x20<file>','TRACE','--temperature\x20<n>','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','action','Segment\x20folder\x20management','Get\x20job\x20results','Customer\x20group\x20from\x20JSON\x20file','project','stderr','-f,\x20--file\x20<path>','fields\x20[parent_name]','summary','Submit\x20a\x20job','--customer-group-file\x20<file>','--behaviors-file\x20<file>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','fields\x20[name]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','preview\x20[file]','Run\x20Trino\x20query\x20with\x20streaming\x20results','Trino\x20catalog\x20(default:\x20td)','GET','site','set','LLM\x20project\x20management','Delete\x20an\x20LLM\x20project','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Update\x20a\x20campaign','Delete\x20an\x20email\x20template','replace','Workflow\x20session\x20management','Show\x20job\x20details','retry','attempt','--clear','Show\x20only\x20master\x20table\x20validation','Create\x20a\x20new\x20campaign','debug','options','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--prompt\x20<text>','Options:','catch','--table\x20<table>','--limit\x20<n>','--enriched','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','-d,\x20--database\x20<database>','--last','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','show\x20<job-id>','slice','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','_hidden','--parent-folder\x20<name>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Setup\x20API\x20key\x20authentication\x20interactively','--email-sender-id\x20<id>','50524FbkIcS','profile','sonnet','--reason\x20<text>','info\x20[name]','create\x20<segment_name>','Delete\x20an\x20agent','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--port\x20<number>','Updated\x20description','trace','Include\x20retried\x20attempts','proxy','Database\x20management\x20commands','--trace','tdx\x20','parent_segment','description','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','show\x20<name-or-id>','error','Read\x20request\x20body\x20from\x20file','--database\x20<name>','End\x20time\x20filter\x20(ISO\x208601\x20format)','show\x20<agent-name>','claude-4.5-sonnet','format','tdx','Plaintext\x20template\x20content','--catalog\x20<catalog>','--parent-segment\x20<name>','forEach','opts','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--resume-from\x20<task>','info\x20[segment_name]','Show\x20workspace\x20details','isArray','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','utf-8','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','clear','--folder\x20<name>','Delete\x20a\x20campaign','Agent\x20name','Update\x20an\x20existing\x20agent','folders\x20<parent_name>','history\x20[chat-id]','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','create\x20<parent_name>\x20<folder_name>','apiKey','logLevel','setup','Output\x20as\x20JSON\x20Lines','Include\x20retried\x20attempts\x20(for\x20list)','--from\x20<timestamp>','addHelpText','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','tables\x20[pattern]','resume\x20<name-or-id>','Add\x20attributes\x20as\x20JSON\x20string','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Customer\x20group\x20as\x20JSON\x20string','--full','4404360LTKcrO','1404zDjPQH','Agent\x20reference\x20(project-name/agent-name)','Maximum\x20recursion\x20depth\x20(default:\x2010)','Master\x20database\x20name','update\x20<segment_name>','push\x20[project-name-or-dir]','exit','--jsonl','configureHelp','attempts\x20[project]','subcommandDescription','Attributes\x20as\x20JSON\x20string','--revision\x20<revision>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','hook','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--max-depth\x20<depth>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--type\x20<api_type>',',\x20version\x20','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','context','Update\x20a\x20workspace','Starter\x20message','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','Skip\x20confirmation\x20prompt','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','workflows\x20[project]','Database\x20name\x20(default:\x20information_schema)','log','required','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--description\x20<text>','chats','Temperature\x20(0.0-2.0,\x20default:\x200.7)','List\x20all\x20available\x20profiles','workspace','delete\x20<name-or-id>','Arguments:','--plaintext\x20<text>','version','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--attributes-file\x20<file>','optionTerm','--tsv','use\x20<path>','trino','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','hidden','--attributes\x20<json>','Behaviors\x20as\x20JSON\x20string','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','join','commandUsage','Parent\x20segment\x20(audience)\x20management','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Commands:','[attempt-id]','show\x20<folder_ref>','campaigns\x20[pattern]','CDP\x20segment\x20management\x20commands','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','usage','List\x20available\x20LLM\x20models','Updated\x20schedule\x20option','delete\x20<project-name-or-id>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','New\x20segment\x20name','name','--json','api\x20[endpoint]','sql\x20[segment_name]','Usage:\x20','registeredArguments','DEBUG','status','use\x20[resource]\x20[value]','-o,\x20--output\x20<folder>','length','--timeout\x20<seconds>','--timezone\x20<tz>','Start\x20a\x20new\x20chat\x20session','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','661913uKitQA','Filtering\x20rule\x20as\x20JSON\x20string','Timezone\x20(e.g.,\x20America/Los_Angeles)','subcommandTerm','templates\x20[pattern]','push\x20[file]','Show\x20master\x20table\x20sample\x20data','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','push\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--project\x20<name>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Behaviors\x20from\x20JSON\x20file','Authentication\x20management','after','../package.json','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--description\x20<desc>','[action]','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Output\x20file\x20path\x20(default:\x20<name>.yml)','Output\x20folder\x20(default:\x20{project_name}.llm)','restore\x20<folder>','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','segment','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Workspace\x20name','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','push','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','-y,\x20--yes','workspaces\x20[pattern]','desc\x20[name]','validate\x20[name]','outputHelp','--name\x20<new_name>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','--json-columns\x20<cols>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--name\x20<name>','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','chat\x20[message...]','alias','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Agent\x20prompt/instructions','list\x20[project]','--include-retried','padWidth','Campaign\x20type\x20(email\x20or\x20push)','--no-color','Parent\x20folder\x20name\x20for\x20nested\x20folders','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--add-behaviors\x20<json>','Model\x20name\x20(default:\x20claude-4.5-sonnet)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','create\x20<name>','sessions\x20[project]','Read\x20SQL\x20query\x20from\x20file','run\x20<workflow>','--workspace\x20<name>','-1d','Update\x20an\x20email\x20template','url','--segment\x20<path>','create','Email\x20template\x20management','--add-attributes-file\x20<file>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','.dev','Reason\x20for\x20killing\x20the\x20attempt','Output\x20file\x20path','--agent\x20<name>','--interval\x20<range>','Campaign\x20description','argumentTerm','Workflow\x20parameter\x20(repeatable)','logs','-H,\x20--header\x20<header>','--schedule-type\x20<type>','Folder\x20description','injectIntoOptions','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','run\x20[name]','help','table','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Updated\x20timezone','--starter-message\x20<text>','Create\x20a\x20new\x20LLM\x20project','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','segments\x20[path]','Revision\x20name\x20(default:\x20timestamp)','parents\x20[pattern]','use\x20<name>','preAction','Resume\x20from\x20specific\x20task\x20(retry)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','gitRevision','stdout','21AmZxSS','--to\x20<timestamp>','commands','optionDescription','--start-at\x20<datetime>','--skip-validation','command','activations\x20<segment_name>','--name\x20<text>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20--\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20previous\x20Claude\x20Code\x20session\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','argument','--master','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','List\x20jobs','us01','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','option','Campaign\x20name','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','4000','--rule\x20<json>','Create\x20an\x20email\x20template','Set\x20operation\x20timeout\x20in\x20seconds','Pause\x20a\x20campaign','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Limit\x20number\x20of\x20rows','Request\x20body\x20as\x20JSON\x20string','--color','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Override\x20project\x20name','map','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','New\x20workspace\x20name','Workflow\x20(Digdag)\x20management\x20commands','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Save\x20output\x20to\x20file','Set\x20or\x20show\x20parent\x20segment\x20context','desc\x20[segment_name]','HTML\x20template\x20content','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Parent\x20segment\x20description','--job-type\x20<type>','--format\x20<format>','--from-task\x20<task>','desc','buildTime','delete\x20<agent-name>','Create\x20segment\x20folder','--params\x20<json>','submit\x20[query]','isTTY','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--version','json','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','argv','Skip\x20population\x20counting','sql\x20[name]','--behavior\x20[name]','Add\x20attributes\x20from\x20JSON\x20file','Create\x20a\x20workspace','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Make\x20segment\x20invisible\x20(default:\x20visible)','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a','Email\x20subject\x20template','Segment\x20description','Create\x20a\x20new\x20agent\x20in\x20current\x20project','agents\x20[pattern]','list\x20[pattern]','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','template','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Email\x20sender\x20ID\x20for\x20delivery','341936YXbInW','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','pull\x20[name]','--dry-run','requiredOption','--no-count-population','describe\x20[table]','Clear\x20session\x20context','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Folder\x20name\x20for\x20organization','projects\x20[pattern]','statusline','--site\x20<site>','--in\x20<database>','2776670auAYAM','information_schema','database','session','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','list','noColor','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--limit\x20<number>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','port','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','get','Output\x20as\x20JSON','Force\x20retry\x20even\x20if\x20not\x20failed','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Workspace\x20name\x20(required)','Workspace\x20description','--model\x20<name>','models','build-info.json','pwd','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','agent','Filtering\x20rule\x20from\x20JSON\x20file','Show\x20current\x20segment/folder\x20context','aliases','--customer-group\x20<json>','Database\x20to\x20query\x20(default:\x20information_schema)','campaign','--max-tool-iterations\x20<n>','use\x20<project-name>','Template\x20name','Parent\x20segment\x20management','--kind\x20<type>','engage','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Database\x20to\x20use\x20(overrides\x20context)','update\x20<name>','parent','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','pause\x20<name-or-id>','allowExcessArguments','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','describe','--status\x20<status>','run','folder','--attribute\x20[name]','Unknown\x20action:\x20','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','INFO','job','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','list\x20[path]','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Workflow\x20attempt\x20management','--limit\x20<rows>','jobs','attempt:','update\x20<name-or-id>','Workflow\x20project\x20management','--name\x20<new-name>','padEnd','AI-native\x20CLI\x20for\x20Treasure\x20Data','--system-prompt\x20<text>','Agent\x20description','-r,\x20--recursive','-v,\x20--verbose','250674fxCbAt'];a2_0x3c39=function(){return _0x3cad90;};return a2_0x3c39();}workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x353))[a2_0x5087ce(0x303)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x5087ce(0x2ba)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x261))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2d5)),wfSessionListAction=async(_0x1ecc0d,_0x4a1764)=>{const _0x56ea78=a2_0x5087ce,_0xe825b0=new WorkflowSessionsCommand(),_0x539ecd=program[_0x56ea78(0x313)](),_0x173a23=await createTDXInstance(_0x539ecd),_0x59b8ec=await _0xe825b0[_0x56ea78(0x28e)]({'options':{..._0x539ecd,..._0x4a1764},'args':_0x1ecc0d?[_0x1ecc0d]:[],'tdx':_0x173a23});process['exit'](_0x59b8ec);};wfSessionCmd['command'](a2_0x5087ce(0x1c4))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2de))[a2_0x5087ce(0x212)](a2_0x5087ce(0x28d),a2_0x5087ce(0x1e9))['option'](a2_0x5087ce(0x32c),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x5087ce(0x1fd),a2_0x5087ce(0x30a))['action'](wfSessionListAction),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1cf))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1a8))[a2_0x5087ce(0x212)](a2_0x5087ce(0x28d),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x32c),a2_0x5087ce(0x206))['option'](a2_0x5087ce(0x1fd),a2_0x5087ce(0x30a))[a2_0x5087ce(0x2ba)](wfSessionListAction);const wfAttemptListAction=async(_0xebca5a,_0x5ba8a6)=>{const _0x5b0387=a2_0x5087ce,_0x586d98=new WorkflowAttemptsCommand(),_0x2bcdda=program['opts'](),_0x3f305c=await createTDXInstance(_0x2bcdda),_0x2f3a64=await _0x586d98[_0x5b0387(0x28e)]({'options':{..._0x2bcdda,..._0x5ba8a6},'args':_0xebca5a?[_0xebca5a]:[],'tdx':_0x3f305c});process['exit'](_0x2f3a64);},attemptCmd=workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2d8))[a2_0x5087ce(0x303)](a2_0x5087ce(0x299))[a2_0x5087ce(0x20a)](a2_0x5087ce(0x372),'Attempt\x20ID')[a2_0x5087ce(0x20a)](a2_0x5087ce(0x1a7),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')['argument']('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x5087ce(0x212)]('--include-subtasks','Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2f5),a2_0x5087ce(0x1dd))[a2_0x5087ce(0x212)](a2_0x5087ce(0x316),a2_0x5087ce(0x1f8))[a2_0x5087ce(0x212)]('--params\x20<json>',a2_0x5087ce(0x226))['option']('--force',a2_0x5087ce(0x26c))[a2_0x5087ce(0x212)]('--include-retried',a2_0x5087ce(0x32b))['action'](async(_0x5744f8,_0x15db8e,_0x3c05c6,_0x11a6d2)=>{const _0x2ca87c=a2_0x5087ce;if(_0x5744f8===_0x2ca87c(0x263)){await wfAttemptListAction(_0x15db8e,_0x11a6d2);return;}if(!_0x5744f8){attemptCmd[_0x2ca87c(0x1ec)]();return;}const _0x4a0b27=program[_0x2ca87c(0x313)](),_0x2d5807=await createTDXInstance(_0x4a0b27);let _0x465d77=0x0;if(!_0x15db8e){const _0x5de90e=new WorkflowAttemptCommand();_0x465d77=await _0x5de90e[_0x2ca87c(0x28e)]({'options':{..._0x4a0b27,..._0x11a6d2},'args':[_0x5744f8],'tdx':_0x2d5807});}else{if(_0x15db8e===_0x2ca87c(0x1e4)){const _0xf23e0d=new WorkflowLogsCommand();_0x465d77=await _0xf23e0d[_0x2ca87c(0x28e)]({'options':{..._0x4a0b27,..._0x11a6d2},'args':_0x3c05c6?[_0x5744f8,_0x3c05c6]:[_0x5744f8],'tdx':_0x2d5807});}else{if(_0x15db8e===_0x2ca87c(0x2b0)){const _0x152213=new WorkflowTasksCommand();_0x465d77=await _0x152213[_0x2ca87c(0x28e)]({'options':{..._0x4a0b27,..._0x11a6d2},'args':[_0x5744f8],'tdx':_0x2d5807});}else{if(_0x15db8e==='kill'){const _0x408dbf=new WorkflowKillCommand();_0x465d77=await _0x408dbf['run']({'options':{..._0x4a0b27,..._0x11a6d2},'args':[_0x5744f8],'tdx':_0x2d5807});}else{if(_0x15db8e===_0x2ca87c(0x2d7)){const _0x372231=new WorkflowRetryCommand();_0x465d77=await _0x372231[_0x2ca87c(0x28e)]({'options':{..._0x4a0b27,..._0x11a6d2},'args':[_0x2ca87c(0x29c)+_0x5744f8],'tdx':_0x2d5807});}else console[_0x2ca87c(0x307)](_0x2ca87c(0x291)+_0x15db8e),console['error'](_0x2ca87c(0x24b)),_0x465d77=0x1;}}}}process['exit'](_0x465d77);});attemptCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1c4))[a2_0x5087ce(0x303)](a2_0x5087ce(0x34c))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1c5),a2_0x5087ce(0x2fd))[a2_0x5087ce(0x2ba)](wfAttemptListAction),workflowCmd['command'](a2_0x5087ce(0x340))[a2_0x5087ce(0x303)](a2_0x5087ce(0x287))['option'](a2_0x5087ce(0x1c5),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd['command']('retry\x20<session-id>')['description'](a2_0x5087ce(0x1bb))[a2_0x5087ce(0x212)](a2_0x5087ce(0x22f),'Resume\x20from\x20specific\x20task')['option'](a2_0x5087ce(0x234),a2_0x5087ce(0x24e))[a2_0x5087ce(0x2ba)](async(_0x8392f8,_0x5daeac)=>{const _0x4de073=a2_0x5087ce,_0x86a741=new WorkflowRetryCommand(),_0x331f76=program[_0x4de073(0x313)](),_0x54312d=await createTDXInstance(_0x331f76),_0x30a0a3=await _0x86a741[_0x4de073(0x28e)]({'options':{..._0x331f76,..._0x5daeac},'args':[_0x8392f8],'tdx':_0x54312d});process[_0x4de073(0x33d)](_0x30a0a3);}),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1d1))['description']('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0x5087ce(0x212)]('--param\x20<key=value>',a2_0x5087ce(0x1e3),(_0x2e61f6,_0x3f419a=[])=>[..._0x3f419a,_0x2e61f6],[])[a2_0x5087ce(0x212)]('--session-time\x20<time>',a2_0x5087ce(0x344))['action'](async(_0x380a0c,_0x48f7b2)=>{const _0x7e435=a2_0x5087ce,_0xdd2e67=new WorkflowRunCommand(),_0x451db7=program[_0x7e435(0x313)](),_0x22d650=await createTDXInstance(_0x451db7),_0x49cd22=await _0xdd2e67['run']({'options':{..._0x451db7,..._0x48f7b2},'args':[_0x380a0c],'tdx':_0x22d650});process[_0x7e435(0x33d)](_0x49cd22);}),workflowCmd[a2_0x5087ce(0x202)]('download\x20<project-name>\x20[output-dir]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x21a))[a2_0x5087ce(0x212)]('--revision\x20<revision>',a2_0x5087ce(0x210))['action'](async(_0x175b58,_0x1bc5d8,_0x472ba1)=>{const _0x5bec55=a2_0x5087ce,_0x5b8b00=new WorkflowDownloadCommand(),_0xce6f26=program[_0x5bec55(0x313)](),_0x27aae6=await createTDXInstance(_0xce6f26),_0x374e1f=await _0x5b8b00[_0x5bec55(0x28e)]({'options':{..._0xce6f26,..._0x472ba1},'args':[_0x175b58,_0x1bc5d8||'.'],'tdx':_0x27aae6});process[_0x5bec55(0x33d)](_0x374e1f);}),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x33c))[a2_0x5087ce(0x303)](a2_0x5087ce(0x314))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1be),a2_0x5087ce(0x21f))[a2_0x5087ce(0x212)](a2_0x5087ce(0x343),a2_0x5087ce(0x1f4))[a2_0x5087ce(0x212)](a2_0x5087ce(0x201),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x5bc1a5,_0x1e5856)=>{const _0x255fd8=a2_0x5087ce,_0x6172dc=new WorkflowPushCommand(),_0x351024=program[_0x255fd8(0x313)](),_0x5e188f=await createTDXInstance(_0x351024),_0x42bc24=await _0x6172dc[_0x255fd8(0x28e)]({'options':{..._0x351024,..._0x1e5856},'args':_0x5bc1a5?[_0x5bc1a5]:[],'tdx':_0x5e188f});process[_0x255fd8(0x33d)](_0x42bc24);}),workflowCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x37a))[a2_0x5087ce(0x303)](a2_0x5087ce(0x265))[a2_0x5087ce(0x2ba)](async(_0x59e062,_0x581b04)=>{const _0x22b8f2=a2_0x5087ce,_0x249c2e=new WorkflowDeleteCommand(),_0x383770=program['opts'](),_0x816029=await createTDXInstance(_0x383770),_0x41873f=await _0x249c2e[_0x22b8f2(0x28e)]({'options':{..._0x383770,..._0x581b04},'args':[_0x59e062],'tdx':_0x816029});process[_0x22b8f2(0x33d)](_0x41873f);});const jobCmd=program['command'](a2_0x5087ce(0x294))[a2_0x5087ce(0x303)]('Job\x20management\x20commands'),jobListAction=async _0x455411=>{const _0x2eb0fb=a2_0x5087ce,_0x1d6348=new JobListCommand(),_0x532b72=program[_0x2eb0fb(0x313)](),_0x48ac61=await createTDXInstance(_0x532b72),_0x2c579c=await _0x1d6348[_0x2eb0fb(0x28e)]({'options':{..._0x532b72,..._0x455411},'args':[],'tdx':_0x48ac61});process['exit'](_0x2c579c);};jobCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x263))[a2_0x5087ce(0x303)](a2_0x5087ce(0x20d))['option']('--status\x20<status>',a2_0x5087ce(0x2a9))['action'](jobListAction),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x29b),{'hidden':!![]})[a2_0x5087ce(0x303)](a2_0x5087ce(0x214))[a2_0x5087ce(0x212)](a2_0x5087ce(0x28d),a2_0x5087ce(0x2a9))['action'](jobListAction),jobCmd['command'](a2_0x5087ce(0x2ea))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2d6))[a2_0x5087ce(0x2ba)](async(_0x3cf9b8,_0x437f40)=>{const _0x464c5c=a2_0x5087ce,_0xf594dc=new JobShowCommand(),_0x38aa1d=program[_0x464c5c(0x313)](),_0x260ae9=await createTDXInstance(_0x38aa1d),_0xd00bc=await _0xf594dc[_0x464c5c(0x28e)]({'options':{..._0x38aa1d,..._0x437f40},'args':[_0x3cf9b8],'tdx':_0x260ae9});process[_0x464c5c(0x33d)](_0xd00bc);}),jobCmd[a2_0x5087ce(0x202)]('kill\x20<job-id>')['description']('Kill\x20a\x20job')[a2_0x5087ce(0x2ba)](async(_0xf47089,_0x354d2c)=>{const _0x35d745=a2_0x5087ce,_0x56ecac=new JobKillCommand(),_0x227240=program[_0x35d745(0x313)](),_0xb64ea7=await createTDXInstance(_0x227240),_0x641578=await _0x56ecac['run']({'options':{..._0x227240,..._0x354d2c},'args':[_0xf47089],'tdx':_0xb64ea7});process[_0x35d745(0x33d)](_0x641578);}),jobCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x235))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2c3))['option'](a2_0x5087ce(0x22d),a2_0x5087ce(0x349),a2_0x5087ce(0x366))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2c0),'Read\x20query\x20from\x20file')[a2_0x5087ce(0x212)](a2_0x5087ce(0x309),a2_0x5087ce(0x354),a2_0x5087ce(0x25f))[a2_0x5087ce(0x2ba)](async(_0x3ef667,_0x352d5c)=>{const _0xc760a0=a2_0x5087ce,_0x3927e9=new JobSubmitCommand(),_0x444478=program[_0xc760a0(0x313)](),_0x5e1a7e=await createTDXInstance(_0x444478),_0x2adc84=await _0x3927e9['run']({'options':{..._0x444478,..._0x352d5c},'args':_0x3ef667?[_0x3ef667]:[],'tdx':_0x5e1a7e});process[_0xc760a0(0x33d)](_0x2adc84);}),jobCmd[a2_0x5087ce(0x202)]('result\x20<job-id>')['description'](a2_0x5087ce(0x2bc))[a2_0x5087ce(0x2ba)](async(_0x241e54,_0x4fab00)=>{const _0x33bc91=a2_0x5087ce,_0x45f8fc=new JobResultCommand(),_0x3fd864=program[_0x33bc91(0x313)](),_0x48aac4=await createTDXInstance(_0x3fd864),_0x502822=await _0x45f8fc[_0x33bc91(0x28e)]({'options':{..._0x3fd864,..._0x4fab00},'args':[_0x241e54],'tdx':_0x48aac4});process[_0x33bc91(0x33d)](_0x502822);});const llmCmd=program['command']('llm')[a2_0x5087ce(0x303)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x27d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x304))[a2_0x5087ce(0x2ba)](async(_0x229f0a,_0x2f2305)=>{const _0x113042=a2_0x5087ce,_0x2f4425=new LLMUseCommand(),_0xc0891e=program[_0x113042(0x313)](),_0x259f1c=await createTDXInstance(_0xc0891e),_0x323080=await _0x2f4425['run']({'options':{..._0xc0891e,..._0x2f2305},'args':[_0x229f0a],'tdx':_0x259f1c});process[_0x113042(0x33d)](_0x323080);}),llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x271))[a2_0x5087ce(0x303)](a2_0x5087ce(0x378))[a2_0x5087ce(0x2ba)](async _0x2d44b7=>{const _0xedcca5=a2_0x5087ce,_0x509994=new LLMModelsCommand(),_0x14adfb=program[_0xedcca5(0x313)](),_0x426148=await createTDXInstance(_0x14adfb),_0x4f1e7a=await _0x509994[_0xedcca5(0x28e)]({'options':{..._0x14adfb,..._0x2d44b7},'args':[],'tdx':_0x426148});process[_0xedcca5(0x33d)](_0x4f1e7a);});const projectCmd=llmCmd['command']('project')[a2_0x5087ce(0x303)](a2_0x5087ce(0x2cf)),llmProjectListAction=async(_0x5e7b67,_0x42dec2)=>{const _0x520c88=a2_0x5087ce,_0x1d6353=new LLMProjectsCommand(),_0xe6399e=program[_0x520c88(0x313)](),_0x36cc41=await createTDXInstance(_0xe6399e),_0x419ab7=await _0x1d6353[_0x520c88(0x28e)]({'options':{..._0xe6399e,..._0x42dec2},'args':_0x5e7b67?[_0x5e7b67]:[],'tdx':_0x36cc41});process['exit'](_0x419ab7);};projectCmd['command'](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5087ce(0x2ba)](llmProjectListAction),llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x25a))['description'](a2_0x5087ce(0x315))[a2_0x5087ce(0x2ba)](llmProjectListAction),projectCmd[a2_0x5087ce(0x202)]('create\x20<name>')[a2_0x5087ce(0x303)](a2_0x5087ce(0x1f1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x358),'Project\x20description')[a2_0x5087ce(0x2ba)](async(_0x4753f4,_0x392c4c)=>{const _0x2003bf=a2_0x5087ce,_0x3ed1ab=new LLMProjectCreateCommand(),_0x1badcb=program[_0x2003bf(0x313)](),_0x3902d=await createTDXInstance(_0x1badcb),_0x8d9a00=await _0x3ed1ab['run']({'options':{..._0x1badcb,..._0x392c4c},'args':[_0x4753f4],'tdx':_0x3902d});process['exit'](_0x8d9a00);}),projectCmd['command']('delete\x20<name>')['description'](a2_0x5087ce(0x2d0))[a2_0x5087ce(0x2ba)](async(_0x1a2d5a,_0x4345c9)=>{const _0x330760=a2_0x5087ce,_0x222e9c=new LLMProjectDeleteCommand(),_0x3a7533=program['opts'](),_0x291006=await createTDXInstance(_0x3a7533),_0x6d3f49=await _0x222e9c[_0x330760(0x28e)]({'options':{..._0x3a7533,..._0x4345c9},'args':[_0x1a2d5a],'tdx':_0x291006});process[_0x330760(0x33d)](_0x6d3f49);}),projectCmd[a2_0x5087ce(0x202)]('backup\x20<name>')['description'](a2_0x5087ce(0x346))[a2_0x5087ce(0x212)](a2_0x5087ce(0x386),a2_0x5087ce(0x1aa))[a2_0x5087ce(0x212)](a2_0x5087ce(0x253),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x5087ce(0x2ba)](async(_0x2c4bfd,_0x406410)=>{const _0x8ac7ee=a2_0x5087ce,_0xd235f7=new LLMProjectBackupCommand(),_0xe20a20=program['opts'](),_0x2fd700=await createTDXInstance(_0xe20a20),_0x5c8c1d=await _0xd235f7[_0x8ac7ee(0x28e)]({'options':{..._0xe20a20,..._0x406410},'args':[_0x2c4bfd],'tdx':_0x2fd700});process[_0x8ac7ee(0x33d)](_0x5c8c1d);}),projectCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1ab))[a2_0x5087ce(0x303)](a2_0x5087ce(0x207))[a2_0x5087ce(0x212)](a2_0x5087ce(0x29f),a2_0x5087ce(0x211))[a2_0x5087ce(0x212)](a2_0x5087ce(0x253),a2_0x5087ce(0x2ae))['action'](async(_0x2f0aae,_0x37c1a3)=>{const _0x3ba14c=a2_0x5087ce,_0x38fde2=new LLMProjectRestoreCommand(),_0x32c877=program[_0x3ba14c(0x313)](),_0xfb57b5=await createTDXInstance(_0x32c877),_0x52ca2f=await _0x38fde2[_0x3ba14c(0x28e)]({'options':{..._0x32c877,..._0x37c1a3},'args':[_0x2f0aae],'tdx':_0xfb57b5});process['exit'](_0x52ca2f);});const agentCmd=llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x275))[a2_0x5087ce(0x303)]('LLM\x20agent\x20management'),llmAgentListAction=async(_0x461bbc,_0x3b306e)=>{const _0x30300d=a2_0x5087ce,_0x7389e7=new LLMAgentsCommand(),_0x4655b2=program[_0x30300d(0x313)](),_0x359d8e=await createTDXInstance(_0x4655b2),_0x3454cd=await _0x7389e7[_0x30300d(0x28e)]({'options':{..._0x4655b2,..._0x3b306e},'args':_0x461bbc?[_0x461bbc]:[],'tdx':_0x359d8e});process['exit'](_0x3454cd);};agentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)')['action'](llmAgentListAction),llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x249))[a2_0x5087ce(0x303)](a2_0x5087ce(0x325))[a2_0x5087ce(0x2ba)](llmAgentListAction),agentCmd['command'](a2_0x5087ce(0x30b))[a2_0x5087ce(0x303)]('Show\x20agent\x20details')[a2_0x5087ce(0x2ba)](async(_0x5ed6cd,_0x1c505e)=>{const _0x4325c4=a2_0x5087ce,_0x126b7d=new LLMAgentShowCommand(),_0x3925cb=program[_0x4325c4(0x313)](),_0x492a3f=await createTDXInstance(_0x3925cb),_0xf530f8=await _0x126b7d[_0x4325c4(0x28e)]({'options':{..._0x3925cb,..._0x1c505e},'args':[_0x5ed6cd],'tdx':_0x492a3f});process['exit'](_0xf530f8);}),agentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1ce))[a2_0x5087ce(0x303)](a2_0x5087ce(0x248))['option'](a2_0x5087ce(0x2a2),a2_0x5087ce(0x2b5))[a2_0x5087ce(0x212)](a2_0x5087ce(0x270),a2_0x5087ce(0x24d),a2_0x5087ce(0x30c))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1f0),a2_0x5087ce(0x34f))['option'](a2_0x5087ce(0x27c),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')['option'](a2_0x5087ce(0x2b8),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x5087ce(0x2b2))['action'](async(_0x54768,_0x1b800b)=>{const _0x277696=a2_0x5087ce,_0x46777e=new LLMAgentCreateCommand(),_0xf058cb=program[_0x277696(0x313)](),_0x1f2160=await createTDXInstance(_0xf058cb),_0x33a1ce=await _0x46777e['run']({'options':{..._0xf058cb,..._0x1b800b},'args':[_0x54768],'tdx':_0x1f2160});process['exit'](_0x33a1ce);}),agentCmd[a2_0x5087ce(0x202)]('update\x20<agent-name>')[a2_0x5087ce(0x303)](a2_0x5087ce(0x321))[a2_0x5087ce(0x212)](a2_0x5087ce(0x204),a2_0x5087ce(0x320))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2df),a2_0x5087ce(0x1c3))['option'](a2_0x5087ce(0x358),a2_0x5087ce(0x2a3))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1f0),'Starter\x20message')[a2_0x5087ce(0x2ba)](async(_0x2a4d07,_0x53a6d8)=>{const _0x5073ad=a2_0x5087ce,_0x34c6de=new LLMAgentUpdateCommand(),_0x5e5a7b=program[_0x5073ad(0x313)](),_0x19fe3d=await createTDXInstance(_0x5e5a7b),_0x28354a=await _0x34c6de['run']({'options':{..._0x5e5a7b,..._0x53a6d8},'args':[_0x2a4d07],'tdx':_0x19fe3d});process['exit'](_0x28354a);}),agentCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x232))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2f8))[a2_0x5087ce(0x2ba)](async(_0x35b8f0,_0x12bf25)=>{const _0x42cd91=a2_0x5087ce,_0x33f04f=new LLMAgentDeleteCommand(),_0x2375ff=program['opts'](),_0x28f08c=await createTDXInstance(_0x2375ff),_0x4b7bf4=await _0x33f04f[_0x42cd91(0x28e)]({'options':{..._0x2375ff,..._0x12bf25},'args':[_0x35b8f0],'tdx':_0x28f08c});process[_0x42cd91(0x33d)](_0x4b7bf4);}),llmCmd['command'](a2_0x5087ce(0x323))[a2_0x5087ce(0x303)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2e7),a2_0x5087ce(0x2d1))[a2_0x5087ce(0x2ba)](async(_0x300fab,_0x213e6c)=>{const _0x24ebfd=a2_0x5087ce,_0x3d9c48=new LLMHistoryCommand(),_0x23fd77=program[_0x24ebfd(0x313)](),_0x45ff4f=await createTDXInstance(_0x23fd77),_0x35d6ab=await _0x3d9c48[_0x24ebfd(0x28e)]({'options':{..._0x23fd77,..._0x213e6c},'args':_0x300fab?[_0x300fab]:[],'tdx':_0x45ff4f});process[_0x24ebfd(0x33d)](_0x35d6ab);}),llmCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x2fe))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1f9))['option'](a2_0x5087ce(0x2fa),a2_0x5087ce(0x36c),a2_0x5087ce(0x215))[a2_0x5087ce(0x212)](a2_0x5087ce(0x19f),a2_0x5087ce(0x36b))['option'](a2_0x5087ce(0x1df),a2_0x5087ce(0x1ae))[a2_0x5087ce(0x2ba)](async _0xdd9b7=>{const _0x466fff=a2_0x5087ce,_0xe923de=new LLMProxyCommand(),_0xcb44ca=program[_0x466fff(0x313)](),_0x612783=await createTDXInstance(_0xcb44ca),_0xbc4141={..._0xdd9b7,'port':_0xdd9b7[_0x466fff(0x268)]?parseInt(_0xdd9b7['port'],0xa):undefined},_0x699a37=await _0xe923de[_0x466fff(0x28e)]({'options':{..._0xcb44ca,..._0xbc4141},'args':[],'tdx':_0x612783});process[_0x466fff(0x33d)](_0x699a37);}),program['command']('claude\x20[args...]')[a2_0x5087ce(0x303)](a2_0x5087ce(0x1ad))[a2_0x5087ce(0x212)](a2_0x5087ce(0x270),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x5087ce(0x2f4))[a2_0x5087ce(0x212)]('--no-proxy',a2_0x5087ce(0x2e5))['allowUnknownOption']()[a2_0x5087ce(0x28a)](!![])[a2_0x5087ce(0x32d)](a2_0x5087ce(0x1a3),a2_0x5087ce(0x208))[a2_0x5087ce(0x2ba)](async(_0x4646d4,_0x29f156)=>{const _0x371d9d=a2_0x5087ce,_0x2bce7e=program[_0x371d9d(0x313)](),_0x3f1394=Array[_0x371d9d(0x319)](_0x4646d4)?_0x4646d4:[];if(_0x3f1394[0x0]===_0x371d9d(0x25b)){const _0x4b3d67=new ClaudeStatuslineCommand(),_0x455aad=await _0x4b3d67['run']({'options':{..._0x2bce7e,..._0x29f156},'args':_0x3f1394['slice'](0x1),'tdx':null});process[_0x371d9d(0x33d)](_0x455aad);}if(_0x3f1394[0x0]===_0x371d9d(0x377)){const _0x5004d6=new ClaudeUsageCommand(),_0x4a1153=await _0x5004d6[_0x371d9d(0x28e)]({'options':{..._0x2bce7e,..._0x29f156},'args':_0x3f1394['slice'](0x1),'tdx':null});process[_0x371d9d(0x33d)](_0x4a1153);}const _0x2d339b=new ClaudeCommand(),_0x461996=await createTDXInstance(_0x2bce7e),_0x1d928d=await _0x2d339b['run']({'options':{..._0x2bce7e,..._0x29f156},'args':_0x3f1394,'tdx':_0x461996});process[_0x371d9d(0x33d)](_0x1d928d);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x34d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x324))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2d9),a2_0x5087ce(0x257))[a2_0x5087ce(0x2ba)](async _0x250c0b=>{const _0x3e8117=a2_0x5087ce,_0x1a7282=new ContextCommand(),_0x3bb477=program[_0x3e8117(0x313)](),_0x260d8a=await _0x1a7282['run']({'options':{..._0x3bb477,..._0x250c0b},'args':[],'tdx':null});process[_0x3e8117(0x33d)](_0x260d8a);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x385))[a2_0x5087ce(0x303)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0x5087ce(0x212)](a2_0x5087ce(0x2d9),a2_0x5087ce(0x257))['action'](async(_0x41f5ed,_0x35bf85,_0x17a49f)=>{const _0x4b3b7e=a2_0x5087ce,_0x4e63b9=new UseCommand(),_0x5922ad=program[_0x4b3b7e(0x313)](),_0x25fe96=[];if(_0x41f5ed)_0x25fe96[_0x4b3b7e(0x1b3)](_0x41f5ed);if(_0x35bf85)_0x25fe96[_0x4b3b7e(0x1b3)](_0x35bf85);const _0x333e3a=await _0x4e63b9['run']({'options':{..._0x5922ad,..._0x17a49f},'args':_0x25fe96,'tdx':null});process[_0x4b3b7e(0x33d)](_0x333e3a);}),program[a2_0x5087ce(0x202)](a2_0x5087ce(0x359))['description']('Interactive\x20chat\x20selector')[a2_0x5087ce(0x212)]('--last','Show\x20the\x20most\x20recent\x20chat')[a2_0x5087ce(0x2ba)](async _0xde8c4a=>{const _0xad1281=a2_0x5087ce,_0x36561b=new ChatsCommand(),_0x1c95d1=program['opts'](),_0x3b8315=await createTDXInstance(_0x1c95d1),_0x5be98d=await _0x36561b[_0xad1281(0x28e)]({'options':{..._0x1c95d1,..._0xde8c4a},'args':[],'tdx':_0x3b8315});process[_0xad1281(0x33d)](_0x5be98d);});const authCmd=program['command']('auth')[a2_0x5087ce(0x303)](a2_0x5087ce(0x1a2));async function runAuthStatusCommand(_0x3199a7){const _0x1c5a27=a2_0x5087ce,_0x58824d=new AuthStatusCommand(),_0x20cc48=program[_0x1c5a27(0x313)](),_0x379bfc=await createTDXInstance(_0x20cc48),_0x3677dc=await _0x58824d[_0x1c5a27(0x28e)]({'options':{..._0x20cc48,..._0x3199a7},'args':[],'tdx':_0x379bfc});process[_0x1c5a27(0x33d)](_0x3677dc);}authCmd[a2_0x5087ce(0x2ba)](runAuthStatusCommand),authCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x384))[a2_0x5087ce(0x303)](a2_0x5087ce(0x224))[a2_0x5087ce(0x2ba)](runAuthStatusCommand),authCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x329))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2f0))['addHelpText'](a2_0x5087ce(0x1a3),a2_0x5087ce(0x350))['action'](async _0x3c03cd=>{const _0x2c9220=a2_0x5087ce,_0x308ab0=new AuthSetupCommand(),_0x23da60=program[_0x2c9220(0x313)](),_0x2c7b77=await createTDXInstance(_0x23da60),_0x457a7c=await _0x308ab0[_0x2c9220(0x28e)]({'options':{..._0x23da60,..._0x3c03cd},'args':[],'tdx':_0x2c7b77});process[_0x2c9220(0x33d)](_0x457a7c);}),authCmd['command'](a2_0x5087ce(0x31d))[a2_0x5087ce(0x303)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x5087ce(0x1a3),a2_0x5087ce(0x2b9))[a2_0x5087ce(0x2ba)](async _0x50768a=>{const _0x1bbf95=a2_0x5087ce,_0xd5188d=new AuthClearCommand(),_0x44e187=program['opts'](),_0x50b31f=await _0xd5188d[_0x1bbf95(0x28e)]({'options':{..._0x44e187,..._0x50768a},'args':[],'tdx':null});process[_0x1bbf95(0x33d)](_0x50b31f);}),program[a2_0x5087ce(0x202)]('profiles')[a2_0x5087ce(0x303)](a2_0x5087ce(0x35b))[a2_0x5087ce(0x2ba)](async _0xd2f3c4=>{const _0x19c9f2=new ProfilesCommand(),_0x4d1510=program['opts'](),_0x3a6f3f=await _0x19c9f2['run']({'options':{..._0x4d1510,..._0xd2f3c4},'args':[],'tdx':null});process['exit'](_0x3a6f3f);});const engageCmd=program[a2_0x5087ce(0x202)](a2_0x5087ce(0x281))[a2_0x5087ce(0x303)](a2_0x5087ce(0x298)),createEngageAction=_0x49c1f9=>{return async(_0x75e99,_0x1a3262)=>{const _0x1d9510=a2_0x5269,_0xe064a6=new _0x49c1f9(),_0x50de89=program[_0x1d9510(0x313)](),_0x57a907=await createTDXInstance(_0x50de89),_0x555399=await _0xe064a6[_0x1d9510(0x28e)]({'options':{..._0x50de89,..._0x1a3262},'args':[_0x75e99],'tdx':_0x57a907});process[_0x1d9510(0x33d)](_0x555399);};},createEngageNoArgAction=_0x5bd23a=>{return async _0x4d54f0=>{const _0x1e2ed9=a2_0x5269,_0x132a36=new _0x5bd23a(),_0xd7ec73=program[_0x1e2ed9(0x313)](),_0x289052=await createTDXInstance(_0xd7ec73),_0x5f5a85=await _0x132a36['run']({'options':{..._0xd7ec73,..._0x4d54f0},'args':[],'tdx':_0x289052});process[_0x1e2ed9(0x33d)](_0x5f5a85);};},campaignCmd=engageCmd['command'](a2_0x5087ce(0x27b))[a2_0x5087ce(0x303)]('Campaign\x20management'),campaignListAction=async(_0x525242,_0x4a793b)=>{const _0xe23a29=a2_0x5087ce,_0x3e795e=new EngageCampaignsCommand(),_0xd2ae90=program[_0xe23a29(0x313)](),_0x60a5a3=await createTDXInstance(_0xd2ae90),_0x2439e8=await _0x3e795e[_0xe23a29(0x28e)]({'options':{..._0xd2ae90,..._0x4a793b},'args':_0x525242?[_0x525242]:[],'tdx':_0x60a5a3});process[_0xe23a29(0x33d)](_0x2439e8);};campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5087ce(0x212)]('--type\x20<type>',a2_0x5087ce(0x2e8))[a2_0x5087ce(0x212)](a2_0x5087ce(0x28d),a2_0x5087ce(0x1b0))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),'Workspace\x20name')[a2_0x5087ce(0x2ba)](campaignListAction),engageCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x374))[a2_0x5087ce(0x303)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')['option']('--type\x20<type>',a2_0x5087ce(0x2e8))['option'](a2_0x5087ce(0x28d),a2_0x5087ce(0x1b0))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x5087ce(0x2ba)](campaignListAction),campaignCmd['command'](a2_0x5087ce(0x306))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2b3))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x335),a2_0x5087ce(0x1ca))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1d7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2db))[a2_0x5087ce(0x254)](a2_0x5087ce(0x1be),a2_0x5087ce(0x213))[a2_0x5087ce(0x254)]('--type\x20<type>',a2_0x5087ce(0x1c7))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x26e))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1a6),a2_0x5087ce(0x1e1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d6),a2_0x5087ce(0x22b))[a2_0x5087ce(0x212)]('--email-sender-id\x20<id>',a2_0x5087ce(0x24f))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1bc),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x5087ce(0x200),a2_0x5087ce(0x194))['option'](a2_0x5087ce(0x389),a2_0x5087ce(0x20c))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x29d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2d2))['option'](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))['option'](a2_0x5087ce(0x1be),'New\x20campaign\x20name')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1a6),a2_0x5087ce(0x1e1))[a2_0x5087ce(0x212)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option'](a2_0x5087ce(0x2f1),a2_0x5087ce(0x24f))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1bc),a2_0x5087ce(0x243))['option'](a2_0x5087ce(0x200),a2_0x5087ce(0x194))[a2_0x5087ce(0x212)](a2_0x5087ce(0x389),a2_0x5087ce(0x20c))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x35d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x31f))[a2_0x5087ce(0x212)]('--workspace\x20<name>',a2_0x5087ce(0x1b1))['option']('--yes',a2_0x5087ce(0x351))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x5087ce(0x303)]('Launch\x20a\x20campaign')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x5087ce(0x289))[a2_0x5087ce(0x303)](a2_0x5087ce(0x219))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x331))[a2_0x5087ce(0x303)]('Resume\x20a\x20paused\x20campaign')['option'](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command']('duplicate\x20<name-or-id>')[a2_0x5087ce(0x303)]('Duplicate\x20a\x20campaign')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),'Workspace\x20name')[a2_0x5087ce(0x2ba)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24c))['description'](a2_0x5087ce(0x1d8)),templateListAction=async(_0x3cf046,_0x2ae9b0)=>{const _0x2fc2f3=a2_0x5087ce,_0x348c22=new EngageTemplatesCommand(),_0x263f6b=program['opts'](),_0x3c12ca=await createTDXInstance(_0x263f6b),_0x678c26=await _0x348c22['run']({'options':{..._0x263f6b,..._0x2ae9b0},'args':_0x3cf046?[_0x3cf046]:[],'tdx':_0x3c12ca});process[_0x2fc2f3(0x33d)](_0x678c26);};templateCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)](a2_0x5087ce(0x19c))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),'Workspace\x20name')[a2_0x5087ce(0x2ba)](templateListAction),engageCmd['command'](a2_0x5087ce(0x199))['description']('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x5087ce(0x212)]('--workspace\x20<name>',a2_0x5087ce(0x1b1))[a2_0x5087ce(0x2ba)](templateListAction),templateCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x306))['description']('Show\x20email\x20template\x20details')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x335),a2_0x5087ce(0x1ca))[a2_0x5087ce(0x2ba)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0x5087ce(0x1d7))[a2_0x5087ce(0x303)](a2_0x5087ce(0x217))[a2_0x5087ce(0x254)](a2_0x5087ce(0x1be),a2_0x5087ce(0x27e))[a2_0x5087ce(0x254)](a2_0x5087ce(0x2a8),a2_0x5087ce(0x246))[a2_0x5087ce(0x254)](a2_0x5087ce(0x2b1),'HTML\x20template\x20content')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),'Workspace\x20name\x20(required)')[a2_0x5087ce(0x212)]('--plaintext\x20<text>','Plaintext\x20template\x20content')[a2_0x5087ce(0x212)]('--editor-type\x20<type>','Editor\x20type')[a2_0x5087ce(0x2ba)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x29d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x1d4))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1be),'New\x20template\x20name')[a2_0x5087ce(0x212)]('--subject\x20<subject>',a2_0x5087ce(0x246))[a2_0x5087ce(0x212)](a2_0x5087ce(0x2b1),a2_0x5087ce(0x22a))[a2_0x5087ce(0x212)](a2_0x5087ce(0x35f),a2_0x5087ce(0x30f))[a2_0x5087ce(0x2ba)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x5087ce(0x35d))[a2_0x5087ce(0x303)](a2_0x5087ce(0x2d3))['option'](a2_0x5087ce(0x1d2),a2_0x5087ce(0x1b1))[a2_0x5087ce(0x212)]('--yes','Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x35c))[a2_0x5087ce(0x303)]('Workspace\x20management'),workspaceListAction=async(_0x4348c0,_0x4f102a)=>{const _0x516d7b=a2_0x5087ce,_0x3eaefd=new EngageWorkspacesCommand(),_0x2c37f3=program[_0x516d7b(0x313)](),_0x2e03a1=await createTDXInstance(_0x2c37f3),_0x11c5ea=await _0x3eaefd['run']({'options':{..._0x2c37f3,..._0x4f102a},'args':_0x4348c0?[_0x4348c0]:[],'tdx':_0x2e03a1});process[_0x516d7b(0x33d)](_0x11c5ea);};workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x24a))[a2_0x5087ce(0x303)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')['action'](workspaceListAction),engageCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1b6))[a2_0x5087ce(0x303)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x5087ce(0x2ba)](workspaceListAction),workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x306))[a2_0x5087ce(0x303)](a2_0x5087ce(0x318))['option']('--full',a2_0x5087ce(0x1ca))[a2_0x5087ce(0x2ba)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x1d7))['description'](a2_0x5087ce(0x242))[a2_0x5087ce(0x254)](a2_0x5087ce(0x1be),'Workspace\x20name')[a2_0x5087ce(0x212)](a2_0x5087ce(0x1a6),a2_0x5087ce(0x26f))[a2_0x5087ce(0x2ba)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x29d))['description'](a2_0x5087ce(0x34e))[a2_0x5087ce(0x212)](a2_0x5087ce(0x1be),a2_0x5087ce(0x222))[a2_0x5087ce(0x212)]('--description\x20<desc>',a2_0x5087ce(0x26f))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x5087ce(0x202)](a2_0x5087ce(0x35d))[a2_0x5087ce(0x303)]('Delete\x20a\x20workspace')['option']('--yes',a2_0x5087ce(0x351))[a2_0x5087ce(0x2ba)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x5087ce(0x1f6))[a2_0x5087ce(0x303)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x5087ce(0x2ba)](createEngageAction(EngageWorkspaceUseCommand));export{program};export function runCLI(){const _0x196fed=a2_0x5087ce;program['parse'](process[_0x196fed(0x23d)]);!process[_0x196fed(0x23d)][_0x196fed(0x2eb)](0x2)[_0x196fed(0x387)]&&program[_0x196fed(0x1b9)]();const _0x472942=packageJson[_0x196fed(0x360)];process[_0x196fed(0x2bf)][_0x196fed(0x236)]&&process[_0x196fed(0x23d)][_0x196fed(0x387)]>0x2&&!_0x472942[_0x196fed(0x2aa)](_0x196fed(0x1dc))&&checkForUpdate(_0x472942)['then'](_0xabc96a=>{_0xabc96a&&displayUpdateNotification(_0xabc96a);})[_0x196fed(0x2e1)](()=>{});}
1
+ const a2_0xc1298=a2_0x13b8;(function(_0x2324fc,_0x2446bb){const _0x461279=a2_0x13b8,_0x43158c=_0x2324fc();while(!![]){try{const _0x4c23b2=-parseInt(_0x461279(0x27b))/0x1*(-parseInt(_0x461279(0x33b))/0x2)+-parseInt(_0x461279(0x2ca))/0x3+-parseInt(_0x461279(0x33d))/0x4*(-parseInt(_0x461279(0x31e))/0x5)+-parseInt(_0x461279(0x164))/0x6*(-parseInt(_0x461279(0x2e5))/0x7)+-parseInt(_0x461279(0x22a))/0x8*(parseInt(_0x461279(0x29c))/0x9)+parseInt(_0x461279(0x2a4))/0xa*(parseInt(_0x461279(0x276))/0xb)+parseInt(_0x461279(0x1bc))/0xc*(-parseInt(_0x461279(0x2e7))/0xd);if(_0x4c23b2===_0x2446bb)break;else _0x43158c['push'](_0x43158c['shift']());}catch(_0x3f423b){_0x43158c['push'](_0x43158c['shift']());}}}(a2_0xb95d,0x7dc93));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';function a2_0x13b8(_0x5c8df9,_0x22572c){const _0xb95d78=a2_0xb95d();return a2_0x13b8=function(_0x13b8ad,_0x3a253d){_0x13b8ad=_0x13b8ad-0x141;let _0x8299a9=_0xb95d78[_0x13b8ad];return _0x8299a9;},a2_0x13b8(_0x5c8df9,_0x22572c);}import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{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_0xc1298(0x15f)](readFileSync(join(__dirname,a2_0xc1298(0x19a)),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0xc1298(0x15f)](readFileSync(join(__dirname,a2_0xc1298(0x213)),'utf-8'));}catch{}if(process['argv'][a2_0xc1298(0x2b9)](a2_0xc1298(0x2f9))){let versionOutput=a2_0xc1298(0x1ce)+packageJson[a2_0xc1298(0x2d6)];buildInfo[a2_0xc1298(0x1b6)]&&(versionOutput+='\x20('+buildInfo[a2_0xc1298(0x1b6)]+')'),buildInfo[a2_0xc1298(0x1f7)]&&(versionOutput+=a2_0xc1298(0x17e)+buildInfo['buildTime']),console['log'](versionOutput),process[a2_0xc1298(0x339)](0x0);}const program=new Command();let description=a2_0xc1298(0x215);buildInfo['gitRevision']?description+=a2_0xc1298(0x299)+packageJson[a2_0xc1298(0x2d6)]+'\x20('+buildInfo[a2_0xc1298(0x1b6)]+')':description+=a2_0xc1298(0x299)+packageJson[a2_0xc1298(0x2d6)];program[a2_0xc1298(0x2ad)](a2_0xc1298(0x273))[a2_0xc1298(0x236)](description),program['option'](a2_0xc1298(0x28b),a2_0xc1298(0x22e))[a2_0xc1298(0x19f)](a2_0xc1298(0x16a),a2_0xc1298(0x1f9),a2_0xc1298(0x251))[a2_0xc1298(0x19f)](a2_0xc1298(0x2cb),a2_0xc1298(0x1a0))[a2_0xc1298(0x19f)](a2_0xc1298(0x1aa),a2_0xc1298(0x1c8))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b3),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0xc1298(0x19f)](a2_0xc1298(0x237),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0xc1298(0x19f)](a2_0xc1298(0x27a),a2_0xc1298(0x322))[a2_0xc1298(0x19f)](a2_0xc1298(0x18b),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0xc1298(0x19f)](a2_0xc1298(0x30c),a2_0xc1298(0x1fe),![])['option'](a2_0xc1298(0x1f8),a2_0xc1298(0x187),![])[a2_0xc1298(0x19f)](a2_0xc1298(0x1be),a2_0xc1298(0x157),![])[a2_0xc1298(0x19f)]('--debug',a2_0xc1298(0x28c))['option'](a2_0xc1298(0x1f2),a2_0xc1298(0x321))['option'](a2_0xc1298(0x2d5),a2_0xc1298(0x24b),'30')[a2_0xc1298(0x19f)](a2_0xc1298(0x25a),a2_0xc1298(0x21a),![])[a2_0xc1298(0x19f)](a2_0xc1298(0x327),'Skip\x20confirmation\x20prompts',![])[a2_0xc1298(0x19f)](a2_0xc1298(0x2a2),a2_0xc1298(0x1d2))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ee),a2_0xc1298(0x234))['option'](a2_0xc1298(0x1ec),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0xc1298(0x19f)](a2_0xc1298(0x185),a2_0xc1298(0x14a))[a2_0xc1298(0x19f)](a2_0xc1298(0x2f1),a2_0xc1298(0x23c)),program[a2_0xc1298(0x14e)]({'formatHelp':(_0x1c57a0,_0x2fe021)=>{const _0x105874=a2_0xc1298,_0x2fc453=_0x2fe021['padWidth'](_0x1c57a0,_0x2fe021),_0x45a977=0x2,_0x31fdc3=0x2;function _0x1c1153(_0x264aba){const _0x3b3509=a2_0x13b8,_0x6e3d51=_0x264aba;return!!(_0x6e3d51['_hidden']||_0x6e3d51[_0x3b3509(0x26f)]);}function _0x34e5d0(_0x5d9ecb,_0x5e7cc9){if(_0x5e7cc9){const _0x39dd1f=''+_0x5d9ecb['padEnd'](_0x2fc453+_0x31fdc3)+_0x5e7cc9;return _0x39dd1f;}return _0x5d9ecb;}function _0x24330d(_0x1a7320){const _0x4d4c25=a2_0x13b8;return _0x1a7320[_0x4d4c25(0x33f)]('\x0a')[_0x4d4c25(0x2f3)](/^/gm,'\x20'[_0x4d4c25(0x1e0)](_0x45a977));}const _0x4d41a2=[];_0x4d41a2['push'](_0x105874(0x33a)+_0x2fe021[_0x105874(0x314)](_0x1c57a0));const _0x3f2059=_0x2fe021[_0x105874(0x224)](_0x1c57a0);_0x3f2059&&(_0x4d41a2['push'](''),_0x4d41a2[_0x105874(0x271)](_0x3f2059));const _0x3b61c4=_0x1c57a0[_0x105874(0x24e)][_0x105874(0x220)](_0x349fb3=>!_0x1c1153(_0x349fb3));if(_0x3b61c4['length']>0x0){if(_0x1c57a0['name']()==='tdx'){const _0x3bd959=_0x1c57a0[_0x105874(0x1e9)](),_0x473f3a=!_0x3bd959[_0x105874(0x14d)]&&process[_0x105874(0x1c0)][_0x105874(0x19d)],_0x41261d=COMMAND_CATEGORIES,_0x31097c=(_0x45e746,_0x493c1a)=>_0x473f3a?_0x493c1a(_0x45e746):_0x45e746,_0x47c923=new Map();_0x3b61c4[_0x105874(0x30d)](_0x4679b8=>{const _0x3fcdd0=_0x105874;_0x47c923['set'](_0x4679b8[_0x3fcdd0(0x2ad)](),_0x4679b8);}),_0x41261d['forEach'](_0x1c98bd=>{const _0x5b24c3=_0x105874,_0x4b2aae=_0x1c98bd[_0x5b24c3(0x24e)]['flatMap'](_0x459686=>_0x47c923[_0x5b24c3(0x1d9)](_0x459686)??[]);if(_0x4b2aae[_0x5b24c3(0x25d)]>0x0){_0x4d41a2['push'](''),_0x4d41a2['push'](_0x31097c(_0x1c98bd[_0x5b24c3(0x2ad)]+':',_0x1c98bd['colorFn']));const _0x4015d7=_0x4b2aae[_0x5b24c3(0x294)](_0x9be26=>{const _0x3533d5=_0x5b24c3,_0x33d40b=_0x2fe021['subcommandTerm'](_0x9be26),_0x5bb771=_0x2fe021[_0x3533d5(0x18a)](_0x9be26);return _0x34e5d0(_0x33d40b,_0x5bb771);});_0x4d41a2[_0x5b24c3(0x271)](_0x24330d(_0x4015d7));}}),_0x4d41a2[_0x105874(0x271)](''),_0x4d41a2[_0x105874(0x271)](_0x105874(0x156));}else{const _0x3841be=_0x3b61c4['map'](_0x1a1cb1=>{const _0x288f6e=_0x105874,_0x4b6ebb=_0x2fe021[_0x288f6e(0x265)](_0x1a1cb1),_0x5d25a7=_0x2fe021[_0x288f6e(0x18a)](_0x1a1cb1);return _0x34e5d0(_0x4b6ebb,_0x5d25a7);});_0x4d41a2[_0x105874(0x271)](''),_0x4d41a2[_0x105874(0x271)](_0x105874(0x2a9)),_0x4d41a2[_0x105874(0x271)](_0x24330d(_0x3841be));}}const _0x2ac18d=_0x1c57a0['options'][_0x105874(0x220)](_0x4a2605=>!_0x1c1153(_0x4a2605));if(_0x2ac18d['length']>0x0){const _0x1c1e3c=_0x2ac18d[_0x105874(0x294)](_0x3590fe=>{const _0x3da34c=_0x105874,_0x44df71=_0x2fe021['optionTerm'](_0x3590fe),_0x5d645c=_0x2fe021[_0x3da34c(0x228)](_0x3590fe);return _0x34e5d0(_0x44df71,_0x5d645c);});_0x4d41a2[_0x105874(0x271)](''),_0x4d41a2['push'](_0x105874(0x2a3)),_0x4d41a2[_0x105874(0x271)](_0x24330d(_0x1c1e3c));}const _0x37faad=(_0x1c57a0[_0x105874(0x193)]||[])[_0x105874(0x220)](_0x19fe5d=>!_0x1c1153(_0x19fe5d));if(_0x37faad[_0x105874(0x25d)]>0x0){const _0x33c7ee=_0x37faad[_0x105874(0x294)](_0x397f0a=>{const _0x157d77=_0x2fe021['argumentTerm'](_0x397f0a),_0x26923e=_0x2fe021['argumentDescription'](_0x397f0a);return _0x34e5d0(_0x157d77,_0x26923e);});_0x4d41a2['push'](''),_0x4d41a2['push']('Arguments:'),_0x4d41a2[_0x105874(0x271)](_0x24330d(_0x33c7ee));}return _0x4d41a2['join']('\x0a');},'subcommandTerm':_0x37a089=>{const _0x37bab3=a2_0xc1298,_0x236df9=(_0x37a089['registeredArguments']||[])[_0x37bab3(0x294)](_0x3ff4f3=>_0x3ff4f3['required']?'<'+_0x3ff4f3[_0x37bab3(0x2ad)]()+'>':'['+_0x3ff4f3[_0x37bab3(0x2ad)]()+']')[_0x37bab3(0x33f)]('\x20'),_0x752c45=_0x37a089[_0x37bab3(0x2d9)](),_0x855d98=_0x752c45[_0x37bab3(0x25d)]>0x0?_0x37a089[_0x37bab3(0x2ad)]()+',\x20'+_0x752c45[_0x37bab3(0x33f)](',\x20'):_0x37a089[_0x37bab3(0x2ad)]();return _0x236df9?_0x855d98+'\x20'+_0x236df9:_0x855d98;}}),program[a2_0xc1298(0x245)](a2_0xc1298(0x2e6),_0x40b275=>{const _0x1aba13=a2_0xc1298,_0x2cdde2=_0x40b275['opts']();if(!_0x2cdde2['format']){if(_0x2cdde2[_0x1aba13(0x1af)])_0x2cdde2['format']=_0x1aba13(0x1af);else{if(_0x2cdde2[_0x1aba13(0x25c)])_0x2cdde2[_0x1aba13(0x26a)]=_0x1aba13(0x25c);else _0x2cdde2[_0x1aba13(0x1b2)]&&(_0x2cdde2[_0x1aba13(0x26a)]=_0x1aba13(0x1b2));}}_0x2cdde2['in']&&!_0x2cdde2[_0x1aba13(0x219)]&&(_0x2cdde2['database']=_0x2cdde2['in']);if(_0x2cdde2[_0x1aba13(0x256)])_0x2cdde2['logLevel']=LogLevel[_0x1aba13(0x32e)];else{if(_0x2cdde2[_0x1aba13(0x178)])_0x2cdde2[_0x1aba13(0x2e4)]=LogLevel[_0x1aba13(0x301)];else _0x2cdde2['logLevel']===undefined&&(_0x2cdde2[_0x1aba13(0x2e4)]=LogLevel[_0x1aba13(0x306)]);}});async function createTDXInstance(_0x3ec976){const _0x124c61=a2_0xc1298,_0x4b997f=await GlobalContext[_0x124c61(0x2da)](_0x3ec976);return _0x4b997f['injectIntoOptions'](_0x3ec976),TDX[_0x124c61(0x23f)]({'site':_0x4b997f[_0x124c61(0x2ef)],'apiKey':_0x4b997f[_0x124c61(0x19e)],'logLevel':_0x4b997f[_0x124c61(0x2e4)],'profile':_0x4b997f[_0x124c61(0x15a)]});}const databaseCmd=program[a2_0xc1298(0x282)]('database')[a2_0xc1298(0x2eb)]('db')[a2_0xc1298(0x236)]('Database\x20management\x20commands'),databaseListAction=async(_0x205235,_0x1f020b)=>{const _0x2ad135=a2_0xc1298,_0xf5cfd5=new DatabasesCommand(),_0x5ab9c5=program[_0x2ad135(0x1e9)](),_0x55a155=await createTDXInstance(_0x5ab9c5),_0x17d57e=await _0xf5cfd5[_0x2ad135(0x1f1)]({'options':{..._0x5ab9c5,..._0x1f020b},'args':_0x205235?[_0x205235]:[],'tdx':_0x55a155});process[_0x2ad135(0x339)](_0x17d57e);};databaseCmd[a2_0xc1298(0x282)](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x329))['action'](databaseListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x320),{'hidden':!![]})['description'](a2_0xc1298(0x1b7))['action'](databaseListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x1a5))[a2_0xc1298(0x236)](a2_0xc1298(0x242))[a2_0xc1298(0x19f)](a2_0xc1298(0x2a7),a2_0xc1298(0x31b))[a2_0xc1298(0x19f)](a2_0xc1298(0x147),a2_0xc1298(0x252))[a2_0xc1298(0x19f)](a2_0xc1298(0x1de),a2_0xc1298(0x1e1))['option'](a2_0xc1298(0x2b3),'Start\x20a\x20new\x20chat\x20session')['action'](async(_0x571488,_0x29e2fe)=>{const _0x375e21=a2_0xc1298,_0x42c16a=new ChatCommand(),_0x46db6f=program[_0x375e21(0x1e9)](),_0x1b4fa1=await createTDXInstance(_0x46db6f),_0x3a9cd0=await _0x42c16a[_0x375e21(0x1f1)]({'options':{..._0x46db6f,..._0x29e2fe},'args':_0x571488,'tdx':_0x1b4fa1});process['exit'](_0x3a9cd0);});const apiCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x210))[a2_0xc1298(0x211)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0xc1298(0x330)](a2_0xc1298(0x26b),a2_0xc1298(0x1d4))[a2_0xc1298(0x19f)](a2_0xc1298(0x189),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')['option'](a2_0xc1298(0x173),'Request\x20body\x20as\x20JSON\x20string')[a2_0xc1298(0x19f)](a2_0xc1298(0x2a5),'Read\x20request\x20body\x20from\x20file')[a2_0xc1298(0x19f)](a2_0xc1298(0x25e),a2_0xc1298(0x18c),(_0x1ef274,_0x5b8585)=>{return _0x5b8585?[..._0x5b8585,_0x1ef274]:[_0x1ef274];})[a2_0xc1298(0x19f)](a2_0xc1298(0x2a0),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0xc1298(0x309)](async(_0xddf60e,_0x3bc83e)=>{const _0x59a12e=a2_0xc1298;if(!_0xddf60e){apiCmd['help']();return;}const _0x326220=new ApiCommand(),_0x546a56=program[_0x59a12e(0x1e9)](),_0x106b89=await createTDXInstance(_0x546a56),_0x1e5aeb=await _0x326220[_0x59a12e(0x1f1)]({'options':{..._0x546a56,..._0x3bc83e},'args':[_0xddf60e],'tdx':_0x106b89});process['exit'](_0x1e5aeb);}),tableCmd=program[a2_0xc1298(0x282)]('table')[a2_0xc1298(0x236)](a2_0xc1298(0x2af)),tableListAction=async(_0x274adf,_0x285764)=>{const _0x455318=a2_0xc1298,_0x10ff6c=new TablesCommand(),_0x3bc9a6=program[_0x455318(0x1e9)](),_0x3af974=await createTDXInstance(_0x3bc9a6);_0x285764['in']&&(_0x285764[_0x455318(0x219)]=_0x285764['in']);const _0x405f3c=await _0x10ff6c['run']({'options':{..._0x3bc9a6,..._0x285764},'args':_0x274adf?[_0x274adf]:[],'tdx':_0x3af974});process[_0x455318(0x339)](_0x405f3c);};tableCmd[a2_0xc1298(0x282)](a2_0xc1298(0x158))['description']('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0xc1298(0x19f)](a2_0xc1298(0x1ca),a2_0xc1298(0x1d5))['option']('--in\x20<database>',a2_0xc1298(0x206))[a2_0xc1298(0x309)](tableListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x30e),{'hidden':!![]})[a2_0xc1298(0x236)](a2_0xc1298(0x175))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ca),a2_0xc1298(0x1d5))[a2_0xc1298(0x19f)](a2_0xc1298(0x336),a2_0xc1298(0x206))[a2_0xc1298(0x309)](tableListAction),program[a2_0xc1298(0x282)]('show\x20[table]')[a2_0xc1298(0x236)](a2_0xc1298(0x154))[a2_0xc1298(0x19f)]('-d,\x20--database\x20<database>',a2_0xc1298(0x225))[a2_0xc1298(0x19f)](a2_0xc1298(0x336),a2_0xc1298(0x206))[a2_0xc1298(0x309)](async(_0x1ff091,_0x2106c9)=>{const _0x17d19e=a2_0xc1298,_0x1c7215=new ShowCommand(),_0x1ae29c=program[_0x17d19e(0x1e9)](),_0xab219=await createTDXInstance(_0x1ae29c);_0x2106c9['in']&&(_0x2106c9[_0x17d19e(0x219)]=_0x2106c9['in']);const _0x51ecdf=await _0x1c7215[_0x17d19e(0x1f1)]({'options':{..._0x1ae29c,..._0x2106c9},'args':_0x1ff091?[_0x1ff091]:[],'tdx':_0xab219});process[_0x17d19e(0x339)](_0x51ecdf);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x23a))[a2_0xc1298(0x2eb)](a2_0xc1298(0x324))[a2_0xc1298(0x236)]('Describe\x20table\x20schema')['option'](a2_0xc1298(0x1ca),a2_0xc1298(0x225))[a2_0xc1298(0x19f)]('--in\x20<database>',a2_0xc1298(0x206))['action'](async(_0x4e241d,_0x1408d6)=>{const _0x2fcc0b=a2_0xc1298,_0x17a437=new DescribeCommand(),_0x581794=program[_0x2fcc0b(0x1e9)](),_0x40f1b3=await createTDXInstance(_0x581794);_0x1408d6['in']&&(_0x1408d6[_0x2fcc0b(0x219)]=_0x1408d6['in']);const _0x32f1cc=await _0x17a437[_0x2fcc0b(0x1f1)]({'options':{..._0x581794,..._0x1408d6},'args':_0x4e241d?[_0x4e241d]:[],'tdx':_0x40f1b3});process[_0x2fcc0b(0x339)](_0x32f1cc);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x1c1))[a2_0xc1298(0x236)](a2_0xc1298(0x2c2))['option']('-d,\x20--database\x20<database>',a2_0xc1298(0x253))[a2_0xc1298(0x19f)](a2_0xc1298(0x336),a2_0xc1298(0x206))['option'](a2_0xc1298(0x238),a2_0xc1298(0x2c5))[a2_0xc1298(0x19f)](a2_0xc1298(0x2a5),a2_0xc1298(0x1a6))['option'](a2_0xc1298(0x18d),a2_0xc1298(0x272),'40')[a2_0xc1298(0x309)](async(_0x520359,_0x4aea63)=>{const _0x53428c=a2_0xc1298,_0x399d0a=new QueryCommand(),_0xf16cce=program['opts'](),_0x12575f=await createTDXInstance(_0xf16cce);_0x4aea63['in']&&(_0x4aea63['database']=_0x4aea63['in']);const _0x44e197=await _0x399d0a['run']({'options':{..._0xf16cce,..._0x4aea63},'args':_0x520359?[_0x520359]:[],'tdx':_0x12575f});process[_0x53428c(0x339)](_0x44e197);});const segmentCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x230))['description'](a2_0xc1298(0x152)),segmentListAction=async(_0x146a7a,_0x3cf325)=>{const _0x490fab=a2_0xc1298,_0x591712=new SegmentsCommand(),_0x2c7de7=program[_0x490fab(0x1e9)](),_0x31372f=await createTDXInstance(_0x2c7de7),_0x37361e=await _0x591712[_0x490fab(0x1f1)]({'options':{..._0x2c7de7,..._0x3cf325},'args':_0x146a7a?[_0x146a7a]:[],'tdx':_0x31372f});process['exit'](_0x37361e);};segmentCmd['command'](a2_0xc1298(0x2b8))[a2_0xc1298(0x236)](a2_0xc1298(0x233))['option'](a2_0xc1298(0x258),a2_0xc1298(0x290))[a2_0xc1298(0x19f)](a2_0xc1298(0x264),a2_0xc1298(0x266),'10')['action'](segmentListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x32c),{'hidden':!![]})['description'](a2_0xc1298(0x267))[a2_0xc1298(0x19f)](a2_0xc1298(0x258),a2_0xc1298(0x290))[a2_0xc1298(0x19f)]('--max-depth\x20<depth>',a2_0xc1298(0x266),'10')[a2_0xc1298(0x309)](segmentListAction),segmentCmd[a2_0xc1298(0x282)]('use\x20<path>')[a2_0xc1298(0x236)](a2_0xc1298(0x29d))[a2_0xc1298(0x309)](async(_0x68a3b5,_0x234764)=>{const _0x25db3d=a2_0xc1298,_0x37aa08=new SegmentUseCommand(),_0x12c094=program['opts'](),_0x132d4d=await createTDXInstance(_0x12c094),_0x3fc5de=await _0x37aa08[_0x25db3d(0x1f1)]({'options':{..._0x12c094,..._0x234764},'args':[_0x68a3b5],'tdx':_0x132d4d});process['exit'](_0x3fc5de);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2c9))[a2_0xc1298(0x236)]('Show\x20current\x20segment/folder\x20context')[a2_0xc1298(0x309)](async _0x5b23d2=>{const _0x36c36c=a2_0xc1298,_0x51ffd2=new SegmentPwdCommand(),_0x2d708d=program['opts'](),_0x45e51c=await createTDXInstance(_0x2d708d),_0x9f2dea=await _0x51ffd2[_0x36c36c(0x1f1)]({'options':{..._0x2d708d,..._0x5b23d2},'args':[],'tdx':_0x45e51c});process['exit'](_0x9f2dea);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x162))['alias'](a2_0xc1298(0x2ed))[a2_0xc1298(0x236)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0xc1298(0x309)](async(_0x127ed7,_0x25871c)=>{const _0x365f3f=a2_0xc1298,_0x53aa4c=new SegmentInfoCommand(),_0x128b38=program[_0x365f3f(0x1e9)](),_0x586979=await createTDXInstance(_0x128b38),_0x258565=await _0x53aa4c['run']({'options':{..._0x128b38,..._0x25871c},'args':_0x127ed7?[_0x127ed7]:[],'tdx':_0x586979});process[_0x365f3f(0x339)](_0x258565);}),segmentCmd[a2_0xc1298(0x282)]('desc\x20[segment_name]')[a2_0xc1298(0x236)](a2_0xc1298(0x23d))[a2_0xc1298(0x309)](async(_0x5e2045,_0x3a7e13)=>{const _0x2a6d1b=a2_0xc1298,_0x2cc3d3=new SegmentDescCommand(),_0x3833b9=program[_0x2a6d1b(0x1e9)](),_0x3559d5=await createTDXInstance(_0x3833b9),_0x12a0ff=await _0x2cc3d3[_0x2a6d1b(0x1f1)]({'options':{..._0x3833b9,..._0x3a7e13},'args':_0x5e2045?[_0x5e2045]:[],'tdx':_0x3559d5});process['exit'](_0x12a0ff);}),segmentCmd[a2_0xc1298(0x282)]('show\x20[segment_name]')[a2_0xc1298(0x236)](a2_0xc1298(0x29b))[a2_0xc1298(0x309)](async(_0x20024a,_0x426b31)=>{const _0x395528=a2_0xc1298,_0x5fcad4=new SegmentShowCommand(),_0x2e3237=program['opts'](),_0x3bd8a8=await createTDXInstance(_0x2e3237),_0x37e022=await _0x5fcad4[_0x395528(0x1f1)]({'options':{..._0x2e3237,..._0x426b31},'args':_0x20024a?[_0x20024a]:[],'tdx':_0x3bd8a8});process[_0x395528(0x339)](_0x37e022);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1e3))[a2_0xc1298(0x236)]('List\x20segment\x20folders\x20under\x20a\x20parent\x20segment')[a2_0xc1298(0x309)](async(_0x203d56,_0x2d8cc2)=>{const _0x4e67dd=a2_0xc1298,_0x5efd57=new SegmentFolderListCommand(),_0x122b61=program['opts'](),_0x3bcedb=await createTDXInstance(_0x122b61),_0x2e3189=await _0x5efd57[_0x4e67dd(0x1f1)]({'options':{..._0x122b61,..._0x2d8cc2},'args':[_0x203d56],'tdx':_0x3bcedb});process[_0x4e67dd(0x339)](_0x2e3189);});const folderCmd=segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x241))['description']('Segment\x20folder\x20management');folderCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1ab))[a2_0xc1298(0x236)](a2_0xc1298(0x288))[a2_0xc1298(0x309)](async(_0x568115,_0x31999b)=>{const _0x4f6a3c=a2_0xc1298,_0x1f60fa=new SegmentFolderShowCommand(),_0x57c2fc=program[_0x4f6a3c(0x1e9)](),_0x5c8be4=await createTDXInstance(_0x57c2fc),_0x55c577=await _0x1f60fa['run']({'options':{..._0x57c2fc,..._0x31999b},'args':[_0x568115],'tdx':_0x5c8be4});process[_0x4f6a3c(0x339)](_0x55c577);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x208))[a2_0xc1298(0x236)](a2_0xc1298(0x20a))['action'](async(_0x284695,_0x1e9d38)=>{const _0x2059a0=a2_0xc1298,_0x261d1d=new SegmentSQLCommand(),_0x6ee914=program[_0x2059a0(0x1e9)](),_0x137d9a=await createTDXInstance(_0x6ee914),_0x2931e3=await _0x261d1d[_0x2059a0(0x1f1)]({'options':{..._0x6ee914,..._0x1e9d38},'args':_0x284695?[_0x284695]:[],'tdx':_0x137d9a});process[_0x2059a0(0x339)](_0x2931e3);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2de))[a2_0xc1298(0x236)](a2_0xc1298(0x222))[a2_0xc1298(0x309)](async(_0x28959f,_0x515af3)=>{const _0x10bea2=a2_0xc1298,_0x6d1720=new SegmentFieldsCommand(),_0x583bb7=program[_0x10bea2(0x1e9)](),_0x29a04c=await createTDXInstance(_0x583bb7),_0x2e7aca=await _0x6d1720[_0x10bea2(0x1f1)]({'options':{..._0x583bb7,..._0x515af3},'args':_0x28959f?[_0x28959f]:[],'tdx':_0x29a04c});process[_0x10bea2(0x339)](_0x2e7aca);}),segmentCmd[a2_0xc1298(0x282)]('create\x20<segment_name>')['description'](a2_0xc1298(0x17c))[a2_0xc1298(0x19f)](a2_0xc1298(0x21c),'Segment\x20description')[a2_0xc1298(0x19f)](a2_0xc1298(0x2fb),a2_0xc1298(0x2c4))[a2_0xc1298(0x19f)]('--rule-file\x20<file>',a2_0xc1298(0x331))[a2_0xc1298(0x19f)](a2_0xc1298(0x146),'Folder\x20name\x20for\x20organization')[a2_0xc1298(0x19f)](a2_0xc1298(0x26e),a2_0xc1298(0x2fd))[a2_0xc1298(0x19f)](a2_0xc1298(0x151),a2_0xc1298(0x31f))[a2_0xc1298(0x19f)]('--no-count-population','Skip\x20population\x20counting')['action'](async(_0x40e92b,_0x48b461)=>{const _0xe52dcc=a2_0xc1298,_0x173241=new SegmentCreateCommand(),_0x42f119=program['opts'](),_0x2a2a78=await createTDXInstance(_0x42f119),_0x2a55f3=await _0x173241[_0xe52dcc(0x1f1)]({'options':{..._0x42f119,..._0x48b461},'args':[_0x40e92b],'tdx':_0x2a2a78});process[_0xe52dcc(0x339)](_0x2a55f3);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x317))['description'](a2_0xc1298(0x195))[a2_0xc1298(0x19f)](a2_0xc1298(0x19c),a2_0xc1298(0x176))['option'](a2_0xc1298(0x21c),'Updated\x20description')[a2_0xc1298(0x19f)]('--rule\x20<json>',a2_0xc1298(0x1df))[a2_0xc1298(0x19f)](a2_0xc1298(0x25f),a2_0xc1298(0x21d))[a2_0xc1298(0x19f)](a2_0xc1298(0x146),a2_0xc1298(0x1f3))[a2_0xc1298(0x19f)](a2_0xc1298(0x26e),a2_0xc1298(0x2fd))['action'](async(_0x28c2ea,_0xe7f6bb)=>{const _0x2fa731=a2_0xc1298,_0x5bf855=new SegmentUpdateCommand(),_0x542dd5=program['opts'](),_0x563a1e=await createTDXInstance(_0x542dd5),_0x3c898d=await _0x5bf855[_0x2fa731(0x1f1)]({'options':{..._0x542dd5,..._0xe7f6bb},'args':[_0x28c2ea],'tdx':_0x563a1e});process[_0x2fa731(0x339)](_0x3c898d);});const parentCmd=segmentCmd['command']('parent')[a2_0xc1298(0x236)](a2_0xc1298(0x32f)),parentListAction=async(_0x3ea545,_0x4d8229)=>{const _0x1ad03e=a2_0xc1298,_0x21d730=new ParentSegmentListCommand(),_0x5c5b17=program[_0x1ad03e(0x1e9)](),_0x352b30=await createTDXInstance(_0x5c5b17),_0x5c13b4=await _0x21d730[_0x1ad03e(0x1f1)]({'options':{..._0x5c5b17,..._0x4d8229},'args':_0x3ea545?[_0x3ea545]:[],'tdx':_0x352b30});process[_0x1ad03e(0x339)](_0x5c13b4);};parentCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x1b5))[a2_0xc1298(0x309)](parentListAction),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2fa),{'hidden':!![]})[a2_0xc1298(0x236)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0xc1298(0x309)](parentListAction),parentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x28d))[a2_0xc1298(0x236)](a2_0xc1298(0x2b7))[a2_0xc1298(0x19f)](a2_0xc1298(0x285),a2_0xc1298(0x1bf))[a2_0xc1298(0x19f)](a2_0xc1298(0x327),a2_0xc1298(0x2e9))['action'](async(_0x8a0847,_0x840803)=>{const _0x7b91f8=a2_0xc1298,_0x5c5128=new ParentSegmentPullCommand(),_0x41e684=program[_0x7b91f8(0x1e9)](),_0x51a0a6=await createTDXInstance(_0x41e684),_0x16e0ff=await _0x5c5128[_0x7b91f8(0x1f1)]({'options':{..._0x41e684,..._0x840803},'args':_0x8a0847?[_0x8a0847]:[],'tdx':_0x51a0a6});process[_0x7b91f8(0x339)](_0x16e0ff);}),parentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x198))[a2_0xc1298(0x236)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0xc1298(0x19f)](a2_0xc1298(0x327),a2_0xc1298(0x2e9))[a2_0xc1298(0x309)](async(_0x4ab7b8,_0x953f34)=>{const _0x18f35b=a2_0xc1298,_0x34798a=new ParentSegmentPushCommand(),_0x5dbaa9=program[_0x18f35b(0x1e9)](),_0x5b247d=await createTDXInstance(_0x5dbaa9),_0x3cd2ed=await _0x34798a['run']({'options':{..._0x5dbaa9,..._0x953f34},'args':_0x4ab7b8?[_0x4ab7b8]:[],'tdx':_0x5b247d});process[_0x18f35b(0x339)](_0x3cd2ed);}),parentCmd['command']('validate\x20[file]')[a2_0xc1298(0x236)](a2_0xc1298(0x184))['option'](a2_0xc1298(0x246),a2_0xc1298(0x2bf))[a2_0xc1298(0x19f)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0xc1298(0x1b1),a2_0xc1298(0x1f6))[a2_0xc1298(0x19f)]('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0xc1298(0x19f)]('--interval\x20<range>',a2_0xc1298(0x31d),a2_0xc1298(0x278))[a2_0xc1298(0x309)](async(_0x48b5fc,_0x4b275b)=>{const _0x41b503=a2_0xc1298,_0x385de4=new ParentSegmentValidateCommand(),_0x5a7097=program['opts'](),_0x325fc8=await createTDXInstance(_0x5a7097),_0x536306=await _0x385de4[_0x41b503(0x1f1)]({'options':{..._0x5a7097,..._0x4b275b},'args':_0x48b5fc?[_0x48b5fc]:[],'tdx':_0x325fc8});process['exit'](_0x536306);}),parentCmd['command'](a2_0xc1298(0x2ce))['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0xc1298(0x19f)](a2_0xc1298(0x246),a2_0xc1298(0x2e1))[a2_0xc1298(0x19f)](a2_0xc1298(0x229),a2_0xc1298(0x22b))[a2_0xc1298(0x19f)]('--behavior\x20[name]',a2_0xc1298(0x21b))[a2_0xc1298(0x19f)](a2_0xc1298(0x305),a2_0xc1298(0x333))[a2_0xc1298(0x19f)](a2_0xc1298(0x21e),a2_0xc1298(0x31d),'-1d')[a2_0xc1298(0x309)](async(_0x4f3b09,_0x4d9e42)=>{const _0x58333e=a2_0xc1298,_0x371511=new ParentSegmentPreviewCommand(),_0x54d903=program['opts'](),_0x1a71f3=await createTDXInstance(_0x54d903),_0x54b36e=await _0x371511[_0x58333e(0x1f1)]({'options':{..._0x54d903,..._0x4d9e42},'args':_0x4f3b09?[_0x4f3b09]:[],'tdx':_0x1a71f3});process['exit'](_0x54b36e);}),parentCmd['command'](a2_0xc1298(0x1c9))[a2_0xc1298(0x236)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0xc1298(0x327),a2_0xc1298(0x2e9))[a2_0xc1298(0x309)](async(_0x4b5570,_0xe9648e)=>{const _0x3ceaf5=a2_0xc1298,_0x139428=new ParentSegmentRunCommand(),_0x5ef971=program[_0x3ceaf5(0x1e9)](),_0x3d0c2b=await createTDXInstance(_0x5ef971),_0x13e795=await _0x139428['run']({'options':{..._0x5ef971,..._0xe9648e},'args':_0x4b5570?[_0x4b5570]:[],'tdx':_0x3d0c2b});process['exit'](_0x13e795);});const parentSegmentCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x254))[a2_0xc1298(0x2eb)]('ps')[a2_0xc1298(0x236)](a2_0xc1298(0x2bd));parentSegmentCmd[a2_0xc1298(0x282)]('list\x20[pattern]')[a2_0xc1298(0x236)](a2_0xc1298(0x1b5))[a2_0xc1298(0x309)](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0xc1298(0x236)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0xc1298(0x19f)](a2_0xc1298(0x285),'Output\x20file\x20path')[a2_0xc1298(0x19f)](a2_0xc1298(0x327),'Skip\x20confirmation\x20prompt')['option']('-u,\x20--use',a2_0xc1298(0x270))[a2_0xc1298(0x309)](async(_0x3dae89,_0x5e27b4)=>{const _0x2a5be2=a2_0xc1298,_0x2511ab=new ParentSegmentPullCommand(),_0x3de62e=program[_0x2a5be2(0x1e9)](),_0xec3890=await createTDXInstance(_0x3de62e),_0x4d6469=await _0x2511ab['run']({'options':{..._0x3de62e,..._0x5e27b4},'args':_0x3dae89?[_0x3dae89]:[],'tdx':_0xec3890});process[_0x2a5be2(0x339)](_0x4d6469);}),parentSegmentCmd['command'](a2_0xc1298(0x2d0))[a2_0xc1298(0x236)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0xc1298(0x19f)](a2_0xc1298(0x327),'Skip\x20confirmation\x20prompt')['action'](async(_0x507b8a,_0x384552)=>{const _0x1fed1b=a2_0xc1298,_0x119b86=new ParentSegmentPushCommand(),_0x352079=program[_0x1fed1b(0x1e9)](),_0x14b4ca=await createTDXInstance(_0x352079),_0x432147=await _0x119b86['run']({'options':{..._0x352079,..._0x384552},'args':_0x507b8a?[_0x507b8a]:[],'tdx':_0x14b4ca});process[_0x1fed1b(0x339)](_0x432147);}),parentSegmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2f6))['description'](a2_0xc1298(0x184))[a2_0xc1298(0x19f)](a2_0xc1298(0x246),'Show\x20only\x20master\x20table\x20validation')[a2_0xc1298(0x19f)](a2_0xc1298(0x229),a2_0xc1298(0x313))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b1),a2_0xc1298(0x1f6))[a2_0xc1298(0x19f)](a2_0xc1298(0x305),a2_0xc1298(0x218))['option'](a2_0xc1298(0x21e),a2_0xc1298(0x31d),a2_0xc1298(0x278))[a2_0xc1298(0x309)](async(_0x101833,_0x2e9f41)=>{const _0x32b630=a2_0xc1298,_0x2eda9b=new ParentSegmentValidateCommand(),_0x5e78e0=program['opts'](),_0x1832bc=await createTDXInstance(_0x5e78e0),_0x5097c7=await _0x2eda9b[_0x32b630(0x1f1)]({'options':{..._0x5e78e0,..._0x2e9f41},'args':_0x101833?[_0x101833]:[],'tdx':_0x1832bc});process[_0x32b630(0x339)](_0x5097c7);}),parentSegmentCmd[a2_0xc1298(0x282)]('preview\x20[name]')['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0xc1298(0x19f)](a2_0xc1298(0x246),a2_0xc1298(0x2e1))[a2_0xc1298(0x19f)](a2_0xc1298(0x229),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0xc1298(0x19f)](a2_0xc1298(0x1b1),a2_0xc1298(0x21b))[a2_0xc1298(0x19f)](a2_0xc1298(0x305),a2_0xc1298(0x333))['option']('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0xc1298(0x278))['action'](async(_0x3bf3e1,_0x4caf6c)=>{const _0x4ba0d2=a2_0xc1298,_0x5218eb=new ParentSegmentPreviewCommand(),_0x42a6a6=program['opts'](),_0xa8589=await createTDXInstance(_0x42a6a6),_0x412fa9=await _0x5218eb[_0x4ba0d2(0x1f1)]({'options':{..._0x42a6a6,..._0x4caf6c},'args':_0x3bf3e1?[_0x3bf3e1]:[],'tdx':_0xa8589});process['exit'](_0x412fa9);}),parentSegmentCmd[a2_0xc1298(0x282)]('run\x20[name]')['description'](a2_0xc1298(0x1dd))['option']('-y,\x20--yes',a2_0xc1298(0x2e9))[a2_0xc1298(0x309)](async(_0xcd3518,_0x19f72)=>{const _0x3abc86=a2_0xc1298,_0x2813d3=new ParentSegmentRunCommand(),_0x1917f2=program[_0x3abc86(0x1e9)](),_0x17fe78=await createTDXInstance(_0x1917f2),_0x5ea885=await _0x2813d3['run']({'options':{..._0x1917f2,..._0x19f72},'args':_0xcd3518?[_0xcd3518]:[],'tdx':_0x17fe78});process[_0x3abc86(0x339)](_0x5ea885);}),parentSegmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x190))[a2_0xc1298(0x236)](a2_0xc1298(0x1d1))['option'](a2_0xc1298(0x1aa),a2_0xc1298(0x32d))['option'](a2_0xc1298(0x1b3),a2_0xc1298(0x2f0))[a2_0xc1298(0x309)](async(_0x56f01b,_0x1882a8)=>{const _0x40468a=a2_0xc1298,_0x34da8a=new ParentSegmentFieldsCommand(),_0x3070e3=program['opts'](),_0x307a6f=await createTDXInstance(_0x3070e3),_0x46569b=await _0x34da8a[_0x40468a(0x1f1)]({'options':{..._0x3070e3,..._0x1882a8},'args':_0x56f01b?[_0x56f01b]:[],'tdx':_0x307a6f});process['exit'](_0x46569b);}),parentSegmentCmd[a2_0xc1298(0x282)]('view\x20[name]')[a2_0xc1298(0x236)](a2_0xc1298(0x196))['option'](a2_0xc1298(0x286),a2_0xc1298(0x239))['option'](a2_0xc1298(0x1aa),a2_0xc1298(0x32d))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b3),a2_0xc1298(0x2f0))[a2_0xc1298(0x309)](async(_0x580d88,_0x2016ab)=>{const _0x62c689=a2_0xc1298,_0x147836=new ParentSegmentViewCommand(),_0x4f3da8=program[_0x62c689(0x1e9)](),_0xc9dda1=await createTDXInstance(_0x4f3da8),_0x1214c9=await _0x147836[_0x62c689(0x1f1)]({'options':{..._0x4f3da8,..._0x2016ab},'args':_0x580d88?[_0x580d88]:[],'tdx':_0xc9dda1});process[_0x62c689(0x339)](_0x1214c9);}),parentSegmentCmd['command'](a2_0xc1298(0x29a))['description'](a2_0xc1298(0x201))[a2_0xc1298(0x19f)](a2_0xc1298(0x1aa),a2_0xc1298(0x32d))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b3),a2_0xc1298(0x2f0))[a2_0xc1298(0x309)](async(_0x5d5b93,_0x161c1b)=>{const _0x23cc32=new ParentSegmentDescCommand(),_0x5f5956=program['opts'](),_0x131ac7=await createTDXInstance(_0x5f5956),_0x55bc52=await _0x23cc32['run']({'options':{..._0x5f5956,..._0x161c1b},'args':_0x5d5b93?[_0x5d5b93]:[],'tdx':_0x131ac7});process['exit'](_0x55bc52);}),parentSegmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x283))[a2_0xc1298(0x236)](a2_0xc1298(0x1fd))[a2_0xc1298(0x19f)](a2_0xc1298(0x1aa),a2_0xc1298(0x32d))['option']('--jsonl',a2_0xc1298(0x2f0))[a2_0xc1298(0x309)](async(_0x22cb46,_0x16d299)=>{const _0x2daa9e=a2_0xc1298,_0x2edaf2=new ParentSegmentSQLCommand(),_0x1fc7a5=program[_0x2daa9e(0x1e9)](),_0x5b7c90=await createTDXInstance(_0x1fc7a5),_0x579a9b=await _0x2edaf2[_0x2daa9e(0x1f1)]({'options':{..._0x1fc7a5,..._0x16d299},'args':_0x22cb46?[_0x22cb46]:[],'tdx':_0x5b7c90});process[_0x2daa9e(0x339)](_0x579a9b);}),parentSegmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x216))['description'](a2_0xc1298(0x16c))[a2_0xc1298(0x19f)](a2_0xc1298(0x2aa),a2_0xc1298(0x2a1))[a2_0xc1298(0x19f)]('--json','Output\x20as\x20JSON')[a2_0xc1298(0x19f)](a2_0xc1298(0x1b3),'Output\x20as\x20JSON\x20Lines')[a2_0xc1298(0x309)](async(_0x276767,_0x4de72a)=>{const _0x2aeb60=a2_0xc1298,_0x2e46a8=new ParentSegmentShowCommand(),_0x17829d=program[_0x2aeb60(0x1e9)](),_0x5a46af=await createTDXInstance(_0x17829d),_0x73073=await _0x2e46a8['run']({'options':{..._0x17829d,..._0x4de72a},'args':_0x276767?[_0x276767]:[],'tdx':_0x5a46af});process[_0x2aeb60(0x339)](_0x73073);}),parentSegmentCmd['command'](a2_0xc1298(0x1a9))[a2_0xc1298(0x236)](a2_0xc1298(0x28f))[a2_0xc1298(0x309)](async(_0x235b01,_0x381d98)=>{const _0x12e61d=a2_0xc1298,_0x5872c6=new UseCommand(),_0xafe69f=program['opts'](),_0x205a1b=_0x235b01?[_0x12e61d(0x312),_0x235b01]:[],_0x3429cf=await _0x5872c6[_0x12e61d(0x1f1)]({'options':{..._0xafe69f,..._0x381d98},'args':_0x205a1b,'tdx':null});process[_0x12e61d(0x339)](_0x3429cf);}),parentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x284))[a2_0xc1298(0x236)](a2_0xc1298(0x15c))[a2_0xc1298(0x186)](a2_0xc1298(0x1fa),a2_0xc1298(0x292))['requiredOption'](a2_0xc1298(0x2dc),'Master\x20table\x20name')['option'](a2_0xc1298(0x21c),'Parent\x20segment\x20description')[a2_0xc1298(0x19f)](a2_0xc1298(0x2b1),a2_0xc1298(0x334))[a2_0xc1298(0x19f)](a2_0xc1298(0x20f),a2_0xc1298(0x14b))[a2_0xc1298(0x19f)]('--timezone\x20<tz>',a2_0xc1298(0x180))[a2_0xc1298(0x19f)](a2_0xc1298(0x16b),a2_0xc1298(0x31c))[a2_0xc1298(0x19f)](a2_0xc1298(0x2fc),a2_0xc1298(0x17d))[a2_0xc1298(0x19f)](a2_0xc1298(0x1c3),a2_0xc1298(0x2ac))[a2_0xc1298(0x19f)]('--behaviors-file\x20<file>',a2_0xc1298(0x2dd))['option'](a2_0xc1298(0x2b4),a2_0xc1298(0x291))['option'](a2_0xc1298(0x223),a2_0xc1298(0x27f))[a2_0xc1298(0x309)](async(_0x1aa54c,_0x4404b4)=>{const _0x178e3c=a2_0xc1298,_0x2c72a0=new ParentSegmentCreateCommand(),_0x51bf8e=program['opts'](),_0x464c05=await createTDXInstance(_0x51bf8e),_0x4a1722=await _0x2c72a0[_0x178e3c(0x1f1)]({'options':{..._0x51bf8e,..._0x4404b4},'args':[_0x1aa54c],'tdx':_0x464c05});process[_0x178e3c(0x339)](_0x4a1722);}),parentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x194))[a2_0xc1298(0x236)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0xc1298(0x19f)](a2_0xc1298(0x21c),a2_0xc1298(0x1e2))[a2_0xc1298(0x19f)](a2_0xc1298(0x2b1),a2_0xc1298(0x318))['option'](a2_0xc1298(0x20f),a2_0xc1298(0x2f8))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ac),'Updated\x20timezone')[a2_0xc1298(0x19f)](a2_0xc1298(0x20b),a2_0xc1298(0x2bb))[a2_0xc1298(0x19f)]('--add-attributes-file\x20<file>','Add\x20attributes\x20from\x20JSON\x20file')['option']('--add-behaviors\x20<json>',a2_0xc1298(0x188))[a2_0xc1298(0x19f)](a2_0xc1298(0x2ff),a2_0xc1298(0x24d))[a2_0xc1298(0x309)](async(_0x10df74,_0x5e6eda)=>{const _0x4781d3=a2_0xc1298,_0x444971=new ParentSegmentUpdateCommand(),_0x1711a1=program[_0x4781d3(0x1e9)](),_0x41f77d=await createTDXInstance(_0x1711a1),_0x3a5fea=await _0x444971[_0x4781d3(0x1f1)]({'options':{..._0x1711a1,..._0x5e6eda},'args':[_0x10df74],'tdx':_0x41f77d});process[_0x4781d3(0x339)](_0x3a5fea);}),folderCmd['command']('create\x20<parent_name>\x20<folder_name>')[a2_0xc1298(0x236)]('Create\x20segment\x20folder')[a2_0xc1298(0x19f)](a2_0xc1298(0x21c),a2_0xc1298(0x205))[a2_0xc1298(0x19f)](a2_0xc1298(0x325),a2_0xc1298(0x22d))[a2_0xc1298(0x309)](async(_0x433b43,_0x212445,_0x45cdcc)=>{const _0x31c870=a2_0xc1298,_0x181009=new SegmentFolderCreateCommand(),_0x4b5f1f=program[_0x31c870(0x1e9)](),_0x249f10=await createTDXInstance(_0x4b5f1f),_0x5b1a6c=await _0x181009[_0x31c870(0x1f1)]({'options':{..._0x4b5f1f,..._0x45cdcc},'args':[_0x433b43,_0x212445],'tdx':_0x249f10});process['exit'](_0x5b1a6c);}),program['command'](a2_0xc1298(0x1ef))[a2_0xc1298(0x236)](a2_0xc1298(0x231))[a2_0xc1298(0x309)](async(_0x1ff301,_0x13f23a)=>{const _0x51bb7c=a2_0xc1298,_0x4a2489=new ActivationsCommand(),_0xb10b0b=program[_0x51bb7c(0x1e9)](),_0x266f67=await createTDXInstance(_0xb10b0b),_0x2583ce=await _0x4a2489[_0x51bb7c(0x1f1)]({'options':{..._0xb10b0b,..._0x13f23a},'args':[_0x1ff301],'tdx':_0x266f67});process['exit'](_0x2583ce);});const workflowCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x199))[a2_0xc1298(0x2eb)]('wf')['description']('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x319))['description'](a2_0xc1298(0x2a8)),wfProjectListAction=async(_0x5ac1c2,_0x3929c1)=>{const _0x3ea8ad=a2_0xc1298,_0x49a256=new WorkflowProjectsCommand(),_0x1b6c6b=program[_0x3ea8ad(0x1e9)](),_0x2b307d=await createTDXInstance(_0x1b6c6b),_0x4fefbf=await _0x49a256[_0x3ea8ad(0x1f1)]({'options':{..._0x1b6c6b,..._0x3929c1},'args':_0x5ac1c2?[_0x5ac1c2]:[],'tdx':_0x2b307d});process[_0x3ea8ad(0x339)](_0x4fefbf);};wfProjectCmd[a2_0xc1298(0x282)](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x142))[a2_0xc1298(0x309)](wfProjectListAction),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2e2))[a2_0xc1298(0x236)](a2_0xc1298(0x16e))[a2_0xc1298(0x309)](wfProjectListAction);const wfWorkflowListAction=async(_0x1e123b,_0xdd778b)=>{const _0x225d74=a2_0xc1298,_0x4e899a=new WorkflowWorkflowsCommand(),_0x7d9928=program[_0x225d74(0x1e9)](),_0x356a61=await createTDXInstance(_0x7d9928),_0x29113a=await _0x4e899a[_0x225d74(0x1f1)]({'options':{..._0x7d9928,..._0xdd778b},'args':_0x1e123b?[_0x1e123b]:[],'tdx':_0x356a61});process['exit'](_0x29113a);};workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1b8))[a2_0xc1298(0x236)](a2_0xc1298(0x204))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2f2))['description']('Workflow\x20session\x20management'),wfSessionListAction=async(_0x2d90d2,_0x1982db)=>{const _0xd389e2=a2_0xc1298,_0x16fdae=new WorkflowSessionsCommand(),_0x1073b9=program[_0xd389e2(0x1e9)](),_0x3f9f4d=await createTDXInstance(_0x1073b9),_0x4b9b4a=await _0x16fdae[_0xd389e2(0x1f1)]({'options':{..._0x1073b9,..._0x1982db},'args':_0x2d90d2?[_0x2d90d2]:[],'tdx':_0x3f9f4d});process[_0xd389e2(0x339)](_0x4b9b4a);};wfSessionCmd[a2_0xc1298(0x282)](a2_0xc1298(0x24a))[a2_0xc1298(0x236)](a2_0xc1298(0x169))['option'](a2_0xc1298(0x311),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0xc1298(0x19f)](a2_0xc1298(0x167),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0xc1298(0x19f)](a2_0xc1298(0x2c0),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0xc1298(0x309)](wfSessionListAction),workflowCmd[a2_0xc1298(0x282)]('sessions\x20[project]')[a2_0xc1298(0x236)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0xc1298(0x19f)]('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0xc1298(0x19f)](a2_0xc1298(0x167),a2_0xc1298(0x2f4))[a2_0xc1298(0x19f)](a2_0xc1298(0x2c0),a2_0xc1298(0x2f5))[a2_0xc1298(0x309)](wfSessionListAction);const wfAttemptListAction=async(_0x265eae,_0x4dc7a9)=>{const _0x273c10=a2_0xc1298,_0x4e5143=new WorkflowAttemptsCommand(),_0x46e1d1=program[_0x273c10(0x1e9)](),_0x1a9ca1=await createTDXInstance(_0x46e1d1),_0x52ba14=await _0x4e5143[_0x273c10(0x1f1)]({'options':{..._0x46e1d1,..._0x4dc7a9},'args':_0x265eae?[_0x265eae]:[],'tdx':_0x1a9ca1});process[_0x273c10(0x339)](_0x52ba14);},attemptCmd=workflowCmd['command']('attempt')[a2_0xc1298(0x236)]('Workflow\x20attempt\x20management')['argument']('[attempt-id]',a2_0xc1298(0x226))[a2_0xc1298(0x197)](a2_0xc1298(0x19b),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0xc1298(0x197)]('[task-name]',a2_0xc1298(0x1c4))['option'](a2_0xc1298(0x2bc),a2_0xc1298(0x209))['option'](a2_0xc1298(0x1bd),a2_0xc1298(0x207))[a2_0xc1298(0x19f)]('--resume-from\x20<task>',a2_0xc1298(0x289))['option'](a2_0xc1298(0x17b),a2_0xc1298(0x268))['option'](a2_0xc1298(0x161),a2_0xc1298(0x212))[a2_0xc1298(0x19f)](a2_0xc1298(0x30b),a2_0xc1298(0x235))[a2_0xc1298(0x309)](async(_0x5d1600,_0x3433ee,_0x273038,_0x3cfe96)=>{const _0x468bda=a2_0xc1298;if(_0x5d1600===_0x468bda(0x24f)){await wfAttemptListAction(_0x3433ee,_0x3cfe96);return;}if(!_0x5d1600){attemptCmd['help']();return;}const _0x52f4e3=program['opts'](),_0x126615=await createTDXInstance(_0x52f4e3);let _0x5b2882=0x0;if(!_0x3433ee){const _0x497aaf=new WorkflowAttemptCommand();_0x5b2882=await _0x497aaf[_0x468bda(0x1f1)]({'options':{..._0x52f4e3,..._0x3cfe96},'args':[_0x5d1600],'tdx':_0x126615});}else{if(_0x3433ee===_0x468bda(0x2cc)){const _0x55c3bf=new WorkflowLogsCommand();_0x5b2882=await _0x55c3bf[_0x468bda(0x1f1)]({'options':{..._0x52f4e3,..._0x3cfe96},'args':_0x273038?[_0x5d1600,_0x273038]:[_0x5d1600],'tdx':_0x126615});}else{if(_0x3433ee==='tasks'){const _0x3cbf9c=new WorkflowTasksCommand();_0x5b2882=await _0x3cbf9c['run']({'options':{..._0x52f4e3,..._0x3cfe96},'args':[_0x5d1600],'tdx':_0x126615});}else{if(_0x3433ee===_0x468bda(0x20e)){const _0x1377c0=new WorkflowKillCommand();_0x5b2882=await _0x1377c0['run']({'options':{..._0x52f4e3,..._0x3cfe96},'args':[_0x5d1600],'tdx':_0x126615});}else{if(_0x3433ee===_0x468bda(0x177)){const _0x3bc855=new WorkflowRetryCommand();_0x5b2882=await _0x3bc855[_0x468bda(0x1f1)]({'options':{..._0x52f4e3,..._0x3cfe96},'args':['attempt:'+_0x5d1600],'tdx':_0x126615});}else console[_0x468bda(0x1a7)](_0x468bda(0x2cf)+_0x3433ee),console[_0x468bda(0x1a7)](_0x468bda(0x1c6)),_0x5b2882=0x1;}}}}process['exit'](_0x5b2882);});attemptCmd[a2_0xc1298(0x282)](a2_0xc1298(0x24a))[a2_0xc1298(0x236)](a2_0xc1298(0x1d8))['option'](a2_0xc1298(0x30b),a2_0xc1298(0x1a8))['action'](wfAttemptListAction),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2a6))[a2_0xc1298(0x236)](a2_0xc1298(0x168))[a2_0xc1298(0x19f)](a2_0xc1298(0x30b),a2_0xc1298(0x1a8))[a2_0xc1298(0x309)](wfAttemptListAction),workflowCmd[a2_0xc1298(0x282)]('retry\x20<session-id>')[a2_0xc1298(0x236)](a2_0xc1298(0x316))[a2_0xc1298(0x19f)](a2_0xc1298(0x323),'Resume\x20from\x20specific\x20task')[a2_0xc1298(0x19f)](a2_0xc1298(0x17b),a2_0xc1298(0x300))[a2_0xc1298(0x309)](async(_0x11216c,_0x36f35b)=>{const _0x2d0a90=a2_0xc1298,_0x34b1a5=new WorkflowRetryCommand(),_0x131af1=program[_0x2d0a90(0x1e9)](),_0x36acbc=await createTDXInstance(_0x131af1),_0x520683=await _0x34b1a5[_0x2d0a90(0x1f1)]({'options':{..._0x131af1,..._0x36f35b},'args':[_0x11216c],'tdx':_0x36acbc});process[_0x2d0a90(0x339)](_0x520683);}),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x269))[a2_0xc1298(0x236)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0xc1298(0x19f)](a2_0xc1298(0x1e5),a2_0xc1298(0x14c),(_0x3143e9,_0x19bdd6=[])=>[..._0x19bdd6,_0x3143e9],[])[a2_0xc1298(0x19f)](a2_0xc1298(0x257),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0xc1298(0x309)](async(_0x4d087f,_0x251adb)=>{const _0x4c98b6=a2_0xc1298,_0x412d3f=new WorkflowRunCommand(),_0x57829d=program[_0x4c98b6(0x1e9)](),_0x5beb74=await createTDXInstance(_0x57829d),_0x18afaa=await _0x412d3f[_0x4c98b6(0x1f1)]({'options':{..._0x57829d,..._0x251adb},'args':[_0x4d087f],'tdx':_0x5beb74});process[_0x4c98b6(0x339)](_0x18afaa);}),workflowCmd['command']('download\x20<project-name>\x20[output-dir]')[a2_0xc1298(0x236)](a2_0xc1298(0x22f))[a2_0xc1298(0x19f)](a2_0xc1298(0x295),a2_0xc1298(0x1a4))[a2_0xc1298(0x309)](async(_0x4b6372,_0x4c3196,_0x2d657a)=>{const _0x13a808=a2_0xc1298,_0xa3433d=new WorkflowDownloadCommand(),_0x9d0fbd=program[_0x13a808(0x1e9)](),_0x8ca401=await createTDXInstance(_0x9d0fbd),_0x56b546=await _0xa3433d[_0x13a808(0x1f1)]({'options':{..._0x9d0fbd,..._0x2d657a},'args':[_0x4b6372,_0x4c3196||'.'],'tdx':_0x8ca401});process[_0x13a808(0x339)](_0x56b546);}),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x281))['description'](a2_0xc1298(0x1a3))[a2_0xc1298(0x19f)]('--name\x20<name>',a2_0xc1298(0x287))['option'](a2_0xc1298(0x295),'Revision\x20name\x20(default:\x20timestamp)')[a2_0xc1298(0x19f)]('--skip-validation',a2_0xc1298(0x1d3))['action'](async(_0x5b1438,_0x25ba40)=>{const _0x239380=a2_0xc1298,_0x7c8fd4=new WorkflowPushCommand(),_0x56f193=program[_0x239380(0x1e9)](),_0x168e86=await createTDXInstance(_0x56f193),_0x315b63=await _0x7c8fd4[_0x239380(0x1f1)]({'options':{..._0x56f193,..._0x25ba40},'args':_0x5b1438?[_0x5b1438]:[],'tdx':_0x168e86});process[_0x239380(0x339)](_0x315b63);}),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x202))[a2_0xc1298(0x236)](a2_0xc1298(0x2c8))[a2_0xc1298(0x309)](async(_0x48762a,_0x12f958)=>{const _0x32a4b1=a2_0xc1298,_0x842828=new WorkflowDeleteCommand(),_0xf96832=program[_0x32a4b1(0x1e9)](),_0x5acc6f=await createTDXInstance(_0xf96832),_0x33ab82=await _0x842828[_0x32a4b1(0x1f1)]({'options':{..._0xf96832,..._0x12f958},'args':[_0x48762a],'tdx':_0x5acc6f});process['exit'](_0x33ab82);});const jobCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x1b0))[a2_0xc1298(0x236)](a2_0xc1298(0x1ae)),jobListAction=async _0x1d1810=>{const _0x23a1da=a2_0xc1298,_0x20089f=new JobListCommand(),_0x63d700=program['opts'](),_0x3bc39c=await createTDXInstance(_0x63d700),_0x5006bc=await _0x20089f[_0x23a1da(0x1f1)]({'options':{..._0x63d700,..._0x1d1810},'args':[],'tdx':_0x3bc39c});process['exit'](_0x5006bc);};jobCmd[a2_0xc1298(0x282)]('list')[a2_0xc1298(0x236)](a2_0xc1298(0x144))[a2_0xc1298(0x19f)](a2_0xc1298(0x311),a2_0xc1298(0x1c7))[a2_0xc1298(0x309)](jobListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x145),{'hidden':!![]})[a2_0xc1298(0x236)]('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0xc1298(0x19f)](a2_0xc1298(0x311),a2_0xc1298(0x1c7))[a2_0xc1298(0x309)](jobListAction),jobCmd[a2_0xc1298(0x282)]('show\x20<job-id>')[a2_0xc1298(0x236)](a2_0xc1298(0x1e8))[a2_0xc1298(0x309)](async(_0x305d09,_0x252526)=>{const _0xfcc07c=a2_0xc1298,_0x2596fd=new JobShowCommand(),_0x1a624f=program[_0xfcc07c(0x1e9)](),_0x501c90=await createTDXInstance(_0x1a624f),_0x4dfc7b=await _0x2596fd['run']({'options':{..._0x1a624f,..._0x252526},'args':[_0x305d09],'tdx':_0x501c90});process[_0xfcc07c(0x339)](_0x4dfc7b);}),jobCmd['command'](a2_0xc1298(0x2ec))[a2_0xc1298(0x236)](a2_0xc1298(0x2ae))['action'](async(_0x114083,_0x5a9db0)=>{const _0x91e56e=a2_0xc1298,_0x3de846=new JobKillCommand(),_0x1f31f4=program[_0x91e56e(0x1e9)](),_0x404c26=await createTDXInstance(_0x1f31f4),_0x166a2e=await _0x3de846[_0x91e56e(0x1f1)]({'options':{..._0x1f31f4,..._0x5a9db0},'args':[_0x114083],'tdx':_0x404c26});process[_0x91e56e(0x339)](_0x166a2e);}),jobCmd[a2_0xc1298(0x282)]('submit\x20[query]')[a2_0xc1298(0x236)](a2_0xc1298(0x2c3))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ea),a2_0xc1298(0x296),'trino')[a2_0xc1298(0x19f)](a2_0xc1298(0x2a5),a2_0xc1298(0x17f))[a2_0xc1298(0x19f)](a2_0xc1298(0x2db),'Database\x20name\x20(default:\x20information_schema)',a2_0xc1298(0x1c5))['action'](async(_0x284906,_0xc8eb0d)=>{const _0x18cd7d=a2_0xc1298,_0x26a821=new JobSubmitCommand(),_0x16ade7=program[_0x18cd7d(0x1e9)](),_0x446bb4=await createTDXInstance(_0x16ade7),_0x511635=await _0x26a821[_0x18cd7d(0x1f1)]({'options':{..._0x16ade7,..._0xc8eb0d},'args':_0x284906?[_0x284906]:[],'tdx':_0x446bb4});process[_0x18cd7d(0x339)](_0x511635);}),jobCmd['command'](a2_0xc1298(0x277))[a2_0xc1298(0x236)](a2_0xc1298(0x302))[a2_0xc1298(0x309)](async(_0x13cb12,_0x13101f)=>{const _0x212cf0=a2_0xc1298,_0x440c06=new JobResultCommand(),_0x3352fc=program[_0x212cf0(0x1e9)](),_0xcc029=await createTDXInstance(_0x3352fc),_0x1acef6=await _0x440c06['run']({'options':{..._0x3352fc,..._0x13101f},'args':[_0x13cb12],'tdx':_0xcc029});process[_0x212cf0(0x339)](_0x1acef6);});const llmCmd=program[a2_0xc1298(0x282)]('llm')['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command'](a2_0xc1298(0x15e))['description'](a2_0xc1298(0x181))['action'](async(_0x34b222,_0x842478)=>{const _0x586e4f=a2_0xc1298,_0xcaed01=new LLMUseCommand(),_0x2e83a3=program['opts'](),_0xc7c6e1=await createTDXInstance(_0x2e83a3),_0x21de12=await _0xcaed01[_0x586e4f(0x1f1)]({'options':{..._0x2e83a3,..._0x842478},'args':[_0x34b222],'tdx':_0xc7c6e1});process[_0x586e4f(0x339)](_0x21de12);}),llmCmd[a2_0xc1298(0x282)]('models')['description'](a2_0xc1298(0x2cd))[a2_0xc1298(0x309)](async _0x2b8155=>{const _0x376578=a2_0xc1298,_0x290924=new LLMModelsCommand(),_0x28671e=program['opts'](),_0x599657=await createTDXInstance(_0x28671e),_0x5afe23=await _0x290924[_0x376578(0x1f1)]({'options':{..._0x28671e,..._0x2b8155},'args':[],'tdx':_0x599657});process[_0x376578(0x339)](_0x5afe23);});const projectCmd=llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x319))[a2_0xc1298(0x236)](a2_0xc1298(0x155)),llmProjectListAction=async(_0x22519d,_0x4377af)=>{const _0x192a1a=a2_0xc1298,_0x4cce12=new LLMProjectsCommand(),_0x49468f=program[_0x192a1a(0x1e9)](),_0x330596=await createTDXInstance(_0x49468f),_0x127139=await _0x4cce12[_0x192a1a(0x1f1)]({'options':{..._0x49468f,..._0x4377af},'args':_0x22519d?[_0x22519d]:[],'tdx':_0x330596});process[_0x192a1a(0x339)](_0x127139);};projectCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x1f5))[a2_0xc1298(0x309)](llmProjectListAction),llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2e2))['description'](a2_0xc1298(0x153))[a2_0xc1298(0x309)](llmProjectListAction),projectCmd[a2_0xc1298(0x282)](a2_0xc1298(0x284))['description'](a2_0xc1298(0x2e8))['option'](a2_0xc1298(0x21c),a2_0xc1298(0x2d7))['action'](async(_0x11b454,_0x516ec5)=>{const _0x4e0594=a2_0xc1298,_0x42977e=new LLMProjectCreateCommand(),_0x127d94=program['opts'](),_0x56abe6=await createTDXInstance(_0x127d94),_0x301d84=await _0x42977e[_0x4e0594(0x1f1)]({'options':{..._0x127d94,..._0x516ec5},'args':[_0x11b454],'tdx':_0x56abe6});process['exit'](_0x301d84);}),projectCmd['command'](a2_0xc1298(0x2b6))[a2_0xc1298(0x236)]('Delete\x20an\x20LLM\x20project')[a2_0xc1298(0x309)](async(_0x315732,_0x57cdcb)=>{const _0x4f7dc5=a2_0xc1298,_0x26b408=new LLMProjectDeleteCommand(),_0x5f006e=program[_0x4f7dc5(0x1e9)](),_0x4bc950=await createTDXInstance(_0x5f006e),_0xe283f5=await _0x26b408['run']({'options':{..._0x5f006e,..._0x57cdcb},'args':[_0x315732],'tdx':_0x4bc950});process['exit'](_0xe283f5);}),projectCmd[a2_0xc1298(0x282)](a2_0xc1298(0x26c))[a2_0xc1298(0x236)](a2_0xc1298(0x21f))['option'](a2_0xc1298(0x326),a2_0xc1298(0x1cb))[a2_0xc1298(0x19f)](a2_0xc1298(0x25a),a2_0xc1298(0x249))[a2_0xc1298(0x309)](async(_0x23c185,_0x111952)=>{const _0x4efb52=a2_0xc1298,_0x546bd0=new LLMProjectBackupCommand(),_0x17b7ba=program[_0x4efb52(0x1e9)](),_0x363348=await createTDXInstance(_0x17b7ba),_0x3ae288=await _0x546bd0[_0x4efb52(0x1f1)]({'options':{..._0x17b7ba,..._0x111952},'args':[_0x23c185],'tdx':_0x363348});process[_0x4efb52(0x339)](_0x3ae288);}),projectCmd[a2_0xc1298(0x282)]('restore\x20<folder>')[a2_0xc1298(0x236)](a2_0xc1298(0x2ee))[a2_0xc1298(0x19f)](a2_0xc1298(0x33e),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')['option']('--dry-run',a2_0xc1298(0x260))['action'](async(_0x550e5d,_0x4ff9fe)=>{const _0x28da68=a2_0xc1298,_0x2ae352=new LLMProjectRestoreCommand(),_0x413753=program[_0x28da68(0x1e9)](),_0x187742=await createTDXInstance(_0x413753),_0xbff560=await _0x2ae352[_0x28da68(0x1f1)]({'options':{..._0x413753,..._0x4ff9fe},'args':[_0x550e5d],'tdx':_0x187742});process[_0x28da68(0x339)](_0xbff560);});const agentCmd=llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2df))[a2_0xc1298(0x236)](a2_0xc1298(0x217)),llmAgentListAction=async(_0x1dd7b0,_0x5b3188)=>{const _0x4adde9=a2_0xc1298,_0xbedc76=new LLMAgentsCommand(),_0x5cdca2=program[_0x4adde9(0x1e9)](),_0x40b7a0=await createTDXInstance(_0x5cdca2),_0x4c064b=await _0xbedc76[_0x4adde9(0x1f1)]({'options':{..._0x5cdca2,..._0x5b3188},'args':_0x1dd7b0?[_0x1dd7b0]:[],'tdx':_0x40b7a0});process[_0x4adde9(0x339)](_0x4c064b);};function a2_0xb95d(){const _0x503880=['--agent\x20<ref>','Workflow\x20project\x20management','Commands:','--limit\x20<n>','List\x20all\x20available\x20profiles','Behaviors\x20as\x20JSON\x20string','name','Kill\x20a\x20job','Table\x20management\x20commands','Email\x20template\x20management','--schedule-type\x20<type>','--name\x20<name>','--new','--customer-group\x20<json>','Update\x20an\x20email\x20template','delete\x20<name>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','list\x20[path]','includes','--email-sender-id\x20<id>','Add\x20attributes\x20as\x20JSON\x20string','--include-subtasks','Parent\x20segment\x20management','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20only\x20master\x20table\x20validation','--to\x20<timestamp>','Interactive\x20chat\x20selector','Run\x20Trino\x20query\x20with\x20streaming\x20results','Submit\x20a\x20job','Filtering\x20rule\x20as\x20JSON\x20string','Trino\x20catalog\x20(default:\x20td)','auth','Delete\x20a\x20workspace','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','pwd','1106565WlTNhq','--format\x20<format>','logs','List\x20available\x20LLM\x20models','preview\x20[file]','Unknown\x20action:\x20','push\x20[name]','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--yes','status','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--timeout\x20<seconds>','version','Project\x20description','--prompt\x20<text>','aliases','createAsync','--database\x20<name>','--table\x20<table>','Behaviors\x20from\x20JSON\x20file','fields\x20[parent_name]','agent','Update\x20an\x20existing\x20agent','Show\x20master\x20table\x20sample\x20data','projects\x20[pattern]','--workspace\x20<name>','logLevel','51079XjrYhx','preAction','18668fGbdfo','Create\x20a\x20new\x20LLM\x20project','Skip\x20confirmation\x20prompt','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','alias','kill\x20<job-id>','describe','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','site','Output\x20as\x20JSON\x20Lines','--llm-project\x20<name>','session','replace','Start\x20time\x20filter\x20(ISO\x208601\x20format)','End\x20time\x20filter\x20(ISO\x208601\x20format)','validate\x20[name]','port','Updated\x20schedule\x20option','--version','parents\x20[pattern]','--rule\x20<json>','--attributes-file\x20<file>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Agent\x20description','--add-behaviors-file\x20<file>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','DEBUG','Get\x20job\x20results','Update\x20a\x20campaign','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--enriched','INFO','--html\x20<html>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','action','Delete\x20an\x20agent','--include-retried','--color','forEach','tables\x20[pattern]','--subject\x20<subject>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--status\x20<status>','parent_segment','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','commandUsage','--type\x20<type>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','update\x20<segment_name>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','project','--description\x20<desc>','Agent\x20reference\x20(project-name/agent-name)','Attributes\x20as\x20JSON\x20string','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','230JDsKlX','Make\x20segment\x20invisible\x20(default:\x20visible)','databases\x20[pattern]','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Save\x20output\x20to\x20file','--from-task\x20<task>','desc','--parent-folder\x20<name>','-o,\x20--output\x20<folder>','-y,\x20--yes','--segment\x20<path>','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Delete\x20a\x20campaign','--json-columns\x20<cols>','segments\x20[path]','Output\x20as\x20JSON','TRACE','Parent\x20segment\x20(audience)\x20management','addHelpText','Filtering\x20rule\x20from\x20JSON\x20file','sonnet','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','allowExcessArguments','--in\x20<database>','System\x20prompt/instructions\x20(default:\x20empty)','Workspace\x20name','exit','Usage:\x20','10230PIKaQw','4000','46924IXDPlz','--name\x20<new-name>','join','chats','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','catch','List\x20jobs','jobs','--folder\x20<name>','--model\x20<name>','Agent\x20prompt/instructions','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Workflow\x20parameter\x20(repeatable)','noColor','configureHelp','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','--max-tool-iterations\x20<n>','--invisible','CDP\x20segment\x20management\x20commands','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','LLM\x20project\x20management','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Enable\x20verbose\x20logging','list\x20[pattern]','Plaintext\x20template\x20content','profile','Editor\x20type','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Create\x20a\x20new\x20agent\x20in\x20current\x20project','use\x20<project-name>','parse','Template\x20name','--force','info\x20[segment_name]','claude\x20[args...]','732inbvng','slice','show\x20<name-or-id>','--from\x20<timestamp>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--site\x20<site>','--attributes\x20<json>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','context','statusline','delete\x20<name-or-id>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--data\x20<data>','--full','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','New\x20segment\x20name','retry','debug','Create\x20an\x20email\x20template','Show\x20the\x20most\x20recent\x20chat','--params\x20<json>','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','Attributes\x20from\x20JSON\x20file','\x20-\x20built\x20','Read\x20query\x20from\x20file','Timezone\x20(e.g.,\x20America/Los_Angeles)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Campaign\x20management','Create\x20a\x20new\x20campaign','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','--parent-segment\x20<name>','requiredOption','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Add\x20behaviors\x20as\x20JSON\x20string','-X,\x20--method\x20<method>','subcommandDescription','--limit\x20<number>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--limit\x20<rows>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','fields\x20[name]','--editor-type\x20<type>','show\x20<agent-name>','registeredArguments','update\x20<name>','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','argument','push\x20[file]','workflow','../package.json','[action]','--name\x20<new_name>','isTTY','apiKey','option','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Remove\x20API\x20key\x20from\x20system\x20keychain','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','chat\x20[message...]','Read\x20SQL\x20query\x20from\x20file','error','Include\x20retried\x20attempts','use\x20[name]','--json','show\x20<folder_ref>','--timezone\x20<tz>','--project\x20<name>','Job\x20management\x20commands','json','job','--behavior\x20[name]','tsv','--jsonl','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','gitRevision','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','workflows\x20[project]','--starter-message\x20<text>','Setup\x20API\x20key\x20authentication\x20interactively','--port\x20<number>','15432bvURoL','--reason\x20<text>','-v,\x20--verbose','Output\x20file\x20path\x20(default:\x20<name>.yml)','stdout','query\x20[sql]','then','--behaviors\x20<json>','Task\x20name\x20for\x20logs\x20action','information_schema','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','run\x20[name]','-d,\x20--database\x20<database>','Output\x20folder\x20(default:\x20{project_name}.llm)','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Workspace\x20description','tdx\x20','template','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Skip\x20validation\x20of\x20.dig\x20files','\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','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','usage','--start-at\x20<datetime>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','get','engage','outputHelp','campaigns\x20[pattern]','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--temperature\x20<n>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','repeat','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Updated\x20description','folders\x20<parent_name>','Campaign\x20description','--param\x20<key=value>','Campaign\x20type\x20(email\x20or\x20push)','update\x20<agent-name>','Show\x20job\x20details','opts','--job-type\x20<type>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--in\x20<name>','clear','-d,\x20--database\x20<name>','activations\x20<segment_name>','0.7','run','--trace','Move\x20to\x20folder','Create\x20a\x20workspace','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','buildTime','--no-color','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--database\x20<db>','pause\x20<name-or-id>','argv','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','delete\x20<agent-name>','--system-prompt\x20<text>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','delete\x20<project-name-or-id>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Folder\x20description','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Reason\x20for\x20killing\x20the\x20attempt','sql\x20[segment_name]','Include\x20subtasks\x20in\x20tasks\x20output','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--add-attributes\x20<json>','Workspace\x20name\x20(required)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','kill','--schedule-option\x20<value>','api\x20[endpoint]','summary','Force\x20retry\x20even\x20if\x20not\x20failed','build-info.json','Authentication\x20management','AI-native\x20CLI\x20for\x20Treasure\x20Data','show\x20[name]','LLM\x20agent\x20management','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','database','Preview\x20operation\x20without\x20executing','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--description\x20<text>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','--interval\x20<range>','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','filter','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--customer-group-file\x20<file>','commandDescription','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Attempt\x20ID','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','optionDescription','--attribute\x20[name]','8MKfSzZ','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','workspaces\x20[pattern]','Parent\x20folder\x20name\x20for\x20nested\x20folders','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','segment','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','stderr','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Database\x20to\x20use\x20(overrides\x20context)','Include\x20retried\x20attempts\x20(for\x20list)','description','--tsv','--catalog\x20<catalog>','Open\x20parent\x20segment\x20in\x20web\x20browser','describe\x20[table]','Starter\x20message','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Show\x20segment\x20schema\x20(column\x20types)','Duplicate\x20a\x20campaign','create','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','folder','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','update\x20<name-or-id>','allowUnknownOption','hook','--master','history\x20[chat-id]','launch\x20<name-or-id>','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','list\x20[project]','Set\x20operation\x20timeout\x20in\x20seconds','agents\x20[pattern]','Add\x20behaviors\x20from\x20JSON\x20file','commands','list','Email\x20subject\x20template','us01','Model\x20name\x20(default:\x20claude-4.5-sonnet)','Database\x20to\x20query\x20(default:\x20information_schema)','parent-segment','Resume\x20a\x20paused\x20campaign','trace','--session-time\x20<time>','-r,\x20--recursive','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','--dry-run','.dev','jsonl','length','-H,\x20--header\x20<header>','--rule-file\x20<file>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','\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','--plaintext\x20<text>','--last','--max-depth\x20<depth>','subcommandTerm','Maximum\x20recursion\x20depth\x20(default:\x2010)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','run\x20<workflow>','format','after','backup\x20<name>','profiles','--kind\x20<type>','hidden','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','push','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','tdx','Launch\x20a\x20campaign','claude-4.5-sonnet','550cJHxEI','result\x20<job-id>','-1d','--clear','--output\x20<file>','109tbfiRN','duplicate\x20<name-or-id>','Delete\x20an\x20email\x20template','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Customer\x20group\x20from\x20JSON\x20file','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','push\x20[project-name-or-dir]','command','sql\x20[name]','create\x20<name>','-o,\x20--output\x20<file>','-w,\x20--web','Override\x20project\x20name','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Resume\x20from\x20specific\x20task\x20(retry)','Show\x20workspace\x20details','-p,\x20--profile\x20<name>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','pull\x20[name]','HTML\x20template\x20content','Set\x20or\x20show\x20parent\x20segment\x20context','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Customer\x20group\x20as\x20JSON\x20string','Master\x20database\x20name','--agent\x20<name>','map','--revision\x20<revision>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','workspace','--name\x20<text>',',\x20version\x20','desc\x20[name]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','1010025yxGSVb','Set\x20current\x20segment/folder\x20context\x20for\x20navigation','resume\x20<name-or-id>','Email\x20sender\x20ID\x20for\x20delivery','--type\x20<api_type>','Limit\x20number\x20of\x20rows','--session\x20<id>','Options:','171120ymUMZN','-f,\x20--file\x20<path>','attempts\x20[project]'];a2_0xb95d=function(){return _0x503880;};return a2_0xb95d();}agentCmd[a2_0xc1298(0x282)]('list\x20[pattern]')[a2_0xc1298(0x236)](a2_0xc1298(0x1d0))[a2_0xc1298(0x309)](llmAgentListAction),llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x24c))[a2_0xc1298(0x236)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0xc1298(0x309)](llmAgentListAction),agentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x192))[a2_0xc1298(0x236)]('Show\x20agent\x20details')[a2_0xc1298(0x309)](async(_0x542673,_0x31b3ce)=>{const _0xdd8317=a2_0xc1298,_0x46375e=new LLMAgentShowCommand(),_0x3ca470=program[_0xdd8317(0x1e9)](),_0x5b400c=await createTDXInstance(_0x3ca470),_0xd0d04f=await _0x46375e[_0xdd8317(0x1f1)]({'options':{..._0x3ca470,..._0x31b3ce},'args':[_0x542673],'tdx':_0x5b400c});process[_0xdd8317(0x339)](_0xd0d04f);}),agentCmd[a2_0xc1298(0x282)]('create\x20<name>')[a2_0xc1298(0x236)](a2_0xc1298(0x15d))['option'](a2_0xc1298(0x200),a2_0xc1298(0x337))[a2_0xc1298(0x19f)](a2_0xc1298(0x147),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0xc1298(0x275))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b9),a2_0xc1298(0x23b))[a2_0xc1298(0x19f)](a2_0xc1298(0x150),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')['option'](a2_0xc1298(0x1de),a2_0xc1298(0x1e1),a2_0xc1298(0x1f0))[a2_0xc1298(0x309)](async(_0x13ce8f,_0x17421a)=>{const _0x1ab9c2=a2_0xc1298,_0x7f250e=new LLMAgentCreateCommand(),_0x27b2fa=program[_0x1ab9c2(0x1e9)](),_0xcd05f6=await createTDXInstance(_0x27b2fa),_0x33618d=await _0x7f250e[_0x1ab9c2(0x1f1)]({'options':{..._0x27b2fa,..._0x17421a},'args':[_0x13ce8f],'tdx':_0xcd05f6});process[_0x1ab9c2(0x339)](_0x33618d);}),agentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1e7))[a2_0xc1298(0x236)](a2_0xc1298(0x2e0))[a2_0xc1298(0x19f)](a2_0xc1298(0x298),'Agent\x20name')['option'](a2_0xc1298(0x2d8),a2_0xc1298(0x148))[a2_0xc1298(0x19f)](a2_0xc1298(0x21c),a2_0xc1298(0x2fe))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b9),a2_0xc1298(0x23b))[a2_0xc1298(0x309)](async(_0x5a9ebb,_0x4ecc4f)=>{const _0x5764ae=a2_0xc1298,_0xd97a45=new LLMAgentUpdateCommand(),_0x183f6e=program['opts'](),_0x4edd3f=await createTDXInstance(_0x183f6e),_0x562b8d=await _0xd97a45[_0x5764ae(0x1f1)]({'options':{..._0x183f6e,..._0x4ecc4f},'args':[_0x5a9ebb],'tdx':_0x4edd3f});process[_0x5764ae(0x339)](_0x562b8d);}),agentCmd['command'](a2_0xc1298(0x1ff))['description'](a2_0xc1298(0x30a))['action'](async(_0x3b2767,_0x24511a)=>{const _0x2af6a8=a2_0xc1298,_0x1887cb=new LLMAgentDeleteCommand(),_0x31a2ab=program[_0x2af6a8(0x1e9)](),_0x230ad1=await createTDXInstance(_0x31a2ab),_0x44de54=await _0x1887cb[_0x2af6a8(0x1f1)]({'options':{..._0x31a2ab,..._0x24511a},'args':[_0x3b2767],'tdx':_0x230ad1});process[_0x2af6a8(0x339)](_0x44de54);}),llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x247))['description'](a2_0xc1298(0x304))[a2_0xc1298(0x19f)](a2_0xc1298(0x263),a2_0xc1298(0x240))[a2_0xc1298(0x309)](async(_0x145d13,_0x3d748e)=>{const _0x42e194=a2_0xc1298,_0x4be4d0=new LLMHistoryCommand(),_0xbad19f=program['opts'](),_0x2d997d=await createTDXInstance(_0xbad19f),_0x1290a8=await _0x4be4d0[_0x42e194(0x1f1)]({'options':{..._0xbad19f,..._0x3d748e},'args':_0x145d13?[_0x145d13]:[],'tdx':_0x2d997d});process[_0x42e194(0x339)](_0x1290a8);}),llmCmd[a2_0xc1298(0x282)]('proxy')['description'](a2_0xc1298(0x1b4))[a2_0xc1298(0x19f)](a2_0xc1298(0x1bb),a2_0xc1298(0x2d1),a2_0xc1298(0x33c))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ad),a2_0xc1298(0x172))['option'](a2_0xc1298(0x293),a2_0xc1298(0x20d))[a2_0xc1298(0x309)](async _0x1d3526=>{const _0x3b9109=a2_0xc1298,_0x5b0706=new LLMProxyCommand(),_0x365eaf=program[_0x3b9109(0x1e9)](),_0x10efe3=await createTDXInstance(_0x365eaf),_0x345fb2={..._0x1d3526,'port':_0x1d3526[_0x3b9109(0x2f7)]?parseInt(_0x1d3526['port'],0xa):undefined},_0x417f3e=await _0x5b0706[_0x3b9109(0x1f1)]({'options':{..._0x365eaf,..._0x345fb2},'args':[],'tdx':_0x10efe3});process[_0x3b9109(0x339)](_0x417f3e);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x163))['description'](a2_0xc1298(0x203))[a2_0xc1298(0x19f)]('--model\x20<name>',a2_0xc1298(0x280),a2_0xc1298(0x332))[a2_0xc1298(0x19f)]('--no-proxy',a2_0xc1298(0x2ea))[a2_0xc1298(0x244)]()[a2_0xc1298(0x335)](!![])[a2_0xc1298(0x330)]('after','\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')[a2_0xc1298(0x309)](async(_0x682a76,_0xe5ea81)=>{const _0x5af1d1=a2_0xc1298,_0x147152=program[_0x5af1d1(0x1e9)](),_0x361f95=Array['isArray'](_0x682a76)?_0x682a76:[];if(_0x361f95[0x0]===_0x5af1d1(0x170)){const _0x310b8c=new ClaudeStatuslineCommand(),_0x39248f=await _0x310b8c[_0x5af1d1(0x1f1)]({'options':{..._0x147152,..._0xe5ea81},'args':_0x361f95[_0x5af1d1(0x165)](0x1),'tdx':null});process['exit'](_0x39248f);}if(_0x361f95[0x0]===_0x5af1d1(0x1d6)){const _0x5331a8=new ClaudeUsageCommand(),_0x5e023e=await _0x5331a8[_0x5af1d1(0x1f1)]({'options':{..._0x147152,..._0xe5ea81},'args':_0x361f95[_0x5af1d1(0x165)](0x1),'tdx':null});process[_0x5af1d1(0x339)](_0x5e023e);}const _0x45c5e6=new ClaudeCommand(),_0xae522f=await createTDXInstance(_0x147152),_0x1b6282=await _0x45c5e6['run']({'options':{..._0x147152,..._0xe5ea81},'args':_0x361f95,'tdx':_0xae522f});process[_0x5af1d1(0x339)](_0x1b6282);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x16f))[a2_0xc1298(0x236)](a2_0xc1298(0x18e))[a2_0xc1298(0x19f)](a2_0xc1298(0x279),'Clear\x20session\x20context')[a2_0xc1298(0x309)](async _0x4d78a=>{const _0x2a0808=a2_0xc1298,_0x281043=new ContextCommand(),_0x2e2621=program['opts'](),_0x1f8f51=await _0x281043['run']({'options':{..._0x2e2621,..._0x4d78a},'args':[],'tdx':null});process[_0x2a0808(0x339)](_0x1f8f51);}),program[a2_0xc1298(0x282)]('use\x20[resource]\x20[value]')['description'](a2_0xc1298(0x221))[a2_0xc1298(0x19f)](a2_0xc1298(0x279),'Clear\x20session\x20context')['action'](async(_0x33c0a2,_0x39f0ea,_0x2de480)=>{const _0x244323=a2_0xc1298,_0x1bae16=new UseCommand(),_0x44986b=program[_0x244323(0x1e9)](),_0x310c35=[];if(_0x33c0a2)_0x310c35[_0x244323(0x271)](_0x33c0a2);if(_0x39f0ea)_0x310c35[_0x244323(0x271)](_0x39f0ea);const _0x52f201=await _0x1bae16['run']({'options':{..._0x44986b,..._0x2de480},'args':_0x310c35,'tdx':null});process['exit'](_0x52f201);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x141))[a2_0xc1298(0x236)](a2_0xc1298(0x2c1))[a2_0xc1298(0x19f)]('--last',a2_0xc1298(0x17a))[a2_0xc1298(0x309)](async _0x41d17d=>{const _0x255319=a2_0xc1298,_0x188aec=new ChatsCommand(),_0x21b762=program['opts'](),_0x412972=await createTDXInstance(_0x21b762),_0x2f6938=await _0x188aec['run']({'options':{..._0x21b762,..._0x41d17d},'args':[],'tdx':_0x412972});process[_0x255319(0x339)](_0x2f6938);});const authCmd=program['command'](a2_0xc1298(0x2c6))[a2_0xc1298(0x236)](a2_0xc1298(0x214));async function runAuthStatusCommand(_0x40dff2){const _0x29d4f3=a2_0xc1298,_0x31bf28=new AuthStatusCommand(),_0x1d7fb6=program['opts'](),_0x345033=await createTDXInstance(_0x1d7fb6),_0x552baa=await _0x31bf28[_0x29d4f3(0x1f1)]({'options':{..._0x1d7fb6,..._0x40dff2},'args':[],'tdx':_0x345033});process['exit'](_0x552baa);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2d3))[a2_0xc1298(0x236)](a2_0xc1298(0x27e))['action'](runAuthStatusCommand),authCmd[a2_0xc1298(0x282)]('setup')[a2_0xc1298(0x236)](a2_0xc1298(0x1ba))['addHelpText'](a2_0xc1298(0x26b),a2_0xc1298(0x261))['action'](async _0x39b20f=>{const _0x577d29=a2_0xc1298,_0x25e610=new AuthSetupCommand(),_0x8ab107=program[_0x577d29(0x1e9)](),_0x4fe90d=await createTDXInstance(_0x8ab107),_0xa3b6c=await _0x25e610[_0x577d29(0x1f1)]({'options':{..._0x8ab107,..._0x39b20f},'args':[],'tdx':_0x4fe90d});process[_0x577d29(0x339)](_0xa3b6c);}),authCmd['command'](a2_0xc1298(0x1ed))[a2_0xc1298(0x236)](a2_0xc1298(0x1a2))['addHelpText']('after','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0xc1298(0x309)](async _0x28382f=>{const _0x3be97b=a2_0xc1298,_0x2e9165=new AuthClearCommand(),_0x1d1408=program[_0x3be97b(0x1e9)](),_0x21a0c4=await _0x2e9165[_0x3be97b(0x1f1)]({'options':{..._0x1d1408,..._0x28382f},'args':[],'tdx':null});process['exit'](_0x21a0c4);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x26d))[a2_0xc1298(0x236)](a2_0xc1298(0x2ab))['action'](async _0x27e383=>{const _0x450243=a2_0xc1298,_0x5d0de8=new ProfilesCommand(),_0x4d8849=program[_0x450243(0x1e9)](),_0x5e5809=await _0x5d0de8[_0x450243(0x1f1)]({'options':{..._0x4d8849,..._0x27e383},'args':[],'tdx':null});process[_0x450243(0x339)](_0x5e5809);});const engageCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x1da))['description'](a2_0xc1298(0x149)),createEngageAction=_0x923355=>{return async(_0x1b6606,_0x1bccbc)=>{const _0x18c081=a2_0x13b8,_0x323ee7=new _0x923355(),_0x5acfe2=program[_0x18c081(0x1e9)](),_0x17a3b7=await createTDXInstance(_0x5acfe2),_0x5df078=await _0x323ee7[_0x18c081(0x1f1)]({'options':{..._0x5acfe2,..._0x1bccbc},'args':[_0x1b6606],'tdx':_0x17a3b7});process[_0x18c081(0x339)](_0x5df078);};},createEngageNoArgAction=_0x242538=>{return async _0x183324=>{const _0x3248da=a2_0x13b8,_0x2109d9=new _0x242538(),_0x290eba=program[_0x3248da(0x1e9)](),_0x3822d7=await createTDXInstance(_0x290eba),_0x438cca=await _0x2109d9['run']({'options':{..._0x290eba,..._0x183324},'args':[],'tdx':_0x3822d7});process['exit'](_0x438cca);};},campaignCmd=engageCmd[a2_0xc1298(0x282)]('campaign')[a2_0xc1298(0x236)](a2_0xc1298(0x182)),campaignListAction=async(_0x319cd9,_0x495cee)=>{const _0xa8496d=a2_0xc1298,_0x10dfe9=new EngageCampaignsCommand(),_0x21fb0e=program['opts'](),_0x46bc27=await createTDXInstance(_0x21fb0e),_0x2e55ec=await _0x10dfe9[_0xa8496d(0x1f1)]({'options':{..._0x21fb0e,..._0x495cee},'args':_0x319cd9?[_0x319cd9]:[],'tdx':_0x46bc27});process[_0xa8496d(0x339)](_0x2e55ec);};campaignCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x14f))['option'](a2_0xc1298(0x315),a2_0xc1298(0x308))[a2_0xc1298(0x19f)]('--status\x20<status>',a2_0xc1298(0x1cc))['option'](a2_0xc1298(0x2e3),a2_0xc1298(0x338))[a2_0xc1298(0x309)](campaignListAction),engageCmd['command'](a2_0xc1298(0x1dc))[a2_0xc1298(0x236)](a2_0xc1298(0x310))[a2_0xc1298(0x19f)](a2_0xc1298(0x315),a2_0xc1298(0x308))[a2_0xc1298(0x19f)](a2_0xc1298(0x311),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x338))[a2_0xc1298(0x309)](campaignListAction),campaignCmd[a2_0xc1298(0x282)]('show\x20<name-or-id>')['description']('Show\x20campaign\x20details')['option'](a2_0xc1298(0x2e3),'Workspace\x20name')[a2_0xc1298(0x19f)](a2_0xc1298(0x174),a2_0xc1298(0x1a1))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0xc1298(0x282)](a2_0xc1298(0x23f))[a2_0xc1298(0x236)](a2_0xc1298(0x183))[a2_0xc1298(0x186)](a2_0xc1298(0x2b2),'Campaign\x20name')[a2_0xc1298(0x186)](a2_0xc1298(0x315),a2_0xc1298(0x1e6))['option'](a2_0xc1298(0x2e3),a2_0xc1298(0x20c))[a2_0xc1298(0x19f)]('--description\x20<desc>',a2_0xc1298(0x1e4))[a2_0xc1298(0x19f)](a2_0xc1298(0x328),a2_0xc1298(0x2d4))[a2_0xc1298(0x19f)](a2_0xc1298(0x2ba),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0xc1298(0x19f)](a2_0xc1298(0x32b),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0xc1298(0x19f)](a2_0xc1298(0x1d7),a2_0xc1298(0x1eb))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ac),a2_0xc1298(0x16d))[a2_0xc1298(0x309)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0xc1298(0x282)](a2_0xc1298(0x243))[a2_0xc1298(0x236)](a2_0xc1298(0x303))['option'](a2_0xc1298(0x2e3),a2_0xc1298(0x338))['option'](a2_0xc1298(0x2b2),'New\x20campaign\x20name')[a2_0xc1298(0x19f)](a2_0xc1298(0x31a),a2_0xc1298(0x1e4))[a2_0xc1298(0x19f)](a2_0xc1298(0x328),a2_0xc1298(0x2d4))[a2_0xc1298(0x19f)]('--email-sender-id\x20<id>',a2_0xc1298(0x29f))[a2_0xc1298(0x19f)](a2_0xc1298(0x32b),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0xc1298(0x19f)]('--start-at\x20<datetime>',a2_0xc1298(0x1eb))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ac),a2_0xc1298(0x16d))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0xc1298(0x282)]('delete\x20<name-or-id>')['description'](a2_0xc1298(0x32a))[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x338))['option'](a2_0xc1298(0x2d2),a2_0xc1298(0x2e9))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0xc1298(0x248))[a2_0xc1298(0x236)](a2_0xc1298(0x274))[a2_0xc1298(0x19f)]('--workspace\x20<name>',a2_0xc1298(0x338))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0xc1298(0x1fb))[a2_0xc1298(0x236)]('Pause\x20a\x20campaign')[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),'Workspace\x20name')[a2_0xc1298(0x309)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0xc1298(0x282)](a2_0xc1298(0x29e))[a2_0xc1298(0x236)](a2_0xc1298(0x255))[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x338))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0xc1298(0x27c))[a2_0xc1298(0x236)](a2_0xc1298(0x23e))[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x338))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1cf))['description'](a2_0xc1298(0x2b0)),templateListAction=async(_0x129815,_0x2f221e)=>{const _0x1af050=a2_0xc1298,_0x271c96=new EngageTemplatesCommand(),_0x119661=program['opts'](),_0x5ba4bf=await createTDXInstance(_0x119661),_0x235d8f=await _0x271c96['run']({'options':{..._0x119661,..._0x2f221e},'args':_0x129815?[_0x129815]:[],'tdx':_0x5ba4bf});process[_0x1af050(0x339)](_0x235d8f);};templateCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x2be))[a2_0xc1298(0x19f)]('--workspace\x20<name>','Workspace\x20name')[a2_0xc1298(0x309)](templateListAction),engageCmd['command']('templates\x20[pattern]')[a2_0xc1298(0x236)](a2_0xc1298(0x227))['option']('--workspace\x20<name>','Workspace\x20name')['action'](templateListAction),templateCmd['command'](a2_0xc1298(0x166))['description']('Show\x20email\x20template\x20details')[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),'Workspace\x20name')[a2_0xc1298(0x19f)](a2_0xc1298(0x174),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0xc1298(0x282)](a2_0xc1298(0x23f))['description'](a2_0xc1298(0x179))[a2_0xc1298(0x186)](a2_0xc1298(0x2b2),a2_0xc1298(0x160))[a2_0xc1298(0x186)](a2_0xc1298(0x30f),a2_0xc1298(0x250))[a2_0xc1298(0x186)](a2_0xc1298(0x307),'HTML\x20template\x20content')[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x20c))[a2_0xc1298(0x19f)]('--plaintext\x20<text>','Plaintext\x20template\x20content')[a2_0xc1298(0x19f)](a2_0xc1298(0x191),a2_0xc1298(0x15b))[a2_0xc1298(0x309)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0xc1298(0x282)]('update\x20<name-or-id>')[a2_0xc1298(0x236)](a2_0xc1298(0x2b5))[a2_0xc1298(0x19f)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0xc1298(0x2b2),'New\x20template\x20name')['option']('--subject\x20<subject>',a2_0xc1298(0x250))[a2_0xc1298(0x19f)](a2_0xc1298(0x307),a2_0xc1298(0x28e))[a2_0xc1298(0x19f)](a2_0xc1298(0x262),a2_0xc1298(0x159))[a2_0xc1298(0x309)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0xc1298(0x171))[a2_0xc1298(0x236)](a2_0xc1298(0x27d))['option'](a2_0xc1298(0x2e3),'Workspace\x20name')[a2_0xc1298(0x19f)]('--yes',a2_0xc1298(0x2e9))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0xc1298(0x282)](a2_0xc1298(0x297))['description']('Workspace\x20management'),workspaceListAction=async(_0x31b7b8,_0x4bb8c5)=>{const _0x41a5b7=a2_0xc1298,_0x1bac79=new EngageWorkspacesCommand(),_0x2b68d0=program[_0x41a5b7(0x1e9)](),_0x19757c=await createTDXInstance(_0x2b68d0),_0x5544f5=await _0x1bac79[_0x41a5b7(0x1f1)]({'options':{..._0x2b68d0,..._0x4bb8c5},'args':_0x31b7b8?[_0x31b7b8]:[],'tdx':_0x19757c});process[_0x41a5b7(0x339)](_0x5544f5);};workspaceCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0xc1298(0x309)](workspaceListAction),engageCmd['command'](a2_0xc1298(0x22c))[a2_0xc1298(0x236)](a2_0xc1298(0x18f))[a2_0xc1298(0x309)](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0xc1298(0x236)](a2_0xc1298(0x28a))[a2_0xc1298(0x19f)](a2_0xc1298(0x174),a2_0xc1298(0x1a1))[a2_0xc1298(0x309)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0xc1298(0x282)](a2_0xc1298(0x23f))['description'](a2_0xc1298(0x1f4))['requiredOption'](a2_0xc1298(0x2b2),a2_0xc1298(0x338))[a2_0xc1298(0x19f)](a2_0xc1298(0x31a),a2_0xc1298(0x1cd))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0xc1298(0x282)]('update\x20<name-or-id>')[a2_0xc1298(0x236)]('Update\x20a\x20workspace')[a2_0xc1298(0x19f)](a2_0xc1298(0x2b2),'New\x20workspace\x20name')[a2_0xc1298(0x19f)]('--description\x20<desc>',a2_0xc1298(0x1cd))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0xc1298(0x282)](a2_0xc1298(0x171))[a2_0xc1298(0x236)](a2_0xc1298(0x2c7))[a2_0xc1298(0x19f)]('--yes','Skip\x20confirmation\x20prompt')[a2_0xc1298(0x309)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0xc1298(0x282)]('use\x20<name>')[a2_0xc1298(0x236)](a2_0xc1298(0x259))['action'](createEngageAction(EngageWorkspaceUseCommand));export{program};export function runCLI(){const _0x278d81=a2_0xc1298;program[_0x278d81(0x15f)](process[_0x278d81(0x1fc)]);!process[_0x278d81(0x1fc)]['slice'](0x2)[_0x278d81(0x25d)]&&program[_0x278d81(0x1db)]();const _0x4cca79=packageJson[_0x278d81(0x2d6)];process[_0x278d81(0x232)][_0x278d81(0x19d)]&&process[_0x278d81(0x1fc)][_0x278d81(0x25d)]>0x2&&!_0x4cca79[_0x278d81(0x2b9)](_0x278d81(0x25b))&&checkForUpdate(_0x4cca79)[_0x278d81(0x1c2)](_0x2980c5=>{_0x2980c5&&displayUpdateNotification(_0x2980c5);})[_0x278d81(0x143)](()=>{});}