@treasuredata/tdx 0.26.4 → 0.26.6

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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-command.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/journey-command.js +1 -1
  23. package/dist/commands/journey-validate-command.js +1 -1
  24. package/dist/commands/llm-command.js +1 -1
  25. package/dist/commands/mcp-command.js +1 -1
  26. package/dist/commands/parent-segment-command.js +1 -1
  27. package/dist/commands/profile-command.js +1 -1
  28. package/dist/commands/profiles-command.js +1 -1
  29. package/dist/commands/query-command.js +1 -1
  30. package/dist/commands/schedule-command.js +1 -1
  31. package/dist/commands/segment-command.js +1 -1
  32. package/dist/commands/segment-create-command.js +1 -1
  33. package/dist/commands/segment-fields-command.js +1 -1
  34. package/dist/commands/segment-pull-command.js +1 -1
  35. package/dist/commands/segment-push-command.js +1 -1
  36. package/dist/commands/segment-update-command.js +1 -1
  37. package/dist/commands/segment-use-command.js +1 -1
  38. package/dist/commands/segment-validate-command.js +1 -1
  39. package/dist/commands/segments.js +1 -1
  40. package/dist/commands/show.js +1 -1
  41. package/dist/commands/status-command.js +1 -1
  42. package/dist/commands/tables.js +1 -1
  43. package/dist/commands/unset-command.js +1 -1
  44. package/dist/commands/use-command.js +1 -1
  45. package/dist/commands/user-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/command-output.js +1 -1
  49. package/dist/core/config.js +1 -1
  50. package/dist/core/connection-cache.js +1 -1
  51. package/dist/core/constants.js +1 -1
  52. package/dist/core/credential-cache.js +1 -1
  53. package/dist/core/global-context.js +1 -1
  54. package/dist/core/keychain.js +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/project-config.js +1 -1
  57. package/dist/core/session.js +1 -1
  58. package/dist/core/user-cache.js +1 -1
  59. package/dist/core/version.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/mcp/server.js +1 -1
  62. package/dist/mcp/tools/index.js +1 -1
  63. package/dist/mcp/tools/tdx-run.js +1 -1
  64. package/dist/mcp/tools/tdx-search.js +1 -1
  65. package/dist/mcp/utils.js +1 -1
  66. package/dist/proxy/claude-usage-tracker.js +1 -1
  67. package/dist/proxy/passthrough-server.js +1 -1
  68. package/dist/proxy/sse-usage-parser.js +1 -1
  69. package/dist/sdk/agent/agent-config.js +1 -1
  70. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  71. package/dist/sdk/agent/agent-yaml.js +1 -1
  72. package/dist/sdk/agent/test/evaluator.js +1 -1
  73. package/dist/sdk/agent/test/executor.js +1 -1
  74. package/dist/sdk/agent/test/index.js +1 -1
  75. package/dist/sdk/agent/test/output.js +1 -1
  76. package/dist/sdk/agent/test/parser.js +1 -1
  77. package/dist/sdk/api.js +1 -1
  78. package/dist/sdk/client/cdp-api-client.js +1 -1
  79. package/dist/sdk/client/endpoints.js +1 -1
  80. package/dist/sdk/client/engage-api-client.js +1 -1
  81. package/dist/sdk/client/http-client.js +1 -1
  82. package/dist/sdk/client/llm-api-client.js +1 -1
  83. package/dist/sdk/client/rate-limiter.js +1 -1
  84. package/dist/sdk/client/td-api-client.js +1 -1
  85. package/dist/sdk/client/trino-api-client.js +1 -1
  86. package/dist/sdk/client/workflow-client.js +1 -1
  87. package/dist/sdk/connection-validator.js +1 -1
  88. package/dist/sdk/connection.js +1 -1
  89. package/dist/sdk/engage.js +1 -1
  90. package/dist/sdk/errors.js +1 -1
  91. package/dist/sdk/index.js +1 -1
  92. package/dist/sdk/io/index.js +1 -1
  93. package/dist/sdk/io/node-filesystem.js +1 -1
  94. package/dist/sdk/job.js +1 -1
  95. package/dist/sdk/journey.js +1 -1
  96. package/dist/sdk/llm/chat-cache.js +1 -1
  97. package/dist/sdk/llm/index.js +1 -1
  98. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  99. package/dist/sdk/llm/model-factors.js +1 -1
  100. package/dist/sdk/personalization.js +1 -1
  101. package/dist/sdk/query/index.js +1 -1
  102. package/dist/sdk/query/sql-parser.js +1 -1
  103. package/dist/sdk/realtime.js +1 -1
  104. package/dist/sdk/schedule.js +1 -1
  105. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  106. package/dist/sdk/segment/fields-display.js +1 -1
  107. package/dist/sdk/segment/file-discovery.js +1 -1
  108. package/dist/sdk/segment/journey-utils.js +1 -1
  109. package/dist/sdk/segment/journey-validator.js +1 -1
  110. package/dist/sdk/segment/journey-yaml.js +1 -1
  111. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  112. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  113. package/dist/sdk/segment/pull-workflow.js +1 -1
  114. package/dist/sdk/segment/push-recovery.js +1 -1
  115. package/dist/sdk/segment/push-workflow.js +1 -1
  116. package/dist/sdk/segment/resolution-context.js +1 -1
  117. package/dist/sdk/segment/segment-path-parser.js +1 -1
  118. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  119. package/dist/sdk/segment/target-resolution.js +1 -1
  120. package/dist/sdk/segment/tdx-config.js +1 -1
  121. package/dist/sdk/segment/validate-files.js +1 -1
  122. package/dist/sdk/segment/yaml-validator.js +1 -1
  123. package/dist/sdk/segment.js +1 -1
  124. package/dist/sdk/types/index.js +1 -1
  125. package/dist/sdk/types/progress.js +1 -1
  126. package/dist/sdk/user.js +1 -1
  127. package/dist/sdk/util/format-detector.js +1 -1
  128. package/dist/sdk/util/formatters.js +1 -1
  129. package/dist/sdk/util/index.js +1 -1
  130. package/dist/sdk/util/tree-formatter.js +1 -1
  131. package/dist/sdk/workflow/archive-validation.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_0x2a53d9=a2_0x51e6;function a2_0x4ad1(){const _0x2da29a=['Database\x20to\x20query\x20(default:\x20information_schema)','test\x20[path]','join','--trace','Personalization\x20service\x20management','Workflow\x20project\x20management','Preview\x20operation\x20without\x20executing','--jsonl','jsonl','--rule-file\x20<file>','List\x20all\x20available\x20profiles','run\x20[name]','--attributes\x20<json>','42UMsiKM','argv','Master\x20table\x20name','sessions\x20[project]','Temperature\x20(0.0-2.0,\x20default:\x200.7)','colorFn','forEach','tdx','-o,\x20--output\x20<file>','list','Updated\x20timezone','10418436pWGYPi','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','913795SGpZLZ','Timezone\x20(e.g.,\x20America/Los_Angeles)','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','use\x20<path>','[action]','--full','Set\x20operation\x20timeout\x20in\x20seconds','_hidden','Show\x20agent\x20details','--force','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','show\x20<job-id>','--clear','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','templates\x20[pattern]','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','delete\x20<name>','--html\x20<html>','[attempt-id]','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Start\x20a\x20new\x20chat\x20session','log\x20<chat-id>','Kill\x20a\x20job','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Database\x20name\x20(default:\x20information_schema)','7143328XDKHmF','claude\x20[args...]','use\x20<project-name>','--attribute\x20[name]','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','Open\x20parent\x20segment\x20in\x20web\x20browser','length','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','-1d','Delay\x20in\x20seconds\x20before\x20execution','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Filtering\x20rule\x20as\x20JSON\x20string','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','remove\x20<name>','[EXPERIMENTAL]\x20Show\x20chat\x20log','user','Campaign\x20management','options','Run\x20a\x20scheduled\x20query\x20immediately','Trino\x20catalog\x20(default:\x20td)','information_schema','--type\x20<type>','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','requiredOption','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','restore\x20<folder>','show\x20[name]','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Workspace\x20name','required','131442DNetkv','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','attempts\x20[project]','download\x20<project-name>\x20[output-dir]',',\x20version\x20','--workspace\x20<name>','-X,\x20--method\x20<method>','Maximum\x20tool\x20iterations\x20(default:\x204)','log','--dry-run','Customer\x20group\x20from\x20JSON\x20file','Preview\x20changes\x20without\x20pushing','padWidth','attempt:','outputHelp','update\x20<name-or-id>','-c,\x20--continue','RT\x202.0\x20configuration\x20management','-f,\x20--force','--schedule-type\x20<type>','job','show\x20<folder_ref>','--reason\x20<text>','--add-attributes-file\x20<file>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Show\x20authentication\x20status\x20and\x20current\x20context','Email\x20subject\x20template','Run\x20Trino\x20query\x20with\x20streaming\x20results','error','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','tasks','AI-native\x20CLI\x20for\x20Treasure\x20Data','--add-behaviors-file\x20<file>','Skip\x20validation\x20of\x20.dig\x20files','subcommandDescription','0.7','List\x20journeys\x20in\x20current\x20context','hidden','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','createAsync','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','\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','push\x20[file]','stdout','Query\x20type:\x20trino\x20or\x20hive','Set\x20or\x20show\x20parent\x20segment\x20context','Clear\x20session\x20context','commandDescription','Read\x20query\x20from\x20file','tables\x20[pattern]','31490271WSbNwB','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--table\x20<table>','Create\x20a\x20workspace','--subject\x20<subject>','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Name\x20for\x20the\x20new\x20project\x20(required)','Generate\x20test\x20conversations\x20without\x20evaluation','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20connection\x20details\x20by\x20name','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','run','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--format\x20<format>','Resume\x20from\x20specific\x20task\x20(retry)','run\x20[workflow]','Output\x20as\x20JSON','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','view\x20<name-or-path>','Attempt\x20ID','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Campaign\x20type\x20(email\x20or\x20push)','setup','retry','parent_segment','list\x20[name]','--in\x20<database>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Pull\x20workflow\x20project\x20to\x20local\x20folder','sql\x20[segment_name]','push\x20[source-dir]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Create\x20a\x20scheduled\x20query','-d,\x20--database\x20<database>','Remove\x20API\x20key\x20from\x20system\x20keychain','kill','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Create\x20a\x20new\x20LLM\x20project','preAction','Pause\x20a\x20campaign','Reason\x20for\x20killing\x20the\x20attempt','pause\x20<name-or-id>','table','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','then','summary','commandUsage','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Interactive\x20chat\x20selector','optionTerm','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','--skip-validation','Job\x20management\x20commands','command','fields\x20[parent_name]','connection','view\x20[segment_name]','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','Output\x20file\x20path\x20(default:\x20<name>.yml)','Move\x20to\x20folder','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','llm','--revision\x20<revision>','Database\x20management\x20commands','Task\x20name\x20for\x20logs\x20action','--start-at\x20<datetime>','slice','--kind\x20<type>','Validate\x20journey\x20YAML\x20files\x20locally','clear','create\x20[name]','Campaign\x20description','Add\x20behaviors\x20from\x20JSON\x20file','--cron\x20<expression>','--parent-segment\x20<name>','preview\x20[file]','Show\x20workspace\x20details','kill\x20<job-id>','pause\x20<name-or-path>','Manage\x20workflow\x20project\x20secrets','[DEPRECATED]\x20Segment\x20folder\x20management','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Read\x20SQL\x20query\x20from\x20file','INVALID_ARGUMENT','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','show\x20[table]','aliases','Skip\x20population\x20counting','LLM\x20project\x20management','List\x20all\x20users\x20in\x20the\x20account','--priority\x20<-2~2>','Resume\x20a\x20paused\x20campaign','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','push\x20[name]','--plaintext\x20<text>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Update\x20an\x20existing\x20agent','--default','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Timezone\x20for\x20cron','List\x20jobs','--color','--include-retried','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--max-tool-iterations\x20<n>','--database\x20<db>','Plaintext\x20template\x20content','submit\x20[query]','action','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','set','--timezone\x20<tz>','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Resume\x20a\x20paused\x20journey','[task-name]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--json-columns\x20<cols>','--version','-r,\x20--resume','Include\x20retried\x20attempts\x20(for\x20list)','map','Show\x20email\x20template\x20details','-u,\x20--use','push','format','New\x20campaign\x20name','Workflow\x20attempt\x20management','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Describe\x20table\x20schema','session','-v,\x20--verbose','init\x20[name]','Export\x20journey(s)\x20as\x20YAML\x20files','addHelpText','push\x20[target]','--starter-message\x20<text>','json','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','show\x20<agent-name>','--description\x20<text>','mcp','Starter\x20message','stats\x20<name-or-path>','name','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Create\x20an\x20email\x20template','Filtering\x20rule\x20from\x20JSON\x20file','profile','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','us01','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Output\x20directory','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','validate\x20[target]','Starting\x20offset\x20(default:\x200)','upload\x20[project-name-or-dir]','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','--engine-version\x20<version>','Update\x20a\x20scheduled\x20query','--last','--rule\x20<json>','New\x20template\x20name','repeat','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','use\x20[name]','history\x20<name>','End\x20time\x20filter\x20(ISO\x208601\x20format)','--agent\x20<ref>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--include-stats','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','clone\x20[source]','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','--stage\x20<name>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Campaign\x20name','result\x20<job-id>','--num\x20<1-10>','--master','use\x20<name>','HTML\x20template\x20content','pull\x20<project>\x20[target-dir]','push\x20[path]','--params\x20<json>','CDP\x20segment\x20management\x20commands','Override\x20project\x20name','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Master\x20database\x20name','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Attributes\x20as\x20JSON\x20string','tsv','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Delete\x20a\x20workspace','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','desc','journeys\x20[pattern]','-y,\x20--yes','Invalid\x20editor\x20type:\x20','--time\x20<iso8601>','delete\x20<project-name-or-id>','--email-sender-id\x20<id>','schema\x20<type>','Include\x20retried\x20attempts','-f,\x20--file\x20<path>','alias','--customer-group-file\x20<file>','Unknown\x20action:\x20','create','--to\x20<n>','allowExcessArguments','Parent\x20segment\x20management','apiKey','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','opts','parents\x20[pattern]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','clone\x20[source-dir]','--limit\x20<number>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Open\x20segment\x20in\x20web\x20browser','set\x20<args...>','-o,\x20--output\x20<dir>','Path\x20is\x20not\x20a\x20directory:\x20','configureHelp','--max-depth\x20<depth>','--name\x20<names>','launch\x20<name-or-id>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Submit\x20a\x20job','--tags\x20<tags>','--table','Folder\x20description','update\x20<name>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','User\x20management\x20commands','claude-4.5-sonnet','desc\x20[name]','help','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','push\x20[parent_or_file]','filter','set\x20<key=value>','workspaces\x20[pattern]','--reeval','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','run\x20<name>','Database\x20name','includes','15QVZBad','isArray','Change\x20to\x20directory\x20before\x20executing\x20command','agents\x20[pattern]','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--new','--debug','Agent\x20name','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Setup\x20API\x20key\x20authentication\x20interactively','Delete\x20an\x20agent','\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','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','logLevel','Enable\x20verbose\x20logging','--model\x20<name>','--enriched','Show\x20segment\x20details\x20(alias\x20for\x20view)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--timeout\x20<seconds>','Request\x20body\x20as\x20JSON\x20string','--attempt-id\x20<id>','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Show\x20only\x20master\x20table\x20validation','--type\x20<api_type>','catch','-d,\x20--database\x20<name>','after','Ending\x20offset\x20(default:\x2020)','status','databases\x20[pattern]','parent-segment','--result\x20<url>','DEBUG','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Preview\x20without\x20creating\x20the\x20project','Custom\x20revision\x20name\x20(default:\x20timestamp)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--behavior\x20[name]','--llm-project\x20<name>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Query\x20engine\x20version','Options:','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Show\x20master\x20table\x20sample\x20data','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','chdir','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--include-subtasks','parse','Skip\x20confirmation\x20prompts','--delete','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','List\x20all\x20data\x20connections','--interval\x20<range>','--behaviors-file\x20<file>','workspace','Email\x20sender\x20ID\x20for\x20delivery','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--to\x20<timestamp>','-w,\x20--web','Update\x20a\x20workspace','-H,\x20--header\x20<header>','Show\x20stats\x20for\x20specific\x20stage','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','subcommandTerm','--tsv','--database\x20<name>','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Attributes\x20from\x20JSON\x20file','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Add\x20attributes\x20as\x20JSON\x20string','Output\x20as\x20JSON\x20Lines','allowUnknownOption','--description\x20<desc>','list\x20[pattern]','--editor-type\x20<type>','workflow','--from\x20<timestamp>','Job\x20priority\x20(-2\x20to\x202)','Email\x20template\x20management','Project\x20description','delete\x20<name-or-id>','database','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Customer\x20group\x20as\x20JSON\x20string','List\x20secret\x20keys\x20for\x20a\x20project','resume\x20<name-or-path>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','tdx\x20','Limit\x20number\x20of\x20rows','secrets','-n,\x20--name\x20<name>','pull\x20[project]\x20[agent-name]','Get\x20job\x20results','--attributes-file\x20<file>','padEnd','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','--name\x20<name>','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','injectIntoOptions','description','Workflow\x20parameter\x20(repeatable)','template','Workspace\x20description','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Include\x20execution\x20statistics','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Preview\x20changes\x20without\x20writing\x20files','view\x20[name]','--data\x20<data>','retry\x20<session-id>','--prompt\x20<text>','--delay\x20<seconds>','pull\x20[name]','-d,\x20--database\x20<db>','--no-color','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','isDirectory','--status\x20<status>','--job-type\x20<type>','registeredArguments','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','[options]\x20--\x20[claude-code-args...]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','trino','preview\x20[name]','--schedule-option\x20<value>','--segment\x20<path>','Run\x20tests\x20for\x20an\x20LLM\x20agent','Parent\x20folder\x20name\x20for\x20nested\x20folders','1964912ihSisd','show\x20<name-or-id>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','query\x20[sql]','--limit\x20<rows>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Maximum\x20recursion\x20depth\x20(default:\x2010)','Resume\x20from\x20specific\x20task','-r,\x20--recursive','Continue\x20most\x20recent\x20conversation','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','validate\x20[name]','isTTY','Add\x20behaviors\x20as\x20JSON\x20string','\x20(resolved\x20to\x20','backup\x20<name>','-p,\x20--profile\x20<name>','option','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--add-attributes\x20<json>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--limit\x20<n>','Update\x20an\x20email\x20template','logs','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Cron\x20expression\x20for\x20scheduling','noColor','campaigns\x20[pattern]','Skip\x20confirmation\x20prompt','Retry\x20limit\x20(0\x20to\x2032)','Show\x20journey\x20statistics','Data\x20connection\x20management\x20(for\x20activations/exports)','create\x20<segment_name>','--from-task\x20<task>','models','list\x20[project]','--stream','parent','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--param\x20<key=value>','Pull\x20child\x20segments\x20to\x20YAML\x20files','desc\x20[segment_name]','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Update\x20a\x20campaign','Read\x20request\x20body\x20from\x20file','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--follow','trace','--json','--session-time\x20<time>','delete\x20<agent-name>','482774RhCiFt','--retry-limit\x20<0~32>','describe','usage','grapesjs','--yes','Template\x20name','gitRevision','--session-id\x20<id>','Updated\x20description','Pull\x20specific\x20revision\x20(default:\x20latest)','Set\x20a\x20profile\x20configuration\x20value','exit','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--folder\x20<name>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--invisible','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','\x20-\x20built\x20','Launch\x20a\x20campaign','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Show\x20segment\x20schema\x20(column\x20types)','directory','GET','activations\x20<segment_name>','agent','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','chat\x20[message...]','Create\x20a\x20new\x20profile','Show\x20job\x20details','Agent\x20prompt/instructions','Pause\x20a\x20running\x20journey','resume\x20<name-or-id>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','attempt','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','journey','Delete\x20a\x20campaign','LLM\x20agent\x20management','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Show\x20schedule\x20execution\x20history','--no-eval','project','Workflow\x20session\x20management','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','--catalog\x20<catalog>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','argument','New\x20workspace\x20name','--name\x20<new-name>','Timezone\x20for\x20cron\x20(default:\x20UTC)','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','--name\x20<text>','Output\x20folder\x20(default:\x20{project_name}.llm)','TRACE','Show\x20campaign\x20details','engage'];a2_0x4ad1=function(){return _0x2da29a;};return a2_0x4ad1();}(function(_0x58cc52,_0x3151e6){const _0x414448=a2_0x51e6,_0x3253e6=_0x58cc52();while(!![]){try{const _0x44d6db=parseInt(_0x414448(0x266))/0x1+-parseInt(_0x414448(0x2f6))/0x2*(parseInt(_0x414448(0x1a5))/0x3)+parseInt(_0x414448(0x2d6))/0x4+-parseInt(_0x414448(0x2b9))/0x5*(-parseInt(_0x414448(0x2ac))/0x6)+parseInt(_0x414448(0x2b7))/0x7+-parseInt(_0x414448(0x230))/0x8+-parseInt(_0x414448(0x328))/0x9;if(_0x44d6db===_0x3151e6)break;else _0x3253e6['push'](_0x3253e6['shift']());}catch(_0x5e1158){_0x3253e6['push'](_0x3253e6['shift']());}}}(a2_0x4ad1,0xeb239));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,ChatCreateCommand}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';function a2_0x51e6(_0x723f8,_0x13cc67){_0x723f8=_0x723f8-0x189;const _0x4ad162=a2_0x4ad1();let _0x51e6d5=_0x4ad162[_0x723f8];return _0x51e6d5;}import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}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{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.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';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x2a53d9(0x2ad)][a2_0x2a53d9(0x1a4)](a2_0x2a53d9(0x3a4))){let versionOutput=a2_0x2a53d9(0x202)+currentVersion;buildInfo[a2_0x2a53d9(0x26d)]&&!currentVersion[a2_0x2a53d9(0x1a4)](buildInfo[a2_0x2a53d9(0x26d)])&&(versionOutput+='\x20('+buildInfo[a2_0x2a53d9(0x26d)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x2a53d9(0x278)+buildInfo['buildTime']),console[a2_0x2a53d9(0x2fe)](versionOutput),process[a2_0x2a53d9(0x272)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x2a53d9(0x315);buildInfo[a2_0x2a53d9(0x26d)]&&!currentVersion[a2_0x2a53d9(0x1a4)](buildInfo[a2_0x2a53d9(0x26d)])?description+=a2_0x2a53d9(0x2fa)+currentVersion+'\x20('+buildInfo[a2_0x2a53d9(0x26d)]+')':description+=',\x20version\x20'+currentVersion;program['name'](a2_0x2a53d9(0x2b3))[a2_0x2a53d9(0x20e)](description),program[a2_0x2a53d9(0x244)]('-C,\x20--directory\x20<path>',a2_0x2a53d9(0x1a7))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x243),a2_0x2a53d9(0x3c7))[a2_0x2a53d9(0x244)]('--site\x20<site>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x2a53d9(0x3c4))['option'](a2_0x2a53d9(0x336),a2_0x2a53d9(0x30e))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x193),a2_0x2a53d9(0x2c6))['option'](a2_0x2a53d9(0x263),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2a6),a2_0x2a53d9(0x223))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1ea),a2_0x2a53d9(0x1b2))[a2_0x2a53d9(0x244)]('--output\x20<file>','Save\x20output\x20to\x20file')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x40e),a2_0x2a53d9(0x407))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x393),a2_0x2a53d9(0x335),![])['option'](a2_0x2a53d9(0x21d),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3b1),a2_0x2a53d9(0x1b4),![])[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1ab),a2_0x2a53d9(0x3f1))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2a2),a2_0x2a53d9(0x406))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1b9),a2_0x2a53d9(0x2bf),'30')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2ff),a2_0x2a53d9(0x2a5),![])['option']('-y,\x20--yes',a2_0x2a53d9(0x1da),![])['option']('--session\x20<id>',a2_0x2a53d9(0x2da))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1c0),'Database\x20to\x20use\x20(overrides\x20context)')[a2_0x2a53d9(0x244)]('--in\x20<name>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x375),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1cd),a2_0x2a53d9(0x3ed)),program[a2_0x2a53d9(0x18c)]({'formatHelp':(_0x4cf889,_0x8382f4)=>{const _0x320837=a2_0x2a53d9,_0x575e69=_0x8382f4[_0x320837(0x302)](_0x4cf889,_0x8382f4),_0x5e3a00=0x2,_0x39c544=0x2;function _0x5e7e02(_0x245ac6){const _0x96196e=_0x320837,_0x2b5088=_0x245ac6;return!!(_0x2b5088[_0x96196e(0x2c0)]||_0x2b5088[_0x96196e(0x31b)]);}function _0x2dd9c8(_0x2dadf9,_0x117ce5){const _0x507067=_0x320837;if(_0x117ce5){const _0x202764=''+_0x2dadf9[_0x507067(0x209)](_0x575e69+_0x39c544)+_0x117ce5;return _0x202764;}return _0x2dadf9;}function _0x539260(_0x4466bb){const _0x55ee05=_0x320837;return _0x4466bb[_0x55ee05(0x2a1)]('\x0a')['replace'](/^/gm,'\x20'[_0x55ee05(0x3d1)](_0x5e3a00));}const _0x4aba76=[];_0x4aba76[_0x320837(0x3aa)]('Usage:\x20'+_0x8382f4[_0x320837(0x357)](_0x4cf889));const _0x33517b=_0x8382f4[_0x320837(0x325)](_0x4cf889);_0x33517b&&(_0x4aba76['push'](''),_0x4aba76[_0x320837(0x3aa)](_0x33517b));const _0xa63949=_0x4cf889['commands']['filter'](_0x441fec=>!_0x5e7e02(_0x441fec));if(_0xa63949[_0x320837(0x2dc)]>0x0){if(_0x4cf889['name']()==='tdx'){const _0x162965=_0x4cf889['opts'](),_0xf1781f=!_0x162965[_0x320837(0x24d)]&&process[_0x320837(0x321)][_0x320837(0x23f)],_0x240448=COMMAND_CATEGORIES,_0x1c083f=(_0x45aa0b,_0x305d0)=>_0xf1781f?_0x305d0(_0x45aa0b):_0x45aa0b,_0x1e6dbb=new Map();_0xa63949[_0x320837(0x2b2)](_0x280ba8=>{const _0x35a3fe=_0x320837;_0x1e6dbb[_0x35a3fe(0x39d)](_0x280ba8[_0x35a3fe(0x3be)](),_0x280ba8);}),_0x240448[_0x320837(0x2b2)](_0x527e85=>{const _0x3f2541=_0x320837,_0x403196=_0x527e85['commands']['flatMap'](_0x39dd9f=>_0x1e6dbb['get'](_0x39dd9f)??[]);if(_0x403196['length']>0x0){_0x4aba76['push'](''),_0x4aba76[_0x3f2541(0x3aa)](_0x1c083f(_0x527e85['name']+':',_0x527e85[_0x3f2541(0x2b1)]));const _0x390082=_0x403196[_0x3f2541(0x3a7)](_0x28282f=>{const _0x5f19c3=_0x3f2541,_0x21c958=_0x8382f4[_0x5f19c3(0x1e9)](_0x28282f),_0x5413db=_0x8382f4[_0x5f19c3(0x318)](_0x28282f);return _0x2dd9c8(_0x21c958,_0x5413db);});_0x4aba76[_0x3f2541(0x3aa)](_0x539260(_0x390082));}}),_0x4aba76['push'](''),_0x4aba76['push'](_0x320837(0x23b));}else{const _0x4d08c1=_0xa63949[_0x320837(0x3a7)](_0x5c7a2a=>{const _0x20e330=_0x320837,_0x436c69=_0x8382f4[_0x20e330(0x1e9)](_0x5c7a2a),_0x445945=_0x8382f4['subcommandDescription'](_0x5c7a2a);return _0x2dd9c8(_0x436c69,_0x445945);});_0x4aba76[_0x320837(0x3aa)](''),_0x4aba76[_0x320837(0x3aa)]('Commands:'),_0x4aba76[_0x320837(0x3aa)](_0x539260(_0x4d08c1));}}if(showBriefHelp&&_0x4cf889[_0x320837(0x3be)]()==='tdx')_0x4aba76[_0x320837(0x3aa)](''),_0x4aba76[_0x320837(0x3aa)](_0x320837(0x229));else{const _0xd5c47b=_0x4cf889[_0x320837(0x2e8)][_0x320837(0x19d)](_0x5e8d24=>!_0x5e7e02(_0x5e8d24));if(_0xd5c47b[_0x320837(0x2dc)]>0x0){const _0x49cda5=_0xd5c47b[_0x320837(0x3a7)](_0x11f6d8=>{const _0x33d369=_0x320837,_0x3ecb40=_0x8382f4[_0x33d369(0x35a)](_0x11f6d8),_0x4c2015=_0x8382f4['optionDescription'](_0x11f6d8);return _0x2dd9c8(_0x3ecb40,_0x4c2015);});_0x4aba76['push'](''),_0x4aba76[_0x320837(0x3aa)](_0x320837(0x1d0)),_0x4aba76[_0x320837(0x3aa)](_0x539260(_0x49cda5));}}const _0x5649f2=(_0x4cf889[_0x320837(0x222)]||[])[_0x320837(0x19d)](_0xbed0c=>!_0x5e7e02(_0xbed0c));if(_0x5649f2[_0x320837(0x2dc)]>0x0){const _0x5bc305=_0x5649f2['map'](_0xc5c8a7=>{const _0x3f1899=_0x8382f4['argumentTerm'](_0xc5c8a7),_0x36b5ba=_0x8382f4['argumentDescription'](_0xc5c8a7);return _0x2dd9c8(_0x3f1899,_0x36b5ba);});_0x4aba76[_0x320837(0x3aa)](''),_0x4aba76[_0x320837(0x3aa)]('Arguments:'),_0x4aba76[_0x320837(0x3aa)](_0x539260(_0x5bc305));}return _0x4aba76['join']('\x0a')+'\x0a';},'subcommandTerm':_0x578a8e=>{const _0x5802b3=a2_0x2a53d9,_0x53a5c4=(_0x578a8e[_0x5802b3(0x222)]||[])[_0x5802b3(0x3a7)](_0x344be2=>_0x344be2[_0x5802b3(0x2f5)]?'<'+_0x344be2['name']()+'>':'['+_0x344be2['name']()+']')[_0x5802b3(0x2a1)]('\x20'),_0x4ffa59=_0x578a8e[_0x5802b3(0x384)](),_0x310b5f=_0x4ffa59[_0x5802b3(0x2dc)]>0x0?_0x578a8e[_0x5802b3(0x3be)]()+',\x20'+_0x4ffa59[_0x5802b3(0x2a1)](',\x20'):_0x578a8e[_0x5802b3(0x3be)]();return _0x53a5c4?_0x310b5f+'\x20'+_0x53a5c4:_0x310b5f;}}),program['hook'](a2_0x2a53d9(0x34f),_0x4a776b=>{const _0x4a0c8d=a2_0x2a53d9,_0x4701bd=_0x4a776b[_0x4a0c8d(0x408)]();if(_0x4701bd[_0x4a0c8d(0x27c)]){const _0x335a17=resolve(_0x4701bd[_0x4a0c8d(0x27c)]),_0x1db4e6=_0x335a17!==_0x4701bd['directory']?_0x4a0c8d(0x241)+_0x335a17+')':'';if(!existsSync(_0x335a17))throw new SDKError(ErrorCode[_0x4a0c8d(0x37f)],'Directory\x20does\x20not\x20exist:\x20'+_0x4701bd[_0x4a0c8d(0x27c)]+_0x1db4e6,undefined,{'helpText':_0x4a0c8d(0x38d)});const _0x41cedc=statSync(_0x335a17);if(!_0x41cedc[_0x4a0c8d(0x21f)]())throw new SDKError(ErrorCode[_0x4a0c8d(0x37f)],_0x4a0c8d(0x18b)+_0x4701bd[_0x4a0c8d(0x27c)]+_0x1db4e6,undefined,{'helpText':_0x4a0c8d(0x3f0)});process[_0x4a0c8d(0x1d5)](_0x335a17);}if(!_0x4701bd[_0x4a0c8d(0x3ab)]){if(_0x4701bd[_0x4a0c8d(0x353)])_0x4701bd[_0x4a0c8d(0x3ab)]='table';else{if(_0x4701bd['json'])_0x4701bd[_0x4a0c8d(0x3ab)]=_0x4a0c8d(0x3b7);else{if(_0x4701bd[_0x4a0c8d(0x2a7)])_0x4701bd['format']=_0x4a0c8d(0x2a7);else _0x4701bd[_0x4a0c8d(0x3ef)]&&(_0x4701bd[_0x4a0c8d(0x3ab)]=_0x4a0c8d(0x3ef));}}}_0x4701bd['in']&&!_0x4701bd[_0x4a0c8d(0x1fc)]&&(_0x4701bd[_0x4a0c8d(0x1fc)]=_0x4701bd['in']);if(_0x4701bd[_0x4a0c8d(0x262)])_0x4701bd[_0x4a0c8d(0x1b3)]=LogLevel[_0x4a0c8d(0x29c)];else{if(_0x4701bd['debug'])_0x4701bd['logLevel']=LogLevel[_0x4a0c8d(0x1c7)];else _0x4701bd[_0x4a0c8d(0x1b3)]===undefined&&(_0x4701bd['logLevel']=LogLevel['INFO']);}});async function createTDXInstance(_0x370718){const _0xbccd93=a2_0x2a53d9,_0x447c34=await GlobalContext[_0xbccd93(0x31d)](_0x370718);return _0x447c34[_0xbccd93(0x20d)](_0x370718),TDX[_0xbccd93(0x401)]({'site':_0x447c34['site'],'apiKey':_0x447c34[_0xbccd93(0x405)],'logLevel':_0x447c34[_0xbccd93(0x1b3)],'profile':_0x447c34[_0xbccd93(0x3c2)]});}const databaseCmd=program['command'](a2_0x2a53d9(0x1fc))[a2_0x2a53d9(0x3fe)]('db')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x36a)),databaseListAction=async(_0x31b169,_0x6b5c9)=>{const _0x1e2473=a2_0x2a53d9,_0x4547a1=new DatabasesCommand(),_0x2399dc=program[_0x1e2473(0x408)](),_0x5369c6=await createTDXInstance(_0x2399dc),_0x57663e=await _0x4547a1['run']({'options':{..._0x2399dc,..._0x6b5c9},'args':_0x31b169?[_0x31b169]:[],'tdx':_0x5369c6});gracefulExit(_0x57663e);};databaseCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1f4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x33d))['action'](databaseListAction),program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1c4),{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x2a53d9(0x39a)](databaseListAction),program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x281))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x280))['option'](a2_0x2a53d9(0x3d6),a2_0x2a53d9(0x2e2))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1aa),a2_0x2a53d9(0x2ce))[a2_0x2a53d9(0x244)]('--chat-id\x20<id>',a2_0x2a53d9(0x227))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x257),a2_0x2a53d9(0x2ed))[a2_0x2a53d9(0x39a)](async(_0x13276f,_0x31856f)=>{const _0x5244d1=a2_0x2a53d9,_0x13b9f8=program[_0x5244d1(0x408)](),_0x512f14=await createTDXInstance(_0x13b9f8);if(_0x13276f[0x0]===_0x5244d1(0x401)){const _0x54eb5e=new ChatCreateCommand();gracefulExit(await _0x54eb5e['run']({'options':{..._0x13b9f8,..._0x31856f},'args':_0x13276f[_0x5244d1(0x36d)](0x1),'tdx':_0x512f14}));return;}const _0x51c8ea=new ChatCommand(),_0x2df031=await _0x51c8ea[_0x5244d1(0x333)]({'options':{..._0x13b9f8,..._0x31856f},'args':_0x13276f,'tdx':_0x512f14});gracefulExit(_0x2df031);});const apiCmd=program[a2_0x2a53d9(0x360)]('api\x20[endpoint]')[a2_0x2a53d9(0x356)](a2_0x2a53d9(0x2c9))[a2_0x2a53d9(0x3b4)](a2_0x2a53d9(0x1c1),'\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')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fc),a2_0x2a53d9(0x260),a2_0x2a53d9(0x27d))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x217),a2_0x2a53d9(0x1ba))[a2_0x2a53d9(0x244)]('-f,\x20--file\x20<path>',a2_0x2a53d9(0x25f))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1e6),a2_0x2a53d9(0x40c),(_0x27d7b8,_0x190ef8)=>{return _0x190ef8?[..._0x190ef8,_0x27d7b8]:[_0x27d7b8];})[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1be),a2_0x2a53d9(0x1d1),'td')[a2_0x2a53d9(0x39a)](async(_0x4275b1,_0xd4b87c)=>{const _0x29b806=a2_0x2a53d9;if(!_0x4275b1){apiCmd[_0x29b806(0x19a)]();return;}const _0x1b7878=new ApiCommand(),_0xb41b3f=program['opts'](),_0x1b87e1=await createTDXInstance(_0xb41b3f),_0x7aafaa=await _0x1b7878[_0x29b806(0x333)]({'options':{..._0xb41b3f,..._0xd4b87c},'args':[_0x4275b1],'tdx':_0x1b87e1});gracefulExit(_0x7aafaa);});program['command'](a2_0x2a53d9(0x3bb))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1d6))[a2_0x2a53d9(0x3b4)]('after',a2_0x2a53d9(0x31f))[a2_0x2a53d9(0x39a)](async _0x19cf0d=>{const _0x4de266=a2_0x2a53d9,_0x172b79=new MCPCommand(),_0x2d1e50=program['opts'](),_0x58d384=await createTDXInstance(_0x2d1e50),_0x18304a=await _0x172b79[_0x4de266(0x333)]({'options':{..._0x2d1e50,..._0x19cf0d},'args':[],'tdx':_0x58d384});gracefulExit(_0x18304a);});const tableCmd=program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x353))[a2_0x2a53d9(0x20e)]('Table\x20management\x20commands'),tableListAction=async(_0x27b395,_0x533439)=>{const _0x297896=a2_0x2a53d9,_0x30ceb7=new TablesCommand(),_0x3c1112=program[_0x297896(0x408)](),_0x4d964b=await createTDXInstance(_0x3c1112);_0x533439['in']&&(_0x533439[_0x297896(0x1fc)]=_0x533439['in']);const _0x4cce28=await _0x30ceb7['run']({'options':{..._0x3c1112,..._0x533439},'args':_0x27b395?[_0x27b395]:[],'tdx':_0x4d964b});gracefulExit(_0x4cce28);};tableCmd[a2_0x2a53d9(0x360)]('list\x20[pattern]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x35c))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x34a),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x343),a2_0x2a53d9(0x2d3))[a2_0x2a53d9(0x39a)](tableListAction),program['command'](a2_0x2a53d9(0x327),{'hidden':!![]})[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1b8))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x34a),a2_0x2a53d9(0x23d))['option'](a2_0x2a53d9(0x343),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](tableListAction),program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x383))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x313))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x34a),a2_0x2a53d9(0x382))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x343),a2_0x2a53d9(0x2d3))[a2_0x2a53d9(0x39a)](async(_0x21b38b,_0x50635d)=>{const _0x152103=a2_0x2a53d9,_0x3797d9=new ShowCommand(),_0x38ad73=program[_0x152103(0x408)](),_0x508540=await createTDXInstance(_0x38ad73);_0x50635d['in']&&(_0x50635d['database']=_0x50635d['in']);const _0x33f030=await _0x3797d9[_0x152103(0x333)]({'options':{..._0x38ad73,..._0x50635d},'args':_0x21b38b?[_0x21b38b]:[],'tdx':_0x508540});gracefulExit(_0x33f030);}),program[a2_0x2a53d9(0x360)]('describe\x20[table]')['alias'](a2_0x2a53d9(0x3f4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3af))['option']('-d,\x20--database\x20<database>',a2_0x2a53d9(0x382))['option'](a2_0x2a53d9(0x343),a2_0x2a53d9(0x2d3))['action'](async(_0x423a99,_0x2776fe)=>{const _0x2ac80d=a2_0x2a53d9,_0x578f5c=new DescribeCommand(),_0xf79855=program[_0x2ac80d(0x408)](),_0x27557e=await createTDXInstance(_0xf79855);_0x2776fe['in']&&(_0x2776fe[_0x2ac80d(0x1fc)]=_0x2776fe['in']);const _0x217531=await _0x578f5c['run']({'options':{..._0xf79855,..._0x2776fe},'args':_0x423a99?[_0x423a99]:[],'tdx':_0x27557e});gracefulExit(_0x217531);}),program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x233))['description'](a2_0x2a53d9(0x311))['option'](a2_0x2a53d9(0x34a),a2_0x2a53d9(0x29f))[a2_0x2a53d9(0x244)]('--in\x20<database>',a2_0x2a53d9(0x2d3))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x293),a2_0x2a53d9(0x2ea))['option'](a2_0x2a53d9(0x3fd),a2_0x2a53d9(0x37e))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x234),a2_0x2a53d9(0x1c8),'40')[a2_0x2a53d9(0x39a)](async(_0x34d5b8,_0x208fec)=>{const _0x54c638=a2_0x2a53d9,_0x5669e7=new QueryCommand(),_0x49e80c=program[_0x54c638(0x408)](),_0x3ded28=await createTDXInstance(_0x49e80c);_0x208fec['in']&&(_0x208fec[_0x54c638(0x1fc)]=_0x208fec['in']);const _0x183995=await _0x5669e7[_0x54c638(0x333)]({'options':{..._0x49e80c,..._0x208fec},'args':_0x34d5b8?[_0x34d5b8]:[],'tdx':_0x3ded28});gracefulExit(_0x183995);});const segmentCmd=program['command']('segment')[a2_0x2a53d9(0x3fe)]('sg')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3e9)),segmentListAction=async(_0x1eeb82,_0x1dc3e9)=>{const _0x13e159=a2_0x2a53d9,_0x573259=new SegmentsCommand(),_0xf544b=program[_0x13e159(0x408)](),_0x1fd810=await createTDXInstance(_0xf544b),_0x92ac45=await _0x573259[_0x13e159(0x333)]({'options':{..._0xf544b,..._0x1dc3e9},'args':_0x1eeb82?[_0x1eeb82]:[],'tdx':_0x1fd810});gracefulExit(_0x92ac45);};segmentCmd[a2_0x2a53d9(0x360)]('list\x20[path]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x228))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x239),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x18d),a2_0x2a53d9(0x237),'10')[a2_0x2a53d9(0x39a)](segmentListAction),program['command']('segments\x20[path]',{'hidden':!![]})['description']('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x239),a2_0x2a53d9(0x225))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x18d),a2_0x2a53d9(0x237),'10')[a2_0x2a53d9(0x39a)](segmentListAction),segmentCmd['command'](a2_0x2a53d9(0x2bc),{'hidden':!![]})[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x247))[a2_0x2a53d9(0x39a)](async(_0x482bc6,_0x2f7ade)=>{const _0x483851=a2_0x2a53d9,_0x16de26=new SegmentUseCommand(),_0x31ccfc=program[_0x483851(0x408)](),_0x120ba1=await createTDXInstance(_0x31ccfc),_0x47f193=await _0x16de26[_0x483851(0x333)]({'options':{..._0x31ccfc,..._0x2f7ade},'args':[_0x482bc6],'tdx':_0x120ba1});gracefulExit(_0x47f193);});const segmentViewAction=async(_0x20980c,_0x206f5d)=>{const _0xbcffbe=a2_0x2a53d9,_0x59923f=new SegmentViewCommand(),_0x24bd91=program['opts'](),_0x535e41=await createTDXInstance(_0x24bd91),_0x303600=await _0x59923f[_0xbcffbe(0x333)]({'options':{..._0x24bd91,..._0x206f5d},'args':_0x20980c?[_0x20980c]:[],'tdx':_0x535e41});gracefulExit(_0x303600);};segmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x363))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3dd))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1e4),a2_0x2a53d9(0x410))[a2_0x2a53d9(0x39a)](segmentViewAction),segmentCmd['command']('info\x20[segment_name]',{'hidden':!![]})[a2_0x2a53d9(0x3fe)](a2_0x2a53d9(0x268))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1e4),'Open\x20segment\x20in\x20web\x20browser')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1b7))[a2_0x2a53d9(0x39a)](segmentViewAction),segmentCmd['command'](a2_0x2a53d9(0x25c))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x27b))[a2_0x2a53d9(0x39a)](async(_0x7f9aef,_0x13b699)=>{const _0x31aaa0=a2_0x2a53d9,_0x20888e=new SegmentDescCommand(),_0x3f4dbf=program[_0x31aaa0(0x408)](),_0xba0fb7=await createTDXInstance(_0x3f4dbf),_0x459a2e=await _0x20888e[_0x31aaa0(0x333)]({'options':{..._0x3f4dbf,..._0x13b699},'args':_0x7f9aef?[_0x7f9aef]:[],'tdx':_0xba0fb7});gracefulExit(_0x459a2e);}),segmentCmd[a2_0x2a53d9(0x360)]('show\x20[segment_name]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x344))[a2_0x2a53d9(0x39a)](async(_0x16b029,_0x15570b)=>{const _0x2e4004=a2_0x2a53d9,_0x15ce36=new SegmentShowCommand(),_0x4d17cd=program['opts'](),_0x4b32a5=await createTDXInstance(_0x4d17cd),_0x3fb33e=await _0x15ce36[_0x2e4004(0x333)]({'options':{..._0x4d17cd,..._0x15570b},'args':_0x16b029?[_0x16b029]:[],'tdx':_0x4b32a5});gracefulExit(_0x3fb33e);}),segmentCmd[a2_0x2a53d9(0x360)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x2a53d9(0x20e)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x2a53d9(0x39a)](async(_0x3b3286,_0xd92cd0)=>{const _0xb85857=a2_0x2a53d9,_0x236043=new SegmentFolderListCommand(),_0x956c06=program[_0xb85857(0x408)](),_0x37820c=await createTDXInstance(_0x956c06),_0x47695b=await _0x236043[_0xb85857(0x333)]({'options':{..._0x956c06,..._0xd92cd0},'args':[_0x3b3286],'tdx':_0x37820c});gracefulExit(_0x47695b);});const folderCmd=segmentCmd[a2_0x2a53d9(0x360)]('folder',{'hidden':!![]})[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x37b));folderCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x30b))['description'](a2_0x2a53d9(0x390))[a2_0x2a53d9(0x39a)](async(_0x2d808d,_0x4478be)=>{const _0x121bc7=a2_0x2a53d9,_0x247fe8=new SegmentFolderShowCommand(),_0x3d8af9=program[_0x121bc7(0x408)](),_0x47200e=await createTDXInstance(_0x3d8af9),_0x6c728a=await _0x247fe8[_0x121bc7(0x333)]({'options':{..._0x3d8af9,..._0x4478be},'args':[_0x2d808d],'tdx':_0x47200e});gracefulExit(_0x6c728a);}),segmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x346))['description']('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x204590,_0x32e837)=>{const _0x5252d2=a2_0x2a53d9,_0x74b890=new SegmentSQLCommand(),_0x23ec31=program[_0x5252d2(0x408)](),_0x475c9d=await createTDXInstance(_0x23ec31),_0x4680aa=await _0x74b890[_0x5252d2(0x333)]({'options':{..._0x23ec31,..._0x32e837},'args':_0x204590?[_0x204590]:[],'tdx':_0x475c9d});gracefulExit(_0x4680aa);}),segmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x361))['description'](a2_0x2a53d9(0x3a2))[a2_0x2a53d9(0x39a)](async(_0x5c877b,_0x36bb12)=>{const _0x49792f=a2_0x2a53d9,_0x53de86=new SegmentFieldsCommand(),_0x2fe7f1=program[_0x49792f(0x408)](),_0x1b05f8=await createTDXInstance(_0x2fe7f1),_0x11845d=await _0x53de86[_0x49792f(0x333)]({'options':{..._0x2fe7f1,..._0x36bb12},'args':_0x5c877b?[_0x5c877b]:[],'tdx':_0x1b05f8});gracefulExit(_0x11845d);}),segmentCmd['command']('pull\x20[parent_or_file]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x25b))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3f6),'Skip\x20confirmation\x20prompts')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2ff),a2_0x2a53d9(0x1ad))[a2_0x2a53d9(0x39a)](async(_0x46ebc1,_0x1cac47)=>{const _0x12365e=a2_0x2a53d9,_0x5988d9=new SegmentPullCommand(),_0x375725=program[_0x12365e(0x408)](),_0x43f4fc=await createTDXInstance(_0x375725),_0x4e5273=await _0x5988d9['run']({'options':{..._0x375725,..._0x1cac47},'args':_0x46ebc1?[_0x46ebc1]:[],'tdx':_0x43f4fc});gracefulExit(_0x4e5273);}),segmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x19c))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x39c))[a2_0x2a53d9(0x244)]('-y,\x20--yes','Skip\x20confirmation\x20prompts')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2ff),a2_0x2a53d9(0x1ad))['option'](a2_0x2a53d9(0x1db),a2_0x2a53d9(0x201))[a2_0x2a53d9(0x39a)](async(_0x20fe82,_0x2756ef)=>{const _0xc416ff=a2_0x2a53d9,_0x6cb884=new SegmentPushCommand(),_0x5322f0=program[_0xc416ff(0x408)](),_0x2a34d4=await createTDXInstance(_0x5322f0),_0x47b156=await _0x6cb884[_0xc416ff(0x333)]({'options':{..._0x5322f0,..._0x2756ef},'args':_0x20fe82?[_0x20fe82]:[],'tdx':_0x2a34d4});gracefulExit(_0x47b156);}),segmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3c8))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2ee))[a2_0x2a53d9(0x39a)](async(_0xba8c2d,_0x3f0f88)=>{const _0x30b9a4=a2_0x2a53d9,_0x26107d=new SegmentValidateCommand(),_0x194c17=program[_0x30b9a4(0x408)](),_0x3aff2e=await createTDXInstance(_0x194c17),_0x256abb=await _0x26107d[_0x30b9a4(0x333)]({'options':{..._0x194c17,..._0x3f0f88},'args':_0xba8c2d?[_0xba8c2d]:[],'tdx':_0x3aff2e});gracefulExit(_0x256abb);}),segmentCmd['command'](a2_0x2a53d9(0x253),{'hidden':!![]})[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3de))['option']('--description\x20<text>','Segment\x20description')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3cf),a2_0x2a53d9(0x2e1))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2a8),a2_0x2a53d9(0x3c1))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x274),'Folder\x20name\x20for\x20organization')['option'](a2_0x2a53d9(0x36e),a2_0x2a53d9(0x196))['option'](a2_0x2a53d9(0x276),'Make\x20segment\x20invisible\x20(default:\x20visible)')['option']('--no-count-population',a2_0x2a53d9(0x385))[a2_0x2a53d9(0x39a)](async(_0x278636,_0x288c05)=>{const _0x40b9f7=a2_0x2a53d9,_0x46f52a=new SegmentCreateCommand(),_0x101353=program[_0x40b9f7(0x408)](),_0x425771=await createTDXInstance(_0x101353),_0x3aafc0=await _0x46f52a['run']({'options':{..._0x101353,..._0x288c05},'args':[_0x278636],'tdx':_0x425771});gracefulExit(_0x3aafc0);}),segmentCmd[a2_0x2a53d9(0x360)]('update\x20<segment_name>',{'hidden':!![]})['description'](a2_0x2a53d9(0x2f0))[a2_0x2a53d9(0x244)]('--name\x20<new_name>','New\x20segment\x20name')[a2_0x2a53d9(0x244)]('--description\x20<text>',a2_0x2a53d9(0x26f))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3cf),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x2a53d9(0x244)]('--rule-file\x20<file>',a2_0x2a53d9(0x236))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x274),a2_0x2a53d9(0x366))['option'](a2_0x2a53d9(0x36e),a2_0x2a53d9(0x196))[a2_0x2a53d9(0x39a)](async(_0x2f7112,_0x4e8d5f)=>{const _0x1fe07c=a2_0x2a53d9,_0x2b6313=new SegmentUpdateCommand(),_0x18a2f1=program[_0x1fe07c(0x408)](),_0x4ef9c4=await createTDXInstance(_0x18a2f1),_0x447daa=await _0x2b6313[_0x1fe07c(0x333)]({'options':{..._0x18a2f1,..._0x4e8d5f},'args':[_0x2f7112],'tdx':_0x4ef9c4});gracefulExit(_0x447daa);});const parentCmd=segmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x258),{'hidden':!![]})['description'](a2_0x2a53d9(0x367)),parentListAction=async(_0x37ccfb,_0x3db6a2)=>{const _0x3c428a=a2_0x2a53d9,_0x4d48c5=new ParentSegmentListCommand(),_0x7f1a7c=program['opts'](),_0x35158d=await createTDXInstance(_0x7f1a7c),_0x237719=await _0x4d48c5[_0x3c428a(0x333)]({'options':{..._0x7f1a7c,..._0x3db6a2},'args':_0x37ccfb?[_0x37ccfb]:[],'tdx':_0x35158d});gracefulExit(_0x237719);};parentCmd[a2_0x2a53d9(0x360)]('list\x20[pattern]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1e2))['action'](parentListAction),segmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x409),{'hidden':!![]})['description']('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')['action'](parentListAction),parentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x21b))['description']('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2b4),a2_0x2a53d9(0x365))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3f6),a2_0x2a53d9(0x24f))[a2_0x2a53d9(0x39a)](async(_0x333102,_0x4c529a)=>{const _0x52c00b=a2_0x2a53d9,_0x5ca3bc=new ParentSegmentPullCommand(),_0x345ce9=program['opts'](),_0x1c2903=await createTDXInstance(_0x345ce9),_0x19b5f8=await _0x5ca3bc[_0x52c00b(0x333)]({'options':{..._0x345ce9,..._0x4c529a},'args':_0x333102?[_0x333102]:[],'tdx':_0x1c2903});gracefulExit(_0x19b5f8);}),parentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x320))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x31e))['option'](a2_0x2a53d9(0x3f6),a2_0x2a53d9(0x24f))['action'](async(_0x355c89,_0x150f33)=>{const _0xd5f792=new ParentSegmentPushCommand(),_0x35681a=program['opts'](),_0x78b1e2=await createTDXInstance(_0x35681a),_0xe9c0d3=await _0xd5f792['run']({'options':{..._0x35681a,..._0x150f33},'args':_0x355c89?[_0x355c89]:[],'tdx':_0x78b1e2});gracefulExit(_0xe9c0d3);}),parentCmd[a2_0x2a53d9(0x360)]('validate\x20[file]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x24b))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3e3),'Show\x20only\x20master\x20table\x20validation')['option'](a2_0x2a53d9(0x2d9),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1cc),a2_0x2a53d9(0x2f7))[a2_0x2a53d9(0x244)]('--enriched',a2_0x2a53d9(0x1ce))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1de),a2_0x2a53d9(0x292),a2_0x2a53d9(0x2de))[a2_0x2a53d9(0x39a)](async(_0x320ab9,_0x7e6f69)=>{const _0x2c3216=a2_0x2a53d9,_0x5c8c74=new ParentSegmentValidateCommand(),_0x30dec3=program[_0x2c3216(0x408)](),_0x203ea0=await createTDXInstance(_0x30dec3),_0x2dfc20=await _0x5c8c74[_0x2c3216(0x333)]({'options':{..._0x30dec3,..._0x7e6f69},'args':_0x320ab9?[_0x320ab9]:[],'tdx':_0x203ea0});gracefulExit(_0x2dfc20);}),parentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x376))[a2_0x2a53d9(0x20e)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3e3),a2_0x2a53d9(0x1d3))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2d9),a2_0x2a53d9(0x19b))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1cc),a2_0x2a53d9(0x28d))['option'](a2_0x2a53d9(0x1b6),a2_0x2a53d9(0x2c8))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1de),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x2a53d9(0x39a)](async(_0x3cd788,_0x27f66e)=>{const _0xf4108f=a2_0x2a53d9,_0xc50ab4=new ParentSegmentPreviewCommand(),_0x2c0b77=program[_0xf4108f(0x408)](),_0x49bd24=await createTDXInstance(_0x2c0b77),_0x1b5a1a=await _0xc50ab4['run']({'options':{..._0x2c0b77,..._0x27f66e},'args':_0x3cd788?[_0x3cd788]:[],'tdx':_0x49bd24});gracefulExit(_0x1b5a1a);}),parentCmd[a2_0x2a53d9(0x360)]('run\x20[name]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3b8))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3f6),a2_0x2a53d9(0x24f))['action'](async(_0x1dce5a,_0x4069d5)=>{const _0x1040cc=a2_0x2a53d9,_0x5c200d=new ParentSegmentRunCommand(),_0x191891=program[_0x1040cc(0x408)](),_0x580ea4=await createTDXInstance(_0x191891),_0x574225=await _0x5c200d[_0x1040cc(0x333)]({'options':{..._0x191891,..._0x4069d5},'args':_0x1dce5a?[_0x1dce5a]:[],'tdx':_0x580ea4});gracefulExit(_0x574225);});const parentSegmentCmd=program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1c5))['alias']('ps')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x404));parentSegmentCmd[a2_0x2a53d9(0x360)]('list\x20[pattern]')['description'](a2_0x2a53d9(0x1e2))[a2_0x2a53d9(0x39a)](parentListAction),parentSegmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x21b))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x40a))[a2_0x2a53d9(0x244)]('-o,\x20--output\x20<file>','Output\x20file\x20path')[a2_0x2a53d9(0x244)]('-y,\x20--yes',a2_0x2a53d9(0x24f))['option'](a2_0x2a53d9(0x3a9),a2_0x2a53d9(0x3d9))[a2_0x2a53d9(0x39a)](async(_0x470535,_0x107504)=>{const _0x5b20b1=a2_0x2a53d9,_0x24d548=new ParentSegmentPullCommand(),_0x3b4ee6=program[_0x5b20b1(0x408)](),_0x53249f=await createTDXInstance(_0x3b4ee6),_0x5d35a5=await _0x24d548[_0x5b20b1(0x333)]({'options':{..._0x3b4ee6,..._0x107504},'args':_0x470535?[_0x470535]:[],'tdx':_0x53249f});gracefulExit(_0x5d35a5);}),parentSegmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x38b))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x330))[a2_0x2a53d9(0x244)]('-y,\x20--yes',a2_0x2a53d9(0x24f))['action'](async(_0x5494f7,_0x465e2e)=>{const _0x3590a2=a2_0x2a53d9,_0x3c5b3a=new ParentSegmentPushCommand(),_0x3dc122=program[_0x3590a2(0x408)](),_0x14e967=await createTDXInstance(_0x3dc122),_0x1e4634=await _0x3c5b3a[_0x3590a2(0x333)]({'options':{..._0x3dc122,..._0x465e2e},'args':_0x5494f7?[_0x5494f7]:[],'tdx':_0x14e967});gracefulExit(_0x1e4634);}),parentSegmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x23e))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x24b))['option']('--master',a2_0x2a53d9(0x1bd))['option'](a2_0x2a53d9(0x2d9),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1cc),a2_0x2a53d9(0x2f7))['option'](a2_0x2a53d9(0x1b6),a2_0x2a53d9(0x1ce))['option']('--interval\x20<range>',a2_0x2a53d9(0x292),a2_0x2a53d9(0x2de))[a2_0x2a53d9(0x39a)](async(_0x3c17ae,_0x781dc2)=>{const _0x1a1c83=a2_0x2a53d9,_0x2c6ffb=new ParentSegmentValidateCommand(),_0x26daf1=program['opts'](),_0x56057e=await createTDXInstance(_0x26daf1),_0x182353=await _0x2c6ffb[_0x1a1c83(0x333)]({'options':{..._0x26daf1,..._0x781dc2},'args':_0x3c17ae?[_0x3c17ae]:[],'tdx':_0x56057e});gracefulExit(_0x182353);}),parentSegmentCmd['command'](a2_0x2a53d9(0x22b))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x40b))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3e3),a2_0x2a53d9(0x1d3))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2d9),a2_0x2a53d9(0x19b))['option'](a2_0x2a53d9(0x1cc),a2_0x2a53d9(0x28d))[a2_0x2a53d9(0x244)]('--enriched',a2_0x2a53d9(0x2c8))[a2_0x2a53d9(0x244)]('--interval\x20<range>',a2_0x2a53d9(0x292),a2_0x2a53d9(0x2de))[a2_0x2a53d9(0x39a)](async(_0xa65b83,_0x68eac4)=>{const _0x18a853=new ParentSegmentPreviewCommand(),_0x4eac5a=program['opts'](),_0x5b4476=await createTDXInstance(_0x4eac5a),_0x106107=await _0x18a853['run']({'options':{..._0x4eac5a,..._0x68eac4},'args':_0xa65b83?[_0xa65b83]:[],'tdx':_0x5b4476});gracefulExit(_0x106107);}),parentSegmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2aa))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3b8))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3f6),'Skip\x20confirmation\x20prompt')[a2_0x2a53d9(0x39a)](async(_0x4a26b0,_0x2c605d)=>{const _0x42e411=a2_0x2a53d9,_0x2fa8b8=new ParentSegmentRunCommand(),_0x146f56=program[_0x42e411(0x408)](),_0x765a5f=await createTDXInstance(_0x146f56),_0x24af65=await _0x2fa8b8[_0x42e411(0x333)]({'options':{..._0x146f56,..._0x2c605d},'args':_0x4a26b0?[_0x4a26b0]:[],'tdx':_0x765a5f});gracefulExit(_0x24af65);}),parentSegmentCmd[a2_0x2a53d9(0x360)]('fields\x20[name]')['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x263),a2_0x2a53d9(0x339))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2a6),a2_0x2a53d9(0x1f1))[a2_0x2a53d9(0x39a)](async(_0x5f156b,_0x3ab227)=>{const _0x2c4367=new ParentSegmentFieldsCommand(),_0x43741c=program['opts'](),_0xb850dc=await createTDXInstance(_0x43741c),_0x4cbeeb=await _0x2c4367['run']({'options':{..._0x43741c,..._0x3ab227},'args':_0x5f156b?[_0x5f156b]:[],'tdx':_0xb850dc});gracefulExit(_0x4cbeeb);}),parentSegmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x216))[a2_0x2a53d9(0x20e)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1e4),a2_0x2a53d9(0x2db))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x263),a2_0x2a53d9(0x339))['option']('--jsonl',a2_0x2a53d9(0x1f1))['action'](async(_0x2f2e10,_0x1ada12)=>{const _0x17f935=a2_0x2a53d9,_0x5e87d0=new ParentSegmentViewCommand(),_0xb0c700=program[_0x17f935(0x408)](),_0xe0f53f=await createTDXInstance(_0xb0c700),_0x1e6fe8=await _0x5e87d0[_0x17f935(0x333)]({'options':{..._0xb0c700,..._0x1ada12},'args':_0x2f2e10?[_0x2f2e10]:[],'tdx':_0xe0f53f});gracefulExit(_0x1e6fe8);}),parentSegmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x199))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x245))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2b4),'Output\x20file\x20path')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x263),'Output\x20as\x20JSON')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2a6),a2_0x2a53d9(0x1f1))[a2_0x2a53d9(0x39a)](async(_0x341adc,_0x1530df)=>{const _0x371730=a2_0x2a53d9,_0x366497=new ParentSegmentDescCommand(),_0x399d64=program[_0x371730(0x408)](),_0x234fd9=await createTDXInstance(_0x399d64),_0x36b09b=await _0x366497[_0x371730(0x333)]({'options':{..._0x399d64,..._0x1530df},'args':_0x341adc?[_0x341adc]:[],'tdx':_0x234fd9});gracefulExit(_0x36b09b);}),parentSegmentCmd[a2_0x2a53d9(0x360)]('sql\x20[name]')[a2_0x2a53d9(0x20e)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2a53d9(0x244)]('--json',a2_0x2a53d9(0x339))['option'](a2_0x2a53d9(0x2a6),a2_0x2a53d9(0x1f1))[a2_0x2a53d9(0x39a)](async(_0x53deca,_0x28768b)=>{const _0x94d0f1=a2_0x2a53d9,_0x4890ec=new ParentSegmentSQLCommand(),_0x6bb506=program[_0x94d0f1(0x408)](),_0x4eb4f7=await createTDXInstance(_0x6bb506),_0x39ea57=await _0x4890ec['run']({'options':{..._0x6bb506,..._0x28768b},'args':_0x53deca?[_0x53deca]:[],'tdx':_0x4eb4f7});gracefulExit(_0x39ea57);}),parentSegmentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2f2))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3ae))['option'](a2_0x2a53d9(0x248),a2_0x2a53d9(0x203))[a2_0x2a53d9(0x244)]('--json',a2_0x2a53d9(0x339))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2a6),'Output\x20as\x20JSON\x20Lines')[a2_0x2a53d9(0x39a)](async(_0x1ec8eb,_0x3afe29)=>{const _0x4823f3=a2_0x2a53d9,_0xa5d159=new ParentSegmentShowCommand(),_0x198faf=program['opts'](),_0x4a9ab2=await createTDXInstance(_0x198faf),_0x31781f=await _0xa5d159[_0x4823f3(0x333)]({'options':{..._0x198faf,..._0x3afe29},'args':_0x1ec8eb?[_0x1ec8eb]:[],'tdx':_0x4a9ab2});gracefulExit(_0x31781f);}),parentSegmentCmd['command'](a2_0x2a53d9(0x3d3))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x323))[a2_0x2a53d9(0x39a)](async(_0x34f414,_0x41ee6c)=>{const _0x2b3fbf=a2_0x2a53d9,_0x48a9f3=new UseCommand(),_0x938832=program['opts'](),_0xe491c=_0x34f414?[_0x2b3fbf(0x341),_0x34f414]:[],_0x4a1aae=await _0x48a9f3[_0x2b3fbf(0x333)]({'options':{..._0x938832,..._0x41ee6c},'args':_0xe491c,'tdx':null});gracefulExit(_0x4a1aae);});const psRtCmd=parentSegmentCmd['command']('rt')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x307));psRtCmd['command'](a2_0x2a53d9(0x1f4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x25d))[a2_0x2a53d9(0x39a)](async(_0x48684f,_0x109dee)=>{const _0x2ac5b1=a2_0x2a53d9,_0x3c5786=new PSRtListCommand(),_0x190a6a=program[_0x2ac5b1(0x408)](),_0x3386fd=await createTDXInstance(_0x190a6a),_0x1cacfa=await _0x3c5786[_0x2ac5b1(0x333)]({'options':{..._0x190a6a,..._0x109dee},'args':_0x48684f?[_0x48684f]:[],'tdx':_0x3386fd});gracefulExit(_0x1cacfa);}),psRtCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x23e))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x39f))['action'](async(_0x43842c,_0xf22e6b)=>{const _0x3b2b56=a2_0x2a53d9,_0x42efe6=new PSRtValidateCommand(),_0x5962ff=program[_0x3b2b56(0x408)](),_0x4ec2d4=await createTDXInstance(_0x5962ff),_0x349c98=await _0x42efe6[_0x3b2b56(0x333)]({'options':{..._0x5962ff,..._0xf22e6b},'args':_0x43842c?[_0x43842c]:[],'tdx':_0x4ec2d4});gracefulExit(_0x349c98);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})['description'](a2_0x2a53d9(0x307));parentRtCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1f4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x25d))['action'](async(_0x623f6e,_0x4b134d)=>{const _0x20f0ca=a2_0x2a53d9,_0xf1528b=new PSRtListCommand(),_0x40333f=program[_0x20f0ca(0x408)](),_0x4450a0=await createTDXInstance(_0x40333f),_0x8e6933=await _0xf1528b['run']({'options':{..._0x40333f,..._0x4b134d},'args':_0x623f6e?[_0x623f6e]:[],'tdx':_0x4450a0});gracefulExit(_0x8e6933);}),parentRtCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x23e))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x39f))[a2_0x2a53d9(0x39a)](async(_0x7e3698,_0x4d46c4)=>{const _0x32929a=a2_0x2a53d9,_0x849493=new PSRtValidateCommand(),_0x3d6437=program['opts'](),_0x16f781=await createTDXInstance(_0x3d6437),_0x559fb0=await _0x849493[_0x32929a(0x333)]({'options':{..._0x3d6437,..._0x4d46c4},'args':_0x7e3698?[_0x7e3698]:[],'tdx':_0x16f781});gracefulExit(_0x559fb0);});const psPzCmd=parentSegmentCmd['command']('pz')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2a3));psPzCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x342))['description']('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2a53d9(0x39a)](async(_0x2742ed,_0x8061dd)=>{const _0x37c758=a2_0x2a53d9,_0x5a349e=new PSPzListCommand(),_0x3fa3ec=program[_0x37c758(0x408)](),_0x58db24=await createTDXInstance(_0x3fa3ec),_0x3f0e29=await _0x5a349e['run']({'options':{..._0x3fa3ec,..._0x8061dd},'args':_0x2742ed?[_0x2742ed]:[],'tdx':_0x58db24});gracefulExit(_0x3f0e29);}),psPzCmd['command'](a2_0x2a53d9(0x3b2))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2bb))[a2_0x2a53d9(0x39a)](async(_0x31952c,_0x2c919e)=>{const _0x2007ac=a2_0x2a53d9,_0x3fd588=new PSPzInitCommand(),_0x889154=program[_0x2007ac(0x408)](),_0x2b027f=await createTDXInstance(_0x889154),_0x42f68e=await _0x3fd588[_0x2007ac(0x333)]({'options':{..._0x889154,..._0x2c919e},'args':_0x31952c?[_0x31952c]:[],'tdx':_0x2b027f});gracefulExit(_0x42f68e);});const parentPzCmd=parentCmd[a2_0x2a53d9(0x360)]('pz',{'hidden':!![]})[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2a3));parentPzCmd[a2_0x2a53d9(0x360)]('list\x20[name]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1e8))[a2_0x2a53d9(0x39a)](async(_0x356d06,_0x1597ad)=>{const _0x3afc5c=a2_0x2a53d9,_0x380a34=new PSPzListCommand(),_0x5d5497=program[_0x3afc5c(0x408)](),_0x3ea677=await createTDXInstance(_0x5d5497),_0x430a65=await _0x380a34['run']({'options':{..._0x5d5497,..._0x1597ad},'args':_0x356d06?[_0x356d06]:[],'tdx':_0x3ea677});gracefulExit(_0x430a65);}),parentPzCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3b2))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2bb))[a2_0x2a53d9(0x39a)](async(_0xce1297,_0x1207b2)=>{const _0xe573b9=new PSPzInitCommand(),_0x1500ed=program['opts'](),_0x4feef8=await createTDXInstance(_0x1500ed),_0x33b2b3=await _0xe573b9['run']({'options':{..._0x1500ed,..._0x1207b2},'args':_0xce1297?[_0xce1297]:[],'tdx':_0x4feef8});gracefulExit(_0x33b2b3);}),parentCmd[a2_0x2a53d9(0x360)]('create\x20<name>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1ee))[a2_0x2a53d9(0x2ef)](a2_0x2a53d9(0x397),a2_0x2a53d9(0x3ec))[a2_0x2a53d9(0x2ef)](a2_0x2a53d9(0x32a),a2_0x2a53d9(0x2ae))[a2_0x2a53d9(0x244)]('--description\x20<text>','Parent\x20segment\x20description')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x309),a2_0x2a53d9(0x395))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x22c),a2_0x2a53d9(0x3df))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x39e),a2_0x2a53d9(0x2ba))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2ab),a2_0x2a53d9(0x3ee))['option'](a2_0x2a53d9(0x208),a2_0x2a53d9(0x1ed))[a2_0x2a53d9(0x244)]('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')['option'](a2_0x2a53d9(0x1df),'Behaviors\x20from\x20JSON\x20file')[a2_0x2a53d9(0x244)]('--customer-group\x20<json>',a2_0x2a53d9(0x1fe))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3ff),a2_0x2a53d9(0x300))[a2_0x2a53d9(0x39a)](async(_0x199082,_0x443b88)=>{const _0x436de3=a2_0x2a53d9,_0x12cafb=new ParentSegmentCreateCommand(),_0x4e3a33=program[_0x436de3(0x408)](),_0x32ab87=await createTDXInstance(_0x4e3a33),_0xc625b1=await _0x12cafb[_0x436de3(0x333)]({'options':{..._0x4e3a33,..._0x443b88},'args':[_0x199082],'tdx':_0x32ab87});gracefulExit(_0xc625b1);}),parentCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x195))['description'](a2_0x2a53d9(0x1a1))[a2_0x2a53d9(0x244)]('--description\x20<text>',a2_0x2a53d9(0x26f))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x309),a2_0x2a53d9(0x2d2))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x22c),'Updated\x20schedule\x20option')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x39e),a2_0x2a53d9(0x2b6))['option'](a2_0x2a53d9(0x246),a2_0x2a53d9(0x1f0))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x30d),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x2a53d9(0x244)]('--add-behaviors\x20<json>',a2_0x2a53d9(0x240))['option'](a2_0x2a53d9(0x316),a2_0x2a53d9(0x373))[a2_0x2a53d9(0x39a)](async(_0x1d3b59,_0x4d4606)=>{const _0x1af5cd=a2_0x2a53d9,_0x1495f4=new ParentSegmentUpdateCommand(),_0x1b9d21=program[_0x1af5cd(0x408)](),_0x50e8a8=await createTDXInstance(_0x1b9d21),_0x44bb4d=await _0x1495f4[_0x1af5cd(0x333)]({'options':{..._0x1b9d21,..._0x4d4606},'args':[_0x1d3b59],'tdx':_0x50e8a8});gracefulExit(_0x44bb4d);}),folderCmd[a2_0x2a53d9(0x360)]('create\x20<parent_name>\x20<folder_name>')[a2_0x2a53d9(0x20e)]('Create\x20segment\x20folder')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3ba),a2_0x2a53d9(0x194))[a2_0x2a53d9(0x244)]('--parent-folder\x20<name>',a2_0x2a53d9(0x22f))[a2_0x2a53d9(0x39a)](async(_0x321deb,_0x483df7,_0x3f6fa0)=>{const _0x835a8c=new SegmentFolderCreateCommand(),_0xcb9a12=program['opts'](),_0x153a2b=await createTDXInstance(_0xcb9a12),_0xebc5da=await _0x835a8c['run']({'options':{..._0xcb9a12,..._0x3f6fa0},'args':[_0x321deb,_0x483df7],'tdx':_0x153a2b});gracefulExit(_0xebc5da);}),program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x27e))[a2_0x2a53d9(0x20e)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x2a53d9(0x39a)](async(_0x638ee6,_0x14384e)=>{const _0x19458e=a2_0x2a53d9,_0x5de58d=new ActivationsCommand(),_0x8697ba=program[_0x19458e(0x408)](),_0x62faf7=await createTDXInstance(_0x8697ba),_0x1694a8=await _0x5de58d['run']({'options':{..._0x8697ba,..._0x14384e},'args':[_0x638ee6],'tdx':_0x62faf7});gracefulExit(_0x1694a8);});const workflowCmd=program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1f6))[a2_0x2a53d9(0x3fe)]('wf')[a2_0x2a53d9(0x20e)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x290))['description'](a2_0x2a53d9(0x2a4)),wfProjectListAction=async(_0x3fac00,_0x4ddd05)=>{const _0x365ca3=a2_0x2a53d9,_0x15ca73=new WorkflowProjectsCommand(),_0x1c3acf=program[_0x365ca3(0x408)](),_0x2ed4b7=await createTDXInstance(_0x1c3acf),_0x2903f4=await _0x15ca73['run']({'options':{..._0x1c3acf,..._0x4ddd05},'args':_0x3fac00?[_0x3fac00]:[],'tdx':_0x2ed4b7});gracefulExit(_0x2903f4);};wfProjectCmd['command'](a2_0x2a53d9(0x1f4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x214))['action'](wfProjectListAction),workflowCmd[a2_0x2a53d9(0x360)]('projects\x20[pattern]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2e3))[a2_0x2a53d9(0x39a)](wfProjectListAction);const wfWorkflowListAction=async(_0x48e81c,_0x3f28bb)=>{const _0x12980d=a2_0x2a53d9,_0x2a6ac2=new WorkflowWorkflowsCommand(),_0x5e109f=program[_0x12980d(0x408)](),_0xbd1621=await createTDXInstance(_0x5e109f),_0x16b67b=await _0x2a6ac2[_0x12980d(0x333)]({'options':{..._0x5e109f,..._0x3f28bb},'args':_0x48e81c?[_0x48e81c]:[],'tdx':_0xbd1621});gracefulExit(_0x16b67b);};workflowCmd[a2_0x2a53d9(0x360)]('workflows\x20[project]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x354))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3b0))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x291)),wfSessionListAction=async(_0x4a274a,_0x284b11)=>{const _0x2c31bd=a2_0x2a53d9,_0x444227=new WorkflowSessionsCommand(),_0x68d6b1=program[_0x2c31bd(0x408)](),_0x2d24e6=await createTDXInstance(_0x68d6b1),_0xedb9dd=await _0x444227[_0x2c31bd(0x333)]({'options':{..._0x68d6b1,..._0x284b11},'args':_0x4a274a?[_0x4a274a]:[],'tdx':_0x2d24e6});gracefulExit(_0xedb9dd);};wfSessionCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x256))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x235))['option'](a2_0x2a53d9(0x220),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1f7),a2_0x2a53d9(0x23c))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1e3),a2_0x2a53d9(0x3d5))[a2_0x2a53d9(0x39a)](wfSessionListAction),workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2af))['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option'](a2_0x2a53d9(0x220),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1f7),a2_0x2a53d9(0x23c))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1e3),a2_0x2a53d9(0x3d5))[a2_0x2a53d9(0x39a)](wfSessionListAction);const wfAttemptListAction=async(_0x4cce95,_0x4cec27)=>{const _0x833c64=a2_0x2a53d9,_0x19900b=new WorkflowAttemptsCommand(),_0x358cc5=program[_0x833c64(0x408)](),_0x229421=await createTDXInstance(_0x358cc5),_0x1981d4=await _0x19900b['run']({'options':{..._0x358cc5,..._0x4cec27},'args':_0x4cce95?[_0x4cce95]:[],'tdx':_0x229421});gracefulExit(_0x1981d4);},attemptCmd=workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x288))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3ad))[a2_0x2a53d9(0x295)](a2_0x2a53d9(0x2cc),a2_0x2a53d9(0x33c))['argument'](a2_0x2a53d9(0x2bd),a2_0x2a53d9(0x1ae))[a2_0x2a53d9(0x295)](a2_0x2a53d9(0x3a1),a2_0x2a53d9(0x36b))['option'](a2_0x2a53d9(0x1d8),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x30c),a2_0x2a53d9(0x351))[a2_0x2a53d9(0x244)]('--resume-from\x20<task>',a2_0x2a53d9(0x337))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3e8),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x2a53d9(0x2c2),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x394),a2_0x2a53d9(0x3a6))[a2_0x2a53d9(0x39a)](async(_0x50246a,_0x177383,_0x4cfdf8,_0x3a9442)=>{const _0x1e1f2d=a2_0x2a53d9;if(_0x50246a==='list'){await wfAttemptListAction(_0x177383,_0x3a9442);return;}if(!_0x50246a){attemptCmd[_0x1e1f2d(0x19a)]();return;}const _0x262a04=program['opts'](),_0x169146=await createTDXInstance(_0x262a04);let _0x247ff9=0x0;if(!_0x177383){const _0x2ef93a=new WorkflowAttemptCommand();_0x247ff9=await _0x2ef93a[_0x1e1f2d(0x333)]({'options':{..._0x262a04,..._0x3a9442},'args':[_0x50246a],'tdx':_0x169146});}else{if(_0x177383===_0x1e1f2d(0x24a)){const _0x155cba=new WorkflowLogsCommand();_0x247ff9=await _0x155cba[_0x1e1f2d(0x333)]({'options':{..._0x262a04,..._0x3a9442},'args':_0x4cfdf8?[_0x50246a,_0x4cfdf8]:[_0x50246a],'tdx':_0x169146});}else{if(_0x177383===_0x1e1f2d(0x314)){const _0x30f852=new WorkflowTasksCommand();_0x247ff9=await _0x30f852[_0x1e1f2d(0x333)]({'options':{..._0x262a04,..._0x3a9442},'args':[_0x50246a],'tdx':_0x169146});}else{if(_0x177383===_0x1e1f2d(0x34c)){const _0x5c4bf6=new WorkflowKillCommand();_0x247ff9=await _0x5c4bf6['run']({'options':{..._0x262a04,..._0x3a9442},'args':[_0x50246a],'tdx':_0x169146});}else{if(_0x177383===_0x1e1f2d(0x340)){const _0xb86e06=new WorkflowRetryCommand();_0x247ff9=await _0xb86e06[_0x1e1f2d(0x333)]({'options':{..._0x262a04,..._0x3a9442},'args':[_0x1e1f2d(0x303)+_0x50246a],'tdx':_0x169146});}else console[_0x1e1f2d(0x312)](_0x1e1f2d(0x400)+_0x177383),console[_0x1e1f2d(0x312)](_0x1e1f2d(0x40f)),_0x247ff9=0x1;}}}}gracefulExit(_0x247ff9);});attemptCmd['command'](a2_0x2a53d9(0x256))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3c5))['option'](a2_0x2a53d9(0x394),'Include\x20retried\x20attempts')[a2_0x2a53d9(0x39a)](wfAttemptListAction),workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2f8))['description'](a2_0x2a53d9(0x31c))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x394),a2_0x2a53d9(0x3fc))[a2_0x2a53d9(0x39a)](wfAttemptListAction),workflowCmd['command']('timeline\x20[project.workflow]')['description'](a2_0x2a53d9(0x3bf))['option'](a2_0x2a53d9(0x261),'Follow/watch\x20timeline\x20for\x20running\x20attempts')['option'](a2_0x2a53d9(0x26e),a2_0x2a53d9(0x3db))['option'](a2_0x2a53d9(0x1bb),'Show\x20timeline\x20for\x20specific\x20attempt')[a2_0x2a53d9(0x39a)](async(_0x4556a6,_0x239192)=>{const _0x2c7060=a2_0x2a53d9,_0x1f0060=new WorkflowTimelineCommand(),_0x414f0d=program[_0x2c7060(0x408)](),_0x28eeba=await createTDXInstance(_0x414f0d),_0x3ee809=await _0x1f0060[_0x2c7060(0x333)]({'options':{..._0x414f0d,..._0x239192},'args':_0x4556a6?[_0x4556a6]:[],'tdx':_0x28eeba});gracefulExit(_0x3ee809);}),workflowCmd['command'](a2_0x2a53d9(0x218))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x35d))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x254),a2_0x2a53d9(0x238))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3e8),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')['action'](async(_0x48b69d,_0x281aa4)=>{const _0x29e7d4=a2_0x2a53d9,_0x511943=new WorkflowRetryCommand(),_0x2f0514=program[_0x29e7d4(0x408)](),_0x92f228=await createTDXInstance(_0x2f0514),_0x54bb2b=await _0x511943[_0x29e7d4(0x333)]({'options':{..._0x2f0514,..._0x281aa4},'args':[_0x48b69d],'tdx':_0x92f228});gracefulExit(_0x54bb2b);}),workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x338))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2e0))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x25a),a2_0x2a53d9(0x20f),(_0x10e725,_0x12534f=[])=>[..._0x12534f,_0x10e725],[])[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x264),a2_0x2a53d9(0x2d4))[a2_0x2a53d9(0x39a)](async(_0x4ce2f5,_0x4329a4)=>{const _0x375fd9=a2_0x2a53d9,_0x2910e6=new WorkflowRunCommand(),_0x213e82=program[_0x375fd9(0x408)](),_0x597241=await createTDXInstance(_0x213e82),_0x33316e=await _0x2910e6['run']({'options':{..._0x213e82,..._0x4329a4},'args':_0x4ce2f5?[_0x4ce2f5]:[],'tdx':_0x597241});gracefulExit(_0x33316e);}),workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2f9))['description']('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x2a53d9(0x244)]('--revision\x20<revision>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x2a53d9(0x39a)](async(_0x2fe97e,_0x445543,_0x439b81)=>{const _0x2b9362=a2_0x2a53d9,_0x23ee8d=new WorkflowDownloadCommand(),_0xf98f6e=program[_0x2b9362(0x408)](),_0x3c2648=await createTDXInstance(_0xf98f6e),_0x2c3bb7=await _0x23ee8d[_0x2b9362(0x333)]({'options':{..._0xf98f6e,..._0x439b81},'args':[_0x2fe97e,_0x445543||'.'],'tdx':_0x3c2648});gracefulExit(_0x2c3bb7);}),workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3e6))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x345))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x369),a2_0x2a53d9(0x270))[a2_0x2a53d9(0x244)]('--dry-run',a2_0x2a53d9(0x215))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3f6),'Skip\x20confirmation\x20prompt')[a2_0x2a53d9(0x39a)](async(_0x4f76d0,_0x5c18c8,_0x3df40b)=>{const _0x41758b=a2_0x2a53d9,_0x1b8b09=new WorkflowPullCommand(),_0xa35f9e=program[_0x41758b(0x408)](),_0x5c469a=await createTDXInstance(_0xa35f9e),_0xb8c8e8=await _0x1b8b09[_0x41758b(0x333)]({'options':{..._0xa35f9e,..._0x3df40b},'args':_0x5c18c8?[_0x4f76d0,_0x5c18c8]:[_0x4f76d0],'tdx':_0x5c469a});gracefulExit(_0xb8c8e8);}),workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x347))[a2_0x2a53d9(0x20e)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x2a53d9(0x244)]('--revision\x20<revision>',a2_0x2a53d9(0x1ca))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2ff),a2_0x2a53d9(0x301))[a2_0x2a53d9(0x244)]('--skip-validation',a2_0x2a53d9(0x317))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3f6),a2_0x2a53d9(0x24f))['action'](async(_0x3aed52,_0x582cc6)=>{const _0x1d2f4f=a2_0x2a53d9,_0x13f0e6=new WorkflowPushCommand(),_0x59cd17=program[_0x1d2f4f(0x408)](),_0x1b6dd0=await createTDXInstance(_0x59cd17),_0x38ff64=await _0x13f0e6[_0x1d2f4f(0x333)]({'options':{..._0x59cd17,..._0x582cc6},'args':_0x3aed52?[_0x3aed52]:[],'tdx':_0x1b6dd0});gracefulExit(_0x38ff64);}),workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3ca))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3eb))[a2_0x2a53d9(0x244)]('--name\x20<name>',a2_0x2a53d9(0x3ea))['option'](a2_0x2a53d9(0x369),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x35e),a2_0x2a53d9(0x317))[a2_0x2a53d9(0x39a)](async(_0x389f12,_0x598ddb)=>{const _0x1ffc51=a2_0x2a53d9,_0x28c368=new WorkflowUploadCommand(),_0x427ba9=program[_0x1ffc51(0x408)](),_0x5dec33=await createTDXInstance(_0x427ba9),_0x18b119=await _0x28c368[_0x1ffc51(0x333)]({'options':{..._0x427ba9,..._0x598ddb},'args':_0x389f12?[_0x389f12]:[],'tdx':_0x5dec33});gracefulExit(_0x18b119);}),workflowCmd['command'](a2_0x2a53d9(0x40d))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x21e))[a2_0x2a53d9(0x244)]('--name\x20<name>',a2_0x2a53d9(0x32e))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x369),a2_0x2a53d9(0x1ca))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2ff),a2_0x2a53d9(0x1c9))['option'](a2_0x2a53d9(0x35e),a2_0x2a53d9(0x317))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3f6),a2_0x2a53d9(0x24f))['action'](async(_0xc146f2,_0x3edc2a)=>{const _0x475bae=a2_0x2a53d9,_0x51796b=new WorkflowCloneCommand(),_0x56530b=program[_0x475bae(0x408)](),_0x4929e7=await createTDXInstance(_0x56530b),_0x2dd116=await _0x51796b[_0x475bae(0x333)]({'options':{..._0x56530b,..._0x3edc2a},'args':_0xc146f2?[_0xc146f2]:[],'tdx':_0x4929e7});gracefulExit(_0x2dd116);}),workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3f9))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x275))[a2_0x2a53d9(0x39a)](async(_0x5ea2af,_0x5c909a)=>{const _0x366a53=a2_0x2a53d9,_0x4a628f=new WorkflowDeleteCommand(),_0x34c82a=program[_0x366a53(0x408)](),_0x38b796=await createTDXInstance(_0x34c82a),_0x1b331b=await _0x4a628f['run']({'options':{..._0x34c82a,..._0x5c909a},'args':[_0x5ea2af],'tdx':_0x38b796});gracefulExit(_0x1b331b);}),workflowCmd[a2_0x2a53d9(0x360)]('use\x20[project]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2f3))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2c5),'Clear\x20workflow\x20project\x20context')[a2_0x2a53d9(0x39a)](async(_0x536a63,_0x283e61)=>{const _0x82a881=a2_0x2a53d9,_0xffa91d=new WorkflowUseCommand(),_0x2c0a9f=program[_0x82a881(0x408)](),_0x6b05c6=await createTDXInstance(_0x2c0a9f),_0x8a09c2=await _0xffa91d[_0x82a881(0x333)]({'options':{..._0x2c0a9f,..._0x283e61},'args':_0x536a63?[_0x536a63]:[],'tdx':_0x6b05c6});gracefulExit(_0x8a09c2);});const wfSecretsCmd=workflowCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x204))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x37a));wfSecretsCmd[a2_0x2a53d9(0x360)]('list\x20[project]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1ff))[a2_0x2a53d9(0x39a)](async(_0x1eddf6,_0x4c5158)=>{const _0x13af3c=a2_0x2a53d9,_0x4bc474=new WorkflowSecretsListCommand(),_0x1941f3=program[_0x13af3c(0x408)](),_0x2741a7=await createTDXInstance(_0x1941f3),_0x3f1902=await _0x4bc474[_0x13af3c(0x333)]({'options':{..._0x1941f3,..._0x4c5158},'args':_0x1eddf6?[_0x1eddf6]:[],'tdx':_0x2741a7});gracefulExit(_0x3f1902);}),wfSecretsCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x189))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1ec))[a2_0x2a53d9(0x39a)](async(_0x55685f,_0x493c17)=>{const _0x3dc81d=a2_0x2a53d9,_0x586570=new WorkflowSecretsSetCommand(),_0x473ec2=program[_0x3dc81d(0x408)](),_0x4e5573=await createTDXInstance(_0x473ec2),_0x10fb28=await _0x586570[_0x3dc81d(0x333)]({'options':{..._0x473ec2,..._0x493c17},'args':_0x55685f,'tdx':_0x4e5573});gracefulExit(_0x10fb28);}),wfSecretsCmd[a2_0x2a53d9(0x360)]('delete\x20<args...>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x38a))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3f6),a2_0x2a53d9(0x24f))[a2_0x2a53d9(0x39a)](async(_0x233a56,_0xb470cc)=>{const _0x49186e=a2_0x2a53d9,_0xedce58=new WorkflowSecretsDeleteCommand(),_0x2386b0=program[_0x49186e(0x408)](),_0x2922d5=await createTDXInstance(_0x2386b0),_0x5b847d=await _0xedce58[_0x49186e(0x333)]({'options':{..._0x2386b0,..._0xb470cc},'args':_0x233a56,'tdx':_0x2922d5});gracefulExit(_0x5b847d);});const jobCmd=program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x30a))['description'](a2_0x2a53d9(0x35f)),jobListAction=async _0x2b71df=>{const _0x350ffe=a2_0x2a53d9,_0x29df63=new JobListCommand(),_0x5a3565=program[_0x350ffe(0x408)](),_0x361df8=await createTDXInstance(_0x5a3565),_0x279136=await _0x29df63[_0x350ffe(0x333)]({'options':{..._0x5a3565,..._0x2b71df},'args':[],'tdx':_0x361df8});gracefulExit(_0x279136);};jobCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2b5))['description'](a2_0x2a53d9(0x392))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x220),a2_0x2a53d9(0x2dd))['action'](jobListAction),program[a2_0x2a53d9(0x360)]('jobs',{'hidden':!![]})[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x334))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x220),a2_0x2a53d9(0x2dd))[a2_0x2a53d9(0x39a)](jobListAction),jobCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2c4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x283))[a2_0x2a53d9(0x39a)](async(_0x462fc2,_0x1997b8)=>{const _0x157008=a2_0x2a53d9,_0x2942a1=new JobShowCommand(),_0x1ecaf4=program[_0x157008(0x408)](),_0x108393=await createTDXInstance(_0x1ecaf4),_0x244ee5=await _0x2942a1[_0x157008(0x333)]({'options':{..._0x1ecaf4,..._0x1997b8},'args':[_0x462fc2],'tdx':_0x108393});gracefulExit(_0x244ee5);}),jobCmd['command'](a2_0x2a53d9(0x378))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2d0))['action'](async(_0x59a59c,_0x483df8)=>{const _0x3dd162=a2_0x2a53d9,_0x19b795=new JobKillCommand(),_0x4fde91=program[_0x3dd162(0x408)](),_0x4e1294=await createTDXInstance(_0x4fde91),_0x3b60d9=await _0x19b795[_0x3dd162(0x333)]({'options':{..._0x4fde91,..._0x483df8},'args':[_0x59a59c],'tdx':_0x4e1294});gracefulExit(_0x3b60d9);}),jobCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x399))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x191))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x221),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x2a53d9(0x22a))['option'](a2_0x2a53d9(0x3fd),'Read\x20query\x20from\x20file')['option'](a2_0x2a53d9(0x1eb),a2_0x2a53d9(0x2d5),a2_0x2a53d9(0x2eb))[a2_0x2a53d9(0x39a)](async(_0x2984aa,_0x486f74)=>{const _0x2bddbf=a2_0x2a53d9,_0x3f9422=new JobSubmitCommand(),_0x33ffd1=program[_0x2bddbf(0x408)](),_0x5abfc9=await createTDXInstance(_0x33ffd1),_0x1bf226=await _0x3f9422[_0x2bddbf(0x333)]({'options':{..._0x33ffd1,..._0x486f74},'args':_0x2984aa?[_0x2984aa]:[],'tdx':_0x5abfc9});gracefulExit(_0x1bf226);}),jobCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3e1))['description'](a2_0x2a53d9(0x207))['action'](async(_0xf26421,_0x46564b)=>{const _0x4ddd44=a2_0x2a53d9,_0x53a470=new JobResultCommand(),_0x38f15a=program[_0x4ddd44(0x408)](),_0x5beab5=await createTDXInstance(_0x38f15a),_0x405ec8=await _0x53a470[_0x4ddd44(0x333)]({'options':{..._0x38f15a,..._0x46564b},'args':[_0xf26421],'tdx':_0x5beab5});gracefulExit(_0x405ec8);});const scheduleCmd=jobCmd[a2_0x2a53d9(0x360)]('schedule')['description']('Scheduled\x20query\x20management\x20commands');scheduleCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1f4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x20a))[a2_0x2a53d9(0x39a)](async(_0xbd6d53,_0xb98c2)=>{const _0x1841cb=a2_0x2a53d9,_0x178c5e=new ScheduleListCommand(),_0x2cf4ea=program[_0x1841cb(0x408)](),_0x47704=await createTDXInstance(_0x2cf4ea),_0x1ab512=await _0x178c5e['run']({'options':{..._0x2cf4ea,..._0xb98c2},'args':_0xbd6d53?[_0xbd6d53]:[],'tdx':_0x47704});gracefulExit(_0x1ab512);}),scheduleCmd[a2_0x2a53d9(0x360)]('show\x20<name>')['description']('Show\x20schedule\x20details')['action'](async(_0xbc0c37,_0x21d403)=>{const _0x252413=a2_0x2a53d9,_0xeb1b7c=new ScheduleShowCommand(),_0x86ce07=program[_0x252413(0x408)](),_0x11fe7d=await createTDXInstance(_0x86ce07),_0x51274b=await _0xeb1b7c['run']({'options':{..._0x86ce07,..._0x21d403},'args':[_0xbc0c37],'tdx':_0x11fe7d});gracefulExit(_0x51274b);}),scheduleCmd[a2_0x2a53d9(0x360)]('create\x20<name>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x349))[a2_0x2a53d9(0x2ef)](a2_0x2a53d9(0x21c),a2_0x2a53d9(0x1a3))[a2_0x2a53d9(0x2ef)]('-f,\x20--file\x20<path>',a2_0x2a53d9(0x326))['option']('--type\x20<type>',a2_0x2a53d9(0x322),a2_0x2a53d9(0x22a))[a2_0x2a53d9(0x244)]('--cron\x20<expression>',a2_0x2a53d9(0x24c))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x39e),a2_0x2a53d9(0x298))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x21a),a2_0x2a53d9(0x2df))['option'](a2_0x2a53d9(0x388),a2_0x2a53d9(0x1f8))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x267),a2_0x2a53d9(0x250))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3cc),a2_0x2a53d9(0x1cf))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1c6),'Result\x20output\x20destination\x20URL')[a2_0x2a53d9(0x39a)](async(_0x1597b0,_0x54082a)=>{const _0x526619=a2_0x2a53d9,_0x4846bc=new ScheduleCreateCommand(),_0x308df3=program[_0x526619(0x408)](),_0x3b4e66=await createTDXInstance(_0x308df3),_0x34d19b=await _0x4846bc[_0x526619(0x333)]({'options':{..._0x308df3,..._0x54082a},'args':[_0x1597b0],'tdx':_0x3b4e66});gracefulExit(_0x34d19b);}),scheduleCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x195))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3cd))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x21c),a2_0x2a53d9(0x1a3))[a2_0x2a53d9(0x244)]('-f,\x20--file\x20<path>',a2_0x2a53d9(0x326))[a2_0x2a53d9(0x244)]('--type\x20<type>','Query\x20type:\x20trino\x20or\x20hive')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x374),a2_0x2a53d9(0x24c))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x39e),a2_0x2a53d9(0x391))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x21a),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x388),a2_0x2a53d9(0x1f8))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x267),a2_0x2a53d9(0x250))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3cc),a2_0x2a53d9(0x1cf))[a2_0x2a53d9(0x244)]('--result\x20<url>','Result\x20output\x20destination\x20URL')[a2_0x2a53d9(0x39a)](async(_0xbb1423,_0x2169cd)=>{const _0xc9df05=a2_0x2a53d9,_0x1071b9=new ScheduleUpdateCommand(),_0x4edc9f=program['opts'](),_0x100ebc=await createTDXInstance(_0x4edc9f),_0x3768f6=await _0x1071b9[_0xc9df05(0x333)]({'options':{..._0x4edc9f,..._0x2169cd},'args':[_0xbb1423],'tdx':_0x100ebc});gracefulExit(_0x3768f6);}),scheduleCmd['command'](a2_0x2a53d9(0x2ca))[a2_0x2a53d9(0x20e)]('Delete\x20a\x20scheduled\x20query')['action'](async(_0x128565,_0x5b021b)=>{const _0x516d26=a2_0x2a53d9,_0x4598ea=new ScheduleDeleteCommand(),_0x24cfde=program[_0x516d26(0x408)](),_0x28ca9d=await createTDXInstance(_0x24cfde),_0xc0e446=await _0x4598ea[_0x516d26(0x333)]({'options':{..._0x24cfde,..._0x5b021b},'args':[_0x128565],'tdx':_0x28ca9d});gracefulExit(_0xc0e446);}),scheduleCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1a2))['description'](a2_0x2a53d9(0x2e9))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3f8),a2_0x2a53d9(0x2b8))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3e2),a2_0x2a53d9(0x20c))[a2_0x2a53d9(0x39a)](async(_0x5c2346,_0xa385b7)=>{const _0x534a31=a2_0x2a53d9,_0x5a1019=new ScheduleRunCommand(),_0x43c2ca=program[_0x534a31(0x408)](),_0x14874b=await createTDXInstance(_0x43c2ca),_0x173d86=await _0x5a1019[_0x534a31(0x333)]({'options':{..._0x43c2ca,..._0xa385b7},'args':[_0x5c2346],'tdx':_0x14874b});gracefulExit(_0x173d86);}),scheduleCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3d4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x28e))[a2_0x2a53d9(0x244)]('--from\x20<n>',a2_0x2a53d9(0x3c9))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x402),a2_0x2a53d9(0x1c2))[a2_0x2a53d9(0x39a)](async(_0x433aa7,_0x3d5d75)=>{const _0x53efd7=a2_0x2a53d9,_0x2d8e89=new ScheduleHistoryCommand(),_0x46b7cb=program[_0x53efd7(0x408)](),_0x40d24a=await createTDXInstance(_0x46b7cb),_0x2715c0=await _0x2d8e89[_0x53efd7(0x333)]({'options':{..._0x46b7cb,..._0x3d5d75},'args':[_0x433aa7],'tdx':_0x40d24a});gracefulExit(_0x2715c0);});const llmCmd=program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x368))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x329));llmCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2d8))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1bc))['action'](async(_0x2a0c59,_0x175c6a)=>{const _0x14159f=a2_0x2a53d9,_0x5eb782=new LLMUseCommand(),_0x669d48=program['opts'](),_0x2e3cce=await createTDXInstance(_0x669d48),_0x3a9fa1=await _0x5eb782[_0x14159f(0x333)]({'options':{..._0x669d48,..._0x175c6a},'args':[_0x2a0c59],'tdx':_0x2e3cce});gracefulExit(_0x3a9fa1);}),llmCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x255))[a2_0x2a53d9(0x20e)]('List\x20available\x20LLM\x20models')[a2_0x2a53d9(0x39a)](async _0x1ecd1e=>{const _0x1ede4e=new LLMModelsCommand(),_0x3592be=program['opts'](),_0x1cf7cb=await createTDXInstance(_0x3592be),_0x1778fd=await _0x1ede4e['run']({'options':{..._0x3592be,..._0x1ecd1e},'args':[],'tdx':_0x1cf7cb});gracefulExit(_0x1778fd);});const projectCmd=llmCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x290))['description'](a2_0x2a53d9(0x386)),llmProjectListAction=async(_0x22486e,_0x3e8181)=>{const _0x5a6e21=a2_0x2a53d9,_0x195725=new LLMProjectsCommand(),_0x15a8e5=program[_0x5a6e21(0x408)](),_0xfc148=await createTDXInstance(_0x15a8e5),_0x1529ab=await _0x195725['run']({'options':{..._0x15a8e5,..._0x3e8181},'args':_0x22486e?[_0x22486e]:[],'tdx':_0xfc148});gracefulExit(_0x1529ab);};projectCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1f4))['description'](a2_0x2a53d9(0x212))[a2_0x2a53d9(0x39a)](llmProjectListAction),llmCmd[a2_0x2a53d9(0x360)]('projects\x20[pattern]')['description']('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](llmProjectListAction),projectCmd[a2_0x2a53d9(0x360)]('create\x20<name>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x34e))['option'](a2_0x2a53d9(0x3ba),a2_0x2a53d9(0x1fa))[a2_0x2a53d9(0x39a)](async(_0x330e75,_0x15ef2c)=>{const _0x8c5b82=a2_0x2a53d9,_0x343b13=new LLMProjectCreateCommand(),_0x1fce99=program[_0x8c5b82(0x408)](),_0x274bd6=await createTDXInstance(_0x1fce99),_0x40eb1c=await _0x343b13[_0x8c5b82(0x333)]({'options':{..._0x1fce99,..._0x15ef2c},'args':[_0x330e75],'tdx':_0x274bd6});gracefulExit(_0x40eb1c);}),projectCmd['command'](a2_0x2a53d9(0x2ca))[a2_0x2a53d9(0x20e)]('Delete\x20an\x20LLM\x20project')[a2_0x2a53d9(0x39a)](async(_0x554103,_0x334cec)=>{const _0x2136e3=a2_0x2a53d9,_0x2249dd=new LLMProjectDeleteCommand(),_0x54ccca=program['opts'](),_0x293ba6=await createTDXInstance(_0x54ccca),_0x565ff9=await _0x2249dd[_0x2136e3(0x333)]({'options':{..._0x54ccca,..._0x334cec},'args':[_0x554103],'tdx':_0x293ba6});gracefulExit(_0x565ff9);}),projectCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x242))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2d1))[a2_0x2a53d9(0x244)]('-o,\x20--output\x20<folder>',a2_0x2a53d9(0x29b))[a2_0x2a53d9(0x244)]('--dry-run',a2_0x2a53d9(0x1fd))['action'](async(_0x42095c,_0x25bbb8)=>{const _0x16f3a3=a2_0x2a53d9,_0x16abd4=new LLMProjectBackupCommand(),_0x3684b8=program[_0x16f3a3(0x408)](),_0x135721=await createTDXInstance(_0x3684b8),_0x4db9cc=await _0x16abd4[_0x16f3a3(0x333)]({'options':{..._0x3684b8,..._0x25bbb8},'args':[_0x42095c],'tdx':_0x135721});gracefulExit(_0x4db9cc);}),projectCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2f1))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x287))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x297),a2_0x2a53d9(0x277))[a2_0x2a53d9(0x244)]('--dry-run','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x2a53d9(0x39a)](async(_0x3f906c,_0x33dfdc)=>{const _0x4e29c7=a2_0x2a53d9,_0x5eaf15=new LLMProjectRestoreCommand(),_0xea8aff=program[_0x4e29c7(0x408)](),_0x1c3f83=await createTDXInstance(_0xea8aff),_0x5c0ada=await _0x5eaf15[_0x4e29c7(0x333)]({'options':{..._0xea8aff,..._0x33dfdc},'args':[_0x3f906c],'tdx':_0x1c3f83});gracefulExit(_0x5c0ada);});const llmAgentListAction=async(_0x4da1e6,_0x3dfef0)=>{const _0x31e28b=a2_0x2a53d9,_0x6a0e89=new LLMAgentsCommand(),_0x3bda95=program[_0x31e28b(0x408)](),_0x3eaa16=await createTDXInstance(_0x3bda95),_0x57b1fa=await _0x6a0e89[_0x31e28b(0x333)]({'options':{..._0x3bda95,..._0x3dfef0},'args':_0x4da1e6?[_0x4da1e6]:[],'tdx':_0x3eaa16});gracefulExit(_0x57b1fa);};llmCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1a8))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x33a))[a2_0x2a53d9(0x39a)](llmAgentListAction),program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1a8))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x33a))['action'](llmAgentListAction),llmCmd[a2_0x2a53d9(0x360)]('history\x20[chat-id]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3c3))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3ce),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x2a53d9(0x39a)](async(_0x6ee50,_0x1aab67)=>{const _0x55ec38=a2_0x2a53d9,_0x4cd1fe=new LLMHistoryCommand(),_0x4870ee=program[_0x55ec38(0x408)](),_0x21fc68=await createTDXInstance(_0x4870ee),_0x31ec22=await _0x4cd1fe['run']({'options':{..._0x4870ee,..._0x1aab67},'args':_0x6ee50?[_0x6ee50]:[],'tdx':_0x21fc68});gracefulExit(_0x31ec22);});isExperimentalAvailable()&&llmCmd['command'](a2_0x2a53d9(0x2cf))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2e5))['action'](async(_0x5a1c16,_0x11b532)=>{const _0x3a5d0e=a2_0x2a53d9,_0x53ffab=new LLMLogCommand(),_0x2e27ad=program[_0x3a5d0e(0x408)](),_0x37ff3f=await createTDXInstance(_0x2e27ad),_0x279ddb=await _0x53ffab['run']({'options':{..._0x2e27ad,..._0x11b532},'args':[_0x5a1c16],'tdx':_0x37ff3f});gracefulExit(_0x279ddb);});program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2d7))[a2_0x2a53d9(0x269)](a2_0x2a53d9(0x224))['description'](a2_0x2a53d9(0x1d4))['option'](a2_0x2a53d9(0x306),a2_0x2a53d9(0x23a))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3a5),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x2a53d9(0x244)]('--no-proxy',a2_0x2a53d9(0x348))[a2_0x2a53d9(0x1f2)]()[a2_0x2a53d9(0x403)](!![])['addHelpText'](a2_0x2a53d9(0x1c1),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x2a53d9(0x39a)](async(_0x26d29b,_0x1933ab)=>{const _0x261286=a2_0x2a53d9,_0x12f31f=program[_0x261286(0x408)](),_0xaa3345=Array[_0x261286(0x1a6)](_0x26d29b)?_0x26d29b:[];if(_0xaa3345[0x0]==='statusline'){const _0x4ffa46=new ClaudeStatuslineCommand(),_0x2b0f89=await _0x4ffa46[_0x261286(0x333)]({'options':{..._0x12f31f,..._0x1933ab},'args':_0xaa3345[_0x261286(0x36d)](0x1),'tdx':null});gracefulExit(_0x2b0f89);}if(_0xaa3345[0x0]==='usage'){const _0x5597c3=new ClaudeUsageCommand(),_0x4cd46c=await _0x5597c3['run']({'options':{..._0x12f31f,..._0x1933ab},'args':_0xaa3345[_0x261286(0x36d)](0x1),'tdx':null});gracefulExit(_0x4cd46c);}const _0x2bbcc2=new ClaudeCommand(),_0x103871=await createTDXInstance(_0x12f31f),_0x3efb4c=await _0x2bbcc2[_0x261286(0x333)]({'options':{..._0x12f31f,..._0x1933ab},'args':_0xaa3345,'tdx':_0x103871});gracefulExit(_0x3efb4c);}),program[a2_0x2a53d9(0x360)]('use\x20[resource]\x20[value]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3d7))[a2_0x2a53d9(0x244)]('--clear',a2_0x2a53d9(0x324))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x38f),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x2a53d9(0x39a)](async(_0x2e798d,_0x42f5c3,_0x508a27)=>{const _0x30e1f3=a2_0x2a53d9,_0x1d0f53=new UseCommand(),_0x5be605=program['opts'](),_0x93fd5=[];if(_0x2e798d)_0x93fd5[_0x30e1f3(0x3aa)](_0x2e798d);if(_0x42f5c3)_0x93fd5[_0x30e1f3(0x3aa)](_0x42f5c3);const _0x417190=await _0x1d0f53[_0x30e1f3(0x333)]({'options':{..._0x5be605,..._0x508a27},'args':_0x93fd5,'tdx':null});gracefulExit(_0x417190);}),program['command'](a2_0x2a53d9(0x1c3))['description'](a2_0x2a53d9(0x30f))[a2_0x2a53d9(0x39a)](async _0x4e7f29=>{const _0x11a109=a2_0x2a53d9,_0x4afc5c=new StatusCommand(),_0x29665c=program[_0x11a109(0x408)](),_0xa8ed88=await createTDXInstance(_0x29665c),_0x4cac57=await _0x4afc5c['run']({'options':{..._0x29665c,..._0x4e7f29},'args':[],'tdx':_0xa8ed88});gracefulExit(_0x4cac57);}),program[a2_0x2a53d9(0x360)]('unset\x20<resource>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1ef))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x38f),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x2a53d9(0x39a)](async(_0x5d39b9,_0x479c99)=>{const _0x116c35=a2_0x2a53d9,_0x24bcd3=new UnsetCommand(),_0x4d7b18=program[_0x116c35(0x408)](),_0x606093=await _0x24bcd3[_0x116c35(0x333)]({'options':{..._0x4d7b18,..._0x479c99},'args':[_0x5d39b9],'tdx':null});gracefulExit(_0x606093);}),program['command']('chats')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x359))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3ce),'Show\x20the\x20most\x20recent\x20chat')[a2_0x2a53d9(0x39a)](async _0x2c7129=>{const _0x41a815=a2_0x2a53d9,_0x44d316=new ChatsCommand(),_0x25d5e6=program[_0x41a815(0x408)](),_0x55801a=await createTDXInstance(_0x25d5e6),_0x20b85e=await _0x44d316['run']({'options':{..._0x25d5e6,..._0x2c7129},'args':[],'tdx':_0x55801a});gracefulExit(_0x20b85e);});const authCmd=program[a2_0x2a53d9(0x360)]('auth')[a2_0x2a53d9(0x20e)]('Authentication\x20management');async function runAuthStatusCommand(_0x1b9b7b){const _0x3f8ddc=a2_0x2a53d9,_0xf3ee5e=new AuthStatusCommand(),_0x1b3865=program[_0x3f8ddc(0x408)](),_0x31783d=await createTDXInstance(_0x1b3865),_0x5c0cde=await _0xf3ee5e[_0x3f8ddc(0x333)]({'options':{..._0x1b3865,..._0x1b9b7b},'args':[],'tdx':_0x31783d});gracefulExit(_0x5c0cde);}authCmd[a2_0x2a53d9(0x39a)](runAuthStatusCommand),authCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1c3))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x259))[a2_0x2a53d9(0x39a)](runAuthStatusCommand),authCmd['command'](a2_0x2a53d9(0x33f))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1af))[a2_0x2a53d9(0x3b4)](a2_0x2a53d9(0x1c1),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')[a2_0x2a53d9(0x39a)](async _0x21858b=>{const _0x1134f4=a2_0x2a53d9,_0x5a0d1e=new AuthSetupCommand(),_0x5c42dc=program['opts'](),_0x226506=await createTDXInstance(_0x5c42dc),_0x57cd9d=await _0x5a0d1e[_0x1134f4(0x333)]({'options':{..._0x5c42dc,..._0x21858b},'args':[],'tdx':_0x226506});gracefulExit(_0x57cd9d);}),authCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x370))['description'](a2_0x2a53d9(0x34b))['addHelpText'](a2_0x2a53d9(0x1c1),a2_0x2a53d9(0x289))['action'](async _0x4f6b65=>{const _0x430997=a2_0x2a53d9,_0x3e6fc8=new AuthClearCommand(),_0x79927b=program['opts'](),_0x2f35e1=await _0x3e6fc8[_0x430997(0x333)]({'options':{..._0x79927b,..._0x4f6b65},'args':[],'tdx':null});gracefulExit(_0x2f35e1);});const userCmd=program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2e6))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x197)),userListAction=async _0x204a87=>{const _0x932619=a2_0x2a53d9,_0x1774b1=new UserListCommand(),_0x339825=program[_0x932619(0x408)](),_0x2b91e8=await createTDXInstance(_0x339825),_0x5267d0=await _0x1774b1['run']({'options':{..._0x339825,..._0x204a87},'args':[],'tdx':_0x2b91e8});gracefulExit(_0x5267d0);};userCmd['action'](async _0x3ee409=>{const _0x35ed48=a2_0x2a53d9,_0x5f38d4=new UserCommand(),_0x531f01=program[_0x35ed48(0x408)](),_0x14040a=await createTDXInstance(_0x531f01),_0x4d79fd=await _0x5f38d4[_0x35ed48(0x333)]({'options':{..._0x531f01,..._0x3ee409},'args':[],'tdx':_0x14040a});gracefulExit(_0x4d79fd);}),userCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2b5))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x387))['action'](userListAction),program[a2_0x2a53d9(0x360)]('users')['description'](a2_0x2a53d9(0x1dc))[a2_0x2a53d9(0x39a)](userListAction),program[a2_0x2a53d9(0x360)]('profiles')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2a9))['action'](async _0x3c46aa=>{const _0x30c67a=a2_0x2a53d9,_0x4a5608=new ProfilesCommand(),_0x355ebe=program[_0x30c67a(0x408)](),_0x3214ee=await _0x4a5608[_0x30c67a(0x333)]({'options':{..._0x355ebe,..._0x3c46aa},'args':[],'tdx':null});gracefulExit(_0x3214ee);});const profileCmd=program[a2_0x2a53d9(0x360)]('profile')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x32d));profileCmd[a2_0x2a53d9(0x39a)](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x515f99=>{const _0x405f96=a2_0x2a53d9,_0x1c4497=new ProfilesCommand(),_0x26082e=program[_0x405f96(0x408)](),_0x58f1aa=await _0x1c4497[_0x405f96(0x333)]({'options':{..._0x26082e,..._0x515f99},'args':[],'tdx':null});gracefulExit(_0x58f1aa);};profileCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2b5))['description']('List\x20all\x20available\x20profiles')[a2_0x2a53d9(0x39a)](profileListAction),profileCmd['command'](a2_0x2a53d9(0x371))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x282))[a2_0x2a53d9(0x3b4)]('after','\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')[a2_0x2a53d9(0x39a)](async(_0x186c3d,_0x1443d5)=>{const _0x4bf48d=a2_0x2a53d9,_0x2df359=new ProfileCreateCommand(),_0x3fde3a=program['opts'](),_0x263667=await _0x2df359[_0x4bf48d(0x333)]({'options':{..._0x3fde3a,..._0x1443d5},'args':_0x186c3d?[_0x186c3d]:[],'tdx':null});gracefulExit(_0x263667);}),profileCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2e4))[a2_0x2a53d9(0x20e)]('Remove\x20a\x20profile')['addHelpText'](a2_0x2a53d9(0x1c1),a2_0x2a53d9(0x294))[a2_0x2a53d9(0x39a)](async(_0x4518f2,_0x51bc35)=>{const _0x59016a=a2_0x2a53d9,_0x8fb5dc=new ProfileRemoveCommand(),_0x4eb4b4=program['opts'](),_0x4797e1=await _0x8fb5dc[_0x59016a(0x333)]({'options':{..._0x4eb4b4,..._0x51bc35},'args':[_0x4518f2],'tdx':null});gracefulExit(_0x4797e1);}),profileCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x19e))['description'](a2_0x2a53d9(0x271))['addHelpText'](a2_0x2a53d9(0x1c1),a2_0x2a53d9(0x1b1))[a2_0x2a53d9(0x39a)](async(_0x384fb9,_0x4d4db0)=>{const _0x5780b6=a2_0x2a53d9,_0x37fe43=new ProfileSetCommand(),_0x23de23=program['opts'](),_0xdaabe5=await _0x37fe43[_0x5780b6(0x333)]({'options':{..._0x23de23,..._0x4d4db0},'args':[_0x384fb9],'tdx':null});gracefulExit(_0xdaabe5);}),profileCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3e4))['description']('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x38f),a2_0x2a53d9(0x37c))['addHelpText'](a2_0x2a53d9(0x1c1),'\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')[a2_0x2a53d9(0x39a)](async(_0x123e42,_0x37af04)=>{const _0x56db2b=a2_0x2a53d9,_0x1b07c5=new ProfileUseCommand(),_0x53182f=program[_0x56db2b(0x408)](),_0x1367b9=await _0x1b07c5['run']({'options':{..._0x53182f,..._0x37af04},'args':[_0x123e42],'tdx':null});gracefulExit(_0x1367b9);});const engageCmd=program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x29e))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3cb)),createEngageAction=_0x139dc3=>{return async(_0x2b18d0,_0x12d4ce)=>{const _0x11c1ce=a2_0x51e6,_0x1f08d8=new _0x139dc3(),_0xe45a80=program['opts'](),_0x1d16ed=await createTDXInstance(_0xe45a80),_0x1b1cb7=await _0x1f08d8[_0x11c1ce(0x333)]({'options':{..._0xe45a80,..._0x12d4ce},'args':[_0x2b18d0],'tdx':_0x1d16ed});gracefulExit(_0x1b1cb7);};},createEngageNoArgAction=_0x6b95dc=>{return async _0x1dc3d7=>{const _0x4e9452=a2_0x51e6,_0x318a05=new _0x6b95dc(),_0x2c2a02=program[_0x4e9452(0x408)](),_0x2b4318=await createTDXInstance(_0x2c2a02),_0x2ddc35=await _0x318a05[_0x4e9452(0x333)]({'options':{..._0x2c2a02,..._0x1dc3d7},'args':[],'tdx':_0x2b4318});gracefulExit(_0x2ddc35);};},campaignCmd=engageCmd[a2_0x2a53d9(0x360)]('campaign')['description'](a2_0x2a53d9(0x2e7)),campaignListAction=async(_0x20e3fd,_0x347d21)=>{const _0x2db1c4=a2_0x2a53d9,_0x65a11e=new EngageCampaignsCommand(),_0x4aaa53=program[_0x2db1c4(0x408)](),_0x912a32=await createTDXInstance(_0x4aaa53),_0x43b7ee=await _0x65a11e['run']({'options':{..._0x4aaa53,..._0x347d21},'args':_0x20e3fd?[_0x20e3fd]:[],'tdx':_0x912a32});gracefulExit(_0x43b7ee);};campaignCmd['command'](a2_0x2a53d9(0x1f4))[a2_0x2a53d9(0x20e)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2ec),a2_0x2a53d9(0x35b))['option']('--status\x20<status>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x2a53d9(0x2fb),a2_0x2a53d9(0x2f4))['action'](campaignListAction),engageCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x24e))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1cb))[a2_0x2a53d9(0x244)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x220),a2_0x2a53d9(0x2cd))['option'](a2_0x2a53d9(0x2fb),a2_0x2a53d9(0x2f4))['action'](campaignListAction),campaignCmd['command']('show\x20<name-or-id>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x29d))['option'](a2_0x2a53d9(0x2fb),'Workspace\x20name')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2be),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x2a53d9(0x39a)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x401))[a2_0x2a53d9(0x20e)]('Create\x20a\x20new\x20campaign')[a2_0x2a53d9(0x2ef)](a2_0x2a53d9(0x20b),a2_0x2a53d9(0x3e0))[a2_0x2a53d9(0x2ef)]('--type\x20<type>',a2_0x2a53d9(0x33e))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fb),'Workspace\x20name\x20(required)')[a2_0x2a53d9(0x244)]('--description\x20<desc>',a2_0x2a53d9(0x372))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x22d),a2_0x2a53d9(0x380))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3fa),'Email\x20sender\x20ID\x20for\x20delivery')['option']('--json-columns\x20<cols>',a2_0x2a53d9(0x27a))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x36c),a2_0x2a53d9(0x332))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x39e),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x2a53d9(0x39a)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x305))['description'](a2_0x2a53d9(0x25e))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fb),'Workspace\x20name')[a2_0x2a53d9(0x244)]('--name\x20<name>',a2_0x2a53d9(0x3ac))['option']('--description\x20<desc>',a2_0x2a53d9(0x372))[a2_0x2a53d9(0x244)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x2a53d9(0x244)]('--email-sender-id\x20<id>',a2_0x2a53d9(0x1e1))['option'](a2_0x2a53d9(0x3a3),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option']('--start-at\x20<datetime>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x39e),a2_0x2a53d9(0x226))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')['description'](a2_0x2a53d9(0x28b))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fb),a2_0x2a53d9(0x2f4))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x26b),a2_0x2a53d9(0x24f))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x18f))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x279))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fb),a2_0x2a53d9(0x2f4))[a2_0x2a53d9(0x39a)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x352))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x350))['option'](a2_0x2a53d9(0x2fb),'Workspace\x20name')[a2_0x2a53d9(0x39a)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x286))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x389))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fb),a2_0x2a53d9(0x2f4))[a2_0x2a53d9(0x39a)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x2a53d9(0x360)]('duplicate\x20<name-or-id>')[a2_0x2a53d9(0x20e)]('Duplicate\x20a\x20campaign')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fb),a2_0x2a53d9(0x2f4))[a2_0x2a53d9(0x39a)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x210))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1f9)),templateListAction=async(_0x628b3d,_0x153e32)=>{const _0x39ad8c=a2_0x2a53d9,_0xd91942=new EngageTemplatesCommand(),_0x226b2f=program['opts'](),_0x252bb4=await createTDXInstance(_0x226b2f),_0xf9f5ad=await _0xd91942[_0x39ad8c(0x333)]({'options':{..._0x226b2f,..._0x153e32},'args':_0x628b3d?[_0x628b3d]:[],'tdx':_0x252bb4});gracefulExit(_0xf9f5ad);};templateCmd[a2_0x2a53d9(0x360)]('list\x20[pattern]')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1d7))[a2_0x2a53d9(0x244)]('--workspace\x20<name>','Workspace\x20name')[a2_0x2a53d9(0x39a)](templateListAction),engageCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2c7))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x37d))[a2_0x2a53d9(0x244)]('--workspace\x20<name>',a2_0x2a53d9(0x2f4))['action'](templateListAction),templateCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x231))['description'](a2_0x2a53d9(0x3a8))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fb),a2_0x2a53d9(0x2f4))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2be),a2_0x2a53d9(0x1a9))[a2_0x2a53d9(0x39a)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x401))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3c0))['requiredOption'](a2_0x2a53d9(0x20b),a2_0x2a53d9(0x26c))[a2_0x2a53d9(0x2ef)](a2_0x2a53d9(0x32c),a2_0x2a53d9(0x310))[a2_0x2a53d9(0x2ef)](a2_0x2a53d9(0x2cb),a2_0x2a53d9(0x3e5))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fb),'Workspace\x20name\x20(required)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x38c),a2_0x2a53d9(0x398))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1f5),'Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)',_0x536c80=>{const _0x162377=a2_0x2a53d9;if(!['beefree',_0x162377(0x26a)][_0x162377(0x1a4)](_0x536c80))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x162377(0x3f7)+_0x536c80+_0x162377(0x3f3));return _0x536c80;})[a2_0x2a53d9(0x39a)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x305))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x249))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2fb),a2_0x2a53d9(0x2f4))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x20b),a2_0x2a53d9(0x3d0))['option'](a2_0x2a53d9(0x32c),a2_0x2a53d9(0x310))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2cb),'HTML\x20template\x20content')['option'](a2_0x2a53d9(0x38c),a2_0x2a53d9(0x398))[a2_0x2a53d9(0x39a)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('delete\x20<name-or-id>')[a2_0x2a53d9(0x20e)]('Delete\x20an\x20email\x20template')['option'](a2_0x2a53d9(0x2fb),a2_0x2a53d9(0x2f4))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x26b),a2_0x2a53d9(0x24f))[a2_0x2a53d9(0x39a)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1e0))['description']('Workspace\x20management'),workspaceListAction=async(_0x1fe75a,_0x128ee6)=>{const _0x216b8d=a2_0x2a53d9,_0x451395=new EngageWorkspacesCommand(),_0x2a66c7=program[_0x216b8d(0x408)](),_0xcc9862=await createTDXInstance(_0x2a66c7),_0x588d3c=await _0x451395[_0x216b8d(0x333)]({'options':{..._0x2a66c7,..._0x128ee6},'args':_0x1fe75a?[_0x1fe75a]:[],'tdx':_0xcc9862});gracefulExit(_0x588d3c);};workspaceCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1f4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x273))[a2_0x2a53d9(0x39a)](workspaceListAction),engageCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x19f))['description'](a2_0x2a53d9(0x34d))[a2_0x2a53d9(0x39a)](workspaceListAction),workspaceCmd[a2_0x2a53d9(0x360)]('show\x20<name-or-id>')['description'](a2_0x2a53d9(0x377))['option'](a2_0x2a53d9(0x2be),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x2a53d9(0x39a)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x2a53d9(0x360)]('create')['description'](a2_0x2a53d9(0x32b))[a2_0x2a53d9(0x2ef)](a2_0x2a53d9(0x20b),a2_0x2a53d9(0x2f4))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1f3),a2_0x2a53d9(0x211))[a2_0x2a53d9(0x39a)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x2a53d9(0x360)]('update\x20<name-or-id>')['description'](a2_0x2a53d9(0x1e5))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x20b),a2_0x2a53d9(0x296))['option'](a2_0x2a53d9(0x1f3),'Workspace\x20description')[a2_0x2a53d9(0x39a)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command'](a2_0x2a53d9(0x1fb))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3f2))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x26b),a2_0x2a53d9(0x24f))[a2_0x2a53d9(0x39a)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x2a53d9(0x360)]('use\x20<name>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2c3))[a2_0x2a53d9(0x39a)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x2a53d9(0x362))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x252)),connectionListAction=async _0x3ee32c=>{const _0x1d4ad4=a2_0x2a53d9,_0x3cff79=new ConnectionListCommand(),_0x480b30=program[_0x1d4ad4(0x408)](),_0xf17ee5=await createTDXInstance(_0x480b30),_0x4f9789=await _0x3cff79[_0x1d4ad4(0x333)]({'options':{..._0x480b30,..._0x3ee32c},'args':[],'tdx':_0xf17ee5});gracefulExit(_0x4f9789);};connectionCmd['command'](a2_0x2a53d9(0x2b5))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1dd))['action'](connectionListAction),program[a2_0x2a53d9(0x360)]('connections',{'hidden':!![]})[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3d2))[a2_0x2a53d9(0x39a)](connectionListAction),connectionCmd[a2_0x2a53d9(0x360)]('show\x20<name>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x331))[a2_0x2a53d9(0x39a)](async(_0xd4d24a,_0x428f06)=>{const _0x529622=a2_0x2a53d9,_0x30ce2f=new ConnectionShowCommand(),_0x5cd38a=program['opts'](),_0x13686f=await createTDXInstance(_0x5cd38a),_0x1ddfdb=await _0x30ce2f[_0x529622(0x333)]({'options':{..._0x5cd38a,..._0x428f06},'args':[_0xd4d24a],'tdx':_0x13686f});gracefulExit(_0x1ddfdb);}),connectionCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3fb))[a2_0x2a53d9(0x20e)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x2a53d9(0x39a)](async(_0x53f43e,_0x1e0064)=>{const _0x597314=a2_0x2a53d9,_0x2d9cfe=new ConnectionSchemaCommand(),_0x3cd7d7=program['opts'](),_0xcab0e7=await createTDXInstance(_0x3cd7d7),_0x23dee3=await _0x2d9cfe[_0x597314(0x333)]({'options':{..._0x3cd7d7,..._0x1e0064},'args':[_0x53f43e],'tdx':_0xcab0e7});gracefulExit(_0x23dee3);}),connectionCmd[a2_0x2a53d9(0x360)]('types')[a2_0x2a53d9(0x20e)]('List\x20available\x20connector\x20types')['action'](async _0x2fb6fa=>{const _0x17a517=a2_0x2a53d9,_0xd65823=new ConnectionTypesCommand(),_0x14b06d=program[_0x17a517(0x408)](),_0x4cd546=await createTDXInstance(_0x14b06d),_0x3b1e38=await _0xd65823[_0x17a517(0x333)]({'options':{..._0x14b06d,..._0x2fb6fa},'args':[],'tdx':_0x4cd546});gracefulExit(_0x3b1e38);}),connectionCmd['command']('settings\x20<type>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x358))[a2_0x2a53d9(0x39a)](async(_0x28e55e,_0x2b2438)=>{const _0x58736a=a2_0x2a53d9,_0x5436bd=new ConnectionSettingsCommand(),_0x1b1cc0=program[_0x58736a(0x408)](),_0x14af62=await createTDXInstance(_0x1b1cc0),_0x556271=await _0x5436bd[_0x58736a(0x333)]({'options':{..._0x1b1cc0,..._0x2b2438},'args':[_0x28e55e],'tdx':_0x14af62});gracefulExit(_0x556271);});const journeyCmd=program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x28a))['description']('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x58726b,_0x5cbdee)=>{const _0x144ac2=a2_0x2a53d9,_0x62cf23=new JourneyListCommand(),_0x49ebc5=program[_0x144ac2(0x408)](),_0x434fe1=await createTDXInstance(_0x49ebc5),_0x54d355=await _0x62cf23[_0x144ac2(0x333)]({'options':{..._0x49ebc5,..._0x5cbdee},'args':_0x58726b?[_0x58726b]:[],'tdx':_0x434fe1});gracefulExit(_0x54d355);};journeyCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1f4))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x31a))[a2_0x2a53d9(0x39a)](journeyListAction),journeyCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x33b))[a2_0x2a53d9(0x20e)]('Show\x20journey\x20details')['option']('-w,\x20--web','Open\x20journey\x20in\x20web\x20browser')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3d8),a2_0x2a53d9(0x213))[a2_0x2a53d9(0x39a)](async(_0x102cb1,_0x1db038)=>{const _0x291959=a2_0x2a53d9,_0x376459=new JourneyViewCommand(),_0x678394=program[_0x291959(0x408)](),_0x3c2cfa=await createTDXInstance(_0x678394),_0xe379c8=await _0x376459['run']({'options':{..._0x678394,..._0x1db038},'args':[_0x102cb1],'tdx':_0x3c2cfa});gracefulExit(_0xe379c8);}),journeyCmd['command'](a2_0x2a53d9(0x3bd))['description'](a2_0x2a53d9(0x251))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3dc),a2_0x2a53d9(0x1e7))['action'](async(_0x51c057,_0x2c5a7d)=>{const _0x530ffd=a2_0x2a53d9,_0x323cf8=new JourneyStatsCommand(),_0x52027=program[_0x530ffd(0x408)](),_0x4f8447=await createTDXInstance(_0x52027),_0x267cf5=await _0x323cf8[_0x530ffd(0x333)]({'options':{..._0x52027,..._0x2c5a7d},'args':[_0x51c057],'tdx':_0x4f8447});gracefulExit(_0x267cf5);}),journeyCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x379))['description'](a2_0x2a53d9(0x285))['action'](async(_0x317153,_0x14c2be)=>{const _0x21997b=a2_0x2a53d9,_0x1678db=new JourneyPauseCommand(),_0xbd1197=program[_0x21997b(0x408)](),_0xe9159=await createTDXInstance(_0xbd1197),_0x3c48f4=await _0x1678db[_0x21997b(0x333)]({'options':{..._0xbd1197,..._0x14c2be},'args':[_0x317153],'tdx':_0xe9159});gracefulExit(_0x3c48f4);}),journeyCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x200))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x3a0))[a2_0x2a53d9(0x39a)](async(_0x486822,_0x78d88a)=>{const _0x4e3b94=a2_0x2a53d9,_0x39947f=new JourneyResumeCommand(),_0x9065c6=program[_0x4e3b94(0x408)](),_0x440002=await createTDXInstance(_0x9065c6),_0x1e7cf6=await _0x39947f['run']({'options':{..._0x9065c6,..._0x78d88a},'args':[_0x486822],'tdx':_0x440002});gracefulExit(_0x1e7cf6);}),journeyCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x21b))['description'](a2_0x2a53d9(0x3b3))['option']('-y,\x20--yes',a2_0x2a53d9(0x24f))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x2ff),a2_0x2a53d9(0x232))[a2_0x2a53d9(0x39a)](async(_0x5582a4,_0x17505b)=>{const _0x459f47=a2_0x2a53d9,_0x489387=new JourneyPullCommand(),_0xdb83c4=program[_0x459f47(0x408)](),_0x206faf=await createTDXInstance(_0xdb83c4),_0x5d6c9c=await _0x489387[_0x459f47(0x333)]({'options':{..._0xdb83c4,..._0x17505b},'args':_0x5582a4?[_0x5582a4]:[],'tdx':_0x206faf});gracefulExit(_0x5d6c9c);}),journeyCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3b5))[a2_0x2a53d9(0x20e)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x2a53d9(0x39a)](async(_0x3999ef,_0x3487cd)=>{const _0x51f7c6=a2_0x2a53d9,_0x1832ba=new JourneyPushCommand(),_0x14f177=program[_0x51f7c6(0x408)](),_0x272fd4=await createTDXInstance(_0x14f177),_0x411f3c=await _0x1832ba['run']({'options':{..._0x14f177,..._0x3487cd},'args':_0x3999ef?[_0x3999ef]:[],'tdx':_0x272fd4});gracefulExit(_0x411f3c);}),journeyCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3c8))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x36f))[a2_0x2a53d9(0x39a)](async(_0x4aa9e0,_0x128eb6)=>{const _0x336c2c=a2_0x2a53d9,_0x4c44c0=new JourneyValidateCommand(),_0x5d65a8=program['opts'](),_0x19cdd0=await createTDXInstance(_0x5d65a8),_0x417f5c=await _0x4c44c0[_0x336c2c(0x333)]({'options':{..._0x5d65a8,..._0x128eb6},'args':_0x4aa9e0?[_0x4aa9e0]:[],'tdx':_0x19cdd0});gracefulExit(_0x417f5c);}),program['command'](a2_0x2a53d9(0x3f5))['description']('List\x20journeys\x20(alias\x20for\x20journey\x20list)')['action'](journeyListAction);const agentSyncCmd=program[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x27f))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x28c));agentSyncCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x206))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x190))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x18a),a2_0x2a53d9(0x3c6))['option'](a2_0x2a53d9(0x308),'Overwrite\x20local\x20changes\x20without\x20confirmation')['action'](async(_0xe4765,_0x352958,_0x361ea0)=>{const _0x5b70d6=a2_0x2a53d9,_0x4b1971=new AgentPullCommand(),_0x2eac46=program[_0x5b70d6(0x408)](),_0x273331=await createTDXInstance(_0x2eac46),_0x31346c=[];if(_0xe4765)_0x31346c[_0x5b70d6(0x3aa)](_0xe4765);if(_0x352958)_0x31346c[_0x5b70d6(0x3aa)](_0x352958);const _0x18b396=await _0x4b1971['run']({'options':{..._0x2eac46,..._0x361ea0},'args':_0x31346c,'tdx':_0x273331});gracefulExit(_0x18b396);}),agentSyncCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3e7))[a2_0x2a53d9(0x20e)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x308),'Push\x20without\x20confirmation')[a2_0x2a53d9(0x39a)](async(_0x2e25ce,_0x246914)=>{const _0x238506=a2_0x2a53d9,_0xbe5e5=new AgentPushCommand(),_0xfa8da3=program[_0x238506(0x408)](),_0x145c34=await createTDXInstance(_0xfa8da3),_0x1e0d19=await _0xbe5e5[_0x238506(0x333)]({'options':{..._0xfa8da3,..._0x246914},'args':_0x2e25ce?[_0x2e25ce]:[],'tdx':_0x145c34});gracefulExit(_0x1e0d19);}),agentSyncCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3da))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1d2))['option'](a2_0x2a53d9(0x205),a2_0x2a53d9(0x32e))['action'](async(_0x38041a,_0x18a4e2)=>{const _0x518e7c=a2_0x2a53d9,_0x371cee=new AgentCloneCommand(),_0x53535a=program[_0x518e7c(0x408)](),_0x400f46=await createTDXInstance(_0x53535a),_0x58a0eb=await _0x371cee[_0x518e7c(0x333)]({'options':{..._0x53535a,..._0x18a4e2},'args':_0x38041a?[_0x38041a]:[],'tdx':_0x400f46});gracefulExit(_0x58a0eb);}),agentSyncCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x2a0))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x22e))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x18e),'Run\x20specific\x20tests\x20(comma-separated)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x192),a2_0x2a53d9(0x299))['option'](a2_0x2a53d9(0x2ff),'Parse\x20and\x20validate\x20without\x20executing')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x28f),a2_0x2a53d9(0x32f))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1a0),a2_0x2a53d9(0x364))[a2_0x2a53d9(0x39a)](async(_0x4dd54b,_0x42a98a)=>{const _0x1d216e=a2_0x2a53d9,_0x1ac26=new AgentTestCommand(),_0x269b74=program[_0x1d216e(0x408)](),_0x80ca0=await createTDXInstance(_0x269b74),_0x402c02=await _0x1ac26['run']({'options':{..._0x269b74,..._0x42a98a},'args':_0x4dd54b?[_0x4dd54b]:[],'tdx':_0x80ca0});gracefulExit(_0x402c02);}),agentSyncCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x1f4))[a2_0x2a53d9(0x20e)]('List\x20agents\x20in\x20current\x20project')[a2_0x2a53d9(0x39a)](llmAgentListAction),agentSyncCmd[a2_0x2a53d9(0x360)](a2_0x2a53d9(0x3b9))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x2c1))['action'](async(_0x1b3e1f,_0x5cf192)=>{const _0xa664b4=a2_0x2a53d9,_0x24aaf8=new LLMAgentShowCommand(),_0x2f8420=program['opts'](),_0x1e700d=await createTDXInstance(_0x2f8420),_0x31960e=await _0x24aaf8[_0xa664b4(0x333)]({'options':{..._0x2f8420,..._0x5cf192},'args':[_0x1b3e1f],'tdx':_0x1e700d});gracefulExit(_0x31960e);}),agentSyncCmd[a2_0x2a53d9(0x360)]('create\x20<name>')[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x39b))[a2_0x2a53d9(0x244)]('--system-prompt\x20<text>','System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x1b5),a2_0x2a53d9(0x381),a2_0x2a53d9(0x198))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3b6),a2_0x2a53d9(0x3bc))['option'](a2_0x2a53d9(0x396),a2_0x2a53d9(0x2fd),'4')[a2_0x2a53d9(0x244)]('--temperature\x20<n>',a2_0x2a53d9(0x2b0),a2_0x2a53d9(0x319))[a2_0x2a53d9(0x39a)](async(_0x1dbaeb,_0x10bffc)=>{const _0x4324ef=a2_0x2a53d9,_0x356c79=new LLMAgentCreateCommand(),_0x1d25de=program[_0x4324ef(0x408)](),_0x9f19f7=await createTDXInstance(_0x1d25de),_0x1b951f=await _0x356c79[_0x4324ef(0x333)]({'options':{..._0x1d25de,..._0x10bffc},'args':[_0x1dbaeb],'tdx':_0x9f19f7});gracefulExit(_0x1b951f);}),agentSyncCmd[a2_0x2a53d9(0x360)]('update\x20<agent-name>')['description'](a2_0x2a53d9(0x38e))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x29a),a2_0x2a53d9(0x1ac))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x219),a2_0x2a53d9(0x284))[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3ba),'Agent\x20description')[a2_0x2a53d9(0x244)](a2_0x2a53d9(0x3b6),'Starter\x20message')[a2_0x2a53d9(0x39a)](async(_0xc233c7,_0x4991dc)=>{const _0x4a60f8=a2_0x2a53d9,_0x46ac95=new LLMAgentUpdateCommand(),_0x491c42=program[_0x4a60f8(0x408)](),_0x26c2ca=await createTDXInstance(_0x491c42),_0x41ab16=await _0x46ac95[_0x4a60f8(0x333)]({'options':{..._0x491c42,..._0x4991dc},'args':[_0xc233c7],'tdx':_0x26c2ca});gracefulExit(_0x41ab16);}),agentSyncCmd['command'](a2_0x2a53d9(0x265))[a2_0x2a53d9(0x20e)](a2_0x2a53d9(0x1b0))[a2_0x2a53d9(0x39a)](async(_0xa532d3,_0x105e75)=>{const _0xec2346=a2_0x2a53d9,_0x1b9ac3=new LLMAgentDeleteCommand(),_0xbfd942=program[_0xec2346(0x408)](),_0x448dc8=await createTDXInstance(_0xbfd942),_0x2910e0=await _0x1b9ac3[_0xec2346(0x333)]({'options':{..._0xbfd942,..._0x105e75},'args':[_0xa532d3],'tdx':_0x448dc8});gracefulExit(_0x2910e0);});export{program};export function runCLI(){const _0x4fd7e1=a2_0x2a53d9,_0x4bdbc9=!process['argv'][_0x4fd7e1(0x36d)](0x2)['length'];showBriefHelp=_0x4bdbc9,program[_0x4fd7e1(0x1d9)](process[_0x4fd7e1(0x2ad)]);_0x4bdbc9&&program[_0x4fd7e1(0x304)]();if(process['stderr'][_0x4fd7e1(0x23f)]&&process['argv'][_0x4fd7e1(0x2dc)]>0x2&&!isDevVersion()){const _0x38088c=loadReleaseChannel();checkForUpdate(currentVersion,_0x38088c)[_0x4fd7e1(0x355)](_0xe42f42=>{_0xe42f42&&displayUpdateNotification(_0xe42f42);})[_0x4fd7e1(0x1bf)](()=>{});}}
