@treasuredata/tdx 0.8.10 → 0.8.12

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 (147) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client/cdp-api-client.d.ts +10 -1
  8. package/dist/client/cdp-api-client.d.ts.map +1 -1
  9. package/dist/client/cdp-api-client.js +1 -1
  10. package/dist/client/cdp-api-client.js.map +1 -1
  11. package/dist/client/engage-api-client.js +1 -1
  12. package/dist/client/http-client.js +1 -1
  13. package/dist/client/llm-api-client.js +1 -1
  14. package/dist/client/rate-limiter.js +1 -1
  15. package/dist/client/td-api-client.js +1 -1
  16. package/dist/client/trino-api-client.js +1 -1
  17. package/dist/client/workflow-client.js +1 -1
  18. package/dist/commands/activations.js +1 -1
  19. package/dist/commands/api-command.js +1 -1
  20. package/dist/commands/auth-command.js +1 -1
  21. package/dist/commands/chat-command.js +1 -1
  22. package/dist/commands/claude-command.d.ts +23 -0
  23. package/dist/commands/claude-command.d.ts.map +1 -1
  24. package/dist/commands/claude-command.js +1 -1
  25. package/dist/commands/claude-command.js.map +1 -1
  26. package/dist/commands/claude-statusline-command.js +1 -1
  27. package/dist/commands/claude-usage-command.js +1 -1
  28. package/dist/commands/command.js +1 -1
  29. package/dist/commands/connection-command.js +1 -1
  30. package/dist/commands/context-command.js +1 -1
  31. package/dist/commands/databases.js +1 -1
  32. package/dist/commands/describe.js +1 -1
  33. package/dist/commands/engage-command.js +1 -1
  34. package/dist/commands/job-command.js +1 -1
  35. package/dist/commands/journey-command.d.ts +12 -0
  36. package/dist/commands/journey-command.d.ts.map +1 -1
  37. package/dist/commands/journey-command.js +1 -1
  38. package/dist/commands/journey-command.js.map +1 -1
  39. package/dist/commands/llm-command.js +1 -1
  40. package/dist/commands/llm-proxy.js +1 -1
  41. package/dist/commands/parent-segment-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/segment-command.js +1 -1
  45. package/dist/commands/segment-create-command.js +1 -1
  46. package/dist/commands/segment-fields-command.js +1 -1
  47. package/dist/commands/segment-pull-command.js +1 -1
  48. package/dist/commands/segment-push-command.d.ts.map +1 -1
  49. package/dist/commands/segment-push-command.js +1 -1
  50. package/dist/commands/segment-push-command.js.map +1 -1
  51. package/dist/commands/segment-update-command.js +1 -1
  52. package/dist/commands/segment-use-command.js +1 -1
  53. package/dist/commands/segments.d.ts.map +1 -1
  54. package/dist/commands/segments.js +1 -1
  55. package/dist/commands/segments.js.map +1 -1
  56. package/dist/commands/show.js +1 -1
  57. package/dist/commands/tables.js +1 -1
  58. package/dist/commands/use-command.js +1 -1
  59. package/dist/commands/user-command.js +1 -1
  60. package/dist/commands/workflow-command.js +1 -1
  61. package/dist/core/auth.js +1 -1
  62. package/dist/core/config.js +1 -1
  63. package/dist/core/connection-cache.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.js +1 -1
  66. package/dist/core/keychain.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/index.js +1 -1
  72. package/dist/proxy/anthropic-adapter.js +1 -1
  73. package/dist/proxy/claude-usage-tracker.js +1 -1
  74. package/dist/proxy/context-signature.js +1 -1
  75. package/dist/proxy/conversation-utils.js +1 -1
  76. package/dist/proxy/server.js +1 -1
  77. package/dist/proxy/session-cache.js +1 -1
  78. package/dist/sdk/api.js +1 -1
  79. package/dist/sdk/connection.js +1 -1
  80. package/dist/sdk/engage.js +1 -1
  81. package/dist/sdk/errors.d.ts +2 -0
  82. package/dist/sdk/errors.d.ts.map +1 -1
  83. package/dist/sdk/errors.js +1 -1
  84. package/dist/sdk/errors.js.map +1 -1
  85. package/dist/sdk/index.js +1 -1
  86. package/dist/sdk/job.js +1 -1
  87. package/dist/sdk/journey.d.ts +15 -1
  88. package/dist/sdk/journey.d.ts.map +1 -1
  89. package/dist/sdk/journey.js +1 -1
  90. package/dist/sdk/journey.js.map +1 -1
  91. package/dist/sdk/llm.js +1 -1
  92. package/dist/sdk/query.js +1 -1
  93. package/dist/sdk/segment/child-segment-yaml.d.ts +5 -1
  94. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  95. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  96. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  97. package/dist/sdk/segment/journey-yaml.d.ts +18 -1
  98. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  99. package/dist/sdk/segment/journey-yaml.js +1 -1
  100. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  101. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  102. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  103. package/dist/sdk/segment.js +1 -1
  104. package/dist/sdk/user.js +1 -1
  105. package/dist/sdk/workflow.js +1 -1
  106. package/dist/types/cdp.d.ts +37 -0
  107. package/dist/types/cdp.d.ts.map +1 -1
  108. package/dist/types/endpoints.js +1 -1
  109. package/dist/types/index.d.ts +1 -1
  110. package/dist/types/index.d.ts.map +1 -1
  111. package/dist/types/index.js +1 -1
  112. package/dist/utils/agent-ref-parser.js +1 -1
  113. package/dist/utils/async.js +1 -1
  114. package/dist/utils/chat-cache.js +1 -1
  115. package/dist/utils/colors.js +1 -1
  116. package/dist/utils/command-output.js +1 -1
  117. package/dist/utils/constants.js +1 -1
  118. package/dist/utils/diff.js +1 -1
  119. package/dist/utils/fields-display.js +1 -1
  120. package/dist/utils/file-permissions.js +1 -1
  121. package/dist/utils/format-detector.js +1 -1
  122. package/dist/utils/formatters.js +1 -1
  123. package/dist/utils/journey-utils.js +1 -1
  124. package/dist/utils/json-loader.js +1 -1
  125. package/dist/utils/llm-backup-utils.js +1 -1
  126. package/dist/utils/model-aliases.js +1 -1
  127. package/dist/utils/model-factors.js +1 -1
  128. package/dist/utils/option-validation.js +1 -1
  129. package/dist/utils/port.js +1 -1
  130. package/dist/utils/process.js +1 -1
  131. package/dist/utils/prompt.js +1 -1
  132. package/dist/utils/segment-path-parser.js +1 -1
  133. package/dist/utils/segment-ref-parser.js +1 -1
  134. package/dist/utils/spinner.js +1 -1
  135. package/dist/utils/sql-parser.js +1 -1
  136. package/dist/utils/sse-parser.js +1 -1
  137. package/dist/utils/string-utils.js +1 -1
  138. package/dist/utils/table-ref-parser.js +1 -1
  139. package/dist/utils/tdx-config.js +1 -1
  140. package/dist/utils/tdx-logger.js +1 -1
  141. package/dist/utils/tree-formatter.d.ts +2 -0
  142. package/dist/utils/tree-formatter.d.ts.map +1 -1
  143. package/dist/utils/tree-formatter.js +1 -1
  144. package/dist/utils/tree-formatter.js.map +1 -1
  145. package/dist/utils/version-check.js +1 -1
  146. package/dist/utils/workflow-utils.js +1 -1
  147. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x1cfac6,_0x5318b1){var _0x3f9a78=a0_0xbe3e,_0xe0a250=_0x1cfac6();while(!![]){try{var _0x286558=parseInt(_0x3f9a78(0x1ca))/0x1*(parseInt(_0x3f9a78(0x1c2))/0x2)+parseInt(_0x3f9a78(0x1cb))/0x3+parseInt(_0x3f9a78(0x1c9))/0x4+-parseInt(_0x3f9a78(0x1c3))/0x5*(-parseInt(_0x3f9a78(0x1c5))/0x6)+parseInt(_0x3f9a78(0x1c1))/0x7*(-parseInt(_0x3f9a78(0x1c6))/0x8)+-parseInt(_0x3f9a78(0x1c7))/0x9+-parseInt(_0x3f9a78(0x1c8))/0xa*(parseInt(_0x3f9a78(0x1c4))/0xb);if(_0x286558===_0x5318b1)break;else _0xe0a250['push'](_0xe0a250['shift']());}catch(_0x5bb0f0){_0xe0a250['push'](_0xe0a250['shift']());}}}(a0_0x2559,0xa0ef9));import{runCLI}from'./cli.js';runCLI();function a0_0xbe3e(_0x42e069,_0x493e88){_0x42e069=_0x42e069-0x1c1;var _0x2559d7=a0_0x2559();var _0xbe3e99=_0x2559d7[_0x42e069];return _0xbe3e99;}function a0_0x2559(){var _0xeca773=['3883032bVeONP','10soyMLy','5183252QFIVbi','13buHtDi','1898793NZEJtB','35ZAfNqK','104696vUIipM','271475AtxByF','28633957NSoLjj','126MOOOWe','89176BlbgjF'];a0_0x2559=function(){return _0xeca773;};return a0_0x2559();}
2
+ function a0_0x5eaf(_0x49710e,_0x37b420){_0x49710e=_0x49710e-0x144;var _0xfd0bf9=a0_0xfd0b();var _0x5eafcc=_0xfd0bf9[_0x49710e];return _0x5eafcc;}(function(_0x470a17,_0x2f8adc){var _0x2af64e=a0_0x5eaf,_0x14c33c=_0x470a17();while(!![]){try{var _0x895435=parseInt(_0x2af64e(0x14a))/0x1*(-parseInt(_0x2af64e(0x146))/0x2)+parseInt(_0x2af64e(0x14c))/0x3*(parseInt(_0x2af64e(0x14d))/0x4)+parseInt(_0x2af64e(0x144))/0x5+-parseInt(_0x2af64e(0x14b))/0x6+parseInt(_0x2af64e(0x149))/0x7*(parseInt(_0x2af64e(0x145))/0x8)+parseInt(_0x2af64e(0x148))/0x9*(-parseInt(_0x2af64e(0x147))/0xa)+-parseInt(_0x2af64e(0x14e))/0xb;if(_0x895435===_0x2f8adc)break;else _0x14c33c['push'](_0x14c33c['shift']());}catch(_0x2172b6){_0x14c33c['push'](_0x14c33c['shift']());}}}(a0_0xfd0b,0x4d4cf));import{runCLI}from'./cli.js';function a0_0xfd0b(){var _0x180c1f=['1803855sNJBco','1464KPgpHL','20188WNGAsC','50mXctwC','316476IGUYsW','23107HRkjdH','2ZDSInU','243354qPFwbW','304674idUFdU','16UDydxD','8996856YSsAWN'];a0_0xfd0b=function(){return _0x180c1f;};return a0_0xfd0b();}runCLI();
@@ -1,4 +1,4 @@
1
1
  {
2
- "gitRevision": "9e06810",
3
- "buildTime": "2025-12-18 02:36:42+0000"
2
+ "gitRevision": "263d42f",
3
+ "buildTime": "2025-12-18 20:22:48+0000"
4
4
  }
