@treasuredata/tdx 0.8.7 → 0.8.8

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 (114) 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.js +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.js +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-api-client.js +1 -1
  11. package/dist/client/trino-api-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/api-command.js +1 -1
  15. package/dist/commands/auth-command.js +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.d.ts.map +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/claude-command.js.map +1 -1
  20. package/dist/commands/claude-statusline-command.js +1 -1
  21. package/dist/commands/claude-usage-command.js +1 -1
  22. package/dist/commands/command.js +1 -1
  23. package/dist/commands/connection-command.js +1 -1
  24. package/dist/commands/context-command.js +1 -1
  25. package/dist/commands/databases.js +1 -1
  26. package/dist/commands/describe.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/llm-proxy.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/profiles-command.js +1 -1
  34. package/dist/commands/query-command.js +1 -1
  35. package/dist/commands/segment-command.js +1 -1
  36. package/dist/commands/segment-create-command.js +1 -1
  37. package/dist/commands/segment-fields-command.js +1 -1
  38. package/dist/commands/segment-pull-command.js +1 -1
  39. package/dist/commands/segment-push-command.js +1 -1
  40. package/dist/commands/segment-update-command.js +1 -1
  41. package/dist/commands/segment-use-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/use-command.js +1 -1
  46. package/dist/commands/user-command.js +1 -1
  47. package/dist/commands/workflow-command.js +1 -1
  48. package/dist/core/auth.js +1 -1
  49. package/dist/core/config.js +1 -1
  50. package/dist/core/connection-cache.js +1 -1
  51. package/dist/core/credential-cache.js +1 -1
  52. package/dist/core/global-context.js +1 -1
  53. package/dist/core/keychain.js +1 -1
  54. package/dist/core/profile.js +1 -1
  55. package/dist/core/project-config.js +1 -1
  56. package/dist/core/session.js +1 -1
  57. package/dist/core/user-cache.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/proxy/anthropic-adapter.js +1 -1
  60. package/dist/proxy/claude-usage-tracker.js +1 -1
  61. package/dist/proxy/context-signature.js +1 -1
  62. package/dist/proxy/conversation-utils.js +1 -1
  63. package/dist/proxy/server.js +1 -1
  64. package/dist/proxy/session-cache.js +1 -1
  65. package/dist/sdk/api.js +1 -1
  66. package/dist/sdk/connection.js +1 -1
  67. package/dist/sdk/engage.js +1 -1
  68. package/dist/sdk/errors.js +1 -1
  69. package/dist/sdk/index.js +1 -1
  70. package/dist/sdk/job.js +1 -1
  71. package/dist/sdk/journey.js +1 -1
  72. package/dist/sdk/llm.js +1 -1
  73. package/dist/sdk/query.js +1 -1
  74. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  75. package/dist/sdk/segment/journey-yaml.js +1 -1
  76. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  77. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  78. package/dist/sdk/segment.js +1 -1
  79. package/dist/sdk/user.js +1 -1
  80. package/dist/sdk/workflow.js +1 -1
  81. package/dist/types/endpoints.js +1 -1
  82. package/dist/types/index.js +1 -1
  83. package/dist/utils/agent-ref-parser.js +1 -1
  84. package/dist/utils/async.js +1 -1
  85. package/dist/utils/chat-cache.js +1 -1
  86. package/dist/utils/colors.js +1 -1
  87. package/dist/utils/command-output.js +1 -1
  88. package/dist/utils/constants.js +1 -1
  89. package/dist/utils/diff.js +1 -1
  90. package/dist/utils/fields-display.js +1 -1
  91. package/dist/utils/file-permissions.js +1 -1
  92. package/dist/utils/format-detector.js +1 -1
  93. package/dist/utils/formatters.js +1 -1
  94. package/dist/utils/json-loader.js +1 -1
  95. package/dist/utils/llm-backup-utils.js +1 -1
  96. package/dist/utils/model-aliases.js +1 -1
  97. package/dist/utils/model-factors.js +1 -1
  98. package/dist/utils/option-validation.js +1 -1
  99. package/dist/utils/port.js +1 -1
  100. package/dist/utils/process.js +1 -1
  101. package/dist/utils/prompt.js +1 -1
  102. package/dist/utils/segment-path-parser.js +1 -1
  103. package/dist/utils/segment-ref-parser.js +1 -1
  104. package/dist/utils/spinner.js +1 -1
  105. package/dist/utils/sql-parser.js +1 -1
  106. package/dist/utils/sse-parser.js +1 -1
  107. package/dist/utils/string-utils.js +1 -1
  108. package/dist/utils/table-ref-parser.js +1 -1
  109. package/dist/utils/tdx-config.js +1 -1
  110. package/dist/utils/tdx-logger.js +1 -1
  111. package/dist/utils/tree-formatter.js +1 -1
  112. package/dist/utils/version-check.js +1 -1
  113. package/dist/utils/workflow-utils.js +1 -1
  114. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a0_0x3287(){var _0x49b73c=['816215iHgrAl','4256916VukKAO','39681DoqdOy','1167756sSRiDr','55254yjkINu','26222760mPfvDM','574NMapPU','2903715VqLQuL','2WtQWJr','64BYUOBA'];a0_0x3287=function(){return _0x49b73c;};return a0_0x3287();}(function(_0x3677a7,_0x2e69b6){var _0x1d6040=a0_0x5212,_0x23aba2=_0x3677a7();while(!![]){try{var _0x5958e9=parseInt(_0x1d6040(0xbe))/0x1+-parseInt(_0x1d6040(0xbc))/0x2*(parseInt(_0x1d6040(0xc1))/0x3)+-parseInt(_0x1d6040(0xbf))/0x4+-parseInt(_0x1d6040(0xbb))/0x5+-parseInt(_0x1d6040(0xc2))/0x6*(parseInt(_0x1d6040(0xba))/0x7)+-parseInt(_0x1d6040(0xbd))/0x8*(-parseInt(_0x1d6040(0xc0))/0x9)+parseInt(_0x1d6040(0xc3))/0xa;if(_0x5958e9===_0x2e69b6)break;else _0x23aba2['push'](_0x23aba2['shift']());}catch(_0x13bbf5){_0x23aba2['push'](_0x23aba2['shift']());}}}(a0_0x3287,0xa7171));function a0_0x5212(_0x715553,_0x2ef564){_0x715553=_0x715553-0xba;var _0x32878d=a0_0x3287();var _0x521207=_0x32878d[_0x715553];return _0x521207;}import{runCLI}from'./cli.js';runCLI();
2
+ function a0_0x35bd(_0x29c0b2,_0x257bf6){_0x29c0b2=_0x29c0b2-0x13a;var _0x766dc0=a0_0x766d();var _0x35bd11=_0x766dc0[_0x29c0b2];return _0x35bd11;}(function(_0x370fa3,_0x38976d){var _0x331076=a0_0x35bd,_0x23cc0c=_0x370fa3();while(!![]){try{var _0x4466ce=parseInt(_0x331076(0x13d))/0x1*(parseInt(_0x331076(0x142))/0x2)+-parseInt(_0x331076(0x13b))/0x3+parseInt(_0x331076(0x13c))/0x4*(parseInt(_0x331076(0x13f))/0x5)+parseInt(_0x331076(0x13a))/0x6+parseInt(_0x331076(0x13e))/0x7+-parseInt(_0x331076(0x140))/0x8+-parseInt(_0x331076(0x141))/0x9;if(_0x4466ce===_0x38976d)break;else _0x23cc0c['push'](_0x23cc0c['shift']());}catch(_0x1c6e79){_0x23cc0c['push'](_0x23cc0c['shift']());}}}(a0_0x766d,0x36bfe));import{runCLI}from'./cli.js';function a0_0x766d(){var _0x370073=['5253597FMmBeq','13666WICYWU','1677174HMjSPA','572244yikQCO','824ycmvkl','11ymeOBB','2822372piWSuf','6635rFANOH','260120UgzaJH'];a0_0x766d=function(){return _0x370073;};return a0_0x766d();}runCLI();
@@ -1,4 +1,4 @@
1
1
  {
2
- "gitRevision": "4690627",
3
- "buildTime": "2025-12-12 21:17:13+0000"
2
+ "gitRevision": "0b99e39",
3
+ "buildTime": "2025-12-12 21:38:03+0000"
4
4
  }
