@treasuredata/tdx 0.1.12 → 0.1.13
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 +229 -11
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client/cdp-client.d.ts +48 -6
- package/dist/client/cdp-client.d.ts.map +1 -1
- package/dist/client/cdp-client.js +1 -1
- package/dist/client/cdp-client.js.map +1 -1
- package/dist/client/http-client.d.ts +4 -2
- package/dist/client/http-client.d.ts.map +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/http-client.js.map +1 -1
- package/dist/client/llm-client.js +1 -1
- package/dist/client/llm-client.js.map +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-client.d.ts +24 -9
- package/dist/client/td-client.d.ts.map +1 -1
- package/dist/client/td-client.js +1 -1
- package/dist/client/td-client.js.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/client/workflow-client.js.map +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.d.ts +45 -0
- package/dist/commands/job-command.d.ts.map +1 -0
- package/dist/commands/job-command.js +1 -0
- package/dist/commands/job-command.js.map +1 -0
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.d.ts.map +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/llm-proxy.js.map +1 -1
- package/dist/commands/parent-segment-command.d.ts +25 -0
- package/dist/commands/parent-segment-command.d.ts.map +1 -0
- package/dist/commands/parent-segment-command.js +1 -0
- package/dist/commands/parent-segment-command.js.map +1 -0
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.d.ts +10 -0
- package/dist/commands/segment-command.d.ts.map +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-command.js.map +1 -1
- package/dist/commands/segment-create-command.d.ts +15 -0
- package/dist/commands/segment-create-command.d.ts.map +1 -0
- package/dist/commands/segment-create-command.js +1 -0
- package/dist/commands/segment-create-command.js.map +1 -0
- package/dist/commands/segment-fields-command.d.ts +15 -0
- package/dist/commands/segment-fields-command.d.ts.map +1 -0
- package/dist/commands/segment-fields-command.js +1 -0
- package/dist/commands/segment-fields-command.js.map +1 -0
- package/dist/commands/segment-update-command.d.ts +15 -0
- package/dist/commands/segment-update-command.d.ts.map +1 -0
- package/dist/commands/segment-update-command.js +1 -0
- package/dist/commands/segment-update-command.js.map +1 -0
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/workflow-command.d.ts.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/server.js +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.d.ts +8 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/job.d.ts +55 -0
- package/dist/sdk/job.d.ts.map +1 -0
- package/dist/sdk/job.js +1 -0
- package/dist/sdk/job.js.map +1 -0
- package/dist/sdk/llm.d.ts.map +1 -1
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/llm.js.map +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment.d.ts +213 -1
- package/dist/sdk/segment.d.ts.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/segment.js.map +1 -1
- package/dist/sdk/table.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/cdp.d.ts +504 -0
- package/dist/types/cdp.d.ts.map +1 -0
- package/dist/types/cdp.js +1 -0
- package/dist/types/cdp.js.map +1 -0
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.d.ts +30 -168
- 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.d.ts +7 -0
- package/dist/utils/command-output.d.ts.map +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/command-output.js.map +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/json-loader.d.ts +36 -0
- package/dist/utils/json-loader.d.ts.map +1 -0
- package/dist/utils/json-loader.js +1 -0
- package/dist/utils/json-loader.js.map +1 -0
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.d.ts +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/port.js.map +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.d.ts +11 -0
- package/dist/utils/prompt.d.ts.map +1 -0
- package/dist/utils/prompt.js +1 -0
- package/dist/utils/prompt.js.map +1 -0
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sql-parser.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -459,11 +459,83 @@ tdx query "SELECT * FROM users" -d mydb
|
|
|
459
459
|
|
|
460
460
|
### Job Commands
|
|
461
461
|
|
|
462
|
-
|
|
462
|
+
Manage and execute Treasure Data jobs (queries).
|
|
463
463
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
464
|
+
**List jobs**:
|
|
465
|
+
```bash
|
|
466
|
+
# List jobs (default: 40 jobs)
|
|
467
|
+
tdx jobs
|
|
468
|
+
|
|
469
|
+
# List more jobs with --limit
|
|
470
|
+
tdx jobs --limit 100
|
|
471
|
+
|
|
472
|
+
# Filter by status
|
|
473
|
+
tdx jobs --status running
|
|
474
|
+
tdx jobs --status success
|
|
475
|
+
tdx jobs --status error
|
|
476
|
+
tdx jobs --status queued
|
|
477
|
+
|
|
478
|
+
# Combine filters
|
|
479
|
+
tdx jobs --status running --limit 50
|
|
480
|
+
|
|
481
|
+
# Output as JSON
|
|
482
|
+
tdx jobs --format json
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
**Show job details**:
|
|
486
|
+
```bash
|
|
487
|
+
# Show job details
|
|
488
|
+
tdx job show <job-id>
|
|
489
|
+
|
|
490
|
+
# Show job as JSON
|
|
491
|
+
tdx job show <job-id> --format json
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
**Kill a job**:
|
|
495
|
+
```bash
|
|
496
|
+
# Kill a job (with confirmation)
|
|
497
|
+
tdx job kill <job-id>
|
|
498
|
+
|
|
499
|
+
# Skip confirmation prompt
|
|
500
|
+
tdx job kill <job-id> --yes
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
**Submit jobs**:
|
|
504
|
+
```bash
|
|
505
|
+
# Submit Trino query (default)
|
|
506
|
+
tdx job submit "SELECT * FROM mydb.table LIMIT 10"
|
|
507
|
+
|
|
508
|
+
# Submit with specific database
|
|
509
|
+
tdx job submit "SELECT * FROM table" --database mydb
|
|
510
|
+
|
|
511
|
+
# Submit Hive query from file
|
|
512
|
+
tdx job submit --job-type hive -f query.sql --database mydb
|
|
513
|
+
|
|
514
|
+
# Submit without specifying database (uses information_schema by default)
|
|
515
|
+
tdx job submit "SELECT 1"
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
**Get job results**:
|
|
519
|
+
```bash
|
|
520
|
+
# Get job results (table format)
|
|
521
|
+
tdx job result <job-id>
|
|
522
|
+
|
|
523
|
+
# Get results as JSON
|
|
524
|
+
tdx job result <job-id> --format json
|
|
525
|
+
|
|
526
|
+
# Save results to file
|
|
527
|
+
tdx job result <job-id> --output results.json
|
|
528
|
+
|
|
529
|
+
# Get results as TSV
|
|
530
|
+
tdx job result <job-id> --format tsv
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
**Job Command Options**:
|
|
534
|
+
- `--job-type <type>`: Job type - `trino` (default) or `hive`
|
|
535
|
+
- `-f, --file <path>`: Read query from file
|
|
536
|
+
- `--database <name>`: Database name (default: `information_schema`)
|
|
537
|
+
- `--status <status>`: Filter by job status - `queued`, `running`, `success`, or `error` (for `jobs` list)
|
|
538
|
+
- `--limit <number>`: Maximum number of jobs to list (default: 40, for `jobs` list)
|
|
467
539
|
|
|
468
540
|
### Segment Commands (CDP)
|
|
469
541
|
|
|
@@ -478,17 +550,31 @@ CDP (Customer Data Platform) segment management for audiences and activations.
|
|
|
478
550
|
- Pattern: Commands accept `(parent_name)(/child_name)?` format
|
|
479
551
|
- **Note**: Names are case-sensitive
|
|
480
552
|
|
|
553
|
+
#### Discovery Commands
|
|
554
|
+
|
|
481
555
|
| Command | Description | Example |
|
|
482
556
|
|---------|-------------|---------|
|
|
483
557
|
| `segments` | List all parent segments | `tdx segments` |
|
|
484
558
|
| `segments <parent_name>` | List child segments under parent | `tdx segments "My Audience"` |
|
|
485
|
-
| `segment describe <name>` (alias: `desc`) | Show parent or child segment details | `tdx segment describe "My Audience"`
|
|
486
|
-
| `segment show <name>` | Execute segment SQL query and show results | `tdx segment show "My Audience
|
|
487
|
-
| `segment sql <name>` | Get SQL query for segment | `tdx segment sql "My Audience"`
|
|
559
|
+
| `segment describe <name>` (alias: `desc`) | Show parent or child segment details | `tdx segment describe "My Audience"` |
|
|
560
|
+
| `segment show <name>` | Execute segment SQL query and show results | `tdx segment show "My Audience/Premium Users" --limit 100` |
|
|
561
|
+
| `segment sql <name>` | Get SQL query for segment | `tdx segment sql "My Audience"` |
|
|
562
|
+
| `segment fields <parent_name>` | List available fields for segmentation | `tdx segment fields "My Audience"` |
|
|
488
563
|
| `segment folders <parent_name>` | List folders under parent | `tdx segment folders "My Audience"` |
|
|
489
|
-
| `segment folder show <
|
|
564
|
+
| `segment folder show <parent/folder>` | Show folder details | `tdx segment folder show "My Audience/Marketing"` |
|
|
565
|
+
|
|
566
|
+
#### Management Commands
|
|
567
|
+
|
|
568
|
+
| Command | Description | Example |
|
|
569
|
+
|---------|-------------|---------|
|
|
570
|
+
| `segment parent create <name>` | Create new parent segment (audience) | `tdx segment parent create "Customer 360" --database mydb --table customers` |
|
|
571
|
+
| `segment parent update <name>` | Update existing parent segment | `tdx segment parent update "Customer 360" --description "Updated"` |
|
|
572
|
+
| `segment create <parent/child>` | Create child segment with filtering | `tdx segment create "My Audience/High Value" --rule-file rule.json` |
|
|
573
|
+
| `segment update <parent/child>` | Update child segment | `tdx segment update "My Audience/High Value" --name "Super High"` |
|
|
574
|
+
| `segment folder create <parent> <folder>` | Create segment folder | `tdx segment folder create "My Audience" "Q1 2024"` |
|
|
575
|
+
|
|
576
|
+
#### Discovery Examples
|
|
490
577
|
|
|
491
|
-
**Examples**:
|
|
492
578
|
```bash
|
|
493
579
|
# List all parent segments
|
|
494
580
|
tdx segments --format json
|
|
@@ -498,8 +584,7 @@ tdx segments "My Audience"
|
|
|
498
584
|
|
|
499
585
|
# Show parent segment metadata
|
|
500
586
|
tdx segment describe "My Audience"
|
|
501
|
-
|
|
502
|
-
tdx segment desc "My Audience"
|
|
587
|
+
tdx segment desc "My Audience" # alias
|
|
503
588
|
|
|
504
589
|
# Show child segment metadata (slash notation)
|
|
505
590
|
tdx segment describe "My Audience/High Value Users"
|
|
@@ -519,6 +604,12 @@ tdx segment sql "My Audience" > parent-query.sql
|
|
|
519
604
|
# Get SQL for child segment with filtering (slash notation)
|
|
520
605
|
tdx segment sql "My Audience/High Value Users" > child-query.sql
|
|
521
606
|
|
|
607
|
+
# List available fields for creating filtered segments
|
|
608
|
+
tdx segment fields "My Audience"
|
|
609
|
+
|
|
610
|
+
# List available fields with column details (JSON format)
|
|
611
|
+
tdx segment fields "My Audience" --json
|
|
612
|
+
|
|
522
613
|
# List folders under parent
|
|
523
614
|
tdx segment folders "My Audience"
|
|
524
615
|
|
|
@@ -526,6 +617,133 @@ tdx segment folders "My Audience"
|
|
|
526
617
|
tdx segment folder show "My Audience/Marketing"
|
|
527
618
|
```
|
|
528
619
|
|
|
620
|
+
#### Management Examples
|
|
621
|
+
|
|
622
|
+
**Create Parent Segment (Audience):**
|
|
623
|
+
|
|
624
|
+
```bash
|
|
625
|
+
# Create minimal parent segment
|
|
626
|
+
tdx segment parent create "Customer 360" \
|
|
627
|
+
--database customer_data \
|
|
628
|
+
--table customers \
|
|
629
|
+
--description "Complete customer view"
|
|
630
|
+
|
|
631
|
+
# Create with attributes from file
|
|
632
|
+
tdx segment parent create "Customer 360" \
|
|
633
|
+
--database customer_data \
|
|
634
|
+
--table customers \
|
|
635
|
+
--attributes-file examples/parent-segment-attributes.json \
|
|
636
|
+
--behaviors-file examples/parent-segment-behaviors.json
|
|
637
|
+
|
|
638
|
+
# Create with scheduling
|
|
639
|
+
tdx segment parent create "Customer 360" \
|
|
640
|
+
--database customer_data \
|
|
641
|
+
--table customers \
|
|
642
|
+
--schedule-type daily \
|
|
643
|
+
--schedule-option "03:00" \
|
|
644
|
+
--timezone "America/Los_Angeles"
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
**Update Parent Segment:**
|
|
648
|
+
|
|
649
|
+
```bash
|
|
650
|
+
# Update description
|
|
651
|
+
tdx segment parent update "Customer 360" \
|
|
652
|
+
--description "Updated customer view"
|
|
653
|
+
|
|
654
|
+
# Add new attributes
|
|
655
|
+
tdx segment parent update "Customer 360" \
|
|
656
|
+
--add-attributes-file new-attributes.json
|
|
657
|
+
|
|
658
|
+
# Update schedule
|
|
659
|
+
tdx segment parent update "Customer 360" \
|
|
660
|
+
--schedule-type weekly \
|
|
661
|
+
--schedule-option "0" # Sunday
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
**Create Child Segment with Filtering:**
|
|
665
|
+
|
|
666
|
+
```bash
|
|
667
|
+
# Create segment with simple rule (inline JSON)
|
|
668
|
+
tdx segment create "My Audience/High Value" \
|
|
669
|
+
--description "Customers with LTV > $1000" \
|
|
670
|
+
--rule '{"type":"And","conditions":[{"type":"Value","leftValue":{"name":"Lifetime Value"},"operator":{"type":"Greater","rightValue":1000}}]}'
|
|
671
|
+
|
|
672
|
+
# Create segment with complex rule (from file)
|
|
673
|
+
tdx segment create "My Audience/High Value US" \
|
|
674
|
+
--description "High value US customers" \
|
|
675
|
+
--rule-file examples/segment-rule-complex.json
|
|
676
|
+
|
|
677
|
+
# Create segment in folder
|
|
678
|
+
tdx segment create "My Audience/Premium" \
|
|
679
|
+
--rule-file examples/segment-rule-simple.json \
|
|
680
|
+
--folder "Geographic Segments"
|
|
681
|
+
|
|
682
|
+
# Create realtime segment
|
|
683
|
+
tdx segment create "My Audience/Realtime Active" \
|
|
684
|
+
--rule-file rule.json \
|
|
685
|
+
--kind 1 # 0=batch, 1=realtime, 2=funnel_stage
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
**Update Child Segment:**
|
|
689
|
+
|
|
690
|
+
```bash
|
|
691
|
+
# Update segment name
|
|
692
|
+
tdx segment update "My Audience/High Value" \
|
|
693
|
+
--name "Super High Value"
|
|
694
|
+
|
|
695
|
+
# Update segment rule
|
|
696
|
+
tdx segment update "My Audience/High Value" \
|
|
697
|
+
--description "Updated criteria" \
|
|
698
|
+
--rule-file updated-rule.json
|
|
699
|
+
|
|
700
|
+
# Move segment to folder
|
|
701
|
+
tdx segment update "My Audience/High Value" \
|
|
702
|
+
--folder "Premium Customers"
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
**Create Folders:**
|
|
706
|
+
|
|
707
|
+
```bash
|
|
708
|
+
# Create top-level folder
|
|
709
|
+
tdx segment folder create "My Audience" "Q1 2024 Campaigns" \
|
|
710
|
+
--description "Campaign segments for Q1"
|
|
711
|
+
|
|
712
|
+
# Create nested folder
|
|
713
|
+
tdx segment folder create "My Audience" "West Region" \
|
|
714
|
+
--parent-folder "Geographic Segments"
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
**Segment Rule Syntax:**
|
|
718
|
+
|
|
719
|
+
See `examples/segment-rule-simple.json` and `examples/segment-rule-complex.json` for rule examples.
|
|
720
|
+
|
|
721
|
+
Supported operators:
|
|
722
|
+
- **Comparison**: Equal, NotEqual, Greater, GreaterEqual, Less, LessEqual
|
|
723
|
+
- **Set**: In, NotIn
|
|
724
|
+
- **Text**: Contains, StartsWith, EndsWith
|
|
725
|
+
- **Pattern**: Regex
|
|
726
|
+
- **Time**: TimeWithinPast
|
|
727
|
+
|
|
728
|
+
Example rule structure:
|
|
729
|
+
```json
|
|
730
|
+
{
|
|
731
|
+
"type": "And",
|
|
732
|
+
"conditions": [
|
|
733
|
+
{
|
|
734
|
+
"type": "Value",
|
|
735
|
+
"leftValue": {"name": "Lifetime Value"},
|
|
736
|
+
"operator": {"type": "Greater", "rightValue": 1000}
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"type": "Value",
|
|
740
|
+
"leftValue": {"name": "Country"},
|
|
741
|
+
"operator": {"type": "In", "rightValues": ["US", "UK", "CA"]}
|
|
742
|
+
}
|
|
743
|
+
]
|
|
744
|
+
}
|
|
745
|
+
```
|
|
746
|
+
|
|
529
747
|
### Activation Commands (CDP)
|
|
530
748
|
|
|
531
749
|
Manage CDP activations (syndications) for segments.
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const a0_0x1566f7=a0_0x3def;(function(_0x17cc8f,_0x57b78a){const _0x69a722=a0_0x3def,_0x213b2b=_0x17cc8f();while(!![]){try{const _0x58eb7b=parseInt(_0x69a722(0x202))/0x1*(-parseInt(_0x69a722(0x242))/0x2)+parseInt(_0x69a722(0x1cc))/0x3+parseInt(_0x69a722(0x233))/0x4*(parseInt(_0x69a722(0x232))/0x5)+parseInt(_0x69a722(0x18b))/0x6+parseInt(_0x69a722(0x1a8))/0x7+parseInt(_0x69a722(0x1df))/0x8+-parseInt(_0x69a722(0x198))/0x9;if(_0x58eb7b===_0x57b78a)break;else _0x213b2b['push'](_0x213b2b['shift']());}catch(_0x2790cc){_0x213b2b['push'](_0x213b2b['shift']());}}}(a0_0x2883,0xd0ff0));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';function a0_0x2883(){const _0x5c7ad5=['map','port','hidden','Database\x20to\x20use\x20(overrides\x20context)','--catalog\x20<catalog>','--verbose','Resume\x20from\x20specific\x20task\x20(attempt\x20retry\x20only)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','version','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','0.7','Include\x20subtasks\x20in\x20the\x20output','format','optionDescription','commandDescription','length','LLM\x20project\x20to\x20use\x20(overrides\x20context)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Enable\x20verbose\x20logging','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','kill\x20<attempt-id>','--debug','Reason\x20for\x20killing\x20the\x20attempt','Resume\x20from\x20specific\x20task\x20(session\x20retry\x20only)','addHelpText','workflows\x20[project]','Start\x20a\x20new\x20chat\x20session','attempts\x20[project]','delete\x20<project-name-or-id>','--agent\x20<name>','show\x20[table]','push\x20[project-name-or-dir]','Model\x20name\x20(default:\x20claude-4.5-sonnet)','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','summary','apiKey','Describe\x20table\x20schema','../package.json','tasks\x20<attempt-id>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','parse','Show\x20segment\x20details\x20(use\x20parent_name\x20or\x20parent_name/child_name)','Maximum\x20tool\x20iterations\x20(default:\x204)','1259255CNjuGs','8FnlLSW','workflow','-d,\x20--database\x20<name>','segments\x20[parent_name]','tsv','--site\x20<site>','required','project','command','name','-f,\x20--file\x20<path>','padEnd','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--prompt\x20<text>','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','34LZfYNA','delete\x20<agent-name>','Run\x20Trino\x20query\x20with\x20streaming\x20results','Alias\x20for\x20--database\x20(natural\x20language\x20style)','verbose','--port\x20<number>','AI-native\x20CLI\x20for\x20Treasure\x20Data','projects\x20[pattern]','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','tables\x20[pattern]','Trino\x20catalog\x20(default:\x20td)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','subcommandTerm','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','folders\x20<parent_name>','--parent-segment\x20<name>','sql\x20<segment_name>','run','Update\x20an\x20existing\x20agent','--max-tool-iterations\x20<n>','profiles','utf-8','Set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20profile)','databases\x20[pattern]','Agent\x20description','Set\x20operation\x20timeout\x20in\x20seconds','Options:','use\x20<project-name>','show\x20<segment_name>','create\x20<name>','use\x20[resource]\x20[value]','Force\x20retry\x20even\x20if\x20not\x20failed\x20(attempt\x20retry\x20only)','Agent\x20reference\x20(project-name/agent-name)','join','Request\x20body\x20as\x20JSON\x20string','sessions\x20[project]','desc','sonnet','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','List\x20parent\x20segments\x20or\x20child\x20segments\x20under\x20a\x20parent','Show\x20logs\x20for\x20a\x20specific\x20task','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','option','--params\x20<json>','--include-retried','--type\x20<api_type>','log','-y,\x20--yes','LLM\x20project\x20management','--dry-run','jsonl','--name\x20<text>','Segment\x20folder\x20management','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','commands','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Temperature\x20(0.0-2.0,\x20default:\x200.7)','describe\x20<segment_name>','Starting\x20offset\x20for\x20logs\x20(default:\x200)','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)','Read\x20SQL\x20query\x20from\x20file','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','repeat','4079070RIOskp','--json','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','opts','--output\x20<file>','after','argv','Starter\x20message','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Revision\x20name\x20(default:\x20timestamp)','Job\x20management\x20commands','--limit\x20<rows>','Create\x20a\x20new\x20LLM\x20project','20623320iOkHgo','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','configureHelp','outputHelp','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--revision\x20<revision>','--temperature\x20<n>','-v,\x20--version','--from\x20<timestamp>','registeredArguments','claude','exit','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','List\x20all\x20available\x20profiles','Override\x20project\x20name','database','9594459UNoEsS','Commands:','--model\x20<name>','--status\x20<status>','--timeout\x20<seconds>','aliases','Show\x20context\x20with\x20sources\x20(for\x20debugging)','Show\x20current\x20resolved\x20context','Enable\x20debug\x20mode\x20(logs\x20proxy\x20request/response\x20to\x20stderr)','segment','--starter-message\x20<text>','--system-prompt\x20<text>','action','proxy','Retry\x20a\x20session\x20or\x20attempt\x20(prefix\x20with\x20session:\x20or\x20attempt:)','-d,\x20--database\x20<database>','--format\x20<format>','--description\x20<text>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','List\x20available\x20LLM\x20models','Show\x20tasks\x20for\x20an\x20attempt','Skip\x20confirmation\x20prompts','Agent\x20name','injectIntoOptions','argumentTerm','download\x20<project-name>\x20[output-dir]','attempt\x20<attempt-id>','slice','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--agent\x20<ref>','push','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','Database\x20to\x20query\x20(default:\x20information_schema)','filter','job','Clear\x20session\x20context','4589883OWWQKx','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','--reason\x20<text>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','url','Delete\x20an\x20LLM\x20project','agent','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--color','history\x20[chat-id]','4000','Workflow\x20(Digdag)\x20management\x20commands','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--skip-validation','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration','End\x20time\x20filter\x20(ISO\x208601\x20format)','766480DemPib','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--name\x20<name>','agents\x20[pattern]','Enable\x20debug\x20mode\x20(logs\x20request/response\x20to\x20stderr)','--project\x20<name>','delete\x20<name>','update\x20<agent-name>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Read\x20request\x20body\x20from\x20file','--resume-from\x20<task>','--tsv','tdx','api\x20[endpoint]','-X,\x20--method\x20<method>','query\x20[sql]','commandUsage','--new','hook','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--from-task\x20<task>','show\x20<agent-name>','json','--in\x20<database>','CDP\x20segment\x20management\x20commands','optionTerm','Job\x20commands\x20-\x20coming\x20soon','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','output\x20the\x20version\x20number','padWidth','--session\x20<id>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','describe\x20[table]','context','--no-color','60731mevneq','preAction','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','alias','description'];a0_0x2883=function(){return _0x5c7ad5;};return a0_0x2883();}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}from'./commands/segment-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-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_0x1566f7(0x1d2)]),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,a0_0x1566f7(0x22c)),a0_0x1566f7(0x257))),program=new Command();program['name'](a0_0x1566f7(0x1eb))[a0_0x1566f7(0x206)](a0_0x1566f7(0x248))[a0_0x1566f7(0x20f)](packageJson[a0_0x1566f7(0x20f)],a0_0x1566f7(0x19f),a0_0x1566f7(0x1fb)),program[a0_0x1566f7(0x176)](a0_0x1566f7(0x238),a0_0x1566f7(0x187),'us01')['option'](a0_0x1566f7(0x1b8),a0_0x1566f7(0x1fa))[a0_0x1566f7(0x176)](a0_0x1566f7(0x18c),a0_0x1566f7(0x22e))['option']('--jsonl',a0_0x1566f7(0x24a))['option'](a0_0x1566f7(0x1ea),a0_0x1566f7(0x1d5))['option'](a0_0x1566f7(0x18f),'Save\x20output\x20to\x20file')[a0_0x1566f7(0x176)](a0_0x1566f7(0x196),a0_0x1566f7(0x1db),'40')['option'](a0_0x1566f7(0x1d7),a0_0x1566f7(0x1a4),![])[a0_0x1566f7(0x176)](a0_0x1566f7(0x201),a0_0x1566f7(0x1ce),![])[a0_0x1566f7(0x176)](a0_0x1566f7(0x20c),a0_0x1566f7(0x219),![])[a0_0x1566f7(0x176)](a0_0x1566f7(0x1ac),a0_0x1566f7(0x25b),'30')[a0_0x1566f7(0x176)](a0_0x1566f7(0x17d),'Preview\x20operation\x20without\x20executing',![])[a0_0x1566f7(0x176)](a0_0x1566f7(0x17b),a0_0x1566f7(0x1bd),![])['option'](a0_0x1566f7(0x1fd),a0_0x1566f7(0x1cf))[a0_0x1566f7(0x176)]('--profile\x20<name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a0_0x1566f7(0x176)](a0_0x1566f7(0x235),a0_0x1566f7(0x20a))[a0_0x1566f7(0x176)]('--in\x20<name>',a0_0x1566f7(0x245))['option'](a0_0x1566f7(0x251),a0_0x1566f7(0x175))['option']('--llm-project\x20<name>',a0_0x1566f7(0x217)),program[a0_0x1566f7(0x19a)]({'formatHelp':(_0x497acd,_0x4bf25e)=>{const _0x3ddfa8=a0_0x1566f7,_0x1c4ce5=_0x4bf25e[_0x3ddfa8(0x1fc)](_0x497acd,_0x4bf25e),_0x164c4b=0x2,_0x356581=0x2;function _0x17f8af(_0x305789){const _0x508239=_0x3ddfa8;return!!_0x305789[_0x508239(0x209)];}function _0x1aaaf1(_0x1f0737,_0x3ab0fb){const _0x41641d=_0x3ddfa8;if(_0x3ab0fb){const _0x4c2680=''+_0x1f0737[_0x41641d(0x23e)](_0x1c4ce5+_0x356581)+_0x3ab0fb;return _0x4c2680;}return _0x1f0737;}function _0x3f1fbb(_0x66b390){const _0x30448e=_0x3ddfa8;return _0x66b390[_0x30448e(0x263)]('\x0a')['replace'](/^/gm,'\x20'[_0x30448e(0x18a)](_0x164c4b));}const _0x47292d=[];_0x47292d[_0x3ddfa8(0x1c6)]('Usage:\x20'+_0x4bf25e[_0x3ddfa8(0x1ef)](_0x497acd));const _0x59615a=_0x4bf25e[_0x3ddfa8(0x215)](_0x497acd);_0x59615a&&(_0x47292d[_0x3ddfa8(0x1c6)](''),_0x47292d[_0x3ddfa8(0x1c6)](_0x59615a));const _0x5e4fd5=_0x497acd[_0x3ddfa8(0x182)][_0x3ddfa8(0x1c9)](_0x15c2c2=>!_0x17f8af(_0x15c2c2));if(_0x5e4fd5['length']>0x0){const _0x456bd6=_0x5e4fd5[_0x3ddfa8(0x207)](_0x153311=>{const _0x1b9cf5=_0x3ddfa8,_0x932d3f=_0x4bf25e[_0x1b9cf5(0x24e)](_0x153311),_0x3fc789=_0x4bf25e['subcommandDescription'](_0x153311);return _0x1aaaf1(_0x932d3f,_0x3fc789);});_0x47292d[_0x3ddfa8(0x1c6)](''),_0x47292d[_0x3ddfa8(0x1c6)](_0x3ddfa8(0x1a9)),_0x47292d['push'](_0x3f1fbb(_0x456bd6));}const _0xa43530=_0x497acd['options'][_0x3ddfa8(0x1c9)](_0x2e8253=>!_0x17f8af(_0x2e8253));if(_0xa43530['length']>0x0){const _0x529c81=_0xa43530[_0x3ddfa8(0x207)](_0x5ef26e=>{const _0x2771ca=_0x3ddfa8,_0x435393=_0x4bf25e[_0x2771ca(0x1f8)](_0x5ef26e),_0xf5eba7=_0x4bf25e[_0x2771ca(0x214)](_0x5ef26e);return _0x1aaaf1(_0x435393,_0xf5eba7);});_0x47292d[_0x3ddfa8(0x1c6)](''),_0x47292d['push'](_0x3ddfa8(0x25c)),_0x47292d[_0x3ddfa8(0x1c6)](_0x3f1fbb(_0x529c81));}const _0x16e095=(_0x497acd[_0x3ddfa8(0x1a1)]||[])[_0x3ddfa8(0x1c9)](_0x1c7057=>!_0x17f8af(_0x1c7057));if(_0x16e095['length']>0x0){const _0x259a43=_0x16e095[_0x3ddfa8(0x207)](_0x40e57b=>{const _0x965048=_0x3ddfa8,_0x4339f9=_0x4bf25e[_0x965048(0x1c0)](_0x40e57b),_0x529972=_0x4bf25e['argumentDescription'](_0x40e57b);return _0x1aaaf1(_0x4339f9,_0x529972);});_0x47292d[_0x3ddfa8(0x1c6)](''),_0x47292d[_0x3ddfa8(0x1c6)]('Arguments:'),_0x47292d['push'](_0x3f1fbb(_0x259a43));}return _0x47292d[_0x3ddfa8(0x263)]('\x0a');},'subcommandTerm':_0x50a44c=>{const _0x4b9641=a0_0x1566f7,_0x10c4c8=(_0x50a44c[_0x4b9641(0x1a1)]||[])[_0x4b9641(0x207)](_0x436bf8=>_0x436bf8[_0x4b9641(0x239)]?'<'+_0x436bf8[_0x4b9641(0x23c)]()+'>':'['+_0x436bf8['name']()+']')[_0x4b9641(0x263)]('\x20'),_0x4e0c6e=_0x50a44c[_0x4b9641(0x1ad)](),_0x1b9d71=_0x4e0c6e[_0x4b9641(0x216)]>0x0?_0x50a44c[_0x4b9641(0x23c)]()+',\x20'+_0x4e0c6e[_0x4b9641(0x263)](',\x20'):_0x50a44c[_0x4b9641(0x23c)]();return _0x10c4c8?_0x1b9d71+'\x20'+_0x10c4c8:_0x1b9d71;}}),program[a0_0x1566f7(0x1f1)](a0_0x1566f7(0x203),_0x260161=>{const _0x36c7c9=a0_0x1566f7,_0x144ad8=_0x260161[_0x36c7c9(0x18e)]();if(!_0x144ad8[_0x36c7c9(0x213)]){if(_0x144ad8['json'])_0x144ad8[_0x36c7c9(0x213)]=_0x36c7c9(0x1f5);else{if(_0x144ad8['jsonl'])_0x144ad8[_0x36c7c9(0x213)]=_0x36c7c9(0x17e);else _0x144ad8[_0x36c7c9(0x237)]&&(_0x144ad8[_0x36c7c9(0x213)]=_0x36c7c9(0x237));}}_0x144ad8['in']&&!_0x144ad8['database']&&(_0x144ad8[_0x36c7c9(0x1a7)]=_0x144ad8['in']);});function createTDXInstance(_0x13a52c){const _0x5e2649=a0_0x1566f7,_0x46d3d3=new GlobalContext(_0x13a52c);_0x46d3d3[_0x5e2649(0x1bf)](_0x13a52c);const _0x8829eb={'site':_0x46d3d3['site'],'apiKey':_0x46d3d3[_0x5e2649(0x22a)],'verbose':_0x46d3d3[_0x5e2649(0x246)]};return new TDX(_0x8829eb);}program['command'](a0_0x1566f7(0x259))[a0_0x1566f7(0x206)](a0_0x1566f7(0x18d))['action'](async(_0x3c506f,_0x2dda4f)=>{const _0x5cf1f7=a0_0x1566f7,_0x517f51=new DatabasesCommand(),_0x2e8605=program[_0x5cf1f7(0x18e)](),_0x416ba0=createTDXInstance(_0x2e8605),_0x540103=await _0x517f51['run']({'options':{..._0x2e8605,..._0x2dda4f},'args':_0x3c506f?[_0x3c506f]:[],'tdx':_0x416ba0});process['exit'](_0x540103);}),program[a0_0x1566f7(0x23b)]('chat\x20[message...]')[a0_0x1566f7(0x206)](a0_0x1566f7(0x1fe))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1c5),a0_0x1566f7(0x262))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1aa),a0_0x1566f7(0x227))[a0_0x1566f7(0x176)](a0_0x1566f7(0x19e),a0_0x1566f7(0x184))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1f0),a0_0x1566f7(0x221))[a0_0x1566f7(0x1b4)](async(_0x1a76fa,_0x5a9bb)=>{const _0x5663e4=a0_0x1566f7,_0xe4b9fd=new ChatCommand(),_0x5065aa=program[_0x5663e4(0x18e)](),_0x6b6c01=createTDXInstance(_0x5065aa),_0x159585=await _0xe4b9fd['run']({'options':{..._0x5065aa,..._0x5a9bb},'args':_0x1a76fa,'tdx':_0x6b6c01});process['exit'](_0x159585);});function a0_0x3def(_0x1418c9,_0x1d2d51){const _0x28832b=a0_0x2883();return a0_0x3def=function(_0x288313,_0x3def81){_0x288313=_0x288313-0x16f;let _0x23021c=_0x28832b[_0x288313];return _0x23021c;},a0_0x3def(_0x1418c9,_0x1d2d51);}const apiCmd=program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x1ec))[a0_0x1566f7(0x229)](a0_0x1566f7(0x1d6))[a0_0x1566f7(0x21f)](a0_0x1566f7(0x190),'\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_0x1566f7(0x176)](a0_0x1566f7(0x1ed),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')[a0_0x1566f7(0x176)]('--data\x20<data>',a0_0x1566f7(0x264))['option']('-f,\x20--file\x20<path>',a0_0x1566f7(0x1e8))['option']('-H,\x20--header\x20<header>',a0_0x1566f7(0x1ba),(_0x173668,_0x56ae72)=>{return _0x56ae72?[..._0x56ae72,_0x173668]:[_0x173668];})[a0_0x1566f7(0x176)](a0_0x1566f7(0x179),a0_0x1566f7(0x181),'td')[a0_0x1566f7(0x1b4)](async(_0x5b8a13,_0x53e912)=>{const _0x17ac17=a0_0x1566f7;if(!_0x5b8a13){apiCmd['help']();return;}const _0x3bfa1c=new ApiCommand(),_0x4af02c=program[_0x17ac17(0x18e)](),_0x38e8fc=createTDXInstance(_0x4af02c),_0xea47f4=await _0x3bfa1c[_0x17ac17(0x253)]({'options':{..._0x4af02c,..._0x53e912},'args':[_0x5b8a13],'tdx':_0x38e8fc});process[_0x17ac17(0x1a3)](_0xea47f4);});program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x24b))[a0_0x1566f7(0x206)](a0_0x1566f7(0x210))[a0_0x1566f7(0x176)]('-d,\x20--database\x20<database>',a0_0x1566f7(0x1d1))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1f6),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x1566f7(0x1b4)](async(_0x10dd93,_0x145a40)=>{const _0x47117d=a0_0x1566f7,_0x46bd46=new TablesCommand(),_0x6edd16=program[_0x47117d(0x18e)](),_0x160a3e=createTDXInstance(_0x6edd16);_0x145a40['in']&&(_0x145a40[_0x47117d(0x1a7)]=_0x145a40['in']);const _0x5e2222=await _0x46bd46['run']({'options':{..._0x6edd16,..._0x145a40},'args':_0x10dd93?[_0x10dd93]:[],'tdx':_0x160a3e});process[_0x47117d(0x1a3)](_0x5e2222);}),program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x225))['description'](a0_0x1566f7(0x21a))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1b7),a0_0x1566f7(0x174))[a0_0x1566f7(0x176)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x1566f7(0x1b4)](async(_0x4ec167,_0x35d02)=>{const _0x445b2e=a0_0x1566f7,_0x2f5fff=new ShowCommand(),_0x3c0a3b=program[_0x445b2e(0x18e)](),_0x360053=createTDXInstance(_0x3c0a3b);_0x35d02['in']&&(_0x35d02[_0x445b2e(0x1a7)]=_0x35d02['in']);const _0x28eb77=await _0x2f5fff[_0x445b2e(0x253)]({'options':{..._0x3c0a3b,..._0x35d02},'args':_0x4ec167?[_0x4ec167]:[],'tdx':_0x360053});process[_0x445b2e(0x1a3)](_0x28eb77);}),program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x1ff))['alias'](a0_0x1566f7(0x16f))[a0_0x1566f7(0x206)](a0_0x1566f7(0x22b))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1b7),a0_0x1566f7(0x174))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1f6),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x1566f7(0x1b4)](async(_0x2a7788,_0x4c63f0)=>{const _0xc611b8=a0_0x1566f7,_0x2ae5df=new DescribeCommand(),_0x13649f=program[_0xc611b8(0x18e)](),_0x49635c=createTDXInstance(_0x13649f);_0x4c63f0['in']&&(_0x4c63f0[_0xc611b8(0x1a7)]=_0x4c63f0['in']);const _0x59d87c=await _0x2ae5df[_0xc611b8(0x253)]({'options':{..._0x13649f,..._0x4c63f0},'args':_0x2a7788?[_0x2a7788]:[],'tdx':_0x49635c});process[_0xc611b8(0x1a3)](_0x59d87c);}),program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x1ee))['description'](a0_0x1566f7(0x244))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1b7),a0_0x1566f7(0x1c8))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1f6),a0_0x1566f7(0x245))[a0_0x1566f7(0x176)](a0_0x1566f7(0x20b),a0_0x1566f7(0x24c))['option'](a0_0x1566f7(0x23d),a0_0x1566f7(0x188))[a0_0x1566f7(0x176)](a0_0x1566f7(0x196),a0_0x1566f7(0x1db),'40')['action'](async(_0x38b619,_0x41c895)=>{const _0x4bd881=a0_0x1566f7,_0x42b40d=new QueryCommand(),_0x4b9fb8=program['opts'](),_0x5d1733=createTDXInstance(_0x4b9fb8);_0x41c895['in']&&(_0x41c895[_0x4bd881(0x1a7)]=_0x41c895['in']);const _0xfc5f09=await _0x42b40d['run']({'options':{..._0x4b9fb8,..._0x41c895},'args':_0x38b619?[_0x38b619]:[],'tdx':_0x5d1733});process[_0x4bd881(0x1a3)](_0xfc5f09);}),program['command'](a0_0x1566f7(0x1ca))['description'](a0_0x1566f7(0x195))[a0_0x1566f7(0x1b4)](()=>{const _0x320d02=a0_0x1566f7;console[_0x320d02(0x17a)](_0x320d02(0x1f9));}),program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x236))['description'](a0_0x1566f7(0x172))[a0_0x1566f7(0x1b4)](async(_0xe41124,_0x231e51)=>{const _0x1400fe=a0_0x1566f7,_0x56a199=new SegmentsCommand(),_0x1ac198=program[_0x1400fe(0x18e)](),_0x42a22d=createTDXInstance(_0x1ac198),_0x7d42e4=await _0x56a199[_0x1400fe(0x253)]({'options':{..._0x1ac198,..._0x231e51},'args':_0xe41124?[_0xe41124]:[],'tdx':_0x42a22d});process[_0x1400fe(0x1a3)](_0x7d42e4);});const segmentCmd=program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x1b1))[a0_0x1566f7(0x206)](a0_0x1566f7(0x1f7));segmentCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x185))[a0_0x1566f7(0x205)](a0_0x1566f7(0x16f))[a0_0x1566f7(0x206)](a0_0x1566f7(0x230))['action'](async(_0x5db4f8,_0x2b0ff2)=>{const _0x142e34=a0_0x1566f7,_0x31378a=new SegmentDescribeCommand(),_0x4b45a6=program[_0x142e34(0x18e)](),_0x8020a=createTDXInstance(_0x4b45a6),_0x5e8f2a=await _0x31378a['run']({'options':{..._0x4b45a6,..._0x2b0ff2},'args':[_0x5db4f8],'tdx':_0x8020a});process[_0x142e34(0x1a3)](_0x5e8f2a);}),segmentCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x25e))[a0_0x1566f7(0x206)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(use\x20parent_name\x20or\x20parent_name/child_name)')[a0_0x1566f7(0x1b4)](async(_0x3b319a,_0x687fc3)=>{const _0x1b549a=a0_0x1566f7,_0x36af5b=new SegmentShowCommand(),_0x30b403=program[_0x1b549a(0x18e)](),_0x45d510=createTDXInstance(_0x30b403),_0x27e90c=await _0x36af5b[_0x1b549a(0x253)]({'options':{..._0x30b403,..._0x687fc3},'args':[_0x3b319a],'tdx':_0x45d510});process[_0x1b549a(0x1a3)](_0x27e90c);}),segmentCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x250))['description'](a0_0x1566f7(0x228))['action'](async(_0x360cc2,_0x3a2502)=>{const _0x581b62=a0_0x1566f7,_0xf8c69d=new SegmentFolderListCommand(),_0x113159=program[_0x581b62(0x18e)](),_0x1ce269=createTDXInstance(_0x113159),_0x3622ab=await _0xf8c69d[_0x581b62(0x253)]({'options':{..._0x113159,..._0x3a2502},'args':[_0x360cc2],'tdx':_0x1ce269});process[_0x581b62(0x1a3)](_0x3622ab);});const folderCmd=segmentCmd[a0_0x1566f7(0x23b)]('folder')[a0_0x1566f7(0x206)](a0_0x1566f7(0x180));folderCmd['command']('show\x20<folder_ref>')['description']('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a0_0x1566f7(0x1b4)](async(_0x1fc8a6,_0x73756a)=>{const _0x3a16fa=a0_0x1566f7,_0x1aaf69=new SegmentFolderShowCommand(),_0x34ef8f=program[_0x3a16fa(0x18e)](),_0x3a41ff=createTDXInstance(_0x34ef8f),_0x3be5cf=await _0x1aaf69['run']({'options':{..._0x34ef8f,..._0x73756a},'args':[_0x1fc8a6],'tdx':_0x3a41ff});process[_0x3a16fa(0x1a3)](_0x3be5cf);}),segmentCmd['command'](a0_0x1566f7(0x252))[a0_0x1566f7(0x206)]('Get\x20SQL\x20query\x20for\x20segment\x20(use\x20parent_name\x20or\x20parent_name/child_name)')[a0_0x1566f7(0x1b4)](async(_0x2fb718,_0x17cf54)=>{const _0x16b109=a0_0x1566f7,_0x53383e=new SegmentSQLCommand(),_0x222d62=program[_0x16b109(0x18e)](),_0x5f3747=createTDXInstance(_0x222d62),_0x364b4f=await _0x53383e[_0x16b109(0x253)]({'options':{..._0x222d62,..._0x17cf54},'args':[_0x2fb718],'tdx':_0x5f3747});process[_0x16b109(0x1a3)](_0x364b4f);}),program[a0_0x1566f7(0x23b)]('activations\x20<segment_name>')[a0_0x1566f7(0x206)](a0_0x1566f7(0x23f))[a0_0x1566f7(0x1b4)](async(_0x4cf36d,_0x37b3ef)=>{const _0x86d93c=a0_0x1566f7,_0x215515=new ActivationsCommand(),_0x54bf38=program[_0x86d93c(0x18e)](),_0x446135=createTDXInstance(_0x54bf38),_0x23563d=await _0x215515[_0x86d93c(0x253)]({'options':{..._0x54bf38,..._0x37b3ef},'args':[_0x4cf36d],'tdx':_0x446135});process[_0x86d93c(0x1a3)](_0x23563d);});const workflowCmd=program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x234))[a0_0x1566f7(0x205)]('wf')[a0_0x1566f7(0x206)](a0_0x1566f7(0x1da));workflowCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x249))[a0_0x1566f7(0x206)](a0_0x1566f7(0x1cd))['action'](async(_0x367a56,_0x2ceb39)=>{const _0x3729dc=a0_0x1566f7,_0x557ff2=new WorkflowProjectsCommand(),_0xa48348=program[_0x3729dc(0x18e)](),_0x9116af=createTDXInstance(_0xa48348),_0x110bcc=await _0x557ff2[_0x3729dc(0x253)]({'options':{..._0xa48348,..._0x2ceb39},'args':_0x367a56?[_0x367a56]:[],'tdx':_0x9116af});process[_0x3729dc(0x1a3)](_0x110bcc);}),workflowCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x220))[a0_0x1566f7(0x205)]('ls')[a0_0x1566f7(0x206)](a0_0x1566f7(0x19c))[a0_0x1566f7(0x1b4)](async(_0x37cb33,_0x39e87c)=>{const _0x407261=a0_0x1566f7,_0x5e9d1a=new WorkflowWorkflowsCommand(),_0x289041=program['opts'](),_0x3ce94d=createTDXInstance(_0x289041),_0x31d514=await _0x5e9d1a[_0x407261(0x253)]({'options':{..._0x289041,..._0x39e87c},'args':_0x37cb33?[_0x37cb33]:[],'tdx':_0x3ce94d});process[_0x407261(0x1a3)](_0x31d514);}),workflowCmd['command'](a0_0x1566f7(0x265))['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')['option'](a0_0x1566f7(0x1ab),a0_0x1566f7(0x199))['option'](a0_0x1566f7(0x1a0),a0_0x1566f7(0x1c4))[a0_0x1566f7(0x176)]('--to\x20<timestamp>',a0_0x1566f7(0x1de))[a0_0x1566f7(0x1b4)](async(_0x4dcf9a,_0xd0e1b4)=>{const _0x2f5244=a0_0x1566f7,_0x311c6d=new WorkflowSessionsCommand(),_0x19ac8e=program[_0x2f5244(0x18e)](),_0x408937=createTDXInstance(_0x19ac8e),_0x163431=await _0x311c6d[_0x2f5244(0x253)]({'options':{..._0x19ac8e,..._0xd0e1b4},'args':_0x4dcf9a?[_0x4dcf9a]:[],'tdx':_0x408937});process[_0x2f5244(0x1a3)](_0x163431);}),workflowCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x222))[a0_0x1566f7(0x206)](a0_0x1566f7(0x24f))[a0_0x1566f7(0x176)](a0_0x1566f7(0x178),'Include\x20retried\x20attempts')[a0_0x1566f7(0x1b4)](async(_0x310f0b,_0x9dd0e5)=>{const _0x4a74cd=a0_0x1566f7,_0x1de575=new WorkflowAttemptsCommand(),_0x493142=program[_0x4a74cd(0x18e)](),_0x39bc18=createTDXInstance(_0x493142),_0x41dc77=await _0x1de575[_0x4a74cd(0x253)]({'options':{..._0x493142,..._0x9dd0e5},'args':_0x310f0b?[_0x310f0b]:[],'tdx':_0x39bc18});process['exit'](_0x41dc77);}),workflowCmd['command'](a0_0x1566f7(0x1c2))[a0_0x1566f7(0x206)]('Show\x20specific\x20attempt\x20details')[a0_0x1566f7(0x1b4)](async(_0x20933f,_0x486d3f)=>{const _0x184f8c=a0_0x1566f7,_0x5bf782=new WorkflowAttemptCommand(),_0x3f507d=program['opts'](),_0x150675=createTDXInstance(_0x3f507d),_0x154c75=await _0x5bf782[_0x184f8c(0x253)]({'options':{..._0x3f507d,..._0x486d3f},'args':[_0x20933f],'tdx':_0x150675});process['exit'](_0x154c75);}),workflowCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x22d))['description'](a0_0x1566f7(0x1bc))[a0_0x1566f7(0x176)]('--include-subtasks',a0_0x1566f7(0x212))[a0_0x1566f7(0x1b4)](async(_0x2fc5cf,_0x572cb)=>{const _0x354feb=a0_0x1566f7,_0x3817ff=new WorkflowTasksCommand(),_0x55cf92=program[_0x354feb(0x18e)](),_0x184b98=createTDXInstance(_0x55cf92),_0xebc7e6=await _0x3817ff[_0x354feb(0x253)]({'options':{..._0x55cf92,..._0x572cb},'args':[_0x2fc5cf],'tdx':_0x184b98});process['exit'](_0xebc7e6);}),workflowCmd[a0_0x1566f7(0x23b)]('logs\x20<attempt-id>\x20<task-name>')[a0_0x1566f7(0x206)](a0_0x1566f7(0x173))[a0_0x1566f7(0x176)]('--offset\x20<number>',a0_0x1566f7(0x186),_0x42a6a5=>parseInt(_0x42a6a5,0xa),0x0)['action'](async(_0x3b9379,_0x130cbd,_0x421a56)=>{const _0x24b134=a0_0x1566f7,_0x3c34fc=new WorkflowLogsCommand(),_0x679ff8=program[_0x24b134(0x18e)](),_0x4a6470=createTDXInstance(_0x679ff8),_0xadafd2=await _0x3c34fc['run']({'options':{..._0x679ff8,..._0x421a56},'args':[_0x3b9379,_0x130cbd],'tdx':_0x4a6470});process['exit'](_0xadafd2);}),workflowCmd['command'](a0_0x1566f7(0x21b))['description']('Kill\x20a\x20running\x20attempt')[a0_0x1566f7(0x176)](a0_0x1566f7(0x1d0),a0_0x1566f7(0x21d))[a0_0x1566f7(0x1b4)](async(_0x4d6c35,_0x4c4a9b)=>{const _0x1e2328=a0_0x1566f7,_0x9ba03e=new WorkflowKillCommand(),_0x59275b=program[_0x1e2328(0x18e)](),_0x24aa2a=createTDXInstance(_0x59275b),_0x28e69f=await _0x9ba03e['run']({'options':{..._0x59275b,..._0x4c4a9b},'args':[_0x4d6c35],'tdx':_0x24aa2a});process['exit'](_0x28e69f);}),workflowCmd[a0_0x1566f7(0x23b)]('retry\x20<session-id|attempt-id>')['description'](a0_0x1566f7(0x1b6))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1f3),a0_0x1566f7(0x21e))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1e9),a0_0x1566f7(0x20d))['option'](a0_0x1566f7(0x177),a0_0x1566f7(0x1f2))[a0_0x1566f7(0x176)]('--force',a0_0x1566f7(0x261))['action'](async(_0x226617,_0x336ecc)=>{const _0x4b8290=a0_0x1566f7,_0x789b8b=new WorkflowRetryCommand(),_0x9006a2=program[_0x4b8290(0x18e)](),_0x4be865=createTDXInstance(_0x9006a2),_0x3c6b74=await _0x789b8b[_0x4b8290(0x253)]({'options':{..._0x9006a2,..._0x336ecc},'args':[_0x226617],'tdx':_0x4be865});process[_0x4b8290(0x1a3)](_0x3c6b74);}),workflowCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x1c1))[a0_0x1566f7(0x206)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a0_0x1566f7(0x176)](a0_0x1566f7(0x19d),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a0_0x1566f7(0x1b4)](async(_0x2eb8d6,_0x13cdad,_0x2b04b4)=>{const _0x3d38cd=a0_0x1566f7,_0x5e5f4c=new WorkflowDownloadCommand(),_0x244421=program[_0x3d38cd(0x18e)](),_0x4aa60d=createTDXInstance(_0x244421),_0x395121=await _0x5e5f4c['run']({'options':{..._0x244421,..._0x2b04b4},'args':[_0x2eb8d6,_0x13cdad||'.'],'tdx':_0x4aa60d});process[_0x3d38cd(0x1a3)](_0x395121);}),workflowCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x226))[a0_0x1566f7(0x206)](a0_0x1566f7(0x189))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1e1),a0_0x1566f7(0x1a6))[a0_0x1566f7(0x176)](a0_0x1566f7(0x19d),a0_0x1566f7(0x194))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1dc),'Skip\x20validation\x20of\x20.dig\x20files')[a0_0x1566f7(0x1b4)](async(_0x5cd2d7,_0x420a23)=>{const _0x4f8683=a0_0x1566f7,_0x2c6f43=new WorkflowPushCommand(),_0x1fe8e6=program['opts'](),_0xe1e2a8=createTDXInstance(_0x1fe8e6),_0x36872f=await _0x2c6f43[_0x4f8683(0x253)]({'options':{..._0x1fe8e6,..._0x420a23},'args':_0x5cd2d7?[_0x5cd2d7]:[],'tdx':_0xe1e2a8});process['exit'](_0x36872f);}),workflowCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x223))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a0_0x1566f7(0x1b4)](async(_0x2530cc,_0x4ee7ad)=>{const _0x18a1c6=a0_0x1566f7,_0x484ada=new WorkflowDeleteCommand(),_0x174a64=program['opts'](),_0x294fd1=createTDXInstance(_0x174a64),_0x246516=await _0x484ada[_0x18a1c6(0x253)]({'options':{..._0x174a64,..._0x4ee7ad},'args':[_0x2530cc],'tdx':_0x294fd1});process['exit'](_0x246516);});const llmCmd=program[a0_0x1566f7(0x23b)]('llm')[a0_0x1566f7(0x206)](a0_0x1566f7(0x20e));llmCmd['command'](a0_0x1566f7(0x25d))[a0_0x1566f7(0x206)](a0_0x1566f7(0x183))[a0_0x1566f7(0x1b4)](async(_0x72118,_0xe19648)=>{const _0x2be063=a0_0x1566f7,_0x36b494=new LLMUseCommand(),_0x47568a=program['opts'](),_0xdabc4f=createTDXInstance(_0x47568a),_0x547660=await _0x36b494[_0x2be063(0x253)]({'options':{..._0x47568a,..._0xe19648},'args':[_0x72118],'tdx':_0xdabc4f});process[_0x2be063(0x1a3)](_0x547660);}),llmCmd[a0_0x1566f7(0x23b)]('models')[a0_0x1566f7(0x206)](a0_0x1566f7(0x1bb))[a0_0x1566f7(0x1b4)](async _0x2a6640=>{const _0x2bce4b=a0_0x1566f7,_0x85042=new LLMModelsCommand(),_0x9de4d6=program['opts'](),_0x2c0cb1=createTDXInstance(_0x9de4d6),_0x4fabce=await _0x85042[_0x2bce4b(0x253)]({'options':{..._0x9de4d6,..._0x2a6640},'args':[],'tdx':_0x2c0cb1});process[_0x2bce4b(0x1a3)](_0x4fabce);}),llmCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x249))[a0_0x1566f7(0x206)](a0_0x1566f7(0x241))[a0_0x1566f7(0x1b4)](async(_0x3c05ff,_0x2656dd)=>{const _0x21a5be=a0_0x1566f7,_0x44a30d=new LLMProjectsCommand(),_0x23cca0=program[_0x21a5be(0x18e)](),_0x563337=createTDXInstance(_0x23cca0),_0x59d7c5=await _0x44a30d['run']({'options':{..._0x23cca0,..._0x2656dd},'args':_0x3c05ff?[_0x3c05ff]:[],'tdx':_0x563337});process[_0x21a5be(0x1a3)](_0x59d7c5);});const projectCmd=llmCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x23a))['description'](a0_0x1566f7(0x17c));projectCmd[a0_0x1566f7(0x23b)]('create\x20<name>')[a0_0x1566f7(0x206)](a0_0x1566f7(0x197))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1b9),'Project\x20description')[a0_0x1566f7(0x1b4)](async(_0x8c0340,_0x5c5fb7)=>{const _0x1e3cd9=a0_0x1566f7,_0x54579e=new LLMProjectCreateCommand(),_0xbb90bc=program[_0x1e3cd9(0x18e)](),_0x244243=createTDXInstance(_0xbb90bc),_0x1bf8df=await _0x54579e[_0x1e3cd9(0x253)]({'options':{..._0xbb90bc,..._0x5c5fb7},'args':[_0x8c0340],'tdx':_0x244243});process[_0x1e3cd9(0x1a3)](_0x1bf8df);}),projectCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x1e5))[a0_0x1566f7(0x206)](a0_0x1566f7(0x1d3))[a0_0x1566f7(0x1b4)](async(_0x3d8970,_0x70ef3)=>{const _0x3800cc=a0_0x1566f7,_0x194227=new LLMProjectDeleteCommand(),_0x49c54d=program[_0x3800cc(0x18e)](),_0x1463d6=createTDXInstance(_0x49c54d),_0x106012=await _0x194227[_0x3800cc(0x253)]({'options':{..._0x49c54d,..._0x70ef3},'args':[_0x3d8970],'tdx':_0x1463d6});process[_0x3800cc(0x1a3)](_0x106012);}),llmCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x1e2))[a0_0x1566f7(0x206)](a0_0x1566f7(0x1c7))[a0_0x1566f7(0x1b4)](async(_0x11c7d8,_0x1416db)=>{const _0x33ee09=a0_0x1566f7,_0x411a4d=new LLMAgentsCommand(),_0xb1bd7a=program['opts'](),_0x9ff03e=createTDXInstance(_0xb1bd7a),_0x3a0558=await _0x411a4d[_0x33ee09(0x253)]({'options':{..._0xb1bd7a,..._0x1416db},'args':_0x11c7d8?[_0x11c7d8]:[],'tdx':_0x9ff03e});process[_0x33ee09(0x1a3)](_0x3a0558);});const agentCmd=llmCmd['command'](a0_0x1566f7(0x1d4))['description']('LLM\x20agent\x20management');agentCmd['command'](a0_0x1566f7(0x1f4))[a0_0x1566f7(0x206)]('Show\x20agent\x20details')[a0_0x1566f7(0x1b4)](async(_0xf5ff38,_0x1a7513)=>{const _0x175910=a0_0x1566f7,_0x45faf7=new LLMAgentShowCommand(),_0x54406b=program[_0x175910(0x18e)](),_0x142a02=createTDXInstance(_0x54406b),_0x5c3b9c=await _0x45faf7[_0x175910(0x253)]({'options':{..._0x54406b,..._0x1a7513},'args':[_0xf5ff38],'tdx':_0x142a02});process[_0x175910(0x1a3)](_0x5c3b9c);}),agentCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x25f))[a0_0x1566f7(0x206)](a0_0x1566f7(0x1e7))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1b3),'System\x20prompt/instructions\x20(default:\x20empty)')[a0_0x1566f7(0x176)](a0_0x1566f7(0x1aa),a0_0x1566f7(0x1e0),'claude-4.5-sonnet')[a0_0x1566f7(0x176)](a0_0x1566f7(0x1b2),a0_0x1566f7(0x192))[a0_0x1566f7(0x176)](a0_0x1566f7(0x255),a0_0x1566f7(0x231),'4')[a0_0x1566f7(0x176)](a0_0x1566f7(0x19e),a0_0x1566f7(0x184),a0_0x1566f7(0x211))[a0_0x1566f7(0x1b4)](async(_0x585f41,_0x36f1af)=>{const _0x4c8bd1=a0_0x1566f7,_0x252737=new LLMAgentCreateCommand(),_0x1f7ee8=program[_0x4c8bd1(0x18e)](),_0x223454=createTDXInstance(_0x1f7ee8),_0x140c60=await _0x252737[_0x4c8bd1(0x253)]({'options':{..._0x1f7ee8,..._0x36f1af},'args':[_0x585f41],'tdx':_0x223454});process[_0x4c8bd1(0x1a3)](_0x140c60);}),agentCmd['command'](a0_0x1566f7(0x1e6))[a0_0x1566f7(0x206)](a0_0x1566f7(0x254))['option'](a0_0x1566f7(0x17f),a0_0x1566f7(0x1be))['option'](a0_0x1566f7(0x240),'Agent\x20prompt/instructions')[a0_0x1566f7(0x176)](a0_0x1566f7(0x1b9),a0_0x1566f7(0x25a))['option'](a0_0x1566f7(0x1b2),a0_0x1566f7(0x192))[a0_0x1566f7(0x1b4)](async(_0x9633b7,_0x1d8d83)=>{const _0x384962=a0_0x1566f7,_0x37f01b=new LLMAgentUpdateCommand(),_0x46e1d4=program[_0x384962(0x18e)](),_0x4c01b9=createTDXInstance(_0x46e1d4),_0x43684b=await _0x37f01b[_0x384962(0x253)]({'options':{..._0x46e1d4,..._0x1d8d83},'args':[_0x9633b7],'tdx':_0x4c01b9});process[_0x384962(0x1a3)](_0x43684b);}),agentCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x243))[a0_0x1566f7(0x206)]('Delete\x20an\x20agent')['action'](async(_0x26a274,_0x7a1cb)=>{const _0x2bee54=a0_0x1566f7,_0x4ae25b=new LLMAgentDeleteCommand(),_0xd9105f=program['opts'](),_0x1627f3=createTDXInstance(_0xd9105f),_0x2e7723=await _0x4ae25b[_0x2bee54(0x253)]({'options':{..._0xd9105f,..._0x7a1cb},'args':[_0x26a274],'tdx':_0x1627f3});process[_0x2bee54(0x1a3)](_0x2e7723);}),llmCmd['command'](a0_0x1566f7(0x1d8))[a0_0x1566f7(0x206)](a0_0x1566f7(0x204))[a0_0x1566f7(0x1b4)](async(_0x2ed434,_0x1c2cd6)=>{const _0x29bba1=a0_0x1566f7,_0x34f9a1=new LLMHistoryCommand(),_0x2096f1=program[_0x29bba1(0x18e)](),_0x595a0c=createTDXInstance(_0x2096f1),_0x11da3b=await _0x34f9a1['run']({'options':{..._0x2096f1,..._0x1c2cd6},'args':_0x2ed434?[_0x2ed434]:[],'tdx':_0x595a0c});process['exit'](_0x11da3b);}),llmCmd[a0_0x1566f7(0x23b)](a0_0x1566f7(0x1b5))[a0_0x1566f7(0x206)](a0_0x1566f7(0x1dd))[a0_0x1566f7(0x176)](a0_0x1566f7(0x247),a0_0x1566f7(0x193),a0_0x1566f7(0x1d9))[a0_0x1566f7(0x176)](a0_0x1566f7(0x1e4),a0_0x1566f7(0x218))['option'](a0_0x1566f7(0x224),a0_0x1566f7(0x171))['option'](a0_0x1566f7(0x21c),a0_0x1566f7(0x1e3))[a0_0x1566f7(0x1b4)](async _0x1e7bec=>{const _0x5ddf6e=a0_0x1566f7,_0x48a361=new LLMProxyCommand(),_0x57a083=program[_0x5ddf6e(0x18e)](),_0x5e8b04=createTDXInstance(_0x57a083),_0x23695a={..._0x1e7bec,'port':_0x1e7bec[_0x5ddf6e(0x208)]?parseInt(_0x1e7bec[_0x5ddf6e(0x208)],0xa):undefined},_0x22f82a=await _0x48a361['run']({'options':{..._0x57a083,..._0x23695a},'args':[],'tdx':_0x5e8b04});process[_0x5ddf6e(0x1a3)](_0x22f82a);}),program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x1a2))[a0_0x1566f7(0x206)](a0_0x1566f7(0x24d))[a0_0x1566f7(0x176)]('--model\x20<name>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a0_0x1566f7(0x170))[a0_0x1566f7(0x176)](a0_0x1566f7(0x21c),a0_0x1566f7(0x1b0))[a0_0x1566f7(0x1b4)](async _0x4de96d=>{const _0x56486e=a0_0x1566f7,_0xd130dc=new ClaudeCommand(),_0x4e5a4e=program[_0x56486e(0x18e)](),_0x5de171=createTDXInstance(_0x4e5a4e),_0x168cf3=await _0xd130dc[_0x56486e(0x253)]({'options':{..._0x4e5a4e,..._0x4de96d},'args':[],'tdx':_0x5de171});process[_0x56486e(0x1a3)](_0x168cf3);}),program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x200))['description'](a0_0x1566f7(0x1af))[a0_0x1566f7(0x176)](a0_0x1566f7(0x21c),a0_0x1566f7(0x1ae))[a0_0x1566f7(0x176)]('--clear',a0_0x1566f7(0x1cb))['action'](async _0x55c860=>{const _0x3504e4=a0_0x1566f7,_0xa1fb38=new ContextCommand(),_0x26357e=program[_0x3504e4(0x18e)](),_0x418aeb=await _0xa1fb38[_0x3504e4(0x253)]({'options':{..._0x26357e,..._0x55c860},'args':[],'tdx':null});process[_0x3504e4(0x1a3)](_0x418aeb);}),program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x260))[a0_0x1566f7(0x206)](a0_0x1566f7(0x258))[a0_0x1566f7(0x1b4)](async(_0x4a755e,_0x1ac38c,_0x33ce83)=>{const _0x315134=a0_0x1566f7,_0x3ecf2f=new UseCommand(),_0x24c0a3=program['opts'](),_0x430cb9=[];if(_0x4a755e)_0x430cb9[_0x315134(0x1c6)](_0x4a755e);if(_0x1ac38c)_0x430cb9[_0x315134(0x1c6)](_0x1ac38c);const _0x2d7f3b=await _0x3ecf2f[_0x315134(0x253)]({'options':{..._0x24c0a3,..._0x33ce83},'args':_0x430cb9,'tdx':null});process[_0x315134(0x1a3)](_0x2d7f3b);}),program[a0_0x1566f7(0x23b)](a0_0x1566f7(0x256))[a0_0x1566f7(0x206)](a0_0x1566f7(0x1a5))[a0_0x1566f7(0x1b4)](async _0xa06f0f=>{const _0x2ca06c=a0_0x1566f7,_0x1dc152=new ProfilesCommand(),_0x3d9bc4=program['opts'](),_0x366277=await _0x1dc152[_0x2ca06c(0x253)]({'options':{..._0x3d9bc4,..._0xa06f0f},'args':[],'tdx':null});process['exit'](_0x366277);}),program[a0_0x1566f7(0x22f)](process[a0_0x1566f7(0x191)]);!process['argv'][a0_0x1566f7(0x1c3)](0x2)[a0_0x1566f7(0x216)]&&program[a0_0x1566f7(0x19b)]();
|
|
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();}
|