@treasuredata/tdx 0.1.13 → 0.1.15
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/README.md +87 -48
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client/cdp-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-client.js +1 -1
- package/dist/client/trino-client.d.ts +16 -0
- package/dist/client/trino-client.d.ts.map +1 -1
- package/dist/client/trino-client.js +1 -1
- package/dist/client/trino-client.js.map +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/chat-command.js +1 -1
- package/dist/commands/claude-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/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.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.d.ts.map +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/query-command.js.map +1 -1
- package/dist/commands/segment-command.d.ts +6 -6
- package/dist/commands/segment-command.d.ts.map +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-command.js.map +1 -1
- package/dist/commands/segment-create-command.d.ts +2 -1
- package/dist/commands/segment-create-command.d.ts.map +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-create-command.js.map +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pwd-command.d.ts +21 -0
- package/dist/commands/segment-pwd-command.d.ts.map +1 -0
- package/dist/commands/segment-pwd-command.js +1 -0
- package/dist/commands/segment-pwd-command.js.map +1 -0
- package/dist/commands/segment-update-command.d.ts +2 -1
- package/dist/commands/segment-update-command.d.ts.map +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-update-command.js.map +1 -1
- package/dist/commands/segment-use-command.d.ts +22 -0
- package/dist/commands/segment-use-command.d.ts.map +1 -0
- package/dist/commands/segment-use-command.js +1 -0
- package/dist/commands/segment-use-command.js.map +1 -0
- package/dist/commands/segments.d.ts +31 -5
- package/dist/commands/segments.d.ts.map +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/segments.js.map +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/global-context.d.ts +1 -0
- package/dist/core/global-context.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/global-context.js.map +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.d.ts +1 -0
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/session.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/server.d.ts.map +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/server.js.map +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/database.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/query.d.ts +5 -3
- package/dist/sdk/query.d.ts.map +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment.d.ts +89 -0
- 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/table.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/cdp.d.ts +61 -0
- package/dist/types/cdp.d.ts.map +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.d.ts +3 -0
- 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/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.d.ts +14 -0
- package/dist/utils/formatters.d.ts.map +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/formatters.js.map +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.d.ts +9 -2
- package/dist/utils/process.d.ts.map +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/process.js.map +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/segment-path-parser.d.ts +172 -0
- package/dist/utils/segment-path-parser.d.ts.map +1 -0
- package/dist/utils/segment-path-parser.js +1 -0
- package/dist/utils/segment-path-parser.js.map +1 -0
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.d.ts +1 -1
- package/dist/utils/spinner.d.ts.map +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/spinner.js.map +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/tree-formatter.d.ts +77 -0
- package/dist/utils/tree-formatter.d.ts.map +1 -0
- package/dist/utils/tree-formatter.js +1 -0
- package/dist/utils/tree-formatter.js.map +1 -0
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -541,27 +541,43 @@ tdx job result <job-id> --format tsv
|
|
|
541
541
|
|
|
542
542
|
Usage: `tdx segment <subcommand> [options] [arguments]`
|
|
543
543
|
|
|
544
|
-
CDP (Customer Data Platform) segment management for audiences and activations.
|
|
544
|
+
CDP (Customer Data Platform) segment management for audiences and activations with file-system-like navigation.
|
|
545
545
|
|
|
546
|
-
**
|
|
547
|
-
- Parent segment: `
|
|
548
|
-
- Child segment: `
|
|
549
|
-
-
|
|
550
|
-
- Pattern:
|
|
546
|
+
**Path Format:**
|
|
547
|
+
- Parent segment: `"My Audience"`
|
|
548
|
+
- Child segment: `"My Audience/High Value Users"`
|
|
549
|
+
- Nested folders: `"My Audience/Marketing/Campaigns/Email Q1"`
|
|
550
|
+
- Pattern matching: `"*DEMO"`, `"test*"`, `"*audience*"`
|
|
551
551
|
- **Note**: Names are case-sensitive
|
|
552
552
|
|
|
553
|
+
**Navigation Model:**
|
|
554
|
+
- Set context: `tdx segment use <path>` - Navigate into a parent or folder
|
|
555
|
+
- Show context: `tdx segment pwd` - Display current location
|
|
556
|
+
- List contents: `tdx segments` - Show folders + segments in current context
|
|
557
|
+
- All commands support both absolute paths and relative paths from context
|
|
558
|
+
|
|
559
|
+
#### Navigation Commands
|
|
560
|
+
|
|
561
|
+
| Command | Description | Example |
|
|
562
|
+
|---------|-------------|---------|
|
|
563
|
+
| `segment use <path>` | Set current context to parent or folder | `tdx segment use "My Audience/Marketing"` |
|
|
564
|
+
| `segment pwd` | Show current context path | `tdx segment pwd` |
|
|
565
|
+
| `segment use /` | Clear context (back to root) | `tdx segment use /` |
|
|
566
|
+
| `segment use ..` | Navigate to parent folder | `tdx segment use ..` |
|
|
567
|
+
|
|
553
568
|
#### Discovery Commands
|
|
554
569
|
|
|
555
570
|
| Command | Description | Example |
|
|
556
571
|
|---------|-------------|---------|
|
|
557
|
-
| `segments` | List all
|
|
558
|
-
| `segments <
|
|
559
|
-
| `
|
|
560
|
-
| `
|
|
561
|
-
| `
|
|
562
|
-
| `segment
|
|
563
|
-
| `segment
|
|
564
|
-
| `segment
|
|
572
|
+
| `segments` | List contents in current context (or all parents if no context) | `tdx segments` |
|
|
573
|
+
| `segments <path>` | List folders + segments at specified path | `tdx segments "My Audience/Marketing"` |
|
|
574
|
+
| `segments <pattern>` | List parents matching pattern (glob) | `tdx segments "*DEMO"` |
|
|
575
|
+
| `segments -r` | List recursively (tree view) | `tdx segments -r` |
|
|
576
|
+
| `segments <path> -r` | Recursive tree from path | `tdx segments "My Audience" -r` |
|
|
577
|
+
| `segment describe <path>` | Show details (parent/folder/segment) | `tdx segment describe "My Audience/Marketing"` |
|
|
578
|
+
| `segment show <path>` | Execute segment SQL query and show results | `tdx segment show "My Audience/Premium Users"` |
|
|
579
|
+
| `segment sql <path>` | Get SQL query for segment | `tdx segment sql "My Audience/Marketing/Premium"` |
|
|
580
|
+
| `segment fields <parent>` | List available fields for segmentation | `tdx segment fields "My Audience"` |
|
|
565
581
|
|
|
566
582
|
#### Management Commands
|
|
567
583
|
|
|
@@ -569,52 +585,75 @@ CDP (Customer Data Platform) segment management for audiences and activations.
|
|
|
569
585
|
|---------|-------------|---------|
|
|
570
586
|
| `segment parent create <name>` | Create new parent segment (audience) | `tdx segment parent create "Customer 360" --database mydb --table customers` |
|
|
571
587
|
| `segment parent update <name>` | Update existing parent segment | `tdx segment parent update "Customer 360" --description "Updated"` |
|
|
572
|
-
| `segment create <
|
|
573
|
-
| `segment update <
|
|
588
|
+
| `segment create <path>` | Create child segment with filtering (supports nested paths) | `tdx segment create "My Audience/Marketing/Premium" --rule-file rule.json` |
|
|
589
|
+
| `segment update <path>` | Update child segment (supports nested paths) | `tdx segment update "My Audience/Marketing/Premium" --description "Updated"` |
|
|
574
590
|
| `segment folder create <parent> <folder>` | Create segment folder | `tdx segment folder create "My Audience" "Q1 2024"` |
|
|
575
591
|
|
|
576
592
|
#### Discovery Examples
|
|
577
593
|
|
|
594
|
+
**Navigation Workflow:**
|
|
595
|
+
|
|
578
596
|
```bash
|
|
579
597
|
# List all parent segments
|
|
580
|
-
tdx segments
|
|
581
|
-
|
|
582
|
-
#
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
tdx
|
|
588
|
-
|
|
589
|
-
#
|
|
598
|
+
tdx segments
|
|
599
|
+
# Output:
|
|
600
|
+
# [parent segments]
|
|
601
|
+
# 👥 My Audience (50K)
|
|
602
|
+
# 👥 Sales Leads (12.5K)
|
|
603
|
+
|
|
604
|
+
# Pattern matching for parents
|
|
605
|
+
tdx segments "*DEMO"
|
|
606
|
+
# Output:
|
|
607
|
+
# [parent segments]
|
|
608
|
+
# 👥 TREASUREBIKES DEMO (3.28K)
|
|
609
|
+
# 👥 TEST DEMO (1.5K)
|
|
610
|
+
|
|
611
|
+
# Navigate into a parent
|
|
612
|
+
tdx segment use "My Audience"
|
|
613
|
+
|
|
614
|
+
# List folders + segments in current context (unified view)
|
|
615
|
+
tdx segments
|
|
616
|
+
# Output:
|
|
617
|
+
# [/My Audience]
|
|
618
|
+
# 📁 Marketing
|
|
619
|
+
# 📁 Sales
|
|
620
|
+
# 🎯 Active Users (35K)
|
|
621
|
+
# 🎯 All Users (50K)
|
|
622
|
+
|
|
623
|
+
# Recursive tree view from current context
|
|
624
|
+
tdx segments -r
|
|
625
|
+
# Output:
|
|
626
|
+
# [/My Audience]
|
|
627
|
+
# 📁 Marketing
|
|
628
|
+
# ├── 📁 Campaigns
|
|
629
|
+
# │ ├── 🎯 Email Q1 (5.23K)
|
|
630
|
+
# │ └── 🎯 Email Q2 (6.12K)
|
|
631
|
+
# └── 🎯 Email Subscribers (15K)
|
|
632
|
+
# 🎯 Active Users (35K)
|
|
633
|
+
|
|
634
|
+
# Navigate to nested folder
|
|
635
|
+
tdx segment use "My Audience/Marketing/Campaigns"
|
|
636
|
+
tdx segment pwd
|
|
637
|
+
# Output: My Audience/Marketing/Campaigns
|
|
638
|
+
|
|
639
|
+
# List specific path without changing context
|
|
640
|
+
tdx segments "My Audience/Marketing"
|
|
641
|
+
tdx segments "My Audience" -r # Recursive from specific path
|
|
642
|
+
|
|
643
|
+
# Show details using absolute paths
|
|
644
|
+
tdx segment describe "My Audience/Marketing/Campaigns"
|
|
590
645
|
tdx segment describe "My Audience/High Value Users"
|
|
591
646
|
|
|
592
|
-
#
|
|
593
|
-
tdx segment
|
|
647
|
+
# Show details using relative paths (from context)
|
|
648
|
+
tdx segment use "My Audience/Marketing"
|
|
649
|
+
tdx segment describe "Campaigns" # Relative to Marketing
|
|
594
650
|
|
|
595
|
-
# Execute
|
|
651
|
+
# Execute queries with paths
|
|
596
652
|
tdx segment show "My Audience/Premium Users" --limit 100
|
|
653
|
+
tdx segment sql "My Audience/Marketing/Email Subscribers" > query.sql
|
|
597
654
|
|
|
598
|
-
#
|
|
599
|
-
tdx segment show "My Audience" --format json --output results.json
|
|
600
|
-
|
|
601
|
-
# Get SQL for parent segment
|
|
602
|
-
tdx segment sql "My Audience" > parent-query.sql
|
|
603
|
-
|
|
604
|
-
# Get SQL for child segment with filtering (slash notation)
|
|
605
|
-
tdx segment sql "My Audience/High Value Users" > child-query.sql
|
|
606
|
-
|
|
607
|
-
# List available fields for creating filtered segments
|
|
655
|
+
# List available fields for parent
|
|
608
656
|
tdx segment fields "My Audience"
|
|
609
|
-
|
|
610
|
-
# List available fields with column details (JSON format)
|
|
611
|
-
tdx segment fields "My Audience" --json
|
|
612
|
-
|
|
613
|
-
# List folders under parent
|
|
614
|
-
tdx segment folders "My Audience"
|
|
615
|
-
|
|
616
|
-
# Show folder details (parent/folder notation)
|
|
617
|
-
tdx segment folder show "My Audience/Marketing"
|
|
618
657
|
```
|
|
619
658
|
|
|
620
659
|
#### Management Examples
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const a0_0x1c0958=a0_0x1c56;(function(_0x12b739,_0x59a064){const _0x25e8d8=a0_0x1c56,_0x527c21=_0x12b739();while(!![]){try{const _0x5a6b70=parseInt(_0x25e8d8(0x2b6))/0x1*(-parseInt(_0x25e8d8(0x2af))/0x2)+-parseInt(_0x25e8d8(0x1de))/0x3+parseInt(_0x25e8d8(0x236))/0x4+parseInt(_0x25e8d8(0x230))/0x5*(parseInt(_0x25e8d8(0x23f))/0x6)+-parseInt(_0x25e8d8(0x1e2))/0x7*(-parseInt(_0x25e8d8(0x235))/0x8)+-parseInt(_0x25e8d8(0x21c))/0x9*(-parseInt(_0x25e8d8(0x1ee))/0xa)+-parseInt(_0x25e8d8(0x1d0))/0xb;if(_0x5a6b70===_0x59a064)break;else _0x527c21['push'](_0x527c21['shift']());}catch(_0x6163c7){_0x527c21['push'](_0x527c21['shift']());}}}(a0_0x1e74,0x5c4b7));import{Command}from'commander';import{readFileSync}from'fs';function a0_0x1c56(_0x1a8cd9,_0xe8b167){const _0x1e7468=a0_0x1e74();return a0_0x1c56=function(_0x1c5651,_0x2588ae){_0x1c5651=_0x1c5651-0x1bb;let _0x23fa5a=_0x1e7468[_0x1c5651];return _0x23fa5a;},a0_0x1c56(_0x1a8cd9,_0xe8b167);}import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{GlobalContext}from'./core/global-context.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{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{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,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}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';const __filename=fileURLToPath(import.meta[a0_0x1c0958(0x25e)]),__dirname=dirname(__filename),packageJson=JSON[a0_0x1c0958(0x1cd)](readFileSync(join(__dirname,'../package.json'),a0_0x1c0958(0x20c))),program=new Command();program[a0_0x1c0958(0x1c0)](a0_0x1c0958(0x210))[a0_0x1c0958(0x264)](a0_0x1c0958(0x1c6))[a0_0x1c0958(0x298)](packageJson[a0_0x1c0958(0x298)],a0_0x1c0958(0x29f),a0_0x1c0958(0x26a)),program[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x24a),a0_0x1c0958(0x2ad),a0_0x1c0958(0x249))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x1c3),a0_0x1c0958(0x233))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2d1),a0_0x1c0958(0x203))['option'](a0_0x1c0958(0x1c2),a0_0x1c0958(0x1f5))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x1f7),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x294),a0_0x1c0958(0x2e0))['option'](a0_0x1c0958(0x286),a0_0x1c0958(0x204),'40')[a0_0x1c0958(0x2d6)]('--color',a0_0x1c0958(0x22e),![])[a0_0x1c0958(0x2d6)]('--no-color',a0_0x1c0958(0x284),![])[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x232),a0_0x1c0958(0x20a),![])[a0_0x1c0958(0x2d6)]('--timeout\x20<seconds>',a0_0x1c0958(0x29d),'30')[a0_0x1c0958(0x2d6)]('--dry-run',a0_0x1c0958(0x20b),![])['option'](a0_0x1c0958(0x297),a0_0x1c0958(0x272),![])[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x278),a0_0x1c0958(0x2ae))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x25b),a0_0x1c0958(0x2ca))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x1e5),'Database\x20to\x20use\x20(overrides\x20context)')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2d7),a0_0x1c0958(0x2c8))[a0_0x1c0958(0x2d6)]('--parent-segment\x20<name>',a0_0x1c0958(0x2d8))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2b3),a0_0x1c0958(0x21a)),program[a0_0x1c0958(0x21e)]({'formatHelp':(_0xa3b583,_0x47826a)=>{const _0x508578=a0_0x1c0958,_0x1ada09=_0x47826a[_0x508578(0x28d)](_0xa3b583,_0x47826a),_0x2dd7f7=0x2,_0xf26f61=0x2;function _0x109bfd(_0x3c2411){const _0x5d5e3f=_0x508578;return!!_0x3c2411[_0x5d5e3f(0x21b)];}function _0x49011d(_0x111cd1,_0x123a8c){if(_0x123a8c){const _0x265018=''+_0x111cd1['padEnd'](_0x1ada09+_0xf26f61)+_0x123a8c;return _0x265018;}return _0x111cd1;}function _0x13a43b(_0x39c948){const _0x2c4dae=_0x508578;return _0x39c948['join']('\x0a')['replace'](/^/gm,'\x20'[_0x2c4dae(0x225)](_0x2dd7f7));}const _0xc82152=[];_0xc82152[_0x508578(0x2a7)](_0x508578(0x268)+_0x47826a[_0x508578(0x2b1)](_0xa3b583));const _0x276f95=_0x47826a[_0x508578(0x29a)](_0xa3b583);_0x276f95&&(_0xc82152[_0x508578(0x2a7)](''),_0xc82152[_0x508578(0x2a7)](_0x276f95));const _0x4e4765=_0xa3b583['commands']['filter'](_0x118c48=>!_0x109bfd(_0x118c48));if(_0x4e4765[_0x508578(0x2b7)]>0x0){const _0x241053=_0x4e4765['map'](_0xcc9064=>{const _0x4b68c1=_0x508578,_0x4925d0=_0x47826a[_0x4b68c1(0x1d2)](_0xcc9064),_0x5d14bf=_0x47826a[_0x4b68c1(0x275)](_0xcc9064);return _0x49011d(_0x4925d0,_0x5d14bf);});_0xc82152[_0x508578(0x2a7)](''),_0xc82152[_0x508578(0x2a7)](_0x508578(0x299)),_0xc82152[_0x508578(0x2a7)](_0x13a43b(_0x241053));}const _0x173ccd=_0xa3b583['options'][_0x508578(0x1e9)](_0x31d306=>!_0x109bfd(_0x31d306));if(_0x173ccd[_0x508578(0x2b7)]>0x0){const _0x484bb5=_0x173ccd['map'](_0x35f2a5=>{const _0x9789fe=_0x508578,_0x51a831=_0x47826a[_0x9789fe(0x281)](_0x35f2a5),_0x3d9881=_0x47826a['optionDescription'](_0x35f2a5);return _0x49011d(_0x51a831,_0x3d9881);});_0xc82152[_0x508578(0x2a7)](''),_0xc82152[_0x508578(0x2a7)](_0x508578(0x1bd)),_0xc82152[_0x508578(0x2a7)](_0x13a43b(_0x484bb5));}const _0x5b77aa=(_0xa3b583[_0x508578(0x26d)]||[])['filter'](_0xa4f425=>!_0x109bfd(_0xa4f425));if(_0x5b77aa[_0x508578(0x2b7)]>0x0){const _0x289632=_0x5b77aa[_0x508578(0x202)](_0x717a50=>{const _0x5465c3=_0x508578,_0x35f4db=_0x47826a[_0x5465c3(0x267)](_0x717a50),_0x1e2140=_0x47826a['argumentDescription'](_0x717a50);return _0x49011d(_0x35f4db,_0x1e2140);});_0xc82152[_0x508578(0x2a7)](''),_0xc82152['push'](_0x508578(0x1cf)),_0xc82152[_0x508578(0x2a7)](_0x13a43b(_0x289632));}return _0xc82152['join']('\x0a');},'subcommandTerm':_0x21204b=>{const _0x509f7d=a0_0x1c0958,_0x3f5be5=(_0x21204b[_0x509f7d(0x26d)]||[])[_0x509f7d(0x202)](_0x1eac82=>_0x1eac82[_0x509f7d(0x1bf)]?'<'+_0x1eac82[_0x509f7d(0x1c0)]()+'>':'['+_0x1eac82['name']()+']')[_0x509f7d(0x2dc)]('\x20'),_0x3ae69f=_0x21204b['aliases'](),_0xb69cb4=_0x3ae69f[_0x509f7d(0x2b7)]>0x0?_0x21204b[_0x509f7d(0x1c0)]()+',\x20'+_0x3ae69f[_0x509f7d(0x2dc)](',\x20'):_0x21204b[_0x509f7d(0x1c0)]();return _0x3f5be5?_0xb69cb4+'\x20'+_0x3f5be5:_0xb69cb4;}}),program[a0_0x1c0958(0x271)](a0_0x1c0958(0x28e),_0x108ca=>{const _0x80243b=a0_0x1c0958,_0x56cfe6=_0x108ca[_0x80243b(0x28f)]();if(!_0x56cfe6[_0x80243b(0x2d0)]){if(_0x56cfe6[_0x80243b(0x283)])_0x56cfe6['format']=_0x80243b(0x283);else{if(_0x56cfe6['jsonl'])_0x56cfe6['format']=_0x80243b(0x296);else _0x56cfe6[_0x80243b(0x2d2)]&&(_0x56cfe6['format']='tsv');}}_0x56cfe6['in']&&!_0x56cfe6[_0x80243b(0x2d5)]&&(_0x56cfe6['database']=_0x56cfe6['in']);});function createTDXInstance(_0x3ac97b){const _0x575662=a0_0x1c0958,_0x4ab653=new GlobalContext(_0x3ac97b);_0x4ab653['injectIntoOptions'](_0x3ac97b);const _0x4be208={'site':_0x4ab653['site'],'apiKey':_0x4ab653[_0x575662(0x2c5)],'verbose':_0x4ab653[_0x575662(0x23e)]};return new TDX(_0x4be208);}program[a0_0x1c0958(0x1be)](a0_0x1c0958(0x250))[a0_0x1c0958(0x264)](a0_0x1c0958(0x29b))['action'](async(_0xa33fd5,_0x593e36)=>{const _0x558671=a0_0x1c0958,_0x13f621=new DatabasesCommand(),_0x4d7022=program[_0x558671(0x28f)](),_0x49719e=createTDXInstance(_0x4d7022),_0x45d7ba=await _0x13f621[_0x558671(0x25d)]({'options':{..._0x4d7022,..._0x593e36},'args':_0xa33fd5?[_0xa33fd5]:[],'tdx':_0x49719e});process[_0x558671(0x242)](_0x45d7ba);}),program[a0_0x1c0958(0x1be)](a0_0x1c0958(0x287))[a0_0x1c0958(0x264)](a0_0x1c0958(0x252))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x1fb),a0_0x1c0958(0x270))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x206),a0_0x1c0958(0x25c))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x265),a0_0x1c0958(0x229))[a0_0x1c0958(0x2d6)]('--new',a0_0x1c0958(0x291))['action'](async(_0x360215,_0x4a8f01)=>{const _0x29cd28=a0_0x1c0958,_0x289617=new ChatCommand(),_0x4ba682=program[_0x29cd28(0x28f)](),_0x2335e4=createTDXInstance(_0x4ba682),_0x25c4e7=await _0x289617[_0x29cd28(0x25d)]({'options':{..._0x4ba682,..._0x4a8f01},'args':_0x360215,'tdx':_0x2335e4});process[_0x29cd28(0x242)](_0x25c4e7);});const apiCmd=program[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1da))[a0_0x1c0958(0x1f3)](a0_0x1c0958(0x1fc))[a0_0x1c0958(0x28b)]('after',a0_0x1c0958(0x1db))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x24c),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a0_0x1c0958(0x27b))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x239),'Request\x20body\x20as\x20JSON\x20string')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x221),a0_0x1c0958(0x261))['option'](a0_0x1c0958(0x1fd),a0_0x1c0958(0x2da),(_0x5913fd,_0x1c3c4d)=>{return _0x1c3c4d?[..._0x1c3c4d,_0x5913fd]:[_0x5913fd];})['option']('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x44ab50,_0x28f431)=>{const _0x16efa6=a0_0x1c0958;if(!_0x44ab50){apiCmd['help']();return;}const _0x245ba8=new ApiCommand(),_0x347545=program[_0x16efa6(0x28f)](),_0xb03052=createTDXInstance(_0x347545),_0x5032c3=await _0x245ba8['run']({'options':{..._0x347545,..._0x28f431},'args':[_0x44ab50],'tdx':_0xb03052});process['exit'](_0x5032c3);});program['command'](a0_0x1c0958(0x1c8))[a0_0x1c0958(0x264)](a0_0x1c0958(0x1f4))['option']('-d,\x20--database\x20<database>',a0_0x1c0958(0x2b4))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x28a),a0_0x1c0958(0x2c8))[a0_0x1c0958(0x2ce)](async(_0x518f49,_0x4d61f0)=>{const _0x18ae37=a0_0x1c0958,_0x52d47e=new TablesCommand(),_0x1d8b43=program[_0x18ae37(0x28f)](),_0xf22f98=createTDXInstance(_0x1d8b43);_0x4d61f0['in']&&(_0x4d61f0[_0x18ae37(0x2d5)]=_0x4d61f0['in']);const _0x2bb813=await _0x52d47e[_0x18ae37(0x25d)]({'options':{..._0x1d8b43,..._0x4d61f0},'args':_0x518f49?[_0x518f49]:[],'tdx':_0xf22f98});process[_0x18ae37(0x242)](_0x2bb813);}),program[a0_0x1c0958(0x1be)](a0_0x1c0958(0x241))[a0_0x1c0958(0x264)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2b2),a0_0x1c0958(0x282))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x28a),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x1c0958(0x2ce)](async(_0x59b5a3,_0x22a4e6)=>{const _0x5d73f2=a0_0x1c0958,_0x3340a9=new ShowCommand(),_0x2bdfdd=program[_0x5d73f2(0x28f)](),_0x169560=createTDXInstance(_0x2bdfdd);_0x22a4e6['in']&&(_0x22a4e6['database']=_0x22a4e6['in']);const _0x40d109=await _0x3340a9[_0x5d73f2(0x25d)]({'options':{..._0x2bdfdd,..._0x22a4e6},'args':_0x59b5a3?[_0x59b5a3]:[],'tdx':_0x169560});process[_0x5d73f2(0x242)](_0x40d109);}),program[a0_0x1c0958(0x1be)]('describe\x20[table]')[a0_0x1c0958(0x2d4)]('desc')[a0_0x1c0958(0x264)](a0_0x1c0958(0x227))['option']('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option'](a0_0x1c0958(0x28a),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x362fc6,_0x1aac63)=>{const _0x2bd815=a0_0x1c0958,_0x4b04e8=new DescribeCommand(),_0x4b24ac=program['opts'](),_0x499acc=createTDXInstance(_0x4b24ac);_0x1aac63['in']&&(_0x1aac63[_0x2bd815(0x2d5)]=_0x1aac63['in']);const _0xf79ca0=await _0x4b04e8['run']({'options':{..._0x4b24ac,..._0x1aac63},'args':_0x362fc6?[_0x362fc6]:[],'tdx':_0x499acc});process['exit'](_0xf79ca0);}),program[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1cb))[a0_0x1c0958(0x264)](a0_0x1c0958(0x1d7))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2b2),a0_0x1c0958(0x2aa))['option'](a0_0x1c0958(0x28a),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x292),'Trino\x20catalog\x20(default:\x20td)')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x221),'Read\x20SQL\x20query\x20from\x20file')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x286),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a0_0x1c0958(0x2ce)](async(_0x87b359,_0xf33245)=>{const _0x5b32a7=a0_0x1c0958,_0x131897=new QueryCommand(),_0x3fb366=program[_0x5b32a7(0x28f)](),_0x317934=createTDXInstance(_0x3fb366);_0xf33245['in']&&(_0xf33245['database']=_0xf33245['in']);const _0x47bb76=await _0x131897['run']({'options':{..._0x3fb366,..._0xf33245},'args':_0x87b359?[_0x87b359]:[],'tdx':_0x317934});process[_0x5b32a7(0x242)](_0x47bb76);}),program['command'](a0_0x1c0958(0x1d6))['description']('List\x20parent\x20segments\x20or\x20child\x20segments\x20under\x20a\x20parent')[a0_0x1c0958(0x2ce)](async(_0x45e014,_0x1bd35a)=>{const _0x7b7ed7=a0_0x1c0958,_0x3a2e3a=new SegmentsCommand(),_0x5875=program[_0x7b7ed7(0x28f)](),_0x4da91d=createTDXInstance(_0x5875),_0x44866c=await _0x3a2e3a[_0x7b7ed7(0x25d)]({'options':{..._0x5875,..._0x1bd35a},'args':_0x45e014?[_0x45e014]:[],'tdx':_0x4da91d});process['exit'](_0x44866c);});const segmentCmd=program['command'](a0_0x1c0958(0x1fe))[a0_0x1c0958(0x264)](a0_0x1c0958(0x215));segmentCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1e7))[a0_0x1c0958(0x2d4)](a0_0x1c0958(0x22a))[a0_0x1c0958(0x264)](a0_0x1c0958(0x212))[a0_0x1c0958(0x2ce)](async(_0x2a8d39,_0x32ade7)=>{const _0x4836ce=a0_0x1c0958,_0x4731aa=new SegmentDescribeCommand(),_0x401683=program[_0x4836ce(0x28f)](),_0x49a699=createTDXInstance(_0x401683),_0x16cc34=await _0x4731aa['run']({'options':{..._0x401683,..._0x32ade7},'args':[_0x2a8d39],'tdx':_0x49a699});process[_0x4836ce(0x242)](_0x16cc34);}),segmentCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2db))[a0_0x1c0958(0x264)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(use\x20parent_name\x20or\x20parent_name/child_name)')[a0_0x1c0958(0x2ce)](async(_0x3b0a10,_0x3633fa)=>{const _0x55fb9d=a0_0x1c0958,_0x565695=new SegmentShowCommand(),_0x46212e=program[_0x55fb9d(0x28f)](),_0x33c95e=createTDXInstance(_0x46212e),_0x3e9986=await _0x565695[_0x55fb9d(0x25d)]({'options':{..._0x46212e,..._0x3633fa},'args':[_0x3b0a10],'tdx':_0x33c95e});process['exit'](_0x3e9986);}),segmentCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1ea))[a0_0x1c0958(0x264)]('List\x20segment\x20folders\x20under\x20a\x20parent\x20segment')['action'](async(_0xa81b47,_0x6a2ec1)=>{const _0x1aec16=a0_0x1c0958,_0xa47d4=new SegmentFolderListCommand(),_0x12f702=program[_0x1aec16(0x28f)](),_0x336a46=createTDXInstance(_0x12f702),_0x3d0fea=await _0xa47d4[_0x1aec16(0x25d)]({'options':{..._0x12f702,..._0x6a2ec1},'args':[_0xa81b47],'tdx':_0x336a46});process[_0x1aec16(0x242)](_0x3d0fea);});const folderCmd=segmentCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2ab))[a0_0x1c0958(0x264)](a0_0x1c0958(0x2b5));folderCmd['command'](a0_0x1c0958(0x217))[a0_0x1c0958(0x264)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a0_0x1c0958(0x2ce)](async(_0x589858,_0x50cc95)=>{const _0x4346f=a0_0x1c0958,_0xabbd40=new SegmentFolderShowCommand(),_0xbb458e=program[_0x4346f(0x28f)](),_0x100300=createTDXInstance(_0xbb458e),_0x43442d=await _0xabbd40[_0x4346f(0x25d)]({'options':{..._0xbb458e,..._0x50cc95},'args':[_0x589858],'tdx':_0x100300});process[_0x4346f(0x242)](_0x43442d);}),segmentCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x245))[a0_0x1c0958(0x264)](a0_0x1c0958(0x228))['action'](async(_0x2b3d33,_0x28283b)=>{const _0x31f98a=a0_0x1c0958,_0x56b081=new SegmentSQLCommand(),_0xf301b7=program[_0x31f98a(0x28f)](),_0x52fb25=createTDXInstance(_0xf301b7),_0x207f01=await _0x56b081[_0x31f98a(0x25d)]({'options':{..._0xf301b7,..._0x28283b},'args':[_0x2b3d33],'tdx':_0x52fb25});process[_0x31f98a(0x242)](_0x207f01);}),segmentCmd[a0_0x1c0958(0x1be)]('fields\x20<parent_name>')[a0_0x1c0958(0x264)](a0_0x1c0958(0x1f8))[a0_0x1c0958(0x2ce)](async(_0x28deeb,_0x16b294)=>{const _0x34fa14=a0_0x1c0958,_0x4c2ebf=new SegmentFieldsCommand(),_0x1c071b=program[_0x34fa14(0x28f)](),_0x190751=createTDXInstance(_0x1c071b),_0x566edc=await _0x4c2ebf['run']({'options':{..._0x1c071b,..._0x16b294},'args':[_0x28deeb],'tdx':_0x190751});process['exit'](_0x566edc);}),segmentCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x258))[a0_0x1c0958(0x264)]('Create\x20child\x20segment\x20(use\x20parent_name/child_name)')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x240),a0_0x1c0958(0x226))[a0_0x1c0958(0x2d6)]('--rule\x20<json>',a0_0x1c0958(0x263))[a0_0x1c0958(0x2d6)]('--rule-file\x20<file>',a0_0x1c0958(0x2c7))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x219),a0_0x1c0958(0x214))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x201),a0_0x1c0958(0x200))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x259),a0_0x1c0958(0x1cc))['option'](a0_0x1c0958(0x26c),a0_0x1c0958(0x2a9))[a0_0x1c0958(0x2ce)](async(_0x3c2e77,_0x372d56)=>{const _0x33bf0d=a0_0x1c0958,_0x199cc8=new SegmentCreateCommand(),_0x41e426=program[_0x33bf0d(0x28f)](),_0x235046=createTDXInstance(_0x41e426),_0xb9b035=await _0x199cc8[_0x33bf0d(0x25d)]({'options':{..._0x41e426,..._0x372d56},'args':[_0x3c2e77],'tdx':_0x235046});process[_0x33bf0d(0x242)](_0xb9b035);}),segmentCmd[a0_0x1c0958(0x1be)]('update\x20<segment_name>')[a0_0x1c0958(0x264)](a0_0x1c0958(0x2a8))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x27e),'New\x20segment\x20name')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x240),'Updated\x20description')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x222),a0_0x1c0958(0x2a5))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x266),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x219),a0_0x1c0958(0x2e4))['option'](a0_0x1c0958(0x201),a0_0x1c0958(0x200))[a0_0x1c0958(0x2ce)](async(_0x3cb0e4,_0x1c28f0)=>{const _0x4c6516=a0_0x1c0958,_0xc45204=new SegmentUpdateCommand(),_0x4e1215=program['opts'](),_0x25ecfe=createTDXInstance(_0x4e1215),_0x1b1198=await _0xc45204['run']({'options':{..._0x4e1215,..._0x1c28f0},'args':[_0x3cb0e4],'tdx':_0x25ecfe});process[_0x4c6516(0x242)](_0x1b1198);});const parentCmd=segmentCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2b8))['description'](a0_0x1c0958(0x260));parentCmd['command'](a0_0x1c0958(0x2c4))[a0_0x1c0958(0x264)](a0_0x1c0958(0x213))['requiredOption'](a0_0x1c0958(0x1e4),a0_0x1c0958(0x209))['requiredOption'](a0_0x1c0958(0x1eb),'Master\x20table\x20name')[a0_0x1c0958(0x2d6)]('--description\x20<text>',a0_0x1c0958(0x2e1))[a0_0x1c0958(0x2d6)]('--schedule-type\x20<type>',a0_0x1c0958(0x1ef))['option'](a0_0x1c0958(0x2ba),a0_0x1c0958(0x2d3))[a0_0x1c0958(0x2d6)]('--timezone\x20<tz>',a0_0x1c0958(0x1d5))[a0_0x1c0958(0x2d6)]('--attributes\x20<json>',a0_0x1c0958(0x253))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2bf),a0_0x1c0958(0x1c9))['option'](a0_0x1c0958(0x279),'Behaviors\x20as\x20JSON\x20string')[a0_0x1c0958(0x2d6)]('--behaviors-file\x20<file>',a0_0x1c0958(0x1d1))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x1fa),a0_0x1c0958(0x2cd))['option'](a0_0x1c0958(0x1f2),'Customer\x20group\x20from\x20JSON\x20file')[a0_0x1c0958(0x2ce)](async(_0x1b0c66,_0x2d452c)=>{const _0xca279c=a0_0x1c0958,_0x537496=new ParentSegmentCreateCommand(),_0x5b1f42=program['opts'](),_0x3ce0b4=createTDXInstance(_0x5b1f42),_0x1371b4=await _0x537496['run']({'options':{..._0x5b1f42,..._0x2d452c},'args':[_0x1b0c66],'tdx':_0x3ce0b4});process[_0xca279c(0x242)](_0x1371b4);}),parentCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x208))['description'](a0_0x1c0958(0x257))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x240),'Updated\x20description')['option'](a0_0x1c0958(0x216),a0_0x1c0958(0x295))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2ba),a0_0x1c0958(0x2de))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x280),a0_0x1c0958(0x2cf))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x1d3),a0_0x1c0958(0x1f0))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x254),'Add\x20attributes\x20from\x20JSON\x20file')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x29e),a0_0x1c0958(0x2d9))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x23d),a0_0x1c0958(0x1c5))[a0_0x1c0958(0x2ce)](async(_0x258f5b,_0x42af13)=>{const _0x21eef1=a0_0x1c0958,_0x580156=new ParentSegmentUpdateCommand(),_0x3f7283=program[_0x21eef1(0x28f)](),_0x5486e9=createTDXInstance(_0x3f7283),_0x21b694=await _0x580156['run']({'options':{..._0x3f7283,..._0x42af13},'args':[_0x258f5b],'tdx':_0x5486e9});process['exit'](_0x21b694);}),folderCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1c4))[a0_0x1c0958(0x264)](a0_0x1c0958(0x262))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x240),'Folder\x20description')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x224),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a0_0x1c0958(0x2ce)](async(_0x5cfebc,_0x5c0e43,_0x3b46e3)=>{const _0x5ca8ab=a0_0x1c0958,_0x3d208e=new SegmentFolderCreateCommand(),_0x2ff02b=program[_0x5ca8ab(0x28f)](),_0x414784=createTDXInstance(_0x2ff02b),_0x32e986=await _0x3d208e[_0x5ca8ab(0x25d)]({'options':{..._0x2ff02b,..._0x3b46e3},'args':[_0x5cfebc,_0x5c0e43],'tdx':_0x414784});process[_0x5ca8ab(0x242)](_0x32e986);}),program['command']('activations\x20<segment_name>')[a0_0x1c0958(0x264)](a0_0x1c0958(0x1c7))[a0_0x1c0958(0x2ce)](async(_0x34cabf,_0x130bb2)=>{const _0x3b6686=a0_0x1c0958,_0x3b7a63=new ActivationsCommand(),_0x357ec0=program[_0x3b6686(0x28f)](),_0x336cf2=createTDXInstance(_0x357ec0),_0x5bc49f=await _0x3b7a63['run']({'options':{..._0x357ec0,..._0x130bb2},'args':[_0x34cabf],'tdx':_0x336cf2});process[_0x3b6686(0x242)](_0x5bc49f);});const workflowCmd=program[a0_0x1c0958(0x1be)](a0_0x1c0958(0x285))[a0_0x1c0958(0x2d4)]('wf')[a0_0x1c0958(0x264)](a0_0x1c0958(0x1ce));workflowCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1c1))[a0_0x1c0958(0x264)](a0_0x1c0958(0x24f))[a0_0x1c0958(0x2ce)](async(_0x5aa49c,_0x3eb5f8)=>{const _0x4b0261=a0_0x1c0958,_0x2334a7=new WorkflowProjectsCommand(),_0xc172e6=program[_0x4b0261(0x28f)](),_0x362106=createTDXInstance(_0xc172e6),_0x477b7a=await _0x2334a7[_0x4b0261(0x25d)]({'options':{..._0xc172e6,..._0x3eb5f8},'args':_0x5aa49c?[_0x5aa49c]:[],'tdx':_0x362106});process[_0x4b0261(0x242)](_0x477b7a);}),workflowCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x256))['alias']('ls')[a0_0x1c0958(0x264)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a0_0x1c0958(0x2ce)](async(_0x3f822a,_0x14d287)=>{const _0x4d6d37=a0_0x1c0958,_0x1d9331=new WorkflowWorkflowsCommand(),_0x9ed239=program['opts'](),_0xa384f6=createTDXInstance(_0x9ed239),_0x1e946=await _0x1d9331[_0x4d6d37(0x25d)]({'options':{..._0x9ed239,..._0x14d287},'args':_0x3f822a?[_0x3f822a]:[],'tdx':_0xa384f6});process[_0x4d6d37(0x242)](_0x1e946);}),workflowCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2a0))['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a0_0x1c0958(0x2d6)]('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2a2),a0_0x1c0958(0x21d))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2ac),a0_0x1c0958(0x20e))[a0_0x1c0958(0x2ce)](async(_0x43fde7,_0x123031)=>{const _0x20f134=a0_0x1c0958,_0x5894bf=new WorkflowSessionsCommand(),_0x1876aa=program[_0x20f134(0x28f)](),_0x3a25aa=createTDXInstance(_0x1876aa),_0x11794b=await _0x5894bf[_0x20f134(0x25d)]({'options':{..._0x1876aa,..._0x123031},'args':_0x43fde7?[_0x43fde7]:[],'tdx':_0x3a25aa});process[_0x20f134(0x242)](_0x11794b);}),workflowCmd[a0_0x1c0958(0x1be)]('attempts\x20[project]')[a0_0x1c0958(0x264)](a0_0x1c0958(0x27c))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x1dc),a0_0x1c0958(0x2a1))['action'](async(_0xe87a39,_0x1121f0)=>{const _0x375dc2=a0_0x1c0958,_0x3c6191=new WorkflowAttemptsCommand(),_0x12c97b=program[_0x375dc2(0x28f)](),_0x5636a7=createTDXInstance(_0x12c97b),_0x5a089f=await _0x3c6191[_0x375dc2(0x25d)]({'options':{..._0x12c97b,..._0x1121f0},'args':_0xe87a39?[_0xe87a39]:[],'tdx':_0x5636a7});process[_0x375dc2(0x242)](_0x5a089f);}),workflowCmd[a0_0x1c0958(0x1be)]('attempt\x20<attempt-id>')[a0_0x1c0958(0x264)]('Show\x20specific\x20attempt\x20details')['action'](async(_0x1819c8,_0xcadcd3)=>{const _0x3d3a01=a0_0x1c0958,_0x214414=new WorkflowAttemptCommand(),_0x408f07=program[_0x3d3a01(0x28f)](),_0x4074da=createTDXInstance(_0x408f07),_0x2f9f6a=await _0x214414[_0x3d3a01(0x25d)]({'options':{..._0x408f07,..._0xcadcd3},'args':[_0x1819c8],'tdx':_0x4074da});process['exit'](_0x2f9f6a);}),workflowCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2c3))[a0_0x1c0958(0x264)](a0_0x1c0958(0x2be))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x26f),a0_0x1c0958(0x269))[a0_0x1c0958(0x2ce)](async(_0x115dc9,_0x34e7fb)=>{const _0x1eb161=a0_0x1c0958,_0x846caa=new WorkflowTasksCommand(),_0x53cdb8=program['opts'](),_0x57620c=createTDXInstance(_0x53cdb8),_0xd7dff8=await _0x846caa[_0x1eb161(0x25d)]({'options':{..._0x53cdb8,..._0x34e7fb},'args':[_0x115dc9],'tdx':_0x57620c});process[_0x1eb161(0x242)](_0xd7dff8);}),workflowCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x22b))[a0_0x1c0958(0x264)](a0_0x1c0958(0x24d))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2c9),a0_0x1c0958(0x1f9),_0x3940fe=>parseInt(_0x3940fe,0xa),0x0)['action'](async(_0x57aff3,_0x539082,_0x4db1ae)=>{const _0x25837b=a0_0x1c0958,_0x564ce7=new WorkflowLogsCommand(),_0x5675a3=program[_0x25837b(0x28f)](),_0x5e4d31=createTDXInstance(_0x5675a3),_0x8aa69f=await _0x564ce7[_0x25837b(0x25d)]({'options':{..._0x5675a3,..._0x4db1ae},'args':[_0x57aff3,_0x539082],'tdx':_0x5e4d31});process[_0x25837b(0x242)](_0x8aa69f);}),workflowCmd[a0_0x1c0958(0x1be)]('kill\x20<attempt-id>')[a0_0x1c0958(0x264)](a0_0x1c0958(0x2c6))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x220),a0_0x1c0958(0x1e6))[a0_0x1c0958(0x2ce)](async(_0x412044,_0x133414)=>{const _0x1bcd5a=a0_0x1c0958,_0x202eaa=new WorkflowKillCommand(),_0x4a7c11=program[_0x1bcd5a(0x28f)](),_0x178b05=createTDXInstance(_0x4a7c11),_0x192f38=await _0x202eaa[_0x1bcd5a(0x25d)]({'options':{..._0x4a7c11,..._0x133414},'args':[_0x412044],'tdx':_0x178b05});process['exit'](_0x192f38);}),workflowCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2bd))[a0_0x1c0958(0x264)](a0_0x1c0958(0x276))[a0_0x1c0958(0x2d6)]('--from-task\x20<task>',a0_0x1c0958(0x290))[a0_0x1c0958(0x2d6)]('--resume-from\x20<task>','Resume\x20from\x20specific\x20task\x20(attempt\x20retry\x20only)')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x207),a0_0x1c0958(0x23b))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x20f),a0_0x1c0958(0x22d))[a0_0x1c0958(0x2ce)](async(_0x4f7a38,_0x1ce73b)=>{const _0x56ca73=a0_0x1c0958,_0x183aad=new WorkflowRetryCommand(),_0x4431e3=program[_0x56ca73(0x28f)](),_0x117c54=createTDXInstance(_0x4431e3),_0x2e6dcb=await _0x183aad[_0x56ca73(0x25d)]({'options':{..._0x4431e3,..._0x1ce73b},'args':[_0x4f7a38],'tdx':_0x117c54});process['exit'](_0x2e6dcb);}),workflowCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x274))[a0_0x1c0958(0x264)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a0_0x1c0958(0x28c),a0_0x1c0958(0x20d))[a0_0x1c0958(0x2ce)](async(_0x5023b6,_0x43589d,_0xa5b468)=>{const _0x36f00a=a0_0x1c0958,_0xc8fbbd=new WorkflowDownloadCommand(),_0x49521c=program['opts'](),_0x24dae3=createTDXInstance(_0x49521c),_0x361f73=await _0xc8fbbd[_0x36f00a(0x25d)]({'options':{..._0x49521c,..._0xa5b468},'args':[_0x5023b6,_0x43589d||'.'],'tdx':_0x24dae3});process['exit'](_0x361f73);}),workflowCmd[a0_0x1c0958(0x1be)]('push\x20[project-name-or-dir]')[a0_0x1c0958(0x264)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a0_0x1c0958(0x2d6)]('--name\x20<name>',a0_0x1c0958(0x244))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x28c),a0_0x1c0958(0x223))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x22c),a0_0x1c0958(0x2e7))['action'](async(_0x27b9a1,_0x4344df)=>{const _0x1bae9c=a0_0x1c0958,_0x4f0d67=new WorkflowPushCommand(),_0x1563cd=program[_0x1bae9c(0x28f)](),_0x26264e=createTDXInstance(_0x1563cd),_0x207bdb=await _0x4f0d67[_0x1bae9c(0x25d)]({'options':{..._0x1563cd,..._0x4344df},'args':_0x27b9a1?[_0x27b9a1]:[],'tdx':_0x26264e});process[_0x1bae9c(0x242)](_0x207bdb);}),workflowCmd['command'](a0_0x1c0958(0x248))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a0_0x1c0958(0x2ce)](async(_0x4c1929,_0x11d290)=>{const _0x2fa91a=a0_0x1c0958,_0x251844=new WorkflowDeleteCommand(),_0x37b627=program['opts'](),_0x4ba049=createTDXInstance(_0x37b627),_0x4593bd=await _0x251844['run']({'options':{..._0x37b627,..._0x11d290},'args':[_0x4c1929],'tdx':_0x4ba049});process[_0x2fa91a(0x242)](_0x4593bd);}),program[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1ff))[a0_0x1c0958(0x264)](a0_0x1c0958(0x218))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2bb),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a0_0x1c0958(0x2ce)](async _0x5160d0=>{const _0xe0b1fb=a0_0x1c0958,_0x44934d=new JobListCommand(),_0x17dec3=program[_0xe0b1fb(0x28f)](),_0x402631=createTDXInstance(_0x17dec3),_0x2365d6=await _0x44934d[_0xe0b1fb(0x25d)]({'options':{..._0x17dec3,..._0x5160d0},'args':[],'tdx':_0x402631});process[_0xe0b1fb(0x242)](_0x2365d6);});const jobCmd=program[a0_0x1c0958(0x1be)]('job')[a0_0x1c0958(0x264)](a0_0x1c0958(0x238));jobCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1dd))[a0_0x1c0958(0x264)]('Show\x20job\x20details')[a0_0x1c0958(0x2ce)](async(_0x584fd2,_0x1811c3)=>{const _0x477881=a0_0x1c0958,_0x5f21b6=new JobShowCommand(),_0x51b27b=program[_0x477881(0x28f)](),_0x9d4641=createTDXInstance(_0x51b27b),_0x183899=await _0x5f21b6[_0x477881(0x25d)]({'options':{..._0x51b27b,..._0x1811c3},'args':[_0x584fd2],'tdx':_0x9d4641});process[_0x477881(0x242)](_0x183899);}),jobCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2a6))[a0_0x1c0958(0x264)](a0_0x1c0958(0x1d8))[a0_0x1c0958(0x2ce)](async(_0xdb19e6,_0xf5b85b)=>{const _0x156de6=a0_0x1c0958,_0x44efac=new JobKillCommand(),_0x377143=program[_0x156de6(0x28f)](),_0x1602cf=createTDXInstance(_0x377143),_0xfb2011=await _0x44efac[_0x156de6(0x25d)]({'options':{..._0x377143,..._0xf5b85b},'args':[_0xdb19e6],'tdx':_0x1602cf});process['exit'](_0xfb2011);}),jobCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x26e))[a0_0x1c0958(0x264)](a0_0x1c0958(0x1e3))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x25a),a0_0x1c0958(0x231),'trino')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x221),a0_0x1c0958(0x2e2))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x24e),a0_0x1c0958(0x2dd),'information_schema')['action'](async(_0x2c0194,_0x527b17)=>{const _0x166e5a=a0_0x1c0958,_0x42d679=new JobSubmitCommand(),_0x9f2da6=program[_0x166e5a(0x28f)](),_0x110f57=createTDXInstance(_0x9f2da6),_0x552a67=await _0x42d679[_0x166e5a(0x25d)]({'options':{..._0x9f2da6,..._0x527b17},'args':_0x2c0194?[_0x2c0194]:[],'tdx':_0x110f57});process[_0x166e5a(0x242)](_0x552a67);}),jobCmd[a0_0x1c0958(0x1be)]('result\x20<job-id>')['description']('Get\x20job\x20results')[a0_0x1c0958(0x2ce)](async(_0x426889,_0x5bd76d)=>{const _0x53c852=a0_0x1c0958,_0x12ddf3=new JobResultCommand(),_0x2606a4=program[_0x53c852(0x28f)](),_0x3324b6=createTDXInstance(_0x2606a4),_0x5549bf=await _0x12ddf3[_0x53c852(0x25d)]({'options':{..._0x2606a4,..._0x5bd76d},'args':[_0x426889],'tdx':_0x3324b6});process[_0x53c852(0x242)](_0x5549bf);});const llmCmd=program[a0_0x1c0958(0x1be)]('llm')[a0_0x1c0958(0x264)](a0_0x1c0958(0x27a));llmCmd['command']('use\x20<project-name>')[a0_0x1c0958(0x264)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a0_0x1c0958(0x2ce)](async(_0x2f0f34,_0x37ae67)=>{const _0x215985=a0_0x1c0958,_0x58f5a3=new LLMUseCommand(),_0x53fae0=program[_0x215985(0x28f)](),_0x28d6b0=createTDXInstance(_0x53fae0),_0x5810de=await _0x58f5a3[_0x215985(0x25d)]({'options':{..._0x53fae0,..._0x37ae67},'args':[_0x2f0f34],'tdx':_0x28d6b0});process['exit'](_0x5810de);}),llmCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2e6))[a0_0x1c0958(0x264)]('List\x20available\x20LLM\x20models')[a0_0x1c0958(0x2ce)](async _0x6815f3=>{const _0x1af86=a0_0x1c0958,_0xee8b3f=new LLMModelsCommand(),_0x185789=program['opts'](),_0x370210=createTDXInstance(_0x185789),_0x3a5876=await _0xee8b3f[_0x1af86(0x25d)]({'options':{..._0x185789,..._0x6815f3},'args':[],'tdx':_0x370210});process[_0x1af86(0x242)](_0x3a5876);}),llmCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1c1))['description'](a0_0x1c0958(0x1e1))[a0_0x1c0958(0x2ce)](async(_0x562ddf,_0x4f8864)=>{const _0x428e3f=a0_0x1c0958,_0x552341=new LLMProjectsCommand(),_0x46c3d1=program['opts'](),_0x461edc=createTDXInstance(_0x46c3d1),_0x298ffb=await _0x552341[_0x428e3f(0x25d)]({'options':{..._0x46c3d1,..._0x4f8864},'args':_0x562ddf?[_0x562ddf]:[],'tdx':_0x461edc});process[_0x428e3f(0x242)](_0x298ffb);});const projectCmd=llmCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x247))[a0_0x1c0958(0x264)]('LLM\x20project\x20management');projectCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2c4))[a0_0x1c0958(0x264)](a0_0x1c0958(0x277))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x240),'Project\x20description')[a0_0x1c0958(0x2ce)](async(_0x99705a,_0x34408c)=>{const _0x516741=a0_0x1c0958,_0x1bf84d=new LLMProjectCreateCommand(),_0x5cd82e=program[_0x516741(0x28f)](),_0xf82882=createTDXInstance(_0x5cd82e),_0x18b548=await _0x1bf84d['run']({'options':{..._0x5cd82e,..._0x34408c},'args':[_0x99705a],'tdx':_0xf82882});process[_0x516741(0x242)](_0x18b548);}),projectCmd[a0_0x1c0958(0x1be)]('delete\x20<name>')[a0_0x1c0958(0x264)](a0_0x1c0958(0x1d4))[a0_0x1c0958(0x2ce)](async(_0x31b430,_0x3f1c36)=>{const _0x1e121d=a0_0x1c0958,_0x1d9f64=new LLMProjectDeleteCommand(),_0x5f5059=program['opts'](),_0x4b0669=createTDXInstance(_0x5f5059),_0xd8d8f7=await _0x1d9f64[_0x1e121d(0x25d)]({'options':{..._0x5f5059,..._0x3f1c36},'args':[_0x31b430],'tdx':_0x4b0669});process['exit'](_0xd8d8f7);}),llmCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x29c))[a0_0x1c0958(0x264)](a0_0x1c0958(0x2e5))[a0_0x1c0958(0x2ce)](async(_0x41febd,_0x35f197)=>{const _0x2a7461=a0_0x1c0958,_0x28cc97=new LLMAgentsCommand(),_0xa62f32=program['opts'](),_0x26ed71=createTDXInstance(_0xa62f32),_0x364c90=await _0x28cc97[_0x2a7461(0x25d)]({'options':{..._0xa62f32,..._0x35f197},'args':_0x41febd?[_0x41febd]:[],'tdx':_0x26ed71});process[_0x2a7461(0x242)](_0x364c90);});const agentCmd=llmCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1bc))[a0_0x1c0958(0x264)]('LLM\x20agent\x20management');agentCmd[a0_0x1c0958(0x1be)]('show\x20<agent-name>')[a0_0x1c0958(0x264)]('Show\x20agent\x20details')[a0_0x1c0958(0x2ce)](async(_0x446bf8,_0x441308)=>{const _0x29423e=a0_0x1c0958,_0x46ab52=new LLMAgentShowCommand(),_0x20ab96=program[_0x29423e(0x28f)](),_0xa0ca06=createTDXInstance(_0x20ab96),_0x34372c=await _0x46ab52[_0x29423e(0x25d)]({'options':{..._0x20ab96,..._0x441308},'args':[_0x446bf8],'tdx':_0xa0ca06});process[_0x29423e(0x242)](_0x34372c);}),agentCmd['command'](a0_0x1c0958(0x2c4))['description'](a0_0x1c0958(0x1e0))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x22f),'System\x20prompt/instructions\x20(default:\x20empty)')['option'](a0_0x1c0958(0x206),a0_0x1c0958(0x246),a0_0x1c0958(0x243))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x21f),'Starter\x20message')['option'](a0_0x1c0958(0x288),a0_0x1c0958(0x27d),'4')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x265),a0_0x1c0958(0x229),a0_0x1c0958(0x1f6))['action'](async(_0x44053b,_0x123f49)=>{const _0x5dec9d=a0_0x1c0958,_0x354b38=new LLMAgentCreateCommand(),_0x4b6770=program[_0x5dec9d(0x28f)](),_0x32ed6b=createTDXInstance(_0x4b6770),_0x4fd28e=await _0x354b38['run']({'options':{..._0x4b6770,..._0x123f49},'args':[_0x44053b],'tdx':_0x32ed6b});process[_0x5dec9d(0x242)](_0x4fd28e);}),agentCmd[a0_0x1c0958(0x1be)](a0_0x1c0958(0x1ca))[a0_0x1c0958(0x264)](a0_0x1c0958(0x2b9))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x23a),a0_0x1c0958(0x2a3))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x273),a0_0x1c0958(0x23c))['option'](a0_0x1c0958(0x240),a0_0x1c0958(0x1d9))['option'](a0_0x1c0958(0x21f),a0_0x1c0958(0x2bc))[a0_0x1c0958(0x2ce)](async(_0x366b9c,_0x124c39)=>{const _0x1d8c71=a0_0x1c0958,_0x3d0c12=new LLMAgentUpdateCommand(),_0x57b7c4=program[_0x1d8c71(0x28f)](),_0x4fa329=createTDXInstance(_0x57b7c4),_0x2962a6=await _0x3d0c12['run']({'options':{..._0x57b7c4,..._0x124c39},'args':[_0x366b9c],'tdx':_0x4fa329});process[_0x1d8c71(0x242)](_0x2962a6);}),agentCmd['command'](a0_0x1c0958(0x237))[a0_0x1c0958(0x264)](a0_0x1c0958(0x211))['action'](async(_0x502499,_0x423d9a)=>{const _0x2863b1=a0_0x1c0958,_0x3b6bf5=new LLMAgentDeleteCommand(),_0x54c394=program['opts'](),_0x3ab595=createTDXInstance(_0x54c394),_0x3b5820=await _0x3b6bf5[_0x2863b1(0x25d)]({'options':{..._0x54c394,..._0x423d9a},'args':[_0x502499],'tdx':_0x3ab595});process[_0x2863b1(0x242)](_0x3b5820);}),llmCmd[a0_0x1c0958(0x1be)]('history\x20[chat-id]')['description'](a0_0x1c0958(0x2c1))[a0_0x1c0958(0x2ce)](async(_0x4ded6d,_0x28165b)=>{const _0x227858=a0_0x1c0958,_0x3f0a3c=new LLMHistoryCommand(),_0x265fab=program[_0x227858(0x28f)](),_0xe40a3=createTDXInstance(_0x265fab),_0x135fe2=await _0x3f0a3c['run']({'options':{..._0x265fab,..._0x28165b},'args':_0x4ded6d?[_0x4ded6d]:[],'tdx':_0xe40a3});process[_0x227858(0x242)](_0x135fe2);}),llmCmd['command'](a0_0x1c0958(0x234))['description'](a0_0x1c0958(0x24b))[a0_0x1c0958(0x2d6)]('--port\x20<number>',a0_0x1c0958(0x255),'4000')[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x2b0),a0_0x1c0958(0x1df))['option'](a0_0x1c0958(0x289),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a0_0x1c0958(0x2d6)]('--debug',a0_0x1c0958(0x2c0))['action'](async _0x40047a=>{const _0x30777f=a0_0x1c0958,_0x3ee1a7=new LLMProxyCommand(),_0x558417=program[_0x30777f(0x28f)](),_0x15b013=createTDXInstance(_0x558417),_0x413423={..._0x40047a,'port':_0x40047a[_0x30777f(0x1bb)]?parseInt(_0x40047a['port'],0xa):undefined},_0x20718c=await _0x3ee1a7['run']({'options':{..._0x558417,..._0x413423},'args':[],'tdx':_0x15b013});process[_0x30777f(0x242)](_0x20718c);}),program[a0_0x1c0958(0x1be)](a0_0x1c0958(0x2a4))[a0_0x1c0958(0x264)](a0_0x1c0958(0x1e8))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x206),a0_0x1c0958(0x2cb),a0_0x1c0958(0x2cc))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x205),a0_0x1c0958(0x1ec))[a0_0x1c0958(0x2ce)](async _0x6f1fcf=>{const _0x95f340=a0_0x1c0958,_0x2ab9ee=new ClaudeCommand(),_0x218452=program[_0x95f340(0x28f)](),_0x12cd1f=createTDXInstance(_0x218452),_0x29629d=await _0x2ab9ee[_0x95f340(0x25d)]({'options':{..._0x218452,..._0x6f1fcf},'args':[],'tdx':_0x12cd1f});process[_0x95f340(0x242)](_0x29629d);}),program['command'](a0_0x1c0958(0x2df))['description'](a0_0x1c0958(0x2c2))[a0_0x1c0958(0x2d6)](a0_0x1c0958(0x205),a0_0x1c0958(0x251))['option']('--clear',a0_0x1c0958(0x1f1))[a0_0x1c0958(0x2ce)](async _0x25ca3b=>{const _0x57c834=a0_0x1c0958,_0x435c0f=new ContextCommand(),_0x15746a=program[_0x57c834(0x28f)](),_0x3fe881=await _0x435c0f[_0x57c834(0x25d)]({'options':{..._0x15746a,..._0x25ca3b},'args':[],'tdx':null});process[_0x57c834(0x242)](_0x3fe881);}),program['command'](a0_0x1c0958(0x293))[a0_0x1c0958(0x264)](a0_0x1c0958(0x27f))[a0_0x1c0958(0x2ce)](async(_0x405994,_0x477b2c,_0x5db8b7)=>{const _0x324449=a0_0x1c0958,_0x217dc6=new UseCommand(),_0x17e443=program['opts'](),_0x30ab14=[];if(_0x405994)_0x30ab14[_0x324449(0x2a7)](_0x405994);if(_0x477b2c)_0x30ab14[_0x324449(0x2a7)](_0x477b2c);const _0x188db6=await _0x217dc6[_0x324449(0x25d)]({'options':{..._0x17e443,..._0x5db8b7},'args':_0x30ab14,'tdx':null});process[_0x324449(0x242)](_0x188db6);}),program['command']('profiles')['description'](a0_0x1c0958(0x2e3))[a0_0x1c0958(0x2ce)](async _0x3f3a83=>{const _0x2f7b39=a0_0x1c0958,_0x201e09=new ProfilesCommand(),_0x66e497=program[_0x2f7b39(0x28f)](),_0x512499=await _0x201e09[_0x2f7b39(0x25d)]({'options':{..._0x66e497,..._0x3f3a83},'args':[],'tdx':null});process[_0x2f7b39(0x242)](_0x512499);}),program[a0_0x1c0958(0x1cd)](process[a0_0x1c0958(0x25f)]);!process['argv'][a0_0x1c0958(0x26b)](0x2)[a0_0x1c0958(0x2b7)]&&program[a0_0x1c0958(0x1ed)]();function a0_0x1e74(){const _0x22d5d6=['CDP\x20segment\x20management\x20commands','--schedule-type\x20<type>','show\x20<folder_ref>','List\x20jobs','--folder\x20<name>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','hidden','927LeTXHa','Start\x20time\x20filter\x20(ISO\x208601\x20format)','configureHelp','--starter-message\x20<text>','--reason\x20<text>','-f,\x20--file\x20<path>','--rule\x20<json>','Revision\x20name\x20(default:\x20timestamp)','--parent-folder\x20<name>','repeat','Segment\x20description','Describe\x20table\x20schema','Get\x20SQL\x20query\x20for\x20segment\x20(use\x20parent_name\x20or\x20parent_name/child_name)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','desc','logs\x20<attempt-id>\x20<task-name>','--skip-validation','Force\x20retry\x20even\x20if\x20not\x20failed\x20(attempt\x20retry\x20only)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--system-prompt\x20<text>','286135rnabAf','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--verbose','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','proxy','8TVZSHz','1924552bCQUAu','delete\x20<agent-name>','Job\x20management\x20commands','--data\x20<data>','--name\x20<text>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Agent\x20prompt/instructions','--add-behaviors-file\x20<file>','verbose','48lXqIqX','--description\x20<text>','show\x20[table]','exit','claude-4.5-sonnet','Override\x20project\x20name','sql\x20<segment_name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','project','delete\x20<project-name-or-id>','us01','--site\x20<site>','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration','-X,\x20--method\x20<method>','Show\x20logs\x20for\x20a\x20specific\x20task','--database\x20<name>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','databases\x20[pattern]','Show\x20context\x20with\x20sources\x20(for\x20debugging)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Attributes\x20as\x20JSON\x20string','--add-attributes-file\x20<file>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','workflows\x20[project]','Update\x20parent\x20segment\x20(audience)','create\x20<segment_name>','--invisible','--job-type\x20<type>','--profile\x20<name>','Model\x20name\x20(default:\x20claude-4.5-sonnet)','run','url','argv','Parent\x20segment\x20(audience)\x20management','Read\x20request\x20body\x20from\x20file','Create\x20segment\x20folder','Filtering\x20rule\x20as\x20JSON\x20string','description','--temperature\x20<n>','--rule-file\x20<file>','argumentTerm','Usage:\x20','Include\x20subtasks\x20in\x20the\x20output','output\x20the\x20version\x20number','slice','--no-count-population','registeredArguments','submit\x20[query]','--include-subtasks','Agent\x20reference\x20(project-name/agent-name)','hook','Skip\x20confirmation\x20prompts','--prompt\x20<text>','download\x20<project-name>\x20[output-dir]','subcommandDescription','Retry\x20a\x20session\x20or\x20attempt\x20(prefix\x20with\x20session:\x20or\x20attempt:)','Create\x20a\x20new\x20LLM\x20project','--session\x20<id>','--behaviors\x20<json>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','GET','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Maximum\x20tool\x20iterations\x20(default:\x204)','--name\x20<new_name>','Set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20profile)','--timezone\x20<tz>','optionTerm','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','json','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','workflow','--limit\x20<rows>','chat\x20[message...]','--max-tool-iterations\x20<n>','--agent\x20<name>','--in\x20<database>','addHelpText','--revision\x20<revision>','padWidth','preAction','opts','Resume\x20from\x20specific\x20task\x20(session\x20retry\x20only)','Start\x20a\x20new\x20chat\x20session','--catalog\x20<catalog>','use\x20[resource]\x20[value]','--output\x20<file>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','jsonl','-y,\x20--yes','version','Commands:','commandDescription','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','agents\x20[pattern]','Set\x20operation\x20timeout\x20in\x20seconds','--add-behaviors\x20<json>','-v,\x20--version','sessions\x20[project]','Include\x20retried\x20attempts','--from\x20<timestamp>','Agent\x20name','claude','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','kill\x20<job-id>','push','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','Skip\x20population\x20counting','Database\x20to\x20query\x20(default:\x20information_schema)','folder','--to\x20<timestamp>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02,\x20ap03,\x20dev-us01,\x20dev-eu01,\x20stg-us01,\x20stg-jp01,\x20stg-ap03;\x20aliases:\x20us,\x20jp,\x20aws,\x20dev,\x20stg)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','54724IzjolM','--project\x20<name>','commandUsage','-d,\x20--database\x20<database>','--llm-project\x20<name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Segment\x20folder\x20management','5ucabTN','length','parent','Update\x20an\x20existing\x20agent','--schedule-option\x20<value>','--status\x20<status>','Starter\x20message','retry\x20<session-id|attempt-id>','Show\x20tasks\x20for\x20an\x20attempt','--attributes-file\x20<file>','Enable\x20debug\x20mode\x20(logs\x20request/response\x20to\x20stderr)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Show\x20current\x20resolved\x20context','tasks\x20<attempt-id>','create\x20<name>','apiKey','Kill\x20a\x20running\x20attempt','Filtering\x20rule\x20from\x20JSON\x20file','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--offset\x20<number>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','sonnet','Customer\x20group\x20as\x20JSON\x20string','action','Updated\x20timezone','format','--json','tsv','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','alias','database','option','--in\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Add\x20behaviors\x20as\x20JSON\x20string','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','show\x20<segment_name>','join','Database\x20name\x20(default:\x20information_schema)','Updated\x20schedule\x20option','context','Save\x20output\x20to\x20file','Parent\x20segment\x20description','Read\x20query\x20from\x20file','List\x20all\x20available\x20profiles','Move\x20to\x20folder','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','models','Skip\x20validation\x20of\x20.dig\x20files','port','agent','Options:','command','required','name','projects\x20[pattern]','--jsonl','--format\x20<format>','create\x20<parent_name>\x20<folder_name>','Add\x20behaviors\x20from\x20JSON\x20file','AI-native\x20CLI\x20for\x20Treasure\x20Data','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','tables\x20[pattern]','Attributes\x20from\x20JSON\x20file','update\x20<agent-name>','query\x20[sql]','Make\x20segment\x20invisible\x20(default:\x20visible)','parse','Workflow\x20(Digdag)\x20management\x20commands','Arguments:','3692271jRuyzi','Behaviors\x20from\x20JSON\x20file','subcommandTerm','--add-attributes\x20<json>','Delete\x20an\x20LLM\x20project','Timezone\x20(e.g.,\x20America/Los_Angeles)','segments\x20[parent_name]','Run\x20Trino\x20query\x20with\x20streaming\x20results','Kill\x20a\x20job','Agent\x20description','api\x20[endpoint]','\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','--include-retried','show\x20<job-id>','1460166nPFOBV','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','2460612VCuViu','Submit\x20a\x20job','--database\x20<db>','-d,\x20--database\x20<name>','Reason\x20for\x20killing\x20the\x20attempt','describe\x20<segment_name>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','filter','folders\x20<parent_name>','--table\x20<table>','Enable\x20debug\x20mode\x20(logs\x20proxy\x20request/response\x20to\x20stderr)','outputHelp','4540ddalJS','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Add\x20attributes\x20as\x20JSON\x20string','Clear\x20session\x20context','--customer-group-file\x20<file>','summary','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','0.7','--tsv','List\x20available\x20fields\x20for\x20segmentation','Starting\x20offset\x20for\x20logs\x20(default:\x200)','--customer-group\x20<json>','--agent\x20<ref>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','-H,\x20--header\x20<header>','segment','jobs','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--kind\x20<type>','map','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--debug','--model\x20<name>','--params\x20<json>','update\x20<name>','Master\x20database\x20name','Enable\x20verbose\x20logging','Preview\x20operation\x20without\x20executing','utf-8','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','End\x20time\x20filter\x20(ISO\x208601\x20format)','--force','tdx','Delete\x20an\x20agent','Show\x20segment\x20details\x20(use\x20parent_name\x20or\x20parent_name/child_name)','Create\x20parent\x20segment\x20(audience)','Folder\x20name\x20for\x20organization'];a0_0x1e74=function(){return _0x22d5d6;};return a0_0x1e74();}
|
|
2
|
+
const a0_0x20474a=a0_0x402a;(function(_0x1ac18f,_0x58f122){const _0x318a61=a0_0x402a,_0x44adef=_0x1ac18f();while(!![]){try{const _0x3ec3b0=parseInt(_0x318a61(0x1a5))/0x1+-parseInt(_0x318a61(0x177))/0x2*(-parseInt(_0x318a61(0x1c1))/0x3)+parseInt(_0x318a61(0xdc))/0x4+parseInt(_0x318a61(0x17b))/0x5*(parseInt(_0x318a61(0x157))/0x6)+-parseInt(_0x318a61(0x1ff))/0x7*(parseInt(_0x318a61(0x10b))/0x8)+-parseInt(_0x318a61(0xf6))/0x9*(-parseInt(_0x318a61(0x131))/0xa)+-parseInt(_0x318a61(0x10e))/0xb*(parseInt(_0x318a61(0x155))/0xc);if(_0x3ec3b0===_0x58f122)break;else _0x44adef['push'](_0x44adef['shift']());}catch(_0xc2fffd){_0x44adef['push'](_0x44adef['shift']());}}}(a0_0x43dc,0xcb1dd));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{GlobalContext}from'./core/global-context.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{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,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';function a0_0x402a(_0x321d9c,_0x420017){const _0x43dcb0=a0_0x43dc();return a0_0x402a=function(_0x402a1e,_0x2f4115){_0x402a1e=_0x402a1e-0xd4;let _0x168587=_0x43dcb0[_0x402a1e];return _0x168587;},a0_0x402a(_0x321d9c,_0x420017);}import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';const __filename=fileURLToPath(import.meta[a0_0x20474a(0x1c3)]),__dirname=dirname(__filename),packageJson=JSON[a0_0x20474a(0x132)](readFileSync(join(__dirname,a0_0x20474a(0x1bb)),a0_0x20474a(0xe5))),program=new Command();program['name']('tdx')['description'](a0_0x20474a(0x1f7))[a0_0x20474a(0xda)](packageJson['version'],a0_0x20474a(0x11f),a0_0x20474a(0x138)),program[a0_0x20474a(0x1d0)](a0_0x20474a(0x1c8),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02,\x20ap03,\x20dev-us01,\x20dev-eu01,\x20stg-us01,\x20stg-jp01,\x20stg-ap03;\x20aliases:\x20us,\x20jp,\x20aws,\x20dev,\x20stg)',a0_0x20474a(0xe2))[a0_0x20474a(0x1d0)]('--format\x20<format>',a0_0x20474a(0x1d1))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1d6),a0_0x20474a(0xee))[a0_0x20474a(0x1d0)](a0_0x20474a(0x198),a0_0x20474a(0x159))['option']('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a0_0x20474a(0x1d0)](a0_0x20474a(0xeb),a0_0x20474a(0x154))[a0_0x20474a(0x1d0)](a0_0x20474a(0x183),a0_0x20474a(0xfb),'40')[a0_0x20474a(0x1d0)]('--color',a0_0x20474a(0x1cc),![])[a0_0x20474a(0x1d0)]('--no-color',a0_0x20474a(0xe8),![])['option'](a0_0x20474a(0x129),a0_0x20474a(0x11a),![])['option'](a0_0x20474a(0x168),a0_0x20474a(0x11d),'30')['option']('--dry-run',a0_0x20474a(0x10a),![])[a0_0x20474a(0x1d0)]('-y,\x20--yes',a0_0x20474a(0xd8),![])['option'](a0_0x20474a(0x202),a0_0x20474a(0x12f))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1b4),a0_0x20474a(0x197))[a0_0x20474a(0x1d0)](a0_0x20474a(0x163),a0_0x20474a(0x1bc))['option'](a0_0x20474a(0x204),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x20474a(0x1d0)]('--parent-segment\x20<name>',a0_0x20474a(0xe0))['option'](a0_0x20474a(0x140),a0_0x20474a(0x110)),program['configureHelp']({'formatHelp':(_0x286a33,_0xc68a7e)=>{const _0x509950=a0_0x20474a,_0x5998cb=_0xc68a7e[_0x509950(0x100)](_0x286a33,_0xc68a7e),_0x266d4d=0x2,_0x451e5c=0x2;function _0x7c8489(_0x3c8f16){const _0x201546=_0x509950;return!!_0x3c8f16[_0x201546(0x119)];}function _0x5bc81b(_0x56861e,_0x1d9230){const _0x4077d4=_0x509950;if(_0x1d9230){const _0x3561c4=''+_0x56861e[_0x4077d4(0xde)](_0x5998cb+_0x451e5c)+_0x1d9230;return _0x3561c4;}return _0x56861e;}function _0x1d9ff0(_0x4e2e77){const _0x3ba189=_0x509950;return _0x4e2e77[_0x3ba189(0x18d)]('\x0a')[_0x3ba189(0x130)](/^/gm,'\x20'[_0x3ba189(0xd7)](_0x266d4d));}const _0x11d405=[];_0x11d405[_0x509950(0x16f)](_0x509950(0x126)+_0xc68a7e[_0x509950(0x11e)](_0x286a33));const _0x3ed124=_0xc68a7e[_0x509950(0x144)](_0x286a33);_0x3ed124&&(_0x11d405['push'](''),_0x11d405[_0x509950(0x16f)](_0x3ed124));const _0x3d12eb=_0x286a33['commands'][_0x509950(0x181)](_0x3ef6cb=>!_0x7c8489(_0x3ef6cb));if(_0x3d12eb[_0x509950(0x14d)]>0x0){const _0x3167e1=_0x3d12eb['map'](_0x2a6c4d=>{const _0xf8e69c=_0x509950,_0x4da77f=_0xc68a7e['subcommandTerm'](_0x2a6c4d),_0x41437e=_0xc68a7e[_0xf8e69c(0x106)](_0x2a6c4d);return _0x5bc81b(_0x4da77f,_0x41437e);});_0x11d405[_0x509950(0x16f)](''),_0x11d405[_0x509950(0x16f)](_0x509950(0xfc)),_0x11d405[_0x509950(0x16f)](_0x1d9ff0(_0x3167e1));}const _0x25d24b=_0x286a33[_0x509950(0x1a9)]['filter'](_0x53cef5=>!_0x7c8489(_0x53cef5));if(_0x25d24b[_0x509950(0x14d)]>0x0){const _0xe05d50=_0x25d24b['map'](_0x25f470=>{const _0xcb2e67=_0x509950,_0x12fc9c=_0xc68a7e[_0xcb2e67(0x1d9)](_0x25f470),_0x3c624f=_0xc68a7e[_0xcb2e67(0x1e1)](_0x25f470);return _0x5bc81b(_0x12fc9c,_0x3c624f);});_0x11d405['push'](''),_0x11d405[_0x509950(0x16f)](_0x509950(0x14a)),_0x11d405[_0x509950(0x16f)](_0x1d9ff0(_0xe05d50));}const _0xd6555a=(_0x286a33[_0x509950(0x16c)]||[])[_0x509950(0x181)](_0x1d44df=>!_0x7c8489(_0x1d44df));if(_0xd6555a['length']>0x0){const _0x1ac4b9=_0xd6555a[_0x509950(0x1d8)](_0x40d847=>{const _0x25f225=_0x509950,_0x4c5cc1=_0xc68a7e[_0x25f225(0x1e2)](_0x40d847),_0x11b27e=_0xc68a7e[_0x25f225(0xf7)](_0x40d847);return _0x5bc81b(_0x4c5cc1,_0x11b27e);});_0x11d405[_0x509950(0x16f)](''),_0x11d405[_0x509950(0x16f)](_0x509950(0x18f)),_0x11d405[_0x509950(0x16f)](_0x1d9ff0(_0x1ac4b9));}return _0x11d405[_0x509950(0x18d)]('\x0a');},'subcommandTerm':_0x3d6891=>{const _0x279448=a0_0x20474a,_0x2c4704=(_0x3d6891['registeredArguments']||[])[_0x279448(0x1d8)](_0x251bec=>_0x251bec[_0x279448(0x12c)]?'<'+_0x251bec[_0x279448(0x185)]()+'>':'['+_0x251bec[_0x279448(0x185)]()+']')[_0x279448(0x18d)]('\x20'),_0x316ff8=_0x3d6891[_0x279448(0x114)](),_0x3ceda5=_0x316ff8[_0x279448(0x14d)]>0x0?_0x3d6891['name']()+',\x20'+_0x316ff8['join'](',\x20'):_0x3d6891['name']();return _0x2c4704?_0x3ceda5+'\x20'+_0x2c4704:_0x3ceda5;}}),program[a0_0x20474a(0x201)](a0_0x20474a(0x17a),_0x35e4fa=>{const _0x4edbd8=a0_0x20474a,_0x3d6d99=_0x35e4fa[_0x4edbd8(0x118)]();if(!_0x3d6d99['format']){if(_0x3d6d99[_0x4edbd8(0x1cd)])_0x3d6d99[_0x4edbd8(0xd5)]=_0x4edbd8(0x1cd);else{if(_0x3d6d99[_0x4edbd8(0x200)])_0x3d6d99[_0x4edbd8(0xd5)]=_0x4edbd8(0x200);else _0x3d6d99['tsv']&&(_0x3d6d99[_0x4edbd8(0xd5)]=_0x4edbd8(0x14f));}}_0x3d6d99['in']&&!_0x3d6d99['database']&&(_0x3d6d99['database']=_0x3d6d99['in']);});function createTDXInstance(_0x20c512){const _0x5ebb14=a0_0x20474a,_0x3fb23e=new GlobalContext(_0x20c512);_0x3fb23e[_0x5ebb14(0x173)](_0x20c512);const _0xf200e7={'site':_0x3fb23e[_0x5ebb14(0x15b)],'apiKey':_0x3fb23e['apiKey'],'verbose':_0x3fb23e['verbose']};return new TDX(_0xf200e7);}program['command']('databases\x20[pattern]')[a0_0x20474a(0xd9)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a0_0x20474a(0x101)](async(_0x1b2e57,_0x54b908)=>{const _0x29e0bf=a0_0x20474a,_0x5d609f=new DatabasesCommand(),_0x1f7df0=program[_0x29e0bf(0x118)](),_0x27b90e=createTDXInstance(_0x1f7df0),_0x215d19=await _0x5d609f[_0x29e0bf(0x193)]({'options':{..._0x1f7df0,..._0x54b908},'args':_0x1b2e57?[_0x1b2e57]:[],'tdx':_0x27b90e});process[_0x29e0bf(0x1db)](_0x215d19);}),program['command'](a0_0x20474a(0x107))[a0_0x20474a(0xd9)](a0_0x20474a(0x14b))['option'](a0_0x20474a(0x1a8),a0_0x20474a(0x1bd))[a0_0x20474a(0x1d0)]('--model\x20<name>','Model\x20name\x20(default:\x20claude-4.5-sonnet)')['option'](a0_0x20474a(0x1b9),'Temperature\x20(0.0-2.0,\x20default:\x200.7)')[a0_0x20474a(0x1d0)](a0_0x20474a(0x17d),a0_0x20474a(0x113))[a0_0x20474a(0x101)](async(_0x25b7b4,_0xdd896b)=>{const _0x5823c7=new ChatCommand(),_0x2ad2ec=program['opts'](),_0x27653d=createTDXInstance(_0x2ad2ec),_0x3707ef=await _0x5823c7['run']({'options':{..._0x2ad2ec,..._0xdd896b},'args':_0x25b7b4,'tdx':_0x27653d});process['exit'](_0x3707ef);});const apiCmd=program[a0_0x20474a(0x117)](a0_0x20474a(0x1ce))[a0_0x20474a(0x1e7)](a0_0x20474a(0x158))[a0_0x20474a(0xf1)](a0_0x20474a(0x125),'\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')[a0_0x20474a(0x1d0)](a0_0x20474a(0x147),a0_0x20474a(0x124),a0_0x20474a(0x143))[a0_0x20474a(0x1d0)]('--data\x20<data>',a0_0x20474a(0x133))[a0_0x20474a(0x1d0)](a0_0x20474a(0x194),a0_0x20474a(0x141))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1ae),a0_0x20474a(0x19f),(_0x14de36,_0x23f23b)=>{return _0x23f23b?[..._0x23f23b,_0x14de36]:[_0x14de36];})[a0_0x20474a(0x1d0)](a0_0x20474a(0x152),a0_0x20474a(0x161),'td')[a0_0x20474a(0x101)](async(_0x592b64,_0x3daf52)=>{const _0x209a8c=a0_0x20474a;if(!_0x592b64){apiCmd[_0x209a8c(0x1f8)]();return;}const _0x271e0a=new ApiCommand(),_0x18247a=program[_0x209a8c(0x118)](),_0x5bc50e=createTDXInstance(_0x18247a),_0x5ccd73=await _0x271e0a[_0x209a8c(0x193)]({'options':{..._0x18247a,..._0x3daf52},'args':[_0x592b64],'tdx':_0x5bc50e});process['exit'](_0x5ccd73);});program[a0_0x20474a(0x117)](a0_0x20474a(0x115))[a0_0x20474a(0xd9)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')['option'](a0_0x20474a(0x149),a0_0x20474a(0x14e))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1e3),a0_0x20474a(0x1b6))[a0_0x20474a(0x101)](async(_0x5dda8e,_0x4c5e4d)=>{const _0x446432=a0_0x20474a,_0x32a73f=new TablesCommand(),_0x3691bd=program[_0x446432(0x118)](),_0x21b926=createTDXInstance(_0x3691bd);_0x4c5e4d['in']&&(_0x4c5e4d[_0x446432(0x191)]=_0x4c5e4d['in']);const _0x51d24f=await _0x32a73f[_0x446432(0x193)]({'options':{..._0x3691bd,..._0x4c5e4d},'args':_0x5dda8e?[_0x5dda8e]:[],'tdx':_0x21b926});process[_0x446432(0x1db)](_0x51d24f);}),program[a0_0x20474a(0x117)](a0_0x20474a(0x121))[a0_0x20474a(0xd9)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a0_0x20474a(0x1d0)]('-d,\x20--database\x20<database>',a0_0x20474a(0xea))['option']('--in\x20<database>',a0_0x20474a(0x1b6))[a0_0x20474a(0x101)](async(_0x368b23,_0x840112)=>{const _0x212476=a0_0x20474a,_0x4a6a75=new ShowCommand(),_0x32af7b=program[_0x212476(0x118)](),_0x45c6dd=createTDXInstance(_0x32af7b);_0x840112['in']&&(_0x840112[_0x212476(0x191)]=_0x840112['in']);const _0x3b690f=await _0x4a6a75[_0x212476(0x193)]({'options':{..._0x32af7b,..._0x840112},'args':_0x368b23?[_0x368b23]:[],'tdx':_0x45c6dd});process[_0x212476(0x1db)](_0x3b690f);}),program['command'](a0_0x20474a(0x148))[a0_0x20474a(0x153)](a0_0x20474a(0x1af))[a0_0x20474a(0xd9)](a0_0x20474a(0x169))[a0_0x20474a(0x1d0)]('-d,\x20--database\x20<database>',a0_0x20474a(0xea))[a0_0x20474a(0x1d0)]('--in\x20<database>',a0_0x20474a(0x1b6))[a0_0x20474a(0x101)](async(_0xa0b6b1,_0x4bed66)=>{const _0x49176a=a0_0x20474a,_0xdfd118=new DescribeCommand(),_0x5b1259=program[_0x49176a(0x118)](),_0x447cd9=createTDXInstance(_0x5b1259);_0x4bed66['in']&&(_0x4bed66[_0x49176a(0x191)]=_0x4bed66['in']);const _0xc149e=await _0xdfd118['run']({'options':{..._0x5b1259,..._0x4bed66},'args':_0xa0b6b1?[_0xa0b6b1]:[],'tdx':_0x447cd9});process['exit'](_0xc149e);}),program[a0_0x20474a(0x117)](a0_0x20474a(0xfd))[a0_0x20474a(0xd9)](a0_0x20474a(0x1d5))['option'](a0_0x20474a(0x149),'Database\x20to\x20query\x20(default:\x20information_schema)')['option'](a0_0x20474a(0x1e3),a0_0x20474a(0x1b6))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1f3),a0_0x20474a(0x1ad))[a0_0x20474a(0x1d0)]('-f,\x20--file\x20<path>',a0_0x20474a(0x1e5))[a0_0x20474a(0x1d0)]('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a0_0x20474a(0x101)](async(_0x569c08,_0x5b2099)=>{const _0x392f78=a0_0x20474a,_0x27e92e=new QueryCommand(),_0x165592=program[_0x392f78(0x118)](),_0x28529e=createTDXInstance(_0x165592);_0x5b2099['in']&&(_0x5b2099[_0x392f78(0x191)]=_0x5b2099['in']);const _0x7068ad=await _0x27e92e[_0x392f78(0x193)]({'options':{..._0x165592,..._0x5b2099},'args':_0x569c08?[_0x569c08]:[],'tdx':_0x28529e});process[_0x392f78(0x1db)](_0x7068ad);}),program['command']('segments\x20[path]')[a0_0x20474a(0xd9)](a0_0x20474a(0x10d))['option'](a0_0x20474a(0x1ed),a0_0x20474a(0x1ac))[a0_0x20474a(0x1d0)](a0_0x20474a(0x18c),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a0_0x20474a(0x101)](async(_0x391852,_0x1e4de3)=>{const _0x12ea66=a0_0x20474a,_0x327ae1=new SegmentsCommand(),_0x15947c=program[_0x12ea66(0x118)](),_0x57398f=createTDXInstance(_0x15947c),_0x2501a4=await _0x327ae1[_0x12ea66(0x193)]({'options':{..._0x15947c,..._0x1e4de3},'args':_0x391852?[_0x391852]:[],'tdx':_0x57398f});process[_0x12ea66(0x1db)](_0x2501a4);});const segmentCmd=program[a0_0x20474a(0x117)](a0_0x20474a(0x1a7))['description'](a0_0x20474a(0x16d));segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x103))[a0_0x20474a(0xd9)]('Set\x20current\x20segment/folder\x20context\x20for\x20navigation')[a0_0x20474a(0x101)](async(_0x45ae59,_0x2117e4)=>{const _0x335895=a0_0x20474a,_0x4dfdfc=new SegmentUseCommand(),_0x4d1c20=program[_0x335895(0x118)](),_0x9a88a4=createTDXInstance(_0x4d1c20),_0x147aa7=await _0x4dfdfc['run']({'options':{..._0x4d1c20,..._0x2117e4},'args':[_0x45ae59],'tdx':_0x9a88a4});process['exit'](_0x147aa7);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1b2))['description'](a0_0x20474a(0x104))[a0_0x20474a(0x101)](async _0x2d7dea=>{const _0x51152d=a0_0x20474a,_0x1f1306=new SegmentPwdCommand(),_0x358078=program['opts'](),_0x425100=createTDXInstance(_0x358078),_0x4c283d=await _0x1f1306['run']({'options':{..._0x358078,..._0x2d7dea},'args':[],'tdx':_0x425100});process[_0x51152d(0x1db)](_0x4c283d);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0xed))[a0_0x20474a(0x153)](a0_0x20474a(0x1af))[a0_0x20474a(0xd9)]('Show\x20segment\x20details\x20(use\x20parent_name\x20or\x20parent_name/child_name)')[a0_0x20474a(0x101)](async(_0x5637c4,_0xae5ac1)=>{const _0x5bd41d=a0_0x20474a,_0x52093a=new SegmentDescribeCommand(),_0x182b4d=program[_0x5bd41d(0x118)](),_0x142dee=createTDXInstance(_0x182b4d),_0x1cc1bd=await _0x52093a[_0x5bd41d(0x193)]({'options':{..._0x182b4d,..._0xae5ac1},'args':[_0x5637c4],'tdx':_0x142dee});process['exit'](_0x1cc1bd);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x15e))[a0_0x20474a(0xd9)](a0_0x20474a(0x15d))['action'](async(_0x14b1c8,_0x3f961b)=>{const _0x5bba48=a0_0x20474a,_0x1081bd=new SegmentShowCommand(),_0x19a600=program[_0x5bba48(0x118)](),_0x5509bf=createTDXInstance(_0x19a600),_0x47e9c9=await _0x1081bd[_0x5bba48(0x193)]({'options':{..._0x19a600,..._0x3f961b},'args':[_0x14b1c8],'tdx':_0x5509bf});process[_0x5bba48(0x1db)](_0x47e9c9);}),segmentCmd[a0_0x20474a(0x117)]('folders\x20<parent_name>')[a0_0x20474a(0xd9)]('List\x20segment\x20folders\x20under\x20a\x20parent\x20segment')[a0_0x20474a(0x101)](async(_0x250e0b,_0x2a4517)=>{const _0x5b18ef=a0_0x20474a,_0x1c12fd=new SegmentFolderListCommand(),_0x28c083=program[_0x5b18ef(0x118)](),_0x203be2=createTDXInstance(_0x28c083),_0x338d1a=await _0x1c12fd[_0x5b18ef(0x193)]({'options':{..._0x28c083,..._0x2a4517},'args':[_0x250e0b],'tdx':_0x203be2});process['exit'](_0x338d1a);});const folderCmd=segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x109))[a0_0x20474a(0xd9)](a0_0x20474a(0xf5));folderCmd[a0_0x20474a(0x117)](a0_0x20474a(0x19b))[a0_0x20474a(0xd9)](a0_0x20474a(0x1cf))[a0_0x20474a(0x101)](async(_0x5a1a82,_0x5cf846)=>{const _0x5d4ce9=a0_0x20474a,_0x2e058d=new SegmentFolderShowCommand(),_0x40acba=program[_0x5d4ce9(0x118)](),_0xdb1d81=createTDXInstance(_0x40acba),_0x24e6f5=await _0x2e058d[_0x5d4ce9(0x193)]({'options':{..._0x40acba,..._0x5cf846},'args':[_0x5a1a82],'tdx':_0xdb1d81});process[_0x5d4ce9(0x1db)](_0x24e6f5);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x166))[a0_0x20474a(0xd9)]('Get\x20SQL\x20query\x20for\x20segment\x20(use\x20parent_name\x20or\x20parent_name/child_name)')[a0_0x20474a(0x101)](async(_0x18a927,_0x51b5e3)=>{const _0x1bf246=a0_0x20474a,_0x2f73cb=new SegmentSQLCommand(),_0x18865b=program[_0x1bf246(0x118)](),_0xd51e4a=createTDXInstance(_0x18865b),_0x122b32=await _0x2f73cb[_0x1bf246(0x193)]({'options':{..._0x18865b,..._0x51b5e3},'args':[_0x18a927],'tdx':_0xd51e4a});process['exit'](_0x122b32);}),segmentCmd['command'](a0_0x20474a(0x1dc))[a0_0x20474a(0xd9)](a0_0x20474a(0x13c))[a0_0x20474a(0x101)](async(_0x4b8e69,_0x2091ff)=>{const _0xdcb1a5=a0_0x20474a,_0xfaa1dd=new SegmentFieldsCommand(),_0xc98910=program[_0xdcb1a5(0x118)](),_0x595fa8=createTDXInstance(_0xc98910),_0x54db8d=await _0xfaa1dd['run']({'options':{..._0xc98910,..._0x2091ff},'args':[_0x4b8e69],'tdx':_0x595fa8});process[_0xdcb1a5(0x1db)](_0x54db8d);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1e8))[a0_0x20474a(0xd9)](a0_0x20474a(0x162))[a0_0x20474a(0x1d0)]('--description\x20<text>',a0_0x20474a(0x182))[a0_0x20474a(0x1d0)]('--rule\x20<json>',a0_0x20474a(0x1fb))['option'](a0_0x20474a(0x17c),'Filtering\x20rule\x20from\x20JSON\x20file')['option'](a0_0x20474a(0x11b),a0_0x20474a(0x145))['option'](a0_0x20474a(0x15f),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a0_0x20474a(0x1d0)](a0_0x20474a(0xec),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a0_0x20474a(0x1d0)](a0_0x20474a(0xff),a0_0x20474a(0x1f6))[a0_0x20474a(0x101)](async(_0x61248f,_0x56f672)=>{const _0x30d343=a0_0x20474a,_0x420091=new SegmentCreateCommand(),_0x41d17a=program[_0x30d343(0x118)](),_0x218965=createTDXInstance(_0x41d17a),_0x5a25d3=await _0x420091['run']({'options':{..._0x41d17a,..._0x56f672},'args':[_0x61248f],'tdx':_0x218965});process[_0x30d343(0x1db)](_0x5a25d3);}),segmentCmd['command']('update\x20<segment_name>')[a0_0x20474a(0xd9)](a0_0x20474a(0x1b7))[a0_0x20474a(0x1d0)]('--name\x20<new_name>',a0_0x20474a(0x1ec))['option'](a0_0x20474a(0x105),'Updated\x20description')[a0_0x20474a(0x1d0)](a0_0x20474a(0x187),a0_0x20474a(0x1fd))[a0_0x20474a(0x1d0)](a0_0x20474a(0x17c),a0_0x20474a(0x1c4))[a0_0x20474a(0x1d0)](a0_0x20474a(0x11b),'Move\x20to\x20folder')[a0_0x20474a(0x1d0)](a0_0x20474a(0x15f),a0_0x20474a(0x1e0))['action'](async(_0x8168bd,_0x43bf68)=>{const _0x21e714=a0_0x20474a,_0x1cd523=new SegmentUpdateCommand(),_0x331e83=program['opts'](),_0x3e908f=createTDXInstance(_0x331e83),_0x237de1=await _0x1cd523[_0x21e714(0x193)]({'options':{..._0x331e83,..._0x43bf68},'args':[_0x8168bd],'tdx':_0x3e908f});process['exit'](_0x237de1);});const parentCmd=segmentCmd['command'](a0_0x20474a(0x13b))[a0_0x20474a(0xd9)](a0_0x20474a(0x1a0));parentCmd['command'](a0_0x20474a(0xe9))[a0_0x20474a(0xd9)](a0_0x20474a(0x1c6))['requiredOption'](a0_0x20474a(0x1ef),a0_0x20474a(0x136))[a0_0x20474a(0x102)]('--table\x20<table>','Master\x20table\x20name')[a0_0x20474a(0x1d0)](a0_0x20474a(0x105),a0_0x20474a(0x170))[a0_0x20474a(0x1d0)](a0_0x20474a(0x184),a0_0x20474a(0x165))[a0_0x20474a(0x1d0)]('--schedule-option\x20<value>',a0_0x20474a(0x1ee))[a0_0x20474a(0x1d0)]('--timezone\x20<tz>',a0_0x20474a(0xf2))['option'](a0_0x20474a(0x1e4),'Attributes\x20as\x20JSON\x20string')[a0_0x20474a(0x1d0)](a0_0x20474a(0x12b),a0_0x20474a(0x160))[a0_0x20474a(0x1d0)]('--behaviors\x20<json>',a0_0x20474a(0x1d7))[a0_0x20474a(0x1d0)]('--behaviors-file\x20<file>',a0_0x20474a(0xf3))['option'](a0_0x20474a(0x13a),a0_0x20474a(0x137))['option'](a0_0x20474a(0x203),a0_0x20474a(0xf9))['action'](async(_0x4673ed,_0x2b150d)=>{const _0xa09097=a0_0x20474a,_0x49d27a=new ParentSegmentCreateCommand(),_0x139929=program['opts'](),_0x5185f2=createTDXInstance(_0x139929),_0x5e5784=await _0x49d27a[_0xa09097(0x193)]({'options':{..._0x139929,..._0x2b150d},'args':[_0x4673ed],'tdx':_0x5185f2});process['exit'](_0x5e5784);}),parentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1b8))[a0_0x20474a(0xd9)]('Update\x20parent\x20segment\x20(audience)')[a0_0x20474a(0x1d0)](a0_0x20474a(0x105),a0_0x20474a(0x1e9))[a0_0x20474a(0x1d0)](a0_0x20474a(0x184),a0_0x20474a(0x122))[a0_0x20474a(0x1d0)]('--schedule-option\x20<value>',a0_0x20474a(0x196))['option'](a0_0x20474a(0x195),'Updated\x20timezone')['option'](a0_0x20474a(0x1f0),a0_0x20474a(0x1c0))[a0_0x20474a(0x1d0)]('--add-attributes-file\x20<file>',a0_0x20474a(0x1b5))[a0_0x20474a(0x1d0)](a0_0x20474a(0x14c),'Add\x20behaviors\x20as\x20JSON\x20string')[a0_0x20474a(0x1d0)]('--add-behaviors-file\x20<file>',a0_0x20474a(0xe3))[a0_0x20474a(0x101)](async(_0x1614a8,_0x3cd715)=>{const _0x222c88=a0_0x20474a,_0x3e5faa=new ParentSegmentUpdateCommand(),_0x1b5865=program['opts'](),_0x408467=createTDXInstance(_0x1b5865),_0x57a42b=await _0x3e5faa[_0x222c88(0x193)]({'options':{..._0x1b5865,..._0x3cd715},'args':[_0x1614a8],'tdx':_0x408467});process[_0x222c88(0x1db)](_0x57a42b);}),folderCmd[a0_0x20474a(0x117)]('create\x20<parent_name>\x20<folder_name>')[a0_0x20474a(0xd9)](a0_0x20474a(0xe4))['option'](a0_0x20474a(0x105),'Folder\x20description')[a0_0x20474a(0x1d0)](a0_0x20474a(0x174),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a0_0x20474a(0x101)](async(_0x1759b7,_0x3aff84,_0xf67893)=>{const _0x57faba=a0_0x20474a,_0x51944b=new SegmentFolderCreateCommand(),_0x125d83=program[_0x57faba(0x118)](),_0x3d4677=createTDXInstance(_0x125d83),_0x81f05a=await _0x51944b['run']({'options':{..._0x125d83,..._0xf67893},'args':[_0x1759b7,_0x3aff84],'tdx':_0x3d4677});process['exit'](_0x81f05a);}),program[a0_0x20474a(0x117)](a0_0x20474a(0xe1))[a0_0x20474a(0xd9)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a0_0x20474a(0x101)](async(_0x187ebb,_0x336145)=>{const _0xb74fab=a0_0x20474a,_0x2dcd5e=new ActivationsCommand(),_0x4c23b6=program[_0xb74fab(0x118)](),_0x10830e=createTDXInstance(_0x4c23b6),_0x2725d1=await _0x2dcd5e[_0xb74fab(0x193)]({'options':{..._0x4c23b6,..._0x336145},'args':[_0x187ebb],'tdx':_0x10830e});process['exit'](_0x2725d1);});const workflowCmd=program['command'](a0_0x20474a(0x180))[a0_0x20474a(0x153)]('wf')[a0_0x20474a(0xd9)]('Workflow\x20(Digdag)\x20management\x20commands');workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1c2))[a0_0x20474a(0xd9)](a0_0x20474a(0x199))[a0_0x20474a(0x101)](async(_0x135173,_0x33aecc)=>{const _0x2a7767=a0_0x20474a,_0x33a05b=new WorkflowProjectsCommand(),_0xbb7b52=program['opts'](),_0xff1779=createTDXInstance(_0xbb7b52),_0x6bcc4=await _0x33a05b[_0x2a7767(0x193)]({'options':{..._0xbb7b52,..._0x33aecc},'args':_0x135173?[_0x135173]:[],'tdx':_0xff1779});process[_0x2a7767(0x1db)](_0x6bcc4);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0xf0))[a0_0x20474a(0x153)]('ls')[a0_0x20474a(0xd9)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')['action'](async(_0x5ed26b,_0x475fdd)=>{const _0x48e9f8=a0_0x20474a,_0x3eb52b=new WorkflowWorkflowsCommand(),_0xfbc056=program[_0x48e9f8(0x118)](),_0x3963ae=createTDXInstance(_0xfbc056),_0x25cbc1=await _0x3eb52b[_0x48e9f8(0x193)]({'options':{..._0xfbc056,..._0x475fdd},'args':_0x5ed26b?[_0x5ed26b]:[],'tdx':_0x3963ae});process[_0x48e9f8(0x1db)](_0x25cbc1);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1ea))[a0_0x20474a(0xd9)](a0_0x20474a(0xef))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1a6),a0_0x20474a(0x134))[a0_0x20474a(0x1d0)](a0_0x20474a(0x12a),a0_0x20474a(0x18a))[a0_0x20474a(0x1d0)](a0_0x20474a(0x16b),a0_0x20474a(0x11c))[a0_0x20474a(0x101)](async(_0x41f00e,_0x164166)=>{const _0x2e4b0e=a0_0x20474a,_0x15c7e1=new WorkflowSessionsCommand(),_0x32281b=program[_0x2e4b0e(0x118)](),_0x24fd68=createTDXInstance(_0x32281b),_0x1ac4b1=await _0x15c7e1[_0x2e4b0e(0x193)]({'options':{..._0x32281b,..._0x164166},'args':_0x41f00e?[_0x41f00e]:[],'tdx':_0x24fd68});process[_0x2e4b0e(0x1db)](_0x1ac4b1);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x150))['description']('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')['option'](a0_0x20474a(0x19e),a0_0x20474a(0x1d4))[a0_0x20474a(0x101)](async(_0x6437eb,_0x3b5f29)=>{const _0x2994e0=a0_0x20474a,_0x361872=new WorkflowAttemptsCommand(),_0x56985b=program['opts'](),_0x4a928f=createTDXInstance(_0x56985b),_0x18d45d=await _0x361872['run']({'options':{..._0x56985b,..._0x3b5f29},'args':_0x6437eb?[_0x6437eb]:[],'tdx':_0x4a928f});process[_0x2994e0(0x1db)](_0x18d45d);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x164))[a0_0x20474a(0xd9)](a0_0x20474a(0x127))[a0_0x20474a(0x101)](async(_0x2efd64,_0x3c302b)=>{const _0x146548=new WorkflowAttemptCommand(),_0x5c4513=program['opts'](),_0x59c9bd=createTDXInstance(_0x5c4513),_0x6ece6f=await _0x146548['run']({'options':{..._0x5c4513,..._0x3c302b},'args':[_0x2efd64],'tdx':_0x59c9bd});process['exit'](_0x6ece6f);}),workflowCmd['command'](a0_0x20474a(0x1c5))['description'](a0_0x20474a(0x135))[a0_0x20474a(0x1d0)](a0_0x20474a(0x190),'Include\x20subtasks\x20in\x20the\x20output')[a0_0x20474a(0x101)](async(_0x5cc21e,_0x458722)=>{const _0x174577=a0_0x20474a,_0x3b7063=new WorkflowTasksCommand(),_0x122dd4=program[_0x174577(0x118)](),_0x1dee09=createTDXInstance(_0x122dd4),_0x21d64a=await _0x3b7063['run']({'options':{..._0x122dd4,..._0x458722},'args':[_0x5cc21e],'tdx':_0x1dee09});process[_0x174577(0x1db)](_0x21d64a);}),workflowCmd[a0_0x20474a(0x117)]('logs\x20<attempt-id>\x20<task-name>')[a0_0x20474a(0xd9)](a0_0x20474a(0x178))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1aa),'Starting\x20offset\x20for\x20logs\x20(default:\x200)',_0x503d3c=>parseInt(_0x503d3c,0xa),0x0)[a0_0x20474a(0x101)](async(_0x288535,_0x39e648,_0x1df084)=>{const _0xaf9dfe=a0_0x20474a,_0x42f053=new WorkflowLogsCommand(),_0x3810d0=program[_0xaf9dfe(0x118)](),_0x20d406=createTDXInstance(_0x3810d0),_0x15936d=await _0x42f053[_0xaf9dfe(0x193)]({'options':{..._0x3810d0,..._0x1df084},'args':[_0x288535,_0x39e648],'tdx':_0x20d406});process[_0xaf9dfe(0x1db)](_0x15936d);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x10f))[a0_0x20474a(0xd9)](a0_0x20474a(0x18e))['option'](a0_0x20474a(0x151),a0_0x20474a(0x205))[a0_0x20474a(0x101)](async(_0x4258b7,_0x52e3b)=>{const _0x431aab=a0_0x20474a,_0x389a30=new WorkflowKillCommand(),_0x45b4b4=program['opts'](),_0x3924d7=createTDXInstance(_0x45b4b4),_0x2e6c40=await _0x389a30[_0x431aab(0x193)]({'options':{..._0x45b4b4,..._0x52e3b},'args':[_0x4258b7],'tdx':_0x3924d7});process[_0x431aab(0x1db)](_0x2e6c40);}),workflowCmd['command'](a0_0x20474a(0x1c9))['description']('Retry\x20a\x20session\x20or\x20attempt\x20(prefix\x20with\x20session:\x20or\x20attempt:)')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1fa),'Resume\x20from\x20specific\x20task\x20(session\x20retry\x20only)')[a0_0x20474a(0x1d0)](a0_0x20474a(0x206),a0_0x20474a(0xf8))[a0_0x20474a(0x1d0)](a0_0x20474a(0x10c),a0_0x20474a(0xfa))[a0_0x20474a(0x1d0)]('--force',a0_0x20474a(0x192))[a0_0x20474a(0x101)](async(_0x256e06,_0x3c4c83)=>{const _0x43f10a=a0_0x20474a,_0xc6d924=new WorkflowRetryCommand(),_0x58da3e=program[_0x43f10a(0x118)](),_0x581422=createTDXInstance(_0x58da3e),_0x3b4805=await _0xc6d924[_0x43f10a(0x193)]({'options':{..._0x58da3e,..._0x3c4c83},'args':[_0x256e06],'tdx':_0x581422});process[_0x43f10a(0x1db)](_0x3b4805);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1da))[a0_0x20474a(0xd9)](a0_0x20474a(0x1cb))[a0_0x20474a(0x1d0)](a0_0x20474a(0x189),a0_0x20474a(0x1bf))[a0_0x20474a(0x101)](async(_0xfa635b,_0x7af6d6,_0x148ca7)=>{const _0x4573b6=a0_0x20474a,_0x5e03ca=new WorkflowDownloadCommand(),_0x3529fc=program[_0x4573b6(0x118)](),_0x48933b=createTDXInstance(_0x3529fc),_0x1d9289=await _0x5e03ca['run']({'options':{..._0x3529fc,..._0x148ca7},'args':[_0xfa635b,_0x7af6d6||'.'],'tdx':_0x48933b});process[_0x4573b6(0x1db)](_0x1d9289);}),workflowCmd['command'](a0_0x20474a(0x188))[a0_0x20474a(0xd9)](a0_0x20474a(0xdf))[a0_0x20474a(0x1d0)](a0_0x20474a(0x111),a0_0x20474a(0x1a4))[a0_0x20474a(0x1d0)](a0_0x20474a(0x189),'Revision\x20name\x20(default:\x20timestamp)')[a0_0x20474a(0x1d0)]('--skip-validation',a0_0x20474a(0x12d))[a0_0x20474a(0x101)](async(_0xae9a71,_0x402523)=>{const _0x329d82=a0_0x20474a,_0xd99b1e=new WorkflowPushCommand(),_0x14ad1b=program[_0x329d82(0x118)](),_0x2dbd8b=createTDXInstance(_0x14ad1b),_0x250e23=await _0xd99b1e[_0x329d82(0x193)]({'options':{..._0x14ad1b,..._0x402523},'args':_0xae9a71?[_0xae9a71]:[],'tdx':_0x2dbd8b});process[_0x329d82(0x1db)](_0x250e23);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x179))[a0_0x20474a(0xd9)](a0_0x20474a(0x1ba))['action'](async(_0x40731d,_0x1bcbc6)=>{const _0xc605a7=a0_0x20474a,_0x51d7ae=new WorkflowDeleteCommand(),_0x34438c=program[_0xc605a7(0x118)](),_0x5c2834=createTDXInstance(_0x34438c),_0x52bb5e=await _0x51d7ae[_0xc605a7(0x193)]({'options':{..._0x34438c,..._0x1bcbc6},'args':[_0x40731d],'tdx':_0x5c2834});process[_0xc605a7(0x1db)](_0x52bb5e);}),program[a0_0x20474a(0x117)](a0_0x20474a(0xe7))['description']('List\x20jobs')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1a6),a0_0x20474a(0x1df))[a0_0x20474a(0x101)](async _0x19abb5=>{const _0x4a6b8c=a0_0x20474a,_0x12663a=new JobListCommand(),_0x18877c=program[_0x4a6b8c(0x118)](),_0x48d68a=createTDXInstance(_0x18877c),_0x13e214=await _0x12663a[_0x4a6b8c(0x193)]({'options':{..._0x18877c,..._0x19abb5},'args':[],'tdx':_0x48d68a});process[_0x4a6b8c(0x1db)](_0x13e214);});const jobCmd=program[a0_0x20474a(0x117)](a0_0x20474a(0x1ab))[a0_0x20474a(0xd9)]('Job\x20management\x20commands');jobCmd[a0_0x20474a(0x117)]('show\x20<job-id>')[a0_0x20474a(0xd9)](a0_0x20474a(0x18b))[a0_0x20474a(0x101)](async(_0x144265,_0x59f221)=>{const _0x16130f=a0_0x20474a,_0xef295f=new JobShowCommand(),_0x1fb9f4=program['opts'](),_0x17792e=createTDXInstance(_0x1fb9f4),_0x144db4=await _0xef295f[_0x16130f(0x193)]({'options':{..._0x1fb9f4,..._0x59f221},'args':[_0x144265],'tdx':_0x17792e});process[_0x16130f(0x1db)](_0x144db4);}),jobCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1eb))['description']('Kill\x20a\x20job')[a0_0x20474a(0x101)](async(_0x22835c,_0x1f9667)=>{const _0x18ab0e=a0_0x20474a,_0x4d3973=new JobKillCommand(),_0x1e02a9=program[_0x18ab0e(0x118)](),_0x529088=createTDXInstance(_0x1e02a9),_0x296e17=await _0x4d3973[_0x18ab0e(0x193)]({'options':{..._0x1e02a9,..._0x1f9667},'args':[_0x22835c],'tdx':_0x529088});process[_0x18ab0e(0x1db)](_0x296e17);}),jobCmd[a0_0x20474a(0x117)](a0_0x20474a(0xe6))[a0_0x20474a(0xd9)](a0_0x20474a(0x186))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1d3),a0_0x20474a(0x172),a0_0x20474a(0xf4))[a0_0x20474a(0x1d0)](a0_0x20474a(0x194),a0_0x20474a(0x207))[a0_0x20474a(0x1d0)](a0_0x20474a(0x176),a0_0x20474a(0x1de),'information_schema')[a0_0x20474a(0x101)](async(_0x2b5a3a,_0x5bd25c)=>{const _0x99b405=a0_0x20474a,_0xcf5b52=new JobSubmitCommand(),_0x2c453d=program[_0x99b405(0x118)](),_0x557ff4=createTDXInstance(_0x2c453d),_0x358fb6=await _0xcf5b52['run']({'options':{..._0x2c453d,..._0x5bd25c},'args':_0x2b5a3a?[_0x2b5a3a]:[],'tdx':_0x557ff4});process[_0x99b405(0x1db)](_0x358fb6);}),jobCmd['command'](a0_0x20474a(0x17f))[a0_0x20474a(0xd9)](a0_0x20474a(0x1e6))['action'](async(_0x1bc5dd,_0x281950)=>{const _0x12d7b5=a0_0x20474a,_0x58185e=new JobResultCommand(),_0x4c027b=program[_0x12d7b5(0x118)](),_0x75f5a1=createTDXInstance(_0x4c027b),_0x2fd6e1=await _0x58185e[_0x12d7b5(0x193)]({'options':{..._0x4c027b,..._0x281950},'args':[_0x1bc5dd],'tdx':_0x75f5a1});process['exit'](_0x2fd6e1);});function a0_0x43dc(){const _0x59d4fb=['4000','--verbose','--from\x20<timestamp>','--attributes-file\x20<file>','required','Skip\x20validation\x20of\x20.dig\x20files','use\x20<project-name>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','replace','1180WVCJLs','parse','Request\x20body\x20as\x20JSON\x20string','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Show\x20tasks\x20for\x20an\x20attempt','Master\x20database\x20name','Customer\x20group\x20as\x20JSON\x20string','output\x20the\x20version\x20number','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration','--customer-group\x20<json>','parent','List\x20available\x20fields\x20for\x20segmentation','--max-tool-iterations\x20<n>','claude','--debug','--llm-project\x20<name>','Read\x20request\x20body\x20from\x20file','history\x20[chat-id]','GET','commandDescription','Folder\x20name\x20for\x20organization','Show\x20agent\x20details','-X,\x20--method\x20<method>','describe\x20[table]','-d,\x20--database\x20<database>','Options:','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--add-behaviors\x20<json>','length','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','tsv','attempts\x20[project]','--reason\x20<text>','--type\x20<api_type>','alias','Save\x20output\x20to\x20file','5389596cFgUXu','Delete\x20an\x20LLM\x20project','415014XwSjlR','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--project\x20<name>','site','List\x20available\x20LLM\x20models','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(use\x20parent_name\x20or\x20parent_name/child_name)','show\x20<segment_name>','--kind\x20<type>','Attributes\x20from\x20JSON\x20file','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','-d,\x20--database\x20<name>','attempt\x20<attempt-id>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','sql\x20<segment_name>','Agent\x20description','--timeout\x20<seconds>','Describe\x20table\x20schema','Agent\x20name','--to\x20<timestamp>','registeredArguments','CDP\x20segment\x20management\x20commands','Clear\x20session\x20context','push','Parent\x20segment\x20description','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','injectIntoOptions','--parent-folder\x20<name>','System\x20prompt/instructions\x20(default:\x20empty)','--database\x20<name>','219502ETyyaP','Show\x20logs\x20for\x20a\x20specific\x20task','delete\x20<project-name-or-id>','preAction','60kKpesF','--rule-file\x20<file>','--new','models','result\x20<job-id>','workflow','filter','Segment\x20description','--limit\x20<rows>','--schedule-type\x20<type>','name','Submit\x20a\x20job','--rule\x20<json>','push\x20[project-name-or-dir]','--revision\x20<revision>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Show\x20job\x20details','--max-depth\x20<depth>','join','Kill\x20a\x20running\x20attempt','Arguments:','--include-subtasks','database','Force\x20retry\x20even\x20if\x20not\x20failed\x20(attempt\x20retry\x20only)','run','-f,\x20--file\x20<path>','--timezone\x20<tz>','Updated\x20schedule\x20option','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--jsonl','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','show\x20<folder_ref>','--port\x20<number>','use\x20[resource]\x20[value]','--include-retried','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Parent\x20segment\x20(audience)\x20management','--system-prompt\x20<text>','Enable\x20debug\x20mode\x20(logs\x20proxy\x20request/response\x20to\x20stderr)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Override\x20project\x20name','1654511Ggatte','--status\x20<status>','segment','--agent\x20<ref>','options','--offset\x20<number>','job','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Trino\x20catalog\x20(default:\x20td)','-H,\x20--header\x20<header>','desc','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Temperature\x20(0.0-2.0,\x20default:\x200.7)','pwd','argv','--profile\x20<name>','Add\x20attributes\x20from\x20JSON\x20file','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','update\x20<name>','--temperature\x20<n>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','../package.json','Database\x20to\x20use\x20(overrides\x20context)','Agent\x20reference\x20(project-name/agent-name)','--starter-message\x20<text>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Add\x20attributes\x20as\x20JSON\x20string','3nWZKkD','projects\x20[pattern]','url','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','tasks\x20<attempt-id>','Create\x20parent\x20segment\x20(audience)','update\x20<agent-name>','--site\x20<site>','retry\x20<session-id|attempt-id>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','json','api\x20[endpoint]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','option','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','port','--job-type\x20<type>','Include\x20retried\x20attempts','Run\x20Trino\x20query\x20with\x20streaming\x20results','--json','Behaviors\x20as\x20JSON\x20string','map','optionTerm','download\x20<project-name>\x20[output-dir]','exit','fields\x20<parent_name>','--model\x20<name>','Database\x20name\x20(default:\x20information_schema)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','optionDescription','argumentTerm','--in\x20<database>','--attributes\x20<json>','Read\x20SQL\x20query\x20from\x20file','Get\x20job\x20results','summary','create\x20<segment_name>','Updated\x20description','sessions\x20[project]','kill\x20<job-id>','New\x20segment\x20name','-r,\x20--recursive','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--database\x20<db>','--add-attributes\x20<json>','Agent\x20prompt/instructions','delete\x20<name>','--catalog\x20<catalog>','agent','--name\x20<text>','Skip\x20population\x20counting','AI-native\x20CLI\x20for\x20Treasure\x20Data','help','LLM\x20agent\x20management','--from-task\x20<task>','Filtering\x20rule\x20as\x20JSON\x20string','Starter\x20message','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','profiles','77WqzHKa','jsonl','hook','--session\x20<id>','--customer-group-file\x20<file>','--in\x20<name>','Reason\x20for\x20killing\x20the\x20attempt','--resume-from\x20<task>','Read\x20query\x20from\x20file','--clear','format','proxy','repeat','Skip\x20confirmation\x20prompts','description','version','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','5031996DrMKaW','Enable\x20debug\x20mode\x20(logs\x20request/response\x20to\x20stderr)','padEnd','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','activations\x20<segment_name>','us01','Add\x20behaviors\x20from\x20JSON\x20file','Create\x20segment\x20folder','utf-8','submit\x20[query]','jobs','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','create\x20<name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--output\x20<file>','--invisible','describe\x20<segment_name>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','workflows\x20[project]','addHelpText','Timezone\x20(e.g.,\x20America/Los_Angeles)','Behaviors\x20from\x20JSON\x20file','trino','Segment\x20folder\x20management','111573imeQNd','argumentDescription','Resume\x20from\x20specific\x20task\x20(attempt\x20retry\x20only)','Customer\x20group\x20from\x20JSON\x20file','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Commands:','query\x20[sql]','slice','--no-count-population','padWidth','action','requiredOption','use\x20<path>','Show\x20current\x20segment/folder\x20context','--description\x20<text>','subcommandDescription','chat\x20[message...]','sonnet','folder','Preview\x20operation\x20without\x20executing','973992LyZlrS','--params\x20<json>','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','77GYXSdv','kill\x20<attempt-id>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--name\x20<name>','show\x20<agent-name>','Start\x20a\x20new\x20chat\x20session','aliases','tables\x20[pattern]','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','command','opts','hidden','Enable\x20verbose\x20logging','--folder\x20<name>','End\x20time\x20filter\x20(ISO\x208601\x20format)','Set\x20operation\x20timeout\x20in\x20seconds','commandUsage','-v,\x20--version','claude-4.5-sonnet','show\x20[table]','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','after','Usage:\x20','Show\x20specific\x20attempt\x20details'];a0_0x43dc=function(){return _0x59d4fb;};return a0_0x43dc();}const llmCmd=program[a0_0x20474a(0x117)]('llm')[a0_0x20474a(0xd9)](a0_0x20474a(0xdb));llmCmd['command'](a0_0x20474a(0x12e))[a0_0x20474a(0xd9)](a0_0x20474a(0x19a))['action'](async(_0x366708,_0x56dbee)=>{const _0x52bf00=a0_0x20474a,_0x2d7713=new LLMUseCommand(),_0x4b8d16=program[_0x52bf00(0x118)](),_0x3a22cf=createTDXInstance(_0x4b8d16),_0x898f7a=await _0x2d7713['run']({'options':{..._0x4b8d16,..._0x56dbee},'args':[_0x366708],'tdx':_0x3a22cf});process['exit'](_0x898f7a);}),llmCmd[a0_0x20474a(0x117)](a0_0x20474a(0x17e))[a0_0x20474a(0xd9)](a0_0x20474a(0x15c))['action'](async _0x336a1e=>{const _0x374d39=a0_0x20474a,_0x521c8e=new LLMModelsCommand(),_0x19f1e8=program[_0x374d39(0x118)](),_0x2c3055=createTDXInstance(_0x19f1e8),_0x17843b=await _0x521c8e[_0x374d39(0x193)]({'options':{..._0x19f1e8,..._0x336a1e},'args':[],'tdx':_0x2c3055});process[_0x374d39(0x1db)](_0x17843b);}),llmCmd['command'](a0_0x20474a(0x1c2))[a0_0x20474a(0xd9)](a0_0x20474a(0x171))[a0_0x20474a(0x101)](async(_0x2ecb1c,_0x48814c)=>{const _0x17926a=a0_0x20474a,_0x32a9c6=new LLMProjectsCommand(),_0x39934c=program[_0x17926a(0x118)](),_0xcb7406=createTDXInstance(_0x39934c),_0x5f127a=await _0x32a9c6['run']({'options':{..._0x39934c,..._0x48814c},'args':_0x2ecb1c?[_0x2ecb1c]:[],'tdx':_0xcb7406});process[_0x17926a(0x1db)](_0x5f127a);});const projectCmd=llmCmd[a0_0x20474a(0x117)]('project')[a0_0x20474a(0xd9)]('LLM\x20project\x20management');projectCmd[a0_0x20474a(0x117)](a0_0x20474a(0xe9))[a0_0x20474a(0xd9)]('Create\x20a\x20new\x20LLM\x20project')[a0_0x20474a(0x1d0)](a0_0x20474a(0x105),'Project\x20description')[a0_0x20474a(0x101)](async(_0x35b8ba,_0x1d64ca)=>{const _0x16fcd1=a0_0x20474a,_0x22e1b2=new LLMProjectCreateCommand(),_0x55fd75=program['opts'](),_0xd57d56=createTDXInstance(_0x55fd75),_0x10f82b=await _0x22e1b2[_0x16fcd1(0x193)]({'options':{..._0x55fd75,..._0x1d64ca},'args':[_0x35b8ba],'tdx':_0xd57d56});process[_0x16fcd1(0x1db)](_0x10f82b);}),projectCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1f2))['description'](a0_0x20474a(0x156))[a0_0x20474a(0x101)](async(_0x81b2fc,_0xf014ac)=>{const _0x1edf3d=a0_0x20474a,_0x543b2b=new LLMProjectDeleteCommand(),_0xc7447c=program['opts'](),_0x10f570=createTDXInstance(_0xc7447c),_0x330aaf=await _0x543b2b[_0x1edf3d(0x193)]({'options':{..._0xc7447c,..._0xf014ac},'args':[_0x81b2fc],'tdx':_0x10f570});process[_0x1edf3d(0x1db)](_0x330aaf);}),llmCmd[a0_0x20474a(0x117)]('agents\x20[pattern]')[a0_0x20474a(0xd9)]('List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)')[a0_0x20474a(0x101)](async(_0x1f0eec,_0x25ef9d)=>{const _0x516be0=a0_0x20474a,_0x45d8e6=new LLMAgentsCommand(),_0x367c5e=program['opts'](),_0xc8f1d0=createTDXInstance(_0x367c5e),_0x63c854=await _0x45d8e6[_0x516be0(0x193)]({'options':{..._0x367c5e,..._0x25ef9d},'args':_0x1f0eec?[_0x1f0eec]:[],'tdx':_0xc8f1d0});process[_0x516be0(0x1db)](_0x63c854);});const agentCmd=llmCmd['command'](a0_0x20474a(0x1f4))[a0_0x20474a(0xd9)](a0_0x20474a(0x1f9));agentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x112))['description'](a0_0x20474a(0x146))[a0_0x20474a(0x101)](async(_0x1f6830,_0x3541de)=>{const _0x2312a3=a0_0x20474a,_0x463bd7=new LLMAgentShowCommand(),_0x78152=program[_0x2312a3(0x118)](),_0x176711=createTDXInstance(_0x78152),_0xa38a6d=await _0x463bd7[_0x2312a3(0x193)]({'options':{..._0x78152,..._0x3541de},'args':[_0x1f6830],'tdx':_0x176711});process[_0x2312a3(0x1db)](_0xa38a6d);}),agentCmd[a0_0x20474a(0x117)]('create\x20<name>')[a0_0x20474a(0xd9)](a0_0x20474a(0x1b0))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1a1),a0_0x20474a(0x175))['option'](a0_0x20474a(0x1dd),a0_0x20474a(0x1ca),a0_0x20474a(0x120))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1be),a0_0x20474a(0x1fc))[a0_0x20474a(0x1d0)](a0_0x20474a(0x13d),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1b9),a0_0x20474a(0x1b1),'0.7')[a0_0x20474a(0x101)](async(_0x2e34f0,_0x314e8b)=>{const _0xb3102e=a0_0x20474a,_0x571c26=new LLMAgentCreateCommand(),_0x512db5=program[_0xb3102e(0x118)](),_0x3ce8b4=createTDXInstance(_0x512db5),_0x3c8684=await _0x571c26['run']({'options':{..._0x512db5,..._0x314e8b},'args':[_0x2e34f0],'tdx':_0x3ce8b4});process['exit'](_0x3c8684);}),agentCmd['command'](a0_0x20474a(0x1c7))[a0_0x20474a(0xd9)]('Update\x20an\x20existing\x20agent')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1f5),a0_0x20474a(0x16a))[a0_0x20474a(0x1d0)]('--prompt\x20<text>',a0_0x20474a(0x1f1))[a0_0x20474a(0x1d0)]('--description\x20<text>',a0_0x20474a(0x167))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1be),'Starter\x20message')[a0_0x20474a(0x101)](async(_0x377262,_0x66e5a6)=>{const _0x127b11=a0_0x20474a,_0x5aff3e=new LLMAgentUpdateCommand(),_0x3a69fd=program[_0x127b11(0x118)](),_0x47c1d4=createTDXInstance(_0x3a69fd),_0x1a444f=await _0x5aff3e['run']({'options':{..._0x3a69fd,..._0x66e5a6},'args':[_0x377262],'tdx':_0x47c1d4});process[_0x127b11(0x1db)](_0x1a444f);}),agentCmd['command']('delete\x20<agent-name>')[a0_0x20474a(0xd9)]('Delete\x20an\x20agent')[a0_0x20474a(0x101)](async(_0x5d6ea6,_0x163d58)=>{const _0x10f747=a0_0x20474a,_0x37ff61=new LLMAgentDeleteCommand(),_0x19bf32=program['opts'](),_0x12f404=createTDXInstance(_0x19bf32),_0x5d68d8=await _0x37ff61[_0x10f747(0x193)]({'options':{..._0x19bf32,..._0x163d58},'args':[_0x5d6ea6],'tdx':_0x12f404});process[_0x10f747(0x1db)](_0x5d68d8);}),llmCmd[a0_0x20474a(0x117)](a0_0x20474a(0x142))[a0_0x20474a(0xd9)](a0_0x20474a(0x123))['action'](async(_0x238da0,_0x35d4e9)=>{const _0x445263=a0_0x20474a,_0x4b1ffa=new LLMHistoryCommand(),_0x2d85ac=program[_0x445263(0x118)](),_0x4c391c=createTDXInstance(_0x2d85ac),_0x55e721=await _0x4b1ffa[_0x445263(0x193)]({'options':{..._0x2d85ac,..._0x35d4e9},'args':_0x238da0?[_0x238da0]:[],'tdx':_0x4c391c});process[_0x445263(0x1db)](_0x55e721);}),llmCmd[a0_0x20474a(0x117)](a0_0x20474a(0xd6))[a0_0x20474a(0xd9)](a0_0x20474a(0x139))[a0_0x20474a(0x1d0)](a0_0x20474a(0x19c),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a0_0x20474a(0x128))[a0_0x20474a(0x1d0)](a0_0x20474a(0x15a),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')['option']('--agent\x20<name>',a0_0x20474a(0x116))['option'](a0_0x20474a(0x13f),a0_0x20474a(0xdd))[a0_0x20474a(0x101)](async _0x3d1565=>{const _0x102f15=a0_0x20474a,_0x4e540c=new LLMProxyCommand(),_0x176ad0=program[_0x102f15(0x118)](),_0x19d7ab=createTDXInstance(_0x176ad0),_0x57c7e8={..._0x3d1565,'port':_0x3d1565[_0x102f15(0x1d2)]?parseInt(_0x3d1565[_0x102f15(0x1d2)],0xa):undefined},_0xaab27d=await _0x4e540c[_0x102f15(0x193)]({'options':{..._0x176ad0,..._0x57c7e8},'args':[],'tdx':_0x19d7ab});process[_0x102f15(0x1db)](_0xaab27d);}),program['command'](a0_0x20474a(0x13e))[a0_0x20474a(0xd9)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1dd),a0_0x20474a(0x1a3),a0_0x20474a(0x108))[a0_0x20474a(0x1d0)]('--debug',a0_0x20474a(0x1a2))['action'](async _0xf23b81=>{const _0x288180=a0_0x20474a,_0x1aaceb=new ClaudeCommand(),_0x2b7846=program['opts'](),_0x347a96=createTDXInstance(_0x2b7846),_0x4b5696=await _0x1aaceb[_0x288180(0x193)]({'options':{..._0x2b7846,..._0xf23b81},'args':[],'tdx':_0x347a96});process[_0x288180(0x1db)](_0x4b5696);}),program['command']('context')['description']('Show\x20current\x20resolved\x20context')['option'](a0_0x20474a(0x13f),'Show\x20context\x20with\x20sources\x20(for\x20debugging)')[a0_0x20474a(0x1d0)](a0_0x20474a(0xd4),a0_0x20474a(0x16e))[a0_0x20474a(0x101)](async _0x439970=>{const _0x3f5c3a=a0_0x20474a,_0x44855b=new ContextCommand(),_0x6a8376=program[_0x3f5c3a(0x118)](),_0x22dc98=await _0x44855b[_0x3f5c3a(0x193)]({'options':{..._0x6a8376,..._0x439970},'args':[],'tdx':null});process[_0x3f5c3a(0x1db)](_0x22dc98);}),program[a0_0x20474a(0x117)](a0_0x20474a(0x19d))[a0_0x20474a(0xd9)]('Set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20profile)')[a0_0x20474a(0x101)](async(_0x5b8459,_0x1f93a8,_0x26c4f6)=>{const _0x332158=a0_0x20474a,_0x202689=new UseCommand(),_0x35fe9f=program['opts'](),_0x1abe48=[];if(_0x5b8459)_0x1abe48['push'](_0x5b8459);if(_0x1f93a8)_0x1abe48[_0x332158(0x16f)](_0x1f93a8);const _0x3c1026=await _0x202689['run']({'options':{..._0x35fe9f,..._0x26c4f6},'args':_0x1abe48,'tdx':null});process[_0x332158(0x1db)](_0x3c1026);}),program[a0_0x20474a(0x117)](a0_0x20474a(0x1fe))['description']('List\x20all\x20available\x20profiles')['action'](async _0x581e91=>{const _0x58cffb=a0_0x20474a,_0x2c2f74=new ProfilesCommand(),_0x133e1a=program[_0x58cffb(0x118)](),_0xf09bd3=await _0x2c2f74['run']({'options':{..._0x133e1a,..._0x581e91},'args':[],'tdx':null});process[_0x58cffb(0x1db)](_0xf09bd3);}),program[a0_0x20474a(0x132)](process[a0_0x20474a(0x1b3)]);!process[a0_0x20474a(0x1b3)][a0_0x20474a(0xfe)](0x2)[a0_0x20474a(0x14d)]&&program['outputHelp']();
|