@treasuredata/tdx 0.9.4 → 0.9.5

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 (151) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client/cdp-api-client.js +1 -1
  8. package/dist/client/engage-api-client.js +1 -1
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/rate-limiter.js +1 -1
  12. package/dist/client/td-api-client.d.ts +45 -1
  13. package/dist/client/td-api-client.d.ts.map +1 -1
  14. package/dist/client/td-api-client.js +1 -1
  15. package/dist/client/td-api-client.js.map +1 -1
  16. package/dist/client/trino-api-client.js +1 -1
  17. package/dist/client/workflow-client.js +1 -1
  18. package/dist/commands/activations.js +1 -1
  19. package/dist/commands/agent-command.js +1 -1
  20. package/dist/commands/api-command.js +1 -1
  21. package/dist/commands/auth-command.js +1 -1
  22. package/dist/commands/chat-command.js +1 -1
  23. package/dist/commands/claude-command.js +1 -1
  24. package/dist/commands/claude-statusline-command.js +1 -1
  25. package/dist/commands/claude-usage-command.js +1 -1
  26. package/dist/commands/command.js +1 -1
  27. package/dist/commands/connection-command.d.ts +35 -0
  28. package/dist/commands/connection-command.d.ts.map +1 -1
  29. package/dist/commands/connection-command.js +1 -1
  30. package/dist/commands/connection-command.js.map +1 -1
  31. package/dist/commands/context-command.js +1 -1
  32. package/dist/commands/databases.js +1 -1
  33. package/dist/commands/describe.js +1 -1
  34. package/dist/commands/engage-command.js +1 -1
  35. package/dist/commands/job-command.js +1 -1
  36. package/dist/commands/journey-command.d.ts.map +1 -1
  37. package/dist/commands/journey-command.js +1 -1
  38. package/dist/commands/journey-command.js.map +1 -1
  39. package/dist/commands/llm-command.js +1 -1
  40. package/dist/commands/llm-proxy.js +1 -1
  41. package/dist/commands/parent-segment-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/segment-command.js +1 -1
  45. package/dist/commands/segment-create-command.js +1 -1
  46. package/dist/commands/segment-fields-command.js +1 -1
  47. package/dist/commands/segment-pull-command.d.ts.map +1 -1
  48. package/dist/commands/segment-pull-command.js +1 -1
  49. package/dist/commands/segment-pull-command.js.map +1 -1
  50. package/dist/commands/segment-push-command.d.ts.map +1 -1
  51. package/dist/commands/segment-push-command.js +1 -1
  52. package/dist/commands/segment-push-command.js.map +1 -1
  53. package/dist/commands/segment-update-command.js +1 -1
  54. package/dist/commands/segment-use-command.js +1 -1
  55. package/dist/commands/segments.js +1 -1
  56. package/dist/commands/show.js +1 -1
  57. package/dist/commands/tables.js +1 -1
  58. package/dist/commands/use-command.js +1 -1
  59. package/dist/commands/user-command.js +1 -1
  60. package/dist/commands/workflow-command.js +1 -1
  61. package/dist/core/auth.js +1 -1
  62. package/dist/core/config.js +1 -1
  63. package/dist/core/connection-cache.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.js +1 -1
  66. package/dist/core/keychain.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/index.js +1 -1
  72. package/dist/proxy/anthropic-adapter.js +1 -1
  73. package/dist/proxy/claude-usage-tracker.js +1 -1
  74. package/dist/proxy/context-signature.js +1 -1
  75. package/dist/proxy/conversation-utils.js +1 -1
  76. package/dist/proxy/server.js +1 -1
  77. package/dist/proxy/session-cache.js +1 -1
  78. package/dist/sdk/agent/agent-yaml.js +1 -1
  79. package/dist/sdk/api.js +1 -1
  80. package/dist/sdk/connection-validator.d.ts +119 -0
  81. package/dist/sdk/connection-validator.d.ts.map +1 -0
  82. package/dist/sdk/connection-validator.js +1 -0
  83. package/dist/sdk/connection-validator.js.map +1 -0
  84. package/dist/sdk/connection.d.ts +120 -1
  85. package/dist/sdk/connection.d.ts.map +1 -1
  86. package/dist/sdk/connection.js +1 -1
  87. package/dist/sdk/connection.js.map +1 -1
  88. package/dist/sdk/engage.js +1 -1
  89. package/dist/sdk/errors.d.ts +4 -0
  90. package/dist/sdk/errors.d.ts.map +1 -1
  91. package/dist/sdk/errors.js +1 -1
  92. package/dist/sdk/errors.js.map +1 -1
  93. package/dist/sdk/index.js +1 -1
  94. package/dist/sdk/job.js +1 -1
  95. package/dist/sdk/journey.js +1 -1
  96. package/dist/sdk/llm.js +1 -1
  97. package/dist/sdk/query.js +1 -1
  98. package/dist/sdk/segment/child-segment-yaml.d.ts +22 -6
  99. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  100. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  101. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  102. package/dist/sdk/segment/journey-yaml.js +1 -1
  103. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  104. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  105. package/dist/sdk/segment.js +1 -1
  106. package/dist/sdk/user.js +1 -1
  107. package/dist/sdk/workflow.js +1 -1
  108. package/dist/types/connector-schema.d.ts +182 -0
  109. package/dist/types/connector-schema.d.ts.map +1 -0
  110. package/dist/types/connector-schema.js +1 -0
  111. package/dist/types/connector-schema.js.map +1 -0
  112. package/dist/types/endpoints.js +1 -1
  113. package/dist/types/index.d.ts +2 -0
  114. package/dist/types/index.d.ts.map +1 -1
  115. package/dist/types/index.js +1 -1
  116. package/dist/utils/agent-config.js +1 -1
  117. package/dist/utils/agent-ref-parser.js +1 -1
  118. package/dist/utils/async.js +1 -1
  119. package/dist/utils/chat-cache.js +1 -1
  120. package/dist/utils/colors.js +1 -1
  121. package/dist/utils/command-output.js +1 -1
  122. package/dist/utils/constants.js +1 -1
  123. package/dist/utils/diff.js +1 -1
  124. package/dist/utils/fields-display.js +1 -1
  125. package/dist/utils/file-permissions.js +1 -1
  126. package/dist/utils/format-detector.js +1 -1
  127. package/dist/utils/formatters.js +1 -1
  128. package/dist/utils/journey-utils.d.ts.map +1 -1
  129. package/dist/utils/journey-utils.js +1 -1
  130. package/dist/utils/journey-utils.js.map +1 -1
  131. package/dist/utils/json-loader.js +1 -1
  132. package/dist/utils/llm-backup-utils.js +1 -1
  133. package/dist/utils/model-aliases.js +1 -1
  134. package/dist/utils/model-factors.js +1 -1
  135. package/dist/utils/option-validation.js +1 -1
  136. package/dist/utils/port.js +1 -1
  137. package/dist/utils/process.js +1 -1
  138. package/dist/utils/prompt.js +1 -1
  139. package/dist/utils/segment-path-parser.js +1 -1
  140. package/dist/utils/segment-ref-parser.js +1 -1
  141. package/dist/utils/spinner.js +1 -1
  142. package/dist/utils/sql-parser.js +1 -1
  143. package/dist/utils/sse-parser.js +1 -1
  144. package/dist/utils/string-utils.js +1 -1
  145. package/dist/utils/table-ref-parser.js +1 -1
  146. package/dist/utils/tdx-config.js +1 -1
  147. package/dist/utils/tdx-logger.js +1 -1
  148. package/dist/utils/tree-formatter.js +1 -1
  149. package/dist/utils/version-check.js +1 -1
  150. package/dist/utils/workflow-utils.js +1 -1
  151. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x482a8b=a2_0x2f80;(function(_0x18f4b2,_0x21ed25){const _0x35dd6a=a2_0x2f80,_0x47d9c6=_0x18f4b2();while(!![]){try{const _0x538001=parseInt(_0x35dd6a(0x1e0))/0x1+-parseInt(_0x35dd6a(0x3c9))/0x2*(parseInt(_0x35dd6a(0x2f3))/0x3)+-parseInt(_0x35dd6a(0x3c6))/0x4*(-parseInt(_0x35dd6a(0x3ac))/0x5)+-parseInt(_0x35dd6a(0x206))/0x6+parseInt(_0x35dd6a(0x2ab))/0x7*(parseInt(_0x35dd6a(0x2e2))/0x8)+parseInt(_0x35dd6a(0x2e6))/0x9+parseInt(_0x35dd6a(0x2ec))/0xa*(-parseInt(_0x35dd6a(0x23a))/0xb);if(_0x538001===_0x21ed25)break;else _0x47d9c6['push'](_0x47d9c6['shift']());}catch(_0x2c37bd){_0x47d9c6['push'](_0x47d9c6['shift']());}}}(a2_0x3732,0x33651));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x482a8b(0x377)](readFileSync(join(__dirname,a2_0x482a8b(0x244)),a2_0x482a8b(0x32a)));let buildInfo={};try{buildInfo=JSON[a2_0x482a8b(0x377)](readFileSync(join(__dirname,'build-info.json'),a2_0x482a8b(0x32a)));}catch{}if(process[a2_0x482a8b(0x3a2)]['includes']('--version')){let versionOutput=a2_0x482a8b(0x384)+packageJson[a2_0x482a8b(0x2f5)];buildInfo[a2_0x482a8b(0x27a)]&&(versionOutput+='\x20('+buildInfo[a2_0x482a8b(0x27a)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x482a8b(0x239)+buildInfo[a2_0x482a8b(0x225)]),console[a2_0x482a8b(0x238)](versionOutput),process['exit'](0x0);}function a2_0x2f80(_0x293bb6,_0x2f5a5d){_0x293bb6=_0x293bb6-0x1b4;const _0x373228=a2_0x3732();let _0x2f8034=_0x373228[_0x293bb6];return _0x2f8034;}const program=new Command();let description=a2_0x482a8b(0x265);buildInfo[a2_0x482a8b(0x27a)]?description+=a2_0x482a8b(0x309)+packageJson[a2_0x482a8b(0x2f5)]+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x482a8b(0x309)+packageJson[a2_0x482a8b(0x2f5)];program[a2_0x482a8b(0x21e)]('tdx')[a2_0x482a8b(0x33d)](description),program[a2_0x482a8b(0x262)]('-p,\x20--profile\x20<name>',a2_0x482a8b(0x328))['option']('--site\x20<site>',a2_0x482a8b(0x2bb),'us01')[a2_0x482a8b(0x262)](a2_0x482a8b(0x1e1),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x1fc),a2_0x482a8b(0x3a5))[a2_0x482a8b(0x262)](a2_0x482a8b(0x216),a2_0x482a8b(0x26d))['option'](a2_0x482a8b(0x30b),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')['option'](a2_0x482a8b(0x32e),a2_0x482a8b(0x1e8))[a2_0x482a8b(0x262)](a2_0x482a8b(0x343),a2_0x482a8b(0x373))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1c9),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')['option'](a2_0x482a8b(0x297),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x482a8b(0x262)](a2_0x482a8b(0x267),a2_0x482a8b(0x319),![])['option'](a2_0x482a8b(0x354),a2_0x482a8b(0x320),![])[a2_0x482a8b(0x262)](a2_0x482a8b(0x1b5),a2_0x482a8b(0x383))[a2_0x482a8b(0x262)](a2_0x482a8b(0x33b),a2_0x482a8b(0x2dd))['option'](a2_0x482a8b(0x360),a2_0x482a8b(0x1d6),'30')[a2_0x482a8b(0x262)](a2_0x482a8b(0x2a4),a2_0x482a8b(0x278),![])[a2_0x482a8b(0x262)](a2_0x482a8b(0x334),a2_0x482a8b(0x30a),![])[a2_0x482a8b(0x262)]('--session\x20<id>',a2_0x482a8b(0x2e0))['option'](a2_0x482a8b(0x1c3),a2_0x482a8b(0x2ef))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1b6),a2_0x482a8b(0x2b2))[a2_0x482a8b(0x262)]('--parent-segment\x20<name>',a2_0x482a8b(0x231))[a2_0x482a8b(0x262)](a2_0x482a8b(0x234),a2_0x482a8b(0x3ad)),program['configureHelp']({'formatHelp':(_0x38a2f8,_0xc77f28)=>{const _0x2cc6f8=a2_0x482a8b,_0xbc72c9=_0xc77f28[_0x2cc6f8(0x2c0)](_0x38a2f8,_0xc77f28),_0x43493c=0x2,_0x41f398=0x2;function _0x1b29e0(_0x5e9dad){const _0x798f=_0x2cc6f8,_0x135daa=_0x5e9dad;return!!(_0x135daa[_0x798f(0x30e)]||_0x135daa[_0x798f(0x318)]);}function _0x55eee0(_0x5de1f7,_0x26c6e6){if(_0x26c6e6){const _0x28e101=''+_0x5de1f7['padEnd'](_0xbc72c9+_0x41f398)+_0x26c6e6;return _0x28e101;}return _0x5de1f7;}function _0x4dd14d(_0x2f8492){const _0x2a774c=_0x2cc6f8;return _0x2f8492['join']('\x0a')[_0x2a774c(0x3c4)](/^/gm,'\x20'[_0x2a774c(0x271)](_0x43493c));}const _0x1cb615=[];_0x1cb615['push']('Usage:\x20'+_0xc77f28['commandUsage'](_0x38a2f8));const _0x2807ce=_0xc77f28['commandDescription'](_0x38a2f8);_0x2807ce&&(_0x1cb615['push'](''),_0x1cb615[_0x2cc6f8(0x39c)](_0x2807ce));const _0x277923=_0x38a2f8[_0x2cc6f8(0x3bc)]['filter'](_0x5d290c=>!_0x1b29e0(_0x5d290c));if(_0x277923[_0x2cc6f8(0x26b)]>0x0){if(_0x38a2f8['name']()===_0x2cc6f8(0x1db)){const _0x4719b9=_0x38a2f8[_0x2cc6f8(0x1bd)](),_0x34a202=!_0x4719b9[_0x2cc6f8(0x3b0)]&&process['stdout'][_0x2cc6f8(0x37f)],_0x521726=COMMAND_CATEGORIES,_0x440f65=(_0xce6c8c,_0x295835)=>_0x34a202?_0x295835(_0xce6c8c):_0xce6c8c,_0x1cd5aa=new Map();_0x277923[_0x2cc6f8(0x3c7)](_0x2dbc91=>{const _0x1bc7cb=_0x2cc6f8;_0x1cd5aa[_0x1bc7cb(0x2b0)](_0x2dbc91[_0x1bc7cb(0x21e)](),_0x2dbc91);}),_0x521726['forEach'](_0x3f8da1=>{const _0x936090=_0x2cc6f8,_0x4018a9=_0x3f8da1['commands'][_0x936090(0x25d)](_0x11bbb7=>_0x1cd5aa[_0x936090(0x349)](_0x11bbb7)??[]);if(_0x4018a9[_0x936090(0x26b)]>0x0){_0x1cb615[_0x936090(0x39c)](''),_0x1cb615[_0x936090(0x39c)](_0x440f65(_0x3f8da1[_0x936090(0x21e)]+':',_0x3f8da1[_0x936090(0x3c3)]));const _0x56cbbf=_0x4018a9['map'](_0xea4e=>{const _0x30a8f8=_0x936090,_0x345369=_0xc77f28[_0x30a8f8(0x2f6)](_0xea4e),_0x4d4f3a=_0xc77f28[_0x30a8f8(0x307)](_0xea4e);return _0x55eee0(_0x345369,_0x4d4f3a);});_0x1cb615[_0x936090(0x39c)](_0x4dd14d(_0x56cbbf));}}),_0x1cb615[_0x2cc6f8(0x39c)](''),_0x1cb615[_0x2cc6f8(0x39c)](_0x2cc6f8(0x375));}else{const _0x637a8f=_0x277923[_0x2cc6f8(0x2fb)](_0x2039c5=>{const _0x302c4e=_0x2cc6f8,_0x37a8a6=_0xc77f28[_0x302c4e(0x2f6)](_0x2039c5),_0x2cafb5=_0xc77f28[_0x302c4e(0x307)](_0x2039c5);return _0x55eee0(_0x37a8a6,_0x2cafb5);});_0x1cb615[_0x2cc6f8(0x39c)](''),_0x1cb615[_0x2cc6f8(0x39c)](_0x2cc6f8(0x340)),_0x1cb615[_0x2cc6f8(0x39c)](_0x4dd14d(_0x637a8f));}}const _0x21a7ea=_0x38a2f8['options'][_0x2cc6f8(0x2b4)](_0x47e81f=>!_0x1b29e0(_0x47e81f));if(_0x21a7ea[_0x2cc6f8(0x26b)]>0x0){const _0xf9765d=_0x21a7ea[_0x2cc6f8(0x2fb)](_0x34079b=>{const _0x6766e1=_0x2cc6f8,_0x375a26=_0xc77f28[_0x6766e1(0x316)](_0x34079b),_0xdaf5eb=_0xc77f28[_0x6766e1(0x22b)](_0x34079b);return _0x55eee0(_0x375a26,_0xdaf5eb);});_0x1cb615[_0x2cc6f8(0x39c)](''),_0x1cb615[_0x2cc6f8(0x39c)]('Options:'),_0x1cb615[_0x2cc6f8(0x39c)](_0x4dd14d(_0xf9765d));}const _0x2c5c4d=(_0x38a2f8['registeredArguments']||[])[_0x2cc6f8(0x2b4)](_0x2de864=>!_0x1b29e0(_0x2de864));if(_0x2c5c4d[_0x2cc6f8(0x26b)]>0x0){const _0x10edab=_0x2c5c4d['map'](_0xef77fa=>{const _0x54e9f5=_0x2cc6f8,_0x287d59=_0xc77f28[_0x54e9f5(0x2df)](_0xef77fa),_0x13f8e4=_0xc77f28['argumentDescription'](_0xef77fa);return _0x55eee0(_0x287d59,_0x13f8e4);});_0x1cb615[_0x2cc6f8(0x39c)](''),_0x1cb615[_0x2cc6f8(0x39c)](_0x2cc6f8(0x1fd)),_0x1cb615[_0x2cc6f8(0x39c)](_0x4dd14d(_0x10edab));}return _0x1cb615[_0x2cc6f8(0x2e9)]('\x0a');},'subcommandTerm':_0x281e0b=>{const _0x585775=a2_0x482a8b,_0x48e0ae=(_0x281e0b[_0x585775(0x1cd)]||[])['map'](_0x6d3944=>_0x6d3944[_0x585775(0x3c1)]?'<'+_0x6d3944[_0x585775(0x21e)]()+'>':'['+_0x6d3944[_0x585775(0x21e)]()+']')[_0x585775(0x2e9)]('\x20'),_0x1403a5=_0x281e0b[_0x585775(0x337)](),_0x165ed5=_0x1403a5[_0x585775(0x26b)]>0x0?_0x281e0b['name']()+',\x20'+_0x1403a5[_0x585775(0x2e9)](',\x20'):_0x281e0b[_0x585775(0x21e)]();return _0x48e0ae?_0x165ed5+'\x20'+_0x48e0ae:_0x165ed5;}}),program[a2_0x482a8b(0x28a)](a2_0x482a8b(0x310),_0x1e6902=>{const _0x3f5538=a2_0x482a8b,_0x4b238e=_0x1e6902[_0x3f5538(0x1bd)]();if(!_0x4b238e[_0x3f5538(0x229)]){if(_0x4b238e[_0x3f5538(0x1c8)])_0x4b238e[_0x3f5538(0x229)]=_0x3f5538(0x1c8);else{if(_0x4b238e[_0x3f5538(0x251)])_0x4b238e[_0x3f5538(0x229)]=_0x3f5538(0x251);else{if(_0x4b238e['jsonl'])_0x4b238e[_0x3f5538(0x229)]=_0x3f5538(0x2a0);else _0x4b238e[_0x3f5538(0x382)]&&(_0x4b238e[_0x3f5538(0x229)]=_0x3f5538(0x382));}}}_0x4b238e['in']&&!_0x4b238e[_0x3f5538(0x224)]&&(_0x4b238e[_0x3f5538(0x224)]=_0x4b238e['in']);if(_0x4b238e['trace'])_0x4b238e['logLevel']=LogLevel[_0x3f5538(0x22c)];else{if(_0x4b238e[_0x3f5538(0x332)])_0x4b238e['logLevel']=LogLevel['DEBUG'];else _0x4b238e[_0x3f5538(0x381)]===undefined&&(_0x4b238e[_0x3f5538(0x381)]=LogLevel[_0x3f5538(0x33f)]);}});async function createTDXInstance(_0x517599){const _0x355964=a2_0x482a8b,_0x2d8b1f=await GlobalContext[_0x355964(0x219)](_0x517599);return _0x2d8b1f['injectIntoOptions'](_0x517599),TDX[_0x355964(0x388)]({'site':_0x2d8b1f['site'],'apiKey':_0x2d8b1f[_0x355964(0x36e)],'logLevel':_0x2d8b1f[_0x355964(0x381)],'profile':_0x2d8b1f['profile']});}const databaseCmd=program[a2_0x482a8b(0x2a8)]('database')['alias']('db')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x376)),databaseListAction=async(_0x49f8e9,_0x4884cd)=>{const _0xeb05de=a2_0x482a8b,_0x2b1e52=new DatabasesCommand(),_0x5527fb=program[_0xeb05de(0x1bd)](),_0x5ae782=await createTDXInstance(_0x5527fb),_0x32c9cd=await _0x2b1e52[_0xeb05de(0x242)]({'options':{..._0x5527fb,..._0x4884cd},'args':_0x49f8e9?[_0x49f8e9]:[],'tdx':_0x5ae782});process['exit'](_0x32c9cd);};databaseCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x37b))[a2_0x482a8b(0x33d)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x482a8b(0x24f)](databaseListAction),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x347),{'hidden':!![]})[a2_0x482a8b(0x33d)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')['action'](databaseListAction),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x1ed))['description']('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x1c5),a2_0x482a8b(0x1e5))[a2_0x482a8b(0x262)]('--new',a2_0x482a8b(0x359))[a2_0x482a8b(0x24f)](async(_0x197699,_0x5ec3c3)=>{const _0x16f4cf=a2_0x482a8b,_0xf52650=new ChatCommand(),_0x2a516b=program[_0x16f4cf(0x1bd)](),_0x82bcbf=await createTDXInstance(_0x2a516b),_0xa80922=await _0xf52650[_0x16f4cf(0x242)]({'options':{..._0x2a516b,..._0x5ec3c3},'args':_0x197699,'tdx':_0x82bcbf});process[_0x16f4cf(0x249)](_0xa80922);});const apiCmd=program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x361))['summary'](a2_0x482a8b(0x288))[a2_0x482a8b(0x23e)](a2_0x482a8b(0x204),a2_0x482a8b(0x3bb))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1d2),a2_0x482a8b(0x2ad),a2_0x482a8b(0x23c))[a2_0x482a8b(0x262)]('--data\x20<data>','Request\x20body\x20as\x20JSON\x20string')[a2_0x482a8b(0x262)](a2_0x482a8b(0x26e),a2_0x482a8b(0x28e))[a2_0x482a8b(0x262)](a2_0x482a8b(0x247),a2_0x482a8b(0x313),(_0x353805,_0x830d9d)=>{return _0x830d9d?[..._0x830d9d,_0x353805]:[_0x353805];})[a2_0x482a8b(0x262)]('--type\x20<api_type>',a2_0x482a8b(0x29c),'td')[a2_0x482a8b(0x24f)](async(_0x138ba5,_0x48147b)=>{const _0x35b1b4=a2_0x482a8b;if(!_0x138ba5){apiCmd[_0x35b1b4(0x365)]();return;}const _0x2f0d41=new ApiCommand(),_0x256e2a=program['opts'](),_0xc0f9ec=await createTDXInstance(_0x256e2a),_0x5b2578=await _0x2f0d41['run']({'options':{..._0x256e2a,..._0x48147b},'args':[_0x138ba5],'tdx':_0xc0f9ec});process[_0x35b1b4(0x249)](_0x5b2578);}),tableCmd=program['command'](a2_0x482a8b(0x1c8))[a2_0x482a8b(0x33d)]('Table\x20management\x20commands'),tableListAction=async(_0x19a006,_0x283d62)=>{const _0x3a43c8=a2_0x482a8b,_0x997c1d=new TablesCommand(),_0x34c814=program[_0x3a43c8(0x1bd)](),_0x4456bd=await createTDXInstance(_0x34c814);_0x283d62['in']&&(_0x283d62[_0x3a43c8(0x224)]=_0x283d62['in']);const _0x5673ed=await _0x997c1d[_0x3a43c8(0x242)]({'options':{..._0x34c814,..._0x283d62},'args':_0x19a006?[_0x19a006]:[],'tdx':_0x4456bd});process['exit'](_0x5673ed);};tableCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x37b))['description']('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x482a8b(0x262)]('-d,\x20--database\x20<database>',a2_0x482a8b(0x260))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2de),a2_0x482a8b(0x2b2))['action'](tableListAction),program[a2_0x482a8b(0x2a8)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x482a8b(0x33d)](a2_0x482a8b(0x25f))[a2_0x482a8b(0x262)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x2de),a2_0x482a8b(0x2b2))[a2_0x482a8b(0x24f)](tableListAction),program[a2_0x482a8b(0x2a8)]('show\x20[table]')['description'](a2_0x482a8b(0x2c4))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1d1),a2_0x482a8b(0x1ca))['option'](a2_0x482a8b(0x2de),a2_0x482a8b(0x2b2))[a2_0x482a8b(0x24f)](async(_0x401204,_0xd8048e)=>{const _0x1bf7f4=a2_0x482a8b,_0x42caa3=new ShowCommand(),_0x471099=program[_0x1bf7f4(0x1bd)](),_0xada694=await createTDXInstance(_0x471099);_0xd8048e['in']&&(_0xd8048e['database']=_0xd8048e['in']);const _0x42a35c=await _0x42caa3['run']({'options':{..._0x471099,..._0xd8048e},'args':_0x401204?[_0x401204]:[],'tdx':_0xada694});process[_0x1bf7f4(0x249)](_0x42a35c);}),program['command'](a2_0x482a8b(0x2db))[a2_0x482a8b(0x1b7)](a2_0x482a8b(0x21c))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x37c))[a2_0x482a8b(0x262)]('-d,\x20--database\x20<database>',a2_0x482a8b(0x1ca))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2de),a2_0x482a8b(0x2b2))[a2_0x482a8b(0x24f)](async(_0x139d65,_0x391347)=>{const _0x3ee1a0=a2_0x482a8b,_0x4b3029=new DescribeCommand(),_0x387440=program[_0x3ee1a0(0x1bd)](),_0x24a4ac=await createTDXInstance(_0x387440);_0x391347['in']&&(_0x391347[_0x3ee1a0(0x224)]=_0x391347['in']);const _0x2c7c1a=await _0x4b3029[_0x3ee1a0(0x242)]({'options':{..._0x387440,..._0x391347},'args':_0x139d65?[_0x139d65]:[],'tdx':_0x24a4ac});process[_0x3ee1a0(0x249)](_0x2c7c1a);}),program[a2_0x482a8b(0x2a8)]('query\x20[sql]')['description'](a2_0x482a8b(0x1e2))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1d1),a2_0x482a8b(0x283))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2de),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x482a8b(0x30c),a2_0x482a8b(0x28c))[a2_0x482a8b(0x262)]('-f,\x20--file\x20<path>',a2_0x482a8b(0x38d))[a2_0x482a8b(0x262)]('--limit\x20<rows>',a2_0x482a8b(0x2d4),'40')[a2_0x482a8b(0x24f)](async(_0x166214,_0xf36c5d)=>{const _0x39ccca=a2_0x482a8b,_0x302be8=new QueryCommand(),_0x420faa=program[_0x39ccca(0x1bd)](),_0x204e23=await createTDXInstance(_0x420faa);_0xf36c5d['in']&&(_0xf36c5d[_0x39ccca(0x224)]=_0xf36c5d['in']);const _0x18fbea=await _0x302be8[_0x39ccca(0x242)]({'options':{..._0x420faa,..._0xf36c5d},'args':_0x166214?[_0x166214]:[],'tdx':_0x204e23});process[_0x39ccca(0x249)](_0x18fbea);});const segmentCmd=program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x3a6))[a2_0x482a8b(0x1b7)]('sg')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3ca)),segmentListAction=async(_0x56bdfc,_0x3f5cdf)=>{const _0xb296a=a2_0x482a8b,_0x5de30b=new SegmentsCommand(),_0x474c8d=program[_0xb296a(0x1bd)](),_0x2f4965=await createTDXInstance(_0x474c8d),_0x5bf027=await _0x5de30b['run']({'options':{..._0x474c8d,..._0x3f5cdf},'args':_0x56bdfc?[_0x56bdfc]:[],'tdx':_0x2f4965});process['exit'](_0x5bf027);};segmentCmd[a2_0x482a8b(0x2a8)]('list\x20[path]')['description'](a2_0x482a8b(0x37d))[a2_0x482a8b(0x262)](a2_0x482a8b(0x3d2),a2_0x482a8b(0x348))[a2_0x482a8b(0x262)]('--max-depth\x20<depth>',a2_0x482a8b(0x34b),'10')[a2_0x482a8b(0x262)]('-w,\x20--web','Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x482a8b(0x24f)](segmentListAction),program[a2_0x482a8b(0x2a8)]('segments\x20[path]',{'hidden':!![]})[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1b4))[a2_0x482a8b(0x262)](a2_0x482a8b(0x3d2),a2_0x482a8b(0x348))[a2_0x482a8b(0x262)]('--max-depth\x20<depth>','Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),'Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x482a8b(0x24f)](segmentListAction),segmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2d3),{'hidden':!![]})[a2_0x482a8b(0x33d)](a2_0x482a8b(0x259))[a2_0x482a8b(0x24f)](async(_0x4b7041,_0x2c1573)=>{const _0x1adf3d=a2_0x482a8b,_0x458254=new SegmentUseCommand(),_0x3aaef4=program[_0x1adf3d(0x1bd)](),_0xd1af99=await createTDXInstance(_0x3aaef4),_0x5e3ba0=await _0x458254[_0x1adf3d(0x242)]({'options':{..._0x3aaef4,..._0x2c1573},'args':[_0x4b7041],'tdx':_0xd1af99});process[_0x1adf3d(0x249)](_0x5e3ba0);});const segmentViewAction=async(_0x4b6eed,_0x301400)=>{const _0x48d30e=a2_0x482a8b,_0x23d73e=new SegmentViewCommand(),_0x53e0fd=program[_0x48d30e(0x1bd)](),_0x4c4240=await createTDXInstance(_0x53e0fd),_0x3f3ecb=await _0x23d73e[_0x48d30e(0x242)]({'options':{..._0x53e0fd,..._0x301400},'args':_0x4b6eed?[_0x4b6eed]:[],'tdx':_0x4c4240});process[_0x48d30e(0x249)](_0x3f3ecb);};segmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x250))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2ba))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),a2_0x482a8b(0x236))[a2_0x482a8b(0x24f)](segmentViewAction),segmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2dc),{'hidden':!![]})['alias'](a2_0x482a8b(0x263))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),'Open\x20segment\x20in\x20web\x20browser')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3ce))[a2_0x482a8b(0x24f)](segmentViewAction),segmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2ca))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1f8))[a2_0x482a8b(0x24f)](async(_0x42fa60,_0xd14bdb)=>{const _0x307c54=a2_0x482a8b,_0x4a5a17=new SegmentDescCommand(),_0x3bda29=program[_0x307c54(0x1bd)](),_0x1f5ece=await createTDXInstance(_0x3bda29),_0x2b2e83=await _0x4a5a17[_0x307c54(0x242)]({'options':{..._0x3bda29,..._0xd14bdb},'args':_0x42fa60?[_0x42fa60]:[],'tdx':_0x1f5ece});process[_0x307c54(0x249)](_0x2b2e83);}),segmentCmd['command']('show\x20[segment_name]')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x21f))['action'](async(_0x1eb08d,_0x17b447)=>{const _0x4a1733=a2_0x482a8b,_0x21d827=new SegmentShowCommand(),_0x289573=program[_0x4a1733(0x1bd)](),_0x5b655d=await createTDXInstance(_0x289573),_0x1419e3=await _0x21d827[_0x4a1733(0x242)]({'options':{..._0x289573,..._0x17b447},'args':_0x1eb08d?[_0x1eb08d]:[],'tdx':_0x5b655d});process[_0x4a1733(0x249)](_0x1419e3);}),segmentCmd[a2_0x482a8b(0x2a8)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x482a8b(0x33d)](a2_0x482a8b(0x305))[a2_0x482a8b(0x24f)](async(_0x59ea3b,_0xfdea82)=>{const _0x4a1471=a2_0x482a8b,_0x4c7b89=new SegmentFolderListCommand(),_0x471733=program[_0x4a1471(0x1bd)](),_0x4714d9=await createTDXInstance(_0x471733),_0x301eb4=await _0x4c7b89[_0x4a1471(0x242)]({'options':{..._0x471733,..._0xfdea82},'args':[_0x59ea3b],'tdx':_0x4714d9});process[_0x4a1471(0x249)](_0x301eb4);});const folderCmd=segmentCmd['command']('folder',{'hidden':!![]})[a2_0x482a8b(0x33d)](a2_0x482a8b(0x34e));folderCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x3d0))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x24c))['action'](async(_0x392b19,_0x4c548b)=>{const _0x551f40=a2_0x482a8b,_0x14649e=new SegmentFolderShowCommand(),_0x32b770=program[_0x551f40(0x1bd)](),_0x5deb13=await createTDXInstance(_0x32b770),_0x3e9db9=await _0x14649e[_0x551f40(0x242)]({'options':{..._0x32b770,..._0x4c548b},'args':[_0x392b19],'tdx':_0x5deb13});process[_0x551f40(0x249)](_0x3e9db9);}),segmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x3b5))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2cc))[a2_0x482a8b(0x24f)](async(_0x19505e,_0x2b3322)=>{const _0x29dca6=new SegmentSQLCommand(),_0x1f940d=program['opts'](),_0x3cc3ad=await createTDXInstance(_0x1f940d),_0x4b5f7a=await _0x29dca6['run']({'options':{..._0x1f940d,..._0x2b3322},'args':_0x19505e?[_0x19505e]:[],'tdx':_0x3cc3ad});process['exit'](_0x4b5f7a);}),segmentCmd['command'](a2_0x482a8b(0x31a))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1ef))[a2_0x482a8b(0x24f)](async(_0xfe8b80,_0x2b5d77)=>{const _0x2e5554=a2_0x482a8b,_0x2f8ab3=new SegmentFieldsCommand(),_0x3133f3=program[_0x2e5554(0x1bd)](),_0x4d6310=await createTDXInstance(_0x3133f3),_0x14a057=await _0x2f8ab3[_0x2e5554(0x242)]({'options':{..._0x3133f3,..._0x2b5d77},'args':_0xfe8b80?[_0xfe8b80]:[],'tdx':_0x4d6310});process[_0x2e5554(0x249)](_0x14a057);}),segmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x35c))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x21b))[a2_0x482a8b(0x262)](a2_0x482a8b(0x334),a2_0x482a8b(0x30a))['option']('--dry-run',a2_0x482a8b(0x257))[a2_0x482a8b(0x24f)](async(_0x579d37,_0x319352)=>{const _0x44fef6=a2_0x482a8b,_0x2a927f=new SegmentPullCommand(),_0x41a4a0=program[_0x44fef6(0x1bd)](),_0x59d174=await createTDXInstance(_0x41a4a0),_0x4f6c8a=await _0x2a927f[_0x44fef6(0x242)]({'options':{..._0x41a4a0,..._0x319352},'args':_0x579d37?[_0x579d37]:[],'tdx':_0x59d174});process[_0x44fef6(0x249)](_0x4f6c8a);}),segmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x1eb))[a2_0x482a8b(0x33d)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')['option'](a2_0x482a8b(0x334),a2_0x482a8b(0x30a))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2a4),a2_0x482a8b(0x257))['option'](a2_0x482a8b(0x336),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x482a8b(0x24f)](async(_0x57366e,_0x564a6e)=>{const _0x143c91=a2_0x482a8b,_0x1f83d7=new SegmentPushCommand(),_0x432876=program[_0x143c91(0x1bd)](),_0x230431=await createTDXInstance(_0x432876),_0x2270d7=await _0x1f83d7[_0x143c91(0x242)]({'options':{..._0x432876,..._0x564a6e},'args':_0x57366e?[_0x57366e]:[],'tdx':_0x230431});process[_0x143c91(0x249)](_0x2270d7);}),segmentCmd['command'](a2_0x482a8b(0x2c5),{'hidden':!![]})[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2c7))[a2_0x482a8b(0x262)]('--description\x20<text>',a2_0x482a8b(0x1b9))[a2_0x482a8b(0x262)]('--rule\x20<json>',a2_0x482a8b(0x37a))['option'](a2_0x482a8b(0x300),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x482a8b(0x262)](a2_0x482a8b(0x284),'Folder\x20name\x20for\x20organization')[a2_0x482a8b(0x262)](a2_0x482a8b(0x1ec),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x482a8b(0x262)](a2_0x482a8b(0x214),a2_0x482a8b(0x2e4))[a2_0x482a8b(0x262)](a2_0x482a8b(0x38e),'Skip\x20population\x20counting')[a2_0x482a8b(0x24f)](async(_0x55b378,_0x11ec7a)=>{const _0x11760f=a2_0x482a8b,_0x1461bc=new SegmentCreateCommand(),_0x432584=program[_0x11760f(0x1bd)](),_0x20f6f9=await createTDXInstance(_0x432584),_0x58d4dd=await _0x1461bc[_0x11760f(0x242)]({'options':{..._0x432584,..._0x11ec7a},'args':[_0x55b378],'tdx':_0x20f6f9});process[_0x11760f(0x249)](_0x58d4dd);}),segmentCmd[a2_0x482a8b(0x2a8)]('update\x20<segment_name>',{'hidden':!![]})[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2d0))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2a6),a2_0x482a8b(0x1fa))[a2_0x482a8b(0x262)](a2_0x482a8b(0x209),a2_0x482a8b(0x3c2))[a2_0x482a8b(0x262)]('--rule\x20<json>',a2_0x482a8b(0x2fd))[a2_0x482a8b(0x262)]('--rule-file\x20<file>',a2_0x482a8b(0x275))[a2_0x482a8b(0x262)](a2_0x482a8b(0x284),'Move\x20to\x20folder')['option'](a2_0x482a8b(0x1ec),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x482a8b(0x24f)](async(_0x255b57,_0x5bca2b)=>{const _0x13339d=a2_0x482a8b,_0x4a4d1e=new SegmentUpdateCommand(),_0x584d3b=program[_0x13339d(0x1bd)](),_0x2b016e=await createTDXInstance(_0x584d3b),_0x5cf235=await _0x4a4d1e[_0x13339d(0x242)]({'options':{..._0x584d3b,..._0x5bca2b},'args':[_0x255b57],'tdx':_0x2b016e});process[_0x13339d(0x249)](_0x5cf235);});const parentCmd=segmentCmd[a2_0x482a8b(0x2a8)]('parent',{'hidden':!![]})[a2_0x482a8b(0x33d)](a2_0x482a8b(0x29d)),parentListAction=async(_0x461570,_0x253087)=>{const _0x1dd59b=a2_0x482a8b,_0x1941d0=new ParentSegmentListCommand(),_0x355d7e=program[_0x1dd59b(0x1bd)](),_0xf368dc=await createTDXInstance(_0x355d7e),_0x470edc=await _0x1941d0[_0x1dd59b(0x242)]({'options':{..._0x355d7e,..._0x253087},'args':_0x461570?[_0x461570]:[],'tdx':_0xf368dc});process[_0x1dd59b(0x249)](_0x470edc);};parentCmd['command'](a2_0x482a8b(0x37b))[a2_0x482a8b(0x33d)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),segmentCmd['command']('parents\x20[pattern]',{'hidden':!![]})[a2_0x482a8b(0x33d)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x482a8b(0x24f)](parentListAction),parentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2f1))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x30f))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2f9),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x334),'Skip\x20confirmation\x20prompt')[a2_0x482a8b(0x24f)](async(_0x1a3e89,_0x426263)=>{const _0x467979=a2_0x482a8b,_0x462ab3=new ParentSegmentPullCommand(),_0x1d94ac=program[_0x467979(0x1bd)](),_0x2c4236=await createTDXInstance(_0x1d94ac),_0x2d0d91=await _0x462ab3[_0x467979(0x242)]({'options':{..._0x1d94ac,..._0x426263},'args':_0x1a3e89?[_0x1a3e89]:[],'tdx':_0x2c4236});process['exit'](_0x2d0d91);}),parentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2af))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x29e))[a2_0x482a8b(0x262)](a2_0x482a8b(0x334),a2_0x482a8b(0x3d1))[a2_0x482a8b(0x24f)](async(_0x2d47fb,_0x25fa60)=>{const _0x2fb4ea=a2_0x482a8b,_0x42e012=new ParentSegmentPushCommand(),_0x885dfd=program['opts'](),_0xb459f=await createTDXInstance(_0x885dfd),_0x2d440b=await _0x42e012['run']({'options':{..._0x885dfd,..._0x25fa60},'args':_0x2d47fb?[_0x2d47fb]:[],'tdx':_0xb459f});process[_0x2fb4ea(0x249)](_0x2d440b);}),parentCmd[a2_0x482a8b(0x2a8)]('validate\x20[file]')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x29b))[a2_0x482a8b(0x262)]('--master',a2_0x482a8b(0x25a))[a2_0x482a8b(0x262)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x482a8b(0x262)](a2_0x482a8b(0x1de),a2_0x482a8b(0x345))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1dd),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x1bb),a2_0x482a8b(0x2be),a2_0x482a8b(0x1c0))[a2_0x482a8b(0x24f)](async(_0x172e3b,_0x15059e)=>{const _0x3b8249=a2_0x482a8b,_0x14f2a4=new ParentSegmentValidateCommand(),_0x40370a=program[_0x3b8249(0x1bd)](),_0x49d401=await createTDXInstance(_0x40370a),_0x11e967=await _0x14f2a4[_0x3b8249(0x242)]({'options':{..._0x40370a,..._0x15059e},'args':_0x172e3b?[_0x172e3b]:[],'tdx':_0x49d401});process[_0x3b8249(0x249)](_0x11e967);}),parentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x379))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x399))[a2_0x482a8b(0x262)](a2_0x482a8b(0x22e),a2_0x482a8b(0x2b3))[a2_0x482a8b(0x262)](a2_0x482a8b(0x36d),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x482a8b(0x262)](a2_0x482a8b(0x1de),a2_0x482a8b(0x21a))[a2_0x482a8b(0x262)]('--enriched',a2_0x482a8b(0x2b7))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1bb),a2_0x482a8b(0x2be),a2_0x482a8b(0x1c0))[a2_0x482a8b(0x24f)](async(_0x5ec3be,_0x16ea7d)=>{const _0x2dec6e=a2_0x482a8b,_0x13933e=new ParentSegmentPreviewCommand(),_0x1e6057=program[_0x2dec6e(0x1bd)](),_0x52fda8=await createTDXInstance(_0x1e6057),_0x3b8f37=await _0x13933e[_0x2dec6e(0x242)]({'options':{..._0x1e6057,..._0x16ea7d},'args':_0x5ec3be?[_0x5ec3be]:[],'tdx':_0x52fda8});process[_0x2dec6e(0x249)](_0x3b8f37);}),parentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2aa))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1f2))['option'](a2_0x482a8b(0x334),a2_0x482a8b(0x3d1))[a2_0x482a8b(0x24f)](async(_0x4193d6,_0x40cd79)=>{const _0x52a97c=a2_0x482a8b,_0x420cea=new ParentSegmentRunCommand(),_0x570abe=program[_0x52a97c(0x1bd)](),_0xb76f54=await createTDXInstance(_0x570abe),_0x61c259=await _0x420cea[_0x52a97c(0x242)]({'options':{..._0x570abe,..._0x40cd79},'args':_0x4193d6?[_0x4193d6]:[],'tdx':_0xb76f54});process[_0x52a97c(0x249)](_0x61c259);});const parentSegmentCmd=program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x23b))[a2_0x482a8b(0x1b7)]('ps')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x227));parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x37b))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x254))[a2_0x482a8b(0x24f)](parentListAction),parentSegmentCmd[a2_0x482a8b(0x2a8)]('pull\x20[name]')[a2_0x482a8b(0x33d)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x482a8b(0x2f9),a2_0x482a8b(0x325))['option'](a2_0x482a8b(0x334),a2_0x482a8b(0x3d1))[a2_0x482a8b(0x262)]('-u,\x20--use',a2_0x482a8b(0x1f4))[a2_0x482a8b(0x24f)](async(_0xc8b51e,_0x561103)=>{const _0x404f75=a2_0x482a8b,_0x544552=new ParentSegmentPullCommand(),_0x5b5537=program[_0x404f75(0x1bd)](),_0x46c616=await createTDXInstance(_0x5b5537),_0x4d4ea4=await _0x544552[_0x404f75(0x242)]({'options':{..._0x5b5537,..._0x561103},'args':_0xc8b51e?[_0xc8b51e]:[],'tdx':_0x46c616});process[_0x404f75(0x249)](_0x4d4ea4);}),parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x34f))[a2_0x482a8b(0x33d)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x482a8b(0x262)]('-y,\x20--yes',a2_0x482a8b(0x3d1))[a2_0x482a8b(0x24f)](async(_0x51bc59,_0x254d71)=>{const _0x1c9de0=a2_0x482a8b,_0x55121d=new ParentSegmentPushCommand(),_0x2131b1=program[_0x1c9de0(0x1bd)](),_0x5b4736=await createTDXInstance(_0x2131b1),_0x5d6a9c=await _0x55121d[_0x1c9de0(0x242)]({'options':{..._0x2131b1,..._0x254d71},'args':_0x51bc59?[_0x51bc59]:[],'tdx':_0x5b4736});process[_0x1c9de0(0x249)](_0x5d6a9c);}),parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x355))[a2_0x482a8b(0x33d)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x482a8b(0x262)](a2_0x482a8b(0x22e),a2_0x482a8b(0x25a))[a2_0x482a8b(0x262)](a2_0x482a8b(0x36d),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x482a8b(0x262)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x482a8b(0x1dd),a2_0x482a8b(0x3b1))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1bb),a2_0x482a8b(0x2be),'-1d')[a2_0x482a8b(0x24f)](async(_0x2617fd,_0x5f1b96)=>{const _0x4ba7bb=a2_0x482a8b,_0x3275c5=new ParentSegmentValidateCommand(),_0x185ef8=program['opts'](),_0x26dae9=await createTDXInstance(_0x185ef8),_0x8b6a75=await _0x3275c5[_0x4ba7bb(0x242)]({'options':{..._0x185ef8,..._0x5f1b96},'args':_0x2617fd?[_0x2617fd]:[],'tdx':_0x26dae9});process[_0x4ba7bb(0x249)](_0x8b6a75);}),parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2f4))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x399))[a2_0x482a8b(0x262)](a2_0x482a8b(0x22e),a2_0x482a8b(0x2b3))[a2_0x482a8b(0x262)](a2_0x482a8b(0x36d),a2_0x482a8b(0x338))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1de),a2_0x482a8b(0x21a))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1dd),a2_0x482a8b(0x2b7))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1bb),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x482a8b(0x24f)](async(_0x35c2c0,_0x41aeb2)=>{const _0x56fcfe=a2_0x482a8b,_0x4a2016=new ParentSegmentPreviewCommand(),_0x598a06=program[_0x56fcfe(0x1bd)](),_0x5f2cf8=await createTDXInstance(_0x598a06),_0x2a94e3=await _0x4a2016[_0x56fcfe(0x242)]({'options':{..._0x598a06,..._0x41aeb2},'args':_0x35c2c0?[_0x35c2c0]:[],'tdx':_0x5f2cf8});process[_0x56fcfe(0x249)](_0x2a94e3);}),parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2aa))[a2_0x482a8b(0x33d)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x334),a2_0x482a8b(0x3d1))[a2_0x482a8b(0x24f)](async(_0x25432c,_0xfe036)=>{const _0x27acf8=a2_0x482a8b,_0x56e66f=new ParentSegmentRunCommand(),_0x152edc=program['opts'](),_0x5ac77a=await createTDXInstance(_0x152edc),_0x5dbc39=await _0x56e66f[_0x27acf8(0x242)]({'options':{..._0x152edc,..._0xfe036},'args':_0x25432c?[_0x25432c]:[],'tdx':_0x5ac77a});process[_0x27acf8(0x249)](_0x5dbc39);}),parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x218))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x216),a2_0x482a8b(0x2fa))['option']('--jsonl',a2_0x482a8b(0x1f5))['action'](async(_0x56462a,_0x37007f)=>{const _0x321177=a2_0x482a8b,_0x5dff55=new ParentSegmentFieldsCommand(),_0x239fe8=program[_0x321177(0x1bd)](),_0x1a65f0=await createTDXInstance(_0x239fe8),_0x135c0f=await _0x5dff55[_0x321177(0x242)]({'options':{..._0x239fe8,..._0x37007f},'args':_0x56462a?[_0x56462a]:[],'tdx':_0x1a65f0});process[_0x321177(0x249)](_0x135c0f);}),parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x213))[a2_0x482a8b(0x33d)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),a2_0x482a8b(0x1cf))['option'](a2_0x482a8b(0x216),a2_0x482a8b(0x2fa))['option'](a2_0x482a8b(0x30b),a2_0x482a8b(0x1f5))[a2_0x482a8b(0x24f)](async(_0x4db5f2,_0x1ebd61)=>{const _0x117d0f=a2_0x482a8b,_0x1e4ebd=new ParentSegmentViewCommand(),_0x170b1d=program[_0x117d0f(0x1bd)](),_0x505f1a=await createTDXInstance(_0x170b1d),_0x34922e=await _0x1e4ebd[_0x117d0f(0x242)]({'options':{..._0x170b1d,..._0x1ebd61},'args':_0x4db5f2?[_0x4db5f2]:[],'tdx':_0x505f1a});process[_0x117d0f(0x249)](_0x34922e);}),parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x303))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x202))[a2_0x482a8b(0x262)](a2_0x482a8b(0x216),a2_0x482a8b(0x2fa))[a2_0x482a8b(0x262)](a2_0x482a8b(0x30b),a2_0x482a8b(0x1f5))[a2_0x482a8b(0x24f)](async(_0x3e008b,_0x25402a)=>{const _0x12647c=a2_0x482a8b,_0x3254ea=new ParentSegmentDescCommand(),_0x472041=program['opts'](),_0x4680a6=await createTDXInstance(_0x472041),_0x3e22aa=await _0x3254ea[_0x12647c(0x242)]({'options':{..._0x472041,..._0x25402a},'args':_0x3e008b?[_0x3e008b]:[],'tdx':_0x4680a6});process[_0x12647c(0x249)](_0x3e22aa);}),parentSegmentCmd['command']('sql\x20[name]')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2e3))['option'](a2_0x482a8b(0x216),a2_0x482a8b(0x2fa))[a2_0x482a8b(0x262)]('--jsonl',a2_0x482a8b(0x1f5))['action'](async(_0x4ea54e,_0x2e1a47)=>{const _0x339c57=a2_0x482a8b,_0x977215=new ParentSegmentSQLCommand(),_0x28048a=program[_0x339c57(0x1bd)](),_0xe2616d=await createTDXInstance(_0x28048a),_0x4c794d=await _0x977215[_0x339c57(0x242)]({'options':{..._0x28048a,..._0x2e1a47},'args':_0x4ea54e?[_0x4ea54e]:[],'tdx':_0xe2616d});process[_0x339c57(0x249)](_0x4c794d);}),parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2a3))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x237))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2d1),'Limit\x20number\x20of\x20rows')['option'](a2_0x482a8b(0x216),a2_0x482a8b(0x2fa))[a2_0x482a8b(0x262)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x482a8b(0x24f)](async(_0x4dfa90,_0x472140)=>{const _0x3bb6c0=a2_0x482a8b,_0x10e510=new ParentSegmentShowCommand(),_0x6fbad5=program['opts'](),_0xe286a4=await createTDXInstance(_0x6fbad5),_0x59caa4=await _0x10e510[_0x3bb6c0(0x242)]({'options':{..._0x6fbad5,..._0x472140},'args':_0x4dfa90?[_0x4dfa90]:[],'tdx':_0xe286a4});process[_0x3bb6c0(0x249)](_0x59caa4);}),parentSegmentCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x248))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x233))[a2_0x482a8b(0x24f)](async(_0x229697,_0x5c2534)=>{const _0x1f1ca0=a2_0x482a8b,_0x2ec552=new UseCommand(),_0x226196=program['opts'](),_0x5ba62b=_0x229697?[_0x1f1ca0(0x308),_0x229697]:[],_0x161c6d=await _0x2ec552[_0x1f1ca0(0x242)]({'options':{..._0x226196,..._0x5c2534},'args':_0x5ba62b,'tdx':null});process['exit'](_0x161c6d);}),parentCmd['command']('create\x20<name>')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3be))[a2_0x482a8b(0x312)](a2_0x482a8b(0x36b),a2_0x482a8b(0x3bd))[a2_0x482a8b(0x312)](a2_0x482a8b(0x1ba),a2_0x482a8b(0x3cd))[a2_0x482a8b(0x262)](a2_0x482a8b(0x209),a2_0x482a8b(0x25b))[a2_0x482a8b(0x262)]('--schedule-type\x20<type>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x482a8b(0x262)]('--schedule-option\x20<value>',a2_0x482a8b(0x1c6))[a2_0x482a8b(0x262)](a2_0x482a8b(0x37e),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x35d),'Attributes\x20as\x20JSON\x20string')[a2_0x482a8b(0x262)](a2_0x482a8b(0x324),a2_0x482a8b(0x306))[a2_0x482a8b(0x262)](a2_0x482a8b(0x255),a2_0x482a8b(0x1c4))[a2_0x482a8b(0x262)](a2_0x482a8b(0x36a),'Behaviors\x20from\x20JSON\x20file')['option'](a2_0x482a8b(0x1c2),'Customer\x20group\x20as\x20JSON\x20string')['option'](a2_0x482a8b(0x358),a2_0x482a8b(0x1df))[a2_0x482a8b(0x24f)](async(_0x35bca6,_0x36a909)=>{const _0xc04923=a2_0x482a8b,_0x13823b=new ParentSegmentCreateCommand(),_0x29eb7e=program[_0xc04923(0x1bd)](),_0x13daed=await createTDXInstance(_0x29eb7e),_0x36ffc0=await _0x13823b[_0xc04923(0x242)]({'options':{..._0x29eb7e,..._0x36a909},'args':[_0x35bca6],'tdx':_0x13daed});process[_0xc04923(0x249)](_0x36ffc0);}),parentCmd[a2_0x482a8b(0x2a8)]('update\x20<name>')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x241))[a2_0x482a8b(0x262)](a2_0x482a8b(0x209),'Updated\x20description')[a2_0x482a8b(0x262)](a2_0x482a8b(0x395),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x482a8b(0x262)](a2_0x482a8b(0x3ab),'Updated\x20schedule\x20option')[a2_0x482a8b(0x262)](a2_0x482a8b(0x37e),a2_0x482a8b(0x274))['option'](a2_0x482a8b(0x353),a2_0x482a8b(0x329))[a2_0x482a8b(0x262)](a2_0x482a8b(0x290),a2_0x482a8b(0x221))[a2_0x482a8b(0x262)](a2_0x482a8b(0x27e),a2_0x482a8b(0x3aa))[a2_0x482a8b(0x262)]('--add-behaviors-file\x20<file>',a2_0x482a8b(0x203))['action'](async(_0x4dc405,_0x116a30)=>{const _0x41829f=a2_0x482a8b,_0x1848fc=new ParentSegmentUpdateCommand(),_0x30e05f=program[_0x41829f(0x1bd)](),_0x1b69f7=await createTDXInstance(_0x30e05f),_0x30b8dd=await _0x1848fc[_0x41829f(0x242)]({'options':{..._0x30e05f,..._0x116a30},'args':[_0x4dc405],'tdx':_0x1b69f7});process['exit'](_0x30b8dd);}),folderCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x3a7))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1ee))[a2_0x482a8b(0x262)]('--description\x20<text>',a2_0x482a8b(0x392))[a2_0x482a8b(0x262)](a2_0x482a8b(0x366),a2_0x482a8b(0x264))[a2_0x482a8b(0x24f)](async(_0x2cc5bc,_0x27663f,_0x1d139e)=>{const _0x4544cd=a2_0x482a8b,_0x28ce8f=new SegmentFolderCreateCommand(),_0xfda375=program[_0x4544cd(0x1bd)](),_0x477635=await createTDXInstance(_0xfda375),_0x128fcd=await _0x28ce8f[_0x4544cd(0x242)]({'options':{..._0xfda375,..._0x1d139e},'args':[_0x2cc5bc,_0x27663f],'tdx':_0x477635});process[_0x4544cd(0x249)](_0x128fcd);}),program['command']('activations\x20<segment_name>')[a2_0x482a8b(0x33d)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x482a8b(0x24f)](async(_0x23bcf0,_0x47a2e)=>{const _0x26922f=a2_0x482a8b,_0x55445b=new ActivationsCommand(),_0x50cddc=program[_0x26922f(0x1bd)](),_0x11d0fd=await createTDXInstance(_0x50cddc),_0x156c9a=await _0x55445b[_0x26922f(0x242)]({'options':{..._0x50cddc,..._0x47a2e},'args':[_0x23bcf0],'tdx':_0x11d0fd});process[_0x26922f(0x249)](_0x156c9a);});const workflowCmd=program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2ea))[a2_0x482a8b(0x1b7)]('wf')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x20b)),wfProjectCmd=workflowCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x1e9))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x222)),wfProjectListAction=async(_0x14f4b7,_0x25988a)=>{const _0x5c9dd0=a2_0x482a8b,_0x2b2e05=new WorkflowProjectsCommand(),_0x2e1253=program['opts'](),_0x2a459f=await createTDXInstance(_0x2e1253),_0x24e761=await _0x2b2e05['run']({'options':{..._0x2e1253,..._0x25988a},'args':_0x14f4b7?[_0x14f4b7]:[],'tdx':_0x2a459f});process[_0x5c9dd0(0x249)](_0x24e761);};wfProjectCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x37b))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x39e))[a2_0x482a8b(0x24f)](wfProjectListAction),workflowCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x207))[a2_0x482a8b(0x33d)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x482a8b(0x24f)](wfProjectListAction);const wfWorkflowListAction=async(_0x2114d0,_0x32125a)=>{const _0x18ae09=a2_0x482a8b,_0x56f815=new WorkflowWorkflowsCommand(),_0x236d7c=program[_0x18ae09(0x1bd)](),_0x5f4cd1=await createTDXInstance(_0x236d7c),_0x3c2f6a=await _0x56f815[_0x18ae09(0x242)]({'options':{..._0x236d7c,..._0x32125a},'args':_0x2114d0?[_0x2114d0]:[],'tdx':_0x5f4cd1});process[_0x18ae09(0x249)](_0x3c2f6a);};workflowCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x270))['description'](a2_0x482a8b(0x295))[a2_0x482a8b(0x24f)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x26c))[a2_0x482a8b(0x33d)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x480a68,_0x46a418)=>{const _0x547c87=a2_0x482a8b,_0x4bf2f9=new WorkflowSessionsCommand(),_0x349e7c=program['opts'](),_0x490b2f=await createTDXInstance(_0x349e7c),_0x1a74f8=await _0x4bf2f9['run']({'options':{..._0x349e7c,..._0x46a418},'args':_0x480a68?[_0x480a68]:[],'tdx':_0x490b2f});process[_0x547c87(0x249)](_0x1a74f8);};function a2_0x3732(){const _0x59aaf5=['[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--limit\x20<n>','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','use\x20<path>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','run\x20<workflow>','--name\x20<text>','show\x20<name>','Duplicate\x20a\x20campaign','--html\x20<html>','Include\x20execution\x20statistics','describe\x20[table]','info\x20[segment_name]','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--in\x20<database>','argumentTerm','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','result\x20<job-id>','151752hytzqr','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Make\x20segment\x20invisible\x20(default:\x20visible)','update\x20<agent-name>','927297hZlVFJ','--params\x20<json>','information_schema','join','workflow','slice','10ZQOqIC','Agent\x20name','Reason\x20for\x20killing\x20the\x20attempt','Database\x20to\x20use\x20(overrides\x20context)','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','pull\x20[name]','attempt:','1116138gJJwhl','preview\x20[name]','version','subcommandTerm','restore\x20<folder>','models','-o,\x20--output\x20<file>','Output\x20as\x20JSON','map','LLM\x20agent\x20management','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','New\x20workspace\x20name','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--rule-file\x20<file>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','desc\x20[name]','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Attributes\x20from\x20JSON\x20file','subcommandDescription','parent_segment',',\x20version\x20','Skip\x20confirmation\x20prompts','--jsonl','--catalog\x20<catalog>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','_hidden','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','preAction','[action]','requiredOption','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--session-time\x20<time>','includes','optionTerm','Force\x20retry\x20even\x20if\x20not\x20failed','hidden','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','fields\x20[parent_name]','Pause\x20a\x20running\x20journey','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','claude\x20[args...]','campaigns\x20[pattern]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Enable\x20verbose\x20logging','launch\x20<name-or-id>','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','create\x20<name>','--attributes-file\x20<file>','Output\x20file\x20path','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','workspaces\x20[pattern]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Add\x20attributes\x20as\x20JSON\x20string','utf-8','-o,\x20--output\x20<folder>','Create\x20an\x20email\x20template','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--tsv','--include-subtasks','pause\x20<name-or-id>','connections','debug','chats','-y,\x20--yes','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','--delete','aliases','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Output\x20directory','--trace','update\x20<name-or-id>','description','Workspace\x20management','INFO','Commands:','Delete\x20a\x20workspace','Update\x20a\x20campaign','--output\x20<file>','use\x20[resource]\x20[value]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Name\x20for\x20the\x20new\x20project\x20(required)','databases\x20[pattern]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','get','--database\x20<name>','Maximum\x20recursion\x20depth\x20(default:\x2010)','retry','Show\x20workspace\x20details','[DEPRECATED]\x20Segment\x20folder\x20management','push\x20[name]','context','job','delete\x20<name-or-id>','--add-attributes\x20<json>','-v,\x20--verbose','validate\x20[name]','Show\x20web\x20console\x20URLs\x20for\x20journeys','--subject\x20<subject>','--customer-group-file\x20<file>','Start\x20a\x20new\x20chat\x20session','End\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20agents\x20in\x20current\x20project','pull\x20[parent_or_file]','--attributes\x20<json>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Email\x20sender\x20ID\x20for\x20delivery','--timeout\x20<seconds>','api\x20[endpoint]','-r,\x20--resume','--param\x20<key=value>','Resume\x20a\x20conversation\x20(shows\x20selector)','help','--parent-folder\x20<name>','show\x20<name-or-id>','--from\x20<timestamp>','journey','--behaviors-file\x20<file>','--database\x20<db>','Show\x20campaign\x20details','--attribute\x20[name]','apiKey','--max-tool-iterations\x20<n>','Plaintext\x20template\x20content','Campaign\x20name','Template\x20name','Save\x20output\x20to\x20file','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Database\x20management\x20commands','parse','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','preview\x20[file]','Filtering\x20rule\x20as\x20JSON\x20string','list\x20[pattern]','Describe\x20table\x20schema','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','--timezone\x20<tz>','isTTY','list\x20[project]','logLevel','tsv','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','tdx\x20','argument','Resume\x20a\x20paused\x20journey','--yes','create','List\x20available\x20LLM\x20models','workspace','List\x20all\x20users\x20in\x20the\x20account','Submit\x20a\x20job','Read\x20SQL\x20query\x20from\x20file','--no-count-population','delete\x20<agent-name>','--skip-validation','attempt','Folder\x20description','retry\x20<session-id>','-n,\x20--name\x20<name>','--schedule-type\x20<type>','--editor-type\x20<type>','use\x20<name>','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','delete\x20<project-name-or-id>','Show\x20job\x20details','push','push\x20[path]','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','--to\x20<timestamp>','argv','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Campaign\x20management','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','segment','create\x20<parent_name>\x20<folder_name>','catch','Show\x20journey\x20details','Add\x20behaviors\x20as\x20JSON\x20string','--schedule-option\x20<value>','52960taxhKd','LLM\x20project\x20to\x20use\x20(overrides\x20context)','push\x20[project-name-or-dir]','\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','noColor','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','engage','backup\x20<name>','sql\x20[segment_name]','Workspace\x20name','Create\x20a\x20workspace','List\x20all\x20available\x20profiles','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--json-columns\x20<cols>','\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','commands','Master\x20database\x20name','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','history\x20[chat-id]','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','required','Updated\x20description','colorFn','replace','Push\x20without\x20confirmation','100TNkaZd','forEach','tasks','2ogVtdp','CDP\x20segment\x20management\x20commands','Show\x20connection\x20details\x20by\x20name','-f,\x20--force','Master\x20table\x20name','Show\x20segment\x20details\x20(alias\x20for\x20view)','--segment\x20<path>','show\x20<folder_ref>','Skip\x20confirmation\x20prompt','-r,\x20--recursive','Temperature\x20(0.0-2.0,\x20default:\x200.7)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--debug','--in\x20<name>','alias','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Segment\x20description','--table\x20<table>','--interval\x20<range>','Email\x20template\x20management','opts','clone\x20[source]','--name\x20<name>','-1d','stderr','--customer-group\x20<json>','-d,\x20--database\x20<name>','Behaviors\x20as\x20JSON\x20string','--agent\x20<ref>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Read\x20query\x20from\x20file','table','--limit\x20<number>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','push\x20[target]','registeredArguments','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Open\x20parent\x20segment\x20in\x20web\x20browser','allowExcessArguments','-d,\x20--database\x20<database>','-X,\x20--method\x20<method>','Workspace\x20description','setup','Clear\x20session\x20context','Set\x20operation\x20timeout\x20in\x20seconds','--clear','kill','Update\x20a\x20workspace','List\x20journeys\x20in\x20current\x20context','tdx','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--enriched','--behavior\x20[name]','Customer\x20group\x20from\x20JSON\x20file','324812RqPiQN','--format\x20<format>','Run\x20Trino\x20query\x20with\x20streaming\x20results','Show\x20console\x20URLs','llm','Agent\x20reference\x20(project-name/agent-name)','--last','CDP\x20Journey\x20Orchestration\x20commands','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','project','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','push\x20[parent_or_file]','--kind\x20<type>','chat\x20[message...]','Create\x20segment\x20folder','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Editor\x20type','HTML\x20template\x20content','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Show\x20the\x20most\x20recent\x20chat','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Output\x20as\x20JSON\x20Lines','proxy','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Show\x20segment\x20schema\x20(column\x20types)','Pause\x20a\x20campaign','New\x20segment\x20name','claude-4.5-sonnet','--table','Arguments:','then','--plaintext\x20<text>','Export\x20journey(s)\x20as\x20YAML\x20files','duplicate\x20<name-or-id>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Add\x20behaviors\x20from\x20JSON\x20file','after','Task\x20name\x20for\x20logs\x20action','1750116pAEDTR','projects\x20[pattern]','--email-sender-id\x20<id>','--description\x20<text>','--type\x20<type>','Workflow\x20(Digdag)\x20management\x20commands','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--model\x20<name>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','trino','Interactive\x20chat\x20selector','--force','view\x20[name]','--invisible','Email\x20subject\x20template','--json','--job-type\x20<type>','fields\x20[name]','createAsync','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Pull\x20child\x20segments\x20to\x20YAML\x20files','desc','Delete\x20an\x20email\x20template','name','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','use\x20<project-name>','Add\x20attributes\x20from\x20JSON\x20file','Workflow\x20project\x20management','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','database','buildTime','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Parent\x20segment\x20management','--system-prompt\x20<text>','format','--temperature\x20<n>','optionDescription','TRACE','sonnet','--master','jobs','Output\x20folder\x20(default:\x20{project_name}.llm)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Starter\x20message','Set\x20or\x20show\x20parent\x20segment\x20context','--llm-project\x20<name>','Show\x20email\x20template\x20details','Open\x20segment\x20in\x20web\x20browser','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','log','\x20-\x20built\x20','506308xnGEsS','parent-segment','GET','Resume\x20from\x20specific\x20task','addHelpText','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--full','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','run','delete\x20<name>','../package.json','Agent\x20prompt/instructions','Include\x20retried\x20attempts\x20(for\x20list)','-H,\x20--header\x20<header>','use\x20[name]','exit','Remove\x20API\x20key\x20from\x20system\x20keychain','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Job\x20management\x20commands','Create\x20a\x20new\x20agent\x20in\x20current\x20project','action','view\x20[segment_name]','json','Show\x20journey\x20statistics','submit\x20[query]','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--behaviors\x20<json>','Delete\x20an\x20agent','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--description\x20<desc>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Show\x20only\x20master\x20table\x20validation','Parent\x20segment\x20description','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','flatMap','Agent\x20description','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','pull\x20[project]\x20[agent-name]','option','describe','Parent\x20folder\x20name\x20for\x20nested\x20folders','AI-native\x20CLI\x20for\x20Treasure\x20Data','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','--no-color','agents\x20[pattern]','Show\x20agent\x20chat\x20URLs','Show\x20stats\x20for\x20specific\x20stage','length','session','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','-f,\x20--file\x20<path>','Include\x20subtasks\x20in\x20tasks\x20output','workflows\x20[project]','repeat','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Update\x20an\x20existing\x20agent','Updated\x20timezone','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Preview\x20operation\x20without\x20executing','Include\x20retried\x20attempts','gitRevision','Workspace\x20name\x20(required)','Create\x20a\x20new\x20LLM\x20project','clear','--add-behaviors\x20<json>','Launch\x20a\x20campaign','list','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','usage','Database\x20to\x20query\x20(default:\x20information_schema)','--folder\x20<name>','profiles','allowUnknownOption','connection','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','[attempt-id]','hook','--include-retried','Trino\x20catalog\x20(default:\x20td)','Project\x20description','Read\x20request\x20body\x20from\x20file','port','--add-attributes-file\x20<file>','Campaign\x20type\x20(email\x20or\x20push)','--workspace\x20<name>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','User\x20management\x20commands','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--resume-from\x20<task>','--color','Campaign\x20description','--project\x20<name>','4000','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','-c,\x20--continue','jsonl','resume\x20<name-or-path>','Kill\x20a\x20job','show\x20[name]','--dry-run','LLM\x20project\x20management','--name\x20<new_name>','attempts\x20[project]','command','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','run\x20[name]','84wtOyns','Show\x20agent\x20details','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','-w,\x20--web','push\x20[file]','set','[options]\x20--\x20[claude-code-args...]','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Show\x20master\x20table\x20sample\x20data','filter','--no-proxy','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Update\x20an\x20email\x20template','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--prompt\x20<text>','user','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','outputHelp','padWidth','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','create\x20<segment_name>','campaign','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','users','--starter-message\x20<text>','desc\x20[segment_name]','--start-at\x20<datetime>','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','pause\x20<name-or-path>','statusline','--status\x20<status>'];a2_0x3732=function(){return _0x59aaf5;};return a2_0x3732();}wfSessionCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x380))[a2_0x482a8b(0x33d)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x2cf),a2_0x482a8b(0x23f))[a2_0x482a8b(0x262)](a2_0x482a8b(0x368),a2_0x482a8b(0x3b9))[a2_0x482a8b(0x262)](a2_0x482a8b(0x3a1),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x482a8b(0x24f)](wfSessionListAction),workflowCmd[a2_0x482a8b(0x2a8)]('sessions\x20[project]')['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x2cf),a2_0x482a8b(0x23f))['option'](a2_0x482a8b(0x368),a2_0x482a8b(0x3b9))[a2_0x482a8b(0x262)](a2_0x482a8b(0x3a1),a2_0x482a8b(0x35a))[a2_0x482a8b(0x24f)](wfSessionListAction);const wfAttemptListAction=async(_0x116635,_0x2d9906)=>{const _0x9b9864=a2_0x482a8b,_0x57c985=new WorkflowAttemptsCommand(),_0x24329c=program[_0x9b9864(0x1bd)](),_0x2a8143=await createTDXInstance(_0x24329c),_0xd82dd7=await _0x57c985[_0x9b9864(0x242)]({'options':{..._0x24329c,..._0x2d9906},'args':_0x116635?[_0x116635]:[],'tdx':_0x2a8143});process[_0x9b9864(0x249)](_0xd82dd7);},attemptCmd=workflowCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x391))[a2_0x482a8b(0x33d)]('Workflow\x20attempt\x20management')[a2_0x482a8b(0x385)](a2_0x482a8b(0x289),'Attempt\x20ID')['argument'](a2_0x482a8b(0x311),a2_0x482a8b(0x3a0))[a2_0x482a8b(0x385)]('[task-name]',a2_0x482a8b(0x205))[a2_0x482a8b(0x262)](a2_0x482a8b(0x32f),a2_0x482a8b(0x26f))[a2_0x482a8b(0x262)]('--reason\x20<text>',a2_0x482a8b(0x2ee))[a2_0x482a8b(0x262)](a2_0x482a8b(0x296),'Resume\x20from\x20specific\x20task\x20(retry)')['option']('--params\x20<json>',a2_0x482a8b(0x20f))['option'](a2_0x482a8b(0x212),a2_0x482a8b(0x317))['option'](a2_0x482a8b(0x28b),a2_0x482a8b(0x246))[a2_0x482a8b(0x24f)](async(_0x1c88f1,_0x2de61a,_0x35889e,_0x36bf1b)=>{const _0x44c208=a2_0x482a8b;if(_0x1c88f1===_0x44c208(0x280)){await wfAttemptListAction(_0x2de61a,_0x36bf1b);return;}if(!_0x1c88f1){attemptCmd['help']();return;}const _0x1d40a3=program[_0x44c208(0x1bd)](),_0x4fe623=await createTDXInstance(_0x1d40a3);let _0x4abb63=0x0;if(!_0x2de61a){const _0x3950a7=new WorkflowAttemptCommand();_0x4abb63=await _0x3950a7['run']({'options':{..._0x1d40a3,..._0x36bf1b},'args':[_0x1c88f1],'tdx':_0x4fe623});}else{if(_0x2de61a==='logs'){const _0x11deb5=new WorkflowLogsCommand();_0x4abb63=await _0x11deb5['run']({'options':{..._0x1d40a3,..._0x36bf1b},'args':_0x35889e?[_0x1c88f1,_0x35889e]:[_0x1c88f1],'tdx':_0x4fe623});}else{if(_0x2de61a===_0x44c208(0x3c8)){const _0x561fc0=new WorkflowTasksCommand();_0x4abb63=await _0x561fc0[_0x44c208(0x242)]({'options':{..._0x1d40a3,..._0x36bf1b},'args':[_0x1c88f1],'tdx':_0x4fe623});}else{if(_0x2de61a===_0x44c208(0x1d8)){const _0x24d02c=new WorkflowKillCommand();_0x4abb63=await _0x24d02c[_0x44c208(0x242)]({'options':{..._0x1d40a3,..._0x36bf1b},'args':[_0x1c88f1],'tdx':_0x4fe623});}else{if(_0x2de61a===_0x44c208(0x34c)){const _0x27ec80=new WorkflowRetryCommand();_0x4abb63=await _0x27ec80[_0x44c208(0x242)]({'options':{..._0x1d40a3,..._0x36bf1b},'args':[_0x44c208(0x2f2)+_0x1c88f1],'tdx':_0x4fe623});}else console['error']('Unknown\x20action:\x20'+_0x2de61a),console['error'](_0x44c208(0x32d)),_0x4abb63=0x1;}}}}process[_0x44c208(0x249)](_0x4abb63);});attemptCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x380))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1ce))['option']('--include-retried',a2_0x482a8b(0x279))['action'](wfAttemptListAction),workflowCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2a7))['description'](a2_0x482a8b(0x30d))['option']('--include-retried','Include\x20retried\x20attempts')[a2_0x482a8b(0x24f)](wfAttemptListAction),workflowCmd['command'](a2_0x482a8b(0x393))[a2_0x482a8b(0x33d)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x482a8b(0x262)]('--from-task\x20<task>',a2_0x482a8b(0x23d))['option'](a2_0x482a8b(0x2e7),a2_0x482a8b(0x326))[a2_0x482a8b(0x24f)](async(_0x3da9b5,_0x2faebd)=>{const _0x135a34=a2_0x482a8b,_0x1493eb=new WorkflowRetryCommand(),_0xb01b2=program[_0x135a34(0x1bd)](),_0xaa85fa=await createTDXInstance(_0xb01b2),_0x5af0c1=await _0x1493eb['run']({'options':{..._0xb01b2,..._0x2faebd},'args':[_0x3da9b5],'tdx':_0xaa85fa});process[_0x135a34(0x249)](_0x5af0c1);}),workflowCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2d5))[a2_0x482a8b(0x33d)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')['option'](a2_0x482a8b(0x363),'Workflow\x20parameter\x20(repeatable)',(_0x1752a4,_0x1b3c82=[])=>[..._0x1b3c82,_0x1752a4],[])[a2_0x482a8b(0x262)](a2_0x482a8b(0x314),a2_0x482a8b(0x2f0))[a2_0x482a8b(0x24f)](async(_0x14c03b,_0x47c62e)=>{const _0x18d9d4=a2_0x482a8b,_0x7e42cd=new WorkflowRunCommand(),_0x89a90a=program[_0x18d9d4(0x1bd)](),_0x3febbd=await createTDXInstance(_0x89a90a),_0x475abd=await _0x7e42cd[_0x18d9d4(0x242)]({'options':{..._0x89a90a,..._0x47c62e},'args':[_0x14c03b],'tdx':_0x3febbd});process[_0x18d9d4(0x249)](_0x475abd);}),workflowCmd[a2_0x482a8b(0x2a8)]('download\x20<project-name>\x20[output-dir]')[a2_0x482a8b(0x33d)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x482a8b(0x262)]('--revision\x20<revision>',a2_0x482a8b(0x2ff))[a2_0x482a8b(0x24f)](async(_0x400c0a,_0x53eab3,_0x19b470)=>{const _0x5dee21=a2_0x482a8b,_0x3ab416=new WorkflowDownloadCommand(),_0x4d7431=program['opts'](),_0x3d268e=await createTDXInstance(_0x4d7431),_0x77bcc6=await _0x3ab416[_0x5dee21(0x242)]({'options':{..._0x4d7431,..._0x19b470},'args':[_0x400c0a,_0x53eab3||'.'],'tdx':_0x3d268e});process['exit'](_0x77bcc6);}),workflowCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x3ae))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2c1))[a2_0x482a8b(0x262)]('--name\x20<name>','Override\x20project\x20name')[a2_0x482a8b(0x262)]('--revision\x20<revision>','Revision\x20name\x20(default:\x20timestamp)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x390),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x482a8b(0x24f)](async(_0xeafe01,_0x3ff667)=>{const _0x1971ab=a2_0x482a8b,_0x1b83ff=new WorkflowPushCommand(),_0x3cce73=program['opts'](),_0x2dc1a2=await createTDXInstance(_0x3cce73),_0x144cb7=await _0x1b83ff['run']({'options':{..._0x3cce73,..._0x3ff667},'args':_0xeafe01?[_0xeafe01]:[],'tdx':_0x2dc1a2});process[_0x1971ab(0x249)](_0x144cb7);}),workflowCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x39a))['description'](a2_0x482a8b(0x1dc))['action'](async(_0x1f2d52,_0x653adc)=>{const _0x251878=a2_0x482a8b,_0x274c08=new WorkflowDeleteCommand(),_0x2a5203=program[_0x251878(0x1bd)](),_0x3703d5=await createTDXInstance(_0x2a5203),_0xb7a1cc=await _0x274c08[_0x251878(0x242)]({'options':{..._0x2a5203,..._0x653adc},'args':[_0x1f2d52],'tdx':_0x3703d5});process[_0x251878(0x249)](_0xb7a1cc);});const jobCmd=program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x351))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x24d)),jobListAction=async _0x2ebe0f=>{const _0xfe643e=a2_0x482a8b,_0x2e2a5c=new JobListCommand(),_0x44089f=program[_0xfe643e(0x1bd)](),_0x4549a4=await createTDXInstance(_0x44089f),_0x27fce2=await _0x2e2a5c[_0xfe643e(0x242)]({'options':{..._0x44089f,..._0x2ebe0f},'args':[],'tdx':_0x4549a4});process[_0xfe643e(0x249)](_0x27fce2);};jobCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x280))[a2_0x482a8b(0x33d)]('List\x20jobs')[a2_0x482a8b(0x262)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x482a8b(0x24f)](jobListAction),program['command'](a2_0x482a8b(0x22f),{'hidden':!![]})[a2_0x482a8b(0x33d)](a2_0x482a8b(0x226))[a2_0x482a8b(0x262)]('--status\x20<status>',a2_0x482a8b(0x2c2))[a2_0x482a8b(0x24f)](jobListAction),jobCmd[a2_0x482a8b(0x2a8)]('show\x20<job-id>')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x39b))[a2_0x482a8b(0x24f)](async(_0x1d7fce,_0x4cf0ea)=>{const _0x4bbf3e=a2_0x482a8b,_0x1229e9=new JobShowCommand(),_0x3ccf36=program[_0x4bbf3e(0x1bd)](),_0x2e4209=await createTDXInstance(_0x3ccf36),_0x5bf2f8=await _0x1229e9[_0x4bbf3e(0x242)]({'options':{..._0x3ccf36,..._0x4cf0ea},'args':[_0x1d7fce],'tdx':_0x2e4209});process[_0x4bbf3e(0x249)](_0x5bf2f8);}),jobCmd[a2_0x482a8b(0x2a8)]('kill\x20<job-id>')['description'](a2_0x482a8b(0x2a2))[a2_0x482a8b(0x24f)](async(_0x101f1f,_0x1a8352)=>{const _0x1a0c79=a2_0x482a8b,_0x56d427=new JobKillCommand(),_0x28230b=program[_0x1a0c79(0x1bd)](),_0x3e091a=await createTDXInstance(_0x28230b),_0x2a41da=await _0x56d427[_0x1a0c79(0x242)]({'options':{..._0x28230b,..._0x1a8352},'args':[_0x101f1f],'tdx':_0x3e091a});process[_0x1a0c79(0x249)](_0x2a41da);}),jobCmd['command'](a2_0x482a8b(0x253))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x38c))[a2_0x482a8b(0x262)](a2_0x482a8b(0x217),a2_0x482a8b(0x2b6),a2_0x482a8b(0x210))[a2_0x482a8b(0x262)](a2_0x482a8b(0x26e),a2_0x482a8b(0x1c7))[a2_0x482a8b(0x262)](a2_0x482a8b(0x34a),'Database\x20name\x20(default:\x20information_schema)',a2_0x482a8b(0x2e8))['action'](async(_0x4c6c1f,_0x1f7e73)=>{const _0x3baaf9=a2_0x482a8b,_0xb5906d=new JobSubmitCommand(),_0x3d6447=program[_0x3baaf9(0x1bd)](),_0x176709=await createTDXInstance(_0x3d6447),_0x11d941=await _0xb5906d[_0x3baaf9(0x242)]({'options':{..._0x3d6447,..._0x1f7e73},'args':_0x4c6c1f?[_0x4c6c1f]:[],'tdx':_0x176709});process['exit'](_0x11d941);}),jobCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2e1))[a2_0x482a8b(0x33d)]('Get\x20job\x20results')['action'](async(_0x1e536f,_0x5ab57a)=>{const _0x140b7c=a2_0x482a8b,_0x2dd896=new JobResultCommand(),_0x2c7ef2=program[_0x140b7c(0x1bd)](),_0x21017a=await createTDXInstance(_0x2c7ef2),_0x29e6d8=await _0x2dd896[_0x140b7c(0x242)]({'options':{..._0x2c7ef2,..._0x5ab57a},'args':[_0x1e536f],'tdx':_0x21017a});process[_0x140b7c(0x249)](_0x29e6d8);});const llmCmd=program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x1e4))[a2_0x482a8b(0x33d)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x220))[a2_0x482a8b(0x33d)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x482a8b(0x24f)](async(_0xf9401b,_0x5bba16)=>{const _0xbe2e59=a2_0x482a8b,_0x2c2795=new LLMUseCommand(),_0x52dbb9=program[_0xbe2e59(0x1bd)](),_0x2dac16=await createTDXInstance(_0x52dbb9),_0x4dce15=await _0x2c2795['run']({'options':{..._0x52dbb9,..._0x5bba16},'args':[_0xf9401b],'tdx':_0x2dac16});process[_0xbe2e59(0x249)](_0x4dce15);}),llmCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2f8))['description'](a2_0x482a8b(0x389))[a2_0x482a8b(0x24f)](async _0xd7499a=>{const _0x290bbe=a2_0x482a8b,_0x5c0f54=new LLMModelsCommand(),_0x11d6d8=program[_0x290bbe(0x1bd)](),_0xfaafaa=await createTDXInstance(_0x11d6d8),_0x577207=await _0x5c0f54[_0x290bbe(0x242)]({'options':{..._0x11d6d8,..._0xd7499a},'args':[],'tdx':_0xfaafaa});process['exit'](_0x577207);});const projectCmd=llmCmd['command'](a2_0x482a8b(0x1e9))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2a5)),llmProjectListAction=async(_0x167fc1,_0x1800f6)=>{const _0x4ee2bd=a2_0x482a8b,_0x1747a1=new LLMProjectsCommand(),_0x40fa4e=program[_0x4ee2bd(0x1bd)](),_0x2dcd3e=await createTDXInstance(_0x40fa4e),_0x232f81=await _0x1747a1['run']({'options':{..._0x40fa4e,..._0x1800f6},'args':_0x167fc1?[_0x167fc1]:[],'tdx':_0x2dcd3e});process[_0x4ee2bd(0x249)](_0x232f81);};projectCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x37b))['description'](a2_0x482a8b(0x378))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),a2_0x482a8b(0x1e3))[a2_0x482a8b(0x24f)](llmProjectListAction),llmCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x207))['description'](a2_0x482a8b(0x276))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),a2_0x482a8b(0x1e3))[a2_0x482a8b(0x24f)](llmProjectListAction),projectCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x323))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x27c))['option'](a2_0x482a8b(0x209),a2_0x482a8b(0x28d))[a2_0x482a8b(0x24f)](async(_0x282dde,_0x3ce627)=>{const _0x13206b=a2_0x482a8b,_0xd133e1=new LLMProjectCreateCommand(),_0x5e66c5=program[_0x13206b(0x1bd)](),_0x192a92=await createTDXInstance(_0x5e66c5),_0x1a41ba=await _0xd133e1[_0x13206b(0x242)]({'options':{..._0x5e66c5,..._0x3ce627},'args':[_0x282dde],'tdx':_0x192a92});process[_0x13206b(0x249)](_0x1a41ba);}),projectCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x243))[a2_0x482a8b(0x33d)]('Delete\x20an\x20LLM\x20project')[a2_0x482a8b(0x24f)](async(_0x222369,_0x115758)=>{const _0x27280f=a2_0x482a8b,_0x182870=new LLMProjectDeleteCommand(),_0x3e15a8=program[_0x27280f(0x1bd)](),_0x25a15e=await createTDXInstance(_0x3e15a8),_0x1da7ae=await _0x182870[_0x27280f(0x242)]({'options':{..._0x3e15a8,..._0x115758},'args':[_0x222369],'tdx':_0x25a15e});process[_0x27280f(0x249)](_0x1da7ae);}),projectCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x3b4))[a2_0x482a8b(0x33d)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x32b),a2_0x482a8b(0x230))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2a4),a2_0x482a8b(0x398))['action'](async(_0x26fbe7,_0x42598b)=>{const _0x231f52=a2_0x482a8b,_0x3af6f7=new LLMProjectBackupCommand(),_0x5bf061=program[_0x231f52(0x1bd)](),_0x485d91=await createTDXInstance(_0x5bf061),_0x328b24=await _0x3af6f7[_0x231f52(0x242)]({'options':{..._0x5bf061,..._0x42598b},'args':[_0x26fbe7],'tdx':_0x485d91});process['exit'](_0x328b24);}),projectCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2f7))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3c0))[a2_0x482a8b(0x262)]('--name\x20<new-name>',a2_0x482a8b(0x39f))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2a4),a2_0x482a8b(0x35e))[a2_0x482a8b(0x24f)](async(_0x26e879,_0x411efa)=>{const _0x58bd77=a2_0x482a8b,_0x1e61ee=new LLMProjectRestoreCommand(),_0x28d957=program['opts'](),_0x25aeb6=await createTDXInstance(_0x28d957),_0xd887f4=await _0x1e61ee[_0x58bd77(0x242)]({'options':{..._0x28d957,..._0x411efa},'args':[_0x26e879],'tdx':_0x25aeb6});process['exit'](_0xd887f4);});const llmAgentListAction=async(_0x2436e1,_0x2d1c65)=>{const _0x2d6af4=a2_0x482a8b,_0x1fa2cf=new LLMAgentsCommand(),_0x186044=program['opts'](),_0x2d4ebd=await createTDXInstance(_0x186044),_0x290dca=await _0x1fa2cf[_0x2d6af4(0x242)]({'options':{..._0x186044,..._0x2d1c65},'args':_0x2436e1?[_0x2436e1]:[],'tdx':_0x2d4ebd});process[_0x2d6af4(0x249)](_0x290dca);};llmCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x268))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),a2_0x482a8b(0x269))['action'](llmAgentListAction),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x268))[a2_0x482a8b(0x33d)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')['option'](a2_0x482a8b(0x2ae),'Show\x20agent\x20chat\x20URLs')[a2_0x482a8b(0x24f)](llmAgentListAction),llmCmd['command'](a2_0x482a8b(0x3bf))['description'](a2_0x482a8b(0x1ea))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1e6),a2_0x482a8b(0x3a3))[a2_0x482a8b(0x24f)](async(_0x44c827,_0x1accde)=>{const _0x59c8bc=a2_0x482a8b,_0x2f03d2=new LLMHistoryCommand(),_0xabb6e7=program['opts'](),_0x43b721=await createTDXInstance(_0xabb6e7),_0x1c4303=await _0x2f03d2[_0x59c8bc(0x242)]({'options':{..._0xabb6e7,..._0x1accde},'args':_0x44c827?[_0x44c827]:[],'tdx':_0x43b721});process[_0x59c8bc(0x249)](_0x1c4303);}),llmCmd['command'](a2_0x482a8b(0x1f6))['description'](a2_0x482a8b(0x335))[a2_0x482a8b(0x262)]('--port\x20<number>',a2_0x482a8b(0x281),a2_0x482a8b(0x29a))['option'](a2_0x482a8b(0x299),a2_0x482a8b(0x20e))[a2_0x482a8b(0x262)]('--agent\x20<name>',a2_0x482a8b(0x322))['action'](async _0x2aa8d0=>{const _0x322d68=a2_0x482a8b,_0x21998b=new LLMProxyCommand(),_0x484cf1=program[_0x322d68(0x1bd)](),_0x2a0a43=await createTDXInstance(_0x484cf1),_0x451ed8={..._0x2aa8d0,'port':_0x2aa8d0[_0x322d68(0x28f)]?parseInt(_0x2aa8d0['port'],0xa):undefined},_0x551fac=await _0x21998b[_0x322d68(0x242)]({'options':{..._0x484cf1,..._0x451ed8},'args':[],'tdx':_0x2a0a43});process[_0x322d68(0x249)](_0x551fac);}),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x31d))['usage'](a2_0x482a8b(0x2b1))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2c3))[a2_0x482a8b(0x262)](a2_0x482a8b(0x20d),a2_0x482a8b(0x1b8),a2_0x482a8b(0x22d))[a2_0x482a8b(0x262)](a2_0x482a8b(0x29f),'Continue\x20most\x20recent\x20conversation')['option'](a2_0x482a8b(0x362),a2_0x482a8b(0x364))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2b5),a2_0x482a8b(0x2a9))[a2_0x482a8b(0x286)]()[a2_0x482a8b(0x1d0)](!![])[a2_0x482a8b(0x23e)](a2_0x482a8b(0x204),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x482a8b(0x24f)](async(_0xe86925,_0x5abf47)=>{const _0xb22f65=a2_0x482a8b,_0x291f84=program['opts'](),_0x521253=Array['isArray'](_0xe86925)?_0xe86925:[];if(_0x521253[0x0]===_0xb22f65(0x2ce)){const _0x98f43c=new ClaudeStatuslineCommand(),_0x5c9e92=await _0x98f43c['run']({'options':{..._0x291f84,..._0x5abf47},'args':_0x521253[_0xb22f65(0x2eb)](0x1),'tdx':null});process[_0xb22f65(0x249)](_0x5c9e92);}if(_0x521253[0x0]===_0xb22f65(0x282)){const _0x169dd3=new ClaudeUsageCommand(),_0x41f33a=await _0x169dd3[_0xb22f65(0x242)]({'options':{..._0x291f84,..._0x5abf47},'args':_0x521253[_0xb22f65(0x2eb)](0x1),'tdx':null});process[_0xb22f65(0x249)](_0x41f33a);}const _0x5ec186=new ClaudeCommand(),_0x4c91ee=await createTDXInstance(_0x291f84),_0x72a94a=await _0x5ec186['run']({'options':{..._0x291f84,..._0x5abf47},'args':_0x521253,'tdx':_0x4c91ee});process[_0xb22f65(0x249)](_0x72a94a);}),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x350))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x272))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1d7),a2_0x482a8b(0x1d5))[a2_0x482a8b(0x24f)](async _0x106ff0=>{const _0x178e56=a2_0x482a8b,_0x4760e4=new ContextCommand(),_0x3de6eb=program[_0x178e56(0x1bd)](),_0x2722fa=await _0x4760e4[_0x178e56(0x242)]({'options':{..._0x3de6eb,..._0x106ff0},'args':[],'tdx':null});process[_0x178e56(0x249)](_0x2722fa);}),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x344))[a2_0x482a8b(0x33d)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x482a8b(0x262)]('--clear',a2_0x482a8b(0x1d5))['action'](async(_0x17640a,_0x1bbb5d,_0xfed918)=>{const _0x3d9314=a2_0x482a8b,_0x2fd10e=new UseCommand(),_0x3f6190=program['opts'](),_0x2c785c=[];if(_0x17640a)_0x2c785c[_0x3d9314(0x39c)](_0x17640a);if(_0x1bbb5d)_0x2c785c[_0x3d9314(0x39c)](_0x1bbb5d);const _0x8b3089=await _0x2fd10e[_0x3d9314(0x242)]({'options':{..._0x3f6190,..._0xfed918},'args':_0x2c785c,'tdx':null});process['exit'](_0x8b3089);}),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x333))['description'](a2_0x482a8b(0x211))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1e6),a2_0x482a8b(0x1f3))[a2_0x482a8b(0x24f)](async _0xb13446=>{const _0x2d5c4c=a2_0x482a8b,_0x1e8dca=new ChatsCommand(),_0x5bcd1b=program[_0x2d5c4c(0x1bd)](),_0x3a8449=await createTDXInstance(_0x5bcd1b),_0x8706ec=await _0x1e8dca[_0x2d5c4c(0x242)]({'options':{..._0x5bcd1b,..._0xb13446},'args':[],'tdx':_0x3a8449});process['exit'](_0x8706ec);});const authCmd=program[a2_0x482a8b(0x2a8)]('auth')[a2_0x482a8b(0x33d)]('Authentication\x20management');async function runAuthStatusCommand(_0x45bebe){const _0x50c014=a2_0x482a8b,_0x63dc5b=new AuthStatusCommand(),_0x2f563c=program[_0x50c014(0x1bd)](),_0x40ec0b=await createTDXInstance(_0x2f563c),_0x5ec78d=await _0x63dc5b['run']({'options':{..._0x2f563c,..._0x45bebe},'args':[],'tdx':_0x40ec0b});process['exit'](_0x5ec78d);}authCmd[a2_0x482a8b(0x24f)](runAuthStatusCommand),authCmd['command']('status')['description']('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x482a8b(0x24f)](runAuthStatusCommand),authCmd['command'](a2_0x482a8b(0x1d4))['description']('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x482a8b(0x23e)]('after',a2_0x482a8b(0x3af))['action'](async _0x4c8b05=>{const _0x53e46f=a2_0x482a8b,_0x4f6a49=new AuthSetupCommand(),_0x105471=program[_0x53e46f(0x1bd)](),_0x324da7=await createTDXInstance(_0x105471),_0x53c8c4=await _0x4f6a49[_0x53e46f(0x242)]({'options':{..._0x105471,..._0x4c8b05},'args':[],'tdx':_0x324da7});process[_0x53e46f(0x249)](_0x53c8c4);}),authCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x27d))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x24a))[a2_0x482a8b(0x23e)]('after','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0x482a8b(0x24f)](async _0x222ed4=>{const _0x4791ac=a2_0x482a8b,_0x59d946=new AuthClearCommand(),_0x5c42bd=program[_0x4791ac(0x1bd)](),_0x4b6e62=await _0x59d946['run']({'options':{..._0x5c42bd,..._0x222ed4},'args':[],'tdx':null});process['exit'](_0x4b6e62);});const userCmd=program['command'](a2_0x482a8b(0x2bd))['description'](a2_0x482a8b(0x294)),userListAction=async _0x26d7e8=>{const _0x4e7f0a=a2_0x482a8b,_0x90a018=new UserListCommand(),_0x49075c=program['opts'](),_0x11e892=await createTDXInstance(_0x49075c),_0x327dd4=await _0x90a018[_0x4e7f0a(0x242)]({'options':{..._0x49075c,..._0x26d7e8},'args':[],'tdx':_0x11e892});process['exit'](_0x327dd4);};userCmd[a2_0x482a8b(0x24f)](async _0x5ca079=>{const _0x366328=a2_0x482a8b,_0x2d8b20=new UserCommand(),_0x396adc=program[_0x366328(0x1bd)](),_0x5a324c=await createTDXInstance(_0x396adc),_0x5194d4=await _0x2d8b20[_0x366328(0x242)]({'options':{..._0x396adc,..._0x5ca079},'args':[],'tdx':_0x5a324c});process[_0x366328(0x249)](_0x5194d4);}),userCmd[a2_0x482a8b(0x2a8)]('list')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x38b))['action'](userListAction),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2c8))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x301))[a2_0x482a8b(0x24f)](userListAction),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x285))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3b8))[a2_0x482a8b(0x24f)](async _0x214bd4=>{const _0x5cb355=a2_0x482a8b,_0x1e0fdf=new ProfilesCommand(),_0x2eef53=program[_0x5cb355(0x1bd)](),_0x97a8bc=await _0x1e0fdf[_0x5cb355(0x242)]({'options':{..._0x2eef53,..._0x214bd4},'args':[],'tdx':null});process[_0x5cb355(0x249)](_0x97a8bc);});const engageCmd=program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x3b3))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x277)),createEngageAction=_0x573c94=>{return async(_0x458ecf,_0x157207)=>{const _0x3e6ecd=a2_0x2f80,_0x4f3ae3=new _0x573c94(),_0x38f1f5=program[_0x3e6ecd(0x1bd)](),_0x3a4e51=await createTDXInstance(_0x38f1f5),_0x16ee79=await _0x4f3ae3[_0x3e6ecd(0x242)]({'options':{..._0x38f1f5,..._0x157207},'args':[_0x458ecf],'tdx':_0x3a4e51});process[_0x3e6ecd(0x249)](_0x16ee79);};},createEngageNoArgAction=_0x228ac3=>{return async _0x39fc07=>{const _0xfd6c8e=a2_0x2f80,_0x2239ad=new _0x228ac3(),_0x34f666=program[_0xfd6c8e(0x1bd)](),_0x3e1de0=await createTDXInstance(_0x34f666),_0x5d11d3=await _0x2239ad[_0xfd6c8e(0x242)]({'options':{..._0x34f666,..._0x39fc07},'args':[],'tdx':_0x3e1de0});process[_0xfd6c8e(0x249)](_0x5d11d3);};},campaignCmd=engageCmd['command'](a2_0x482a8b(0x2c6))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3a4)),campaignListAction=async(_0xec719b,_0x479496)=>{const _0x1f11a2=a2_0x482a8b,_0x101484=new EngageCampaignsCommand(),_0x574f60=program[_0x1f11a2(0x1bd)](),_0x2252a7=await createTDXInstance(_0x574f60),_0x5309dc=await _0x101484[_0x1f11a2(0x242)]({'options':{..._0x574f60,..._0x479496},'args':_0xec719b?[_0xec719b]:[],'tdx':_0x2252a7});process[_0x1f11a2(0x249)](_0x5309dc);};campaignCmd[a2_0x482a8b(0x2a8)]('list\x20[pattern]')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x31c))[a2_0x482a8b(0x262)](a2_0x482a8b(0x20a),a2_0x482a8b(0x1f7))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2cf),a2_0x482a8b(0x223))[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),a2_0x482a8b(0x3b6))[a2_0x482a8b(0x24f)](campaignListAction),engageCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x31e))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x24b))[a2_0x482a8b(0x262)](a2_0x482a8b(0x20a),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x2cf),a2_0x482a8b(0x223))[a2_0x482a8b(0x262)]('--workspace\x20<name>','Workspace\x20name')[a2_0x482a8b(0x24f)](campaignListAction),campaignCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x367))['description'](a2_0x482a8b(0x36c))[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),a2_0x482a8b(0x3b6))[a2_0x482a8b(0x262)](a2_0x482a8b(0x240),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x482a8b(0x24f)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x482a8b(0x2a8)]('create')[a2_0x482a8b(0x33d)]('Create\x20a\x20new\x20campaign')['requiredOption'](a2_0x482a8b(0x1bf),a2_0x482a8b(0x371))['requiredOption'](a2_0x482a8b(0x20a),a2_0x482a8b(0x291))[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),a2_0x482a8b(0x27b))[a2_0x482a8b(0x262)](a2_0x482a8b(0x258),'Campaign\x20description')[a2_0x482a8b(0x262)](a2_0x482a8b(0x3cf),a2_0x482a8b(0x304))['option'](a2_0x482a8b(0x208),a2_0x482a8b(0x35f))['option'](a2_0x482a8b(0x3ba),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x482a8b(0x2cb),a2_0x482a8b(0x339))[a2_0x482a8b(0x262)](a2_0x482a8b(0x37e),a2_0x482a8b(0x293))[a2_0x482a8b(0x24f)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x482a8b(0x2a8)]('update\x20<name-or-id>')['description'](a2_0x482a8b(0x342))['option'](a2_0x482a8b(0x292),a2_0x482a8b(0x3b6))['option']('--name\x20<name>','New\x20campaign\x20name')[a2_0x482a8b(0x262)]('--description\x20<desc>',a2_0x482a8b(0x298))[a2_0x482a8b(0x262)](a2_0x482a8b(0x3cf),a2_0x482a8b(0x304))['option'](a2_0x482a8b(0x208),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x482a8b(0x262)]('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x2cb),a2_0x482a8b(0x339))[a2_0x482a8b(0x262)](a2_0x482a8b(0x37e),a2_0x482a8b(0x293))[a2_0x482a8b(0x24f)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x352))['description']('Delete\x20a\x20campaign')[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),a2_0x482a8b(0x3b6))[a2_0x482a8b(0x262)](a2_0x482a8b(0x387),a2_0x482a8b(0x3d1))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x482a8b(0x321))['description'](a2_0x482a8b(0x27f))[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),a2_0x482a8b(0x3b6))[a2_0x482a8b(0x24f)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x330))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1f9))['option']('--workspace\x20<name>',a2_0x482a8b(0x3b6))[a2_0x482a8b(0x24f)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command']('resume\x20<name-or-id>')[a2_0x482a8b(0x33d)]('Resume\x20a\x20paused\x20campaign')[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),'Workspace\x20name')[a2_0x482a8b(0x24f)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x201))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2d8))['option'](a2_0x482a8b(0x292),a2_0x482a8b(0x3b6))[a2_0x482a8b(0x24f)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x482a8b(0x2a8)]('template')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1bc)),templateListAction=async(_0x1e1116,_0x4e4aab)=>{const _0x2d2786=a2_0x482a8b,_0x5ad1e9=new EngageTemplatesCommand(),_0x2aa44a=program[_0x2d2786(0x1bd)](),_0x312723=await createTDXInstance(_0x2aa44a),_0x129127=await _0x5ad1e9[_0x2d2786(0x242)]({'options':{..._0x2aa44a,..._0x4e4aab},'args':_0x1e1116?[_0x1e1116]:[],'tdx':_0x312723});process[_0x2d2786(0x249)](_0x129127);};templateCmd[a2_0x482a8b(0x2a8)]('list\x20[pattern]')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1cb))[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),a2_0x482a8b(0x3b6))['action'](templateListAction),engageCmd[a2_0x482a8b(0x2a8)]('templates\x20[pattern]')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x20c))[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),'Workspace\x20name')[a2_0x482a8b(0x24f)](templateListAction),templateCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x367))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x235))['option'](a2_0x482a8b(0x292),a2_0x482a8b(0x3b6))[a2_0x482a8b(0x262)]('--full',a2_0x482a8b(0x2b8))[a2_0x482a8b(0x24f)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command']('create')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x32c))[a2_0x482a8b(0x312)](a2_0x482a8b(0x1bf),a2_0x482a8b(0x372))[a2_0x482a8b(0x312)](a2_0x482a8b(0x357),a2_0x482a8b(0x215))[a2_0x482a8b(0x312)]('--html\x20<html>',a2_0x482a8b(0x1f1))[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),a2_0x482a8b(0x27b))[a2_0x482a8b(0x262)](a2_0x482a8b(0x1ff),a2_0x482a8b(0x370))[a2_0x482a8b(0x262)](a2_0x482a8b(0x396),a2_0x482a8b(0x1f0))[a2_0x482a8b(0x24f)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x482a8b(0x2a8)]('update\x20<name-or-id>')['description'](a2_0x482a8b(0x2b9))['option']('--workspace\x20<name>',a2_0x482a8b(0x3b6))[a2_0x482a8b(0x262)]('--name\x20<name>','New\x20template\x20name')[a2_0x482a8b(0x262)](a2_0x482a8b(0x357),a2_0x482a8b(0x215))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2d9),a2_0x482a8b(0x1f1))['option'](a2_0x482a8b(0x1ff),'Plaintext\x20template\x20content')['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x482a8b(0x2a8)]('delete\x20<name-or-id>')['description'](a2_0x482a8b(0x21d))[a2_0x482a8b(0x262)](a2_0x482a8b(0x292),a2_0x482a8b(0x3b6))[a2_0x482a8b(0x262)](a2_0x482a8b(0x387),a2_0x482a8b(0x3d1))[a2_0x482a8b(0x24f)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x38a))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x33e)),workspaceListAction=async(_0x47f695,_0x28f8f8)=>{const _0xdc148c=a2_0x482a8b,_0x17f2cd=new EngageWorkspacesCommand(),_0x36dc5e=program[_0xdc148c(0x1bd)](),_0x15756a=await createTDXInstance(_0x36dc5e),_0x5e1fe1=await _0x17f2cd['run']({'options':{..._0x36dc5e,..._0x28f8f8},'args':_0x47f695?[_0x47f695]:[],'tdx':_0x15756a});process['exit'](_0x5e1fe1);};workspaceCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x37b))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x31f))[a2_0x482a8b(0x24f)](workspaceListAction),engageCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x327))[a2_0x482a8b(0x33d)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x482a8b(0x24f)](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x34d))[a2_0x482a8b(0x262)](a2_0x482a8b(0x240),a2_0x482a8b(0x2b8))[a2_0x482a8b(0x24f)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x482a8b(0x388))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3b7))[a2_0x482a8b(0x312)]('--name\x20<name>',a2_0x482a8b(0x3b6))[a2_0x482a8b(0x262)](a2_0x482a8b(0x258),'Workspace\x20description')[a2_0x482a8b(0x24f)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x33c))['description'](a2_0x482a8b(0x1d9))['option'](a2_0x482a8b(0x1bf),a2_0x482a8b(0x2fe))[a2_0x482a8b(0x262)]('--description\x20<desc>',a2_0x482a8b(0x1d3))[a2_0x482a8b(0x24f)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x352))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x341))[a2_0x482a8b(0x262)](a2_0x482a8b(0x387),a2_0x482a8b(0x3d1))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x397))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3b2))['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x287))[a2_0x482a8b(0x33d)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x5ca07b=>{const _0x1a4320=a2_0x482a8b,_0x1f197b=new ConnectionListCommand(),_0x397fe7=program['opts'](),_0x448c19=await createTDXInstance(_0x397fe7),_0x53b2c5=await _0x1f197b[_0x1a4320(0x242)]({'options':{..._0x397fe7,..._0x5ca07b},'args':[],'tdx':_0x448c19});process[_0x1a4320(0x249)](_0x53b2c5);};connectionCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x280))[a2_0x482a8b(0x33d)]('List\x20all\x20data\x20connections')[a2_0x482a8b(0x24f)](connectionListAction),program[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x331),{'hidden':!![]})[a2_0x482a8b(0x33d)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x482a8b(0x24f)](connectionListAction),connectionCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2d7))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3cb))[a2_0x482a8b(0x24f)](async(_0x40d8b0,_0x93ee60)=>{const _0x4e65be=a2_0x482a8b,_0x3f0ebb=new ConnectionShowCommand(),_0x35d365=program[_0x4e65be(0x1bd)](),_0x217557=await createTDXInstance(_0x35d365),_0x1a36f8=await _0x3f0ebb['run']({'options':{..._0x35d365,..._0x93ee60},'args':[_0x40d8b0],'tdx':_0x217557});process['exit'](_0x1a36f8);});const journeyCmd=program['command'](a2_0x482a8b(0x369))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1e7));journeyCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x37b))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x1da))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),a2_0x482a8b(0x356))[a2_0x482a8b(0x24f)](async(_0xe2efc4,_0x4ec27f)=>{const _0x4f0188=a2_0x482a8b,_0x34b19b=new JourneyListCommand(),_0x30a748=program[_0x4f0188(0x1bd)](),_0x54d9d7=await createTDXInstance(_0x30a748),_0x200850=await _0x34b19b[_0x4f0188(0x242)]({'options':{..._0x30a748,..._0x4ec27f},'args':_0xe2efc4?[_0xe2efc4]:[],'tdx':_0x54d9d7});process[_0x4f0188(0x249)](_0x200850);}),journeyCmd[a2_0x482a8b(0x2a8)]('view\x20<name-or-path>')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x3a9))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),'Open\x20journey\x20in\x20web\x20browser')[a2_0x482a8b(0x262)]('--include-stats',a2_0x482a8b(0x2da))[a2_0x482a8b(0x24f)](async(_0x350ca4,_0x50ec96)=>{const _0x2c80de=a2_0x482a8b,_0x345eb4=new JourneyViewCommand(),_0x195acb=program['opts'](),_0x12c4ad=await createTDXInstance(_0x195acb),_0x203dfe=await _0x345eb4[_0x2c80de(0x242)]({'options':{..._0x195acb,..._0x50ec96},'args':[_0x350ca4],'tdx':_0x12c4ad});process[_0x2c80de(0x249)](_0x203dfe);}),journeyCmd[a2_0x482a8b(0x2a8)]('stats\x20<name-or-path>')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x252))[a2_0x482a8b(0x262)]('--stage\x20<name>',a2_0x482a8b(0x26a))['action'](async(_0x327a8e,_0x349fc9)=>{const _0x70ba5b=a2_0x482a8b,_0x5c130d=new JourneyStatsCommand(),_0x132927=program['opts'](),_0x56e280=await createTDXInstance(_0x132927),_0x535413=await _0x5c130d['run']({'options':{..._0x132927,..._0x349fc9},'args':[_0x327a8e],'tdx':_0x56e280});process[_0x70ba5b(0x249)](_0x535413);}),journeyCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2cd))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x31b))[a2_0x482a8b(0x24f)](async(_0x36c5b3,_0x4c7bae)=>{const _0x70453d=a2_0x482a8b,_0x9516b5=new JourneyPauseCommand(),_0x46d0dc=program[_0x70453d(0x1bd)](),_0xc4cc71=await createTDXInstance(_0x46d0dc),_0x2eb442=await _0x9516b5['run']({'options':{..._0x46d0dc,..._0x4c7bae},'args':[_0x36c5b3],'tdx':_0xc4cc71});process[_0x70453d(0x249)](_0x2eb442);}),journeyCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2a1))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x386))[a2_0x482a8b(0x24f)](async(_0x4f0abd,_0x563534)=>{const _0x443953=a2_0x482a8b,_0x468d2f=new JourneyResumeCommand(),_0x4f4947=program[_0x443953(0x1bd)](),_0x3a75ae=await createTDXInstance(_0x4f4947),_0xe4f67d=await _0x468d2f[_0x443953(0x242)]({'options':{..._0x4f4947,..._0x563534},'args':[_0x4f0abd],'tdx':_0x3a75ae});process['exit'](_0xe4f67d);}),journeyCmd['command'](a2_0x482a8b(0x2f1))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x200))['option'](a2_0x482a8b(0x334),a2_0x482a8b(0x3d1))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2a4),a2_0x482a8b(0x25c))[a2_0x482a8b(0x24f)](async(_0x44b9f6,_0x5b0e81)=>{const _0x571fc4=a2_0x482a8b,_0xdb0f81=new JourneyPullCommand(),_0x1c4b13=program[_0x571fc4(0x1bd)](),_0x8cf9ba=await createTDXInstance(_0x1c4b13),_0xa7f201=await _0xdb0f81[_0x571fc4(0x242)]({'options':{..._0x1c4b13,..._0x5b0e81},'args':_0x44b9f6?[_0x44b9f6]:[],'tdx':_0x8cf9ba});process[_0x571fc4(0x249)](_0xa7f201);}),journeyCmd['command'](a2_0x482a8b(0x1cc))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x266))[a2_0x482a8b(0x24f)](async(_0x7c5ed6,_0x42d1ff)=>{const _0x320e86=a2_0x482a8b,_0x4270cb=new JourneyPushCommand(),_0x10587e=program[_0x320e86(0x1bd)](),_0x5ba1b8=await createTDXInstance(_0x10587e),_0x2a110b=await _0x4270cb[_0x320e86(0x242)]({'options':{..._0x10587e,..._0x42d1ff},'args':_0x7c5ed6?[_0x7c5ed6]:[],'tdx':_0x5ba1b8});process[_0x320e86(0x249)](_0x2a110b);});const agentSyncCmd=program[a2_0x482a8b(0x2a8)]('agent')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2fc));agentSyncCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x261))[a2_0x482a8b(0x33d)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x482a8b(0x262)]('-o,\x20--output\x20<dir>',a2_0x482a8b(0x33a))[a2_0x482a8b(0x262)]('-f,\x20--force','Overwrite\x20local\x20changes\x20without\x20confirmation')['action'](async(_0x151fc3,_0xfd1091,_0x2dee4d)=>{const _0x9ae4a4=a2_0x482a8b,_0x132528=new AgentPullCommand(),_0xd46519=program['opts'](),_0x46c5d7=await createTDXInstance(_0xd46519),_0x7639b=[];if(_0x151fc3)_0x7639b[_0x9ae4a4(0x39c)](_0x151fc3);if(_0xfd1091)_0x7639b[_0x9ae4a4(0x39c)](_0xfd1091);const _0x280581=await _0x132528[_0x9ae4a4(0x242)]({'options':{..._0xd46519,..._0x2dee4d},'args':_0x7639b,'tdx':_0x46c5d7});process[_0x9ae4a4(0x249)](_0x280581);}),agentSyncCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x39d))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2d2))[a2_0x482a8b(0x262)](a2_0x482a8b(0x3cc),a2_0x482a8b(0x3c5))[a2_0x482a8b(0x24f)](async(_0x14e432,_0x43ecd1)=>{const _0x2b8bd2=a2_0x482a8b,_0x40259c=new AgentPushCommand(),_0xed0e55=program['opts'](),_0x4c6a70=await createTDXInstance(_0xed0e55),_0x24608b=await _0x40259c[_0x2b8bd2(0x242)]({'options':{..._0xed0e55,..._0x43ecd1},'args':_0x14e432?[_0x14e432]:[],'tdx':_0x4c6a70});process[_0x2b8bd2(0x249)](_0x24608b);}),agentSyncCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x1be))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x302))[a2_0x482a8b(0x262)](a2_0x482a8b(0x394),a2_0x482a8b(0x346))[a2_0x482a8b(0x24f)](async(_0xe4a24b,_0x4ce98e)=>{const _0x2c79c1=a2_0x482a8b,_0x19abc3=new AgentCloneCommand(),_0xa0cce1=program[_0x2c79c1(0x1bd)](),_0x19a4c5=await createTDXInstance(_0xa0cce1),_0xa922c6=await _0x19abc3[_0x2c79c1(0x242)]({'options':{..._0xa0cce1,..._0x4ce98e},'args':_0xe4a24b?[_0xe4a24b]:[],'tdx':_0x19a4c5});process[_0x2c79c1(0x249)](_0xa922c6);}),agentSyncCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x37b))['description'](a2_0x482a8b(0x35b))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2ae),a2_0x482a8b(0x269))['action'](llmAgentListAction),agentSyncCmd[a2_0x482a8b(0x2a8)]('show\x20<agent-name>')[a2_0x482a8b(0x33d)](a2_0x482a8b(0x2ac))['action'](async(_0x2b9cff,_0x69ddd4)=>{const _0x17f8f6=a2_0x482a8b,_0x496fb4=new LLMAgentShowCommand(),_0x53cbbe=program[_0x17f8f6(0x1bd)](),_0x433e1f=await createTDXInstance(_0x53cbbe),_0x5a14df=await _0x496fb4[_0x17f8f6(0x242)]({'options':{..._0x53cbbe,..._0x69ddd4},'args':[_0x2b9cff],'tdx':_0x433e1f});process['exit'](_0x5a14df);}),agentSyncCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x323))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x24e))[a2_0x482a8b(0x262)](a2_0x482a8b(0x228),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x482a8b(0x262)](a2_0x482a8b(0x20d),a2_0x482a8b(0x374),a2_0x482a8b(0x1fb))['option'](a2_0x482a8b(0x2c9),a2_0x482a8b(0x232))[a2_0x482a8b(0x262)](a2_0x482a8b(0x36f),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')['option'](a2_0x482a8b(0x22a),a2_0x482a8b(0x3d3),'0.7')[a2_0x482a8b(0x24f)](async(_0x526324,_0x4ca3c3)=>{const _0x10a57a=a2_0x482a8b,_0x385717=new LLMAgentCreateCommand(),_0x12c56a=program[_0x10a57a(0x1bd)](),_0x71a1ff=await createTDXInstance(_0x12c56a),_0x1f35ad=await _0x385717[_0x10a57a(0x242)]({'options':{..._0x12c56a,..._0x4ca3c3},'args':[_0x526324],'tdx':_0x71a1ff});process['exit'](_0x1f35ad);}),agentSyncCmd[a2_0x482a8b(0x2a8)](a2_0x482a8b(0x2e5))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x273))['option'](a2_0x482a8b(0x2d6),a2_0x482a8b(0x2ed))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2bc),a2_0x482a8b(0x245))[a2_0x482a8b(0x262)](a2_0x482a8b(0x209),a2_0x482a8b(0x25e))[a2_0x482a8b(0x262)](a2_0x482a8b(0x2c9),a2_0x482a8b(0x232))['action'](async(_0x1f880f,_0x372950)=>{const _0x4bd64f=a2_0x482a8b,_0x3be6da=new LLMAgentUpdateCommand(),_0x11aae3=program[_0x4bd64f(0x1bd)](),_0x315fe0=await createTDXInstance(_0x11aae3),_0x3dea8d=await _0x3be6da[_0x4bd64f(0x242)]({'options':{..._0x11aae3,..._0x372950},'args':[_0x1f880f],'tdx':_0x315fe0});process[_0x4bd64f(0x249)](_0x3dea8d);}),agentSyncCmd['command'](a2_0x482a8b(0x38f))[a2_0x482a8b(0x33d)](a2_0x482a8b(0x256))[a2_0x482a8b(0x24f)](async(_0x285ded,_0xabf515)=>{const _0x486445=a2_0x482a8b,_0x29f0d0=new LLMAgentDeleteCommand(),_0x55b44a=program[_0x486445(0x1bd)](),_0x565196=await createTDXInstance(_0x55b44a),_0x118fe1=await _0x29f0d0[_0x486445(0x242)]({'options':{..._0x55b44a,..._0xabf515},'args':[_0x285ded],'tdx':_0x565196});process['exit'](_0x118fe1);});export{program};export function runCLI(){const _0x2ec92c=a2_0x482a8b;program['parse'](process['argv']);!process[_0x2ec92c(0x3a2)][_0x2ec92c(0x2eb)](0x2)[_0x2ec92c(0x26b)]&&program[_0x2ec92c(0x2bf)]();const _0x8dd0ed=packageJson['version'];process[_0x2ec92c(0x1c1)][_0x2ec92c(0x37f)]&&process[_0x2ec92c(0x3a2)]['length']>0x2&&!_0x8dd0ed[_0x2ec92c(0x315)]('.dev')&&checkForUpdate(_0x8dd0ed)[_0x2ec92c(0x1fe)](_0x31c17f=>{_0x31c17f&&displayUpdateNotification(_0x31c17f);})[_0x2ec92c(0x3a8)](()=>{});}
1
+ const a2_0x39c4c3=a2_0x37e2;(function(_0x5bbfba,_0x1ad33d){const _0x12ed9d=a2_0x37e2,_0x1a6ec8=_0x5bbfba();while(!![]){try{const _0x4912b2=parseInt(_0x12ed9d(0x16d))/0x1+parseInt(_0x12ed9d(0x111))/0x2*(parseInt(_0x12ed9d(0x260))/0x3)+parseInt(_0x12ed9d(0x23c))/0x4*(-parseInt(_0x12ed9d(0x234))/0x5)+-parseInt(_0x12ed9d(0x1ae))/0x6*(-parseInt(_0x12ed9d(0x241))/0x7)+-parseInt(_0x12ed9d(0xb5))/0x8+parseInt(_0x12ed9d(0x251))/0x9+-parseInt(_0x12ed9d(0xd9))/0xa*(parseInt(_0x12ed9d(0x253))/0xb);if(_0x4912b2===_0x1ad33d)break;else _0x1a6ec8['push'](_0x1a6ec8['shift']());}catch(_0x477c33){_0x1a6ec8['push'](_0x1a6ec8['shift']());}}}(a2_0x153d,0x66ad5));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}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_0x39c4c3(0x12e)),a2_0x39c4c3(0x17e)));let buildInfo={};try{buildInfo=JSON[a2_0x39c4c3(0x1ab)](readFileSync(join(__dirname,a2_0x39c4c3(0x158)),a2_0x39c4c3(0x17e)));}catch{}if(process[a2_0x39c4c3(0x229)][a2_0x39c4c3(0x1fe)](a2_0x39c4c3(0x12d))){let versionOutput=a2_0x39c4c3(0x216)+packageJson[a2_0x39c4c3(0x289)];buildInfo[a2_0x39c4c3(0x1cd)]&&(versionOutput+='\x20('+buildInfo[a2_0x39c4c3(0x1cd)]+')'),buildInfo[a2_0x39c4c3(0x217)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo['buildTime']),console[a2_0x39c4c3(0x227)](versionOutput),process[a2_0x39c4c3(0x2ac)](0x0);}const program=new Command();let description=a2_0x39c4c3(0x25c);buildInfo['gitRevision']?description+=a2_0x39c4c3(0xec)+packageJson[a2_0x39c4c3(0x289)]+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x39c4c3(0xec)+packageJson[a2_0x39c4c3(0x289)];program[a2_0x39c4c3(0x1cc)]('tdx')[a2_0x39c4c3(0x141)](description),program[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x194),a2_0x39c4c3(0x198))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x157),a2_0x39c4c3(0x13c))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x24d),a2_0x39c4c3(0x242),a2_0x39c4c3(0x152))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x128),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')['option'](a2_0x39c4c3(0x287),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x256),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x39c4c3(0x28c)]('--jsonl',a2_0x39c4c3(0x214))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x246),a2_0x39c4c3(0x10f))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x108),a2_0x39c4c3(0x27e))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x16a),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x92),a2_0x39c4c3(0xd7),![])['option']('--no-color',a2_0x39c4c3(0x110),![])['option'](a2_0x39c4c3(0x139),a2_0x39c4c3(0x24a),![])[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xf8),a2_0x39c4c3(0x16c))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x12c),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x118),a2_0x39c4c3(0x20a),'30')['option'](a2_0x39c4c3(0x154),a2_0x39c4c3(0xc7),![])[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2a5),'Skip\x20confirmation\x20prompts',![])[a2_0x39c4c3(0x28c)]('--session\x20<id>',a2_0x39c4c3(0xb7))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x231),a2_0x39c4c3(0x1eb))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x223),a2_0x39c4c3(0xa1))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xed),a2_0x39c4c3(0x1fb))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x22e),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x39c4c3(0x1d3)]({'formatHelp':(_0x370340,_0x58b6cc)=>{const _0xf18d4b=a2_0x39c4c3,_0x65e397=_0x58b6cc[_0xf18d4b(0x2a0)](_0x370340,_0x58b6cc),_0x4cf744=0x2,_0xc1dc0c=0x2;function _0x1e79b8(_0x2f2d57){const _0x4804b5=_0x2f2d57;return!!(_0x4804b5['_hidden']||_0x4804b5['hidden']);}function _0x43c2af(_0x970ec,_0x50c180){const _0x24abf6=_0xf18d4b;if(_0x50c180){const _0x16be0c=''+_0x970ec[_0x24abf6(0x203)](_0x65e397+_0xc1dc0c)+_0x50c180;return _0x16be0c;}return _0x970ec;}function _0x21f68f(_0x11399e){const _0x118eeb=_0xf18d4b;return _0x11399e[_0x118eeb(0xa9)]('\x0a')[_0x118eeb(0x240)](/^/gm,'\x20'['repeat'](_0x4cf744));}const _0xed5fae=[];_0xed5fae[_0xf18d4b(0x267)](_0xf18d4b(0x218)+_0x58b6cc['commandUsage'](_0x370340));const _0x49c12c=_0x58b6cc[_0xf18d4b(0x2b4)](_0x370340);_0x49c12c&&(_0xed5fae[_0xf18d4b(0x267)](''),_0xed5fae[_0xf18d4b(0x267)](_0x49c12c));const _0x2218cf=_0x370340[_0xf18d4b(0x264)][_0xf18d4b(0x25a)](_0x279c93=>!_0x1e79b8(_0x279c93));if(_0x2218cf[_0xf18d4b(0xc3)]>0x0){if(_0x370340[_0xf18d4b(0x1cc)]()===_0xf18d4b(0x237)){const _0xfd3972=_0x370340[_0xf18d4b(0x1a9)](),_0x269c35=!_0xfd3972[_0xf18d4b(0x160)]&&process[_0xf18d4b(0x95)][_0xf18d4b(0xf4)],_0x1d749c=COMMAND_CATEGORIES,_0x21e8fc=(_0x1d988e,_0x3fd5a6)=>_0x269c35?_0x3fd5a6(_0x1d988e):_0x1d988e,_0x3c5593=new Map();_0x2218cf[_0xf18d4b(0x127)](_0x38bb77=>{const _0x2d375a=_0xf18d4b;_0x3c5593['set'](_0x38bb77[_0x2d375a(0x1cc)](),_0x38bb77);}),_0x1d749c[_0xf18d4b(0x127)](_0x26afea=>{const _0xec741d=_0xf18d4b,_0x565588=_0x26afea[_0xec741d(0x264)][_0xec741d(0x2bf)](_0x5d3b7f=>_0x3c5593[_0xec741d(0x20e)](_0x5d3b7f)??[]);if(_0x565588[_0xec741d(0xc3)]>0x0){_0xed5fae[_0xec741d(0x267)](''),_0xed5fae[_0xec741d(0x267)](_0x21e8fc(_0x26afea[_0xec741d(0x1cc)]+':',_0x26afea[_0xec741d(0x10a)]));const _0x46bf94=_0x565588['map'](_0x18ad45=>{const _0x411e24=_0xec741d,_0xe36fa2=_0x58b6cc[_0x411e24(0xee)](_0x18ad45),_0x2504ca=_0x58b6cc[_0x411e24(0x1c7)](_0x18ad45);return _0x43c2af(_0xe36fa2,_0x2504ca);});_0xed5fae[_0xec741d(0x267)](_0x21f68f(_0x46bf94));}}),_0xed5fae[_0xf18d4b(0x267)](''),_0xed5fae['push']('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x276529=_0x2218cf[_0xf18d4b(0xc0)](_0x1cca3f=>{const _0x59b984=_0xf18d4b,_0x4b0e89=_0x58b6cc[_0x59b984(0xee)](_0x1cca3f),_0x3f60b2=_0x58b6cc[_0x59b984(0x1c7)](_0x1cca3f);return _0x43c2af(_0x4b0e89,_0x3f60b2);});_0xed5fae[_0xf18d4b(0x267)](''),_0xed5fae[_0xf18d4b(0x267)]('Commands:'),_0xed5fae[_0xf18d4b(0x267)](_0x21f68f(_0x276529));}}const _0x38d4f7=_0x370340[_0xf18d4b(0xa8)][_0xf18d4b(0x25a)](_0x399661=>!_0x1e79b8(_0x399661));if(_0x38d4f7[_0xf18d4b(0xc3)]>0x0){const _0x1cdeb7=_0x38d4f7[_0xf18d4b(0xc0)](_0x1bc802=>{const _0x596387=_0xf18d4b,_0x123a31=_0x58b6cc[_0x596387(0xc8)](_0x1bc802),_0xbb6943=_0x58b6cc[_0x596387(0x1e2)](_0x1bc802);return _0x43c2af(_0x123a31,_0xbb6943);});_0xed5fae[_0xf18d4b(0x267)](''),_0xed5fae[_0xf18d4b(0x267)](_0xf18d4b(0x23e)),_0xed5fae[_0xf18d4b(0x267)](_0x21f68f(_0x1cdeb7));}const _0x536f3b=(_0x370340[_0xf18d4b(0x199)]||[])['filter'](_0x2c7b38=>!_0x1e79b8(_0x2c7b38));if(_0x536f3b[_0xf18d4b(0xc3)]>0x0){const _0x2e09b4=_0x536f3b['map'](_0x137b6d=>{const _0x452949=_0xf18d4b,_0x1b212a=_0x58b6cc['argumentTerm'](_0x137b6d),_0x2803a3=_0x58b6cc[_0x452949(0xc9)](_0x137b6d);return _0x43c2af(_0x1b212a,_0x2803a3);});_0xed5fae[_0xf18d4b(0x267)](''),_0xed5fae[_0xf18d4b(0x267)](_0xf18d4b(0xba)),_0xed5fae[_0xf18d4b(0x267)](_0x21f68f(_0x2e09b4));}return _0xed5fae['join']('\x0a');},'subcommandTerm':_0x360aa2=>{const _0x40bd70=a2_0x39c4c3,_0x39bffc=(_0x360aa2[_0x40bd70(0x199)]||[])[_0x40bd70(0xc0)](_0x1f5094=>_0x1f5094[_0x40bd70(0x249)]?'<'+_0x1f5094[_0x40bd70(0x1cc)]()+'>':'['+_0x1f5094[_0x40bd70(0x1cc)]()+']')['join']('\x20'),_0x3252a7=_0x360aa2[_0x40bd70(0x208)](),_0x10e2f4=_0x3252a7['length']>0x0?_0x360aa2[_0x40bd70(0x1cc)]()+',\x20'+_0x3252a7[_0x40bd70(0xa9)](',\x20'):_0x360aa2['name']();return _0x39bffc?_0x10e2f4+'\x20'+_0x39bffc:_0x10e2f4;}}),program[a2_0x39c4c3(0x238)](a2_0x39c4c3(0x122),_0x3910b5=>{const _0x4a4529=a2_0x39c4c3,_0x4c5941=_0x3910b5['opts']();if(_0x4c5941[_0x4a4529(0x121)]){const _0x3f7534=resolve(_0x4c5941[_0x4a4529(0x121)]),_0x2efa1d=_0x3f7534!==_0x4c5941[_0x4a4529(0x121)]?_0x4a4529(0xc6)+_0x3f7534+')':'';if(!existsSync(_0x3f7534))throw new SDKError(ErrorCode[_0x4a4529(0x126)],_0x4a4529(0x22d)+_0x4c5941[_0x4a4529(0x121)]+_0x2efa1d,undefined,{'helpText':_0x4a4529(0x1cf)});const _0x28224d=statSync(_0x3f7534);if(!_0x28224d['isDirectory']())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4a4529(0x144)+_0x4c5941[_0x4a4529(0x121)]+_0x2efa1d,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process[_0x4a4529(0x215)](_0x3f7534);}if(!_0x4c5941[_0x4a4529(0x250)]){if(_0x4c5941[_0x4a4529(0x1da)])_0x4c5941[_0x4a4529(0x250)]=_0x4a4529(0x1da);else{if(_0x4c5941[_0x4a4529(0x225)])_0x4c5941[_0x4a4529(0x250)]=_0x4a4529(0x225);else{if(_0x4c5941[_0x4a4529(0x25f)])_0x4c5941['format']='jsonl';else _0x4c5941[_0x4a4529(0x9e)]&&(_0x4c5941[_0x4a4529(0x250)]=_0x4a4529(0x9e));}}}_0x4c5941['in']&&!_0x4c5941['database']&&(_0x4c5941[_0x4a4529(0x115)]=_0x4c5941['in']);if(_0x4c5941['trace'])_0x4c5941[_0x4a4529(0x1b0)]=LogLevel[_0x4a4529(0x1fc)];else{if(_0x4c5941[_0x4a4529(0x20c)])_0x4c5941['logLevel']=LogLevel[_0x4a4529(0x2c5)];else _0x4c5941['logLevel']===undefined&&(_0x4c5941[_0x4a4529(0x1b0)]=LogLevel['INFO']);}});function a2_0x153d(){const _0x1fdde7=['Agent\x20reference\x20(project-name/agent-name)','delete\x20<name-or-id>','Resume\x20a\x20paused\x20campaign','Database\x20to\x20use\x20(overrides\x20context)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','run','jobs','--subject\x20<subject>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--agent\x20<name>','attempts\x20[project]','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','view\x20<name-or-path>','--no-count-population','Attempt\x20ID','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','help','slice','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','TRACE','Agent\x20description','includes','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','--clear','[attempt-id]','Show\x20web\x20console\x20URLs\x20for\x20journeys','padEnd','4000','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','projects\x20[pattern]','Workflow\x20session\x20management','aliases','createAsync','Set\x20operation\x20timeout\x20in\x20seconds','folders\x20<parent_name>','debug','download\x20<project-name>\x20[output-dir]','get','resume\x20<name-or-id>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','site','clear','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','chdir','tdx\x20','buildTime','Usage:\x20','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','workflow','context','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','--interval\x20<range>','Email\x20subject\x20template','-f,\x20--force','use\x20<path>','port','--in\x20<name>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','json','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','log','use\x20<name>','argv','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Task\x20name\x20for\x20logs\x20action','Template\x20name','Directory\x20does\x20not\x20exist:\x20','--llm-project\x20<name>','-r,\x20--recursive','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','-d,\x20--database\x20<name>','--name\x20<text>','--workspace\x20<name>','3090cIWiEs','Parent\x20segment\x20management','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','tdx','hook','Include\x20retried\x20attempts','Agent\x20name','-c,\x20--continue','2388pmbokI','retry','Options:','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','replace','2202074KAFVcy','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','-u,\x20--use','addHelpText','--tsv','--new','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','required','Enable\x20verbose\x20logging','Pause\x20a\x20running\x20journey','\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','--site\x20<site>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Make\x20segment\x20invisible\x20(default:\x20visible)','format','2759706vjmSvO','Temperature\x20(0.0-2.0,\x20default:\x200.7)','42790ZuaCUv','Launch\x20a\x20campaign','outputHelp','--json','Filtering\x20rule\x20from\x20JSON\x20file','parent','validate\x20[name]','filter','project','AI-native\x20CLI\x20for\x20Treasure\x20Data','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Override\x20project\x20name','jsonl','15mRINON','-d,\x20--database\x20<database>','use\x20[name]','desc\x20[name]','commands','isArray','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','push','Show\x20agent\x20chat\x20URLs','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','--folder\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','System\x20prompt/instructions\x20(default:\x20empty)','--include-stats','error','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','describe\x20[table]','Updated\x20schedule\x20option','Customer\x20group\x20from\x20JSON\x20file','Skip\x20validation\x20of\x20.dig\x20files','submit\x20[query]','Behaviors\x20as\x20JSON\x20string','delete\x20<name>','--status\x20<status>','Get\x20job\x20results','-o,\x20--output\x20<dir>','api\x20[endpoint]','show\x20<folder_ref>','llm','update\x20<name>','Save\x20output\x20to\x20file','Workspace\x20description','list\x20[pattern]','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','show\x20<name>','Resume\x20from\x20specific\x20task','Maximum\x20tool\x20iterations\x20(default:\x204)','session','--enriched','--table','[options]\x20--\x20[claude-code-args...]','version','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','option','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Master\x20database\x20name','Campaign\x20description','Show\x20the\x20most\x20recent\x20chat','--last','Attributes\x20as\x20JSON\x20string','Name\x20for\x20the\x20new\x20project\x20(required)','Open\x20parent\x20segment\x20in\x20web\x20browser','agents\x20[pattern]','pause\x20<name-or-path>','--jsonl','Resume\x20a\x20conversation\x20(shows\x20selector)','--plaintext\x20<text>','push\x20[target]','Unknown\x20action:\x20','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','desc','--add-behaviors-file\x20<file>','\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','padWidth','desc\x20[segment_name]','Show\x20connection\x20details\x20by\x20name','Set\x20or\x20show\x20parent\x20segment\x20context','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','-y,\x20--yes','[action]','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--from-task\x20<task>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--resume-from\x20<task>','--attributes-file\x20<file>','exit','--from\x20<timestamp>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Updated\x20description','--timezone\x20<tz>','Authentication\x20management','engage','--kind\x20<type>','commandDescription','list','pull\x20[project]\x20[agent-name]','Maximum\x20recursion\x20depth\x20(default:\x2010)','Show\x20job\x20details','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--include-retried','show\x20<agent-name>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','trino','flatMap','summary','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Delete\x20an\x20email\x20template','query\x20[sql]','Update\x20a\x20campaign','DEBUG','allowUnknownOption','Attributes\x20from\x20JSON\x20file','Show\x20agent\x20details','Start\x20a\x20new\x20chat\x20session','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--type\x20<type>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','\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','kill','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','List\x20all\x20available\x20profiles','statusline','--color','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','-w,\x20--web','stdout','-o,\x20--output\x20<folder>','campaigns\x20[pattern]','show\x20<job-id>','templates\x20[pattern]','list\x20[path]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Move\x20to\x20folder','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','tsv','journey','Workflow\x20project\x20management','Alias\x20for\x20--database\x20(natural\x20language\x20style)','sonnet','Campaign\x20management','New\x20workspace\x20name','--description\x20<text>','catch','--html\x20<html>','options','join','--name\x20<name>','setup','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','[task-name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','-n,\x20--name\x20<name>','Create\x20a\x20workspace','Skip\x20confirmation\x20prompt','requiredOption','push\x20[project-name-or-dir]','6040984otIPZy','action','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','status','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Arguments:','Duplicate\x20a\x20campaign','create','result\x20<job-id>','parents\x20[pattern]','allowExcessArguments','map','Create\x20a\x20new\x20LLM\x20project','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','length','restore\x20<folder>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','\x20(resolved\x20to\x20','Preview\x20operation\x20without\x20executing','optionTerm','argumentDescription','Table\x20management\x20commands','settings\x20<type>','workspace','Timezone\x20(e.g.,\x20America/Los_Angeles)','--yes','Workspace\x20management','agent','Output\x20as\x20JSON\x20Lines','Push\x20without\x20confirmation','Output\x20file\x20path\x20(default:\x20<name>.yml)','--segment\x20<path>','--behavior\x20[name]','Segment\x20description','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Show\x20master\x20table\x20sample\x20data','860cEtqXB','--description\x20<desc>','--full','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','Folder\x20description','show\x20[name]','--in\x20<database>','HTML\x20template\x20content','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','List\x20all\x20data\x20connections','Open\x20segment\x20in\x20web\x20browser','push\x20[file]','create\x20<name>','--system-prompt\x20<text>','segment','pull\x20[name]','preview\x20[name]','databases\x20[pattern]','Show\x20email\x20template\x20details',',\x20version\x20','--parent-segment\x20<name>','subcommandTerm','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','run\x20[name]','history\x20[chat-id]','Editor\x20type','Clear\x20session\x20context','isTTY','argument','--database\x20<db>','Filtering\x20rule\x20as\x20JSON\x20string','--debug','Overwrite\x20local\x20changes\x20without\x20confirmation','show\x20[segment_name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Read\x20query\x20from\x20file','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','-o,\x20--output\x20<file>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Data\x20connection\x20management\x20(for\x20activations/exports)','Pause\x20a\x20campaign','connections','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--prompt\x20<text>','Database\x20to\x20query\x20(default:\x20information_schema)','Starter\x20message','--output\x20<file>','--max-depth\x20<depth>','colorFn','Workflow\x20attempt\x20management','Trino\x20catalog\x20(default:\x20td)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','List\x20journeys\x20in\x20current\x20context','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','116874KYDNpB','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','usage','-1d','database','--to\x20<timestamp>','pull\x20[parent_or_file]','--timeout\x20<seconds>','--editor-type\x20<type>','Master\x20table\x20name','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--master','Pull\x20child\x20segments\x20to\x20YAML\x20files','push\x20[parent_or_file]','Show\x20journey\x20statistics','directory','preAction','Workflow\x20parameter\x20(repeatable)','Read\x20SQL\x20query\x20from\x20file','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','INVALID_ARGUMENT','forEach','--format\x20<format>','Delete\x20a\x20workspace','Update\x20an\x20email\x20template','update\x20<name-or-id>','--trace','--version','../package.json','--limit\x20<n>','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20journey\x20details','list\x20[project]','update\x20<segment_name>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','alias','0.7','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','.dev','-v,\x20--verbose','Create\x20an\x20email\x20template','--no-proxy','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Customer\x20group\x20as\x20JSON\x20string','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Job\x20management\x20commands','description','--rule\x20<json>','Output\x20as\x20JSON','Path\x20is\x20not\x20a\x20directory:\x20','--start-at\x20<datetime>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','show\x20<name-or-id>','parent-segment','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','pause\x20<name-or-id>','Reason\x20for\x20killing\x20the\x20attempt','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','segments\x20[path]','--schedule-type\x20<type>','resume\x20<name-or-path>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','us01','folder','--dry-run','backup\x20<name>','Setup\x20API\x20key\x20authentication\x20interactively','-p,\x20--profile\x20<name>','build-info.json','attempt:','view\x20[name]','--job-type\x20<type>','--temperature\x20<n>','proxy','profiles','Email\x20sender\x20ID\x20for\x20delivery','noColor','users','connection','retry\x20<session-id>','view\x20[segment_name]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Create\x20segment\x20folder','[DEPRECATED]\x20Segment\x20folder\x20management','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','parent_segment','--limit\x20<number>','New\x20segment\x20name','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','651191YANkNH','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--limit\x20<rows>','--type\x20<api_type>','--attribute\x20[name]','--params\x20<json>','Delete\x20an\x20LLM\x20project','--revision\x20<revision>','--behaviors-file\x20<file>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','preview\x20[file]','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Parent\x20folder\x20name\x20for\x20nested\x20folders','Project\x20description','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','fields\x20[name]','utf-8','Update\x20a\x20workspace','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Workspace\x20name','Include\x20subtasks\x20in\x20tasks\x20output','after','--email-sender-id\x20<id>','--add-attributes-file\x20<file>','Skip\x20confirmation\x20prompts','fields\x20[parent_name]','LLM\x20agent\x20management','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Behaviors\x20from\x20JSON\x20file','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','create\x20<parent_name>\x20<folder_name>','Show\x20stats\x20for\x20specific\x20stage','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','info\x20[segment_name]','update\x20<agent-name>','--table\x20<table>','Resume\x20from\x20specific\x20task\x20(retry)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','-C,\x20--directory\x20<path>','Workspace\x20name\x20(required)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','command','Change\x20to\x20directory\x20before\x20executing\x20command','registeredArguments','--delete','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--starter-message\x20<text>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','End\x20time\x20filter\x20(ISO\x208601\x20format)','-r,\x20--resume','Create\x20a\x20new\x20campaign','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','duplicate\x20<name-or-id>','delete\x20<agent-name>','Plaintext\x20template\x20content','List\x20available\x20connector\x20types','-X,\x20--method\x20<method>','opts','Show\x20segment\x20details\x20(alias\x20for\x20view)','parse','Show\x20web\x20console\x20URLs\x20for\x20segments','Submit\x20a\x20job','12HWbGlo','Add\x20behaviors\x20as\x20JSON\x20string','logLevel','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','List\x20agents\x20in\x20current\x20project','Show\x20segment\x20schema\x20(column\x20types)','List\x20available\x20LLM\x20models','CDP\x20segment\x20management\x20commands','--schedule-option\x20<value>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--behaviors\x20<json>','Include\x20retried\x20attempts\x20(for\x20list)','\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','validate\x20[file]','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','--model\x20<name>','GET','tasks','Update\x20an\x20existing\x20agent','types','Updated\x20timezone','workflows\x20[project]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','-f,\x20--file\x20<path>','Show\x20workspace\x20details','subcommandDescription','Open\x20journey\x20in\x20web\x20browser','New\x20template\x20name','tables\x20[pattern]','User\x20management\x20commands','name','gitRevision','Add\x20behaviors\x20from\x20JSON\x20file','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','configureHelp','--include-subtasks','template','Folder\x20name\x20for\x20organization','show\x20[table]','Show\x20console\x20URLs','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','table','--rule-file\x20<file>','sql\x20[segment_name]','logs','Output\x20directory','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Export\x20journey(s)\x20as\x20YAML\x20files','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','optionDescription','Campaign\x20name','--add-behaviors\x20<json>','Delete\x20an\x20agent','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--invisible'];a2_0x153d=function(){return _0x1fdde7;};return a2_0x153d();}async function createTDXInstance(_0x4e50bf){const _0x55c124=a2_0x39c4c3,_0x478d50=await GlobalContext[_0x55c124(0x209)](_0x4e50bf);return _0x478d50['injectIntoOptions'](_0x4e50bf),TDX['create']({'site':_0x478d50[_0x55c124(0x212)],'apiKey':_0x478d50['apiKey'],'logLevel':_0x478d50[_0x55c124(0x1b0)],'profile':_0x478d50['profile']});}const databaseCmd=program['command'](a2_0x39c4c3(0x115))[a2_0x39c4c3(0x135)]('db')[a2_0x39c4c3(0x141)]('Database\x20management\x20commands'),databaseListAction=async(_0x40d272,_0x390b79)=>{const _0x2dc2b3=a2_0x39c4c3,_0x231918=new DatabasesCommand(),_0x337107=program[_0x2dc2b3(0x1a9)](),_0x50de55=await createTDXInstance(_0x337107),_0x4baf83=await _0x231918[_0x2dc2b3(0x1ed)]({'options':{..._0x337107,..._0x390b79},'args':_0x40d272?[_0x40d272]:[],'tdx':_0x50de55});process[_0x2dc2b3(0x2ac)](_0x4baf83);};databaseCmd['command']('list\x20[pattern]')[a2_0x39c4c3(0x141)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x39c4c3(0xb6)](databaseListAction),program['command'](a2_0x39c4c3(0xea),{'hidden':!![]})[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x14c))[a2_0x39c4c3(0xb6)](databaseListAction),program[a2_0x39c4c3(0x197)]('chat\x20[message...]')[a2_0x39c4c3(0x141)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x39c4c3(0x28c)]('--agent\x20<ref>',a2_0x39c4c3(0x1e8))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x247),a2_0x39c4c3(0x88))[a2_0x39c4c3(0xb6)](async(_0x4f5636,_0x11c503)=>{const _0x24e65d=a2_0x39c4c3,_0x22fdc0=new ChatCommand(),_0x5c4241=program[_0x24e65d(0x1a9)](),_0x1a5409=await createTDXInstance(_0x5c4241),_0x5d9ee8=await _0x22fdc0[_0x24e65d(0x1ed)]({'options':{..._0x5c4241,..._0x11c503},'args':_0x4f5636,'tdx':_0x1a5409});process[_0x24e65d(0x2ac)](_0x5d9ee8);});const apiCmd=program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x27a))[a2_0x39c4c3(0x2c0)](a2_0x39c4c3(0x179))[a2_0x39c4c3(0x245)](a2_0x39c4c3(0x183),a2_0x39c4c3(0x29f))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1a8),a2_0x39c4c3(0x21c),a2_0x39c4c3(0x1be))[a2_0x39c4c3(0x28c)]('--data\x20<data>','Request\x20body\x20as\x20JSON\x20string')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1c5),'Read\x20request\x20body\x20from\x20file')[a2_0x39c4c3(0x28c)]('-H,\x20--header\x20<header>',a2_0x39c4c3(0x25d),(_0x393a81,_0x4ee054)=>{return _0x4ee054?[..._0x4ee054,_0x393a81]:[_0x393a81];})['option'](a2_0x39c4c3(0x170),a2_0x39c4c3(0x1f8),'td')[a2_0x39c4c3(0xb6)](async(_0x2c9e1e,_0x1de746)=>{const _0x449c89=a2_0x39c4c3;if(!_0x2c9e1e){apiCmd[_0x449c89(0x1f9)]();return;}const _0x27005a=new ApiCommand(),_0x5611a1=program['opts'](),_0x4fe4ee=await createTDXInstance(_0x5611a1),_0x2180ed=await _0x27005a['run']({'options':{..._0x5611a1,..._0x1de746},'args':[_0x2c9e1e],'tdx':_0x4fe4ee});process[_0x449c89(0x2ac)](_0x2180ed);}),tableCmd=program[a2_0x39c4c3(0x197)]('table')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xca)),tableListAction=async(_0x26051d,_0x3d7079)=>{const _0x4b209b=a2_0x39c4c3,_0x17426b=new TablesCommand(),_0x3e93e1=program[_0x4b209b(0x1a9)](),_0x3b0681=await createTDXInstance(_0x3e93e1);_0x3d7079['in']&&(_0x3d7079[_0x4b209b(0x115)]=_0x3d7079['in']);const _0x4b6b80=await _0x17426b['run']({'options':{..._0x3e93e1,..._0x3d7079},'args':_0x26051d?[_0x26051d]:[],'tdx':_0x3b0681});process[_0x4b209b(0x2ac)](_0x4b6b80);};tableCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x280))[a2_0x39c4c3(0x141)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x261),a2_0x39c4c3(0x1d1))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xdf),a2_0x39c4c3(0xa1))[a2_0x39c4c3(0xb6)](tableListAction),program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1ca),{'hidden':!![]})[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xad))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x261),a2_0x39c4c3(0x1d1))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xdf),a2_0x39c4c3(0xa1))[a2_0x39c4c3(0xb6)](tableListAction),program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1d7))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x176))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x261),a2_0x39c4c3(0x1df))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xdf),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x39c4c3(0xb6)](async(_0x452cfd,_0x5f1534)=>{const _0xc3cb28=a2_0x39c4c3,_0x241e8d=new ShowCommand(),_0x3a0b20=program[_0xc3cb28(0x1a9)](),_0x1049d8=await createTDXInstance(_0x3a0b20);_0x5f1534['in']&&(_0x5f1534[_0xc3cb28(0x115)]=_0x5f1534['in']);const _0x53fca5=await _0x241e8d[_0xc3cb28(0x1ed)]({'options':{..._0x3a0b20,..._0x5f1534},'args':_0x452cfd?[_0x452cfd]:[],'tdx':_0x1049d8});process[_0xc3cb28(0x2ac)](_0x53fca5);}),program['command'](a2_0x39c4c3(0x270))[a2_0x39c4c3(0x135)](a2_0x39c4c3(0x29d))['description']('Describe\x20table\x20schema')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x261),a2_0x39c4c3(0x1df))['option'](a2_0x39c4c3(0xdf),a2_0x39c4c3(0xa1))[a2_0x39c4c3(0xb6)](async(_0x5e60b6,_0x122d35)=>{const _0xf2c5b9=a2_0x39c4c3,_0x5c30fd=new DescribeCommand(),_0x3f184=program['opts'](),_0x389dcd=await createTDXInstance(_0x3f184);_0x122d35['in']&&(_0x122d35[_0xf2c5b9(0x115)]=_0x122d35['in']);const _0x5e60d3=await _0x5c30fd[_0xf2c5b9(0x1ed)]({'options':{..._0x3f184,..._0x122d35},'args':_0x5e60b6?[_0x5e60b6]:[],'tdx':_0x389dcd});process[_0xf2c5b9(0x2ac)](_0x5e60d3);}),program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x2c3))[a2_0x39c4c3(0x141)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x261),a2_0x39c4c3(0x106))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xdf),a2_0x39c4c3(0xa1))[a2_0x39c4c3(0x28c)]('--catalog\x20<catalog>',a2_0x39c4c3(0x10c))[a2_0x39c4c3(0x28c)]('-f,\x20--file\x20<path>',a2_0x39c4c3(0x124))['option'](a2_0x39c4c3(0x16f),a2_0x39c4c3(0x205),'40')['action'](async(_0x12c2a4,_0x10e4b9)=>{const _0x2d5a12=a2_0x39c4c3,_0x3bb468=new QueryCommand(),_0x21996b=program['opts'](),_0x5888e4=await createTDXInstance(_0x21996b);_0x10e4b9['in']&&(_0x10e4b9[_0x2d5a12(0x115)]=_0x10e4b9['in']);const _0x1dc5ad=await _0x3bb468[_0x2d5a12(0x1ed)]({'options':{..._0x21996b,..._0x10e4b9},'args':_0x12c2a4?[_0x12c2a4]:[],'tdx':_0x5888e4});process[_0x2d5a12(0x2ac)](_0x1dc5ad);});const segmentCmd=program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xe7))['alias']('sg')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1b5)),segmentListAction=async(_0x258e72,_0x1a96ee)=>{const _0x3c3885=a2_0x39c4c3,_0x22eae2=new SegmentsCommand(),_0x4f38ba=program[_0x3c3885(0x1a9)](),_0x269139=await createTDXInstance(_0x4f38ba),_0x1681a7=await _0x22eae2[_0x3c3885(0x1ed)]({'options':{..._0x4f38ba,..._0x1a96ee},'args':_0x258e72?[_0x258e72]:[],'tdx':_0x269139});process[_0x3c3885(0x2ac)](_0x1681a7);};segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x9a))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2c1))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x22f),a2_0x39c4c3(0x14d))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x109),a2_0x39c4c3(0x2b7),'10')[a2_0x39c4c3(0x28c)]('-w,\x20--web','Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x39c4c3(0xb6)](segmentListAction),program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x14e),{'hidden':!![]})[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x19c))['option'](a2_0x39c4c3(0x22f),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x39c4c3(0x109),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['option'](a2_0x39c4c3(0x94),a2_0x39c4c3(0x1ac))['action'](segmentListAction),segmentCmd['command'](a2_0x39c4c3(0x221),{'hidden':!![]})[a2_0x39c4c3(0x141)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x39c4c3(0xb6)](async(_0x212230,_0x1ab051)=>{const _0x25c823=a2_0x39c4c3,_0x16d66a=new SegmentUseCommand(),_0x5d23fc=program[_0x25c823(0x1a9)](),_0x508bb9=await createTDXInstance(_0x5d23fc),_0x2d9d65=await _0x16d66a[_0x25c823(0x1ed)]({'options':{..._0x5d23fc,..._0x1ab051},'args':[_0x212230],'tdx':_0x508bb9});process[_0x25c823(0x2ac)](_0x2d9d65);});const segmentViewAction=async(_0x54af0b,_0x1db172)=>{const _0x123d55=a2_0x39c4c3,_0x25a3a3=new SegmentViewCommand(),_0x38f48a=program[_0x123d55(0x1a9)](),_0x23a74e=await createTDXInstance(_0x38f48a),_0x2c2e77=await _0x25a3a3['run']({'options':{..._0x38f48a,..._0x1db172},'args':_0x54af0b?[_0x54af0b]:[],'tdx':_0x23a74e});process[_0x123d55(0x2ac)](_0x2c2e77);};segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x164))['description']('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x94),'Open\x20segment\x20in\x20web\x20browser')[a2_0x39c4c3(0xb6)](segmentViewAction),segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x18f),{'hidden':!![]})[a2_0x39c4c3(0x135)]('describe')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x94),a2_0x39c4c3(0xe3))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1aa))['action'](segmentViewAction),segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x2a1))['description'](a2_0x39c4c3(0x1b3))[a2_0x39c4c3(0xb6)](async(_0x58442c,_0x347bf0)=>{const _0x3a80a4=a2_0x39c4c3,_0x29bda5=new SegmentDescCommand(),_0x2e5d80=program[_0x3a80a4(0x1a9)](),_0x42ca68=await createTDXInstance(_0x2e5d80),_0x54eea7=await _0x29bda5[_0x3a80a4(0x1ed)]({'options':{..._0x2e5d80,..._0x347bf0},'args':_0x58442c?[_0x58442c]:[],'tdx':_0x42ca68});process['exit'](_0x54eea7);}),segmentCmd['command'](a2_0x39c4c3(0xfa))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x165))[a2_0x39c4c3(0xb6)](async(_0x264d0f,_0x506ddf)=>{const _0x53425e=a2_0x39c4c3,_0xc3c007=new SegmentShowCommand(),_0x2cf06d=program[_0x53425e(0x1a9)](),_0x100379=await createTDXInstance(_0x2cf06d),_0x6a070c=await _0xc3c007[_0x53425e(0x1ed)]({'options':{..._0x2cf06d,..._0x506ddf},'args':_0x264d0f?[_0x264d0f]:[],'tdx':_0x100379});process[_0x53425e(0x2ac)](_0x6a070c);}),segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x20b),{'hidden':!![]})[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x224))[a2_0x39c4c3(0xb6)](async(_0x6c3c07,_0x27cf0a)=>{const _0x4aa8d1=a2_0x39c4c3,_0x18c9b=new SegmentFolderListCommand(),_0x8a6278=program[_0x4aa8d1(0x1a9)](),_0x111761=await createTDXInstance(_0x8a6278),_0x16a43c=await _0x18c9b[_0x4aa8d1(0x1ed)]({'options':{..._0x8a6278,..._0x27cf0a},'args':[_0x6c3c07],'tdx':_0x111761});process[_0x4aa8d1(0x2ac)](_0x16a43c);});function a2_0x37e2(_0x1408ed,_0xaa1cd1){_0x1408ed=_0x1408ed-0x88;const _0x153d12=a2_0x153d();let _0x37e2c3=_0x153d12[_0x1408ed];return _0x37e2c3;}const folderCmd=segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x153),{'hidden':!![]})['description'](a2_0x39c4c3(0x167));folderCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x27b))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x248))[a2_0x39c4c3(0xb6)](async(_0x501b98,_0x48415b)=>{const _0x1588bc=a2_0x39c4c3,_0x1f9e9d=new SegmentFolderShowCommand(),_0x104ce7=program[_0x1588bc(0x1a9)](),_0x3a2826=await createTDXInstance(_0x104ce7),_0x2fe908=await _0x1f9e9d['run']({'options':{..._0x104ce7,..._0x48415b},'args':[_0x501b98],'tdx':_0x3a2826});process['exit'](_0x2fe908);}),segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1dc))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x168))[a2_0x39c4c3(0xb6)](async(_0x4d1c42,_0x13ed77)=>{const _0x45507d=a2_0x39c4c3,_0x36c8fa=new SegmentSQLCommand(),_0x27ebf0=program[_0x45507d(0x1a9)](),_0x3f9d98=await createTDXInstance(_0x27ebf0),_0x148180=await _0x36c8fa[_0x45507d(0x1ed)]({'options':{..._0x27ebf0,..._0x13ed77},'args':_0x4d1c42?[_0x4d1c42]:[],'tdx':_0x3f9d98});process['exit'](_0x148180);}),segmentCmd['command'](a2_0x39c4c3(0x187))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x9b))[a2_0x39c4c3(0xb6)](async(_0x5502b8,_0x3f441f)=>{const _0x3d2650=a2_0x39c4c3,_0x44b793=new SegmentFieldsCommand(),_0x1a1ef3=program[_0x3d2650(0x1a9)](),_0x185c6b=await createTDXInstance(_0x1a1ef3),_0x14323b=await _0x44b793[_0x3d2650(0x1ed)]({'options':{..._0x1a1ef3,..._0x3f441f},'args':_0x5502b8?[_0x5502b8]:[],'tdx':_0x185c6b});process[_0x3d2650(0x2ac)](_0x14323b);}),segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x117))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x11e))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2a5),a2_0x39c4c3(0x186))['option']('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x39c4c3(0xb6)](async(_0x41eb3b,_0x3da37d)=>{const _0x3c69dc=a2_0x39c4c3,_0x15c0a1=new SegmentPullCommand(),_0x4451b0=program[_0x3c69dc(0x1a9)](),_0x169ff0=await createTDXInstance(_0x4451b0),_0x4f18e3=await _0x15c0a1[_0x3c69dc(0x1ed)]({'options':{..._0x4451b0,..._0x3da37d},'args':_0x41eb3b?[_0x41eb3b]:[],'tdx':_0x169ff0});process[_0x3c69dc(0x2ac)](_0x4f18e3);}),segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x11f))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x13f))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2a5),a2_0x39c4c3(0x186))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x154),a2_0x39c4c3(0x1d9))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x19a),a2_0x39c4c3(0x1bc))[a2_0x39c4c3(0xb6)](async(_0x3ab6f8,_0x10e562)=>{const _0x5b379b=a2_0x39c4c3,_0x5e01bc=new SegmentPushCommand(),_0x315834=program[_0x5b379b(0x1a9)](),_0x5740ae=await createTDXInstance(_0x315834),_0x47d2c5=await _0x5e01bc[_0x5b379b(0x1ed)]({'options':{..._0x315834,..._0x10e562},'args':_0x3ab6f8?[_0x3ab6f8]:[],'tdx':_0x5740ae});process[_0x5b379b(0x2ac)](_0x47d2c5);}),segmentCmd['command']('create\x20<segment_name>',{'hidden':!![]})[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x29c))[a2_0x39c4c3(0x28c)]('--description\x20<text>',a2_0x39c4c3(0xd6))[a2_0x39c4c3(0x28c)]('--rule\x20<json>',a2_0x39c4c3(0xf7))['option']('--rule-file\x20<file>',a2_0x39c4c3(0x257))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x26a),a2_0x39c4c3(0x1d6))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2b3),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1e7),a2_0x39c4c3(0x24f))['option'](a2_0x39c4c3(0x1f5),'Skip\x20population\x20counting')[a2_0x39c4c3(0xb6)](async(_0x643d5d,_0x4dcf94)=>{const _0x3f4ee9=a2_0x39c4c3,_0x35ec0f=new SegmentCreateCommand(),_0x2aab7e=program[_0x3f4ee9(0x1a9)](),_0x4ac3bb=await createTDXInstance(_0x2aab7e),_0x5799c5=await _0x35ec0f['run']({'options':{..._0x2aab7e,..._0x4dcf94},'args':[_0x643d5d],'tdx':_0x4ac3bb});process[_0x3f4ee9(0x2ac)](_0x5799c5);}),segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x133),{'hidden':!![]})[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x19b))[a2_0x39c4c3(0x28c)]('--name\x20<new_name>',a2_0x39c4c3(0x16b))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xa5),a2_0x39c4c3(0x2af))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x142),a2_0x39c4c3(0x28d))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1db),a2_0x39c4c3(0x1ec))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x26a),a2_0x39c4c3(0x9c))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2b3),a2_0x39c4c3(0x196))[a2_0x39c4c3(0xb6)](async(_0xabf9a8,_0x3e6e31)=>{const _0x3c380c=a2_0x39c4c3,_0x2785e1=new SegmentUpdateCommand(),_0x3082c1=program[_0x3c380c(0x1a9)](),_0x7370b6=await createTDXInstance(_0x3082c1),_0x1612be=await _0x2785e1[_0x3c380c(0x1ed)]({'options':{..._0x3082c1,..._0x3e6e31},'args':[_0xabf9a8],'tdx':_0x7370b6});process[_0x3c380c(0x2ac)](_0x1612be);});const parentCmd=segmentCmd['command'](a2_0x39c4c3(0x258),{'hidden':!![]})[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x137)),parentListAction=async(_0x11dff8,_0x121aaf)=>{const _0x1ce951=a2_0x39c4c3,_0x4c8bc2=new ParentSegmentListCommand(),_0x41a350=program[_0x1ce951(0x1a9)](),_0x475967=await createTDXInstance(_0x41a350),_0x724143=await _0x4c8bc2[_0x1ce951(0x1ed)]({'options':{..._0x41a350,..._0x121aaf},'args':_0x11dff8?[_0x11dff8]:[],'tdx':_0x475967});process[_0x1ce951(0x2ac)](_0x724143);};parentCmd[a2_0x39c4c3(0x197)]('list\x20[pattern]')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xc5))[a2_0x39c4c3(0xb6)](parentListAction),segmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xbe),{'hidden':!![]})[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xef))[a2_0x39c4c3(0xb6)](parentListAction),parentCmd[a2_0x39c4c3(0x197)]('pull\x20[name]')[a2_0x39c4c3(0x141)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')['option'](a2_0x39c4c3(0xfe),a2_0x39c4c3(0xd3))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x39c4c3(0xb6)](async(_0x4e467b,_0x556727)=>{const _0x3025bf=a2_0x39c4c3,_0x7b6c2=new ParentSegmentPullCommand(),_0x22f174=program['opts'](),_0x3a8256=await createTDXInstance(_0x22f174),_0x5a55de=await _0x7b6c2[_0x3025bf(0x1ed)]({'options':{..._0x22f174,..._0x556727},'args':_0x4e467b?[_0x4e467b]:[],'tdx':_0x3a8256});process[_0x3025bf(0x2ac)](_0x5a55de);}),parentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xe4))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x193))[a2_0x39c4c3(0x28c)]('-y,\x20--yes',a2_0x39c4c3(0xb2))[a2_0x39c4c3(0xb6)](async(_0x44d01c,_0x26ee99)=>{const _0x3c056d=a2_0x39c4c3,_0x39d94d=new ParentSegmentPushCommand(),_0x156357=program[_0x3c056d(0x1a9)](),_0x417820=await createTDXInstance(_0x156357),_0x5037d0=await _0x39d94d[_0x3c056d(0x1ed)]({'options':{..._0x156357,..._0x26ee99},'args':_0x44d01c?[_0x44d01c]:[],'tdx':_0x417820});process['exit'](_0x5037d0);}),parentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1bb))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x21d))['option'](a2_0x39c4c3(0x11d),'Show\x20only\x20master\x20table\x20validation')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x171),a2_0x39c4c3(0x24e))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xd5),a2_0x39c4c3(0xaf))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x286),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x21e),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x39c4c3(0xb6)](async(_0xa724d1,_0x43128)=>{const _0xbcb766=a2_0x39c4c3,_0xeebbf5=new ParentSegmentValidateCommand(),_0x53e80c=program[_0xbcb766(0x1a9)](),_0x4a563c=await createTDXInstance(_0x53e80c),_0x57edc4=await _0xeebbf5[_0xbcb766(0x1ed)]({'options':{..._0x53e80c,..._0x43128},'args':_0xa724d1?[_0xa724d1]:[],'tdx':_0x4a563c});process[_0xbcb766(0x2ac)](_0x57edc4);}),parentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x177))[a2_0x39c4c3(0x141)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option']('--master',a2_0x39c4c3(0xd8))[a2_0x39c4c3(0x28c)]('--attribute\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xd5),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x39c4c3(0x286),a2_0x39c4c3(0x2bc))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x21e),a2_0x39c4c3(0x26b),a2_0x39c4c3(0x114))['action'](async(_0x309f5b,_0x137e99)=>{const _0x175275=a2_0x39c4c3,_0x41a68e=new ParentSegmentPreviewCommand(),_0x3db05f=program[_0x175275(0x1a9)](),_0xc17183=await createTDXInstance(_0x3db05f),_0x173671=await _0x41a68e[_0x175275(0x1ed)]({'options':{..._0x3db05f,..._0x137e99},'args':_0x309f5b?[_0x309f5b]:[],'tdx':_0xc17183});process[_0x175275(0x2ac)](_0x173671);}),parentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xf0))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x125))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2a5),a2_0x39c4c3(0xb2))[a2_0x39c4c3(0xb6)](async(_0x159bb8,_0x3a3c4c)=>{const _0x8ec4d3=a2_0x39c4c3,_0x2293a9=new ParentSegmentRunCommand(),_0x4ff585=program[_0x8ec4d3(0x1a9)](),_0x194c69=await createTDXInstance(_0x4ff585),_0x20a6b2=await _0x2293a9[_0x8ec4d3(0x1ed)]({'options':{..._0x4ff585,..._0x3a3c4c},'args':_0x159bb8?[_0x159bb8]:[],'tdx':_0x194c69});process[_0x8ec4d3(0x2ac)](_0x20a6b2);});const parentSegmentCmd=program['command'](a2_0x39c4c3(0x148))['alias']('ps')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x235));parentSegmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x280))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xc5))['action'](parentListAction),parentSegmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xe8))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x189))['option'](a2_0x39c4c3(0xfe),'Output\x20file\x20path')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2a5),'Skip\x20confirmation\x20prompt')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x244),a2_0x39c4c3(0x1f3))['action'](async(_0xc95041,_0x5e815f)=>{const _0x321159=a2_0x39c4c3,_0x43beff=new ParentSegmentPullCommand(),_0x2abc89=program['opts'](),_0x2cda2a=await createTDXInstance(_0x2abc89),_0x33863a=await _0x43beff[_0x321159(0x1ed)]({'options':{..._0x2abc89,..._0x5e815f},'args':_0xc95041?[_0xc95041]:[],'tdx':_0x2cda2a});process[_0x321159(0x2ac)](_0x33863a);}),parentSegmentCmd[a2_0x39c4c3(0x197)]('push\x20[name]')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1d2))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2a5),a2_0x39c4c3(0xb2))[a2_0x39c4c3(0xb6)](async(_0x18a440,_0x1667bf)=>{const _0x10eae5=a2_0x39c4c3,_0x1b9ad0=new ParentSegmentPushCommand(),_0x1cc1cf=program['opts'](),_0x5db925=await createTDXInstance(_0x1cc1cf),_0x57549d=await _0x1b9ad0[_0x10eae5(0x1ed)]({'options':{..._0x1cc1cf,..._0x1667bf},'args':_0x18a440?[_0x18a440]:[],'tdx':_0x5db925});process[_0x10eae5(0x2ac)](_0x57549d);}),parentSegmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x259))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x39c4c3(0x11d),'Show\x20only\x20master\x20table\x20validation')['option'](a2_0x39c4c3(0x171),a2_0x39c4c3(0x24e))[a2_0x39c4c3(0x28c)]('--behavior\x20[name]',a2_0x39c4c3(0xaf))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x286),a2_0x39c4c3(0xfb))['option'](a2_0x39c4c3(0x21e),a2_0x39c4c3(0x26b),'-1d')[a2_0x39c4c3(0xb6)](async(_0x21871,_0x1b81f7)=>{const _0x41e87f=a2_0x39c4c3,_0x31df88=new ParentSegmentValidateCommand(),_0x4e4724=program[_0x41e87f(0x1a9)](),_0x3b7ff8=await createTDXInstance(_0x4e4724),_0x8c4c97=await _0x31df88[_0x41e87f(0x1ed)]({'options':{..._0x4e4724,..._0x1b81f7},'args':_0x21871?[_0x21871]:[],'tdx':_0x3b7ff8});process['exit'](_0x8c4c97);}),parentSegmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xe9))[a2_0x39c4c3(0x141)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x11d),a2_0x39c4c3(0xd8))[a2_0x39c4c3(0x28c)]('--attribute\x20[name]',a2_0x39c4c3(0x10d))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xd5),a2_0x39c4c3(0x100))[a2_0x39c4c3(0x28c)]('--enriched',a2_0x39c4c3(0x2bc))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x21e),a2_0x39c4c3(0x26b),a2_0x39c4c3(0x114))[a2_0x39c4c3(0xb6)](async(_0x2c49e5,_0x2e8658)=>{const _0x1a0f20=a2_0x39c4c3,_0x2f6768=new ParentSegmentPreviewCommand(),_0x2c8ccc=program[_0x1a0f20(0x1a9)](),_0x52d5b3=await createTDXInstance(_0x2c8ccc),_0x53e5e1=await _0x2f6768[_0x1a0f20(0x1ed)]({'options':{..._0x2c8ccc,..._0x2e8658},'args':_0x2c49e5?[_0x2c49e5]:[],'tdx':_0x52d5b3});process[_0x1a0f20(0x2ac)](_0x53e5e1);}),parentSegmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xf0))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x125))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2a5),a2_0x39c4c3(0xb2))[a2_0x39c4c3(0xb6)](async(_0x3fae8f,_0xfac039)=>{const _0x27d0d5=a2_0x39c4c3,_0x2d60f1=new ParentSegmentRunCommand(),_0x25b586=program['opts'](),_0x55a743=await createTDXInstance(_0x25b586),_0x552bb0=await _0x2d60f1[_0x27d0d5(0x1ed)]({'options':{..._0x25b586,..._0xfac039},'args':_0x3fae8f?[_0x3fae8f]:[],'tdx':_0x55a743});process['exit'](_0x552bb0);}),parentSegmentCmd['command'](a2_0x39c4c3(0x17d))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1c4))[a2_0x39c4c3(0x28c)]('--json',a2_0x39c4c3(0x143))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x297),a2_0x39c4c3(0xd1))[a2_0x39c4c3(0xb6)](async(_0x3eb4c3,_0x328ebc)=>{const _0x4b51f7=a2_0x39c4c3,_0x922f7a=new ParentSegmentFieldsCommand(),_0x40adf9=program[_0x4b51f7(0x1a9)](),_0x5ba0ac=await createTDXInstance(_0x40adf9),_0x348007=await _0x922f7a[_0x4b51f7(0x1ed)]({'options':{..._0x40adf9,..._0x328ebc},'args':_0x3eb4c3?[_0x3eb4c3]:[],'tdx':_0x5ba0ac});process['exit'](_0x348007);}),parentSegmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x15a))['description'](a2_0x39c4c3(0x112))['option'](a2_0x39c4c3(0x94),a2_0x39c4c3(0x294))[a2_0x39c4c3(0x28c)]('--json',a2_0x39c4c3(0x143))[a2_0x39c4c3(0x28c)]('--jsonl',a2_0x39c4c3(0xd1))['action'](async(_0x3932bc,_0x2d7cb6)=>{const _0x28270b=a2_0x39c4c3,_0x3a97f1=new ParentSegmentViewCommand(),_0x980814=program[_0x28270b(0x1a9)](),_0x48c786=await createTDXInstance(_0x980814),_0x3b3e7a=await _0x3a97f1['run']({'options':{..._0x980814,..._0x2d7cb6},'args':_0x3932bc?[_0x3932bc]:[],'tdx':_0x48c786});process[_0x28270b(0x2ac)](_0x3b3e7a);}),parentSegmentCmd['command'](a2_0x39c4c3(0x263))[a2_0x39c4c3(0x141)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x39c4c3(0x256),a2_0x39c4c3(0x143))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x297),a2_0x39c4c3(0xd1))['action'](async(_0x121a97,_0x48d4df)=>{const _0x44e92f=a2_0x39c4c3,_0xeab382=new ParentSegmentDescCommand(),_0x26155c=program['opts'](),_0x3152f9=await createTDXInstance(_0x26155c),_0xd3cd5f=await _0xeab382[_0x44e92f(0x1ed)]({'options':{..._0x26155c,..._0x48d4df},'args':_0x121a97?[_0x121a97]:[],'tdx':_0x3152f9});process[_0x44e92f(0x2ac)](_0xd3cd5f);}),parentSegmentCmd[a2_0x39c4c3(0x197)]('sql\x20[name]')[a2_0x39c4c3(0x141)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x256),a2_0x39c4c3(0x143))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x297),a2_0x39c4c3(0xd1))[a2_0x39c4c3(0xb6)](async(_0x47b7b8,_0x4e0f9a)=>{const _0x349396=a2_0x39c4c3,_0x518f99=new ParentSegmentSQLCommand(),_0x540463=program[_0x349396(0x1a9)](),_0x4ff496=await createTDXInstance(_0x540463),_0x5b3feb=await _0x518f99[_0x349396(0x1ed)]({'options':{..._0x540463,..._0x4e0f9a},'args':_0x47b7b8?[_0x47b7b8]:[],'tdx':_0x4ff496});process['exit'](_0x5b3feb);}),parentSegmentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xde))['description'](a2_0x39c4c3(0x134))['option'](a2_0x39c4c3(0x12f),'Limit\x20number\x20of\x20rows')[a2_0x39c4c3(0x28c)]('--json',a2_0x39c4c3(0x143))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x297),a2_0x39c4c3(0xd1))[a2_0x39c4c3(0xb6)](async(_0x2b7082,_0x33c925)=>{const _0x36828b=a2_0x39c4c3,_0x45e6db=new ParentSegmentShowCommand(),_0x27c325=program[_0x36828b(0x1a9)](),_0x13ed2f=await createTDXInstance(_0x27c325),_0x1d124b=await _0x45e6db['run']({'options':{..._0x27c325,..._0x33c925},'args':_0x2b7082?[_0x2b7082]:[],'tdx':_0x13ed2f});process['exit'](_0x1d124b);}),parentSegmentCmd['command'](a2_0x39c4c3(0x262))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2a3))[a2_0x39c4c3(0xb6)](async(_0x5a3571,_0xab7567)=>{const _0x2394e4=a2_0x39c4c3,_0x3cf4c7=new UseCommand(),_0x54ee88=program['opts'](),_0x37d666=_0x5a3571?[_0x2394e4(0x169),_0x5a3571]:[],_0x2f3694=await _0x3cf4c7[_0x2394e4(0x1ed)]({'options':{..._0x54ee88,..._0xab7567},'args':_0x37d666,'tdx':null});process[_0x2394e4(0x2ac)](_0x2f3694);}),parentCmd['command'](a2_0x39c4c3(0xe5))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x28b))[a2_0x39c4c3(0xb3)](a2_0x39c4c3(0xf6),a2_0x39c4c3(0x28e))[a2_0x39c4c3(0xb3)](a2_0x39c4c3(0x191),a2_0x39c4c3(0x11a))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xa5),'Parent\x20segment\x20description')[a2_0x39c4c3(0x28c)]('--schedule-type\x20<type>',a2_0x39c4c3(0x1b7))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1b6),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')['option'](a2_0x39c4c3(0x2b0),a2_0x39c4c3(0xcd))[a2_0x39c4c3(0x28c)]('--attributes\x20<json>',a2_0x39c4c3(0x292))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2ab),a2_0x39c4c3(0x2c7))['option'](a2_0x39c4c3(0x1b8),a2_0x39c4c3(0x275))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x175),a2_0x39c4c3(0x18a))['option']('--customer-group\x20<json>',a2_0x39c4c3(0x13d))[a2_0x39c4c3(0x28c)]('--customer-group-file\x20<file>',a2_0x39c4c3(0x272))[a2_0x39c4c3(0xb6)](async(_0x3b7bec,_0x10291f)=>{const _0x2e85cf=a2_0x39c4c3,_0x419eda=new ParentSegmentCreateCommand(),_0x45032d=program['opts'](),_0x5ab88d=await createTDXInstance(_0x45032d),_0x2e52d6=await _0x419eda[_0x2e85cf(0x1ed)]({'options':{..._0x45032d,..._0x10291f},'args':[_0x3b7bec],'tdx':_0x5ab88d});process[_0x2e85cf(0x2ac)](_0x2e52d6);}),parentCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x27d))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x17c))[a2_0x39c4c3(0x28c)]('--description\x20<text>',a2_0x39c4c3(0x2af))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x14f),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x39c4c3(0x1b6),a2_0x39c4c3(0x271))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2b0),a2_0x39c4c3(0x1c2))[a2_0x39c4c3(0x28c)]('--add-attributes\x20<json>','Add\x20attributes\x20as\x20JSON\x20string')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x185),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1e4),a2_0x39c4c3(0x1af))['option'](a2_0x39c4c3(0x29e),a2_0x39c4c3(0x1ce))[a2_0x39c4c3(0xb6)](async(_0x2b07e1,_0x125b6b)=>{const _0xcfe722=a2_0x39c4c3,_0xf83e2b=new ParentSegmentUpdateCommand(),_0x5f104b=program[_0xcfe722(0x1a9)](),_0x33fbc5=await createTDXInstance(_0x5f104b),_0x1560d8=await _0xf83e2b[_0xcfe722(0x1ed)]({'options':{..._0x5f104b,..._0x125b6b},'args':[_0x2b07e1],'tdx':_0x33fbc5});process[_0xcfe722(0x2ac)](_0x1560d8);}),folderCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x18c))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x166))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xa5),a2_0x39c4c3(0xdd))[a2_0x39c4c3(0x28c)]('--parent-folder\x20<name>',a2_0x39c4c3(0x17a))[a2_0x39c4c3(0xb6)](async(_0x24f90f,_0x279fc5,_0x5d1c34)=>{const _0x347fea=a2_0x39c4c3,_0x3893c3=new SegmentFolderCreateCommand(),_0x4af3ac=program[_0x347fea(0x1a9)](),_0x5e05ae=await createTDXInstance(_0x4af3ac),_0x364cce=await _0x3893c3[_0x347fea(0x1ed)]({'options':{..._0x4af3ac,..._0x5d1c34},'args':[_0x24f90f,_0x279fc5],'tdx':_0x5e05ae});process[_0x347fea(0x2ac)](_0x364cce);}),program[a2_0x39c4c3(0x197)]('activations\x20<segment_name>')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x243))[a2_0x39c4c3(0xb6)](async(_0x12ceed,_0xac4479)=>{const _0xa67af6=a2_0x39c4c3,_0x4282b4=new ActivationsCommand(),_0x5eaccb=program['opts'](),_0x468e42=await createTDXInstance(_0x5eaccb),_0x49b143=await _0x4282b4[_0xa67af6(0x1ed)]({'options':{..._0x5eaccb,..._0xac4479},'args':[_0x12ceed],'tdx':_0x468e42});process['exit'](_0x49b143);});const workflowCmd=program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x21a))[a2_0x39c4c3(0x135)]('wf')['description']('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x25b))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xa0)),wfProjectListAction=async(_0x4a05f5,_0x452c11)=>{const _0x4159b1=a2_0x39c4c3,_0x25675b=new WorkflowProjectsCommand(),_0x2c04fe=program[_0x4159b1(0x1a9)](),_0x3aa672=await createTDXInstance(_0x2c04fe),_0x10e2b3=await _0x25675b[_0x4159b1(0x1ed)]({'options':{..._0x2c04fe,..._0x452c11},'args':_0x4a05f5?[_0x4a05f5]:[],'tdx':_0x3aa672});process['exit'](_0x10e2b3);};wfProjectCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x280))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1e1))[a2_0x39c4c3(0xb6)](wfProjectListAction),workflowCmd['command']('projects\x20[pattern]')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xfd))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x476fe9,_0x2869a8)=>{const _0x4846bc=new WorkflowWorkflowsCommand(),_0x22fc91=program['opts'](),_0x2cd1a4=await createTDXInstance(_0x22fc91),_0x4e41b8=await _0x4846bc['run']({'options':{..._0x22fc91,..._0x2869a8},'args':_0x476fe9?[_0x476fe9]:[],'tdx':_0x2cd1a4});process['exit'](_0x4e41b8);};workflowCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1c3))['description'](a2_0x39c4c3(0x8c))[a2_0x39c4c3(0xb6)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x285))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x207)),wfSessionListAction=async(_0x1d05c7,_0x5cae26)=>{const _0x4ae0d7=a2_0x39c4c3,_0x35d903=new WorkflowSessionsCommand(),_0x3a82e2=program[_0x4ae0d7(0x1a9)](),_0x84c30b=await createTDXInstance(_0x3a82e2),_0x52593f=await _0x35d903[_0x4ae0d7(0x1ed)]({'options':{..._0x3a82e2,..._0x5cae26},'args':_0x1d05c7?[_0x1d05c7]:[],'tdx':_0x84c30b});process[_0x4ae0d7(0x2ac)](_0x52593f);};wfSessionCmd['command'](a2_0x39c4c3(0x132))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2a7))['option'](a2_0x39c4c3(0x277),a2_0x39c4c3(0x1f0))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2ad),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x116),a2_0x39c4c3(0x1a0))[a2_0x39c4c3(0xb6)](wfSessionListAction),workflowCmd['command']('sessions\x20[project]')['description'](a2_0x39c4c3(0xff))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x277),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x39c4c3(0x28c)]('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x116),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction);const wfAttemptListAction=async(_0x32fee8,_0x2870bf)=>{const _0x470d38=a2_0x39c4c3,_0x86a9a=new WorkflowAttemptsCommand(),_0x26d9b1=program[_0x470d38(0x1a9)](),_0x4bca98=await createTDXInstance(_0x26d9b1),_0x80ff5a=await _0x86a9a[_0x470d38(0x1ed)]({'options':{..._0x26d9b1,..._0x2870bf},'args':_0x32fee8?[_0x32fee8]:[],'tdx':_0x4bca98});process[_0x470d38(0x2ac)](_0x80ff5a);},attemptCmd=workflowCmd['command']('attempt')['description'](a2_0x39c4c3(0x10b))[a2_0x39c4c3(0xf5)](a2_0x39c4c3(0x201),a2_0x39c4c3(0x1f6))[a2_0x39c4c3(0xf5)](a2_0x39c4c3(0x2a6),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x39c4c3(0xf5)](a2_0x39c4c3(0xae),a2_0x39c4c3(0x22b))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1d4),a2_0x39c4c3(0x182))[a2_0x39c4c3(0x28c)]('--reason\x20<text>',a2_0x39c4c3(0x14b))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2aa),a2_0x39c4c3(0x192))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x172),a2_0x39c4c3(0x11b))[a2_0x39c4c3(0x28c)]('--force','Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2ba),a2_0x39c4c3(0x1b9))[a2_0x39c4c3(0xb6)](async(_0x694133,_0x1a9392,_0x18c4a5,_0x3b90dc)=>{const _0x5a1d7d=a2_0x39c4c3;if(_0x694133==='list'){await wfAttemptListAction(_0x1a9392,_0x3b90dc);return;}if(!_0x694133){attemptCmd['help']();return;}const _0x1ed43a=program[_0x5a1d7d(0x1a9)](),_0x52e170=await createTDXInstance(_0x1ed43a);let _0x23dfa1=0x0;if(!_0x1a9392){const _0x2d2ef1=new WorkflowAttemptCommand();_0x23dfa1=await _0x2d2ef1[_0x5a1d7d(0x1ed)]({'options':{..._0x1ed43a,..._0x3b90dc},'args':[_0x694133],'tdx':_0x52e170});}else{if(_0x1a9392===_0x5a1d7d(0x1dd)){const _0x37bba6=new WorkflowLogsCommand();_0x23dfa1=await _0x37bba6['run']({'options':{..._0x1ed43a,..._0x3b90dc},'args':_0x18c4a5?[_0x694133,_0x18c4a5]:[_0x694133],'tdx':_0x52e170});}else{if(_0x1a9392===_0x5a1d7d(0x1bf)){const _0x16b2e3=new WorkflowTasksCommand();_0x23dfa1=await _0x16b2e3['run']({'options':{..._0x1ed43a,..._0x3b90dc},'args':[_0x694133],'tdx':_0x52e170});}else{if(_0x1a9392===_0x5a1d7d(0x8e)){const _0x12e49d=new WorkflowKillCommand();_0x23dfa1=await _0x12e49d[_0x5a1d7d(0x1ed)]({'options':{..._0x1ed43a,..._0x3b90dc},'args':[_0x694133],'tdx':_0x52e170});}else{if(_0x1a9392===_0x5a1d7d(0x23d)){const _0x5072ca=new WorkflowRetryCommand();_0x23dfa1=await _0x5072ca['run']({'options':{..._0x1ed43a,..._0x3b90dc},'args':[_0x5a1d7d(0x159)+_0x694133],'tdx':_0x52e170});}else console[_0x5a1d7d(0x26e)](_0x5a1d7d(0x29b)+_0x1a9392),console[_0x5a1d7d(0x26e)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x23dfa1=0x1;}}}}process[_0x5a1d7d(0x2ac)](_0x23dfa1);});attemptCmd['command']('list\x20[project]')[a2_0x39c4c3(0x141)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2ba),a2_0x39c4c3(0x239))[a2_0x39c4c3(0xb6)](wfAttemptListAction),workflowCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1f2))['description'](a2_0x39c4c3(0x151))['option'](a2_0x39c4c3(0x2ba),a2_0x39c4c3(0x239))[a2_0x39c4c3(0xb6)](wfAttemptListAction),workflowCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x163))[a2_0x39c4c3(0x141)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')['option'](a2_0x39c4c3(0x2a8),a2_0x39c4c3(0x283))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x172),a2_0x39c4c3(0x2a9))[a2_0x39c4c3(0xb6)](async(_0x5b432e,_0x347eff)=>{const _0x4b1d70=a2_0x39c4c3,_0x22a557=new WorkflowRetryCommand(),_0x169a98=program[_0x4b1d70(0x1a9)](),_0x3d56dd=await createTDXInstance(_0x169a98),_0x3b0b9d=await _0x22a557[_0x4b1d70(0x1ed)]({'options':{..._0x169a98,..._0x347eff},'args':[_0x5b432e],'tdx':_0x3d56dd});process[_0x4b1d70(0x2ac)](_0x3b0b9d);}),workflowCmd['command']('run\x20<workflow>')[a2_0x39c4c3(0x141)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0x39c4c3(0x28c)]('--param\x20<key=value>',a2_0x39c4c3(0x123),(_0x31aac5,_0x5c5a8d=[])=>[..._0x5c5a8d,_0x31aac5],[])[a2_0x39c4c3(0x28c)]('--session-time\x20<time>',a2_0x39c4c3(0x13e))['action'](async(_0x58f2d2,_0x2e92e6)=>{const _0x516d5f=a2_0x39c4c3,_0x1205a2=new WorkflowRunCommand(),_0x49e971=program[_0x516d5f(0x1a9)](),_0x5795b7=await createTDXInstance(_0x49e971),_0x401fa8=await _0x1205a2[_0x516d5f(0x1ed)]({'options':{..._0x49e971,..._0x2e92e6},'args':[_0x58f2d2],'tdx':_0x5795b7});process[_0x516d5f(0x2ac)](_0x401fa8);}),workflowCmd['command'](a2_0x39c4c3(0x20d))[a2_0x39c4c3(0x141)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x174),a2_0x39c4c3(0x211))['action'](async(_0xe1357,_0x1078ff,_0x34b7af)=>{const _0x40c581=a2_0x39c4c3,_0x4b15d8=new WorkflowDownloadCommand(),_0x464f68=program[_0x40c581(0x1a9)](),_0x3bb90e=await createTDXInstance(_0x464f68),_0x96d187=await _0x4b15d8['run']({'options':{..._0x464f68,..._0x34b7af},'args':[_0xe1357,_0x1078ff||'.'],'tdx':_0x3bb90e});process[_0x40c581(0x2ac)](_0x96d187);}),workflowCmd['command'](a2_0x39c4c3(0xb4))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xdc))['option']('--name\x20<name>',a2_0x39c4c3(0x25e))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x174),'Revision\x20name\x20(default:\x20timestamp)')['option']('--skip-validation',a2_0x39c4c3(0x273))[a2_0x39c4c3(0xb6)](async(_0x4aff01,_0x55fa71)=>{const _0x11b092=a2_0x39c4c3,_0x402914=new WorkflowPushCommand(),_0x2a69d3=program[_0x11b092(0x1a9)](),_0x4fa28e=await createTDXInstance(_0x2a69d3),_0x564f41=await _0x402914[_0x11b092(0x1ed)]({'options':{..._0x2a69d3,..._0x55fa71},'args':_0x4aff01?[_0x4aff01]:[],'tdx':_0x4fa28e});process[_0x11b092(0x2ac)](_0x564f41);}),workflowCmd[a2_0x39c4c3(0x197)]('delete\x20<project-name-or-id>')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1d0))[a2_0x39c4c3(0xb6)](async(_0x275d9a,_0x6e98b6)=>{const _0x2bdad5=a2_0x39c4c3,_0x2b7738=new WorkflowDeleteCommand(),_0x1fa4ba=program[_0x2bdad5(0x1a9)](),_0x2ebc5f=await createTDXInstance(_0x1fa4ba),_0x42c67e=await _0x2b7738[_0x2bdad5(0x1ed)]({'options':{..._0x1fa4ba,..._0x6e98b6},'args':[_0x275d9a],'tdx':_0x2ebc5f});process[_0x2bdad5(0x2ac)](_0x42c67e);});const jobCmd=program[a2_0x39c4c3(0x197)]('job')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x140)),jobListAction=async _0x4582da=>{const _0x29f227=a2_0x39c4c3,_0x7e5893=new JobListCommand(),_0x295fde=program[_0x29f227(0x1a9)](),_0x174050=await createTDXInstance(_0x295fde),_0x52ca80=await _0x7e5893[_0x29f227(0x1ed)]({'options':{..._0x295fde,..._0x4582da},'args':[],'tdx':_0x174050});process[_0x29f227(0x2ac)](_0x52ca80);};jobCmd[a2_0x39c4c3(0x197)]('list')['description']('List\x20jobs')['option'](a2_0x39c4c3(0x277),a2_0x39c4c3(0x89))[a2_0x39c4c3(0xb6)](jobListAction),program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1ee),{'hidden':!![]})['description'](a2_0x39c4c3(0x1f7))[a2_0x39c4c3(0x28c)]('--status\x20<status>',a2_0x39c4c3(0x89))[a2_0x39c4c3(0xb6)](jobListAction),jobCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x98))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2b8))[a2_0x39c4c3(0xb6)](async(_0x550fc8,_0xc0e5df)=>{const _0x5cdb4f=a2_0x39c4c3,_0x4caa3c=new JobShowCommand(),_0x236b60=program[_0x5cdb4f(0x1a9)](),_0xb02ba8=await createTDXInstance(_0x236b60),_0x53e94f=await _0x4caa3c['run']({'options':{..._0x236b60,..._0xc0e5df},'args':[_0x550fc8],'tdx':_0xb02ba8});process[_0x5cdb4f(0x2ac)](_0x53e94f);}),jobCmd[a2_0x39c4c3(0x197)]('kill\x20<job-id>')[a2_0x39c4c3(0x141)]('Kill\x20a\x20job')[a2_0x39c4c3(0xb6)](async(_0x214ac4,_0x3537dc)=>{const _0x4db227=a2_0x39c4c3,_0x3c84de=new JobKillCommand(),_0x4920da=program[_0x4db227(0x1a9)](),_0x89e395=await createTDXInstance(_0x4920da),_0x156564=await _0x3c84de[_0x4db227(0x1ed)]({'options':{..._0x4920da,..._0x3537dc},'args':[_0x214ac4],'tdx':_0x89e395});process['exit'](_0x156564);}),jobCmd['command'](a2_0x39c4c3(0x274))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1ad))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x15b),a2_0x39c4c3(0x149),a2_0x39c4c3(0x2be))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1c5),a2_0x39c4c3(0xfc))[a2_0x39c4c3(0x28c)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)','information_schema')['action'](async(_0x536dc7,_0x377504)=>{const _0x7b69f1=a2_0x39c4c3,_0x5e1541=new JobSubmitCommand(),_0x465b87=program[_0x7b69f1(0x1a9)](),_0x1bae35=await createTDXInstance(_0x465b87),_0x2a5f61=await _0x5e1541[_0x7b69f1(0x1ed)]({'options':{..._0x465b87,..._0x377504},'args':_0x536dc7?[_0x536dc7]:[],'tdx':_0x1bae35});process['exit'](_0x2a5f61);}),jobCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xbd))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x278))[a2_0x39c4c3(0xb6)](async(_0x28f723,_0x3d57f8)=>{const _0x2663f3=a2_0x39c4c3,_0x116519=new JobResultCommand(),_0x181840=program[_0x2663f3(0x1a9)](),_0x3de2a1=await createTDXInstance(_0x181840),_0x59a430=await _0x116519[_0x2663f3(0x1ed)]({'options':{..._0x181840,..._0x3d57f8},'args':[_0x28f723],'tdx':_0x3de2a1});process[_0x2663f3(0x2ac)](_0x59a430);});const llmCmd=program['command'](a2_0x39c4c3(0x27c))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x236));llmCmd['command']('use\x20<project-name>')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1ff))[a2_0x39c4c3(0xb6)](async(_0x33a7d4,_0x6b6465)=>{const _0x8edf0c=a2_0x39c4c3,_0x16ffe3=new LLMUseCommand(),_0x50766d=program['opts'](),_0x1e38f9=await createTDXInstance(_0x50766d),_0x17b65b=await _0x16ffe3[_0x8edf0c(0x1ed)]({'options':{..._0x50766d,..._0x6b6465},'args':[_0x33a7d4],'tdx':_0x1e38f9});process[_0x8edf0c(0x2ac)](_0x17b65b);}),llmCmd['command']('models')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1b4))[a2_0x39c4c3(0xb6)](async _0x4e40dc=>{const _0x95f4f0=a2_0x39c4c3,_0x52b725=new LLMModelsCommand(),_0x131637=program[_0x95f4f0(0x1a9)](),_0x2bc5b2=await createTDXInstance(_0x131637),_0x30d516=await _0x52b725['run']({'options':{..._0x131637,..._0x4e40dc},'args':[],'tdx':_0x2bc5b2});process[_0x95f4f0(0x2ac)](_0x30d516);});const projectCmd=llmCmd['command']('project')[a2_0x39c4c3(0x141)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x3f9acb,_0x3d1fc5)=>{const _0x53fa96=a2_0x39c4c3,_0x102e44=new LLMProjectsCommand(),_0x5dc1c0=program[_0x53fa96(0x1a9)](),_0x208bb2=await createTDXInstance(_0x5dc1c0),_0x4b0b08=await _0x102e44[_0x53fa96(0x1ed)]({'options':{..._0x5dc1c0,..._0x3d1fc5},'args':_0x3f9acb?[_0x3f9acb]:[],'tdx':_0x208bb2});process[_0x53fa96(0x2ac)](_0x4b0b08);};projectCmd['command']('list\x20[pattern]')['description'](a2_0x39c4c3(0x93))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x94),a2_0x39c4c3(0x1d8))[a2_0x39c4c3(0xb6)](llmProjectListAction),llmCmd['command'](a2_0x39c4c3(0x206))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x9d))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x94),a2_0x39c4c3(0x1d8))[a2_0x39c4c3(0xb6)](llmProjectListAction),projectCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xe5))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xc1))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xa5),a2_0x39c4c3(0x17b))[a2_0x39c4c3(0xb6)](async(_0x2a93ac,_0x15c242)=>{const _0x32ccd0=a2_0x39c4c3,_0x3040fb=new LLMProjectCreateCommand(),_0x2c08f6=program[_0x32ccd0(0x1a9)](),_0x1c1ee4=await createTDXInstance(_0x2c08f6),_0x5e542b=await _0x3040fb[_0x32ccd0(0x1ed)]({'options':{..._0x2c08f6,..._0x15c242},'args':[_0x2a93ac],'tdx':_0x1c1ee4});process[_0x32ccd0(0x2ac)](_0x5e542b);}),projectCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x276))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x173))[a2_0x39c4c3(0xb6)](async(_0x35049d,_0x2778ee)=>{const _0x396cee=new LLMProjectDeleteCommand(),_0x5041ae=program['opts'](),_0x1b3aaf=await createTDXInstance(_0x5041ae),_0x787005=await _0x396cee['run']({'options':{..._0x5041ae,..._0x2778ee},'args':[_0x35049d],'tdx':_0x1b3aaf});process['exit'](_0x787005);}),projectCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x155))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x23f))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x96),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x154),a2_0x39c4c3(0x19d))[a2_0x39c4c3(0xb6)](async(_0x4e4b58,_0x2a4063)=>{const _0x5728eb=a2_0x39c4c3,_0x19c9ef=new LLMProjectBackupCommand(),_0x29ac0e=program['opts'](),_0x4380dd=await createTDXInstance(_0x29ac0e),_0x554ef1=await _0x19c9ef[_0x5728eb(0x1ed)]({'options':{..._0x29ac0e,..._0x2a4063},'args':[_0x4e4b58],'tdx':_0x4380dd});process[_0x5728eb(0x2ac)](_0x554ef1);}),projectCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xc4))['description']('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x39c4c3(0x28c)]('--name\x20<new-name>',a2_0x39c4c3(0xc2))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x154),a2_0x39c4c3(0x178))[a2_0x39c4c3(0xb6)](async(_0x4ed528,_0x5ddd50)=>{const _0x25bdcb=a2_0x39c4c3,_0x4936dd=new LLMProjectRestoreCommand(),_0x3c32ba=program[_0x25bdcb(0x1a9)](),_0xfdeac7=await createTDXInstance(_0x3c32ba),_0x21cf45=await _0x4936dd['run']({'options':{..._0x3c32ba,..._0x5ddd50},'args':[_0x4ed528],'tdx':_0xfdeac7});process['exit'](_0x21cf45);});const llmAgentListAction=async(_0x2d8a80,_0x322e4e)=>{const _0x49211a=a2_0x39c4c3,_0x56bdaa=new LLMAgentsCommand(),_0x3756c4=program['opts'](),_0x5b18d3=await createTDXInstance(_0x3756c4),_0x3a64ef=await _0x56bdaa['run']({'options':{..._0x3756c4,..._0x322e4e},'args':_0x2d8a80?[_0x2d8a80]:[],'tdx':_0x5b18d3});process[_0x49211a(0x2ac)](_0x3a64ef);};llmCmd['command'](a2_0x39c4c3(0x295))[a2_0x39c4c3(0x141)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x94),a2_0x39c4c3(0x268))[a2_0x39c4c3(0xb6)](llmAgentListAction),program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x295))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x210))[a2_0x39c4c3(0x28c)]('-w,\x20--web',a2_0x39c4c3(0x268))[a2_0x39c4c3(0xb6)](llmAgentListAction),llmCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xf1))[a2_0x39c4c3(0x141)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x39c4c3(0x28c)]('--last',a2_0x39c4c3(0x2a4))['action'](async(_0x543f00,_0x555a55)=>{const _0x258b80=a2_0x39c4c3,_0x481bdc=new LLMHistoryCommand(),_0x14c010=program[_0x258b80(0x1a9)](),_0x200676=await createTDXInstance(_0x14c010),_0x497b6a=await _0x481bdc[_0x258b80(0x1ed)]({'options':{..._0x14c010,..._0x555a55},'args':_0x543f00?[_0x543f00]:[],'tdx':_0x200676});process[_0x258b80(0x2ac)](_0x497b6a);}),llmCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x15d))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xe1))['option']('--port\x20<number>',a2_0x39c4c3(0x281),a2_0x39c4c3(0x204))[a2_0x39c4c3(0x28c)]('--project\x20<name>',a2_0x39c4c3(0x104))['option'](a2_0x39c4c3(0x1f1),a2_0x39c4c3(0x2bd))[a2_0x39c4c3(0xb6)](async _0xe0b94=>{const _0x24f902=a2_0x39c4c3,_0x1285c8=new LLMProxyCommand(),_0x53d8a1=program[_0x24f902(0x1a9)](),_0x1acd56=await createTDXInstance(_0x53d8a1),_0x5a46ce={..._0xe0b94,'port':_0xe0b94[_0x24f902(0x222)]?parseInt(_0xe0b94[_0x24f902(0x222)],0xa):undefined},_0x94ebcd=await _0x1285c8['run']({'options':{..._0x53d8a1,..._0x5a46ce},'args':[],'tdx':_0x1acd56});process[_0x24f902(0x2ac)](_0x94ebcd);}),program[a2_0x39c4c3(0x197)]('claude\x20[args...]')[a2_0x39c4c3(0x113)](a2_0x39c4c3(0x288))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2ae))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1bd),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x39c4c3(0xa2))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x23b),'Continue\x20most\x20recent\x20conversation')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1a1),a2_0x39c4c3(0x298))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x13b),a2_0x39c4c3(0x1e6))[a2_0x39c4c3(0x2c6)]()[a2_0x39c4c3(0xbf)](!![])[a2_0x39c4c3(0x245)](a2_0x39c4c3(0x183),a2_0x39c4c3(0x1ba))['action'](async(_0x292436,_0x1ee7ce)=>{const _0x3cf1a9=a2_0x39c4c3,_0x21cf15=program[_0x3cf1a9(0x1a9)](),_0x11abcf=Array[_0x3cf1a9(0x265)](_0x292436)?_0x292436:[];if(_0x11abcf[0x0]===_0x3cf1a9(0x91)){const _0x146189=new ClaudeStatuslineCommand(),_0x5c4b8a=await _0x146189[_0x3cf1a9(0x1ed)]({'options':{..._0x21cf15,..._0x1ee7ce},'args':_0x11abcf['slice'](0x1),'tdx':null});process[_0x3cf1a9(0x2ac)](_0x5c4b8a);}if(_0x11abcf[0x0]===_0x3cf1a9(0x113)){const _0x3eaf87=new ClaudeUsageCommand(),_0x575e9e=await _0x3eaf87['run']({'options':{..._0x21cf15,..._0x1ee7ce},'args':_0x11abcf[_0x3cf1a9(0x1fa)](0x1),'tdx':null});process['exit'](_0x575e9e);}const _0x2d971b=new ClaudeCommand(),_0x24bb6f=await createTDXInstance(_0x21cf15),_0x3573b4=await _0x2d971b[_0x3cf1a9(0x1ed)]({'options':{..._0x21cf15,..._0x1ee7ce},'args':_0x11abcf,'tdx':_0x24bb6f});process['exit'](_0x3573b4);}),program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x21b))[a2_0x39c4c3(0x141)]('Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)')[a2_0x39c4c3(0x28c)]('--clear',a2_0x39c4c3(0xf3))[a2_0x39c4c3(0xb6)](async _0x4054ea=>{const _0xbbd60b=a2_0x39c4c3,_0x33827e=new ContextCommand(),_0x3f1789=program[_0xbbd60b(0x1a9)](),_0x2a7cc9=await _0x33827e[_0xbbd60b(0x1ed)]({'options':{..._0x3f1789,..._0x4054ea},'args':[],'tdx':null});process[_0xbbd60b(0x2ac)](_0x2a7cc9);}),program['command']('use\x20[resource]\x20[value]')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2b9))['option'](a2_0x39c4c3(0x200),'Clear\x20session\x20context')['action'](async(_0x5d9ce7,_0x50d460,_0x12e634)=>{const _0x2a9667=a2_0x39c4c3,_0x350d3d=new UseCommand(),_0x1bd607=program['opts'](),_0xc4cf36=[];if(_0x5d9ce7)_0xc4cf36['push'](_0x5d9ce7);if(_0x50d460)_0xc4cf36[_0x2a9667(0x267)](_0x50d460);const _0x350cfb=await _0x350d3d[_0x2a9667(0x1ed)]({'options':{..._0x1bd607,..._0x12e634},'args':_0xc4cf36,'tdx':null});process['exit'](_0x350cfb);}),program[a2_0x39c4c3(0x197)]('chats')['description']('Interactive\x20chat\x20selector')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x291),a2_0x39c4c3(0x290))[a2_0x39c4c3(0xb6)](async _0x388090=>{const _0x4288da=a2_0x39c4c3,_0x1cc150=new ChatsCommand(),_0x5d04a9=program['opts'](),_0x4bac1f=await createTDXInstance(_0x5d04a9),_0x2c3fd1=await _0x1cc150[_0x4288da(0x1ed)]({'options':{..._0x5d04a9,..._0x388090},'args':[],'tdx':_0x4bac1f});process[_0x4288da(0x2ac)](_0x2c3fd1);});const authCmd=program[a2_0x39c4c3(0x197)]('auth')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2b1));async function runAuthStatusCommand(_0xccee45){const _0x3fbfc2=a2_0x39c4c3,_0x75852b=new AuthStatusCommand(),_0x390b5c=program[_0x3fbfc2(0x1a9)](),_0x2d19f8=await createTDXInstance(_0x390b5c),_0x3c08c5=await _0x75852b[_0x3fbfc2(0x1ed)]({'options':{..._0x390b5c,..._0xccee45},'args':[],'tdx':_0x2d19f8});process[_0x3fbfc2(0x2ac)](_0x3c08c5);}authCmd[a2_0x39c4c3(0xb6)](runAuthStatusCommand),authCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xb8))['description']('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x39c4c3(0xb6)](runAuthStatusCommand),authCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xab))['description'](a2_0x39c4c3(0x156))[a2_0x39c4c3(0x245)](a2_0x39c4c3(0x183),a2_0x39c4c3(0x8d))[a2_0x39c4c3(0xb6)](async _0x49ea0a=>{const _0x13129d=a2_0x39c4c3,_0x3c9974=new AuthSetupCommand(),_0x471c58=program[_0x13129d(0x1a9)](),_0x246b34=await createTDXInstance(_0x471c58),_0x16e7e9=await _0x3c9974['run']({'options':{..._0x471c58,..._0x49ea0a},'args':[],'tdx':_0x246b34});process[_0x13129d(0x2ac)](_0x16e7e9);}),authCmd['command'](a2_0x39c4c3(0x213))[a2_0x39c4c3(0x141)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x39c4c3(0x183),a2_0x39c4c3(0x24c))[a2_0x39c4c3(0xb6)](async _0x5d92e1=>{const _0x343625=new AuthClearCommand(),_0x380ae6=program['opts'](),_0x4f5b9c=await _0x343625['run']({'options':{..._0x380ae6,..._0x5d92e1},'args':[],'tdx':null});process['exit'](_0x4f5b9c);});const userCmd=program[a2_0x39c4c3(0x197)]('user')['description'](a2_0x39c4c3(0x1cb)),userListAction=async _0x186dc5=>{const _0x492113=a2_0x39c4c3,_0xc6350=new UserListCommand(),_0x33b4b7=program[_0x492113(0x1a9)](),_0x393ceb=await createTDXInstance(_0x33b4b7),_0x348798=await _0xc6350['run']({'options':{..._0x33b4b7,..._0x186dc5},'args':[],'tdx':_0x393ceb});process[_0x492113(0x2ac)](_0x348798);};userCmd[a2_0x39c4c3(0xb6)](async _0x3604dd=>{const _0x4965e8=a2_0x39c4c3,_0x2f9548=new UserCommand(),_0x5668ff=program[_0x4965e8(0x1a9)](),_0x6765ce=await createTDXInstance(_0x5668ff),_0x2b4683=await _0x2f9548[_0x4965e8(0x1ed)]({'options':{..._0x5668ff,..._0x3604dd},'args':[],'tdx':_0x6765ce});process[_0x4965e8(0x2ac)](_0x2b4683);}),userCmd['command'](a2_0x39c4c3(0x2b5))[a2_0x39c4c3(0x141)]('List\x20all\x20users\x20in\x20the\x20account')['action'](userListAction),program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x161))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x22a))[a2_0x39c4c3(0xb6)](userListAction),program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x15e))['description'](a2_0x39c4c3(0x90))[a2_0x39c4c3(0xb6)](async _0xc78a04=>{const _0x519e76=a2_0x39c4c3,_0x36900a=new ProfilesCommand(),_0xaecee6=program[_0x519e76(0x1a9)](),_0x120508=await _0x36900a['run']({'options':{..._0xaecee6,..._0xc78a04},'args':[],'tdx':null});process['exit'](_0x120508);});const engageCmd=program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x2b2))[a2_0x39c4c3(0x141)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x494623=>{return async(_0x215a20,_0x1bf50f)=>{const _0x42abb1=a2_0x37e2,_0x4a537a=new _0x494623(),_0x47f63f=program[_0x42abb1(0x1a9)](),_0x92b886=await createTDXInstance(_0x47f63f),_0xfbedd4=await _0x4a537a['run']({'options':{..._0x47f63f,..._0x1bf50f},'args':[_0x215a20],'tdx':_0x92b886});process[_0x42abb1(0x2ac)](_0xfbedd4);};},createEngageNoArgAction=_0x532bcd=>{return async _0x278448=>{const _0x3ab531=a2_0x37e2,_0x239ea4=new _0x532bcd(),_0x315833=program['opts'](),_0x2ec811=await createTDXInstance(_0x315833),_0x104380=await _0x239ea4[_0x3ab531(0x1ed)]({'options':{..._0x315833,..._0x278448},'args':[],'tdx':_0x2ec811});process[_0x3ab531(0x2ac)](_0x104380);};},campaignCmd=engageCmd[a2_0x39c4c3(0x197)]('campaign')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xa3)),campaignListAction=async(_0x5deb0a,_0x4d895f)=>{const _0x569cf6=a2_0x39c4c3,_0xf1fa58=new EngageCampaignsCommand(),_0x44d785=program['opts'](),_0x21e6d5=await createTDXInstance(_0x44d785),_0x2041d0=await _0xf1fa58[_0x569cf6(0x1ed)]({'options':{..._0x44d785,..._0x4d895f},'args':_0x5deb0a?[_0x5deb0a]:[],'tdx':_0x21e6d5});process[_0x569cf6(0x2ac)](_0x2041d0);};campaignCmd[a2_0x39c4c3(0x197)]('list\x20[pattern]')['description'](a2_0x39c4c3(0x18e))[a2_0x39c4c3(0x28c)]('--type\x20<type>',a2_0x39c4c3(0xb9))['option'](a2_0x39c4c3(0x277),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),'Workspace\x20name')[a2_0x39c4c3(0xb6)](campaignListAction),engageCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x97))[a2_0x39c4c3(0x141)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x8b),a2_0x39c4c3(0xb9))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x277),a2_0x39c4c3(0x226))['option'](a2_0x39c4c3(0x233),a2_0x39c4c3(0x181))[a2_0x39c4c3(0xb6)](campaignListAction),campaignCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x147))[a2_0x39c4c3(0x141)]('Show\x20campaign\x20details')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),a2_0x39c4c3(0x181))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xdb),a2_0x39c4c3(0x1b1))[a2_0x39c4c3(0xb6)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')['description'](a2_0x39c4c3(0x1a2))[a2_0x39c4c3(0xb3)](a2_0x39c4c3(0xaa),a2_0x39c4c3(0x1e3))[a2_0x39c4c3(0xb3)](a2_0x39c4c3(0x8b),'Campaign\x20type\x20(email\x20or\x20push)')['option'](a2_0x39c4c3(0x233),'Workspace\x20name\x20(required)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xda),a2_0x39c4c3(0x28f))['option'](a2_0x39c4c3(0xd4),a2_0x39c4c3(0x18b))[a2_0x39c4c3(0x28c)]('--email-sender-id\x20<id>',a2_0x39c4c3(0x15f))['option']('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x145),a2_0x39c4c3(0x19f))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2b0),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x12b))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2c4))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),'Workspace\x20name')[a2_0x39c4c3(0x28c)]('--name\x20<name>','New\x20campaign\x20name')['option'](a2_0x39c4c3(0xda),'Campaign\x20description')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xd4),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x184),a2_0x39c4c3(0x15f))[a2_0x39c4c3(0x28c)]('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x145),a2_0x39c4c3(0x19f))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2b0),a2_0x39c4c3(0x266))[a2_0x39c4c3(0xb6)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x39c4c3(0x1e9))[a2_0x39c4c3(0x141)]('Delete\x20a\x20campaign')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),a2_0x39c4c3(0x181))['option']('--yes',a2_0x39c4c3(0xb2))[a2_0x39c4c3(0xb6)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x39c4c3(0x197)]('launch\x20<name-or-id>')['description'](a2_0x39c4c3(0x254))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),a2_0x39c4c3(0x181))[a2_0x39c4c3(0xb6)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x14a))['description'](a2_0x39c4c3(0x102))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),'Workspace\x20name')['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x20f))['description'](a2_0x39c4c3(0x1ea))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),a2_0x39c4c3(0x181))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1a4))['description'](a2_0x39c4c3(0xbb))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),a2_0x39c4c3(0x181))[a2_0x39c4c3(0xb6)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1d5))[a2_0x39c4c3(0x141)]('Email\x20template\x20management'),templateListAction=async(_0x3184fa,_0x5c353e)=>{const _0xae7747=a2_0x39c4c3,_0x545a79=new EngageTemplatesCommand(),_0x2638c2=program[_0xae7747(0x1a9)](),_0x2ac3b2=await createTDXInstance(_0x2638c2),_0x4bfb3f=await _0x545a79['run']({'options':{..._0x2638c2,..._0x5c353e},'args':_0x3184fa?[_0x3184fa]:[],'tdx':_0x2ac3b2});process[_0xae7747(0x2ac)](_0x4bfb3f);};templateCmd['command'](a2_0x39c4c3(0x280))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x130))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),'Workspace\x20name')['action'](templateListAction),engageCmd['command'](a2_0x39c4c3(0x99))['description'](a2_0x39c4c3(0x11c))[a2_0x39c4c3(0x28c)]('--workspace\x20<name>',a2_0x39c4c3(0x181))[a2_0x39c4c3(0xb6)](templateListAction),templateCmd[a2_0x39c4c3(0x197)]('show\x20<name-or-id>')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xeb))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),'Workspace\x20name')['option'](a2_0x39c4c3(0xdb),a2_0x39c4c3(0x1b1))[a2_0x39c4c3(0xb6)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xbc))['description'](a2_0x39c4c3(0x13a))[a2_0x39c4c3(0xb3)](a2_0x39c4c3(0xaa),a2_0x39c4c3(0x22c))['requiredOption'](a2_0x39c4c3(0x1ef),a2_0x39c4c3(0x21f))['requiredOption']('--html\x20<html>','HTML\x20template\x20content')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),a2_0x39c4c3(0x195))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x299),'Plaintext\x20template\x20content')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x119),a2_0x39c4c3(0xf2))[a2_0x39c4c3(0xb6)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x12b))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x12a))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),a2_0x39c4c3(0x181))[a2_0x39c4c3(0x28c)]('--name\x20<name>',a2_0x39c4c3(0x1c9))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1ef),'Email\x20subject\x20template')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xa7),a2_0x39c4c3(0xe0))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x299),a2_0x39c4c3(0x1a6))[a2_0x39c4c3(0xb6)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1e9))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2c2))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x233),a2_0x39c4c3(0x181))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xce),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xcc))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xcf)),workspaceListAction=async(_0x794bc8,_0x28ba30)=>{const _0x1d2e33=a2_0x39c4c3,_0x401e6f=new EngageWorkspacesCommand(),_0xd91818=program[_0x1d2e33(0x1a9)](),_0x1f3c74=await createTDXInstance(_0xd91818),_0x3a40e4=await _0x401e6f[_0x1d2e33(0x1ed)]({'options':{..._0xd91818,..._0x28ba30},'args':_0x794bc8?[_0x794bc8]:[],'tdx':_0x1f3c74});process['exit'](_0x3a40e4);};workspaceCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x280))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x146))[a2_0x39c4c3(0xb6)](workspaceListAction),engageCmd[a2_0x39c4c3(0x197)]('workspaces\x20[pattern]')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x8f))[a2_0x39c4c3(0xb6)](workspaceListAction),workspaceCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x147))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1c6))[a2_0x39c4c3(0x28c)]('--full',a2_0x39c4c3(0x1b1))[a2_0x39c4c3(0xb6)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x39c4c3(0xbc))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xb1))['requiredOption'](a2_0x39c4c3(0xaa),a2_0x39c4c3(0x181))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xda),a2_0x39c4c3(0x27f))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x12b))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x17f))['option'](a2_0x39c4c3(0xaa),a2_0x39c4c3(0xa4))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xda),a2_0x39c4c3(0x27f))[a2_0x39c4c3(0xb6)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1e9))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x129))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xce),a2_0x39c4c3(0xb2))[a2_0x39c4c3(0xb6)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x228))['description'](a2_0x39c4c3(0x28a))[a2_0x39c4c3(0xb6)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x162))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x101)),connectionListAction=async _0x18020e=>{const _0x2cba55=a2_0x39c4c3,_0x45bb8a=new ConnectionListCommand(),_0x5e2f8c=program[_0x2cba55(0x1a9)](),_0x3f7122=await createTDXInstance(_0x5e2f8c),_0x26e294=await _0x45bb8a[_0x2cba55(0x1ed)]({'options':{..._0x5e2f8c,..._0x18020e},'args':[],'tdx':_0x3f7122});process[_0x2cba55(0x2ac)](_0x26e294);};connectionCmd['command'](a2_0x39c4c3(0x2b5))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xe2))[a2_0x39c4c3(0xb6)](connectionListAction),program['command'](a2_0x39c4c3(0x103),{'hidden':!![]})[a2_0x39c4c3(0x141)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x39c4c3(0xb6)](connectionListAction),connectionCmd['command'](a2_0x39c4c3(0x282))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2a2))[a2_0x39c4c3(0xb6)](async(_0x5d5019,_0x50a19e)=>{const _0x59161d=a2_0x39c4c3,_0x381d56=new ConnectionShowCommand(),_0x19d25d=program[_0x59161d(0x1a9)](),_0x4603cf=await createTDXInstance(_0x19d25d),_0x2cee2a=await _0x381d56['run']({'options':{..._0x19d25d,..._0x50a19e},'args':[_0x5d5019],'tdx':_0x4603cf});process[_0x59161d(0x2ac)](_0x2cee2a);}),connectionCmd[a2_0x39c4c3(0x197)]('schema\x20<type>')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x26f))[a2_0x39c4c3(0xb6)](async(_0x230d68,_0x345c26)=>{const _0x4870b9=a2_0x39c4c3,_0x3a1b4e=new ConnectionSchemaCommand(),_0x964d8c=program[_0x4870b9(0x1a9)](),_0x5a1263=await createTDXInstance(_0x964d8c),_0x139942=await _0x3a1b4e['run']({'options':{..._0x964d8c,..._0x345c26},'args':[_0x230d68],'tdx':_0x5a1263});process[_0x4870b9(0x2ac)](_0x139942);}),connectionCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1c1))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1a7))[a2_0x39c4c3(0xb6)](async _0x3e7889=>{const _0x54c258=a2_0x39c4c3,_0x529fa3=new ConnectionTypesCommand(),_0x497d26=program[_0x54c258(0x1a9)](),_0x571c24=await createTDXInstance(_0x497d26),_0x280782=await _0x529fa3['run']({'options':{..._0x497d26,..._0x3e7889},'args':[],'tdx':_0x571c24});process[_0x54c258(0x2ac)](_0x280782);}),connectionCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xcb))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0xac))[a2_0x39c4c3(0xb6)](async(_0x922dda,_0xd0f8f6)=>{const _0x22d8a7=a2_0x39c4c3,_0x16d6b0=new ConnectionSettingsCommand(),_0x5819d2=program[_0x22d8a7(0x1a9)](),_0x230324=await createTDXInstance(_0x5819d2),_0x327bba=await _0x16d6b0[_0x22d8a7(0x1ed)]({'options':{..._0x5819d2,..._0xd0f8f6},'args':[_0x922dda],'tdx':_0x230324});process[_0x22d8a7(0x2ac)](_0x327bba);});const journeyCmd=program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x9f))[a2_0x39c4c3(0x141)]('CDP\x20Journey\x20Orchestration\x20commands');journeyCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x280))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x10e))['option'](a2_0x39c4c3(0x94),a2_0x39c4c3(0x202))[a2_0x39c4c3(0xb6)](async(_0x42f110,_0x20ec7c)=>{const _0x335cbf=a2_0x39c4c3,_0x26f322=new JourneyListCommand(),_0xce6874=program[_0x335cbf(0x1a9)](),_0x15d973=await createTDXInstance(_0xce6874),_0x6a574a=await _0x26f322[_0x335cbf(0x1ed)]({'options':{..._0xce6874,..._0x20ec7c},'args':_0x42f110?[_0x42f110]:[],'tdx':_0x15d973});process[_0x335cbf(0x2ac)](_0x6a574a);}),journeyCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1f4))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x131))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x94),a2_0x39c4c3(0x1c8))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x26d),'Include\x20execution\x20statistics')['action'](async(_0x134383,_0x298cec)=>{const _0xa3a336=a2_0x39c4c3,_0x2bffe1=new JourneyViewCommand(),_0x11b592=program['opts'](),_0x272a30=await createTDXInstance(_0x11b592),_0x519ebd=await _0x2bffe1[_0xa3a336(0x1ed)]({'options':{..._0x11b592,..._0x298cec},'args':[_0x134383],'tdx':_0x272a30});process[_0xa3a336(0x2ac)](_0x519ebd);}),journeyCmd[a2_0x39c4c3(0x197)]('stats\x20<name-or-path>')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x120))['option']('--stage\x20<name>',a2_0x39c4c3(0x18d))[a2_0x39c4c3(0xb6)](async(_0x2afde6,_0x537588)=>{const _0x198f29=a2_0x39c4c3,_0x38ab8a=new JourneyStatsCommand(),_0x51c9d2=program['opts'](),_0x5e2e1f=await createTDXInstance(_0x51c9d2),_0x47f38a=await _0x38ab8a[_0x198f29(0x1ed)]({'options':{..._0x51c9d2,..._0x537588},'args':[_0x2afde6],'tdx':_0x5e2e1f});process[_0x198f29(0x2ac)](_0x47f38a);}),journeyCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x296))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x24b))[a2_0x39c4c3(0xb6)](async(_0x37ab28,_0x57dabd)=>{const _0x36058c=a2_0x39c4c3,_0x3288ec=new JourneyPauseCommand(),_0xf79465=program[_0x36058c(0x1a9)](),_0x82cae6=await createTDXInstance(_0xf79465),_0x19c197=await _0x3288ec[_0x36058c(0x1ed)]({'options':{..._0xf79465,..._0x57dabd},'args':[_0x37ab28],'tdx':_0x82cae6});process[_0x36058c(0x2ac)](_0x19c197);}),journeyCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x150))[a2_0x39c4c3(0x141)]('Resume\x20a\x20paused\x20journey')[a2_0x39c4c3(0xb6)](async(_0x3d514e,_0xe7ac22)=>{const _0x576a33=a2_0x39c4c3,_0x18b4c0=new JourneyResumeCommand(),_0x33a025=program[_0x576a33(0x1a9)](),_0x3a0e08=await createTDXInstance(_0x33a025),_0x278243=await _0x18b4c0[_0x576a33(0x1ed)]({'options':{..._0x33a025,..._0xe7ac22},'args':[_0x3d514e],'tdx':_0x3a0e08});process[_0x576a33(0x2ac)](_0x278243);}),journeyCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xe8))['description'](a2_0x39c4c3(0x1e0))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x2a5),a2_0x39c4c3(0xb2))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x154),a2_0x39c4c3(0x230))[a2_0x39c4c3(0xb6)](async(_0x1fad71,_0x4c5a4c)=>{const _0x554688=a2_0x39c4c3,_0x31a3a2=new JourneyPullCommand(),_0x55a074=program[_0x554688(0x1a9)](),_0x19e7cc=await createTDXInstance(_0x55a074),_0x3a70d2=await _0x31a3a2[_0x554688(0x1ed)]({'options':{..._0x55a074,..._0x4c5a4c},'args':_0x1fad71?[_0x1fad71]:[],'tdx':_0x19e7cc});process[_0x554688(0x2ac)](_0x3a70d2);}),journeyCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x29a))['description'](a2_0x39c4c3(0x219))['action'](async(_0x58ef2b,_0x159c92)=>{const _0x279a68=a2_0x39c4c3,_0x48a17c=new JourneyPushCommand(),_0x138aeb=program[_0x279a68(0x1a9)](),_0x4c1e9c=await createTDXInstance(_0x138aeb),_0x3ca60a=await _0x48a17c[_0x279a68(0x1ed)]({'options':{..._0x138aeb,..._0x159c92},'args':_0x58ef2b?[_0x58ef2b]:[],'tdx':_0x4c1e9c});process[_0x279a68(0x2ac)](_0x3ca60a);});const agentSyncCmd=program[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xd0))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x188));agentSyncCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x2b6))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1a3))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x279),a2_0x39c4c3(0x1de))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x220),a2_0x39c4c3(0xf9))[a2_0x39c4c3(0xb6)](async(_0xd8069d,_0x3dfd50,_0xaea9b2)=>{const _0x1e1d92=a2_0x39c4c3,_0xb29ae4=new AgentPullCommand(),_0x334ff3=program[_0x1e1d92(0x1a9)](),_0x55d9b5=await createTDXInstance(_0x334ff3),_0x4ba83f=[];if(_0xd8069d)_0x4ba83f[_0x1e1d92(0x267)](_0xd8069d);if(_0x3dfd50)_0x4ba83f['push'](_0x3dfd50);const _0x2f8538=await _0xb29ae4[_0x1e1d92(0x1ed)]({'options':{..._0x334ff3,..._0xaea9b2},'args':_0x4ba83f,'tdx':_0x55d9b5});process[_0x1e1d92(0x2ac)](_0x2f8538);}),agentSyncCmd[a2_0x39c4c3(0x197)]('push\x20[path]')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x269))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x220),a2_0x39c4c3(0xd2))['action'](async(_0x3a8122,_0x52f72b)=>{const _0x17105a=a2_0x39c4c3,_0x276313=new AgentPushCommand(),_0x2c9e48=program[_0x17105a(0x1a9)](),_0x2f16ff=await createTDXInstance(_0x2c9e48),_0x593af1=await _0x276313['run']({'options':{..._0x2c9e48,..._0x52f72b},'args':_0x3a8122?[_0x3a8122]:[],'tdx':_0x2f16ff});process['exit'](_0x593af1);}),agentSyncCmd[a2_0x39c4c3(0x197)]('clone\x20[source]')[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x16e))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xb0),a2_0x39c4c3(0x293))[a2_0x39c4c3(0xb6)](async(_0x586d92,_0x408ac1)=>{const _0x4157bd=a2_0x39c4c3,_0x469e19=new AgentCloneCommand(),_0x5719d7=program['opts'](),_0x37d086=await createTDXInstance(_0x5719d7),_0x1f3cb8=await _0x469e19[_0x4157bd(0x1ed)]({'options':{..._0x5719d7,..._0x408ac1},'args':_0x586d92?[_0x586d92]:[],'tdx':_0x37d086});process[_0x4157bd(0x2ac)](_0x1f3cb8);}),agentSyncCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x280))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1b2))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x94),a2_0x39c4c3(0x268))['action'](llmAgentListAction),agentSyncCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x2bb))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x2c8))[a2_0x39c4c3(0xb6)](async(_0x1cdf81,_0x1fb850)=>{const _0x48707e=a2_0x39c4c3,_0x433067=new LLMAgentShowCommand(),_0x7d4f04=program['opts'](),_0x38f9a2=await createTDXInstance(_0x7d4f04),_0x111144=await _0x433067[_0x48707e(0x1ed)]({'options':{..._0x7d4f04,..._0x1fb850},'args':[_0x1cdf81],'tdx':_0x38f9a2});process[_0x48707e(0x2ac)](_0x111144);}),agentSyncCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0xe5))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x8a))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0xe6),a2_0x39c4c3(0x26c))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x1bd),a2_0x39c4c3(0x180),'claude-4.5-sonnet')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x19e),a2_0x39c4c3(0x107))[a2_0x39c4c3(0x28c)]('--max-tool-iterations\x20<n>',a2_0x39c4c3(0x284),'4')[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x15c),a2_0x39c4c3(0x252),a2_0x39c4c3(0x136))[a2_0x39c4c3(0xb6)](async(_0x5cefce,_0x3abddf)=>{const _0x91f1eb=a2_0x39c4c3,_0x1d772a=new LLMAgentCreateCommand(),_0x5a2ea1=program[_0x91f1eb(0x1a9)](),_0x565115=await createTDXInstance(_0x5a2ea1),_0x1ca3fe=await _0x1d772a[_0x91f1eb(0x1ed)]({'options':{..._0x5a2ea1,..._0x3abddf},'args':[_0x5cefce],'tdx':_0x565115});process[_0x91f1eb(0x2ac)](_0x1ca3fe);}),agentSyncCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x190))[a2_0x39c4c3(0x141)](a2_0x39c4c3(0x1c0))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x232),a2_0x39c4c3(0x23a))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x105),'Agent\x20prompt/instructions')['option'](a2_0x39c4c3(0xa5),a2_0x39c4c3(0x1fd))[a2_0x39c4c3(0x28c)](a2_0x39c4c3(0x19e),a2_0x39c4c3(0x107))['action'](async(_0x3c16ae,_0x385244)=>{const _0x253aa7=a2_0x39c4c3,_0x1aa7e9=new LLMAgentUpdateCommand(),_0x434fab=program[_0x253aa7(0x1a9)](),_0x3c1a21=await createTDXInstance(_0x434fab),_0x710522=await _0x1aa7e9[_0x253aa7(0x1ed)]({'options':{..._0x434fab,..._0x385244},'args':[_0x3c16ae],'tdx':_0x3c1a21});process['exit'](_0x710522);}),agentSyncCmd[a2_0x39c4c3(0x197)](a2_0x39c4c3(0x1a5))['description'](a2_0x39c4c3(0x1e5))['action'](async(_0x42f372,_0x15f3fb)=>{const _0xd1e350=new LLMAgentDeleteCommand(),_0x3d3a2a=program['opts'](),_0x332973=await createTDXInstance(_0x3d3a2a),_0xe9466b=await _0xd1e350['run']({'options':{..._0x3d3a2a,..._0x15f3fb},'args':[_0x42f372],'tdx':_0x332973});process['exit'](_0xe9466b);});export{program};export function runCLI(){const _0x388bb6=a2_0x39c4c3;program[_0x388bb6(0x1ab)](process[_0x388bb6(0x229)]);!process[_0x388bb6(0x229)][_0x388bb6(0x1fa)](0x2)['length']&&program[_0x388bb6(0x255)]();const _0x43e158=packageJson[_0x388bb6(0x289)];process['stderr']['isTTY']&&process[_0x388bb6(0x229)][_0x388bb6(0xc3)]>0x2&&!_0x43e158[_0x388bb6(0x1fe)](_0x388bb6(0x138))&&checkForUpdate(_0x43e158)['then'](_0x2e79da=>{_0x2e79da&&displayUpdateNotification(_0x2e79da);})[_0x388bb6(0xa6)](()=>{});}