@treasuredata/tdx 0.25.5 → 0.25.7

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 (190) 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.d.ts +40 -0
  27. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  28. package/dist/commands/parent-segment-command.js +1 -1
  29. package/dist/commands/parent-segment-command.js.map +1 -1
  30. package/dist/commands/profile-command.js +1 -1
  31. package/dist/commands/profiles-command.js +1 -1
  32. package/dist/commands/query-command.js +1 -1
  33. package/dist/commands/schedule-command.js +1 -1
  34. package/dist/commands/segment-command.js +1 -1
  35. package/dist/commands/segment-create-command.js +1 -1
  36. package/dist/commands/segment-fields-command.js +1 -1
  37. package/dist/commands/segment-pull-command.js +1 -1
  38. package/dist/commands/segment-push-command.js +1 -1
  39. package/dist/commands/segment-update-command.js +1 -1
  40. package/dist/commands/segment-use-command.js +1 -1
  41. package/dist/commands/segment-validate-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/status-command.js +1 -1
  45. package/dist/commands/tables.js +1 -1
  46. package/dist/commands/unset-command.js +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/user-command.js +1 -1
  49. package/dist/commands/workflow-command.js +1 -1
  50. package/dist/core/auth.js +1 -1
  51. package/dist/core/command-output.js +1 -1
  52. package/dist/core/config.js +1 -1
  53. package/dist/core/connection-cache.js +1 -1
  54. package/dist/core/constants.js +1 -1
  55. package/dist/core/credential-cache.js +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/keychain.js +1 -1
  58. package/dist/core/profile.js +1 -1
  59. package/dist/core/project-config.js +1 -1
  60. package/dist/core/session.js +1 -1
  61. package/dist/core/user-cache.js +1 -1
  62. package/dist/core/version.js +1 -1
  63. package/dist/index.js +1 -1
  64. package/dist/mcp/server.js +1 -1
  65. package/dist/mcp/tools/index.js +1 -1
  66. package/dist/mcp/tools/tdx-run.js +1 -1
  67. package/dist/mcp/tools/tdx-search.js +1 -1
  68. package/dist/mcp/utils.js +1 -1
  69. package/dist/proxy/claude-usage-tracker.js +1 -1
  70. package/dist/proxy/passthrough-server.js +1 -1
  71. package/dist/proxy/sse-usage-parser.js +1 -1
  72. package/dist/sdk/agent/agent-config.js +1 -1
  73. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  74. package/dist/sdk/agent/agent-yaml.js +1 -1
  75. package/dist/sdk/agent/test/evaluator.js +1 -1
  76. package/dist/sdk/agent/test/executor.js +1 -1
  77. package/dist/sdk/agent/test/index.js +1 -1
  78. package/dist/sdk/agent/test/output.js +1 -1
  79. package/dist/sdk/agent/test/parser.js +1 -1
  80. package/dist/sdk/api.js +1 -1
  81. package/dist/sdk/client/cdp-api-client.js +1 -1
  82. package/dist/sdk/client/endpoints.js +1 -1
  83. package/dist/sdk/client/engage-api-client.js +1 -1
  84. package/dist/sdk/client/http-client.js +1 -1
  85. package/dist/sdk/client/llm-api-client.js +1 -1
  86. package/dist/sdk/client/rate-limiter.js +1 -1
  87. package/dist/sdk/client/td-api-client.js +1 -1
  88. package/dist/sdk/client/trino-api-client.js +1 -1
  89. package/dist/sdk/client/workflow-client.js +1 -1
  90. package/dist/sdk/connection-validator.js +1 -1
  91. package/dist/sdk/connection.js +1 -1
  92. package/dist/sdk/engage.js +1 -1
  93. package/dist/sdk/errors.js +1 -1
  94. package/dist/sdk/index.d.ts +12 -0
  95. package/dist/sdk/index.d.ts.map +1 -1
  96. package/dist/sdk/index.js +1 -1
  97. package/dist/sdk/index.js.map +1 -1
  98. package/dist/sdk/io/index.js +1 -1
  99. package/dist/sdk/io/node-filesystem.js +1 -1
  100. package/dist/sdk/job.js +1 -1
  101. package/dist/sdk/journey.js +1 -1
  102. package/dist/sdk/llm/chat-cache.js +1 -1
  103. package/dist/sdk/llm/index.js +1 -1
  104. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  105. package/dist/sdk/llm/model-factors.js +1 -1
  106. package/dist/sdk/personalization.d.ts +105 -0
  107. package/dist/sdk/personalization.d.ts.map +1 -0
  108. package/dist/sdk/personalization.js +1 -0
  109. package/dist/sdk/personalization.js.map +1 -0
  110. package/dist/sdk/query/index.js +1 -1
  111. package/dist/sdk/query/sql-parser.js +1 -1
  112. package/dist/sdk/realtime.d.ts +113 -0
  113. package/dist/sdk/realtime.d.ts.map +1 -0
  114. package/dist/sdk/realtime.js +1 -0
  115. package/dist/sdk/realtime.js.map +1 -0
  116. package/dist/sdk/schedule.js +1 -1
  117. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  118. package/dist/sdk/segment/fields-display.js +1 -1
  119. package/dist/sdk/segment/file-discovery.js +1 -1
  120. package/dist/sdk/segment/journey-utils.js +1 -1
  121. package/dist/sdk/segment/journey-yaml.js +1 -1
  122. package/dist/sdk/segment/parent-segment-preview.d.ts +42 -0
  123. package/dist/sdk/segment/parent-segment-preview.d.ts.map +1 -1
  124. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  125. package/dist/sdk/segment/parent-segment-preview.js.map +1 -1
  126. package/dist/sdk/segment/parent-segment-yaml.d.ts +2 -2
  127. package/dist/sdk/segment/parent-segment-yaml.d.ts.map +1 -1
  128. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  129. package/dist/sdk/segment/parent-segment-yaml.js.map +1 -1
  130. package/dist/sdk/segment/pull-workflow.js +1 -1
  131. package/dist/sdk/segment/push-workflow.js +1 -1
  132. package/dist/sdk/segment/resolution-context.js +1 -1
  133. package/dist/sdk/segment/segment-path-parser.js +1 -1
  134. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  135. package/dist/sdk/segment/target-resolution.js +1 -1
  136. package/dist/sdk/segment/tdx-config.js +1 -1
  137. package/dist/sdk/segment/types/parent-segment-def.d.ts +84 -0
  138. package/dist/sdk/segment/types/parent-segment-def.d.ts.map +1 -1
  139. package/dist/sdk/segment/validate-files.js +1 -1
  140. package/dist/sdk/segment/yaml-validator.js +1 -1
  141. package/dist/sdk/segment.d.ts +22 -0
  142. package/dist/sdk/segment.d.ts.map +1 -1
  143. package/dist/sdk/segment.js +1 -1
  144. package/dist/sdk/segment.js.map +1 -1
  145. package/dist/sdk/types/index.js +1 -1
  146. package/dist/sdk/types/progress.js +1 -1
  147. package/dist/sdk/user.js +1 -1
  148. package/dist/sdk/util/format-detector.js +1 -1
  149. package/dist/sdk/util/formatters.js +1 -1
  150. package/dist/sdk/util/index.js +1 -1
  151. package/dist/sdk/util/tree-formatter.js +1 -1
  152. package/dist/sdk/workflow/archive-validation.js +1 -1
  153. package/dist/sdk/workflow/clone-workflow.js +1 -1
  154. package/dist/sdk/workflow/index.js +1 -1
  155. package/dist/sdk/workflow/pull-workflow.js +1 -1
  156. package/dist/sdk/workflow/push-workflow.js +1 -1
  157. package/dist/sdk/workflow/tdx-config.js +1 -1
  158. package/dist/sdk/workflow/workflow-utils.js +1 -1
  159. package/dist/test-utils/command-runner.js +1 -1
  160. package/dist/test-utils/factories.js +1 -1
  161. package/dist/test-utils/fixtures.js +1 -1
  162. package/dist/test-utils/http-mock.js +1 -1
  163. package/dist/test-utils/index.js +1 -1
  164. package/dist/utils/async.js +1 -1
  165. package/dist/utils/colors.js +1 -1
  166. package/dist/utils/diff.js +1 -1
  167. package/dist/utils/file-permissions.js +1 -1
  168. package/dist/utils/global-cache.js +1 -1
  169. package/dist/utils/json-loader.js +1 -1
  170. package/dist/utils/local-cache.js +1 -1
  171. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  172. package/dist/utils/logger/formatters/index.js +1 -1
  173. package/dist/utils/logger/handlers/console-handler.js +1 -1
  174. package/dist/utils/logger/handlers/file-handler.js +1 -1
  175. package/dist/utils/logger/handlers/index.js +1 -1
  176. package/dist/utils/logger/handlers/null-handler.js +1 -1
  177. package/dist/utils/logger/index.js +1 -1
  178. package/dist/utils/logger/logger.js +1 -1
  179. package/dist/utils/logger/types.js +1 -1
  180. package/dist/utils/option-validation.js +1 -1
  181. package/dist/utils/port.js +1 -1
  182. package/dist/utils/process.js +1 -1
  183. package/dist/utils/prompt.js +1 -1
  184. package/dist/utils/spinner.js +1 -1
  185. package/dist/utils/sse-parser.js +1 -1
  186. package/dist/utils/string-utils.js +1 -1
  187. package/dist/utils/table-ref-parser.js +1 -1
  188. package/dist/utils/tdx-logger.js +1 -1
  189. package/dist/utils/version-check.js +1 -1
  190. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x4bb303=a2_0x2e2c;(function(_0x3c0e48,_0x11a824){const _0x5ddefc=a2_0x2e2c,_0x537484=_0x3c0e48();while(!![]){try{const _0x34cb52=parseInt(_0x5ddefc(0x314))/0x1+parseInt(_0x5ddefc(0x303))/0x2*(parseInt(_0x5ddefc(0x307))/0x3)+-parseInt(_0x5ddefc(0x259))/0x4*(parseInt(_0x5ddefc(0x282))/0x5)+parseInt(_0x5ddefc(0x1e5))/0x6*(-parseInt(_0x5ddefc(0x190))/0x7)+-parseInt(_0x5ddefc(0x344))/0x8+parseInt(_0x5ddefc(0x24c))/0x9+parseInt(_0x5ddefc(0x3e9))/0xa;if(_0x34cb52===_0x11a824)break;else _0x537484['push'](_0x537484['shift']());}catch(_0x5276cb){_0x537484['push'](_0x537484['shift']());}}}(a2_0x3519,0x232fe));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';function a2_0x3519(){const _0x48b977=['[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','create','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--no-color','help','--revision\x20<revision>','AI-native\x20CLI\x20for\x20Treasure\x20Data','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','users','Set\x20a\x20profile\x20configuration\x20value','argument','--description\x20<text>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Email\x20sender\x20ID\x20for\x20delivery','resume\x20<name-or-id>','stderr','--name\x20<name>','Read\x20query\x20from\x20file','Update\x20a\x20scheduled\x20query','--limit\x20<number>','Create\x20a\x20new\x20LLM\x20project','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','databases\x20[pattern]','Job\x20priority\x20(-2\x20to\x202)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','connection','-d,\x20--database\x20<database>','journeys\x20[pattern]','view\x20[name]','Workflow\x20session\x20management','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Push\x20without\x20confirmation','validate\x20[target]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','show\x20<agent-name>','trace','Starter\x20message','Unknown\x20action:\x20','--segment\x20<path>','show\x20[segment_name]','--dry-run','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','-w,\x20--web','--add-behaviors\x20<json>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Workflow\x20attempt\x20management','workflows\x20[project]','profile','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Output\x20as\x20JSON','options','--timezone\x20<tz>','Directory\x20does\x20not\x20exist:\x20','format','--follow','name','--jsonl','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Remove\x20API\x20key\x20from\x20system\x20keychain','Remove\x20a\x20profile','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Behaviors\x20from\x20JSON\x20file','--chat-id\x20<id>','--table','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--no-count-population','Show\x20authentication\x20status\x20and\x20current\x20context','Delete\x20a\x20campaign','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--site\x20<site>','Create\x20a\x20new\x20profile','Include\x20retried\x20attempts\x20(for\x20list)','Delay\x20in\x20seconds\x20before\x20execution','--debug','types','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','forEach','describe\x20[table]','--session-id\x20<id>','remove\x20<name>','map','Campaign\x20name','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','--rule-file\x20<file>','Customer\x20group\x20from\x20JSON\x20file','isArray','List\x20secret\x20keys\x20for\x20a\x20project','Options:','--max-depth\x20<depth>','-H,\x20--header\x20<header>','configureHelp','settings\x20<type>','Add\x20attributes\x20from\x20JSON\x20file','Attributes\x20from\x20JSON\x20file','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','argv','--engine-version\x20<version>','--html\x20<html>','Output\x20file\x20path\x20(default:\x20<name>.yml)','Open\x20parent\x20segment\x20in\x20web\x20browser','tables\x20[pattern]','action','Show\x20journey\x20details','pull\x20[project]\x20[agent-name]','Agent\x20description','-p,\x20--profile\x20<name>','Updated\x20description','usage','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','campaign','Path\x20is\x20not\x20a\x20directory:\x20','padWidth','3048uTXxJN','campaigns\x20[pattern]','Updated\x20timezone','-y,\x20--yes','132tlhnqS','Run\x20a\x20scheduled\x20query\x20immediately','repeat','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Output\x20folder\x20(default:\x20{project_name}.llm)','set','--reason\x20<text>','templates\x20[pattern]','tdx\x20','Ending\x20offset\x20(default:\x2020)','length','New\x20campaign\x20name','Database\x20management\x20commands','261188CjzfGS','DEBUG','Folder\x20name\x20for\x20organization','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Updated\x20schedule\x20option','get','Duplicate\x20a\x20campaign','Name\x20for\x20the\x20new\x20project\x20(required)','addHelpText','preview\x20[name]','clear','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','agents\x20[pattern]','--delay\x20<seconds>','Open\x20journey\x20in\x20web\x20browser','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','profiles','Attributes\x20as\x20JSON\x20string','set\x20<args...>','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Show\x20master\x20table\x20sample\x20data','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','auth','Show\x20the\x20most\x20recent\x20chat','status','New\x20segment\x20name','claude\x20[args...]','--session\x20<id>','--version','slice','upload\x20[project-name-or-dir]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','desc\x20[segment_name]','filter','--kind\x20<type>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','tasks','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','folders\x20<parent_name>','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Show\x20job\x20details','json','--retry-limit\x20<0~32>','--type\x20<type>','--attributes\x20<json>','Include\x20retried\x20attempts','803128NkirRB','0.7','Arguments:','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','Save\x20output\x20to\x20file','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','HTML\x20template\x20content','Preview\x20without\x20creating\x20the\x20project','Plaintext\x20template\x20content','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','allowUnknownOption','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','\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','workflow','Job\x20management\x20commands','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','End\x20time\x20filter\x20(ISO\x208601\x20format)','schedule','parent-segment','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','create\x20[name]','result\x20<job-id>','restore\x20<folder>','List\x20journeys\x20in\x20current\x20context','Show\x20segment\x20details\x20(alias\x20for\x20view)','Query\x20engine\x20version','--catalog\x20<catalog>','--schedule-type\x20<type>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Workspace\x20management','registeredArguments','Update\x20an\x20existing\x20agent','Set\x20operation\x20timeout\x20in\x20seconds','INVALID_ARGUMENT','Skip\x20population\x20counting','use\x20<path>','Add\x20behaviors\x20as\x20JSON\x20string','Resume\x20from\x20specific\x20task\x20(retry)','--name\x20<new_name>','option','--parent-segment\x20<name>','pull\x20[name]','Skip\x20confirmation\x20prompt','command','--to\x20<timestamp>','--subject\x20<subject>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--temperature\x20<n>','Run\x20specific\x20tests\x20(comma-separated)','--starter-message\x20<text>','[task-name]','sql\x20[name]','log','session','Set\x20or\x20show\x20parent\x20segment\x20context','push','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','resume\x20<name-or-path>','parents\x20[pattern]','then','\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','Workflow\x20(Digdag)\x20management\x20commands','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Delete\x20an\x20LLM\x20project','download\x20<project-name>\x20[output-dir]','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','-c,\x20--continue','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Segment\x20description','gitRevision','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','--status\x20<status>','Campaign\x20management','test\x20[path]','Database\x20to\x20use\x20(overrides\x20context)','isTTY','--master','Run\x20Trino\x20query\x20with\x20streaming\x20results','--enriched','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','parse','--behavior\x20[name]','Invalid\x20editor\x20type:\x20','update\x20<segment_name>','Update\x20an\x20email\x20template','projects\x20[pattern]','delete\x20<project-name-or-id>','join','Workspace\x20name\x20(required)','use\x20<project-name>','Clear\x20workflow\x20project\x20context','-f,\x20--file\x20<path>','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--json','Make\x20segment\x20invisible\x20(default:\x20visible)','-d,\x20--database\x20<name>','--trace','validate\x20[name]','Run\x20tests\x20for\x20an\x20LLM\x20agent','segments\x20[path]','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Show\x20only\x20master\x20table\x20validation','Pause\x20a\x20campaign','List\x20available\x20connector\x20types','--format\x20<format>','Output\x20directory','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--last','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','create\x20<segment_name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Email\x20template\x20management','Show\x20workspace\x20details','desc\x20[name]','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--from-task\x20<task>','Create\x20a\x20workspace','--start-at\x20<datetime>','Database\x20name',',\x20version\x20','Workspace\x20name','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','desc','--cron\x20<expression>','commands','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','Master\x20database\x20name','update\x20<name-or-id>','jobs','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Trino\x20catalog\x20(default:\x20td)','--include-stats','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','-o,\x20--output\x20<dir>','Maximum\x20tool\x20iterations\x20(default:\x204)','GET','--interval\x20<range>','Result\x20output\x20destination\x20URL','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','sql\x20[segment_name]','duplicate\x20<name-or-id>','Folder\x20description','colorFn','--priority\x20<-2~2>','us01','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','pause\x20<name-or-id>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','List\x20all\x20available\x20profiles','Preview\x20operation\x20without\x20executing','--schedule-option\x20<value>','opts','run','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','--prompt\x20<text>','--tsv','--limit\x20<n>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','3874630UbRndY','delete\x20<name>','argumentDescription','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','delete\x20<agent-name>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','use\x20<name>','beefree','--name\x20<text>','--skip-validation','subcommandTerm','-f,\x20--force','Table\x20management\x20commands','sessions\x20[project]','debug','Preview\x20changes\x20without\x20writing\x20files','Show\x20campaign\x20details','--default','push\x20[path]','Launch\x20a\x20campaign','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','flatMap','INFO','Output\x20file\x20path','grapesjs','description','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--description\x20<desc>','--stage\x20<name>','Add\x20attributes\x20as\x20JSON\x20string','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','\x20(resolved\x20to\x20','--name\x20<new-name>','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','\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','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Limit\x20number\x20of\x20rows','--full','use\x20[name]','api\x20[endpoint]','Submit\x20a\x20job','project','10661CveYPU','_hidden','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--rule\x20<json>','Export\x20journey(s)\x20as\x20YAML\x20files','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','chats','-r,\x20--resume','show\x20[table]','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Maximum\x20recursion\x20depth\x20(default:\x2010)','TRACE','show\x20<name>','Resume\x20a\x20conversation\x20(shows\x20selector)','Manage\x20workflow\x20project\x20secrets','statusline','Data\x20connection\x20management\x20(for\x20activations/exports)','Delete\x20an\x20agent','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','createAsync','Parent\x20segment\x20management','replace','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','table','--type\x20<api_type>','parent_segment','--json-columns\x20<cols>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--customer-group\x20<json>','includes','Enable\x20verbose\x20logging','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--param\x20<key=value>','Customer\x20group\x20as\x20JSON\x20string','workspaces\x20[pattern]','Agent\x20name','--result\x20<url>','buildTime','argumentTerm','error','jsonl','--name\x20<names>','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Timezone\x20(e.g.,\x20America/Los_Angeles)','tdx','Template\x20name','--max-tool-iterations\x20<n>','tsv','Query\x20type:\x20trino\x20or\x20hive','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','allowExcessArguments','Project\x20description','show\x20<name-or-id>','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Resume\x20from\x20specific\x20task','logLevel','Email\x20subject\x20template','after','create\x20<parent_name>\x20<folder_name>','push\x20[parent_or_file]','--customer-group-file\x20<file>','\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','\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','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Overwrite\x20local\x20changes\x20without\x20confirmation','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','fields\x20[name]','--new','--yes','List\x20all\x20data\x20connections','logs','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Read\x20request\x20body\x20from\x20file','Workspace\x20description','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--clear','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','list\x20[pattern]','pause\x20<name-or-path>','Override\x20project\x20name','774naapYj','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--from\x20<timestamp>','--llm-project\x20<name>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Commands:','directory','--in\x20<name>','--email-sender-id\x20<id>','Kill\x20a\x20job','alias','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Authentication\x20management','Filtering\x20rule\x20from\x20JSON\x20file','padEnd','clone\x20[source-dir]','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','LLM\x20project\x20management','Show\x20connection\x20details\x20by\x20name','[attempt-id]','Create\x20a\x20scheduled\x20query','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Preview\x20changes\x20without\x20pushing','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--data\x20<data>','attempt:','Revision\x20name\x20(default:\x20timestamp)','preview\x20[file]','--include-retried','mcp','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Master\x20table\x20name','Timezone\x20for\x20cron\x20(default:\x20UTC)','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Workflow\x20parameter\x20(repeatable)','-n,\x20--name\x20<name>','--job-type\x20<type>','Output\x20as\x20JSON\x20Lines','\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','catch','history\x20<name>','--num\x20<1-10>','Generate\x20test\x20conversations\x20without\x20evaluation','-d,\x20--database\x20<db>','requiredOption','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','claude-4.5-sonnet','describe','Include\x20execution\x20statistics','Skip\x20confirmation\x20prompts','secrets','--folder\x20<name>','view\x20[segment_name]','Skip\x20validation\x20of\x20.dig\x20files','Workflow\x20project\x20management','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','list','create\x20<name>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Database\x20to\x20query\x20(default:\x20information_schema)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--attribute\x20[name]','push\x20[target]','site','job','Filtering\x20rule\x20as\x20JSON\x20string','submit\x20[query]','database','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','New\x20workspace\x20name','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','List\x20all\x20users\x20in\x20the\x20account','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','hook','delete\x20<args...>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--stream','fields\x20[parent_name]','launch\x20<name-or-id>','noColor','Validate\x20journey\x20YAML\x20files\x20locally','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','show\x20<job-id>','Setup\x20API\x20key\x20authentication\x20interactively','--session-time\x20<time>','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','delete\x20<name-or-id>','--system-prompt\x20<text>','retry','segment','--plaintext\x20<text>','--model\x20<name>','--in\x20<database>','Pull\x20specific\x20revision\x20(default:\x20latest)','Show\x20schedule\x20details','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','attempts\x20[project]','Resume\x20a\x20paused\x20campaign','95850ADyqSl','-1d','--tags\x20<tags>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','--resume-from\x20<task>','Add\x20behaviors\x20from\x20JSON\x20file','Retry\x20limit\x20(0\x20to\x2032)','trino','--timeout\x20<seconds>','validate\x20[file]','-v,\x20--verbose','stats\x20<name-or-path>','attempt','103772fzaAHv','Reason\x20for\x20killing\x20the\x20attempt','Open\x20segment\x20in\x20web\x20browser','view\x20<name-or-path>','--database\x20<db>','subcommandDescription','run\x20[name]','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','list\x20[project]','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','exit','Parent\x20segment\x20description','--workspace\x20<name>','list\x20[path]','-r,\x20--recursive','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','run\x20[workflow]','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','System\x20prompt/instructions\x20(default:\x20empty)','backup\x20<name>','-o,\x20--output\x20<file>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Change\x20to\x20directory\x20before\x20executing\x20command','\x20-\x20built\x20','required','engage','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Pull\x20child\x20segments\x20to\x20YAML\x20files','history\x20[chat-id]','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20available\x20LLM\x20models','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','List\x20jobs','user','[action]','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Show\x20journey\x20statistics','Custom\x20revision\x20name\x20(default:\x20timestamp)','--table\x20<table>','--from\x20<n>','55QNKbct','Attempt\x20ID','Timezone\x20for\x20cron','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Behaviors\x20as\x20JSON\x20string','--force','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','push\x20[file]'];a2_0x3519=function(){return _0x48b977;};return a2_0x3519();}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}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_0x4bb303(0x2f2)][a2_0x4bb303(0x1b1)](a2_0x4bb303(0x332))){let versionOutput=a2_0x4bb303(0x30f)+currentVersion;buildInfo[a2_0x4bb303(0x38d)]&&!currentVersion[a2_0x4bb303(0x1b1)](buildInfo[a2_0x4bb303(0x38d)])&&(versionOutput+='\x20('+buildInfo[a2_0x4bb303(0x38d)]+')'),buildInfo[a2_0x4bb303(0x1b9)]&&(versionOutput+=a2_0x4bb303(0x270)+buildInfo[a2_0x4bb303(0x1b9)]),console[a2_0x4bb303(0x379)](versionOutput),process[a2_0x4bb303(0x263)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x4bb303(0x292);buildInfo['gitRevision']&&!currentVersion[a2_0x4bb303(0x1b1)](buildInfo[a2_0x4bb303(0x38d)])?description+=',\x20version\x20'+currentVersion+'\x20('+buildInfo[a2_0x4bb303(0x38d)]+')':description+=a2_0x4bb303(0x3c0)+currentVersion;program['name'](a2_0x4bb303(0x1c0))[a2_0x4bb303(0x404)](description),program[a2_0x4bb303(0x36c)]('-C,\x20--directory\x20<path>',a2_0x4bb303(0x26f))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2fc),a2_0x4bb303(0x278))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2d8),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x4bb303(0x3da))['option'](a2_0x4bb303(0x3b1),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2d2),a2_0x4bb303(0x1d3))['option'](a2_0x4bb303(0x3a5),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2cb),a2_0x4bb303(0x3ac))['option'](a2_0x4bb303(0x3e6),a2_0x4bb303(0x2ad))[a2_0x4bb303(0x36c)]('--output\x20<file>',a2_0x4bb303(0x348))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2a1),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x4bb303(0x36c)]('--color',a2_0x4bb303(0x21e),![])[a2_0x4bb303(0x36c)](a2_0x4bb303(0x28f),a2_0x4bb303(0x2bc),![])[a2_0x4bb303(0x36c)](a2_0x4bb303(0x256),a2_0x4bb303(0x1b2),![])['option'](a2_0x4bb303(0x2dc),a2_0x4bb303(0x276))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3a8),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x254),a2_0x4bb303(0x365),'30')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2b8),a2_0x4bb303(0x3e0),![])[a2_0x4bb303(0x36c)](a2_0x4bb303(0x306),'Skip\x20confirmation\x20prompts',![])['option'](a2_0x4bb303(0x331),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3a7),a2_0x4bb303(0x392))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1ec),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x36d),a2_0x4bb303(0x3b7))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1e8),a2_0x4bb303(0x2d7)),program[a2_0x4bb303(0x2ed)]({'formatHelp':(_0x27ad4f,_0x493ee8)=>{const _0x1ed0d2=a2_0x4bb303,_0x81bb28=_0x493ee8[_0x1ed0d2(0x302)](_0x27ad4f,_0x493ee8),_0xd03c57=0x2,_0x2d455c=0x2;function _0x47a923(_0x316242){const _0x5bda81=_0x1ed0d2,_0x2f577b=_0x316242;return!!(_0x2f577b[_0x5bda81(0x191)]||_0x2f577b['hidden']);}function _0x5b6466(_0x4285ed,_0x406e77){const _0x2de8d9=_0x1ed0d2;if(_0x406e77){const _0xc220a4=''+_0x4285ed[_0x2de8d9(0x1f3)](_0x81bb28+_0x2d455c)+_0x406e77;return _0xc220a4;}return _0x4285ed;}function _0x31ff56(_0x41b666){const _0x511711=_0x1ed0d2;return _0x41b666[_0x511711(0x39f)]('\x0a')[_0x511711(0x1a9)](/^/gm,'\x20'[_0x511711(0x309)](_0xd03c57));}const _0x2320c0=[];_0x2320c0[_0x1ed0d2(0x37c)]('Usage:\x20'+_0x493ee8['commandUsage'](_0x27ad4f));const _0x17725c=_0x493ee8['commandDescription'](_0x27ad4f);_0x17725c&&(_0x2320c0['push'](''),_0x2320c0['push'](_0x17725c));const _0x3ebba6=_0x27ad4f[_0x1ed0d2(0x3c5)][_0x1ed0d2(0x337)](_0x430e13=>!_0x47a923(_0x430e13));if(_0x3ebba6[_0x1ed0d2(0x311)]>0x0){if(_0x27ad4f['name']()===_0x1ed0d2(0x1c0)){const _0x4b76a7=_0x27ad4f[_0x1ed0d2(0x3e2)](),_0x31c4c2=!_0x4b76a7[_0x1ed0d2(0x239)]&&process['stdout'][_0x1ed0d2(0x393)],_0x23fce6=COMMAND_CATEGORIES,_0x1be0bf=(_0x51614b,_0x43e6c7)=>_0x31c4c2?_0x43e6c7(_0x51614b):_0x51614b,_0x503852=new Map();_0x3ebba6[_0x1ed0d2(0x2df)](_0xfbe4d1=>{const _0xca2b7c=_0x1ed0d2;_0x503852[_0xca2b7c(0x30c)](_0xfbe4d1[_0xca2b7c(0x2ca)](),_0xfbe4d1);}),_0x23fce6[_0x1ed0d2(0x2df)](_0x2172f3=>{const _0x7075e7=_0x1ed0d2,_0x23b4b6=_0x2172f3['commands'][_0x7075e7(0x400)](_0x2d485e=>_0x503852[_0x7075e7(0x319)](_0x2d485e)??[]);if(_0x23b4b6['length']>0x0){_0x2320c0[_0x7075e7(0x37c)](''),_0x2320c0[_0x7075e7(0x37c)](_0x1be0bf(_0x2172f3[_0x7075e7(0x2ca)]+':',_0x2172f3[_0x7075e7(0x3d8)]));const _0x183561=_0x23b4b6[_0x7075e7(0x2e3)](_0x4fb833=>{const _0x30ac29=_0x7075e7,_0x53ba8a=_0x493ee8[_0x30ac29(0x3f4)](_0x4fb833),_0xda7a9c=_0x493ee8[_0x30ac29(0x25e)](_0x4fb833);return _0x5b6466(_0x53ba8a,_0xda7a9c);});_0x2320c0['push'](_0x31ff56(_0x183561));}}),_0x2320c0[_0x1ed0d2(0x37c)](''),_0x2320c0[_0x1ed0d2(0x37c)](_0x1ed0d2(0x30a));}else{const _0xd8f8ae=_0x3ebba6[_0x1ed0d2(0x2e3)](_0x2cb619=>{const _0x25df34=_0x1ed0d2,_0x532267=_0x493ee8[_0x25df34(0x3f4)](_0x2cb619),_0x5937ac=_0x493ee8[_0x25df34(0x25e)](_0x2cb619);return _0x5b6466(_0x532267,_0x5937ac);});_0x2320c0[_0x1ed0d2(0x37c)](''),_0x2320c0[_0x1ed0d2(0x37c)](_0x1ed0d2(0x1ea)),_0x2320c0[_0x1ed0d2(0x37c)](_0x31ff56(_0xd8f8ae));}}if(showBriefHelp&&_0x27ad4f['name']()==='tdx')_0x2320c0[_0x1ed0d2(0x37c)](''),_0x2320c0[_0x1ed0d2(0x37c)](_0x1ed0d2(0x3ee));else{const _0x27b7c4=_0x27ad4f[_0x1ed0d2(0x2c5)][_0x1ed0d2(0x337)](_0x138cff=>!_0x47a923(_0x138cff));if(_0x27b7c4['length']>0x0){const _0x46fc31=_0x27b7c4['map'](_0x1ad2f2=>{const _0xa5e8dc=_0x493ee8['optionTerm'](_0x1ad2f2),_0x1687f6=_0x493ee8['optionDescription'](_0x1ad2f2);return _0x5b6466(_0xa5e8dc,_0x1687f6);});_0x2320c0['push'](''),_0x2320c0[_0x1ed0d2(0x37c)](_0x1ed0d2(0x2ea)),_0x2320c0[_0x1ed0d2(0x37c)](_0x31ff56(_0x46fc31));}}const _0x13e925=(_0x27ad4f[_0x1ed0d2(0x363)]||[])['filter'](_0x31c4ea=>!_0x47a923(_0x31c4ea));if(_0x13e925[_0x1ed0d2(0x311)]>0x0){const _0x1f64a4=_0x13e925[_0x1ed0d2(0x2e3)](_0x678f6b=>{const _0x25a638=_0x1ed0d2,_0xe29d6c=_0x493ee8[_0x25a638(0x1ba)](_0x678f6b),_0x5b13a8=_0x493ee8[_0x25a638(0x3eb)](_0x678f6b);return _0x5b6466(_0xe29d6c,_0x5b13a8);});_0x2320c0['push'](''),_0x2320c0[_0x1ed0d2(0x37c)](_0x1ed0d2(0x346)),_0x2320c0[_0x1ed0d2(0x37c)](_0x31ff56(_0x1f64a4));}return _0x2320c0[_0x1ed0d2(0x39f)]('\x0a')+'\x0a';},'subcommandTerm':_0xf13bdc=>{const _0x190306=a2_0x4bb303,_0x154dc5=(_0xf13bdc[_0x190306(0x363)]||[])['map'](_0x18e07d=>_0x18e07d[_0x190306(0x271)]?'<'+_0x18e07d[_0x190306(0x2ca)]()+'>':'['+_0x18e07d['name']()+']')[_0x190306(0x39f)]('\x20'),_0x3736a8=_0xf13bdc['aliases'](),_0xa51344=_0x3736a8[_0x190306(0x311)]>0x0?_0xf13bdc[_0x190306(0x2ca)]()+',\x20'+_0x3736a8[_0x190306(0x39f)](',\x20'):_0xf13bdc['name']();return _0x154dc5?_0xa51344+'\x20'+_0x154dc5:_0xa51344;}}),program[a2_0x4bb303(0x233)]('preAction',_0x308999=>{const _0x3ddf3a=a2_0x4bb303,_0x436f36=_0x308999[_0x3ddf3a(0x3e2)]();if(_0x436f36[_0x3ddf3a(0x1eb)]){const _0x1abe93=resolve(_0x436f36[_0x3ddf3a(0x1eb)]),_0xd37646=_0x1abe93!==_0x436f36['directory']?_0x3ddf3a(0x40c)+_0x1abe93+')':'';if(!existsSync(_0x1abe93))throw new SDKError(ErrorCode[_0x3ddf3a(0x366)],_0x3ddf3a(0x2c7)+_0x436f36[_0x3ddf3a(0x1eb)]+_0xd37646,undefined,{'helpText':_0x3ddf3a(0x324)});const _0xb0f0dd=statSync(_0x1abe93);if(!_0xb0f0dd['isDirectory']())throw new SDKError(ErrorCode[_0x3ddf3a(0x366)],_0x3ddf3a(0x301)+_0x436f36[_0x3ddf3a(0x1eb)]+_0xd37646,undefined,{'helpText':_0x3ddf3a(0x3fe)});process['chdir'](_0x1abe93);}if(!_0x436f36[_0x3ddf3a(0x2c8)]){if(_0x436f36[_0x3ddf3a(0x1ab)])_0x436f36[_0x3ddf3a(0x2c8)]='table';else{if(_0x436f36[_0x3ddf3a(0x33f)])_0x436f36['format']=_0x3ddf3a(0x33f);else{if(_0x436f36[_0x3ddf3a(0x1bc)])_0x436f36['format']=_0x3ddf3a(0x1bc);else _0x436f36[_0x3ddf3a(0x1c3)]&&(_0x436f36['format']=_0x3ddf3a(0x1c3));}}}_0x436f36['in']&&!_0x436f36[_0x3ddf3a(0x22d)]&&(_0x436f36['database']=_0x436f36['in']);if(_0x436f36[_0x3ddf3a(0x2b3)])_0x436f36[_0x3ddf3a(0x1cb)]=LogLevel[_0x3ddf3a(0x19d)];else{if(_0x436f36[_0x3ddf3a(0x3f8)])_0x436f36[_0x3ddf3a(0x1cb)]=LogLevel[_0x3ddf3a(0x315)];else _0x436f36[_0x3ddf3a(0x1cb)]===undefined&&(_0x436f36['logLevel']=LogLevel[_0x3ddf3a(0x401)]);}});async function createTDXInstance(_0x5ef8a7){const _0x172db4=a2_0x4bb303,_0x1868b4=await GlobalContext[_0x172db4(0x1a7)](_0x5ef8a7);return _0x1868b4['injectIntoOptions'](_0x5ef8a7),TDX[_0x172db4(0x28d)]({'site':_0x1868b4[_0x172db4(0x229)],'apiKey':_0x1868b4['apiKey'],'logLevel':_0x1868b4[_0x172db4(0x1cb)],'profile':_0x1868b4['profile']});}const databaseCmd=program[a2_0x4bb303(0x370)](a2_0x4bb303(0x22d))[a2_0x4bb303(0x1ef)]('db')[a2_0x4bb303(0x404)](a2_0x4bb303(0x313)),databaseListAction=async(_0x5605e5,_0x542601)=>{const _0x270176=a2_0x4bb303,_0x3ba265=new DatabasesCommand(),_0x4150d3=program[_0x270176(0x3e2)](),_0x13a908=await createTDXInstance(_0x4150d3),_0x408173=await _0x3ba265[_0x270176(0x3e3)]({'options':{..._0x4150d3,..._0x542601},'args':_0x5605e5?[_0x5605e5]:[],'tdx':_0x13a908});gracefulExit(_0x408173);};databaseCmd['command'](a2_0x4bb303(0x1e2))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2f1))[a2_0x4bb303(0x2f8)](databaseListAction),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x2a4),{'hidden':!![]})[a2_0x4bb303(0x404)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x4bb303(0x2f8)](databaseListAction),program['command']('chat\x20[message...]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x397))['option']('--agent\x20<ref>',a2_0x4bb303(0x2cf))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1d7),'Start\x20a\x20new\x20chat\x20session')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2d1),a2_0x4bb303(0x3c6))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x236),'Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x4bb303(0x2f8)](async(_0x5394c8,_0xf1ccbd)=>{const _0x50a13d=a2_0x4bb303,_0x4c178a=program[_0x50a13d(0x3e2)](),_0x293d63=await createTDXInstance(_0x4c178a);if(_0x5394c8[0x0]===_0x50a13d(0x28d)){const _0x2cb2b7=new ChatCreateCommand();gracefulExit(await _0x2cb2b7[_0x50a13d(0x3e3)]({'options':{..._0x4c178a,..._0xf1ccbd},'args':_0x5394c8[_0x50a13d(0x333)](0x1),'tdx':_0x293d63}));return;}const _0x490e96=new ChatCommand(),_0x45001e=await _0x490e96[_0x50a13d(0x3e3)]({'options':{..._0x4c178a,..._0xf1ccbd},'args':_0x5394c8,'tdx':_0x293d63});gracefulExit(_0x45001e);});const apiCmd=program[a2_0x4bb303(0x370)](a2_0x4bb303(0x18d))['summary'](a2_0x4bb303(0x37e))[a2_0x4bb303(0x31c)](a2_0x4bb303(0x1cd),'\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_0x4bb303(0x36c)]('-X,\x20--method\x20<method>',a2_0x4bb303(0x3bb),a2_0x4bb303(0x3d1))['option'](a2_0x4bb303(0x1fd),'Request\x20body\x20as\x20JSON\x20string')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3a3),a2_0x4bb303(0x1dc))['option'](a2_0x4bb303(0x2ec),a2_0x4bb303(0x384),(_0x17c3a1,_0x5615ae)=>{return _0x5615ae?[..._0x5615ae,_0x17c3a1]:[_0x17c3a1];})['option'](a2_0x4bb303(0x1ac),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x4e1547,_0x44f703)=>{const _0x9fa3cd=a2_0x4bb303;if(!_0x4e1547){apiCmd['help']();return;}const _0x26603d=new ApiCommand(),_0x27febc=program[_0x9fa3cd(0x3e2)](),_0x65b75a=await createTDXInstance(_0x27febc),_0x7ceec6=await _0x26603d[_0x9fa3cd(0x3e3)]({'options':{..._0x27febc,..._0x44f703},'args':[_0x4e1547],'tdx':_0x65b75a});gracefulExit(_0x7ceec6);});program[a2_0x4bb303(0x370)](a2_0x4bb303(0x202))[a2_0x4bb303(0x404)](a2_0x4bb303(0x28c))['addHelpText'](a2_0x4bb303(0x1cd),a2_0x4bb303(0x351))[a2_0x4bb303(0x2f8)](async _0x48ce3d=>{const _0x3336a2=a2_0x4bb303,_0x2d3207=new MCPCommand(),_0x572cef=program['opts'](),_0x295752=await createTDXInstance(_0x572cef),_0x14049a=await _0x2d3207[_0x3336a2(0x3e3)]({'options':{..._0x572cef,..._0x48ce3d},'args':[],'tdx':_0x295752});gracefulExit(_0x14049a);});const tableCmd=program[a2_0x4bb303(0x370)](a2_0x4bb303(0x1ab))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3f6)),tableListAction=async(_0x3b4401,_0x1148cb)=>{const _0x369c80=a2_0x4bb303,_0x3ab660=new TablesCommand(),_0x2ea610=program[_0x369c80(0x3e2)](),_0x16a976=await createTDXInstance(_0x2ea610);_0x1148cb['in']&&(_0x1148cb[_0x369c80(0x22d)]=_0x1148cb['in']);const _0x57adad=await _0x3ab660['run']({'options':{..._0x2ea610,..._0x1148cb},'args':_0x3b4401?[_0x3b4401]:[],'tdx':_0x16a976});gracefulExit(_0x57adad);};tableCmd['command'](a2_0x4bb303(0x1e2))['description'](a2_0x4bb303(0x1de))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2a8),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option']('--in\x20<database>',a2_0x4bb303(0x339))[a2_0x4bb303(0x2f8)](tableListAction),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x2f7),{'hidden':!![]})['description'](a2_0x4bb303(0x37d))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2a8),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x246),a2_0x4bb303(0x339))['action'](tableListAction),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x19a))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3ef))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2a8),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x246),a2_0x4bb303(0x339))[a2_0x4bb303(0x2f8)](async(_0x10a85f,_0x267263)=>{const _0x1d8087=a2_0x4bb303,_0x56ddbf=new ShowCommand(),_0x256e3d=program[_0x1d8087(0x3e2)](),_0x44f02e=await createTDXInstance(_0x256e3d);_0x267263['in']&&(_0x267263[_0x1d8087(0x22d)]=_0x267263['in']);const _0x5eb68b=await _0x56ddbf[_0x1d8087(0x3e3)]({'options':{..._0x256e3d,..._0x267263},'args':_0x10a85f?[_0x10a85f]:[],'tdx':_0x44f02e});gracefulExit(_0x5eb68b);}),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x2e0))[a2_0x4bb303(0x1ef)](a2_0x4bb303(0x3c3))['description']('Describe\x20table\x20schema')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2a8),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x246),a2_0x4bb303(0x339))[a2_0x4bb303(0x2f8)](async(_0x5747a0,_0xc891bd)=>{const _0x773da9=a2_0x4bb303,_0xedf3ad=new DescribeCommand(),_0x382c5f=program[_0x773da9(0x3e2)](),_0x5d29cf=await createTDXInstance(_0x382c5f);_0xc891bd['in']&&(_0xc891bd['database']=_0xc891bd['in']);const _0xbdc2b6=await _0xedf3ad[_0x773da9(0x3e3)]({'options':{..._0x382c5f,..._0xc891bd},'args':_0x5747a0?[_0x5747a0]:[],'tdx':_0x5d29cf});gracefulExit(_0xbdc2b6);}),program[a2_0x4bb303(0x370)]('query\x20[sql]')['description'](a2_0x4bb303(0x395))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2a8),a2_0x4bb303(0x223))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x246),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x35f),a2_0x4bb303(0x3cb))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3a3),'Read\x20SQL\x20query\x20from\x20file')[a2_0x4bb303(0x36c)]('--limit\x20<rows>',a2_0x4bb303(0x405),'40')[a2_0x4bb303(0x2f8)](async(_0xd3c11e,_0x40b087)=>{const _0x53bc1d=a2_0x4bb303,_0x426b36=new QueryCommand(),_0x105caa=program[_0x53bc1d(0x3e2)](),_0x371950=await createTDXInstance(_0x105caa);_0x40b087['in']&&(_0x40b087[_0x53bc1d(0x22d)]=_0x40b087['in']);const _0x4d3c63=await _0x426b36['run']({'options':{..._0x105caa,..._0x40b087},'args':_0xd3c11e?[_0xd3c11e]:[],'tdx':_0x371950});gracefulExit(_0x4d3c63);});const segmentCmd=program['command'](a2_0x4bb303(0x243))[a2_0x4bb303(0x1ef)]('sg')['description']('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x423586,_0x1fb6f2)=>{const _0x3d971d=a2_0x4bb303,_0x319f13=new SegmentsCommand(),_0x357c02=program[_0x3d971d(0x3e2)](),_0x4561f1=await createTDXInstance(_0x357c02),_0x18c9fa=await _0x319f13[_0x3d971d(0x3e3)]({'options':{..._0x357c02,..._0x1fb6f2},'args':_0x423586?[_0x423586]:[],'tdx':_0x4561f1});gracefulExit(_0x18c9fa);};segmentCmd['command'](a2_0x4bb303(0x266))['description'](a2_0x4bb303(0x40a))['option'](a2_0x4bb303(0x267),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2eb),a2_0x4bb303(0x19c),'10')['action'](segmentListAction),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x3ab),{'hidden':!![]})['description']('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x267),a2_0x4bb303(0x1a6))['option'](a2_0x4bb303(0x2eb),a2_0x4bb303(0x19c),'10')[a2_0x4bb303(0x2f8)](segmentListAction),segmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x368),{'hidden':!![]})[a2_0x4bb303(0x404)](a2_0x4bb303(0x299))[a2_0x4bb303(0x2f8)](async(_0x3b7699,_0x3fc2e3)=>{const _0x40be5d=a2_0x4bb303,_0x32d54f=new SegmentUseCommand(),_0x581b0c=program['opts'](),_0x533cfc=await createTDXInstance(_0x581b0c),_0x50df2f=await _0x32d54f[_0x40be5d(0x3e3)]({'options':{..._0x581b0c,..._0x3fc2e3},'args':[_0x3b7699],'tdx':_0x533cfc});gracefulExit(_0x50df2f);});const segmentViewAction=async(_0x48b381,_0x3a21cc)=>{const _0x1807cc=a2_0x4bb303,_0x52113c=new SegmentViewCommand(),_0x28641a=program[_0x1807cc(0x3e2)](),_0x22ee31=await createTDXInstance(_0x28641a),_0x408439=await _0x52113c[_0x1807cc(0x3e3)]({'options':{..._0x28641a,..._0x3a21cc},'args':_0x48b381?[_0x48b381]:[],'tdx':_0x22ee31});gracefulExit(_0x408439);};segmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x21a))[a2_0x4bb303(0x404)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')['option'](a2_0x4bb303(0x2ba),'Open\x20segment\x20in\x20web\x20browser')[a2_0x4bb303(0x2f8)](segmentViewAction),segmentCmd[a2_0x4bb303(0x370)]('info\x20[segment_name]',{'hidden':!![]})[a2_0x4bb303(0x1ef)](a2_0x4bb303(0x215))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2ba),a2_0x4bb303(0x25b))[a2_0x4bb303(0x404)](a2_0x4bb303(0x35d))[a2_0x4bb303(0x2f8)](segmentViewAction),segmentCmd['command'](a2_0x4bb303(0x336))[a2_0x4bb303(0x404)]('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x4bb303(0x2f8)](async(_0x135252,_0x376d47)=>{const _0x2e9dc1=a2_0x4bb303,_0xb981be=new SegmentDescCommand(),_0x18f2d0=program[_0x2e9dc1(0x3e2)](),_0x238e8f=await createTDXInstance(_0x18f2d0),_0x481f00=await _0xb981be['run']({'options':{..._0x18f2d0,..._0x376d47},'args':_0x135252?[_0x135252]:[],'tdx':_0x238e8f});gracefulExit(_0x481f00);}),segmentCmd['command'](a2_0x4bb303(0x2b7))[a2_0x4bb303(0x404)](a2_0x4bb303(0x323))[a2_0x4bb303(0x2f8)](async(_0x35f923,_0x485e51)=>{const _0x117bc3=a2_0x4bb303,_0x455e57=new SegmentShowCommand(),_0x1a925d=program[_0x117bc3(0x3e2)](),_0x2ddb45=await createTDXInstance(_0x1a925d),_0x58b6cd=await _0x455e57[_0x117bc3(0x3e3)]({'options':{..._0x1a925d,..._0x485e51},'args':_0x35f923?[_0x35f923]:[],'tdx':_0x2ddb45});gracefulExit(_0x58b6cd);}),segmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x33c),{'hidden':!![]})['description'](a2_0x4bb303(0x21d))['action'](async(_0x2ae2a7,_0x41af42)=>{const _0xa2d26f=a2_0x4bb303,_0x4c2e19=new SegmentFolderListCommand(),_0x4238e7=program[_0xa2d26f(0x3e2)](),_0x10a060=await createTDXInstance(_0x4238e7),_0x589d8f=await _0x4c2e19[_0xa2d26f(0x3e3)]({'options':{..._0x4238e7,..._0x41af42},'args':[_0x2ae2a7],'tdx':_0x10a060});gracefulExit(_0x589d8f);});const folderCmd=segmentCmd['command']('folder',{'hidden':!![]})[a2_0x4bb303(0x404)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd['command']('show\x20<folder_ref>')[a2_0x4bb303(0x404)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x4bb303(0x2f8)](async(_0x4aff1b,_0xcb1c14)=>{const _0x364aec=a2_0x4bb303,_0x20dc78=new SegmentFolderShowCommand(),_0x5afc7f=program[_0x364aec(0x3e2)](),_0x4f01c7=await createTDXInstance(_0x5afc7f),_0x1c9470=await _0x20dc78[_0x364aec(0x3e3)]({'options':{..._0x5afc7f,..._0xcb1c14},'args':[_0x4aff1b],'tdx':_0x4f01c7});gracefulExit(_0x1c9470);}),segmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x3d5))[a2_0x4bb303(0x404)](a2_0x4bb303(0x38a))[a2_0x4bb303(0x2f8)](async(_0x497754,_0x44298b)=>{const _0xc0614b=new SegmentSQLCommand(),_0x2ba65a=program['opts'](),_0x31dd51=await createTDXInstance(_0x2ba65a),_0x563000=await _0xc0614b['run']({'options':{..._0x2ba65a,..._0x44298b},'args':_0x497754?[_0x497754]:[],'tdx':_0x31dd51});gracefulExit(_0x563000);}),segmentCmd['command'](a2_0x4bb303(0x237))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2b9))[a2_0x4bb303(0x2f8)](async(_0x1e8496,_0x4cb54e)=>{const _0x3113d0=a2_0x4bb303,_0xb8d7fa=new SegmentFieldsCommand(),_0x3e2abd=program[_0x3113d0(0x3e2)](),_0xc52328=await createTDXInstance(_0x3e2abd),_0x1bf4e8=await _0xb8d7fa[_0x3113d0(0x3e3)]({'options':{..._0x3e2abd,..._0x4cb54e},'args':_0x1e8496?[_0x1e8496]:[],'tdx':_0xc52328});gracefulExit(_0x1bf4e8);}),segmentCmd[a2_0x4bb303(0x370)]('pull\x20[parent_or_file]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x274))['option'](a2_0x4bb303(0x306),a2_0x4bb303(0x217))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2b8),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x4bb303(0x2f8)](async(_0x302be1,_0x2fc83c)=>{const _0x2ade82=a2_0x4bb303,_0x5474c2=new SegmentPullCommand(),_0x38e0d3=program[_0x2ade82(0x3e2)](),_0x202f50=await createTDXInstance(_0x38e0d3),_0x3c51ea=await _0x5474c2[_0x2ade82(0x3e3)]({'options':{..._0x38e0d3,..._0x2fc83c},'args':_0x302be1?[_0x302be1]:[],'tdx':_0x202f50});gracefulExit(_0x3c51ea);}),segmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1cf))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3b5))['option'](a2_0x4bb303(0x306),'Skip\x20confirmation\x20prompts')[a2_0x4bb303(0x36c)]('--dry-run',a2_0x4bb303(0x3cd))[a2_0x4bb303(0x36c)]('--delete',a2_0x4bb303(0x197))[a2_0x4bb303(0x2f8)](async(_0x44b24b,_0x3b5b9c)=>{const _0x8d5d9c=a2_0x4bb303,_0x213bdf=new SegmentPushCommand(),_0x55bcf7=program[_0x8d5d9c(0x3e2)](),_0xcca98f=await createTDXInstance(_0x55bcf7),_0x533f8c=await _0x213bdf[_0x8d5d9c(0x3e3)]({'options':{..._0x55bcf7,..._0x3b5b9c},'args':_0x44b24b?[_0x44b24b]:[],'tdx':_0xcca98f});gracefulExit(_0x533f8c);}),segmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x2af))[a2_0x4bb303(0x404)](a2_0x4bb303(0x328))[a2_0x4bb303(0x2f8)](async(_0x213a87,_0x272717)=>{const _0x5e9738=a2_0x4bb303,_0x5dc3f6=new SegmentValidateCommand(),_0x1cf8fe=program[_0x5e9738(0x3e2)](),_0xbb9061=await createTDXInstance(_0x1cf8fe),_0x1a267a=await _0x5dc3f6[_0x5e9738(0x3e3)]({'options':{..._0x1cf8fe,..._0x272717},'args':_0x213a87?[_0x213a87]:[],'tdx':_0xbb9061});gracefulExit(_0x1a267a);}),segmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x3b6),{'hidden':!![]})[a2_0x4bb303(0x404)](a2_0x4bb303(0x33b))['option'](a2_0x4bb303(0x298),a2_0x4bb303(0x38c))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x195),a2_0x4bb303(0x22b))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2e6),a2_0x4bb303(0x1f2))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x219),a2_0x4bb303(0x316))['option'](a2_0x4bb303(0x338),a2_0x4bb303(0x289))[a2_0x4bb303(0x36c)]('--invisible',a2_0x4bb303(0x3a6))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2d4),a2_0x4bb303(0x367))[a2_0x4bb303(0x2f8)](async(_0x130cef,_0x9ac5c8)=>{const _0x22e29b=a2_0x4bb303,_0xe2a1=new SegmentCreateCommand(),_0xae55c=program[_0x22e29b(0x3e2)](),_0x5427a0=await createTDXInstance(_0xae55c),_0x5e6258=await _0xe2a1[_0x22e29b(0x3e3)]({'options':{..._0xae55c,..._0x9ac5c8},'args':[_0x130cef],'tdx':_0x5427a0});gracefulExit(_0x5e6258);}),segmentCmd['command'](a2_0x4bb303(0x39b),{'hidden':!![]})[a2_0x4bb303(0x404)](a2_0x4bb303(0x285))['option'](a2_0x4bb303(0x36b),a2_0x4bb303(0x32f))['option'](a2_0x4bb303(0x298),a2_0x4bb303(0x2fd))[a2_0x4bb303(0x36c)]('--rule\x20<json>',a2_0x4bb303(0x3e8))[a2_0x4bb303(0x36c)]('--rule-file\x20<file>',a2_0x4bb303(0x24f))[a2_0x4bb303(0x36c)]('--folder\x20<name>','Move\x20to\x20folder')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x338),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x4bb303(0x2f8)](async(_0x2b06a7,_0x23a95f)=>{const _0x3c98e2=a2_0x4bb303,_0x4b5758=new SegmentUpdateCommand(),_0x36aecd=program[_0x3c98e2(0x3e2)](),_0x270195=await createTDXInstance(_0x36aecd),_0x1d2b81=await _0x4b5758[_0x3c98e2(0x3e3)]({'options':{..._0x36aecd,..._0x23a95f},'args':[_0x2b06a7],'tdx':_0x270195});gracefulExit(_0x1d2b81);});const parentCmd=segmentCmd['command']('parent',{'hidden':!![]})['description'](a2_0x4bb303(0x1c9)),parentListAction=async(_0x370a29,_0x5268e0)=>{const _0x4cb09c=a2_0x4bb303,_0xa9ba3d=new ParentSegmentListCommand(),_0x412a0d=program['opts'](),_0x4d7f14=await createTDXInstance(_0x412a0d),_0x13a5fc=await _0xa9ba3d[_0x4cb09c(0x3e3)]({'options':{..._0x412a0d,..._0x5268e0},'args':_0x370a29?[_0x370a29]:[],'tdx':_0x4d7f14});gracefulExit(_0x13a5fc);};parentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1e2))[a2_0x4bb303(0x404)](a2_0x4bb303(0x226))[a2_0x4bb303(0x2f8)](parentListAction),segmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x380),{'hidden':!![]})[a2_0x4bb303(0x404)](a2_0x4bb303(0x1a5))['action'](parentListAction),parentCmd['command'](a2_0x4bb303(0x36e))['description'](a2_0x4bb303(0x38b))['option'](a2_0x4bb303(0x26d),a2_0x4bb303(0x2f5))['option'](a2_0x4bb303(0x306),a2_0x4bb303(0x36f))[a2_0x4bb303(0x2f8)](async(_0x33f1e8,_0x5ef844)=>{const _0x4a4e8c=a2_0x4bb303,_0x540cc8=new ParentSegmentPullCommand(),_0x362be2=program[_0x4a4e8c(0x3e2)](),_0x5a0a8f=await createTDXInstance(_0x362be2),_0x5279b4=await _0x540cc8[_0x4a4e8c(0x3e3)]({'options':{..._0x362be2,..._0x5ef844},'args':_0x33f1e8?[_0x33f1e8]:[],'tdx':_0x5a0a8f});gracefulExit(_0x5279b4);}),parentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x28a))[a2_0x4bb303(0x404)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x4bb303(0x36c)]('-y,\x20--yes',a2_0x4bb303(0x36f))[a2_0x4bb303(0x2f8)](async(_0x2c8649,_0x541d17)=>{const _0x566512=a2_0x4bb303,_0x36b8dc=new ParentSegmentPushCommand(),_0x351f92=program[_0x566512(0x3e2)](),_0x230588=await createTDXInstance(_0x351f92),_0x22e6f4=await _0x36b8dc[_0x566512(0x3e3)]({'options':{..._0x351f92,..._0x541d17},'args':_0x2c8649?[_0x2c8649]:[],'tdx':_0x230588});gracefulExit(_0x22e6f4);}),parentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x255))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3c2))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x394),a2_0x4bb303(0x3ae))[a2_0x4bb303(0x36c)]('--attribute\x20[name]',a2_0x4bb303(0x3d4))[a2_0x4bb303(0x36c)]('--behavior\x20[name]',a2_0x4bb303(0x1e0))[a2_0x4bb303(0x36c)]('--enriched',a2_0x4bb303(0x1fa))['option'](a2_0x4bb303(0x3d2),a2_0x4bb303(0x1aa),a2_0x4bb303(0x24d))['action'](async(_0x873837,_0x3016c2)=>{const _0x54e1e5=a2_0x4bb303,_0x3a96ad=new ParentSegmentValidateCommand(),_0x24a850=program['opts'](),_0x1db95f=await createTDXInstance(_0x24a850),_0x3dd38a=await _0x3a96ad[_0x54e1e5(0x3e3)]({'options':{..._0x24a850,..._0x3016c2},'args':_0x873837?[_0x873837]:[],'tdx':_0x1db95f});gracefulExit(_0x3dd38a);}),parentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x200))[a2_0x4bb303(0x404)](a2_0x4bb303(0x193))[a2_0x4bb303(0x36c)]('--master',a2_0x4bb303(0x329))['option'](a2_0x4bb303(0x227),a2_0x4bb303(0x1af))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x399),a2_0x4bb303(0x2c3))['option']('--enriched',a2_0x4bb303(0x1e6))['option']('--interval\x20<range>',a2_0x4bb303(0x1aa),'-1d')[a2_0x4bb303(0x2f8)](async(_0x2c47cb,_0x74552)=>{const _0xa9d73f=a2_0x4bb303,_0x9c2ced=new ParentSegmentPreviewCommand(),_0x39cfd8=program[_0xa9d73f(0x3e2)](),_0x4fe41e=await createTDXInstance(_0x39cfd8),_0x1c06e6=await _0x9c2ced['run']({'options':{..._0x39cfd8,..._0x74552},'args':_0x2c47cb?[_0x2c47cb]:[],'tdx':_0x4fe41e});gracefulExit(_0x1c06e6);}),parentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x25f))['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x4bb303(0x306),a2_0x4bb303(0x36f))[a2_0x4bb303(0x2f8)](async(_0x41361c,_0x4a9b7f)=>{const _0x499ac7=a2_0x4bb303,_0x280fc6=new ParentSegmentRunCommand(),_0x498937=program['opts'](),_0x175cee=await createTDXInstance(_0x498937),_0x2d8ab9=await _0x280fc6[_0x499ac7(0x3e3)]({'options':{..._0x498937,..._0x4a9b7f},'args':_0x41361c?[_0x41361c]:[],'tdx':_0x175cee});gracefulExit(_0x2d8ab9);});const parentSegmentCmd=program['command'](a2_0x4bb303(0x357))[a2_0x4bb303(0x1ef)]('ps')[a2_0x4bb303(0x404)](a2_0x4bb303(0x1a8));parentSegmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1e2))[a2_0x4bb303(0x404)](a2_0x4bb303(0x226))[a2_0x4bb303(0x2f8)](parentListAction),parentSegmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x36e))[a2_0x4bb303(0x404)](a2_0x4bb303(0x222))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x26d),a2_0x4bb303(0x402))['option'](a2_0x4bb303(0x306),a2_0x4bb303(0x36f))[a2_0x4bb303(0x36c)]('-u,\x20--use',a2_0x4bb303(0x2ac))[a2_0x4bb303(0x2f8)](async(_0x271cdf,_0x548461)=>{const _0x170421=new ParentSegmentPullCommand(),_0x4742ad=program['opts'](),_0x264539=await createTDXInstance(_0x4742ad),_0x5ae032=await _0x170421['run']({'options':{..._0x4742ad,..._0x548461},'args':_0x271cdf?[_0x271cdf]:[],'tdx':_0x264539});gracefulExit(_0x5ae032);}),parentSegmentCmd[a2_0x4bb303(0x370)]('push\x20[name]')['description'](a2_0x4bb303(0x2b0))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x306),a2_0x4bb303(0x36f))['action'](async(_0x2a93f4,_0x6d756d)=>{const _0xb88ce=a2_0x4bb303,_0x4c2563=new ParentSegmentPushCommand(),_0x4dea04=program[_0xb88ce(0x3e2)](),_0x170f06=await createTDXInstance(_0x4dea04),_0xd7cfb5=await _0x4c2563[_0xb88ce(0x3e3)]({'options':{..._0x4dea04,..._0x6d756d},'args':_0x2a93f4?[_0x2a93f4]:[],'tdx':_0x170f06});gracefulExit(_0xd7cfb5);}),parentSegmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x3a9))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x4bb303(0x36c)]('--master',a2_0x4bb303(0x3ae))['option']('--attribute\x20[name]',a2_0x4bb303(0x3d4))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x399),a2_0x4bb303(0x1e0))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x396),a2_0x4bb303(0x1fa))['option'](a2_0x4bb303(0x3d2),a2_0x4bb303(0x1aa),a2_0x4bb303(0x24d))[a2_0x4bb303(0x2f8)](async(_0x57f793,_0x3e229a)=>{const _0x3cb653=a2_0x4bb303,_0x3258b2=new ParentSegmentValidateCommand(),_0x466832=program['opts'](),_0xff7f72=await createTDXInstance(_0x466832),_0x4dba22=await _0x3258b2[_0x3cb653(0x3e3)]({'options':{..._0x466832,..._0x3e229a},'args':_0x57f793?[_0x57f793]:[],'tdx':_0xff7f72});gracefulExit(_0x4dba22);}),parentSegmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x31d))[a2_0x4bb303(0x404)](a2_0x4bb303(0x193))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x394),a2_0x4bb303(0x329))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x227),a2_0x4bb303(0x1af))['option'](a2_0x4bb303(0x399),a2_0x4bb303(0x2c3))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x396),a2_0x4bb303(0x1e6))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3d2),a2_0x4bb303(0x1aa),a2_0x4bb303(0x24d))['action'](async(_0x49b666,_0x882e14)=>{const _0x592360=a2_0x4bb303,_0x55f206=new ParentSegmentPreviewCommand(),_0x57e348=program[_0x592360(0x3e2)](),_0x711610=await createTDXInstance(_0x57e348),_0x2d308d=await _0x55f206[_0x592360(0x3e3)]({'options':{..._0x57e348,..._0x882e14},'args':_0x49b666?[_0x49b666]:[],'tdx':_0x711610});gracefulExit(_0x2d308d);}),parentSegmentCmd['command'](a2_0x4bb303(0x25f))[a2_0x4bb303(0x404)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x4bb303(0x36c)]('-y,\x20--yes',a2_0x4bb303(0x36f))[a2_0x4bb303(0x2f8)](async(_0x312d1c,_0x49808b)=>{const _0x52c98c=a2_0x4bb303,_0x46073b=new ParentSegmentRunCommand(),_0x2679dc=program['opts'](),_0x89908d=await createTDXInstance(_0x2679dc),_0x423152=await _0x46073b[_0x52c98c(0x3e3)]({'options':{..._0x2679dc,..._0x49808b},'args':_0x312d1c?[_0x312d1c]:[],'tdx':_0x89908d});gracefulExit(_0x423152);}),parentSegmentCmd['command'](a2_0x4bb303(0x1d6))[a2_0x4bb303(0x404)](a2_0x4bb303(0x203))['option'](a2_0x4bb303(0x3a5),'Output\x20as\x20JSON')['option']('--jsonl',a2_0x4bb303(0x20b))[a2_0x4bb303(0x2f8)](async(_0x41ff89,_0xfbb08d)=>{const _0x1d95f1=a2_0x4bb303,_0xe8d964=new ParentSegmentFieldsCommand(),_0x50930d=program['opts'](),_0x18e990=await createTDXInstance(_0x50930d),_0x176d69=await _0xe8d964[_0x1d95f1(0x3e3)]({'options':{..._0x50930d,..._0xfbb08d},'args':_0x41ff89?[_0x41ff89]:[],'tdx':_0x18e990});gracefulExit(_0x176d69);}),parentSegmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x2aa))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1c5))['option'](a2_0x4bb303(0x2ba),a2_0x4bb303(0x2f6))['option'](a2_0x4bb303(0x3a5),a2_0x4bb303(0x2c4))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2cb),'Output\x20as\x20JSON\x20Lines')[a2_0x4bb303(0x2f8)](async(_0x19d556,_0x5289e1)=>{const _0x1a6ebd=a2_0x4bb303,_0x5c0b12=new ParentSegmentViewCommand(),_0x183294=program[_0x1a6ebd(0x3e2)](),_0x2ce671=await createTDXInstance(_0x183294),_0x112f02=await _0x5c0b12[_0x1a6ebd(0x3e3)]({'options':{..._0x183294,..._0x5289e1},'args':_0x19d556?[_0x19d556]:[],'tdx':_0x2ce671});gracefulExit(_0x112f02);}),parentSegmentCmd['command'](a2_0x4bb303(0x3ba))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2bd))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x26d),'Output\x20file\x20path')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3a5),'Output\x20as\x20JSON')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2cb),a2_0x4bb303(0x20b))[a2_0x4bb303(0x2f8)](async(_0x38a06e,_0x55f289)=>{const _0x19b214=a2_0x4bb303,_0x1db8ee=new ParentSegmentDescCommand(),_0x4b8637=program[_0x19b214(0x3e2)](),_0x366fcc=await createTDXInstance(_0x4b8637),_0x4b8d61=await _0x1db8ee[_0x19b214(0x3e3)]({'options':{..._0x4b8637,..._0x55f289},'args':_0x38a06e?[_0x38a06e]:[],'tdx':_0x366fcc});gracefulExit(_0x4b8d61);}),parentSegmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x378))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2e5))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3a5),a2_0x4bb303(0x2c4))['option']('--jsonl',a2_0x4bb303(0x20b))[a2_0x4bb303(0x2f8)](async(_0x32855e,_0x3e38ba)=>{const _0x11c197=new ParentSegmentSQLCommand(),_0x22a3a4=program['opts'](),_0x4c16c2=await createTDXInstance(_0x22a3a4),_0x56c75e=await _0x11c197['run']({'options':{..._0x22a3a4,..._0x3e38ba},'args':_0x32855e?[_0x32855e]:[],'tdx':_0x4c16c2});gracefulExit(_0x56c75e);}),parentSegmentCmd[a2_0x4bb303(0x370)]('show\x20[name]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x3ec))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3e7),a2_0x4bb303(0x411))['option'](a2_0x4bb303(0x3a5),a2_0x4bb303(0x2c4))[a2_0x4bb303(0x36c)]('--jsonl',a2_0x4bb303(0x20b))[a2_0x4bb303(0x2f8)](async(_0x1d6442,_0x5e33e4)=>{const _0x2fe6d9=a2_0x4bb303,_0x42a137=new ParentSegmentShowCommand(),_0x3e0b90=program['opts'](),_0xdbbd8=await createTDXInstance(_0x3e0b90),_0x3e4f41=await _0x42a137[_0x2fe6d9(0x3e3)]({'options':{..._0x3e0b90,..._0x5e33e4},'args':_0x1d6442?[_0x1d6442]:[],'tdx':_0xdbbd8});gracefulExit(_0x3e4f41);}),parentSegmentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x413))[a2_0x4bb303(0x404)](a2_0x4bb303(0x37b))[a2_0x4bb303(0x2f8)](async(_0x2e67d8,_0x1cf096)=>{const _0xfada2a=a2_0x4bb303,_0x15db68=new UseCommand(),_0x58d960=program['opts'](),_0x1b387a=_0x2e67d8?[_0xfada2a(0x1ad),_0x2e67d8]:[],_0x1f88ee=await _0x15db68['run']({'options':{..._0x58d960,..._0x1cf096},'args':_0x1b387a,'tdx':null});gracefulExit(_0x1f88ee);}),parentCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x220))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1f5))[a2_0x4bb303(0x212)](a2_0x4bb303(0x25d),a2_0x4bb303(0x3c7))[a2_0x4bb303(0x212)](a2_0x4bb303(0x280),a2_0x4bb303(0x204))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x298),a2_0x4bb303(0x264))[a2_0x4bb303(0x36c)]('--schedule-type\x20<type>',a2_0x4bb303(0x235))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3e1),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2c6),a2_0x4bb303(0x1bf))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x342),a2_0x4bb303(0x326))[a2_0x4bb303(0x36c)]('--attributes-file\x20<file>',a2_0x4bb303(0x2f0))[a2_0x4bb303(0x36c)]('--behaviors\x20<json>',a2_0x4bb303(0x286))[a2_0x4bb303(0x36c)]('--behaviors-file\x20<file>',a2_0x4bb303(0x2d0))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1b0),a2_0x4bb303(0x1b5))['option'](a2_0x4bb303(0x1d0),a2_0x4bb303(0x2e7))[a2_0x4bb303(0x2f8)](async(_0x387ba9,_0x2d6e60)=>{const _0xf9ffc2=a2_0x4bb303,_0x386adf=new ParentSegmentCreateCommand(),_0x2ad5b1=program[_0xf9ffc2(0x3e2)](),_0x3f3882=await createTDXInstance(_0x2ad5b1),_0xc167cd=await _0x386adf['run']({'options':{..._0x2ad5b1,..._0x2d6e60},'args':[_0x387ba9],'tdx':_0x3f3882});gracefulExit(_0xc167cd);}),parentCmd['command']('update\x20<name>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x26a))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x298),a2_0x4bb303(0x2fd))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x360),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x4bb303(0x36c)]('--schedule-option\x20<value>',a2_0x4bb303(0x318))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2c6),a2_0x4bb303(0x305))[a2_0x4bb303(0x36c)]('--add-attributes\x20<json>',a2_0x4bb303(0x408))[a2_0x4bb303(0x36c)]('--add-attributes-file\x20<file>',a2_0x4bb303(0x2ef))['option'](a2_0x4bb303(0x2bb),a2_0x4bb303(0x369))[a2_0x4bb303(0x36c)]('--add-behaviors-file\x20<file>',a2_0x4bb303(0x251))['action'](async(_0x1e4eb9,_0x1c9fa3)=>{const _0x2d0afd=a2_0x4bb303,_0x3f92dd=new ParentSegmentUpdateCommand(),_0x1169b5=program['opts'](),_0x191925=await createTDXInstance(_0x1169b5),_0x80fe09=await _0x3f92dd[_0x2d0afd(0x3e3)]({'options':{..._0x1169b5,..._0x1c9fa3},'args':[_0x1e4eb9],'tdx':_0x191925});gracefulExit(_0x80fe09);}),folderCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1ce))['description']('Create\x20segment\x20folder')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x298),a2_0x4bb303(0x3d7))[a2_0x4bb303(0x36c)]('--parent-folder\x20<name>','Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0x1b70df,_0x50a113,_0x5ac251)=>{const _0x4d11dd=a2_0x4bb303,_0x473a6f=new SegmentFolderCreateCommand(),_0x172411=program[_0x4d11dd(0x3e2)](),_0x2270d2=await createTDXInstance(_0x172411),_0x12b215=await _0x473a6f[_0x4d11dd(0x3e3)]({'options':{..._0x172411,..._0x5ac251},'args':[_0x1b70df,_0x50a113],'tdx':_0x2270d2});gracefulExit(_0x12b215);}),program[a2_0x4bb303(0x370)]('activations\x20<segment_name>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x3de))['action'](async(_0x4d7afa,_0x667786)=>{const _0x176fd7=a2_0x4bb303,_0xaab624=new ActivationsCommand(),_0x132b0d=program['opts'](),_0x447d8c=await createTDXInstance(_0x132b0d),_0x5aedc2=await _0xaab624[_0x176fd7(0x3e3)]({'options':{..._0x132b0d,..._0x667786},'args':[_0x4d7afa],'tdx':_0x447d8c});gracefulExit(_0x5aedc2);});const workflowCmd=program[a2_0x4bb303(0x370)](a2_0x4bb303(0x352))[a2_0x4bb303(0x1ef)]('wf')[a2_0x4bb303(0x404)](a2_0x4bb303(0x383)),wfProjectCmd=workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x18f))[a2_0x4bb303(0x404)](a2_0x4bb303(0x21c)),wfProjectListAction=async(_0x56b654,_0x1eed0d)=>{const _0xdf424=a2_0x4bb303,_0x56c165=new WorkflowProjectsCommand(),_0x1bab1c=program[_0xdf424(0x3e2)](),_0x281b1d=await createTDXInstance(_0x1bab1c),_0x50d296=await _0x56c165[_0xdf424(0x3e3)]({'options':{..._0x1bab1c,..._0x1eed0d},'args':_0x56b654?[_0x56b654]:[],'tdx':_0x281b1d});gracefulExit(_0x50d296);};wfProjectCmd['command']('list\x20[pattern]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x221))[a2_0x4bb303(0x2f8)](wfProjectListAction),workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x39d))['description'](a2_0x4bb303(0x29a))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x1e2b61,_0x22ea49)=>{const _0x59f451=a2_0x4bb303,_0x5cc9a8=new WorkflowWorkflowsCommand(),_0x22270a=program[_0x59f451(0x3e2)](),_0x3e38ec=await createTDXInstance(_0x22270a),_0x182300=await _0x5cc9a8[_0x59f451(0x3e3)]({'options':{..._0x22270a,..._0x22ea49},'args':_0x1e2b61?[_0x1e2b61]:[],'tdx':_0x3e38ec});gracefulExit(_0x182300);};workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x2c0))['description'](a2_0x4bb303(0x349))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x37a))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2ab)),wfSessionListAction=async(_0x402d7e,_0x194a17)=>{const _0x4be14e=a2_0x4bb303,_0x45c57e=new WorkflowSessionsCommand(),_0xced02c=program[_0x4be14e(0x3e2)](),_0x417d82=await createTDXInstance(_0xced02c),_0xacb95=await _0x45c57e[_0x4be14e(0x3e3)]({'options':{..._0xced02c,..._0x194a17},'args':_0x402d7e?[_0x402d7e]:[],'tdx':_0x417d82});gracefulExit(_0xacb95);};wfSessionCmd['command'](a2_0x4bb303(0x261))['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x38f),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a2_0x4bb303(0x1e7),a2_0x4bb303(0x317))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x371),a2_0x4bb303(0x355))['action'](wfSessionListAction),workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x3f7))[a2_0x4bb303(0x404)](a2_0x4bb303(0x194))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x38f),a2_0x4bb303(0x2c2))[a2_0x4bb303(0x36c)]('--from\x20<timestamp>',a2_0x4bb303(0x317))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x371),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x4bb303(0x2f8)](wfSessionListAction);const wfAttemptListAction=async(_0x47fb15,_0x4305eb)=>{const _0x5b3dd3=a2_0x4bb303,_0x14d25a=new WorkflowAttemptsCommand(),_0x18f7ee=program[_0x5b3dd3(0x3e2)](),_0xacb0ad=await createTDXInstance(_0x18f7ee),_0x3375a2=await _0x14d25a[_0x5b3dd3(0x3e3)]({'options':{..._0x18f7ee,..._0x4305eb},'args':_0x47fb15?[_0x47fb15]:[],'tdx':_0xacb0ad});gracefulExit(_0x3375a2);},attemptCmd=workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x258))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2bf))[a2_0x4bb303(0x297)](a2_0x4bb303(0x1f8),a2_0x4bb303(0x283))[a2_0x4bb303(0x297)](a2_0x4bb303(0x27b),a2_0x4bb303(0x32a))['argument'](a2_0x4bb303(0x377),'Task\x20name\x20for\x20logs\x20action')[a2_0x4bb303(0x36c)]('--include-subtasks','Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x30d),a2_0x4bb303(0x25a))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x250),a2_0x4bb303(0x36a))[a2_0x4bb303(0x36c)]('--params\x20<json>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x4bb303(0x287),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x201),a2_0x4bb303(0x2da))[a2_0x4bb303(0x2f8)](async(_0x1692c0,_0x2e0f6b,_0x205706,_0x42ee3d)=>{const _0x1d2f57=a2_0x4bb303;if(_0x1692c0===_0x1d2f57(0x21f)){await wfAttemptListAction(_0x2e0f6b,_0x42ee3d);return;}if(!_0x1692c0){attemptCmd[_0x1d2f57(0x290)]();return;}const _0x29f878=program[_0x1d2f57(0x3e2)](),_0x4776d6=await createTDXInstance(_0x29f878);let _0x43dd0b=0x0;if(!_0x2e0f6b){const _0x10140f=new WorkflowAttemptCommand();_0x43dd0b=await _0x10140f[_0x1d2f57(0x3e3)]({'options':{..._0x29f878,..._0x42ee3d},'args':[_0x1692c0],'tdx':_0x4776d6});}else{if(_0x2e0f6b===_0x1d2f57(0x1da)){const _0x958ffe=new WorkflowLogsCommand();_0x43dd0b=await _0x958ffe[_0x1d2f57(0x3e3)]({'options':{..._0x29f878,..._0x42ee3d},'args':_0x205706?[_0x1692c0,_0x205706]:[_0x1692c0],'tdx':_0x4776d6});}else{if(_0x2e0f6b===_0x1d2f57(0x33a)){const _0x57d45d=new WorkflowTasksCommand();_0x43dd0b=await _0x57d45d['run']({'options':{..._0x29f878,..._0x42ee3d},'args':[_0x1692c0],'tdx':_0x4776d6});}else{if(_0x2e0f6b==='kill'){const _0x55a786=new WorkflowKillCommand();_0x43dd0b=await _0x55a786[_0x1d2f57(0x3e3)]({'options':{..._0x29f878,..._0x42ee3d},'args':[_0x1692c0],'tdx':_0x4776d6});}else{if(_0x2e0f6b===_0x1d2f57(0x242)){const _0x2eb2f0=new WorkflowRetryCommand();_0x43dd0b=await _0x2eb2f0[_0x1d2f57(0x3e3)]({'options':{..._0x29f878,..._0x42ee3d},'args':[_0x1d2f57(0x1fe)+_0x1692c0],'tdx':_0x4776d6});}else console['error'](_0x1d2f57(0x2b5)+_0x2e0f6b),console[_0x1d2f57(0x1bb)](_0x1d2f57(0x361)),_0x43dd0b=0x1;}}}}gracefulExit(_0x43dd0b);});attemptCmd['command']('list\x20[project]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x373))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x201),a2_0x4bb303(0x343))[a2_0x4bb303(0x2f8)](wfAttemptListAction),workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x24a))[a2_0x4bb303(0x404)](a2_0x4bb303(0x387))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x201),'Include\x20retried\x20attempts')[a2_0x4bb303(0x2f8)](wfAttemptListAction),workflowCmd[a2_0x4bb303(0x370)]('timeline\x20[project.workflow]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x1be))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2c9),'Follow/watch\x20timeline\x20for\x20running\x20attempts')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2e1),a2_0x4bb303(0x1f0))[a2_0x4bb303(0x36c)]('--attempt-id\x20<id>','Show\x20timeline\x20for\x20specific\x20attempt')[a2_0x4bb303(0x2f8)](async(_0x13ab1a,_0x398b9e)=>{const _0xdec174=a2_0x4bb303,_0x410aeb=new WorkflowTimelineCommand(),_0x5574ce=program[_0xdec174(0x3e2)](),_0x12b145=await createTDXInstance(_0x5574ce),_0x572f62=await _0x410aeb[_0xdec174(0x3e3)]({'options':{..._0x5574ce,..._0x398b9e},'args':_0x13ab1a?[_0x13ab1a]:[],'tdx':_0x12b145});gracefulExit(_0x572f62);}),workflowCmd['command']('retry\x20<session-id>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x410))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3bc),a2_0x4bb303(0x1ca))[a2_0x4bb303(0x36c)]('--params\x20<json>',a2_0x4bb303(0x32b))[a2_0x4bb303(0x2f8)](async(_0x570cbb,_0x457749)=>{const _0x14a1d4=a2_0x4bb303,_0x4a2680=new WorkflowRetryCommand(),_0x113b42=program[_0x14a1d4(0x3e2)](),_0x2d340f=await createTDXInstance(_0x113b42),_0x197826=await _0x4a2680[_0x14a1d4(0x3e3)]({'options':{..._0x113b42,..._0x457749},'args':[_0x570cbb],'tdx':_0x2d340f});gracefulExit(_0x197826);}),workflowCmd['command'](a2_0x4bb303(0x269))['description'](a2_0x4bb303(0x2a6))['option'](a2_0x4bb303(0x1b4),a2_0x4bb303(0x208),(_0x224f2e,_0x1be538=[])=>[..._0x1be538,_0x224f2e],[])['option'](a2_0x4bb303(0x23e),a2_0x4bb303(0x192))[a2_0x4bb303(0x2f8)](async(_0x45e372,_0x1cc2bc)=>{const _0x5f23fb=a2_0x4bb303,_0x44d971=new WorkflowRunCommand(),_0x1dd575=program[_0x5f23fb(0x3e2)](),_0x46c98a=await createTDXInstance(_0x1dd575),_0x4e49ea=await _0x44d971[_0x5f23fb(0x3e3)]({'options':{..._0x1dd575,..._0x1cc2bc},'args':_0x45e372?[_0x45e372]:[],'tdx':_0x46c98a});gracefulExit(_0x4e49ea);}),workflowCmd['command'](a2_0x4bb303(0x386))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1d5))['option']('--revision\x20<revision>',a2_0x4bb303(0x2ff))[a2_0x4bb303(0x2f8)](async(_0x7a2610,_0x2f2bd7,_0x397f40)=>{const _0x1290d4=a2_0x4bb303,_0x1d1ca5=new WorkflowDownloadCommand(),_0xd5a154=program[_0x1290d4(0x3e2)](),_0x200f02=await createTDXInstance(_0xd5a154),_0x282817=await _0x1d1ca5[_0x1290d4(0x3e3)]({'options':{..._0xd5a154,..._0x397f40},'args':[_0x7a2610,_0x2f2bd7||'.'],'tdx':_0x200f02});gracefulExit(_0x282817);}),workflowCmd[a2_0x4bb303(0x370)]('pull\x20<project>\x20[target-dir]')[a2_0x4bb303(0x404)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x291),a2_0x4bb303(0x247))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2b8),a2_0x4bb303(0x3f9))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x306),a2_0x4bb303(0x36f))[a2_0x4bb303(0x2f8)](async(_0x204f4d,_0xed0a8e,_0x1a7f78)=>{const _0x4ae8b8=a2_0x4bb303,_0x389f64=new WorkflowPullCommand(),_0x2384f7=program[_0x4ae8b8(0x3e2)](),_0x3e2613=await createTDXInstance(_0x2384f7),_0xeac992=await _0x389f64[_0x4ae8b8(0x3e3)]({'options':{..._0x2384f7,..._0x1a7f78},'args':_0xed0a8e?[_0x204f4d,_0xed0a8e]:[_0x204f4d],'tdx':_0x3e2613});gracefulExit(_0xeac992);}),workflowCmd['command']('push\x20[source-dir]')['description'](a2_0x4bb303(0x294))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x291),a2_0x4bb303(0x27f))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2b8),a2_0x4bb303(0x1fb))[a2_0x4bb303(0x36c)]('--skip-validation',a2_0x4bb303(0x21b))[a2_0x4bb303(0x36c)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x4bb303(0x2f8)](async(_0x558024,_0x338f8e)=>{const _0x233c65=a2_0x4bb303,_0x1a58bd=new WorkflowPushCommand(),_0x5ab40b=program['opts'](),_0xc17c37=await createTDXInstance(_0x5ab40b),_0x55d156=await _0x1a58bd[_0x233c65(0x3e3)]({'options':{..._0x5ab40b,..._0x338f8e},'args':_0x558024?[_0x558024]:[],'tdx':_0xc17c37});gracefulExit(_0x55d156);}),workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x334))[a2_0x4bb303(0x404)](a2_0x4bb303(0x206))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x29e),a2_0x4bb303(0x1e4))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x291),a2_0x4bb303(0x1ff))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3f3),a2_0x4bb303(0x21b))['action'](async(_0x2cc3b1,_0x1fc45e)=>{const _0x319c9a=a2_0x4bb303,_0x5425bf=new WorkflowUploadCommand(),_0x3776e1=program['opts'](),_0x49c423=await createTDXInstance(_0x3776e1),_0x42d020=await _0x5425bf[_0x319c9a(0x3e3)]({'options':{..._0x3776e1,..._0x1fc45e},'args':_0x2cc3b1?[_0x2cc3b1]:[],'tdx':_0x49c423});gracefulExit(_0x42d020);}),workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1f4))[a2_0x4bb303(0x404)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x29e),'Name\x20for\x20the\x20new\x20project\x20(required)')['option'](a2_0x4bb303(0x291),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2b8),a2_0x4bb303(0x34b))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3f3),a2_0x4bb303(0x21b))[a2_0x4bb303(0x36c)]('-y,\x20--yes',a2_0x4bb303(0x36f))[a2_0x4bb303(0x2f8)](async(_0x2d74d8,_0x2ea5ec)=>{const _0x222df1=a2_0x4bb303,_0x2f6ef9=new WorkflowCloneCommand(),_0x5bed8f=program[_0x222df1(0x3e2)](),_0x2689d9=await createTDXInstance(_0x5bed8f),_0x2c014d=await _0x2f6ef9['run']({'options':{..._0x5bed8f,..._0x2ea5ec},'args':_0x2d74d8?[_0x2d74d8]:[],'tdx':_0x2689d9});gracefulExit(_0x2c014d);}),workflowCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x39e))['description'](a2_0x4bb303(0x2be))[a2_0x4bb303(0x2f8)](async(_0x2fa1be,_0x1b08a8)=>{const _0x12c6ad=a2_0x4bb303,_0x4a59a7=new WorkflowDeleteCommand(),_0x442623=program['opts'](),_0x378c23=await createTDXInstance(_0x442623),_0x9ecd72=await _0x4a59a7[_0x12c6ad(0x3e3)]({'options':{..._0x442623,..._0x1b08a8},'args':[_0x2fa1be],'tdx':_0x378c23});gracefulExit(_0x9ecd72);}),workflowCmd[a2_0x4bb303(0x370)]('use\x20[project]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x33d))['option'](a2_0x4bb303(0x1df),a2_0x4bb303(0x3a2))['action'](async(_0x314622,_0x3739b6)=>{const _0x2bd11b=a2_0x4bb303,_0xe5be89=new WorkflowUseCommand(),_0xede1c4=program[_0x2bd11b(0x3e2)](),_0x55b664=await createTDXInstance(_0xede1c4),_0x4c67dd=await _0xe5be89[_0x2bd11b(0x3e3)]({'options':{..._0xede1c4,..._0x3739b6},'args':_0x314622?[_0x314622]:[],'tdx':_0x55b664});gracefulExit(_0x4c67dd);});const wfSecretsCmd=workflowCmd['command'](a2_0x4bb303(0x218))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1a0));wfSecretsCmd['command']('list\x20[project]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x2e9))[a2_0x4bb303(0x2f8)](async(_0xb88545,_0xe1cf2a)=>{const _0x2f7b47=a2_0x4bb303,_0x4d3f3a=new WorkflowSecretsListCommand(),_0x1f3209=program[_0x2f7b47(0x3e2)](),_0x48b165=await createTDXInstance(_0x1f3209),_0x28d0ba=await _0x4d3f3a[_0x2f7b47(0x3e3)]({'options':{..._0x1f3209,..._0xe1cf2a},'args':_0xb88545?[_0xb88545]:[],'tdx':_0x48b165});gracefulExit(_0x28d0ba);}),wfSecretsCmd['command'](a2_0x4bb303(0x327))[a2_0x4bb303(0x404)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')[a2_0x4bb303(0x2f8)](async(_0x1d8735,_0x59d930)=>{const _0x453fbe=new WorkflowSecretsSetCommand(),_0x5996cc=program['opts'](),_0x147e5d=await createTDXInstance(_0x5996cc),_0x51bbb0=await _0x453fbe['run']({'options':{..._0x5996cc,..._0x59d930},'args':_0x1d8735,'tdx':_0x147e5d});gracefulExit(_0x51bbb0);}),wfSecretsCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x234))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2cc))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')['action'](async(_0x2d24ad,_0x4e00f1)=>{const _0x9ae0cb=a2_0x4bb303,_0x2188c9=new WorkflowSecretsDeleteCommand(),_0x7f52b4=program[_0x9ae0cb(0x3e2)](),_0x2e453c=await createTDXInstance(_0x7f52b4),_0x26048a=await _0x2188c9[_0x9ae0cb(0x3e3)]({'options':{..._0x7f52b4,..._0x4e00f1},'args':_0x2d24ad,'tdx':_0x2e453c});gracefulExit(_0x26048a);});const jobCmd=program[a2_0x4bb303(0x370)](a2_0x4bb303(0x22a))['description'](a2_0x4bb303(0x353)),jobListAction=async _0x17f076=>{const _0x3b1386=a2_0x4bb303,_0x483bb9=new JobListCommand(),_0x4ef092=program[_0x3b1386(0x3e2)](),_0x270549=await createTDXInstance(_0x4ef092),_0x40b23a=await _0x483bb9[_0x3b1386(0x3e3)]({'options':{..._0x4ef092,..._0x17f076},'args':[],'tdx':_0x270549});gracefulExit(_0x40b23a);};jobCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x21f))[a2_0x4bb303(0x404)](a2_0x4bb303(0x279))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x38f),a2_0x4bb303(0x232))['action'](jobListAction),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x3c9),{'hidden':!![]})[a2_0x4bb303(0x404)](a2_0x4bb303(0x273))['option'](a2_0x4bb303(0x38f),a2_0x4bb303(0x232))[a2_0x4bb303(0x2f8)](jobListAction),jobCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x23c))[a2_0x4bb303(0x404)](a2_0x4bb303(0x33e))['action'](async(_0x5def91,_0x34f09b)=>{const _0x3be43b=a2_0x4bb303,_0x5e6b66=new JobShowCommand(),_0x441c44=program['opts'](),_0x387115=await createTDXInstance(_0x441c44),_0x5726ed=await _0x5e6b66[_0x3be43b(0x3e3)]({'options':{..._0x441c44,..._0x34f09b},'args':[_0x5def91],'tdx':_0x387115});gracefulExit(_0x5726ed);}),jobCmd[a2_0x4bb303(0x370)]('kill\x20<job-id>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x1ee))['action'](async(_0x398332,_0x4376da)=>{const _0x4df851=a2_0x4bb303,_0x492a75=new JobKillCommand(),_0x382fe9=program[_0x4df851(0x3e2)](),_0x18568c=await createTDXInstance(_0x382fe9),_0x22ffea=await _0x492a75['run']({'options':{..._0x382fe9,..._0x4376da},'args':[_0x398332],'tdx':_0x18568c});gracefulExit(_0x22ffea);}),jobCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x22c))[a2_0x4bb303(0x404)](a2_0x4bb303(0x18e))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x20a),a2_0x4bb303(0x23b),a2_0x4bb303(0x253))[a2_0x4bb303(0x36c)]('-f,\x20--file\x20<path>',a2_0x4bb303(0x29f))[a2_0x4bb303(0x36c)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)','information_schema')[a2_0x4bb303(0x2f8)](async(_0x2f8256,_0x469d2c)=>{const _0x5e966c=a2_0x4bb303,_0x50b40c=new JobSubmitCommand(),_0x4b4751=program[_0x5e966c(0x3e2)](),_0xa884f6=await createTDXInstance(_0x4b4751),_0x3cab1d=await _0x50b40c[_0x5e966c(0x3e3)]({'options':{..._0x4b4751,..._0x469d2c},'args':_0x2f8256?[_0x2f8256]:[],'tdx':_0xa884f6});gracefulExit(_0x3cab1d);}),jobCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x35a))[a2_0x4bb303(0x404)]('Get\x20job\x20results')['action'](async(_0x1a3c67,_0x20fdd7)=>{const _0x33b90e=a2_0x4bb303,_0x202a38=new JobResultCommand(),_0xfe7303=program[_0x33b90e(0x3e2)](),_0xb066e8=await createTDXInstance(_0xfe7303),_0x41e157=await _0x202a38[_0x33b90e(0x3e3)]({'options':{..._0xfe7303,..._0x20fdd7},'args':[_0x1a3c67],'tdx':_0xb066e8});gracefulExit(_0x41e157);});const scheduleCmd=jobCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x356))['description']('Scheduled\x20query\x20management\x20commands');scheduleCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1e2))['description']('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')['action'](async(_0x43756b,_0x54eef0)=>{const _0x526718=a2_0x4bb303,_0x1ddf96=new ScheduleListCommand(),_0x3a68d5=program[_0x526718(0x3e2)](),_0x3e186e=await createTDXInstance(_0x3a68d5),_0x11f42d=await _0x1ddf96['run']({'options':{..._0x3a68d5,..._0x54eef0},'args':_0x43756b?[_0x43756b]:[],'tdx':_0x3e186e});gracefulExit(_0x11f42d);}),scheduleCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x19e))['description'](a2_0x4bb303(0x248))[a2_0x4bb303(0x2f8)](async(_0x4a8aef,_0x5c7c81)=>{const _0x5343d=a2_0x4bb303,_0x15ed17=new ScheduleShowCommand(),_0x4889eb=program[_0x5343d(0x3e2)](),_0x57a0fa=await createTDXInstance(_0x4889eb),_0x3b0220=await _0x15ed17[_0x5343d(0x3e3)]({'options':{..._0x4889eb,..._0x5c7c81},'args':[_0x4a8aef],'tdx':_0x57a0fa});gracefulExit(_0x3b0220);}),scheduleCmd['command'](a2_0x4bb303(0x220))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1f9))[a2_0x4bb303(0x212)](a2_0x4bb303(0x211),a2_0x4bb303(0x3bf))[a2_0x4bb303(0x212)](a2_0x4bb303(0x3a3),a2_0x4bb303(0x29f))['option'](a2_0x4bb303(0x341),a2_0x4bb303(0x1c4),a2_0x4bb303(0x253))['option'](a2_0x4bb303(0x3c4),'Cron\x20expression\x20for\x20scheduling')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2c6),a2_0x4bb303(0x205))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x321),a2_0x4bb303(0x2db))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3d9),a2_0x4bb303(0x2a5))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x340),a2_0x4bb303(0x252))['option'](a2_0x4bb303(0x2f3),'Query\x20engine\x20version')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1b8),a2_0x4bb303(0x3d3))[a2_0x4bb303(0x2f8)](async(_0x3b3083,_0x3cec06)=>{const _0x1a2f55=a2_0x4bb303,_0x14c8a1=new ScheduleCreateCommand(),_0x487b1a=program['opts'](),_0x5348eb=await createTDXInstance(_0x487b1a),_0x40dbe8=await _0x14c8a1[_0x1a2f55(0x3e3)]({'options':{..._0x487b1a,..._0x3cec06},'args':[_0x3b3083],'tdx':_0x5348eb});gracefulExit(_0x40dbe8);}),scheduleCmd[a2_0x4bb303(0x370)]('update\x20<name>')['description'](a2_0x4bb303(0x2a0))['option'](a2_0x4bb303(0x211),'Database\x20name')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3a3),'Read\x20query\x20from\x20file')[a2_0x4bb303(0x36c)]('--type\x20<type>',a2_0x4bb303(0x1c4))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3c4),'Cron\x20expression\x20for\x20scheduling')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2c6),a2_0x4bb303(0x284))[a2_0x4bb303(0x36c)]('--delay\x20<seconds>',a2_0x4bb303(0x2db))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3d9),'Job\x20priority\x20(-2\x20to\x202)')['option'](a2_0x4bb303(0x340),a2_0x4bb303(0x252))[a2_0x4bb303(0x36c)]('--engine-version\x20<version>',a2_0x4bb303(0x35e))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1b8),a2_0x4bb303(0x3d3))[a2_0x4bb303(0x2f8)](async(_0x152045,_0x416c97)=>{const _0x2cfea5=a2_0x4bb303,_0xc89f6=new ScheduleUpdateCommand(),_0x5aa201=program[_0x2cfea5(0x3e2)](),_0x5ee1ed=await createTDXInstance(_0x5aa201),_0x48a908=await _0xc89f6[_0x2cfea5(0x3e3)]({'options':{..._0x5aa201,..._0x416c97},'args':[_0x152045],'tdx':_0x5ee1ed});gracefulExit(_0x48a908);}),scheduleCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x3ea))[a2_0x4bb303(0x404)]('Delete\x20a\x20scheduled\x20query')[a2_0x4bb303(0x2f8)](async(_0x258b2a,_0x3c4b47)=>{const _0x404552=a2_0x4bb303,_0x735c7=new ScheduleDeleteCommand(),_0xb60bad=program['opts'](),_0x12af18=await createTDXInstance(_0xb60bad),_0x2a8df7=await _0x735c7[_0x404552(0x3e3)]({'options':{..._0xb60bad,..._0x3c4b47},'args':[_0x258b2a],'tdx':_0x12af18});gracefulExit(_0x2a8df7);}),scheduleCmd[a2_0x4bb303(0x370)]('run\x20<name>')['description'](a2_0x4bb303(0x308))[a2_0x4bb303(0x36c)]('--time\x20<iso8601>',a2_0x4bb303(0x262))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x20f),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')[a2_0x4bb303(0x2f8)](async(_0x175329,_0x15da1f)=>{const _0xa7e787=a2_0x4bb303,_0xedc2e8=new ScheduleRunCommand(),_0x2774d4=program[_0xa7e787(0x3e2)](),_0xcf6489=await createTDXInstance(_0x2774d4),_0x344e09=await _0xedc2e8[_0xa7e787(0x3e3)]({'options':{..._0x2774d4,..._0x15da1f},'args':[_0x175329],'tdx':_0xcf6489});gracefulExit(_0x344e09);}),scheduleCmd['command'](a2_0x4bb303(0x20e))[a2_0x4bb303(0x404)]('Show\x20schedule\x20execution\x20history')['option'](a2_0x4bb303(0x281),'Starting\x20offset\x20(default:\x200)')[a2_0x4bb303(0x36c)]('--to\x20<n>',a2_0x4bb303(0x310))[a2_0x4bb303(0x2f8)](async(_0x3486a4,_0x41f824)=>{const _0x2b5569=a2_0x4bb303,_0x3c3242=new ScheduleHistoryCommand(),_0x141d98=program[_0x2b5569(0x3e2)](),_0x957b1f=await createTDXInstance(_0x141d98),_0x5b83fa=await _0x3c3242['run']({'options':{..._0x141d98,..._0x41f824},'args':[_0x3486a4],'tdx':_0x957b1f});gracefulExit(_0x5b83fa);});const llmCmd=program[a2_0x4bb303(0x370)]('llm')[a2_0x4bb303(0x404)](a2_0x4bb303(0x28e));llmCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x3a1))[a2_0x4bb303(0x404)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x4bb303(0x2f8)](async(_0x4151b1,_0x49b481)=>{const _0x191bdd=new LLMUseCommand(),_0x2f1997=program['opts'](),_0x379bab=await createTDXInstance(_0x2f1997),_0x20961c=await _0x191bdd['run']({'options':{..._0x2f1997,..._0x49b481},'args':[_0x4151b1],'tdx':_0x379bab});gracefulExit(_0x20961c);}),llmCmd[a2_0x4bb303(0x370)]('models')[a2_0x4bb303(0x404)](a2_0x4bb303(0x277))[a2_0x4bb303(0x2f8)](async _0x5842a8=>{const _0x349955=new LLMModelsCommand(),_0xd693f9=program['opts'](),_0x16e17b=await createTDXInstance(_0xd693f9),_0x2985fd=await _0x349955['run']({'options':{..._0xd693f9,..._0x5842a8},'args':[],'tdx':_0x16e17b});gracefulExit(_0x2985fd);});const projectCmd=llmCmd[a2_0x4bb303(0x370)]('project')['description'](a2_0x4bb303(0x1f6)),llmProjectListAction=async(_0x545797,_0x1ecef9)=>{const _0x3d597b=a2_0x4bb303,_0x42064c=new LLMProjectsCommand(),_0x478f11=program[_0x3d597b(0x3e2)](),_0x484cd7=await createTDXInstance(_0x478f11),_0x4ba724=await _0x42064c['run']({'options':{..._0x478f11,..._0x1ecef9},'args':_0x545797?[_0x545797]:[],'tdx':_0x484cd7});gracefulExit(_0x4ba724);};projectCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1e2))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3a4))[a2_0x4bb303(0x2f8)](llmProjectListAction),llmCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x39d))[a2_0x4bb303(0x404)](a2_0x4bb303(0x225))[a2_0x4bb303(0x2f8)](llmProjectListAction),projectCmd['command']('create\x20<name>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x2a2))[a2_0x4bb303(0x36c)]('--description\x20<text>',a2_0x4bb303(0x1c7))['action'](async(_0x43f323,_0xaae08b)=>{const _0x5b81fd=a2_0x4bb303,_0x5dcd68=new LLMProjectCreateCommand(),_0x1f317b=program[_0x5b81fd(0x3e2)](),_0x2be2ff=await createTDXInstance(_0x1f317b),_0x5a1675=await _0x5dcd68[_0x5b81fd(0x3e3)]({'options':{..._0x1f317b,..._0xaae08b},'args':[_0x43f323],'tdx':_0x2be2ff});gracefulExit(_0x5a1675);}),projectCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x3ea))[a2_0x4bb303(0x404)](a2_0x4bb303(0x385))[a2_0x4bb303(0x2f8)](async(_0x4e6c29,_0x5b651b)=>{const _0x407d75=a2_0x4bb303,_0xbf1323=new LLMProjectDeleteCommand(),_0x3bef20=program['opts'](),_0x71dd7d=await createTDXInstance(_0x3bef20),_0x1acc2d=await _0xbf1323[_0x407d75(0x3e3)]({'options':{..._0x3bef20,..._0x5b651b},'args':[_0x4e6c29],'tdx':_0x71dd7d});gracefulExit(_0x1acc2d);}),projectCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x26c))[a2_0x4bb303(0x404)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x4bb303(0x36c)]('-o,\x20--output\x20<folder>',a2_0x4bb303(0x30b))['option'](a2_0x4bb303(0x2b8),a2_0x4bb303(0x3db))[a2_0x4bb303(0x2f8)](async(_0x2ffd0a,_0x3b6286)=>{const _0x363a62=a2_0x4bb303,_0x4b57f9=new LLMProjectBackupCommand(),_0xee1c61=program['opts'](),_0x2a1105=await createTDXInstance(_0xee1c61),_0x4addf5=await _0x4b57f9[_0x363a62(0x3e3)]({'options':{..._0xee1c61,..._0x3b6286},'args':[_0x2ffd0a],'tdx':_0x2a1105});gracefulExit(_0x4addf5);}),projectCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x35b))[a2_0x4bb303(0x404)](a2_0x4bb303(0x28b))['option'](a2_0x4bb303(0x40d),a2_0x4bb303(0x268))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2b8),a2_0x4bb303(0x27d))['action'](async(_0x151eb3,_0x26e278)=>{const _0x4991cc=a2_0x4bb303,_0x34126f=new LLMProjectRestoreCommand(),_0x5b8197=program['opts'](),_0xfe9b19=await createTDXInstance(_0x5b8197),_0x9238f=await _0x34126f[_0x4991cc(0x3e3)]({'options':{..._0x5b8197,..._0x26e278},'args':[_0x151eb3],'tdx':_0xfe9b19});gracefulExit(_0x9238f);});const llmAgentListAction=async(_0xc29e44,_0x550315)=>{const _0x520d38=a2_0x4bb303,_0x1d3a7f=new LLMAgentsCommand(),_0x2fc5f5=program[_0x520d38(0x3e2)](),_0x13bd6c=await createTDXInstance(_0x2fc5f5),_0x4e5d4f=await _0x1d3a7f[_0x520d38(0x3e3)]({'options':{..._0x2fc5f5,..._0x550315},'args':_0xc29e44?[_0xc29e44]:[],'tdx':_0x13bd6c});gracefulExit(_0x4e5d4f);};llmCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x320))[a2_0x4bb303(0x404)](a2_0x4bb303(0x34f))[a2_0x4bb303(0x2f8)](llmAgentListAction),program[a2_0x4bb303(0x370)]('agents\x20[pattern]')['description'](a2_0x4bb303(0x34f))[a2_0x4bb303(0x2f8)](llmAgentListAction),llmCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x275))[a2_0x4bb303(0x404)](a2_0x4bb303(0x409))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3b4),a2_0x4bb303(0x38e))['action'](async(_0x2c1db9,_0x149721)=>{const _0x2c37b5=a2_0x4bb303,_0x26937b=new LLMHistoryCommand(),_0x5a11a3=program[_0x2c37b5(0x3e2)](),_0xc1623c=await createTDXInstance(_0x5a11a3),_0x260a4c=await _0x26937b['run']({'options':{..._0x5a11a3,..._0x149721},'args':_0x2c1db9?[_0x2c1db9]:[],'tdx':_0xc1623c});gracefulExit(_0x260a4c);});isExperimentalAvailable()&&llmCmd[a2_0x4bb303(0x370)]('log\x20<chat-id>')[a2_0x4bb303(0x404)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x4bb303(0x2f8)](async(_0x57f119,_0x5ac22b)=>{const _0x3f36f2=a2_0x4bb303,_0x54e0bb=new LLMLogCommand(),_0x4915f4=program[_0x3f36f2(0x3e2)](),_0x53f7d4=await createTDXInstance(_0x4915f4),_0x3a2172=await _0x54e0bb[_0x3f36f2(0x3e3)]({'options':{..._0x4915f4,..._0x5ac22b},'args':[_0x57f119],'tdx':_0x53f7d4});gracefulExit(_0x3a2172);});program[a2_0x4bb303(0x370)](a2_0x4bb303(0x330))[a2_0x4bb303(0x2fe)]('[options]\x20--\x20[claude-code-args...]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x31f))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x389),'Continue\x20most\x20recent\x20conversation')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x199),a2_0x4bb303(0x19f))[a2_0x4bb303(0x36c)]('--no-proxy',a2_0x4bb303(0x224))[a2_0x4bb303(0x34e)]()[a2_0x4bb303(0x1c6)](!![])['addHelpText'](a2_0x4bb303(0x1cd),a2_0x4bb303(0x1d1))['action'](async(_0x26e8fa,_0x5f2c88)=>{const _0x2ed2c4=a2_0x4bb303,_0x5c0176=program[_0x2ed2c4(0x3e2)](),_0x1130c6=Array[_0x2ed2c4(0x2e8)](_0x26e8fa)?_0x26e8fa:[];if(_0x1130c6[0x0]===_0x2ed2c4(0x1a1)){const _0xccf812=new ClaudeStatuslineCommand(),_0x112de5=await _0xccf812[_0x2ed2c4(0x3e3)]({'options':{..._0x5c0176,..._0x5f2c88},'args':_0x1130c6['slice'](0x1),'tdx':null});gracefulExit(_0x112de5);}if(_0x1130c6[0x0]==='usage'){const _0xe24832=new ClaudeUsageCommand(),_0x122a01=await _0xe24832[_0x2ed2c4(0x3e3)]({'options':{..._0x5c0176,..._0x5f2c88},'args':_0x1130c6[_0x2ed2c4(0x333)](0x1),'tdx':null});gracefulExit(_0x122a01);}const _0x183979=new ClaudeCommand(),_0x3cc6c9=await createTDXInstance(_0x5c0176),_0x48dac7=await _0x183979[_0x2ed2c4(0x3e3)]({'options':{..._0x5c0176,..._0x5f2c88},'args':_0x1130c6,'tdx':_0x3cc6c9});gracefulExit(_0x48dac7);}),program[a2_0x4bb303(0x370)]('use\x20[resource]\x20[value]')[a2_0x4bb303(0x404)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1df),'Clear\x20session\x20context')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3fb),a2_0x4bb303(0x2de))[a2_0x4bb303(0x2f8)](async(_0x2e1c0f,_0x2c917b,_0x17a766)=>{const _0x5da074=a2_0x4bb303,_0x12a121=new UseCommand(),_0x37de56=program['opts'](),_0x593cfe=[];if(_0x2e1c0f)_0x593cfe[_0x5da074(0x37c)](_0x2e1c0f);if(_0x2c917b)_0x593cfe[_0x5da074(0x37c)](_0x2c917b);const _0x24f7eb=await _0x12a121['run']({'options':{..._0x37de56,..._0x17a766},'args':_0x593cfe,'tdx':null});gracefulExit(_0x24f7eb);}),program[a2_0x4bb303(0x370)]('status')[a2_0x4bb303(0x404)](a2_0x4bb303(0x2d5))[a2_0x4bb303(0x2f8)](async _0x2f7098=>{const _0x247818=new StatusCommand(),_0x222db1=program['opts'](),_0x3a7d6f=await createTDXInstance(_0x222db1),_0x220120=await _0x247818['run']({'options':{..._0x222db1,..._0x2f7098},'args':[],'tdx':_0x3a7d6f});gracefulExit(_0x220120);}),program['command']('unset\x20<resource>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x23f))[a2_0x4bb303(0x36c)]('--default',a2_0x4bb303(0x40e))[a2_0x4bb303(0x2f8)](async(_0x5f4a1a,_0x4edb53)=>{const _0x4f6539=a2_0x4bb303,_0x433538=new UnsetCommand(),_0x5887f7=program[_0x4f6539(0x3e2)](),_0x3f30ba=await _0x433538['run']({'options':{..._0x5887f7,..._0x4edb53},'args':[_0x5f4a1a],'tdx':null});gracefulExit(_0x3f30ba);}),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x198))[a2_0x4bb303(0x404)]('Interactive\x20chat\x20selector')['option'](a2_0x4bb303(0x3b4),a2_0x4bb303(0x32d))[a2_0x4bb303(0x2f8)](async _0x1ba0c4=>{const _0x5bd0ba=a2_0x4bb303,_0x481419=new ChatsCommand(),_0x8016d9=program[_0x5bd0ba(0x3e2)](),_0x48b8de=await createTDXInstance(_0x8016d9),_0x421255=await _0x481419[_0x5bd0ba(0x3e3)]({'options':{..._0x8016d9,..._0x1ba0c4},'args':[],'tdx':_0x48b8de});gracefulExit(_0x421255);});const authCmd=program['command'](a2_0x4bb303(0x32c))['description'](a2_0x4bb303(0x1f1));async function runAuthStatusCommand(_0x949959){const _0x137eb6=a2_0x4bb303,_0x56cde4=new AuthStatusCommand(),_0x4559cc=program[_0x137eb6(0x3e2)](),_0x34542c=await createTDXInstance(_0x4559cc),_0xf59a08=await _0x56cde4[_0x137eb6(0x3e3)]({'options':{..._0x4559cc,..._0x949959},'args':[],'tdx':_0x34542c});gracefulExit(_0xf59a08);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x32e))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2b1))[a2_0x4bb303(0x2f8)](runAuthStatusCommand),authCmd['command']('setup')['description'](a2_0x4bb303(0x23d))[a2_0x4bb303(0x31c)]('after',a2_0x4bb303(0x382))[a2_0x4bb303(0x2f8)](async _0x2aa4ba=>{const _0x3965c3=a2_0x4bb303,_0x101d4a=new AuthSetupCommand(),_0x535487=program[_0x3965c3(0x3e2)](),_0x11ecb4=await createTDXInstance(_0x535487),_0x2bb58d=await _0x101d4a[_0x3965c3(0x3e3)]({'options':{..._0x535487,..._0x2aa4ba},'args':[],'tdx':_0x11ecb4});gracefulExit(_0x2bb58d);}),authCmd['command'](a2_0x4bb303(0x31e))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2cd))['addHelpText'](a2_0x4bb303(0x1cd),a2_0x4bb303(0x40f))[a2_0x4bb303(0x2f8)](async _0x4d7fe3=>{const _0xd96a51=a2_0x4bb303,_0x3887e9=new AuthClearCommand(),_0x3d273a=program['opts'](),_0x2e2ac0=await _0x3887e9[_0xd96a51(0x3e3)]({'options':{..._0x3d273a,..._0x4d7fe3},'args':[],'tdx':null});gracefulExit(_0x2e2ac0);});const userCmd=program[a2_0x4bb303(0x370)](a2_0x4bb303(0x27a))[a2_0x4bb303(0x404)]('User\x20management\x20commands'),userListAction=async _0x159177=>{const _0x353097=a2_0x4bb303,_0x2119bd=new UserListCommand(),_0x97aa7e=program[_0x353097(0x3e2)](),_0x192807=await createTDXInstance(_0x97aa7e),_0x5cd05f=await _0x2119bd['run']({'options':{..._0x97aa7e,..._0x159177},'args':[],'tdx':_0x192807});gracefulExit(_0x5cd05f);};userCmd[a2_0x4bb303(0x2f8)](async _0x1365bc=>{const _0x56c44b=a2_0x4bb303,_0x529df8=new UserCommand(),_0x4b886=program[_0x56c44b(0x3e2)](),_0xc41391=await createTDXInstance(_0x4b886),_0x10dc6c=await _0x529df8[_0x56c44b(0x3e3)]({'options':{..._0x4b886,..._0x1365bc},'args':[],'tdx':_0xc41391});gracefulExit(_0x10dc6c);}),userCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x21f))[a2_0x4bb303(0x404)](a2_0x4bb303(0x231))[a2_0x4bb303(0x2f8)](userListAction),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x295))['description'](a2_0x4bb303(0x1b3))[a2_0x4bb303(0x2f8)](userListAction),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x325))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3df))[a2_0x4bb303(0x2f8)](async _0x439cee=>{const _0x224684=a2_0x4bb303,_0x1fb859=new ProfilesCommand(),_0x5eaa15=program[_0x224684(0x3e2)](),_0x3dda45=await _0x1fb859[_0x224684(0x3e3)]({'options':{..._0x5eaa15,..._0x439cee},'args':[],'tdx':null});gracefulExit(_0x3dda45);});const profileCmd=program[a2_0x4bb303(0x370)](a2_0x4bb303(0x2c1))['description'](a2_0x4bb303(0x260));profileCmd[a2_0x4bb303(0x2f8)](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x292efd=>{const _0x891fdf=a2_0x4bb303,_0x3dab26=new ProfilesCommand(),_0x1cc105=program[_0x891fdf(0x3e2)](),_0x9c6e3=await _0x3dab26[_0x891fdf(0x3e3)]({'options':{..._0x1cc105,..._0x292efd},'args':[],'tdx':null});gracefulExit(_0x9c6e3);};profileCmd['command'](a2_0x4bb303(0x21f))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3df))['action'](profileListAction),profileCmd['command'](a2_0x4bb303(0x359))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2d9))['addHelpText'](a2_0x4bb303(0x1cd),'\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')['action'](async(_0x37fd7d,_0x203243)=>{const _0x8237f3=a2_0x4bb303,_0x2d635e=new ProfileCreateCommand(),_0x54bac4=program[_0x8237f3(0x3e2)](),_0x434ab8=await _0x2d635e[_0x8237f3(0x3e3)]({'options':{..._0x54bac4,..._0x203243},'args':_0x37fd7d?[_0x37fd7d]:[],'tdx':null});gracefulExit(_0x434ab8);}),profileCmd['command'](a2_0x4bb303(0x2e2))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2ce))[a2_0x4bb303(0x31c)](a2_0x4bb303(0x1cd),a2_0x4bb303(0x335))[a2_0x4bb303(0x2f8)](async(_0x53f7bf,_0x57b796)=>{const _0x140465=a2_0x4bb303,_0x5be3c4=new ProfileRemoveCommand(),_0x3e9b45=program[_0x140465(0x3e2)](),_0x56a4d4=await _0x5be3c4[_0x140465(0x3e3)]({'options':{..._0x3e9b45,..._0x57b796},'args':[_0x53f7bf],'tdx':null});gracefulExit(_0x56a4d4);}),profileCmd['command']('set\x20<key=value>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x296))['addHelpText'](a2_0x4bb303(0x1cd),a2_0x4bb303(0x20c))[a2_0x4bb303(0x2f8)](async(_0x56bf00,_0x3c3850)=>{const _0x4ed358=a2_0x4bb303,_0x24af05=new ProfileSetCommand(),_0x7009b9=program[_0x4ed358(0x3e2)](),_0x4084f1=await _0x24af05['run']({'options':{..._0x7009b9,..._0x3c3850},'args':[_0x56bf00],'tdx':null});gracefulExit(_0x4084f1);}),profileCmd['command'](a2_0x4bb303(0x3f0))[a2_0x4bb303(0x404)](a2_0x4bb303(0x27c))[a2_0x4bb303(0x36c)]('--default',a2_0x4bb303(0x2de))['addHelpText'](a2_0x4bb303(0x1cd),a2_0x4bb303(0x1d2))[a2_0x4bb303(0x2f8)](async(_0x1d4b76,_0x193088)=>{const _0x54af26=a2_0x4bb303,_0x17fd43=new ProfileUseCommand(),_0x46b4b8=program[_0x54af26(0x3e2)](),_0x18374e=await _0x17fd43[_0x54af26(0x3e3)]({'options':{..._0x46b4b8,..._0x193088},'args':[_0x1d4b76],'tdx':null});gracefulExit(_0x18374e);});const engageCmd=program['command'](a2_0x4bb303(0x272))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3ca)),createEngageAction=_0x4f2d7d=>{return async(_0x38f4a3,_0x2d399d)=>{const _0xcb739c=a2_0x2e2c,_0xcd77d7=new _0x4f2d7d(),_0x2127df=program[_0xcb739c(0x3e2)](),_0x15e2e1=await createTDXInstance(_0x2127df),_0x4e2ea6=await _0xcd77d7[_0xcb739c(0x3e3)]({'options':{..._0x2127df,..._0x2d399d},'args':[_0x38f4a3],'tdx':_0x15e2e1});gracefulExit(_0x4e2ea6);};},createEngageNoArgAction=_0x366e1d=>{return async _0x3fd650=>{const _0x4380ec=a2_0x2e2c,_0x4869f6=new _0x366e1d(),_0x249b96=program[_0x4380ec(0x3e2)](),_0x184548=await createTDXInstance(_0x249b96),_0x29ce5e=await _0x4869f6[_0x4380ec(0x3e3)]({'options':{..._0x249b96,..._0x3fd650},'args':[],'tdx':_0x184548});gracefulExit(_0x29ce5e);};},campaignCmd=engageCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x300))[a2_0x4bb303(0x404)](a2_0x4bb303(0x390)),campaignListAction=async(_0x51a948,_0x12ec66)=>{const _0x2ea7be=new EngageCampaignsCommand(),_0x38334a=program['opts'](),_0x204956=await createTDXInstance(_0x38334a),_0x4e19aa=await _0x2ea7be['run']({'options':{..._0x38334a,..._0x12ec66},'args':_0x51a948?[_0x51a948]:[],'tdx':_0x204956});gracefulExit(_0x4e19aa);};campaignCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1e2))['description'](a2_0x4bb303(0x1e9))['option']('--type\x20<type>',a2_0x4bb303(0x19b))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x38f),a2_0x4bb303(0x1e1))[a2_0x4bb303(0x36c)]('--workspace\x20<name>',a2_0x4bb303(0x3c1))[a2_0x4bb303(0x2f8)](campaignListAction),engageCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x304))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3ff))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x341),a2_0x4bb303(0x19b))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x38f),a2_0x4bb303(0x1e1))['option'](a2_0x4bb303(0x265),a2_0x4bb303(0x3c1))['action'](campaignListAction),campaignCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1c8))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3fa))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x265),a2_0x4bb303(0x3c1))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x412),a2_0x4bb303(0x3b3))[a2_0x4bb303(0x2f8)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x28d))[a2_0x4bb303(0x404)]('Create\x20a\x20new\x20campaign')[a2_0x4bb303(0x212)](a2_0x4bb303(0x29e),a2_0x4bb303(0x2e4))[a2_0x4bb303(0x212)]('--type\x20<type>','Campaign\x20type\x20(email\x20or\x20push)')['option'](a2_0x4bb303(0x265),a2_0x4bb303(0x3a0))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x406),'Campaign\x20description')[a2_0x4bb303(0x36c)]('--segment\x20<path>',a2_0x4bb303(0x40b))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1ed),a2_0x4bb303(0x29b))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1ae),a2_0x4bb303(0x26e))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3be),a2_0x4bb303(0x34d))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2c6),a2_0x4bb303(0x293))[a2_0x4bb303(0x2f8)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x4bb303(0x3c8))[a2_0x4bb303(0x404)]('Update\x20a\x20campaign')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x265),a2_0x4bb303(0x3c1))[a2_0x4bb303(0x36c)]('--name\x20<name>',a2_0x4bb303(0x312))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x406),'Campaign\x20description')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2b6),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1ed),a2_0x4bb303(0x29b))['option']('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3be),a2_0x4bb303(0x34d))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2c6),a2_0x4bb303(0x293))[a2_0x4bb303(0x2f8)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x2d6))['option'](a2_0x4bb303(0x265),'Workspace\x20name')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1d8),a2_0x4bb303(0x36f))[a2_0x4bb303(0x2f8)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x238))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3fd))['option'](a2_0x4bb303(0x265),a2_0x4bb303(0x3c1))[a2_0x4bb303(0x2f8)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x3dc))['description'](a2_0x4bb303(0x3af))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x265),a2_0x4bb303(0x3c1))[a2_0x4bb303(0x2f8)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x29c))[a2_0x4bb303(0x404)](a2_0x4bb303(0x24b))['option'](a2_0x4bb303(0x265),'Workspace\x20name')[a2_0x4bb303(0x2f8)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x4bb303(0x3d6))[a2_0x4bb303(0x404)](a2_0x4bb303(0x31a))[a2_0x4bb303(0x36c)]('--workspace\x20<name>',a2_0x4bb303(0x3c1))[a2_0x4bb303(0x2f8)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x4bb303(0x370)]('template')['description'](a2_0x4bb303(0x3b8)),templateListAction=async(_0x40799e,_0x3e1b2c)=>{const _0x25637f=new EngageTemplatesCommand(),_0x156e9c=program['opts'](),_0x436845=await createTDXInstance(_0x156e9c),_0x1bcffb=await _0x25637f['run']({'options':{..._0x156e9c,..._0x3e1b2c},'args':_0x40799e?[_0x40799e]:[],'tdx':_0x436845});gracefulExit(_0x1bcffb);};templateCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1e2))[a2_0x4bb303(0x404)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4bb303(0x36c)]('--workspace\x20<name>',a2_0x4bb303(0x3c1))[a2_0x4bb303(0x2f8)](templateListAction),engageCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x30e))[a2_0x4bb303(0x404)](a2_0x4bb303(0x350))['option'](a2_0x4bb303(0x265),'Workspace\x20name')[a2_0x4bb303(0x2f8)](templateListAction),templateCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1c8))[a2_0x4bb303(0x404)]('Show\x20email\x20template\x20details')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x265),a2_0x4bb303(0x3c1))['option'](a2_0x4bb303(0x412),a2_0x4bb303(0x3b3))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x28d))['description']('Create\x20an\x20email\x20template')[a2_0x4bb303(0x212)](a2_0x4bb303(0x29e),a2_0x4bb303(0x1c1))[a2_0x4bb303(0x212)](a2_0x4bb303(0x372),a2_0x4bb303(0x1cc))['requiredOption']('--html\x20<html>',a2_0x4bb303(0x34a))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x265),a2_0x4bb303(0x3a0))[a2_0x4bb303(0x36c)]('--plaintext\x20<text>',a2_0x4bb303(0x34c))[a2_0x4bb303(0x36c)]('--editor-type\x20<type>',a2_0x4bb303(0x347),_0x2445bd=>{const _0x447bdc=a2_0x4bb303;if(![_0x447bdc(0x3f1),_0x447bdc(0x403)]['includes'](_0x2445bd))throw new SDKError(ErrorCode[_0x447bdc(0x366)],_0x447bdc(0x39a)+_0x2445bd+_0x447bdc(0x358));return _0x2445bd;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x4bb303(0x370)]('update\x20<name-or-id>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x39c))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x265),'Workspace\x20name')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x29e),'New\x20template\x20name')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x372),'Email\x20subject\x20template')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x2f4),a2_0x4bb303(0x34a))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x244),a2_0x4bb303(0x34c))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x240))[a2_0x4bb303(0x404)]('Delete\x20an\x20email\x20template')['option'](a2_0x4bb303(0x265),a2_0x4bb303(0x3c1))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1d8),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageTemplateDeleteCommand));function a2_0x2e2c(_0x33eb89,_0x3ed65f){_0x33eb89=_0x33eb89-0x18d;const _0x3519f0=a2_0x3519();let _0x2e2c5f=_0x3519f0[_0x33eb89];return _0x2e2c5f;}const workspaceCmd=engageCmd['command']('workspace')[a2_0x4bb303(0x404)](a2_0x4bb303(0x362)),workspaceListAction=async(_0xf1712e,_0x3129cb)=>{const _0x45b9b9=a2_0x4bb303,_0x495af6=new EngageWorkspacesCommand(),_0x4a99d8=program[_0x45b9b9(0x3e2)](),_0x1c252d=await createTDXInstance(_0x4a99d8),_0x3b177e=await _0x495af6[_0x45b9b9(0x3e3)]({'options':{..._0x4a99d8,..._0x3129cb},'args':_0xf1712e?[_0xf1712e]:[],'tdx':_0x1c252d});gracefulExit(_0x3b177e);};workspaceCmd['command'](a2_0x4bb303(0x1e2))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3dd))[a2_0x4bb303(0x2f8)](workspaceListAction),engageCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1b6))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2a3))[a2_0x4bb303(0x2f8)](workspaceListAction),workspaceCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1c8))['description'](a2_0x4bb303(0x3b9))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x412),a2_0x4bb303(0x3b3))[a2_0x4bb303(0x2f8)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x4bb303(0x28d))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3bd))['requiredOption'](a2_0x4bb303(0x29e),a2_0x4bb303(0x3c1))[a2_0x4bb303(0x36c)]('--description\x20<desc>',a2_0x4bb303(0x1dd))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x4bb303(0x370)]('update\x20<name-or-id>')['description']('Update\x20a\x20workspace')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x29e),a2_0x4bb303(0x22f))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x406),a2_0x4bb303(0x1dd))[a2_0x4bb303(0x2f8)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')[a2_0x4bb303(0x404)]('Delete\x20a\x20workspace')['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x4bb303(0x2f8)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x4bb303(0x370)]('use\x20<name>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x3e4))[a2_0x4bb303(0x2f8)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x4bb303(0x370)](a2_0x4bb303(0x2a7))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1a2)),connectionListAction=async _0x2f77e2=>{const _0x28f381=a2_0x4bb303,_0x271b68=new ConnectionListCommand(),_0x458c81=program[_0x28f381(0x3e2)](),_0x55b2d5=await createTDXInstance(_0x458c81),_0x577f6f=await _0x271b68[_0x28f381(0x3e3)]({'options':{..._0x458c81,..._0x2f77e2},'args':[],'tdx':_0x55b2d5});gracefulExit(_0x577f6f);};connectionCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x21f))['description'](a2_0x4bb303(0x1d9))[a2_0x4bb303(0x2f8)](connectionListAction),program[a2_0x4bb303(0x370)]('connections',{'hidden':!![]})[a2_0x4bb303(0x404)](a2_0x4bb303(0x230))[a2_0x4bb303(0x2f8)](connectionListAction),connectionCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x19e))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1f7))[a2_0x4bb303(0x2f8)](async(_0x4c437c,_0xde1c1a)=>{const _0x2d710f=a2_0x4bb303,_0x3a3893=new ConnectionShowCommand(),_0x5cc496=program[_0x2d710f(0x3e2)](),_0x15ae2=await createTDXInstance(_0x5cc496),_0x6d966a=await _0x3a3893['run']({'options':{..._0x5cc496,..._0xde1c1a},'args':[_0x4c437c],'tdx':_0x15ae2});gracefulExit(_0x6d966a);}),connectionCmd[a2_0x4bb303(0x370)]('schema\x20<type>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x288))[a2_0x4bb303(0x2f8)](async(_0x26262d,_0x49f28d)=>{const _0x574f17=a2_0x4bb303,_0xf2c362=new ConnectionSchemaCommand(),_0xf3cd98=program[_0x574f17(0x3e2)](),_0x2912fa=await createTDXInstance(_0xf3cd98),_0x59f200=await _0xf2c362[_0x574f17(0x3e3)]({'options':{..._0xf3cd98,..._0x49f28d},'args':[_0x26262d],'tdx':_0x2912fa});gracefulExit(_0x59f200);}),connectionCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x2dd))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3b0))[a2_0x4bb303(0x2f8)](async _0x4c4eeb=>{const _0x2fdb21=a2_0x4bb303,_0x46b66f=new ConnectionTypesCommand(),_0x2b8e6d=program[_0x2fdb21(0x3e2)](),_0x5f4f5c=await createTDXInstance(_0x2b8e6d),_0x5e9f7f=await _0x46b66f[_0x2fdb21(0x3e3)]({'options':{..._0x2b8e6d,..._0x4c4eeb},'args':[],'tdx':_0x5f4f5c});gracefulExit(_0x5e9f7f);}),connectionCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x2ee))[a2_0x4bb303(0x404)](a2_0x4bb303(0x249))['action'](async(_0x291455,_0x44b7e7)=>{const _0x45377e=a2_0x4bb303,_0x1ca1ac=new ConnectionSettingsCommand(),_0x4018a4=program[_0x45377e(0x3e2)](),_0x218137=await createTDXInstance(_0x4018a4),_0xbe1ba=await _0x1ca1ac['run']({'options':{..._0x4018a4,..._0x44b7e7},'args':[_0x291455],'tdx':_0x218137});gracefulExit(_0xbe1ba);});const journeyCmd=program['command']('journey')['description']('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x49017f,_0x18eccc)=>{const _0x694435=a2_0x4bb303,_0x5cf15e=new JourneyListCommand(),_0x162849=program[_0x694435(0x3e2)](),_0xc1bba=await createTDXInstance(_0x162849),_0x54b825=await _0x5cf15e[_0x694435(0x3e3)]({'options':{..._0x162849,..._0x18eccc},'args':_0x49017f?[_0x49017f]:[],'tdx':_0xc1bba});gracefulExit(_0x54b825);};journeyCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x1e2))[a2_0x4bb303(0x404)](a2_0x4bb303(0x35c))[a2_0x4bb303(0x2f8)](journeyListAction),journeyCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x25c))[a2_0x4bb303(0x404)](a2_0x4bb303(0x2f9))['option'](a2_0x4bb303(0x2ba),a2_0x4bb303(0x322))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3cc),a2_0x4bb303(0x216))[a2_0x4bb303(0x2f8)](async(_0xf874c4,_0x9ad5b8)=>{const _0x5682dc=a2_0x4bb303,_0x55148f=new JourneyViewCommand(),_0x25405e=program[_0x5682dc(0x3e2)](),_0x57f355=await createTDXInstance(_0x25405e),_0xac118=await _0x55148f[_0x5682dc(0x3e3)]({'options':{..._0x25405e,..._0x9ad5b8},'args':[_0xf874c4],'tdx':_0x57f355});gracefulExit(_0xac118);}),journeyCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x257))[a2_0x4bb303(0x404)](a2_0x4bb303(0x27e))['option'](a2_0x4bb303(0x407),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x4bb303(0x2f8)](async(_0x360d16,_0x317790)=>{const _0x47f8ea=a2_0x4bb303,_0x207c7a=new JourneyStatsCommand(),_0x2074c0=program[_0x47f8ea(0x3e2)](),_0x177362=await createTDXInstance(_0x2074c0),_0x406a02=await _0x207c7a[_0x47f8ea(0x3e3)]({'options':{..._0x2074c0,..._0x317790},'args':[_0x360d16],'tdx':_0x177362});gracefulExit(_0x406a02);}),journeyCmd['command'](a2_0x4bb303(0x1e3))[a2_0x4bb303(0x404)]('Pause\x20a\x20running\x20journey')[a2_0x4bb303(0x2f8)](async(_0x37050d,_0x3a8e73)=>{const _0x2a08a8=a2_0x4bb303,_0x4e86f1=new JourneyPauseCommand(),_0x7d0892=program[_0x2a08a8(0x3e2)](),_0x459b21=await createTDXInstance(_0x7d0892),_0x5c18be=await _0x4e86f1[_0x2a08a8(0x3e3)]({'options':{..._0x7d0892,..._0x3a8e73},'args':[_0x37050d],'tdx':_0x459b21});gracefulExit(_0x5c18be);}),journeyCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x37f))['description']('Resume\x20a\x20paused\x20journey')['action'](async(_0x39ee3b,_0x550671)=>{const _0x73d63d=a2_0x4bb303,_0x22967a=new JourneyResumeCommand(),_0xb70019=program[_0x73d63d(0x3e2)](),_0x3bd263=await createTDXInstance(_0xb70019),_0x57f3bc=await _0x22967a['run']({'options':{..._0xb70019,..._0x550671},'args':[_0x39ee3b],'tdx':_0x3bd263});gracefulExit(_0x57f3bc);}),journeyCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x36e))[a2_0x4bb303(0x404)](a2_0x4bb303(0x196))[a2_0x4bb303(0x36c)]('-y,\x20--yes',a2_0x4bb303(0x36f))[a2_0x4bb303(0x36c)]('--dry-run',a2_0x4bb303(0x388))[a2_0x4bb303(0x2f8)](async(_0x4b88bd,_0x4233e7)=>{const _0x191b50=a2_0x4bb303,_0x21a75d=new JourneyPullCommand(),_0x328538=program[_0x191b50(0x3e2)](),_0x569524=await createTDXInstance(_0x328538),_0x192171=await _0x21a75d[_0x191b50(0x3e3)]({'options':{..._0x328538,..._0x4233e7},'args':_0x4b88bd?[_0x4b88bd]:[],'tdx':_0x569524});gracefulExit(_0x192171);}),journeyCmd['command'](a2_0x4bb303(0x228))['description'](a2_0x4bb303(0x354))[a2_0x4bb303(0x2f8)](async(_0x2f97be,_0x472134)=>{const _0x1ad3d0=a2_0x4bb303,_0x908aea=new JourneyPushCommand(),_0x5676b7=program[_0x1ad3d0(0x3e2)](),_0x1a78d0=await createTDXInstance(_0x5676b7),_0x34cd47=await _0x908aea[_0x1ad3d0(0x3e3)]({'options':{..._0x5676b7,..._0x472134},'args':_0x2f97be?[_0x2f97be]:[],'tdx':_0x1a78d0});gracefulExit(_0x34cd47);}),journeyCmd['command'](a2_0x4bb303(0x2af))['description'](a2_0x4bb303(0x23a))[a2_0x4bb303(0x2f8)](async(_0x5eb7aa,_0x43ebf8)=>{const _0xf929cf=a2_0x4bb303,_0x2ba051=new JourneyValidateCommand(),_0xe46ef7=program[_0xf929cf(0x3e2)](),_0x2cc5f3=await createTDXInstance(_0xe46ef7),_0x351641=await _0x2ba051[_0xf929cf(0x3e3)]({'options':{..._0xe46ef7,..._0x43ebf8},'args':_0x5eb7aa?[_0x5eb7aa]:[],'tdx':_0x2cc5f3});gracefulExit(_0x351641);}),program[a2_0x4bb303(0x370)](a2_0x4bb303(0x2a9))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3ad))[a2_0x4bb303(0x2f8)](journeyListAction);const agentSyncCmd=program[a2_0x4bb303(0x370)]('agent')[a2_0x4bb303(0x404)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x2fa))[a2_0x4bb303(0x404)](a2_0x4bb303(0x213))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3cf),a2_0x4bb303(0x3b2))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3f5),a2_0x4bb303(0x1d4))['action'](async(_0x71480b,_0x32476c,_0x28805e)=>{const _0xd75cc6=a2_0x4bb303,_0x4dde86=new AgentPullCommand(),_0x106162=program['opts'](),_0x55c218=await createTDXInstance(_0x106162),_0x1cdc23=[];if(_0x71480b)_0x1cdc23[_0xd75cc6(0x37c)](_0x71480b);if(_0x32476c)_0x1cdc23['push'](_0x32476c);const _0x3542be=await _0x4dde86[_0xd75cc6(0x3e3)]({'options':{..._0x106162,..._0x28805e},'args':_0x1cdc23,'tdx':_0x55c218});gracefulExit(_0x3542be);}),agentSyncCmd['command'](a2_0x4bb303(0x3fc))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1a4))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3f5),a2_0x4bb303(0x2ae))[a2_0x4bb303(0x2f8)](async(_0xa81ff7,_0x58a653)=>{const _0x17215e=a2_0x4bb303,_0x29379e=new AgentPushCommand(),_0x4e282d=program[_0x17215e(0x3e2)](),_0x3dfec3=await createTDXInstance(_0x4e282d),_0x1213eb=await _0x29379e[_0x17215e(0x3e3)]({'options':{..._0x4e282d,..._0x58a653},'args':_0xa81ff7?[_0xa81ff7]:[],'tdx':_0x3dfec3});gracefulExit(_0x1213eb);}),agentSyncCmd[a2_0x4bb303(0x370)]('clone\x20[source]')[a2_0x4bb303(0x404)](a2_0x4bb303(0x2d3))['option'](a2_0x4bb303(0x209),a2_0x4bb303(0x31b))[a2_0x4bb303(0x2f8)](async(_0x271e4b,_0x322a15)=>{const _0x46ebfb=a2_0x4bb303,_0x56e2f6=new AgentCloneCommand(),_0x18272f=program[_0x46ebfb(0x3e2)](),_0x47adb4=await createTDXInstance(_0x18272f),_0x8853cf=await _0x56e2f6[_0x46ebfb(0x3e3)]({'options':{..._0x18272f,..._0x322a15},'args':_0x271e4b?[_0x271e4b]:[],'tdx':_0x47adb4});gracefulExit(_0x8853cf);}),agentSyncCmd['command'](a2_0x4bb303(0x391))[a2_0x4bb303(0x404)](a2_0x4bb303(0x3aa))['option'](a2_0x4bb303(0x1bd),a2_0x4bb303(0x375))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x24e),a2_0x4bb303(0x3ce))[a2_0x4bb303(0x36c)]('--dry-run','Parse\x20and\x20validate\x20without\x20executing')[a2_0x4bb303(0x36c)]('--no-eval',a2_0x4bb303(0x210))[a2_0x4bb303(0x36c)]('--reeval',a2_0x4bb303(0x22e))[a2_0x4bb303(0x2f8)](async(_0x4f9444,_0x297020)=>{const _0x3dcaf9=a2_0x4bb303,_0x12833f=new AgentTestCommand(),_0xee20ba=program[_0x3dcaf9(0x3e2)](),_0x2e3cf7=await createTDXInstance(_0xee20ba),_0x42fcbe=await _0x12833f[_0x3dcaf9(0x3e3)]({'options':{..._0xee20ba,..._0x297020},'args':_0x4f9444?[_0x4f9444]:[],'tdx':_0x2e3cf7});gracefulExit(_0x42fcbe);}),agentSyncCmd['command'](a2_0x4bb303(0x1e2))[a2_0x4bb303(0x404)]('List\x20agents\x20in\x20current\x20project')[a2_0x4bb303(0x2f8)](llmAgentListAction),agentSyncCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x2b2))['description']('Show\x20agent\x20details')['action'](async(_0x447741,_0x2a58a2)=>{const _0x1529c1=a2_0x4bb303,_0x24f926=new LLMAgentShowCommand(),_0x2ea66=program[_0x1529c1(0x3e2)](),_0x543b1d=await createTDXInstance(_0x2ea66),_0x2c547f=await _0x24f926[_0x1529c1(0x3e3)]({'options':{..._0x2ea66,..._0x2a58a2},'args':[_0x447741],'tdx':_0x543b1d});gracefulExit(_0x2c547f);}),agentSyncCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x220))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1fc))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x241),a2_0x4bb303(0x26b))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x245),a2_0x4bb303(0x207),a2_0x4bb303(0x214))['option'](a2_0x4bb303(0x376),a2_0x4bb303(0x2b4))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x1c2),a2_0x4bb303(0x3d0),'4')[a2_0x4bb303(0x36c)](a2_0x4bb303(0x374),a2_0x4bb303(0x1db),a2_0x4bb303(0x345))[a2_0x4bb303(0x2f8)](async(_0x4a4e63,_0xdaa030)=>{const _0xd8cae6=a2_0x4bb303,_0x4d2b68=new LLMAgentCreateCommand(),_0x464079=program[_0xd8cae6(0x3e2)](),_0x7ddb59=await createTDXInstance(_0x464079),_0x515db8=await _0x4d2b68[_0xd8cae6(0x3e3)]({'options':{..._0x464079,..._0xdaa030},'args':[_0x4a4e63],'tdx':_0x7ddb59});gracefulExit(_0x515db8);}),agentSyncCmd[a2_0x4bb303(0x370)]('update\x20<agent-name>')[a2_0x4bb303(0x404)](a2_0x4bb303(0x364))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3f2),a2_0x4bb303(0x1b7))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x3e5),'Agent\x20prompt/instructions')[a2_0x4bb303(0x36c)]('--description\x20<text>',a2_0x4bb303(0x2fb))[a2_0x4bb303(0x36c)](a2_0x4bb303(0x376),a2_0x4bb303(0x2b4))[a2_0x4bb303(0x2f8)](async(_0x2a12bc,_0x1002f7)=>{const _0x16295b=a2_0x4bb303,_0x448145=new LLMAgentUpdateCommand(),_0x32550d=program['opts'](),_0x5a1d0e=await createTDXInstance(_0x32550d),_0x2c7881=await _0x448145[_0x16295b(0x3e3)]({'options':{..._0x32550d,..._0x1002f7},'args':[_0x2a12bc],'tdx':_0x5a1d0e});gracefulExit(_0x2c7881);}),agentSyncCmd[a2_0x4bb303(0x370)](a2_0x4bb303(0x3ed))[a2_0x4bb303(0x404)](a2_0x4bb303(0x1a3))[a2_0x4bb303(0x2f8)](async(_0x44a95f,_0x47c65d)=>{const _0xb416e1=a2_0x4bb303,_0x310ebb=new LLMAgentDeleteCommand(),_0x1dcaa6=program[_0xb416e1(0x3e2)](),_0x230910=await createTDXInstance(_0x1dcaa6),_0x18a629=await _0x310ebb[_0xb416e1(0x3e3)]({'options':{..._0x1dcaa6,..._0x47c65d},'args':[_0x44a95f],'tdx':_0x230910});gracefulExit(_0x18a629);});export{program};export function runCLI(){const _0x3c8628=a2_0x4bb303,_0x25bfe7=!process[_0x3c8628(0x2f2)]['slice'](0x2)[_0x3c8628(0x311)];showBriefHelp=_0x25bfe7,program[_0x3c8628(0x398)](process[_0x3c8628(0x2f2)]);_0x25bfe7&&program['outputHelp']();if(process[_0x3c8628(0x29d)][_0x3c8628(0x393)]&&process['argv'][_0x3c8628(0x311)]>0x2&&!isDevVersion()){const _0x26b5aa=loadReleaseChannel();checkForUpdate(currentVersion,_0x26b5aa)[_0x3c8628(0x381)](_0x3c9ebd=>{_0x3c9ebd&&displayUpdateNotification(_0x3c9ebd);})[_0x3c8628(0x20d)](()=>{});}}
