@treasuredata/tdx 0.7.3 → 0.8.0
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.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +2 -2
- package/dist/cli-categories.d.ts +2 -2
- package/dist/cli-categories.js +1 -1
- package/dist/cli-categories.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client/cdp-api-client.d.ts +59 -1
- package/dist/client/cdp-api-client.d.ts.map +1 -1
- package/dist/client/cdp-api-client.js +1 -1
- package/dist/client/cdp-api-client.js.map +1 -1
- package/dist/client/engage-api-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-api-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-api-client.d.ts +19 -1
- package/dist/client/td-api-client.d.ts.map +1 -1
- package/dist/client/td-api-client.js +1 -1
- package/dist/client/td-api-client.js.map +1 -1
- package/dist/client/trino-api-client.js +1 -1
- package/dist/client/workflow-client.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.d.ts +28 -0
- package/dist/commands/connection-command.d.ts.map +1 -0
- package/dist/commands/connection-command.js +1 -0
- package/dist/commands/connection-command.js.map +1 -0
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.d.ts +16 -5
- package/dist/commands/parent-segment-command.d.ts.map +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/parent-segment-command.js.map +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.d.ts +35 -22
- package/dist/commands/segment-command.d.ts.map +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-command.js.map +1 -1
- package/dist/commands/segment-create-command.d.ts +2 -0
- package/dist/commands/segment-create-command.d.ts.map +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-create-command.js.map +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.d.ts +21 -0
- package/dist/commands/segment-pull-command.d.ts.map +1 -0
- package/dist/commands/segment-pull-command.js +1 -0
- package/dist/commands/segment-pull-command.js.map +1 -0
- package/dist/commands/segment-push-command.d.ts +21 -0
- package/dist/commands/segment-push-command.d.ts.map +1 -0
- package/dist/commands/segment-push-command.js +1 -0
- package/dist/commands/segment-push-command.js.map +1 -0
- package/dist/commands/segment-update-command.d.ts +2 -0
- package/dist/commands/segment-update-command.d.ts.map +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-update-command.js.map +1 -1
- package/dist/commands/segment-use-command.d.ts.map +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-use-command.js.map +1 -1
- package/dist/commands/segments.d.ts +11 -19
- package/dist/commands/segments.d.ts.map +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/segments.js.map +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.d.ts +23 -0
- package/dist/commands/user-command.d.ts.map +1 -0
- package/dist/commands/user-command.js +1 -0
- package/dist/commands/user-command.js.map +1 -0
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.d.ts +29 -0
- package/dist/core/connection-cache.d.ts.map +1 -0
- package/dist/core/connection-cache.js +1 -0
- package/dist/core/connection-cache.js.map +1 -0
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.d.ts +29 -0
- package/dist/core/user-cache.d.ts.map +1 -0
- package/dist/core/user-cache.js +1 -0
- package/dist/core/user-cache.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/connection.d.ts +116 -0
- package/dist/sdk/connection.d.ts.map +1 -0
- package/dist/sdk/connection.js +1 -0
- package/dist/sdk/connection.js.map +1 -0
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.d.ts +6 -0
- package/dist/sdk/errors.d.ts.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/errors.js.map +1 -1
- package/dist/sdk/index.d.ts +13 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.d.ts +288 -0
- package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -0
- package/dist/sdk/segment/child-segment-yaml.js +1 -0
- package/dist/sdk/segment/child-segment-yaml.js.map +1 -0
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment.d.ts +87 -1
- package/dist/sdk/segment.d.ts.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/segment.js.map +1 -1
- package/dist/sdk/user.d.ts +75 -0
- package/dist/sdk/user.d.ts.map +1 -0
- package/dist/sdk/user.js +1 -0
- package/dist/sdk/user.js.map +1 -0
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/cdp.d.ts +148 -15
- package/dist/types/cdp.d.ts.map +1 -1
- package/dist/types/connection.d.ts +37 -0
- package/dist/types/connection.d.ts.map +1 -0
- package/dist/types/connection.js +1 -0
- package/dist/types/connection.js.map +1 -0
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/agent-ref-parser.js +1 -1
- package/dist/utils/async.d.ts +13 -0
- package/dist/utils/async.d.ts.map +1 -0
- package/dist/utils/async.js +1 -0
- package/dist/utils/async.js.map +1 -0
- package/dist/utils/chat-cache.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.d.ts +24 -3
- package/dist/utils/command-output.d.ts.map +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/command-output.js.map +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/fields-display.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/llm-backup-utils.js +1 -1
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/model-factors.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/segment-path-parser.d.ts +52 -0
- package/dist/utils/segment-path-parser.d.ts.map +1 -1
- package/dist/utils/segment-path-parser.js +1 -1
- package/dist/utils/segment-path-parser.js.map +1 -1
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sql-parser.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-config.d.ts +103 -0
- package/dist/utils/tdx-config.d.ts.map +1 -0
- package/dist/utils/tdx-config.js +1 -0
- package/dist/utils/tdx-config.js.map +1 -0
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/tree-formatter.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +2 -2
- package/dist/commands/segment-pwd-command.d.ts +0 -21
- package/dist/commands/segment-pwd-command.d.ts.map +0 -1
- package/dist/commands/segment-pwd-command.js +0 -1
- package/dist/commands/segment-pwd-command.js.map +0 -1
package/dist/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(
|
|
2
|
+
function a0_0x304a(_0x230307,_0x3a3508){_0x230307=_0x230307-0xb9;var _0x32fa7c=a0_0x32fa();var _0x304a3d=_0x32fa7c[_0x230307];return _0x304a3d;}(function(_0xf925f1,_0x40ef92){var _0x57e5ae=a0_0x304a,_0x48a99e=_0xf925f1();while(!![]){try{var _0x86dc39=-parseInt(_0x57e5ae(0xc0))/0x1*(-parseInt(_0x57e5ae(0xbf))/0x2)+-parseInt(_0x57e5ae(0xc1))/0x3+parseInt(_0x57e5ae(0xbc))/0x4+parseInt(_0x57e5ae(0xbe))/0x5+-parseInt(_0x57e5ae(0xc2))/0x6+-parseInt(_0x57e5ae(0xb9))/0x7*(parseInt(_0x57e5ae(0xbd))/0x8)+parseInt(_0x57e5ae(0xba))/0x9*(parseInt(_0x57e5ae(0xbb))/0xa);if(_0x86dc39===_0x40ef92)break;else _0x48a99e['push'](_0x48a99e['shift']());}catch(_0x3f913f){_0x48a99e['push'](_0x48a99e['shift']());}}}(a0_0x32fa,0x7c8bb));function a0_0x32fa(){var _0x134f00=['93430jBVXKi','3628092PiQGuD','2472784zXkYEo','3215850qjlsnK','16308JlvVei','44LCDKwy','1614048xwYZjo','4655688iTGgya','7rzLILD','216KteEub'];a0_0x32fa=function(){return _0x134f00;};return a0_0x32fa();}import{runCLI}from'./cli.js';runCLI();
|
package/dist/build-info.json
CHANGED
package/dist/cli-categories.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const COMMAND_CATEGORIES: readonly [{
|
|
|
16
16
|
}, {
|
|
17
17
|
readonly name: "CDP";
|
|
18
18
|
readonly colorFn: import("chalk").ChalkInstance;
|
|
19
|
-
readonly commands: readonly ["segment", "parent-segment", "activations", "engage"];
|
|
19
|
+
readonly commands: readonly ["segment", "parent-segment", "activations", "engage", "connection"];
|
|
20
20
|
}, {
|
|
21
21
|
readonly name: "AI";
|
|
22
22
|
readonly colorFn: import("chalk").ChalkInstance;
|
|
@@ -24,7 +24,7 @@ export declare const COMMAND_CATEGORIES: readonly [{
|
|
|
24
24
|
}, {
|
|
25
25
|
readonly name: "Context";
|
|
26
26
|
readonly colorFn: import("chalk").ChalkInstance;
|
|
27
|
-
readonly commands: readonly ["context", "use", "profiles", "auth"];
|
|
27
|
+
readonly commands: readonly ["context", "use", "profiles", "auth", "user", "users"];
|
|
28
28
|
}, {
|
|
29
29
|
readonly name: "Utilities";
|
|
30
30
|
readonly colorFn: import("chalk").ChalkInstance;
|
package/dist/cli-categories.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a1_0x1bd4e9=a1_0x1b09;(function(_0x15c152,_0x56f1fa){const _0x15adc9=a1_0x1b09,_0x4a2efd=_0x15c152();while(!![]){try{const _0x13dbd6=parseInt(_0x15adc9(0x1c8))/0x1+-parseInt(_0x15adc9(0x1e1))/0x2+-parseInt(_0x15adc9(0x1e6))/0x3*(-parseInt(_0x15adc9(0x1e0))/0x4)+parseInt(_0x15adc9(0x1d7))/0x5+-parseInt(_0x15adc9(0x1d1))/0x6*(-parseInt(_0x15adc9(0x1da))/0x7)+-parseInt(_0x15adc9(0x1e5))/0x8+-parseInt(_0x15adc9(0x1c9))/0x9;if(_0x13dbd6===_0x56f1fa)break;else _0x4a2efd['push'](_0x4a2efd['shift']());}catch(_0x4ed7d1){_0x4a2efd['push'](_0x4a2efd['shift']());}}}(a1_0x2326,0xe3edd));function a1_0x1b09(_0xe914d5,_0x230703){_0xe914d5=_0xe914d5-0x1c4;const _0x2326bc=a1_0x2326();let _0x1b099b=_0x2326bc[_0xe914d5];return _0x1b099b;}import a1_0xb8c883 from'chalk';export const COMMAND_CATEGORIES=[{'name':a1_0x1bd4e9(0x1d8),'colorFn':a1_0xb8c883[a1_0x1bd4e9(0x1d6)],'commands':[a1_0x1bd4e9(0x1c6),a1_0x1bd4e9(0x1d0),a1_0x1bd4e9(0x1cb),a1_0x1bd4e9(0x1c5),a1_0x1bd4e9(0x1ca),a1_0x1bd4e9(0x1d4),a1_0x1bd4e9(0x1dc)]},{'name':a1_0x1bd4e9(0x1d9),'colorFn':a1_0xb8c883[a1_0x1bd4e9(0x1cf)],'commands':[a1_0x1bd4e9(0x1e4),'parent-segment',a1_0x1bd4e9(0x1c7),a1_0x1bd4e9(0x1cd),a1_0x1bd4e9(0x1db)]},{'name':'AI','colorFn':a1_0xb8c883[a1_0x1bd4e9(0x1e7)],'commands':[a1_0x1bd4e9(0x1df),a1_0x1bd4e9(0x1e3),a1_0x1bd4e9(0x1dd),a1_0x1bd4e9(0x1c4)]},{'name':'Context','colorFn':a1_0xb8c883[a1_0x1bd4e9(0x1ce)],'commands':['context',a1_0x1bd4e9(0x1cc),a1_0x1bd4e9(0x1e2),a1_0x1bd4e9(0x1d3),'user',a1_0x1bd4e9(0x1d2)]},{'name':a1_0x1bd4e9(0x1de),'colorFn':a1_0xb8c883[a1_0x1bd4e9(0x1d5)],'commands':['api']}];function a1_0x2326(){const _0x366658=['green','blue','1709695cUZyuH','Data','CDP','721301CKWtCB','connection','workflow','llm','Utilities','chat','19484NLWvFA','1799260RJvgTc','profiles','chats','segment','3931096iCsroJ','117uOJjTM','cyan','claude','describe','database','activations','1425304FgWOlW','9676800pZBFCU','query','show','use','engage','yellow','magenta','table','84hjrneR','users','auth','job'];a1_0x2326=function(){return _0x366658;};return a1_0x2326();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-categories.js","sourceRoot":"","sources":["../src/cli-categories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC;KAChF;IACD;QACE,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"cli-categories.js","sourceRoot":"","sources":["../src/cli-categories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC;KAChF;IACD;QACE,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,CAAC;KAC/E;IACD;QACE,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC;KAC7C;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK,CAAC,MAAM;QACrB,QAAQ,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;KAClE;IACD;QACE,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,QAAQ,EAAE,CAAC,KAAK,CAAC;KAClB;CACO,CAAC"}
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2JpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AA09E9B,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;;GAGG;AACH,wBAAgB,MAAM,IAAI,IAAI,CAwB7B"}
|
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0xc1298=a2_0x13b8;(function(_0x2324fc,_0x2446bb){const _0x461279=a2_0x13b8,_0x43158c=_0x2324fc();while(!![]){try{const _0x4c23b2=-parseInt(_0x461279(0x27b))/0x1*(-parseInt(_0x461279(0x33b))/0x2)+-parseInt(_0x461279(0x2ca))/0x3+-parseInt(_0x461279(0x33d))/0x4*(-parseInt(_0x461279(0x31e))/0x5)+-parseInt(_0x461279(0x164))/0x6*(-parseInt(_0x461279(0x2e5))/0x7)+-parseInt(_0x461279(0x22a))/0x8*(parseInt(_0x461279(0x29c))/0x9)+parseInt(_0x461279(0x2a4))/0xa*(parseInt(_0x461279(0x276))/0xb)+parseInt(_0x461279(0x1bc))/0xc*(-parseInt(_0x461279(0x2e7))/0xd);if(_0x4c23b2===_0x2446bb)break;else _0x43158c['push'](_0x43158c['shift']());}catch(_0x3f423b){_0x43158c['push'](_0x43158c['shift']());}}}(a2_0xb95d,0x7dc93));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,SegmentInfoCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';function a2_0x13b8(_0x5c8df9,_0x22572c){const _0xb95d78=a2_0xb95d();return a2_0x13b8=function(_0x13b8ad,_0x3a253d){_0x13b8ad=_0x13b8ad-0x141;let _0x8299a9=_0xb95d78[_0x13b8ad];return _0x8299a9;},a2_0x13b8(_0x5c8df9,_0x22572c);}import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{SegmentPwdCommand}from'./commands/segment-pwd-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename),packageJson=JSON[a2_0xc1298(0x15f)](readFileSync(join(__dirname,a2_0xc1298(0x19a)),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0xc1298(0x15f)](readFileSync(join(__dirname,a2_0xc1298(0x213)),'utf-8'));}catch{}if(process['argv'][a2_0xc1298(0x2b9)](a2_0xc1298(0x2f9))){let versionOutput=a2_0xc1298(0x1ce)+packageJson[a2_0xc1298(0x2d6)];buildInfo[a2_0xc1298(0x1b6)]&&(versionOutput+='\x20('+buildInfo[a2_0xc1298(0x1b6)]+')'),buildInfo[a2_0xc1298(0x1f7)]&&(versionOutput+=a2_0xc1298(0x17e)+buildInfo['buildTime']),console['log'](versionOutput),process[a2_0xc1298(0x339)](0x0);}const program=new Command();let description=a2_0xc1298(0x215);buildInfo['gitRevision']?description+=a2_0xc1298(0x299)+packageJson[a2_0xc1298(0x2d6)]+'\x20('+buildInfo[a2_0xc1298(0x1b6)]+')':description+=a2_0xc1298(0x299)+packageJson[a2_0xc1298(0x2d6)];program[a2_0xc1298(0x2ad)](a2_0xc1298(0x273))[a2_0xc1298(0x236)](description),program['option'](a2_0xc1298(0x28b),a2_0xc1298(0x22e))[a2_0xc1298(0x19f)](a2_0xc1298(0x16a),a2_0xc1298(0x1f9),a2_0xc1298(0x251))[a2_0xc1298(0x19f)](a2_0xc1298(0x2cb),a2_0xc1298(0x1a0))[a2_0xc1298(0x19f)](a2_0xc1298(0x1aa),a2_0xc1298(0x1c8))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b3),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0xc1298(0x19f)](a2_0xc1298(0x237),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0xc1298(0x19f)](a2_0xc1298(0x27a),a2_0xc1298(0x322))[a2_0xc1298(0x19f)](a2_0xc1298(0x18b),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0xc1298(0x19f)](a2_0xc1298(0x30c),a2_0xc1298(0x1fe),![])['option'](a2_0xc1298(0x1f8),a2_0xc1298(0x187),![])[a2_0xc1298(0x19f)](a2_0xc1298(0x1be),a2_0xc1298(0x157),![])[a2_0xc1298(0x19f)]('--debug',a2_0xc1298(0x28c))['option'](a2_0xc1298(0x1f2),a2_0xc1298(0x321))['option'](a2_0xc1298(0x2d5),a2_0xc1298(0x24b),'30')[a2_0xc1298(0x19f)](a2_0xc1298(0x25a),a2_0xc1298(0x21a),![])[a2_0xc1298(0x19f)](a2_0xc1298(0x327),'Skip\x20confirmation\x20prompts',![])[a2_0xc1298(0x19f)](a2_0xc1298(0x2a2),a2_0xc1298(0x1d2))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ee),a2_0xc1298(0x234))['option'](a2_0xc1298(0x1ec),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0xc1298(0x19f)](a2_0xc1298(0x185),a2_0xc1298(0x14a))[a2_0xc1298(0x19f)](a2_0xc1298(0x2f1),a2_0xc1298(0x23c)),program[a2_0xc1298(0x14e)]({'formatHelp':(_0x1c57a0,_0x2fe021)=>{const _0x105874=a2_0xc1298,_0x2fc453=_0x2fe021['padWidth'](_0x1c57a0,_0x2fe021),_0x45a977=0x2,_0x31fdc3=0x2;function _0x1c1153(_0x264aba){const _0x3b3509=a2_0x13b8,_0x6e3d51=_0x264aba;return!!(_0x6e3d51['_hidden']||_0x6e3d51[_0x3b3509(0x26f)]);}function _0x34e5d0(_0x5d9ecb,_0x5e7cc9){if(_0x5e7cc9){const _0x39dd1f=''+_0x5d9ecb['padEnd'](_0x2fc453+_0x31fdc3)+_0x5e7cc9;return _0x39dd1f;}return _0x5d9ecb;}function _0x24330d(_0x1a7320){const _0x4d4c25=a2_0x13b8;return _0x1a7320[_0x4d4c25(0x33f)]('\x0a')[_0x4d4c25(0x2f3)](/^/gm,'\x20'[_0x4d4c25(0x1e0)](_0x45a977));}const _0x4d41a2=[];_0x4d41a2['push'](_0x105874(0x33a)+_0x2fe021[_0x105874(0x314)](_0x1c57a0));const _0x3f2059=_0x2fe021[_0x105874(0x224)](_0x1c57a0);_0x3f2059&&(_0x4d41a2['push'](''),_0x4d41a2[_0x105874(0x271)](_0x3f2059));const _0x3b61c4=_0x1c57a0[_0x105874(0x24e)][_0x105874(0x220)](_0x349fb3=>!_0x1c1153(_0x349fb3));if(_0x3b61c4['length']>0x0){if(_0x1c57a0['name']()==='tdx'){const _0x3bd959=_0x1c57a0[_0x105874(0x1e9)](),_0x473f3a=!_0x3bd959[_0x105874(0x14d)]&&process[_0x105874(0x1c0)][_0x105874(0x19d)],_0x41261d=COMMAND_CATEGORIES,_0x31097c=(_0x45e746,_0x493c1a)=>_0x473f3a?_0x493c1a(_0x45e746):_0x45e746,_0x47c923=new Map();_0x3b61c4[_0x105874(0x30d)](_0x4679b8=>{const _0x3fcdd0=_0x105874;_0x47c923['set'](_0x4679b8[_0x3fcdd0(0x2ad)](),_0x4679b8);}),_0x41261d['forEach'](_0x1c98bd=>{const _0x5b24c3=_0x105874,_0x4b2aae=_0x1c98bd[_0x5b24c3(0x24e)]['flatMap'](_0x459686=>_0x47c923[_0x5b24c3(0x1d9)](_0x459686)??[]);if(_0x4b2aae[_0x5b24c3(0x25d)]>0x0){_0x4d41a2['push'](''),_0x4d41a2['push'](_0x31097c(_0x1c98bd[_0x5b24c3(0x2ad)]+':',_0x1c98bd['colorFn']));const _0x4015d7=_0x4b2aae[_0x5b24c3(0x294)](_0x9be26=>{const _0x3533d5=_0x5b24c3,_0x33d40b=_0x2fe021['subcommandTerm'](_0x9be26),_0x5bb771=_0x2fe021[_0x3533d5(0x18a)](_0x9be26);return _0x34e5d0(_0x33d40b,_0x5bb771);});_0x4d41a2[_0x5b24c3(0x271)](_0x24330d(_0x4015d7));}}),_0x4d41a2[_0x105874(0x271)](''),_0x4d41a2[_0x105874(0x271)](_0x105874(0x156));}else{const _0x3841be=_0x3b61c4['map'](_0x1a1cb1=>{const _0x288f6e=_0x105874,_0x4b6ebb=_0x2fe021[_0x288f6e(0x265)](_0x1a1cb1),_0x5d25a7=_0x2fe021[_0x288f6e(0x18a)](_0x1a1cb1);return _0x34e5d0(_0x4b6ebb,_0x5d25a7);});_0x4d41a2[_0x105874(0x271)](''),_0x4d41a2[_0x105874(0x271)](_0x105874(0x2a9)),_0x4d41a2[_0x105874(0x271)](_0x24330d(_0x3841be));}}const _0x2ac18d=_0x1c57a0['options'][_0x105874(0x220)](_0x4a2605=>!_0x1c1153(_0x4a2605));if(_0x2ac18d['length']>0x0){const _0x1c1e3c=_0x2ac18d[_0x105874(0x294)](_0x3590fe=>{const _0x3da34c=_0x105874,_0x44df71=_0x2fe021['optionTerm'](_0x3590fe),_0x5d645c=_0x2fe021[_0x3da34c(0x228)](_0x3590fe);return _0x34e5d0(_0x44df71,_0x5d645c);});_0x4d41a2[_0x105874(0x271)](''),_0x4d41a2['push'](_0x105874(0x2a3)),_0x4d41a2[_0x105874(0x271)](_0x24330d(_0x1c1e3c));}const _0x37faad=(_0x1c57a0[_0x105874(0x193)]||[])[_0x105874(0x220)](_0x19fe5d=>!_0x1c1153(_0x19fe5d));if(_0x37faad[_0x105874(0x25d)]>0x0){const _0x33c7ee=_0x37faad[_0x105874(0x294)](_0x397f0a=>{const _0x157d77=_0x2fe021['argumentTerm'](_0x397f0a),_0x26923e=_0x2fe021['argumentDescription'](_0x397f0a);return _0x34e5d0(_0x157d77,_0x26923e);});_0x4d41a2['push'](''),_0x4d41a2['push']('Arguments:'),_0x4d41a2[_0x105874(0x271)](_0x24330d(_0x33c7ee));}return _0x4d41a2['join']('\x0a');},'subcommandTerm':_0x37a089=>{const _0x37bab3=a2_0xc1298,_0x236df9=(_0x37a089['registeredArguments']||[])[_0x37bab3(0x294)](_0x3ff4f3=>_0x3ff4f3['required']?'<'+_0x3ff4f3[_0x37bab3(0x2ad)]()+'>':'['+_0x3ff4f3[_0x37bab3(0x2ad)]()+']')[_0x37bab3(0x33f)]('\x20'),_0x752c45=_0x37a089[_0x37bab3(0x2d9)](),_0x855d98=_0x752c45[_0x37bab3(0x25d)]>0x0?_0x37a089[_0x37bab3(0x2ad)]()+',\x20'+_0x752c45[_0x37bab3(0x33f)](',\x20'):_0x37a089[_0x37bab3(0x2ad)]();return _0x236df9?_0x855d98+'\x20'+_0x236df9:_0x855d98;}}),program[a2_0xc1298(0x245)](a2_0xc1298(0x2e6),_0x40b275=>{const _0x1aba13=a2_0xc1298,_0x2cdde2=_0x40b275['opts']();if(!_0x2cdde2['format']){if(_0x2cdde2[_0x1aba13(0x1af)])_0x2cdde2['format']=_0x1aba13(0x1af);else{if(_0x2cdde2[_0x1aba13(0x25c)])_0x2cdde2[_0x1aba13(0x26a)]=_0x1aba13(0x25c);else _0x2cdde2[_0x1aba13(0x1b2)]&&(_0x2cdde2[_0x1aba13(0x26a)]=_0x1aba13(0x1b2));}}_0x2cdde2['in']&&!_0x2cdde2[_0x1aba13(0x219)]&&(_0x2cdde2['database']=_0x2cdde2['in']);if(_0x2cdde2[_0x1aba13(0x256)])_0x2cdde2['logLevel']=LogLevel[_0x1aba13(0x32e)];else{if(_0x2cdde2[_0x1aba13(0x178)])_0x2cdde2[_0x1aba13(0x2e4)]=LogLevel[_0x1aba13(0x301)];else _0x2cdde2['logLevel']===undefined&&(_0x2cdde2[_0x1aba13(0x2e4)]=LogLevel[_0x1aba13(0x306)]);}});async function createTDXInstance(_0x3ec976){const _0x124c61=a2_0xc1298,_0x4b997f=await GlobalContext[_0x124c61(0x2da)](_0x3ec976);return _0x4b997f['injectIntoOptions'](_0x3ec976),TDX[_0x124c61(0x23f)]({'site':_0x4b997f[_0x124c61(0x2ef)],'apiKey':_0x4b997f[_0x124c61(0x19e)],'logLevel':_0x4b997f[_0x124c61(0x2e4)],'profile':_0x4b997f[_0x124c61(0x15a)]});}const databaseCmd=program[a2_0xc1298(0x282)]('database')[a2_0xc1298(0x2eb)]('db')[a2_0xc1298(0x236)]('Database\x20management\x20commands'),databaseListAction=async(_0x205235,_0x1f020b)=>{const _0x2ad135=a2_0xc1298,_0xf5cfd5=new DatabasesCommand(),_0x5ab9c5=program[_0x2ad135(0x1e9)](),_0x55a155=await createTDXInstance(_0x5ab9c5),_0x17d57e=await _0xf5cfd5[_0x2ad135(0x1f1)]({'options':{..._0x5ab9c5,..._0x1f020b},'args':_0x205235?[_0x205235]:[],'tdx':_0x55a155});process[_0x2ad135(0x339)](_0x17d57e);};databaseCmd[a2_0xc1298(0x282)](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x329))['action'](databaseListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x320),{'hidden':!![]})['description'](a2_0xc1298(0x1b7))['action'](databaseListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x1a5))[a2_0xc1298(0x236)](a2_0xc1298(0x242))[a2_0xc1298(0x19f)](a2_0xc1298(0x2a7),a2_0xc1298(0x31b))[a2_0xc1298(0x19f)](a2_0xc1298(0x147),a2_0xc1298(0x252))[a2_0xc1298(0x19f)](a2_0xc1298(0x1de),a2_0xc1298(0x1e1))['option'](a2_0xc1298(0x2b3),'Start\x20a\x20new\x20chat\x20session')['action'](async(_0x571488,_0x29e2fe)=>{const _0x375e21=a2_0xc1298,_0x42c16a=new ChatCommand(),_0x46db6f=program[_0x375e21(0x1e9)](),_0x1b4fa1=await createTDXInstance(_0x46db6f),_0x3a9cd0=await _0x42c16a[_0x375e21(0x1f1)]({'options':{..._0x46db6f,..._0x29e2fe},'args':_0x571488,'tdx':_0x1b4fa1});process['exit'](_0x3a9cd0);});const apiCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x210))[a2_0xc1298(0x211)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0xc1298(0x330)](a2_0xc1298(0x26b),a2_0xc1298(0x1d4))[a2_0xc1298(0x19f)](a2_0xc1298(0x189),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')['option'](a2_0xc1298(0x173),'Request\x20body\x20as\x20JSON\x20string')[a2_0xc1298(0x19f)](a2_0xc1298(0x2a5),'Read\x20request\x20body\x20from\x20file')[a2_0xc1298(0x19f)](a2_0xc1298(0x25e),a2_0xc1298(0x18c),(_0x1ef274,_0x5b8585)=>{return _0x5b8585?[..._0x5b8585,_0x1ef274]:[_0x1ef274];})[a2_0xc1298(0x19f)](a2_0xc1298(0x2a0),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0xc1298(0x309)](async(_0xddf60e,_0x3bc83e)=>{const _0x59a12e=a2_0xc1298;if(!_0xddf60e){apiCmd['help']();return;}const _0x326220=new ApiCommand(),_0x546a56=program[_0x59a12e(0x1e9)](),_0x106b89=await createTDXInstance(_0x546a56),_0x1e5aeb=await _0x326220[_0x59a12e(0x1f1)]({'options':{..._0x546a56,..._0x3bc83e},'args':[_0xddf60e],'tdx':_0x106b89});process['exit'](_0x1e5aeb);}),tableCmd=program[a2_0xc1298(0x282)]('table')[a2_0xc1298(0x236)](a2_0xc1298(0x2af)),tableListAction=async(_0x274adf,_0x285764)=>{const _0x455318=a2_0xc1298,_0x10ff6c=new TablesCommand(),_0x3bc9a6=program[_0x455318(0x1e9)](),_0x3af974=await createTDXInstance(_0x3bc9a6);_0x285764['in']&&(_0x285764[_0x455318(0x219)]=_0x285764['in']);const _0x405f3c=await _0x10ff6c['run']({'options':{..._0x3bc9a6,..._0x285764},'args':_0x274adf?[_0x274adf]:[],'tdx':_0x3af974});process[_0x455318(0x339)](_0x405f3c);};tableCmd[a2_0xc1298(0x282)](a2_0xc1298(0x158))['description']('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0xc1298(0x19f)](a2_0xc1298(0x1ca),a2_0xc1298(0x1d5))['option']('--in\x20<database>',a2_0xc1298(0x206))[a2_0xc1298(0x309)](tableListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x30e),{'hidden':!![]})[a2_0xc1298(0x236)](a2_0xc1298(0x175))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ca),a2_0xc1298(0x1d5))[a2_0xc1298(0x19f)](a2_0xc1298(0x336),a2_0xc1298(0x206))[a2_0xc1298(0x309)](tableListAction),program[a2_0xc1298(0x282)]('show\x20[table]')[a2_0xc1298(0x236)](a2_0xc1298(0x154))[a2_0xc1298(0x19f)]('-d,\x20--database\x20<database>',a2_0xc1298(0x225))[a2_0xc1298(0x19f)](a2_0xc1298(0x336),a2_0xc1298(0x206))[a2_0xc1298(0x309)](async(_0x1ff091,_0x2106c9)=>{const _0x17d19e=a2_0xc1298,_0x1c7215=new ShowCommand(),_0x1ae29c=program[_0x17d19e(0x1e9)](),_0xab219=await createTDXInstance(_0x1ae29c);_0x2106c9['in']&&(_0x2106c9[_0x17d19e(0x219)]=_0x2106c9['in']);const _0x51ecdf=await _0x1c7215[_0x17d19e(0x1f1)]({'options':{..._0x1ae29c,..._0x2106c9},'args':_0x1ff091?[_0x1ff091]:[],'tdx':_0xab219});process[_0x17d19e(0x339)](_0x51ecdf);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x23a))[a2_0xc1298(0x2eb)](a2_0xc1298(0x324))[a2_0xc1298(0x236)]('Describe\x20table\x20schema')['option'](a2_0xc1298(0x1ca),a2_0xc1298(0x225))[a2_0xc1298(0x19f)]('--in\x20<database>',a2_0xc1298(0x206))['action'](async(_0x4e241d,_0x1408d6)=>{const _0x2fcc0b=a2_0xc1298,_0x17a437=new DescribeCommand(),_0x581794=program[_0x2fcc0b(0x1e9)](),_0x40f1b3=await createTDXInstance(_0x581794);_0x1408d6['in']&&(_0x1408d6[_0x2fcc0b(0x219)]=_0x1408d6['in']);const _0x32f1cc=await _0x17a437[_0x2fcc0b(0x1f1)]({'options':{..._0x581794,..._0x1408d6},'args':_0x4e241d?[_0x4e241d]:[],'tdx':_0x40f1b3});process[_0x2fcc0b(0x339)](_0x32f1cc);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x1c1))[a2_0xc1298(0x236)](a2_0xc1298(0x2c2))['option']('-d,\x20--database\x20<database>',a2_0xc1298(0x253))[a2_0xc1298(0x19f)](a2_0xc1298(0x336),a2_0xc1298(0x206))['option'](a2_0xc1298(0x238),a2_0xc1298(0x2c5))[a2_0xc1298(0x19f)](a2_0xc1298(0x2a5),a2_0xc1298(0x1a6))['option'](a2_0xc1298(0x18d),a2_0xc1298(0x272),'40')[a2_0xc1298(0x309)](async(_0x520359,_0x4aea63)=>{const _0x53428c=a2_0xc1298,_0x399d0a=new QueryCommand(),_0xf16cce=program['opts'](),_0x12575f=await createTDXInstance(_0xf16cce);_0x4aea63['in']&&(_0x4aea63['database']=_0x4aea63['in']);const _0x44e197=await _0x399d0a['run']({'options':{..._0xf16cce,..._0x4aea63},'args':_0x520359?[_0x520359]:[],'tdx':_0x12575f});process[_0x53428c(0x339)](_0x44e197);});const segmentCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x230))['description'](a2_0xc1298(0x152)),segmentListAction=async(_0x146a7a,_0x3cf325)=>{const _0x490fab=a2_0xc1298,_0x591712=new SegmentsCommand(),_0x2c7de7=program[_0x490fab(0x1e9)](),_0x31372f=await createTDXInstance(_0x2c7de7),_0x37361e=await _0x591712[_0x490fab(0x1f1)]({'options':{..._0x2c7de7,..._0x3cf325},'args':_0x146a7a?[_0x146a7a]:[],'tdx':_0x31372f});process['exit'](_0x37361e);};segmentCmd['command'](a2_0xc1298(0x2b8))[a2_0xc1298(0x236)](a2_0xc1298(0x233))['option'](a2_0xc1298(0x258),a2_0xc1298(0x290))[a2_0xc1298(0x19f)](a2_0xc1298(0x264),a2_0xc1298(0x266),'10')['action'](segmentListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x32c),{'hidden':!![]})['description'](a2_0xc1298(0x267))[a2_0xc1298(0x19f)](a2_0xc1298(0x258),a2_0xc1298(0x290))[a2_0xc1298(0x19f)]('--max-depth\x20<depth>',a2_0xc1298(0x266),'10')[a2_0xc1298(0x309)](segmentListAction),segmentCmd[a2_0xc1298(0x282)]('use\x20<path>')[a2_0xc1298(0x236)](a2_0xc1298(0x29d))[a2_0xc1298(0x309)](async(_0x68a3b5,_0x234764)=>{const _0x25db3d=a2_0xc1298,_0x37aa08=new SegmentUseCommand(),_0x12c094=program['opts'](),_0x132d4d=await createTDXInstance(_0x12c094),_0x3fc5de=await _0x37aa08[_0x25db3d(0x1f1)]({'options':{..._0x12c094,..._0x234764},'args':[_0x68a3b5],'tdx':_0x132d4d});process['exit'](_0x3fc5de);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2c9))[a2_0xc1298(0x236)]('Show\x20current\x20segment/folder\x20context')[a2_0xc1298(0x309)](async _0x5b23d2=>{const _0x36c36c=a2_0xc1298,_0x51ffd2=new SegmentPwdCommand(),_0x2d708d=program['opts'](),_0x45e51c=await createTDXInstance(_0x2d708d),_0x9f2dea=await _0x51ffd2[_0x36c36c(0x1f1)]({'options':{..._0x2d708d,..._0x5b23d2},'args':[],'tdx':_0x45e51c});process['exit'](_0x9f2dea);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x162))['alias'](a2_0xc1298(0x2ed))[a2_0xc1298(0x236)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0xc1298(0x309)](async(_0x127ed7,_0x25871c)=>{const _0x365f3f=a2_0xc1298,_0x53aa4c=new SegmentInfoCommand(),_0x128b38=program[_0x365f3f(0x1e9)](),_0x586979=await createTDXInstance(_0x128b38),_0x258565=await _0x53aa4c['run']({'options':{..._0x128b38,..._0x25871c},'args':_0x127ed7?[_0x127ed7]:[],'tdx':_0x586979});process[_0x365f3f(0x339)](_0x258565);}),segmentCmd[a2_0xc1298(0x282)]('desc\x20[segment_name]')[a2_0xc1298(0x236)](a2_0xc1298(0x23d))[a2_0xc1298(0x309)](async(_0x5e2045,_0x3a7e13)=>{const _0x2a6d1b=a2_0xc1298,_0x2cc3d3=new SegmentDescCommand(),_0x3833b9=program[_0x2a6d1b(0x1e9)](),_0x3559d5=await createTDXInstance(_0x3833b9),_0x12a0ff=await _0x2cc3d3[_0x2a6d1b(0x1f1)]({'options':{..._0x3833b9,..._0x3a7e13},'args':_0x5e2045?[_0x5e2045]:[],'tdx':_0x3559d5});process['exit'](_0x12a0ff);}),segmentCmd[a2_0xc1298(0x282)]('show\x20[segment_name]')[a2_0xc1298(0x236)](a2_0xc1298(0x29b))[a2_0xc1298(0x309)](async(_0x20024a,_0x426b31)=>{const _0x395528=a2_0xc1298,_0x5fcad4=new SegmentShowCommand(),_0x2e3237=program['opts'](),_0x3bd8a8=await createTDXInstance(_0x2e3237),_0x37e022=await _0x5fcad4[_0x395528(0x1f1)]({'options':{..._0x2e3237,..._0x426b31},'args':_0x20024a?[_0x20024a]:[],'tdx':_0x3bd8a8});process[_0x395528(0x339)](_0x37e022);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1e3))[a2_0xc1298(0x236)]('List\x20segment\x20folders\x20under\x20a\x20parent\x20segment')[a2_0xc1298(0x309)](async(_0x203d56,_0x2d8cc2)=>{const _0x4e67dd=a2_0xc1298,_0x5efd57=new SegmentFolderListCommand(),_0x122b61=program['opts'](),_0x3bcedb=await createTDXInstance(_0x122b61),_0x2e3189=await _0x5efd57[_0x4e67dd(0x1f1)]({'options':{..._0x122b61,..._0x2d8cc2},'args':[_0x203d56],'tdx':_0x3bcedb});process[_0x4e67dd(0x339)](_0x2e3189);});const folderCmd=segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x241))['description']('Segment\x20folder\x20management');folderCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1ab))[a2_0xc1298(0x236)](a2_0xc1298(0x288))[a2_0xc1298(0x309)](async(_0x568115,_0x31999b)=>{const _0x4f6a3c=a2_0xc1298,_0x1f60fa=new SegmentFolderShowCommand(),_0x57c2fc=program[_0x4f6a3c(0x1e9)](),_0x5c8be4=await createTDXInstance(_0x57c2fc),_0x55c577=await _0x1f60fa['run']({'options':{..._0x57c2fc,..._0x31999b},'args':[_0x568115],'tdx':_0x5c8be4});process[_0x4f6a3c(0x339)](_0x55c577);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x208))[a2_0xc1298(0x236)](a2_0xc1298(0x20a))['action'](async(_0x284695,_0x1e9d38)=>{const _0x2059a0=a2_0xc1298,_0x261d1d=new SegmentSQLCommand(),_0x6ee914=program[_0x2059a0(0x1e9)](),_0x137d9a=await createTDXInstance(_0x6ee914),_0x2931e3=await _0x261d1d[_0x2059a0(0x1f1)]({'options':{..._0x6ee914,..._0x1e9d38},'args':_0x284695?[_0x284695]:[],'tdx':_0x137d9a});process[_0x2059a0(0x339)](_0x2931e3);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2de))[a2_0xc1298(0x236)](a2_0xc1298(0x222))[a2_0xc1298(0x309)](async(_0x28959f,_0x515af3)=>{const _0x10bea2=a2_0xc1298,_0x6d1720=new SegmentFieldsCommand(),_0x583bb7=program[_0x10bea2(0x1e9)](),_0x29a04c=await createTDXInstance(_0x583bb7),_0x2e7aca=await _0x6d1720[_0x10bea2(0x1f1)]({'options':{..._0x583bb7,..._0x515af3},'args':_0x28959f?[_0x28959f]:[],'tdx':_0x29a04c});process[_0x10bea2(0x339)](_0x2e7aca);}),segmentCmd[a2_0xc1298(0x282)]('create\x20<segment_name>')['description'](a2_0xc1298(0x17c))[a2_0xc1298(0x19f)](a2_0xc1298(0x21c),'Segment\x20description')[a2_0xc1298(0x19f)](a2_0xc1298(0x2fb),a2_0xc1298(0x2c4))[a2_0xc1298(0x19f)]('--rule-file\x20<file>',a2_0xc1298(0x331))[a2_0xc1298(0x19f)](a2_0xc1298(0x146),'Folder\x20name\x20for\x20organization')[a2_0xc1298(0x19f)](a2_0xc1298(0x26e),a2_0xc1298(0x2fd))[a2_0xc1298(0x19f)](a2_0xc1298(0x151),a2_0xc1298(0x31f))[a2_0xc1298(0x19f)]('--no-count-population','Skip\x20population\x20counting')['action'](async(_0x40e92b,_0x48b461)=>{const _0xe52dcc=a2_0xc1298,_0x173241=new SegmentCreateCommand(),_0x42f119=program['opts'](),_0x2a2a78=await createTDXInstance(_0x42f119),_0x2a55f3=await _0x173241[_0xe52dcc(0x1f1)]({'options':{..._0x42f119,..._0x48b461},'args':[_0x40e92b],'tdx':_0x2a2a78});process[_0xe52dcc(0x339)](_0x2a55f3);}),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x317))['description'](a2_0xc1298(0x195))[a2_0xc1298(0x19f)](a2_0xc1298(0x19c),a2_0xc1298(0x176))['option'](a2_0xc1298(0x21c),'Updated\x20description')[a2_0xc1298(0x19f)]('--rule\x20<json>',a2_0xc1298(0x1df))[a2_0xc1298(0x19f)](a2_0xc1298(0x25f),a2_0xc1298(0x21d))[a2_0xc1298(0x19f)](a2_0xc1298(0x146),a2_0xc1298(0x1f3))[a2_0xc1298(0x19f)](a2_0xc1298(0x26e),a2_0xc1298(0x2fd))['action'](async(_0x28c2ea,_0xe7f6bb)=>{const _0x2fa731=a2_0xc1298,_0x5bf855=new SegmentUpdateCommand(),_0x542dd5=program['opts'](),_0x563a1e=await createTDXInstance(_0x542dd5),_0x3c898d=await _0x5bf855[_0x2fa731(0x1f1)]({'options':{..._0x542dd5,..._0xe7f6bb},'args':[_0x28c2ea],'tdx':_0x563a1e});process[_0x2fa731(0x339)](_0x3c898d);});const parentCmd=segmentCmd['command']('parent')[a2_0xc1298(0x236)](a2_0xc1298(0x32f)),parentListAction=async(_0x3ea545,_0x4d8229)=>{const _0x1ad03e=a2_0xc1298,_0x21d730=new ParentSegmentListCommand(),_0x5c5b17=program[_0x1ad03e(0x1e9)](),_0x352b30=await createTDXInstance(_0x5c5b17),_0x5c13b4=await _0x21d730[_0x1ad03e(0x1f1)]({'options':{..._0x5c5b17,..._0x4d8229},'args':_0x3ea545?[_0x3ea545]:[],'tdx':_0x352b30});process[_0x1ad03e(0x339)](_0x5c13b4);};parentCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x1b5))[a2_0xc1298(0x309)](parentListAction),segmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2fa),{'hidden':!![]})[a2_0xc1298(0x236)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0xc1298(0x309)](parentListAction),parentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x28d))[a2_0xc1298(0x236)](a2_0xc1298(0x2b7))[a2_0xc1298(0x19f)](a2_0xc1298(0x285),a2_0xc1298(0x1bf))[a2_0xc1298(0x19f)](a2_0xc1298(0x327),a2_0xc1298(0x2e9))['action'](async(_0x8a0847,_0x840803)=>{const _0x7b91f8=a2_0xc1298,_0x5c5128=new ParentSegmentPullCommand(),_0x41e684=program[_0x7b91f8(0x1e9)](),_0x51a0a6=await createTDXInstance(_0x41e684),_0x16e0ff=await _0x5c5128[_0x7b91f8(0x1f1)]({'options':{..._0x41e684,..._0x840803},'args':_0x8a0847?[_0x8a0847]:[],'tdx':_0x51a0a6});process[_0x7b91f8(0x339)](_0x16e0ff);}),parentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x198))[a2_0xc1298(0x236)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0xc1298(0x19f)](a2_0xc1298(0x327),a2_0xc1298(0x2e9))[a2_0xc1298(0x309)](async(_0x4ab7b8,_0x953f34)=>{const _0x18f35b=a2_0xc1298,_0x34798a=new ParentSegmentPushCommand(),_0x5dbaa9=program[_0x18f35b(0x1e9)](),_0x5b247d=await createTDXInstance(_0x5dbaa9),_0x3cd2ed=await _0x34798a['run']({'options':{..._0x5dbaa9,..._0x953f34},'args':_0x4ab7b8?[_0x4ab7b8]:[],'tdx':_0x5b247d});process[_0x18f35b(0x339)](_0x3cd2ed);}),parentCmd['command']('validate\x20[file]')[a2_0xc1298(0x236)](a2_0xc1298(0x184))['option'](a2_0xc1298(0x246),a2_0xc1298(0x2bf))[a2_0xc1298(0x19f)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0xc1298(0x1b1),a2_0xc1298(0x1f6))[a2_0xc1298(0x19f)]('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0xc1298(0x19f)]('--interval\x20<range>',a2_0xc1298(0x31d),a2_0xc1298(0x278))[a2_0xc1298(0x309)](async(_0x48b5fc,_0x4b275b)=>{const _0x41b503=a2_0xc1298,_0x385de4=new ParentSegmentValidateCommand(),_0x5a7097=program['opts'](),_0x325fc8=await createTDXInstance(_0x5a7097),_0x536306=await _0x385de4[_0x41b503(0x1f1)]({'options':{..._0x5a7097,..._0x4b275b},'args':_0x48b5fc?[_0x48b5fc]:[],'tdx':_0x325fc8});process['exit'](_0x536306);}),parentCmd['command'](a2_0xc1298(0x2ce))['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0xc1298(0x19f)](a2_0xc1298(0x246),a2_0xc1298(0x2e1))[a2_0xc1298(0x19f)](a2_0xc1298(0x229),a2_0xc1298(0x22b))[a2_0xc1298(0x19f)]('--behavior\x20[name]',a2_0xc1298(0x21b))[a2_0xc1298(0x19f)](a2_0xc1298(0x305),a2_0xc1298(0x333))[a2_0xc1298(0x19f)](a2_0xc1298(0x21e),a2_0xc1298(0x31d),'-1d')[a2_0xc1298(0x309)](async(_0x4f3b09,_0x4d9e42)=>{const _0x58333e=a2_0xc1298,_0x371511=new ParentSegmentPreviewCommand(),_0x54d903=program['opts'](),_0x1a71f3=await createTDXInstance(_0x54d903),_0x54b36e=await _0x371511[_0x58333e(0x1f1)]({'options':{..._0x54d903,..._0x4d9e42},'args':_0x4f3b09?[_0x4f3b09]:[],'tdx':_0x1a71f3});process['exit'](_0x54b36e);}),parentCmd['command'](a2_0xc1298(0x1c9))[a2_0xc1298(0x236)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option'](a2_0xc1298(0x327),a2_0xc1298(0x2e9))[a2_0xc1298(0x309)](async(_0x4b5570,_0xe9648e)=>{const _0x3ceaf5=a2_0xc1298,_0x139428=new ParentSegmentRunCommand(),_0x5ef971=program[_0x3ceaf5(0x1e9)](),_0x3d0c2b=await createTDXInstance(_0x5ef971),_0x13e795=await _0x139428['run']({'options':{..._0x5ef971,..._0xe9648e},'args':_0x4b5570?[_0x4b5570]:[],'tdx':_0x3d0c2b});process['exit'](_0x13e795);});const parentSegmentCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x254))[a2_0xc1298(0x2eb)]('ps')[a2_0xc1298(0x236)](a2_0xc1298(0x2bd));parentSegmentCmd[a2_0xc1298(0x282)]('list\x20[pattern]')[a2_0xc1298(0x236)](a2_0xc1298(0x1b5))[a2_0xc1298(0x309)](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0xc1298(0x236)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0xc1298(0x19f)](a2_0xc1298(0x285),'Output\x20file\x20path')[a2_0xc1298(0x19f)](a2_0xc1298(0x327),'Skip\x20confirmation\x20prompt')['option']('-u,\x20--use',a2_0xc1298(0x270))[a2_0xc1298(0x309)](async(_0x3dae89,_0x5e27b4)=>{const _0x2a5be2=a2_0xc1298,_0x2511ab=new ParentSegmentPullCommand(),_0x3de62e=program[_0x2a5be2(0x1e9)](),_0xec3890=await createTDXInstance(_0x3de62e),_0x4d6469=await _0x2511ab['run']({'options':{..._0x3de62e,..._0x5e27b4},'args':_0x3dae89?[_0x3dae89]:[],'tdx':_0xec3890});process[_0x2a5be2(0x339)](_0x4d6469);}),parentSegmentCmd['command'](a2_0xc1298(0x2d0))[a2_0xc1298(0x236)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0xc1298(0x19f)](a2_0xc1298(0x327),'Skip\x20confirmation\x20prompt')['action'](async(_0x507b8a,_0x384552)=>{const _0x1fed1b=a2_0xc1298,_0x119b86=new ParentSegmentPushCommand(),_0x352079=program[_0x1fed1b(0x1e9)](),_0x14b4ca=await createTDXInstance(_0x352079),_0x432147=await _0x119b86['run']({'options':{..._0x352079,..._0x384552},'args':_0x507b8a?[_0x507b8a]:[],'tdx':_0x14b4ca});process[_0x1fed1b(0x339)](_0x432147);}),parentSegmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2f6))['description'](a2_0xc1298(0x184))[a2_0xc1298(0x19f)](a2_0xc1298(0x246),'Show\x20only\x20master\x20table\x20validation')[a2_0xc1298(0x19f)](a2_0xc1298(0x229),a2_0xc1298(0x313))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b1),a2_0xc1298(0x1f6))[a2_0xc1298(0x19f)](a2_0xc1298(0x305),a2_0xc1298(0x218))['option'](a2_0xc1298(0x21e),a2_0xc1298(0x31d),a2_0xc1298(0x278))[a2_0xc1298(0x309)](async(_0x101833,_0x2e9f41)=>{const _0x32b630=a2_0xc1298,_0x2eda9b=new ParentSegmentValidateCommand(),_0x5e78e0=program['opts'](),_0x1832bc=await createTDXInstance(_0x5e78e0),_0x5097c7=await _0x2eda9b[_0x32b630(0x1f1)]({'options':{..._0x5e78e0,..._0x2e9f41},'args':_0x101833?[_0x101833]:[],'tdx':_0x1832bc});process[_0x32b630(0x339)](_0x5097c7);}),parentSegmentCmd[a2_0xc1298(0x282)]('preview\x20[name]')['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0xc1298(0x19f)](a2_0xc1298(0x246),a2_0xc1298(0x2e1))[a2_0xc1298(0x19f)](a2_0xc1298(0x229),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0xc1298(0x19f)](a2_0xc1298(0x1b1),a2_0xc1298(0x21b))[a2_0xc1298(0x19f)](a2_0xc1298(0x305),a2_0xc1298(0x333))['option']('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0xc1298(0x278))['action'](async(_0x3bf3e1,_0x4caf6c)=>{const _0x4ba0d2=a2_0xc1298,_0x5218eb=new ParentSegmentPreviewCommand(),_0x42a6a6=program['opts'](),_0xa8589=await createTDXInstance(_0x42a6a6),_0x412fa9=await _0x5218eb[_0x4ba0d2(0x1f1)]({'options':{..._0x42a6a6,..._0x4caf6c},'args':_0x3bf3e1?[_0x3bf3e1]:[],'tdx':_0xa8589});process['exit'](_0x412fa9);}),parentSegmentCmd[a2_0xc1298(0x282)]('run\x20[name]')['description'](a2_0xc1298(0x1dd))['option']('-y,\x20--yes',a2_0xc1298(0x2e9))[a2_0xc1298(0x309)](async(_0xcd3518,_0x19f72)=>{const _0x3abc86=a2_0xc1298,_0x2813d3=new ParentSegmentRunCommand(),_0x1917f2=program[_0x3abc86(0x1e9)](),_0x17fe78=await createTDXInstance(_0x1917f2),_0x5ea885=await _0x2813d3['run']({'options':{..._0x1917f2,..._0x19f72},'args':_0xcd3518?[_0xcd3518]:[],'tdx':_0x17fe78});process[_0x3abc86(0x339)](_0x5ea885);}),parentSegmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x190))[a2_0xc1298(0x236)](a2_0xc1298(0x1d1))['option'](a2_0xc1298(0x1aa),a2_0xc1298(0x32d))['option'](a2_0xc1298(0x1b3),a2_0xc1298(0x2f0))[a2_0xc1298(0x309)](async(_0x56f01b,_0x1882a8)=>{const _0x40468a=a2_0xc1298,_0x34da8a=new ParentSegmentFieldsCommand(),_0x3070e3=program['opts'](),_0x307a6f=await createTDXInstance(_0x3070e3),_0x46569b=await _0x34da8a[_0x40468a(0x1f1)]({'options':{..._0x3070e3,..._0x1882a8},'args':_0x56f01b?[_0x56f01b]:[],'tdx':_0x307a6f});process['exit'](_0x46569b);}),parentSegmentCmd[a2_0xc1298(0x282)]('view\x20[name]')[a2_0xc1298(0x236)](a2_0xc1298(0x196))['option'](a2_0xc1298(0x286),a2_0xc1298(0x239))['option'](a2_0xc1298(0x1aa),a2_0xc1298(0x32d))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b3),a2_0xc1298(0x2f0))[a2_0xc1298(0x309)](async(_0x580d88,_0x2016ab)=>{const _0x62c689=a2_0xc1298,_0x147836=new ParentSegmentViewCommand(),_0x4f3da8=program[_0x62c689(0x1e9)](),_0xc9dda1=await createTDXInstance(_0x4f3da8),_0x1214c9=await _0x147836[_0x62c689(0x1f1)]({'options':{..._0x4f3da8,..._0x2016ab},'args':_0x580d88?[_0x580d88]:[],'tdx':_0xc9dda1});process[_0x62c689(0x339)](_0x1214c9);}),parentSegmentCmd['command'](a2_0xc1298(0x29a))['description'](a2_0xc1298(0x201))[a2_0xc1298(0x19f)](a2_0xc1298(0x1aa),a2_0xc1298(0x32d))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b3),a2_0xc1298(0x2f0))[a2_0xc1298(0x309)](async(_0x5d5b93,_0x161c1b)=>{const _0x23cc32=new ParentSegmentDescCommand(),_0x5f5956=program['opts'](),_0x131ac7=await createTDXInstance(_0x5f5956),_0x55bc52=await _0x23cc32['run']({'options':{..._0x5f5956,..._0x161c1b},'args':_0x5d5b93?[_0x5d5b93]:[],'tdx':_0x131ac7});process['exit'](_0x55bc52);}),parentSegmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x283))[a2_0xc1298(0x236)](a2_0xc1298(0x1fd))[a2_0xc1298(0x19f)](a2_0xc1298(0x1aa),a2_0xc1298(0x32d))['option']('--jsonl',a2_0xc1298(0x2f0))[a2_0xc1298(0x309)](async(_0x22cb46,_0x16d299)=>{const _0x2daa9e=a2_0xc1298,_0x2edaf2=new ParentSegmentSQLCommand(),_0x1fc7a5=program[_0x2daa9e(0x1e9)](),_0x5b7c90=await createTDXInstance(_0x1fc7a5),_0x579a9b=await _0x2edaf2[_0x2daa9e(0x1f1)]({'options':{..._0x1fc7a5,..._0x16d299},'args':_0x22cb46?[_0x22cb46]:[],'tdx':_0x5b7c90});process[_0x2daa9e(0x339)](_0x579a9b);}),parentSegmentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x216))['description'](a2_0xc1298(0x16c))[a2_0xc1298(0x19f)](a2_0xc1298(0x2aa),a2_0xc1298(0x2a1))[a2_0xc1298(0x19f)]('--json','Output\x20as\x20JSON')[a2_0xc1298(0x19f)](a2_0xc1298(0x1b3),'Output\x20as\x20JSON\x20Lines')[a2_0xc1298(0x309)](async(_0x276767,_0x4de72a)=>{const _0x2aeb60=a2_0xc1298,_0x2e46a8=new ParentSegmentShowCommand(),_0x17829d=program[_0x2aeb60(0x1e9)](),_0x5a46af=await createTDXInstance(_0x17829d),_0x73073=await _0x2e46a8['run']({'options':{..._0x17829d,..._0x4de72a},'args':_0x276767?[_0x276767]:[],'tdx':_0x5a46af});process[_0x2aeb60(0x339)](_0x73073);}),parentSegmentCmd['command'](a2_0xc1298(0x1a9))[a2_0xc1298(0x236)](a2_0xc1298(0x28f))[a2_0xc1298(0x309)](async(_0x235b01,_0x381d98)=>{const _0x12e61d=a2_0xc1298,_0x5872c6=new UseCommand(),_0xafe69f=program['opts'](),_0x205a1b=_0x235b01?[_0x12e61d(0x312),_0x235b01]:[],_0x3429cf=await _0x5872c6[_0x12e61d(0x1f1)]({'options':{..._0xafe69f,..._0x381d98},'args':_0x205a1b,'tdx':null});process[_0x12e61d(0x339)](_0x3429cf);}),parentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x284))[a2_0xc1298(0x236)](a2_0xc1298(0x15c))[a2_0xc1298(0x186)](a2_0xc1298(0x1fa),a2_0xc1298(0x292))['requiredOption'](a2_0xc1298(0x2dc),'Master\x20table\x20name')['option'](a2_0xc1298(0x21c),'Parent\x20segment\x20description')[a2_0xc1298(0x19f)](a2_0xc1298(0x2b1),a2_0xc1298(0x334))[a2_0xc1298(0x19f)](a2_0xc1298(0x20f),a2_0xc1298(0x14b))[a2_0xc1298(0x19f)]('--timezone\x20<tz>',a2_0xc1298(0x180))[a2_0xc1298(0x19f)](a2_0xc1298(0x16b),a2_0xc1298(0x31c))[a2_0xc1298(0x19f)](a2_0xc1298(0x2fc),a2_0xc1298(0x17d))[a2_0xc1298(0x19f)](a2_0xc1298(0x1c3),a2_0xc1298(0x2ac))[a2_0xc1298(0x19f)]('--behaviors-file\x20<file>',a2_0xc1298(0x2dd))['option'](a2_0xc1298(0x2b4),a2_0xc1298(0x291))['option'](a2_0xc1298(0x223),a2_0xc1298(0x27f))[a2_0xc1298(0x309)](async(_0x1aa54c,_0x4404b4)=>{const _0x178e3c=a2_0xc1298,_0x2c72a0=new ParentSegmentCreateCommand(),_0x51bf8e=program['opts'](),_0x464c05=await createTDXInstance(_0x51bf8e),_0x4a1722=await _0x2c72a0[_0x178e3c(0x1f1)]({'options':{..._0x51bf8e,..._0x4404b4},'args':[_0x1aa54c],'tdx':_0x464c05});process[_0x178e3c(0x339)](_0x4a1722);}),parentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x194))[a2_0xc1298(0x236)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0xc1298(0x19f)](a2_0xc1298(0x21c),a2_0xc1298(0x1e2))[a2_0xc1298(0x19f)](a2_0xc1298(0x2b1),a2_0xc1298(0x318))['option'](a2_0xc1298(0x20f),a2_0xc1298(0x2f8))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ac),'Updated\x20timezone')[a2_0xc1298(0x19f)](a2_0xc1298(0x20b),a2_0xc1298(0x2bb))[a2_0xc1298(0x19f)]('--add-attributes-file\x20<file>','Add\x20attributes\x20from\x20JSON\x20file')['option']('--add-behaviors\x20<json>',a2_0xc1298(0x188))[a2_0xc1298(0x19f)](a2_0xc1298(0x2ff),a2_0xc1298(0x24d))[a2_0xc1298(0x309)](async(_0x10df74,_0x5e6eda)=>{const _0x4781d3=a2_0xc1298,_0x444971=new ParentSegmentUpdateCommand(),_0x1711a1=program[_0x4781d3(0x1e9)](),_0x41f77d=await createTDXInstance(_0x1711a1),_0x3a5fea=await _0x444971[_0x4781d3(0x1f1)]({'options':{..._0x1711a1,..._0x5e6eda},'args':[_0x10df74],'tdx':_0x41f77d});process[_0x4781d3(0x339)](_0x3a5fea);}),folderCmd['command']('create\x20<parent_name>\x20<folder_name>')[a2_0xc1298(0x236)]('Create\x20segment\x20folder')[a2_0xc1298(0x19f)](a2_0xc1298(0x21c),a2_0xc1298(0x205))[a2_0xc1298(0x19f)](a2_0xc1298(0x325),a2_0xc1298(0x22d))[a2_0xc1298(0x309)](async(_0x433b43,_0x212445,_0x45cdcc)=>{const _0x31c870=a2_0xc1298,_0x181009=new SegmentFolderCreateCommand(),_0x4b5f1f=program[_0x31c870(0x1e9)](),_0x249f10=await createTDXInstance(_0x4b5f1f),_0x5b1a6c=await _0x181009[_0x31c870(0x1f1)]({'options':{..._0x4b5f1f,..._0x45cdcc},'args':[_0x433b43,_0x212445],'tdx':_0x249f10});process['exit'](_0x5b1a6c);}),program['command'](a2_0xc1298(0x1ef))[a2_0xc1298(0x236)](a2_0xc1298(0x231))[a2_0xc1298(0x309)](async(_0x1ff301,_0x13f23a)=>{const _0x51bb7c=a2_0xc1298,_0x4a2489=new ActivationsCommand(),_0xb10b0b=program[_0x51bb7c(0x1e9)](),_0x266f67=await createTDXInstance(_0xb10b0b),_0x2583ce=await _0x4a2489[_0x51bb7c(0x1f1)]({'options':{..._0xb10b0b,..._0x13f23a},'args':[_0x1ff301],'tdx':_0x266f67});process['exit'](_0x2583ce);});const workflowCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x199))[a2_0xc1298(0x2eb)]('wf')['description']('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x319))['description'](a2_0xc1298(0x2a8)),wfProjectListAction=async(_0x5ac1c2,_0x3929c1)=>{const _0x3ea8ad=a2_0xc1298,_0x49a256=new WorkflowProjectsCommand(),_0x1b6c6b=program[_0x3ea8ad(0x1e9)](),_0x2b307d=await createTDXInstance(_0x1b6c6b),_0x4fefbf=await _0x49a256[_0x3ea8ad(0x1f1)]({'options':{..._0x1b6c6b,..._0x3929c1},'args':_0x5ac1c2?[_0x5ac1c2]:[],'tdx':_0x2b307d});process[_0x3ea8ad(0x339)](_0x4fefbf);};wfProjectCmd[a2_0xc1298(0x282)](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x142))[a2_0xc1298(0x309)](wfProjectListAction),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2e2))[a2_0xc1298(0x236)](a2_0xc1298(0x16e))[a2_0xc1298(0x309)](wfProjectListAction);const wfWorkflowListAction=async(_0x1e123b,_0xdd778b)=>{const _0x225d74=a2_0xc1298,_0x4e899a=new WorkflowWorkflowsCommand(),_0x7d9928=program[_0x225d74(0x1e9)](),_0x356a61=await createTDXInstance(_0x7d9928),_0x29113a=await _0x4e899a[_0x225d74(0x1f1)]({'options':{..._0x7d9928,..._0xdd778b},'args':_0x1e123b?[_0x1e123b]:[],'tdx':_0x356a61});process['exit'](_0x29113a);};workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1b8))[a2_0xc1298(0x236)](a2_0xc1298(0x204))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2f2))['description']('Workflow\x20session\x20management'),wfSessionListAction=async(_0x2d90d2,_0x1982db)=>{const _0xd389e2=a2_0xc1298,_0x16fdae=new WorkflowSessionsCommand(),_0x1073b9=program[_0xd389e2(0x1e9)](),_0x3f9f4d=await createTDXInstance(_0x1073b9),_0x4b9b4a=await _0x16fdae[_0xd389e2(0x1f1)]({'options':{..._0x1073b9,..._0x1982db},'args':_0x2d90d2?[_0x2d90d2]:[],'tdx':_0x3f9f4d});process[_0xd389e2(0x339)](_0x4b9b4a);};wfSessionCmd[a2_0xc1298(0x282)](a2_0xc1298(0x24a))[a2_0xc1298(0x236)](a2_0xc1298(0x169))['option'](a2_0xc1298(0x311),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0xc1298(0x19f)](a2_0xc1298(0x167),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0xc1298(0x19f)](a2_0xc1298(0x2c0),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0xc1298(0x309)](wfSessionListAction),workflowCmd[a2_0xc1298(0x282)]('sessions\x20[project]')[a2_0xc1298(0x236)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0xc1298(0x19f)]('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0xc1298(0x19f)](a2_0xc1298(0x167),a2_0xc1298(0x2f4))[a2_0xc1298(0x19f)](a2_0xc1298(0x2c0),a2_0xc1298(0x2f5))[a2_0xc1298(0x309)](wfSessionListAction);const wfAttemptListAction=async(_0x265eae,_0x4dc7a9)=>{const _0x273c10=a2_0xc1298,_0x4e5143=new WorkflowAttemptsCommand(),_0x46e1d1=program[_0x273c10(0x1e9)](),_0x1a9ca1=await createTDXInstance(_0x46e1d1),_0x52ba14=await _0x4e5143[_0x273c10(0x1f1)]({'options':{..._0x46e1d1,..._0x4dc7a9},'args':_0x265eae?[_0x265eae]:[],'tdx':_0x1a9ca1});process[_0x273c10(0x339)](_0x52ba14);},attemptCmd=workflowCmd['command']('attempt')[a2_0xc1298(0x236)]('Workflow\x20attempt\x20management')['argument']('[attempt-id]',a2_0xc1298(0x226))[a2_0xc1298(0x197)](a2_0xc1298(0x19b),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0xc1298(0x197)]('[task-name]',a2_0xc1298(0x1c4))['option'](a2_0xc1298(0x2bc),a2_0xc1298(0x209))['option'](a2_0xc1298(0x1bd),a2_0xc1298(0x207))[a2_0xc1298(0x19f)]('--resume-from\x20<task>',a2_0xc1298(0x289))['option'](a2_0xc1298(0x17b),a2_0xc1298(0x268))['option'](a2_0xc1298(0x161),a2_0xc1298(0x212))[a2_0xc1298(0x19f)](a2_0xc1298(0x30b),a2_0xc1298(0x235))[a2_0xc1298(0x309)](async(_0x5d1600,_0x3433ee,_0x273038,_0x3cfe96)=>{const _0x468bda=a2_0xc1298;if(_0x5d1600===_0x468bda(0x24f)){await wfAttemptListAction(_0x3433ee,_0x3cfe96);return;}if(!_0x5d1600){attemptCmd['help']();return;}const _0x52f4e3=program['opts'](),_0x126615=await createTDXInstance(_0x52f4e3);let _0x5b2882=0x0;if(!_0x3433ee){const _0x497aaf=new WorkflowAttemptCommand();_0x5b2882=await _0x497aaf[_0x468bda(0x1f1)]({'options':{..._0x52f4e3,..._0x3cfe96},'args':[_0x5d1600],'tdx':_0x126615});}else{if(_0x3433ee===_0x468bda(0x2cc)){const _0x55c3bf=new WorkflowLogsCommand();_0x5b2882=await _0x55c3bf[_0x468bda(0x1f1)]({'options':{..._0x52f4e3,..._0x3cfe96},'args':_0x273038?[_0x5d1600,_0x273038]:[_0x5d1600],'tdx':_0x126615});}else{if(_0x3433ee==='tasks'){const _0x3cbf9c=new WorkflowTasksCommand();_0x5b2882=await _0x3cbf9c['run']({'options':{..._0x52f4e3,..._0x3cfe96},'args':[_0x5d1600],'tdx':_0x126615});}else{if(_0x3433ee===_0x468bda(0x20e)){const _0x1377c0=new WorkflowKillCommand();_0x5b2882=await _0x1377c0['run']({'options':{..._0x52f4e3,..._0x3cfe96},'args':[_0x5d1600],'tdx':_0x126615});}else{if(_0x3433ee===_0x468bda(0x177)){const _0x3bc855=new WorkflowRetryCommand();_0x5b2882=await _0x3bc855[_0x468bda(0x1f1)]({'options':{..._0x52f4e3,..._0x3cfe96},'args':['attempt:'+_0x5d1600],'tdx':_0x126615});}else console[_0x468bda(0x1a7)](_0x468bda(0x2cf)+_0x3433ee),console[_0x468bda(0x1a7)](_0x468bda(0x1c6)),_0x5b2882=0x1;}}}}process['exit'](_0x5b2882);});attemptCmd[a2_0xc1298(0x282)](a2_0xc1298(0x24a))[a2_0xc1298(0x236)](a2_0xc1298(0x1d8))['option'](a2_0xc1298(0x30b),a2_0xc1298(0x1a8))['action'](wfAttemptListAction),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2a6))[a2_0xc1298(0x236)](a2_0xc1298(0x168))[a2_0xc1298(0x19f)](a2_0xc1298(0x30b),a2_0xc1298(0x1a8))[a2_0xc1298(0x309)](wfAttemptListAction),workflowCmd[a2_0xc1298(0x282)]('retry\x20<session-id>')[a2_0xc1298(0x236)](a2_0xc1298(0x316))[a2_0xc1298(0x19f)](a2_0xc1298(0x323),'Resume\x20from\x20specific\x20task')[a2_0xc1298(0x19f)](a2_0xc1298(0x17b),a2_0xc1298(0x300))[a2_0xc1298(0x309)](async(_0x11216c,_0x36f35b)=>{const _0x2d0a90=a2_0xc1298,_0x34b1a5=new WorkflowRetryCommand(),_0x131af1=program[_0x2d0a90(0x1e9)](),_0x36acbc=await createTDXInstance(_0x131af1),_0x520683=await _0x34b1a5[_0x2d0a90(0x1f1)]({'options':{..._0x131af1,..._0x36f35b},'args':[_0x11216c],'tdx':_0x36acbc});process[_0x2d0a90(0x339)](_0x520683);}),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x269))[a2_0xc1298(0x236)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0xc1298(0x19f)](a2_0xc1298(0x1e5),a2_0xc1298(0x14c),(_0x3143e9,_0x19bdd6=[])=>[..._0x19bdd6,_0x3143e9],[])[a2_0xc1298(0x19f)](a2_0xc1298(0x257),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0xc1298(0x309)](async(_0x4d087f,_0x251adb)=>{const _0x4c98b6=a2_0xc1298,_0x412d3f=new WorkflowRunCommand(),_0x57829d=program[_0x4c98b6(0x1e9)](),_0x5beb74=await createTDXInstance(_0x57829d),_0x18afaa=await _0x412d3f[_0x4c98b6(0x1f1)]({'options':{..._0x57829d,..._0x251adb},'args':[_0x4d087f],'tdx':_0x5beb74});process[_0x4c98b6(0x339)](_0x18afaa);}),workflowCmd['command']('download\x20<project-name>\x20[output-dir]')[a2_0xc1298(0x236)](a2_0xc1298(0x22f))[a2_0xc1298(0x19f)](a2_0xc1298(0x295),a2_0xc1298(0x1a4))[a2_0xc1298(0x309)](async(_0x4b6372,_0x4c3196,_0x2d657a)=>{const _0x13a808=a2_0xc1298,_0xa3433d=new WorkflowDownloadCommand(),_0x9d0fbd=program[_0x13a808(0x1e9)](),_0x8ca401=await createTDXInstance(_0x9d0fbd),_0x56b546=await _0xa3433d[_0x13a808(0x1f1)]({'options':{..._0x9d0fbd,..._0x2d657a},'args':[_0x4b6372,_0x4c3196||'.'],'tdx':_0x8ca401});process[_0x13a808(0x339)](_0x56b546);}),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x281))['description'](a2_0xc1298(0x1a3))[a2_0xc1298(0x19f)]('--name\x20<name>',a2_0xc1298(0x287))['option'](a2_0xc1298(0x295),'Revision\x20name\x20(default:\x20timestamp)')[a2_0xc1298(0x19f)]('--skip-validation',a2_0xc1298(0x1d3))['action'](async(_0x5b1438,_0x25ba40)=>{const _0x239380=a2_0xc1298,_0x7c8fd4=new WorkflowPushCommand(),_0x56f193=program[_0x239380(0x1e9)](),_0x168e86=await createTDXInstance(_0x56f193),_0x315b63=await _0x7c8fd4[_0x239380(0x1f1)]({'options':{..._0x56f193,..._0x25ba40},'args':_0x5b1438?[_0x5b1438]:[],'tdx':_0x168e86});process[_0x239380(0x339)](_0x315b63);}),workflowCmd[a2_0xc1298(0x282)](a2_0xc1298(0x202))[a2_0xc1298(0x236)](a2_0xc1298(0x2c8))[a2_0xc1298(0x309)](async(_0x48762a,_0x12f958)=>{const _0x32a4b1=a2_0xc1298,_0x842828=new WorkflowDeleteCommand(),_0xf96832=program[_0x32a4b1(0x1e9)](),_0x5acc6f=await createTDXInstance(_0xf96832),_0x33ab82=await _0x842828[_0x32a4b1(0x1f1)]({'options':{..._0xf96832,..._0x12f958},'args':[_0x48762a],'tdx':_0x5acc6f});process['exit'](_0x33ab82);});const jobCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x1b0))[a2_0xc1298(0x236)](a2_0xc1298(0x1ae)),jobListAction=async _0x1d1810=>{const _0x23a1da=a2_0xc1298,_0x20089f=new JobListCommand(),_0x63d700=program['opts'](),_0x3bc39c=await createTDXInstance(_0x63d700),_0x5006bc=await _0x20089f[_0x23a1da(0x1f1)]({'options':{..._0x63d700,..._0x1d1810},'args':[],'tdx':_0x3bc39c});process['exit'](_0x5006bc);};jobCmd[a2_0xc1298(0x282)]('list')[a2_0xc1298(0x236)](a2_0xc1298(0x144))[a2_0xc1298(0x19f)](a2_0xc1298(0x311),a2_0xc1298(0x1c7))[a2_0xc1298(0x309)](jobListAction),program[a2_0xc1298(0x282)](a2_0xc1298(0x145),{'hidden':!![]})[a2_0xc1298(0x236)]('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0xc1298(0x19f)](a2_0xc1298(0x311),a2_0xc1298(0x1c7))[a2_0xc1298(0x309)](jobListAction),jobCmd[a2_0xc1298(0x282)]('show\x20<job-id>')[a2_0xc1298(0x236)](a2_0xc1298(0x1e8))[a2_0xc1298(0x309)](async(_0x305d09,_0x252526)=>{const _0xfcc07c=a2_0xc1298,_0x2596fd=new JobShowCommand(),_0x1a624f=program[_0xfcc07c(0x1e9)](),_0x501c90=await createTDXInstance(_0x1a624f),_0x4dfc7b=await _0x2596fd['run']({'options':{..._0x1a624f,..._0x252526},'args':[_0x305d09],'tdx':_0x501c90});process[_0xfcc07c(0x339)](_0x4dfc7b);}),jobCmd['command'](a2_0xc1298(0x2ec))[a2_0xc1298(0x236)](a2_0xc1298(0x2ae))['action'](async(_0x114083,_0x5a9db0)=>{const _0x91e56e=a2_0xc1298,_0x3de846=new JobKillCommand(),_0x1f31f4=program[_0x91e56e(0x1e9)](),_0x404c26=await createTDXInstance(_0x1f31f4),_0x166a2e=await _0x3de846[_0x91e56e(0x1f1)]({'options':{..._0x1f31f4,..._0x5a9db0},'args':[_0x114083],'tdx':_0x404c26});process[_0x91e56e(0x339)](_0x166a2e);}),jobCmd[a2_0xc1298(0x282)]('submit\x20[query]')[a2_0xc1298(0x236)](a2_0xc1298(0x2c3))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ea),a2_0xc1298(0x296),'trino')[a2_0xc1298(0x19f)](a2_0xc1298(0x2a5),a2_0xc1298(0x17f))[a2_0xc1298(0x19f)](a2_0xc1298(0x2db),'Database\x20name\x20(default:\x20information_schema)',a2_0xc1298(0x1c5))['action'](async(_0x284906,_0xc8eb0d)=>{const _0x18cd7d=a2_0xc1298,_0x26a821=new JobSubmitCommand(),_0x16ade7=program[_0x18cd7d(0x1e9)](),_0x446bb4=await createTDXInstance(_0x16ade7),_0x511635=await _0x26a821[_0x18cd7d(0x1f1)]({'options':{..._0x16ade7,..._0xc8eb0d},'args':_0x284906?[_0x284906]:[],'tdx':_0x446bb4});process[_0x18cd7d(0x339)](_0x511635);}),jobCmd['command'](a2_0xc1298(0x277))[a2_0xc1298(0x236)](a2_0xc1298(0x302))[a2_0xc1298(0x309)](async(_0x13cb12,_0x13101f)=>{const _0x212cf0=a2_0xc1298,_0x440c06=new JobResultCommand(),_0x3352fc=program[_0x212cf0(0x1e9)](),_0xcc029=await createTDXInstance(_0x3352fc),_0x1acef6=await _0x440c06['run']({'options':{..._0x3352fc,..._0x13101f},'args':[_0x13cb12],'tdx':_0xcc029});process[_0x212cf0(0x339)](_0x1acef6);});const llmCmd=program[a2_0xc1298(0x282)]('llm')['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command'](a2_0xc1298(0x15e))['description'](a2_0xc1298(0x181))['action'](async(_0x34b222,_0x842478)=>{const _0x586e4f=a2_0xc1298,_0xcaed01=new LLMUseCommand(),_0x2e83a3=program['opts'](),_0xc7c6e1=await createTDXInstance(_0x2e83a3),_0x21de12=await _0xcaed01[_0x586e4f(0x1f1)]({'options':{..._0x2e83a3,..._0x842478},'args':[_0x34b222],'tdx':_0xc7c6e1});process[_0x586e4f(0x339)](_0x21de12);}),llmCmd[a2_0xc1298(0x282)]('models')['description'](a2_0xc1298(0x2cd))[a2_0xc1298(0x309)](async _0x2b8155=>{const _0x376578=a2_0xc1298,_0x290924=new LLMModelsCommand(),_0x28671e=program['opts'](),_0x599657=await createTDXInstance(_0x28671e),_0x5afe23=await _0x290924[_0x376578(0x1f1)]({'options':{..._0x28671e,..._0x2b8155},'args':[],'tdx':_0x599657});process[_0x376578(0x339)](_0x5afe23);});const projectCmd=llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x319))[a2_0xc1298(0x236)](a2_0xc1298(0x155)),llmProjectListAction=async(_0x22519d,_0x4377af)=>{const _0x192a1a=a2_0xc1298,_0x4cce12=new LLMProjectsCommand(),_0x49468f=program[_0x192a1a(0x1e9)](),_0x330596=await createTDXInstance(_0x49468f),_0x127139=await _0x4cce12[_0x192a1a(0x1f1)]({'options':{..._0x49468f,..._0x4377af},'args':_0x22519d?[_0x22519d]:[],'tdx':_0x330596});process[_0x192a1a(0x339)](_0x127139);};projectCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x1f5))[a2_0xc1298(0x309)](llmProjectListAction),llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2e2))['description'](a2_0xc1298(0x153))[a2_0xc1298(0x309)](llmProjectListAction),projectCmd[a2_0xc1298(0x282)](a2_0xc1298(0x284))['description'](a2_0xc1298(0x2e8))['option'](a2_0xc1298(0x21c),a2_0xc1298(0x2d7))['action'](async(_0x11b454,_0x516ec5)=>{const _0x4e0594=a2_0xc1298,_0x42977e=new LLMProjectCreateCommand(),_0x127d94=program['opts'](),_0x56abe6=await createTDXInstance(_0x127d94),_0x301d84=await _0x42977e[_0x4e0594(0x1f1)]({'options':{..._0x127d94,..._0x516ec5},'args':[_0x11b454],'tdx':_0x56abe6});process['exit'](_0x301d84);}),projectCmd['command'](a2_0xc1298(0x2b6))[a2_0xc1298(0x236)]('Delete\x20an\x20LLM\x20project')[a2_0xc1298(0x309)](async(_0x315732,_0x57cdcb)=>{const _0x4f7dc5=a2_0xc1298,_0x26b408=new LLMProjectDeleteCommand(),_0x5f006e=program[_0x4f7dc5(0x1e9)](),_0x4bc950=await createTDXInstance(_0x5f006e),_0xe283f5=await _0x26b408['run']({'options':{..._0x5f006e,..._0x57cdcb},'args':[_0x315732],'tdx':_0x4bc950});process['exit'](_0xe283f5);}),projectCmd[a2_0xc1298(0x282)](a2_0xc1298(0x26c))[a2_0xc1298(0x236)](a2_0xc1298(0x21f))['option'](a2_0xc1298(0x326),a2_0xc1298(0x1cb))[a2_0xc1298(0x19f)](a2_0xc1298(0x25a),a2_0xc1298(0x249))[a2_0xc1298(0x309)](async(_0x23c185,_0x111952)=>{const _0x4efb52=a2_0xc1298,_0x546bd0=new LLMProjectBackupCommand(),_0x17b7ba=program[_0x4efb52(0x1e9)](),_0x363348=await createTDXInstance(_0x17b7ba),_0x3ae288=await _0x546bd0[_0x4efb52(0x1f1)]({'options':{..._0x17b7ba,..._0x111952},'args':[_0x23c185],'tdx':_0x363348});process[_0x4efb52(0x339)](_0x3ae288);}),projectCmd[a2_0xc1298(0x282)]('restore\x20<folder>')[a2_0xc1298(0x236)](a2_0xc1298(0x2ee))[a2_0xc1298(0x19f)](a2_0xc1298(0x33e),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')['option']('--dry-run',a2_0xc1298(0x260))['action'](async(_0x550e5d,_0x4ff9fe)=>{const _0x28da68=a2_0xc1298,_0x2ae352=new LLMProjectRestoreCommand(),_0x413753=program[_0x28da68(0x1e9)](),_0x187742=await createTDXInstance(_0x413753),_0xbff560=await _0x2ae352[_0x28da68(0x1f1)]({'options':{..._0x413753,..._0x4ff9fe},'args':[_0x550e5d],'tdx':_0x187742});process[_0x28da68(0x339)](_0xbff560);});const agentCmd=llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2df))[a2_0xc1298(0x236)](a2_0xc1298(0x217)),llmAgentListAction=async(_0x1dd7b0,_0x5b3188)=>{const _0x4adde9=a2_0xc1298,_0xbedc76=new LLMAgentsCommand(),_0x5cdca2=program[_0x4adde9(0x1e9)](),_0x40b7a0=await createTDXInstance(_0x5cdca2),_0x4c064b=await _0xbedc76[_0x4adde9(0x1f1)]({'options':{..._0x5cdca2,..._0x5b3188},'args':_0x1dd7b0?[_0x1dd7b0]:[],'tdx':_0x40b7a0});process[_0x4adde9(0x339)](_0x4c064b);};function a2_0xb95d(){const _0x503880=['--agent\x20<ref>','Workflow\x20project\x20management','Commands:','--limit\x20<n>','List\x20all\x20available\x20profiles','Behaviors\x20as\x20JSON\x20string','name','Kill\x20a\x20job','Table\x20management\x20commands','Email\x20template\x20management','--schedule-type\x20<type>','--name\x20<name>','--new','--customer-group\x20<json>','Update\x20an\x20email\x20template','delete\x20<name>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','list\x20[path]','includes','--email-sender-id\x20<id>','Add\x20attributes\x20as\x20JSON\x20string','--include-subtasks','Parent\x20segment\x20management','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20only\x20master\x20table\x20validation','--to\x20<timestamp>','Interactive\x20chat\x20selector','Run\x20Trino\x20query\x20with\x20streaming\x20results','Submit\x20a\x20job','Filtering\x20rule\x20as\x20JSON\x20string','Trino\x20catalog\x20(default:\x20td)','auth','Delete\x20a\x20workspace','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','pwd','1106565WlTNhq','--format\x20<format>','logs','List\x20available\x20LLM\x20models','preview\x20[file]','Unknown\x20action:\x20','push\x20[name]','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--yes','status','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--timeout\x20<seconds>','version','Project\x20description','--prompt\x20<text>','aliases','createAsync','--database\x20<name>','--table\x20<table>','Behaviors\x20from\x20JSON\x20file','fields\x20[parent_name]','agent','Update\x20an\x20existing\x20agent','Show\x20master\x20table\x20sample\x20data','projects\x20[pattern]','--workspace\x20<name>','logLevel','51079XjrYhx','preAction','18668fGbdfo','Create\x20a\x20new\x20LLM\x20project','Skip\x20confirmation\x20prompt','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','alias','kill\x20<job-id>','describe','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','site','Output\x20as\x20JSON\x20Lines','--llm-project\x20<name>','session','replace','Start\x20time\x20filter\x20(ISO\x208601\x20format)','End\x20time\x20filter\x20(ISO\x208601\x20format)','validate\x20[name]','port','Updated\x20schedule\x20option','--version','parents\x20[pattern]','--rule\x20<json>','--attributes-file\x20<file>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Agent\x20description','--add-behaviors-file\x20<file>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','DEBUG','Get\x20job\x20results','Update\x20a\x20campaign','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--enriched','INFO','--html\x20<html>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','action','Delete\x20an\x20agent','--include-retried','--color','forEach','tables\x20[pattern]','--subject\x20<subject>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--status\x20<status>','parent_segment','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','commandUsage','--type\x20<type>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','update\x20<segment_name>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','project','--description\x20<desc>','Agent\x20reference\x20(project-name/agent-name)','Attributes\x20as\x20JSON\x20string','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','230JDsKlX','Make\x20segment\x20invisible\x20(default:\x20visible)','databases\x20[pattern]','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Save\x20output\x20to\x20file','--from-task\x20<task>','desc','--parent-folder\x20<name>','-o,\x20--output\x20<folder>','-y,\x20--yes','--segment\x20<path>','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Delete\x20a\x20campaign','--json-columns\x20<cols>','segments\x20[path]','Output\x20as\x20JSON','TRACE','Parent\x20segment\x20(audience)\x20management','addHelpText','Filtering\x20rule\x20from\x20JSON\x20file','sonnet','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','allowExcessArguments','--in\x20<database>','System\x20prompt/instructions\x20(default:\x20empty)','Workspace\x20name','exit','Usage:\x20','10230PIKaQw','4000','46924IXDPlz','--name\x20<new-name>','join','chats','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','catch','List\x20jobs','jobs','--folder\x20<name>','--model\x20<name>','Agent\x20prompt/instructions','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Workflow\x20parameter\x20(repeatable)','noColor','configureHelp','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','--max-tool-iterations\x20<n>','--invisible','CDP\x20segment\x20management\x20commands','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','LLM\x20project\x20management','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Enable\x20verbose\x20logging','list\x20[pattern]','Plaintext\x20template\x20content','profile','Editor\x20type','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Create\x20a\x20new\x20agent\x20in\x20current\x20project','use\x20<project-name>','parse','Template\x20name','--force','info\x20[segment_name]','claude\x20[args...]','732inbvng','slice','show\x20<name-or-id>','--from\x20<timestamp>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--site\x20<site>','--attributes\x20<json>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','context','statusline','delete\x20<name-or-id>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--data\x20<data>','--full','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','New\x20segment\x20name','retry','debug','Create\x20an\x20email\x20template','Show\x20the\x20most\x20recent\x20chat','--params\x20<json>','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','Attributes\x20from\x20JSON\x20file','\x20-\x20built\x20','Read\x20query\x20from\x20file','Timezone\x20(e.g.,\x20America/Los_Angeles)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Campaign\x20management','Create\x20a\x20new\x20campaign','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','--parent-segment\x20<name>','requiredOption','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Add\x20behaviors\x20as\x20JSON\x20string','-X,\x20--method\x20<method>','subcommandDescription','--limit\x20<number>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--limit\x20<rows>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','fields\x20[name]','--editor-type\x20<type>','show\x20<agent-name>','registeredArguments','update\x20<name>','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','argument','push\x20[file]','workflow','../package.json','[action]','--name\x20<new_name>','isTTY','apiKey','option','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Remove\x20API\x20key\x20from\x20system\x20keychain','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','chat\x20[message...]','Read\x20SQL\x20query\x20from\x20file','error','Include\x20retried\x20attempts','use\x20[name]','--json','show\x20<folder_ref>','--timezone\x20<tz>','--project\x20<name>','Job\x20management\x20commands','json','job','--behavior\x20[name]','tsv','--jsonl','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','gitRevision','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','workflows\x20[project]','--starter-message\x20<text>','Setup\x20API\x20key\x20authentication\x20interactively','--port\x20<number>','15432bvURoL','--reason\x20<text>','-v,\x20--verbose','Output\x20file\x20path\x20(default:\x20<name>.yml)','stdout','query\x20[sql]','then','--behaviors\x20<json>','Task\x20name\x20for\x20logs\x20action','information_schema','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','run\x20[name]','-d,\x20--database\x20<database>','Output\x20folder\x20(default:\x20{project_name}.llm)','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Workspace\x20description','tdx\x20','template','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Skip\x20validation\x20of\x20.dig\x20files','\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','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','usage','--start-at\x20<datetime>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','get','engage','outputHelp','campaigns\x20[pattern]','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--temperature\x20<n>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','repeat','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Updated\x20description','folders\x20<parent_name>','Campaign\x20description','--param\x20<key=value>','Campaign\x20type\x20(email\x20or\x20push)','update\x20<agent-name>','Show\x20job\x20details','opts','--job-type\x20<type>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--in\x20<name>','clear','-d,\x20--database\x20<name>','activations\x20<segment_name>','0.7','run','--trace','Move\x20to\x20folder','Create\x20a\x20workspace','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','buildTime','--no-color','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--database\x20<db>','pause\x20<name-or-id>','argv','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','delete\x20<agent-name>','--system-prompt\x20<text>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','delete\x20<project-name-or-id>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Folder\x20description','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Reason\x20for\x20killing\x20the\x20attempt','sql\x20[segment_name]','Include\x20subtasks\x20in\x20tasks\x20output','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--add-attributes\x20<json>','Workspace\x20name\x20(required)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','kill','--schedule-option\x20<value>','api\x20[endpoint]','summary','Force\x20retry\x20even\x20if\x20not\x20failed','build-info.json','Authentication\x20management','AI-native\x20CLI\x20for\x20Treasure\x20Data','show\x20[name]','LLM\x20agent\x20management','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','database','Preview\x20operation\x20without\x20executing','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--description\x20<text>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','--interval\x20<range>','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','filter','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--customer-group-file\x20<file>','commandDescription','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Attempt\x20ID','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','optionDescription','--attribute\x20[name]','8MKfSzZ','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','workspaces\x20[pattern]','Parent\x20folder\x20name\x20for\x20nested\x20folders','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','segment','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','stderr','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Database\x20to\x20use\x20(overrides\x20context)','Include\x20retried\x20attempts\x20(for\x20list)','description','--tsv','--catalog\x20<catalog>','Open\x20parent\x20segment\x20in\x20web\x20browser','describe\x20[table]','Starter\x20message','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Show\x20segment\x20schema\x20(column\x20types)','Duplicate\x20a\x20campaign','create','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','folder','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','update\x20<name-or-id>','allowUnknownOption','hook','--master','history\x20[chat-id]','launch\x20<name-or-id>','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','list\x20[project]','Set\x20operation\x20timeout\x20in\x20seconds','agents\x20[pattern]','Add\x20behaviors\x20from\x20JSON\x20file','commands','list','Email\x20subject\x20template','us01','Model\x20name\x20(default:\x20claude-4.5-sonnet)','Database\x20to\x20query\x20(default:\x20information_schema)','parent-segment','Resume\x20a\x20paused\x20campaign','trace','--session-time\x20<time>','-r,\x20--recursive','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','--dry-run','.dev','jsonl','length','-H,\x20--header\x20<header>','--rule-file\x20<file>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','\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','--plaintext\x20<text>','--last','--max-depth\x20<depth>','subcommandTerm','Maximum\x20recursion\x20depth\x20(default:\x2010)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','run\x20<workflow>','format','after','backup\x20<name>','profiles','--kind\x20<type>','hidden','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','push','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','tdx','Launch\x20a\x20campaign','claude-4.5-sonnet','550cJHxEI','result\x20<job-id>','-1d','--clear','--output\x20<file>','109tbfiRN','duplicate\x20<name-or-id>','Delete\x20an\x20email\x20template','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Customer\x20group\x20from\x20JSON\x20file','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','push\x20[project-name-or-dir]','command','sql\x20[name]','create\x20<name>','-o,\x20--output\x20<file>','-w,\x20--web','Override\x20project\x20name','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Resume\x20from\x20specific\x20task\x20(retry)','Show\x20workspace\x20details','-p,\x20--profile\x20<name>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','pull\x20[name]','HTML\x20template\x20content','Set\x20or\x20show\x20parent\x20segment\x20context','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Customer\x20group\x20as\x20JSON\x20string','Master\x20database\x20name','--agent\x20<name>','map','--revision\x20<revision>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','workspace','--name\x20<text>',',\x20version\x20','desc\x20[name]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','1010025yxGSVb','Set\x20current\x20segment/folder\x20context\x20for\x20navigation','resume\x20<name-or-id>','Email\x20sender\x20ID\x20for\x20delivery','--type\x20<api_type>','Limit\x20number\x20of\x20rows','--session\x20<id>','Options:','171120ymUMZN','-f,\x20--file\x20<path>','attempts\x20[project]'];a2_0xb95d=function(){return _0x503880;};return a2_0xb95d();}agentCmd[a2_0xc1298(0x282)]('list\x20[pattern]')[a2_0xc1298(0x236)](a2_0xc1298(0x1d0))[a2_0xc1298(0x309)](llmAgentListAction),llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x24c))[a2_0xc1298(0x236)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0xc1298(0x309)](llmAgentListAction),agentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x192))[a2_0xc1298(0x236)]('Show\x20agent\x20details')[a2_0xc1298(0x309)](async(_0x542673,_0x31b3ce)=>{const _0xdd8317=a2_0xc1298,_0x46375e=new LLMAgentShowCommand(),_0x3ca470=program[_0xdd8317(0x1e9)](),_0x5b400c=await createTDXInstance(_0x3ca470),_0xd0d04f=await _0x46375e[_0xdd8317(0x1f1)]({'options':{..._0x3ca470,..._0x31b3ce},'args':[_0x542673],'tdx':_0x5b400c});process[_0xdd8317(0x339)](_0xd0d04f);}),agentCmd[a2_0xc1298(0x282)]('create\x20<name>')[a2_0xc1298(0x236)](a2_0xc1298(0x15d))['option'](a2_0xc1298(0x200),a2_0xc1298(0x337))[a2_0xc1298(0x19f)](a2_0xc1298(0x147),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0xc1298(0x275))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b9),a2_0xc1298(0x23b))[a2_0xc1298(0x19f)](a2_0xc1298(0x150),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')['option'](a2_0xc1298(0x1de),a2_0xc1298(0x1e1),a2_0xc1298(0x1f0))[a2_0xc1298(0x309)](async(_0x13ce8f,_0x17421a)=>{const _0x1ab9c2=a2_0xc1298,_0x7f250e=new LLMAgentCreateCommand(),_0x27b2fa=program[_0x1ab9c2(0x1e9)](),_0xcd05f6=await createTDXInstance(_0x27b2fa),_0x33618d=await _0x7f250e[_0x1ab9c2(0x1f1)]({'options':{..._0x27b2fa,..._0x17421a},'args':[_0x13ce8f],'tdx':_0xcd05f6});process[_0x1ab9c2(0x339)](_0x33618d);}),agentCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1e7))[a2_0xc1298(0x236)](a2_0xc1298(0x2e0))[a2_0xc1298(0x19f)](a2_0xc1298(0x298),'Agent\x20name')['option'](a2_0xc1298(0x2d8),a2_0xc1298(0x148))[a2_0xc1298(0x19f)](a2_0xc1298(0x21c),a2_0xc1298(0x2fe))[a2_0xc1298(0x19f)](a2_0xc1298(0x1b9),a2_0xc1298(0x23b))[a2_0xc1298(0x309)](async(_0x5a9ebb,_0x4ecc4f)=>{const _0x5764ae=a2_0xc1298,_0xd97a45=new LLMAgentUpdateCommand(),_0x183f6e=program['opts'](),_0x4edd3f=await createTDXInstance(_0x183f6e),_0x562b8d=await _0xd97a45[_0x5764ae(0x1f1)]({'options':{..._0x183f6e,..._0x4ecc4f},'args':[_0x5a9ebb],'tdx':_0x4edd3f});process[_0x5764ae(0x339)](_0x562b8d);}),agentCmd['command'](a2_0xc1298(0x1ff))['description'](a2_0xc1298(0x30a))['action'](async(_0x3b2767,_0x24511a)=>{const _0x2af6a8=a2_0xc1298,_0x1887cb=new LLMAgentDeleteCommand(),_0x31a2ab=program[_0x2af6a8(0x1e9)](),_0x230ad1=await createTDXInstance(_0x31a2ab),_0x44de54=await _0x1887cb[_0x2af6a8(0x1f1)]({'options':{..._0x31a2ab,..._0x24511a},'args':[_0x3b2767],'tdx':_0x230ad1});process[_0x2af6a8(0x339)](_0x44de54);}),llmCmd[a2_0xc1298(0x282)](a2_0xc1298(0x247))['description'](a2_0xc1298(0x304))[a2_0xc1298(0x19f)](a2_0xc1298(0x263),a2_0xc1298(0x240))[a2_0xc1298(0x309)](async(_0x145d13,_0x3d748e)=>{const _0x42e194=a2_0xc1298,_0x4be4d0=new LLMHistoryCommand(),_0xbad19f=program['opts'](),_0x2d997d=await createTDXInstance(_0xbad19f),_0x1290a8=await _0x4be4d0[_0x42e194(0x1f1)]({'options':{..._0xbad19f,..._0x3d748e},'args':_0x145d13?[_0x145d13]:[],'tdx':_0x2d997d});process[_0x42e194(0x339)](_0x1290a8);}),llmCmd[a2_0xc1298(0x282)]('proxy')['description'](a2_0xc1298(0x1b4))[a2_0xc1298(0x19f)](a2_0xc1298(0x1bb),a2_0xc1298(0x2d1),a2_0xc1298(0x33c))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ad),a2_0xc1298(0x172))['option'](a2_0xc1298(0x293),a2_0xc1298(0x20d))[a2_0xc1298(0x309)](async _0x1d3526=>{const _0x3b9109=a2_0xc1298,_0x5b0706=new LLMProxyCommand(),_0x365eaf=program[_0x3b9109(0x1e9)](),_0x10efe3=await createTDXInstance(_0x365eaf),_0x345fb2={..._0x1d3526,'port':_0x1d3526[_0x3b9109(0x2f7)]?parseInt(_0x1d3526['port'],0xa):undefined},_0x417f3e=await _0x5b0706[_0x3b9109(0x1f1)]({'options':{..._0x365eaf,..._0x345fb2},'args':[],'tdx':_0x10efe3});process[_0x3b9109(0x339)](_0x417f3e);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x163))['description'](a2_0xc1298(0x203))[a2_0xc1298(0x19f)]('--model\x20<name>',a2_0xc1298(0x280),a2_0xc1298(0x332))[a2_0xc1298(0x19f)]('--no-proxy',a2_0xc1298(0x2ea))[a2_0xc1298(0x244)]()[a2_0xc1298(0x335)](!![])[a2_0xc1298(0x330)]('after','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20--\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20previous\x20Claude\x20Code\x20session\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0xc1298(0x309)](async(_0x682a76,_0xe5ea81)=>{const _0x5af1d1=a2_0xc1298,_0x147152=program[_0x5af1d1(0x1e9)](),_0x361f95=Array['isArray'](_0x682a76)?_0x682a76:[];if(_0x361f95[0x0]===_0x5af1d1(0x170)){const _0x310b8c=new ClaudeStatuslineCommand(),_0x39248f=await _0x310b8c[_0x5af1d1(0x1f1)]({'options':{..._0x147152,..._0xe5ea81},'args':_0x361f95[_0x5af1d1(0x165)](0x1),'tdx':null});process['exit'](_0x39248f);}if(_0x361f95[0x0]===_0x5af1d1(0x1d6)){const _0x5331a8=new ClaudeUsageCommand(),_0x5e023e=await _0x5331a8[_0x5af1d1(0x1f1)]({'options':{..._0x147152,..._0xe5ea81},'args':_0x361f95[_0x5af1d1(0x165)](0x1),'tdx':null});process[_0x5af1d1(0x339)](_0x5e023e);}const _0x45c5e6=new ClaudeCommand(),_0xae522f=await createTDXInstance(_0x147152),_0x1b6282=await _0x45c5e6['run']({'options':{..._0x147152,..._0xe5ea81},'args':_0x361f95,'tdx':_0xae522f});process[_0x5af1d1(0x339)](_0x1b6282);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x16f))[a2_0xc1298(0x236)](a2_0xc1298(0x18e))[a2_0xc1298(0x19f)](a2_0xc1298(0x279),'Clear\x20session\x20context')[a2_0xc1298(0x309)](async _0x4d78a=>{const _0x2a0808=a2_0xc1298,_0x281043=new ContextCommand(),_0x2e2621=program['opts'](),_0x1f8f51=await _0x281043['run']({'options':{..._0x2e2621,..._0x4d78a},'args':[],'tdx':null});process[_0x2a0808(0x339)](_0x1f8f51);}),program[a2_0xc1298(0x282)]('use\x20[resource]\x20[value]')['description'](a2_0xc1298(0x221))[a2_0xc1298(0x19f)](a2_0xc1298(0x279),'Clear\x20session\x20context')['action'](async(_0x33c0a2,_0x39f0ea,_0x2de480)=>{const _0x244323=a2_0xc1298,_0x1bae16=new UseCommand(),_0x44986b=program[_0x244323(0x1e9)](),_0x310c35=[];if(_0x33c0a2)_0x310c35[_0x244323(0x271)](_0x33c0a2);if(_0x39f0ea)_0x310c35[_0x244323(0x271)](_0x39f0ea);const _0x52f201=await _0x1bae16['run']({'options':{..._0x44986b,..._0x2de480},'args':_0x310c35,'tdx':null});process['exit'](_0x52f201);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x141))[a2_0xc1298(0x236)](a2_0xc1298(0x2c1))[a2_0xc1298(0x19f)]('--last',a2_0xc1298(0x17a))[a2_0xc1298(0x309)](async _0x41d17d=>{const _0x255319=a2_0xc1298,_0x188aec=new ChatsCommand(),_0x21b762=program['opts'](),_0x412972=await createTDXInstance(_0x21b762),_0x2f6938=await _0x188aec['run']({'options':{..._0x21b762,..._0x41d17d},'args':[],'tdx':_0x412972});process[_0x255319(0x339)](_0x2f6938);});const authCmd=program['command'](a2_0xc1298(0x2c6))[a2_0xc1298(0x236)](a2_0xc1298(0x214));async function runAuthStatusCommand(_0x40dff2){const _0x29d4f3=a2_0xc1298,_0x31bf28=new AuthStatusCommand(),_0x1d7fb6=program['opts'](),_0x345033=await createTDXInstance(_0x1d7fb6),_0x552baa=await _0x31bf28[_0x29d4f3(0x1f1)]({'options':{..._0x1d7fb6,..._0x40dff2},'args':[],'tdx':_0x345033});process['exit'](_0x552baa);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0xc1298(0x282)](a2_0xc1298(0x2d3))[a2_0xc1298(0x236)](a2_0xc1298(0x27e))['action'](runAuthStatusCommand),authCmd[a2_0xc1298(0x282)]('setup')[a2_0xc1298(0x236)](a2_0xc1298(0x1ba))['addHelpText'](a2_0xc1298(0x26b),a2_0xc1298(0x261))['action'](async _0x39b20f=>{const _0x577d29=a2_0xc1298,_0x25e610=new AuthSetupCommand(),_0x8ab107=program[_0x577d29(0x1e9)](),_0x4fe90d=await createTDXInstance(_0x8ab107),_0xa3b6c=await _0x25e610[_0x577d29(0x1f1)]({'options':{..._0x8ab107,..._0x39b20f},'args':[],'tdx':_0x4fe90d});process[_0x577d29(0x339)](_0xa3b6c);}),authCmd['command'](a2_0xc1298(0x1ed))[a2_0xc1298(0x236)](a2_0xc1298(0x1a2))['addHelpText']('after','\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_0xc1298(0x309)](async _0x28382f=>{const _0x3be97b=a2_0xc1298,_0x2e9165=new AuthClearCommand(),_0x1d1408=program[_0x3be97b(0x1e9)](),_0x21a0c4=await _0x2e9165[_0x3be97b(0x1f1)]({'options':{..._0x1d1408,..._0x28382f},'args':[],'tdx':null});process['exit'](_0x21a0c4);}),program[a2_0xc1298(0x282)](a2_0xc1298(0x26d))[a2_0xc1298(0x236)](a2_0xc1298(0x2ab))['action'](async _0x27e383=>{const _0x450243=a2_0xc1298,_0x5d0de8=new ProfilesCommand(),_0x4d8849=program[_0x450243(0x1e9)](),_0x5e5809=await _0x5d0de8[_0x450243(0x1f1)]({'options':{..._0x4d8849,..._0x27e383},'args':[],'tdx':null});process[_0x450243(0x339)](_0x5e5809);});const engageCmd=program[a2_0xc1298(0x282)](a2_0xc1298(0x1da))['description'](a2_0xc1298(0x149)),createEngageAction=_0x923355=>{return async(_0x1b6606,_0x1bccbc)=>{const _0x18c081=a2_0x13b8,_0x323ee7=new _0x923355(),_0x5acfe2=program[_0x18c081(0x1e9)](),_0x17a3b7=await createTDXInstance(_0x5acfe2),_0x5df078=await _0x323ee7[_0x18c081(0x1f1)]({'options':{..._0x5acfe2,..._0x1bccbc},'args':[_0x1b6606],'tdx':_0x17a3b7});process[_0x18c081(0x339)](_0x5df078);};},createEngageNoArgAction=_0x242538=>{return async _0x183324=>{const _0x3248da=a2_0x13b8,_0x2109d9=new _0x242538(),_0x290eba=program[_0x3248da(0x1e9)](),_0x3822d7=await createTDXInstance(_0x290eba),_0x438cca=await _0x2109d9['run']({'options':{..._0x290eba,..._0x183324},'args':[],'tdx':_0x3822d7});process['exit'](_0x438cca);};},campaignCmd=engageCmd[a2_0xc1298(0x282)]('campaign')[a2_0xc1298(0x236)](a2_0xc1298(0x182)),campaignListAction=async(_0x319cd9,_0x495cee)=>{const _0xa8496d=a2_0xc1298,_0x10dfe9=new EngageCampaignsCommand(),_0x21fb0e=program['opts'](),_0x46bc27=await createTDXInstance(_0x21fb0e),_0x2e55ec=await _0x10dfe9[_0xa8496d(0x1f1)]({'options':{..._0x21fb0e,..._0x495cee},'args':_0x319cd9?[_0x319cd9]:[],'tdx':_0x46bc27});process[_0xa8496d(0x339)](_0x2e55ec);};campaignCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x14f))['option'](a2_0xc1298(0x315),a2_0xc1298(0x308))[a2_0xc1298(0x19f)]('--status\x20<status>',a2_0xc1298(0x1cc))['option'](a2_0xc1298(0x2e3),a2_0xc1298(0x338))[a2_0xc1298(0x309)](campaignListAction),engageCmd['command'](a2_0xc1298(0x1dc))[a2_0xc1298(0x236)](a2_0xc1298(0x310))[a2_0xc1298(0x19f)](a2_0xc1298(0x315),a2_0xc1298(0x308))[a2_0xc1298(0x19f)](a2_0xc1298(0x311),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x338))[a2_0xc1298(0x309)](campaignListAction),campaignCmd[a2_0xc1298(0x282)]('show\x20<name-or-id>')['description']('Show\x20campaign\x20details')['option'](a2_0xc1298(0x2e3),'Workspace\x20name')[a2_0xc1298(0x19f)](a2_0xc1298(0x174),a2_0xc1298(0x1a1))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0xc1298(0x282)](a2_0xc1298(0x23f))[a2_0xc1298(0x236)](a2_0xc1298(0x183))[a2_0xc1298(0x186)](a2_0xc1298(0x2b2),'Campaign\x20name')[a2_0xc1298(0x186)](a2_0xc1298(0x315),a2_0xc1298(0x1e6))['option'](a2_0xc1298(0x2e3),a2_0xc1298(0x20c))[a2_0xc1298(0x19f)]('--description\x20<desc>',a2_0xc1298(0x1e4))[a2_0xc1298(0x19f)](a2_0xc1298(0x328),a2_0xc1298(0x2d4))[a2_0xc1298(0x19f)](a2_0xc1298(0x2ba),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0xc1298(0x19f)](a2_0xc1298(0x32b),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0xc1298(0x19f)](a2_0xc1298(0x1d7),a2_0xc1298(0x1eb))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ac),a2_0xc1298(0x16d))[a2_0xc1298(0x309)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0xc1298(0x282)](a2_0xc1298(0x243))[a2_0xc1298(0x236)](a2_0xc1298(0x303))['option'](a2_0xc1298(0x2e3),a2_0xc1298(0x338))['option'](a2_0xc1298(0x2b2),'New\x20campaign\x20name')[a2_0xc1298(0x19f)](a2_0xc1298(0x31a),a2_0xc1298(0x1e4))[a2_0xc1298(0x19f)](a2_0xc1298(0x328),a2_0xc1298(0x2d4))[a2_0xc1298(0x19f)]('--email-sender-id\x20<id>',a2_0xc1298(0x29f))[a2_0xc1298(0x19f)](a2_0xc1298(0x32b),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0xc1298(0x19f)]('--start-at\x20<datetime>',a2_0xc1298(0x1eb))[a2_0xc1298(0x19f)](a2_0xc1298(0x1ac),a2_0xc1298(0x16d))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0xc1298(0x282)]('delete\x20<name-or-id>')['description'](a2_0xc1298(0x32a))[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x338))['option'](a2_0xc1298(0x2d2),a2_0xc1298(0x2e9))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0xc1298(0x248))[a2_0xc1298(0x236)](a2_0xc1298(0x274))[a2_0xc1298(0x19f)]('--workspace\x20<name>',a2_0xc1298(0x338))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0xc1298(0x1fb))[a2_0xc1298(0x236)]('Pause\x20a\x20campaign')[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),'Workspace\x20name')[a2_0xc1298(0x309)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0xc1298(0x282)](a2_0xc1298(0x29e))[a2_0xc1298(0x236)](a2_0xc1298(0x255))[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x338))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0xc1298(0x27c))[a2_0xc1298(0x236)](a2_0xc1298(0x23e))[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x338))[a2_0xc1298(0x309)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0xc1298(0x282)](a2_0xc1298(0x1cf))['description'](a2_0xc1298(0x2b0)),templateListAction=async(_0x129815,_0x2f221e)=>{const _0x1af050=a2_0xc1298,_0x271c96=new EngageTemplatesCommand(),_0x119661=program['opts'](),_0x5ba4bf=await createTDXInstance(_0x119661),_0x235d8f=await _0x271c96['run']({'options':{..._0x119661,..._0x2f221e},'args':_0x129815?[_0x129815]:[],'tdx':_0x5ba4bf});process[_0x1af050(0x339)](_0x235d8f);};templateCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)](a2_0xc1298(0x2be))[a2_0xc1298(0x19f)]('--workspace\x20<name>','Workspace\x20name')[a2_0xc1298(0x309)](templateListAction),engageCmd['command']('templates\x20[pattern]')[a2_0xc1298(0x236)](a2_0xc1298(0x227))['option']('--workspace\x20<name>','Workspace\x20name')['action'](templateListAction),templateCmd['command'](a2_0xc1298(0x166))['description']('Show\x20email\x20template\x20details')[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),'Workspace\x20name')[a2_0xc1298(0x19f)](a2_0xc1298(0x174),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0xc1298(0x282)](a2_0xc1298(0x23f))['description'](a2_0xc1298(0x179))[a2_0xc1298(0x186)](a2_0xc1298(0x2b2),a2_0xc1298(0x160))[a2_0xc1298(0x186)](a2_0xc1298(0x30f),a2_0xc1298(0x250))[a2_0xc1298(0x186)](a2_0xc1298(0x307),'HTML\x20template\x20content')[a2_0xc1298(0x19f)](a2_0xc1298(0x2e3),a2_0xc1298(0x20c))[a2_0xc1298(0x19f)]('--plaintext\x20<text>','Plaintext\x20template\x20content')[a2_0xc1298(0x19f)](a2_0xc1298(0x191),a2_0xc1298(0x15b))[a2_0xc1298(0x309)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0xc1298(0x282)]('update\x20<name-or-id>')[a2_0xc1298(0x236)](a2_0xc1298(0x2b5))[a2_0xc1298(0x19f)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0xc1298(0x2b2),'New\x20template\x20name')['option']('--subject\x20<subject>',a2_0xc1298(0x250))[a2_0xc1298(0x19f)](a2_0xc1298(0x307),a2_0xc1298(0x28e))[a2_0xc1298(0x19f)](a2_0xc1298(0x262),a2_0xc1298(0x159))[a2_0xc1298(0x309)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0xc1298(0x171))[a2_0xc1298(0x236)](a2_0xc1298(0x27d))['option'](a2_0xc1298(0x2e3),'Workspace\x20name')[a2_0xc1298(0x19f)]('--yes',a2_0xc1298(0x2e9))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0xc1298(0x282)](a2_0xc1298(0x297))['description']('Workspace\x20management'),workspaceListAction=async(_0x31b7b8,_0x4bb8c5)=>{const _0x41a5b7=a2_0xc1298,_0x1bac79=new EngageWorkspacesCommand(),_0x2b68d0=program[_0x41a5b7(0x1e9)](),_0x19757c=await createTDXInstance(_0x2b68d0),_0x5544f5=await _0x1bac79[_0x41a5b7(0x1f1)]({'options':{..._0x2b68d0,..._0x4bb8c5},'args':_0x31b7b8?[_0x31b7b8]:[],'tdx':_0x19757c});process[_0x41a5b7(0x339)](_0x5544f5);};workspaceCmd['command'](a2_0xc1298(0x158))[a2_0xc1298(0x236)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0xc1298(0x309)](workspaceListAction),engageCmd['command'](a2_0xc1298(0x22c))[a2_0xc1298(0x236)](a2_0xc1298(0x18f))[a2_0xc1298(0x309)](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0xc1298(0x236)](a2_0xc1298(0x28a))[a2_0xc1298(0x19f)](a2_0xc1298(0x174),a2_0xc1298(0x1a1))[a2_0xc1298(0x309)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0xc1298(0x282)](a2_0xc1298(0x23f))['description'](a2_0xc1298(0x1f4))['requiredOption'](a2_0xc1298(0x2b2),a2_0xc1298(0x338))[a2_0xc1298(0x19f)](a2_0xc1298(0x31a),a2_0xc1298(0x1cd))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0xc1298(0x282)]('update\x20<name-or-id>')[a2_0xc1298(0x236)]('Update\x20a\x20workspace')[a2_0xc1298(0x19f)](a2_0xc1298(0x2b2),'New\x20workspace\x20name')[a2_0xc1298(0x19f)]('--description\x20<desc>',a2_0xc1298(0x1cd))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0xc1298(0x282)](a2_0xc1298(0x171))[a2_0xc1298(0x236)](a2_0xc1298(0x2c7))[a2_0xc1298(0x19f)]('--yes','Skip\x20confirmation\x20prompt')[a2_0xc1298(0x309)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0xc1298(0x282)]('use\x20<name>')[a2_0xc1298(0x236)](a2_0xc1298(0x259))['action'](createEngageAction(EngageWorkspaceUseCommand));export{program};export function runCLI(){const _0x278d81=a2_0xc1298;program[_0x278d81(0x15f)](process[_0x278d81(0x1fc)]);!process[_0x278d81(0x1fc)]['slice'](0x2)[_0x278d81(0x25d)]&&program[_0x278d81(0x1db)]();const _0x4cca79=packageJson[_0x278d81(0x2d6)];process[_0x278d81(0x232)][_0x278d81(0x19d)]&&process[_0x278d81(0x1fc)][_0x278d81(0x25d)]>0x2&&!_0x4cca79[_0x278d81(0x2b9)](_0x278d81(0x25b))&&checkForUpdate(_0x4cca79)[_0x278d81(0x1c2)](_0x2980c5=>{_0x2980c5&&displayUpdateNotification(_0x2980c5);})[_0x278d81(0x143)](()=>{});}
|
|
1
|
+
const a2_0x6a4618=a2_0x3ba0;(function(_0x439330,_0x41d787){const _0x335036=a2_0x3ba0,_0x3681bb=_0x439330();while(!![]){try{const _0x102ee9=parseInt(_0x335036(0x2b8))/0x1+-parseInt(_0x335036(0x10a))/0x2*(parseInt(_0x335036(0xd9))/0x3)+parseInt(_0x335036(0x148))/0x4*(parseInt(_0x335036(0x1d5))/0x5)+parseInt(_0x335036(0x27f))/0x6+-parseInt(_0x335036(0x225))/0x7*(-parseInt(_0x335036(0xe0))/0x8)+-parseInt(_0x335036(0x1a6))/0x9*(-parseInt(_0x335036(0x122))/0xa)+parseInt(_0x335036(0x131))/0xb*(-parseInt(_0x335036(0xd7))/0xc);if(_0x102ee9===_0x41d787)break;else _0x3681bb['push'](_0x3681bb['shift']());}catch(_0x58935a){_0x3681bb['push'](_0x3681bb['shift']());}}}(a2_0x25aa,0x1b5c6));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';function a2_0x25aa(){const _0x16be67=['HTML\x20template\x20content','CDP\x20segment\x20management\x20commands','map','Resume\x20a\x20paused\x20campaign','Database\x20to\x20query\x20(default:\x20information_schema)','--output\x20<file>','Skip\x20validation\x20of\x20.dig\x20files','workflows\x20[project]','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead',',\x20version\x20','trace','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','--include-retried','view\x20[segment_name]','--tsv','New\x20workspace\x20name','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','query\x20[sql]','attempt:','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--add-attributes\x20<json>','addHelpText','-o,\x20--output\x20<file>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','debug','--type\x20<type>','action','Add\x20behaviors\x20as\x20JSON\x20string','--full','show\x20[name]','commands','New\x20campaign\x20name','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Run\x20Trino\x20query\x20with\x20streaming\x20results','Update\x20a\x20campaign','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--starter-message\x20<text>','use\x20<path>','[task-name]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','slice','repeat','Start\x20time\x20filter\x20(ISO\x208601\x20format)','-d,\x20--database\x20<database>','1157238WwQbNa','Describe\x20table\x20schema','tdx','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--model\x20<name>','--llm-project\x20<name>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','isArray','--job-type\x20<type>','sessions\x20[project]','user','Kill\x20a\x20job','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20the\x20most\x20recent\x20chat','engage','--segment\x20<path>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','validate\x20[name]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--description\x20<desc>','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Workflow\x20project\x20management','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Attributes\x20from\x20JSON\x20file','Email\x20template\x20management','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','List\x20available\x20LLM\x20models','Interactive\x20chat\x20selector','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Limit\x20number\x20of\x20rows','show\x20<name>','Updated\x20timezone','Commands:','--add-behaviors-file\x20<file>','--in\x20<name>','Email\x20subject\x20template','users','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--behavior\x20[name]','list\x20[project]','Maximum\x20tool\x20iterations\x20(default:\x204)','Output\x20as\x20JSON\x20Lines','includes','Add\x20attributes\x20as\x20JSON\x20string','list','-r,\x20--recursive','jsonl','-H,\x20--header\x20<header>','padEnd','72057MicLJE','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','delete\x20<name>','Move\x20to\x20folder','--rule-file\x20<file>','Database\x20name\x20(default:\x20information_schema)','Skip\x20population\x20counting','--description\x20<text>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--timeout\x20<seconds>','view\x20[name]','replace','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','templates\x20[pattern]','-f,\x20--file\x20<path>','Template\x20name','LLM\x20project\x20management','push\x20[parent_or_file]','Output\x20as\x20JSON','requiredOption','attempts\x20[project]','Setup\x20API\x20key\x20authentication\x20interactively','show\x20<folder_ref>','--table','help','Starter\x20message','Submit\x20a\x20job','configureHelp','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','statusline','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Updated\x20schedule\x20option','Delete\x20an\x20LLM\x20project','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--prompt\x20<text>','duplicate\x20<name-or-id>','delete\x20<project-name-or-id>','aliases','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Include\x20retried\x20attempts','LLM\x20agent\x20management','workspaces\x20[pattern]','Maximum\x20recursion\x20depth\x20(default:\x2010)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Delete\x20a\x20workspace','after','pull\x20[parent_or_file]','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--yes','Timezone\x20(e.g.,\x20America/Los_Angeles)','option','run','-o,\x20--output\x20<folder>','Resume\x20from\x20specific\x20task','36mUFsOR','Folder\x20description','21KFIxWr','push\x20[file]','outputHelp','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','profile','Workspace\x20management','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','104BXQKJH','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','noColor','-d,\x20--database\x20<name>','--kind\x20<type>','delete\x20<name-or-id>','Master\x20database\x20name','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','allowExcessArguments','claude-4.5-sonnet','--json-columns\x20<cols>','Project\x20description','--clear','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--attribute\x20[name]','download\x20<project-name>\x20[output-dir]','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--limit\x20<n>','json','-w,\x20--web','delete\x20<agent-name>','name','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Job\x20management\x20commands','--name\x20<name>','setup','--from\x20<timestamp>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','allowUnknownOption','run\x20<workflow>','-X,\x20--method\x20<method>','segments\x20[path]','\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','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','table','Parent\x20folder\x20name\x20for\x20nested\x20folders','Skip\x20confirmation\x20prompts','--editor-type\x20<type>','tdx\x20','list\x20[pattern]','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','17254OPsfji','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','pause\x20<name-or-id>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--jsonl','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Show\x20segment\x20schema\x20(column\x20types)','create\x20<segment_name>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Workflow\x20parameter\x20(repeatable)','Show\x20master\x20table\x20sample\x20data','Skip\x20confirmation\x20prompt','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','agents\x20[pattern]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','../package.json','flatMap','pull\x20[name]','End\x20time\x20filter\x20(ISO\x208601\x20format)','User\x20management\x20commands','logLevel','summary','Create\x20a\x20workspace','us01','393590zbJxMQ','Model\x20name\x20(default:\x20claude-4.5-sonnet)','--no-color','TRACE','set','hook','List\x20all\x20available\x20profiles','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','history\x20[chat-id]','-y,\x20--yes','Delete\x20an\x20email\x20template','--status\x20<status>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--version','project','1741333JOXiRF','--schedule-option\x20<value>','--customer-group\x20<json>','--resume-from\x20<task>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','show\x20[table]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','trino','sql\x20[name]','chat\x20[message...]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','databases\x20[pattern]','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Updated\x20description','proxy','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Plaintext\x20template\x20content','buildTime','--include-subtasks','--workspace\x20<name>','11464vxtESO','--dry-run','--add-attributes-file\x20<file>','Unknown\x20action:\x20','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Create\x20a\x20new\x20agent\x20in\x20current\x20project','folders\x20<parent_name>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Customer\x20group\x20as\x20JSON\x20string','--database\x20<db>','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','kill','tsv','createAsync','registeredArguments','catch','Behaviors\x20as\x20JSON\x20string','site','--type\x20<api_type>','description','--name\x20<new_name>','--table\x20<table>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','use\x20[name]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--site\x20<site>','Show\x20segment\x20details\x20(alias\x20for\x20view)','-u,\x20--use','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','parents\x20[pattern]','--format\x20<format>','update\x20<name-or-id>','opts','Set\x20or\x20show\x20parent\x20segment\x20context','--project\x20<name>','Preview\x20operation\x20without\x20executing','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','restore\x20<folder>','retry\x20<session-id>','Output\x20file\x20path\x20(default:\x20<name>.yml)','--max-tool-iterations\x20<n>','context','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','join','parent-segment','clear','--database\x20<name>','--schedule-type\x20<type>','port','Filtering\x20rule\x20from\x20JSON\x20file','--data\x20<data>','result\x20<job-id>','--last','Filtering\x20rule\x20as\x20JSON\x20string','--enriched','--parent-folder\x20<name>','Options:','claude\x20[args...]','Workspace\x20name','Open\x20parent\x20segment\x20in\x20web\x20browser','[DEPRECATED]\x20Segment\x20folder\x20management','Revision\x20name\x20(default:\x20timestamp)','Save\x20output\x20to\x20file','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Parent\x20segment\x20description','Clear\x20session\x20context','exit','get','chats','--param\x20<key=value>','Workspace\x20name\x20(required)','gitRevision','show\x20<name-or-id>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','stdout','Alias\x20for\x20--database\x20(natural\x20language\x20style)','-p,\x20--profile\x20<name>','campaigns\x20[pattern]','build-info.json','Enable\x20verbose\x20logging','--no-count-population','argumentTerm','alias','Task\x20name\x20for\x20logs\x20action','length','preview\x20[file]','--name\x20<new-name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','argumentDescription','Attempt\x20ID','Agent\x20description','9UHYRcm','Campaign\x20description','push\x20[name]','fields\x20[name]','--from-task\x20<task>','command','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','colorFn','--agent\x20<ref>','--limit\x20<rows>','--start-at\x20<datetime>','Get\x20job\x20results','--timezone\x20<tz>','Behaviors\x20from\x20JSON\x20file','fields\x20[parent_name]','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Workspace\x20description','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','_hidden','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','apiKey','--new','submit\x20[query]','Usage:\x20','--reason\x20<text>','Include\x20subtasks\x20in\x20tasks\x20output','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','format','update\x20<agent-name>','database','--attributes\x20<json>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','--in\x20<database>','update\x20<segment_name>','AI-native\x20CLI\x20for\x20Treasure\x20Data','-v,\x20--verbose','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--rule\x20<json>','optionDescription','auth','argv','show\x20[segment_name]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--html\x20<html>','parent','235KyWfpn','Editor\x20type','llm','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','preAction','New\x20template\x20name','Start\x20a\x20new\x20chat\x20session','job','isTTY','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','\x20-\x20built\x20','update\x20<name>','stderr','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','--no-proxy','--session\x20<id>','then','push','DEBUG','--plaintext\x20<text>','argument','segment','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Show\x20job\x20details','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','--folder\x20<name>','required','optionTerm','forEach','profiles','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Include\x20retried\x20attempts\x20(for\x20list)','Create\x20segment\x20folder','sonnet','Campaign\x20management','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Database\x20to\x20use\x20(overrides\x20context)','run\x20[name]','Remove\x20API\x20key\x20from\x20system\x20keychain','Database\x20management\x20commands','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--behaviors-file\x20<file>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--revision\x20<revision>','create','Make\x20segment\x20invisible\x20(default:\x20visible)','workspace','launch\x20<name-or-id>','utf-8','--parent-segment\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','subcommandTerm','activations\x20<segment_name>','[attempt-id]','workflow','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Show\x20agent\x20details','Email\x20sender\x20ID\x20for\x20delivery','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','tasks','Pull\x20child\x20segments\x20to\x20YAML\x20files','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','version','--email-sender-id\x20<id>','Show\x20only\x20master\x20table\x20validation','--max-depth\x20<depth>','Workflow\x20attempt\x20management','log','Launch\x20a\x20campaign','Read\x20SQL\x20query\x20from\x20file','Show\x20connection\x20details\x20by\x20name','logs','-1d','--json','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','show\x20<job-id>','--customer-group-file\x20<file>','validate\x20[file]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','112203UdgqZw','padWidth','error','Show\x20workspace\x20details','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Folder\x20name\x20for\x20organization','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Attributes\x20as\x20JSON\x20string','--session-time\x20<time>','information_schema','subcommandDescription','list\x20[path]','--subject\x20<subject>','--to\x20<timestamp>','--catalog\x20<catalog>','create\x20<name>','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','folder','System\x20prompt/instructions\x20(default:\x20empty)','GET','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--master','Workflow\x20(Digdag)\x20management\x20commands','agent','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','options','Authentication\x20management','Segment\x20description','Add\x20attributes\x20from\x20JSON\x20file','desc\x20[name]','Update\x20an\x20existing\x20agent','Create\x20a\x20new\x20LLM\x20project','Create\x20an\x20email\x20template','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--interval\x20<range>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)','Agent\x20reference\x20(project-name/agent-name)','--params\x20<json>','filter','attempt','--name\x20<text>','--behaviors\x20<json>'];a2_0x25aa=function(){return _0x16be67;};return a2_0x25aa();}import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,a2_0x6a4618(0x119)),a2_0x6a4618(0x206)));let buildInfo={};try{buildInfo=JSON['parse'](readFileSync(join(__dirname,a2_0x6a4618(0x198)),a2_0x6a4618(0x206)));}catch{}if(process[a2_0x6a4618(0x1d0)][a2_0x6a4618(0x2b1)](a2_0x6a4618(0x12f))){let versionOutput=a2_0x6a4618(0x107)+packageJson[a2_0x6a4618(0x214)];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo[a2_0x6a4618(0x191)]+')'),buildInfo[a2_0x6a4618(0x145)]&&(versionOutput+=a2_0x6a4618(0x1df)+buildInfo[a2_0x6a4618(0x145)]),console[a2_0x6a4618(0x219)](versionOutput),process[a2_0x6a4618(0x18c)](0x0);}const program=new Command();let description=a2_0x6a4618(0x1ca);buildInfo['gitRevision']?description+=a2_0x6a4618(0x259)+packageJson['version']+'\x20('+buildInfo[a2_0x6a4618(0x191)]+')':description+=',\x20version\x20'+packageJson[a2_0x6a4618(0x214)];program[a2_0x6a4618(0xf6)]('tdx')['description'](description),program[a2_0x6a4618(0xd3)](a2_0x6a4618(0x196),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x163),a2_0x6a4618(0x2e8),a2_0x6a4618(0x121))['option'](a2_0x6a4618(0x168),a2_0x6a4618(0x174))['option'](a2_0x6a4618(0x2d1),a2_0x6a4618(0x2a0))['option']('--json',a2_0x6a4618(0x27a))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x10e),a2_0x6a4618(0x14c))['option'](a2_0x6a4618(0x25f),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x255),a2_0x6a4618(0x188))[a2_0x6a4618(0xd3)]('--limit\x20<number>',a2_0x6a4618(0x273))[a2_0x6a4618(0xd3)]('--color',a2_0x6a4618(0x2c1),![])[a2_0x6a4618(0xd3)](a2_0x6a4618(0x124),a2_0x6a4618(0x285),![])[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1cb),a2_0x6a4618(0x199),![])[a2_0x6a4618(0xd3)]('--debug',a2_0x6a4618(0x2e1))[a2_0x6a4618(0xd3)]('--trace',a2_0x6a4618(0x1ac))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c2),'Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x149),a2_0x6a4618(0x16d),![])[a2_0x6a4618(0xd3)]('-y,\x20--yes',a2_0x6a4618(0x105),![])['option'](a2_0x6a4618(0x1e4),a2_0x6a4618(0xdf))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xe3),a2_0x6a4618(0x1f9))['option'](a2_0x6a4618(0x2a9),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x6a4618(0x207),a2_0x6a4618(0x1a1))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x287),a2_0x6a4618(0x23a)),program[a2_0x6a4618(0x2d5)]({'formatHelp':(_0x46eead,_0x157aac)=>{const _0x5d422c=a2_0x6a4618,_0xe2d7d4=_0x157aac[_0x5d422c(0x226)](_0x46eead,_0x157aac),_0x2a937f=0x2,_0xbebe86=0x2;function _0x14c72e(_0x1fe651){const _0x1531de=_0x5d422c,_0xebe5dd=_0x1fe651;return!!(_0xebe5dd[_0x1531de(0x1b9)]||_0xebe5dd['hidden']);}function _0x12344d(_0x369daf,_0x423077){const _0x342642=_0x5d422c;if(_0x423077){const _0x5e7512=''+_0x369daf[_0x342642(0x2b7)](_0xe2d7d4+_0xbebe86)+_0x423077;return _0x5e7512;}return _0x369daf;}function _0x5b6947(_0x8942bb){const _0x3279b5=_0x5d422c;return _0x8942bb[_0x3279b5(0x175)]('\x0a')[_0x3279b5(0x2c4)](/^/gm,'\x20'[_0x3279b5(0x27c)](_0x2a937f));}const _0x1b87f5=[];_0x1b87f5[_0x5d422c(0x1e6)](_0x5d422c(0x1be)+_0x157aac['commandUsage'](_0x46eead));const _0x55af00=_0x157aac['commandDescription'](_0x46eead);_0x55af00&&(_0x1b87f5['push'](''),_0x1b87f5[_0x5d422c(0x1e6)](_0x55af00));const _0x2ec3b9=_0x46eead[_0x5d422c(0x271)][_0x5d422c(0x24c)](_0x84a46=>!_0x14c72e(_0x84a46));if(_0x2ec3b9[_0x5d422c(0x19e)]>0x0){if(_0x46eead['name']()===_0x5d422c(0x281)){const _0xcb6bdb=_0x46eead[_0x5d422c(0x16a)](),_0xae270a=!_0xcb6bdb[_0x5d422c(0xe2)]&&process[_0x5d422c(0x194)][_0x5d422c(0x1dd)],_0x202c8b=COMMAND_CATEGORIES,_0x2ea903=(_0x5aff36,_0x5e2de6)=>_0xae270a?_0x5e2de6(_0x5aff36):_0x5aff36,_0x4652ab=new Map();_0x2ec3b9[_0x5d422c(0x1f1)](_0x168004=>{const _0x17faaa=_0x5d422c;_0x4652ab[_0x17faaa(0x126)](_0x168004[_0x17faaa(0xf6)](),_0x168004);}),_0x202c8b[_0x5d422c(0x1f1)](_0x3c0aa3=>{const _0x25283d=_0x5d422c,_0xda91c=_0x3c0aa3['commands'][_0x25283d(0x11a)](_0x3c2b04=>_0x4652ab[_0x25283d(0x18d)](_0x3c2b04)??[]);if(_0xda91c[_0x25283d(0x19e)]>0x0){_0x1b87f5[_0x25283d(0x1e6)](''),_0x1b87f5[_0x25283d(0x1e6)](_0x2ea903(_0x3c0aa3[_0x25283d(0xf6)]+':',_0x3c0aa3[_0x25283d(0x1ad)]));const _0x2f87b0=_0xda91c[_0x25283d(0x252)](_0x5959a4=>{const _0xa3c752=_0x25283d,_0x19b4d7=_0x157aac[_0xa3c752(0x209)](_0x5959a4),_0x5fdb41=_0x157aac[_0xa3c752(0x230)](_0x5959a4);return _0x12344d(_0x19b4d7,_0x5fdb41);});_0x1b87f5['push'](_0x5b6947(_0x2f87b0));}}),_0x1b87f5[_0x5d422c(0x1e6)](''),_0x1b87f5['push'](_0x5d422c(0x296));}else{const _0x6c3621=_0x2ec3b9[_0x5d422c(0x252)](_0x527524=>{const _0x41f932=_0x5d422c,_0x2d164e=_0x157aac[_0x41f932(0x209)](_0x527524),_0x5a9725=_0x157aac[_0x41f932(0x230)](_0x527524);return _0x12344d(_0x2d164e,_0x5a9725);});_0x1b87f5[_0x5d422c(0x1e6)](''),_0x1b87f5[_0x5d422c(0x1e6)](_0x5d422c(0x2a7)),_0x1b87f5[_0x5d422c(0x1e6)](_0x5b6947(_0x6c3621));}}const _0x46dba6=_0x46eead[_0x5d422c(0x23f)]['filter'](_0x12a2fb=>!_0x14c72e(_0x12a2fb));if(_0x46dba6[_0x5d422c(0x19e)]>0x0){const _0x37f7b6=_0x46dba6[_0x5d422c(0x252)](_0xd81b82=>{const _0x3c35bd=_0x5d422c,_0x31ab5e=_0x157aac[_0x3c35bd(0x1f0)](_0xd81b82),_0x584b90=_0x157aac[_0x3c35bd(0x1ce)](_0xd81b82);return _0x12344d(_0x31ab5e,_0x584b90);});_0x1b87f5['push'](''),_0x1b87f5['push'](_0x5d422c(0x182)),_0x1b87f5[_0x5d422c(0x1e6)](_0x5b6947(_0x37f7b6));}const _0x1eeb7c=(_0x46eead[_0x5d422c(0x158)]||[])[_0x5d422c(0x24c)](_0x48595a=>!_0x14c72e(_0x48595a));if(_0x1eeb7c[_0x5d422c(0x19e)]>0x0){const _0x523222=_0x1eeb7c[_0x5d422c(0x252)](_0x1e5320=>{const _0x2c9065=_0x5d422c,_0x988cde=_0x157aac[_0x2c9065(0x19b)](_0x1e5320),_0x210547=_0x157aac[_0x2c9065(0x1a3)](_0x1e5320);return _0x12344d(_0x988cde,_0x210547);});_0x1b87f5['push'](''),_0x1b87f5['push']('Arguments:'),_0x1b87f5[_0x5d422c(0x1e6)](_0x5b6947(_0x523222));}return _0x1b87f5[_0x5d422c(0x175)]('\x0a');},'subcommandTerm':_0x550d14=>{const _0x38d16f=a2_0x6a4618,_0x30e022=(_0x550d14[_0x38d16f(0x158)]||[])['map'](_0x2d2d0d=>_0x2d2d0d[_0x38d16f(0x1ef)]?'<'+_0x2d2d0d[_0x38d16f(0xf6)]()+'>':'['+_0x2d2d0d[_0x38d16f(0xf6)]()+']')['join']('\x20'),_0x333a43=_0x550d14[_0x38d16f(0x2e0)](),_0x5d44ad=_0x333a43['length']>0x0?_0x550d14[_0x38d16f(0xf6)]()+',\x20'+_0x333a43[_0x38d16f(0x175)](',\x20'):_0x550d14[_0x38d16f(0xf6)]();return _0x30e022?_0x5d44ad+'\x20'+_0x30e022:_0x5d44ad;}}),program[a2_0x6a4618(0x127)](a2_0x6a4618(0x1d9),_0x8bf9ff=>{const _0x3ea292=a2_0x6a4618,_0x7226e3=_0x8bf9ff[_0x3ea292(0x16a)]();if(!_0x7226e3[_0x3ea292(0x1c3)]){if(_0x7226e3['table'])_0x7226e3[_0x3ea292(0x1c3)]=_0x3ea292(0x103);else{if(_0x7226e3[_0x3ea292(0xf3)])_0x7226e3[_0x3ea292(0x1c3)]=_0x3ea292(0xf3);else{if(_0x7226e3[_0x3ea292(0x2b5)])_0x7226e3[_0x3ea292(0x1c3)]=_0x3ea292(0x2b5);else _0x7226e3[_0x3ea292(0x156)]&&(_0x7226e3['format']=_0x3ea292(0x156));}}}_0x7226e3['in']&&!_0x7226e3[_0x3ea292(0x1c5)]&&(_0x7226e3[_0x3ea292(0x1c5)]=_0x7226e3['in']);if(_0x7226e3[_0x3ea292(0x25a)])_0x7226e3[_0x3ea292(0x11e)]=LogLevel[_0x3ea292(0x125)];else{if(_0x7226e3[_0x3ea292(0x26b)])_0x7226e3['logLevel']=LogLevel[_0x3ea292(0x1e7)];else _0x7226e3[_0x3ea292(0x11e)]===undefined&&(_0x7226e3[_0x3ea292(0x11e)]=LogLevel['INFO']);}});async function createTDXInstance(_0x188cca){const _0x21aeee=a2_0x6a4618,_0x58e53e=await GlobalContext[_0x21aeee(0x157)](_0x188cca);return _0x58e53e['injectIntoOptions'](_0x188cca),TDX[_0x21aeee(0x202)]({'site':_0x58e53e[_0x21aeee(0x15b)],'apiKey':_0x58e53e[_0x21aeee(0x1bb)],'logLevel':_0x58e53e['logLevel'],'profile':_0x58e53e[_0x21aeee(0xdd)]});}const databaseCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1c5))[a2_0x6a4618(0x19c)]('db')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1fc)),databaseListAction=async(_0x54ecba,_0x402377)=>{const _0x1861b4=a2_0x6a4618,_0x49d146=new DatabasesCommand(),_0x432920=program[_0x1861b4(0x16a)](),_0x4d5d4a=await createTDXInstance(_0x432920),_0x39a61b=await _0x49d146['run']({'options':{..._0x432920,..._0x402377},'args':_0x54ecba?[_0x54ecba]:[],'tdx':_0x4d5d4a});process['exit'](_0x39a61b);};databaseCmd[a2_0x6a4618(0x1ab)]('list\x20[pattern]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1d8))[a2_0x6a4618(0x26d)](databaseListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x13f),{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0x129))[a2_0x6a4618(0x26d)](databaseListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x13b))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xfc))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1ae),a2_0x6a4618(0x24a))['option'](a2_0x6a4618(0x286),a2_0x6a4618(0x123))[a2_0x6a4618(0xd3)]('--temperature\x20<n>',a2_0x6a4618(0x1b5))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1bc),a2_0x6a4618(0x1db))['action'](async(_0x153c97,_0x1a8a13)=>{const _0x1e4834=a2_0x6a4618,_0x1a324b=new ChatCommand(),_0x354e3d=program[_0x1e4834(0x16a)](),_0x4b1fe7=await createTDXInstance(_0x354e3d),_0x253219=await _0x1a324b['run']({'options':{..._0x354e3d,..._0x1a8a13},'args':_0x153c97,'tdx':_0x4b1fe7});process[_0x1e4834(0x18c)](_0x253219);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x6a4618(0x11f)](a2_0x6a4618(0x13e))['addHelpText'](a2_0x6a4618(0xce),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')[a2_0x6a4618(0xd3)](a2_0x6a4618(0xff),a2_0x6a4618(0x276),a2_0x6a4618(0x239))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x17c),'Request\x20body\x20as\x20JSON\x20string')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c8),'Read\x20request\x20body\x20from\x20file')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2b6),a2_0x6a4618(0x213),(_0x3e7ed7,_0x1073d9)=>{return _0x1073d9?[..._0x1073d9,_0x3e7ed7]:[_0x3e7ed7];})[a2_0x6a4618(0xd3)](a2_0x6a4618(0x15c),a2_0x6a4618(0x1ed),'td')[a2_0x6a4618(0x26d)](async(_0x20618d,_0x3e4f9f)=>{const _0x15c7a6=a2_0x6a4618;if(!_0x20618d){apiCmd[_0x15c7a6(0x2d2)]();return;}const _0x46d40a=new ApiCommand(),_0x4d70f8=program[_0x15c7a6(0x16a)](),_0x2b3cf7=await createTDXInstance(_0x4d70f8),_0x1c9acb=await _0x46d40a['run']({'options':{..._0x4d70f8,..._0x3e4f9f},'args':[_0x20618d],'tdx':_0x2b3cf7});process['exit'](_0x1c9acb);}),tableCmd=program['command'](a2_0x6a4618(0x103))[a2_0x6a4618(0x15d)]('Table\x20management\x20commands'),tableListAction=async(_0x4d5c81,_0xe8fc18)=>{const _0x323047=a2_0x6a4618,_0x481abe=new TablesCommand(),_0x59ec72=program['opts'](),_0xbec19c=await createTDXInstance(_0x59ec72);_0xe8fc18['in']&&(_0xe8fc18[_0x323047(0x1c5)]=_0xe8fc18['in']);const _0x34526b=await _0x481abe[_0x323047(0xd4)]({'options':{..._0x59ec72,..._0xe8fc18},'args':_0x4d5c81?[_0x4d5c81]:[],'tdx':_0xbec19c});process['exit'](_0x34526b);};tableCmd[a2_0x6a4618(0x1ab)]('list\x20[pattern]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x284))['option'](a2_0x6a4618(0x27e),a2_0x6a4618(0x1d2))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1c8),a2_0x6a4618(0x195))[a2_0x6a4618(0x26d)](tableListAction),program['command']('tables\x20[pattern]',{'hidden':!![]})[a2_0x6a4618(0x15d)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x27e),a2_0x6a4618(0x1d2))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1c8),a2_0x6a4618(0x195))[a2_0x6a4618(0x26d)](tableListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x137))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x288))[a2_0x6a4618(0xd3)]('-d,\x20--database\x20<database>',a2_0x6a4618(0x116))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1c8),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x6a4618(0x26d)](async(_0x27617e,_0xda12f7)=>{const _0x133564=a2_0x6a4618,_0x417f4d=new ShowCommand(),_0x15c306=program['opts'](),_0x5b2cdd=await createTDXInstance(_0x15c306);_0xda12f7['in']&&(_0xda12f7[_0x133564(0x1c5)]=_0xda12f7['in']);const _0x51ec36=await _0x417f4d[_0x133564(0xd4)]({'options':{..._0x15c306,..._0xda12f7},'args':_0x27617e?[_0x27617e]:[],'tdx':_0x5b2cdd});process['exit'](_0x51ec36);}),program[a2_0x6a4618(0x1ab)]('describe\x20[table]')['alias']('desc')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x280))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x27e),a2_0x6a4618(0x116))[a2_0x6a4618(0xd3)]('--in\x20<database>',a2_0x6a4618(0x195))[a2_0x6a4618(0x26d)](async(_0x5b0f6d,_0x318cc1)=>{const _0x1e9735=a2_0x6a4618,_0x7561e=new DescribeCommand(),_0x256d92=program[_0x1e9735(0x16a)](),_0x48e9e7=await createTDXInstance(_0x256d92);_0x318cc1['in']&&(_0x318cc1[_0x1e9735(0x1c5)]=_0x318cc1['in']);const _0x433c0a=await _0x7561e[_0x1e9735(0xd4)]({'options':{..._0x256d92,..._0x318cc1},'args':_0x5b0f6d?[_0x5b0f6d]:[],'tdx':_0x48e9e7});process[_0x1e9735(0x18c)](_0x433c0a);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x262))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x274))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x27e),a2_0x6a4618(0x254))['option'](a2_0x6a4618(0x1c8),a2_0x6a4618(0x195))['option'](a2_0x6a4618(0x234),'Trino\x20catalog\x20(default:\x20td)')['option']('-f,\x20--file\x20<path>',a2_0x6a4618(0x21b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1af),a2_0x6a4618(0x2ac),'40')[a2_0x6a4618(0x26d)](async(_0x31c25c,_0x52879c)=>{const _0x2afb72=a2_0x6a4618,_0xec40a8=new QueryCommand(),_0x463ed8=program[_0x2afb72(0x16a)](),_0x46e455=await createTDXInstance(_0x463ed8);_0x52879c['in']&&(_0x52879c[_0x2afb72(0x1c5)]=_0x52879c['in']);const _0x2f3a84=await _0xec40a8[_0x2afb72(0xd4)]({'options':{..._0x463ed8,..._0x52879c},'args':_0x31c25c?[_0x31c25c]:[],'tdx':_0x46e455});process[_0x2afb72(0x18c)](_0x2f3a84);});const segmentCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1ea))['alias']('sg')['description'](a2_0x6a4618(0x251)),segmentListAction=async(_0x2b7598,_0x3309cd)=>{const _0x46efb4=a2_0x6a4618,_0x4d25e6=new SegmentsCommand(),_0xbb91a9=program[_0x46efb4(0x16a)](),_0x219a3d=await createTDXInstance(_0xbb91a9),_0x47b8af=await _0x4d25e6[_0x46efb4(0xd4)]({'options':{..._0xbb91a9,..._0x3309cd},'args':_0x2b7598?[_0x2b7598]:[],'tdx':_0x219a3d});process[_0x46efb4(0x18c)](_0x47b8af);};segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x231))[a2_0x6a4618(0x15d)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')['option'](a2_0x6a4618(0x2b4),a2_0x6a4618(0x2c5))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x217),a2_0x6a4618(0x2e5),'10')[a2_0x6a4618(0x26d)](segmentListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x100),{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0x150))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2b4),a2_0x6a4618(0x2c5))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x217),a2_0x6a4618(0x2e5),'10')[a2_0x6a4618(0x26d)](segmentListAction),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x278),{'hidden':!![]})['description'](a2_0x6a4618(0xd0))[a2_0x6a4618(0x26d)](async(_0x3bdab7,_0x495246)=>{const _0x37d8ee=a2_0x6a4618,_0x34e898=new SegmentUseCommand(),_0x4ff735=program['opts'](),_0x5a4081=await createTDXInstance(_0x4ff735),_0x4b6c8d=await _0x34e898[_0x37d8ee(0xd4)]({'options':{..._0x4ff735,..._0x495246},'args':[_0x3bdab7],'tdx':_0x5a4081});process[_0x37d8ee(0x18c)](_0x4b6c8d);});const segmentViewAction=async(_0x2d09f7,_0x34a2fa)=>{const _0x18e380=a2_0x6a4618,_0x44ac59=new SegmentViewCommand(),_0x292b6b=program['opts'](),_0x162e4a=await createTDXInstance(_0x292b6b),_0x3c198e=await _0x44ac59[_0x18e380(0xd4)]({'options':{..._0x292b6b,..._0x34a2fa},'args':_0x2d09f7?[_0x2d09f7]:[],'tdx':_0x162e4a});process['exit'](_0x3c198e);};segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x25e))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x282))['action'](segmentViewAction),segmentCmd[a2_0x6a4618(0x1ab)]('info\x20[segment_name]',{'hidden':!![]})['alias']('describe')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x164))['action'](segmentViewAction),segmentCmd[a2_0x6a4618(0x1ab)]('desc\x20[segment_name]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x110))['action'](async(_0x172f6a,_0x1d9c84)=>{const _0x4aeaef=a2_0x6a4618,_0x213947=new SegmentDescCommand(),_0x2bc5ad=program[_0x4aeaef(0x16a)](),_0x406333=await createTDXInstance(_0x2bc5ad),_0x2826f1=await _0x213947[_0x4aeaef(0xd4)]({'options':{..._0x2bc5ad,..._0x1d9c84},'args':_0x172f6a?[_0x172f6a]:[],'tdx':_0x406333});process[_0x4aeaef(0x18c)](_0x2826f1);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1d1))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x224))[a2_0x6a4618(0x26d)](async(_0x2afedc,_0x56abc5)=>{const _0xdfa515=a2_0x6a4618,_0x1fb413=new SegmentShowCommand(),_0x2990cc=program['opts'](),_0x2dfc2e=await createTDXInstance(_0x2990cc),_0xd84fee=await _0x1fb413[_0xdfa515(0xd4)]({'options':{..._0x2990cc,..._0x56abc5},'args':_0x2afedc?[_0x2afedc]:[],'tdx':_0x2dfc2e});process[_0xdfa515(0x18c)](_0xd84fee);}),segmentCmd['command'](a2_0x6a4618(0x14f),{'hidden':!![]})['description'](a2_0x6a4618(0x1e2))['action'](async(_0x447f70,_0x549c6c)=>{const _0x5f1c3f=a2_0x6a4618,_0x2958c3=new SegmentFolderListCommand(),_0x9c868e=program['opts'](),_0xdafac3=await createTDXInstance(_0x9c868e),_0xbc2a9f=await _0x2958c3['run']({'options':{..._0x9c868e,..._0x549c6c},'args':[_0x447f70],'tdx':_0xdafac3});process[_0x5f1c3f(0x18c)](_0xbc2a9f);});const folderCmd=segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x237),{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0x186));folderCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2d0))['description'](a2_0x6a4618(0x189))[a2_0x6a4618(0x26d)](async(_0x5a2cff,_0x3f4735)=>{const _0x193617=a2_0x6a4618,_0x6a5bd1=new SegmentFolderShowCommand(),_0x5af042=program[_0x193617(0x16a)](),_0x1315b1=await createTDXInstance(_0x5af042),_0x325ba6=await _0x6a5bd1[_0x193617(0xd4)]({'options':{..._0x5af042,..._0x3f4735},'args':[_0x5a2cff],'tdx':_0x1315b1});process['exit'](_0x325ba6);}),segmentCmd[a2_0x6a4618(0x1ab)]('sql\x20[segment_name]')[a2_0x6a4618(0x15d)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x6a4618(0x26d)](async(_0x3263eb,_0x5d47d7)=>{const _0x12170a=a2_0x6a4618,_0x279f90=new SegmentSQLCommand(),_0x3c227c=program[_0x12170a(0x16a)](),_0x249623=await createTDXInstance(_0x3c227c),_0x556fcb=await _0x279f90[_0x12170a(0xd4)]({'options':{..._0x3c227c,..._0x5d47d7},'args':_0x3263eb?[_0x3263eb]:[],'tdx':_0x249623});process['exit'](_0x556fcb);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1b4))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x16e))[a2_0x6a4618(0x26d)](async(_0x58ffed,_0x542096)=>{const _0x5e4f72=a2_0x6a4618,_0x4fa431=new SegmentFieldsCommand(),_0x4d24a3=program[_0x5e4f72(0x16a)](),_0xb5d2fa=await createTDXInstance(_0x4d24a3),_0x294627=await _0x4fa431[_0x5e4f72(0xd4)]({'options':{..._0x4d24a3,..._0x542096},'args':_0x58ffed?[_0x58ffed]:[],'tdx':_0xb5d2fa});process[_0x5e4f72(0x18c)](_0x294627);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xcf))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x212))[a2_0x6a4618(0xd3)]('-y,\x20--yes',a2_0x6a4618(0x105))['option'](a2_0x6a4618(0x149),a2_0x6a4618(0xf1))[a2_0x6a4618(0x26d)](async(_0x1d7832,_0x2f1c7e)=>{const _0x33aef0=a2_0x6a4618,_0x2de537=new SegmentPullCommand(),_0x5b2056=program['opts'](),_0x5b74be=await createTDXInstance(_0x5b2056),_0x4503d2=await _0x2de537[_0x33aef0(0xd4)]({'options':{..._0x5b2056,..._0x2f1c7e},'args':_0x1d7832?[_0x1d7832]:[],'tdx':_0x5b74be});process[_0x33aef0(0x18c)](_0x4503d2);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2cb))[a2_0x6a4618(0x15d)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x6a4618(0xd3)]('-y,\x20--yes',a2_0x6a4618(0x105))[a2_0x6a4618(0xd3)]('--dry-run',a2_0x6a4618(0xf1))['option']('--delete',a2_0x6a4618(0x1c7))[a2_0x6a4618(0x26d)](async(_0x5be56c,_0x5cedc8)=>{const _0x3b67e8=a2_0x6a4618,_0x52f2ff=new SegmentPushCommand(),_0x535706=program[_0x3b67e8(0x16a)](),_0x3879c9=await createTDXInstance(_0x535706),_0x3bf4e3=await _0x52f2ff[_0x3b67e8(0xd4)]({'options':{..._0x535706,..._0x5cedc8},'args':_0x5be56c?[_0x5be56c]:[],'tdx':_0x3879c9});process['exit'](_0x3bf4e3);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x111),{'hidden':!![]})['description'](a2_0x6a4618(0x136))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c0),a2_0x6a4618(0x241))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1cd),a2_0x6a4618(0x17f))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2bd),a2_0x6a4618(0x17b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1ee),a2_0x6a4618(0x22a))[a2_0x6a4618(0xd3)]('--kind\x20<type>',a2_0x6a4618(0x1f3))['option']('--invisible',a2_0x6a4618(0x203))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x19a),a2_0x6a4618(0x2bf))[a2_0x6a4618(0x26d)](async(_0x5eb8a7,_0x24251c)=>{const _0xc9814d=a2_0x6a4618,_0x4b32d4=new SegmentCreateCommand(),_0xa96f50=program['opts'](),_0x2e33d6=await createTDXInstance(_0xa96f50),_0x54c138=await _0x4b32d4['run']({'options':{..._0xa96f50,..._0x24251c},'args':[_0x5eb8a7],'tdx':_0x2e33d6});process[_0xc9814d(0x18c)](_0x54c138);}),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1c9),{'hidden':!![]})['description'](a2_0x6a4618(0x236))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x15e),'New\x20segment\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c0),a2_0x6a4618(0x141))[a2_0x6a4618(0xd3)]('--rule\x20<json>',a2_0x6a4618(0xe1))[a2_0x6a4618(0xd3)]('--rule-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x6a4618(0xd3)]('--folder\x20<name>',a2_0x6a4618(0x2bc))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xe4),a2_0x6a4618(0x1f3))[a2_0x6a4618(0x26d)](async(_0x528389,_0x83767a)=>{const _0xd225a=a2_0x6a4618,_0x4cd6a3=new SegmentUpdateCommand(),_0x4148e5=program[_0xd225a(0x16a)](),_0x1187db=await createTDXInstance(_0x4148e5),_0x46a1b6=await _0x4cd6a3[_0xd225a(0xd4)]({'options':{..._0x4148e5,..._0x83767a},'args':[_0x528389],'tdx':_0x1187db});process[_0xd225a(0x18c)](_0x46a1b6);});const parentCmd=segmentCmd['command'](a2_0x6a4618(0x1d4),{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0x258)),parentListAction=async(_0x3cea8b,_0x1955cf)=>{const _0x2746eb=a2_0x6a4618,_0x590f13=new ParentSegmentListCommand(),_0x29ee18=program[_0x2746eb(0x16a)](),_0x2c4972=await createTDXInstance(_0x29ee18),_0x57d2b3=await _0x590f13[_0x2746eb(0xd4)]({'options':{..._0x29ee18,..._0x1955cf},'args':_0x3cea8b?[_0x3cea8b]:[],'tdx':_0x2c4972});process[_0x2746eb(0x18c)](_0x57d2b3);};parentCmd['command'](a2_0x6a4618(0x108))['description'](a2_0x6a4618(0x140))['action'](parentListAction),segmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x167),{'hidden':!![]})['description'](a2_0x6a4618(0x13d))[a2_0x6a4618(0x26d)](parentListAction),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x11b))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x138))['option'](a2_0x6a4618(0x267),a2_0x6a4618(0x171))['option'](a2_0x6a4618(0x12b),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](async(_0x2c9be2,_0xacc057)=>{const _0x2beb1e=a2_0x6a4618,_0x779eb=new ParentSegmentPullCommand(),_0x29b978=program['opts'](),_0x387732=await createTDXInstance(_0x29b978),_0x45cff3=await _0x779eb[_0x2beb1e(0xd4)]({'options':{..._0x29b978,..._0xacc057},'args':_0x2c9be2?[_0x2c9be2]:[],'tdx':_0x387732});process[_0x2beb1e(0x18c)](_0x45cff3);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xda))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x162))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12b),'Skip\x20confirmation\x20prompt')[a2_0x6a4618(0x26d)](async(_0x2b5a12,_0x39ae8f)=>{const _0x5a6923=a2_0x6a4618,_0x15d499=new ParentSegmentPushCommand(),_0x1c88c6=program[_0x5a6923(0x16a)](),_0x22134e=await createTDXInstance(_0x1c88c6),_0x2aa223=await _0x15d499[_0x5a6923(0xd4)]({'options':{..._0x1c88c6,..._0x39ae8f},'args':_0x2b5a12?[_0x2b5a12]:[],'tdx':_0x22134e});process[_0x5a6923(0x18c)](_0x2aa223);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x223))['description'](a2_0x6a4618(0x29c))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x23b),a2_0x6a4618(0x216))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xef),a2_0x6a4618(0x2a3))['option'](a2_0x6a4618(0x2ad),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x6a4618(0x180),a2_0x6a4618(0x2dc))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x248),a2_0x6a4618(0x208),a2_0x6a4618(0x21e))[a2_0x6a4618(0x26d)](async(_0x5139b9,_0x2c153a)=>{const _0x15614d=a2_0x6a4618,_0x3a1f80=new ParentSegmentValidateCommand(),_0x42786b=program[_0x15614d(0x16a)](),_0x268425=await createTDXInstance(_0x42786b),_0x4178ea=await _0x3a1f80[_0x15614d(0xd4)]({'options':{..._0x42786b,..._0x2c153a},'args':_0x5139b9?[_0x5139b9]:[],'tdx':_0x268425});process[_0x15614d(0x18c)](_0x4178ea);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x19f))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x261))[a2_0x6a4618(0xd3)]('--master',a2_0x6a4618(0x114))['option'](a2_0x6a4618(0xef),a2_0x6a4618(0x10d))['option'](a2_0x6a4618(0x2ad),a2_0x6a4618(0x1b7))[a2_0x6a4618(0xd3)]('--enriched',a2_0x6a4618(0x269))['option'](a2_0x6a4618(0x248),a2_0x6a4618(0x208),a2_0x6a4618(0x21e))[a2_0x6a4618(0x26d)](async(_0x32071e,_0x540ac6)=>{const _0x13d8e6=a2_0x6a4618,_0x4f97ea=new ParentSegmentPreviewCommand(),_0x1ba007=program[_0x13d8e6(0x16a)](),_0x4507aa=await createTDXInstance(_0x1ba007),_0x35ad90=await _0x4f97ea[_0x13d8e6(0xd4)]({'options':{..._0x1ba007,..._0x540ac6},'args':_0x32071e?[_0x32071e]:[],'tdx':_0x4507aa});process[_0x13d8e6(0x18c)](_0x35ad90);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1fa))['description'](a2_0x6a4618(0x10f))['option']('-y,\x20--yes',a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](async(_0xb15e15,_0x214a83)=>{const _0x4b86ec=a2_0x6a4618,_0x100854=new ParentSegmentRunCommand(),_0x41c3f4=program[_0x4b86ec(0x16a)](),_0x2e49be=await createTDXInstance(_0x41c3f4),_0x5a4a34=await _0x100854[_0x4b86ec(0xd4)]({'options':{..._0x41c3f4,..._0x214a83},'args':_0xb15e15?[_0xb15e15]:[],'tdx':_0x2e49be});process[_0x4b86ec(0x18c)](_0x5a4a34);});const parentSegmentCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x176))[a2_0x6a4618(0x19c)]('ps')[a2_0x6a4618(0x15d)]('Parent\x20segment\x20management');parentSegmentCmd['command']('list\x20[pattern]')[a2_0x6a4618(0x15d)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x11b))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1c2))['option'](a2_0x6a4618(0x267),'Output\x20file\x20path')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12b),a2_0x6a4618(0x115))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x165),a2_0x6a4618(0xf7))[a2_0x6a4618(0x26d)](async(_0x1cd6af,_0x47867f)=>{const _0x248744=a2_0x6a4618,_0x34916d=new ParentSegmentPullCommand(),_0x17b041=program['opts'](),_0x3ad849=await createTDXInstance(_0x17b041),_0x1490dd=await _0x34916d['run']({'options':{..._0x17b041,..._0x47867f},'args':_0x1cd6af?[_0x1cd6af]:[],'tdx':_0x3ad849});process[_0x248744(0x18c)](_0x1490dd);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1a8))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x26a))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12b),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](async(_0x4b7564,_0x5a97de)=>{const _0x4c8283=a2_0x6a4618,_0x591273=new ParentSegmentPushCommand(),_0x159277=program[_0x4c8283(0x16a)](),_0x37891d=await createTDXInstance(_0x159277),_0x12ff6d=await _0x591273[_0x4c8283(0xd4)]({'options':{..._0x159277,..._0x5a97de},'args':_0x4b7564?[_0x4b7564]:[],'tdx':_0x37891d});process[_0x4c8283(0x18c)](_0x12ff6d);}),parentSegmentCmd['command'](a2_0x6a4618(0x294))['description'](a2_0x6a4618(0x29c))[a2_0x6a4618(0xd3)]('--master','Show\x20only\x20master\x20table\x20validation')[a2_0x6a4618(0xd3)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2ad),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x6a4618(0xd3)]('--enriched',a2_0x6a4618(0x2dc))['option']('--interval\x20<range>',a2_0x6a4618(0x208),a2_0x6a4618(0x21e))[a2_0x6a4618(0x26d)](async(_0x24ef3c,_0x46e0f0)=>{const _0x577d7b=a2_0x6a4618,_0x1e47cc=new ParentSegmentValidateCommand(),_0x2fc53a=program[_0x577d7b(0x16a)](),_0x401d9f=await createTDXInstance(_0x2fc53a),_0x265cd4=await _0x1e47cc[_0x577d7b(0xd4)]({'options':{..._0x2fc53a,..._0x46e0f0},'args':_0x24ef3c?[_0x24ef3c]:[],'tdx':_0x401d9f});process[_0x577d7b(0x18c)](_0x265cd4);}),parentSegmentCmd[a2_0x6a4618(0x1ab)]('preview\x20[name]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x261))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x23b),'Show\x20master\x20table\x20sample\x20data')['option']('--attribute\x20[name]',a2_0x6a4618(0x10d))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2ad),a2_0x6a4618(0x1b7))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x180),a2_0x6a4618(0x269))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x248),a2_0x6a4618(0x208),a2_0x6a4618(0x21e))['action'](async(_0x45e53d,_0x5b345b)=>{const _0x479885=a2_0x6a4618,_0x58cf23=new ParentSegmentPreviewCommand(),_0x41a7dd=program[_0x479885(0x16a)](),_0x23d534=await createTDXInstance(_0x41a7dd),_0x1bc3ac=await _0x58cf23[_0x479885(0xd4)]({'options':{..._0x41a7dd,..._0x5b345b},'args':_0x45e53d?[_0x45e53d]:[],'tdx':_0x23d534});process[_0x479885(0x18c)](_0x1bc3ac);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1fa))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x10f))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12b),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](async(_0x12a8fe,_0x17117c)=>{const _0x4272fa=a2_0x6a4618,_0xbb0d2e=new ParentSegmentRunCommand(),_0x142146=program[_0x4272fa(0x16a)](),_0x3dbf84=await createTDXInstance(_0x142146),_0x5f51e8=await _0xbb0d2e['run']({'options':{..._0x142146,..._0x17117c},'args':_0x12a8fe?[_0x12a8fe]:[],'tdx':_0x3dbf84});process[_0x4272fa(0x18c)](_0x5f51e8);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1a9))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x25c))[a2_0x6a4618(0xd3)]('--json',a2_0x6a4618(0x2cc))['option'](a2_0x6a4618(0x10e),'Output\x20as\x20JSON\x20Lines')[a2_0x6a4618(0x26d)](async(_0x113bb0,_0x319701)=>{const _0x5f2520=a2_0x6a4618,_0x4e23ac=new ParentSegmentFieldsCommand(),_0x2f7c81=program[_0x5f2520(0x16a)](),_0x54117e=await createTDXInstance(_0x2f7c81),_0x240336=await _0x4e23ac['run']({'options':{..._0x2f7c81,..._0x319701},'args':_0x113bb0?[_0x113bb0]:[],'tdx':_0x54117e});process[_0x5f2520(0x18c)](_0x240336);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2c3))['description'](a2_0x6a4618(0x200))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf4),a2_0x6a4618(0x185))['option'](a2_0x6a4618(0x21f),'Output\x20as\x20JSON')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x10e),a2_0x6a4618(0x2b0))[a2_0x6a4618(0x26d)](async(_0x4c8c66,_0x46bd57)=>{const _0x1112eb=a2_0x6a4618,_0x3c5990=new ParentSegmentViewCommand(),_0x12329d=program[_0x1112eb(0x16a)](),_0x4ee127=await createTDXInstance(_0x12329d),_0x548681=await _0x3c5990['run']({'options':{..._0x12329d,..._0x46bd57},'args':_0x4c8c66?[_0x4c8c66]:[],'tdx':_0x4ee127});process[_0x1112eb(0x18c)](_0x548681);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x243))['description']('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x21f),'Output\x20as\x20JSON')['option'](a2_0x6a4618(0x10e),'Output\x20as\x20JSON\x20Lines')[a2_0x6a4618(0x26d)](async(_0xa945e6,_0x339f22)=>{const _0x114e23=a2_0x6a4618,_0xb92490=new ParentSegmentDescCommand(),_0x53e26b=program[_0x114e23(0x16a)](),_0xf44b87=await createTDXInstance(_0x53e26b),_0x173c83=await _0xb92490[_0x114e23(0xd4)]({'options':{..._0x53e26b,..._0x339f22},'args':_0xa945e6?[_0xa945e6]:[],'tdx':_0xf44b87});process[_0x114e23(0x18c)](_0x173c83);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x13a))[a2_0x6a4618(0x15d)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x6a4618(0xd3)]('--json','Output\x20as\x20JSON')['option']('--jsonl',a2_0x6a4618(0x2b0))[a2_0x6a4618(0x26d)](async(_0x8c2175,_0x584e07)=>{const _0x2c8092=a2_0x6a4618,_0x180a37=new ParentSegmentSQLCommand(),_0x1c0061=program[_0x2c8092(0x16a)](),_0xb354f=await createTDXInstance(_0x1c0061),_0x5bc628=await _0x180a37[_0x2c8092(0xd4)]({'options':{..._0x1c0061,..._0x584e07},'args':_0x8c2175?[_0x8c2175]:[],'tdx':_0xb354f});process[_0x2c8092(0x18c)](_0x5bc628);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x270))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x160))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf2),a2_0x6a4618(0x2a4))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x21f),'Output\x20as\x20JSON')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x10e),a2_0x6a4618(0x2b0))[a2_0x6a4618(0x26d)](async(_0x508367,_0x2c2f82)=>{const _0x197509=a2_0x6a4618,_0x51d5eb=new ParentSegmentShowCommand(),_0x2e61ae=program['opts'](),_0x53d209=await createTDXInstance(_0x2e61ae),_0x36ba44=await _0x51d5eb[_0x197509(0xd4)]({'options':{..._0x2e61ae,..._0x2c2f82},'args':_0x508367?[_0x508367]:[],'tdx':_0x53d209});process['exit'](_0x36ba44);}),parentSegmentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x161))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x16b))[a2_0x6a4618(0x26d)](async(_0x4a143e,_0x558442)=>{const _0x29869b=a2_0x6a4618,_0x5b12ac=new UseCommand(),_0xa26e96=program['opts'](),_0x529c3c=_0x4a143e?['parent_segment',_0x4a143e]:[],_0x38b261=await _0x5b12ac[_0x29869b(0xd4)]({'options':{..._0xa26e96,..._0x558442},'args':_0x529c3c,'tdx':null});process[_0x29869b(0x18c)](_0x38b261);}),parentCmd[a2_0x6a4618(0x1ab)]('create\x20<name>')['description'](a2_0x6a4618(0x268))[a2_0x6a4618(0x2cd)](a2_0x6a4618(0x152),a2_0x6a4618(0xe6))['requiredOption'](a2_0x6a4618(0x15f),'Master\x20table\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c0),a2_0x6a4618(0x18a))['option'](a2_0x6a4618(0x179),a2_0x6a4618(0xe7))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x132),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x6a4618(0xd3)]('--timezone\x20<tz>',a2_0x6a4618(0xd2))['option'](a2_0x6a4618(0x1c6),a2_0x6a4618(0x22d))['option']('--attributes-file\x20<file>',a2_0x6a4618(0x29d))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x24f),a2_0x6a4618(0x15a))['option'](a2_0x6a4618(0x1fe),a2_0x6a4618(0x1b3))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x133),a2_0x6a4618(0x151))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x222),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x6a4618(0x26d)](async(_0x1d3467,_0x3edc31)=>{const _0x4e2ad5=a2_0x6a4618,_0x5a5f67=new ParentSegmentCreateCommand(),_0x8a53d1=program[_0x4e2ad5(0x16a)](),_0x23f45c=await createTDXInstance(_0x8a53d1),_0x44f045=await _0x5a5f67[_0x4e2ad5(0xd4)]({'options':{..._0x8a53d1,..._0x3edc31},'args':[_0x1d3467],'tdx':_0x23f45c});process['exit'](_0x44f045);}),parentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1e0))['description'](a2_0x6a4618(0x299))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c0),a2_0x6a4618(0x141))['option'](a2_0x6a4618(0x179),a2_0x6a4618(0x10b))['option']('--schedule-option\x20<value>',a2_0x6a4618(0x2da))[a2_0x6a4618(0xd3)]('--timezone\x20<tz>',a2_0x6a4618(0x2a6))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x265),a2_0x6a4618(0x2b2))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x14a),a2_0x6a4618(0x242))[a2_0x6a4618(0xd3)]('--add-behaviors\x20<json>',a2_0x6a4618(0x26e))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2a8),'Add\x20behaviors\x20from\x20JSON\x20file')['action'](async(_0xf53b02,_0x5ea3da)=>{const _0xd7198d=a2_0x6a4618,_0x5b6971=new ParentSegmentUpdateCommand(),_0xd29d1f=program['opts'](),_0x470751=await createTDXInstance(_0xd29d1f),_0x36288c=await _0x5b6971[_0xd7198d(0xd4)]({'options':{..._0xd29d1f,..._0x5ea3da},'args':[_0xf53b02],'tdx':_0x470751});process[_0xd7198d(0x18c)](_0x36288c);}),folderCmd[a2_0x6a4618(0x1ab)]('create\x20<parent_name>\x20<folder_name>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1f5))[a2_0x6a4618(0xd3)]('--description\x20<text>',a2_0x6a4618(0xd8))['option'](a2_0x6a4618(0x181),a2_0x6a4618(0x104))[a2_0x6a4618(0x26d)](async(_0x2f77fd,_0x26f9ee,_0x22fa3e)=>{const _0x1973e3=a2_0x6a4618,_0x4d2079=new SegmentFolderCreateCommand(),_0x42849c=program[_0x1973e3(0x16a)](),_0x2fb465=await createTDXInstance(_0x42849c),_0x88410b=await _0x4d2079['run']({'options':{..._0x42849c,..._0x22fa3e},'args':[_0x2f77fd,_0x26f9ee],'tdx':_0x2fb465});process['exit'](_0x88410b);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x20a))['description'](a2_0x6a4618(0x1fd))[a2_0x6a4618(0x26d)](async(_0x59a7e1,_0xc65681)=>{const _0x4d178e=a2_0x6a4618,_0x2a1adc=new ActivationsCommand(),_0x4c42c3=program['opts'](),_0x372fcf=await createTDXInstance(_0x4c42c3),_0x53f4e2=await _0x2a1adc[_0x4d178e(0xd4)]({'options':{..._0x4c42c3,..._0xc65681},'args':[_0x59a7e1],'tdx':_0x372fcf});process['exit'](_0x53f4e2);});const workflowCmd=program['command'](a2_0x6a4618(0x20c))[a2_0x6a4618(0x19c)]('wf')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x23c)),wfProjectCmd=workflowCmd['command']('project')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x29a)),wfProjectListAction=async(_0x464a80,_0x18deb7)=>{const _0x174c6c=a2_0x6a4618,_0x121bb3=new WorkflowProjectsCommand(),_0x3408d2=program[_0x174c6c(0x16a)](),_0x2709ab=await createTDXInstance(_0x3408d2),_0x1dcd6d=await _0x121bb3[_0x174c6c(0xd4)]({'options':{..._0x3408d2,..._0x18deb7},'args':_0x464a80?[_0x464a80]:[],'tdx':_0x2709ab});process['exit'](_0x1dcd6d);};wfProjectCmd['command'](a2_0x6a4618(0x108))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xe8))[a2_0x6a4618(0x26d)](wfProjectListAction),workflowCmd[a2_0x6a4618(0x1ab)]('projects\x20[pattern]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x143))[a2_0x6a4618(0x26d)](wfProjectListAction);const wfWorkflowListAction=async(_0xbe184a,_0x5a4461)=>{const _0x27d494=a2_0x6a4618,_0x5df911=new WorkflowWorkflowsCommand(),_0x457779=program[_0x27d494(0x16a)](),_0x247889=await createTDXInstance(_0x457779),_0x52b5a4=await _0x5df911[_0x27d494(0xd4)]({'options':{..._0x457779,..._0x5a4461},'args':_0xbe184a?[_0xbe184a]:[],'tdx':_0x247889});process[_0x27d494(0x18c)](_0x52b5a4);};workflowCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x257))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x22c))[a2_0x6a4618(0x26d)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x6a4618(0x1ab)]('session')[a2_0x6a4618(0x15d)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x4ee00a,_0x245ff3)=>{const _0x5394c6=a2_0x6a4618,_0x1602d8=new WorkflowSessionsCommand(),_0x4f6a5e=program[_0x5394c6(0x16a)](),_0x539d06=await createTDXInstance(_0x4f6a5e),_0x19a669=await _0x1602d8[_0x5394c6(0xd4)]({'options':{..._0x4f6a5e,..._0x245ff3},'args':_0x4ee00a?[_0x4ee00a]:[],'tdx':_0x539d06});process['exit'](_0x19a669);};wfSessionCmd['command'](a2_0x6a4618(0x2ae))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x264))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12d),a2_0x6a4618(0x25b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xfb),a2_0x6a4618(0x27d))['option'](a2_0x6a4618(0x233),a2_0x6a4618(0x11c))['action'](wfSessionListAction),workflowCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x28b))[a2_0x6a4618(0x15d)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option'](a2_0x6a4618(0x12d),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a2_0x6a4618(0xfb),a2_0x6a4618(0x27d))['option'](a2_0x6a4618(0x233),a2_0x6a4618(0x11c))[a2_0x6a4618(0x26d)](wfSessionListAction);const wfAttemptListAction=async(_0x1c2841,_0x2e16b6)=>{const _0x3058f9=a2_0x6a4618,_0xc7cb5b=new WorkflowAttemptsCommand(),_0x4ecbef=program[_0x3058f9(0x16a)](),_0x5ef484=await createTDXInstance(_0x4ecbef),_0x207245=await _0xc7cb5b['run']({'options':{..._0x4ecbef,..._0x2e16b6},'args':_0x1c2841?[_0x1c2841]:[],'tdx':_0x5ef484});process['exit'](_0x207245);},attemptCmd=workflowCmd['command'](a2_0x6a4618(0x24d))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x218))[a2_0x6a4618(0x1e9)](a2_0x6a4618(0x20b),a2_0x6a4618(0x1a4))[a2_0x6a4618(0x1e9)]('[action]',a2_0x6a4618(0x14d))[a2_0x6a4618(0x1e9)](a2_0x6a4618(0x279),a2_0x6a4618(0x19d))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x146),a2_0x6a4618(0x1c0))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1bf),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x6a4618(0x134),'Resume\x20from\x20specific\x20task\x20(retry)')['option'](a2_0x6a4618(0x24b),a2_0x6a4618(0x2e6))[a2_0x6a4618(0xd3)]('--force','Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x25d),a2_0x6a4618(0x1f4))[a2_0x6a4618(0x26d)](async(_0x21270c,_0x51f785,_0x226d26,_0x122bc3)=>{const _0x2a31d4=a2_0x6a4618;if(_0x21270c===_0x2a31d4(0x2b3)){await wfAttemptListAction(_0x51f785,_0x122bc3);return;}if(!_0x21270c){attemptCmd[_0x2a31d4(0x2d2)]();return;}const _0xf9a00f=program['opts'](),_0x12f645=await createTDXInstance(_0xf9a00f);let _0x6f083b=0x0;if(!_0x51f785){const _0x404536=new WorkflowAttemptCommand();_0x6f083b=await _0x404536[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':[_0x21270c],'tdx':_0x12f645});}else{if(_0x51f785===_0x2a31d4(0x21d)){const _0x53fc1d=new WorkflowLogsCommand();_0x6f083b=await _0x53fc1d[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':_0x226d26?[_0x21270c,_0x226d26]:[_0x21270c],'tdx':_0x12f645});}else{if(_0x51f785===_0x2a31d4(0x211)){const _0x569f39=new WorkflowTasksCommand();_0x6f083b=await _0x569f39[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':[_0x21270c],'tdx':_0x12f645});}else{if(_0x51f785===_0x2a31d4(0x155)){const _0x53e19a=new WorkflowKillCommand();_0x6f083b=await _0x53e19a[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':[_0x21270c],'tdx':_0x12f645});}else{if(_0x51f785==='retry'){const _0x2cf918=new WorkflowRetryCommand();_0x6f083b=await _0x2cf918[_0x2a31d4(0xd4)]({'options':{..._0xf9a00f,..._0x122bc3},'args':[_0x2a31d4(0x263)+_0x21270c],'tdx':_0x12f645});}else console['error'](_0x2a31d4(0x14b)+_0x51f785),console[_0x2a31d4(0x227)](_0x2a31d4(0x29f)),_0x6f083b=0x1;}}}}process[_0x2a31d4(0x18c)](_0x6f083b);});attemptCmd[a2_0x6a4618(0x1ab)]('list\x20[project]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1ff))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x25d),a2_0x6a4618(0x2e2))[a2_0x6a4618(0x26d)](wfAttemptListAction),workflowCmd['command'](a2_0x6a4618(0x2ce))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xdc))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x25d),a2_0x6a4618(0x2e2))['action'](wfAttemptListAction),workflowCmd['command'](a2_0x6a4618(0x170))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2ba))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1aa),a2_0x6a4618(0xd6))['option'](a2_0x6a4618(0x24b),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x6a4618(0x26d)](async(_0x3482df,_0x328a32)=>{const _0x40aec7=a2_0x6a4618,_0x356e96=new WorkflowRetryCommand(),_0xc762b4=program['opts'](),_0x1d9405=await createTDXInstance(_0xc762b4),_0x49c688=await _0x356e96[_0x40aec7(0xd4)]({'options':{..._0xc762b4,..._0x328a32},'args':[_0x3482df],'tdx':_0x1d9405});process[_0x40aec7(0x18c)](_0x49c688);}),workflowCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xfe))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x135))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x18f),a2_0x6a4618(0x113),(_0x30c103,_0x1eb3cc=[])=>[..._0x1eb3cc,_0x30c103],[])[a2_0x6a4618(0xd3)](a2_0x6a4618(0x22e),a2_0x6a4618(0x1eb))[a2_0x6a4618(0x26d)](async(_0x52693e,_0x408c22)=>{const _0x34658f=a2_0x6a4618,_0x35207d=new WorkflowRunCommand(),_0x5130bd=program['opts'](),_0x28d6f7=await createTDXInstance(_0x5130bd),_0x323e36=await _0x35207d[_0x34658f(0xd4)]({'options':{..._0x5130bd,..._0x408c22},'args':[_0x52693e],'tdx':_0x28d6f7});process[_0x34658f(0x18c)](_0x323e36);}),workflowCmd['command'](a2_0x6a4618(0xf0))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x154))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x201),a2_0x6a4618(0x112))[a2_0x6a4618(0x26d)](async(_0x7fe6e0,_0x2638cc,_0x176b40)=>{const _0x202210=a2_0x6a4618,_0x199eb2=new WorkflowDownloadCommand(),_0x2e4b43=program[_0x202210(0x16a)](),_0x527e1f=await createTDXInstance(_0x2e4b43),_0x4e79b8=await _0x199eb2[_0x202210(0xd4)]({'options':{..._0x2e4b43,..._0x176b40},'args':[_0x7fe6e0,_0x2638cc||'.'],'tdx':_0x527e1f});process['exit'](_0x4e79b8);}),workflowCmd['command']('push\x20[project-name-or-dir]')['description'](a2_0x6a4618(0x1de))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf9),'Override\x20project\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x201),a2_0x6a4618(0x187))[a2_0x6a4618(0xd3)]('--skip-validation',a2_0x6a4618(0x256))['action'](async(_0x1070ae,_0x5ba18f)=>{const _0x576874=a2_0x6a4618,_0x139f2b=new WorkflowPushCommand(),_0x327b8b=program[_0x576874(0x16a)](),_0x49d418=await createTDXInstance(_0x327b8b),_0x593db1=await _0x139f2b[_0x576874(0xd4)]({'options':{..._0x327b8b,..._0x5ba18f},'args':_0x1070ae?[_0x1070ae]:[],'tdx':_0x49d418});process[_0x576874(0x18c)](_0x593db1);}),workflowCmd['command'](a2_0x6a4618(0x2df))['description'](a2_0x6a4618(0x1a2))[a2_0x6a4618(0x26d)](async(_0x56c78f,_0x12c69a)=>{const _0x565859=a2_0x6a4618,_0x1049a6=new WorkflowDeleteCommand(),_0x3cec90=program[_0x565859(0x16a)](),_0x2f59c5=await createTDXInstance(_0x3cec90),_0x3635be=await _0x1049a6[_0x565859(0xd4)]({'options':{..._0x3cec90,..._0x12c69a},'args':[_0x56c78f],'tdx':_0x2f59c5});process['exit'](_0x3635be);});const jobCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1dc))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xf8)),jobListAction=async _0x2b045e=>{const _0x1e4cbf=a2_0x6a4618,_0x408e9f=new JobListCommand(),_0x2d0af0=program[_0x1e4cbf(0x16a)](),_0x131dd6=await createTDXInstance(_0x2d0af0),_0x3550d7=await _0x408e9f[_0x1e4cbf(0xd4)]({'options':{..._0x2d0af0,..._0x2b045e},'args':[],'tdx':_0x131dd6});process[_0x1e4cbf(0x18c)](_0x3550d7);};function a2_0x3ba0(_0x5a2f38,_0x1f4457){_0x5a2f38=_0x5a2f38-0xcd;const _0x25aa51=a2_0x25aa();let _0x3ba021=_0x25aa51[_0x5a2f38];return _0x3ba021;}jobCmd['command'](a2_0x6a4618(0x2b3))[a2_0x6a4618(0x15d)]('List\x20jobs')[a2_0x6a4618(0xd3)]('--status\x20<status>',a2_0x6a4618(0x13c))[a2_0x6a4618(0x26d)](jobListAction),program[a2_0x6a4618(0x1ab)]('jobs',{'hidden':!![]})[a2_0x6a4618(0x15d)](a2_0x6a4618(0xee))[a2_0x6a4618(0xd3)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),jobCmd['command'](a2_0x6a4618(0x221))['description'](a2_0x6a4618(0x1ec))[a2_0x6a4618(0x26d)](async(_0x29847c,_0xb60baf)=>{const _0x349ce2=a2_0x6a4618,_0x3bea23=new JobShowCommand(),_0x1a58e2=program[_0x349ce2(0x16a)](),_0xc4af01=await createTDXInstance(_0x1a58e2),_0x60627f=await _0x3bea23[_0x349ce2(0xd4)]({'options':{..._0x1a58e2,..._0xb60baf},'args':[_0x29847c],'tdx':_0xc4af01});process[_0x349ce2(0x18c)](_0x60627f);}),jobCmd[a2_0x6a4618(0x1ab)]('kill\x20<job-id>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x28d))[a2_0x6a4618(0x26d)](async(_0x379404,_0x10fe99)=>{const _0x4c429d=a2_0x6a4618,_0x2c5e51=new JobKillCommand(),_0x370de7=program[_0x4c429d(0x16a)](),_0x85fe9c=await createTDXInstance(_0x370de7),_0x407feb=await _0x2c5e51[_0x4c429d(0xd4)]({'options':{..._0x370de7,..._0x10fe99},'args':[_0x379404],'tdx':_0x85fe9c});process[_0x4c429d(0x18c)](_0x407feb);}),jobCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1bd))['description'](a2_0x6a4618(0x2d4))['option'](a2_0x6a4618(0x28a),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x6a4618(0x139))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2c8),'Read\x20query\x20from\x20file')['option'](a2_0x6a4618(0x178),a2_0x6a4618(0x2be),a2_0x6a4618(0x22f))[a2_0x6a4618(0x26d)](async(_0x4a5ef8,_0x2e88f8)=>{const _0x396bb2=a2_0x6a4618,_0xf6d2d4=new JobSubmitCommand(),_0x57783c=program['opts'](),_0x4cfde2=await createTDXInstance(_0x57783c),_0x3325e6=await _0xf6d2d4[_0x396bb2(0xd4)]({'options':{..._0x57783c,..._0x2e88f8},'args':_0x4a5ef8?[_0x4a5ef8]:[],'tdx':_0x4cfde2});process['exit'](_0x3325e6);}),jobCmd['command'](a2_0x6a4618(0x17d))['description'](a2_0x6a4618(0x1b1))['action'](async(_0x2bc73b,_0x3e7dd5)=>{const _0x1a4843=a2_0x6a4618,_0x318714=new JobResultCommand(),_0x3fa1ce=program[_0x1a4843(0x16a)](),_0x82061e=await createTDXInstance(_0x3fa1ce),_0x5f5d95=await _0x318714[_0x1a4843(0xd4)]({'options':{..._0x3fa1ce,..._0x3e7dd5},'args':[_0x2bc73b],'tdx':_0x82061e});process['exit'](_0x5f5d95);});const llmCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1d7))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x292));llmCmd[a2_0x6a4618(0x1ab)]('use\x20<project-name>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1ba))['action'](async(_0x3458dd,_0x2a2b95)=>{const _0x3469b8=new LLMUseCommand(),_0x3f2304=program['opts'](),_0x65df7a=await createTDXInstance(_0x3f2304),_0x5572f1=await _0x3469b8['run']({'options':{..._0x3f2304,..._0x2a2b95},'args':[_0x3458dd],'tdx':_0x65df7a});process['exit'](_0x5572f1);}),llmCmd[a2_0x6a4618(0x1ab)]('models')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2a1))[a2_0x6a4618(0x26d)](async _0x150f9e=>{const _0x2587b4=a2_0x6a4618,_0x1b6a91=new LLMModelsCommand(),_0x54d74f=program[_0x2587b4(0x16a)](),_0x52e89b=await createTDXInstance(_0x54d74f),_0x13bc50=await _0x1b6a91[_0x2587b4(0xd4)]({'options':{..._0x54d74f,..._0x150f9e},'args':[],'tdx':_0x52e89b});process[_0x2587b4(0x18c)](_0x13bc50);});const projectCmd=llmCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x130))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2ca)),llmProjectListAction=async(_0x15a92b,_0x2ba457)=>{const _0x5cc151=a2_0x6a4618,_0x2f6cda=new LLMProjectsCommand(),_0x42c1c=program[_0x5cc151(0x16a)](),_0x46b569=await createTDXInstance(_0x42c1c),_0x3cf8f6=await _0x2f6cda['run']({'options':{..._0x42c1c,..._0x2ba457},'args':_0x15a92b?[_0x15a92b]:[],'tdx':_0x46b569});process[_0x5cc151(0x18c)](_0x3cf8f6);};projectCmd['command'](a2_0x6a4618(0x108))['description'](a2_0x6a4618(0x2b9))['action'](llmProjectListAction),llmCmd['command']('projects\x20[pattern]')['description'](a2_0x6a4618(0x28e))[a2_0x6a4618(0x26d)](llmProjectListAction),projectCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x235))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x245))['option'](a2_0x6a4618(0x2c0),a2_0x6a4618(0xec))['action'](async(_0x4b7c42,_0x22a5c0)=>{const _0x2a3dd7=a2_0x6a4618,_0x35b488=new LLMProjectCreateCommand(),_0x2e7809=program['opts'](),_0x4cbf10=await createTDXInstance(_0x2e7809),_0x14a73d=await _0x35b488['run']({'options':{..._0x2e7809,..._0x22a5c0},'args':[_0x4b7c42],'tdx':_0x4cbf10});process[_0x2a3dd7(0x18c)](_0x14a73d);}),projectCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2bb))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2db))[a2_0x6a4618(0x26d)](async(_0x446dad,_0x307545)=>{const _0x35dadf=a2_0x6a4618,_0x538346=new LLMProjectDeleteCommand(),_0x5eb824=program[_0x35dadf(0x16a)](),_0x10f29a=await createTDXInstance(_0x5eb824),_0x50fb1c=await _0x538346[_0x35dadf(0xd4)]({'options':{..._0x5eb824,..._0x307545},'args':[_0x446dad],'tdx':_0x10f29a});process['exit'](_0x50fb1c);}),projectCmd[a2_0x6a4618(0x1ab)]('backup\x20<name>')['description']('Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder')['option'](a2_0x6a4618(0xd5),'Output\x20folder\x20(default:\x20{project_name}.llm)')['option'](a2_0x6a4618(0x149),a2_0x6a4618(0x29b))[a2_0x6a4618(0x26d)](async(_0x57a458,_0x5f340d)=>{const _0x316455=a2_0x6a4618,_0x349008=new LLMProjectBackupCommand(),_0x287cb6=program[_0x316455(0x16a)](),_0x44612f=await createTDXInstance(_0x287cb6),_0x6bca45=await _0x349008['run']({'options':{..._0x287cb6,..._0x5f340d},'args':[_0x57a458],'tdx':_0x44612f});process[_0x316455(0x18c)](_0x6bca45);}),projectCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x16f))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x102))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1a0),a2_0x6a4618(0x193))['option'](a2_0x6a4618(0x149),a2_0x6a4618(0x1c1))[a2_0x6a4618(0x26d)](async(_0x13ea2d,_0x3df90e)=>{const _0x2d0fe6=a2_0x6a4618,_0x1d5b9f=new LLMProjectRestoreCommand(),_0x10e6f5=program[_0x2d0fe6(0x16a)](),_0x3fa755=await createTDXInstance(_0x10e6f5),_0x11e5c4=await _0x1d5b9f[_0x2d0fe6(0xd4)]({'options':{..._0x10e6f5,..._0x3df90e},'args':[_0x13ea2d],'tdx':_0x3fa755});process[_0x2d0fe6(0x18c)](_0x11e5c4);});const agentCmd=llmCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x23d))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2e3)),llmAgentListAction=async(_0x5ced27,_0x4422df)=>{const _0x5e404e=a2_0x6a4618,_0x279b4=new LLMAgentsCommand(),_0x3a79ff=program[_0x5e404e(0x16a)](),_0x237cb3=await createTDXInstance(_0x3a79ff),_0x353d40=await _0x279b4['run']({'options':{..._0x3a79ff,..._0x4422df},'args':_0x5ced27?[_0x5ced27]:[],'tdx':_0x237cb3});process[_0x5e404e(0x18c)](_0x353d40);};agentCmd['command']('list\x20[pattern]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x153))[a2_0x6a4618(0x26d)](llmAgentListAction),llmCmd['command'](a2_0x6a4618(0x117))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x166))[a2_0x6a4618(0x26d)](llmAgentListAction),agentCmd[a2_0x6a4618(0x1ab)]('show\x20<agent-name>')['description'](a2_0x6a4618(0x20e))['action'](async(_0x11591c,_0x208fb1)=>{const _0x52d88a=a2_0x6a4618,_0x3b0127=new LLMAgentShowCommand(),_0x4b22b0=program[_0x52d88a(0x16a)](),_0x316627=await createTDXInstance(_0x4b22b0),_0x5ef8c5=await _0x3b0127['run']({'options':{..._0x4b22b0,..._0x208fb1},'args':[_0x11591c],'tdx':_0x316627});process['exit'](_0x5ef8c5);}),agentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x235))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x14e))[a2_0x6a4618(0xd3)]('--system-prompt\x20<text>',a2_0x6a4618(0x238))[a2_0x6a4618(0xd3)]('--model\x20<name>',a2_0x6a4618(0x283),a2_0x6a4618(0xea))[a2_0x6a4618(0xd3)]('--starter-message\x20<text>',a2_0x6a4618(0x2d3))['option'](a2_0x6a4618(0x172),a2_0x6a4618(0x2af),'4')['option']('--temperature\x20<n>',a2_0x6a4618(0x1b5),'0.7')['action'](async(_0xafebc,_0x96b850)=>{const _0x133950=a2_0x6a4618,_0x5ccc0d=new LLMAgentCreateCommand(),_0x52ca7c=program['opts'](),_0x1a0a91=await createTDXInstance(_0x52ca7c),_0x3b0e97=await _0x5ccc0d[_0x133950(0xd4)]({'options':{..._0x52ca7c,..._0x96b850},'args':[_0xafebc],'tdx':_0x1a0a91});process[_0x133950(0x18c)](_0x3b0e97);}),agentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1c4))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x244))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x24e),'Agent\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x2dd),'Agent\x20prompt/instructions')['option']('--description\x20<text>',a2_0x6a4618(0x1a5))['option'](a2_0x6a4618(0x277),'Starter\x20message')[a2_0x6a4618(0x26d)](async(_0x109b1a,_0x5d87b7)=>{const _0x452da7=a2_0x6a4618,_0x11dac5=new LLMAgentUpdateCommand(),_0x4d2f0d=program[_0x452da7(0x16a)](),_0x4c84ac=await createTDXInstance(_0x4d2f0d),_0x5066cd=await _0x11dac5[_0x452da7(0xd4)]({'options':{..._0x4d2f0d,..._0x5d87b7},'args':[_0x109b1a],'tdx':_0x4c84ac});process[_0x452da7(0x18c)](_0x5066cd);}),agentCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xf5))[a2_0x6a4618(0x15d)]('Delete\x20an\x20agent')[a2_0x6a4618(0x26d)](async(_0x347179,_0x255044)=>{const _0x5e4491=a2_0x6a4618,_0x2db9bd=new LLMAgentDeleteCommand(),_0x44b7be=program[_0x5e4491(0x16a)](),_0x1a4392=await createTDXInstance(_0x44b7be),_0x422122=await _0x2db9bd[_0x5e4491(0xd4)]({'options':{..._0x44b7be,..._0x255044},'args':[_0x347179],'tdx':_0x1a4392});process[_0x5e4491(0x18c)](_0x422122);}),llmCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x12a))['description'](a2_0x6a4618(0x12e))['option'](a2_0x6a4618(0x17e),a2_0x6a4618(0x109))[a2_0x6a4618(0x26d)](async(_0x4ab4a6,_0x3ad1cb)=>{const _0x1b4985=a2_0x6a4618,_0x3d801a=new LLMHistoryCommand(),_0x4fd66c=program[_0x1b4985(0x16a)](),_0x4e7ce1=await createTDXInstance(_0x4fd66c),_0x22dcbc=await _0x3d801a[_0x1b4985(0xd4)]({'options':{..._0x4fd66c,..._0x3ad1cb},'args':_0x4ab4a6?[_0x4ab4a6]:[],'tdx':_0x4e7ce1});process[_0x1b4985(0x18c)](_0x22dcbc);}),llmCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x142))['description']('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x6a4618(0xd3)]('--port\x20<number>',a2_0x6a4618(0x247),'4000')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x16c),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x6a4618(0xd3)]('--agent\x20<name>',a2_0x6a4618(0x2c6))[a2_0x6a4618(0x26d)](async _0x1b0dc1=>{const _0x83938a=a2_0x6a4618,_0xed76f6=new LLMProxyCommand(),_0x24d1bb=program[_0x83938a(0x16a)](),_0x407d0c=await createTDXInstance(_0x24d1bb),_0x20a178={..._0x1b0dc1,'port':_0x1b0dc1[_0x83938a(0x17a)]?parseInt(_0x1b0dc1[_0x83938a(0x17a)],0xa):undefined},_0xdf861f=await _0xed76f6[_0x83938a(0xd4)]({'options':{..._0x24d1bb,..._0x20a178},'args':[],'tdx':_0x407d0c});process[_0x83938a(0x18c)](_0xdf861f);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x183))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x210))[a2_0x6a4618(0xd3)]('--model\x20<name>',a2_0x6a4618(0x1cc),a2_0x6a4618(0x1f6))['option'](a2_0x6a4618(0x1e3),a2_0x6a4618(0x118))[a2_0x6a4618(0xfd)]()[a2_0x6a4618(0xe9)](!![])[a2_0x6a4618(0x266)](a2_0x6a4618(0xce),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20--\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20previous\x20Claude\x20Code\x20session\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x6a4618(0x26d)](async(_0x2c831e,_0x2dcf17)=>{const _0xc20e08=a2_0x6a4618,_0x261540=program[_0xc20e08(0x16a)](),_0x1a0f57=Array[_0xc20e08(0x289)](_0x2c831e)?_0x2c831e:[];if(_0x1a0f57[0x0]===_0xc20e08(0x2d7)){const _0xbc6053=new ClaudeStatuslineCommand(),_0x5aba4f=await _0xbc6053[_0xc20e08(0xd4)]({'options':{..._0x261540,..._0x2dcf17},'args':_0x1a0f57[_0xc20e08(0x27b)](0x1),'tdx':null});process[_0xc20e08(0x18c)](_0x5aba4f);}if(_0x1a0f57[0x0]==='usage'){const _0x70b94c=new ClaudeUsageCommand(),_0x11b002=await _0x70b94c[_0xc20e08(0xd4)]({'options':{..._0x261540,..._0x2dcf17},'args':_0x1a0f57['slice'](0x1),'tdx':null});process[_0xc20e08(0x18c)](_0x11b002);}const _0x354170=new ClaudeCommand(),_0x4571b6=await createTDXInstance(_0x261540),_0x18c449=await _0x354170[_0xc20e08(0xd4)]({'options':{..._0x261540,..._0x2dcf17},'args':_0x1a0f57,'tdx':_0x4571b6});process[_0xc20e08(0x18c)](_0x18c449);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x173))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x298))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xed),'Clear\x20session\x20context')[a2_0x6a4618(0x26d)](async _0x41edf5=>{const _0x2d110e=a2_0x6a4618,_0x209e31=new ContextCommand(),_0x584683=program['opts'](),_0x5e9cf1=await _0x209e31[_0x2d110e(0xd4)]({'options':{..._0x584683,..._0x41edf5},'args':[],'tdx':null});process['exit'](_0x5e9cf1);}),program[a2_0x6a4618(0x1ab)]('use\x20[resource]\x20[value]')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x249))['option'](a2_0x6a4618(0xed),a2_0x6a4618(0x18b))[a2_0x6a4618(0x26d)](async(_0x4a7ca6,_0x476e88,_0x4ec16c)=>{const _0x4bdb4b=a2_0x6a4618,_0x11431e=new UseCommand(),_0x391570=program[_0x4bdb4b(0x16a)](),_0x3ae1c8=[];if(_0x4a7ca6)_0x3ae1c8[_0x4bdb4b(0x1e6)](_0x4a7ca6);if(_0x476e88)_0x3ae1c8[_0x4bdb4b(0x1e6)](_0x476e88);const _0x2492af=await _0x11431e[_0x4bdb4b(0xd4)]({'options':{..._0x391570,..._0x4ec16c},'args':_0x3ae1c8,'tdx':null});process[_0x4bdb4b(0x18c)](_0x2492af);}),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x18e))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x2a2))['option']('--last',a2_0x6a4618(0x28f))[a2_0x6a4618(0x26d)](async _0x3c3e14=>{const _0x49795f=a2_0x6a4618,_0x206d44=new ChatsCommand(),_0x11b05f=program[_0x49795f(0x16a)](),_0x2dcb44=await createTDXInstance(_0x11b05f),_0x4f90a3=await _0x206d44[_0x49795f(0xd4)]({'options':{..._0x11b05f,..._0x3c3e14},'args':[],'tdx':_0x2dcb44});process[_0x49795f(0x18c)](_0x4f90a3);});const authCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1cf))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x240));async function runAuthStatusCommand(_0x4a3b7d){const _0x374afb=a2_0x6a4618,_0x2ab233=new AuthStatusCommand(),_0x36b353=program['opts'](),_0x54062e=await createTDXInstance(_0x36b353),_0xbdf6a7=await _0x2ab233[_0x374afb(0xd4)]({'options':{..._0x36b353,..._0x4a3b7d},'args':[],'tdx':_0x54062e});process[_0x374afb(0x18c)](_0xbdf6a7);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x6a4618(0x1ab)]('status')['description'](a2_0x6a4618(0x2e7))[a2_0x6a4618(0x26d)](runAuthStatusCommand),authCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xfa))['description'](a2_0x6a4618(0x2cf))[a2_0x6a4618(0x266)](a2_0x6a4618(0xce),a2_0x6a4618(0x2d6))[a2_0x6a4618(0x26d)](async _0x310eb3=>{const _0x913334=a2_0x6a4618,_0x73feac=new AuthSetupCommand(),_0x15f264=program['opts'](),_0x45637e=await createTDXInstance(_0x15f264),_0x22b7a7=await _0x73feac['run']({'options':{..._0x15f264,..._0x310eb3},'args':[],'tdx':_0x45637e});process[_0x913334(0x18c)](_0x22b7a7);}),authCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x177))['description'](a2_0x6a4618(0x1fb))['addHelpText']('after',a2_0x6a4618(0x101))[a2_0x6a4618(0x26d)](async _0x15151e=>{const _0x2a7b77=a2_0x6a4618,_0x150e63=new AuthClearCommand(),_0x6129c8=program[_0x2a7b77(0x16a)](),_0x2cdffc=await _0x150e63[_0x2a7b77(0xd4)]({'options':{..._0x6129c8,..._0x15151e},'args':[],'tdx':null});process[_0x2a7b77(0x18c)](_0x2cdffc);});const userCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x28c))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x11d)),userListAction=async _0x1428da=>{const _0x568ab4=a2_0x6a4618,_0x32f223=new UserListCommand(),_0x3ebd68=program[_0x568ab4(0x16a)](),_0x46a94f=await createTDXInstance(_0x3ebd68),_0x196b47=await _0x32f223[_0x568ab4(0xd4)]({'options':{..._0x3ebd68,..._0x1428da},'args':[],'tdx':_0x46a94f});process[_0x568ab4(0x18c)](_0x196b47);};userCmd[a2_0x6a4618(0x26d)](async _0x20dacc=>{const _0x5463fb=a2_0x6a4618,_0x22361c=new UserCommand(),_0x21580b=program['opts'](),_0x3c9436=await createTDXInstance(_0x21580b),_0x47a634=await _0x22361c['run']({'options':{..._0x21580b,..._0x20dacc},'args':[],'tdx':_0x3c9436});process[_0x5463fb(0x18c)](_0x47a634);}),userCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2b3))[a2_0x6a4618(0x15d)]('List\x20all\x20users\x20in\x20the\x20account')['action'](userListAction),program['command'](a2_0x6a4618(0x2ab))['description']('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')['action'](userListAction),program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x1f2))['description'](a2_0x6a4618(0x128))['action'](async _0x39314f=>{const _0x407632=a2_0x6a4618,_0x55e139=new ProfilesCommand(),_0x217f72=program[_0x407632(0x16a)](),_0x1aa905=await _0x55e139[_0x407632(0xd4)]({'options':{..._0x217f72,..._0x39314f},'args':[],'tdx':null});process['exit'](_0x1aa905);});const engageCmd=program[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x290))[a2_0x6a4618(0x15d)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0xd4aa6c=>{return async(_0x233e9b,_0x1460c3)=>{const _0x4c4c55=a2_0x3ba0,_0x3adc93=new _0xd4aa6c(),_0x3cf989=program['opts'](),_0x5b4ade=await createTDXInstance(_0x3cf989),_0x56f168=await _0x3adc93['run']({'options':{..._0x3cf989,..._0x1460c3},'args':[_0x233e9b],'tdx':_0x5b4ade});process[_0x4c4c55(0x18c)](_0x56f168);};},createEngageNoArgAction=_0x3d0eba=>{return async _0x635bea=>{const _0x3d0159=a2_0x3ba0,_0x4575b7=new _0x3d0eba(),_0x1fe87a=program[_0x3d0159(0x16a)](),_0x27599f=await createTDXInstance(_0x1fe87a),_0x29d2a7=await _0x4575b7[_0x3d0159(0xd4)]({'options':{..._0x1fe87a,..._0x635bea},'args':[],'tdx':_0x27599f});process['exit'](_0x29d2a7);};},campaignCmd=engageCmd[a2_0x6a4618(0x1ab)]('campaign')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x1f7)),campaignListAction=async(_0x5793a0,_0x4781f5)=>{const _0x514842=a2_0x6a4618,_0x1b706c=new EngageCampaignsCommand(),_0xf296cc=program[_0x514842(0x16a)](),_0x1c7074=await createTDXInstance(_0xf296cc),_0x195223=await _0x1b706c[_0x514842(0xd4)]({'options':{..._0xf296cc,..._0x4781f5},'args':_0x5793a0?[_0x5793a0]:[],'tdx':_0x1c7074});process[_0x514842(0x18c)](_0x195223);};campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x108))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x220))['option']('--type\x20<type>',a2_0x6a4618(0x2d9))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x12d),a2_0x6a4618(0x1f8))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),a2_0x6a4618(0x184))[a2_0x6a4618(0x26d)](campaignListAction),engageCmd['command'](a2_0x6a4618(0x197))[a2_0x6a4618(0x15d)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x6a4618(0xd3)]('--type\x20<type>',a2_0x6a4618(0x2d9))['option'](a2_0x6a4618(0x12d),a2_0x6a4618(0x1f8))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0x26d)](campaignListAction),campaignCmd['command']('show\x20<name-or-id>')[a2_0x6a4618(0x15d)]('Show\x20campaign\x20details')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0xd3)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x202))[a2_0x6a4618(0x15d)]('Create\x20a\x20new\x20campaign')[a2_0x6a4618(0x2cd)](a2_0x6a4618(0xf9),'Campaign\x20name')[a2_0x6a4618(0x2cd)](a2_0x6a4618(0x26c),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x6a4618(0xd3)]('--workspace\x20<name>','Workspace\x20name\x20(required)')['option']('--description\x20<desc>',a2_0x6a4618(0x1a7))[a2_0x6a4618(0xd3)]('--segment\x20<path>',a2_0x6a4618(0x20d))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x215),a2_0x6a4618(0x20f))['option'](a2_0x6a4618(0xeb),a2_0x6a4618(0x2d8))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1b0),a2_0x6a4618(0x22b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1b2),a2_0x6a4618(0x229))[a2_0x6a4618(0x26d)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command']('update\x20<name-or-id>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x275))[a2_0x6a4618(0xd3)]('--workspace\x20<name>',a2_0x6a4618(0x184))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf9),a2_0x6a4618(0x272))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x297),a2_0x6a4618(0x1a7))['option'](a2_0x6a4618(0x291),a2_0x6a4618(0x20d))[a2_0x6a4618(0xd3)]('--email-sender-id\x20<id>',a2_0x6a4618(0x20f))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xeb),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1b0),a2_0x6a4618(0x22b))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x1b2),a2_0x6a4618(0x229))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x6a4618(0xe5))[a2_0x6a4618(0x15d)]('Delete\x20a\x20campaign')[a2_0x6a4618(0xd3)]('--workspace\x20<name>','Workspace\x20name')[a2_0x6a4618(0xd3)](a2_0x6a4618(0xd1),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x205))['description'](a2_0x6a4618(0x21a))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x10c))[a2_0x6a4618(0x15d)]('Pause\x20a\x20campaign')[a2_0x6a4618(0xd3)]('--workspace\x20<name>','Workspace\x20name')[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x6a4618(0x1ab)]('resume\x20<name-or-id>')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x253))[a2_0x6a4618(0xd3)]('--workspace\x20<name>',a2_0x6a4618(0x184))[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2de))[a2_0x6a4618(0x15d)]('Duplicate\x20a\x20campaign')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),a2_0x6a4618(0x184))[a2_0x6a4618(0x26d)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command']('template')[a2_0x6a4618(0x15d)](a2_0x6a4618(0x29e)),templateListAction=async(_0x11c243,_0x519d56)=>{const _0x13455e=a2_0x6a4618,_0x2e6f12=new EngageTemplatesCommand(),_0x1f74b4=program[_0x13455e(0x16a)](),_0x58a12a=await createTDXInstance(_0x1f74b4),_0xc65296=await _0x2e6f12['run']({'options':{..._0x1f74b4,..._0x519d56},'args':_0x11c243?[_0x11c243]:[],'tdx':_0x58a12a});process[_0x13455e(0x18c)](_0xc65296);};templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x108))['description'](a2_0x6a4618(0x295))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0x26d)](templateListAction),engageCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2c7))[a2_0x6a4618(0x15d)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')['option'](a2_0x6a4618(0x147),'Workspace\x20name')[a2_0x6a4618(0x26d)](templateListAction),templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x192))[a2_0x6a4618(0x15d)]('Show\x20email\x20template\x20details')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),a2_0x6a4618(0x184))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x26f),a2_0x6a4618(0x23e))[a2_0x6a4618(0x26d)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x202))['description'](a2_0x6a4618(0x246))['requiredOption']('--name\x20<name>',a2_0x6a4618(0x2c9))[a2_0x6a4618(0x2cd)](a2_0x6a4618(0x232),a2_0x6a4618(0x2aa))[a2_0x6a4618(0x2cd)](a2_0x6a4618(0x1d3),a2_0x6a4618(0x250))['option']('--workspace\x20<name>',a2_0x6a4618(0x190))[a2_0x6a4618(0xd3)]('--plaintext\x20<text>','Plaintext\x20template\x20content')['option'](a2_0x6a4618(0x106),a2_0x6a4618(0x1d6))[a2_0x6a4618(0x26d)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x169))['description']('Update\x20an\x20email\x20template')[a2_0x6a4618(0xd3)](a2_0x6a4618(0x147),a2_0x6a4618(0x184))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xf9),a2_0x6a4618(0x1da))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x232),a2_0x6a4618(0x2aa))[a2_0x6a4618(0xd3)]('--html\x20<html>',a2_0x6a4618(0x250))['option'](a2_0x6a4618(0x1e8),a2_0x6a4618(0x144))[a2_0x6a4618(0x26d)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xe5))['description'](a2_0x6a4618(0x12c))[a2_0x6a4618(0xd3)]('--workspace\x20<name>',a2_0x6a4618(0x184))[a2_0x6a4618(0xd3)](a2_0x6a4618(0xd1),a2_0x6a4618(0x115))[a2_0x6a4618(0x26d)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x204))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xde)),workspaceListAction=async(_0x1947a6,_0x37efd5)=>{const _0x3eabd6=a2_0x6a4618,_0xae16eb=new EngageWorkspacesCommand(),_0x3411c1=program[_0x3eabd6(0x16a)](),_0x58664b=await createTDXInstance(_0x3411c1),_0x4df04c=await _0xae16eb[_0x3eabd6(0xd4)]({'options':{..._0x3411c1,..._0x37efd5},'args':_0x1947a6?[_0x1947a6]:[],'tdx':_0x58664b});process['exit'](_0x4df04c);};workspaceCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x108))[a2_0x6a4618(0x15d)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x6a4618(0x26d)](workspaceListAction),engageCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2e4))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x293))[a2_0x6a4618(0x26d)](workspaceListAction),workspaceCmd['command'](a2_0x6a4618(0x192))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x228))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x26f),a2_0x6a4618(0x23e))[a2_0x6a4618(0x26d)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x202))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x120))[a2_0x6a4618(0x2cd)](a2_0x6a4618(0xf9),'Workspace\x20name')['option'](a2_0x6a4618(0x297),'Workspace\x20description')[a2_0x6a4618(0x26d)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x6a4618(0x1ab)]('update\x20<name-or-id>')[a2_0x6a4618(0x15d)]('Update\x20a\x20workspace')[a2_0x6a4618(0xd3)]('--name\x20<name>',a2_0x6a4618(0x260))[a2_0x6a4618(0xd3)](a2_0x6a4618(0x297),a2_0x6a4618(0x1b6))[a2_0x6a4618(0x26d)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0xe5))[a2_0x6a4618(0x15d)](a2_0x6a4618(0xcd))['option'](a2_0x6a4618(0xd1),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command']('use\x20<name>')[a2_0x6a4618(0x15d)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x6a4618(0x26d)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command']('connection')[a2_0x6a4618(0x15d)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x4cee5b=>{const _0x27bd03=a2_0x6a4618,_0xc73711=new ConnectionListCommand(),_0x1adaaa=program[_0x27bd03(0x16a)](),_0x1aacfb=await createTDXInstance(_0x1adaaa),_0x4c0f66=await _0xc73711[_0x27bd03(0xd4)]({'options':{..._0x1adaaa,..._0x4cee5b},'args':[],'tdx':_0x1aacfb});process['exit'](_0x4c0f66);};connectionCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2b3))[a2_0x6a4618(0x15d)]('List\x20all\x20data\x20connections')[a2_0x6a4618(0x26d)](connectionListAction),program['command']('connections',{'hidden':!![]})['description'](a2_0x6a4618(0x1b8))[a2_0x6a4618(0x26d)](connectionListAction),connectionCmd[a2_0x6a4618(0x1ab)](a2_0x6a4618(0x2a5))[a2_0x6a4618(0x15d)](a2_0x6a4618(0x21c))[a2_0x6a4618(0x26d)](async(_0x545fe8,_0x14ed0f)=>{const _0x184a94=a2_0x6a4618,_0x3439ee=new ConnectionShowCommand(),_0x5b9792=program[_0x184a94(0x16a)](),_0x5984f7=await createTDXInstance(_0x5b9792),_0x39d670=await _0x3439ee[_0x184a94(0xd4)]({'options':{..._0x5b9792,..._0x14ed0f},'args':[_0x545fe8],'tdx':_0x5984f7});process['exit'](_0x39d670);});export{program};export function runCLI(){const _0x36b53c=a2_0x6a4618;program['parse'](process[_0x36b53c(0x1d0)]);!process[_0x36b53c(0x1d0)][_0x36b53c(0x27b)](0x2)[_0x36b53c(0x19e)]&&program[_0x36b53c(0xdb)]();const _0x1785a5=packageJson[_0x36b53c(0x214)];process[_0x36b53c(0x1e1)]['isTTY']&&process[_0x36b53c(0x1d0)][_0x36b53c(0x19e)]>0x2&&!_0x1785a5[_0x36b53c(0x2b1)]('.dev')&&checkForUpdate(_0x1785a5)[_0x36b53c(0x1e5)](_0x43cb44=>{_0x43cb44&&displayUpdateNotification(_0x43cb44);})[_0x36b53c(0x159)](()=>{});}
|