@treasuredata/tdx 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -48
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client/cdp-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-client.js +1 -1
- package/dist/client/trino-client.js +1 -1
- package/dist/client/workflow-client.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.d.ts +6 -6
- package/dist/commands/segment-command.d.ts.map +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-command.js.map +1 -1
- package/dist/commands/segment-create-command.d.ts +2 -1
- package/dist/commands/segment-create-command.d.ts.map +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-create-command.js.map +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pwd-command.d.ts +21 -0
- package/dist/commands/segment-pwd-command.d.ts.map +1 -0
- package/dist/commands/segment-pwd-command.js +1 -0
- package/dist/commands/segment-pwd-command.js.map +1 -0
- package/dist/commands/segment-update-command.d.ts +2 -1
- package/dist/commands/segment-update-command.d.ts.map +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-update-command.js.map +1 -1
- package/dist/commands/segment-use-command.d.ts +22 -0
- package/dist/commands/segment-use-command.d.ts.map +1 -0
- package/dist/commands/segment-use-command.js +1 -0
- package/dist/commands/segment-use-command.js.map +1 -0
- package/dist/commands/segments.d.ts +31 -5
- package/dist/commands/segments.d.ts.map +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/segments.js.map +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/global-context.d.ts +1 -0
- package/dist/core/global-context.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/global-context.js.map +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.d.ts +1 -0
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/session.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.d.ts +1 -0
- package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/anthropic-adapter.js.map +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.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment.d.ts +89 -0
- package/dist/sdk/segment.d.ts.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/segment.js.map +1 -1
- package/dist/sdk/table.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/cdp.d.ts +61 -0
- package/dist/types/cdp.d.ts.map +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/agent-ref-parser.js +1 -1
- package/dist/utils/chat-cache.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.d.ts +1 -1
- package/dist/utils/formatters.d.ts.map +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/formatters.js.map +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.d.ts +9 -2
- package/dist/utils/process.d.ts.map +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/process.js.map +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/segment-path-parser.d.ts +172 -0
- package/dist/utils/segment-path-parser.d.ts.map +1 -0
- package/dist/utils/segment-path-parser.js +1 -0
- package/dist/utils/segment-path-parser.js.map +1 -0
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.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/tree-formatter.d.ts +77 -0
- package/dist/utils/tree-formatter.d.ts.map +1 -0
- package/dist/utils/tree-formatter.js +1 -0
- package/dist/utils/tree-formatter.js.map +1 -0
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -541,27 +541,43 @@ tdx job result <job-id> --format tsv
|
|
|
541
541
|
|
|
542
542
|
Usage: `tdx segment <subcommand> [options] [arguments]`
|
|
543
543
|
|
|
544
|
-
CDP (Customer Data Platform) segment management for audiences and activations.
|
|
544
|
+
CDP (Customer Data Platform) segment management for audiences and activations with file-system-like navigation.
|
|
545
545
|
|
|
546
|
-
**
|
|
547
|
-
- Parent segment: `
|
|
548
|
-
- Child segment: `
|
|
549
|
-
-
|
|
550
|
-
- Pattern:
|
|
546
|
+
**Path Format:**
|
|
547
|
+
- Parent segment: `"My Audience"`
|
|
548
|
+
- Child segment: `"My Audience/High Value Users"`
|
|
549
|
+
- Nested folders: `"My Audience/Marketing/Campaigns/Email Q1"`
|
|
550
|
+
- Pattern matching: `"*DEMO"`, `"test*"`, `"*audience*"`
|
|
551
551
|
- **Note**: Names are case-sensitive
|
|
552
552
|
|
|
553
|
+
**Navigation Model:**
|
|
554
|
+
- Set context: `tdx segment use <path>` - Navigate into a parent or folder
|
|
555
|
+
- Show context: `tdx segment pwd` - Display current location
|
|
556
|
+
- List contents: `tdx segments` - Show folders + segments in current context
|
|
557
|
+
- All commands support both absolute paths and relative paths from context
|
|
558
|
+
|
|
559
|
+
#### Navigation Commands
|
|
560
|
+
|
|
561
|
+
| Command | Description | Example |
|
|
562
|
+
|---------|-------------|---------|
|
|
563
|
+
| `segment use <path>` | Set current context to parent or folder | `tdx segment use "My Audience/Marketing"` |
|
|
564
|
+
| `segment pwd` | Show current context path | `tdx segment pwd` |
|
|
565
|
+
| `segment use /` | Clear context (back to root) | `tdx segment use /` |
|
|
566
|
+
| `segment use ..` | Navigate to parent folder | `tdx segment use ..` |
|
|
567
|
+
|
|
553
568
|
#### Discovery Commands
|
|
554
569
|
|
|
555
570
|
| Command | Description | Example |
|
|
556
571
|
|---------|-------------|---------|
|
|
557
|
-
| `segments` | List all
|
|
558
|
-
| `segments <
|
|
559
|
-
| `
|
|
560
|
-
| `
|
|
561
|
-
| `
|
|
562
|
-
| `segment
|
|
563
|
-
| `segment
|
|
564
|
-
| `segment
|
|
572
|
+
| `segments` | List contents in current context (or all parents if no context) | `tdx segments` |
|
|
573
|
+
| `segments <path>` | List folders + segments at specified path | `tdx segments "My Audience/Marketing"` |
|
|
574
|
+
| `segments <pattern>` | List parents matching pattern (glob) | `tdx segments "*DEMO"` |
|
|
575
|
+
| `segments -r` | List recursively (tree view) | `tdx segments -r` |
|
|
576
|
+
| `segments <path> -r` | Recursive tree from path | `tdx segments "My Audience" -r` |
|
|
577
|
+
| `segment describe <path>` | Show details (parent/folder/segment) | `tdx segment describe "My Audience/Marketing"` |
|
|
578
|
+
| `segment show <path>` | Execute segment SQL query and show results | `tdx segment show "My Audience/Premium Users"` |
|
|
579
|
+
| `segment sql <path>` | Get SQL query for segment | `tdx segment sql "My Audience/Marketing/Premium"` |
|
|
580
|
+
| `segment fields <parent>` | List available fields for segmentation | `tdx segment fields "My Audience"` |
|
|
565
581
|
|
|
566
582
|
#### Management Commands
|
|
567
583
|
|
|
@@ -569,52 +585,75 @@ CDP (Customer Data Platform) segment management for audiences and activations.
|
|
|
569
585
|
|---------|-------------|---------|
|
|
570
586
|
| `segment parent create <name>` | Create new parent segment (audience) | `tdx segment parent create "Customer 360" --database mydb --table customers` |
|
|
571
587
|
| `segment parent update <name>` | Update existing parent segment | `tdx segment parent update "Customer 360" --description "Updated"` |
|
|
572
|
-
| `segment create <
|
|
573
|
-
| `segment update <
|
|
588
|
+
| `segment create <path>` | Create child segment with filtering (supports nested paths) | `tdx segment create "My Audience/Marketing/Premium" --rule-file rule.json` |
|
|
589
|
+
| `segment update <path>` | Update child segment (supports nested paths) | `tdx segment update "My Audience/Marketing/Premium" --description "Updated"` |
|
|
574
590
|
| `segment folder create <parent> <folder>` | Create segment folder | `tdx segment folder create "My Audience" "Q1 2024"` |
|
|
575
591
|
|
|
576
592
|
#### Discovery Examples
|
|
577
593
|
|
|
594
|
+
**Navigation Workflow:**
|
|
595
|
+
|
|
578
596
|
```bash
|
|
579
597
|
# List all parent segments
|
|
580
|
-
tdx segments
|
|
581
|
-
|
|
582
|
-
#
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
tdx
|
|
588
|
-
|
|
589
|
-
#
|
|
598
|
+
tdx segments
|
|
599
|
+
# Output:
|
|
600
|
+
# [parent segments]
|
|
601
|
+
# 👥 My Audience (50K)
|
|
602
|
+
# 👥 Sales Leads (12.5K)
|
|
603
|
+
|
|
604
|
+
# Pattern matching for parents
|
|
605
|
+
tdx segments "*DEMO"
|
|
606
|
+
# Output:
|
|
607
|
+
# [parent segments]
|
|
608
|
+
# 👥 TREASUREBIKES DEMO (3.28K)
|
|
609
|
+
# 👥 TEST DEMO (1.5K)
|
|
610
|
+
|
|
611
|
+
# Navigate into a parent
|
|
612
|
+
tdx segment use "My Audience"
|
|
613
|
+
|
|
614
|
+
# List folders + segments in current context (unified view)
|
|
615
|
+
tdx segments
|
|
616
|
+
# Output:
|
|
617
|
+
# [/My Audience]
|
|
618
|
+
# 📁 Marketing
|
|
619
|
+
# 📁 Sales
|
|
620
|
+
# 🎯 Active Users (35K)
|
|
621
|
+
# 🎯 All Users (50K)
|
|
622
|
+
|
|
623
|
+
# Recursive tree view from current context
|
|
624
|
+
tdx segments -r
|
|
625
|
+
# Output:
|
|
626
|
+
# [/My Audience]
|
|
627
|
+
# 📁 Marketing
|
|
628
|
+
# ├── 📁 Campaigns
|
|
629
|
+
# │ ├── 🎯 Email Q1 (5.23K)
|
|
630
|
+
# │ └── 🎯 Email Q2 (6.12K)
|
|
631
|
+
# └── 🎯 Email Subscribers (15K)
|
|
632
|
+
# 🎯 Active Users (35K)
|
|
633
|
+
|
|
634
|
+
# Navigate to nested folder
|
|
635
|
+
tdx segment use "My Audience/Marketing/Campaigns"
|
|
636
|
+
tdx segment pwd
|
|
637
|
+
# Output: My Audience/Marketing/Campaigns
|
|
638
|
+
|
|
639
|
+
# List specific path without changing context
|
|
640
|
+
tdx segments "My Audience/Marketing"
|
|
641
|
+
tdx segments "My Audience" -r # Recursive from specific path
|
|
642
|
+
|
|
643
|
+
# Show details using absolute paths
|
|
644
|
+
tdx segment describe "My Audience/Marketing/Campaigns"
|
|
590
645
|
tdx segment describe "My Audience/High Value Users"
|
|
591
646
|
|
|
592
|
-
#
|
|
593
|
-
tdx segment
|
|
647
|
+
# Show details using relative paths (from context)
|
|
648
|
+
tdx segment use "My Audience/Marketing"
|
|
649
|
+
tdx segment describe "Campaigns" # Relative to Marketing
|
|
594
650
|
|
|
595
|
-
# Execute
|
|
651
|
+
# Execute queries with paths
|
|
596
652
|
tdx segment show "My Audience/Premium Users" --limit 100
|
|
653
|
+
tdx segment sql "My Audience/Marketing/Email Subscribers" > query.sql
|
|
597
654
|
|
|
598
|
-
#
|
|
599
|
-
tdx segment show "My Audience" --format json --output results.json
|
|
600
|
-
|
|
601
|
-
# Get SQL for parent segment
|
|
602
|
-
tdx segment sql "My Audience" > parent-query.sql
|
|
603
|
-
|
|
604
|
-
# Get SQL for child segment with filtering (slash notation)
|
|
605
|
-
tdx segment sql "My Audience/High Value Users" > child-query.sql
|
|
606
|
-
|
|
607
|
-
# List available fields for creating filtered segments
|
|
655
|
+
# List available fields for parent
|
|
608
656
|
tdx segment fields "My Audience"
|
|
609
|
-
|
|
610
|
-
# List available fields with column details (JSON format)
|
|
611
|
-
tdx segment fields "My Audience" --json
|
|
612
|
-
|
|
613
|
-
# List folders under parent
|
|
614
|
-
tdx segment folders "My Audience"
|
|
615
|
-
|
|
616
|
-
# Show folder details (parent/folder notation)
|
|
617
|
-
tdx segment folder show "My Audience/Marketing"
|
|
618
657
|
```
|
|
619
658
|
|
|
620
659
|
#### Management Examples
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const a0_0x450eb4=a0_0x281d;(function(_0x117fea,_0x55e6a4){const _0x10a007=a0_0x281d,_0x3e3df7=_0x117fea();while(!![]){try{const _0x275530=-parseInt(_0x10a007(0x208))/0x1*(-parseInt(_0x10a007(0x23b))/0x2)+parseInt(_0x10a007(0x2f5))/0x3*(parseInt(_0x10a007(0x24f))/0x4)+parseInt(_0x10a007(0x2dd))/0x5+parseInt(_0x10a007(0x2c6))/0x6+-parseInt(_0x10a007(0x26b))/0x7+-parseInt(_0x10a007(0x1f0))/0x8*(-parseInt(_0x10a007(0x2bc))/0x9)+-parseInt(_0x10a007(0x25c))/0xa;if(_0x275530===_0x55e6a4)break;else _0x3e3df7['push'](_0x3e3df7['shift']());}catch(_0x28a499){_0x3e3df7['push'](_0x3e3df7['shift']());}}}(a0_0x570d,0xa85eb));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{GlobalContext}from'./core/global-context.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentDescribeCommand,SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand}from'./commands/segment-command.js';function a0_0x570d(){const _0x45179c=['name','folder','tables\x20[pattern]','Read\x20request\x20body\x20from\x20file','action','argumentDescription','context','subcommandDescription','GET','fields\x20<parent_name>','--project\x20<name>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','subcommandTerm','push\x20[project-name-or-dir]','commandDescription','tdx','Set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20profile)','commands','--in\x20<database>','Updated\x20timezone','models','Model\x20name\x20(default:\x20claude-4.5-sonnet)','System\x20prompt/instructions\x20(default:\x20empty)','outputHelp','delete\x20<name>','AI-native\x20CLI\x20for\x20Treasure\x20Data','show\x20[table]','--description\x20<text>','List\x20available\x20fields\x20for\x20segmentation','Parent\x20segment\x20description','Master\x20table\x20name','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','update\x20<name>','push','Run\x20Trino\x20query\x20with\x20streaming\x20results','--new','alias','--resume-from\x20<task>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--profile\x20<name>','kill\x20<attempt-id>','--schedule-type\x20<type>','update\x20<segment_name>','Parent\x20segment\x20(audience)\x20management','show\x20<segment_name>','--temperature\x20<n>','exit','Move\x20to\x20folder','Create\x20segment\x20folder','Start\x20a\x20new\x20chat\x20session','Skip\x20population\x20counting','--revision\x20<revision>','--name\x20<name>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--jsonl','Add\x20behaviors\x20from\x20JSON\x20file','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--limit\x20<rows>','Attributes\x20from\x20JSON\x20file','repeat','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','requiredOption','filter','Behaviors\x20from\x20JSON\x20file','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Create\x20a\x20new\x20LLM\x20project','show\x20<job-id>','Enable\x20verbose\x20logging','Updated\x20schedule\x20option','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','map','Customer\x20group\x20from\x20JSON\x20file','use\x20<project-name>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Database\x20to\x20use\x20(overrides\x20context)','--from-task\x20<task>','9LLBTiS','argumentTerm','../package.json','--output\x20<file>','Add\x20attributes\x20from\x20JSON\x20file','padWidth','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','retry\x20<session-id|attempt-id>','attempt\x20<attempt-id>','--site\x20<site>','4908078XouCLW','--from\x20<timestamp>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','registeredArguments','--verbose','proxy','sonnet','--reason\x20<text>','Timezone\x20(e.g.,\x20America/Los_Angeles)','--max-tool-iterations\x20<n>','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','--llm-project\x20<name>','Update\x20an\x20existing\x20agent','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--name\x20<text>','preAction','--customer-group-file\x20<file>','description','llm','slice','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Override\x20project\x20name','152845qOtWHX','Starter\x20message','Segment\x20description','Show\x20logs\x20for\x20a\x20specific\x20task','--tsv','history\x20[chat-id]','Agent\x20description','Folder\x20name\x20for\x20organization','Submit\x20a\x20job','--name\x20<new_name>','Master\x20database\x20name','Trino\x20catalog\x20(default:\x20td)','--timezone\x20<tz>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--table\x20<table>','Show\x20job\x20details','--session\x20<id>','Agent\x20prompt/instructions','Customer\x20group\x20as\x20JSON\x20string','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Reason\x20for\x20killing\x20the\x20attempt','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','984zMWvsG','--no-count-population','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--color','url','us01','Model\x20type\x20(default:\x20claude-4.5-sonnet)','tasks\x20<attempt-id>','CDP\x20segment\x20management\x20commands','--behaviors\x20<json>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(use\x20parent_name\x20or\x20parent_name/child_name)','activations\x20<segment_name>','Make\x20segment\x20invisible\x20(default:\x20visible)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Updated\x20description','Enable\x20debug\x20mode\x20(logs\x20proxy\x20request/response\x20to\x20stderr)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','create\x20<name>','Parent\x20folder\x20name\x20for\x20nested\x20folders','Agent\x20reference\x20(project-name/agent-name)','length','--timeout\x20<seconds>','-H,\x20--header\x20<header>','--dry-run','--debug','tsv','Folder\x20description','--schedule-option\x20<value>','--starter-message\x20<text>','output\x20the\x20version\x20number','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','create\x20<parent_name>\x20<folder_name>','delete\x20<project-name-or-id>','--status\x20<status>','Maximum\x20tool\x20iterations\x20(default:\x204)','--database\x20<db>','project','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','aliases','Enable\x20debug\x20mode\x20(logs\x20request/response\x20to\x20stderr)','trino','--invisible','sql\x20<segment_name>','List\x20available\x20LLM\x20models','create\x20<segment_name>','run','Commands:','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','api\x20[endpoint]','2833176WpZtXJ','verbose','-f,\x20--file\x20<path>','summary','hook','projects\x20[pattern]','desc','update\x20<agent-name>','--port\x20<number>','--folder\x20<name>','apiKey','--attributes\x20<json>','--parent-folder\x20<name>','join','Include\x20subtasks\x20in\x20the\x20output','Filtering\x20rule\x20as\x20JSON\x20string','configureHelp','--skip-validation','Project\x20description','Get\x20job\x20results','4000','claude','workflow','Create\x20parent\x20segment\x20(audience)','935911fmfSxr','injectIntoOptions','show\x20<folder_ref>','padEnd','Attributes\x20as\x20JSON\x20string','Kill\x20a\x20running\x20attempt','Skip\x20validation\x20of\x20.dig\x20files','Get\x20SQL\x20query\x20for\x20segment\x20(use\x20parent_name\x20or\x20parent_name/child_name)','--agent\x20<name>','--kind\x20<type>','Job\x20management\x20commands','Retry\x20a\x20session\x20or\x20attempt\x20(prefix\x20with\x20session:\x20or\x20attempt:)','after','--rule\x20<json>','use\x20[resource]\x20[value]','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','jobs','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Show\x20context\x20with\x20sources\x20(for\x20debugging)','0.7','json','Temperature\x20(0.0-2.0,\x20default:\x200.7)','LLM\x20agent\x20management','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--job-type\x20<type>','--clear','Show\x20current\x20resolved\x20context','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','port','database','command','parse','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Revision\x20name\x20(default:\x20timestamp)','Read\x20SQL\x20query\x20from\x20file','Arguments:','Preview\x20operation\x20without\x20executing','--to\x20<timestamp>','workflows\x20[project]','chat\x20[message...]','site','opts','option','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','jsonl','--model\x20<name>','-d,\x20--database\x20<database>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','2prSQED','--format\x20<format>','sessions\x20[project]','-d,\x20--database\x20<name>','-v,\x20--version','result\x20<job-id>','Filtering\x20rule\x20from\x20JSON\x20file','Force\x20retry\x20even\x20if\x20not\x20failed\x20(attempt\x20retry\x20only)','Segment\x20folder\x20management','Options:','Show\x20agent\x20details','Show\x20tasks\x20for\x20an\x20attempt','Workflow\x20(Digdag)\x20management\x20commands','List\x20parent\x20segments\x20or\x20child\x20segments\x20under\x20a\x20parent','End\x20time\x20filter\x20(ISO\x208601\x20format)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Kill\x20a\x20job','Resume\x20from\x20specific\x20task\x20(session\x20retry\x20only)','profiles','--type\x20<api_type>','1252PCKRBK','--customer-group\x20<json>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--in\x20<name>','commandUsage','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','format','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','claude-4.5-sonnet','job','14604650EoUYuB','required','options','parent','hidden','--force','List\x20all\x20available\x20profiles','replace','version','Skip\x20confirmation\x20prompts','--database\x20<name>','--add-attributes-file\x20<file>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Show\x20specific\x20attempt\x20details','Save\x20output\x20to\x20file','638372rhepSI','argv','Show\x20segment\x20details\x20(use\x20parent_name\x20or\x20parent_name/child_name)'];a0_0x570d=function(){return _0x45179c;};return a0_0x570d();}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_0x450eb4(0x1c3)]),__dirname=dirname(__filename),packageJson=JSON[a0_0x450eb4(0x229)](readFileSync(join(__dirname,a0_0x450eb4(0x2be)),'utf-8')),program=new Command();program[a0_0x450eb4(0x26e)](a0_0x450eb4(0x27d))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x287))[a0_0x450eb4(0x264)](packageJson[a0_0x450eb4(0x264)],a0_0x450eb4(0x23f),a0_0x450eb4(0x1dc)),program['option'](a0_0x450eb4(0x2c5),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02,\x20ap03,\x20dev-us01,\x20dev-eu01,\x20stg-us01,\x20stg-jp01,\x20stg-ap03;\x20aliases:\x20us,\x20jp,\x20aws,\x20dev,\x20stg)',a0_0x450eb4(0x1c4))[a0_0x450eb4(0x234)](a0_0x450eb4(0x23c),a0_0x450eb4(0x259))['option']('--json',a0_0x450eb4(0x23a))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2a6),a0_0x450eb4(0x2b9))['option'](a0_0x450eb4(0x2e1),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a0_0x450eb4(0x234)](a0_0x450eb4(0x2bf),a0_0x450eb4(0x26a))[a0_0x450eb4(0x234)]('--limit\x20<rows>',a0_0x450eb4(0x2c8),'40')[a0_0x450eb4(0x234)](a0_0x450eb4(0x1c2),a0_0x450eb4(0x2a8),![])[a0_0x450eb4(0x234)]('--no-color',a0_0x450eb4(0x1ee),![])[a0_0x450eb4(0x234)](a0_0x450eb4(0x2cb),a0_0x450eb4(0x2b3),![])['option'](a0_0x450eb4(0x1d4),'Set\x20operation\x20timeout\x20in\x20seconds','30')['option'](a0_0x450eb4(0x1d6),a0_0x450eb4(0x22e),![])[a0_0x450eb4(0x234)]('-y,\x20--yes',a0_0x450eb4(0x265),![])['option'](a0_0x450eb4(0x2ef),a0_0x450eb4(0x251))[a0_0x450eb4(0x234)](a0_0x450eb4(0x296),a0_0x450eb4(0x2db))['option'](a0_0x450eb4(0x23e),a0_0x450eb4(0x2ba))['option'](a0_0x450eb4(0x254),a0_0x450eb4(0x258))['option']('--parent-segment\x20<name>',a0_0x450eb4(0x256))['option'](a0_0x450eb4(0x2d2),a0_0x450eb4(0x253)),program[a0_0x450eb4(0x200)]({'formatHelp':(_0x25fe87,_0x3c1361)=>{const _0x414a44=a0_0x450eb4,_0x52d32d=_0x3c1361[_0x414a44(0x2c1)](_0x25fe87,_0x3c1361),_0x3400ce=0x2,_0x3dfa43=0x2;function _0x5abc00(_0x593f20){const _0x2a429a=_0x414a44;return!!_0x593f20[_0x2a429a(0x260)];}function _0x468e79(_0x1c0c58,_0x52d6ca){const _0x5e6496=_0x414a44;if(_0x52d6ca){const _0x5dd28d=''+_0x1c0c58[_0x5e6496(0x20b)](_0x52d32d+_0x3dfa43)+_0x52d6ca;return _0x5dd28d;}return _0x1c0c58;}function _0x11046c(_0x186c22){const _0xc8f7d9=_0x414a44;return _0x186c22[_0xc8f7d9(0x1fd)]('\x0a')[_0xc8f7d9(0x263)](/^/gm,'\x20'[_0xc8f7d9(0x2ab)](_0x3400ce));}const _0x515c6d=[];_0x515c6d[_0x414a44(0x28f)]('Usage:\x20'+_0x3c1361[_0x414a44(0x255)](_0x25fe87));const _0x5e98c0=_0x3c1361[_0x414a44(0x27c)](_0x25fe87);_0x5e98c0&&(_0x515c6d[_0x414a44(0x28f)](''),_0x515c6d[_0x414a44(0x28f)](_0x5e98c0));const _0x1dbc38=_0x25fe87[_0x414a44(0x27f)][_0x414a44(0x2ae)](_0x97609d=>!_0x5abc00(_0x97609d));if(_0x1dbc38[_0x414a44(0x1d3)]>0x0){const _0x5e5c81=_0x1dbc38[_0x414a44(0x2b6)](_0x3856fd=>{const _0x5ef8db=_0x414a44,_0x52c225=_0x3c1361[_0x5ef8db(0x27a)](_0x3856fd),_0x146423=_0x3c1361[_0x5ef8db(0x275)](_0x3856fd);return _0x468e79(_0x52c225,_0x146423);});_0x515c6d[_0x414a44(0x28f)](''),_0x515c6d[_0x414a44(0x28f)](_0x414a44(0x1ed)),_0x515c6d[_0x414a44(0x28f)](_0x11046c(_0x5e5c81));}const _0x27b7d6=_0x25fe87[_0x414a44(0x25e)][_0x414a44(0x2ae)](_0x274abe=>!_0x5abc00(_0x274abe));if(_0x27b7d6[_0x414a44(0x1d3)]>0x0){const _0x41f766=_0x27b7d6[_0x414a44(0x2b6)](_0x29af78=>{const _0x25d0f1=_0x3c1361['optionTerm'](_0x29af78),_0x5c3567=_0x3c1361['optionDescription'](_0x29af78);return _0x468e79(_0x25d0f1,_0x5c3567);});_0x515c6d['push'](''),_0x515c6d[_0x414a44(0x28f)](_0x414a44(0x244)),_0x515c6d[_0x414a44(0x28f)](_0x11046c(_0x41f766));}const _0x63a4b5=(_0x25fe87[_0x414a44(0x2ca)]||[])[_0x414a44(0x2ae)](_0x1b594f=>!_0x5abc00(_0x1b594f));if(_0x63a4b5['length']>0x0){const _0x31ee02=_0x63a4b5[_0x414a44(0x2b6)](_0x15c8ac=>{const _0x13f303=_0x414a44,_0x3f2211=_0x3c1361[_0x13f303(0x2bd)](_0x15c8ac),_0x5cdeaf=_0x3c1361[_0x13f303(0x273)](_0x15c8ac);return _0x468e79(_0x3f2211,_0x5cdeaf);});_0x515c6d[_0x414a44(0x28f)](''),_0x515c6d['push'](_0x414a44(0x22d)),_0x515c6d[_0x414a44(0x28f)](_0x11046c(_0x31ee02));}return _0x515c6d['join']('\x0a');},'subcommandTerm':_0x3e5d2c=>{const _0x4a6192=a0_0x450eb4,_0x2b1d44=(_0x3e5d2c[_0x4a6192(0x2ca)]||[])[_0x4a6192(0x2b6)](_0x33e1c2=>_0x33e1c2[_0x4a6192(0x25d)]?'<'+_0x33e1c2[_0x4a6192(0x26e)]()+'>':'['+_0x33e1c2[_0x4a6192(0x26e)]()+']')['join']('\x20'),_0x444054=_0x3e5d2c[_0x4a6192(0x1e5)](),_0x25d52a=_0x444054[_0x4a6192(0x1d3)]>0x0?_0x3e5d2c['name']()+',\x20'+_0x444054[_0x4a6192(0x1fd)](',\x20'):_0x3e5d2c[_0x4a6192(0x26e)]();return _0x2b1d44?_0x25d52a+'\x20'+_0x2b1d44:_0x25d52a;}}),program[a0_0x450eb4(0x1f4)](a0_0x450eb4(0x2d6),_0xa623bc=>{const _0x177ec8=a0_0x450eb4,_0x4c3225=_0xa623bc[_0x177ec8(0x233)]();if(!_0x4c3225['format']){if(_0x4c3225[_0x177ec8(0x21d)])_0x4c3225['format']='json';else{if(_0x4c3225['jsonl'])_0x4c3225[_0x177ec8(0x257)]=_0x177ec8(0x237);else _0x4c3225['tsv']&&(_0x4c3225[_0x177ec8(0x257)]=_0x177ec8(0x1d8));}}_0x4c3225['in']&&!_0x4c3225['database']&&(_0x4c3225['database']=_0x4c3225['in']);});function createTDXInstance(_0x506e81){const _0x3b85c6=a0_0x450eb4,_0x2da4f7=new GlobalContext(_0x506e81);_0x2da4f7[_0x3b85c6(0x209)](_0x506e81);const _0x53a2c3={'site':_0x2da4f7[_0x3b85c6(0x232)],'apiKey':_0x2da4f7[_0x3b85c6(0x1fa)],'verbose':_0x2da4f7[_0x3b85c6(0x1f1)]};return new TDX(_0x53a2c3);}program['command']('databases\x20[pattern]')[a0_0x450eb4(0x2d8)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](async(_0x1ae07a,_0xcad953)=>{const _0x43d9e7=a0_0x450eb4,_0x3f9bcb=new DatabasesCommand(),_0x3932ae=program['opts'](),_0x4432ee=createTDXInstance(_0x3932ae),_0x5e22c8=await _0x3f9bcb[_0x43d9e7(0x1ec)]({'options':{..._0x3932ae,..._0xcad953},'args':_0x1ae07a?[_0x1ae07a]:[],'tdx':_0x4432ee});process[_0x43d9e7(0x29d)](_0x5e22c8);}),program[a0_0x450eb4(0x228)](a0_0x450eb4(0x231))[a0_0x450eb4(0x2d8)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a0_0x450eb4(0x234)]('--agent\x20<ref>',a0_0x450eb4(0x1d2))[a0_0x450eb4(0x234)](a0_0x450eb4(0x238),a0_0x450eb4(0x283))['option'](a0_0x450eb4(0x29c),a0_0x450eb4(0x21e))['option'](a0_0x450eb4(0x291),a0_0x450eb4(0x2a0))['action'](async(_0x56a1db,_0x29dd9f)=>{const _0x4ed0f8=a0_0x450eb4,_0x4793c2=new ChatCommand(),_0x16e52e=program[_0x4ed0f8(0x233)](),_0x2f27e0=createTDXInstance(_0x16e52e),_0x1e96a5=await _0x4793c2[_0x4ed0f8(0x1ec)]({'options':{..._0x16e52e,..._0x29dd9f},'args':_0x56a1db,'tdx':_0x2f27e0});process[_0x4ed0f8(0x29d)](_0x1e96a5);});const apiCmd=program[a0_0x450eb4(0x228)](a0_0x450eb4(0x1ef))[a0_0x450eb4(0x1f3)](a0_0x450eb4(0x2c9))['addHelpText'](a0_0x450eb4(0x214),a0_0x450eb4(0x2a4))[a0_0x450eb4(0x234)]('-X,\x20--method\x20<method>',a0_0x450eb4(0x2a5),a0_0x450eb4(0x276))[a0_0x450eb4(0x234)]('--data\x20<data>','Request\x20body\x20as\x20JSON\x20string')[a0_0x450eb4(0x234)](a0_0x450eb4(0x1f2),a0_0x450eb4(0x271))[a0_0x450eb4(0x234)](a0_0x450eb4(0x1d5),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x3d975b,_0x873533)=>{return _0x873533?[..._0x873533,_0x3d975b]:[_0x3d975b];})[a0_0x450eb4(0x234)](a0_0x450eb4(0x24e),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a0_0x450eb4(0x272)](async(_0x4ce983,_0x119ec0)=>{const _0x38f440=a0_0x450eb4;if(!_0x4ce983){apiCmd['help']();return;}const _0x326867=new ApiCommand(),_0x13037c=program[_0x38f440(0x233)](),_0x57d5b1=createTDXInstance(_0x13037c),_0x389410=await _0x326867['run']({'options':{..._0x13037c,..._0x119ec0},'args':[_0x4ce983],'tdx':_0x57d5b1});process[_0x38f440(0x29d)](_0x389410);});program[a0_0x450eb4(0x228)](a0_0x450eb4(0x270))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x1cc))[a0_0x450eb4(0x234)](a0_0x450eb4(0x239),a0_0x450eb4(0x2ac))[a0_0x450eb4(0x234)](a0_0x450eb4(0x280),a0_0x450eb4(0x258))[a0_0x450eb4(0x272)](async(_0x5c3ebe,_0x260f90)=>{const _0x4eda16=a0_0x450eb4,_0x3fc5c6=new TablesCommand(),_0x4532f0=program[_0x4eda16(0x233)](),_0x3a8bf5=createTDXInstance(_0x4532f0);_0x260f90['in']&&(_0x260f90[_0x4eda16(0x227)]=_0x260f90['in']);const _0x1d4e0f=await _0x3fc5c6[_0x4eda16(0x1ec)]({'options':{..._0x4532f0,..._0x260f90},'args':_0x5c3ebe?[_0x5c3ebe]:[],'tdx':_0x3a8bf5});process[_0x4eda16(0x29d)](_0x1d4e0f);}),program[a0_0x450eb4(0x228)](a0_0x450eb4(0x288))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x1dd))[a0_0x450eb4(0x234)](a0_0x450eb4(0x239),a0_0x450eb4(0x268))[a0_0x450eb4(0x234)](a0_0x450eb4(0x280),a0_0x450eb4(0x258))['action'](async(_0x13cc3e,_0x24cc82)=>{const _0x1dc68f=a0_0x450eb4,_0xd80d76=new ShowCommand(),_0x3179bc=program[_0x1dc68f(0x233)](),_0x3db405=createTDXInstance(_0x3179bc);_0x24cc82['in']&&(_0x24cc82[_0x1dc68f(0x227)]=_0x24cc82['in']);const _0x58a1bd=await _0xd80d76[_0x1dc68f(0x1ec)]({'options':{..._0x3179bc,..._0x24cc82},'args':_0x13cc3e?[_0x13cc3e]:[],'tdx':_0x3db405});process['exit'](_0x58a1bd);}),program['command']('describe\x20[table]')[a0_0x450eb4(0x292)]('desc')['description']('Describe\x20table\x20schema')[a0_0x450eb4(0x234)](a0_0x450eb4(0x239),a0_0x450eb4(0x268))[a0_0x450eb4(0x234)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x450eb4(0x272)](async(_0x2ae77d,_0x4e6be8)=>{const _0x429db2=a0_0x450eb4,_0x24392a=new DescribeCommand(),_0x338df1=program[_0x429db2(0x233)](),_0x3d1605=createTDXInstance(_0x338df1);_0x4e6be8['in']&&(_0x4e6be8[_0x429db2(0x227)]=_0x4e6be8['in']);const _0x1ecb2a=await _0x24392a[_0x429db2(0x1ec)]({'options':{..._0x338df1,..._0x4e6be8},'args':_0x2ae77d?[_0x2ae77d]:[],'tdx':_0x3d1605});process[_0x429db2(0x29d)](_0x1ecb2a);}),program[a0_0x450eb4(0x228)]('query\x20[sql]')['description'](a0_0x450eb4(0x290))[a0_0x450eb4(0x234)](a0_0x450eb4(0x239),'Database\x20to\x20query\x20(default:\x20information_schema)')[a0_0x450eb4(0x234)](a0_0x450eb4(0x280),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x450eb4(0x234)]('--catalog\x20<catalog>',a0_0x450eb4(0x2e8))[a0_0x450eb4(0x234)](a0_0x450eb4(0x1f2),a0_0x450eb4(0x22c))['option'](a0_0x450eb4(0x2a9),a0_0x450eb4(0x2c8),'40')[a0_0x450eb4(0x272)](async(_0xd656c5,_0x95fcaf)=>{const _0x25c340=a0_0x450eb4,_0x4d41b9=new QueryCommand(),_0x54e761=program[_0x25c340(0x233)](),_0x56268a=createTDXInstance(_0x54e761);_0x95fcaf['in']&&(_0x95fcaf[_0x25c340(0x227)]=_0x95fcaf['in']);const _0x2b7188=await _0x4d41b9[_0x25c340(0x1ec)]({'options':{..._0x54e761,..._0x95fcaf},'args':_0xd656c5?[_0xd656c5]:[],'tdx':_0x56268a});process[_0x25c340(0x29d)](_0x2b7188);}),program[a0_0x450eb4(0x228)]('segments\x20[parent_name]')[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x248))['action'](async(_0x4d27ee,_0x3ebae3)=>{const _0x3228f5=a0_0x450eb4,_0x3b5dce=new SegmentsCommand(),_0x28e42b=program['opts'](),_0x13f20a=createTDXInstance(_0x28e42b),_0x54b368=await _0x3b5dce[_0x3228f5(0x1ec)]({'options':{..._0x28e42b,..._0x3ebae3},'args':_0x4d27ee?[_0x4d27ee]:[],'tdx':_0x13f20a});process[_0x3228f5(0x29d)](_0x54b368);});const segmentCmd=program[a0_0x450eb4(0x228)]('segment')[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x1c7));segmentCmd[a0_0x450eb4(0x228)]('describe\x20<segment_name>')[a0_0x450eb4(0x292)](a0_0x450eb4(0x1f6))['description'](a0_0x450eb4(0x26d))[a0_0x450eb4(0x272)](async(_0x5d1f73,_0x2076de)=>{const _0x54f3cc=a0_0x450eb4,_0x156bde=new SegmentDescribeCommand(),_0x384939=program[_0x54f3cc(0x233)](),_0x2b24db=createTDXInstance(_0x384939),_0x30c133=await _0x156bde[_0x54f3cc(0x1ec)]({'options':{..._0x384939,..._0x2076de},'args':[_0x5d1f73],'tdx':_0x2b24db});process[_0x54f3cc(0x29d)](_0x30c133);}),segmentCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x29b))['description'](a0_0x450eb4(0x1c9))['action'](async(_0x1531e5,_0x3f57ac)=>{const _0x2ee3fb=a0_0x450eb4,_0xfb8007=new SegmentShowCommand(),_0x1c7eb8=program['opts'](),_0xfe6632=createTDXInstance(_0x1c7eb8),_0x270fcb=await _0xfb8007[_0x2ee3fb(0x1ec)]({'options':{..._0x1c7eb8,..._0x3f57ac},'args':[_0x1531e5],'tdx':_0xfe6632});process[_0x2ee3fb(0x29d)](_0x270fcb);}),segmentCmd[a0_0x450eb4(0x228)]('folders\x20<parent_name>')[a0_0x450eb4(0x2d8)]('List\x20segment\x20folders\x20under\x20a\x20parent\x20segment')[a0_0x450eb4(0x272)](async(_0x7ab8c0,_0x5eb322)=>{const _0xfb9ee3=a0_0x450eb4,_0x49359a=new SegmentFolderListCommand(),_0xceec97=program[_0xfb9ee3(0x233)](),_0x375418=createTDXInstance(_0xceec97),_0x48e9a7=await _0x49359a[_0xfb9ee3(0x1ec)]({'options':{..._0xceec97,..._0x5eb322},'args':[_0x7ab8c0],'tdx':_0x375418});process['exit'](_0x48e9a7);});const folderCmd=segmentCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x26f))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x243));folderCmd['command'](a0_0x450eb4(0x20a))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x1cf))[a0_0x450eb4(0x272)](async(_0xfcef90,_0x43d3de)=>{const _0x41c173=a0_0x450eb4,_0x46b3c1=new SegmentFolderShowCommand(),_0x19ab42=program[_0x41c173(0x233)](),_0x2bb7a4=createTDXInstance(_0x19ab42),_0x3738e8=await _0x46b3c1[_0x41c173(0x1ec)]({'options':{..._0x19ab42,..._0x43d3de},'args':[_0xfcef90],'tdx':_0x2bb7a4});process[_0x41c173(0x29d)](_0x3738e8);}),segmentCmd['command'](a0_0x450eb4(0x1e9))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x20f))['action'](async(_0x1c9d90,_0x53362a)=>{const _0x418ccf=a0_0x450eb4,_0x959055=new SegmentSQLCommand(),_0x2ce8d5=program[_0x418ccf(0x233)](),_0x51aba1=createTDXInstance(_0x2ce8d5),_0x4a0ef4=await _0x959055[_0x418ccf(0x1ec)]({'options':{..._0x2ce8d5,..._0x53362a},'args':[_0x1c9d90],'tdx':_0x51aba1});process['exit'](_0x4a0ef4);}),segmentCmd['command'](a0_0x450eb4(0x277))['description'](a0_0x450eb4(0x28a))[a0_0x450eb4(0x272)](async(_0x1b7ccf,_0x4a8c29)=>{const _0x240145=a0_0x450eb4,_0x51290b=new SegmentFieldsCommand(),_0x8066e3=program[_0x240145(0x233)](),_0x422acf=createTDXInstance(_0x8066e3),_0x1e8ace=await _0x51290b[_0x240145(0x1ec)]({'options':{..._0x8066e3,..._0x4a8c29},'args':[_0x1b7ccf],'tdx':_0x422acf});process[_0x240145(0x29d)](_0x1e8ace);}),segmentCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x1eb))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x2d1))[a0_0x450eb4(0x234)](a0_0x450eb4(0x289),a0_0x450eb4(0x2df))[a0_0x450eb4(0x234)](a0_0x450eb4(0x215),a0_0x450eb4(0x1ff))[a0_0x450eb4(0x234)]('--rule-file\x20<file>',a0_0x450eb4(0x241))[a0_0x450eb4(0x234)](a0_0x450eb4(0x1f9),a0_0x450eb4(0x2e4))[a0_0x450eb4(0x234)](a0_0x450eb4(0x211),a0_0x450eb4(0x220))[a0_0x450eb4(0x234)](a0_0x450eb4(0x1e8),a0_0x450eb4(0x1cb))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2f6),a0_0x450eb4(0x2a1))[a0_0x450eb4(0x272)](async(_0xb22d25,_0x448cbc)=>{const _0x1c56fd=a0_0x450eb4,_0x411646=new SegmentCreateCommand(),_0x49e7e4=program['opts'](),_0x27a755=createTDXInstance(_0x49e7e4),_0x291cba=await _0x411646['run']({'options':{..._0x49e7e4,..._0x448cbc},'args':[_0xb22d25],'tdx':_0x27a755});process[_0x1c56fd(0x29d)](_0x291cba);}),segmentCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x299))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x2eb))['option'](a0_0x450eb4(0x2e6),'New\x20segment\x20name')[a0_0x450eb4(0x234)](a0_0x450eb4(0x289),a0_0x450eb4(0x1cd))[a0_0x450eb4(0x234)](a0_0x450eb4(0x215),a0_0x450eb4(0x22a))['option']('--rule-file\x20<file>',a0_0x450eb4(0x1e4))['option'](a0_0x450eb4(0x1f9),a0_0x450eb4(0x29e))[a0_0x450eb4(0x234)]('--kind\x20<type>',a0_0x450eb4(0x220))['action'](async(_0xe38cab,_0x10ee18)=>{const _0x4a8e86=a0_0x450eb4,_0x41dc1f=new SegmentUpdateCommand(),_0x7dd219=program[_0x4a8e86(0x233)](),_0x8f8470=createTDXInstance(_0x7dd219),_0x379e00=await _0x41dc1f['run']({'options':{..._0x7dd219,..._0x10ee18},'args':[_0xe38cab],'tdx':_0x8f8470});process[_0x4a8e86(0x29d)](_0x379e00);});const parentCmd=segmentCmd['command'](a0_0x450eb4(0x25f))['description'](a0_0x450eb4(0x29a));function a0_0x281d(_0x194c33,_0x261584){const _0x570d14=a0_0x570d();return a0_0x281d=function(_0x281de9,_0x4e6726){_0x281de9=_0x281de9-0x1c1;let _0x42592a=_0x570d14[_0x281de9];return _0x42592a;},a0_0x281d(_0x194c33,_0x261584);}parentCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x1d0))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x207))['requiredOption'](a0_0x450eb4(0x1e2),a0_0x450eb4(0x2e7))[a0_0x450eb4(0x2ad)](a0_0x450eb4(0x2ed),a0_0x450eb4(0x28c))[a0_0x450eb4(0x234)](a0_0x450eb4(0x289),a0_0x450eb4(0x28b))[a0_0x450eb4(0x234)]('--schedule-type\x20<type>',a0_0x450eb4(0x2ea))[a0_0x450eb4(0x234)](a0_0x450eb4(0x1da),a0_0x450eb4(0x225))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2e9),a0_0x450eb4(0x2cf))[a0_0x450eb4(0x234)](a0_0x450eb4(0x1fb),a0_0x450eb4(0x20c))[a0_0x450eb4(0x234)]('--attributes-file\x20<file>',a0_0x450eb4(0x2aa))['option'](a0_0x450eb4(0x1c8),'Behaviors\x20as\x20JSON\x20string')[a0_0x450eb4(0x234)]('--behaviors-file\x20<file>',a0_0x450eb4(0x2af))['option'](a0_0x450eb4(0x250),a0_0x450eb4(0x2f1))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2d7),a0_0x450eb4(0x2b7))[a0_0x450eb4(0x272)](async(_0x1f37d5,_0x12512b)=>{const _0x3ed4ff=a0_0x450eb4,_0x3d8963=new ParentSegmentCreateCommand(),_0x91e3b0=program['opts'](),_0x461204=createTDXInstance(_0x91e3b0),_0x533e37=await _0x3d8963[_0x3ed4ff(0x1ec)]({'options':{..._0x91e3b0,..._0x12512b},'args':[_0x1f37d5],'tdx':_0x461204});process['exit'](_0x533e37);}),parentCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x28e))[a0_0x450eb4(0x2d8)]('Update\x20parent\x20segment\x20(audience)')[a0_0x450eb4(0x234)](a0_0x450eb4(0x289),'Updated\x20description')[a0_0x450eb4(0x234)](a0_0x450eb4(0x298),a0_0x450eb4(0x28d))[a0_0x450eb4(0x234)](a0_0x450eb4(0x1da),a0_0x450eb4(0x2b4))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2e9),a0_0x450eb4(0x281))['option']('--add-attributes\x20<json>','Add\x20attributes\x20as\x20JSON\x20string')[a0_0x450eb4(0x234)](a0_0x450eb4(0x267),a0_0x450eb4(0x2c0))[a0_0x450eb4(0x234)]('--add-behaviors\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string')[a0_0x450eb4(0x234)]('--add-behaviors-file\x20<file>',a0_0x450eb4(0x2a7))['action'](async(_0x2164ab,_0x5379d4)=>{const _0x433ba0=a0_0x450eb4,_0x5aec34=new ParentSegmentUpdateCommand(),_0x5b3ee3=program[_0x433ba0(0x233)](),_0x2e9b63=createTDXInstance(_0x5b3ee3),_0x317f6a=await _0x5aec34[_0x433ba0(0x1ec)]({'options':{..._0x5b3ee3,..._0x5379d4},'args':[_0x2164ab],'tdx':_0x2e9b63});process[_0x433ba0(0x29d)](_0x317f6a);}),folderCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x1de))['description'](a0_0x450eb4(0x29f))[a0_0x450eb4(0x234)](a0_0x450eb4(0x289),a0_0x450eb4(0x1d9))['option'](a0_0x450eb4(0x1fc),a0_0x450eb4(0x1d1))[a0_0x450eb4(0x272)](async(_0x5da3c5,_0xd501b6,_0xd92b7c)=>{const _0x4f16e0=a0_0x450eb4,_0x431970=new SegmentFolderCreateCommand(),_0x9d8465=program[_0x4f16e0(0x233)](),_0x1f8f0d=createTDXInstance(_0x9d8465),_0x8b632b=await _0x431970[_0x4f16e0(0x1ec)]({'options':{..._0x9d8465,..._0xd92b7c},'args':[_0x5da3c5,_0xd501b6],'tdx':_0x1f8f0d});process['exit'](_0x8b632b);}),program[a0_0x450eb4(0x228)](a0_0x450eb4(0x1ca))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x2b5))[a0_0x450eb4(0x272)](async(_0x1925d9,_0x5a8871)=>{const _0x33be75=a0_0x450eb4,_0x487219=new ActivationsCommand(),_0x302558=program[_0x33be75(0x233)](),_0x3faab5=createTDXInstance(_0x302558),_0x1b6670=await _0x487219[_0x33be75(0x1ec)]({'options':{..._0x302558,..._0x5a8871},'args':[_0x1925d9],'tdx':_0x3faab5});process[_0x33be75(0x29d)](_0x1b6670);});const workflowCmd=program[a0_0x450eb4(0x228)](a0_0x450eb4(0x206))['alias']('wf')[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x247));workflowCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x1f5))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x295))[a0_0x450eb4(0x272)](async(_0x221851,_0x39bec3)=>{const _0x2a5b7c=a0_0x450eb4,_0x5812f6=new WorkflowProjectsCommand(),_0x333874=program[_0x2a5b7c(0x233)](),_0x5d93bf=createTDXInstance(_0x333874),_0x1e8543=await _0x5812f6[_0x2a5b7c(0x1ec)]({'options':{..._0x333874,..._0x39bec3},'args':_0x221851?[_0x221851]:[],'tdx':_0x5d93bf});process['exit'](_0x1e8543);}),workflowCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x230))[a0_0x450eb4(0x292)]('ls')['description']('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a0_0x450eb4(0x272)](async(_0x35c0ca,_0x235a45)=>{const _0x4943bd=a0_0x450eb4,_0x431206=new WorkflowWorkflowsCommand(),_0x450c1b=program[_0x4943bd(0x233)](),_0x4d09f5=createTDXInstance(_0x450c1b),_0x25786e=await _0x431206['run']({'options':{..._0x450c1b,..._0x235a45},'args':_0x35c0ca?[_0x35c0ca]:[],'tdx':_0x4d09f5});process['exit'](_0x25786e);}),workflowCmd['command'](a0_0x450eb4(0x23d))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x279))[a0_0x450eb4(0x234)]('--status\x20<status>',a0_0x450eb4(0x236))['option'](a0_0x450eb4(0x2c7),a0_0x450eb4(0x21a))['option'](a0_0x450eb4(0x22f),a0_0x450eb4(0x249))[a0_0x450eb4(0x272)](async(_0x349249,_0x1fffa0)=>{const _0x5ee99a=a0_0x450eb4,_0x2fdbb2=new WorkflowSessionsCommand(),_0x10162a=program[_0x5ee99a(0x233)](),_0x286887=createTDXInstance(_0x10162a),_0x164ba0=await _0x2fdbb2['run']({'options':{..._0x10162a,..._0x1fffa0},'args':_0x349249?[_0x349249]:[],'tdx':_0x286887});process[_0x5ee99a(0x29d)](_0x164ba0);}),workflowCmd[a0_0x450eb4(0x228)]('attempts\x20[project]')[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x294))[a0_0x450eb4(0x234)]('--include-retried','Include\x20retried\x20attempts')[a0_0x450eb4(0x272)](async(_0x37bb8c,_0x4ba02b)=>{const _0x146d0d=a0_0x450eb4,_0xa1c03f=new WorkflowAttemptsCommand(),_0x4536ef=program[_0x146d0d(0x233)](),_0x38da49=createTDXInstance(_0x4536ef),_0x24f0a0=await _0xa1c03f[_0x146d0d(0x1ec)]({'options':{..._0x4536ef,..._0x4ba02b},'args':_0x37bb8c?[_0x37bb8c]:[],'tdx':_0x38da49});process[_0x146d0d(0x29d)](_0x24f0a0);}),workflowCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x2c4))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x269))[a0_0x450eb4(0x272)](async(_0x39ec86,_0x192c7e)=>{const _0x35a943=a0_0x450eb4,_0x42e825=new WorkflowAttemptCommand(),_0x1a2af3=program[_0x35a943(0x233)](),_0x448658=createTDXInstance(_0x1a2af3),_0x48c2e4=await _0x42e825['run']({'options':{..._0x1a2af3,..._0x192c7e},'args':[_0x39ec86],'tdx':_0x448658});process['exit'](_0x48c2e4);}),workflowCmd['command'](a0_0x450eb4(0x1c6))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x246))[a0_0x450eb4(0x234)]('--include-subtasks',a0_0x450eb4(0x1fe))['action'](async(_0xc3be72,_0x2d552f)=>{const _0x48836c=a0_0x450eb4,_0x2f9499=new WorkflowTasksCommand(),_0x576915=program[_0x48836c(0x233)](),_0x41fa42=createTDXInstance(_0x576915),_0x4f1dc3=await _0x2f9499[_0x48836c(0x1ec)]({'options':{..._0x576915,..._0x2d552f},'args':[_0xc3be72],'tdx':_0x41fa42});process[_0x48836c(0x29d)](_0x4f1dc3);}),workflowCmd[a0_0x450eb4(0x228)]('logs\x20<attempt-id>\x20<task-name>')[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x2e0))['option']('--offset\x20<number>','Starting\x20offset\x20for\x20logs\x20(default:\x200)',_0x3aec6e=>parseInt(_0x3aec6e,0xa),0x0)['action'](async(_0x1d286c,_0x110c55,_0x330592)=>{const _0x4b43c5=a0_0x450eb4,_0x6960ac=new WorkflowLogsCommand(),_0x5ef795=program[_0x4b43c5(0x233)](),_0x46b8d1=createTDXInstance(_0x5ef795),_0x16a7f6=await _0x6960ac[_0x4b43c5(0x1ec)]({'options':{..._0x5ef795,..._0x330592},'args':[_0x1d286c,_0x110c55],'tdx':_0x46b8d1});process[_0x4b43c5(0x29d)](_0x16a7f6);}),workflowCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x297))['description'](a0_0x450eb4(0x20d))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2ce),a0_0x450eb4(0x2f3))['action'](async(_0xf93f01,_0x4fc4c8)=>{const _0x51ff0b=a0_0x450eb4,_0x50f2a4=new WorkflowKillCommand(),_0x2130b2=program['opts'](),_0x4afc19=createTDXInstance(_0x2130b2),_0x4db83=await _0x50f2a4[_0x51ff0b(0x1ec)]({'options':{..._0x2130b2,..._0x4fc4c8},'args':[_0xf93f01],'tdx':_0x4afc19});process[_0x51ff0b(0x29d)](_0x4db83);}),workflowCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x2c3))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x213))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2bb),a0_0x450eb4(0x24c))['option'](a0_0x450eb4(0x293),'Resume\x20from\x20specific\x20task\x20(attempt\x20retry\x20only)')[a0_0x450eb4(0x234)]('--params\x20<json>',a0_0x450eb4(0x2ec))[a0_0x450eb4(0x234)](a0_0x450eb4(0x261),a0_0x450eb4(0x242))['action'](async(_0x2722ef,_0x40fe18)=>{const _0x34dd30=a0_0x450eb4,_0x50fe1f=new WorkflowRetryCommand(),_0x3d0866=program[_0x34dd30(0x233)](),_0x1f1639=createTDXInstance(_0x3d0866),_0x49e8d0=await _0x50fe1f['run']({'options':{..._0x3d0866,..._0x40fe18},'args':[_0x2722ef],'tdx':_0x1f1639});process['exit'](_0x49e8d0);}),workflowCmd[a0_0x450eb4(0x228)]('download\x20<project-name>\x20[output-dir]')['description'](a0_0x450eb4(0x217))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2a2),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')['action'](async(_0xdf197d,_0x50a6c8,_0x1f4610)=>{const _0x59e115=a0_0x450eb4,_0x42889f=new WorkflowDownloadCommand(),_0x12bedb=program[_0x59e115(0x233)](),_0x42c0f3=createTDXInstance(_0x12bedb),_0xbab44f=await _0x42889f[_0x59e115(0x1ec)]({'options':{..._0x12bedb,..._0x1f4610},'args':[_0xdf197d,_0x50a6c8||'.'],'tdx':_0x42c0f3});process['exit'](_0xbab44f);}),workflowCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x27b))[a0_0x450eb4(0x2d8)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')['option'](a0_0x450eb4(0x2a3),a0_0x450eb4(0x2dc))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2a2),a0_0x450eb4(0x22b))['option'](a0_0x450eb4(0x201),a0_0x450eb4(0x20e))['action'](async(_0x381f55,_0x2bb22a)=>{const _0x17dfcd=a0_0x450eb4,_0x5d8649=new WorkflowPushCommand(),_0xefb802=program[_0x17dfcd(0x233)](),_0x5b7a32=createTDXInstance(_0xefb802),_0x222fd2=await _0x5d8649[_0x17dfcd(0x1ec)]({'options':{..._0xefb802,..._0x2bb22a},'args':_0x381f55?[_0x381f55]:[],'tdx':_0x5b7a32});process['exit'](_0x222fd2);}),workflowCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x1df))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x235))[a0_0x450eb4(0x272)](async(_0x2760d0,_0x105d3c)=>{const _0x14bba3=a0_0x450eb4,_0xe96926=new WorkflowDeleteCommand(),_0x213939=program[_0x14bba3(0x233)](),_0x4c6f3a=createTDXInstance(_0x213939),_0x5a3732=await _0xe96926[_0x14bba3(0x1ec)]({'options':{..._0x213939,..._0x105d3c},'args':[_0x2760d0],'tdx':_0x4c6f3a});process[_0x14bba3(0x29d)](_0x5a3732);}),program[a0_0x450eb4(0x228)](a0_0x450eb4(0x218))[a0_0x450eb4(0x2d8)]('List\x20jobs')[a0_0x450eb4(0x234)](a0_0x450eb4(0x1e0),a0_0x450eb4(0x2b0))['action'](async _0x1209d1=>{const _0x1c6336=a0_0x450eb4,_0x2947c3=new JobListCommand(),_0x374741=program[_0x1c6336(0x233)](),_0x5749da=createTDXInstance(_0x374741),_0xe4ed77=await _0x2947c3[_0x1c6336(0x1ec)]({'options':{..._0x374741,..._0x1209d1},'args':[],'tdx':_0x5749da});process[_0x1c6336(0x29d)](_0xe4ed77);});const jobCmd=program[a0_0x450eb4(0x228)](a0_0x450eb4(0x25b))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x212));jobCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x2b2))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x2ee))[a0_0x450eb4(0x272)](async(_0x72b12a,_0xa141a0)=>{const _0x50145b=a0_0x450eb4,_0xf7d2be=new JobShowCommand(),_0x25055a=program[_0x50145b(0x233)](),_0x58138f=createTDXInstance(_0x25055a),_0x2f67db=await _0xf7d2be['run']({'options':{..._0x25055a,..._0xa141a0},'args':[_0x72b12a],'tdx':_0x58138f});process['exit'](_0x2f67db);}),jobCmd['command']('kill\x20<job-id>')[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x24b))['action'](async(_0x1c7936,_0x50f63e)=>{const _0x5ddb6e=a0_0x450eb4,_0x4cf3c7=new JobKillCommand(),_0x5ceeb2=program['opts'](),_0x19e8ed=createTDXInstance(_0x5ceeb2),_0x3d78b1=await _0x4cf3c7[_0x5ddb6e(0x1ec)]({'options':{..._0x5ceeb2,..._0x50f63e},'args':[_0x1c7936],'tdx':_0x19e8ed});process[_0x5ddb6e(0x29d)](_0x3d78b1);}),jobCmd[a0_0x450eb4(0x228)]('submit\x20[query]')[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x2e5))[a0_0x450eb4(0x234)](a0_0x450eb4(0x221),a0_0x450eb4(0x2f4),a0_0x450eb4(0x1e7))['option']('-f,\x20--file\x20<path>','Read\x20query\x20from\x20file')[a0_0x450eb4(0x234)](a0_0x450eb4(0x266),'Database\x20name\x20(default:\x20information_schema)','information_schema')['action'](async(_0x3e6d0e,_0xe9020c)=>{const _0x357427=a0_0x450eb4,_0x3985b9=new JobSubmitCommand(),_0x2f34b9=program[_0x357427(0x233)](),_0x170a21=createTDXInstance(_0x2f34b9),_0x264801=await _0x3985b9[_0x357427(0x1ec)]({'options':{..._0x2f34b9,..._0xe9020c},'args':_0x3e6d0e?[_0x3e6d0e]:[],'tdx':_0x170a21});process[_0x357427(0x29d)](_0x264801);}),jobCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x240))['description'](a0_0x450eb4(0x203))['action'](async(_0x3ba5ac,_0x34cd85)=>{const _0x5ac809=a0_0x450eb4,_0x212b0b=new JobResultCommand(),_0x35685c=program[_0x5ac809(0x233)](),_0x5948a3=createTDXInstance(_0x35685c),_0x1024a4=await _0x212b0b[_0x5ac809(0x1ec)]({'options':{..._0x35685c,..._0x34cd85},'args':[_0x3ba5ac],'tdx':_0x5948a3});process[_0x5ac809(0x29d)](_0x1024a4);});const llmCmd=program['command'](a0_0x450eb4(0x2d9))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x24a));llmCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x2b8))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x2f2))[a0_0x450eb4(0x272)](async(_0x411c40,_0x3686ab)=>{const _0x58ad3e=a0_0x450eb4,_0x29086d=new LLMUseCommand(),_0x7d0194=program[_0x58ad3e(0x233)](),_0x35fb21=createTDXInstance(_0x7d0194),_0x43a8d4=await _0x29086d[_0x58ad3e(0x1ec)]({'options':{..._0x7d0194,..._0x3686ab},'args':[_0x411c40],'tdx':_0x35fb21});process['exit'](_0x43a8d4);}),llmCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x282))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x1ea))[a0_0x450eb4(0x272)](async _0x2810b6=>{const _0x4c0b00=a0_0x450eb4,_0x5807dc=new LLMModelsCommand(),_0x144419=program[_0x4c0b00(0x233)](),_0x3c68ca=createTDXInstance(_0x144419),_0x599415=await _0x5807dc[_0x4c0b00(0x1ec)]({'options':{..._0x144419,..._0x2810b6},'args':[],'tdx':_0x3c68ca});process[_0x4c0b00(0x29d)](_0x599415);}),llmCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x1f5))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x252))[a0_0x450eb4(0x272)](async(_0x23516a,_0x160493)=>{const _0x4c77c4=a0_0x450eb4,_0x838ace=new LLMProjectsCommand(),_0x5e566a=program[_0x4c77c4(0x233)](),_0x815a82=createTDXInstance(_0x5e566a),_0x4b468c=await _0x838ace[_0x4c77c4(0x1ec)]({'options':{..._0x5e566a,..._0x160493},'args':_0x23516a?[_0x23516a]:[],'tdx':_0x815a82});process[_0x4c77c4(0x29d)](_0x4b468c);});const projectCmd=llmCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x1e3))['description']('LLM\x20project\x20management');projectCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x1d0))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x2b1))['option'](a0_0x450eb4(0x289),a0_0x450eb4(0x202))[a0_0x450eb4(0x272)](async(_0x1fc37f,_0x204f95)=>{const _0x5774a0=a0_0x450eb4,_0x396cff=new LLMProjectCreateCommand(),_0x4f46bf=program['opts'](),_0x3825fe=createTDXInstance(_0x4f46bf),_0x1fe4b1=await _0x396cff['run']({'options':{..._0x4f46bf,..._0x204f95},'args':[_0x1fc37f],'tdx':_0x3825fe});process[_0x5774a0(0x29d)](_0x1fe4b1);}),projectCmd['command'](a0_0x450eb4(0x286))[a0_0x450eb4(0x2d8)]('Delete\x20an\x20LLM\x20project')[a0_0x450eb4(0x272)](async(_0x310fea,_0x121dd7)=>{const _0x58df7b=a0_0x450eb4,_0x10ceb7=new LLMProjectDeleteCommand(),_0x4ee6d4=program[_0x58df7b(0x233)](),_0x316643=createTDXInstance(_0x4ee6d4),_0x461c0c=await _0x10ceb7[_0x58df7b(0x1ec)]({'options':{..._0x4ee6d4,..._0x121dd7},'args':[_0x310fea],'tdx':_0x316643});process[_0x58df7b(0x29d)](_0x461c0c);}),llmCmd[a0_0x450eb4(0x228)]('agents\x20[pattern]')[a0_0x450eb4(0x2d8)]('List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)')[a0_0x450eb4(0x272)](async(_0x5994a8,_0x1d95f5)=>{const _0x1162d5=a0_0x450eb4,_0x54ed49=new LLMAgentsCommand(),_0x29a567=program['opts'](),_0x1f1df1=createTDXInstance(_0x29a567),_0x3744fb=await _0x54ed49[_0x1162d5(0x1ec)]({'options':{..._0x29a567,..._0x1d95f5},'args':_0x5994a8?[_0x5994a8]:[],'tdx':_0x1f1df1});process[_0x1162d5(0x29d)](_0x3744fb);});const agentCmd=llmCmd[a0_0x450eb4(0x228)]('agent')[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x21f));agentCmd[a0_0x450eb4(0x228)]('show\x20<agent-name>')[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x245))[a0_0x450eb4(0x272)](async(_0x20d1f7,_0x1c8706)=>{const _0x4af5bf=a0_0x450eb4,_0x2bb544=new LLMAgentShowCommand(),_0x1219c5=program[_0x4af5bf(0x233)](),_0x305729=createTDXInstance(_0x1219c5),_0x16bcf8=await _0x2bb544[_0x4af5bf(0x1ec)]({'options':{..._0x1219c5,..._0x1c8706},'args':[_0x20d1f7],'tdx':_0x305729});process[_0x4af5bf(0x29d)](_0x16bcf8);}),agentCmd['command']('create\x20<name>')[a0_0x450eb4(0x2d8)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a0_0x450eb4(0x234)]('--system-prompt\x20<text>',a0_0x450eb4(0x284))[a0_0x450eb4(0x234)](a0_0x450eb4(0x238),a0_0x450eb4(0x1c5),a0_0x450eb4(0x25a))[a0_0x450eb4(0x234)](a0_0x450eb4(0x1db),a0_0x450eb4(0x2de))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2d0),a0_0x450eb4(0x1e1),'4')[a0_0x450eb4(0x234)]('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a0_0x450eb4(0x21c))['action'](async(_0x50852d,_0x913293)=>{const _0x158a7=a0_0x450eb4,_0x2761d7=new LLMAgentCreateCommand(),_0x132319=program[_0x158a7(0x233)](),_0x2d9ffc=createTDXInstance(_0x132319),_0x4ca050=await _0x2761d7[_0x158a7(0x1ec)]({'options':{..._0x132319,..._0x913293},'args':[_0x50852d],'tdx':_0x2d9ffc});process[_0x158a7(0x29d)](_0x4ca050);}),agentCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x1f7))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x2d3))[a0_0x450eb4(0x234)](a0_0x450eb4(0x2d5),'Agent\x20name')['option']('--prompt\x20<text>',a0_0x450eb4(0x2f0))[a0_0x450eb4(0x234)](a0_0x450eb4(0x289),a0_0x450eb4(0x2e3))['option'](a0_0x450eb4(0x1db),a0_0x450eb4(0x2de))[a0_0x450eb4(0x272)](async(_0x1cd781,_0x1efe50)=>{const _0x30b7e4=a0_0x450eb4,_0x1766c0=new LLMAgentUpdateCommand(),_0x46fc0d=program[_0x30b7e4(0x233)](),_0x1249a6=createTDXInstance(_0x46fc0d),_0x2319ef=await _0x1766c0['run']({'options':{..._0x46fc0d,..._0x1efe50},'args':[_0x1cd781],'tdx':_0x1249a6});process[_0x30b7e4(0x29d)](_0x2319ef);}),agentCmd[a0_0x450eb4(0x228)]('delete\x20<agent-name>')[a0_0x450eb4(0x2d8)]('Delete\x20an\x20agent')[a0_0x450eb4(0x272)](async(_0x1bace6,_0x3d93e0)=>{const _0x178d5b=a0_0x450eb4,_0xc39775=new LLMAgentDeleteCommand(),_0x59812a=program[_0x178d5b(0x233)](),_0x9e1bec=createTDXInstance(_0x59812a),_0x3cf4eb=await _0xc39775[_0x178d5b(0x1ec)]({'options':{..._0x59812a,..._0x3d93e0},'args':[_0x1bace6],'tdx':_0x9e1bec});process[_0x178d5b(0x29d)](_0x3cf4eb);}),llmCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x2e2))['description'](a0_0x450eb4(0x224))[a0_0x450eb4(0x272)](async(_0x55c2b9,_0x41b625)=>{const _0xf1e18c=a0_0x450eb4,_0x384d21=new LLMHistoryCommand(),_0x25393d=program['opts'](),_0x3e5633=createTDXInstance(_0x25393d),_0x17dbc8=await _0x384d21[_0xf1e18c(0x1ec)]({'options':{..._0x25393d,..._0x41b625},'args':_0x55c2b9?[_0x55c2b9]:[],'tdx':_0x3e5633});process['exit'](_0x17dbc8);}),llmCmd[a0_0x450eb4(0x228)](a0_0x450eb4(0x2cc))[a0_0x450eb4(0x2d8)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration')[a0_0x450eb4(0x234)](a0_0x450eb4(0x1f8),a0_0x450eb4(0x1c1),a0_0x450eb4(0x204))['option'](a0_0x450eb4(0x278),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a0_0x450eb4(0x234)](a0_0x450eb4(0x210),a0_0x450eb4(0x2c2))[a0_0x450eb4(0x234)](a0_0x450eb4(0x1d7),a0_0x450eb4(0x1e6))[a0_0x450eb4(0x272)](async _0x1bb7af=>{const _0x1a4a29=a0_0x450eb4,_0x3bf98b=new LLMProxyCommand(),_0xa35d68=program['opts'](),_0x18fac6=createTDXInstance(_0xa35d68),_0x1f71d8={..._0x1bb7af,'port':_0x1bb7af[_0x1a4a29(0x226)]?parseInt(_0x1bb7af['port'],0xa):undefined},_0x703e1f=await _0x3bf98b[_0x1a4a29(0x1ec)]({'options':{..._0xa35d68,..._0x1f71d8},'args':[],'tdx':_0x18fac6});process[_0x1a4a29(0x29d)](_0x703e1f);}),program[a0_0x450eb4(0x228)](a0_0x450eb4(0x205))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x219))['option'](a0_0x450eb4(0x238),a0_0x450eb4(0x2d4),a0_0x450eb4(0x2cd))[a0_0x450eb4(0x234)]('--debug',a0_0x450eb4(0x1ce))[a0_0x450eb4(0x272)](async _0x11765c=>{const _0xa85614=a0_0x450eb4,_0x17ee3b=new ClaudeCommand(),_0x312e8c=program[_0xa85614(0x233)](),_0x421b75=createTDXInstance(_0x312e8c),_0x1f6612=await _0x17ee3b[_0xa85614(0x1ec)]({'options':{..._0x312e8c,..._0x11765c},'args':[],'tdx':_0x421b75});process[_0xa85614(0x29d)](_0x1f6612);}),program[a0_0x450eb4(0x228)](a0_0x450eb4(0x274))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x223))[a0_0x450eb4(0x234)]('--debug',a0_0x450eb4(0x21b))[a0_0x450eb4(0x234)](a0_0x450eb4(0x222),'Clear\x20session\x20context')[a0_0x450eb4(0x272)](async _0x59b9ce=>{const _0x869574=a0_0x450eb4,_0xd67049=new ContextCommand(),_0xd5c0d4=program[_0x869574(0x233)](),_0x316032=await _0xd67049[_0x869574(0x1ec)]({'options':{..._0xd5c0d4,..._0x59b9ce},'args':[],'tdx':null});process[_0x869574(0x29d)](_0x316032);}),program['command'](a0_0x450eb4(0x216))['description'](a0_0x450eb4(0x27e))[a0_0x450eb4(0x272)](async(_0x2af735,_0x40a45e,_0xd32ccb)=>{const _0x11822d=a0_0x450eb4,_0x338359=new UseCommand(),_0x410426=program[_0x11822d(0x233)](),_0x507348=[];if(_0x2af735)_0x507348[_0x11822d(0x28f)](_0x2af735);if(_0x40a45e)_0x507348['push'](_0x40a45e);const _0x6e84eb=await _0x338359[_0x11822d(0x1ec)]({'options':{..._0x410426,..._0xd32ccb},'args':_0x507348,'tdx':null});process[_0x11822d(0x29d)](_0x6e84eb);}),program[a0_0x450eb4(0x228)](a0_0x450eb4(0x24d))[a0_0x450eb4(0x2d8)](a0_0x450eb4(0x262))[a0_0x450eb4(0x272)](async _0x4666eb=>{const _0x11f85=a0_0x450eb4,_0x52bb28=new ProfilesCommand(),_0xc53506=program[_0x11f85(0x233)](),_0x1f0177=await _0x52bb28['run']({'options':{..._0xc53506,..._0x4666eb},'args':[],'tdx':null});process[_0x11f85(0x29d)](_0x1f0177);}),program[a0_0x450eb4(0x229)](process[a0_0x450eb4(0x26c)]);!process[a0_0x450eb4(0x26c)][a0_0x450eb4(0x2da)](0x2)['length']&&program[a0_0x450eb4(0x285)]();
|
|
2
|
+
const a0_0x235401=a0_0x32af;(function(_0x5bb46e,_0x388898){const _0x1aea77=a0_0x32af,_0xbe5057=_0x5bb46e();while(!![]){try{const _0x420515=-parseInt(_0x1aea77(0x21e))/0x1+parseInt(_0x1aea77(0x1ea))/0x2+parseInt(_0x1aea77(0x243))/0x3*(-parseInt(_0x1aea77(0x1a0))/0x4)+-parseInt(_0x1aea77(0x244))/0x5*(-parseInt(_0x1aea77(0x1d3))/0x6)+-parseInt(_0x1aea77(0x261))/0x7+parseInt(_0x1aea77(0x266))/0x8*(-parseInt(_0x1aea77(0x174))/0x9)+-parseInt(_0x1aea77(0x263))/0xa*(-parseInt(_0x1aea77(0x1ac))/0xb);if(_0x420515===_0x388898)break;else _0xbe5057['push'](_0xbe5057['shift']());}catch(_0x306fa8){_0xbe5057['push'](_0xbe5057['shift']());}}}(a0_0x4da0,0x84ff2));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{GlobalContext}from'./core/global-context.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentDescribeCommand,SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentCreateCommand,ParentSegmentUpdateCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{SegmentPwdCommand}from'./commands/segment-pwd-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';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['url']),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,a0_0x235401(0x26c)),a0_0x235401(0x1c5))),program=new Command();program['name']('tdx')[a0_0x235401(0x1d7)](a0_0x235401(0x18b))[a0_0x235401(0x177)](packageJson['version'],a0_0x235401(0x213),a0_0x235401(0x294)),program[a0_0x235401(0x18a)](a0_0x235401(0x20c),'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)','us01')[a0_0x235401(0x18a)]('--format\x20<format>',a0_0x235401(0x21c))[a0_0x235401(0x18a)](a0_0x235401(0x223),a0_0x235401(0x27c))[a0_0x235401(0x18a)]('--jsonl',a0_0x235401(0x245))['option'](a0_0x235401(0x1ec),a0_0x235401(0x273))[a0_0x235401(0x18a)](a0_0x235401(0x17c),a0_0x235401(0x280))[a0_0x235401(0x18a)](a0_0x235401(0x212),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a0_0x235401(0x18a)](a0_0x235401(0x22e),a0_0x235401(0x242),![])[a0_0x235401(0x18a)](a0_0x235401(0x199),a0_0x235401(0x203),![])['option'](a0_0x235401(0x21d),a0_0x235401(0x215),![])[a0_0x235401(0x18a)](a0_0x235401(0x26f),a0_0x235401(0x1f4),'30')['option'](a0_0x235401(0x17a),a0_0x235401(0x238),![])['option'](a0_0x235401(0x27f),'Skip\x20confirmation\x20prompts',![])['option'](a0_0x235401(0x214),a0_0x235401(0x259))['option'](a0_0x235401(0x23e),a0_0x235401(0x26d))['option'](a0_0x235401(0x234),a0_0x235401(0x172))[a0_0x235401(0x18a)](a0_0x235401(0x224),a0_0x235401(0x1c2))[a0_0x235401(0x18a)](a0_0x235401(0x249),a0_0x235401(0x272))['option'](a0_0x235401(0x1aa),a0_0x235401(0x24c)),program['configureHelp']({'formatHelp':(_0x2880f6,_0x420089)=>{const _0x278fbc=a0_0x235401,_0x10095e=_0x420089[_0x278fbc(0x264)](_0x2880f6,_0x420089),_0x162493=0x2,_0x2349db=0x2;function _0x3f18b9(_0x455c71){const _0x29dc0f=_0x278fbc;return!!_0x455c71[_0x29dc0f(0x1b2)];}function _0x246c14(_0x444081,_0x31e6dc){const _0x227429=_0x278fbc;if(_0x31e6dc){const _0xa1a900=''+_0x444081[_0x227429(0x279)](_0x10095e+_0x2349db)+_0x31e6dc;return _0xa1a900;}return _0x444081;}function _0x4c107f(_0x1f2624){const _0x5252f2=_0x278fbc;return _0x1f2624[_0x5252f2(0x1f8)]('\x0a')[_0x5252f2(0x1f3)](/^/gm,'\x20'['repeat'](_0x162493));}const _0x29f954=[];_0x29f954['push'](_0x278fbc(0x1fd)+_0x420089[_0x278fbc(0x281)](_0x2880f6));const _0x4d7e79=_0x420089[_0x278fbc(0x17f)](_0x2880f6);_0x4d7e79&&(_0x29f954['push'](''),_0x29f954[_0x278fbc(0x232)](_0x4d7e79));const _0x129ccf=_0x2880f6[_0x278fbc(0x1da)]['filter'](_0x2f75c0=>!_0x3f18b9(_0x2f75c0));if(_0x129ccf[_0x278fbc(0x1fc)]>0x0){const _0x147f30=_0x129ccf[_0x278fbc(0x207)](_0x2e7187=>{const _0x4bec4b=_0x278fbc,_0x2c459a=_0x420089[_0x4bec4b(0x1b1)](_0x2e7187),_0x489369=_0x420089[_0x4bec4b(0x211)](_0x2e7187);return _0x246c14(_0x2c459a,_0x489369);});_0x29f954[_0x278fbc(0x232)](''),_0x29f954[_0x278fbc(0x232)](_0x278fbc(0x286)),_0x29f954[_0x278fbc(0x232)](_0x4c107f(_0x147f30));}const _0x104563=_0x2880f6[_0x278fbc(0x29e)][_0x278fbc(0x285)](_0x36b71e=>!_0x3f18b9(_0x36b71e));if(_0x104563[_0x278fbc(0x1fc)]>0x0){const _0x1e8563=_0x104563[_0x278fbc(0x207)](_0x2c5122=>{const _0x1d8cb3=_0x278fbc,_0x29f806=_0x420089[_0x1d8cb3(0x247)](_0x2c5122),_0x22e8b0=_0x420089[_0x1d8cb3(0x194)](_0x2c5122);return _0x246c14(_0x29f806,_0x22e8b0);});_0x29f954[_0x278fbc(0x232)](''),_0x29f954[_0x278fbc(0x232)]('Options:'),_0x29f954['push'](_0x4c107f(_0x1e8563));}const _0x4f0b27=(_0x2880f6[_0x278fbc(0x23a)]||[])[_0x278fbc(0x285)](_0x5237fb=>!_0x3f18b9(_0x5237fb));if(_0x4f0b27[_0x278fbc(0x1fc)]>0x0){const _0xad0fdb=_0x4f0b27[_0x278fbc(0x207)](_0x321fb7=>{const _0x2033e5=_0x278fbc,_0xcf62c1=_0x420089[_0x2033e5(0x28c)](_0x321fb7),_0x5c95b5=_0x420089[_0x2033e5(0x190)](_0x321fb7);return _0x246c14(_0xcf62c1,_0x5c95b5);});_0x29f954[_0x278fbc(0x232)](''),_0x29f954['push']('Arguments:'),_0x29f954[_0x278fbc(0x232)](_0x4c107f(_0xad0fdb));}return _0x29f954[_0x278fbc(0x1f8)]('\x0a');},'subcommandTerm':_0x1566e4=>{const _0x20d5f6=a0_0x235401,_0x37c06f=(_0x1566e4['registeredArguments']||[])['map'](_0x2585c6=>_0x2585c6['required']?'<'+_0x2585c6['name']()+'>':'['+_0x2585c6[_0x20d5f6(0x23b)]()+']')[_0x20d5f6(0x1f8)]('\x20'),_0x59d0c5=_0x1566e4['aliases'](),_0x55cbf6=_0x59d0c5[_0x20d5f6(0x1fc)]>0x0?_0x1566e4[_0x20d5f6(0x23b)]()+',\x20'+_0x59d0c5['join'](',\x20'):_0x1566e4[_0x20d5f6(0x23b)]();return _0x37c06f?_0x55cbf6+'\x20'+_0x37c06f:_0x55cbf6;}}),program[a0_0x235401(0x20e)](a0_0x235401(0x291),_0x256ae5=>{const _0x272b81=a0_0x235401,_0x4ca639=_0x256ae5[_0x272b81(0x1cc)]();if(!_0x4ca639[_0x272b81(0x25e)]){if(_0x4ca639['json'])_0x4ca639[_0x272b81(0x25e)]=_0x272b81(0x1c7);else{if(_0x4ca639[_0x272b81(0x1f9)])_0x4ca639[_0x272b81(0x25e)]=_0x272b81(0x1f9);else _0x4ca639[_0x272b81(0x1a1)]&&(_0x4ca639['format']=_0x272b81(0x1a1));}}_0x4ca639['in']&&!_0x4ca639[_0x272b81(0x241)]&&(_0x4ca639[_0x272b81(0x241)]=_0x4ca639['in']);});function createTDXInstance(_0x5cafe6){const _0x98cff4=a0_0x235401,_0x43f5b1=new GlobalContext(_0x5cafe6);_0x43f5b1[_0x98cff4(0x1b6)](_0x5cafe6);const _0x160fe0={'site':_0x43f5b1[_0x98cff4(0x1c9)],'apiKey':_0x43f5b1[_0x98cff4(0x255)],'verbose':_0x43f5b1[_0x98cff4(0x19a)]};return new TDX(_0x160fe0);}program[a0_0x235401(0x19c)](a0_0x235401(0x277))['description'](a0_0x235401(0x16d))[a0_0x235401(0x252)](async(_0x3aa7ce,_0x3d06c2)=>{const _0x153261=a0_0x235401,_0x30e348=new DatabasesCommand(),_0x39faf9=program[_0x153261(0x1cc)](),_0xcd7752=createTDXInstance(_0x39faf9),_0x4adcce=await _0x30e348[_0x153261(0x175)]({'options':{..._0x39faf9,..._0x3d06c2},'args':_0x3aa7ce?[_0x3aa7ce]:[],'tdx':_0xcd7752});process[_0x153261(0x1a8)](_0x4adcce);}),program[a0_0x235401(0x19c)]('chat\x20[message...]')[a0_0x235401(0x1d7)](a0_0x235401(0x1cb))['option'](a0_0x235401(0x236),a0_0x235401(0x1e4))[a0_0x235401(0x18a)](a0_0x235401(0x24b),a0_0x235401(0x1ad))[a0_0x235401(0x18a)](a0_0x235401(0x1a9),a0_0x235401(0x251))[a0_0x235401(0x18a)](a0_0x235401(0x221),a0_0x235401(0x284))[a0_0x235401(0x252)](async(_0x5176db,_0x4eed9d)=>{const _0x14542d=a0_0x235401,_0x20563f=new ChatCommand(),_0x278c10=program[_0x14542d(0x1cc)](),_0x56c9cc=createTDXInstance(_0x278c10),_0x4b2f06=await _0x20563f[_0x14542d(0x175)]({'options':{..._0x278c10,..._0x4eed9d},'args':_0x5176db,'tdx':_0x56c9cc});process[_0x14542d(0x1a8)](_0x4b2f06);});const apiCmd=program[a0_0x235401(0x19c)](a0_0x235401(0x17d))[a0_0x235401(0x248)](a0_0x235401(0x1ed))['addHelpText'](a0_0x235401(0x18e),a0_0x235401(0x25b))[a0_0x235401(0x18a)](a0_0x235401(0x1d0),a0_0x235401(0x21f),a0_0x235401(0x299))[a0_0x235401(0x18a)](a0_0x235401(0x200),a0_0x235401(0x288))['option'](a0_0x235401(0x1bb),'Read\x20request\x20body\x20from\x20file')[a0_0x235401(0x18a)](a0_0x235401(0x27b),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x30e122,_0x3d39d6)=>{return _0x3d39d6?[..._0x3d39d6,_0x30e122]:[_0x30e122];})[a0_0x235401(0x18a)](a0_0x235401(0x1dd),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a0_0x235401(0x252)](async(_0x44a0ee,_0x3c37d0)=>{const _0x2c3472=a0_0x235401;if(!_0x44a0ee){apiCmd['help']();return;}const _0x3d1ba5=new ApiCommand(),_0x3ee1df=program[_0x2c3472(0x1cc)](),_0x90fd02=createTDXInstance(_0x3ee1df),_0x168ce6=await _0x3d1ba5[_0x2c3472(0x175)]({'options':{..._0x3ee1df,..._0x3c37d0},'args':[_0x44a0ee],'tdx':_0x90fd02});process['exit'](_0x168ce6);});program['command'](a0_0x235401(0x29d))[a0_0x235401(0x1d7)](a0_0x235401(0x24f))['option']('-d,\x20--database\x20<database>',a0_0x235401(0x1a4))['option']('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x56c58f,_0x49403b)=>{const _0x166bb9=a0_0x235401,_0x110011=new TablesCommand(),_0x4c648e=program['opts'](),_0x555de7=createTDXInstance(_0x4c648e);_0x49403b['in']&&(_0x49403b[_0x166bb9(0x241)]=_0x49403b['in']);const _0x59b0f9=await _0x110011[_0x166bb9(0x175)]({'options':{..._0x4c648e,..._0x49403b},'args':_0x56c58f?[_0x56c58f]:[],'tdx':_0x555de7});process['exit'](_0x59b0f9);}),program[a0_0x235401(0x19c)](a0_0x235401(0x271))['description'](a0_0x235401(0x29b))[a0_0x235401(0x18a)](a0_0x235401(0x1eb),a0_0x235401(0x29c))[a0_0x235401(0x18a)](a0_0x235401(0x274),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x235401(0x252)](async(_0x499eeb,_0x1b0fae)=>{const _0x411d41=a0_0x235401,_0x37fade=new ShowCommand(),_0x3b0818=program['opts'](),_0x2a8b5d=createTDXInstance(_0x3b0818);_0x1b0fae['in']&&(_0x1b0fae[_0x411d41(0x241)]=_0x1b0fae['in']);const _0x2a79e7=await _0x37fade['run']({'options':{..._0x3b0818,..._0x1b0fae},'args':_0x499eeb?[_0x499eeb]:[],'tdx':_0x2a8b5d});process[_0x411d41(0x1a8)](_0x2a79e7);}),program[a0_0x235401(0x19c)](a0_0x235401(0x20f))['alias'](a0_0x235401(0x1d8))[a0_0x235401(0x1d7)](a0_0x235401(0x1e5))[a0_0x235401(0x18a)]('-d,\x20--database\x20<database>',a0_0x235401(0x29c))['option'](a0_0x235401(0x274),a0_0x235401(0x1c2))[a0_0x235401(0x252)](async(_0x111be0,_0x2775f3)=>{const _0x53e423=a0_0x235401,_0x582d56=new DescribeCommand(),_0xbf8d1=program['opts'](),_0x5e7fcc=createTDXInstance(_0xbf8d1);_0x2775f3['in']&&(_0x2775f3[_0x53e423(0x241)]=_0x2775f3['in']);const _0x29bc5b=await _0x582d56['run']({'options':{..._0xbf8d1,..._0x2775f3},'args':_0x111be0?[_0x111be0]:[],'tdx':_0x5e7fcc});process[_0x53e423(0x1a8)](_0x29bc5b);}),program[a0_0x235401(0x19c)](a0_0x235401(0x25d))[a0_0x235401(0x1d7)](a0_0x235401(0x171))[a0_0x235401(0x18a)](a0_0x235401(0x1eb),'Database\x20to\x20query\x20(default:\x20information_schema)')['option'](a0_0x235401(0x274),a0_0x235401(0x1c2))[a0_0x235401(0x18a)]('--catalog\x20<catalog>',a0_0x235401(0x270))[a0_0x235401(0x18a)](a0_0x235401(0x1bb),a0_0x235401(0x1ef))['option'](a0_0x235401(0x212),a0_0x235401(0x29a),'40')['action'](async(_0x4edab4,_0x177d19)=>{const _0x2cf0ca=a0_0x235401,_0x36c947=new QueryCommand(),_0x3a8f4b=program['opts'](),_0x242258=createTDXInstance(_0x3a8f4b);_0x177d19['in']&&(_0x177d19[_0x2cf0ca(0x241)]=_0x177d19['in']);const _0x169efd=await _0x36c947[_0x2cf0ca(0x175)]({'options':{..._0x3a8f4b,..._0x177d19},'args':_0x4edab4?[_0x4edab4]:[],'tdx':_0x242258});process['exit'](_0x169efd);}),program[a0_0x235401(0x19c)]('segments\x20[path]')[a0_0x235401(0x1d7)](a0_0x235401(0x278))[a0_0x235401(0x18a)](a0_0x235401(0x1c4),a0_0x235401(0x240))[a0_0x235401(0x18a)]('--max-depth\x20<depth>','Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a0_0x235401(0x252)](async(_0x4736d1,_0x74e6da)=>{const _0x1425cf=a0_0x235401,_0x5df38b=new SegmentsCommand(),_0x4ac78b=program['opts'](),_0x12350e=createTDXInstance(_0x4ac78b),_0x98cee4=await _0x5df38b[_0x1425cf(0x175)]({'options':{..._0x4ac78b,..._0x74e6da},'args':_0x4736d1?[_0x4736d1]:[],'tdx':_0x12350e});process[_0x1425cf(0x1a8)](_0x98cee4);});const segmentCmd=program['command'](a0_0x235401(0x1e1))['description'](a0_0x235401(0x275));segmentCmd[a0_0x235401(0x19c)](a0_0x235401(0x186))[a0_0x235401(0x1d7)](a0_0x235401(0x20a))[a0_0x235401(0x252)](async(_0x53dbcc,_0x43929a)=>{const _0x50a136=a0_0x235401,_0x1951fa=new SegmentUseCommand(),_0x3a32d6=program[_0x50a136(0x1cc)](),_0x206b7b=createTDXInstance(_0x3a32d6),_0x3ccf33=await _0x1951fa['run']({'options':{..._0x3a32d6,..._0x43929a},'args':[_0x53dbcc],'tdx':_0x206b7b});process[_0x50a136(0x1a8)](_0x3ccf33);}),segmentCmd[a0_0x235401(0x19c)]('pwd')[a0_0x235401(0x1d7)]('Show\x20current\x20segment/folder\x20context')['action'](async _0x32af36=>{const _0x4cf10c=a0_0x235401,_0x2df7c0=new SegmentPwdCommand(),_0x3660c9=program['opts'](),_0x1fd5c2=createTDXInstance(_0x3660c9),_0x1dbe59=await _0x2df7c0[_0x4cf10c(0x175)]({'options':{..._0x3660c9,..._0x32af36},'args':[],'tdx':_0x1fd5c2});process[_0x4cf10c(0x1a8)](_0x1dbe59);}),segmentCmd['command'](a0_0x235401(0x265))[a0_0x235401(0x1e7)](a0_0x235401(0x1d8))[a0_0x235401(0x1d7)](a0_0x235401(0x16e))[a0_0x235401(0x252)](async(_0x3a8336,_0x395b5e)=>{const _0x40bb94=a0_0x235401,_0x3a542b=new SegmentDescribeCommand(),_0xca5b48=program[_0x40bb94(0x1cc)](),_0x2f797b=createTDXInstance(_0xca5b48),_0x537868=await _0x3a542b['run']({'options':{..._0xca5b48,..._0x395b5e},'args':[_0x3a8336],'tdx':_0x2f797b});process['exit'](_0x537868);}),segmentCmd[a0_0x235401(0x19c)](a0_0x235401(0x1b0))['description'](a0_0x235401(0x21a))[a0_0x235401(0x252)](async(_0x32b03f,_0x152b22)=>{const _0x1746ec=a0_0x235401,_0x54d6f8=new SegmentShowCommand(),_0x387d4f=program[_0x1746ec(0x1cc)](),_0x252ce5=createTDXInstance(_0x387d4f),_0x334f93=await _0x54d6f8[_0x1746ec(0x175)]({'options':{..._0x387d4f,..._0x152b22},'args':[_0x32b03f],'tdx':_0x252ce5});process[_0x1746ec(0x1a8)](_0x334f93);}),segmentCmd['command'](a0_0x235401(0x22b))[a0_0x235401(0x1d7)](a0_0x235401(0x237))[a0_0x235401(0x252)](async(_0x22fce4,_0x3fcaee)=>{const _0x5ce645=a0_0x235401,_0x5ad628=new SegmentFolderListCommand(),_0x4a500e=program[_0x5ce645(0x1cc)](),_0xe7b5e4=createTDXInstance(_0x4a500e),_0x12edec=await _0x5ad628['run']({'options':{..._0x4a500e,..._0x3fcaee},'args':[_0x22fce4],'tdx':_0xe7b5e4});process[_0x5ce645(0x1a8)](_0x12edec);});function a0_0x4da0(){const _0x29480a=['describe\x20[table]','Project\x20description','subcommandDescription','--limit\x20<rows>','-v,\x20--version','--session\x20<id>','Enable\x20verbose\x20logging','Master\x20database\x20name','Parent\x20segment\x20(audience)\x20management','--skip-validation','argv','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(use\x20parent_name\x20or\x20parent_name/child_name)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--verbose','376691OLFXOp','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','fields\x20<parent_name>','--new','Segment\x20folder\x20management','--json','--in\x20<name>','--to\x20<timestamp>','Add\x20behaviors\x20from\x20JSON\x20file','--include-retried','--description\x20<text>','--job-type\x20<type>','Enable\x20debug\x20mode\x20(logs\x20proxy\x20request/response\x20to\x20stderr)','folders\x20<parent_name>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Delete\x20an\x20agent','--color','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','llm','Resume\x20from\x20specific\x20task\x20(attempt\x20retry\x20only)','push','Kill\x20a\x20job','-d,\x20--database\x20<name>','Show\x20logs\x20for\x20a\x20specific\x20task','--agent\x20<ref>','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','Preview\x20operation\x20without\x20executing','Timezone\x20(e.g.,\x20America/Los_Angeles)','registeredArguments','name','List\x20all\x20available\x20profiles','--add-behaviors-file\x20<file>','--profile\x20<name>','show\x20<agent-name>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','database','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','617745ZWbiKe','980KfMOMs','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','project','optionTerm','summary','--parent-segment\x20<name>','Attributes\x20from\x20JSON\x20file','--model\x20<name>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','parse','Reason\x20for\x20killing\x20the\x20attempt','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','action','Clear\x20session\x20context','outputHelp','apiKey','job','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Folder\x20name\x20for\x20organization','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','--project\x20<name>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a','context','query\x20[sql]','format','history\x20[chat-id]','download\x20<project-name>\x20[output-dir]','6936706inCXXw','create\x20<name>','1720920sXuuWy','padWidth','describe\x20<segment_name>','344wUOhjB','Parent\x20folder\x20name\x20for\x20nested\x20folders','--schedule-type\x20<type>','claude','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','../package.json','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','parent','--timeout\x20<seconds>','Trino\x20catalog\x20(default:\x20td)','show\x20[table]','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--in\x20<database>','CDP\x20segment\x20management\x20commands','--database\x20<db>','databases\x20[pattern]','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','padEnd','Filtering\x20rule\x20as\x20JSON\x20string','-H,\x20--header\x20<header>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20profile)','information_schema','-y,\x20--yes','Save\x20output\x20to\x20file','commandUsage','Move\x20to\x20folder','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Start\x20a\x20new\x20chat\x20session','filter','Commands:','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Request\x20body\x20as\x20JSON\x20string','--include-subtasks','--schedule-option\x20<value>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','argumentTerm','trino','--attributes\x20<json>','--port\x20<number>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','preAction','Master\x20table\x20name','4000','output\x20the\x20version\x20number','--starter-message\x20<text>','--from\x20<timestamp>','use\x20[resource]\x20[value]','System\x20prompt/instructions\x20(default:\x20empty)','GET','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','tables\x20[pattern]','options','delete\x20<agent-name>','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Show\x20segment\x20details\x20(use\x20parent_name\x20or\x20parent_name/child_name)','attempt\x20<attempt-id>','Update\x20parent\x20segment\x20(audience)','Run\x20Trino\x20query\x20with\x20streaming\x20results','Database\x20to\x20use\x20(overrides\x20context)','--rule-file\x20<file>','169380eDwvsi','run','port','version','Agent\x20name','New\x20segment\x20name','--dry-run','Include\x20retried\x20attempts','--output\x20<file>','api\x20[endpoint]','attempts\x20[project]','commandDescription','--kind\x20<type>','--customer-group-file\x20<file>','Add\x20attributes\x20as\x20JSON\x20string','--rule\x20<json>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20job\x20details','use\x20<path>','proxy','Parent\x20segment\x20description','Show\x20tasks\x20for\x20an\x20attempt','option','AI-native\x20CLI\x20for\x20Treasure\x20Data','Attributes\x20as\x20JSON\x20string','--reason\x20<text>','after','--max-tool-iterations\x20<n>','argumentDescription','folder','--clear','Workflow\x20(Digdag)\x20management\x20commands','optionDescription','Include\x20subtasks\x20in\x20the\x20output','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','tasks\x20<attempt-id>','Updated\x20description','--no-color','verbose','Add\x20behaviors\x20as\x20JSON\x20string','command','Force\x20retry\x20even\x20if\x20not\x20failed\x20(attempt\x20retry\x20only)','Show\x20agent\x20details','Show\x20specific\x20attempt\x20details','4FCMTMI','tsv','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--behaviors\x20<json>','show\x20<job-id>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','exit','--temperature\x20<n>','--llm-project\x20<name>','Behaviors\x20from\x20JSON\x20file','77jGCeMH','Model\x20name\x20(default:\x20claude-4.5-sonnet)','Enable\x20debug\x20mode\x20(logs\x20request/response\x20to\x20stderr)','--timezone\x20<tz>','show\x20<segment_name>','subcommandTerm','hidden','Make\x20segment\x20invisible\x20(default:\x20visible)','sessions\x20[project]','update\x20<segment_name>','injectIntoOptions','Get\x20SQL\x20query\x20for\x20segment\x20(use\x20parent_name\x20or\x20parent_name/child_name)','update\x20<name>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','List\x20available\x20LLM\x20models','-f,\x20--file\x20<path>','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','--folder\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--name\x20<text>','--table\x20<table>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Retry\x20a\x20session\x20or\x20attempt\x20(prefix\x20with\x20session:\x20or\x20attempt:)','-r,\x20--recursive','utf-8','create\x20<segment_name>','json','List\x20available\x20fields\x20for\x20segmentation','site','--status\x20<status>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','opts','Customer\x20group\x20as\x20JSON\x20string','--attributes-file\x20<file>','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','-X,\x20--method\x20<method>','show\x20<folder_ref>','Show\x20context\x20with\x20sources\x20(for\x20debugging)','24852qagHxW','push\x20[project-name-or-dir]','LLM\x20agent\x20management','update\x20<agent-name>','description','desc','jobs','commands','Starter\x20message','--name\x20<new_name>','--type\x20<api_type>','Skip\x20population\x20counting','--revision\x20<revision>','List\x20jobs','segment','Behaviors\x20as\x20JSON\x20string','Create\x20a\x20new\x20LLM\x20project','Agent\x20reference\x20(project-name/agent-name)','Describe\x20table\x20schema','Add\x20attributes\x20from\x20JSON\x20file','alias','claude-4.5-sonnet','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','1822204BZDzFJ','-d,\x20--database\x20<database>','--tsv','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','projects\x20[pattern]','Read\x20SQL\x20query\x20from\x20file','requiredOption','--resume-from\x20<task>','submit\x20[query]','replace','Set\x20operation\x20timeout\x20in\x20seconds','sonnet','agents\x20[pattern]','List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)','join','jsonl','Folder\x20description','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','length','Usage:\x20','0.7','workflow','--data\x20<data>','Show\x20current\x20resolved\x20context','--debug','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Revision\x20name\x20(default:\x20timestamp)','Override\x20project\x20name','Filtering\x20rule\x20from\x20JSON\x20file','map','Delete\x20an\x20LLM\x20project','--prompt\x20<text>','Set\x20current\x20segment/folder\x20context\x20for\x20navigation','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--site\x20<site>','Skip\x20validation\x20of\x20.dig\x20files','hook'];a0_0x4da0=function(){return _0x29480a;};return a0_0x4da0();}const folderCmd=segmentCmd['command'](a0_0x235401(0x191))['description'](a0_0x235401(0x222));folderCmd[a0_0x235401(0x19c)](a0_0x235401(0x1d1))[a0_0x235401(0x1d7)](a0_0x235401(0x1a3))['action'](async(_0x34a9d8,_0x7ff458)=>{const _0x58c7b8=a0_0x235401,_0xd49d38=new SegmentFolderShowCommand(),_0x6a4b5c=program[_0x58c7b8(0x1cc)](),_0x59adc9=createTDXInstance(_0x6a4b5c),_0x3b59c1=await _0xd49d38[_0x58c7b8(0x175)]({'options':{..._0x6a4b5c,..._0x7ff458},'args':[_0x34a9d8],'tdx':_0x59adc9});process[_0x58c7b8(0x1a8)](_0x3b59c1);}),segmentCmd[a0_0x235401(0x19c)]('sql\x20<segment_name>')[a0_0x235401(0x1d7)](a0_0x235401(0x1b7))[a0_0x235401(0x252)](async(_0x4b5040,_0x13a26b)=>{const _0x685038=a0_0x235401,_0x8ef4f2=new SegmentSQLCommand(),_0x476c01=program[_0x685038(0x1cc)](),_0x32674b=createTDXInstance(_0x476c01),_0x577731=await _0x8ef4f2['run']({'options':{..._0x476c01,..._0x13a26b},'args':[_0x4b5040],'tdx':_0x32674b});process[_0x685038(0x1a8)](_0x577731);}),segmentCmd[a0_0x235401(0x19c)](a0_0x235401(0x220))[a0_0x235401(0x1d7)](a0_0x235401(0x1c8))['action'](async(_0x303587,_0x208cc9)=>{const _0x9cfaf7=a0_0x235401,_0x14684e=new SegmentFieldsCommand(),_0x252e4a=program[_0x9cfaf7(0x1cc)](),_0x40f460=createTDXInstance(_0x252e4a),_0x5d3e39=await _0x14684e[_0x9cfaf7(0x175)]({'options':{..._0x252e4a,..._0x208cc9},'args':[_0x303587],'tdx':_0x40f460});process[_0x9cfaf7(0x1a8)](_0x5d3e39);}),segmentCmd[a0_0x235401(0x19c)](a0_0x235401(0x1c6))[a0_0x235401(0x1d7)]('Create\x20child\x20segment\x20(use\x20parent_name/child_name)')['option'](a0_0x235401(0x228),'Segment\x20description')[a0_0x235401(0x18a)](a0_0x235401(0x183),a0_0x235401(0x27a))['option'](a0_0x235401(0x173),a0_0x235401(0x206))[a0_0x235401(0x18a)]('--folder\x20<name>',a0_0x235401(0x258))[a0_0x235401(0x18a)](a0_0x235401(0x180),a0_0x235401(0x21b))[a0_0x235401(0x18a)]('--invisible',a0_0x235401(0x1b3))[a0_0x235401(0x18a)]('--no-count-population',a0_0x235401(0x1de))[a0_0x235401(0x252)](async(_0xf3a61,_0x5e85a1)=>{const _0x3843e8=a0_0x235401,_0x10a219=new SegmentCreateCommand(),_0x318939=program['opts'](),_0x399e5e=createTDXInstance(_0x318939),_0x4e17d3=await _0x10a219[_0x3843e8(0x175)]({'options':{..._0x318939,..._0x5e85a1},'args':[_0xf3a61],'tdx':_0x399e5e});process['exit'](_0x4e17d3);}),segmentCmd[a0_0x235401(0x19c)](a0_0x235401(0x1b5))[a0_0x235401(0x1d7)](a0_0x235401(0x1cf))[a0_0x235401(0x18a)](a0_0x235401(0x1dc),a0_0x235401(0x179))[a0_0x235401(0x18a)](a0_0x235401(0x228),a0_0x235401(0x198))[a0_0x235401(0x18a)]('--rule\x20<json>',a0_0x235401(0x283))['option'](a0_0x235401(0x173),a0_0x235401(0x1e9))[a0_0x235401(0x18a)](a0_0x235401(0x1bd),a0_0x235401(0x282))[a0_0x235401(0x18a)](a0_0x235401(0x180),a0_0x235401(0x21b))[a0_0x235401(0x252)](async(_0x657b98,_0x1f464a)=>{const _0x17eec2=a0_0x235401,_0x15545e=new SegmentUpdateCommand(),_0x54c5bf=program['opts'](),_0x92b39=createTDXInstance(_0x54c5bf),_0x15f5c9=await _0x15545e[_0x17eec2(0x175)]({'options':{..._0x54c5bf,..._0x1f464a},'args':[_0x657b98],'tdx':_0x92b39});process[_0x17eec2(0x1a8)](_0x15f5c9);});const parentCmd=segmentCmd[a0_0x235401(0x19c)](a0_0x235401(0x26e))[a0_0x235401(0x1d7)](a0_0x235401(0x217));parentCmd[a0_0x235401(0x19c)](a0_0x235401(0x262))['description']('Create\x20parent\x20segment\x20(audience)')[a0_0x235401(0x1f0)](a0_0x235401(0x276),a0_0x235401(0x216))['requiredOption'](a0_0x235401(0x1c0),a0_0x235401(0x292))['option'](a0_0x235401(0x228),a0_0x235401(0x188))['option'](a0_0x235401(0x268),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a0_0x235401(0x28a),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a0_0x235401(0x18a)]('--timezone\x20<tz>',a0_0x235401(0x239))[a0_0x235401(0x18a)](a0_0x235401(0x28e),a0_0x235401(0x18c))[a0_0x235401(0x18a)](a0_0x235401(0x1ce),a0_0x235401(0x24a))[a0_0x235401(0x18a)](a0_0x235401(0x1a5),a0_0x235401(0x1e2))[a0_0x235401(0x18a)]('--behaviors-file\x20<file>',a0_0x235401(0x1ab))['option']('--customer-group\x20<json>',a0_0x235401(0x1cd))[a0_0x235401(0x18a)](a0_0x235401(0x181),'Customer\x20group\x20from\x20JSON\x20file')[a0_0x235401(0x252)](async(_0x2fb4d4,_0x26d0d1)=>{const _0x20492a=a0_0x235401,_0x141261=new ParentSegmentCreateCommand(),_0x29847f=program[_0x20492a(0x1cc)](),_0x2511f3=createTDXInstance(_0x29847f),_0x2a7577=await _0x141261[_0x20492a(0x175)]({'options':{..._0x29847f,..._0x26d0d1},'args':[_0x2fb4d4],'tdx':_0x2511f3});process[_0x20492a(0x1a8)](_0x2a7577);}),parentCmd[a0_0x235401(0x19c)](a0_0x235401(0x1b8))[a0_0x235401(0x1d7)](a0_0x235401(0x170))[a0_0x235401(0x18a)]('--description\x20<text>',a0_0x235401(0x198))[a0_0x235401(0x18a)](a0_0x235401(0x268),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a0_0x235401(0x28a),'Updated\x20schedule\x20option')[a0_0x235401(0x18a)](a0_0x235401(0x1af),'Updated\x20timezone')['option']('--add-attributes\x20<json>',a0_0x235401(0x182))[a0_0x235401(0x18a)]('--add-attributes-file\x20<file>',a0_0x235401(0x1e6))[a0_0x235401(0x18a)]('--add-behaviors\x20<json>',a0_0x235401(0x19b))[a0_0x235401(0x18a)](a0_0x235401(0x23d),a0_0x235401(0x226))[a0_0x235401(0x252)](async(_0xc16d8f,_0x2e3254)=>{const _0x16757d=a0_0x235401,_0x347bcd=new ParentSegmentUpdateCommand(),_0x1337e5=program[_0x16757d(0x1cc)](),_0x2b99b7=createTDXInstance(_0x1337e5),_0x3add3a=await _0x347bcd[_0x16757d(0x175)]({'options':{..._0x1337e5,..._0x2e3254},'args':[_0xc16d8f],'tdx':_0x2b99b7});process['exit'](_0x3add3a);}),folderCmd[a0_0x235401(0x19c)]('create\x20<parent_name>\x20<folder_name>')[a0_0x235401(0x1d7)]('Create\x20segment\x20folder')[a0_0x235401(0x18a)]('--description\x20<text>',a0_0x235401(0x1fa))['option']('--parent-folder\x20<name>',a0_0x235401(0x267))[a0_0x235401(0x252)](async(_0x30acf5,_0x243aa7,_0x4c7875)=>{const _0x58e3a3=a0_0x235401,_0x5ea5f7=new SegmentFolderCreateCommand(),_0x1f0ffb=program[_0x58e3a3(0x1cc)](),_0x38cda8=createTDXInstance(_0x1f0ffb),_0x1a2e15=await _0x5ea5f7[_0x58e3a3(0x175)]({'options':{..._0x1f0ffb,..._0x4c7875},'args':[_0x30acf5,_0x243aa7],'tdx':_0x38cda8});process['exit'](_0x1a2e15);}),program['command']('activations\x20<segment_name>')[a0_0x235401(0x1d7)](a0_0x235401(0x22f))[a0_0x235401(0x252)](async(_0x49af7f,_0x434ebe)=>{const _0x42050b=a0_0x235401,_0x95290d=new ActivationsCommand(),_0x49b0a2=program[_0x42050b(0x1cc)](),_0xc06ebc=createTDXInstance(_0x49b0a2),_0x3fd151=await _0x95290d[_0x42050b(0x175)]({'options':{..._0x49b0a2,..._0x434ebe},'args':[_0x49af7f],'tdx':_0xc06ebc});process[_0x42050b(0x1a8)](_0x3fd151);});const workflowCmd=program['command'](a0_0x235401(0x1ff))[a0_0x235401(0x1e7)]('wf')[a0_0x235401(0x1d7)](a0_0x235401(0x193));workflowCmd[a0_0x235401(0x19c)](a0_0x235401(0x1ee))['description'](a0_0x235401(0x1c1))['action'](async(_0x5dc72c,_0x35af38)=>{const _0x2caed1=a0_0x235401,_0x10fd5d=new WorkflowProjectsCommand(),_0x5ded0c=program[_0x2caed1(0x1cc)](),_0x5bb01f=createTDXInstance(_0x5ded0c),_0x59689b=await _0x10fd5d[_0x2caed1(0x175)]({'options':{..._0x5ded0c,..._0x35af38},'args':_0x5dc72c?[_0x5dc72c]:[],'tdx':_0x5bb01f});process['exit'](_0x59689b);}),workflowCmd[a0_0x235401(0x19c)]('workflows\x20[project]')[a0_0x235401(0x1e7)]('ls')[a0_0x235401(0x1d7)](a0_0x235401(0x257))['action'](async(_0x5a4fff,_0x257118)=>{const _0x14ffdb=a0_0x235401,_0x3a1a60=new WorkflowWorkflowsCommand(),_0x5eeeb8=program['opts'](),_0x416bdc=createTDXInstance(_0x5eeeb8),_0x3db5ae=await _0x3a1a60[_0x14ffdb(0x175)]({'options':{..._0x5eeeb8,..._0x257118},'args':_0x5a4fff?[_0x5a4fff]:[],'tdx':_0x416bdc});process[_0x14ffdb(0x1a8)](_0x3db5ae);}),workflowCmd[a0_0x235401(0x19c)](a0_0x235401(0x1b4))['description'](a0_0x235401(0x196))[a0_0x235401(0x18a)]('--status\x20<status>',a0_0x235401(0x1b9))[a0_0x235401(0x18a)](a0_0x235401(0x296),a0_0x235401(0x26b))[a0_0x235401(0x18a)](a0_0x235401(0x225),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](async(_0x205d8e,_0xf901b2)=>{const _0xb75bd9=a0_0x235401,_0x50b0ee=new WorkflowSessionsCommand(),_0x311fa3=program[_0xb75bd9(0x1cc)](),_0x22e386=createTDXInstance(_0x311fa3),_0x18ec40=await _0x50b0ee[_0xb75bd9(0x175)]({'options':{..._0x311fa3,..._0xf901b2},'args':_0x205d8e?[_0x205d8e]:[],'tdx':_0x22e386});process[_0xb75bd9(0x1a8)](_0x18ec40);}),workflowCmd[a0_0x235401(0x19c)](a0_0x235401(0x17e))['description'](a0_0x235401(0x20b))[a0_0x235401(0x18a)](a0_0x235401(0x227),a0_0x235401(0x17b))['action'](async(_0x2f4e08,_0x21d478)=>{const _0xe3eac6=a0_0x235401,_0xdb179f=new WorkflowAttemptsCommand(),_0xd88b22=program[_0xe3eac6(0x1cc)](),_0x15d358=createTDXInstance(_0xd88b22),_0x4fc70f=await _0xdb179f[_0xe3eac6(0x175)]({'options':{..._0xd88b22,..._0x21d478},'args':_0x2f4e08?[_0x2f4e08]:[],'tdx':_0x15d358});process[_0xe3eac6(0x1a8)](_0x4fc70f);}),workflowCmd['command'](a0_0x235401(0x16f))['description'](a0_0x235401(0x19f))[a0_0x235401(0x252)](async(_0x4bab75,_0x23530b)=>{const _0x14180e=a0_0x235401,_0x26d63a=new WorkflowAttemptCommand(),_0x412a98=program['opts'](),_0x2f1c95=createTDXInstance(_0x412a98),_0xbec9d6=await _0x26d63a[_0x14180e(0x175)]({'options':{..._0x412a98,..._0x23530b},'args':[_0x4bab75],'tdx':_0x2f1c95});process[_0x14180e(0x1a8)](_0xbec9d6);}),workflowCmd[a0_0x235401(0x19c)](a0_0x235401(0x197))[a0_0x235401(0x1d7)](a0_0x235401(0x189))[a0_0x235401(0x18a)](a0_0x235401(0x289),a0_0x235401(0x195))[a0_0x235401(0x252)](async(_0x9c148b,_0x1bb3df)=>{const _0x306da1=a0_0x235401,_0x26f664=new WorkflowTasksCommand(),_0x54c3c3=program[_0x306da1(0x1cc)](),_0x1a45f9=createTDXInstance(_0x54c3c3),_0x384f99=await _0x26f664[_0x306da1(0x175)]({'options':{..._0x54c3c3,..._0x1bb3df},'args':[_0x9c148b],'tdx':_0x1a45f9});process[_0x306da1(0x1a8)](_0x384f99);}),workflowCmd[a0_0x235401(0x19c)]('logs\x20<attempt-id>\x20<task-name>')[a0_0x235401(0x1d7)](a0_0x235401(0x235))[a0_0x235401(0x18a)]('--offset\x20<number>','Starting\x20offset\x20for\x20logs\x20(default:\x200)',_0x3fcce6=>parseInt(_0x3fcce6,0xa),0x0)['action'](async(_0xd21b40,_0x50708b,_0x5e5b4c)=>{const _0x2b5ccc=a0_0x235401,_0x41afc1=new WorkflowLogsCommand(),_0x4f3df4=program['opts'](),_0x5ee151=createTDXInstance(_0x4f3df4),_0x2f164c=await _0x41afc1[_0x2b5ccc(0x175)]({'options':{..._0x4f3df4,..._0x5e5b4c},'args':[_0xd21b40,_0x50708b],'tdx':_0x5ee151});process[_0x2b5ccc(0x1a8)](_0x2f164c);}),workflowCmd['command']('kill\x20<attempt-id>')[a0_0x235401(0x1d7)]('Kill\x20a\x20running\x20attempt')[a0_0x235401(0x18a)](a0_0x235401(0x18d),a0_0x235401(0x24e))['action'](async(_0x82ba74,_0x374d4f)=>{const _0x57aef2=a0_0x235401,_0x3fcbb7=new WorkflowKillCommand(),_0x534dac=program[_0x57aef2(0x1cc)](),_0x393efd=createTDXInstance(_0x534dac),_0x248aee=await _0x3fcbb7[_0x57aef2(0x175)]({'options':{..._0x534dac,..._0x374d4f},'args':[_0x82ba74],'tdx':_0x393efd});process[_0x57aef2(0x1a8)](_0x248aee);}),workflowCmd[a0_0x235401(0x19c)]('retry\x20<session-id|attempt-id>')[a0_0x235401(0x1d7)](a0_0x235401(0x1c3))[a0_0x235401(0x18a)]('--from-task\x20<task>','Resume\x20from\x20specific\x20task\x20(session\x20retry\x20only)')['option'](a0_0x235401(0x1f1),a0_0x235401(0x231))['option']('--params\x20<json>',a0_0x235401(0x287))[a0_0x235401(0x18a)]('--force',a0_0x235401(0x19d))[a0_0x235401(0x252)](async(_0x567df3,_0x5195ff)=>{const _0xbbb8a9=a0_0x235401,_0x4a9e9f=new WorkflowRetryCommand(),_0x2a0b73=program[_0xbbb8a9(0x1cc)](),_0x5adbba=createTDXInstance(_0x2a0b73),_0x43660b=await _0x4a9e9f[_0xbbb8a9(0x175)]({'options':{..._0x2a0b73,..._0x5195ff},'args':[_0x567df3],'tdx':_0x5adbba});process[_0xbbb8a9(0x1a8)](_0x43660b);}),workflowCmd[a0_0x235401(0x19c)](a0_0x235401(0x260))[a0_0x235401(0x1d7)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a0_0x235401(0x1df),a0_0x235401(0x1a7))[a0_0x235401(0x252)](async(_0x11748f,_0x4be582,_0x377827)=>{const _0x1a445b=a0_0x235401,_0x300653=new WorkflowDownloadCommand(),_0xffd43b=program[_0x1a445b(0x1cc)](),_0x3e1c12=createTDXInstance(_0xffd43b),_0x520f2a=await _0x300653['run']({'options':{..._0xffd43b,..._0x377827},'args':[_0x11748f,_0x4be582||'.'],'tdx':_0x3e1c12});process[_0x1a445b(0x1a8)](_0x520f2a);}),workflowCmd[a0_0x235401(0x19c)](a0_0x235401(0x1d4))[a0_0x235401(0x1d7)](a0_0x235401(0x1bc))['option']('--name\x20<name>',a0_0x235401(0x205))[a0_0x235401(0x18a)](a0_0x235401(0x1df),a0_0x235401(0x204))[a0_0x235401(0x18a)](a0_0x235401(0x218),a0_0x235401(0x20d))[a0_0x235401(0x252)](async(_0x434775,_0x58ace6)=>{const _0x4f2dda=a0_0x235401,_0x4df8f1=new WorkflowPushCommand(),_0x25e56f=program[_0x4f2dda(0x1cc)](),_0x11eedd=createTDXInstance(_0x25e56f),_0x475a92=await _0x4df8f1['run']({'options':{..._0x25e56f,..._0x58ace6},'args':_0x434775?[_0x434775]:[],'tdx':_0x11eedd});process['exit'](_0x475a92);}),workflowCmd[a0_0x235401(0x19c)]('delete\x20<project-name-or-id>')[a0_0x235401(0x1d7)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a0_0x235401(0x252)](async(_0x207f72,_0x172f90)=>{const _0x127e0f=a0_0x235401,_0x598a5f=new WorkflowDeleteCommand(),_0x44c9ff=program[_0x127e0f(0x1cc)](),_0x6ed82=createTDXInstance(_0x44c9ff),_0x42812e=await _0x598a5f[_0x127e0f(0x175)]({'options':{..._0x44c9ff,..._0x172f90},'args':[_0x207f72],'tdx':_0x6ed82});process['exit'](_0x42812e);}),program['command'](a0_0x235401(0x1d9))[a0_0x235401(0x1d7)](a0_0x235401(0x1e0))[a0_0x235401(0x18a)](a0_0x235401(0x1ca),a0_0x235401(0x1a2))[a0_0x235401(0x252)](async _0x39a75f=>{const _0x635fc9=a0_0x235401,_0xf97351=new JobListCommand(),_0x254f59=program['opts'](),_0x28c575=createTDXInstance(_0x254f59),_0x42f397=await _0xf97351[_0x635fc9(0x175)]({'options':{..._0x254f59,..._0x39a75f},'args':[],'tdx':_0x28c575});process[_0x635fc9(0x1a8)](_0x42f397);});const jobCmd=program['command'](a0_0x235401(0x256))[a0_0x235401(0x1d7)]('Job\x20management\x20commands');jobCmd['command'](a0_0x235401(0x1a6))[a0_0x235401(0x1d7)](a0_0x235401(0x185))[a0_0x235401(0x252)](async(_0x1fb547,_0x45cbe8)=>{const _0x30aa44=a0_0x235401,_0x192705=new JobShowCommand(),_0xa25f2c=program['opts'](),_0x1e300f=createTDXInstance(_0xa25f2c),_0x2bcc3d=await _0x192705[_0x30aa44(0x175)]({'options':{..._0xa25f2c,..._0x45cbe8},'args':[_0x1fb547],'tdx':_0x1e300f});process[_0x30aa44(0x1a8)](_0x2bcc3d);}),jobCmd[a0_0x235401(0x19c)]('kill\x20<job-id>')[a0_0x235401(0x1d7)](a0_0x235401(0x233))[a0_0x235401(0x252)](async(_0x5185,_0x4832c7)=>{const _0x51f04f=a0_0x235401,_0x230bb4=new JobKillCommand(),_0x35b484=program[_0x51f04f(0x1cc)](),_0x24aa4e=createTDXInstance(_0x35b484),_0x927a09=await _0x230bb4[_0x51f04f(0x175)]({'options':{..._0x35b484,..._0x4832c7},'args':[_0x5185],'tdx':_0x24aa4e});process[_0x51f04f(0x1a8)](_0x927a09);}),jobCmd['command'](a0_0x235401(0x1f2))[a0_0x235401(0x1d7)]('Submit\x20a\x20job')[a0_0x235401(0x18a)](a0_0x235401(0x229),a0_0x235401(0x290),a0_0x235401(0x28d))['option'](a0_0x235401(0x1bb),'Read\x20query\x20from\x20file')[a0_0x235401(0x18a)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a0_0x235401(0x27e))['action'](async(_0x498f75,_0x43d39a)=>{const _0x52d37d=a0_0x235401,_0x2f4de2=new JobSubmitCommand(),_0x4cb8de=program[_0x52d37d(0x1cc)](),_0x31cebd=createTDXInstance(_0x4cb8de),_0x4fab3b=await _0x2f4de2[_0x52d37d(0x175)]({'options':{..._0x4cb8de,..._0x43d39a},'args':_0x498f75?[_0x498f75]:[],'tdx':_0x31cebd});process[_0x52d37d(0x1a8)](_0x4fab3b);}),jobCmd[a0_0x235401(0x19c)]('result\x20<job-id>')['description']('Get\x20job\x20results')[a0_0x235401(0x252)](async(_0x5dfc2e,_0x7e0bac)=>{const _0x5444c0=a0_0x235401,_0x383fdc=new JobResultCommand(),_0x27b1a5=program['opts'](),_0x53cc17=createTDXInstance(_0x27b1a5),_0x2e5f5f=await _0x383fdc[_0x5444c0(0x175)]({'options':{..._0x27b1a5,..._0x7e0bac},'args':[_0x5dfc2e],'tdx':_0x53cc17});process['exit'](_0x2e5f5f);});const llmCmd=program[a0_0x235401(0x19c)](a0_0x235401(0x230))[a0_0x235401(0x1d7)](a0_0x235401(0x22c));llmCmd[a0_0x235401(0x19c)]('use\x20<project-name>')[a0_0x235401(0x1d7)](a0_0x235401(0x1fb))[a0_0x235401(0x252)](async(_0x43c48c,_0x57f7d0)=>{const _0x4b8333=a0_0x235401,_0x35ffe9=new LLMUseCommand(),_0x112f28=program[_0x4b8333(0x1cc)](),_0x52ca66=createTDXInstance(_0x112f28),_0x5e2cc2=await _0x35ffe9[_0x4b8333(0x175)]({'options':{..._0x112f28,..._0x57f7d0},'args':[_0x43c48c],'tdx':_0x52ca66});process['exit'](_0x5e2cc2);}),llmCmd[a0_0x235401(0x19c)]('models')[a0_0x235401(0x1d7)](a0_0x235401(0x1ba))['action'](async _0x5225ff=>{const _0x5e6026=new LLMModelsCommand(),_0x266038=program['opts'](),_0x3da871=createTDXInstance(_0x266038),_0x357e30=await _0x5e6026['run']({'options':{..._0x266038,..._0x5225ff},'args':[],'tdx':_0x3da871});process['exit'](_0x357e30);}),llmCmd['command'](a0_0x235401(0x1ee))[a0_0x235401(0x1d7)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a0_0x235401(0x252)](async(_0x3f080f,_0x291480)=>{const _0x41bcdb=a0_0x235401,_0x1c86a3=new LLMProjectsCommand(),_0x4e53d5=program[_0x41bcdb(0x1cc)](),_0xcde87d=createTDXInstance(_0x4e53d5),_0x195671=await _0x1c86a3[_0x41bcdb(0x175)]({'options':{..._0x4e53d5,..._0x291480},'args':_0x3f080f?[_0x3f080f]:[],'tdx':_0xcde87d});process[_0x41bcdb(0x1a8)](_0x195671);});const projectCmd=llmCmd['command'](a0_0x235401(0x246))[a0_0x235401(0x1d7)]('LLM\x20project\x20management');projectCmd[a0_0x235401(0x19c)]('create\x20<name>')[a0_0x235401(0x1d7)](a0_0x235401(0x1e3))['option']('--description\x20<text>',a0_0x235401(0x210))[a0_0x235401(0x252)](async(_0x4e0d0f,_0x1c8578)=>{const _0x2b90d2=a0_0x235401,_0x677b67=new LLMProjectCreateCommand(),_0x7dd390=program['opts'](),_0x2aa435=createTDXInstance(_0x7dd390),_0x143520=await _0x677b67[_0x2b90d2(0x175)]({'options':{..._0x7dd390,..._0x1c8578},'args':[_0x4e0d0f],'tdx':_0x2aa435});process[_0x2b90d2(0x1a8)](_0x143520);}),projectCmd[a0_0x235401(0x19c)]('delete\x20<name>')[a0_0x235401(0x1d7)](a0_0x235401(0x208))[a0_0x235401(0x252)](async(_0x2cc7e1,_0x24c0f3)=>{const _0x1bf852=a0_0x235401,_0x267c84=new LLMProjectDeleteCommand(),_0x2bd75c=program['opts'](),_0x430f8b=createTDXInstance(_0x2bd75c),_0x118798=await _0x267c84[_0x1bf852(0x175)]({'options':{..._0x2bd75c,..._0x24c0f3},'args':[_0x2cc7e1],'tdx':_0x430f8b});process['exit'](_0x118798);}),llmCmd[a0_0x235401(0x19c)](a0_0x235401(0x1f6))[a0_0x235401(0x1d7)](a0_0x235401(0x1f7))[a0_0x235401(0x252)](async(_0x40abe7,_0x162e12)=>{const _0x3d62b2=a0_0x235401,_0x5c4f5d=new LLMAgentsCommand(),_0x5a2aa9=program['opts'](),_0x30f29c=createTDXInstance(_0x5a2aa9),_0x1dd518=await _0x5c4f5d[_0x3d62b2(0x175)]({'options':{..._0x5a2aa9,..._0x162e12},'args':_0x40abe7?[_0x40abe7]:[],'tdx':_0x30f29c});process[_0x3d62b2(0x1a8)](_0x1dd518);});const agentCmd=llmCmd[a0_0x235401(0x19c)]('agent')[a0_0x235401(0x1d7)](a0_0x235401(0x1d5));function a0_0x32af(_0x21844a,_0x7fd247){const _0x4da0a6=a0_0x4da0();return a0_0x32af=function(_0x32af91,_0x4f2f4a){_0x32af91=_0x32af91-0x16c;let _0x2dc0db=_0x4da0a6[_0x32af91];return _0x2dc0db;},a0_0x32af(_0x21844a,_0x7fd247);}agentCmd[a0_0x235401(0x19c)](a0_0x235401(0x23f))[a0_0x235401(0x1d7)](a0_0x235401(0x19e))['action'](async(_0x3f7dd1,_0x53a9e4)=>{const _0x4ace89=a0_0x235401,_0x3c3c3d=new LLMAgentShowCommand(),_0x4f352d=program[_0x4ace89(0x1cc)](),_0x543ed3=createTDXInstance(_0x4f352d),_0xa75909=await _0x3c3c3d[_0x4ace89(0x175)]({'options':{..._0x4f352d,..._0x53a9e4},'args':[_0x3f7dd1],'tdx':_0x543ed3});process['exit'](_0xa75909);}),agentCmd[a0_0x235401(0x19c)](a0_0x235401(0x262))[a0_0x235401(0x1d7)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a0_0x235401(0x18a)]('--system-prompt\x20<text>',a0_0x235401(0x298))[a0_0x235401(0x18a)](a0_0x235401(0x24b),a0_0x235401(0x1be),a0_0x235401(0x1e8))['option']('--starter-message\x20<text>',a0_0x235401(0x1db))[a0_0x235401(0x18a)](a0_0x235401(0x18f),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a0_0x235401(0x18a)](a0_0x235401(0x1a9),a0_0x235401(0x251),a0_0x235401(0x1fe))[a0_0x235401(0x252)](async(_0x36e67a,_0x4aff59)=>{const _0x5ce35c=a0_0x235401,_0x93cecb=new LLMAgentCreateCommand(),_0x690d69=program[_0x5ce35c(0x1cc)](),_0x35b8fd=createTDXInstance(_0x690d69),_0x4690d9=await _0x93cecb[_0x5ce35c(0x175)]({'options':{..._0x690d69,..._0x4aff59},'args':[_0x36e67a],'tdx':_0x35b8fd});process[_0x5ce35c(0x1a8)](_0x4690d9);}),agentCmd[a0_0x235401(0x19c)](a0_0x235401(0x1d6))[a0_0x235401(0x1d7)]('Update\x20an\x20existing\x20agent')[a0_0x235401(0x18a)](a0_0x235401(0x1bf),a0_0x235401(0x178))[a0_0x235401(0x18a)](a0_0x235401(0x209),'Agent\x20prompt/instructions')['option'](a0_0x235401(0x228),'Agent\x20description')[a0_0x235401(0x18a)](a0_0x235401(0x295),a0_0x235401(0x1db))[a0_0x235401(0x252)](async(_0xd29d19,_0x53a5ba)=>{const _0x59de49=a0_0x235401,_0x40f196=new LLMAgentUpdateCommand(),_0x310890=program[_0x59de49(0x1cc)](),_0x27d0d0=createTDXInstance(_0x310890),_0x160292=await _0x40f196[_0x59de49(0x175)]({'options':{..._0x310890,..._0x53a5ba},'args':[_0xd29d19],'tdx':_0x27d0d0});process[_0x59de49(0x1a8)](_0x160292);}),agentCmd['command'](a0_0x235401(0x16c))[a0_0x235401(0x1d7)](a0_0x235401(0x22d))[a0_0x235401(0x252)](async(_0x475763,_0xe2b19c)=>{const _0x204e95=a0_0x235401,_0x59ec54=new LLMAgentDeleteCommand(),_0x7946a4=program[_0x204e95(0x1cc)](),_0x15c777=createTDXInstance(_0x7946a4),_0x1977b3=await _0x59ec54[_0x204e95(0x175)]({'options':{..._0x7946a4,..._0xe2b19c},'args':[_0x475763],'tdx':_0x15c777});process['exit'](_0x1977b3);}),llmCmd[a0_0x235401(0x19c)](a0_0x235401(0x25f))[a0_0x235401(0x1d7)](a0_0x235401(0x250))[a0_0x235401(0x252)](async(_0x3e384d,_0x4f956f)=>{const _0x1490b8=new LLMHistoryCommand(),_0x393ff1=program['opts'](),_0x56c30b=createTDXInstance(_0x393ff1),_0x3221c3=await _0x1490b8['run']({'options':{..._0x393ff1,..._0x4f956f},'args':_0x3e384d?[_0x3e384d]:[],'tdx':_0x56c30b});process['exit'](_0x3221c3);}),llmCmd[a0_0x235401(0x19c)](a0_0x235401(0x187))[a0_0x235401(0x1d7)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration')[a0_0x235401(0x18a)](a0_0x235401(0x28f),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a0_0x235401(0x293))[a0_0x235401(0x18a)](a0_0x235401(0x25a),a0_0x235401(0x184))[a0_0x235401(0x18a)]('--agent\x20<name>','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a0_0x235401(0x18a)](a0_0x235401(0x202),a0_0x235401(0x1ae))[a0_0x235401(0x252)](async _0x2ffd53=>{const _0x92231e=a0_0x235401,_0x4db076=new LLMProxyCommand(),_0x508f60=program[_0x92231e(0x1cc)](),_0x116b95=createTDXInstance(_0x508f60),_0x50c3bc={..._0x2ffd53,'port':_0x2ffd53[_0x92231e(0x176)]?parseInt(_0x2ffd53[_0x92231e(0x176)],0xa):undefined},_0xb25a1b=await _0x4db076[_0x92231e(0x175)]({'options':{..._0x508f60,..._0x50c3bc},'args':[],'tdx':_0x116b95});process[_0x92231e(0x1a8)](_0xb25a1b);}),program['command'](a0_0x235401(0x269))[a0_0x235401(0x1d7)](a0_0x235401(0x28b))[a0_0x235401(0x18a)](a0_0x235401(0x24b),a0_0x235401(0x26a),a0_0x235401(0x1f5))[a0_0x235401(0x18a)](a0_0x235401(0x202),a0_0x235401(0x22a))['action'](async _0x5ef3fb=>{const _0x3a62ff=a0_0x235401,_0x4cd0ea=new ClaudeCommand(),_0x48b9f6=program[_0x3a62ff(0x1cc)](),_0x5f48d8=createTDXInstance(_0x48b9f6),_0x279b89=await _0x4cd0ea['run']({'options':{..._0x48b9f6,..._0x5ef3fb},'args':[],'tdx':_0x5f48d8});process[_0x3a62ff(0x1a8)](_0x279b89);}),program[a0_0x235401(0x19c)](a0_0x235401(0x25c))['description'](a0_0x235401(0x201))['option']('--debug',a0_0x235401(0x1d2))['option'](a0_0x235401(0x192),a0_0x235401(0x253))[a0_0x235401(0x252)](async _0x12ac08=>{const _0x38d0ee=a0_0x235401,_0x4e2fa3=new ContextCommand(),_0x11cf51=program[_0x38d0ee(0x1cc)](),_0x2276b0=await _0x4e2fa3[_0x38d0ee(0x175)]({'options':{..._0x11cf51,..._0x12ac08},'args':[],'tdx':null});process['exit'](_0x2276b0);}),program[a0_0x235401(0x19c)](a0_0x235401(0x297))[a0_0x235401(0x1d7)](a0_0x235401(0x27d))[a0_0x235401(0x252)](async(_0x4d4d09,_0x1542d3,_0x346a17)=>{const _0x183851=a0_0x235401,_0xabc7e7=new UseCommand(),_0x58150=program[_0x183851(0x1cc)](),_0x231f68=[];if(_0x4d4d09)_0x231f68['push'](_0x4d4d09);if(_0x1542d3)_0x231f68[_0x183851(0x232)](_0x1542d3);const _0x361d9c=await _0xabc7e7[_0x183851(0x175)]({'options':{..._0x58150,..._0x346a17},'args':_0x231f68,'tdx':null});process[_0x183851(0x1a8)](_0x361d9c);}),program[a0_0x235401(0x19c)]('profiles')['description'](a0_0x235401(0x23c))[a0_0x235401(0x252)](async _0x19e87a=>{const _0x2215e1=a0_0x235401,_0x120eec=new ProfilesCommand(),_0x419856=program['opts'](),_0xc0fdb=await _0x120eec[_0x2215e1(0x175)]({'options':{..._0x419856,..._0x19e87a},'args':[],'tdx':null});process[_0x2215e1(0x1a8)](_0xc0fdb);}),program[a0_0x235401(0x24d)](process[a0_0x235401(0x219)]);!process[a0_0x235401(0x219)]['slice'](0x2)[a0_0x235401(0x1fc)]&&program[a0_0x235401(0x254)]();
|