@treasuredata/tdx 0.6.0 → 0.7.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 +1 -1
- 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 +8 -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.d.ts +4 -0
- package/dist/client/http-client.d.ts.map +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/http-client.js.map +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.js +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/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 +149 -4
- 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 +24 -0
- 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.js +1 -1
- package/dist/commands/segment-fields-command.d.ts.map +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-fields-command.js.map +1 -1
- package/dist/commands/segment-pwd-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segments.js +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/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- 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/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/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.d.ts +1 -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/parent-segment-preview.d.ts +187 -0
- package/dist/sdk/segment/parent-segment-preview.d.ts.map +1 -0
- package/dist/sdk/segment/parent-segment-preview.js +1 -0
- package/dist/sdk/segment/parent-segment-preview.js.map +1 -0
- package/dist/sdk/segment/parent-segment-yaml.d.ts +246 -0
- package/dist/sdk/segment/parent-segment-yaml.d.ts.map +1 -0
- package/dist/sdk/segment/parent-segment-yaml.js +1 -0
- package/dist/sdk/segment/parent-segment-yaml.js.map +1 -0
- package/dist/sdk/segment.d.ts +98 -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/workflow.d.ts.map +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/sdk/workflow.js.map +1 -1
- package/dist/types/cdp.d.ts +21 -0
- package/dist/types/cdp.d.ts.map +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/agent-ref-parser.js +1 -1
- package/dist/utils/chat-cache.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/diff.d.ts +26 -0
- package/dist/utils/diff.d.ts.map +1 -0
- package/dist/utils/diff.js +1 -0
- package/dist/utils/diff.js.map +1 -0
- package/dist/utils/fields-display.d.ts +31 -0
- package/dist/utils/fields-display.d.ts.map +1 -0
- package/dist/utils/fields-display.js +1 -0
- package/dist/utils/fields-display.js.map +1 -0
- 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.d.ts +9 -1
- package/dist/utils/prompt.d.ts.map +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/prompt.js.map +1 -1
- package/dist/utils/segment-path-parser.js +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-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 +1 -1
package/dist/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(
|
|
2
|
+
(function(_0x51323d,_0x3805de){var _0x3a2099=a0_0x4232,_0x67e6fe=_0x51323d();while(!![]){try{var _0x2f335c=-parseInt(_0x3a2099(0xf4))/0x1+parseInt(_0x3a2099(0xf5))/0x2*(parseInt(_0x3a2099(0xf8))/0x3)+-parseInt(_0x3a2099(0xf1))/0x4+-parseInt(_0x3a2099(0xf0))/0x5+parseInt(_0x3a2099(0xef))/0x6*(parseInt(_0x3a2099(0xf6))/0x7)+parseInt(_0x3a2099(0xf7))/0x8+-parseInt(_0x3a2099(0xf3))/0x9*(-parseInt(_0x3a2099(0xf2))/0xa);if(_0x2f335c===_0x3805de)break;else _0x67e6fe['push'](_0x67e6fe['shift']());}catch(_0xcb9a25){_0x67e6fe['push'](_0x67e6fe['shift']());}}}(a0_0x2a5e,0x73df8));function a0_0x4232(_0x510bc4,_0x448cd5){var _0x2a5e96=a0_0x2a5e();return a0_0x4232=function(_0x423243,_0x28e1e9){_0x423243=_0x423243-0xef;var _0x4cb962=_0x2a5e96[_0x423243];return _0x4cb962;},a0_0x4232(_0x510bc4,_0x448cd5);}function a0_0x2a5e(){var _0x4ed6f1=['6vtarqw','6KSVtSD','1567465XziHQM','2348148PpbKbq','110MnplWE','659421imviaA','859794nTsTjp','347954TdvqBc','1466143lHbNWK','6972624ehZcfm'];a0_0x2a5e=function(){return _0x4ed6f1;};return a0_0x2a5e();}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", "activations", "engage"];
|
|
19
|
+
readonly commands: readonly ["segment", "parent-segment", "activations", "engage"];
|
|
20
20
|
}, {
|
|
21
21
|
readonly name: "AI";
|
|
22
22
|
readonly colorFn: import("chalk").ChalkInstance;
|
package/dist/cli-categories.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x7f021d=a1_0x2770;(function(_0x525b54,_0x975809){const _0x54664b=a1_0x2770,_0xb1739e=_0x525b54();while(!![]){try{const _0x15a5e9=-parseInt(_0x54664b(0x1fd))/0x1*(parseInt(_0x54664b(0x1e4))/0x2)+-parseInt(_0x54664b(0x1e2))/0x3+parseInt(_0x54664b(0x1f9))/0x4+-parseInt(_0x54664b(0x1fa))/0x5*(-parseInt(_0x54664b(0x1ec))/0x6)+parseInt(_0x54664b(0x1e3))/0x7+parseInt(_0x54664b(0x1f8))/0x8+parseInt(_0x54664b(0x200))/0x9*(-parseInt(_0x54664b(0x1df))/0xa);if(_0x15a5e9===_0x975809)break;else _0xb1739e['push'](_0xb1739e['shift']());}catch(_0x2f0c16){_0xb1739e['push'](_0xb1739e['shift']());}}}(a1_0x2738,0xc6a78));import a1_0xfa37af from'chalk';function a1_0x2770(_0x36c54f,_0x5f3ec9){const _0x27386a=a1_0x2738();return a1_0x2770=function(_0x27701b,_0x2cb123){_0x27701b=_0x27701b-0x1de;let _0x50dc24=_0x27386a[_0x27701b];return _0x50dc24;},a1_0x2770(_0x36c54f,_0x5f3ec9);}export const COMMAND_CATEGORIES=[{'name':a1_0x7f021d(0x1e1),'colorFn':a1_0xfa37af[a1_0x7f021d(0x1ef)],'commands':[a1_0x7f021d(0x1fe),a1_0x7f021d(0x1e5),a1_0x7f021d(0x1f4),'describe',a1_0x7f021d(0x1ee),a1_0x7f021d(0x1fb),a1_0x7f021d(0x1e6)]},{'name':a1_0x7f021d(0x1f6),'colorFn':a1_0xfa37af[a1_0x7f021d(0x1ed)],'commands':[a1_0x7f021d(0x1f5),a1_0x7f021d(0x1e7),'activations',a1_0x7f021d(0x1ea)]},{'name':'AI','colorFn':a1_0xfa37af[a1_0x7f021d(0x1eb)],'commands':[a1_0x7f021d(0x1e9),a1_0x7f021d(0x1f3),a1_0x7f021d(0x1e8),a1_0x7f021d(0x1f2)]},{'name':a1_0x7f021d(0x1de),'colorFn':a1_0xfa37af['yellow'],'commands':[a1_0x7f021d(0x1f7),'use',a1_0x7f021d(0x1f0),a1_0x7f021d(0x1ff)]},{'name':a1_0x7f021d(0x1e0),'colorFn':a1_0xfa37af[a1_0x7f021d(0x1fc)],'commands':[a1_0x7f021d(0x1f1)]}];function a1_0x2738(){const _0x1e8242=['auth','2889693muGIbb','Context','10AcakGJ','Utilities','Data','2668698txbBPQ','3546900panKQZ','2434siedCr','table','workflow','parent-segment','llm','chat','engage','cyan','81258uZFGbN','magenta','query','blue','profiles','api','claude','chats','show','segment','CDP','context','5798136MOhQZR','4185880FJllPE','375NkwNJz','job','green','1043vAfFyu','database'];a1_0x2738=function(){return _0x1e8242;};return a1_0x2738();}
|
|
@@ -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,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,CAAC;KACjE;IACD;QACE,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC;KAC7C;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK,CAAC,MAAM;QACrB,QAAQ,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC;KACjD;IACD;QACE,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,QAAQ,EAAE,CAAC,KAAK,CAAC;KAClB;CACO,CAAC"}
|
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;AAwJpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAo1E9B,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;;GAGG;AACH,wBAAgB,MAAM,IAAI,IAAI,CAwB7B"}
|
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x424988=a2_0x39d8;(function(_0x1e2e26,_0x18530e){const _0x4e41c9=a2_0x39d8,_0x3ead6f=_0x1e2e26();while(!![]){try{const _0x5a15c8=-parseInt(_0x4e41c9(0x193))/0x1*(parseInt(_0x4e41c9(0x2ab))/0x2)+parseInt(_0x4e41c9(0x2e8))/0x3+-parseInt(_0x4e41c9(0x29b))/0x4*(-parseInt(_0x4e41c9(0x23c))/0x5)+-parseInt(_0x4e41c9(0x183))/0x6*(-parseInt(_0x4e41c9(0x2aa))/0x7)+-parseInt(_0x4e41c9(0x171))/0x8*(-parseInt(_0x4e41c9(0x1ef))/0x9)+parseInt(_0x4e41c9(0x1a9))/0xa*(-parseInt(_0x4e41c9(0x1b6))/0xb)+-parseInt(_0x4e41c9(0x2a0))/0xc;if(_0x5a15c8===_0x18530e)break;else _0x3ead6f['push'](_0x3ead6f['shift']());}catch(_0x3aa803){_0x3ead6f['push'](_0x3ead6f['shift']());}}}(a2_0x3035,0xb26ba));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';function a2_0x3035(){const _0x2f5d06=['template','Folder\x20name\x20for\x20organization','Create\x20a\x20new\x20LLM\x20project','attempt','sessions\x20[project]','argv','--attributes\x20<json>','show\x20<job-id>','workspace','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--kind\x20<type>','folder','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','optionDescription','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Show\x20agent\x20details','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','Plaintext\x20template\x20content','--no-color','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','attempt:','database','--segment\x20<path>','Behaviors\x20from\x20JSON\x20file','--description\x20<desc>','473034YhxUZo','duplicate\x20<name-or-id>','--name\x20<name>','Override\x20project\x20name','delete\x20<name-or-id>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','chats','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Unknown\x20action:\x20','--force','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','Attributes\x20as\x20JSON\x20string','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','create','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)','option','New\x20campaign\x20name','session','workflows\x20[project]','Delete\x20an\x20agent','buildTime','Email\x20subject\x20template','us01','Workspace\x20description','--output\x20<file>','backup\x20<name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','jobs','repeat','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','claude-4.5-sonnet','argument','Parent\x20folder\x20name\x20for\x20nested\x20folders','create\x20<parent_name>\x20<folder_name>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Segment\x20description','-r,\x20--recursive','--llm-project\x20<name>','statusline','action','Include\x20retried\x20attempts','projects\x20[pattern]','-y,\x20--yes','--debug','tdx\x20','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Template\x20name','Include\x20retried\x20attempts\x20(for\x20list)','INFO','utf-8','site','Attributes\x20from\x20JSON\x20file','Show\x20email\x20template\x20details','Submit\x20a\x20job','use\x20<path>','--catalog\x20<catalog>','url','--behaviors\x20<json>','--no-count-population','name','get','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','clear','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','agent','exit','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','Email\x20sender\x20ID\x20for\x20delivery','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20job\x20details','--trace','--params\x20<json>','Database\x20management\x20commands','Customer\x20group\x20as\x20JSON\x20string','campaigns\x20[pattern]','Create\x20a\x20new\x20agent\x20in\x20current\x20project','HTML\x20template\x20content','11678720ypHQia','--add-behaviors-file\x20<file>','--editor-type\x20<type>','--reason\x20<text>','--jsonl','update\x20<name-or-id>','padEnd','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','attempts\x20[project]','llm','0.7','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--skip-validation','Remove\x20API\x20key\x20from\x20system\x20keychain','resume\x20<name-or-id>','addHelpText','Starter\x20message','18Uxqxrp','[task-name]','allowUnknownOption','Get\x20job\x20results','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--table\x20<table>','build-info.json','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','kill\x20<job-id>','List\x20jobs','Read\x20query\x20from\x20file','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--status\x20<status>','-d,\x20--database\x20<database>','Agent\x20reference\x20(project-name/agent-name)','Start\x20a\x20new\x20chat\x20session','1pCRUtm','tsv','segments\x20[path]','Preview\x20operation\x20without\x20executing','after','CDP\x20segment\x20management\x20commands','--in\x20<database>','gitRevision','Add\x20behaviors\x20as\x20JSON\x20string','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--data\x20<data>','--schedule-option\x20<value>','Skip\x20confirmation\x20prompt','argumentDescription','TRACE','Segment\x20folder\x20management','Enable\x20verbose\x20logging','Options:','Move\x20to\x20folder','Workspace\x20name\x20(required)','show\x20<name-or-id>','Commands:','9410gghuki','parse','--include-subtasks','--json','Create\x20segment\x20folder','push','--starter-message\x20<text>','Create\x20a\x20new\x20campaign','delete\x20<project-name-or-id>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','-o,\x20--output\x20<folder>','Workflow\x20(Digdag)\x20management\x20commands','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','4543ZtyVGf','Update\x20parent\x20segment\x20(audience)','map','Force\x20retry\x20even\x20if\x20not\x20failed','Workspace\x20management','Workflow\x20attempt\x20management','DEBUG','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','--type\x20<api_type>','log','--job-type\x20<type>','--version','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--subject\x20<subject>','registeredArguments','noColor','Skip\x20confirmation\x20prompts','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','subcommandTerm','command','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Resume\x20from\x20specific\x20task','forEach','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','--color','json','--timezone\x20<tz>','required','../package.json','workspaces\x20[pattern]','subcommandDescription','then','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','description','Alias\x20for\x20--database\x20(natural\x20language\x20style)','\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','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields',',\x20version\x20','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','--max-depth\x20<depth>','stderr','agents\x20[pattern]','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--full','table','Campaign\x20type\x20(email\x20or\x20push)','workflow','use\x20<name>','Delete\x20an\x20LLM\x20project','System\x20prompt/instructions\x20(default:\x20empty)','show\x20[segment_name]','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','9eMJmZk','Campaign\x20name','--new','commands','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--temperature\x20<n>','desc','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','api\x20[endpoint]','--name\x20<new-name>','Update\x20an\x20email\x20template','--dry-run','segment','filter','--prompt\x20<text>','show\x20<agent-name>','templates\x20[pattern]','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Task\x20name\x20for\x20logs\x20action','--param\x20<key=value>','Reason\x20for\x20killing\x20the\x20attempt','--no-proxy','--parent-segment\x20<name>','Launch\x20a\x20campaign','--customer-group-file\x20<file>','claude\x20[args...]','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','opts','sql\x20[segment_name]','Set\x20operation\x20timeout\x20in\x20seconds','--from\x20<timestamp>','history\x20[chat-id]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','argumentTerm','--customer-group\x20<json>','Maximum\x20recursion\x20depth\x20(default:\x2010)','padWidth','flatMap','--to\x20<timestamp>','error','Email\x20template\x20management','--type\x20<type>','show\x20<folder_ref>','logs','--attributes-file\x20<file>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Authentication\x20management','--plaintext\x20<text>','summary','--clear','Usage:\x20','Add\x20attributes\x20from\x20JSON\x20file','List\x20available\x20LLM\x20models','Filtering\x20rule\x20as\x20JSON\x20string','preAction','Set\x20current\x20segment/folder\x20context\x20for\x20navigation','Database\x20to\x20query\x20(default:\x20information_schema)','New\x20segment\x20name','Kill\x20a\x20job','Update\x20a\x20campaign','Create\x20an\x20email\x20template','--system-prompt\x20<text>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','delete\x20<name>','Filtering\x20rule\x20from\x20JSON\x20file','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','alias','--model\x20<name>','list','End\x20time\x20filter\x20(ISO\x208601\x20format)','Maximum\x20tool\x20iterations\x20(default:\x204)','Workspace\x20name','-f,\x20--file\x20<path>','New\x20template\x20name','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','LLM\x20agent\x20management','10965zMMisy','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Updated\x20schedule\x20option','--workspace\x20<name>','run\x20<workflow>','hidden','[action]','--database\x20<db>','profiles','--in\x20<name>','outputHelp','databases\x20[pattern]','--limit\x20<rows>','slice','--parent-folder\x20<name>','Update\x20an\x20existing\x20agent','Table\x20management\x20commands','kill','--tsv','port','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--timeout\x20<seconds>','trace','Editor\x20type','restore\x20<folder>','--invisible','AI-native\x20CLI\x20for\x20Treasure\x20Data','Parent\x20segment\x20description','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--folder\x20<name>','--rule\x20<json>','Behaviors\x20as\x20JSON\x20string','commandUsage','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Delete\x20an\x20email\x20template','list\x20[project]','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','list\x20[pattern]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','length','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','apiKey','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Pause\x20a\x20campaign','--email-sender-id\x20<id>','Parent\x20segment\x20(audience)\x20management','create\x20<name>','GET','_hidden','Project\x20description','set','delete\x20<agent-name>','4000','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--name\x20<text>','join','Updated\x20description','show\x20[table]','\x20-\x20built\x20','engage','--format\x20<format>','--name\x20<new_name>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Resume\x20from\x20specific\x20task\x20(retry)','chat\x20[message...]','Add\x20behaviors\x20from\x20JSON\x20file','isTTY','campaign','stdout','Revision\x20name\x20(default:\x20timestamp)','colorFn','--schedule-type\x20<type>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--session\x20<id>','--from-task\x20<task>','options','--add-attributes-file\x20<file>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Attempt\x20ID','Job\x20management\x20commands','Add\x20attributes\x20as\x20JSON\x20string','-H,\x20--header\x20<header>','Skip\x20population\x20counting','describe\x20[table]','requiredOption','--rule-file\x20<file>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--revision\x20<revision>','List\x20all\x20available\x20profiles','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','run','1276CVDqzn','Database\x20name\x20(default:\x20information_schema)','--port\x20<number>','query\x20[sql]','Folder\x20description','14054736frjJrh','Resume\x20a\x20paused\x20campaign','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Show\x20current\x20segment/folder\x20context','--start-at\x20<datetime>','push\x20[project-name-or-dir]','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','use\x20[resource]\x20[value]','version','2835203FJzSPs','2483002RSdVbb','--max-tool-iterations\x20<n>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--agent\x20<name>','includes','optionTerm','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','folders\x20<parent_name>','Model\x20name\x20(default:\x20claude-4.5-sonnet)','format','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--include-retried','models','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','logLevel','--yes','--description\x20<text>','replace','Create\x20a\x20workspace','Skip\x20validation\x20of\x20.dig\x20files','project','\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','jsonl','\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','configureHelp','parent','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','create\x20<segment_name>','Workflow\x20session\x20management','--limit\x20<number>','createAsync','retry'];a2_0x3035=function(){return _0x2f5d06;};return a2_0x3035();}import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentDescribeCommand,SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentCreateCommand,ParentSegmentUpdateCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{SegmentPwdCommand}from'./commands/segment-pwd-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta[a2_0x424988(0x15a)]),__dirname=dirname(__filename),packageJson=JSON[a2_0x424988(0x1aa)](readFileSync(join(__dirname,a2_0x424988(0x1d5)),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0x424988(0x1aa)](readFileSync(join(__dirname,a2_0x424988(0x189)),a2_0x424988(0x153)));}catch{}if(process['argv'][a2_0x424988(0x2af)](a2_0x424988(0x1c2))){let versionOutput=a2_0x424988(0x14e)+packageJson['version'];buildInfo[a2_0x424988(0x19a)]&&(versionOutput+='\x20('+buildInfo[a2_0x424988(0x19a)]+')'),buildInfo[a2_0x424988(0x136)]&&(versionOutput+=a2_0x424988(0x278)+buildInfo[a2_0x424988(0x136)]),console[a2_0x424988(0x1c0)](versionOutput),process[a2_0x424988(0x165)](0x0);}const program=new Command();let description=a2_0x424988(0x256);buildInfo['gitRevision']?description+=a2_0x424988(0x1df)+packageJson['version']+'\x20('+buildInfo[a2_0x424988(0x19a)]+')':description+=a2_0x424988(0x1df)+packageJson[a2_0x424988(0x2a9)];program[a2_0x424988(0x15d)]('tdx')['description'](description),program[a2_0x424988(0x131)]('-p,\x20--profile\x20<name>',a2_0x424988(0x13c))[a2_0x424988(0x131)]('--site\x20<site>',a2_0x424988(0x2c6),a2_0x424988(0x138))[a2_0x424988(0x131)](a2_0x424988(0x27a),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x424988(0x131)](a2_0x424988(0x1ac),a2_0x424988(0x1f3))[a2_0x424988(0x131)](a2_0x424988(0x175),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x424988(0x131)](a2_0x424988(0x24e),a2_0x424988(0x1b2))[a2_0x424988(0x131)](a2_0x424988(0x13a),'Save\x20output\x20to\x20file')[a2_0x424988(0x131)](a2_0x424988(0x2c9),a2_0x424988(0x27c))[a2_0x424988(0x131)](a2_0x424988(0x1d1),a2_0x424988(0x19c),![])[a2_0x424988(0x131)](a2_0x424988(0x2e1),a2_0x424988(0x1c3),![])[a2_0x424988(0x131)]('-v,\x20--verbose',a2_0x424988(0x1a3),![])[a2_0x424988(0x131)](a2_0x424988(0x14d),a2_0x424988(0x20a))[a2_0x424988(0x131)](a2_0x424988(0x16a),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x424988(0x131)](a2_0x424988(0x251),a2_0x424988(0x20d),'30')[a2_0x424988(0x131)](a2_0x424988(0x1fb),a2_0x424988(0x196),![])['option'](a2_0x424988(0x14c),a2_0x424988(0x1c7),![])[a2_0x424988(0x131)](a2_0x424988(0x288),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x424988(0x131)]('-d,\x20--database\x20<name>','Database\x20to\x20use\x20(overrides\x20context)')[a2_0x424988(0x131)](a2_0x424988(0x245),a2_0x424988(0x1db))['option'](a2_0x424988(0x206),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x424988(0x131)](a2_0x424988(0x147),a2_0x424988(0x2ef)),program[a2_0x424988(0x2c4)]({'formatHelp':(_0x493a8b,_0x57717f)=>{const _0x555bfe=a2_0x424988,_0x31cf7b=_0x57717f[_0x555bfe(0x214)](_0x493a8b,_0x57717f),_0x54a299=0x2,_0x4b3b5e=0x2;function _0x33c138(_0x21a704){const _0x1f8a51=_0x555bfe,_0xd2ac3c=_0x21a704;return!!(_0xd2ac3c[_0x1f8a51(0x26e)]||_0xd2ac3c[_0x1f8a51(0x241)]);}function _0x45ee80(_0x3d37b8,_0x71533b){const _0x4d4d44=_0x555bfe;if(_0x71533b){const _0x393ad2=''+_0x3d37b8[_0x4d4d44(0x177)](_0x31cf7b+_0x4b3b5e)+_0x71533b;return _0x393ad2;}return _0x3d37b8;}function _0xe4855f(_0x16b941){const _0x93d46a=_0x555bfe;return _0x16b941[_0x93d46a(0x275)]('\x0a')[_0x93d46a(0x2bd)](/^/gm,'\x20'[_0x93d46a(0x13e)](_0x54a299));}const _0x5f5d34=[];_0x5f5d34[_0x555bfe(0x1ae)](_0x555bfe(0x222)+_0x57717f[_0x555bfe(0x25c)](_0x493a8b));const _0x16b7bd=_0x57717f['commandDescription'](_0x493a8b);_0x16b7bd&&(_0x5f5d34[_0x555bfe(0x1ae)](''),_0x5f5d34[_0x555bfe(0x1ae)](_0x16b7bd));const _0x1af0e4=_0x493a8b[_0x555bfe(0x1f2)][_0x555bfe(0x1fd)](_0x556cb4=>!_0x33c138(_0x556cb4));if(_0x1af0e4['length']>0x0){if(_0x493a8b[_0x555bfe(0x15d)]()==='tdx'){const _0x278f4a=_0x493a8b[_0x555bfe(0x20b)](),_0x49b3a6=!_0x278f4a[_0x555bfe(0x1c6)]&&process[_0x555bfe(0x283)][_0x555bfe(0x281)],_0x419090=COMMAND_CATEGORIES,_0x476245=(_0x454e3e,_0x3f522f)=>_0x49b3a6?_0x3f522f(_0x454e3e):_0x454e3e,_0x3b1877=new Map();_0x1af0e4[_0x555bfe(0x1ce)](_0x5740dd=>{const _0x1e1d4f=_0x555bfe;_0x3b1877[_0x1e1d4f(0x270)](_0x5740dd[_0x1e1d4f(0x15d)](),_0x5740dd);}),_0x419090[_0x555bfe(0x1ce)](_0xbfc076=>{const _0x37d3d7=_0x555bfe,_0x39cbe0=_0xbfc076[_0x37d3d7(0x1f2)][_0x37d3d7(0x215)](_0x50d50b=>_0x3b1877[_0x37d3d7(0x15e)](_0x50d50b)??[]);if(_0x39cbe0[_0x37d3d7(0x263)]>0x0){_0x5f5d34[_0x37d3d7(0x1ae)](''),_0x5f5d34[_0x37d3d7(0x1ae)](_0x476245(_0xbfc076[_0x37d3d7(0x15d)]+':',_0xbfc076[_0x37d3d7(0x285)]));const _0x206ef8=_0x39cbe0[_0x37d3d7(0x1b8)](_0x178256=>{const _0x5eb5b4=_0x37d3d7,_0x4f9796=_0x57717f[_0x5eb5b4(0x1ca)](_0x178256),_0x377897=_0x57717f[_0x5eb5b4(0x1d7)](_0x178256);return _0x45ee80(_0x4f9796,_0x377897);});_0x5f5d34[_0x37d3d7(0x1ae)](_0xe4855f(_0x206ef8));}}),_0x5f5d34[_0x555bfe(0x1ae)](''),_0x5f5d34[_0x555bfe(0x1ae)](_0x555bfe(0x250));}else{const _0x1c9329=_0x1af0e4[_0x555bfe(0x1b8)](_0xd9823b=>{const _0xe9b8eb=_0x555bfe,_0x42015c=_0x57717f['subcommandTerm'](_0xd9823b),_0x1e787c=_0x57717f[_0xe9b8eb(0x1d7)](_0xd9823b);return _0x45ee80(_0x42015c,_0x1e787c);});_0x5f5d34[_0x555bfe(0x1ae)](''),_0x5f5d34['push'](_0x555bfe(0x1a8)),_0x5f5d34[_0x555bfe(0x1ae)](_0xe4855f(_0x1c9329));}}const _0x1388a2=_0x493a8b[_0x555bfe(0x28a)][_0x555bfe(0x1fd)](_0x947a9b=>!_0x33c138(_0x947a9b));if(_0x1388a2[_0x555bfe(0x263)]>0x0){const _0x22ceb0=_0x1388a2['map'](_0x337293=>{const _0x29e20b=_0x555bfe,_0xe07896=_0x57717f[_0x29e20b(0x2b0)](_0x337293),_0x118f71=_0x57717f[_0x29e20b(0x2da)](_0x337293);return _0x45ee80(_0xe07896,_0x118f71);});_0x5f5d34[_0x555bfe(0x1ae)](''),_0x5f5d34[_0x555bfe(0x1ae)](_0x555bfe(0x1a4)),_0x5f5d34['push'](_0xe4855f(_0x22ceb0));}const _0x24d5e7=(_0x493a8b[_0x555bfe(0x1c5)]||[])[_0x555bfe(0x1fd)](_0x5555af=>!_0x33c138(_0x5555af));if(_0x24d5e7[_0x555bfe(0x263)]>0x0){const _0x234357=_0x24d5e7[_0x555bfe(0x1b8)](_0x45c9cb=>{const _0x2b94c3=_0x555bfe,_0x5a72a0=_0x57717f[_0x2b94c3(0x211)](_0x45c9cb),_0x4dcc19=_0x57717f[_0x2b94c3(0x1a0)](_0x45c9cb);return _0x45ee80(_0x5a72a0,_0x4dcc19);});_0x5f5d34[_0x555bfe(0x1ae)](''),_0x5f5d34[_0x555bfe(0x1ae)]('Arguments:'),_0x5f5d34[_0x555bfe(0x1ae)](_0xe4855f(_0x234357));}return _0x5f5d34[_0x555bfe(0x275)]('\x0a');},'subcommandTerm':_0x45bec0=>{const _0x30d93c=a2_0x424988,_0x2c41e1=(_0x45bec0[_0x30d93c(0x1c5)]||[])[_0x30d93c(0x1b8)](_0x57a81=>_0x57a81[_0x30d93c(0x1d4)]?'<'+_0x57a81[_0x30d93c(0x15d)]()+'>':'['+_0x57a81[_0x30d93c(0x15d)]()+']')[_0x30d93c(0x275)]('\x20'),_0x59a5a0=_0x45bec0['aliases'](),_0x321bf9=_0x59a5a0[_0x30d93c(0x263)]>0x0?_0x45bec0['name']()+',\x20'+_0x59a5a0[_0x30d93c(0x275)](',\x20'):_0x45bec0[_0x30d93c(0x15d)]();return _0x2c41e1?_0x321bf9+'\x20'+_0x2c41e1:_0x321bf9;}}),program['hook'](a2_0x424988(0x226),_0x1a9d47=>{const _0xf493d0=a2_0x424988,_0x2ca5a8=_0x1a9d47[_0xf493d0(0x20b)]();if(!_0x2ca5a8[_0xf493d0(0x2b5)]){if(_0x2ca5a8[_0xf493d0(0x1d2)])_0x2ca5a8['format']=_0xf493d0(0x1d2);else{if(_0x2ca5a8[_0xf493d0(0x2c2)])_0x2ca5a8[_0xf493d0(0x2b5)]=_0xf493d0(0x2c2);else _0x2ca5a8['tsv']&&(_0x2ca5a8[_0xf493d0(0x2b5)]=_0xf493d0(0x194));}}_0x2ca5a8['in']&&!_0x2ca5a8[_0xf493d0(0x2e4)]&&(_0x2ca5a8[_0xf493d0(0x2e4)]=_0x2ca5a8['in']);if(_0x2ca5a8[_0xf493d0(0x252)])_0x2ca5a8[_0xf493d0(0x2ba)]=LogLevel[_0xf493d0(0x1a1)];else{if(_0x2ca5a8['debug'])_0x2ca5a8[_0xf493d0(0x2ba)]=LogLevel[_0xf493d0(0x1bc)];else _0x2ca5a8[_0xf493d0(0x2ba)]===undefined&&(_0x2ca5a8[_0xf493d0(0x2ba)]=LogLevel[_0xf493d0(0x152)]);}});async function createTDXInstance(_0x3ef650){const _0x2a0699=a2_0x424988,_0x3f97ce=await GlobalContext[_0x2a0699(0x2ca)](_0x3ef650);return _0x3f97ce['injectIntoOptions'](_0x3ef650),TDX[_0x2a0699(0x12f)]({'site':_0x3f97ce[_0x2a0699(0x154)],'apiKey':_0x3f97ce[_0x2a0699(0x266)],'logLevel':_0x3f97ce[_0x2a0699(0x2ba)],'profile':_0x3f97ce['profile']});}const databaseCmd=program[a2_0x424988(0x1cb)](a2_0x424988(0x2e4))[a2_0x424988(0x232)]('db')[a2_0x424988(0x1da)](a2_0x424988(0x16c)),databaseListAction=async(_0x3faea8,_0x1ce197)=>{const _0x1b9231=a2_0x424988,_0x3b4f17=new DatabasesCommand(),_0x14ce07=program[_0x1b9231(0x20b)](),_0x17975c=await createTDXInstance(_0x14ce07),_0x2832ae=await _0x3b4f17[_0x1b9231(0x29a)]({'options':{..._0x14ce07,..._0x1ce197},'args':_0x3faea8?[_0x3faea8]:[],'tdx':_0x17975c});process[_0x1b9231(0x165)](_0x2832ae);};databaseCmd[a2_0x424988(0x1cb)]('list\x20[pattern]')[a2_0x424988(0x1da)](a2_0x424988(0x17d))[a2_0x424988(0x149)](databaseListAction),program['command'](a2_0x424988(0x247),{'hidden':!![]})['description'](a2_0x424988(0x1c8))[a2_0x424988(0x149)](databaseListAction),program[a2_0x424988(0x1cb)](a2_0x424988(0x27f))['description'](a2_0x424988(0x28c))[a2_0x424988(0x131)]('--agent\x20<ref>',a2_0x424988(0x191))[a2_0x424988(0x131)](a2_0x424988(0x233),a2_0x424988(0x2b4))[a2_0x424988(0x131)](a2_0x424988(0x1f5),'Temperature\x20(0.0-2.0,\x20default:\x200.7)')[a2_0x424988(0x131)](a2_0x424988(0x1f1),a2_0x424988(0x192))[a2_0x424988(0x149)](async(_0x42fcba,_0x2174be)=>{const _0x349647=a2_0x424988,_0x5c476d=new ChatCommand(),_0x57aa69=program['opts'](),_0xa989d4=await createTDXInstance(_0x57aa69),_0x1be54c=await _0x5c476d[_0x349647(0x29a)]({'options':{..._0x57aa69,..._0x2174be},'args':_0x42fcba,'tdx':_0xa989d4});process['exit'](_0x1be54c);});const apiCmd=program[a2_0x424988(0x1cb)](a2_0x424988(0x1f8))[a2_0x424988(0x220)](a2_0x424988(0x258))[a2_0x424988(0x181)](a2_0x424988(0x197),a2_0x424988(0x2c1))['option']('-X,\x20--method\x20<method>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x424988(0x26d))[a2_0x424988(0x131)](a2_0x424988(0x19d),'Request\x20body\x20as\x20JSON\x20string')['option'](a2_0x424988(0x238),'Read\x20request\x20body\x20from\x20file')[a2_0x424988(0x131)](a2_0x424988(0x291),a2_0x424988(0x1e4),(_0x19b477,_0x513f22)=>{return _0x513f22?[..._0x513f22,_0x19b477]:[_0x19b477];})[a2_0x424988(0x131)](a2_0x424988(0x1bf),a2_0x424988(0x2db),'td')[a2_0x424988(0x149)](async(_0x4413a9,_0xd0c0d6)=>{const _0x3b828c=a2_0x424988;if(!_0x4413a9){apiCmd['help']();return;}const _0x2a797e=new ApiCommand(),_0x4a181a=program['opts'](),_0x11cdb3=await createTDXInstance(_0x4a181a),_0x18f892=await _0x2a797e['run']({'options':{..._0x4a181a,..._0xd0c0d6},'args':[_0x4413a9],'tdx':_0x11cdb3});process[_0x3b828c(0x165)](_0x18f892);}),tableCmd=program[a2_0x424988(0x1cb)](a2_0x424988(0x1e6))[a2_0x424988(0x1da)](a2_0x424988(0x24c)),tableListAction=async(_0x1167ee,_0x599f01)=>{const _0x48fc9a=a2_0x424988,_0x1b6cd6=new TablesCommand(),_0x2eb877=program[_0x48fc9a(0x20b)](),_0xdebd37=await createTDXInstance(_0x2eb877);_0x599f01['in']&&(_0x599f01[_0x48fc9a(0x2e4)]=_0x599f01['in']);const _0x310545=await _0x1b6cd6['run']({'options':{..._0x2eb877,..._0x599f01},'args':_0x1167ee?[_0x1167ee]:[],'tdx':_0xdebd37});process[_0x48fc9a(0x165)](_0x310545);};tableCmd['command'](a2_0x424988(0x261))[a2_0x424988(0x1da)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x424988(0x131)](a2_0x424988(0x190),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x424988(0x199),a2_0x424988(0x1db))[a2_0x424988(0x149)](tableListAction),program[a2_0x424988(0x1cb)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x424988(0x1da)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x424988(0x131)](a2_0x424988(0x190),a2_0x424988(0x2ed))[a2_0x424988(0x131)](a2_0x424988(0x199),a2_0x424988(0x1db))[a2_0x424988(0x149)](tableListAction),program['command'](a2_0x424988(0x277))[a2_0x424988(0x1da)](a2_0x424988(0x178))[a2_0x424988(0x131)](a2_0x424988(0x190),a2_0x424988(0x2e2))['option'](a2_0x424988(0x199),a2_0x424988(0x1db))['action'](async(_0x3cf236,_0x4426f5)=>{const _0xa0eb37=a2_0x424988,_0x44fff7=new ShowCommand(),_0x5ed3ad=program['opts'](),_0x2c36e8=await createTDXInstance(_0x5ed3ad);_0x4426f5['in']&&(_0x4426f5['database']=_0x4426f5['in']);const _0x397f8b=await _0x44fff7['run']({'options':{..._0x5ed3ad,..._0x4426f5},'args':_0x3cf236?[_0x3cf236]:[],'tdx':_0x2c36e8});process[_0xa0eb37(0x165)](_0x397f8b);}),program[a2_0x424988(0x1cb)](a2_0x424988(0x293))[a2_0x424988(0x232)](a2_0x424988(0x1f6))[a2_0x424988(0x1da)]('Describe\x20table\x20schema')['option']('-d,\x20--database\x20<database>',a2_0x424988(0x2e2))[a2_0x424988(0x131)]('--in\x20<database>',a2_0x424988(0x1db))['action'](async(_0x5145a7,_0x5a6a9e)=>{const _0x4f7189=a2_0x424988,_0x1274f3=new DescribeCommand(),_0x3ae195=program[_0x4f7189(0x20b)](),_0x6b9dd0=await createTDXInstance(_0x3ae195);_0x5a6a9e['in']&&(_0x5a6a9e[_0x4f7189(0x2e4)]=_0x5a6a9e['in']);const _0x3ad1e8=await _0x1274f3[_0x4f7189(0x29a)]({'options':{..._0x3ae195,..._0x5a6a9e},'args':_0x5145a7?[_0x5145a7]:[],'tdx':_0x6b9dd0});process['exit'](_0x3ad1e8);}),program[a2_0x424988(0x1cb)](a2_0x424988(0x29e))['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x424988(0x131)]('-d,\x20--database\x20<database>',a2_0x424988(0x228))[a2_0x424988(0x131)](a2_0x424988(0x199),a2_0x424988(0x1db))['option'](a2_0x424988(0x159),'Trino\x20catalog\x20(default:\x20td)')['option'](a2_0x424988(0x238),'Read\x20SQL\x20query\x20from\x20file')['option'](a2_0x424988(0x248),a2_0x424988(0x260),'40')['action'](async(_0x357298,_0x216bee)=>{const _0x5f5113=a2_0x424988,_0x14de0e=new QueryCommand(),_0x465b67=program['opts'](),_0x38a409=await createTDXInstance(_0x465b67);_0x216bee['in']&&(_0x216bee['database']=_0x216bee['in']);const _0x16592b=await _0x14de0e['run']({'options':{..._0x465b67,..._0x216bee},'args':_0x357298?[_0x357298]:[],'tdx':_0x38a409});process[_0x5f5113(0x165)](_0x16592b);});const segmentCmd=program[a2_0x424988(0x1cb)](a2_0x424988(0x1fc))[a2_0x424988(0x1da)](a2_0x424988(0x198)),segmentListAction=async(_0x3ce398,_0x35d565)=>{const _0x1153ac=a2_0x424988,_0x25c187=new SegmentsCommand(),_0x2caa36=program[_0x1153ac(0x20b)](),_0x159dd5=await createTDXInstance(_0x2caa36),_0x4bb6d0=await _0x25c187[_0x1153ac(0x29a)]({'options':{..._0x2caa36,..._0x35d565},'args':_0x3ce398?[_0x3ce398]:[],'tdx':_0x159dd5});process[_0x1153ac(0x165)](_0x4bb6d0);};segmentCmd[a2_0x424988(0x1cb)]('list\x20[path]')[a2_0x424988(0x1da)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x424988(0x131)](a2_0x424988(0x146),a2_0x424988(0x1cf))[a2_0x424988(0x131)](a2_0x424988(0x1e1),a2_0x424988(0x213),'10')[a2_0x424988(0x149)](segmentListAction),program['command'](a2_0x424988(0x195),{'hidden':!![]})[a2_0x424988(0x1da)](a2_0x424988(0x15f))['option'](a2_0x424988(0x146),a2_0x424988(0x1cf))[a2_0x424988(0x131)](a2_0x424988(0x1e1),a2_0x424988(0x213),'10')[a2_0x424988(0x149)](segmentListAction),segmentCmd['command'](a2_0x424988(0x158))[a2_0x424988(0x1da)](a2_0x424988(0x227))[a2_0x424988(0x149)](async(_0x129717,_0x2a3844)=>{const _0x16995e=a2_0x424988,_0x348a70=new SegmentUseCommand(),_0x147644=program[_0x16995e(0x20b)](),_0x2f9da5=await createTDXInstance(_0x147644),_0x83eff3=await _0x348a70[_0x16995e(0x29a)]({'options':{..._0x147644,..._0x2a3844},'args':[_0x129717],'tdx':_0x2f9da5});process[_0x16995e(0x165)](_0x83eff3);}),segmentCmd[a2_0x424988(0x1cb)]('pwd')[a2_0x424988(0x1da)](a2_0x424988(0x2a3))[a2_0x424988(0x149)](async _0x2eefb1=>{const _0xb348fa=a2_0x424988,_0x5b4971=new SegmentPwdCommand(),_0x21f311=program['opts'](),_0x2dc2aa=await createTDXInstance(_0x21f311),_0x53d932=await _0x5b4971[_0xb348fa(0x29a)]({'options':{..._0x21f311,..._0x2eefb1},'args':[],'tdx':_0x2dc2aa});process[_0xb348fa(0x165)](_0x53d932);}),segmentCmd[a2_0x424988(0x1cb)]('describe\x20[segment_name]')[a2_0x424988(0x232)](a2_0x424988(0x1f6))[a2_0x424988(0x1da)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x424988(0x149)](async(_0x4380ae,_0x335c8d)=>{const _0x54258e=a2_0x424988,_0x8cde23=new SegmentDescribeCommand(),_0x1eed6a=program[_0x54258e(0x20b)](),_0x56c25b=await createTDXInstance(_0x1eed6a),_0x24925c=await _0x8cde23[_0x54258e(0x29a)]({'options':{..._0x1eed6a,..._0x335c8d},'args':_0x4380ae?[_0x4380ae]:[],'tdx':_0x56c25b});process[_0x54258e(0x165)](_0x24925c);}),segmentCmd['command'](a2_0x424988(0x1ec))['description'](a2_0x424988(0x296))['action'](async(_0x4c82e5,_0x3579fc)=>{const _0x5d0c50=a2_0x424988,_0x333d51=new SegmentShowCommand(),_0x1b4ec9=program['opts'](),_0x1bdef3=await createTDXInstance(_0x1b4ec9),_0x3e5d0c=await _0x333d51[_0x5d0c50(0x29a)]({'options':{..._0x1b4ec9,..._0x3579fc},'args':_0x4c82e5?[_0x4c82e5]:[],'tdx':_0x1bdef3});process[_0x5d0c50(0x165)](_0x3e5d0c);}),segmentCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2b3))[a2_0x424988(0x1da)](a2_0x424988(0x2b9))['action'](async(_0x248bf7,_0x2803fd)=>{const _0x32af54=a2_0x424988,_0x23f29d=new SegmentFolderListCommand(),_0x437f80=program[_0x32af54(0x20b)](),_0x283d1c=await createTDXInstance(_0x437f80),_0x1987de=await _0x23f29d[_0x32af54(0x29a)]({'options':{..._0x437f80,..._0x2803fd},'args':[_0x248bf7],'tdx':_0x283d1c});process[_0x32af54(0x165)](_0x1987de);});const folderCmd=segmentCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2d8))[a2_0x424988(0x1da)](a2_0x424988(0x1a2));folderCmd[a2_0x424988(0x1cb)](a2_0x424988(0x21a))[a2_0x424988(0x1da)](a2_0x424988(0x2dc))[a2_0x424988(0x149)](async(_0x4fe659,_0x734a13)=>{const _0x41b014=new SegmentFolderShowCommand(),_0xc540d3=program['opts'](),_0x45739c=await createTDXInstance(_0xc540d3),_0x793718=await _0x41b014['run']({'options':{..._0xc540d3,..._0x734a13},'args':[_0x4fe659],'tdx':_0x45739c});process['exit'](_0x793718);}),segmentCmd['command'](a2_0x424988(0x20c))[a2_0x424988(0x1da)](a2_0x424988(0x1f4))[a2_0x424988(0x149)](async(_0x5d5c0d,_0x58a962)=>{const _0x45a96d=a2_0x424988,_0x3b6e52=new SegmentSQLCommand(),_0x252741=program[_0x45a96d(0x20b)](),_0x1e4a87=await createTDXInstance(_0x252741),_0x478c4e=await _0x3b6e52[_0x45a96d(0x29a)]({'options':{..._0x252741,..._0x58a962},'args':_0x5d5c0d?[_0x5d5c0d]:[],'tdx':_0x1e4a87});process[_0x45a96d(0x165)](_0x478c4e);}),segmentCmd[a2_0x424988(0x1cb)]('fields\x20[parent_name]')['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x424988(0x149)](async(_0x24a5b4,_0x42ec4f)=>{const _0x167f72=a2_0x424988,_0x4fbe9d=new SegmentFieldsCommand(),_0x1ca0ef=program[_0x167f72(0x20b)](),_0x5b26c6=await createTDXInstance(_0x1ca0ef),_0x4d761c=await _0x4fbe9d[_0x167f72(0x29a)]({'options':{..._0x1ca0ef,..._0x42ec4f},'args':_0x24a5b4?[_0x24a5b4]:[],'tdx':_0x5b26c6});process[_0x167f72(0x165)](_0x4d761c);}),segmentCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2c7))[a2_0x424988(0x1da)](a2_0x424988(0x166))['option'](a2_0x424988(0x2bc),a2_0x424988(0x145))['option'](a2_0x424988(0x25a),a2_0x424988(0x225))[a2_0x424988(0x131)](a2_0x424988(0x295),a2_0x424988(0x230))[a2_0x424988(0x131)](a2_0x424988(0x259),a2_0x424988(0x2cd))['option'](a2_0x424988(0x2d7),a2_0x424988(0x23a))['option'](a2_0x424988(0x255),'Make\x20segment\x20invisible\x20(default:\x20visible)')['option'](a2_0x424988(0x15c),a2_0x424988(0x292))[a2_0x424988(0x149)](async(_0x18ce68,_0x317394)=>{const _0x31900b=a2_0x424988,_0x84b15e=new SegmentCreateCommand(),_0x5c0cfe=program[_0x31900b(0x20b)](),_0x14e11d=await createTDXInstance(_0x5c0cfe),_0x5536c6=await _0x84b15e[_0x31900b(0x29a)]({'options':{..._0x5c0cfe,..._0x317394},'args':[_0x18ce68],'tdx':_0x14e11d});process['exit'](_0x5536c6);}),segmentCmd[a2_0x424988(0x1cb)]('update\x20<segment_name>')[a2_0x424988(0x1da)](a2_0x424988(0x17c))[a2_0x424988(0x131)](a2_0x424988(0x27b),a2_0x424988(0x229))[a2_0x424988(0x131)](a2_0x424988(0x2bc),a2_0x424988(0x276))['option'](a2_0x424988(0x25a),a2_0x424988(0x162))[a2_0x424988(0x131)](a2_0x424988(0x295),a2_0x424988(0x144))[a2_0x424988(0x131)](a2_0x424988(0x259),a2_0x424988(0x1a5))[a2_0x424988(0x131)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x424988(0x149)](async(_0x47ec0e,_0x51d40e)=>{const _0x22cd13=a2_0x424988,_0xbc6279=new SegmentUpdateCommand(),_0x3b5590=program[_0x22cd13(0x20b)](),_0x45e85f=await createTDXInstance(_0x3b5590),_0x3b677e=await _0xbc6279[_0x22cd13(0x29a)]({'options':{..._0x3b5590,..._0x51d40e},'args':[_0x47ec0e],'tdx':_0x45e85f});process[_0x22cd13(0x165)](_0x3b677e);});const parentCmd=segmentCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2c5))[a2_0x424988(0x1da)](a2_0x424988(0x26b));parentCmd[a2_0x424988(0x1cb)](a2_0x424988(0x26c))[a2_0x424988(0x1da)]('Create\x20parent\x20segment\x20(audience)')[a2_0x424988(0x294)](a2_0x424988(0x243),'Master\x20database\x20name')[a2_0x424988(0x294)](a2_0x424988(0x188),'Master\x20table\x20name')[a2_0x424988(0x131)](a2_0x424988(0x2bc),a2_0x424988(0x257))[a2_0x424988(0x131)](a2_0x424988(0x286),a2_0x424988(0x22e))[a2_0x424988(0x131)](a2_0x424988(0x19e),a2_0x424988(0x2a6))[a2_0x424988(0x131)]('--timezone\x20<tz>','Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x424988(0x131)](a2_0x424988(0x2d2),a2_0x424988(0x2f3))[a2_0x424988(0x131)](a2_0x424988(0x21c),a2_0x424988(0x155))['option'](a2_0x424988(0x15b),a2_0x424988(0x25b))[a2_0x424988(0x131)]('--behaviors-file\x20<file>',a2_0x424988(0x2e6))[a2_0x424988(0x131)](a2_0x424988(0x212),a2_0x424988(0x16d))[a2_0x424988(0x131)](a2_0x424988(0x208),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x424988(0x149)](async(_0x1d8e5e,_0x35bae5)=>{const _0x4defc1=a2_0x424988,_0x479b34=new ParentSegmentCreateCommand(),_0x2a9450=program[_0x4defc1(0x20b)](),_0x404541=await createTDXInstance(_0x2a9450),_0x4bb7b0=await _0x479b34['run']({'options':{..._0x2a9450,..._0x35bae5},'args':[_0x1d8e5e],'tdx':_0x404541});process['exit'](_0x4bb7b0);}),parentCmd[a2_0x424988(0x1cb)]('update\x20<name>')[a2_0x424988(0x1da)](a2_0x424988(0x1b7))['option']('--description\x20<text>',a2_0x424988(0x276))['option'](a2_0x424988(0x286),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x424988(0x131)](a2_0x424988(0x19e),a2_0x424988(0x23e))[a2_0x424988(0x131)](a2_0x424988(0x1d3),'Updated\x20timezone')['option']('--add-attributes\x20<json>',a2_0x424988(0x290))['option'](a2_0x424988(0x28b),a2_0x424988(0x223))[a2_0x424988(0x131)]('--add-behaviors\x20<json>',a2_0x424988(0x19b))[a2_0x424988(0x131)](a2_0x424988(0x172),a2_0x424988(0x280))[a2_0x424988(0x149)](async(_0x41897a,_0x76a0c3)=>{const _0x262ada=a2_0x424988,_0x4bc619=new ParentSegmentUpdateCommand(),_0x2060c1=program[_0x262ada(0x20b)](),_0x3e460c=await createTDXInstance(_0x2060c1),_0x23c631=await _0x4bc619['run']({'options':{..._0x2060c1,..._0x76a0c3},'args':[_0x41897a],'tdx':_0x3e460c});process[_0x262ada(0x165)](_0x23c631);}),folderCmd['command'](a2_0x424988(0x143))['description'](a2_0x424988(0x1ad))['option'](a2_0x424988(0x2bc),a2_0x424988(0x29f))[a2_0x424988(0x131)](a2_0x424988(0x24a),a2_0x424988(0x142))[a2_0x424988(0x149)](async(_0x3f2f36,_0x33e44d,_0x465af3)=>{const _0x313605=a2_0x424988,_0x191794=new SegmentFolderCreateCommand(),_0x3cbab3=program[_0x313605(0x20b)](),_0x2bc4a5=await createTDXInstance(_0x3cbab3),_0x53e145=await _0x191794[_0x313605(0x29a)]({'options':{..._0x3cbab3,..._0x465af3},'args':[_0x3f2f36,_0x33e44d],'tdx':_0x2bc4a5});process[_0x313605(0x165)](_0x53e145);}),program[a2_0x424988(0x1cb)]('activations\x20<segment_name>')[a2_0x424988(0x1da)](a2_0x424988(0x273))[a2_0x424988(0x149)](async(_0x1b905f,_0x3ba9f9)=>{const _0x24db25=a2_0x424988,_0x40ddcf=new ActivationsCommand(),_0xfd6eb8=program[_0x24db25(0x20b)](),_0x5958f3=await createTDXInstance(_0xfd6eb8),_0x391c3a=await _0x40ddcf[_0x24db25(0x29a)]({'options':{..._0xfd6eb8,..._0x3ba9f9},'args':[_0x1b905f],'tdx':_0x5958f3});process['exit'](_0x391c3a);});const workflowCmd=program[a2_0x424988(0x1cb)](a2_0x424988(0x1e8))[a2_0x424988(0x232)]('wf')['description'](a2_0x424988(0x1b4)),wfProjectCmd=workflowCmd[a2_0x424988(0x1cb)]('project')['description']('Workflow\x20project\x20management'),wfProjectListAction=async(_0x184647,_0x221a5b)=>{const _0x106622=a2_0x424988,_0x3a3f73=new WorkflowProjectsCommand(),_0x29a496=program[_0x106622(0x20b)](),_0x5c11f0=await createTDXInstance(_0x29a496),_0x41f51e=await _0x3a3f73[_0x106622(0x29a)]({'options':{..._0x29a496,..._0x221a5b},'args':_0x184647?[_0x184647]:[],'tdx':_0x5c11f0});process[_0x106622(0x165)](_0x41f51e);};wfProjectCmd[a2_0x424988(0x1cb)](a2_0x424988(0x261))[a2_0x424988(0x1da)](a2_0x424988(0x28d))[a2_0x424988(0x149)](wfProjectListAction),workflowCmd[a2_0x424988(0x1cb)](a2_0x424988(0x14b))[a2_0x424988(0x1da)](a2_0x424988(0x21d))[a2_0x424988(0x149)](wfProjectListAction);const wfWorkflowListAction=async(_0x379dea,_0x503641)=>{const _0x4d7dc9=a2_0x424988,_0xc1ed47=new WorkflowWorkflowsCommand(),_0xa236de=program['opts'](),_0x517ce8=await createTDXInstance(_0xa236de),_0x31e83d=await _0xc1ed47[_0x4d7dc9(0x29a)]({'options':{..._0xa236de,..._0x503641},'args':_0x379dea?[_0x379dea]:[],'tdx':_0x517ce8});process[_0x4d7dc9(0x165)](_0x31e83d);};workflowCmd[a2_0x424988(0x1cb)](a2_0x424988(0x134))[a2_0x424988(0x1da)](a2_0x424988(0x2ad))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x424988(0x133))['description'](a2_0x424988(0x2c8)),wfSessionListAction=async(_0x4d2ae5,_0x332570)=>{const _0x502d94=a2_0x424988,_0x1b6e68=new WorkflowSessionsCommand(),_0xee6413=program[_0x502d94(0x20b)](),_0x49aeee=await createTDXInstance(_0xee6413),_0x1cd5d5=await _0x1b6e68[_0x502d94(0x29a)]({'options':{..._0xee6413,..._0x332570},'args':_0x4d2ae5?[_0x4d2ae5]:[],'tdx':_0x49aeee});process[_0x502d94(0x165)](_0x1cd5d5);};wfSessionCmd[a2_0x424988(0x1cb)](a2_0x424988(0x25f))['description'](a2_0x424988(0x267))['option'](a2_0x424988(0x18f),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x424988(0x131)]('--from\x20<timestamp>',a2_0x424988(0x14f))[a2_0x424988(0x131)](a2_0x424988(0x216),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2d0))[a2_0x424988(0x1da)](a2_0x424988(0x2f4))[a2_0x424988(0x131)](a2_0x424988(0x18f),a2_0x424988(0x2b6))[a2_0x424988(0x131)](a2_0x424988(0x20e),a2_0x424988(0x14f))['option'](a2_0x424988(0x216),a2_0x424988(0x235))[a2_0x424988(0x149)](wfSessionListAction);const wfAttemptListAction=async(_0x24a34f,_0x3e724a)=>{const _0xeaa135=a2_0x424988,_0x19b6bd=new WorkflowAttemptsCommand(),_0x809802=program[_0xeaa135(0x20b)](),_0xe320d3=await createTDXInstance(_0x809802),_0x1def0d=await _0x19b6bd['run']({'options':{..._0x809802,..._0x3e724a},'args':_0x24a34f?[_0x24a34f]:[],'tdx':_0xe320d3});process[_0xeaa135(0x165)](_0x1def0d);},attemptCmd=workflowCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2cf))[a2_0x424988(0x1da)](a2_0x424988(0x1bb))['argument']('[attempt-id]',a2_0x424988(0x28e))[a2_0x424988(0x141)](a2_0x424988(0x242),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x424988(0x141)](a2_0x424988(0x184),a2_0x424988(0x202))[a2_0x424988(0x131)](a2_0x424988(0x1ab),'Include\x20subtasks\x20in\x20tasks\x20output')['option'](a2_0x424988(0x174),a2_0x424988(0x204))[a2_0x424988(0x131)]('--resume-from\x20<task>',a2_0x424988(0x27e))['option'](a2_0x424988(0x16b),a2_0x424988(0x1c9))[a2_0x424988(0x131)](a2_0x424988(0x2f1),a2_0x424988(0x1b9))[a2_0x424988(0x131)](a2_0x424988(0x2b7),a2_0x424988(0x151))[a2_0x424988(0x149)](async(_0x2a2155,_0x22949b,_0x3e125f,_0xcb9cbc)=>{const _0x2016ac=a2_0x424988;if(_0x2a2155===_0x2016ac(0x234)){await wfAttemptListAction(_0x22949b,_0xcb9cbc);return;}if(!_0x2a2155){attemptCmd['help']();return;}const _0x40382b=program[_0x2016ac(0x20b)](),_0x56eb99=await createTDXInstance(_0x40382b);let _0x2715e1=0x0;if(!_0x22949b){const _0x28021e=new WorkflowAttemptCommand();_0x2715e1=await _0x28021e[_0x2016ac(0x29a)]({'options':{..._0x40382b,..._0xcb9cbc},'args':[_0x2a2155],'tdx':_0x56eb99});}else{if(_0x22949b===_0x2016ac(0x21b)){const _0xec9269=new WorkflowLogsCommand();_0x2715e1=await _0xec9269[_0x2016ac(0x29a)]({'options':{..._0x40382b,..._0xcb9cbc},'args':_0x3e125f?[_0x2a2155,_0x3e125f]:[_0x2a2155],'tdx':_0x56eb99});}else{if(_0x22949b==='tasks'){const _0x51bd75=new WorkflowTasksCommand();_0x2715e1=await _0x51bd75[_0x2016ac(0x29a)]({'options':{..._0x40382b,..._0xcb9cbc},'args':[_0x2a2155],'tdx':_0x56eb99});}else{if(_0x22949b===_0x2016ac(0x24d)){const _0xd5215f=new WorkflowKillCommand();_0x2715e1=await _0xd5215f[_0x2016ac(0x29a)]({'options':{..._0x40382b,..._0xcb9cbc},'args':[_0x2a2155],'tdx':_0x56eb99});}else{if(_0x22949b===_0x2016ac(0x2cb)){const _0x484d1e=new WorkflowRetryCommand();_0x2715e1=await _0x484d1e['run']({'options':{..._0x40382b,..._0xcb9cbc},'args':[_0x2016ac(0x2e3)+_0x2a2155],'tdx':_0x56eb99});}else console['error'](_0x2016ac(0x2f0)+_0x22949b),console[_0x2016ac(0x217)](_0x2016ac(0x268)),_0x2715e1=0x1;}}}}process['exit'](_0x2715e1);});attemptCmd['command'](a2_0x424988(0x25f))[a2_0x424988(0x1da)](a2_0x424988(0x2d6))['option'](a2_0x424988(0x2b7),a2_0x424988(0x14a))[a2_0x424988(0x149)](wfAttemptListAction),workflowCmd[a2_0x424988(0x1cb)](a2_0x424988(0x179))['description'](a2_0x424988(0x1d9))[a2_0x424988(0x131)](a2_0x424988(0x2b7),a2_0x424988(0x14a))[a2_0x424988(0x149)](wfAttemptListAction),workflowCmd['command']('retry\x20<session-id>')[a2_0x424988(0x1da)](a2_0x424988(0x1dd))[a2_0x424988(0x131)](a2_0x424988(0x289),a2_0x424988(0x1cd))[a2_0x424988(0x131)](a2_0x424988(0x16b),a2_0x424988(0x265))[a2_0x424988(0x149)](async(_0x4ce546,_0x5b7028)=>{const _0x22131d=a2_0x424988,_0x22805e=new WorkflowRetryCommand(),_0x1528ba=program['opts'](),_0x2606f6=await createTDXInstance(_0x1528ba),_0x517c04=await _0x22805e[_0x22131d(0x29a)]({'options':{..._0x1528ba,..._0x5b7028},'args':[_0x4ce546],'tdx':_0x2606f6});process[_0x22131d(0x165)](_0x517c04);}),workflowCmd[a2_0x424988(0x1cb)](a2_0x424988(0x240))[a2_0x424988(0x1da)](a2_0x424988(0x1be))[a2_0x424988(0x131)](a2_0x424988(0x203),'Workflow\x20parameter\x20(repeatable)',(_0x13e037,_0x4d34ea=[])=>[..._0x4d34ea,_0x13e037],[])['option']('--session-time\x20<time>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x424988(0x149)](async(_0x223c3c,_0x555770)=>{const _0x27b517=a2_0x424988,_0x395d24=new WorkflowRunCommand(),_0x2f6dba=program[_0x27b517(0x20b)](),_0x1e4bc1=await createTDXInstance(_0x2f6dba),_0x519200=await _0x395d24[_0x27b517(0x29a)]({'options':{..._0x2f6dba,..._0x555770},'args':[_0x223c3c],'tdx':_0x1e4bc1});process[_0x27b517(0x165)](_0x519200);}),workflowCmd[a2_0x424988(0x1cb)]('download\x20<project-name>\x20[output-dir]')[a2_0x424988(0x1da)](a2_0x424988(0x299))[a2_0x424988(0x131)](a2_0x424988(0x297),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x424988(0x149)](async(_0x4876e1,_0x3007a9,_0x4a508f)=>{const _0x7125dd=a2_0x424988,_0x1b9534=new WorkflowDownloadCommand(),_0x37aad1=program['opts'](),_0x435aa2=await createTDXInstance(_0x37aad1),_0x1033e2=await _0x1b9534['run']({'options':{..._0x37aad1,..._0x4a508f},'args':[_0x4876e1,_0x3007a9||'.'],'tdx':_0x435aa2});process[_0x7125dd(0x165)](_0x1033e2);}),workflowCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2a5))[a2_0x424988(0x1da)](a2_0x424988(0x2f2))[a2_0x424988(0x131)](a2_0x424988(0x2ea),a2_0x424988(0x2eb))['option'](a2_0x424988(0x297),a2_0x424988(0x284))[a2_0x424988(0x131)](a2_0x424988(0x17e),a2_0x424988(0x2bf))[a2_0x424988(0x149)](async(_0x207362,_0x1fbdf9)=>{const _0x1724d4=a2_0x424988,_0x1c2245=new WorkflowPushCommand(),_0x562115=program['opts'](),_0x364fee=await createTDXInstance(_0x562115),_0x1612fb=await _0x1c2245['run']({'options':{..._0x562115,..._0x1fbdf9},'args':_0x207362?[_0x207362]:[],'tdx':_0x364fee});process[_0x1724d4(0x165)](_0x1612fb);}),workflowCmd[a2_0x424988(0x1cb)](a2_0x424988(0x1b1))[a2_0x424988(0x1da)](a2_0x424988(0x231))[a2_0x424988(0x149)](async(_0x2cb9b2,_0x426357)=>{const _0x49abb3=a2_0x424988,_0x1818b4=new WorkflowDeleteCommand(),_0x4ff719=program[_0x49abb3(0x20b)](),_0x5209e1=await createTDXInstance(_0x4ff719),_0x4488d7=await _0x1818b4['run']({'options':{..._0x4ff719,..._0x426357},'args':[_0x2cb9b2],'tdx':_0x5209e1});process[_0x49abb3(0x165)](_0x4488d7);});const jobCmd=program[a2_0x424988(0x1cb)]('job')['description'](a2_0x424988(0x28f)),jobListAction=async _0x102b9c=>{const _0x250fd5=a2_0x424988,_0x5518d1=new JobListCommand(),_0x14d411=program[_0x250fd5(0x20b)](),_0x570db7=await createTDXInstance(_0x14d411),_0x4858a5=await _0x5518d1[_0x250fd5(0x29a)]({'options':{..._0x14d411,..._0x102b9c},'args':[],'tdx':_0x570db7});process[_0x250fd5(0x165)](_0x4858a5);};jobCmd[a2_0x424988(0x1cb)]('list')[a2_0x424988(0x1da)](a2_0x424988(0x18c))['option'](a2_0x424988(0x18f),a2_0x424988(0x2b2))[a2_0x424988(0x149)](jobListAction),program[a2_0x424988(0x1cb)](a2_0x424988(0x13d),{'hidden':!![]})[a2_0x424988(0x1da)](a2_0x424988(0x201))['option'](a2_0x424988(0x18f),a2_0x424988(0x2b2))[a2_0x424988(0x149)](jobListAction),jobCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2d3))[a2_0x424988(0x1da)](a2_0x424988(0x169))[a2_0x424988(0x149)](async(_0x3f0d84,_0x5d4871)=>{const _0x265f63=a2_0x424988,_0x3f990c=new JobShowCommand(),_0x224c55=program['opts'](),_0x1d52bc=await createTDXInstance(_0x224c55),_0x4eb3de=await _0x3f990c[_0x265f63(0x29a)]({'options':{..._0x224c55,..._0x5d4871},'args':[_0x3f0d84],'tdx':_0x1d52bc});process['exit'](_0x4eb3de);}),jobCmd[a2_0x424988(0x1cb)](a2_0x424988(0x18b))[a2_0x424988(0x1da)](a2_0x424988(0x22a))[a2_0x424988(0x149)](async(_0x33b4bd,_0x186a21)=>{const _0x435182=a2_0x424988,_0x2d4028=new JobKillCommand(),_0x2a85c1=program[_0x435182(0x20b)](),_0x21946c=await createTDXInstance(_0x2a85c1),_0x10d265=await _0x2d4028[_0x435182(0x29a)]({'options':{..._0x2a85c1,..._0x186a21},'args':[_0x33b4bd],'tdx':_0x21946c});process[_0x435182(0x165)](_0x10d265);}),jobCmd[a2_0x424988(0x1cb)]('submit\x20[query]')['description'](a2_0x424988(0x157))['option'](a2_0x424988(0x1c1),a2_0x424988(0x1b5),'trino')[a2_0x424988(0x131)](a2_0x424988(0x238),a2_0x424988(0x18d))[a2_0x424988(0x131)]('--database\x20<name>',a2_0x424988(0x29c),'information_schema')['action'](async(_0xe6f8a3,_0x408023)=>{const _0x2fd6f3=a2_0x424988,_0x20f4a7=new JobSubmitCommand(),_0x52019b=program[_0x2fd6f3(0x20b)](),_0x38f2f6=await createTDXInstance(_0x52019b),_0x5d60f0=await _0x20f4a7[_0x2fd6f3(0x29a)]({'options':{..._0x52019b,..._0x408023},'args':_0xe6f8a3?[_0xe6f8a3]:[],'tdx':_0x38f2f6});process[_0x2fd6f3(0x165)](_0x5d60f0);}),jobCmd[a2_0x424988(0x1cb)]('result\x20<job-id>')[a2_0x424988(0x1da)](a2_0x424988(0x186))['action'](async(_0x26ccd5,_0x53837a)=>{const _0x1bccd0=a2_0x424988,_0x3635bf=new JobResultCommand(),_0x115545=program[_0x1bccd0(0x20b)](),_0x461c0a=await createTDXInstance(_0x115545),_0x1d8acf=await _0x3635bf[_0x1bccd0(0x29a)]({'options':{..._0x115545,..._0x53837a},'args':[_0x26ccd5],'tdx':_0x461c0a});process[_0x1bccd0(0x165)](_0x1d8acf);});const llmCmd=program[a2_0x424988(0x1cb)](a2_0x424988(0x17a))[a2_0x424988(0x1da)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x424988(0x1cb)]('use\x20<project-name>')[a2_0x424988(0x1da)](a2_0x424988(0x1e0))[a2_0x424988(0x149)](async(_0x2e32ba,_0xfa034e)=>{const _0x399fc0=a2_0x424988,_0x130bd2=new LLMUseCommand(),_0x286f6e=program[_0x399fc0(0x20b)](),_0x1f8042=await createTDXInstance(_0x286f6e),_0xe1242b=await _0x130bd2[_0x399fc0(0x29a)]({'options':{..._0x286f6e,..._0xfa034e},'args':[_0x2e32ba],'tdx':_0x1f8042});process[_0x399fc0(0x165)](_0xe1242b);}),llmCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2b8))[a2_0x424988(0x1da)](a2_0x424988(0x224))[a2_0x424988(0x149)](async _0x1daf7b=>{const _0x22733b=a2_0x424988,_0x4a34d4=new LLMModelsCommand(),_0x482252=program[_0x22733b(0x20b)](),_0x1ff916=await createTDXInstance(_0x482252),_0x5304b3=await _0x4a34d4['run']({'options':{..._0x482252,..._0x1daf7b},'args':[],'tdx':_0x1ff916});process[_0x22733b(0x165)](_0x5304b3);});const projectCmd=llmCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2c0))['description']('LLM\x20project\x20management'),llmProjectListAction=async(_0x2d7901,_0x2e25f9)=>{const _0x539a75=a2_0x424988,_0xa390ef=new LLMProjectsCommand(),_0x33b771=program[_0x539a75(0x20b)](),_0xb1c432=await createTDXInstance(_0x33b771),_0x509457=await _0xa390ef[_0x539a75(0x29a)]({'options':{..._0x33b771,..._0x2e25f9},'args':_0x2d7901?[_0x2d7901]:[],'tdx':_0xb1c432});process[_0x539a75(0x165)](_0x509457);};projectCmd[a2_0x424988(0x1cb)](a2_0x424988(0x261))[a2_0x424988(0x1da)](a2_0x424988(0x187))['action'](llmProjectListAction),llmCmd['command'](a2_0x424988(0x14b))[a2_0x424988(0x1da)](a2_0x424988(0x168))['action'](llmProjectListAction),projectCmd['command']('create\x20<name>')[a2_0x424988(0x1da)](a2_0x424988(0x2ce))[a2_0x424988(0x131)]('--description\x20<text>',a2_0x424988(0x26f))['action'](async(_0x9e41b1,_0x592bf2)=>{const _0x3f545a=a2_0x424988,_0x4e69d4=new LLMProjectCreateCommand(),_0x2fbdc8=program['opts'](),_0x789ae5=await createTDXInstance(_0x2fbdc8),_0x142ac9=await _0x4e69d4['run']({'options':{..._0x2fbdc8,..._0x592bf2},'args':[_0x9e41b1],'tdx':_0x789ae5});process[_0x3f545a(0x165)](_0x142ac9);}),projectCmd[a2_0x424988(0x1cb)](a2_0x424988(0x22f))[a2_0x424988(0x1da)](a2_0x424988(0x1ea))[a2_0x424988(0x149)](async(_0x4c10b9,_0x9967bc)=>{const _0xf4134d=a2_0x424988,_0x1ed2f2=new LLMProjectDeleteCommand(),_0x385f54=program['opts'](),_0x271a7f=await createTDXInstance(_0x385f54),_0x4b1fb1=await _0x1ed2f2['run']({'options':{..._0x385f54,..._0x9967bc},'args':[_0x4c10b9],'tdx':_0x271a7f});process[_0xf4134d(0x165)](_0x4b1fb1);}),projectCmd[a2_0x424988(0x1cb)](a2_0x424988(0x13b))[a2_0x424988(0x1da)](a2_0x424988(0x2df))[a2_0x424988(0x131)](a2_0x424988(0x1b3),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x424988(0x131)](a2_0x424988(0x1fb),a2_0x424988(0x2dd))['action'](async(_0x204348,_0x5d97ce)=>{const _0x5a0762=a2_0x424988,_0x569bfd=new LLMProjectBackupCommand(),_0x393089=program[_0x5a0762(0x20b)](),_0x26d010=await createTDXInstance(_0x393089),_0xc24eef=await _0x569bfd[_0x5a0762(0x29a)]({'options':{..._0x393089,..._0x5d97ce},'args':[_0x204348],'tdx':_0x26d010});process['exit'](_0xc24eef);}),projectCmd['command'](a2_0x424988(0x254))[a2_0x424988(0x1da)]('Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder')[a2_0x424988(0x131)](a2_0x424988(0x1f9),a2_0x424988(0x1f7))['option'](a2_0x424988(0x1fb),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x424988(0x149)](async(_0x5d4785,_0x4bd0a6)=>{const _0x53cf3c=a2_0x424988,_0x4eefc3=new LLMProjectRestoreCommand(),_0x77258b=program[_0x53cf3c(0x20b)](),_0x3adf97=await createTDXInstance(_0x77258b),_0x3563c9=await _0x4eefc3['run']({'options':{..._0x77258b,..._0x4bd0a6},'args':[_0x5d4785],'tdx':_0x3adf97});process[_0x53cf3c(0x165)](_0x3563c9);});const agentCmd=llmCmd[a2_0x424988(0x1cb)](a2_0x424988(0x164))[a2_0x424988(0x1da)](a2_0x424988(0x23b)),llmAgentListAction=async(_0x4fe1fb,_0x574cbd)=>{const _0xe6b716=a2_0x424988,_0x3bae70=new LLMAgentsCommand(),_0x9f2ada=program[_0xe6b716(0x20b)](),_0x33fc2d=await createTDXInstance(_0x9f2ada),_0x67a8fc=await _0x3bae70['run']({'options':{..._0x9f2ada,..._0x574cbd},'args':_0x4fe1fb?[_0x4fe1fb]:[],'tdx':_0x33fc2d});process[_0xe6b716(0x165)](_0x67a8fc);};agentCmd[a2_0x424988(0x1cb)]('list\x20[pattern]')[a2_0x424988(0x1da)](a2_0x424988(0x160))[a2_0x424988(0x149)](llmAgentListAction),llmCmd[a2_0x424988(0x1cb)](a2_0x424988(0x1e3))[a2_0x424988(0x1da)](a2_0x424988(0x1ed))[a2_0x424988(0x149)](llmAgentListAction),agentCmd['command'](a2_0x424988(0x1ff))[a2_0x424988(0x1da)](a2_0x424988(0x2de))[a2_0x424988(0x149)](async(_0x366ab0,_0x453f1c)=>{const _0x5b2a39=a2_0x424988,_0x2f4321=new LLMAgentShowCommand(),_0x4115e3=program[_0x5b2a39(0x20b)](),_0x4f0dcd=await createTDXInstance(_0x4115e3),_0x4e8d9c=await _0x2f4321[_0x5b2a39(0x29a)]({'options':{..._0x4115e3,..._0x453f1c},'args':[_0x366ab0],'tdx':_0x4f0dcd});process[_0x5b2a39(0x165)](_0x4e8d9c);}),agentCmd[a2_0x424988(0x1cb)](a2_0x424988(0x26c))['description'](a2_0x424988(0x16f))[a2_0x424988(0x131)](a2_0x424988(0x22d),a2_0x424988(0x1eb))[a2_0x424988(0x131)]('--model\x20<name>',a2_0x424988(0x23d),a2_0x424988(0x140))[a2_0x424988(0x131)]('--starter-message\x20<text>',a2_0x424988(0x182))[a2_0x424988(0x131)](a2_0x424988(0x2ac),a2_0x424988(0x236),'4')[a2_0x424988(0x131)]('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x424988(0x17b))[a2_0x424988(0x149)](async(_0x18d45d,_0x20aaa6)=>{const _0x35a045=a2_0x424988,_0x21060b=new LLMAgentCreateCommand(),_0x4ae6a3=program[_0x35a045(0x20b)](),_0x180eff=await createTDXInstance(_0x4ae6a3),_0x9aa555=await _0x21060b[_0x35a045(0x29a)]({'options':{..._0x4ae6a3,..._0x20aaa6},'args':[_0x18d45d],'tdx':_0x180eff});process['exit'](_0x9aa555);}),agentCmd[a2_0x424988(0x1cb)]('update\x20<agent-name>')[a2_0x424988(0x1da)](a2_0x424988(0x24b))[a2_0x424988(0x131)](a2_0x424988(0x274),'Agent\x20name')[a2_0x424988(0x131)](a2_0x424988(0x1fe),'Agent\x20prompt/instructions')['option'](a2_0x424988(0x2bc),'Agent\x20description')['option'](a2_0x424988(0x1af),a2_0x424988(0x182))[a2_0x424988(0x149)](async(_0x1622e1,_0x113217)=>{const _0x3d2b7f=a2_0x424988,_0x37f842=new LLMAgentUpdateCommand(),_0x28b8e8=program[_0x3d2b7f(0x20b)](),_0x12432d=await createTDXInstance(_0x28b8e8),_0x4e2124=await _0x37f842[_0x3d2b7f(0x29a)]({'options':{..._0x28b8e8,..._0x113217},'args':[_0x1622e1],'tdx':_0x12432d});process[_0x3d2b7f(0x165)](_0x4e2124);}),agentCmd[a2_0x424988(0x1cb)](a2_0x424988(0x271))[a2_0x424988(0x1da)](a2_0x424988(0x135))[a2_0x424988(0x149)](async(_0x52622b,_0x312085)=>{const _0xa417e8=a2_0x424988,_0x2d7c38=new LLMAgentDeleteCommand(),_0x25b836=program[_0xa417e8(0x20b)](),_0x47168e=await createTDXInstance(_0x25b836),_0x5036de=await _0x2d7c38['run']({'options':{..._0x25b836,..._0x312085},'args':[_0x52622b],'tdx':_0x47168e});process['exit'](_0x5036de);}),llmCmd[a2_0x424988(0x1cb)](a2_0x424988(0x20f))[a2_0x424988(0x1da)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x424988(0x131)]('--last',a2_0x424988(0x1d0))['action'](async(_0x2b7d4f,_0x19bd50)=>{const _0x1e9feb=a2_0x424988,_0x37ba36=new LLMHistoryCommand(),_0x371fe0=program[_0x1e9feb(0x20b)](),_0x5e2701=await createTDXInstance(_0x371fe0),_0x318a14=await _0x37ba36[_0x1e9feb(0x29a)]({'options':{..._0x371fe0,..._0x19bd50},'args':_0x2b7d4f?[_0x2b7d4f]:[],'tdx':_0x5e2701});process['exit'](_0x318a14);}),llmCmd[a2_0x424988(0x1cb)]('proxy')[a2_0x424988(0x1da)](a2_0x424988(0x27d))[a2_0x424988(0x131)](a2_0x424988(0x29d),a2_0x424988(0x18e),a2_0x424988(0x272))[a2_0x424988(0x131)]('--project\x20<name>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')['option'](a2_0x424988(0x2ae),a2_0x424988(0x2d9))[a2_0x424988(0x149)](async _0x15d8b0=>{const _0x4837a9=a2_0x424988,_0x156180=new LLMProxyCommand(),_0x2b1d5d=program[_0x4837a9(0x20b)](),_0x566206=await createTDXInstance(_0x2b1d5d),_0x493592={..._0x15d8b0,'port':_0x15d8b0[_0x4837a9(0x24f)]?parseInt(_0x15d8b0[_0x4837a9(0x24f)],0xa):undefined},_0x1404a8=await _0x156180[_0x4837a9(0x29a)]({'options':{..._0x2b1d5d,..._0x493592},'args':[],'tdx':_0x566206});process[_0x4837a9(0x165)](_0x1404a8);}),program[a2_0x424988(0x1cb)](a2_0x424988(0x209))[a2_0x424988(0x1da)](a2_0x424988(0x130))[a2_0x424988(0x131)](a2_0x424988(0x233),a2_0x424988(0x1cc),'sonnet')['option'](a2_0x424988(0x205),a2_0x424988(0x210))[a2_0x424988(0x185)]()['allowExcessArguments'](!![])[a2_0x424988(0x181)](a2_0x424988(0x197),a2_0x424988(0x1dc))[a2_0x424988(0x149)](async(_0x3f1c5c,_0x43f0ff)=>{const _0x2a0562=a2_0x424988,_0x235857=program[_0x2a0562(0x20b)](),_0x2f62f9=Array['isArray'](_0x3f1c5c)?_0x3f1c5c:[];if(_0x2f62f9[0x0]===_0x2a0562(0x148)){const _0x17ccb7=new ClaudeStatuslineCommand(),_0x110d52=await _0x17ccb7[_0x2a0562(0x29a)]({'options':{..._0x235857,..._0x43f0ff},'args':_0x2f62f9[_0x2a0562(0x249)](0x1),'tdx':null});process[_0x2a0562(0x165)](_0x110d52);}if(_0x2f62f9[0x0]==='usage'){const _0x513ee9=new ClaudeUsageCommand(),_0x639d9d=await _0x513ee9[_0x2a0562(0x29a)]({'options':{..._0x235857,..._0x43f0ff},'args':_0x2f62f9['slice'](0x1),'tdx':null});process[_0x2a0562(0x165)](_0x639d9d);}const _0x4a4f9f=new ClaudeCommand(),_0x382824=await createTDXInstance(_0x235857),_0x3dde1c=await _0x4a4f9f['run']({'options':{..._0x235857,..._0x43f0ff},'args':_0x2f62f9,'tdx':_0x382824});process[_0x2a0562(0x165)](_0x3dde1c);}),program[a2_0x424988(0x1cb)]('context')['description'](a2_0x424988(0x2a2))[a2_0x424988(0x131)](a2_0x424988(0x221),'Clear\x20session\x20context')['action'](async _0x52eb47=>{const _0x54f344=a2_0x424988,_0x195277=new ContextCommand(),_0x58267f=program[_0x54f344(0x20b)](),_0x8458d8=await _0x195277[_0x54f344(0x29a)]({'options':{..._0x58267f,..._0x52eb47},'args':[],'tdx':null});process['exit'](_0x8458d8);}),program[a2_0x424988(0x1cb)](a2_0x424988(0x2a8))['description']('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')['option'](a2_0x424988(0x221),'Clear\x20session\x20context')[a2_0x424988(0x149)](async(_0x5c9de1,_0x120eac,_0x279a16)=>{const _0x17389c=a2_0x424988,_0x55b3c3=new UseCommand(),_0x233d0c=program[_0x17389c(0x20b)](),_0x5980ff=[];if(_0x5c9de1)_0x5980ff[_0x17389c(0x1ae)](_0x5c9de1);if(_0x120eac)_0x5980ff['push'](_0x120eac);const _0x3fb36c=await _0x55b3c3['run']({'options':{..._0x233d0c,..._0x279a16},'args':_0x5980ff,'tdx':null});process['exit'](_0x3fb36c);}),program[a2_0x424988(0x1cb)](a2_0x424988(0x2ee))[a2_0x424988(0x1da)]('Interactive\x20chat\x20selector')[a2_0x424988(0x131)]('--last','Show\x20the\x20most\x20recent\x20chat')[a2_0x424988(0x149)](async _0x1208dc=>{const _0x38e29e=a2_0x424988,_0xf41aaa=new ChatsCommand(),_0x2bed28=program[_0x38e29e(0x20b)](),_0x184042=await createTDXInstance(_0x2bed28),_0x19874f=await _0xf41aaa['run']({'options':{..._0x2bed28,..._0x1208dc},'args':[],'tdx':_0x184042});process[_0x38e29e(0x165)](_0x19874f);});const authCmd=program['command']('auth')[a2_0x424988(0x1da)](a2_0x424988(0x21e));async function runAuthStatusCommand(_0x3af96b){const _0x255fd7=a2_0x424988,_0x488a42=new AuthStatusCommand(),_0x258d55=program['opts'](),_0x426cd9=await createTDXInstance(_0x258d55),_0x5e9570=await _0x488a42[_0x255fd7(0x29a)]({'options':{..._0x258d55,..._0x3af96b},'args':[],'tdx':_0x426cd9});process[_0x255fd7(0x165)](_0x5e9570);}authCmd[a2_0x424988(0x149)](runAuthStatusCommand),authCmd[a2_0x424988(0x1cb)]('status')[a2_0x424988(0x1da)](a2_0x424988(0x2d5))['action'](runAuthStatusCommand),authCmd[a2_0x424988(0x1cb)]('setup')[a2_0x424988(0x1da)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x424988(0x181)](a2_0x424988(0x197),a2_0x424988(0x2c3))[a2_0x424988(0x149)](async _0x33423f=>{const _0x58e3cd=a2_0x424988,_0xff351b=new AuthSetupCommand(),_0x255da5=program[_0x58e3cd(0x20b)](),_0x1342d4=await createTDXInstance(_0x255da5),_0x1b206f=await _0xff351b[_0x58e3cd(0x29a)]({'options':{..._0x255da5,..._0x33423f},'args':[],'tdx':_0x1342d4});process[_0x58e3cd(0x165)](_0x1b206f);}),authCmd[a2_0x424988(0x1cb)](a2_0x424988(0x161))[a2_0x424988(0x1da)](a2_0x424988(0x17f))[a2_0x424988(0x181)](a2_0x424988(0x197),'\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_0x424988(0x149)](async _0x47c7b2=>{const _0x5ed805=a2_0x424988,_0x40d355=new AuthClearCommand(),_0x1caa3b=program[_0x5ed805(0x20b)](),_0x3135df=await _0x40d355['run']({'options':{..._0x1caa3b,..._0x47c7b2},'args':[],'tdx':null});process[_0x5ed805(0x165)](_0x3135df);}),program[a2_0x424988(0x1cb)](a2_0x424988(0x244))[a2_0x424988(0x1da)](a2_0x424988(0x298))['action'](async _0x4c10d1=>{const _0x35a7ec=a2_0x424988,_0x289ebd=new ProfilesCommand(),_0x8e072=program[_0x35a7ec(0x20b)](),_0x208e95=await _0x289ebd['run']({'options':{..._0x8e072,..._0x4c10d1},'args':[],'tdx':null});process[_0x35a7ec(0x165)](_0x208e95);});const engageCmd=program[a2_0x424988(0x1cb)](a2_0x424988(0x279))['description']('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x91cb8=>{return async(_0x63e94e,_0x4c0724)=>{const _0x5a93e5=a2_0x39d8,_0x154d26=new _0x91cb8(),_0x3a4e31=program[_0x5a93e5(0x20b)](),_0x5e317c=await createTDXInstance(_0x3a4e31),_0x17a1f3=await _0x154d26['run']({'options':{..._0x3a4e31,..._0x4c0724},'args':[_0x63e94e],'tdx':_0x5e317c});process['exit'](_0x17a1f3);};},createEngageNoArgAction=_0x54cd3b=>{return async _0x1284ca=>{const _0x420b7a=a2_0x39d8,_0x33ba4d=new _0x54cd3b(),_0x33f3cf=program[_0x420b7a(0x20b)](),_0x11d5d4=await createTDXInstance(_0x33f3cf),_0x5d4e9e=await _0x33ba4d['run']({'options':{..._0x33f3cf,..._0x1284ca},'args':[],'tdx':_0x11d5d4});process['exit'](_0x5d4e9e);};},campaignCmd=engageCmd[a2_0x424988(0x1cb)](a2_0x424988(0x282))[a2_0x424988(0x1da)]('Campaign\x20management'),campaignListAction=async(_0x5d1bcd,_0x3c338e)=>{const _0x10289a=a2_0x424988,_0x5d869a=new EngageCampaignsCommand(),_0x5915d3=program['opts'](),_0x33526d=await createTDXInstance(_0x5915d3),_0x46c337=await _0x5d869a[_0x10289a(0x29a)]({'options':{..._0x5915d3,..._0x3c338e},'args':_0x5d1bcd?[_0x5d1bcd]:[],'tdx':_0x33526d});process['exit'](_0x46c337);};campaignCmd['command'](a2_0x424988(0x261))[a2_0x424988(0x1da)](a2_0x424988(0x264))['option'](a2_0x424988(0x219),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x424988(0x131)](a2_0x424988(0x18f),a2_0x424988(0x2a7))[a2_0x424988(0x131)](a2_0x424988(0x23f),a2_0x424988(0x237))['action'](campaignListAction),engageCmd[a2_0x424988(0x1cb)](a2_0x424988(0x16e))[a2_0x424988(0x1da)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x424988(0x131)](a2_0x424988(0x219),a2_0x424988(0x25d))[a2_0x424988(0x131)]('--status\x20<status>',a2_0x424988(0x2a7))[a2_0x424988(0x131)](a2_0x424988(0x23f),a2_0x424988(0x237))['action'](campaignListAction),campaignCmd[a2_0x424988(0x1cb)]('show\x20<name-or-id>')[a2_0x424988(0x1da)]('Show\x20campaign\x20details')[a2_0x424988(0x131)](a2_0x424988(0x23f),a2_0x424988(0x237))[a2_0x424988(0x131)](a2_0x424988(0x1e5),a2_0x424988(0x1de))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x424988(0x1cb)]('create')[a2_0x424988(0x1da)](a2_0x424988(0x1b0))[a2_0x424988(0x294)](a2_0x424988(0x2ea),a2_0x424988(0x1f0))['requiredOption'](a2_0x424988(0x219),a2_0x424988(0x1e7))[a2_0x424988(0x131)](a2_0x424988(0x23f),a2_0x424988(0x1a6))['option'](a2_0x424988(0x2e7),'Campaign\x20description')[a2_0x424988(0x131)]('--segment\x20<path>',a2_0x424988(0x287))[a2_0x424988(0x131)](a2_0x424988(0x26a),a2_0x424988(0x167))[a2_0x424988(0x131)]('--json-columns\x20<cols>',a2_0x424988(0x262))[a2_0x424988(0x131)]('--start-at\x20<datetime>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x424988(0x131)](a2_0x424988(0x1d3),a2_0x424988(0x163))[a2_0x424988(0x149)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x424988(0x176))['description'](a2_0x424988(0x22b))[a2_0x424988(0x131)]('--workspace\x20<name>',a2_0x424988(0x237))['option']('--name\x20<name>',a2_0x424988(0x132))[a2_0x424988(0x131)](a2_0x424988(0x2e7),'Campaign\x20description')['option'](a2_0x424988(0x2e5),a2_0x424988(0x287))[a2_0x424988(0x131)]('--email-sender-id\x20<id>','Email\x20sender\x20ID\x20for\x20delivery')[a2_0x424988(0x131)]('--json-columns\x20<cols>',a2_0x424988(0x262))['option'](a2_0x424988(0x2a4),a2_0x424988(0x2b1))[a2_0x424988(0x131)]('--timezone\x20<tz>',a2_0x424988(0x163))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x424988(0x2ec))['description']('Delete\x20a\x20campaign')['option'](a2_0x424988(0x23f),a2_0x424988(0x237))[a2_0x424988(0x131)](a2_0x424988(0x2bb),'Skip\x20confirmation\x20prompt')[a2_0x424988(0x149)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x424988(0x1cb)]('launch\x20<name-or-id>')['description'](a2_0x424988(0x207))['option'](a2_0x424988(0x23f),a2_0x424988(0x237))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x424988(0x1cb)]('pause\x20<name-or-id>')[a2_0x424988(0x1da)](a2_0x424988(0x269))['option'](a2_0x424988(0x23f),a2_0x424988(0x237))[a2_0x424988(0x149)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x424988(0x1cb)](a2_0x424988(0x180))[a2_0x424988(0x1da)](a2_0x424988(0x2a1))['option'](a2_0x424988(0x23f),a2_0x424988(0x237))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x424988(0x2e9))[a2_0x424988(0x1da)]('Duplicate\x20a\x20campaign')['option'](a2_0x424988(0x23f),a2_0x424988(0x237))[a2_0x424988(0x149)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x424988(0x2cc))[a2_0x424988(0x1da)](a2_0x424988(0x218)),templateListAction=async(_0x5f3fdf,_0x32bec7)=>{const _0x46ff2b=a2_0x424988,_0x404d8b=new EngageTemplatesCommand(),_0x893b37=program[_0x46ff2b(0x20b)](),_0x4eeecf=await createTDXInstance(_0x893b37),_0x28ca80=await _0x404d8b[_0x46ff2b(0x29a)]({'options':{..._0x893b37,..._0x32bec7},'args':_0x5f3fdf?[_0x5f3fdf]:[],'tdx':_0x4eeecf});process[_0x46ff2b(0x165)](_0x28ca80);};templateCmd[a2_0x424988(0x1cb)](a2_0x424988(0x261))[a2_0x424988(0x1da)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x424988(0x131)](a2_0x424988(0x23f),a2_0x424988(0x237))['action'](templateListAction),engageCmd[a2_0x424988(0x1cb)](a2_0x424988(0x200))[a2_0x424988(0x1da)](a2_0x424988(0x13f))[a2_0x424988(0x131)]('--workspace\x20<name>',a2_0x424988(0x237))[a2_0x424988(0x149)](templateListAction),templateCmd[a2_0x424988(0x1cb)](a2_0x424988(0x1a7))[a2_0x424988(0x1da)](a2_0x424988(0x156))['option'](a2_0x424988(0x23f),a2_0x424988(0x237))[a2_0x424988(0x131)](a2_0x424988(0x1e5),a2_0x424988(0x1de))[a2_0x424988(0x149)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x424988(0x1cb)](a2_0x424988(0x12f))[a2_0x424988(0x1da)](a2_0x424988(0x22c))['requiredOption'](a2_0x424988(0x2ea),a2_0x424988(0x150))[a2_0x424988(0x294)](a2_0x424988(0x1c4),a2_0x424988(0x137))[a2_0x424988(0x294)]('--html\x20<html>',a2_0x424988(0x170))[a2_0x424988(0x131)]('--workspace\x20<name>',a2_0x424988(0x1a6))[a2_0x424988(0x131)](a2_0x424988(0x21f),a2_0x424988(0x2e0))['option'](a2_0x424988(0x173),a2_0x424988(0x253))[a2_0x424988(0x149)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command']('update\x20<name-or-id>')[a2_0x424988(0x1da)](a2_0x424988(0x1fa))[a2_0x424988(0x131)]('--workspace\x20<name>','Workspace\x20name')[a2_0x424988(0x131)]('--name\x20<name>',a2_0x424988(0x239))[a2_0x424988(0x131)](a2_0x424988(0x1c4),a2_0x424988(0x137))['option']('--html\x20<html>',a2_0x424988(0x170))[a2_0x424988(0x131)]('--plaintext\x20<text>',a2_0x424988(0x2e0))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2ec))[a2_0x424988(0x1da)](a2_0x424988(0x25e))[a2_0x424988(0x131)](a2_0x424988(0x23f),a2_0x424988(0x237))['option'](a2_0x424988(0x2bb),a2_0x424988(0x19f))[a2_0x424988(0x149)](createEngageAction(EngageTemplateDeleteCommand));function a2_0x39d8(_0x2f7307,_0x2d2e2f){const _0x303527=a2_0x3035();return a2_0x39d8=function(_0x39d821,_0x305bd3){_0x39d821=_0x39d821-0x12f;let _0x26307a=_0x303527[_0x39d821];return _0x26307a;},a2_0x39d8(_0x2f7307,_0x2d2e2f);}const workspaceCmd=engageCmd['command'](a2_0x424988(0x2d4))[a2_0x424988(0x1da)](a2_0x424988(0x1ba)),workspaceListAction=async(_0x4da93b,_0x1c5c88)=>{const _0xa65397=a2_0x424988,_0x22d431=new EngageWorkspacesCommand(),_0xb78ddc=program['opts'](),_0x548222=await createTDXInstance(_0xb78ddc),_0x15ae66=await _0x22d431[_0xa65397(0x29a)]({'options':{..._0xb78ddc,..._0x1c5c88},'args':_0x4da93b?[_0x4da93b]:[],'tdx':_0x548222});process['exit'](_0x15ae66);};workspaceCmd[a2_0x424988(0x1cb)](a2_0x424988(0x261))['description'](a2_0x424988(0x1ee))[a2_0x424988(0x149)](workspaceListAction),engageCmd[a2_0x424988(0x1cb)](a2_0x424988(0x1d6))[a2_0x424988(0x1da)](a2_0x424988(0x18a))[a2_0x424988(0x149)](workspaceListAction),workspaceCmd[a2_0x424988(0x1cb)](a2_0x424988(0x1a7))[a2_0x424988(0x1da)]('Show\x20workspace\x20details')[a2_0x424988(0x131)]('--full',a2_0x424988(0x1de))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x424988(0x1cb)](a2_0x424988(0x12f))['description'](a2_0x424988(0x2be))[a2_0x424988(0x294)](a2_0x424988(0x2ea),a2_0x424988(0x237))[a2_0x424988(0x131)](a2_0x424988(0x2e7),a2_0x424988(0x139))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x424988(0x1cb)]('update\x20<name-or-id>')[a2_0x424988(0x1da)]('Update\x20a\x20workspace')[a2_0x424988(0x131)](a2_0x424988(0x2ea),'New\x20workspace\x20name')[a2_0x424988(0x131)](a2_0x424988(0x2e7),'Workspace\x20description')['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x424988(0x1cb)](a2_0x424988(0x2ec))[a2_0x424988(0x1da)]('Delete\x20a\x20workspace')[a2_0x424988(0x131)]('--yes',a2_0x424988(0x19f))[a2_0x424988(0x149)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x424988(0x1cb)](a2_0x424988(0x1e9))['description'](a2_0x424988(0x1bd))['action'](createEngageAction(EngageWorkspaceUseCommand));export{program};export function runCLI(){const _0x5ae6b1=a2_0x424988;program['parse'](process[_0x5ae6b1(0x2d1)]);!process[_0x5ae6b1(0x2d1)][_0x5ae6b1(0x249)](0x2)['length']&&program[_0x5ae6b1(0x246)]();const _0x3e15ee=packageJson[_0x5ae6b1(0x2a9)];process[_0x5ae6b1(0x1e2)][_0x5ae6b1(0x281)]&&process['argv'][_0x5ae6b1(0x263)]>0x2&&!_0x3e15ee[_0x5ae6b1(0x2af)]('.dev')&&checkForUpdate(_0x3e15ee)[_0x5ae6b1(0x1d8)](_0x30c4a2=>{_0x30c4a2&&displayUpdateNotification(_0x30c4a2);})['catch'](()=>{});}
|
|
1
|
+
const a2_0x4bfcb6=a2_0x5c13;(function(_0x3cf6da,_0x44e091){const _0x3e5116=a2_0x5c13,_0x55ffd2=_0x3cf6da();while(!![]){try{const _0x1237b5=parseInt(_0x3e5116(0x37f))/0x1*(parseInt(_0x3e5116(0x2ec))/0x2)+parseInt(_0x3e5116(0x213))/0x3+-parseInt(_0x3e5116(0x2aa))/0x4*(parseInt(_0x3e5116(0x21f))/0x5)+-parseInt(_0x3e5116(0x262))/0x6+parseInt(_0x3e5116(0x2a8))/0x7*(-parseInt(_0x3e5116(0x1d1))/0x8)+parseInt(_0x3e5116(0x32b))/0x9+parseInt(_0x3e5116(0x2bc))/0xa*(-parseInt(_0x3e5116(0x1ea))/0xb);if(_0x1237b5===_0x44e091)break;else _0x55ffd2['push'](_0x55ffd2['shift']());}catch(_0x4df934){_0x55ffd2['push'](_0x55ffd2['shift']());}}}(a2_0x5947,0x90ff9));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';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentInfoCommand,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_0x4bfcb6(0x326)](readFileSync(join(__dirname,a2_0x4bfcb6(0x292)),a2_0x4bfcb6(0x1d5)));let buildInfo={};try{buildInfo=JSON[a2_0x4bfcb6(0x326)](readFileSync(join(__dirname,'build-info.json'),a2_0x4bfcb6(0x1d5)));}catch{}if(process['argv']['includes']('--version')){let versionOutput=a2_0x4bfcb6(0x1e6)+packageJson[a2_0x4bfcb6(0x37d)];buildInfo[a2_0x4bfcb6(0x370)]&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x4bfcb6(0x1fe)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x4bfcb6(0x1fe)]),console[a2_0x4bfcb6(0x1cf)](versionOutput),process[a2_0x4bfcb6(0x28a)](0x0);}const program=new Command();let description=a2_0x4bfcb6(0x2a6);function a2_0x5947(){const _0x3b127b=['kill','Delete\x20a\x20campaign','session','Create\x20a\x20new\x20campaign','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','desc','catch','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','database','--master','CDP\x20segment\x20management\x20commands','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--behavior\x20[name]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','argv','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','profile','JSON\x20columns\x20for\x20connector\x20(comma-separated)','-1d','--session-time\x20<time>','allowUnknownOption','--workspace\x20<name>','Customer\x20group\x20from\x20JSON\x20file','--no-proxy','forEach','--project\x20<name>','Updated\x20schedule\x20option','Output\x20file\x20path','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','TRACE','aliases','Describe\x20table\x20schema','push\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Filtering\x20rule\x20as\x20JSON\x20string','--starter-message\x20<text>','jsonl','Behaviors\x20from\x20JSON\x20file','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Add\x20behaviors\x20as\x20JSON\x20string','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','run\x20<workflow>','--params\x20<json>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Launch\x20a\x20campaign','profiles','pause\x20<name-or-id>','delete\x20<agent-name>','-d,\x20--database\x20<database>','_hidden','sessions\x20[project]','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Job\x20management\x20commands','Workspace\x20description','Workspace\x20name\x20(required)','--subject\x20<subject>','subcommandTerm','-p,\x20--profile\x20<name>','--description\x20<desc>','4797846NQisdU','Agent\x20prompt/instructions','isTTY','show\x20<name-or-id>','templates\x20[pattern]','use\x20[name]','Master\x20table\x20name','logLevel','includes','--rule-file\x20<file>','Duplicate\x20a\x20campaign','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Add\x20attributes\x20from\x20JSON\x20file','Backup\x20an\x20LLM\x20project\x20to\x20a\x20folder','Options:','show\x20<folder_ref>','parents\x20[pattern]','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Editor\x20type','Revision\x20name\x20(default:\x20timestamp)','duplicate\x20<name-or-id>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Include\x20retried\x20attempts','Maximum\x20recursion\x20depth\x20(default:\x2010)','-f,\x20--file\x20<path>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','command','Campaign\x20name','Add\x20attributes\x20as\x20JSON\x20string','list\x20[pattern]','--attribute\x20[name]','--invisible','Parent\x20segment\x20(audience)\x20management','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','filter','Table\x20management\x20commands','Agent\x20description','flatMap','exit','--debug','--max-tool-iterations\x20<n>','map','Workflow\x20project\x20management','requiredOption','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','push','../package.json','update\x20<segment_name>','resume\x20<name-or-id>','Database\x20management\x20commands','list','run','argumentDescription','Save\x20output\x20to\x20file','push\x20[file]','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','Campaign\x20description','Project\x20description','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--session\x20<id>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','noColor','[attempt-id]','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','folders\x20<parent_name>','AI-native\x20CLI\x20for\x20Treasure\x20Data','optionDescription','7upHgPD','parent_segment','472352xoNLnm','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','-r,\x20--recursive','Output\x20as\x20JSON\x20Lines','createAsync','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','[task-name]','claude-4.5-sonnet','Create\x20segment\x20folder','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','create\x20<name>','Delete\x20a\x20workspace','--in\x20<name>','4000','--attributes\x20<json>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Update\x20a\x20workspace','8270MxHebQ','Setup\x20API\x20key\x20authentication\x20interactively','New\x20segment\x20name','use\x20<path>','--reason\x20<text>','Agent\x20reference\x20(project-name/agent-name)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Skip\x20confirmation\x20prompt','INFO','action','pwd','--dry-run','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','create\x20<parent_name>\x20<folder_name>','--name\x20<new-name>','--from-task\x20<task>','workflows\x20[project]','required','--start-at\x20<datetime>','--to\x20<timestamp>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--no-count-population','Attempt\x20ID','attempt:','--add-attributes\x20<json>',',\x20version\x20','retry\x20<session-id>','commandUsage','project','workspace','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','usage','Override\x20project\x20name','activations\x20<segment_name>','\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','Add\x20behaviors\x20from\x20JSON\x20file','--json','--agent\x20<ref>','--status\x20<status>','trino','Authentication\x20management','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','create','--folder\x20<name>','preview\x20[name]','1469758eynTis','Updated\x20description','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','-o,\x20--output\x20<folder>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Create\x20an\x20email\x20template','Workspace\x20name','Segment\x20folder\x20management','--json-columns\x20<cols>','--parent-segment\x20<name>','--tsv','query\x20[sql]','Request\x20body\x20as\x20JSON\x20string','--limit\x20<number>','--revision\x20<revision>','Move\x20to\x20folder','-o,\x20--output\x20<file>','colorFn','preview\x20[file]','stderr','submit\x20[query]','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--full','argument','Folder\x20description','Read\x20SQL\x20query\x20from\x20file','Show\x20only\x20master\x20table\x20validation','optionTerm','use\x20<name>','--name\x20<name>','Restore\x20an\x20LLM\x20project\x20from\x20a\x20backup\x20folder','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','\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','show\x20<job-id>','Parent\x20folder\x20name\x20for\x20nested\x20folders','Plaintext\x20template\x20content','Model\x20type\x20(default:\x20claude-4.5-sonnet)','preAction','New\x20campaign\x20name','run\x20[name]','injectIntoOptions','Set\x20operation\x20timeout\x20in\x20seconds','summary','fields\x20[name]','--yes','template','push\x20[project-name-or-dir]','trace','format','List\x20all\x20available\x20profiles','parent','job','-u,\x20--use','Show\x20the\x20most\x20recent\x20chat','Output\x20as\x20JSON','get','status','parse','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--in\x20<database>','argumentTerm','registeredArguments','7867134zeTzin','Attributes\x20from\x20JSON\x20file','Skip\x20population\x20counting','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','desc\x20[segment_name]','agents\x20[pattern]','show\x20<agent-name>','Show\x20agent\x20details','projects\x20[pattern]','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--database\x20<db>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--clear','Workflow\x20(Digdag)\x20management\x20commands','update\x20<agent-name>','Commands:','Include\x20retried\x20attempts\x20(for\x20list)','Set\x20or\x20show\x20parent\x20segment\x20context','--jsonl','--enriched','Resume\x20from\x20specific\x20task\x20(retry)','list\x20[project]','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Resume\x20from\x20specific\x20task','sql\x20[name]','name','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','commands','info\x20[name]','--system-prompt\x20<text>','restore\x20<folder>','--include-retried','--schedule-type\x20<type>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--name\x20<new_name>','--add-behaviors\x20<json>','Reason\x20for\x20killing\x20the\x20attempt','delete\x20<project-name-or-id>','--plaintext\x20<text>','replace','Show\x20segment\x20schema\x20(column\x20types)','description','proxy','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','DEBUG','Campaign\x20type\x20(email\x20or\x20push)','Task\x20name\x20for\x20logs\x20action','Parent\x20segment\x20description','--resume-from\x20<task>','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--add-attributes-file\x20<file>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','delete\x20<name>','Show\x20current\x20segment/folder\x20context','logs','--kind\x20<type>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','option','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','json','--customer-group\x20<json>','use\x20[resource]\x20[value]','show\x20[name]','Unknown\x20action:\x20','--limit\x20<n>','--model\x20<name>','gitRevision','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','--last','Delete\x20an\x20email\x20template','HTML\x20template\x20content','slice','describe\x20[table]','help','List\x20jobs','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--description\x20<text>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','version','Workflow\x20parameter\x20(repeatable)','1vQUIiH','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--llm-project\x20<name>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','then','Pause\x20a\x20campaign','opts','Template\x20name','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','-H,\x20--header\x20<header>','Master\x20database\x20name','port','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Output\x20file\x20path\x20(default:\x20<name>.yml)','Output\x20folder\x20(default:\x20{project_name}.llm)','Update\x20an\x20email\x20template','--attributes-file\x20<file>','attempt','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--max-depth\x20<depth>','\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','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--force','fields\x20[parent_name]','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','tsv','models','--schedule-option\x20<value>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--temperature\x20<n>','campaign','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','use\x20<project-name>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--type\x20<type>','options','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','desc\x20[name]','Show\x20job\x20details','allowExcessArguments','pull\x20[name]','Kill\x20a\x20job','--timezone\x20<tz>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','folder','--include-subtasks','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--no-color','alias','context','addHelpText','--skip-validation','describe','log','agent','844824bXEHqM','tdx','us01','--color','utf-8','attempts\x20[project]','--interval\x20<range>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','join','history\x20[chat-id]','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Maximum\x20tool\x20iterations\x20(default:\x204)','Skip\x20confirmation\x20prompts','Preview\x20operation\x20without\x20executing','Folder\x20name\x20for\x20organization','--rule\x20<json>','tdx\x20','campaigns\x20[pattern]','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','sql\x20[segment_name]','4411Rcufqa','engage','Delete\x20an\x20agent','Make\x20segment\x20invisible\x20(default:\x20visible)','--name\x20<text>','--type\x20<api_type>','Force\x20retry\x20even\x20if\x20not\x20failed','segments\x20[path]','--param\x20<key=value>','--trace','--catalog\x20<catalog>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Update\x20an\x20existing\x20agent','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','stdout','claude\x20[args...]','delete\x20<name-or-id>','--data\x20<data>','Timezone\x20(e.g.,\x20America/Los_Angeles)','buildTime','Email\x20sender\x20ID\x20for\x20delivery','segment','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','-y,\x20--yes','Attributes\x20as\x20JSON\x20string','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','length','workspaces\x20[pattern]','Starter\x20message','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Email\x20subject\x20template','Database\x20to\x20use\x20(overrides\x20context)','--segment\x20<path>','retry','parent-segment','Skip\x20validation\x20of\x20.dig\x20files','show\x20[table]','Remove\x20API\x20key\x20from\x20system\x20keychain','Create\x20a\x20workspace','3499449beFJbp','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','\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','Updated\x20timezone','Workflow\x20attempt\x20management','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20master\x20table\x20sample\x20data','Include\x20subtasks\x20in\x20tasks\x20output','Arguments:','--output\x20<file>','update\x20<name-or-id>','after','40QBgKjI','Customer\x20group\x20as\x20JSON\x20string','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Trino\x20catalog\x20(default:\x20td)'];a2_0x5947=function(){return _0x3b127b;};return a2_0x5947();}buildInfo[a2_0x4bfcb6(0x370)]?description+=a2_0x4bfcb6(0x2d8)+packageJson[a2_0x4bfcb6(0x37d)]+'\x20('+buildInfo[a2_0x4bfcb6(0x370)]+')':description+=a2_0x4bfcb6(0x2d8)+packageJson[a2_0x4bfcb6(0x37d)];program[a2_0x4bfcb6(0x345)](a2_0x4bfcb6(0x1d2))[a2_0x4bfcb6(0x355)](description),program['option'](a2_0x4bfcb6(0x260),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x4bfcb6(0x366)]('--site\x20<site>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x4bfcb6(0x1d3))[a2_0x4bfcb6(0x366)]('--format\x20<format>',a2_0x4bfcb6(0x2c3))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e3),a2_0x4bfcb6(0x336))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33d),a2_0x4bfcb6(0x24f))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2f6),a2_0x4bfcb6(0x242))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x21c),a2_0x4bfcb6(0x299))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2f9),a2_0x4bfcb6(0x1dd))['option'](a2_0x4bfcb6(0x1d4),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c9),a2_0x4bfcb6(0x302),![])['option']('-v,\x20--verbose','Enable\x20verbose\x20logging',![])['option'](a2_0x4bfcb6(0x28b),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')['option'](a2_0x4bfcb6(0x1f3),a2_0x4bfcb6(0x30c))[a2_0x4bfcb6(0x366)]('--timeout\x20<seconds>',a2_0x4bfcb6(0x316),'30')['option']('--dry-run',a2_0x4bfcb6(0x1e3),![])[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x202),a2_0x4bfcb6(0x1e2),![])[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x29f),a2_0x4bfcb6(0x371))[a2_0x4bfcb6(0x366)]('-d,\x20--database\x20<name>',a2_0x4bfcb6(0x20b))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2b7),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x4bfcb6(0x2f5),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x4bfcb6(0x381),a2_0x4bfcb6(0x274)),program['configureHelp']({'formatHelp':(_0x3eca5a,_0x54ee2a)=>{const _0x5425ee=a2_0x4bfcb6,_0x4a0595=_0x54ee2a['padWidth'](_0x3eca5a,_0x54ee2a),_0x5d1155=0x2,_0x48082c=0x2;function _0x58e3b3(_0x1e190d){const _0x526cef=a2_0x5c13,_0x146d8c=_0x1e190d;return!!(_0x146d8c[_0x526cef(0x258)]||_0x146d8c['hidden']);}function _0x32e78f(_0x2c5610,_0x1f8e61){if(_0x1f8e61){const _0x28edf6=''+_0x2c5610['padEnd'](_0x4a0595+_0x48082c)+_0x1f8e61;return _0x28edf6;}return _0x2c5610;}function _0x5a6e29(_0x3680da){const _0x4c3f22=a2_0x5c13;return _0x3680da[_0x4c3f22(0x1d9)]('\x0a')[_0x4c3f22(0x353)](/^/gm,'\x20'['repeat'](_0x5d1155));}const _0x1bbebb=[];_0x1bbebb[_0x5425ee(0x291)]('Usage:\x20'+_0x54ee2a[_0x5425ee(0x2da)](_0x3eca5a));const _0x263ce0=_0x54ee2a['commandDescription'](_0x3eca5a);_0x263ce0&&(_0x1bbebb[_0x5425ee(0x291)](''),_0x1bbebb[_0x5425ee(0x291)](_0x263ce0));const _0x44b4ff=_0x3eca5a[_0x5425ee(0x347)][_0x5425ee(0x286)](_0x531449=>!_0x58e3b3(_0x531449));if(_0x44b4ff[_0x5425ee(0x205)]>0x0){if(_0x3eca5a[_0x5425ee(0x345)]()==='tdx'){const _0x10ab16=_0x3eca5a['opts'](),_0x4075dd=!_0x10ab16[_0x5425ee(0x2a2)]&&process[_0x5425ee(0x1f9)]['isTTY'],_0x270454=COMMAND_CATEGORIES,_0x5e7e76=(_0x26972e,_0x2331f2)=>_0x4075dd?_0x2331f2(_0x26972e):_0x26972e,_0x37a523=new Map();_0x44b4ff['forEach'](_0x532001=>{_0x37a523['set'](_0x532001['name'](),_0x532001);}),_0x270454[_0x5425ee(0x23e)](_0x3f6235=>{const _0x1794f2=_0x5425ee,_0x1c194f=_0x3f6235[_0x1794f2(0x347)][_0x1794f2(0x289)](_0x565a34=>_0x37a523[_0x1794f2(0x324)](_0x565a34)??[]);if(_0x1c194f[_0x1794f2(0x205)]>0x0){_0x1bbebb[_0x1794f2(0x291)](''),_0x1bbebb['push'](_0x5e7e76(_0x3f6235[_0x1794f2(0x345)]+':',_0x3f6235[_0x1794f2(0x2fd)]));const _0x114a10=_0x1c194f[_0x1794f2(0x28d)](_0x254a7b=>{const _0x332080=_0x1794f2,_0x3e3757=_0x54ee2a[_0x332080(0x25f)](_0x254a7b),_0x5ce60e=_0x54ee2a['subcommandDescription'](_0x254a7b);return _0x32e78f(_0x3e3757,_0x5ce60e);});_0x1bbebb[_0x1794f2(0x291)](_0x5a6e29(_0x114a10));}}),_0x1bbebb['push'](''),_0x1bbebb[_0x5425ee(0x291)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x366125=_0x44b4ff[_0x5425ee(0x28d)](_0x54a990=>{const _0x3b243f=_0x5425ee,_0x46101a=_0x54ee2a[_0x3b243f(0x25f)](_0x54a990),_0x4f4923=_0x54ee2a['subcommandDescription'](_0x54a990);return _0x32e78f(_0x46101a,_0x4f4923);});_0x1bbebb[_0x5425ee(0x291)](''),_0x1bbebb['push'](_0x5425ee(0x33a)),_0x1bbebb['push'](_0x5a6e29(_0x366125));}}const _0x4eb762=_0x3eca5a[_0x5425ee(0x3a4)]['filter'](_0x6ac235=>!_0x58e3b3(_0x6ac235));if(_0x4eb762['length']>0x0){const _0x878958=_0x4eb762['map'](_0x5cd222=>{const _0x1f8af4=_0x5425ee,_0x57af37=_0x54ee2a[_0x1f8af4(0x308)](_0x5cd222),_0x3d7dff=_0x54ee2a[_0x1f8af4(0x2a7)](_0x5cd222);return _0x32e78f(_0x57af37,_0x3d7dff);});_0x1bbebb[_0x5425ee(0x291)](''),_0x1bbebb['push'](_0x5425ee(0x271)),_0x1bbebb[_0x5425ee(0x291)](_0x5a6e29(_0x878958));}const _0xe2e5fc=(_0x3eca5a[_0x5425ee(0x32a)]||[])['filter'](_0x38dfff=>!_0x58e3b3(_0x38dfff));if(_0xe2e5fc['length']>0x0){const _0x3b866c=_0xe2e5fc[_0x5425ee(0x28d)](_0x537762=>{const _0x802ead=_0x5425ee,_0x23a181=_0x54ee2a[_0x802ead(0x329)](_0x537762),_0x19a800=_0x54ee2a[_0x802ead(0x298)](_0x537762);return _0x32e78f(_0x23a181,_0x19a800);});_0x1bbebb[_0x5425ee(0x291)](''),_0x1bbebb[_0x5425ee(0x291)](_0x5425ee(0x21b)),_0x1bbebb[_0x5425ee(0x291)](_0x5a6e29(_0x3b866c));}return _0x1bbebb[_0x5425ee(0x1d9)]('\x0a');},'subcommandTerm':_0x5cdfa5=>{const _0x786267=a2_0x4bfcb6,_0x4cda8b=(_0x5cdfa5['registeredArguments']||[])[_0x786267(0x28d)](_0x59d947=>_0x59d947[_0x786267(0x2ce)]?'<'+_0x59d947[_0x786267(0x345)]()+'>':'['+_0x59d947[_0x786267(0x345)]()+']')[_0x786267(0x1d9)]('\x20'),_0x256a64=_0x5cdfa5[_0x786267(0x245)](),_0x41d8a4=_0x256a64[_0x786267(0x205)]>0x0?_0x5cdfa5[_0x786267(0x345)]()+',\x20'+_0x256a64[_0x786267(0x1d9)](',\x20'):_0x5cdfa5['name']();return _0x4cda8b?_0x41d8a4+'\x20'+_0x4cda8b:_0x41d8a4;}}),program['hook'](a2_0x4bfcb6(0x312),_0x37cdcb=>{const _0x1a8e70=a2_0x4bfcb6,_0x234319=_0x37cdcb[_0x1a8e70(0x385)]();if(!_0x234319[_0x1a8e70(0x31d)]){if(_0x234319[_0x1a8e70(0x369)])_0x234319[_0x1a8e70(0x31d)]='json';else{if(_0x234319[_0x1a8e70(0x24b)])_0x234319[_0x1a8e70(0x31d)]=_0x1a8e70(0x24b);else _0x234319[_0x1a8e70(0x39a)]&&(_0x234319[_0x1a8e70(0x31d)]=_0x1a8e70(0x39a));}}_0x234319['in']&&!_0x234319['database']&&(_0x234319[_0x1a8e70(0x22c)]=_0x234319['in']);if(_0x234319[_0x1a8e70(0x31c)])_0x234319[_0x1a8e70(0x269)]=LogLevel[_0x1a8e70(0x244)];else{if(_0x234319['debug'])_0x234319[_0x1a8e70(0x269)]=LogLevel[_0x1a8e70(0x358)];else _0x234319['logLevel']===undefined&&(_0x234319['logLevel']=LogLevel[_0x1a8e70(0x2c5)]);}});async function createTDXInstance(_0x3aa85f){const _0x53c2dd=a2_0x4bfcb6,_0x4a3e65=await GlobalContext[_0x53c2dd(0x2ae)](_0x3aa85f);return _0x4a3e65[_0x53c2dd(0x315)](_0x3aa85f),TDX[_0x53c2dd(0x2e9)]({'site':_0x4a3e65['site'],'apiKey':_0x4a3e65['apiKey'],'logLevel':_0x4a3e65[_0x53c2dd(0x269)],'profile':_0x4a3e65[_0x53c2dd(0x236)]});}const databaseCmd=program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x22c))['alias']('db')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x295)),databaseListAction=async(_0x1a972f,_0x2150f8)=>{const _0x1d55f4=a2_0x4bfcb6,_0x11825e=new DatabasesCommand(),_0x3f60c8=program[_0x1d55f4(0x385)](),_0x30946b=await createTDXInstance(_0x3f60c8),_0x5824c5=await _0x11825e[_0x1d55f4(0x297)]({'options':{..._0x3f60c8,..._0x2150f8},'args':_0x1a972f?[_0x1a972f]:[],'tdx':_0x30946b});process['exit'](_0x5824c5);};databaseCmd['command'](a2_0x4bfcb6(0x281))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x334))['action'](databaseListAction),program['command']('databases\x20[pattern]',{'hidden':!![]})[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x395))[a2_0x4bfcb6(0x2c6)](databaseListAction),program['command']('chat\x20[message...]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x38b))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e4),a2_0x4bfcb6(0x2c1))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x36f),'Model\x20name\x20(default:\x20claude-4.5-sonnet)')[a2_0x4bfcb6(0x366)]('--temperature\x20<n>',a2_0x4bfcb6(0x24d))[a2_0x4bfcb6(0x366)]('--new','Start\x20a\x20new\x20chat\x20session')[a2_0x4bfcb6(0x2c6)](async(_0x4a0262,_0x3e1463)=>{const _0x23f97d=a2_0x4bfcb6,_0x277d52=new ChatCommand(),_0x49ae01=program[_0x23f97d(0x385)](),_0x49bd2d=await createTDXInstance(_0x49ae01),_0x4c0440=await _0x277d52[_0x23f97d(0x297)]({'options':{..._0x49ae01,..._0x3e1463},'args':_0x4a0262,'tdx':_0x49bd2d});process[_0x23f97d(0x28a)](_0x4c0440);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x4bfcb6(0x317)](a2_0x4bfcb6(0x3a2))[a2_0x4bfcb6(0x1cc)](a2_0x4bfcb6(0x21e),a2_0x4bfcb6(0x2e1))[a2_0x4bfcb6(0x366)]('-X,\x20--method\x20<method>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')['option'](a2_0x4bfcb6(0x1fc),a2_0x4bfcb6(0x2f8))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x27c),'Read\x20request\x20body\x20from\x20file')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x388),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x3b5eff,_0x57a2cd)=>{return _0x57a2cd?[..._0x57a2cd,_0x3b5eff]:[_0x3b5eff];})[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1ef),a2_0x4bfcb6(0x2e8),'td')[a2_0x4bfcb6(0x2c6)](async(_0x29a8d1,_0x78ca31)=>{const _0x2eaafe=a2_0x4bfcb6;if(!_0x29a8d1){apiCmd[_0x2eaafe(0x377)]();return;}const _0x453b48=new ApiCommand(),_0x13081c=program['opts'](),_0x3738d6=await createTDXInstance(_0x13081c),_0x1c6fb2=await _0x453b48[_0x2eaafe(0x297)]({'options':{..._0x13081c,..._0x78ca31},'args':[_0x29a8d1],'tdx':_0x3738d6});process[_0x2eaafe(0x28a)](_0x1c6fb2);}),tableCmd=program[a2_0x4bfcb6(0x27e)]('table')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x287)),tableListAction=async(_0x57d34d,_0x155ab8)=>{const _0x30b1fa=a2_0x4bfcb6,_0x59591f=new TablesCommand(),_0x3f5e4f=program['opts'](),_0x3fe4c9=await createTDXInstance(_0x3f5e4f);_0x155ab8['in']&&(_0x155ab8['database']=_0x155ab8['in']);const _0x398cf6=await _0x59591f[_0x30b1fa(0x297)]({'options':{..._0x3f5e4f,..._0x155ab8},'args':_0x57d34d?[_0x57d34d]:[],'tdx':_0x3fe4c9});process['exit'](_0x398cf6);};tableCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x341))[a2_0x4bfcb6(0x366)]('-d,\x20--database\x20<database>',a2_0x4bfcb6(0x360))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x328),a2_0x4bfcb6(0x399))[a2_0x4bfcb6(0x2c6)](tableListAction),program['command']('tables\x20[pattern]',{'hidden':!![]})[a2_0x4bfcb6(0x355)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x257),a2_0x4bfcb6(0x360))['option']('--in\x20<database>',a2_0x4bfcb6(0x399))[a2_0x4bfcb6(0x2c6)](tableListAction),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x210))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1f7))['option']('-d,\x20--database\x20<database>',a2_0x4bfcb6(0x342))[a2_0x4bfcb6(0x366)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4bfcb6(0x2c6)](async(_0x28f9dc,_0x25a6ce)=>{const _0x12112c=a2_0x4bfcb6,_0x286ca7=new ShowCommand(),_0x1315d1=program[_0x12112c(0x385)](),_0x1bd247=await createTDXInstance(_0x1315d1);_0x25a6ce['in']&&(_0x25a6ce[_0x12112c(0x22c)]=_0x25a6ce['in']);const _0x5a5c9=await _0x286ca7[_0x12112c(0x297)]({'options':{..._0x1315d1,..._0x25a6ce},'args':_0x28f9dc?[_0x28f9dc]:[],'tdx':_0x1bd247});process[_0x12112c(0x28a)](_0x5a5c9);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x376))[a2_0x4bfcb6(0x1ca)](a2_0x4bfcb6(0x229))['description'](a2_0x4bfcb6(0x246))['option'](a2_0x4bfcb6(0x257),a2_0x4bfcb6(0x342))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x328),a2_0x4bfcb6(0x399))[a2_0x4bfcb6(0x2c6)](async(_0x244009,_0x18be78)=>{const _0x88cc50=a2_0x4bfcb6,_0x3f78ab=new DescribeCommand(),_0x2fe476=program[_0x88cc50(0x385)](),_0x2e0f53=await createTDXInstance(_0x2fe476);_0x18be78['in']&&(_0x18be78[_0x88cc50(0x22c)]=_0x18be78['in']);const _0x147a40=await _0x3f78ab[_0x88cc50(0x297)]({'options':{..._0x2fe476,..._0x18be78},'args':_0x244009?[_0x244009]:[],'tdx':_0x2e0f53});process[_0x88cc50(0x28a)](_0x147a40);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2f7))['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x257),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x328),a2_0x4bfcb6(0x399))['option'](a2_0x4bfcb6(0x1f4),a2_0x4bfcb6(0x223))[a2_0x4bfcb6(0x366)]('-f,\x20--file\x20<path>',a2_0x4bfcb6(0x306))['option']('--limit\x20<rows>',a2_0x4bfcb6(0x2af),'40')[a2_0x4bfcb6(0x2c6)](async(_0x49bc9a,_0x2db371)=>{const _0x416cac=a2_0x4bfcb6,_0x9eebfc=new QueryCommand(),_0x2ab29a=program[_0x416cac(0x385)](),_0x4c0ff4=await createTDXInstance(_0x2ab29a);_0x2db371['in']&&(_0x2db371[_0x416cac(0x22c)]=_0x2db371['in']);const _0x58716e=await _0x9eebfc['run']({'options':{..._0x2ab29a,..._0x2db371},'args':_0x49bc9a?[_0x49bc9a]:[],'tdx':_0x4c0ff4});process[_0x416cac(0x28a)](_0x58716e);});const segmentCmd=program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x200))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x22e)),segmentListAction=async(_0x2cb9aa,_0x27436d)=>{const _0x8175ef=a2_0x4bfcb6,_0x59dbeb=new SegmentsCommand(),_0x84dab8=program[_0x8175ef(0x385)](),_0xd9d6c8=await createTDXInstance(_0x84dab8),_0x5ee701=await _0x59dbeb['run']({'options':{..._0x84dab8,..._0x27436d},'args':_0x2cb9aa?[_0x2cb9aa]:[],'tdx':_0xd9d6c8});process['exit'](_0x5ee701);};segmentCmd[a2_0x4bfcb6(0x27e)]('list\x20[path]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x301))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2ac),a2_0x4bfcb6(0x392))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x393),a2_0x4bfcb6(0x27b),'10')['action'](segmentListAction),program['command'](a2_0x4bfcb6(0x1f1),{'hidden':!![]})[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2dd))[a2_0x4bfcb6(0x366)]('-r,\x20--recursive',a2_0x4bfcb6(0x392))['option'](a2_0x4bfcb6(0x393),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['action'](segmentListAction),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2bf))['description']('Set\x20current\x20segment/folder\x20context\x20for\x20navigation')['action'](async(_0x1e9805,_0x4ac8aa)=>{const _0x4caed1=a2_0x4bfcb6,_0x12cdae=new SegmentUseCommand(),_0xb07355=program[_0x4caed1(0x385)](),_0x5704df=await createTDXInstance(_0xb07355),_0x22ac7a=await _0x12cdae['run']({'options':{..._0xb07355,..._0x4ac8aa},'args':[_0x1e9805],'tdx':_0x5704df});process['exit'](_0x22ac7a);}),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2c7))['description'](a2_0x4bfcb6(0x362))[a2_0x4bfcb6(0x2c6)](async _0x55ae5f=>{const _0x8a9987=a2_0x4bfcb6,_0x20fa4c=new SegmentPwdCommand(),_0x52a4de=program['opts'](),_0x50d937=await createTDXInstance(_0x52a4de),_0x1cb891=await _0x20fa4c['run']({'options':{..._0x52a4de,..._0x55ae5f},'args':[],'tdx':_0x50d937});process[_0x8a9987(0x28a)](_0x1cb891);}),segmentCmd['command']('info\x20[segment_name]')['alias'](a2_0x4bfcb6(0x1ce))[a2_0x4bfcb6(0x355)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x4bfcb6(0x2c6)](async(_0x42bf97,_0x504faf)=>{const _0x45f950=a2_0x4bfcb6,_0x2d3e61=new SegmentInfoCommand(),_0x86d0e1=program['opts'](),_0x19e8d9=await createTDXInstance(_0x86d0e1),_0x20c7be=await _0x2d3e61[_0x45f950(0x297)]({'options':{..._0x86d0e1,..._0x504faf},'args':_0x42bf97?[_0x42bf97]:[],'tdx':_0x19e8d9});process[_0x45f950(0x28a)](_0x20c7be);}),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x32f))['description'](a2_0x4bfcb6(0x354))['action'](async(_0x4b5c30,_0x12a5ad)=>{const _0x35310d=a2_0x4bfcb6,_0x515515=new SegmentDescCommand(),_0x111f75=program['opts'](),_0x335451=await createTDXInstance(_0x111f75),_0x2082d5=await _0x515515[_0x35310d(0x297)]({'options':{..._0x111f75,..._0x12a5ad},'args':_0x4b5c30?[_0x4b5c30]:[],'tdx':_0x335451});process[_0x35310d(0x28a)](_0x2082d5);}),segmentCmd[a2_0x4bfcb6(0x27e)]('show\x20[segment_name]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x290))[a2_0x4bfcb6(0x2c6)](async(_0x422194,_0xc0ff58)=>{const _0x4f0aa3=a2_0x4bfcb6,_0x24e211=new SegmentShowCommand(),_0x585864=program['opts'](),_0x3f5137=await createTDXInstance(_0x585864),_0x156569=await _0x24e211['run']({'options':{..._0x585864,..._0xc0ff58},'args':_0x422194?[_0x422194]:[],'tdx':_0x3f5137});process[_0x4f0aa3(0x28a)](_0x156569);}),segmentCmd['command'](a2_0x4bfcb6(0x2a5))['description'](a2_0x4bfcb6(0x1db))[a2_0x4bfcb6(0x2c6)](async(_0x1134dd,_0x4aa8e5)=>{const _0x344d34=a2_0x4bfcb6,_0x119780=new SegmentFolderListCommand(),_0x365a62=program[_0x344d34(0x385)](),_0x57987d=await createTDXInstance(_0x365a62),_0x58277f=await _0x119780['run']({'options':{..._0x365a62,..._0x4aa8e5},'args':[_0x1134dd],'tdx':_0x57987d});process[_0x344d34(0x28a)](_0x58277f);});const folderCmd=segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1c6))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2f3));folderCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x272))[a2_0x4bfcb6(0x355)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x4bfcb6(0x2c6)](async(_0xa2c614,_0x2c2f7b)=>{const _0x1921e1=a2_0x4bfcb6,_0xe84f2b=new SegmentFolderShowCommand(),_0x592344=program[_0x1921e1(0x385)](),_0x109e96=await createTDXInstance(_0x592344),_0x34be86=await _0xe84f2b[_0x1921e1(0x297)]({'options':{..._0x592344,..._0x2c2f7b},'args':[_0xa2c614],'tdx':_0x109e96});process[_0x1921e1(0x28a)](_0x34be86);}),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1e9))['description']('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x407b45,_0x305554)=>{const _0x2519c0=a2_0x4bfcb6,_0x24ac76=new SegmentSQLCommand(),_0x4e2c7d=program['opts'](),_0x299284=await createTDXInstance(_0x4e2c7d),_0x5b2259=await _0x24ac76[_0x2519c0(0x297)]({'options':{..._0x4e2c7d,..._0x305554},'args':_0x407b45?[_0x407b45]:[],'tdx':_0x299284});process['exit'](_0x5b2259);}),segmentCmd['command'](a2_0x4bfcb6(0x397))['description'](a2_0x4bfcb6(0x201))[a2_0x4bfcb6(0x2c6)](async(_0x2b70d1,_0x4ac3a8)=>{const _0x7688cd=a2_0x4bfcb6,_0x4c6487=new SegmentFieldsCommand(),_0xab702f=program[_0x7688cd(0x385)](),_0x30c4f2=await createTDXInstance(_0xab702f),_0x5a8cc0=await _0x4c6487[_0x7688cd(0x297)]({'options':{..._0xab702f,..._0x4ac3a8},'args':_0x2b70d1?[_0x2b70d1]:[],'tdx':_0x30c4f2});process[_0x7688cd(0x28a)](_0x5a8cc0);}),segmentCmd[a2_0x4bfcb6(0x27e)]('create\x20<segment_name>')['description'](a2_0x4bfcb6(0x35d))['option'](a2_0x4bfcb6(0x37a),'Segment\x20description')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1e5),a2_0x4bfcb6(0x249))[a2_0x4bfcb6(0x366)]('--rule-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2ea),a2_0x4bfcb6(0x1e4))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x364),a2_0x4bfcb6(0x382))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x283),a2_0x4bfcb6(0x1ed))['option'](a2_0x4bfcb6(0x2d4),a2_0x4bfcb6(0x32d))[a2_0x4bfcb6(0x2c6)](async(_0x57ae99,_0x13efa1)=>{const _0x475b09=a2_0x4bfcb6,_0x54b6d2=new SegmentCreateCommand(),_0xba6e11=program['opts'](),_0x272b0c=await createTDXInstance(_0xba6e11),_0x1dcf9d=await _0x54b6d2[_0x475b09(0x297)]({'options':{..._0xba6e11,..._0x13efa1},'args':[_0x57ae99],'tdx':_0x272b0c});process[_0x475b09(0x28a)](_0x1dcf9d);}),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x293))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x29b))['option'](a2_0x4bfcb6(0x34e),a2_0x4bfcb6(0x2be))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x2ed))['option'](a2_0x4bfcb6(0x1e5),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x26b),a2_0x4bfcb6(0x2b4))[a2_0x4bfcb6(0x366)]('--folder\x20<name>',a2_0x4bfcb6(0x2fb))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x364),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x4bfcb6(0x2c6)](async(_0x57bd5c,_0x2224b1)=>{const _0xc4ac79=a2_0x4bfcb6,_0x1362e9=new SegmentUpdateCommand(),_0x5d1350=program[_0xc4ac79(0x385)](),_0x1cf0c2=await createTDXInstance(_0x5d1350),_0x4c69d4=await _0x1362e9[_0xc4ac79(0x297)]({'options':{..._0x5d1350,..._0x2224b1},'args':[_0x57bd5c],'tdx':_0x1cf0c2});process[_0xc4ac79(0x28a)](_0x4c69d4);});const parentCmd=segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x31f))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x284)),parentListAction=async(_0x25299d,_0x283820)=>{const _0x37866d=a2_0x4bfcb6,_0x533eda=new ParentSegmentListCommand(),_0x7a65e5=program[_0x37866d(0x385)](),_0xc54ef8=await createTDXInstance(_0x7a65e5),_0x3d24a9=await _0x533eda[_0x37866d(0x297)]({'options':{..._0x7a65e5,..._0x283820},'args':_0x25299d?[_0x25299d]:[],'tdx':_0xc54ef8});process[_0x37866d(0x28a)](_0x3d24a9);};parentCmd[a2_0x4bfcb6(0x27e)]('list\x20[pattern]')['description'](a2_0x4bfcb6(0x204))[a2_0x4bfcb6(0x2c6)](parentListAction),segmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x273),{'hidden':!![]})['description'](a2_0x4bfcb6(0x233))[a2_0x4bfcb6(0x2c6)](parentListAction),parentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1c2))['description'](a2_0x4bfcb6(0x380))['option'](a2_0x4bfcb6(0x2fc),a2_0x4bfcb6(0x38c))['option'](a2_0x4bfcb6(0x202),'Skip\x20confirmation\x20prompt')[a2_0x4bfcb6(0x2c6)](async(_0x46910c,_0x2f900c)=>{const _0x102e09=a2_0x4bfcb6,_0x4925b8=new ParentSegmentPullCommand(),_0x2ce9b3=program[_0x102e09(0x385)](),_0x359781=await createTDXInstance(_0x2ce9b3),_0x254fa2=await _0x4925b8[_0x102e09(0x297)]({'options':{..._0x2ce9b3,..._0x2f900c},'args':_0x46910c?[_0x46910c]:[],'tdx':_0x359781});process[_0x102e09(0x28a)](_0x254fa2);}),parentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x29a))['description'](a2_0x4bfcb6(0x285))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x202),a2_0x4bfcb6(0x2c4))[a2_0x4bfcb6(0x2c6)](async(_0x1f1ce3,_0x5bed8b)=>{const _0x133d31=a2_0x4bfcb6,_0x2270b5=new ParentSegmentPushCommand(),_0x1dbd9c=program[_0x133d31(0x385)](),_0x2a1633=await createTDXInstance(_0x1dbd9c),_0x576cd4=await _0x2270b5['run']({'options':{..._0x1dbd9c,..._0x5bed8b},'args':_0x1f1ce3?[_0x1f1ce3]:[],'tdx':_0x2a1633});process['exit'](_0x576cd4);}),parentCmd['command']('validate\x20[file]')[a2_0x4bfcb6(0x355)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x22d),a2_0x4bfcb6(0x307))[a2_0x4bfcb6(0x366)]('--attribute\x20[name]',a2_0x4bfcb6(0x2a1))[a2_0x4bfcb6(0x366)]('--behavior\x20[name]',a2_0x4bfcb6(0x1f5))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33e),a2_0x4bfcb6(0x35e))['option']('--interval\x20<range>',a2_0x4bfcb6(0x1de),a2_0x4bfcb6(0x238))[a2_0x4bfcb6(0x2c6)](async(_0x3cddfe,_0x3dfff1)=>{const _0x200356=a2_0x4bfcb6,_0x308952=new ParentSegmentValidateCommand(),_0x42b201=program[_0x200356(0x385)](),_0x1e9c0d=await createTDXInstance(_0x42b201),_0x192c9a=await _0x308952['run']({'options':{..._0x42b201,..._0x3dfff1},'args':_0x3cddfe?[_0x3cddfe]:[],'tdx':_0x1e9c0d});process[_0x200356(0x28a)](_0x192c9a);}),parentCmd['command'](a2_0x4bfcb6(0x2fe))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x29e))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x22d),a2_0x4bfcb6(0x219))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x282),a2_0x4bfcb6(0x327))[a2_0x4bfcb6(0x366)]('--behavior\x20[name]',a2_0x4bfcb6(0x248))['option'](a2_0x4bfcb6(0x33e),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1d7),a2_0x4bfcb6(0x1de),'-1d')[a2_0x4bfcb6(0x2c6)](async(_0x33a6c0,_0x3cf46e)=>{const _0x2dae9e=a2_0x4bfcb6,_0x3e6bd6=new ParentSegmentPreviewCommand(),_0x44fced=program[_0x2dae9e(0x385)](),_0x2d1263=await createTDXInstance(_0x44fced),_0x5b88b4=await _0x3e6bd6[_0x2dae9e(0x297)]({'options':{..._0x44fced,..._0x3cf46e},'args':_0x33a6c0?[_0x33a6c0]:[],'tdx':_0x2d1263});process['exit'](_0x5b88b4);}),parentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x314))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1e8))['option']('-y,\x20--yes',a2_0x4bfcb6(0x2c4))[a2_0x4bfcb6(0x2c6)](async(_0x95907,_0x5992db)=>{const _0x19f23e=a2_0x4bfcb6,_0x4275ec=new ParentSegmentRunCommand(),_0x47eb32=program[_0x19f23e(0x385)](),_0x2c13b5=await createTDXInstance(_0x47eb32),_0x15649f=await _0x4275ec[_0x19f23e(0x297)]({'options':{..._0x47eb32,..._0x5992db},'args':_0x95907?[_0x95907]:[],'tdx':_0x2c13b5});process[_0x19f23e(0x28a)](_0x15649f);});const parentSegmentCmd=program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x20e))[a2_0x4bfcb6(0x1ca)]('ps')[a2_0x4bfcb6(0x355)]('Parent\x20segment\x20management');parentSegmentCmd[a2_0x4bfcb6(0x27e)]('list\x20[pattern]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x204))[a2_0x4bfcb6(0x2c6)](parentListAction),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1c2))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x208))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2fc),a2_0x4bfcb6(0x241))[a2_0x4bfcb6(0x366)]('-y,\x20--yes',a2_0x4bfcb6(0x2c4))['option'](a2_0x4bfcb6(0x321),a2_0x4bfcb6(0x37b))[a2_0x4bfcb6(0x2c6)](async(_0x278598,_0x5f1d2a)=>{const _0x522799=a2_0x4bfcb6,_0xdd7d73=new ParentSegmentPullCommand(),_0x39bac4=program[_0x522799(0x385)](),_0x31f3d9=await createTDXInstance(_0x39bac4),_0x102e0a=await _0xdd7d73[_0x522799(0x297)]({'options':{..._0x39bac4,..._0x5f1d2a},'args':_0x278598?[_0x278598]:[],'tdx':_0x31f3d9});process['exit'](_0x102e0a);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x247))['description'](a2_0x4bfcb6(0x221))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x202),a2_0x4bfcb6(0x2c4))['action'](async(_0x4c4396,_0x4197f9)=>{const _0x5756e6=a2_0x4bfcb6,_0x220c83=new ParentSegmentPushCommand(),_0x266661=program[_0x5756e6(0x385)](),_0x1e09c8=await createTDXInstance(_0x266661),_0xba1ab7=await _0x220c83['run']({'options':{..._0x266661,..._0x4197f9},'args':_0x4c4396?[_0x4c4396]:[],'tdx':_0x1e09c8});process[_0x5756e6(0x28a)](_0xba1ab7);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)]('validate\x20[name]')['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x4bfcb6(0x22d),'Show\x20only\x20master\x20table\x20validation')[a2_0x4bfcb6(0x366)]('--attribute\x20[name]',a2_0x4bfcb6(0x2a1))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x230),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33e),a2_0x4bfcb6(0x35e))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1d7),a2_0x4bfcb6(0x1de),'-1d')[a2_0x4bfcb6(0x2c6)](async(_0x5f249a,_0xa67b84)=>{const _0x38f3f7=a2_0x4bfcb6,_0x3520b3=new ParentSegmentValidateCommand(),_0x29ca43=program[_0x38f3f7(0x385)](),_0x3bd0dd=await createTDXInstance(_0x29ca43),_0x45cacd=await _0x3520b3['run']({'options':{..._0x29ca43,..._0xa67b84},'args':_0x5f249a?[_0x5f249a]:[],'tdx':_0x3bd0dd});process[_0x38f3f7(0x28a)](_0x45cacd);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2eb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x29e))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x22d),a2_0x4bfcb6(0x219))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x282),a2_0x4bfcb6(0x327))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x230),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33e),a2_0x4bfcb6(0x2c9))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1d7),a2_0x4bfcb6(0x1de),a2_0x4bfcb6(0x238))[a2_0x4bfcb6(0x2c6)](async(_0x3008d1,_0x58b463)=>{const _0x1cd5f0=a2_0x4bfcb6,_0x4da7f6=new ParentSegmentPreviewCommand(),_0x15caf9=program['opts'](),_0x5cc7de=await createTDXInstance(_0x15caf9),_0x30b5f0=await _0x4da7f6[_0x1cd5f0(0x297)]({'options':{..._0x15caf9,..._0x58b463},'args':_0x3008d1?[_0x3008d1]:[],'tdx':_0x5cc7de});process['exit'](_0x30b5f0);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x314))['description'](a2_0x4bfcb6(0x1e8))['option'](a2_0x4bfcb6(0x202),a2_0x4bfcb6(0x2c4))[a2_0x4bfcb6(0x2c6)](async(_0x3dac62,_0x3ac40e)=>{const _0x1136a6=a2_0x4bfcb6,_0x31236c=new ParentSegmentRunCommand(),_0x5b2071=program[_0x1136a6(0x385)](),_0x461fb8=await createTDXInstance(_0x5b2071),_0xac203e=await _0x31236c[_0x1136a6(0x297)]({'options':{..._0x5b2071,..._0x3ac40e},'args':_0x3dac62?[_0x3dac62]:[],'tdx':_0x461fb8});process[_0x1136a6(0x28a)](_0xac203e);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x318))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x27d))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e3),a2_0x4bfcb6(0x323))['option'](a2_0x4bfcb6(0x33d),'Output\x20as\x20JSON\x20Lines')[a2_0x4bfcb6(0x2c6)](async(_0x198b18,_0x2d5beb)=>{const _0x357d35=a2_0x4bfcb6,_0x61e9df=new ParentSegmentFieldsCommand(),_0x55d2cd=program['opts'](),_0x4c2b60=await createTDXInstance(_0x55d2cd),_0x2a8b06=await _0x61e9df[_0x357d35(0x297)]({'options':{..._0x55d2cd,..._0x2d5beb},'args':_0x198b18?[_0x198b18]:[],'tdx':_0x4c2b60});process['exit'](_0x2a8b06);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x348))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x379))[a2_0x4bfcb6(0x366)]('--json','Output\x20as\x20JSON')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33d),a2_0x4bfcb6(0x2ad))[a2_0x4bfcb6(0x2c6)](async(_0x350ea0,_0x1a191e)=>{const _0x4b73b0=a2_0x4bfcb6,_0x4d08de=new ParentSegmentInfoCommand(),_0x431a83=program[_0x4b73b0(0x385)](),_0x3c62d4=await createTDXInstance(_0x431a83),_0x5e6114=await _0x4d08de['run']({'options':{..._0x431a83,..._0x1a191e},'args':_0x350ea0?[_0x350ea0]:[],'tdx':_0x3c62d4});process['exit'](_0x5e6114);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1bf))[a2_0x4bfcb6(0x355)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e3),a2_0x4bfcb6(0x323))['option'](a2_0x4bfcb6(0x33d),a2_0x4bfcb6(0x2ad))['action'](async(_0x102f3d,_0x5aad14)=>{const _0x5103a3=a2_0x4bfcb6,_0x27357f=new ParentSegmentDescCommand(),_0x3bf5d3=program[_0x5103a3(0x385)](),_0x30d73c=await createTDXInstance(_0x3bf5d3),_0x40bd7f=await _0x27357f[_0x5103a3(0x297)]({'options':{..._0x3bf5d3,..._0x5aad14},'args':_0x102f3d?[_0x102f3d]:[],'tdx':_0x30d73c});process[_0x5103a3(0x28a)](_0x40bd7f);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x344))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x22b))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e3),a2_0x4bfcb6(0x323))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x33d),a2_0x4bfcb6(0x2ad))[a2_0x4bfcb6(0x2c6)](async(_0x564b19,_0xede7b0)=>{const _0x189274=a2_0x4bfcb6,_0x1d87dc=new ParentSegmentSQLCommand(),_0x300cc1=program[_0x189274(0x385)](),_0x8d06e6=await createTDXInstance(_0x300cc1),_0x321ab2=await _0x1d87dc[_0x189274(0x297)]({'options':{..._0x300cc1,..._0xede7b0},'args':_0x564b19?[_0x564b19]:[],'tdx':_0x8d06e6});process[_0x189274(0x28a)](_0x321ab2);}),parentSegmentCmd['command'](a2_0x4bfcb6(0x36c))[a2_0x4bfcb6(0x355)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x36e),'Limit\x20number\x20of\x20rows')[a2_0x4bfcb6(0x366)]('--json',a2_0x4bfcb6(0x323))[a2_0x4bfcb6(0x366)]('--jsonl',a2_0x4bfcb6(0x2ad))[a2_0x4bfcb6(0x2c6)](async(_0x3ef99c,_0x3a4870)=>{const _0xe9b9a1=a2_0x4bfcb6,_0x59435e=new ParentSegmentShowCommand(),_0x512064=program[_0xe9b9a1(0x385)](),_0x5d52ef=await createTDXInstance(_0x512064),_0x345bc6=await _0x59435e['run']({'options':{..._0x512064,..._0x3a4870},'args':_0x3ef99c?[_0x3ef99c]:[],'tdx':_0x5d52ef});process[_0xe9b9a1(0x28a)](_0x345bc6);}),parentSegmentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x267))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x33c))['action'](async(_0xed7ad4,_0x677471)=>{const _0x482345=a2_0x4bfcb6,_0x400294=new UseCommand(),_0x108ff5=program[_0x482345(0x385)](),_0x386879=_0xed7ad4?[_0x482345(0x2a9),_0xed7ad4]:[],_0x51af69=await _0x400294[_0x482345(0x297)]({'options':{..._0x108ff5,..._0x677471},'args':_0x386879,'tdx':null});process[_0x482345(0x28a)](_0x51af69);}),parentCmd[a2_0x4bfcb6(0x27e)]('create\x20<name>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2ba))['requiredOption'](a2_0x4bfcb6(0x335),a2_0x4bfcb6(0x389))[a2_0x4bfcb6(0x28f)]('--table\x20<table>',a2_0x4bfcb6(0x268))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x35b))['option'](a2_0x4bfcb6(0x34c),a2_0x4bfcb6(0x218))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x39c),a2_0x4bfcb6(0x26d))[a2_0x4bfcb6(0x366)]('--timezone\x20<tz>',a2_0x4bfcb6(0x1fd))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2b9),a2_0x4bfcb6(0x203))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x38f),a2_0x4bfcb6(0x32c))['option']('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x4bfcb6(0x366)]('--behaviors-file\x20<file>',a2_0x4bfcb6(0x24c))['option'](a2_0x4bfcb6(0x36a),a2_0x4bfcb6(0x220))['option']('--customer-group-file\x20<file>',a2_0x4bfcb6(0x23c))[a2_0x4bfcb6(0x2c6)](async(_0x1bef29,_0x389f5c)=>{const _0x1b7cd8=a2_0x4bfcb6,_0x456480=new ParentSegmentCreateCommand(),_0x576626=program[_0x1b7cd8(0x385)](),_0x2a5570=await createTDXInstance(_0x576626),_0x4222b2=await _0x456480['run']({'options':{..._0x576626,..._0x389f5c},'args':[_0x1bef29],'tdx':_0x2a5570});process[_0x1b7cd8(0x28a)](_0x4222b2);}),parentCmd[a2_0x4bfcb6(0x27e)]('update\x20<name>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1c5))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x2ed))['option']('--schedule-type\x20<type>',a2_0x4bfcb6(0x2a0))['option'](a2_0x4bfcb6(0x39c),a2_0x4bfcb6(0x240))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c4),a2_0x4bfcb6(0x216))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2d7),a2_0x4bfcb6(0x280))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x35f),a2_0x4bfcb6(0x26f))['option'](a2_0x4bfcb6(0x34f),a2_0x4bfcb6(0x24e))['option']('--add-behaviors-file\x20<file>',a2_0x4bfcb6(0x2e2))[a2_0x4bfcb6(0x2c6)](async(_0x193d89,_0x35c759)=>{const _0x1ccabe=a2_0x4bfcb6,_0x12ba08=new ParentSegmentUpdateCommand(),_0x50cd15=program[_0x1ccabe(0x385)](),_0x183d94=await createTDXInstance(_0x50cd15),_0x1b68ae=await _0x12ba08[_0x1ccabe(0x297)]({'options':{..._0x50cd15,..._0x35c759},'args':[_0x193d89],'tdx':_0x183d94});process['exit'](_0x1b68ae);}),folderCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2ca))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2b2))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x305))[a2_0x4bfcb6(0x366)]('--parent-folder\x20<name>',a2_0x4bfcb6(0x30f))[a2_0x4bfcb6(0x2c6)](async(_0x27578b,_0x229d8f,_0x49770c)=>{const _0x50c9cb=a2_0x4bfcb6,_0x359060=new SegmentFolderCreateCommand(),_0x37ad8e=program[_0x50c9cb(0x385)](),_0xfc5586=await createTDXInstance(_0x37ad8e),_0x18ad41=await _0x359060[_0x50c9cb(0x297)]({'options':{..._0x37ad8e,..._0x49770c},'args':[_0x27578b,_0x229d8f],'tdx':_0xfc5586});process['exit'](_0x18ad41);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2e0))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2ab))['action'](async(_0x4b0441,_0x3dbbce)=>{const _0x3b9d93=a2_0x4bfcb6,_0x271825=new ActivationsCommand(),_0x3368fa=program[_0x3b9d93(0x385)](),_0x220ff=await createTDXInstance(_0x3368fa),_0x942edd=await _0x271825[_0x3b9d93(0x297)]({'options':{..._0x3368fa,..._0x3dbbce},'args':[_0x4b0441],'tdx':_0x220ff});process[_0x3b9d93(0x28a)](_0x942edd);});const workflowCmd=program['command']('workflow')[a2_0x4bfcb6(0x1ca)]('wf')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x338)),wfProjectCmd=workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2db))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x28e)),wfProjectListAction=async(_0x19a04e,_0x5221ee)=>{const _0x463876=a2_0x4bfcb6,_0x699f64=new WorkflowProjectsCommand(),_0x132c3b=program['opts'](),_0x67bc28=await createTDXInstance(_0x132c3b),_0x198cd3=await _0x699f64[_0x463876(0x297)]({'options':{..._0x132c3b,..._0x5221ee},'args':_0x19a04e?[_0x19a04e]:[],'tdx':_0x67bc28});process['exit'](_0x198cd3);};wfProjectCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))['description'](a2_0x4bfcb6(0x32e))[a2_0x4bfcb6(0x2c6)](wfProjectListAction),workflowCmd['command']('projects\x20[pattern]')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2d1))[a2_0x4bfcb6(0x2c6)](wfProjectListAction);const wfWorkflowListAction=async(_0x2e7015,_0x46d27c)=>{const _0x2273cf=a2_0x4bfcb6,_0x57749c=new WorkflowWorkflowsCommand(),_0x14ad9d=program[_0x2273cf(0x385)](),_0x3a79f3=await createTDXInstance(_0x14ad9d),_0x193e02=await _0x57749c[_0x2273cf(0x297)]({'options':{..._0x14ad9d,..._0x46d27c},'args':_0x2e7015?[_0x2e7015]:[],'tdx':_0x3a79f3});process['exit'](_0x193e02);};workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2cd))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x22f))[a2_0x4bfcb6(0x2c6)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x4bfcb6(0x226))[a2_0x4bfcb6(0x355)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x130c5d,_0x1ac30c)=>{const _0x2eb94a=a2_0x4bfcb6,_0x5a7810=new WorkflowSessionsCommand(),_0x365cf7=program[_0x2eb94a(0x385)](),_0x437596=await createTDXInstance(_0x365cf7),_0x1246b4=await _0x5a7810[_0x2eb94a(0x297)]({'options':{..._0x365cf7,..._0x1ac30c},'args':_0x130c5d?[_0x130c5d]:[],'tdx':_0x437596});process[_0x2eb94a(0x28a)](_0x1246b4);};wfSessionCmd['command'](a2_0x4bfcb6(0x340))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1c8))['option'](a2_0x4bfcb6(0x2e5),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option']('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x4bfcb6(0x2d0),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x259))['description'](a2_0x4bfcb6(0x39d))[a2_0x4bfcb6(0x366)]('--status\x20<status>',a2_0x4bfcb6(0x252))[a2_0x4bfcb6(0x366)]('--from\x20<timestamp>',a2_0x4bfcb6(0x275))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2d0),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x4bfcb6(0x2c6)](wfSessionListAction);const wfAttemptListAction=async(_0x4fecc5,_0x35636d)=>{const _0x150728=a2_0x4bfcb6,_0xecf563=new WorkflowAttemptsCommand(),_0x101aff=program[_0x150728(0x385)](),_0x6da1a7=await createTDXInstance(_0x101aff),_0x79729=await _0xecf563[_0x150728(0x297)]({'options':{..._0x101aff,..._0x35636d},'args':_0x4fecc5?[_0x4fecc5]:[],'tdx':_0x6da1a7});process['exit'](_0x79729);},attemptCmd=workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x390))['description'](a2_0x4bfcb6(0x217))[a2_0x4bfcb6(0x304)](a2_0x4bfcb6(0x2a3),a2_0x4bfcb6(0x2d5))[a2_0x4bfcb6(0x304)]('[action]','Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x4bfcb6(0x304)](a2_0x4bfcb6(0x2b0),a2_0x4bfcb6(0x35a))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c7),a2_0x4bfcb6(0x21a))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2c0),a2_0x4bfcb6(0x350))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x35c),a2_0x4bfcb6(0x33f))['option'](a2_0x4bfcb6(0x251),a2_0x4bfcb6(0x3a0))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x396),a2_0x4bfcb6(0x1f0))['option'](a2_0x4bfcb6(0x34b),a2_0x4bfcb6(0x33b))['action'](async(_0x2a5fe9,_0x2fae95,_0x58e7bf,_0x41e045)=>{const _0x489876=a2_0x4bfcb6;if(_0x2a5fe9===_0x489876(0x296)){await wfAttemptListAction(_0x2fae95,_0x41e045);return;}if(!_0x2a5fe9){attemptCmd[_0x489876(0x377)]();return;}const _0x5a813c=program[_0x489876(0x385)](),_0x1fe673=await createTDXInstance(_0x5a813c);let _0x292ae4=0x0;if(!_0x2fae95){const _0x232767=new WorkflowAttemptCommand();_0x292ae4=await _0x232767[_0x489876(0x297)]({'options':{..._0x5a813c,..._0x41e045},'args':[_0x2a5fe9],'tdx':_0x1fe673});}else{if(_0x2fae95===_0x489876(0x363)){const _0x306cba=new WorkflowLogsCommand();_0x292ae4=await _0x306cba[_0x489876(0x297)]({'options':{..._0x5a813c,..._0x41e045},'args':_0x58e7bf?[_0x2a5fe9,_0x58e7bf]:[_0x2a5fe9],'tdx':_0x1fe673});}else{if(_0x2fae95==='tasks'){const _0x54d7ff=new WorkflowTasksCommand();_0x292ae4=await _0x54d7ff[_0x489876(0x297)]({'options':{..._0x5a813c,..._0x41e045},'args':[_0x2a5fe9],'tdx':_0x1fe673});}else{if(_0x2fae95===_0x489876(0x224)){const _0x453213=new WorkflowKillCommand();_0x292ae4=await _0x453213['run']({'options':{..._0x5a813c,..._0x41e045},'args':[_0x2a5fe9],'tdx':_0x1fe673});}else{if(_0x2fae95===_0x489876(0x20d)){const _0x539941=new WorkflowRetryCommand();_0x292ae4=await _0x539941[_0x489876(0x297)]({'options':{..._0x5a813c,..._0x41e045},'args':[_0x489876(0x2d6)+_0x2a5fe9],'tdx':_0x1fe673});}else console['error'](_0x489876(0x36d)+_0x2fae95),console['error'](_0x489876(0x1d8)),_0x292ae4=0x1;}}}}process['exit'](_0x292ae4);});attemptCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x340))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x387))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x34b),a2_0x4bfcb6(0x27a))[a2_0x4bfcb6(0x2c6)](wfAttemptListAction),workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1d6))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1be))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x34b),a2_0x4bfcb6(0x27a))[a2_0x4bfcb6(0x2c6)](wfAttemptListAction),workflowCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2d9))[a2_0x4bfcb6(0x355)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2cc),a2_0x4bfcb6(0x343))['option'](a2_0x4bfcb6(0x251),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')['action'](async(_0x190ad1,_0xfcc48f)=>{const _0x27c107=a2_0x4bfcb6,_0x4e11d9=new WorkflowRetryCommand(),_0xf6493=program[_0x27c107(0x385)](),_0x8e97fb=await createTDXInstance(_0xf6493),_0x3a2bb4=await _0x4e11d9[_0x27c107(0x297)]({'options':{..._0xf6493,..._0xfcc48f},'args':[_0x190ad1],'tdx':_0x8e97fb});process[_0x27c107(0x28a)](_0x3a2bb4);}),workflowCmd['command'](a2_0x4bfcb6(0x250))[a2_0x4bfcb6(0x355)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1f2),a2_0x4bfcb6(0x37e),(_0x3ac2bc,_0x580ac6=[])=>[..._0x580ac6,_0x3ac2bc],[])['option'](a2_0x4bfcb6(0x239),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x4bfcb6(0x2c6)](async(_0x1857e2,_0x2e1125)=>{const _0x2bad1b=a2_0x4bfcb6,_0x292771=new WorkflowRunCommand(),_0x24ddb6=program['opts'](),_0x3661c1=await createTDXInstance(_0x24ddb6),_0x5d632f=await _0x292771[_0x2bad1b(0x297)]({'options':{..._0x24ddb6,..._0x2e1125},'args':[_0x1857e2],'tdx':_0x3661c1});process[_0x2bad1b(0x28a)](_0x5d632f);}),workflowCmd['command']('download\x20<project-name>\x20[output-dir]')['description'](a2_0x4bfcb6(0x1df))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2fa),a2_0x4bfcb6(0x2c2))[a2_0x4bfcb6(0x2c6)](async(_0x157054,_0xc6f1f8,_0x5c985e)=>{const _0x5ad900=a2_0x4bfcb6,_0x1ae252=new WorkflowDownloadCommand(),_0x50a501=program[_0x5ad900(0x385)](),_0xa34b06=await createTDXInstance(_0x50a501),_0x5c2d68=await _0x1ae252['run']({'options':{..._0x50a501,..._0x5c985e},'args':[_0x157054,_0xc6f1f8||'.'],'tdx':_0xa34b06});process[_0x5ad900(0x28a)](_0x5c2d68);}),workflowCmd['command'](a2_0x4bfcb6(0x31b))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x391))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x30a),a2_0x4bfcb6(0x2df))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2fa),a2_0x4bfcb6(0x277))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1cd),a2_0x4bfcb6(0x20f))[a2_0x4bfcb6(0x2c6)](async(_0x35ec03,_0x2fdbd9)=>{const _0x823838=a2_0x4bfcb6,_0x28dd64=new WorkflowPushCommand(),_0xcb5f12=program[_0x823838(0x385)](),_0x295f96=await createTDXInstance(_0xcb5f12),_0x113cc8=await _0x28dd64['run']({'options':{..._0xcb5f12,..._0x2fdbd9},'args':_0x35ec03?[_0x35ec03]:[],'tdx':_0x295f96});process[_0x823838(0x28a)](_0x113cc8);}),workflowCmd['command'](a2_0x4bfcb6(0x351))[a2_0x4bfcb6(0x355)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x4bfcb6(0x2c6)](async(_0x51d9dd,_0xb495eb)=>{const _0x34aafb=a2_0x4bfcb6,_0x35818d=new WorkflowDeleteCommand(),_0xb8883f=program['opts'](),_0x2c3b85=await createTDXInstance(_0xb8883f),_0x3b991e=await _0x35818d[_0x34aafb(0x297)]({'options':{..._0xb8883f,..._0xb495eb},'args':[_0x51d9dd],'tdx':_0x2c3b85});process[_0x34aafb(0x28a)](_0x3b991e);});function a2_0x5c13(_0x558ce8,_0x2d4170){const _0x594798=a2_0x5947();return a2_0x5c13=function(_0x5c1354,_0x3150e6){_0x5c1354=_0x5c1354-0x1be;let _0x1681b4=_0x594798[_0x5c1354];return _0x1681b4;},a2_0x5c13(_0x558ce8,_0x2d4170);}const jobCmd=program['command'](a2_0x4bfcb6(0x320))['description'](a2_0x4bfcb6(0x25b)),jobListAction=async _0x459820=>{const _0x77e92=a2_0x4bfcb6,_0x53f9a0=new JobListCommand(),_0xf3b842=program[_0x77e92(0x385)](),_0x533ec9=await createTDXInstance(_0xf3b842),_0x2d136f=await _0x53f9a0[_0x77e92(0x297)]({'options':{..._0xf3b842,..._0x459820},'args':[],'tdx':_0x533ec9});process['exit'](_0x2d136f);};jobCmd[a2_0x4bfcb6(0x27e)]('list')['description'](a2_0x4bfcb6(0x378))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e5),a2_0x4bfcb6(0x209))[a2_0x4bfcb6(0x2c6)](jobListAction),program[a2_0x4bfcb6(0x27e)]('jobs',{'hidden':!![]})[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x243))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e5),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x4bfcb6(0x2c6)](jobListAction),jobCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x30e))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1c0))[a2_0x4bfcb6(0x2c6)](async(_0x33012d,_0x19ad78)=>{const _0x1b5e3e=a2_0x4bfcb6,_0x5efeee=new JobShowCommand(),_0x129416=program[_0x1b5e3e(0x385)](),_0x34d48d=await createTDXInstance(_0x129416),_0x4178b8=await _0x5efeee[_0x1b5e3e(0x297)]({'options':{..._0x129416,..._0x19ad78},'args':[_0x33012d],'tdx':_0x34d48d});process['exit'](_0x4178b8);}),jobCmd[a2_0x4bfcb6(0x27e)]('kill\x20<job-id>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1c3))[a2_0x4bfcb6(0x2c6)](async(_0x58b649,_0x478191)=>{const _0x155183=a2_0x4bfcb6,_0x1dd53f=new JobKillCommand(),_0x10b0de=program[_0x155183(0x385)](),_0x4af001=await createTDXInstance(_0x10b0de),_0x1d0026=await _0x1dd53f[_0x155183(0x297)]({'options':{..._0x10b0de,..._0x478191},'args':[_0x58b649],'tdx':_0x4af001});process[_0x155183(0x28a)](_0x1d0026);}),jobCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x300))[a2_0x4bfcb6(0x355)]('Submit\x20a\x20job')[a2_0x4bfcb6(0x366)]('--job-type\x20<type>',a2_0x4bfcb6(0x2b3),a2_0x4bfcb6(0x2e6))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x27c),'Read\x20query\x20from\x20file')[a2_0x4bfcb6(0x366)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)','information_schema')[a2_0x4bfcb6(0x2c6)](async(_0x54d414,_0x503802)=>{const _0x184149=a2_0x4bfcb6,_0x116416=new JobSubmitCommand(),_0xdb15b1=program[_0x184149(0x385)](),_0x116dc5=await createTDXInstance(_0xdb15b1),_0xecf0c8=await _0x116416[_0x184149(0x297)]({'options':{..._0xdb15b1,..._0x503802},'args':_0x54d414?[_0x54d414]:[],'tdx':_0x116dc5});process[_0x184149(0x28a)](_0xecf0c8);}),jobCmd[a2_0x4bfcb6(0x27e)]('result\x20<job-id>')[a2_0x4bfcb6(0x355)]('Get\x20job\x20results')['action'](async(_0x1ec65f,_0x57fe79)=>{const _0x2221e7=a2_0x4bfcb6,_0x3c8a38=new JobResultCommand(),_0x17b8be=program[_0x2221e7(0x385)](),_0x48c663=await createTDXInstance(_0x17b8be),_0x553da8=await _0x3c8a38[_0x2221e7(0x297)]({'options':{..._0x17b8be,..._0x57fe79},'args':[_0x1ec65f],'tdx':_0x48c663});process[_0x2221e7(0x28a)](_0x553da8);});const llmCmd=program[a2_0x4bfcb6(0x27e)]('llm')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1e0));llmCmd['command'](a2_0x4bfcb6(0x3a1))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x25a))['action'](async(_0x8198bb,_0x4d1e78)=>{const _0x210c21=a2_0x4bfcb6,_0x26ce79=new LLMUseCommand(),_0x3bdbdb=program[_0x210c21(0x385)](),_0x525bf9=await createTDXInstance(_0x3bdbdb),_0x20b108=await _0x26ce79[_0x210c21(0x297)]({'options':{..._0x3bdbdb,..._0x4d1e78},'args':[_0x8198bb],'tdx':_0x525bf9});process[_0x210c21(0x28a)](_0x20b108);}),llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x39b))[a2_0x4bfcb6(0x355)]('List\x20available\x20LLM\x20models')['action'](async _0x2af94f=>{const _0x59dfa2=a2_0x4bfcb6,_0x1b0004=new LLMModelsCommand(),_0x59114c=program['opts'](),_0x2f82c4=await createTDXInstance(_0x59114c),_0x53f055=await _0x1b0004[_0x59dfa2(0x297)]({'options':{..._0x59114c,..._0x2af94f},'args':[],'tdx':_0x2f82c4});process[_0x59dfa2(0x28a)](_0x53f055);});const projectCmd=llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2db))[a2_0x4bfcb6(0x355)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x30fd69,_0x224a53)=>{const _0x3c0632=a2_0x4bfcb6,_0x1e5e94=new LLMProjectsCommand(),_0x43dafb=program[_0x3c0632(0x385)](),_0x156035=await createTDXInstance(_0x43dafb),_0x1dca08=await _0x1e5e94[_0x3c0632(0x297)]({'options':{..._0x43dafb,..._0x224a53},'args':_0x30fd69?[_0x30fd69]:[],'tdx':_0x156035});process[_0x3c0632(0x28a)](_0x1dca08);};projectCmd[a2_0x4bfcb6(0x27e)]('list\x20[pattern]')['description']('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4bfcb6(0x2c6)](llmProjectListAction),llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x333))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x222))[a2_0x4bfcb6(0x2c6)](llmProjectListAction),projectCmd['command'](a2_0x4bfcb6(0x2b5))[a2_0x4bfcb6(0x355)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x37a),a2_0x4bfcb6(0x29d))[a2_0x4bfcb6(0x2c6)](async(_0x191be4,_0x2187d8)=>{const _0x4358e6=a2_0x4bfcb6,_0x1ea881=new LLMProjectCreateCommand(),_0x216c9e=program[_0x4358e6(0x385)](),_0x4331bf=await createTDXInstance(_0x216c9e),_0x3897d0=await _0x1ea881['run']({'options':{..._0x216c9e,..._0x2187d8},'args':[_0x191be4],'tdx':_0x4331bf});process[_0x4358e6(0x28a)](_0x3897d0);}),projectCmd['command'](a2_0x4bfcb6(0x361))['description']('Delete\x20an\x20LLM\x20project')[a2_0x4bfcb6(0x2c6)](async(_0x4717be,_0x38fac1)=>{const _0x320dce=a2_0x4bfcb6,_0x4b672b=new LLMProjectDeleteCommand(),_0x6e7558=program[_0x320dce(0x385)](),_0x5da6ce=await createTDXInstance(_0x6e7558),_0x10fb69=await _0x4b672b[_0x320dce(0x297)]({'options':{..._0x6e7558,..._0x38fac1},'args':[_0x4717be],'tdx':_0x5da6ce});process[_0x320dce(0x28a)](_0x10fb69);}),projectCmd[a2_0x4bfcb6(0x27e)]('backup\x20<name>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x270))['option'](a2_0x4bfcb6(0x2ef),a2_0x4bfcb6(0x38d))[a2_0x4bfcb6(0x366)]('--dry-run',a2_0x4bfcb6(0x2d3))[a2_0x4bfcb6(0x2c6)](async(_0x153562,_0x4e7971)=>{const _0x262bdb=a2_0x4bfcb6,_0x4803ba=new LLMProjectBackupCommand(),_0x16c7eb=program['opts'](),_0x51d989=await createTDXInstance(_0x16c7eb),_0x461fa1=await _0x4803ba[_0x262bdb(0x297)]({'options':{..._0x16c7eb,..._0x4e7971},'args':[_0x153562],'tdx':_0x51d989});process[_0x262bdb(0x28a)](_0x461fa1);}),projectCmd['command'](a2_0x4bfcb6(0x34a))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x30b))['option'](a2_0x4bfcb6(0x2cb),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')['option'](a2_0x4bfcb6(0x2c8),a2_0x4bfcb6(0x279))[a2_0x4bfcb6(0x2c6)](async(_0x55d123,_0x63979f)=>{const _0x5afa8e=a2_0x4bfcb6,_0xb9269b=new LLMProjectRestoreCommand(),_0x220eb1=program[_0x5afa8e(0x385)](),_0x5b424b=await createTDXInstance(_0x220eb1),_0x18aa6a=await _0xb9269b[_0x5afa8e(0x297)]({'options':{..._0x220eb1,..._0x63979f},'args':[_0x55d123],'tdx':_0x5b424b});process[_0x5afa8e(0x28a)](_0x18aa6a);});const agentCmd=llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1d0))[a2_0x4bfcb6(0x355)]('LLM\x20agent\x20management'),llmAgentListAction=async(_0x4ab26c,_0x3cdcaf)=>{const _0x470beb=a2_0x4bfcb6,_0x3cdab3=new LLMAgentsCommand(),_0x5107e9=program[_0x470beb(0x385)](),_0x26a94d=await createTDXInstance(_0x5107e9),_0x508eea=await _0x3cdab3['run']({'options':{..._0x5107e9,..._0x3cdcaf},'args':_0x4ab26c?[_0x4ab26c]:[],'tdx':_0x26a94d});process[_0x470beb(0x28a)](_0x508eea);};agentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))['description'](a2_0x4bfcb6(0x235))[a2_0x4bfcb6(0x2c6)](llmAgentListAction),llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x330))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x398))[a2_0x4bfcb6(0x2c6)](llmAgentListAction),agentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x331))['description'](a2_0x4bfcb6(0x332))['action'](async(_0x2f50a5,_0x409c7a)=>{const _0x1dc561=a2_0x4bfcb6,_0x2d85d7=new LLMAgentShowCommand(),_0xa8acd5=program[_0x1dc561(0x385)](),_0x57c6fe=await createTDXInstance(_0xa8acd5),_0x319c79=await _0x2d85d7['run']({'options':{..._0xa8acd5,..._0x409c7a},'args':[_0x2f50a5],'tdx':_0x57c6fe});process[_0x1dc561(0x28a)](_0x319c79);}),agentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2b5))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x34d))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x349),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x4bfcb6(0x366)]('--model\x20<name>',a2_0x4bfcb6(0x311),a2_0x4bfcb6(0x2b1))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x24a),a2_0x4bfcb6(0x207))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x28c),a2_0x4bfcb6(0x1e1),'4')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x39e),'Temperature\x20(0.0-2.0,\x20default:\x200.7)','0.7')['action'](async(_0x4d5758,_0x5a3745)=>{const _0x8122d3=a2_0x4bfcb6,_0x569184=new LLMAgentCreateCommand(),_0x8f10fe=program[_0x8122d3(0x385)](),_0x128d4a=await createTDXInstance(_0x8f10fe),_0x4e25ce=await _0x569184[_0x8122d3(0x297)]({'options':{..._0x8f10fe,..._0x5a3745},'args':[_0x4d5758],'tdx':_0x128d4a});process['exit'](_0x4e25ce);}),agentCmd['command'](a2_0x4bfcb6(0x339))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x1f6))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1ee),'Agent\x20name')['option']('--prompt\x20<text>',a2_0x4bfcb6(0x263))[a2_0x4bfcb6(0x366)]('--description\x20<text>',a2_0x4bfcb6(0x288))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x24a),a2_0x4bfcb6(0x207))[a2_0x4bfcb6(0x2c6)](async(_0x5f121b,_0x242815)=>{const _0x21c46b=a2_0x4bfcb6,_0x1e2dce=new LLMAgentUpdateCommand(),_0x52d508=program[_0x21c46b(0x385)](),_0x35e118=await createTDXInstance(_0x52d508),_0x413e94=await _0x1e2dce[_0x21c46b(0x297)]({'options':{..._0x52d508,..._0x242815},'args':[_0x5f121b],'tdx':_0x35e118});process[_0x21c46b(0x28a)](_0x413e94);}),agentCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x256))['description'](a2_0x4bfcb6(0x1ec))[a2_0x4bfcb6(0x2c6)](async(_0x4be464,_0xfd2afc)=>{const _0x24a247=a2_0x4bfcb6,_0xa6b339=new LLMAgentDeleteCommand(),_0x1cc3cc=program[_0x24a247(0x385)](),_0xde8bd5=await createTDXInstance(_0x1cc3cc),_0x46524c=await _0xa6b339[_0x24a247(0x297)]({'options':{..._0x1cc3cc,..._0xfd2afc},'args':[_0x4be464],'tdx':_0xde8bd5});process[_0x24a247(0x28a)](_0x46524c);}),llmCmd['command'](a2_0x4bfcb6(0x1da))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2ee))['option'](a2_0x4bfcb6(0x372),a2_0x4bfcb6(0x214))[a2_0x4bfcb6(0x2c6)](async(_0x513f5e,_0x368663)=>{const _0x304bff=a2_0x4bfcb6,_0x16a245=new LLMHistoryCommand(),_0x373622=program['opts'](),_0x236485=await createTDXInstance(_0x373622),_0x59a650=await _0x16a245[_0x304bff(0x297)]({'options':{..._0x373622,..._0x368663},'args':_0x513f5e?[_0x513f5e]:[],'tdx':_0x236485});process['exit'](_0x59a650);}),llmCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x356))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x228))[a2_0x4bfcb6(0x366)]('--port\x20<number>',a2_0x4bfcb6(0x26e),a2_0x4bfcb6(0x2b8))['option'](a2_0x4bfcb6(0x23f),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x4bfcb6(0x366)]('--agent\x20<name>',a2_0x4bfcb6(0x367))[a2_0x4bfcb6(0x2c6)](async _0x2f23b8=>{const _0x5a929f=a2_0x4bfcb6,_0x43fc52=new LLMProxyCommand(),_0x238cdc=program[_0x5a929f(0x385)](),_0x10ada7=await createTDXInstance(_0x238cdc),_0x14d85d={..._0x2f23b8,'port':_0x2f23b8[_0x5a929f(0x38a)]?parseInt(_0x2f23b8[_0x5a929f(0x38a)],0xa):undefined},_0x1aefdf=await _0x43fc52['run']({'options':{..._0x238cdc,..._0x14d85d},'args':[],'tdx':_0x10ada7});process[_0x5a929f(0x28a)](_0x1aefdf);}),program['command'](a2_0x4bfcb6(0x1fa))[a2_0x4bfcb6(0x355)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy\x20(use\x20--\x20to\x20pass\x20options\x20to\x20Claude\x20Code)')['option'](a2_0x4bfcb6(0x36f),a2_0x4bfcb6(0x2f0),'sonnet')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23d),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x4bfcb6(0x23a)]()[a2_0x4bfcb6(0x1c1)](!![])[a2_0x4bfcb6(0x1cc)](a2_0x4bfcb6(0x21e),a2_0x4bfcb6(0x215))[a2_0x4bfcb6(0x2c6)](async(_0x428cc6,_0x210cfc)=>{const _0x444ad1=a2_0x4bfcb6,_0x18ad7b=program[_0x444ad1(0x385)](),_0x66b7fc=Array['isArray'](_0x428cc6)?_0x428cc6:[];if(_0x66b7fc[0x0]==='statusline'){const _0x5f5006=new ClaudeStatuslineCommand(),_0x290446=await _0x5f5006[_0x444ad1(0x297)]({'options':{..._0x18ad7b,..._0x210cfc},'args':_0x66b7fc[_0x444ad1(0x375)](0x1),'tdx':null});process[_0x444ad1(0x28a)](_0x290446);}if(_0x66b7fc[0x0]===_0x444ad1(0x2de)){const _0x56960c=new ClaudeUsageCommand(),_0x382dec=await _0x56960c['run']({'options':{..._0x18ad7b,..._0x210cfc},'args':_0x66b7fc[_0x444ad1(0x375)](0x1),'tdx':null});process[_0x444ad1(0x28a)](_0x382dec);}const _0x5373c7=new ClaudeCommand(),_0x32c741=await createTDXInstance(_0x18ad7b),_0x361c73=await _0x5373c7[_0x444ad1(0x297)]({'options':{..._0x18ad7b,..._0x210cfc},'args':_0x66b7fc,'tdx':_0x32c741});process['exit'](_0x361c73);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1cb))['description'](a2_0x4bfcb6(0x357))['option'](a2_0x4bfcb6(0x337),'Clear\x20session\x20context')[a2_0x4bfcb6(0x2c6)](async _0x17b4c3=>{const _0x4086f2=a2_0x4bfcb6,_0x143758=new ContextCommand(),_0xb133b5=program[_0x4086f2(0x385)](),_0x44d813=await _0x143758['run']({'options':{..._0xb133b5,..._0x17b4c3},'args':[],'tdx':null});process[_0x4086f2(0x28a)](_0x44d813);}),program['command'](a2_0x4bfcb6(0x36b))[a2_0x4bfcb6(0x355)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20profile,\x20engage_workspace)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x337),'Clear\x20session\x20context')[a2_0x4bfcb6(0x2c6)](async(_0x1d3d84,_0x17e08d,_0x447a71)=>{const _0x43d9de=a2_0x4bfcb6,_0x34f90a=new UseCommand(),_0x3c3999=program['opts'](),_0x52efdf=[];if(_0x1d3d84)_0x52efdf[_0x43d9de(0x291)](_0x1d3d84);if(_0x17e08d)_0x52efdf[_0x43d9de(0x291)](_0x17e08d);const _0x351505=await _0x34f90a[_0x43d9de(0x297)]({'options':{..._0x3c3999,..._0x447a71},'args':_0x52efdf,'tdx':null});process[_0x43d9de(0x28a)](_0x351505);}),program[a2_0x4bfcb6(0x27e)]('chats')[a2_0x4bfcb6(0x355)]('Interactive\x20chat\x20selector')['option'](a2_0x4bfcb6(0x372),a2_0x4bfcb6(0x322))[a2_0x4bfcb6(0x2c6)](async _0x4fa465=>{const _0x19dc3e=a2_0x4bfcb6,_0xfa4ed1=new ChatsCommand(),_0x35d667=program['opts'](),_0x3a0ed7=await createTDXInstance(_0x35d667),_0x3ebff6=await _0xfa4ed1[_0x19dc3e(0x297)]({'options':{..._0x35d667,..._0x4fa465},'args':[],'tdx':_0x3a0ed7});process[_0x19dc3e(0x28a)](_0x3ebff6);});const authCmd=program[a2_0x4bfcb6(0x27e)]('auth')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2e7));async function runAuthStatusCommand(_0x211fe5){const _0x228b26=a2_0x4bfcb6,_0x247999=new AuthStatusCommand(),_0x4a970c=program['opts'](),_0x571a0f=await createTDXInstance(_0x4a970c),_0x53c371=await _0x247999[_0x228b26(0x297)]({'options':{..._0x4a970c,..._0x211fe5},'args':[],'tdx':_0x571a0f});process[_0x228b26(0x28a)](_0x53c371);}authCmd['action'](runAuthStatusCommand),authCmd['command'](a2_0x4bfcb6(0x325))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2d2))[a2_0x4bfcb6(0x2c6)](runAuthStatusCommand),authCmd['command']('setup')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2bd))[a2_0x4bfcb6(0x1cc)](a2_0x4bfcb6(0x21e),a2_0x4bfcb6(0x394))[a2_0x4bfcb6(0x2c6)](async _0x30755e=>{const _0x4a2c89=a2_0x4bfcb6,_0x2b3ed2=new AuthSetupCommand(),_0x84ae7c=program[_0x4a2c89(0x385)](),_0x287d22=await createTDXInstance(_0x84ae7c),_0x51d66d=await _0x2b3ed2['run']({'options':{..._0x84ae7c,..._0x30755e},'args':[],'tdx':_0x287d22});process[_0x4a2c89(0x28a)](_0x51d66d);}),authCmd[a2_0x4bfcb6(0x27e)]('clear')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x211))[a2_0x4bfcb6(0x1cc)](a2_0x4bfcb6(0x21e),a2_0x4bfcb6(0x30d))[a2_0x4bfcb6(0x2c6)](async _0x797e93=>{const _0x294ca0=a2_0x4bfcb6,_0x10bbc3=new AuthClearCommand(),_0x5071c6=program['opts'](),_0x256f6c=await _0x10bbc3[_0x294ca0(0x297)]({'options':{..._0x5071c6,..._0x797e93},'args':[],'tdx':null});process[_0x294ca0(0x28a)](_0x256f6c);}),program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x254))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x31e))[a2_0x4bfcb6(0x2c6)](async _0x8013b6=>{const _0x3cd4cd=a2_0x4bfcb6,_0x491c7c=new ProfilesCommand(),_0x2c2d10=program[_0x3cd4cd(0x385)](),_0x38fee9=await _0x491c7c[_0x3cd4cd(0x297)]({'options':{..._0x2c2d10,..._0x8013b6},'args':[],'tdx':null});process['exit'](_0x38fee9);});const engageCmd=program[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1eb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x365)),createEngageAction=_0x44a98c=>{return async(_0x1a434c,_0x587d3c)=>{const _0x4c201a=a2_0x5c13,_0x3dbb46=new _0x44a98c(),_0x198ce5=program['opts'](),_0x2fd4ec=await createTDXInstance(_0x198ce5),_0x37a488=await _0x3dbb46['run']({'options':{..._0x198ce5,..._0x587d3c},'args':[_0x1a434c],'tdx':_0x2fd4ec});process[_0x4c201a(0x28a)](_0x37a488);};},createEngageNoArgAction=_0x1a89a3=>{return async _0x326a0d=>{const _0xe9cfef=a2_0x5c13,_0x498065=new _0x1a89a3(),_0x12003e=program[_0xe9cfef(0x385)](),_0x28491a=await createTDXInstance(_0x12003e),_0x4dcbc4=await _0x498065[_0xe9cfef(0x297)]({'options':{..._0x12003e,..._0x326a0d},'args':[],'tdx':_0x28491a});process['exit'](_0x4dcbc4);};},campaignCmd=engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x39f))['description']('Campaign\x20management'),campaignListAction=async(_0x470ba2,_0x4077bf)=>{const _0x4c71a9=a2_0x4bfcb6,_0x15c98d=new EngageCampaignsCommand(),_0x463fac=program['opts'](),_0x254cc2=await createTDXInstance(_0x463fac),_0x46e7b7=await _0x15c98d[_0x4c71a9(0x297)]({'options':{..._0x463fac,..._0x4077bf},'args':_0x470ba2?[_0x470ba2]:[],'tdx':_0x254cc2});process['exit'](_0x46e7b7);};campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))['description'](a2_0x4bfcb6(0x346))[a2_0x4bfcb6(0x366)]('--type\x20<type>',a2_0x4bfcb6(0x3a5))['option'](a2_0x4bfcb6(0x2e5),a2_0x4bfcb6(0x37c))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](campaignListAction),engageCmd['command'](a2_0x4bfcb6(0x1e7))[a2_0x4bfcb6(0x355)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x3a3),a2_0x4bfcb6(0x3a5))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2e5),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](campaignListAction),campaignCmd[a2_0x4bfcb6(0x27e)]('show\x20<name-or-id>')[a2_0x4bfcb6(0x355)]('Show\x20campaign\x20details')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),'Workspace\x20name')['option'](a2_0x4bfcb6(0x303),a2_0x4bfcb6(0x368))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x4bfcb6(0x27e)]('create')['description'](a2_0x4bfcb6(0x227))['requiredOption'](a2_0x4bfcb6(0x30a),a2_0x4bfcb6(0x27f))['requiredOption'](a2_0x4bfcb6(0x3a3),a2_0x4bfcb6(0x359))['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x25d))[a2_0x4bfcb6(0x366)]('--description\x20<desc>',a2_0x4bfcb6(0x29c))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x20c),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x4bfcb6(0x366)]('--email-sender-id\x20<id>',a2_0x4bfcb6(0x1ff))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2f4),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2cf),a2_0x4bfcb6(0x1dc))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c4),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x21d))[a2_0x4bfcb6(0x355)]('Update\x20a\x20campaign')[a2_0x4bfcb6(0x366)]('--workspace\x20<name>',a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x30a),a2_0x4bfcb6(0x313))[a2_0x4bfcb6(0x366)]('--description\x20<desc>','Campaign\x20description')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x20c),a2_0x4bfcb6(0x1f8))[a2_0x4bfcb6(0x366)]('--email-sender-id\x20<id>',a2_0x4bfcb6(0x1ff))[a2_0x4bfcb6(0x366)]('--json-columns\x20<cols>',a2_0x4bfcb6(0x237))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x2cf),a2_0x4bfcb6(0x1dc))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x1c4),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1fb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x225))['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x366)]('--yes',a2_0x4bfcb6(0x2c4))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x4bfcb6(0x27e)]('launch\x20<name-or-id>')[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x253))['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x255))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x384))[a2_0x4bfcb6(0x366)]('--workspace\x20<name>','Workspace\x20name')[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x294))['description']('Resume\x20a\x20paused\x20campaign')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x278))['description'](a2_0x4bfcb6(0x26c))[a2_0x4bfcb6(0x366)]('--workspace\x20<name>',a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x31a))[a2_0x4bfcb6(0x355)]('Email\x20template\x20management'),templateListAction=async(_0x33b7e9,_0x253951)=>{const _0x42096d=a2_0x4bfcb6,_0x5e701e=new EngageTemplatesCommand(),_0x32a931=program['opts'](),_0x5aeb25=await createTDXInstance(_0x32a931),_0x1cf4ef=await _0x5e701e['run']({'options':{..._0x32a931,..._0x253951},'args':_0x33b7e9?[_0x33b7e9]:[],'tdx':_0x5aeb25});process[_0x42096d(0x28a)](_0x1cf4ef);};templateCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x231))['option']('--workspace\x20<name>',a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x2c6)](templateListAction),engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x266))[a2_0x4bfcb6(0x355)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),'Workspace\x20name')[a2_0x4bfcb6(0x2c6)](templateListAction),templateCmd['command'](a2_0x4bfcb6(0x265))[a2_0x4bfcb6(0x355)]('Show\x20email\x20template\x20details')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x303),a2_0x4bfcb6(0x368))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2e9))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2f1))['requiredOption'](a2_0x4bfcb6(0x30a),a2_0x4bfcb6(0x386))[a2_0x4bfcb6(0x28f)](a2_0x4bfcb6(0x25e),'Email\x20subject\x20template')[a2_0x4bfcb6(0x28f)]('--html\x20<html>',a2_0x4bfcb6(0x374))['option'](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x25d))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x352),a2_0x4bfcb6(0x310))[a2_0x4bfcb6(0x366)]('--editor-type\x20<type>',a2_0x4bfcb6(0x276))[a2_0x4bfcb6(0x2c6)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x21d))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x38e))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),'Workspace\x20name')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x30a),'New\x20template\x20name')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x25e),a2_0x4bfcb6(0x20a))[a2_0x4bfcb6(0x366)]('--html\x20<html>','HTML\x20template\x20content')['option']('--plaintext\x20<text>',a2_0x4bfcb6(0x310))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1fb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x373))[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x23b),a2_0x4bfcb6(0x2f2))['option'](a2_0x4bfcb6(0x319),a2_0x4bfcb6(0x2c4))[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2dc))[a2_0x4bfcb6(0x355)]('Workspace\x20management'),workspaceListAction=async(_0x53bc4f,_0x31d0a1)=>{const _0xb93d39=a2_0x4bfcb6,_0x13ae07=new EngageWorkspacesCommand(),_0x4d0d1b=program[_0xb93d39(0x385)](),_0x34745a=await createTDXInstance(_0x4d0d1b),_0x445dbd=await _0x13ae07[_0xb93d39(0x297)]({'options':{..._0x4d0d1b,..._0x31d0a1},'args':_0x53bc4f?[_0x53bc4f]:[],'tdx':_0x34745a});process['exit'](_0x445dbd);};workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x281))['description']('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4bfcb6(0x2c6)](workspaceListAction),engageCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x206))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2a4))[a2_0x4bfcb6(0x2c6)](workspaceListAction),workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x265))[a2_0x4bfcb6(0x355)]('Show\x20workspace\x20details')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x303),a2_0x4bfcb6(0x368))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x2e9))['description'](a2_0x4bfcb6(0x212))[a2_0x4bfcb6(0x28f)](a2_0x4bfcb6(0x30a),'Workspace\x20name')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x261),a2_0x4bfcb6(0x25c))[a2_0x4bfcb6(0x2c6)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x4bfcb6(0x21d))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2bb))['option']('--name\x20<name>','New\x20workspace\x20name')[a2_0x4bfcb6(0x366)](a2_0x4bfcb6(0x261),'Workspace\x20description')['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x1fb))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x2b6))['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x4bfcb6(0x2c6)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x4bfcb6(0x27e)](a2_0x4bfcb6(0x309))[a2_0x4bfcb6(0x355)](a2_0x4bfcb6(0x234))['action'](createEngageAction(EngageWorkspaceUseCommand));export{program};export function runCLI(){const _0x33701d=a2_0x4bfcb6;program[_0x33701d(0x326)](process[_0x33701d(0x232)]);!process[_0x33701d(0x232)][_0x33701d(0x375)](0x2)[_0x33701d(0x205)]&&program['outputHelp']();const _0x30933c=packageJson[_0x33701d(0x37d)];process[_0x33701d(0x2ff)][_0x33701d(0x264)]&&process[_0x33701d(0x232)]['length']>0x2&&!_0x30933c[_0x33701d(0x26a)]('.dev')&&checkForUpdate(_0x30933c)[_0x33701d(0x383)](_0x565e58=>{_0x565e58&&displayUpdateNotification(_0x565e58);})[_0x33701d(0x22a)](()=>{});}
|