@@ -1 +1 @@
1
- const a1_0x112479=a1_0x4390;(function(_0x20569e,_0x578876){const _0x1045b7=a1_0x4390,_0x44955e=_0x20569e();while(!![]){try{const _0x1b7d8a=-parseInt(_0x1045b7(0x162))/0x1*(parseInt(_0x1045b7(0x16d))/0x2)+-parseInt(_0x1045b7(0x17f))/0x3*(parseInt(_0x1045b7(0x16c))/0x4)+parseInt(_0x1045b7(0x174))/0x5*(parseInt(_0x1045b7(0x15c))/0x6)+parseInt(_0x1045b7(0x173))/0x7+parseInt(_0x1045b7(0x15b))/0x8*(parseInt(_0x1045b7(0x15d))/0x9)+parseInt(_0x1045b7(0x15f))/0xa+parseInt(_0x1045b7(0x17a))/0xb*(-parseInt(_0x1045b7(0x181))/0xc);if(_0x1b7d8a===_0x578876)break;else _0x44955e['push'](_0x44955e['shift']());}catch(_0x339fe1){_0x44955e['push'](_0x44955e['shift']());}}}(a1_0x3004,0x5ccb6));function a1_0x3004(){const _0x16d08a=['job','query','llm','table','activations','4955461UNFMJJ','115315zgGTnU','show','database','describe','Data','workflow','3245451MuaRue','yellow','profiles','cyan','connection','162VCDpUW','use','36ccHePc','green','168SRNpqn','114vZsTDT','110133HyhAkZ','claude','6864390QemNxN','engage','auth','587051oWyONE','user','parent-segment','chat','journey','users','blue','Context','chats','Utilities','17576psvbwz','2bAVZpm'];a1_0x3004=function(){return _0x16d08a;};return a1_0x3004();}function a1_0x4390(_0x57344c,_0x1bd87c){_0x57344c=_0x57344c-0x15a;const _0x30047b=a1_0x3004();let _0x4390e5=_0x30047b[_0x57344c];return _0x4390e5;}import a1_0x1dcf46 from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x112479(0x178),'colorFn':a1_0x1dcf46[a1_0x112479(0x168)],'commands':[a1_0x112479(0x176),a1_0x112479(0x171),a1_0x112479(0x175),a1_0x112479(0x177),a1_0x112479(0x16f),a1_0x112479(0x16e),a1_0x112479(0x179)]},{'name':'CDP','colorFn':a1_0x1dcf46['magenta'],'commands':['segment',a1_0x112479(0x164),a1_0x112479(0x166),a1_0x112479(0x172),a1_0x112479(0x160),a1_0x112479(0x17e)]},{'name':'AI','colorFn':a1_0x1dcf46[a1_0x112479(0x17d)],'commands':[a1_0x112479(0x165),a1_0x112479(0x16a),a1_0x112479(0x170),a1_0x112479(0x15e)]},{'name':a1_0x112479(0x169),'colorFn':a1_0x1dcf46[a1_0x112479(0x17b)],'commands':['context',a1_0x112479(0x180),a1_0x112479(0x17c),a1_0x112479(0x161),a1_0x112479(0x163),a1_0x112479(0x167)]},{'name':a1_0x112479(0x16b),'colorFn':a1_0x1dcf46[a1_0x112479(0x15a)],'commands':['api']}];
1
+ function a1_0x1476(_0x28dcb3,_0x5c8dc7){_0x28dcb3=_0x28dcb3-0xca;const _0x216c93=a1_0x216c();let _0x14763d=_0x216c93[_0x28dcb3];return _0x14763d;}const a1_0x5c26db=a1_0x1476;(function(_0x4a28cf,_0x11cfe3){const _0x142f09=a1_0x1476,_0x5c0b2a=_0x4a28cf();while(!![]){try{const _0x4ca0ef=parseInt(_0x142f09(0xe2))/0x1*(parseInt(_0x142f09(0xef))/0x2)+parseInt(_0x142f09(0xd5))/0x3*(parseInt(_0x142f09(0xf0))/0x4)+parseInt(_0x142f09(0xd7))/0x5*(-parseInt(_0x142f09(0xcd))/0x6)+parseInt(_0x142f09(0xd3))/0x7*(parseInt(_0x142f09(0xdf))/0x8)+parseInt(_0x142f09(0xcc))/0x9*(-parseInt(_0x142f09(0xe7))/0xa)+-parseInt(_0x142f09(0xce))/0xb+-parseInt(_0x142f09(0xe0))/0xc*(-parseInt(_0x142f09(0xde))/0xd);if(_0x4ca0ef===_0x11cfe3)break;else _0x5c0b2a['push'](_0x5c0b2a['shift']());}catch(_0x52b422){_0x5c0b2a['push'](_0x5c0b2a['shift']());}}}(a1_0x216c,0xe6627));import a1_0x11cc7c from'chalk';export const COMMAND_CATEGORIES=[{'name':'Data','colorFn':a1_0x11cc7c[a1_0x5c26db(0xe6)],'commands':[a1_0x5c26db(0xd9),'table',a1_0x5c26db(0xd0),a1_0x5c26db(0xe4),a1_0x5c26db(0xdb),a1_0x5c26db(0xd1),a1_0x5c26db(0xf1)]},{'name':a1_0x5c26db(0xd2),'colorFn':a1_0x11cc7c[a1_0x5c26db(0xdd)],'commands':[a1_0x5c26db(0xcb),a1_0x5c26db(0xee),a1_0x5c26db(0xe5),a1_0x5c26db(0xda),a1_0x5c26db(0xea),'connection']},{'name':'AI','colorFn':a1_0x11cc7c['cyan'],'commands':[a1_0x5c26db(0xcf),a1_0x5c26db(0xdc),a1_0x5c26db(0xe8),a1_0x5c26db(0xec)]},{'name':a1_0x5c26db(0xeb),'colorFn':a1_0x11cc7c[a1_0x5c26db(0xd8)],'commands':[a1_0x5c26db(0xd6),a1_0x5c26db(0xd4),a1_0x5c26db(0xca),'auth',a1_0x5c26db(0xe1),'users']},{'name':a1_0x5c26db(0xed),'colorFn':a1_0x11cc7c[a1_0x5c26db(0xe3)],'commands':[a1_0x5c26db(0xe9)]}];function a1_0x216c(){const _0x186170=['context','871795pLIgFO','yellow','database','activations','query','chats','magenta','39WazpCS','3490504onAmzr','5061312gkYTVA','user','721044MWEiXx','green','describe','journey','blue','299050ZmZTgM','llm','api','engage','Context','claude','Utilities','parent-segment','2qIoVHo','4ljVFqc','workflow','profiles','segment','540qbwHxp','6iazrbZ','5138683iOGDxZ','chat','show','job','CDP','7DquoUd','use','2870346vZKgJp'];a1_0x216c=function(){return _0x186170;};return a1_0x216c();}
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;AAmKpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AA6lF9B,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;AAoKpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAmnF9B,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;;GAGG;AACH,wBAAgB,MAAM,IAAI,IAAI,CAwB7B"}
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0xf6e12a=a2_0x206c;(function(_0x515bab,_0x1549fa){const _0x4a96fe=a2_0x206c,_0x208a64=_0x515bab();while(!![]){try{const _0x5d04f4=-parseInt(_0x4a96fe(0x287))/0x1+-parseInt(_0x4a96fe(0x1c7))/0x2*(parseInt(_0x4a96fe(0x2f6))/0x3)+parseInt(_0x4a96fe(0x339))/0x4+-parseInt(_0x4a96fe(0x2c7))/0x5+parseInt(_0x4a96fe(0x1ca))/0x6+-parseInt(_0x4a96fe(0x2bf))/0x7+parseInt(_0x4a96fe(0x2b8))/0x8;if(_0x5d04f4===_0x1549fa)break;else _0x208a64['push'](_0x208a64['shift']());}catch(_0x313bc7){_0x208a64['push'](_0x208a64['shift']());}}}(a2_0x3376,0x21214));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';function a2_0x206c(_0x2e2efd,_0x41bd77){_0x2e2efd=_0x2e2efd-0x161;const _0x337603=a2_0x3376();let _0x206c4d=_0x337603[_0x2e2efd];return _0x206c4d;}import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0xf6e12a(0x33d)](readFileSync(join(__dirname,a2_0xf6e12a(0x296)),a2_0xf6e12a(0x32e)));let buildInfo={};try{buildInfo=JSON['parse'](readFileSync(join(__dirname,a2_0xf6e12a(0x171)),a2_0xf6e12a(0x32e)));}catch{}if(process[a2_0xf6e12a(0x2d9)][a2_0xf6e12a(0x30b)](a2_0xf6e12a(0x1cb))){let versionOutput=a2_0xf6e12a(0x309)+packageJson['version'];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo[a2_0xf6e12a(0x178)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0xf6e12a(0x29d)+buildInfo[a2_0xf6e12a(0x22c)]),console[a2_0xf6e12a(0x383)](versionOutput),process['exit'](0x0);}const program=new Command();let description=a2_0xf6e12a(0x345);buildInfo[a2_0xf6e12a(0x178)]?description+=a2_0xf6e12a(0x21f)+packageJson[a2_0xf6e12a(0x35c)]+'\x20('+buildInfo[a2_0xf6e12a(0x178)]+')':description+=a2_0xf6e12a(0x21f)+packageJson[a2_0xf6e12a(0x35c)];program[a2_0xf6e12a(0x34f)]('tdx')['description'](description),program[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2e0),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x327),a2_0xf6e12a(0x17b),a2_0xf6e12a(0x255))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1a3),a2_0xf6e12a(0x246))['option'](a2_0xf6e12a(0x205),a2_0xf6e12a(0x36f))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x194),a2_0xf6e12a(0x2e4))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1eb),a2_0xf6e12a(0x357))['option'](a2_0xf6e12a(0x234),a2_0xf6e12a(0x1d7))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2e2),a2_0xf6e12a(0x2ac))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2a7),a2_0xf6e12a(0x1cf))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x28c),a2_0xf6e12a(0x279),![])[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x354),a2_0xf6e12a(0x2fe),![])[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1f5),a2_0xf6e12a(0x328),![])[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x229),a2_0xf6e12a(0x21a))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2cf),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2ce),'Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x23b),'Preview\x20operation\x20without\x20executing',![])[a2_0xf6e12a(0x282)]('-y,\x20--yes',a2_0xf6e12a(0x358),![])[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x37e),a2_0xf6e12a(0x34e))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x312),a2_0xf6e12a(0x2ec))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x225),a2_0xf6e12a(0x374))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x245),a2_0xf6e12a(0x175))[a2_0xf6e12a(0x282)]('--llm-project\x20<name>',a2_0xf6e12a(0x2c0)),program['configureHelp']({'formatHelp':(_0x3b7da6,_0xa54dae)=>{const _0x4153d5=a2_0xf6e12a,_0x986dc4=_0xa54dae['padWidth'](_0x3b7da6,_0xa54dae),_0x523da9=0x2,_0x10e5ee=0x2;function _0x261da4(_0x4f8bd4){const _0x327fcd=a2_0x206c,_0x1c9662=_0x4f8bd4;return!!(_0x1c9662[_0x327fcd(0x176)]||_0x1c9662[_0x327fcd(0x2ca)]);}function _0x2e9844(_0x172493,_0x3a12c4){if(_0x3a12c4){const _0x274275=''+_0x172493['padEnd'](_0x986dc4+_0x10e5ee)+_0x3a12c4;return _0x274275;}return _0x172493;}function _0x11fc8a(_0x28ebe9){const _0xc816cd=a2_0x206c;return _0x28ebe9[_0xc816cd(0x376)]('\x0a')['replace'](/^/gm,'\x20'[_0xc816cd(0x373)](_0x523da9));}const _0x44d745=[];_0x44d745[_0x4153d5(0x2b2)](_0x4153d5(0x17d)+_0xa54dae[_0x4153d5(0x2be)](_0x3b7da6));const _0xc64beb=_0xa54dae[_0x4153d5(0x16f)](_0x3b7da6);_0xc64beb&&(_0x44d745[_0x4153d5(0x2b2)](''),_0x44d745[_0x4153d5(0x2b2)](_0xc64beb));const _0x3c87d4=_0x3b7da6['commands'][_0x4153d5(0x1e5)](_0x342b2a=>!_0x261da4(_0x342b2a));if(_0x3c87d4[_0x4153d5(0x19f)]>0x0){if(_0x3b7da6['name']()===_0x4153d5(0x186)){const _0xeaa62b=_0x3b7da6[_0x4153d5(0x18f)](),_0xf565a5=!_0xeaa62b[_0x4153d5(0x313)]&&process[_0x4153d5(0x31c)][_0x4153d5(0x211)],_0x44a2eb=COMMAND_CATEGORIES,_0x590012=(_0x2e50c1,_0x4504f5)=>_0xf565a5?_0x4504f5(_0x2e50c1):_0x2e50c1,_0xe0d2a6=new Map();_0x3c87d4[_0x4153d5(0x249)](_0x1054a6=>{const _0x382de8=_0x4153d5;_0xe0d2a6[_0x382de8(0x2db)](_0x1054a6[_0x382de8(0x34f)](),_0x1054a6);}),_0x44a2eb[_0x4153d5(0x249)](_0x1a7329=>{const _0x12526c=_0x4153d5,_0x513215=_0x1a7329[_0x12526c(0x188)]['flatMap'](_0x10aa3a=>_0xe0d2a6[_0x12526c(0x26f)](_0x10aa3a)??[]);if(_0x513215['length']>0x0){_0x44d745[_0x12526c(0x2b2)](''),_0x44d745['push'](_0x590012(_0x1a7329[_0x12526c(0x34f)]+':',_0x1a7329[_0x12526c(0x1e8)]));const _0x3886d8=_0x513215[_0x12526c(0x1c6)](_0x235915=>{const _0x1c74fc=_0x12526c,_0x54e40e=_0xa54dae[_0x1c74fc(0x193)](_0x235915),_0x473db8=_0xa54dae[_0x1c74fc(0x29c)](_0x235915);return _0x2e9844(_0x54e40e,_0x473db8);});_0x44d745[_0x12526c(0x2b2)](_0x11fc8a(_0x3886d8));}}),_0x44d745[_0x4153d5(0x2b2)](''),_0x44d745[_0x4153d5(0x2b2)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x2dad8b=_0x3c87d4[_0x4153d5(0x1c6)](_0x3bd1e6=>{const _0x22c99a=_0x4153d5,_0x3863c9=_0xa54dae[_0x22c99a(0x193)](_0x3bd1e6),_0x4f12c5=_0xa54dae[_0x22c99a(0x29c)](_0x3bd1e6);return _0x2e9844(_0x3863c9,_0x4f12c5);});_0x44d745['push'](''),_0x44d745[_0x4153d5(0x2b2)](_0x4153d5(0x264)),_0x44d745[_0x4153d5(0x2b2)](_0x11fc8a(_0x2dad8b));}}const _0x70efd0=_0x3b7da6[_0x4153d5(0x37c)][_0x4153d5(0x1e5)](_0x289190=>!_0x261da4(_0x289190));if(_0x70efd0[_0x4153d5(0x19f)]>0x0){const _0x3678d2=_0x70efd0['map'](_0x4e59bc=>{const _0x242c70=_0x4153d5,_0x5c4ee1=_0xa54dae[_0x242c70(0x36c)](_0x4e59bc),_0x2631cf=_0xa54dae['optionDescription'](_0x4e59bc);return _0x2e9844(_0x5c4ee1,_0x2631cf);});_0x44d745[_0x4153d5(0x2b2)](''),_0x44d745[_0x4153d5(0x2b2)](_0x4153d5(0x37f)),_0x44d745['push'](_0x11fc8a(_0x3678d2));}const _0x296051=(_0x3b7da6[_0x4153d5(0x302)]||[])['filter'](_0x309899=>!_0x261da4(_0x309899));if(_0x296051[_0x4153d5(0x19f)]>0x0){const _0x453519=_0x296051[_0x4153d5(0x1c6)](_0x3745fc=>{const _0x2ec07b=_0x4153d5,_0x2925ca=_0xa54dae[_0x2ec07b(0x29b)](_0x3745fc),_0x17fd5f=_0xa54dae[_0x2ec07b(0x227)](_0x3745fc);return _0x2e9844(_0x2925ca,_0x17fd5f);});_0x44d745[_0x4153d5(0x2b2)](''),_0x44d745[_0x4153d5(0x2b2)](_0x4153d5(0x19b)),_0x44d745[_0x4153d5(0x2b2)](_0x11fc8a(_0x453519));}return _0x44d745[_0x4153d5(0x376)]('\x0a');},'subcommandTerm':_0x4d1e5e=>{const _0x1bb4e1=a2_0xf6e12a,_0x44daa3=(_0x4d1e5e[_0x1bb4e1(0x302)]||[])[_0x1bb4e1(0x1c6)](_0x1664ea=>_0x1664ea[_0x1bb4e1(0x19e)]?'<'+_0x1664ea[_0x1bb4e1(0x34f)]()+'>':'['+_0x1664ea[_0x1bb4e1(0x34f)]()+']')[_0x1bb4e1(0x376)]('\x20'),_0x295e55=_0x4d1e5e[_0x1bb4e1(0x341)](),_0x42a47d=_0x295e55[_0x1bb4e1(0x19f)]>0x0?_0x4d1e5e[_0x1bb4e1(0x34f)]()+',\x20'+_0x295e55[_0x1bb4e1(0x376)](',\x20'):_0x4d1e5e[_0x1bb4e1(0x34f)]();return _0x44daa3?_0x42a47d+'\x20'+_0x44daa3:_0x42a47d;}}),program['hook'](a2_0xf6e12a(0x20c),_0x3d13bf=>{const _0x34b0f3=a2_0xf6e12a,_0x1866e1=_0x3d13bf[_0x34b0f3(0x18f)]();if(!_0x1866e1[_0x34b0f3(0x1b7)]){if(_0x1866e1['table'])_0x1866e1['format']=_0x34b0f3(0x1b0);else{if(_0x1866e1[_0x34b0f3(0x32c)])_0x1866e1[_0x34b0f3(0x1b7)]=_0x34b0f3(0x32c);else{if(_0x1866e1[_0x34b0f3(0x301)])_0x1866e1[_0x34b0f3(0x1b7)]=_0x34b0f3(0x301);else _0x1866e1[_0x34b0f3(0x1e1)]&&(_0x1866e1['format']=_0x34b0f3(0x1e1));}}}_0x1866e1['in']&&!_0x1866e1['database']&&(_0x1866e1[_0x34b0f3(0x235)]=_0x1866e1['in']);if(_0x1866e1[_0x34b0f3(0x213)])_0x1866e1[_0x34b0f3(0x239)]=LogLevel['TRACE'];else{if(_0x1866e1['debug'])_0x1866e1['logLevel']=LogLevel[_0x34b0f3(0x1d4)];else _0x1866e1[_0x34b0f3(0x239)]===undefined&&(_0x1866e1[_0x34b0f3(0x239)]=LogLevel[_0x34b0f3(0x280)]);}});async function createTDXInstance(_0x4af269){const _0x2c081f=a2_0xf6e12a,_0x1f10a9=await GlobalContext['createAsync'](_0x4af269);return _0x1f10a9[_0x2c081f(0x380)](_0x4af269),TDX['create']({'site':_0x1f10a9[_0x2c081f(0x2b7)],'apiKey':_0x1f10a9['apiKey'],'logLevel':_0x1f10a9[_0x2c081f(0x239)],'profile':_0x1f10a9[_0x2c081f(0x35a)]});}const databaseCmd=program[a2_0xf6e12a(0x228)]('database')[a2_0xf6e12a(0x384)]('db')[a2_0xf6e12a(0x2ef)]('Database\x20management\x20commands'),databaseListAction=async(_0x4e7b1e,_0x54386e)=>{const _0x382a46=a2_0xf6e12a,_0x1a4ea4=new DatabasesCommand(),_0x57e0a5=program[_0x382a46(0x18f)](),_0x358819=await createTDXInstance(_0x57e0a5),_0x5eea15=await _0x1a4ea4[_0x382a46(0x369)]({'options':{..._0x57e0a5,..._0x54386e},'args':_0x4e7b1e?[_0x4e7b1e]:[],'tdx':_0x358819});process[_0x382a46(0x2f5)](_0x5eea15);};databaseCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2bb))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x19d))['action'](databaseListAction),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x218),{'hidden':!![]})['description'](a2_0xf6e12a(0x1df))['action'](databaseListAction),program['command'](a2_0xf6e12a(0x303))['description'](a2_0xf6e12a(0x1b6))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2fa),'Agent\x20reference\x20(project-name/agent-name)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x17e),a2_0xf6e12a(0x36e))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x316),a2_0xf6e12a(0x16c))[a2_0xf6e12a(0x282)]('--new',a2_0xf6e12a(0x208))[a2_0xf6e12a(0x18b)](async(_0x4831b9,_0x171d75)=>{const _0x42bdf7=a2_0xf6e12a,_0x15ad1c=new ChatCommand(),_0x100311=program[_0x42bdf7(0x18f)](),_0x5a65d8=await createTDXInstance(_0x100311),_0x3a2cc3=await _0x15ad1c[_0x42bdf7(0x369)]({'options':{..._0x100311,..._0x171d75},'args':_0x4831b9,'tdx':_0x5a65d8});process[_0x42bdf7(0x2f5)](_0x3a2cc3);});const apiCmd=program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x343))[a2_0xf6e12a(0x24b)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')['addHelpText'](a2_0xf6e12a(0x314),'\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_0xf6e12a(0x282)](a2_0xf6e12a(0x1d1),a2_0xf6e12a(0x265),a2_0xf6e12a(0x260))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x371),a2_0xf6e12a(0x2dc))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x340),a2_0xf6e12a(0x1f9))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1b1),a2_0xf6e12a(0x33e),(_0x2e0fbb,_0x50745e)=>{return _0x50745e?[..._0x50745e,_0x2e0fbb]:[_0x2e0fbb];})['option']('--type\x20<api_type>',a2_0xf6e12a(0x187),'td')[a2_0xf6e12a(0x18b)](async(_0x1ea817,_0x655d45)=>{const _0x59408d=a2_0xf6e12a;if(!_0x1ea817){apiCmd[_0x59408d(0x324)]();return;}const _0x3a7427=new ApiCommand(),_0x591cc1=program[_0x59408d(0x18f)](),_0x2d6674=await createTDXInstance(_0x591cc1),_0x30f6e8=await _0x3a7427[_0x59408d(0x369)]({'options':{..._0x591cc1,..._0x655d45},'args':[_0x1ea817],'tdx':_0x2d6674});process[_0x59408d(0x2f5)](_0x30f6e8);}),tableCmd=program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1b0))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x364)),tableListAction=async(_0x101985,_0xbf5f1e)=>{const _0x25e3f0=a2_0xf6e12a,_0x4326c8=new TablesCommand(),_0x2ab606=program[_0x25e3f0(0x18f)](),_0x8ac90e=await createTDXInstance(_0x2ab606);_0xbf5f1e['in']&&(_0xbf5f1e[_0x25e3f0(0x235)]=_0xbf5f1e['in']);const _0x5d2823=await _0x4326c8[_0x25e3f0(0x369)]({'options':{..._0x2ab606,..._0xbf5f1e},'args':_0x101985?[_0x101985]:[],'tdx':_0x8ac90e});process[_0x25e3f0(0x2f5)](_0x5d2823);};tableCmd[a2_0xf6e12a(0x228)]('list\x20[pattern]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1c8))['option'](a2_0xf6e12a(0x30c),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0xf6e12a(0x282)]('--in\x20<database>',a2_0xf6e12a(0x374))['action'](tableListAction),program[a2_0xf6e12a(0x228)]('tables\x20[pattern]',{'hidden':!![]})[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x25f))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x30c),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0xf6e12a(0x377),a2_0xf6e12a(0x374))[a2_0xf6e12a(0x18b)](tableListAction),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2d4))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x34c))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x30c),a2_0xf6e12a(0x200))['option'](a2_0xf6e12a(0x377),a2_0xf6e12a(0x374))[a2_0xf6e12a(0x18b)](async(_0x151f8b,_0x1e0c04)=>{const _0x4e3583=a2_0xf6e12a,_0x305175=new ShowCommand(),_0x21619a=program['opts'](),_0x64199=await createTDXInstance(_0x21619a);_0x1e0c04['in']&&(_0x1e0c04[_0x4e3583(0x235)]=_0x1e0c04['in']);const _0x3b2836=await _0x305175[_0x4e3583(0x369)]({'options':{..._0x21619a,..._0x1e0c04},'args':_0x151f8b?[_0x151f8b]:[],'tdx':_0x64199});process[_0x4e3583(0x2f5)](_0x3b2836);}),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1cd))['alias'](a2_0xf6e12a(0x20b))['description'](a2_0xf6e12a(0x263))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x30c),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x377),a2_0xf6e12a(0x374))[a2_0xf6e12a(0x18b)](async(_0x5051a8,_0x46c07b)=>{const _0xac9672=a2_0xf6e12a,_0x4a5892=new DescribeCommand(),_0x3d05cf=program[_0xac9672(0x18f)](),_0x1d2f68=await createTDXInstance(_0x3d05cf);_0x46c07b['in']&&(_0x46c07b[_0xac9672(0x235)]=_0x46c07b['in']);const _0x1ba5b3=await _0x4a5892['run']({'options':{..._0x3d05cf,..._0x46c07b},'args':_0x5051a8?[_0x5051a8]:[],'tdx':_0x1d2f68});process[_0xac9672(0x2f5)](_0x1ba5b3);}),program[a2_0xf6e12a(0x228)]('query\x20[sql]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x298))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x30c),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0xf6e12a(0x282)]('--in\x20<database>',a2_0xf6e12a(0x374))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x297),a2_0xf6e12a(0x356))['option'](a2_0xf6e12a(0x340),a2_0xf6e12a(0x32a))['option'](a2_0xf6e12a(0x26c),a2_0xf6e12a(0x35d),'40')[a2_0xf6e12a(0x18b)](async(_0x5b4a56,_0x413557)=>{const _0x3c6564=a2_0xf6e12a,_0xfff35a=new QueryCommand(),_0x2880d4=program[_0x3c6564(0x18f)](),_0x463f36=await createTDXInstance(_0x2880d4);_0x413557['in']&&(_0x413557[_0x3c6564(0x235)]=_0x413557['in']);const _0x2c75ce=await _0xfff35a[_0x3c6564(0x369)]({'options':{..._0x2880d4,..._0x413557},'args':_0x5b4a56?[_0x5b4a56]:[],'tdx':_0x463f36});process[_0x3c6564(0x2f5)](_0x2c75ce);});const segmentCmd=program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x355))[a2_0xf6e12a(0x384)]('sg')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2cd)),segmentListAction=async(_0x345a27,_0x45d464)=>{const _0x51eda7=a2_0xf6e12a,_0x46adec=new SegmentsCommand(),_0x381990=program[_0x51eda7(0x18f)](),_0xa5c8d5=await createTDXInstance(_0x381990),_0x5a5c35=await _0x46adec[_0x51eda7(0x369)]({'options':{..._0x381990,..._0x45d464},'args':_0x345a27?[_0x345a27]:[],'tdx':_0xa5c8d5});process[_0x51eda7(0x2f5)](_0x5a5c35);};segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2a8))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2aa))[a2_0xf6e12a(0x282)]('-r,\x20--recursive',a2_0xf6e12a(0x33a))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x17c),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['option'](a2_0xf6e12a(0x27c),'Show\x20web\x20console\x20URLs\x20for\x20segments')['action'](segmentListAction),program['command'](a2_0xf6e12a(0x300),{'hidden':!![]})[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x271))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x168),a2_0xf6e12a(0x33a))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x17c),a2_0xf6e12a(0x230),'10')[a2_0xf6e12a(0x282)]('-w,\x20--web',a2_0xf6e12a(0x28f))[a2_0xf6e12a(0x18b)](segmentListAction),segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1fb),{'hidden':!![]})[a2_0xf6e12a(0x2ef)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0xf6e12a(0x18b)](async(_0x10c566,_0x224bbb)=>{const _0x3e9bdd=a2_0xf6e12a,_0x3035b4=new SegmentUseCommand(),_0x35df8=program['opts'](),_0x1264ef=await createTDXInstance(_0x35df8),_0xd8f612=await _0x3035b4[_0x3e9bdd(0x369)]({'options':{..._0x35df8,..._0x224bbb},'args':[_0x10c566],'tdx':_0x1264ef});process[_0x3e9bdd(0x2f5)](_0xd8f612);});const segmentViewAction=async(_0x4b592a,_0x1b72c6)=>{const _0x52b88f=a2_0xf6e12a,_0x237119=new SegmentViewCommand(),_0x51c277=program['opts'](),_0x2570bb=await createTDXInstance(_0x51c277),_0x5d70b4=await _0x237119['run']({'options':{..._0x51c277,..._0x1b72c6},'args':_0x4b592a?[_0x4b592a]:[],'tdx':_0x2570bb});process[_0x52b88f(0x2f5)](_0x5d70b4);};segmentCmd[a2_0xf6e12a(0x228)]('view\x20[segment_name]')[a2_0xf6e12a(0x2ef)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x27c),a2_0xf6e12a(0x2a1))[a2_0xf6e12a(0x18b)](segmentViewAction),segmentCmd[a2_0xf6e12a(0x228)]('info\x20[segment_name]',{'hidden':!![]})['alias'](a2_0xf6e12a(0x33c))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x27c),a2_0xf6e12a(0x2a1))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x326))['action'](segmentViewAction),segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1be))['description'](a2_0xf6e12a(0x25d))['action'](async(_0x28f78f,_0x4f3482)=>{const _0x48f2b0=a2_0xf6e12a,_0x62fe57=new SegmentDescCommand(),_0x1ca511=program[_0x48f2b0(0x18f)](),_0x10ddf1=await createTDXInstance(_0x1ca511),_0x2af2c5=await _0x62fe57[_0x48f2b0(0x369)]({'options':{..._0x1ca511,..._0x4f3482},'args':_0x28f78f?[_0x28f78f]:[],'tdx':_0x10ddf1});process[_0x48f2b0(0x2f5)](_0x2af2c5);}),segmentCmd[a2_0xf6e12a(0x228)]('show\x20[segment_name]')['description']('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x506eba,_0xce3f56)=>{const _0x4c63e0=a2_0xf6e12a,_0x305ed3=new SegmentShowCommand(),_0x355736=program[_0x4c63e0(0x18f)](),_0x5c66e9=await createTDXInstance(_0x355736),_0x2e6981=await _0x305ed3[_0x4c63e0(0x369)]({'options':{..._0x355736,..._0xce3f56},'args':_0x506eba?[_0x506eba]:[],'tdx':_0x5c66e9});process[_0x4c63e0(0x2f5)](_0x2e6981);}),segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x382),{'hidden':!![]})[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x170))['action'](async(_0x68e641,_0x5b34ce)=>{const _0x3bdbc3=a2_0xf6e12a,_0x485cd6=new SegmentFolderListCommand(),_0x3f7ce7=program[_0x3bdbc3(0x18f)](),_0x23776e=await createTDXInstance(_0x3f7ce7),_0x59df96=await _0x485cd6[_0x3bdbc3(0x369)]({'options':{..._0x3f7ce7,..._0x5b34ce},'args':[_0x68e641],'tdx':_0x23776e});process[_0x3bdbc3(0x2f5)](_0x59df96);});const folderCmd=segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x293),{'hidden':!![]})[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x269));folderCmd[a2_0xf6e12a(0x228)]('show\x20<folder_ref>')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x37b))[a2_0xf6e12a(0x18b)](async(_0x4ce1da,_0x1d5656)=>{const _0x1b0731=a2_0xf6e12a,_0x4e9315=new SegmentFolderShowCommand(),_0x25a078=program[_0x1b0731(0x18f)](),_0x29bf01=await createTDXInstance(_0x25a078),_0x52ee16=await _0x4e9315['run']({'options':{..._0x25a078,..._0x1d5656},'args':[_0x4ce1da],'tdx':_0x29bf01});process[_0x1b0731(0x2f5)](_0x52ee16);}),segmentCmd[a2_0xf6e12a(0x228)]('sql\x20[segment_name]')[a2_0xf6e12a(0x2ef)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x10bc25,_0x45427d)=>{const _0xb5491a=a2_0xf6e12a,_0x39c3a6=new SegmentSQLCommand(),_0x344d46=program[_0xb5491a(0x18f)](),_0x6b079b=await createTDXInstance(_0x344d46),_0x4f74ae=await _0x39c3a6['run']({'options':{..._0x344d46,..._0x45427d},'args':_0x10bc25?[_0x10bc25]:[],'tdx':_0x6b079b});process['exit'](_0x4f74ae);}),segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x28b))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x349))[a2_0xf6e12a(0x18b)](async(_0x1b9110,_0xaccb3d)=>{const _0x46a5e4=a2_0xf6e12a,_0x7b3355=new SegmentFieldsCommand(),_0x4a27ea=program[_0x46a5e4(0x18f)](),_0x2514d9=await createTDXInstance(_0x4a27ea),_0x419d20=await _0x7b3355[_0x46a5e4(0x369)]({'options':{..._0x4a27ea,..._0xaccb3d},'args':_0x1b9110?[_0x1b9110]:[],'tdx':_0x2514d9});process[_0x46a5e4(0x2f5)](_0x419d20);}),segmentCmd['command']('pull\x20[parent_or_file]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2c5))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x236),a2_0xf6e12a(0x358))[a2_0xf6e12a(0x282)]('--dry-run',a2_0xf6e12a(0x31b))[a2_0xf6e12a(0x18b)](async(_0x41716b,_0x32c791)=>{const _0x4b4814=a2_0xf6e12a,_0x420338=new SegmentPullCommand(),_0x1bab3f=program[_0x4b4814(0x18f)](),_0x5efdf7=await createTDXInstance(_0x1bab3f),_0x5a8efa=await _0x420338[_0x4b4814(0x369)]({'options':{..._0x1bab3f,..._0x32c791},'args':_0x41716b?[_0x41716b]:[],'tdx':_0x5efdf7});process['exit'](_0x5a8efa);}),segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x190))['description'](a2_0xf6e12a(0x2de))['option']('-y,\x20--yes',a2_0xf6e12a(0x358))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x23b),a2_0xf6e12a(0x31b))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1c5),a2_0xf6e12a(0x21e))[a2_0xf6e12a(0x18b)](async(_0x69f1a7,_0x486fa7)=>{const _0x388f38=a2_0xf6e12a,_0x195ab2=new SegmentPushCommand(),_0x56f664=program['opts'](),_0x517503=await createTDXInstance(_0x56f664),_0x45acb3=await _0x195ab2[_0x388f38(0x369)]({'options':{..._0x56f664,..._0x486fa7},'args':_0x69f1a7?[_0x69f1a7]:[],'tdx':_0x517503});process['exit'](_0x45acb3);}),segmentCmd[a2_0xf6e12a(0x228)]('create\x20<segment_name>',{'hidden':!![]})[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x22a))[a2_0xf6e12a(0x282)]('--description\x20<text>',a2_0xf6e12a(0x335))['option'](a2_0xf6e12a(0x244),a2_0xf6e12a(0x342))[a2_0xf6e12a(0x282)]('--rule-file\x20<file>',a2_0xf6e12a(0x1dd))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x311),'Folder\x20name\x20for\x20organization')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1e0),a2_0xf6e12a(0x277))[a2_0xf6e12a(0x282)]('--invisible',a2_0xf6e12a(0x34a))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1c9),a2_0xf6e12a(0x35f))[a2_0xf6e12a(0x18b)](async(_0xf3dbb1,_0xb84aa6)=>{const _0x42ca77=a2_0xf6e12a,_0x3a6cf6=new SegmentCreateCommand(),_0x319864=program[_0x42ca77(0x18f)](),_0x1f9331=await createTDXInstance(_0x319864),_0x4fcf1e=await _0x3a6cf6[_0x42ca77(0x369)]({'options':{..._0x319864,..._0xb84aa6},'args':[_0xf3dbb1],'tdx':_0x1f9331});process[_0x42ca77(0x2f5)](_0x4fcf1e);}),segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2d8),{'hidden':!![]})[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1b5))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x24c),a2_0xf6e12a(0x360))[a2_0xf6e12a(0x282)]('--description\x20<text>',a2_0xf6e12a(0x291))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x244),a2_0xf6e12a(0x24d))['option'](a2_0xf6e12a(0x22f),a2_0xf6e12a(0x1c2))['option'](a2_0xf6e12a(0x311),'Move\x20to\x20folder')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1e0),a2_0xf6e12a(0x277))[a2_0xf6e12a(0x18b)](async(_0x24db24,_0x3b6c73)=>{const _0x2eb184=a2_0xf6e12a,_0x2f9eec=new SegmentUpdateCommand(),_0x2796be=program[_0x2eb184(0x18f)](),_0xadf7cc=await createTDXInstance(_0x2796be),_0x510643=await _0x2f9eec[_0x2eb184(0x369)]({'options':{..._0x2796be,..._0x3b6c73},'args':[_0x24db24],'tdx':_0xadf7cc});process[_0x2eb184(0x2f5)](_0x510643);});const parentCmd=segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1de),{'hidden':!![]})['description']('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x2c8768,_0xd825db)=>{const _0x10b123=a2_0xf6e12a,_0x497e80=new ParentSegmentListCommand(),_0x339bce=program[_0x10b123(0x18f)](),_0x24f0b6=await createTDXInstance(_0x339bce),_0x57ce5f=await _0x497e80[_0x10b123(0x369)]({'options':{..._0x339bce,..._0xd825db},'args':_0x2c8768?[_0x2c8768]:[],'tdx':_0x24f0b6});process[_0x10b123(0x2f5)](_0x57ce5f);};parentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2bb))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2f1))[a2_0xf6e12a(0x18b)](parentListAction),segmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2f7),{'hidden':!![]})[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1ce))[a2_0xf6e12a(0x18b)](parentListAction),parentCmd[a2_0xf6e12a(0x228)]('pull\x20[name]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x254))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x18c),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x236),a2_0xf6e12a(0x305))[a2_0xf6e12a(0x18b)](async(_0x559ed6,_0x499ee2)=>{const _0x3b9f31=a2_0xf6e12a,_0x4acb5d=new ParentSegmentPullCommand(),_0x583fe4=program[_0x3b9f31(0x18f)](),_0x190344=await createTDXInstance(_0x583fe4),_0x2344a5=await _0x4acb5d[_0x3b9f31(0x369)]({'options':{..._0x583fe4,..._0x499ee2},'args':_0x559ed6?[_0x559ed6]:[],'tdx':_0x190344});process[_0x3b9f31(0x2f5)](_0x2344a5);}),parentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x274))['description']('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x236),a2_0xf6e12a(0x305))[a2_0xf6e12a(0x18b)](async(_0x57ab68,_0x54b2a0)=>{const _0xcf4c0f=a2_0xf6e12a,_0x33181d=new ParentSegmentPushCommand(),_0x186076=program[_0xcf4c0f(0x18f)](),_0xf8d91d=await createTDXInstance(_0x186076),_0x5b032e=await _0x33181d['run']({'options':{..._0x186076,..._0x54b2a0},'args':_0x57ab68?[_0x57ab68]:[],'tdx':_0xf8d91d});process[_0xcf4c0f(0x2f5)](_0x5b032e);}),parentCmd['command'](a2_0xf6e12a(0x259))[a2_0xf6e12a(0x2ef)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2f4),a2_0xf6e12a(0x28a))[a2_0xf6e12a(0x282)]('--attribute\x20[name]',a2_0xf6e12a(0x36b))[a2_0xf6e12a(0x282)]('--behavior\x20[name]',a2_0xf6e12a(0x1bf))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2d2),a2_0xf6e12a(0x28d))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2a2),a2_0xf6e12a(0x1a9),'-1d')[a2_0xf6e12a(0x18b)](async(_0x4c8fa8,_0x21852d)=>{const _0x209fbc=a2_0xf6e12a,_0x50c7a1=new ParentSegmentValidateCommand(),_0x27e1ba=program[_0x209fbc(0x18f)](),_0x41d989=await createTDXInstance(_0x27e1ba),_0x5f1b81=await _0x50c7a1[_0x209fbc(0x369)]({'options':{..._0x27e1ba,..._0x21852d},'args':_0x4c8fa8?[_0x4c8fa8]:[],'tdx':_0x41d989});process[_0x209fbc(0x2f5)](_0x5f1b81);}),parentCmd[a2_0xf6e12a(0x228)]('preview\x20[file]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2fd))['option'](a2_0xf6e12a(0x2f4),a2_0xf6e12a(0x272))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x207),a2_0xf6e12a(0x2f3))[a2_0xf6e12a(0x282)]('--behavior\x20[name]',a2_0xf6e12a(0x379))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2d2),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2a2),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0xf6e12a(0x281))[a2_0xf6e12a(0x18b)](async(_0x2af124,_0xa6e66b)=>{const _0x48dd68=a2_0xf6e12a,_0x13cd08=new ParentSegmentPreviewCommand(),_0xb7db87=program[_0x48dd68(0x18f)](),_0x5a084e=await createTDXInstance(_0xb7db87),_0x358209=await _0x13cd08[_0x48dd68(0x369)]({'options':{..._0xb7db87,..._0xa6e66b},'args':_0x2af124?[_0x2af124]:[],'tdx':_0x5a084e});process[_0x48dd68(0x2f5)](_0x358209);}),parentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x33b))[a2_0xf6e12a(0x2ef)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x236),a2_0xf6e12a(0x305))[a2_0xf6e12a(0x18b)](async(_0x27c175,_0x3a2f70)=>{const _0x385572=a2_0xf6e12a,_0xd81670=new ParentSegmentRunCommand(),_0xfa3e69=program[_0x385572(0x18f)](),_0x4d654f=await createTDXInstance(_0xfa3e69),_0x52603b=await _0xd81670[_0x385572(0x369)]({'options':{..._0xfa3e69,..._0x3a2f70},'args':_0x27c175?[_0x27c175]:[],'tdx':_0x4d654f});process[_0x385572(0x2f5)](_0x52603b);});const parentSegmentCmd=program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x20e))[a2_0xf6e12a(0x384)]('ps')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x20a));parentSegmentCmd[a2_0xf6e12a(0x228)]('list\x20[pattern]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2f1))[a2_0xf6e12a(0x18b)](parentListAction),parentSegmentCmd['command'](a2_0xf6e12a(0x1ad))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1e9))['option'](a2_0xf6e12a(0x18c),'Output\x20file\x20path')['option'](a2_0xf6e12a(0x236),a2_0xf6e12a(0x305))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1e7),a2_0xf6e12a(0x322))['action'](async(_0x3cf4d8,_0x45cfd7)=>{const _0x444a19=a2_0xf6e12a,_0x10a061=new ParentSegmentPullCommand(),_0x1b8fe9=program[_0x444a19(0x18f)](),_0x282145=await createTDXInstance(_0x1b8fe9),_0x28f051=await _0x10a061[_0x444a19(0x369)]({'options':{..._0x1b8fe9,..._0x45cfd7},'args':_0x3cf4d8?[_0x3cf4d8]:[],'tdx':_0x282145});process['exit'](_0x28f051);}),parentSegmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1bb))[a2_0xf6e12a(0x2ef)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x236),a2_0xf6e12a(0x305))[a2_0xf6e12a(0x18b)](async(_0x3bed14,_0x1ffe16)=>{const _0xe21493=a2_0xf6e12a,_0x39d678=new ParentSegmentPushCommand(),_0x5502fb=program[_0xe21493(0x18f)](),_0x2bf6db=await createTDXInstance(_0x5502fb),_0x891e72=await _0x39d678['run']({'options':{..._0x5502fb,..._0x1ffe16},'args':_0x3bed14?[_0x3bed14]:[],'tdx':_0x2bf6db});process[_0xe21493(0x2f5)](_0x891e72);}),parentSegmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x276))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2f4),'Show\x20only\x20master\x20table\x20validation')['option'](a2_0xf6e12a(0x207),a2_0xf6e12a(0x36b))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x209),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0xf6e12a(0x2d2),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2a2),a2_0xf6e12a(0x1a9),a2_0xf6e12a(0x281))[a2_0xf6e12a(0x18b)](async(_0x14f06e,_0x4acbde)=>{const _0x3981ca=a2_0xf6e12a,_0x3096af=new ParentSegmentValidateCommand(),_0x24ffe7=program[_0x3981ca(0x18f)](),_0x4ddafe=await createTDXInstance(_0x24ffe7),_0x2369f3=await _0x3096af[_0x3981ca(0x369)]({'options':{..._0x24ffe7,..._0x4acbde},'args':_0x14f06e?[_0x14f06e]:[],'tdx':_0x4ddafe});process[_0x3981ca(0x2f5)](_0x2369f3);}),parentSegmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1d3))[a2_0xf6e12a(0x2ef)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2f4),a2_0xf6e12a(0x272))['option'](a2_0xf6e12a(0x207),a2_0xf6e12a(0x2f3))[a2_0xf6e12a(0x282)]('--behavior\x20[name]',a2_0xf6e12a(0x379))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2d2),a2_0xf6e12a(0x241))['option'](a2_0xf6e12a(0x2a2),a2_0xf6e12a(0x1a9),a2_0xf6e12a(0x281))[a2_0xf6e12a(0x18b)](async(_0x4b9421,_0x19b288)=>{const _0xc78fe3=a2_0xf6e12a,_0x35f16c=new ParentSegmentPreviewCommand(),_0x8e5e96=program[_0xc78fe3(0x18f)](),_0x1e6abe=await createTDXInstance(_0x8e5e96),_0x1d5c1b=await _0x35f16c['run']({'options':{..._0x8e5e96,..._0x19b288},'args':_0x4b9421?[_0x4b9421]:[],'tdx':_0x1e6abe});process[_0xc78fe3(0x2f5)](_0x1d5c1b);}),parentSegmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x33b))[a2_0xf6e12a(0x2ef)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x236),a2_0xf6e12a(0x305))['action'](async(_0x2843b8,_0x31bb1b)=>{const _0x68c519=a2_0xf6e12a,_0x5b2e4d=new ParentSegmentRunCommand(),_0x43cbf4=program[_0x68c519(0x18f)](),_0x40efdb=await createTDXInstance(_0x43cbf4),_0x5255c3=await _0x5b2e4d['run']({'options':{..._0x43cbf4,..._0x31bb1b},'args':_0x2843b8?[_0x2843b8]:[],'tdx':_0x40efdb});process[_0x68c519(0x2f5)](_0x5255c3);}),parentSegmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2f8))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x16d))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x194),a2_0xf6e12a(0x1da))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1eb),a2_0xf6e12a(0x1e4))[a2_0xf6e12a(0x18b)](async(_0x567411,_0x32ef27)=>{const _0x2dd364=a2_0xf6e12a,_0x1d0f76=new ParentSegmentFieldsCommand(),_0x45d5c7=program[_0x2dd364(0x18f)](),_0x125ff1=await createTDXInstance(_0x45d5c7),_0x49f82d=await _0x1d0f76[_0x2dd364(0x369)]({'options':{..._0x45d5c7,..._0x32ef27},'args':_0x567411?[_0x567411]:[],'tdx':_0x125ff1});process['exit'](_0x49f82d);}),parentSegmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x337))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x323))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x27c),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x194),a2_0xf6e12a(0x1da))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1eb),a2_0xf6e12a(0x1e4))[a2_0xf6e12a(0x18b)](async(_0x5061ae,_0x4ddcca)=>{const _0x2309d3=a2_0xf6e12a,_0x5b3e14=new ParentSegmentViewCommand(),_0x7a8304=program[_0x2309d3(0x18f)](),_0x506dbc=await createTDXInstance(_0x7a8304),_0x29a936=await _0x5b3e14[_0x2309d3(0x369)]({'options':{..._0x7a8304,..._0x4ddcca},'args':_0x5061ae?[_0x5061ae]:[],'tdx':_0x506dbc});process[_0x2309d3(0x2f5)](_0x29a936);}),parentSegmentCmd[a2_0xf6e12a(0x228)]('desc\x20[name]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2c8))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x194),a2_0xf6e12a(0x1da))[a2_0xf6e12a(0x282)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0xf6e12a(0x18b)](async(_0x4d89cc,_0x15dde5)=>{const _0xc99a19=a2_0xf6e12a,_0x4072e1=new ParentSegmentDescCommand(),_0x34651a=program[_0xc99a19(0x18f)](),_0x56f4c5=await createTDXInstance(_0x34651a),_0x109319=await _0x4072e1['run']({'options':{..._0x34651a,..._0x15dde5},'args':_0x4d89cc?[_0x4d89cc]:[],'tdx':_0x56f4c5});process[_0xc99a19(0x2f5)](_0x109319);}),parentSegmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x224))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x288))['option'](a2_0xf6e12a(0x194),'Output\x20as\x20JSON')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1eb),a2_0xf6e12a(0x1e4))['action'](async(_0x4622c3,_0x5547b1)=>{const _0x9416f9=a2_0xf6e12a,_0x5887e0=new ParentSegmentSQLCommand(),_0x1234da=program[_0x9416f9(0x18f)](),_0x407a29=await createTDXInstance(_0x1234da),_0x397110=await _0x5887e0[_0x9416f9(0x369)]({'options':{..._0x1234da,..._0x5547b1},'args':_0x4622c3?[_0x4622c3]:[],'tdx':_0x407a29});process[_0x9416f9(0x2f5)](_0x397110);}),parentSegmentCmd['command'](a2_0xf6e12a(0x273))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x214))['option'](a2_0xf6e12a(0x32b),a2_0xf6e12a(0x174))['option'](a2_0xf6e12a(0x194),a2_0xf6e12a(0x1da))['option'](a2_0xf6e12a(0x1eb),'Output\x20as\x20JSON\x20Lines')[a2_0xf6e12a(0x18b)](async(_0x3404a3,_0x56394c)=>{const _0x5b42de=a2_0xf6e12a,_0x3f0d29=new ParentSegmentShowCommand(),_0x1beed9=program[_0x5b42de(0x18f)](),_0x45ea16=await createTDXInstance(_0x1beed9),_0x2172cb=await _0x3f0d29[_0x5b42de(0x369)]({'options':{..._0x1beed9,..._0x56394c},'args':_0x3404a3?[_0x3404a3]:[],'tdx':_0x45ea16});process[_0x5b42de(0x2f5)](_0x2172cb);}),parentSegmentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x378))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x30d))[a2_0xf6e12a(0x18b)](async(_0x3046f3,_0x4c91de)=>{const _0x287f5e=a2_0xf6e12a,_0x43b8e6=new UseCommand(),_0x4bea18=program[_0x287f5e(0x18f)](),_0x579632=_0x3046f3?[_0x287f5e(0x18a),_0x3046f3]:[],_0x20b2ef=await _0x43b8e6[_0x287f5e(0x369)]({'options':{..._0x4bea18,..._0x4c91de},'args':_0x579632,'tdx':null});process['exit'](_0x20b2ef);}),parentCmd[a2_0xf6e12a(0x228)]('create\x20<name>')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x257))[a2_0xf6e12a(0x27d)](a2_0xf6e12a(0x2cc),a2_0xf6e12a(0x231))[a2_0xf6e12a(0x27d)](a2_0xf6e12a(0x278),a2_0xf6e12a(0x26e))['option'](a2_0xf6e12a(0x334),a2_0xf6e12a(0x2ad))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2eb),a2_0xf6e12a(0x332))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1dc),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')['option'](a2_0xf6e12a(0x204),a2_0xf6e12a(0x1d0))['option'](a2_0xf6e12a(0x344),'Attributes\x20as\x20JSON\x20string')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x19a),'Attributes\x20from\x20JSON\x20file')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x330),a2_0xf6e12a(0x1d8))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x317),a2_0xf6e12a(0x1ba))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x310),'Customer\x20group\x20as\x20JSON\x20string')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x16b),'Customer\x20group\x20from\x20JSON\x20file')[a2_0xf6e12a(0x18b)](async(_0x4844fe,_0x2048a7)=>{const _0xc4cff1=a2_0xf6e12a,_0x489bf1=new ParentSegmentCreateCommand(),_0x3778fe=program[_0xc4cff1(0x18f)](),_0x20b717=await createTDXInstance(_0x3778fe),_0x5685bc=await _0x489bf1[_0xc4cff1(0x369)]({'options':{..._0x3778fe,..._0x2048a7},'args':[_0x4844fe],'tdx':_0x20b717});process[_0xc4cff1(0x2f5)](_0x5685bc);}),parentCmd[a2_0xf6e12a(0x228)]('update\x20<name>')['description'](a2_0xf6e12a(0x318))['option'](a2_0xf6e12a(0x334),a2_0xf6e12a(0x291))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2eb),a2_0xf6e12a(0x299))['option']('--schedule-option\x20<value>',a2_0xf6e12a(0x21d))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x204),a2_0xf6e12a(0x232))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2b1),a2_0xf6e12a(0x2c6))['option']('--add-attributes-file\x20<file>',a2_0xf6e12a(0x2c3))['option'](a2_0xf6e12a(0x2a6),'Add\x20behaviors\x20as\x20JSON\x20string')['option']('--add-behaviors-file\x20<file>',a2_0xf6e12a(0x2c9))[a2_0xf6e12a(0x18b)](async(_0x27102d,_0x4e8a93)=>{const _0x274f49=a2_0xf6e12a,_0x24ea12=new ParentSegmentUpdateCommand(),_0x3e566d=program[_0x274f49(0x18f)](),_0xf2583a=await createTDXInstance(_0x3e566d),_0x4bf888=await _0x24ea12['run']({'options':{..._0x3e566d,..._0x4e8a93},'args':[_0x27102d],'tdx':_0xf2583a});process['exit'](_0x4bf888);}),folderCmd[a2_0xf6e12a(0x228)]('create\x20<parent_name>\x20<folder_name>')[a2_0xf6e12a(0x2ef)]('Create\x20segment\x20folder')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x334),a2_0xf6e12a(0x1ac))['option'](a2_0xf6e12a(0x1a7),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0xf6e12a(0x18b)](async(_0x495d81,_0x38ea59,_0x2888f4)=>{const _0x9cb3b1=a2_0xf6e12a,_0x1dc703=new SegmentFolderCreateCommand(),_0x4eee09=program['opts'](),_0x1f5330=await createTDXInstance(_0x4eee09),_0x5c2f43=await _0x1dc703[_0x9cb3b1(0x369)]({'options':{..._0x4eee09,..._0x2888f4},'args':[_0x495d81,_0x38ea59],'tdx':_0x1f5330});process['exit'](_0x5c2f43);}),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2b0))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2b6))['action'](async(_0x5ba3f8,_0x67c250)=>{const _0x444693=a2_0xf6e12a,_0x396d16=new ActivationsCommand(),_0x1e7571=program[_0x444693(0x18f)](),_0x5c27ec=await createTDXInstance(_0x1e7571),_0x3d7827=await _0x396d16[_0x444693(0x369)]({'options':{..._0x1e7571,..._0x67c250},'args':[_0x5ba3f8],'tdx':_0x5c27ec});process[_0x444693(0x2f5)](_0x3d7827);});const workflowCmd=program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x372))['alias']('wf')['description']('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0xf6e12a(0x228)]('project')['description'](a2_0xf6e12a(0x1b4)),wfProjectListAction=async(_0x4215f7,_0x396756)=>{const _0xb4745b=a2_0xf6e12a,_0x849b67=new WorkflowProjectsCommand(),_0x410378=program[_0xb4745b(0x18f)](),_0x199187=await createTDXInstance(_0x410378),_0x172408=await _0x849b67[_0xb4745b(0x369)]({'options':{..._0x410378,..._0x396756},'args':_0x4215f7?[_0x4215f7]:[],'tdx':_0x199187});process['exit'](_0x172408);};wfProjectCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2bb))[a2_0xf6e12a(0x2ef)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0xf6e12a(0x18b)](wfProjectListAction),workflowCmd['command']('projects\x20[pattern]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x162))[a2_0xf6e12a(0x18b)](wfProjectListAction);const wfWorkflowListAction=async(_0x5c2893,_0x30ee56)=>{const _0x57b945=a2_0xf6e12a,_0x1df01c=new WorkflowWorkflowsCommand(),_0x3a6429=program['opts'](),_0x52873f=await createTDXInstance(_0x3a6429),_0x38d6d6=await _0x1df01c[_0x57b945(0x369)]({'options':{..._0x3a6429,..._0x30ee56},'args':_0x5c2893?[_0x5c2893]:[],'tdx':_0x52873f});process['exit'](_0x38d6d6);};workflowCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x27f))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1b9))[a2_0xf6e12a(0x18b)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2f2))['description'](a2_0xf6e12a(0x1a4)),wfSessionListAction=async(_0x13b7d3,_0x5d313c)=>{const _0x52e537=a2_0xf6e12a,_0x3ae970=new WorkflowSessionsCommand(),_0x5a38fe=program[_0x52e537(0x18f)](),_0x16bce4=await createTDXInstance(_0x5a38fe),_0x391075=await _0x3ae970['run']({'options':{..._0x5a38fe,..._0x5d313c},'args':_0x13b7d3?[_0x13b7d3]:[],'tdx':_0x16bce4});process[_0x52e537(0x2f5)](_0x391075);};wfSessionCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x221))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x30e))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x240),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x210),a2_0xf6e12a(0x184))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x220),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0xf6e12a(0x18b)](wfSessionListAction),workflowCmd['command'](a2_0xf6e12a(0x25b))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1c3))[a2_0xf6e12a(0x282)]('--status\x20<status>',a2_0xf6e12a(0x24e))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x210),a2_0xf6e12a(0x184))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x220),a2_0xf6e12a(0x182))[a2_0xf6e12a(0x18b)](wfSessionListAction);const wfAttemptListAction=async(_0x242dbf,_0x14ef17)=>{const _0x545241=a2_0xf6e12a,_0x3c9a6b=new WorkflowAttemptsCommand(),_0x1222b1=program[_0x545241(0x18f)](),_0x1b7bff=await createTDXInstance(_0x1222b1),_0x2ce986=await _0x3c9a6b['run']({'options':{..._0x1222b1,..._0x14ef17},'args':_0x242dbf?[_0x242dbf]:[],'tdx':_0x1b7bff});process[_0x545241(0x2f5)](_0x2ce986);},attemptCmd=workflowCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x258))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x285))[a2_0xf6e12a(0x315)](a2_0xf6e12a(0x34d),a2_0xf6e12a(0x167))[a2_0xf6e12a(0x315)](a2_0xf6e12a(0x2e8),a2_0xf6e12a(0x363))[a2_0xf6e12a(0x315)](a2_0xf6e12a(0x350),a2_0xf6e12a(0x30a))['option']('--include-subtasks',a2_0xf6e12a(0x31f))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2df),a2_0xf6e12a(0x2bc))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x27a),a2_0xf6e12a(0x306))['option'](a2_0xf6e12a(0x2c4),a2_0xf6e12a(0x365))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2d3),a2_0xf6e12a(0x2dd))[a2_0xf6e12a(0x282)]('--include-retried','Include\x20retried\x20attempts\x20(for\x20list)')['action'](async(_0xc6349c,_0x274f16,_0x5504d,_0x304e81)=>{const _0x1c8e55=a2_0xf6e12a;if(_0xc6349c==='list'){await wfAttemptListAction(_0x274f16,_0x304e81);return;}if(!_0xc6349c){attemptCmd['help']();return;}const _0x1ce7f7=program[_0x1c8e55(0x18f)](),_0x59656b=await createTDXInstance(_0x1ce7f7);let _0x578bb5=0x0;if(!_0x274f16){const _0x1b4e4e=new WorkflowAttemptCommand();_0x578bb5=await _0x1b4e4e[_0x1c8e55(0x369)]({'options':{..._0x1ce7f7,..._0x304e81},'args':[_0xc6349c],'tdx':_0x59656b});}else{if(_0x274f16===_0x1c8e55(0x217)){const _0x7d12d2=new WorkflowLogsCommand();_0x578bb5=await _0x7d12d2['run']({'options':{..._0x1ce7f7,..._0x304e81},'args':_0x5504d?[_0xc6349c,_0x5504d]:[_0xc6349c],'tdx':_0x59656b});}else{if(_0x274f16===_0x1c8e55(0x199)){const _0x123f5e=new WorkflowTasksCommand();_0x578bb5=await _0x123f5e[_0x1c8e55(0x369)]({'options':{..._0x1ce7f7,..._0x304e81},'args':[_0xc6349c],'tdx':_0x59656b});}else{if(_0x274f16===_0x1c8e55(0x23a)){const _0x4cd713=new WorkflowKillCommand();_0x578bb5=await _0x4cd713[_0x1c8e55(0x369)]({'options':{..._0x1ce7f7,..._0x304e81},'args':[_0xc6349c],'tdx':_0x59656b});}else{if(_0x274f16===_0x1c8e55(0x292)){const _0x524735=new WorkflowRetryCommand();_0x578bb5=await _0x524735[_0x1c8e55(0x369)]({'options':{..._0x1ce7f7,..._0x304e81},'args':[_0x1c8e55(0x368)+_0xc6349c],'tdx':_0x59656b});}else console[_0x1c8e55(0x325)](_0x1c8e55(0x164)+_0x274f16),console[_0x1c8e55(0x325)](_0x1c8e55(0x1a5)),_0x578bb5=0x1;}}}}process['exit'](_0x578bb5);});attemptCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x221))['description'](a2_0xf6e12a(0x1fc))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x251),'Include\x20retried\x20attempts')[a2_0xf6e12a(0x18b)](wfAttemptListAction),workflowCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1af))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1fe))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x251),a2_0xf6e12a(0x331))[a2_0xf6e12a(0x18b)](wfAttemptListAction),workflowCmd['command'](a2_0xf6e12a(0x1f3))[a2_0xf6e12a(0x2ef)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1a8),a2_0xf6e12a(0x166))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2c4),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0xf6e12a(0x18b)](async(_0xd49201,_0x491ae0)=>{const _0x4a17d7=a2_0xf6e12a,_0x4daec4=new WorkflowRetryCommand(),_0x3eaac9=program[_0x4a17d7(0x18f)](),_0x14602b=await createTDXInstance(_0x3eaac9),_0x17821b=await _0x4daec4[_0x4a17d7(0x369)]({'options':{..._0x3eaac9,..._0x491ae0},'args':[_0xd49201],'tdx':_0x14602b});process[_0x4a17d7(0x2f5)](_0x17821b);}),workflowCmd['command']('run\x20<workflow>')[a2_0xf6e12a(0x2ef)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0xf6e12a(0x282)]('--param\x20<key=value>','Workflow\x20parameter\x20(repeatable)',(_0x46cc51,_0x3bf821=[])=>[..._0x3bf821,_0x46cc51],[])['option']('--session-time\x20<time>',a2_0xf6e12a(0x1f7))['action'](async(_0x5a1b87,_0x53b25a)=>{const _0x377377=a2_0xf6e12a,_0xffee90=new WorkflowRunCommand(),_0x1d7f68=program['opts'](),_0x336bc6=await createTDXInstance(_0x1d7f68),_0xbff16c=await _0xffee90[_0x377377(0x369)]({'options':{..._0x1d7f68,..._0x53b25a},'args':[_0x5a1b87],'tdx':_0x336bc6});process[_0x377377(0x2f5)](_0xbff16c);}),workflowCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2e6))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x238))['option'](a2_0xf6e12a(0x32d),a2_0xf6e12a(0x37d))['action'](async(_0x4d10e3,_0x1d9a19,_0x18ade8)=>{const _0x5b6f36=a2_0xf6e12a,_0x16de94=new WorkflowDownloadCommand(),_0x31a189=program[_0x5b6f36(0x18f)](),_0xaccc0c=await createTDXInstance(_0x31a189),_0x29aa24=await _0x16de94[_0x5b6f36(0x369)]({'options':{..._0x31a189,..._0x18ade8},'args':[_0x4d10e3,_0x1d9a19||'.'],'tdx':_0xaccc0c});process[_0x5b6f36(0x2f5)](_0x29aa24);}),workflowCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x33f))[a2_0xf6e12a(0x2ef)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x165),a2_0xf6e12a(0x1ef))['option'](a2_0xf6e12a(0x32d),a2_0xf6e12a(0x2b9))['option'](a2_0xf6e12a(0x385),a2_0xf6e12a(0x256))[a2_0xf6e12a(0x18b)](async(_0x416d0d,_0x87bcb1)=>{const _0x3a78a4=a2_0xf6e12a,_0x26dd3a=new WorkflowPushCommand(),_0x3dccae=program[_0x3a78a4(0x18f)](),_0x28a568=await createTDXInstance(_0x3dccae),_0x51d9bb=await _0x26dd3a[_0x3a78a4(0x369)]({'options':{..._0x3dccae,..._0x87bcb1},'args':_0x416d0d?[_0x416d0d]:[],'tdx':_0x28a568});process[_0x3a78a4(0x2f5)](_0x51d9bb);}),workflowCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x346))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x219))[a2_0xf6e12a(0x18b)](async(_0x1f59ce,_0xbfc5e1)=>{const _0x36893d=a2_0xf6e12a,_0x28d851=new WorkflowDeleteCommand(),_0x4c1fd5=program[_0x36893d(0x18f)](),_0x22173a=await createTDXInstance(_0x4c1fd5),_0xfa9f35=await _0x28d851[_0x36893d(0x369)]({'options':{..._0x4c1fd5,..._0xbfc5e1},'args':[_0x1f59ce],'tdx':_0x22173a});process[_0x36893d(0x2f5)](_0xfa9f35);});const jobCmd=program[a2_0xf6e12a(0x228)]('job')['description']('Job\x20management\x20commands'),jobListAction=async _0xdaa98e=>{const _0x4f6f76=a2_0xf6e12a,_0x51ffc8=new JobListCommand(),_0x20a33c=program[_0x4f6f76(0x18f)](),_0x32b491=await createTDXInstance(_0x20a33c),_0x595a2f=await _0x51ffc8[_0x4f6f76(0x369)]({'options':{..._0x20a33c,..._0xdaa98e},'args':[],'tdx':_0x32b491});process['exit'](_0x595a2f);};jobCmd['command']('list')['description'](a2_0xf6e12a(0x336))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x240),a2_0xf6e12a(0x1e3))[a2_0xf6e12a(0x18b)](jobListAction),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x286),{'hidden':!![]})[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1ab))[a2_0xf6e12a(0x282)]('--status\x20<status>',a2_0xf6e12a(0x1e3))['action'](jobListAction),jobCmd[a2_0xf6e12a(0x228)]('show\x20<job-id>')['description'](a2_0xf6e12a(0x1c0))[a2_0xf6e12a(0x18b)](async(_0x57ebd6,_0x949aa0)=>{const _0x4d2e53=a2_0xf6e12a,_0x2943a7=new JobShowCommand(),_0x2cab06=program['opts'](),_0x2ffb3f=await createTDXInstance(_0x2cab06),_0x58534d=await _0x2943a7[_0x4d2e53(0x369)]({'options':{..._0x2cab06,..._0x949aa0},'args':[_0x57ebd6],'tdx':_0x2ffb3f});process[_0x4d2e53(0x2f5)](_0x58534d);}),jobCmd['command'](a2_0xf6e12a(0x169))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x163))[a2_0xf6e12a(0x18b)](async(_0xbb7562,_0x2ac681)=>{const _0x3d2b34=a2_0xf6e12a,_0xff82e3=new JobKillCommand(),_0x3d2ac5=program[_0x3d2b34(0x18f)](),_0x37d026=await createTDXInstance(_0x3d2ac5),_0x27b6ff=await _0xff82e3[_0x3d2b34(0x369)]({'options':{..._0x3d2ac5,..._0x2ac681},'args':[_0xbb7562],'tdx':_0x37d026});process[_0x3d2b34(0x2f5)](_0x27b6ff);}),jobCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x16e))['description'](a2_0xf6e12a(0x28e))['option'](a2_0xf6e12a(0x2c1),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0xf6e12a(0x1ed))[a2_0xf6e12a(0x282)]('-f,\x20--file\x20<path>','Read\x20query\x20from\x20file')[a2_0xf6e12a(0x282)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)','information_schema')[a2_0xf6e12a(0x18b)](async(_0x2022f1,_0x3853a0)=>{const _0x2dc3be=a2_0xf6e12a,_0x188750=new JobSubmitCommand(),_0x1e11c5=program[_0x2dc3be(0x18f)](),_0x43154d=await createTDXInstance(_0x1e11c5),_0x25156f=await _0x188750[_0x2dc3be(0x369)]({'options':{..._0x1e11c5,..._0x3853a0},'args':_0x2022f1?[_0x2022f1]:[],'tdx':_0x43154d});process[_0x2dc3be(0x2f5)](_0x25156f);}),jobCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1f8))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x29f))[a2_0xf6e12a(0x18b)](async(_0x166913,_0x4beda6)=>{const _0x5e92bf=a2_0xf6e12a,_0x13705d=new JobResultCommand(),_0x102e63=program[_0x5e92bf(0x18f)](),_0xaeecaa=await createTDXInstance(_0x102e63),_0xd7033d=await _0x13705d['run']({'options':{..._0x102e63,..._0x4beda6},'args':[_0x166913],'tdx':_0xaeecaa});process[_0x5e92bf(0x2f5)](_0xd7033d);});const llmCmd=program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x321))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x333));llmCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1e6))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x266))[a2_0xf6e12a(0x18b)](async(_0x172786,_0x34428a)=>{const _0x486387=a2_0xf6e12a,_0xea47bf=new LLMUseCommand(),_0x1f10e0=program[_0x486387(0x18f)](),_0x59032f=await createTDXInstance(_0x1f10e0),_0x40d0dd=await _0xea47bf[_0x486387(0x369)]({'options':{..._0x1f10e0,..._0x34428a},'args':[_0x172786],'tdx':_0x59032f});process[_0x486387(0x2f5)](_0x40d0dd);}),llmCmd[a2_0xf6e12a(0x228)]('models')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1f2))[a2_0xf6e12a(0x18b)](async _0x116b01=>{const _0x5d432c=a2_0xf6e12a,_0x582b16=new LLMModelsCommand(),_0x457acf=program[_0x5d432c(0x18f)](),_0xb188fa=await createTDXInstance(_0x457acf),_0xdd3e34=await _0x582b16[_0x5d432c(0x369)]({'options':{..._0x457acf,..._0x116b01},'args':[],'tdx':_0xb188fa});process['exit'](_0xdd3e34);});const projectCmd=llmCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x179))['description'](a2_0xf6e12a(0x2b4)),llmProjectListAction=async(_0x9b499f,_0x4838db)=>{const _0xcb9a19=a2_0xf6e12a,_0xc80672=new LLMProjectsCommand(),_0x3b52c0=program[_0xcb9a19(0x18f)](),_0x5041c8=await createTDXInstance(_0x3b52c0),_0x47f52f=await _0xc80672[_0xcb9a19(0x369)]({'options':{..._0x3b52c0,..._0x4838db},'args':_0x9b499f?[_0x9b499f]:[],'tdx':_0x5041c8});process[_0xcb9a19(0x2f5)](_0x47f52f);};projectCmd[a2_0xf6e12a(0x228)]('list\x20[pattern]')['description'](a2_0xf6e12a(0x1db))[a2_0xf6e12a(0x18b)](llmProjectListAction),llmCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2da))['description'](a2_0xf6e12a(0x1f6))['action'](llmProjectListAction),projectCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2a4))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x192))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x334),'Project\x20description')['action'](async(_0x5b32fd,_0x346759)=>{const _0x52a19a=a2_0xf6e12a,_0x39bd74=new LLMProjectCreateCommand(),_0x2fda29=program[_0x52a19a(0x18f)](),_0x508c9c=await createTDXInstance(_0x2fda29),_0x53aca6=await _0x39bd74['run']({'options':{..._0x2fda29,..._0x346759},'args':[_0x5b32fd],'tdx':_0x508c9c});process[_0x52a19a(0x2f5)](_0x53aca6);}),projectCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2ea))['description'](a2_0xf6e12a(0x23e))['action'](async(_0x1cef52,_0x23749b)=>{const _0x135d7a=a2_0xf6e12a,_0xea7615=new LLMProjectDeleteCommand(),_0x211d1a=program[_0x135d7a(0x18f)](),_0xaae06e=await createTDXInstance(_0x211d1a),_0x3c8442=await _0xea7615[_0x135d7a(0x369)]({'options':{..._0x211d1a,..._0x23749b},'args':[_0x1cef52],'tdx':_0xaae06e});process[_0x135d7a(0x2f5)](_0x3c8442);}),projectCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x352))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x243))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x252),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x23b),a2_0xf6e12a(0x366))[a2_0xf6e12a(0x18b)](async(_0x377ad9,_0x5e3891)=>{const _0xed62a8=a2_0xf6e12a,_0x22e27c=new LLMProjectBackupCommand(),_0x5060e5=program[_0xed62a8(0x18f)](),_0xff34f8=await createTDXInstance(_0x5060e5),_0x2a7559=await _0x22e27c[_0xed62a8(0x369)]({'options':{..._0x5060e5,..._0x5e3891},'args':[_0x377ad9],'tdx':_0xff34f8});process[_0xed62a8(0x2f5)](_0x2a7559);}),projectCmd['command'](a2_0xf6e12a(0x27e))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2d1))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1ec),a2_0xf6e12a(0x290))['option']('--dry-run',a2_0xf6e12a(0x2ab))['action'](async(_0x5948a3,_0x138e61)=>{const _0x376af0=a2_0xf6e12a,_0x6751b4=new LLMProjectRestoreCommand(),_0x54a80a=program[_0x376af0(0x18f)](),_0x59ea27=await createTDXInstance(_0x54a80a),_0xbfb29a=await _0x6751b4['run']({'options':{..._0x54a80a,..._0x138e61},'args':[_0x5948a3],'tdx':_0x59ea27});process[_0x376af0(0x2f5)](_0xbfb29a);});const agentCmd=llmCmd[a2_0xf6e12a(0x228)]('agent')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2e7)),llmAgentListAction=async(_0x478a3a,_0x54a312)=>{const _0x3e8fc1=a2_0xf6e12a,_0x393578=new LLMAgentsCommand(),_0x50490d=program[_0x3e8fc1(0x18f)](),_0x210c72=await createTDXInstance(_0x50490d),_0x324f89=await _0x393578[_0x3e8fc1(0x369)]({'options':{..._0x50490d,..._0x54a312},'args':_0x478a3a?[_0x478a3a]:[],'tdx':_0x210c72});process[_0x3e8fc1(0x2f5)](_0x324f89);};agentCmd[a2_0xf6e12a(0x228)]('list\x20[pattern]')['description']('List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0xf6e12a(0x18b)](llmAgentListAction),llmCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x34b))[a2_0xf6e12a(0x2ef)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0xf6e12a(0x18b)](llmAgentListAction),agentCmd[a2_0xf6e12a(0x228)]('show\x20<agent-name>')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2d0))['action'](async(_0x46c240,_0xe3784f)=>{const _0xacb60=a2_0xf6e12a,_0x85554e=new LLMAgentShowCommand(),_0x406c88=program[_0xacb60(0x18f)](),_0xb6fb60=await createTDXInstance(_0x406c88),_0x343e98=await _0x85554e[_0xacb60(0x369)]({'options':{..._0x406c88,..._0xe3784f},'args':[_0x46c240],'tdx':_0xb6fb60});process[_0xacb60(0x2f5)](_0x343e98);}),agentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2a4))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x23f))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x29e),a2_0xf6e12a(0x1cc))['option']('--model\x20<name>',a2_0xf6e12a(0x362),a2_0xf6e12a(0x26b))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x275),a2_0xf6e12a(0x267))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1d5),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0xf6e12a(0x282)]('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0xf6e12a(0x1f4))['action'](async(_0x174cc3,_0x5e0802)=>{const _0x4b9a6c=a2_0xf6e12a,_0x2a9a3f=new LLMAgentCreateCommand(),_0x54ecf6=program[_0x4b9a6c(0x18f)](),_0x1f7fd5=await createTDXInstance(_0x54ecf6),_0x5cf825=await _0x2a9a3f['run']({'options':{..._0x54ecf6,..._0x5e0802},'args':[_0x174cc3],'tdx':_0x1f7fd5});process[_0x4b9a6c(0x2f5)](_0x5cf825);}),agentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1fd))['description'](a2_0xf6e12a(0x222))['option'](a2_0xf6e12a(0x375),a2_0xf6e12a(0x2af))[a2_0xf6e12a(0x282)]('--prompt\x20<text>','Agent\x20prompt/instructions')['option'](a2_0xf6e12a(0x334),'Agent\x20description')['option'](a2_0xf6e12a(0x275),a2_0xf6e12a(0x267))[a2_0xf6e12a(0x18b)](async(_0x147db0,_0x58f870)=>{const _0x52cb0a=a2_0xf6e12a,_0x32f8b6=new LLMAgentUpdateCommand(),_0x94f0cb=program[_0x52cb0a(0x18f)](),_0x55ce86=await createTDXInstance(_0x94f0cb),_0xbc0d5a=await _0x32f8b6[_0x52cb0a(0x369)]({'options':{..._0x94f0cb,..._0x58f870},'args':[_0x147db0],'tdx':_0x55ce86});process[_0x52cb0a(0x2f5)](_0xbc0d5a);}),agentCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1c4))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x180))[a2_0xf6e12a(0x18b)](async(_0xe051b,_0x40d680)=>{const _0x22e5f4=a2_0xf6e12a,_0x1e4487=new LLMAgentDeleteCommand(),_0x92fb5c=program[_0x22e5f4(0x18f)](),_0x249b10=await createTDXInstance(_0x92fb5c),_0x5ed912=await _0x1e4487['run']({'options':{..._0x92fb5c,..._0x40d680},'args':[_0xe051b],'tdx':_0x249b10});process[_0x22e5f4(0x2f5)](_0x5ed912);}),llmCmd['command'](a2_0xf6e12a(0x30f))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1aa))['option'](a2_0xf6e12a(0x2fc),a2_0xf6e12a(0x2d5))[a2_0xf6e12a(0x18b)](async(_0x21e601,_0x2fb6b6)=>{const _0x3bb3d6=a2_0xf6e12a,_0x5520c1=new LLMHistoryCommand(),_0xbc18fe=program[_0x3bb3d6(0x18f)](),_0x3df148=await createTDXInstance(_0xbc18fe),_0x5c0591=await _0x5520c1[_0x3bb3d6(0x369)]({'options':{..._0xbc18fe,..._0x2fb6b6},'args':_0x21e601?[_0x21e601]:[],'tdx':_0x3df148});process['exit'](_0x5c0591);}),llmCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x23d))[a2_0xf6e12a(0x2ef)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')['option'](a2_0xf6e12a(0x304),a2_0xf6e12a(0x1b3),a2_0xf6e12a(0x185))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x20f),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x359),a2_0xf6e12a(0x181))[a2_0xf6e12a(0x18b)](async _0x987674=>{const _0x2ceed3=a2_0xf6e12a,_0x42a1ff=new LLMProxyCommand(),_0x38918a=program[_0x2ceed3(0x18f)](),_0x3a211e=await createTDXInstance(_0x38918a),_0x6dcb78={..._0x987674,'port':_0x987674[_0x2ceed3(0x1b8)]?parseInt(_0x987674[_0x2ceed3(0x1b8)],0xa):undefined},_0x537f8e=await _0x42a1ff['run']({'options':{..._0x38918a,..._0x6dcb78},'args':[],'tdx':_0x3a211e});process['exit'](_0x537f8e);}),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2ae))[a2_0xf6e12a(0x31a)](a2_0xf6e12a(0x196))['description'](a2_0xf6e12a(0x27b))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x17e),a2_0xf6e12a(0x1e2),a2_0xf6e12a(0x1c1))[a2_0xf6e12a(0x282)]('-c,\x20--continue',a2_0xf6e12a(0x294))[a2_0xf6e12a(0x282)]('-r,\x20--resume',a2_0xf6e12a(0x381))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x295),a2_0xf6e12a(0x242))['allowUnknownOption']()[a2_0xf6e12a(0x1f0)](!![])[a2_0xf6e12a(0x1ae)](a2_0xf6e12a(0x314),a2_0xf6e12a(0x268))['action'](async(_0x3192b1,_0x1b9ed2)=>{const _0x575dfa=a2_0xf6e12a,_0x138bac=program[_0x575dfa(0x18f)](),_0x422dff=Array[_0x575dfa(0x261)](_0x3192b1)?_0x3192b1:[];if(_0x422dff[0x0]===_0x575dfa(0x262)){const _0x1e2d52=new ClaudeStatuslineCommand(),_0xa29e1e=await _0x1e2d52[_0x575dfa(0x369)]({'options':{..._0x138bac,..._0x1b9ed2},'args':_0x422dff[_0x575dfa(0x1bd)](0x1),'tdx':null});process[_0x575dfa(0x2f5)](_0xa29e1e);}if(_0x422dff[0x0]==='usage'){const _0x297217=new ClaudeUsageCommand(),_0xdf1afb=await _0x297217['run']({'options':{..._0x138bac,..._0x1b9ed2},'args':_0x422dff[_0x575dfa(0x1bd)](0x1),'tdx':null});process['exit'](_0xdf1afb);}const _0x4f078e=new ClaudeCommand(),_0x45bd78=await createTDXInstance(_0x138bac),_0x13dc7f=await _0x4f078e[_0x575dfa(0x369)]({'options':{..._0x138bac,..._0x1b9ed2},'args':_0x422dff,'tdx':_0x45bd78});process['exit'](_0x13dc7f);}),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2cb))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x215))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x1a2),a2_0xf6e12a(0x226))['action'](async _0x44d8da=>{const _0x5083a5=a2_0xf6e12a,_0x51e13e=new ContextCommand(),_0xcef5bc=program['opts'](),_0x3b5b2c=await _0x51e13e[_0x5083a5(0x369)]({'options':{..._0xcef5bc,..._0x44d8da},'args':[],'tdx':null});process[_0x5083a5(0x2f5)](_0x3b5b2c);}),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2e9))['description']('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0xf6e12a(0x282)]('--clear',a2_0xf6e12a(0x226))[a2_0xf6e12a(0x18b)](async(_0x2d736d,_0x458e94,_0x1c8db9)=>{const _0x1b0358=a2_0xf6e12a,_0x13afd3=new UseCommand(),_0x19345d=program['opts'](),_0x5baf00=[];if(_0x2d736d)_0x5baf00[_0x1b0358(0x2b2)](_0x2d736d);if(_0x458e94)_0x5baf00[_0x1b0358(0x2b2)](_0x458e94);const _0x2cde3a=await _0x13afd3[_0x1b0358(0x369)]({'options':{..._0x19345d,..._0x1c8db9},'args':_0x5baf00,'tdx':null});process[_0x1b0358(0x2f5)](_0x2cde3a);}),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2ed))['description'](a2_0xf6e12a(0x22b))[a2_0xf6e12a(0x282)]('--last','Show\x20the\x20most\x20recent\x20chat')[a2_0xf6e12a(0x18b)](async _0x405b2a=>{const _0x36877a=a2_0xf6e12a,_0x4a2c9a=new ChatsCommand(),_0xee15c5=program['opts'](),_0x3a207f=await createTDXInstance(_0xee15c5),_0x46cff0=await _0x4a2c9a[_0x36877a(0x369)]({'options':{..._0xee15c5,..._0x405b2a},'args':[],'tdx':_0x3a207f});process[_0x36877a(0x2f5)](_0x46cff0);});const authCmd=program['command'](a2_0xf6e12a(0x347))[a2_0xf6e12a(0x2ef)]('Authentication\x20management');async function runAuthStatusCommand(_0x8775e8){const _0x503181=a2_0xf6e12a,_0xfe3415=new AuthStatusCommand(),_0x23826c=program[_0x503181(0x18f)](),_0x15794d=await createTDXInstance(_0x23826c),_0x2a9a68=await _0xfe3415[_0x503181(0x369)]({'options':{..._0x23826c,..._0x8775e8},'args':[],'tdx':_0x15794d});process[_0x503181(0x2f5)](_0x2a9a68);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x289))['description'](a2_0xf6e12a(0x21b))['action'](runAuthStatusCommand),authCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x250))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x248))[a2_0xf6e12a(0x1ae)]('after','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')['action'](async _0x445a58=>{const _0x4964c1=a2_0xf6e12a,_0x50c87e=new AuthSetupCommand(),_0xa104be=program['opts'](),_0x1155d1=await createTDXInstance(_0xa104be),_0x500933=await _0x50c87e[_0x4964c1(0x369)]({'options':{..._0xa104be,..._0x445a58},'args':[],'tdx':_0x1155d1});process['exit'](_0x500933);}),authCmd['command'](a2_0xf6e12a(0x36a))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x37a))[a2_0xf6e12a(0x1ae)](a2_0xf6e12a(0x314),a2_0xf6e12a(0x23c))['action'](async _0x5d2692=>{const _0x78c186=a2_0xf6e12a,_0xe1f77e=new AuthClearCommand(),_0xa6bef8=program[_0x78c186(0x18f)](),_0x5c2862=await _0xe1f77e[_0x78c186(0x369)]({'options':{..._0xa6bef8,..._0x5d2692},'args':[],'tdx':null});process[_0x78c186(0x2f5)](_0x5c2862);});const userCmd=program[a2_0xf6e12a(0x228)]('user')['description']('User\x20management\x20commands'),userListAction=async _0x3eff4d=>{const _0x571af9=a2_0xf6e12a,_0x79b372=new UserListCommand(),_0xb2200=program[_0x571af9(0x18f)](),_0x1c59dc=await createTDXInstance(_0xb2200),_0x480b08=await _0x79b372[_0x571af9(0x369)]({'options':{..._0xb2200,..._0x3eff4d},'args':[],'tdx':_0x1c59dc});process['exit'](_0x480b08);};userCmd[a2_0xf6e12a(0x18b)](async _0x420ea9=>{const _0x2292b1=a2_0xf6e12a,_0x46cf73=new UserCommand(),_0x312c95=program[_0x2292b1(0x18f)](),_0x215df8=await createTDXInstance(_0x312c95),_0x2b3f4a=await _0x46cf73[_0x2292b1(0x369)]({'options':{..._0x312c95,..._0x420ea9},'args':[],'tdx':_0x215df8});process[_0x2292b1(0x2f5)](_0x2b3f4a);}),userCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x320))['description'](a2_0xf6e12a(0x197))[a2_0xf6e12a(0x18b)](userListAction),program[a2_0xf6e12a(0x228)]('users')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2c2))[a2_0xf6e12a(0x18b)](userListAction),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x191))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x173))[a2_0xf6e12a(0x18b)](async _0x3f9741=>{const _0x43879c=a2_0xf6e12a,_0xfdf69a=new ProfilesCommand(),_0x3b4404=program['opts'](),_0x4c54a0=await _0xfdf69a[_0x43879c(0x369)]({'options':{..._0x3b4404,..._0x3f9741},'args':[],'tdx':null});process['exit'](_0x4c54a0);});const engageCmd=program['command'](a2_0xf6e12a(0x18d))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2f0)),createEngageAction=_0xd94ed6=>{return async(_0x4a53e5,_0x1f7600)=>{const _0x7f3435=a2_0x206c,_0x7a0380=new _0xd94ed6(),_0x28482e=program['opts'](),_0x579054=await createTDXInstance(_0x28482e),_0x209e8f=await _0x7a0380[_0x7f3435(0x369)]({'options':{..._0x28482e,..._0x1f7600},'args':[_0x4a53e5],'tdx':_0x579054});process[_0x7f3435(0x2f5)](_0x209e8f);};},createEngageNoArgAction=_0x47e548=>{return async _0x109ceb=>{const _0xf1adcb=a2_0x206c,_0x46989a=new _0x47e548(),_0x4a6a92=program[_0xf1adcb(0x18f)](),_0x26f7c3=await createTDXInstance(_0x4a6a92),_0x28111e=await _0x46989a[_0xf1adcb(0x369)]({'options':{..._0x4a6a92,..._0x109ceb},'args':[],'tdx':_0x26f7c3});process['exit'](_0x28111e);};},campaignCmd=engageCmd[a2_0xf6e12a(0x228)]('campaign')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x19c)),campaignListAction=async(_0x4aa5b0,_0x16eaa2)=>{const _0x4bf8f9=a2_0xf6e12a,_0x2e1056=new EngageCampaignsCommand(),_0x3118ae=program[_0x4bf8f9(0x18f)](),_0x2ed577=await createTDXInstance(_0x3118ae),_0x3dc64a=await _0x2e1056['run']({'options':{..._0x3118ae,..._0x16eaa2},'args':_0x4aa5b0?[_0x4aa5b0]:[],'tdx':_0x2ed577});process[_0x4bf8f9(0x2f5)](_0x3dc64a);};campaignCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2bb))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x308))['option']('--type\x20<type>',a2_0xf6e12a(0x307))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x240),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x2fb))[a2_0xf6e12a(0x18b)](campaignListAction),engageCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x32f))['description']('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')['option']('--type\x20<type>',a2_0xf6e12a(0x307))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x240),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x2fb))[a2_0xf6e12a(0x18b)](campaignListAction),campaignCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x25a))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2ba))['option'](a2_0xf6e12a(0x247),'Workspace\x20name')[a2_0xf6e12a(0x282)]('--full',a2_0xf6e12a(0x29a))[a2_0xf6e12a(0x18b)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0xf6e12a(0x1d6))[a2_0xf6e12a(0x2ef)]('Create\x20a\x20new\x20campaign')[a2_0xf6e12a(0x27d)]('--name\x20<name>',a2_0xf6e12a(0x367))[a2_0xf6e12a(0x27d)](a2_0xf6e12a(0x284),a2_0xf6e12a(0x1ea))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x1d2))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x22d),'Campaign\x20description')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x338),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x198),a2_0xf6e12a(0x2f9))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x361),a2_0xf6e12a(0x2a3))['option'](a2_0xf6e12a(0x31e),a2_0xf6e12a(0x26a))['option'](a2_0xf6e12a(0x204),a2_0xf6e12a(0x202))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0xf6e12a(0x228)]('update\x20<name-or-id>')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x386))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x2fb))['option'](a2_0xf6e12a(0x165),a2_0xf6e12a(0x2ee))[a2_0xf6e12a(0x282)]('--description\x20<desc>',a2_0xf6e12a(0x370))[a2_0xf6e12a(0x282)]('--segment\x20<path>',a2_0xf6e12a(0x183))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x198),a2_0xf6e12a(0x2f9))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x361),a2_0xf6e12a(0x2a3))['option']('--start-at\x20<datetime>',a2_0xf6e12a(0x26a))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x204),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0xf6e12a(0x18b)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x26d))['description']('Delete\x20a\x20campaign')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x2fb))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x161),a2_0xf6e12a(0x305))[a2_0xf6e12a(0x18b)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0xf6e12a(0x1a0))['description'](a2_0xf6e12a(0x329))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x2fb))[a2_0xf6e12a(0x18b)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0xf6e12a(0x253))['description'](a2_0xf6e12a(0x1fa))[a2_0xf6e12a(0x282)]('--workspace\x20<name>','Workspace\x20name')[a2_0xf6e12a(0x18b)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0xf6e12a(0x228)]('resume\x20<name-or-id>')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2d7))[a2_0xf6e12a(0x282)]('--workspace\x20<name>','Workspace\x20name')['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2a0))[a2_0xf6e12a(0x2ef)]('Duplicate\x20a\x20campaign')[a2_0xf6e12a(0x282)]('--workspace\x20<name>',a2_0xf6e12a(0x2fb))[a2_0xf6e12a(0x18b)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0xf6e12a(0x2e5))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x189)),templateListAction=async(_0xe56421,_0x93456a)=>{const _0x2926c1=a2_0xf6e12a,_0x5c5b4e=new EngageTemplatesCommand(),_0x92747d=program['opts'](),_0x4b6a10=await createTDXInstance(_0x92747d),_0x3ebe0f=await _0x5c5b4e[_0x2926c1(0x369)]({'options':{..._0x92747d,..._0x93456a},'args':_0xe56421?[_0xe56421]:[],'tdx':_0x4b6a10});process[_0x2926c1(0x2f5)](_0x3ebe0f);};templateCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2bb))['description'](a2_0xf6e12a(0x203))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x2fb))[a2_0xf6e12a(0x18b)](templateListAction),engageCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1f1))[a2_0xf6e12a(0x2ef)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')['option'](a2_0xf6e12a(0x247),'Workspace\x20name')[a2_0xf6e12a(0x18b)](templateListAction),templateCmd['command'](a2_0xf6e12a(0x25a))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x270))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x2fb))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x24a),a2_0xf6e12a(0x29a))[a2_0xf6e12a(0x18b)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0xf6e12a(0x1d6))['description']('Create\x20an\x20email\x20template')[a2_0xf6e12a(0x27d)](a2_0xf6e12a(0x165),a2_0xf6e12a(0x31d))[a2_0xf6e12a(0x27d)](a2_0xf6e12a(0x20d),'Email\x20subject\x20template')[a2_0xf6e12a(0x27d)]('--html\x20<html>',a2_0xf6e12a(0x22e))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),'Workspace\x20name\x20(required)')['option'](a2_0xf6e12a(0x223),a2_0xf6e12a(0x353))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x2bd),a2_0xf6e12a(0x237))[a2_0xf6e12a(0x18b)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2ff))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x319))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x2fb))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x165),a2_0xf6e12a(0x35e))[a2_0xf6e12a(0x282)]('--subject\x20<subject>',a2_0xf6e12a(0x2a9))[a2_0xf6e12a(0x282)]('--html\x20<html>',a2_0xf6e12a(0x22e))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x223),a2_0xf6e12a(0x353))[a2_0xf6e12a(0x18b)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0xf6e12a(0x228)]('delete\x20<name-or-id>')['description'](a2_0xf6e12a(0x1ee))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x247),a2_0xf6e12a(0x2fb))['option'](a2_0xf6e12a(0x161),a2_0xf6e12a(0x305))[a2_0xf6e12a(0x18b)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x212))['description']('Workspace\x20management'),workspaceListAction=async(_0x1123f9,_0x870061)=>{const _0x251287=a2_0xf6e12a,_0x50b2b3=new EngageWorkspacesCommand(),_0x1c837b=program[_0x251287(0x18f)](),_0x163121=await createTDXInstance(_0x1c837b),_0x1f8d88=await _0x50b2b3['run']({'options':{..._0x1c837b,..._0x870061},'args':_0x1123f9?[_0x1123f9]:[],'tdx':_0x163121});process[_0x251287(0x2f5)](_0x1f8d88);};workspaceCmd['command']('list\x20[pattern]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2a5))['action'](workspaceListAction),engageCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1bc))[a2_0xf6e12a(0x2ef)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0xf6e12a(0x18b)](workspaceListAction),workspaceCmd[a2_0xf6e12a(0x228)]('show\x20<name-or-id>')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x25e))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x24a),a2_0xf6e12a(0x29a))[a2_0xf6e12a(0x18b)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1d6))[a2_0xf6e12a(0x2ef)]('Create\x20a\x20workspace')[a2_0xf6e12a(0x27d)](a2_0xf6e12a(0x165),a2_0xf6e12a(0x2fb))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x22d),a2_0xf6e12a(0x17a))[a2_0xf6e12a(0x18b)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x2ff))[a2_0xf6e12a(0x2ef)]('Update\x20a\x20workspace')[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x165),a2_0xf6e12a(0x351))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x22d),a2_0xf6e12a(0x17a))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x26d))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x17f))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x161),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x283))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x1ff))[a2_0xf6e12a(0x18b)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1a1))[a2_0xf6e12a(0x2ef)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x550170=>{const _0x3d843f=a2_0xf6e12a,_0x588c59=new ConnectionListCommand(),_0xecccf8=program[_0x3d843f(0x18f)](),_0x137e1c=await createTDXInstance(_0xecccf8),_0xda18b7=await _0x588c59[_0x3d843f(0x369)]({'options':{..._0xecccf8,..._0x550170},'args':[],'tdx':_0x137e1c});process['exit'](_0xda18b7);};function a2_0x3376(){const _0x499322=['List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','history\x20[chat-id]','--customer-group\x20<json>','--folder\x20<name>','-d,\x20--database\x20<name>','noColor','after','argument','--temperature\x20<n>','--behaviors-file\x20<file>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Update\x20an\x20email\x20template','usage','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','stdout','Template\x20name','--start-at\x20<datetime>','Include\x20subtasks\x20in\x20tasks\x20output','list','llm','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','help','error','Show\x20segment\x20details\x20(alias\x20for\x20view)','--site\x20<site>','Enable\x20verbose\x20logging','Launch\x20a\x20campaign','Read\x20SQL\x20query\x20from\x20file','--limit\x20<n>','json','--revision\x20<revision>','utf-8','campaigns\x20[pattern]','--behaviors\x20<json>','Include\x20retried\x20attempts','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--description\x20<text>','Segment\x20description','List\x20jobs','view\x20[name]','--segment\x20<path>','25248uBsVUf','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','run\x20[name]','describe','parse','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','push\x20[project-name-or-dir]','-f,\x20--file\x20<path>','aliases','Filtering\x20rule\x20as\x20JSON\x20string','api\x20[endpoint]','--attributes\x20<json>','AI-native\x20CLI\x20for\x20Treasure\x20Data','delete\x20<project-name-or-id>','auth','show\x20<name>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Make\x20segment\x20invisible\x20(default:\x20visible)','agents\x20[pattern]','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','[attempt-id]','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','name','[task-name]','New\x20workspace\x20name','backup\x20<name>','Plaintext\x20template\x20content','--no-color','segment','Trino\x20catalog\x20(default:\x20td)','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Skip\x20confirmation\x20prompts','--agent\x20<name>','profile','outputHelp','version','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','New\x20template\x20name','Skip\x20population\x20counting','New\x20segment\x20name','--json-columns\x20<cols>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Table\x20management\x20commands','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Campaign\x20name','attempt:','run','clear','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','optionTerm','view\x20<name-or-path>','Model\x20name\x20(default:\x20claude-4.5-sonnet)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Campaign\x20description','--data\x20<data>','workflow','repeat','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--name\x20<text>','join','--in\x20<database>','use\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Remove\x20API\x20key\x20from\x20system\x20keychain','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','options','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--session\x20<id>','Options:','injectIntoOptions','Resume\x20a\x20conversation\x20(shows\x20selector)','folders\x20<parent_name>','log','alias','--skip-validation','Update\x20a\x20campaign','--yes','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Kill\x20a\x20job','Unknown\x20action:\x20','--name\x20<name>','Resume\x20from\x20specific\x20task','Attempt\x20ID','-r,\x20--recursive','kill\x20<job-id>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--customer-group-file\x20<file>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','submit\x20[query]','commandDescription','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','build-info.json','List\x20journeys\x20in\x20current\x20context','List\x20all\x20available\x20profiles','Limit\x20number\x20of\x20rows','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','_hidden','Show\x20connection\x20details\x20by\x20name','gitRevision','project','Workspace\x20description','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--max-depth\x20<depth>','Usage:\x20','--model\x20<name>','Delete\x20a\x20workspace','Delete\x20an\x20agent','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','End\x20time\x20filter\x20(ISO\x208601\x20format)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','4000','tdx','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','commands','Email\x20template\x20management','parent_segment','action','-o,\x20--output\x20<file>','engage','CDP\x20Journey\x20Orchestration\x20commands','opts','push\x20[parent_or_file]','profiles','Create\x20a\x20new\x20LLM\x20project','subcommandTerm','--json','List\x20all\x20data\x20connections','[options]\x20--\x20[claude-code-args...]','List\x20all\x20users\x20in\x20the\x20account','--email-sender-id\x20<id>','tasks','--attributes-file\x20<file>','Arguments:','Campaign\x20management','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','required','length','launch\x20<name-or-id>','connection','--clear','--format\x20<format>','Workflow\x20session\x20management','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','connections','--parent-folder\x20<name>','--from-task\x20<task>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Folder\x20description','pull\x20[name]','addHelpText','attempts\x20[project]','table','-H,\x20--header\x20<header>','resume\x20<name-or-path>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Workflow\x20project\x20management','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','format','port','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Behaviors\x20from\x20JSON\x20file','push\x20[name]','workspaces\x20[pattern]','slice','desc\x20[segment_name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Show\x20job\x20details','sonnet','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','delete\x20<agent-name>','--delete','map','7528cxZtwH','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--no-count-population','1055778ZHVCeB','--version','System\x20prompt/instructions\x20(default:\x20empty)','describe\x20[table]','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Timezone\x20(e.g.,\x20America/Los_Angeles)','-X,\x20--method\x20<method>','Workspace\x20name\x20(required)','preview\x20[name]','DEBUG','--max-tool-iterations\x20<n>','create','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Behaviors\x20as\x20JSON\x20string','journey','Output\x20as\x20JSON','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--schedule-option\x20<value>','Filtering\x20rule\x20from\x20JSON\x20file','parent','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--kind\x20<type>','tsv','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Output\x20as\x20JSON\x20Lines','filter','use\x20<project-name>','-u,\x20--use','colorFn','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Campaign\x20type\x20(email\x20or\x20push)','--jsonl','--name\x20<new-name>','trino','Delete\x20an\x20email\x20template','Override\x20project\x20name','allowExcessArguments','templates\x20[pattern]','List\x20available\x20LLM\x20models','retry\x20<session-id>','0.7','-v,\x20--verbose','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','result\x20<job-id>','Read\x20request\x20body\x20from\x20file','Pause\x20a\x20campaign','use\x20<path>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','update\x20<agent-name>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Resume\x20a\x20paused\x20journey','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--timezone\x20<tz>','--table','Show\x20journey\x20statistics','--attribute\x20[name]','Start\x20a\x20new\x20chat\x20session','--behavior\x20[name]','Parent\x20segment\x20management','desc','preAction','--subject\x20<subject>','parent-segment','--project\x20<name>','--from\x20<timestamp>','isTTY','workspace','trace','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Show\x20stats\x20for\x20specific\x20stage','logs','databases\x20[pattern]','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Export\x20journey(s)\x20as\x20YAML\x20files','Updated\x20schedule\x20option','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)',',\x20version\x20','--to\x20<timestamp>','list\x20[project]','Update\x20an\x20existing\x20agent','--plaintext\x20<text>','sql\x20[name]','--in\x20<name>','Clear\x20session\x20context','argumentDescription','command','--debug','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Interactive\x20chat\x20selector','buildTime','--description\x20<desc>','HTML\x20template\x20content','--rule-file\x20<file>','Maximum\x20recursion\x20depth\x20(default:\x2010)','Master\x20database\x20name','Updated\x20timezone','stderr','--tsv','database','-y,\x20--yes','Editor\x20type','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','logLevel','kill','--dry-run','\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','proxy','Delete\x20an\x20LLM\x20project','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--status\x20<status>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','--rule\x20<json>','--parent-segment\x20<name>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--workspace\x20<name>','Setup\x20API\x20key\x20authentication\x20interactively','forEach','--full','summary','--name\x20<new_name>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','.dev','setup','--include-retried','-o,\x20--output\x20<folder>','pause\x20<name-or-id>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','us01','Skip\x20validation\x20of\x20.dig\x20files','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','attempt','validate\x20[file]','show\x20<name-or-id>','sessions\x20[project]','catch','Show\x20segment\x20schema\x20(column\x20types)','Show\x20workspace\x20details','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','GET','isArray','statusline','Describe\x20table\x20schema','Commands:','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Starter\x20message','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','[DEPRECATED]\x20Segment\x20folder\x20management','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','claude-4.5-sonnet','--limit\x20<rows>','delete\x20<name-or-id>','Master\x20table\x20name','get','Show\x20email\x20template\x20details','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Show\x20master\x20table\x20sample\x20data','show\x20[name]','push\x20[file]','--starter-message\x20<text>','validate\x20[name]','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--table\x20<table>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--resume-from\x20<task>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','-w,\x20--web','requiredOption','restore\x20<folder>','workflows\x20[project]','INFO','-1d','option','use\x20<name>','--type\x20<type>','Workflow\x20attempt\x20management','jobs','19890VHqBfw','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','status','Show\x20only\x20master\x20table\x20validation','fields\x20[parent_name]','--color','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Submit\x20a\x20job','Show\x20web\x20console\x20URLs\x20for\x20segments','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Updated\x20description','retry','folder','Continue\x20most\x20recent\x20conversation','--no-proxy','../package.json','--catalog\x20<catalog>','Run\x20Trino\x20query\x20with\x20streaming\x20results','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','argumentTerm','subcommandDescription','\x20-\x20built\x20','--system-prompt\x20<text>','Get\x20job\x20results','duplicate\x20<name-or-id>','Open\x20segment\x20in\x20web\x20browser','--interval\x20<range>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','create\x20<name>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--add-behaviors\x20<json>','--limit\x20<number>','list\x20[path]','Email\x20subject\x20template','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Save\x20output\x20to\x20file','Parent\x20segment\x20description','claude\x20[args...]','Agent\x20name','activations\x20<segment_name>','--add-attributes\x20<json>','push','--stage\x20<name>','LLM\x20project\x20management','then','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','site','4566592OaJPxC','Revision\x20name\x20(default:\x20timestamp)','Show\x20campaign\x20details','list\x20[pattern]','Reason\x20for\x20killing\x20the\x20attempt','--editor-type\x20<type>','commandUsage','1581293SrsLCq','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--job-type\x20<type>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Add\x20attributes\x20from\x20JSON\x20file','--params\x20<json>','Pull\x20child\x20segments\x20to\x20YAML\x20files','Add\x20attributes\x20as\x20JSON\x20string','597110BgmaKl','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Add\x20behaviors\x20from\x20JSON\x20file','hidden','context','--database\x20<db>','CDP\x20segment\x20management\x20commands','--timeout\x20<seconds>','--trace','Show\x20agent\x20details','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','--enriched','--force','show\x20[table]','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Show\x20journey\x20details','Resume\x20a\x20paused\x20campaign','update\x20<segment_name>','argv','projects\x20[pattern]','set','Request\x20body\x20as\x20JSON\x20string','Force\x20retry\x20even\x20if\x20not\x20failed','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--reason\x20<text>','-p,\x20--profile\x20<name>','Include\x20execution\x20statistics','--output\x20<file>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','template','download\x20<project-name>\x20[output-dir]','LLM\x20agent\x20management','[action]','use\x20[resource]\x20[value]','delete\x20<name>','--schedule-type\x20<type>','Database\x20to\x20use\x20(overrides\x20context)','chats','New\x20campaign\x20name','description','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','session','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--master','exit','201MfdYgj','parents\x20[pattern]','fields\x20[name]','Email\x20sender\x20ID\x20for\x20delivery','--agent\x20<ref>','Workspace\x20name','--last','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','update\x20<name-or-id>','segments\x20[path]','jsonl','registeredArguments','chat\x20[message...]','--port\x20<number>','Skip\x20confirmation\x20prompt','Resume\x20from\x20specific\x20task\x20(retry)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','tdx\x20','Task\x20name\x20for\x20logs\x20action','includes','-d,\x20--database\x20<database>','Set\x20or\x20show\x20parent\x20segment\x20context'];a2_0x3376=function(){return _0x499322;};return a2_0x3376();}connectionCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x320))['description'](a2_0xf6e12a(0x195))[a2_0xf6e12a(0x18b)](connectionListAction),program[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1a6),{'hidden':!![]})['description'](a2_0xf6e12a(0x2e3))[a2_0xf6e12a(0x18b)](connectionListAction),connectionCmd['command'](a2_0xf6e12a(0x348))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x177))[a2_0xf6e12a(0x18b)](async(_0xc2066f,_0x4e6197)=>{const _0x21154e=a2_0xf6e12a,_0x1d2222=new ConnectionShowCommand(),_0x218784=program[_0x21154e(0x18f)](),_0x2e9cd0=await createTDXInstance(_0x218784),_0xb3cd67=await _0x1d2222[_0x21154e(0x369)]({'options':{..._0x218784,..._0x4e6197},'args':[_0xc2066f],'tdx':_0x2e9cd0});process['exit'](_0xb3cd67);});const journeyCmd=program['command'](a2_0xf6e12a(0x1d9))['description'](a2_0xf6e12a(0x18e));journeyCmd[a2_0xf6e12a(0x228)]('list\x20[pattern]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x172))[a2_0xf6e12a(0x18b)](async(_0x5193d4,_0x16cde8)=>{const _0x9d00a1=a2_0xf6e12a,_0x462c1b=new JourneyListCommand(),_0x158e3a=program[_0x9d00a1(0x18f)](),_0x355453=await createTDXInstance(_0x158e3a),_0x15fa32=await _0x462c1b[_0x9d00a1(0x369)]({'options':{..._0x158e3a,..._0x16cde8},'args':_0x5193d4?[_0x5193d4]:[],'tdx':_0x355453});process[_0x9d00a1(0x2f5)](_0x15fa32);}),journeyCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x36d))[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x2d6))[a2_0xf6e12a(0x282)]('--include-stats',a2_0xf6e12a(0x2e1))[a2_0xf6e12a(0x18b)](async(_0x55b4ee,_0x13aac8)=>{const _0x18eb29=a2_0xf6e12a,_0x524c37=new JourneyViewCommand(),_0x22962a=program[_0x18eb29(0x18f)](),_0x11809f=await createTDXInstance(_0x22962a),_0xc06c3f=await _0x524c37[_0x18eb29(0x369)]({'options':{..._0x22962a,..._0x13aac8},'args':[_0x55b4ee],'tdx':_0x11809f});process[_0x18eb29(0x2f5)](_0xc06c3f);}),journeyCmd[a2_0xf6e12a(0x228)]('stats\x20<name-or-path>')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x206))['option'](a2_0xf6e12a(0x2b3),a2_0xf6e12a(0x216))[a2_0xf6e12a(0x18b)](async(_0x1f381d,_0x42cc28)=>{const _0x5c6d8b=a2_0xf6e12a,_0x54711c=new JourneyStatsCommand(),_0x35638e=program[_0x5c6d8b(0x18f)](),_0x1756c3=await createTDXInstance(_0x35638e),_0x3c0627=await _0x54711c[_0x5c6d8b(0x369)]({'options':{..._0x35638e,..._0x42cc28},'args':[_0x1f381d],'tdx':_0x1756c3});process[_0x5c6d8b(0x2f5)](_0x3c0627);}),journeyCmd[a2_0xf6e12a(0x228)]('pause\x20<name-or-path>')[a2_0xf6e12a(0x2ef)]('Pause\x20a\x20running\x20journey')['action'](async(_0x262d4b,_0xd19fa0)=>{const _0x37f515=a2_0xf6e12a,_0x242f34=new JourneyPauseCommand(),_0x5ed426=program['opts'](),_0x2e807f=await createTDXInstance(_0x5ed426),_0x9c5f2b=await _0x242f34[_0x37f515(0x369)]({'options':{..._0x5ed426,..._0xd19fa0},'args':[_0x262d4b],'tdx':_0x2e807f});process['exit'](_0x9c5f2b);}),journeyCmd[a2_0xf6e12a(0x228)](a2_0xf6e12a(0x1b2))['description'](a2_0xf6e12a(0x201))[a2_0xf6e12a(0x18b)](async(_0x491254,_0x32e28b)=>{const _0x190d7b=a2_0xf6e12a,_0x47ccd=new JourneyResumeCommand(),_0xc25129=program[_0x190d7b(0x18f)](),_0x2ddb74=await createTDXInstance(_0xc25129),_0x31641c=await _0x47ccd['run']({'options':{..._0xc25129,..._0x32e28b},'args':[_0x491254],'tdx':_0x2ddb74});process[_0x190d7b(0x2f5)](_0x31641c);}),journeyCmd[a2_0xf6e12a(0x228)]('pull\x20[name]')[a2_0xf6e12a(0x2ef)](a2_0xf6e12a(0x21c))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x236),a2_0xf6e12a(0x305))[a2_0xf6e12a(0x282)](a2_0xf6e12a(0x23b),a2_0xf6e12a(0x16a))[a2_0xf6e12a(0x18b)](async(_0x545d29,_0xd9a806)=>{const _0x1eca5b=a2_0xf6e12a,_0x4d1b02=new JourneyPullCommand(),_0x1d0f26=program[_0x1eca5b(0x18f)](),_0x2972e5=await createTDXInstance(_0x1d0f26),_0x22fb35=await _0x4d1b02[_0x1eca5b(0x369)]({'options':{..._0x1d0f26,..._0xd9a806},'args':_0x545d29?[_0x545d29]:[],'tdx':_0x2972e5});process[_0x1eca5b(0x2f5)](_0x22fb35);});export{program};export function runCLI(){const _0xc6281=a2_0xf6e12a;program[_0xc6281(0x33d)](process[_0xc6281(0x2d9)]);!process[_0xc6281(0x2d9)][_0xc6281(0x1bd)](0x2)[_0xc6281(0x19f)]&&program[_0xc6281(0x35b)]();const _0x4ed489=packageJson[_0xc6281(0x35c)];process[_0xc6281(0x233)][_0xc6281(0x211)]&&process[_0xc6281(0x2d9)]['length']>0x2&&!_0x4ed489[_0xc6281(0x30b)](_0xc6281(0x24f))&&checkForUpdate(_0x4ed489)[_0xc6281(0x2b5)](_0x11799a=>{_0x11799a&&displayUpdateNotification(_0x11799a);})[_0xc6281(0x25c)](()=>{});}
1
+ const a2_0x3b4d01=a2_0x37de;(function(_0x2845ee,_0x4839f5){const _0x5aadaa=a2_0x37de,_0x7e0fd1=_0x2845ee();while(!![]){try{const _0x2351fa=parseInt(_0x5aadaa(0x19a))/0x1*(parseInt(_0x5aadaa(0x15f))/0x2)+parseInt(_0x5aadaa(0x185))/0x3*(-parseInt(_0x5aadaa(0x29f))/0x4)+parseInt(_0x5aadaa(0x237))/0x5*(parseInt(_0x5aadaa(0x1f2))/0x6)+parseInt(_0x5aadaa(0x317))/0x7*(-parseInt(_0x5aadaa(0x358))/0x8)+parseInt(_0x5aadaa(0x268))/0x9+-parseInt(_0x5aadaa(0x180))/0xa*(parseInt(_0x5aadaa(0x28e))/0xb)+-parseInt(_0x5aadaa(0x209))/0xc*(-parseInt(_0x5aadaa(0x348))/0xd);if(_0x2351fa===_0x4839f5)break;else _0x7e0fd1['push'](_0x7e0fd1['shift']());}catch(_0x353963){_0x7e0fd1['push'](_0x7e0fd1['shift']());}}}(a2_0x9969,0x795bf));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,'../package.json'),a2_0x3b4d01(0x1a7)));let buildInfo={};try{buildInfo=JSON[a2_0x3b4d01(0x1e2)](readFileSync(join(__dirname,a2_0x3b4d01(0x31d)),a2_0x3b4d01(0x1a7)));}catch{}if(process[a2_0x3b4d01(0x2da)][a2_0x3b4d01(0x294)](a2_0x3b4d01(0x25c))){let versionOutput='tdx\x20'+packageJson['version'];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo[a2_0x3b4d01(0x217)]+')'),buildInfo[a2_0x3b4d01(0x24e)]&&(versionOutput+=a2_0x3b4d01(0x324)+buildInfo[a2_0x3b4d01(0x24e)]),console[a2_0x3b4d01(0x35f)](versionOutput),process[a2_0x3b4d01(0x292)](0x0);}const program=new Command();let description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x3b4d01(0x217)]?description+=a2_0x3b4d01(0x1af)+packageJson[a2_0x3b4d01(0x2af)]+'\x20('+buildInfo[a2_0x3b4d01(0x217)]+')':description+=a2_0x3b4d01(0x1af)+packageJson[a2_0x3b4d01(0x2af)];program['name']('tdx')[a2_0x3b4d01(0x178)](description),program[a2_0x3b4d01(0x175)]('-p,\x20--profile\x20<name>',a2_0x3b4d01(0x1fb))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x253),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x3b4d01(0x249))['option'](a2_0x3b4d01(0x2bb),a2_0x3b4d01(0x2b6))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x362),a2_0x3b4d01(0x275))['option']('--json','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2b5),a2_0x3b4d01(0x213))['option'](a2_0x3b4d01(0x199),a2_0x3b4d01(0x316))['option']('--output\x20<file>',a2_0x3b4d01(0x354))[a2_0x3b4d01(0x175)]('--limit\x20<number>',a2_0x3b4d01(0x2fc))['option'](a2_0x3b4d01(0x239),a2_0x3b4d01(0x1aa),![])[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x299),a2_0x3b4d01(0x2cb),![])['option']('-v,\x20--verbose',a2_0x3b4d01(0x2be),![])[a2_0x3b4d01(0x175)]('--debug','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1f4),a2_0x3b4d01(0x25f))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x22d),a2_0x3b4d01(0x263),'30')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x172),a2_0x3b4d01(0x24d),![])[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x341),a2_0x3b4d01(0x242),![])[a2_0x3b4d01(0x175)]('--session\x20<id>',a2_0x3b4d01(0x1b1))['option'](a2_0x3b4d01(0x1f9),'Database\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x3b4d01(0x31a),a2_0x3b4d01(0x2df))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2e7),a2_0x3b4d01(0x163))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2c2),a2_0x3b4d01(0x30a)),program[a2_0x3b4d01(0x1fc)]({'formatHelp':(_0x1473fd,_0x2948e3)=>{const _0x5dfe6f=a2_0x3b4d01,_0x5ad832=_0x2948e3['padWidth'](_0x1473fd,_0x2948e3),_0x3a8691=0x2,_0x142024=0x2;function _0x14e2ec(_0x7fc16d){const _0x4384b2=a2_0x37de,_0x4f80cf=_0x7fc16d;return!!(_0x4f80cf[_0x4384b2(0x28f)]||_0x4f80cf[_0x4384b2(0x2ec)]);}function _0x15df3b(_0x645ba2,_0x1f6e35){const _0x722615=a2_0x37de;if(_0x1f6e35){const _0x15e8a2=''+_0x645ba2[_0x722615(0x25d)](_0x5ad832+_0x142024)+_0x1f6e35;return _0x15e8a2;}return _0x645ba2;}function _0x393b36(_0x3ee3d7){const _0x19eefa=a2_0x37de;return _0x3ee3d7[_0x19eefa(0x2d7)]('\x0a')['replace'](/^/gm,'\x20'[_0x19eefa(0x2eb)](_0x3a8691));}const _0x364a81=[];_0x364a81['push']('Usage:\x20'+_0x2948e3[_0x5dfe6f(0x1d1)](_0x1473fd));const _0x19daa6=_0x2948e3['commandDescription'](_0x1473fd);_0x19daa6&&(_0x364a81['push'](''),_0x364a81[_0x5dfe6f(0x28a)](_0x19daa6));const _0x493ba5=_0x1473fd[_0x5dfe6f(0x26e)][_0x5dfe6f(0x21d)](_0x426744=>!_0x14e2ec(_0x426744));if(_0x493ba5['length']>0x0){if(_0x1473fd[_0x5dfe6f(0x1ae)]()===_0x5dfe6f(0x1c9)){const _0x2d3d18=_0x1473fd[_0x5dfe6f(0x2dc)](),_0xa286b0=!_0x2d3d18[_0x5dfe6f(0x1cc)]&&process[_0x5dfe6f(0x225)][_0x5dfe6f(0x25e)],_0x54f223=COMMAND_CATEGORIES,_0x4db6b0=(_0x1989f7,_0xf7a6c6)=>_0xa286b0?_0xf7a6c6(_0x1989f7):_0x1989f7,_0x54220c=new Map();_0x493ba5[_0x5dfe6f(0x2de)](_0x3cfb77=>{const _0x5a5e05=_0x5dfe6f;_0x54220c[_0x5a5e05(0x2e9)](_0x3cfb77[_0x5a5e05(0x1ae)](),_0x3cfb77);}),_0x54f223[_0x5dfe6f(0x2de)](_0x1e81a9=>{const _0x2aaf5f=_0x5dfe6f,_0x36e3d5=_0x1e81a9[_0x2aaf5f(0x26e)]['flatMap'](_0x4fdfe3=>_0x54220c[_0x2aaf5f(0x26d)](_0x4fdfe3)??[]);if(_0x36e3d5[_0x2aaf5f(0x36e)]>0x0){_0x364a81[_0x2aaf5f(0x28a)](''),_0x364a81[_0x2aaf5f(0x28a)](_0x4db6b0(_0x1e81a9[_0x2aaf5f(0x1ae)]+':',_0x1e81a9[_0x2aaf5f(0x270)]));const _0x7fca32=_0x36e3d5[_0x2aaf5f(0x153)](_0x49b553=>{const _0x4584d6=_0x2aaf5f,_0xa1044=_0x2948e3[_0x4584d6(0x306)](_0x49b553),_0x101cb3=_0x2948e3[_0x4584d6(0x2f1)](_0x49b553);return _0x15df3b(_0xa1044,_0x101cb3);});_0x364a81[_0x2aaf5f(0x28a)](_0x393b36(_0x7fca32));}}),_0x364a81[_0x5dfe6f(0x28a)](''),_0x364a81[_0x5dfe6f(0x28a)](_0x5dfe6f(0x2c0));}else{const _0x51a9a4=_0x493ba5['map'](_0x5065c2=>{const _0x2fc694=_0x5dfe6f,_0x45f047=_0x2948e3[_0x2fc694(0x306)](_0x5065c2),_0x1c92a8=_0x2948e3[_0x2fc694(0x2f1)](_0x5065c2);return _0x15df3b(_0x45f047,_0x1c92a8);});_0x364a81[_0x5dfe6f(0x28a)](''),_0x364a81['push'](_0x5dfe6f(0x1d5)),_0x364a81[_0x5dfe6f(0x28a)](_0x393b36(_0x51a9a4));}}const _0x32766f=_0x1473fd[_0x5dfe6f(0x247)][_0x5dfe6f(0x21d)](_0x5b873a=>!_0x14e2ec(_0x5b873a));if(_0x32766f[_0x5dfe6f(0x36e)]>0x0){const _0x37ae4d=_0x32766f['map'](_0x12b7f5=>{const _0x55cff4=_0x5dfe6f,_0x514fec=_0x2948e3[_0x55cff4(0x241)](_0x12b7f5),_0x338422=_0x2948e3['optionDescription'](_0x12b7f5);return _0x15df3b(_0x514fec,_0x338422);});_0x364a81['push'](''),_0x364a81[_0x5dfe6f(0x28a)](_0x5dfe6f(0x2ed)),_0x364a81[_0x5dfe6f(0x28a)](_0x393b36(_0x37ae4d));}const _0x356efd=(_0x1473fd[_0x5dfe6f(0x1c1)]||[])['filter'](_0x1468ab=>!_0x14e2ec(_0x1468ab));if(_0x356efd[_0x5dfe6f(0x36e)]>0x0){const _0x1f208f=_0x356efd[_0x5dfe6f(0x153)](_0x2fdef9=>{const _0x158445=_0x5dfe6f,_0x44e183=_0x2948e3[_0x158445(0x2cd)](_0x2fdef9),_0x2bc88c=_0x2948e3[_0x158445(0x27a)](_0x2fdef9);return _0x15df3b(_0x44e183,_0x2bc88c);});_0x364a81[_0x5dfe6f(0x28a)](''),_0x364a81[_0x5dfe6f(0x28a)]('Arguments:'),_0x364a81['push'](_0x393b36(_0x1f208f));}return _0x364a81['join']('\x0a');},'subcommandTerm':_0x479385=>{const _0x31a04c=a2_0x3b4d01,_0x37ca95=(_0x479385[_0x31a04c(0x1c1)]||[])[_0x31a04c(0x153)](_0x410386=>_0x410386[_0x31a04c(0x1c5)]?'<'+_0x410386[_0x31a04c(0x1ae)]()+'>':'['+_0x410386[_0x31a04c(0x1ae)]()+']')[_0x31a04c(0x2d7)]('\x20'),_0x1cefcc=_0x479385[_0x31a04c(0x273)](),_0x4bd5e7=_0x1cefcc[_0x31a04c(0x36e)]>0x0?_0x479385[_0x31a04c(0x1ae)]()+',\x20'+_0x1cefcc[_0x31a04c(0x2d7)](',\x20'):_0x479385[_0x31a04c(0x1ae)]();return _0x37ca95?_0x4bd5e7+'\x20'+_0x37ca95:_0x4bd5e7;}}),program[a2_0x3b4d01(0x240)]('preAction',_0x47c6ab=>{const _0x501273=a2_0x3b4d01,_0x122b78=_0x47c6ab[_0x501273(0x2dc)]();if(!_0x122b78[_0x501273(0x207)]){if(_0x122b78[_0x501273(0x1f5)])_0x122b78[_0x501273(0x207)]='table';else{if(_0x122b78[_0x501273(0x19f)])_0x122b78[_0x501273(0x207)]=_0x501273(0x19f);else{if(_0x122b78[_0x501273(0x2c3)])_0x122b78[_0x501273(0x207)]='jsonl';else _0x122b78[_0x501273(0x1e0)]&&(_0x122b78[_0x501273(0x207)]='tsv');}}}_0x122b78['in']&&!_0x122b78[_0x501273(0x1e4)]&&(_0x122b78[_0x501273(0x1e4)]=_0x122b78['in']);if(_0x122b78[_0x501273(0x227)])_0x122b78[_0x501273(0x314)]=LogLevel['TRACE'];else{if(_0x122b78[_0x501273(0x212)])_0x122b78[_0x501273(0x314)]=LogLevel[_0x501273(0x228)];else _0x122b78['logLevel']===undefined&&(_0x122b78['logLevel']=LogLevel[_0x501273(0x34a)]);}});async function createTDXInstance(_0x3d43a0){const _0x6c7ffc=a2_0x3b4d01,_0x2b025f=await GlobalContext[_0x6c7ffc(0x19b)](_0x3d43a0);return _0x2b025f[_0x6c7ffc(0x307)](_0x3d43a0),TDX[_0x6c7ffc(0x1dc)]({'site':_0x2b025f['site'],'apiKey':_0x2b025f[_0x6c7ffc(0x2f9)],'logLevel':_0x2b025f[_0x6c7ffc(0x314)],'profile':_0x2b025f['profile']});}const databaseCmd=program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1e4))[a2_0x3b4d01(0x369)]('db')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x26a)),databaseListAction=async(_0xe20120,_0x580f16)=>{const _0x37437d=a2_0x3b4d01,_0x21ccf7=new DatabasesCommand(),_0x3c851a=program[_0x37437d(0x2dc)](),_0xdf3a57=await createTDXInstance(_0x3c851a),_0x3fd810=await _0x21ccf7[_0x37437d(0x26c)]({'options':{..._0x3c851a,..._0x580f16},'args':_0xe20120?[_0xe20120]:[],'tdx':_0xdf3a57});process['exit'](_0x3fd810);};function a2_0x37de(_0x42e1f7,_0x4169b4){_0x42e1f7=_0x42e1f7-0x14b;const _0x9969f2=a2_0x9969();let _0x37de35=_0x9969f2[_0x42e1f7];return _0x37de35;}databaseCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1b8))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x224))[a2_0x3b4d01(0x162)](databaseListAction),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2f0),{'hidden':!![]})[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1be))[a2_0x3b4d01(0x162)](databaseListAction),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2e8))['description']('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')['option'](a2_0x3b4d01(0x2e1),'Agent\x20reference\x20(project-name/agent-name)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x340),a2_0x3b4d01(0x36c))['option']('--temperature\x20<n>',a2_0x3b4d01(0x2d6))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x16d),a2_0x3b4d01(0x315))[a2_0x3b4d01(0x162)](async(_0x23a908,_0x2bec28)=>{const _0x36bd54=a2_0x3b4d01,_0x564d16=new ChatCommand(),_0x517432=program['opts'](),_0x322e7e=await createTDXInstance(_0x517432),_0x520b2b=await _0x564d16[_0x36bd54(0x26c)]({'options':{..._0x517432,..._0x2bec28},'args':_0x23a908,'tdx':_0x322e7e});process[_0x36bd54(0x292)](_0x520b2b);});const apiCmd=program[a2_0x3b4d01(0x350)]('api\x20[endpoint]')[a2_0x3b4d01(0x1cf)](a2_0x3b4d01(0x243))['addHelpText'](a2_0x3b4d01(0x1c8),a2_0x3b4d01(0x2ad))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x26f),a2_0x3b4d01(0x1ad),a2_0x3b4d01(0x1b3))['option'](a2_0x3b4d01(0x20b),a2_0x3b4d01(0x1ee))[a2_0x3b4d01(0x175)]('-f,\x20--file\x20<path>',a2_0x3b4d01(0x1c2))['option'](a2_0x3b4d01(0x18d),a2_0x3b4d01(0x222),(_0x1e030a,_0x221018)=>{return _0x221018?[..._0x221018,_0x1e030a]:[_0x1e030a];})['option'](a2_0x3b4d01(0x1fd),a2_0x3b4d01(0x28d),'td')['action'](async(_0x4d3adf,_0x11b8b1)=>{const _0x41c753=a2_0x3b4d01;if(!_0x4d3adf){apiCmd[_0x41c753(0x308)]();return;}const _0xb9560a=new ApiCommand(),_0x3bce8d=program['opts'](),_0x1824de=await createTDXInstance(_0x3bce8d),_0x44653d=await _0xb9560a[_0x41c753(0x26c)]({'options':{..._0x3bce8d,..._0x11b8b1},'args':[_0x4d3adf],'tdx':_0x1824de});process[_0x41c753(0x292)](_0x44653d);}),tableCmd=program['command'](a2_0x3b4d01(0x1f5))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x21b)),tableListAction=async(_0x57cb0b,_0x189063)=>{const _0x521490=a2_0x3b4d01,_0x39482b=new TablesCommand(),_0x404105=program[_0x521490(0x2dc)](),_0x1280c0=await createTDXInstance(_0x404105);_0x189063['in']&&(_0x189063['database']=_0x189063['in']);const _0x6962c9=await _0x39482b[_0x521490(0x26c)]({'options':{..._0x404105,..._0x189063},'args':_0x57cb0b?[_0x57cb0b]:[],'tdx':_0x1280c0});process[_0x521490(0x292)](_0x6962c9);};tableCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1b8))['description'](a2_0x3b4d01(0x21e))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1e9),a2_0x3b4d01(0x36b))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1f7),a2_0x3b4d01(0x2df))[a2_0x3b4d01(0x162)](tableListAction),program['command'](a2_0x3b4d01(0x32a),{'hidden':!![]})[a2_0x3b4d01(0x178)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1e9),a2_0x3b4d01(0x36b))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1f7),a2_0x3b4d01(0x2df))[a2_0x3b4d01(0x162)](tableListAction),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x161))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x16b))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1e9),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option'](a2_0x3b4d01(0x1f7),a2_0x3b4d01(0x2df))[a2_0x3b4d01(0x162)](async(_0x471f71,_0x90b9d8)=>{const _0x5a9c63=a2_0x3b4d01,_0x4eb547=new ShowCommand(),_0x266203=program[_0x5a9c63(0x2dc)](),_0xd68022=await createTDXInstance(_0x266203);_0x90b9d8['in']&&(_0x90b9d8['database']=_0x90b9d8['in']);const _0x3d5fc0=await _0x4eb547['run']({'options':{..._0x266203,..._0x90b9d8},'args':_0x471f71?[_0x471f71]:[],'tdx':_0xd68022});process[_0x5a9c63(0x292)](_0x3d5fc0);}),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2c7))[a2_0x3b4d01(0x369)](a2_0x3b4d01(0x24f))[a2_0x3b4d01(0x178)]('Describe\x20table\x20schema')[a2_0x3b4d01(0x175)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1f7),a2_0x3b4d01(0x2df))[a2_0x3b4d01(0x162)](async(_0x1bc7cd,_0x708562)=>{const _0x4e1571=a2_0x3b4d01,_0x31d3f8=new DescribeCommand(),_0x1917b6=program['opts'](),_0x12ae80=await createTDXInstance(_0x1917b6);_0x708562['in']&&(_0x708562[_0x4e1571(0x1e4)]=_0x708562['in']);const _0x5e2114=await _0x31d3f8[_0x4e1571(0x26c)]({'options':{..._0x1917b6,..._0x708562},'args':_0x1bc7cd?[_0x1bc7cd]:[],'tdx':_0x12ae80});process['exit'](_0x5e2114);}),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2b9))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x221))['option']('-d,\x20--database\x20<database>',a2_0x3b4d01(0x2b0))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1f7),a2_0x3b4d01(0x2df))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x179),'Trino\x20catalog\x20(default:\x20td)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x372),a2_0x3b4d01(0x193))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1ca),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x3b4d01(0x162)](async(_0x5ac7ce,_0x5dc18f)=>{const _0x574a74=a2_0x3b4d01,_0xe0a81b=new QueryCommand(),_0x34cb3d=program[_0x574a74(0x2dc)](),_0x2b30ac=await createTDXInstance(_0x34cb3d);_0x5dc18f['in']&&(_0x5dc18f[_0x574a74(0x1e4)]=_0x5dc18f['in']);const _0x349965=await _0xe0a81b['run']({'options':{..._0x34cb3d,..._0x5dc18f},'args':_0x5ac7ce?[_0x5ac7ce]:[],'tdx':_0x2b30ac});process[_0x574a74(0x292)](_0x349965);});const segmentCmd=program[a2_0x3b4d01(0x350)]('segment')[a2_0x3b4d01(0x369)]('sg')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x19c)),segmentListAction=async(_0x435e91,_0x4e6e1f)=>{const _0x37afb2=a2_0x3b4d01,_0xec7bdd=new SegmentsCommand(),_0x2e9231=program['opts'](),_0x53793f=await createTDXInstance(_0x2e9231),_0x296f5e=await _0xec7bdd['run']({'options':{..._0x2e9231,..._0x4e6e1f},'args':_0x435e91?[_0x435e91]:[],'tdx':_0x53793f});process[_0x37afb2(0x292)](_0x296f5e);};segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2aa))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x244))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x18e),a2_0x3b4d01(0x20f))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x34e),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2fd),a2_0x3b4d01(0x27f))[a2_0x3b4d01(0x162)](segmentListAction),program['command'](a2_0x3b4d01(0x259),{'hidden':!![]})[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1ea))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x18e),a2_0x3b4d01(0x20f))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x34e),a2_0x3b4d01(0x1a1),'10')[a2_0x3b4d01(0x175)]('-w,\x20--web','Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x3b4d01(0x162)](segmentListAction),segmentCmd['command'](a2_0x3b4d01(0x2d9),{'hidden':!![]})['description'](a2_0x3b4d01(0x298))['action'](async(_0x4110cd,_0x53ed49)=>{const _0x1e1f60=a2_0x3b4d01,_0x3c47c2=new SegmentUseCommand(),_0x17d23e=program[_0x1e1f60(0x2dc)](),_0x3fcbd2=await createTDXInstance(_0x17d23e),_0x204fb3=await _0x3c47c2['run']({'options':{..._0x17d23e,..._0x53ed49},'args':[_0x4110cd],'tdx':_0x3fcbd2});process[_0x1e1f60(0x292)](_0x204fb3);});function a2_0x9969(){const _0x374c2b=['[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--version','padEnd','isTTY','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Maximum\x20tool\x20iterations\x20(default:\x204)','view\x20[name]','--schedule-option\x20<value>','Set\x20operation\x20timeout\x20in\x20seconds','.dev','info\x20[segment_name]','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Show\x20segment\x20schema\x20(column\x20types)','6382512YAEcCU','Add\x20attributes\x20as\x20JSON\x20string','Database\x20management\x20commands','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','run','get','commands','-X,\x20--method\x20<method>','colorFn','Limit\x20number\x20of\x20rows','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','aliases','--editor-type\x20<type>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','--plaintext\x20<text>','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Email\x20template\x20management','argumentDescription','--last','show\x20<folder_ref>','--no-proxy','tasks','Show\x20web\x20console\x20URLs\x20for\x20segments','update\x20<name-or-id>','--html\x20<html>','Parent\x20segment\x20management','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','desc\x20[name]','--interval\x20<range>','Email\x20sender\x20ID\x20for\x20delivery','logs','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--system-prompt\x20<text>','push','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Editor\x20type','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','17468RvnXhK','_hidden','retry','--behavior\x20[name]','exit','--param\x20<key=value>','includes','-r,\x20--resume','pull\x20[parent_or_file]','proxy','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--no-color','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','show\x20<name-or-id>','--project\x20<name>','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','--name\x20<new-name>','524cxBUgv','Pull\x20child\x20segments\x20to\x20YAML\x20files','[options]\x20--\x20[claude-code-args...]','agent','--table\x20<table>','delete\x20<name>','Get\x20job\x20results','--subject\x20<subject>','Resume\x20a\x20conversation\x20(shows\x20selector)','Clear\x20session\x20context','Email\x20subject\x20template','list\x20[path]','--email-sender-id\x20<id>','profiles','\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','use\x20<name>','version','Database\x20to\x20query\x20(default:\x20information_schema)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Output\x20folder\x20(default:\x20{project_name}.llm)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','use\x20<project-name>','--jsonl','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','push\x20[target]','Unknown\x20action:\x20','query\x20[sql]','--to\x20<timestamp>','--format\x20<format>','Launch\x20a\x20campaign','Filtering\x20rule\x20from\x20JSON\x20file','Enable\x20verbose\x20logging','Show\x20email\x20template\x20details','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','preview\x20[file]','--llm-project\x20<name>','jsonl','LLM\x20agent\x20management','Attempt\x20ID','--schedule-type\x20<type>','describe\x20[table]','Revision\x20name\x20(default:\x20timestamp)','-1d','statusline','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','argumentTerm','then','--status\x20<status>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','workspaces\x20[pattern]','Continue\x20most\x20recent\x20conversation','run\x20[name]','Temperature\x20(0.0-2.0,\x20default:\x200.7)','join','agents\x20[pattern]','use\x20<path>','argv','submit\x20[query]','opts','create\x20<name>','forEach','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','--agent\x20<ref>','show\x20[segment_name]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Output\x20file\x20path','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','requiredOption','--parent-segment\x20<name>','chat\x20[message...]','set','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','repeat','hidden','Options:','--skip-validation','list\x20[project]','databases\x20[pattern]','subcommandDescription','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','parent_segment','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','retry\x20<session-id>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','apiKey','delete\x20<project-name-or-id>','--behaviors\x20<json>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','-w,\x20--web','--include-retried','LLM\x20project\x20management','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Workspace\x20description','Move\x20to\x20folder','--revision\x20<revision>','backup\x20<name>','--customer-group\x20<json>','subcommandTerm','injectIntoOptions','help','--attribute\x20[name]','LLM\x20project\x20to\x20use\x20(overrides\x20context)','launch\x20<name-or-id>','Open\x20segment\x20in\x20web\x20browser','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','delete\x20<agent-name>','Set\x20or\x20show\x20parent\x20segment\x20context','Include\x20subtasks\x20in\x20tasks\x20output','Workspace\x20name','List\x20journeys\x20in\x20current\x20context','Create\x20segment\x20folder','logLevel','Start\x20a\x20new\x20chat\x20session','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','14gTPqhe','Master\x20database\x20name','update\x20<segment_name>','--in\x20<name>','-c,\x20--continue','New\x20workspace\x20name','build-info.json','use\x20[resource]\x20[value]','[action]','Campaign\x20description','Workspace\x20name\x20(required)','--database\x20<name>','sessions\x20[project]','\x20-\x20built\x20','Data\x20connection\x20management\x20(for\x20activations/exports)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','validate\x20[file]','Model\x20type\x20(default:\x20claude-4.5-sonnet)','folders\x20<parent_name>','tables\x20[pattern]','--master','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--include-subtasks','-o,\x20--output\x20<folder>','engage','workflows\x20[project]','User\x20management\x20commands','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Attributes\x20from\x20JSON\x20file','Duplicate\x20a\x20campaign','port','-o,\x20--output\x20<file>','Updated\x20timezone','usage','Pause\x20a\x20running\x20journey','Behaviors\x20as\x20JSON\x20string','--prompt\x20<text>','fields\x20[name]','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--model\x20<name>','-y,\x20--yes','pause\x20<name-or-path>','Delete\x20an\x20agent','Workflow\x20parameter\x20(repeatable)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','campaigns\x20[pattern]','push\x20[file]','1989QtxWIy','--description\x20<desc>','INFO','--database\x20<db>','workspace','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--max-depth\x20<depth>','Behaviors\x20from\x20JSON\x20file','command','CDP\x20Journey\x20Orchestration\x20commands','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','describe','Save\x20output\x20to\x20file','error','--segment\x20<path>','Updated\x20schedule\x20option','2298768rDBtIN','Include\x20retried\x20attempts\x20(for\x20list)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Interactive\x20chat\x20selector','--kind\x20<type>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','log','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','list','--table','Resume\x20from\x20specific\x20task','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','show\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','restore\x20<folder>','fields\x20[parent_name]','alias','addHelpText','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Model\x20name\x20(default:\x20claude-4.5-sonnet)','Output\x20as\x20JSON\x20Lines','length','Add\x20attributes\x20from\x20JSON\x20file','outputHelp','Pause\x20a\x20campaign','-f,\x20--file\x20<path>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--no-count-population','Resume\x20a\x20paused\x20campaign','trino','Campaign\x20name','activations\x20<segment_name>','--add-attributes-file\x20<file>','Resume\x20from\x20specific\x20task\x20(retry)','--folder\x20<name>','map','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','System\x20prompt/instructions\x20(default:\x20empty)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','show\x20<job-id>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','models','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','workflow','--add-attributes\x20<json>','update\x20<name>','35722brPMWl','--temperature\x20<n>','show\x20[table]','action','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Show\x20workspace\x20details','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','0.7','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','End\x20time\x20filter\x20(ISO\x208601\x20format)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','List\x20all\x20available\x20profiles','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','duplicate\x20<name-or-id>','--new','Show\x20master\x20table\x20sample\x20data','parent-segment','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Show\x20only\x20master\x20table\x20validation','--dry-run','Show\x20job\x20details','--stage\x20<name>','option','Template\x20name','Skip\x20population\x20counting','description','--catalog\x20<catalog>','kill\x20<job-id>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','allowUnknownOption','connections','Add\x20behaviors\x20from\x20JSON\x20file','1250AwEcgW','Parent\x20segment\x20description','[task-name]','--enriched','Skip\x20confirmation\x20prompt','8571bYdGPr','Output\x20file\x20path\x20(default:\x20<name>.yml)','--workspace\x20<name>','user','Submit\x20a\x20job','create\x20<parent_name>\x20<folder_name>','attempt','--agent\x20<name>','-H,\x20--header\x20<header>','-r,\x20--recursive','--force','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','pause\x20<name-or-id>','Read\x20SQL\x20query\x20from\x20file','--description\x20<text>','Plaintext\x20template\x20content','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','status','[DEPRECATED]\x20Segment\x20folder\x20management','--tsv','8WwaMnd','createAsync','CDP\x20segment\x20management\x20commands','delete\x20<name-or-id>','--delete','json','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Maximum\x20recursion\x20depth\x20(default:\x2010)','--json-columns\x20<cols>','List\x20available\x20LLM\x20models','information_schema','jobs','push\x20[parent_or_file]','utf-8','Create\x20an\x20email\x20template','Kill\x20a\x20job','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','llm','chats','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','name',',\x20version\x20','--attributes-file\x20<file>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Update\x20a\x20campaign','GET','Reason\x20for\x20killing\x20the\x20attempt','sql\x20[name]','pull\x20[name]','Delete\x20an\x20email\x20template','list\x20[pattern]','--max-tool-iterations\x20<n>','Setup\x20API\x20key\x20authentication\x20interactively','List\x20all\x20users\x20in\x20the\x20account','claude\x20[args...]','download\x20<project-name>\x20[output-dir]','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','create\x20<segment_name>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','registeredArguments','Read\x20request\x20body\x20from\x20file','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','required','--starter-message\x20<text>','Delete\x20a\x20campaign','after','tdx','--limit\x20<rows>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','noColor','Master\x20table\x20name','slice','summary','result\x20<job-id>','commandUsage','Project\x20description','folder','parents\x20[pattern]','Commands:','preview\x20[name]','--rule-file\x20<file>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Make\x20segment\x20invisible\x20(default:\x20visible)','New\x20template\x20name','--reason\x20<text>','create','parent','attempts\x20[project]','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','tsv','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','parse','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','database','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','show\x20<agent-name>','Show\x20journey\x20details','Output\x20as\x20JSON','-d,\x20--database\x20<database>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Show\x20connection\x20details\x20by\x20name','template','projects\x20[pattern]','Request\x20body\x20as\x20JSON\x20string','Include\x20execution\x20statistics','--customer-group-file\x20<file>','validate\x20[name]','4298694AvLozb','-u,\x20--use','--trace','table','Filtering\x20rule\x20as\x20JSON\x20string','--in\x20<database>','Folder\x20description','-d,\x20--database\x20<name>','sql\x20[segment_name]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','configureHelp','--type\x20<api_type>','--name\x20<new_name>','session','--behaviors-file\x20<file>','project','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','sonnet','Delete\x20a\x20workspace','campaign','--yes','format','--rule\x20<json>','5964lcBRFL','Campaign\x20type\x20(email\x20or\x20push)','--data\x20<data>','--json','--name\x20<name>','Workflow\x20session\x20management','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','view\x20[segment_name]','debug','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Attributes\x20as\x20JSON\x20string','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','gitRevision','--job-type\x20<type>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','auth','Table\x20management\x20commands','history\x20[chat-id]','filter','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Export\x20journey(s)\x20as\x20YAML\x20files','Add\x20behaviors\x20as\x20JSON\x20string','Run\x20Trino\x20query\x20with\x20streaming\x20results','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--start-at\x20<datetime>','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','stdout','--timezone\x20<tz>','trace','DEBUG','--from-task\x20<task>','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Resume\x20a\x20paused\x20journey','run\x20<workflow>','--timeout\x20<seconds>','kill','List\x20jobs','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','resume\x20<name-or-path>','isArray','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','--type\x20<type>','5uHzxDW','Include\x20retried\x20attempts','--color','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--clear','desc\x20[segment_name]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Agent\x20name','journey','hook','optionTerm','Skip\x20confirmation\x20prompts','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','setup','[attempt-id]','options','Open\x20parent\x20segment\x20in\x20web\x20browser','us01','attempt:','stats\x20<name-or-path>','--from\x20<timestamp>','Preview\x20operation\x20without\x20executing','buildTime','desc','Authentication\x20management','allowExcessArguments','Update\x20a\x20workspace','--site\x20<site>','users','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Campaign\x20management','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','segments\x20[path]','--params\x20<json>'];a2_0x9969=function(){return _0x374c2b;};return a2_0x9969();}const segmentViewAction=async(_0x16fede,_0x19b833)=>{const _0x2d8d58=a2_0x3b4d01,_0x1a2ab4=new SegmentViewCommand(),_0x529c75=program['opts'](),_0x35bc29=await createTDXInstance(_0x529c75),_0x3bf52e=await _0x1a2ab4[_0x2d8d58(0x26c)]({'options':{..._0x529c75,..._0x19b833},'args':_0x16fede?[_0x16fede]:[],'tdx':_0x35bc29});process[_0x2d8d58(0x292)](_0x3bf52e);};segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x211))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x230))[a2_0x3b4d01(0x175)]('-w,\x20--web',a2_0x3b4d01(0x30c))[a2_0x3b4d01(0x162)](segmentViewAction),segmentCmd['command'](a2_0x3b4d01(0x265),{'hidden':!![]})[a2_0x3b4d01(0x369)](a2_0x3b4d01(0x353))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2fd),a2_0x3b4d01(0x30c))[a2_0x3b4d01(0x178)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x3b4d01(0x162)](segmentViewAction),segmentCmd['command'](a2_0x3b4d01(0x23c))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x267))[a2_0x3b4d01(0x162)](async(_0x551897,_0x5666eb)=>{const _0x487a87=a2_0x3b4d01,_0x73518f=new SegmentDescCommand(),_0x4ce875=program[_0x487a87(0x2dc)](),_0x1b06c6=await createTDXInstance(_0x4ce875),_0x1fa694=await _0x73518f[_0x487a87(0x26c)]({'options':{..._0x4ce875,..._0x5666eb},'args':_0x551897?[_0x551897]:[],'tdx':_0x1b06c6});process[_0x487a87(0x292)](_0x1fa694);}),segmentCmd['command'](a2_0x3b4d01(0x2e2))[a2_0x3b4d01(0x178)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x3b4d01(0x162)](async(_0x9d3fe1,_0x40b548)=>{const _0x751260=a2_0x3b4d01,_0x5d1e8f=new SegmentShowCommand(),_0x50a9ab=program[_0x751260(0x2dc)](),_0x197132=await createTDXInstance(_0x50a9ab),_0xc5ce6f=await _0x5d1e8f['run']({'options':{..._0x50a9ab,..._0x40b548},'args':_0x9d3fe1?[_0x9d3fe1]:[],'tdx':_0x197132});process['exit'](_0xc5ce6f);}),segmentCmd['command'](a2_0x3b4d01(0x329),{'hidden':!![]})[a2_0x3b4d01(0x178)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')['action'](async(_0x34a72d,_0x2b4b5e)=>{const _0x1fb719=a2_0x3b4d01,_0x1d484f=new SegmentFolderListCommand(),_0x48b747=program['opts'](),_0x5be525=await createTDXInstance(_0x48b747),_0xb188c0=await _0x1d484f[_0x1fb719(0x26c)]({'options':{..._0x48b747,..._0x2b4b5e},'args':[_0x34a72d],'tdx':_0x5be525});process[_0x1fb719(0x292)](_0xb188c0);});const folderCmd=segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1d3),{'hidden':!![]})[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x198));folderCmd['command'](a2_0x3b4d01(0x27c))[a2_0x3b4d01(0x178)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x3b4d01(0x162)](async(_0x11ada5,_0x5c1d5f)=>{const _0xf6d4bf=a2_0x3b4d01,_0x50c00f=new SegmentFolderShowCommand(),_0x592131=program[_0xf6d4bf(0x2dc)](),_0x385375=await createTDXInstance(_0x592131),_0x4557ee=await _0x50c00f['run']({'options':{..._0x592131,..._0x5c1d5f},'args':[_0x11ada5],'tdx':_0x385375});process[_0xf6d4bf(0x292)](_0x4557ee);}),segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1fa))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x154))['action'](async(_0x39ff40,_0x1f762a)=>{const _0x489bb5=a2_0x3b4d01,_0x7e52ee=new SegmentSQLCommand(),_0xcbcac7=program[_0x489bb5(0x2dc)](),_0x4c0016=await createTDXInstance(_0xcbcac7),_0x453e95=await _0x7e52ee[_0x489bb5(0x26c)]({'options':{..._0xcbcac7,..._0x1f762a},'args':_0x39ff40?[_0x39ff40]:[],'tdx':_0x4c0016});process[_0x489bb5(0x292)](_0x453e95);}),segmentCmd['command'](a2_0x3b4d01(0x368))[a2_0x3b4d01(0x178)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x1cff4c,_0x5275ca)=>{const _0x3a2712=a2_0x3b4d01,_0x1e2e3e=new SegmentFieldsCommand(),_0x5517a2=program[_0x3a2712(0x2dc)](),_0x33f0a4=await createTDXInstance(_0x5517a2),_0x34f802=await _0x1e2e3e[_0x3a2712(0x26c)]({'options':{..._0x5517a2,..._0x5275ca},'args':_0x1cff4c?[_0x1cff4c]:[],'tdx':_0x33f0a4});process['exit'](_0x34f802);}),segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x296))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2a0))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x341),a2_0x3b4d01(0x242))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x172),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3b4d01(0x162)](async(_0x470d4a,_0x4f4e74)=>{const _0x335622=a2_0x3b4d01,_0x3504c8=new SegmentPullCommand(),_0x95c664=program[_0x335622(0x2dc)](),_0x41724c=await createTDXInstance(_0x95c664),_0x5c8b96=await _0x3504c8[_0x335622(0x26c)]({'options':{..._0x95c664,..._0x4f4e74},'args':_0x470d4a?[_0x470d4a]:[],'tdx':_0x41724c});process[_0x335622(0x292)](_0x5c8b96);}),segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1a6))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2d0))['option'](a2_0x3b4d01(0x341),'Skip\x20confirmation\x20prompts')[a2_0x3b4d01(0x175)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x19e),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x3b4d01(0x162)](async(_0x404af7,_0x15a43c)=>{const _0x49d7fb=a2_0x3b4d01,_0x4835a4=new SegmentPushCommand(),_0x4a1a67=program['opts'](),_0x196be7=await createTDXInstance(_0x4a1a67),_0x2223d2=await _0x4835a4['run']({'options':{..._0x4a1a67,..._0x15a43c},'args':_0x404af7?[_0x404af7]:[],'tdx':_0x196be7});process[_0x49d7fb(0x292)](_0x2223d2);}),segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1bf),{'hidden':!![]})[a2_0x3b4d01(0x178)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option']('--description\x20<text>','Segment\x20description')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x208),a2_0x3b4d01(0x1f6))[a2_0x3b4d01(0x175)]('--rule-file\x20<file>',a2_0x3b4d01(0x2bd))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x152),'Folder\x20name\x20for\x20organization')[a2_0x3b4d01(0x175)]('--kind\x20<type>',a2_0x3b4d01(0x33e))['option']('--invisible',a2_0x3b4d01(0x1d9))['option'](a2_0x3b4d01(0x14b),a2_0x3b4d01(0x177))[a2_0x3b4d01(0x162)](async(_0x1a37b0,_0x48e9b0)=>{const _0x2831bc=a2_0x3b4d01,_0x3bed9e=new SegmentCreateCommand(),_0x33c2c5=program[_0x2831bc(0x2dc)](),_0xa261d9=await createTDXInstance(_0x33c2c5),_0x821cd1=await _0x3bed9e['run']({'options':{..._0x33c2c5,..._0x48e9b0},'args':[_0x1a37b0],'tdx':_0xa261d9});process[_0x2831bc(0x292)](_0x821cd1);}),segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x319),{'hidden':!![]})['description'](a2_0x3b4d01(0x25b))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1fe),'New\x20segment\x20name')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x194),'Updated\x20description')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x208),a2_0x3b4d01(0x255))['option'](a2_0x3b4d01(0x1d7),a2_0x3b4d01(0x2d1))[a2_0x3b4d01(0x175)]('--folder\x20<name>',a2_0x3b4d01(0x302))['option'](a2_0x3b4d01(0x35d),a2_0x3b4d01(0x33e))['action'](async(_0xe55018,_0x2e59e3)=>{const _0x25ea06=a2_0x3b4d01,_0x442479=new SegmentUpdateCommand(),_0x4b6a60=program[_0x25ea06(0x2dc)](),_0x1ad2b0=await createTDXInstance(_0x4b6a60),_0x23b52c=await _0x442479['run']({'options':{..._0x4b6a60,..._0x2e59e3},'args':[_0xe55018],'tdx':_0x1ad2b0});process[_0x25ea06(0x292)](_0x23b52c);});const parentCmd=segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1dd),{'hidden':!![]})[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x277)),parentListAction=async(_0x412b71,_0x160181)=>{const _0x5f3d1b=new ParentSegmentListCommand(),_0x39ea0f=program['opts'](),_0x62915=await createTDXInstance(_0x39ea0f),_0x1e7366=await _0x5f3d1b['run']({'options':{..._0x39ea0f,..._0x160181},'args':_0x412b71?[_0x412b71]:[],'tdx':_0x62915});process['exit'](_0x1e7366);};parentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1b8))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x35a))['action'](parentListAction),segmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1d4),{'hidden':!![]})[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x170))['action'](parentListAction),parentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1b6))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x33f))['option'](a2_0x3b4d01(0x337),a2_0x3b4d01(0x186))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x341),a2_0x3b4d01(0x184))[a2_0x3b4d01(0x162)](async(_0x165916,_0x2f20a2)=>{const _0x57ee76=a2_0x3b4d01,_0x4a45e5=new ParentSegmentPullCommand(),_0x4b03c1=program[_0x57ee76(0x2dc)](),_0x42f2eb=await createTDXInstance(_0x4b03c1),_0x3a5160=await _0x4a45e5[_0x57ee76(0x26c)]({'options':{..._0x4b03c1,..._0x2f20a2},'args':_0x165916?[_0x165916]:[],'tdx':_0x42f2eb});process[_0x57ee76(0x292)](_0x3a5160);}),parentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x347))['description'](a2_0x3b4d01(0x345))['option'](a2_0x3b4d01(0x341),a2_0x3b4d01(0x184))['action'](async(_0x259f16,_0x9f6449)=>{const _0xae34b2=a2_0x3b4d01,_0x4d4428=new ParentSegmentPushCommand(),_0x418102=program[_0xae34b2(0x2dc)](),_0x2d76e2=await createTDXInstance(_0x418102),_0x2d390d=await _0x4d4428['run']({'options':{..._0x418102,..._0x9f6449},'args':_0x259f16?[_0x259f16]:[],'tdx':_0x2d76e2});process[_0xae34b2(0x292)](_0x2d390d);}),parentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x327))['description'](a2_0x3b4d01(0x2f4))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x32b),a2_0x3b4d01(0x171))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x309),a2_0x3b4d01(0x26b))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x291),a2_0x3b4d01(0x29a))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x183),a2_0x3b4d01(0x288))[a2_0x3b4d01(0x175)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3b4d01(0x2c9))['action'](async(_0x3cd147,_0x54beaa)=>{const _0x140c77=a2_0x3b4d01,_0x5b0cfb=new ParentSegmentValidateCommand(),_0x511cba=program[_0x140c77(0x2dc)](),_0x40e594=await createTDXInstance(_0x511cba),_0x4d9149=await _0x5b0cfb[_0x140c77(0x26c)]({'options':{..._0x511cba,..._0x54beaa},'args':_0x3cd147?[_0x3cd147]:[],'tdx':_0x40e594});process[_0x140c77(0x292)](_0x4d9149);}),parentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2c1))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x165))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x32b),a2_0x3b4d01(0x16e))[a2_0x3b4d01(0x175)]('--attribute\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')['option']('--behavior\x20[name]',a2_0x3b4d01(0x366))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x183),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x3b4d01(0x285),a2_0x3b4d01(0x1e3),'-1d')['action'](async(_0x56a347,_0x219020)=>{const _0x4e7dca=a2_0x3b4d01,_0x4ef07f=new ParentSegmentPreviewCommand(),_0x2f328c=program['opts'](),_0x5afa4e=await createTDXInstance(_0x2f328c),_0x31bbe1=await _0x4ef07f[_0x4e7dca(0x26c)]({'options':{..._0x2f328c,..._0x219020},'args':_0x56a347?[_0x56a347]:[],'tdx':_0x5afa4e});process[_0x4e7dca(0x292)](_0x31bbe1);}),parentCmd[a2_0x3b4d01(0x350)]('run\x20[name]')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2b1))[a2_0x3b4d01(0x175)]('-y,\x20--yes',a2_0x3b4d01(0x184))[a2_0x3b4d01(0x162)](async(_0x94d5ff,_0x482cc3)=>{const _0x4a1ffb=a2_0x3b4d01,_0x419ba7=new ParentSegmentRunCommand(),_0x4f76f0=program[_0x4a1ffb(0x2dc)](),_0x3668f1=await createTDXInstance(_0x4f76f0),_0x4b2f29=await _0x419ba7[_0x4a1ffb(0x26c)]({'options':{..._0x4f76f0,..._0x482cc3},'args':_0x94d5ff?[_0x94d5ff]:[],'tdx':_0x3668f1});process['exit'](_0x4b2f29);});const parentSegmentCmd=program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x16f))['alias']('ps')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x282));parentSegmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1b8))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x35a))['action'](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2b3))['option'](a2_0x3b4d01(0x337),a2_0x3b4d01(0x2e4))[a2_0x3b4d01(0x175)]('-y,\x20--yes',a2_0x3b4d01(0x184))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1f3),a2_0x3b4d01(0x326))[a2_0x3b4d01(0x162)](async(_0x695a53,_0x23809a)=>{const _0x1902fc=a2_0x3b4d01,_0x57bc09=new ParentSegmentPullCommand(),_0x57a919=program['opts'](),_0xc8ecac=await createTDXInstance(_0x57a919),_0x98a3e6=await _0x57bc09[_0x1902fc(0x26c)]({'options':{..._0x57a919,..._0x23809a},'args':_0x695a53?[_0x695a53]:[],'tdx':_0xc8ecac});process[_0x1902fc(0x292)](_0x98a3e6);}),parentSegmentCmd[a2_0x3b4d01(0x350)]('push\x20[name]')['description'](a2_0x3b4d01(0x1d8))[a2_0x3b4d01(0x175)]('-y,\x20--yes',a2_0x3b4d01(0x184))[a2_0x3b4d01(0x162)](async(_0x426b04,_0x53d82f)=>{const _0x4a06a0=a2_0x3b4d01,_0x59e1d7=new ParentSegmentPushCommand(),_0x1abbc8=program[_0x4a06a0(0x2dc)](),_0x43a184=await createTDXInstance(_0x1abbc8),_0x39b903=await _0x59e1d7[_0x4a06a0(0x26c)]({'options':{..._0x1abbc8,..._0x53d82f},'args':_0x426b04?[_0x426b04]:[],'tdx':_0x43a184});process[_0x4a06a0(0x292)](_0x39b903);}),parentSegmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1f1))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2f4))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x32b),'Show\x20only\x20master\x20table\x20validation')[a2_0x3b4d01(0x175)]('--attribute\x20[name]',a2_0x3b4d01(0x26b))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x291),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x183),a2_0x3b4d01(0x288))[a2_0x3b4d01(0x175)]('--interval\x20<range>',a2_0x3b4d01(0x1e3),a2_0x3b4d01(0x2c9))['action'](async(_0x22ea65,_0x1bef0e)=>{const _0x5f1432=a2_0x3b4d01,_0x387bd4=new ParentSegmentValidateCommand(),_0x265c29=program[_0x5f1432(0x2dc)](),_0x48655e=await createTDXInstance(_0x265c29),_0x4dedcd=await _0x387bd4[_0x5f1432(0x26c)]({'options':{..._0x265c29,..._0x1bef0e},'args':_0x22ea65?[_0x22ea65]:[],'tdx':_0x48655e});process[_0x5f1432(0x292)](_0x4dedcd);}),parentSegmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1d6))['description'](a2_0x3b4d01(0x165))[a2_0x3b4d01(0x175)]('--master',a2_0x3b4d01(0x16e))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x309),a2_0x3b4d01(0x156))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x291),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x183),a2_0x3b4d01(0x202))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x285),a2_0x3b4d01(0x1e3),a2_0x3b4d01(0x2c9))[a2_0x3b4d01(0x162)](async(_0xc89e90,_0x44e145)=>{const _0x200425=a2_0x3b4d01,_0x440a4f=new ParentSegmentPreviewCommand(),_0x4af38d=program['opts'](),_0xf7abc1=await createTDXInstance(_0x4af38d),_0x4a36dd=await _0x440a4f['run']({'options':{..._0x4af38d,..._0x44e145},'args':_0xc89e90?[_0xc89e90]:[],'tdx':_0xf7abc1});process[_0x200425(0x292)](_0x4a36dd);}),parentSegmentCmd['command'](a2_0x3b4d01(0x2d5))[a2_0x3b4d01(0x178)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3b4d01(0x175)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x3b4d01(0x162)](async(_0x1946a1,_0xa05eeb)=>{const _0x36b76f=a2_0x3b4d01,_0x1a72ad=new ParentSegmentRunCommand(),_0x14dbe6=program[_0x36b76f(0x2dc)](),_0x1cbf89=await createTDXInstance(_0x14dbe6),_0x1ae28c=await _0x1a72ad['run']({'options':{..._0x14dbe6,..._0xa05eeb},'args':_0x1946a1?[_0x1946a1]:[],'tdx':_0x1cbf89});process[_0x36b76f(0x292)](_0x1ae28c);}),parentSegmentCmd['command'](a2_0x3b4d01(0x33d))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2e3))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x20c),a2_0x3b4d01(0x1e8))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2b5),a2_0x3b4d01(0x36d))[a2_0x3b4d01(0x162)](async(_0x31d77a,_0x2a9640)=>{const _0x1f3c08=a2_0x3b4d01,_0x5530c4=new ParentSegmentFieldsCommand(),_0x1048c5=program[_0x1f3c08(0x2dc)](),_0x42b2ff=await createTDXInstance(_0x1048c5),_0x76384c=await _0x5530c4[_0x1f3c08(0x26c)]({'options':{..._0x1048c5,..._0x2a9640},'args':_0x31d77a?[_0x31d77a]:[],'tdx':_0x42b2ff});process['exit'](_0x76384c);}),parentSegmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x261))[a2_0x3b4d01(0x178)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2fd),a2_0x3b4d01(0x248))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x20c),a2_0x3b4d01(0x1e8))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2b5),a2_0x3b4d01(0x36d))['action'](async(_0x2487ba,_0x4d49e6)=>{const _0x30a35f=a2_0x3b4d01,_0x2b9ffe=new ParentSegmentViewCommand(),_0x4a565c=program['opts'](),_0x38c539=await createTDXInstance(_0x4a565c),_0x106b6b=await _0x2b9ffe[_0x30a35f(0x26c)]({'options':{..._0x4a565c,..._0x4d49e6},'args':_0x2487ba?[_0x2487ba]:[],'tdx':_0x38c539});process[_0x30a35f(0x292)](_0x106b6b);}),parentSegmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x284))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1cb))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x20c),a2_0x3b4d01(0x1e8))[a2_0x3b4d01(0x175)]('--jsonl',a2_0x3b4d01(0x36d))[a2_0x3b4d01(0x162)](async(_0x4b7d14,_0x2b66be)=>{const _0x10d93a=a2_0x3b4d01,_0x170cc9=new ParentSegmentDescCommand(),_0x116cea=program[_0x10d93a(0x2dc)](),_0x219892=await createTDXInstance(_0x116cea),_0x47aad5=await _0x170cc9[_0x10d93a(0x26c)]({'options':{..._0x116cea,..._0x2b66be},'args':_0x4b7d14?[_0x4b7d14]:[],'tdx':_0x219892});process['exit'](_0x47aad5);}),parentSegmentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1b5))['description'](a2_0x3b4d01(0x23d))[a2_0x3b4d01(0x175)]('--json',a2_0x3b4d01(0x1e8))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2b5),a2_0x3b4d01(0x36d))[a2_0x3b4d01(0x162)](async(_0x422b9b,_0x1db01d)=>{const _0x20ffc8=a2_0x3b4d01,_0x5e2a24=new ParentSegmentSQLCommand(),_0x34ae06=program['opts'](),_0x2361d7=await createTDXInstance(_0x34ae06),_0x487332=await _0x5e2a24['run']({'options':{..._0x34ae06,..._0x1db01d},'args':_0x422b9b?[_0x422b9b]:[],'tdx':_0x2361d7});process[_0x20ffc8(0x292)](_0x487332);}),parentSegmentCmd['command'](a2_0x3b4d01(0x365))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x190))[a2_0x3b4d01(0x175)]('--limit\x20<n>',a2_0x3b4d01(0x271))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x20c),a2_0x3b4d01(0x1e8))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2b5),a2_0x3b4d01(0x36d))['action'](async(_0x4cd666,_0x356666)=>{const _0x1a8cea=a2_0x3b4d01,_0xfde02d=new ParentSegmentShowCommand(),_0x39aef4=program[_0x1a8cea(0x2dc)](),_0x2454cd=await createTDXInstance(_0x39aef4),_0x2fa554=await _0xfde02d[_0x1a8cea(0x26c)]({'options':{..._0x39aef4,..._0x356666},'args':_0x4cd666?[_0x4cd666]:[],'tdx':_0x2454cd});process['exit'](_0x2fa554);}),parentSegmentCmd[a2_0x3b4d01(0x350)]('use\x20[name]')['description'](a2_0x3b4d01(0x30f))[a2_0x3b4d01(0x162)](async(_0x12b2aa,_0x472a0b)=>{const _0x15e4de=a2_0x3b4d01,_0x8788f2=new UseCommand(),_0x31d5f4=program[_0x15e4de(0x2dc)](),_0x5133e5=_0x12b2aa?[_0x15e4de(0x2f3),_0x12b2aa]:[],_0xc78fee=await _0x8788f2[_0x15e4de(0x26c)]({'options':{..._0x31d5f4,..._0x472a0b},'args':_0x5133e5,'tdx':null});process[_0x15e4de(0x292)](_0xc78fee);}),parentCmd['command'](a2_0x3b4d01(0x2dd))[a2_0x3b4d01(0x178)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3b4d01(0x2e6)](a2_0x3b4d01(0x34b),a2_0x3b4d01(0x318))[a2_0x3b4d01(0x2e6)](a2_0x3b4d01(0x2a3),a2_0x3b4d01(0x1cd))[a2_0x3b4d01(0x175)]('--description\x20<text>',a2_0x3b4d01(0x181))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2c6),a2_0x3b4d01(0x233))[a2_0x3b4d01(0x175)]('--schedule-option\x20<value>',a2_0x3b4d01(0x28b))['option'](a2_0x3b4d01(0x226),'Timezone\x20(e.g.,\x20America/Los_Angeles)')['option']('--attributes\x20<json>',a2_0x3b4d01(0x214))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1b0),a2_0x3b4d01(0x334))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2fb),a2_0x3b4d01(0x33b))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x200),a2_0x3b4d01(0x34f))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x305),'Customer\x20group\x20as\x20JSON\x20string')['option'](a2_0x3b4d01(0x1f0),'Customer\x20group\x20from\x20JSON\x20file')['action'](async(_0x4e2ef3,_0x1b27b6)=>{const _0x5a47fd=a2_0x3b4d01,_0x29216d=new ParentSegmentCreateCommand(),_0x407ba1=program[_0x5a47fd(0x2dc)](),_0x5e5e50=await createTDXInstance(_0x407ba1),_0x4e2f9a=await _0x29216d['run']({'options':{..._0x407ba1,..._0x1b27b6},'args':[_0x4e2ef3],'tdx':_0x5e5e50});process['exit'](_0x4e2f9a);}),parentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x15e))['description'](a2_0x3b4d01(0x216))['option']('--description\x20<text>','Updated\x20description')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2c6),a2_0x3b4d01(0x2f8))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x262),a2_0x3b4d01(0x357))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x226),a2_0x3b4d01(0x338))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x15d),a2_0x3b4d01(0x269))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x150),a2_0x3b4d01(0x36f))[a2_0x3b4d01(0x175)]('--add-behaviors\x20<json>',a2_0x3b4d01(0x220))[a2_0x3b4d01(0x175)]('--add-behaviors-file\x20<file>',a2_0x3b4d01(0x17f))[a2_0x3b4d01(0x162)](async(_0xc0c20d,_0x46d5fb)=>{const _0x5bae08=a2_0x3b4d01,_0x1499ab=new ParentSegmentUpdateCommand(),_0x1d6dcd=program[_0x5bae08(0x2dc)](),_0x42c8a4=await createTDXInstance(_0x1d6dcd),_0xb3b0b9=await _0x1499ab[_0x5bae08(0x26c)]({'options':{..._0x1d6dcd,..._0x46d5fb},'args':[_0xc0c20d],'tdx':_0x42c8a4});process[_0x5bae08(0x292)](_0xb3b0b9);}),folderCmd['command'](a2_0x3b4d01(0x18a))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x313))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x194),a2_0x3b4d01(0x1f8))['option']('--parent-folder\x20<name>','Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x3b4d01(0x162)](async(_0x5e77bf,_0x13bcb6,_0x1d2404)=>{const _0x1bb3a5=a2_0x3b4d01,_0x3377bf=new SegmentFolderCreateCommand(),_0x591bec=program['opts'](),_0x13c9e7=await createTDXInstance(_0x591bec),_0x460783=await _0x3377bf['run']({'options':{..._0x591bec,..._0x1d2404},'args':[_0x5e77bf,_0x13bcb6],'tdx':_0x13c9e7});process[_0x1bb3a5(0x292)](_0x460783);}),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x14f))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x373))[a2_0x3b4d01(0x162)](async(_0x56d584,_0x58eb55)=>{const _0x3fbdb9=a2_0x3b4d01,_0x32ba07=new ActivationsCommand(),_0x46939e=program[_0x3fbdb9(0x2dc)](),_0x34dda4=await createTDXInstance(_0x46939e),_0x294d3e=await _0x32ba07[_0x3fbdb9(0x26c)]({'options':{..._0x46939e,..._0x58eb55},'args':[_0x56d584],'tdx':_0x34dda4});process[_0x3fbdb9(0x292)](_0x294d3e);});const workflowCmd=program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x15c))[a2_0x3b4d01(0x369)]('wf')['description']('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x201))['description']('Workflow\x20project\x20management'),wfProjectListAction=async(_0x50fccb,_0x44d790)=>{const _0x339bc9=a2_0x3b4d01,_0x332f03=new WorkflowProjectsCommand(),_0x3a86d0=program[_0x339bc9(0x2dc)](),_0x5e89d8=await createTDXInstance(_0x3a86d0),_0xeb82cb=await _0x332f03[_0x339bc9(0x26c)]({'options':{..._0x3a86d0,..._0x44d790},'args':_0x50fccb?[_0x50fccb]:[],'tdx':_0x5e89d8});process[_0x339bc9(0x292)](_0xeb82cb);};wfProjectCmd['command']('list\x20[pattern]')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x332))[a2_0x3b4d01(0x162)](wfProjectListAction),workflowCmd[a2_0x3b4d01(0x350)]('projects\x20[pattern]')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x283))[a2_0x3b4d01(0x162)](wfProjectListAction);const wfWorkflowListAction=async(_0x278651,_0x4413fe)=>{const _0x208993=a2_0x3b4d01,_0x2b38fc=new WorkflowWorkflowsCommand(),_0x3d8a71=program[_0x208993(0x2dc)](),_0x1de89c=await createTDXInstance(_0x3d8a71),_0x5e308d=await _0x2b38fc['run']({'options':{..._0x3d8a71,..._0x4413fe},'args':_0x278651?[_0x278651]:[],'tdx':_0x1de89c});process['exit'](_0x5e308d);};workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x330))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x272))[a2_0x3b4d01(0x162)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1ff))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x20e)),wfSessionListAction=async(_0x2cf353,_0x438d80)=>{const _0x143f4d=a2_0x3b4d01,_0xba3652=new WorkflowSessionsCommand(),_0x515fd3=program['opts'](),_0x315207=await createTDXInstance(_0x515fd3),_0x49e479=await _0xba3652[_0x143f4d(0x26c)]({'options':{..._0x515fd3,..._0x438d80},'args':_0x2cf353?[_0x2cf353]:[],'tdx':_0x315207});process['exit'](_0x49e479);};wfSessionCmd['command'](a2_0x3b4d01(0x2ef))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x167))[a2_0x3b4d01(0x175)]('--status\x20<status>',a2_0x3b4d01(0x1df))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x24c),a2_0x3b4d01(0x34d))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2ba),a2_0x3b4d01(0x168))[a2_0x3b4d01(0x162)](wfSessionListAction),workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x323))['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option'](a2_0x3b4d01(0x2cf),a2_0x3b4d01(0x1df))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x24c),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2ba),a2_0x3b4d01(0x168))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x1346f2,_0x5ae07b)=>{const _0x55dce2=a2_0x3b4d01,_0x450817=new WorkflowAttemptsCommand(),_0x542fd0=program['opts'](),_0x5c4b00=await createTDXInstance(_0x542fd0),_0x1364cc=await _0x450817[_0x55dce2(0x26c)]({'options':{..._0x542fd0,..._0x5ae07b},'args':_0x1346f2?[_0x1346f2]:[],'tdx':_0x5c4b00});process[_0x55dce2(0x292)](_0x1364cc);},attemptCmd=workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x18b))['description']('Workflow\x20attempt\x20management')['argument'](a2_0x3b4d01(0x246),a2_0x3b4d01(0x2c5))['argument'](a2_0x3b4d01(0x31f),a2_0x3b4d01(0x15a))['argument'](a2_0x3b4d01(0x182),'Task\x20name\x20for\x20logs\x20action')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x32d),a2_0x3b4d01(0x310))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1db),a2_0x3b4d01(0x1b4))['option']('--resume-from\x20<task>',a2_0x3b4d01(0x151))['option'](a2_0x3b4d01(0x25a),a2_0x3b4d01(0x266))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x18f),'Force\x20retry\x20even\x20if\x20not\x20failed')['option'](a2_0x3b4d01(0x2fe),a2_0x3b4d01(0x359))['action'](async(_0x3eb07b,_0x2f28c6,_0x25b08d,_0x5babd1)=>{const _0x56cc21=a2_0x3b4d01;if(_0x3eb07b===_0x56cc21(0x361)){await wfAttemptListAction(_0x2f28c6,_0x5babd1);return;}if(!_0x3eb07b){attemptCmd[_0x56cc21(0x308)]();return;}const _0x32de95=program[_0x56cc21(0x2dc)](),_0xbc0263=await createTDXInstance(_0x32de95);let _0x43627b=0x0;if(!_0x2f28c6){const _0xb54b90=new WorkflowAttemptCommand();_0x43627b=await _0xb54b90[_0x56cc21(0x26c)]({'options':{..._0x32de95,..._0x5babd1},'args':[_0x3eb07b],'tdx':_0xbc0263});}else{if(_0x2f28c6===_0x56cc21(0x287)){const _0x4553b9=new WorkflowLogsCommand();_0x43627b=await _0x4553b9[_0x56cc21(0x26c)]({'options':{..._0x32de95,..._0x5babd1},'args':_0x25b08d?[_0x3eb07b,_0x25b08d]:[_0x3eb07b],'tdx':_0xbc0263});}else{if(_0x2f28c6===_0x56cc21(0x27e)){const _0x2a385b=new WorkflowTasksCommand();_0x43627b=await _0x2a385b[_0x56cc21(0x26c)]({'options':{..._0x32de95,..._0x5babd1},'args':[_0x3eb07b],'tdx':_0xbc0263});}else{if(_0x2f28c6===_0x56cc21(0x22e)){const _0x533dda=new WorkflowKillCommand();_0x43627b=await _0x533dda[_0x56cc21(0x26c)]({'options':{..._0x32de95,..._0x5babd1},'args':[_0x3eb07b],'tdx':_0xbc0263});}else{if(_0x2f28c6===_0x56cc21(0x290)){const _0x491d3c=new WorkflowRetryCommand();_0x43627b=await _0x491d3c[_0x56cc21(0x26c)]({'options':{..._0x32de95,..._0x5babd1},'args':[_0x56cc21(0x24a)+_0x3eb07b],'tdx':_0xbc0263});}else console[_0x56cc21(0x355)](_0x56cc21(0x2b8)+_0x2f28c6),console[_0x56cc21(0x355)](_0x56cc21(0x333)),_0x43627b=0x1;}}}}process[_0x56cc21(0x292)](_0x43627b);});attemptCmd[a2_0x3b4d01(0x350)]('list\x20[project]')['description'](a2_0x3b4d01(0x360))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2fe),a2_0x3b4d01(0x238))[a2_0x3b4d01(0x162)](wfAttemptListAction),workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1de))[a2_0x3b4d01(0x178)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2fe),a2_0x3b4d01(0x238))['action'](wfAttemptListAction),workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2f6))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2e5))['option'](a2_0x3b4d01(0x229),a2_0x3b4d01(0x363))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x25a),a2_0x3b4d01(0x35e))[a2_0x3b4d01(0x162)](async(_0x91ff34,_0x1ffc57)=>{const _0xa3a9cc=a2_0x3b4d01,_0x1b0d1e=new WorkflowRetryCommand(),_0x1e1f70=program[_0xa3a9cc(0x2dc)](),_0x1bf3ab=await createTDXInstance(_0x1e1f70),_0x3f1173=await _0x1b0d1e[_0xa3a9cc(0x26c)]({'options':{..._0x1e1f70,..._0x1ffc57},'args':[_0x91ff34],'tdx':_0x1bf3ab});process[_0xa3a9cc(0x292)](_0x3f1173);}),workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x22c))['description'](a2_0x3b4d01(0x352))['option'](a2_0x3b4d01(0x293),a2_0x3b4d01(0x344),(_0x59aad7,_0x537084=[])=>[..._0x537084,_0x59aad7],[])[a2_0x3b4d01(0x175)]('--session-time\x20<time>',a2_0x3b4d01(0x15b))[a2_0x3b4d01(0x162)](async(_0xf3f086,_0x262abe)=>{const _0x4041f3=a2_0x3b4d01,_0x70f9e4=new WorkflowRunCommand(),_0x541ed4=program[_0x4041f3(0x2dc)](),_0x4fd5e1=await createTDXInstance(_0x541ed4),_0x59a1df=await _0x70f9e4[_0x4041f3(0x26c)]({'options':{..._0x541ed4,..._0x262abe},'args':[_0xf3f086],'tdx':_0x4fd5e1});process[_0x4041f3(0x292)](_0x59a1df);}),workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1bd))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x300))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x303),a2_0x3b4d01(0x169))['action'](async(_0x374862,_0x24f787,_0x2f3fe3)=>{const _0x4612aa=a2_0x3b4d01,_0x42c667=new WorkflowDownloadCommand(),_0x2e5e5b=program['opts'](),_0x3fc10e=await createTDXInstance(_0x2e5e5b),_0x3a7bfe=await _0x42c667[_0x4612aa(0x26c)]({'options':{..._0x2e5e5b,..._0x2f3fe3},'args':[_0x374862,_0x24f787||'.'],'tdx':_0x3fc10e});process[_0x4612aa(0x292)](_0x3a7bfe);}),workflowCmd[a2_0x3b4d01(0x350)]('push\x20[project-name-or-dir]')['description'](a2_0x3b4d01(0x29d))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x20d),'Override\x20project\x20name')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x303),a2_0x3b4d01(0x2c8))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2ee),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x3b4d01(0x162)](async(_0x16eaa6,_0x3bd82a)=>{const _0x5c8432=a2_0x3b4d01,_0x3989bf=new WorkflowPushCommand(),_0x596eaa=program[_0x5c8432(0x2dc)](),_0x401bd2=await createTDXInstance(_0x596eaa),_0x503381=await _0x3989bf[_0x5c8432(0x26c)]({'options':{..._0x596eaa,..._0x3bd82a},'args':_0x16eaa6?[_0x16eaa6]:[],'tdx':_0x401bd2});process[_0x5c8432(0x292)](_0x503381);}),workflowCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2fa))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1e1))[a2_0x3b4d01(0x162)](async(_0x128871,_0x26353a)=>{const _0x4a15da=a2_0x3b4d01,_0x2ce7b0=new WorkflowDeleteCommand(),_0x1f4456=program['opts'](),_0x54a676=await createTDXInstance(_0x1f4456),_0x5d60af=await _0x2ce7b0[_0x4a15da(0x26c)]({'options':{..._0x1f4456,..._0x26353a},'args':[_0x128871],'tdx':_0x54a676});process[_0x4a15da(0x292)](_0x5d60af);});const jobCmd=program[a2_0x3b4d01(0x350)]('job')['description']('Job\x20management\x20commands'),jobListAction=async _0x26de2e=>{const _0x239a7b=a2_0x3b4d01,_0x5bd06f=new JobListCommand(),_0x1d08c4=program[_0x239a7b(0x2dc)](),_0x1e8fbe=await createTDXInstance(_0x1d08c4),_0x26eae6=await _0x5bd06f[_0x239a7b(0x26c)]({'options':{..._0x1d08c4,..._0x26de2e},'args':[],'tdx':_0x1e8fbe});process[_0x239a7b(0x292)](_0x26eae6);};jobCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x361))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x22f))['option']('--status\x20<status>',a2_0x3b4d01(0x2f7))[a2_0x3b4d01(0x162)](jobListAction),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1a5),{'hidden':!![]})[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x22a))['option']('--status\x20<status>',a2_0x3b4d01(0x2f7))[a2_0x3b4d01(0x162)](jobListAction),jobCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x157))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x173))['action'](async(_0x3f4d4d,_0x2f5465)=>{const _0x3d8d32=a2_0x3b4d01,_0x46e1e9=new JobShowCommand(),_0x544ebd=program[_0x3d8d32(0x2dc)](),_0x207826=await createTDXInstance(_0x544ebd),_0x341110=await _0x46e1e9[_0x3d8d32(0x26c)]({'options':{..._0x544ebd,..._0x2f5465},'args':[_0x3f4d4d],'tdx':_0x207826});process[_0x3d8d32(0x292)](_0x341110);}),jobCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x17a))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1a9))[a2_0x3b4d01(0x162)](async(_0x25cffb,_0x434d3e)=>{const _0x595c49=a2_0x3b4d01,_0x37588c=new JobKillCommand(),_0xebfe9f=program['opts'](),_0x2ec2ce=await createTDXInstance(_0xebfe9f),_0x3a6f8c=await _0x37588c[_0x595c49(0x26c)]({'options':{..._0xebfe9f,..._0x434d3e},'args':[_0x25cffb],'tdx':_0x2ec2ce});process[_0x595c49(0x292)](_0x3a6f8c);}),jobCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2db))['description'](a2_0x3b4d01(0x189))['option'](a2_0x3b4d01(0x218),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x3b4d01(0x14d))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x372),'Read\x20query\x20from\x20file')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x322),'Database\x20name\x20(default:\x20information_schema)',a2_0x3b4d01(0x1a4))['action'](async(_0x4adfe6,_0x127b6c)=>{const _0x372dce=a2_0x3b4d01,_0x174d7a=new JobSubmitCommand(),_0x48f801=program[_0x372dce(0x2dc)](),_0x574fd5=await createTDXInstance(_0x48f801),_0x3c5dd2=await _0x174d7a[_0x372dce(0x26c)]({'options':{..._0x48f801,..._0x127b6c},'args':_0x4adfe6?[_0x4adfe6]:[],'tdx':_0x574fd5});process[_0x372dce(0x292)](_0x3c5dd2);}),jobCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1d0))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2a5))[a2_0x3b4d01(0x162)](async(_0x5f10df,_0x3fad51)=>{const _0x17d3d2=a2_0x3b4d01,_0x5de043=new JobResultCommand(),_0x3212a8=program[_0x17d3d2(0x2dc)](),_0x57c0f5=await createTDXInstance(_0x3212a8),_0x46e078=await _0x5de043[_0x17d3d2(0x26c)]({'options':{..._0x3212a8,..._0x3fad51},'args':[_0x5f10df],'tdx':_0x57c0f5});process[_0x17d3d2(0x292)](_0x46e078);});const llmCmd=program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1ab))[a2_0x3b4d01(0x178)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command'](a2_0x3b4d01(0x2b4))['description']('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x3b4d01(0x162)](async(_0x19f981,_0x34e9ae)=>{const _0x50f231=a2_0x3b4d01,_0xa44155=new LLMUseCommand(),_0x19fff6=program[_0x50f231(0x2dc)](),_0x4fa839=await createTDXInstance(_0x19fff6),_0x2fcfd0=await _0xa44155[_0x50f231(0x26c)]({'options':{..._0x19fff6,..._0x34e9ae},'args':[_0x19f981],'tdx':_0x4fa839});process['exit'](_0x2fcfd0);}),llmCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x159))['description'](a2_0x3b4d01(0x1a3))[a2_0x3b4d01(0x162)](async _0x305eff=>{const _0x39fab3=a2_0x3b4d01,_0x5f1923=new LLMModelsCommand(),_0x3326a9=program['opts'](),_0x546283=await createTDXInstance(_0x3326a9),_0xcad88f=await _0x5f1923[_0x39fab3(0x26c)]({'options':{..._0x3326a9,..._0x305eff},'args':[],'tdx':_0x546283});process['exit'](_0xcad88f);});const projectCmd=llmCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x201))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2ff)),llmProjectListAction=async(_0x5303b8,_0x70ddbb)=>{const _0xab243c=a2_0x3b4d01,_0x1372c6=new LLMProjectsCommand(),_0x29068d=program['opts'](),_0x543286=await createTDXInstance(_0x29068d),_0x47795b=await _0x1372c6['run']({'options':{..._0x29068d,..._0x70ddbb},'args':_0x5303b8?[_0x5303b8]:[],'tdx':_0x543286});process[_0xab243c(0x292)](_0x47795b);};projectCmd[a2_0x3b4d01(0x350)]('list\x20[pattern]')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x32c))[a2_0x3b4d01(0x162)](llmProjectListAction),llmCmd['command'](a2_0x3b4d01(0x1ed))[a2_0x3b4d01(0x178)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x3b4d01(0x162)](llmProjectListAction),projectCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2dd))[a2_0x3b4d01(0x178)]('Create\x20a\x20new\x20LLM\x20project')['option'](a2_0x3b4d01(0x194),a2_0x3b4d01(0x1d2))['action'](async(_0x10d65a,_0x1d7def)=>{const _0x4db0ee=a2_0x3b4d01,_0x196d67=new LLMProjectCreateCommand(),_0x190bbc=program[_0x4db0ee(0x2dc)](),_0x45e3ac=await createTDXInstance(_0x190bbc),_0x34e906=await _0x196d67[_0x4db0ee(0x26c)]({'options':{..._0x190bbc,..._0x1d7def},'args':[_0x10d65a],'tdx':_0x45e3ac});process[_0x4db0ee(0x292)](_0x34e906);}),projectCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2a4))[a2_0x3b4d01(0x178)]('Delete\x20an\x20LLM\x20project')[a2_0x3b4d01(0x162)](async(_0x1a074c,_0x4af5d4)=>{const _0x2d7286=a2_0x3b4d01,_0x24f8d1=new LLMProjectDeleteCommand(),_0x135d7d=program['opts'](),_0x32cb10=await createTDXInstance(_0x135d7d),_0x14c788=await _0x24f8d1['run']({'options':{..._0x135d7d,..._0x4af5d4},'args':[_0x1a074c],'tdx':_0x32cb10});process[_0x2d7286(0x292)](_0x14c788);}),projectCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x304))[a2_0x3b4d01(0x178)]('Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder')['option'](a2_0x3b4d01(0x32e),a2_0x3b4d01(0x2b2))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x172),a2_0x3b4d01(0x30d))[a2_0x3b4d01(0x162)](async(_0x4b0ff7,_0x42100f)=>{const _0x138baf=a2_0x3b4d01,_0x295495=new LLMProjectBackupCommand(),_0x379ed6=program[_0x138baf(0x2dc)](),_0x38faa5=await createTDXInstance(_0x379ed6),_0x43b354=await _0x295495[_0x138baf(0x26c)]({'options':{..._0x379ed6,..._0x42100f},'args':[_0x4b0ff7],'tdx':_0x38faa5});process[_0x138baf(0x292)](_0x43b354);}),projectCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x367))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x364))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x29e),a2_0x3b4d01(0x191))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x172),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x3b4d01(0x162)](async(_0x1e510c,_0x2a1d69)=>{const _0x1aa87e=a2_0x3b4d01,_0xc0dc96=new LLMProjectRestoreCommand(),_0x95d592=program['opts'](),_0x4e86bc=await createTDXInstance(_0x95d592),_0x1e9c19=await _0xc0dc96[_0x1aa87e(0x26c)]({'options':{..._0x95d592,..._0x2a1d69},'args':[_0x1e510c],'tdx':_0x4e86bc});process[_0x1aa87e(0x292)](_0x1e9c19);});const agentCmd=llmCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2a2))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2c4)),llmAgentListAction=async(_0x1d91ab,_0x50c63b)=>{const _0x3ca83f=a2_0x3b4d01,_0x127358=new LLMAgentsCommand(),_0x8a85f9=program[_0x3ca83f(0x2dc)](),_0x1b14dc=await createTDXInstance(_0x8a85f9),_0x3bc4af=await _0x127358['run']({'options':{..._0x8a85f9,..._0x50c63b},'args':_0x1d91ab?[_0x1d91ab]:[],'tdx':_0x1b14dc});process[_0x3ca83f(0x292)](_0x3bc4af);};agentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1b8))['description']('List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3b4d01(0x162)](llmAgentListAction),llmCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2d8))[a2_0x3b4d01(0x178)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x3b4d01(0x162)](llmAgentListAction),agentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1e6))[a2_0x3b4d01(0x178)]('Show\x20agent\x20details')[a2_0x3b4d01(0x162)](async(_0xc33f73,_0x52eb95)=>{const _0xd2c608=a2_0x3b4d01,_0x3e2623=new LLMAgentShowCommand(),_0x98fc28=program['opts'](),_0x305411=await createTDXInstance(_0x98fc28),_0x5180db=await _0x3e2623[_0xd2c608(0x26c)]({'options':{..._0x98fc28,..._0x52eb95},'args':[_0xc33f73],'tdx':_0x305411});process[_0xd2c608(0x292)](_0x5180db);}),agentCmd['command']('create\x20<name>')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x35b))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x289),a2_0x3b4d01(0x155))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x340),a2_0x3b4d01(0x328),'claude-4.5-sonnet')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1c6),'Starter\x20message')['option'](a2_0x3b4d01(0x1b9),a2_0x3b4d01(0x260),'4')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x160),a2_0x3b4d01(0x2d6),a2_0x3b4d01(0x166))[a2_0x3b4d01(0x162)](async(_0x25cfea,_0x321b5f)=>{const _0x102735=a2_0x3b4d01,_0x148112=new LLMAgentCreateCommand(),_0x1083ff=program[_0x102735(0x2dc)](),_0x561174=await createTDXInstance(_0x1083ff),_0x37e482=await _0x148112[_0x102735(0x26c)]({'options':{..._0x1083ff,..._0x321b5f},'args':[_0x25cfea],'tdx':_0x561174});process[_0x102735(0x292)](_0x37e482);}),agentCmd[a2_0x3b4d01(0x350)]('update\x20<agent-name>')[a2_0x3b4d01(0x178)]('Update\x20an\x20existing\x20agent')[a2_0x3b4d01(0x175)]('--name\x20<text>',a2_0x3b4d01(0x23e))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x33c),'Agent\x20prompt/instructions')['option']('--description\x20<text>','Agent\x20description')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1c6),'Starter\x20message')[a2_0x3b4d01(0x162)](async(_0x48b54f,_0x552ffa)=>{const _0x23a1ad=a2_0x3b4d01,_0x4a765d=new LLMAgentUpdateCommand(),_0x38c583=program[_0x23a1ad(0x2dc)](),_0x31ff32=await createTDXInstance(_0x38c583),_0x21dc5c=await _0x4a765d['run']({'options':{..._0x38c583,..._0x552ffa},'args':[_0x48b54f],'tdx':_0x31ff32});process[_0x23a1ad(0x292)](_0x21dc5c);}),agentCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x30e))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x343))[a2_0x3b4d01(0x162)](async(_0x3d8630,_0xde8bf8)=>{const _0x578c5c=a2_0x3b4d01,_0x4aed67=new LLMAgentDeleteCommand(),_0x12fc78=program[_0x578c5c(0x2dc)](),_0x2a7590=await createTDXInstance(_0x12fc78),_0x29bc36=await _0x4aed67['run']({'options':{..._0x12fc78,..._0xde8bf8},'args':[_0x3d8630],'tdx':_0x2a7590});process[_0x578c5c(0x292)](_0x29bc36);}),llmCmd['command'](a2_0x3b4d01(0x21c))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1e5))[a2_0x3b4d01(0x175)]('--last','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')['action'](async(_0x31a930,_0x1b3367)=>{const _0x3599c1=a2_0x3b4d01,_0x52bec5=new LLMHistoryCommand(),_0x169c32=program[_0x3599c1(0x2dc)](),_0x181b86=await createTDXInstance(_0x169c32),_0x8251df=await _0x52bec5[_0x3599c1(0x26c)]({'options':{..._0x169c32,..._0x1b3367},'args':_0x31a930?[_0x31a930]:[],'tdx':_0x181b86});process['exit'](_0x8251df);}),llmCmd['command'](a2_0x3b4d01(0x297))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2f2))[a2_0x3b4d01(0x175)]('--port\x20<number>',a2_0x3b4d01(0x17b),'4000')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x29c),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x18c),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3b4d01(0x162)](async _0x60d740=>{const _0x32a812=a2_0x3b4d01,_0xb0148b=new LLMProxyCommand(),_0x210d2b=program[_0x32a812(0x2dc)](),_0x3b19ba=await createTDXInstance(_0x210d2b),_0x51e0bd={..._0x60d740,'port':_0x60d740[_0x32a812(0x336)]?parseInt(_0x60d740[_0x32a812(0x336)],0xa):undefined},_0x4d2f25=await _0xb0148b['run']({'options':{..._0x210d2b,..._0x51e0bd},'args':[],'tdx':_0x3b19ba});process['exit'](_0x4d2f25);}),program['command'](a2_0x3b4d01(0x1bc))['usage'](a2_0x3b4d01(0x2a1))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2f5))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x340),a2_0x3b4d01(0x23a),a2_0x3b4d01(0x203))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x31b),a2_0x3b4d01(0x2d4))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x295),a2_0x3b4d01(0x2a7))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x27d),a2_0x3b4d01(0x196))[a2_0x3b4d01(0x17d)]()[a2_0x3b4d01(0x251)](!![])['addHelpText'](a2_0x3b4d01(0x1c8),a2_0x3b4d01(0x256))[a2_0x3b4d01(0x162)](async(_0x34cad5,_0x476756)=>{const _0x3024b0=a2_0x3b4d01,_0x507874=program['opts'](),_0x124536=Array[_0x3024b0(0x232)](_0x34cad5)?_0x34cad5:[];if(_0x124536[0x0]===_0x3024b0(0x2ca)){const _0x219b6f=new ClaudeStatuslineCommand(),_0x33fe7a=await _0x219b6f['run']({'options':{..._0x507874,..._0x476756},'args':_0x124536[_0x3024b0(0x1ce)](0x1),'tdx':null});process['exit'](_0x33fe7a);}if(_0x124536[0x0]===_0x3024b0(0x339)){const _0xa0fa9=new ClaudeUsageCommand(),_0x20bc5f=await _0xa0fa9[_0x3024b0(0x26c)]({'options':{..._0x507874,..._0x476756},'args':_0x124536[_0x3024b0(0x1ce)](0x1),'tdx':null});process[_0x3024b0(0x292)](_0x20bc5f);}const _0x3072d5=new ClaudeCommand(),_0x2cd568=await createTDXInstance(_0x507874),_0x4e95e8=await _0x3072d5[_0x3024b0(0x26c)]({'options':{..._0x507874,..._0x476756},'args':_0x124536,'tdx':_0x2cd568});process[_0x3024b0(0x292)](_0x4e95e8);}),program['command']('context')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x235))['option'](a2_0x3b4d01(0x23b),'Clear\x20session\x20context')['action'](async _0x489939=>{const _0x29a875=a2_0x3b4d01,_0x3c0590=new ContextCommand(),_0x2d49d8=program['opts'](),_0xf34d51=await _0x3c0590[_0x29a875(0x26c)]({'options':{..._0x2d49d8,..._0x489939},'args':[],'tdx':null});process[_0x29a875(0x292)](_0xf34d51);}),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x31e))[a2_0x3b4d01(0x178)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x23b),a2_0x3b4d01(0x2a8))[a2_0x3b4d01(0x162)](async(_0x4b0c39,_0x5999d1,_0x3999d3)=>{const _0x1d82d1=a2_0x3b4d01,_0x417982=new UseCommand(),_0x3f588b=program[_0x1d82d1(0x2dc)](),_0x34d335=[];if(_0x4b0c39)_0x34d335['push'](_0x4b0c39);if(_0x5999d1)_0x34d335[_0x1d82d1(0x28a)](_0x5999d1);const _0x2921b6=await _0x417982[_0x1d82d1(0x26c)]({'options':{..._0x3f588b,..._0x3999d3},'args':_0x34d335,'tdx':null});process[_0x1d82d1(0x292)](_0x2921b6);}),program['command'](a2_0x3b4d01(0x1ac))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x35c))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x27b),'Show\x20the\x20most\x20recent\x20chat')['action'](async _0x47b7b0=>{const _0x357f7a=a2_0x3b4d01,_0x5b3674=new ChatsCommand(),_0x2c2ae6=program[_0x357f7a(0x2dc)](),_0x425849=await createTDXInstance(_0x2c2ae6),_0x9b1073=await _0x5b3674['run']({'options':{..._0x2c2ae6,..._0x47b7b0},'args':[],'tdx':_0x425849});process[_0x357f7a(0x292)](_0x9b1073);});const authCmd=program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x21a))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x250));async function runAuthStatusCommand(_0xb37431){const _0x3c7725=a2_0x3b4d01,_0x3a31f7=new AuthStatusCommand(),_0x4bd08c=program[_0x3c7725(0x2dc)](),_0x69f430=await createTDXInstance(_0x4bd08c),_0x9a9cb2=await _0x3a31f7[_0x3c7725(0x26c)]({'options':{..._0x4bd08c,..._0xb37431},'args':[],'tdx':_0x69f430});process[_0x3c7725(0x292)](_0x9a9cb2);}authCmd[a2_0x3b4d01(0x162)](runAuthStatusCommand),authCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x197))['description'](a2_0x3b4d01(0x234))[a2_0x3b4d01(0x162)](runAuthStatusCommand),authCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x245))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1ba))[a2_0x3b4d01(0x36a)]('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_0x3b4d01(0x162)](async _0x28e7a8=>{const _0x155da0=a2_0x3b4d01,_0xf48cf0=new AuthSetupCommand(),_0x34b83a=program['opts'](),_0x42fe41=await createTDXInstance(_0x34b83a),_0x2695ec=await _0xf48cf0['run']({'options':{..._0x34b83a,..._0x28e7a8},'args':[],'tdx':_0x42fe41});process[_0x155da0(0x292)](_0x2695ec);}),authCmd[a2_0x3b4d01(0x350)]('clear')[a2_0x3b4d01(0x178)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x3b4d01(0x36a)](a2_0x3b4d01(0x1c8),'\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')['action'](async _0x239386=>{const _0x527423=a2_0x3b4d01,_0x1ed26e=new AuthClearCommand(),_0x2a147e=program['opts'](),_0x23847c=await _0x1ed26e[_0x527423(0x26c)]({'options':{..._0x2a147e,..._0x239386},'args':[],'tdx':null});process[_0x527423(0x292)](_0x23847c);});const userCmd=program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x188))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x331)),userListAction=async _0xcbde7b=>{const _0xc21f01=a2_0x3b4d01,_0x4287b1=new UserListCommand(),_0xaa03b2=program[_0xc21f01(0x2dc)](),_0x486095=await createTDXInstance(_0xaa03b2),_0x4cb9ab=await _0x4287b1[_0xc21f01(0x26c)]({'options':{..._0xaa03b2,..._0xcbde7b},'args':[],'tdx':_0x486095});process[_0xc21f01(0x292)](_0x4cb9ab);};userCmd[a2_0x3b4d01(0x162)](async _0x366b88=>{const _0xfa16e7=a2_0x3b4d01,_0x345e92=new UserCommand(),_0x51b78a=program['opts'](),_0x2be683=await createTDXInstance(_0x51b78a),_0x4acfdf=await _0x345e92['run']({'options':{..._0x51b78a,..._0x366b88},'args':[],'tdx':_0x2be683});process[_0xfa16e7(0x292)](_0x4acfdf);}),userCmd['command'](a2_0x3b4d01(0x361))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1bb))[a2_0x3b4d01(0x162)](userListAction),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x254))[a2_0x3b4d01(0x178)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')['action'](userListAction),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2ac))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x16a))['action'](async _0x8d3e92=>{const _0x46a8da=a2_0x3b4d01,_0x1f6a6c=new ProfilesCommand(),_0x4178c1=program[_0x46a8da(0x2dc)](),_0x206bf9=await _0x1f6a6c['run']({'options':{..._0x4178c1,..._0x8d3e92},'args':[],'tdx':null});process[_0x46a8da(0x292)](_0x206bf9);});const engageCmd=program['command'](a2_0x3b4d01(0x32f))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2e0)),createEngageAction=_0x4df5e3=>{return async(_0x41cb9d,_0x3cdf3c)=>{const _0x330177=a2_0x37de,_0x2e0c9d=new _0x4df5e3(),_0x17464d=program[_0x330177(0x2dc)](),_0x418777=await createTDXInstance(_0x17464d),_0x1bf63e=await _0x2e0c9d[_0x330177(0x26c)]({'options':{..._0x17464d,..._0x3cdf3c},'args':[_0x41cb9d],'tdx':_0x418777});process[_0x330177(0x292)](_0x1bf63e);};},createEngageNoArgAction=_0x4de8b8=>{return async _0x3adb80=>{const _0x6adb28=a2_0x37de,_0x496b39=new _0x4de8b8(),_0x276673=program[_0x6adb28(0x2dc)](),_0x429ba1=await createTDXInstance(_0x276673),_0x131937=await _0x496b39['run']({'options':{..._0x276673,..._0x3adb80},'args':[],'tdx':_0x429ba1});process[_0x6adb28(0x292)](_0x131937);};},campaignCmd=engageCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x205))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x257)),campaignListAction=async(_0x5b69ac,_0x1635aa)=>{const _0x26a11c=a2_0x3b4d01,_0x4e6376=new EngageCampaignsCommand(),_0x3d86ee=program[_0x26a11c(0x2dc)](),_0x182a34=await createTDXInstance(_0x3d86ee),_0x544126=await _0x4e6376[_0x26a11c(0x26c)]({'options':{..._0x3d86ee,..._0x1635aa},'args':_0x5b69ac?[_0x5b69ac]:[],'tdx':_0x182a34});process[_0x26a11c(0x292)](_0x544126);};campaignCmd['command']('list\x20[pattern]')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2d2))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x236),a2_0x3b4d01(0x1c0))[a2_0x3b4d01(0x175)]('--status\x20<status>',a2_0x3b4d01(0x2ea))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x187),a2_0x3b4d01(0x311))[a2_0x3b4d01(0x162)](campaignListAction),engageCmd['command'](a2_0x3b4d01(0x346))[a2_0x3b4d01(0x178)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x236),a2_0x3b4d01(0x1c0))[a2_0x3b4d01(0x175)]('--status\x20<status>',a2_0x3b4d01(0x2ea))['option'](a2_0x3b4d01(0x187),a2_0x3b4d01(0x311))[a2_0x3b4d01(0x162)](campaignListAction),campaignCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x29b))['description']('Show\x20campaign\x20details')[a2_0x3b4d01(0x175)]('--workspace\x20<name>',a2_0x3b4d01(0x311))['option']('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3b4d01(0x162)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1dc))[a2_0x3b4d01(0x178)]('Create\x20a\x20new\x20campaign')[a2_0x3b4d01(0x2e6)](a2_0x3b4d01(0x20d),a2_0x3b4d01(0x14e))[a2_0x3b4d01(0x2e6)](a2_0x3b4d01(0x236),a2_0x3b4d01(0x20a))['option']('--workspace\x20<name>',a2_0x3b4d01(0x321))['option']('--description\x20<desc>',a2_0x3b4d01(0x320))['option'](a2_0x3b4d01(0x356),a2_0x3b4d01(0x1a0))['option'](a2_0x3b4d01(0x2ab),a2_0x3b4d01(0x286))[a2_0x3b4d01(0x175)]('--json-columns\x20<cols>',a2_0x3b4d01(0x158))[a2_0x3b4d01(0x175)]('--start-at\x20<datetime>',a2_0x3b4d01(0x215))[a2_0x3b4d01(0x175)]('--timezone\x20<tz>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x3b4d01(0x162)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x280))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1b2))[a2_0x3b4d01(0x175)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x3b4d01(0x20d),'New\x20campaign\x20name')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x349),a2_0x3b4d01(0x320))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x356),a2_0x3b4d01(0x1a0))[a2_0x3b4d01(0x175)]('--email-sender-id\x20<id>',a2_0x3b4d01(0x286))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x1a2),a2_0x3b4d01(0x158))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x223),a2_0x3b4d01(0x215))['option'](a2_0x3b4d01(0x226),a2_0x3b4d01(0x219))[a2_0x3b4d01(0x162)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x19d))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1c7))['option'](a2_0x3b4d01(0x187),a2_0x3b4d01(0x311))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x206),a2_0x3b4d01(0x184))[a2_0x3b4d01(0x162)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x30b))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2bc))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x187),a2_0x3b4d01(0x311))[a2_0x3b4d01(0x162)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x192))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x371))['option'](a2_0x3b4d01(0x187),a2_0x3b4d01(0x311))[a2_0x3b4d01(0x162)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3b4d01(0x350)]('resume\x20<name-or-id>')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x14c))['option'](a2_0x3b4d01(0x187),a2_0x3b4d01(0x311))[a2_0x3b4d01(0x162)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x3b4d01(0x16c))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x335))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x3b4d01(0x162)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1ec))['description'](a2_0x3b4d01(0x279)),templateListAction=async(_0xa70f06,_0x162b17)=>{const _0x208f8b=a2_0x3b4d01,_0x4a11d1=new EngageTemplatesCommand(),_0x32d3a8=program[_0x208f8b(0x2dc)](),_0x54517a=await createTDXInstance(_0x32d3a8),_0x54d8cc=await _0x4a11d1[_0x208f8b(0x26c)]({'options':{..._0x32d3a8,..._0x162b17},'args':_0xa70f06?[_0xa70f06]:[],'tdx':_0x54517a});process['exit'](_0x54d8cc);};templateCmd[a2_0x3b4d01(0x350)]('list\x20[pattern]')[a2_0x3b4d01(0x178)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x187),a2_0x3b4d01(0x311))[a2_0x3b4d01(0x162)](templateListAction),engageCmd[a2_0x3b4d01(0x350)]('templates\x20[pattern]')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x210))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x187),a2_0x3b4d01(0x311))[a2_0x3b4d01(0x162)](templateListAction),templateCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x29b))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x2bf))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x187),a2_0x3b4d01(0x311))['option']('--full',a2_0x3b4d01(0x2cc))[a2_0x3b4d01(0x162)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1dc))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1a8))[a2_0x3b4d01(0x2e6)]('--name\x20<name>',a2_0x3b4d01(0x176))[a2_0x3b4d01(0x2e6)](a2_0x3b4d01(0x2a6),'Email\x20subject\x20template')[a2_0x3b4d01(0x2e6)](a2_0x3b4d01(0x281),'HTML\x20template\x20content')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x187),a2_0x3b4d01(0x321))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x276),a2_0x3b4d01(0x195))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x274),a2_0x3b4d01(0x28c))[a2_0x3b4d01(0x162)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x280))[a2_0x3b4d01(0x178)]('Update\x20an\x20email\x20template')[a2_0x3b4d01(0x175)]('--workspace\x20<name>',a2_0x3b4d01(0x311))['option'](a2_0x3b4d01(0x20d),a2_0x3b4d01(0x1da))['option'](a2_0x3b4d01(0x2a6),a2_0x3b4d01(0x2a9))['option']('--html\x20<html>','HTML\x20template\x20content')[a2_0x3b4d01(0x175)]('--plaintext\x20<text>','Plaintext\x20template\x20content')['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('delete\x20<name-or-id>')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1b7))[a2_0x3b4d01(0x175)]('--workspace\x20<name>',a2_0x3b4d01(0x311))[a2_0x3b4d01(0x175)]('--yes',a2_0x3b4d01(0x184))[a2_0x3b4d01(0x162)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x3b4d01(0x34c))[a2_0x3b4d01(0x178)]('Workspace\x20management'),workspaceListAction=async(_0x11389b,_0xded094)=>{const _0x38e2fd=a2_0x3b4d01,_0xd0095e=new EngageWorkspacesCommand(),_0x4475ee=program['opts'](),_0x115639=await createTDXInstance(_0x4475ee),_0x499164=await _0xd0095e['run']({'options':{..._0x4475ee,..._0xded094},'args':_0x11389b?[_0x11389b]:[],'tdx':_0x115639});process[_0x38e2fd(0x292)](_0x499164);};workspaceCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1b8))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x17c))['action'](workspaceListAction),engageCmd['command'](a2_0x3b4d01(0x2d3))[a2_0x3b4d01(0x178)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x3b4d01(0x162)](workspaceListAction),workspaceCmd['command'](a2_0x3b4d01(0x29b))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x164))['option']('--full',a2_0x3b4d01(0x2cc))[a2_0x3b4d01(0x162)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x3b4d01(0x1dc))[a2_0x3b4d01(0x178)]('Create\x20a\x20workspace')['requiredOption']('--name\x20<name>','Workspace\x20name')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x349),'Workspace\x20description')['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x3b4d01(0x280))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x252))[a2_0x3b4d01(0x175)]('--name\x20<name>',a2_0x3b4d01(0x31c))[a2_0x3b4d01(0x175)]('--description\x20<desc>',a2_0x3b4d01(0x301))[a2_0x3b4d01(0x162)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3b4d01(0x350)]('delete\x20<name-or-id>')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x204))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x206),a2_0x3b4d01(0x184))[a2_0x3b4d01(0x162)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x2ae))['description'](a2_0x3b4d01(0x1c3))[a2_0x3b4d01(0x162)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3b4d01(0x350)]('connection')['description'](a2_0x3b4d01(0x325)),connectionListAction=async _0x4ea357=>{const _0x281460=a2_0x3b4d01,_0xe2687e=new ConnectionListCommand(),_0x1be88c=program['opts'](),_0x40ea61=await createTDXInstance(_0x1be88c),_0x264adf=await _0xe2687e['run']({'options':{..._0x1be88c,..._0x4ea357},'args':[],'tdx':_0x40ea61});process[_0x281460(0x292)](_0x264adf);};connectionCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x361))[a2_0x3b4d01(0x178)]('List\x20all\x20data\x20connections')[a2_0x3b4d01(0x162)](connectionListAction),program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x17e),{'hidden':!![]})[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x258))[a2_0x3b4d01(0x162)](connectionListAction),connectionCmd[a2_0x3b4d01(0x350)]('show\x20<name>')['description'](a2_0x3b4d01(0x1eb))['action'](async(_0x257b98,_0x4605e0)=>{const _0x34a163=a2_0x3b4d01,_0x3527a2=new ConnectionShowCommand(),_0x3e3fb0=program[_0x34a163(0x2dc)](),_0x6d5bc5=await createTDXInstance(_0x3e3fb0),_0x5caa0c=await _0x3527a2['run']({'options':{..._0x3e3fb0,..._0x4605e0},'args':[_0x257b98],'tdx':_0x6d5bc5});process[_0x34a163(0x292)](_0x5caa0c);});const journeyCmd=program[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x23f))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x351));journeyCmd['command'](a2_0x3b4d01(0x1b8))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x312))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2fd),'Show\x20web\x20console\x20URLs\x20for\x20journeys')['action'](async(_0x4b8a3e,_0x5de7ed)=>{const _0x2cf8ca=a2_0x3b4d01,_0x4c2622=new JourneyListCommand(),_0x1e17af=program[_0x2cf8ca(0x2dc)](),_0x432631=await createTDXInstance(_0x1e17af),_0x20db20=await _0x4c2622[_0x2cf8ca(0x26c)]({'options':{..._0x1e17af,..._0x5de7ed},'args':_0x4b8a3e?[_0x4b8a3e]:[],'tdx':_0x432631});process['exit'](_0x20db20);}),journeyCmd[a2_0x3b4d01(0x350)]('view\x20<name-or-path>')[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x1e7))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x2fd),'Open\x20journey\x20in\x20web\x20browser')[a2_0x3b4d01(0x175)]('--include-stats',a2_0x3b4d01(0x1ef))['action'](async(_0x34325b,_0x2383d4)=>{const _0x55d438=a2_0x3b4d01,_0x45dee7=new JourneyViewCommand(),_0xe64e48=program[_0x55d438(0x2dc)](),_0x420030=await createTDXInstance(_0xe64e48),_0xaf72fb=await _0x45dee7['run']({'options':{..._0xe64e48,..._0x2383d4},'args':[_0x34325b],'tdx':_0x420030});process[_0x55d438(0x292)](_0xaf72fb);}),journeyCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x24b))['description']('Show\x20journey\x20statistics')[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x174),'Show\x20stats\x20for\x20specific\x20stage')['action'](async(_0x2a5a7f,_0x2ded15)=>{const _0x556917=a2_0x3b4d01,_0xb16114=new JourneyStatsCommand(),_0x26e271=program[_0x556917(0x2dc)](),_0x40beb5=await createTDXInstance(_0x26e271),_0x525064=await _0xb16114['run']({'options':{..._0x26e271,..._0x2ded15},'args':[_0x2a5a7f],'tdx':_0x40beb5});process[_0x556917(0x292)](_0x525064);}),journeyCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x342))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x33a))[a2_0x3b4d01(0x162)](async(_0x39c698,_0x1ca66d)=>{const _0x4fe24a=a2_0x3b4d01,_0x28ab38=new JourneyPauseCommand(),_0x5b42d6=program['opts'](),_0x1704d1=await createTDXInstance(_0x5b42d6),_0x6a30ae=await _0x28ab38[_0x4fe24a(0x26c)]({'options':{..._0x5b42d6,..._0x1ca66d},'args':[_0x39c698],'tdx':_0x1704d1});process[_0x4fe24a(0x292)](_0x6a30ae);}),journeyCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x231))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x22b))[a2_0x3b4d01(0x162)](async(_0x408a36,_0x3ac62b)=>{const _0xd29f60=a2_0x3b4d01,_0x3d8d8f=new JourneyResumeCommand(),_0x1530d8=program[_0xd29f60(0x2dc)](),_0x38e7b7=await createTDXInstance(_0x1530d8),_0x191463=await _0x3d8d8f[_0xd29f60(0x26c)]({'options':{..._0x1530d8,..._0x3ac62b},'args':[_0x408a36],'tdx':_0x38e7b7});process[_0xd29f60(0x292)](_0x191463);}),journeyCmd[a2_0x3b4d01(0x350)](a2_0x3b4d01(0x1b6))[a2_0x3b4d01(0x178)](a2_0x3b4d01(0x21f))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x341),a2_0x3b4d01(0x184))[a2_0x3b4d01(0x175)](a2_0x3b4d01(0x172),a2_0x3b4d01(0x1c4))[a2_0x3b4d01(0x162)](async(_0x18c8c2,_0xc2d276)=>{const _0x2537d5=a2_0x3b4d01,_0x1c3ccf=new JourneyPullCommand(),_0x1f2486=program['opts'](),_0x3b562e=await createTDXInstance(_0x1f2486),_0x5a7290=await _0x1c3ccf[_0x2537d5(0x26c)]({'options':{..._0x1f2486,..._0xc2d276},'args':_0x18c8c2?[_0x18c8c2]:[],'tdx':_0x3b562e});process[_0x2537d5(0x292)](_0x5a7290);}),journeyCmd['command'](a2_0x3b4d01(0x2b7))['description'](a2_0x3b4d01(0x278))[a2_0x3b4d01(0x162)](async(_0x515114,_0x4eb515)=>{const _0x1c0b3=a2_0x3b4d01,_0xdbaf8d=new JourneyPushCommand(),_0x4aed10=program[_0x1c0b3(0x2dc)](),_0x3f4b3c=await createTDXInstance(_0x4aed10),_0x139c81=await _0xdbaf8d['run']({'options':{..._0x4aed10,..._0x4eb515},'args':_0x515114?[_0x515114]:[],'tdx':_0x3f4b3c});process[_0x1c0b3(0x292)](_0x139c81);});export{program};export function runCLI(){const _0x1d014d=a2_0x3b4d01;program['parse'](process['argv']);!process[_0x1d014d(0x2da)]['slice'](0x2)[_0x1d014d(0x36e)]&&program[_0x1d014d(0x370)]();const _0x394739=packageJson[_0x1d014d(0x2af)];process['stderr'][_0x1d014d(0x25e)]&&process[_0x1d014d(0x2da)][_0x1d014d(0x36e)]>0x2&&!_0x394739[_0x1d014d(0x294)](_0x1d014d(0x264))&&checkForUpdate(_0x394739)[_0x1d014d(0x2ce)](_0x2a1ccb=>{_0x2a1ccb&&displayUpdateNotification(_0x2a1ccb);})['catch'](()=>{});}