@treasuredata/tdx 0.8.9 → 0.8.11

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 (134) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.d.ts +19 -1
  6. package/dist/client/cdp-api-client.d.ts.map +1 -1
  7. package/dist/client/cdp-api-client.js +1 -1
  8. package/dist/client/cdp-api-client.js.map +1 -1
  9. package/dist/client/engage-api-client.js +1 -1
  10. package/dist/client/http-client.js +1 -1
  11. package/dist/client/llm-api-client.js +1 -1
  12. package/dist/client/rate-limiter.js +1 -1
  13. package/dist/client/td-api-client.js +1 -1
  14. package/dist/client/trino-api-client.js +1 -1
  15. package/dist/client/workflow-client.js +1 -1
  16. package/dist/commands/activations.js +1 -1
  17. package/dist/commands/api-command.js +1 -1
  18. package/dist/commands/auth-command.js +1 -1
  19. package/dist/commands/chat-command.js +1 -1
  20. package/dist/commands/claude-command.js +1 -1
  21. package/dist/commands/claude-statusline-command.js +1 -1
  22. package/dist/commands/claude-usage-command.js +1 -1
  23. package/dist/commands/command.js +1 -1
  24. package/dist/commands/connection-command.js +1 -1
  25. package/dist/commands/context-command.js +1 -1
  26. package/dist/commands/databases.js +1 -1
  27. package/dist/commands/describe.js +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/job-command.js +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.js +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-pull-command.js +1 -1
  40. package/dist/commands/segment-push-command.d.ts.map +1 -1
  41. package/dist/commands/segment-push-command.js +1 -1
  42. package/dist/commands/segment-push-command.js.map +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segments.js +1 -1
  46. package/dist/commands/show.js +1 -1
  47. package/dist/commands/tables.js +1 -1
  48. package/dist/commands/use-command.js +1 -1
  49. package/dist/commands/user-command.js +1 -1
  50. package/dist/commands/workflow-command.js +1 -1
  51. package/dist/core/auth.js +1 -1
  52. package/dist/core/config.js +1 -1
  53. package/dist/core/connection-cache.js +1 -1
  54. package/dist/core/credential-cache.js +1 -1
  55. package/dist/core/global-context.js +1 -1
  56. package/dist/core/keychain.js +1 -1
  57. package/dist/core/profile.js +1 -1
  58. package/dist/core/project-config.js +1 -1
  59. package/dist/core/session.js +1 -1
  60. package/dist/core/user-cache.js +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/proxy/anthropic-adapter.js +1 -1
  63. package/dist/proxy/claude-usage-tracker.js +1 -1
  64. package/dist/proxy/context-signature.js +1 -1
  65. package/dist/proxy/conversation-utils.js +1 -1
  66. package/dist/proxy/server.js +1 -1
  67. package/dist/proxy/session-cache.js +1 -1
  68. package/dist/sdk/api.js +1 -1
  69. package/dist/sdk/connection.js +1 -1
  70. package/dist/sdk/engage.js +1 -1
  71. package/dist/sdk/errors.js +1 -1
  72. package/dist/sdk/index.js +1 -1
  73. package/dist/sdk/job.js +1 -1
  74. package/dist/sdk/journey.d.ts +15 -1
  75. package/dist/sdk/journey.d.ts.map +1 -1
  76. package/dist/sdk/journey.js +1 -1
  77. package/dist/sdk/journey.js.map +1 -1
  78. package/dist/sdk/llm.js +1 -1
  79. package/dist/sdk/query.js +1 -1
  80. package/dist/sdk/segment/child-segment-yaml.d.ts +4 -0
  81. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  82. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  83. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  84. package/dist/sdk/segment/journey-yaml.d.ts +11 -0
  85. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  86. package/dist/sdk/segment/journey-yaml.js +1 -1
  87. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  88. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  89. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  90. package/dist/sdk/segment.d.ts +15 -1
  91. package/dist/sdk/segment.d.ts.map +1 -1
  92. package/dist/sdk/segment.js +1 -1
  93. package/dist/sdk/segment.js.map +1 -1
  94. package/dist/sdk/user.js +1 -1
  95. package/dist/sdk/workflow.js +1 -1
  96. package/dist/types/cdp.d.ts +67 -0
  97. package/dist/types/cdp.d.ts.map +1 -1
  98. package/dist/types/endpoints.js +1 -1
  99. package/dist/types/index.d.ts +1 -1
  100. package/dist/types/index.d.ts.map +1 -1
  101. package/dist/types/index.js +1 -1
  102. package/dist/utils/agent-ref-parser.js +1 -1
  103. package/dist/utils/async.js +1 -1
  104. package/dist/utils/chat-cache.js +1 -1
  105. package/dist/utils/colors.js +1 -1
  106. package/dist/utils/command-output.js +1 -1
  107. package/dist/utils/constants.js +1 -1
  108. package/dist/utils/diff.js +1 -1
  109. package/dist/utils/fields-display.js +1 -1
  110. package/dist/utils/file-permissions.js +1 -1
  111. package/dist/utils/format-detector.js +1 -1
  112. package/dist/utils/formatters.js +1 -1
  113. package/dist/utils/journey-utils.js +1 -1
  114. package/dist/utils/json-loader.js +1 -1
  115. package/dist/utils/llm-backup-utils.js +1 -1
  116. package/dist/utils/model-aliases.js +1 -1
  117. package/dist/utils/model-factors.js +1 -1
  118. package/dist/utils/option-validation.js +1 -1
  119. package/dist/utils/port.js +1 -1
  120. package/dist/utils/process.js +1 -1
  121. package/dist/utils/prompt.js +1 -1
  122. package/dist/utils/segment-path-parser.js +1 -1
  123. package/dist/utils/segment-ref-parser.js +1 -1
  124. package/dist/utils/spinner.js +1 -1
  125. package/dist/utils/sql-parser.js +1 -1
  126. package/dist/utils/sse-parser.js +1 -1
  127. package/dist/utils/string-utils.js +1 -1
  128. package/dist/utils/table-ref-parser.js +1 -1
  129. package/dist/utils/tdx-config.js +1 -1
  130. package/dist/utils/tdx-logger.js +1 -1
  131. package/dist/utils/tree-formatter.js +1 -1
  132. package/dist/utils/version-check.js +1 -1
  133. package/dist/utils/workflow-utils.js +1 -1
  134. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x51b227,_0x22817a){var _0x3a5092=a0_0x4b95,_0xa722e3=_0x51b227();while(!![]){try{var _0x10dcff=parseInt(_0x3a5092(0xf4))/0x1*(parseInt(_0x3a5092(0xf7))/0x2)+parseInt(_0x3a5092(0xf5))/0x3+-parseInt(_0x3a5092(0xf2))/0x4+-parseInt(_0x3a5092(0xf1))/0x5+-parseInt(_0x3a5092(0xfa))/0x6*(parseInt(_0x3a5092(0xf9))/0x7)+-parseInt(_0x3a5092(0xf3))/0x8*(-parseInt(_0x3a5092(0xf8))/0x9)+-parseInt(_0x3a5092(0xf6))/0xa;if(_0x10dcff===_0x22817a)break;else _0xa722e3['push'](_0xa722e3['shift']());}catch(_0x38824d){_0xa722e3['push'](_0xa722e3['shift']());}}}(a0_0x1a24,0x97081));import{runCLI}from'./cli.js';function a0_0x1a24(){var _0x1c003a=['9744SbQDGH','84lmnNIP','3312900mqDWeN','189056uZTUSl','1599944NmcfJe','93563CvvpvT','1928295JLZDTH','12432700EWJmTo','16VWqIue','54krxXhn'];a0_0x1a24=function(){return _0x1c003a;};return a0_0x1a24();}function a0_0x4b95(_0x3ec9fe,_0x1594e4){_0x3ec9fe=_0x3ec9fe-0xf1;var _0x1a24df=a0_0x1a24();var _0x4b9580=_0x1a24df[_0x3ec9fe];return _0x4b9580;}runCLI();
2
+ function a0_0x407a(_0x46b686,_0x39f992){_0x46b686=_0x46b686-0x182;var _0x25a0c6=a0_0x25a0();var _0x407a94=_0x25a0c6[_0x46b686];return _0x407a94;}function a0_0x25a0(){var _0x44d9c1=['26MhYsXl','6WOZZHP','530152HMYRsa','8YZIxhs','40FcvJcc','1234437PUfCcW','6422383NJpCKX','2787120vErgEc','3684006WuSWQp','639385RgNBSb','58661pkBSnQ'];a0_0x25a0=function(){return _0x44d9c1;};return a0_0x25a0();}(function(_0x39e2e8,_0x355588){var _0x13de4a=a0_0x407a,_0x22757e=_0x39e2e8();while(!![]){try{var _0x52bc39=parseInt(_0x13de4a(0x18c))/0x1*(-parseInt(_0x13de4a(0x182))/0x2)+-parseInt(_0x13de4a(0x187))/0x3*(parseInt(_0x13de4a(0x185))/0x4)+-parseInt(_0x13de4a(0x18b))/0x5*(parseInt(_0x13de4a(0x183))/0x6)+-parseInt(_0x13de4a(0x189))/0x7+-parseInt(_0x13de4a(0x184))/0x8+parseInt(_0x13de4a(0x18a))/0x9+parseInt(_0x13de4a(0x186))/0xa*(parseInt(_0x13de4a(0x188))/0xb);if(_0x52bc39===_0x355588)break;else _0x22757e['push'](_0x22757e['shift']());}catch(_0x1c5c23){_0x22757e['push'](_0x22757e['shift']());}}}(a0_0x25a0,0x8a669));import{runCLI}from'./cli.js';runCLI();
@@ -1,4 +1,4 @@
1
1
  {
2
- "gitRevision": "9ac599e",
3
- "buildTime": "2025-12-17 05:44:27+0000"
2
+ "gitRevision": "f640d1d",
3
+ "buildTime": "2025-12-18 07:06:01+0000"
4
4
  }