@@ -1 +1 @@
1
- const a1_0x141279=a1_0x9c07;(function(_0x376150,_0x491f65){const _0x471420=a1_0x9c07,_0xa8153=_0x376150();while(!![]){try{const _0x29d0c5=-parseInt(_0x471420(0xc3))/0x1+-parseInt(_0x471420(0xd2))/0x2+parseInt(_0x471420(0xcf))/0x3*(parseInt(_0x471420(0xe2))/0x4)+parseInt(_0x471420(0xdd))/0x5+-parseInt(_0x471420(0xdf))/0x6+parseInt(_0x471420(0xc6))/0x7*(-parseInt(_0x471420(0xe1))/0x8)+parseInt(_0x471420(0xd8))/0x9*(parseInt(_0x471420(0xe0))/0xa);if(_0x29d0c5===_0x491f65)break;else _0xa8153['push'](_0xa8153['shift']());}catch(_0x26ac99){_0xa8153['push'](_0xa8153['shift']());}}}(a1_0x3e87,0x1f4cb));import a1_0x25c8de from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x141279(0xd4),'colorFn':a1_0x25c8de[a1_0x141279(0xce)],'commands':[a1_0x141279(0xc8),'table','show',a1_0x141279(0xd0),a1_0x141279(0xd1),a1_0x141279(0xcc),a1_0x141279(0xbd)]},{'name':a1_0x141279(0xbf),'colorFn':a1_0x25c8de[a1_0x141279(0xdb)],'commands':[a1_0x141279(0xd7),a1_0x141279(0xd6),'journey',a1_0x141279(0xc9),a1_0x141279(0xc7),a1_0x141279(0xc1)]},{'name':'AI','colorFn':a1_0x25c8de[a1_0x141279(0xc5)],'commands':[a1_0x141279(0xd5),a1_0x141279(0xdc),a1_0x141279(0xc2),a1_0x141279(0xbe)]},{'name':a1_0x141279(0xd3),'colorFn':a1_0x25c8de[a1_0x141279(0xe3)],'commands':[a1_0x141279(0xca),a1_0x141279(0xd9),a1_0x141279(0xde),a1_0x141279(0xda),a1_0x141279(0xcd),a1_0x141279(0xc0)]},{'name':a1_0x141279(0xcb),'colorFn':a1_0x25c8de[a1_0x141279(0xc4)],'commands':['api']}];function a1_0x9c07(_0xe955b7,_0x12d8e0){_0xe955b7=_0xe955b7-0xbd;const _0x3e87c8=a1_0x3e87();let _0x9c07c7=_0x3e87c8[_0xe955b7];return _0x9c07c7;}function a1_0x3e87(){const _0x58d3b1=['Context','Data','chat','parent-segment','segment','488628ODatlT','use','auth','magenta','chats','945410koGsEZ','profiles','1109808lZNMjf','70VLJtMg','360QeEBJS','103196DGccBL','yellow','workflow','claude','CDP','users','connection','llm','215394IJFLTB','green','cyan','15855apfrOq','engage','database','activations','context','Utilities','job','user','blue','18oXICoh','describe','query','186860uCFEfw'];a1_0x3e87=function(){return _0x58d3b1;};return a1_0x3e87();}
1
+ const a1_0x459716=a1_0x3d88;(function(_0x26e04b,_0x33bcd9){const _0x53ab56=a1_0x3d88,_0x329866=_0x26e04b();while(!![]){try{const _0xf20deb=parseInt(_0x53ab56(0x17b))/0x1+parseInt(_0x53ab56(0x161))/0x2*(-parseInt(_0x53ab56(0x177))/0x3)+parseInt(_0x53ab56(0x17d))/0x4*(-parseInt(_0x53ab56(0x166))/0x5)+parseInt(_0x53ab56(0x165))/0x6*(-parseInt(_0x53ab56(0x175))/0x7)+parseInt(_0x53ab56(0x16b))/0x8*(parseInt(_0x53ab56(0x16e))/0x9)+parseInt(_0x53ab56(0x174))/0xa*(parseInt(_0x53ab56(0x162))/0xb)+parseInt(_0x53ab56(0x163))/0xc;if(_0xf20deb===_0x33bcd9)break;else _0x329866['push'](_0x329866['shift']());}catch(_0x4b408a){_0x329866['push'](_0x329866['shift']());}}}(a1_0x3f36,0x53248));import a1_0x214762 from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x459716(0x17e),'colorFn':a1_0x214762[a1_0x459716(0x16d)],'commands':['database','table',a1_0x459716(0x169),'describe',a1_0x459716(0x173),'job',a1_0x459716(0x179)]},{'name':'CDP','colorFn':a1_0x214762[a1_0x459716(0x16c)],'commands':[a1_0x459716(0x167),a1_0x459716(0x170),a1_0x459716(0x17c),a1_0x459716(0x16a),'engage',a1_0x459716(0x160)]},{'name':'AI','colorFn':a1_0x214762[a1_0x459716(0x172)],'commands':[a1_0x459716(0x164),a1_0x459716(0x180),'llm',a1_0x459716(0x168)]},{'name':a1_0x459716(0x16f),'colorFn':a1_0x214762['yellow'],'commands':['context',a1_0x459716(0x17f),a1_0x459716(0x176),'auth',a1_0x459716(0x178),a1_0x459716(0x17a)]},{'name':a1_0x459716(0x171),'colorFn':a1_0x214762['green'],'commands':['api']}];function a1_0x3d88(_0x260eee,_0x5b50dc){_0x260eee=_0x260eee-0x160;const _0x3f3606=a1_0x3f36();let _0x3d8846=_0x3f3606[_0x260eee];return _0x3d8846;}function a1_0x3f36(){const _0x1dec4b=['21415cMjKkw','segment','claude','show','activations','274088JblYbs','magenta','blue','126Lwrobl','Context','parent-segment','Utilities','cyan','query','3971810vCxkqF','14cypWhW','profiles','582NQhQRy','user','workflow','users','595438mbnfKu','journey','196EAVZnv','Data','use','chats','connection','6570FfqYpt','11iMcCQH','2674296xOVjOQ','chat','1522266frjFfm'];a1_0x3f36=function(){return _0x1dec4b;};return a1_0x3f36();}
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x2c0ee8=a2_0x1ee3;(function(_0x5cec13,_0x4204c5){const _0x55e353=a2_0x1ee3,_0x5b1be7=_0x5cec13();while(!![]){try{const _0x1e415c=parseInt(_0x55e353(0x1ce))/0x1+-parseInt(_0x55e353(0x27d))/0x2+-parseInt(_0x55e353(0x3bc))/0x3+parseInt(_0x55e353(0x246))/0x4*(parseInt(_0x55e353(0x254))/0x5)+-parseInt(_0x55e353(0x370))/0x6+-parseInt(_0x55e353(0x250))/0x7+parseInt(_0x55e353(0x34a))/0x8;if(_0x1e415c===_0x4204c5)break;else _0x5b1be7['push'](_0x5b1be7['shift']());}catch(_0x2cba20){_0x5b1be7['push'](_0x5b1be7['shift']());}}}(a2_0x38f5,0x9742e));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}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_0x2c0ee8(0x284)](readFileSync(join(__dirname,a2_0x2c0ee8(0x324)),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0x2c0ee8(0x284)](readFileSync(join(__dirname,a2_0x2c0ee8(0x3ce)),a2_0x2c0ee8(0x387)));}catch{}if(process[a2_0x2c0ee8(0x301)][a2_0x2c0ee8(0x375)]('--version')){let versionOutput=a2_0x2c0ee8(0x1fe)+packageJson['version'];buildInfo[a2_0x2c0ee8(0x2fd)]&&(versionOutput+='\x20('+buildInfo[a2_0x2c0ee8(0x2fd)]+')'),buildInfo[a2_0x2c0ee8(0x2ef)]&&(versionOutput+=a2_0x2c0ee8(0x3a6)+buildInfo[a2_0x2c0ee8(0x2ef)]),console[a2_0x2c0ee8(0x2fe)](versionOutput),process[a2_0x2c0ee8(0x37f)](0x0);}const program=new Command();let description=a2_0x2c0ee8(0x388);buildInfo[a2_0x2c0ee8(0x2fd)]?description+=a2_0x2c0ee8(0x3cf)+packageJson[a2_0x2c0ee8(0x350)]+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x2c0ee8(0x3cf)+packageJson[a2_0x2c0ee8(0x350)];program[a2_0x2c0ee8(0x2bb)]('tdx')[a2_0x2c0ee8(0x3b9)](description),program[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x397),a2_0x2c0ee8(0x2d3))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x342),a2_0x2c0ee8(0x317),a2_0x2c0ee8(0x1c2))[a2_0x2c0ee8(0x1d1)]('--format\x20<format>',a2_0x2c0ee8(0x1c3))['option'](a2_0x2c0ee8(0x392),a2_0x2c0ee8(0x352))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2d0),a2_0x2c0ee8(0x35f))['option'](a2_0x2c0ee8(0x39a),a2_0x2c0ee8(0x21e))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x30b),a2_0x2c0ee8(0x36a))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x27b),a2_0x2c0ee8(0x249))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x28c),a2_0x2c0ee8(0x34b))['option'](a2_0x2c0ee8(0x314),a2_0x2c0ee8(0x1da),![])[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x29c),a2_0x2c0ee8(0x335),![])[a2_0x2c0ee8(0x1d1)]('-v,\x20--verbose',a2_0x2c0ee8(0x1e8),![])[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x226),a2_0x2c0ee8(0x280))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1bd),a2_0x2c0ee8(0x274))[a2_0x2c0ee8(0x1d1)]('--timeout\x20<seconds>',a2_0x2c0ee8(0x287),'30')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x34f),a2_0x2c0ee8(0x3a1),![])[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2e4),'Skip\x20confirmation\x20prompts',![])['option'](a2_0x2c0ee8(0x241),a2_0x2c0ee8(0x31f))['option']('-d,\x20--database\x20<name>',a2_0x2c0ee8(0x30f))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2e2),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x2c0ee8(0x322),a2_0x2c0ee8(0x2d2))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1c6),a2_0x2c0ee8(0x23e)),program[a2_0x2c0ee8(0x275)]({'formatHelp':(_0x4416a8,_0xa09b7d)=>{const _0x34f5c6=a2_0x2c0ee8,_0x3c023a=_0xa09b7d[_0x34f5c6(0x2f4)](_0x4416a8,_0xa09b7d),_0x15b14c=0x2,_0x493d6b=0x2;function _0x225c9c(_0x18b401){const _0x32d6f1=_0x34f5c6,_0x46d108=_0x18b401;return!!(_0x46d108[_0x32d6f1(0x385)]||_0x46d108[_0x32d6f1(0x207)]);}function _0x177924(_0x165720,_0x162e0a){const _0x1ce324=_0x34f5c6;if(_0x162e0a){const _0x1575ab=''+_0x165720[_0x1ce324(0x212)](_0x3c023a+_0x493d6b)+_0x162e0a;return _0x1575ab;}return _0x165720;}function _0x200318(_0x550fe3){const _0x3c7473=_0x34f5c6;return _0x550fe3['join']('\x0a')[_0x3c7473(0x26c)](/^/gm,'\x20'['repeat'](_0x15b14c));}const _0x446e34=[];_0x446e34['push'](_0x34f5c6(0x2a6)+_0xa09b7d[_0x34f5c6(0x1cd)](_0x4416a8));const _0x4ab065=_0xa09b7d[_0x34f5c6(0x209)](_0x4416a8);_0x4ab065&&(_0x446e34[_0x34f5c6(0x3c2)](''),_0x446e34[_0x34f5c6(0x3c2)](_0x4ab065));const _0x5bdfaa=_0x4416a8[_0x34f5c6(0x340)][_0x34f5c6(0x232)](_0x2dedf8=>!_0x225c9c(_0x2dedf8));if(_0x5bdfaa[_0x34f5c6(0x323)]>0x0){if(_0x4416a8[_0x34f5c6(0x2bb)]()==='tdx'){const _0x458f23=_0x4416a8['opts'](),_0x4c1393=!_0x458f23[_0x34f5c6(0x1e5)]&&process[_0x34f5c6(0x319)][_0x34f5c6(0x23c)],_0xd713ff=COMMAND_CATEGORIES,_0x92af1c=(_0x7386d5,_0x5c3ab6)=>_0x4c1393?_0x5c3ab6(_0x7386d5):_0x7386d5,_0x45f314=new Map();_0x5bdfaa[_0x34f5c6(0x2e6)](_0x23afe7=>{const _0x349dd1=_0x34f5c6;_0x45f314['set'](_0x23afe7[_0x349dd1(0x2bb)](),_0x23afe7);}),_0xd713ff['forEach'](_0x28121d=>{const _0x17e252=_0x34f5c6,_0x1d9d96=_0x28121d['commands'][_0x17e252(0x20a)](_0xfd582e=>_0x45f314['get'](_0xfd582e)??[]);if(_0x1d9d96['length']>0x0){_0x446e34[_0x17e252(0x3c2)](''),_0x446e34['push'](_0x92af1c(_0x28121d[_0x17e252(0x2bb)]+':',_0x28121d[_0x17e252(0x33c)]));const _0x4c6540=_0x1d9d96[_0x17e252(0x242)](_0x1e7e55=>{const _0xd1865=_0xa09b7d['subcommandTerm'](_0x1e7e55),_0x2e3846=_0xa09b7d['subcommandDescription'](_0x1e7e55);return _0x177924(_0xd1865,_0x2e3846);});_0x446e34['push'](_0x200318(_0x4c6540));}}),_0x446e34['push'](''),_0x446e34['push'](_0x34f5c6(0x2b0));}else{const _0x383f8b=_0x5bdfaa[_0x34f5c6(0x242)](_0x37d20a=>{const _0x1a05ab=_0x34f5c6,_0x22004d=_0xa09b7d[_0x1a05ab(0x3c9)](_0x37d20a),_0x1ca598=_0xa09b7d['subcommandDescription'](_0x37d20a);return _0x177924(_0x22004d,_0x1ca598);});_0x446e34[_0x34f5c6(0x3c2)](''),_0x446e34[_0x34f5c6(0x3c2)](_0x34f5c6(0x1d8)),_0x446e34[_0x34f5c6(0x3c2)](_0x200318(_0x383f8b));}}const _0x4d8f9f=_0x4416a8[_0x34f5c6(0x1ef)][_0x34f5c6(0x232)](_0x159210=>!_0x225c9c(_0x159210));if(_0x4d8f9f[_0x34f5c6(0x323)]>0x0){const _0x6ee1ec=_0x4d8f9f[_0x34f5c6(0x242)](_0xc6affe=>{const _0x1be493=_0x34f5c6,_0x5a496b=_0xa09b7d[_0x1be493(0x28f)](_0xc6affe),_0x2c1fcc=_0xa09b7d[_0x1be493(0x3bf)](_0xc6affe);return _0x177924(_0x5a496b,_0x2c1fcc);});_0x446e34[_0x34f5c6(0x3c2)](''),_0x446e34[_0x34f5c6(0x3c2)](_0x34f5c6(0x35a)),_0x446e34[_0x34f5c6(0x3c2)](_0x200318(_0x6ee1ec));}const _0x2f467a=(_0x4416a8[_0x34f5c6(0x248)]||[])[_0x34f5c6(0x232)](_0x3e063d=>!_0x225c9c(_0x3e063d));if(_0x2f467a[_0x34f5c6(0x323)]>0x0){const _0x290d8f=_0x2f467a[_0x34f5c6(0x242)](_0x3e4b3e=>{const _0x4e89ff=_0x34f5c6,_0x1c88fa=_0xa09b7d[_0x4e89ff(0x228)](_0x3e4b3e),_0x3cc1b8=_0xa09b7d[_0x4e89ff(0x220)](_0x3e4b3e);return _0x177924(_0x1c88fa,_0x3cc1b8);});_0x446e34[_0x34f5c6(0x3c2)](''),_0x446e34[_0x34f5c6(0x3c2)](_0x34f5c6(0x36c)),_0x446e34[_0x34f5c6(0x3c2)](_0x200318(_0x290d8f));}return _0x446e34[_0x34f5c6(0x37d)]('\x0a');},'subcommandTerm':_0x401c80=>{const _0x461bcd=a2_0x2c0ee8,_0x6e9cd8=(_0x401c80[_0x461bcd(0x248)]||[])['map'](_0x346135=>_0x346135[_0x461bcd(0x30d)]?'<'+_0x346135[_0x461bcd(0x2bb)]()+'>':'['+_0x346135[_0x461bcd(0x2bb)]()+']')[_0x461bcd(0x37d)]('\x20'),_0x3bfed6=_0x401c80[_0x461bcd(0x2d9)](),_0x250aa6=_0x3bfed6['length']>0x0?_0x401c80[_0x461bcd(0x2bb)]()+',\x20'+_0x3bfed6[_0x461bcd(0x37d)](',\x20'):_0x401c80['name']();return _0x6e9cd8?_0x250aa6+'\x20'+_0x6e9cd8:_0x250aa6;}}),program[a2_0x2c0ee8(0x34c)](a2_0x2c0ee8(0x2d5),_0x21830d=>{const _0x247295=a2_0x2c0ee8,_0x36557b=_0x21830d[_0x247295(0x2fb)]();if(!_0x36557b[_0x247295(0x27e)]){if(_0x36557b[_0x247295(0x21b)])_0x36557b[_0x247295(0x27e)]=_0x247295(0x21b);else{if(_0x36557b[_0x247295(0x1f3)])_0x36557b[_0x247295(0x27e)]=_0x247295(0x1f3);else{if(_0x36557b['jsonl'])_0x36557b[_0x247295(0x27e)]=_0x247295(0x216);else _0x36557b[_0x247295(0x321)]&&(_0x36557b[_0x247295(0x27e)]=_0x247295(0x321));}}}_0x36557b['in']&&!_0x36557b[_0x247295(0x245)]&&(_0x36557b[_0x247295(0x245)]=_0x36557b['in']);if(_0x36557b[_0x247295(0x22c)])_0x36557b[_0x247295(0x1cf)]=LogLevel[_0x247295(0x26f)];else{if(_0x36557b[_0x247295(0x1f0)])_0x36557b[_0x247295(0x1cf)]=LogLevel['DEBUG'];else _0x36557b[_0x247295(0x1cf)]===undefined&&(_0x36557b[_0x247295(0x1cf)]=LogLevel[_0x247295(0x2e5)]);}});async function createTDXInstance(_0x56e25b){const _0x472d61=a2_0x2c0ee8,_0x3ddf6a=await GlobalContext[_0x472d61(0x332)](_0x56e25b);return _0x3ddf6a[_0x472d61(0x3d7)](_0x56e25b),TDX[_0x472d61(0x39d)]({'site':_0x3ddf6a[_0x472d61(0x267)],'apiKey':_0x3ddf6a['apiKey'],'logLevel':_0x3ddf6a['logLevel'],'profile':_0x3ddf6a[_0x472d61(0x285)]});}const databaseCmd=program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x245))[a2_0x2c0ee8(0x256)]('db')[a2_0x2c0ee8(0x3b9)]('Database\x20management\x20commands'),databaseListAction=async(_0x11a46e,_0x5b8010)=>{const _0x334b6c=a2_0x2c0ee8,_0x4b18ee=new DatabasesCommand(),_0x54c685=program[_0x334b6c(0x2fb)](),_0x1bd76a=await createTDXInstance(_0x54c685),_0x3fef02=await _0x4b18ee[_0x334b6c(0x39c)]({'options':{..._0x54c685,..._0x5b8010},'args':_0x11a46e?[_0x11a46e]:[],'tdx':_0x1bd76a});process['exit'](_0x3fef02);};databaseCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f1))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2ac))['action'](databaseListAction),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x3ca),{'hidden':!![]})[a2_0x2c0ee8(0x3b9)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x2c0ee8(0x32a)](databaseListAction),program['command'](a2_0x2c0ee8(0x2b1))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3cb))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x366),'Agent\x20reference\x20(project-name/agent-name)')['option'](a2_0x2c0ee8(0x38a),a2_0x2c0ee8(0x38f))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3ae),'Temperature\x20(0.0-2.0,\x20default:\x200.7)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x316),a2_0x2c0ee8(0x33d))['action'](async(_0x4d6e53,_0x43ff3c)=>{const _0x26feff=a2_0x2c0ee8,_0x30b20f=new ChatCommand(),_0x360878=program[_0x26feff(0x2fb)](),_0xfd6b61=await createTDXInstance(_0x360878),_0x3b53cf=await _0x30b20f[_0x26feff(0x39c)]({'options':{..._0x360878,..._0x43ff3c},'args':_0x4d6e53,'tdx':_0xfd6b61});process[_0x26feff(0x37f)](_0x3b53cf);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x2c0ee8(0x371)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x2c0ee8(0x2c7)](a2_0x2c0ee8(0x30c),a2_0x2c0ee8(0x390))[a2_0x2c0ee8(0x1d1)]('-X,\x20--method\x20<method>',a2_0x2c0ee8(0x283),a2_0x2c0ee8(0x1ea))['option']('--data\x20<data>',a2_0x2c0ee8(0x3d3))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1be),a2_0x2c0ee8(0x3a0))['option']('-H,\x20--header\x20<header>',a2_0x2c0ee8(0x377),(_0x5483a4,_0x1d4eba)=>{return _0x1d4eba?[..._0x1d4eba,_0x5483a4]:[_0x5483a4];})[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x372),a2_0x2c0ee8(0x330),'td')[a2_0x2c0ee8(0x32a)](async(_0x34f5cf,_0x2bbb07)=>{const _0x381eb4=a2_0x2c0ee8;if(!_0x34f5cf){apiCmd['help']();return;}const _0x1e6858=new ApiCommand(),_0x3d24a3=program[_0x381eb4(0x2fb)](),_0x267a44=await createTDXInstance(_0x3d24a3),_0x4fbdf0=await _0x1e6858[_0x381eb4(0x39c)]({'options':{..._0x3d24a3,..._0x2bbb07},'args':[_0x34f5cf],'tdx':_0x267a44});process[_0x381eb4(0x37f)](_0x4fbdf0);}),tableCmd=program['command']('table')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x276)),tableListAction=async(_0x3502ad,_0x34388f)=>{const _0xdb2738=a2_0x2c0ee8,_0x240d9e=new TablesCommand(),_0x3b5748=program[_0xdb2738(0x2fb)](),_0x3cadca=await createTDXInstance(_0x3b5748);_0x34388f['in']&&(_0x34388f[_0xdb2738(0x245)]=_0x34388f['in']);const _0x594cec=await _0x240d9e[_0xdb2738(0x39c)]({'options':{..._0x3b5748,..._0x34388f},'args':_0x3502ad?[_0x3502ad]:[],'tdx':_0x3cadca});process[_0xdb2738(0x37f)](_0x594cec);};tableCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f1))['description']('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x277),a2_0x2c0ee8(0x281))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x381),a2_0x2c0ee8(0x27c))[a2_0x2c0ee8(0x32a)](tableListAction),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1df),{'hidden':!![]})['description'](a2_0x2c0ee8(0x356))['option'](a2_0x2c0ee8(0x277),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x381),a2_0x2c0ee8(0x27c))[a2_0x2c0ee8(0x32a)](tableListAction),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x236))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x264))[a2_0x2c0ee8(0x1d1)]('-d,\x20--database\x20<database>',a2_0x2c0ee8(0x229))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x381),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x2c0ee8(0x32a)](async(_0x503d44,_0x35ae96)=>{const _0x3c4885=a2_0x2c0ee8,_0x5205d4=new ShowCommand(),_0x53a245=program[_0x3c4885(0x2fb)](),_0x7afb76=await createTDXInstance(_0x53a245);_0x35ae96['in']&&(_0x35ae96['database']=_0x35ae96['in']);const _0x4c9d9b=await _0x5205d4[_0x3c4885(0x39c)]({'options':{..._0x53a245,..._0x35ae96},'args':_0x503d44?[_0x503d44]:[],'tdx':_0x7afb76});process['exit'](_0x4c9d9b);}),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2f2))[a2_0x2c0ee8(0x256)](a2_0x2c0ee8(0x294))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x347))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x277),a2_0x2c0ee8(0x229))['option'](a2_0x2c0ee8(0x381),a2_0x2c0ee8(0x27c))[a2_0x2c0ee8(0x32a)](async(_0x2d4439,_0x1eb542)=>{const _0x17d522=a2_0x2c0ee8,_0x2c03c6=new DescribeCommand(),_0x403565=program[_0x17d522(0x2fb)](),_0x481b3b=await createTDXInstance(_0x403565);_0x1eb542['in']&&(_0x1eb542[_0x17d522(0x245)]=_0x1eb542['in']);const _0x17a2dc=await _0x2c03c6['run']({'options':{..._0x403565,..._0x1eb542},'args':_0x2d4439?[_0x2d4439]:[],'tdx':_0x481b3b});process[_0x17d522(0x37f)](_0x17a2dc);}),program['command'](a2_0x2c0ee8(0x233))[a2_0x2c0ee8(0x3b9)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x277),a2_0x2c0ee8(0x33f))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x381),a2_0x2c0ee8(0x27c))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1ec),a2_0x2c0ee8(0x31c))['option']('-f,\x20--file\x20<path>','Read\x20SQL\x20query\x20from\x20file')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x391),a2_0x2c0ee8(0x296),'40')[a2_0x2c0ee8(0x32a)](async(_0x427750,_0x35876b)=>{const _0x585f14=a2_0x2c0ee8,_0x53a746=new QueryCommand(),_0x411a81=program[_0x585f14(0x2fb)](),_0x47bf9d=await createTDXInstance(_0x411a81);_0x35876b['in']&&(_0x35876b[_0x585f14(0x245)]=_0x35876b['in']);const _0xd693d1=await _0x53a746[_0x585f14(0x39c)]({'options':{..._0x411a81,..._0x35876b},'args':_0x427750?[_0x427750]:[],'tdx':_0x47bf9d});process[_0x585f14(0x37f)](_0xd693d1);});const segmentCmd=program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x3c6))['alias']('sg')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x348)),segmentListAction=async(_0xbf1ac7,_0xe008e6)=>{const _0x1ea390=a2_0x2c0ee8,_0x3ff13e=new SegmentsCommand(),_0x2f9456=program[_0x1ea390(0x2fb)](),_0x313613=await createTDXInstance(_0x2f9456),_0xd0bd6a=await _0x3ff13e[_0x1ea390(0x39c)]({'options':{..._0x2f9456,..._0xe008e6},'args':_0xbf1ac7?[_0xbf1ac7]:[],'tdx':_0x313613});process[_0x1ea390(0x37f)](_0xd0bd6a);};segmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x27a))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x1e7))[a2_0x2c0ee8(0x1d1)]('-r,\x20--recursive',a2_0x2c0ee8(0x28a))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1ee),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['option']('-w,\x20--web',a2_0x2c0ee8(0x378))[a2_0x2c0ee8(0x32a)](segmentListAction),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x234),{'hidden':!![]})['description'](a2_0x2c0ee8(0x346))['option']('-r,\x20--recursive',a2_0x2c0ee8(0x28a))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1ee),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['option']('-w,\x20--web',a2_0x2c0ee8(0x378))[a2_0x2c0ee8(0x32a)](segmentListAction),segmentCmd[a2_0x2c0ee8(0x3b1)]('use\x20<path>',{'hidden':!![]})[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3af))[a2_0x2c0ee8(0x32a)](async(_0x3f1d2e,_0x9d35a0)=>{const _0x1f07b3=a2_0x2c0ee8,_0x17ac49=new SegmentUseCommand(),_0x3cec27=program[_0x1f07b3(0x2fb)](),_0x250b29=await createTDXInstance(_0x3cec27),_0x25f3c8=await _0x17ac49[_0x1f07b3(0x39c)]({'options':{..._0x3cec27,..._0x9d35a0},'args':[_0x3f1d2e],'tdx':_0x250b29});process[_0x1f07b3(0x37f)](_0x25f3c8);});const segmentViewAction=async(_0x4614f4,_0x4feb6c)=>{const _0x28ccee=a2_0x2c0ee8,_0x113cae=new SegmentViewCommand(),_0x10f965=program[_0x28ccee(0x2fb)](),_0x1ca8b6=await createTDXInstance(_0x10f965),_0x2bec3f=await _0x113cae[_0x28ccee(0x39c)]({'options':{..._0x10f965,..._0x4feb6c},'args':_0x4614f4?[_0x4614f4]:[],'tdx':_0x1ca8b6});process[_0x28ccee(0x37f)](_0x2bec3f);};segmentCmd['command'](a2_0x2c0ee8(0x318))[a2_0x2c0ee8(0x3b9)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x2c0ee8(0x1d1)]('-w,\x20--web',a2_0x2c0ee8(0x326))[a2_0x2c0ee8(0x32a)](segmentViewAction),segmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x341),{'hidden':!![]})['alias'](a2_0x2c0ee8(0x2e7))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1c5),'Open\x20segment\x20in\x20web\x20browser')['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')['action'](segmentViewAction),segmentCmd['command'](a2_0x2c0ee8(0x1c1))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x206))['action'](async(_0x9996e9,_0x11698f)=>{const _0x316e33=a2_0x2c0ee8,_0x57cb75=new SegmentDescCommand(),_0x4e9971=program[_0x316e33(0x2fb)](),_0x51067b=await createTDXInstance(_0x4e9971),_0x422a26=await _0x57cb75[_0x316e33(0x39c)]({'options':{..._0x4e9971,..._0x11698f},'args':_0x9996e9?[_0x9996e9]:[],'tdx':_0x51067b});process[_0x316e33(0x37f)](_0x422a26);}),segmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1e9))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x263))[a2_0x2c0ee8(0x32a)](async(_0x1b82c2,_0x5c2ab2)=>{const _0x44acd7=a2_0x2c0ee8,_0x5308ad=new SegmentShowCommand(),_0x4dcf28=program['opts'](),_0x6211f2=await createTDXInstance(_0x4dcf28),_0x13c81c=await _0x5308ad[_0x44acd7(0x39c)]({'options':{..._0x4dcf28,..._0x5c2ab2},'args':_0x1b82c2?[_0x1b82c2]:[],'tdx':_0x6211f2});process[_0x44acd7(0x37f)](_0x13c81c);}),segmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x338),{'hidden':!![]})[a2_0x2c0ee8(0x3b9)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')['action'](async(_0x1bbb1f,_0xd95620)=>{const _0x37b452=a2_0x2c0ee8,_0x199f2b=new SegmentFolderListCommand(),_0x499ffd=program['opts'](),_0x5c2fb0=await createTDXInstance(_0x499ffd),_0x1d7355=await _0x199f2b[_0x37b452(0x39c)]({'options':{..._0x499ffd,..._0xd95620},'args':[_0x1bbb1f],'tdx':_0x5c2fb0});process[_0x37b452(0x37f)](_0x1d7355);});function a2_0x1ee3(_0x56dc3e,_0x36f5c){_0x56dc3e=_0x56dc3e-0x1bc;const _0x38f53e=a2_0x38f5();let _0x1ee331=_0x38f53e[_0x56dc3e];return _0x1ee331;}const folderCmd=segmentCmd['command'](a2_0x2c0ee8(0x2ed),{'hidden':!![]})[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x29a));folderCmd['command']('show\x20<folder_ref>')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x289))[a2_0x2c0ee8(0x32a)](async(_0x50fd55,_0x316ffe)=>{const _0x63216d=a2_0x2c0ee8,_0x1b184d=new SegmentFolderShowCommand(),_0x37be6b=program[_0x63216d(0x2fb)](),_0x31d5ca=await createTDXInstance(_0x37be6b),_0x5a1995=await _0x1b184d['run']({'options':{..._0x37be6b,..._0x316ffe},'args':[_0x50fd55],'tdx':_0x31d5ca});process[_0x63216d(0x37f)](_0x5a1995);}),segmentCmd[a2_0x2c0ee8(0x3b1)]('sql\x20[segment_name]')['description']('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x2c0ee8(0x32a)](async(_0x5a14f3,_0x5886c1)=>{const _0x85c287=a2_0x2c0ee8,_0x1c325f=new SegmentSQLCommand(),_0x4883d3=program[_0x85c287(0x2fb)](),_0x1c6e15=await createTDXInstance(_0x4883d3),_0x128cbb=await _0x1c325f[_0x85c287(0x39c)]({'options':{..._0x4883d3,..._0x5886c1},'args':_0x5a14f3?[_0x5a14f3]:[],'tdx':_0x1c6e15});process[_0x85c287(0x37f)](_0x128cbb);}),segmentCmd['command']('fields\x20[parent_name]')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x328))['action'](async(_0x374fdc,_0x55ac63)=>{const _0x1a6e3a=a2_0x2c0ee8,_0xbeaf0e=new SegmentFieldsCommand(),_0x2d4a3d=program[_0x1a6e3a(0x2fb)](),_0x175f97=await createTDXInstance(_0x2d4a3d),_0x1bffde=await _0xbeaf0e[_0x1a6e3a(0x39c)]({'options':{..._0x2d4a3d,..._0x55ac63},'args':_0x374fdc?[_0x374fdc]:[],'tdx':_0x175f97});process[_0x1a6e3a(0x37f)](_0x1bffde);}),segmentCmd['command'](a2_0x2c0ee8(0x1ca))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3ba))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2e4),a2_0x2c0ee8(0x364))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x34f),a2_0x2c0ee8(0x307))['action'](async(_0x1a4d4c,_0x2aa057)=>{const _0x1c15f1=a2_0x2c0ee8,_0x3d8a11=new SegmentPullCommand(),_0x2a1dab=program['opts'](),_0x302a0a=await createTDXInstance(_0x2a1dab),_0x31abfd=await _0x3d8a11[_0x1c15f1(0x39c)]({'options':{..._0x2a1dab,..._0x2aa057},'args':_0x1a4d4c?[_0x1a4d4c]:[],'tdx':_0x302a0a});process['exit'](_0x31abfd);}),segmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x353))['description']('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')['option']('-y,\x20--yes',a2_0x2c0ee8(0x364))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x34f),a2_0x2c0ee8(0x307))['option'](a2_0x2c0ee8(0x3b8),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x2c0ee8(0x32a)](async(_0x1d565b,_0x23a6f8)=>{const _0xeabd22=a2_0x2c0ee8,_0x244cde=new SegmentPushCommand(),_0x281e12=program[_0xeabd22(0x2fb)](),_0x4a8595=await createTDXInstance(_0x281e12),_0x457fe3=await _0x244cde[_0xeabd22(0x39c)]({'options':{..._0x281e12,..._0x23a6f8},'args':_0x1d565b?[_0x1d565b]:[],'tdx':_0x4a8595});process[_0xeabd22(0x37f)](_0x457fe3);}),segmentCmd[a2_0x2c0ee8(0x3b1)]('create\x20<segment_name>',{'hidden':!![]})[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x384))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x39b),a2_0x2c0ee8(0x39f))[a2_0x2c0ee8(0x1d1)]('--rule\x20<json>',a2_0x2c0ee8(0x24d))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3d0),a2_0x2c0ee8(0x23f))['option']('--folder\x20<name>',a2_0x2c0ee8(0x31b))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1c9),a2_0x2c0ee8(0x3bb))[a2_0x2c0ee8(0x1d1)]('--invisible',a2_0x2c0ee8(0x310))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x320),a2_0x2c0ee8(0x261))[a2_0x2c0ee8(0x32a)](async(_0x2b926f,_0x385455)=>{const _0x4d99d5=a2_0x2c0ee8,_0x4896a7=new SegmentCreateCommand(),_0x25500c=program[_0x4d99d5(0x2fb)](),_0x4098a8=await createTDXInstance(_0x25500c),_0x52d18d=await _0x4896a7[_0x4d99d5(0x39c)]({'options':{..._0x25500c,..._0x385455},'args':[_0x2b926f],'tdx':_0x4098a8});process[_0x4d99d5(0x37f)](_0x52d18d);}),segmentCmd['command'](a2_0x2c0ee8(0x2ec),{'hidden':!![]})[a2_0x2c0ee8(0x3b9)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2c2),a2_0x2c0ee8(0x35e))['option'](a2_0x2c0ee8(0x39b),a2_0x2c0ee8(0x24c))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x28e),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x2c0ee8(0x3d0),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x235),a2_0x2c0ee8(0x1f8))['option'](a2_0x2c0ee8(0x1c9),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')['action'](async(_0x228d8a,_0x122564)=>{const _0x1bed9c=a2_0x2c0ee8,_0x1bd9ca=new SegmentUpdateCommand(),_0x2a2272=program[_0x1bed9c(0x2fb)](),_0x20bd54=await createTDXInstance(_0x2a2272),_0x473f56=await _0x1bd9ca['run']({'options':{..._0x2a2272,..._0x122564},'args':[_0x228d8a],'tdx':_0x20bd54});process[_0x1bed9c(0x37f)](_0x473f56);});const parentCmd=segmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2e1),{'hidden':!![]})[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x386)),parentListAction=async(_0xdbc034,_0x71072f)=>{const _0x5ca853=a2_0x2c0ee8,_0x4a1537=new ParentSegmentListCommand(),_0x22c2bb=program[_0x5ca853(0x2fb)](),_0x1132a2=await createTDXInstance(_0x22c2bb),_0x3fd3ff=await _0x4a1537[_0x5ca853(0x39c)]({'options':{..._0x22c2bb,..._0x71072f},'args':_0xdbc034?[_0xdbc034]:[],'tdx':_0x1132a2});process[_0x5ca853(0x37f)](_0x3fd3ff);};function a2_0x38f5(){const _0x56893e=['Table\x20management\x20commands','-d,\x20--database\x20<database>','workflows\x20[project]','HTML\x20template\x20content','list\x20[path]','--output\x20<file>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','2132320PgHPOv','format','Revision\x20name\x20(default:\x20timestamp)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','delete\x20<name-or-id>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','parse','profile','-c,\x20--continue','Set\x20operation\x20timeout\x20in\x20seconds','Show\x20email\x20template\x20details','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--customer-group\x20<json>','--limit\x20<number>','--attributes\x20<json>','--rule\x20<json>','optionTerm','--full','Include\x20execution\x20statistics','kill','List\x20jobs','desc','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Starter\x20message','Unknown\x20action:\x20','Reason\x20for\x20killing\x20the\x20attempt','[DEPRECATED]\x20Segment\x20folder\x20management','Get\x20job\x20results','--no-color','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Attributes\x20from\x20JSON\x20file','Campaign\x20name','Clear\x20session\x20context','auth','history\x20[chat-id]','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Workspace\x20name','Usage:\x20','Maximum\x20tool\x20iterations\x20(default:\x204)','-1d','help','activations\x20<segment_name>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Show\x20the\x20most\x20recent\x20chat','attempt:','validate\x20[name]','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','chat\x20[message...]','duplicate\x20<name-or-id>','preview\x20[file]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Template\x20name','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Parent\x20folder\x20name\x20for\x20nested\x20folders','\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','name','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','End\x20time\x20filter\x20(ISO\x208601\x20format)','Task\x20name\x20for\x20logs\x20action','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','campaigns\x20[pattern]','--name\x20<new_name>','Campaign\x20type\x20(email\x20or\x20push)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','addHelpText','backup\x20<name>','--name\x20<new-name>','Email\x20subject\x20template','statusline','System\x20prompt/instructions\x20(default:\x20empty)','--session-time\x20<time>','Attempt\x20ID','--param\x20<key=value>','--json','Show\x20master\x20table\x20sample\x20data','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','preAction','--start-at\x20<datetime>','.dev','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','aliases','-o,\x20--output\x20<file>','push\x20[project-name-or-dir]','4000','Remove\x20API\x20key\x20from\x20system\x20keychain','--from\x20<timestamp>','stats\x20<name-or-path>','Update\x20an\x20existing\x20agent','parent','--in\x20<name>','information_schema','-y,\x20--yes','INFO','forEach','describe','pull\x20[name]','Show\x20connection\x20details\x20by\x20name','-r,\x20--resume','retry\x20<session-id>','update\x20<segment_name>','folder','trino','buildTime','clear','Skip\x20confirmation\x20prompt','describe\x20[table]','Show\x20journey\x20statistics','padWidth','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','use\x20<name>','Editor\x20type','Set\x20or\x20show\x20parent\x20segment\x20context','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','opts','--limit\x20<n>','gitRevision','log','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','--email-sender-id\x20<id>','argv','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','pause\x20<name-or-id>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--status\x20<status>','Behaviors\x20from\x20JSON\x20file','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Submit\x20a\x20job','--behaviors-file\x20<file>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--tsv','after','required','Resume\x20from\x20specific\x20task\x20(retry)','Database\x20to\x20use\x20(overrides\x20context)','Make\x20segment\x20invisible\x20(default:\x20visible)','CDP\x20Journey\x20Orchestration\x20commands','--workspace\x20<name>','update\x20<name-or-id>','--color','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','--new','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','view\x20[segment_name]','stdout','Delete\x20a\x20workspace','Folder\x20name\x20for\x20organization','Trino\x20catalog\x20(default:\x20td)','Add\x20attributes\x20from\x20JSON\x20file','--include-subtasks','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','--no-count-population','tsv','--parent-segment\x20<name>','length','../package.json','Create\x20an\x20email\x20template','Open\x20segment\x20in\x20web\x20browser','port','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--type\x20<type>','action','Continue\x20most\x20recent\x20conversation','Email\x20template\x20management','--to\x20<timestamp>','--add-attributes\x20<json>','--skip-validation','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Timezone\x20(e.g.,\x20America/Los_Angeles)','createAsync','Agent\x20prompt/instructions','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Include\x20retried\x20attempts\x20(for\x20list)','claude-4.5-sonnet','folders\x20<parent_name>','Create\x20a\x20workspace','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Export\x20journey(s)\x20as\x20YAML\x20files','colorFn','Start\x20a\x20new\x20chat\x20session','allowUnknownOption','Database\x20to\x20query\x20(default:\x20information_schema)','commands','info\x20[segment_name]','--site\x20<site>','User\x20management\x20commands','show\x20<agent-name>','argument','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Describe\x20table\x20schema','CDP\x20segment\x20management\x20commands','Force\x20retry\x20even\x20if\x20not\x20failed','13642992dVqKZD','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','hook','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','slice','--dry-run','version','then','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','push\x20[parent_or_file]','Show\x20agent\x20details','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Resume\x20a\x20paused\x20journey','project','Options:','--database\x20<db>','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Duplicate\x20a\x20campaign','New\x20segment\x20name','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','\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','kill\x20<job-id>','connection','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Skip\x20confirmation\x20prompts','tasks','--agent\x20<ref>','Updated\x20timezone','show\x20<job-id>','show\x20<name>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Agent\x20description','Arguments:','Launch\x20a\x20campaign','Customer\x20group\x20as\x20JSON\x20string','resume\x20<name-or-id>','1805610Capycb','summary','--type\x20<api_type>','connections','New\x20template\x20name','includes','llm','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Show\x20web\x20console\x20URLs\x20for\x20segments','stderr','--include-stats','profiles','Kill\x20a\x20job','join','use\x20[resource]\x20[value]','exit','--from-task\x20<task>','--in\x20<database>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','_hidden','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','utf-8','AI-native\x20CLI\x20for\x20Treasure\x20Data','attempts\x20[project]','--model\x20<name>','0.7','Campaign\x20management','preview\x20[name]','--stage\x20<name>','Model\x20name\x20(default:\x20claude-4.5-sonnet)','\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','--limit\x20<rows>','--table','journey','logs','--resume-from\x20<task>','--reason\x20<text>','-p,\x20--profile\x20<name>','--table\x20<table>','update\x20<agent-name>','--jsonl','--description\x20<text>','run','create','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Segment\x20description','Read\x20request\x20body\x20from\x20file','Preview\x20operation\x20without\x20executing','Create\x20a\x20new\x20LLM\x20project','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Attributes\x20as\x20JSON\x20string','templates\x20[pattern]','\x20-\x20built\x20','Output\x20file\x20path','projects\x20[pattern]','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','parent-segment','Workflow\x20parameter\x20(repeatable)','retry','List\x20journeys\x20in\x20current\x20context','--temperature\x20<n>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','command','--starter-message\x20<text>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Output\x20as\x20JSON','Agent\x20name','LLM\x20project\x20management','List\x20all\x20data\x20connections','--delete','description','Pull\x20child\x20segments\x20to\x20YAML\x20files','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','2224233XtcZXs','--name\x20<text>','--revision\x20<revision>','optionDescription','--database\x20<name>','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','push','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Limit\x20number\x20of\x20rows','Workspace\x20description','segment','--segment\x20<path>','List\x20all\x20users\x20in\x20the\x20account','subcommandTerm','databases\x20[pattern]','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','Workflow\x20session\x20management','build-info.json',',\x20version\x20','--rule-file\x20<file>','sql\x20[name]','workflow','Request\x20body\x20as\x20JSON\x20string','--interval\x20<range>','--html\x20<html>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','injectIntoOptions','List\x20available\x20LLM\x20models','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','--description\x20<desc>','Update\x20a\x20campaign','--trace','-f,\x20--file\x20<path>','create\x20<parent_name>\x20<folder_name>','result\x20<job-id>','desc\x20[segment_name]','us01','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','desc\x20[name]','-w,\x20--web','--llm-project\x20<name>','Updated\x20schedule\x20option','Workspace\x20name\x20(required)','--kind\x20<type>','pull\x20[parent_or_file]','-u,\x20--use','users','commandUsage','681126PofJeg','logLevel','Model\x20type\x20(default:\x20claude-4.5-sonnet)','option','agents\x20[pattern]','create\x20<name>','--system-prompt\x20<text>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Commands:','view\x20<name-or-path>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--behavior\x20[name]','Plaintext\x20template\x20content','--max-tool-iterations\x20<n>','Open\x20parent\x20segment\x20in\x20web\x20browser','tables\x20[pattern]','resume\x20<name-or-path>','--timezone\x20<tz>','Add\x20behaviors\x20from\x20JSON\x20file','--agent\x20<name>','--params\x20<json>','noColor','requiredOption','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Enable\x20verbose\x20logging','show\x20[segment_name]','GET','list','--catalog\x20<catalog>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--max-depth\x20<depth>','options','debug','list\x20[pattern]','delete\x20<agent-name>','json','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','show\x20<name-or-id>','--enriched','--schedule-option\x20<value>','Move\x20to\x20folder','Delete\x20an\x20agent','--subject\x20<subject>','Skip\x20validation\x20of\x20.dig\x20files','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','tdx\x20','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--plaintext\x20<text>','push\x20[file]','Show\x20campaign\x20details','Email\x20sender\x20ID\x20for\x20delivery','--json-columns\x20<cols>','Resume\x20a\x20paused\x20campaign','Show\x20segment\x20schema\x20(column\x20types)','hidden','--master','commandDescription','flatMap','--no-proxy','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Override\x20project\x20name','Folder\x20description','--clear','New\x20workspace\x20name','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','padEnd','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--schedule-type\x20<type>','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','jsonl','--attribute\x20[name]','--include-retried','Data\x20connection\x20management\x20(for\x20activations/exports)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','table','list\x20[project]','Project\x20description','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','argumentDescription','Update\x20a\x20workspace','Parent\x20segment\x20management','error','pause\x20<name-or-path>','campaign','--debug','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','argumentTerm','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','jobs','trace','usage','validate\x20[file]','--yes','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--name\x20<name>','filter','query\x20[sql]','segments\x20[path]','--folder\x20<name>','show\x20[table]','run\x20[name]','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','download\x20<project-name>\x20[output-dir]','--attributes-file\x20<file>','isTTY','Interactive\x20chat\x20selector','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Filtering\x20rule\x20from\x20JSON\x20file','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--session\x20<id>','map','--job-type\x20<type>','Output\x20folder\x20(default:\x20{project_name}.llm)','database','3167972FzGeXD','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','registeredArguments','Save\x20output\x20to\x20file','--add-attributes-file\x20<file>','Campaign\x20description','Updated\x20description','Filtering\x20rule\x20as\x20JSON\x20string','Create\x20a\x20new\x20campaign','parent_segment','3152947SojMOS','Resume\x20a\x20conversation\x20(shows\x20selector)','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','5FiiKYv','Start\x20time\x20filter\x20(ISO\x208601\x20format)','alias','--prompt\x20<text>','claude\x20[args...]','LLM\x20agent\x20management','New\x20campaign\x20name','engage','show\x20[name]','Show\x20only\x20master\x20table\x20validation','launch\x20<name-or-id>','Create\x20segment\x20folder','Include\x20retried\x20attempts','Skip\x20population\x20counting','Job\x20management\x20commands','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','site','[action]','Output\x20as\x20JSON\x20Lines','--last','Customer\x20group\x20from\x20JSON\x20file','replace','agent','Delete\x20a\x20campaign','TRACE','[attempt-id]','workspaces\x20[pattern]','catch','Workflow\x20project\x20management','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','configureHelp'];a2_0x38f5=function(){return _0x56893e;};return a2_0x38f5();}parentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f1))['description'](a2_0x2c0ee8(0x2c4))[a2_0x2c0ee8(0x32a)](parentListAction),segmentCmd[a2_0x2c0ee8(0x3b1)]('parents\x20[pattern]',{'hidden':!![]})['description']('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x2c0ee8(0x32a)](parentListAction),parentCmd['command']('pull\x20[name]')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x266))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2da),'Output\x20file\x20path\x20(default:\x20<name>.yml)')['option']('-y,\x20--yes',a2_0x2c0ee8(0x2f1))[a2_0x2c0ee8(0x32a)](async(_0x3a9398,_0x2e51a1)=>{const _0x33a50f=a2_0x2c0ee8,_0x545460=new ParentSegmentPullCommand(),_0xb86560=program['opts'](),_0x481a30=await createTDXInstance(_0xb86560),_0x3a38ca=await _0x545460[_0x33a50f(0x39c)]({'options':{..._0xb86560,..._0x2e51a1},'args':_0x3a9398?[_0x3a9398]:[],'tdx':_0x481a30});process[_0x33a50f(0x37f)](_0x3a38ca);}),parentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x201))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2d8))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2e4),'Skip\x20confirmation\x20prompt')['action'](async(_0x2365f2,_0x3821e2)=>{const _0x4b575d=a2_0x2c0ee8,_0x1e595d=new ParentSegmentPushCommand(),_0x4ca57d=program[_0x4b575d(0x2fb)](),_0x24aa22=await createTDXInstance(_0x4ca57d),_0x4a3897=await _0x1e595d[_0x4b575d(0x39c)]({'options':{..._0x4ca57d,..._0x3821e2},'args':_0x2365f2?[_0x2365f2]:[],'tdx':_0x24aa22});process[_0x4b575d(0x37f)](_0x4a3897);}),parentCmd['command'](a2_0x2c0ee8(0x22e))[a2_0x2c0ee8(0x3b9)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x208),'Show\x20only\x20master\x20table\x20validation')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x217),a2_0x2c0ee8(0x3d6))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1db),a2_0x2c0ee8(0x240))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1f6),a2_0x2c0ee8(0x1fc))[a2_0x2c0ee8(0x1d1)]('--interval\x20<range>',a2_0x2c0ee8(0x383),a2_0x2c0ee8(0x2a8))[a2_0x2c0ee8(0x32a)](async(_0x3992ae,_0x16d6f6)=>{const _0x592e88=a2_0x2c0ee8,_0x4c957f=new ParentSegmentValidateCommand(),_0x57adb8=program[_0x592e88(0x2fb)](),_0x309558=await createTDXInstance(_0x57adb8),_0x46a1dc=await _0x4c957f[_0x592e88(0x39c)]({'options':{..._0x57adb8,..._0x16d6f6},'args':_0x3992ae?[_0x3992ae]:[],'tdx':_0x309558});process[_0x592e88(0x37f)](_0x46a1dc);}),parentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2b3))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2a4))[a2_0x2c0ee8(0x1d1)]('--master',a2_0x2c0ee8(0x2d1))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x217),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')['option'](a2_0x2c0ee8(0x1db),a2_0x2c0ee8(0x30a))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1f6),a2_0x2c0ee8(0x265))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3d4),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x2c0ee8(0x2a8))[a2_0x2c0ee8(0x32a)](async(_0x350e5a,_0x58e377)=>{const _0xf98325=a2_0x2c0ee8,_0x30c845=new ParentSegmentPreviewCommand(),_0x4c3020=program[_0xf98325(0x2fb)](),_0x39e5e9=await createTDXInstance(_0x4c3020),_0x5662ba=await _0x30c845['run']({'options':{..._0x4c3020,..._0x58e377},'args':_0x350e5a?[_0x350e5a]:[],'tdx':_0x39e5e9});process[_0xf98325(0x37f)](_0x5662ba);}),parentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x237))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3c3))[a2_0x2c0ee8(0x1d1)]('-y,\x20--yes',a2_0x2c0ee8(0x2f1))['action'](async(_0x2758d9,_0x596588)=>{const _0x171256=a2_0x2c0ee8,_0x2f33d5=new ParentSegmentRunCommand(),_0x27de27=program[_0x171256(0x2fb)](),_0xf19a81=await createTDXInstance(_0x27de27),_0x3c4b1d=await _0x2f33d5['run']({'options':{..._0x27de27,..._0x596588},'args':_0x2758d9?[_0x2758d9]:[],'tdx':_0xf19a81});process['exit'](_0x3c4b1d);});const parentSegmentCmd=program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x3aa))[a2_0x2c0ee8(0x256)]('ps')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x222));parentSegmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f1))['description'](a2_0x2c0ee8(0x2c4))[a2_0x2c0ee8(0x32a)](parentListAction),parentSegmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2e8))[a2_0x2c0ee8(0x3b9)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2da),a2_0x2c0ee8(0x3a7))['option'](a2_0x2c0ee8(0x2e4),a2_0x2c0ee8(0x2f1))['option'](a2_0x2c0ee8(0x1cb),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x2c0ee8(0x32a)](async(_0x4a588a,_0x980527)=>{const _0x480905=a2_0x2c0ee8,_0x399db7=new ParentSegmentPullCommand(),_0x39d5c4=program[_0x480905(0x2fb)](),_0x4b89d1=await createTDXInstance(_0x39d5c4),_0x5a9369=await _0x399db7[_0x480905(0x39c)]({'options':{..._0x39d5c4,..._0x980527},'args':_0x4a588a?[_0x4a588a]:[],'tdx':_0x4b89d1});process['exit'](_0x5a9369);}),parentSegmentCmd['command']('push\x20[name]')[a2_0x2c0ee8(0x3b9)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2e4),'Skip\x20confirmation\x20prompt')[a2_0x2c0ee8(0x32a)](async(_0x4fe3a5,_0x184f1b)=>{const _0x165036=a2_0x2c0ee8,_0x26122f=new ParentSegmentPushCommand(),_0x4febea=program['opts'](),_0x20a69b=await createTDXInstance(_0x4febea),_0x301d0b=await _0x26122f[_0x165036(0x39c)]({'options':{..._0x4febea,..._0x184f1b},'args':_0x4fe3a5?[_0x4fe3a5]:[],'tdx':_0x20a69b});process[_0x165036(0x37f)](_0x301d0b);}),parentSegmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2af))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2ff))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x208),a2_0x2c0ee8(0x25d))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x217),a2_0x2c0ee8(0x3d6))['option']('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x2c0ee8(0x1d1)]('--enriched',a2_0x2c0ee8(0x1fc))['option']('--interval\x20<range>',a2_0x2c0ee8(0x383),a2_0x2c0ee8(0x2a8))['action'](async(_0x1decb8,_0x5ed0cc)=>{const _0x32006b=a2_0x2c0ee8,_0x522a77=new ParentSegmentValidateCommand(),_0x5d971f=program[_0x32006b(0x2fb)](),_0x6e7100=await createTDXInstance(_0x5d971f),_0x27a995=await _0x522a77['run']({'options':{..._0x5d971f,..._0x5ed0cc},'args':_0x1decb8?[_0x1decb8]:[],'tdx':_0x6e7100});process[_0x32006b(0x37f)](_0x27a995);}),parentSegmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x38d))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2a4))['option'](a2_0x2c0ee8(0x208),a2_0x2c0ee8(0x2d1))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x217),a2_0x2c0ee8(0x334))['option'](a2_0x2c0ee8(0x1db),a2_0x2c0ee8(0x30a))['option']('--enriched',a2_0x2c0ee8(0x265))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3d4),a2_0x2c0ee8(0x383),a2_0x2c0ee8(0x2a8))[a2_0x2c0ee8(0x32a)](async(_0x11b4c6,_0x46043e)=>{const _0x19ca4e=a2_0x2c0ee8,_0x31bf99=new ParentSegmentPreviewCommand(),_0x184ae3=program[_0x19ca4e(0x2fb)](),_0x5122e0=await createTDXInstance(_0x184ae3),_0x37863a=await _0x31bf99[_0x19ca4e(0x39c)]({'options':{..._0x184ae3,..._0x46043e},'args':_0x11b4c6?[_0x11b4c6]:[],'tdx':_0x5122e0});process[_0x19ca4e(0x37f)](_0x37863a);}),parentSegmentCmd['command'](a2_0x2c0ee8(0x237))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3c3))['option'](a2_0x2c0ee8(0x2e4),a2_0x2c0ee8(0x2f1))['action'](async(_0x3018f9,_0x3c9b8e)=>{const _0x3954c2=a2_0x2c0ee8,_0x655a55=new ParentSegmentRunCommand(),_0x5770f8=program[_0x3954c2(0x2fb)](),_0x288c84=await createTDXInstance(_0x5770f8),_0x44a08e=await _0x655a55[_0x3954c2(0x39c)]({'options':{..._0x5770f8,..._0x3c9b8e},'args':_0x3018f9?[_0x3018f9]:[],'tdx':_0x288c84});process[_0x3954c2(0x37f)](_0x44a08e);}),parentSegmentCmd['command']('fields\x20[name]')[a2_0x2c0ee8(0x3b9)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2d0),a2_0x2c0ee8(0x3b4))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x39a),a2_0x2c0ee8(0x269))[a2_0x2c0ee8(0x32a)](async(_0x3bb824,_0x499e14)=>{const _0x511896=a2_0x2c0ee8,_0x49fb52=new ParentSegmentFieldsCommand(),_0xe05dbe=program[_0x511896(0x2fb)](),_0xb6f65e=await createTDXInstance(_0xe05dbe),_0x22a689=await _0x49fb52[_0x511896(0x39c)]({'options':{..._0xe05dbe,..._0x499e14},'args':_0x3bb824?[_0x3bb824]:[],'tdx':_0xb6f65e});process[_0x511896(0x37f)](_0x22a689);}),parentSegmentCmd[a2_0x2c0ee8(0x3b1)]('view\x20[name]')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x215))[a2_0x2c0ee8(0x1d1)]('-w,\x20--web',a2_0x2c0ee8(0x1de))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2d0),a2_0x2c0ee8(0x3b4))['option'](a2_0x2c0ee8(0x39a),a2_0x2c0ee8(0x269))['action'](async(_0x5d22f3,_0x7f2300)=>{const _0x44fefa=a2_0x2c0ee8,_0x33fcb5=new ParentSegmentViewCommand(),_0x46b63f=program[_0x44fefa(0x2fb)](),_0x379951=await createTDXInstance(_0x46b63f),_0x4867c3=await _0x33fcb5[_0x44fefa(0x39c)]({'options':{..._0x46b63f,..._0x7f2300},'args':_0x5d22f3?[_0x5d22f3]:[],'tdx':_0x379951});process[_0x44fefa(0x37f)](_0x4867c3);}),parentSegmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1c4))[a2_0x2c0ee8(0x3b9)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2d0),a2_0x2c0ee8(0x3b4))[a2_0x2c0ee8(0x1d1)]('--jsonl',a2_0x2c0ee8(0x269))[a2_0x2c0ee8(0x32a)](async(_0x3cf674,_0x571ea9)=>{const _0xe35be6=a2_0x2c0ee8,_0x4ec333=new ParentSegmentDescCommand(),_0x1fb570=program[_0xe35be6(0x2fb)](),_0x40e49e=await createTDXInstance(_0x1fb570),_0x9e7bf=await _0x4ec333[_0xe35be6(0x39c)]({'options':{..._0x1fb570,..._0x571ea9},'args':_0x3cf674?[_0x3cf674]:[],'tdx':_0x40e49e});process[_0xe35be6(0x37f)](_0x9e7bf);}),parentSegmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x3d1))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x315))[a2_0x2c0ee8(0x1d1)]('--json',a2_0x2c0ee8(0x3b4))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x39a),a2_0x2c0ee8(0x269))[a2_0x2c0ee8(0x32a)](async(_0x191c6e,_0x34c282)=>{const _0x4863de=a2_0x2c0ee8,_0x554d79=new ParentSegmentSQLCommand(),_0x421362=program[_0x4863de(0x2fb)](),_0x2d8859=await createTDXInstance(_0x421362),_0x18f4a0=await _0x554d79[_0x4863de(0x39c)]({'options':{..._0x421362,..._0x34c282},'args':_0x191c6e?[_0x191c6e]:[],'tdx':_0x2d8859});process[_0x4863de(0x37f)](_0x18f4a0);}),parentSegmentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x25c))[a2_0x2c0ee8(0x3b9)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2fc),a2_0x2c0ee8(0x3c4))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2d0),'Output\x20as\x20JSON')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x39a),a2_0x2c0ee8(0x269))[a2_0x2c0ee8(0x32a)](async(_0x318ebe,_0x20a079)=>{const _0x273943=a2_0x2c0ee8,_0x5d4e56=new ParentSegmentShowCommand(),_0x4c17c7=program[_0x273943(0x2fb)](),_0x55458a=await createTDXInstance(_0x4c17c7),_0x48281e=await _0x5d4e56[_0x273943(0x39c)]({'options':{..._0x4c17c7,..._0x20a079},'args':_0x318ebe?[_0x318ebe]:[],'tdx':_0x55458a});process['exit'](_0x48281e);}),parentSegmentCmd[a2_0x2c0ee8(0x3b1)]('use\x20[name]')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2f9))[a2_0x2c0ee8(0x32a)](async(_0x2c136f,_0x1f17d8)=>{const _0xfbcb7b=a2_0x2c0ee8,_0x14c17e=new UseCommand(),_0x48437f=program[_0xfbcb7b(0x2fb)](),_0x4b5ce5=_0x2c136f?[_0xfbcb7b(0x24f),_0x2c136f]:[],_0x2d10af=await _0x14c17e[_0xfbcb7b(0x39c)]({'options':{..._0x48437f,..._0x1f17d8},'args':_0x4b5ce5,'tdx':null});process[_0xfbcb7b(0x37f)](_0x2d10af);}),parentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1d3))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2bc))['requiredOption'](a2_0x2c0ee8(0x35b),'Master\x20database\x20name')[a2_0x2c0ee8(0x1e6)](a2_0x2c0ee8(0x398),'Master\x20table\x20name')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x39b),'Parent\x20segment\x20description')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x214),a2_0x2c0ee8(0x33a))['option'](a2_0x2c0ee8(0x1f7),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1e1),a2_0x2c0ee8(0x331))['option'](a2_0x2c0ee8(0x28d),a2_0x2c0ee8(0x3a4))['option'](a2_0x2c0ee8(0x23b),a2_0x2c0ee8(0x29f))[a2_0x2c0ee8(0x1d1)]('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x309),a2_0x2c0ee8(0x306))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x28b),a2_0x2c0ee8(0x36e))[a2_0x2c0ee8(0x1d1)]('--customer-group-file\x20<file>',a2_0x2c0ee8(0x26b))['action'](async(_0x21f5f6,_0x17bf57)=>{const _0x15f4f5=a2_0x2c0ee8,_0x3cbfb9=new ParentSegmentCreateCommand(),_0x33321c=program[_0x15f4f5(0x2fb)](),_0x56a0cb=await createTDXInstance(_0x33321c),_0x23caee=await _0x3cbfb9['run']({'options':{..._0x33321c,..._0x17bf57},'args':[_0x21f5f6],'tdx':_0x56a0cb});process[_0x15f4f5(0x37f)](_0x23caee);}),parentCmd[a2_0x2c0ee8(0x3b1)]('update\x20<name>')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x39e))[a2_0x2c0ee8(0x1d1)]('--description\x20<text>',a2_0x2c0ee8(0x24c))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x214),a2_0x2c0ee8(0x1ff))[a2_0x2c0ee8(0x1d1)]('--schedule-option\x20<value>',a2_0x2c0ee8(0x1c7))[a2_0x2c0ee8(0x1d1)]('--timezone\x20<tz>',a2_0x2c0ee8(0x367))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x32e),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x24a),a2_0x2c0ee8(0x31d))[a2_0x2c0ee8(0x1d1)]('--add-behaviors\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string')[a2_0x2c0ee8(0x1d1)]('--add-behaviors-file\x20<file>',a2_0x2c0ee8(0x1e2))[a2_0x2c0ee8(0x32a)](async(_0x64fe0e,_0x314fef)=>{const _0xb10098=a2_0x2c0ee8,_0x557f08=new ParentSegmentUpdateCommand(),_0xab93ff=program[_0xb10098(0x2fb)](),_0x244c53=await createTDXInstance(_0xab93ff),_0x3a387e=await _0x557f08['run']({'options':{..._0xab93ff,..._0x314fef},'args':[_0x64fe0e],'tdx':_0x244c53});process[_0xb10098(0x37f)](_0x3a387e);}),folderCmd['command'](a2_0x2c0ee8(0x1bf))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x25f))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x39b),a2_0x2c0ee8(0x20e))[a2_0x2c0ee8(0x1d1)]('--parent-folder\x20<name>',a2_0x2c0ee8(0x2b9))[a2_0x2c0ee8(0x32a)](async(_0xa2bb52,_0x77479e,_0x35031b)=>{const _0x428bb3=a2_0x2c0ee8,_0x2af1c4=new SegmentFolderCreateCommand(),_0x2b923d=program[_0x428bb3(0x2fb)](),_0xa3366e=await createTDXInstance(_0x2b923d),_0x35bc72=await _0x2af1c4[_0x428bb3(0x39c)]({'options':{..._0x2b923d,..._0x35031b},'args':[_0xa2bb52,_0x77479e],'tdx':_0xa3366e});process[_0x428bb3(0x37f)](_0x35bc72);}),program['command'](a2_0x2c0ee8(0x2aa))['description']('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x2c0ee8(0x32a)](async(_0x1b4ced,_0x3eb1b8)=>{const _0x1813e3=a2_0x2c0ee8,_0x5a6c8f=new ActivationsCommand(),_0x9abd87=program['opts'](),_0x46c8bc=await createTDXInstance(_0x9abd87),_0x1a65c0=await _0x5a6c8f[_0x1813e3(0x39c)]({'options':{..._0x9abd87,..._0x3eb1b8},'args':[_0x1b4ced],'tdx':_0x46c8bc});process[_0x1813e3(0x37f)](_0x1a65c0);});const workflowCmd=program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x3d2))['alias']('wf')[a2_0x2c0ee8(0x3b9)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x359))['description'](a2_0x2c0ee8(0x273)),wfProjectListAction=async(_0x15a007,_0x36ad99)=>{const _0x2131c1=a2_0x2c0ee8,_0x25b950=new WorkflowProjectsCommand(),_0x5c98d1=program[_0x2131c1(0x2fb)](),_0x39ede4=await createTDXInstance(_0x5c98d1),_0x4b33c3=await _0x25b950['run']({'options':{..._0x5c98d1,..._0x36ad99},'args':_0x15a007?[_0x15a007]:[],'tdx':_0x39ede4});process[_0x2131c1(0x37f)](_0x4b33c3);};wfProjectCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f1))['description'](a2_0x2c0ee8(0x355))[a2_0x2c0ee8(0x32a)](wfProjectListAction),workflowCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x3a8))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2c5))[a2_0x2c0ee8(0x32a)](wfProjectListAction);const wfWorkflowListAction=async(_0x1b62c1,_0xf5153d)=>{const _0x228339=a2_0x2c0ee8,_0x4a85f7=new WorkflowWorkflowsCommand(),_0x17e2ef=program[_0x228339(0x2fb)](),_0x28a0cf=await createTDXInstance(_0x17e2ef),_0x4951b8=await _0x4a85f7[_0x228339(0x39c)]({'options':{..._0x17e2ef,..._0xf5153d},'args':_0x1b62c1?[_0x1b62c1]:[],'tdx':_0x28a0cf});process[_0x228339(0x37f)](_0x4951b8);};workflowCmd['command'](a2_0x2c0ee8(0x278))['description'](a2_0x2c0ee8(0x363))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x2c0ee8(0x3b1)]('session')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3cd)),wfSessionListAction=async(_0x3ce7bc,_0x152a4d)=>{const _0xf03330=a2_0x2c0ee8,_0x326c45=new WorkflowSessionsCommand(),_0x1c952a=program[_0xf03330(0x2fb)](),_0x1a895d=await createTDXInstance(_0x1c952a),_0x1635c6=await _0x326c45['run']({'options':{..._0x1c952a,..._0x152a4d},'args':_0x3ce7bc?[_0x3ce7bc]:[],'tdx':_0x1a895d});process['exit'](_0x1635c6);};wfSessionCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x21c))['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x305),a2_0x2c0ee8(0x21f))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2de),a2_0x2c0ee8(0x255))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x32d),a2_0x2c0ee8(0x2bd))[a2_0x2c0ee8(0x32a)](wfSessionListAction),workflowCmd[a2_0x2c0ee8(0x3b1)]('sessions\x20[project]')['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option'](a2_0x2c0ee8(0x305),a2_0x2c0ee8(0x21f))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2de),a2_0x2c0ee8(0x255))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x32d),a2_0x2c0ee8(0x2bd))[a2_0x2c0ee8(0x32a)](wfSessionListAction);const wfAttemptListAction=async(_0x37d5eb,_0x1028c1)=>{const _0x4b754e=a2_0x2c0ee8,_0x245321=new WorkflowAttemptsCommand(),_0xf51757=program['opts'](),_0x3b461e=await createTDXInstance(_0xf51757),_0x294ff4=await _0x245321[_0x4b754e(0x39c)]({'options':{..._0xf51757,..._0x1028c1},'args':_0x37d5eb?[_0x37d5eb]:[],'tdx':_0x3b461e});process[_0x4b754e(0x37f)](_0x294ff4);},attemptCmd=workflowCmd['command']('attempt')[a2_0x2c0ee8(0x3b9)]('Workflow\x20attempt\x20management')[a2_0x2c0ee8(0x345)](a2_0x2c0ee8(0x270),a2_0x2c0ee8(0x2ce))[a2_0x2c0ee8(0x345)](a2_0x2c0ee8(0x268),a2_0x2c0ee8(0x35c))[a2_0x2c0ee8(0x345)]('[task-name]',a2_0x2c0ee8(0x2be))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x31e),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x396),a2_0x2c0ee8(0x299))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x395),a2_0x2c0ee8(0x30e))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1e4),a2_0x2c0ee8(0x3da))[a2_0x2c0ee8(0x1d1)]('--force',a2_0x2c0ee8(0x349))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x218),a2_0x2c0ee8(0x336))[a2_0x2c0ee8(0x32a)](async(_0x4af73e,_0x2143ea,_0x3b4a9a,_0x46cc6f)=>{const _0x50f382=a2_0x2c0ee8;if(_0x4af73e==='list'){await wfAttemptListAction(_0x2143ea,_0x46cc6f);return;}if(!_0x4af73e){attemptCmd[_0x50f382(0x2a9)]();return;}const _0x3a15b2=program[_0x50f382(0x2fb)](),_0x402868=await createTDXInstance(_0x3a15b2);let _0x1c1127=0x0;if(!_0x2143ea){const _0x399c4b=new WorkflowAttemptCommand();_0x1c1127=await _0x399c4b[_0x50f382(0x39c)]({'options':{..._0x3a15b2,..._0x46cc6f},'args':[_0x4af73e],'tdx':_0x402868});}else{if(_0x2143ea===_0x50f382(0x394)){const _0x2c6d85=new WorkflowLogsCommand();_0x1c1127=await _0x2c6d85[_0x50f382(0x39c)]({'options':{..._0x3a15b2,..._0x46cc6f},'args':_0x3b4a9a?[_0x4af73e,_0x3b4a9a]:[_0x4af73e],'tdx':_0x402868});}else{if(_0x2143ea===_0x50f382(0x365)){const _0x230e31=new WorkflowTasksCommand();_0x1c1127=await _0x230e31['run']({'options':{..._0x3a15b2,..._0x46cc6f},'args':[_0x4af73e],'tdx':_0x402868});}else{if(_0x2143ea===_0x50f382(0x292)){const _0xe264f1=new WorkflowKillCommand();_0x1c1127=await _0xe264f1['run']({'options':{..._0x3a15b2,..._0x46cc6f},'args':[_0x4af73e],'tdx':_0x402868});}else{if(_0x2143ea===_0x50f382(0x3ac)){const _0x54d26d=new WorkflowRetryCommand();_0x1c1127=await _0x54d26d[_0x50f382(0x39c)]({'options':{..._0x3a15b2,..._0x46cc6f},'args':[_0x50f382(0x2ae)+_0x4af73e],'tdx':_0x402868});}else console[_0x50f382(0x223)](_0x50f382(0x298)+_0x2143ea),console[_0x50f382(0x223)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x1c1127=0x1;}}}}process[_0x50f382(0x37f)](_0x1c1127);});attemptCmd['command']('list\x20[project]')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2b6))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x218),a2_0x2c0ee8(0x260))[a2_0x2c0ee8(0x32a)](wfAttemptListAction),workflowCmd['command'](a2_0x2c0ee8(0x389))['description'](a2_0x2c0ee8(0x252))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x218),a2_0x2c0ee8(0x260))['action'](wfAttemptListAction),workflowCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2eb))[a2_0x2c0ee8(0x3b9)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x380),'Resume\x20from\x20specific\x20task')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1e4),a2_0x2c0ee8(0x302))['action'](async(_0x1265c3,_0x19c047)=>{const _0x206dc7=a2_0x2c0ee8,_0xc61a8b=new WorkflowRetryCommand(),_0x3d2457=program[_0x206dc7(0x2fb)](),_0x4b0e8d=await createTDXInstance(_0x3d2457),_0x5b0e4c=await _0xc61a8b[_0x206dc7(0x39c)]({'options':{..._0x3d2457,..._0x19c047},'args':[_0x1265c3],'tdx':_0x4b0e8d});process[_0x206dc7(0x37f)](_0x5b0e4c);}),workflowCmd['command']('run\x20<workflow>')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x1fd))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2cf),a2_0x2c0ee8(0x3ab),(_0x2470e4,_0x586896=[])=>[..._0x586896,_0x2470e4],[])[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2cd),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')['action'](async(_0x5c2eba,_0x2ead51)=>{const _0x1a2f3d=a2_0x2c0ee8,_0x4e3dec=new WorkflowRunCommand(),_0x1fc80f=program[_0x1a2f3d(0x2fb)](),_0x4b6cb8=await createTDXInstance(_0x1fc80f),_0x1b13d7=await _0x4e3dec[_0x1a2f3d(0x39c)]({'options':{..._0x1fc80f,..._0x2ead51},'args':[_0x5c2eba],'tdx':_0x4b6cb8});process[_0x1a2f3d(0x37f)](_0x1b13d7);}),workflowCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x23a))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x253))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3be),a2_0x2c0ee8(0x1d7))[a2_0x2c0ee8(0x32a)](async(_0x5b6e1c,_0x3d45b4,_0x2fc253)=>{const _0x45575c=a2_0x2c0ee8,_0x3239f1=new WorkflowDownloadCommand(),_0x302ba5=program[_0x45575c(0x2fb)](),_0x4b449f=await createTDXInstance(_0x302ba5),_0x595955=await _0x3239f1[_0x45575c(0x39c)]({'options':{..._0x302ba5,..._0x2fc253},'args':[_0x5b6e1c,_0x3d45b4||'.'],'tdx':_0x4b449f});process[_0x45575c(0x37f)](_0x595955);}),workflowCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2db))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3b0))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x231),a2_0x2c0ee8(0x20d))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3be),a2_0x2c0ee8(0x27f))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x32f),a2_0x2c0ee8(0x1fb))[a2_0x2c0ee8(0x32a)](async(_0x3cd5ce,_0xd46dbe)=>{const _0x5a9e63=a2_0x2c0ee8,_0x588ed9=new WorkflowPushCommand(),_0x3be335=program[_0x5a9e63(0x2fb)](),_0x1171b2=await createTDXInstance(_0x3be335),_0x2a2445=await _0x588ed9['run']({'options':{..._0x3be335,..._0xd46dbe},'args':_0x3cd5ce?[_0x3cd5ce]:[],'tdx':_0x1171b2});process[_0x5a9e63(0x37f)](_0x2a2445);}),workflowCmd[a2_0x2c0ee8(0x3b1)]('delete\x20<project-name-or-id>')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x304))[a2_0x2c0ee8(0x32a)](async(_0x299c28,_0x2a24c0)=>{const _0x7507d5=a2_0x2c0ee8,_0x334a01=new WorkflowDeleteCommand(),_0x5d2a42=program[_0x7507d5(0x2fb)](),_0x2f8ea7=await createTDXInstance(_0x5d2a42),_0x3431a9=await _0x334a01['run']({'options':{..._0x5d2a42,..._0x2a24c0},'args':[_0x299c28],'tdx':_0x2f8ea7});process[_0x7507d5(0x37f)](_0x3431a9);});const jobCmd=program['command']('job')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x262)),jobListAction=async _0x688e50=>{const _0xbf2a2b=a2_0x2c0ee8,_0x36ce9a=new JobListCommand(),_0x3ed3dc=program[_0xbf2a2b(0x2fb)](),_0x2b5c7c=await createTDXInstance(_0x3ed3dc),_0x31dd15=await _0x36ce9a[_0xbf2a2b(0x39c)]({'options':{..._0x3ed3dc,..._0x688e50},'args':[],'tdx':_0x2b5c7c});process[_0xbf2a2b(0x37f)](_0x31dd15);};jobCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1eb))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x293))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x305),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x2c0ee8(0x32a)](jobListAction),program['command'](a2_0x2c0ee8(0x22b),{'hidden':!![]})[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x211))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x305),a2_0x2c0ee8(0x2b7))['action'](jobListAction),jobCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x368))[a2_0x2c0ee8(0x3b9)]('Show\x20job\x20details')['action'](async(_0x4db2a1,_0x52979c)=>{const _0x4bc438=a2_0x2c0ee8,_0x68873e=new JobShowCommand(),_0x8c7863=program[_0x4bc438(0x2fb)](),_0x146d2a=await createTDXInstance(_0x8c7863),_0x221e5d=await _0x68873e[_0x4bc438(0x39c)]({'options':{..._0x8c7863,..._0x52979c},'args':[_0x4db2a1],'tdx':_0x146d2a});process[_0x4bc438(0x37f)](_0x221e5d);}),jobCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x361))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x37c))[a2_0x2c0ee8(0x32a)](async(_0x12b0d7,_0x4ccfde)=>{const _0x281cf6=a2_0x2c0ee8,_0x2c3941=new JobKillCommand(),_0x295f61=program[_0x281cf6(0x2fb)](),_0x5dcdd6=await createTDXInstance(_0x295f61),_0x4f6549=await _0x2c3941[_0x281cf6(0x39c)]({'options':{..._0x295f61,..._0x4ccfde},'args':[_0x12b0d7],'tdx':_0x5dcdd6});process[_0x281cf6(0x37f)](_0x4f6549);}),jobCmd[a2_0x2c0ee8(0x3b1)]('submit\x20[query]')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x308))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x243),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x2c0ee8(0x2ee))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1be),'Read\x20query\x20from\x20file')['option'](a2_0x2c0ee8(0x3c0),'Database\x20name\x20(default:\x20information_schema)',a2_0x2c0ee8(0x2e3))[a2_0x2c0ee8(0x32a)](async(_0x3c2d80,_0xe1ab17)=>{const _0x481567=a2_0x2c0ee8,_0x579799=new JobSubmitCommand(),_0x3ee33e=program[_0x481567(0x2fb)](),_0x5b6a47=await createTDXInstance(_0x3ee33e),_0x2f971=await _0x579799[_0x481567(0x39c)]({'options':{..._0x3ee33e,..._0xe1ab17},'args':_0x3c2d80?[_0x3c2d80]:[],'tdx':_0x5b6a47});process[_0x481567(0x37f)](_0x2f971);}),jobCmd['command'](a2_0x2c0ee8(0x1c0))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x29b))[a2_0x2c0ee8(0x32a)](async(_0x4d57a2,_0x16510c)=>{const _0x4c75cb=a2_0x2c0ee8,_0x5daefe=new JobResultCommand(),_0x5d4e66=program[_0x4c75cb(0x2fb)](),_0x39cf60=await createTDXInstance(_0x5d4e66),_0x1e7e0b=await _0x5daefe[_0x4c75cb(0x39c)]({'options':{..._0x5d4e66,..._0x16510c},'args':[_0x4d57a2],'tdx':_0x39cf60});process['exit'](_0x1e7e0b);});const llmCmd=program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x376))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x238));llmCmd['command']('use\x20<project-name>')['description'](a2_0x2c0ee8(0x21a))[a2_0x2c0ee8(0x32a)](async(_0x5167ca,_0x1d1536)=>{const _0x2a00a3=a2_0x2c0ee8,_0x1099b1=new LLMUseCommand(),_0x469d5c=program[_0x2a00a3(0x2fb)](),_0x463043=await createTDXInstance(_0x469d5c),_0x195b00=await _0x1099b1[_0x2a00a3(0x39c)]({'options':{..._0x469d5c,..._0x1d1536},'args':[_0x5167ca],'tdx':_0x463043});process[_0x2a00a3(0x37f)](_0x195b00);}),llmCmd[a2_0x2c0ee8(0x3b1)]('models')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3d8))['action'](async _0x34bd5a=>{const _0x5e2d72=a2_0x2c0ee8,_0x32d432=new LLMModelsCommand(),_0x3f5d82=program[_0x5e2d72(0x2fb)](),_0x1bd9fd=await createTDXInstance(_0x3f5d82),_0x7f8293=await _0x32d432[_0x5e2d72(0x39c)]({'options':{..._0x3f5d82,..._0x34bd5a},'args':[],'tdx':_0x1bd9fd});process[_0x5e2d72(0x37f)](_0x7f8293);});const projectCmd=llmCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x359))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3b6)),llmProjectListAction=async(_0x79c06f,_0x363a22)=>{const _0x223656=a2_0x2c0ee8,_0x499d85=new LLMProjectsCommand(),_0x47409a=program['opts'](),_0x20480c=await createTDXInstance(_0x47409a),_0x15dc80=await _0x499d85[_0x223656(0x39c)]({'options':{..._0x47409a,..._0x363a22},'args':_0x79c06f?[_0x79c06f]:[],'tdx':_0x20480c});process[_0x223656(0x37f)](_0x15dc80);};projectCmd[a2_0x2c0ee8(0x3b1)]('list\x20[pattern]')[a2_0x2c0ee8(0x3b9)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x2c0ee8(0x32a)](llmProjectListAction),llmCmd['command'](a2_0x2c0ee8(0x3a8))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3a9))[a2_0x2c0ee8(0x32a)](llmProjectListAction),projectCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1d3))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3a2))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x39b),a2_0x2c0ee8(0x21d))[a2_0x2c0ee8(0x32a)](async(_0x46d652,_0x4bf3c3)=>{const _0x2ed58b=a2_0x2c0ee8,_0x453f57=new LLMProjectCreateCommand(),_0x3d5d96=program[_0x2ed58b(0x2fb)](),_0x4496a8=await createTDXInstance(_0x3d5d96),_0xba90a4=await _0x453f57[_0x2ed58b(0x39c)]({'options':{..._0x3d5d96,..._0x4bf3c3},'args':[_0x46d652],'tdx':_0x4496a8});process[_0x2ed58b(0x37f)](_0xba90a4);}),projectCmd[a2_0x2c0ee8(0x3b1)]('delete\x20<name>')[a2_0x2c0ee8(0x3b9)]('Delete\x20an\x20LLM\x20project')[a2_0x2c0ee8(0x32a)](async(_0x3a9006,_0x32e900)=>{const _0x41c299=a2_0x2c0ee8,_0x1ad5eb=new LLMProjectDeleteCommand(),_0x369f5c=program[_0x41c299(0x2fb)](),_0x401cb6=await createTDXInstance(_0x369f5c),_0x5177c5=await _0x1ad5eb[_0x41c299(0x39c)]({'options':{..._0x369f5c,..._0x32e900},'args':[_0x3a9006],'tdx':_0x401cb6});process[_0x41c299(0x37f)](_0x5177c5);}),projectCmd['command'](a2_0x2c0ee8(0x2c8))['description']('Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder')[a2_0x2c0ee8(0x1d1)]('-o,\x20--output\x20<folder>',a2_0x2c0ee8(0x244))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x34f),a2_0x2c0ee8(0x239))['action'](async(_0x3a3372,_0xdd511a)=>{const _0x1b9875=a2_0x2c0ee8,_0xaa9719=new LLMProjectBackupCommand(),_0x15e14a=program['opts'](),_0x4e80b9=await createTDXInstance(_0x15e14a),_0x383cca=await _0xaa9719[_0x1b9875(0x39c)]({'options':{..._0x15e14a,..._0xdd511a},'args':[_0x3a3372],'tdx':_0x4e80b9});process['exit'](_0x383cca);}),projectCmd[a2_0x2c0ee8(0x3b1)]('restore\x20<folder>')[a2_0x2c0ee8(0x3b9)]('Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder')['option'](a2_0x2c0ee8(0x2c9),a2_0x2c0ee8(0x2c0))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x34f),a2_0x2c0ee8(0x382))[a2_0x2c0ee8(0x32a)](async(_0x2f25aa,_0x27830a)=>{const _0x25c8e5=a2_0x2c0ee8,_0xb0393a=new LLMProjectRestoreCommand(),_0x350ece=program[_0x25c8e5(0x2fb)](),_0x22f7fb=await createTDXInstance(_0x350ece),_0xd62929=await _0xb0393a['run']({'options':{..._0x350ece,..._0x27830a},'args':[_0x2f25aa],'tdx':_0x22f7fb});process[_0x25c8e5(0x37f)](_0xd62929);});const agentCmd=llmCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x26d))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x259)),llmAgentListAction=async(_0x469629,_0x4ad9d2)=>{const _0x19eddd=a2_0x2c0ee8,_0x39d4de=new LLMAgentsCommand(),_0xb4ed26=program['opts'](),_0x3a39e4=await createTDXInstance(_0xb4ed26),_0x11eabc=await _0x39d4de[_0x19eddd(0x39c)]({'options':{..._0xb4ed26,..._0x4ad9d2},'args':_0x469629?[_0x469629]:[],'tdx':_0x3a39e4});process['exit'](_0x11eabc);};agentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f1))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3cc))[a2_0x2c0ee8(0x32a)](llmAgentListAction),llmCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1d2))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3d9))[a2_0x2c0ee8(0x32a)](llmAgentListAction),agentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x344))['description'](a2_0x2c0ee8(0x354))[a2_0x2c0ee8(0x32a)](async(_0x418810,_0x4f7480)=>{const _0x9627ba=a2_0x2c0ee8,_0x3f83af=new LLMAgentShowCommand(),_0x4ba892=program[_0x9627ba(0x2fb)](),_0x2add64=await createTDXInstance(_0x4ba892),_0x1a9e2a=await _0x3f83af[_0x9627ba(0x39c)]({'options':{..._0x4ba892,..._0x4f7480},'args':[_0x418810],'tdx':_0x2add64});process['exit'](_0x1a9e2a);}),agentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1d3))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x213))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1d4),a2_0x2c0ee8(0x2cc))[a2_0x2c0ee8(0x1d1)]('--model\x20<name>',a2_0x2c0ee8(0x1d0),a2_0x2c0ee8(0x337))[a2_0x2c0ee8(0x1d1)]('--starter-message\x20<text>',a2_0x2c0ee8(0x297))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1dd),a2_0x2c0ee8(0x2a7),'4')[a2_0x2c0ee8(0x1d1)]('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x2c0ee8(0x38b))['action'](async(_0x5389b1,_0xf5a939)=>{const _0xfb7de5=a2_0x2c0ee8,_0x23d11f=new LLMAgentCreateCommand(),_0x457a79=program['opts'](),_0xba482d=await createTDXInstance(_0x457a79),_0x4037d8=await _0x23d11f[_0xfb7de5(0x39c)]({'options':{..._0x457a79,..._0xf5a939},'args':[_0x5389b1],'tdx':_0xba482d});process['exit'](_0x4037d8);}),agentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x399))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2e0))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3bd),a2_0x2c0ee8(0x3b5))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x257),a2_0x2c0ee8(0x333))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x39b),a2_0x2c0ee8(0x36b))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3b2),a2_0x2c0ee8(0x297))[a2_0x2c0ee8(0x32a)](async(_0x12b6d5,_0x2fdce7)=>{const _0x1c8332=a2_0x2c0ee8,_0x29cfae=new LLMAgentUpdateCommand(),_0x5974f0=program[_0x1c8332(0x2fb)](),_0x2acb47=await createTDXInstance(_0x5974f0),_0x1c9d5f=await _0x29cfae[_0x1c8332(0x39c)]({'options':{..._0x5974f0,..._0x2fdce7},'args':[_0x12b6d5],'tdx':_0x2acb47});process[_0x1c8332(0x37f)](_0x1c9d5f);}),agentCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f2))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x1f9))[a2_0x2c0ee8(0x32a)](async(_0x215f71,_0x4e673e)=>{const _0x2ef244=a2_0x2c0ee8,_0x1a52e0=new LLMAgentDeleteCommand(),_0x2ce782=program['opts'](),_0x3399df=await createTDXInstance(_0x2ce782),_0x22288b=await _0x1a52e0[_0x2ef244(0x39c)]({'options':{..._0x2ce782,..._0x4e673e},'args':[_0x215f71],'tdx':_0x3399df});process[_0x2ef244(0x37f)](_0x22288b);}),llmCmd['command'](a2_0x2c0ee8(0x2a3))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x1ed))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x26a),a2_0x2c0ee8(0x1f4))[a2_0x2c0ee8(0x32a)](async(_0x3a0533,_0x11b36e)=>{const _0xc5447e=a2_0x2c0ee8,_0x345240=new LLMHistoryCommand(),_0x2edbd2=program[_0xc5447e(0x2fb)](),_0x195d1c=await createTDXInstance(_0x2edbd2),_0x4ddc55=await _0x345240['run']({'options':{..._0x2edbd2,..._0x11b36e},'args':_0x3a0533?[_0x3a0533]:[],'tdx':_0x195d1c});process[_0xc5447e(0x37f)](_0x4ddc55);}),llmCmd['command']('proxy')[a2_0x2c0ee8(0x3b9)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x2c0ee8(0x1d1)]('--port\x20<number>',a2_0x2c0ee8(0x29e),a2_0x2c0ee8(0x2dc))[a2_0x2c0ee8(0x1d1)]('--project\x20<name>',a2_0x2c0ee8(0x1d6))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1e3),a2_0x2c0ee8(0x227))['action'](async _0x4e9007=>{const _0x5f0477=a2_0x2c0ee8,_0x41098c=new LLMProxyCommand(),_0x1e153c=program[_0x5f0477(0x2fb)](),_0x19599c=await createTDXInstance(_0x1e153c),_0x50a086={..._0x4e9007,'port':_0x4e9007[_0x5f0477(0x327)]?parseInt(_0x4e9007[_0x5f0477(0x327)],0xa):undefined},_0x427adb=await _0x41098c[_0x5f0477(0x39c)]({'options':{..._0x1e153c,..._0x50a086},'args':[],'tdx':_0x19599c});process[_0x5f0477(0x37f)](_0x427adb);}),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x258))[a2_0x2c0ee8(0x22d)]('[options]\x20--\x20[claude-code-args...]')['description'](a2_0x2c0ee8(0x3b3))[a2_0x2c0ee8(0x1d1)]('--model\x20<name>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','sonnet')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x286),a2_0x2c0ee8(0x32b))['option'](a2_0x2c0ee8(0x2ea),a2_0x2c0ee8(0x251))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x20b),a2_0x2c0ee8(0x2d4))[a2_0x2c0ee8(0x33e)]()['allowExcessArguments'](!![])['addHelpText']('after',a2_0x2c0ee8(0x3c1))['action'](async(_0x4d76c1,_0x3317df)=>{const _0xee26ef=a2_0x2c0ee8,_0x475dfd=program['opts'](),_0x30f20f=Array['isArray'](_0x4d76c1)?_0x4d76c1:[];if(_0x30f20f[0x0]===_0xee26ef(0x2cb)){const _0x39b612=new ClaudeStatuslineCommand(),_0x4d10d1=await _0x39b612[_0xee26ef(0x39c)]({'options':{..._0x475dfd,..._0x3317df},'args':_0x30f20f[_0xee26ef(0x34e)](0x1),'tdx':null});process[_0xee26ef(0x37f)](_0x4d10d1);}if(_0x30f20f[0x0]===_0xee26ef(0x22d)){const _0x189b09=new ClaudeUsageCommand(),_0x964e90=await _0x189b09[_0xee26ef(0x39c)]({'options':{..._0x475dfd,..._0x3317df},'args':_0x30f20f[_0xee26ef(0x34e)](0x1),'tdx':null});process[_0xee26ef(0x37f)](_0x964e90);}const _0x4174ab=new ClaudeCommand(),_0xecdcf3=await createTDXInstance(_0x475dfd),_0x108e1d=await _0x4174ab[_0xee26ef(0x39c)]({'options':{..._0x475dfd,..._0x3317df},'args':_0x30f20f,'tdx':_0xecdcf3});process[_0xee26ef(0x37f)](_0x108e1d);}),program[a2_0x2c0ee8(0x3b1)]('context')['description'](a2_0x2c0ee8(0x1d5))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x20f),a2_0x2c0ee8(0x2a1))[a2_0x2c0ee8(0x32a)](async _0x6b7715=>{const _0x2a4d03=a2_0x2c0ee8,_0x56104b=new ContextCommand(),_0x2d0001=program[_0x2a4d03(0x2fb)](),_0x45943d=await _0x56104b['run']({'options':{..._0x2d0001,..._0x6b7715},'args':[],'tdx':null});process[_0x2a4d03(0x37f)](_0x45943d);}),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x37e))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x247))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x20f),'Clear\x20session\x20context')[a2_0x2c0ee8(0x32a)](async(_0x2fa370,_0x5008cd,_0x5640ab)=>{const _0x4e1174=a2_0x2c0ee8,_0xc13512=new UseCommand(),_0xb4456e=program[_0x4e1174(0x2fb)](),_0x39802a=[];if(_0x2fa370)_0x39802a[_0x4e1174(0x3c2)](_0x2fa370);if(_0x5008cd)_0x39802a[_0x4e1174(0x3c2)](_0x5008cd);const _0xe82196=await _0xc13512[_0x4e1174(0x39c)]({'options':{..._0xb4456e,..._0x5640ab},'args':_0x39802a,'tdx':null});process['exit'](_0xe82196);}),program[a2_0x2c0ee8(0x3b1)]('chats')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x23d))[a2_0x2c0ee8(0x1d1)]('--last',a2_0x2c0ee8(0x2ad))[a2_0x2c0ee8(0x32a)](async _0x2fdb3b=>{const _0xa01590=a2_0x2c0ee8,_0x178287=new ChatsCommand(),_0x2226dc=program[_0xa01590(0x2fb)](),_0x3b041c=await createTDXInstance(_0x2226dc),_0x5698fd=await _0x178287[_0xa01590(0x39c)]({'options':{..._0x2226dc,..._0x2fdb3b},'args':[],'tdx':_0x3b041c});process[_0xa01590(0x37f)](_0x5698fd);});const authCmd=program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2a2))['description']('Authentication\x20management');async function runAuthStatusCommand(_0x4866f3){const _0x103060=a2_0x2c0ee8,_0x111235=new AuthStatusCommand(),_0x15f0cf=program['opts'](),_0x471837=await createTDXInstance(_0x15f0cf),_0x73a040=await _0x111235['run']({'options':{..._0x15f0cf,..._0x4866f3},'args':[],'tdx':_0x471837});process[_0x103060(0x37f)](_0x73a040);}authCmd[a2_0x2c0ee8(0x32a)](runAuthStatusCommand),authCmd[a2_0x2c0ee8(0x3b1)]('status')[a2_0x2c0ee8(0x3b9)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x2c0ee8(0x32a)](runAuthStatusCommand),authCmd[a2_0x2c0ee8(0x3b1)]('setup')['description']('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x2c0ee8(0x2c7)](a2_0x2c0ee8(0x30c),a2_0x2c0ee8(0x360))['action'](async _0x3159fe=>{const _0x37d975=a2_0x2c0ee8,_0x57430e=new AuthSetupCommand(),_0xec2979=program[_0x37d975(0x2fb)](),_0x30eebc=await createTDXInstance(_0xec2979),_0x4978fb=await _0x57430e['run']({'options':{..._0xec2979,..._0x3159fe},'args':[],'tdx':_0x30eebc});process['exit'](_0x4978fb);}),authCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2f0))['description'](a2_0x2c0ee8(0x2dd))[a2_0x2c0ee8(0x2c7)](a2_0x2c0ee8(0x30c),a2_0x2c0ee8(0x2ba))[a2_0x2c0ee8(0x32a)](async _0x5d9016=>{const _0x2d7c3a=a2_0x2c0ee8,_0x3884c0=new AuthClearCommand(),_0x1e76b3=program[_0x2d7c3a(0x2fb)](),_0x17ebe5=await _0x3884c0[_0x2d7c3a(0x39c)]({'options':{..._0x1e76b3,..._0x5d9016},'args':[],'tdx':null});process[_0x2d7c3a(0x37f)](_0x17ebe5);});const userCmd=program[a2_0x2c0ee8(0x3b1)]('user')[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x343)),userListAction=async _0x2d8dfc=>{const _0x493cbd=a2_0x2c0ee8,_0x46d45c=new UserListCommand(),_0x2ce292=program[_0x493cbd(0x2fb)](),_0x492845=await createTDXInstance(_0x2ce292),_0x4a0924=await _0x46d45c['run']({'options':{..._0x2ce292,..._0x2d8dfc},'args':[],'tdx':_0x492845});process[_0x493cbd(0x37f)](_0x4a0924);};userCmd['action'](async _0x41e392=>{const _0x27725e=a2_0x2c0ee8,_0x25ad61=new UserCommand(),_0x15614b=program[_0x27725e(0x2fb)](),_0x496143=await createTDXInstance(_0x15614b),_0x4174df=await _0x25ad61[_0x27725e(0x39c)]({'options':{..._0x15614b,..._0x41e392},'args':[],'tdx':_0x496143});process[_0x27725e(0x37f)](_0x4174df);}),userCmd['command'](a2_0x2c0ee8(0x1eb))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3c8))[a2_0x2c0ee8(0x32a)](userListAction),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1cc))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2bf))['action'](userListAction),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x37b))['description']('List\x20all\x20available\x20profiles')[a2_0x2c0ee8(0x32a)](async _0x29b030=>{const _0x39bbcf=a2_0x2c0ee8,_0x10d2eb=new ProfilesCommand(),_0x7ad3a1=program[_0x39bbcf(0x2fb)](),_0x166232=await _0x10d2eb[_0x39bbcf(0x39c)]({'options':{..._0x7ad3a1,..._0x29b030},'args':[],'tdx':null});process[_0x39bbcf(0x37f)](_0x166232);});const engageCmd=program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x25b))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x34d)),createEngageAction=_0x447e42=>{return async(_0x408c10,_0x93be6d)=>{const _0x4c22ba=a2_0x1ee3,_0x3ffc71=new _0x447e42(),_0xf699eb=program[_0x4c22ba(0x2fb)](),_0x66e0bb=await createTDXInstance(_0xf699eb),_0x205edb=await _0x3ffc71['run']({'options':{..._0xf699eb,..._0x93be6d},'args':[_0x408c10],'tdx':_0x66e0bb});process[_0x4c22ba(0x37f)](_0x205edb);};},createEngageNoArgAction=_0x1406e6=>{return async _0x46b100=>{const _0x50f08f=a2_0x1ee3,_0x1945f9=new _0x1406e6(),_0x204555=program[_0x50f08f(0x2fb)](),_0x36eb17=await createTDXInstance(_0x204555),_0x5c3ac3=await _0x1945f9['run']({'options':{..._0x204555,..._0x46b100},'args':[],'tdx':_0x36eb17});process['exit'](_0x5c3ac3);};},campaignCmd=engageCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x225))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x38c)),campaignListAction=async(_0x337697,_0x398823)=>{const _0x59c9e7=a2_0x2c0ee8,_0x5ad0ff=new EngageCampaignsCommand(),_0x2e7e42=program['opts'](),_0x4a3dad=await createTDXInstance(_0x2e7e42),_0x214ddf=await _0x5ad0ff[_0x59c9e7(0x39c)]({'options':{..._0x2e7e42,..._0x398823},'args':_0x337697?[_0x337697]:[],'tdx':_0x4a3dad});process[_0x59c9e7(0x37f)](_0x214ddf);};campaignCmd[a2_0x2c0ee8(0x3b1)]('list\x20[pattern]')[a2_0x2c0ee8(0x3b9)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x2c0ee8(0x1d1)]('--type\x20<type>',a2_0x2c0ee8(0x22a))['option'](a2_0x2c0ee8(0x305),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option']('--workspace\x20<name>','Workspace\x20name')['action'](campaignListAction),engageCmd['command'](a2_0x2c0ee8(0x2c1))[a2_0x2c0ee8(0x3b9)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x329),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x2c0ee8(0x1d1)]('--status\x20<status>',a2_0x2c0ee8(0x230))['option'](a2_0x2c0ee8(0x312),'Workspace\x20name')[a2_0x2c0ee8(0x32a)](campaignListAction),campaignCmd['command'](a2_0x2c0ee8(0x1f5))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x202))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x312),a2_0x2c0ee8(0x2a5))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x290),a2_0x2c0ee8(0x2f5))[a2_0x2c0ee8(0x32a)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x39d))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x24e))[a2_0x2c0ee8(0x1e6)](a2_0x2c0ee8(0x231),a2_0x2c0ee8(0x2a0))[a2_0x2c0ee8(0x1e6)](a2_0x2c0ee8(0x329),a2_0x2c0ee8(0x2c3))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x312),a2_0x2c0ee8(0x1c8))['option']('--description\x20<desc>',a2_0x2c0ee8(0x24b))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3c7),a2_0x2c0ee8(0x2fa))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x300),a2_0x2c0ee8(0x203))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x204),a2_0x2c0ee8(0x29d))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2d6),a2_0x2c0ee8(0x357))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x1e1),a2_0x2c0ee8(0x2c6))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x2c0ee8(0x313))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x1bc))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x312),a2_0x2c0ee8(0x2a5))['option'](a2_0x2c0ee8(0x231),a2_0x2c0ee8(0x25a))['option'](a2_0x2c0ee8(0x3db),a2_0x2c0ee8(0x24b))['option'](a2_0x2c0ee8(0x3c7),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x300),a2_0x2c0ee8(0x203))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x204),a2_0x2c0ee8(0x29d))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2d6),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')['option']('--timezone\x20<tz>',a2_0x2c0ee8(0x2c6))[a2_0x2c0ee8(0x32a)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x282))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x26e))['option'](a2_0x2c0ee8(0x312),a2_0x2c0ee8(0x2a5))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x22f),'Skip\x20confirmation\x20prompt')[a2_0x2c0ee8(0x32a)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x25e))['description'](a2_0x2c0ee8(0x36d))['option'](a2_0x2c0ee8(0x312),a2_0x2c0ee8(0x2a5))[a2_0x2c0ee8(0x32a)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x303))['description']('Pause\x20a\x20campaign')['option'](a2_0x2c0ee8(0x312),'Workspace\x20name')['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x36f))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x205))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x312),a2_0x2c0ee8(0x2a5))[a2_0x2c0ee8(0x32a)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2b2))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x35d))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x312),'Workspace\x20name')[a2_0x2c0ee8(0x32a)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x2c0ee8(0x3b1)]('template')['description'](a2_0x2c0ee8(0x32c)),templateListAction=async(_0x4e97e6,_0x1df57c)=>{const _0xfb7b4c=a2_0x2c0ee8,_0x5c5cc7=new EngageTemplatesCommand(),_0x2cadab=program['opts'](),_0x12f7ef=await createTDXInstance(_0x2cadab),_0x4c5b67=await _0x5c5cc7[_0xfb7b4c(0x39c)]({'options':{..._0x2cadab,..._0x1df57c},'args':_0x4e97e6?[_0x4e97e6]:[],'tdx':_0x12f7ef});process[_0xfb7b4c(0x37f)](_0x4c5b67);};templateCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f1))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2b4))['option']('--workspace\x20<name>',a2_0x2c0ee8(0x2a5))['action'](templateListAction),engageCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x3a5))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2f6))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x312),'Workspace\x20name')[a2_0x2c0ee8(0x32a)](templateListAction),templateCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f5))['description'](a2_0x2c0ee8(0x288))[a2_0x2c0ee8(0x1d1)]('--workspace\x20<name>',a2_0x2c0ee8(0x2a5))[a2_0x2c0ee8(0x1d1)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x39d))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x325))['requiredOption'](a2_0x2c0ee8(0x231),a2_0x2c0ee8(0x2b5))[a2_0x2c0ee8(0x1e6)](a2_0x2c0ee8(0x1fa),a2_0x2c0ee8(0x2ca))[a2_0x2c0ee8(0x1e6)](a2_0x2c0ee8(0x3d5),a2_0x2c0ee8(0x279))[a2_0x2c0ee8(0x1d1)]('--workspace\x20<name>',a2_0x2c0ee8(0x1c8))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x200),a2_0x2c0ee8(0x1dc))['option']('--editor-type\x20<type>',a2_0x2c0ee8(0x2f8))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x313))[a2_0x2c0ee8(0x3b9)]('Update\x20an\x20email\x20template')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x312),a2_0x2c0ee8(0x2a5))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x231),a2_0x2c0ee8(0x374))['option']('--subject\x20<subject>',a2_0x2c0ee8(0x2ca))[a2_0x2c0ee8(0x1d1)]('--html\x20<html>',a2_0x2c0ee8(0x279))['option']('--plaintext\x20<text>',a2_0x2c0ee8(0x1dc))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x2c0ee8(0x282))[a2_0x2c0ee8(0x3b9)]('Delete\x20an\x20email\x20template')['option'](a2_0x2c0ee8(0x312),a2_0x2c0ee8(0x2a5))['option'](a2_0x2c0ee8(0x22f),a2_0x2c0ee8(0x2f1))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x2c0ee8(0x3b1)]('workspace')[a2_0x2c0ee8(0x3b9)]('Workspace\x20management'),workspaceListAction=async(_0x46047f,_0x5f41dd)=>{const _0x33a158=a2_0x2c0ee8,_0x7828d0=new EngageWorkspacesCommand(),_0x8d5210=program[_0x33a158(0x2fb)](),_0x45debe=await createTDXInstance(_0x8d5210),_0xb74bcf=await _0x7828d0[_0x33a158(0x39c)]({'options':{..._0x8d5210,..._0x5f41dd},'args':_0x46047f?[_0x46047f]:[],'tdx':_0x45debe});process[_0x33a158(0x37f)](_0xb74bcf);};workspaceCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f1))['description'](a2_0x2c0ee8(0x20c))[a2_0x2c0ee8(0x32a)](workspaceListAction),engageCmd['command'](a2_0x2c0ee8(0x271))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x3a3))[a2_0x2c0ee8(0x32a)](workspaceListAction),workspaceCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1f5))['description']('Show\x20workspace\x20details')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x290),a2_0x2c0ee8(0x2f5))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x39d))['description'](a2_0x2c0ee8(0x339))[a2_0x2c0ee8(0x1e6)](a2_0x2c0ee8(0x231),'Workspace\x20name')[a2_0x2c0ee8(0x1d1)]('--description\x20<desc>',a2_0x2c0ee8(0x3c5))[a2_0x2c0ee8(0x32a)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x313))['description'](a2_0x2c0ee8(0x221))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x231),a2_0x2c0ee8(0x210))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x3db),'Workspace\x20description')[a2_0x2c0ee8(0x32a)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x282))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x31a))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x22f),a2_0x2c0ee8(0x2f1))[a2_0x2c0ee8(0x32a)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2f7))['description'](a2_0x2c0ee8(0x295))[a2_0x2c0ee8(0x32a)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x2c0ee8(0x362))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x219)),connectionListAction=async _0x3a5cd4=>{const _0xc8a5c1=a2_0x2c0ee8,_0x4a34e3=new ConnectionListCommand(),_0x49eee3=program[_0xc8a5c1(0x2fb)](),_0x59451a=await createTDXInstance(_0x49eee3),_0x1f1f7f=await _0x4a34e3[_0xc8a5c1(0x39c)]({'options':{..._0x49eee3,..._0x3a5cd4},'args':[],'tdx':_0x59451a});process[_0xc8a5c1(0x37f)](_0x1f1f7f);};connectionCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1eb))['description'](a2_0x2c0ee8(0x3b7))['action'](connectionListAction),program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x373),{'hidden':!![]})[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2b8))[a2_0x2c0ee8(0x32a)](connectionListAction),connectionCmd['command'](a2_0x2c0ee8(0x369))['description'](a2_0x2c0ee8(0x2e9))['action'](async(_0x188389,_0x55d110)=>{const _0x3ba564=a2_0x2c0ee8,_0x1d3514=new ConnectionShowCommand(),_0x1a0f1e=program[_0x3ba564(0x2fb)](),_0x22a4a2=await createTDXInstance(_0x1a0f1e),_0x3451f5=await _0x1d3514['run']({'options':{..._0x1a0f1e,..._0x55d110},'args':[_0x188389],'tdx':_0x22a4a2});process['exit'](_0x3451f5);});const journeyCmd=program[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x393))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x311));journeyCmd['command'](a2_0x2c0ee8(0x1f1))['description'](a2_0x2c0ee8(0x3ad))[a2_0x2c0ee8(0x32a)](async(_0x4e8548,_0x2b63af)=>{const _0x4ec666=a2_0x2c0ee8,_0x4de693=new JourneyListCommand(),_0x5c5c29=program[_0x4ec666(0x2fb)](),_0x1c0259=await createTDXInstance(_0x5c5c29),_0x5bcf84=await _0x4de693['run']({'options':{..._0x5c5c29,..._0x2b63af},'args':_0x4e8548?[_0x4e8548]:[],'tdx':_0x1c0259});process[_0x4ec666(0x37f)](_0x5bcf84);}),journeyCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1d9))[a2_0x2c0ee8(0x3b9)]('Show\x20journey\x20details')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x37a),a2_0x2c0ee8(0x291))[a2_0x2c0ee8(0x32a)](async(_0x3fd34c,_0xd4d71a)=>{const _0x5f0840=a2_0x2c0ee8,_0x118cee=new JourneyViewCommand(),_0xafbd6b=program[_0x5f0840(0x2fb)](),_0x14f08e=await createTDXInstance(_0xafbd6b),_0x201d1c=await _0x118cee['run']({'options':{..._0xafbd6b,..._0xd4d71a},'args':[_0x3fd34c],'tdx':_0x14f08e});process[_0x5f0840(0x37f)](_0x201d1c);}),journeyCmd['command'](a2_0x2c0ee8(0x2df))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x2f3))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x38e),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x2c0ee8(0x32a)](async(_0x3df0fd,_0x129a42)=>{const _0x1c9f2b=a2_0x2c0ee8,_0x12f2a5=new JourneyStatsCommand(),_0x5da01e=program['opts'](),_0x2d6c20=await createTDXInstance(_0x5da01e),_0x150108=await _0x12f2a5['run']({'options':{..._0x5da01e,..._0x129a42},'args':[_0x3df0fd],'tdx':_0x2d6c20});process[_0x1c9f2b(0x37f)](_0x150108);}),journeyCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x224))['description']('Pause\x20a\x20running\x20journey')[a2_0x2c0ee8(0x32a)](async(_0x2bd0d2,_0x2ab3a7)=>{const _0x52b5e7=a2_0x2c0ee8,_0x259c0a=new JourneyPauseCommand(),_0x4821b9=program['opts'](),_0x316a43=await createTDXInstance(_0x4821b9),_0x420d5e=await _0x259c0a[_0x52b5e7(0x39c)]({'options':{..._0x4821b9,..._0x2ab3a7},'args':[_0x2bd0d2],'tdx':_0x316a43});process[_0x52b5e7(0x37f)](_0x420d5e);}),journeyCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x1e0))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x358))[a2_0x2c0ee8(0x32a)](async(_0x1f897f,_0x49e56c)=>{const _0x2ce8c7=a2_0x2c0ee8,_0x27c077=new JourneyResumeCommand(),_0x352f55=program['opts'](),_0x43278f=await createTDXInstance(_0x352f55),_0x3b9ca9=await _0x27c077[_0x2ce8c7(0x39c)]({'options':{..._0x352f55,..._0x49e56c},'args':[_0x1f897f],'tdx':_0x43278f});process[_0x2ce8c7(0x37f)](_0x3b9ca9);}),journeyCmd[a2_0x2c0ee8(0x3b1)](a2_0x2c0ee8(0x2e8))[a2_0x2c0ee8(0x3b9)](a2_0x2c0ee8(0x33b))[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x2e4),'Skip\x20confirmation\x20prompt')[a2_0x2c0ee8(0x1d1)](a2_0x2c0ee8(0x34f),a2_0x2c0ee8(0x2ab))['action'](async(_0x18a59f,_0x25c579)=>{const _0x465d10=a2_0x2c0ee8,_0x1b3052=new JourneyPullCommand(),_0x4b6554=program[_0x465d10(0x2fb)](),_0x42154a=await createTDXInstance(_0x4b6554),_0x1fcb3e=await _0x1b3052[_0x465d10(0x39c)]({'options':{..._0x4b6554,..._0x25c579},'args':_0x18a59f?[_0x18a59f]:[],'tdx':_0x42154a});process[_0x465d10(0x37f)](_0x1fcb3e);});export{program};export function runCLI(){const _0x39774e=a2_0x2c0ee8;program[_0x39774e(0x284)](process[_0x39774e(0x301)]);!process[_0x39774e(0x301)][_0x39774e(0x34e)](0x2)[_0x39774e(0x323)]&&program['outputHelp']();const _0x44ea22=packageJson[_0x39774e(0x350)];process[_0x39774e(0x379)][_0x39774e(0x23c)]&&process['argv'][_0x39774e(0x323)]>0x2&&!_0x44ea22[_0x39774e(0x375)](_0x39774e(0x2d7))&&checkForUpdate(_0x44ea22)[_0x39774e(0x351)](_0x366b2f=>{_0x366b2f&&displayUpdateNotification(_0x366b2f);})[_0x39774e(0x272)](()=>{});}
1
+ const a2_0x424d2f=a2_0x1c8c;(function(_0x3c6922,_0x42a0ff){const _0x4ba609=a2_0x1c8c,_0x4f3b4f=_0x3c6922();while(!![]){try{const _0x15407c=parseInt(_0x4ba609(0x100))/0x1+-parseInt(_0x4ba609(0x247))/0x2*(parseInt(_0x4ba609(0x235))/0x3)+parseInt(_0x4ba609(0x166))/0x4*(parseInt(_0x4ba609(0x14a))/0x5)+-parseInt(_0x4ba609(0x1e1))/0x6*(parseInt(_0x4ba609(0x19c))/0x7)+-parseInt(_0x4ba609(0x28c))/0x8+parseInt(_0x4ba609(0x12f))/0x9*(-parseInt(_0x4ba609(0x18b))/0xa)+-parseInt(_0x4ba609(0x13a))/0xb*(-parseInt(_0x4ba609(0x1a8))/0xc);if(_0x15407c===_0x42a0ff)break;else _0x4f3b4f['push'](_0x4f3b4f['shift']());}catch(_0x1b48f3){_0x4f3b4f['push'](_0x4f3b4f['shift']());}}}(a2_0x1e7b,0x9a688));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}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';function a2_0x1c8c(_0x1190f2,_0x23e5c7){_0x1190f2=_0x1190f2-0xc4;const _0x1e7bd0=a2_0x1e7b();let _0x1c8c81=_0x1e7bd0[_0x1190f2];return _0x1c8c81;}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_0x424d2f(0x18f)](readFileSync(join(__dirname,a2_0x424d2f(0x114)),a2_0x424d2f(0x134)));function a2_0x1e7b(){const _0x3be18d=['use\x20<project-name>','auth','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Describe\x20table\x20schema','Folder\x20description','Attributes\x20from\x20JSON\x20file','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Submit\x20a\x20job','Show\x20master\x20table\x20sample\x20data','-f,\x20--file\x20<path>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','optionDescription','backup\x20<name>','--site\x20<site>','-r,\x20--recursive','agent','Read\x20request\x20body\x20from\x20file','--json-columns\x20<cols>','\x20-\x20built\x20','Attributes\x20as\x20JSON\x20string','addHelpText','Agent\x20description','information_schema','delete\x20<agent-name>','filter','--plaintext\x20<text>','196716jnopKM','Project\x20description','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','then','--reason\x20<text>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--limit\x20<n>','Include\x20subtasks\x20in\x20tasks\x20output','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--new','--customer-group\x20<json>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','pull\x20[name]','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Campaign\x20type\x20(email\x20or\x20push)','--add-attributes-file\x20<file>','run','30vXNzrY','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Launch\x20a\x20campaign','--rule\x20<json>','--session-time\x20<time>','templates\x20[pattern]','join','attempt:','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--behavior\x20[name]','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--trace','Show\x20agent\x20details','tdx\x20','Workspace\x20name','after','chats','kill\x20<job-id>','Run\x20Trino\x20query\x20with\x20streaming\x20results','Update\x20an\x20email\x20template','format','sessions\x20[project]','Duplicate\x20a\x20campaign','Database\x20to\x20query\x20(default:\x20information_schema)','--stage\x20<name>','Force\x20retry\x20even\x20if\x20not\x20failed','stats\x20<name-or-path>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Filtering\x20rule\x20as\x20JSON\x20string','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','pull\x20[parent_or_file]','agents\x20[pattern]','slice','--customer-group-file\x20<file>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Master\x20table\x20name','status','[action]','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','run\x20[name]','New\x20workspace\x20name','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','info\x20[segment_name]','Workflow\x20(Digdag)\x20management\x20commands','Show\x20stats\x20for\x20specific\x20stage','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','CDP\x20Journey\x20Orchestration\x20commands','--html\x20<html>','--dry-run','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','--skip-validation','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','List\x20all\x20users\x20in\x20the\x20account','Move\x20to\x20folder','--format\x20<format>','List\x20jobs','-v,\x20--verbose','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','list\x20[path]','sql\x20[name]','command','--agent\x20<name>','--database\x20<name>','8915104ttqiik','Create\x20segment\x20folder','alias','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Trino\x20catalog\x20(default:\x20td)','usage','trace','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Agent\x20reference\x20(project-name/agent-name)','--email-sender-id\x20<id>','Show\x20journey\x20details','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Skip\x20confirmation\x20prompts','--json','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','[options]\x20--\x20[claude-code-args...]','--output\x20<file>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','delete\x20<name-or-id>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','-1d','--name\x20<name>','argv','map','Master\x20database\x20name','repeat','Show\x20segment\x20details\x20(alias\x20for\x20view)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','parent',',\x20version\x20','Timezone\x20(e.g.,\x20America/Los_Angeles)','Delete\x20a\x20workspace','Resume\x20from\x20specific\x20task\x20(retry)','--debug','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','workspaces\x20[pattern]','engage','update\x20<name-or-id>','fields\x20[name]','Output\x20as\x20JSON\x20Lines','--params\x20<json>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--force','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Revision\x20name\x20(default:\x20timestamp)','--database\x20<db>','--name\x20<new-name>','colorFn','desc','catch','Create\x20a\x20new\x20campaign','\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','Maximum\x20tool\x20iterations\x20(default:\x204)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','hook','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Output\x20as\x20JSON','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Plaintext\x20template\x20content','statusline','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','4000','-o,\x20--output\x20<file>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','tables\x20[pattern]','requiredOption','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','-d,\x20--database\x20<name>','push\x20[file]','-X,\x20--method\x20<method>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','fields\x20[parent_name]','--in\x20<database>','commands','duplicate\x20<name-or-id>','resume\x20<name-or-path>','Clear\x20session\x20context','-y,\x20--yes','Show\x20the\x20most\x20recent\x20chat','gitRevision','Show\x20job\x20details','project','push\x20[parent_or_file]','create\x20<parent_name>\x20<folder_name>','isTTY','--delete','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Commands:','folders\x20<parent_name>','connections','show\x20<name>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','use\x20<name>','logLevel','Segment\x20description','stdout','length','[DEPRECATED]\x20Segment\x20folder\x20management','claude\x20[args...]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--schedule-option\x20<value>','Set\x20operation\x20timeout\x20in\x20seconds','push','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','show\x20<name-or-id>','--status\x20<status>','--clear','Resume\x20from\x20specific\x20task','query\x20[sql]','-w,\x20--web','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','attempts\x20[project]','Resume\x20a\x20paused\x20campaign','--editor-type\x20<type>','commandUsage','HTML\x20template\x20content','--llm-project\x20<name>','226305PwIYZW','_hidden','includes','--add-behaviors\x20<json>','DEBUG','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','segments\x20[path]','users','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20available\x20LLM\x20models','help','Get\x20job\x20results','view\x20[segment_name]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Email\x20template\x20management','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','sonnet','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','-u,\x20--use','../package.json','models','Setup\x20API\x20key\x20authentication\x20interactively','subcommandTerm','jsonl','segment','--color','opts','Open\x20parent\x20segment\x20in\x20web\x20browser','forEach','describe\x20[table]','--kind\x20<type>','--description\x20<text>','Export\x20journey(s)\x20as\x20YAML\x20files','--add-attributes\x20<json>','attempt','desc\x20[segment_name]','trino','databases\x20[pattern]','outputHelp','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Folder\x20name\x20for\x20organization','summary','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','-o,\x20--output\x20<folder>','--model\x20<name>','Save\x20output\x20to\x20file','9iXorYH','--catalog\x20<catalog>','--param\x20<key=value>','show\x20[table]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','utf-8','workspace','preview\x20[name]','LLM\x20agent\x20management','--starter-message\x20<text>','End\x20time\x20filter\x20(ISO\x208601\x20format)','28295597fqXDst','result\x20<job-id>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--version','retry','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','push\x20[project-name-or-dir]','--prompt\x20<text>','buildTime','New\x20campaign\x20name','activations\x20<segment_name>','--description\x20<desc>','\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','--full','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','5VJhVEz','update\x20<segment_name>','Updated\x20timezone','--include-subtasks','Show\x20only\x20master\x20table\x20validation','Read\x20SQL\x20query\x20from\x20file','--timezone\x20<tz>','Resume\x20a\x20paused\x20journey','--from\x20<timestamp>','--yes','campaigns\x20[pattern]','create','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--type\x20<type>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','--behaviors-file\x20<file>','-d,\x20--database\x20<database>','Add\x20behaviors\x20as\x20JSON\x20string','port','update\x20<name>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','show\x20<job-id>','launch\x20<name-or-id>','List\x20all\x20data\x20connections','description','use\x20<path>','--parent-folder\x20<name>','--max-depth\x20<depth>','2494556vWvzVT','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Skip\x20confirmation\x20prompt','claude-4.5-sonnet','Editor\x20type','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','json','isArray','user','Agent\x20name','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Set\x20or\x20show\x20parent\x20segment\x20context','error','Delete\x20a\x20campaign','Show\x20workspace\x20details','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Model\x20type\x20(default:\x20claude-4.5-sonnet)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','GET','--workspace\x20<name>','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--timeout\x20<seconds>','sql\x20[segment_name]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','set','required','parent_segment','job','--limit\x20<rows>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Continue\x20most\x20recent\x20conversation','jobs','setup','Pause\x20a\x20campaign','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','3992910WnASNA','Arguments:','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','Workflow\x20session\x20management','parse','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Add\x20attributes\x20as\x20JSON\x20string','delete\x20<project-name-or-id>','Show\x20segment\x20schema\x20(column\x20types)','chat\x20[message...]','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','create\x20<name>','--include-retried','create\x20<segment_name>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--no-proxy','Output\x20file\x20path','28cksscr','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Unknown\x20action:\x20','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','--schedule-type\x20<type>','get','option','Agent\x20prompt/instructions','Maximum\x20recursion\x20depth\x20(default:\x2010)','Options:','profile','Parent\x20segment\x20management','12gOoywA','action','--to\x20<timestamp>','Parent\x20segment\x20description','download\x20<project-name>\x20[output-dir]','Include\x20retried\x20attempts','TRACE','Alias\x20for\x20--database\x20(natural\x20language\x20style)','log','--start-at\x20<datetime>','allowUnknownOption','update\x20<agent-name>','Behaviors\x20from\x20JSON\x20file','--project\x20<name>','.dev','Email\x20subject\x20template','--in\x20<name>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--attributes\x20<json>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Workspace\x20name\x20(required)','--revision\x20<revision>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','workflow','validate\x20[file]','subcommandDescription','--job-type\x20<type>','view\x20[name]','exit','argumentTerm','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--no-count-population','--master','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','table','tsv','Customer\x20group\x20as\x20JSON\x20string','--interval\x20<range>','--temperature\x20<n>','argument','INFO','[attempt-id]','--table\x20<table>','Email\x20sender\x20ID\x20for\x20delivery','Create\x20a\x20workspace','Show\x20campaign\x20details','Delete\x20an\x20email\x20template','Show\x20web\x20console\x20URLs\x20for\x20segments','Workspace\x20description','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Include\x20execution\x20statistics','version','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','registeredArguments','--parent-segment\x20<name>','438834kdBlVE','Add\x20behaviors\x20from\x20JSON\x20file','workflows\x20[project]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Request\x20body\x20as\x20JSON\x20string','Table\x20management\x20commands','Parent\x20folder\x20name\x20for\x20nested\x20folders','Customer\x20group\x20from\x20JSON\x20file','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Campaign\x20management','User\x20management\x20commands','--segment\x20<path>','--tsv','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--invisible','--name\x20<text>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','padWidth','Enable\x20verbose\x20logging','list\x20[project]','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','connection','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','site','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--jsonl','desc\x20[name]','List\x20all\x20available\x20profiles','projects\x20[pattern]','--attribute\x20[name]','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','Update\x20an\x20existing\x20agent','name','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Template\x20name','list\x20[pattern]','LLM\x20project\x20management','Starter\x20message','--folder\x20<name>','Update\x20a\x20workspace','aliases','Database\x20name\x20(default:\x20information_schema)','Include\x20retried\x20attempts\x20(for\x20list)','database','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','--from-task\x20<task>','CDP\x20segment\x20management\x20commands','Attempt\x20ID','restore\x20<folder>','Limit\x20number\x20of\x20rows','proxy','list','--enriched','System\x20prompt/instructions\x20(default:\x20empty)','--subject\x20<subject>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)'];a2_0x1e7b=function(){return _0x3be18d;};return a2_0x1e7b();}let buildInfo={};try{buildInfo=JSON[a2_0x424d2f(0x18f)](readFileSync(join(__dirname,'build-info.json'),'utf-8'));}catch{}if(process[a2_0x424d2f(0x2a3)][a2_0x424d2f(0x102)](a2_0x424d2f(0x13d))){let versionOutput=a2_0x424d2f(0x254)+packageJson['version'];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x424d2f(0x143)]&&(versionOutput+=a2_0x424d2f(0x22d)+buildInfo['buildTime']),console[a2_0x424d2f(0x1b0)](versionOutput),process[a2_0x424d2f(0x1c4)](0x0);}const program=new Command();let description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo['gitRevision']?description+=',\x20version\x20'+packageJson['version']+'\x20('+buildInfo[a2_0x424d2f(0xd9)]+')':description+=a2_0x424d2f(0x2aa)+packageJson['version'];program[a2_0x424d2f(0x202)]('tdx')[a2_0x424d2f(0x162)](description),program[a2_0x424d2f(0x1a2)]('-p,\x20--profile\x20<name>',a2_0x424d2f(0x1bb))['option'](a2_0x424d2f(0x228),a2_0x424d2f(0x1cb),'us01')['option'](a2_0x424d2f(0x280),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x424d2f(0x1a2)]('--table',a2_0x424d2f(0x170))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x299),a2_0x424d2f(0x133))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0xcb))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ed),a2_0x424d2f(0x279))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x29d),a2_0x424d2f(0x12e))[a2_0x424d2f(0x1a2)]('--limit\x20<number>',a2_0x424d2f(0x27a))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x11a),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])['option']('--no-color','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])['option'](a2_0x424d2f(0x282),a2_0x424d2f(0x1f3),![])['option'](a2_0x424d2f(0x2ae),a2_0x424d2f(0x184))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x252),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x17c),a2_0x424d2f(0xef),'30')['option'](a2_0x424d2f(0x278),'Preview\x20operation\x20without\x20executing',![])[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),'Skip\x20confirmation\x20prompts',![])[a2_0x424d2f(0x1a2)]('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xcd),'Database\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x424d2f(0x1b8),a2_0x424d2f(0x1af))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1e0),a2_0x424d2f(0x251))['option'](a2_0x424d2f(0xff),a2_0x424d2f(0x2c7)),program['configureHelp']({'formatHelp':(_0x4ff960,_0x1eef09)=>{const _0x59613a=a2_0x424d2f,_0x1e9291=_0x1eef09[_0x59613a(0x1f2)](_0x4ff960,_0x1eef09),_0x465904=0x2,_0x1b48ff=0x2;function _0x1ce40f(_0x678819){const _0x3d6891=_0x59613a,_0x306e64=_0x678819;return!!(_0x306e64[_0x3d6891(0x101)]||_0x306e64['hidden']);}function _0x4bed51(_0x47b8a8,_0x317bab){if(_0x317bab){const _0x1689bf=''+_0x47b8a8['padEnd'](_0x1e9291+_0x1b48ff)+_0x317bab;return _0x1689bf;}return _0x47b8a8;}function _0x1b2b42(_0xa22775){const _0x3a4cb2=_0x59613a;return _0xa22775[_0x3a4cb2(0x24d)]('\x0a')['replace'](/^/gm,'\x20'[_0x3a4cb2(0x2a6)](_0x465904));}const _0x115d17=[];_0x115d17[_0x59613a(0xf0)]('Usage:\x20'+_0x1eef09[_0x59613a(0xfd)](_0x4ff960));const _0x477812=_0x1eef09['commandDescription'](_0x4ff960);_0x477812&&(_0x115d17[_0x59613a(0xf0)](''),_0x115d17['push'](_0x477812));const _0x2ea91e=_0x4ff960[_0x59613a(0xd3)][_0x59613a(0x233)](_0xf7822a=>!_0x1ce40f(_0xf7822a));if(_0x2ea91e['length']>0x0){if(_0x4ff960['name']()==='tdx'){const _0x55f25d=_0x4ff960['opts'](),_0x54fdb1=!_0x55f25d['noColor']&&process[_0x59613a(0xe9)][_0x59613a(0xde)],_0x4561e4=COMMAND_CATEGORIES,_0x255d3e=(_0x596e79,_0x34f274)=>_0x54fdb1?_0x34f274(_0x596e79):_0x596e79,_0xb40b14=new Map();_0x2ea91e['forEach'](_0x5b9958=>{const _0x494d7f=_0x59613a;_0xb40b14[_0x494d7f(0x17f)](_0x5b9958[_0x494d7f(0x202)](),_0x5b9958);}),_0x4561e4[_0x59613a(0x11d)](_0x368de2=>{const _0x5aa0ce=_0x59613a,_0x44b9b9=_0x368de2['commands']['flatMap'](_0x5d48a4=>_0xb40b14[_0x5aa0ce(0x1a1)](_0x5d48a4)??[]);if(_0x44b9b9[_0x5aa0ce(0xea)]>0x0){_0x115d17[_0x5aa0ce(0xf0)](''),_0x115d17[_0x5aa0ce(0xf0)](_0x255d3e(_0x368de2[_0x5aa0ce(0x202)]+':',_0x368de2[_0x5aa0ce(0x2bc)]));const _0x2a68b5=_0x44b9b9[_0x5aa0ce(0x2a4)](_0xafdb5d=>{const _0x38da5f=_0x5aa0ce,_0x2ea50a=_0x1eef09[_0x38da5f(0x117)](_0xafdb5d),_0x58e392=_0x1eef09['subcommandDescription'](_0xafdb5d);return _0x4bed51(_0x2ea50a,_0x58e392);});_0x115d17['push'](_0x1b2b42(_0x2a68b5));}}),_0x115d17[_0x59613a(0xf0)](''),_0x115d17['push'](_0x59613a(0x10f));}else{const _0x5d6844=_0x2ea91e[_0x59613a(0x2a4)](_0x102329=>{const _0x1f69fb=_0x59613a,_0x399ec9=_0x1eef09[_0x1f69fb(0x117)](_0x102329),_0x58e986=_0x1eef09[_0x1f69fb(0x1c1)](_0x102329);return _0x4bed51(_0x399ec9,_0x58e986);});_0x115d17[_0x59613a(0xf0)](''),_0x115d17[_0x59613a(0xf0)](_0x59613a(0xe1)),_0x115d17[_0x59613a(0xf0)](_0x1b2b42(_0x5d6844));}}const _0x5ba5d8=_0x4ff960['options']['filter'](_0x5bea98=>!_0x1ce40f(_0x5bea98));if(_0x5ba5d8[_0x59613a(0xea)]>0x0){const _0x5b5c55=_0x5ba5d8[_0x59613a(0x2a4)](_0x3ef173=>{const _0x125dfc=_0x59613a,_0x1f2860=_0x1eef09['optionTerm'](_0x3ef173),_0x4af320=_0x1eef09[_0x125dfc(0x226)](_0x3ef173);return _0x4bed51(_0x1f2860,_0x4af320);});_0x115d17[_0x59613a(0xf0)](''),_0x115d17['push'](_0x59613a(0x1a5)),_0x115d17[_0x59613a(0xf0)](_0x1b2b42(_0x5b5c55));}const _0x55b1df=(_0x4ff960[_0x59613a(0x1df)]||[])['filter'](_0x37663f=>!_0x1ce40f(_0x37663f));if(_0x55b1df[_0x59613a(0xea)]>0x0){const _0x54d975=_0x55b1df[_0x59613a(0x2a4)](_0x38db85=>{const _0x1e2b54=_0x59613a,_0x5cbf81=_0x1eef09[_0x1e2b54(0x1c5)](_0x38db85),_0x3e955b=_0x1eef09['argumentDescription'](_0x38db85);return _0x4bed51(_0x5cbf81,_0x3e955b);});_0x115d17[_0x59613a(0xf0)](''),_0x115d17[_0x59613a(0xf0)](_0x59613a(0x18c)),_0x115d17[_0x59613a(0xf0)](_0x1b2b42(_0x54d975));}return _0x115d17[_0x59613a(0x24d)]('\x0a');},'subcommandTerm':_0x3855a1=>{const _0x25e860=a2_0x424d2f,_0x3f0071=(_0x3855a1[_0x25e860(0x1df)]||[])[_0x25e860(0x2a4)](_0x5bb67f=>_0x5bb67f[_0x25e860(0x180)]?'<'+_0x5bb67f[_0x25e860(0x202)]()+'>':'['+_0x5bb67f['name']()+']')[_0x25e860(0x24d)]('\x20'),_0x18d4da=_0x3855a1[_0x25e860(0x20a)](),_0x2f900b=_0x18d4da[_0x25e860(0xea)]>0x0?_0x3855a1[_0x25e860(0x202)]()+',\x20'+_0x18d4da[_0x25e860(0x24d)](',\x20'):_0x3855a1['name']();return _0x3f0071?_0x2f900b+'\x20'+_0x3f0071:_0x2f900b;}}),program[a2_0x424d2f(0x2c3)]('preAction',_0x594073=>{const _0x469fcf=a2_0x424d2f,_0xa05aac=_0x594073[_0x469fcf(0x11b)]();if(!_0xa05aac[_0x469fcf(0x25b)]){if(_0xa05aac[_0x469fcf(0x1cc)])_0xa05aac['format']='table';else{if(_0xa05aac['json'])_0xa05aac[_0x469fcf(0x25b)]=_0x469fcf(0x16c);else{if(_0xa05aac['jsonl'])_0xa05aac['format']=_0x469fcf(0x118);else _0xa05aac['tsv']&&(_0xa05aac[_0x469fcf(0x25b)]=_0x469fcf(0x1cd));}}}_0xa05aac['in']&&!_0xa05aac['database']&&(_0xa05aac['database']=_0xa05aac['in']);if(_0xa05aac[_0x469fcf(0x292)])_0xa05aac[_0x469fcf(0xe7)]=LogLevel[_0x469fcf(0x1ae)];else{if(_0xa05aac['debug'])_0xa05aac[_0x469fcf(0xe7)]=LogLevel[_0x469fcf(0x104)];else _0xa05aac[_0x469fcf(0xe7)]===undefined&&(_0xa05aac[_0x469fcf(0xe7)]=LogLevel[_0x469fcf(0x1d2)]);}});async function createTDXInstance(_0x534f2e){const _0x5ace68=a2_0x424d2f,_0xf6fe4=await GlobalContext['createAsync'](_0x534f2e);return _0xf6fe4['injectIntoOptions'](_0x534f2e),TDX[_0x5ace68(0x155)]({'site':_0xf6fe4[_0x5ace68(0x1f9)],'apiKey':_0xf6fe4['apiKey'],'logLevel':_0xf6fe4[_0x5ace68(0xe7)],'profile':_0xf6fe4[_0x5ace68(0x1a6)]});}const databaseCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x20d))[a2_0x424d2f(0x28e)]('db')['description']('Database\x20management\x20commands'),databaseListAction=async(_0x22f02f,_0x540005)=>{const _0x31f4bd=a2_0x424d2f,_0x1f2b2d=new DatabasesCommand(),_0x23a7cf=program[_0x31f4bd(0x11b)](),_0x26e543=await createTDXInstance(_0x23a7cf),_0xe6c3dd=await _0x1f2b2d[_0x31f4bd(0x246)]({'options':{..._0x23a7cf,..._0x540005},'args':_0x22f02f?[_0x22f02f]:[],'tdx':_0x26e543});process[_0x31f4bd(0x1c4)](_0xe6c3dd);};databaseCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program['command'](a2_0x424d2f(0x126),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x1e9))['action'](databaseListAction),program['command'](a2_0x424d2f(0x194))[a2_0x424d2f(0x162)](a2_0x424d2f(0x13c))[a2_0x424d2f(0x1a2)]('--agent\x20<ref>',a2_0x424d2f(0x294))[a2_0x424d2f(0x1a2)]('--model\x20<name>','Model\x20name\x20(default:\x20claude-4.5-sonnet)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1d0),'Temperature\x20(0.0-2.0,\x20default:\x200.7)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x23e),'Start\x20a\x20new\x20chat\x20session')[a2_0x424d2f(0x1a9)](async(_0x17fb25,_0x512868)=>{const _0xc55952=a2_0x424d2f,_0x3f7bbc=new ChatCommand(),_0x2a6579=program['opts'](),_0x39bd93=await createTDXInstance(_0x2a6579),_0x1b2e59=await _0x3f7bbc[_0xc55952(0x246)]({'options':{..._0x2a6579,..._0x512868},'args':_0x17fb25,'tdx':_0x39bd93});process[_0xc55952(0x1c4)](_0x1b2e59);});const apiCmd=program[a2_0x424d2f(0x289)]('api\x20[endpoint]')[a2_0x424d2f(0x12a)](a2_0x424d2f(0x1fa))[a2_0x424d2f(0x22f)](a2_0x424d2f(0x256),a2_0x424d2f(0x147))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xcf),a2_0x424d2f(0x111),a2_0x424d2f(0x178))[a2_0x424d2f(0x1a2)]('--data\x20<data>',a2_0x424d2f(0x1e5))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x224),a2_0x424d2f(0x22b))['option']('-H,\x20--header\x20<header>',a2_0x424d2f(0xe5),(_0x5d179c,_0x41f949)=>{return _0x41f949?[..._0x41f949,_0x5d179c]:[_0x5d179c];})[a2_0x424d2f(0x1a2)]('--type\x20<api_type>',a2_0x424d2f(0x2b8),'td')[a2_0x424d2f(0x1a9)](async(_0x4a25c7,_0x271332)=>{const _0x4152ea=a2_0x424d2f;if(!_0x4a25c7){apiCmd[_0x4152ea(0x10a)]();return;}const _0xe83f9=new ApiCommand(),_0x4c7932=program['opts'](),_0xfa718a=await createTDXInstance(_0x4c7932),_0x4443a4=await _0xe83f9[_0x4152ea(0x246)]({'options':{..._0x4c7932,..._0x271332},'args':[_0x4a25c7],'tdx':_0xfa718a});process['exit'](_0x4443a4);}),tableCmd=program[a2_0x424d2f(0x289)]('table')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1e6)),tableListAction=async(_0x41feb7,_0x461dee)=>{const _0x2a5475=a2_0x424d2f,_0x4d7daf=new TablesCommand(),_0x4cb098=program[_0x2a5475(0x11b)](),_0x2f7e86=await createTDXInstance(_0x4cb098);_0x461dee['in']&&(_0x461dee[_0x2a5475(0x20d)]=_0x461dee['in']);const _0x1a7b39=await _0x4d7daf[_0x2a5475(0x246)]({'options':{..._0x4cb098,..._0x461dee},'args':_0x41feb7?[_0x41feb7]:[],'tdx':_0x2f7e86});process['exit'](_0x1a7b39);};tableCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x424d2f(0x1a2)]('-d,\x20--database\x20<database>',a2_0x424d2f(0x13f))['option'](a2_0x424d2f(0xd2),a2_0x424d2f(0x1af))[a2_0x424d2f(0x1a9)](tableListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0xc9),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x269))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x15a),a2_0x424d2f(0x13f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd2),a2_0x424d2f(0x1af))[a2_0x424d2f(0x1a9)](tableListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0x132))[a2_0x424d2f(0x162)](a2_0x424d2f(0x2c2))[a2_0x424d2f(0x1a2)]('-d,\x20--database\x20<database>',a2_0x424d2f(0x283))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd2),a2_0x424d2f(0x1af))['action'](async(_0x3beea2,_0x22f40f)=>{const _0x2ccfae=a2_0x424d2f,_0xc25d90=new ShowCommand(),_0x1552c8=program[_0x2ccfae(0x11b)](),_0x58dd9e=await createTDXInstance(_0x1552c8);_0x22f40f['in']&&(_0x22f40f['database']=_0x22f40f['in']);const _0x1e5c5a=await _0xc25d90[_0x2ccfae(0x246)]({'options':{..._0x1552c8,..._0x22f40f},'args':_0x3beea2?[_0x3beea2]:[],'tdx':_0x58dd9e});process[_0x2ccfae(0x1c4)](_0x1e5c5a);}),program['command'](a2_0x424d2f(0x11e))[a2_0x424d2f(0x28e)](a2_0x424d2f(0x2bd))[a2_0x424d2f(0x162)](a2_0x424d2f(0x21e))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x15a),a2_0x424d2f(0x283))[a2_0x424d2f(0x1a2)]('--in\x20<database>',a2_0x424d2f(0x1af))[a2_0x424d2f(0x1a9)](async(_0x3a1978,_0x250a90)=>{const _0x3127b6=a2_0x424d2f,_0x12270c=new DescribeCommand(),_0x17cb33=program['opts'](),_0x4f48eb=await createTDXInstance(_0x17cb33);_0x250a90['in']&&(_0x250a90[_0x3127b6(0x20d)]=_0x250a90['in']);const _0x4353a3=await _0x12270c[_0x3127b6(0x246)]({'options':{..._0x17cb33,..._0x250a90},'args':_0x3a1978?[_0x3a1978]:[],'tdx':_0x4f48eb});process[_0x3127b6(0x1c4)](_0x4353a3);}),program['command'](a2_0x424d2f(0xf7))[a2_0x424d2f(0x162)](a2_0x424d2f(0x259))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x15a),a2_0x424d2f(0x25e))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd2),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x130),a2_0x424d2f(0x290))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x224),a2_0x424d2f(0x14f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x183),a2_0x424d2f(0x112),'40')[a2_0x424d2f(0x1a9)](async(_0x54c556,_0x462ec8)=>{const _0x42602f=a2_0x424d2f,_0x217e56=new QueryCommand(),_0x3d5094=program[_0x42602f(0x11b)](),_0x4effae=await createTDXInstance(_0x3d5094);_0x462ec8['in']&&(_0x462ec8[_0x42602f(0x20d)]=_0x462ec8['in']);const _0x2ec2a6=await _0x217e56[_0x42602f(0x246)]({'options':{..._0x3d5094,..._0x462ec8},'args':_0x54c556?[_0x54c556]:[],'tdx':_0x4effae});process[_0x42602f(0x1c4)](_0x2ec2a6);});const segmentCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x119))['alias']('sg')[a2_0x424d2f(0x162)](a2_0x424d2f(0x211)),segmentListAction=async(_0x292393,_0x1dbbda)=>{const _0x403430=a2_0x424d2f,_0xb96f30=new SegmentsCommand(),_0x1829b6=program[_0x403430(0x11b)](),_0x579653=await createTDXInstance(_0x1829b6),_0x2bd50a=await _0xb96f30[_0x403430(0x246)]({'options':{..._0x1829b6,..._0x1dbbda},'args':_0x292393?[_0x292393]:[],'tdx':_0x579653});process[_0x403430(0x1c4)](_0x2bd50a);};segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x287))[a2_0x424d2f(0x162)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x229),a2_0x424d2f(0x2c5))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x165),a2_0x424d2f(0x1a4),'10')['option'](a2_0x424d2f(0xf8),a2_0x424d2f(0x1d9))[a2_0x424d2f(0x1a9)](segmentListAction),program['command'](a2_0x424d2f(0x106),{'hidden':!![]})['description'](a2_0x424d2f(0x16b))[a2_0x424d2f(0x1a2)]('-r,\x20--recursive','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x424d2f(0x1a2)]('--max-depth\x20<depth>',a2_0x424d2f(0x1a4),'10')['option'](a2_0x424d2f(0xf8),a2_0x424d2f(0x1d9))['action'](segmentListAction),segmentCmd['command'](a2_0x424d2f(0x163),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x20e))[a2_0x424d2f(0x1a9)](async(_0x3719a0,_0x476709)=>{const _0x30bc59=a2_0x424d2f,_0x5b9201=new SegmentUseCommand(),_0x558235=program[_0x30bc59(0x11b)](),_0x326b45=await createTDXInstance(_0x558235),_0x5c7433=await _0x5b9201[_0x30bc59(0x246)]({'options':{..._0x558235,..._0x476709},'args':[_0x3719a0],'tdx':_0x326b45});process[_0x30bc59(0x1c4)](_0x5c7433);});const segmentViewAction=async(_0x4e3be5,_0x2a44ca)=>{const _0x16b92a=new SegmentViewCommand(),_0x522ced=program['opts'](),_0x144de5=await createTDXInstance(_0x522ced),_0x468d99=await _0x16b92a['run']({'options':{..._0x522ced,..._0x2a44ca},'args':_0x4e3be5?[_0x4e3be5]:[],'tdx':_0x144de5});process['exit'](_0x468d99);};segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x10c))['description']('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x424d2f(0x1a2)]('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')['action'](segmentViewAction),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x272),{'hidden':!![]})[a2_0x424d2f(0x28e)]('describe')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf8),'Open\x20segment\x20in\x20web\x20browser')[a2_0x424d2f(0x162)](a2_0x424d2f(0x2a7))[a2_0x424d2f(0x1a9)](segmentViewAction),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x124))[a2_0x424d2f(0x162)](a2_0x424d2f(0x193))[a2_0x424d2f(0x1a9)](async(_0x2f5ea1,_0xebc676)=>{const _0x293253=a2_0x424d2f,_0x2c3f28=new SegmentDescCommand(),_0x2b678f=program['opts'](),_0x3f0998=await createTDXInstance(_0x2b678f),_0x2e16f2=await _0x2c3f28[_0x293253(0x246)]({'options':{..._0x2b678f,..._0xebc676},'args':_0x2f5ea1?[_0x2f5ea1]:[],'tdx':_0x3f0998});process[_0x293253(0x1c4)](_0x2e16f2);}),segmentCmd[a2_0x424d2f(0x289)]('show\x20[segment_name]')['description'](a2_0x424d2f(0x1e4))[a2_0x424d2f(0x1a9)](async(_0x134d09,_0x4e80ff)=>{const _0x1352d7=a2_0x424d2f,_0x5bf868=new SegmentShowCommand(),_0x1118a8=program[_0x1352d7(0x11b)](),_0xd2d584=await createTDXInstance(_0x1118a8),_0x2ee17a=await _0x5bf868[_0x1352d7(0x246)]({'options':{..._0x1118a8,..._0x4e80ff},'args':_0x134d09?[_0x134d09]:[],'tdx':_0xd2d584});process[_0x1352d7(0x1c4)](_0x2ee17a);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xe2),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x1c6))['action'](async(_0x5ebd09,_0xc5bc49)=>{const _0x1b83e2=a2_0x424d2f,_0x4c2a2e=new SegmentFolderListCommand(),_0x3d3fa5=program[_0x1b83e2(0x11b)](),_0x32c2a3=await createTDXInstance(_0x3d3fa5),_0x157ecb=await _0x4c2a2e[_0x1b83e2(0x246)]({'options':{..._0x3d3fa5,..._0xc5bc49},'args':[_0x5ebd09],'tdx':_0x32c2a3});process['exit'](_0x157ecb);});const folderCmd=segmentCmd[a2_0x424d2f(0x289)]('folder',{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0xeb));folderCmd[a2_0x424d2f(0x289)]('show\x20<folder_ref>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x237))['action'](async(_0x21b08a,_0x26907f)=>{const _0x342ded=a2_0x424d2f,_0x41fecd=new SegmentFolderShowCommand(),_0x4062e7=program['opts'](),_0x547617=await createTDXInstance(_0x4062e7),_0x5e0689=await _0x41fecd[_0x342ded(0x246)]({'options':{..._0x4062e7,..._0x26907f},'args':[_0x21b08a],'tdx':_0x547617});process['exit'](_0x5e0689);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x17d))[a2_0x424d2f(0x162)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x424d2f(0x1a9)](async(_0x32967c,_0x2d53c0)=>{const _0xd2c19c=a2_0x424d2f,_0x32779e=new SegmentSQLCommand(),_0x27e155=program[_0xd2c19c(0x11b)](),_0xf4d577=await createTDXInstance(_0x27e155),_0x323e72=await _0x32779e[_0xd2c19c(0x246)]({'options':{..._0x27e155,..._0x2d53c0},'args':_0x32967c?[_0x32967c]:[],'tdx':_0xf4d577});process['exit'](_0x323e72);}),segmentCmd['command'](a2_0x424d2f(0xd1))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x424d2f(0x1a9)](async(_0x1c3fec,_0x24a7e6)=>{const _0x2d82cc=a2_0x424d2f,_0xd39436=new SegmentFieldsCommand(),_0x4a31e1=program['opts'](),_0x47a680=await createTDXInstance(_0x4a31e1),_0x5d884d=await _0xd39436['run']({'options':{..._0x4a31e1,..._0x24a7e6},'args':_0x1c3fec?[_0x1c3fec]:[],'tdx':_0x47a680});process[_0x2d82cc(0x1c4)](_0x5d884d);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x265))[a2_0x424d2f(0x162)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')['option'](a2_0x424d2f(0xd7),a2_0x424d2f(0x298))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),a2_0x424d2f(0x2af))[a2_0x424d2f(0x1a9)](async(_0x5cf7d8,_0x190086)=>{const _0x3debfd=a2_0x424d2f,_0x2a084e=new SegmentPullCommand(),_0xe4485f=program[_0x3debfd(0x11b)](),_0x5a1336=await createTDXInstance(_0xe4485f),_0x5dd5e2=await _0x2a084e[_0x3debfd(0x246)]({'options':{..._0xe4485f,..._0x190086},'args':_0x5cf7d8?[_0x5cf7d8]:[],'tdx':_0x5a1336});process[_0x3debfd(0x1c4)](_0x5dd5e2);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xdc))['description']('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),a2_0x424d2f(0x298))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')['option'](a2_0x424d2f(0xdf),a2_0x424d2f(0x262))[a2_0x424d2f(0x1a9)](async(_0x391562,_0xef9c0)=>{const _0x16b7ad=a2_0x424d2f,_0x3ca4fe=new SegmentPushCommand(),_0x1c6612=program[_0x16b7ad(0x11b)](),_0x28486b=await createTDXInstance(_0x1c6612),_0x203477=await _0x3ca4fe[_0x16b7ad(0x246)]({'options':{..._0x1c6612,..._0xef9c0},'args':_0x391562?[_0x391562]:[],'tdx':_0x28486b});process['exit'](_0x203477);}),segmentCmd['command'](a2_0x424d2f(0x198),{'hidden':!![]})[a2_0x424d2f(0x162)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option'](a2_0x424d2f(0x120),a2_0x424d2f(0xe8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x24a),a2_0x424d2f(0x263))[a2_0x424d2f(0x1a2)]('--rule-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x208),a2_0x424d2f(0x129))[a2_0x424d2f(0x1a2)]('--kind\x20<type>',a2_0x424d2f(0x248))['option'](a2_0x424d2f(0x1ef),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1c9),'Skip\x20population\x20counting')['action'](async(_0x22b112,_0x56cd91)=>{const _0x2ca219=a2_0x424d2f,_0x42a4a3=new SegmentCreateCommand(),_0x5ecf5f=program['opts'](),_0x1e472b=await createTDXInstance(_0x5ecf5f),_0x2fa7a2=await _0x42a4a3['run']({'options':{..._0x5ecf5f,..._0x56cd91},'args':[_0x22b112],'tdx':_0x1e472b});process[_0x2ca219(0x1c4)](_0x2fa7a2);}),segmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x14b),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x177))['option']('--name\x20<new_name>','New\x20segment\x20name')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x120),'Updated\x20description')['option'](a2_0x424d2f(0x24a),a2_0x424d2f(0x2c4))['option']('--rule-file\x20<file>',a2_0x424d2f(0x221))[a2_0x424d2f(0x1a2)]('--folder\x20<name>',a2_0x424d2f(0x27f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x11f),a2_0x424d2f(0x248))[a2_0x424d2f(0x1a9)](async(_0x70c35e,_0x2180cb)=>{const _0x245604=a2_0x424d2f,_0x4d823a=new SegmentUpdateCommand(),_0x3fb08e=program[_0x245604(0x11b)](),_0x12f307=await createTDXInstance(_0x3fb08e),_0x457a2b=await _0x4d823a[_0x245604(0x246)]({'options':{..._0x3fb08e,..._0x2180cb},'args':[_0x70c35e],'tdx':_0x12f307});process[_0x245604(0x1c4)](_0x457a2b);});const parentCmd=segmentCmd['command'](a2_0x424d2f(0x2a9),{'hidden':!![]})[a2_0x424d2f(0x162)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x30c08a,_0x5dfcdd)=>{const _0x103ac6=a2_0x424d2f,_0x2f85e2=new ParentSegmentListCommand(),_0x16b00d=program[_0x103ac6(0x11b)](),_0x2b42d9=await createTDXInstance(_0x16b00d),_0x4dab5d=await _0x2f85e2[_0x103ac6(0x246)]({'options':{..._0x16b00d,..._0x5dfcdd},'args':_0x30c08a?[_0x30c08a]:[],'tdx':_0x2b42d9});process[_0x103ac6(0x1c4)](_0x4dab5d);};parentCmd['command'](a2_0x424d2f(0x205))['description'](a2_0x424d2f(0x108))[a2_0x424d2f(0x1a9)](parentListAction),segmentCmd['command']('parents\x20[pattern]',{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x158))[a2_0x424d2f(0x1a9)](parentListAction),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x241))[a2_0x424d2f(0x162)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')['option'](a2_0x424d2f(0xc7),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x424d2f(0x1a2)]('-y,\x20--yes',a2_0x424d2f(0x168))[a2_0x424d2f(0x1a9)](async(_0x3fceb8,_0x26db28)=>{const _0x352009=a2_0x424d2f,_0x4e772b=new ParentSegmentPullCommand(),_0x4ceb6e=program['opts'](),_0x5aa7da=await createTDXInstance(_0x4ceb6e),_0x1855e1=await _0x4e772b[_0x352009(0x246)]({'options':{..._0x4ceb6e,..._0x26db28},'args':_0x3fceb8?[_0x3fceb8]:[],'tdx':_0x5aa7da});process[_0x352009(0x1c4)](_0x1855e1);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xce))['description'](a2_0x424d2f(0x2a8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),'Skip\x20confirmation\x20prompt')['action'](async(_0x3da9a8,_0x586fee)=>{const _0x4d1727=a2_0x424d2f,_0x5d993d=new ParentSegmentPushCommand(),_0x1c3c18=program['opts'](),_0x2aa191=await createTDXInstance(_0x1c3c18),_0xd0b7b3=await _0x5d993d[_0x4d1727(0x246)]({'options':{..._0x1c3c18,..._0x586fee},'args':_0x3da9a8?[_0x3da9a8]:[],'tdx':_0x2aa191});process[_0x4d1727(0x1c4)](_0xd0b7b3);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1c0))[a2_0x424d2f(0x162)](a2_0x424d2f(0x175))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ca),'Show\x20only\x20master\x20table\x20validation')[a2_0x424d2f(0x1a2)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x424d2f(0x250),a2_0x424d2f(0x1be))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x217),a2_0x424d2f(0xc5))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1cf),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x424d2f(0x2a1))[a2_0x424d2f(0x1a9)](async(_0x25fc0e,_0x5ae877)=>{const _0x216b39=a2_0x424d2f,_0x4d0d6e=new ParentSegmentValidateCommand(),_0x5ad5e9=program[_0x216b39(0x11b)](),_0x59be3a=await createTDXInstance(_0x5ad5e9),_0x453656=await _0x4d0d6e['run']({'options':{..._0x5ad5e9,..._0x5ae877},'args':_0x25fc0e?[_0x25fc0e]:[],'tdx':_0x59be3a});process['exit'](_0x453656);}),parentCmd[a2_0x424d2f(0x289)]('preview\x20[file]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1ee))['option'](a2_0x424d2f(0x1ca),'Show\x20master\x20table\x20sample\x20data')['option']('--attribute\x20[name]',a2_0x424d2f(0x167))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x250),a2_0x424d2f(0xf2))['option'](a2_0x424d2f(0x217),a2_0x424d2f(0x21a))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1cf),a2_0x424d2f(0x264),a2_0x424d2f(0x2a1))[a2_0x424d2f(0x1a9)](async(_0x4711fb,_0x4b52dc)=>{const _0x44467b=a2_0x424d2f,_0x5605a7=new ParentSegmentPreviewCommand(),_0x3e39ce=program[_0x44467b(0x11b)](),_0x326035=await createTDXInstance(_0x3e39ce),_0x599232=await _0x5605a7[_0x44467b(0x246)]({'options':{..._0x3e39ce,..._0x4b52dc},'args':_0x4711fb?[_0x4711fb]:[],'tdx':_0x326035});process['exit'](_0x599232);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x26f))['description'](a2_0x424d2f(0x286))[a2_0x424d2f(0x1a2)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x424d2f(0x1a9)](async(_0x1e3dc6,_0x5b595f)=>{const _0xde2d35=a2_0x424d2f,_0x5c15a7=new ParentSegmentRunCommand(),_0x475cb4=program[_0xde2d35(0x11b)](),_0x3df817=await createTDXInstance(_0x475cb4),_0xea6df5=await _0x5c15a7['run']({'options':{..._0x475cb4,..._0x5b595f},'args':_0x1e3dc6?[_0x1e3dc6]:[],'tdx':_0x3df817});process[_0xde2d35(0x1c4)](_0xea6df5);});const parentSegmentCmd=program[a2_0x424d2f(0x289)]('parent-segment')[a2_0x424d2f(0x28e)]('ps')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1a7));parentSegmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))['description'](a2_0x424d2f(0x108))['action'](parentListAction),parentSegmentCmd[a2_0x424d2f(0x289)]('pull\x20[name]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x10d))['option'](a2_0x424d2f(0xc7),a2_0x424d2f(0x19b))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),a2_0x424d2f(0x168))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x113),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x424d2f(0x1a9)](async(_0x106d8f,_0x47c747)=>{const _0x3a101f=a2_0x424d2f,_0x3bddae=new ParentSegmentPullCommand(),_0xa23550=program[_0x3a101f(0x11b)](),_0x30fa29=await createTDXInstance(_0xa23550),_0x5ab8f0=await _0x3bddae[_0x3a101f(0x246)]({'options':{..._0xa23550,..._0x47c747},'args':_0x106d8f?[_0x106d8f]:[],'tdx':_0x30fa29});process[_0x3a101f(0x1c4)](_0x5ab8f0);}),parentSegmentCmd[a2_0x424d2f(0x289)]('push\x20[name]')[a2_0x424d2f(0x162)](a2_0x424d2f(0xd0))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),a2_0x424d2f(0x168))[a2_0x424d2f(0x1a9)](async(_0x5504c3,_0x5bc61f)=>{const _0x1769e1=a2_0x424d2f,_0x291856=new ParentSegmentPushCommand(),_0x23c8a9=program[_0x1769e1(0x11b)](),_0x3197b5=await createTDXInstance(_0x23c8a9),_0xfc3e74=await _0x291856[_0x1769e1(0x246)]({'options':{..._0x23c8a9,..._0x5bc61f},'args':_0x5504c3?[_0x5504c3]:[],'tdx':_0x3197b5});process[_0x1769e1(0x1c4)](_0xfc3e74);}),parentSegmentCmd[a2_0x424d2f(0x289)]('validate\x20[name]')['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x424d2f(0x1a2)]('--master',a2_0x424d2f(0x14e))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ff),a2_0x424d2f(0x203))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x250),a2_0x424d2f(0x1be))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x217),a2_0x424d2f(0xc5))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1cf),a2_0x424d2f(0x264),a2_0x424d2f(0x2a1))[a2_0x424d2f(0x1a9)](async(_0x283d95,_0x2e799d)=>{const _0x1d60dd=a2_0x424d2f,_0x20b528=new ParentSegmentValidateCommand(),_0x41cc33=program['opts'](),_0x5e59ea=await createTDXInstance(_0x41cc33),_0x4ac03f=await _0x20b528[_0x1d60dd(0x246)]({'options':{..._0x41cc33,..._0x2e799d},'args':_0x283d95?[_0x283d95]:[],'tdx':_0x5e59ea});process[_0x1d60dd(0x1c4)](_0x4ac03f);}),parentSegmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x136))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1ee))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ca),a2_0x424d2f(0x223))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ff),a2_0x424d2f(0x167))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x250),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x217),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1cf),a2_0x424d2f(0x264),a2_0x424d2f(0x2a1))[a2_0x424d2f(0x1a9)](async(_0x1a804f,_0x32e2ef)=>{const _0xeadc36=a2_0x424d2f,_0x353157=new ParentSegmentPreviewCommand(),_0xc14255=program[_0xeadc36(0x11b)](),_0x22a590=await createTDXInstance(_0xc14255),_0x3743a4=await _0x353157[_0xeadc36(0x246)]({'options':{..._0xc14255,..._0x32e2ef},'args':_0x1a804f?[_0x1a804f]:[],'tdx':_0x22a590});process[_0xeadc36(0x1c4)](_0x3743a4);}),parentSegmentCmd['command']('run\x20[name]')['description'](a2_0x424d2f(0x286))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xd7),a2_0x424d2f(0x168))[a2_0x424d2f(0x1a9)](async(_0x507dc8,_0x2ecc1a)=>{const _0xe8b7be=a2_0x424d2f,_0x3a0d56=new ParentSegmentRunCommand(),_0x2b3f77=program[_0xe8b7be(0x11b)](),_0xfe2bc6=await createTDXInstance(_0x2b3f77),_0x410892=await _0x3a0d56[_0xe8b7be(0x246)]({'options':{..._0x2b3f77,..._0x2ecc1a},'args':_0x507dc8?[_0x507dc8]:[],'tdx':_0xfe2bc6});process[_0xe8b7be(0x1c4)](_0x410892);}),parentSegmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x2b3))['description'](a2_0x424d2f(0x20f))[a2_0x424d2f(0x1a2)]('--json',a2_0x424d2f(0x2c6))['option'](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))[a2_0x424d2f(0x1a9)](async(_0x53bc10,_0x424b73)=>{const _0xbdfafa=a2_0x424d2f,_0x513fbe=new ParentSegmentFieldsCommand(),_0x21b207=program['opts'](),_0x44b7fc=await createTDXInstance(_0x21b207),_0x1a7a29=await _0x513fbe[_0xbdfafa(0x246)]({'options':{..._0x21b207,..._0x424b73},'args':_0x53bc10?[_0x53bc10]:[],'tdx':_0x44b7fc});process[_0xbdfafa(0x1c4)](_0x1a7a29);}),parentSegmentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1c3))[a2_0x424d2f(0x162)](a2_0x424d2f(0x29b))[a2_0x424d2f(0x1a2)]('-w,\x20--web',a2_0x424d2f(0x11c))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x299),a2_0x424d2f(0x2c6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))[a2_0x424d2f(0x1a9)](async(_0x3a4964,_0x2e234b)=>{const _0x4f9ce2=a2_0x424d2f,_0x23c9cd=new ParentSegmentViewCommand(),_0xf6f782=program[_0x4f9ce2(0x11b)](),_0x2e15b4=await createTDXInstance(_0xf6f782),_0x36e00b=await _0x23c9cd['run']({'options':{..._0xf6f782,..._0x2e234b},'args':_0x3a4964?[_0x3a4964]:[],'tdx':_0x2e15b4});process[_0x4f9ce2(0x1c4)](_0x36e00b);}),parentSegmentCmd['command'](a2_0x424d2f(0x1fc))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('--json',a2_0x424d2f(0x2c6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))[a2_0x424d2f(0x1a9)](async(_0x301486,_0x22039e)=>{const _0x5de32a=a2_0x424d2f,_0x21a61a=new ParentSegmentDescCommand(),_0x1827de=program[_0x5de32a(0x11b)](),_0x425093=await createTDXInstance(_0x1827de),_0x1f9c97=await _0x21a61a[_0x5de32a(0x246)]({'options':{..._0x1827de,..._0x22039e},'args':_0x301486?[_0x301486]:[],'tdx':_0x425093});process['exit'](_0x1f9c97);}),parentSegmentCmd['command'](a2_0x424d2f(0x288))[a2_0x424d2f(0x162)](a2_0x424d2f(0x26a))[a2_0x424d2f(0x1a2)]('--json',a2_0x424d2f(0x2c6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))[a2_0x424d2f(0x1a9)](async(_0x496070,_0x4e52c3)=>{const _0x85e7a0=a2_0x424d2f,_0x2c7bcd=new ParentSegmentSQLCommand(),_0x5db523=program['opts'](),_0x2d89b3=await createTDXInstance(_0x5db523),_0x2e8a44=await _0x2c7bcd['run']({'options':{..._0x5db523,..._0x4e52c3},'args':_0x496070?[_0x496070]:[],'tdx':_0x2d89b3});process[_0x85e7a0(0x1c4)](_0x2e8a44);}),parentSegmentCmd[a2_0x424d2f(0x289)]('show\x20[name]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x105))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x23b),a2_0x424d2f(0x214))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x299),a2_0x424d2f(0x2c6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1fb),a2_0x424d2f(0x2b4))['action'](async(_0x40f12a,_0x20fdb4)=>{const _0x35e58f=a2_0x424d2f,_0x1c299f=new ParentSegmentShowCommand(),_0x338196=program[_0x35e58f(0x11b)](),_0x340751=await createTDXInstance(_0x338196),_0x28459e=await _0x1c299f[_0x35e58f(0x246)]({'options':{..._0x338196,..._0x20fdb4},'args':_0x40f12a?[_0x40f12a]:[],'tdx':_0x340751});process[_0x35e58f(0x1c4)](_0x28459e);}),parentSegmentCmd[a2_0x424d2f(0x289)]('use\x20[name]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x171))['action'](async(_0x2f905a,_0x1e8f41)=>{const _0x139615=a2_0x424d2f,_0x63a708=new UseCommand(),_0x9a6317=program[_0x139615(0x11b)](),_0x140b60=_0x2f905a?[_0x139615(0x181),_0x2f905a]:[],_0x432c62=await _0x63a708['run']({'options':{..._0x9a6317,..._0x1e8f41},'args':_0x140b60,'tdx':null});process[_0x139615(0x1c4)](_0x432c62);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x196))[a2_0x424d2f(0x162)](a2_0x424d2f(0x15e))[a2_0x424d2f(0xca)](a2_0x424d2f(0x2ba),a2_0x424d2f(0x2a5))[a2_0x424d2f(0xca)](a2_0x424d2f(0x1d4),a2_0x424d2f(0x26b))[a2_0x424d2f(0x1a2)]('--description\x20<text>',a2_0x424d2f(0x1ab))['option'](a2_0x424d2f(0x1a0),a2_0x424d2f(0xe0))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xee),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x150),a2_0x424d2f(0x2ab))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ba),a2_0x424d2f(0x22e))['option']('--attributes-file\x20<file>',a2_0x424d2f(0x220))['option']('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x159),a2_0x424d2f(0x1b4))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x23f),a2_0x424d2f(0x1ce))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x268),a2_0x424d2f(0x1e8))[a2_0x424d2f(0x1a9)](async(_0x13866e,_0x327c5b)=>{const _0x5be87f=new ParentSegmentCreateCommand(),_0x502099=program['opts'](),_0x5905bc=await createTDXInstance(_0x502099),_0x3c3016=await _0x5be87f['run']({'options':{..._0x502099,..._0x327c5b},'args':[_0x13866e],'tdx':_0x5905bc});process['exit'](_0x3c3016);}),parentCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x15d))['description'](a2_0x424d2f(0x12b))[a2_0x424d2f(0x1a2)]('--description\x20<text>','Updated\x20description')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1a0),a2_0x424d2f(0x2a0))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xee),'Updated\x20schedule\x20option')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x150),a2_0x424d2f(0x14c))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x122),a2_0x424d2f(0x191))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x245),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x103),a2_0x424d2f(0x15b))[a2_0x424d2f(0x1a2)]('--add-behaviors-file\x20<file>',a2_0x424d2f(0x1e2))[a2_0x424d2f(0x1a9)](async(_0x2a38c8,_0x1ca4ab)=>{const _0x4472ec=a2_0x424d2f,_0x28a61c=new ParentSegmentUpdateCommand(),_0x493557=program[_0x4472ec(0x11b)](),_0x3bbdac=await createTDXInstance(_0x493557),_0x48b27e=await _0x28a61c[_0x4472ec(0x246)]({'options':{..._0x493557,..._0x1ca4ab},'args':[_0x2a38c8],'tdx':_0x3bbdac});process[_0x4472ec(0x1c4)](_0x48b27e);}),folderCmd['command'](a2_0x424d2f(0xdd))['description'](a2_0x424d2f(0x28d))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x120),a2_0x424d2f(0x21f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x164),a2_0x424d2f(0x1e7))['action'](async(_0x266c33,_0x22a446,_0x3836b0)=>{const _0x3d19fa=a2_0x424d2f,_0x5957cc=new SegmentFolderCreateCommand(),_0x5a2f71=program['opts'](),_0x55fb16=await createTDXInstance(_0x5a2f71),_0x2112ab=await _0x5957cc['run']({'options':{..._0x5a2f71,..._0x3836b0},'args':[_0x266c33,_0x22a446],'tdx':_0x55fb16});process[_0x3d19fa(0x1c4)](_0x2112ab);}),program['command'](a2_0x424d2f(0x145))[a2_0x424d2f(0x162)](a2_0x424d2f(0x21d))[a2_0x424d2f(0x1a9)](async(_0x532b9b,_0x26f0fb)=>{const _0x3dc57a=a2_0x424d2f,_0xdf168f=new ActivationsCommand(),_0x5123bd=program[_0x3dc57a(0x11b)](),_0x3fbac2=await createTDXInstance(_0x5123bd),_0x14e32d=await _0xdf168f[_0x3dc57a(0x246)]({'options':{..._0x5123bd,..._0x26f0fb},'args':[_0x532b9b],'tdx':_0x3fbac2});process[_0x3dc57a(0x1c4)](_0x14e32d);});const workflowCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x1bf))[a2_0x424d2f(0x28e)]('wf')['description'](a2_0x424d2f(0x273)),wfProjectCmd=workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xdb))[a2_0x424d2f(0x162)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0x1eeaaf,_0xa81477)=>{const _0x3f183f=a2_0x424d2f,_0x1d7acd=new WorkflowProjectsCommand(),_0x204038=program[_0x3f183f(0x11b)](),_0x53b472=await createTDXInstance(_0x204038),_0x15e62b=await _0x1d7acd[_0x3f183f(0x246)]({'options':{..._0x204038,..._0xa81477},'args':_0x1eeaaf?[_0x1eeaaf]:[],'tdx':_0x53b472});process['exit'](_0x15e62b);};wfProjectCmd[a2_0x424d2f(0x289)]('list\x20[pattern]')[a2_0x424d2f(0x162)](a2_0x424d2f(0xcc))['action'](wfProjectListAction),workflowCmd['command'](a2_0x424d2f(0x1fe))[a2_0x424d2f(0x162)](a2_0x424d2f(0x19d))[a2_0x424d2f(0x1a9)](wfProjectListAction);const wfWorkflowListAction=async(_0x28836b,_0x575910)=>{const _0x4bbee7=a2_0x424d2f,_0x10d4bf=new WorkflowWorkflowsCommand(),_0x3becb1=program[_0x4bbee7(0x11b)](),_0x30018f=await createTDXInstance(_0x3becb1),_0x33a7c9=await _0x10d4bf['run']({'options':{..._0x3becb1,..._0x575910},'args':_0x28836b?[_0x28836b]:[],'tdx':_0x30018f});process['exit'](_0x33a7c9);};workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1e3))[a2_0x424d2f(0x162)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x424d2f(0x1a9)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x424d2f(0x289)]('session')['description'](a2_0x424d2f(0x18e)),wfSessionListAction=async(_0x144063,_0x1bfcfb)=>{const _0x40e5df=a2_0x424d2f,_0x307aad=new WorkflowSessionsCommand(),_0x2ff1e1=program[_0x40e5df(0x11b)](),_0x531a55=await createTDXInstance(_0x2ff1e1),_0x58c0cb=await _0x307aad[_0x40e5df(0x246)]({'options':{..._0x2ff1e1,..._0x1bfcfb},'args':_0x144063?[_0x144063]:[],'tdx':_0x531a55});process['exit'](_0x58c0cb);};wfSessionCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1f4))[a2_0x424d2f(0x162)](a2_0x424d2f(0xf9))[a2_0x424d2f(0x1a2)]('--status\x20<status>',a2_0x424d2f(0x297))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x152),a2_0x424d2f(0x243))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1aa),a2_0x424d2f(0x139))[a2_0x424d2f(0x1a9)](wfSessionListAction),workflowCmd['command'](a2_0x424d2f(0x25c))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1f1))['option'](a2_0x424d2f(0xf4),a2_0x424d2f(0x297))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x152),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x424d2f(0x1aa),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction);const wfAttemptListAction=async(_0xa7034e,_0x1ae2bb)=>{const _0x1fdffc=a2_0x424d2f,_0x5e7ffc=new WorkflowAttemptsCommand(),_0x9e0943=program[_0x1fdffc(0x11b)](),_0x58a4cb=await createTDXInstance(_0x9e0943),_0x463c87=await _0x5e7ffc[_0x1fdffc(0x246)]({'options':{..._0x9e0943,..._0x1ae2bb},'args':_0xa7034e?[_0xa7034e]:[],'tdx':_0x58a4cb});process[_0x1fdffc(0x1c4)](_0x463c87);},attemptCmd=workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x123))[a2_0x424d2f(0x162)]('Workflow\x20attempt\x20management')[a2_0x424d2f(0x1d1)](a2_0x424d2f(0x1d3),a2_0x424d2f(0x212))[a2_0x424d2f(0x1d1)](a2_0x424d2f(0x26d),a2_0x424d2f(0x17e))[a2_0x424d2f(0x1d1)]('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x14d),a2_0x424d2f(0x23c))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x239),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x424d2f(0x1a2)]('--resume-from\x20<task>',a2_0x424d2f(0x2ad))[a2_0x424d2f(0x1a2)]('--params\x20<json>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x424d2f(0x2b7),a2_0x424d2f(0x260))['option']('--include-retried',a2_0x424d2f(0x20c))[a2_0x424d2f(0x1a9)](async(_0x43d339,_0x283f86,_0x513df0,_0x29eb0e)=>{const _0xf585f9=a2_0x424d2f;if(_0x43d339==='list'){await wfAttemptListAction(_0x283f86,_0x29eb0e);return;}if(!_0x43d339){attemptCmd[_0xf585f9(0x10a)]();return;}const _0x3bd611=program[_0xf585f9(0x11b)](),_0x3e9d99=await createTDXInstance(_0x3bd611);let _0x687f4b=0x0;if(!_0x283f86){const _0xa45e2=new WorkflowAttemptCommand();_0x687f4b=await _0xa45e2['run']({'options':{..._0x3bd611,..._0x29eb0e},'args':[_0x43d339],'tdx':_0x3e9d99});}else{if(_0x283f86==='logs'){const _0x3c0b7b=new WorkflowLogsCommand();_0x687f4b=await _0x3c0b7b[_0xf585f9(0x246)]({'options':{..._0x3bd611,..._0x29eb0e},'args':_0x513df0?[_0x43d339,_0x513df0]:[_0x43d339],'tdx':_0x3e9d99});}else{if(_0x283f86==='tasks'){const _0x8a9fce=new WorkflowTasksCommand();_0x687f4b=await _0x8a9fce[_0xf585f9(0x246)]({'options':{..._0x3bd611,..._0x29eb0e},'args':[_0x43d339],'tdx':_0x3e9d99});}else{if(_0x283f86==='kill'){const _0x22448f=new WorkflowKillCommand();_0x687f4b=await _0x22448f[_0xf585f9(0x246)]({'options':{..._0x3bd611,..._0x29eb0e},'args':[_0x43d339],'tdx':_0x3e9d99});}else{if(_0x283f86===_0xf585f9(0x13e)){const _0x5f4a2b=new WorkflowRetryCommand();_0x687f4b=await _0x5f4a2b[_0xf585f9(0x246)]({'options':{..._0x3bd611,..._0x29eb0e},'args':[_0xf585f9(0x24e)+_0x43d339],'tdx':_0x3e9d99});}else console['error'](_0xf585f9(0x19e)+_0x283f86),console[_0xf585f9(0x172)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x687f4b=0x1;}}}}process[_0xf585f9(0x1c4)](_0x687f4b);});attemptCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1f4))['description'](a2_0x424d2f(0x293))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x197),a2_0x424d2f(0x1ad))[a2_0x424d2f(0x1a9)](wfAttemptListAction),workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xfa))[a2_0x424d2f(0x162)](a2_0x424d2f(0x225))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x197),a2_0x424d2f(0x1ad))[a2_0x424d2f(0x1a9)](wfAttemptListAction),workflowCmd['command']('retry\x20<session-id>')[a2_0x424d2f(0x162)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x210),a2_0x424d2f(0xf6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x2b5),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x424d2f(0x1a9)](async(_0x3856f5,_0x14bdc1)=>{const _0x41bfe5=a2_0x424d2f,_0x35af70=new WorkflowRetryCommand(),_0x355406=program['opts'](),_0x4aecfd=await createTDXInstance(_0x355406),_0x1acd71=await _0x35af70[_0x41bfe5(0x246)]({'options':{..._0x355406,..._0x14bdc1},'args':[_0x3856f5],'tdx':_0x4aecfd});process[_0x41bfe5(0x1c4)](_0x1acd71);}),workflowCmd['command']('run\x20<workflow>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x140))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x131),'Workflow\x20parameter\x20(repeatable)',(_0x3cd0a4,_0x3a43d2=[])=>[..._0x3a43d2,_0x3cd0a4],[])[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x24b),a2_0x424d2f(0x19f))[a2_0x424d2f(0x1a9)](async(_0x1d2023,_0x17b7e7)=>{const _0x10a04e=a2_0x424d2f,_0x2b1295=new WorkflowRunCommand(),_0x584a21=program[_0x10a04e(0x11b)](),_0x2a342a=await createTDXInstance(_0x584a21),_0x20369f=await _0x2b1295[_0x10a04e(0x246)]({'options':{..._0x584a21,..._0x17b7e7},'args':[_0x1d2023],'tdx':_0x2a342a});process[_0x10a04e(0x1c4)](_0x20369f);}),workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x1ac))['description']('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a2_0x424d2f(0x1bd),a2_0x424d2f(0x1c7))[a2_0x424d2f(0x1a9)](async(_0x5cb48d,_0x2468a1,_0x466029)=>{const _0x5a0406=a2_0x424d2f,_0x2a4577=new WorkflowDownloadCommand(),_0x3348c6=program[_0x5a0406(0x11b)](),_0x473c37=await createTDXInstance(_0x3348c6),_0x1be641=await _0x2a4577[_0x5a0406(0x246)]({'options':{..._0x3348c6,..._0x466029},'args':[_0x5cb48d,_0x2468a1||'.'],'tdx':_0x473c37});process[_0x5a0406(0x1c4)](_0x1be641);}),workflowCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x141))[a2_0x424d2f(0x162)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x2a2),'Override\x20project\x20name')['option']('--revision\x20<revision>',a2_0x424d2f(0x2b9))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x27b),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x40d557,_0x512bff)=>{const _0x3ce376=a2_0x424d2f,_0x2a91d9=new WorkflowPushCommand(),_0x4c7691=program[_0x3ce376(0x11b)](),_0x4e46ce=await createTDXInstance(_0x4c7691),_0x57efa4=await _0x2a91d9[_0x3ce376(0x246)]({'options':{..._0x4c7691,..._0x512bff},'args':_0x40d557?[_0x40d557]:[],'tdx':_0x4e46ce});process[_0x3ce376(0x1c4)](_0x57efa4);}),workflowCmd['command'](a2_0x424d2f(0x192))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')['action'](async(_0x18dc4e,_0x523efd)=>{const _0x57cc1b=a2_0x424d2f,_0x17cb18=new WorkflowDeleteCommand(),_0x3ee564=program[_0x57cc1b(0x11b)](),_0x18976e=await createTDXInstance(_0x3ee564),_0x376462=await _0x17cb18[_0x57cc1b(0x246)]({'options':{..._0x3ee564,..._0x523efd},'args':[_0x18dc4e],'tdx':_0x18976e});process[_0x57cc1b(0x1c4)](_0x376462);});const jobCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x182))[a2_0x424d2f(0x162)]('Job\x20management\x20commands'),jobListAction=async _0x288c53=>{const _0x286cc4=a2_0x424d2f,_0x339c18=new JobListCommand(),_0x37d312=program[_0x286cc4(0x11b)](),_0x33eb72=await createTDXInstance(_0x37d312),_0x48d8af=await _0x339c18[_0x286cc4(0x246)]({'options':{..._0x37d312,..._0x288c53},'args':[],'tdx':_0x33eb72});process[_0x286cc4(0x1c4)](_0x48d8af);};jobCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x216))[a2_0x424d2f(0x162)](a2_0x424d2f(0x281))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf4),a2_0x424d2f(0xed))['action'](jobListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0x187),{'hidden':!![]})[a2_0x424d2f(0x162)](a2_0x424d2f(0x29a))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf4),a2_0x424d2f(0xed))[a2_0x424d2f(0x1a9)](jobListAction),jobCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x15f))['description'](a2_0x424d2f(0xda))['action'](async(_0x3594c6,_0x35a215)=>{const _0x4e9fb8=a2_0x424d2f,_0x147a40=new JobShowCommand(),_0x18aaf1=program['opts'](),_0x1d9857=await createTDXInstance(_0x18aaf1),_0xd08a27=await _0x147a40[_0x4e9fb8(0x246)]({'options':{..._0x18aaf1,..._0x35a215},'args':[_0x3594c6],'tdx':_0x1d9857});process[_0x4e9fb8(0x1c4)](_0xd08a27);}),jobCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x258))[a2_0x424d2f(0x162)]('Kill\x20a\x20job')[a2_0x424d2f(0x1a9)](async(_0x8ca9ab,_0x3fabdf)=>{const _0x57bf31=a2_0x424d2f,_0x549398=new JobKillCommand(),_0x411b3c=program[_0x57bf31(0x11b)](),_0x150f1c=await createTDXInstance(_0x411b3c),_0x2fa6a2=await _0x549398['run']({'options':{..._0x411b3c,..._0x3fabdf},'args':[_0x8ca9ab],'tdx':_0x150f1c});process[_0x57bf31(0x1c4)](_0x2fa6a2);}),jobCmd['command']('submit\x20[query]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x222))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1c2),a2_0x424d2f(0x199),a2_0x424d2f(0x125))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x224),'Read\x20query\x20from\x20file')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x28b),a2_0x424d2f(0x20b),a2_0x424d2f(0x231))['action'](async(_0x49ead8,_0x399824)=>{const _0x18d0dd=a2_0x424d2f,_0x29e3db=new JobSubmitCommand(),_0x2a9888=program[_0x18d0dd(0x11b)](),_0x1ed834=await createTDXInstance(_0x2a9888),_0x46fb73=await _0x29e3db['run']({'options':{..._0x2a9888,..._0x399824},'args':_0x49ead8?[_0x49ead8]:[],'tdx':_0x1ed834});process[_0x18d0dd(0x1c4)](_0x46fb73);}),jobCmd['command'](a2_0x424d2f(0x13b))[a2_0x424d2f(0x162)](a2_0x424d2f(0x10b))['action'](async(_0x5a52eb,_0x1eaf72)=>{const _0x1773d9=a2_0x424d2f,_0x4eb436=new JobResultCommand(),_0x60314d=program['opts'](),_0x16cc0d=await createTDXInstance(_0x60314d),_0x119d83=await _0x4eb436[_0x1773d9(0x246)]({'options':{..._0x60314d,..._0x1eaf72},'args':[_0x5a52eb],'tdx':_0x16cc0d});process[_0x1773d9(0x1c4)](_0x119d83);});const llmCmd=program[a2_0x424d2f(0x289)]('llm')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1b9));llmCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x21b))[a2_0x424d2f(0x162)](a2_0x424d2f(0x242))[a2_0x424d2f(0x1a9)](async(_0x18bb79,_0x123aee)=>{const _0x3c54ba=a2_0x424d2f,_0x1d163b=new LLMUseCommand(),_0x5055e5=program[_0x3c54ba(0x11b)](),_0x35ea09=await createTDXInstance(_0x5055e5),_0x419fe6=await _0x1d163b[_0x3c54ba(0x246)]({'options':{..._0x5055e5,..._0x123aee},'args':[_0x18bb79],'tdx':_0x35ea09});process[_0x3c54ba(0x1c4)](_0x419fe6);}),llmCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x115))[a2_0x424d2f(0x162)](a2_0x424d2f(0x109))['action'](async _0x546b5a=>{const _0x5e5c41=a2_0x424d2f,_0x356d94=new LLMModelsCommand(),_0x51e643=program[_0x5e5c41(0x11b)](),_0x87412e=await createTDXInstance(_0x51e643),_0x9e1585=await _0x356d94[_0x5e5c41(0x246)]({'options':{..._0x51e643,..._0x546b5a},'args':[],'tdx':_0x87412e});process['exit'](_0x9e1585);});const projectCmd=llmCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xdb))['description'](a2_0x424d2f(0x206)),llmProjectListAction=async(_0x1d3e93,_0x3942bf)=>{const _0x2f7abe=a2_0x424d2f,_0x3643af=new LLMProjectsCommand(),_0x364ce5=program[_0x2f7abe(0x11b)](),_0x1133e4=await createTDXInstance(_0x364ce5),_0x510afb=await _0x3643af['run']({'options':{..._0x364ce5,..._0x3942bf},'args':_0x1d3e93?[_0x1d3e93]:[],'tdx':_0x1133e4});process[_0x2f7abe(0x1c4)](_0x510afb);};projectCmd['command'](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)](a2_0x424d2f(0x285))[a2_0x424d2f(0x1a9)](llmProjectListAction),llmCmd['command'](a2_0x424d2f(0x1fe))[a2_0x424d2f(0x162)](a2_0x424d2f(0x18a))['action'](llmProjectListAction),projectCmd[a2_0x424d2f(0x289)]('create\x20<name>')['description']('Create\x20a\x20new\x20LLM\x20project')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x120),a2_0x424d2f(0x236))[a2_0x424d2f(0x1a9)](async(_0x4c5f38,_0x2dadac)=>{const _0x6148e3=a2_0x424d2f,_0x3a0d1d=new LLMProjectCreateCommand(),_0x2077e6=program['opts'](),_0x2d7f20=await createTDXInstance(_0x2077e6),_0x18f429=await _0x3a0d1d[_0x6148e3(0x246)]({'options':{..._0x2077e6,..._0x2dadac},'args':[_0x4c5f38],'tdx':_0x2d7f20});process[_0x6148e3(0x1c4)](_0x18f429);}),projectCmd['command']('delete\x20<name>')[a2_0x424d2f(0x162)]('Delete\x20an\x20LLM\x20project')[a2_0x424d2f(0x1a9)](async(_0x2c13d2,_0x1e468e)=>{const _0x15be07=a2_0x424d2f,_0xffeb0d=new LLMProjectDeleteCommand(),_0x5b9292=program[_0x15be07(0x11b)](),_0x53c03c=await createTDXInstance(_0x5b9292),_0x3d6ecf=await _0xffeb0d[_0x15be07(0x246)]({'options':{..._0x5b9292,..._0x1e468e},'args':[_0x2c13d2],'tdx':_0x53c03c});process[_0x15be07(0x1c4)](_0x3d6ecf);}),projectCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x227))['description'](a2_0x424d2f(0x200))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x12c),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),a2_0x424d2f(0xf1))['action'](async(_0x317cf9,_0x279b2a)=>{const _0x44a742=a2_0x424d2f,_0xa9c56c=new LLMProjectBackupCommand(),_0x5b1087=program[_0x44a742(0x11b)](),_0x479b20=await createTDXInstance(_0x5b1087),_0x5010f8=await _0xa9c56c[_0x44a742(0x246)]({'options':{..._0x5b1087,..._0x279b2a},'args':[_0x317cf9],'tdx':_0x479b20});process[_0x44a742(0x1c4)](_0x5010f8);}),projectCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x213))[a2_0x424d2f(0x162)](a2_0x424d2f(0x17a))['option'](a2_0x424d2f(0x2bb),a2_0x424d2f(0x1c8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),a2_0x424d2f(0x195))[a2_0x424d2f(0x1a9)](async(_0x42548e,_0x32bcbd)=>{const _0x346adf=a2_0x424d2f,_0xfc51e5=new LLMProjectRestoreCommand(),_0x2e74fe=program[_0x346adf(0x11b)](),_0x1bd9d9=await createTDXInstance(_0x2e74fe),_0xe1c57d=await _0xfc51e5[_0x346adf(0x246)]({'options':{..._0x2e74fe,..._0x32bcbd},'args':[_0x42548e],'tdx':_0x1bd9d9});process['exit'](_0xe1c57d);});const agentCmd=llmCmd['command'](a2_0x424d2f(0x22a))[a2_0x424d2f(0x162)](a2_0x424d2f(0x137)),llmAgentListAction=async(_0x3cb2ec,_0x3d2a33)=>{const _0x211b8a=a2_0x424d2f,_0x5bf377=new LLMAgentsCommand(),_0x521b43=program[_0x211b8a(0x11b)](),_0x204216=await createTDXInstance(_0x521b43),_0x248151=await _0x5bf377[_0x211b8a(0x246)]({'options':{..._0x521b43,..._0x3d2a33},'args':_0x3cb2ec?[_0x3cb2ec]:[],'tdx':_0x204216});process[_0x211b8a(0x1c4)](_0x248151);};agentCmd['command'](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)](a2_0x424d2f(0x18d))[a2_0x424d2f(0x1a9)](llmAgentListAction),llmCmd['command'](a2_0x424d2f(0x266))[a2_0x424d2f(0x162)](a2_0x424d2f(0x28f))[a2_0x424d2f(0x1a9)](llmAgentListAction),agentCmd[a2_0x424d2f(0x289)]('show\x20<agent-name>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x253))[a2_0x424d2f(0x1a9)](async(_0x31b391,_0x211660)=>{const _0x36d5f6=a2_0x424d2f,_0x39b4ad=new LLMAgentShowCommand(),_0x263dff=program[_0x36d5f6(0x11b)](),_0x10f8a4=await createTDXInstance(_0x263dff),_0x47d432=await _0x39b4ad[_0x36d5f6(0x246)]({'options':{..._0x263dff,..._0x211660},'args':[_0x31b391],'tdx':_0x10f8a4});process['exit'](_0x47d432);}),agentCmd['command'](a2_0x424d2f(0x196))[a2_0x424d2f(0x162)](a2_0x424d2f(0x2b6))[a2_0x424d2f(0x1a2)]('--system-prompt\x20<text>',a2_0x424d2f(0x218))['option']('--model\x20<name>',a2_0x424d2f(0x176),a2_0x424d2f(0x169))['option'](a2_0x424d2f(0x138),a2_0x424d2f(0x207))[a2_0x424d2f(0x1a2)]('--max-tool-iterations\x20<n>',a2_0x424d2f(0x2c1),'4')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1d0),'Temperature\x20(0.0-2.0,\x20default:\x200.7)','0.7')[a2_0x424d2f(0x1a9)](async(_0x53b135,_0x3d5a3e)=>{const _0x401758=a2_0x424d2f,_0x3c4e0d=new LLMAgentCreateCommand(),_0x1480f3=program['opts'](),_0x36bdd1=await createTDXInstance(_0x1480f3),_0x5f1362=await _0x3c4e0d[_0x401758(0x246)]({'options':{..._0x1480f3,..._0x3d5a3e},'args':[_0x53b135],'tdx':_0x36bdd1});process[_0x401758(0x1c4)](_0x5f1362);}),agentCmd['command'](a2_0x424d2f(0x1b3))[a2_0x424d2f(0x162)](a2_0x424d2f(0x201))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1f0),a2_0x424d2f(0x16f))['option'](a2_0x424d2f(0x142),a2_0x424d2f(0x1a3))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x120),a2_0x424d2f(0x230))[a2_0x424d2f(0x1a2)]('--starter-message\x20<text>','Starter\x20message')[a2_0x424d2f(0x1a9)](async(_0x2f0585,_0x3c4d36)=>{const _0x3e9def=a2_0x424d2f,_0x31ad65=new LLMAgentUpdateCommand(),_0x1eb9ff=program[_0x3e9def(0x11b)](),_0x6dc7f3=await createTDXInstance(_0x1eb9ff),_0x33f7d3=await _0x31ad65[_0x3e9def(0x246)]({'options':{..._0x1eb9ff,..._0x3c4d36},'args':[_0x2f0585],'tdx':_0x6dc7f3});process[_0x3e9def(0x1c4)](_0x33f7d3);}),agentCmd['command'](a2_0x424d2f(0x232))[a2_0x424d2f(0x162)]('Delete\x20an\x20agent')[a2_0x424d2f(0x1a9)](async(_0x55bf28,_0x436b7d)=>{const _0x2a99a9=a2_0x424d2f,_0x56952a=new LLMAgentDeleteCommand(),_0x2a0473=program[_0x2a99a9(0x11b)](),_0x3342d5=await createTDXInstance(_0x2a0473),_0x1de691=await _0x56952a['run']({'options':{..._0x2a0473,..._0x436b7d},'args':[_0x55bf28],'tdx':_0x3342d5});process['exit'](_0x1de691);}),llmCmd[a2_0x424d2f(0x289)]('history\x20[chat-id]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1f7))[a2_0x424d2f(0x1a2)]('--last',a2_0x424d2f(0xc8))['action'](async(_0x21d29d,_0x59174d)=>{const _0x578cfc=a2_0x424d2f,_0x4e3db6=new LLMHistoryCommand(),_0x5b6ed2=program[_0x578cfc(0x11b)](),_0x1f2a47=await createTDXInstance(_0x5b6ed2),_0x16a59b=await _0x4e3db6[_0x578cfc(0x246)]({'options':{..._0x5b6ed2,..._0x59174d},'args':_0x21d29d?[_0x21d29d]:[],'tdx':_0x1f2a47});process['exit'](_0x16a59b);}),llmCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x215))['description'](a2_0x424d2f(0x27d))[a2_0x424d2f(0x1a2)]('--port\x20<number>',a2_0x424d2f(0x17b),a2_0x424d2f(0xc6))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1b5),a2_0x424d2f(0x1f8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x28a),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x424d2f(0x1a9)](async _0x3111d8=>{const _0x5cf112=a2_0x424d2f,_0x2dac6d=new LLMProxyCommand(),_0x5a1364=program[_0x5cf112(0x11b)](),_0x2be3aa=await createTDXInstance(_0x5a1364),_0xb5eb93={..._0x3111d8,'port':_0x3111d8['port']?parseInt(_0x3111d8[_0x5cf112(0x15c)],0xa):undefined},_0x296983=await _0x2dac6d[_0x5cf112(0x246)]({'options':{..._0x5a1364,..._0xb5eb93},'args':[],'tdx':_0x2be3aa});process['exit'](_0x296983);}),program['command'](a2_0x424d2f(0xec))[a2_0x424d2f(0x291)](a2_0x424d2f(0x29c))[a2_0x424d2f(0x162)](a2_0x424d2f(0x29e))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x12d),a2_0x424d2f(0x1db),a2_0x424d2f(0x110))['option']('-c,\x20--continue',a2_0x424d2f(0x186))[a2_0x424d2f(0x1a2)]('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x19a),a2_0x424d2f(0x240))[a2_0x424d2f(0x1b2)]()['allowExcessArguments'](!![])[a2_0x424d2f(0x22f)](a2_0x424d2f(0x256),a2_0x424d2f(0x2c0))[a2_0x424d2f(0x1a9)](async(_0x3ca88c,_0x1eb71c)=>{const _0x22abbb=a2_0x424d2f,_0xfc8b7d=program[_0x22abbb(0x11b)](),_0x56a3cd=Array[_0x22abbb(0x16d)](_0x3ca88c)?_0x3ca88c:[];if(_0x56a3cd[0x0]===_0x22abbb(0xc4)){const _0x19f689=new ClaudeStatuslineCommand(),_0x5b833b=await _0x19f689[_0x22abbb(0x246)]({'options':{..._0xfc8b7d,..._0x1eb71c},'args':_0x56a3cd[_0x22abbb(0x267)](0x1),'tdx':null});process[_0x22abbb(0x1c4)](_0x5b833b);}if(_0x56a3cd[0x0]==='usage'){const _0x21be43=new ClaudeUsageCommand(),_0x39e003=await _0x21be43['run']({'options':{..._0xfc8b7d,..._0x1eb71c},'args':_0x56a3cd[_0x22abbb(0x267)](0x1),'tdx':null});process[_0x22abbb(0x1c4)](_0x39e003);}const _0x3bba56=new ClaudeCommand(),_0x441b76=await createTDXInstance(_0xfc8b7d),_0xedf144=await _0x3bba56[_0x22abbb(0x246)]({'options':{..._0xfc8b7d,..._0x1eb71c},'args':_0x56a3cd,'tdx':_0x441b76});process['exit'](_0xedf144);}),program['command']('context')[a2_0x424d2f(0x162)](a2_0x424d2f(0x128))['option'](a2_0x424d2f(0xf5),'Clear\x20session\x20context')[a2_0x424d2f(0x1a9)](async _0x486b09=>{const _0x2ce5dc=a2_0x424d2f,_0x188d5e=new ContextCommand(),_0x16e525=program[_0x2ce5dc(0x11b)](),_0x4f3e20=await _0x188d5e[_0x2ce5dc(0x246)]({'options':{..._0x16e525,..._0x486b09},'args':[],'tdx':null});process[_0x2ce5dc(0x1c4)](_0x4f3e20);}),program[a2_0x424d2f(0x289)]('use\x20[resource]\x20[value]')[a2_0x424d2f(0x162)](a2_0x424d2f(0x284))['option'](a2_0x424d2f(0xf5),a2_0x424d2f(0xd6))[a2_0x424d2f(0x1a9)](async(_0x331d99,_0x1ad4e1,_0x532137)=>{const _0x1212ae=a2_0x424d2f,_0x66c3f7=new UseCommand(),_0x17ac20=program[_0x1212ae(0x11b)](),_0x57dc43=[];if(_0x331d99)_0x57dc43[_0x1212ae(0xf0)](_0x331d99);if(_0x1ad4e1)_0x57dc43[_0x1212ae(0xf0)](_0x1ad4e1);const _0x399f98=await _0x66c3f7['run']({'options':{..._0x17ac20,..._0x532137},'args':_0x57dc43,'tdx':null});process['exit'](_0x399f98);}),program[a2_0x424d2f(0x289)](a2_0x424d2f(0x257))[a2_0x424d2f(0x162)]('Interactive\x20chat\x20selector')[a2_0x424d2f(0x1a2)]('--last',a2_0x424d2f(0xd8))[a2_0x424d2f(0x1a9)](async _0x144fb3=>{const _0x23d8a5=a2_0x424d2f,_0x8207ff=new ChatsCommand(),_0x2df21c=program[_0x23d8a5(0x11b)](),_0x27d5a1=await createTDXInstance(_0x2df21c),_0x26b03a=await _0x8207ff['run']({'options':{..._0x2df21c,..._0x144fb3},'args':[],'tdx':_0x27d5a1});process[_0x23d8a5(0x1c4)](_0x26b03a);});const authCmd=program['command'](a2_0x424d2f(0x21c))[a2_0x424d2f(0x162)]('Authentication\x20management');async function runAuthStatusCommand(_0x1ebfa5){const _0x188bd7=a2_0x424d2f,_0x590709=new AuthStatusCommand(),_0x11e4d3=program['opts'](),_0x357b4a=await createTDXInstance(_0x11e4d3),_0x5b6d7d=await _0x590709[_0x188bd7(0x246)]({'options':{..._0x11e4d3,..._0x1ebfa5},'args':[],'tdx':_0x357b4a});process[_0x188bd7(0x1c4)](_0x5b6d7d);}authCmd[a2_0x424d2f(0x1a9)](runAuthStatusCommand),authCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x26c))[a2_0x424d2f(0x162)](a2_0x424d2f(0x23a))['action'](runAuthStatusCommand),authCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x188))[a2_0x424d2f(0x162)](a2_0x424d2f(0x116))[a2_0x424d2f(0x22f)](a2_0x424d2f(0x256),'\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 _0x3c1561=>{const _0x5eb669=a2_0x424d2f,_0x7f2464=new AuthSetupCommand(),_0x2a2020=program[_0x5eb669(0x11b)](),_0x5e8386=await createTDXInstance(_0x2a2020),_0x539338=await _0x7f2464[_0x5eb669(0x246)]({'options':{..._0x2a2020,..._0x3c1561},'args':[],'tdx':_0x5e8386});process['exit'](_0x539338);}),authCmd[a2_0x424d2f(0x289)]('clear')[a2_0x424d2f(0x162)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x424d2f(0x22f)](a2_0x424d2f(0x256),'\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0x424d2f(0x1a9)](async _0x2e57d1=>{const _0x4e5164=a2_0x424d2f,_0x1444a0=new AuthClearCommand(),_0x960cdb=program['opts'](),_0x10c98a=await _0x1444a0[_0x4e5164(0x246)]({'options':{..._0x960cdb,..._0x2e57d1},'args':[],'tdx':null});process[_0x4e5164(0x1c4)](_0x10c98a);});const userCmd=program['command'](a2_0x424d2f(0x16e))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1eb)),userListAction=async _0x8c8e70=>{const _0x50b605=a2_0x424d2f,_0x46ec8c=new UserListCommand(),_0x2725b8=program[_0x50b605(0x11b)](),_0x4c4c19=await createTDXInstance(_0x2725b8),_0x2e3662=await _0x46ec8c[_0x50b605(0x246)]({'options':{..._0x2725b8,..._0x8c8e70},'args':[],'tdx':_0x4c4c19});process[_0x50b605(0x1c4)](_0x2e3662);};userCmd[a2_0x424d2f(0x1a9)](async _0x38f900=>{const _0x4e800c=a2_0x424d2f,_0x52737c=new UserCommand(),_0x2f8219=program['opts'](),_0x58b3f2=await createTDXInstance(_0x2f8219),_0x31b804=await _0x52737c[_0x4e800c(0x246)]({'options':{..._0x2f8219,..._0x38f900},'args':[],'tdx':_0x58b3f2});process['exit'](_0x31b804);}),userCmd['command']('list')[a2_0x424d2f(0x162)](a2_0x424d2f(0x27e))[a2_0x424d2f(0x1a9)](userListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0x107))[a2_0x424d2f(0x162)](a2_0x424d2f(0x26e))[a2_0x424d2f(0x1a9)](userListAction),program[a2_0x424d2f(0x289)]('profiles')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1fd))[a2_0x424d2f(0x1a9)](async _0x40abc4=>{const _0x169274=a2_0x424d2f,_0x25021a=new ProfilesCommand(),_0x4952f9=program[_0x169274(0x11b)](),_0x3e917f=await _0x25021a[_0x169274(0x246)]({'options':{..._0x4952f9,..._0x40abc4},'args':[],'tdx':null});process['exit'](_0x3e917f);});const engageCmd=program['command'](a2_0x424d2f(0x2b1))[a2_0x424d2f(0x162)](a2_0x424d2f(0x149)),createEngageAction=_0x107c24=>{return async(_0x4ac4fe,_0x282215)=>{const _0x3b4ded=a2_0x1c8c,_0x48c1df=new _0x107c24(),_0x4327af=program['opts'](),_0xf3aa5c=await createTDXInstance(_0x4327af),_0x5c7425=await _0x48c1df[_0x3b4ded(0x246)]({'options':{..._0x4327af,..._0x282215},'args':[_0x4ac4fe],'tdx':_0xf3aa5c});process[_0x3b4ded(0x1c4)](_0x5c7425);};},createEngageNoArgAction=_0x238160=>{return async _0x16c45b=>{const _0x4bbaa9=a2_0x1c8c,_0x1126d9=new _0x238160(),_0x8bfb83=program[_0x4bbaa9(0x11b)](),_0x33ecf3=await createTDXInstance(_0x8bfb83),_0xc54776=await _0x1126d9[_0x4bbaa9(0x246)]({'options':{..._0x8bfb83,..._0x16c45b},'args':[],'tdx':_0x33ecf3});process['exit'](_0xc54776);};},campaignCmd=engageCmd['command']('campaign')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1ea)),campaignListAction=async(_0x10c0c8,_0x1b90f7)=>{const _0x150346=a2_0x424d2f,_0x45e966=new EngageCampaignsCommand(),_0x3ab240=program[_0x150346(0x11b)](),_0x474871=await createTDXInstance(_0x3ab240),_0x3e8562=await _0x45e966['run']({'options':{..._0x3ab240,..._0x1b90f7},'args':_0x10c0c8?[_0x10c0c8]:[],'tdx':_0x474871});process[_0x150346(0x1c4)](_0x3e8562);};campaignCmd['command'](a2_0x424d2f(0x205))['description'](a2_0x424d2f(0x271))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x157),a2_0x424d2f(0x27c))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf4),a2_0x424d2f(0x156))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x424d2f(0x1a9)](campaignListAction),engageCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x154))[a2_0x424d2f(0x162)](a2_0x424d2f(0x185))['option']('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xf4),a2_0x424d2f(0x156))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))['action'](campaignListAction),campaignCmd[a2_0x424d2f(0x289)]('show\x20<name-or-id>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1d7))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x148),a2_0x424d2f(0x275))[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x155))['description'](a2_0x424d2f(0x2bf))['requiredOption']('--name\x20<name>','Campaign\x20name')[a2_0x424d2f(0xca)](a2_0x424d2f(0x157),a2_0x424d2f(0x244))[a2_0x424d2f(0x1a2)]('--workspace\x20<name>',a2_0x424d2f(0x1bc))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x146),'Campaign\x20description')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1ec),a2_0x424d2f(0x23d))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x295),'Email\x20sender\x20ID\x20for\x20delivery')['option'](a2_0x424d2f(0x22c),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1b1),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x424d2f(0x1a2)]('--timezone\x20<tz>',a2_0x424d2f(0x190))[a2_0x424d2f(0x1a9)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x424d2f(0x289)]('update\x20<name-or-id>')[a2_0x424d2f(0x162)]('Update\x20a\x20campaign')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))['option']('--name\x20<name>',a2_0x424d2f(0x144))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x146),'Campaign\x20description')['option'](a2_0x424d2f(0x1ec),a2_0x424d2f(0x23d))[a2_0x424d2f(0x1a2)]('--email-sender-id\x20<id>',a2_0x424d2f(0x1d5))['option'](a2_0x424d2f(0x22c),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x1b1),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x424d2f(0x1a2)]('--timezone\x20<tz>',a2_0x424d2f(0x190))[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x29f))[a2_0x424d2f(0x162)](a2_0x424d2f(0x173))['option']('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x424d2f(0x153),a2_0x424d2f(0x168))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x160))[a2_0x424d2f(0x162)](a2_0x424d2f(0x249))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),'Workspace\x20name')[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x424d2f(0x289)]('pause\x20<name-or-id>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x189))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x424d2f(0x289)]('resume\x20<name-or-id>')['description'](a2_0x424d2f(0xfb))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),'Workspace\x20name')[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xd4))['description'](a2_0x424d2f(0x25d))['option'](a2_0x424d2f(0x179),'Workspace\x20name')[a2_0x424d2f(0x1a9)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x424d2f(0x289)]('template')[a2_0x424d2f(0x162)](a2_0x424d2f(0x10e)),templateListAction=async(_0x21e08e,_0x3a37ff)=>{const _0xd29346=a2_0x424d2f,_0x27b9cd=new EngageTemplatesCommand(),_0x350a59=program[_0xd29346(0x11b)](),_0x1fb26b=await createTDXInstance(_0x350a59),_0x3c05a6=await _0x27b9cd[_0xd29346(0x246)]({'options':{..._0x350a59,..._0x3a37ff},'args':_0x21e08e?[_0x21e08e]:[],'tdx':_0x1fb26b});process[_0xd29346(0x1c4)](_0x3c05a6);};templateCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))['description'](a2_0x424d2f(0x24f))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a9)](templateListAction),engageCmd['command'](a2_0x424d2f(0x24c))['description']('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')['option']('--workspace\x20<name>',a2_0x424d2f(0x255))[a2_0x424d2f(0x1a9)](templateListAction),templateCmd[a2_0x424d2f(0x289)]('show\x20<name-or-id>')[a2_0x424d2f(0x162)]('Show\x20email\x20template\x20details')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x148),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x155))[a2_0x424d2f(0x162)]('Create\x20an\x20email\x20template')[a2_0x424d2f(0xca)]('--name\x20<name>',a2_0x424d2f(0x204))[a2_0x424d2f(0xca)](a2_0x424d2f(0x219),a2_0x424d2f(0x1b7))[a2_0x424d2f(0xca)]('--html\x20<html>','HTML\x20template\x20content')[a2_0x424d2f(0x1a2)]('--workspace\x20<name>',a2_0x424d2f(0x1bc))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x234),a2_0x424d2f(0x2c8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0xfc),a2_0x424d2f(0x16a))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x424d2f(0x2b2))[a2_0x424d2f(0x162)](a2_0x424d2f(0x25a))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x2a2),'New\x20template\x20name')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x219),a2_0x424d2f(0x1b7))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x277),a2_0x424d2f(0xfe))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x234),a2_0x424d2f(0x2c8))[a2_0x424d2f(0x1a9)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('delete\x20<name-or-id>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x1d8))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x179),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)]('--yes',a2_0x424d2f(0x168))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x135))['description']('Workspace\x20management'),workspaceListAction=async(_0x5b38eb,_0x203e2)=>{const _0xf1cced=a2_0x424d2f,_0x1483bb=new EngageWorkspacesCommand(),_0x43aec3=program[_0xf1cced(0x11b)](),_0x378b9b=await createTDXInstance(_0x43aec3),_0xf18547=await _0x1483bb[_0xf1cced(0x246)]({'options':{..._0x43aec3,..._0x203e2},'args':_0x5b38eb?[_0x5b38eb]:[],'tdx':_0x378b9b});process[_0xf1cced(0x1c4)](_0xf18547);};workspaceCmd['command'](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1de))[a2_0x424d2f(0x1a9)](workspaceListAction),engageCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x2b0))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1f5))[a2_0x424d2f(0x1a9)](workspaceListAction),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xf3))['description'](a2_0x424d2f(0x174))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x148),a2_0x424d2f(0x275))[a2_0x424d2f(0x1a9)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x155))[a2_0x424d2f(0x162)](a2_0x424d2f(0x1d6))[a2_0x424d2f(0xca)](a2_0x424d2f(0x2a2),a2_0x424d2f(0x255))[a2_0x424d2f(0x1a2)]('--description\x20<desc>',a2_0x424d2f(0x1da))[a2_0x424d2f(0x1a9)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x2b2))[a2_0x424d2f(0x162)](a2_0x424d2f(0x209))['option'](a2_0x424d2f(0x2a2),a2_0x424d2f(0x270))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x146),a2_0x424d2f(0x1da))[a2_0x424d2f(0x1a9)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x29f))[a2_0x424d2f(0x162)](a2_0x424d2f(0x2ac))['option']('--yes',a2_0x424d2f(0x168))[a2_0x424d2f(0x1a9)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xe6))[a2_0x424d2f(0x162)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x424d2f(0x1a9)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x424d2f(0x289)](a2_0x424d2f(0x1f6))['description']('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x2e348e=>{const _0x3a2077=a2_0x424d2f,_0x37664f=new ConnectionListCommand(),_0x41dbc9=program['opts'](),_0xfd9197=await createTDXInstance(_0x41dbc9),_0x343d05=await _0x37664f['run']({'options':{..._0x41dbc9,..._0x2e348e},'args':[],'tdx':_0xfd9197});process[_0x3a2077(0x1c4)](_0x343d05);};connectionCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x216))[a2_0x424d2f(0x162)](a2_0x424d2f(0x161))[a2_0x424d2f(0x1a9)](connectionListAction),program[a2_0x424d2f(0x289)](a2_0x424d2f(0xe3),{'hidden':!![]})['description']('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x424d2f(0x1a9)](connectionListAction),connectionCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xe4))[a2_0x424d2f(0x162)]('Show\x20connection\x20details\x20by\x20name')[a2_0x424d2f(0x1a9)](async(_0x4fafe6,_0x3d4907)=>{const _0x3ff4ac=a2_0x424d2f,_0x13bf54=new ConnectionShowCommand(),_0x4fc1f2=program[_0x3ff4ac(0x11b)](),_0x8141ca=await createTDXInstance(_0x4fc1f2),_0x176aad=await _0x13bf54[_0x3ff4ac(0x246)]({'options':{..._0x4fc1f2,..._0x3d4907},'args':[_0x4fafe6],'tdx':_0x8141ca});process['exit'](_0x176aad);});const journeyCmd=program['command']('journey')[a2_0x424d2f(0x162)](a2_0x424d2f(0x276));journeyCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x205))[a2_0x424d2f(0x162)]('List\x20journeys\x20in\x20current\x20context')[a2_0x424d2f(0x1a9)](async(_0x4cec3d,_0xfe9c4e)=>{const _0x29a818=a2_0x424d2f,_0x178d8e=new JourneyListCommand(),_0xbccb15=program[_0x29a818(0x11b)](),_0x359776=await createTDXInstance(_0xbccb15),_0x91898f=await _0x178d8e['run']({'options':{..._0xbccb15,..._0xfe9c4e},'args':_0x4cec3d?[_0x4cec3d]:[],'tdx':_0x359776});process['exit'](_0x91898f);}),journeyCmd['command']('view\x20<name-or-path>')[a2_0x424d2f(0x162)](a2_0x424d2f(0x296))['option']('--include-stats',a2_0x424d2f(0x1dc))[a2_0x424d2f(0x1a9)](async(_0xa5d3e4,_0x42b6c0)=>{const _0x9bc8af=a2_0x424d2f,_0x25c2a2=new JourneyViewCommand(),_0x4ab7ce=program[_0x9bc8af(0x11b)](),_0x5f24c4=await createTDXInstance(_0x4ab7ce),_0x4dbf1e=await _0x25c2a2['run']({'options':{..._0x4ab7ce,..._0x42b6c0},'args':[_0xa5d3e4],'tdx':_0x5f24c4});process[_0x9bc8af(0x1c4)](_0x4dbf1e);}),journeyCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x261))[a2_0x424d2f(0x162)]('Show\x20journey\x20statistics')[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x25f),a2_0x424d2f(0x274))[a2_0x424d2f(0x1a9)](async(_0xe20ef1,_0x3c51e2)=>{const _0x4c0548=a2_0x424d2f,_0x36e165=new JourneyStatsCommand(),_0x5d58bb=program[_0x4c0548(0x11b)](),_0x501926=await createTDXInstance(_0x5d58bb),_0x5dbf71=await _0x36e165[_0x4c0548(0x246)]({'options':{..._0x5d58bb,..._0x3c51e2},'args':[_0xe20ef1],'tdx':_0x501926});process[_0x4c0548(0x1c4)](_0x5dbf71);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0x424d2f(0x162)]('Pause\x20a\x20running\x20journey')['action'](async(_0xef64dd,_0x43fda2)=>{const _0x5ab20f=a2_0x424d2f,_0x3bbd08=new JourneyPauseCommand(),_0x1249aa=program[_0x5ab20f(0x11b)](),_0x282853=await createTDXInstance(_0x1249aa),_0x5bbcf9=await _0x3bbd08['run']({'options':{..._0x1249aa,..._0x43fda2},'args':[_0xef64dd],'tdx':_0x282853});process[_0x5ab20f(0x1c4)](_0x5bbcf9);}),journeyCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0xd5))[a2_0x424d2f(0x162)](a2_0x424d2f(0x151))[a2_0x424d2f(0x1a9)](async(_0x28c723,_0xcfa962)=>{const _0x29210c=a2_0x424d2f,_0x21a926=new JourneyResumeCommand(),_0x1bd60a=program[_0x29210c(0x11b)](),_0xac69fe=await createTDXInstance(_0x1bd60a),_0x3523c3=await _0x21a926[_0x29210c(0x246)]({'options':{..._0x1bd60a,..._0xcfa962},'args':[_0x28c723],'tdx':_0xac69fe});process['exit'](_0x3523c3);}),journeyCmd[a2_0x424d2f(0x289)](a2_0x424d2f(0x241))[a2_0x424d2f(0x162)](a2_0x424d2f(0x121))[a2_0x424d2f(0x1a2)]('-y,\x20--yes',a2_0x424d2f(0x168))[a2_0x424d2f(0x1a2)](a2_0x424d2f(0x278),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')['action'](async(_0x39b33e,_0x417e4a)=>{const _0x28bab1=a2_0x424d2f,_0x3ef313=new JourneyPullCommand(),_0xc3f3f5=program[_0x28bab1(0x11b)](),_0x36436c=await createTDXInstance(_0xc3f3f5),_0x19b90e=await _0x3ef313['run']({'options':{..._0xc3f3f5,..._0x417e4a},'args':_0x39b33e?[_0x39b33e]:[],'tdx':_0x36436c});process[_0x28bab1(0x1c4)](_0x19b90e);});export{program};export function runCLI(){const _0x9d8517=a2_0x424d2f;program['parse'](process['argv']);!process[_0x9d8517(0x2a3)][_0x9d8517(0x267)](0x2)[_0x9d8517(0xea)]&&program[_0x9d8517(0x127)]();const _0x37e9ee=packageJson[_0x9d8517(0x1dd)];process['stderr'][_0x9d8517(0xde)]&&process[_0x9d8517(0x2a3)][_0x9d8517(0xea)]>0x2&&!_0x37e9ee['includes'](_0x9d8517(0x1b6))&&checkForUpdate(_0x37e9ee)[_0x9d8517(0x238)](_0x1619f0=>{_0x1619f0&&displayUpdateNotification(_0x1619f0);})[_0x9d8517(0x2be)](()=>{});}