1
+ const a2_0x47b95f=a2_0x26e5;(function(_0x499af7,_0x5bbf77){const _0x2c1979=a2_0x26e5,_0x5054ab=_0x499af7();while(!![]){try{const _0x3460cf=parseInt(_0x2c1979(0x1e5))/0x1+parseInt(_0x2c1979(0x29f))/0x2*(parseInt(_0x2c1979(0x275))/0x3)+-parseInt(_0x2c1979(0x279))/0x4*(-parseInt(_0x2c1979(0x424))/0x5)+parseInt(_0x2c1979(0x1f1))/0x6*(parseInt(_0x2c1979(0x3a1))/0x7)+-parseInt(_0x2c1979(0x28c))/0x8*(parseInt(_0x2c1979(0x22d))/0x9)+parseInt(_0x2c1979(0x2e8))/0xa*(-parseInt(_0x2c1979(0x27a))/0xb)+-parseInt(_0x2c1979(0x2f8))/0xc*(parseInt(_0x2c1979(0x390))/0xd);if(_0x3460cf===_0x5bbf77)break;else _0x5054ab['push'](_0x5054ab['shift']());}catch(_0x2a3486){_0x5054ab['push'](_0x5054ab['shift']());}}}(a2_0x2e94,0x2df60));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,ChatCreateCommand}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,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}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';function a2_0x26e5(_0x57194c,_0x27b71b){_0x57194c=_0x57194c-0x1aa;const _0x2e9497=a2_0x2e94();let _0x26e580=_0x2e9497[_0x57194c];return _0x26e580;}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{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.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';function a2_0x2e94(){const _0x20d22e=['use\x20[project]','--timezone\x20<tz>','Interactive\x20chat\x20selector','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','tdx','activations\x20<segment_name>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','update\x20<name>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','list','--table','Show\x20campaign\x20details','--temperature\x20<n>','Show\x20schedule\x20execution\x20history','create','agent','--retry-limit\x20<0~32>','--jsonl','--invisible','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','createAsync','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','statusline','Name\x20for\x20the\x20new\x20project\x20(required)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','log','-w,\x20--web','Create\x20a\x20workspace','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','New\x20segment\x20name','Output\x20as\x20JSON','Show\x20segment\x20details\x20(alias\x20for\x20view)','claude-4.5-sonnet','--to\x20<n>','retry\x20<session-id>','delete\x20<args...>','...','--rule-file\x20<file>','logs','campaign','use\x20[resource]\x20[value]','profile','Customer\x20group\x20as\x20JSON\x20string','Database\x20name','LLM\x20project\x20management','us01','join','\x20(resolved\x20to\x20','databases\x20[pattern]','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Delay\x20in\x20seconds\x20before\x20execution','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','AI-native\x20CLI\x20for\x20Treasure\x20Data','--attribute\x20[name]','view\x20[name]','preview\x20[name]','Show\x20email\x20template\x20details','Preview\x20changes\x20without\x20pushing','attempts\x20[project]','Update\x20an\x20existing\x20agent','--name\x20<names>','Resume\x20a\x20paused\x20journey','-n,\x20--name\x20<name>','--add-attributes-file\x20<file>','outputHelp','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Set\x20or\x20show\x20parent\x20segment\x20context','--table\x20<table>','commandDescription','models','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','show\x20[name]','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','profiles','--num\x20<1-10>','Open\x20parent\x20segment\x20in\x20web\x20browser','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Database\x20to\x20use\x20(overrides\x20context)','addHelpText','--limit\x20<number>','slice','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Parent\x20segment\x20description','types','--html\x20<html>','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','[action]','Push\x20without\x20confirmation','delete\x20<name>','\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','help','--catalog\x20<catalog>','sql\x20[segment_name]','--folder\x20<name>','Clear\x20session\x20context','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','stdout','Options:','parent_segment','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--add-behaviors\x20<json>','workflow','--format\x20<format>','Show\x20agent\x20details','Force\x20retry\x20even\x20if\x20not\x20failed','Parent\x20segment\x20management','Move\x20to\x20folder','claude\x20[args...]','Campaign\x20name','init\x20[name]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--reeval','buildTime','Run\x20tests\x20for\x20an\x20LLM\x20agent','--force','stderr','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Directory\x20does\x20not\x20exist:\x20','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','apiKey','setup','show\x20[table]','commands','Arguments:','Add\x20behaviors\x20as\x20JSON\x20string','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','attempt','validate\x20[name]','--include-retried','Show\x20schedule\x20details','94887ypKfSB','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','run\x20[workflow]','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Add\x20behaviors\x20from\x20JSON\x20file','System\x20prompt/instructions\x20(default:\x20empty)','engage','kill','Timezone\x20for\x20cron','llm','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--delay\x20<seconds>','Timezone\x20(e.g.,\x20America/Los_Angeles)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--name\x20<text>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','create\x20<name>','671048PiJPDq','-p,\x20--profile\x20<name>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Maximum\x20recursion\x20depth\x20(default:\x2010)','isTTY','--tsv','Set\x20operation\x20timeout\x20in\x20seconds','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Attempt\x20ID','unset\x20<resource>','Include\x20retried\x20attempts','\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','submit\x20[query]','workflows\x20[project]','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--enriched','set\x20<args...>','api\x20[endpoint]','--prompt\x20<text>','--priority\x20<-2~2>','action','Master\x20table\x20name','fields\x20[name]','Maximum\x20tool\x20iterations\x20(default:\x204)','Cron\x20expression\x20for\x20scheduling','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','delete\x20<agent-name>','Request\x20body\x20as\x20JSON\x20string','--json','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--from\x20<timestamp>','table','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--skip-validation','Plaintext\x20template\x20content','--behaviors\x20<json>','push\x20[target]','agents\x20[pattern]','--master','Pause\x20a\x20campaign','test\x20[path]','tsv','Custom\x20revision\x20name\x20(default:\x20timestamp)','Agent\x20name','Export\x20journey(s)\x20as\x20YAML\x20files','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','preview\x20[file]','journey','clone\x20[source-dir]','tdx\x20','optionDescription','list\x20[project]','--description\x20<text>','Starting\x20offset\x20(default:\x200)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Delete\x20a\x20workspace','description','End\x20time\x20filter\x20(ISO\x208601\x20format)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','view\x20<name-or-path>','List\x20jobs','--type\x20<api_type>','Skip\x20validation\x20of\x20.dig\x20files','allowExcessArguments','log\x20<chat-id>','requiredOption','List\x20agents\x20in\x20current\x20project','hidden','--param\x20<key=value>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','List\x20all\x20available\x20profiles','Show\x20master\x20table\x20sample\x20data','-c,\x20--continue','--output\x20<file>','Clear\x20workflow\x20project\x20context','kill\x20<job-id>','secrets','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','--help','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Get\x20job\x20results','--parent-folder\x20<name>','exit','Duplicate\x20a\x20campaign','segment','--new','List\x20available\x20connector\x20types','set','Read\x20query\x20from\x20file','Show\x20workspace\x20details','New\x20workspace\x20name','grapesjs','Workflow\x20project\x20management','Updated\x20description','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','padWidth','--llm-project\x20<name>','pull\x20[parent_or_file]','Database\x20name\x20(default:\x20information_schema)','Task\x20name\x20for\x20logs\x20action','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','-d,\x20--database\x20<name>','-d,\x20--database\x20<db>','update\x20<segment_name>','Resume\x20a\x20paused\x20campaign','forEach','Delete\x20an\x20email\x20template','List\x20available\x20LLM\x20models','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','history\x20<name>','parent','-y,\x20--yes','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Run\x20a\x20scheduled\x20query\x20immediately','show\x20<folder_ref>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Updated\x20schedule\x20option','--from\x20<n>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--start-at\x20<datetime>','Set\x20a\x20profile\x20configuration\x20value','run','Launch\x20a\x20campaign','0.7','pause\x20<name-or-id>','list\x20[path]','--workspace\x20<name>','5BEUSUR','required','Workspace\x20name','\x20-\x20built\x20','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Agent\x20prompt/instructions','mcp','--stage\x20<name>','\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','--reason\x20<text>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','update\x20<name-or-id>','Resume\x20a\x20conversation\x20(shows\x20selector)','--in\x20<database>','Skip\x20confirmation\x20prompts','-H,\x20--header\x20<header>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','--debug','Preview\x20without\x20creating\x20the\x20project','--revision\x20<revision>','after','opts','-r,\x20--resume','long','--starter-message\x20<text>','templates\x20[pattern]','--from-task\x20<task>','--behaviors-file\x20<file>','--chat-id\x20<id>','Attributes\x20as\x20JSON\x20string','Remove\x20a\x20profile','Skip\x20population\x20counting','hook','--dry-run','Invalid\x20editor\x20type:\x20','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Show\x20journey\x20statistics','Campaign\x20management','-f,\x20--file\x20<path>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Starter\x20message','Override\x20project\x20name','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Change\x20to\x20directory\x20before\x20executing\x20command','_list-commands','subcommandDescription','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Folder\x20description','\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','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--status\x20<status>','use\x20[name]','Setup\x20API\x20key\x20authentication\x20interactively','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','INVALID_ARGUMENT','list\x20[name]','describe','Output\x20folder\x20(default:\x20{project_name}.llm)','-v,\x20--verbose','info\x20[segment_name]','-d,\x20--database\x20<database>','split','Pull\x20child\x20segments\x20to\x20YAML\x20files','desc\x20[segment_name]','--name\x20<new-name>','Unknown\x20action:\x20','usage','Validate\x20journey\x20YAML\x20files\x20locally','Show\x20job\x20details','map','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','summary','chdir','Email\x20sender\x20ID\x20for\x20delivery','--system-prompt\x20<text>','--email-sender-id\x20<id>','[attempt-id]','--params\x20<json>','repeat','push\x20[name]','--editor-type\x20<type>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','template','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','\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','flatMap','Update\x20a\x20workspace','52114VfOvmv','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','get','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--plaintext\x20<text>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','parse','Delete\x20a\x20campaign','18PyfWYx','Kill\x20a\x20job','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Add\x20attributes\x20as\x20JSON\x20string','push\x20[file]','[task-name]','--clear','Read\x20SQL\x20query\x20from\x20file','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Database\x20management\x20commands','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','--session\x20<id>','history\x20[chat-id]','Output\x20directory','Master\x20database\x20name','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--parent-segment\x20<name>','Show\x20connection\x20details\x20by\x20name','Run\x20specific\x20tests\x20(comma-separated)','Save\x20output\x20to\x20file','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','run\x20[name]','Workflow\x20(Digdag)\x20management\x20commands','--description\x20<desc>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','List\x20secret\x20keys\x20for\x20a\x20project','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','push\x20[path]','Create\x20a\x20new\x20LLM\x20project','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','argv','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','gitRevision','fields\x20[parent_name]','-o,\x20--output\x20<file>','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','set\x20<key=value>','auth','Pause\x20a\x20running\x20journey','User\x20management\x20commands','--attributes\x20<json>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','schema\x20<type>','delete\x20<project-name-or-id>','--add-attributes\x20<json>','Run\x20Trino\x20query\x20with\x20streaming\x20results','information_schema','--data\x20<data>','registeredArguments','Workflow\x20parameter\x20(repeatable)','Delete\x20an\x20LLM\x20project','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','72AffciV','Manage\x20workflow\x20project\x20secrets','-f,\x20--force','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','user','Show\x20timeline\x20for\x20specific\x20attempt','Reason\x20for\x20killing\x20the\x20attempt','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','RT\x202.0\x20configuration\x20management','includes','Include\x20retried\x20attempts\x20(for\x20list)','Revision\x20name\x20(default:\x20timestamp)','--customer-group\x20<json>','session','--name\x20<name>','--subject\x20<subject>','Timezone\x20for\x20cron\x20(default:\x20UTC)','--color','-r,\x20--recursive','length','--version','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','create\x20<segment_name>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','filter','then','-u,\x20--use','workspaces\x20[pattern]','isArray','flags','Preview\x20changes\x20without\x20writing\x20files','--cron\x20<expression>','subcommandTerm','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','[options]\x20--\x20[claude-code-args...]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','error','Folder\x20name\x20for\x20organization','Output\x20file\x20path','-C,\x20--directory\x20<path>',',\x20version\x20','Enable\x20verbose\x20logging','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','--engine-version\x20<version>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','option','Make\x20segment\x20invisible\x20(default:\x20visible)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','result\x20<job-id>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','remove\x20<name>','run\x20<name>','Project\x20description','projects\x20[pattern]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Update\x20a\x20scheduled\x20query','jobs','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Show\x20segment\x20schema\x20(column\x20types)','Start\x20a\x20new\x20chat\x20session','Trino\x20catalog\x20(default:\x20td)','show\x20[segment_name]','Customer\x20group\x20from\x20JSON\x20file','--to\x20<timestamp>','launch\x20<name-or-id>','list\x20[pattern]','name','Remove\x20API\x20key\x20from\x20system\x20keychain','5259kUPqyt','show\x20<agent-name>','Behaviors\x20as\x20JSON\x20string','create\x20<parent_name>\x20<folder_name>','1297884GLLedr','137885ePELPo','configureHelp','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Query\x20type:\x20trino\x20or\x20hive','validate\x20[file]','List\x20all\x20data\x20connections','Show\x20only\x20master\x20table\x20validation','--segment\x20<path>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','alias','Add\x20attributes\x20from\x20JSON\x20file','CDP\x20segment\x20management\x20commands','validate\x20[target]','find','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Update\x20an\x20email\x20template','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','165040CIxnMB','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','push','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--trace','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Campaign\x20description','--max-tool-iterations\x20<n>','Open\x20segment\x20in\x20web\x20browser','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','schedule','New\x20template\x20name','-o,\x20--output\x20<folder>','Overwrite\x20local\x20changes\x20without\x20confirmation','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','show\x20<name-or-id>','Include\x20subtasks\x20in\x20tasks\x20output','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','282tQqMCp','Table\x20management\x20commands','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Show\x20authentication\x20status\x20and\x20current\x20context','Updated\x20timezone','use\x20<name>','--tags\x20<tags>','database','--json-columns\x20<cols>','--behavior\x20[name]','Parse\x20and\x20validate\x20without\x20executing','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--site\x20<site>','catch','Job\x20priority\x20(-2\x20to\x202)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','format','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','Pull\x20specific\x20revision\x20(default:\x20latest)','--type\x20<type>','--rule\x20<json>','Create\x20a\x20new\x20campaign','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','directory','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Create\x20a\x20new\x20profile','--default','--schedule-type\x20<type>','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','download\x20<project-name>\x20[output-dir]','Show\x20the\x20most\x20recent\x20chat','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Output\x20as\x20JSON\x20Lines','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','duplicate\x20<name-or-id>','New\x20campaign\x20name','argumentTerm','--schedule-option\x20<value>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','-1d','command','HTML\x20template\x20content','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','attempt:','debug','[DEPRECATED]\x20Segment\x20folder\x20management','LLM\x20agent\x20management','variadic','delete\x20<name-or-id>','upload\x20[project-name-or-dir]','show\x20<job-id>','--agent\x20<ref>','Skip\x20confirmation\x20prompt','desc','Result\x20output\x20destination\x20URL','clone\x20[source]','--no-count-population','Filtering\x20rule\x20as\x20JSON\x20string','--include-stats','--full','tables\x20[pattern]','Email\x20subject\x20template','injectIntoOptions','--time\x20<iso8601>','--yes','argument','logLevel','pull\x20<project>\x20[target-dir]','-X,\x20--method\x20<method>','Filtering\x20rule\x20from\x20JSON\x20file','Preview\x20operation\x20without\x20executing','90XtgZSe','Personalization\x20service\x20management','push\x20[source-dir]','commandUsage','Workspace\x20description','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--name\x20<new_name>','Database\x20to\x20query\x20(default:\x20information_schema)','Behaviors\x20from\x20JSON\x20file','--interval\x20<range>','List\x20journeys\x20in\x20current\x20context','Query\x20engine\x20version','parent-segment','pull\x20[name]','--last','--kind\x20<type>','732OLmnPC','allowUnknownOption','options','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','json','Create\x20a\x20scheduled\x20query','segments\x20[path]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--max-depth\x20<depth>','Workspace\x20name\x20(required)','--result\x20<url>','Output\x20file\x20path\x20(default:\x20<name>.yml)','Data\x20connection\x20management\x20(for\x20activations/exports)','_hidden'];a2_0x2e94=function(){return _0x20d22e;};return a2_0x2e94();}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';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x47b95f(0x212)]['includes'](a2_0x47b95f(0x241))){let versionOutput=a2_0x47b95f(0x3d4)+currentVersion;buildInfo[a2_0x47b95f(0x217)]&&!currentVersion[a2_0x47b95f(0x236)](buildInfo[a2_0x47b95f(0x217)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x47b95f(0x427)+buildInfo[a2_0x47b95f(0x37c)]),console[a2_0x47b95f(0x320)](versionOutput),process[a2_0x47b95f(0x3f7)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x47b95f(0x33d);buildInfo[a2_0x47b95f(0x217)]&&!currentVersion[a2_0x47b95f(0x236)](buildInfo['gitRevision'])?description+=a2_0x47b95f(0x257)+currentVersion+'\x20('+buildInfo[a2_0x47b95f(0x217)]+')':description+=a2_0x47b95f(0x257)+currentVersion;program[a2_0x47b95f(0x273)](a2_0x47b95f(0x30a))['description'](description),program[a2_0x47b95f(0x25c)](a2_0x47b95f(0x256),a2_0x47b95f(0x1b4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3a2),a2_0x47b95f(0x37a))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2ac),a2_0x47b95f(0x35b),a2_0x47b95f(0x334))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x372),a2_0x47b95f(0x22c))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x311),a2_0x47b95f(0x1ea))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3be),a2_0x47b95f(0x36f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x318),a2_0x47b95f(0x3a3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3a7),a2_0x47b95f(0x403))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3ee),a2_0x47b95f(0x206))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x359),a2_0x47b95f(0x2a2))['option'](a2_0x47b95f(0x23e),a2_0x47b95f(0x1ec),![])[a2_0x47b95f(0x25c)]('--no-color',a2_0x47b95f(0x1f9),![])[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1c7),a2_0x47b95f(0x258),![])[a2_0x47b95f(0x25c)](a2_0x47b95f(0x435),a2_0x47b95f(0x20b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x290),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')['option']('--timeout\x20<seconds>',a2_0x47b95f(0x3a8),'30')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x2e7),![])['option']('-y,\x20--yes',a2_0x47b95f(0x432),![])[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1fe),a2_0x47b95f(0x25f))['option'](a2_0x47b95f(0x40a),a2_0x47b95f(0x357))[a2_0x47b95f(0x25c)]('--in\x20<name>',a2_0x47b95f(0x29b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x203),a2_0x47b95f(0x3c2))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x405),a2_0x47b95f(0x3b0)),program[a2_0x47b95f(0x27b)]({'formatHelp':(_0x2ab882,_0x3d28db)=>{const _0xeadc1e=a2_0x47b95f,_0x282fe7=_0x3d28db[_0xeadc1e(0x404)](_0x2ab882,_0x3d28db),_0x4d4e86=0x2,_0x5ef52b=0x2;function _0x211627(_0x219162){const _0x34b25f=_0xeadc1e,_0x552cb2=_0x219162;return!!(_0x552cb2[_0x34b25f(0x305)]||_0x552cb2[_0x34b25f(0x3e8)]);}function _0x42d9ca(_0x12c24b,_0x44ab54){if(_0x44ab54){const _0x3f0bf5=''+_0x12c24b['padEnd'](_0x282fe7+_0x5ef52b)+_0x44ab54;return _0x3f0bf5;}return _0x12c24b;}function _0x280703(_0x1716fd){const _0x81780e=_0xeadc1e;return _0x1716fd[_0x81780e(0x335)]('\x0a')['replace'](/^/gm,'\x20'[_0x81780e(0x1db)](_0x4d4e86));}const _0x1ad5c6=[];_0x1ad5c6['push']('Usage:\x20'+_0x3d28db[_0xeadc1e(0x2eb)](_0x2ab882));const _0x532c7f=_0x3d28db[_0xeadc1e(0x34d)](_0x2ab882);_0x532c7f&&(_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6[_0xeadc1e(0x28e)](_0x532c7f));const _0x3344f6=_0x2ab882['commands']['filter'](_0x331a5c=>!_0x211627(_0x331a5c));if(_0x3344f6[_0xeadc1e(0x240)]>0x0){if(_0x2ab882[_0xeadc1e(0x273)]()===_0xeadc1e(0x30a)){const _0x19fb91=_0x2ab882[_0xeadc1e(0x439)](),_0x45c698=!_0x19fb91['noColor']&&process[_0xeadc1e(0x36c)]['isTTY'],_0x134800=COMMAND_CATEGORIES,_0x952385=(_0xd5df99,_0x437fdf)=>_0x45c698?_0x437fdf(_0xd5df99):_0xd5df99,_0x961698=new Map();_0x3344f6[_0xeadc1e(0x40e)](_0x32e4f0=>{const _0x2c8558=_0xeadc1e;_0x961698[_0x2c8558(0x3fc)](_0x32e4f0[_0x2c8558(0x273)](),_0x32e4f0);}),_0x134800[_0xeadc1e(0x40e)](_0x148c71=>{const _0x218a7d=_0xeadc1e,_0x2cf049=_0x148c71[_0x218a7d(0x388)][_0x218a7d(0x1e3)](_0x2809ff=>_0x961698[_0x218a7d(0x1e7)](_0x2809ff)??[]);if(_0x2cf049[_0x218a7d(0x240)]>0x0){_0x1ad5c6[_0x218a7d(0x28e)](''),_0x1ad5c6[_0x218a7d(0x28e)](_0x952385(_0x148c71['name']+':',_0x148c71['colorFn']));const _0x2fba21=_0x2cf049[_0x218a7d(0x1d2)](_0x8947b1=>{const _0x1ca7cb=_0x218a7d,_0x5729d0=_0x3d28db[_0x1ca7cb(0x24f)](_0x8947b1),_0xadb236=_0x3d28db[_0x1ca7cb(0x1b6)](_0x8947b1);return _0x42d9ca(_0x5729d0,_0xadb236);});_0x1ad5c6['push'](_0x280703(_0x2fba21));}}),_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6['push'](_0xeadc1e(0x42e));}else{const _0x2165e0=_0x3344f6[_0xeadc1e(0x1d2)](_0x2888ac=>{const _0x45be06=_0xeadc1e,_0x47b0c9=_0x3d28db['subcommandTerm'](_0x2888ac),_0x107c69=_0x3d28db[_0x45be06(0x1b6)](_0x2888ac);return _0x42d9ca(_0x47b0c9,_0x107c69);});_0x1ad5c6['push'](''),_0x1ad5c6[_0xeadc1e(0x28e)]('Commands:'),_0x1ad5c6['push'](_0x280703(_0x2165e0));}}if(showBriefHelp&&_0x2ab882[_0xeadc1e(0x273)]()===_0xeadc1e(0x30a))_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6[_0xeadc1e(0x28e)](_0xeadc1e(0x1ac));else{const _0x3c1d1f=_0x2ab882[_0xeadc1e(0x2fa)][_0xeadc1e(0x247)](_0x26c5e9=>!_0x211627(_0x26c5e9));if(_0x3c1d1f[_0xeadc1e(0x240)]>0x0){const _0x53747c=_0x3c1d1f[_0xeadc1e(0x1d2)](_0x3509aa=>{const _0x4327d3=_0xeadc1e,_0x37cbb2=_0x3d28db['optionTerm'](_0x3509aa),_0x34ea1b=_0x3d28db[_0x4327d3(0x3d5)](_0x3509aa);return _0x42d9ca(_0x37cbb2,_0x34ea1b);});_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6[_0xeadc1e(0x28e)](_0xeadc1e(0x36d)),_0x1ad5c6[_0xeadc1e(0x28e)](_0x280703(_0x53747c));}}const _0x6e77be=(_0x2ab882['registeredArguments']||[])[_0xeadc1e(0x247)](_0x3b89e5=>!_0x211627(_0x3b89e5));if(_0x6e77be[_0xeadc1e(0x240)]>0x0){const _0x4b3354=_0x6e77be[_0xeadc1e(0x1d2)](_0x265554=>{const _0x31095d=_0xeadc1e,_0x464939=_0x3d28db[_0x31095d(0x2c5)](_0x265554),_0x1ee732=_0x3d28db['argumentDescription'](_0x265554);return _0x42d9ca(_0x464939,_0x1ee732);});_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6[_0xeadc1e(0x28e)](_0xeadc1e(0x389)),_0x1ad5c6[_0xeadc1e(0x28e)](_0x280703(_0x4b3354));}return _0x1ad5c6[_0xeadc1e(0x335)]('\x0a')+'\x0a';},'subcommandTerm':_0x29e031=>{const _0x23af58=a2_0x47b95f,_0x47f358=(_0x29e031[_0x23af58(0x227)]||[])[_0x23af58(0x1d2)](_0x25b0a4=>_0x25b0a4[_0x23af58(0x425)]?'<'+_0x25b0a4['name']()+'>':'['+_0x25b0a4[_0x23af58(0x273)]()+']')[_0x23af58(0x335)]('\x20'),_0x1914c9=_0x29e031['aliases'](),_0x45434b=_0x1914c9['length']>0x0?_0x29e031[_0x23af58(0x273)]()+',\x20'+_0x1914c9['join'](',\x20'):_0x29e031[_0x23af58(0x273)]();return _0x47f358?_0x45434b+'\x20'+_0x47f358:_0x45434b;}}),program[a2_0x47b95f(0x444)]('preAction',_0x364139=>{const _0x49a7f5=a2_0x47b95f,_0x2a74ca=_0x364139['opts']();if(_0x2a74ca[_0x49a7f5(0x2b8)]){const _0x1b2c11=resolve(_0x2a74ca[_0x49a7f5(0x2b8)]),_0x14f7ec=_0x1b2c11!==_0x2a74ca['directory']?_0x49a7f5(0x336)+_0x1b2c11+')':'';if(!existsSync(_0x1b2c11))throw new SDKError(ErrorCode[_0x49a7f5(0x1c3)],_0x49a7f5(0x381)+_0x2a74ca[_0x49a7f5(0x2b8)]+_0x14f7ec,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x4f773e=statSync(_0x1b2c11);if(!_0x4f773e['isDirectory']())throw new SDKError(ErrorCode[_0x49a7f5(0x1c3)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x2a74ca['directory']+_0x14f7ec,undefined,{'helpText':_0x49a7f5(0x382)});process[_0x49a7f5(0x1d5)](_0x1b2c11);}if(!_0x2a74ca[_0x49a7f5(0x2b0)]){if(_0x2a74ca['table'])_0x2a74ca[_0x49a7f5(0x2b0)]=_0x49a7f5(0x3c1);else{if(_0x2a74ca[_0x49a7f5(0x2fc)])_0x2a74ca[_0x49a7f5(0x2b0)]=_0x49a7f5(0x2fc);else{if(_0x2a74ca['jsonl'])_0x2a74ca[_0x49a7f5(0x2b0)]='jsonl';else _0x2a74ca['tsv']&&(_0x2a74ca[_0x49a7f5(0x2b0)]=_0x49a7f5(0x3cb));}}}_0x2a74ca['in']&&!_0x2a74ca['database']&&(_0x2a74ca[_0x49a7f5(0x2a7)]=_0x2a74ca['in']);if(_0x2a74ca['trace'])_0x2a74ca[_0x49a7f5(0x2e3)]=LogLevel['TRACE'];else{if(_0x2a74ca[_0x49a7f5(0x2cd)])_0x2a74ca[_0x49a7f5(0x2e3)]=LogLevel['DEBUG'];else _0x2a74ca[_0x49a7f5(0x2e3)]===undefined&&(_0x2a74ca[_0x49a7f5(0x2e3)]=LogLevel['INFO']);}});async function createTDXInstance(_0x5b892a){const _0xe35462=a2_0x47b95f,_0x4cc56c=await GlobalContext[_0xe35462(0x31b)](_0x5b892a);return _0x4cc56c[_0xe35462(0x2df)](_0x5b892a),TDX[_0xe35462(0x315)]({'site':_0x4cc56c['site'],'apiKey':_0x4cc56c[_0xe35462(0x385)],'logLevel':_0x4cc56c[_0xe35462(0x2e3)],'profile':_0x4cc56c[_0xe35462(0x330)]});}const databaseCmd=program['command'](a2_0x47b95f(0x2a7))[a2_0x47b95f(0x284)]('db')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1fc)),databaseListAction=async(_0x12a05b,_0x256fff)=>{const _0x23370a=a2_0x47b95f,_0x309ae1=new DatabasesCommand(),_0x354ea8=program[_0x23370a(0x439)](),_0x4a0693=await createTDXInstance(_0x354ea8),_0x19f41d=await _0x309ae1[_0x23370a(0x41e)]({'options':{..._0x354ea8,..._0x256fff},'args':_0x12a05b?[_0x12a05b]:[],'tdx':_0x4a0693});gracefulExit(_0x19f41d);};databaseCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x369))[a2_0x47b95f(0x3b6)](databaseListAction),program['command'](a2_0x47b95f(0x337),{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x47b95f(0x3b6)](databaseListAction),program[a2_0x47b95f(0x2c9)]('chat\x20[message...]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x28b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2d4),a2_0x47b95f(0x39f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3fa),a2_0x47b95f(0x26c))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x440),a2_0x47b95f(0x36b))[a2_0x47b95f(0x25c)]('--stream',a2_0x47b95f(0x2b2))[a2_0x47b95f(0x3b6)](async(_0x3fa53e,_0x1e73cc)=>{const _0xdc6da2=a2_0x47b95f,_0x28d706=program[_0xdc6da2(0x439)](),_0x490da5=await createTDXInstance(_0x28d706);if(_0x3fa53e[0x0]==='create'){const _0x13978f=new ChatCreateCommand();gracefulExit(await _0x13978f[_0xdc6da2(0x41e)]({'options':{..._0x28d706,..._0x1e73cc},'args':_0x3fa53e[_0xdc6da2(0x35a)](0x1),'tdx':_0x490da5}));return;}const _0x31756a=new ChatCommand(),_0x57552e=await _0x31756a[_0xdc6da2(0x41e)]({'options':{..._0x28d706,..._0x1e73cc},'args':_0x3fa53e,'tdx':_0x490da5});gracefulExit(_0x57552e);});const apiCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3b3))[a2_0x47b95f(0x1d4)](a2_0x47b95f(0x215))['addHelpText'](a2_0x47b95f(0x438),'\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')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2e5),a2_0x47b95f(0x220),'GET')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x226),a2_0x47b95f(0x3bd))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1af),'Read\x20request\x20body\x20from\x20file')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x433),a2_0x47b95f(0x3f4),(_0x584dad,_0x1e0eb2)=>{return _0x1e0eb2?[..._0x1e0eb2,_0x584dad]:[_0x584dad];})[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3e2),a2_0x47b95f(0x1c1),'td')[a2_0x47b95f(0x3b6)](async(_0x20cc21,_0x3f3233)=>{const _0x388d33=a2_0x47b95f;if(!_0x20cc21){apiCmd[_0x388d33(0x364)]();return;}const _0x4765bb=new ApiCommand(),_0x298e17=program[_0x388d33(0x439)](),_0x146a1b=await createTDXInstance(_0x298e17),_0x2e7705=await _0x4765bb[_0x388d33(0x41e)]({'options':{..._0x298e17,..._0x3f3233},'args':[_0x20cc21],'tdx':_0x146a1b});gracefulExit(_0x2e7705);});program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x42a))['description'](a2_0x47b95f(0x21a))[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),a2_0x47b95f(0x42c))[a2_0x47b95f(0x3b6)](async _0x568016=>{const _0x1eeff9=a2_0x47b95f,_0x3c4181=new MCPCommand(),_0x1d7aba=program[_0x1eeff9(0x439)](),_0x40f1d2=await createTDXInstance(_0x1d7aba),_0x4c6327=await _0x3c4181[_0x1eeff9(0x41e)]({'options':{..._0x1d7aba,..._0x568016},'args':[],'tdx':_0x40f1d2});gracefulExit(_0x4c6327);});const tableCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3c1))['description'](a2_0x47b95f(0x2a0)),tableListAction=async(_0x5860ca,_0x5d047a)=>{const _0x47769a=a2_0x47b95f,_0x1633f9=new TablesCommand(),_0x3e03b4=program[_0x47769a(0x439)](),_0x561cd0=await createTDXInstance(_0x3e03b4);_0x5d047a['in']&&(_0x5d047a[_0x47769a(0x2a7)]=_0x5d047a['in']);const _0x48c2c9=await _0x1633f9[_0x47769a(0x41e)]({'options':{..._0x3e03b4,..._0x5d047a},'args':_0x5860ca?[_0x5860ca]:[],'tdx':_0x561cd0});gracefulExit(_0x48c2c9);};tableCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x39d))[a2_0x47b95f(0x25c)]('-d,\x20--database\x20<database>',a2_0x47b95f(0x252))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x431),a2_0x47b95f(0x29b))['action'](tableListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2dd),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1eb))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1c9),a2_0x47b95f(0x252))[a2_0x47b95f(0x25c)]('--in\x20<database>',a2_0x47b95f(0x29b))['action'](tableListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x387))['description']('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1c9),a2_0x47b95f(0x295))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x431),a2_0x47b95f(0x29b))['action'](async(_0x16ba82,_0x581a99)=>{const _0x57483b=a2_0x47b95f,_0x391eed=new ShowCommand(),_0x1a80cd=program['opts'](),_0x2be6a1=await createTDXInstance(_0x1a80cd);_0x581a99['in']&&(_0x581a99[_0x57483b(0x2a7)]=_0x581a99['in']);const _0x437272=await _0x391eed[_0x57483b(0x41e)]({'options':{..._0x1a80cd,..._0x581a99},'args':_0x16ba82?[_0x16ba82]:[],'tdx':_0x2be6a1});gracefulExit(_0x437272);}),program[a2_0x47b95f(0x2c9)]('describe\x20[table]')[a2_0x47b95f(0x284)](a2_0x47b95f(0x2d6))[a2_0x47b95f(0x3db)]('Describe\x20table\x20schema')[a2_0x47b95f(0x25c)]('-d,\x20--database\x20<database>',a2_0x47b95f(0x295))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x431),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x18934f,_0x2747a0)=>{const _0x32d656=a2_0x47b95f,_0x1cb881=new DescribeCommand(),_0x47d67e=program[_0x32d656(0x439)](),_0x505a8f=await createTDXInstance(_0x47d67e);_0x2747a0['in']&&(_0x2747a0['database']=_0x2747a0['in']);const _0x15672e=await _0x1cb881['run']({'options':{..._0x47d67e,..._0x2747a0},'args':_0x18934f?[_0x18934f]:[],'tdx':_0x505a8f});gracefulExit(_0x15672e);}),program[a2_0x47b95f(0x2c9)]('query\x20[sql]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x224))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1c9),a2_0x47b95f(0x2ef))[a2_0x47b95f(0x25c)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x365),a2_0x47b95f(0x26d))[a2_0x47b95f(0x25c)]('-f,\x20--file\x20<path>',a2_0x47b95f(0x1f8))[a2_0x47b95f(0x25c)]('--limit\x20<rows>',a2_0x47b95f(0x393),'40')[a2_0x47b95f(0x3b6)](async(_0x59e5ca,_0x32c9cd)=>{const _0x390fb0=a2_0x47b95f,_0x8fe72b=new QueryCommand(),_0x179eb8=program[_0x390fb0(0x439)](),_0x2b5da3=await createTDXInstance(_0x179eb8);_0x32c9cd['in']&&(_0x32c9cd['database']=_0x32c9cd['in']);const _0x1e0ccf=await _0x8fe72b[_0x390fb0(0x41e)]({'options':{..._0x179eb8,..._0x32c9cd},'args':_0x59e5ca?[_0x59e5ca]:[],'tdx':_0x2b5da3});gracefulExit(_0x1e0ccf);});const segmentCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3f9))[a2_0x47b95f(0x284)]('sg')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x286)),segmentListAction=async(_0x2478b2,_0x35280b)=>{const _0x23dcd9=a2_0x47b95f,_0x2bef39=new SegmentsCommand(),_0x49633e=program[_0x23dcd9(0x439)](),_0x45deea=await createTDXInstance(_0x49633e),_0x9b0efe=await _0x2bef39[_0x23dcd9(0x41e)]({'options':{..._0x49633e,..._0x35280b},'args':_0x2478b2?[_0x2478b2]:[],'tdx':_0x45deea});gracefulExit(_0x9b0efe);};segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x422))[a2_0x47b95f(0x3db)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x23f),a2_0x47b95f(0x216))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x300),a2_0x47b95f(0x3a5),'10')[a2_0x47b95f(0x3b6)](segmentListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2fe),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x351))['option'](a2_0x47b95f(0x23f),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x300),a2_0x47b95f(0x3a5),'10')[a2_0x47b95f(0x3b6)](segmentListAction),segmentCmd[a2_0x47b95f(0x2c9)]('use\x20<path>',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x31a))[a2_0x47b95f(0x3b6)](async(_0x2cae3e,_0xac77f7)=>{const _0x3d9b0e=a2_0x47b95f,_0x3ff85c=new SegmentUseCommand(),_0x253df7=program[_0x3d9b0e(0x439)](),_0x3ab634=await createTDXInstance(_0x253df7),_0x101cfd=await _0x3ff85c[_0x3d9b0e(0x41e)]({'options':{..._0x253df7,..._0xac77f7},'args':[_0x2cae3e],'tdx':_0x3ab634});gracefulExit(_0x101cfd);});const segmentViewAction=async(_0x5d8233,_0x3d174e)=>{const _0x2a1687=a2_0x47b95f,_0x35952c=new SegmentViewCommand(),_0x4c809d=program[_0x2a1687(0x439)](),_0x82f160=await createTDXInstance(_0x4c809d),_0x2e7bc7=await _0x35952c[_0x2a1687(0x41e)]({'options':{..._0x4c809d,..._0x3d174e},'args':_0x5d8233?[_0x5d8233]:[],'tdx':_0x82f160});gracefulExit(_0x2e7bc7);};segmentCmd[a2_0x47b95f(0x2c9)]('view\x20[segment_name]')[a2_0x47b95f(0x3db)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x321),a2_0x47b95f(0x294))[a2_0x47b95f(0x3b6)](segmentViewAction),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1c8),{'hidden':!![]})[a2_0x47b95f(0x284)](a2_0x47b95f(0x1c5))[a2_0x47b95f(0x25c)]('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x326))['action'](segmentViewAction),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1cc))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x26b))[a2_0x47b95f(0x3b6)](async(_0x22024c,_0x51f86a)=>{const _0x25c960=a2_0x47b95f,_0x5f11b7=new SegmentDescCommand(),_0x57998f=program[_0x25c960(0x439)](),_0x209f23=await createTDXInstance(_0x57998f),_0x3aef32=await _0x5f11b7[_0x25c960(0x41e)]({'options':{..._0x57998f,..._0x51f86a},'args':_0x22024c?[_0x22024c]:[],'tdx':_0x209f23});gracefulExit(_0x3aef32);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x26e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x267))[a2_0x47b95f(0x3b6)](async(_0x2aa70d,_0x2c8c5f)=>{const _0x201639=a2_0x47b95f,_0x9ebfa9=new SegmentShowCommand(),_0x13d8b1=program['opts'](),_0x4367bb=await createTDXInstance(_0x13d8b1),_0x51257f=await _0x9ebfa9[_0x201639(0x41e)]({'options':{..._0x13d8b1,..._0x2c8c5f},'args':_0x2aa70d?[_0x2aa70d]:[],'tdx':_0x4367bb});gracefulExit(_0x51257f);}),segmentCmd['command']('folders\x20<parent_name>',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x356))['action'](async(_0x15d090,_0x16a644)=>{const _0x2d77c8=a2_0x47b95f,_0x3de060=new SegmentFolderListCommand(),_0x1a0909=program[_0x2d77c8(0x439)](),_0x58f94d=await createTDXInstance(_0x1a0909),_0x5a93f3=await _0x3de060['run']({'options':{..._0x1a0909,..._0x16a644},'args':[_0x15d090],'tdx':_0x58f94d});gracefulExit(_0x5a93f3);});const folderCmd=segmentCmd['command']('folder',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2ce));folderCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x417))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x259))[a2_0x47b95f(0x3b6)](async(_0x571848,_0xe6ab22)=>{const _0x3b538a=a2_0x47b95f,_0x1132d3=new SegmentFolderShowCommand(),_0x25000c=program['opts'](),_0x2368eb=await createTDXInstance(_0x25000c),_0x35730a=await _0x1132d3[_0x3b538a(0x41e)]({'options':{..._0x25000c,..._0xe6ab22},'args':[_0x571848],'tdx':_0x2368eb});gracefulExit(_0x35730a);}),segmentCmd['command'](a2_0x47b95f(0x366))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1e6))[a2_0x47b95f(0x3b6)](async(_0x19cafb,_0x3eb234)=>{const _0x3f3ec9=a2_0x47b95f,_0x2db60d=new SegmentSQLCommand(),_0x30935d=program[_0x3f3ec9(0x439)](),_0x580ffd=await createTDXInstance(_0x30935d),_0x540598=await _0x2db60d[_0x3f3ec9(0x41e)]({'options':{..._0x30935d,..._0x3eb234},'args':_0x19cafb?[_0x19cafb]:[],'tdx':_0x580ffd});gracefulExit(_0x540598);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x218))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3df))[a2_0x47b95f(0x3b6)](async(_0x555876,_0x448ade)=>{const _0x339d13=a2_0x47b95f,_0x4ab0be=new SegmentFieldsCommand(),_0x19b2c4=program[_0x339d13(0x439)](),_0x4c1887=await createTDXInstance(_0x19b2c4),_0x217583=await _0x4ab0be[_0x339d13(0x41e)]({'options':{..._0x19b2c4,..._0x448ade},'args':_0x555876?[_0x555876]:[],'tdx':_0x4c1887});gracefulExit(_0x217583);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x406))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1cb))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x432))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x3cf))['action'](async(_0x36845b,_0x53ceef)=>{const _0x3168a5=a2_0x47b95f,_0x108d9e=new SegmentPullCommand(),_0x13cc8e=program[_0x3168a5(0x439)](),_0x14399a=await createTDXInstance(_0x13cc8e),_0x4dc036=await _0x108d9e[_0x3168a5(0x41e)]({'options':{..._0x13cc8e,..._0x53ceef},'args':_0x36845b?[_0x36845b]:[],'tdx':_0x14399a});gracefulExit(_0x4dc036);}),segmentCmd[a2_0x47b95f(0x2c9)]('push\x20[parent_or_file]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x22a))['option'](a2_0x47b95f(0x414),a2_0x47b95f(0x432))['option']('--dry-run',a2_0x47b95f(0x3cf))[a2_0x47b95f(0x25c)]('--delete','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x47b95f(0x3b6)](async(_0x5a4f27,_0x4e9186)=>{const _0x445f43=a2_0x47b95f,_0x519657=new SegmentPushCommand(),_0xdc7222=program[_0x445f43(0x439)](),_0x503bd2=await createTDXInstance(_0xdc7222),_0x63578=await _0x519657[_0x445f43(0x41e)]({'options':{..._0xdc7222,..._0x4e9186},'args':_0x5a4f27?[_0x5a4f27]:[],'tdx':_0x503bd2});gracefulExit(_0x63578);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x287))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3dd))[a2_0x47b95f(0x3b6)](async(_0xc7a890,_0x9e4104)=>{const _0x5401c8=a2_0x47b95f,_0x52c744=new SegmentValidateCommand(),_0x1d1b54=program[_0x5401c8(0x439)](),_0xe63b09=await createTDXInstance(_0x1d1b54),_0x304fe0=await _0x52c744[_0x5401c8(0x41e)]({'options':{..._0x1d1b54,..._0x9e4104},'args':_0xc7a890?[_0xc7a890]:[],'tdx':_0xe63b09});gracefulExit(_0x304fe0);}),segmentCmd['command'](a2_0x47b95f(0x244),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3a9))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),'Segment\x20description')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2b5),a2_0x47b95f(0x2da))['option'](a2_0x47b95f(0x32c),a2_0x47b95f(0x2e6))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x367),a2_0x47b95f(0x254))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f7),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x319),a2_0x47b95f(0x25d))['option'](a2_0x47b95f(0x2d9),a2_0x47b95f(0x443))[a2_0x47b95f(0x3b6)](async(_0x3df68c,_0x2577a6)=>{const _0x3faf49=a2_0x47b95f,_0x49b98d=new SegmentCreateCommand(),_0x56d9ae=program[_0x3faf49(0x439)](),_0x211ee1=await createTDXInstance(_0x56d9ae),_0x3de03f=await _0x49b98d[_0x3faf49(0x41e)]({'options':{..._0x56d9ae,..._0x2577a6},'args':[_0x3df68c],'tdx':_0x211ee1});gracefulExit(_0x3de03f);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x40c),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x234))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2ee),a2_0x47b95f(0x324))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),'Updated\x20description')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2b5),a2_0x47b95f(0x2c0))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x32c),a2_0x47b95f(0x3ea))[a2_0x47b95f(0x25c)]('--folder\x20<name>',a2_0x47b95f(0x376))['option'](a2_0x47b95f(0x2f7),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x47b95f(0x3b6)](async(_0x1fe197,_0x934300)=>{const _0x4215f0=a2_0x47b95f,_0x8c4e01=new SegmentUpdateCommand(),_0x2ee978=program[_0x4215f0(0x439)](),_0x45415b=await createTDXInstance(_0x2ee978),_0x424e5c=await _0x8c4e01[_0x4215f0(0x41e)]({'options':{..._0x2ee978,..._0x934300},'args':[_0x1fe197],'tdx':_0x45415b});gracefulExit(_0x424e5c);});const parentCmd=segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x413),{'hidden':!![]})['description'](a2_0x47b95f(0x1b9)),parentListAction=async(_0x5c7af4,_0x31ddc5)=>{const _0x5e5ded=a2_0x47b95f,_0x517b81=new ParentSegmentListCommand(),_0x4e5c8d=program[_0x5e5ded(0x439)](),_0x945436=await createTDXInstance(_0x4e5c8d),_0x334dba=await _0x517b81[_0x5e5ded(0x41e)]({'options':{..._0x4e5c8d,..._0x31ddc5},'args':_0x5c7af4?[_0x5c7af4]:[],'tdx':_0x945436});gracefulExit(_0x334dba);};parentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x25e))[a2_0x47b95f(0x3b6)](parentListAction),segmentCmd[a2_0x47b95f(0x2c9)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x339))[a2_0x47b95f(0x3b6)](parentListAction),parentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2f5))[a2_0x47b95f(0x3db)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x219),a2_0x47b95f(0x303))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x5ed956,_0x101715)=>{const _0x389c12=a2_0x47b95f,_0x3283a8=new ParentSegmentPullCommand(),_0x58ceca=program['opts'](),_0x5db850=await createTDXInstance(_0x58ceca),_0x372a54=await _0x3283a8[_0x389c12(0x41e)]({'options':{..._0x58ceca,..._0x101715},'args':_0x5ed956?[_0x5ed956]:[],'tdx':_0x5db850});gracefulExit(_0x372a54);}),parentCmd['command'](a2_0x47b95f(0x1f5))[a2_0x47b95f(0x3db)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x8aa6dc,_0x53b2b7)=>{const _0x1d4f83=a2_0x47b95f,_0x5336a7=new ParentSegmentPushCommand(),_0x55cba0=program[_0x1d4f83(0x439)](),_0x5adb2b=await createTDXInstance(_0x55cba0),_0x558bb6=await _0x5336a7['run']({'options':{..._0x55cba0,..._0x53b2b7},'args':_0x8aa6dc?[_0x8aa6dc]:[],'tdx':_0x5adb2b});gracefulExit(_0x558bb6);}),parentCmd['command'](a2_0x47b95f(0x27e))['description'](a2_0x47b95f(0x2b7))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c8),'Show\x20only\x20master\x20table\x20validation')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x33e),a2_0x47b95f(0x3a4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2a9),a2_0x47b95f(0x2ed))['option']('--enriched',a2_0x47b95f(0x2cb))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f1),a2_0x47b95f(0x34f),'-1d')[a2_0x47b95f(0x3b6)](async(_0x27780c,_0x7b4506)=>{const _0x5ac614=a2_0x47b95f,_0x33f307=new ParentSegmentValidateCommand(),_0x450eb4=program[_0x5ac614(0x439)](),_0x11debb=await createTDXInstance(_0x450eb4),_0x2db1e1=await _0x33f307['run']({'options':{..._0x450eb4,..._0x7b4506},'args':_0x27780c?[_0x27780c]:[],'tdx':_0x11debb});gracefulExit(_0x2db1e1);}),parentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3d1))['description'](a2_0x47b95f(0x34a))[a2_0x47b95f(0x25c)]('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x33e),a2_0x47b95f(0x1b8))['option'](a2_0x47b95f(0x2a9),a2_0x47b95f(0x3d0))[a2_0x47b95f(0x25c)]('--enriched',a2_0x47b95f(0x1e1))['option'](a2_0x47b95f(0x2f1),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x47b95f(0x3b6)](async(_0x196bfa,_0x5804ce)=>{const _0x363eed=a2_0x47b95f,_0x20a671=new ParentSegmentPreviewCommand(),_0x4bfd22=program[_0x363eed(0x439)](),_0x5268b4=await createTDXInstance(_0x4bfd22),_0x11c412=await _0x20a671[_0x363eed(0x41e)]({'options':{..._0x4bfd22,..._0x5804ce},'args':_0x196bfa?[_0x196bfa]:[],'tdx':_0x5268b4});gracefulExit(_0x11c412);}),parentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x208))['description'](a2_0x47b95f(0x214))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['action'](async(_0x338f5e,_0x62c8c8)=>{const _0xfd7079=a2_0x47b95f,_0x3f69ea=new ParentSegmentRunCommand(),_0x192107=program[_0xfd7079(0x439)](),_0xbbe058=await createTDXInstance(_0x192107),_0x4bba00=await _0x3f69ea['run']({'options':{..._0x192107,..._0x62c8c8},'args':_0x338f5e?[_0x338f5e]:[],'tdx':_0xbbe058});gracefulExit(_0x4bba00);});const parentSegmentCmd=program['command'](a2_0x47b95f(0x2f4))[a2_0x47b95f(0x284)]('ps')['description'](a2_0x47b95f(0x375));parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x25e))['action'](parentListAction),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2f5))[a2_0x47b95f(0x3db)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('-o,\x20--output\x20<file>','Output\x20file\x20path')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['option'](a2_0x47b95f(0x249),a2_0x47b95f(0x415))[a2_0x47b95f(0x3b6)](async(_0x5f0fc9,_0x27de08)=>{const _0x105975=a2_0x47b95f,_0x2cdc39=new ParentSegmentPullCommand(),_0x5d4adc=program[_0x105975(0x439)](),_0x37996f=await createTDXInstance(_0x5d4adc),_0x22cfec=await _0x2cdc39['run']({'options':{..._0x5d4adc,..._0x27de08},'args':_0x5f0fc9?[_0x5f0fc9]:[],'tdx':_0x37996f});gracefulExit(_0x22cfec);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1dc))['description'](a2_0x47b95f(0x289))['option'](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x9e822a,_0x38e9c3)=>{const _0x2d86d8=a2_0x47b95f,_0x4503e8=new ParentSegmentPushCommand(),_0x5c802b=program[_0x2d86d8(0x439)](),_0x508a37=await createTDXInstance(_0x5c802b),_0x12b1dc=await _0x4503e8['run']({'options':{..._0x5c802b,..._0x38e9c3},'args':_0x9e822a?[_0x9e822a]:[],'tdx':_0x508a37});gracefulExit(_0x12b1dc);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x38d))[a2_0x47b95f(0x3db)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c8),a2_0x47b95f(0x280))['option'](a2_0x47b95f(0x33e),a2_0x47b95f(0x3a4))[a2_0x47b95f(0x25c)]('--behavior\x20[name]',a2_0x47b95f(0x2ed))['option'](a2_0x47b95f(0x3b1),a2_0x47b95f(0x2cb))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f1),a2_0x47b95f(0x34f),'-1d')[a2_0x47b95f(0x3b6)](async(_0x2fa84b,_0x4a4f5)=>{const _0x532e42=a2_0x47b95f,_0x3460b5=new ParentSegmentValidateCommand(),_0x14d4ce=program[_0x532e42(0x439)](),_0x47265a=await createTDXInstance(_0x14d4ce),_0x4c2d4e=await _0x3460b5['run']({'options':{..._0x14d4ce,..._0x4a4f5},'args':_0x2fa84b?[_0x2fa84b]:[],'tdx':_0x47265a});gracefulExit(_0x4c2d4e);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x340))['description'](a2_0x47b95f(0x34a))[a2_0x47b95f(0x25c)]('--master',a2_0x47b95f(0x3ec))['option'](a2_0x47b95f(0x33e),a2_0x47b95f(0x1b8))[a2_0x47b95f(0x25c)]('--behavior\x20[name]',a2_0x47b95f(0x3d0))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3b1),a2_0x47b95f(0x1e1))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f1),a2_0x47b95f(0x34f),a2_0x47b95f(0x2c8))['action'](async(_0x443e6d,_0x1e1c74)=>{const _0x40e382=new ParentSegmentPreviewCommand(),_0x1e2554=program['opts'](),_0x36e8ce=await createTDXInstance(_0x1e2554),_0x4fd145=await _0x40e382['run']({'options':{..._0x1e2554,..._0x1e1c74},'args':_0x443e6d?[_0x443e6d]:[],'tdx':_0x36e8ce});gracefulExit(_0x4fd145);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x208))['description'](a2_0x47b95f(0x214))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['action'](async(_0x4991ac,_0x1ef68b)=>{const _0x52f06e=a2_0x47b95f,_0x4bef0d=new ParentSegmentRunCommand(),_0x1e94c5=program['opts'](),_0x1ccb96=await createTDXInstance(_0x1e94c5),_0x1ef130=await _0x4bef0d[_0x52f06e(0x41e)]({'options':{..._0x1e94c5,..._0x1ef68b},'args':_0x4991ac?[_0x4991ac]:[],'tdx':_0x1ccb96});gracefulExit(_0x1ef130);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3b8))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x47b95f(0x3be),'Output\x20as\x20JSON')['option'](a2_0x47b95f(0x318),a2_0x47b95f(0x2c1))['action'](async(_0x2fe1ae,_0x503e15)=>{const _0x3d9f8e=a2_0x47b95f,_0x555dad=new ParentSegmentFieldsCommand(),_0x374dc6=program[_0x3d9f8e(0x439)](),_0x17fc1a=await createTDXInstance(_0x374dc6),_0x365d64=await _0x555dad[_0x3d9f8e(0x41e)]({'options':{..._0x374dc6,..._0x503e15},'args':_0x2fe1ae?[_0x2fe1ae]:[],'tdx':_0x17fc1a});gracefulExit(_0x365d64);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x33f))[a2_0x47b95f(0x3db)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x321),a2_0x47b95f(0x355))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3be),a2_0x47b95f(0x325))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x318),a2_0x47b95f(0x2c1))[a2_0x47b95f(0x3b6)](async(_0x5da242,_0x5366e5)=>{const _0x14579b=a2_0x47b95f,_0x55a68a=new ParentSegmentViewCommand(),_0x31b18a=program[_0x14579b(0x439)](),_0xf79f1c=await createTDXInstance(_0x31b18a),_0xb5dd9b=await _0x55a68a[_0x14579b(0x41e)]({'options':{..._0x31b18a,..._0x5366e5},'args':_0x5da242?[_0x5da242]:[],'tdx':_0xf79f1c});gracefulExit(_0xb5dd9b);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x202))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x219),a2_0x47b95f(0x255))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3be),'Output\x20as\x20JSON')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x318),'Output\x20as\x20JSON\x20Lines')[a2_0x47b95f(0x3b6)](async(_0x2d107a,_0x313750)=>{const _0xe4a31b=a2_0x47b95f,_0xddd264=new ParentSegmentDescCommand(),_0x26ef60=program[_0xe4a31b(0x439)](),_0x232e7f=await createTDXInstance(_0x26ef60),_0x4f403a=await _0xddd264[_0xe4a31b(0x41e)]({'options':{..._0x26ef60,..._0x313750},'args':_0x2d107a?[_0x2d107a]:[],'tdx':_0x232e7f});gracefulExit(_0x4f403a);}),parentSegmentCmd[a2_0x47b95f(0x2c9)]('sql\x20[name]')[a2_0x47b95f(0x3db)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3be),a2_0x47b95f(0x325))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x318),a2_0x47b95f(0x2c1))[a2_0x47b95f(0x3b6)](async(_0x410a32,_0x2280a7)=>{const _0x6370fc=a2_0x47b95f,_0x33d21a=new ParentSegmentSQLCommand(),_0x197430=program[_0x6370fc(0x439)](),_0x397186=await createTDXInstance(_0x197430),_0x235241=await _0x33d21a[_0x6370fc(0x41e)]({'options':{..._0x197430,..._0x2280a7},'args':_0x410a32?[_0x410a32]:[],'tdx':_0x397186});gracefulExit(_0x235241);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x350))['description'](a2_0x47b95f(0x25b))[a2_0x47b95f(0x25c)]('--limit\x20<n>','Limit\x20number\x20of\x20rows')['option'](a2_0x47b95f(0x3be),a2_0x47b95f(0x325))['option'](a2_0x47b95f(0x318),a2_0x47b95f(0x2c1))[a2_0x47b95f(0x3b6)](async(_0x37f995,_0x3ea454)=>{const _0x466bfb=a2_0x47b95f,_0x36e5a8=new ParentSegmentShowCommand(),_0x579967=program[_0x466bfb(0x439)](),_0xfd1670=await createTDXInstance(_0x579967),_0x42c89d=await _0x36e5a8[_0x466bfb(0x41e)]({'options':{..._0x579967,..._0x3ea454},'args':_0x37f995?[_0x37f995]:[],'tdx':_0xfd1670});gracefulExit(_0x42c89d);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1be))['description'](a2_0x47b95f(0x34b))[a2_0x47b95f(0x3b6)](async(_0x1707ce,_0x335ba4)=>{const _0x446e1a=a2_0x47b95f,_0x7fdf4d=new UseCommand(),_0xd9f18=program[_0x446e1a(0x439)](),_0x1a0452=_0x1707ce?[_0x446e1a(0x36e),_0x1707ce]:[],_0x241b2e=await _0x7fdf4d[_0x446e1a(0x41e)]({'options':{..._0xd9f18,..._0x335ba4},'args':_0x1a0452,'tdx':null});gracefulExit(_0x241b2e);});const psRtCmd=parentSegmentCmd[a2_0x47b95f(0x2c9)]('rt')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x235));psRtCmd['command'](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x29e))[a2_0x47b95f(0x3b6)](async(_0x218089,_0x2041a2)=>{const _0x357b36=a2_0x47b95f,_0x430b4c=new PSRtListCommand(),_0x5f1e96=program['opts'](),_0xc0393e=await createTDXInstance(_0x5f1e96),_0x15cf26=await _0x430b4c[_0x357b36(0x41e)]({'options':{..._0x5f1e96,..._0x2041a2},'args':_0x218089?[_0x218089]:[],'tdx':_0xc0393e});gracefulExit(_0x15cf26);}),psRtCmd['command']('validate\x20[name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x250))[a2_0x47b95f(0x3b6)](async(_0x1f123c,_0x37fa9f)=>{const _0x594270=a2_0x47b95f,_0x8340ff=new PSRtValidateCommand(),_0x12756c=program[_0x594270(0x439)](),_0x303bea=await createTDXInstance(_0x12756c),_0x76b5ab=await _0x8340ff[_0x594270(0x41e)]({'options':{..._0x12756c,..._0x37fa9f},'args':_0x1f123c?[_0x1f123c]:[],'tdx':_0x303bea});gracefulExit(_0x76b5ab);});const parentRtCmd=parentCmd[a2_0x47b95f(0x2c9)]('rt',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x235));parentRtCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))['description']('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')['action'](async(_0x5b0151,_0x1e7437)=>{const _0x2e4f71=a2_0x47b95f,_0x572371=new PSRtListCommand(),_0x36e40e=program['opts'](),_0x547841=await createTDXInstance(_0x36e40e),_0x3b7c22=await _0x572371[_0x2e4f71(0x41e)]({'options':{..._0x36e40e,..._0x1e7437},'args':_0x5b0151?[_0x5b0151]:[],'tdx':_0x547841});gracefulExit(_0x3b7c22);}),parentRtCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x38d))[a2_0x47b95f(0x3db)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')[a2_0x47b95f(0x3b6)](async(_0x4ab107,_0x185fee)=>{const _0x284996=a2_0x47b95f,_0x4d90fd=new PSRtValidateCommand(),_0x2276a4=program[_0x284996(0x439)](),_0x541d49=await createTDXInstance(_0x2276a4),_0x2b8701=await _0x4d90fd[_0x284996(0x41e)]({'options':{..._0x2276a4,..._0x185fee},'args':_0x4ab107?[_0x4ab107]:[],'tdx':_0x541d49});gracefulExit(_0x2b8701);});const psPzCmd=parentSegmentCmd[a2_0x47b95f(0x2c9)]('pz')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2e9));psPzCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1c4))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x230))[a2_0x47b95f(0x3b6)](async(_0x1ac305,_0x984fe2)=>{const _0x206b9b=a2_0x47b95f,_0x241a26=new PSPzListCommand(),_0x5e42df=program[_0x206b9b(0x439)](),_0x17ce4f=await createTDXInstance(_0x5e42df),_0x13ebac=await _0x241a26['run']({'options':{..._0x5e42df,..._0x984fe2},'args':_0x1ac305?[_0x1ac305]:[],'tdx':_0x17ce4f});gracefulExit(_0x13ebac);}),psPzCmd[a2_0x47b95f(0x2c9)]('init\x20[name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x29a))[a2_0x47b95f(0x3b6)](async(_0xd170b0,_0x5686bd)=>{const _0x5d62fb=a2_0x47b95f,_0x4bdbe6=new PSPzInitCommand(),_0x42eb93=program[_0x5d62fb(0x439)](),_0x12b877=await createTDXInstance(_0x42eb93),_0x1af7da=await _0x4bdbe6['run']({'options':{..._0x42eb93,..._0x5686bd},'args':_0xd170b0?[_0xd170b0]:[],'tdx':_0x12b877});gracefulExit(_0x1af7da);});const parentPzCmd=parentCmd['command']('pz',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2e9));parentPzCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1c4))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x230))['action'](async(_0x5d41fc,_0x5bcd2c)=>{const _0xd193ba=a2_0x47b95f,_0x238e21=new PSPzListCommand(),_0x2e88ca=program[_0xd193ba(0x439)](),_0x22fbb4=await createTDXInstance(_0x2e88ca),_0x4e957d=await _0x238e21[_0xd193ba(0x41e)]({'options':{..._0x2e88ca,..._0x5bcd2c},'args':_0x5d41fc?[_0x5d41fc]:[],'tdx':_0x22fbb4});gracefulExit(_0x4e957d);}),parentPzCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x379))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x29a))[a2_0x47b95f(0x3b6)](async(_0x4fe526,_0x244044)=>{const _0x590f0c=a2_0x47b95f,_0x14f694=new PSPzInitCommand(),_0x21b396=program[_0x590f0c(0x439)](),_0x4108d5=await createTDXInstance(_0x21b396),_0x4da040=await _0x14f694[_0x590f0c(0x41e)]({'options':{..._0x21b396,..._0x244044},'args':_0x4fe526?[_0x4fe526]:[],'tdx':_0x4108d5});gracefulExit(_0x4da040);}),parentCmd[a2_0x47b95f(0x2c9)]('create\x20<name>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x283))[a2_0x47b95f(0x3e6)]('--database\x20<db>',a2_0x47b95f(0x201))['requiredOption'](a2_0x47b95f(0x34c),a2_0x47b95f(0x3b7))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),a2_0x47b95f(0x35c))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2bc),a2_0x47b95f(0x246))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2c6),a2_0x47b95f(0x38b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x307),a2_0x47b95f(0x39c))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x21f),a2_0x47b95f(0x441))[a2_0x47b95f(0x25c)]('--attributes-file\x20<file>','Attributes\x20from\x20JSON\x20file')['option'](a2_0x47b95f(0x3c5),a2_0x47b95f(0x277))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x43f),a2_0x47b95f(0x2f0))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x239),a2_0x47b95f(0x331))['option']('--customer-group-file\x20<file>',a2_0x47b95f(0x26f))[a2_0x47b95f(0x3b6)](async(_0x910109,_0x4f9f51)=>{const _0x2f206c=a2_0x47b95f,_0x2688ff=new ParentSegmentCreateCommand(),_0x181427=program[_0x2f206c(0x439)](),_0x1ff530=await createTDXInstance(_0x181427),_0x30ee7c=await _0x2688ff[_0x2f206c(0x41e)]({'options':{..._0x181427,..._0x4f9f51},'args':[_0x910109],'tdx':_0x1ff530});gracefulExit(_0x30ee7c);}),parentCmd['command'](a2_0x47b95f(0x30e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x380))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),a2_0x47b95f(0x402))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2bc),a2_0x47b95f(0x1f3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2c6),a2_0x47b95f(0x419))['option'](a2_0x47b95f(0x307),a2_0x47b95f(0x2a4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x223),a2_0x47b95f(0x1f4))['option'](a2_0x47b95f(0x348),a2_0x47b95f(0x285))['option'](a2_0x47b95f(0x370),a2_0x47b95f(0x38a))['option']('--add-behaviors-file\x20<file>',a2_0x47b95f(0x394))['action'](async(_0x2f0b6f,_0x1a2254)=>{const _0x134479=a2_0x47b95f,_0x2b664d=new ParentSegmentUpdateCommand(),_0x20be6c=program[_0x134479(0x439)](),_0x433d30=await createTDXInstance(_0x20be6c),_0x5d1d38=await _0x2b664d[_0x134479(0x41e)]({'options':{..._0x20be6c,..._0x1a2254},'args':[_0x2f0b6f],'tdx':_0x433d30});gracefulExit(_0x5d1d38);}),folderCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x278))[a2_0x47b95f(0x3db)]('Create\x20segment\x20folder')[a2_0x47b95f(0x25c)]('--description\x20<text>',a2_0x47b95f(0x1ba))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3f6),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0x41c300,_0xa71cfa,_0xb95730)=>{const _0x352861=new SegmentFolderCreateCommand(),_0x50c3f1=program['opts'](),_0x4eb9b3=await createTDXInstance(_0x50c3f1),_0x19d595=await _0x352861['run']({'options':{..._0x50c3f1,..._0xb95730},'args':[_0x41c300,_0xa71cfa],'tdx':_0x4eb9b3});gracefulExit(_0x19d595);}),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x30b))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x309))[a2_0x47b95f(0x3b6)](async(_0x26e163,_0x13ced1)=>{const _0x3d9d2f=a2_0x47b95f,_0x2b7342=new ActivationsCommand(),_0x2bb83a=program[_0x3d9d2f(0x439)](),_0x52aad6=await createTDXInstance(_0x2bb83a),_0x324e91=await _0x2b7342[_0x3d9d2f(0x41e)]({'options':{..._0x2bb83a,..._0x13ced1},'args':[_0x26e163],'tdx':_0x52aad6});gracefulExit(_0x324e91);});const workflowCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x371))[a2_0x47b95f(0x284)]('wf')['description'](a2_0x47b95f(0x209)),wfProjectCmd=workflowCmd[a2_0x47b95f(0x2c9)]('project')['description'](a2_0x47b95f(0x401)),wfProjectListAction=async(_0x369596,_0x1c4887)=>{const _0xff3df4=a2_0x47b95f,_0x17e0f8=new WorkflowProjectsCommand(),_0x1c3c6f=program['opts'](),_0x35250b=await createTDXInstance(_0x1c3c6f),_0x2bae9c=await _0x17e0f8[_0xff3df4(0x41e)]({'options':{..._0x1c3c6f,..._0x1c4887},'args':_0x369596?[_0x369596]:[],'tdx':_0x35250b});gracefulExit(_0x2bae9c);};wfProjectCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x411))[a2_0x47b95f(0x3b6)](wfProjectListAction),workflowCmd[a2_0x47b95f(0x2c9)]('projects\x20[pattern]')[a2_0x47b95f(0x3db)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x400b8e,_0x51e7ac)=>{const _0x4b2b5b=a2_0x47b95f,_0x5ef9d4=new WorkflowWorkflowsCommand(),_0xa74570=program[_0x4b2b5b(0x439)](),_0x5a256b=await createTDXInstance(_0xa74570),_0x370b67=await _0x5ef9d4['run']({'options':{..._0xa74570,..._0x51e7ac},'args':_0x400b8e?[_0x400b8e]:[],'tdx':_0x5a256b});gracefulExit(_0x370b67);};workflowCmd['command'](a2_0x47b95f(0x3af))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1c2))[a2_0x47b95f(0x3b6)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x23a))[a2_0x47b95f(0x3db)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x190097,_0x4ef17f)=>{const _0x18898a=a2_0x47b95f,_0xc63ac6=new WorkflowSessionsCommand(),_0x186218=program[_0x18898a(0x439)](),_0x51766e=await createTDXInstance(_0x186218),_0x15d8a3=await _0xc63ac6['run']({'options':{..._0x186218,..._0x4ef17f},'args':_0x190097?[_0x190097]:[],'tdx':_0x51766e});gracefulExit(_0x15d8a3);};wfSessionCmd[a2_0x47b95f(0x2c9)]('list\x20[project]')['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')['option'](a2_0x47b95f(0x1bd),a2_0x47b95f(0x28f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c0),a2_0x47b95f(0x261))['option'](a2_0x47b95f(0x270),a2_0x47b95f(0x3dc))[a2_0x47b95f(0x3b6)](wfSessionListAction),workflowCmd[a2_0x47b95f(0x2c9)]('sessions\x20[project]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x20e))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1bd),a2_0x47b95f(0x28f))[a2_0x47b95f(0x25c)]('--from\x20<timestamp>',a2_0x47b95f(0x261))[a2_0x47b95f(0x25c)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x47b95f(0x3b6)](wfSessionListAction);const wfAttemptListAction=async(_0x6d1f29,_0x5078b2)=>{const _0x371a79=a2_0x47b95f,_0x8202df=new WorkflowAttemptsCommand(),_0x13ab69=program[_0x371a79(0x439)](),_0x21b8fd=await createTDXInstance(_0x13ab69),_0x3e9d0e=await _0x8202df[_0x371a79(0x41e)]({'options':{..._0x13ab69,..._0x5078b2},'args':_0x6d1f29?[_0x6d1f29]:[],'tdx':_0x21b8fd});gracefulExit(_0x3e9d0e);},attemptCmd=workflowCmd['command'](a2_0x47b95f(0x38c))[a2_0x47b95f(0x3db)]('Workflow\x20attempt\x20management')[a2_0x47b95f(0x2e2)](a2_0x47b95f(0x1d9),a2_0x47b95f(0x3aa))['argument'](a2_0x47b95f(0x360),a2_0x47b95f(0x266))[a2_0x47b95f(0x2e2)](a2_0x47b95f(0x1f6),a2_0x47b95f(0x408))[a2_0x47b95f(0x25c)]('--include-subtasks',a2_0x47b95f(0x29d))['option'](a2_0x47b95f(0x42d),a2_0x47b95f(0x233))[a2_0x47b95f(0x25c)]('--resume-from\x20<task>','Resume\x20from\x20specific\x20task\x20(retry)')['option'](a2_0x47b95f(0x1da),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x47b95f(0x37e),a2_0x47b95f(0x374))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x38e),a2_0x47b95f(0x237))[a2_0x47b95f(0x3b6)](async(_0x31b24d,_0x199ab6,_0x1b8385,_0x2e25d1)=>{const _0xcd14e5=a2_0x47b95f;if(_0x31b24d===_0xcd14e5(0x310)){await wfAttemptListAction(_0x199ab6,_0x2e25d1);return;}if(!_0x31b24d){attemptCmd[_0xcd14e5(0x364)]();return;}const _0x3bb129=program['opts'](),_0x552722=await createTDXInstance(_0x3bb129);let _0x946c90=0x0;if(!_0x199ab6){const _0x4a2bda=new WorkflowAttemptCommand();_0x946c90=await _0x4a2bda[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':[_0x31b24d],'tdx':_0x552722});}else{if(_0x199ab6===_0xcd14e5(0x32d)){const _0x545a45=new WorkflowLogsCommand();_0x946c90=await _0x545a45[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':_0x1b8385?[_0x31b24d,_0x1b8385]:[_0x31b24d],'tdx':_0x552722});}else{if(_0x199ab6==='tasks'){const _0x24a307=new WorkflowTasksCommand();_0x946c90=await _0x24a307[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':[_0x31b24d],'tdx':_0x552722});}else{if(_0x199ab6===_0xcd14e5(0x397)){const _0x49e856=new WorkflowKillCommand();_0x946c90=await _0x49e856[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':[_0x31b24d],'tdx':_0x552722});}else{if(_0x199ab6==='retry'){const _0x558301=new WorkflowRetryCommand();_0x946c90=await _0x558301[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':[_0xcd14e5(0x2cc)+_0x31b24d],'tdx':_0x552722});}else console[_0xcd14e5(0x253)](_0xcd14e5(0x1ce)+_0x199ab6),console[_0xcd14e5(0x253)](_0xcd14e5(0x2fb)),_0x946c90=0x1;}}}}gracefulExit(_0x946c90);});attemptCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3d6))[a2_0x47b95f(0x3db)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x47b95f(0x25c)]('--include-retried',a2_0x47b95f(0x3ac))[a2_0x47b95f(0x3b6)](wfAttemptListAction),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x343))['description'](a2_0x47b95f(0x30f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x38e),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd['command']('timeline\x20[project.workflow]')['description']('Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt')['option']('--follow','Follow/watch\x20timeline\x20for\x20running\x20attempts')[a2_0x47b95f(0x25c)]('--session-id\x20<id>',a2_0x47b95f(0x1fb))['option']('--attempt-id\x20<id>',a2_0x47b95f(0x232))[a2_0x47b95f(0x3b6)](async(_0x48cc20,_0x7675d)=>{const _0x2d981c=a2_0x47b95f,_0x158e4d=new WorkflowTimelineCommand(),_0x3f6507=program[_0x2d981c(0x439)](),_0x328f51=await createTDXInstance(_0x3f6507),_0x1d4e84=await _0x158e4d[_0x2d981c(0x41e)]({'options':{..._0x3f6507,..._0x7675d},'args':_0x48cc20?[_0x48cc20]:[],'tdx':_0x328f51});gracefulExit(_0x1d4e84);}),workflowCmd['command'](a2_0x47b95f(0x329))['description'](a2_0x47b95f(0x2c7))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x43e),'Resume\x20from\x20specific\x20task')[a2_0x47b95f(0x25c)]('--params\x20<json>',a2_0x47b95f(0x20c))['action'](async(_0x470d21,_0x17a20f)=>{const _0x214cfc=a2_0x47b95f,_0x22010e=new WorkflowRetryCommand(),_0xf06579=program[_0x214cfc(0x439)](),_0x342aa9=await createTDXInstance(_0xf06579),_0x428ff2=await _0x22010e[_0x214cfc(0x41e)]({'options':{..._0xf06579,..._0x17a20f},'args':[_0x470d21],'tdx':_0x342aa9});gracefulExit(_0x428ff2);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x392))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x282))['option'](a2_0x47b95f(0x3e9),a2_0x47b95f(0x228),(_0x50ea94,_0x495968=[])=>[..._0x495968,_0x50ea94],[])[a2_0x47b95f(0x25c)]('--session-time\x20<time>',a2_0x47b95f(0x2b1))[a2_0x47b95f(0x3b6)](async(_0x18e919,_0x18a4c9)=>{const _0x242431=a2_0x47b95f,_0x1a113d=new WorkflowRunCommand(),_0x3d569c=program['opts'](),_0x32204e=await createTDXInstance(_0x3d569c),_0x142b13=await _0x1a113d[_0x242431(0x41e)]({'options':{..._0x3d569c,..._0x18a4c9},'args':_0x18e919?[_0x18e919]:[],'tdx':_0x32204e});gracefulExit(_0x142b13);}),workflowCmd['command'](a2_0x47b95f(0x2be))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x22b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x437),a2_0x47b95f(0x31c))[a2_0x47b95f(0x3b6)](async(_0x51d1f7,_0x327962,_0x319cc8)=>{const _0x1f0192=a2_0x47b95f,_0x219110=new WorkflowDownloadCommand(),_0x164370=program[_0x1f0192(0x439)](),_0x25f146=await createTDXInstance(_0x164370),_0x54e642=await _0x219110['run']({'options':{..._0x164370,..._0x319cc8},'args':[_0x51d1f7,_0x327962||'.'],'tdx':_0x25f146});gracefulExit(_0x54e642);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2e4))[a2_0x47b95f(0x3db)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x437),a2_0x47b95f(0x2b3))['option'](a2_0x47b95f(0x1aa),a2_0x47b95f(0x24d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x310f33,_0x38ee67,_0x52b1a7)=>{const _0x4534b1=a2_0x47b95f,_0x25fb2e=new WorkflowPullCommand(),_0x574353=program[_0x4534b1(0x439)](),_0x11c703=await createTDXInstance(_0x574353),_0x161a08=await _0x25fb2e['run']({'options':{..._0x574353,..._0x52b1a7},'args':_0x38ee67?[_0x310f33,_0x38ee67]:[_0x310f33],'tdx':_0x11c703});gracefulExit(_0x161a08);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2ea))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x384))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x437),a2_0x47b95f(0x3cc))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x342))['option']('--skip-validation','Skip\x20validation\x20of\x20.dig\x20files')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['action'](async(_0x3ed62b,_0x20300a)=>{const _0x48bd54=a2_0x47b95f,_0xecbb0=new WorkflowPushCommand(),_0x5972cd=program[_0x48bd54(0x439)](),_0x4cb4eb=await createTDXInstance(_0x5972cd),_0x1bebca=await _0xecbb0[_0x48bd54(0x41e)]({'options':{..._0x5972cd,..._0x20300a},'args':_0x3ed62b?[_0x3ed62b]:[],'tdx':_0x4cb4eb});gracefulExit(_0x1bebca);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2d2))['description'](a2_0x47b95f(0x27c))[a2_0x47b95f(0x25c)]('--name\x20<name>',a2_0x47b95f(0x1b2))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x437),a2_0x47b95f(0x238))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c3),a2_0x47b95f(0x3e3))[a2_0x47b95f(0x3b6)](async(_0x897a75,_0x553e06)=>{const _0x20770f=a2_0x47b95f,_0x4043ac=new WorkflowUploadCommand(),_0x5994d5=program['opts'](),_0x498f5b=await createTDXInstance(_0x5994d5),_0x55a349=await _0x4043ac[_0x20770f(0x41e)]({'options':{..._0x5994d5,..._0x553e06},'args':_0x897a75?[_0x897a75]:[],'tdx':_0x498f5b});gracefulExit(_0x55a349);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3d3))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3bb))[a2_0x47b95f(0x25c)]('--name\x20<name>',a2_0x47b95f(0x31e))[a2_0x47b95f(0x25c)]('--revision\x20<revision>',a2_0x47b95f(0x3cc))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x436))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c3),a2_0x47b95f(0x3e3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['action'](async(_0x523d45,_0x47f81f)=>{const _0x1549ce=a2_0x47b95f,_0x30b908=new WorkflowCloneCommand(),_0x2c33e9=program[_0x1549ce(0x439)](),_0x772ff6=await createTDXInstance(_0x2c33e9),_0x43cd37=await _0x30b908[_0x1549ce(0x41e)]({'options':{..._0x2c33e9,..._0x47f81f},'args':_0x523d45?[_0x523d45]:[],'tdx':_0x772ff6});gracefulExit(_0x43cd37);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x222))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x47b95f(0x3b6)](async(_0x15ec6c,_0x2954a5)=>{const _0x5a88a8=a2_0x47b95f,_0x3789cf=new WorkflowDeleteCommand(),_0x109b59=program[_0x5a88a8(0x439)](),_0x5549f9=await createTDXInstance(_0x109b59),_0x474868=await _0x3789cf[_0x5a88a8(0x41e)]({'options':{..._0x109b59,..._0x2954a5},'args':[_0x15ec6c],'tdx':_0x5549f9});gracefulExit(_0x474868);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x306))['description'](a2_0x47b95f(0x2c2))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1f7),a2_0x47b95f(0x3ef))['action'](async(_0x13da0b,_0x188b20)=>{const _0x5d3cb3=new WorkflowUseCommand(),_0x22466a=program['opts'](),_0x33e7f0=await createTDXInstance(_0x22466a),_0x4b62f9=await _0x5d3cb3['run']({'options':{..._0x22466a,..._0x188b20},'args':_0x13da0b?[_0x13da0b]:[],'tdx':_0x33e7f0});gracefulExit(_0x4b62f9);});const wfSecretsCmd=workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3f1))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x22e));wfSecretsCmd['command']('list\x20[project]')['description'](a2_0x47b95f(0x20d))[a2_0x47b95f(0x3b6)](async(_0x4808ce,_0x17370a)=>{const _0x2d842d=a2_0x47b95f,_0x2da045=new WorkflowSecretsListCommand(),_0x1dd8e4=program[_0x2d842d(0x439)](),_0x137487=await createTDXInstance(_0x1dd8e4),_0x3dbcbf=await _0x2da045[_0x2d842d(0x41e)]({'options':{..._0x1dd8e4,..._0x17370a},'args':_0x4808ce?[_0x4808ce]:[],'tdx':_0x137487});gracefulExit(_0x3dbcbf);}),wfSecretsCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3b2))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x291))['action'](async(_0x1fb17c,_0x42b9be)=>{const _0xdb0795=a2_0x47b95f,_0x3e145d=new WorkflowSecretsSetCommand(),_0x4a4b9e=program['opts'](),_0x2f6bbf=await createTDXInstance(_0x4a4b9e),_0x5d986f=await _0x3e145d[_0xdb0795(0x41e)]({'options':{..._0x4a4b9e,..._0x42b9be},'args':_0x1fb17c,'tdx':_0x2f6bbf});gracefulExit(_0x5d986f);}),wfSecretsCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x32a))['description'](a2_0x47b95f(0x409))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x10b5ec,_0x84ae75)=>{const _0x593c7c=a2_0x47b95f,_0x5ce612=new WorkflowSecretsDeleteCommand(),_0x537c7b=program[_0x593c7c(0x439)](),_0x168b0c=await createTDXInstance(_0x537c7b),_0x4c26f4=await _0x5ce612[_0x593c7c(0x41e)]({'options':{..._0x537c7b,..._0x84ae75},'args':_0x10b5ec,'tdx':_0x168b0c});gracefulExit(_0x4c26f4);});const jobCmd=program['command']('job')[a2_0x47b95f(0x3db)]('Job\x20management\x20commands'),jobListAction=async _0x1ea08a=>{const _0x595fd5=a2_0x47b95f,_0x5b9fbf=new JobListCommand(),_0x154315=program[_0x595fd5(0x439)](),_0x49b1a1=await createTDXInstance(_0x154315),_0x5f4e96=await _0x5b9fbf['run']({'options':{..._0x154315,..._0x1ea08a},'args':[],'tdx':_0x49b1a1});gracefulExit(_0x5f4e96);};jobCmd[a2_0x47b95f(0x2c9)]('list')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3e1))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1bd),a2_0x47b95f(0x2ab))[a2_0x47b95f(0x3b6)](jobListAction),program['command'](a2_0x47b95f(0x269),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x30d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1bd),a2_0x47b95f(0x2ab))[a2_0x47b95f(0x3b6)](jobListAction),jobCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2d3))['description'](a2_0x47b95f(0x1d1))[a2_0x47b95f(0x3b6)](async(_0x106b93,_0x3f73f6)=>{const _0x577c29=a2_0x47b95f,_0x207c56=new JobShowCommand(),_0x36b562=program[_0x577c29(0x439)](),_0x1c675d=await createTDXInstance(_0x36b562),_0x336a83=await _0x207c56[_0x577c29(0x41e)]({'options':{..._0x36b562,..._0x3f73f6},'args':[_0x106b93],'tdx':_0x1c675d});gracefulExit(_0x336a83);}),jobCmd['command'](a2_0x47b95f(0x3f0))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1f2))[a2_0x47b95f(0x3b6)](async(_0x566980,_0x23879c)=>{const _0x409c4c=a2_0x47b95f,_0x3bf32d=new JobKillCommand(),_0x51744e=program[_0x409c4c(0x439)](),_0x43a1f7=await createTDXInstance(_0x51744e),_0x3ad2f6=await _0x3bf32d[_0x409c4c(0x41e)]({'options':{..._0x51744e,..._0x23879c},'args':[_0x566980],'tdx':_0x43a1f7});gracefulExit(_0x3ad2f6);}),jobCmd['command'](a2_0x47b95f(0x3ae))['description']('Submit\x20a\x20job')[a2_0x47b95f(0x25c)]('--job-type\x20<type>',a2_0x47b95f(0x1e8),a2_0x47b95f(0x1e9))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1af),a2_0x47b95f(0x3fd))['option']('--database\x20<name>',a2_0x47b95f(0x407),a2_0x47b95f(0x225))[a2_0x47b95f(0x3b6)](async(_0x57e74c,_0xe0e84a)=>{const _0x43ee09=a2_0x47b95f,_0x1f4673=new JobSubmitCommand(),_0x10584c=program['opts'](),_0x3b651c=await createTDXInstance(_0x10584c),_0x19fe6d=await _0x1f4673[_0x43ee09(0x41e)]({'options':{..._0x10584c,..._0xe0e84a},'args':_0x57e74c?[_0x57e74c]:[],'tdx':_0x3b651c});gracefulExit(_0x19fe6d);}),jobCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x260))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3f5))[a2_0x47b95f(0x3b6)](async(_0x20c836,_0x477d42)=>{const _0x1fa0d3=a2_0x47b95f,_0xbff727=new JobResultCommand(),_0x328d1d=program[_0x1fa0d3(0x439)](),_0x3c28da=await createTDXInstance(_0x328d1d),_0x4396ef=await _0xbff727[_0x1fa0d3(0x41e)]({'options':{..._0x328d1d,..._0x477d42},'args':[_0x20c836],'tdx':_0x3c28da});gracefulExit(_0x4396ef);});const scheduleCmd=jobCmd['command'](a2_0x47b95f(0x296))[a2_0x47b95f(0x3db)]('Scheduled\x20query\x20management\x20commands');scheduleCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)]('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')['action'](async(_0x4771a3,_0x1342d1)=>{const _0x3f1ed7=a2_0x47b95f,_0x4f9e50=new ScheduleListCommand(),_0x4b68e2=program[_0x3f1ed7(0x439)](),_0x1b0991=await createTDXInstance(_0x4b68e2),_0x2f5c9c=await _0x4f9e50[_0x3f1ed7(0x41e)]({'options':{..._0x4b68e2,..._0x1342d1},'args':_0x4771a3?[_0x4771a3]:[],'tdx':_0x1b0991});gracefulExit(_0x2f5c9c);}),scheduleCmd[a2_0x47b95f(0x2c9)]('show\x20<name>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x38f))[a2_0x47b95f(0x3b6)](async(_0x529441,_0x31797c)=>{const _0x326992=a2_0x47b95f,_0x5129e7=new ScheduleShowCommand(),_0x511d43=program[_0x326992(0x439)](),_0x6a8fcd=await createTDXInstance(_0x511d43),_0x4d9859=await _0x5129e7[_0x326992(0x41e)]({'options':{..._0x511d43,..._0x31797c},'args':[_0x529441],'tdx':_0x6a8fcd});gracefulExit(_0x4d9859);}),scheduleCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3a0))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2fd))[a2_0x47b95f(0x3e6)](a2_0x47b95f(0x40b),a2_0x47b95f(0x332))['requiredOption'](a2_0x47b95f(0x1af),'Read\x20query\x20from\x20file')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2b4),'Query\x20type:\x20trino\x20or\x20hive',a2_0x47b95f(0x1e9))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x24e),a2_0x47b95f(0x3ba))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x307),a2_0x47b95f(0x23d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x39b),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x47b95f(0x25c)]('--priority\x20<-2~2>',a2_0x47b95f(0x2ae))['option']('--retry-limit\x20<0~32>','Retry\x20limit\x20(0\x20to\x2032)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x25a),a2_0x47b95f(0x2f3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x302),'Result\x20output\x20destination\x20URL')[a2_0x47b95f(0x3b6)](async(_0x5a6be8,_0x2095d8)=>{const _0x5e77ac=a2_0x47b95f,_0x47c586=new ScheduleCreateCommand(),_0x1619b5=program[_0x5e77ac(0x439)](),_0x2bdce9=await createTDXInstance(_0x1619b5),_0x3b8aea=await _0x47c586[_0x5e77ac(0x41e)]({'options':{..._0x1619b5,..._0x2095d8},'args':[_0x5a6be8],'tdx':_0x2bdce9});gracefulExit(_0x3b8aea);}),scheduleCmd['command'](a2_0x47b95f(0x30e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x268))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x40b),'Database\x20name')['option']('-f,\x20--file\x20<path>',a2_0x47b95f(0x3fd))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2b4),a2_0x47b95f(0x27d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x24e),a2_0x47b95f(0x3ba))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x307),a2_0x47b95f(0x398))['option'](a2_0x47b95f(0x39b),a2_0x47b95f(0x33a))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3b5),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x317),'Retry\x20limit\x20(0\x20to\x2032)')['option']('--engine-version\x20<version>',a2_0x47b95f(0x2f3))[a2_0x47b95f(0x25c)]('--result\x20<url>',a2_0x47b95f(0x2d7))[a2_0x47b95f(0x3b6)](async(_0x2b3d43,_0x59a925)=>{const _0x1eab21=a2_0x47b95f,_0x39bf65=new ScheduleUpdateCommand(),_0x46957c=program[_0x1eab21(0x439)](),_0x30112c=await createTDXInstance(_0x46957c),_0x133d91=await _0x39bf65[_0x1eab21(0x41e)]({'options':{..._0x46957c,..._0x59a925},'args':[_0x2b3d43],'tdx':_0x30112c});gracefulExit(_0x133d91);}),scheduleCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x362))[a2_0x47b95f(0x3db)]('Delete\x20a\x20scheduled\x20query')[a2_0x47b95f(0x3b6)](async(_0x50d9d2,_0x1a4c33)=>{const _0x5cfef4=a2_0x47b95f,_0x3bea47=new ScheduleDeleteCommand(),_0x3818bc=program[_0x5cfef4(0x439)](),_0x562feb=await createTDXInstance(_0x3818bc),_0x13ce57=await _0x3bea47[_0x5cfef4(0x41e)]({'options':{..._0x3818bc,..._0x1a4c33},'args':[_0x50d9d2],'tdx':_0x562feb});gracefulExit(_0x13ce57);}),scheduleCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x263))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x416))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2e0),a2_0x47b95f(0x35f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x354),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')[a2_0x47b95f(0x3b6)](async(_0x19bac9,_0xf23fb8)=>{const _0x411647=a2_0x47b95f,_0x1ae94a=new ScheduleRunCommand(),_0x4fb8e6=program[_0x411647(0x439)](),_0x5adb7b=await createTDXInstance(_0x4fb8e6),_0x13a5a5=await _0x1ae94a['run']({'options':{..._0x4fb8e6,..._0xf23fb8},'args':[_0x19bac9],'tdx':_0x5adb7b});gracefulExit(_0x13a5a5);}),scheduleCmd['command'](a2_0x47b95f(0x412))['description'](a2_0x47b95f(0x314))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x41a),a2_0x47b95f(0x3d8))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x328),'Ending\x20offset\x20(default:\x2020)')[a2_0x47b95f(0x3b6)](async(_0x5c9482,_0x2f8b07)=>{const _0x21e621=a2_0x47b95f,_0x409499=new ScheduleHistoryCommand(),_0x38ae57=program[_0x21e621(0x439)](),_0x47cbf0=await createTDXInstance(_0x38ae57),_0x5076ba=await _0x409499[_0x21e621(0x41e)]({'options':{..._0x38ae57,..._0x2f8b07},'args':[_0x5c9482],'tdx':_0x47cbf0});gracefulExit(_0x5076ba);});const llmCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x399))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x338));llmCmd['command']('use\x20<project-name>')['description'](a2_0x47b95f(0x2af))[a2_0x47b95f(0x3b6)](async(_0x2067bf,_0x3284d7)=>{const _0x21df0b=a2_0x47b95f,_0x4220ca=new LLMUseCommand(),_0xbdf1e=program[_0x21df0b(0x439)](),_0x119634=await createTDXInstance(_0xbdf1e),_0x2b1000=await _0x4220ca[_0x21df0b(0x41e)]({'options':{..._0xbdf1e,..._0x3284d7},'args':[_0x2067bf],'tdx':_0x119634});gracefulExit(_0x2b1000);}),llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x34e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x410))[a2_0x47b95f(0x3b6)](async _0x217ec0=>{const _0x5f535e=new LLMModelsCommand(),_0x47a4b5=program['opts'](),_0x3ebeb5=await createTDXInstance(_0x47a4b5),_0x4e6996=await _0x5f535e['run']({'options':{..._0x47a4b5,..._0x217ec0},'args':[],'tdx':_0x3ebeb5});gracefulExit(_0x4e6996);});const projectCmd=llmCmd[a2_0x47b95f(0x2c9)]('project')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x333)),llmProjectListAction=async(_0x57287c,_0x40f727)=>{const _0x4669da=a2_0x47b95f,_0x46ed56=new LLMProjectsCommand(),_0x21824f=program[_0x4669da(0x439)](),_0x3c422f=await createTDXInstance(_0x21824f),_0x792e95=await _0x46ed56[_0x4669da(0x41e)]({'options':{..._0x21824f,..._0x40f727},'args':_0x57287c?[_0x57287c]:[],'tdx':_0x3c422f});gracefulExit(_0x792e95);};projectCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x207))[a2_0x47b95f(0x3b6)](llmProjectListAction),llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x265))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x30c))[a2_0x47b95f(0x3b6)](llmProjectListAction),projectCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3a0))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x210))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),a2_0x47b95f(0x264))[a2_0x47b95f(0x3b6)](async(_0x177f05,_0x53da29)=>{const _0xb6b221=a2_0x47b95f,_0x31fed6=new LLMProjectCreateCommand(),_0x28b17e=program[_0xb6b221(0x439)](),_0x435c79=await createTDXInstance(_0x28b17e),_0x451763=await _0x31fed6['run']({'options':{..._0x28b17e,..._0x53da29},'args':[_0x177f05],'tdx':_0x435c79});gracefulExit(_0x451763);}),projectCmd['command']('delete\x20<name>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x229))[a2_0x47b95f(0x3b6)](async(_0x4c4b84,_0x55e4a6)=>{const _0x503c16=a2_0x47b95f,_0x34606c=new LLMProjectDeleteCommand(),_0x12c77f=program[_0x503c16(0x439)](),_0x11f62c=await createTDXInstance(_0x12c77f),_0x451b7b=await _0x34606c['run']({'options':{..._0x12c77f,..._0x55e4a6},'args':[_0x4c4b84],'tdx':_0x11f62c});gracefulExit(_0x451b7b);}),projectCmd[a2_0x47b95f(0x2c9)]('backup\x20<name>')['description']('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x298),a2_0x47b95f(0x1c6))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x47b95f(0x3b6)](async(_0x4feb87,_0x2ca9cc)=>{const _0x580358=new LLMProjectBackupCommand(),_0x5cbdfb=program['opts'](),_0x280385=await createTDXInstance(_0x5cbdfb),_0x28f192=await _0x580358['run']({'options':{..._0x5cbdfb,..._0x2ca9cc},'args':[_0x4feb87],'tdx':_0x280385});gracefulExit(_0x28f192);}),projectCmd[a2_0x47b95f(0x2c9)]('restore\x20<folder>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1b7))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1cd),a2_0x47b95f(0x242))[a2_0x47b95f(0x25c)]('--dry-run',a2_0x47b95f(0x1fa))['action'](async(_0x16089d,_0x51f414)=>{const _0x3aa3cf=a2_0x47b95f,_0x41e64e=new LLMProjectRestoreCommand(),_0x19e7c7=program['opts'](),_0x16cca2=await createTDXInstance(_0x19e7c7),_0x16e6a8=await _0x41e64e[_0x3aa3cf(0x41e)]({'options':{..._0x19e7c7,..._0x51f414},'args':[_0x16089d],'tdx':_0x16cca2});gracefulExit(_0x16e6a8);});const llmAgentListAction=async(_0xfca9a3,_0x3931b5)=>{const _0x5a9375=a2_0x47b95f,_0x294608=new LLMAgentsCommand(),_0x5dbe00=program[_0x5a9375(0x439)](),_0x4a2d3b=await createTDXInstance(_0x5dbe00),_0x4dfe5f=await _0x294608[_0x5a9375(0x41e)]({'options':{..._0x5dbe00,..._0x3931b5},'args':_0xfca9a3?[_0xfca9a3]:[],'tdx':_0x4a2d3b});gracefulExit(_0x4dfe5f);};llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3c7))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x31f))[a2_0x47b95f(0x3b6)](llmAgentListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3c7))['description'](a2_0x47b95f(0x31f))[a2_0x47b95f(0x3b6)](llmAgentListAction),llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1ff))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x243))[a2_0x47b95f(0x25c)]('--last',a2_0x47b95f(0x1b0))['action'](async(_0x239354,_0x3ccd75)=>{const _0x72058f=a2_0x47b95f,_0x13e2c8=new LLMHistoryCommand(),_0x3a4e26=program[_0x72058f(0x439)](),_0x1dab35=await createTDXInstance(_0x3a4e26),_0x16ba1e=await _0x13e2c8[_0x72058f(0x41e)]({'options':{..._0x3a4e26,..._0x3ccd75},'args':_0x239354?[_0x239354]:[],'tdx':_0x1dab35});gracefulExit(_0x16ba1e);});isExperimentalAvailable()&&llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3e5))[a2_0x47b95f(0x3db)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x47b95f(0x3b6)](async(_0x5bfa38,_0x4deba8)=>{const _0x1d0233=a2_0x47b95f,_0x43dd7=new LLMLogCommand(),_0x37073d=program[_0x1d0233(0x439)](),_0x134507=await createTDXInstance(_0x37073d),_0x5bd939=await _0x43dd7[_0x1d0233(0x41e)]({'options':{..._0x37073d,..._0x4deba8},'args':[_0x5bfa38],'tdx':_0x134507});gracefulExit(_0x5bd939);});program['command'](a2_0x47b95f(0x377))[a2_0x47b95f(0x1cf)](a2_0x47b95f(0x251))['description'](a2_0x47b95f(0x1b3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3ed),'Continue\x20most\x20recent\x20conversation')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x43a),a2_0x47b95f(0x430))[a2_0x47b95f(0x25c)]('--no-proxy',a2_0x47b95f(0x1d3))[a2_0x47b95f(0x2f9)]()[a2_0x47b95f(0x3e4)](!![])[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x47b95f(0x3b6)](async(_0xba5dee,_0x37e6ef)=>{const _0x3b1b27=a2_0x47b95f,_0x52575e=program[_0x3b1b27(0x439)](),_0x20daa8=Array[_0x3b1b27(0x24b)](_0xba5dee)?_0xba5dee:[];if(_0x20daa8[0x0]===_0x3b1b27(0x31d)){const _0x2294ca=new ClaudeStatuslineCommand(),_0xc42fe2=await _0x2294ca[_0x3b1b27(0x41e)]({'options':{..._0x52575e,..._0x37e6ef},'args':_0x20daa8[_0x3b1b27(0x35a)](0x1),'tdx':null});gracefulExit(_0xc42fe2);}if(_0x20daa8[0x0]===_0x3b1b27(0x1cf)){const _0x40b862=new ClaudeUsageCommand(),_0x9ae7c7=await _0x40b862[_0x3b1b27(0x41e)]({'options':{..._0x52575e,..._0x37e6ef},'args':_0x20daa8[_0x3b1b27(0x35a)](0x1),'tdx':null});gracefulExit(_0x9ae7c7);}const _0x6ab805=new ClaudeCommand(),_0x1283c0=await createTDXInstance(_0x52575e),_0x46c10e=await _0x6ab805[_0x3b1b27(0x41e)]({'options':{..._0x52575e,..._0x37e6ef},'args':_0x20daa8,'tdx':_0x1283c0});gracefulExit(_0x46c10e);}),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x32f))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2b9))[a2_0x47b95f(0x25c)]('--clear',a2_0x47b95f(0x368))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2bb),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x47b95f(0x3b6)](async(_0x46df05,_0x16c1df,_0x40dec7)=>{const _0x32bf75=a2_0x47b95f,_0x42edb7=new UseCommand(),_0x3e27e2=program[_0x32bf75(0x439)](),_0x6d90f8=[];if(_0x46df05)_0x6d90f8['push'](_0x46df05);if(_0x16c1df)_0x6d90f8[_0x32bf75(0x28e)](_0x16c1df);const _0x4f89cf=await _0x42edb7[_0x32bf75(0x41e)]({'options':{..._0x3e27e2,..._0x40dec7},'args':_0x6d90f8,'tdx':null});gracefulExit(_0x4f89cf);}),program['command']('status')['description'](a2_0x47b95f(0x2a3))[a2_0x47b95f(0x3b6)](async _0x57fe40=>{const _0x14b795=a2_0x47b95f,_0x508579=new StatusCommand(),_0x460fc1=program[_0x14b795(0x439)](),_0x274fac=await createTDXInstance(_0x460fc1),_0x168e54=await _0x508579[_0x14b795(0x41e)]({'options':{..._0x460fc1,..._0x57fe40},'args':[],'tdx':_0x274fac});gracefulExit(_0x168e54);}),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3ab))['description'](a2_0x47b95f(0x211))['option'](a2_0x47b95f(0x2bb),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x47b95f(0x3b6)](async(_0x37d575,_0x1bb90a)=>{const _0x37d79b=new UnsetCommand(),_0x5d06ca=program['opts'](),_0x1bc1ea=await _0x37d79b['run']({'options':{..._0x5d06ca,..._0x1bb90a},'args':[_0x37d575],'tdx':null});gracefulExit(_0x1bc1ea);}),program['command']('chats')['description'](a2_0x47b95f(0x308))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f6),a2_0x47b95f(0x2bf))[a2_0x47b95f(0x3b6)](async _0x1d0772=>{const _0x1004fe=a2_0x47b95f,_0x46a9ab=new ChatsCommand(),_0xa92a2e=program[_0x1004fe(0x439)](),_0x2308bf=await createTDXInstance(_0xa92a2e),_0xdde2e1=await _0x46a9ab[_0x1004fe(0x41e)]({'options':{..._0xa92a2e,..._0x1d0772},'args':[],'tdx':_0x2308bf});gracefulExit(_0xdde2e1);});const authCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x21c))[a2_0x47b95f(0x3db)]('Authentication\x20management');async function runAuthStatusCommand(_0x11ec48){const _0x38723e=a2_0x47b95f,_0x4d4b27=new AuthStatusCommand(),_0x173470=program[_0x38723e(0x439)](),_0xc3b34d=await createTDXInstance(_0x173470),_0xc51c54=await _0x4d4b27['run']({'options':{..._0x173470,..._0x11ec48},'args':[],'tdx':_0xc3b34d});gracefulExit(_0xc51c54);}authCmd[a2_0x47b95f(0x3b6)](runAuthStatusCommand),authCmd['command']('status')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x213))['action'](runAuthStatusCommand),authCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x386))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1bf))['addHelpText'](a2_0x47b95f(0x438),a2_0x47b95f(0x1e2))[a2_0x47b95f(0x3b6)](async _0x7635ce=>{const _0x3f5c98=a2_0x47b95f,_0x4b96d5=new AuthSetupCommand(),_0x20a7b6=program[_0x3f5c98(0x439)](),_0x3d1c2e=await createTDXInstance(_0x20a7b6),_0x78589b=await _0x4b96d5[_0x3f5c98(0x41e)]({'options':{..._0x20a7b6,..._0x7635ce},'args':[],'tdx':_0x3d1c2e});gracefulExit(_0x78589b);}),authCmd[a2_0x47b95f(0x2c9)]('clear')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x274))['addHelpText'](a2_0x47b95f(0x438),a2_0x47b95f(0x363))[a2_0x47b95f(0x3b6)](async _0x1e5d6f=>{const _0x2b5a4b=a2_0x47b95f,_0x2e3e9e=new AuthClearCommand(),_0x522e2=program[_0x2b5a4b(0x439)](),_0x4cb767=await _0x2e3e9e['run']({'options':{..._0x522e2,..._0x1e5d6f},'args':[],'tdx':null});gracefulExit(_0x4cb767);});const userCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x231))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x21e)),userListAction=async _0x406b1f=>{const _0x36d829=a2_0x47b95f,_0x519a01=new UserListCommand(),_0x416c3a=program[_0x36d829(0x439)](),_0x3bb056=await createTDXInstance(_0x416c3a),_0x334c5d=await _0x519a01['run']({'options':{..._0x416c3a,..._0x406b1f},'args':[],'tdx':_0x3bb056});gracefulExit(_0x334c5d);};userCmd['action'](async _0x252420=>{const _0x2c9582=a2_0x47b95f,_0x52880f=new UserCommand(),_0x311655=program[_0x2c9582(0x439)](),_0x37568b=await createTDXInstance(_0x311655),_0x115e6e=await _0x52880f[_0x2c9582(0x41e)]({'options':{..._0x311655,..._0x252420},'args':[],'tdx':_0x37568b});gracefulExit(_0x115e6e);}),userCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x310))[a2_0x47b95f(0x3db)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x47b95f(0x3b6)](userListAction),program['command']('users')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x428))[a2_0x47b95f(0x3b6)](userListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x353))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3eb))[a2_0x47b95f(0x3b6)](async _0x2ce42c=>{const _0x3f23be=a2_0x47b95f,_0x443680=new ProfilesCommand(),_0x1aba16=program[_0x3f23be(0x439)](),_0x3244f2=await _0x443680['run']({'options':{..._0x1aba16,..._0x2ce42c},'args':[],'tdx':null});gracefulExit(_0x3244f2);});const profileCmd=program['command'](a2_0x47b95f(0x330))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x26a));profileCmd[a2_0x47b95f(0x3b6)](()=>{const _0x5b7a03=a2_0x47b95f;profileCmd[_0x5b7a03(0x349)]();});const profileListAction=async _0x10ec0a=>{const _0x4ca8ba=a2_0x47b95f,_0x345e31=new ProfilesCommand(),_0x30c448=program[_0x4ca8ba(0x439)](),_0x3ac3e6=await _0x345e31[_0x4ca8ba(0x41e)]({'options':{..._0x30c448,..._0x10ec0a},'args':[],'tdx':null});gracefulExit(_0x3ac3e6);};profileCmd[a2_0x47b95f(0x2c9)]('list')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3eb))[a2_0x47b95f(0x3b6)](profileListAction),profileCmd[a2_0x47b95f(0x2c9)]('create\x20[name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2ba))[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),a2_0x47b95f(0x3ad))[a2_0x47b95f(0x3b6)](async(_0xa2ff87,_0x27103a)=>{const _0x18a135=a2_0x47b95f,_0x4d1405=new ProfileCreateCommand(),_0x4d2707=program[_0x18a135(0x439)](),_0x19eec8=await _0x4d1405['run']({'options':{..._0x4d2707,..._0x27103a},'args':_0xa2ff87?[_0xa2ff87]:[],'tdx':null});gracefulExit(_0x19eec8);}),profileCmd['command'](a2_0x47b95f(0x262))['description'](a2_0x47b95f(0x442))['addHelpText'](a2_0x47b95f(0x438),a2_0x47b95f(0x391))[a2_0x47b95f(0x3b6)](async(_0xde76cc,_0x575aa3)=>{const _0x372193=a2_0x47b95f,_0x31a8a1=new ProfileRemoveCommand(),_0x17fe92=program[_0x372193(0x439)](),_0x2370d5=await _0x31a8a1[_0x372193(0x41e)]({'options':{..._0x17fe92,..._0x575aa3},'args':[_0xde76cc],'tdx':null});gracefulExit(_0x2370d5);}),profileCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x21b))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x41d))[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),'\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')['action'](async(_0x45c2f1,_0x5e5171)=>{const _0x317d30=a2_0x47b95f,_0x1d51dd=new ProfileSetCommand(),_0x2557e3=program[_0x317d30(0x439)](),_0x250348=await _0x1d51dd[_0x317d30(0x41e)]({'options':{..._0x2557e3,..._0x5e5171},'args':[_0x45c2f1],'tdx':null});gracefulExit(_0x250348);}),profileCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2a5))[a2_0x47b95f(0x3db)]('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')['option'](a2_0x47b95f(0x2bb),a2_0x47b95f(0x2a1))[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),a2_0x47b95f(0x1bb))[a2_0x47b95f(0x3b6)](async(_0x3f010a,_0x356a39)=>{const _0x3400ff=a2_0x47b95f,_0x37a032=new ProfileUseCommand(),_0x33e118=program['opts'](),_0x28c04d=await _0x37a032[_0x3400ff(0x41e)]({'options':{..._0x33e118,..._0x356a39},'args':[_0x3f010a],'tdx':null});gracefulExit(_0x28c04d);});const engageCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x396))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x33b)),createEngageAction=_0x28585d=>{return async(_0x4a55af,_0x56a80c)=>{const _0x5d362b=a2_0x26e5,_0x40076d=new _0x28585d(),_0x4d42e8=program['opts'](),_0x1fb421=await createTDXInstance(_0x4d42e8),_0x16904c=await _0x40076d[_0x5d362b(0x41e)]({'options':{..._0x4d42e8,..._0x56a80c},'args':[_0x4a55af],'tdx':_0x1fb421});gracefulExit(_0x16904c);};},createEngageNoArgAction=_0x4fd753=>{return async _0x1925de=>{const _0x43e553=a2_0x26e5,_0x269c79=new _0x4fd753(),_0x233e8a=program[_0x43e553(0x439)](),_0x3226a7=await createTDXInstance(_0x233e8a),_0x530b92=await _0x269c79[_0x43e553(0x41e)]({'options':{..._0x233e8a,..._0x1925de},'args':[],'tdx':_0x3226a7});gracefulExit(_0x530b92);};},campaignCmd=engageCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x32e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1ae)),campaignListAction=async(_0x59f46a,_0x285748)=>{const _0x41acb2=a2_0x47b95f,_0xb03d44=new EngageCampaignsCommand(),_0x235bbe=program[_0x41acb2(0x439)](),_0x1fdb9b=await createTDXInstance(_0x235bbe),_0x2f75b5=await _0xb03d44[_0x41acb2(0x41e)]({'options':{..._0x235bbe,..._0x285748},'args':_0x59f46a?[_0x59f46a]:[],'tdx':_0x1fdb9b});gracefulExit(_0x2f75b5);};campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x47b95f(0x25c)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x47b95f(0x25c)]('--status\x20<status>',a2_0x47b95f(0x418))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x3b6)](campaignListAction),engageCmd['command']('campaigns\x20[pattern]')['description'](a2_0x47b95f(0x1ee))['option'](a2_0x47b95f(0x2b4),a2_0x47b95f(0x434))['option']('--status\x20<status>',a2_0x47b95f(0x418))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')['action'](campaignListAction),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x29c))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x312))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2dc),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x47b95f(0x315))['description'](a2_0x47b95f(0x2b6))[a2_0x47b95f(0x3e6)]('--name\x20<name>',a2_0x47b95f(0x378))[a2_0x47b95f(0x3e6)](a2_0x47b95f(0x2b4),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x301))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x20a),a2_0x47b95f(0x292))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x281),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x47b95f(0x25c)]('--email-sender-id\x20<id>',a2_0x47b95f(0x1d6))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2a8),a2_0x47b95f(0x1de))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x41c),a2_0x47b95f(0x323))[a2_0x47b95f(0x25c)]('--timezone\x20<tz>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x47b95f(0x3b6)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x42f))[a2_0x47b95f(0x3db)]('Update\x20a\x20campaign')[a2_0x47b95f(0x25c)]('--workspace\x20<name>',a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)]('--name\x20<name>',a2_0x47b95f(0x2c4))['option'](a2_0x47b95f(0x20a),a2_0x47b95f(0x292))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x281),a2_0x47b95f(0x245))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1d8),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2a8),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x41c),a2_0x47b95f(0x323))['option'](a2_0x47b95f(0x307),a2_0x47b95f(0x41b))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2d1))['description'](a2_0x47b95f(0x1f0))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2e1),a2_0x47b95f(0x2d5))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x271))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x41f))[a2_0x47b95f(0x25c)]('--workspace\x20<name>',a2_0x47b95f(0x426))[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x421))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3c9))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x47b95f(0x2c9)]('resume\x20<name-or-id>')['description'](a2_0x47b95f(0x40d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2c3))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3f8))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x47b95f(0x1e0))[a2_0x47b95f(0x3db)]('Email\x20template\x20management'),templateListAction=async(_0x35ab8f,_0x3fce6a)=>{const _0x5b14f5=a2_0x47b95f,_0x4d1440=new EngageTemplatesCommand(),_0x3b2cd4=program[_0x5b14f5(0x439)](),_0x1fe125=await createTDXInstance(_0x3b2cd4),_0x4907df=await _0x4d1440[_0x5b14f5(0x41e)]({'options':{..._0x3b2cd4,..._0x3fce6a},'args':_0x35ab8f?[_0x35ab8f]:[],'tdx':_0x1fe125});gracefulExit(_0x4907df);};templateCmd['command']('list\x20[pattern]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2ff))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')['action'](templateListAction),engageCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x43d))['description'](a2_0x47b95f(0x28d))['option'](a2_0x47b95f(0x423),'Workspace\x20name')['action'](templateListAction),templateCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x29c))['description'](a2_0x47b95f(0x341))['option'](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2dc),a2_0x47b95f(0x3bf))[a2_0x47b95f(0x3b6)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x47b95f(0x2c9)]('create')['description']('Create\x20an\x20email\x20template')['requiredOption'](a2_0x47b95f(0x23b),'Template\x20name')[a2_0x47b95f(0x3e6)](a2_0x47b95f(0x23c),a2_0x47b95f(0x2de))[a2_0x47b95f(0x3e6)]('--html\x20<html>',a2_0x47b95f(0x2ca))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x301))['option']('--plaintext\x20<text>',a2_0x47b95f(0x3c4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1dd),a2_0x47b95f(0x1df),_0x6a0e9a=>{const _0x392c8d=a2_0x47b95f;if(!['beefree',_0x392c8d(0x400)][_0x392c8d(0x236)](_0x6a0e9a))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x392c8d(0x1ab)+_0x6a0e9a+_0x392c8d(0x2bd));return _0x6a0e9a;})[a2_0x47b95f(0x3b6)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x47b95f(0x2c9)]('update\x20<name-or-id>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x28a))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x23b),a2_0x47b95f(0x297))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x23c),a2_0x47b95f(0x2de))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x35e),a2_0x47b95f(0x2ca))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1ed),a2_0x47b95f(0x3c4))[a2_0x47b95f(0x3b6)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2d1))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x40f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2e1),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x47b95f(0x3db)]('Workspace\x20management'),workspaceListAction=async(_0x327eaa,_0xd6bec6)=>{const _0x3af0c2=a2_0x47b95f,_0x15ff0b=new EngageWorkspacesCommand(),_0x542190=program['opts'](),_0x45cb9b=await createTDXInstance(_0x542190),_0x5d0f22=await _0x15ff0b[_0x3af0c2(0x41e)]({'options':{..._0x542190,..._0xd6bec6},'args':_0x327eaa?[_0x327eaa]:[],'tdx':_0x45cb9b});gracefulExit(_0x5d0f22);};workspaceCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1bc))[a2_0x47b95f(0x3b6)](workspaceListAction),engageCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x24a))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1fd))['action'](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3fe))[a2_0x47b95f(0x25c)]('--full',a2_0x47b95f(0x3bf))[a2_0x47b95f(0x3b6)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x315))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x322))[a2_0x47b95f(0x3e6)](a2_0x47b95f(0x23b),a2_0x47b95f(0x426))['option'](a2_0x47b95f(0x20a),a2_0x47b95f(0x2ec))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x47b95f(0x42f))['description'](a2_0x47b95f(0x1e4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x23b),a2_0x47b95f(0x3ff))[a2_0x47b95f(0x25c)]('--description\x20<desc>',a2_0x47b95f(0x2ec))[a2_0x47b95f(0x3b6)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x47b95f(0x2c9)]('delete\x20<name-or-id>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3da))['option'](a2_0x47b95f(0x2e1),'Skip\x20confirmation\x20prompt')[a2_0x47b95f(0x3b6)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2a5))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x36a))[a2_0x47b95f(0x3b6)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x47b95f(0x2c9)]('connection')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x304)),connectionListAction=async _0x123852=>{const _0x1e7839=a2_0x47b95f,_0x4d6088=new ConnectionListCommand(),_0x17917b=program[_0x1e7839(0x439)](),_0x469860=await createTDXInstance(_0x17917b),_0x12f03d=await _0x4d6088[_0x1e7839(0x41e)]({'options':{..._0x17917b,..._0x123852},'args':[],'tdx':_0x469860});gracefulExit(_0x12f03d);};connectionCmd['command']('list')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x27f))[a2_0x47b95f(0x3b6)](connectionListAction),program[a2_0x47b95f(0x2c9)]('connections',{'hidden':!![]})[a2_0x47b95f(0x3db)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x47b95f(0x3b6)](connectionListAction),connectionCmd['command']('show\x20<name>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x204))[a2_0x47b95f(0x3b6)](async(_0x2677a5,_0x464ba5)=>{const _0x211a07=a2_0x47b95f,_0x250dec=new ConnectionShowCommand(),_0x2cb5b6=program[_0x211a07(0x439)](),_0x5b8dd1=await createTDXInstance(_0x2cb5b6),_0x45e18b=await _0x250dec[_0x211a07(0x41e)]({'options':{..._0x2cb5b6,..._0x464ba5},'args':[_0x2677a5],'tdx':_0x5b8dd1});gracefulExit(_0x45e18b);}),connectionCmd['command'](a2_0x47b95f(0x221))[a2_0x47b95f(0x3db)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x47b95f(0x3b6)](async(_0x23ba5e,_0x1f1b7f)=>{const _0x21d03d=a2_0x47b95f,_0x1c01cf=new ConnectionSchemaCommand(),_0x563ba8=program['opts'](),_0x18345a=await createTDXInstance(_0x563ba8),_0x1b6673=await _0x1c01cf[_0x21d03d(0x41e)]({'options':{..._0x563ba8,..._0x1f1b7f},'args':[_0x23ba5e],'tdx':_0x18345a});gracefulExit(_0x1b6673);}),connectionCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x35d))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3fb))[a2_0x47b95f(0x3b6)](async _0x1f50ef=>{const _0x58518f=new ConnectionTypesCommand(),_0x46ca90=program['opts'](),_0x52ec32=await createTDXInstance(_0x46ca90),_0x283e97=await _0x58518f['run']({'options':{..._0x46ca90,..._0x1f50ef},'args':[],'tdx':_0x52ec32});gracefulExit(_0x283e97);}),connectionCmd[a2_0x47b95f(0x2c9)]('settings\x20<type>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x33c))['action'](async(_0x34cae2,_0x1e64cb)=>{const _0x4bafcc=a2_0x47b95f,_0x3b7a12=new ConnectionSettingsCommand(),_0x251f31=program[_0x4bafcc(0x439)](),_0x3e9663=await createTDXInstance(_0x251f31),_0x19549c=await _0x3b7a12['run']({'options':{..._0x251f31,..._0x1e64cb},'args':[_0x34cae2],'tdx':_0x3e9663});gracefulExit(_0x19549c);});const journeyCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3d2))[a2_0x47b95f(0x3db)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x412b9c,_0x1160fe)=>{const _0x3bc2e6=a2_0x47b95f,_0x197ea6=new JourneyListCommand(),_0x42f719=program[_0x3bc2e6(0x439)](),_0x5b2ef6=await createTDXInstance(_0x42f719),_0x160d94=await _0x197ea6['run']({'options':{..._0x42f719,..._0x1160fe},'args':_0x412b9c?[_0x412b9c]:[],'tdx':_0x5b2ef6});gracefulExit(_0x160d94);};journeyCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2f2))[a2_0x47b95f(0x3b6)](journeyListAction),journeyCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3e0))[a2_0x47b95f(0x3db)]('Show\x20journey\x20details')['option'](a2_0x47b95f(0x321),'Open\x20journey\x20in\x20web\x20browser')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2db),'Include\x20execution\x20statistics')[a2_0x47b95f(0x3b6)](async(_0x1295cb,_0x26e38b)=>{const _0x2a1610=a2_0x47b95f,_0x3e91d1=new JourneyViewCommand(),_0x41b505=program[_0x2a1610(0x439)](),_0x592bad=await createTDXInstance(_0x41b505),_0xe0cec8=await _0x3e91d1[_0x2a1610(0x41e)]({'options':{..._0x41b505,..._0x26e38b},'args':[_0x1295cb],'tdx':_0x592bad});gracefulExit(_0xe0cec8);}),journeyCmd['command']('stats\x20<name-or-path>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1ad))['option'](a2_0x47b95f(0x42b),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x47b95f(0x3b6)](async(_0x1e319f,_0x1e7388)=>{const _0x33a0fc=a2_0x47b95f,_0x441062=new JourneyStatsCommand(),_0x49aab5=program[_0x33a0fc(0x439)](),_0x51c3a5=await createTDXInstance(_0x49aab5),_0x20de3d=await _0x441062[_0x33a0fc(0x41e)]({'options':{..._0x49aab5,..._0x1e7388},'args':[_0x1e319f],'tdx':_0x51c3a5});gracefulExit(_0x20de3d);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x21d))[a2_0x47b95f(0x3b6)](async(_0x39fceb,_0x415c7d)=>{const _0x5c0a29=a2_0x47b95f,_0x151209=new JourneyPauseCommand(),_0x4f78ef=program[_0x5c0a29(0x439)](),_0x3c36eb=await createTDXInstance(_0x4f78ef),_0x2989b9=await _0x151209['run']({'options':{..._0x4f78ef,..._0x415c7d},'args':[_0x39fceb],'tdx':_0x3c36eb});gracefulExit(_0x2989b9);}),journeyCmd['command']('resume\x20<name-or-path>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x346))[a2_0x47b95f(0x3b6)](async(_0x1cff8a,_0x4d3d02)=>{const _0x2599cc=new JourneyResumeCommand(),_0x423e0f=program['opts'](),_0x142081=await createTDXInstance(_0x423e0f),_0x3f1e38=await _0x2599cc['run']({'options':{..._0x423e0f,..._0x4d3d02},'args':[_0x1cff8a],'tdx':_0x142081});gracefulExit(_0x3f1e38);}),journeyCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2f5))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3ce))['option'](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x1c0))[a2_0x47b95f(0x3b6)](async(_0x2e7365,_0x2e8737)=>{const _0x24e516=a2_0x47b95f,_0x1462ca=new JourneyPullCommand(),_0x63b15=program['opts'](),_0x10b088=await createTDXInstance(_0x63b15),_0x410363=await _0x1462ca[_0x24e516(0x41e)]({'options':{..._0x63b15,..._0x2e8737},'args':_0x2e7365?[_0x2e7365]:[],'tdx':_0x10b088});gracefulExit(_0x410363);}),journeyCmd['command'](a2_0x47b95f(0x3c6))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3d9))[a2_0x47b95f(0x3b6)](async(_0x452a3d,_0x23b6df)=>{const _0x84e890=a2_0x47b95f,_0x26b1dd=new JourneyPushCommand(),_0x45f198=program[_0x84e890(0x439)](),_0xa8503a=await createTDXInstance(_0x45f198),_0x53b82a=await _0x26b1dd[_0x84e890(0x41e)]({'options':{..._0x45f198,..._0x23b6df},'args':_0x452a3d?[_0x452a3d]:[],'tdx':_0xa8503a});gracefulExit(_0x53b82a);}),journeyCmd[a2_0x47b95f(0x2c9)]('validate\x20[target]')['description'](a2_0x47b95f(0x1d0))[a2_0x47b95f(0x3b6)](async(_0x877713,_0x2f1e2b)=>{const _0x3c6e84=a2_0x47b95f,_0x166033=new JourneyValidateCommand(),_0x1c858f=program['opts'](),_0x4b2967=await createTDXInstance(_0x1c858f),_0x387d53=await _0x166033[_0x3c6e84(0x41e)]({'options':{..._0x1c858f,..._0x2f1e2b},'args':_0x877713?[_0x877713]:[],'tdx':_0x4b2967});gracefulExit(_0x387d53);}),program[a2_0x47b95f(0x2c9)]('journeys\x20[pattern]')['description'](a2_0x47b95f(0x352))[a2_0x47b95f(0x3b6)](journeyListAction);const agentSyncCmd=program['command'](a2_0x47b95f(0x316))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2cf));agentSyncCmd[a2_0x47b95f(0x2c9)]('pull\x20[project]\x20[agent-name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x383))[a2_0x47b95f(0x25c)]('-o,\x20--output\x20<dir>',a2_0x47b95f(0x200))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x22f),a2_0x47b95f(0x299))[a2_0x47b95f(0x3b6)](async(_0x5df2eb,_0x4f9d01,_0x52aa2b)=>{const _0x55ae1f=a2_0x47b95f,_0x11498b=new AgentPullCommand(),_0x4d1b9a=program[_0x55ae1f(0x439)](),_0x428aec=await createTDXInstance(_0x4d1b9a),_0x37c802=[];if(_0x5df2eb)_0x37c802[_0x55ae1f(0x28e)](_0x5df2eb);if(_0x4f9d01)_0x37c802[_0x55ae1f(0x28e)](_0x4f9d01);const _0x320185=await _0x11498b[_0x55ae1f(0x41e)]({'options':{..._0x4d1b9a,..._0x52aa2b},'args':_0x37c802,'tdx':_0x428aec});gracefulExit(_0x320185);}),agentSyncCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x20f))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3f2))[a2_0x47b95f(0x25c)]('-f,\x20--force',a2_0x47b95f(0x361))[a2_0x47b95f(0x3b6)](async(_0x3f85b6,_0x11bc3e)=>{const _0x3b62d9=a2_0x47b95f,_0x3962ae=new AgentPushCommand(),_0x31fea1=program[_0x3b62d9(0x439)](),_0x180e06=await createTDXInstance(_0x31fea1),_0x46a1ca=await _0x3962ae[_0x3b62d9(0x41e)]({'options':{..._0x31fea1,..._0x11bc3e},'args':_0x3f85b6?[_0x3f85b6]:[],'tdx':_0x180e06});gracefulExit(_0x46a1ca);}),agentSyncCmd['command'](a2_0x47b95f(0x2d8))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x39a))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x347),a2_0x47b95f(0x31e))[a2_0x47b95f(0x3b6)](async(_0x48e356,_0x3fe2ce)=>{const _0x52fd64=a2_0x47b95f,_0xb1d1e2=new AgentCloneCommand(),_0x199f89=program[_0x52fd64(0x439)](),_0x3ceca7=await createTDXInstance(_0x199f89),_0x550f87=await _0xb1d1e2['run']({'options':{..._0x199f89,..._0x3fe2ce},'args':_0x48e356?[_0x48e356]:[],'tdx':_0x3ceca7});gracefulExit(_0x550f87);}),agentSyncCmd['command'](a2_0x47b95f(0x3ca))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x37d))['option'](a2_0x47b95f(0x345),a2_0x47b95f(0x205))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2a6),a2_0x47b95f(0x3de))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x2aa))[a2_0x47b95f(0x25c)]('--no-eval','Generate\x20test\x20conversations\x20without\x20evaluation')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x37b),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')['action'](async(_0x3bd032,_0x2b08e4)=>{const _0x5984b2=a2_0x47b95f,_0x2da9dc=new AgentTestCommand(),_0x2bfcc5=program[_0x5984b2(0x439)](),_0x33bc5f=await createTDXInstance(_0x2bfcc5),_0x503bc0=await _0x2da9dc[_0x5984b2(0x41e)]({'options':{..._0x2bfcc5,..._0x2b08e4},'args':_0x3bd032?[_0x3bd032]:[],'tdx':_0x33bc5f});gracefulExit(_0x503bc0);}),agentSyncCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3e7))[a2_0x47b95f(0x3b6)](llmAgentListAction),agentSyncCmd['command'](a2_0x47b95f(0x276))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x373))[a2_0x47b95f(0x3b6)](async(_0x154c7f,_0x3f88d6)=>{const _0x495303=a2_0x47b95f,_0x5e0eb2=new LLMAgentShowCommand(),_0x1038a8=program[_0x495303(0x439)](),_0x2ef77b=await createTDXInstance(_0x1038a8),_0x373b9a=await _0x5e0eb2[_0x495303(0x41e)]({'options':{..._0x1038a8,..._0x3f88d6},'args':[_0x154c7f],'tdx':_0x2ef77b});gracefulExit(_0x373b9a);}),agentSyncCmd[a2_0x47b95f(0x2c9)]('create\x20<name>')[a2_0x47b95f(0x3db)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1d7),a2_0x47b95f(0x395))[a2_0x47b95f(0x25c)]('--model\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x47b95f(0x327))[a2_0x47b95f(0x25c)]('--starter-message\x20<text>',a2_0x47b95f(0x1b1))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x293),a2_0x47b95f(0x3b9),'4')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x313),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x47b95f(0x420))[a2_0x47b95f(0x3b6)](async(_0x1417b9,_0x4a681b)=>{const _0x2bd54a=new LLMAgentCreateCommand(),_0x2510f8=program['opts'](),_0x38be52=await createTDXInstance(_0x2510f8),_0x1bd47e=await _0x2bd54a['run']({'options':{..._0x2510f8,..._0x4a681b},'args':[_0x1417b9],'tdx':_0x38be52});gracefulExit(_0x1bd47e);}),agentSyncCmd[a2_0x47b95f(0x2c9)]('update\x20<agent-name>')['description'](a2_0x47b95f(0x344))['option'](a2_0x47b95f(0x39e),a2_0x47b95f(0x3cd))['option'](a2_0x47b95f(0x3b4),a2_0x47b95f(0x429))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),'Agent\x20description')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x43c),'Starter\x20message')[a2_0x47b95f(0x3b6)](async(_0x374f91,_0x345a18)=>{const _0x577283=a2_0x47b95f,_0x41a068=new LLMAgentUpdateCommand(),_0x171e36=program[_0x577283(0x439)](),_0x39ce63=await createTDXInstance(_0x171e36),_0x9093d7=await _0x41a068[_0x577283(0x41e)]({'options':{..._0x171e36,..._0x345a18},'args':[_0x374f91],'tdx':_0x39ce63});gracefulExit(_0x9093d7);}),agentSyncCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3bc))[a2_0x47b95f(0x3db)]('Delete\x20an\x20agent')['action'](async(_0x4dd089,_0xdd7d)=>{const _0x2947f1=a2_0x47b95f,_0x220cb1=new LLMAgentDeleteCommand(),_0x3a2d02=program[_0x2947f1(0x439)](),_0x247ebd=await createTDXInstance(_0x3a2d02),_0x417847=await _0x220cb1[_0x2947f1(0x41e)]({'options':{..._0x3a2d02,..._0xdd7d},'args':[_0x4dd089],'tdx':_0x247ebd});gracefulExit(_0x417847);}),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1b5),{'hidden':!![]})[a2_0x47b95f(0x3b6)](()=>{const _0x496e18=a2_0x47b95f;function _0x19d903(_0x3efc8b,_0x5ce788){const _0x3fddbb=a2_0x26e5,_0x4ba3a6=[];for(const _0x53dea0 of _0x3efc8b[_0x3fddbb(0x388)]){if(_0x53dea0['_hidden'])continue;const _0x5dec32=_0x5ce788?_0x5ce788+'\x20'+_0x53dea0[_0x3fddbb(0x273)]():_0x53dea0[_0x3fddbb(0x273)](),_0x530b82=_0x5dec32[_0x3fddbb(0x1ca)]('\x20')[0x0],_0x44808d=COMMAND_CATEGORIES[_0x3fddbb(0x288)](_0x1d68f5=>_0x1d68f5[_0x3fddbb(0x388)][_0x3fddbb(0x236)](_0x530b82)),_0x52e17c=_0x44808d?.[_0x3fddbb(0x273)]??'';if(_0x53dea0[_0x3fddbb(0x388)][_0x3fddbb(0x240)]>0x0)_0x4ba3a6['push'](..._0x19d903(_0x53dea0,_0x5dec32));else{const _0x5b3db6=(_0x53dea0[_0x3fddbb(0x227)]||[])[_0x3fddbb(0x1d2)](_0xd0c3f9=>{const _0xd77fa3=_0x3fddbb,_0x342cb4=_0xd0c3f9[_0xd77fa3(0x2d0)]?_0xd0c3f9[_0xd77fa3(0x273)]()+_0xd77fa3(0x32b):_0xd0c3f9['name']();return _0xd0c3f9[_0xd77fa3(0x425)]?'<'+_0x342cb4+'>':'['+_0x342cb4+']';})[_0x3fddbb(0x335)]('\x20'),_0x4bf2b2=_0x53dea0[_0x3fddbb(0x2fa)]['filter'](_0x135e35=>!_0x135e35[_0x3fddbb(0x3e8)]&&_0x135e35[_0x3fddbb(0x43b)]!==_0x3fddbb(0x3f3))[_0x3fddbb(0x1d2)](_0x4095a4=>({'flags':_0x4095a4[_0x3fddbb(0x24c)],'description':_0x4095a4[_0x3fddbb(0x3db)]}));_0x4ba3a6[_0x3fddbb(0x28e)]({'name':_0x5dec32,'description':_0x53dea0['description'](),'group':_0x52e17c,'usage':_0x5b3db6,'options':_0x4bf2b2});}}return _0x4ba3a6;}console[_0x496e18(0x320)](JSON['stringify'](_0x19d903(program,''))),process[_0x496e18(0x3f7)](0x0);});export{program};export function runCLI(){const _0x18d728=a2_0x47b95f,_0x3a72a3=!process[_0x18d728(0x212)]['slice'](0x2)[_0x18d728(0x240)];showBriefHelp=_0x3a72a3,program[_0x18d728(0x1ef)](process[_0x18d728(0x212)]);_0x3a72a3&&program['outputHelp']();if(process[_0x18d728(0x37f)][_0x18d728(0x3a6)]&&process[_0x18d728(0x212)][_0x18d728(0x240)]>0x2&&!isDevVersion()){const _0xbe7189=loadReleaseChannel();checkForUpdate(currentVersion,_0xbe7189)[_0x18d728(0x248)](_0x129b73=>{_0x129b73&&displayUpdateNotification(_0x129b73);})[_0x18d728(0x2ad)](()=>{});}}