@treasuredata/tdx 0.16.16 → 0.16.18

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 (169) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/engage-command.js +1 -1
  19. package/dist/commands/job-command.js +1 -1
  20. package/dist/commands/journey-command.js +1 -1
  21. package/dist/commands/journey-validate-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/llm-proxy.js +1 -1
  24. package/dist/commands/mcp-command.js +1 -1
  25. package/dist/commands/parent-segment-command.js +1 -1
  26. package/dist/commands/profile-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/status-command.js +1 -1
  40. package/dist/commands/tables.js +1 -1
  41. package/dist/commands/unset-command.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/user-command.js +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/command-output.js +1 -1
  47. package/dist/core/config.js +1 -1
  48. package/dist/core/connection-cache.js +1 -1
  49. package/dist/core/constants.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/core/version.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/mcp/server.js +1 -1
  60. package/dist/mcp/tools/index.js +1 -1
  61. package/dist/mcp/tools/tdx-run.d.ts.map +1 -1
  62. package/dist/mcp/tools/tdx-run.js +1 -1
  63. package/dist/mcp/tools/tdx-run.js.map +1 -1
  64. package/dist/mcp/tools/tdx-search.js +1 -1
  65. package/dist/mcp/utils.js +1 -1
  66. package/dist/proxy/anthropic-adapter.js +1 -1
  67. package/dist/proxy/claude-usage-tracker.js +1 -1
  68. package/dist/proxy/context-signature.js +1 -1
  69. package/dist/proxy/conversation-utils.js +1 -1
  70. package/dist/proxy/passthrough-server.js +1 -1
  71. package/dist/proxy/server.js +1 -1
  72. package/dist/proxy/session-cache.js +1 -1
  73. package/dist/proxy/sse-usage-parser.js +1 -1
  74. package/dist/sdk/agent/agent-config.js +1 -1
  75. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  76. package/dist/sdk/agent/agent-yaml.js +1 -1
  77. package/dist/sdk/agent/test/evaluator.js +1 -1
  78. package/dist/sdk/agent/test/executor.js +1 -1
  79. package/dist/sdk/agent/test/index.js +1 -1
  80. package/dist/sdk/agent/test/output.js +1 -1
  81. package/dist/sdk/agent/test/parser.js +1 -1
  82. package/dist/sdk/api.js +1 -1
  83. package/dist/sdk/client/cdp-api-client.js +1 -1
  84. package/dist/sdk/client/endpoints.js +1 -1
  85. package/dist/sdk/client/engage-api-client.js +1 -1
  86. package/dist/sdk/client/http-client.js +1 -1
  87. package/dist/sdk/client/llm-api-client.js +1 -1
  88. package/dist/sdk/client/rate-limiter.js +1 -1
  89. package/dist/sdk/client/td-api-client.js +1 -1
  90. package/dist/sdk/client/trino-api-client.js +1 -1
  91. package/dist/sdk/client/workflow-client.js +1 -1
  92. package/dist/sdk/connection-validator.js +1 -1
  93. package/dist/sdk/connection.js +1 -1
  94. package/dist/sdk/engage.js +1 -1
  95. package/dist/sdk/errors.js +1 -1
  96. package/dist/sdk/index.js +1 -1
  97. package/dist/sdk/io/index.js +1 -1
  98. package/dist/sdk/io/node-filesystem.js +1 -1
  99. package/dist/sdk/job.js +1 -1
  100. package/dist/sdk/journey.js +1 -1
  101. package/dist/sdk/llm/chat-cache.js +1 -1
  102. package/dist/sdk/llm/index.js +1 -1
  103. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  104. package/dist/sdk/llm/model-aliases.js +1 -1
  105. package/dist/sdk/llm/model-factors.js +1 -1
  106. package/dist/sdk/query/index.js +1 -1
  107. package/dist/sdk/query/sql-parser.js +1 -1
  108. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  109. package/dist/sdk/segment/fields-display.js +1 -1
  110. package/dist/sdk/segment/file-discovery.js +1 -1
  111. package/dist/sdk/segment/journey-utils.js +1 -1
  112. package/dist/sdk/segment/journey-yaml.js +1 -1
  113. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  114. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  115. package/dist/sdk/segment/pull-workflow.js +1 -1
  116. package/dist/sdk/segment/push-workflow.js +1 -1
  117. package/dist/sdk/segment/resolution-context.js +1 -1
  118. package/dist/sdk/segment/segment-path-parser.js +1 -1
  119. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  120. package/dist/sdk/segment/target-resolution.js +1 -1
  121. package/dist/sdk/segment/tdx-config.js +1 -1
  122. package/dist/sdk/segment/validate-files.js +1 -1
  123. package/dist/sdk/segment/yaml-validator.js +1 -1
  124. package/dist/sdk/segment.js +1 -1
  125. package/dist/sdk/types/index.js +1 -1
  126. package/dist/sdk/types/progress.js +1 -1
  127. package/dist/sdk/user.js +1 -1
  128. package/dist/sdk/util/format-detector.js +1 -1
  129. package/dist/sdk/util/formatters.js +1 -1
  130. package/dist/sdk/util/index.js +1 -1
  131. package/dist/sdk/util/tree-formatter.js +1 -1
  132. package/dist/sdk/workflow/clone-workflow.js +1 -1
  133. package/dist/sdk/workflow/index.js +1 -1
  134. package/dist/sdk/workflow/pull-workflow.js +1 -1
  135. package/dist/sdk/workflow/push-workflow.js +1 -1
  136. package/dist/sdk/workflow/tdx-config.js +1 -1
  137. package/dist/sdk/workflow/workflow-utils.js +1 -1
  138. package/dist/test-utils/command-runner.js +1 -1
  139. package/dist/test-utils/factories.js +1 -1
  140. package/dist/test-utils/fixtures.js +1 -1
  141. package/dist/test-utils/http-mock.js +1 -1
  142. package/dist/test-utils/index.js +1 -1
  143. package/dist/utils/async.js +1 -1
  144. package/dist/utils/colors.js +1 -1
  145. package/dist/utils/diff.js +1 -1
  146. package/dist/utils/file-permissions.js +1 -1
  147. package/dist/utils/global-cache.js +1 -1
  148. package/dist/utils/json-loader.js +1 -1
  149. package/dist/utils/local-cache.js +1 -1
  150. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  151. package/dist/utils/logger/formatters/index.js +1 -1
  152. package/dist/utils/logger/handlers/console-handler.js +1 -1
  153. package/dist/utils/logger/handlers/file-handler.js +1 -1
  154. package/dist/utils/logger/handlers/index.js +1 -1
  155. package/dist/utils/logger/handlers/null-handler.js +1 -1
  156. package/dist/utils/logger/index.js +1 -1
  157. package/dist/utils/logger/logger.js +1 -1
  158. package/dist/utils/logger/types.js +1 -1
  159. package/dist/utils/option-validation.js +1 -1
  160. package/dist/utils/port.js +1 -1
  161. package/dist/utils/process.js +1 -1
  162. package/dist/utils/prompt.js +1 -1
  163. package/dist/utils/spinner.js +1 -1
  164. package/dist/utils/sse-parser.js +1 -1
  165. package/dist/utils/string-utils.js +1 -1
  166. package/dist/utils/table-ref-parser.js +1 -1
  167. package/dist/utils/tdx-logger.js +1 -1
  168. package/dist/utils/version-check.js +1 -1
  169. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x3bc517=a2_0x4360;(function(_0x1076c0,_0x3ce0dd){const _0x284138=a2_0x4360,_0x4a0c5f=_0x1076c0();while(!![]){try{const _0x1a4a85=-parseInt(_0x284138(0x2b4))/0x1*(parseInt(_0x284138(0x16a))/0x2)+parseInt(_0x284138(0x100))/0x3*(-parseInt(_0x284138(0x300))/0x4)+-parseInt(_0x284138(0x18e))/0x5+parseInt(_0x284138(0x274))/0x6+-parseInt(_0x284138(0x2b7))/0x7+parseInt(_0x284138(0x1c9))/0x8+parseInt(_0x284138(0x1fe))/0x9*(parseInt(_0x284138(0x2cf))/0xa);if(_0x1a4a85===_0x3ce0dd)break;else _0x4a0c5f['push'](_0x4a0c5f['shift']());}catch(_0x1d633f){_0x4a0c5f['push'](_0x4a0c5f['shift']());}}}(a2_0x125f,0x492fd));import{Command}from'commander';import{existsSync,statSync}from'fs';import{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{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.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{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';function a2_0x4360(_0x5f4acc,_0x1ace56){_0x5f4acc=_0x5f4acc-0xfe;const _0x125f37=a2_0x125f();let _0x4360d2=_0x125f37[_0x5f4acc];return _0x4360d2;}import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-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{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-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{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv'][a2_0x3bc517(0x1b8)](a2_0x3bc517(0x31c))){let versionOutput=a2_0x3bc517(0x1ff)+currentVersion;buildInfo[a2_0x3bc517(0x25e)]&&!currentVersion[a2_0x3bc517(0x1b8)](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x3bc517(0x25e)]+')'),buildInfo[a2_0x3bc517(0x1e4)]&&(versionOutput+=a2_0x3bc517(0x309)+buildInfo[a2_0x3bc517(0x1e4)]),console[a2_0x3bc517(0x328)](versionOutput),process[a2_0x3bc517(0x278)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x3bc517(0x1d1);buildInfo[a2_0x3bc517(0x25e)]&&!currentVersion[a2_0x3bc517(0x1b8)](buildInfo[a2_0x3bc517(0x25e)])?description+=a2_0x3bc517(0x2b9)+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x3bc517(0x2b9)+currentVersion;program[a2_0x3bc517(0x20b)](a2_0x3bc517(0x33f))[a2_0x3bc517(0x33b)](description),program[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2cd),a2_0x3bc517(0x1a2))[a2_0x3bc517(0x1da)]('-p,\x20--profile\x20<name>',a2_0x3bc517(0x2ba))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1b2),a2_0x3bc517(0x1bb),a2_0x3bc517(0x30c))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x30f),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')['option'](a2_0x3bc517(0x119),a2_0x3bc517(0x206))[a2_0x3bc517(0x1da)]('--json',a2_0x3bc517(0x27b))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x27c),a2_0x3bc517(0x197))[a2_0x3bc517(0x1da)]('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x3bc517(0x1da)]('--output\x20<file>','Save\x20output\x20to\x20file')['option'](a2_0x3bc517(0x2c4),a2_0x3bc517(0x1ce))['option'](a2_0x3bc517(0x31d),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])['option'](a2_0x3bc517(0x317),a2_0x3bc517(0x289),![])[a2_0x3bc517(0x1da)](a2_0x3bc517(0x286),a2_0x3bc517(0x2f5),![])[a2_0x3bc517(0x1da)]('--debug',a2_0x3bc517(0x348))[a2_0x3bc517(0x1da)]('--trace',a2_0x3bc517(0x224))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x120),a2_0x3bc517(0x1b1),'30')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x124),a2_0x3bc517(0x22f),![])[a2_0x3bc517(0x1da)](a2_0x3bc517(0x21a),a2_0x3bc517(0x179),![])['option']('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1d4),a2_0x3bc517(0x1f2))[a2_0x3bc517(0x1da)]('--in\x20<name>',a2_0x3bc517(0x13d))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2bf),a2_0x3bc517(0x2fd))[a2_0x3bc517(0x1da)]('--llm-project\x20<name>',a2_0x3bc517(0x17f)),program[a2_0x3bc517(0x2d7)]({'formatHelp':(_0x2d9b2e,_0x82e3ff)=>{const _0x5746ee=a2_0x3bc517,_0x52ac19=_0x82e3ff[_0x5746ee(0x345)](_0x2d9b2e,_0x82e3ff),_0x2abf63=0x2,_0x9efa9=0x2;function _0x5334e6(_0xb6799e){const _0x958ce0=_0x5746ee,_0x20ed60=_0xb6799e;return!!(_0x20ed60[_0x958ce0(0x2e7)]||_0x20ed60[_0x958ce0(0x28d)]);}function _0x1a6204(_0x41bb28,_0x33f88e){const _0x40ca20=_0x5746ee;if(_0x33f88e){const _0x5d8bc8=''+_0x41bb28[_0x40ca20(0x11b)](_0x52ac19+_0x9efa9)+_0x33f88e;return _0x5d8bc8;}return _0x41bb28;}function _0xa1dcba(_0x113117){const _0x2f337c=_0x5746ee;return _0x113117[_0x2f337c(0x211)]('\x0a')[_0x2f337c(0x1ee)](/^/gm,'\x20'['repeat'](_0x2abf63));}const _0x1a7996=[];_0x1a7996[_0x5746ee(0x24b)]('Usage:\x20'+_0x82e3ff[_0x5746ee(0x1bf)](_0x2d9b2e));const _0x44f90a=_0x82e3ff[_0x5746ee(0x2b2)](_0x2d9b2e);_0x44f90a&&(_0x1a7996['push'](''),_0x1a7996[_0x5746ee(0x24b)](_0x44f90a));const _0xd0015b=_0x2d9b2e[_0x5746ee(0x22d)][_0x5746ee(0x105)](_0x1fa7da=>!_0x5334e6(_0x1fa7da));if(_0xd0015b[_0x5746ee(0x1ea)]>0x0){if(_0x2d9b2e[_0x5746ee(0x20b)]()===_0x5746ee(0x33f)){const _0x5df6e4=_0x2d9b2e[_0x5746ee(0x1bd)](),_0x54fcd2=!_0x5df6e4[_0x5746ee(0x107)]&&process[_0x5746ee(0x190)]['isTTY'],_0x106ab4=COMMAND_CATEGORIES,_0x48c7ad=(_0x4684fc,_0x48f5b7)=>_0x54fcd2?_0x48f5b7(_0x4684fc):_0x4684fc,_0x51f364=new Map();_0xd0015b[_0x5746ee(0x283)](_0xef5894=>{const _0xe5baba=_0x5746ee;_0x51f364[_0xe5baba(0x126)](_0xef5894[_0xe5baba(0x20b)](),_0xef5894);}),_0x106ab4['forEach'](_0x5ee1f4=>{const _0x38144f=_0x5746ee,_0x39f918=_0x5ee1f4['commands'][_0x38144f(0x178)](_0xfd3eab=>_0x51f364[_0x38144f(0x32b)](_0xfd3eab)??[]);if(_0x39f918[_0x38144f(0x1ea)]>0x0){_0x1a7996[_0x38144f(0x24b)](''),_0x1a7996[_0x38144f(0x24b)](_0x48c7ad(_0x5ee1f4[_0x38144f(0x20b)]+':',_0x5ee1f4[_0x38144f(0x181)]));const _0x5c9f67=_0x39f918['map'](_0x5f09e9=>{const _0x5efca2=_0x38144f,_0x2de3f5=_0x82e3ff['subcommandTerm'](_0x5f09e9),_0x415261=_0x82e3ff[_0x5efca2(0x113)](_0x5f09e9);return _0x1a6204(_0x2de3f5,_0x415261);});_0x1a7996[_0x38144f(0x24b)](_0xa1dcba(_0x5c9f67));}}),_0x1a7996[_0x5746ee(0x24b)](''),_0x1a7996[_0x5746ee(0x24b)](_0x5746ee(0x27f));}else{const _0x3e6af7=_0xd0015b[_0x5746ee(0x1c0)](_0x3ef0ef=>{const _0xa7403c=_0x5746ee,_0x230064=_0x82e3ff[_0xa7403c(0x217)](_0x3ef0ef),_0x487aa1=_0x82e3ff[_0xa7403c(0x113)](_0x3ef0ef);return _0x1a6204(_0x230064,_0x487aa1);});_0x1a7996[_0x5746ee(0x24b)](''),_0x1a7996[_0x5746ee(0x24b)](_0x5746ee(0x252)),_0x1a7996[_0x5746ee(0x24b)](_0xa1dcba(_0x3e6af7));}}if(showBriefHelp&&_0x2d9b2e[_0x5746ee(0x20b)]()===_0x5746ee(0x33f))_0x1a7996[_0x5746ee(0x24b)](''),_0x1a7996[_0x5746ee(0x24b)]('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x3bf46b=_0x2d9b2e['options'][_0x5746ee(0x105)](_0x41c528=>!_0x5334e6(_0x41c528));if(_0x3bf46b[_0x5746ee(0x1ea)]>0x0){const _0x4fdc1f=_0x3bf46b[_0x5746ee(0x1c0)](_0x4e3135=>{const _0x8edc44=_0x5746ee,_0x43bd31=_0x82e3ff['optionTerm'](_0x4e3135),_0x12203c=_0x82e3ff[_0x8edc44(0x304)](_0x4e3135);return _0x1a6204(_0x43bd31,_0x12203c);});_0x1a7996[_0x5746ee(0x24b)](''),_0x1a7996[_0x5746ee(0x24b)](_0x5746ee(0x21b)),_0x1a7996['push'](_0xa1dcba(_0x4fdc1f));}}const _0x26465f=(_0x2d9b2e[_0x5746ee(0x316)]||[])['filter'](_0x3a9bc2=>!_0x5334e6(_0x3a9bc2));if(_0x26465f[_0x5746ee(0x1ea)]>0x0){const _0x1e8ed7=_0x26465f[_0x5746ee(0x1c0)](_0x5de8ab=>{const _0xe0dd12=_0x5746ee,_0x38f00b=_0x82e3ff[_0xe0dd12(0x30e)](_0x5de8ab),_0x285dc2=_0x82e3ff[_0xe0dd12(0x1ca)](_0x5de8ab);return _0x1a6204(_0x38f00b,_0x285dc2);});_0x1a7996['push'](''),_0x1a7996[_0x5746ee(0x24b)]('Arguments:'),_0x1a7996[_0x5746ee(0x24b)](_0xa1dcba(_0x1e8ed7));}return _0x1a7996[_0x5746ee(0x211)]('\x0a')+'\x0a';},'subcommandTerm':_0x4e1297=>{const _0x4cf445=a2_0x3bc517,_0x392e87=(_0x4e1297[_0x4cf445(0x316)]||[])[_0x4cf445(0x1c0)](_0x3c8d3f=>_0x3c8d3f['required']?'<'+_0x3c8d3f[_0x4cf445(0x20b)]()+'>':'['+_0x3c8d3f[_0x4cf445(0x20b)]()+']')[_0x4cf445(0x211)]('\x20'),_0xedd1a5=_0x4e1297[_0x4cf445(0x22c)](),_0x1a400b=_0xedd1a5[_0x4cf445(0x1ea)]>0x0?_0x4e1297[_0x4cf445(0x20b)]()+',\x20'+_0xedd1a5[_0x4cf445(0x211)](',\x20'):_0x4e1297[_0x4cf445(0x20b)]();return _0x392e87?_0x1a400b+'\x20'+_0x392e87:_0x1a400b;}}),program['hook']('preAction',_0x40a014=>{const _0x3cbb6a=a2_0x3bc517,_0x33f953=_0x40a014[_0x3cbb6a(0x1bd)]();if(_0x33f953['directory']){const _0x42a313=resolve(_0x33f953[_0x3cbb6a(0x160)]),_0x9946a1=_0x42a313!==_0x33f953['directory']?_0x3cbb6a(0x19c)+_0x42a313+')':'';if(!existsSync(_0x42a313))throw new SDKError(ErrorCode[_0x3cbb6a(0x156)],'Directory\x20does\x20not\x20exist:\x20'+_0x33f953[_0x3cbb6a(0x160)]+_0x9946a1,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x13d42e=statSync(_0x42a313);if(!_0x13d42e[_0x3cbb6a(0x290)]())throw new SDKError(ErrorCode[_0x3cbb6a(0x156)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x33f953['directory']+_0x9946a1,undefined,{'helpText':_0x3cbb6a(0x2c5)});process[_0x3cbb6a(0x191)](_0x42a313);}if(!_0x33f953['format']){if(_0x33f953[_0x3cbb6a(0x193)])_0x33f953[_0x3cbb6a(0x16e)]=_0x3cbb6a(0x193);else{if(_0x33f953['json'])_0x33f953[_0x3cbb6a(0x16e)]=_0x3cbb6a(0x187);else{if(_0x33f953['jsonl'])_0x33f953[_0x3cbb6a(0x16e)]=_0x3cbb6a(0x23f);else _0x33f953[_0x3cbb6a(0x299)]&&(_0x33f953['format']='tsv');}}}_0x33f953['in']&&!_0x33f953[_0x3cbb6a(0x18a)]&&(_0x33f953[_0x3cbb6a(0x18a)]=_0x33f953['in']);if(_0x33f953[_0x3cbb6a(0x333)])_0x33f953[_0x3cbb6a(0x257)]=LogLevel[_0x3cbb6a(0x2ae)];else{if(_0x33f953[_0x3cbb6a(0x11e)])_0x33f953[_0x3cbb6a(0x257)]=LogLevel[_0x3cbb6a(0x2a6)];else _0x33f953['logLevel']===undefined&&(_0x33f953[_0x3cbb6a(0x257)]=LogLevel[_0x3cbb6a(0x149)]);}});async function createTDXInstance(_0xbea137){const _0x4758d8=a2_0x3bc517,_0x3f7b4f=await GlobalContext[_0x4758d8(0x1ba)](_0xbea137);return _0x3f7b4f[_0x4758d8(0x22b)](_0xbea137),TDX[_0x4758d8(0x1e1)]({'site':_0x3f7b4f[_0x4758d8(0x2f2)],'apiKey':_0x3f7b4f['apiKey'],'logLevel':_0x3f7b4f['logLevel'],'profile':_0x3f7b4f['profile']});}const databaseCmd=program[a2_0x3bc517(0x19a)]('database')[a2_0x3bc517(0x2e2)]('db')['description']('Database\x20management\x20commands'),databaseListAction=async(_0x3c5aa7,_0x2364f9)=>{const _0x548c28=a2_0x3bc517,_0x1f3a31=new DatabasesCommand(),_0x37c8bc=program[_0x548c28(0x1bd)](),_0x117a15=await createTDXInstance(_0x37c8bc),_0x2d9e6f=await _0x1f3a31[_0x548c28(0x173)]({'options':{..._0x37c8bc,..._0x2364f9},'args':_0x3c5aa7?[_0x3c5aa7]:[],'tdx':_0x117a15});gracefulExit(_0x2d9e6f);};databaseCmd['command'](a2_0x3bc517(0x2ed))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x129))[a2_0x3bc517(0x24f)](databaseListAction),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x239),{'hidden':!![]})['description'](a2_0x3bc517(0x324))[a2_0x3bc517(0x24f)](databaseListAction),program[a2_0x3bc517(0x19a)]('chat\x20[message...]')['description'](a2_0x3bc517(0x2fb))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x33a),a2_0x3bc517(0x310))['option']('--new',a2_0x3bc517(0x1fd))[a2_0x3bc517(0x24f)](async(_0x941e0f,_0x21a559)=>{const _0x2670bf=a2_0x3bc517,_0x33b9a0=new ChatCommand(),_0x578076=program['opts'](),_0x59381d=await createTDXInstance(_0x578076),_0x1ed2d5=await _0x33b9a0[_0x2670bf(0x173)]({'options':{..._0x578076,..._0x21a559},'args':_0x941e0f,'tdx':_0x59381d});gracefulExit(_0x1ed2d5);});const apiCmd=program[a2_0x3bc517(0x19a)]('api\x20[endpoint]')[a2_0x3bc517(0x155)](a2_0x3bc517(0x312))[a2_0x3bc517(0x250)](a2_0x3bc517(0x285),a2_0x3bc517(0x1ed))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2ca),a2_0x3bc517(0x1e3),a2_0x3bc517(0x34b))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2e3),a2_0x3bc517(0x2a0))[a2_0x3bc517(0x1da)]('-f,\x20--file\x20<path>','Read\x20request\x20body\x20from\x20file')[a2_0x3bc517(0x1da)]('-H,\x20--header\x20<header>',a2_0x3bc517(0x298),(_0x546deb,_0x17efbc)=>{return _0x17efbc?[..._0x17efbc,_0x546deb]:[_0x546deb];})['option'](a2_0x3bc517(0x101),a2_0x3bc517(0x185),'td')['action'](async(_0x537e8a,_0x2ef8e4)=>{const _0x2d25c7=a2_0x3bc517;if(!_0x537e8a){apiCmd['help']();return;}const _0x2f3a56=new ApiCommand(),_0x3d228d=program['opts'](),_0x333ba9=await createTDXInstance(_0x3d228d),_0x3ca9a4=await _0x2f3a56[_0x2d25c7(0x173)]({'options':{..._0x3d228d,..._0x2ef8e4},'args':[_0x537e8a],'tdx':_0x333ba9});gracefulExit(_0x3ca9a4);});program[a2_0x3bc517(0x19a)]('mcp')[a2_0x3bc517(0x33b)]('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')[a2_0x3bc517(0x250)](a2_0x3bc517(0x285),a2_0x3bc517(0x344))[a2_0x3bc517(0x24f)](async _0x5c7203=>{const _0x3d5a14=a2_0x3bc517,_0x543b9c=new MCPCommand(),_0x474b50=program[_0x3d5a14(0x1bd)](),_0x54f55c=await createTDXInstance(_0x474b50),_0x4310fb=await _0x543b9c[_0x3d5a14(0x173)]({'options':{..._0x474b50,..._0x5c7203},'args':[],'tdx':_0x54f55c});gracefulExit(_0x4310fb);});const tableCmd=program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x193))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1f6)),tableListAction=async(_0x58c1c8,_0x5082f3)=>{const _0x4b496c=a2_0x3bc517,_0x931cf=new TablesCommand(),_0x56ba64=program[_0x4b496c(0x1bd)](),_0x4735ee=await createTDXInstance(_0x56ba64);_0x5082f3['in']&&(_0x5082f3['database']=_0x5082f3['in']);const _0x123e84=await _0x931cf[_0x4b496c(0x173)]({'options':{..._0x56ba64,..._0x5082f3},'args':_0x58c1c8?[_0x58c1c8]:[],'tdx':_0x4735ee});gracefulExit(_0x123e84);};tableCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2ed))[a2_0x3bc517(0x33b)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1b6),a2_0x3bc517(0x23a))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x215),a2_0x3bc517(0x13d))[a2_0x3bc517(0x24f)](tableListAction),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x17b),{'hidden':!![]})[a2_0x3bc517(0x33b)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x3bc517(0x1da)]('-d,\x20--database\x20<database>',a2_0x3bc517(0x23a))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x215),a2_0x3bc517(0x13d))[a2_0x3bc517(0x24f)](tableListAction),program[a2_0x3bc517(0x19a)]('show\x20[table]')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x17d))[a2_0x3bc517(0x1da)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x215),a2_0x3bc517(0x13d))[a2_0x3bc517(0x24f)](async(_0x3493dd,_0x3ec094)=>{const _0x13bcb8=a2_0x3bc517,_0x30e274=new ShowCommand(),_0x640571=program['opts'](),_0x486954=await createTDXInstance(_0x640571);_0x3ec094['in']&&(_0x3ec094[_0x13bcb8(0x18a)]=_0x3ec094['in']);const _0x499f73=await _0x30e274[_0x13bcb8(0x173)]({'options':{..._0x640571,..._0x3ec094},'args':_0x3493dd?[_0x3493dd]:[],'tdx':_0x486954});gracefulExit(_0x499f73);}),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x31f))[a2_0x3bc517(0x2e2)](a2_0x3bc517(0x2a9))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1d3))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1b6),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x215),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3bc517(0x24f)](async(_0x1a7bfe,_0x20f246)=>{const _0x1c6b9f=a2_0x3bc517,_0x8828b7=new DescribeCommand(),_0xe2fb13=program[_0x1c6b9f(0x1bd)](),_0x584970=await createTDXInstance(_0xe2fb13);_0x20f246['in']&&(_0x20f246['database']=_0x20f246['in']);const _0x4842e3=await _0x8828b7[_0x1c6b9f(0x173)]({'options':{..._0xe2fb13,..._0x20f246},'args':_0x1a7bfe?[_0x1a7bfe]:[],'tdx':_0x584970});gracefulExit(_0x4842e3);}),program['command'](a2_0x3bc517(0x319))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2e0))['option'](a2_0x3bc517(0x1b6),a2_0x3bc517(0x186))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x215),a2_0x3bc517(0x13d))['option'](a2_0x3bc517(0x202),a2_0x3bc517(0x1e8))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x232),'Read\x20SQL\x20query\x20from\x20file')[a2_0x3bc517(0x1da)]('--limit\x20<rows>',a2_0x3bc517(0x114),'40')[a2_0x3bc517(0x24f)](async(_0x72d328,_0x33070d)=>{const _0x5e78ef=a2_0x3bc517,_0x4a67ca=new QueryCommand(),_0x2bbbb7=program[_0x5e78ef(0x1bd)](),_0x472036=await createTDXInstance(_0x2bbbb7);_0x33070d['in']&&(_0x33070d[_0x5e78ef(0x18a)]=_0x33070d['in']);const _0x1b8176=await _0x4a67ca['run']({'options':{..._0x2bbbb7,..._0x33070d},'args':_0x72d328?[_0x72d328]:[],'tdx':_0x472036});gracefulExit(_0x1b8176);});const segmentCmd=program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x288))[a2_0x3bc517(0x2e2)]('sg')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x341)),segmentListAction=async(_0x5d3dad,_0x48a526)=>{const _0xa629a6=a2_0x3bc517,_0x1549d4=new SegmentsCommand(),_0x56ecaa=program[_0xa629a6(0x1bd)](),_0x1f4a3b=await createTDXInstance(_0x56ecaa),_0x98091c=await _0x1549d4['run']({'options':{..._0x56ecaa,..._0x48a526},'args':_0x5d3dad?[_0x5d3dad]:[],'tdx':_0x1f4a3b});gracefulExit(_0x98091c);};segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x139))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x103))['option']('-r,\x20--recursive','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x18c),a2_0x3bc517(0x12b),'10')[a2_0x3bc517(0x24f)](segmentListAction),program['command'](a2_0x3bc517(0x20f),{'hidden':!![]})[a2_0x3bc517(0x33b)](a2_0x3bc517(0x234))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1d2),a2_0x3bc517(0x266))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x18c),a2_0x3bc517(0x12b),'10')[a2_0x3bc517(0x24f)](segmentListAction),segmentCmd['command'](a2_0x3bc517(0x2d2),{'hidden':!![]})[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1de))[a2_0x3bc517(0x24f)](async(_0x58f9e2,_0x42f0c7)=>{const _0x3a34b3=a2_0x3bc517,_0x3f66fa=new SegmentUseCommand(),_0x147b45=program['opts'](),_0x40b9bf=await createTDXInstance(_0x147b45),_0x492cf1=await _0x3f66fa[_0x3a34b3(0x173)]({'options':{..._0x147b45,..._0x42f0c7},'args':[_0x58f9e2],'tdx':_0x40b9bf});gracefulExit(_0x492cf1);});const segmentViewAction=async(_0x27e11e,_0x5d942b)=>{const _0x4a2e42=a2_0x3bc517,_0x50a593=new SegmentViewCommand(),_0x382468=program[_0x4a2e42(0x1bd)](),_0x133bed=await createTDXInstance(_0x382468),_0x172892=await _0x50a593['run']({'options':{..._0x382468,..._0x5d942b},'args':_0x27e11e?[_0x27e11e]:[],'tdx':_0x133bed});gracefulExit(_0x172892);};segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x19f))['description']('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')['option'](a2_0x3bc517(0x23c),a2_0x3bc517(0x2cb))['action'](segmentViewAction),segmentCmd[a2_0x3bc517(0x19a)]('info\x20[segment_name]',{'hidden':!![]})[a2_0x3bc517(0x2e2)](a2_0x3bc517(0x227))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x23c),a2_0x3bc517(0x2cb))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x233))[a2_0x3bc517(0x24f)](segmentViewAction),segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2e4))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x347))[a2_0x3bc517(0x24f)](async(_0x40eae1,_0x5d3a35)=>{const _0x3132ed=a2_0x3bc517,_0x29716a=new SegmentDescCommand(),_0x58e4fb=program[_0x3132ed(0x1bd)](),_0x2aaf3c=await createTDXInstance(_0x58e4fb),_0x30874f=await _0x29716a[_0x3132ed(0x173)]({'options':{..._0x58e4fb,..._0x5d3a35},'args':_0x40eae1?[_0x40eae1]:[],'tdx':_0x2aaf3c});gracefulExit(_0x30874f);}),segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x14d))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x18d))[a2_0x3bc517(0x24f)](async(_0x56525e,_0x129e7e)=>{const _0x1b7de1=a2_0x3bc517,_0x5d2442=new SegmentShowCommand(),_0x6cd627=program[_0x1b7de1(0x1bd)](),_0x1c3289=await createTDXInstance(_0x6cd627),_0x5cc85a=await _0x5d2442[_0x1b7de1(0x173)]({'options':{..._0x6cd627,..._0x129e7e},'args':_0x56525e?[_0x56525e]:[],'tdx':_0x1c3289});gracefulExit(_0x5cc85a);}),segmentCmd['command'](a2_0x3bc517(0x1dd),{'hidden':!![]})[a2_0x3bc517(0x33b)](a2_0x3bc517(0x208))['action'](async(_0x44dcb8,_0x341e4b)=>{const _0x5dc66a=a2_0x3bc517,_0x5960b5=new SegmentFolderListCommand(),_0x48505e=program[_0x5dc66a(0x1bd)](),_0x396bc2=await createTDXInstance(_0x48505e),_0x1eaab1=await _0x5960b5[_0x5dc66a(0x173)]({'options':{..._0x48505e,..._0x341e4b},'args':[_0x44dcb8],'tdx':_0x396bc2});gracefulExit(_0x1eaab1);});const folderCmd=segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x18f),{'hidden':!![]})[a2_0x3bc517(0x33b)](a2_0x3bc517(0x295));folderCmd[a2_0x3bc517(0x19a)]('show\x20<folder_ref>')['description']('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x3bc517(0x24f)](async(_0x4b5a0d,_0x206922)=>{const _0x488afe=a2_0x3bc517,_0x299153=new SegmentFolderShowCommand(),_0x3e29a9=program[_0x488afe(0x1bd)](),_0x1b2176=await createTDXInstance(_0x3e29a9),_0x36a691=await _0x299153[_0x488afe(0x173)]({'options':{..._0x3e29a9,..._0x206922},'args':[_0x4b5a0d],'tdx':_0x1b2176});gracefulExit(_0x36a691);}),segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1b7))['description'](a2_0x3bc517(0x338))[a2_0x3bc517(0x24f)](async(_0x3c4297,_0x195056)=>{const _0x5a3df6=a2_0x3bc517,_0x3d0324=new SegmentSQLCommand(),_0x449b8c=program[_0x5a3df6(0x1bd)](),_0x4a91e6=await createTDXInstance(_0x449b8c),_0x3e8a87=await _0x3d0324[_0x5a3df6(0x173)]({'options':{..._0x449b8c,..._0x195056},'args':_0x3c4297?[_0x3c4297]:[],'tdx':_0x4a91e6});gracefulExit(_0x3e8a87);}),segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x132))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1b9))[a2_0x3bc517(0x24f)](async(_0x101ff0,_0x547716)=>{const _0x4eeddf=a2_0x3bc517,_0x5a398a=new SegmentFieldsCommand(),_0x50ba04=program[_0x4eeddf(0x1bd)](),_0x357ec9=await createTDXInstance(_0x50ba04),_0xfffdb5=await _0x5a398a[_0x4eeddf(0x173)]({'options':{..._0x50ba04,..._0x547716},'args':_0x101ff0?[_0x101ff0]:[],'tdx':_0x357ec9});gracefulExit(_0xfffdb5);}),segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x238))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1ac))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x21a),a2_0x3bc517(0x179))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x124),a2_0x3bc517(0x2b8))[a2_0x3bc517(0x24f)](async(_0x43d5f7,_0xc7f170)=>{const _0x35b30a=a2_0x3bc517,_0x6ceb63=new SegmentPullCommand(),_0x279d70=program['opts'](),_0x2bbda6=await createTDXInstance(_0x279d70),_0x1ff261=await _0x6ceb63[_0x35b30a(0x173)]({'options':{..._0x279d70,..._0xc7f170},'args':_0x43d5f7?[_0x43d5f7]:[],'tdx':_0x2bbda6});gracefulExit(_0x1ff261);}),segmentCmd[a2_0x3bc517(0x19a)]('push\x20[parent_or_file]')[a2_0x3bc517(0x33b)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x21a),a2_0x3bc517(0x179))['option'](a2_0x3bc517(0x124),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2d8),a2_0x3bc517(0x1a4))[a2_0x3bc517(0x24f)](async(_0x229e63,_0x48b3a0)=>{const _0x2aba67=a2_0x3bc517,_0x1a2f14=new SegmentPushCommand(),_0x3c0581=program[_0x2aba67(0x1bd)](),_0x317395=await createTDXInstance(_0x3c0581),_0x123081=await _0x1a2f14[_0x2aba67(0x173)]({'options':{..._0x3c0581,..._0x48b3a0},'args':_0x229e63?[_0x229e63]:[],'tdx':_0x317395});gracefulExit(_0x123081);}),segmentCmd['command']('validate\x20[target]')['description']('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x1ecf4a,_0x1ce6dc)=>{const _0x39ae2d=a2_0x3bc517,_0x481dbf=new SegmentValidateCommand(),_0x4b9e3=program['opts'](),_0x4120c7=await createTDXInstance(_0x4b9e3),_0x3f3d=await _0x481dbf[_0x39ae2d(0x173)]({'options':{..._0x4b9e3,..._0x1ce6dc},'args':_0x1ecf4a?[_0x1ecf4a]:[],'tdx':_0x4120c7});gracefulExit(_0x3f3d);}),segmentCmd['command'](a2_0x3bc517(0x168),{'hidden':!![]})[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2c7))[a2_0x3bc517(0x1da)]('--description\x20<text>','Segment\x20description')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x12a),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x32e),'Filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x3bc517(0x10b),a2_0x3bc517(0x261))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2ee),a2_0x3bc517(0x25f))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x127),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x3bc517(0x1da)]('--no-count-population',a2_0x3bc517(0x28f))[a2_0x3bc517(0x24f)](async(_0x2c8bde,_0x36ebae)=>{const _0x24bf55=a2_0x3bc517,_0x453cbd=new SegmentCreateCommand(),_0x378afd=program[_0x24bf55(0x1bd)](),_0x422566=await createTDXInstance(_0x378afd),_0x29b8e0=await _0x453cbd[_0x24bf55(0x173)]({'options':{..._0x378afd,..._0x36ebae},'args':[_0x2c8bde],'tdx':_0x422566});gracefulExit(_0x29b8e0);}),segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x204),{'hidden':!![]})['description'](a2_0x3bc517(0x331))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2ab),a2_0x3bc517(0x2ef))['option']('--description\x20<text>',a2_0x3bc517(0x275))[a2_0x3bc517(0x1da)]('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x32e),a2_0x3bc517(0x102))[a2_0x3bc517(0x1da)]('--folder\x20<name>','Move\x20to\x20folder')['option'](a2_0x3bc517(0x2ee),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x3bc517(0x24f)](async(_0x5c76db,_0x2e7a8d)=>{const _0x252d80=a2_0x3bc517,_0x4f9bc9=new SegmentUpdateCommand(),_0x44fd53=program[_0x252d80(0x1bd)](),_0x5ec117=await createTDXInstance(_0x44fd53),_0x59b173=await _0x4f9bc9['run']({'options':{..._0x44fd53,..._0x2e7a8d},'args':[_0x5c76db],'tdx':_0x5ec117});gracefulExit(_0x59b173);});const parentCmd=segmentCmd['command']('parent',{'hidden':!![]})['description'](a2_0x3bc517(0x1f5)),parentListAction=async(_0x4d2c83,_0xde2786)=>{const _0xbbc3ef=a2_0x3bc517,_0x450b5f=new ParentSegmentListCommand(),_0x57e274=program[_0xbbc3ef(0x1bd)](),_0x305286=await createTDXInstance(_0x57e274),_0x1d54e5=await _0x450b5f['run']({'options':{..._0x57e274,..._0xde2786},'args':_0x4d2c83?[_0x4d2c83]:[],'tdx':_0x305286});gracefulExit(_0x1d54e5);};parentCmd[a2_0x3bc517(0x19a)]('list\x20[pattern]')[a2_0x3bc517(0x33b)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x3bc517(0x24f)](parentListAction),segmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x10f),{'hidden':!![]})[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2a5))[a2_0x3bc517(0x24f)](parentListAction),parentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x189))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x323))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x184),a2_0x3bc517(0x1ab))['option'](a2_0x3bc517(0x21a),a2_0x3bc517(0x2ec))[a2_0x3bc517(0x24f)](async(_0x2df724,_0x1042cc)=>{const _0x1062c0=a2_0x3bc517,_0x157830=new ParentSegmentPullCommand(),_0x2b7466=program[_0x1062c0(0x1bd)](),_0xe98798=await createTDXInstance(_0x2b7466),_0x1f423f=await _0x157830[_0x1062c0(0x173)]({'options':{..._0x2b7466,..._0x1042cc},'args':_0x2df724?[_0x2df724]:[],'tdx':_0xe98798});gracefulExit(_0x1f423f);}),parentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1e5))['description'](a2_0x3bc517(0x2a1))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x21a),a2_0x3bc517(0x2ec))['action'](async(_0x761e6,_0x59ac09)=>{const _0x290f0d=a2_0x3bc517,_0x5886d8=new ParentSegmentPushCommand(),_0x1134a2=program[_0x290f0d(0x1bd)](),_0x327bcd=await createTDXInstance(_0x1134a2),_0x54bd30=await _0x5886d8[_0x290f0d(0x173)]({'options':{..._0x1134a2,..._0x59ac09},'args':_0x761e6?[_0x761e6]:[],'tdx':_0x327bcd});gracefulExit(_0x54bd30);}),parentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x125))[a2_0x3bc517(0x33b)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x131),a2_0x3bc517(0x163))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x242),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1c3),a2_0x3bc517(0x133))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x251),a2_0x3bc517(0x31b))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x201),a2_0x3bc517(0x14f),'-1d')[a2_0x3bc517(0x24f)](async(_0x1822d4,_0x5f2cb6)=>{const _0x3a1ffe=a2_0x3bc517,_0x53f7e7=new ParentSegmentValidateCommand(),_0x3e80fb=program[_0x3a1ffe(0x1bd)](),_0x451ccb=await createTDXInstance(_0x3e80fb),_0x133f4e=await _0x53f7e7[_0x3a1ffe(0x173)]({'options':{..._0x3e80fb,..._0x5f2cb6},'args':_0x1822d4?[_0x1822d4]:[],'tdx':_0x451ccb});gracefulExit(_0x133f4e);}),parentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x20c))['description'](a2_0x3bc517(0x32a))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x131),a2_0x3bc517(0x271))['option']('--attribute\x20[name]',a2_0x3bc517(0x2b3))['option'](a2_0x3bc517(0x1c3),a2_0x3bc517(0x34a))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x251),a2_0x3bc517(0x301))['option'](a2_0x3bc517(0x201),a2_0x3bc517(0x14f),a2_0x3bc517(0x32d))[a2_0x3bc517(0x24f)](async(_0x4ee503,_0x4e6540)=>{const _0x4ba3e5=a2_0x3bc517,_0x2580d9=new ParentSegmentPreviewCommand(),_0x44791a=program['opts'](),_0x3098d9=await createTDXInstance(_0x44791a),_0x5a2ec1=await _0x2580d9[_0x4ba3e5(0x173)]({'options':{..._0x44791a,..._0x4e6540},'args':_0x4ee503?[_0x4ee503]:[],'tdx':_0x3098d9});gracefulExit(_0x5a2ec1);}),parentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x183))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x116))['option'](a2_0x3bc517(0x21a),a2_0x3bc517(0x2ec))[a2_0x3bc517(0x24f)](async(_0x4b94d0,_0x2432cd)=>{const _0x419334=a2_0x3bc517,_0xa56af7=new ParentSegmentRunCommand(),_0x4c2d03=program[_0x419334(0x1bd)](),_0x4cd2d5=await createTDXInstance(_0x4c2d03),_0x54c4b5=await _0xa56af7[_0x419334(0x173)]({'options':{..._0x4c2d03,..._0x2432cd},'args':_0x4b94d0?[_0x4b94d0]:[],'tdx':_0x4cd2d5});gracefulExit(_0x54c4b5);});const parentSegmentCmd=program['command']('parent-segment')['alias']('ps')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x354));parentSegmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2ed))['description'](a2_0x3bc517(0x194))['action'](parentListAction),parentSegmentCmd['command'](a2_0x3bc517(0x189))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1cd))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x184),a2_0x3bc517(0x30a))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x21a),'Skip\x20confirmation\x20prompt')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x112),a2_0x3bc517(0x21d))[a2_0x3bc517(0x24f)](async(_0x4cac2c,_0xd8791f)=>{const _0x4a8d0c=a2_0x3bc517,_0x522ba7=new ParentSegmentPullCommand(),_0x41a694=program[_0x4a8d0c(0x1bd)](),_0x10a389=await createTDXInstance(_0x41a694),_0x43abc=await _0x522ba7['run']({'options':{..._0x41a694,..._0xd8791f},'args':_0x4cac2c?[_0x4cac2c]:[],'tdx':_0x10a389});gracefulExit(_0x43abc);}),parentSegmentCmd[a2_0x3bc517(0x19a)]('push\x20[name]')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x228))['option'](a2_0x3bc517(0x21a),a2_0x3bc517(0x2ec))[a2_0x3bc517(0x24f)](async(_0x578cb2,_0x41ff0b)=>{const _0x3c9150=a2_0x3bc517,_0x3c9392=new ParentSegmentPushCommand(),_0x1f3417=program[_0x3c9150(0x1bd)](),_0x1b1aed=await createTDXInstance(_0x1f3417),_0x57de8f=await _0x3c9392[_0x3c9150(0x173)]({'options':{..._0x1f3417,..._0x41ff0b},'args':_0x578cb2?[_0x578cb2]:[],'tdx':_0x1b1aed});gracefulExit(_0x57de8f);}),parentSegmentCmd[a2_0x3bc517(0x19a)]('validate\x20[name]')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x28b))[a2_0x3bc517(0x1da)]('--master',a2_0x3bc517(0x163))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x242),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1c3),a2_0x3bc517(0x133))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x251),a2_0x3bc517(0x31b))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x201),a2_0x3bc517(0x14f),'-1d')['action'](async(_0x55a910,_0x4cdfd5)=>{const _0x4dcb45=a2_0x3bc517,_0x392b57=new ParentSegmentValidateCommand(),_0x4ccc01=program[_0x4dcb45(0x1bd)](),_0x1ffdd=await createTDXInstance(_0x4ccc01),_0x1cbc9f=await _0x392b57['run']({'options':{..._0x4ccc01,..._0x4cdfd5},'args':_0x55a910?[_0x55a910]:[],'tdx':_0x1ffdd});gracefulExit(_0x1cbc9f);}),parentSegmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1d9))[a2_0x3bc517(0x33b)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option'](a2_0x3bc517(0x131),a2_0x3bc517(0x271))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x242),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1c3),a2_0x3bc517(0x34a))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x251),a2_0x3bc517(0x301))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x201),a2_0x3bc517(0x14f),'-1d')[a2_0x3bc517(0x24f)](async(_0x1df3bf,_0x445c1b)=>{const _0x3d64e8=a2_0x3bc517,_0xb31b59=new ParentSegmentPreviewCommand(),_0x2620f9=program[_0x3d64e8(0x1bd)](),_0x443da9=await createTDXInstance(_0x2620f9),_0x59466e=await _0xb31b59['run']({'options':{..._0x2620f9,..._0x445c1b},'args':_0x1df3bf?[_0x1df3bf]:[],'tdx':_0x443da9});gracefulExit(_0x59466e);}),parentSegmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x183))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x116))[a2_0x3bc517(0x1da)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x3bc517(0x24f)](async(_0x4fe19e,_0x4137f3)=>{const _0x5d339c=a2_0x3bc517,_0x5916ca=new ParentSegmentRunCommand(),_0x4d6a79=program['opts'](),_0x17d812=await createTDXInstance(_0x4d6a79),_0x140850=await _0x5916ca[_0x5d339c(0x173)]({'options':{..._0x4d6a79,..._0x4137f3},'args':_0x4fe19e?[_0x4fe19e]:[],'tdx':_0x17d812});gracefulExit(_0x140850);}),parentSegmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2bd))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1f8))[a2_0x3bc517(0x1da)]('--json',a2_0x3bc517(0x2aa))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x27c),a2_0x3bc517(0x1bc))[a2_0x3bc517(0x24f)](async(_0x147d0c,_0x429c23)=>{const _0x37a1d0=a2_0x3bc517,_0x5bb2f6=new ParentSegmentFieldsCommand(),_0x5929f7=program[_0x37a1d0(0x1bd)](),_0x47356a=await createTDXInstance(_0x5929f7),_0x21fca4=await _0x5bb2f6['run']({'options':{..._0x5929f7,..._0x429c23},'args':_0x147d0c?[_0x147d0c]:[],'tdx':_0x47356a});gracefulExit(_0x21fca4);}),parentSegmentCmd['command'](a2_0x3bc517(0x281))['description'](a2_0x3bc517(0x175))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x23c),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2d0),a2_0x3bc517(0x2aa))['option'](a2_0x3bc517(0x27c),a2_0x3bc517(0x1bc))[a2_0x3bc517(0x24f)](async(_0x53c842,_0x4321e7)=>{const _0x10ed1d=a2_0x3bc517,_0x557df4=new ParentSegmentViewCommand(),_0xb2c503=program[_0x10ed1d(0x1bd)](),_0x3de230=await createTDXInstance(_0xb2c503),_0xd44ea2=await _0x557df4[_0x10ed1d(0x173)]({'options':{..._0xb2c503,..._0x4321e7},'args':_0x53c842?[_0x53c842]:[],'tdx':_0x3de230});gracefulExit(_0xd44ea2);}),parentSegmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x240))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2d0),'Output\x20as\x20JSON')['option'](a2_0x3bc517(0x27c),a2_0x3bc517(0x1bc))[a2_0x3bc517(0x24f)](async(_0x2b9cab,_0x104614)=>{const _0x11d1ca=a2_0x3bc517,_0x3f3b45=new ParentSegmentDescCommand(),_0x5f16b6=program['opts'](),_0x3b2ca9=await createTDXInstance(_0x5f16b6),_0x3cd9e8=await _0x3f3b45[_0x11d1ca(0x173)]({'options':{..._0x5f16b6,..._0x104614},'args':_0x2b9cab?[_0x2b9cab]:[],'tdx':_0x3b2ca9});gracefulExit(_0x3cd9e8);}),parentSegmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x330))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x28a))['option'](a2_0x3bc517(0x2d0),a2_0x3bc517(0x2aa))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x27c),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x3cdf05,_0x1de683)=>{const _0x4d9622=a2_0x3bc517,_0x10b81f=new ParentSegmentSQLCommand(),_0x514ba3=program[_0x4d9622(0x1bd)](),_0x4aec98=await createTDXInstance(_0x514ba3),_0x55ea9a=await _0x10b81f[_0x4d9622(0x173)]({'options':{..._0x514ba3,..._0x1de683},'args':_0x3cdf05?[_0x3cdf05]:[],'tdx':_0x4aec98});gracefulExit(_0x55ea9a);}),parentSegmentCmd[a2_0x3bc517(0x19a)]('show\x20[name]')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x25a))[a2_0x3bc517(0x1da)]('--limit\x20<n>',a2_0x3bc517(0x29e))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2d0),a2_0x3bc517(0x2aa))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x27c),a2_0x3bc517(0x1bc))[a2_0x3bc517(0x24f)](async(_0x3e26d8,_0x459e7d)=>{const _0x47bbcf=a2_0x3bc517,_0x5e0436=new ParentSegmentShowCommand(),_0x5147ae=program[_0x47bbcf(0x1bd)](),_0xd7d792=await createTDXInstance(_0x5147ae),_0x382e79=await _0x5e0436[_0x47bbcf(0x173)]({'options':{..._0x5147ae,..._0x459e7d},'args':_0x3e26d8?[_0x3e26d8]:[],'tdx':_0xd7d792});gracefulExit(_0x382e79);}),parentSegmentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1c6))['description']('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x3bc517(0x24f)](async(_0x57e29e,_0xc4d3d)=>{const _0x49449b=a2_0x3bc517,_0x422f69=new UseCommand(),_0x240369=program[_0x49449b(0x1bd)](),_0x7dab17=_0x57e29e?['parent_segment',_0x57e29e]:[],_0x22780b=await _0x422f69[_0x49449b(0x173)]({'options':{..._0x240369,..._0xc4d3d},'args':_0x7dab17,'tdx':null});gracefulExit(_0x22780b);}),parentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x213))[a2_0x3bc517(0x33b)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3bc517(0x1b5)](a2_0x3bc517(0x1b4),a2_0x3bc517(0x2bc))['requiredOption']('--table\x20<table>',a2_0x3bc517(0x1d5))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2c2),a2_0x3bc517(0x14e))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x188),a2_0x3bc517(0x1f9))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x203),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')['option'](a2_0x3bc517(0x2a4),a2_0x3bc517(0x346))[a2_0x3bc517(0x1da)]('--attributes\x20<json>',a2_0x3bc517(0x1a9))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x20a),a2_0x3bc517(0x2f9))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x247),a2_0x3bc517(0x276))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1f3),a2_0x3bc517(0x111))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x195),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x166),a2_0x3bc517(0x255))[a2_0x3bc517(0x24f)](async(_0x46cb3f,_0x479b4e)=>{const _0x5d0121=new ParentSegmentCreateCommand(),_0xe89df1=program['opts'](),_0x5cbcd5=await createTDXInstance(_0xe89df1),_0x4c1cc6=await _0x5d0121['run']({'options':{..._0xe89df1,..._0x479b4e},'args':[_0x46cb3f],'tdx':_0x5cbcd5});gracefulExit(_0x4c1cc6);}),parentCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1cf))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x159))[a2_0x3bc517(0x1da)]('--description\x20<text>',a2_0x3bc517(0x275))['option'](a2_0x3bc517(0x188),a2_0x3bc517(0x241))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x203),a2_0x3bc517(0x182))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2a4),a2_0x3bc517(0x22a))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x297),a2_0x3bc517(0x321))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x13a),a2_0x3bc517(0x1a6))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x170),a2_0x3bc517(0x20e))[a2_0x3bc517(0x1da)]('--add-behaviors-file\x20<file>','Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x3bc517(0x24f)](async(_0x51e2df,_0xd46498)=>{const _0x1ea96e=a2_0x3bc517,_0xfcb85=new ParentSegmentUpdateCommand(),_0x4c267=program[_0x1ea96e(0x1bd)](),_0x520a91=await createTDXInstance(_0x4c267),_0x14d375=await _0xfcb85[_0x1ea96e(0x173)]({'options':{..._0x4c267,..._0xd46498},'args':[_0x51e2df],'tdx':_0x520a91});gracefulExit(_0x14d375);}),folderCmd[a2_0x3bc517(0x19a)]('create\x20<parent_name>\x20<folder_name>')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2da))[a2_0x3bc517(0x1da)]('--description\x20<text>','Folder\x20description')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x315),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0x24a487,_0x5c14f3,_0x265ed8)=>{const _0x565254=a2_0x3bc517,_0x5356dc=new SegmentFolderCreateCommand(),_0x5b373a=program[_0x565254(0x1bd)](),_0x5be0c3=await createTDXInstance(_0x5b373a),_0x3727db=await _0x5356dc[_0x565254(0x173)]({'options':{..._0x5b373a,..._0x265ed8},'args':[_0x24a487,_0x5c14f3],'tdx':_0x5be0c3});gracefulExit(_0x3727db);}),program['command']('activations\x20<segment_name>')[a2_0x3bc517(0x33b)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')['action'](async(_0x46b6f7,_0x16d756)=>{const _0xaa50e4=a2_0x3bc517,_0x30d0bb=new ActivationsCommand(),_0x2c8d00=program[_0xaa50e4(0x1bd)](),_0x5a3d14=await createTDXInstance(_0x2c8d00),_0x3286d0=await _0x30d0bb[_0xaa50e4(0x173)]({'options':{..._0x2c8d00,..._0x16d756},'args':[_0x46b6f7],'tdx':_0x5a3d14});gracefulExit(_0x3286d0);});const workflowCmd=program['command']('workflow')[a2_0x3bc517(0x2e2)]('wf')[a2_0x3bc517(0x33b)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2c6))['description'](a2_0x3bc517(0x220)),wfProjectListAction=async(_0x51125c,_0x2a58fb)=>{const _0x17a070=a2_0x3bc517,_0x48def6=new WorkflowProjectsCommand(),_0xae5b46=program['opts'](),_0xb51dda=await createTDXInstance(_0xae5b46),_0x2561e7=await _0x48def6[_0x17a070(0x173)]({'options':{..._0xae5b46,..._0x2a58fb},'args':_0x51125c?[_0x51125c]:[],'tdx':_0xb51dda});gracefulExit(_0x2561e7);};wfProjectCmd['command'](a2_0x3bc517(0x2ed))[a2_0x3bc517(0x33b)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3bc517(0x24f)](wfProjectListAction),workflowCmd['command'](a2_0x3bc517(0x29c))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1ec))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x1859f5,_0x5e4a3e)=>{const _0x39a137=a2_0x3bc517,_0x52049b=new WorkflowWorkflowsCommand(),_0x220e20=program[_0x39a137(0x1bd)](),_0x134d1e=await createTDXInstance(_0x220e20),_0x3fd2ba=await _0x52049b[_0x39a137(0x173)]({'options':{..._0x220e20,..._0x5e4a3e},'args':_0x1859f5?[_0x1859f5]:[],'tdx':_0x134d1e});gracefulExit(_0x3fd2ba);};workflowCmd['command'](a2_0x3bc517(0x339))['description']('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x3bc517(0x24f)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command']('session')['description'](a2_0x3bc517(0x2df)),wfSessionListAction=async(_0x4bb8d3,_0x4b85d5)=>{const _0x2c4325=a2_0x3bc517,_0x3a0b0e=new WorkflowSessionsCommand(),_0x3a5cdc=program['opts'](),_0x54780e=await createTDXInstance(_0x3a5cdc),_0x3b32de=await _0x3a0b0e[_0x2c4325(0x173)]({'options':{..._0x3a5cdc,..._0x4b85d5},'args':_0x4bb8d3?[_0x4bb8d3]:[],'tdx':_0x54780e});gracefulExit(_0x3b32de);};wfSessionCmd[a2_0x3bc517(0x19a)]('list\x20[project]')[a2_0x3bc517(0x33b)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')['option'](a2_0x3bc517(0x1a1),a2_0x3bc517(0x136))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1df),a2_0x3bc517(0x140))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x12f),a2_0x3bc517(0x29d))['action'](wfSessionListAction),workflowCmd['command'](a2_0x3bc517(0x1f0))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x34c))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1a1),a2_0x3bc517(0x136))['option'](a2_0x3bc517(0x1df),a2_0x3bc517(0x140))[a2_0x3bc517(0x1da)]('--to\x20<timestamp>',a2_0x3bc517(0x29d))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x1fc407,_0x1767d8)=>{const _0x28d041=a2_0x3bc517,_0xb43643=new WorkflowAttemptsCommand(),_0x119b53=program[_0x28d041(0x1bd)](),_0x11a44a=await createTDXInstance(_0x119b53),_0x267900=await _0xb43643[_0x28d041(0x173)]({'options':{..._0x119b53,..._0x1767d8},'args':_0x1fc407?[_0x1fc407]:[],'tdx':_0x11a44a});gracefulExit(_0x267900);},attemptCmd=workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x24e))['description']('Workflow\x20attempt\x20management')[a2_0x3bc517(0x337)](a2_0x3bc517(0x12d),'Attempt\x20ID')['argument'](a2_0x3bc517(0x2ad),a2_0x3bc517(0x2bb))['argument']('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x3bc517(0x1da)]('--include-subtasks',a2_0x3bc517(0x123))[a2_0x3bc517(0x1da)]('--reason\x20<text>',a2_0x3bc517(0x19b))['option'](a2_0x3bc517(0x15e),a2_0x3bc517(0x199))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x31e),a2_0x3bc517(0x34f))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x151),a2_0x3bc517(0x1e0))['option'](a2_0x3bc517(0x2ce),a2_0x3bc517(0x308))[a2_0x3bc517(0x24f)](async(_0x1e0edd,_0x716f9c,_0x34fb79,_0x589e3d)=>{const _0x24003f=a2_0x3bc517;if(_0x1e0edd===_0x24003f(0x15c)){await wfAttemptListAction(_0x716f9c,_0x589e3d);return;}if(!_0x1e0edd){attemptCmd[_0x24003f(0x2b6)]();return;}const _0x44317e=program[_0x24003f(0x1bd)](),_0xd89525=await createTDXInstance(_0x44317e);let _0x4b16ac=0x0;if(!_0x716f9c){const _0x5a3c0f=new WorkflowAttemptCommand();_0x4b16ac=await _0x5a3c0f[_0x24003f(0x173)]({'options':{..._0x44317e,..._0x589e3d},'args':[_0x1e0edd],'tdx':_0xd89525});}else{if(_0x716f9c===_0x24003f(0x12c)){const _0x153d48=new WorkflowLogsCommand();_0x4b16ac=await _0x153d48[_0x24003f(0x173)]({'options':{..._0x44317e,..._0x589e3d},'args':_0x34fb79?[_0x1e0edd,_0x34fb79]:[_0x1e0edd],'tdx':_0xd89525});}else{if(_0x716f9c===_0x24003f(0x314)){const _0x4e7594=new WorkflowTasksCommand();_0x4b16ac=await _0x4e7594[_0x24003f(0x173)]({'options':{..._0x44317e,..._0x589e3d},'args':[_0x1e0edd],'tdx':_0xd89525});}else{if(_0x716f9c===_0x24003f(0x2f6)){const _0x55fca2=new WorkflowKillCommand();_0x4b16ac=await _0x55fca2[_0x24003f(0x173)]({'options':{..._0x44317e,..._0x589e3d},'args':[_0x1e0edd],'tdx':_0xd89525});}else{if(_0x716f9c===_0x24003f(0x226)){const _0x2bfba8=new WorkflowRetryCommand();_0x4b16ac=await _0x2bfba8['run']({'options':{..._0x44317e,..._0x589e3d},'args':['attempt:'+_0x1e0edd],'tdx':_0xd89525});}else console[_0x24003f(0x21c)](_0x24003f(0x11a)+_0x716f9c),console[_0x24003f(0x21c)](_0x24003f(0x2de)),_0x4b16ac=0x1;}}}}gracefulExit(_0x4b16ac);});attemptCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x307))[a2_0x3bc517(0x33b)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2ce),a2_0x3bc517(0x2f4))[a2_0x3bc517(0x24f)](wfAttemptListAction),workflowCmd['command']('attempts\x20[project]')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x11d))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2ce),'Include\x20retried\x20attempts')[a2_0x3bc517(0x24f)](wfAttemptListAction),workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x146))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x320))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x157),a2_0x3bc517(0x128))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x13b),a2_0x3bc517(0x2be))[a2_0x3bc517(0x1da)]('--attempt-id\x20<id>','Show\x20timeline\x20for\x20specific\x20attempt')[a2_0x3bc517(0x24f)](async(_0x8dedf6,_0x4595c4)=>{const _0x1472f6=new WorkflowTimelineCommand(),_0x279f75=program['opts'](),_0x32c114=await createTDXInstance(_0x279f75),_0x1a25ed=await _0x1472f6['run']({'options':{..._0x279f75,..._0x4595c4},'args':_0x8dedf6?[_0x8dedf6]:[],'tdx':_0x32c114});gracefulExit(_0x1a25ed);}),workflowCmd['command'](a2_0x3bc517(0x244))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x162))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2f0),a2_0x3bc517(0x118))[a2_0x3bc517(0x1da)]('--params\x20<json>',a2_0x3bc517(0x1c7))[a2_0x3bc517(0x24f)](async(_0xb885e1,_0x1a3b4a)=>{const _0x121e76=new WorkflowRetryCommand(),_0x3d48bd=program['opts'](),_0x131fa9=await createTDXInstance(_0x3d48bd),_0x53eaee=await _0x121e76['run']({'options':{..._0x3d48bd,..._0x1a3b4a},'args':[_0xb885e1],'tdx':_0x131fa9});gracefulExit(_0x53eaee);}),workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x121))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x23d))['option'](a2_0x3bc517(0x291),a2_0x3bc517(0x165),(_0x494fba,_0x2b5a93=[])=>[..._0x2b5a93,_0x494fba],[])['option'](a2_0x3bc517(0x152),a2_0x3bc517(0x273))[a2_0x3bc517(0x24f)](async(_0x19e58a,_0x2d5f29)=>{const _0x3e0721=a2_0x3bc517,_0x2d088a=new WorkflowRunCommand(),_0x2ee07d=program[_0x3e0721(0x1bd)](),_0x356b75=await createTDXInstance(_0x2ee07d),_0x27e98f=await _0x2d088a[_0x3e0721(0x173)]({'options':{..._0x2ee07d,..._0x2d5f29},'args':_0x19e58a?[_0x19e58a]:[],'tdx':_0x356b75});gracefulExit(_0x27e98f);}),workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x267))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2c1))[a2_0x3bc517(0x1da)]('--revision\x20<revision>',a2_0x3bc517(0x2c0))['action'](async(_0xb48ae1,_0x10e1e3,_0x2e9641)=>{const _0x13736b=a2_0x3bc517,_0x5ea795=new WorkflowDownloadCommand(),_0x5d3c2d=program[_0x13736b(0x1bd)](),_0x5cd37e=await createTDXInstance(_0x5d3c2d),_0x4959af=await _0x5ea795[_0x13736b(0x173)]({'options':{..._0x5d3c2d,..._0x2e9641},'args':[_0xb48ae1,_0x10e1e3||'.'],'tdx':_0x5cd37e});gracefulExit(_0x4959af);}),workflowCmd['command'](a2_0x3bc517(0x1c1))[a2_0x3bc517(0x33b)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x3bc517(0x1da)]('--revision\x20<revision>','Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x124),'Preview\x20changes\x20without\x20writing\x20files')[a2_0x3bc517(0x1da)]('-y,\x20--yes',a2_0x3bc517(0x2ec))[a2_0x3bc517(0x24f)](async(_0x23268a,_0x15d0e0,_0x4faf07)=>{const _0x3cc985=a2_0x3bc517,_0xb0b1f1=new WorkflowPullCommand(),_0xd61d27=program['opts'](),_0x24f69b=await createTDXInstance(_0xd61d27),_0x1ffb9f=await _0xb0b1f1[_0x3cc985(0x173)]({'options':{..._0xd61d27,..._0x4faf07},'args':_0x15d0e0?[_0x23268a,_0x15d0e0]:[_0x23268a],'tdx':_0x24f69b});gracefulExit(_0x1ffb9f);}),workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2dc))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1fc))['option'](a2_0x3bc517(0x142),a2_0x3bc517(0x260))[a2_0x3bc517(0x1da)]('--dry-run',a2_0x3bc517(0x246))['option']('--skip-validation',a2_0x3bc517(0x17a))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x21a),'Skip\x20confirmation\x20prompt')[a2_0x3bc517(0x24f)](async(_0x2f83d8,_0x3c7791)=>{const _0x568910=a2_0x3bc517,_0x1770fb=new WorkflowPushCommand(),_0x164f8e=program[_0x568910(0x1bd)](),_0x2504ea=await createTDXInstance(_0x164f8e),_0x4aabb1=await _0x1770fb['run']({'options':{..._0x164f8e,..._0x3c7791},'args':_0x2f83d8?[_0x2f83d8]:[],'tdx':_0x2504ea});gracefulExit(_0x4aabb1);}),workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2d9))['description'](a2_0x3bc517(0x225))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x27e),a2_0x3bc517(0x147))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x142),a2_0x3bc517(0x2f1))['option'](a2_0x3bc517(0x2dd),a2_0x3bc517(0x17a))['action'](async(_0x2ec16b,_0x3f2b4a)=>{const _0x1166c2=a2_0x3bc517,_0x2dffa2=new WorkflowUploadCommand(),_0x2f183a=program['opts'](),_0x1b873d=await createTDXInstance(_0x2f183a),_0xa8fc12=await _0x2dffa2[_0x1166c2(0x173)]({'options':{..._0x2f183a,..._0x3f2b4a},'args':_0x2ec16b?[_0x2ec16b]:[],'tdx':_0x1b873d});gracefulExit(_0xa8fc12);}),workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x26c))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x245))['option']('--name\x20<name>',a2_0x3bc517(0x343))['option'](a2_0x3bc517(0x142),'Custom\x20revision\x20name\x20(default:\x20timestamp)')['option'](a2_0x3bc517(0x124),a2_0x3bc517(0x237))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2dd),a2_0x3bc517(0x17a))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x21a),a2_0x3bc517(0x2ec))['action'](async(_0x1888bd,_0x2669d4)=>{const _0x1eb5f7=a2_0x3bc517,_0x15ef18=new WorkflowCloneCommand(),_0x5d512b=program[_0x1eb5f7(0x1bd)](),_0x36b9bb=await createTDXInstance(_0x5d512b),_0x514b36=await _0x15ef18[_0x1eb5f7(0x173)]({'options':{..._0x5d512b,..._0x2669d4},'args':_0x1888bd?[_0x1888bd]:[],'tdx':_0x36b9bb});gracefulExit(_0x514b36);}),workflowCmd['command'](a2_0x3bc517(0x353))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x32f))[a2_0x3bc517(0x24f)](async(_0x5b8987,_0x5b72f4)=>{const _0x444d60=a2_0x3bc517,_0x421f22=new WorkflowDeleteCommand(),_0x2f4bcb=program[_0x444d60(0x1bd)](),_0x730035=await createTDXInstance(_0x2f4bcb),_0x53839f=await _0x421f22[_0x444d60(0x173)]({'options':{..._0x2f4bcb,..._0x5b72f4},'args':[_0x5b8987],'tdx':_0x730035});gracefulExit(_0x53839f);}),workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2cc))[a2_0x3bc517(0x33b)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2e9),a2_0x3bc517(0x2c8))['action'](async(_0x5184dd,_0x1ca705)=>{const _0x216c6f=a2_0x3bc517,_0x1c5f6f=new WorkflowUseCommand(),_0x2cc822=program[_0x216c6f(0x1bd)](),_0x538498=await createTDXInstance(_0x2cc822),_0x51c0f7=await _0x1c5f6f['run']({'options':{..._0x2cc822,..._0x1ca705},'args':_0x5184dd?[_0x5184dd]:[],'tdx':_0x538498});gracefulExit(_0x51c0f7);});const wfSecretsCmd=workflowCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2e8))['description'](a2_0x3bc517(0x25b));wfSecretsCmd[a2_0x3bc517(0x19a)]('list\x20[project]')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x177))[a2_0x3bc517(0x24f)](async(_0x2e80d3,_0x324f56)=>{const _0x493a6d=new WorkflowSecretsListCommand(),_0x4ca632=program['opts'](),_0x1ee9ea=await createTDXInstance(_0x4ca632),_0x4455fc=await _0x493a6d['run']({'options':{..._0x4ca632,..._0x324f56},'args':_0x2e80d3?[_0x2e80d3]:[],'tdx':_0x1ee9ea});gracefulExit(_0x4455fc);}),wfSecretsCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x34e))[a2_0x3bc517(0x33b)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')['action'](async(_0x532cbd,_0x1deff0)=>{const _0x6bb0b7=a2_0x3bc517,_0x24ebbf=new WorkflowSecretsSetCommand(),_0x5e0f37=program[_0x6bb0b7(0x1bd)](),_0x7cd529=await createTDXInstance(_0x5e0f37),_0x3fc8f5=await _0x24ebbf[_0x6bb0b7(0x173)]({'options':{..._0x5e0f37,..._0x1deff0},'args':_0x532cbd,'tdx':_0x7cd529});gracefulExit(_0x3fc8f5);}),wfSecretsCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x104))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x335))['option'](a2_0x3bc517(0x21a),a2_0x3bc517(0x2ec))[a2_0x3bc517(0x24f)](async(_0x46c1b3,_0xf57fbd)=>{const _0x2dce00=a2_0x3bc517,_0x3e1afa=new WorkflowSecretsDeleteCommand(),_0x4010a8=program[_0x2dce00(0x1bd)](),_0x4d9be5=await createTDXInstance(_0x4010a8),_0x2cf88f=await _0x3e1afa[_0x2dce00(0x173)]({'options':{..._0x4010a8,..._0xf57fbd},'args':_0x46c1b3,'tdx':_0x4d9be5});gracefulExit(_0x2cf88f);});const jobCmd=program[a2_0x3bc517(0x19a)]('job')[a2_0x3bc517(0x33b)]('Job\x20management\x20commands'),jobListAction=async _0x29622e=>{const _0x171a03=a2_0x3bc517,_0x30835f=new JobListCommand(),_0x5665de=program[_0x171a03(0x1bd)](),_0x4717d1=await createTDXInstance(_0x5665de),_0xcd0cce=await _0x30835f[_0x171a03(0x173)]({'options':{..._0x5665de,..._0x29622e},'args':[],'tdx':_0x4717d1});gracefulExit(_0xcd0cce);};jobCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x15c))[a2_0x3bc517(0x33b)]('List\x20jobs')['option']('--status\x20<status>',a2_0x3bc517(0x2fa))[a2_0x3bc517(0x24f)](jobListAction),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x24d),{'hidden':!![]})['description'](a2_0x3bc517(0x1c2))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1a1),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x3bc517(0x24f)](jobListAction),jobCmd['command']('show\x20<job-id>')[a2_0x3bc517(0x33b)]('Show\x20job\x20details')[a2_0x3bc517(0x24f)](async(_0x3ad26a,_0x346905)=>{const _0x2bc142=a2_0x3bc517,_0x2ee868=new JobShowCommand(),_0x3b64a6=program['opts'](),_0x26d493=await createTDXInstance(_0x3b64a6),_0x2d1d28=await _0x2ee868[_0x2bc142(0x173)]({'options':{..._0x3b64a6,..._0x346905},'args':[_0x3ad26a],'tdx':_0x26d493});gracefulExit(_0x2d1d28);}),jobCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x11c))[a2_0x3bc517(0x33b)]('Kill\x20a\x20job')['action'](async(_0xd0087b,_0x955ffb)=>{const _0x2c6553=a2_0x3bc517,_0x19bc32=new JobKillCommand(),_0x1d63ce=program[_0x2c6553(0x1bd)](),_0x569cb4=await createTDXInstance(_0x1d63ce),_0x111692=await _0x19bc32[_0x2c6553(0x173)]({'options':{..._0x1d63ce,..._0x955ffb},'args':[_0xd0087b],'tdx':_0x569cb4});gracefulExit(_0x111692);}),jobCmd[a2_0x3bc517(0x19a)]('submit\x20[query]')['description'](a2_0x3bc517(0x2a2))[a2_0x3bc517(0x1da)]('--job-type\x20<type>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x232),a2_0x3bc517(0x134))[a2_0x3bc517(0x1da)]('--database\x20<name>',a2_0x3bc517(0x262),a2_0x3bc517(0x2f8))[a2_0x3bc517(0x24f)](async(_0x3f8570,_0xcfa5f9)=>{const _0x370f90=a2_0x3bc517,_0x45ab28=new JobSubmitCommand(),_0x41d23b=program[_0x370f90(0x1bd)](),_0x5500b3=await createTDXInstance(_0x41d23b),_0x2e7e61=await _0x45ab28[_0x370f90(0x173)]({'options':{..._0x41d23b,..._0xcfa5f9},'args':_0x3f8570?[_0x3f8570]:[],'tdx':_0x5500b3});gracefulExit(_0x2e7e61);}),jobCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x150))['description'](a2_0x3bc517(0x256))[a2_0x3bc517(0x24f)](async(_0x47476a,_0x43b942)=>{const _0x56bf84=a2_0x3bc517,_0x27202f=new JobResultCommand(),_0x5222f8=program['opts'](),_0x29508e=await createTDXInstance(_0x5222f8),_0x521b70=await _0x27202f[_0x56bf84(0x173)]({'options':{..._0x5222f8,..._0x43b942},'args':[_0x47476a],'tdx':_0x29508e});gracefulExit(_0x521b70);});const llmCmd=program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1f4))['description'](a2_0x3bc517(0x1d0));llmCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x350))['description']('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')['action'](async(_0x2e3822,_0x4bc5c9)=>{const _0x51dda9=new LLMUseCommand(),_0x1472fb=program['opts'](),_0x4800d0=await createTDXInstance(_0x1472fb),_0x34c151=await _0x51dda9['run']({'options':{..._0x1472fb,..._0x4bc5c9},'args':[_0x2e3822],'tdx':_0x4800d0});gracefulExit(_0x34c151);}),llmCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x294))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x10a))[a2_0x3bc517(0x24f)](async _0x381010=>{const _0x1da72b=a2_0x3bc517,_0x1d31d4=new LLMModelsCommand(),_0x1c5f31=program[_0x1da72b(0x1bd)](),_0x557f6f=await createTDXInstance(_0x1c5f31),_0x778f0c=await _0x1d31d4['run']({'options':{..._0x1c5f31,..._0x381010},'args':[],'tdx':_0x557f6f});gracefulExit(_0x778f0c);});const projectCmd=llmCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2c6))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x287)),llmProjectListAction=async(_0x7d44e9,_0x204846)=>{const _0x2f3eca=a2_0x3bc517,_0x431223=new LLMProjectsCommand(),_0x472508=program[_0x2f3eca(0x1bd)](),_0xa70a44=await createTDXInstance(_0x472508),_0x1f61f9=await _0x431223[_0x2f3eca(0x173)]({'options':{..._0x472508,..._0x204846},'args':_0x7d44e9?[_0x7d44e9]:[],'tdx':_0xa70a44});gracefulExit(_0x1f61f9);};projectCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2ed))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x15d))['action'](llmProjectListAction),llmCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x29c))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x143))[a2_0x3bc517(0x24f)](llmProjectListAction),projectCmd['command'](a2_0x3bc517(0x213))['description'](a2_0x3bc517(0x154))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2c2),a2_0x3bc517(0x26f))[a2_0x3bc517(0x24f)](async(_0x91b81a,_0x7712dc)=>{const _0x2acc5b=a2_0x3bc517,_0x4ffae1=new LLMProjectCreateCommand(),_0x2e4e1d=program['opts'](),_0x5281e8=await createTDXInstance(_0x2e4e1d),_0x43fb05=await _0x4ffae1[_0x2acc5b(0x173)]({'options':{..._0x2e4e1d,..._0x7712dc},'args':[_0x91b81a],'tdx':_0x5281e8});gracefulExit(_0x43fb05);}),projectCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x117))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x174))[a2_0x3bc517(0x24f)](async(_0x5ae56e,_0x37ce05)=>{const _0x1cadbd=new LLMProjectDeleteCommand(),_0xfefb91=program['opts'](),_0x1decd2=await createTDXInstance(_0xfefb91),_0x1ad9ff=await _0x1cadbd['run']({'options':{..._0xfefb91,..._0x37ce05},'args':[_0x5ae56e],'tdx':_0x1decd2});gracefulExit(_0x1ad9ff);}),projectCmd['command']('backup\x20<name>')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1af))[a2_0x3bc517(0x1da)]('-o,\x20--output\x20<folder>','Output\x20folder\x20(default:\x20{project_name}.llm)')['option'](a2_0x3bc517(0x124),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x3bc517(0x24f)](async(_0x4821ff,_0x33bd13)=>{const _0x412733=a2_0x3bc517,_0x4fc3df=new LLMProjectBackupCommand(),_0x306628=program[_0x412733(0x1bd)](),_0x53d5cb=await createTDXInstance(_0x306628),_0x733503=await _0x4fc3df[_0x412733(0x173)]({'options':{..._0x306628,..._0x33bd13},'args':[_0x4821ff],'tdx':_0x53d5cb});gracefulExit(_0x733503);}),projectCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x17c))[a2_0x3bc517(0x33b)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2fe),a2_0x3bc517(0x1d7))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x124),a2_0x3bc517(0x218))[a2_0x3bc517(0x24f)](async(_0x6acfaf,_0x1008ea)=>{const _0x575ff3=a2_0x3bc517,_0x14432c=new LLMProjectRestoreCommand(),_0xa992ae=program['opts'](),_0x26205d=await createTDXInstance(_0xa992ae),_0x5ecc96=await _0x14432c[_0x575ff3(0x173)]({'options':{..._0xa992ae,..._0x1008ea},'args':[_0x6acfaf],'tdx':_0x26205d});gracefulExit(_0x5ecc96);});const llmAgentListAction=async(_0x127cf8,_0x2a18d0)=>{const _0x499d0b=a2_0x3bc517,_0x4fdb7b=new LLMAgentsCommand(),_0x282e84=program[_0x499d0b(0x1bd)](),_0x512c6e=await createTDXInstance(_0x282e84),_0x27a72a=await _0x4fdb7b[_0x499d0b(0x173)]({'options':{..._0x282e84,..._0x2a18d0},'args':_0x127cf8?[_0x127cf8]:[],'tdx':_0x512c6e});gracefulExit(_0x27a72a);};llmCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x272))['description'](a2_0x3bc517(0x205))[a2_0x3bc517(0x24f)](llmAgentListAction),program['command']('agents\x20[pattern]')['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x3bc517(0x24f)](llmAgentListAction),llmCmd['command'](a2_0x3bc517(0x17e))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x342))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x110),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')['action'](async(_0x33de70,_0x1e12d6)=>{const _0x27c8bd=a2_0x3bc517,_0x53a037=new LLMHistoryCommand(),_0xc623eb=program['opts'](),_0x25403=await createTDXInstance(_0xc623eb),_0x31eef1=await _0x53a037[_0x27c8bd(0x173)]({'options':{..._0xc623eb,..._0x1e12d6},'args':_0x33de70?[_0x33de70]:[],'tdx':_0x25403});gracefulExit(_0x31eef1);}),llmCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2b0))['description'](a2_0x3bc517(0x23b))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x340),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x3bc517(0x1e2))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x253),a2_0x3bc517(0x2eb))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x141),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3bc517(0x24f)](async _0x38583b=>{const _0x3bd4e5=a2_0x3bc517,_0x179967=new LLMProxyCommand(),_0x3cb167=program[_0x3bd4e5(0x1bd)](),_0x206755=await createTDXInstance(_0x3cb167),_0x4097ca={..._0x38583b,'port':_0x38583b['port']?parseInt(_0x38583b['port'],0xa):undefined},_0x2e4c79=await _0x179967[_0x3bd4e5(0x173)]({'options':{..._0x3cb167,..._0x4097ca},'args':[],'tdx':_0x206755});gracefulExit(_0x2e4c79);}),program['command'](a2_0x3bc517(0x24c))[a2_0x3bc517(0x230)](a2_0x3bc517(0x1aa))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x231))['option'](a2_0x3bc517(0x258),a2_0x3bc517(0x2b1),a2_0x3bc517(0x305))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2e5),a2_0x3bc517(0x33c))['option'](a2_0x3bc517(0x1dc),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1fa),a2_0x3bc517(0x198))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x326),'Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)')['allowUnknownOption']()[a2_0x3bc517(0x249)](!![])[a2_0x3bc517(0x250)]('after','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\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_0x3bc517(0x24f)](async(_0x5d61cd,_0x1765fa)=>{const _0x5484b9=a2_0x3bc517,_0x1800b9=program['opts'](),_0x11f2a1=Array['isArray'](_0x5d61cd)?_0x5d61cd:[];if(_0x11f2a1[0x0]===_0x5484b9(0x34d)){const _0x272911=new ClaudeStatuslineCommand(),_0x2610bc=await _0x272911[_0x5484b9(0x173)]({'options':{..._0x1800b9,..._0x1765fa},'args':_0x11f2a1['slice'](0x1),'tdx':null});gracefulExit(_0x2610bc);}if(_0x11f2a1[0x0]==='usage'){const _0x506f0c=new ClaudeUsageCommand(),_0x445ce0=await _0x506f0c['run']({'options':{..._0x1800b9,..._0x1765fa},'args':_0x11f2a1[_0x5484b9(0x265)](0x1),'tdx':null});gracefulExit(_0x445ce0);}const _0x128eba=new ClaudeCommand(),_0x5b56e9=await createTDXInstance(_0x1800b9),_0xc10fa4=await _0x128eba[_0x5484b9(0x173)]({'options':{..._0x1800b9,..._0x1765fa},'args':_0x11f2a1,'tdx':_0x5b56e9});gracefulExit(_0xc10fa4);}),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x303))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1ef))['option'](a2_0x3bc517(0x2e9),a2_0x3bc517(0x29b))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x14a),a2_0x3bc517(0x229))[a2_0x3bc517(0x24f)](async(_0x4b1d3b,_0x2578a7,_0xf85901)=>{const _0x401bd4=a2_0x3bc517,_0x3ab17d=new UseCommand(),_0x3000c3=program[_0x401bd4(0x1bd)](),_0x2e3527=[];if(_0x4b1d3b)_0x2e3527['push'](_0x4b1d3b);if(_0x2578a7)_0x2e3527['push'](_0x2578a7);const _0x388219=await _0x3ab17d[_0x401bd4(0x173)]({'options':{..._0x3000c3,..._0xf85901},'args':_0x2e3527,'tdx':null});gracefulExit(_0x388219);}),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x27a))[a2_0x3bc517(0x33b)]('Show\x20authentication\x20status\x20and\x20current\x20context')[a2_0x3bc517(0x24f)](async _0x175e90=>{const _0x410567=a2_0x3bc517,_0x447fea=new StatusCommand(),_0x1aa9ff=program[_0x410567(0x1bd)](),_0x241e64=await createTDXInstance(_0x1aa9ff),_0x443c07=await _0x447fea['run']({'options':{..._0x1aa9ff,..._0x175e90},'args':[],'tdx':_0x241e64});gracefulExit(_0x443c07);}),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x313))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x19e))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x14a),a2_0x3bc517(0x243))[a2_0x3bc517(0x24f)](async(_0x5bf5d8,_0xc06367)=>{const _0x56a6dd=a2_0x3bc517,_0x17ca0d=new UnsetCommand(),_0x31fe89=program[_0x56a6dd(0x1bd)](),_0x45db5=await _0x17ca0d['run']({'options':{..._0x31fe89,..._0xc06367},'args':[_0x5bf5d8],'tdx':null});gracefulExit(_0x45db5);}),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2d4))[a2_0x3bc517(0x33b)]('Interactive\x20chat\x20selector')[a2_0x3bc517(0x1da)]('--last','Show\x20the\x20most\x20recent\x20chat')[a2_0x3bc517(0x24f)](async _0x36c9ad=>{const _0x17823b=a2_0x3bc517,_0x59be91=new ChatsCommand(),_0x5b5719=program['opts'](),_0x25f473=await createTDXInstance(_0x5b5719),_0x12afad=await _0x59be91[_0x17823b(0x173)]({'options':{..._0x5b5719,..._0x36c9ad},'args':[],'tdx':_0x25f473});gracefulExit(_0x12afad);});const authCmd=program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x25c))['description'](a2_0x3bc517(0x235));async function runAuthStatusCommand(_0x46d3ab){const _0x555629=a2_0x3bc517,_0x44be0a=new AuthStatusCommand(),_0x16d6ec=program[_0x555629(0x1bd)](),_0x4a88c7=await createTDXInstance(_0x16d6ec),_0x44fef1=await _0x44be0a[_0x555629(0x173)]({'options':{..._0x16d6ec,..._0x46d3ab},'args':[],'tdx':_0x4a88c7});gracefulExit(_0x44fef1);}authCmd['action'](runAuthStatusCommand),authCmd['command'](a2_0x3bc517(0x27a))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1a7))['action'](runAuthStatusCommand),authCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x282))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1f1))['addHelpText'](a2_0x3bc517(0x285),a2_0x3bc517(0x1be))[a2_0x3bc517(0x24f)](async _0x4102d4=>{const _0x2a213b=a2_0x3bc517,_0x1979f8=new AuthSetupCommand(),_0xd606f5=program[_0x2a213b(0x1bd)](),_0x305880=await createTDXInstance(_0xd606f5),_0x23f108=await _0x1979f8[_0x2a213b(0x173)]({'options':{..._0xd606f5,..._0x4102d4},'args':[],'tdx':_0x305880});gracefulExit(_0x23f108);}),authCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x16d))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2db))['addHelpText'](a2_0x3bc517(0x285),a2_0x3bc517(0x336))['action'](async _0x4ba99f=>{const _0x79f8e4=a2_0x3bc517,_0x38070d=new AuthClearCommand(),_0x195501=program[_0x79f8e4(0x1bd)](),_0x2c6aad=await _0x38070d[_0x79f8e4(0x173)]({'options':{..._0x195501,..._0x4ba99f},'args':[],'tdx':null});gracefulExit(_0x2c6aad);});const userCmd=program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x108))[a2_0x3bc517(0x33b)]('User\x20management\x20commands'),userListAction=async _0x3e0ee1=>{const _0x3ebf39=new UserListCommand(),_0x23e4bb=program['opts'](),_0x145bae=await createTDXInstance(_0x23e4bb),_0x532705=await _0x3ebf39['run']({'options':{..._0x23e4bb,..._0x3e0ee1},'args':[],'tdx':_0x145bae});gracefulExit(_0x532705);};userCmd['action'](async _0x50e5ef=>{const _0x52f156=a2_0x3bc517,_0x2506d8=new UserCommand(),_0x2343bd=program[_0x52f156(0x1bd)](),_0x26e93a=await createTDXInstance(_0x2343bd),_0x12aba4=await _0x2506d8[_0x52f156(0x173)]({'options':{..._0x2343bd,..._0x50e5ef},'args':[],'tdx':_0x26e93a});gracefulExit(_0x12aba4);}),userCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x15c))['description'](a2_0x3bc517(0x1d8))[a2_0x3bc517(0x24f)](userListAction),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x144))['description'](a2_0x3bc517(0x26b))['action'](userListAction),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x280))['description'](a2_0x3bc517(0x2ac))['action'](async _0x18206b=>{const _0x431d47=a2_0x3bc517,_0x2afaae=new ProfilesCommand(),_0x215e6b=program[_0x431d47(0x1bd)](),_0x30b825=await _0x2afaae[_0x431d47(0x173)]({'options':{..._0x215e6b,..._0x18206b},'args':[],'tdx':null});gracefulExit(_0x30b825);});const profileCmd=program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2c3))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x10e));profileCmd[a2_0x3bc517(0x24f)](()=>{const _0x2f4744=a2_0x3bc517;profileCmd[_0x2f4744(0x169)]();});const profileListAction=async _0x315d90=>{const _0x29b123=a2_0x3bc517,_0x7bbdd7=new ProfilesCommand(),_0x225244=program[_0x29b123(0x1bd)](),_0x30bac9=await _0x7bbdd7[_0x29b123(0x173)]({'options':{..._0x225244,..._0x315d90},'args':[],'tdx':null});gracefulExit(_0x30bac9);};profileCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x15c))[a2_0x3bc517(0x33b)]('List\x20all\x20available\x20profiles')['action'](profileListAction),profileCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x33e))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1ad))[a2_0x3bc517(0x250)](a2_0x3bc517(0x285),a2_0x3bc517(0x1e7))[a2_0x3bc517(0x24f)](async(_0xbd537f,_0x37fb5e)=>{const _0x3ead80=a2_0x3bc517,_0xcd17ed=new ProfileCreateCommand(),_0x365ebb=program['opts'](),_0x122e67=await _0xcd17ed[_0x3ead80(0x173)]({'options':{..._0x365ebb,..._0x37fb5e},'args':_0xbd537f?[_0xbd537f]:[],'tdx':null});gracefulExit(_0x122e67);}),profileCmd[a2_0x3bc517(0x19a)]('remove\x20<name>')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x135))['addHelpText']('after',a2_0x3bc517(0x12e))['action'](async(_0x2664bf,_0x4a352a)=>{const _0x45665d=a2_0x3bc517,_0xea872b=new ProfileRemoveCommand(),_0x260e3d=program['opts'](),_0x5ea2b4=await _0xea872b[_0x45665d(0x173)]({'options':{..._0x260e3d,..._0x4a352a},'args':[_0x2664bf],'tdx':null});gracefulExit(_0x5ea2b4);}),profileCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x311))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1b3))['addHelpText'](a2_0x3bc517(0x285),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x3bc517(0x24f)](async(_0xfb9d7b,_0x3f5c7a)=>{const _0x1305c4=a2_0x3bc517,_0x1d999a=new ProfileSetCommand(),_0x4a33f4=program[_0x1305c4(0x1bd)](),_0x470529=await _0x1d999a[_0x1305c4(0x173)]({'options':{..._0x4a33f4,..._0x3f5c7a},'args':[_0xfb9d7b],'tdx':null});gracefulExit(_0x470529);}),profileCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x15b))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x332))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x14a),a2_0x3bc517(0x229))[a2_0x3bc517(0x250)](a2_0x3bc517(0x285),a2_0x3bc517(0x327))[a2_0x3bc517(0x24f)](async(_0x406a1e,_0x3b59de)=>{const _0x5cbda8=a2_0x3bc517,_0x35513b=new ProfileUseCommand(),_0x26a597=program['opts'](),_0x3a99ea=await _0x35513b[_0x5cbda8(0x173)]({'options':{..._0x26a597,..._0x3b59de},'args':[_0x406a1e],'tdx':null});gracefulExit(_0x3a99ea);});const engageCmd=program['command'](a2_0x3bc517(0x138))['description'](a2_0x3bc517(0x1eb)),createEngageAction=_0x3dec2d=>{return async(_0x549361,_0x596860)=>{const _0x591da2=a2_0x4360,_0x3608d4=new _0x3dec2d(),_0xccf3bd=program['opts'](),_0x3f5004=await createTDXInstance(_0xccf3bd),_0x3b05a0=await _0x3608d4[_0x591da2(0x173)]({'options':{..._0xccf3bd,..._0x596860},'args':[_0x549361],'tdx':_0x3f5004});gracefulExit(_0x3b05a0);};},createEngageNoArgAction=_0x54e602=>{return async _0x3b0b6b=>{const _0x57b6a5=a2_0x4360,_0x1f7bd3=new _0x54e602(),_0x1ca68d=program[_0x57b6a5(0x1bd)](),_0x44addc=await createTDXInstance(_0x1ca68d),_0x5b4e76=await _0x1f7bd3[_0x57b6a5(0x173)]({'options':{..._0x1ca68d,..._0x3b0b6b},'args':[],'tdx':_0x44addc});gracefulExit(_0x5b4e76);};},campaignCmd=engageCmd[a2_0x3bc517(0x19a)]('campaign')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2c9)),campaignListAction=async(_0x3e479c,_0x489b35)=>{const _0x5493af=a2_0x3bc517,_0x3495c0=new EngageCampaignsCommand(),_0x3ad457=program[_0x5493af(0x1bd)](),_0x56be3=await createTDXInstance(_0x3ad457),_0x28ab6f=await _0x3495c0[_0x5493af(0x173)]({'options':{..._0x3ad457,..._0x489b35},'args':_0x3e479c?[_0x3e479c]:[],'tdx':_0x56be3});gracefulExit(_0x28ab6f);};campaignCmd[a2_0x3bc517(0x19a)]('list\x20[pattern]')[a2_0x3bc517(0x33b)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x351),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option']('--status\x20<status>',a2_0x3bc517(0x18b))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x10c),'Workspace\x20name')[a2_0x3bc517(0x24f)](campaignListAction),engageCmd['command']('campaigns\x20[pattern]')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x284))['option'](a2_0x3bc517(0x351),a2_0x3bc517(0x130))[a2_0x3bc517(0x1da)]('--status\x20<status>',a2_0x3bc517(0x18b))['option'](a2_0x3bc517(0x10c),a2_0x3bc517(0x2d1))['action'](campaignListAction),campaignCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2e1))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2fc))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x10c),a2_0x3bc517(0x2d1))[a2_0x3bc517(0x1da)]('--full',a2_0x3bc517(0x29a))[a2_0x3bc517(0x24f)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3bc517(0x19a)]('create')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x270))[a2_0x3bc517(0x1b5)](a2_0x3bc517(0x27e),a2_0x3bc517(0x148))[a2_0x3bc517(0x1b5)](a2_0x3bc517(0x351),a2_0x3bc517(0x322))[a2_0x3bc517(0x1da)]('--workspace\x20<name>','Workspace\x20name\x20(required)')['option'](a2_0x3bc517(0x13f),a2_0x3bc517(0x216))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1ae),a2_0x3bc517(0x1fb))['option']('--email-sender-id\x20<id>',a2_0x3bc517(0x263))[a2_0x3bc517(0x1da)]('--json-columns\x20<cols>',a2_0x3bc517(0x254))['option'](a2_0x3bc517(0x161),a2_0x3bc517(0x13c))['option'](a2_0x3bc517(0x2a4),a2_0x3bc517(0x2a7))[a2_0x3bc517(0x24f)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x26a))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2ff))[a2_0x3bc517(0x1da)]('--workspace\x20<name>','Workspace\x20name')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x27e),'New\x20campaign\x20name')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x13f),a2_0x3bc517(0x216))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1ae),a2_0x3bc517(0x1fb))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x219),'Email\x20sender\x20ID\x20for\x20delivery')['option'](a2_0x3bc517(0x180),a2_0x3bc517(0x254))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x161),a2_0x3bc517(0x13c))['option'](a2_0x3bc517(0x2a4),a2_0x3bc517(0x2a7))[a2_0x3bc517(0x24f)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x3bc517(0x153))['description']('Delete\x20a\x20campaign')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x10c),a2_0x3bc517(0x2d1))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2a8),a2_0x3bc517(0x2ec))[a2_0x3bc517(0x24f)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x15a))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1b0))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x10c),a2_0x3bc517(0x2d1))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x164))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x10c),a2_0x3bc517(0x2d1))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x3bc517(0x33d))['description'](a2_0x3bc517(0x31a))['option'](a2_0x3bc517(0x10c),a2_0x3bc517(0x2d1))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3bc517(0x19a)]('duplicate\x20<name-or-id>')['description']('Duplicate\x20a\x20campaign')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x10c),'Workspace\x20name')[a2_0x3bc517(0x24f)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command']('template')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x20d)),templateListAction=async(_0x21bfb0,_0x2105ab)=>{const _0x1a8d3f=a2_0x3bc517,_0x5f5a19=new EngageTemplatesCommand(),_0x494b44=program[_0x1a8d3f(0x1bd)](),_0x20ba53=await createTDXInstance(_0x494b44),_0x561316=await _0x5f5a19[_0x1a8d3f(0x173)]({'options':{..._0x494b44,..._0x2105ab},'args':_0x21bfb0?[_0x21bfb0]:[],'tdx':_0x20ba53});gracefulExit(_0x561316);};function a2_0x125f(){const _0x38e877=['--jsonl','Delete\x20a\x20workspace','--name\x20<name>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','profiles','view\x20[name]','setup','forEach','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','after','-v,\x20--verbose','LLM\x20project\x20management','segment','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','New\x20template\x20name','hidden','Show\x20stats\x20for\x20specific\x20stage','Skip\x20population\x20counting','isDirectory','--param\x20<key=value>','List\x20all\x20data\x20connections','--include-stats','models','[DEPRECATED]\x20Segment\x20folder\x20management','Push\x20without\x20confirmation','--add-attributes\x20<json>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','tsv','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Clear\x20session\x20context','projects\x20[pattern]','End\x20time\x20filter\x20(ISO\x208601\x20format)','Limit\x20number\x20of\x20rows','workspaces\x20[pattern]','Request\x20body\x20as\x20JSON\x20string','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Submit\x20a\x20job','connection','--timezone\x20<tz>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','DEBUG','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--yes','desc','Output\x20as\x20JSON','--name\x20<new_name>','List\x20all\x20available\x20profiles','[action]','TRACE','Resume\x20a\x20paused\x20journey','proxy','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','commandDescription','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','929lWpohj','Validate\x20journey\x20YAML\x20files\x20locally','help','1429414lgcMMV','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes',',\x20version\x20','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Master\x20database\x20name','fields\x20[name]','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','--parent-segment\x20<name>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','--description\x20<text>','profile','--limit\x20<number>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','project','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Clear\x20workflow\x20project\x20context','Campaign\x20management','-X,\x20--method\x20<method>','Open\x20segment\x20in\x20web\x20browser','use\x20[project]','-C,\x20--directory\x20<path>','--include-retried','4030OOQRIM','--json','Workspace\x20name','use\x20<path>','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','chats','--system-prompt\x20<text>','-o,\x20--output\x20<dir>','configureHelp','--delete','upload\x20[project-name-or-dir]','Create\x20segment\x20folder','Remove\x20API\x20key\x20from\x20system\x20keychain','push\x20[source-dir]','--skip-validation','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Workflow\x20session\x20management','Run\x20Trino\x20query\x20with\x20streaming\x20results','show\x20<name-or-id>','alias','--data\x20<data>','desc\x20[segment_name]','-c,\x20--continue','schema\x20<type>','_hidden','secrets','--clear','New\x20workspace\x20name','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Skip\x20confirmation\x20prompt','list\x20[pattern]','--kind\x20<type>','New\x20segment\x20name','--from-task\x20<task>','Revision\x20name\x20(default:\x20timestamp)','site','Create\x20an\x20email\x20template','Include\x20retried\x20attempts','Enable\x20verbose\x20logging','kill','Show\x20agent\x20details','information_schema','Attributes\x20from\x20JSON\x20file','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Show\x20campaign\x20details','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--name\x20<new-name>','Update\x20a\x20campaign','4ScmjLF','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--name\x20<text>','use\x20[resource]\x20[value]','optionDescription','sonnet','--tags\x20<tags>','list\x20[project]','Include\x20retried\x20attempts\x20(for\x20list)','\x20-\x20built\x20','Output\x20file\x20path','List\x20available\x20connector\x20types','us01','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','argumentTerm','--format\x20<format>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','set\x20<key=value>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','unset\x20<resource>','tasks','--parent-folder\x20<name>','registeredArguments','--no-color','grapesjs','query\x20[sql]','Resume\x20a\x20paused\x20campaign','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--version','--color','--params\x20<json>','describe\x20[table]','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Add\x20attributes\x20as\x20JSON\x20string','Campaign\x20type\x20(email\x20or\x20push)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Output\x20directory','--llm-proxy\x20[url]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','log','Include\x20execution\x20statistics','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','get','--stage\x20<name>','-1d','--rule-file\x20<file>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','sql\x20[name]','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','trace','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','\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','argument','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','workflows\x20[project]','--agent\x20<ref>','description','Continue\x20most\x20recent\x20conversation','resume\x20<name-or-id>','create\x20[name]','tdx','--port\x20<number>','CDP\x20segment\x20management\x20commands','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Name\x20for\x20the\x20new\x20project\x20(required)','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','padWidth','Timezone\x20(e.g.,\x20America/Los_Angeles)','Show\x20segment\x20schema\x20(column\x20types)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Show\x20email\x20template\x20details','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','GET','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','statusline','set\x20<args...>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','use\x20<project-name>','--type\x20<type>','pause\x20<name-or-path>','delete\x20<project-name-or-id>','Parent\x20segment\x20management','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','update\x20<agent-name>','961014ivzfTB','--type\x20<api_type>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','delete\x20<args...>','filter','Parse\x20and\x20validate\x20without\x20executing','noColor','user','claude-4.5-sonnet','List\x20available\x20LLM\x20models','--folder\x20<name>','--workspace\x20<name>','Show\x20workspace\x20details','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','parents\x20[pattern]','--last','Behaviors\x20from\x20JSON\x20file','-u,\x20--use','subcommandDescription','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Show\x20connection\x20details\x20by\x20name','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','delete\x20<name>','Resume\x20from\x20specific\x20task','--table','Unknown\x20action:\x20','padEnd','kill\x20<job-id>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','debug','Starter\x20message','--timeout\x20<seconds>','run\x20[workflow]','Maximum\x20tool\x20iterations\x20(default:\x204)','Include\x20subtasks\x20in\x20tasks\x20output','--dry-run','validate\x20[file]','set','--invisible','Follow/watch\x20timeline\x20for\x20running\x20attempts','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--rule\x20<json>','Maximum\x20recursion\x20depth\x20(default:\x2010)','logs','[attempt-id]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','--to\x20<timestamp>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','--master','fields\x20[parent_name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Read\x20query\x20from\x20file','Remove\x20a\x20profile','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','journeys\x20[pattern]','engage','list\x20[path]','--add-attributes-file\x20<file>','--session-id\x20<id>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--full','--description\x20<desc>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--agent\x20<name>','--revision\x20<revision>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','users','then','timeline\x20[project.workflow]','Override\x20project\x20name','Campaign\x20name','INFO','--default','Run\x20tests\x20for\x20an\x20LLM\x20agent','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','show\x20[segment_name]','Parent\x20segment\x20description','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','result\x20<job-id>','--force','--session-time\x20<time>','delete\x20<name-or-id>','Create\x20a\x20new\x20LLM\x20project','summary','INVALID_ARGUMENT','--follow','Email\x20subject\x20template','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','launch\x20<name-or-id>','use\x20<name>','list','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--resume-from\x20<task>','settings\x20<type>','directory','--start-at\x20<datetime>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Show\x20only\x20master\x20table\x20validation','Pause\x20a\x20campaign','Workflow\x20parameter\x20(repeatable)','--customer-group-file\x20<file>','argv','create\x20<segment_name>','outputHelp','914TKNteA','isTTY','beefree','clear','format','-f,\x20--force','--add-behaviors\x20<json>','Plaintext\x20template\x20content','delete\x20<agent-name>','run','Delete\x20an\x20LLM\x20project','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Agent\x20description','List\x20secret\x20keys\x20for\x20a\x20project','flatMap','Skip\x20confirmation\x20prompts','Skip\x20validation\x20of\x20.dig\x20files','tables\x20[pattern]','restore\x20<folder>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','history\x20[chat-id]','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--json-columns\x20<cols>','colorFn','Updated\x20schedule\x20option','run\x20[name]','-o,\x20--output\x20<file>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Database\x20to\x20query\x20(default:\x20information_schema)','json','--schedule-type\x20<type>','pull\x20[name]','database','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--max-depth\x20<depth>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','2201365Vfdgui','folder','stdout','chdir','view\x20<name-or-path>','table','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--customer-group\x20<json>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Resume\x20from\x20specific\x20task\x20(retry)','command','Reason\x20for\x20killing\x20the\x20attempt','\x20(resolved\x20to\x20','Template\x20name','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','view\x20[segment_name]','stats\x20<name-or-path>','--status\x20<status>','Change\x20to\x20directory\x20before\x20executing\x20command','--html\x20<html>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Workspace\x20management','Add\x20attributes\x20from\x20JSON\x20file','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','0.7','Attributes\x20as\x20JSON\x20string','[options]\x20--\x20[claude-code-args...]','Output\x20file\x20path\x20(default:\x20<name>.yml)','Pull\x20child\x20segments\x20to\x20YAML\x20files','Create\x20a\x20new\x20profile','--segment\x20<path>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Launch\x20a\x20campaign','Set\x20operation\x20timeout\x20in\x20seconds','--site\x20<site>','Set\x20a\x20profile\x20configuration\x20value','--database\x20<db>','requiredOption','-d,\x20--database\x20<database>','sql\x20[segment_name]','includes','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','createAsync','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Output\x20as\x20JSON\x20Lines','opts','\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','commandUsage','map','pull\x20<project>\x20[target-dir]','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--behavior\x20[name]','--editor-type\x20<type>','LLM\x20agent\x20management','use\x20[name]','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Agent\x20prompt/instructions','2677232vgZNOg','argumentDescription','CDP\x20Journey\x20Orchestration\x20commands','catch','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','update\x20<name>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','AI-native\x20CLI\x20for\x20Treasure\x20Data','-r,\x20--recursive','Describe\x20table\x20schema','-d,\x20--database\x20<name>','Master\x20table\x20name','Update\x20a\x20workspace','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','List\x20all\x20users\x20in\x20the\x20account','preview\x20[name]','option','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','-r,\x20--resume','folders\x20<parent_name>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--from\x20<timestamp>','Force\x20retry\x20even\x20if\x20not\x20failed','create','4000','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','buildTime','push\x20[file]','Open\x20journey\x20in\x20web\x20browser','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a','Trino\x20catalog\x20(default:\x20td)','--subject\x20<subject>','length','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','\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','replace','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','sessions\x20[project]','Setup\x20API\x20key\x20authentication\x20interactively','Database\x20to\x20use\x20(overrides\x20context)','--behaviors-file\x20<file>','llm','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Table\x20management\x20commands','resume\x20<name-or-path>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--no-proxy','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Start\x20a\x20new\x20chat\x20session','20907qqqQZE','tdx\x20','--starter-message\x20<text>','--interval\x20<range>','--catalog\x20<catalog>','--schedule-option\x20<value>','update\x20<segment_name>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','stderr','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','List\x20agents\x20in\x20current\x20project','--attributes-file\x20<file>','name','preview\x20[file]','Email\x20template\x20management','Add\x20behaviors\x20as\x20JSON\x20string','segments\x20[path]','Delete\x20an\x20agent','join','--prompt\x20<text>','create\x20<name>','--no-eval','--in\x20<database>','Campaign\x20description','subcommandTerm','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--email-sender-id\x20<id>','-y,\x20--yes','Options:','error','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Workspace\x20description','push\x20[target]','Workflow\x20project\x20management','Create\x20a\x20workspace','HTML\x20template\x20content','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','retry','describe','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Updated\x20timezone','injectIntoOptions','aliases','commands','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Preview\x20operation\x20without\x20executing','usage','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','-f,\x20--file\x20<path>','Show\x20segment\x20details\x20(alias\x20for\x20view)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Authentication\x20management','show\x20<name>','Preview\x20without\x20creating\x20the\x20project','pull\x20[parent_or_file]','databases\x20[pattern]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','-w,\x20--web','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','System\x20prompt/instructions\x20(default:\x20empty)','jsonl','desc\x20[name]','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--attribute\x20[name]','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','retry\x20<session-id>','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Preview\x20changes\x20without\x20pushing','--behaviors\x20<json>','clone\x20[source]','allowExcessArguments','test\x20[path]','push','claude\x20[args...]','jobs','attempt','action','addHelpText','--enriched','Commands:','--project\x20<name>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Customer\x20group\x20from\x20JSON\x20file','Get\x20job\x20results','logLevel','--model\x20<name>','Generate\x20test\x20conversations\x20without\x20evaluation','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Manage\x20workflow\x20project\x20secrets','auth','agent','gitRevision','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Custom\x20revision\x20name\x20(default:\x20timestamp)','Folder\x20name\x20for\x20organization','Database\x20name\x20(default:\x20information_schema)','Email\x20sender\x20ID\x20for\x20delivery','Invalid\x20editor\x20type:\x20','slice','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','download\x20<project-name>\x20[output-dir]','Data\x20connection\x20management\x20(for\x20activations/exports)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','update\x20<name-or-id>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','clone\x20[source-dir]','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Agent\x20name','Project\x20description','Create\x20a\x20new\x20campaign','Show\x20master\x20table\x20sample\x20data','agents\x20[pattern]','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','2509896lSbRui','Updated\x20description','Behaviors\x20as\x20JSON\x20string','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','exit','Create\x20a\x20new\x20agent\x20in\x20current\x20project','status','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)'];a2_0x125f=function(){return _0x38e877;};return a2_0x125f();}templateCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2ed))[a2_0x3bc517(0x33b)](a2_0x3bc517(0xfe))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x10c),'Workspace\x20name')[a2_0x3bc517(0x24f)](templateListAction),engageCmd[a2_0x3bc517(0x19a)]('templates\x20[pattern]')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x196))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x10c),a2_0x3bc517(0x2d1))[a2_0x3bc517(0x24f)](templateListAction),templateCmd['command'](a2_0x3bc517(0x2e1))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x349))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x10c),a2_0x3bc517(0x2d1))['option']('--full',a2_0x3bc517(0x29a))[a2_0x3bc517(0x24f)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1e1))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2f3))[a2_0x3bc517(0x1b5)](a2_0x3bc517(0x27e),a2_0x3bc517(0x19d))[a2_0x3bc517(0x1b5)](a2_0x3bc517(0x1e9),a2_0x3bc517(0x158))[a2_0x3bc517(0x1b5)]('--html\x20<html>',a2_0x3bc517(0x222))[a2_0x3bc517(0x1da)]('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x3bc517(0x1da)]('--plaintext\x20<text>',a2_0x3bc517(0x171))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1c4),'Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)',_0x4e3d94=>{const _0x4212f2=a2_0x3bc517;if(![_0x4212f2(0x16c),_0x4212f2(0x318)][_0x4212f2(0x1b8)](_0x4e3d94))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4212f2(0x264)+_0x4e3d94+'.\x20Must\x20be\x20beefree\x20or\x20grapesjs');return _0x4e3d94;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x26a))[a2_0x3bc517(0x33b)]('Update\x20an\x20email\x20template')[a2_0x3bc517(0x1da)]('--workspace\x20<name>',a2_0x3bc517(0x2d1))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x27e),a2_0x3bc517(0x28c))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1e9),'Email\x20subject\x20template')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x1a3),'HTML\x20template\x20content')[a2_0x3bc517(0x1da)]('--plaintext\x20<text>',a2_0x3bc517(0x171))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x3bc517(0x153))[a2_0x3bc517(0x33b)]('Delete\x20an\x20email\x20template')['option'](a2_0x3bc517(0x10c),'Workspace\x20name')['option'](a2_0x3bc517(0x2a8),a2_0x3bc517(0x2ec))[a2_0x3bc517(0x24f)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x3bc517(0x19a)]('workspace')['description'](a2_0x3bc517(0x1a5)),workspaceListAction=async(_0x2f9acc,_0x9b5fe6)=>{const _0x3b8780=a2_0x3bc517,_0x4705c1=new EngageWorkspacesCommand(),_0x25924b=program[_0x3b8780(0x1bd)](),_0x7a17fd=await createTDXInstance(_0x25924b),_0x2c1004=await _0x4705c1[_0x3b8780(0x173)]({'options':{..._0x25924b,..._0x9b5fe6},'args':_0x2f9acc?[_0x2f9acc]:[],'tdx':_0x7a17fd});gracefulExit(_0x2c1004);};workspaceCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2ed))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x277))['action'](workspaceListAction),engageCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x29f))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x14c))[a2_0x3bc517(0x24f)](workspaceListAction),workspaceCmd['command'](a2_0x3bc517(0x2e1))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x10d))['option'](a2_0x3bc517(0x13e),a2_0x3bc517(0x29a))[a2_0x3bc517(0x24f)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1e1))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x221))[a2_0x3bc517(0x1b5)](a2_0x3bc517(0x27e),a2_0x3bc517(0x2d1))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x13f),a2_0x3bc517(0x21e))[a2_0x3bc517(0x24f)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x3bc517(0x26a))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1d6))['option'](a2_0x3bc517(0x27e),a2_0x3bc517(0x2ea))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x13f),a2_0x3bc517(0x21e))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3bc517(0x19a)]('delete\x20<name-or-id>')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x27d))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2a8),a2_0x3bc517(0x2ec))[a2_0x3bc517(0x24f)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x15b))['description'](a2_0x3bc517(0x334))[a2_0x3bc517(0x24f)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x3bc517(0x2a3))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x268)),connectionListAction=async _0xcbf278=>{const _0x59eb65=a2_0x3bc517,_0x362deb=new ConnectionListCommand(),_0x4e82de=program[_0x59eb65(0x1bd)](),_0x190805=await createTDXInstance(_0x4e82de),_0x52f55d=await _0x362deb[_0x59eb65(0x173)]({'options':{..._0x4e82de,..._0xcbf278},'args':[],'tdx':_0x190805});gracefulExit(_0x52f55d);};connectionCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x15c))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x292))[a2_0x3bc517(0x24f)](connectionListAction),program[a2_0x3bc517(0x19a)]('connections',{'hidden':!![]})[a2_0x3bc517(0x33b)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x3bc517(0x24f)](connectionListAction),connectionCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x236))['description'](a2_0x3bc517(0x115))[a2_0x3bc517(0x24f)](async(_0x27eaf1,_0x1882a9)=>{const _0x524536=a2_0x3bc517,_0x259514=new ConnectionShowCommand(),_0x3f1367=program[_0x524536(0x1bd)](),_0x3088f8=await createTDXInstance(_0x3f1367),_0x3d5da7=await _0x259514[_0x524536(0x173)]({'options':{..._0x3f1367,..._0x1882a9},'args':[_0x27eaf1],'tdx':_0x3088f8});gracefulExit(_0x3d5da7);}),connectionCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2e6))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x26d))[a2_0x3bc517(0x24f)](async(_0x205c86,_0x48a8e6)=>{const _0xfe0c6d=new ConnectionSchemaCommand(),_0x40d827=program['opts'](),_0x2f54a3=await createTDXInstance(_0x40d827),_0x1a7873=await _0xfe0c6d['run']({'options':{..._0x40d827,..._0x48a8e6},'args':[_0x205c86],'tdx':_0x2f54a3});gracefulExit(_0x1a7873);}),connectionCmd[a2_0x3bc517(0x19a)]('types')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x30b))[a2_0x3bc517(0x24f)](async _0x16bf08=>{const _0x30210d=a2_0x3bc517,_0x2bc01a=new ConnectionTypesCommand(),_0x5cc72d=program[_0x30210d(0x1bd)](),_0xdac49d=await createTDXInstance(_0x5cc72d),_0x24d21a=await _0x2bc01a[_0x30210d(0x173)]({'options':{..._0x5cc72d,..._0x16bf08},'args':[],'tdx':_0xdac49d});gracefulExit(_0x24d21a);}),connectionCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x15f))[a2_0x3bc517(0x33b)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x3bc517(0x24f)](async(_0x3bd0d4,_0x221ea9)=>{const _0x1706f8=a2_0x3bc517,_0x30afa1=new ConnectionSettingsCommand(),_0x31306c=program[_0x1706f8(0x1bd)](),_0x1908ed=await createTDXInstance(_0x31306c),_0x226beb=await _0x30afa1['run']({'options':{..._0x31306c,..._0x221ea9},'args':[_0x3bd0d4],'tdx':_0x1908ed});gracefulExit(_0x226beb);});const journeyCmd=program['command']('journey')[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1cb)),journeyListAction=async(_0x16ff38,_0x5c8178)=>{const _0x2cb6a3=a2_0x3bc517,_0x197e2=new JourneyListCommand(),_0x3df300=program[_0x2cb6a3(0x1bd)](),_0x25b6a7=await createTDXInstance(_0x3df300),_0x27dde2=await _0x197e2[_0x2cb6a3(0x173)]({'options':{..._0x3df300,..._0x5c8178},'args':_0x16ff38?[_0x16ff38]:[],'tdx':_0x25b6a7});gracefulExit(_0x27dde2);};journeyCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x2ed))[a2_0x3bc517(0x33b)]('List\x20journeys\x20in\x20current\x20context')[a2_0x3bc517(0x24f)](journeyListAction),journeyCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x192))[a2_0x3bc517(0x33b)]('Show\x20journey\x20details')['option'](a2_0x3bc517(0x23c),a2_0x3bc517(0x1e6))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x293),a2_0x3bc517(0x329))['action'](async(_0x5cec94,_0x2459ef)=>{const _0x29cdf4=a2_0x3bc517,_0x32a183=new JourneyViewCommand(),_0x515776=program[_0x29cdf4(0x1bd)](),_0x4669a3=await createTDXInstance(_0x515776),_0x26987a=await _0x32a183[_0x29cdf4(0x173)]({'options':{..._0x515776,..._0x2459ef},'args':[_0x5cec94],'tdx':_0x4669a3});gracefulExit(_0x26987a);}),journeyCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1a0))[a2_0x3bc517(0x33b)]('Show\x20journey\x20statistics')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x32c),a2_0x3bc517(0x28e))[a2_0x3bc517(0x24f)](async(_0x2577c2,_0x22509f)=>{const _0x1f9e0e=a2_0x3bc517,_0x4a5900=new JourneyStatsCommand(),_0x1e49ac=program['opts'](),_0x31e5a1=await createTDXInstance(_0x1e49ac),_0x2eab3b=await _0x4a5900[_0x1f9e0e(0x173)]({'options':{..._0x1e49ac,..._0x22509f},'args':[_0x2577c2],'tdx':_0x31e5a1});gracefulExit(_0x2eab3b);}),journeyCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x352))[a2_0x3bc517(0x33b)]('Pause\x20a\x20running\x20journey')[a2_0x3bc517(0x24f)](async(_0x17ae35,_0x23aedc)=>{const _0x3e65c5=new JourneyPauseCommand(),_0x29b38f=program['opts'](),_0x2679fa=await createTDXInstance(_0x29b38f),_0x178c0f=await _0x3e65c5['run']({'options':{..._0x29b38f,..._0x23aedc},'args':[_0x17ae35],'tdx':_0x2679fa});gracefulExit(_0x178c0f);}),journeyCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x1f7))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2af))[a2_0x3bc517(0x24f)](async(_0x3ba2bb,_0x4e84d8)=>{const _0x33d76c=a2_0x3bc517,_0x2471a9=new JourneyResumeCommand(),_0x2f4761=program[_0x33d76c(0x1bd)](),_0xa35971=await createTDXInstance(_0x2f4761),_0x142090=await _0x2471a9[_0x33d76c(0x173)]({'options':{..._0x2f4761,..._0x4e84d8},'args':[_0x3ba2bb],'tdx':_0xa35971});gracefulExit(_0x142090);}),journeyCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x189))[a2_0x3bc517(0x33b)]('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x21a),'Skip\x20confirmation\x20prompt')['option'](a2_0x3bc517(0x124),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x3bc517(0x24f)](async(_0xbcd76a,_0x20d3a3)=>{const _0x583390=a2_0x3bc517,_0xc641c7=new JourneyPullCommand(),_0x130ef5=program['opts'](),_0x2988b0=await createTDXInstance(_0x130ef5),_0x32537b=await _0xc641c7[_0x583390(0x173)]({'options':{..._0x130ef5,..._0x20d3a3},'args':_0xbcd76a?[_0xbcd76a]:[],'tdx':_0x2988b0});gracefulExit(_0x32537b);}),journeyCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x21f))['description'](a2_0x3bc517(0x223))[a2_0x3bc517(0x24f)](async(_0x470ccc,_0x271e26)=>{const _0x36e28c=a2_0x3bc517,_0x574464=new JourneyPushCommand(),_0x30234a=program[_0x36e28c(0x1bd)](),_0x5ca0f6=await createTDXInstance(_0x30234a),_0x1f2b18=await _0x574464[_0x36e28c(0x173)]({'options':{..._0x30234a,..._0x271e26},'args':_0x470ccc?[_0x470ccc]:[],'tdx':_0x5ca0f6});gracefulExit(_0x1f2b18);}),journeyCmd[a2_0x3bc517(0x19a)]('validate\x20[target]')['description'](a2_0x3bc517(0x2b5))[a2_0x3bc517(0x24f)](async(_0x3c9635,_0x4f45f5)=>{const _0x3dd4d3=a2_0x3bc517,_0x3a7e3b=new JourneyValidateCommand(),_0x2b10f2=program['opts'](),_0x1368fe=await createTDXInstance(_0x2b10f2),_0x1700a3=await _0x3a7e3b[_0x3dd4d3(0x173)]({'options':{..._0x2b10f2,..._0x4f45f5},'args':_0x3c9635?[_0x3c9635]:[],'tdx':_0x1368fe});gracefulExit(_0x1700a3);}),program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x137))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x22e))[a2_0x3bc517(0x24f)](journeyListAction);const agentSyncCmd=program[a2_0x3bc517(0x19a)](a2_0x3bc517(0x25d))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x1c5));agentSyncCmd[a2_0x3bc517(0x19a)]('pull\x20[project]\x20[agent-name]')['description'](a2_0x3bc517(0x269))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2d6),a2_0x3bc517(0x325))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x16f),'Overwrite\x20local\x20changes\x20without\x20confirmation')['action'](async(_0x4e8655,_0x5d68bc,_0x39cd44)=>{const _0xffcef9=a2_0x3bc517,_0x7daf45=new AgentPullCommand(),_0x3ae77c=program['opts'](),_0x406b0f=await createTDXInstance(_0x3ae77c),_0xc29460=[];if(_0x4e8655)_0xc29460[_0xffcef9(0x24b)](_0x4e8655);if(_0x5d68bc)_0xc29460['push'](_0x5d68bc);const _0x4882d1=await _0x7daf45[_0xffcef9(0x173)]({'options':{..._0x3ae77c,..._0x39cd44},'args':_0xc29460,'tdx':_0x406b0f});gracefulExit(_0x4882d1);}),agentSyncCmd[a2_0x3bc517(0x19a)]('push\x20[path]')[a2_0x3bc517(0x33b)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x3bc517(0x1da)](a2_0x3bc517(0x16f),a2_0x3bc517(0x296))[a2_0x3bc517(0x24f)](async(_0x1b5eba,_0x4a7187)=>{const _0x2fa2b0=a2_0x3bc517,_0x900b90=new AgentPushCommand(),_0xaee3d2=program[_0x2fa2b0(0x1bd)](),_0x247ddf=await createTDXInstance(_0xaee3d2),_0x4124b1=await _0x900b90[_0x2fa2b0(0x173)]({'options':{..._0xaee3d2,..._0x4a7187},'args':_0x1b5eba?[_0x1b5eba]:[],'tdx':_0x247ddf});gracefulExit(_0x4124b1);}),agentSyncCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x248))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x2d3))[a2_0x3bc517(0x1da)]('-n,\x20--name\x20<name>',a2_0x3bc517(0x343))['action'](async(_0x4edfb8,_0x11faed)=>{const _0x365365=a2_0x3bc517,_0x18233f=new AgentCloneCommand(),_0x111cc1=program[_0x365365(0x1bd)](),_0x3e6ee1=await createTDXInstance(_0x111cc1),_0x2bffaf=await _0x18233f['run']({'options':{..._0x111cc1,..._0x11faed},'args':_0x4edfb8?[_0x4edfb8]:[],'tdx':_0x3e6ee1});gracefulExit(_0x2bffaf);}),agentSyncCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x24a))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x14b))[a2_0x3bc517(0x1da)]('--name\x20<names>','Run\x20specific\x20tests\x20(comma-separated)')['option'](a2_0x3bc517(0x306),a2_0x3bc517(0x30d))['option'](a2_0x3bc517(0x124),a2_0x3bc517(0x106))['option'](a2_0x3bc517(0x214),a2_0x3bc517(0x259))[a2_0x3bc517(0x1da)]('--reeval',a2_0x3bc517(0x1db))[a2_0x3bc517(0x24f)](async(_0x2a7444,_0x51af53)=>{const _0x23339e=new AgentTestCommand(),_0xb77ea7=program['opts'](),_0x4260fa=await createTDXInstance(_0xb77ea7),_0x11fe7b=await _0x23339e['run']({'options':{..._0xb77ea7,..._0x51af53},'args':_0x2a7444?[_0x2a7444]:[],'tdx':_0x4260fa});gracefulExit(_0x11fe7b);}),agentSyncCmd['command'](a2_0x3bc517(0x2ed))['description'](a2_0x3bc517(0x209))[a2_0x3bc517(0x24f)](llmAgentListAction),agentSyncCmd[a2_0x3bc517(0x19a)]('show\x20<agent-name>')['description'](a2_0x3bc517(0x2f7))[a2_0x3bc517(0x24f)](async(_0x1f8215,_0x13005d)=>{const _0x32e3f2=a2_0x3bc517,_0x4e9f9a=new LLMAgentShowCommand(),_0x2ca578=program[_0x32e3f2(0x1bd)](),_0x3ae70b=await createTDXInstance(_0x2ca578),_0x27bea0=await _0x4e9f9a[_0x32e3f2(0x173)]({'options':{..._0x2ca578,..._0x13005d},'args':[_0x1f8215],'tdx':_0x3ae70b});gracefulExit(_0x27bea0);}),agentSyncCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x213))[a2_0x3bc517(0x33b)](a2_0x3bc517(0x279))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x2d5),a2_0x3bc517(0x23e))[a2_0x3bc517(0x1da)]('--model\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x3bc517(0x109))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x200),a2_0x3bc517(0x11f))[a2_0x3bc517(0x1da)]('--max-tool-iterations\x20<n>',a2_0x3bc517(0x122),'4')[a2_0x3bc517(0x1da)]('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x3bc517(0x1a8))[a2_0x3bc517(0x24f)](async(_0x14ad56,_0x27b9e2)=>{const _0x5f4790=a2_0x3bc517,_0x1916c1=new LLMAgentCreateCommand(),_0x8d1248=program[_0x5f4790(0x1bd)](),_0x5e6af8=await createTDXInstance(_0x8d1248),_0x371162=await _0x1916c1['run']({'options':{..._0x8d1248,..._0x27b9e2},'args':[_0x14ad56],'tdx':_0x5e6af8});gracefulExit(_0x371162);}),agentSyncCmd['command'](a2_0x3bc517(0xff))['description']('Update\x20an\x20existing\x20agent')['option'](a2_0x3bc517(0x302),a2_0x3bc517(0x26e))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x212),a2_0x3bc517(0x1c8))['option'](a2_0x3bc517(0x2c2),a2_0x3bc517(0x176))[a2_0x3bc517(0x1da)](a2_0x3bc517(0x200),a2_0x3bc517(0x11f))['action'](async(_0x3f6a0a,_0x2064da)=>{const _0x149d6c=a2_0x3bc517,_0x512e44=new LLMAgentUpdateCommand(),_0x2aae61=program[_0x149d6c(0x1bd)](),_0x26cbed=await createTDXInstance(_0x2aae61),_0x153230=await _0x512e44[_0x149d6c(0x173)]({'options':{..._0x2aae61,..._0x2064da},'args':[_0x3f6a0a],'tdx':_0x26cbed});gracefulExit(_0x153230);}),agentSyncCmd[a2_0x3bc517(0x19a)](a2_0x3bc517(0x172))['description'](a2_0x3bc517(0x210))['action'](async(_0x555173,_0x320d63)=>{const _0x47651a=a2_0x3bc517,_0x1d1c7a=new LLMAgentDeleteCommand(),_0x201c7f=program[_0x47651a(0x1bd)](),_0x486b9c=await createTDXInstance(_0x201c7f),_0x74383c=await _0x1d1c7a[_0x47651a(0x173)]({'options':{..._0x201c7f,..._0x320d63},'args':[_0x555173],'tdx':_0x486b9c});gracefulExit(_0x74383c);});export{program};export function runCLI(){const _0x267f81=a2_0x3bc517,_0xf139a1=!process['argv'][_0x267f81(0x265)](0x2)[_0x267f81(0x1ea)];showBriefHelp=_0xf139a1,program['parse'](process[_0x267f81(0x167)]),_0xf139a1&&program[_0x267f81(0x169)](),process[_0x267f81(0x207)][_0x267f81(0x16b)]&&process[_0x267f81(0x167)][_0x267f81(0x1ea)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x267f81(0x145)](_0x28429d=>{_0x28429d&&displayUpdateNotification(_0x28429d);})[_0x267f81(0x1cc)](()=>{});}
