@treasuredata/tdx 0.7.4 → 0.8.1

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 (205) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.d.ts +2 -2
  4. package/dist/cli-categories.js +1 -1
  5. package/dist/cli-categories.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +1 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/client/cdp-api-client.d.ts +40 -1
  10. package/dist/client/cdp-api-client.d.ts.map +1 -1
  11. package/dist/client/cdp-api-client.js +1 -1
  12. package/dist/client/cdp-api-client.js.map +1 -1
  13. package/dist/client/engage-api-client.js +1 -1
  14. package/dist/client/http-client.js +1 -1
  15. package/dist/client/llm-api-client.js +1 -1
  16. package/dist/client/rate-limiter.js +1 -1
  17. package/dist/client/td-api-client.d.ts +21 -1
  18. package/dist/client/td-api-client.d.ts.map +1 -1
  19. package/dist/client/td-api-client.js +1 -1
  20. package/dist/client/td-api-client.js.map +1 -1
  21. package/dist/client/trino-api-client.js +1 -1
  22. package/dist/client/workflow-client.js +1 -1
  23. package/dist/commands/activations.js +1 -1
  24. package/dist/commands/api-command.js +1 -1
  25. package/dist/commands/auth-command.js +1 -1
  26. package/dist/commands/chat-command.js +1 -1
  27. package/dist/commands/claude-command.d.ts.map +1 -1
  28. package/dist/commands/claude-command.js +1 -1
  29. package/dist/commands/claude-command.js.map +1 -1
  30. package/dist/commands/claude-statusline-command.d.ts +1 -1
  31. package/dist/commands/claude-statusline-command.d.ts.map +1 -1
  32. package/dist/commands/claude-statusline-command.js +1 -1
  33. package/dist/commands/claude-statusline-command.js.map +1 -1
  34. package/dist/commands/claude-usage-command.js +1 -1
  35. package/dist/commands/command.js +1 -1
  36. package/dist/commands/connection-command.d.ts +28 -0
  37. package/dist/commands/connection-command.d.ts.map +1 -0
  38. package/dist/commands/connection-command.js +1 -0
  39. package/dist/commands/connection-command.js.map +1 -0
  40. package/dist/commands/context-command.js +1 -1
  41. package/dist/commands/databases.js +1 -1
  42. package/dist/commands/describe.js +1 -1
  43. package/dist/commands/engage-command.js +1 -1
  44. package/dist/commands/job-command.js +1 -1
  45. package/dist/commands/llm-command.js +1 -1
  46. package/dist/commands/llm-proxy.js +1 -1
  47. package/dist/commands/parent-segment-command.d.ts +16 -5
  48. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  49. package/dist/commands/parent-segment-command.js +1 -1
  50. package/dist/commands/parent-segment-command.js.map +1 -1
  51. package/dist/commands/profiles-command.js +1 -1
  52. package/dist/commands/query-command.js +1 -1
  53. package/dist/commands/segment-command.d.ts +35 -22
  54. package/dist/commands/segment-command.d.ts.map +1 -1
  55. package/dist/commands/segment-command.js +1 -1
  56. package/dist/commands/segment-command.js.map +1 -1
  57. package/dist/commands/segment-create-command.d.ts +2 -0
  58. package/dist/commands/segment-create-command.d.ts.map +1 -1
  59. package/dist/commands/segment-create-command.js +1 -1
  60. package/dist/commands/segment-create-command.js.map +1 -1
  61. package/dist/commands/segment-fields-command.js +1 -1
  62. package/dist/commands/segment-pull-command.d.ts +21 -0
  63. package/dist/commands/segment-pull-command.d.ts.map +1 -0
  64. package/dist/commands/segment-pull-command.js +1 -0
  65. package/dist/commands/segment-pull-command.js.map +1 -0
  66. package/dist/commands/segment-push-command.d.ts +21 -0
  67. package/dist/commands/segment-push-command.d.ts.map +1 -0
  68. package/dist/commands/segment-push-command.js +1 -0
  69. package/dist/commands/segment-push-command.js.map +1 -0
  70. package/dist/commands/segment-update-command.d.ts +2 -0
  71. package/dist/commands/segment-update-command.d.ts.map +1 -1
  72. package/dist/commands/segment-update-command.js +1 -1
  73. package/dist/commands/segment-update-command.js.map +1 -1
  74. package/dist/commands/segment-use-command.d.ts.map +1 -1
  75. package/dist/commands/segment-use-command.js +1 -1
  76. package/dist/commands/segment-use-command.js.map +1 -1
  77. package/dist/commands/segments.d.ts +11 -19
  78. package/dist/commands/segments.d.ts.map +1 -1
  79. package/dist/commands/segments.js +1 -1
  80. package/dist/commands/segments.js.map +1 -1
  81. package/dist/commands/show.js +1 -1
  82. package/dist/commands/tables.js +1 -1
  83. package/dist/commands/use-command.js +1 -1
  84. package/dist/commands/user-command.d.ts +23 -0
  85. package/dist/commands/user-command.d.ts.map +1 -0
  86. package/dist/commands/user-command.js +1 -0
  87. package/dist/commands/user-command.js.map +1 -0
  88. package/dist/commands/workflow-command.js +1 -1
  89. package/dist/core/auth.js +1 -1
  90. package/dist/core/config.d.ts +26 -0
  91. package/dist/core/config.d.ts.map +1 -1
  92. package/dist/core/config.js +1 -1
  93. package/dist/core/config.js.map +1 -1
  94. package/dist/core/connection-cache.d.ts +29 -0
  95. package/dist/core/connection-cache.d.ts.map +1 -0
  96. package/dist/core/connection-cache.js +1 -0
  97. package/dist/core/connection-cache.js.map +1 -0
  98. package/dist/core/credential-cache.js +1 -1
  99. package/dist/core/global-context.js +1 -1
  100. package/dist/core/keychain.js +1 -1
  101. package/dist/core/profile.js +1 -1
  102. package/dist/core/project-config.js +1 -1
  103. package/dist/core/session.js +1 -1
  104. package/dist/core/user-cache.d.ts +29 -0
  105. package/dist/core/user-cache.d.ts.map +1 -0
  106. package/dist/core/user-cache.js +1 -0
  107. package/dist/core/user-cache.js.map +1 -0
  108. package/dist/index.js +1 -1
  109. package/dist/proxy/anthropic-adapter.js +1 -1
  110. package/dist/proxy/claude-usage-tracker.js +1 -1
  111. package/dist/proxy/context-signature.js +1 -1
  112. package/dist/proxy/conversation-utils.js +1 -1
  113. package/dist/proxy/server.js +1 -1
  114. package/dist/proxy/session-cache.js +1 -1
  115. package/dist/sdk/api.js +1 -1
  116. package/dist/sdk/connection.d.ts +116 -0
  117. package/dist/sdk/connection.d.ts.map +1 -0
  118. package/dist/sdk/connection.js +1 -0
  119. package/dist/sdk/connection.js.map +1 -0
  120. package/dist/sdk/engage.js +1 -1
  121. package/dist/sdk/errors.d.ts +6 -0
  122. package/dist/sdk/errors.d.ts.map +1 -1
  123. package/dist/sdk/errors.js +1 -1
  124. package/dist/sdk/errors.js.map +1 -1
  125. package/dist/sdk/index.d.ts +13 -0
  126. package/dist/sdk/index.d.ts.map +1 -1
  127. package/dist/sdk/index.js +1 -1
  128. package/dist/sdk/index.js.map +1 -1
  129. package/dist/sdk/job.js +1 -1
  130. package/dist/sdk/llm.js +1 -1
  131. package/dist/sdk/query.js +1 -1
  132. package/dist/sdk/segment/child-segment-yaml.d.ts +288 -0
  133. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -0
  134. package/dist/sdk/segment/child-segment-yaml.js +1 -0
  135. package/dist/sdk/segment/child-segment-yaml.js.map +1 -0
  136. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  137. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  138. package/dist/sdk/segment.d.ts +87 -1
  139. package/dist/sdk/segment.d.ts.map +1 -1
  140. package/dist/sdk/segment.js +1 -1
  141. package/dist/sdk/segment.js.map +1 -1
  142. package/dist/sdk/user.d.ts +75 -0
  143. package/dist/sdk/user.d.ts.map +1 -0
  144. package/dist/sdk/user.js +1 -0
  145. package/dist/sdk/user.js.map +1 -0
  146. package/dist/sdk/workflow.js +1 -1
  147. package/dist/types/cdp.d.ts +90 -15
  148. package/dist/types/cdp.d.ts.map +1 -1
  149. package/dist/types/connection.d.ts +37 -0
  150. package/dist/types/connection.d.ts.map +1 -0
  151. package/dist/types/connection.js +1 -0
  152. package/dist/types/connection.js.map +1 -0
  153. package/dist/types/endpoints.js +1 -1
  154. package/dist/types/index.d.ts +23 -2
  155. package/dist/types/index.d.ts.map +1 -1
  156. package/dist/types/index.js +1 -1
  157. package/dist/types/index.js.map +1 -1
  158. package/dist/utils/agent-ref-parser.js +1 -1
  159. package/dist/utils/async.d.ts +13 -0
  160. package/dist/utils/async.d.ts.map +1 -0
  161. package/dist/utils/async.js +1 -0
  162. package/dist/utils/async.js.map +1 -0
  163. package/dist/utils/chat-cache.js +1 -1
  164. package/dist/utils/colors.js +1 -1
  165. package/dist/utils/command-output.d.ts +24 -3
  166. package/dist/utils/command-output.d.ts.map +1 -1
  167. package/dist/utils/command-output.js +1 -1
  168. package/dist/utils/command-output.js.map +1 -1
  169. package/dist/utils/constants.js +1 -1
  170. package/dist/utils/diff.js +1 -1
  171. package/dist/utils/fields-display.js +1 -1
  172. package/dist/utils/file-permissions.js +1 -1
  173. package/dist/utils/format-detector.js +1 -1
  174. package/dist/utils/formatters.js +1 -1
  175. package/dist/utils/json-loader.js +1 -1
  176. package/dist/utils/llm-backup-utils.js +1 -1
  177. package/dist/utils/model-aliases.js +1 -1
  178. package/dist/utils/model-factors.js +1 -1
  179. package/dist/utils/option-validation.js +1 -1
  180. package/dist/utils/port.js +1 -1
  181. package/dist/utils/process.js +1 -1
  182. package/dist/utils/prompt.js +1 -1
  183. package/dist/utils/segment-path-parser.d.ts +52 -0
  184. package/dist/utils/segment-path-parser.d.ts.map +1 -1
  185. package/dist/utils/segment-path-parser.js +1 -1
  186. package/dist/utils/segment-path-parser.js.map +1 -1
  187. package/dist/utils/segment-ref-parser.js +1 -1
  188. package/dist/utils/spinner.js +1 -1
  189. package/dist/utils/sql-parser.js +1 -1
  190. package/dist/utils/sse-parser.js +1 -1
  191. package/dist/utils/string-utils.js +1 -1
  192. package/dist/utils/table-ref-parser.js +1 -1
  193. package/dist/utils/tdx-config.d.ts +103 -0
  194. package/dist/utils/tdx-config.d.ts.map +1 -0
  195. package/dist/utils/tdx-config.js +1 -0
  196. package/dist/utils/tdx-config.js.map +1 -0
  197. package/dist/utils/tdx-logger.js +1 -1
  198. package/dist/utils/tree-formatter.js +1 -1
  199. package/dist/utils/version-check.js +1 -1
  200. package/dist/utils/workflow-utils.js +1 -1
  201. package/package.json +2 -2
  202. package/dist/commands/segment-pwd-command.d.ts +0 -21
  203. package/dist/commands/segment-pwd-command.d.ts.map +0 -1
  204. package/dist/commands/segment-pwd-command.js +0 -1
  205. package/dist/commands/segment-pwd-command.js.map +0 -1
package/dist/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x4218db,_0xa41829){var _0x463b6c=a0_0x1887,_0x22964e=_0x4218db();while(!![]){try{var _0x3a5d21=-parseInt(_0x463b6c(0xea))/0x1*(-parseInt(_0x463b6c(0xee))/0x2)+parseInt(_0x463b6c(0xeb))/0x3+-parseInt(_0x463b6c(0xec))/0x4+-parseInt(_0x463b6c(0xf1))/0x5*(-parseInt(_0x463b6c(0xe9))/0x6)+parseInt(_0x463b6c(0xed))/0x7+-parseInt(_0x463b6c(0xf0))/0x8*(parseInt(_0x463b6c(0xf2))/0x9)+-parseInt(_0x463b6c(0xf3))/0xa*(parseInt(_0x463b6c(0xef))/0xb);if(_0x3a5d21===_0xa41829)break;else _0x22964e['push'](_0x22964e['shift']());}catch(_0x262ac4){_0x22964e['push'](_0x22964e['shift']());}}}(a0_0xc6e1,0xad3ce));function a0_0x1887(_0x5a2f9d,_0x3dcfa7){var _0xc6e116=a0_0xc6e1();return a0_0x1887=function(_0x1887ba,_0x2b46f2){_0x1887ba=_0x1887ba-0xe9;var _0x263212=_0xc6e116[_0x1887ba];return _0x263212;},a0_0x1887(_0x5a2f9d,_0x3dcfa7);}import{runCLI}from'./cli.js';runCLI();function a0_0xc6e1(){var _0x145a95=['2705488lBnCzO','7146104jiQLaG','80ODfwRK','1771DsyfFd','96eXXqUZ','120730JAhsYS','256410SCEfWM','114630sMgrnI','186xfoNXv','16682CAyuiK','3410097uzFUjE'];a0_0xc6e1=function(){return _0x145a95;};return a0_0xc6e1();}
2
+ function a0_0x1ee4(_0x17af14,_0x48806e){_0x17af14=_0x17af14-0x80;var _0x1dc083=a0_0x1dc0();var _0x1ee4be=_0x1dc083[_0x17af14];return _0x1ee4be;}(function(_0x167c26,_0x59f5c2){var _0x4c0c15=a0_0x1ee4,_0x3ef0a7=_0x167c26();while(!![]){try{var _0x56f352=parseInt(_0x4c0c15(0x83))/0x1*(parseInt(_0x4c0c15(0x85))/0x2)+-parseInt(_0x4c0c15(0x80))/0x3+-parseInt(_0x4c0c15(0x82))/0x4+parseInt(_0x4c0c15(0x88))/0x5*(parseInt(_0x4c0c15(0x89))/0x6)+-parseInt(_0x4c0c15(0x87))/0x7*(parseInt(_0x4c0c15(0x86))/0x8)+-parseInt(_0x4c0c15(0x84))/0x9*(parseInt(_0x4c0c15(0x8b))/0xa)+parseInt(_0x4c0c15(0x8a))/0xb*(parseInt(_0x4c0c15(0x81))/0xc);if(_0x56f352===_0x59f5c2)break;else _0x3ef0a7['push'](_0x3ef0a7['shift']());}catch(_0x5a771f){_0x3ef0a7['push'](_0x3ef0a7['shift']());}}}(a0_0x1dc0,0x4a2de));import{runCLI}from'./cli.js';runCLI();function a0_0x1dc0(){var _0x25ed40=['9kGtzpu','4rDlEwf','442176TcUdnM','63bcZAkN','155bZGFhz','115284YDyUCw','5555kwGBtj','6019170wRhePV','1511412wXSZns','25596gqrnnb','1218400jfWEYX','269404KuBWFp'];a0_0x1dc0=function(){return _0x25ed40;};return a0_0x1dc0();}
@@ -1,4 +1,4 @@
1
1
  {
2
- "gitRevision": "3c3a717",
3
- "buildTime": "2025-12-05 20:40:32+0000"
2
+ "gitRevision": "7290c66",
3
+ "buildTime": "2025-12-09 05:34:06+0000"
4
4
  }