@@ -1 +1 @@
1
- const a1_0x41e20f=a1_0x2c8a;function a1_0x47ef(){const _0x449ee8=['users','connection','1mdhmuG','show','Context','12TBxEYE','25280mgoOUf','8481207uPLVSi','llm','3708vuWINV','magenta','chats','profiles','544048iVHfOB','claude','auth','database','segment','CDP','1599560psMgcW','query','Utilities','parent-segment','7541652JHgVoF','yellow','use','chat','3279156SzltzZ','22601650LdnmqR','blue','workflow','table'];a1_0x47ef=function(){return _0x449ee8;};return a1_0x47ef();}(function(_0x1cc095,_0x426add){const _0x49b8eb=a1_0x2c8a,_0x16174b=_0x1cc095();while(!![]){try{const _0x67c637=parseInt(_0x49b8eb(0x112))/0x1*(-parseInt(_0x49b8eb(0x11d))/0x2)+parseInt(_0x49b8eb(0x10b))/0x3+-parseInt(_0x49b8eb(0x115))/0x4*(parseInt(_0x49b8eb(0x103))/0x5)+parseInt(_0x49b8eb(0x107))/0x6+-parseInt(_0x49b8eb(0x117))/0x7+parseInt(_0x49b8eb(0x116))/0x8*(-parseInt(_0x49b8eb(0x119))/0x9)+parseInt(_0x49b8eb(0x10c))/0xa;if(_0x67c637===_0x426add)break;else _0x16174b['push'](_0x16174b['shift']());}catch(_0xa67a70){_0x16174b['push'](_0x16174b['shift']());}}}(a1_0x47ef,0xd326e));function a1_0x2c8a(_0x5e7fe7,_0x1ee04e){_0x5e7fe7=_0x5e7fe7-0xff;const _0x47ef89=a1_0x47ef();let _0x2c8a4f=_0x47ef89[_0x5e7fe7];return _0x2c8a4f;}import a1_0xea0a12 from'chalk';export const COMMAND_CATEGORIES=[{'name':'Data','colorFn':a1_0xea0a12[a1_0x41e20f(0x10d)],'commands':[a1_0x41e20f(0x100),a1_0x41e20f(0x10f),a1_0x41e20f(0x113),'describe',a1_0x41e20f(0x104),'job',a1_0x41e20f(0x10e)]},{'name':a1_0x41e20f(0x102),'colorFn':a1_0xea0a12[a1_0x41e20f(0x11a)],'commands':[a1_0x41e20f(0x101),a1_0x41e20f(0x106),'journey','activations','engage',a1_0x41e20f(0x111)]},{'name':'AI','colorFn':a1_0xea0a12['cyan'],'commands':[a1_0x41e20f(0x10a),a1_0x41e20f(0x11b),a1_0x41e20f(0x118),a1_0x41e20f(0x11e)]},{'name':a1_0x41e20f(0x114),'colorFn':a1_0xea0a12[a1_0x41e20f(0x108)],'commands':['context',a1_0x41e20f(0x109),a1_0x41e20f(0x11c),a1_0x41e20f(0xff),'user',a1_0x41e20f(0x110)]},{'name':a1_0x41e20f(0x105),'colorFn':a1_0xea0a12['green'],'commands':['api']}];
1
+ function a1_0x68f5(_0x551968,_0x264cc4){_0x551968=_0x551968-0x8f;const _0x305368=a1_0x3053();let _0x68f5d9=_0x305368[_0x551968];return _0x68f5d9;}function a1_0x3053(){const _0x5d9623=['11BeoeHf','4234350ukdqxq','table','chats','user','blue','cyan','job','users','2359545nHxWra','profiles','green','Context','373257qpOLxZ','1332rafYGf','5ptNgtC','connection','1011928Reqwyk','describe','Utilities','database','40TRWLhT','parent-segment','566LxTeOc','segment','auth','journey','204HicRGn','engage','188594wgIxRZ','llm','chat','query','41876652MjLbAZ','api'];a1_0x3053=function(){return _0x5d9623;};return a1_0x3053();}const a1_0x1ae57f=a1_0x68f5;(function(_0x2ad468,_0x18e226){const _0x25c4d9=a1_0x68f5,_0x4c3016=_0x2ad468();while(!![]){try{const _0x5870fd=-parseInt(_0x25c4d9(0xa4))/0x1*(parseInt(_0x25c4d9(0xad))/0x2)+-parseInt(_0x25c4d9(0x9f))/0x3+parseInt(_0x25c4d9(0xa7))/0x4*(-parseInt(_0x25c4d9(0xa5))/0x5)+parseInt(_0x25c4d9(0xb1))/0x6*(-parseInt(_0x25c4d9(0x90))/0x7)+parseInt(_0x25c4d9(0xab))/0x8*(-parseInt(_0x25c4d9(0xa3))/0x9)+-parseInt(_0x25c4d9(0x97))/0xa+parseInt(_0x25c4d9(0x96))/0xb*(parseInt(_0x25c4d9(0x94))/0xc);if(_0x5870fd===_0x18e226)break;else _0x4c3016['push'](_0x4c3016['shift']());}catch(_0x1be0f2){_0x4c3016['push'](_0x4c3016['shift']());}}}(a1_0x3053,0x80868));import a1_0x534ae8 from'chalk';export const COMMAND_CATEGORIES=[{'name':'Data','colorFn':a1_0x534ae8[a1_0x1ae57f(0x9b)],'commands':[a1_0x1ae57f(0xaa),a1_0x1ae57f(0x98),'show',a1_0x1ae57f(0xa8),a1_0x1ae57f(0x93),a1_0x1ae57f(0x9d),'workflow']},{'name':'CDP','colorFn':a1_0x534ae8['magenta'],'commands':[a1_0x1ae57f(0xae),a1_0x1ae57f(0xac),a1_0x1ae57f(0xb0),'activations',a1_0x1ae57f(0x8f),a1_0x1ae57f(0xa6)]},{'name':'AI','colorFn':a1_0x534ae8[a1_0x1ae57f(0x9c)],'commands':[a1_0x1ae57f(0x92),a1_0x1ae57f(0x99),a1_0x1ae57f(0x91),'claude']},{'name':a1_0x1ae57f(0xa2),'colorFn':a1_0x534ae8['yellow'],'commands':['context','use',a1_0x1ae57f(0xa0),a1_0x1ae57f(0xaf),a1_0x1ae57f(0x9a),a1_0x1ae57f(0x9e)]},{'name':a1_0x1ae57f(0xa9),'colorFn':a1_0x534ae8[a1_0x1ae57f(0xa1)],'commands':[a1_0x1ae57f(0x95)]}];
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x3e7974=a2_0x5e2e;(function(_0xad1639,_0x374099){const _0x3dfae3=a2_0x5e2e,_0x3b6bb4=_0xad1639();while(!![]){try{const _0x183dc3=-parseInt(_0x3dfae3(0x113))/0x1*(-parseInt(_0x3dfae3(0x197))/0x2)+-parseInt(_0x3dfae3(0x1c3))/0x3*(-parseInt(_0x3dfae3(0x1d8))/0x4)+-parseInt(_0x3dfae3(0x148))/0x5*(parseInt(_0x3dfae3(0x24a))/0x6)+-parseInt(_0x3dfae3(0x1c6))/0x7+parseInt(_0x3dfae3(0x17f))/0x8+parseInt(_0x3dfae3(0xef))/0x9*(-parseInt(_0x3dfae3(0x1f6))/0xa)+-parseInt(_0x3dfae3(0x1ab))/0xb*(-parseInt(_0x3dfae3(0x12b))/0xc);if(_0x183dc3===_0x374099)break;else _0x3b6bb4['push'](_0x3b6bb4['shift']());}catch(_0x56f3d7){_0x3b6bb4['push'](_0x3b6bb4['shift']());}}}(a2_0x2962,0x223c0));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';function a2_0x2962(){const _0x2aa03b=['Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Commands:','--add-behaviors\x20<json>','projects\x20[pattern]','Workflow\x20(Digdag)\x20management\x20commands','optionDescription','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','user','Show\x20journey\x20details','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Update\x20a\x20campaign','[task-name]','96GkfkKe','Authentication\x20management','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--resume-from\x20<task>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--add-attributes-file\x20<file>','Kill\x20a\x20job','Setup\x20API\x20key\x20authentication\x20interactively','--yes','tsv','--subject\x20<subject>','apiKey','--params\x20<json>','Export\x20journey(s)\x20as\x20YAML\x20files','[options]\x20--\x20[claude-code-args...]','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','--json','preview\x20[name]','INFO','Submit\x20a\x20job','run\x20<workflow>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','repeat','--format\x20<format>','Read\x20SQL\x20query\x20from\x20file','Launch\x20a\x20campaign','attempts\x20[project]','455iWyUTz','list\x20[project]','--schedule-option\x20<value>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','filter','name','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','create','Campaign\x20name','Start\x20a\x20new\x20chat\x20session','sonnet','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','--schedule-type\x20<type>','--skip-validation','Make\x20segment\x20invisible\x20(default:\x20visible)','--kind\x20<type>','-y,\x20--yes','logs','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--reason\x20<text>','then','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--debug','--no-proxy','--starter-message\x20<text>','-H,\x20--header\x20<header>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','gitRevision','-o,\x20--output\x20<file>','desc','--temperature\x20<n>','join','Update\x20an\x20email\x20template','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','create\x20<parent_name>\x20<folder_name>','stdout','view\x20[segment_name]','stats\x20<name-or-path>','Email\x20subject\x20template','Enable\x20verbose\x20logging','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','--master','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Remove\x20API\x20key\x20from\x20system\x20keychain','Create\x20segment\x20folder','-1d','flatMap','393920ZtoIRD','Arguments:','database','Resume\x20a\x20paused\x20journey','\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','desc\x20[segment_name]','--param\x20<key=value>','summary','option','set','attempt','JSON\x20columns\x20for\x20connector\x20(comma-separated)','update\x20<name-or-id>','format','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','submit\x20[query]','--include-subtasks','show\x20<name-or-id>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Table\x20management\x20commands','Updated\x20description','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','create\x20<segment_name>','2xtlWFu','opts','Workspace\x20name','describe','Alias\x20for\x20--database\x20(natural\x20language\x20style)','templates\x20[pattern]','show\x20<agent-name>','--behavior\x20[name]','--site\x20<site>','Customer\x20group\x20from\x20JSON\x20file','Include\x20retried\x20attempts','Parent\x20folder\x20name\x20for\x20nested\x20folders','Create\x20a\x20new\x20LLM\x20project','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--json-columns\x20<cols>','--name\x20<name>','delete\x20<agent-name>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','createAsync','auth','216095kfzbsL',',\x20version\x20','activations\x20<segment_name>','--new','subcommandDescription','\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','use\x20<project-name>','--include-retried','Resume\x20a\x20conversation\x20(shows\x20selector)','required','Reason\x20for\x20killing\x20the\x20attempt','preview\x20[file]','_hidden','addHelpText','use\x20<path>','--type\x20<api_type>','tables\x20[pattern]','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Interactive\x20chat\x20selector','Request\x20body\x20as\x20JSON\x20string','--editor-type\x20<type>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--data\x20<data>','537oGtaLL','Run\x20Trino\x20query\x20with\x20streaming\x20results','allowUnknownOption','468174IuEKKE','--limit\x20<rows>','catch','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','--description\x20<desc>','-w,\x20--web','Project\x20description','json','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','-d,\x20--database\x20<name>','delete\x20<name-or-id>','--agent\x20<ref>','map','Trino\x20catalog\x20(default:\x20td)','Preview\x20operation\x20without\x20executing','update\x20<name>','2336oCOyLV','Set\x20or\x20show\x20parent\x20segment\x20context','retry\x20<session-id>','0.7','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','claude-4.5-sonnet','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','length','update\x20<segment_name>','tdx','Skip\x20population\x20counting','Attributes\x20as\x20JSON\x20string','--clear','Skip\x20confirmation\x20prompts','Workflow\x20session\x20management','commandUsage','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','duplicate\x20<name-or-id>','status','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Set\x20operation\x20timeout\x20in\x20seconds','--revision\x20<revision>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','history\x20[chat-id]','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','show\x20[segment_name]','--name\x20<new-name>','10vcRyQA','[action]','Include\x20subtasks\x20in\x20tasks\x20output','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','engage','list\x20[path]','argumentTerm','--project\x20<name>','Master\x20database\x20name','show\x20<folder_ref>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','help','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','List\x20jobs','Updated\x20timezone','TRACE','statusline','claude\x20[args...]','api\x20[endpoint]','pause\x20<name-or-id>','create\x20<name>','logLevel','kill\x20<job-id>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','push\x20[file]','action','Behaviors\x20from\x20JSON\x20file','resume\x20<name-or-path>','-v,\x20--verbose','-r,\x20--recursive','Data\x20connection\x20management\x20(for\x20activations/exports)','Pause\x20a\x20running\x20journey','--no-count-population','job','--from\x20<timestamp>','describe\x20[table]','jobs','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','chat\x20[message...]','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','\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','Open\x20segment\x20in\x20web\x20browser','New\x20segment\x20name','port','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Add\x20attributes\x20from\x20JSON\x20file','backup\x20<name>','Output\x20folder\x20(default:\x20{project_name}.llm)','get','desc\x20[name]','List\x20all\x20users\x20in\x20the\x20account','Filtering\x20rule\x20as\x20JSON\x20string','Email\x20sender\x20ID\x20for\x20delivery','hidden','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','description','replace','sql\x20[segment_name]','retry','slice','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Agent\x20reference\x20(project-name/agent-name)','requiredOption','llm','optionTerm','isTTY','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--invisible','--status\x20<status>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','registeredArguments','Pause\x20a\x20campaign','show\x20<job-id>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','version','Master\x20table\x20name','parse','Resume\x20a\x20paused\x20campaign','Output\x20file\x20path\x20(default:\x20<name>.yml)','Show\x20only\x20master\x20table\x20validation','kill','Clear\x20session\x20context','4242sIenMS','--plaintext\x20<text>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','parent','--timezone\x20<tz>','commands','--parent-segment\x20<name>','Segment\x20description','resume\x20<name-or-id>','proxy','padEnd','4000','Options:','-c,\x20--continue','run','--customer-group-file\x20<file>','fields\x20[name]','argv','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--type\x20<type>','Move\x20to\x20folder','--attribute\x20[name]','argumentDescription','usage','Delete\x20a\x20campaign','Include\x20execution\x20statistics','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Unknown\x20action:\x20','Workflow\x20project\x20management','profiles','--jsonl','Job\x20management\x20commands','Task\x20name\x20for\x20logs\x20action','-X,\x20--method\x20<method>','pull\x20[parent_or_file]','aliases','--description\x20<text>','commandDescription','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','alias','Continue\x20most\x20recent\x20conversation','project','Show\x20segment\x20schema\x20(column\x20types)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Create\x20an\x20email\x20template','Add\x20attributes\x20as\x20JSON\x20string','information_schema','us01','list\x20[pattern]','--email-sender-id\x20<id>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Revision\x20name\x20(default:\x20timestamp)','-r,\x20--resume','--in\x20<database>','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Show\x20master\x20table\x20sample\x20data','Show\x20campaign\x20details','--segment\x20<path>','use\x20[name]','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Show\x20stats\x20for\x20specific\x20stage','LLM\x20project\x20management','--job-type\x20<type>','Show\x20agent\x20details','Campaign\x20description','models','preAction','-o,\x20--output\x20<folder>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--parent-folder\x20<name>','profile','--model\x20<name>','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','sessions\x20[project]','--force','New\x20workspace\x20name','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Maximum\x20recursion\x20depth\x20(default:\x2010)','User\x20management\x20commands','Database\x20to\x20use\x20(overrides\x20context)','debug','list','workflow','New\x20template\x20name','HTML\x20template\x20content','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Agent\x20prompt/instructions','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Delete\x20an\x20agent','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','AI-native\x20CLI\x20for\x20Treasure\x20Data','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--catalog\x20<catalog>','Describe\x20table\x20schema','Workspace\x20management','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--delete','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20web\x20console\x20URLs\x20for\x20segments','Show\x20segment\x20details\x20(alias\x20for\x20view)','Model\x20name\x20(default:\x20claude-4.5-sonnet)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','subcommandTerm','--full','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','view\x20<name-or-path>','Database\x20name\x20(default:\x20information_schema)','--attributes-file\x20<file>','Output\x20file\x20path','validate\x20[name]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','includes','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','hook','--in\x20<name>','Show\x20job\x20details','error','--attributes\x20<json>','parents\x20[pattern]','Skip\x20confirmation\x20prompt','--port\x20<number>','site','fields\x20[parent_name]','use\x20<name>','--to\x20<timestamp>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Customer\x20group\x20as\x20JSON\x20string','--name\x20<new_name>','buildTime','--dry-run','segments\x20[path]','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Create\x20a\x20new\x20agent\x20in\x20current\x20project','-d,\x20--database\x20<database>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','DEBUG','--add-behaviors-file\x20<file>','pull\x20[name]','download\x20<project-name>\x20[output-dir]','System\x20prompt/instructions\x20(default:\x20empty)','stderr','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Attempt\x20ID','Starter\x20message','result\x20<job-id>','workspaces\x20[pattern]','exit','Parent\x20segment\x20management','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--output\x20<file>','Folder\x20name\x20for\x20organization','--database\x20<name>','connection','argument','journey','trino','options','Limit\x20number\x20of\x20rows','Usage:\x20','segment','Filtering\x20rule\x20from\x20JSON\x20file','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Duplicate\x20a\x20campaign','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','push\x20[parent_or_file]','Plaintext\x20template\x20content','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','parent_segment','Override\x20project\x20name','Show\x20connection\x20details\x20by\x20name','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Resume\x20from\x20specific\x20task','outputHelp','restore\x20<folder>','--rule-file\x20<file>','LLM\x20agent\x20management','-u,\x20--use','Timezone\x20(e.g.,\x20America/Los_Angeles)','--limit\x20<n>','End\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--workspace\x20<name>','Save\x20output\x20to\x20file','--interval\x20<range>','--max-depth\x20<depth>','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--from-task\x20<task>','Workspace\x20name\x20(required)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','New\x20campaign\x20name','Output\x20as\x20JSON','delete\x20<project-name-or-id>','run\x20[name]','noColor','Update\x20a\x20workspace','694098tAifaK','after','Output\x20as\x20JSON\x20Lines','command','parent-segment','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--color','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','table','query\x20[sql]','Workspace\x20description','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','colorFn','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Workflow\x20parameter\x20(repeatable)','--session\x20<id>','Force\x20retry\x20even\x20if\x20not\x20failed','injectIntoOptions','GET','--enriched','-f,\x20--file\x20<path>','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','push','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','[DEPRECATED]\x20Segment\x20folder\x20management','--database\x20<db>','tasks','--stage\x20<name>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','use\x20[resource]\x20[value]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Agent\x20description','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','pause\x20<name-or-path>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--folder\x20<name>','37629VMTSpH','[attempt-id]','Delete\x20a\x20workspace','Include\x20retried\x20attempts\x20(for\x20list)','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','--rule\x20<json>','Skip\x20validation\x20of\x20.dig\x20files','campaigns\x20[pattern]','isArray','Updated\x20schedule\x20option','--html\x20<html>','Editor\x20type'];a2_0x2962=function(){return _0x2aa03b;};return a2_0x2962();}import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x3e7974(0x244)](readFileSync(join(__dirname,'../package.json'),'utf-8'));let buildInfo={};try{buildInfo=JSON['parse'](readFileSync(join(__dirname,'build-info.json'),'utf-8'));}catch{}if(process['argv'][a2_0x3e7974(0x2bd)]('--version')){let versionOutput='tdx\x20'+packageJson['version'];buildInfo[a2_0x3e7974(0x16a)]&&(versionOutput+='\x20('+buildInfo[a2_0x3e7974(0x16a)]+')'),buildInfo[a2_0x3e7974(0x2cf)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo['buildTime']),console['log'](versionOutput),process[a2_0x3e7974(0x2e1)](0x0);}const program=new Command();let description=a2_0x3e7974(0x2a7);buildInfo['gitRevision']?description+=a2_0x3e7974(0x1ac)+packageJson[a2_0x3e7974(0x242)]+'\x20('+buildInfo[a2_0x3e7974(0x16a)]+')':description+=a2_0x3e7974(0x1ac)+packageJson['version'];program[a2_0x3e7974(0x14d)]('tdx')['description'](description),program[a2_0x3e7974(0x187)]('-p,\x20--profile\x20<name>',a2_0x3e7974(0x234))[a2_0x3e7974(0x187)](a2_0x3e7974(0x19f),a2_0x3e7974(0x10b),a2_0x3e7974(0x27a))[a2_0x3e7974(0x187)](a2_0x3e7974(0x144),a2_0x3e7974(0x200))['option']('--table',a2_0x3e7974(0x202))['option'](a2_0x3e7974(0x13d),a2_0x3e7974(0x2b3))[a2_0x3e7974(0x187)](a2_0x3e7974(0x269),a2_0x3e7974(0x1f9))['option']('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x2e4),a2_0x3e7974(0xe2))[a2_0x3e7974(0x187)]('--limit\x20<number>',a2_0x3e7974(0x2d5))['option'](a2_0x3e7974(0xf5),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x3e7974(0x187)]('--no-color',a2_0x3e7974(0x2f2),![])[a2_0x3e7974(0x187)](a2_0x3e7974(0x212),a2_0x3e7974(0x176),![])['option'](a2_0x3e7974(0x165),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x3e7974(0x187)]('--trace',a2_0x3e7974(0x164))[a2_0x3e7974(0x187)]('--timeout\x20<seconds>',a2_0x3e7974(0x1ee),'30')[a2_0x3e7974(0x187)](a2_0x3e7974(0x2d0),a2_0x3e7974(0x1d6),![])['option'](a2_0x3e7974(0x15c),a2_0x3e7974(0x1e7),![])['option'](a2_0x3e7974(0xfe),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')['option'](a2_0x3e7974(0x1d1),a2_0x3e7974(0x29b))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2c0),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x251),a2_0x3e7974(0x2f0))[a2_0x3e7974(0x187)]('--llm-project\x20<name>',a2_0x3e7974(0x23d)),program['configureHelp']({'formatHelp':(_0x4d4ef1,_0x114f29)=>{const _0x2c5d22=a2_0x3e7974,_0xf46119=_0x114f29['padWidth'](_0x4d4ef1,_0x114f29),_0x1daa5d=0x2,_0xbccf97=0x2;function _0x4cb804(_0x37839b){const _0x1a0d07=a2_0x5e2e,_0x1a7f38=_0x37839b;return!!(_0x1a7f38[_0x1a0d07(0x1b7)]||_0x1a7f38[_0x1a0d07(0x22b)]);}function _0x4c8327(_0x1b2e1a,_0x597735){const _0x1860ed=a2_0x5e2e;if(_0x597735){const _0x457cc5=''+_0x1b2e1a[_0x1860ed(0x255)](_0xf46119+_0xbccf97)+_0x597735;return _0x457cc5;}return _0x1b2e1a;}function _0x5baad6(_0xffa1b0){const _0x5a1ffd=a2_0x5e2e;return _0xffa1b0[_0x5a1ffd(0x16e)]('\x0a')[_0x5a1ffd(0x22f)](/^/gm,'\x20'[_0x5a1ffd(0x143)](_0x1daa5d));}const _0x398a32=[];_0x398a32[_0x2c5d22(0x105)](_0x2c5d22(0x2ed)+_0x114f29[_0x2c5d22(0x1e9)](_0x4d4ef1));const _0x2ab9c3=_0x114f29[_0x2c5d22(0x270)](_0x4d4ef1);_0x2ab9c3&&(_0x398a32[_0x2c5d22(0x105)](''),_0x398a32[_0x2c5d22(0x105)](_0x2ab9c3));const _0x1c9200=_0x4d4ef1[_0x2c5d22(0x250)][_0x2c5d22(0x14c)](_0x2f6b64=>!_0x4cb804(_0x2f6b64));if(_0x1c9200[_0x2c5d22(0x1e1)]>0x0){if(_0x4d4ef1[_0x2c5d22(0x14d)]()===_0x2c5d22(0x1e3)){const _0x2964aa=_0x4d4ef1[_0x2c5d22(0x198)](),_0xfa8d5b=!_0x2964aa[_0x2c5d22(0xed)]&&process[_0x2c5d22(0x172)]['isTTY'],_0x199f9e=COMMAND_CATEGORIES,_0x5fa8bb=(_0xc3dbed,_0x4118b1)=>_0xfa8d5b?_0x4118b1(_0xc3dbed):_0xc3dbed,_0x2a006e=new Map();_0x1c9200['forEach'](_0x79fbdf=>{const _0x1cd5f4=_0x2c5d22;_0x2a006e[_0x1cd5f4(0x188)](_0x79fbdf[_0x1cd5f4(0x14d)](),_0x79fbdf);}),_0x199f9e['forEach'](_0x1b8257=>{const _0x1c9b58=_0x2c5d22,_0xd33492=_0x1b8257[_0x1c9b58(0x250)][_0x1c9b58(0x17e)](_0x2593a7=>_0x2a006e[_0x1c9b58(0x226)](_0x2593a7)??[]);if(_0xd33492[_0x1c9b58(0x1e1)]>0x0){_0x398a32[_0x1c9b58(0x105)](''),_0x398a32[_0x1c9b58(0x105)](_0x5fa8bb(_0x1b8257['name']+':',_0x1b8257[_0x1c9b58(0xfb)]));const _0x4a1678=_0xd33492['map'](_0x2db835=>{const _0x5f5620=_0x1c9b58,_0x513fb7=_0x114f29[_0x5f5620(0x2b4)](_0x2db835),_0x230d1f=_0x114f29[_0x5f5620(0x1af)](_0x2db835);return _0x4c8327(_0x513fb7,_0x230d1f);});_0x398a32[_0x1c9b58(0x105)](_0x5baad6(_0x4a1678));}}),_0x398a32['push'](''),_0x398a32[_0x2c5d22(0x105)](_0x2c5d22(0x156));}else{const _0x509d44=_0x1c9200[_0x2c5d22(0x1d4)](_0x4c1ec3=>{const _0x418e74=_0x2c5d22,_0x3927b7=_0x114f29[_0x418e74(0x2b4)](_0x4c1ec3),_0x4ba565=_0x114f29[_0x418e74(0x1af)](_0x4c1ec3);return _0x4c8327(_0x3927b7,_0x4ba565);});_0x398a32['push'](''),_0x398a32[_0x2c5d22(0x105)](_0x2c5d22(0x120)),_0x398a32[_0x2c5d22(0x105)](_0x5baad6(_0x509d44));}}const _0x524f51=_0x4d4ef1[_0x2c5d22(0x2eb)][_0x2c5d22(0x14c)](_0x4b7562=>!_0x4cb804(_0x4b7562));if(_0x524f51[_0x2c5d22(0x1e1)]>0x0){const _0x5b4b7b=_0x524f51[_0x2c5d22(0x1d4)](_0x12be01=>{const _0x247ba5=_0x2c5d22,_0x2ab6e2=_0x114f29[_0x247ba5(0x238)](_0x12be01),_0x385d24=_0x114f29[_0x247ba5(0x124)](_0x12be01);return _0x4c8327(_0x2ab6e2,_0x385d24);});_0x398a32[_0x2c5d22(0x105)](''),_0x398a32['push'](_0x2c5d22(0x257)),_0x398a32[_0x2c5d22(0x105)](_0x5baad6(_0x5b4b7b));}const _0x48a053=(_0x4d4ef1[_0x2c5d22(0x23e)]||[])[_0x2c5d22(0x14c)](_0xee93b=>!_0x4cb804(_0xee93b));if(_0x48a053[_0x2c5d22(0x1e1)]>0x0){const _0x3d5a86=_0x48a053['map'](_0x2ca453=>{const _0x5396e5=_0x2c5d22,_0x397f58=_0x114f29[_0x5396e5(0x1fc)](_0x2ca453),_0x4d2b9c=_0x114f29[_0x5396e5(0x261)](_0x2ca453);return _0x4c8327(_0x397f58,_0x4d2b9c);});_0x398a32[_0x2c5d22(0x105)](''),_0x398a32[_0x2c5d22(0x105)](_0x2c5d22(0x180)),_0x398a32['push'](_0x5baad6(_0x3d5a86));}return _0x398a32['join']('\x0a');},'subcommandTerm':_0x5d6101=>{const _0x507311=a2_0x3e7974,_0x1c99f1=(_0x5d6101[_0x507311(0x23e)]||[])['map'](_0x1beac8=>_0x1beac8[_0x507311(0x1b4)]?'<'+_0x1beac8[_0x507311(0x14d)]()+'>':'['+_0x1beac8['name']()+']')[_0x507311(0x16e)]('\x20'),_0x45151a=_0x5d6101[_0x507311(0x26e)](),_0x26317d=_0x45151a[_0x507311(0x1e1)]>0x0?_0x5d6101['name']()+',\x20'+_0x45151a['join'](',\x20'):_0x5d6101[_0x507311(0x14d)]();return _0x1c99f1?_0x26317d+'\x20'+_0x1c99f1:_0x26317d;}}),program[a2_0x3e7974(0x2bf)](a2_0x3e7974(0x28d),_0x95bb4f=>{const _0x4615aa=a2_0x3e7974,_0x1b2ca2=_0x95bb4f[_0x4615aa(0x198)]();if(!_0x1b2ca2['format']){if(_0x1b2ca2[_0x4615aa(0xf7)])_0x1b2ca2[_0x4615aa(0x18c)]=_0x4615aa(0xf7);else{if(_0x1b2ca2[_0x4615aa(0x1ce)])_0x1b2ca2[_0x4615aa(0x18c)]=_0x4615aa(0x1ce);else{if(_0x1b2ca2['jsonl'])_0x1b2ca2['format']='jsonl';else _0x1b2ca2['tsv']&&(_0x1b2ca2[_0x4615aa(0x18c)]=_0x4615aa(0x134));}}}_0x1b2ca2['in']&&!_0x1b2ca2[_0x4615aa(0x181)]&&(_0x1b2ca2[_0x4615aa(0x181)]=_0x1b2ca2['in']);if(_0x1b2ca2['trace'])_0x1b2ca2[_0x4615aa(0x20b)]=LogLevel[_0x4615aa(0x205)];else{if(_0x1b2ca2[_0x4615aa(0x29c)])_0x1b2ca2[_0x4615aa(0x20b)]=LogLevel[_0x4615aa(0x2d6)];else _0x1b2ca2[_0x4615aa(0x20b)]===undefined&&(_0x1b2ca2[_0x4615aa(0x20b)]=LogLevel[_0x4615aa(0x13f)]);}});async function createTDXInstance(_0x50ff7d){const _0x532f95=a2_0x3e7974,_0x5ca2e1=await GlobalContext[_0x532f95(0x1a9)](_0x50ff7d);return _0x5ca2e1[_0x532f95(0x100)](_0x50ff7d),TDX[_0x532f95(0x151)]({'site':_0x5ca2e1[_0x532f95(0x2c7)],'apiKey':_0x5ca2e1[_0x532f95(0x136)],'logLevel':_0x5ca2e1[_0x532f95(0x20b)],'profile':_0x5ca2e1[_0x532f95(0x291)]});}const databaseCmd=program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x181))['alias']('db')[a2_0x3e7974(0x22e)]('Database\x20management\x20commands'),databaseListAction=async(_0x167275,_0x36f40e)=>{const _0x1ef9f5=a2_0x3e7974,_0x2293ca=new DatabasesCommand(),_0x330389=program['opts'](),_0x56db4d=await createTDXInstance(_0x330389),_0x5d9418=await _0x2293ca[_0x1ef9f5(0x259)]({'options':{..._0x330389,..._0x36f40e},'args':_0x167275?[_0x167275]:[],'tdx':_0x56db4d});process['exit'](_0x5d9418);};databaseCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x27b))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1ed))[a2_0x3e7974(0x20f)](databaseListAction),program['command']('databases\x20[pattern]',{'hidden':!![]})[a2_0x3e7974(0x22e)](a2_0x3e7974(0x163))['action'](databaseListAction),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x21c))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2cb))['option'](a2_0x3e7974(0x1d3),a2_0x3e7974(0x235))[a2_0x3e7974(0x187)]('--model\x20<name>',a2_0x3e7974(0x2b2))[a2_0x3e7974(0x187)]('--temperature\x20<n>',a2_0x3e7974(0xf4))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1ae),a2_0x3e7974(0x153))['action'](async(_0x3249b7,_0x1b3208)=>{const _0x286dd3=a2_0x3e7974,_0x4d5309=new ChatCommand(),_0x1d921e=program[_0x286dd3(0x198)](),_0xa99280=await createTDXInstance(_0x1d921e),_0x5177a3=await _0x4d5309[_0x286dd3(0x259)]({'options':{..._0x1d921e,..._0x1b3208},'args':_0x3249b7,'tdx':_0xa99280});process[_0x286dd3(0x2e1)](_0x5177a3);});const apiCmd=program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x208))[a2_0x3e7974(0x186)](a2_0x3e7974(0x1e0))[a2_0x3e7974(0x1b8)](a2_0x3e7974(0xf0),a2_0x3e7974(0x183))[a2_0x3e7974(0x187)](a2_0x3e7974(0x26c),a2_0x3e7974(0x233),a2_0x3e7974(0x101))['option'](a2_0x3e7974(0x1c2),a2_0x3e7974(0x1be))[a2_0x3e7974(0x187)](a2_0x3e7974(0x103),'Read\x20request\x20body\x20from\x20file')['option'](a2_0x3e7974(0x168),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x2496f6,_0x5adca7)=>{return _0x5adca7?[..._0x5adca7,_0x2496f6]:[_0x2496f6];})[a2_0x3e7974(0x187)](a2_0x3e7974(0x1ba),a2_0x3e7974(0x162),'td')[a2_0x3e7974(0x20f)](async(_0x2c1f8b,_0x2297c8)=>{const _0x341ac1=a2_0x3e7974;if(!_0x2c1f8b){apiCmd[_0x341ac1(0x201)]();return;}const _0x12bf7d=new ApiCommand(),_0x3e8951=program['opts'](),_0x1e4808=await createTDXInstance(_0x3e8951),_0x59c98a=await _0x12bf7d[_0x341ac1(0x259)]({'options':{..._0x3e8951,..._0x2297c8},'args':[_0x2c1f8b],'tdx':_0x1e4808});process['exit'](_0x59c98a);}),tableCmd=program[a2_0x3e7974(0xf2)](a2_0x3e7974(0xf7))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x192)),tableListAction=async(_0x517a01,_0x418746)=>{const _0xdac76=a2_0x3e7974,_0x52d48a=new TablesCommand(),_0x5738e6=program[_0xdac76(0x198)](),_0x22cfd4=await createTDXInstance(_0x5738e6);_0x418746['in']&&(_0x418746[_0xdac76(0x181)]=_0x418746['in']);const _0x336ffa=await _0x52d48a[_0xdac76(0x259)]({'options':{..._0x5738e6,..._0x418746},'args':_0x517a01?[_0x517a01]:[],'tdx':_0x22cfd4});process[_0xdac76(0x2e1)](_0x336ffa);};tableCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x27b))[a2_0x3e7974(0x22e)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x3e7974(0x187)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option']('--in\x20<database>',a2_0x3e7974(0x19b))[a2_0x3e7974(0x20f)](tableListAction),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1bb),{'hidden':!![]})[a2_0x3e7974(0x22e)](a2_0x3e7974(0x17a))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2d4),a2_0x3e7974(0x10d))['option']('--in\x20<database>',a2_0x3e7974(0x19b))[a2_0x3e7974(0x20f)](tableListAction),program['command']('show\x20[table]')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2f5))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2d4),a2_0x3e7974(0x2a1))[a2_0x3e7974(0x187)](a2_0x3e7974(0x280),a2_0x3e7974(0x19b))[a2_0x3e7974(0x20f)](async(_0x4741ab,_0x43ad19)=>{const _0x4ce838=a2_0x3e7974,_0x1bc886=new ShowCommand(),_0x3e7042=program['opts'](),_0x8e72c0=await createTDXInstance(_0x3e7042);_0x43ad19['in']&&(_0x43ad19['database']=_0x43ad19['in']);const _0x5c6fad=await _0x1bc886[_0x4ce838(0x259)]({'options':{..._0x3e7042,..._0x43ad19},'args':_0x4741ab?[_0x4741ab]:[],'tdx':_0x8e72c0});process[_0x4ce838(0x2e1)](_0x5c6fad);}),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x219))['alias'](a2_0x3e7974(0x16c))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2aa))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2d4),a2_0x3e7974(0x2a1))[a2_0x3e7974(0x187)](a2_0x3e7974(0x280),a2_0x3e7974(0x19b))[a2_0x3e7974(0x20f)](async(_0xb787e2,_0x39b863)=>{const _0x264b5b=a2_0x3e7974,_0x55a42d=new DescribeCommand(),_0x5e7391=program['opts'](),_0x578da8=await createTDXInstance(_0x5e7391);_0x39b863['in']&&(_0x39b863[_0x264b5b(0x181)]=_0x39b863['in']);const _0x58979d=await _0x55a42d['run']({'options':{..._0x5e7391,..._0x39b863},'args':_0xb787e2?[_0xb787e2]:[],'tdx':_0x578da8});process[_0x264b5b(0x2e1)](_0x58979d);}),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0xf8))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1c4))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2d4),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x280),a2_0x3e7974(0x19b))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2a9),a2_0x3e7974(0x1d5))['option'](a2_0x3e7974(0x103),a2_0x3e7974(0x145))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1c7),a2_0x3e7974(0x12f),'40')['action'](async(_0x2c4164,_0x25c4cc)=>{const _0x196478=a2_0x3e7974,_0x34a995=new QueryCommand(),_0x2f9a8a=program[_0x196478(0x198)](),_0x7ee281=await createTDXInstance(_0x2f9a8a);_0x25c4cc['in']&&(_0x25c4cc[_0x196478(0x181)]=_0x25c4cc['in']);const _0x20f611=await _0x34a995[_0x196478(0x259)]({'options':{..._0x2f9a8a,..._0x25c4cc},'args':_0x2c4164?[_0x2c4164]:[],'tdx':_0x7ee281});process['exit'](_0x20f611);});const segmentCmd=program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2ee))[a2_0x3e7974(0x272)]('sg')['description']('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x133c46,_0x518af0)=>{const _0x16ac9f=a2_0x3e7974,_0x204235=new SegmentsCommand(),_0xf22fd=program[_0x16ac9f(0x198)](),_0x486c65=await createTDXInstance(_0xf22fd),_0x5a47df=await _0x204235['run']({'options':{..._0xf22fd,..._0x518af0},'args':_0x133c46?[_0x133c46]:[],'tdx':_0x486c65});process[_0x16ac9f(0x2e1)](_0x5a47df);};segmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1fb))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x297))[a2_0x3e7974(0x187)](a2_0x3e7974(0x213),a2_0x3e7974(0x14b))['option']('--max-depth\x20<depth>',a2_0x3e7974(0x299),'10')[a2_0x3e7974(0x187)](a2_0x3e7974(0x1cc),a2_0x3e7974(0x2b0))[a2_0x3e7974(0x20f)](segmentListAction),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2d1),{'hidden':!![]})[a2_0x3e7974(0x22e)](a2_0x3e7974(0x25d))['option']('-r,\x20--recursive',a2_0x3e7974(0x14b))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe4),a2_0x3e7974(0x299),'10')[a2_0x3e7974(0x187)]('-w,\x20--web',a2_0x3e7974(0x2b0))[a2_0x3e7974(0x20f)](segmentListAction),segmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1b9),{'hidden':!![]})[a2_0x3e7974(0x22e)](a2_0x3e7974(0x22c))[a2_0x3e7974(0x20f)](async(_0x1d8a07,_0x19551b)=>{const _0x56fe66=new SegmentUseCommand(),_0x47d993=program['opts'](),_0x185164=await createTDXInstance(_0x47d993),_0x531b5f=await _0x56fe66['run']({'options':{..._0x47d993,..._0x19551b},'args':[_0x1d8a07],'tdx':_0x185164});process['exit'](_0x531b5f);});const segmentViewAction=async(_0x3edd18,_0x23bdb9)=>{const _0x3d9b66=a2_0x3e7974,_0x553136=new SegmentViewCommand(),_0x20a9cb=program[_0x3d9b66(0x198)](),_0x127ef5=await createTDXInstance(_0x20a9cb),_0x3edb1a=await _0x553136['run']({'options':{..._0x20a9cb,..._0x23bdb9},'args':_0x3edd18?[_0x3edd18]:[],'tdx':_0x127ef5});process[_0x3d9b66(0x2e1)](_0x3edb1a);};segmentCmd['command'](a2_0x3e7974(0x173))['description'](a2_0x3e7974(0x169))['option'](a2_0x3e7974(0x1cc),a2_0x3e7974(0x21f))['action'](segmentViewAction),segmentCmd['command']('info\x20[segment_name]',{'hidden':!![]})[a2_0x3e7974(0x272)](a2_0x3e7974(0x19a))['option'](a2_0x3e7974(0x1cc),a2_0x3e7974(0x21f))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2b1))[a2_0x3e7974(0x20f)](segmentViewAction),segmentCmd['command'](a2_0x3e7974(0x184))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x275))[a2_0x3e7974(0x20f)](async(_0x26d13c,_0x5a3fbc)=>{const _0x3cfc76=a2_0x3e7974,_0xffad32=new SegmentDescCommand(),_0x41de08=program['opts'](),_0x2cebd6=await createTDXInstance(_0x41de08),_0x19fb06=await _0xffad32[_0x3cfc76(0x259)]({'options':{..._0x41de08,..._0x5a3fbc},'args':_0x26d13c?[_0x26d13c]:[],'tdx':_0x2cebd6});process[_0x3cfc76(0x2e1)](_0x19fb06);}),segmentCmd['command'](a2_0x3e7974(0x1f4))[a2_0x3e7974(0x22e)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x3e7974(0x20f)](async(_0x1c673d,_0xaa645)=>{const _0x50da0b=a2_0x3e7974,_0x5b9cc6=new SegmentShowCommand(),_0x1e249d=program[_0x50da0b(0x198)](),_0x21aae1=await createTDXInstance(_0x1e249d),_0x3a4b7e=await _0x5b9cc6[_0x50da0b(0x259)]({'options':{..._0x1e249d,..._0xaa645},'args':_0x1c673d?[_0x1c673d]:[],'tdx':_0x21aae1});process[_0x50da0b(0x2e1)](_0x3a4b7e);}),segmentCmd[a2_0x3e7974(0xf2)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x3e7974(0x22e)](a2_0x3e7974(0x222))[a2_0x3e7974(0x20f)](async(_0xbf23ab,_0x154e6d)=>{const _0x4973a2=a2_0x3e7974,_0x502564=new SegmentFolderListCommand(),_0x2ae8e5=program[_0x4973a2(0x198)](),_0x354920=await createTDXInstance(_0x2ae8e5),_0x3eee28=await _0x502564[_0x4973a2(0x259)]({'options':{..._0x2ae8e5,..._0x154e6d},'args':[_0xbf23ab],'tdx':_0x354920});process[_0x4973a2(0x2e1)](_0x3eee28);});const folderCmd=segmentCmd[a2_0x3e7974(0xf2)]('folder',{'hidden':!![]})[a2_0x3e7974(0x22e)](a2_0x3e7974(0x107));folderCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1ff))['description']('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')['action'](async(_0x5bb5a0,_0x59b199)=>{const _0xce4843=a2_0x3e7974,_0x44dbf5=new SegmentFolderShowCommand(),_0x171c6c=program[_0xce4843(0x198)](),_0x537f11=await createTDXInstance(_0x171c6c),_0x17580f=await _0x44dbf5[_0xce4843(0x259)]({'options':{..._0x171c6c,..._0x59b199},'args':[_0x5bb5a0],'tdx':_0x537f11});process[_0xce4843(0x2e1)](_0x17580f);}),segmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x230))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x150))[a2_0x3e7974(0x20f)](async(_0x420af9,_0x16799a)=>{const _0x15b0e4=a2_0x3e7974,_0x24aa52=new SegmentSQLCommand(),_0x4b512a=program[_0x15b0e4(0x198)](),_0x5bcc28=await createTDXInstance(_0x4b512a),_0x55dd36=await _0x24aa52[_0x15b0e4(0x259)]({'options':{..._0x4b512a,..._0x16799a},'args':_0x420af9?[_0x420af9]:[],'tdx':_0x5bcc28});process[_0x15b0e4(0x2e1)](_0x55dd36);}),segmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2c8))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2dc))['action'](async(_0x2768a9,_0xb7c93e)=>{const _0x474fa2=a2_0x3e7974,_0x40de9f=new SegmentFieldsCommand(),_0x5334e3=program[_0x474fa2(0x198)](),_0x34a9ca=await createTDXInstance(_0x5334e3),_0x3bd0d8=await _0x40de9f[_0x474fa2(0x259)]({'options':{..._0x5334e3,..._0xb7c93e},'args':_0x2768a9?[_0x2768a9]:[],'tdx':_0x34a9ca});process[_0x474fa2(0x2e1)](_0x3bd0d8);}),segmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x26d))['description']('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x3e7974(0x187)](a2_0x3e7974(0x15c),'Skip\x20confirmation\x20prompts')['option'](a2_0x3e7974(0x2d0),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3e7974(0x20f)](async(_0x100b8e,_0x2dc340)=>{const _0x23e666=a2_0x3e7974,_0x1c815b=new SegmentPullCommand(),_0x1d8499=program[_0x23e666(0x198)](),_0xe824e9=await createTDXInstance(_0x1d8499),_0x4312b9=await _0x1c815b[_0x23e666(0x259)]({'options':{..._0x1d8499,..._0x2dc340},'args':_0x100b8e?[_0x100b8e]:[],'tdx':_0xe824e9});process[_0x23e666(0x2e1)](_0x4312b9);}),segmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2f3))[a2_0x3e7974(0x22e)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x3e7974(0x187)]('-y,\x20--yes',a2_0x3e7974(0x1e7))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2d0),a2_0x3e7974(0xd6))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2ad),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x3e7974(0x20f)](async(_0x3c42de,_0x44466d)=>{const _0x30785e=a2_0x3e7974,_0x158aca=new SegmentPushCommand(),_0x5abaad=program[_0x30785e(0x198)](),_0x5b271d=await createTDXInstance(_0x5abaad),_0x915655=await _0x158aca[_0x30785e(0x259)]({'options':{..._0x5abaad,..._0x44466d},'args':_0x3c42de?[_0x3c42de]:[],'tdx':_0x5b271d});process[_0x30785e(0x2e1)](_0x915655);}),segmentCmd['command'](a2_0x3e7974(0x196),{'hidden':!![]})['description'](a2_0x3e7974(0xe5))['option']('--description\x20<text>',a2_0x3e7974(0x252))[a2_0x3e7974(0x187)](a2_0x3e7974(0x118),a2_0x3e7974(0x229))[a2_0x3e7974(0x187)](a2_0x3e7974(0xda),a2_0x3e7974(0x2ef))[a2_0x3e7974(0x187)](a2_0x3e7974(0x112),a2_0x3e7974(0x2e5))[a2_0x3e7974(0x187)](a2_0x3e7974(0x15b),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x3e7974(0x187)](a2_0x3e7974(0x23b),a2_0x3e7974(0x15a))[a2_0x3e7974(0x187)](a2_0x3e7974(0x216),a2_0x3e7974(0x1e4))['action'](async(_0x1c729b,_0x5dfc02)=>{const _0x1a0284=a2_0x3e7974,_0x2fd0d9=new SegmentCreateCommand(),_0x1730e8=program[_0x1a0284(0x198)](),_0x1282eb=await createTDXInstance(_0x1730e8),_0x60371e=await _0x2fd0d9[_0x1a0284(0x259)]({'options':{..._0x1730e8,..._0x5dfc02},'args':[_0x1c729b],'tdx':_0x1282eb});process[_0x1a0284(0x2e1)](_0x60371e);}),segmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1e2),{'hidden':!![]})[a2_0x3e7974(0x22e)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x2ce),a2_0x3e7974(0x220))[a2_0x3e7974(0x187)](a2_0x3e7974(0x26f),a2_0x3e7974(0x193))[a2_0x3e7974(0x187)](a2_0x3e7974(0x118),a2_0x3e7974(0x194))[a2_0x3e7974(0x187)]('--rule-file\x20<file>',a2_0x3e7974(0x241))[a2_0x3e7974(0x187)]('--folder\x20<name>',a2_0x3e7974(0x25f))[a2_0x3e7974(0x187)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')['action'](async(_0x225c09,_0x2a5404)=>{const _0x23683e=a2_0x3e7974,_0x40a3de=new SegmentUpdateCommand(),_0x1a128f=program[_0x23683e(0x198)](),_0x55bce5=await createTDXInstance(_0x1a128f),_0x5aa171=await _0x40a3de[_0x23683e(0x259)]({'options':{..._0x1a128f,..._0x2a5404},'args':[_0x225c09],'tdx':_0x55bce5});process['exit'](_0x5aa171);});const parentCmd=segmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x24e),{'hidden':!![]})[a2_0x3e7974(0x22e)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x275dfe,_0x16d6fb)=>{const _0x493fd0=a2_0x3e7974,_0xfc810a=new ParentSegmentListCommand(),_0x7a67ba=program[_0x493fd0(0x198)](),_0x3365c0=await createTDXInstance(_0x7a67ba),_0x420825=await _0xfc810a[_0x493fd0(0x259)]({'options':{..._0x7a67ba,..._0x16d6fb},'args':_0x275dfe?[_0x275dfe]:[],'tdx':_0x3365c0});process[_0x493fd0(0x2e1)](_0x420825);};parentCmd[a2_0x3e7974(0xf2)]('list\x20[pattern]')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x23a))[a2_0x3e7974(0x20f)](parentListAction),segmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2c4),{'hidden':!![]})[a2_0x3e7974(0x22e)](a2_0x3e7974(0x178))[a2_0x3e7974(0x20f)](parentListAction),parentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2d8))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2bc))[a2_0x3e7974(0x187)](a2_0x3e7974(0x16b),a2_0x3e7974(0x246))['option']('-y,\x20--yes',a2_0x3e7974(0x2c5))[a2_0x3e7974(0x20f)](async(_0x3e806b,_0x195584)=>{const _0x673b3e=a2_0x3e7974,_0xb3a1b8=new ParentSegmentPullCommand(),_0xd716c8=program['opts'](),_0x55643c=await createTDXInstance(_0xd716c8),_0x532fdf=await _0xb3a1b8[_0x673b3e(0x259)]({'options':{..._0xd716c8,..._0x195584},'args':_0x3e806b?[_0x3e806b]:[],'tdx':_0x55643c});process['exit'](_0x532fdf);}),parentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x20e))[a2_0x3e7974(0x22e)](a2_0x3e7974(0xfa))[a2_0x3e7974(0x187)](a2_0x3e7974(0x15c),a2_0x3e7974(0x2c5))[a2_0x3e7974(0x20f)](async(_0x10fde8,_0x3e5736)=>{const _0x34b2d0=a2_0x3e7974,_0xbfd6d6=new ParentSegmentPushCommand(),_0xb68957=program[_0x34b2d0(0x198)](),_0x455c91=await createTDXInstance(_0xb68957),_0x3ebabc=await _0xbfd6d6[_0x34b2d0(0x259)]({'options':{..._0xb68957,..._0x3e5736},'args':_0x10fde8?[_0x10fde8]:[],'tdx':_0x455c91});process[_0x34b2d0(0x2e1)](_0x3ebabc);}),parentCmd[a2_0x3e7974(0xf2)]('validate\x20[file]')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x142))['option']('--master','Show\x20only\x20master\x20table\x20validation')[a2_0x3e7974(0x187)](a2_0x3e7974(0x260),a2_0x3e7974(0x191))[a2_0x3e7974(0x187)](a2_0x3e7974(0x19e),a2_0x3e7974(0xe8))[a2_0x3e7974(0x187)]('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x3e7974(0x187)](a2_0x3e7974(0xe3),a2_0x3e7974(0x1ca),'-1d')[a2_0x3e7974(0x20f)](async(_0x586e06,_0x53c7fa)=>{const _0x414de8=a2_0x3e7974,_0x474a7=new ParentSegmentValidateCommand(),_0x2730a8=program[_0x414de8(0x198)](),_0x5f009a=await createTDXInstance(_0x2730a8),_0x3273ea=await _0x474a7[_0x414de8(0x259)]({'options':{..._0x2730a8,..._0x53c7fa},'args':_0x586e06?[_0x586e06]:[],'tdx':_0x5f009a});process[_0x414de8(0x2e1)](_0x3273ea);}),parentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1b6))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2d2))[a2_0x3e7974(0x187)](a2_0x3e7974(0x179),a2_0x3e7974(0x282))[a2_0x3e7974(0x187)](a2_0x3e7974(0x260),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x3e7974(0x187)](a2_0x3e7974(0x19e),a2_0x3e7974(0x106))[a2_0x3e7974(0x187)](a2_0x3e7974(0x102),a2_0x3e7974(0x177))['option'](a2_0x3e7974(0xe3),a2_0x3e7974(0x1ca),a2_0x3e7974(0x17d))[a2_0x3e7974(0x20f)](async(_0xf46571,_0x27694d)=>{const _0x14eaf2=a2_0x3e7974,_0x289e57=new ParentSegmentPreviewCommand(),_0x41cd8b=program[_0x14eaf2(0x198)](),_0x1b8139=await createTDXInstance(_0x41cd8b),_0x291688=await _0x289e57['run']({'options':{..._0x41cd8b,..._0x27694d},'args':_0xf46571?[_0xf46571]:[],'tdx':_0x1b8139});process[_0x14eaf2(0x2e1)](_0x291688);}),parentCmd['command'](a2_0x3e7974(0xec))['description'](a2_0x3e7974(0x1a4))['option'](a2_0x3e7974(0x15c),a2_0x3e7974(0x2c5))[a2_0x3e7974(0x20f)](async(_0x6fdb6d,_0x3a92cf)=>{const _0x3d0565=a2_0x3e7974,_0xce1c9b=new ParentSegmentRunCommand(),_0x100717=program[_0x3d0565(0x198)](),_0x452e6d=await createTDXInstance(_0x100717),_0xf4f137=await _0xce1c9b[_0x3d0565(0x259)]({'options':{..._0x100717,..._0x3a92cf},'args':_0x6fdb6d?[_0x6fdb6d]:[],'tdx':_0x452e6d});process[_0x3d0565(0x2e1)](_0xf4f137);});const parentSegmentCmd=program[a2_0x3e7974(0xf2)](a2_0x3e7974(0xf3))[a2_0x3e7974(0x272)]('ps')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2e2));parentSegmentCmd['command'](a2_0x3e7974(0x27b))[a2_0x3e7974(0x22e)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),parentSegmentCmd[a2_0x3e7974(0xf2)]('pull\x20[name]')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1ea))[a2_0x3e7974(0x187)]('-o,\x20--output\x20<file>',a2_0x3e7974(0x2ba))[a2_0x3e7974(0x187)](a2_0x3e7974(0x15c),a2_0x3e7974(0x2c5))[a2_0x3e7974(0x187)](a2_0x3e7974(0xdc),a2_0x3e7974(0x2b6))[a2_0x3e7974(0x20f)](async(_0x4a892e,_0x3c3d74)=>{const _0x34f44b=a2_0x3e7974,_0xfb54f2=new ParentSegmentPullCommand(),_0x328a95=program['opts'](),_0x6c4be0=await createTDXInstance(_0x328a95),_0x2a7539=await _0xfb54f2[_0x34f44b(0x259)]({'options':{..._0x328a95,..._0x3c3d74},'args':_0x4a892e?[_0x4a892e]:[],'tdx':_0x6c4be0});process[_0x34f44b(0x2e1)](_0x2a7539);}),parentSegmentCmd[a2_0x3e7974(0xf2)]('push\x20[name]')['description']('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x15c),'Skip\x20confirmation\x20prompt')['action'](async(_0x445017,_0x2c9806)=>{const _0x3878a7=a2_0x3e7974,_0x47b032=new ParentSegmentPushCommand(),_0x5cbcd5=program[_0x3878a7(0x198)](),_0x377dd1=await createTDXInstance(_0x5cbcd5),_0x336568=await _0x47b032[_0x3878a7(0x259)]({'options':{..._0x5cbcd5,..._0x2c9806},'args':_0x445017?[_0x445017]:[],'tdx':_0x377dd1});process[_0x3878a7(0x2e1)](_0x336568);}),parentSegmentCmd['command'](a2_0x3e7974(0x2bb))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x142))['option'](a2_0x3e7974(0x179),a2_0x3e7974(0x247))[a2_0x3e7974(0x187)](a2_0x3e7974(0x260),a2_0x3e7974(0x191))['option'](a2_0x3e7974(0x19e),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3e7974(0x187)]('--enriched',a2_0x3e7974(0x15f))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe3),a2_0x3e7974(0x1ca),a2_0x3e7974(0x17d))['action'](async(_0x4d4b87,_0x2977a0)=>{const _0x2639a8=a2_0x3e7974,_0x234ef3=new ParentSegmentValidateCommand(),_0x39e81a=program[_0x2639a8(0x198)](),_0x1bd557=await createTDXInstance(_0x39e81a),_0x1df252=await _0x234ef3['run']({'options':{..._0x39e81a,..._0x2977a0},'args':_0x4d4b87?[_0x4d4b87]:[],'tdx':_0x1bd557});process[_0x2639a8(0x2e1)](_0x1df252);}),parentSegmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x13e))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2d2))[a2_0x3e7974(0x187)](a2_0x3e7974(0x179),a2_0x3e7974(0x282))[a2_0x3e7974(0x187)](a2_0x3e7974(0x260),a2_0x3e7974(0x2ac))[a2_0x3e7974(0x187)]('--behavior\x20[name]',a2_0x3e7974(0x106))[a2_0x3e7974(0x187)](a2_0x3e7974(0x102),a2_0x3e7974(0x177))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe3),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3e7974(0x17d))[a2_0x3e7974(0x20f)](async(_0x52a641,_0x3f9c95)=>{const _0x24670f=a2_0x3e7974,_0xc2cd13=new ParentSegmentPreviewCommand(),_0xbac221=program[_0x24670f(0x198)](),_0x13e116=await createTDXInstance(_0xbac221),_0x13a454=await _0xc2cd13[_0x24670f(0x259)]({'options':{..._0xbac221,..._0x3f9c95},'args':_0x52a641?[_0x52a641]:[],'tdx':_0x13e116});process['exit'](_0x13a454);}),parentSegmentCmd[a2_0x3e7974(0xf2)]('run\x20[name]')[a2_0x3e7974(0x22e)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x15c),a2_0x3e7974(0x2c5))[a2_0x3e7974(0x20f)](async(_0x119f44,_0x22b08e)=>{const _0x37fea3=a2_0x3e7974,_0x1568a6=new ParentSegmentRunCommand(),_0x36af55=program[_0x37fea3(0x198)](),_0x2115f0=await createTDXInstance(_0x36af55),_0x4f1346=await _0x1568a6['run']({'options':{..._0x36af55,..._0x22b08e},'args':_0x119f44?[_0x119f44]:[],'tdx':_0x2115f0});process['exit'](_0x4f1346);}),parentSegmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x25b))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x13c))[a2_0x3e7974(0x187)]('--json',a2_0x3e7974(0xea))[a2_0x3e7974(0x187)]('--jsonl',a2_0x3e7974(0xf1))[a2_0x3e7974(0x20f)](async(_0x3ce7d9,_0x5f2325)=>{const _0x2ec2c3=a2_0x3e7974,_0x4fc5dc=new ParentSegmentFieldsCommand(),_0x2d462e=program[_0x2ec2c3(0x198)](),_0x495199=await createTDXInstance(_0x2d462e),_0x3c5e79=await _0x4fc5dc[_0x2ec2c3(0x259)]({'options':{..._0x2d462e,..._0x5f2325},'args':_0x3ce7d9?[_0x3ce7d9]:[],'tdx':_0x495199});process[_0x2ec2c3(0x2e1)](_0x3c5e79);}),parentSegmentCmd[a2_0x3e7974(0xf2)]('view\x20[name]')['description'](a2_0x3e7974(0x13b))['option'](a2_0x3e7974(0x1cc),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x3e7974(0x187)](a2_0x3e7974(0x13d),a2_0x3e7974(0xea))[a2_0x3e7974(0x187)](a2_0x3e7974(0x269),a2_0x3e7974(0xf1))[a2_0x3e7974(0x20f)](async(_0x3d9ac3,_0x4abea7)=>{const _0x5bb35c=a2_0x3e7974,_0x58de50=new ParentSegmentViewCommand(),_0x1c88b8=program[_0x5bb35c(0x198)](),_0x5459b0=await createTDXInstance(_0x1c88b8),_0xaee11d=await _0x58de50[_0x5bb35c(0x259)]({'options':{..._0x1c88b8,..._0x4abea7},'args':_0x3d9ac3?[_0x3d9ac3]:[],'tdx':_0x5459b0});process[_0x5bb35c(0x2e1)](_0xaee11d);}),parentSegmentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x227))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2a5))[a2_0x3e7974(0x187)](a2_0x3e7974(0x13d),'Output\x20as\x20JSON')[a2_0x3e7974(0x187)](a2_0x3e7974(0x269),a2_0x3e7974(0xf1))[a2_0x3e7974(0x20f)](async(_0x31e3c6,_0x475987)=>{const _0x11180d=a2_0x3e7974,_0x5702ca=new ParentSegmentDescCommand(),_0x5e4f09=program[_0x11180d(0x198)](),_0x357f90=await createTDXInstance(_0x5e4f09),_0x523ce4=await _0x5702ca[_0x11180d(0x259)]({'options':{..._0x5e4f09,..._0x475987},'args':_0x31e3c6?[_0x31e3c6]:[],'tdx':_0x357f90});process[_0x11180d(0x2e1)](_0x523ce4);}),parentSegmentCmd[a2_0x3e7974(0xf2)]('sql\x20[name]')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x104))['option'](a2_0x3e7974(0x13d),a2_0x3e7974(0xea))[a2_0x3e7974(0x187)](a2_0x3e7974(0x269),a2_0x3e7974(0xf1))[a2_0x3e7974(0x20f)](async(_0x271a60,_0x5088ed)=>{const _0x4ef00d=a2_0x3e7974,_0x1ad669=new ParentSegmentSQLCommand(),_0x410931=program[_0x4ef00d(0x198)](),_0x1f9256=await createTDXInstance(_0x410931),_0x3e02d3=await _0x1ad669['run']({'options':{..._0x410931,..._0x5088ed},'args':_0x271a60?[_0x271a60]:[],'tdx':_0x1f9256});process[_0x4ef00d(0x2e1)](_0x3e02d3);}),parentSegmentCmd[a2_0x3e7974(0xf2)]('show\x20[name]')[a2_0x3e7974(0x22e)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x3e7974(0xde),a2_0x3e7974(0x2ec))[a2_0x3e7974(0x187)]('--json',a2_0x3e7974(0xea))[a2_0x3e7974(0x187)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x3e7974(0x20f)](async(_0x5977fd,_0x27fce4)=>{const _0x2c4f6a=a2_0x3e7974,_0x30183d=new ParentSegmentShowCommand(),_0x400116=program[_0x2c4f6a(0x198)](),_0x237b09=await createTDXInstance(_0x400116),_0x58feb8=await _0x30183d[_0x2c4f6a(0x259)]({'options':{..._0x400116,..._0x27fce4},'args':_0x5977fd?[_0x5977fd]:[],'tdx':_0x237b09});process[_0x2c4f6a(0x2e1)](_0x58feb8);}),parentSegmentCmd['command'](a2_0x3e7974(0x285))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1d9))[a2_0x3e7974(0x20f)](async(_0x8646dd,_0x2763e6)=>{const _0x5abc8c=a2_0x3e7974,_0x4097d5=new UseCommand(),_0x513ea2=program[_0x5abc8c(0x198)](),_0x446492=_0x8646dd?[_0x5abc8c(0x2f6),_0x8646dd]:[],_0x5dc57d=await _0x4097d5['run']({'options':{..._0x513ea2,..._0x2763e6},'args':_0x446492,'tdx':null});process[_0x5abc8c(0x2e1)](_0x5dc57d);}),parentCmd[a2_0x3e7974(0xf2)]('create\x20<name>')['description']('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3e7974(0x236)](a2_0x3e7974(0x108),a2_0x3e7974(0x1fe))[a2_0x3e7974(0x236)]('--table\x20<table>',a2_0x3e7974(0x243))[a2_0x3e7974(0x187)]('--description\x20<text>','Parent\x20segment\x20description')[a2_0x3e7974(0x187)](a2_0x3e7974(0x158),a2_0x3e7974(0x28f))['option'](a2_0x3e7974(0x14a),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')['option'](a2_0x3e7974(0x24f),a2_0x3e7974(0xdd))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2c3),a2_0x3e7974(0x1e5))['option'](a2_0x3e7974(0x2b9),'Attributes\x20from\x20JSON\x20file')[a2_0x3e7974(0x187)]('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x3e7974(0x187)]('--behaviors-file\x20<file>',a2_0x3e7974(0x210))[a2_0x3e7974(0x187)]('--customer-group\x20<json>',a2_0x3e7974(0x2cd))['option'](a2_0x3e7974(0x25a),a2_0x3e7974(0x1a0))[a2_0x3e7974(0x20f)](async(_0x4c6c51,_0x29aaa9)=>{const _0x155458=a2_0x3e7974,_0x57a9ef=new ParentSegmentCreateCommand(),_0x2a8042=program[_0x155458(0x198)](),_0x1deac0=await createTDXInstance(_0x2a8042),_0x2bc3a1=await _0x57a9ef[_0x155458(0x259)]({'options':{..._0x2a8042,..._0x29aaa9},'args':[_0x4c6c51],'tdx':_0x1deac0});process[_0x155458(0x2e1)](_0x2bc3a1);}),parentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1d7))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x128))[a2_0x3e7974(0x187)]('--description\x20<text>',a2_0x3e7974(0x193))[a2_0x3e7974(0x187)](a2_0x3e7974(0x158),a2_0x3e7974(0x111))[a2_0x3e7974(0x187)](a2_0x3e7974(0x14a),a2_0x3e7974(0x11c))['option']('--timezone\x20<tz>',a2_0x3e7974(0x204))[a2_0x3e7974(0x187)]('--add-attributes\x20<json>',a2_0x3e7974(0x278))[a2_0x3e7974(0x187)](a2_0x3e7974(0x130),a2_0x3e7974(0x223))[a2_0x3e7974(0x187)](a2_0x3e7974(0x121),'Add\x20behaviors\x20as\x20JSON\x20string')[a2_0x3e7974(0x187)](a2_0x3e7974(0x2d7),'Add\x20behaviors\x20from\x20JSON\x20file')['action'](async(_0xe31cb2,_0x131dd8)=>{const _0x13e047=a2_0x3e7974,_0x18d99c=new ParentSegmentUpdateCommand(),_0xf9cf65=program[_0x13e047(0x198)](),_0x43fa95=await createTDXInstance(_0xf9cf65),_0x424714=await _0x18d99c['run']({'options':{..._0xf9cf65,..._0x131dd8},'args':[_0xe31cb2],'tdx':_0x43fa95});process[_0x13e047(0x2e1)](_0x424714);}),folderCmd['command'](a2_0x3e7974(0x171))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x17c))[a2_0x3e7974(0x187)]('--description\x20<text>','Folder\x20description')['option'](a2_0x3e7974(0x290),a2_0x3e7974(0x1a2))[a2_0x3e7974(0x20f)](async(_0x20afe9,_0x33754d,_0x407ed8)=>{const _0x474e11=a2_0x3e7974,_0x137459=new SegmentFolderCreateCommand(),_0x23eca9=program[_0x474e11(0x198)](),_0x3d3e02=await createTDXInstance(_0x23eca9),_0x3969a2=await _0x137459['run']({'options':{..._0x23eca9,..._0x407ed8},'args':[_0x20afe9,_0x33754d],'tdx':_0x3d3e02});process[_0x474e11(0x2e1)](_0x3969a2);}),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1ad))[a2_0x3e7974(0x22e)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x3e7974(0x20f)](async(_0x5b240a,_0xdf833d)=>{const _0x504fc1=a2_0x3e7974,_0x5da802=new ActivationsCommand(),_0x28030c=program[_0x504fc1(0x198)](),_0x315269=await createTDXInstance(_0x28030c),_0x57d81f=await _0x5da802[_0x504fc1(0x259)]({'options':{..._0x28030c,..._0xdf833d},'args':[_0x5b240a],'tdx':_0x315269});process[_0x504fc1(0x2e1)](_0x57d81f);});const workflowCmd=program['command'](a2_0x3e7974(0x29e))[a2_0x3e7974(0x272)]('wf')['description'](a2_0x3e7974(0x123)),wfProjectCmd=workflowCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x274))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x267)),wfProjectListAction=async(_0x32a4a8,_0x1b6670)=>{const _0x446446=a2_0x3e7974,_0x4244ad=new WorkflowProjectsCommand(),_0x5b9863=program[_0x446446(0x198)](),_0x3e4638=await createTDXInstance(_0x5b9863),_0x1ccf3d=await _0x4244ad[_0x446446(0x259)]({'options':{..._0x5b9863,..._0x1b6670},'args':_0x32a4a8?[_0x32a4a8]:[],'tdx':_0x3e4638});process['exit'](_0x1ccf3d);};wfProjectCmd['command'](a2_0x3e7974(0x27b))['description'](a2_0x3e7974(0x1f3))[a2_0x3e7974(0x20f)](wfProjectListAction),workflowCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x122))['description'](a2_0x3e7974(0xf6))[a2_0x3e7974(0x20f)](wfProjectListAction);const wfWorkflowListAction=async(_0x50aeb0,_0x3c86ee)=>{const _0x430ee8=a2_0x3e7974,_0x23dc93=new WorkflowWorkflowsCommand(),_0x3c0115=program['opts'](),_0x454dd9=await createTDXInstance(_0x3c0115),_0x2d64c0=await _0x23dc93[_0x430ee8(0x259)]({'options':{..._0x3c0115,..._0x3c86ee},'args':_0x50aeb0?[_0x50aeb0]:[],'tdx':_0x454dd9});process[_0x430ee8(0x2e1)](_0x2d64c0);};workflowCmd[a2_0x3e7974(0xf2)]('workflows\x20[project]')[a2_0x3e7974(0x22e)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3e7974(0xf2)]('session')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1e8)),wfSessionListAction=async(_0x1ffa7e,_0x41075b)=>{const _0x298f80=a2_0x3e7974,_0xe91251=new WorkflowSessionsCommand(),_0x402090=program[_0x298f80(0x198)](),_0x1d076a=await createTDXInstance(_0x402090),_0x422352=await _0xe91251['run']({'options':{..._0x402090,..._0x41075b},'args':_0x1ffa7e?[_0x1ffa7e]:[],'tdx':_0x1d076a});process[_0x298f80(0x2e1)](_0x422352);};wfSessionCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x149))[a2_0x3e7974(0x22e)](a2_0x3e7974(0xe0))[a2_0x3e7974(0x187)]('--status\x20<status>',a2_0x3e7974(0x1c1))[a2_0x3e7974(0x187)](a2_0x3e7974(0x218),a2_0x3e7974(0x1df))['option'](a2_0x3e7974(0x2ca),a2_0x3e7974(0xdf))[a2_0x3e7974(0x20f)](wfSessionListAction),workflowCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x294))['description'](a2_0x3e7974(0x2a3))[a2_0x3e7974(0x187)](a2_0x3e7974(0x23c),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x218),a2_0x3e7974(0x1df))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2ca),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3e7974(0x20f)](wfSessionListAction);const wfAttemptListAction=async(_0x504d4d,_0xb79486)=>{const _0x4726a6=a2_0x3e7974,_0x4fca08=new WorkflowAttemptsCommand(),_0x15efb3=program['opts'](),_0x3a01bb=await createTDXInstance(_0x15efb3),_0x4468a2=await _0x4fca08['run']({'options':{..._0x15efb3,..._0xb79486},'args':_0x504d4d?[_0x504d4d]:[],'tdx':_0x3a01bb});process[_0x4726a6(0x2e1)](_0x4468a2);},attemptCmd=workflowCmd['command'](a2_0x3e7974(0x189))[a2_0x3e7974(0x22e)]('Workflow\x20attempt\x20management')['argument'](a2_0x3e7974(0x114),a2_0x3e7974(0x2dd))[a2_0x3e7974(0x2e8)](a2_0x3e7974(0x1f7),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')['argument'](a2_0x3e7974(0x12a),a2_0x3e7974(0x26b))[a2_0x3e7974(0x187)](a2_0x3e7974(0x18f),a2_0x3e7974(0x1f8))[a2_0x3e7974(0x187)](a2_0x3e7974(0x160),a2_0x3e7974(0x1b5))[a2_0x3e7974(0x187)](a2_0x3e7974(0x12e),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x137),a2_0x3e7974(0x2cc))[a2_0x3e7974(0x187)](a2_0x3e7974(0x295),a2_0x3e7974(0xff))['option']('--include-retried',a2_0x3e7974(0x116))['action'](async(_0x2cbfa4,_0x3643bf,_0xac84f0,_0x4819b6)=>{const _0x4f421b=a2_0x3e7974;if(_0x2cbfa4===_0x4f421b(0x29d)){await wfAttemptListAction(_0x3643bf,_0x4819b6);return;}if(!_0x2cbfa4){attemptCmd[_0x4f421b(0x201)]();return;}const _0x1bb9e9=program[_0x4f421b(0x198)](),_0x181cb9=await createTDXInstance(_0x1bb9e9);let _0x2d715e=0x0;if(!_0x3643bf){const _0x500a79=new WorkflowAttemptCommand();_0x2d715e=await _0x500a79[_0x4f421b(0x259)]({'options':{..._0x1bb9e9,..._0x4819b6},'args':[_0x2cbfa4],'tdx':_0x181cb9});}else{if(_0x3643bf===_0x4f421b(0x15d)){const _0x4f351b=new WorkflowLogsCommand();_0x2d715e=await _0x4f351b[_0x4f421b(0x259)]({'options':{..._0x1bb9e9,..._0x4819b6},'args':_0xac84f0?[_0x2cbfa4,_0xac84f0]:[_0x2cbfa4],'tdx':_0x181cb9});}else{if(_0x3643bf===_0x4f421b(0x109)){const _0x1a74df=new WorkflowTasksCommand();_0x2d715e=await _0x1a74df[_0x4f421b(0x259)]({'options':{..._0x1bb9e9,..._0x4819b6},'args':[_0x2cbfa4],'tdx':_0x181cb9});}else{if(_0x3643bf===_0x4f421b(0x248)){const _0x45c97c=new WorkflowKillCommand();_0x2d715e=await _0x45c97c['run']({'options':{..._0x1bb9e9,..._0x4819b6},'args':[_0x2cbfa4],'tdx':_0x181cb9});}else{if(_0x3643bf===_0x4f421b(0x231)){const _0x851eae=new WorkflowRetryCommand();_0x2d715e=await _0x851eae[_0x4f421b(0x259)]({'options':{..._0x1bb9e9,..._0x4819b6},'args':['attempt:'+_0x2cbfa4],'tdx':_0x181cb9});}else console[_0x4f421b(0x2c2)](_0x4f421b(0x266)+_0x3643bf),console[_0x4f421b(0x2c2)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x2d715e=0x1;}}}}process[_0x4f421b(0x2e1)](_0x2d715e);});attemptCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x149))['description'](a2_0x3e7974(0x22d))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1b2),a2_0x3e7974(0x1a1))[a2_0x3e7974(0x20f)](wfAttemptListAction),workflowCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x147))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x13a))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1b2),a2_0x3e7974(0x1a1))[a2_0x3e7974(0x20f)](wfAttemptListAction),workflowCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1da))['description'](a2_0x3e7974(0x298))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe6),a2_0x3e7974(0xd7))[a2_0x3e7974(0x187)](a2_0x3e7974(0x137),a2_0x3e7974(0x2e3))['action'](async(_0x141d1f,_0x2a518e)=>{const _0x2dfd5c=a2_0x3e7974,_0x5188f3=new WorkflowRetryCommand(),_0x4bec87=program[_0x2dfd5c(0x198)](),_0x4ecff9=await createTDXInstance(_0x4bec87),_0x34aa81=await _0x5188f3[_0x2dfd5c(0x259)]({'options':{..._0x4bec87,..._0x2a518e},'args':[_0x141d1f],'tdx':_0x4ecff9});process[_0x2dfd5c(0x2e1)](_0x34aa81);}),workflowCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x141))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1c9))[a2_0x3e7974(0x187)](a2_0x3e7974(0x185),a2_0x3e7974(0xfd),(_0x29cdeb,_0x24c2df=[])=>[..._0x24c2df,_0x29cdeb],[])[a2_0x3e7974(0x187)]('--session-time\x20<time>',a2_0x3e7974(0x195))[a2_0x3e7974(0x20f)](async(_0x41645f,_0x13760a)=>{const _0x52b60e=a2_0x3e7974,_0x1c1bf2=new WorkflowRunCommand(),_0x984806=program['opts'](),_0x4e3505=await createTDXInstance(_0x984806),_0x55e0a7=await _0x1c1bf2[_0x52b60e(0x259)]({'options':{..._0x984806,..._0x13760a},'args':[_0x41645f],'tdx':_0x4e3505});process[_0x52b60e(0x2e1)](_0x55e0a7);}),workflowCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2d9))['description']('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a2_0x3e7974(0x1ef),a2_0x3e7974(0x15e))[a2_0x3e7974(0x20f)](async(_0x2617d4,_0x5643dd,_0x4181fe)=>{const _0x10bf77=a2_0x3e7974,_0x46ef96=new WorkflowDownloadCommand(),_0x38f0ae=program[_0x10bf77(0x198)](),_0x497788=await createTDXInstance(_0x38f0ae),_0x3f92d7=await _0x46ef96[_0x10bf77(0x259)]({'options':{..._0x38f0ae,..._0x4181fe},'args':[_0x2617d4,_0x5643dd||'.'],'tdx':_0x497788});process[_0x10bf77(0x2e1)](_0x3f92d7);}),workflowCmd[a2_0x3e7974(0xf2)]('push\x20[project-name-or-dir]')['description']('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x1a6),a2_0x3e7974(0xd4))['option'](a2_0x3e7974(0x1ef),a2_0x3e7974(0x27e))[a2_0x3e7974(0x187)](a2_0x3e7974(0x159),a2_0x3e7974(0x119))[a2_0x3e7974(0x20f)](async(_0x5942ee,_0x2a96ef)=>{const _0x2babb7=a2_0x3e7974,_0x4d1d1b=new WorkflowPushCommand(),_0x255060=program[_0x2babb7(0x198)](),_0x273c24=await createTDXInstance(_0x255060),_0x11bb42=await _0x4d1d1b[_0x2babb7(0x259)]({'options':{..._0x255060,..._0x2a96ef},'args':_0x5942ee?[_0x5942ee]:[],'tdx':_0x273c24});process[_0x2babb7(0x2e1)](_0x11bb42);}),workflowCmd['command'](a2_0x3e7974(0xeb))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x170))[a2_0x3e7974(0x20f)](async(_0x44f2db,_0x204949)=>{const _0x4aeac1=a2_0x3e7974,_0x342247=new WorkflowDeleteCommand(),_0x185a4f=program[_0x4aeac1(0x198)](),_0x793a88=await createTDXInstance(_0x185a4f),_0x1ce400=await _0x342247[_0x4aeac1(0x259)]({'options':{..._0x185a4f,..._0x204949},'args':[_0x44f2db],'tdx':_0x793a88});process[_0x4aeac1(0x2e1)](_0x1ce400);});const jobCmd=program['command'](a2_0x3e7974(0x217))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x26a)),jobListAction=async _0x238a00=>{const _0x191105=a2_0x3e7974,_0x5ef9cf=new JobListCommand(),_0x38cdbe=program[_0x191105(0x198)](),_0x3255ba=await createTDXInstance(_0x38cdbe),_0x38a2ea=await _0x5ef9cf[_0x191105(0x259)]({'options':{..._0x38cdbe,..._0x238a00},'args':[],'tdx':_0x3255ba});process['exit'](_0x38a2ea);};jobCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x29d))['description'](a2_0x3e7974(0x203))['option'](a2_0x3e7974(0x23c),a2_0x3e7974(0x2a8))[a2_0x3e7974(0x20f)](jobListAction),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x21a),{'hidden':!![]})[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2a6))[a2_0x3e7974(0x187)](a2_0x3e7974(0x23c),a2_0x3e7974(0x2a8))[a2_0x3e7974(0x20f)](jobListAction),jobCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x240))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2c1))[a2_0x3e7974(0x20f)](async(_0xd6769,_0x4c26dc)=>{const _0x5937d7=a2_0x3e7974,_0x210dec=new JobShowCommand(),_0x3d0625=program[_0x5937d7(0x198)](),_0x1a3fbe=await createTDXInstance(_0x3d0625),_0x1bd30c=await _0x210dec['run']({'options':{..._0x3d0625,..._0x4c26dc},'args':[_0xd6769],'tdx':_0x1a3fbe});process[_0x5937d7(0x2e1)](_0x1bd30c);}),jobCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x20c))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x131))['action'](async(_0x150cc5,_0x3a56a8)=>{const _0x3980a1=a2_0x3e7974,_0x48fdab=new JobKillCommand(),_0x185844=program[_0x3980a1(0x198)](),_0x45106f=await createTDXInstance(_0x185844),_0x14c2e5=await _0x48fdab['run']({'options':{..._0x185844,..._0x3a56a8},'args':[_0x150cc5],'tdx':_0x45106f});process['exit'](_0x14c2e5);}),jobCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x18e))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x140))[a2_0x3e7974(0x187)](a2_0x3e7974(0x289),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x3e7974(0x2ea))[a2_0x3e7974(0x187)]('-f,\x20--file\x20<path>','Read\x20query\x20from\x20file')[a2_0x3e7974(0x187)](a2_0x3e7974(0x2e6),a2_0x3e7974(0x2b8),a2_0x3e7974(0x279))[a2_0x3e7974(0x20f)](async(_0xed3769,_0x30d6dd)=>{const _0x330620=a2_0x3e7974,_0x2971f5=new JobSubmitCommand(),_0x5c084a=program['opts'](),_0x28d9e7=await createTDXInstance(_0x5c084a),_0x240dc2=await _0x2971f5[_0x330620(0x259)]({'options':{..._0x5c084a,..._0x30d6dd},'args':_0xed3769?[_0xed3769]:[],'tdx':_0x28d9e7});process[_0x330620(0x2e1)](_0x240dc2);}),jobCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2df))[a2_0x3e7974(0x22e)]('Get\x20job\x20results')['action'](async(_0x5b5be4,_0x229a3d)=>{const _0x2ded0e=a2_0x3e7974,_0x394703=new JobResultCommand(),_0x19f75d=program[_0x2ded0e(0x198)](),_0x39abbc=await createTDXInstance(_0x19f75d),_0x40b54e=await _0x394703[_0x2ded0e(0x259)]({'options':{..._0x19f75d,..._0x229a3d},'args':[_0x5b5be4],'tdx':_0x39abbc});process[_0x2ded0e(0x2e1)](_0x40b54e);});const llmCmd=program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x237))[a2_0x3e7974(0x22e)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1b1))['description'](a2_0x3e7974(0x157))['action'](async(_0x2e8b9b,_0x402c6e)=>{const _0x2bb211=a2_0x3e7974,_0x8aa744=new LLMUseCommand(),_0x338a9c=program['opts'](),_0x2759c8=await createTDXInstance(_0x338a9c),_0x2b5456=await _0x8aa744[_0x2bb211(0x259)]({'options':{..._0x338a9c,..._0x402c6e},'args':[_0x2e8b9b],'tdx':_0x2759c8});process[_0x2bb211(0x2e1)](_0x2b5456);}),llmCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x28c))[a2_0x3e7974(0x22e)]('List\x20available\x20LLM\x20models')['action'](async _0x20410b=>{const _0x4b594a=a2_0x3e7974,_0x2f2d8b=new LLMModelsCommand(),_0x20254f=program['opts'](),_0x7c2cdf=await createTDXInstance(_0x20254f),_0x37e499=await _0x2f2d8b[_0x4b594a(0x259)]({'options':{..._0x20254f,..._0x20410b},'args':[],'tdx':_0x7c2cdf});process['exit'](_0x37e499);});const projectCmd=llmCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x274))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x288)),llmProjectListAction=async(_0x3d97fd,_0x28108d)=>{const _0x10bd79=a2_0x3e7974,_0x62efd7=new LLMProjectsCommand(),_0x291034=program['opts'](),_0x37c8a1=await createTDXInstance(_0x291034),_0x1ac127=await _0x62efd7[_0x10bd79(0x259)]({'options':{..._0x291034,..._0x28108d},'args':_0x3d97fd?[_0x3d97fd]:[],'tdx':_0x37c8a1});process[_0x10bd79(0x2e1)](_0x1ac127);};projectCmd['command'](a2_0x3e7974(0x27b))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x155))[a2_0x3e7974(0x20f)](llmProjectListAction),llmCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x122))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2af))[a2_0x3e7974(0x20f)](llmProjectListAction),projectCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x20a))['description'](a2_0x3e7974(0x1a3))['option'](a2_0x3e7974(0x26f),a2_0x3e7974(0x1cd))['action'](async(_0x10aa66,_0x5249e1)=>{const _0x1cd715=new LLMProjectCreateCommand(),_0x197322=program['opts'](),_0x2ff1ee=await createTDXInstance(_0x197322),_0x366645=await _0x1cd715['run']({'options':{..._0x197322,..._0x5249e1},'args':[_0x10aa66],'tdx':_0x2ff1ee});process['exit'](_0x366645);}),projectCmd['command']('delete\x20<name>')[a2_0x3e7974(0x22e)]('Delete\x20an\x20LLM\x20project')['action'](async(_0x5bc357,_0x27a0b5)=>{const _0x4c4a88=a2_0x3e7974,_0xb3c063=new LLMProjectDeleteCommand(),_0x36a022=program['opts'](),_0x5f3292=await createTDXInstance(_0x36a022),_0x5830fc=await _0xb3c063[_0x4c4a88(0x259)]({'options':{..._0x36a022,..._0x27a0b5},'args':[_0x5bc357],'tdx':_0x5f3292});process['exit'](_0x5830fc);}),projectCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x224))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x117))[a2_0x3e7974(0x187)](a2_0x3e7974(0x28e),a2_0x3e7974(0x225))['option'](a2_0x3e7974(0x2d0),a2_0x3e7974(0x11f))['action'](async(_0x152104,_0x54d4c7)=>{const _0x1690f0=a2_0x3e7974,_0x5c049a=new LLMProjectBackupCommand(),_0x3d072a=program[_0x1690f0(0x198)](),_0x1ad2e5=await createTDXInstance(_0x3d072a),_0x17a538=await _0x5c049a['run']({'options':{..._0x3d072a,..._0x54d4c7},'args':[_0x152104],'tdx':_0x1ad2e5});process['exit'](_0x17a538);}),projectCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0xd9))['description']('Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder')[a2_0x3e7974(0x187)](a2_0x3e7974(0x1f5),a2_0x3e7974(0x1c0))['option']('--dry-run','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x3e7974(0x20f)](async(_0x54ee20,_0x50395f)=>{const _0x5e05de=a2_0x3e7974,_0x13cd63=new LLMProjectRestoreCommand(),_0x22a9ff=program[_0x5e05de(0x198)](),_0x1494ca=await createTDXInstance(_0x22a9ff),_0x151128=await _0x13cd63[_0x5e05de(0x259)]({'options':{..._0x22a9ff,..._0x50395f},'args':[_0x54ee20],'tdx':_0x1494ca});process[_0x5e05de(0x2e1)](_0x151128);});const agentCmd=llmCmd[a2_0x3e7974(0xf2)]('agent')[a2_0x3e7974(0x22e)](a2_0x3e7974(0xdb)),llmAgentListAction=async(_0xb08e8b,_0x42f038)=>{const _0xc583ba=a2_0x3e7974,_0x393862=new LLMAgentsCommand(),_0x44b045=program[_0xc583ba(0x198)](),_0x3c63d2=await createTDXInstance(_0x44b045),_0x48361c=await _0x393862[_0xc583ba(0x259)]({'options':{..._0x44b045,..._0x42f038},'args':_0xb08e8b?[_0xb08e8b]:[],'tdx':_0x3c63d2});process[_0xc583ba(0x2e1)](_0x48361c);};agentCmd['command'](a2_0x3e7974(0x27b))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1f2))[a2_0x3e7974(0x20f)](llmAgentListAction),llmCmd[a2_0x3e7974(0xf2)]('agents\x20[pattern]')['description'](a2_0x3e7974(0x276))[a2_0x3e7974(0x20f)](llmAgentListAction),agentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x19d))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x28a))[a2_0x3e7974(0x20f)](async(_0x4582df,_0x1f7a8a)=>{const _0xa50217=a2_0x3e7974,_0x1274b4=new LLMAgentShowCommand(),_0xd54cef=program[_0xa50217(0x198)](),_0x5237d8=await createTDXInstance(_0xd54cef),_0x5ece7c=await _0x1274b4[_0xa50217(0x259)]({'options':{..._0xd54cef,..._0x1f7a8a},'args':[_0x4582df],'tdx':_0x5237d8});process[_0xa50217(0x2e1)](_0x5ece7c);}),agentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x20a))['description'](a2_0x3e7974(0x2d3))[a2_0x3e7974(0x187)]('--system-prompt\x20<text>',a2_0x3e7974(0x2da))[a2_0x3e7974(0x187)]('--model\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x3e7974(0x1dd))[a2_0x3e7974(0x187)](a2_0x3e7974(0x167),'Starter\x20message')[a2_0x3e7974(0x187)]('--max-tool-iterations\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x3e7974(0x187)](a2_0x3e7974(0x16d),a2_0x3e7974(0xf4),a2_0x3e7974(0x1db))[a2_0x3e7974(0x20f)](async(_0x556ce7,_0x2eb0b3)=>{const _0xfbf43b=a2_0x3e7974,_0x176e28=new LLMAgentCreateCommand(),_0x2078e3=program[_0xfbf43b(0x198)](),_0x21a105=await createTDXInstance(_0x2078e3),_0x43f7ec=await _0x176e28[_0xfbf43b(0x259)]({'options':{..._0x2078e3,..._0x2eb0b3},'args':[_0x556ce7],'tdx':_0x21a105});process[_0xfbf43b(0x2e1)](_0x43f7ec);}),agentCmd[a2_0x3e7974(0xf2)]('update\x20<agent-name>')['description']('Update\x20an\x20existing\x20agent')['option']('--name\x20<text>','Agent\x20name')[a2_0x3e7974(0x187)]('--prompt\x20<text>',a2_0x3e7974(0x2a2))[a2_0x3e7974(0x187)](a2_0x3e7974(0x26f),a2_0x3e7974(0x10e))[a2_0x3e7974(0x187)]('--starter-message\x20<text>',a2_0x3e7974(0x2de))[a2_0x3e7974(0x20f)](async(_0x5358c7,_0x42b0c0)=>{const _0xef2f6a=a2_0x3e7974,_0x3d406d=new LLMAgentUpdateCommand(),_0x66be5d=program['opts'](),_0x40b9b=await createTDXInstance(_0x66be5d),_0x3e55d5=await _0x3d406d[_0xef2f6a(0x259)]({'options':{..._0x66be5d,..._0x42b0c0},'args':[_0x5358c7],'tdx':_0x40b9b});process[_0xef2f6a(0x2e1)](_0x3e55d5);}),agentCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1a7))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2a4))[a2_0x3e7974(0x20f)](async(_0x2875b4,_0x5a5dfd)=>{const _0x53defa=a2_0x3e7974,_0x3de97e=new LLMAgentDeleteCommand(),_0x2c34b5=program[_0x53defa(0x198)](),_0x5d2605=await createTDXInstance(_0x2c34b5),_0x322a71=await _0x3de97e['run']({'options':{..._0x2c34b5,..._0x5a5dfd},'args':[_0x2875b4],'tdx':_0x5d2605});process[_0x53defa(0x2e1)](_0x322a71);}),llmCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1f1))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1a8))[a2_0x3e7974(0x187)]('--last','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x3e7974(0x20f)](async(_0x411a35,_0x548465)=>{const _0x12b14b=a2_0x3e7974,_0x3e2a0f=new LLMHistoryCommand(),_0x8a4a19=program[_0x12b14b(0x198)](),_0x1968b5=await createTDXInstance(_0x8a4a19),_0x593d9e=await _0x3e2a0f[_0x12b14b(0x259)]({'options':{..._0x8a4a19,..._0x548465},'args':_0x411a35?[_0x411a35]:[],'tdx':_0x1968b5});process[_0x12b14b(0x2e1)](_0x593d9e);}),llmCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x254))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x281))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2c6),a2_0x3e7974(0x24c),a2_0x3e7974(0x256))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1fd),a2_0x3e7974(0x24d))[a2_0x3e7974(0x187)]('--agent\x20<name>',a2_0x3e7974(0x14e))[a2_0x3e7974(0x20f)](async _0x4ee2e3=>{const _0x4c2115=a2_0x3e7974,_0x5b38e0=new LLMProxyCommand(),_0x5604b9=program['opts'](),_0x2dba77=await createTDXInstance(_0x5604b9),_0x25d34f={..._0x4ee2e3,'port':_0x4ee2e3[_0x4c2115(0x221)]?parseInt(_0x4ee2e3['port'],0xa):undefined},_0x165314=await _0x5b38e0[_0x4c2115(0x259)]({'options':{..._0x5604b9,..._0x25d34f},'args':[],'tdx':_0x2dba77});process[_0x4c2115(0x2e1)](_0x165314);}),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x207))[a2_0x3e7974(0x262)](a2_0x3e7974(0x139))['description'](a2_0x3e7974(0x10f))[a2_0x3e7974(0x187)](a2_0x3e7974(0x292),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x3e7974(0x154))[a2_0x3e7974(0x187)](a2_0x3e7974(0x258),a2_0x3e7974(0x273))[a2_0x3e7974(0x187)](a2_0x3e7974(0x27f),a2_0x3e7974(0x1b3))[a2_0x3e7974(0x187)](a2_0x3e7974(0x166),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x3e7974(0x1c5)]()['allowExcessArguments'](!![])[a2_0x3e7974(0x1b8)](a2_0x3e7974(0xf0),a2_0x3e7974(0x293))[a2_0x3e7974(0x20f)](async(_0x235a0f,_0x3ad101)=>{const _0x2052bc=a2_0x3e7974,_0xb4a418=program[_0x2052bc(0x198)](),_0x156d5c=Array[_0x2052bc(0x11b)](_0x235a0f)?_0x235a0f:[];if(_0x156d5c[0x0]===_0x2052bc(0x206)){const _0x282f99=new ClaudeStatuslineCommand(),_0x4d266d=await _0x282f99[_0x2052bc(0x259)]({'options':{..._0xb4a418,..._0x3ad101},'args':_0x156d5c['slice'](0x1),'tdx':null});process[_0x2052bc(0x2e1)](_0x4d266d);}if(_0x156d5c[0x0]===_0x2052bc(0x262)){const _0x14322b=new ClaudeUsageCommand(),_0x1a7457=await _0x14322b['run']({'options':{..._0xb4a418,..._0x3ad101},'args':_0x156d5c[_0x2052bc(0x232)](0x1),'tdx':null});process[_0x2052bc(0x2e1)](_0x1a7457);}const _0x453a9a=new ClaudeCommand(),_0x11e801=await createTDXInstance(_0xb4a418),_0xf5ed98=await _0x453a9a[_0x2052bc(0x259)]({'options':{..._0xb4a418,..._0x3ad101},'args':_0x156d5c,'tdx':_0x11e801});process[_0x2052bc(0x2e1)](_0xf5ed98);}),program[a2_0x3e7974(0xf2)]('context')['description'](a2_0x3e7974(0x1f0))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1e6),a2_0x3e7974(0x249))[a2_0x3e7974(0x20f)](async _0x378bbf=>{const _0x4bdfcc=a2_0x3e7974,_0x905835=new ContextCommand(),_0x3891da=program[_0x4bdfcc(0x198)](),_0x1f419c=await _0x905835[_0x4bdfcc(0x259)]({'options':{..._0x3891da,..._0x378bbf},'args':[],'tdx':null});process['exit'](_0x1f419c);}),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x10c))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2ae))['option'](a2_0x3e7974(0x1e6),'Clear\x20session\x20context')[a2_0x3e7974(0x20f)](async(_0x3787b5,_0x181f52,_0x1a85e6)=>{const _0x3c3de0=a2_0x3e7974,_0x705083=new UseCommand(),_0x3dfee3=program[_0x3c3de0(0x198)](),_0x6f1b92=[];if(_0x3787b5)_0x6f1b92[_0x3c3de0(0x105)](_0x3787b5);if(_0x181f52)_0x6f1b92[_0x3c3de0(0x105)](_0x181f52);const _0x1aeb82=await _0x705083['run']({'options':{..._0x3dfee3,..._0x1a85e6},'args':_0x6f1b92,'tdx':null});process[_0x3c3de0(0x2e1)](_0x1aeb82);}),program[a2_0x3e7974(0xf2)]('chats')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1bd))['option']('--last','Show\x20the\x20most\x20recent\x20chat')['action'](async _0x320fa1=>{const _0x27e029=a2_0x3e7974,_0xe3f76f=new ChatsCommand(),_0x923849=program[_0x27e029(0x198)](),_0x503c17=await createTDXInstance(_0x923849),_0x2f025f=await _0xe3f76f[_0x27e029(0x259)]({'options':{..._0x923849,..._0x320fa1},'args':[],'tdx':_0x503c17});process[_0x27e029(0x2e1)](_0x2f025f);});function a2_0x5e2e(_0x4fc92a,_0x452ecd){_0x4fc92a=_0x4fc92a-0xd4;const _0x29622d=a2_0x2962();let _0x5e2e11=_0x29622d[_0x4fc92a];return _0x5e2e11;}const authCmd=program['command'](a2_0x3e7974(0x1aa))['description'](a2_0x3e7974(0x12c));async function runAuthStatusCommand(_0x359682){const _0x5c88ac=a2_0x3e7974,_0x30b264=new AuthStatusCommand(),_0x3c5167=program['opts'](),_0x28c346=await createTDXInstance(_0x3c5167),_0x44723c=await _0x30b264[_0x5c88ac(0x259)]({'options':{..._0x3c5167,..._0x359682},'args':[],'tdx':_0x28c346});process['exit'](_0x44723c);}authCmd[a2_0x3e7974(0x20f)](runAuthStatusCommand),authCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1ec))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x27d))['action'](runAuthStatusCommand),authCmd[a2_0x3e7974(0xf2)]('setup')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x132))['addHelpText']('after',a2_0x3e7974(0x21e))[a2_0x3e7974(0x20f)](async _0x49664e=>{const _0x4eb191=a2_0x3e7974,_0x41cb5e=new AuthSetupCommand(),_0x395a62=program[_0x4eb191(0x198)](),_0x12f5c5=await createTDXInstance(_0x395a62),_0x600d38=await _0x41cb5e[_0x4eb191(0x259)]({'options':{..._0x395a62,..._0x49664e},'args':[],'tdx':_0x12f5c5});process[_0x4eb191(0x2e1)](_0x600d38);}),authCmd['command']('clear')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x17b))[a2_0x3e7974(0x1b8)](a2_0x3e7974(0xf0),a2_0x3e7974(0x1b0))[a2_0x3e7974(0x20f)](async _0x56b3ab=>{const _0x293d31=a2_0x3e7974,_0x275354=new AuthClearCommand(),_0x479314=program['opts'](),_0xc12817=await _0x275354[_0x293d31(0x259)]({'options':{..._0x479314,..._0x56b3ab},'args':[],'tdx':null});process['exit'](_0xc12817);});const userCmd=program['command'](a2_0x3e7974(0x126))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x29a)),userListAction=async _0x5c603c=>{const _0x436584=a2_0x3e7974,_0x2080c8=new UserListCommand(),_0x134e7c=program['opts'](),_0x3fa487=await createTDXInstance(_0x134e7c),_0xd66cad=await _0x2080c8['run']({'options':{..._0x134e7c,..._0x5c603c},'args':[],'tdx':_0x3fa487});process[_0x436584(0x2e1)](_0xd66cad);};userCmd[a2_0x3e7974(0x20f)](async _0x52c08a=>{const _0x462afd=a2_0x3e7974,_0xbe21d6=new UserCommand(),_0x182eee=program[_0x462afd(0x198)](),_0x557cd8=await createTDXInstance(_0x182eee),_0x2e8aa5=await _0xbe21d6[_0x462afd(0x259)]({'options':{..._0x182eee,..._0x52c08a},'args':[],'tdx':_0x557cd8});process[_0x462afd(0x2e1)](_0x2e8aa5);}),userCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x29d))['description'](a2_0x3e7974(0x228))[a2_0x3e7974(0x20f)](userListAction),program[a2_0x3e7974(0xf2)]('users')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x265))[a2_0x3e7974(0x20f)](userListAction),program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x268))[a2_0x3e7974(0x22e)]('List\x20all\x20available\x20profiles')[a2_0x3e7974(0x20f)](async _0x4616e5=>{const _0xeabd2f=a2_0x3e7974,_0x5d222e=new ProfilesCommand(),_0x2c44e1=program[_0xeabd2f(0x198)](),_0x4fed11=await _0x5d222e['run']({'options':{..._0x2c44e1,..._0x4616e5},'args':[],'tdx':null});process['exit'](_0x4fed11);});const engageCmd=program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1fa))['description'](a2_0x3e7974(0x20d)),createEngageAction=_0x1232c5=>{return async(_0x50d03b,_0x1fd6ea)=>{const _0x2eba14=a2_0x5e2e,_0x530ac5=new _0x1232c5(),_0x798d35=program[_0x2eba14(0x198)](),_0x2dd37a=await createTDXInstance(_0x798d35),_0x37fc81=await _0x530ac5[_0x2eba14(0x259)]({'options':{..._0x798d35,..._0x1fd6ea},'args':[_0x50d03b],'tdx':_0x2dd37a});process[_0x2eba14(0x2e1)](_0x37fc81);};},createEngageNoArgAction=_0x48da22=>{return async _0x42eabf=>{const _0x2a718b=a2_0x5e2e,_0x5aedc2=new _0x48da22(),_0x49622a=program[_0x2a718b(0x198)](),_0x20cbc7=await createTDXInstance(_0x49622a),_0x1b00ca=await _0x5aedc2[_0x2a718b(0x259)]({'options':{..._0x49622a,..._0x42eabf},'args':[],'tdx':_0x20cbc7});process['exit'](_0x1b00ca);};},campaignCmd=engageCmd[a2_0x3e7974(0xf2)]('campaign')[a2_0x3e7974(0x22e)]('Campaign\x20management'),campaignListAction=async(_0x5a2bff,_0x93c0fa)=>{const _0x5cef59=a2_0x3e7974,_0x2f1911=new EngageCampaignsCommand(),_0x27334b=program[_0x5cef59(0x198)](),_0x362555=await createTDXInstance(_0x27334b),_0x164b12=await _0x2f1911[_0x5cef59(0x259)]({'options':{..._0x27334b,..._0x93c0fa},'args':_0x5a2bff?[_0x5a2bff]:[],'tdx':_0x362555});process[_0x5cef59(0x2e1)](_0x164b12);};campaignCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x27b))['description'](a2_0x3e7974(0x2be))['option'](a2_0x3e7974(0x25e),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x3e7974(0x187)]('--status\x20<status>',a2_0x3e7974(0xfc))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),a2_0x3e7974(0x199))[a2_0x3e7974(0x20f)](campaignListAction),engageCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x11a))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x1cf))[a2_0x3e7974(0x187)](a2_0x3e7974(0x25e),a2_0x3e7974(0x18d))[a2_0x3e7974(0x187)]('--status\x20<status>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),a2_0x3e7974(0x199))[a2_0x3e7974(0x20f)](campaignListAction),campaignCmd[a2_0x3e7974(0xf2)]('show\x20<name-or-id>')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x283))[a2_0x3e7974(0x187)]('--workspace\x20<name>',a2_0x3e7974(0x199))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2b5),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3e7974(0x20f)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x151))[a2_0x3e7974(0x22e)]('Create\x20a\x20new\x20campaign')[a2_0x3e7974(0x236)](a2_0x3e7974(0x1a6),a2_0x3e7974(0x152))[a2_0x3e7974(0x236)](a2_0x3e7974(0x25e),'Campaign\x20type\x20(email\x20or\x20push)')['option'](a2_0x3e7974(0xe1),'Workspace\x20name\x20(required)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x1cb),a2_0x3e7974(0x28b))[a2_0x3e7974(0x187)](a2_0x3e7974(0x284),a2_0x3e7974(0x1d0))[a2_0x3e7974(0x187)](a2_0x3e7974(0x27c),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x3e7974(0x187)](a2_0x3e7974(0x1a5),a2_0x3e7974(0x18a))['option']('--start-at\x20<datetime>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x24f),a2_0x3e7974(0x125))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3e7974(0xf2)]('update\x20<name-or-id>')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x129))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),a2_0x3e7974(0x199))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1a6),a2_0x3e7974(0xe9))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1cb),a2_0x3e7974(0x28b))['option'](a2_0x3e7974(0x284),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x3e7974(0x187)](a2_0x3e7974(0x27c),a2_0x3e7974(0x22a))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1a5),a2_0x3e7974(0x18a))[a2_0x3e7974(0x187)]('--start-at\x20<datetime>',a2_0x3e7974(0x14f))[a2_0x3e7974(0x187)](a2_0x3e7974(0x24f),a2_0x3e7974(0x125))[a2_0x3e7974(0x20f)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1d2))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x263))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),a2_0x3e7974(0x199))[a2_0x3e7974(0x187)](a2_0x3e7974(0x133),a2_0x3e7974(0x2c5))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x3e7974(0xf2)]('launch\x20<name-or-id>')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x146))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),a2_0x3e7974(0x199))[a2_0x3e7974(0x20f)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x209))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x23f))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),a2_0x3e7974(0x199))[a2_0x3e7974(0x20f)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x253))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x245))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),a2_0x3e7974(0x199))[a2_0x3e7974(0x20f)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1eb))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x2f1))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),'Workspace\x20name')[a2_0x3e7974(0x20f)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3e7974(0xf2)]('template')['description']('Email\x20template\x20management'),templateListAction=async(_0x21e99a,_0x2266e2)=>{const _0xef4d73=a2_0x3e7974,_0x1f1f96=new EngageTemplatesCommand(),_0x4befd4=program[_0xef4d73(0x198)](),_0x36df05=await createTDXInstance(_0x4befd4),_0x193a41=await _0x1f1f96[_0xef4d73(0x259)]({'options':{..._0x4befd4,..._0x2266e2},'args':_0x21e99a?[_0x21e99a]:[],'tdx':_0x36df05});process[_0xef4d73(0x2e1)](_0x193a41);};templateCmd['command']('list\x20[pattern]')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x21b))[a2_0x3e7974(0x187)]('--workspace\x20<name>','Workspace\x20name')[a2_0x3e7974(0x20f)](templateListAction),engageCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x19c))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x271))[a2_0x3e7974(0x187)]('--workspace\x20<name>',a2_0x3e7974(0x199))[a2_0x3e7974(0x20f)](templateListAction),templateCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x190))['description']('Show\x20email\x20template\x20details')[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),'Workspace\x20name')[a2_0x3e7974(0x187)](a2_0x3e7974(0x2b5),a2_0x3e7974(0x1de))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x151))['description'](a2_0x3e7974(0x277))['requiredOption'](a2_0x3e7974(0x1a6),'Template\x20name')['requiredOption'](a2_0x3e7974(0x135),'Email\x20subject\x20template')[a2_0x3e7974(0x236)](a2_0x3e7974(0x11d),a2_0x3e7974(0x2a0))[a2_0x3e7974(0x187)]('--workspace\x20<name>',a2_0x3e7974(0xe7))[a2_0x3e7974(0x187)](a2_0x3e7974(0x24b),a2_0x3e7974(0x2f4))['option'](a2_0x3e7974(0x1bf),a2_0x3e7974(0x11e))[a2_0x3e7974(0x20f)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3e7974(0xf2)]('update\x20<name-or-id>')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x16f))[a2_0x3e7974(0x187)](a2_0x3e7974(0xe1),a2_0x3e7974(0x199))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1a6),a2_0x3e7974(0x29f))[a2_0x3e7974(0x187)](a2_0x3e7974(0x135),a2_0x3e7974(0x175))['option'](a2_0x3e7974(0x11d),a2_0x3e7974(0x2a0))['option'](a2_0x3e7974(0x24b),a2_0x3e7974(0x2f4))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1d2))[a2_0x3e7974(0x22e)]('Delete\x20an\x20email\x20template')['option'](a2_0x3e7974(0xe1),'Workspace\x20name')[a2_0x3e7974(0x187)](a2_0x3e7974(0x133),a2_0x3e7974(0x2c5))[a2_0x3e7974(0x20f)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')['description'](a2_0x3e7974(0x2ab)),workspaceListAction=async(_0x1160b2,_0x5ba8ee)=>{const _0x5d7bb3=a2_0x3e7974,_0x1b81b9=new EngageWorkspacesCommand(),_0x1b8cfc=program[_0x5d7bb3(0x198)](),_0x5d6bff=await createTDXInstance(_0x1b8cfc),_0x29063f=await _0x1b81b9[_0x5d7bb3(0x259)]({'options':{..._0x1b8cfc,..._0x5ba8ee},'args':_0x1160b2?[_0x1160b2]:[],'tdx':_0x5d6bff});process[_0x5d7bb3(0x2e1)](_0x29063f);};workspaceCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x27b))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x12d))[a2_0x3e7974(0x20f)](workspaceListAction),engageCmd['command'](a2_0x3e7974(0x2e0))['description'](a2_0x3e7974(0x1bc))[a2_0x3e7974(0x20f)](workspaceListAction),workspaceCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x190))['description']('Show\x20workspace\x20details')['option'](a2_0x3e7974(0x2b5),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x151))[a2_0x3e7974(0x22e)]('Create\x20a\x20workspace')[a2_0x3e7974(0x236)](a2_0x3e7974(0x1a6),'Workspace\x20name')[a2_0x3e7974(0x187)]('--description\x20<desc>',a2_0x3e7974(0xf9))[a2_0x3e7974(0x20f)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x18b))[a2_0x3e7974(0x22e)](a2_0x3e7974(0xee))['option']('--name\x20<name>',a2_0x3e7974(0x296))[a2_0x3e7974(0x187)](a2_0x3e7974(0x1cb),a2_0x3e7974(0xf9))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x1d2))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x115))[a2_0x3e7974(0x187)](a2_0x3e7974(0x133),'Skip\x20confirmation\x20prompt')[a2_0x3e7974(0x20f)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2c9))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x286))['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2e7))['description'](a2_0x3e7974(0x214)),connectionListAction=async _0x641b9=>{const _0x58d349=a2_0x3e7974,_0x33b795=new ConnectionListCommand(),_0x1ec173=program[_0x58d349(0x198)](),_0x222216=await createTDXInstance(_0x1ec173),_0x283c05=await _0x33b795[_0x58d349(0x259)]({'options':{..._0x1ec173,..._0x641b9},'args':[],'tdx':_0x222216});process[_0x58d349(0x2e1)](_0x283c05);};connectionCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x29d))['description']('List\x20all\x20data\x20connections')['action'](connectionListAction),program[a2_0x3e7974(0xf2)]('connections',{'hidden':!![]})['description'](a2_0x3e7974(0x21d))[a2_0x3e7974(0x20f)](connectionListAction),connectionCmd[a2_0x3e7974(0xf2)]('show\x20<name>')[a2_0x3e7974(0x22e)](a2_0x3e7974(0xd5))[a2_0x3e7974(0x20f)](async(_0x4a1885,_0x5c490a)=>{const _0xbf460d=a2_0x3e7974,_0x41ed7c=new ConnectionShowCommand(),_0x335e44=program[_0xbf460d(0x198)](),_0x451e43=await createTDXInstance(_0x335e44),_0x389070=await _0x41ed7c[_0xbf460d(0x259)]({'options':{..._0x335e44,..._0x5c490a},'args':[_0x4a1885],'tdx':_0x451e43});process[_0xbf460d(0x2e1)](_0x389070);});const journeyCmd=program[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2e9))[a2_0x3e7974(0x22e)]('CDP\x20Journey\x20Orchestration\x20commands');journeyCmd[a2_0x3e7974(0xf2)]('list\x20[pattern]')['description']('List\x20journeys\x20in\x20current\x20context')[a2_0x3e7974(0x20f)](async(_0x2b5be0,_0x156f81)=>{const _0x3facb2=a2_0x3e7974,_0x306337=new JourneyListCommand(),_0x28b641=program['opts'](),_0x33a5f6=await createTDXInstance(_0x28b641),_0x3ea239=await _0x306337[_0x3facb2(0x259)]({'options':{..._0x28b641,..._0x156f81},'args':_0x2b5be0?[_0x2b5be0]:[],'tdx':_0x33a5f6});process[_0x3facb2(0x2e1)](_0x3ea239);}),journeyCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x2b7))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x127))[a2_0x3e7974(0x187)]('--include-stats',a2_0x3e7974(0x264))['action'](async(_0x254b6c,_0xd7624e)=>{const _0x3bc3ac=a2_0x3e7974,_0x145177=new JourneyViewCommand(),_0x3ec788=program['opts'](),_0x48d521=await createTDXInstance(_0x3ec788),_0x579bf6=await _0x145177[_0x3bc3ac(0x259)]({'options':{..._0x3ec788,..._0xd7624e},'args':[_0x254b6c],'tdx':_0x48d521});process['exit'](_0x579bf6);}),journeyCmd['command'](a2_0x3e7974(0x174))[a2_0x3e7974(0x22e)]('Show\x20journey\x20statistics')['option'](a2_0x3e7974(0x10a),a2_0x3e7974(0x287))[a2_0x3e7974(0x20f)](async(_0x3b3a4b,_0x373b44)=>{const _0x5a204f=a2_0x3e7974,_0x3e747f=new JourneyStatsCommand(),_0x5ebc73=program['opts'](),_0xa4d49c=await createTDXInstance(_0x5ebc73),_0x1cae1b=await _0x3e747f['run']({'options':{..._0x5ebc73,..._0x373b44},'args':[_0x3b3a4b],'tdx':_0xa4d49c});process[_0x5a204f(0x2e1)](_0x1cae1b);}),journeyCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x110))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x215))[a2_0x3e7974(0x20f)](async(_0x1c82da,_0xc38d0f)=>{const _0x18103f=a2_0x3e7974,_0x1bbe3e=new JourneyPauseCommand(),_0x42a761=program[_0x18103f(0x198)](),_0x5b302b=await createTDXInstance(_0x42a761),_0x527163=await _0x1bbe3e['run']({'options':{..._0x42a761,..._0xc38d0f},'args':[_0x1c82da],'tdx':_0x5b302b});process['exit'](_0x527163);}),journeyCmd[a2_0x3e7974(0xf2)](a2_0x3e7974(0x211))[a2_0x3e7974(0x22e)](a2_0x3e7974(0x182))[a2_0x3e7974(0x20f)](async(_0x248f24,_0x3a6c5a)=>{const _0x240738=a2_0x3e7974,_0x2bd3fe=new JourneyResumeCommand(),_0x5466ee=program[_0x240738(0x198)](),_0x51effe=await createTDXInstance(_0x5466ee),_0xd10dd=await _0x2bd3fe['run']({'options':{..._0x5466ee,..._0x3a6c5a},'args':[_0x248f24],'tdx':_0x51effe});process[_0x240738(0x2e1)](_0xd10dd);}),journeyCmd['command']('pull\x20[name]')[a2_0x3e7974(0x22e)](a2_0x3e7974(0x138))[a2_0x3e7974(0x187)]('-y,\x20--yes',a2_0x3e7974(0x2c5))[a2_0x3e7974(0x187)](a2_0x3e7974(0x2d0),a2_0x3e7974(0x1dc))[a2_0x3e7974(0x20f)](async(_0x247380,_0x11fa94)=>{const _0x94fbe7=a2_0x3e7974,_0x53dec4=new JourneyPullCommand(),_0x3b5a42=program[_0x94fbe7(0x198)](),_0x3fb5bf=await createTDXInstance(_0x3b5a42),_0x174cac=await _0x53dec4[_0x94fbe7(0x259)]({'options':{..._0x3b5a42,..._0x11fa94},'args':_0x247380?[_0x247380]:[],'tdx':_0x3fb5bf});process['exit'](_0x174cac);});export{program};export function runCLI(){const _0xfaab9c=a2_0x3e7974;program[_0xfaab9c(0x244)](process[_0xfaab9c(0x25c)]);!process['argv'][_0xfaab9c(0x232)](0x2)['length']&&program[_0xfaab9c(0xd8)]();const _0x3aee97=packageJson[_0xfaab9c(0x242)];process[_0xfaab9c(0x2db)][_0xfaab9c(0x239)]&&process[_0xfaab9c(0x25c)][_0xfaab9c(0x1e1)]>0x2&&!_0x3aee97[_0xfaab9c(0x2bd)]('.dev')&&checkForUpdate(_0x3aee97)[_0xfaab9c(0x161)](_0x405ef7=>{_0x405ef7&&displayUpdateNotification(_0x405ef7);})[_0xfaab9c(0x1c8)](()=>{});}
1
+ const a2_0x1b5714=a2_0x5e81;(function(_0x5c18b5,_0x21867f){const _0x486cc6=a2_0x5e81,_0x892e0f=_0x5c18b5();while(!![]){try{const _0x517f3d=-parseInt(_0x486cc6(0x92))/0x1+parseInt(_0x486cc6(0x21b))/0x2+-parseInt(_0x486cc6(0x186))/0x3+parseInt(_0x486cc6(0x1c8))/0x4*(-parseInt(_0x486cc6(0x145))/0x5)+parseInt(_0x486cc6(0x11d))/0x6+parseInt(_0x486cc6(0x27d))/0x7+-parseInt(_0x486cc6(0x18b))/0x8*(-parseInt(_0x486cc6(0xb4))/0x9);if(_0x517f3d===_0x21867f)break;else _0x892e0f['push'](_0x892e0f['shift']());}catch(_0x5920c0){_0x892e0f['push'](_0x892e0f['shift']());}}}(a2_0x32b7,0x874fb));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,a2_0x1b5714(0x1ad)),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0x1b5714(0x1c6)](readFileSync(join(__dirname,a2_0x1b5714(0x168)),a2_0x1b5714(0x20a)));}catch{}if(process[a2_0x1b5714(0x9e)][a2_0x1b5714(0x108)](a2_0x1b5714(0xb1))){let versionOutput=a2_0x1b5714(0x1e7)+packageJson['version'];buildInfo[a2_0x1b5714(0x228)]&&(versionOutput+='\x20('+buildInfo[a2_0x1b5714(0x228)]+')'),buildInfo[a2_0x1b5714(0xff)]&&(versionOutput+=a2_0x1b5714(0x205)+buildInfo[a2_0x1b5714(0xff)]),console['log'](versionOutput),process[a2_0x1b5714(0x98)](0x0);}const program=new Command();let description=a2_0x1b5714(0x18e);buildInfo[a2_0x1b5714(0x228)]?description+=',\x20version\x20'+packageJson[a2_0x1b5714(0x107)]+'\x20('+buildInfo[a2_0x1b5714(0x228)]+')':description+=a2_0x1b5714(0x144)+packageJson[a2_0x1b5714(0x107)];function a2_0x32b7(){const _0x5c26e0=['create\x20<name>','Show\x20campaign\x20details','Show\x20email\x20template\x20details','Output\x20file\x20path\x20(default:\x20<name>.yml)','--session\x20<id>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','outputHelp','info\x20[segment_name]','DEBUG','site','set','--param\x20<key=value>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--output\x20<file>','create\x20<segment_name>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20available\x20LLM\x20models','Delete\x20an\x20LLM\x20project','--description\x20<desc>','Resume\x20from\x20specific\x20task\x20(retry)','Behaviors\x20as\x20JSON\x20string','Trino\x20catalog\x20(default:\x20td)','Open\x20parent\x20segment\x20in\x20web\x20browser','Email\x20sender\x20ID\x20for\x20delivery','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','push\x20[parent_or_file]','../package.json','llm','delete\x20<project-name-or-id>','--in\x20<name>','claude-4.5-sonnet','--model\x20<name>','project','delete\x20<name-or-id>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Workspace\x20description','End\x20time\x20filter\x20(ISO\x208601\x20format)','sql\x20[name]','--database\x20<db>','backup\x20<name>','-r,\x20--resume','List\x20all\x20data\x20connections','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','desc\x20[segment_name]','get','description','workspaces\x20[pattern]','Database\x20management\x20commands','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--start-at\x20<datetime>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','parse','_hidden','1732lqPaXC','Arguments:','slice','--dry-run','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','action','usage','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','history\x20[chat-id]','--revision\x20<revision>','--system-prompt\x20<text>','Resume\x20a\x20paused\x20journey','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','use\x20<name>','name','--starter-message\x20<text>','trace','show\x20<name-or-id>','update\x20<segment_name>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','[attempt-id]','Updated\x20schedule\x20option','--master','-X,\x20--method\x20<method>','--json-columns\x20<cols>','list\x20[pattern]','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--project\x20<name>','--llm-project\x20<name>','--attributes\x20<json>','Usage:\x20','tdx\x20','Create\x20segment\x20folder','--no-count-population','--schedule-type\x20<type>','use\x20<project-name>','agents\x20[pattern]','users','chats','campaigns\x20[pattern]','stdout','Read\x20query\x20from\x20file','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--name\x20<name>','--color','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--new','Create\x20a\x20workspace','session','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','databases\x20[pattern]','Launch\x20a\x20campaign','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','workflows\x20[project]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','New\x20campaign\x20name','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','-v,\x20--verbose','alias','\x20-\x20built\x20','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','New\x20workspace\x20name','hook','--include-stats','utf-8','-r,\x20--recursive','--prompt\x20<text>','--delete','pull\x20[parent_or_file]','.dev','--status\x20<status>','json','Agent\x20description','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Segment\x20description','show\x20<folder_ref>','Campaign\x20description','--name\x20<new-name>','jsonl','sonnet','Campaign\x20type\x20(email\x20or\x20push)','272574AeWiPC','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Show\x20the\x20most\x20recent\x20chat','--rule\x20<json>','padEnd','--site\x20<site>','configureHelp','after','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Kill\x20a\x20job','-d,\x20--database\x20<name>','--segment\x20<path>','--data\x20<data>','gitRevision','use\x20[name]','--add-attributes-file\x20<file>','Master\x20table\x20name','CDP\x20segment\x20management\x20commands','Starter\x20message','Create\x20a\x20new\x20LLM\x20project','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','--agent\x20<name>','kill','CDP\x20Journey\x20Orchestration\x20commands','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','tasks','Workflow\x20(Digdag)\x20management\x20commands','Get\x20job\x20results','Parent\x20folder\x20name\x20for\x20nested\x20folders','List\x20all\x20available\x20profiles','push','--email-sender-id\x20<id>','list','argumentTerm','workflow','Workflow\x20project\x20management','desc','--add-behaviors\x20<json>','isArray','preview\x20[name]','Master\x20database\x20name','error','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','describe','list\x20[project]','template','command','update\x20<name-or-id>','--interval\x20<range>','--rule-file\x20<file>','format','--include-subtasks','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','validate\x20[name]','-u,\x20--use','tdx','activations\x20<segment_name>','--behavior\x20[name]','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Template\x20name','--type\x20<type>','Pull\x20child\x20segments\x20to\x20YAML\x20files','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Email\x20subject\x20template','Show\x20job\x20details','4000','aliases','--params\x20<json>','run','optionDescription','create','Continue\x20most\x20recent\x20conversation','view\x20[segment_name]','Database\x20to\x20query\x20(default:\x20information_schema)','Task\x20name\x20for\x20logs\x20action','submit\x20[query]','update\x20<agent-name>','jobs','port','-y,\x20--yes','--table','tables\x20[pattern]','argument','noColor','Maximum\x20tool\x20iterations\x20(default:\x204)','Open\x20segment\x20in\x20web\x20browser','Update\x20an\x20email\x20template','--limit\x20<number>','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','0.7','commands','delete\x20<agent-name>','Skip\x20confirmation\x20prompt','Delete\x20an\x20agent','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--json','7015925NvAUpQ','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Output\x20as\x20JSON','--clear','--parent-folder\x20<name>','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','optionTerm','Parent\x20segment\x20description','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','allowUnknownOption','database','join','Force\x20retry\x20even\x20if\x20not\x20failed','--parent-segment\x20<name>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','List\x20journeys\x20in\x20current\x20context','Limit\x20number\x20of\x20rows','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Interactive\x20chat\x20selector','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','run\x20[name]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Export\x20journey(s)\x20as\x20YAML\x20files','Plaintext\x20template\x20content','LLM\x20agent\x20management','--debug','options','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','auth','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Attributes\x20from\x20JSON\x20file','-w,\x20--web','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','LLM\x20project\x20management','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Resume\x20a\x20conversation\x20(shows\x20selector)','agent','addHelpText','--include-retried','Setup\x20API\x20key\x20authentication\x20interactively','--add-behaviors-file\x20<file>','\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','journey','740898ZfVrXi','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Set\x20operation\x20timeout\x20in\x20seconds','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','restore\x20<folder>','New\x20template\x20name','exit','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Project\x20description','--table\x20<table>','commandUsage','update\x20<name>','argv','[DEPRECATED]\x20Segment\x20folder\x20management','projects\x20[pattern]','validate\x20[file]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','show\x20<agent-name>','--from\x20<timestamp>','Database\x20name\x20(default:\x20information_schema)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--html\x20<html>','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','folders\x20<parent_name>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','opts','repeat','parent-segment','us01','parent','engage','--version','isTTY','--attribute\x20[name]','10132137ajRIvK','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--jsonl','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Describe\x20table\x20schema','List\x20all\x20users\x20in\x20the\x20account','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','profiles','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','--limit\x20<rows>','Show\x20workspace\x20details','Create\x20a\x20new\x20campaign','--temperature\x20<n>','createAsync','--max-depth\x20<depth>','Clear\x20session\x20context','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Delete\x20an\x20email\x20template','resume\x20<name-or-id>','retry','Attributes\x20as\x20JSON\x20string','Reason\x20for\x20killing\x20the\x20attempt','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','-d,\x20--database\x20<database>','Include\x20subtasks\x20in\x20tasks\x20output','--no-color','stats\x20<name-or-path>','pull\x20[name]','segment','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','[task-name]','--customer-group-file\x20<file>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','launch\x20<name-or-id>','Add\x20behaviors\x20from\x20JSON\x20file','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--behaviors\x20<json>','Filtering\x20rule\x20from\x20JSON\x20file','Output\x20as\x20JSON\x20Lines','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','--trace','Skip\x20confirmation\x20prompts','subcommandTerm','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','--to\x20<timestamp>','map','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','summary','--timezone\x20<tz>','Agent\x20name','--schedule-option\x20<value>','desc\x20[name]','run\x20<workflow>','forEach','subcommandDescription','Add\x20attributes\x20as\x20JSON\x20string','-1d','--port\x20<number>','--name\x20<text>','List\x20jobs','Workspace\x20management','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--description\x20<text>','help','Data\x20connection\x20management\x20(for\x20activations/exports)','workspace','--job-type\x20<type>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','buildTime','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','hidden','--attributes-file\x20<file>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Resume\x20from\x20specific\x20task','version','includes','--reason\x20<text>','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--in\x20<database>','GET','Output\x20file\x20path','Include\x20execution\x20statistics','table','show\x20<name>','Parent\x20segment\x20management','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','templates\x20[pattern]','-H,\x20--header\x20<header>','Read\x20SQL\x20query\x20from\x20file','Update\x20a\x20workspace','--subject\x20<subject>','setup','Folder\x20name\x20for\x20organization','Updated\x20description','colorFn','4158906slzrqZ','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','--stage\x20<name>','download\x20<project-name>\x20[output-dir]','logLevel','Update\x20an\x20existing\x20agent','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','[options]\x20--\x20[claude-code-args...]','Delete\x20a\x20campaign','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--format\x20<format>','Show\x20journey\x20statistics','list\x20[path]','Show\x20master\x20table\x20sample\x20data','System\x20prompt/instructions\x20(default:\x20empty)','-p,\x20--profile\x20<name>','show\x20[table]','New\x20segment\x20name','tsv','--resume-from\x20<task>','Table\x20management\x20commands','HTML\x20template\x20content','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--kind\x20<type>','Update\x20a\x20campaign','Workspace\x20name','Add\x20behaviors\x20as\x20JSON\x20string','--session-time\x20<time>','Delete\x20a\x20workspace','Campaign\x20name','connection','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--agent\x20<ref>','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','statusline','--database\x20<name>','apiKey',',\x20version\x20','12625iJwpKa','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Folder\x20description','trino','Editor\x20type','Show\x20agent\x20details','Show\x20segment\x20details\x20(alias\x20for\x20view)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--max-tool-iterations\x20<n>','-f,\x20--file\x20<path>','Show\x20segment\x20schema\x20(column\x20types)','query\x20[sql]','Show\x20web\x20console\x20URLs\x20for\x20segments','Create\x20an\x20email\x20template','Updated\x20timezone','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','-o,\x20--output\x20<file>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','length','registeredArguments','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Maximum\x20recursion\x20depth\x20(default:\x2010)','option','campaign','--add-attributes\x20<json>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--yes','context','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','use\x20[resource]\x20[value]','Show\x20only\x20master\x20table\x20validation','Workspace\x20name\x20(required)','--enriched','stderr','build-info.json','-o,\x20--output\x20<folder>','--catalog\x20<catalog>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Move\x20to\x20folder','Filtering\x20rule\x20as\x20JSON\x20string','--timeout\x20<seconds>','--plaintext\x20<text>','argumentDescription','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--workspace\x20<name>','Save\x20output\x20to\x20file','allowExcessArguments','--full','Workflow\x20parameter\x20(repeatable)','Skip\x20validation\x20of\x20.dig\x20files','parents\x20[pattern]','filter','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--last','Show\x20connection\x20details\x20by\x20name','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','--customer-group\x20<json>','--force','Database\x20to\x20use\x20(overrides\x20context)','attempt','padWidth','job','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','1707144GDUOnm','Email\x20template\x20management','--folder\x20<name>','Job\x20management\x20commands','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','8epRUKS','--invisible','attempts\x20[project]','AI-native\x20CLI\x20for\x20Treasure\x20Data','flatMap','user','requiredOption'];a2_0x32b7=function(){return _0x5c26e0;};return a2_0x32b7();}program[a2_0x1b5714(0x1d6)](a2_0x1b5714(0x253))[a2_0x1b5714(0x1c0)](description),program[a2_0x1b5714(0x15b)](a2_0x1b5714(0x12d),a2_0x1b5714(0x233))['option'](a2_0x1b5714(0x220),a2_0x1b5714(0x27b),a2_0x1b5714(0xae))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x128),a2_0x1b5714(0x1c5))['option'](a2_0x1b5714(0x26d),a2_0x1b5714(0xb7))['option'](a2_0x1b5714(0x27c),a2_0x1b5714(0x156))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xb6),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x1b5714(0x15b)]('--tsv',a2_0x1b5714(0x103))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1a0),a2_0x1b5714(0x174))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x274),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1f4),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x1b5714(0x15b)](a2_0x1b5714(0xcd),a2_0x1b5714(0x1fb),![])[a2_0x1b5714(0x15b)](a2_0x1b5714(0x203),'Enable\x20verbose\x20logging',![])[a2_0x1b5714(0x15b)](a2_0x1b5714(0x80),a2_0x1b5714(0x112))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xde),a2_0x1b5714(0x105))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x16f),a2_0x1b5714(0x94),'30')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1cb),'Preview\x20operation\x20without\x20executing',![])[a2_0x1b5714(0x15b)](a2_0x1b5714(0x26c),a2_0x1b5714(0xdf),![])['option'](a2_0x1b5714(0x196),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x225),a2_0x1b5714(0x181))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1b0),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x73),a2_0x1b5714(0xd7))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1e4),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x1b5714(0x221)]({'formatHelp':(_0x13eac1,_0x321dff)=>{const _0x3f2b9b=a2_0x1b5714,_0x13d1fc=_0x321dff[_0x3f2b9b(0x183)](_0x13eac1,_0x321dff),_0x2ec78=0x2,_0x3570ea=0x2;function _0x154c4f(_0x5d4823){const _0x3cd734=_0x3f2b9b,_0x464fcd=_0x5d4823;return!!(_0x464fcd[_0x3cd734(0x1c7)]||_0x464fcd[_0x3cd734(0x101)]);}function _0x20c518(_0x1428fd,_0x2646eb){const _0x8735b=_0x3f2b9b;if(_0x2646eb){const _0x2d6a0b=''+_0x1428fd[_0x8735b(0x21f)](_0x13d1fc+_0x3570ea)+_0x2646eb;return _0x2d6a0b;}return _0x1428fd;}function _0x45bcfb(_0x5cdff3){const _0xda0e15=_0x3f2b9b;return _0x5cdff3['join']('\x0a')['replace'](/^/gm,'\x20'[_0xda0e15(0xac)](_0x2ec78));}const _0x36b730=[];_0x36b730['push'](_0x3f2b9b(0x1e6)+_0x321dff[_0x3f2b9b(0x9c)](_0x13eac1));const _0x29c286=_0x321dff['commandDescription'](_0x13eac1);_0x29c286&&(_0x36b730[_0x3f2b9b(0x239)](''),_0x36b730[_0x3f2b9b(0x239)](_0x29c286));const _0x2812e8=_0x13eac1[_0x3f2b9b(0x277)]['filter'](_0xe2cff3=>!_0x154c4f(_0xe2cff3));if(_0x2812e8['length']>0x0){if(_0x13eac1['name']()==='tdx'){const _0x31e509=_0x13eac1[_0x3f2b9b(0xab)](),_0x33fb6d=!_0x31e509[_0x3f2b9b(0x270)]&&process[_0x3f2b9b(0x1f0)][_0x3f2b9b(0xb2)],_0x282374=COMMAND_CATEGORIES,_0x20f790=(_0x15c4df,_0x57bad2)=>_0x33fb6d?_0x57bad2(_0x15c4df):_0x15c4df,_0x506ec7=new Map();_0x2812e8[_0x3f2b9b(0xeb)](_0xde8ddc=>{const _0xab2da6=_0x3f2b9b;_0x506ec7[_0xab2da6(0x19c)](_0xde8ddc[_0xab2da6(0x1d6)](),_0xde8ddc);}),_0x282374[_0x3f2b9b(0xeb)](_0x579e4e=>{const _0x273616=_0x3f2b9b,_0x219ea1=_0x579e4e[_0x273616(0x277)][_0x273616(0x18f)](_0x395f8c=>_0x506ec7[_0x273616(0x1bf)](_0x395f8c)??[]);if(_0x219ea1[_0x273616(0x157)]>0x0){_0x36b730['push'](''),_0x36b730[_0x273616(0x239)](_0x20f790(_0x579e4e[_0x273616(0x1d6)]+':',_0x579e4e[_0x273616(0x11c)]));const _0x5356f9=_0x219ea1[_0x273616(0xe3)](_0x2b1cb4=>{const _0x2eb3b9=_0x273616,_0x2f4d30=_0x321dff['subcommandTerm'](_0x2b1cb4),_0x2e9d06=_0x321dff[_0x2eb3b9(0xec)](_0x2b1cb4);return _0x20c518(_0x2f4d30,_0x2e9d06);});_0x36b730[_0x273616(0x239)](_0x45bcfb(_0x5356f9));}}),_0x36b730['push'](''),_0x36b730['push'](_0x3f2b9b(0x19e));}else{const _0x55fae6=_0x2812e8[_0x3f2b9b(0xe3)](_0x484b60=>{const _0x582a5b=_0x3f2b9b,_0x13217b=_0x321dff[_0x582a5b(0xe0)](_0x484b60),_0x31b794=_0x321dff[_0x582a5b(0xec)](_0x484b60);return _0x20c518(_0x13217b,_0x31b794);});_0x36b730[_0x3f2b9b(0x239)](''),_0x36b730[_0x3f2b9b(0x239)]('Commands:'),_0x36b730['push'](_0x45bcfb(_0x55fae6));}}const _0x5da475=_0x13eac1[_0x3f2b9b(0x81)]['filter'](_0x4af4a5=>!_0x154c4f(_0x4af4a5));if(_0x5da475[_0x3f2b9b(0x157)]>0x0){const _0x214005=_0x5da475[_0x3f2b9b(0xe3)](_0x41612b=>{const _0x37e094=_0x3f2b9b,_0x217b6e=_0x321dff[_0x37e094(0x6c)](_0x41612b),_0xb46a2d=_0x321dff[_0x37e094(0x262)](_0x41612b);return _0x20c518(_0x217b6e,_0xb46a2d);});_0x36b730[_0x3f2b9b(0x239)](''),_0x36b730[_0x3f2b9b(0x239)]('Options:'),_0x36b730[_0x3f2b9b(0x239)](_0x45bcfb(_0x214005));}const _0x5101b2=(_0x13eac1[_0x3f2b9b(0x158)]||[])[_0x3f2b9b(0x17a)](_0xacf9d8=>!_0x154c4f(_0xacf9d8));if(_0x5101b2[_0x3f2b9b(0x157)]>0x0){const _0x4776ab=_0x5101b2[_0x3f2b9b(0xe3)](_0x484f16=>{const _0x33aaea=_0x3f2b9b,_0x37d3e9=_0x321dff[_0x33aaea(0x23c)](_0x484f16),_0x26443a=_0x321dff[_0x33aaea(0x171)](_0x484f16);return _0x20c518(_0x37d3e9,_0x26443a);});_0x36b730[_0x3f2b9b(0x239)](''),_0x36b730[_0x3f2b9b(0x239)](_0x3f2b9b(0x1c9)),_0x36b730[_0x3f2b9b(0x239)](_0x45bcfb(_0x4776ab));}return _0x36b730[_0x3f2b9b(0x71)]('\x0a');},'subcommandTerm':_0x51fca6=>{const _0x4276e3=a2_0x1b5714,_0x401db5=(_0x51fca6['registeredArguments']||[])[_0x4276e3(0xe3)](_0x2d616f=>_0x2d616f['required']?'<'+_0x2d616f[_0x4276e3(0x1d6)]()+'>':'['+_0x2d616f[_0x4276e3(0x1d6)]()+']')['join']('\x20'),_0x441f22=_0x51fca6[_0x4276e3(0x25f)](),_0x397cef=_0x441f22[_0x4276e3(0x157)]>0x0?_0x51fca6['name']()+',\x20'+_0x441f22[_0x4276e3(0x71)](',\x20'):_0x51fca6[_0x4276e3(0x1d6)]();return _0x401db5?_0x397cef+'\x20'+_0x401db5:_0x397cef;}}),program[a2_0x1b5714(0x208)]('preAction',_0x2b1a3c=>{const _0xba3cf=a2_0x1b5714,_0x1890d8=_0x2b1a3c[_0xba3cf(0xab)]();if(!_0x1890d8[_0xba3cf(0x24e)]){if(_0x1890d8[_0xba3cf(0x10f)])_0x1890d8['format']=_0xba3cf(0x10f);else{if(_0x1890d8[_0xba3cf(0x211)])_0x1890d8[_0xba3cf(0x24e)]='json';else{if(_0x1890d8[_0xba3cf(0x218)])_0x1890d8[_0xba3cf(0x24e)]='jsonl';else _0x1890d8[_0xba3cf(0x130)]&&(_0x1890d8[_0xba3cf(0x24e)]=_0xba3cf(0x130));}}}_0x1890d8['in']&&!_0x1890d8[_0xba3cf(0x70)]&&(_0x1890d8[_0xba3cf(0x70)]=_0x1890d8['in']);if(_0x1890d8[_0xba3cf(0x1d8)])_0x1890d8[_0xba3cf(0x121)]=LogLevel['TRACE'];else{if(_0x1890d8['debug'])_0x1890d8[_0xba3cf(0x121)]=LogLevel[_0xba3cf(0x19a)];else _0x1890d8[_0xba3cf(0x121)]===undefined&&(_0x1890d8[_0xba3cf(0x121)]=LogLevel['INFO']);}});async function createTDXInstance(_0x5a6665){const _0x57ffa3=a2_0x1b5714,_0x26dc4e=await GlobalContext[_0x57ffa3(0xc1)](_0x5a6665);return _0x26dc4e['injectIntoOptions'](_0x5a6665),TDX['create']({'site':_0x26dc4e[_0x57ffa3(0x19b)],'apiKey':_0x26dc4e[_0x57ffa3(0x143)],'logLevel':_0x26dc4e[_0x57ffa3(0x121)],'profile':_0x26dc4e['profile']});}const databaseCmd=program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x70))[a2_0x1b5714(0x204)]('db')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1c2)),databaseListAction=async(_0x5d3725,_0x121062)=>{const _0x8f0928=a2_0x1b5714,_0x1b6ae8=new DatabasesCommand(),_0x4987e1=program[_0x8f0928(0xab)](),_0x2881d5=await createTDXInstance(_0x4987e1),_0x20253c=await _0x1b6ae8[_0x8f0928(0x261)]({'options':{..._0x4987e1,..._0x121062},'args':_0x5d3725?[_0x5d3725]:[],'tdx':_0x2881d5});process[_0x8f0928(0x98)](_0x20253c);};databaseCmd['command'](a2_0x1b5714(0x1e1))['description'](a2_0x1b5714(0x27f))['action'](databaseListAction),program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1fc),{'hidden':!![]})[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xaa))[a2_0x1b5714(0x1cd)](databaseListAction),program[a2_0x1b5714(0x24a)]('chat\x20[message...]')['description'](a2_0x1b5714(0xd1))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x13e),'Agent\x20reference\x20(project-name/agent-name)')['option']('--model\x20<name>','Model\x20name\x20(default:\x20claude-4.5-sonnet)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0xc0),a2_0x1b5714(0x223))['option'](a2_0x1b5714(0x1f8),'Start\x20a\x20new\x20chat\x20session')[a2_0x1b5714(0x1cd)](async(_0x4905fc,_0x38cbcd)=>{const _0x42ea12=a2_0x1b5714,_0x581e80=new ChatCommand(),_0x101c68=program['opts'](),_0x14aff9=await createTDXInstance(_0x101c68),_0x308c5c=await _0x581e80[_0x42ea12(0x261)]({'options':{..._0x101c68,..._0x38cbcd},'args':_0x4905fc,'tdx':_0x14aff9});process[_0x42ea12(0x98)](_0x308c5c);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x1b5714(0xe5)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x1b5714(0x8c)](a2_0x1b5714(0x222),'\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')['option'](a2_0x1b5714(0x1df),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x1b5714(0x10c))['option'](a2_0x1b5714(0x227),'Request\x20body\x20as\x20JSON\x20string')['option'](a2_0x1b5714(0x14e),'Read\x20request\x20body\x20from\x20file')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x115),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x1dfb38,_0x5469ed)=>{return _0x5469ed?[..._0x5469ed,_0x1dfb38]:[_0x1dfb38];})[a2_0x1b5714(0x15b)]('--type\x20<api_type>',a2_0x1b5714(0x113),'td')[a2_0x1b5714(0x1cd)](async(_0x1b583c,_0x1437f6)=>{const _0x2b7184=a2_0x1b5714;if(!_0x1b583c){apiCmd[_0x2b7184(0xf6)]();return;}const _0x1f91e7=new ApiCommand(),_0x377aef=program[_0x2b7184(0xab)](),_0x4d056d=await createTDXInstance(_0x377aef),_0x102613=await _0x1f91e7['run']({'options':{..._0x377aef,..._0x1437f6},'args':[_0x1b583c],'tdx':_0x4d056d});process['exit'](_0x102613);}),tableCmd=program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x10f))['description'](a2_0x1b5714(0x132)),tableListAction=async(_0x5c7a0f,_0x105b54)=>{const _0x37a93c=a2_0x1b5714,_0x3d7a53=new TablesCommand(),_0x40cb74=program[_0x37a93c(0xab)](),_0xb9873f=await createTDXInstance(_0x40cb74);_0x105b54['in']&&(_0x105b54[_0x37a93c(0x70)]=_0x105b54['in']);const _0x60a353=await _0x3d7a53['run']({'options':{..._0x40cb74,..._0x105b54},'args':_0x5c7a0f?[_0x5c7a0f]:[],'tdx':_0xb9873f});process[_0x37a93c(0x98)](_0x60a353);};tableCmd[a2_0x1b5714(0x24a)]('list\x20[pattern]')[a2_0x1b5714(0x1c0)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')['option']('-d,\x20--database\x20<database>',a2_0x1b5714(0x21c))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x10b),a2_0x1b5714(0x25b))[a2_0x1b5714(0x1cd)](tableListAction),program['command'](a2_0x1b5714(0x26e),{'hidden':!![]})[a2_0x1b5714(0x1c0)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0xcb),a2_0x1b5714(0x21c))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x10b),a2_0x1b5714(0x25b))[a2_0x1b5714(0x1cd)](tableListAction),program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x12e))['description'](a2_0x1b5714(0x25a))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xcb),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x10b),a2_0x1b5714(0x25b))[a2_0x1b5714(0x1cd)](async(_0xd27200,_0x4a7485)=>{const _0x47aaed=a2_0x1b5714,_0x52aea6=new ShowCommand(),_0x55dac0=program[_0x47aaed(0xab)](),_0x2dc9a1=await createTDXInstance(_0x55dac0);_0x4a7485['in']&&(_0x4a7485[_0x47aaed(0x70)]=_0x4a7485['in']);const _0x1fcc75=await _0x52aea6[_0x47aaed(0x261)]({'options':{..._0x55dac0,..._0x4a7485},'args':_0xd27200?[_0xd27200]:[],'tdx':_0x2dc9a1});process[_0x47aaed(0x98)](_0x1fcc75);}),program['command']('describe\x20[table]')[a2_0x1b5714(0x204)](a2_0x1b5714(0x23f))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xb8))['option'](a2_0x1b5714(0xcb),a2_0x1b5714(0x146))['option'](a2_0x1b5714(0x10b),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x13b9be,_0x1fd30f)=>{const _0x5dc8f2=a2_0x1b5714,_0x15e6fd=new DescribeCommand(),_0x187767=program[_0x5dc8f2(0xab)](),_0x55f71d=await createTDXInstance(_0x187767);_0x1fd30f['in']&&(_0x1fd30f[_0x5dc8f2(0x70)]=_0x1fd30f['in']);const _0x4e30a4=await _0x15e6fd['run']({'options':{..._0x187767,..._0x1fd30f},'args':_0x13b9be?[_0x13b9be]:[],'tdx':_0x55f71d});process['exit'](_0x4e30a4);}),program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x150))[a2_0x1b5714(0x1c0)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x1b5714(0x15b)]('-d,\x20--database\x20<database>',a2_0x1b5714(0x266))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x10b),a2_0x1b5714(0x25b))['option'](a2_0x1b5714(0x16a),a2_0x1b5714(0x1a8))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x14e),a2_0x1b5714(0x116))['option'](a2_0x1b5714(0xbd),a2_0x1b5714(0x124),'40')[a2_0x1b5714(0x1cd)](async(_0x10f88f,_0x157191)=>{const _0x3ce593=a2_0x1b5714,_0x3ae482=new QueryCommand(),_0x4af57f=program[_0x3ce593(0xab)](),_0x1058e1=await createTDXInstance(_0x4af57f);_0x157191['in']&&(_0x157191['database']=_0x157191['in']);const _0x2ef823=await _0x3ae482['run']({'options':{..._0x4af57f,..._0x157191},'args':_0x10f88f?[_0x10f88f]:[],'tdx':_0x1058e1});process[_0x3ce593(0x98)](_0x2ef823);});const segmentCmd=program[a2_0x1b5714(0x24a)](a2_0x1b5714(0xd0))[a2_0x1b5714(0x204)]('sg')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x22c)),segmentListAction=async(_0x513b3d,_0x41b0aa)=>{const _0x3bba3a=a2_0x1b5714,_0x49d7d9=new SegmentsCommand(),_0x200253=program[_0x3bba3a(0xab)](),_0xbbe6af=await createTDXInstance(_0x200253),_0x412cdb=await _0x49d7d9[_0x3bba3a(0x261)]({'options':{..._0x200253,..._0x41b0aa},'args':_0x513b3d?[_0x513b3d]:[],'tdx':_0xbbe6af});process[_0x3bba3a(0x98)](_0x412cdb);};segmentCmd['command'](a2_0x1b5714(0x12a))[a2_0x1b5714(0x1c0)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x1b5714(0x15b)]('-r,\x20--recursive',a2_0x1b5714(0x154))[a2_0x1b5714(0x15b)]('--max-depth\x20<depth>',a2_0x1b5714(0x15a),'10')[a2_0x1b5714(0x15b)]('-w,\x20--web',a2_0x1b5714(0x151))[a2_0x1b5714(0x1cd)](segmentListAction),program[a2_0x1b5714(0x24a)]('segments\x20[path]',{'hidden':!![]})[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1c3))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x20b),a2_0x1b5714(0x154))['option'](a2_0x1b5714(0xc2),a2_0x1b5714(0x15a),'10')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x86),a2_0x1b5714(0x151))[a2_0x1b5714(0x1cd)](segmentListAction),segmentCmd[a2_0x1b5714(0x24a)]('use\x20<path>',{'hidden':!![]})[a2_0x1b5714(0x1c0)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')['action'](async(_0x20d2a7,_0x40d68e)=>{const _0xdde628=a2_0x1b5714,_0x395fc2=new SegmentUseCommand(),_0x22b2ca=program['opts'](),_0x16e3cc=await createTDXInstance(_0x22b2ca),_0x43accc=await _0x395fc2['run']({'options':{..._0x22b2ca,..._0x40d68e},'args':[_0x20d2a7],'tdx':_0x16e3cc});process[_0xdde628(0x98)](_0x43accc);});const segmentViewAction=async(_0x174298,_0x2858cc)=>{const _0x314f5f=a2_0x1b5714,_0x31bcc6=new SegmentViewCommand(),_0x112f2c=program[_0x314f5f(0xab)](),_0x390a2f=await createTDXInstance(_0x112f2c),_0x449256=await _0x31bcc6[_0x314f5f(0x261)]({'options':{..._0x112f2c,..._0x2858cc},'args':_0x174298?[_0x174298]:[],'tdx':_0x390a2f});process[_0x314f5f(0x98)](_0x449256);};segmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x265))['description'](a2_0x1b5714(0xf4))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x86),a2_0x1b5714(0x272))[a2_0x1b5714(0x1cd)](segmentViewAction),segmentCmd['command'](a2_0x1b5714(0x199),{'hidden':!![]})[a2_0x1b5714(0x204)](a2_0x1b5714(0x247))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x86),a2_0x1b5714(0x272))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x14b))[a2_0x1b5714(0x1cd)](segmentViewAction),segmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1be))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x14f))[a2_0x1b5714(0x1cd)](async(_0x3a5cae,_0x5399b0)=>{const _0x19bdb0=a2_0x1b5714,_0x4cd1f1=new SegmentDescCommand(),_0x3f7a9d=program['opts'](),_0x2d99f2=await createTDXInstance(_0x3f7a9d),_0x510cd7=await _0x4cd1f1[_0x19bdb0(0x261)]({'options':{..._0x3f7a9d,..._0x5399b0},'args':_0x3a5cae?[_0x3a5cae]:[],'tdx':_0x2d99f2});process[_0x19bdb0(0x98)](_0x510cd7);}),segmentCmd[a2_0x1b5714(0x24a)]('show\x20[segment_name]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x202))['action'](async(_0x37854f,_0x5d5ce6)=>{const _0xf0e94a=a2_0x1b5714,_0x2f1815=new SegmentShowCommand(),_0x152a91=program['opts'](),_0x190a7b=await createTDXInstance(_0x152a91),_0x26f053=await _0x2f1815[_0xf0e94a(0x261)]({'options':{..._0x152a91,..._0x5d5ce6},'args':_0x37854f?[_0x37854f]:[],'tdx':_0x190a7b});process[_0xf0e94a(0x98)](_0x26f053);}),segmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xa9),{'hidden':!![]})[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xe1))[a2_0x1b5714(0x1cd)](async(_0x527d85,_0x4678c1)=>{const _0x1cc5ae=a2_0x1b5714,_0x9c1547=new SegmentFolderListCommand(),_0x5dab2a=program[_0x1cc5ae(0xab)](),_0x1d3f0d=await createTDXInstance(_0x5dab2a),_0x37790a=await _0x9c1547[_0x1cc5ae(0x261)]({'options':{..._0x5dab2a,..._0x4678c1},'args':[_0x527d85],'tdx':_0x1d3f0d});process[_0x1cc5ae(0x98)](_0x37790a);});const folderCmd=segmentCmd[a2_0x1b5714(0x24a)]('folder',{'hidden':!![]})[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x9f));folderCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x215))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xfb))[a2_0x1b5714(0x1cd)](async(_0x438ac4,_0x12861a)=>{const _0xea9410=a2_0x1b5714,_0x495632=new SegmentFolderShowCommand(),_0x481b80=program[_0xea9410(0xab)](),_0x36e0c6=await createTDXInstance(_0x481b80),_0x238f38=await _0x495632[_0xea9410(0x261)]({'options':{..._0x481b80,..._0x12861a},'args':[_0x438ac4],'tdx':_0x36e0c6});process[_0xea9410(0x98)](_0x238f38);}),segmentCmd[a2_0x1b5714(0x24a)]('sql\x20[segment_name]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xa8))[a2_0x1b5714(0x1cd)](async(_0x3e68f1,_0xa7eeee)=>{const _0x5664d9=a2_0x1b5714,_0x1c7cc8=new SegmentSQLCommand(),_0x18f9cd=program[_0x5664d9(0xab)](),_0x15e3e3=await createTDXInstance(_0x18f9cd),_0x5b3b63=await _0x1c7cc8[_0x5664d9(0x261)]({'options':{..._0x18f9cd,..._0xa7eeee},'args':_0x3e68f1?[_0x3e68f1]:[],'tdx':_0x15e3e3});process['exit'](_0x5b3b63);}),segmentCmd['command']('fields\x20[parent_name]')[a2_0x1b5714(0x1c0)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0xb77cf9,_0x1e76ac)=>{const _0x2916d2=a2_0x1b5714,_0x34c5e9=new SegmentFieldsCommand(),_0x2c9654=program['opts'](),_0x1f6ced=await createTDXInstance(_0x2c9654),_0x350ad5=await _0x34c5e9[_0x2916d2(0x261)]({'options':{..._0x2c9654,..._0x1e76ac},'args':_0xb77cf9?[_0xb77cf9]:[],'tdx':_0x1f6ced});process[_0x2916d2(0x98)](_0x350ad5);}),segmentCmd['command'](a2_0x1b5714(0x20e))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x259))['option'](a2_0x1b5714(0x26c),a2_0x1b5714(0xdf))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1cb),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x1b5714(0x1cd)](async(_0x5d6f90,_0x1a114a)=>{const _0x4184c3=a2_0x1b5714,_0x6b2095=new SegmentPullCommand(),_0x33a843=program[_0x4184c3(0xab)](),_0x2fd8f3=await createTDXInstance(_0x33a843),_0x181c5c=await _0x6b2095[_0x4184c3(0x261)]({'options':{..._0x33a843,..._0x1a114a},'args':_0x5d6f90?[_0x5d6f90]:[],'tdx':_0x2fd8f3});process[_0x4184c3(0x98)](_0x181c5c);}),segmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1ac))[a2_0x1b5714(0x1c0)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')['option'](a2_0x1b5714(0x26c),'Skip\x20confirmation\x20prompts')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1cb),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x20d),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x1b5714(0x1cd)](async(_0x50a297,_0x1c418a)=>{const _0x304b7a=a2_0x1b5714,_0x53e6dd=new SegmentPushCommand(),_0x182e49=program[_0x304b7a(0xab)](),_0x30bd78=await createTDXInstance(_0x182e49),_0x1dac51=await _0x53e6dd['run']({'options':{..._0x182e49,..._0x1c418a},'args':_0x50a297?[_0x50a297]:[],'tdx':_0x30bd78});process[_0x304b7a(0x98)](_0x1dac51);}),segmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1a1),{'hidden':!![]})['description'](a2_0x1b5714(0x162))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xf5),a2_0x1b5714(0x214))[a2_0x1b5714(0x15b)]('--rule\x20<json>',a2_0x1b5714(0x16e))['option'](a2_0x1b5714(0x24d),a2_0x1b5714(0xd9))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x188),a2_0x1b5714(0x11a))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x135),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x18c),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1e9),'Skip\x20population\x20counting')[a2_0x1b5714(0x1cd)](async(_0x3742bd,_0x49c83b)=>{const _0x1db98e=a2_0x1b5714,_0x1c6d61=new SegmentCreateCommand(),_0x5282d4=program['opts'](),_0x4a801e=await createTDXInstance(_0x5282d4),_0x3572b0=await _0x1c6d61[_0x1db98e(0x261)]({'options':{..._0x5282d4,..._0x49c83b},'args':[_0x3742bd],'tdx':_0x4a801e});process[_0x1db98e(0x98)](_0x3572b0);}),segmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1da),{'hidden':!![]})['description'](a2_0x1b5714(0x13f))[a2_0x1b5714(0x15b)]('--name\x20<new_name>',a2_0x1b5714(0x12f))['option'](a2_0x1b5714(0xf5),a2_0x1b5714(0x11b))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x21e),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x1b5714(0x24d),a2_0x1b5714(0x17e))['option'](a2_0x1b5714(0x188),a2_0x1b5714(0x16d))[a2_0x1b5714(0x15b)]('--kind\x20<type>',a2_0x1b5714(0x1fe))[a2_0x1b5714(0x1cd)](async(_0x2784e1,_0x5db5a4)=>{const _0x22f020=a2_0x1b5714,_0x2a50c8=new SegmentUpdateCommand(),_0x42746c=program[_0x22f020(0xab)](),_0x25f65f=await createTDXInstance(_0x42746c),_0x36f96f=await _0x2a50c8[_0x22f020(0x261)]({'options':{..._0x42746c,..._0x5db5a4},'args':[_0x2784e1],'tdx':_0x25f65f});process['exit'](_0x36f96f);});const parentCmd=segmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xaf),{'hidden':!![]})['description']('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x494242,_0x18d833)=>{const _0x46c7ad=a2_0x1b5714,_0x5db0b8=new ParentSegmentListCommand(),_0x51a8fb=program[_0x46c7ad(0xab)](),_0x14d1d6=await createTDXInstance(_0x51a8fb),_0x15800a=await _0x5db0b8[_0x46c7ad(0x261)]({'options':{..._0x51a8fb,..._0x18d833},'args':_0x494242?[_0x494242]:[],'tdx':_0x14d1d6});process[_0x46c7ad(0x98)](_0x15800a);};parentCmd['command'](a2_0x1b5714(0x1e1))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x127))['action'](parentListAction),segmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x179),{'hidden':!![]})[a2_0x1b5714(0x1c0)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x1b5714(0x1cd)](parentListAction),parentCmd['command'](a2_0x1b5714(0xcf))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xba))['option']('-o,\x20--output\x20<file>',a2_0x1b5714(0x195))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x26c),a2_0x1b5714(0x279))[a2_0x1b5714(0x1cd)](async(_0x5c7e4c,_0x52ae56)=>{const _0x3257a=a2_0x1b5714,_0x45934f=new ParentSegmentPullCommand(),_0xc80c91=program[_0x3257a(0xab)](),_0x449274=await createTDXInstance(_0xc80c91),_0x4ba113=await _0x45934f[_0x3257a(0x261)]({'options':{..._0xc80c91,..._0x52ae56},'args':_0x5c7e4c?[_0x5c7e4c]:[],'tdx':_0x449274});process[_0x3257a(0x98)](_0x4ba113);}),parentCmd[a2_0x1b5714(0x24a)]('push\x20[file]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x200))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x26c),'Skip\x20confirmation\x20prompt')[a2_0x1b5714(0x1cd)](async(_0x5758cf,_0x5aa5bc)=>{const _0x2cb280=a2_0x1b5714,_0x4b580c=new ParentSegmentPushCommand(),_0xe2b3cb=program[_0x2cb280(0xab)](),_0x54f077=await createTDXInstance(_0xe2b3cb),_0x2326f4=await _0x4b580c[_0x2cb280(0x261)]({'options':{..._0xe2b3cb,..._0x5aa5bc},'args':_0x5758cf?[_0x5758cf]:[],'tdx':_0x54f077});process[_0x2cb280(0x98)](_0x2326f4);}),parentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xa1))['description'](a2_0x1b5714(0x1b5))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1de),a2_0x1b5714(0x164))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xb3),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x255),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x1b5714(0x166),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')['option'](a2_0x1b5714(0x24c),a2_0x1b5714(0x95),a2_0x1b5714(0xee))['action'](async(_0x39995f,_0x5216a1)=>{const _0x148823=a2_0x1b5714,_0x313fa7=new ParentSegmentValidateCommand(),_0x2ed6d6=program[_0x148823(0xab)](),_0x3dc2b6=await createTDXInstance(_0x2ed6d6),_0x5a99f3=await _0x313fa7['run']({'options':{..._0x2ed6d6,..._0x5216a1},'args':_0x39995f?[_0x39995f]:[],'tdx':_0x3dc2b6});process[_0x148823(0x98)](_0x5a99f3);}),parentCmd[a2_0x1b5714(0x24a)]('preview\x20[file]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x89))['option'](a2_0x1b5714(0x1de),a2_0x1b5714(0x12b))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xb3),a2_0x1b5714(0x1cf))[a2_0x1b5714(0x15b)]('--behavior\x20[name]',a2_0x1b5714(0x7a))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x166),a2_0x1b5714(0x27e))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x24c),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x1b5714(0xee))[a2_0x1b5714(0x1cd)](async(_0x325f59,_0x300de2)=>{const _0x452cd6=a2_0x1b5714,_0x18ab2b=new ParentSegmentPreviewCommand(),_0x2fc90c=program['opts'](),_0x7409e5=await createTDXInstance(_0x2fc90c),_0x1845e7=await _0x18ab2b[_0x452cd6(0x261)]({'options':{..._0x2fc90c,..._0x300de2},'args':_0x325f59?[_0x325f59]:[],'tdx':_0x7409e5});process[_0x452cd6(0x98)](_0x1845e7);}),parentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x7b))[a2_0x1b5714(0x1c0)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x26c),a2_0x1b5714(0x279))[a2_0x1b5714(0x1cd)](async(_0x16a678,_0x217b07)=>{const _0x1fe1f7=a2_0x1b5714,_0x123284=new ParentSegmentRunCommand(),_0x3b7820=program[_0x1fe1f7(0xab)](),_0x122924=await createTDXInstance(_0x3b7820),_0x123ea8=await _0x123284['run']({'options':{..._0x3b7820,..._0x217b07},'args':_0x16a678?[_0x16a678]:[],'tdx':_0x122924});process['exit'](_0x123ea8);});const parentSegmentCmd=program[a2_0x1b5714(0x24a)](a2_0x1b5714(0xad))['alias']('ps')['description'](a2_0x1b5714(0x111));parentSegmentCmd['command'](a2_0x1b5714(0x1e1))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x127))[a2_0x1b5714(0x1cd)](parentListAction),parentSegmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xcf))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x19f))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x155),a2_0x1b5714(0x10d))[a2_0x1b5714(0x15b)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')['option'](a2_0x1b5714(0x252),a2_0x1b5714(0xf3))[a2_0x1b5714(0x1cd)](async(_0x146a72,_0x214c12)=>{const _0x211203=a2_0x1b5714,_0x3fbbfa=new ParentSegmentPullCommand(),_0x54f186=program[_0x211203(0xab)](),_0x4f5cd8=await createTDXInstance(_0x54f186),_0x3ed6ab=await _0x3fbbfa['run']({'options':{..._0x54f186,..._0x214c12},'args':_0x146a72?[_0x146a72]:[],'tdx':_0x4f5cd8});process['exit'](_0x3ed6ab);}),parentSegmentCmd[a2_0x1b5714(0x24a)]('push\x20[name]')['description'](a2_0x1b5714(0x14c))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x26c),a2_0x1b5714(0x279))[a2_0x1b5714(0x1cd)](async(_0x1c7b35,_0x6cbce0)=>{const _0x5e7000=a2_0x1b5714,_0x18315b=new ParentSegmentPushCommand(),_0x538faf=program[_0x5e7000(0xab)](),_0x343a82=await createTDXInstance(_0x538faf),_0xab03c2=await _0x18315b['run']({'options':{..._0x538faf,..._0x6cbce0},'args':_0x1c7b35?[_0x1c7b35]:[],'tdx':_0x343a82});process['exit'](_0xab03c2);}),parentSegmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x251))[a2_0x1b5714(0x1c0)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1de),a2_0x1b5714(0x164))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xb3),a2_0x1b5714(0x16c))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x255),a2_0x1b5714(0x93))['option']('--enriched',a2_0x1b5714(0x140))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x24c),a2_0x1b5714(0x95),'-1d')[a2_0x1b5714(0x1cd)](async(_0x3b9d6d,_0x218a89)=>{const _0x2fc02a=a2_0x1b5714,_0x19ab4a=new ParentSegmentValidateCommand(),_0x315bbf=program[_0x2fc02a(0xab)](),_0x32ddc6=await createTDXInstance(_0x315bbf),_0x26378a=await _0x19ab4a[_0x2fc02a(0x261)]({'options':{..._0x315bbf,..._0x218a89},'args':_0x3b9d6d?[_0x3b9d6d]:[],'tdx':_0x32ddc6});process[_0x2fc02a(0x98)](_0x26378a);}),parentSegmentCmd['command'](a2_0x1b5714(0x242))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x89))[a2_0x1b5714(0x15b)]('--master',a2_0x1b5714(0x12b))[a2_0x1b5714(0x15b)]('--attribute\x20[name]',a2_0x1b5714(0x1cf))['option'](a2_0x1b5714(0x255),a2_0x1b5714(0x7a))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x166),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x24c),a2_0x1b5714(0x95),a2_0x1b5714(0xee))[a2_0x1b5714(0x1cd)](async(_0x20b202,_0x369b85)=>{const _0x43404c=a2_0x1b5714,_0x363b0b=new ParentSegmentPreviewCommand(),_0x480421=program[_0x43404c(0xab)](),_0x947658=await createTDXInstance(_0x480421),_0x10d444=await _0x363b0b[_0x43404c(0x261)]({'options':{..._0x480421,..._0x369b85},'args':_0x20b202?[_0x20b202]:[],'tdx':_0x947658});process[_0x43404c(0x98)](_0x10d444);}),parentSegmentCmd['command'](a2_0x1b5714(0x7b))[a2_0x1b5714(0x1c0)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x26c),a2_0x1b5714(0x279))[a2_0x1b5714(0x1cd)](async(_0x3b6e1d,_0xb4a5a2)=>{const _0x229788=a2_0x1b5714,_0x286531=new ParentSegmentRunCommand(),_0x35f93d=program['opts'](),_0x43e18a=await createTDXInstance(_0x35f93d),_0x58737c=await _0x286531[_0x229788(0x261)]({'options':{..._0x35f93d,..._0xb4a5a2},'args':_0x3b6e1d?[_0x3b6e1d]:[],'tdx':_0x43e18a});process[_0x229788(0x98)](_0x58737c);}),parentSegmentCmd[a2_0x1b5714(0x24a)]('fields\x20[name]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xbc))[a2_0x1b5714(0x15b)]('--json',a2_0x1b5714(0x280))[a2_0x1b5714(0x15b)]('--jsonl',a2_0x1b5714(0xda))[a2_0x1b5714(0x1cd)](async(_0x53e24b,_0x3adfa9)=>{const _0x59df81=a2_0x1b5714,_0x585d67=new ParentSegmentFieldsCommand(),_0x309804=program[_0x59df81(0xab)](),_0x383d5f=await createTDXInstance(_0x309804),_0x5c3d9f=await _0x585d67[_0x59df81(0x261)]({'options':{..._0x309804,..._0x3adfa9},'args':_0x53e24b?[_0x53e24b]:[],'tdx':_0x383d5f});process['exit'](_0x5c3d9f);}),parentSegmentCmd[a2_0x1b5714(0x24a)]('view\x20[name]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x123))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x86),a2_0x1b5714(0x1a9))['option']('--json',a2_0x1b5714(0x280))[a2_0x1b5714(0x15b)]('--jsonl','Output\x20as\x20JSON\x20Lines')['action'](async(_0xc1630a,_0x3ffbb3)=>{const _0xee9ca9=a2_0x1b5714,_0x39dd9f=new ParentSegmentViewCommand(),_0x243f73=program['opts'](),_0x38e416=await createTDXInstance(_0x243f73),_0x57f534=await _0x39dd9f[_0xee9ca9(0x261)]({'options':{..._0x243f73,..._0x3ffbb3},'args':_0xc1630a?[_0xc1630a]:[],'tdx':_0x38e416});process[_0xee9ca9(0x98)](_0x57f534);}),parentSegmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xe9))[a2_0x1b5714(0x1c0)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x27c),a2_0x1b5714(0x280))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xb6),'Output\x20as\x20JSON\x20Lines')[a2_0x1b5714(0x1cd)](async(_0x1950d3,_0x4de383)=>{const _0x37e4a7=a2_0x1b5714,_0x1150c6=new ParentSegmentDescCommand(),_0x4ce8de=program['opts'](),_0x108bf4=await createTDXInstance(_0x4ce8de),_0x509af7=await _0x1150c6['run']({'options':{..._0x4ce8de,..._0x4de383},'args':_0x1950d3?[_0x1950d3]:[],'tdx':_0x108bf4});process[_0x37e4a7(0x98)](_0x509af7);}),parentSegmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1b8))['description'](a2_0x1b5714(0x1f5))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x27c),a2_0x1b5714(0x280))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xb6),a2_0x1b5714(0xda))[a2_0x1b5714(0x1cd)](async(_0x49e50e,_0x3f6a5f)=>{const _0x43b936=a2_0x1b5714,_0x348dc0=new ParentSegmentSQLCommand(),_0xeb5be1=program[_0x43b936(0xab)](),_0x367883=await createTDXInstance(_0xeb5be1),_0x11e3ae=await _0x348dc0[_0x43b936(0x261)]({'options':{..._0xeb5be1,..._0x3f6a5f},'args':_0x49e50e?[_0x49e50e]:[],'tdx':_0x367883});process['exit'](_0x11e3ae);}),parentSegmentCmd[a2_0x1b5714(0x24a)]('show\x20[name]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x16b))['option']('--limit\x20<n>',a2_0x1b5714(0x77))['option']('--json','Output\x20as\x20JSON')['option'](a2_0x1b5714(0xb6),a2_0x1b5714(0xda))[a2_0x1b5714(0x1cd)](async(_0x3bf368,_0x2dcd4a)=>{const _0x547e87=new ParentSegmentShowCommand(),_0x5ddeb2=program['opts'](),_0x1379a7=await createTDXInstance(_0x5ddeb2),_0x34998d=await _0x547e87['run']({'options':{..._0x5ddeb2,..._0x2dcd4a},'args':_0x3bf368?[_0x3bf368]:[],'tdx':_0x1379a7});process['exit'](_0x34998d);}),parentSegmentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x229))[a2_0x1b5714(0x1c0)]('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x1b5714(0x1cd)](async(_0x25eac8,_0x549224)=>{const _0x25069a=a2_0x1b5714,_0x51f227=new UseCommand(),_0x46b568=program['opts'](),_0x2e4b82=_0x25eac8?['parent_segment',_0x25eac8]:[],_0x167f22=await _0x51f227['run']({'options':{..._0x46b568,..._0x549224},'args':_0x2e4b82,'tdx':null});process[_0x25069a(0x98)](_0x167f22);}),parentCmd['command'](a2_0x1b5714(0x192))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1f2))[a2_0x1b5714(0x191)](a2_0x1b5714(0x1b9),a2_0x1b5714(0x243))[a2_0x1b5714(0x191)](a2_0x1b5714(0x9b),a2_0x1b5714(0x22b))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xf5),a2_0x1b5714(0x6d))[a2_0x1b5714(0x15b)]('--schedule-type\x20<type>',a2_0x1b5714(0x206))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xe8),a2_0x1b5714(0x213))[a2_0x1b5714(0x15b)]('--timezone\x20<tz>','Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1e5),a2_0x1b5714(0xc8))['option'](a2_0x1b5714(0x102),a2_0x1b5714(0x85))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xd8),a2_0x1b5714(0x1a7))[a2_0x1b5714(0x15b)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x17f),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x1b5714(0x15b)](a2_0x1b5714(0xd3),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x1b5714(0x1cd)](async(_0x229d1b,_0x36de50)=>{const _0x212ca0=a2_0x1b5714,_0x5a921a=new ParentSegmentCreateCommand(),_0x17bf29=program[_0x212ca0(0xab)](),_0x882c0b=await createTDXInstance(_0x17bf29),_0x4e280f=await _0x5a921a[_0x212ca0(0x261)]({'options':{..._0x17bf29,..._0x36de50},'args':[_0x229d1b],'tdx':_0x882c0b});process['exit'](_0x4e280f);}),parentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x9d))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x18a))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xf5),a2_0x1b5714(0x11b))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1ea),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x1b5714(0x15b)]('--schedule-option\x20<value>',a2_0x1b5714(0x1dd))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xe6),a2_0x1b5714(0x153))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x15d),a2_0x1b5714(0xed))['option'](a2_0x1b5714(0x22a),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x240),a2_0x1b5714(0x138))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x8f),a2_0x1b5714(0xd6))[a2_0x1b5714(0x1cd)](async(_0x102b10,_0x21b2b6)=>{const _0x1afdbe=a2_0x1b5714,_0x342d0a=new ParentSegmentUpdateCommand(),_0x5359e9=program[_0x1afdbe(0xab)](),_0x562af8=await createTDXInstance(_0x5359e9),_0x171edf=await _0x342d0a[_0x1afdbe(0x261)]({'options':{..._0x5359e9,..._0x21b2b6},'args':[_0x102b10],'tdx':_0x562af8});process[_0x1afdbe(0x98)](_0x171edf);}),folderCmd[a2_0x1b5714(0x24a)]('create\x20<parent_name>\x20<folder_name>')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1e8))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xf5),a2_0x1b5714(0x147))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x282),a2_0x1b5714(0x237))['action'](async(_0x563312,_0x1c1e40,_0x19027e)=>{const _0x2d0188=a2_0x1b5714,_0x27112f=new SegmentFolderCreateCommand(),_0x4ace4e=program[_0x2d0188(0xab)](),_0x3992b7=await createTDXInstance(_0x4ace4e),_0x411610=await _0x27112f[_0x2d0188(0x261)]({'options':{..._0x4ace4e,..._0x19027e},'args':[_0x563312,_0x1c1e40],'tdx':_0x3992b7});process[_0x2d0188(0x98)](_0x411610);}),program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x254))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1cc))[a2_0x1b5714(0x1cd)](async(_0x459a02,_0x4f76f1)=>{const _0x6e10d9=a2_0x1b5714,_0x4ee9b0=new ActivationsCommand(),_0x3f73c0=program['opts'](),_0x326584=await createTDXInstance(_0x3f73c0),_0xf68c08=await _0x4ee9b0[_0x6e10d9(0x261)]({'options':{..._0x3f73c0,..._0x4f76f1},'args':[_0x459a02],'tdx':_0x326584});process[_0x6e10d9(0x98)](_0xf68c08);});const workflowCmd=program['command'](a2_0x1b5714(0x23d))[a2_0x1b5714(0x204)]('wf')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x235)),wfProjectCmd=workflowCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1b3))['description'](a2_0x1b5714(0x23e)),wfProjectListAction=async(_0x12a110,_0x363a25)=>{const _0x3c6a10=a2_0x1b5714,_0x43a98c=new WorkflowProjectsCommand(),_0x16055b=program['opts'](),_0x38a03b=await createTDXInstance(_0x16055b),_0x3443a5=await _0x43a98c[_0x3c6a10(0x261)]({'options':{..._0x16055b,..._0x363a25},'args':_0x12a110?[_0x12a110]:[],'tdx':_0x38a03b});process[_0x3c6a10(0x98)](_0x3443a5);};wfProjectCmd['command'](a2_0x1b5714(0x1e1))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x74))['action'](wfProjectListAction),workflowCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xa0))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xdc))[a2_0x1b5714(0x1cd)](wfProjectListAction);const wfWorkflowListAction=async(_0x5bd89c,_0xc72f97)=>{const _0x26da86=a2_0x1b5714,_0x5ed6b2=new WorkflowWorkflowsCommand(),_0x379e36=program[_0x26da86(0xab)](),_0x17b2af=await createTDXInstance(_0x379e36),_0x1c171d=await _0x5ed6b2[_0x26da86(0x261)]({'options':{..._0x379e36,..._0xc72f97},'args':_0x5bd89c?[_0x5bd89c]:[],'tdx':_0x17b2af});process[_0x26da86(0x98)](_0x1c171d);};workflowCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1ff))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x13d))[a2_0x1b5714(0x1cd)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1fa))['description']('Workflow\x20session\x20management'),wfSessionListAction=async(_0x2b20cd,_0xc4bc59)=>{const _0x30bd37=a2_0x1b5714,_0x4f32d7=new WorkflowSessionsCommand(),_0x57bc2f=program['opts'](),_0x2bcc07=await createTDXInstance(_0x57bc2f),_0x47125a=await _0x4f32d7[_0x30bd37(0x261)]({'options':{..._0x57bc2f,..._0xc4bc59},'args':_0x2b20cd?[_0x2b20cd]:[],'tdx':_0x2bcc07});process[_0x30bd37(0x98)](_0x47125a);};wfSessionCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x248))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x17b))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x210),a2_0x1b5714(0xfe))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xa4),a2_0x1b5714(0x172))[a2_0x1b5714(0x15b)]('--to\x20<timestamp>',a2_0x1b5714(0x1b7))[a2_0x1b5714(0x1cd)](wfSessionListAction),workflowCmd['command']('sessions\x20[project]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xe4))['option'](a2_0x1b5714(0x210),a2_0x1b5714(0xfe))['option']('--from\x20<timestamp>',a2_0x1b5714(0x172))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xe2),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x1b5714(0x1cd)](wfSessionListAction);const wfAttemptListAction=async(_0x5e988e,_0x2fb470)=>{const _0x143578=a2_0x1b5714,_0x5a5c42=new WorkflowAttemptsCommand(),_0x378b2d=program['opts'](),_0x104591=await createTDXInstance(_0x378b2d),_0x150819=await _0x5a5c42[_0x143578(0x261)]({'options':{..._0x378b2d,..._0x2fb470},'args':_0x5e988e?[_0x5e988e]:[],'tdx':_0x104591});process['exit'](_0x150819);},attemptCmd=workflowCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x182))[a2_0x1b5714(0x1c0)]('Workflow\x20attempt\x20management')[a2_0x1b5714(0x26f)](a2_0x1b5714(0x1dc),'Attempt\x20ID')[a2_0x1b5714(0x26f)]('[action]','Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x1b5714(0x26f)](a2_0x1b5714(0xd2),a2_0x1b5714(0x267))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x24f),a2_0x1b5714(0xcc))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x109),a2_0x1b5714(0xc9))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x131),a2_0x1b5714(0x1a6))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x260),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x180),a2_0x1b5714(0x72))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x8d),'Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x1b5714(0x1cd)](async(_0xcc711b,_0x84635c,_0x34f93e,_0x598f9a)=>{const _0xcb8ea7=a2_0x1b5714;if(_0xcc711b===_0xcb8ea7(0x23b)){await wfAttemptListAction(_0x84635c,_0x598f9a);return;}if(!_0xcc711b){attemptCmd[_0xcb8ea7(0xf6)]();return;}const _0x2f1a6e=program[_0xcb8ea7(0xab)](),_0x10a334=await createTDXInstance(_0x2f1a6e);let _0x394978=0x0;if(!_0x84635c){const _0x370ee8=new WorkflowAttemptCommand();_0x394978=await _0x370ee8[_0xcb8ea7(0x261)]({'options':{..._0x2f1a6e,..._0x598f9a},'args':[_0xcc711b],'tdx':_0x10a334});}else{if(_0x84635c==='logs'){const _0x583fe5=new WorkflowLogsCommand();_0x394978=await _0x583fe5[_0xcb8ea7(0x261)]({'options':{..._0x2f1a6e,..._0x598f9a},'args':_0x34f93e?[_0xcc711b,_0x34f93e]:[_0xcc711b],'tdx':_0x10a334});}else{if(_0x84635c===_0xcb8ea7(0x234)){const _0x4a6762=new WorkflowTasksCommand();_0x394978=await _0x4a6762[_0xcb8ea7(0x261)]({'options':{..._0x2f1a6e,..._0x598f9a},'args':[_0xcc711b],'tdx':_0x10a334});}else{if(_0x84635c===_0xcb8ea7(0x231)){const _0x3b9793=new WorkflowKillCommand();_0x394978=await _0x3b9793['run']({'options':{..._0x2f1a6e,..._0x598f9a},'args':[_0xcc711b],'tdx':_0x10a334});}else{if(_0x84635c===_0xcb8ea7(0xc7)){const _0x1f7a87=new WorkflowRetryCommand();_0x394978=await _0x1f7a87[_0xcb8ea7(0x261)]({'options':{..._0x2f1a6e,..._0x598f9a},'args':['attempt:'+_0xcc711b],'tdx':_0x10a334});}else console[_0xcb8ea7(0x244)]('Unknown\x20action:\x20'+_0x84635c),console[_0xcb8ea7(0x244)](_0xcb8ea7(0x1a2)),_0x394978=0x1;}}}}process[_0xcb8ea7(0x98)](_0x394978);});attemptCmd['command'](a2_0x1b5714(0x248))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x256))['option'](a2_0x1b5714(0x8d),'Include\x20retried\x20attempts')[a2_0x1b5714(0x1cd)](wfAttemptListAction),workflowCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x18d))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x245))['option'](a2_0x1b5714(0x8d),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x1b5714(0x24a)]('retry\x20<session-id>')[a2_0x1b5714(0x1c0)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x1b5714(0x15b)]('--from-task\x20<task>',a2_0x1b5714(0x106))[a2_0x1b5714(0x15b)]('--params\x20<json>',a2_0x1b5714(0x1db))['action'](async(_0x56433b,_0x5a7015)=>{const _0x530f93=a2_0x1b5714,_0x284589=new WorkflowRetryCommand(),_0x294fc2=program['opts'](),_0x4134d1=await createTDXInstance(_0x294fc2),_0xe246c1=await _0x284589[_0x530f93(0x261)]({'options':{..._0x294fc2,..._0x5a7015},'args':[_0x56433b],'tdx':_0x4134d1});process['exit'](_0xe246c1);}),workflowCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xea))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x11e))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x19d),a2_0x1b5714(0x177),(_0x528256,_0x9477ec=[])=>[..._0x9477ec,_0x528256],[])[a2_0x1b5714(0x15b)](a2_0x1b5714(0x139),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x1b5714(0x1cd)](async(_0x2115f2,_0x2db838)=>{const _0x70679a=a2_0x1b5714,_0x57b14d=new WorkflowRunCommand(),_0x171912=program['opts'](),_0x2de40a=await createTDXInstance(_0x171912),_0x51767e=await _0x57b14d[_0x70679a(0x261)]({'options':{..._0x171912,..._0x2db838},'args':[_0x2115f2],'tdx':_0x2de40a});process[_0x70679a(0x98)](_0x51767e);}),workflowCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x120))['description'](a2_0x1b5714(0xca))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1d1),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x1b5714(0x1cd)](async(_0x3a6cbf,_0x1df3a4,_0x54aed1)=>{const _0x4a66be=a2_0x1b5714,_0x1a293a=new WorkflowDownloadCommand(),_0x496e07=program[_0x4a66be(0xab)](),_0x5d829b=await createTDXInstance(_0x496e07),_0x1e93d3=await _0x1a293a[_0x4a66be(0x261)]({'options':{..._0x496e07,..._0x54aed1},'args':[_0x3a6cbf,_0x1df3a4||'.'],'tdx':_0x5d829b});process[_0x4a66be(0x98)](_0x1e93d3);}),workflowCmd['command']('push\x20[project-name-or-dir]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x246))[a2_0x1b5714(0x15b)]('--name\x20<name>','Override\x20project\x20name')['option'](a2_0x1b5714(0x1d1),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x1b5714(0x15b)]('--skip-validation',a2_0x1b5714(0x178))[a2_0x1b5714(0x1cd)](async(_0x390adc,_0x5393b7)=>{const _0x3dface=a2_0x1b5714,_0x1ed1e3=new WorkflowPushCommand(),_0x32c414=program[_0x3dface(0xab)](),_0x535573=await createTDXInstance(_0x32c414),_0x33cee4=await _0x1ed1e3[_0x3dface(0x261)]({'options':{..._0x32c414,..._0x5393b7},'args':_0x390adc?[_0x390adc]:[],'tdx':_0x535573});process[_0x3dface(0x98)](_0x33cee4);}),workflowCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1af))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x100))[a2_0x1b5714(0x1cd)](async(_0x252488,_0x21ba72)=>{const _0x34a10a=a2_0x1b5714,_0xe00477=new WorkflowDeleteCommand(),_0x388c8b=program[_0x34a10a(0xab)](),_0x48f5d8=await createTDXInstance(_0x388c8b),_0x25ce2f=await _0xe00477['run']({'options':{..._0x388c8b,..._0x21ba72},'args':[_0x252488],'tdx':_0x48f5d8});process[_0x34a10a(0x98)](_0x25ce2f);});const jobCmd=program['command'](a2_0x1b5714(0x184))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x189)),jobListAction=async _0x2e9161=>{const _0x134815=a2_0x1b5714,_0x461794=new JobListCommand(),_0xb83327=program['opts'](),_0x11cacf=await createTDXInstance(_0xb83327),_0x3d8a87=await _0x461794[_0x134815(0x261)]({'options':{..._0xb83327,..._0x2e9161},'args':[],'tdx':_0x11cacf});process[_0x134815(0x98)](_0x3d8a87);};jobCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x23b))['description'](a2_0x1b5714(0xf1))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x210),a2_0x1b5714(0xa6))[a2_0x1b5714(0x1cd)](jobListAction),program['command'](a2_0x1b5714(0x26a),{'hidden':!![]})['description'](a2_0x1b5714(0x275))[a2_0x1b5714(0x15b)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x1b5714(0x1cd)](jobListAction),jobCmd['command']('show\x20<job-id>')['description'](a2_0x1b5714(0x25d))['action'](async(_0x3c5995,_0x10af53)=>{const _0x418b5c=a2_0x1b5714,_0x105fc4=new JobShowCommand(),_0x1f865c=program['opts'](),_0x243333=await createTDXInstance(_0x1f865c),_0x91ba6d=await _0x105fc4['run']({'options':{..._0x1f865c,..._0x10af53},'args':[_0x3c5995],'tdx':_0x243333});process[_0x418b5c(0x98)](_0x91ba6d);}),jobCmd[a2_0x1b5714(0x24a)]('kill\x20<job-id>')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x224))['action'](async(_0x44f3e8,_0x44995a)=>{const _0x4badd0=a2_0x1b5714,_0x11c318=new JobKillCommand(),_0x20cb8a=program[_0x4badd0(0xab)](),_0x3cc315=await createTDXInstance(_0x20cb8a),_0x3439f8=await _0x11c318[_0x4badd0(0x261)]({'options':{..._0x20cb8a,..._0x44995a},'args':[_0x44f3e8],'tdx':_0x3cc315});process[_0x4badd0(0x98)](_0x3439f8);}),jobCmd['command'](a2_0x1b5714(0x268))[a2_0x1b5714(0x1c0)]('Submit\x20a\x20job')[a2_0x1b5714(0x15b)](a2_0x1b5714(0xf9),a2_0x1b5714(0x1bd),a2_0x1b5714(0x148))[a2_0x1b5714(0x15b)]('-f,\x20--file\x20<path>',a2_0x1b5714(0x1f1))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x142),a2_0x1b5714(0xa5),'information_schema')['action'](async(_0x45dde1,_0x9bc0c5)=>{const _0x7f2b7e=a2_0x1b5714,_0x297f52=new JobSubmitCommand(),_0x254968=program[_0x7f2b7e(0xab)](),_0x282acf=await createTDXInstance(_0x254968),_0x21c70a=await _0x297f52[_0x7f2b7e(0x261)]({'options':{..._0x254968,..._0x9bc0c5},'args':_0x45dde1?[_0x45dde1]:[],'tdx':_0x282acf});process[_0x7f2b7e(0x98)](_0x21c70a);}),jobCmd[a2_0x1b5714(0x24a)]('result\x20<job-id>')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x236))[a2_0x1b5714(0x1cd)](async(_0x4e2413,_0x328b73)=>{const _0x2aafdd=a2_0x1b5714,_0x107530=new JobResultCommand(),_0xc40623=program['opts'](),_0x22c26b=await createTDXInstance(_0xc40623),_0x2c6154=await _0x107530[_0x2aafdd(0x261)]({'options':{..._0xc40623,..._0x328b73},'args':[_0x4e2413],'tdx':_0x22c26b});process[_0x2aafdd(0x98)](_0x2c6154);});const llmCmd=program['command'](a2_0x1b5714(0x1ae))['description'](a2_0x1b5714(0xfd));llmCmd['command'](a2_0x1b5714(0x1eb))['description'](a2_0x1b5714(0x6b))[a2_0x1b5714(0x1cd)](async(_0x22e8a8,_0xae6e01)=>{const _0x467c17=a2_0x1b5714,_0x54dbe7=new LLMUseCommand(),_0x46a10a=program['opts'](),_0x161484=await createTDXInstance(_0x46a10a),_0x4c585b=await _0x54dbe7[_0x467c17(0x261)]({'options':{..._0x46a10a,..._0xae6e01},'args':[_0x22e8a8],'tdx':_0x161484});process[_0x467c17(0x98)](_0x4c585b);}),llmCmd['command']('models')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1a3))[a2_0x1b5714(0x1cd)](async _0x53517c=>{const _0x317055=a2_0x1b5714,_0x5068fd=new LLMModelsCommand(),_0x26f436=program[_0x317055(0xab)](),_0x3047f9=await createTDXInstance(_0x26f436),_0x1432c6=await _0x5068fd[_0x317055(0x261)]({'options':{..._0x26f436,..._0x53517c},'args':[],'tdx':_0x3047f9});process['exit'](_0x1432c6);});const projectCmd=llmCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1b3))['description'](a2_0x1b5714(0x88)),llmProjectListAction=async(_0x5847a6,_0x3fcec1)=>{const _0x334d65=a2_0x1b5714,_0x5f27a3=new LLMProjectsCommand(),_0x128539=program[_0x334d65(0xab)](),_0x27c8c3=await createTDXInstance(_0x128539),_0x377e7f=await _0x5f27a3[_0x334d65(0x261)]({'options':{..._0x128539,..._0x3fcec1},'args':_0x5847a6?[_0x5847a6]:[],'tdx':_0x27c8c3});process[_0x334d65(0x98)](_0x377e7f);};projectCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1e1))[a2_0x1b5714(0x1c0)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x1b5714(0x1cd)](llmProjectListAction),llmCmd['command']('projects\x20[pattern]')[a2_0x1b5714(0x1c0)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x1b5714(0x1cd)](llmProjectListAction),projectCmd['command'](a2_0x1b5714(0x192))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x22e))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xf5),a2_0x1b5714(0x9a))[a2_0x1b5714(0x1cd)](async(_0x54a765,_0x364f31)=>{const _0x5a4360=a2_0x1b5714,_0x397f86=new LLMProjectCreateCommand(),_0xd7b160=program['opts'](),_0x4deee2=await createTDXInstance(_0xd7b160),_0x1d4a2b=await _0x397f86['run']({'options':{..._0xd7b160,..._0x364f31},'args':[_0x54a765],'tdx':_0x4deee2});process[_0x5a4360(0x98)](_0x1d4a2b);}),projectCmd['command']('delete\x20<name>')['description'](a2_0x1b5714(0x1a4))['action'](async(_0x49c572,_0x23a806)=>{const _0x1efc96=a2_0x1b5714,_0x38c616=new LLMProjectDeleteCommand(),_0x819df8=program['opts'](),_0x11120e=await createTDXInstance(_0x819df8),_0x3eda3b=await _0x38c616['run']({'options':{..._0x819df8,..._0x23a806},'args':[_0x49c572],'tdx':_0x11120e});process[_0x1efc96(0x98)](_0x3eda3b);}),projectCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1ba))['description']('Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x169),'Output\x20folder\x20(default:\x20{project_name}.llm)')['option']('--dry-run',a2_0x1b5714(0x185))[a2_0x1b5714(0x1cd)](async(_0x4b059f,_0x13f128)=>{const _0x2bed06=a2_0x1b5714,_0x483642=new LLMProjectBackupCommand(),_0x42622c=program[_0x2bed06(0xab)](),_0x35cde2=await createTDXInstance(_0x42622c),_0x3ef5cc=await _0x483642['run']({'options':{..._0x42622c,..._0x13f128},'args':[_0x4b059f],'tdx':_0x35cde2});process[_0x2bed06(0x98)](_0x3ef5cc);}),projectCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x96))[a2_0x1b5714(0x1c0)]('Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x217),a2_0x1b5714(0x161))['option'](a2_0x1b5714(0x1cb),a2_0x1b5714(0x78))[a2_0x1b5714(0x1cd)](async(_0x4ad861,_0x12d157)=>{const _0x2a126b=a2_0x1b5714,_0x4a3304=new LLMProjectRestoreCommand(),_0x2ebd4e=program[_0x2a126b(0xab)](),_0x59e6e4=await createTDXInstance(_0x2ebd4e),_0x5a9cce=await _0x4a3304[_0x2a126b(0x261)]({'options':{..._0x2ebd4e,..._0x12d157},'args':[_0x4ad861],'tdx':_0x59e6e4});process[_0x2a126b(0x98)](_0x5a9cce);});const agentCmd=llmCmd['command'](a2_0x1b5714(0x8b))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x7f)),llmAgentListAction=async(_0xe42533,_0x348377)=>{const _0x1652c6=a2_0x1b5714,_0xf8b781=new LLMAgentsCommand(),_0x9a283b=program[_0x1652c6(0xab)](),_0x1269b8=await createTDXInstance(_0x9a283b),_0x34b1b7=await _0xf8b781['run']({'options':{..._0x9a283b,..._0x348377},'args':_0xe42533?[_0xe42533]:[],'tdx':_0x1269b8});process['exit'](_0x34b1b7);};agentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1e1))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x87))[a2_0x1b5714(0x1cd)](llmAgentListAction),llmCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1ec))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1ab))[a2_0x1b5714(0x1cd)](llmAgentListAction),agentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xa3))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x14a))['action'](async(_0x5366c1,_0x59e55b)=>{const _0x1012b9=a2_0x1b5714,_0x2fab17=new LLMAgentShowCommand(),_0xf7ad80=program['opts'](),_0x2f3128=await createTDXInstance(_0xf7ad80),_0x31bcf3=await _0x2fab17['run']({'options':{..._0xf7ad80,..._0x59e55b},'args':[_0x5366c1],'tdx':_0x2f3128});process[_0x1012b9(0x98)](_0x31bcf3);}),agentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x192))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x99))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1d2),a2_0x1b5714(0x12c))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1b2),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x1b5714(0x1b1))[a2_0x1b5714(0x15b)]('--starter-message\x20<text>',a2_0x1b5714(0x22d))['option'](a2_0x1b5714(0x14d),a2_0x1b5714(0x271),'4')[a2_0x1b5714(0x15b)](a2_0x1b5714(0xc0),a2_0x1b5714(0x223),a2_0x1b5714(0x276))['action'](async(_0x5917fd,_0x3dac54)=>{const _0xa3f1f=a2_0x1b5714,_0x322218=new LLMAgentCreateCommand(),_0x5d0478=program[_0xa3f1f(0xab)](),_0x294524=await createTDXInstance(_0x5d0478),_0x160df3=await _0x322218[_0xa3f1f(0x261)]({'options':{..._0x5d0478,..._0x3dac54},'args':[_0x5917fd],'tdx':_0x294524});process[_0xa3f1f(0x98)](_0x160df3);}),agentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x269))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x122))[a2_0x1b5714(0x15b)](a2_0x1b5714(0xf0),a2_0x1b5714(0xe7))['option'](a2_0x1b5714(0x20c),'Agent\x20prompt/instructions')[a2_0x1b5714(0x15b)](a2_0x1b5714(0xf5),a2_0x1b5714(0x212))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1d7),a2_0x1b5714(0x22d))[a2_0x1b5714(0x1cd)](async(_0x376b6b,_0x26b354)=>{const _0x4396fe=a2_0x1b5714,_0x4577ed=new LLMAgentUpdateCommand(),_0x46af43=program['opts'](),_0x4ba558=await createTDXInstance(_0x46af43),_0x63a2e0=await _0x4577ed[_0x4396fe(0x261)]({'options':{..._0x46af43,..._0x26b354},'args':[_0x376b6b],'tdx':_0x4ba558});process[_0x4396fe(0x98)](_0x63a2e0);}),agentCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x278))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x27a))['action'](async(_0x12bde6,_0x1ad301)=>{const _0x47070d=a2_0x1b5714,_0x425e74=new LLMAgentDeleteCommand(),_0x368475=program[_0x47070d(0xab)](),_0x241e6=await createTDXInstance(_0x368475),_0x323365=await _0x425e74['run']({'options':{..._0x368475,..._0x1ad301},'args':[_0x12bde6],'tdx':_0x241e6});process[_0x47070d(0x98)](_0x323365);}),llmCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1d0))['description'](a2_0x1b5714(0x250))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x17c),a2_0x1b5714(0x22f))[a2_0x1b5714(0x1cd)](async(_0xff212,_0x1577bf)=>{const _0x320bc3=a2_0x1b5714,_0x247ec7=new LLMHistoryCommand(),_0x3b6e0a=program[_0x320bc3(0xab)](),_0x4bb304=await createTDXInstance(_0x3b6e0a),_0x9c7ea1=await _0x247ec7[_0x320bc3(0x261)]({'options':{..._0x3b6e0a,..._0x1577bf},'args':_0xff212?[_0xff212]:[],'tdx':_0x4bb304});process['exit'](_0x9c7ea1);}),llmCmd[a2_0x1b5714(0x24a)]('proxy')[a2_0x1b5714(0x1c0)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0xef),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x1b5714(0x25e))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1e3),a2_0x1b5714(0x84))['option'](a2_0x1b5714(0x230),a2_0x1b5714(0x1e2))[a2_0x1b5714(0x1cd)](async _0x25bf81=>{const _0xebb60f=a2_0x1b5714,_0x3e180f=new LLMProxyCommand(),_0x21dc3e=program[_0xebb60f(0xab)](),_0x58689b=await createTDXInstance(_0x21dc3e),_0x52a43b={..._0x25bf81,'port':_0x25bf81[_0xebb60f(0x26b)]?parseInt(_0x25bf81[_0xebb60f(0x26b)],0xa):undefined},_0x268de7=await _0x3e180f[_0xebb60f(0x261)]({'options':{..._0x21dc3e,..._0x52a43b},'args':[],'tdx':_0x58689b});process[_0xebb60f(0x98)](_0x268de7);}),program[a2_0x1b5714(0x24a)]('claude\x20[args...]')[a2_0x1b5714(0x1ce)](a2_0x1b5714(0x125))[a2_0x1b5714(0x1c0)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1b2),a2_0x1b5714(0x6e),a2_0x1b5714(0x219))[a2_0x1b5714(0x15b)]('-c,\x20--continue',a2_0x1b5714(0x264))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1bb),a2_0x1b5714(0x8a))[a2_0x1b5714(0x15b)]('--no-proxy',a2_0x1b5714(0xfa))[a2_0x1b5714(0x6f)]()[a2_0x1b5714(0x175)](!![])[a2_0x1b5714(0x8c)](a2_0x1b5714(0x222),a2_0x1b5714(0xdd))[a2_0x1b5714(0x1cd)](async(_0x506ea2,_0x12848e)=>{const _0x314514=a2_0x1b5714,_0x45487d=program[_0x314514(0xab)](),_0x37ee6a=Array[_0x314514(0x241)](_0x506ea2)?_0x506ea2:[];if(_0x37ee6a[0x0]===_0x314514(0x141)){const _0x79549e=new ClaudeStatuslineCommand(),_0x1b2a38=await _0x79549e[_0x314514(0x261)]({'options':{..._0x45487d,..._0x12848e},'args':_0x37ee6a[_0x314514(0x1ca)](0x1),'tdx':null});process[_0x314514(0x98)](_0x1b2a38);}if(_0x37ee6a[0x0]===_0x314514(0x1ce)){const _0x1e3fbd=new ClaudeUsageCommand(),_0x5b4e0d=await _0x1e3fbd['run']({'options':{..._0x45487d,..._0x12848e},'args':_0x37ee6a['slice'](0x1),'tdx':null});process[_0x314514(0x98)](_0x5b4e0d);}const _0x38cbf5=new ClaudeCommand(),_0x359440=await createTDXInstance(_0x45487d),_0x3539c6=await _0x38cbf5[_0x314514(0x261)]({'options':{..._0x45487d,..._0x12848e},'args':_0x37ee6a,'tdx':_0x359440});process['exit'](_0x3539c6);}),program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x160))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xd4))['option']('--clear',a2_0x1b5714(0xc3))[a2_0x1b5714(0x1cd)](async _0x540a51=>{const _0x1822a6=a2_0x1b5714,_0x3577f3=new ContextCommand(),_0x2c42dd=program[_0x1822a6(0xab)](),_0x4f87cc=await _0x3577f3[_0x1822a6(0x261)]({'options':{..._0x2c42dd,..._0x540a51},'args':[],'tdx':null});process[_0x1822a6(0x98)](_0x4f87cc);}),program['command'](a2_0x1b5714(0x163))[a2_0x1b5714(0x1c0)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x281),a2_0x1b5714(0xc3))[a2_0x1b5714(0x1cd)](async(_0x490934,_0x4136c4,_0x137c1c)=>{const _0x2c3c57=a2_0x1b5714,_0x49fbc2=new UseCommand(),_0x510797=program['opts'](),_0x3c6e48=[];if(_0x490934)_0x3c6e48['push'](_0x490934);if(_0x4136c4)_0x3c6e48['push'](_0x4136c4);const _0x10c944=await _0x49fbc2[_0x2c3c57(0x261)]({'options':{..._0x510797,..._0x137c1c},'args':_0x3c6e48,'tdx':null});process['exit'](_0x10c944);}),program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1ee))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x79))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x17c),a2_0x1b5714(0x21d))[a2_0x1b5714(0x1cd)](async _0x80be7c=>{const _0x7f820d=a2_0x1b5714,_0x16ae5d=new ChatsCommand(),_0x6c70c3=program['opts'](),_0x55662c=await createTDXInstance(_0x6c70c3),_0x3ea385=await _0x16ae5d[_0x7f820d(0x261)]({'options':{..._0x6c70c3,..._0x80be7c},'args':[],'tdx':_0x55662c});process['exit'](_0x3ea385);});const authCmd=program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x83))[a2_0x1b5714(0x1c0)]('Authentication\x20management');async function runAuthStatusCommand(_0x4e3470){const _0x455b03=a2_0x1b5714,_0x1b9411=new AuthStatusCommand(),_0x3cb8d9=program[_0x455b03(0xab)](),_0x5d6460=await createTDXInstance(_0x3cb8d9),_0x189561=await _0x1b9411['run']({'options':{..._0x3cb8d9,..._0x4e3470},'args':[],'tdx':_0x5d6460});process[_0x455b03(0x98)](_0x189561);}function a2_0x5e81(_0x950d8b,_0x433d79){_0x950d8b=_0x950d8b-0x6b;const _0x32b770=a2_0x32b7();let _0x5e812f=_0x32b770[_0x950d8b];return _0x5e812f;}authCmd[a2_0x1b5714(0x1cd)](runAuthStatusCommand),authCmd['command']('status')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xb5))['action'](runAuthStatusCommand),authCmd['command'](a2_0x1b5714(0x119))['description'](a2_0x1b5714(0x8e))['addHelpText'](a2_0x1b5714(0x222),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')[a2_0x1b5714(0x1cd)](async _0x5c5a6b=>{const _0x202418=a2_0x1b5714,_0x348b44=new AuthSetupCommand(),_0x172f8d=program['opts'](),_0x31ec6d=await createTDXInstance(_0x172f8d),_0x13a1ca=await _0x348b44[_0x202418(0x261)]({'options':{..._0x172f8d,..._0x5c5a6b},'args':[],'tdx':_0x31ec6d});process['exit'](_0x13a1ca);}),authCmd['command']('clear')[a2_0x1b5714(0x1c0)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x1b5714(0x222),a2_0x1b5714(0x90))['action'](async _0x54d0e9=>{const _0x1d1c1f=new AuthClearCommand(),_0x424a60=program['opts'](),_0x11e1d6=await _0x1d1c1f['run']({'options':{..._0x424a60,..._0x54d0e9},'args':[],'tdx':null});process['exit'](_0x11e1d6);});const userCmd=program['command'](a2_0x1b5714(0x190))['description']('User\x20management\x20commands'),userListAction=async _0x50a06e=>{const _0x5214ef=a2_0x1b5714,_0x5bd97e=new UserListCommand(),_0x1147d2=program[_0x5214ef(0xab)](),_0x1b958a=await createTDXInstance(_0x1147d2),_0x2a93d5=await _0x5bd97e[_0x5214ef(0x261)]({'options':{..._0x1147d2,..._0x50a06e},'args':[],'tdx':_0x1b958a});process['exit'](_0x2a93d5);};userCmd[a2_0x1b5714(0x1cd)](async _0x552a85=>{const _0x46cd04=a2_0x1b5714,_0x5dcc26=new UserCommand(),_0x4c0ac5=program['opts'](),_0x3c539d=await createTDXInstance(_0x4c0ac5),_0x3c02e8=await _0x5dcc26[_0x46cd04(0x261)]({'options':{..._0x4c0ac5,..._0x552a85},'args':[],'tdx':_0x3c539d});process['exit'](_0x3c02e8);}),userCmd['command'](a2_0x1b5714(0x23b))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xb9))[a2_0x1b5714(0x1cd)](userListAction),program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1ed))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x82))[a2_0x1b5714(0x1cd)](userListAction),program[a2_0x1b5714(0x24a)](a2_0x1b5714(0xbb))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x238))['action'](async _0x468bff=>{const _0x20ef67=a2_0x1b5714,_0x31b646=new ProfilesCommand(),_0x2da447=program[_0x20ef67(0xab)](),_0x102e6f=await _0x31b646['run']({'options':{..._0x2da447,..._0x468bff},'args':[],'tdx':null});process[_0x20ef67(0x98)](_0x102e6f);});const engageCmd=program[a2_0x1b5714(0x24a)](a2_0x1b5714(0xb0))[a2_0x1b5714(0x1c0)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x4233ba=>{return async(_0x122531,_0x1cd9d3)=>{const _0x3dfaa2=a2_0x5e81,_0x2f2fad=new _0x4233ba(),_0x381393=program[_0x3dfaa2(0xab)](),_0x3f239b=await createTDXInstance(_0x381393),_0x28493e=await _0x2f2fad[_0x3dfaa2(0x261)]({'options':{..._0x381393,..._0x1cd9d3},'args':[_0x122531],'tdx':_0x3f239b});process[_0x3dfaa2(0x98)](_0x28493e);};},createEngageNoArgAction=_0x73009=>{return async _0x55f060=>{const _0x4c9e5d=a2_0x5e81,_0x50a701=new _0x73009(),_0x2c7a8f=program[_0x4c9e5d(0xab)](),_0x306fd3=await createTDXInstance(_0x2c7a8f),_0x20b4b0=await _0x50a701[_0x4c9e5d(0x261)]({'options':{..._0x2c7a8f,..._0x55f060},'args':[],'tdx':_0x306fd3});process['exit'](_0x20b4b0);};},campaignCmd=engageCmd['command'](a2_0x1b5714(0x15c))[a2_0x1b5714(0x1c0)]('Campaign\x20management'),campaignListAction=async(_0x4c9ac8,_0x3269f3)=>{const _0x385668=a2_0x1b5714,_0x55cc88=new EngageCampaignsCommand(),_0x11aad7=program[_0x385668(0xab)](),_0x3927a0=await createTDXInstance(_0x11aad7),_0x44c96f=await _0x55cc88[_0x385668(0x261)]({'options':{..._0x11aad7,..._0x3269f3},'args':_0x4c9ac8?[_0x4c9ac8]:[],'tdx':_0x3927a0});process[_0x385668(0x98)](_0x44c96f);};campaignCmd['command'](a2_0x1b5714(0x1e1))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x197))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x258),a2_0x1b5714(0x159))['option'](a2_0x1b5714(0x210),a2_0x1b5714(0xc4))[a2_0x1b5714(0x15b)]('--workspace\x20<name>',a2_0x1b5714(0x137))[a2_0x1b5714(0x1cd)](campaignListAction),engageCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1ef))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1d4))['option'](a2_0x1b5714(0x258),a2_0x1b5714(0x159))[a2_0x1b5714(0x15b)]('--status\x20<status>',a2_0x1b5714(0xc4))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x173),a2_0x1b5714(0x137))[a2_0x1b5714(0x1cd)](campaignListAction),campaignCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1d9))['description'](a2_0x1b5714(0x193))[a2_0x1b5714(0x15b)]('--workspace\x20<name>','Workspace\x20name')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x176),a2_0x1b5714(0x75))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xbf))['requiredOption'](a2_0x1b5714(0x1f3),a2_0x1b5714(0x13b))[a2_0x1b5714(0x191)](a2_0x1b5714(0x258),a2_0x1b5714(0x21a))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x173),a2_0x1b5714(0x165))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1a5),a2_0x1b5714(0x216))[a2_0x1b5714(0x15b)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x23a),a2_0x1b5714(0x1aa))[a2_0x1b5714(0x15b)]('--json-columns\x20<cols>',a2_0x1b5714(0x7c))[a2_0x1b5714(0x15b)]('--start-at\x20<datetime>',a2_0x1b5714(0x1f6))[a2_0x1b5714(0x15b)]('--timezone\x20<tz>',a2_0x1b5714(0x15e))[a2_0x1b5714(0x1cd)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x24b))['description'](a2_0x1b5714(0x136))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x173),a2_0x1b5714(0x137))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1f3),a2_0x1b5714(0x201))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1a5),a2_0x1b5714(0x216))['option'](a2_0x1b5714(0x226),a2_0x1b5714(0x134))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x23a),a2_0x1b5714(0x1aa))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1e0),a2_0x1b5714(0x7c))['option'](a2_0x1b5714(0x1c4),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x1b5714(0x15b)](a2_0x1b5714(0xe6),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x1b5714(0x1cd)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1b4))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x126))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x173),a2_0x1b5714(0x137))['option'](a2_0x1b5714(0x15f),a2_0x1b5714(0x279))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x1b5714(0xd5))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1fd))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x173),'Workspace\x20name')['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')[a2_0x1b5714(0x1c0)]('Pause\x20a\x20campaign')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x173),'Workspace\x20name')['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xc6))[a2_0x1b5714(0x1c0)]('Resume\x20a\x20paused\x20campaign')['option'](a2_0x1b5714(0x173),a2_0x1b5714(0x137))[a2_0x1b5714(0x1cd)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x1b5714(0x24a)]('duplicate\x20<name-or-id>')[a2_0x1b5714(0x1c0)]('Duplicate\x20a\x20campaign')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x173),a2_0x1b5714(0x137))[a2_0x1b5714(0x1cd)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x1b5714(0x249))['description'](a2_0x1b5714(0x187)),templateListAction=async(_0xa7c523,_0x243192)=>{const _0x1f27ba=a2_0x1b5714,_0x49584e=new EngageTemplatesCommand(),_0x22975e=program[_0x1f27ba(0xab)](),_0x16d78d=await createTDXInstance(_0x22975e),_0x3c6519=await _0x49584e[_0x1f27ba(0x261)]({'options':{..._0x22975e,..._0x243192},'args':_0xa7c523?[_0xa7c523]:[],'tdx':_0x16d78d});process[_0x1f27ba(0x98)](_0x3c6519);};templateCmd[a2_0x1b5714(0x24a)]('list\x20[pattern]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x10a))['option'](a2_0x1b5714(0x173),a2_0x1b5714(0x137))['action'](templateListAction),engageCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x114))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xfc))[a2_0x1b5714(0x15b)]('--workspace\x20<name>',a2_0x1b5714(0x137))['action'](templateListAction),templateCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1d9))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x194))['option'](a2_0x1b5714(0x173),'Workspace\x20name')['option'](a2_0x1b5714(0x176),a2_0x1b5714(0x75))[a2_0x1b5714(0x1cd)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x263))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x152))['requiredOption'](a2_0x1b5714(0x1f3),a2_0x1b5714(0x257))[a2_0x1b5714(0x191)]('--subject\x20<subject>','Email\x20subject\x20template')['requiredOption'](a2_0x1b5714(0xa7),a2_0x1b5714(0x133))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x173),a2_0x1b5714(0x165))['option'](a2_0x1b5714(0x170),a2_0x1b5714(0x7e))[a2_0x1b5714(0x15b)]('--editor-type\x20<type>',a2_0x1b5714(0x149))[a2_0x1b5714(0x1cd)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x24b))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x273))['option'](a2_0x1b5714(0x173),a2_0x1b5714(0x137))['option']('--name\x20<name>',a2_0x1b5714(0x97))['option'](a2_0x1b5714(0x118),a2_0x1b5714(0x25c))[a2_0x1b5714(0x15b)]('--html\x20<html>',a2_0x1b5714(0x133))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x170),a2_0x1b5714(0x7e))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1b4))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xc5))['option'](a2_0x1b5714(0x173),a2_0x1b5714(0x137))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x15f),a2_0x1b5714(0x279))[a2_0x1b5714(0x1cd)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xf8))['description'](a2_0x1b5714(0xf2)),workspaceListAction=async(_0x2a955c,_0x45989b)=>{const _0x2fdaef=a2_0x1b5714,_0x2340fa=new EngageWorkspacesCommand(),_0x34202f=program[_0x2fdaef(0xab)](),_0x1a9f23=await createTDXInstance(_0x34202f),_0x4fca07=await _0x2340fa[_0x2fdaef(0x261)]({'options':{..._0x34202f,..._0x45989b},'args':_0x2a955c?[_0x2a955c]:[],'tdx':_0x1a9f23});process['exit'](_0x4fca07);};workspaceCmd['command']('list\x20[pattern]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xa2))[a2_0x1b5714(0x1cd)](workspaceListAction),engageCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1c1))['description']('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x1b5714(0x1cd)](workspaceListAction),workspaceCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1d9))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0xbe))[a2_0x1b5714(0x15b)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x263))['description'](a2_0x1b5714(0x1f9))['requiredOption'](a2_0x1b5714(0x1f3),'Workspace\x20name')[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1a5),a2_0x1b5714(0x1b6))[a2_0x1b5714(0x1cd)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x1b5714(0x24a)]('update\x20<name-or-id>')['description'](a2_0x1b5714(0x117))['option']('--name\x20<name>',a2_0x1b5714(0x207))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1a5),a2_0x1b5714(0x1b6))[a2_0x1b5714(0x1cd)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command'](a2_0x1b5714(0x1b4))['description'](a2_0x1b5714(0x13a))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x15f),a2_0x1b5714(0x279))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1d5))['description'](a2_0x1b5714(0x104))[a2_0x1b5714(0x1cd)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x13c))['description'](a2_0x1b5714(0xf7)),connectionListAction=async _0x531c79=>{const _0x1bb41d=a2_0x1b5714,_0x319ec8=new ConnectionListCommand(),_0x38232f=program[_0x1bb41d(0xab)](),_0x13c575=await createTDXInstance(_0x38232f),_0x587f3a=await _0x319ec8[_0x1bb41d(0x261)]({'options':{..._0x38232f,..._0x531c79},'args':[],'tdx':_0x13c575});process[_0x1bb41d(0x98)](_0x587f3a);};connectionCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x23b))['description'](a2_0x1b5714(0x1bc))[a2_0x1b5714(0x1cd)](connectionListAction),program['command']('connections',{'hidden':!![]})[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x1f7))[a2_0x1b5714(0x1cd)](connectionListAction),connectionCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x110))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x17d))['action'](async(_0x3650f3,_0x57c0d0)=>{const _0x4c5edf=a2_0x1b5714,_0x5a9202=new ConnectionShowCommand(),_0x290150=program['opts'](),_0x16a73e=await createTDXInstance(_0x290150),_0x548365=await _0x5a9202['run']({'options':{..._0x290150,..._0x57c0d0},'args':[_0x3650f3],'tdx':_0x16a73e});process[_0x4c5edf(0x98)](_0x548365);});const journeyCmd=program[a2_0x1b5714(0x24a)](a2_0x1b5714(0x91))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x232));journeyCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0x1e1))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x76))[a2_0x1b5714(0x1cd)](async(_0x249564,_0x1a47fe)=>{const _0x2353bc=a2_0x1b5714,_0x232f13=new JourneyListCommand(),_0x251e92=program[_0x2353bc(0xab)](),_0x3af1a4=await createTDXInstance(_0x251e92),_0x7aca81=await _0x232f13['run']({'options':{..._0x251e92,..._0x1a47fe},'args':_0x249564?[_0x249564]:[],'tdx':_0x3af1a4});process[_0x2353bc(0x98)](_0x7aca81);}),journeyCmd[a2_0x1b5714(0x24a)]('view\x20<name-or-path>')[a2_0x1b5714(0x1c0)]('Show\x20journey\x20details')['option'](a2_0x1b5714(0x209),a2_0x1b5714(0x10e))[a2_0x1b5714(0x1cd)](async(_0x3b720d,_0x1bcb7b)=>{const _0x325836=a2_0x1b5714,_0x2cafb1=new JourneyViewCommand(),_0x2afd46=program[_0x325836(0xab)](),_0xfbbcfd=await createTDXInstance(_0x2afd46),_0x2f7508=await _0x2cafb1[_0x325836(0x261)]({'options':{..._0x2afd46,..._0x1bcb7b},'args':[_0x3b720d],'tdx':_0xfbbcfd});process[_0x325836(0x98)](_0x2f7508);}),journeyCmd[a2_0x1b5714(0x24a)](a2_0x1b5714(0xce))[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x129))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x11f),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x1b5714(0x1cd)](async(_0x17be1d,_0x8b58bf)=>{const _0x474c67=a2_0x1b5714,_0x7c62d0=new JourneyStatsCommand(),_0xbdd84b=program['opts'](),_0x5547ff=await createTDXInstance(_0xbdd84b),_0x50c9ae=await _0x7c62d0[_0x474c67(0x261)]({'options':{..._0xbdd84b,..._0x8b58bf},'args':[_0x17be1d],'tdx':_0x5547ff});process[_0x474c67(0x98)](_0x50c9ae);}),journeyCmd[a2_0x1b5714(0x24a)]('pause\x20<name-or-path>')[a2_0x1b5714(0x1c0)]('Pause\x20a\x20running\x20journey')[a2_0x1b5714(0x1cd)](async(_0x4bf9c7,_0x41141c)=>{const _0x5ecfa3=a2_0x1b5714,_0x482794=new JourneyPauseCommand(),_0x405d0b=program[_0x5ecfa3(0xab)](),_0x4e555e=await createTDXInstance(_0x405d0b),_0x23f917=await _0x482794[_0x5ecfa3(0x261)]({'options':{..._0x405d0b,..._0x41141c},'args':[_0x4bf9c7],'tdx':_0x4e555e});process[_0x5ecfa3(0x98)](_0x23f917);}),journeyCmd[a2_0x1b5714(0x24a)]('resume\x20<name-or-path>')['description'](a2_0x1b5714(0x1d3))[a2_0x1b5714(0x1cd)](async(_0x11f57e,_0xe71d)=>{const _0x188463=a2_0x1b5714,_0x5beea6=new JourneyResumeCommand(),_0x454054=program[_0x188463(0xab)](),_0x20a924=await createTDXInstance(_0x454054),_0x1453fa=await _0x5beea6['run']({'options':{..._0x454054,..._0xe71d},'args':[_0x11f57e],'tdx':_0x20a924});process[_0x188463(0x98)](_0x1453fa);}),journeyCmd[a2_0x1b5714(0x24a)]('pull\x20[name]')[a2_0x1b5714(0x1c0)](a2_0x1b5714(0x7d))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x26c),a2_0x1b5714(0x279))[a2_0x1b5714(0x15b)](a2_0x1b5714(0x1cb),a2_0x1b5714(0xdb))[a2_0x1b5714(0x1cd)](async(_0x50a3fd,_0xed2839)=>{const _0xace823=a2_0x1b5714,_0x313a6b=new JourneyPullCommand(),_0x8ab182=program[_0xace823(0xab)](),_0x3882be=await createTDXInstance(_0x8ab182),_0x4464ec=await _0x313a6b[_0xace823(0x261)]({'options':{..._0x8ab182,..._0xed2839},'args':_0x50a3fd?[_0x50a3fd]:[],'tdx':_0x3882be});process[_0xace823(0x98)](_0x4464ec);});export{program};export function runCLI(){const _0x155d41=a2_0x1b5714;program[_0x155d41(0x1c6)](process['argv']);!process[_0x155d41(0x9e)][_0x155d41(0x1ca)](0x2)[_0x155d41(0x157)]&&program[_0x155d41(0x198)]();const _0x3dd60b=packageJson[_0x155d41(0x107)];process[_0x155d41(0x167)]['isTTY']&&process[_0x155d41(0x9e)][_0x155d41(0x157)]>0x2&&!_0x3dd60b[_0x155d41(0x108)](_0x155d41(0x20f))&&checkForUpdate(_0x3dd60b)['then'](_0x9689ae=>{_0x9689ae&&displayUpdateNotification(_0x9689ae);})['catch'](()=>{});}