1
+ const a2_0x597581=a2_0x5212;(function(_0x22eda5,_0x405090){const _0x22af48=a2_0x5212,_0x6a0b26=_0x22eda5();while(!![]){try{const _0x2a2221=parseInt(_0x22af48(0xb3))/0x1+parseInt(_0x22af48(0xdc))/0x2+-parseInt(_0x22af48(0x16a))/0x3*(-parseInt(_0x22af48(0x27a))/0x4)+parseInt(_0x22af48(0x265))/0x5+parseInt(_0x22af48(0x2d9))/0x6*(parseInt(_0x22af48(0x2cd))/0x7)+-parseInt(_0x22af48(0x27d))/0x8*(parseInt(_0x22af48(0x2c2))/0x9)+-parseInt(_0x22af48(0x128))/0xa;if(_0x2a2221===_0x405090)break;else _0x6a0b26['push'](_0x6a0b26['shift']());}catch(_0x404f80){_0x6a0b26['push'](_0x6a0b26['shift']());}}}(a2_0x4cd0,0x9ac18));import{Command}from'commander';function a2_0x4cd0(){const _0x31c2f3=['Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Reason\x20for\x20killing\x20the\x20attempt','use\x20<project-name>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','Make\x20segment\x20invisible\x20(default:\x20visible)','tdx\x20','Alias\x20for\x20--database\x20(natural\x20language\x20style)','claude-4.5-sonnet','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Attempt\x20ID','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','push\x20[parent_or_file]','flatMap','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','noColor','Add\x20behaviors\x20as\x20JSON\x20string','push\x20[file]','replace','-o,\x20--output\x20<dir>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--params\x20<json>','Timezone\x20(e.g.,\x20America/Los_Angeles)','Database\x20name\x20(default:\x20information_schema)','--debug','Filtering\x20rule\x20as\x20JSON\x20string','--rule\x20<json>','Create\x20segment\x20folder','Setup\x20API\x20key\x20authentication\x20interactively','Agent\x20name','Revision\x20name\x20(default:\x20timestamp)','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','List\x20available\x20connector\x20types','parent-segment','Show\x20timeline\x20for\x20specific\x20attempt','push\x20[name]','debug','\x20(resolved\x20to\x20','[attempt-id]','Parent\x20segment\x20description','Options:','--in\x20<database>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--include-stats','Run\x20Trino\x20query\x20with\x20streaming\x20results','Clear\x20workflow\x20project\x20context','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','pull\x20[name]','Show\x20email\x20template\x20details','Delete\x20a\x20workspace','projects\x20[pattern]','--limit\x20<number>','mcp','--timeout\x20<seconds>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','parse','preAction','setup','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Updated\x20timezone','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','show\x20<name>','folders\x20<parent_name>','--resume-from\x20<task>','Show\x20stats\x20for\x20specific\x20stage','Attributes\x20as\x20JSON\x20string','--schedule-option\x20<value>','List\x20all\x20data\x20connections','--version','Run\x20tests\x20for\x20an\x20LLM\x20agent','--behaviors\x20<json>','download\x20<project-name>\x20[output-dir]','us01','models','Segment\x20description','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','statusline','Move\x20to\x20folder','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','agent','Output\x20file\x20path','-r,\x20--recursive','site','Resume\x20from\x20specific\x20task\x20(retry)','Table\x20management\x20commands','argv','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--name\x20<new-name>','buildTime','--parent-folder\x20<name>','upload\x20[project-name-or-dir]','list\x20[pattern]','--reason\x20<text>','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Show\x20connection\x20details\x20by\x20name','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Manage\x20workflow\x20project\x20secrets','--no-eval','validate\x20[name]','description','templates\x20[pattern]','--max-tool-iterations\x20<n>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','isArray','Resume\x20a\x20paused\x20campaign','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','opts','-p,\x20--profile\x20<name>','tasks','folder','--param\x20<key=value>','-d,\x20--database\x20<name>','after','push\x20[target]','project','Name\x20for\x20the\x20new\x20project\x20(required)','Workspace\x20name','Show\x20segment\x20schema\x20(column\x20types)','Updated\x20description','preview\x20[file]','--session\x20<id>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','connections','proxy','--customer-group\x20<json>','segment','--site\x20<site>','Remove\x20API\x20key\x20from\x20system\x20keychain','pull\x20<project>\x20[target-dir]','table','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','slice','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--description\x20<desc>','error','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','--no-color','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','show\x20<job-id>','Skip\x20confirmation\x20prompts','Behaviors\x20from\x20JSON\x20file','history\x20[chat-id]','journey','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--start-at\x20<datetime>','--data\x20<data>','segments\x20[path]','--invisible','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--jsonl',',\x20version\x20','-X,\x20--method\x20<method>','Read\x20SQL\x20query\x20from\x20file','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Unknown\x20action:\x20','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','describe\x20[table]','477445rLcOzi','template','journeys\x20[pattern]','claude\x20[args...]','Maximum\x20tool\x20iterations\x20(default:\x204)','clone\x20[source]','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','required','join','Skip\x20validation\x20of\x20.dig\x20files','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','format','Add\x20attributes\x20as\x20JSON\x20string','forEach','--behavior\x20[name]','Show\x20segment\x20details\x20(alias\x20for\x20view)','Request\x20body\x20as\x20JSON\x20string','engage','Workflow\x20project\x20management','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','686620HCOyZZ','Maximum\x20recursion\x20depth\x20(default:\x2010)','--agent\x20<ref>','4152PokuxX','list\x20[project]','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','catch','databases\x20[pattern]','Overwrite\x20local\x20changes\x20without\x20confirmation','Behaviors\x20as\x20JSON\x20string','--temperature\x20<n>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Output\x20folder\x20(default:\x20{project_name}.llm)','sql\x20[segment_name]','argument','--follow','Resume\x20from\x20specific\x20task','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Workspace\x20name\x20(required)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','update\x20<name-or-id>','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','-y,\x20--yes','Create\x20a\x20new\x20profile','Database\x20management\x20commands','create','logLevel','--tsv','Plaintext\x20template\x20content','clear','--json-columns\x20<cols>','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','show\x20<agent-name>','desc\x20[segment_name]','create\x20<parent_name>\x20<folder_name>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','create\x20<name>','isDirectory','trace','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','-o,\x20--output\x20<file>','Read\x20query\x20from\x20file','Authentication\x20management','-o,\x20--output\x20<folder>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a','list\x20[path]','Output\x20as\x20JSON','Campaign\x20name','Continue\x20most\x20recent\x20conversation','jsonl','addHelpText','view\x20[segment_name]','users','Clear\x20session\x20context','-H,\x20--header\x20<header>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Include\x20retried\x20attempts','get','Open\x20segment\x20in\x20web\x20browser','directory','Preview\x20operation\x20without\x20executing','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','stats\x20<name-or-path>','allowUnknownOption','Validate\x20journey\x20YAML\x20files\x20locally','--session-time\x20<time>','15858ZnWLMu','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Create\x20a\x20new\x20LLM\x20project','--limit\x20<n>','pause\x20<name-or-id>','schema\x20<type>','show\x20<folder_ref>','agents\x20[pattern]','--subject\x20<subject>','--name\x20<new_name>','28WiKiKi','--prompt\x20<text>','tsv','trino','--folder\x20<name>','delete\x20<args...>','--starter-message\x20<text>','--catalog\x20<catalog>','Set\x20a\x20profile\x20configuration\x20value','Email\x20subject\x20template','\x20-\x20built\x20','Show\x20only\x20master\x20table\x20validation','28248hbWWEq','padWidth','workflows\x20[project]','beefree','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','injectIntoOptions','--attributes-file\x20<file>','CDP\x20segment\x20management\x20commands','Create\x20an\x20email\x20template','alias','--skip-validation','--revision\x20<revision>','commandDescription','End\x20time\x20filter\x20(ISO\x208601\x20format)','-f,\x20--file\x20<path>','Open\x20parent\x20segment\x20in\x20web\x20browser','Output\x20directory','Delete\x20an\x20LLM\x20project','--from\x20<timestamp>','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--rule-file\x20<file>','--attribute\x20[name]','--editor-type\x20<type>','grapesjs','Override\x20project\x20name','Skip\x20confirmation\x20prompt','--customer-group-file\x20<file>','--add-attributes\x20<json>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','show\x20[segment_name]','pause\x20<name-or-path>','--model\x20<name>','aliases','auth','includes','Update\x20a\x20workspace','Set\x20or\x20show\x20parent\x20segment\x20context','--reeval','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','view\x20<name-or-path>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','jobs','--llm-proxy\x20[url]','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','stdout','--tags\x20<tags>','requiredOption','result\x20<job-id>','update\x20<agent-name>','Show\x20workspace\x20details','Campaign\x20description','hidden','Show\x20journey\x20details','--name\x20<name>','397279FPWJNa','-C,\x20--directory\x20<path>','chats','Delete\x20a\x20campaign','List\x20all\x20users\x20in\x20the\x20account','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Master\x20table\x20name','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Show\x20the\x20most\x20recent\x20chat','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','use\x20[project]','push\x20[path]','backup\x20<name>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','GET','Workspace\x20description','LLM\x20project\x20management','information_schema','--system-prompt\x20<text>','New\x20campaign\x20name','Submit\x20a\x20job','database','--table','Workflow\x20attempt\x20management','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','-d,\x20--database\x20<database>','LLM\x20agent\x20management','-f,\x20--force','sql\x20[name]','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','--yes','INFO','usage','preview\x20[name]','colorFn','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','--email-sender-id\x20<id>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','filter','2084394AguFOa','api\x20[endpoint]','--master','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','options','--description\x20<text>','sessions\x20[project]','Output\x20file\x20path\x20(default:\x20<name>.yml)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','[options]\x20--\x20[claude-code-args...]','Generate\x20test\x20conversations\x20without\x20evaluation','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','create\x20<segment_name>','Show\x20journey\x20statistics','Pull\x20child\x20segments\x20to\x20YAML\x20files','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','use\x20[resource]\x20[value]','then','Delete\x20an\x20agent','parent','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--enriched','Change\x20to\x20directory\x20before\x20executing\x20command','timeline\x20[project.workflow]','session','--from-task\x20<task>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Pause\x20a\x20running\x20journey','List\x20jobs','repeat','show\x20[table]','\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\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\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','--parent-segment\x20<name>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','isTTY','argumentTerm','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','set','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Workflow\x20session\x20management','port','--kind\x20<type>','Directory\x20does\x20not\x20exist:\x20','push','Run\x20specific\x20tests\x20(comma-separated)','log','Workflow\x20parameter\x20(repeatable)','Follow/watch\x20timeline\x20for\x20running\x20attempts','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--type\x20<api_type>','set\x20<args...>','desc','Custom\x20revision\x20name\x20(default:\x20timestamp)','exit','DEBUG','List\x20all\x20available\x20profiles','AI-native\x20CLI\x20for\x20Treasure\x20Data','attempts\x20[project]','4000','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Path\x20is\x20not\x20a\x20directory:\x20','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--plaintext\x20<text>','-1d','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','campaign','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','fields\x20[name]','Read\x20request\x20body\x20from\x20file','list','Open\x20journey\x20in\x20web\x20browser','Customer\x20group\x20as\x20JSON\x20string','push\x20[source-dir]','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','6920590CIzQUu','Launch\x20a\x20campaign','--add-attributes-file\x20<file>','TRACE','validate\x20[file]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','logs','test\x20[path]','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--timezone\x20<tz>','apiKey','Action:\x20logs,\x20tasks,\x20kill,\x20retry','run\x20[name]','option','Email\x20sender\x20ID\x20for\x20delivery','Show\x20master\x20table\x20sample\x20data','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','--json','-n,\x20--name\x20<name>','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Agent\x20description','sonnet','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','help','use\x20[name]','--table\x20<table>','--include-subtasks','activations\x20<segment_name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','describe','command','restore\x20<folder>','delete\x20<agent-name>','\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','job','--last','run','Pull\x20workflow\x20project\x20to\x20local\x20folder','info\x20[segment_name]','pull\x20[project]\x20[agent-name]','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--format\x20<format>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','New\x20segment\x20name','run\x20[workflow]','map','Agent\x20prompt/instructions','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Database\x20to\x20use\x20(overrides\x20context)','settings\x20<type>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--default','Folder\x20name\x20for\x20organization','resume\x20<name-or-path>','--dry-run','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','action','--stage\x20<name>','--output\x20<file>','commands','set\x20<key=value>','Show\x20job\x20details','--schedule-type\x20<type>','INVALID_ARGUMENT','update\x20<segment_name>','12BMEkth','llm','use\x20<name>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','--include-retried','Preview\x20changes\x20without\x20pushing','connection','chat\x20[message...]','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','name','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','subcommandDescription','\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','0.7','Describe\x20table\x20schema','--add-behaviors-file\x20<file>','Trino\x20catalog\x20(default:\x20td)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Show\x20campaign\x20details','--no-proxy','profile','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','--interval\x20<range>','Push\x20without\x20confirmation','--workspace\x20<name>','_hidden','--full','Start\x20a\x20new\x20chat\x20session','Workflow\x20(Digdag)\x20management\x20commands','length','tables\x20[pattern]','duplicate\x20<name-or-id>','Output\x20as\x20JSON\x20Lines','--attempt-id\x20<id>','gitRevision','List\x20agents\x20in\x20current\x20project','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','--max-depth\x20<depth>','Export\x20journey(s)\x20as\x20YAML\x20files','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--attributes\x20<json>','resume\x20<name-or-id>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','user','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','optionDescription','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','--project\x20<name>','List\x20secret\x20keys\x20for\x20a\x20project','Set\x20operation\x20timeout\x20in\x20seconds','-w,\x20--web','Email\x20template\x20management','outputHelp','--type\x20<type>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Delete\x20an\x20email\x20template','Starter\x20message','--clear','tdx','json','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--job-type\x20<type>','--in\x20<name>','--segment\x20<path>','--status\x20<status>','Filtering\x20rule\x20from\x20JSON\x20file','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','show\x20[name]','show\x20<name-or-id>','-v,\x20--verbose','delete\x20<name-or-id>','Resume\x20a\x20paused\x20journey','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--database\x20<name>','--name\x20<text>','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','desc\x20[name]','padEnd','HTML\x20template\x20content','Add\x20behaviors\x20from\x20JSON\x20file','subcommandTerm'];a2_0x4cd0=function(){return _0x31c2f3;};return a2_0x4cd0();}import{existsSync,statSync}from'fs';import{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{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.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{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-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{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-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{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x597581(0x219)][a2_0x597581(0x2fc)](a2_0x597581(0x208))){let versionOutput=a2_0x597581(0x1c9)+currentVersion;buildInfo[a2_0x597581(0x18d)]&&!currentVersion[a2_0x597581(0x2fc)](buildInfo[a2_0x597581(0x18d)])&&(versionOutput+='\x20('+buildInfo[a2_0x597581(0x18d)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x597581(0x2d7)+buildInfo[a2_0x597581(0x21c)]),console[a2_0x597581(0x10a)](versionOutput),process[a2_0x597581(0x112)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x597581(0x115);buildInfo['gitRevision']&&!currentVersion[a2_0x597581(0x2fc)](buildInfo[a2_0x597581(0x18d)])?description+=a2_0x597581(0x25e)+currentVersion+'\x20('+buildInfo[a2_0x597581(0x18d)]+')':description+=',\x20version\x20'+currentVersion;program[a2_0x597581(0x173)]('tdx')[a2_0x597581(0x227)](description),program['option'](a2_0x597581(0xb4),a2_0x597581(0xf3))[a2_0x597581(0x135)](a2_0x597581(0x230),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')['option'](a2_0x597581(0x243),a2_0x597581(0x1d7),a2_0x597581(0x20c))['option'](a2_0x597581(0x152),a2_0x597581(0x17f))['option'](a2_0x597581(0xcb),a2_0x597581(0x1ce))[a2_0x597581(0x135)](a2_0x597581(0x139),a2_0x597581(0x261))[a2_0x597581(0x135)]('--jsonl',a2_0x597581(0x1a6))[a2_0x597581(0x135)](a2_0x597581(0x297),a2_0x597581(0x22a))['option'](a2_0x597581(0x163),'Save\x20output\x20to\x20file')['option'](a2_0x597581(0x1f7),a2_0x597581(0xcd))[a2_0x597581(0x135)]('--color',a2_0x597581(0x174),![])[a2_0x597581(0x135)](a2_0x597581(0x250),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x597581(0x135)](a2_0x597581(0x1b6),'Enable\x20verbose\x20logging',![])[a2_0x597581(0x135)](a2_0x597581(0x1db),a2_0x597581(0x20f))[a2_0x597581(0x135)]('--trace','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x597581(0x135)](a2_0x597581(0x1f9),a2_0x597581(0x1a1),'30')[a2_0x597581(0x135)](a2_0x597581(0x15f),a2_0x597581(0x2bc),![])[a2_0x597581(0x135)](a2_0x597581(0x292),a2_0x597581(0x253),![])[a2_0x597581(0x135)](a2_0x597581(0x23d),a2_0x597581(0x180))[a2_0x597581(0x135)](a2_0x597581(0x234),a2_0x597581(0x159))['option'](a2_0x597581(0x1ae),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x597581(0xfd),a2_0x597581(0x153))['option']('--llm-project\x20<name>',a2_0x597581(0xf1)),program['configureHelp']({'formatHelp':(_0x10e48a,_0x185e0a)=>{const _0x3c73d6=a2_0x597581,_0x281990=_0x185e0a[_0x3c73d6(0x2da)](_0x10e48a,_0x185e0a),_0xa324fd=0x2,_0xd052ac=0x2;function _0x4a6e67(_0x106d80){const _0x8ff546=_0x3c73d6,_0x41cff5=_0x106d80;return!!(_0x41cff5[_0x8ff546(0x184)]||_0x41cff5[_0x8ff546(0xb0)]);}function _0x3b3a92(_0x3341d1,_0x535225){const _0x1b8d1a=_0x3c73d6;if(_0x535225){const _0x2f93dc=''+_0x3341d1[_0x1b8d1a(0x1be)](_0x281990+_0xd052ac)+_0x535225;return _0x2f93dc;}return _0x3341d1;}function _0x4a6294(_0x49cf23){const _0x57dd52=_0x3c73d6;return _0x49cf23['join']('\x0a')[_0x57dd52(0x1d5)](/^/gm,'\x20'[_0x57dd52(0xfa)](_0xa324fd));}const _0x12f62a=[];_0x12f62a['push']('Usage:\x20'+_0x185e0a['commandUsage'](_0x10e48a));const _0x5ac390=_0x185e0a[_0x3c73d6(0x2e5)](_0x10e48a);_0x5ac390&&(_0x12f62a[_0x3c73d6(0x108)](''),_0x12f62a[_0x3c73d6(0x108)](_0x5ac390));const _0x157fd7=_0x10e48a['commands']['filter'](_0x362f77=>!_0x4a6e67(_0x362f77));if(_0x157fd7[_0x3c73d6(0x188)]>0x0){if(_0x10e48a[_0x3c73d6(0x173)]()===_0x3c73d6(0x1aa)){const _0x55673a=_0x10e48a[_0x3c73d6(0x22f)](),_0xc0724c=!_0x55673a[_0x3c73d6(0x1d2)]&&process[_0x3c73d6(0xa9)][_0x3c73d6(0xff)],_0x5c7a4e=COMMAND_CATEGORIES,_0x2573d9=(_0x3ddf10,_0x1f6b90)=>_0xc0724c?_0x1f6b90(_0x3ddf10):_0x3ddf10,_0x376c7d=new Map();_0x157fd7[_0x3c73d6(0x272)](_0x5843a9=>{const _0x46af9b=_0x3c73d6;_0x376c7d[_0x46af9b(0x102)](_0x5843a9[_0x46af9b(0x173)](),_0x5843a9);}),_0x5c7a4e[_0x3c73d6(0x272)](_0x477310=>{const _0x35c930=_0x3c73d6,_0xa1e520=_0x477310[_0x35c930(0x164)][_0x35c930(0x1d0)](_0x1ac2be=>_0x376c7d[_0x35c930(0x2b9)](_0x1ac2be)??[]);if(_0xa1e520[_0x35c930(0x188)]>0x0){_0x12f62a[_0x35c930(0x108)](''),_0x12f62a['push'](_0x2573d9(_0x477310['name']+':',_0x477310[_0x35c930(0xd7)]));const _0x3f5166=_0xa1e520['map'](_0x411e2a=>{const _0xdfbdea=_0x35c930,_0xb8af66=_0x185e0a['subcommandTerm'](_0x411e2a),_0x4729ed=_0x185e0a[_0xdfbdea(0x175)](_0x411e2a);return _0x3b3a92(_0xb8af66,_0x4729ed);});_0x12f62a['push'](_0x4a6294(_0x3f5166));}}),_0x12f62a[_0x3c73d6(0x108)](''),_0x12f62a[_0x3c73d6(0x108)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x3cc5a2=_0x157fd7['map'](_0x41c8c5=>{const _0x42ca35=_0x3c73d6,_0x3dd109=_0x185e0a[_0x42ca35(0x1c1)](_0x41c8c5),_0x4f6cdb=_0x185e0a[_0x42ca35(0x175)](_0x41c8c5);return _0x3b3a92(_0x3dd109,_0x4f6cdb);});_0x12f62a['push'](''),_0x12f62a['push']('Commands:'),_0x12f62a[_0x3c73d6(0x108)](_0x4a6294(_0x3cc5a2));}}if(showBriefHelp&&_0x10e48a[_0x3c73d6(0x173)]()===_0x3c73d6(0x1aa))_0x12f62a[_0x3c73d6(0x108)](''),_0x12f62a['push'](_0x3c73d6(0x24a));else{const _0x3312e0=_0x10e48a[_0x3c73d6(0xe0)][_0x3c73d6(0xdb)](_0x45bd22=>!_0x4a6e67(_0x45bd22));if(_0x3312e0[_0x3c73d6(0x188)]>0x0){const _0x3f425d=_0x3312e0['map'](_0x59f20a=>{const _0x1a35ae=_0x3c73d6,_0x22ab26=_0x185e0a['optionTerm'](_0x59f20a),_0x4a0419=_0x185e0a[_0x1a35ae(0x19d)](_0x59f20a);return _0x3b3a92(_0x22ab26,_0x4a0419);});_0x12f62a['push'](''),_0x12f62a[_0x3c73d6(0x108)](_0x3c73d6(0x1ec)),_0x12f62a[_0x3c73d6(0x108)](_0x4a6294(_0x3f425d));}}const _0x4d512d=(_0x10e48a['registeredArguments']||[])[_0x3c73d6(0xdb)](_0x51dcee=>!_0x4a6e67(_0x51dcee));if(_0x4d512d[_0x3c73d6(0x188)]>0x0){const _0x586f55=_0x4d512d[_0x3c73d6(0x156)](_0xcb19ca=>{const _0x10c084=_0x3c73d6,_0x416620=_0x185e0a[_0x10c084(0x100)](_0xcb19ca),_0xb000fb=_0x185e0a['argumentDescription'](_0xcb19ca);return _0x3b3a92(_0x416620,_0xb000fb);});_0x12f62a['push'](''),_0x12f62a[_0x3c73d6(0x108)]('Arguments:'),_0x12f62a[_0x3c73d6(0x108)](_0x4a6294(_0x586f55));}return _0x12f62a[_0x3c73d6(0x26d)]('\x0a')+'\x0a';},'subcommandTerm':_0x1265da=>{const _0x2d08b6=a2_0x597581,_0x495333=(_0x1265da['registeredArguments']||[])[_0x2d08b6(0x156)](_0x501a35=>_0x501a35[_0x2d08b6(0x26c)]?'<'+_0x501a35[_0x2d08b6(0x173)]()+'>':'['+_0x501a35['name']()+']')[_0x2d08b6(0x26d)]('\x20'),_0x951889=_0x1265da[_0x2d08b6(0x2fa)](),_0x3eef4f=_0x951889['length']>0x0?_0x1265da[_0x2d08b6(0x173)]()+',\x20'+_0x951889[_0x2d08b6(0x26d)](',\x20'):_0x1265da[_0x2d08b6(0x173)]();return _0x495333?_0x3eef4f+'\x20'+_0x495333:_0x3eef4f;}}),program['hook'](a2_0x597581(0x1fc),_0x1337b2=>{const _0x148906=a2_0x597581,_0x3a2899=_0x1337b2[_0x148906(0x22f)]();if(_0x3a2899['directory']){const _0x524542=resolve(_0x3a2899[_0x148906(0x2bb)]),_0x1b4620=_0x524542!==_0x3a2899[_0x148906(0x2bb)]?_0x148906(0x1e9)+_0x524542+')':'';if(!existsSync(_0x524542))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x148906(0x107)+_0x3a2899[_0x148906(0x2bb)]+_0x1b4620,undefined,{'helpText':_0x148906(0x24f)});const _0x3b03fa=statSync(_0x524542);if(!_0x3b03fa[_0x148906(0x2a2)]())throw new SDKError(ErrorCode[_0x148906(0x168)],_0x148906(0x119)+_0x3a2899[_0x148906(0x2bb)]+_0x1b4620,undefined,{'helpText':_0x148906(0x285)});process['chdir'](_0x524542);}if(!_0x3a2899[_0x148906(0x270)]){if(_0x3a2899['table'])_0x3a2899[_0x148906(0x270)]=_0x148906(0x246);else{if(_0x3a2899[_0x148906(0x1ab)])_0x3a2899[_0x148906(0x270)]=_0x148906(0x1ab);else{if(_0x3a2899[_0x148906(0x2b1)])_0x3a2899[_0x148906(0x270)]=_0x148906(0x2b1);else _0x3a2899[_0x148906(0x2cf)]&&(_0x3a2899[_0x148906(0x270)]=_0x148906(0x2cf));}}}_0x3a2899['in']&&!_0x3a2899[_0x148906(0xca)]&&(_0x3a2899['database']=_0x3a2899['in']);if(_0x3a2899[_0x148906(0x2a3)])_0x3a2899[_0x148906(0x296)]=LogLevel[_0x148906(0x12b)];else{if(_0x3a2899[_0x148906(0x1e8)])_0x3a2899[_0x148906(0x296)]=LogLevel[_0x148906(0x113)];else _0x3a2899[_0x148906(0x296)]===undefined&&(_0x3a2899[_0x148906(0x296)]=LogLevel[_0x148906(0xd4)]);}});async function createTDXInstance(_0x25fd6b){const _0x2e3371=a2_0x597581,_0x1bffda=await GlobalContext['createAsync'](_0x25fd6b);return _0x1bffda[_0x2e3371(0x2de)](_0x25fd6b),TDX['create']({'site':_0x1bffda[_0x2e3371(0x216)],'apiKey':_0x1bffda[_0x2e3371(0x132)],'logLevel':_0x1bffda[_0x2e3371(0x296)],'profile':_0x1bffda[_0x2e3371(0x17e)]});}const databaseCmd=program[a2_0x597581(0x146)]('database')[a2_0x597581(0x2e2)]('db')[a2_0x597581(0x227)](a2_0x597581(0x294)),databaseListAction=async(_0x33f1ca,_0x1e9516)=>{const _0xdf8156=a2_0x597581,_0x43c69f=new DatabasesCommand(),_0x10e710=program['opts'](),_0x1e242d=await createTDXInstance(_0x10e710),_0x5cb408=await _0x43c69f[_0xdf8156(0x14c)]({'options':{..._0x10e710,..._0x1e9516},'args':_0x33f1ca?[_0x33f1ca]:[],'tdx':_0x1e242d});gracefulExit(_0x5cb408);};databaseCmd[a2_0x597581(0x146)]('list\x20[pattern]')[a2_0x597581(0x227)](a2_0x597581(0x29b))[a2_0x597581(0x161)](databaseListAction),program[a2_0x597581(0x146)](a2_0x597581(0x281),{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x597581(0x161)](databaseListAction),program[a2_0x597581(0x146)](a2_0x597581(0x171))['description']('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x597581(0x135)](a2_0x597581(0x27c),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x597581(0x135)]('--new',a2_0x597581(0x186))[a2_0x597581(0x161)](async(_0x5d0c03,_0x48104a)=>{const _0x51b8d4=a2_0x597581,_0x31e63f=new ChatCommand(),_0x3d7762=program[_0x51b8d4(0x22f)](),_0x1d209c=await createTDXInstance(_0x3d7762),_0x15e483=await _0x31e63f[_0x51b8d4(0x14c)]({'options':{..._0x3d7762,..._0x48104a},'args':_0x5d0c03,'tdx':_0x1d209c});gracefulExit(_0x15e483);});const apiCmd=program[a2_0x597581(0x146)](a2_0x597581(0xdd))['summary']('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x597581(0x2b2)](a2_0x597581(0x235),a2_0x597581(0x176))[a2_0x597581(0x135)](a2_0x597581(0x25f),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x597581(0xc3))[a2_0x597581(0x135)](a2_0x597581(0x259),a2_0x597581(0x275))[a2_0x597581(0x135)](a2_0x597581(0x2e7),a2_0x597581(0x122))[a2_0x597581(0x135)](a2_0x597581(0x2b6),a2_0x597581(0x118),(_0x381024,_0x5ce514)=>{return _0x5ce514?[..._0x5ce514,_0x381024]:[_0x381024];})[a2_0x597581(0x135)](a2_0x597581(0x10e),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x597581(0x161)](async(_0x5bb0af,_0x375369)=>{const _0x25c211=a2_0x597581;if(!_0x5bb0af){apiCmd[_0x25c211(0x13f)]();return;}const _0xcb6651=new ApiCommand(),_0x4d1a69=program[_0x25c211(0x22f)](),_0x129bfd=await createTDXInstance(_0x4d1a69),_0x37e6d9=await _0xcb6651['run']({'options':{..._0x4d1a69,..._0x375369},'args':[_0x5bb0af],'tdx':_0x129bfd});gracefulExit(_0x37e6d9);});program[a2_0x597581(0x146)](a2_0x597581(0x1f8))[a2_0x597581(0x227)]('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')[a2_0x597581(0x2b2)](a2_0x597581(0x235),a2_0x597581(0x1e2))[a2_0x597581(0x161)](async _0x197437=>{const _0x59e6f0=a2_0x597581,_0x94b1cc=new MCPCommand(),_0x19a30c=program[_0x59e6f0(0x22f)](),_0x3a1196=await createTDXInstance(_0x19a30c),_0x49b81c=await _0x94b1cc[_0x59e6f0(0x14c)]({'options':{..._0x19a30c,..._0x197437},'args':[],'tdx':_0x3a1196});gracefulExit(_0x49b81c);});const tableCmd=program[a2_0x597581(0x146)](a2_0x597581(0x246))['description'](a2_0x597581(0x218)),tableListAction=async(_0x5a891c,_0x545ca3)=>{const _0x503978=a2_0x597581,_0x3592fe=new TablesCommand(),_0x37a4c8=program[_0x503978(0x22f)](),_0x37760e=await createTDXInstance(_0x37a4c8);_0x545ca3['in']&&(_0x545ca3[_0x503978(0xca)]=_0x545ca3['in']);const _0x39e963=await _0x3592fe['run']({'options':{..._0x37a4c8,..._0x545ca3},'args':_0x5a891c?[_0x5a891c]:[],'tdx':_0x37760e});gracefulExit(_0x39e963);};tableCmd['command'](a2_0x597581(0x21f))[a2_0x597581(0x227)](a2_0x597581(0x2ec))[a2_0x597581(0x135)](a2_0x597581(0xce),a2_0x597581(0x28b))['option'](a2_0x597581(0x1ed),a2_0x597581(0x1ca))[a2_0x597581(0x161)](tableListAction),program[a2_0x597581(0x146)](a2_0x597581(0x189),{'hidden':!![]})[a2_0x597581(0x227)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x597581(0x135)](a2_0x597581(0xce),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x597581(0x135)](a2_0x597581(0x1ed),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x597581(0x161)](tableListAction),program[a2_0x597581(0x146)](a2_0x597581(0xfb))['description'](a2_0x597581(0x1e3))[a2_0x597581(0x135)]('-d,\x20--database\x20<database>',a2_0x597581(0x300))[a2_0x597581(0x135)](a2_0x597581(0x1ed),a2_0x597581(0x1ca))[a2_0x597581(0x161)](async(_0x366e2e,_0x55b2a8)=>{const _0x2f188e=a2_0x597581,_0x3d38a6=new ShowCommand(),_0x2f0240=program[_0x2f188e(0x22f)](),_0x1977d1=await createTDXInstance(_0x2f0240);_0x55b2a8['in']&&(_0x55b2a8['database']=_0x55b2a8['in']);const _0x11463b=await _0x3d38a6[_0x2f188e(0x14c)]({'options':{..._0x2f0240,..._0x55b2a8},'args':_0x366e2e?[_0x366e2e]:[],'tdx':_0x1977d1});gracefulExit(_0x11463b);}),program[a2_0x597581(0x146)](a2_0x597581(0x264))[a2_0x597581(0x2e2)](a2_0x597581(0x110))[a2_0x597581(0x227)](a2_0x597581(0x178))[a2_0x597581(0x135)](a2_0x597581(0xce),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option'](a2_0x597581(0x1ed),a2_0x597581(0x1ca))[a2_0x597581(0x161)](async(_0x57b280,_0x64df06)=>{const _0x47895d=a2_0x597581,_0x23cbb7=new DescribeCommand(),_0xcfa2cb=program['opts'](),_0x354b9d=await createTDXInstance(_0xcfa2cb);_0x64df06['in']&&(_0x64df06['database']=_0x64df06['in']);const _0x5c920e=await _0x23cbb7[_0x47895d(0x14c)]({'options':{..._0xcfa2cb,..._0x64df06},'args':_0x57b280?[_0x57b280]:[],'tdx':_0x354b9d});gracefulExit(_0x5c920e);}),program[a2_0x597581(0x146)]('query\x20[sql]')['description'](a2_0x597581(0x1f0))[a2_0x597581(0x135)](a2_0x597581(0xce),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x597581(0x135)](a2_0x597581(0x1ed),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x597581(0x135)](a2_0x597581(0x2d4),a2_0x597581(0x17a))[a2_0x597581(0x135)](a2_0x597581(0x2e7),a2_0x597581(0x260))[a2_0x597581(0x135)]('--limit\x20<rows>',a2_0x597581(0x257),'40')[a2_0x597581(0x161)](async(_0x44eb94,_0x795e26)=>{const _0x1a6a01=a2_0x597581,_0xecad7=new QueryCommand(),_0x3f8647=program[_0x1a6a01(0x22f)](),_0x1d6e24=await createTDXInstance(_0x3f8647);_0x795e26['in']&&(_0x795e26[_0x1a6a01(0xca)]=_0x795e26['in']);const _0x208b7f=await _0xecad7[_0x1a6a01(0x14c)]({'options':{..._0x3f8647,..._0x795e26},'args':_0x44eb94?[_0x44eb94]:[],'tdx':_0x1d6e24});gracefulExit(_0x208b7f);});const segmentCmd=program[a2_0x597581(0x146)](a2_0x597581(0x242))[a2_0x597581(0x2e2)]('sg')['description'](a2_0x597581(0x2e0)),segmentListAction=async(_0x6ef25e,_0x4444c5)=>{const _0x3497bd=a2_0x597581,_0x5eb5ae=new SegmentsCommand(),_0x104ff4=program[_0x3497bd(0x22f)](),_0x8537c2=await createTDXInstance(_0x104ff4),_0x5de68f=await _0x5eb5ae[_0x3497bd(0x14c)]({'options':{..._0x104ff4,..._0x4444c5},'args':_0x6ef25e?[_0x6ef25e]:[],'tdx':_0x8537c2});gracefulExit(_0x5de68f);};function a2_0x5212(_0x500282,_0x41ff28){_0x500282=_0x500282-0xa6;const _0x4cd02d=a2_0x4cd0();let _0x521230=_0x4cd02d[_0x500282];return _0x521230;}segmentCmd[a2_0x597581(0x146)](a2_0x597581(0x2ad))['description'](a2_0x597581(0x2a6))[a2_0x597581(0x135)]('-r,\x20--recursive',a2_0x597581(0xda))[a2_0x597581(0x135)](a2_0x597581(0x193),a2_0x597581(0x27b),'10')['action'](segmentListAction),program['command'](a2_0x597581(0x25a),{'hidden':!![]})[a2_0x597581(0x227)](a2_0x597581(0x11b))[a2_0x597581(0x135)](a2_0x597581(0x215),a2_0x597581(0xda))[a2_0x597581(0x135)](a2_0x597581(0x193),a2_0x597581(0x27b),'10')[a2_0x597581(0x161)](segmentListAction),segmentCmd[a2_0x597581(0x146)]('use\x20<path>',{'hidden':!![]})[a2_0x597581(0x227)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x597581(0x161)](async(_0x2571af,_0x2683bb)=>{const _0x3bbdc1=a2_0x597581,_0x101ccd=new SegmentUseCommand(),_0x5a1cee=program[_0x3bbdc1(0x22f)](),_0x3ad4de=await createTDXInstance(_0x5a1cee),_0x317a65=await _0x101ccd['run']({'options':{..._0x5a1cee,..._0x2683bb},'args':[_0x2571af],'tdx':_0x3ad4de});gracefulExit(_0x317a65);});const segmentViewAction=async(_0x52211b,_0x19d2a6)=>{const _0x4f43e9=a2_0x597581,_0x33b99e=new SegmentViewCommand(),_0x1145d6=program[_0x4f43e9(0x22f)](),_0x25d91a=await createTDXInstance(_0x1145d6),_0x2aeda6=await _0x33b99e[_0x4f43e9(0x14c)]({'options':{..._0x1145d6,..._0x19d2a6},'args':_0x52211b?[_0x52211b]:[],'tdx':_0x25d91a});gracefulExit(_0x2aeda6);};segmentCmd[a2_0x597581(0x146)](a2_0x597581(0x2b3))['description'](a2_0x597581(0x278))[a2_0x597581(0x135)]('-w,\x20--web',a2_0x597581(0x2ba))[a2_0x597581(0x161)](segmentViewAction),segmentCmd[a2_0x597581(0x146)](a2_0x597581(0x14e),{'hidden':!![]})[a2_0x597581(0x2e2)](a2_0x597581(0x145))['option']('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')[a2_0x597581(0x227)](a2_0x597581(0x274))['action'](segmentViewAction),segmentCmd[a2_0x597581(0x146)](a2_0x597581(0x29d))[a2_0x597581(0x227)](a2_0x597581(0x23a))['action'](async(_0x20f19a,_0x5616c9)=>{const _0x2deec0=new SegmentDescCommand(),_0x592d09=program['opts'](),_0x70c521=await createTDXInstance(_0x592d09),_0x2d5102=await _0x2deec0['run']({'options':{..._0x592d09,..._0x5616c9},'args':_0x20f19a?[_0x20f19a]:[],'tdx':_0x70c521});gracefulExit(_0x2d5102);}),segmentCmd['command'](a2_0x597581(0x2f7))[a2_0x597581(0x227)](a2_0x597581(0xf7))[a2_0x597581(0x161)](async(_0x3fa0bf,_0x1fa990)=>{const _0xa60acd=a2_0x597581,_0x250ac2=new SegmentShowCommand(),_0xc343cc=program[_0xa60acd(0x22f)](),_0x430d2e=await createTDXInstance(_0xc343cc),_0x1789f7=await _0x250ac2['run']({'options':{..._0xc343cc,..._0x1fa990},'args':_0x3fa0bf?[_0x3fa0bf]:[],'tdx':_0x430d2e});gracefulExit(_0x1789f7);}),segmentCmd['command'](a2_0x597581(0x202),{'hidden':!![]})[a2_0x597581(0x227)](a2_0x597581(0x303))[a2_0x597581(0x161)](async(_0x27e577,_0x40e576)=>{const _0x1a1a90=a2_0x597581,_0x43f763=new SegmentFolderListCommand(),_0x2d4c3e=program[_0x1a1a90(0x22f)](),_0x34a7f6=await createTDXInstance(_0x2d4c3e),_0x6de9aa=await _0x43f763[_0x1a1a90(0x14c)]({'options':{..._0x2d4c3e,..._0x40e576},'args':[_0x27e577],'tdx':_0x34a7f6});gracefulExit(_0x6de9aa);});const folderCmd=segmentCmd['command'](a2_0x597581(0x232),{'hidden':!![]})['description']('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x597581(0x146)](a2_0x597581(0x2c9))[a2_0x597581(0x227)](a2_0x597581(0x22d))['action'](async(_0x1c3411,_0xf51d33)=>{const _0x93802d=new SegmentFolderShowCommand(),_0x2d3eb9=program['opts'](),_0x43890c=await createTDXInstance(_0x2d3eb9),_0x4cc1a5=await _0x93802d['run']({'options':{..._0x2d3eb9,..._0xf51d33},'args':[_0x1c3411],'tdx':_0x43890c});gracefulExit(_0x4cc1a5);}),segmentCmd[a2_0x597581(0x146)](a2_0x597581(0x287))[a2_0x597581(0x227)](a2_0x597581(0x1c3))[a2_0x597581(0x161)](async(_0x4d2777,_0x33cf1f)=>{const _0x1a4b87=a2_0x597581,_0x4cac8b=new SegmentSQLCommand(),_0x2fd380=program[_0x1a4b87(0x22f)](),_0x43e0c1=await createTDXInstance(_0x2fd380),_0x22bbe4=await _0x4cac8b[_0x1a4b87(0x14c)]({'options':{..._0x2fd380,..._0x33cf1f},'args':_0x4d2777?[_0x4d2777]:[],'tdx':_0x43e0c1});gracefulExit(_0x22bbe4);}),segmentCmd[a2_0x597581(0x146)]('fields\x20[parent_name]')[a2_0x597581(0x227)](a2_0x597581(0x25c))['action'](async(_0x3ef381,_0x1f36d5)=>{const _0x1d92e5=a2_0x597581,_0x1c7f8b=new SegmentFieldsCommand(),_0x52f2f3=program[_0x1d92e5(0x22f)](),_0x15e4bc=await createTDXInstance(_0x52f2f3),_0x2a03f6=await _0x1c7f8b['run']({'options':{..._0x52f2f3,..._0x1f36d5},'args':_0x3ef381?[_0x3ef381]:[],'tdx':_0x15e4bc});gracefulExit(_0x2a03f6);}),segmentCmd['command']('pull\x20[parent_or_file]')[a2_0x597581(0x227)](a2_0x597581(0xea))[a2_0x597581(0x135)](a2_0x597581(0x292),a2_0x597581(0x253))[a2_0x597581(0x135)](a2_0x597581(0x15f),a2_0x597581(0x2f6))[a2_0x597581(0x161)](async(_0x2149f6,_0x42a7d7)=>{const _0x348388=a2_0x597581,_0x332cbb=new SegmentPullCommand(),_0x3bef9b=program[_0x348388(0x22f)](),_0x1a895c=await createTDXInstance(_0x3bef9b),_0x217b41=await _0x332cbb['run']({'options':{..._0x3bef9b,..._0x42a7d7},'args':_0x2149f6?[_0x2149f6]:[],'tdx':_0x1a895c});gracefulExit(_0x217b41);}),segmentCmd[a2_0x597581(0x146)](a2_0x597581(0x1cf))[a2_0x597581(0x227)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x597581(0x135)](a2_0x597581(0x292),'Skip\x20confirmation\x20prompts')[a2_0x597581(0x135)]('--dry-run',a2_0x597581(0x2f6))[a2_0x597581(0x135)]('--delete',a2_0x597581(0xa8))['action'](async(_0x39ab6a,_0x6af799)=>{const _0x40b151=a2_0x597581,_0x1654f8=new SegmentPushCommand(),_0x1700ae=program[_0x40b151(0x22f)](),_0x485ea8=await createTDXInstance(_0x1700ae),_0x3261dd=await _0x1654f8[_0x40b151(0x14c)]({'options':{..._0x1700ae,..._0x6af799},'args':_0x39ab6a?[_0x39ab6a]:[],'tdx':_0x485ea8});gracefulExit(_0x3261dd);}),segmentCmd[a2_0x597581(0x146)]('validate\x20[target]')[a2_0x597581(0x227)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')[a2_0x597581(0x161)](async(_0x3edb7c,_0x2ab0c5)=>{const _0x2b92b5=a2_0x597581,_0x529b26=new SegmentValidateCommand(),_0x38d521=program[_0x2b92b5(0x22f)](),_0x58f94f=await createTDXInstance(_0x38d521),_0x56f46b=await _0x529b26['run']({'options':{..._0x38d521,..._0x2ab0c5},'args':_0x3edb7c?[_0x3edb7c]:[],'tdx':_0x58f94f});gracefulExit(_0x56f46b);}),segmentCmd[a2_0x597581(0x146)](a2_0x597581(0xe8),{'hidden':!![]})['description'](a2_0x597581(0x2dd))['option'](a2_0x597581(0xe1),a2_0x597581(0x20e))[a2_0x597581(0x135)](a2_0x597581(0x1dd),a2_0x597581(0x1dc))['option'](a2_0x597581(0x2ee),a2_0x597581(0x1b1))[a2_0x597581(0x135)](a2_0x597581(0x2d1),a2_0x597581(0x15d))['option'](a2_0x597581(0x106),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x597581(0x135)](a2_0x597581(0x25b),a2_0x597581(0x1c8))[a2_0x597581(0x135)]('--no-count-population','Skip\x20population\x20counting')['action'](async(_0x20b2aa,_0x5d18a6)=>{const _0x4abfb3=a2_0x597581,_0x5c5d50=new SegmentCreateCommand(),_0x4f196b=program[_0x4abfb3(0x22f)](),_0x2ceb54=await createTDXInstance(_0x4f196b),_0x244053=await _0x5c5d50['run']({'options':{..._0x4f196b,..._0x5d18a6},'args':[_0x20b2aa],'tdx':_0x2ceb54});gracefulExit(_0x244053);}),segmentCmd[a2_0x597581(0x146)](a2_0x597581(0x169),{'hidden':!![]})[a2_0x597581(0x227)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x597581(0x135)](a2_0x597581(0x2cc),a2_0x597581(0x154))[a2_0x597581(0x135)](a2_0x597581(0xe1),a2_0x597581(0x23b))[a2_0x597581(0x135)](a2_0x597581(0x1dd),a2_0x597581(0x192))[a2_0x597581(0x135)](a2_0x597581(0x2ee),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x597581(0x135)](a2_0x597581(0x2d1),a2_0x597581(0x211))[a2_0x597581(0x135)](a2_0x597581(0x106),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x597581(0x161)](async(_0x24f7a4,_0x4a083e)=>{const _0x466c03=a2_0x597581,_0x150cb7=new SegmentUpdateCommand(),_0x33b398=program[_0x466c03(0x22f)](),_0x4872a6=await createTDXInstance(_0x33b398),_0x289da1=await _0x150cb7[_0x466c03(0x14c)]({'options':{..._0x33b398,..._0x4a083e},'args':[_0x24f7a4],'tdx':_0x4872a6});gracefulExit(_0x289da1);});const parentCmd=segmentCmd[a2_0x597581(0x146)](a2_0x597581(0xef),{'hidden':!![]})[a2_0x597581(0x227)](a2_0x597581(0x223)),parentListAction=async(_0x4e56e4,_0x2ee191)=>{const _0x85ba6=a2_0x597581,_0xdb069e=new ParentSegmentListCommand(),_0x1a985f=program['opts'](),_0x4ef1e0=await createTDXInstance(_0x1a985f),_0x3b7836=await _0xdb069e[_0x85ba6(0x14c)]({'options':{..._0x1a985f,..._0x2ee191},'args':_0x4e56e4?[_0x4e56e4]:[],'tdx':_0x4ef1e0});gracefulExit(_0x3b7836);};parentCmd[a2_0x597581(0x146)](a2_0x597581(0x21f))['description']('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),segmentCmd['command']('parents\x20[pattern]',{'hidden':!![]})['description']('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x597581(0x161)](parentListAction),parentCmd[a2_0x597581(0x146)](a2_0x597581(0x1f3))[a2_0x597581(0x227)](a2_0x597581(0xc2))[a2_0x597581(0x135)](a2_0x597581(0x2a7),a2_0x597581(0xe3))[a2_0x597581(0x135)](a2_0x597581(0x292),a2_0x597581(0x2f3))[a2_0x597581(0x161)](async(_0x3a09f4,_0x337c34)=>{const _0x40ea09=a2_0x597581,_0x2de276=new ParentSegmentPullCommand(),_0x5f2015=program[_0x40ea09(0x22f)](),_0xbbd73a=await createTDXInstance(_0x5f2015),_0x1f71ce=await _0x2de276[_0x40ea09(0x14c)]({'options':{..._0x5f2015,..._0x337c34},'args':_0x3a09f4?[_0x3a09f4]:[],'tdx':_0xbbd73a});gracefulExit(_0x1f71ce);}),parentCmd[a2_0x597581(0x146)](a2_0x597581(0x1d4))['description'](a2_0x597581(0x263))['option'](a2_0x597581(0x292),a2_0x597581(0x2f3))[a2_0x597581(0x161)](async(_0x5cb70f,_0x4fdca1)=>{const _0x594378=a2_0x597581,_0x30e522=new ParentSegmentPushCommand(),_0x3f7aaa=program[_0x594378(0x22f)](),_0x343b7d=await createTDXInstance(_0x3f7aaa),_0x1c2ca3=await _0x30e522[_0x594378(0x14c)]({'options':{..._0x3f7aaa,..._0x4fdca1},'args':_0x5cb70f?[_0x5cb70f]:[],'tdx':_0x343b7d});gracefulExit(_0x1c2ca3);}),parentCmd['command'](a2_0x597581(0x12c))[a2_0x597581(0x227)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x597581(0x135)](a2_0x597581(0xde),a2_0x597581(0x2d8))[a2_0x597581(0x135)](a2_0x597581(0x2ef),a2_0x597581(0x2ab))[a2_0x597581(0x135)](a2_0x597581(0x273),a2_0x597581(0xe7))[a2_0x597581(0x135)](a2_0x597581(0xf2),a2_0x597581(0x190))['option']('--interval\x20<range>',a2_0x597581(0x144),'-1d')['action'](async(_0x5f232a,_0x2c503e)=>{const _0x8438b0=a2_0x597581,_0x4bb605=new ParentSegmentValidateCommand(),_0x293355=program['opts'](),_0x49acf8=await createTDXInstance(_0x293355),_0x10e973=await _0x4bb605[_0x8438b0(0x14c)]({'options':{..._0x293355,..._0x2c503e},'args':_0x5f232a?[_0x5f232a]:[],'tdx':_0x49acf8});gracefulExit(_0x10e973);}),parentCmd[a2_0x597581(0x146)](a2_0x597581(0x23c))['description'](a2_0x597581(0x27f))['option']('--master',a2_0x597581(0x137))[a2_0x597581(0x135)](a2_0x597581(0x2ef),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x597581(0x135)](a2_0x597581(0x273),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x597581(0xf2),a2_0x597581(0x103))[a2_0x597581(0x135)](a2_0x597581(0x181),a2_0x597581(0x144),'-1d')[a2_0x597581(0x161)](async(_0x1a2e33,_0x571dd8)=>{const _0x1cf764=a2_0x597581,_0x22e57a=new ParentSegmentPreviewCommand(),_0x44da30=program[_0x1cf764(0x22f)](),_0x1d11c6=await createTDXInstance(_0x44da30),_0x5c6374=await _0x22e57a[_0x1cf764(0x14c)]({'options':{..._0x44da30,..._0x571dd8},'args':_0x1a2e33?[_0x1a2e33]:[],'tdx':_0x1d11c6});gracefulExit(_0x5c6374);}),parentCmd['command']('run\x20[name]')[a2_0x597581(0x227)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x597581(0x292),a2_0x597581(0x2f3))[a2_0x597581(0x161)](async(_0x52a942,_0x436241)=>{const _0x3b4626=a2_0x597581,_0x16de06=new ParentSegmentRunCommand(),_0x38f061=program[_0x3b4626(0x22f)](),_0x594d9a=await createTDXInstance(_0x38f061),_0x4b1341=await _0x16de06[_0x3b4626(0x14c)]({'options':{..._0x38f061,..._0x436241},'args':_0x52a942?[_0x52a942]:[],'tdx':_0x594d9a});gracefulExit(_0x4b1341);});const parentSegmentCmd=program[a2_0x597581(0x146)](a2_0x597581(0x1e5))['alias']('ps')['description']('Parent\x20segment\x20management');parentSegmentCmd[a2_0x597581(0x146)](a2_0x597581(0x21f))[a2_0x597581(0x227)](a2_0x597581(0x21a))['action'](parentListAction),parentSegmentCmd[a2_0x597581(0x146)](a2_0x597581(0x1f3))[a2_0x597581(0x227)](a2_0x597581(0xdf))[a2_0x597581(0x135)](a2_0x597581(0x2a7),a2_0x597581(0x214))[a2_0x597581(0x135)](a2_0x597581(0x292),a2_0x597581(0x2f3))['option']('-u,\x20--use','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x597581(0x161)](async(_0x465bd3,_0x4e4092)=>{const _0x2bcaaf=a2_0x597581,_0xd7ef26=new ParentSegmentPullCommand(),_0x3cadd0=program[_0x2bcaaf(0x22f)](),_0x3524a0=await createTDXInstance(_0x3cadd0),_0x3728d3=await _0xd7ef26[_0x2bcaaf(0x14c)]({'options':{..._0x3cadd0,..._0x4e4092},'args':_0x465bd3?[_0x465bd3]:[],'tdx':_0x3524a0});gracefulExit(_0x3728d3);}),parentSegmentCmd['command'](a2_0x597581(0x1e7))[a2_0x597581(0x227)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x597581(0x135)](a2_0x597581(0x292),a2_0x597581(0x2f3))['action'](async(_0x56d719,_0x5cb57a)=>{const _0x177536=a2_0x597581,_0x41edb2=new ParentSegmentPushCommand(),_0x44e6d2=program[_0x177536(0x22f)](),_0x106e89=await createTDXInstance(_0x44e6d2),_0x216e3c=await _0x41edb2[_0x177536(0x14c)]({'options':{..._0x44e6d2,..._0x5cb57a},'args':_0x56d719?[_0x56d719]:[],'tdx':_0x106e89});gracefulExit(_0x216e3c);}),parentSegmentCmd['command'](a2_0x597581(0x226))[a2_0x597581(0x227)](a2_0x597581(0x28e))['option'](a2_0x597581(0xde),'Show\x20only\x20master\x20table\x20validation')['option']('--attribute\x20[name]',a2_0x597581(0x2ab))[a2_0x597581(0x135)](a2_0x597581(0x273),a2_0x597581(0xe7))[a2_0x597581(0x135)](a2_0x597581(0xf2),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x597581(0x135)]('--interval\x20<range>',a2_0x597581(0x144),a2_0x597581(0x11d))['action'](async(_0x42a22d,_0x231a57)=>{const _0x1f6012=a2_0x597581,_0x95c722=new ParentSegmentValidateCommand(),_0x4da3f7=program[_0x1f6012(0x22f)](),_0x367a14=await createTDXInstance(_0x4da3f7),_0x58e6e9=await _0x95c722[_0x1f6012(0x14c)]({'options':{..._0x4da3f7,..._0x231a57},'args':_0x42a22d?[_0x42a22d]:[],'tdx':_0x367a14});gracefulExit(_0x58e6e9);}),parentSegmentCmd[a2_0x597581(0x146)](a2_0x597581(0xd6))['description'](a2_0x597581(0x27f))[a2_0x597581(0x135)](a2_0x597581(0xde),a2_0x597581(0x137))['option']('--attribute\x20[name]',a2_0x597581(0x1ee))['option']('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x597581(0x135)](a2_0x597581(0xf2),a2_0x597581(0x103))[a2_0x597581(0x135)](a2_0x597581(0x181),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x597581(0x11d))['action'](async(_0x2e7365,_0x13b937)=>{const _0x149f94=a2_0x597581,_0x127cef=new ParentSegmentPreviewCommand(),_0x45e0f5=program[_0x149f94(0x22f)](),_0x465ba7=await createTDXInstance(_0x45e0f5),_0x5d6c5e=await _0x127cef[_0x149f94(0x14c)]({'options':{..._0x45e0f5,..._0x13b937},'args':_0x2e7365?[_0x2e7365]:[],'tdx':_0x465ba7});gracefulExit(_0x5d6c5e);}),parentSegmentCmd[a2_0x597581(0x146)](a2_0x597581(0x134))[a2_0x597581(0x227)](a2_0x597581(0x15b))[a2_0x597581(0x135)](a2_0x597581(0x292),a2_0x597581(0x2f3))[a2_0x597581(0x161)](async(_0x34a906,_0x300e7a)=>{const _0x3e78de=a2_0x597581,_0x70300a=new ParentSegmentRunCommand(),_0x55d920=program[_0x3e78de(0x22f)](),_0x2f8ad9=await createTDXInstance(_0x55d920),_0x28f09b=await _0x70300a['run']({'options':{..._0x55d920,..._0x300e7a},'args':_0x34a906?[_0x34a906]:[],'tdx':_0x2f8ad9});gracefulExit(_0x28f09b);}),parentSegmentCmd[a2_0x597581(0x146)](a2_0x597581(0x121))[a2_0x597581(0x227)](a2_0x597581(0x29f))[a2_0x597581(0x135)](a2_0x597581(0x139),a2_0x597581(0x2ae))[a2_0x597581(0x135)](a2_0x597581(0x25d),a2_0x597581(0x18b))[a2_0x597581(0x161)](async(_0x48c88a,_0x32b84a)=>{const _0x36101f=a2_0x597581,_0x50a793=new ParentSegmentFieldsCommand(),_0x4f19b1=program[_0x36101f(0x22f)](),_0x5080af=await createTDXInstance(_0x4f19b1),_0x52d0a7=await _0x50a793[_0x36101f(0x14c)]({'options':{..._0x4f19b1,..._0x32b84a},'args':_0x48c88a?[_0x48c88a]:[],'tdx':_0x5080af});gracefulExit(_0x52d0a7);}),parentSegmentCmd['command']('view\x20[name]')[a2_0x597581(0x227)](a2_0x597581(0xb8))[a2_0x597581(0x135)](a2_0x597581(0x1a2),a2_0x597581(0x2e8))[a2_0x597581(0x135)](a2_0x597581(0x139),a2_0x597581(0x2ae))[a2_0x597581(0x135)](a2_0x597581(0x25d),a2_0x597581(0x18b))['action'](async(_0x398253,_0x36970f)=>{const _0x420c04=a2_0x597581,_0x481d7c=new ParentSegmentViewCommand(),_0x11514b=program[_0x420c04(0x22f)](),_0x267ef5=await createTDXInstance(_0x11514b),_0x5971d3=await _0x481d7c[_0x420c04(0x14c)]({'options':{..._0x11514b,..._0x36970f},'args':_0x398253?[_0x398253]:[],'tdx':_0x267ef5});gracefulExit(_0x5971d3);}),parentSegmentCmd['command'](a2_0x597581(0x1bd))[a2_0x597581(0x227)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x597581(0x135)](a2_0x597581(0x139),'Output\x20as\x20JSON')[a2_0x597581(0x135)]('--jsonl',a2_0x597581(0x18b))['action'](async(_0x1e30e1,_0x2959f9)=>{const _0x37dd76=a2_0x597581,_0x1d12a0=new ParentSegmentDescCommand(),_0x50223d=program['opts'](),_0x3ed7f5=await createTDXInstance(_0x50223d),_0x1d4de4=await _0x1d12a0[_0x37dd76(0x14c)]({'options':{..._0x50223d,..._0x2959f9},'args':_0x1e30e1?[_0x1e30e1]:[],'tdx':_0x3ed7f5});gracefulExit(_0x1d4de4);}),parentSegmentCmd[a2_0x597581(0x146)](a2_0x597581(0xd1))[a2_0x597581(0x227)](a2_0x597581(0xe4))[a2_0x597581(0x135)](a2_0x597581(0x139),a2_0x597581(0x2ae))[a2_0x597581(0x135)]('--jsonl',a2_0x597581(0x18b))[a2_0x597581(0x161)](async(_0x5d586a,_0x306ffe)=>{const _0xe5adfe=a2_0x597581,_0x46c7f4=new ParentSegmentSQLCommand(),_0xbfd4d6=program['opts'](),_0x419bbc=await createTDXInstance(_0xbfd4d6),_0x32b752=await _0x46c7f4[_0xe5adfe(0x14c)]({'options':{..._0xbfd4d6,..._0x306ffe},'args':_0x5d586a?[_0x5d586a]:[],'tdx':_0x419bbc});gracefulExit(_0x32b752);}),parentSegmentCmd[a2_0x597581(0x146)](a2_0x597581(0x1b4))[a2_0x597581(0x227)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x597581(0x135)](a2_0x597581(0x2c6),'Limit\x20number\x20of\x20rows')[a2_0x597581(0x135)]('--json',a2_0x597581(0x2ae))['option'](a2_0x597581(0x25d),a2_0x597581(0x18b))[a2_0x597581(0x161)](async(_0x10c3f8,_0x5bc7e4)=>{const _0x539b26=a2_0x597581,_0x54f54f=new ParentSegmentShowCommand(),_0x1c2f7=program[_0x539b26(0x22f)](),_0x4fbf74=await createTDXInstance(_0x1c2f7),_0x45f821=await _0x54f54f[_0x539b26(0x14c)]({'options':{..._0x1c2f7,..._0x5bc7e4},'args':_0x10c3f8?[_0x10c3f8]:[],'tdx':_0x4fbf74});gracefulExit(_0x45f821);}),parentSegmentCmd[a2_0x597581(0x146)](a2_0x597581(0x140))['description'](a2_0x597581(0x2fe))['action'](async(_0x5d3baf,_0x483ec3)=>{const _0x8f537=a2_0x597581,_0x35a3a6=new UseCommand(),_0xe3899c=program[_0x8f537(0x22f)](),_0x56e764=_0x5d3baf?['parent_segment',_0x5d3baf]:[],_0x15471a=await _0x35a3a6[_0x8f537(0x14c)]({'options':{..._0xe3899c,..._0x483ec3},'args':_0x56e764,'tdx':null});gracefulExit(_0x15471a);}),parentCmd[a2_0x597581(0x146)](a2_0x597581(0x2a1))[a2_0x597581(0x227)](a2_0x597581(0x1d1))[a2_0x597581(0xab)]('--database\x20<db>','Master\x20database\x20name')[a2_0x597581(0xab)](a2_0x597581(0x141),a2_0x597581(0xbb))['option'](a2_0x597581(0xe1),a2_0x597581(0x1eb))[a2_0x597581(0x135)](a2_0x597581(0x167),a2_0x597581(0x251))[a2_0x597581(0x135)]('--schedule-option\x20<value>',a2_0x597581(0x2bd))['option'](a2_0x597581(0x131),a2_0x597581(0x1d9))[a2_0x597581(0x135)](a2_0x597581(0x196),a2_0x597581(0x205))[a2_0x597581(0x135)](a2_0x597581(0x2df),'Attributes\x20from\x20JSON\x20file')['option'](a2_0x597581(0x20a),a2_0x597581(0x283))[a2_0x597581(0x135)]('--behaviors-file\x20<file>',a2_0x597581(0x254))['option'](a2_0x597581(0x241),a2_0x597581(0x125))['option'](a2_0x597581(0x2f4),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x597581(0x161)](async(_0x33b216,_0x28c55b)=>{const _0x3142d7=a2_0x597581,_0x49acfe=new ParentSegmentCreateCommand(),_0x30f14c=program[_0x3142d7(0x22f)](),_0x550f6a=await createTDXInstance(_0x30f14c),_0x4038c0=await _0x49acfe[_0x3142d7(0x14c)]({'options':{..._0x30f14c,..._0x28c55b},'args':[_0x33b216],'tdx':_0x550f6a});gracefulExit(_0x4038c0);}),parentCmd['command']('update\x20<name>')[a2_0x597581(0x227)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x597581(0x135)]('--description\x20<text>',a2_0x597581(0x23b))[a2_0x597581(0x135)](a2_0x597581(0x167),a2_0x597581(0x22e))[a2_0x597581(0x135)](a2_0x597581(0x206),'Updated\x20schedule\x20option')[a2_0x597581(0x135)](a2_0x597581(0x131),a2_0x597581(0x1ff))[a2_0x597581(0x135)](a2_0x597581(0x2f5),a2_0x597581(0x271))[a2_0x597581(0x135)](a2_0x597581(0x12a),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x597581(0x135)]('--add-behaviors\x20<json>',a2_0x597581(0x1d3))[a2_0x597581(0x135)](a2_0x597581(0x179),a2_0x597581(0x1c0))[a2_0x597581(0x161)](async(_0x5f2231,_0x166639)=>{const _0x2eb54b=a2_0x597581,_0x3eeb9c=new ParentSegmentUpdateCommand(),_0x4bf57d=program['opts'](),_0x38ebff=await createTDXInstance(_0x4bf57d),_0x183328=await _0x3eeb9c[_0x2eb54b(0x14c)]({'options':{..._0x4bf57d,..._0x166639},'args':[_0x5f2231],'tdx':_0x38ebff});gracefulExit(_0x183328);}),folderCmd[a2_0x597581(0x146)](a2_0x597581(0x29e))['description'](a2_0x597581(0x1de))[a2_0x597581(0x135)](a2_0x597581(0xe1),'Folder\x20description')['option'](a2_0x597581(0x21d),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x597581(0x161)](async(_0x3cfdbb,_0x2a576c,_0x4f409f)=>{const _0x2407d1=a2_0x597581,_0x1e0587=new SegmentFolderCreateCommand(),_0x121ddd=program[_0x2407d1(0x22f)](),_0x565f25=await createTDXInstance(_0x121ddd),_0x5688b6=await _0x1e0587[_0x2407d1(0x14c)]({'options':{..._0x121ddd,..._0x4f409f},'args':[_0x3cfdbb,_0x2a576c],'tdx':_0x565f25});gracefulExit(_0x5688b6);}),program[a2_0x597581(0x146)](a2_0x597581(0x143))[a2_0x597581(0x227)](a2_0x597581(0xba))[a2_0x597581(0x161)](async(_0x2ccc6d,_0x340be0)=>{const _0x519b40=a2_0x597581,_0xcf5683=new ActivationsCommand(),_0x51c2fa=program[_0x519b40(0x22f)](),_0x574a8d=await createTDXInstance(_0x51c2fa),_0x57802f=await _0xcf5683[_0x519b40(0x14c)]({'options':{..._0x51c2fa,..._0x340be0},'args':[_0x2ccc6d],'tdx':_0x574a8d});gracefulExit(_0x57802f);});const workflowCmd=program['command']('workflow')['alias']('wf')['description'](a2_0x597581(0x187)),wfProjectCmd=workflowCmd[a2_0x597581(0x146)]('project')['description'](a2_0x597581(0x277)),wfProjectListAction=async(_0x1e6ac6,_0x1c9dce)=>{const _0x5c8ce3=a2_0x597581,_0x2bfea7=new WorkflowProjectsCommand(),_0x12d5bf=program[_0x5c8ce3(0x22f)](),_0xa61dd6=await createTDXInstance(_0x12d5bf),_0x1ae476=await _0x2bfea7[_0x5c8ce3(0x14c)]({'options':{..._0x12d5bf,..._0x1c9dce},'args':_0x1e6ac6?[_0x1e6ac6]:[],'tdx':_0xa61dd6});gracefulExit(_0x1ae476);};wfProjectCmd[a2_0x597581(0x146)](a2_0x597581(0x21f))[a2_0x597581(0x227)](a2_0x597581(0x13e))['action'](wfProjectListAction),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0x1f6))[a2_0x597581(0x227)](a2_0x597581(0xfe))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x2a871b,_0x47d4b1)=>{const _0x1330bd=a2_0x597581,_0x12282d=new WorkflowWorkflowsCommand(),_0x510c67=program[_0x1330bd(0x22f)](),_0xa650ee=await createTDXInstance(_0x510c67),_0x3be360=await _0x12282d[_0x1330bd(0x14c)]({'options':{..._0x510c67,..._0x47d4b1},'args':_0x2a871b?[_0x2a871b]:[],'tdx':_0xa650ee});gracefulExit(_0x3be360);};workflowCmd[a2_0x597581(0x146)](a2_0x597581(0x2db))[a2_0x597581(0x227)](a2_0x597581(0x11e))[a2_0x597581(0x161)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x597581(0x146)](a2_0x597581(0xf5))['description'](a2_0x597581(0x104)),wfSessionListAction=async(_0x1d80e4,_0x1f1d64)=>{const _0x51210c=a2_0x597581,_0x231d96=new WorkflowSessionsCommand(),_0x112193=program[_0x51210c(0x22f)](),_0x3576e6=await createTDXInstance(_0x112193),_0x25f2d9=await _0x231d96[_0x51210c(0x14c)]({'options':{..._0x112193,..._0x1f1d64},'args':_0x1d80e4?[_0x1d80e4]:[],'tdx':_0x3576e6});gracefulExit(_0x25f2d9);};wfSessionCmd['command']('list\x20[project]')[a2_0x597581(0x227)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x597581(0x135)](a2_0x597581(0x1b0),a2_0x597581(0x1c6))[a2_0x597581(0x135)](a2_0x597581(0x2eb),a2_0x597581(0xbc))[a2_0x597581(0x135)]('--to\x20<timestamp>',a2_0x597581(0x2e6))[a2_0x597581(0x161)](wfSessionListAction),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0xe2))[a2_0x597581(0x227)](a2_0x597581(0x1f2))['option'](a2_0x597581(0x1b0),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x597581(0x135)](a2_0x597581(0x2eb),a2_0x597581(0xbc))[a2_0x597581(0x135)]('--to\x20<timestamp>',a2_0x597581(0x2e6))[a2_0x597581(0x161)](wfSessionListAction);const wfAttemptListAction=async(_0xae23d9,_0x465a55)=>{const _0x2218a8=a2_0x597581,_0x37fd79=new WorkflowAttemptsCommand(),_0x454f46=program['opts'](),_0x476fa5=await createTDXInstance(_0x454f46),_0x23b383=await _0x37fd79[_0x2218a8(0x14c)]({'options':{..._0x454f46,..._0x465a55},'args':_0xae23d9?[_0xae23d9]:[],'tdx':_0x476fa5});gracefulExit(_0x23b383);},attemptCmd=workflowCmd[a2_0x597581(0x146)]('attempt')['description'](a2_0x597581(0xcc))[a2_0x597581(0x288)](a2_0x597581(0x1ea),a2_0x597581(0x1cd))[a2_0x597581(0x288)]('[action]',a2_0x597581(0x133))['argument']('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x597581(0x135)](a2_0x597581(0x142),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x597581(0x135)](a2_0x597581(0x220),a2_0x597581(0x1c4))['option'](a2_0x597581(0x203),a2_0x597581(0x217))[a2_0x597581(0x135)](a2_0x597581(0x1d8),a2_0x597581(0x2b7))['option']('--force','Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x597581(0x135)](a2_0x597581(0x16e),'Include\x20retried\x20attempts\x20(for\x20list)')['action'](async(_0x4a12f1,_0x42f401,_0x214e49,_0x181a2a)=>{const _0x3a694d=a2_0x597581;if(_0x4a12f1==='list'){await wfAttemptListAction(_0x42f401,_0x181a2a);return;}if(!_0x4a12f1){attemptCmd[_0x3a694d(0x13f)]();return;}const _0x1dfd32=program[_0x3a694d(0x22f)](),_0x189cd9=await createTDXInstance(_0x1dfd32);let _0x37e036=0x0;if(!_0x42f401){const _0x4d327e=new WorkflowAttemptCommand();_0x37e036=await _0x4d327e[_0x3a694d(0x14c)]({'options':{..._0x1dfd32,..._0x181a2a},'args':[_0x4a12f1],'tdx':_0x189cd9});}else{if(_0x42f401===_0x3a694d(0x12e)){const _0x478b74=new WorkflowLogsCommand();_0x37e036=await _0x478b74[_0x3a694d(0x14c)]({'options':{..._0x1dfd32,..._0x181a2a},'args':_0x214e49?[_0x4a12f1,_0x214e49]:[_0x4a12f1],'tdx':_0x189cd9});}else{if(_0x42f401===_0x3a694d(0x231)){const _0x1b69a5=new WorkflowTasksCommand();_0x37e036=await _0x1b69a5[_0x3a694d(0x14c)]({'options':{..._0x1dfd32,..._0x181a2a},'args':[_0x4a12f1],'tdx':_0x189cd9});}else{if(_0x42f401==='kill'){const _0xbe9c5f=new WorkflowKillCommand();_0x37e036=await _0xbe9c5f[_0x3a694d(0x14c)]({'options':{..._0x1dfd32,..._0x181a2a},'args':[_0x4a12f1],'tdx':_0x189cd9});}else{if(_0x42f401==='retry'){const _0x374e01=new WorkflowRetryCommand();_0x37e036=await _0x374e01[_0x3a694d(0x14c)]({'options':{..._0x1dfd32,..._0x181a2a},'args':['attempt:'+_0x4a12f1],'tdx':_0x189cd9});}else console[_0x3a694d(0x24e)](_0x3a694d(0x262)+_0x42f401),console[_0x3a694d(0x24e)](_0x3a694d(0x2c3)),_0x37e036=0x1;}}}}gracefulExit(_0x37e036);});attemptCmd[a2_0x597581(0x146)](a2_0x597581(0x27e))[a2_0x597581(0x227)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x597581(0x135)](a2_0x597581(0x16e),a2_0x597581(0x2b8))['action'](wfAttemptListAction),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0x116))[a2_0x597581(0x227)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x597581(0x135)](a2_0x597581(0x16e),a2_0x597581(0x2b8))[a2_0x597581(0x161)](wfAttemptListAction),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0xf4))[a2_0x597581(0x227)](a2_0x597581(0x1fe))['option'](a2_0x597581(0x289),a2_0x597581(0x10c))[a2_0x597581(0x135)]('--session-id\x20<id>',a2_0x597581(0x18f))[a2_0x597581(0x135)](a2_0x597581(0x18c),a2_0x597581(0x1e6))[a2_0x597581(0x161)](async(_0x3831e9,_0x5e6c15)=>{const _0x4d080a=a2_0x597581,_0xb4f65b=new WorkflowTimelineCommand(),_0x3662ed=program[_0x4d080a(0x22f)](),_0x4cf249=await createTDXInstance(_0x3662ed),_0x1157a0=await _0xb4f65b[_0x4d080a(0x14c)]({'options':{..._0x3662ed,..._0x5e6c15},'args':_0x3831e9?[_0x3831e9]:[],'tdx':_0x4cf249});gracefulExit(_0x1157a0);}),workflowCmd[a2_0x597581(0x146)]('retry\x20<session-id>')[a2_0x597581(0x227)](a2_0x597581(0xd2))['option'](a2_0x597581(0xf6),a2_0x597581(0x28a))['option']('--params\x20<json>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')['action'](async(_0x4dec93,_0x6f8cfe)=>{const _0x392fc8=a2_0x597581,_0xaf95e9=new WorkflowRetryCommand(),_0x2b1a6d=program['opts'](),_0x4ffc78=await createTDXInstance(_0x2b1a6d),_0x403926=await _0xaf95e9[_0x392fc8(0x14c)]({'options':{..._0x2b1a6d,..._0x6f8cfe},'args':[_0x4dec93],'tdx':_0x4ffc78});gracefulExit(_0x403926);}),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0x155))[a2_0x597581(0x227)](a2_0x597581(0x191))[a2_0x597581(0x135)](a2_0x597581(0x233),a2_0x597581(0x10b),(_0x461094,_0x53b706=[])=>[..._0x53b706,_0x461094],[])[a2_0x597581(0x135)](a2_0x597581(0x2c1),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x597581(0x161)](async(_0x478343,_0x5b7179)=>{const _0x2dc56e=a2_0x597581,_0x56ea6a=new WorkflowRunCommand(),_0x143b16=program['opts'](),_0x36553a=await createTDXInstance(_0x143b16),_0x264dc6=await _0x56ea6a[_0x2dc56e(0x14c)]({'options':{..._0x143b16,..._0x5b7179},'args':_0x478343?[_0x478343]:[],'tdx':_0x36553a});gracefulExit(_0x264dc6);}),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0x20b))['description'](a2_0x597581(0x16d))[a2_0x597581(0x135)](a2_0x597581(0x2e4),a2_0x597581(0x26f))[a2_0x597581(0x161)](async(_0x1d07a8,_0x548749,_0x5919bb)=>{const _0xca9936=a2_0x597581,_0x4f1a2d=new WorkflowDownloadCommand(),_0x3ef72b=program[_0xca9936(0x22f)](),_0x181dc2=await createTDXInstance(_0x3ef72b),_0x5af65e=await _0x4f1a2d[_0xca9936(0x14c)]({'options':{..._0x3ef72b,..._0x5919bb},'args':[_0x1d07a8,_0x548749||'.'],'tdx':_0x181dc2});gracefulExit(_0x5af65e);}),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0x245))[a2_0x597581(0x227)](a2_0x597581(0x14d))['option'](a2_0x597581(0x2e4),'Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x597581(0x135)]('--dry-run','Preview\x20changes\x20without\x20writing\x20files')[a2_0x597581(0x135)](a2_0x597581(0x292),a2_0x597581(0x2f3))['action'](async(_0x426302,_0x1476d8,_0x4d6840)=>{const _0xa1bfd1=a2_0x597581,_0x215844=new WorkflowPullCommand(),_0x54f61e=program['opts'](),_0xfe3ba3=await createTDXInstance(_0x54f61e),_0x37fb85=await _0x215844[_0xa1bfd1(0x14c)]({'options':{..._0x54f61e,..._0x4d6840},'args':_0x1476d8?[_0x426302,_0x1476d8]:[_0x426302],'tdx':_0xfe3ba3});gracefulExit(_0x37fb85);}),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0x126))[a2_0x597581(0x227)](a2_0x597581(0x24b))['option'](a2_0x597581(0x2e4),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x597581(0x135)]('--dry-run',a2_0x597581(0x16f))[a2_0x597581(0x135)](a2_0x597581(0x2e3),a2_0x597581(0x26e))[a2_0x597581(0x135)](a2_0x597581(0x292),'Skip\x20confirmation\x20prompt')[a2_0x597581(0x161)](async(_0x810016,_0x85430a)=>{const _0x407f9c=a2_0x597581,_0x249879=new WorkflowPushCommand(),_0x5adb15=program['opts'](),_0x2ed9e8=await createTDXInstance(_0x5adb15),_0x5e0dd6=await _0x249879[_0x407f9c(0x14c)]({'options':{..._0x5adb15,..._0x85430a},'args':_0x810016?[_0x810016]:[],'tdx':_0x2ed9e8});gracefulExit(_0x5e0dd6);}),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0x21e))[a2_0x597581(0x227)](a2_0x597581(0x1b3))[a2_0x597581(0x135)](a2_0x597581(0xb2),a2_0x597581(0x2f2))[a2_0x597581(0x135)](a2_0x597581(0x2e4),a2_0x597581(0x1e1))['option'](a2_0x597581(0x2e3),a2_0x597581(0x26e))[a2_0x597581(0x161)](async(_0x2fd579,_0xa10e1f)=>{const _0x14829d=a2_0x597581,_0x33094c=new WorkflowUploadCommand(),_0x26f36f=program['opts'](),_0x4eeb35=await createTDXInstance(_0x26f36f),_0xe34bf4=await _0x33094c[_0x14829d(0x14c)]({'options':{..._0x26f36f,..._0xa10e1f},'args':_0x2fd579?[_0x2fd579]:[],'tdx':_0x4eeb35});gracefulExit(_0xe34bf4);}),workflowCmd[a2_0x597581(0x146)]('clone\x20[source-dir]')[a2_0x597581(0x227)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')['option'](a2_0x597581(0xb2),a2_0x597581(0x238))[a2_0x597581(0x135)](a2_0x597581(0x2e4),a2_0x597581(0x111))[a2_0x597581(0x135)](a2_0x597581(0x15f),'Preview\x20without\x20creating\x20the\x20project')[a2_0x597581(0x135)](a2_0x597581(0x2e3),a2_0x597581(0x26e))['option'](a2_0x597581(0x292),a2_0x597581(0x2f3))[a2_0x597581(0x161)](async(_0x5d7254,_0xc88fc7)=>{const _0x2a1850=a2_0x597581,_0x3f4836=new WorkflowCloneCommand(),_0x5897f9=program[_0x2a1850(0x22f)](),_0x2fca56=await createTDXInstance(_0x5897f9),_0x554244=await _0x3f4836['run']({'options':{..._0x5897f9,..._0xc88fc7},'args':_0x5d7254?[_0x5d7254]:[],'tdx':_0x2fca56});gracefulExit(_0x554244);}),workflowCmd['command']('delete\x20<project-name-or-id>')[a2_0x597581(0x227)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')['action'](async(_0xc852f6,_0x3f0fd2)=>{const _0x4a8cd7=a2_0x597581,_0x366d02=new WorkflowDeleteCommand(),_0x42ef5f=program['opts'](),_0x498e83=await createTDXInstance(_0x42ef5f),_0x26cc03=await _0x366d02[_0x4a8cd7(0x14c)]({'options':{..._0x42ef5f,..._0x3f0fd2},'args':[_0xc852f6],'tdx':_0x498e83});gracefulExit(_0x26cc03);}),workflowCmd[a2_0x597581(0x146)](a2_0x597581(0xbf))[a2_0x597581(0x227)](a2_0x597581(0x212))['option'](a2_0x597581(0x1a9),a2_0x597581(0x1f1))['action'](async(_0x42146a,_0x35f105)=>{const _0x57ff27=a2_0x597581,_0x4db193=new WorkflowUseCommand(),_0x484eea=program[_0x57ff27(0x22f)](),_0x4546fd=await createTDXInstance(_0x484eea),_0x42677d=await _0x4db193['run']({'options':{..._0x484eea,..._0x35f105},'args':_0x42146a?[_0x42146a]:[],'tdx':_0x4546fd});gracefulExit(_0x42677d);});const wfSecretsCmd=workflowCmd[a2_0x597581(0x146)]('secrets')[a2_0x597581(0x227)](a2_0x597581(0x224));wfSecretsCmd[a2_0x597581(0x146)](a2_0x597581(0x27e))[a2_0x597581(0x227)](a2_0x597581(0x1a0))[a2_0x597581(0x161)](async(_0x211dac,_0x26f398)=>{const _0x4861fe=a2_0x597581,_0x2a2987=new WorkflowSecretsListCommand(),_0x5005bf=program['opts'](),_0x3c0a3f=await createTDXInstance(_0x5005bf),_0xfebdb4=await _0x2a2987[_0x4861fe(0x14c)]({'options':{..._0x5005bf,..._0x26f398},'args':_0x211dac?[_0x211dac]:[],'tdx':_0x3c0a3f});gracefulExit(_0xfebdb4);}),wfSecretsCmd[a2_0x597581(0x146)](a2_0x597581(0x10f))[a2_0x597581(0x227)](a2_0x597581(0x2c4))[a2_0x597581(0x161)](async(_0x47b77d,_0x31317e)=>{const _0x15efab=a2_0x597581,_0x1619af=new WorkflowSecretsSetCommand(),_0x14dc49=program[_0x15efab(0x22f)](),_0x435dc9=await createTDXInstance(_0x14dc49),_0x134130=await _0x1619af[_0x15efab(0x14c)]({'options':{..._0x14dc49,..._0x31317e},'args':_0x47b77d,'tdx':_0x435dc9});gracefulExit(_0x134130);}),wfSecretsCmd[a2_0x597581(0x146)](a2_0x597581(0x2d2))[a2_0x597581(0x227)](a2_0x597581(0x221))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')['action'](async(_0x20f55e,_0x36da76)=>{const _0x2df868=a2_0x597581,_0x141d19=new WorkflowSecretsDeleteCommand(),_0x1137c1=program[_0x2df868(0x22f)](),_0x3e8992=await createTDXInstance(_0x1137c1),_0x4c8833=await _0x141d19[_0x2df868(0x14c)]({'options':{..._0x1137c1,..._0x36da76},'args':_0x20f55e,'tdx':_0x3e8992});gracefulExit(_0x4c8833);});const jobCmd=program[a2_0x597581(0x146)](a2_0x597581(0x14a))['description']('Job\x20management\x20commands'),jobListAction=async _0x7748f7=>{const _0x4daa27=a2_0x597581,_0x270a44=new JobListCommand(),_0x2ebc0c=program[_0x4daa27(0x22f)](),_0x253dac=await createTDXInstance(_0x2ebc0c),_0x2d1eed=await _0x270a44[_0x4daa27(0x14c)]({'options':{..._0x2ebc0c,..._0x7748f7},'args':[],'tdx':_0x253dac});gracefulExit(_0x2d1eed);};jobCmd[a2_0x597581(0x146)]('list')[a2_0x597581(0x227)](a2_0x597581(0xf9))[a2_0x597581(0x135)](a2_0x597581(0x1b0),a2_0x597581(0x1fa))[a2_0x597581(0x161)](jobListAction),program[a2_0x597581(0x146)](a2_0x597581(0x304),{'hidden':!![]})[a2_0x597581(0x227)](a2_0x597581(0x26b))[a2_0x597581(0x135)](a2_0x597581(0x1b0),a2_0x597581(0x1fa))['action'](jobListAction),jobCmd[a2_0x597581(0x146)](a2_0x597581(0x252))[a2_0x597581(0x227)](a2_0x597581(0x166))[a2_0x597581(0x161)](async(_0x3ee043,_0x5b4724)=>{const _0x3a4128=a2_0x597581,_0x39cc7e=new JobShowCommand(),_0x4412e9=program[_0x3a4128(0x22f)](),_0x267277=await createTDXInstance(_0x4412e9),_0x3dfe12=await _0x39cc7e[_0x3a4128(0x14c)]({'options':{..._0x4412e9,..._0x5b4724},'args':[_0x3ee043],'tdx':_0x267277});gracefulExit(_0x3dfe12);}),jobCmd['command']('kill\x20<job-id>')[a2_0x597581(0x227)]('Kill\x20a\x20job')[a2_0x597581(0x161)](async(_0x38d486,_0xff21f4)=>{const _0xd15d1a=a2_0x597581,_0x3dae4c=new JobKillCommand(),_0x3f00d2=program[_0xd15d1a(0x22f)](),_0x1ebbcd=await createTDXInstance(_0x3f00d2),_0xdb001d=await _0x3dae4c[_0xd15d1a(0x14c)]({'options':{..._0x3f00d2,..._0xff21f4},'args':[_0x38d486],'tdx':_0x1ebbcd});gracefulExit(_0xdb001d);}),jobCmd[a2_0x597581(0x146)]('submit\x20[query]')['description'](a2_0x597581(0xc9))[a2_0x597581(0x135)](a2_0x597581(0x1ad),a2_0x597581(0x301),a2_0x597581(0x2d0))[a2_0x597581(0x135)](a2_0x597581(0x2e7),a2_0x597581(0x2a8))[a2_0x597581(0x135)](a2_0x597581(0x1ba),a2_0x597581(0x1da),a2_0x597581(0xc6))[a2_0x597581(0x161)](async(_0xc438bc,_0x4f03ce)=>{const _0x380baf=a2_0x597581,_0x2a81fa=new JobSubmitCommand(),_0x5448f3=program['opts'](),_0x432155=await createTDXInstance(_0x5448f3),_0x2a6c98=await _0x2a81fa[_0x380baf(0x14c)]({'options':{..._0x5448f3,..._0x4f03ce},'args':_0xc438bc?[_0xc438bc]:[],'tdx':_0x432155});gracefulExit(_0x2a6c98);}),jobCmd[a2_0x597581(0x146)](a2_0x597581(0xac))[a2_0x597581(0x227)]('Get\x20job\x20results')[a2_0x597581(0x161)](async(_0x7c018d,_0x1ddab8)=>{const _0x3b4238=a2_0x597581,_0x18ebe0=new JobResultCommand(),_0x37c35c=program[_0x3b4238(0x22f)](),_0x3e0263=await createTDXInstance(_0x37c35c),_0x488cfe=await _0x18ebe0['run']({'options':{..._0x37c35c,..._0x1ddab8},'args':[_0x7c018d],'tdx':_0x3e0263});gracefulExit(_0x488cfe);});const llmCmd=program['command'](a2_0x597581(0x16b))[a2_0x597581(0x227)](a2_0x597581(0xa7));llmCmd[a2_0x597581(0x146)](a2_0x597581(0x1c5))['description'](a2_0x597581(0x200))[a2_0x597581(0x161)](async(_0x57f8cd,_0x103bfd)=>{const _0xb5f054=a2_0x597581,_0x4337af=new LLMUseCommand(),_0x123894=program[_0xb5f054(0x22f)](),_0x26837=await createTDXInstance(_0x123894),_0xad4bfa=await _0x4337af[_0xb5f054(0x14c)]({'options':{..._0x123894,..._0x103bfd},'args':[_0x57f8cd],'tdx':_0x26837});gracefulExit(_0xad4bfa);}),llmCmd[a2_0x597581(0x146)](a2_0x597581(0x20d))[a2_0x597581(0x227)]('List\x20available\x20LLM\x20models')[a2_0x597581(0x161)](async _0x3f91ea=>{const _0x4d3248=new LLMModelsCommand(),_0x6fe71=program['opts'](),_0x54b67d=await createTDXInstance(_0x6fe71),_0x28a7f2=await _0x4d3248['run']({'options':{..._0x6fe71,..._0x3f91ea},'args':[],'tdx':_0x54b67d});gracefulExit(_0x28a7f2);});const projectCmd=llmCmd[a2_0x597581(0x146)](a2_0x597581(0x237))[a2_0x597581(0x227)](a2_0x597581(0xc5)),llmProjectListAction=async(_0x13998b,_0x1e6515)=>{const _0x59487b=a2_0x597581,_0x23cb31=new LLMProjectsCommand(),_0x2baa83=program[_0x59487b(0x22f)](),_0x47facb=await createTDXInstance(_0x2baa83),_0x17d5ba=await _0x23cb31[_0x59487b(0x14c)]({'options':{..._0x2baa83,..._0x1e6515},'args':_0x13998b?[_0x13998b]:[],'tdx':_0x47facb});gracefulExit(_0x17d5ba);};projectCmd['command'](a2_0x597581(0x21f))['description'](a2_0x597581(0x2ed))[a2_0x597581(0x161)](llmProjectListAction),llmCmd[a2_0x597581(0x146)](a2_0x597581(0x1f6))[a2_0x597581(0x227)](a2_0x597581(0x24c))[a2_0x597581(0x161)](llmProjectListAction),projectCmd[a2_0x597581(0x146)](a2_0x597581(0x2a1))[a2_0x597581(0x227)](a2_0x597581(0x2c5))[a2_0x597581(0x135)]('--description\x20<text>','Project\x20description')[a2_0x597581(0x161)](async(_0x4923a5,_0x4b021a)=>{const _0x36c118=a2_0x597581,_0xea20b5=new LLMProjectCreateCommand(),_0x52f7fa=program[_0x36c118(0x22f)](),_0x11883c=await createTDXInstance(_0x52f7fa),_0x28d948=await _0xea20b5[_0x36c118(0x14c)]({'options':{..._0x52f7fa,..._0x4b021a},'args':[_0x4923a5],'tdx':_0x11883c});gracefulExit(_0x28d948);}),projectCmd[a2_0x597581(0x146)]('delete\x20<name>')[a2_0x597581(0x227)](a2_0x597581(0x2ea))[a2_0x597581(0x161)](async(_0x764899,_0x35331f)=>{const _0x3541c1=a2_0x597581,_0x14c7d7=new LLMProjectDeleteCommand(),_0x191614=program[_0x3541c1(0x22f)](),_0x1f19a2=await createTDXInstance(_0x191614),_0x32422f=await _0x14c7d7[_0x3541c1(0x14c)]({'options':{..._0x191614,..._0x35331f},'args':[_0x764899],'tdx':_0x1f19a2});gracefulExit(_0x32422f);}),projectCmd[a2_0x597581(0x146)](a2_0x597581(0xc1))[a2_0x597581(0x227)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x597581(0x135)](a2_0x597581(0x2aa),a2_0x597581(0x286))[a2_0x597581(0x135)](a2_0x597581(0x15f),a2_0x597581(0x172))[a2_0x597581(0x161)](async(_0x3cc9fe,_0x591941)=>{const _0x58f75b=a2_0x597581,_0x4ed1d9=new LLMProjectBackupCommand(),_0x50f259=program[_0x58f75b(0x22f)](),_0x2a6686=await createTDXInstance(_0x50f259),_0x1cd4f8=await _0x4ed1d9[_0x58f75b(0x14c)]({'options':{..._0x50f259,..._0x591941},'args':[_0x3cc9fe],'tdx':_0x2a6686});gracefulExit(_0x1cd4f8);}),projectCmd[a2_0x597581(0x146)](a2_0x597581(0x147))[a2_0x597581(0x227)](a2_0x597581(0x11a))[a2_0x597581(0x135)](a2_0x597581(0x21b),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x597581(0x135)](a2_0x597581(0x15f),a2_0x597581(0x120))['action'](async(_0x350b43,_0x42da1a)=>{const _0xc293d8=a2_0x597581,_0x5852af=new LLMProjectRestoreCommand(),_0x5cb3bc=program[_0xc293d8(0x22f)](),_0x36b1bf=await createTDXInstance(_0x5cb3bc),_0x314167=await _0x5852af[_0xc293d8(0x14c)]({'options':{..._0x5cb3bc,..._0x42da1a},'args':[_0x350b43],'tdx':_0x36b1bf});gracefulExit(_0x314167);});const llmAgentListAction=async(_0x1c8840,_0x92bc91)=>{const _0x62223c=a2_0x597581,_0x103b73=new LLMAgentsCommand(),_0x5bd60f=program[_0x62223c(0x22f)](),_0x4c5f19=await createTDXInstance(_0x5bd60f),_0x3f2a2f=await _0x103b73['run']({'options':{..._0x5bd60f,..._0x92bc91},'args':_0x1c8840?[_0x1c8840]:[],'tdx':_0x4c5f19});gracefulExit(_0x3f2a2f);};llmCmd[a2_0x597581(0x146)](a2_0x597581(0x2ca))[a2_0x597581(0x227)](a2_0x597581(0xbe))[a2_0x597581(0x161)](llmAgentListAction),program[a2_0x597581(0x146)](a2_0x597581(0x2ca))[a2_0x597581(0x227)](a2_0x597581(0xbe))[a2_0x597581(0x161)](llmAgentListAction),llmCmd[a2_0x597581(0x146)](a2_0x597581(0x255))[a2_0x597581(0x227)](a2_0x597581(0x17b))[a2_0x597581(0x135)](a2_0x597581(0x14b),a2_0x597581(0x2a4))[a2_0x597581(0x161)](async(_0x599657,_0x561cd7)=>{const _0x9c83b9=a2_0x597581,_0x349c25=new LLMHistoryCommand(),_0x10ab3b=program[_0x9c83b9(0x22f)](),_0x4b1679=await createTDXInstance(_0x10ab3b),_0x4b7a5f=await _0x349c25['run']({'options':{..._0x10ab3b,..._0x561cd7},'args':_0x599657?[_0x599657]:[],'tdx':_0x4b1679});gracefulExit(_0x4b7a5f);}),llmCmd['command'](a2_0x597581(0x240))[a2_0x597581(0x227)](a2_0x597581(0x138))['option']('--port\x20<number>',a2_0x597581(0xf0),a2_0x597581(0x117))[a2_0x597581(0x135)](a2_0x597581(0x19f),a2_0x597581(0x249))[a2_0x597581(0x135)]('--agent\x20<name>',a2_0x597581(0x195))[a2_0x597581(0x161)](async _0x5e9365=>{const _0x351218=a2_0x597581,_0x2e0a51=new LLMProxyCommand(),_0x38843f=program[_0x351218(0x22f)](),_0x3a2ba0=await createTDXInstance(_0x38843f),_0x5c480b={..._0x5e9365,'port':_0x5e9365[_0x351218(0x105)]?parseInt(_0x5e9365[_0x351218(0x105)],0xa):undefined},_0x49a519=await _0x2e0a51[_0x351218(0x14c)]({'options':{..._0x38843f,..._0x5c480b},'args':[],'tdx':_0x3a2ba0});gracefulExit(_0x49a519);}),program[a2_0x597581(0x146)](a2_0x597581(0x268))[a2_0x597581(0xd5)](a2_0x597581(0xe5))[a2_0x597581(0x227)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x597581(0x135)]('--model\x20<name>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x597581(0x13d))[a2_0x597581(0x135)]('-c,\x20--continue',a2_0x597581(0x2b0))[a2_0x597581(0x135)]('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x597581(0x135)](a2_0x597581(0x17d),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')['option'](a2_0x597581(0xa6),'Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)')[a2_0x597581(0x2bf)]()['allowExcessArguments'](!![])[a2_0x597581(0x2b2)](a2_0x597581(0x235),a2_0x597581(0xfc))['action'](async(_0x1a9a71,_0x27cf0e)=>{const _0x19a259=a2_0x597581,_0x4d44d1=program[_0x19a259(0x22f)](),_0x2dd49c=Array[_0x19a259(0x22b)](_0x1a9a71)?_0x1a9a71:[];if(_0x2dd49c[0x0]===_0x19a259(0x210)){const _0x38ef81=new ClaudeStatuslineCommand(),_0x55eafa=await _0x38ef81[_0x19a259(0x14c)]({'options':{..._0x4d44d1,..._0x27cf0e},'args':_0x2dd49c[_0x19a259(0x248)](0x1),'tdx':null});gracefulExit(_0x55eafa);}if(_0x2dd49c[0x0]===_0x19a259(0xd5)){const _0x5204ad=new ClaudeUsageCommand(),_0x439444=await _0x5204ad[_0x19a259(0x14c)]({'options':{..._0x4d44d1,..._0x27cf0e},'args':_0x2dd49c[_0x19a259(0x248)](0x1),'tdx':null});gracefulExit(_0x439444);}const _0x4f0d28=new ClaudeCommand(),_0x4c4157=await createTDXInstance(_0x4d44d1),_0x1bf3a1=await _0x4f0d28[_0x19a259(0x14c)]({'options':{..._0x4d44d1,..._0x27cf0e},'args':_0x2dd49c,'tdx':_0x4c4157});gracefulExit(_0x1bf3a1);}),program['command'](a2_0x597581(0xec))[a2_0x597581(0x227)](a2_0x597581(0x19c))[a2_0x597581(0x135)](a2_0x597581(0x1a9),a2_0x597581(0x2b5))[a2_0x597581(0x135)](a2_0x597581(0x15c),a2_0x597581(0x199))[a2_0x597581(0x161)](async(_0x3ec38b,_0x2b52dc,_0x376f38)=>{const _0x2bff31=a2_0x597581,_0x5c0c10=new UseCommand(),_0x45cfb5=program[_0x2bff31(0x22f)](),_0x1116d8=[];if(_0x3ec38b)_0x1116d8[_0x2bff31(0x108)](_0x3ec38b);if(_0x2b52dc)_0x1116d8[_0x2bff31(0x108)](_0x2b52dc);const _0x7c3949=await _0x5c0c10[_0x2bff31(0x14c)]({'options':{..._0x45cfb5,..._0x376f38},'args':_0x1116d8,'tdx':null});gracefulExit(_0x7c3949);}),program[a2_0x597581(0x146)]('status')[a2_0x597581(0x227)]('Show\x20authentication\x20status\x20and\x20current\x20context')[a2_0x597581(0x161)](async _0x829ae4=>{const _0x5de82b=a2_0x597581,_0x3a8153=new StatusCommand(),_0x3d32e9=program[_0x5de82b(0x22f)](),_0x4de779=await createTDXInstance(_0x3d32e9),_0x275fb3=await _0x3a8153['run']({'options':{..._0x3d32e9,..._0x829ae4},'args':[],'tdx':_0x4de779});gracefulExit(_0x275fb3);}),program[a2_0x597581(0x146)]('unset\x20<resource>')[a2_0x597581(0x227)](a2_0x597581(0x1c2))['option'](a2_0x597581(0x15c),a2_0x597581(0x290))[a2_0x597581(0x161)](async(_0x322944,_0x4e8d21)=>{const _0x1c9c7f=a2_0x597581,_0x54886d=new UnsetCommand(),_0x29ce81=program[_0x1c9c7f(0x22f)](),_0xcc595c=await _0x54886d[_0x1c9c7f(0x14c)]({'options':{..._0x29ce81,..._0x4e8d21},'args':[_0x322944],'tdx':null});gracefulExit(_0xcc595c);}),program[a2_0x597581(0x146)](a2_0x597581(0xb5))[a2_0x597581(0x227)]('Interactive\x20chat\x20selector')['option']('--last',a2_0x597581(0xbd))[a2_0x597581(0x161)](async _0x465260=>{const _0x12b04b=a2_0x597581,_0x3e7877=new ChatsCommand(),_0xed539b=program[_0x12b04b(0x22f)](),_0x3bd6ef=await createTDXInstance(_0xed539b),_0x20cd20=await _0x3e7877['run']({'options':{..._0xed539b,..._0x465260},'args':[],'tdx':_0x3bd6ef});gracefulExit(_0x20cd20);});const authCmd=program[a2_0x597581(0x146)](a2_0x597581(0x2fb))[a2_0x597581(0x227)](a2_0x597581(0x2a9));async function runAuthStatusCommand(_0x1948fd){const _0x50629f=a2_0x597581,_0x4d39c6=new AuthStatusCommand(),_0x25924e=program[_0x50629f(0x22f)](),_0x420b36=await createTDXInstance(_0x25924e),_0x212810=await _0x4d39c6[_0x50629f(0x14c)]({'options':{..._0x25924e,..._0x1948fd},'args':[],'tdx':_0x420b36});gracefulExit(_0x212810);}authCmd[a2_0x597581(0x161)](runAuthStatusCommand),authCmd[a2_0x597581(0x146)]('status')[a2_0x597581(0x227)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x597581(0x161)](runAuthStatusCommand),authCmd['command'](a2_0x597581(0x1fd))['description'](a2_0x597581(0x1df))[a2_0x597581(0x2b2)]('after','\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')['action'](async _0x5d2876=>{const _0x28ea1d=a2_0x597581,_0x11ed85=new AuthSetupCommand(),_0x22bcbb=program[_0x28ea1d(0x22f)](),_0x595de2=await createTDXInstance(_0x22bcbb),_0x687c0e=await _0x11ed85[_0x28ea1d(0x14c)]({'options':{..._0x22bcbb,..._0x5d2876},'args':[],'tdx':_0x595de2});gracefulExit(_0x687c0e);}),authCmd['command'](a2_0x597581(0x299))['description'](a2_0x597581(0x244))['addHelpText'](a2_0x597581(0x235),'\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_0x597581(0x161)](async _0x8e2c77=>{const _0x274d80=a2_0x597581,_0x5ea4ff=new AuthClearCommand(),_0x452542=program['opts'](),_0x41a9d5=await _0x5ea4ff[_0x274d80(0x14c)]({'options':{..._0x452542,..._0x8e2c77},'args':[],'tdx':null});gracefulExit(_0x41a9d5);});const userCmd=program[a2_0x597581(0x146)](a2_0x597581(0x19a))['description']('User\x20management\x20commands'),userListAction=async _0x15b4f3=>{const _0x4f452e=a2_0x597581,_0x174ba0=new UserListCommand(),_0x36feba=program[_0x4f452e(0x22f)](),_0x20efb3=await createTDXInstance(_0x36feba),_0x62a6b=await _0x174ba0['run']({'options':{..._0x36feba,..._0x15b4f3},'args':[],'tdx':_0x20efb3});gracefulExit(_0x62a6b);};userCmd[a2_0x597581(0x161)](async _0x2e9c95=>{const _0x2f8251=a2_0x597581,_0x5c2f24=new UserCommand(),_0x56de08=program[_0x2f8251(0x22f)](),_0x5a3e0f=await createTDXInstance(_0x56de08),_0x22b820=await _0x5c2f24[_0x2f8251(0x14c)]({'options':{..._0x56de08,..._0x2e9c95},'args':[],'tdx':_0x5a3e0f});gracefulExit(_0x22b820);}),userCmd['command'](a2_0x597581(0x123))['description'](a2_0x597581(0xb7))[a2_0x597581(0x161)](userListAction),program[a2_0x597581(0x146)](a2_0x597581(0x2b4))[a2_0x597581(0x227)](a2_0x597581(0x247))[a2_0x597581(0x161)](userListAction),program[a2_0x597581(0x146)]('profiles')[a2_0x597581(0x227)](a2_0x597581(0x114))[a2_0x597581(0x161)](async _0x59e4d0=>{const _0xfa9c99=a2_0x597581,_0x5a4ac7=new ProfilesCommand(),_0x431769=program[_0xfa9c99(0x22f)](),_0x18bcf7=await _0x5a4ac7[_0xfa9c99(0x14c)]({'options':{..._0x431769,..._0x59e4d0},'args':[],'tdx':null});gracefulExit(_0x18bcf7);});const profileCmd=program[a2_0x597581(0x146)](a2_0x597581(0x17e))[a2_0x597581(0x227)](a2_0x597581(0x13b));profileCmd[a2_0x597581(0x161)](()=>{const _0x24fc94=a2_0x597581;profileCmd[_0x24fc94(0x1a4)]();});const profileListAction=async _0x2fadf4=>{const _0x42b8c1=a2_0x597581,_0x33aba0=new ProfilesCommand(),_0x108ee0=program[_0x42b8c1(0x22f)](),_0x56979c=await _0x33aba0['run']({'options':{..._0x108ee0,..._0x2fadf4},'args':[],'tdx':null});gracefulExit(_0x56979c);};profileCmd[a2_0x597581(0x146)](a2_0x597581(0x123))[a2_0x597581(0x227)](a2_0x597581(0x114))[a2_0x597581(0x161)](profileListAction),profileCmd['command']('create\x20[name]')[a2_0x597581(0x227)](a2_0x597581(0x293))['addHelpText'](a2_0x597581(0x235),a2_0x597581(0x2ac))['action'](async(_0x482687,_0x4669c4)=>{const _0x255792=a2_0x597581,_0x34aa66=new ProfileCreateCommand(),_0x200b46=program[_0x255792(0x22f)](),_0x393202=await _0x34aa66[_0x255792(0x14c)]({'options':{..._0x200b46,..._0x4669c4},'args':_0x482687?[_0x482687]:[],'tdx':null});gracefulExit(_0x393202);}),profileCmd['command']('remove\x20<name>')[a2_0x597581(0x227)]('Remove\x20a\x20profile')[a2_0x597581(0x2b2)]('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')['action'](async(_0x49eeab,_0x3a2f50)=>{const _0x31c0db=a2_0x597581,_0x3a1889=new ProfileRemoveCommand(),_0x3e339c=program[_0x31c0db(0x22f)](),_0x2f1c96=await _0x3a1889[_0x31c0db(0x14c)]({'options':{..._0x3e339c,..._0x3a2f50},'args':[_0x49eeab],'tdx':null});gracefulExit(_0x2f1c96);}),profileCmd['command'](a2_0x597581(0x165))['description'](a2_0x597581(0x2d5))[a2_0x597581(0x2b2)](a2_0x597581(0x235),a2_0x597581(0x149))['action'](async(_0x8d89a5,_0x52c459)=>{const _0x2ac988=a2_0x597581,_0x563a41=new ProfileSetCommand(),_0x3bd351=program['opts'](),_0x4e7744=await _0x563a41[_0x2ac988(0x14c)]({'options':{..._0x3bd351,..._0x52c459},'args':[_0x8d89a5],'tdx':null});gracefulExit(_0x4e7744);}),profileCmd['command'](a2_0x597581(0x16c))[a2_0x597581(0x227)](a2_0x597581(0x150))[a2_0x597581(0x135)](a2_0x597581(0x15c),a2_0x597581(0x199))[a2_0x597581(0x2b2)]('after',a2_0x597581(0x1c7))[a2_0x597581(0x161)](async(_0x356c1d,_0x5cc822)=>{const _0x3a1bf5=a2_0x597581,_0x12fc4f=new ProfileUseCommand(),_0x488e19=program['opts'](),_0xab44f0=await _0x12fc4f[_0x3a1bf5(0x14c)]({'options':{..._0x488e19,..._0x5cc822},'args':[_0x356c1d],'tdx':null});gracefulExit(_0xab44f0);});const engageCmd=program['command'](a2_0x597581(0x276))[a2_0x597581(0x227)](a2_0x597581(0x158)),createEngageAction=_0x17e685=>{return async(_0x370630,_0x13b331)=>{const _0x1c9a6d=a2_0x5212,_0x25739c=new _0x17e685(),_0x34c7b0=program[_0x1c9a6d(0x22f)](),_0x1922ff=await createTDXInstance(_0x34c7b0),_0x2b4d11=await _0x25739c[_0x1c9a6d(0x14c)]({'options':{..._0x34c7b0,..._0x13b331},'args':[_0x370630],'tdx':_0x1922ff});gracefulExit(_0x2b4d11);};},createEngageNoArgAction=_0x152237=>{return async _0x471163=>{const _0xb4914c=a2_0x5212,_0xb6cd53=new _0x152237(),_0x5c91f9=program[_0xb4914c(0x22f)](),_0x462d0a=await createTDXInstance(_0x5c91f9),_0x3716fe=await _0xb6cd53[_0xb4914c(0x14c)]({'options':{..._0x5c91f9,..._0x471163},'args':[],'tdx':_0x462d0a});gracefulExit(_0x3716fe);};},campaignCmd=engageCmd[a2_0x597581(0x146)](a2_0x597581(0x11f))[a2_0x597581(0x227)]('Campaign\x20management'),campaignListAction=async(_0x3e544d,_0x497062)=>{const _0x28262e=a2_0x597581,_0x5ada46=new EngageCampaignsCommand(),_0x4f90b5=program[_0x28262e(0x22f)](),_0x113466=await createTDXInstance(_0x4f90b5),_0x13686d=await _0x5ada46[_0x28262e(0x14c)]({'options':{..._0x4f90b5,..._0x497062},'args':_0x3e544d?[_0x3e544d]:[],'tdx':_0x113466});gracefulExit(_0x13686d);};campaignCmd[a2_0x597581(0x146)](a2_0x597581(0x21f))[a2_0x597581(0x227)](a2_0x597581(0x160))['option']('--type\x20<type>',a2_0x597581(0x127))[a2_0x597581(0x135)](a2_0x597581(0x1b0),a2_0x597581(0x2a5))[a2_0x597581(0x135)]('--workspace\x20<name>','Workspace\x20name')[a2_0x597581(0x161)](campaignListAction),engageCmd['command']('campaigns\x20[pattern]')[a2_0x597581(0x227)](a2_0x597581(0x10d))[a2_0x597581(0x135)](a2_0x597581(0x1a5),a2_0x597581(0x127))[a2_0x597581(0x135)](a2_0x597581(0x1b0),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option']('--workspace\x20<name>',a2_0x597581(0x239))['action'](campaignListAction),campaignCmd[a2_0x597581(0x146)](a2_0x597581(0x1b5))[a2_0x597581(0x227)](a2_0x597581(0x17c))[a2_0x597581(0x135)](a2_0x597581(0x183),a2_0x597581(0x239))[a2_0x597581(0x135)](a2_0x597581(0x185),a2_0x597581(0x130))[a2_0x597581(0x161)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x597581(0x146)](a2_0x597581(0x295))['description']('Create\x20a\x20new\x20campaign')[a2_0x597581(0xab)]('--name\x20<name>',a2_0x597581(0x2af))[a2_0x597581(0xab)](a2_0x597581(0x1a5),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x597581(0x135)]('--workspace\x20<name>',a2_0x597581(0x28d))[a2_0x597581(0x135)](a2_0x597581(0x24d),a2_0x597581(0xaf))[a2_0x597581(0x135)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x597581(0x135)]('--email-sender-id\x20<id>',a2_0x597581(0x136))[a2_0x597581(0x135)](a2_0x597581(0x29a),a2_0x597581(0x12d))[a2_0x597581(0x135)]('--start-at\x20<datetime>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x597581(0x135)](a2_0x597581(0x131),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x597581(0x161)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x597581(0x146)](a2_0x597581(0x28f))[a2_0x597581(0x227)]('Update\x20a\x20campaign')[a2_0x597581(0x135)]('--workspace\x20<name>',a2_0x597581(0x239))[a2_0x597581(0x135)](a2_0x597581(0xb2),a2_0x597581(0xc8))[a2_0x597581(0x135)](a2_0x597581(0x24d),'Campaign\x20description')['option'](a2_0x597581(0x1af),a2_0x597581(0x101))['option'](a2_0x597581(0xd9),a2_0x597581(0x136))[a2_0x597581(0x135)](a2_0x597581(0x29a),a2_0x597581(0x12d))[a2_0x597581(0x135)](a2_0x597581(0x258),a2_0x597581(0x279))['option'](a2_0x597581(0x131),a2_0x597581(0x28c))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x597581(0x146)](a2_0x597581(0x1b7))[a2_0x597581(0x227)](a2_0x597581(0xb6))[a2_0x597581(0x135)](a2_0x597581(0x183),'Workspace\x20name')[a2_0x597581(0x135)]('--yes',a2_0x597581(0x2f3))[a2_0x597581(0x161)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x597581(0x146)]('launch\x20<name-or-id>')[a2_0x597581(0x227)](a2_0x597581(0x129))[a2_0x597581(0x135)](a2_0x597581(0x183),a2_0x597581(0x239))[a2_0x597581(0x161)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x597581(0x146)](a2_0x597581(0x2c7))[a2_0x597581(0x227)]('Pause\x20a\x20campaign')[a2_0x597581(0x135)]('--workspace\x20<name>','Workspace\x20name')[a2_0x597581(0x161)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x597581(0x146)](a2_0x597581(0x197))['description'](a2_0x597581(0x22c))['option'](a2_0x597581(0x183),a2_0x597581(0x239))[a2_0x597581(0x161)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x597581(0x146)](a2_0x597581(0x18a))[a2_0x597581(0x227)]('Duplicate\x20a\x20campaign')[a2_0x597581(0x135)](a2_0x597581(0x183),a2_0x597581(0x239))[a2_0x597581(0x161)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x597581(0x266))[a2_0x597581(0x227)](a2_0x597581(0x1a3)),templateListAction=async(_0x29f6db,_0x530c45)=>{const _0x554db2=a2_0x597581,_0x356a84=new EngageTemplatesCommand(),_0x2c5428=program[_0x554db2(0x22f)](),_0xf88dc7=await createTDXInstance(_0x2c5428),_0x4d6c27=await _0x356a84[_0x554db2(0x14c)]({'options':{..._0x2c5428,..._0x530c45},'args':_0x29f6db?[_0x29f6db]:[],'tdx':_0xf88dc7});gracefulExit(_0x4d6c27);};templateCmd['command']('list\x20[pattern]')[a2_0x597581(0x227)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')['option']('--workspace\x20<name>',a2_0x597581(0x239))[a2_0x597581(0x161)](templateListAction),engageCmd[a2_0x597581(0x146)](a2_0x597581(0x228))[a2_0x597581(0x227)](a2_0x597581(0x198))[a2_0x597581(0x135)](a2_0x597581(0x183),a2_0x597581(0x239))[a2_0x597581(0x161)](templateListAction),templateCmd[a2_0x597581(0x146)](a2_0x597581(0x1b5))[a2_0x597581(0x227)](a2_0x597581(0x1f4))['option'](a2_0x597581(0x183),a2_0x597581(0x239))[a2_0x597581(0x135)](a2_0x597581(0x185),a2_0x597581(0x130))[a2_0x597581(0x161)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x597581(0x146)](a2_0x597581(0x295))[a2_0x597581(0x227)](a2_0x597581(0x2e1))[a2_0x597581(0xab)](a2_0x597581(0xb2),'Template\x20name')[a2_0x597581(0xab)](a2_0x597581(0x2cb),a2_0x597581(0x2d6))['requiredOption']('--html\x20<html>','HTML\x20template\x20content')[a2_0x597581(0x135)](a2_0x597581(0x183),a2_0x597581(0x28d))['option'](a2_0x597581(0x11c),'Plaintext\x20template\x20content')[a2_0x597581(0x135)](a2_0x597581(0x2f0),'Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)',_0x822557=>{const _0x3104c0=a2_0x597581;if(![_0x3104c0(0x2dc),_0x3104c0(0x2f1)]['includes'](_0x822557))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20editor\x20type:\x20'+_0x822557+_0x3104c0(0x1bc));return _0x822557;})[a2_0x597581(0x161)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command']('update\x20<name-or-id>')[a2_0x597581(0x227)]('Update\x20an\x20email\x20template')[a2_0x597581(0x135)](a2_0x597581(0x183),a2_0x597581(0x239))['option'](a2_0x597581(0xb2),'New\x20template\x20name')[a2_0x597581(0x135)](a2_0x597581(0x2cb),a2_0x597581(0x2d6))['option']('--html\x20<html>',a2_0x597581(0x1bf))[a2_0x597581(0x135)](a2_0x597581(0x11c),a2_0x597581(0x298))[a2_0x597581(0x161)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('delete\x20<name-or-id>')[a2_0x597581(0x227)](a2_0x597581(0x1a7))[a2_0x597581(0x135)](a2_0x597581(0x183),'Workspace\x20name')[a2_0x597581(0x135)](a2_0x597581(0xd3),a2_0x597581(0x2f3))[a2_0x597581(0x161)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x597581(0x146)]('workspace')[a2_0x597581(0x227)]('Workspace\x20management'),workspaceListAction=async(_0x26aeeb,_0x3b12e2)=>{const _0x27d26a=new EngageWorkspacesCommand(),_0x3efc53=program['opts'](),_0x461efd=await createTDXInstance(_0x3efc53),_0x53ec01=await _0x27d26a['run']({'options':{..._0x3efc53,..._0x3b12e2},'args':_0x26aeeb?[_0x26aeeb]:[],'tdx':_0x461efd});gracefulExit(_0x53ec01);};workspaceCmd[a2_0x597581(0x146)](a2_0x597581(0x21f))[a2_0x597581(0x227)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')['action'](workspaceListAction),engageCmd[a2_0x597581(0x146)]('workspaces\x20[pattern]')[a2_0x597581(0x227)](a2_0x597581(0x19b))[a2_0x597581(0x161)](workspaceListAction),workspaceCmd['command'](a2_0x597581(0x1b5))[a2_0x597581(0x227)](a2_0x597581(0xae))[a2_0x597581(0x135)]('--full',a2_0x597581(0x130))[a2_0x597581(0x161)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x597581(0x146)](a2_0x597581(0x295))[a2_0x597581(0x227)]('Create\x20a\x20workspace')[a2_0x597581(0xab)](a2_0x597581(0xb2),'Workspace\x20name')['option'](a2_0x597581(0x24d),a2_0x597581(0xc4))[a2_0x597581(0x161)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x597581(0x146)]('update\x20<name-or-id>')[a2_0x597581(0x227)](a2_0x597581(0x2fd))[a2_0x597581(0x135)](a2_0x597581(0xb2),'New\x20workspace\x20name')[a2_0x597581(0x135)](a2_0x597581(0x24d),a2_0x597581(0xc4))[a2_0x597581(0x161)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x597581(0x146)](a2_0x597581(0x1b7))[a2_0x597581(0x227)](a2_0x597581(0x1f5))['option'](a2_0x597581(0xd3),a2_0x597581(0x2f3))[a2_0x597581(0x161)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x597581(0x146)](a2_0x597581(0x16c))['description'](a2_0x597581(0xeb))[a2_0x597581(0x161)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x597581(0x146)](a2_0x597581(0x170))[a2_0x597581(0x227)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x47ca66=>{const _0x264ee6=a2_0x597581,_0x4c4c99=new ConnectionListCommand(),_0x52a8d9=program['opts'](),_0x1c17d5=await createTDXInstance(_0x52a8d9),_0x2ed3b8=await _0x4c4c99[_0x264ee6(0x14c)]({'options':{..._0x52a8d9,..._0x47ca66},'args':[],'tdx':_0x1c17d5});gracefulExit(_0x2ed3b8);};connectionCmd['command'](a2_0x597581(0x123))[a2_0x597581(0x227)](a2_0x597581(0x207))[a2_0x597581(0x161)](connectionListAction),program[a2_0x597581(0x146)](a2_0x597581(0x23f),{'hidden':!![]})[a2_0x597581(0x227)](a2_0x597581(0x1b9))['action'](connectionListAction),connectionCmd['command'](a2_0x597581(0x201))[a2_0x597581(0x227)](a2_0x597581(0x222))['action'](async(_0x91aa69,_0x51fd7b)=>{const _0x27075f=a2_0x597581,_0x2d771a=new ConnectionShowCommand(),_0x3eb10b=program[_0x27075f(0x22f)](),_0x33fd8f=await createTDXInstance(_0x3eb10b),_0x5b96cc=await _0x2d771a[_0x27075f(0x14c)]({'options':{..._0x3eb10b,..._0x51fd7b},'args':[_0x91aa69],'tdx':_0x33fd8f});gracefulExit(_0x5b96cc);}),connectionCmd[a2_0x597581(0x146)](a2_0x597581(0x2c8))[a2_0x597581(0x227)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x597581(0x161)](async(_0x5bf15b,_0x434896)=>{const _0x1c6f88=new ConnectionSchemaCommand(),_0x21508a=program['opts'](),_0x29f386=await createTDXInstance(_0x21508a),_0x192010=await _0x1c6f88['run']({'options':{..._0x21508a,..._0x434896},'args':[_0x5bf15b],'tdx':_0x29f386});gracefulExit(_0x192010);}),connectionCmd[a2_0x597581(0x146)]('types')['description'](a2_0x597581(0x1e4))[a2_0x597581(0x161)](async _0xeb1ae2=>{const _0xbc720c=a2_0x597581,_0x20ccfa=new ConnectionTypesCommand(),_0x4d8623=program[_0xbc720c(0x22f)](),_0x1180a0=await createTDXInstance(_0x4d8623),_0xfd715b=await _0x20ccfa['run']({'options':{..._0x4d8623,..._0xeb1ae2},'args':[],'tdx':_0x1180a0});gracefulExit(_0xfd715b);}),connectionCmd[a2_0x597581(0x146)](a2_0x597581(0x15a))[a2_0x597581(0x227)](a2_0x597581(0x23e))[a2_0x597581(0x161)](async(_0x4d314f,_0x4f5002)=>{const _0x27cf10=a2_0x597581,_0x17a232=new ConnectionSettingsCommand(),_0x300834=program[_0x27cf10(0x22f)](),_0x57d90e=await createTDXInstance(_0x300834),_0x2b1703=await _0x17a232[_0x27cf10(0x14c)]({'options':{..._0x300834,..._0x4f5002},'args':[_0x4d314f],'tdx':_0x57d90e});gracefulExit(_0x2b1703);});const journeyCmd=program[a2_0x597581(0x146)](a2_0x597581(0x256))[a2_0x597581(0x227)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x420071,_0x11e71f)=>{const _0x208a85=a2_0x597581,_0x553037=new JourneyListCommand(),_0xb5ef8b=program[_0x208a85(0x22f)](),_0x53b64d=await createTDXInstance(_0xb5ef8b),_0x2c6954=await _0x553037[_0x208a85(0x14c)]({'options':{..._0xb5ef8b,..._0x11e71f},'args':_0x420071?[_0x420071]:[],'tdx':_0x53b64d});gracefulExit(_0x2c6954);};journeyCmd[a2_0x597581(0x146)](a2_0x597581(0x21f))[a2_0x597581(0x227)]('List\x20journeys\x20in\x20current\x20context')[a2_0x597581(0x161)](journeyListAction),journeyCmd[a2_0x597581(0x146)](a2_0x597581(0x302))[a2_0x597581(0x227)](a2_0x597581(0xb1))[a2_0x597581(0x135)](a2_0x597581(0x1a2),a2_0x597581(0x124))['option'](a2_0x597581(0x1ef),'Include\x20execution\x20statistics')[a2_0x597581(0x161)](async(_0x22af94,_0x37c151)=>{const _0x5b7b72=a2_0x597581,_0x4dfe23=new JourneyViewCommand(),_0x4e9e4a=program[_0x5b7b72(0x22f)](),_0x5de215=await createTDXInstance(_0x4e9e4a),_0x21fd9c=await _0x4dfe23[_0x5b7b72(0x14c)]({'options':{..._0x4e9e4a,..._0x37c151},'args':[_0x22af94],'tdx':_0x5de215});gracefulExit(_0x21fd9c);}),journeyCmd[a2_0x597581(0x146)](a2_0x597581(0x2be))[a2_0x597581(0x227)](a2_0x597581(0xe9))[a2_0x597581(0x135)](a2_0x597581(0x162),a2_0x597581(0x204))[a2_0x597581(0x161)](async(_0x4637ff,_0x5214eb)=>{const _0x1c77b8=a2_0x597581,_0x31af5d=new JourneyStatsCommand(),_0x315157=program[_0x1c77b8(0x22f)](),_0x3a6513=await createTDXInstance(_0x315157),_0x3da22b=await _0x31af5d[_0x1c77b8(0x14c)]({'options':{..._0x315157,..._0x5214eb},'args':[_0x4637ff],'tdx':_0x3a6513});gracefulExit(_0x3da22b);}),journeyCmd[a2_0x597581(0x146)](a2_0x597581(0x2f8))[a2_0x597581(0x227)](a2_0x597581(0xf8))[a2_0x597581(0x161)](async(_0x15a651,_0x4e7a25)=>{const _0x123b91=a2_0x597581,_0x570b99=new JourneyPauseCommand(),_0x168d24=program['opts'](),_0x23b1c9=await createTDXInstance(_0x168d24),_0x12b519=await _0x570b99[_0x123b91(0x14c)]({'options':{..._0x168d24,..._0x4e7a25},'args':[_0x15a651],'tdx':_0x23b1c9});gracefulExit(_0x12b519);}),journeyCmd[a2_0x597581(0x146)](a2_0x597581(0x15e))[a2_0x597581(0x227)](a2_0x597581(0x1b8))[a2_0x597581(0x161)](async(_0x38aeb7,_0x1f5bde)=>{const _0x27c8d9=a2_0x597581,_0x478f4a=new JourneyResumeCommand(),_0x5dfe65=program['opts'](),_0x100782=await createTDXInstance(_0x5dfe65),_0x2da7de=await _0x478f4a[_0x27c8d9(0x14c)]({'options':{..._0x5dfe65,..._0x1f5bde},'args':[_0x38aeb7],'tdx':_0x100782});gracefulExit(_0x2da7de);}),journeyCmd[a2_0x597581(0x146)](a2_0x597581(0x1f3))[a2_0x597581(0x227)](a2_0x597581(0x194))[a2_0x597581(0x135)](a2_0x597581(0x292),a2_0x597581(0x2f3))['option']('--dry-run',a2_0x597581(0x151))['action'](async(_0x52ee88,_0x5f93a)=>{const _0x1362ae=a2_0x597581,_0x3cff44=new JourneyPullCommand(),_0x338fb8=program[_0x1362ae(0x22f)](),_0x2d62d8=await createTDXInstance(_0x338fb8),_0x3d5322=await _0x3cff44['run']({'options':{..._0x338fb8,..._0x5f93a},'args':_0x52ee88?[_0x52ee88]:[],'tdx':_0x2d62d8});gracefulExit(_0x3d5322);}),journeyCmd[a2_0x597581(0x146)](a2_0x597581(0x236))['description'](a2_0x597581(0x1cc))[a2_0x597581(0x161)](async(_0x270acb,_0x35bba3)=>{const _0x2b3a2b=a2_0x597581,_0x4f61e4=new JourneyPushCommand(),_0x36f9b8=program[_0x2b3a2b(0x22f)](),_0x3344b2=await createTDXInstance(_0x36f9b8),_0x5b2ecb=await _0x4f61e4[_0x2b3a2b(0x14c)]({'options':{..._0x36f9b8,..._0x35bba3},'args':_0x270acb?[_0x270acb]:[],'tdx':_0x3344b2});gracefulExit(_0x5b2ecb);}),journeyCmd[a2_0x597581(0x146)]('validate\x20[target]')[a2_0x597581(0x227)](a2_0x597581(0x2c0))[a2_0x597581(0x161)](async(_0x443b29,_0x322a63)=>{const _0x1f3323=a2_0x597581,_0x575a82=new JourneyValidateCommand(),_0x5e9ff5=program[_0x1f3323(0x22f)](),_0x26e82c=await createTDXInstance(_0x5e9ff5),_0x139ac8=await _0x575a82[_0x1f3323(0x14c)]({'options':{..._0x5e9ff5,..._0x322a63},'args':_0x443b29?[_0x443b29]:[],'tdx':_0x26e82c});gracefulExit(_0x139ac8);}),program[a2_0x597581(0x146)](a2_0x597581(0x267))[a2_0x597581(0x227)]('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x597581(0x161)](journeyListAction);const agentSyncCmd=program[a2_0x597581(0x146)](a2_0x597581(0x213))[a2_0x597581(0x227)](a2_0x597581(0xcf));agentSyncCmd[a2_0x597581(0x146)](a2_0x597581(0x14f))[a2_0x597581(0x227)](a2_0x597581(0xb9))[a2_0x597581(0x135)](a2_0x597581(0x1d6),a2_0x597581(0x2e9))[a2_0x597581(0x135)]('-f,\x20--force',a2_0x597581(0x282))[a2_0x597581(0x161)](async(_0x3a33fe,_0x4aabaf,_0x104580)=>{const _0x11112f=a2_0x597581,_0x4086d0=new AgentPullCommand(),_0x42e824=program[_0x11112f(0x22f)](),_0x4a5635=await createTDXInstance(_0x42e824),_0x2ab990=[];if(_0x3a33fe)_0x2ab990[_0x11112f(0x108)](_0x3a33fe);if(_0x4aabaf)_0x2ab990[_0x11112f(0x108)](_0x4aabaf);const _0x544396=await _0x4086d0[_0x11112f(0x14c)]({'options':{..._0x42e824,..._0x104580},'args':_0x2ab990,'tdx':_0x4a5635});gracefulExit(_0x544396);}),agentSyncCmd[a2_0x597581(0x146)](a2_0x597581(0xc0))[a2_0x597581(0x227)](a2_0x597581(0x2a0))[a2_0x597581(0x135)](a2_0x597581(0xd0),a2_0x597581(0x182))['action'](async(_0x33ce05,_0x38c196)=>{const _0x414f38=a2_0x597581,_0x4b1d89=new AgentPushCommand(),_0x5cb54b=program[_0x414f38(0x22f)](),_0x5b1f74=await createTDXInstance(_0x5cb54b),_0x333ced=await _0x4b1d89[_0x414f38(0x14c)]({'options':{..._0x5cb54b,..._0x38c196},'args':_0x33ce05?[_0x33ce05]:[],'tdx':_0x5b1f74});gracefulExit(_0x333ced);}),agentSyncCmd[a2_0x597581(0x146)](a2_0x597581(0x26a))[a2_0x597581(0x227)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')[a2_0x597581(0x135)](a2_0x597581(0x13a),a2_0x597581(0x238))['action'](async(_0x1dc770,_0x454346)=>{const _0x1b268a=a2_0x597581,_0x121e59=new AgentCloneCommand(),_0x314f79=program[_0x1b268a(0x22f)](),_0x28ea0b=await createTDXInstance(_0x314f79),_0x733201=await _0x121e59['run']({'options':{..._0x314f79,..._0x454346},'args':_0x1dc770?[_0x1dc770]:[],'tdx':_0x28ea0b});gracefulExit(_0x733201);}),agentSyncCmd['command'](a2_0x597581(0x12f))[a2_0x597581(0x227)](a2_0x597581(0x209))[a2_0x597581(0x135)]('--name\x20<names>',a2_0x597581(0x109))[a2_0x597581(0x135)](a2_0x597581(0xaa),a2_0x597581(0x19e))['option'](a2_0x597581(0x15f),'Parse\x20and\x20validate\x20without\x20executing')[a2_0x597581(0x135)](a2_0x597581(0x225),a2_0x597581(0xe6))[a2_0x597581(0x135)](a2_0x597581(0x2ff),a2_0x597581(0xd8))['action'](async(_0x4c1283,_0x5f0d71)=>{const _0x15116c=a2_0x597581,_0x22bd97=new AgentTestCommand(),_0x22a93e=program['opts'](),_0x5eaa13=await createTDXInstance(_0x22a93e),_0x10c346=await _0x22bd97[_0x15116c(0x14c)]({'options':{..._0x22a93e,..._0x5f0d71},'args':_0x4c1283?[_0x4c1283]:[],'tdx':_0x5eaa13});gracefulExit(_0x10c346);}),agentSyncCmd[a2_0x597581(0x146)]('list\x20[pattern]')[a2_0x597581(0x227)](a2_0x597581(0x18e))[a2_0x597581(0x161)](llmAgentListAction),agentSyncCmd[a2_0x597581(0x146)](a2_0x597581(0x29c))[a2_0x597581(0x227)]('Show\x20agent\x20details')[a2_0x597581(0x161)](async(_0xb28222,_0x923770)=>{const _0x36e255=a2_0x597581,_0x13eda2=new LLMAgentShowCommand(),_0x369e28=program[_0x36e255(0x22f)](),_0x2c8fb5=await createTDXInstance(_0x369e28),_0x3ff32a=await _0x13eda2['run']({'options':{..._0x369e28,..._0x923770},'args':[_0xb28222],'tdx':_0x2c8fb5});gracefulExit(_0x3ff32a);}),agentSyncCmd[a2_0x597581(0x146)]('create\x20<name>')['description'](a2_0x597581(0x1b2))[a2_0x597581(0x135)](a2_0x597581(0xc7),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x597581(0x135)](a2_0x597581(0x2f9),a2_0x597581(0x291),a2_0x597581(0x1cb))[a2_0x597581(0x135)](a2_0x597581(0x2d3),a2_0x597581(0x1a8))[a2_0x597581(0x135)](a2_0x597581(0x229),a2_0x597581(0x269),'4')['option'](a2_0x597581(0x284),a2_0x597581(0x1ac),a2_0x597581(0x177))[a2_0x597581(0x161)](async(_0x464cb5,_0x415ee5)=>{const _0x2fc244=a2_0x597581,_0xeb8613=new LLMAgentCreateCommand(),_0x57e8a6=program[_0x2fc244(0x22f)](),_0xdb377f=await createTDXInstance(_0x57e8a6),_0x46a16e=await _0xeb8613[_0x2fc244(0x14c)]({'options':{..._0x57e8a6,..._0x415ee5},'args':[_0x464cb5],'tdx':_0xdb377f});gracefulExit(_0x46a16e);}),agentSyncCmd[a2_0x597581(0x146)](a2_0x597581(0xad))['description']('Update\x20an\x20existing\x20agent')[a2_0x597581(0x135)](a2_0x597581(0x1bb),a2_0x597581(0x1e0))[a2_0x597581(0x135)](a2_0x597581(0x2ce),a2_0x597581(0x157))[a2_0x597581(0x135)](a2_0x597581(0xe1),a2_0x597581(0x13c))[a2_0x597581(0x135)](a2_0x597581(0x2d3),a2_0x597581(0x1a8))[a2_0x597581(0x161)](async(_0x3b0300,_0x177ed3)=>{const _0x3d42bd=a2_0x597581,_0x46c050=new LLMAgentUpdateCommand(),_0x3d9077=program[_0x3d42bd(0x22f)](),_0x54a430=await createTDXInstance(_0x3d9077),_0x28796a=await _0x46c050[_0x3d42bd(0x14c)]({'options':{..._0x3d9077,..._0x177ed3},'args':[_0x3b0300],'tdx':_0x54a430});gracefulExit(_0x28796a);}),agentSyncCmd['command'](a2_0x597581(0x148))[a2_0x597581(0x227)](a2_0x597581(0xee))[a2_0x597581(0x161)](async(_0x15230e,_0x282834)=>{const _0x47dfea=a2_0x597581,_0x2a9a42=new LLMAgentDeleteCommand(),_0x369109=program[_0x47dfea(0x22f)](),_0xbae739=await createTDXInstance(_0x369109),_0x13e4c0=await _0x2a9a42[_0x47dfea(0x14c)]({'options':{..._0x369109,..._0x282834},'args':[_0x15230e],'tdx':_0xbae739});gracefulExit(_0x13e4c0);});export{program};export function runCLI(){const _0x5db0cb=a2_0x597581,_0x2429ac=!process[_0x5db0cb(0x219)][_0x5db0cb(0x248)](0x2)[_0x5db0cb(0x188)];showBriefHelp=_0x2429ac,program[_0x5db0cb(0x1fb)](process[_0x5db0cb(0x219)]),_0x2429ac&&program[_0x5db0cb(0x1a4)](),process['stderr'][_0x5db0cb(0xff)]&&process[_0x5db0cb(0x219)][_0x5db0cb(0x188)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x5db0cb(0xed)](_0x51487c=>{_0x51487c&&displayUpdateNotification(_0x51487c);})[_0x5db0cb(0x280)](()=>{});}