@@ -16,7 +16,7 @@ export declare const COMMAND_CATEGORIES: readonly [{
16
16
  }, {
17
17
  readonly name: "CDP";
18
18
  readonly colorFn: import("chalk").ChalkInstance;
19
- readonly commands: readonly ["segment", "parent-segment", "activations", "engage"];
19
+ readonly commands: readonly ["segment", "parent-segment", "activations", "engage", "connection"];
20
20
  }, {
21
21
  readonly name: "AI";
22
22
  readonly colorFn: import("chalk").ChalkInstance;
@@ -24,7 +24,7 @@ export declare const COMMAND_CATEGORIES: readonly [{
24
24
  }, {
25
25
  readonly name: "Context";
26
26
  readonly colorFn: import("chalk").ChalkInstance;
27
- readonly commands: readonly ["context", "use", "profiles", "auth"];
27
+ readonly commands: readonly ["context", "use", "profiles", "auth", "user", "users"];
28
28
  }, {
29
29
  readonly name: "Utilities";
30
30
  readonly colorFn: import("chalk").ChalkInstance;
@@ -1 +1 @@
1
- const a1_0xcc3da1=a1_0x2ece;function a1_0x1280(){const _0x4f241a=['184nhlUip','magenta','context','422790Dhziih','3969424rfKJZR','1829790gjNHnr','profiles','4YfbWSE','query','show','2780211rdiIIn','claude','chats','workflow','database','blue','api','describe','engage','use','activations','table','Utilities','10443087AoAADG','3508716gjWeCu','green','20btWCGZ','Context','cyan','238567ahQEba'];a1_0x1280=function(){return _0x4f241a;};return a1_0x1280();}function a1_0x2ece(_0x4548a9,_0x559b19){const _0x12800d=a1_0x1280();return a1_0x2ece=function(_0x2eceb0,_0x46ace3){_0x2eceb0=_0x2eceb0-0xd3;let _0x571415=_0x12800d[_0x2eceb0];return _0x571415;},a1_0x2ece(_0x4548a9,_0x559b19);}(function(_0x4bba4a,_0x17214e){const _0x5b768e=a1_0x2ece,_0x3435f1=_0x4bba4a();while(!![]){try{const _0x1471fa=-parseInt(_0x5b768e(0xe6))/0x1*(parseInt(_0x5b768e(0xe2))/0x2)+-parseInt(_0x5b768e(0xe9))/0x3+parseInt(_0x5b768e(0xe3))/0x4+parseInt(_0x5b768e(0xe4))/0x5+-parseInt(_0x5b768e(0xd9))/0x6+parseInt(_0x5b768e(0xde))/0x7*(-parseInt(_0x5b768e(0xdf))/0x8)+parseInt(_0x5b768e(0xd8))/0x9*(parseInt(_0x5b768e(0xdb))/0xa);if(_0x1471fa===_0x17214e)break;else _0x3435f1['push'](_0x3435f1['shift']());}catch(_0x39f43a){_0x3435f1['push'](_0x3435f1['shift']());}}}(a1_0x1280,0x835b2));import a1_0x48b2da from'chalk';export const COMMAND_CATEGORIES=[{'name':'Data','colorFn':a1_0x48b2da[a1_0xcc3da1(0xee)],'commands':[a1_0xcc3da1(0xed),a1_0xcc3da1(0xd6),a1_0xcc3da1(0xe8),a1_0xcc3da1(0xf0),a1_0xcc3da1(0xe7),'job',a1_0xcc3da1(0xec)]},{'name':'CDP','colorFn':a1_0x48b2da[a1_0xcc3da1(0xe0)],'commands':['segment','parent-segment',a1_0xcc3da1(0xd5),a1_0xcc3da1(0xd3)]},{'name':'AI','colorFn':a1_0x48b2da[a1_0xcc3da1(0xdd)],'commands':['chat',a1_0xcc3da1(0xeb),'llm',a1_0xcc3da1(0xea)]},{'name':a1_0xcc3da1(0xdc),'colorFn':a1_0x48b2da['yellow'],'commands':[a1_0xcc3da1(0xe1),a1_0xcc3da1(0xd4),a1_0xcc3da1(0xe5),'auth']},{'name':a1_0xcc3da1(0xd7),'colorFn':a1_0x48b2da[a1_0xcc3da1(0xda)],'commands':[a1_0xcc3da1(0xef)]}];
1
+ const a1_0x14a2c9=a1_0x1d0f;(function(_0x267ff6,_0x381943){const _0x5a6857=a1_0x1d0f,_0x4408dc=_0x267ff6();while(!![]){try{const _0xf334a5=parseInt(_0x5a6857(0xda))/0x1*(-parseInt(_0x5a6857(0xec))/0x2)+parseInt(_0x5a6857(0xd9))/0x3*(parseInt(_0x5a6857(0xde))/0x4)+-parseInt(_0x5a6857(0xdf))/0x5*(parseInt(_0x5a6857(0xe9))/0x6)+-parseInt(_0x5a6857(0xcf))/0x7*(-parseInt(_0x5a6857(0xe6))/0x8)+parseInt(_0x5a6857(0xd3))/0x9+-parseInt(_0x5a6857(0xdc))/0xa+parseInt(_0x5a6857(0xe0))/0xb*(parseInt(_0x5a6857(0xd7))/0xc);if(_0xf334a5===_0x381943)break;else _0x4408dc['push'](_0x4408dc['shift']());}catch(_0x33731a){_0x4408dc['push'](_0x4408dc['shift']());}}}(a1_0x2c73,0x6704b));function a1_0x1d0f(_0x2525c8,_0x40b751){_0x2525c8=_0x2525c8-0xcf;const _0x2c73a0=a1_0x2c73();let _0x1d0f61=_0x2c73a0[_0x2525c8];return _0x1d0f61;}import a1_0x3659a3 from'chalk';function a1_0x2c73(){const _0x4ed05d=['user','4xszrrX','5PDyAhl','11edkkIe','job','query','Data','Context','parent-segment','17240FujXui','connection','api','3369774eWJHBA','green','show','33094LZKswo','table','cyan','yellow','use','workflow','CDP','llm','segment','chat','2128ddWOwC','Utilities','users','engage','57600UYxglG','chats','database','blue','13095708QGWjnH','profiles','616563tdEKJA','11tPhrEX','magenta','7927410EOpEvT'];a1_0x2c73=function(){return _0x4ed05d;};return a1_0x2c73();}export const COMMAND_CATEGORIES=[{'name':a1_0x14a2c9(0xe3),'colorFn':a1_0x3659a3[a1_0x14a2c9(0xd6)],'commands':[a1_0x14a2c9(0xd5),a1_0x14a2c9(0xed),a1_0x14a2c9(0xeb),'describe',a1_0x14a2c9(0xe2),a1_0x14a2c9(0xe1),a1_0x14a2c9(0xf1)]},{'name':a1_0x14a2c9(0xf2),'colorFn':a1_0x3659a3[a1_0x14a2c9(0xdb)],'commands':[a1_0x14a2c9(0xf4),a1_0x14a2c9(0xe5),'activations',a1_0x14a2c9(0xd2),a1_0x14a2c9(0xe7)]},{'name':'AI','colorFn':a1_0x3659a3[a1_0x14a2c9(0xee)],'commands':[a1_0x14a2c9(0xf5),a1_0x14a2c9(0xd4),a1_0x14a2c9(0xf3),'claude']},{'name':a1_0x14a2c9(0xe4),'colorFn':a1_0x3659a3[a1_0x14a2c9(0xef)],'commands':['context',a1_0x14a2c9(0xf0),a1_0x14a2c9(0xd8),'auth',a1_0x14a2c9(0xdd),a1_0x14a2c9(0xd1)]},{'name':a1_0x14a2c9(0xd0),'colorFn':a1_0x3659a3[a1_0x14a2c9(0xea)],'commands':[a1_0x14a2c9(0xe8)]}];
@@ -1 +1 @@
1
- {"version":3,"file":"cli-categories.js","sourceRoot":"","sources":["../src/cli-categories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC;KAChF;IACD;QACE,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,QAAQ,CAAC;KACjE;IACD;QACE,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC;KAC7C;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK,CAAC,MAAM;QACrB,QAAQ,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC;KACjD;IACD;QACE,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,QAAQ,EAAE,CAAC,KAAK,CAAC;KAClB;CACO,CAAC"}
1
+ {"version":3,"file":"cli-categories.js","sourceRoot":"","sources":["../src/cli-categories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC;KAChF;IACD;QACE,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,CAAC;KAC/E;IACD;QACE,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC;KAC7C;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK,CAAC,MAAM;QACrB,QAAQ,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;KAClE;IACD;QACE,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,QAAQ,EAAE,CAAC,KAAK,CAAC;KAClB;CACO,CAAC"}
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwJpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAq1E9B,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;;GAGG;AACH,wBAAgB,MAAM,IAAI,IAAI,CAwB7B"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2JpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AA09E9B,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;;GAGG;AACH,wBAAgB,MAAM,IAAI,IAAI,CAwB7B"}
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x3eb522=a2_0x1078;(function(_0x303723,_0x4d840c){const _0x336c11=a2_0x1078,_0xbde81b=_0x303723();while(!![]){try{const _0x2be20b=-parseInt(_0x336c11(0x1a8))/0x1*(-parseInt(_0x336c11(0x1db))/0x2)+parseInt(_0x336c11(0x2f1))/0x3*(parseInt(_0x336c11(0x319))/0x4)+parseInt(_0x336c11(0x17c))/0x5+-parseInt(_0x336c11(0x2ab))/0x6+-parseInt(_0x336c11(0x2d0))/0x7+parseInt(_0x336c11(0x257))/0x8*(parseInt(_0x336c11(0x224))/0x9)+parseInt(_0x336c11(0x2a9))/0xa*(-parseInt(_0x336c11(0x1cc))/0xb);if(_0x2be20b===_0x4d840c)break;else _0xbde81b['push'](_0xbde81b['shift']());}catch(_0x5e0573){_0xbde81b['push'](_0xbde81b['shift']());}}}(a2_0x15ac,0xea627));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';function a2_0x1078(_0x3ac3d7,_0x467cd7){const _0x15ace3=a2_0x15ac();return a2_0x1078=function(_0x10785d,_0xd785b5){_0x10785d=_0x10785d-0x11f;let _0x5abf13=_0x15ace3[_0x10785d];return _0x5abf13;},a2_0x1078(_0x3ac3d7,_0x467cd7);}import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentInfoCommand,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{SegmentUseCommand}from'./commands/segment-use-command.js';import{SegmentPwdCommand}from'./commands/segment-pwd-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta[a2_0x3eb522(0x2cc)]),__dirname=dirname(__filename),packageJson=JSON[a2_0x3eb522(0x2d5)](readFileSync(join(__dirname,a2_0x3eb522(0x16d)),a2_0x3eb522(0x2b5)));let buildInfo={};try{buildInfo=JSON[a2_0x3eb522(0x2d5)](readFileSync(join(__dirname,a2_0x3eb522(0x201)),'utf-8'));}catch{}if(process[a2_0x3eb522(0x174)]['includes'](a2_0x3eb522(0x1b7))){let versionOutput=a2_0x3eb522(0x12b)+packageJson[a2_0x3eb522(0x1b0)];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x3eb522(0x30a)]&&(versionOutput+=a2_0x3eb522(0x234)+buildInfo[a2_0x3eb522(0x30a)]),console[a2_0x3eb522(0x141)](versionOutput),process[a2_0x3eb522(0x186)](0x0);}const program=new Command();let description=a2_0x3eb522(0x22c);buildInfo[a2_0x3eb522(0x1f5)]?description+=a2_0x3eb522(0x2a7)+packageJson[a2_0x3eb522(0x1b0)]+'\x20('+buildInfo[a2_0x3eb522(0x1f5)]+')':description+=',\x20version\x20'+packageJson[a2_0x3eb522(0x1b0)];program[a2_0x3eb522(0x23c)](a2_0x3eb522(0x25e))[a2_0x3eb522(0x27e)](description),program[a2_0x3eb522(0x163)](a2_0x3eb522(0x1de),a2_0x3eb522(0x23f))[a2_0x3eb522(0x163)](a2_0x3eb522(0x27b),a2_0x3eb522(0x212),a2_0x3eb522(0x13f))[a2_0x3eb522(0x163)](a2_0x3eb522(0x308),a2_0x3eb522(0x2f8))[a2_0x3eb522(0x163)](a2_0x3eb522(0x207),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x3eb522(0x163)](a2_0x3eb522(0x211),a2_0x3eb522(0x1e1))['option'](a2_0x3eb522(0x2fa),a2_0x3eb522(0x2a5))[a2_0x3eb522(0x163)]('--output\x20<file>',a2_0x3eb522(0x1da))[a2_0x3eb522(0x163)](a2_0x3eb522(0x14a),a2_0x3eb522(0x20b))[a2_0x3eb522(0x163)]('--color',a2_0x3eb522(0x1f2),![])[a2_0x3eb522(0x163)](a2_0x3eb522(0x15c),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x3eb522(0x163)](a2_0x3eb522(0x306),a2_0x3eb522(0x137),![])[a2_0x3eb522(0x163)](a2_0x3eb522(0x182),a2_0x3eb522(0x314))[a2_0x3eb522(0x163)]('--trace',a2_0x3eb522(0x129))[a2_0x3eb522(0x163)](a2_0x3eb522(0x23e),a2_0x3eb522(0x1c5),'30')[a2_0x3eb522(0x163)](a2_0x3eb522(0x2be),a2_0x3eb522(0x1f4),![])[a2_0x3eb522(0x163)](a2_0x3eb522(0x1c2),a2_0x3eb522(0x28c),![])[a2_0x3eb522(0x163)]('--session\x20<id>',a2_0x3eb522(0x158))[a2_0x3eb522(0x163)](a2_0x3eb522(0x283),a2_0x3eb522(0x121))['option'](a2_0x3eb522(0x274),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3eb522(0x163)](a2_0x3eb522(0x305),a2_0x3eb522(0x122))[a2_0x3eb522(0x163)]('--llm-project\x20<name>',a2_0x3eb522(0x238)),program[a2_0x3eb522(0x216)]({'formatHelp':(_0x1113cf,_0x8c8d5)=>{const _0x17545b=a2_0x3eb522,_0x3c11dd=_0x8c8d5['padWidth'](_0x1113cf,_0x8c8d5),_0x1ec86e=0x2,_0x3a4617=0x2;function _0x2db76b(_0x17f0a6){const _0x4b2a86=a2_0x1078,_0x263eeb=_0x17f0a6;return!!(_0x263eeb['_hidden']||_0x263eeb[_0x4b2a86(0x1e3)]);}function _0x151e53(_0x4d8ae2,_0x1dacd1){const _0x58ac2a=a2_0x1078;if(_0x1dacd1){const _0x1968bb=''+_0x4d8ae2[_0x58ac2a(0x165)](_0x3c11dd+_0x3a4617)+_0x1dacd1;return _0x1968bb;}return _0x4d8ae2;}function _0x264160(_0x4e6da5){const _0x33b9e3=a2_0x1078;return _0x4e6da5[_0x33b9e3(0x249)]('\x0a')[_0x33b9e3(0x2a1)](/^/gm,'\x20'['repeat'](_0x1ec86e));}const _0x57a008=[];_0x57a008[_0x17545b(0x1cb)]('Usage:\x20'+_0x8c8d5['commandUsage'](_0x1113cf));const _0x1fd0f8=_0x8c8d5['commandDescription'](_0x1113cf);_0x1fd0f8&&(_0x57a008[_0x17545b(0x1cb)](''),_0x57a008[_0x17545b(0x1cb)](_0x1fd0f8));const _0x3445c7=_0x1113cf[_0x17545b(0x239)][_0x17545b(0x2f9)](_0x432165=>!_0x2db76b(_0x432165));if(_0x3445c7[_0x17545b(0x2ff)]>0x0){if(_0x1113cf[_0x17545b(0x23c)]()===_0x17545b(0x25e)){const _0x370833=_0x1113cf[_0x17545b(0x2af)](),_0x30ffbb=!_0x370833['noColor']&&process[_0x17545b(0x2c2)]['isTTY'],_0x46a499=COMMAND_CATEGORIES,_0x2139cd=(_0x343a1c,_0x53c795)=>_0x30ffbb?_0x53c795(_0x343a1c):_0x343a1c,_0x45e953=new Map();_0x3445c7[_0x17545b(0x128)](_0x345b81=>{const _0x472583=_0x17545b;_0x45e953[_0x472583(0x284)](_0x345b81['name'](),_0x345b81);}),_0x46a499[_0x17545b(0x128)](_0x385a65=>{const _0x1b2d55=_0x17545b,_0x268a85=_0x385a65[_0x1b2d55(0x239)]['flatMap'](_0x404bb4=>_0x45e953['get'](_0x404bb4)??[]);if(_0x268a85[_0x1b2d55(0x2ff)]>0x0){_0x57a008['push'](''),_0x57a008[_0x1b2d55(0x1cb)](_0x2139cd(_0x385a65['name']+':',_0x385a65[_0x1b2d55(0x28e)]));const _0x29e492=_0x268a85[_0x1b2d55(0x28b)](_0xd97bb5=>{const _0x12071b=_0x1b2d55,_0xe46cfb=_0x8c8d5['subcommandTerm'](_0xd97bb5),_0x4631a2=_0x8c8d5[_0x12071b(0x126)](_0xd97bb5);return _0x151e53(_0xe46cfb,_0x4631a2);});_0x57a008['push'](_0x264160(_0x29e492));}}),_0x57a008[_0x17545b(0x1cb)](''),_0x57a008[_0x17545b(0x1cb)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x34590e=_0x3445c7['map'](_0x4eddb4=>{const _0x4c7beb=_0x17545b,_0x1cbd2c=_0x8c8d5[_0x4c7beb(0x2e8)](_0x4eddb4),_0x2eb4b0=_0x8c8d5['subcommandDescription'](_0x4eddb4);return _0x151e53(_0x1cbd2c,_0x2eb4b0);});_0x57a008[_0x17545b(0x1cb)](''),_0x57a008[_0x17545b(0x1cb)]('Commands:'),_0x57a008[_0x17545b(0x1cb)](_0x264160(_0x34590e));}}const _0x26171f=_0x1113cf[_0x17545b(0x148)][_0x17545b(0x2f9)](_0xf78702=>!_0x2db76b(_0xf78702));if(_0x26171f['length']>0x0){const _0x2d7aa8=_0x26171f[_0x17545b(0x28b)](_0x28f188=>{const _0x53013e=_0x8c8d5['optionTerm'](_0x28f188),_0xd54594=_0x8c8d5['optionDescription'](_0x28f188);return _0x151e53(_0x53013e,_0xd54594);});_0x57a008['push'](''),_0x57a008[_0x17545b(0x1cb)](_0x17545b(0x18d)),_0x57a008[_0x17545b(0x1cb)](_0x264160(_0x2d7aa8));}const _0x1cbe1b=(_0x1113cf['registeredArguments']||[])[_0x17545b(0x2f9)](_0x5a8278=>!_0x2db76b(_0x5a8278));if(_0x1cbe1b[_0x17545b(0x2ff)]>0x0){const _0x8ce015=_0x1cbe1b[_0x17545b(0x28b)](_0x14a3e3=>{const _0x48f824=_0x17545b,_0x10a2db=_0x8c8d5[_0x48f824(0x24f)](_0x14a3e3),_0x3a12f8=_0x8c8d5['argumentDescription'](_0x14a3e3);return _0x151e53(_0x10a2db,_0x3a12f8);});_0x57a008[_0x17545b(0x1cb)](''),_0x57a008[_0x17545b(0x1cb)](_0x17545b(0x299)),_0x57a008[_0x17545b(0x1cb)](_0x264160(_0x8ce015));}return _0x57a008[_0x17545b(0x249)]('\x0a');},'subcommandTerm':_0x34e010=>{const _0x5d75af=a2_0x3eb522,_0x1da2ab=(_0x34e010[_0x5d75af(0x22d)]||[])[_0x5d75af(0x28b)](_0x592d88=>_0x592d88[_0x5d75af(0x267)]?'<'+_0x592d88[_0x5d75af(0x23c)]()+'>':'['+_0x592d88[_0x5d75af(0x23c)]()+']')[_0x5d75af(0x249)]('\x20'),_0x2344bb=_0x34e010[_0x5d75af(0x220)](),_0x11b898=_0x2344bb[_0x5d75af(0x2ff)]>0x0?_0x34e010[_0x5d75af(0x23c)]()+',\x20'+_0x2344bb[_0x5d75af(0x249)](',\x20'):_0x34e010[_0x5d75af(0x23c)]();return _0x1da2ab?_0x11b898+'\x20'+_0x1da2ab:_0x11b898;}}),program[a2_0x3eb522(0x30e)](a2_0x3eb522(0x25a),_0x2f2327=>{const _0x15ada5=a2_0x3eb522,_0x50efd5=_0x2f2327[_0x15ada5(0x2af)]();if(!_0x50efd5['format']){if(_0x50efd5[_0x15ada5(0x259)])_0x50efd5[_0x15ada5(0x2f4)]='json';else{if(_0x50efd5[_0x15ada5(0x1d7)])_0x50efd5[_0x15ada5(0x2f4)]=_0x15ada5(0x1d7);else _0x50efd5[_0x15ada5(0x136)]&&(_0x50efd5[_0x15ada5(0x2f4)]=_0x15ada5(0x136));}}_0x50efd5['in']&&!_0x50efd5['database']&&(_0x50efd5['database']=_0x50efd5['in']);if(_0x50efd5['trace'])_0x50efd5[_0x15ada5(0x2bb)]=LogLevel['TRACE'];else{if(_0x50efd5[_0x15ada5(0x2eb)])_0x50efd5[_0x15ada5(0x2bb)]=LogLevel[_0x15ada5(0x2c7)];else _0x50efd5['logLevel']===undefined&&(_0x50efd5[_0x15ada5(0x2bb)]=LogLevel['INFO']);}});async function createTDXInstance(_0x2e8e8){const _0x239a99=a2_0x3eb522,_0x157389=await GlobalContext['createAsync'](_0x2e8e8);return _0x157389['injectIntoOptions'](_0x2e8e8),TDX['create']({'site':_0x157389[_0x239a99(0x270)],'apiKey':_0x157389['apiKey'],'logLevel':_0x157389[_0x239a99(0x2bb)],'profile':_0x157389[_0x239a99(0x265)]});}const databaseCmd=program[a2_0x3eb522(0x262)](a2_0x3eb522(0x130))[a2_0x3eb522(0x2f0)]('db')['description'](a2_0x3eb522(0x20e)),databaseListAction=async(_0x35a3c6,_0x5c57da)=>{const _0x3a81c4=a2_0x3eb522,_0x2cb2e4=new DatabasesCommand(),_0x31c959=program[_0x3a81c4(0x2af)](),_0xc856c7=await createTDXInstance(_0x31c959),_0x42e2ad=await _0x2cb2e4[_0x3a81c4(0x2ea)]({'options':{..._0x31c959,..._0x5c57da},'args':_0x35a3c6?[_0x35a3c6]:[],'tdx':_0xc856c7});process[_0x3a81c4(0x186)](_0x42e2ad);};databaseCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1ad))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2d8))[a2_0x3eb522(0x28d)](databaseListAction),program[a2_0x3eb522(0x262)]('databases\x20[pattern]',{'hidden':!![]})['description'](a2_0x3eb522(0x1a6))[a2_0x3eb522(0x28d)](databaseListAction),program[a2_0x3eb522(0x262)]('chat\x20[message...]')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1dc))['option']('--agent\x20<ref>',a2_0x3eb522(0x258))['option'](a2_0x3eb522(0x320),a2_0x3eb522(0x16a))[a2_0x3eb522(0x163)](a2_0x3eb522(0x19c),a2_0x3eb522(0x2fd))[a2_0x3eb522(0x163)](a2_0x3eb522(0x29c),a2_0x3eb522(0x2b4))[a2_0x3eb522(0x28d)](async(_0xbd83cd,_0x47b662)=>{const _0x14df87=a2_0x3eb522,_0x5d1a37=new ChatCommand(),_0x18e35e=program[_0x14df87(0x2af)](),_0x14d107=await createTDXInstance(_0x18e35e),_0x2d5aea=await _0x5d1a37['run']({'options':{..._0x18e35e,..._0x47b662},'args':_0xbd83cd,'tdx':_0x14d107});process['exit'](_0x2d5aea);});const apiCmd=program[a2_0x3eb522(0x262)](a2_0x3eb522(0x13d))[a2_0x3eb522(0x14d)](a2_0x3eb522(0x18c))[a2_0x3eb522(0x2de)](a2_0x3eb522(0x24d),'\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_0x3eb522(0x163)](a2_0x3eb522(0x22e),a2_0x3eb522(0x2cb),a2_0x3eb522(0x2ae))[a2_0x3eb522(0x163)](a2_0x3eb522(0x125),a2_0x3eb522(0x2a8))[a2_0x3eb522(0x163)]('-f,\x20--file\x20<path>',a2_0x3eb522(0x1d5))[a2_0x3eb522(0x163)]('-H,\x20--header\x20<header>',a2_0x3eb522(0x1ca),(_0x4d98ba,_0x51c54c)=>{return _0x51c54c?[..._0x51c54c,_0x4d98ba]:[_0x4d98ba];})['option']('--type\x20<api_type>',a2_0x3eb522(0x292),'td')[a2_0x3eb522(0x28d)](async(_0x1a3f08,_0x27bb27)=>{const _0x25f943=a2_0x3eb522;if(!_0x1a3f08){apiCmd[_0x25f943(0x2c9)]();return;}const _0xbeba09=new ApiCommand(),_0x8e674e=program[_0x25f943(0x2af)](),_0x534daf=await createTDXInstance(_0x8e674e),_0x165e55=await _0xbeba09[_0x25f943(0x2ea)]({'options':{..._0x8e674e,..._0x27bb27},'args':[_0x1a3f08],'tdx':_0x534daf});process[_0x25f943(0x186)](_0x165e55);}),tableCmd=program['command'](a2_0x3eb522(0x2bd))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x241)),tableListAction=async(_0x5f1e1d,_0x2606c5)=>{const _0x437cb4=a2_0x3eb522,_0xbcf60d=new TablesCommand(),_0x174b56=program[_0x437cb4(0x2af)](),_0x2fc7e6=await createTDXInstance(_0x174b56);_0x2606c5['in']&&(_0x2606c5['database']=_0x2606c5['in']);const _0x4df3e1=await _0xbcf60d[_0x437cb4(0x2ea)]({'options':{..._0x174b56,..._0x2606c5},'args':_0x5f1e1d?[_0x5f1e1d]:[],'tdx':_0x2fc7e6});process[_0x437cb4(0x186)](_0x4df3e1);};tableCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1ad))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x161))[a2_0x3eb522(0x163)](a2_0x3eb522(0x318),a2_0x3eb522(0x2b3))['option']('--in\x20<database>',a2_0x3eb522(0x2a6))[a2_0x3eb522(0x28d)](tableListAction),program['command'](a2_0x3eb522(0x24c),{'hidden':!![]})[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1c4))[a2_0x3eb522(0x163)](a2_0x3eb522(0x318),a2_0x3eb522(0x2b3))['option'](a2_0x3eb522(0x288),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3eb522(0x28d)](tableListAction),program['command'](a2_0x3eb522(0x176))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1d1))['option']('-d,\x20--database\x20<database>',a2_0x3eb522(0x2fb))[a2_0x3eb522(0x163)](a2_0x3eb522(0x288),a2_0x3eb522(0x2a6))[a2_0x3eb522(0x28d)](async(_0x5d75b5,_0x1de3b1)=>{const _0x3ae46e=a2_0x3eb522,_0x2954a0=new ShowCommand(),_0x1c0150=program[_0x3ae46e(0x2af)](),_0xf3ec9=await createTDXInstance(_0x1c0150);_0x1de3b1['in']&&(_0x1de3b1['database']=_0x1de3b1['in']);const _0x50ff5b=await _0x2954a0[_0x3ae46e(0x2ea)]({'options':{..._0x1c0150,..._0x1de3b1},'args':_0x5d75b5?[_0x5d75b5]:[],'tdx':_0xf3ec9});process['exit'](_0x50ff5b);}),program['command'](a2_0x3eb522(0x17d))['alias'](a2_0x3eb522(0x260))[a2_0x3eb522(0x27e)]('Describe\x20table\x20schema')[a2_0x3eb522(0x163)](a2_0x3eb522(0x318),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option'](a2_0x3eb522(0x288),a2_0x3eb522(0x2a6))[a2_0x3eb522(0x28d)](async(_0x8287d5,_0x2c7aab)=>{const _0x51e059=a2_0x3eb522,_0x1f66a0=new DescribeCommand(),_0x48184c=program[_0x51e059(0x2af)](),_0x38c991=await createTDXInstance(_0x48184c);_0x2c7aab['in']&&(_0x2c7aab[_0x51e059(0x130)]=_0x2c7aab['in']);const _0x33eaed=await _0x1f66a0[_0x51e059(0x2ea)]({'options':{..._0x48184c,..._0x2c7aab},'args':_0x8287d5?[_0x8287d5]:[],'tdx':_0x38c991});process['exit'](_0x33eaed);}),program['command']('query\x20[sql]')['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x3eb522(0x163)](a2_0x3eb522(0x318),a2_0x3eb522(0x204))[a2_0x3eb522(0x163)](a2_0x3eb522(0x288),a2_0x3eb522(0x2a6))[a2_0x3eb522(0x163)](a2_0x3eb522(0x181),a2_0x3eb522(0x1b9))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2e7),a2_0x3eb522(0x17b))[a2_0x3eb522(0x163)]('--limit\x20<rows>',a2_0x3eb522(0x310),'40')[a2_0x3eb522(0x28d)](async(_0xe43ae,_0x16d560)=>{const _0x38dcc6=a2_0x3eb522,_0x102c23=new QueryCommand(),_0x4ff5fd=program[_0x38dcc6(0x2af)](),_0x282c92=await createTDXInstance(_0x4ff5fd);_0x16d560['in']&&(_0x16d560[_0x38dcc6(0x130)]=_0x16d560['in']);const _0x349a5f=await _0x102c23['run']({'options':{..._0x4ff5fd,..._0x16d560},'args':_0xe43ae?[_0xe43ae]:[],'tdx':_0x282c92});process[_0x38dcc6(0x186)](_0x349a5f);});const segmentCmd=program['command'](a2_0x3eb522(0x179))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1b2)),segmentListAction=async(_0x3c666f,_0x300ffa)=>{const _0x1ff574=a2_0x3eb522,_0x30e3fe=new SegmentsCommand(),_0x1626e8=program['opts'](),_0x2047fe=await createTDXInstance(_0x1626e8),_0x1cebfd=await _0x30e3fe[_0x1ff574(0x2ea)]({'options':{..._0x1626e8,..._0x300ffa},'args':_0x3c666f?[_0x3c666f]:[],'tdx':_0x2047fe});process[_0x1ff574(0x186)](_0x1cebfd);};segmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x197))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x27d))['option']('-r,\x20--recursive',a2_0x3eb522(0x152))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1b3),a2_0x3eb522(0x2d4),'10')[a2_0x3eb522(0x28d)](segmentListAction),program['command'](a2_0x3eb522(0x155),{'hidden':!![]})[a2_0x3eb522(0x27e)](a2_0x3eb522(0x200))[a2_0x3eb522(0x163)](a2_0x3eb522(0x193),a2_0x3eb522(0x152))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1b3),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['action'](segmentListAction),segmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x29d))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x245))[a2_0x3eb522(0x28d)](async(_0x400c77,_0x5d0cb2)=>{const _0x5461a9=a2_0x3eb522,_0x8c744a=new SegmentUseCommand(),_0x3b10c6=program['opts'](),_0x3cfa56=await createTDXInstance(_0x3b10c6),_0x537b61=await _0x8c744a[_0x5461a9(0x2ea)]({'options':{..._0x3b10c6,..._0x5d0cb2},'args':[_0x400c77],'tdx':_0x3cfa56});process[_0x5461a9(0x186)](_0x537b61);}),segmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2e4))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x146))[a2_0x3eb522(0x28d)](async _0x58ac65=>{const _0x42a3ee=a2_0x3eb522,_0x61f30d=new SegmentPwdCommand(),_0x186475=program[_0x42a3ee(0x2af)](),_0x448330=await createTDXInstance(_0x186475),_0x420418=await _0x61f30d[_0x42a3ee(0x2ea)]({'options':{..._0x186475,..._0x58ac65},'args':[],'tdx':_0x448330});process[_0x42a3ee(0x186)](_0x420418);}),segmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x26a))['alias'](a2_0x3eb522(0x289))[a2_0x3eb522(0x27e)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x3eb522(0x28d)](async(_0x3c54a6,_0x2322eb)=>{const _0x50db73=a2_0x3eb522,_0x47d8c3=new SegmentInfoCommand(),_0x5c38fa=program['opts'](),_0x6489b6=await createTDXInstance(_0x5c38fa),_0x25f155=await _0x47d8c3[_0x50db73(0x2ea)]({'options':{..._0x5c38fa,..._0x2322eb},'args':_0x3c54a6?[_0x3c54a6]:[],'tdx':_0x6489b6});process[_0x50db73(0x186)](_0x25f155);}),segmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2d1))['description'](a2_0x3eb522(0x1e6))[a2_0x3eb522(0x28d)](async(_0x28504e,_0x5eefd6)=>{const _0x23ae1f=a2_0x3eb522,_0x1a6523=new SegmentDescCommand(),_0x4d7091=program['opts'](),_0x45b5a4=await createTDXInstance(_0x4d7091),_0x4dc7f9=await _0x1a6523[_0x23ae1f(0x2ea)]({'options':{..._0x4d7091,..._0x5eefd6},'args':_0x28504e?[_0x28504e]:[],'tdx':_0x45b5a4});process[_0x23ae1f(0x186)](_0x4dc7f9);}),segmentCmd[a2_0x3eb522(0x262)]('show\x20[segment_name]')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1d4))[a2_0x3eb522(0x28d)](async(_0x6fbf4a,_0x1c722c)=>{const _0x3b65a0=a2_0x3eb522,_0x8646a0=new SegmentShowCommand(),_0x111ea6=program[_0x3b65a0(0x2af)](),_0xe8e18b=await createTDXInstance(_0x111ea6),_0x15154a=await _0x8646a0[_0x3b65a0(0x2ea)]({'options':{..._0x111ea6,..._0x1c722c},'args':_0x6fbf4a?[_0x6fbf4a]:[],'tdx':_0xe8e18b});process['exit'](_0x15154a);}),segmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x256))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2ba))[a2_0x3eb522(0x28d)](async(_0x1e9185,_0xfe7980)=>{const _0x4295d7=a2_0x3eb522,_0x441b05=new SegmentFolderListCommand(),_0x31a819=program[_0x4295d7(0x2af)](),_0x4dda0e=await createTDXInstance(_0x31a819),_0x359741=await _0x441b05[_0x4295d7(0x2ea)]({'options':{..._0x31a819,..._0xfe7980},'args':[_0x1e9185],'tdx':_0x4dda0e});process[_0x4295d7(0x186)](_0x359741);});const folderCmd=segmentCmd['command'](a2_0x3eb522(0x227))['description']('Segment\x20folder\x20management');function a2_0x15ac(){const _0x523796=['preAction','show\x20<name-or-id>','Updated\x20timezone','Create\x20a\x20new\x20LLM\x20project','tdx','auth','desc','--port\x20<number>','command','attempts\x20[project]','agents\x20[pattern]','profile','--from-task\x20<task>','required','Unknown\x20action:\x20','--attributes\x20<json>','info\x20[segment_name]','duplicate\x20<name-or-id>','Resume\x20a\x20paused\x20campaign','Interactive\x20chat\x20selector','Make\x20segment\x20invisible\x20(default:\x20visible)','Add\x20attributes\x20as\x20JSON\x20string','site','--schedule-type\x20<type>','New\x20template\x20name','Filtering\x20rule\x20as\x20JSON\x20string','--in\x20<name>','parent_segment','Resume\x20from\x20specific\x20task\x20(retry)','--add-behaviors-file\x20<file>','tasks','Campaign\x20management','--system-prompt\x20<text>','--site\x20<site>','stderr','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','description','show\x20<agent-name>','Maximum\x20tool\x20iterations\x20(default:\x204)','fields\x20[parent_name]','Campaign\x20description','-d,\x20--database\x20<name>','set','Editor\x20type','Output\x20as\x20JSON','kill\x20<job-id>','--in\x20<database>','describe','Attempt\x20ID','map','Skip\x20confirmation\x20prompts','action','colorFn','Email\x20sender\x20ID\x20for\x20delivery','restore\x20<folder>','run\x20<workflow>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','argument','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--table\x20<table>','Agent\x20name','--param\x20<key=value>','Arguments:','--reason\x20<text>','--starter-message\x20<text>','--new','use\x20<path>','outputHelp','Agent\x20prompt/instructions','New\x20segment\x20name','replace','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','backup\x20<name>','history\x20[chat-id]','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Alias\x20for\x20--database\x20(natural\x20language\x20style)',',\x20version\x20','Request\x20body\x20as\x20JSON\x20string','6880IKmWfb','projects\x20[pattern]','4816746HcydzJ','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','GET','opts','.dev','result\x20<job-id>','llm','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Start\x20a\x20new\x20chat\x20session','utf-8','[action]','Set\x20or\x20show\x20parent\x20segment\x20context','Duplicate\x20a\x20campaign','--kind\x20<type>','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','logLevel','--add-behaviors\x20<json>','table','--dry-run','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Submit\x20a\x20job','Get\x20job\x20results','stdout','LLM\x20agent\x20management','List\x20all\x20available\x20profiles','retry\x20<session-id>','--interval\x20<range>','DEBUG','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','help','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','url','Limit\x20number\x20of\x20rows','-1d','Resume\x20from\x20specific\x20task','5632333BMcaGK','desc\x20[segment_name]','Agent\x20description','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Maximum\x20recursion\x20depth\x20(default:\x2010)','parse','sql\x20[segment_name]','Template\x20name','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--name\x20<new-name>','--include-retried','update\x20<agent-name>','Skip\x20confirmation\x20prompt','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','addHelpText','Parent\x20segment\x20management','--email-sender-id\x20<id>','Customer\x20group\x20as\x20JSON\x20string','list\x20[project]','Show\x20workspace\x20details','pwd','Pause\x20a\x20campaign','create\x20<name>','-f,\x20--file\x20<path>','subcommandTerm','[task-name]','run','debug','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--prompt\x20<text>','update\x20<name>','alias','26577guLzHx','Plaintext\x20template\x20content','--plaintext\x20<text>','format','--include-subtasks','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','filter','--tsv','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','preview\x20[name]','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','length','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','use\x20[name]','show\x20<job-id>','Reason\x20for\x20killing\x20the\x20attempt','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','--parent-segment\x20<name>','-v,\x20--verbose','Email\x20template\x20management','--format\x20<format>','push\x20[file]','buildTime','pull\x20[name]','view\x20[name]','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','hook','update\x20<segment_name>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Workspace\x20name','then','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','desc\x20[name]','Include\x20retried\x20attempts','preview\x20[file]','-d,\x20--database\x20<database>','312rrHAkK','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','sql\x20[name]','--json-columns\x20<cols>','slice','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','jobs','--model\x20<name>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','Behaviors\x20as\x20JSON\x20string','Workspace\x20description','Create\x20a\x20workspace','Database\x20to\x20use\x20(overrides\x20context)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','Show\x20job\x20details','--data\x20<data>','subcommandDescription','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','forEach','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','tdx\x20','Create\x20segment\x20folder','job','fields\x20[name]','isTTY','database','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','[attempt-id]','--description\x20<text>','--html\x20<html>','tsv','Enable\x20verbose\x20logging','retry','Segment\x20description','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--name\x20<new_name>','--workspace\x20<name>','api\x20[endpoint]','--rule\x20<json>','us01','show\x20[name]','log','Add\x20behaviors\x20as\x20JSON\x20string','Force\x20retry\x20even\x20if\x20not\x20failed','Workflow\x20(Digdag)\x20management\x20commands','campaigns\x20[pattern]','Show\x20current\x20segment/folder\x20context','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','options','Clear\x20session\x20context','--limit\x20<number>','Folder\x20description','--params\x20<json>','summary','push\x20[name]','Skip\x20population\x20counting','0.7','Behaviors\x20from\x20JSON\x20file','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Task\x20name\x20for\x20logs\x20action','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','segments\x20[path]','Parent\x20segment\x20(audience)\x20management','Workflow\x20parameter\x20(repeatable)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Show\x20the\x20most\x20recent\x20chat','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Updated\x20schedule\x20option','--no-color','Attributes\x20as\x20JSON\x20string','\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','-o,\x20--output\x20<file>','template','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','List\x20jobs','option','--enriched','padEnd','--behavior\x20[name]','--add-attributes-file\x20<file>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','status','Model\x20name\x20(default:\x20claude-4.5-sonnet)','Email\x20subject\x20template','Output\x20folder\x20(default:\x20{project_name}.llm)','../package.json','Campaign\x20type\x20(email\x20or\x20push)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','activations\x20<segment_name>','launch\x20<name-or-id>','Create\x20an\x20email\x20template','pause\x20<name-or-id>','argv','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','show\x20[table]','--yes','New\x20workspace\x20name','segment','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Read\x20SQL\x20query\x20from\x20file','747470ePxWWB','describe\x20[table]','update\x20<name-or-id>','--customer-group\x20<json>','Show\x20master\x20table\x20sample\x20data','--catalog\x20<catalog>','--debug','project','Database\x20name\x20(default:\x20information_schema)','workflows\x20[project]','exit','kill','profiles','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--segment\x20<path>','--timezone\x20<tz>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Options:','delete\x20<name-or-id>','download\x20<project-name>\x20[output-dir]','create\x20<parent_name>\x20<folder_name>','catch','claude\x20[args...]','-r,\x20--recursive','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--customer-group-file\x20<file>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','list\x20[path]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','--attribute\x20[name]','--type\x20<type>','--temperature\x20<n>','Action:\x20logs,\x20tasks,\x20kill,\x20retry','LLM\x20project\x20management','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','validate\x20[name]','--schedule-option\x20<value>','Delete\x20an\x20agent','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','Attributes\x20from\x20JSON\x20file','Remove\x20API\x20key\x20from\x20system\x20keychain','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Update\x20a\x20campaign','5ybxFar','allowUnknownOption','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Project\x20description','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','list\x20[pattern]','--last','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','version','--name\x20<name>','CDP\x20segment\x20management\x20commands','--max-depth\x20<depth>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','port','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--version','Workflow\x20session\x20management','Trino\x20catalog\x20(default:\x20td)','requiredOption','templates\x20[pattern]','--start-at\x20<datetime>','use\x20<project-name>','--session-time\x20<time>','Show\x20campaign\x20details','System\x20prompt/instructions\x20(default:\x20empty)','--resume-from\x20<task>','-y,\x20--yes','create','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Set\x20operation\x20timeout\x20in\x20seconds','Workspace\x20management','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','--description\x20<desc>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','push','11781dnGLwn','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','sessions\x20[project]','Parent\x20folder\x20name\x20for\x20nested\x20folders','resume\x20<name-or-id>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--folder\x20<name>','Timezone\x20(e.g.,\x20America/Los_Angeles)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Read\x20request\x20body\x20from\x20file','Customer\x20group\x20from\x20JSON\x20file','jsonl','Master\x20table\x20name','parents\x20[pattern]','Save\x20output\x20to\x20file','360946WdOJgJ','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','-p,\x20--profile\x20<name>','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','HTML\x20template\x20content','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--status\x20<status>','hidden','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Delete\x20an\x20LLM\x20project','Show\x20segment\x20schema\x20(column\x20types)','run\x20[name]','Workflow\x20attempt\x20management','Delete\x20a\x20campaign','--add-attributes\x20<json>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Output\x20file\x20path\x20(default:\x20<name>.yml)','parent-segment','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--name\x20<text>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','setup','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','clear','Preview\x20operation\x20without\x20executing','gitRevision','Job\x20management\x20commands','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--invisible','claude-4.5-sonnet','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','allowExcessArguments','--to\x20<timestamp>','Master\x20database\x20name','usage','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','build-info.json','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Database\x20to\x20query\x20(default:\x20information_schema)','Update\x20an\x20existing\x20agent','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--json','Read\x20query\x20from\x20file','--limit\x20<n>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','delete\x20<agent-name>','Database\x20management\x20commands','End\x20time\x20filter\x20(ISO\x208601\x20format)','isArray','--jsonl','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Output\x20as\x20JSON\x20Lines','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','configureHelp','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','error','campaign','Launch\x20a\x20campaign','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--subject\x20<subject>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--full','--max-tool-iterations\x20<n>','aliases','Skip\x20validation\x20of\x20.dig\x20files','attempt','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','9mfqWfN','validate\x20[file]','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','folder','Open\x20parent\x20segment\x20in\x20web\x20browser','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--database\x20<name>','Updated\x20description','AI-native\x20CLI\x20for\x20Treasure\x20Data','registeredArguments','-X,\x20--method\x20<method>','--force','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','use\x20[resource]\x20[value]','submit\x20[query]','information_schema','\x20-\x20built\x20','parent','Update\x20an\x20email\x20template','--skip-validation','LLM\x20project\x20to\x20use\x20(overrides\x20context)','commands','--revision\x20<revision>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','name','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--timeout\x20<seconds>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Include\x20subtasks\x20in\x20tasks\x20output','Table\x20management\x20commands','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Move\x20to\x20folder','Include\x20retried\x20attempts\x20(for\x20list)','Set\x20current\x20segment/folder\x20context\x20for\x20navigation','--no-proxy','Setup\x20API\x20key\x20authentication\x20interactively','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','join','Add\x20attributes\x20from\x20JSON\x20file','\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\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20--\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20previous\x20Claude\x20Code\x20session\x0a\x20\x20tdx\x20claude\x20usage\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\x20Output\x20usage\x20as\x20JSON','tables\x20[pattern]','after','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','argumentTerm','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','Authentication\x20management','--clear','--from\x20<timestamp>','--master','delete\x20<project-name-or-id>','folders\x20<parent_name>','12491488FhVbpw','Agent\x20reference\x20(project-name/agent-name)','json'];a2_0x15ac=function(){return _0x523796;};return a2_0x15ac();}folderCmd['command']('show\x20<folder_ref>')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1e4))['action'](async(_0x41b227,_0xfa9a13)=>{const _0x57f005=a2_0x3eb522,_0xb5791b=new SegmentFolderShowCommand(),_0x46349e=program[_0x57f005(0x2af)](),_0x4d88a8=await createTDXInstance(_0x46349e),_0x4675b1=await _0xb5791b['run']({'options':{..._0x46349e,..._0xfa9a13},'args':[_0x41b227],'tdx':_0x4d88a8});process[_0x57f005(0x186)](_0x4675b1);}),segmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2d6))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x13a))[a2_0x3eb522(0x28d)](async(_0x2fb253,_0x1c745a)=>{const _0x2e81e7=a2_0x3eb522,_0x4715ad=new SegmentSQLCommand(),_0xcb99de=program[_0x2e81e7(0x2af)](),_0x5d039f=await createTDXInstance(_0xcb99de),_0x57103c=await _0x4715ad['run']({'options':{..._0xcb99de,..._0x1c745a},'args':_0x2fb253?[_0x2fb253]:[],'tdx':_0x5d039f});process[_0x2e81e7(0x186)](_0x57103c);}),segmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x281))[a2_0x3eb522(0x27e)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0xc44836,_0x2089c6)=>{const _0x5a5e17=a2_0x3eb522,_0x2247a5=new SegmentFieldsCommand(),_0x23c1c0=program[_0x5a5e17(0x2af)](),_0x48dafc=await createTDXInstance(_0x23c1c0),_0x58ed92=await _0x2247a5[_0x5a5e17(0x2ea)]({'options':{..._0x23c1c0,..._0x2089c6},'args':_0xc44836?[_0xc44836]:[],'tdx':_0x48dafc});process[_0x5a5e17(0x186)](_0x58ed92);}),segmentCmd[a2_0x3eb522(0x262)]('create\x20<segment_name>')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1a3))[a2_0x3eb522(0x163)](a2_0x3eb522(0x134),a2_0x3eb522(0x139))[a2_0x3eb522(0x163)]('--rule\x20<json>',a2_0x3eb522(0x273))[a2_0x3eb522(0x163)]('--rule-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x3eb522(0x163)](a2_0x3eb522(0x1d2),'Folder\x20name\x20for\x20organization')[a2_0x3eb522(0x163)](a2_0x3eb522(0x2b9),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x3eb522(0x163)](a2_0x3eb522(0x1f8),a2_0x3eb522(0x26e))[a2_0x3eb522(0x163)]('--no-count-population',a2_0x3eb522(0x14f))[a2_0x3eb522(0x28d)](async(_0x1f5249,_0x3aa732)=>{const _0x176db3=a2_0x3eb522,_0x17fbe6=new SegmentCreateCommand(),_0x4e4fe6=program['opts'](),_0x49bdf9=await createTDXInstance(_0x4e4fe6),_0x59f76d=await _0x17fbe6[_0x176db3(0x2ea)]({'options':{..._0x4e4fe6,..._0x3aa732},'args':[_0x1f5249],'tdx':_0x49bdf9});process[_0x176db3(0x186)](_0x59f76d);}),segmentCmd['command'](a2_0x3eb522(0x30f))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1df))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13b),a2_0x3eb522(0x2a0))['option'](a2_0x3eb522(0x134),a2_0x3eb522(0x22b))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13e),a2_0x3eb522(0x175))[a2_0x3eb522(0x163)]('--rule-file\x20<file>',a2_0x3eb522(0x1ac))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1d2),a2_0x3eb522(0x243))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2b9),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x3eb522(0x28d)](async(_0x402efe,_0x8dca10)=>{const _0x5058cb=a2_0x3eb522,_0x350101=new SegmentUpdateCommand(),_0x5674e7=program[_0x5058cb(0x2af)](),_0x4b9b87=await createTDXInstance(_0x5674e7),_0xba1b69=await _0x350101[_0x5058cb(0x2ea)]({'options':{..._0x5674e7,..._0x8dca10},'args':[_0x402efe],'tdx':_0x4b9b87});process[_0x5058cb(0x186)](_0xba1b69);});const parentCmd=segmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x235))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x156)),parentListAction=async(_0x433464,_0x326d9b)=>{const _0x38748c=a2_0x3eb522,_0x159790=new ParentSegmentListCommand(),_0x489675=program[_0x38748c(0x2af)](),_0x11c550=await createTDXInstance(_0x489675),_0x5bc7d2=await _0x159790['run']({'options':{..._0x489675,..._0x326d9b},'args':_0x433464?[_0x433464]:[],'tdx':_0x11c550});process[_0x38748c(0x186)](_0x5bc7d2);};parentCmd[a2_0x3eb522(0x262)]('list\x20[pattern]')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2ac))[a2_0x3eb522(0x28d)](parentListAction),segmentCmd['command'](a2_0x3eb522(0x1d9),{'hidden':!![]})[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2f7))[a2_0x3eb522(0x28d)](parentListAction),parentCmd['command'](a2_0x3eb522(0x30b))['description'](a2_0x3eb522(0x206))[a2_0x3eb522(0x163)](a2_0x3eb522(0x15f),a2_0x3eb522(0x1ec))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1c2),'Skip\x20confirmation\x20prompt')['action'](async(_0x3f7add,_0x18bac7)=>{const _0x262551=a2_0x3eb522,_0x432d8e=new ParentSegmentPullCommand(),_0x4ad9bb=program[_0x262551(0x2af)](),_0x603de3=await createTDXInstance(_0x4ad9bb),_0x15bcdc=await _0x432d8e['run']({'options':{..._0x4ad9bb,..._0x18bac7},'args':_0x3f7add?[_0x3f7add]:[],'tdx':_0x603de3});process[_0x262551(0x186)](_0x15bcdc);}),parentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x309))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x131))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1c2),a2_0x3eb522(0x2dc))[a2_0x3eb522(0x28d)](async(_0x1e8325,_0xe4e527)=>{const _0x20d678=a2_0x3eb522,_0x5eb9a9=new ParentSegmentPushCommand(),_0x48810c=program[_0x20d678(0x2af)](),_0x333f14=await createTDXInstance(_0x48810c),_0x11eae6=await _0x5eb9a9[_0x20d678(0x2ea)]({'options':{..._0x48810c,..._0xe4e527},'args':_0x1e8325?[_0x1e8325]:[],'tdx':_0x333f14});process[_0x20d678(0x186)](_0x11eae6);}),parentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x225))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2ad))[a2_0x3eb522(0x163)](a2_0x3eb522(0x254),'Show\x20only\x20master\x20table\x20validation')[a2_0x3eb522(0x163)](a2_0x3eb522(0x19a),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3eb522(0x163)](a2_0x3eb522(0x166),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x3eb522(0x164),a2_0x3eb522(0x15a))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2c6),a2_0x3eb522(0x19f),a2_0x3eb522(0x2ce))[a2_0x3eb522(0x28d)](async(_0x2794c3,_0xcb80f0)=>{const _0x195179=a2_0x3eb522,_0x28b984=new ParentSegmentValidateCommand(),_0x483b40=program[_0x195179(0x2af)](),_0x5994a3=await createTDXInstance(_0x483b40),_0x5a9d04=await _0x28b984[_0x195179(0x2ea)]({'options':{..._0x483b40,..._0xcb80f0},'args':_0x2794c3?[_0x2794c3]:[],'tdx':_0x5994a3});process['exit'](_0x5a9d04);}),parentCmd['command'](a2_0x3eb522(0x317))[a2_0x3eb522(0x27e)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option']('--master',a2_0x3eb522(0x180))[a2_0x3eb522(0x163)](a2_0x3eb522(0x19a),a2_0x3eb522(0x21d))[a2_0x3eb522(0x163)](a2_0x3eb522(0x166),a2_0x3eb522(0x2ed))[a2_0x3eb522(0x163)](a2_0x3eb522(0x164),a2_0x3eb522(0x2ec))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2c6),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3eb522(0x2ce))[a2_0x3eb522(0x28d)](async(_0x33417d,_0x4b3b61)=>{const _0x4e2139=a2_0x3eb522,_0x1788c5=new ParentSegmentPreviewCommand(),_0x294f01=program[_0x4e2139(0x2af)](),_0x6ddb75=await createTDXInstance(_0x294f01),_0x256e4a=await _0x1788c5['run']({'options':{..._0x294f01,..._0x4b3b61},'args':_0x33417d?[_0x33417d]:[],'tdx':_0x6ddb75});process['exit'](_0x256e4a);}),parentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1e7))[a2_0x3eb522(0x27e)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0x3eb522(0x1c2),a2_0x3eb522(0x2dc))[a2_0x3eb522(0x28d)](async(_0x50bd88,_0x58884f)=>{const _0x23ec5d=a2_0x3eb522,_0x248574=new ParentSegmentRunCommand(),_0x13d33b=program[_0x23ec5d(0x2af)](),_0xcd278f=await createTDXInstance(_0x13d33b),_0x5e68a1=await _0x248574[_0x23ec5d(0x2ea)]({'options':{..._0x13d33b,..._0x58884f},'args':_0x50bd88?[_0x50bd88]:[],'tdx':_0xcd278f});process[_0x23ec5d(0x186)](_0x5e68a1);});const parentSegmentCmd=program[a2_0x3eb522(0x262)](a2_0x3eb522(0x1ed))[a2_0x3eb522(0x2f0)]('ps')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2df));parentSegmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1ad))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2ac))[a2_0x3eb522(0x28d)](parentListAction),parentSegmentCmd['command'](a2_0x3eb522(0x30b))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1f0))['option'](a2_0x3eb522(0x15f),'Output\x20file\x20path')['option'](a2_0x3eb522(0x1c2),'Skip\x20confirmation\x20prompt')['option']('-u,\x20--use',a2_0x3eb522(0x31a))['action'](async(_0x33bfed,_0xeb615a)=>{const _0x271cfd=a2_0x3eb522,_0x3192b5=new ParentSegmentPullCommand(),_0x2ea955=program[_0x271cfd(0x2af)](),_0x59451c=await createTDXInstance(_0x2ea955),_0x2f689d=await _0x3192b5[_0x271cfd(0x2ea)]({'options':{..._0x2ea955,..._0xeb615a},'args':_0x33bfed?[_0x33bfed]:[],'tdx':_0x59451c});process[_0x271cfd(0x186)](_0x2f689d);}),parentSegmentCmd['command'](a2_0x3eb522(0x14e))['description'](a2_0x3eb522(0x2c8))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1c2),'Skip\x20confirmation\x20prompt')[a2_0x3eb522(0x28d)](async(_0x10239b,_0x47a44e)=>{const _0x4c7eeb=a2_0x3eb522,_0x456d2d=new ParentSegmentPushCommand(),_0x30216a=program[_0x4c7eeb(0x2af)](),_0x534515=await createTDXInstance(_0x30216a),_0x436907=await _0x456d2d['run']({'options':{..._0x30216a,..._0x47a44e},'args':_0x10239b?[_0x10239b]:[],'tdx':_0x534515});process[_0x4c7eeb(0x186)](_0x436907);}),parentSegmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1a0))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2ad))[a2_0x3eb522(0x163)](a2_0x3eb522(0x254),'Show\x20only\x20master\x20table\x20validation')[a2_0x3eb522(0x163)](a2_0x3eb522(0x19a),a2_0x3eb522(0x230))[a2_0x3eb522(0x163)](a2_0x3eb522(0x166),a2_0x3eb522(0x2f6))['option'](a2_0x3eb522(0x164),a2_0x3eb522(0x15a))['option'](a2_0x3eb522(0x2c6),a2_0x3eb522(0x19f),'-1d')[a2_0x3eb522(0x28d)](async(_0x369f53,_0x4b1537)=>{const _0x2813a2=a2_0x3eb522,_0x46c8fb=new ParentSegmentValidateCommand(),_0x55aa7d=program[_0x2813a2(0x2af)](),_0x1f3e35=await createTDXInstance(_0x55aa7d),_0x18060b=await _0x46c8fb[_0x2813a2(0x2ea)]({'options':{..._0x55aa7d,..._0x4b1537},'args':_0x369f53?[_0x369f53]:[],'tdx':_0x1f3e35});process[_0x2813a2(0x186)](_0x18060b);}),parentSegmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2fc))['description'](a2_0x3eb522(0x223))[a2_0x3eb522(0x163)](a2_0x3eb522(0x254),'Show\x20master\x20table\x20sample\x20data')[a2_0x3eb522(0x163)](a2_0x3eb522(0x19a),a2_0x3eb522(0x21d))['option'](a2_0x3eb522(0x166),a2_0x3eb522(0x2ed))[a2_0x3eb522(0x163)](a2_0x3eb522(0x164),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x3eb522(0x163)](a2_0x3eb522(0x2c6),a2_0x3eb522(0x19f),a2_0x3eb522(0x2ce))['action'](async(_0x488a7f,_0x367310)=>{const _0x1012e7=a2_0x3eb522,_0x3e8e47=new ParentSegmentPreviewCommand(),_0x596e52=program[_0x1012e7(0x2af)](),_0x15c3dd=await createTDXInstance(_0x596e52),_0x2c27ee=await _0x3e8e47[_0x1012e7(0x2ea)]({'options':{..._0x596e52,..._0x367310},'args':_0x488a7f?[_0x488a7f]:[],'tdx':_0x15c3dd});process[_0x1012e7(0x186)](_0x2c27ee);}),parentSegmentCmd['command'](a2_0x3eb522(0x1e7))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x23d))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1c2),a2_0x3eb522(0x2dc))['action'](async(_0x139472,_0x409ea3)=>{const _0x5c40b6=a2_0x3eb522,_0x1b800b=new ParentSegmentRunCommand(),_0x4e8f31=program[_0x5c40b6(0x2af)](),_0x470376=await createTDXInstance(_0x4e8f31),_0x51720c=await _0x1b800b['run']({'options':{..._0x4e8f31,..._0x409ea3},'args':_0x139472?[_0x139472]:[],'tdx':_0x470376});process[_0x5c40b6(0x186)](_0x51720c);}),parentSegmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x12e))[a2_0x3eb522(0x27e)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x3eb522(0x207),'Output\x20as\x20JSON')[a2_0x3eb522(0x163)](a2_0x3eb522(0x211),a2_0x3eb522(0x213))[a2_0x3eb522(0x28d)](async(_0x535d4,_0x495c88)=>{const _0x28ea0c=a2_0x3eb522,_0x48f0e0=new ParentSegmentFieldsCommand(),_0x1b306d=program[_0x28ea0c(0x2af)](),_0x50975e=await createTDXInstance(_0x1b306d),_0x28c2d3=await _0x48f0e0[_0x28ea0c(0x2ea)]({'options':{..._0x1b306d,..._0x495c88},'args':_0x535d4?[_0x535d4]:[],'tdx':_0x50975e});process[_0x28ea0c(0x186)](_0x28c2d3);}),parentSegmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x30c))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x194))[a2_0x3eb522(0x163)]('-w,\x20--web',a2_0x3eb522(0x228))[a2_0x3eb522(0x163)](a2_0x3eb522(0x207),a2_0x3eb522(0x286))['option'](a2_0x3eb522(0x211),a2_0x3eb522(0x213))[a2_0x3eb522(0x28d)](async(_0x34fc35,_0x36412c)=>{const _0x30925a=a2_0x3eb522,_0x38f260=new ParentSegmentViewCommand(),_0x34c2b4=program[_0x30925a(0x2af)](),_0x48bd4e=await createTDXInstance(_0x34c2b4),_0x44f62f=await _0x38f260[_0x30925a(0x2ea)]({'options':{..._0x34c2b4,..._0x36412c},'args':_0x34fc35?[_0x34fc35]:[],'tdx':_0x48bd4e});process[_0x30925a(0x186)](_0x44f62f);}),parentSegmentCmd['command'](a2_0x3eb522(0x315))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x294))[a2_0x3eb522(0x163)](a2_0x3eb522(0x207),a2_0x3eb522(0x286))[a2_0x3eb522(0x163)](a2_0x3eb522(0x211),a2_0x3eb522(0x213))[a2_0x3eb522(0x28d)](async(_0x50ad4f,_0x15ff85)=>{const _0x3cdd7b=a2_0x3eb522,_0x524d1b=new ParentSegmentDescCommand(),_0x59f153=program['opts'](),_0x231736=await createTDXInstance(_0x59f153),_0x1fc724=await _0x524d1b[_0x3cdd7b(0x2ea)]({'options':{..._0x59f153,..._0x15ff85},'args':_0x50ad4f?[_0x50ad4f]:[],'tdx':_0x231736});process['exit'](_0x1fc724);}),parentSegmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x31b))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x198))[a2_0x3eb522(0x163)](a2_0x3eb522(0x207),'Output\x20as\x20JSON')['option']('--jsonl',a2_0x3eb522(0x213))['action'](async(_0x3b5322,_0x51bddd)=>{const _0x5efa88=a2_0x3eb522,_0x1ae3cd=new ParentSegmentSQLCommand(),_0x28aebc=program[_0x5efa88(0x2af)](),_0x3fa86e=await createTDXInstance(_0x28aebc),_0x24819c=await _0x1ae3cd['run']({'options':{..._0x28aebc,..._0x51bddd},'args':_0x3b5322?[_0x3b5322]:[],'tdx':_0x3fa86e});process[_0x5efa88(0x186)](_0x24819c);}),parentSegmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x140))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x132))[a2_0x3eb522(0x163)](a2_0x3eb522(0x209),a2_0x3eb522(0x2cd))['option']('--json','Output\x20as\x20JSON')['option'](a2_0x3eb522(0x211),a2_0x3eb522(0x213))['action'](async(_0x74577e,_0x154382)=>{const _0x4f1d06=a2_0x3eb522,_0x1af537=new ParentSegmentShowCommand(),_0x477461=program[_0x4f1d06(0x2af)](),_0x3662ca=await createTDXInstance(_0x477461),_0x1b7aa3=await _0x1af537['run']({'options':{..._0x477461,..._0x154382},'args':_0x74577e?[_0x74577e]:[],'tdx':_0x3662ca});process[_0x4f1d06(0x186)](_0x1b7aa3);}),parentSegmentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x301))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2b7))[a2_0x3eb522(0x28d)](async(_0x395ecd,_0x13a9f6)=>{const _0xeee2c6=a2_0x3eb522,_0x42f1ae=new UseCommand(),_0xbbead5=program[_0xeee2c6(0x2af)](),_0x2950d3=_0x395ecd?[_0xeee2c6(0x275),_0x395ecd]:[],_0x46051c=await _0x42f1ae[_0xeee2c6(0x2ea)]({'options':{..._0xbbead5,..._0x13a9f6},'args':_0x2950d3,'tdx':null});process[_0xeee2c6(0x186)](_0x46051c);}),parentCmd['command'](a2_0x3eb522(0x2e6))[a2_0x3eb522(0x27e)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3eb522(0x1ba)]('--database\x20<db>',a2_0x3eb522(0x1fd))['requiredOption'](a2_0x3eb522(0x296),a2_0x3eb522(0x1d8))[a2_0x3eb522(0x163)]('--description\x20<text>','Parent\x20segment\x20description')['option'](a2_0x3eb522(0x271),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x3eb522(0x1a1),a2_0x3eb522(0x20c))[a2_0x3eb522(0x163)]('--timezone\x20<tz>',a2_0x3eb522(0x1d3))[a2_0x3eb522(0x163)](a2_0x3eb522(0x269),a2_0x3eb522(0x15d))[a2_0x3eb522(0x163)]('--attributes-file\x20<file>',a2_0x3eb522(0x1a4))[a2_0x3eb522(0x163)]('--behaviors\x20<json>',a2_0x3eb522(0x322))[a2_0x3eb522(0x163)]('--behaviors-file\x20<file>',a2_0x3eb522(0x151))[a2_0x3eb522(0x163)](a2_0x3eb522(0x17f),a2_0x3eb522(0x2e1))[a2_0x3eb522(0x163)](a2_0x3eb522(0x195),a2_0x3eb522(0x1d6))[a2_0x3eb522(0x28d)](async(_0x52f908,_0x10a3f2)=>{const _0x475f25=a2_0x3eb522,_0x12e12b=new ParentSegmentCreateCommand(),_0x4fd59e=program[_0x475f25(0x2af)](),_0x20f9ba=await createTDXInstance(_0x4fd59e),_0x108811=await _0x12e12b[_0x475f25(0x2ea)]({'options':{..._0x4fd59e,..._0x10a3f2},'args':[_0x52f908],'tdx':_0x20f9ba});process[_0x475f25(0x186)](_0x108811);}),parentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2ef))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x202))[a2_0x3eb522(0x163)](a2_0x3eb522(0x134),a2_0x3eb522(0x22b))[a2_0x3eb522(0x163)](a2_0x3eb522(0x271),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3eb522(0x163)]('--schedule-option\x20<value>',a2_0x3eb522(0x15b))[a2_0x3eb522(0x163)](a2_0x3eb522(0x18b),a2_0x3eb522(0x25c))['option'](a2_0x3eb522(0x1ea),a2_0x3eb522(0x26f))[a2_0x3eb522(0x163)](a2_0x3eb522(0x167),a2_0x3eb522(0x24a))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2bc),a2_0x3eb522(0x142))[a2_0x3eb522(0x163)](a2_0x3eb522(0x277),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x3eb522(0x28d)](async(_0x1e4e71,_0x34512e)=>{const _0xf59fbd=a2_0x3eb522,_0x5b02f1=new ParentSegmentUpdateCommand(),_0x3ed8bf=program[_0xf59fbd(0x2af)](),_0x49baa1=await createTDXInstance(_0x3ed8bf),_0x1e67fe=await _0x5b02f1[_0xf59fbd(0x2ea)]({'options':{..._0x3ed8bf,..._0x34512e},'args':[_0x1e4e71],'tdx':_0x49baa1});process[_0xf59fbd(0x186)](_0x1e67fe);}),folderCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x190))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x12c))[a2_0x3eb522(0x163)](a2_0x3eb522(0x134),a2_0x3eb522(0x14b))[a2_0x3eb522(0x163)]('--parent-folder\x20<name>',a2_0x3eb522(0x1cf))[a2_0x3eb522(0x28d)](async(_0x14f096,_0x5dc6c2,_0x370c11)=>{const _0x26b870=a2_0x3eb522,_0x4f20ba=new SegmentFolderCreateCommand(),_0x7c545f=program[_0x26b870(0x2af)](),_0x127ede=await createTDXInstance(_0x7c545f),_0x49f0ff=await _0x4f20ba[_0x26b870(0x2ea)]({'options':{..._0x7c545f,..._0x370c11},'args':[_0x14f096,_0x5dc6c2],'tdx':_0x127ede});process['exit'](_0x49f0ff);}),program[a2_0x3eb522(0x262)](a2_0x3eb522(0x170))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x229))[a2_0x3eb522(0x28d)](async(_0x488c39,_0x36029c)=>{const _0x33d904=a2_0x3eb522,_0x1841ed=new ActivationsCommand(),_0x14123e=program[_0x33d904(0x2af)](),_0x36a605=await createTDXInstance(_0x14123e),_0x458c7f=await _0x1841ed[_0x33d904(0x2ea)]({'options':{..._0x14123e,..._0x36029c},'args':[_0x488c39],'tdx':_0x36a605});process[_0x33d904(0x186)](_0x458c7f);});const workflowCmd=program[a2_0x3eb522(0x262)]('workflow')[a2_0x3eb522(0x2f0)]('wf')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x144)),wfProjectCmd=workflowCmd['command'](a2_0x3eb522(0x183))[a2_0x3eb522(0x27e)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0x182b0e,_0x5802d4)=>{const _0x244071=a2_0x3eb522,_0x4c173e=new WorkflowProjectsCommand(),_0x5bd5f7=program[_0x244071(0x2af)](),_0x3322b0=await createTDXInstance(_0x5bd5f7),_0x54bb91=await _0x4c173e[_0x244071(0x2ea)]({'options':{..._0x5bd5f7,..._0x5802d4},'args':_0x182b0e?[_0x182b0e]:[],'tdx':_0x3322b0});process[_0x244071(0x186)](_0x54bb91);};wfProjectCmd['command'](a2_0x3eb522(0x1ad))[a2_0x3eb522(0x27e)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](wfProjectListAction),workflowCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2aa))['description'](a2_0x3eb522(0x226))[a2_0x3eb522(0x28d)](wfProjectListAction);const wfWorkflowListAction=async(_0x1449ce,_0x56effb)=>{const _0x649b8d=a2_0x3eb522,_0x52ae6c=new WorkflowWorkflowsCommand(),_0x4404c4=program['opts'](),_0x3910bb=await createTDXInstance(_0x4404c4),_0x51df33=await _0x52ae6c[_0x649b8d(0x2ea)]({'options':{..._0x4404c4,..._0x56effb},'args':_0x1449ce?[_0x1449ce]:[],'tdx':_0x3910bb});process['exit'](_0x51df33);};workflowCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x185))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x16f))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3eb522(0x262)]('session')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1b8)),wfSessionListAction=async(_0x29bb09,_0x49e122)=>{const _0xb190cf=a2_0x3eb522,_0x8000cc=new WorkflowSessionsCommand(),_0x884b8f=program['opts'](),_0x13df2c=await createTDXInstance(_0x884b8f),_0x6d7392=await _0x8000cc[_0xb190cf(0x2ea)]({'options':{..._0x884b8f,..._0x49e122},'args':_0x29bb09?[_0x29bb09]:[],'tdx':_0x13df2c});process[_0xb190cf(0x186)](_0x6d7392);};wfSessionCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2e2))['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x3eb522(0x163)]('--status\x20<status>',a2_0x3eb522(0x1c7))['option'](a2_0x3eb522(0x253),a2_0x3eb522(0x168))['option'](a2_0x3eb522(0x1fc),a2_0x3eb522(0x20f))[a2_0x3eb522(0x28d)](wfSessionListAction),workflowCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1ce))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1dd))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1e2),a2_0x3eb522(0x1c7))['option'](a2_0x3eb522(0x253),a2_0x3eb522(0x168))['option'](a2_0x3eb522(0x1fc),a2_0x3eb522(0x20f))[a2_0x3eb522(0x28d)](wfSessionListAction);const wfAttemptListAction=async(_0x557b11,_0x221b3b)=>{const _0x3936a1=a2_0x3eb522,_0x59d409=new WorkflowAttemptsCommand(),_0x170466=program[_0x3936a1(0x2af)](),_0x44f585=await createTDXInstance(_0x170466),_0x2e9d5a=await _0x59d409[_0x3936a1(0x2ea)]({'options':{..._0x170466,..._0x221b3b},'args':_0x557b11?[_0x557b11]:[],'tdx':_0x44f585});process[_0x3936a1(0x186)](_0x2e9d5a);},attemptCmd=workflowCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x222))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1e8))['argument'](a2_0x3eb522(0x133),a2_0x3eb522(0x28a))[a2_0x3eb522(0x293)](a2_0x3eb522(0x2b6),a2_0x3eb522(0x19d))[a2_0x3eb522(0x293)](a2_0x3eb522(0x2e9),a2_0x3eb522(0x153))['option'](a2_0x3eb522(0x2f5),a2_0x3eb522(0x240))[a2_0x3eb522(0x163)](a2_0x3eb522(0x29a),a2_0x3eb522(0x303))['option'](a2_0x3eb522(0x1c1),a2_0x3eb522(0x276))[a2_0x3eb522(0x163)](a2_0x3eb522(0x14c),a2_0x3eb522(0x199))[a2_0x3eb522(0x163)](a2_0x3eb522(0x22f),a2_0x3eb522(0x143))[a2_0x3eb522(0x163)]('--include-retried',a2_0x3eb522(0x244))[a2_0x3eb522(0x28d)](async(_0x4ffb2e,_0x136e9e,_0x126a71,_0x5b6593)=>{const _0x3d344c=a2_0x3eb522;if(_0x4ffb2e==='list'){await wfAttemptListAction(_0x136e9e,_0x5b6593);return;}if(!_0x4ffb2e){attemptCmd[_0x3d344c(0x2c9)]();return;}const _0x37b7b2=program[_0x3d344c(0x2af)](),_0x465f6e=await createTDXInstance(_0x37b7b2);let _0x284abc=0x0;if(!_0x136e9e){const _0x2fae74=new WorkflowAttemptCommand();_0x284abc=await _0x2fae74['run']({'options':{..._0x37b7b2,..._0x5b6593},'args':[_0x4ffb2e],'tdx':_0x465f6e});}else{if(_0x136e9e==='logs'){const _0xa65c15=new WorkflowLogsCommand();_0x284abc=await _0xa65c15[_0x3d344c(0x2ea)]({'options':{..._0x37b7b2,..._0x5b6593},'args':_0x126a71?[_0x4ffb2e,_0x126a71]:[_0x4ffb2e],'tdx':_0x465f6e});}else{if(_0x136e9e===_0x3d344c(0x278)){const _0x2b509d=new WorkflowTasksCommand();_0x284abc=await _0x2b509d['run']({'options':{..._0x37b7b2,..._0x5b6593},'args':[_0x4ffb2e],'tdx':_0x465f6e});}else{if(_0x136e9e===_0x3d344c(0x187)){const _0x2476a1=new WorkflowKillCommand();_0x284abc=await _0x2476a1[_0x3d344c(0x2ea)]({'options':{..._0x37b7b2,..._0x5b6593},'args':[_0x4ffb2e],'tdx':_0x465f6e});}else{if(_0x136e9e===_0x3d344c(0x138)){const _0x26c062=new WorkflowRetryCommand();_0x284abc=await _0x26c062[_0x3d344c(0x2ea)]({'options':{..._0x37b7b2,..._0x5b6593},'args':['attempt:'+_0x4ffb2e],'tdx':_0x465f6e});}else console[_0x3d344c(0x218)](_0x3d344c(0x268)+_0x136e9e),console[_0x3d344c(0x218)](_0x3d344c(0x154)),_0x284abc=0x1;}}}}process[_0x3d344c(0x186)](_0x284abc);});attemptCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2e2))['description'](a2_0x3eb522(0x1eb))['option'](a2_0x3eb522(0x2da),'Include\x20retried\x20attempts')[a2_0x3eb522(0x28d)](wfAttemptListAction),workflowCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x263))[a2_0x3eb522(0x27e)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x3eb522(0x163)]('--include-retried',a2_0x3eb522(0x316))[a2_0x3eb522(0x28d)](wfAttemptListAction),workflowCmd['command'](a2_0x3eb522(0x2c5))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x304))[a2_0x3eb522(0x163)](a2_0x3eb522(0x266),a2_0x3eb522(0x2cf))[a2_0x3eb522(0x163)](a2_0x3eb522(0x14c),a2_0x3eb522(0x300))[a2_0x3eb522(0x28d)](async(_0xec5f06,_0x45316b)=>{const _0x1b9e48=a2_0x3eb522,_0x2c75d0=new WorkflowRetryCommand(),_0x167d38=program[_0x1b9e48(0x2af)](),_0x1a567=await createTDXInstance(_0x167d38),_0x318fe7=await _0x2c75d0[_0x1b9e48(0x2ea)]({'options':{..._0x167d38,..._0x45316b},'args':[_0xec5f06],'tdx':_0x1a567});process[_0x1b9e48(0x186)](_0x318fe7);}),workflowCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x291))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x321))[a2_0x3eb522(0x163)](a2_0x3eb522(0x298),a2_0x3eb522(0x157),(_0x1846aa,_0x4c54b4=[])=>[..._0x4c54b4,_0x1846aa],[])['option'](a2_0x3eb522(0x1be),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x3eb522(0x28d)](async(_0x5b0542,_0x247676)=>{const _0x262d3d=a2_0x3eb522,_0x47451c=new WorkflowRunCommand(),_0x541068=program[_0x262d3d(0x2af)](),_0x84cf09=await createTDXInstance(_0x541068),_0x45c921=await _0x47451c[_0x262d3d(0x2ea)]({'options':{..._0x541068,..._0x247676},'args':[_0x5b0542],'tdx':_0x84cf09});process['exit'](_0x45c921);}),workflowCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x18f))['description']('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x3eb522(0x163)](a2_0x3eb522(0x23a),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x3eb522(0x28d)](async(_0x46ef53,_0x4d947e,_0x598304)=>{const _0x5549c4=a2_0x3eb522,_0x5915c8=new WorkflowDownloadCommand(),_0x32f40c=program[_0x5549c4(0x2af)](),_0x545e38=await createTDXInstance(_0x32f40c),_0x5543f2=await _0x5915c8[_0x5549c4(0x2ea)]({'options':{..._0x32f40c,..._0x598304},'args':[_0x46ef53,_0x4d947e||'.'],'tdx':_0x545e38});process[_0x5549c4(0x186)](_0x5543f2);}),workflowCmd[a2_0x3eb522(0x262)]('push\x20[project-name-or-dir]')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x250))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1b1),'Override\x20project\x20name')['option'](a2_0x3eb522(0x23a),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x3eb522(0x163)](a2_0x3eb522(0x237),a2_0x3eb522(0x221))[a2_0x3eb522(0x28d)](async(_0x148a3f,_0xe698f1)=>{const _0x261ecc=a2_0x3eb522,_0x5660b3=new WorkflowPushCommand(),_0x2c6507=program[_0x261ecc(0x2af)](),_0x36a757=await createTDXInstance(_0x2c6507),_0x5b6ce8=await _0x5660b3[_0x261ecc(0x2ea)]({'options':{..._0x2c6507,..._0xe698f1},'args':_0x148a3f?[_0x148a3f]:[],'tdx':_0x36a757});process['exit'](_0x5b6ce8);}),workflowCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x255))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x215))[a2_0x3eb522(0x28d)](async(_0x4c8671,_0x3fb06a)=>{const _0x1010c2=a2_0x3eb522,_0x3754eb=new WorkflowDeleteCommand(),_0x316f25=program[_0x1010c2(0x2af)](),_0x40b5ff=await createTDXInstance(_0x316f25),_0x23d9ab=await _0x3754eb['run']({'options':{..._0x316f25,..._0x3fb06a},'args':[_0x4c8671],'tdx':_0x40b5ff});process[_0x1010c2(0x186)](_0x23d9ab);});const jobCmd=program[a2_0x3eb522(0x262)](a2_0x3eb522(0x12d))['description'](a2_0x3eb522(0x1f6)),jobListAction=async _0x323885=>{const _0x1ae4a4=a2_0x3eb522,_0x26d5a4=new JobListCommand(),_0x15cd59=program[_0x1ae4a4(0x2af)](),_0x443ac9=await createTDXInstance(_0x15cd59),_0x2f8540=await _0x26d5a4[_0x1ae4a4(0x2ea)]({'options':{..._0x15cd59,..._0x323885},'args':[],'tdx':_0x443ac9});process['exit'](_0x2f8540);};jobCmd[a2_0x3eb522(0x262)]('list')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x162))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1e2),a2_0x3eb522(0x24e))[a2_0x3eb522(0x28d)](jobListAction),program[a2_0x3eb522(0x262)](a2_0x3eb522(0x31f),{'hidden':!![]})['description']('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0x3eb522(0x163)]('--status\x20<status>',a2_0x3eb522(0x24e))[a2_0x3eb522(0x28d)](jobListAction),jobCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x302))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x124))[a2_0x3eb522(0x28d)](async(_0x22bcf3,_0x41799a)=>{const _0x416331=a2_0x3eb522,_0x15dc32=new JobShowCommand(),_0x4bb123=program[_0x416331(0x2af)](),_0x43fd08=await createTDXInstance(_0x4bb123),_0x2a85e4=await _0x15dc32['run']({'options':{..._0x4bb123,..._0x41799a},'args':[_0x22bcf3],'tdx':_0x43fd08});process['exit'](_0x2a85e4);}),jobCmd['command'](a2_0x3eb522(0x287))['description']('Kill\x20a\x20job')[a2_0x3eb522(0x28d)](async(_0x4541dd,_0x3ffc18)=>{const _0x4a1853=a2_0x3eb522,_0x4e4785=new JobKillCommand(),_0x148369=program[_0x4a1853(0x2af)](),_0x1e38e1=await createTDXInstance(_0x148369),_0x524b7e=await _0x4e4785[_0x4a1853(0x2ea)]({'options':{..._0x148369,..._0x3ffc18},'args':[_0x4541dd],'tdx':_0x1e38e1});process[_0x4a1853(0x186)](_0x524b7e);}),jobCmd['command'](a2_0x3eb522(0x232))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2c0))[a2_0x3eb522(0x163)]('--job-type\x20<type>',a2_0x3eb522(0x31e),'trino')[a2_0x3eb522(0x163)](a2_0x3eb522(0x2e7),a2_0x3eb522(0x208))['option'](a2_0x3eb522(0x22a),a2_0x3eb522(0x184),a2_0x3eb522(0x233))[a2_0x3eb522(0x28d)](async(_0x3a6951,_0x3a2363)=>{const _0x313044=a2_0x3eb522,_0x7baf2d=new JobSubmitCommand(),_0x4a5119=program[_0x313044(0x2af)](),_0x1422b3=await createTDXInstance(_0x4a5119),_0x294e1a=await _0x7baf2d[_0x313044(0x2ea)]({'options':{..._0x4a5119,..._0x3a2363},'args':_0x3a6951?[_0x3a6951]:[],'tdx':_0x1422b3});process[_0x313044(0x186)](_0x294e1a);}),jobCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2b1))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2c1))['action'](async(_0x579265,_0x5a85b5)=>{const _0x1196fb=a2_0x3eb522,_0x34606e=new JobResultCommand(),_0x4537a4=program['opts'](),_0x35cf56=await createTDXInstance(_0x4537a4),_0x41bfea=await _0x34606e[_0x1196fb(0x2ea)]({'options':{..._0x4537a4,..._0x5a85b5},'args':[_0x579265],'tdx':_0x35cf56});process[_0x1196fb(0x186)](_0x41bfea);});const llmCmd=program['command'](a2_0x3eb522(0x2b2))['description'](a2_0x3eb522(0x1cd));llmCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1bd))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x147))[a2_0x3eb522(0x28d)](async(_0x4851fb,_0x457cc7)=>{const _0x59566e=a2_0x3eb522,_0x32bc97=new LLMUseCommand(),_0x4617ac=program[_0x59566e(0x2af)](),_0x1d7bf7=await createTDXInstance(_0x4617ac),_0x3f76ed=await _0x32bc97[_0x59566e(0x2ea)]({'options':{..._0x4617ac,..._0x457cc7},'args':[_0x4851fb],'tdx':_0x1d7bf7});process[_0x59566e(0x186)](_0x3f76ed);}),llmCmd[a2_0x3eb522(0x262)]('models')[a2_0x3eb522(0x27e)]('List\x20available\x20LLM\x20models')[a2_0x3eb522(0x28d)](async _0x7a1d76=>{const _0x1291a0=a2_0x3eb522,_0x3fe4a0=new LLMModelsCommand(),_0x4d5fb5=program[_0x1291a0(0x2af)](),_0x4b916b=await createTDXInstance(_0x4d5fb5),_0x250492=await _0x3fe4a0[_0x1291a0(0x2ea)]({'options':{..._0x4d5fb5,..._0x7a1d76},'args':[],'tdx':_0x4b916b});process[_0x1291a0(0x186)](_0x250492);});const projectCmd=llmCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x183))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x19e)),llmProjectListAction=async(_0x71d9ec,_0x2fbc29)=>{const _0x460805=a2_0x3eb522,_0x2dcd5f=new LLMProjectsCommand(),_0x9490b4=program[_0x460805(0x2af)](),_0x385517=await createTDXInstance(_0x9490b4),_0x5a19c=await _0x2dcd5f[_0x460805(0x2ea)]({'options':{..._0x9490b4,..._0x2fbc29},'args':_0x71d9ec?[_0x71d9ec]:[],'tdx':_0x385517});process[_0x460805(0x186)](_0x5a19c);};projectCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1ad))['description'](a2_0x3eb522(0x248))[a2_0x3eb522(0x28d)](llmProjectListAction),llmCmd['command'](a2_0x3eb522(0x2aa))['description'](a2_0x3eb522(0x2ca))['action'](llmProjectListAction),projectCmd['command']('create\x20<name>')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x25d))[a2_0x3eb522(0x163)]('--description\x20<text>',a2_0x3eb522(0x1ab))[a2_0x3eb522(0x28d)](async(_0x3d93fe,_0x122032)=>{const _0x73484c=a2_0x3eb522,_0x286c47=new LLMProjectCreateCommand(),_0x1b0dbf=program[_0x73484c(0x2af)](),_0x4db119=await createTDXInstance(_0x1b0dbf),_0x293901=await _0x286c47['run']({'options':{..._0x1b0dbf,..._0x122032},'args':[_0x3d93fe],'tdx':_0x4db119});process[_0x73484c(0x186)](_0x293901);}),projectCmd[a2_0x3eb522(0x262)]('delete\x20<name>')['description'](a2_0x3eb522(0x1e5))[a2_0x3eb522(0x28d)](async(_0x1f2d7b,_0x1bfbf6)=>{const _0xb3bf77=a2_0x3eb522,_0x534cbc=new LLMProjectDeleteCommand(),_0x2bff44=program[_0xb3bf77(0x2af)](),_0x47d1c5=await createTDXInstance(_0x2bff44),_0x3c5dc7=await _0x534cbc['run']({'options':{..._0x2bff44,..._0x1bfbf6},'args':[_0x1f2d7b],'tdx':_0x47d1c5});process[_0xb3bf77(0x186)](_0x3c5dc7);}),projectCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2a3))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2fe))[a2_0x3eb522(0x163)]('-o,\x20--output\x20<folder>',a2_0x3eb522(0x16c))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2be),a2_0x3eb522(0x1f7))[a2_0x3eb522(0x28d)](async(_0x56613f,_0x4b02f4)=>{const _0x21ecb1=a2_0x3eb522,_0x418e79=new LLMProjectBackupCommand(),_0x2ad464=program[_0x21ecb1(0x2af)](),_0x37c634=await createTDXInstance(_0x2ad464),_0x43347f=await _0x418e79[_0x21ecb1(0x2ea)]({'options':{..._0x2ad464,..._0x4b02f4},'args':[_0x56613f],'tdx':_0x37c634});process['exit'](_0x43347f);}),projectCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x290))[a2_0x3eb522(0x27e)]('Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder')[a2_0x3eb522(0x163)](a2_0x3eb522(0x2d9),a2_0x3eb522(0x189))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2be),a2_0x3eb522(0x196))['action'](async(_0x1951ee,_0x10f3ab)=>{const _0x59448f=a2_0x3eb522,_0xa955e7=new LLMProjectRestoreCommand(),_0x56d729=program[_0x59448f(0x2af)](),_0x480b8d=await createTDXInstance(_0x56d729),_0x478d42=await _0xa955e7['run']({'options':{..._0x56d729,..._0x10f3ab},'args':[_0x1951ee],'tdx':_0x480b8d});process[_0x59448f(0x186)](_0x478d42);});const agentCmd=llmCmd[a2_0x3eb522(0x262)]('agent')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2c3)),llmAgentListAction=async(_0x2eed09,_0x565786)=>{const _0x4f49d4=a2_0x3eb522,_0x529e4b=new LLMAgentsCommand(),_0x30cdd9=program[_0x4f49d4(0x2af)](),_0x5281ab=await createTDXInstance(_0x30cdd9),_0x3059b0=await _0x529e4b[_0x4f49d4(0x2ea)]({'options':{..._0x30cdd9,..._0x565786},'args':_0x2eed09?[_0x2eed09]:[],'tdx':_0x5281ab});process[_0x4f49d4(0x186)](_0x3059b0);};agentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1ad))['description'](a2_0x3eb522(0x2a2))[a2_0x3eb522(0x28d)](llmAgentListAction),llmCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x264))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x203))[a2_0x3eb522(0x28d)](llmAgentListAction),agentCmd['command'](a2_0x3eb522(0x27f))[a2_0x3eb522(0x27e)]('Show\x20agent\x20details')[a2_0x3eb522(0x28d)](async(_0x5ac758,_0xc31a87)=>{const _0x1d034a=a2_0x3eb522,_0x32a7ac=new LLMAgentShowCommand(),_0x540878=program[_0x1d034a(0x2af)](),_0x1d8708=await createTDXInstance(_0x540878),_0x2aa0fc=await _0x32a7ac[_0x1d034a(0x2ea)]({'options':{..._0x540878,..._0xc31a87},'args':[_0x5ac758],'tdx':_0x1d8708});process['exit'](_0x2aa0fc);}),agentCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2e6))[a2_0x3eb522(0x27e)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')['option'](a2_0x3eb522(0x27a),a2_0x3eb522(0x1c0))[a2_0x3eb522(0x163)](a2_0x3eb522(0x320),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x3eb522(0x1f9))[a2_0x3eb522(0x163)](a2_0x3eb522(0x29b),'Starter\x20message')[a2_0x3eb522(0x163)](a2_0x3eb522(0x21f),a2_0x3eb522(0x280),'4')[a2_0x3eb522(0x163)](a2_0x3eb522(0x19c),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x3eb522(0x150))[a2_0x3eb522(0x28d)](async(_0x2744fb,_0x89bcd5)=>{const _0xb8b61b=a2_0x3eb522,_0x5b4e3a=new LLMAgentCreateCommand(),_0x16d235=program['opts'](),_0x2b0e86=await createTDXInstance(_0x16d235),_0x48b089=await _0x5b4e3a['run']({'options':{..._0x16d235,..._0x89bcd5},'args':[_0x2744fb],'tdx':_0x2b0e86});process[_0xb8b61b(0x186)](_0x48b089);}),agentCmd['command'](a2_0x3eb522(0x2db))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x205))['option'](a2_0x3eb522(0x1ef),a2_0x3eb522(0x297))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2ee),a2_0x3eb522(0x29f))['option'](a2_0x3eb522(0x134),a2_0x3eb522(0x2d2))[a2_0x3eb522(0x163)]('--starter-message\x20<text>','Starter\x20message')['action'](async(_0x1bb69d,_0xebd615)=>{const _0x51280b=a2_0x3eb522,_0x2ab19b=new LLMAgentUpdateCommand(),_0x196546=program[_0x51280b(0x2af)](),_0x51b1b2=await createTDXInstance(_0x196546),_0x45020f=await _0x2ab19b[_0x51280b(0x2ea)]({'options':{..._0x196546,..._0xebd615},'args':[_0x1bb69d],'tdx':_0x51b1b2});process[_0x51280b(0x186)](_0x45020f);}),agentCmd['command'](a2_0x3eb522(0x20d))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1a2))['action'](async(_0x1ba81b,_0x24041f)=>{const _0x2e0442=a2_0x3eb522,_0x5cc005=new LLMAgentDeleteCommand(),_0x4f9959=program[_0x2e0442(0x2af)](),_0x15e974=await createTDXInstance(_0x4f9959),_0x43f9dc=await _0x5cc005[_0x2e0442(0x2ea)]({'options':{..._0x4f9959,..._0x24041f},'args':[_0x1ba81b],'tdx':_0x15e974});process[_0x2e0442(0x186)](_0x43f9dc);}),llmCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x2a4))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1b6))[a2_0x3eb522(0x163)]('--last','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')['action'](async(_0x1c17ba,_0x1c6d01)=>{const _0x27d239=a2_0x3eb522,_0x4c7163=new LLMHistoryCommand(),_0x5022aa=program['opts'](),_0x2b6535=await createTDXInstance(_0x5022aa),_0x2b434c=await _0x4c7163[_0x27d239(0x2ea)]({'options':{..._0x5022aa,..._0x1c6d01},'args':_0x1c17ba?[_0x1c17ba]:[],'tdx':_0x2b6535});process['exit'](_0x2b434c);}),llmCmd[a2_0x3eb522(0x262)]('proxy')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1c8))[a2_0x3eb522(0x163)](a2_0x3eb522(0x261),a2_0x3eb522(0x1ee),'4000')[a2_0x3eb522(0x163)]('--project\x20<name>',a2_0x3eb522(0x214))[a2_0x3eb522(0x163)]('--agent\x20<name>',a2_0x3eb522(0x1aa))['action'](async _0x8ec010=>{const _0x30f4cd=a2_0x3eb522,_0x3843e0=new LLMProxyCommand(),_0x182a66=program['opts'](),_0x20dccc=await createTDXInstance(_0x182a66),_0x3efb8d={..._0x8ec010,'port':_0x8ec010[_0x30f4cd(0x1b5)]?parseInt(_0x8ec010[_0x30f4cd(0x1b5)],0xa):undefined},_0x519ec0=await _0x3843e0[_0x30f4cd(0x2ea)]({'options':{..._0x182a66,..._0x3efb8d},'args':[],'tdx':_0x20dccc});process[_0x30f4cd(0x186)](_0x519ec0);}),program[a2_0x3eb522(0x262)](a2_0x3eb522(0x192))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1fa))[a2_0x3eb522(0x163)](a2_0x3eb522(0x320),a2_0x3eb522(0x313),'sonnet')[a2_0x3eb522(0x163)](a2_0x3eb522(0x246),a2_0x3eb522(0x23b))[a2_0x3eb522(0x1a9)]()[a2_0x3eb522(0x1fb)](!![])[a2_0x3eb522(0x2de)](a2_0x3eb522(0x24d),a2_0x3eb522(0x24b))['action'](async(_0x5262ee,_0x95489d)=>{const _0x44e391=a2_0x3eb522,_0x3c94cf=program[_0x44e391(0x2af)](),_0x50a4d7=Array[_0x44e391(0x210)](_0x5262ee)?_0x5262ee:[];if(_0x50a4d7[0x0]==='statusline'){const _0x482f0e=new ClaudeStatuslineCommand(),_0x163992=await _0x482f0e[_0x44e391(0x2ea)]({'options':{..._0x3c94cf,..._0x95489d},'args':_0x50a4d7['slice'](0x1),'tdx':null});process[_0x44e391(0x186)](_0x163992);}if(_0x50a4d7[0x0]===_0x44e391(0x1fe)){const _0x5d343f=new ClaudeUsageCommand(),_0x5119a5=await _0x5d343f[_0x44e391(0x2ea)]({'options':{..._0x3c94cf,..._0x95489d},'args':_0x50a4d7[_0x44e391(0x31d)](0x1),'tdx':null});process[_0x44e391(0x186)](_0x5119a5);}const _0x22172c=new ClaudeCommand(),_0x20ea05=await createTDXInstance(_0x3c94cf),_0x3053e8=await _0x22172c['run']({'options':{..._0x3c94cf,..._0x95489d},'args':_0x50a4d7,'tdx':_0x20ea05});process[_0x44e391(0x186)](_0x3053e8);}),program[a2_0x3eb522(0x262)]('context')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x242))[a2_0x3eb522(0x163)]('--clear',a2_0x3eb522(0x149))[a2_0x3eb522(0x28d)](async _0xca9c4f=>{const _0x38ac5b=a2_0x3eb522,_0xa3ded4=new ContextCommand(),_0x463b23=program['opts'](),_0x350a5c=await _0xa3ded4[_0x38ac5b(0x2ea)]({'options':{..._0x463b23,..._0xca9c4f},'args':[],'tdx':null});process[_0x38ac5b(0x186)](_0x350a5c);}),program['command'](a2_0x3eb522(0x231))['description'](a2_0x3eb522(0x123))[a2_0x3eb522(0x163)](a2_0x3eb522(0x252),a2_0x3eb522(0x149))[a2_0x3eb522(0x28d)](async(_0x121e0a,_0x4c5712,_0x10dddc)=>{const _0x14bf96=a2_0x3eb522,_0x35f28b=new UseCommand(),_0x1c545e=program[_0x14bf96(0x2af)](),_0x14fd9c=[];if(_0x121e0a)_0x14fd9c[_0x14bf96(0x1cb)](_0x121e0a);if(_0x4c5712)_0x14fd9c['push'](_0x4c5712);const _0x4e6636=await _0x35f28b[_0x14bf96(0x2ea)]({'options':{..._0x1c545e,..._0x10dddc},'args':_0x14fd9c,'tdx':null});process[_0x14bf96(0x186)](_0x4e6636);}),program['command']('chats')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x26d))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1ae),a2_0x3eb522(0x159))[a2_0x3eb522(0x28d)](async _0x8e18fc=>{const _0x59d6fb=a2_0x3eb522,_0x59ab85=new ChatsCommand(),_0x348f1b=program['opts'](),_0x453377=await createTDXInstance(_0x348f1b),_0x2cebe4=await _0x59ab85[_0x59d6fb(0x2ea)]({'options':{..._0x348f1b,..._0x8e18fc},'args':[],'tdx':_0x453377});process[_0x59d6fb(0x186)](_0x2cebe4);});const authCmd=program['command'](a2_0x3eb522(0x25f))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x251));async function runAuthStatusCommand(_0x51c671){const _0x1e0252=a2_0x3eb522,_0xf408b8=new AuthStatusCommand(),_0x1754cf=program[_0x1e0252(0x2af)](),_0x410dab=await createTDXInstance(_0x1754cf),_0x377c4a=await _0xf408b8[_0x1e0252(0x2ea)]({'options':{..._0x1754cf,..._0x51c671},'args':[],'tdx':_0x410dab});process[_0x1e0252(0x186)](_0x377c4a);}authCmd[a2_0x3eb522(0x28d)](runAuthStatusCommand),authCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x169))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2dd))[a2_0x3eb522(0x28d)](runAuthStatusCommand),authCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1f1))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x247))[a2_0x3eb522(0x2de)]('after','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')[a2_0x3eb522(0x28d)](async _0x5d6f93=>{const _0x3a7e68=a2_0x3eb522,_0x104152=new AuthSetupCommand(),_0x587dc5=program['opts'](),_0x1677ab=await createTDXInstance(_0x587dc5),_0x1243cb=await _0x104152[_0x3a7e68(0x2ea)]({'options':{..._0x587dc5,..._0x5d6f93},'args':[],'tdx':_0x1677ab});process[_0x3a7e68(0x186)](_0x1243cb);}),authCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1f3))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1a5))['addHelpText'](a2_0x3eb522(0x24d),a2_0x3eb522(0x15e))['action'](async _0x1fe53e=>{const _0x36cde5=a2_0x3eb522,_0x3c5a24=new AuthClearCommand(),_0x38a502=program[_0x36cde5(0x2af)](),_0xd84a1b=await _0x3c5a24[_0x36cde5(0x2ea)]({'options':{..._0x38a502,..._0x1fe53e},'args':[],'tdx':null});process['exit'](_0xd84a1b);}),program[a2_0x3eb522(0x262)](a2_0x3eb522(0x188))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2c4))[a2_0x3eb522(0x28d)](async _0x4b3216=>{const _0x4f50db=a2_0x3eb522,_0x39c0d9=new ProfilesCommand(),_0x48c25f=program[_0x4f50db(0x2af)](),_0xc42a2=await _0x39c0d9['run']({'options':{..._0x48c25f,..._0x4b3216},'args':[],'tdx':null});process['exit'](_0xc42a2);});const engageCmd=program[a2_0x3eb522(0x262)]('engage')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2bf)),createEngageAction=_0x3b86ae=>{return async(_0x529867,_0x4232d7)=>{const _0x1a2ff3=a2_0x1078,_0xdf3250=new _0x3b86ae(),_0x3dc8a0=program[_0x1a2ff3(0x2af)](),_0x3f2146=await createTDXInstance(_0x3dc8a0),_0x2fe76f=await _0xdf3250['run']({'options':{..._0x3dc8a0,..._0x4232d7},'args':[_0x529867],'tdx':_0x3f2146});process[_0x1a2ff3(0x186)](_0x2fe76f);};},createEngageNoArgAction=_0x3d7029=>{return async _0x585bdb=>{const _0x3e4c82=a2_0x1078,_0x40dfc3=new _0x3d7029(),_0x259c7b=program['opts'](),_0x59fcd0=await createTDXInstance(_0x259c7b),_0x2629eb=await _0x40dfc3[_0x3e4c82(0x2ea)]({'options':{..._0x259c7b,..._0x585bdb},'args':[],'tdx':_0x59fcd0});process['exit'](_0x2629eb);};},campaignCmd=engageCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x219))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x279)),campaignListAction=async(_0x4e2d3b,_0x2aba05)=>{const _0x147631=a2_0x3eb522,_0x5b9145=new EngageCampaignsCommand(),_0x5333d0=program[_0x147631(0x2af)](),_0x1a9912=await createTDXInstance(_0x5333d0),_0x16d45d=await _0x5b9145[_0x147631(0x2ea)]({'options':{..._0x5333d0,..._0x2aba05},'args':_0x4e2d3b?[_0x4e2d3b]:[],'tdx':_0x1a9912});process[_0x147631(0x186)](_0x16d45d);};campaignCmd[a2_0x3eb522(0x262)]('list\x20[pattern]')['description'](a2_0x3eb522(0x17a))[a2_0x3eb522(0x163)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x3eb522(0x163)](a2_0x3eb522(0x1e2),a2_0x3eb522(0x1af))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),a2_0x3eb522(0x311))[a2_0x3eb522(0x28d)](campaignListAction),engageCmd['command'](a2_0x3eb522(0x145))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x295))['option'](a2_0x3eb522(0x19b),a2_0x3eb522(0x2d3))['option'](a2_0x3eb522(0x1e2),a2_0x3eb522(0x1af))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),a2_0x3eb522(0x311))['action'](campaignListAction),campaignCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x25b))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1bf))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),a2_0x3eb522(0x311))[a2_0x3eb522(0x163)](a2_0x3eb522(0x21e),a2_0x3eb522(0x1ff))[a2_0x3eb522(0x28d)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3eb522(0x262)]('create')['description']('Create\x20a\x20new\x20campaign')[a2_0x3eb522(0x1ba)]('--name\x20<name>','Campaign\x20name')[a2_0x3eb522(0x1ba)]('--type\x20<type>',a2_0x3eb522(0x16e))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),'Workspace\x20name\x20(required)')[a2_0x3eb522(0x163)](a2_0x3eb522(0x1c9),a2_0x3eb522(0x282))[a2_0x3eb522(0x163)](a2_0x3eb522(0x18a),a2_0x3eb522(0x217))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2e0),a2_0x3eb522(0x28f))[a2_0x3eb522(0x163)](a2_0x3eb522(0x31c),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x3eb522(0x163)](a2_0x3eb522(0x1bc),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x3eb522(0x163)]('--timezone\x20<tz>',a2_0x3eb522(0x30d))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x3eb522(0x17e))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1a7))[a2_0x3eb522(0x163)]('--workspace\x20<name>','Workspace\x20name')[a2_0x3eb522(0x163)](a2_0x3eb522(0x1b1),'New\x20campaign\x20name')['option'](a2_0x3eb522(0x1c9),a2_0x3eb522(0x282))[a2_0x3eb522(0x163)](a2_0x3eb522(0x18a),a2_0x3eb522(0x217))['option'](a2_0x3eb522(0x2e0),a2_0x3eb522(0x28f))[a2_0x3eb522(0x163)]('--json-columns\x20<cols>',a2_0x3eb522(0x20a))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1bc),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x3eb522(0x163)](a2_0x3eb522(0x18b),a2_0x3eb522(0x30d))[a2_0x3eb522(0x28d)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x18e))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1e9))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),a2_0x3eb522(0x311))['option'](a2_0x3eb522(0x177),a2_0x3eb522(0x2dc))[a2_0x3eb522(0x28d)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x3eb522(0x171))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x21a))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),a2_0x3eb522(0x311))[a2_0x3eb522(0x28d)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x173))['description'](a2_0x3eb522(0x2e5))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),a2_0x3eb522(0x311))[a2_0x3eb522(0x28d)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x3eb522(0x1d0))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x26c))['option']('--workspace\x20<name>',a2_0x3eb522(0x311))[a2_0x3eb522(0x28d)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x26b))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2b8))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),'Workspace\x20name')[a2_0x3eb522(0x28d)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x3eb522(0x160))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x307)),templateListAction=async(_0x4e3d43,_0x5329a3)=>{const _0x2caedc=a2_0x3eb522,_0x5d5fe2=new EngageTemplatesCommand(),_0x563739=program[_0x2caedc(0x2af)](),_0x1af6b1=await createTDXInstance(_0x563739),_0x451ad6=await _0x5d5fe2[_0x2caedc(0x2ea)]({'options':{..._0x563739,..._0x5329a3},'args':_0x4e3d43?[_0x4e3d43]:[],'tdx':_0x1af6b1});process[_0x2caedc(0x186)](_0x451ad6);};templateCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1ad))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x21b))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),'Workspace\x20name')[a2_0x3eb522(0x28d)](templateListAction),engageCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1bb))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x12a))['option'](a2_0x3eb522(0x13c),a2_0x3eb522(0x311))['action'](templateListAction),templateCmd['command'](a2_0x3eb522(0x25b))[a2_0x3eb522(0x27e)]('Show\x20email\x20template\x20details')[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),a2_0x3eb522(0x311))[a2_0x3eb522(0x163)](a2_0x3eb522(0x21e),a2_0x3eb522(0x1ff))[a2_0x3eb522(0x28d)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1c3))['description'](a2_0x3eb522(0x172))[a2_0x3eb522(0x1ba)](a2_0x3eb522(0x1b1),a2_0x3eb522(0x2d7))['requiredOption'](a2_0x3eb522(0x21c),a2_0x3eb522(0x16b))[a2_0x3eb522(0x1ba)]('--html\x20<html>',a2_0x3eb522(0x1e0))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),'Workspace\x20name\x20(required)')[a2_0x3eb522(0x163)](a2_0x3eb522(0x2f3),a2_0x3eb522(0x2f2))[a2_0x3eb522(0x163)]('--editor-type\x20<type>',a2_0x3eb522(0x285))[a2_0x3eb522(0x28d)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x3eb522(0x17e))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x236))[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),'Workspace\x20name')[a2_0x3eb522(0x163)](a2_0x3eb522(0x1b1),a2_0x3eb522(0x272))[a2_0x3eb522(0x163)](a2_0x3eb522(0x21c),a2_0x3eb522(0x16b))[a2_0x3eb522(0x163)](a2_0x3eb522(0x135),a2_0x3eb522(0x1e0))[a2_0x3eb522(0x163)](a2_0x3eb522(0x2f3),a2_0x3eb522(0x2f2))[a2_0x3eb522(0x28d)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x18e))[a2_0x3eb522(0x27e)]('Delete\x20an\x20email\x20template')[a2_0x3eb522(0x163)](a2_0x3eb522(0x13c),a2_0x3eb522(0x311))[a2_0x3eb522(0x163)](a2_0x3eb522(0x177),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')['description'](a2_0x3eb522(0x1c6)),workspaceListAction=async(_0x327c93,_0x5b0641)=>{const _0x215164=a2_0x3eb522,_0x3149a5=new EngageWorkspacesCommand(),_0x5ac9f4=program[_0x215164(0x2af)](),_0x3235a8=await createTDXInstance(_0x5ac9f4),_0x1908a2=await _0x3149a5['run']({'options':{..._0x5ac9f4,..._0x5b0641},'args':_0x327c93?[_0x327c93]:[],'tdx':_0x3235a8});process['exit'](_0x1908a2);};workspaceCmd['command'](a2_0x3eb522(0x1ad))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x127))['action'](workspaceListAction),engageCmd['command']('workspaces\x20[pattern]')[a2_0x3eb522(0x27e)](a2_0x3eb522(0x1b4))[a2_0x3eb522(0x28d)](workspaceListAction),workspaceCmd['command'](a2_0x3eb522(0x25b))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x2e3))[a2_0x3eb522(0x163)](a2_0x3eb522(0x21e),a2_0x3eb522(0x1ff))[a2_0x3eb522(0x28d)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x1c3))[a2_0x3eb522(0x27e)](a2_0x3eb522(0x120))['requiredOption'](a2_0x3eb522(0x1b1),a2_0x3eb522(0x311))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1c9),'Workspace\x20description')[a2_0x3eb522(0x28d)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command']('update\x20<name-or-id>')[a2_0x3eb522(0x27e)]('Update\x20a\x20workspace')[a2_0x3eb522(0x163)]('--name\x20<name>',a2_0x3eb522(0x178))[a2_0x3eb522(0x163)](a2_0x3eb522(0x1c9),a2_0x3eb522(0x11f))[a2_0x3eb522(0x28d)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3eb522(0x262)](a2_0x3eb522(0x18e))[a2_0x3eb522(0x27e)]('Delete\x20a\x20workspace')[a2_0x3eb522(0x163)](a2_0x3eb522(0x177),a2_0x3eb522(0x2dc))[a2_0x3eb522(0x28d)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3eb522(0x262)]('use\x20<name>')[a2_0x3eb522(0x27e)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x3eb522(0x28d)](createEngageAction(EngageWorkspaceUseCommand));export{program};export function runCLI(){const _0x55e1a9=a2_0x3eb522;program[_0x55e1a9(0x2d5)](process[_0x55e1a9(0x174)]);!process[_0x55e1a9(0x174)][_0x55e1a9(0x31d)](0x2)['length']&&program[_0x55e1a9(0x29e)]();const _0x30cd2d=packageJson[_0x55e1a9(0x1b0)];process[_0x55e1a9(0x27c)][_0x55e1a9(0x12f)]&&process[_0x55e1a9(0x174)][_0x55e1a9(0x2ff)]>0x2&&!_0x30cd2d['includes'](_0x55e1a9(0x2b0))&&checkForUpdate(_0x30cd2d)[_0x55e1a9(0x312)](_0x3ffc30=>{_0x3ffc30&&displayUpdateNotification(_0x3ffc30);})[_0x55e1a9(0x191)](()=>{});}
1
+ const a2_0x1de319=a2_0x4b4d;(function(_0x333cf8,_0xfe98f3){const _0x5f56c8=a2_0x4b4d,_0x34418e=_0x333cf8();while(!![]){try{const _0x57fd44=parseInt(_0x5f56c8(0x21f))/0x1*(parseInt(_0x5f56c8(0x3b4))/0x2)+parseInt(_0x5f56c8(0x35e))/0x3*(-parseInt(_0x5f56c8(0x36c))/0x4)+-parseInt(_0x5f56c8(0x390))/0x5*(parseInt(_0x5f56c8(0x211))/0x6)+parseInt(_0x5f56c8(0x2de))/0x7+-parseInt(_0x5f56c8(0x3a6))/0x8+parseInt(_0x5f56c8(0x3bc))/0x9+parseInt(_0x5f56c8(0x278))/0xa*(parseInt(_0x5f56c8(0x26b))/0xb);if(_0x57fd44===_0xfe98f3)break;else _0x34418e['push'](_0x34418e['shift']());}catch(_0x50cff3){_0x34418e['push'](_0x34418e['shift']());}}}(a2_0xbcf1,0x58d14));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';function a2_0xbcf1(){const _0x1a6c6a=['Skip\x20confirmation\x20prompts','filter','113773gUJryW','Skip\x20population\x20counting','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','outputHelp','logLevel','Master\x20database\x20name','Database\x20to\x20query\x20(default:\x20information_schema)','\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\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20--\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20previous\x20Claude\x20Code\x20session\x0a\x20\x20tdx\x20claude\x20usage\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\x20Output\x20usage\x20as\x20JSON','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--reason\x20<text>','create\x20<parent_name>\x20<folder_name>','Job\x20management\x20commands','30eGDXwR','Database\x20name\x20(default:\x20information_schema)','Start\x20a\x20new\x20chat\x20session','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--name\x20<name>','0.7','--limit\x20<number>','End\x20time\x20filter\x20(ISO\x208601\x20format)','System\x20prompt/instructions\x20(default:\x20empty)','workflow','activations\x20<segment_name>','fields\x20[name]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','--from\x20<timestamp>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','subcommandDescription','Task\x20name\x20for\x20logs\x20action','Include\x20retried\x20attempts','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','INFO','--last','--add-behaviors-file\x20<file>','slice','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Create\x20a\x20workspace','--project\x20<name>','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','describe','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','build-info.json','models','format','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','update\x20<name-or-id>','then','Pause\x20a\x20campaign','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','database','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','required','agent','forEach','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','parents\x20[pattern]','Delete\x20a\x20campaign','subcommandTerm','update\x20<segment_name>','submit\x20[query]','--max-tool-iterations\x20<n>','aliases','-d,\x20--database\x20<name>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','List\x20available\x20LLM\x20models','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','--session-time\x20<time>','--schedule-option\x20<value>','attempt','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--llm-project\x20<name>','List\x20all\x20users\x20in\x20the\x20account','databases\x20[pattern]','List\x20all\x20data\x20connections','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--status\x20<status>','utf-8','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Email\x20sender\x20ID\x20for\x20delivery','view\x20[segment_name]','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','table','show\x20<name>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','--table\x20<table>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','show\x20<name-or-id>','show\x20[table]','--attributes\x20<json>','context','--name\x20<text>','Parent\x20segment\x20description','Request\x20body\x20as\x20JSON\x20string','Create\x20segment\x20folder','use\x20<path>','--prompt\x20<text>','Workflow\x20project\x20management','length','--no-proxy','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','show\x20[segment_name]','isTTY','log','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','gitRevision','Show\x20connection\x20details\x20by\x20name','Table\x20management\x20commands','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','TRACE','Duplicate\x20a\x20campaign','--type\x20<api_type>','colorFn','3509121fJnFoH','-X,\x20--method\x20<method>','push\x20[parent_or_file]','CDP\x20segment\x20management\x20commands','segment','Agent\x20description','Workflow\x20parameter\x20(repeatable)','logs','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','-w,\x20--web','connection','--full','--add-attributes-file\x20<file>','--tsv','Usage:\x20','pause\x20<name-or-id>','stdout','[task-name]','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Save\x20output\x20to\x20file','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','-y,\x20--yes','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','list\x20[project]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','addHelpText','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Segment\x20description','--format\x20<format>','Output\x20as\x20JSON','version','hidden','Output\x20folder\x20(default:\x20{project_name}.llm)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Database\x20management\x20commands','-d,\x20--database\x20<database>','json','info\x20[segment_name]','kill','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Setup\x20API\x20key\x20authentication\x20interactively','Timezone\x20(e.g.,\x20America/Los_Angeles)','show\x20[name]','Include\x20retried\x20attempts\x20(for\x20list)','--skip-validation','--params\x20<json>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','--parent-folder\x20<name>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','usage','Master\x20table\x20name','profiles','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Attributes\x20as\x20JSON\x20string','Add\x20behaviors\x20as\x20JSON\x20string','argv','--kind\x20<type>','--name\x20<new_name>','parent_segment','--rule-file\x20<file>','--dry-run','status','Commands:','--data\x20<data>','--clear','hook','Set\x20operation\x20timeout\x20in\x20seconds','Filtering\x20rule\x20as\x20JSON\x20string','--folder\x20<name>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--trace','engage','clear','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','get','Customer\x20group\x20from\x20JSON\x20file','--behavior\x20[name]','.dev','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--email-sender-id\x20<id>','commandUsage','Behaviors\x20from\x20JSON\x20file','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--rule\x20<json>','use\x20<name>','registeredArguments','fields\x20[parent_name]','Show\x20master\x20table\x20sample\x20data','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Show\x20segment\x20details\x20(alias\x20for\x20view)','api\x20[endpoint]','--parent-segment\x20<name>','Updated\x20description','Read\x20query\x20from\x20file','isArray','Update\x20a\x20workspace','desc','after','Interactive\x20chat\x20selector','tsv','proxy','--jsonl','list\x20[pattern]','result\x20<job-id>','-r,\x20--recursive','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Resume\x20a\x20paused\x20campaign','Attempt\x20ID','Submit\x20a\x20job','workflows\x20[project]','view\x20[name]','Clear\x20session\x20context','padWidth','Add\x20attributes\x20as\x20JSON\x20string','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--enriched','--temperature\x20<n>','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','jsonl','download\x20<project-name>\x20[output-dir]','Email\x20subject\x20template','argument','[attempt-id]','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','--description\x20<desc>','491943pNQITi','requiredOption','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--start-at\x20<datetime>','Set\x20or\x20show\x20parent\x20segment\x20context','New\x20segment\x20name','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--to\x20<timestamp>','--segment\x20<path>','-v,\x20--verbose','show\x20<agent-name>','delete\x20<name-or-id>','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','8yfHukb','--yes','[action]','padEnd','User\x20management\x20commands','--timeout\x20<seconds>','backup\x20<name>','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','--in\x20<name>','-o,\x20--output\x20<folder>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','desc\x20[segment_name]','restore\x20<folder>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','pull\x20[name]','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Unknown\x20action:\x20','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Create\x20a\x20new\x20campaign','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','pull\x20[parent_or_file]','Trino\x20catalog\x20(default:\x20td)','catch','buildTime','Agent\x20reference\x20(project-name/agent-name)','Output\x20as\x20JSON\x20Lines','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--schedule-type\x20<type>','--revision\x20<revision>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','map','4000','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--subject\x20<subject>','commandDescription','allowExcessArguments','177305ACPBgO','parent-segment','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Make\x20segment\x20invisible\x20(default:\x20visible)','summary','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','run','duplicate\x20<name-or-id>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','parse','Agent\x20prompt/instructions','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--agent\x20<name>','Options:','commands','Show\x20workspace\x20details','Maximum\x20recursion\x20depth\x20(default:\x2010)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','project','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Delete\x20an\x20LLM\x20project','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','1681600AUqZAe','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--add-attributes\x20<json>','--force','retry','users','Starter\x20message','update\x20<agent-name>','information_schema','repeat','Enable\x20verbose\x20logging','Resume\x20from\x20specific\x20task\x20(retry)','Revision\x20name\x20(default:\x20timestamp)','Editor\x20type','2586nOCXQQ','projects\x20[pattern]','-f,\x20--file\x20<path>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','list','--workspace\x20<name>','claude\x20[args...]','segments\x20[path]','651339fMSsIb','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--model\x20<name>','Open\x20parent\x20segment\x20in\x20web\x20browser','--include-retried','resume\x20<name-or-id>','--json-columns\x20<cols>','tables\x20[pattern]','folder','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--starter-message\x20<text>','name','Create\x20a\x20new\x20LLM\x20project','sql\x20[segment_name]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Workspace\x20name','create','--agent\x20<ref>','alias','--attribute\x20[name]','description','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Updated\x20timezone','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','campaign','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--invisible','argumentDescription','Show\x20only\x20master\x20table\x20validation','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','debug','--customer-group\x20<json>','Update\x20an\x20existing\x20agent','validate\x20[name]','-o,\x20--output\x20<file>','New\x20workspace\x20name','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','session','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','sql\x20[name]','Parent\x20segment\x20management','--in\x20<database>','Campaign\x20management','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Override\x20project\x20name','command','--plaintext\x20<text>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','HTML\x20template\x20content','--description\x20<text>','apiKey','Folder\x20description','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Workflow\x20(Digdag)\x20management\x20commands','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','-u,\x20--use','-H,\x20--header\x20<header>','Customer\x20group\x20as\x20JSON\x20string','us01','--job-type\x20<type>','--site\x20<site>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--system-prompt\x20<text>','preview\x20[file]','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Output\x20file\x20path\x20(default:\x20<name>.yml)','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','optionTerm','auth','DEBUG','create\x20<segment_name>','templates\x20[pattern]','trace','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','run\x20[name]','delete\x20<project-name-or-id>','Remove\x20API\x20key\x20from\x20system\x20keychain','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','_hidden','kill\x20<job-id>','Skip\x20confirmation\x20prompt','template','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','error','--limit\x20<rows>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','injectIntoOptions','List\x20all\x20available\x20profiles','Workspace\x20name\x20(required)','--output\x20<file>','72QkRGzN','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Template\x20name','push\x20[file]','--max-depth\x20<depth>','use\x20<project-name>','show\x20<folder_ref>','Updated\x20schedule\x20option','LLM\x20project\x20management','preAction','history\x20[chat-id]','options','parent','559zjgHQd','folders\x20<parent_name>','Arguments:','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Parent\x20folder\x20name\x20for\x20nested\x20folders','configureHelp','\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','includes','port','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)',',\x20version\x20','--include-subtasks','[DEPRECATED]\x20Segment\x20folder\x20management','replace','optionDescription','--html\x20<html>','Delete\x20a\x20workspace','opts','Plaintext\x20template\x20content','push','help','--timezone\x20<tz>','Force\x20retry\x20even\x20if\x20not\x20failed','Reason\x20for\x20killing\x20the\x20attempt','Campaign\x20name','validate\x20[file]','Attributes\x20from\x20JSON\x20file','--table','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','argumentTerm','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','query\x20[sql]','../package.json','--master','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','flatMap','--no-color','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--interval\x20<range>','--editor-type\x20<type>','action','Launch\x20a\x20campaign','retry\x20<session-id>','tdx','--type\x20<type>','--name\x20<new-name>','--limit\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','tdx\x20','create\x20<name>','Run\x20Trino\x20query\x20with\x20streaming\x20results','option','chats','show\x20<job-id>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Update\x20an\x20email\x20template','use\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Model\x20name\x20(default:\x20claude-4.5-sonnet)','push\x20[name]','--json','\x20-\x20built\x20','Pull\x20child\x20segments\x20to\x20YAML\x20files','campaigns\x20[pattern]','join','Output\x20file\x20path','--color','exit','-1d','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Campaign\x20description','--database\x20<name>'];a2_0xbcf1=function(){return _0x1a6c6a;};return a2_0xbcf1();}import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x1de319(0x399)](readFileSync(join(__dirname,a2_0x1de319(0x240)),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0x1de319(0x399)](readFileSync(join(__dirname,a2_0x1de319(0x295)),a2_0x1de319(0x2b8)));}catch{}if(process[a2_0x1de319(0x317)]['includes']('--version')){let versionOutput=a2_0x1de319(0x251)+packageJson[a2_0x1de319(0x2fe)];buildInfo[a2_0x1de319(0x2d6)]&&(versionOutput+='\x20('+buildInfo[a2_0x1de319(0x2d6)]+')'),buildInfo[a2_0x1de319(0x383)]&&(versionOutput+=a2_0x1de319(0x25e)+buildInfo[a2_0x1de319(0x383)]),console[a2_0x1de319(0x2d4)](versionOutput),process['exit'](0x0);}const program=new Command();let description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo['gitRevision']?description+=',\x20version\x20'+packageJson['version']+'\x20('+buildInfo[a2_0x1de319(0x2d6)]+')':description+=a2_0x1de319(0x229)+packageJson[a2_0x1de319(0x2fe)];program['name'](a2_0x1de319(0x24c))['description'](description),program[a2_0x1de319(0x254)]('-p,\x20--profile\x20<name>',a2_0x1de319(0x2f3))['option'](a2_0x1de319(0x3fa),a2_0x1de319(0x3e9),a2_0x1de319(0x3f8))[a2_0x1de319(0x254)](a2_0x1de319(0x2fc),a2_0x1de319(0x27b))[a2_0x1de319(0x254)](a2_0x1de319(0x23a),a2_0x1de319(0x3d5))['option'](a2_0x1de319(0x25d),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x1de319(0x254)]('--jsonl',a2_0x1de319(0x222))[a2_0x1de319(0x254)](a2_0x1de319(0x2ec),a2_0x1de319(0x34a))[a2_0x1de319(0x254)](a2_0x1de319(0x210),a2_0x1de319(0x2f2))[a2_0x1de319(0x254)](a2_0x1de319(0x27e),a2_0x1de319(0x2d0))[a2_0x1de319(0x254)](a2_0x1de319(0x263),a2_0x1de319(0x274),![])[a2_0x1de319(0x254)](a2_0x1de319(0x244),a2_0x1de319(0x310),![])[a2_0x1de319(0x254)](a2_0x1de319(0x368),a2_0x1de319(0x3b0),![])[a2_0x1de319(0x254)]('--debug','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x1de319(0x254)](a2_0x1de319(0x326),a2_0x1de319(0x2b9))[a2_0x1de319(0x254)](a2_0x1de319(0x371),a2_0x1de319(0x322),'30')['option'](a2_0x1de319(0x31c),'Preview\x20operation\x20without\x20executing',![])[a2_0x1de319(0x254)]('-y,\x20--yes',a2_0x1de319(0x269),![])['option']('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x1de319(0x254)](a2_0x1de319(0x2aa),'Database\x20to\x20use\x20(overrides\x20context)')[a2_0x1de319(0x254)](a2_0x1de319(0x374),a2_0x1de319(0x39b))[a2_0x1de319(0x254)](a2_0x1de319(0x33c),a2_0x1de319(0x26e))['option'](a2_0x1de319(0x2b2),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x1de319(0x224)]({'formatHelp':(_0x2f15b4,_0x5d61e9)=>{const _0x4abde4=a2_0x1de319,_0x3a2be4=_0x5d61e9[_0x4abde4(0x351)](_0x2f15b4,_0x5d61e9),_0x4e7989=0x2,_0x324c83=0x2;function _0x30364e(_0x515752){const _0x5a2dce=_0x4abde4,_0x4b3501=_0x515752;return!!(_0x4b3501[_0x5a2dce(0x205)]||_0x4b3501[_0x5a2dce(0x2ff)]);}function _0x50a3d9(_0x537b73,_0x1b8ff5){const _0xcaa86a=_0x4abde4;if(_0x1b8ff5){const _0xdfcb86=''+_0x537b73[_0xcaa86a(0x36f)](_0x3a2be4+_0x324c83)+_0x1b8ff5;return _0xdfcb86;}return _0x537b73;}function _0x31553a(_0x33b17b){const _0x3e5411=_0x4abde4;return _0x33b17b[_0x3e5411(0x261)]('\x0a')[_0x3e5411(0x22c)](/^/gm,'\x20'[_0x3e5411(0x3af)](_0x4e7989));}const _0x160ca6=[];_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x2ed)+_0x5d61e9[_0x4abde4(0x331)](_0x2f15b4));const _0xd0c94c=_0x5d61e9[_0x4abde4(0x38e)](_0x2f15b4);_0xd0c94c&&(_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6['push'](_0xd0c94c));const _0x5d47e8=_0x2f15b4[_0x4abde4(0x39e)][_0x4abde4(0x26a)](_0x49b5c5=>!_0x30364e(_0x49b5c5));if(_0x5d47e8[_0x4abde4(0x2cd)]>0x0){if(_0x2f15b4['name']()===_0x4abde4(0x24c)){const _0x17142c=_0x2f15b4[_0x4abde4(0x230)](),_0x196ed1=!_0x17142c['noColor']&&process[_0x4abde4(0x2ef)][_0x4abde4(0x2d3)],_0x5726b9=COMMAND_CATEGORIES,_0x3f5735=(_0xe0fd7,_0x341363)=>_0x196ed1?_0x341363(_0xe0fd7):_0xe0fd7,_0x33cbe0=new Map();_0x5d47e8[_0x4abde4(0x2a1)](_0x2fea6f=>{_0x33cbe0['set'](_0x2fea6f['name'](),_0x2fea6f);}),_0x5726b9['forEach'](_0x1feb43=>{const _0x8582a0=_0x4abde4,_0x399ae8=_0x1feb43['commands'][_0x8582a0(0x243)](_0x22ae60=>_0x33cbe0[_0x8582a0(0x32a)](_0x22ae60)??[]);if(_0x399ae8[_0x8582a0(0x2cd)]>0x0){_0x160ca6[_0x8582a0(0x232)](''),_0x160ca6[_0x8582a0(0x232)](_0x3f5735(_0x1feb43['name']+':',_0x1feb43[_0x8582a0(0x2dd)]));const _0x4e1173=_0x399ae8['map'](_0x4bcbc9=>{const _0x72722d=_0x8582a0,_0x20ef72=_0x5d61e9[_0x72722d(0x2a5)](_0x4bcbc9),_0xd3d378=_0x5d61e9['subcommandDescription'](_0x4bcbc9);return _0x50a3d9(_0x20ef72,_0xd3d378);});_0x160ca6[_0x8582a0(0x232)](_0x31553a(_0x4e1173));}}),_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x3fb));}else{const _0x49072b=_0x5d47e8[_0x4abde4(0x38a)](_0x3413c6=>{const _0x4a2513=_0x4abde4,_0x36747f=_0x5d61e9['subcommandTerm'](_0x3413c6),_0x5208bf=_0x5d61e9[_0x4a2513(0x287)](_0x3413c6);return _0x50a3d9(_0x36747f,_0x5208bf);});_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x31e)),_0x160ca6['push'](_0x31553a(_0x49072b));}}const _0x46cd38=_0x2f15b4[_0x4abde4(0x21d)][_0x4abde4(0x26a)](_0x220d41=>!_0x30364e(_0x220d41));if(_0x46cd38['length']>0x0){const _0x529e0b=_0x46cd38['map'](_0x1d91c4=>{const _0x10135c=_0x4abde4,_0x4122c9=_0x5d61e9[_0x10135c(0x1f8)](_0x1d91c4),_0x16f3ed=_0x5d61e9[_0x10135c(0x22d)](_0x1d91c4);return _0x50a3d9(_0x4122c9,_0x16f3ed);});_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x39d)),_0x160ca6[_0x4abde4(0x232)](_0x31553a(_0x529e0b));}const _0x23465d=(_0x2f15b4[_0x4abde4(0x336)]||[])['filter'](_0x2cc6a9=>!_0x30364e(_0x2cc6a9));if(_0x23465d[_0x4abde4(0x2cd)]>0x0){const _0x457a77=_0x23465d[_0x4abde4(0x38a)](_0x2b990e=>{const _0x34c028=_0x4abde4,_0xef5a87=_0x5d61e9[_0x34c028(0x23d)](_0x2b990e),_0x5a4541=_0x5d61e9[_0x34c028(0x3d9)](_0x2b990e);return _0x50a3d9(_0xef5a87,_0x5a4541);});_0x160ca6[_0x4abde4(0x232)](''),_0x160ca6[_0x4abde4(0x232)](_0x4abde4(0x221)),_0x160ca6['push'](_0x31553a(_0x457a77));}return _0x160ca6[_0x4abde4(0x261)]('\x0a');},'subcommandTerm':_0x394b33=>{const _0x17c246=a2_0x1de319,_0x12a520=(_0x394b33[_0x17c246(0x336)]||[])[_0x17c246(0x38a)](_0x18d308=>_0x18d308[_0x17c246(0x29f)]?'<'+_0x18d308[_0x17c246(0x3c9)]()+'>':'['+_0x18d308['name']()+']')[_0x17c246(0x261)]('\x20'),_0x44411f=_0x394b33[_0x17c246(0x2a9)](),_0x28b1e1=_0x44411f['length']>0x0?_0x394b33[_0x17c246(0x3c9)]()+',\x20'+_0x44411f[_0x17c246(0x261)](',\x20'):_0x394b33['name']();return _0x12a520?_0x28b1e1+'\x20'+_0x12a520:_0x28b1e1;}}),program[a2_0x1de319(0x321)](a2_0x1de319(0x21b),_0x10799f=>{const _0x11c316=a2_0x1de319,_0xd36216=_0x10799f[_0x11c316(0x230)]();if(!_0xd36216[_0x11c316(0x297)]){if(_0xd36216[_0x11c316(0x2bd)])_0xd36216[_0x11c316(0x297)]=_0x11c316(0x2bd);else{if(_0xd36216[_0x11c316(0x304)])_0xd36216[_0x11c316(0x297)]='json';else{if(_0xd36216[_0x11c316(0x357)])_0xd36216['format']=_0x11c316(0x357);else _0xd36216['tsv']&&(_0xd36216[_0x11c316(0x297)]=_0x11c316(0x344));}}}_0xd36216['in']&&!_0xd36216[_0x11c316(0x29d)]&&(_0xd36216[_0x11c316(0x29d)]=_0xd36216['in']);if(_0xd36216[_0x11c316(0x1fd)])_0xd36216['logLevel']=LogLevel[_0x11c316(0x2da)];else{if(_0xd36216[_0x11c316(0x3dc)])_0xd36216[_0x11c316(0x270)]=LogLevel[_0x11c316(0x1fa)];else _0xd36216[_0x11c316(0x270)]===undefined&&(_0xd36216[_0x11c316(0x270)]=LogLevel[_0x11c316(0x28b)]);}});async function createTDXInstance(_0x4d21b1){const _0x26a6b4=a2_0x1de319,_0x27ebbe=await GlobalContext['createAsync'](_0x4d21b1);return _0x27ebbe[_0x26a6b4(0x20d)](_0x4d21b1),TDX['create']({'site':_0x27ebbe['site'],'apiKey':_0x27ebbe[_0x26a6b4(0x3f0)],'logLevel':_0x27ebbe[_0x26a6b4(0x270)],'profile':_0x27ebbe['profile']});}const databaseCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x29d))[a2_0x1de319(0x3d0)]('db')[a2_0x1de319(0x3d2)](a2_0x1de319(0x302)),databaseListAction=async(_0x56a535,_0x4b307d)=>{const _0x176490=a2_0x1de319,_0x1f3555=new DatabasesCommand(),_0x4cb73e=program[_0x176490(0x230)](),_0x19b868=await createTDXInstance(_0x4cb73e),_0x24d689=await _0x1f3555[_0x176490(0x396)]({'options':{..._0x4cb73e,..._0x4b307d},'args':_0x56a535?[_0x56a535]:[],'tdx':_0x19b868});process[_0x176490(0x264)](_0x24d689);};databaseCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x1de319(0x249)](databaseListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2b4),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x1f7))[a2_0x1de319(0x249)](databaseListAction),program[a2_0x1de319(0x3eb)]('chat\x20[message...]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2f8))[a2_0x1de319(0x254)](a2_0x1de319(0x3cf),a2_0x1de319(0x384))[a2_0x1de319(0x254)](a2_0x1de319(0x3bf),a2_0x1de319(0x25b))[a2_0x1de319(0x254)](a2_0x1de319(0x355),'Temperature\x20(0.0-2.0,\x20default:\x200.7)')[a2_0x1de319(0x254)]('--new',a2_0x1de319(0x27a))[a2_0x1de319(0x249)](async(_0x494889,_0x1ef9fd)=>{const _0xbb64af=a2_0x1de319,_0x2c7bbc=new ChatCommand(),_0x2864d6=program['opts'](),_0x3aa386=await createTDXInstance(_0x2864d6),_0x1c0adb=await _0x2c7bbc[_0xbb64af(0x396)]({'options':{..._0x2864d6,..._0x1ef9fd},'args':_0x494889,'tdx':_0x3aa386});process['exit'](_0x1c0adb);});const apiCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x33b))[a2_0x1de319(0x394)](a2_0x1de319(0x3d7))[a2_0x1de319(0x2f9)](a2_0x1de319(0x342),'\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_0x1de319(0x254)](a2_0x1de319(0x2df),a2_0x1de319(0x266),'GET')['option'](a2_0x1de319(0x31f),a2_0x1de319(0x2c8))[a2_0x1de319(0x254)]('-f,\x20--file\x20<path>','Read\x20request\x20body\x20from\x20file')[a2_0x1de319(0x254)](a2_0x1de319(0x3f6),a2_0x1de319(0x3b7),(_0x1444b2,_0xe30576)=>{return _0xe30576?[..._0xe30576,_0x1444b2]:[_0x1444b2];})[a2_0x1de319(0x254)](a2_0x1de319(0x2dc),a2_0x1de319(0x2f1),'td')[a2_0x1de319(0x249)](async(_0x4d2840,_0x21c60c)=>{const _0x45eb4b=a2_0x1de319;if(!_0x4d2840){apiCmd[_0x45eb4b(0x233)]();return;}const _0x17dda8=new ApiCommand(),_0x1e442c=program[_0x45eb4b(0x230)](),_0x2dd83a=await createTDXInstance(_0x1e442c),_0x16be06=await _0x17dda8[_0x45eb4b(0x396)]({'options':{..._0x1e442c,..._0x21c60c},'args':[_0x4d2840],'tdx':_0x2dd83a});process[_0x45eb4b(0x264)](_0x16be06);}),tableCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2bd))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2d8)),tableListAction=async(_0x129ef5,_0x44794a)=>{const _0x498cd6=a2_0x1de319,_0x33c5a1=new TablesCommand(),_0x4876be=program[_0x498cd6(0x230)](),_0x2b68c6=await createTDXInstance(_0x4876be);_0x44794a['in']&&(_0x44794a[_0x498cd6(0x29d)]=_0x44794a['in']);const _0x3e76a0=await _0x33c5a1[_0x498cd6(0x396)]({'options':{..._0x4876be,..._0x44794a},'args':_0x129ef5?[_0x129ef5]:[],'tdx':_0x2b68c6});process[_0x498cd6(0x264)](_0x3e76a0);};tableCmd['command']('list\x20[pattern]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2cf))['option'](a2_0x1de319(0x303),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x1de319(0x254)]('--in\x20<database>',a2_0x1de319(0x39b))[a2_0x1de319(0x249)](tableListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x3c4),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x395))[a2_0x1de319(0x254)](a2_0x1de319(0x303),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x1de319(0x254)](a2_0x1de319(0x3e7),a2_0x1de319(0x39b))[a2_0x1de319(0x249)](tableListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c3))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2d9))[a2_0x1de319(0x254)](a2_0x1de319(0x303),a2_0x1de319(0x228))[a2_0x1de319(0x254)](a2_0x1de319(0x3e7),a2_0x1de319(0x39b))[a2_0x1de319(0x249)](async(_0x3e3ff4,_0x5cae51)=>{const _0x11419c=a2_0x1de319,_0x4e95fd=new ShowCommand(),_0x2361c2=program[_0x11419c(0x230)](),_0x56e58a=await createTDXInstance(_0x2361c2);_0x5cae51['in']&&(_0x5cae51[_0x11419c(0x29d)]=_0x5cae51['in']);const _0x40c22a=await _0x4e95fd['run']({'options':{..._0x2361c2,..._0x5cae51},'args':_0x3e3ff4?[_0x3e3ff4]:[],'tdx':_0x56e58a});process['exit'](_0x40c22a);}),program[a2_0x1de319(0x3eb)]('describe\x20[table]')['alias'](a2_0x1de319(0x341))['description']('Describe\x20table\x20schema')[a2_0x1de319(0x254)]('-d,\x20--database\x20<database>',a2_0x1de319(0x228))['option']('--in\x20<database>',a2_0x1de319(0x39b))['action'](async(_0x179f66,_0x4f6fe9)=>{const _0x28303f=a2_0x1de319,_0x38282d=new DescribeCommand(),_0x3794d7=program[_0x28303f(0x230)](),_0x388ad5=await createTDXInstance(_0x3794d7);_0x4f6fe9['in']&&(_0x4f6fe9[_0x28303f(0x29d)]=_0x4f6fe9['in']);const _0x5bb7ce=await _0x38282d['run']({'options':{..._0x3794d7,..._0x4f6fe9},'args':_0x179f66?[_0x179f66]:[],'tdx':_0x388ad5});process[_0x28303f(0x264)](_0x5bb7ce);}),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x23f))[a2_0x1de319(0x3d2)](a2_0x1de319(0x253))['option']('-d,\x20--database\x20<database>',a2_0x1de319(0x272))[a2_0x1de319(0x254)](a2_0x1de319(0x3e7),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option']('--catalog\x20<catalog>',a2_0x1de319(0x381))[a2_0x1de319(0x254)](a2_0x1de319(0x3b6),'Read\x20SQL\x20query\x20from\x20file')['option'](a2_0x1de319(0x20b),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')['action'](async(_0x536660,_0x5d2c90)=>{const _0x46d109=a2_0x1de319,_0x3244d2=new QueryCommand(),_0xe7809a=program[_0x46d109(0x230)](),_0x35f42f=await createTDXInstance(_0xe7809a);_0x5d2c90['in']&&(_0x5d2c90[_0x46d109(0x29d)]=_0x5d2c90['in']);const _0x4f9756=await _0x3244d2['run']({'options':{..._0xe7809a,..._0x5d2c90},'args':_0x536660?[_0x536660]:[],'tdx':_0x35f42f});process[_0x46d109(0x264)](_0x4f9756);});const segmentCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2e2))['alias']('sg')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2e1)),segmentListAction=async(_0x21470c,_0x18e4e2)=>{const _0x1b2b9e=a2_0x1de319,_0x6aca1=new SegmentsCommand(),_0x4cf97f=program['opts'](),_0x3d5c1a=await createTDXInstance(_0x4cf97f),_0x3f87a4=await _0x6aca1[_0x1b2b9e(0x396)]({'options':{..._0x4cf97f,..._0x18e4e2},'args':_0x21470c?[_0x21470c]:[],'tdx':_0x3d5c1a});process[_0x1b2b9e(0x264)](_0x3f87a4);};segmentCmd[a2_0x1de319(0x3eb)]('list\x20[path]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x28a))['option'](a2_0x1de319(0x349),a2_0x1de319(0x3be))[a2_0x1de319(0x254)](a2_0x1de319(0x216),a2_0x1de319(0x3a0),'10')[a2_0x1de319(0x249)](segmentListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x3bb),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x204))[a2_0x1de319(0x254)](a2_0x1de319(0x349),a2_0x1de319(0x3be))[a2_0x1de319(0x254)](a2_0x1de319(0x216),a2_0x1de319(0x3a0),'10')['action'](segmentListAction),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2ca),{'hidden':!![]})['description'](a2_0x1de319(0x2c1))[a2_0x1de319(0x249)](async(_0x47182d,_0x3536f8)=>{const _0x4baad8=a2_0x1de319,_0x4dd3fe=new SegmentUseCommand(),_0x4116bb=program[_0x4baad8(0x230)](),_0x182af5=await createTDXInstance(_0x4116bb),_0x59111a=await _0x4dd3fe['run']({'options':{..._0x4116bb,..._0x3536f8},'args':[_0x47182d],'tdx':_0x182af5});process[_0x4baad8(0x264)](_0x59111a);});const segmentViewAction=async(_0x48c9c6,_0x234d0a)=>{const _0x39e9c5=a2_0x1de319,_0x58894d=new SegmentViewCommand(),_0x6f6bd6=program[_0x39e9c5(0x230)](),_0x43f53e=await createTDXInstance(_0x6f6bd6),_0x2f94aa=await _0x58894d[_0x39e9c5(0x396)]({'options':{..._0x6f6bd6,..._0x234d0a},'args':_0x48c9c6?[_0x48c9c6]:[],'tdx':_0x43f53e});process[_0x39e9c5(0x264)](_0x2f94aa);};segmentCmd['command'](a2_0x1de319(0x2bb))['description'](a2_0x1de319(0x29c))[a2_0x1de319(0x249)](segmentViewAction),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x305),{'hidden':!![]})[a2_0x1de319(0x3d0)](a2_0x1de319(0x293))[a2_0x1de319(0x3d2)](a2_0x1de319(0x33a))[a2_0x1de319(0x249)](segmentViewAction),segmentCmd['command'](a2_0x1de319(0x377))['description']('Show\x20segment\x20schema\x20(column\x20types)')['action'](async(_0x5d23b8,_0x52bc65)=>{const _0x43d643=a2_0x1de319,_0x3041ee=new SegmentDescCommand(),_0x112eb8=program['opts'](),_0x4431cb=await createTDXInstance(_0x112eb8),_0x52fc7a=await _0x3041ee[_0x43d643(0x396)]({'options':{..._0x112eb8,..._0x52bc65},'args':_0x5d23b8?[_0x5d23b8]:[],'tdx':_0x4431cb});process['exit'](_0x52fc7a);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2d2))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3e2))[a2_0x1de319(0x249)](async(_0xf0fb7e,_0x16b414)=>{const _0xdb3d4d=a2_0x1de319,_0x2084c5=new SegmentShowCommand(),_0x3376c6=program['opts'](),_0x4bc8fb=await createTDXInstance(_0x3376c6),_0x42bfbb=await _0x2084c5[_0xdb3d4d(0x396)]({'options':{..._0x3376c6,..._0x16b414},'args':_0xf0fb7e?[_0xf0fb7e]:[],'tdx':_0x4bc8fb});process[_0xdb3d4d(0x264)](_0x42bfbb);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x220),{'hidden':!![]})[a2_0x1de319(0x3d2)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x1de319(0x249)](async(_0x3c2a81,_0xe26978)=>{const _0x5283e4=a2_0x1de319,_0x4cdfd5=new SegmentFolderListCommand(),_0x3f8516=program['opts'](),_0xc909b7=await createTDXInstance(_0x3f8516),_0x46b391=await _0x4cdfd5[_0x5283e4(0x396)]({'options':{..._0x3f8516,..._0xe26978},'args':[_0x3c2a81],'tdx':_0xc909b7});process[_0x5283e4(0x264)](_0x46b391);});const folderCmd=segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3c5),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x22b));folderCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x218))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2f7))['action'](async(_0x4ce90f,_0x24062b)=>{const _0x4fd164=a2_0x1de319,_0x25a949=new SegmentFolderShowCommand(),_0x56999a=program[_0x4fd164(0x230)](),_0x1a8bbc=await createTDXInstance(_0x56999a),_0x159684=await _0x25a949[_0x4fd164(0x396)]({'options':{..._0x56999a,..._0x24062b},'args':[_0x4ce90f],'tdx':_0x1a8bbc});process['exit'](_0x159684);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3cb))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3a1))[a2_0x1de319(0x249)](async(_0x3fecf4,_0x194349)=>{const _0x14f960=a2_0x1de319,_0xe343=new SegmentSQLCommand(),_0x292667=program[_0x14f960(0x230)](),_0x20a857=await createTDXInstance(_0x292667),_0x18584f=await _0xe343[_0x14f960(0x396)]({'options':{..._0x292667,..._0x194349},'args':_0x3fecf4?[_0x3fecf4]:[],'tdx':_0x20a857});process['exit'](_0x18584f);}),segmentCmd['command'](a2_0x1de319(0x337))['description'](a2_0x1de319(0x2d5))[a2_0x1de319(0x249)](async(_0x4cff95,_0x54d2db)=>{const _0x2e9f1f=a2_0x1de319,_0x4c8bc7=new SegmentFieldsCommand(),_0x3b9598=program[_0x2e9f1f(0x230)](),_0x5984cb=await createTDXInstance(_0x3b9598),_0xd67cf6=await _0x4c8bc7[_0x2e9f1f(0x396)]({'options':{..._0x3b9598,..._0x54d2db},'args':_0x4cff95?[_0x4cff95]:[],'tdx':_0x5984cb});process[_0x2e9f1f(0x264)](_0xd67cf6);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x380))[a2_0x1de319(0x3d2)](a2_0x1de319(0x25f))['option'](a2_0x1de319(0x2f4),a2_0x1de319(0x269))['option']('--dry-run',a2_0x1de319(0x2e6))['action'](async(_0xb93c24,_0x1f03fa)=>{const _0x297f6a=a2_0x1de319,_0x228434=new SegmentPullCommand(),_0x248bd1=program[_0x297f6a(0x230)](),_0x45a3c1=await createTDXInstance(_0x248bd1),_0x4a73f6=await _0x228434[_0x297f6a(0x396)]({'options':{..._0x248bd1,..._0x1f03fa},'args':_0xb93c24?[_0xb93c24]:[],'tdx':_0x45a3c1});process[_0x297f6a(0x264)](_0x4a73f6);}),segmentCmd['command'](a2_0x1de319(0x2e0))['description']('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x269))[a2_0x1de319(0x254)](a2_0x1de319(0x31c),a2_0x1de319(0x2e6))[a2_0x1de319(0x254)]('--delete',a2_0x1de319(0x29e))[a2_0x1de319(0x249)](async(_0x466aa2,_0x5a006d)=>{const _0x56caea=a2_0x1de319,_0x5dd298=new SegmentPushCommand(),_0x1b98a3=program['opts'](),_0x438329=await createTDXInstance(_0x1b98a3),_0x1b8404=await _0x5dd298[_0x56caea(0x396)]({'options':{..._0x1b98a3,..._0x5a006d},'args':_0x466aa2?[_0x466aa2]:[],'tdx':_0x438329});process['exit'](_0x1b8404);}),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x1fb),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x1f5))[a2_0x1de319(0x254)]('--description\x20<text>',a2_0x1de319(0x2fb))[a2_0x1de319(0x254)](a2_0x1de319(0x334),a2_0x1de319(0x323))['option'](a2_0x1de319(0x31b),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x1de319(0x254)](a2_0x1de319(0x324),'Folder\x20name\x20for\x20organization')[a2_0x1de319(0x254)](a2_0x1de319(0x318),a2_0x1de319(0x3d3))[a2_0x1de319(0x254)](a2_0x1de319(0x3d8),a2_0x1de319(0x393))[a2_0x1de319(0x254)]('--no-count-population',a2_0x1de319(0x26c))[a2_0x1de319(0x249)](async(_0x2831e4,_0x2f318b)=>{const _0x1c56ef=a2_0x1de319,_0x433433=new SegmentCreateCommand(),_0x5c507b=program['opts'](),_0x42d4b3=await createTDXInstance(_0x5c507b),_0x3e800a=await _0x433433[_0x1c56ef(0x396)]({'options':{..._0x5c507b,..._0x2f318b},'args':[_0x2831e4],'tdx':_0x42d4b3});process['exit'](_0x3e800a);}),segmentCmd['command'](a2_0x1de319(0x2a6),{'hidden':!![]})[a2_0x1de319(0x3d2)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x1de319(0x254)](a2_0x1de319(0x319),a2_0x1de319(0x364))[a2_0x1de319(0x254)](a2_0x1de319(0x3ef),a2_0x1de319(0x33d))[a2_0x1de319(0x254)](a2_0x1de319(0x334),a2_0x1de319(0x35c))[a2_0x1de319(0x254)]('--rule-file\x20<file>',a2_0x1de319(0x376))[a2_0x1de319(0x254)]('--folder\x20<name>','Move\x20to\x20folder')[a2_0x1de319(0x254)](a2_0x1de319(0x318),a2_0x1de319(0x3d3))['action'](async(_0x198b91,_0x43063f)=>{const _0x3aca58=a2_0x1de319,_0xbaf4e7=new SegmentUpdateCommand(),_0x235faf=program[_0x3aca58(0x230)](),_0x3c8c0b=await createTDXInstance(_0x235faf),_0x44c711=await _0xbaf4e7[_0x3aca58(0x396)]({'options':{..._0x235faf,..._0x43063f},'args':[_0x198b91],'tdx':_0x3c8c0b});process[_0x3aca58(0x264)](_0x44c711);});const parentCmd=segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x21e),{'hidden':!![]})['description'](a2_0x1de319(0x213)),parentListAction=async(_0x25913d,_0x47dd4d)=>{const _0x3c5ea7=a2_0x1de319,_0x5c2213=new ParentSegmentListCommand(),_0x197b9f=program[_0x3c5ea7(0x230)](),_0x47ad6b=await createTDXInstance(_0x197b9f),_0x220bc2=await _0x5c2213['run']({'options':{..._0x197b9f,..._0x47dd4d},'args':_0x25913d?[_0x25913d]:[],'tdx':_0x47ad6b});process[_0x3c5ea7(0x264)](_0x220bc2);};parentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)](a2_0x1de319(0x1fe))[a2_0x1de319(0x249)](parentListAction),segmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2a3),{'hidden':!![]})[a2_0x1de319(0x3d2)](a2_0x1de319(0x3db))[a2_0x1de319(0x249)](parentListAction),parentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x37a))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3f2))[a2_0x1de319(0x254)](a2_0x1de319(0x3e0),a2_0x1de319(0x1f6))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))[a2_0x1de319(0x249)](async(_0x482d2d,_0x9ff344)=>{const _0x3f00f6=a2_0x1de319,_0x2bd4eb=new ParentSegmentPullCommand(),_0x29072b=program[_0x3f00f6(0x230)](),_0x19bff7=await createTDXInstance(_0x29072b),_0x1a1b29=await _0x2bd4eb[_0x3f00f6(0x396)]({'options':{..._0x29072b,..._0x9ff344},'args':_0x482d2d?[_0x482d2d]:[],'tdx':_0x19bff7});process[_0x3f00f6(0x264)](_0x1a1b29);}),parentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x215))[a2_0x1de319(0x3d2)](a2_0x1de319(0x333))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))[a2_0x1de319(0x249)](async(_0x3664fb,_0x3b747d)=>{const _0x4b0dc9=a2_0x1de319,_0x5532ef=new ParentSegmentPushCommand(),_0xa25396=program[_0x4b0dc9(0x230)](),_0x39ccd6=await createTDXInstance(_0xa25396),_0xdca0b0=await _0x5532ef[_0x4b0dc9(0x396)]({'options':{..._0xa25396,..._0x3b747d},'args':_0x3664fb?[_0x3664fb]:[],'tdx':_0x39ccd6});process[_0x4b0dc9(0x264)](_0xdca0b0);}),parentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x238))['description'](a2_0x1de319(0x2bf))[a2_0x1de319(0x254)](a2_0x1de319(0x241),'Show\x20only\x20master\x20table\x20validation')[a2_0x1de319(0x254)](a2_0x1de319(0x3d1),a2_0x1de319(0x325))[a2_0x1de319(0x254)](a2_0x1de319(0x32c),a2_0x1de319(0x203))[a2_0x1de319(0x254)](a2_0x1de319(0x354),a2_0x1de319(0x25a))[a2_0x1de319(0x254)](a2_0x1de319(0x247),a2_0x1de319(0x2fa),a2_0x1de319(0x265))[a2_0x1de319(0x249)](async(_0x25010f,_0x1e3b42)=>{const _0x5b1d79=a2_0x1de319,_0x4fe640=new ParentSegmentValidateCommand(),_0x24e16a=program[_0x5b1d79(0x230)](),_0x2db20e=await createTDXInstance(_0x24e16a),_0x5e2cbe=await _0x4fe640[_0x5b1d79(0x396)]({'options':{..._0x24e16a,..._0x1e3b42},'args':_0x25010f?[_0x25010f]:[],'tdx':_0x2db20e});process[_0x5b1d79(0x264)](_0x5e2cbe);}),parentCmd['command'](a2_0x1de319(0x1f4))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2e7))[a2_0x1de319(0x254)](a2_0x1de319(0x241),a2_0x1de319(0x338))['option'](a2_0x1de319(0x3d1),a2_0x1de319(0x3a7))['option'](a2_0x1de319(0x32c),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x1de319(0x254)](a2_0x1de319(0x354),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x1de319(0x254)](a2_0x1de319(0x247),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x1de319(0x265))[a2_0x1de319(0x249)](async(_0x476a61,_0x512962)=>{const _0x47ccce=a2_0x1de319,_0xdb9a8e=new ParentSegmentPreviewCommand(),_0x40adef=program[_0x47ccce(0x230)](),_0x360816=await createTDXInstance(_0x40adef),_0x84b604=await _0xdb9a8e['run']({'options':{..._0x40adef,..._0x512962},'args':_0x476a61?[_0x476a61]:[],'tdx':_0x360816});process['exit'](_0x84b604);}),parentCmd['command'](a2_0x1de319(0x200))[a2_0x1de319(0x3d2)](a2_0x1de319(0x242))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))[a2_0x1de319(0x249)](async(_0x81d8e4,_0x3d5650)=>{const _0xbdb92e=a2_0x1de319,_0x180085=new ParentSegmentRunCommand(),_0x2f4e35=program[_0xbdb92e(0x230)](),_0x49a5f5=await createTDXInstance(_0x2f4e35),_0x5b73ef=await _0x180085[_0xbdb92e(0x396)]({'options':{..._0x2f4e35,..._0x3d5650},'args':_0x81d8e4?[_0x81d8e4]:[],'tdx':_0x49a5f5});process[_0xbdb92e(0x264)](_0x5b73ef);});const parentSegmentCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x391))[a2_0x1de319(0x3d0)]('ps')['description'](a2_0x1de319(0x3e6));parentSegmentCmd['command']('list\x20[pattern]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x1fe))[a2_0x1de319(0x249)](parentListAction),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x37a))[a2_0x1de319(0x3d2)](a2_0x1de319(0x20c))['option'](a2_0x1de319(0x3e0),a2_0x1de319(0x262))[a2_0x1de319(0x254)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x1de319(0x254)](a2_0x1de319(0x3f5),a2_0x1de319(0x286))['action'](async(_0x228dab,_0x41a330)=>{const _0x789d2=a2_0x1de319,_0x277ccd=new ParentSegmentPullCommand(),_0xfaf73d=program['opts'](),_0x3a8052=await createTDXInstance(_0xfaf73d),_0x14772a=await _0x277ccd['run']({'options':{..._0xfaf73d,..._0x41a330},'args':_0x228dab?[_0x228dab]:[],'tdx':_0x3a8052});process[_0x789d2(0x264)](_0x14772a);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x25c))[a2_0x1de319(0x3d2)](a2_0x1de319(0x392))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))['action'](async(_0x34dc93,_0x5de4c0)=>{const _0x2ca312=a2_0x1de319,_0x413229=new ParentSegmentPushCommand(),_0x327d3c=program['opts'](),_0x4021e3=await createTDXInstance(_0x327d3c),_0x606a1f=await _0x413229['run']({'options':{..._0x327d3c,..._0x5de4c0},'args':_0x34dc93?[_0x34dc93]:[],'tdx':_0x4021e3});process[_0x2ca312(0x264)](_0x606a1f);}),parentSegmentCmd['command'](a2_0x1de319(0x3df))[a2_0x1de319(0x3d2)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x1de319(0x254)]('--master',a2_0x1de319(0x3da))[a2_0x1de319(0x254)](a2_0x1de319(0x3d1),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x1de319(0x254)](a2_0x1de319(0x32c),a2_0x1de319(0x203))['option']('--enriched',a2_0x1de319(0x25a))[a2_0x1de319(0x254)](a2_0x1de319(0x247),a2_0x1de319(0x2fa),a2_0x1de319(0x265))[a2_0x1de319(0x249)](async(_0x37e310,_0x20c505)=>{const _0x29eb64=a2_0x1de319,_0x4e7dbd=new ParentSegmentValidateCommand(),_0x3d5fd8=program[_0x29eb64(0x230)](),_0x358845=await createTDXInstance(_0x3d5fd8),_0x36ee64=await _0x4e7dbd[_0x29eb64(0x396)]({'options':{..._0x3d5fd8,..._0x20c505},'args':_0x37e310?[_0x37e310]:[],'tdx':_0x358845});process['exit'](_0x36ee64);}),parentSegmentCmd['command']('preview\x20[name]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2e7))['option'](a2_0x1de319(0x241),a2_0x1de319(0x338))['option'](a2_0x1de319(0x3d1),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x1de319(0x254)](a2_0x1de319(0x32c),a2_0x1de319(0x3c7))[a2_0x1de319(0x254)](a2_0x1de319(0x354),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x1de319(0x254)](a2_0x1de319(0x247),a2_0x1de319(0x2fa),'-1d')['action'](async(_0x2904bb,_0x3aaf2a)=>{const _0x33fbb5=a2_0x1de319,_0x4227bc=new ParentSegmentPreviewCommand(),_0x25b619=program[_0x33fbb5(0x230)](),_0x4728d9=await createTDXInstance(_0x25b619),_0x4f80c0=await _0x4227bc['run']({'options':{..._0x25b619,..._0x3aaf2a},'args':_0x2904bb?[_0x2904bb]:[],'tdx':_0x4728d9});process['exit'](_0x4f80c0);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x200))[a2_0x1de319(0x3d2)](a2_0x1de319(0x242))[a2_0x1de319(0x254)](a2_0x1de319(0x2f4),a2_0x1de319(0x207))[a2_0x1de319(0x249)](async(_0x34e552,_0x356a9d)=>{const _0x27bd0c=a2_0x1de319,_0x371192=new ParentSegmentRunCommand(),_0x281939=program['opts'](),_0x18125f=await createTDXInstance(_0x281939),_0x40d6b0=await _0x371192[_0x27bd0c(0x396)]({'options':{..._0x281939,..._0x356a9d},'args':_0x34e552?[_0x34e552]:[],'tdx':_0x18125f});process[_0x27bd0c(0x264)](_0x40d6b0);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x283))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('--json',a2_0x1de319(0x2fd))[a2_0x1de319(0x254)](a2_0x1de319(0x346),a2_0x1de319(0x385))[a2_0x1de319(0x249)](async(_0x19e29c,_0x4c8d0e)=>{const _0x34d4fe=a2_0x1de319,_0x367aee=new ParentSegmentFieldsCommand(),_0x4b9c88=program[_0x34d4fe(0x230)](),_0x38924c=await createTDXInstance(_0x4b9c88),_0x370841=await _0x367aee['run']({'options':{..._0x4b9c88,..._0x4c8d0e},'args':_0x19e29c?[_0x19e29c]:[],'tdx':_0x38924c});process['exit'](_0x370841);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x34f))[a2_0x1de319(0x3d2)](a2_0x1de319(0x37f))['option'](a2_0x1de319(0x2e8),a2_0x1de319(0x3c0))[a2_0x1de319(0x254)](a2_0x1de319(0x25d),a2_0x1de319(0x2fd))[a2_0x1de319(0x254)](a2_0x1de319(0x346),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x54569a,_0x363164)=>{const _0x138283=a2_0x1de319,_0x1056ee=new ParentSegmentViewCommand(),_0x109e9c=program['opts'](),_0x2cdb90=await createTDXInstance(_0x109e9c),_0x5014c5=await _0x1056ee[_0x138283(0x396)]({'options':{..._0x109e9c,..._0x363164},'args':_0x54569a?[_0x54569a]:[],'tdx':_0x2cdb90});process[_0x138283(0x264)](_0x5014c5);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x2bc))[a2_0x1de319(0x254)](a2_0x1de319(0x25d),a2_0x1de319(0x2fd))[a2_0x1de319(0x254)](a2_0x1de319(0x346),a2_0x1de319(0x385))[a2_0x1de319(0x249)](async(_0x2664e1,_0x3ca0cc)=>{const _0x17d287=a2_0x1de319,_0x477693=new ParentSegmentDescCommand(),_0x2cc178=program['opts'](),_0x5359c4=await createTDXInstance(_0x2cc178),_0xd1ff41=await _0x477693[_0x17d287(0x396)]({'options':{..._0x2cc178,..._0x3ca0cc},'args':_0x2664e1?[_0x2664e1]:[],'tdx':_0x5359c4});process[_0x17d287(0x264)](_0xd1ff41);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3e5))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3cc))[a2_0x1de319(0x254)](a2_0x1de319(0x25d),'Output\x20as\x20JSON')[a2_0x1de319(0x254)](a2_0x1de319(0x346),a2_0x1de319(0x385))[a2_0x1de319(0x249)](async(_0x172530,_0x25ef2a)=>{const _0x128929=a2_0x1de319,_0x3605de=new ParentSegmentSQLCommand(),_0x5713a4=program[_0x128929(0x230)](),_0x4d83f0=await createTDXInstance(_0x5713a4),_0x20c8d3=await _0x3605de[_0x128929(0x396)]({'options':{..._0x5713a4,..._0x25ef2a},'args':_0x172530?[_0x172530]:[],'tdx':_0x4d83f0});process[_0x128929(0x264)](_0x20c8d3);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x30a))[a2_0x1de319(0x3d2)](a2_0x1de319(0x245))[a2_0x1de319(0x254)](a2_0x1de319(0x24f),'Limit\x20number\x20of\x20rows')[a2_0x1de319(0x254)](a2_0x1de319(0x25d),'Output\x20as\x20JSON')[a2_0x1de319(0x254)](a2_0x1de319(0x346),a2_0x1de319(0x385))[a2_0x1de319(0x249)](async(_0x42e58f,_0xcc3b01)=>{const _0x4a7a77=a2_0x1de319,_0x280e1b=new ParentSegmentShowCommand(),_0x3bfac9=program[_0x4a7a77(0x230)](),_0x3b384d=await createTDXInstance(_0x3bfac9),_0x55a575=await _0x280e1b[_0x4a7a77(0x396)]({'options':{..._0x3bfac9,..._0xcc3b01},'args':_0x42e58f?[_0x42e58f]:[],'tdx':_0x3b384d});process[_0x4a7a77(0x264)](_0x55a575);}),parentSegmentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x259))[a2_0x1de319(0x3d2)](a2_0x1de319(0x363))[a2_0x1de319(0x249)](async(_0x24161f,_0x109e5c)=>{const _0x45b03a=a2_0x1de319,_0x248017=new UseCommand(),_0x9e26e8=program[_0x45b03a(0x230)](),_0x3c3639=_0x24161f?[_0x45b03a(0x31a),_0x24161f]:[],_0x13361d=await _0x248017['run']({'options':{..._0x9e26e8,..._0x109e5c},'args':_0x3c3639,'tdx':null});process[_0x45b03a(0x264)](_0x13361d);}),parentCmd[a2_0x1de319(0x3eb)]('create\x20<name>')[a2_0x1de319(0x3d2)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x1de319(0x35f)]('--database\x20<db>',a2_0x1de319(0x271))[a2_0x1de319(0x35f)](a2_0x1de319(0x2c0),a2_0x1de319(0x312))[a2_0x1de319(0x254)](a2_0x1de319(0x3ef),a2_0x1de319(0x2c7))[a2_0x1de319(0x254)](a2_0x1de319(0x387),a2_0x1de319(0x209))['option']('--schedule-option\x20<value>',a2_0x1de319(0x37d))[a2_0x1de319(0x254)]('--timezone\x20<tz>',a2_0x1de319(0x309))['option'](a2_0x1de319(0x2c4),a2_0x1de319(0x315))[a2_0x1de319(0x254)]('--attributes-file\x20<file>',a2_0x1de319(0x239))['option']('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x1de319(0x254)]('--behaviors-file\x20<file>',a2_0x1de319(0x332))['option'](a2_0x1de319(0x3dd),a2_0x1de319(0x3f7))[a2_0x1de319(0x254)]('--customer-group-file\x20<file>',a2_0x1de319(0x32b))['action'](async(_0x5bb66e,_0x1d7919)=>{const _0xafdacd=a2_0x1de319,_0xb42aa1=new ParentSegmentCreateCommand(),_0x9b85c2=program['opts'](),_0x26d470=await createTDXInstance(_0x9b85c2),_0x551841=await _0xb42aa1[_0xafdacd(0x396)]({'options':{..._0x9b85c2,..._0x1d7919},'args':[_0x5bb66e],'tdx':_0x26d470});process[_0xafdacd(0x264)](_0x551841);}),parentCmd[a2_0x1de319(0x3eb)]('update\x20<name>')[a2_0x1de319(0x3d2)](a2_0x1de319(0x361))[a2_0x1de319(0x254)]('--description\x20<text>','Updated\x20description')[a2_0x1de319(0x254)](a2_0x1de319(0x387),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x1de319(0x2af),a2_0x1de319(0x219))[a2_0x1de319(0x254)]('--timezone\x20<tz>',a2_0x1de319(0x3d4))['option'](a2_0x1de319(0x3a8),a2_0x1de319(0x352))[a2_0x1de319(0x254)](a2_0x1de319(0x2eb),'Add\x20attributes\x20from\x20JSON\x20file')['option']('--add-behaviors\x20<json>',a2_0x1de319(0x316))['option'](a2_0x1de319(0x28d),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x1de319(0x249)](async(_0x2e768f,_0x49709b)=>{const _0x3dd190=a2_0x1de319,_0x1a8eac=new ParentSegmentUpdateCommand(),_0x41e45c=program['opts'](),_0x40dfc9=await createTDXInstance(_0x41e45c),_0x1d8bbe=await _0x1a8eac[_0x3dd190(0x396)]({'options':{..._0x41e45c,..._0x49709b},'args':[_0x2e768f],'tdx':_0x40dfc9});process[_0x3dd190(0x264)](_0x1d8bbe);}),folderCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x276))['description'](a2_0x1de319(0x2c9))[a2_0x1de319(0x254)]('--description\x20<text>',a2_0x1de319(0x3f1))[a2_0x1de319(0x254)](a2_0x1de319(0x30f),a2_0x1de319(0x223))[a2_0x1de319(0x249)](async(_0x55fc72,_0x2bbb6d,_0x5d27dd)=>{const _0x1af185=a2_0x1de319,_0x1a920d=new SegmentFolderCreateCommand(),_0x484814=program[_0x1af185(0x230)](),_0x3702f8=await createTDXInstance(_0x484814),_0x3515db=await _0x1a920d['run']({'options':{..._0x484814,..._0x5d27dd},'args':[_0x55fc72,_0x2bbb6d],'tdx':_0x3702f8});process[_0x1af185(0x264)](_0x3515db);}),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x282))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2ab))[a2_0x1de319(0x249)](async(_0xe47298,_0x35e633)=>{const _0x32c117=a2_0x1de319,_0x52b56f=new ActivationsCommand(),_0x2da756=program[_0x32c117(0x230)](),_0x2d9b1c=await createTDXInstance(_0x2da756),_0x5cdfee=await _0x52b56f[_0x32c117(0x396)]({'options':{..._0x2da756,..._0x35e633},'args':[_0xe47298],'tdx':_0x2d9b1c});process['exit'](_0x5cdfee);});const workflowCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x281))['alias']('wf')[a2_0x1de319(0x3d2)](a2_0x1de319(0x3f3)),wfProjectCmd=workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3a2))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2cc)),wfProjectListAction=async(_0x4c526a,_0x228a4d)=>{const _0x68e637=a2_0x1de319,_0x5db468=new WorkflowProjectsCommand(),_0x36c997=program[_0x68e637(0x230)](),_0x1c0f3c=await createTDXInstance(_0x36c997),_0x52066e=await _0x5db468[_0x68e637(0x396)]({'options':{..._0x36c997,..._0x228a4d},'args':_0x4c526a?[_0x4c526a]:[],'tdx':_0x1c0f3c});process[_0x68e637(0x264)](_0x52066e);};wfProjectCmd['command'](a2_0x1de319(0x347))['description']('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x1de319(0x249)](wfProjectListAction),workflowCmd['command']('projects\x20[pattern]')['description'](a2_0x1de319(0x301))[a2_0x1de319(0x249)](wfProjectListAction);const wfWorkflowListAction=async(_0x2da8b8,_0x4b2c32)=>{const _0x5ba2f8=a2_0x1de319,_0x368071=new WorkflowWorkflowsCommand(),_0x273f92=program[_0x5ba2f8(0x230)](),_0x47ed91=await createTDXInstance(_0x273f92),_0xeef46c=await _0x368071[_0x5ba2f8(0x396)]({'options':{..._0x273f92,..._0x4b2c32},'args':_0x2da8b8?[_0x2da8b8]:[],'tdx':_0x47ed91});process[_0x5ba2f8(0x264)](_0xeef46c);};workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x34e))[a2_0x1de319(0x3d2)](a2_0x1de319(0x1ff))[a2_0x1de319(0x249)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3e3))[a2_0x1de319(0x3d2)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x422679,_0x221201)=>{const _0x556b18=a2_0x1de319,_0x4b66f8=new WorkflowSessionsCommand(),_0x349002=program['opts'](),_0x407207=await createTDXInstance(_0x349002),_0x213562=await _0x4b66f8[_0x556b18(0x396)]({'options':{..._0x349002,..._0x221201},'args':_0x422679?[_0x422679]:[],'tdx':_0x407207});process[_0x556b18(0x264)](_0x213562);};wfSessionCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2f6))[a2_0x1de319(0x3d2)](a2_0x1de319(0x360))[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),a2_0x1de319(0x3ed))[a2_0x1de319(0x254)](a2_0x1de319(0x285),a2_0x1de319(0x28f))[a2_0x1de319(0x254)](a2_0x1de319(0x366),a2_0x1de319(0x27f))['action'](wfSessionListAction),workflowCmd['command']('sessions\x20[project]')['description'](a2_0x1de319(0x3c6))[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),a2_0x1de319(0x3ed))[a2_0x1de319(0x254)]('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x1de319(0x254)](a2_0x1de319(0x366),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction);const wfAttemptListAction=async(_0x4d97bc,_0x1a031f)=>{const _0x203bd9=a2_0x1de319,_0x365728=new WorkflowAttemptsCommand(),_0x306bac=program[_0x203bd9(0x230)](),_0x129cde=await createTDXInstance(_0x306bac),_0x14c2bb=await _0x365728[_0x203bd9(0x396)]({'options':{..._0x306bac,..._0x1a031f},'args':_0x4d97bc?[_0x4d97bc]:[],'tdx':_0x129cde});process[_0x203bd9(0x264)](_0x14c2bb);},attemptCmd=workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2b0))['description']('Workflow\x20attempt\x20management')[a2_0x1de319(0x35a)](a2_0x1de319(0x35b),a2_0x1de319(0x34c))[a2_0x1de319(0x35a)](a2_0x1de319(0x36e),a2_0x1de319(0x284))['argument'](a2_0x1de319(0x2f0),a2_0x1de319(0x288))['option'](a2_0x1de319(0x22a),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x1de319(0x254)](a2_0x1de319(0x275),a2_0x1de319(0x236))[a2_0x1de319(0x254)]('--resume-from\x20<task>',a2_0x1de319(0x3b1))[a2_0x1de319(0x254)](a2_0x1de319(0x30d),a2_0x1de319(0x2f5))['option'](a2_0x1de319(0x3a9),a2_0x1de319(0x235))[a2_0x1de319(0x254)](a2_0x1de319(0x3c1),a2_0x1de319(0x30b))[a2_0x1de319(0x249)](async(_0x210e1d,_0x1a6981,_0x15d7e0,_0x5ca30a)=>{const _0x281135=a2_0x1de319;if(_0x210e1d===_0x281135(0x3b8)){await wfAttemptListAction(_0x1a6981,_0x5ca30a);return;}if(!_0x210e1d){attemptCmd[_0x281135(0x233)]();return;}const _0x3c5b28=program['opts'](),_0x271484=await createTDXInstance(_0x3c5b28);let _0x20d902=0x0;if(!_0x1a6981){const _0xe6f4dc=new WorkflowAttemptCommand();_0x20d902=await _0xe6f4dc[_0x281135(0x396)]({'options':{..._0x3c5b28,..._0x5ca30a},'args':[_0x210e1d],'tdx':_0x271484});}else{if(_0x1a6981===_0x281135(0x2e5)){const _0x1f02ff=new WorkflowLogsCommand();_0x20d902=await _0x1f02ff[_0x281135(0x396)]({'options':{..._0x3c5b28,..._0x5ca30a},'args':_0x15d7e0?[_0x210e1d,_0x15d7e0]:[_0x210e1d],'tdx':_0x271484});}else{if(_0x1a6981==='tasks'){const _0x3ddaf6=new WorkflowTasksCommand();_0x20d902=await _0x3ddaf6['run']({'options':{..._0x3c5b28,..._0x5ca30a},'args':[_0x210e1d],'tdx':_0x271484});}else{if(_0x1a6981===_0x281135(0x306)){const _0x4c6031=new WorkflowKillCommand();_0x20d902=await _0x4c6031[_0x281135(0x396)]({'options':{..._0x3c5b28,..._0x5ca30a},'args':[_0x210e1d],'tdx':_0x271484});}else{if(_0x1a6981===_0x281135(0x3aa)){const _0x2aea63=new WorkflowRetryCommand();_0x20d902=await _0x2aea63['run']({'options':{..._0x3c5b28,..._0x5ca30a},'args':['attempt:'+_0x210e1d],'tdx':_0x271484});}else console[_0x281135(0x20a)](_0x281135(0x37c)+_0x1a6981),console['error']('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x20d902=0x1;}}}}process[_0x281135(0x264)](_0x20d902);});attemptCmd['command']('list\x20[project]')['description'](a2_0x1de319(0x3a3))[a2_0x1de319(0x254)](a2_0x1de319(0x3c1),a2_0x1de319(0x289))['action'](wfAttemptListAction),workflowCmd[a2_0x1de319(0x3eb)]('attempts\x20[project]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x37b))[a2_0x1de319(0x254)](a2_0x1de319(0x3c1),a2_0x1de319(0x289))[a2_0x1de319(0x249)](wfAttemptListAction),workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x24b))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2d1))['option']('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x1de319(0x254)](a2_0x1de319(0x30d),a2_0x1de319(0x339))[a2_0x1de319(0x249)](async(_0x40754c,_0x58c8f9)=>{const _0x341059=a2_0x1de319,_0x29baeb=new WorkflowRetryCommand(),_0x3e2ff7=program[_0x341059(0x230)](),_0x2c0f6f=await createTDXInstance(_0x3e2ff7),_0x2c1dd2=await _0x29baeb['run']({'options':{..._0x3e2ff7,..._0x58c8f9},'args':[_0x40754c],'tdx':_0x2c0f6f});process['exit'](_0x2c1dd2);}),workflowCmd[a2_0x1de319(0x3eb)]('run\x20<workflow>')['description']('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0x1de319(0x254)]('--param\x20<key=value>',a2_0x1de319(0x2e4),(_0x3b8f90,_0x5d66d7=[])=>[..._0x5d66d7,_0x3b8f90],[])[a2_0x1de319(0x254)](a2_0x1de319(0x2ae),a2_0x1de319(0x30e))[a2_0x1de319(0x249)](async(_0x31a135,_0x5f2810)=>{const _0x5c1f9a=a2_0x1de319,_0x5049e6=new WorkflowRunCommand(),_0x44f4b7=program[_0x5c1f9a(0x230)](),_0xf2058e=await createTDXInstance(_0x44f4b7),_0x1a6a22=await _0x5049e6[_0x5c1f9a(0x396)]({'options':{..._0x44f4b7,..._0x5f2810},'args':[_0x31a135],'tdx':_0xf2058e});process[_0x5c1f9a(0x264)](_0x1a6a22);}),workflowCmd['command'](a2_0x1de319(0x358))[a2_0x1de319(0x3d2)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x1de319(0x254)](a2_0x1de319(0x388),a2_0x1de319(0x2b6))['action'](async(_0x131672,_0x49b877,_0x208016)=>{const _0x1639c8=a2_0x1de319,_0x17f962=new WorkflowDownloadCommand(),_0xf07475=program[_0x1639c8(0x230)](),_0x39a370=await createTDXInstance(_0xf07475),_0x31362f=await _0x17f962[_0x1639c8(0x396)]({'options':{..._0xf07475,..._0x208016},'args':[_0x131672,_0x49b877||'.'],'tdx':_0x39a370});process['exit'](_0x31362f);}),workflowCmd[a2_0x1de319(0x3eb)]('push\x20[project-name-or-dir]')[a2_0x1de319(0x3d2)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x1de319(0x254)](a2_0x1de319(0x27c),a2_0x1de319(0x3ea))[a2_0x1de319(0x254)](a2_0x1de319(0x388),a2_0x1de319(0x3b2))[a2_0x1de319(0x254)](a2_0x1de319(0x30c),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0xdce021,_0x5a545c)=>{const _0x3a17ff=a2_0x1de319,_0x1f109d=new WorkflowPushCommand(),_0x2e39f5=program[_0x3a17ff(0x230)](),_0x364f90=await createTDXInstance(_0x2e39f5),_0x4f4c14=await _0x1f109d['run']({'options':{..._0x2e39f5,..._0x5a545c},'args':_0xdce021?[_0xdce021]:[],'tdx':_0x364f90});process[_0x3a17ff(0x264)](_0x4f4c14);}),workflowCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x201))[a2_0x1de319(0x3d2)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x1de319(0x249)](async(_0x62f823,_0x10d30b)=>{const _0x58eccf=a2_0x1de319,_0x396033=new WorkflowDeleteCommand(),_0xe79e55=program['opts'](),_0x2eebaf=await createTDXInstance(_0xe79e55),_0x39baf0=await _0x396033['run']({'options':{..._0xe79e55,..._0x10d30b},'args':[_0x62f823],'tdx':_0x2eebaf});process[_0x58eccf(0x264)](_0x39baf0);});const jobCmd=program[a2_0x1de319(0x3eb)]('job')['description'](a2_0x1de319(0x277)),jobListAction=async _0x20b506=>{const _0x5a0f93=a2_0x1de319,_0x389494=new JobListCommand(),_0x59be94=program[_0x5a0f93(0x230)](),_0x4e57dd=await createTDXInstance(_0x59be94),_0x5f44a9=await _0x389494[_0x5a0f93(0x396)]({'options':{..._0x59be94,..._0x20b506},'args':[],'tdx':_0x4e57dd});process[_0x5a0f93(0x264)](_0x5f44a9);};jobCmd['command'](a2_0x1de319(0x3b8))[a2_0x1de319(0x3d2)]('List\x20jobs')[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),a2_0x1de319(0x386))[a2_0x1de319(0x249)](jobListAction),program[a2_0x1de319(0x3eb)]('jobs',{'hidden':!![]})['description'](a2_0x1de319(0x23c))[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),a2_0x1de319(0x386))[a2_0x1de319(0x249)](jobListAction),jobCmd['command'](a2_0x1de319(0x256))['description']('Show\x20job\x20details')['action'](async(_0x53840b,_0x555a53)=>{const _0x15e353=a2_0x1de319,_0x17527b=new JobShowCommand(),_0x4aefde=program['opts'](),_0x1b95b2=await createTDXInstance(_0x4aefde),_0x3406f1=await _0x17527b[_0x15e353(0x396)]({'options':{..._0x4aefde,..._0x555a53},'args':[_0x53840b],'tdx':_0x1b95b2});process[_0x15e353(0x264)](_0x3406f1);}),jobCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x206))[a2_0x1de319(0x3d2)]('Kill\x20a\x20job')[a2_0x1de319(0x249)](async(_0x302989,_0x36c66e)=>{const _0x5bc9fe=a2_0x1de319,_0x1750a4=new JobKillCommand(),_0x367c17=program[_0x5bc9fe(0x230)](),_0x1160c0=await createTDXInstance(_0x367c17),_0x1216eb=await _0x1750a4['run']({'options':{..._0x367c17,..._0x36c66e},'args':[_0x302989],'tdx':_0x1160c0});process[_0x5bc9fe(0x264)](_0x1216eb);}),jobCmd['command'](a2_0x1de319(0x2a7))[a2_0x1de319(0x3d2)](a2_0x1de319(0x34d))[a2_0x1de319(0x254)](a2_0x1de319(0x3f9),a2_0x1de319(0x329),'trino')[a2_0x1de319(0x254)]('-f,\x20--file\x20<path>',a2_0x1de319(0x33e))[a2_0x1de319(0x254)](a2_0x1de319(0x268),a2_0x1de319(0x279),a2_0x1de319(0x3ae))[a2_0x1de319(0x249)](async(_0x477a59,_0x3b077d)=>{const _0x1f76c0=a2_0x1de319,_0x340f90=new JobSubmitCommand(),_0x2f642d=program[_0x1f76c0(0x230)](),_0x5a9ff8=await createTDXInstance(_0x2f642d),_0x5219e2=await _0x340f90[_0x1f76c0(0x396)]({'options':{..._0x2f642d,..._0x3b077d},'args':_0x477a59?[_0x477a59]:[],'tdx':_0x5a9ff8});process['exit'](_0x5219e2);}),jobCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x348))[a2_0x1de319(0x3d2)]('Get\x20job\x20results')['action'](async(_0x46f54b,_0x5e2da8)=>{const _0x2211d1=a2_0x1de319,_0x2ed01e=new JobResultCommand(),_0x50d931=program[_0x2211d1(0x230)](),_0x55da28=await createTDXInstance(_0x50d931),_0x43597b=await _0x2ed01e[_0x2211d1(0x396)]({'options':{..._0x50d931,..._0x5e2da8},'args':[_0x46f54b],'tdx':_0x55da28});process[_0x2211d1(0x264)](_0x43597b);});const llmCmd=program[a2_0x1de319(0x3eb)]('llm')['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x217))[a2_0x1de319(0x3d2)](a2_0x1de319(0x307))[a2_0x1de319(0x249)](async(_0x416e3a,_0x311352)=>{const _0x1c1c10=a2_0x1de319,_0x2afe95=new LLMUseCommand(),_0xce962f=program[_0x1c1c10(0x230)](),_0x1497f6=await createTDXInstance(_0xce962f),_0x7cf25b=await _0x2afe95[_0x1c1c10(0x396)]({'options':{..._0xce962f,..._0x311352},'args':[_0x416e3a],'tdx':_0x1497f6});process[_0x1c1c10(0x264)](_0x7cf25b);}),llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x296))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2ac))[a2_0x1de319(0x249)](async _0x4600a4=>{const _0x16c447=a2_0x1de319,_0x4a14d7=new LLMModelsCommand(),_0xb73b2a=program[_0x16c447(0x230)](),_0x3ca388=await createTDXInstance(_0xb73b2a),_0x20247d=await _0x4a14d7[_0x16c447(0x396)]({'options':{..._0xb73b2a,..._0x4600a4},'args':[],'tdx':_0x3ca388});process[_0x16c447(0x264)](_0x20247d);});const projectCmd=llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3a2))[a2_0x1de319(0x3d2)](a2_0x1de319(0x21a)),llmProjectListAction=async(_0x156470,_0x5bb762)=>{const _0x26f639=a2_0x1de319,_0x51719f=new LLMProjectsCommand(),_0x27879c=program[_0x26f639(0x230)](),_0x4d3dd9=await createTDXInstance(_0x27879c),_0x470577=await _0x51719f['run']({'options':{..._0x27879c,..._0x5bb762},'args':_0x156470?[_0x156470]:[],'tdx':_0x4d3dd9});process[_0x26f639(0x264)](_0x470577);};projectCmd['command'](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')['action'](llmProjectListAction),llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3b5))[a2_0x1de319(0x3d2)](a2_0x1de319(0x246))[a2_0x1de319(0x249)](llmProjectListAction),projectCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x252))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3ca))['option'](a2_0x1de319(0x3ef),'Project\x20description')['action'](async(_0x4de6ee,_0x35a9a5)=>{const _0x1e04ae=a2_0x1de319,_0x4378ad=new LLMProjectCreateCommand(),_0x497e36=program[_0x1e04ae(0x230)](),_0x3591d5=await createTDXInstance(_0x497e36),_0x38e9a9=await _0x4378ad['run']({'options':{..._0x497e36,..._0x35a9a5},'args':[_0x4de6ee],'tdx':_0x3591d5});process[_0x1e04ae(0x264)](_0x38e9a9);}),projectCmd[a2_0x1de319(0x3eb)]('delete\x20<name>')[a2_0x1de319(0x3d2)](a2_0x1de319(0x3a4))[a2_0x1de319(0x249)](async(_0x1fa291,_0x153349)=>{const _0xd14c65=a2_0x1de319,_0x4d3f6e=new LLMProjectDeleteCommand(),_0x1d3487=program['opts'](),_0x587b46=await createTDXInstance(_0x1d3487),_0xb3cd1c=await _0x4d3f6e[_0xd14c65(0x396)]({'options':{..._0x1d3487,..._0x153349},'args':[_0x1fa291],'tdx':_0x587b46});process['exit'](_0xb3cd1c);}),projectCmd['command'](a2_0x1de319(0x372))[a2_0x1de319(0x3d2)](a2_0x1de319(0x373))[a2_0x1de319(0x254)](a2_0x1de319(0x375),a2_0x1de319(0x300))['option'](a2_0x1de319(0x31c),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x1de319(0x249)](async(_0x117b6b,_0x363084)=>{const _0x534620=a2_0x1de319,_0x52ec4b=new LLMProjectBackupCommand(),_0x497e5b=program['opts'](),_0x505a01=await createTDXInstance(_0x497e5b),_0x4b32ba=await _0x52ec4b[_0x534620(0x396)]({'options':{..._0x497e5b,..._0x363084},'args':[_0x117b6b],'tdx':_0x505a01});process[_0x534620(0x264)](_0x4b32ba);}),projectCmd['command'](a2_0x1de319(0x378))[a2_0x1de319(0x3d2)](a2_0x1de319(0x292))[a2_0x1de319(0x254)](a2_0x1de319(0x24e),a2_0x1de319(0x3bd))[a2_0x1de319(0x254)](a2_0x1de319(0x31c),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x1de319(0x249)](async(_0x328939,_0x5181b1)=>{const _0x3196c3=a2_0x1de319,_0x25e08a=new LLMProjectRestoreCommand(),_0x5bdfea=program[_0x3196c3(0x230)](),_0x14317d=await createTDXInstance(_0x5bdfea),_0xee9ceb=await _0x25e08a[_0x3196c3(0x396)]({'options':{..._0x5bdfea,..._0x5181b1},'args':[_0x328939],'tdx':_0x14317d});process['exit'](_0xee9ceb);});const agentCmd=llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2a0))[a2_0x1de319(0x3d2)]('LLM\x20agent\x20management'),llmAgentListAction=async(_0x2933a6,_0x482325)=>{const _0x44b630=a2_0x1de319,_0x595e78=new LLMAgentsCommand(),_0x3b0fdb=program[_0x44b630(0x230)](),_0xc17e75=await createTDXInstance(_0x3b0fdb),_0x54bbd8=await _0x595e78[_0x44b630(0x396)]({'options':{..._0x3b0fdb,..._0x482325},'args':_0x2933a6?[_0x2933a6]:[],'tdx':_0xc17e75});process['exit'](_0x54bbd8);};agentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)](a2_0x1de319(0x356))[a2_0x1de319(0x249)](llmAgentListAction),llmCmd[a2_0x1de319(0x3eb)]('agents\x20[pattern]')[a2_0x1de319(0x3d2)](a2_0x1de319(0x379))[a2_0x1de319(0x249)](llmAgentListAction),agentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x369))['description']('Show\x20agent\x20details')[a2_0x1de319(0x249)](async(_0x1db0a1,_0x31e817)=>{const _0x32791c=a2_0x1de319,_0x3892f4=new LLMAgentShowCommand(),_0xb14523=program['opts'](),_0x342255=await createTDXInstance(_0xb14523),_0x240b77=await _0x3892f4[_0x32791c(0x396)]({'options':{..._0xb14523,..._0x31e817},'args':[_0x1db0a1],'tdx':_0x342255});process[_0x32791c(0x264)](_0x240b77);}),agentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x252))[a2_0x1de319(0x3d2)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')['option'](a2_0x1de319(0x1f3),a2_0x1de319(0x280))[a2_0x1de319(0x254)](a2_0x1de319(0x3bf),a2_0x1de319(0x365),'claude-4.5-sonnet')['option'](a2_0x1de319(0x3c8),a2_0x1de319(0x3ac))[a2_0x1de319(0x254)](a2_0x1de319(0x2a8),a2_0x1de319(0x250),'4')[a2_0x1de319(0x254)](a2_0x1de319(0x355),a2_0x1de319(0x32f),a2_0x1de319(0x27d))[a2_0x1de319(0x249)](async(_0x470bd2,_0x42a776)=>{const _0x10c775=a2_0x1de319,_0x1cdb71=new LLMAgentCreateCommand(),_0x273b92=program[_0x10c775(0x230)](),_0xde9a3d=await createTDXInstance(_0x273b92),_0x2b8c10=await _0x1cdb71[_0x10c775(0x396)]({'options':{..._0x273b92,..._0x42a776},'args':[_0x470bd2],'tdx':_0xde9a3d});process[_0x10c775(0x264)](_0x2b8c10);}),agentCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3ad))['description'](a2_0x1de319(0x3de))['option'](a2_0x1de319(0x2c6),'Agent\x20name')[a2_0x1de319(0x254)](a2_0x1de319(0x2cb),a2_0x1de319(0x39a))[a2_0x1de319(0x254)]('--description\x20<text>',a2_0x1de319(0x2e3))[a2_0x1de319(0x254)](a2_0x1de319(0x3c8),a2_0x1de319(0x3ac))['action'](async(_0x316945,_0x116dd4)=>{const _0x45ddc5=a2_0x1de319,_0x1321f3=new LLMAgentUpdateCommand(),_0x5bfcfa=program[_0x45ddc5(0x230)](),_0x20ab85=await createTDXInstance(_0x5bfcfa),_0x1e57a6=await _0x1321f3[_0x45ddc5(0x396)]({'options':{..._0x5bfcfa,..._0x116dd4},'args':[_0x316945],'tdx':_0x20ab85});process[_0x45ddc5(0x264)](_0x1e57a6);}),agentCmd[a2_0x1de319(0x3eb)]('delete\x20<agent-name>')['description']('Delete\x20an\x20agent')[a2_0x1de319(0x249)](async(_0x51df66,_0x376a8f)=>{const _0xd88c44=a2_0x1de319,_0x3bd596=new LLMAgentDeleteCommand(),_0x18d1b4=program['opts'](),_0x3c4cd6=await createTDXInstance(_0x18d1b4),_0x1a6826=await _0x3bd596[_0xd88c44(0x396)]({'options':{..._0x18d1b4,..._0x376a8f},'args':[_0x51df66],'tdx':_0x3c4cd6});process[_0xd88c44(0x264)](_0x1a6826);}),llmCmd['command'](a2_0x1de319(0x21c))[a2_0x1de319(0x3d2)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x1de319(0x254)](a2_0x1de319(0x28c),a2_0x1de319(0x212))[a2_0x1de319(0x249)](async(_0x1ad1ba,_0x17d9db)=>{const _0x103111=a2_0x1de319,_0x15e2ab=new LLMHistoryCommand(),_0x1e3245=program[_0x103111(0x230)](),_0xa10fc8=await createTDXInstance(_0x1e3245),_0x5b2f87=await _0x15e2ab['run']({'options':{..._0x1e3245,..._0x17d9db},'args':_0x1ad1ba?[_0x1ad1ba]:[],'tdx':_0xa10fc8});process[_0x103111(0x264)](_0x5b2f87);}),llmCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x345))[a2_0x1de319(0x3d2)](a2_0x1de319(0x36b))[a2_0x1de319(0x254)]('--port\x20<number>',a2_0x1de319(0x23e),a2_0x1de319(0x38b))[a2_0x1de319(0x254)](a2_0x1de319(0x291),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x1de319(0x254)](a2_0x1de319(0x39c),a2_0x1de319(0x298))[a2_0x1de319(0x249)](async _0x2f2ce0=>{const _0x196ab9=a2_0x1de319,_0x35900f=new LLMProxyCommand(),_0x869f65=program[_0x196ab9(0x230)](),_0x4dbdb8=await createTDXInstance(_0x869f65),_0x65dc2={..._0x2f2ce0,'port':_0x2f2ce0[_0x196ab9(0x227)]?parseInt(_0x2f2ce0[_0x196ab9(0x227)],0xa):undefined},_0x117650=await _0x35900f['run']({'options':{..._0x869f65,..._0x65dc2},'args':[],'tdx':_0x4dbdb8});process[_0x196ab9(0x264)](_0x117650);}),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x3ba))['description'](a2_0x1de319(0x23b))[a2_0x1de319(0x254)]('--model\x20<name>',a2_0x1de319(0x353),'sonnet')[a2_0x1de319(0x254)](a2_0x1de319(0x2ce),a2_0x1de319(0x38c))['allowUnknownOption']()[a2_0x1de319(0x38f)](!![])['addHelpText'](a2_0x1de319(0x342),a2_0x1de319(0x273))[a2_0x1de319(0x249)](async(_0x5c0be6,_0x26b017)=>{const _0x1c9387=a2_0x1de319,_0x443158=program[_0x1c9387(0x230)](),_0x940d4d=Array[_0x1c9387(0x33f)](_0x5c0be6)?_0x5c0be6:[];if(_0x940d4d[0x0]==='statusline'){const _0xe66d47=new ClaudeStatuslineCommand(),_0x49bb95=await _0xe66d47[_0x1c9387(0x396)]({'options':{..._0x443158,..._0x26b017},'args':_0x940d4d[_0x1c9387(0x28e)](0x1),'tdx':null});process[_0x1c9387(0x264)](_0x49bb95);}if(_0x940d4d[0x0]===_0x1c9387(0x311)){const _0x1753db=new ClaudeUsageCommand(),_0x22369c=await _0x1753db[_0x1c9387(0x396)]({'options':{..._0x443158,..._0x26b017},'args':_0x940d4d[_0x1c9387(0x28e)](0x1),'tdx':null});process[_0x1c9387(0x264)](_0x22369c);}const _0x4ff133=new ClaudeCommand(),_0x1d881c=await createTDXInstance(_0x443158),_0x13bc7e=await _0x4ff133[_0x1c9387(0x396)]({'options':{..._0x443158,..._0x26b017},'args':_0x940d4d,'tdx':_0x1d881c});process['exit'](_0x13bc7e);}),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c5))['description']('Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)')['option'](a2_0x1de319(0x320),a2_0x1de319(0x350))['action'](async _0x1ce54d=>{const _0x51fbe0=a2_0x1de319,_0x124dfd=new ContextCommand(),_0x384888=program[_0x51fbe0(0x230)](),_0x291b04=await _0x124dfd[_0x51fbe0(0x396)]({'options':{..._0x384888,..._0x1ce54d},'args':[],'tdx':null});process['exit'](_0x291b04);}),program['command']('use\x20[resource]\x20[value]')[a2_0x1de319(0x3d2)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0x1de319(0x254)](a2_0x1de319(0x320),'Clear\x20session\x20context')[a2_0x1de319(0x249)](async(_0x13456a,_0x7e43ce,_0x2141c0)=>{const _0x2560da=a2_0x1de319,_0x4fea55=new UseCommand(),_0x4cedd6=program[_0x2560da(0x230)](),_0x46ee9a=[];if(_0x13456a)_0x46ee9a[_0x2560da(0x232)](_0x13456a);if(_0x7e43ce)_0x46ee9a[_0x2560da(0x232)](_0x7e43ce);const _0x5ad224=await _0x4fea55[_0x2560da(0x396)]({'options':{..._0x4cedd6,..._0x2141c0},'args':_0x46ee9a,'tdx':null});process[_0x2560da(0x264)](_0x5ad224);}),program['command'](a2_0x1de319(0x255))['description'](a2_0x1de319(0x343))['option'](a2_0x1de319(0x28c),'Show\x20the\x20most\x20recent\x20chat')[a2_0x1de319(0x249)](async _0x597e2a=>{const _0x346478=a2_0x1de319,_0x5d5c69=new ChatsCommand(),_0x40d07c=program[_0x346478(0x230)](),_0x159021=await createTDXInstance(_0x40d07c),_0x44faff=await _0x5d5c69[_0x346478(0x396)]({'options':{..._0x40d07c,..._0x597e2a},'args':[],'tdx':_0x159021});process['exit'](_0x44faff);});const authCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x1f9))[a2_0x1de319(0x3d2)]('Authentication\x20management');async function runAuthStatusCommand(_0x2a6b64){const _0xf37081=a2_0x1de319,_0x24639d=new AuthStatusCommand(),_0x23b173=program[_0xf37081(0x230)](),_0x1cb470=await createTDXInstance(_0x23b173),_0x1df153=await _0x24639d[_0xf37081(0x396)]({'options':{..._0x23b173,..._0x2a6b64},'args':[],'tdx':_0x1cb470});process['exit'](_0x1df153);}authCmd['action'](runAuthStatusCommand),authCmd['command'](a2_0x1de319(0x31d))['description'](a2_0x1de319(0x32e))[a2_0x1de319(0x249)](runAuthStatusCommand),authCmd[a2_0x1de319(0x3eb)]('setup')[a2_0x1de319(0x3d2)](a2_0x1de319(0x308))[a2_0x1de319(0x2f9)]('after',a2_0x1de319(0x225))[a2_0x1de319(0x249)](async _0x42fc32=>{const _0x113355=a2_0x1de319,_0x5d8a84=new AuthSetupCommand(),_0x4729b5=program[_0x113355(0x230)](),_0x482f18=await createTDXInstance(_0x4729b5),_0x1e102d=await _0x5d8a84[_0x113355(0x396)]({'options':{..._0x4729b5,..._0x42fc32},'args':[],'tdx':_0x482f18});process[_0x113355(0x264)](_0x1e102d);}),authCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x328))[a2_0x1de319(0x3d2)](a2_0x1de319(0x202))[a2_0x1de319(0x2f9)](a2_0x1de319(0x342),'\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0x1de319(0x249)](async _0x265321=>{const _0x286178=a2_0x1de319,_0x276290=new AuthClearCommand(),_0x9c8c21=program[_0x286178(0x230)](),_0xfd909b=await _0x276290[_0x286178(0x396)]({'options':{..._0x9c8c21,..._0x265321},'args':[],'tdx':null});process[_0x286178(0x264)](_0xfd909b);});const userCmd=program[a2_0x1de319(0x3eb)]('user')[a2_0x1de319(0x3d2)](a2_0x1de319(0x370)),userListAction=async _0x5d89d3=>{const _0x249a6d=a2_0x1de319,_0x5c1c0e=new UserListCommand(),_0x422b6d=program[_0x249a6d(0x230)](),_0x461459=await createTDXInstance(_0x422b6d),_0x421aff=await _0x5c1c0e[_0x249a6d(0x396)]({'options':{..._0x422b6d,..._0x5d89d3},'args':[],'tdx':_0x461459});process[_0x249a6d(0x264)](_0x421aff);};userCmd[a2_0x1de319(0x249)](async _0x22def1=>{const _0x447be0=a2_0x1de319,_0x49dff2=new UserCommand(),_0x13f534=program[_0x447be0(0x230)](),_0x5945d5=await createTDXInstance(_0x13f534),_0xff5e8b=await _0x49dff2['run']({'options':{..._0x13f534,..._0x22def1},'args':[],'tdx':_0x5945d5});process[_0x447be0(0x264)](_0xff5e8b);}),userCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3b8))['description'](a2_0x1de319(0x2b3))['action'](userListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x3ab))['description'](a2_0x1de319(0x3f4))[a2_0x1de319(0x249)](userListAction),program[a2_0x1de319(0x3eb)](a2_0x1de319(0x313))[a2_0x1de319(0x3d2)](a2_0x1de319(0x20e))['action'](async _0x530fba=>{const _0x184480=new ProfilesCommand(),_0x1f81b1=program['opts'](),_0x3abca5=await _0x184480['run']({'options':{..._0x1f81b1,..._0x530fba},'args':[],'tdx':null});process['exit'](_0x3abca5);});const engageCmd=program[a2_0x1de319(0x3eb)](a2_0x1de319(0x327))['description'](a2_0x1de319(0x2ad)),createEngageAction=_0x598efd=>{return async(_0x2733ef,_0x5ea120)=>{const _0x15f307=a2_0x4b4d,_0x50126f=new _0x598efd(),_0xe2a2f4=program['opts'](),_0x43a234=await createTDXInstance(_0xe2a2f4),_0xcf75d7=await _0x50126f[_0x15f307(0x396)]({'options':{..._0xe2a2f4,..._0x5ea120},'args':[_0x2733ef],'tdx':_0x43a234});process['exit'](_0xcf75d7);};},createEngageNoArgAction=_0xa47024=>{return async _0x16ad19=>{const _0x3025e6=a2_0x4b4d,_0x3f1d37=new _0xa47024(),_0x3b9f6c=program[_0x3025e6(0x230)](),_0x3be6f3=await createTDXInstance(_0x3b9f6c),_0x1b2ec1=await _0x3f1d37[_0x3025e6(0x396)]({'options':{..._0x3b9f6c,..._0x16ad19},'args':[],'tdx':_0x3be6f3});process[_0x3025e6(0x264)](_0x1b2ec1);};},campaignCmd=engageCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3d6))['description'](a2_0x1de319(0x3e8)),campaignListAction=async(_0x375867,_0x2b8dfb)=>{const _0x4a7f70=a2_0x1de319,_0x2b48c0=new EngageCampaignsCommand(),_0x364159=program[_0x4a7f70(0x230)](),_0x4cdcdb=await createTDXInstance(_0x364159),_0x522957=await _0x2b48c0[_0x4a7f70(0x396)]({'options':{..._0x364159,..._0x2b8dfb},'args':_0x375867?[_0x375867]:[],'tdx':_0x4cdcdb});process[_0x4a7f70(0x264)](_0x522957);};campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)](a2_0x1de319(0x398))[a2_0x1de319(0x254)]('--type\x20<type>',a2_0x1de319(0x294))[a2_0x1de319(0x254)](a2_0x1de319(0x2b7),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x1de319(0x254)]('--workspace\x20<name>',a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](campaignListAction),engageCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x260))['description']('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')['option']('--type\x20<type>',a2_0x1de319(0x294))['option']('--status\x20<status>',a2_0x1de319(0x257))['option']('--workspace\x20<name>','Workspace\x20name')['action'](campaignListAction),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c2))[a2_0x1de319(0x3d2)]('Show\x20campaign\x20details')[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),'Workspace\x20name')[a2_0x1de319(0x254)](a2_0x1de319(0x2ea),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x1de319(0x249)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')[a2_0x1de319(0x3d2)](a2_0x1de319(0x37e))[a2_0x1de319(0x35f)]('--name\x20<name>',a2_0x1de319(0x237))[a2_0x1de319(0x35f)](a2_0x1de319(0x24d),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x20f))[a2_0x1de319(0x254)](a2_0x1de319(0x35d),a2_0x1de319(0x267))[a2_0x1de319(0x254)]('--segment\x20<path>',a2_0x1de319(0x3a5))[a2_0x1de319(0x254)](a2_0x1de319(0x330),a2_0x1de319(0x2ba))['option'](a2_0x1de319(0x3c3),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x1de319(0x362),a2_0x1de319(0x389))[a2_0x1de319(0x254)]('--timezone\x20<tz>',a2_0x1de319(0x2b1))[a2_0x1de319(0x249)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x299))[a2_0x1de319(0x3d2)]('Update\x20a\x20campaign')[a2_0x1de319(0x254)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x1de319(0x27c),'New\x20campaign\x20name')[a2_0x1de319(0x254)]('--description\x20<desc>',a2_0x1de319(0x267))[a2_0x1de319(0x254)](a2_0x1de319(0x367),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x1de319(0x254)](a2_0x1de319(0x330),a2_0x1de319(0x2ba))[a2_0x1de319(0x254)](a2_0x1de319(0x3c3),a2_0x1de319(0x314))[a2_0x1de319(0x254)](a2_0x1de319(0x362),a2_0x1de319(0x389))[a2_0x1de319(0x254)](a2_0x1de319(0x234),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x1de319(0x249)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x36a))['description'](a2_0x1de319(0x2a4))['option'](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x254)](a2_0x1de319(0x36d),a2_0x1de319(0x207))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x1de319(0x3eb)]('launch\x20<name-or-id>')[a2_0x1de319(0x3d2)](a2_0x1de319(0x24a))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2ee))[a2_0x1de319(0x3d2)](a2_0x1de319(0x29b))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3c2))['description'](a2_0x1de319(0x34b))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x397))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2db))['option'](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x208))[a2_0x1de319(0x3d2)]('Email\x20template\x20management'),templateListAction=async(_0x5936f9,_0x551c29)=>{const _0x7004e6=a2_0x1de319,_0x5ac7fd=new EngageTemplatesCommand(),_0x35c0c7=program[_0x7004e6(0x230)](),_0x5f2764=await createTDXInstance(_0x35c0c7),_0x1da13e=await _0x5ac7fd['run']({'options':{..._0x35c0c7,..._0x551c29},'args':_0x5936f9?[_0x5936f9]:[],'tdx':_0x5f2764});process[_0x7004e6(0x264)](_0x1da13e);};templateCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x347))[a2_0x1de319(0x3d2)](a2_0x1de319(0x3e4))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](templateListAction),engageCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x1fc))[a2_0x1de319(0x3d2)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x249)](templateListAction),templateCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c2))['description']('Show\x20email\x20template\x20details')['option']('--workspace\x20<name>',a2_0x1de319(0x3cd))[a2_0x1de319(0x254)](a2_0x1de319(0x2ea),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3ce))['description']('Create\x20an\x20email\x20template')[a2_0x1de319(0x35f)](a2_0x1de319(0x27c),a2_0x1de319(0x214))['requiredOption'](a2_0x1de319(0x38d),'Email\x20subject\x20template')['requiredOption'](a2_0x1de319(0x22e),'HTML\x20template\x20content')[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x20f))[a2_0x1de319(0x254)](a2_0x1de319(0x3ec),a2_0x1de319(0x231))[a2_0x1de319(0x254)](a2_0x1de319(0x248),a2_0x1de319(0x3b3))[a2_0x1de319(0x249)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x299))['description'](a2_0x1de319(0x258))[a2_0x1de319(0x254)](a2_0x1de319(0x3b9),a2_0x1de319(0x3cd))[a2_0x1de319(0x254)](a2_0x1de319(0x27c),'New\x20template\x20name')[a2_0x1de319(0x254)]('--subject\x20<subject>',a2_0x1de319(0x359))[a2_0x1de319(0x254)](a2_0x1de319(0x22e),a2_0x1de319(0x3ee))[a2_0x1de319(0x254)]('--plaintext\x20<text>',a2_0x1de319(0x231))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x1de319(0x3eb)]('delete\x20<name-or-id>')['description']('Delete\x20an\x20email\x20template')[a2_0x1de319(0x254)]('--workspace\x20<name>','Workspace\x20name')[a2_0x1de319(0x254)](a2_0x1de319(0x36d),a2_0x1de319(0x207))[a2_0x1de319(0x249)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x1de319(0x3d2)]('Workspace\x20management'),workspaceListAction=async(_0x294dbe,_0x505410)=>{const _0x361cc4=a2_0x1de319,_0x526eb3=new EngageWorkspacesCommand(),_0xd9ce8d=program[_0x361cc4(0x230)](),_0x372e35=await createTDXInstance(_0xd9ce8d),_0x540081=await _0x526eb3[_0x361cc4(0x396)]({'options':{..._0xd9ce8d,..._0x505410},'args':_0x294dbe?[_0x294dbe]:[],'tdx':_0x372e35});process[_0x361cc4(0x264)](_0x540081);};workspaceCmd['command'](a2_0x1de319(0x347))['description'](a2_0x1de319(0x2a2))[a2_0x1de319(0x249)](workspaceListAction),engageCmd[a2_0x1de319(0x3eb)]('workspaces\x20[pattern]')['description'](a2_0x1de319(0x26d))[a2_0x1de319(0x249)](workspaceListAction),workspaceCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2c2))[a2_0x1de319(0x3d2)](a2_0x1de319(0x39f))[a2_0x1de319(0x254)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x1de319(0x249)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x1de319(0x3eb)]('create')[a2_0x1de319(0x3d2)](a2_0x1de319(0x290))[a2_0x1de319(0x35f)](a2_0x1de319(0x27c),a2_0x1de319(0x3cd))['option'](a2_0x1de319(0x35d),'Workspace\x20description')[a2_0x1de319(0x249)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x299))[a2_0x1de319(0x3d2)](a2_0x1de319(0x340))[a2_0x1de319(0x254)](a2_0x1de319(0x27c),a2_0x1de319(0x3e1))[a2_0x1de319(0x254)](a2_0x1de319(0x35d),'Workspace\x20description')[a2_0x1de319(0x249)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')[a2_0x1de319(0x3d2)](a2_0x1de319(0x22f))[a2_0x1de319(0x254)](a2_0x1de319(0x36d),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x1de319(0x335))['description']('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x1de319(0x2e9))[a2_0x1de319(0x3d2)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x1cd454=>{const _0xeb4195=a2_0x1de319,_0x25ee62=new ConnectionListCommand(),_0x38e1ce=program[_0xeb4195(0x230)](),_0x2f1ae9=await createTDXInstance(_0x38e1ce),_0x4054b2=await _0x25ee62[_0xeb4195(0x396)]({'options':{..._0x38e1ce,..._0x1cd454},'args':[],'tdx':_0x2f1ae9});process['exit'](_0x4054b2);};function a2_0x4b4d(_0x33d032,_0x3ebb90){_0x33d032=_0x33d032-0x1f3;const _0xbcf1f4=a2_0xbcf1();let _0x4b4d07=_0xbcf1f4[_0x33d032];return _0x4b4d07;}connectionCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x3b8))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2b5))[a2_0x1de319(0x249)](connectionListAction),program[a2_0x1de319(0x3eb)]('connections',{'hidden':!![]})[a2_0x1de319(0x3d2)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x1de319(0x249)](connectionListAction),connectionCmd[a2_0x1de319(0x3eb)](a2_0x1de319(0x2be))[a2_0x1de319(0x3d2)](a2_0x1de319(0x2d7))[a2_0x1de319(0x249)](async(_0x24a7e7,_0xab9dcf)=>{const _0x185352=a2_0x1de319,_0x504ab1=new ConnectionShowCommand(),_0x5bf31e=program[_0x185352(0x230)](),_0x380ab2=await createTDXInstance(_0x5bf31e),_0x1d6fb4=await _0x504ab1['run']({'options':{..._0x5bf31e,..._0xab9dcf},'args':[_0x24a7e7],'tdx':_0x380ab2});process[_0x185352(0x264)](_0x1d6fb4);});export{program};export function runCLI(){const _0x111ef9=a2_0x1de319;program[_0x111ef9(0x399)](process[_0x111ef9(0x317)]);!process[_0x111ef9(0x317)][_0x111ef9(0x28e)](0x2)[_0x111ef9(0x2cd)]&&program[_0x111ef9(0x26f)]();const _0x307944=packageJson[_0x111ef9(0x2fe)];process['stderr']['isTTY']&&process[_0x111ef9(0x317)][_0x111ef9(0x2cd)]>0x2&&!_0x307944[_0x111ef9(0x226)](_0x111ef9(0x32d))&&checkForUpdate(_0x307944)[_0x111ef9(0x29a)](_0x4c86fb=>{_0x4c86fb&&displayUpdateNotification(_0x4c86fb);})[_0x111ef9(0x382)](()=>{});}