1
+ const a2_0x29f913=a2_0x4297;(function(_0x1f3669,_0xe4b079){const _0x5afdce=a2_0x4297,_0x2b2c04=_0x1f3669();while(!![]){try{const _0x2dea89=-parseInt(_0x5afdce(0x1bb))/0x1+parseInt(_0x5afdce(0x15e))/0x2+parseInt(_0x5afdce(0x244))/0x3*(parseInt(_0x5afdce(0x1c8))/0x4)+-parseInt(_0x5afdce(0x1a5))/0x5*(-parseInt(_0x5afdce(0x2fd))/0x6)+-parseInt(_0x5afdce(0x32e))/0x7*(parseInt(_0x5afdce(0x209))/0x8)+parseInt(_0x5afdce(0x1a1))/0x9*(parseInt(_0x5afdce(0x1ed))/0xa)+parseInt(_0x5afdce(0x20f))/0xb;if(_0x2dea89===_0xe4b079)break;else _0x2b2c04['push'](_0x2b2c04['shift']());}catch(_0x39f265){_0x2b2c04['push'](_0x2b2c04['shift']());}}}(a2_0x11b2,0xba0cf));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';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_0x29f913(0x205)][a2_0x29f913(0x147)](a2_0x29f913(0x128))){let versionOutput=a2_0x29f913(0x19a)+currentVersion;buildInfo[a2_0x29f913(0x212)]&&!currentVersion['includes'](buildInfo[a2_0x29f913(0x212)])&&(versionOutput+='\x20('+buildInfo[a2_0x29f913(0x212)]+')'),buildInfo[a2_0x29f913(0x1e5)]&&(versionOutput+=a2_0x29f913(0x178)+buildInfo['buildTime']),console[a2_0x29f913(0x1ec)](versionOutput),process['exit'](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x29f913(0x2d0);buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x29f913(0x212)])?description+=a2_0x29f913(0x11e)+currentVersion+'\x20('+buildInfo[a2_0x29f913(0x212)]+')':description+=',\x20version\x20'+currentVersion;program['name'](a2_0x29f913(0x2ad))[a2_0x29f913(0x29c)](description),program['option'](a2_0x29f913(0x30e),a2_0x29f913(0x121))[a2_0x29f913(0x34e)](a2_0x29f913(0x33d),a2_0x29f913(0x227))[a2_0x29f913(0x34e)](a2_0x29f913(0x37e),a2_0x29f913(0x216),a2_0x29f913(0x234))[a2_0x29f913(0x34e)](a2_0x29f913(0x231),a2_0x29f913(0x2d1))[a2_0x29f913(0x34e)](a2_0x29f913(0x14c),a2_0x29f913(0x160))['option'](a2_0x29f913(0x35a),a2_0x29f913(0x374))[a2_0x29f913(0x34e)](a2_0x29f913(0x23e),a2_0x29f913(0x129))[a2_0x29f913(0x34e)](a2_0x29f913(0x143),a2_0x29f913(0x248))['option'](a2_0x29f913(0x203),'Save\x20output\x20to\x20file')[a2_0x29f913(0x34e)]('--limit\x20<number>',a2_0x29f913(0x2da))[a2_0x29f913(0x34e)](a2_0x29f913(0x14a),a2_0x29f913(0x31b),![])['option'](a2_0x29f913(0x11b),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x29f913(0x34e)](a2_0x29f913(0x2aa),a2_0x29f913(0x292),![])[a2_0x29f913(0x34e)](a2_0x29f913(0x295),a2_0x29f913(0x380))[a2_0x29f913(0x34e)]('--trace',a2_0x29f913(0x249))['option']('--timeout\x20<seconds>','Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x2f8),![])[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x27e),![])[a2_0x29f913(0x34e)](a2_0x29f913(0x1e8),a2_0x29f913(0x257))['option'](a2_0x29f913(0x2e3),a2_0x29f913(0x1b7))['option'](a2_0x29f913(0x331),a2_0x29f913(0x302))[a2_0x29f913(0x34e)]('--parent-segment\x20<name>',a2_0x29f913(0x23d))[a2_0x29f913(0x34e)](a2_0x29f913(0x13c),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x29f913(0x1af)]({'formatHelp':(_0x3cbc67,_0x4c05f8)=>{const _0x4ef77b=a2_0x29f913,_0x366635=_0x4c05f8[_0x4ef77b(0x180)](_0x3cbc67,_0x4c05f8),_0x4a24eb=0x2,_0x590126=0x2;function _0x32611a(_0x24eef4){const _0x36ba5d=_0x4ef77b,_0x3b06cb=_0x24eef4;return!!(_0x3b06cb[_0x36ba5d(0x173)]||_0x3b06cb[_0x36ba5d(0x340)]);}function _0x72ec91(_0x3b7e2c,_0x916926){const _0x4b5d57=_0x4ef77b;if(_0x916926){const _0x316b7e=''+_0x3b7e2c[_0x4b5d57(0x12b)](_0x366635+_0x590126)+_0x916926;return _0x316b7e;}return _0x3b7e2c;}function _0x5e249f(_0x4952a2){const _0x1d2132=_0x4ef77b;return _0x4952a2[_0x1d2132(0x15a)]('\x0a')[_0x1d2132(0x2ef)](/^/gm,'\x20'[_0x1d2132(0x2c0)](_0x4a24eb));}const _0x5a6f37=[];_0x5a6f37['push'](_0x4ef77b(0x285)+_0x4c05f8[_0x4ef77b(0x327)](_0x3cbc67));const _0x48731c=_0x4c05f8[_0x4ef77b(0x2a8)](_0x3cbc67);_0x48731c&&(_0x5a6f37[_0x4ef77b(0x25d)](''),_0x5a6f37[_0x4ef77b(0x25d)](_0x48731c));const _0x489fa7=_0x3cbc67[_0x4ef77b(0x38c)][_0x4ef77b(0x260)](_0x28ed5b=>!_0x32611a(_0x28ed5b));if(_0x489fa7['length']>0x0){if(_0x3cbc67['name']()===_0x4ef77b(0x2ad)){const _0x232879=_0x3cbc67[_0x4ef77b(0x165)](),_0x1d9a98=!_0x232879['noColor']&&process[_0x4ef77b(0x1f1)][_0x4ef77b(0x156)],_0x194892=COMMAND_CATEGORIES,_0xca8036=(_0x2b842b,_0x42ece6)=>_0x1d9a98?_0x42ece6(_0x2b842b):_0x2b842b,_0x22f753=new Map();_0x489fa7[_0x4ef77b(0x273)](_0xe04428=>{const _0x2e8a7f=_0x4ef77b;_0x22f753['set'](_0xe04428[_0x2e8a7f(0x238)](),_0xe04428);}),_0x194892[_0x4ef77b(0x273)](_0xf88bf6=>{const _0x391ae1=_0x4ef77b,_0x4a3b07=_0xf88bf6[_0x391ae1(0x38c)]['flatMap'](_0x41a179=>_0x22f753[_0x391ae1(0x140)](_0x41a179)??[]);if(_0x4a3b07['length']>0x0){_0x5a6f37[_0x391ae1(0x25d)](''),_0x5a6f37[_0x391ae1(0x25d)](_0xca8036(_0xf88bf6[_0x391ae1(0x238)]+':',_0xf88bf6[_0x391ae1(0x30f)]));const _0x1bf5cc=_0x4a3b07[_0x391ae1(0x2d9)](_0x3c405d=>{const _0x55f542=_0x391ae1,_0x3533d2=_0x4c05f8[_0x55f542(0x220)](_0x3c405d),_0x1ee245=_0x4c05f8[_0x55f542(0x135)](_0x3c405d);return _0x72ec91(_0x3533d2,_0x1ee245);});_0x5a6f37[_0x391ae1(0x25d)](_0x5e249f(_0x1bf5cc));}}),_0x5a6f37[_0x4ef77b(0x25d)](''),_0x5a6f37[_0x4ef77b(0x25d)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x16c04f=_0x489fa7['map'](_0x30989b=>{const _0x24b58a=_0x4ef77b,_0x3a8ad1=_0x4c05f8[_0x24b58a(0x220)](_0x30989b),_0x5f1d30=_0x4c05f8[_0x24b58a(0x135)](_0x30989b);return _0x72ec91(_0x3a8ad1,_0x5f1d30);});_0x5a6f37['push'](''),_0x5a6f37['push'](_0x4ef77b(0x38a)),_0x5a6f37[_0x4ef77b(0x25d)](_0x5e249f(_0x16c04f));}}if(showBriefHelp&&_0x3cbc67[_0x4ef77b(0x238)]()==='tdx')_0x5a6f37[_0x4ef77b(0x25d)](''),_0x5a6f37[_0x4ef77b(0x25d)](_0x4ef77b(0x377));else{const _0xb45a5a=_0x3cbc67[_0x4ef77b(0x1d9)][_0x4ef77b(0x260)](_0x2ed3f7=>!_0x32611a(_0x2ed3f7));if(_0xb45a5a['length']>0x0){const _0x4632d5=_0xb45a5a[_0x4ef77b(0x2d9)](_0x23d0fe=>{const _0x425d62=_0x4ef77b,_0x55f91a=_0x4c05f8['optionTerm'](_0x23d0fe),_0x1d5d5e=_0x4c05f8[_0x425d62(0x256)](_0x23d0fe);return _0x72ec91(_0x55f91a,_0x1d5d5e);});_0x5a6f37['push'](''),_0x5a6f37[_0x4ef77b(0x25d)](_0x4ef77b(0x294)),_0x5a6f37['push'](_0x5e249f(_0x4632d5));}}const _0x3da5a4=(_0x3cbc67['registeredArguments']||[])['filter'](_0x1198bb=>!_0x32611a(_0x1198bb));if(_0x3da5a4['length']>0x0){const _0x4270ff=_0x3da5a4[_0x4ef77b(0x2d9)](_0x5578d5=>{const _0x37500f=_0x4c05f8['argumentTerm'](_0x5578d5),_0x2c2ca5=_0x4c05f8['argumentDescription'](_0x5578d5);return _0x72ec91(_0x37500f,_0x2c2ca5);});_0x5a6f37[_0x4ef77b(0x25d)](''),_0x5a6f37[_0x4ef77b(0x25d)]('Arguments:'),_0x5a6f37[_0x4ef77b(0x25d)](_0x5e249f(_0x4270ff));}return _0x5a6f37['join']('\x0a')+'\x0a';},'subcommandTerm':_0x53ea11=>{const _0x38207a=a2_0x29f913,_0x5b7e03=(_0x53ea11[_0x38207a(0x346)]||[])[_0x38207a(0x2d9)](_0x43e987=>_0x43e987['required']?'<'+_0x43e987[_0x38207a(0x238)]()+'>':'['+_0x43e987['name']()+']')[_0x38207a(0x15a)]('\x20'),_0x398644=_0x53ea11[_0x38207a(0x179)](),_0x5f36d5=_0x398644[_0x38207a(0x351)]>0x0?_0x53ea11[_0x38207a(0x238)]()+',\x20'+_0x398644[_0x38207a(0x15a)](',\x20'):_0x53ea11[_0x38207a(0x238)]();return _0x5b7e03?_0x5f36d5+'\x20'+_0x5b7e03:_0x5f36d5;}}),program[a2_0x29f913(0x288)](a2_0x29f913(0x20e),_0x37edc2=>{const _0x38c3e4=a2_0x29f913,_0x2b10f5=_0x37edc2[_0x38c3e4(0x165)]();if(_0x2b10f5[_0x38c3e4(0x158)]){const _0x4e068e=resolve(_0x2b10f5[_0x38c3e4(0x158)]),_0x31d0e0=_0x4e068e!==_0x2b10f5[_0x38c3e4(0x158)]?'\x20(resolved\x20to\x20'+_0x4e068e+')':'';if(!existsSync(_0x4e068e))throw new SDKError(ErrorCode[_0x38c3e4(0x2a9)],_0x38c3e4(0x21d)+_0x2b10f5[_0x38c3e4(0x158)]+_0x31d0e0,undefined,{'helpText':_0x38c3e4(0x29b)});const _0x58805a=statSync(_0x4e068e);if(!_0x58805a[_0x38c3e4(0x16f)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x38c3e4(0x265)+_0x2b10f5[_0x38c3e4(0x158)]+_0x31d0e0,undefined,{'helpText':_0x38c3e4(0x34f)});process[_0x38c3e4(0x2af)](_0x4e068e);}if(!_0x2b10f5[_0x38c3e4(0x371)]){if(_0x2b10f5[_0x38c3e4(0x1f3)])_0x2b10f5[_0x38c3e4(0x371)]=_0x38c3e4(0x1f3);else{if(_0x2b10f5[_0x38c3e4(0x185)])_0x2b10f5['format']='json';else{if(_0x2b10f5[_0x38c3e4(0x1f7)])_0x2b10f5[_0x38c3e4(0x371)]='jsonl';else _0x2b10f5[_0x38c3e4(0x379)]&&(_0x2b10f5[_0x38c3e4(0x371)]='tsv');}}}_0x2b10f5['in']&&!_0x2b10f5[_0x38c3e4(0x189)]&&(_0x2b10f5[_0x38c3e4(0x189)]=_0x2b10f5['in']);if(_0x2b10f5[_0x38c3e4(0x293)])_0x2b10f5['logLevel']=LogLevel[_0x38c3e4(0x2e9)];else{if(_0x2b10f5[_0x38c3e4(0x23a)])_0x2b10f5[_0x38c3e4(0x1b0)]=LogLevel[_0x38c3e4(0x364)];else _0x2b10f5[_0x38c3e4(0x1b0)]===undefined&&(_0x2b10f5[_0x38c3e4(0x1b0)]=LogLevel[_0x38c3e4(0x154)]);}});async function createTDXInstance(_0x249612){const _0x40ffe3=a2_0x29f913,_0x3f2188=await GlobalContext[_0x40ffe3(0x23b)](_0x249612);return _0x3f2188[_0x40ffe3(0x25b)](_0x249612),TDX[_0x40ffe3(0x2a4)]({'site':_0x3f2188[_0x40ffe3(0x181)],'apiKey':_0x3f2188[_0x40ffe3(0x116)],'logLevel':_0x3f2188[_0x40ffe3(0x1b0)],'profile':_0x3f2188[_0x40ffe3(0x22f)]});}const databaseCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x189))['alias']('db')[a2_0x29f913(0x29c)](a2_0x29f913(0x30a)),databaseListAction=async(_0x24b6a5,_0x52a3ce)=>{const _0x20c912=a2_0x29f913,_0x44b97d=new DatabasesCommand(),_0x42eb42=program[_0x20c912(0x165)](),_0x4fcbc0=await createTDXInstance(_0x42eb42),_0x34d842=await _0x44b97d[_0x20c912(0x251)]({'options':{..._0x42eb42,..._0x52a3ce},'args':_0x24b6a5?[_0x24b6a5]:[],'tdx':_0x4fcbc0});gracefulExit(_0x34d842);};databaseCmd['command']('list\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x2b7))[a2_0x29f913(0x275)](databaseListAction),program[a2_0x29f913(0x1bf)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x2c3))[a2_0x29f913(0x275)](databaseListAction),program['command']('chat\x20[message...]')[a2_0x29f913(0x29c)](a2_0x29f913(0x1a9))[a2_0x29f913(0x34e)](a2_0x29f913(0x155),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x29f913(0x34e)](a2_0x29f913(0x184),a2_0x29f913(0x2e8))[a2_0x29f913(0x34e)](a2_0x29f913(0x191),a2_0x29f913(0x359))[a2_0x29f913(0x34e)](a2_0x29f913(0x333),'Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x29f913(0x275)](async(_0x138b4f,_0x403ccc)=>{const _0x354acd=a2_0x29f913,_0x5de464=program[_0x354acd(0x165)](),_0x117eec=await createTDXInstance(_0x5de464);if(_0x138b4f[0x0]===_0x354acd(0x2a4)){const _0x32f29c=new ChatCreateCommand();gracefulExit(await _0x32f29c['run']({'options':{..._0x5de464,..._0x403ccc},'args':_0x138b4f[_0x354acd(0x36d)](0x1),'tdx':_0x117eec}));return;}const _0x5ce2c2=new ChatCommand(),_0xa4e11e=await _0x5ce2c2[_0x354acd(0x251)]({'options':{..._0x5de464,..._0x403ccc},'args':_0x138b4f,'tdx':_0x117eec});gracefulExit(_0xa4e11e);});const apiCmd=program['command'](a2_0x29f913(0x326))[a2_0x29f913(0x299)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')['addHelpText'](a2_0x29f913(0x1ba),'\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_0x29f913(0x34e)](a2_0x29f913(0x1e3),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x29f913(0x1d8))[a2_0x29f913(0x34e)](a2_0x29f913(0x19f),a2_0x29f913(0x1f5))['option']('-f,\x20--file\x20<path>','Read\x20request\x20body\x20from\x20file')['option']('-H,\x20--header\x20<header>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x215fe9,_0x2e37f7)=>{return _0x2e37f7?[..._0x2e37f7,_0x215fe9]:[_0x215fe9];})[a2_0x29f913(0x34e)](a2_0x29f913(0x37b),a2_0x29f913(0x33c),'td')['action'](async(_0x422fff,_0x36280f)=>{const _0x5d6e03=a2_0x29f913;if(!_0x422fff){apiCmd[_0x5d6e03(0x349)]();return;}const _0x5a4c50=new ApiCommand(),_0x2fde76=program['opts'](),_0x1181bd=await createTDXInstance(_0x2fde76),_0x4f0e71=await _0x5a4c50[_0x5d6e03(0x251)]({'options':{..._0x2fde76,..._0x36280f},'args':[_0x422fff],'tdx':_0x1181bd});gracefulExit(_0x4f0e71);});program[a2_0x29f913(0x1bf)](a2_0x29f913(0x1dc))['description']('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')['addHelpText'](a2_0x29f913(0x1ba),a2_0x29f913(0x1fa))[a2_0x29f913(0x275)](async _0x23bae1=>{const _0x3296b7=a2_0x29f913,_0x334378=new MCPCommand(),_0x207c78=program[_0x3296b7(0x165)](),_0x520d73=await createTDXInstance(_0x207c78),_0x4e7ee8=await _0x334378['run']({'options':{..._0x207c78,..._0x23bae1},'args':[],'tdx':_0x520d73});gracefulExit(_0x4e7ee8);});const tableCmd=program['command'](a2_0x29f913(0x1f3))[a2_0x29f913(0x29c)]('Table\x20management\x20commands'),tableListAction=async(_0x570ddc,_0x153154)=>{const _0x560ee1=a2_0x29f913,_0x53a7ce=new TablesCommand(),_0x45bf99=program[_0x560ee1(0x165)](),_0x426062=await createTDXInstance(_0x45bf99);_0x153154['in']&&(_0x153154[_0x560ee1(0x189)]=_0x153154['in']);const _0x364e21=await _0x53a7ce['run']({'options':{..._0x45bf99,..._0x153154},'args':_0x570ddc?[_0x570ddc]:[],'tdx':_0x426062});gracefulExit(_0x364e21);};tableCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x1e0))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),a2_0x29f913(0x247))[a2_0x29f913(0x34e)](a2_0x29f913(0x2fa),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](tableListAction),program['command'](a2_0x29f913(0x395),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x1fd))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),a2_0x29f913(0x247))[a2_0x29f913(0x34e)](a2_0x29f913(0x2fa),a2_0x29f913(0x302))['action'](tableListAction),program['command'](a2_0x29f913(0x118))[a2_0x29f913(0x29c)](a2_0x29f913(0x2ff))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),a2_0x29f913(0x1e2))['option']('--in\x20<database>',a2_0x29f913(0x302))[a2_0x29f913(0x275)](async(_0x4c8162,_0x51f433)=>{const _0x51b988=a2_0x29f913,_0x51c51e=new ShowCommand(),_0x409b43=program['opts'](),_0x18fd18=await createTDXInstance(_0x409b43);_0x51f433['in']&&(_0x51f433[_0x51b988(0x189)]=_0x51f433['in']);const _0x4fb4b5=await _0x51c51e[_0x51b988(0x251)]({'options':{..._0x409b43,..._0x51f433},'args':_0x4c8162?[_0x4c8162]:[],'tdx':_0x18fd18});gracefulExit(_0x4fb4b5);}),program['command'](a2_0x29f913(0x287))[a2_0x29f913(0x2e6)](a2_0x29f913(0x17e))[a2_0x29f913(0x29c)]('Describe\x20table\x20schema')[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x29f913(0x34e)](a2_0x29f913(0x2fa),a2_0x29f913(0x302))[a2_0x29f913(0x275)](async(_0x4bda25,_0x3b3b8b)=>{const _0x4daf47=a2_0x29f913,_0x2be5c5=new DescribeCommand(),_0x527284=program['opts'](),_0x824c46=await createTDXInstance(_0x527284);_0x3b3b8b['in']&&(_0x3b3b8b[_0x4daf47(0x189)]=_0x3b3b8b['in']);const _0x9fbf85=await _0x2be5c5[_0x4daf47(0x251)]({'options':{..._0x527284,..._0x3b3b8b},'args':_0x4bda25?[_0x4bda25]:[],'tdx':_0x824c46});gracefulExit(_0x9fbf85);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x35f))[a2_0x29f913(0x29c)](a2_0x29f913(0x13d))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x29f913(0x34e)](a2_0x29f913(0x2fa),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x29f913(0x28f),a2_0x29f913(0x296))[a2_0x29f913(0x34e)](a2_0x29f913(0x1fb),'Read\x20SQL\x20query\x20from\x20file')[a2_0x29f913(0x34e)](a2_0x29f913(0x148),a2_0x29f913(0x26e),'40')[a2_0x29f913(0x275)](async(_0x9142d6,_0x3f814a)=>{const _0x13ccc1=a2_0x29f913,_0x13d998=new QueryCommand(),_0xe05d6=program[_0x13ccc1(0x165)](),_0x2717a3=await createTDXInstance(_0xe05d6);_0x3f814a['in']&&(_0x3f814a[_0x13ccc1(0x189)]=_0x3f814a['in']);const _0x2dbe0c=await _0x13d998['run']({'options':{..._0xe05d6,..._0x3f814a},'args':_0x9142d6?[_0x9142d6]:[],'tdx':_0x2717a3});gracefulExit(_0x2dbe0c);});const segmentCmd=program[a2_0x29f913(0x1bf)]('segment')[a2_0x29f913(0x2e6)]('sg')['description'](a2_0x29f913(0x1c3)),segmentListAction=async(_0x1e4dfe,_0x43721a)=>{const _0x13a0ee=a2_0x29f913,_0x204e97=new SegmentsCommand(),_0x23aebc=program[_0x13a0ee(0x165)](),_0x782633=await createTDXInstance(_0x23aebc),_0x290e2c=await _0x204e97[_0x13a0ee(0x251)]({'options':{..._0x23aebc,..._0x43721a},'args':_0x1e4dfe?[_0x1e4dfe]:[],'tdx':_0x782633});gracefulExit(_0x290e2c);};segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2f7))[a2_0x29f913(0x29c)](a2_0x29f913(0x2f6))[a2_0x29f913(0x34e)](a2_0x29f913(0x261),a2_0x29f913(0x2f1))[a2_0x29f913(0x34e)](a2_0x29f913(0x195),a2_0x29f913(0x301),'10')[a2_0x29f913(0x275)](segmentListAction),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x28b),{'hidden':!![]})[a2_0x29f913(0x29c)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x29f913(0x34e)]('-r,\x20--recursive',a2_0x29f913(0x2f1))['option'](a2_0x29f913(0x195),a2_0x29f913(0x301),'10')[a2_0x29f913(0x275)](segmentListAction),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x15d),{'hidden':!![]})[a2_0x29f913(0x29c)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')['action'](async(_0x13a2b0,_0x5d4abc)=>{const _0x812fc2=a2_0x29f913,_0x52c478=new SegmentUseCommand(),_0x31a073=program[_0x812fc2(0x165)](),_0x37dc74=await createTDXInstance(_0x31a073),_0x409613=await _0x52c478[_0x812fc2(0x251)]({'options':{..._0x31a073,..._0x5d4abc},'args':[_0x13a2b0],'tdx':_0x37dc74});gracefulExit(_0x409613);});const segmentViewAction=async(_0x167a43,_0x3a6257)=>{const _0x543ad5=a2_0x29f913,_0x438b36=new SegmentViewCommand(),_0x28dd0c=program['opts'](),_0x54cbfe=await createTDXInstance(_0x28dd0c),_0x3b21e1=await _0x438b36[_0x543ad5(0x251)]({'options':{..._0x28dd0c,..._0x3a6257},'args':_0x167a43?[_0x167a43]:[],'tdx':_0x54cbfe});gracefulExit(_0x3b21e1);};segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38f))['description'](a2_0x29f913(0x119))[a2_0x29f913(0x34e)](a2_0x29f913(0x2de),a2_0x29f913(0x36e))[a2_0x29f913(0x275)](segmentViewAction),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x243),{'hidden':!![]})['alias'](a2_0x29f913(0x22c))[a2_0x29f913(0x34e)](a2_0x29f913(0x2de),a2_0x29f913(0x36e))[a2_0x29f913(0x29c)](a2_0x29f913(0x19d))[a2_0x29f913(0x275)](segmentViewAction),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x368))['description'](a2_0x29f913(0x206))[a2_0x29f913(0x275)](async(_0x3bdc14,_0x556a9d)=>{const _0x3517c2=a2_0x29f913,_0x2e8e00=new SegmentDescCommand(),_0x207543=program[_0x3517c2(0x165)](),_0x20e896=await createTDXInstance(_0x207543),_0x5ca064=await _0x2e8e00[_0x3517c2(0x251)]({'options':{..._0x207543,..._0x556a9d},'args':_0x3bdc14?[_0x3bdc14]:[],'tdx':_0x20e896});gracefulExit(_0x5ca064);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x373))['description'](a2_0x29f913(0x384))[a2_0x29f913(0x275)](async(_0x29cdc8,_0x593e7d)=>{const _0x5be756=a2_0x29f913,_0x3439ee=new SegmentShowCommand(),_0x400fb0=program['opts'](),_0x12184d=await createTDXInstance(_0x400fb0),_0x1852ed=await _0x3439ee[_0x5be756(0x251)]({'options':{..._0x400fb0,..._0x593e7d},'args':_0x29cdc8?[_0x29cdc8]:[],'tdx':_0x12184d});gracefulExit(_0x1852ed);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x36b),{'hidden':!![]})[a2_0x29f913(0x29c)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x29f913(0x275)](async(_0x41c12d,_0x3b969b)=>{const _0x4fc361=a2_0x29f913,_0x3cf124=new SegmentFolderListCommand(),_0x2b4c91=program['opts'](),_0x19843e=await createTDXInstance(_0x2b4c91),_0x395c68=await _0x3cf124[_0x4fc361(0x251)]({'options':{..._0x2b4c91,..._0x3b969b},'args':[_0x41c12d],'tdx':_0x19843e});gracefulExit(_0x395c68);});const folderCmd=segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2d8),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x2f9));folderCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1a8))[a2_0x29f913(0x29c)](a2_0x29f913(0x350))['action'](async(_0x155b7e,_0x31bc23)=>{const _0x11ae8d=a2_0x29f913,_0x2e5ed1=new SegmentFolderShowCommand(),_0x3a71f6=program['opts'](),_0x2a0159=await createTDXInstance(_0x3a71f6),_0x11baa0=await _0x2e5ed1[_0x11ae8d(0x251)]({'options':{..._0x3a71f6,..._0x31bc23},'args':[_0x155b7e],'tdx':_0x2a0159});gracefulExit(_0x11baa0);}),segmentCmd[a2_0x29f913(0x1bf)]('sql\x20[segment_name]')[a2_0x29f913(0x29c)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x29f913(0x275)](async(_0x325cc5,_0xe9a4c0)=>{const _0x1d9a54=a2_0x29f913,_0x2c512d=new SegmentSQLCommand(),_0x4e691a=program[_0x1d9a54(0x165)](),_0x59e73b=await createTDXInstance(_0x4e691a),_0x54c6dd=await _0x2c512d[_0x1d9a54(0x251)]({'options':{..._0x4e691a,..._0xe9a4c0},'args':_0x325cc5?[_0x325cc5]:[],'tdx':_0x59e73b});gracefulExit(_0x54c6dd);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1c1))[a2_0x29f913(0x29c)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x31bbc3,_0x393edb)=>{const _0x4470d3=a2_0x29f913,_0x56fd74=new SegmentFieldsCommand(),_0x27ae2c=program[_0x4470d3(0x165)](),_0x1d10b1=await createTDXInstance(_0x27ae2c),_0xce49d8=await _0x56fd74[_0x4470d3(0x251)]({'options':{..._0x27ae2c,..._0x393edb},'args':_0x31bbc3?[_0x31bbc3]:[],'tdx':_0x1d10b1});gracefulExit(_0xce49d8);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x385))[a2_0x29f913(0x29c)](a2_0x29f913(0x163))['option'](a2_0x29f913(0x19e),a2_0x29f913(0x27e))[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x228))[a2_0x29f913(0x275)](async(_0x570bce,_0x2d96e3)=>{const _0x430470=a2_0x29f913,_0x1039f1=new SegmentPullCommand(),_0x181e79=program['opts'](),_0xf7b337=await createTDXInstance(_0x181e79),_0x25464d=await _0x1039f1[_0x430470(0x251)]({'options':{..._0x181e79,..._0x2d96e3},'args':_0x570bce?[_0x570bce]:[],'tdx':_0xf7b337});gracefulExit(_0x25464d);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1f0))['description'](a2_0x29f913(0x30c))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),'Skip\x20confirmation\x20prompts')[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x228))[a2_0x29f913(0x34e)](a2_0x29f913(0x1dd),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')['action'](async(_0x57e08c,_0x536f1e)=>{const _0x281cd8=a2_0x29f913,_0x218b90=new SegmentPushCommand(),_0x184e5b=program[_0x281cd8(0x165)](),_0x20295=await createTDXInstance(_0x184e5b),_0x5000e4=await _0x218b90['run']({'options':{..._0x184e5b,..._0x536f1e},'args':_0x57e08c?[_0x57e08c]:[],'tdx':_0x20295});gracefulExit(_0x5000e4);}),segmentCmd[a2_0x29f913(0x1bf)]('validate\x20[target]')[a2_0x29f913(0x29c)](a2_0x29f913(0x14f))[a2_0x29f913(0x275)](async(_0x240124,_0x494690)=>{const _0x3e51d8=a2_0x29f913,_0x10644f=new SegmentValidateCommand(),_0xc74547=program['opts'](),_0x587090=await createTDXInstance(_0xc74547),_0x466e5b=await _0x10644f[_0x3e51d8(0x251)]({'options':{..._0xc74547,..._0x494690},'args':_0x240124?[_0x240124]:[],'tdx':_0x587090});gracefulExit(_0x466e5b);}),segmentCmd['command'](a2_0x29f913(0x253),{'hidden':!![]})['description'](a2_0x29f913(0x236))['option'](a2_0x29f913(0x24f),a2_0x29f913(0x24e))[a2_0x29f913(0x34e)](a2_0x29f913(0x272),a2_0x29f913(0x131))[a2_0x29f913(0x34e)](a2_0x29f913(0x217),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x29f913(0x34e)]('--folder\x20<name>',a2_0x29f913(0x27c))['option'](a2_0x29f913(0x11d),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x29f913(0x34e)]('--invisible','Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x29f913(0x34e)](a2_0x29f913(0x324),a2_0x29f913(0x341))[a2_0x29f913(0x275)](async(_0x328231,_0x2b49b8)=>{const _0x1923f4=a2_0x29f913,_0xdacd84=new SegmentCreateCommand(),_0x519f28=program[_0x1923f4(0x165)](),_0x1067fe=await createTDXInstance(_0x519f28),_0x248589=await _0xdacd84[_0x1923f4(0x251)]({'options':{..._0x519f28,..._0x2b49b8},'args':[_0x328231],'tdx':_0x1067fe});gracefulExit(_0x248589);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2a3),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x245))[a2_0x29f913(0x34e)]('--name\x20<new_name>','New\x20segment\x20name')['option']('--description\x20<text>',a2_0x29f913(0x21f))[a2_0x29f913(0x34e)]('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x29f913(0x217),a2_0x29f913(0x12c))[a2_0x29f913(0x34e)](a2_0x29f913(0x2cf),a2_0x29f913(0x1a6))['option']('--kind\x20<type>',a2_0x29f913(0x169))[a2_0x29f913(0x275)](async(_0xb8293c,_0x25de03)=>{const _0xec535c=a2_0x29f913,_0x2adca8=new SegmentUpdateCommand(),_0x58745c=program[_0xec535c(0x165)](),_0x3e2f93=await createTDXInstance(_0x58745c),_0x5c10d5=await _0x2adca8[_0xec535c(0x251)]({'options':{..._0x58745c,..._0x25de03},'args':[_0xb8293c],'tdx':_0x3e2f93});gracefulExit(_0x5c10d5);});const parentCmd=segmentCmd[a2_0x29f913(0x1bf)]('parent',{'hidden':!![]})['description'](a2_0x29f913(0x11f)),parentListAction=async(_0x8242da,_0x25af28)=>{const _0x593386=a2_0x29f913,_0x48f286=new ParentSegmentListCommand(),_0x27ac65=program[_0x593386(0x165)](),_0x20d0f7=await createTDXInstance(_0x27ac65),_0x5cc8fe=await _0x48f286[_0x593386(0x251)]({'options':{..._0x27ac65,..._0x25af28},'args':_0x8242da?[_0x8242da]:[],'tdx':_0x20d0f7});gracefulExit(_0x5cc8fe);};parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x1e4))[a2_0x29f913(0x275)](parentListAction),segmentCmd['command'](a2_0x29f913(0x27b),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x398))[a2_0x29f913(0x275)](parentListAction),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ea))['description'](a2_0x29f913(0x162))[a2_0x29f913(0x34e)](a2_0x29f913(0x394),a2_0x29f913(0x2c6))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),'Skip\x20confirmation\x20prompt')[a2_0x29f913(0x275)](async(_0x8e6744,_0xc91f3)=>{const _0x14f8c6=a2_0x29f913,_0x16fbff=new ParentSegmentPullCommand(),_0x4bca75=program[_0x14f8c6(0x165)](),_0x3d2ab9=await createTDXInstance(_0x4bca75),_0x208fc8=await _0x16fbff[_0x14f8c6(0x251)]({'options':{..._0x4bca75,..._0xc91f3},'args':_0x8e6744?[_0x8e6744]:[],'tdx':_0x3d2ab9});gracefulExit(_0x208fc8);}),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x15b))['description'](a2_0x29f913(0x353))['option'](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x3ce696,_0x143403)=>{const _0xcd4427=a2_0x29f913,_0x50cebb=new ParentSegmentPushCommand(),_0x327773=program[_0xcd4427(0x165)](),_0x54ba14=await createTDXInstance(_0x327773),_0x407acb=await _0x50cebb[_0xcd4427(0x251)]({'options':{..._0x327773,..._0x143403},'args':_0x3ce696?[_0x3ce696]:[],'tdx':_0x54ba14});gracefulExit(_0x407acb);}),parentCmd[a2_0x29f913(0x1bf)]('validate\x20[file]')[a2_0x29f913(0x29c)](a2_0x29f913(0x2bc))['option'](a2_0x29f913(0x32a),'Show\x20only\x20master\x20table\x20validation')[a2_0x29f913(0x34e)](a2_0x29f913(0x330),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x29f913(0x34e)]('--behavior\x20[name]',a2_0x29f913(0x225))['option'](a2_0x29f913(0x390),a2_0x29f913(0x23f))[a2_0x29f913(0x34e)](a2_0x29f913(0x126),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x29f913(0x235))[a2_0x29f913(0x275)](async(_0x48e629,_0x1114dd)=>{const _0x1fd3c1=a2_0x29f913,_0x4ce2ba=new ParentSegmentValidateCommand(),_0x4a71f9=program[_0x1fd3c1(0x165)](),_0x37bd9a=await createTDXInstance(_0x4a71f9),_0x3bf817=await _0x4ce2ba[_0x1fd3c1(0x251)]({'options':{..._0x4a71f9,..._0x1114dd},'args':_0x48e629?[_0x48e629]:[],'tdx':_0x37bd9a});gracefulExit(_0x3bf817);}),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1d5))[a2_0x29f913(0x29c)](a2_0x29f913(0x378))[a2_0x29f913(0x34e)]('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x29f913(0x34e)](a2_0x29f913(0x330),a2_0x29f913(0x24c))[a2_0x29f913(0x34e)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x29f913(0x34e)]('--enriched',a2_0x29f913(0x306))[a2_0x29f913(0x34e)](a2_0x29f913(0x126),a2_0x29f913(0x20b),a2_0x29f913(0x235))['action'](async(_0x53fde4,_0x4cd60b)=>{const _0x1e87c7=a2_0x29f913,_0x3a7dda=new ParentSegmentPreviewCommand(),_0x12cad0=program[_0x1e87c7(0x165)](),_0x1511c8=await createTDXInstance(_0x12cad0),_0x58a6f6=await _0x3a7dda[_0x1e87c7(0x251)]({'options':{..._0x12cad0,..._0x4cd60b},'args':_0x53fde4?[_0x53fde4]:[],'tdx':_0x1511c8});gracefulExit(_0x58a6f6);}),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2d5))[a2_0x29f913(0x29c)](a2_0x29f913(0x29a))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x5928bb,_0x285cfe)=>{const _0x189b2b=a2_0x29f913,_0x525be3=new ParentSegmentRunCommand(),_0x1a8cbe=program[_0x189b2b(0x165)](),_0x47fab2=await createTDXInstance(_0x1a8cbe),_0x354b4c=await _0x525be3['run']({'options':{..._0x1a8cbe,..._0x285cfe},'args':_0x5928bb?[_0x5928bb]:[],'tdx':_0x47fab2});gracefulExit(_0x354b4c);});const parentSegmentCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x142))['alias']('ps')[a2_0x29f913(0x29c)](a2_0x29f913(0x387));parentSegmentCmd['command']('list\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x1e4))['action'](parentListAction),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ea))[a2_0x29f913(0x29c)](a2_0x29f913(0x252))[a2_0x29f913(0x34e)](a2_0x29f913(0x394),a2_0x29f913(0x246))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))['option'](a2_0x29f913(0x31c),a2_0x29f913(0x2fb))[a2_0x29f913(0x275)](async(_0x33c11f,_0x30ae54)=>{const _0x3e8336=a2_0x29f913,_0x362497=new ParentSegmentPullCommand(),_0x56d810=program[_0x3e8336(0x165)](),_0x24bee4=await createTDXInstance(_0x56d810),_0xcc6973=await _0x362497[_0x3e8336(0x251)]({'options':{..._0x56d810,..._0x30ae54},'args':_0x33c11f?[_0x33c11f]:[],'tdx':_0x24bee4});gracefulExit(_0xcc6973);}),parentSegmentCmd[a2_0x29f913(0x1bf)]('push\x20[name]')[a2_0x29f913(0x29c)](a2_0x29f913(0x1ef))[a2_0x29f913(0x34e)]('-y,\x20--yes',a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x178b4e,_0x3fdd98)=>{const _0x4abb38=new ParentSegmentPushCommand(),_0x4abf06=program['opts'](),_0xbc6c3d=await createTDXInstance(_0x4abf06),_0x3a1cfe=await _0x4abb38['run']({'options':{..._0x4abf06,..._0x3fdd98},'args':_0x178b4e?[_0x178b4e]:[],'tdx':_0xbc6c3d});gracefulExit(_0x3a1cfe);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ae))[a2_0x29f913(0x29c)](a2_0x29f913(0x2bc))[a2_0x29f913(0x34e)](a2_0x29f913(0x32a),'Show\x20only\x20master\x20table\x20validation')[a2_0x29f913(0x34e)](a2_0x29f913(0x330),a2_0x29f913(0x1f4))['option']('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x29f913(0x34e)](a2_0x29f913(0x390),a2_0x29f913(0x23f))[a2_0x29f913(0x34e)]('--interval\x20<range>',a2_0x29f913(0x20b),a2_0x29f913(0x235))['action'](async(_0x3ae3f7,_0x269978)=>{const _0x5e6e97=a2_0x29f913,_0x574c66=new ParentSegmentValidateCommand(),_0x2bc903=program[_0x5e6e97(0x165)](),_0x5dcdcc=await createTDXInstance(_0x2bc903),_0x25c09e=await _0x574c66[_0x5e6e97(0x251)]({'options':{..._0x2bc903,..._0x269978},'args':_0x3ae3f7?[_0x3ae3f7]:[],'tdx':_0x5dcdcc});gracefulExit(_0x25c09e);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2c1))[a2_0x29f913(0x29c)](a2_0x29f913(0x378))['option'](a2_0x29f913(0x32a),'Show\x20master\x20table\x20sample\x20data')['option'](a2_0x29f913(0x330),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x29f913(0x34e)](a2_0x29f913(0x144),a2_0x29f913(0x1fc))[a2_0x29f913(0x34e)](a2_0x29f913(0x390),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x29f913(0x126),a2_0x29f913(0x20b),'-1d')[a2_0x29f913(0x275)](async(_0x8e1e55,_0x29d487)=>{const _0x524e8f=a2_0x29f913,_0xf9ca3f=new ParentSegmentPreviewCommand(),_0x53aadc=program['opts'](),_0xa18caf=await createTDXInstance(_0x53aadc),_0x5b83ba=await _0xf9ca3f[_0x524e8f(0x251)]({'options':{..._0x53aadc,..._0x29d487},'args':_0x8e1e55?[_0x8e1e55]:[],'tdx':_0xa18caf});gracefulExit(_0x5b83ba);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2d5))['description'](a2_0x29f913(0x29a))['option'](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x464745,_0x1c5f2d)=>{const _0x5befb0=a2_0x29f913,_0x19659a=new ParentSegmentRunCommand(),_0x1667d5=program[_0x5befb0(0x165)](),_0x4813a9=await createTDXInstance(_0x1667d5),_0x4262b6=await _0x19659a[_0x5befb0(0x251)]({'options':{..._0x1667d5,..._0x1c5f2d},'args':_0x464745?[_0x464745]:[],'tdx':_0x4813a9});gracefulExit(_0x4262b6);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x291))['description'](a2_0x29f913(0x242))[a2_0x29f913(0x34e)](a2_0x29f913(0x35a),a2_0x29f913(0x174))['option'](a2_0x29f913(0x23e),a2_0x29f913(0x1bd))['action'](async(_0x2a7514,_0x430d31)=>{const _0x5722e6=a2_0x29f913,_0x1bec41=new ParentSegmentFieldsCommand(),_0x4326af=program[_0x5722e6(0x165)](),_0x2db2d3=await createTDXInstance(_0x4326af),_0x44a355=await _0x1bec41['run']({'options':{..._0x4326af,..._0x430d31},'args':_0x2a7514?[_0x2a7514]:[],'tdx':_0x2db2d3});gracefulExit(_0x44a355);}),parentSegmentCmd['command']('view\x20[name]')['description'](a2_0x29f913(0x139))['option']('-w,\x20--web',a2_0x29f913(0x11a))[a2_0x29f913(0x34e)](a2_0x29f913(0x35a),a2_0x29f913(0x174))[a2_0x29f913(0x34e)](a2_0x29f913(0x23e),'Output\x20as\x20JSON\x20Lines')[a2_0x29f913(0x275)](async(_0x3ea96c,_0x3c5306)=>{const _0x5800dc=a2_0x29f913,_0x5e4c50=new ParentSegmentViewCommand(),_0x521d59=program[_0x5800dc(0x165)](),_0x1bcffc=await createTDXInstance(_0x521d59),_0x6c89ec=await _0x5e4c50[_0x5800dc(0x251)]({'options':{..._0x521d59,..._0x3c5306},'args':_0x3ea96c?[_0x3ea96c]:[],'tdx':_0x1bcffc});gracefulExit(_0x6c89ec);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x230))[a2_0x29f913(0x29c)]('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x29f913(0x34e)](a2_0x29f913(0x394),a2_0x29f913(0x246))['option'](a2_0x29f913(0x35a),'Output\x20as\x20JSON')['option']('--jsonl',a2_0x29f913(0x1bd))[a2_0x29f913(0x275)](async(_0x3aed5,_0x567fc1)=>{const _0x482ae5=a2_0x29f913,_0x5caf9a=new ParentSegmentDescCommand(),_0x2c8776=program[_0x482ae5(0x165)](),_0x46d887=await createTDXInstance(_0x2c8776),_0x355625=await _0x5caf9a[_0x482ae5(0x251)]({'options':{..._0x2c8776,..._0x567fc1},'args':_0x3aed5?[_0x3aed5]:[],'tdx':_0x46d887});gracefulExit(_0x355625);}),parentSegmentCmd['command'](a2_0x29f913(0x1c2))['description'](a2_0x29f913(0x157))['option']('--json',a2_0x29f913(0x174))[a2_0x29f913(0x34e)](a2_0x29f913(0x23e),a2_0x29f913(0x1bd))[a2_0x29f913(0x275)](async(_0x199be5,_0x2de040)=>{const _0x181c97=new ParentSegmentSQLCommand(),_0x4c7a84=program['opts'](),_0x3b14e1=await createTDXInstance(_0x4c7a84),_0x4b0801=await _0x181c97['run']({'options':{..._0x4c7a84,..._0x2de040},'args':_0x199be5?[_0x199be5]:[],'tdx':_0x3b14e1});gracefulExit(_0x4b0801);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x328))[a2_0x29f913(0x29c)](a2_0x29f913(0x362))['option']('--limit\x20<n>',a2_0x29f913(0x15f))[a2_0x29f913(0x34e)]('--json',a2_0x29f913(0x174))[a2_0x29f913(0x34e)](a2_0x29f913(0x23e),a2_0x29f913(0x1bd))[a2_0x29f913(0x275)](async(_0x59a220,_0x23f6b3)=>{const _0x2b4f7b=a2_0x29f913,_0x2c3bf5=new ParentSegmentShowCommand(),_0xccded9=program[_0x2b4f7b(0x165)](),_0x53309e=await createTDXInstance(_0xccded9),_0x1dc576=await _0x2c3bf5[_0x2b4f7b(0x251)]({'options':{..._0xccded9,..._0x23f6b3},'args':_0x59a220?[_0x59a220]:[],'tdx':_0x53309e});gracefulExit(_0x1dc576);}),parentSegmentCmd[a2_0x29f913(0x1bf)]('use\x20[name]')[a2_0x29f913(0x29c)](a2_0x29f913(0x283))[a2_0x29f913(0x275)](async(_0x54fed6,_0x24e040)=>{const _0x4b0f1a=a2_0x29f913,_0x3603a1=new UseCommand(),_0x14be02=program['opts'](),_0x6af233=_0x54fed6?[_0x4b0f1a(0x2df),_0x54fed6]:[],_0x51eac8=await _0x3603a1['run']({'options':{..._0x14be02,..._0x24e040},'args':_0x6af233,'tdx':null});gracefulExit(_0x51eac8);});const psRtCmd=parentSegmentCmd['command']('rt')[a2_0x29f913(0x29c)](a2_0x29f913(0x167));psRtCmd['command'](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x29f913(0x275)](async(_0x5f0a8c,_0x728b12)=>{const _0x492439=a2_0x29f913,_0x47a223=new PSRtListCommand(),_0x56f411=program[_0x492439(0x165)](),_0x54adca=await createTDXInstance(_0x56f411),_0x4772d3=await _0x47a223[_0x492439(0x251)]({'options':{..._0x56f411,..._0x728b12},'args':_0x5f0a8c?[_0x5f0a8c]:[],'tdx':_0x54adca});gracefulExit(_0x4772d3);}),psRtCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ae))[a2_0x29f913(0x29c)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')[a2_0x29f913(0x275)](async(_0x4c5bc9,_0x3c4444)=>{const _0xc66ce2=a2_0x29f913,_0x1d05ff=new PSRtValidateCommand(),_0xaabff3=program[_0xc66ce2(0x165)](),_0x335541=await createTDXInstance(_0xaabff3),_0x445e53=await _0x1d05ff[_0xc66ce2(0x251)]({'options':{..._0xaabff3,..._0x3c4444},'args':_0x4c5bc9?[_0x4c5bc9]:[],'tdx':_0x335541});gracefulExit(_0x445e53);});const parentRtCmd=parentCmd[a2_0x29f913(0x1bf)]('rt',{'hidden':!![]})[a2_0x29f913(0x29c)]('RT\x202.0\x20configuration\x20management');parentRtCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x134))[a2_0x29f913(0x275)](async(_0x4344d9,_0x52f550)=>{const _0x14d00c=a2_0x29f913,_0x3336a7=new PSRtListCommand(),_0x87bac9=program['opts'](),_0x540daa=await createTDXInstance(_0x87bac9),_0x24392b=await _0x3336a7[_0x14d00c(0x251)]({'options':{..._0x87bac9,..._0x52f550},'args':_0x4344d9?[_0x4344d9]:[],'tdx':_0x540daa});gracefulExit(_0x24392b);}),parentRtCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ae))[a2_0x29f913(0x29c)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')['action'](async(_0x4a3e59,_0xef9167)=>{const _0x111c29=a2_0x29f913,_0x5077b2=new PSRtValidateCommand(),_0x23f53f=program[_0x111c29(0x165)](),_0x1a2551=await createTDXInstance(_0x23f53f),_0x227b75=await _0x5077b2[_0x111c29(0x251)]({'options':{..._0x23f53f,..._0xef9167},'args':_0x4a3e59?[_0x4a3e59]:[],'tdx':_0x1a2551});gracefulExit(_0x227b75);});const psPzCmd=parentSegmentCmd[a2_0x29f913(0x1bf)]('pz')['description'](a2_0x29f913(0x194));psPzCmd[a2_0x29f913(0x1bf)]('list\x20[name]')['description'](a2_0x29f913(0x320))[a2_0x29f913(0x275)](async(_0x4c141e,_0x41b855)=>{const _0x35062d=a2_0x29f913,_0x1db6a3=new PSPzListCommand(),_0x565a32=program[_0x35062d(0x165)](),_0x301557=await createTDXInstance(_0x565a32),_0x57ea00=await _0x1db6a3[_0x35062d(0x251)]({'options':{..._0x565a32,..._0x41b855},'args':_0x4c141e?[_0x4c141e]:[],'tdx':_0x301557});gracefulExit(_0x57ea00);}),psPzCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x229))[a2_0x29f913(0x29c)](a2_0x29f913(0x367))[a2_0x29f913(0x275)](async(_0x5c7654,_0x1a14f3)=>{const _0x41f702=a2_0x29f913,_0x5499c2=new PSPzInitCommand(),_0x4eeec6=program[_0x41f702(0x165)](),_0x57a38a=await createTDXInstance(_0x4eeec6),_0x580d0a=await _0x5499c2[_0x41f702(0x251)]({'options':{..._0x4eeec6,..._0x1a14f3},'args':_0x5c7654?[_0x5c7654]:[],'tdx':_0x57a38a});gracefulExit(_0x580d0a);});const parentPzCmd=parentCmd[a2_0x29f913(0x1bf)]('pz',{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x194));parentPzCmd['command'](a2_0x29f913(0x211))['description'](a2_0x29f913(0x320))['action'](async(_0x8a9bb2,_0x523634)=>{const _0x4d1591=a2_0x29f913,_0x5981b6=new PSPzListCommand(),_0x1293ab=program[_0x4d1591(0x165)](),_0x33807a=await createTDXInstance(_0x1293ab),_0x1c2ca1=await _0x5981b6[_0x4d1591(0x251)]({'options':{..._0x1293ab,..._0x523634},'args':_0x8a9bb2?[_0x8a9bb2]:[],'tdx':_0x33807a});gracefulExit(_0x1c2ca1);}),parentPzCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x229))[a2_0x29f913(0x29c)](a2_0x29f913(0x367))[a2_0x29f913(0x275)](async(_0x478985,_0xb8e19d)=>{const _0x3a35ac=a2_0x29f913,_0x120f49=new PSPzInitCommand(),_0x209b66=program[_0x3a35ac(0x165)](),_0x268e08=await createTDXInstance(_0x209b66),_0xac035f=await _0x120f49[_0x3a35ac(0x251)]({'options':{..._0x209b66,..._0xb8e19d},'args':_0x478985?[_0x478985]:[],'tdx':_0x268e08});gracefulExit(_0xac035f);}),parentCmd[a2_0x29f913(0x1bf)]('create\x20<name>')['description']('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['requiredOption'](a2_0x29f913(0x172),a2_0x29f913(0x2a5))['requiredOption'](a2_0x29f913(0x1e7),'Master\x20table\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x24f),'Parent\x20segment\x20description')['option'](a2_0x29f913(0x1b9),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x29f913(0x18d),a2_0x29f913(0x2fe))[a2_0x29f913(0x34e)](a2_0x29f913(0x284),a2_0x29f913(0x22b))['option'](a2_0x29f913(0x35e),'Attributes\x20as\x20JSON\x20string')['option']('--attributes-file\x20<file>','Attributes\x20from\x20JSON\x20file')[a2_0x29f913(0x34e)](a2_0x29f913(0x1b2),a2_0x29f913(0x2ce))[a2_0x29f913(0x34e)](a2_0x29f913(0x2b3),a2_0x29f913(0x1ff))['option'](a2_0x29f913(0x307),a2_0x29f913(0x22d))['option']('--customer-group-file\x20<file>','Customer\x20group\x20from\x20JSON\x20file')[a2_0x29f913(0x275)](async(_0x37b91c,_0x225e9c)=>{const _0x18d89f=a2_0x29f913,_0x44ac49=new ParentSegmentCreateCommand(),_0x30171a=program[_0x18d89f(0x165)](),_0x31c60c=await createTDXInstance(_0x30171a),_0xa5e863=await _0x44ac49[_0x18d89f(0x251)]({'options':{..._0x30171a,..._0x225e9c},'args':[_0x37b91c],'tdx':_0x31c60c});gracefulExit(_0xa5e863);}),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x28a))[a2_0x29f913(0x29c)](a2_0x29f913(0x1d4))['option'](a2_0x29f913(0x24f),a2_0x29f913(0x21f))[a2_0x29f913(0x34e)](a2_0x29f913(0x1b9),a2_0x29f913(0x264))[a2_0x29f913(0x34e)]('--schedule-option\x20<value>',a2_0x29f913(0x1ea))[a2_0x29f913(0x34e)](a2_0x29f913(0x284),a2_0x29f913(0x2ec))[a2_0x29f913(0x34e)]('--add-attributes\x20<json>',a2_0x29f913(0x1df))[a2_0x29f913(0x34e)](a2_0x29f913(0x1d3),a2_0x29f913(0x35c))['option'](a2_0x29f913(0x1d1),a2_0x29f913(0x26d))['option'](a2_0x29f913(0x151),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x29f913(0x275)](async(_0x2f8bdb,_0x52b331)=>{const _0x4a8f77=a2_0x29f913,_0x57cc4b=new ParentSegmentUpdateCommand(),_0x481daf=program[_0x4a8f77(0x165)](),_0x3c4eb0=await createTDXInstance(_0x481daf),_0x54d08b=await _0x57cc4b[_0x4a8f77(0x251)]({'options':{..._0x481daf,..._0x52b331},'args':[_0x2f8bdb],'tdx':_0x3c4eb0});gracefulExit(_0x54d08b);}),folderCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x322))[a2_0x29f913(0x29c)](a2_0x29f913(0x2c2))[a2_0x29f913(0x34e)](a2_0x29f913(0x24f),'Folder\x20description')[a2_0x29f913(0x34e)](a2_0x29f913(0x26a),a2_0x29f913(0x127))['action'](async(_0x3d2506,_0x538513,_0x36a65a)=>{const _0x4ee647=a2_0x29f913,_0x3c53b5=new SegmentFolderCreateCommand(),_0x248ad8=program[_0x4ee647(0x165)](),_0x211ec3=await createTDXInstance(_0x248ad8),_0x568c0c=await _0x3c53b5[_0x4ee647(0x251)]({'options':{..._0x248ad8,..._0x36a65a},'args':[_0x3d2506,_0x538513],'tdx':_0x211ec3});gracefulExit(_0x568c0c);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x304))[a2_0x29f913(0x29c)](a2_0x29f913(0x2b2))[a2_0x29f913(0x275)](async(_0x356324,_0x5971a5)=>{const _0x1a8587=a2_0x29f913,_0x33eb62=new ActivationsCommand(),_0x81b7f9=program[_0x1a8587(0x165)](),_0x21d513=await createTDXInstance(_0x81b7f9),_0x8de02a=await _0x33eb62[_0x1a8587(0x251)]({'options':{..._0x81b7f9,..._0x5971a5},'args':[_0x356324],'tdx':_0x21d513});gracefulExit(_0x8de02a);});const workflowCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x237))['alias']('wf')[a2_0x29f913(0x29c)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd['command'](a2_0x29f913(0x1aa))['description'](a2_0x29f913(0x2fc)),wfProjectListAction=async(_0x5e7054,_0x3c43aa)=>{const _0x3dbd64=a2_0x29f913,_0x1a5af9=new WorkflowProjectsCommand(),_0x2163d0=program[_0x3dbd64(0x165)](),_0x2bb5bb=await createTDXInstance(_0x2163d0),_0x52b4da=await _0x1a5af9[_0x3dbd64(0x251)]({'options':{..._0x2163d0,..._0x3c43aa},'args':_0x5e7054?[_0x5e7054]:[],'tdx':_0x2bb5bb});gracefulExit(_0x52b4da);};wfProjectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x2e1))['action'](wfProjectListAction),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1f6))[a2_0x29f913(0x29c)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x566fe7,_0x5ec702)=>{const _0x475afa=a2_0x29f913,_0x48db64=new WorkflowWorkflowsCommand(),_0x392876=program[_0x475afa(0x165)](),_0x2d117b=await createTDXInstance(_0x392876),_0x5641ef=await _0x48db64[_0x475afa(0x251)]({'options':{..._0x392876,..._0x5ec702},'args':_0x566fe7?[_0x566fe7]:[],'tdx':_0x2d117b});gracefulExit(_0x5641ef);};function a2_0x4297(_0x5a31ad,_0x3ba7dc){_0x5a31ad=_0x5a31ad-0x116;const _0x11b2a9=a2_0x11b2();let _0x42977a=_0x11b2a9[_0x5a31ad];return _0x42977a;}workflowCmd['command'](a2_0x29f913(0x2ca))[a2_0x29f913(0x29c)](a2_0x29f913(0x27f))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x310))[a2_0x29f913(0x29c)](a2_0x29f913(0x27a)),wfSessionListAction=async(_0x35a602,_0x51140a)=>{const _0x3fa3b7=a2_0x29f913,_0x177dbb=new WorkflowSessionsCommand(),_0x2c2663=program[_0x3fa3b7(0x165)](),_0x43a27a=await createTDXInstance(_0x2c2663),_0x1fae63=await _0x177dbb['run']({'options':{..._0x2c2663,..._0x51140a},'args':_0x35a602?[_0x35a602]:[],'tdx':_0x43a27a});gracefulExit(_0x1fae63);};wfSessionCmd['command']('list\x20[project]')['description'](a2_0x29f913(0x26c))[a2_0x29f913(0x34e)](a2_0x29f913(0x187),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x29f913(0x34e)](a2_0x29f913(0x2cd),a2_0x29f913(0x12d))[a2_0x29f913(0x34e)](a2_0x29f913(0x255),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x303))['description'](a2_0x29f913(0x375))[a2_0x29f913(0x34e)](a2_0x29f913(0x187),a2_0x29f913(0x20d))[a2_0x29f913(0x34e)](a2_0x29f913(0x2cd),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x29f913(0x34e)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x29f913(0x275)](wfSessionListAction);const wfAttemptListAction=async(_0x19b21e,_0x21987d)=>{const _0x2e8268=a2_0x29f913,_0x590274=new WorkflowAttemptsCommand(),_0x5d4b45=program[_0x2e8268(0x165)](),_0x529693=await createTDXInstance(_0x5d4b45),_0x40d9ef=await _0x590274['run']({'options':{..._0x5d4b45,..._0x21987d},'args':_0x19b21e?[_0x19b21e]:[],'tdx':_0x529693});gracefulExit(_0x40d9ef);},attemptCmd=workflowCmd['command'](a2_0x29f913(0x336))['description'](a2_0x29f913(0x363))['argument'](a2_0x29f913(0x13a),a2_0x29f913(0x18a))[a2_0x29f913(0x223)](a2_0x29f913(0x17c),a2_0x29f913(0x24d))['argument']('[task-name]',a2_0x29f913(0x159))[a2_0x29f913(0x34e)](a2_0x29f913(0x267),a2_0x29f913(0x2d2))['option'](a2_0x29f913(0x34b),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x29f913(0x186),a2_0x29f913(0x1ab))[a2_0x29f913(0x34e)]('--params\x20<json>',a2_0x29f913(0x382))[a2_0x29f913(0x34e)](a2_0x29f913(0x33a),a2_0x29f913(0x14d))[a2_0x29f913(0x34e)]('--include-retried',a2_0x29f913(0x22e))[a2_0x29f913(0x275)](async(_0x2f43d9,_0x58ab63,_0x5eb96b,_0x38484d)=>{const _0x1f5ab3=a2_0x29f913;if(_0x2f43d9===_0x1f5ab3(0x347)){await wfAttemptListAction(_0x58ab63,_0x38484d);return;}if(!_0x2f43d9){attemptCmd[_0x1f5ab3(0x349)]();return;}const _0x4a1f03=program[_0x1f5ab3(0x165)](),_0x501397=await createTDXInstance(_0x4a1f03);let _0x40e3af=0x0;if(!_0x58ab63){const _0x1e6f7c=new WorkflowAttemptCommand();_0x40e3af=await _0x1e6f7c[_0x1f5ab3(0x251)]({'options':{..._0x4a1f03,..._0x38484d},'args':[_0x2f43d9],'tdx':_0x501397});}else{if(_0x58ab63===_0x1f5ab3(0x141)){const _0x8f9fe7=new WorkflowLogsCommand();_0x40e3af=await _0x8f9fe7[_0x1f5ab3(0x251)]({'options':{..._0x4a1f03,..._0x38484d},'args':_0x5eb96b?[_0x2f43d9,_0x5eb96b]:[_0x2f43d9],'tdx':_0x501397});}else{if(_0x58ab63===_0x1f5ab3(0x29f)){const _0x59d101=new WorkflowTasksCommand();_0x40e3af=await _0x59d101['run']({'options':{..._0x4a1f03,..._0x38484d},'args':[_0x2f43d9],'tdx':_0x501397});}else{if(_0x58ab63===_0x1f5ab3(0x31e)){const _0x368168=new WorkflowKillCommand();_0x40e3af=await _0x368168['run']({'options':{..._0x4a1f03,..._0x38484d},'args':[_0x2f43d9],'tdx':_0x501397});}else{if(_0x58ab63==='retry'){const _0x3373a3=new WorkflowRetryCommand();_0x40e3af=await _0x3373a3['run']({'options':{..._0x4a1f03,..._0x38484d},'args':[_0x1f5ab3(0x2ba)+_0x2f43d9],'tdx':_0x501397});}else console[_0x1f5ab3(0x2b1)](_0x1f5ab3(0x175)+_0x58ab63),console[_0x1f5ab3(0x2b1)](_0x1f5ab3(0x2f5)),_0x40e3af=0x1;}}}}gracefulExit(_0x40e3af);});attemptCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1fe))[a2_0x29f913(0x29c)](a2_0x29f913(0x192))[a2_0x29f913(0x34e)](a2_0x29f913(0x2db),a2_0x29f913(0x145))[a2_0x29f913(0x275)](wfAttemptListAction),workflowCmd['command']('attempts\x20[project]')[a2_0x29f913(0x29c)](a2_0x29f913(0x17d))[a2_0x29f913(0x34e)](a2_0x29f913(0x2db),a2_0x29f913(0x145))[a2_0x29f913(0x275)](wfAttemptListAction),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x11c))[a2_0x29f913(0x29c)](a2_0x29f913(0x199))[a2_0x29f913(0x34e)](a2_0x29f913(0x1f2),a2_0x29f913(0x370))[a2_0x29f913(0x34e)](a2_0x29f913(0x18c),a2_0x29f913(0x210))[a2_0x29f913(0x34e)](a2_0x29f913(0x31d),a2_0x29f913(0x12e))[a2_0x29f913(0x275)](async(_0x37e6f2,_0x5efddc)=>{const _0x5531af=a2_0x29f913,_0x4a0037=new WorkflowTimelineCommand(),_0x279e89=program[_0x5531af(0x165)](),_0x5e7489=await createTDXInstance(_0x279e89),_0x2588ed=await _0x4a0037['run']({'options':{..._0x279e89,..._0x5efddc},'args':_0x37e6f2?[_0x37e6f2]:[],'tdx':_0x5e7489});gracefulExit(_0x2588ed);}),workflowCmd['command']('retry\x20<session-id>')[a2_0x29f913(0x29c)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x29f913(0x34e)]('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x29f913(0x34e)](a2_0x29f913(0x12a),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x29f913(0x275)](async(_0x54b766,_0x68aa13)=>{const _0x3bf185=a2_0x29f913,_0x449e8=new WorkflowRetryCommand(),_0x3bcb20=program[_0x3bf185(0x165)](),_0x192205=await createTDXInstance(_0x3bcb20),_0xc80384=await _0x449e8[_0x3bf185(0x251)]({'options':{..._0x3bcb20,..._0x68aa13},'args':[_0x54b766],'tdx':_0x192205});gracefulExit(_0xc80384);}),workflowCmd['command'](a2_0x29f913(0x1d0))[a2_0x29f913(0x29c)](a2_0x29f913(0x2c9))[a2_0x29f913(0x34e)](a2_0x29f913(0x357),a2_0x29f913(0x33b),(_0x26162e,_0x4f5d5b=[])=>[..._0x4f5d5b,_0x26162e],[])[a2_0x29f913(0x34e)](a2_0x29f913(0x289),a2_0x29f913(0x132))[a2_0x29f913(0x275)](async(_0xc62dbe,_0x54cd30)=>{const _0xfcfa41=a2_0x29f913,_0x22aea5=new WorkflowRunCommand(),_0x5e5b4c=program[_0xfcfa41(0x165)](),_0x2dc7ce=await createTDXInstance(_0x5e5b4c),_0x46745a=await _0x22aea5[_0xfcfa41(0x251)]({'options':{..._0x5e5b4c,..._0x54cd30},'args':_0xc62dbe?[_0xc62dbe]:[],'tdx':_0x2dc7ce});gracefulExit(_0x46745a);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x278))[a2_0x29f913(0x29c)](a2_0x29f913(0x1b5))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e2),a2_0x29f913(0x2f3))[a2_0x29f913(0x275)](async(_0x1df4d6,_0xb86168,_0x517f74)=>{const _0x5e520e=a2_0x29f913,_0x43340d=new WorkflowDownloadCommand(),_0x3a99cb=program[_0x5e520e(0x165)](),_0x2f2954=await createTDXInstance(_0x3a99cb),_0x2a86ef=await _0x43340d[_0x5e520e(0x251)]({'options':{..._0x3a99cb,..._0x517f74},'args':[_0x1df4d6,_0xb86168||'.'],'tdx':_0x2f2954});gracefulExit(_0x2a86ef);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x207))[a2_0x29f913(0x29c)](a2_0x29f913(0x176))['option']('--revision\x20<revision>','Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x29f913(0x34e)]('--dry-run','Preview\x20changes\x20without\x20writing\x20files')['option'](a2_0x29f913(0x19e),'Skip\x20confirmation\x20prompt')[a2_0x29f913(0x275)](async(_0x12bf84,_0x29e68f,_0x4a659c)=>{const _0x1a3601=a2_0x29f913,_0x45ec6d=new WorkflowPullCommand(),_0x2d5166=program['opts'](),_0x45509f=await createTDXInstance(_0x2d5166),_0x57baab=await _0x45ec6d[_0x1a3601(0x251)]({'options':{..._0x2d5166,..._0x4a659c},'args':_0x29e68f?[_0x12bf84,_0x29e68f]:[_0x12bf84],'tdx':_0x45509f});gracefulExit(_0x57baab);}),workflowCmd[a2_0x29f913(0x1bf)]('push\x20[source-dir]')[a2_0x29f913(0x29c)](a2_0x29f913(0x208))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e2),a2_0x29f913(0x280))[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x233))[a2_0x29f913(0x34e)](a2_0x29f913(0x19c),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x29f913(0x34e)]('-y,\x20--yes',a2_0x29f913(0x2cb))['action'](async(_0x104b32,_0x585518)=>{const _0x1248ed=a2_0x29f913,_0x598a5d=new WorkflowPushCommand(),_0x3161b4=program[_0x1248ed(0x165)](),_0x1b41fd=await createTDXInstance(_0x3161b4),_0x3d1856=await _0x598a5d[_0x1248ed(0x251)]({'options':{..._0x3161b4,..._0x585518},'args':_0x104b32?[_0x104b32]:[],'tdx':_0x1b41fd});gracefulExit(_0x3d1856);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x21a))[a2_0x29f913(0x29c)](a2_0x29f913(0x164))[a2_0x29f913(0x34e)](a2_0x29f913(0x136),a2_0x29f913(0x2b6))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e2),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x29f913(0x34e)](a2_0x29f913(0x19c),a2_0x29f913(0x391))[a2_0x29f913(0x275)](async(_0x3e1d9d,_0x1d1e5c)=>{const _0x4548a6=a2_0x29f913,_0xa0ec1f=new WorkflowUploadCommand(),_0x240e83=program[_0x4548a6(0x165)](),_0x43d1d6=await createTDXInstance(_0x240e83),_0x343cad=await _0xa0ec1f[_0x4548a6(0x251)]({'options':{..._0x240e83,..._0x1d1e5c},'args':_0x3e1d9d?[_0x3e1d9d]:[],'tdx':_0x43d1d6});gracefulExit(_0x343cad);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2f2))['description'](a2_0x29f913(0x33e))[a2_0x29f913(0x34e)](a2_0x29f913(0x136),a2_0x29f913(0x130))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e2),a2_0x29f913(0x280))['option'](a2_0x29f913(0x1be),'Preview\x20without\x20creating\x20the\x20project')[a2_0x29f913(0x34e)](a2_0x29f913(0x19c),a2_0x29f913(0x391))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x1f6578,_0x41390e)=>{const _0x1cbf87=a2_0x29f913,_0x55a39e=new WorkflowCloneCommand(),_0x535fb4=program[_0x1cbf87(0x165)](),_0x46a916=await createTDXInstance(_0x535fb4),_0x331303=await _0x55a39e['run']({'options':{..._0x535fb4,..._0x41390e},'args':_0x1f6578?[_0x1f6578]:[],'tdx':_0x46a916});gracefulExit(_0x331303);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x153))[a2_0x29f913(0x29c)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x29f913(0x275)](async(_0x2d97e7,_0xb6385f)=>{const _0x3b4fcd=a2_0x29f913,_0x3f9b07=new WorkflowDeleteCommand(),_0xeaaabf=program[_0x3b4fcd(0x165)](),_0x1b1273=await createTDXInstance(_0xeaaabf),_0x45cfb8=await _0x3f9b07[_0x3b4fcd(0x251)]({'options':{..._0xeaaabf,..._0xb6385f},'args':[_0x2d97e7],'tdx':_0x1b1273});gracefulExit(_0x45cfb8);}),workflowCmd[a2_0x29f913(0x1bf)]('use\x20[project]')[a2_0x29f913(0x29c)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x29f913(0x34e)]('--clear','Clear\x20workflow\x20project\x20context')[a2_0x29f913(0x275)](async(_0x5a1ecb,_0x596f89)=>{const _0x1118ce=a2_0x29f913,_0x4a3d7d=new WorkflowUseCommand(),_0x4f29ac=program[_0x1118ce(0x165)](),_0xc0c77d=await createTDXInstance(_0x4f29ac),_0x3f99ae=await _0x4a3d7d[_0x1118ce(0x251)]({'options':{..._0x4f29ac,..._0x596f89},'args':_0x5a1ecb?[_0x5a1ecb]:[],'tdx':_0xc0c77d});gracefulExit(_0x3f99ae);});const wfSecretsCmd=workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x152))[a2_0x29f913(0x29c)](a2_0x29f913(0x25e));function a2_0x11b2(){const _0x26a7a5=['[DEPRECATED]\x20Segment\x20folder\x20management','--in\x20<database>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Workflow\x20project\x20management','892692WFgEKf','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Maximum\x20recursion\x20depth\x20(default:\x2010)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','sessions\x20[project]','activations\x20<segment_name>','--model\x20<name>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--customer-group\x20<json>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Database\x20management\x20commands','\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','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Update\x20a\x20campaign','-C,\x20--directory\x20<path>','colorFn','session','Create\x20a\x20new\x20profile','User\x20management\x20commands','--workspace\x20<name>','Delete\x20a\x20campaign','then','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','Run\x20tests\x20for\x20an\x20LLM\x20agent','\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','List\x20all\x20available\x20profiles','resume\x20<name-or-id>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','-u,\x20--use','--attempt-id\x20<id>','kill','LLM\x20project\x20management','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Job\x20priority\x20(-2\x20to\x202)','create\x20<parent_name>\x20<folder_name>','templates\x20[pattern]','--no-count-population','--retry-limit\x20<0~32>','api\x20[endpoint]','commandUsage','show\x20[name]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--master','Agent\x20prompt/instructions','log\x20<chat-id>','-f,\x20--force','133ylQcRe','--delay\x20<seconds>','--attribute\x20[name]','--in\x20<name>','push\x20[target]','--stream','Run\x20a\x20scheduled\x20query\x20immediately','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','attempt','delete\x20<name-or-id>','-n,\x20--name\x20<name>','use\x20[resource]\x20[value]','--force','Workflow\x20parameter\x20(repeatable)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','-p,\x20--profile\x20<name>','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','delete\x20<agent-name>','hidden','Skip\x20population\x20counting','test\x20[path]','Create\x20a\x20scheduled\x20query','run\x20<name>','pause\x20<name-or-id>','registeredArguments','list','delete\x20<args...>','help','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--reason\x20<text>','Update\x20a\x20workspace','Delete\x20a\x20scheduled\x20query','option','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','length','--system-prompt\x20<text>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','List\x20all\x20users\x20in\x20the\x20account','user','validate\x20[target]','--param\x20<key=value>','--result\x20<url>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','--json','information_schema','Add\x20attributes\x20from\x20JSON\x20file','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--attributes\x20<json>','query\x20[sql]','-o,\x20--output\x20<dir>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Workflow\x20attempt\x20management','DEBUG','HTML\x20template\x20content','Launch\x20a\x20campaign','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','desc\x20[segment_name]','Query\x20type:\x20trino\x20or\x20hive','LLM\x20agent\x20management','folders\x20<parent_name>','beefree','slice','Open\x20segment\x20in\x20web\x20browser','Show\x20job\x20details','Follow/watch\x20timeline\x20for\x20running\x20attempts','format','Overwrite\x20local\x20changes\x20without\x20confirmation','show\x20[segment_name]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--yes','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','tsv','models','--type\x20<api_type>','\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','Delete\x20a\x20workspace','--site\x20<site>','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Parse\x20and\x20validate\x20without\x20executing','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','pull\x20[parent_or_file]','List\x20secret\x20keys\x20for\x20a\x20project','Parent\x20segment\x20management','Temperature\x20(0.0-2.0,\x20default:\x200.7)','unset\x20<resource>','Commands:','list\x20[pattern]','commands','Create\x20a\x20new\x20LLM\x20project','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','view\x20[segment_name]','--enriched','Skip\x20validation\x20of\x20.dig\x20files','Invalid\x20editor\x20type:\x20','List\x20available\x20connector\x20types','-o,\x20--output\x20<file>','tables\x20[pattern]','--editor-type\x20<type>','statusline','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','apiKey','\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','show\x20[table]','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Open\x20parent\x20segment\x20in\x20web\x20browser','--no-color','timeline\x20[project.workflow]','--kind\x20<type>',',\x20version\x20','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','\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','Change\x20to\x20directory\x20before\x20executing\x20command','--max-tool-iterations\x20<n>','\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','--segment\x20<path>','--description\x20<desc>','--interval\x20<range>','Parent\x20folder\x20name\x20for\x20nested\x20folders','--version','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--params\x20<json>','padEnd','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Show\x20timeline\x20for\x20specific\x20attempt','Email\x20subject\x20template','Name\x20for\x20the\x20new\x20project\x20(required)','Filtering\x20rule\x20as\x20JSON\x20string','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','update\x20<agent-name>','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','subcommandDescription','--name\x20<name>','push\x20[path]','claude\x20[args...]','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','[attempt-id]','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--llm-project\x20<name>','Run\x20Trino\x20query\x20with\x20streaming\x20results','--starter-message\x20<text>','catch','get','logs','parent-segment','--tsv','--behavior\x20[name]','Include\x20retried\x20attempts','Pause\x20a\x20campaign','includes','--limit\x20<rows>','Campaign\x20description','--color','--json-columns\x20<cols>','--table','Force\x20retry\x20even\x20if\x20not\x20failed','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','isArray','--add-behaviors-file\x20<file>','secrets','delete\x20<project-name-or-id>','INFO','--agent\x20<ref>','isTTY','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','directory','Task\x20name\x20for\x20logs\x20action','join','push\x20[file]','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','use\x20<path>','2367164JHHJNl','Limit\x20number\x20of\x20rows','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Output\x20directory','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Pull\x20child\x20segments\x20to\x20YAML\x20files','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','opts','Read\x20query\x20from\x20file','RT\x202.0\x20configuration\x20management','template','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Setup\x20API\x20key\x20authentication\x20interactively','schedule','Generate\x20test\x20conversations\x20without\x20evaluation','Campaign\x20name','result\x20<job-id>','isDirectory','--default','auth','--database\x20<db>','_hidden','Output\x20as\x20JSON','Unknown\x20action:\x20','Pull\x20workflow\x20project\x20to\x20local\x20folder','Timezone\x20for\x20cron','\x20-\x20built\x20','aliases','schema\x20<type>','stats\x20<name-or-path>','[action]','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','desc','0.7','padWidth','site','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','--new','json','--resume-from\x20<task>','--status\x20<status>','Submit\x20a\x20job','database','Attempt\x20ID','Maximum\x20tool\x20iterations\x20(default:\x204)','--session-id\x20<id>','--schedule-option\x20<value>','Email\x20template\x20management','Create\x20a\x20workspace','duplicate\x20<name-or-id>','--chat-id\x20<id>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','show\x20<name-or-id>','Personalization\x20service\x20management','--max-depth\x20<depth>','--name\x20<text>','allowUnknownOption','--stage\x20<name>','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','tdx\x20','update\x20<name-or-id>','--skip-validation','Show\x20segment\x20details\x20(alias\x20for\x20view)','-y,\x20--yes','--data\x20<data>','create\x20<name>','18YNBfeU','Push\x20without\x20confirmation','Show\x20schedule\x20execution\x20history','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','5kkifMC','Move\x20to\x20folder','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','show\x20<folder_ref>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','project','Resume\x20from\x20specific\x20task\x20(retry)','--from\x20<n>','List\x20agents\x20in\x20current\x20project','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','configureHelp','logLevel','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--behaviors\x20<json>','--email-sender-id\x20<id>','--start-at\x20<datetime>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Database\x20to\x20use\x20(overrides\x20context)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--schedule-type\x20<type>','after','446041DkFUEE','List\x20all\x20data\x20connections','Output\x20as\x20JSON\x20Lines','--dry-run','command','--type\x20<type>','fields\x20[parent_name]','sql\x20[name]','CDP\x20segment\x20management\x20commands','Ending\x20offset\x20(default:\x2020)','Show\x20authentication\x20status\x20and\x20current\x20context','Starter\x20message','--prompt\x20<text>','428aDbazy','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Clear\x20session\x20context','Export\x20journey(s)\x20as\x20YAML\x20files','journey','Show\x20the\x20most\x20recent\x20chat','Show\x20connection\x20details\x20by\x20name','Database\x20name','run\x20[workflow]','--add-behaviors\x20<json>','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--add-attributes-file\x20<file>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','preview\x20[file]','trino','Agent\x20description','GET','options','profiles','Plaintext\x20template\x20content','mcp','--delete','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Add\x20attributes\x20as\x20JSON\x20string','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Data\x20connection\x20management\x20(for\x20activations/exports)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','-X,\x20--method\x20<method>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','buildTime','System\x20prompt/instructions\x20(default:\x20empty)','--table\x20<table>','--session\x20<id>','Show\x20journey\x20statistics','Updated\x20schedule\x20option','Workspace\x20management','log','3182090qHJXgE','setup','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','push\x20[parent_or_file]','stdout','--follow','table','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Request\x20body\x20as\x20JSON\x20string','projects\x20[pattern]','jsonl','kill\x20<job-id>','history\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','-f,\x20--file\x20<path>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','list\x20[project]','Behaviors\x20from\x20JSON\x20file','submit\x20[query]','Output\x20folder\x20(default:\x20{project_name}.llm)','Continue\x20most\x20recent\x20conversation','--output\x20<file>','claude-4.5-sonnet','argv','Show\x20segment\x20schema\x20(column\x20types)','pull\x20<project>\x20[target-dir]','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','614552IXFrhl','List\x20journeys\x20in\x20current\x20context','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','preAction','3604700ntSECZ','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','list\x20[name]','gitRevision','create\x20[name]','--subject\x20<subject>','workspace','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--rule-file\x20<file>','Workspace\x20description','List\x20jobs','upload\x20[project-name-or-dir]','Resume\x20a\x20conversation\x20(shows\x20selector)','Workspace\x20name\x20(required)','Directory\x20does\x20not\x20exist:\x20','Show\x20stats\x20for\x20specific\x20stage','Updated\x20description','subcommandTerm','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','-r,\x20--resume','argument','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','init\x20[name]','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Timezone\x20(e.g.,\x20America/Los_Angeles)','describe','Customer\x20group\x20as\x20JSON\x20string','Include\x20retried\x20attempts\x20(for\x20list)','profile','desc\x20[name]','--format\x20<format>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','Preview\x20changes\x20without\x20pushing','us01','-1d','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','workflow','name','--to\x20<n>','debug','createAsync','addHelpText','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--jsonl','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','-d,\x20--database\x20<db>','requiredOption','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','info\x20[segment_name]','10407LfFHVe','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Output\x20file\x20path','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Pause\x20a\x20running\x20journey','users','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Segment\x20description','--description\x20<text>','--plaintext\x20<text>','run','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','create\x20<segment_name>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--to\x20<timestamp>','optionDescription','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','-o,\x20--output\x20<folder>','Run\x20specific\x20tests\x20(comma-separated)','Duplicate\x20a\x20campaign','injectIntoOptions','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','push','Manage\x20workflow\x20project\x20secrets','set\x20<args...>','filter','-r,\x20--recursive','--html\x20<html>','backup\x20<name>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Path\x20is\x20not\x20a\x20directory:\x20','resume\x20<name-or-path>','--include-subtasks','journeys\x20[pattern]','pause\x20<name-or-path>','--parent-folder\x20<name>','--engine-version\x20<version>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Add\x20behaviors\x20as\x20JSON\x20string','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','New\x20campaign\x20name','set\x20<key=value>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--rule\x20<json>','forEach','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','action','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','download\x20<project-name>\x20[output-dir]','status','Workflow\x20session\x20management','parents\x20[pattern]','Folder\x20name\x20for\x20organization','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Skip\x20confirmation\x20prompts','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Custom\x20revision\x20name\x20(default:\x20timestamp)','Cron\x20expression\x20for\x20scheduling','[options]\x20--\x20[claude-code-args...]','Set\x20or\x20show\x20parent\x20segment\x20context','--timezone\x20<tz>','Usage:\x20','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','describe\x20[table]','hook','--session-time\x20<time>','update\x20<name>','segments\x20[path]','campaign','--clear','Retry\x20limit\x20(0\x20to\x2032)','--catalog\x20<catalog>','Remove\x20a\x20profile','fields\x20[name]','Enable\x20verbose\x20logging','trace','Options:','--debug','Trino\x20catalog\x20(default:\x20td)','Delete\x20an\x20email\x20template','Result\x20output\x20destination\x20URL','summary','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','description','--no-eval','campaigns\x20[pattern]','tasks','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--full','Workspace\x20name','update\x20<segment_name>','create','Master\x20database\x20name','Resume\x20a\x20paused\x20campaign','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','commandDescription','INVALID_ARGUMENT','-v,\x20--verbose','List\x20available\x20LLM\x20models','Agent\x20name','tdx','validate\x20[name]','chdir','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','error','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--behaviors-file\x20<file>','stderr','restore\x20<folder>','Override\x20project\x20name','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Update\x20an\x20email\x20template','Email\x20sender\x20ID\x20for\x20delivery','attempt:','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Update\x20an\x20existing\x20agent','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','remove\x20<name>','repeat','preview\x20[name]','Create\x20segment\x20folder','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','settings\x20<type>','Output\x20file\x20path\x20(default:\x20<name>.yml)','--reeval','show\x20<job-id>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','workflows\x20[project]','Skip\x20confirmation\x20prompt','--priority\x20<-2~2>','--from\x20<timestamp>','Behaviors\x20as\x20JSON\x20string','--folder\x20<name>','AI-native\x20CLI\x20for\x20Treasure\x20Data','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Include\x20subtasks\x20in\x20tasks\x20output','Scheduled\x20query\x20management\x20commands','outputHelp','run\x20[name]','connection','Query\x20engine\x20version','folder','map','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','--include-retried','show\x20<name>','jobs','-w,\x20--web','parent_segment','connections','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--revision\x20<revision>','-d,\x20--database\x20<name>','-d,\x20--database\x20<database>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','alias','Show\x20schedule\x20details','Start\x20a\x20new\x20chat\x20session','TRACE','pull\x20[name]','use\x20<name>','Updated\x20timezone','-c,\x20--continue','grapesjs','replace','--name\x20<names>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','clone\x20[source-dir]','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','clone\x20[source]','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','list\x20[path]','Preview\x20operation\x20without\x20executing'];a2_0x11b2=function(){return _0x26a7a5;};return a2_0x11b2();}wfSecretsCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1fe))[a2_0x29f913(0x29c)](a2_0x29f913(0x386))[a2_0x29f913(0x275)](async(_0x2dc876,_0x5f02fd)=>{const _0xeffaaf=a2_0x29f913,_0x4ae84f=new WorkflowSecretsListCommand(),_0x23bc64=program[_0xeffaaf(0x165)](),_0x103264=await createTDXInstance(_0x23bc64),_0x4a4197=await _0x4ae84f[_0xeffaaf(0x251)]({'options':{..._0x23bc64,..._0x5f02fd},'args':_0x2dc876?[_0x2dc876]:[],'tdx':_0x103264});gracefulExit(_0x4a4197);}),wfSecretsCmd['command'](a2_0x29f913(0x25f))[a2_0x29f913(0x29c)](a2_0x29f913(0x14e))[a2_0x29f913(0x275)](async(_0x702760,_0x39bfe4)=>{const _0x44e44c=a2_0x29f913,_0x5b1217=new WorkflowSecretsSetCommand(),_0x119025=program['opts'](),_0x46bd1c=await createTDXInstance(_0x119025),_0x5a1ee9=await _0x5b1217[_0x44e44c(0x251)]({'options':{..._0x119025,..._0x39bfe4},'args':_0x702760,'tdx':_0x46bd1c});gracefulExit(_0x5a1ee9);}),wfSecretsCmd['command'](a2_0x29f913(0x348))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x4ac11c,_0x324bca)=>{const _0x276cdc=a2_0x29f913,_0x47a8ff=new WorkflowSecretsDeleteCommand(),_0x3feb47=program[_0x276cdc(0x165)](),_0xe44a8a=await createTDXInstance(_0x3feb47),_0xf73f41=await _0x47a8ff[_0x276cdc(0x251)]({'options':{..._0x3feb47,..._0x324bca},'args':_0x4ac11c,'tdx':_0xe44a8a});gracefulExit(_0xf73f41);});const jobCmd=program[a2_0x29f913(0x1bf)]('job')[a2_0x29f913(0x29c)]('Job\x20management\x20commands'),jobListAction=async _0xcac305=>{const _0x10223d=a2_0x29f913,_0x29e21d=new JobListCommand(),_0x3ca5dd=program[_0x10223d(0x165)](),_0x1f2257=await createTDXInstance(_0x3ca5dd),_0x331f4b=await _0x29e21d['run']({'options':{..._0x3ca5dd,..._0xcac305},'args':[],'tdx':_0x1f2257});gracefulExit(_0x331f4b);};jobCmd['command'](a2_0x29f913(0x347))['description'](a2_0x29f913(0x219))[a2_0x29f913(0x34e)](a2_0x29f913(0x187),a2_0x29f913(0x329))[a2_0x29f913(0x275)](jobListAction),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x2dd),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x1a4))['option'](a2_0x29f913(0x187),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x29f913(0x275)](jobListAction),jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2c8))[a2_0x29f913(0x29c)](a2_0x29f913(0x36f))[a2_0x29f913(0x275)](async(_0x6ce80d,_0x2e72c5)=>{const _0x4c4fdf=a2_0x29f913,_0x4aa5e5=new JobShowCommand(),_0x1947e9=program[_0x4c4fdf(0x165)](),_0x2c3c83=await createTDXInstance(_0x1947e9),_0x4023f0=await _0x4aa5e5[_0x4c4fdf(0x251)]({'options':{..._0x1947e9,..._0x2e72c5},'args':[_0x6ce80d],'tdx':_0x2c3c83});gracefulExit(_0x4023f0);}),jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1f8))[a2_0x29f913(0x29c)]('Kill\x20a\x20job')[a2_0x29f913(0x275)](async(_0x3f9b69,_0x59c126)=>{const _0x318dd4=a2_0x29f913,_0xb13f6c=new JobKillCommand(),_0x56e9b8=program[_0x318dd4(0x165)](),_0x3fb03e=await createTDXInstance(_0x56e9b8),_0x17f51f=await _0xb13f6c[_0x318dd4(0x251)]({'options':{..._0x56e9b8,..._0x59c126},'args':[_0x3f9b69],'tdx':_0x3fb03e});gracefulExit(_0x17f51f);}),jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x200))[a2_0x29f913(0x29c)](a2_0x29f913(0x188))[a2_0x29f913(0x34e)]('--job-type\x20<type>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x29f913(0x1d6))[a2_0x29f913(0x34e)](a2_0x29f913(0x1fb),a2_0x29f913(0x166))[a2_0x29f913(0x34e)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x29f913(0x35b))['action'](async(_0x19feea,_0x3efd54)=>{const _0x2390ff=a2_0x29f913,_0x3af8d1=new JobSubmitCommand(),_0x4be884=program[_0x2390ff(0x165)](),_0x5ad53c=await createTDXInstance(_0x4be884),_0x141297=await _0x3af8d1[_0x2390ff(0x251)]({'options':{..._0x4be884,..._0x3efd54},'args':_0x19feea?[_0x19feea]:[],'tdx':_0x5ad53c});gracefulExit(_0x141297);}),jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x16e))['description']('Get\x20job\x20results')['action'](async(_0x5972ab,_0xaf8939)=>{const _0x137a11=a2_0x29f913,_0x4a09db=new JobResultCommand(),_0x1849f7=program[_0x137a11(0x165)](),_0x1a8e7f=await createTDXInstance(_0x1849f7),_0x3e692b=await _0x4a09db[_0x137a11(0x251)]({'options':{..._0x1849f7,..._0xaf8939},'args':[_0x5972ab],'tdx':_0x1a8e7f});gracefulExit(_0x3e692b);});const scheduleCmd=jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x16b))[a2_0x29f913(0x29c)](a2_0x29f913(0x2d3));scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x316))[a2_0x29f913(0x275)](async(_0xf909a2,_0x440e8c)=>{const _0xb77ebe=a2_0x29f913,_0x4544f7=new ScheduleListCommand(),_0x365cde=program[_0xb77ebe(0x165)](),_0x349ab7=await createTDXInstance(_0x365cde),_0x4cf4c3=await _0x4544f7[_0xb77ebe(0x251)]({'options':{..._0x365cde,..._0x440e8c},'args':_0xf909a2?[_0xf909a2]:[],'tdx':_0x349ab7});gracefulExit(_0x4cf4c3);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2dc))['description'](a2_0x29f913(0x2e7))[a2_0x29f913(0x275)](async(_0x5e4881,_0x265406)=>{const _0x296e41=new ScheduleShowCommand(),_0x15d2ba=program['opts'](),_0x5c94fe=await createTDXInstance(_0x15d2ba),_0x49a929=await _0x296e41['run']({'options':{..._0x15d2ba,..._0x265406},'args':[_0x5e4881],'tdx':_0x5c94fe});gracefulExit(_0x49a929);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1a0))['description'](a2_0x29f913(0x343))['requiredOption'](a2_0x29f913(0x240),a2_0x29f913(0x1cf))[a2_0x29f913(0x241)](a2_0x29f913(0x1fb),a2_0x29f913(0x166))[a2_0x29f913(0x34e)](a2_0x29f913(0x1c0),a2_0x29f913(0x369),a2_0x29f913(0x1d6))[a2_0x29f913(0x34e)]('--cron\x20<expression>',a2_0x29f913(0x281))[a2_0x29f913(0x34e)](a2_0x29f913(0x284),'Timezone\x20for\x20cron\x20(default:\x20UTC)')[a2_0x29f913(0x34e)](a2_0x29f913(0x32f),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x29f913(0x34e)](a2_0x29f913(0x2cc),a2_0x29f913(0x321))[a2_0x29f913(0x34e)](a2_0x29f913(0x325),a2_0x29f913(0x28e))[a2_0x29f913(0x34e)](a2_0x29f913(0x26b),a2_0x29f913(0x2d7))['option'](a2_0x29f913(0x358),a2_0x29f913(0x298))['action'](async(_0x3ede82,_0x10fdea)=>{const _0x48d46a=a2_0x29f913,_0xa6dd7a=new ScheduleCreateCommand(),_0x4ccf80=program['opts'](),_0x49b3d8=await createTDXInstance(_0x4ccf80),_0x11ad0f=await _0xa6dd7a[_0x48d46a(0x251)]({'options':{..._0x4ccf80,..._0x10fdea},'args':[_0x3ede82],'tdx':_0x49b3d8});gracefulExit(_0x11ad0f);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x28a))[a2_0x29f913(0x29c)]('Update\x20a\x20scheduled\x20query')[a2_0x29f913(0x34e)](a2_0x29f913(0x240),'Database\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x1fb),a2_0x29f913(0x166))['option'](a2_0x29f913(0x1c0),a2_0x29f913(0x369))[a2_0x29f913(0x34e)]('--cron\x20<expression>','Cron\x20expression\x20for\x20scheduling')[a2_0x29f913(0x34e)](a2_0x29f913(0x284),a2_0x29f913(0x177))[a2_0x29f913(0x34e)](a2_0x29f913(0x32f),'Delay\x20in\x20seconds\x20before\x20execution')['option'](a2_0x29f913(0x2cc),a2_0x29f913(0x321))[a2_0x29f913(0x34e)](a2_0x29f913(0x325),a2_0x29f913(0x28e))['option'](a2_0x29f913(0x26b),'Query\x20engine\x20version')[a2_0x29f913(0x34e)](a2_0x29f913(0x358),a2_0x29f913(0x298))[a2_0x29f913(0x275)](async(_0x47dbd7,_0x397e05)=>{const _0x525166=a2_0x29f913,_0x39ca41=new ScheduleUpdateCommand(),_0x370916=program[_0x525166(0x165)](),_0x166588=await createTDXInstance(_0x370916),_0x53afab=await _0x39ca41[_0x525166(0x251)]({'options':{..._0x370916,..._0x397e05},'args':[_0x47dbd7],'tdx':_0x166588});gracefulExit(_0x53afab);}),scheduleCmd[a2_0x29f913(0x1bf)]('delete\x20<name>')['description'](a2_0x29f913(0x34d))['action'](async(_0x1b9133,_0x765a46)=>{const _0x2a26d0=a2_0x29f913,_0x225052=new ScheduleDeleteCommand(),_0x1c5b94=program[_0x2a26d0(0x165)](),_0x2cec1d=await createTDXInstance(_0x1c5b94),_0x1aff68=await _0x225052[_0x2a26d0(0x251)]({'options':{..._0x1c5b94,..._0x765a46},'args':[_0x1b9133],'tdx':_0x2cec1d});gracefulExit(_0x1aff68);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x344))[a2_0x29f913(0x29c)](a2_0x29f913(0x334))[a2_0x29f913(0x34e)]('--time\x20<iso8601>',a2_0x29f913(0x183))[a2_0x29f913(0x34e)]('--num\x20<1-10>',a2_0x29f913(0x2be))[a2_0x29f913(0x275)](async(_0x1ea9bd,_0x20b4c6)=>{const _0x43a412=a2_0x29f913,_0x4ff19d=new ScheduleRunCommand(),_0x2367bd=program['opts'](),_0x557bbd=await createTDXInstance(_0x2367bd),_0xfe8f3=await _0x4ff19d[_0x43a412(0x251)]({'options':{..._0x2367bd,..._0x20b4c6},'args':[_0x1ea9bd],'tdx':_0x557bbd});gracefulExit(_0xfe8f3);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1f9))['description'](a2_0x29f913(0x1a3))[a2_0x29f913(0x34e)](a2_0x29f913(0x1ac),'Starting\x20offset\x20(default:\x200)')[a2_0x29f913(0x34e)](a2_0x29f913(0x239),a2_0x29f913(0x1c4))[a2_0x29f913(0x275)](async(_0x5e6185,_0x4c116)=>{const _0x5926d6=a2_0x29f913,_0x42772e=new ScheduleHistoryCommand(),_0x399d23=program[_0x5926d6(0x165)](),_0x2f32ca=await createTDXInstance(_0x399d23),_0x56e7c0=await _0x42772e[_0x5926d6(0x251)]({'options':{..._0x399d23,..._0x4c116},'args':[_0x5e6185],'tdx':_0x2f32ca});gracefulExit(_0x56e7c0);});const llmCmd=program[a2_0x29f913(0x1bf)]('llm')['description'](a2_0x29f913(0x38e));llmCmd['command']('use\x20<project-name>')[a2_0x29f913(0x29c)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x29f913(0x275)](async(_0x11caa0,_0x4d95f3)=>{const _0x155865=a2_0x29f913,_0x412d6d=new LLMUseCommand(),_0x35a49c=program[_0x155865(0x165)](),_0xc28e2a=await createTDXInstance(_0x35a49c),_0x2c9517=await _0x412d6d[_0x155865(0x251)]({'options':{..._0x35a49c,..._0x4d95f3},'args':[_0x11caa0],'tdx':_0xc28e2a});gracefulExit(_0x2c9517);}),llmCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x37a))[a2_0x29f913(0x29c)](a2_0x29f913(0x2ab))[a2_0x29f913(0x275)](async _0x1d134d=>{const _0x21abd1=a2_0x29f913,_0x942162=new LLMModelsCommand(),_0x4f698d=program['opts'](),_0x15a687=await createTDXInstance(_0x4f698d),_0x55970a=await _0x942162[_0x21abd1(0x251)]({'options':{..._0x4f698d,..._0x1d134d},'args':[],'tdx':_0x15a687});gracefulExit(_0x55970a);});const projectCmd=llmCmd[a2_0x29f913(0x1bf)]('project')[a2_0x29f913(0x29c)](a2_0x29f913(0x31f)),llmProjectListAction=async(_0x3f3d19,_0x4e2843)=>{const _0x229023=a2_0x29f913,_0x24d59c=new LLMProjectsCommand(),_0x58d71e=program[_0x229023(0x165)](),_0x4b2fd3=await createTDXInstance(_0x58d71e),_0x297812=await _0x24d59c['run']({'options':{..._0x58d71e,..._0x4e2843},'args':_0x3f3d19?[_0x3f3d19]:[],'tdx':_0x4b2fd3});gracefulExit(_0x297812);};projectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x29f913(0x275)](llmProjectListAction),llmCmd['command'](a2_0x29f913(0x1f6))[a2_0x29f913(0x29c)](a2_0x29f913(0x2c4))['action'](llmProjectListAction),projectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1a0))[a2_0x29f913(0x29c)](a2_0x29f913(0x38d))[a2_0x29f913(0x34e)](a2_0x29f913(0x24f),'Project\x20description')[a2_0x29f913(0x275)](async(_0xd98511,_0x14084d)=>{const _0x76995c=a2_0x29f913,_0x4f9afb=new LLMProjectCreateCommand(),_0x263094=program[_0x76995c(0x165)](),_0x5b7c3d=await createTDXInstance(_0x263094),_0x1a01ee=await _0x4f9afb[_0x76995c(0x251)]({'options':{..._0x263094,..._0x14084d},'args':[_0xd98511],'tdx':_0x5b7c3d});gracefulExit(_0x1a01ee);}),projectCmd['command']('delete\x20<name>')[a2_0x29f913(0x29c)]('Delete\x20an\x20LLM\x20project')[a2_0x29f913(0x275)](async(_0x53bec8,_0x931e41)=>{const _0x5d2b2e=a2_0x29f913,_0x507314=new LLMProjectDeleteCommand(),_0x1ec1e2=program[_0x5d2b2e(0x165)](),_0x5e8ed8=await createTDXInstance(_0x1ec1e2),_0x35f788=await _0x507314[_0x5d2b2e(0x251)]({'options':{..._0x1ec1e2,..._0x931e41},'args':[_0x53bec8],'tdx':_0x5e8ed8});gracefulExit(_0x35f788);}),projectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x263))[a2_0x29f913(0x29c)](a2_0x29f913(0x22a))[a2_0x29f913(0x34e)](a2_0x29f913(0x258),a2_0x29f913(0x201))[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x2a0))[a2_0x29f913(0x275)](async(_0x388c6f,_0xebe0de)=>{const _0x449428=a2_0x29f913,_0x5c0723=new LLMProjectBackupCommand(),_0x3ab4e8=program[_0x449428(0x165)](),_0x44be53=await createTDXInstance(_0x3ab4e8),_0x234107=await _0x5c0723[_0x449428(0x251)]({'options':{..._0x3ab4e8,..._0xebe0de},'args':[_0x388c6f],'tdx':_0x44be53});gracefulExit(_0x234107);}),projectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2b5))[a2_0x29f913(0x29c)](a2_0x29f913(0x182))['option']('--name\x20<new-name>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x224))[a2_0x29f913(0x275)](async(_0x205f3e,_0x12a813)=>{const _0x28c95b=a2_0x29f913,_0x35bbc4=new LLMProjectRestoreCommand(),_0x59aab2=program[_0x28c95b(0x165)](),_0x5ddaa1=await createTDXInstance(_0x59aab2),_0x32903a=await _0x35bbc4['run']({'options':{..._0x59aab2,..._0x12a813},'args':[_0x205f3e],'tdx':_0x5ddaa1});gracefulExit(_0x32903a);});const llmAgentListAction=async(_0x3278e2,_0x4ef2be)=>{const _0x26adc0=a2_0x29f913,_0x5a796d=new LLMAgentsCommand(),_0xb8387f=program[_0x26adc0(0x165)](),_0x4a76d6=await createTDXInstance(_0xb8387f),_0x125b4f=await _0x5a796d[_0x26adc0(0x251)]({'options':{..._0xb8387f,..._0x4ef2be},'args':_0x3278e2?[_0x3278e2]:[],'tdx':_0x4a76d6});gracefulExit(_0x125b4f);};llmCmd[a2_0x29f913(0x1bf)]('agents\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x308))[a2_0x29f913(0x275)](llmAgentListAction),program[a2_0x29f913(0x1bf)]('agents\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x308))[a2_0x29f913(0x275)](llmAgentListAction),llmCmd[a2_0x29f913(0x1bf)]('history\x20[chat-id]')['description'](a2_0x29f913(0x271))[a2_0x29f913(0x34e)]('--last','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x29f913(0x275)](async(_0x952154,_0x581923)=>{const _0x5a0a8c=a2_0x29f913,_0x470229=new LLMHistoryCommand(),_0x3a11ee=program[_0x5a0a8c(0x165)](),_0x5b5dcc=await createTDXInstance(_0x3a11ee),_0x4d8420=await _0x470229[_0x5a0a8c(0x251)]({'options':{..._0x3a11ee,..._0x581923},'args':_0x952154?[_0x952154]:[],'tdx':_0x5b5dcc});gracefulExit(_0x4d8420);});isExperimentalAvailable()&&llmCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x32c))[a2_0x29f913(0x29c)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')['action'](async(_0x2044dc,_0x491055)=>{const _0x1d72ef=a2_0x29f913,_0x41cfd1=new LLMLogCommand(),_0x4de137=program[_0x1d72ef(0x165)](),_0x8e78f2=await createTDXInstance(_0x4de137),_0x468e97=await _0x41cfd1['run']({'options':{..._0x4de137,..._0x491055},'args':[_0x2044dc],'tdx':_0x8e78f2});gracefulExit(_0x468e97);});program[a2_0x29f913(0x1bf)](a2_0x29f913(0x138))['usage'](a2_0x29f913(0x282))[a2_0x29f913(0x29c)](a2_0x29f913(0x2b0))[a2_0x29f913(0x34e)](a2_0x29f913(0x2ed),a2_0x29f913(0x202))['option'](a2_0x29f913(0x222),a2_0x29f913(0x21b))[a2_0x29f913(0x34e)]('--no-proxy',a2_0x29f913(0x221))[a2_0x29f913(0x197)]()['allowExcessArguments'](!![])[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x30b))[a2_0x29f913(0x275)](async(_0x181860,_0xfe0445)=>{const _0x4c79b0=a2_0x29f913,_0x2fd9b4=program[_0x4c79b0(0x165)](),_0x4fe107=Array[_0x4c79b0(0x150)](_0x181860)?_0x181860:[];if(_0x4fe107[0x0]===_0x4c79b0(0x397)){const _0x1aecfc=new ClaudeStatuslineCommand(),_0x5b0494=await _0x1aecfc[_0x4c79b0(0x251)]({'options':{..._0x2fd9b4,..._0xfe0445},'args':_0x4fe107[_0x4c79b0(0x36d)](0x1),'tdx':null});gracefulExit(_0x5b0494);}if(_0x4fe107[0x0]==='usage'){const _0x14c0f4=new ClaudeUsageCommand(),_0x244f81=await _0x14c0f4[_0x4c79b0(0x251)]({'options':{..._0x2fd9b4,..._0xfe0445},'args':_0x4fe107[_0x4c79b0(0x36d)](0x1),'tdx':null});gracefulExit(_0x244f81);}const _0x34ddff=new ClaudeCommand(),_0x11a16d=await createTDXInstance(_0x2fd9b4),_0x34e57e=await _0x34ddff['run']({'options':{..._0x2fd9b4,..._0xfe0445},'args':_0x4fe107,'tdx':_0x11a16d});gracefulExit(_0x34e57e);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x339))[a2_0x29f913(0x29c)](a2_0x29f913(0x1b6))[a2_0x29f913(0x34e)](a2_0x29f913(0x28d),a2_0x29f913(0x1ca))[a2_0x29f913(0x34e)]('--default','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x29f913(0x275)](async(_0x4be6fc,_0x50e1b8,_0x4cd1c5)=>{const _0x515837=a2_0x29f913,_0x1ac0e2=new UseCommand(),_0x1f09e1=program['opts'](),_0x38bb10=[];if(_0x4be6fc)_0x38bb10['push'](_0x4be6fc);if(_0x50e1b8)_0x38bb10[_0x515837(0x25d)](_0x50e1b8);const _0x5935e6=await _0x1ac0e2[_0x515837(0x251)]({'options':{..._0x1f09e1,..._0x4cd1c5},'args':_0x38bb10,'tdx':null});gracefulExit(_0x5935e6);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x279))[a2_0x29f913(0x29c)](a2_0x29f913(0x1c5))[a2_0x29f913(0x275)](async _0x4771df=>{const _0x23fb9e=a2_0x29f913,_0x503147=new StatusCommand(),_0x3e37b1=program[_0x23fb9e(0x165)](),_0xc1d2ce=await createTDXInstance(_0x3e37b1),_0x166444=await _0x503147[_0x23fb9e(0x251)]({'options':{..._0x3e37b1,..._0x4771df},'args':[],'tdx':_0xc1d2ce});gracefulExit(_0x166444);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x389))[a2_0x29f913(0x29c)](a2_0x29f913(0x1d2))[a2_0x29f913(0x34e)](a2_0x29f913(0x170),a2_0x29f913(0x300))[a2_0x29f913(0x275)](async(_0x5bddbd,_0xd2e523)=>{const _0xa447f9=a2_0x29f913,_0x19c3c4=new UnsetCommand(),_0x10c459=program[_0xa447f9(0x165)](),_0x3af39d=await _0x19c3c4[_0xa447f9(0x251)]({'options':{..._0x10c459,..._0xd2e523},'args':[_0x5bddbd],'tdx':null});gracefulExit(_0x3af39d);}),program['command']('chats')[a2_0x29f913(0x29c)]('Interactive\x20chat\x20selector')[a2_0x29f913(0x34e)]('--last',a2_0x29f913(0x1cd))[a2_0x29f913(0x275)](async _0x103733=>{const _0x1c80b9=a2_0x29f913,_0x2fd423=new ChatsCommand(),_0x4d1838=program[_0x1c80b9(0x165)](),_0x3a5d1e=await createTDXInstance(_0x4d1838),_0x36f8f2=await _0x2fd423[_0x1c80b9(0x251)]({'options':{..._0x4d1838,..._0x103733},'args':[],'tdx':_0x3a5d1e});gracefulExit(_0x36f8f2);});const authCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x171))[a2_0x29f913(0x29c)]('Authentication\x20management');async function runAuthStatusCommand(_0x52fa26){const _0x381143=a2_0x29f913,_0x3fef7d=new AuthStatusCommand(),_0x35d6a1=program[_0x381143(0x165)](),_0x456138=await createTDXInstance(_0x35d6a1),_0x575e48=await _0x3fef7d[_0x381143(0x251)]({'options':{..._0x35d6a1,..._0x52fa26},'args':[],'tdx':_0x456138});gracefulExit(_0x575e48);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x29f913(0x1bf)]('status')['description'](a2_0x29f913(0x1de))['action'](runAuthStatusCommand),authCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1ee))[a2_0x29f913(0x29c)](a2_0x29f913(0x16a))[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x117))[a2_0x29f913(0x275)](async _0x1b5b79=>{const _0x43a80a=new AuthSetupCommand(),_0x3a2431=program['opts'](),_0x3e0a7c=await createTDXInstance(_0x3a2431),_0x424d77=await _0x43a80a['run']({'options':{..._0x3a2431,..._0x1b5b79},'args':[],'tdx':_0x3e0a7c});gracefulExit(_0x424d77);}),authCmd[a2_0x29f913(0x1bf)]('clear')['description']('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x318))[a2_0x29f913(0x275)](async _0x5587d5=>{const _0x1bc138=a2_0x29f913,_0x344e40=new AuthClearCommand(),_0x469c75=program[_0x1bc138(0x165)](),_0x18eb38=await _0x344e40['run']({'options':{..._0x469c75,..._0x5587d5},'args':[],'tdx':null});gracefulExit(_0x18eb38);});const userCmd=program['command'](a2_0x29f913(0x355))[a2_0x29f913(0x29c)](a2_0x29f913(0x312)),userListAction=async _0x31c4a8=>{const _0x4c59e8=a2_0x29f913,_0x4af63a=new UserListCommand(),_0x14c181=program[_0x4c59e8(0x165)](),_0x4749ba=await createTDXInstance(_0x14c181),_0x24533d=await _0x4af63a[_0x4c59e8(0x251)]({'options':{..._0x14c181,..._0x31c4a8},'args':[],'tdx':_0x4749ba});gracefulExit(_0x24533d);};userCmd['action'](async _0x596009=>{const _0x492d53=a2_0x29f913,_0xf622b9=new UserCommand(),_0x21ef5d=program[_0x492d53(0x165)](),_0xb4fa3f=await createTDXInstance(_0x21ef5d),_0x3e2fc4=await _0xf622b9[_0x492d53(0x251)]({'options':{..._0x21ef5d,..._0x596009},'args':[],'tdx':_0xb4fa3f});gracefulExit(_0x3e2fc4);}),userCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x347))[a2_0x29f913(0x29c)](a2_0x29f913(0x354))[a2_0x29f913(0x275)](userListAction),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x24b))['description'](a2_0x29f913(0x2e5))[a2_0x29f913(0x275)](userListAction),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x1da))['description']('List\x20all\x20available\x20profiles')['action'](async _0xb977db=>{const _0x302489=new ProfilesCommand(),_0x548f1a=program['opts'](),_0x22e7b3=await _0x302489['run']({'options':{..._0x548f1a,..._0xb977db},'args':[],'tdx':null});gracefulExit(_0x22e7b3);});const profileCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x22f))[a2_0x29f913(0x29c)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x29f913(0x275)](()=>{const _0x1849b2=a2_0x29f913;profileCmd[_0x1849b2(0x2d4)]();});const profileListAction=async _0x5467b1=>{const _0x24bb9b=a2_0x29f913,_0x129375=new ProfilesCommand(),_0x31f773=program[_0x24bb9b(0x165)](),_0x5758f1=await _0x129375['run']({'options':{..._0x31f773,..._0x5467b1},'args':[],'tdx':null});gracefulExit(_0x5758f1);};profileCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x347))[a2_0x29f913(0x29c)](a2_0x29f913(0x319))['action'](profileListAction),profileCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x213))['description'](a2_0x29f913(0x311))[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x37c))['action'](async(_0x3c4a8e,_0x2aa4ed)=>{const _0x20f81f=a2_0x29f913,_0x133144=new ProfileCreateCommand(),_0x69fd68=program[_0x20f81f(0x165)](),_0x4c39e9=await _0x133144[_0x20f81f(0x251)]({'options':{..._0x69fd68,..._0x2aa4ed},'args':_0x3c4a8e?[_0x3c4a8e]:[],'tdx':null});gracefulExit(_0x4c39e9);}),profileCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2bf))['description'](a2_0x29f913(0x290))[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x232))[a2_0x29f913(0x275)](async(_0x5e0e51,_0x17ea41)=>{const _0x530297=a2_0x29f913,_0x1d7d97=new ProfileRemoveCommand(),_0x3121cb=program[_0x530297(0x165)](),_0x1b0316=await _0x1d7d97[_0x530297(0x251)]({'options':{..._0x3121cb,..._0x17ea41},'args':[_0x5e0e51],'tdx':null});gracefulExit(_0x1b0316);}),profileCmd['command'](a2_0x29f913(0x270))[a2_0x29f913(0x29c)]('Set\x20a\x20profile\x20configuration\x20value')[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x120))[a2_0x29f913(0x275)](async(_0x2f6060,_0x1e1749)=>{const _0x5daf70=a2_0x29f913,_0x36cd8f=new ProfileSetCommand(),_0x2c35ef=program[_0x5daf70(0x165)](),_0x50e346=await _0x36cd8f[_0x5daf70(0x251)]({'options':{..._0x2c35ef,..._0x1e1749},'args':[_0x2f6060],'tdx':null});gracefulExit(_0x50e346);}),profileCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2eb))[a2_0x29f913(0x29c)](a2_0x29f913(0x20c))[a2_0x29f913(0x34e)](a2_0x29f913(0x170),a2_0x29f913(0x277))[a2_0x29f913(0x23c)]('after',a2_0x29f913(0x123))[a2_0x29f913(0x275)](async(_0x405155,_0x569cfb)=>{const _0x570b6f=a2_0x29f913,_0x1efddd=new ProfileUseCommand(),_0x258851=program[_0x570b6f(0x165)](),_0x352497=await _0x1efddd[_0x570b6f(0x251)]({'options':{..._0x258851,..._0x569cfb},'args':[_0x405155],'tdx':null});gracefulExit(_0x352497);});const engageCmd=program['command']('engage')[a2_0x29f913(0x29c)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x2e2c82=>{return async(_0x43b70f,_0x3ffa4c)=>{const _0x33034d=a2_0x4297,_0x1d99a8=new _0x2e2c82(),_0x6cc64e=program[_0x33034d(0x165)](),_0x1fc485=await createTDXInstance(_0x6cc64e),_0xd8c527=await _0x1d99a8[_0x33034d(0x251)]({'options':{..._0x6cc64e,..._0x3ffa4c},'args':[_0x43b70f],'tdx':_0x1fc485});gracefulExit(_0xd8c527);};},createEngageNoArgAction=_0x1af08c=>{return async _0x2cd6ef=>{const _0x529f5b=a2_0x4297,_0x508347=new _0x1af08c(),_0x51479c=program[_0x529f5b(0x165)](),_0x4a4f71=await createTDXInstance(_0x51479c),_0x235991=await _0x508347[_0x529f5b(0x251)]({'options':{..._0x51479c,..._0x2cd6ef},'args':[],'tdx':_0x4a4f71});gracefulExit(_0x235991);};},campaignCmd=engageCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x28c))[a2_0x29f913(0x29c)]('Campaign\x20management'),campaignListAction=async(_0x1dc8b0,_0x364c60)=>{const _0x52054c=a2_0x29f913,_0x2df459=new EngageCampaignsCommand(),_0x4968f3=program[_0x52054c(0x165)](),_0x194b4e=await createTDXInstance(_0x4968f3),_0x124b22=await _0x2df459[_0x52054c(0x251)]({'options':{..._0x4968f3,..._0x364c60},'args':_0x1dc8b0?[_0x1dc8b0]:[],'tdx':_0x194b4e});gracefulExit(_0x124b22);};campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x25c))[a2_0x29f913(0x34e)](a2_0x29f913(0x1c0),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x29f913(0x34e)]('--status\x20<status>',a2_0x29f913(0x254))['option'](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](campaignListAction),engageCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x29e))[a2_0x29f913(0x29c)](a2_0x29f913(0x13b))[a2_0x29f913(0x34e)](a2_0x29f913(0x1c0),a2_0x29f913(0x274))[a2_0x29f913(0x34e)]('--status\x20<status>',a2_0x29f913(0x254))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](campaignListAction),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x193))[a2_0x29f913(0x29c)]('Show\x20campaign\x20details')[a2_0x29f913(0x34e)]('--workspace\x20<name>','Workspace\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x2a1),a2_0x29f913(0x27d))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2a4))[a2_0x29f913(0x29c)]('Create\x20a\x20new\x20campaign')['requiredOption']('--name\x20<name>',a2_0x29f913(0x16d))['requiredOption'](a2_0x29f913(0x1c0),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x29f913(0x34e)]('--workspace\x20<name>',a2_0x29f913(0x21c))[a2_0x29f913(0x34e)](a2_0x29f913(0x125),a2_0x29f913(0x149))['option'](a2_0x29f913(0x124),a2_0x29f913(0x1b8))[a2_0x29f913(0x34e)](a2_0x29f913(0x1b3),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x29f913(0x34e)](a2_0x29f913(0x14b),a2_0x29f913(0x226))[a2_0x29f913(0x34e)](a2_0x29f913(0x1b4),a2_0x29f913(0x361))[a2_0x29f913(0x34e)]('--timezone\x20<tz>',a2_0x29f913(0x1c9))[a2_0x29f913(0x275)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x19b))[a2_0x29f913(0x29c)](a2_0x29f913(0x30d))[a2_0x29f913(0x34e)]('--workspace\x20<name>','Workspace\x20name')['option']('--name\x20<name>',a2_0x29f913(0x26f))[a2_0x29f913(0x34e)](a2_0x29f913(0x125),a2_0x29f913(0x149))['option'](a2_0x29f913(0x124),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x29f913(0x34e)]('--email-sender-id\x20<id>',a2_0x29f913(0x2b9))[a2_0x29f913(0x34e)](a2_0x29f913(0x14b),a2_0x29f913(0x226))[a2_0x29f913(0x34e)]('--start-at\x20<datetime>',a2_0x29f913(0x361))[a2_0x29f913(0x34e)](a2_0x29f913(0x284),a2_0x29f913(0x1c9))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x337))['description'](a2_0x29f913(0x314))['option'](a2_0x29f913(0x313),'Workspace\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x376),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x29f913(0x29c)](a2_0x29f913(0x366))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x29f913(0x345))['description'](a2_0x29f913(0x146))['option'](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x31a))[a2_0x29f913(0x29c)](a2_0x29f913(0x2a6))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x29f913(0x190))[a2_0x29f913(0x29c)](a2_0x29f913(0x25a))['option'](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x29f913(0x168))[a2_0x29f913(0x29c)](a2_0x29f913(0x18e)),templateListAction=async(_0x5cc55f,_0x52376e)=>{const _0xf63c78=a2_0x29f913,_0x361d64=new EngageTemplatesCommand(),_0x13a32b=program['opts'](),_0xab2d86=await createTDXInstance(_0x13a32b),_0x34f4e9=await _0x361d64[_0xf63c78(0x251)]({'options':{..._0x13a32b,..._0x52376e},'args':_0x5cc55f?[_0x5cc55f]:[],'tdx':_0xab2d86});gracefulExit(_0x34f4e9);};templateCmd[a2_0x29f913(0x1bf)]('list\x20[pattern]')['description'](a2_0x29f913(0x2a7))[a2_0x29f913(0x34e)]('--workspace\x20<name>',a2_0x29f913(0x2a2))['action'](templateListAction),engageCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x323))['description'](a2_0x29f913(0x276))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x29f913(0x275)](templateListAction),templateCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x193))[a2_0x29f913(0x29c)]('Show\x20email\x20template\x20details')['option'](a2_0x29f913(0x313),a2_0x29f913(0x2a2))['option'](a2_0x29f913(0x2a1),a2_0x29f913(0x27d))[a2_0x29f913(0x275)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2a4))[a2_0x29f913(0x29c)]('Create\x20an\x20email\x20template')[a2_0x29f913(0x241)](a2_0x29f913(0x136),'Template\x20name')['requiredOption'](a2_0x29f913(0x214),a2_0x29f913(0x12f))[a2_0x29f913(0x241)]('--html\x20<html>',a2_0x29f913(0x365))[a2_0x29f913(0x34e)]('--workspace\x20<name>',a2_0x29f913(0x21c))[a2_0x29f913(0x34e)](a2_0x29f913(0x250),a2_0x29f913(0x1db))[a2_0x29f913(0x34e)](a2_0x29f913(0x396),'Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)',_0x4fb0b7=>{const _0x58672c=a2_0x29f913;if(![_0x58672c(0x36c),_0x58672c(0x2ee)][_0x58672c(0x147)](_0x4fb0b7))throw new SDKError(ErrorCode[_0x58672c(0x2a9)],_0x58672c(0x392)+_0x4fb0b7+_0x58672c(0x1ae));return _0x4fb0b7;})[a2_0x29f913(0x275)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x19b))[a2_0x29f913(0x29c)](a2_0x29f913(0x2b8))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x34e)](a2_0x29f913(0x136),'New\x20template\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x214),a2_0x29f913(0x12f))[a2_0x29f913(0x34e)](a2_0x29f913(0x262),a2_0x29f913(0x365))['option'](a2_0x29f913(0x250),'Plaintext\x20template\x20content')['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x29f913(0x337))[a2_0x29f913(0x29c)](a2_0x29f913(0x297))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x34e)](a2_0x29f913(0x376),'Skip\x20confirmation\x20prompt')[a2_0x29f913(0x275)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x215))[a2_0x29f913(0x29c)](a2_0x29f913(0x1eb)),workspaceListAction=async(_0x4a6487,_0x5887a8)=>{const _0x5e463a=a2_0x29f913,_0x4e9ba6=new EngageWorkspacesCommand(),_0x3d91c5=program[_0x5e463a(0x165)](),_0xb13ff8=await createTDXInstance(_0x3d91c5),_0xad33b4=await _0x4e9ba6[_0x5e463a(0x251)]({'options':{..._0x3d91c5,..._0x5887a8},'args':_0x4a6487?[_0x4a6487]:[],'tdx':_0xb13ff8});gracefulExit(_0xad33b4);};workspaceCmd['command'](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x286))[a2_0x29f913(0x275)](workspaceListAction),engageCmd[a2_0x29f913(0x1bf)]('workspaces\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x2bb))[a2_0x29f913(0x275)](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0x29f913(0x29c)]('Show\x20workspace\x20details')[a2_0x29f913(0x34e)](a2_0x29f913(0x2a1),a2_0x29f913(0x27d))[a2_0x29f913(0x275)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2a4))[a2_0x29f913(0x29c)](a2_0x29f913(0x18f))[a2_0x29f913(0x241)](a2_0x29f913(0x136),a2_0x29f913(0x2a2))['option'](a2_0x29f913(0x125),a2_0x29f913(0x218))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x29f913(0x1bf)]('update\x20<name-or-id>')[a2_0x29f913(0x29c)](a2_0x29f913(0x34c))[a2_0x29f913(0x34e)](a2_0x29f913(0x136),'New\x20workspace\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x125),a2_0x29f913(0x218))[a2_0x29f913(0x275)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')[a2_0x29f913(0x29c)](a2_0x29f913(0x37d))[a2_0x29f913(0x34e)]('--yes',a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2eb))[a2_0x29f913(0x29c)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x2d6))[a2_0x29f913(0x29c)](a2_0x29f913(0x1e1)),connectionListAction=async _0x31672c=>{const _0x44990a=a2_0x29f913,_0x160a5b=new ConnectionListCommand(),_0xc256fc=program[_0x44990a(0x165)](),_0x4027cf=await createTDXInstance(_0xc256fc),_0x41fe90=await _0x160a5b[_0x44990a(0x251)]({'options':{..._0xc256fc,..._0x31672c},'args':[],'tdx':_0x4027cf});gracefulExit(_0x41fe90);};connectionCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x347))[a2_0x29f913(0x29c)](a2_0x29f913(0x1bc))[a2_0x29f913(0x275)](connectionListAction),program['command'](a2_0x29f913(0x2e0),{'hidden':!![]})['description'](a2_0x29f913(0x35d))[a2_0x29f913(0x275)](connectionListAction),connectionCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2dc))['description'](a2_0x29f913(0x1ce))[a2_0x29f913(0x275)](async(_0x3bd6f0,_0x2bb7ec)=>{const _0x4b2549=a2_0x29f913,_0x456ea4=new ConnectionShowCommand(),_0x359ed2=program[_0x4b2549(0x165)](),_0x2da747=await createTDXInstance(_0x359ed2),_0x53a5c4=await _0x456ea4['run']({'options':{..._0x359ed2,..._0x2bb7ec},'args':[_0x3bd6f0],'tdx':_0x2da747});gracefulExit(_0x53a5c4);}),connectionCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x17a))['description']('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')['action'](async(_0x21dd41,_0x59ca3e)=>{const _0x2c1213=a2_0x29f913,_0x4e4062=new ConnectionSchemaCommand(),_0x17fc18=program[_0x2c1213(0x165)](),_0x24a5d6=await createTDXInstance(_0x17fc18),_0x597085=await _0x4e4062[_0x2c1213(0x251)]({'options':{..._0x17fc18,..._0x59ca3e},'args':[_0x21dd41],'tdx':_0x24a5d6});gracefulExit(_0x597085);}),connectionCmd['command']('types')['description'](a2_0x29f913(0x393))[a2_0x29f913(0x275)](async _0xfc2108=>{const _0xd2f26c=a2_0x29f913,_0x2935a1=new ConnectionTypesCommand(),_0x438d8b=program[_0xd2f26c(0x165)](),_0x4dc6bb=await createTDXInstance(_0x438d8b),_0x30f8cc=await _0x2935a1[_0xd2f26c(0x251)]({'options':{..._0x438d8b,..._0xfc2108},'args':[],'tdx':_0x4dc6bb});gracefulExit(_0x30f8cc);}),connectionCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2c5))[a2_0x29f913(0x29c)](a2_0x29f913(0x309))['action'](async(_0x294c57,_0x41bbf8)=>{const _0xe58c8e=a2_0x29f913,_0x3cc7cb=new ConnectionSettingsCommand(),_0x219188=program['opts'](),_0x15911a=await createTDXInstance(_0x219188),_0x41557a=await _0x3cc7cb[_0xe58c8e(0x251)]({'options':{..._0x219188,..._0x41bbf8},'args':[_0x294c57],'tdx':_0x15911a});gracefulExit(_0x41557a);});const journeyCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x1cc))[a2_0x29f913(0x29c)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x3935e2,_0x2c493d)=>{const _0x2f0f9b=a2_0x29f913,_0x580717=new JourneyListCommand(),_0x2601ba=program[_0x2f0f9b(0x165)](),_0xd396c8=await createTDXInstance(_0x2601ba),_0x76f292=await _0x580717[_0x2f0f9b(0x251)]({'options':{..._0x2601ba,..._0x2c493d},'args':_0x3935e2?[_0x3935e2]:[],'tdx':_0xd396c8});gracefulExit(_0x76f292);};journeyCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x20a))[a2_0x29f913(0x275)](journeyListAction),journeyCmd[a2_0x29f913(0x1bf)]('view\x20<name-or-path>')[a2_0x29f913(0x29c)]('Show\x20journey\x20details')[a2_0x29f913(0x34e)](a2_0x29f913(0x2de),'Open\x20journey\x20in\x20web\x20browser')[a2_0x29f913(0x34e)]('--include-stats','Include\x20execution\x20statistics')[a2_0x29f913(0x275)](async(_0x3d4968,_0xf79ad4)=>{const _0x1f74d2=a2_0x29f913,_0x1b413b=new JourneyViewCommand(),_0x1cb748=program[_0x1f74d2(0x165)](),_0x598b14=await createTDXInstance(_0x1cb748),_0x3a6986=await _0x1b413b[_0x1f74d2(0x251)]({'options':{..._0x1cb748,..._0xf79ad4},'args':[_0x3d4968],'tdx':_0x598b14});gracefulExit(_0x3a6986);}),journeyCmd['command'](a2_0x29f913(0x17b))[a2_0x29f913(0x29c)](a2_0x29f913(0x1e9))[a2_0x29f913(0x34e)](a2_0x29f913(0x198),a2_0x29f913(0x21e))[a2_0x29f913(0x275)](async(_0x27babe,_0xae3fdb)=>{const _0x29ae67=a2_0x29f913,_0x2cc6ab=new JourneyStatsCommand(),_0x37f38e=program['opts'](),_0x456bc7=await createTDXInstance(_0x37f38e),_0x1f75ce=await _0x2cc6ab[_0x29ae67(0x251)]({'options':{..._0x37f38e,..._0xae3fdb},'args':[_0x27babe],'tdx':_0x456bc7});gracefulExit(_0x1f75ce);}),journeyCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x269))[a2_0x29f913(0x29c)](a2_0x29f913(0x24a))[a2_0x29f913(0x275)](async(_0xcc7a26,_0x2eb706)=>{const _0xeae4e2=a2_0x29f913,_0x68fb8d=new JourneyPauseCommand(),_0x1afd1b=program[_0xeae4e2(0x165)](),_0x16efa5=await createTDXInstance(_0x1afd1b),_0x3871cf=await _0x68fb8d[_0xeae4e2(0x251)]({'options':{..._0x1afd1b,..._0x2eb706},'args':[_0xcc7a26],'tdx':_0x16efa5});gracefulExit(_0x3871cf);}),journeyCmd['command'](a2_0x29f913(0x266))[a2_0x29f913(0x29c)]('Resume\x20a\x20paused\x20journey')[a2_0x29f913(0x275)](async(_0x42da31,_0x13760a)=>{const _0x226c4b=a2_0x29f913,_0x3a0829=new JourneyResumeCommand(),_0x472cca=program[_0x226c4b(0x165)](),_0x2681fb=await createTDXInstance(_0x472cca),_0x5a619b=await _0x3a0829['run']({'options':{..._0x472cca,..._0x13760a},'args':[_0x42da31],'tdx':_0x2681fb});gracefulExit(_0x5a619b);}),journeyCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ea))[a2_0x29f913(0x29c)](a2_0x29f913(0x1cb))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),'Skip\x20confirmation\x20prompt')[a2_0x29f913(0x34e)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x29f913(0x275)](async(_0x50882f,_0x168b49)=>{const _0x4fc09d=a2_0x29f913,_0x745e94=new JourneyPullCommand(),_0x181cd2=program['opts'](),_0x4e4b25=await createTDXInstance(_0x181cd2),_0x52b33f=await _0x745e94[_0x4fc09d(0x251)]({'options':{..._0x181cd2,..._0x168b49},'args':_0x50882f?[_0x50882f]:[],'tdx':_0x4e4b25});gracefulExit(_0x52b33f);}),journeyCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x332))[a2_0x29f913(0x29c)](a2_0x29f913(0x1a7))[a2_0x29f913(0x275)](async(_0x23a526,_0x5ad455)=>{const _0x46fdce=a2_0x29f913,_0x4d843d=new JourneyPushCommand(),_0x5138eb=program[_0x46fdce(0x165)](),_0x58dce5=await createTDXInstance(_0x5138eb),_0x59d148=await _0x4d843d[_0x46fdce(0x251)]({'options':{..._0x5138eb,..._0x5ad455},'args':_0x23a526?[_0x23a526]:[],'tdx':_0x58dce5});gracefulExit(_0x59d148);}),journeyCmd['command'](a2_0x29f913(0x356))[a2_0x29f913(0x29c)]('Validate\x20journey\x20YAML\x20files\x20locally')[a2_0x29f913(0x275)](async(_0xe8f37a,_0x4b3b83)=>{const _0x830716=new JourneyValidateCommand(),_0x148628=program['opts'](),_0x1dfa7d=await createTDXInstance(_0x148628),_0x3b51a0=await _0x830716['run']({'options':{..._0x148628,..._0x4b3b83},'args':_0xe8f37a?[_0xe8f37a]:[],'tdx':_0x1dfa7d});gracefulExit(_0x3b51a0);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x268))[a2_0x29f913(0x29c)]('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x29f913(0x275)](journeyListAction);const agentSyncCmd=program[a2_0x29f913(0x1bf)]('agent')[a2_0x29f913(0x29c)](a2_0x29f913(0x36a));agentSyncCmd[a2_0x29f913(0x1bf)]('pull\x20[project]\x20[agent-name]')[a2_0x29f913(0x29c)](a2_0x29f913(0x335))[a2_0x29f913(0x34e)](a2_0x29f913(0x360),a2_0x29f913(0x161))[a2_0x29f913(0x34e)]('-f,\x20--force',a2_0x29f913(0x372))[a2_0x29f913(0x275)](async(_0x2d0da1,_0x458c79,_0x50309c)=>{const _0x53c470=a2_0x29f913,_0x2eeb47=new AgentPullCommand(),_0x4cb856=program[_0x53c470(0x165)](),_0x41757f=await createTDXInstance(_0x4cb856),_0x5a9952=[];if(_0x2d0da1)_0x5a9952[_0x53c470(0x25d)](_0x2d0da1);if(_0x458c79)_0x5a9952[_0x53c470(0x25d)](_0x458c79);const _0x225e1b=await _0x2eeb47[_0x53c470(0x251)]({'options':{..._0x4cb856,..._0x50309c},'args':_0x5a9952,'tdx':_0x41757f});gracefulExit(_0x225e1b);}),agentSyncCmd['command'](a2_0x29f913(0x137))[a2_0x29f913(0x29c)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x29f913(0x34e)](a2_0x29f913(0x32d),a2_0x29f913(0x1a2))[a2_0x29f913(0x275)](async(_0x108b7b,_0x45c782)=>{const _0x364960=a2_0x29f913,_0x2a4f18=new AgentPushCommand(),_0x14517e=program[_0x364960(0x165)](),_0x559857=await createTDXInstance(_0x14517e),_0x274bf7=await _0x2a4f18[_0x364960(0x251)]({'options':{..._0x14517e,..._0x45c782},'args':_0x108b7b?[_0x108b7b]:[],'tdx':_0x559857});gracefulExit(_0x274bf7);}),agentSyncCmd['command'](a2_0x29f913(0x2f4))[a2_0x29f913(0x29c)](a2_0x29f913(0x1b1))['option'](a2_0x29f913(0x338),a2_0x29f913(0x130))[a2_0x29f913(0x275)](async(_0x594cb6,_0x22f04d)=>{const _0x531b7f=a2_0x29f913,_0x35927e=new AgentCloneCommand(),_0x6eec4=program[_0x531b7f(0x165)](),_0x5d0ab1=await createTDXInstance(_0x6eec4),_0x51020c=await _0x35927e['run']({'options':{..._0x6eec4,..._0x22f04d},'args':_0x594cb6?[_0x594cb6]:[],'tdx':_0x5d0ab1});gracefulExit(_0x51020c);}),agentSyncCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x342))[a2_0x29f913(0x29c)](a2_0x29f913(0x317))[a2_0x29f913(0x34e)](a2_0x29f913(0x2f0),a2_0x29f913(0x259))['option']('--tags\x20<tags>',a2_0x29f913(0x37f))[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x381))['option'](a2_0x29f913(0x29d),a2_0x29f913(0x16c))['option'](a2_0x29f913(0x2c7),a2_0x29f913(0x15c))[a2_0x29f913(0x275)](async(_0x4db903,_0xb0221b)=>{const _0x9e525f=a2_0x29f913,_0x523841=new AgentTestCommand(),_0x57cce7=program[_0x9e525f(0x165)](),_0xd38283=await createTDXInstance(_0x57cce7),_0x49f125=await _0x523841[_0x9e525f(0x251)]({'options':{..._0x57cce7,..._0xb0221b},'args':_0x4db903?[_0x4db903]:[],'tdx':_0xd38283});gracefulExit(_0x49f125);}),agentSyncCmd[a2_0x29f913(0x1bf)]('list\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x1ad))[a2_0x29f913(0x275)](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')[a2_0x29f913(0x29c)]('Show\x20agent\x20details')[a2_0x29f913(0x275)](async(_0x29292c,_0x49c2f4)=>{const _0x3ffd3d=a2_0x29f913,_0x1195b4=new LLMAgentShowCommand(),_0x3d63b2=program['opts'](),_0x22e13c=await createTDXInstance(_0x3d63b2),_0x33595f=await _0x1195b4[_0x3ffd3d(0x251)]({'options':{..._0x3d63b2,..._0x49c2f4},'args':[_0x29292c],'tdx':_0x22e13c});gracefulExit(_0x33595f);}),agentSyncCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1a0))[a2_0x29f913(0x29c)](a2_0x29f913(0x383))[a2_0x29f913(0x34e)](a2_0x29f913(0x352),a2_0x29f913(0x1e6))[a2_0x29f913(0x34e)](a2_0x29f913(0x305),a2_0x29f913(0x34a),a2_0x29f913(0x204))[a2_0x29f913(0x34e)](a2_0x29f913(0x13e),a2_0x29f913(0x1c6))[a2_0x29f913(0x34e)](a2_0x29f913(0x122),a2_0x29f913(0x18b),'4')['option']('--temperature\x20<n>',a2_0x29f913(0x388),a2_0x29f913(0x17f))[a2_0x29f913(0x275)](async(_0xb867fa,_0x29e751)=>{const _0x10ab0d=a2_0x29f913,_0x1ab5c4=new LLMAgentCreateCommand(),_0x1ef74c=program[_0x10ab0d(0x165)](),_0x5c314b=await createTDXInstance(_0x1ef74c),_0x518605=await _0x1ab5c4[_0x10ab0d(0x251)]({'options':{..._0x1ef74c,..._0x29e751},'args':[_0xb867fa],'tdx':_0x5c314b});gracefulExit(_0x518605);}),agentSyncCmd['command'](a2_0x29f913(0x133))[a2_0x29f913(0x29c)](a2_0x29f913(0x2bd))[a2_0x29f913(0x34e)](a2_0x29f913(0x196),a2_0x29f913(0x2ac))['option'](a2_0x29f913(0x1c7),a2_0x29f913(0x32b))[a2_0x29f913(0x34e)](a2_0x29f913(0x24f),a2_0x29f913(0x1d7))[a2_0x29f913(0x34e)]('--starter-message\x20<text>',a2_0x29f913(0x1c6))[a2_0x29f913(0x275)](async(_0x567270,_0xbd559a)=>{const _0x545108=a2_0x29f913,_0x5de1c3=new LLMAgentUpdateCommand(),_0x519ca0=program[_0x545108(0x165)](),_0x56dbe2=await createTDXInstance(_0x519ca0),_0x5038c5=await _0x5de1c3[_0x545108(0x251)]({'options':{..._0x519ca0,..._0xbd559a},'args':[_0x567270],'tdx':_0x56dbe2});gracefulExit(_0x5038c5);}),agentSyncCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x33f))[a2_0x29f913(0x29c)]('Delete\x20an\x20agent')[a2_0x29f913(0x275)](async(_0x4b2541,_0x49a327)=>{const _0x4a2609=new LLMAgentDeleteCommand(),_0x536559=program['opts'](),_0x1dd825=await createTDXInstance(_0x536559),_0x436f7b=await _0x4a2609['run']({'options':{..._0x536559,..._0x49a327},'args':[_0x4b2541],'tdx':_0x1dd825});gracefulExit(_0x436f7b);});export{program};export function runCLI(){const _0x141976=a2_0x29f913,_0x35fdbc=!process[_0x141976(0x205)][_0x141976(0x36d)](0x2)[_0x141976(0x351)];showBriefHelp=_0x35fdbc,program['parse'](process[_0x141976(0x205)]);_0x35fdbc&&program[_0x141976(0x2d4)]();if(process[_0x141976(0x2b4)][_0x141976(0x156)]&&process[_0x141976(0x205)]['length']>0x2&&!isDevVersion()){const _0x30768c=loadReleaseChannel();checkForUpdate(currentVersion,_0x30768c)[_0x141976(0x315)](_0x48319a=>{_0x48319a&&displayUpdateNotification(_0x48319a);})[_0x141976(0x13f)](()=>{});}}