@treasuredata/tdx 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -48
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client/cdp-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-client.js +1 -1
- package/dist/client/trino-client.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.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/database.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.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_0x20474a=a0_0x402a;(function(_0x1ac18f,_0x58f122){const _0x318a61=a0_0x402a,_0x44adef=_0x1ac18f();while(!![]){try{const _0x3ec3b0=parseInt(_0x318a61(0x1a5))/0x1+-parseInt(_0x318a61(0x177))/0x2*(-parseInt(_0x318a61(0x1c1))/0x3)+parseInt(_0x318a61(0xdc))/0x4+parseInt(_0x318a61(0x17b))/0x5*(parseInt(_0x318a61(0x157))/0x6)+-parseInt(_0x318a61(0x1ff))/0x7*(parseInt(_0x318a61(0x10b))/0x8)+-parseInt(_0x318a61(0xf6))/0x9*(-parseInt(_0x318a61(0x131))/0xa)+-parseInt(_0x318a61(0x10e))/0xb*(parseInt(_0x318a61(0x155))/0xc);if(_0x3ec3b0===_0x58f122)break;else _0x44adef['push'](_0x44adef['shift']());}catch(_0xc2fffd){_0x44adef['push'](_0x44adef['shift']());}}}(a0_0x43dc,0xcb1dd));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX}from'./sdk/index.js';import{GlobalContext}from'./core/global-context.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentDescribeCommand,SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentCreateCommand,ParentSegmentUpdateCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{SegmentPwdCommand}from'./commands/segment-pwd-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';function a0_0x402a(_0x321d9c,_0x420017){const _0x43dcb0=a0_0x43dc();return a0_0x402a=function(_0x402a1e,_0x2f4115){_0x402a1e=_0x402a1e-0xd4;let _0x168587=_0x43dcb0[_0x402a1e];return _0x168587;},a0_0x402a(_0x321d9c,_0x420017);}import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';const __filename=fileURLToPath(import.meta[a0_0x20474a(0x1c3)]),__dirname=dirname(__filename),packageJson=JSON[a0_0x20474a(0x132)](readFileSync(join(__dirname,a0_0x20474a(0x1bb)),a0_0x20474a(0xe5))),program=new Command();program['name']('tdx')['description'](a0_0x20474a(0x1f7))[a0_0x20474a(0xda)](packageJson['version'],a0_0x20474a(0x11f),a0_0x20474a(0x138)),program[a0_0x20474a(0x1d0)](a0_0x20474a(0x1c8),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02,\x20ap03,\x20dev-us01,\x20dev-eu01,\x20stg-us01,\x20stg-jp01,\x20stg-ap03;\x20aliases:\x20us,\x20jp,\x20aws,\x20dev,\x20stg)',a0_0x20474a(0xe2))[a0_0x20474a(0x1d0)]('--format\x20<format>',a0_0x20474a(0x1d1))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1d6),a0_0x20474a(0xee))[a0_0x20474a(0x1d0)](a0_0x20474a(0x198),a0_0x20474a(0x159))['option']('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a0_0x20474a(0x1d0)](a0_0x20474a(0xeb),a0_0x20474a(0x154))[a0_0x20474a(0x1d0)](a0_0x20474a(0x183),a0_0x20474a(0xfb),'40')[a0_0x20474a(0x1d0)]('--color',a0_0x20474a(0x1cc),![])[a0_0x20474a(0x1d0)]('--no-color',a0_0x20474a(0xe8),![])['option'](a0_0x20474a(0x129),a0_0x20474a(0x11a),![])['option'](a0_0x20474a(0x168),a0_0x20474a(0x11d),'30')['option']('--dry-run',a0_0x20474a(0x10a),![])[a0_0x20474a(0x1d0)]('-y,\x20--yes',a0_0x20474a(0xd8),![])['option'](a0_0x20474a(0x202),a0_0x20474a(0x12f))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1b4),a0_0x20474a(0x197))[a0_0x20474a(0x1d0)](a0_0x20474a(0x163),a0_0x20474a(0x1bc))['option'](a0_0x20474a(0x204),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x20474a(0x1d0)]('--parent-segment\x20<name>',a0_0x20474a(0xe0))['option'](a0_0x20474a(0x140),a0_0x20474a(0x110)),program['configureHelp']({'formatHelp':(_0x286a33,_0xc68a7e)=>{const _0x509950=a0_0x20474a,_0x5998cb=_0xc68a7e[_0x509950(0x100)](_0x286a33,_0xc68a7e),_0x266d4d=0x2,_0x451e5c=0x2;function _0x7c8489(_0x3c8f16){const _0x201546=_0x509950;return!!_0x3c8f16[_0x201546(0x119)];}function _0x5bc81b(_0x56861e,_0x1d9230){const _0x4077d4=_0x509950;if(_0x1d9230){const _0x3561c4=''+_0x56861e[_0x4077d4(0xde)](_0x5998cb+_0x451e5c)+_0x1d9230;return _0x3561c4;}return _0x56861e;}function _0x1d9ff0(_0x4e2e77){const _0x3ba189=_0x509950;return _0x4e2e77[_0x3ba189(0x18d)]('\x0a')[_0x3ba189(0x130)](/^/gm,'\x20'[_0x3ba189(0xd7)](_0x266d4d));}const _0x11d405=[];_0x11d405[_0x509950(0x16f)](_0x509950(0x126)+_0xc68a7e[_0x509950(0x11e)](_0x286a33));const _0x3ed124=_0xc68a7e[_0x509950(0x144)](_0x286a33);_0x3ed124&&(_0x11d405['push'](''),_0x11d405[_0x509950(0x16f)](_0x3ed124));const _0x3d12eb=_0x286a33['commands'][_0x509950(0x181)](_0x3ef6cb=>!_0x7c8489(_0x3ef6cb));if(_0x3d12eb[_0x509950(0x14d)]>0x0){const _0x3167e1=_0x3d12eb['map'](_0x2a6c4d=>{const _0xf8e69c=_0x509950,_0x4da77f=_0xc68a7e['subcommandTerm'](_0x2a6c4d),_0x41437e=_0xc68a7e[_0xf8e69c(0x106)](_0x2a6c4d);return _0x5bc81b(_0x4da77f,_0x41437e);});_0x11d405[_0x509950(0x16f)](''),_0x11d405[_0x509950(0x16f)](_0x509950(0xfc)),_0x11d405[_0x509950(0x16f)](_0x1d9ff0(_0x3167e1));}const _0x25d24b=_0x286a33[_0x509950(0x1a9)]['filter'](_0x53cef5=>!_0x7c8489(_0x53cef5));if(_0x25d24b[_0x509950(0x14d)]>0x0){const _0xe05d50=_0x25d24b['map'](_0x25f470=>{const _0xcb2e67=_0x509950,_0x12fc9c=_0xc68a7e[_0xcb2e67(0x1d9)](_0x25f470),_0x3c624f=_0xc68a7e[_0xcb2e67(0x1e1)](_0x25f470);return _0x5bc81b(_0x12fc9c,_0x3c624f);});_0x11d405['push'](''),_0x11d405[_0x509950(0x16f)](_0x509950(0x14a)),_0x11d405[_0x509950(0x16f)](_0x1d9ff0(_0xe05d50));}const _0xd6555a=(_0x286a33[_0x509950(0x16c)]||[])[_0x509950(0x181)](_0x1d44df=>!_0x7c8489(_0x1d44df));if(_0xd6555a['length']>0x0){const _0x1ac4b9=_0xd6555a[_0x509950(0x1d8)](_0x40d847=>{const _0x25f225=_0x509950,_0x4c5cc1=_0xc68a7e[_0x25f225(0x1e2)](_0x40d847),_0x11b27e=_0xc68a7e[_0x25f225(0xf7)](_0x40d847);return _0x5bc81b(_0x4c5cc1,_0x11b27e);});_0x11d405[_0x509950(0x16f)](''),_0x11d405[_0x509950(0x16f)](_0x509950(0x18f)),_0x11d405[_0x509950(0x16f)](_0x1d9ff0(_0x1ac4b9));}return _0x11d405[_0x509950(0x18d)]('\x0a');},'subcommandTerm':_0x3d6891=>{const _0x279448=a0_0x20474a,_0x2c4704=(_0x3d6891['registeredArguments']||[])[_0x279448(0x1d8)](_0x251bec=>_0x251bec[_0x279448(0x12c)]?'<'+_0x251bec[_0x279448(0x185)]()+'>':'['+_0x251bec[_0x279448(0x185)]()+']')[_0x279448(0x18d)]('\x20'),_0x316ff8=_0x3d6891[_0x279448(0x114)](),_0x3ceda5=_0x316ff8[_0x279448(0x14d)]>0x0?_0x3d6891['name']()+',\x20'+_0x316ff8['join'](',\x20'):_0x3d6891['name']();return _0x2c4704?_0x3ceda5+'\x20'+_0x2c4704:_0x3ceda5;}}),program[a0_0x20474a(0x201)](a0_0x20474a(0x17a),_0x35e4fa=>{const _0x4edbd8=a0_0x20474a,_0x3d6d99=_0x35e4fa[_0x4edbd8(0x118)]();if(!_0x3d6d99['format']){if(_0x3d6d99[_0x4edbd8(0x1cd)])_0x3d6d99[_0x4edbd8(0xd5)]=_0x4edbd8(0x1cd);else{if(_0x3d6d99[_0x4edbd8(0x200)])_0x3d6d99[_0x4edbd8(0xd5)]=_0x4edbd8(0x200);else _0x3d6d99['tsv']&&(_0x3d6d99[_0x4edbd8(0xd5)]=_0x4edbd8(0x14f));}}_0x3d6d99['in']&&!_0x3d6d99['database']&&(_0x3d6d99['database']=_0x3d6d99['in']);});function createTDXInstance(_0x20c512){const _0x5ebb14=a0_0x20474a,_0x3fb23e=new GlobalContext(_0x20c512);_0x3fb23e[_0x5ebb14(0x173)](_0x20c512);const _0xf200e7={'site':_0x3fb23e[_0x5ebb14(0x15b)],'apiKey':_0x3fb23e['apiKey'],'verbose':_0x3fb23e['verbose']};return new TDX(_0xf200e7);}program['command']('databases\x20[pattern]')[a0_0x20474a(0xd9)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a0_0x20474a(0x101)](async(_0x1b2e57,_0x54b908)=>{const _0x29e0bf=a0_0x20474a,_0x5d609f=new DatabasesCommand(),_0x1f7df0=program[_0x29e0bf(0x118)](),_0x27b90e=createTDXInstance(_0x1f7df0),_0x215d19=await _0x5d609f[_0x29e0bf(0x193)]({'options':{..._0x1f7df0,..._0x54b908},'args':_0x1b2e57?[_0x1b2e57]:[],'tdx':_0x27b90e});process[_0x29e0bf(0x1db)](_0x215d19);}),program['command'](a0_0x20474a(0x107))[a0_0x20474a(0xd9)](a0_0x20474a(0x14b))['option'](a0_0x20474a(0x1a8),a0_0x20474a(0x1bd))[a0_0x20474a(0x1d0)]('--model\x20<name>','Model\x20name\x20(default:\x20claude-4.5-sonnet)')['option'](a0_0x20474a(0x1b9),'Temperature\x20(0.0-2.0,\x20default:\x200.7)')[a0_0x20474a(0x1d0)](a0_0x20474a(0x17d),a0_0x20474a(0x113))[a0_0x20474a(0x101)](async(_0x25b7b4,_0xdd896b)=>{const _0x5823c7=new ChatCommand(),_0x2ad2ec=program['opts'](),_0x27653d=createTDXInstance(_0x2ad2ec),_0x3707ef=await _0x5823c7['run']({'options':{..._0x2ad2ec,..._0xdd896b},'args':_0x25b7b4,'tdx':_0x27653d});process['exit'](_0x3707ef);});const apiCmd=program[a0_0x20474a(0x117)](a0_0x20474a(0x1ce))[a0_0x20474a(0x1e7)](a0_0x20474a(0x158))[a0_0x20474a(0xf1)](a0_0x20474a(0x125),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')[a0_0x20474a(0x1d0)](a0_0x20474a(0x147),a0_0x20474a(0x124),a0_0x20474a(0x143))[a0_0x20474a(0x1d0)]('--data\x20<data>',a0_0x20474a(0x133))[a0_0x20474a(0x1d0)](a0_0x20474a(0x194),a0_0x20474a(0x141))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1ae),a0_0x20474a(0x19f),(_0x14de36,_0x23f23b)=>{return _0x23f23b?[..._0x23f23b,_0x14de36]:[_0x14de36];})[a0_0x20474a(0x1d0)](a0_0x20474a(0x152),a0_0x20474a(0x161),'td')[a0_0x20474a(0x101)](async(_0x592b64,_0x3daf52)=>{const _0x209a8c=a0_0x20474a;if(!_0x592b64){apiCmd[_0x209a8c(0x1f8)]();return;}const _0x271e0a=new ApiCommand(),_0x18247a=program[_0x209a8c(0x118)](),_0x5bc50e=createTDXInstance(_0x18247a),_0x5ccd73=await _0x271e0a[_0x209a8c(0x193)]({'options':{..._0x18247a,..._0x3daf52},'args':[_0x592b64],'tdx':_0x5bc50e});process['exit'](_0x5ccd73);});program[a0_0x20474a(0x117)](a0_0x20474a(0x115))[a0_0x20474a(0xd9)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')['option'](a0_0x20474a(0x149),a0_0x20474a(0x14e))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1e3),a0_0x20474a(0x1b6))[a0_0x20474a(0x101)](async(_0x5dda8e,_0x4c5e4d)=>{const _0x446432=a0_0x20474a,_0x32a73f=new TablesCommand(),_0x3691bd=program[_0x446432(0x118)](),_0x21b926=createTDXInstance(_0x3691bd);_0x4c5e4d['in']&&(_0x4c5e4d[_0x446432(0x191)]=_0x4c5e4d['in']);const _0x51d24f=await _0x32a73f[_0x446432(0x193)]({'options':{..._0x3691bd,..._0x4c5e4d},'args':_0x5dda8e?[_0x5dda8e]:[],'tdx':_0x21b926});process[_0x446432(0x1db)](_0x51d24f);}),program[a0_0x20474a(0x117)](a0_0x20474a(0x121))[a0_0x20474a(0xd9)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a0_0x20474a(0x1d0)]('-d,\x20--database\x20<database>',a0_0x20474a(0xea))['option']('--in\x20<database>',a0_0x20474a(0x1b6))[a0_0x20474a(0x101)](async(_0x368b23,_0x840112)=>{const _0x212476=a0_0x20474a,_0x4a6a75=new ShowCommand(),_0x32af7b=program[_0x212476(0x118)](),_0x45c6dd=createTDXInstance(_0x32af7b);_0x840112['in']&&(_0x840112[_0x212476(0x191)]=_0x840112['in']);const _0x3b690f=await _0x4a6a75[_0x212476(0x193)]({'options':{..._0x32af7b,..._0x840112},'args':_0x368b23?[_0x368b23]:[],'tdx':_0x45c6dd});process[_0x212476(0x1db)](_0x3b690f);}),program['command'](a0_0x20474a(0x148))[a0_0x20474a(0x153)](a0_0x20474a(0x1af))[a0_0x20474a(0xd9)](a0_0x20474a(0x169))[a0_0x20474a(0x1d0)]('-d,\x20--database\x20<database>',a0_0x20474a(0xea))[a0_0x20474a(0x1d0)]('--in\x20<database>',a0_0x20474a(0x1b6))[a0_0x20474a(0x101)](async(_0xa0b6b1,_0x4bed66)=>{const _0x49176a=a0_0x20474a,_0xdfd118=new DescribeCommand(),_0x5b1259=program[_0x49176a(0x118)](),_0x447cd9=createTDXInstance(_0x5b1259);_0x4bed66['in']&&(_0x4bed66[_0x49176a(0x191)]=_0x4bed66['in']);const _0xc149e=await _0xdfd118['run']({'options':{..._0x5b1259,..._0x4bed66},'args':_0xa0b6b1?[_0xa0b6b1]:[],'tdx':_0x447cd9});process['exit'](_0xc149e);}),program[a0_0x20474a(0x117)](a0_0x20474a(0xfd))[a0_0x20474a(0xd9)](a0_0x20474a(0x1d5))['option'](a0_0x20474a(0x149),'Database\x20to\x20query\x20(default:\x20information_schema)')['option'](a0_0x20474a(0x1e3),a0_0x20474a(0x1b6))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1f3),a0_0x20474a(0x1ad))[a0_0x20474a(0x1d0)]('-f,\x20--file\x20<path>',a0_0x20474a(0x1e5))[a0_0x20474a(0x1d0)]('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a0_0x20474a(0x101)](async(_0x569c08,_0x5b2099)=>{const _0x392f78=a0_0x20474a,_0x27e92e=new QueryCommand(),_0x165592=program[_0x392f78(0x118)](),_0x28529e=createTDXInstance(_0x165592);_0x5b2099['in']&&(_0x5b2099[_0x392f78(0x191)]=_0x5b2099['in']);const _0x7068ad=await _0x27e92e[_0x392f78(0x193)]({'options':{..._0x165592,..._0x5b2099},'args':_0x569c08?[_0x569c08]:[],'tdx':_0x28529e});process[_0x392f78(0x1db)](_0x7068ad);}),program['command']('segments\x20[path]')[a0_0x20474a(0xd9)](a0_0x20474a(0x10d))['option'](a0_0x20474a(0x1ed),a0_0x20474a(0x1ac))[a0_0x20474a(0x1d0)](a0_0x20474a(0x18c),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a0_0x20474a(0x101)](async(_0x391852,_0x1e4de3)=>{const _0x12ea66=a0_0x20474a,_0x327ae1=new SegmentsCommand(),_0x15947c=program[_0x12ea66(0x118)](),_0x57398f=createTDXInstance(_0x15947c),_0x2501a4=await _0x327ae1[_0x12ea66(0x193)]({'options':{..._0x15947c,..._0x1e4de3},'args':_0x391852?[_0x391852]:[],'tdx':_0x57398f});process[_0x12ea66(0x1db)](_0x2501a4);});const segmentCmd=program[a0_0x20474a(0x117)](a0_0x20474a(0x1a7))['description'](a0_0x20474a(0x16d));segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x103))[a0_0x20474a(0xd9)]('Set\x20current\x20segment/folder\x20context\x20for\x20navigation')[a0_0x20474a(0x101)](async(_0x45ae59,_0x2117e4)=>{const _0x335895=a0_0x20474a,_0x4dfdfc=new SegmentUseCommand(),_0x4d1c20=program[_0x335895(0x118)](),_0x9a88a4=createTDXInstance(_0x4d1c20),_0x147aa7=await _0x4dfdfc['run']({'options':{..._0x4d1c20,..._0x2117e4},'args':[_0x45ae59],'tdx':_0x9a88a4});process['exit'](_0x147aa7);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1b2))['description'](a0_0x20474a(0x104))[a0_0x20474a(0x101)](async _0x2d7dea=>{const _0x51152d=a0_0x20474a,_0x1f1306=new SegmentPwdCommand(),_0x358078=program['opts'](),_0x425100=createTDXInstance(_0x358078),_0x4c283d=await _0x1f1306['run']({'options':{..._0x358078,..._0x2d7dea},'args':[],'tdx':_0x425100});process[_0x51152d(0x1db)](_0x4c283d);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0xed))[a0_0x20474a(0x153)](a0_0x20474a(0x1af))[a0_0x20474a(0xd9)]('Show\x20segment\x20details\x20(use\x20parent_name\x20or\x20parent_name/child_name)')[a0_0x20474a(0x101)](async(_0x5637c4,_0xae5ac1)=>{const _0x5bd41d=a0_0x20474a,_0x52093a=new SegmentDescribeCommand(),_0x182b4d=program[_0x5bd41d(0x118)](),_0x142dee=createTDXInstance(_0x182b4d),_0x1cc1bd=await _0x52093a[_0x5bd41d(0x193)]({'options':{..._0x182b4d,..._0xae5ac1},'args':[_0x5637c4],'tdx':_0x142dee});process['exit'](_0x1cc1bd);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x15e))[a0_0x20474a(0xd9)](a0_0x20474a(0x15d))['action'](async(_0x14b1c8,_0x3f961b)=>{const _0x5bba48=a0_0x20474a,_0x1081bd=new SegmentShowCommand(),_0x19a600=program[_0x5bba48(0x118)](),_0x5509bf=createTDXInstance(_0x19a600),_0x47e9c9=await _0x1081bd[_0x5bba48(0x193)]({'options':{..._0x19a600,..._0x3f961b},'args':[_0x14b1c8],'tdx':_0x5509bf});process[_0x5bba48(0x1db)](_0x47e9c9);}),segmentCmd[a0_0x20474a(0x117)]('folders\x20<parent_name>')[a0_0x20474a(0xd9)]('List\x20segment\x20folders\x20under\x20a\x20parent\x20segment')[a0_0x20474a(0x101)](async(_0x250e0b,_0x2a4517)=>{const _0x5b18ef=a0_0x20474a,_0x1c12fd=new SegmentFolderListCommand(),_0x28c083=program[_0x5b18ef(0x118)](),_0x203be2=createTDXInstance(_0x28c083),_0x338d1a=await _0x1c12fd[_0x5b18ef(0x193)]({'options':{..._0x28c083,..._0x2a4517},'args':[_0x250e0b],'tdx':_0x203be2});process['exit'](_0x338d1a);});const folderCmd=segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x109))[a0_0x20474a(0xd9)](a0_0x20474a(0xf5));folderCmd[a0_0x20474a(0x117)](a0_0x20474a(0x19b))[a0_0x20474a(0xd9)](a0_0x20474a(0x1cf))[a0_0x20474a(0x101)](async(_0x5a1a82,_0x5cf846)=>{const _0x5d4ce9=a0_0x20474a,_0x2e058d=new SegmentFolderShowCommand(),_0x40acba=program[_0x5d4ce9(0x118)](),_0xdb1d81=createTDXInstance(_0x40acba),_0x24e6f5=await _0x2e058d[_0x5d4ce9(0x193)]({'options':{..._0x40acba,..._0x5cf846},'args':[_0x5a1a82],'tdx':_0xdb1d81});process[_0x5d4ce9(0x1db)](_0x24e6f5);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x166))[a0_0x20474a(0xd9)]('Get\x20SQL\x20query\x20for\x20segment\x20(use\x20parent_name\x20or\x20parent_name/child_name)')[a0_0x20474a(0x101)](async(_0x18a927,_0x51b5e3)=>{const _0x1bf246=a0_0x20474a,_0x2f73cb=new SegmentSQLCommand(),_0x18865b=program[_0x1bf246(0x118)](),_0xd51e4a=createTDXInstance(_0x18865b),_0x122b32=await _0x2f73cb[_0x1bf246(0x193)]({'options':{..._0x18865b,..._0x51b5e3},'args':[_0x18a927],'tdx':_0xd51e4a});process['exit'](_0x122b32);}),segmentCmd['command'](a0_0x20474a(0x1dc))[a0_0x20474a(0xd9)](a0_0x20474a(0x13c))[a0_0x20474a(0x101)](async(_0x4b8e69,_0x2091ff)=>{const _0xdcb1a5=a0_0x20474a,_0xfaa1dd=new SegmentFieldsCommand(),_0xc98910=program[_0xdcb1a5(0x118)](),_0x595fa8=createTDXInstance(_0xc98910),_0x54db8d=await _0xfaa1dd['run']({'options':{..._0xc98910,..._0x2091ff},'args':[_0x4b8e69],'tdx':_0x595fa8});process[_0xdcb1a5(0x1db)](_0x54db8d);}),segmentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1e8))[a0_0x20474a(0xd9)](a0_0x20474a(0x162))[a0_0x20474a(0x1d0)]('--description\x20<text>',a0_0x20474a(0x182))[a0_0x20474a(0x1d0)]('--rule\x20<json>',a0_0x20474a(0x1fb))['option'](a0_0x20474a(0x17c),'Filtering\x20rule\x20from\x20JSON\x20file')['option'](a0_0x20474a(0x11b),a0_0x20474a(0x145))['option'](a0_0x20474a(0x15f),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a0_0x20474a(0x1d0)](a0_0x20474a(0xec),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a0_0x20474a(0x1d0)](a0_0x20474a(0xff),a0_0x20474a(0x1f6))[a0_0x20474a(0x101)](async(_0x61248f,_0x56f672)=>{const _0x30d343=a0_0x20474a,_0x420091=new SegmentCreateCommand(),_0x41d17a=program[_0x30d343(0x118)](),_0x218965=createTDXInstance(_0x41d17a),_0x5a25d3=await _0x420091['run']({'options':{..._0x41d17a,..._0x56f672},'args':[_0x61248f],'tdx':_0x218965});process[_0x30d343(0x1db)](_0x5a25d3);}),segmentCmd['command']('update\x20<segment_name>')[a0_0x20474a(0xd9)](a0_0x20474a(0x1b7))[a0_0x20474a(0x1d0)]('--name\x20<new_name>',a0_0x20474a(0x1ec))['option'](a0_0x20474a(0x105),'Updated\x20description')[a0_0x20474a(0x1d0)](a0_0x20474a(0x187),a0_0x20474a(0x1fd))[a0_0x20474a(0x1d0)](a0_0x20474a(0x17c),a0_0x20474a(0x1c4))[a0_0x20474a(0x1d0)](a0_0x20474a(0x11b),'Move\x20to\x20folder')[a0_0x20474a(0x1d0)](a0_0x20474a(0x15f),a0_0x20474a(0x1e0))['action'](async(_0x8168bd,_0x43bf68)=>{const _0x21e714=a0_0x20474a,_0x1cd523=new SegmentUpdateCommand(),_0x331e83=program['opts'](),_0x3e908f=createTDXInstance(_0x331e83),_0x237de1=await _0x1cd523[_0x21e714(0x193)]({'options':{..._0x331e83,..._0x43bf68},'args':[_0x8168bd],'tdx':_0x3e908f});process['exit'](_0x237de1);});const parentCmd=segmentCmd['command'](a0_0x20474a(0x13b))[a0_0x20474a(0xd9)](a0_0x20474a(0x1a0));parentCmd['command'](a0_0x20474a(0xe9))[a0_0x20474a(0xd9)](a0_0x20474a(0x1c6))['requiredOption'](a0_0x20474a(0x1ef),a0_0x20474a(0x136))[a0_0x20474a(0x102)]('--table\x20<table>','Master\x20table\x20name')[a0_0x20474a(0x1d0)](a0_0x20474a(0x105),a0_0x20474a(0x170))[a0_0x20474a(0x1d0)](a0_0x20474a(0x184),a0_0x20474a(0x165))[a0_0x20474a(0x1d0)]('--schedule-option\x20<value>',a0_0x20474a(0x1ee))[a0_0x20474a(0x1d0)]('--timezone\x20<tz>',a0_0x20474a(0xf2))['option'](a0_0x20474a(0x1e4),'Attributes\x20as\x20JSON\x20string')[a0_0x20474a(0x1d0)](a0_0x20474a(0x12b),a0_0x20474a(0x160))[a0_0x20474a(0x1d0)]('--behaviors\x20<json>',a0_0x20474a(0x1d7))[a0_0x20474a(0x1d0)]('--behaviors-file\x20<file>',a0_0x20474a(0xf3))['option'](a0_0x20474a(0x13a),a0_0x20474a(0x137))['option'](a0_0x20474a(0x203),a0_0x20474a(0xf9))['action'](async(_0x4673ed,_0x2b150d)=>{const _0xa09097=a0_0x20474a,_0x49d27a=new ParentSegmentCreateCommand(),_0x139929=program['opts'](),_0x5185f2=createTDXInstance(_0x139929),_0x5e5784=await _0x49d27a[_0xa09097(0x193)]({'options':{..._0x139929,..._0x2b150d},'args':[_0x4673ed],'tdx':_0x5185f2});process['exit'](_0x5e5784);}),parentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1b8))[a0_0x20474a(0xd9)]('Update\x20parent\x20segment\x20(audience)')[a0_0x20474a(0x1d0)](a0_0x20474a(0x105),a0_0x20474a(0x1e9))[a0_0x20474a(0x1d0)](a0_0x20474a(0x184),a0_0x20474a(0x122))[a0_0x20474a(0x1d0)]('--schedule-option\x20<value>',a0_0x20474a(0x196))['option'](a0_0x20474a(0x195),'Updated\x20timezone')['option'](a0_0x20474a(0x1f0),a0_0x20474a(0x1c0))[a0_0x20474a(0x1d0)]('--add-attributes-file\x20<file>',a0_0x20474a(0x1b5))[a0_0x20474a(0x1d0)](a0_0x20474a(0x14c),'Add\x20behaviors\x20as\x20JSON\x20string')[a0_0x20474a(0x1d0)]('--add-behaviors-file\x20<file>',a0_0x20474a(0xe3))[a0_0x20474a(0x101)](async(_0x1614a8,_0x3cd715)=>{const _0x222c88=a0_0x20474a,_0x3e5faa=new ParentSegmentUpdateCommand(),_0x1b5865=program['opts'](),_0x408467=createTDXInstance(_0x1b5865),_0x57a42b=await _0x3e5faa[_0x222c88(0x193)]({'options':{..._0x1b5865,..._0x3cd715},'args':[_0x1614a8],'tdx':_0x408467});process[_0x222c88(0x1db)](_0x57a42b);}),folderCmd[a0_0x20474a(0x117)]('create\x20<parent_name>\x20<folder_name>')[a0_0x20474a(0xd9)](a0_0x20474a(0xe4))['option'](a0_0x20474a(0x105),'Folder\x20description')[a0_0x20474a(0x1d0)](a0_0x20474a(0x174),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a0_0x20474a(0x101)](async(_0x1759b7,_0x3aff84,_0xf67893)=>{const _0x57faba=a0_0x20474a,_0x51944b=new SegmentFolderCreateCommand(),_0x125d83=program[_0x57faba(0x118)](),_0x3d4677=createTDXInstance(_0x125d83),_0x81f05a=await _0x51944b['run']({'options':{..._0x125d83,..._0xf67893},'args':[_0x1759b7,_0x3aff84],'tdx':_0x3d4677});process['exit'](_0x81f05a);}),program[a0_0x20474a(0x117)](a0_0x20474a(0xe1))[a0_0x20474a(0xd9)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a0_0x20474a(0x101)](async(_0x187ebb,_0x336145)=>{const _0xb74fab=a0_0x20474a,_0x2dcd5e=new ActivationsCommand(),_0x4c23b6=program[_0xb74fab(0x118)](),_0x10830e=createTDXInstance(_0x4c23b6),_0x2725d1=await _0x2dcd5e[_0xb74fab(0x193)]({'options':{..._0x4c23b6,..._0x336145},'args':[_0x187ebb],'tdx':_0x10830e});process['exit'](_0x2725d1);});const workflowCmd=program['command'](a0_0x20474a(0x180))[a0_0x20474a(0x153)]('wf')[a0_0x20474a(0xd9)]('Workflow\x20(Digdag)\x20management\x20commands');workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1c2))[a0_0x20474a(0xd9)](a0_0x20474a(0x199))[a0_0x20474a(0x101)](async(_0x135173,_0x33aecc)=>{const _0x2a7767=a0_0x20474a,_0x33a05b=new WorkflowProjectsCommand(),_0xbb7b52=program['opts'](),_0xff1779=createTDXInstance(_0xbb7b52),_0x6bcc4=await _0x33a05b[_0x2a7767(0x193)]({'options':{..._0xbb7b52,..._0x33aecc},'args':_0x135173?[_0x135173]:[],'tdx':_0xff1779});process[_0x2a7767(0x1db)](_0x6bcc4);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0xf0))[a0_0x20474a(0x153)]('ls')[a0_0x20474a(0xd9)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')['action'](async(_0x5ed26b,_0x475fdd)=>{const _0x48e9f8=a0_0x20474a,_0x3eb52b=new WorkflowWorkflowsCommand(),_0xfbc056=program[_0x48e9f8(0x118)](),_0x3963ae=createTDXInstance(_0xfbc056),_0x25cbc1=await _0x3eb52b[_0x48e9f8(0x193)]({'options':{..._0xfbc056,..._0x475fdd},'args':_0x5ed26b?[_0x5ed26b]:[],'tdx':_0x3963ae});process[_0x48e9f8(0x1db)](_0x25cbc1);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1ea))[a0_0x20474a(0xd9)](a0_0x20474a(0xef))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1a6),a0_0x20474a(0x134))[a0_0x20474a(0x1d0)](a0_0x20474a(0x12a),a0_0x20474a(0x18a))[a0_0x20474a(0x1d0)](a0_0x20474a(0x16b),a0_0x20474a(0x11c))[a0_0x20474a(0x101)](async(_0x41f00e,_0x164166)=>{const _0x2e4b0e=a0_0x20474a,_0x15c7e1=new WorkflowSessionsCommand(),_0x32281b=program[_0x2e4b0e(0x118)](),_0x24fd68=createTDXInstance(_0x32281b),_0x1ac4b1=await _0x15c7e1[_0x2e4b0e(0x193)]({'options':{..._0x32281b,..._0x164166},'args':_0x41f00e?[_0x41f00e]:[],'tdx':_0x24fd68});process[_0x2e4b0e(0x1db)](_0x1ac4b1);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x150))['description']('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')['option'](a0_0x20474a(0x19e),a0_0x20474a(0x1d4))[a0_0x20474a(0x101)](async(_0x6437eb,_0x3b5f29)=>{const _0x2994e0=a0_0x20474a,_0x361872=new WorkflowAttemptsCommand(),_0x56985b=program['opts'](),_0x4a928f=createTDXInstance(_0x56985b),_0x18d45d=await _0x361872['run']({'options':{..._0x56985b,..._0x3b5f29},'args':_0x6437eb?[_0x6437eb]:[],'tdx':_0x4a928f});process[_0x2994e0(0x1db)](_0x18d45d);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x164))[a0_0x20474a(0xd9)](a0_0x20474a(0x127))[a0_0x20474a(0x101)](async(_0x2efd64,_0x3c302b)=>{const _0x146548=new WorkflowAttemptCommand(),_0x5c4513=program['opts'](),_0x59c9bd=createTDXInstance(_0x5c4513),_0x6ece6f=await _0x146548['run']({'options':{..._0x5c4513,..._0x3c302b},'args':[_0x2efd64],'tdx':_0x59c9bd});process['exit'](_0x6ece6f);}),workflowCmd['command'](a0_0x20474a(0x1c5))['description'](a0_0x20474a(0x135))[a0_0x20474a(0x1d0)](a0_0x20474a(0x190),'Include\x20subtasks\x20in\x20the\x20output')[a0_0x20474a(0x101)](async(_0x5cc21e,_0x458722)=>{const _0x174577=a0_0x20474a,_0x3b7063=new WorkflowTasksCommand(),_0x122dd4=program[_0x174577(0x118)](),_0x1dee09=createTDXInstance(_0x122dd4),_0x21d64a=await _0x3b7063['run']({'options':{..._0x122dd4,..._0x458722},'args':[_0x5cc21e],'tdx':_0x1dee09});process[_0x174577(0x1db)](_0x21d64a);}),workflowCmd[a0_0x20474a(0x117)]('logs\x20<attempt-id>\x20<task-name>')[a0_0x20474a(0xd9)](a0_0x20474a(0x178))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1aa),'Starting\x20offset\x20for\x20logs\x20(default:\x200)',_0x503d3c=>parseInt(_0x503d3c,0xa),0x0)[a0_0x20474a(0x101)](async(_0x288535,_0x39e648,_0x1df084)=>{const _0xaf9dfe=a0_0x20474a,_0x42f053=new WorkflowLogsCommand(),_0x3810d0=program[_0xaf9dfe(0x118)](),_0x20d406=createTDXInstance(_0x3810d0),_0x15936d=await _0x42f053[_0xaf9dfe(0x193)]({'options':{..._0x3810d0,..._0x1df084},'args':[_0x288535,_0x39e648],'tdx':_0x20d406});process[_0xaf9dfe(0x1db)](_0x15936d);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x10f))[a0_0x20474a(0xd9)](a0_0x20474a(0x18e))['option'](a0_0x20474a(0x151),a0_0x20474a(0x205))[a0_0x20474a(0x101)](async(_0x4258b7,_0x52e3b)=>{const _0x431aab=a0_0x20474a,_0x389a30=new WorkflowKillCommand(),_0x45b4b4=program['opts'](),_0x3924d7=createTDXInstance(_0x45b4b4),_0x2e6c40=await _0x389a30[_0x431aab(0x193)]({'options':{..._0x45b4b4,..._0x52e3b},'args':[_0x4258b7],'tdx':_0x3924d7});process[_0x431aab(0x1db)](_0x2e6c40);}),workflowCmd['command'](a0_0x20474a(0x1c9))['description']('Retry\x20a\x20session\x20or\x20attempt\x20(prefix\x20with\x20session:\x20or\x20attempt:)')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1fa),'Resume\x20from\x20specific\x20task\x20(session\x20retry\x20only)')[a0_0x20474a(0x1d0)](a0_0x20474a(0x206),a0_0x20474a(0xf8))[a0_0x20474a(0x1d0)](a0_0x20474a(0x10c),a0_0x20474a(0xfa))[a0_0x20474a(0x1d0)]('--force',a0_0x20474a(0x192))[a0_0x20474a(0x101)](async(_0x256e06,_0x3c4c83)=>{const _0x43f10a=a0_0x20474a,_0xc6d924=new WorkflowRetryCommand(),_0x58da3e=program[_0x43f10a(0x118)](),_0x581422=createTDXInstance(_0x58da3e),_0x3b4805=await _0xc6d924[_0x43f10a(0x193)]({'options':{..._0x58da3e,..._0x3c4c83},'args':[_0x256e06],'tdx':_0x581422});process[_0x43f10a(0x1db)](_0x3b4805);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1da))[a0_0x20474a(0xd9)](a0_0x20474a(0x1cb))[a0_0x20474a(0x1d0)](a0_0x20474a(0x189),a0_0x20474a(0x1bf))[a0_0x20474a(0x101)](async(_0xfa635b,_0x7af6d6,_0x148ca7)=>{const _0x4573b6=a0_0x20474a,_0x5e03ca=new WorkflowDownloadCommand(),_0x3529fc=program[_0x4573b6(0x118)](),_0x48933b=createTDXInstance(_0x3529fc),_0x1d9289=await _0x5e03ca['run']({'options':{..._0x3529fc,..._0x148ca7},'args':[_0xfa635b,_0x7af6d6||'.'],'tdx':_0x48933b});process[_0x4573b6(0x1db)](_0x1d9289);}),workflowCmd['command'](a0_0x20474a(0x188))[a0_0x20474a(0xd9)](a0_0x20474a(0xdf))[a0_0x20474a(0x1d0)](a0_0x20474a(0x111),a0_0x20474a(0x1a4))[a0_0x20474a(0x1d0)](a0_0x20474a(0x189),'Revision\x20name\x20(default:\x20timestamp)')[a0_0x20474a(0x1d0)]('--skip-validation',a0_0x20474a(0x12d))[a0_0x20474a(0x101)](async(_0xae9a71,_0x402523)=>{const _0x329d82=a0_0x20474a,_0xd99b1e=new WorkflowPushCommand(),_0x14ad1b=program[_0x329d82(0x118)](),_0x2dbd8b=createTDXInstance(_0x14ad1b),_0x250e23=await _0xd99b1e[_0x329d82(0x193)]({'options':{..._0x14ad1b,..._0x402523},'args':_0xae9a71?[_0xae9a71]:[],'tdx':_0x2dbd8b});process[_0x329d82(0x1db)](_0x250e23);}),workflowCmd[a0_0x20474a(0x117)](a0_0x20474a(0x179))[a0_0x20474a(0xd9)](a0_0x20474a(0x1ba))['action'](async(_0x40731d,_0x1bcbc6)=>{const _0xc605a7=a0_0x20474a,_0x51d7ae=new WorkflowDeleteCommand(),_0x34438c=program[_0xc605a7(0x118)](),_0x5c2834=createTDXInstance(_0x34438c),_0x52bb5e=await _0x51d7ae[_0xc605a7(0x193)]({'options':{..._0x34438c,..._0x1bcbc6},'args':[_0x40731d],'tdx':_0x5c2834});process[_0xc605a7(0x1db)](_0x52bb5e);}),program[a0_0x20474a(0x117)](a0_0x20474a(0xe7))['description']('List\x20jobs')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1a6),a0_0x20474a(0x1df))[a0_0x20474a(0x101)](async _0x19abb5=>{const _0x4a6b8c=a0_0x20474a,_0x12663a=new JobListCommand(),_0x18877c=program[_0x4a6b8c(0x118)](),_0x48d68a=createTDXInstance(_0x18877c),_0x13e214=await _0x12663a[_0x4a6b8c(0x193)]({'options':{..._0x18877c,..._0x19abb5},'args':[],'tdx':_0x48d68a});process[_0x4a6b8c(0x1db)](_0x13e214);});const jobCmd=program[a0_0x20474a(0x117)](a0_0x20474a(0x1ab))[a0_0x20474a(0xd9)]('Job\x20management\x20commands');jobCmd[a0_0x20474a(0x117)]('show\x20<job-id>')[a0_0x20474a(0xd9)](a0_0x20474a(0x18b))[a0_0x20474a(0x101)](async(_0x144265,_0x59f221)=>{const _0x16130f=a0_0x20474a,_0xef295f=new JobShowCommand(),_0x1fb9f4=program['opts'](),_0x17792e=createTDXInstance(_0x1fb9f4),_0x144db4=await _0xef295f[_0x16130f(0x193)]({'options':{..._0x1fb9f4,..._0x59f221},'args':[_0x144265],'tdx':_0x17792e});process[_0x16130f(0x1db)](_0x144db4);}),jobCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1eb))['description']('Kill\x20a\x20job')[a0_0x20474a(0x101)](async(_0x22835c,_0x1f9667)=>{const _0x18ab0e=a0_0x20474a,_0x4d3973=new JobKillCommand(),_0x1e02a9=program[_0x18ab0e(0x118)](),_0x529088=createTDXInstance(_0x1e02a9),_0x296e17=await _0x4d3973[_0x18ab0e(0x193)]({'options':{..._0x1e02a9,..._0x1f9667},'args':[_0x22835c],'tdx':_0x529088});process[_0x18ab0e(0x1db)](_0x296e17);}),jobCmd[a0_0x20474a(0x117)](a0_0x20474a(0xe6))[a0_0x20474a(0xd9)](a0_0x20474a(0x186))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1d3),a0_0x20474a(0x172),a0_0x20474a(0xf4))[a0_0x20474a(0x1d0)](a0_0x20474a(0x194),a0_0x20474a(0x207))[a0_0x20474a(0x1d0)](a0_0x20474a(0x176),a0_0x20474a(0x1de),'information_schema')[a0_0x20474a(0x101)](async(_0x2b5a3a,_0x5bd25c)=>{const _0x99b405=a0_0x20474a,_0xcf5b52=new JobSubmitCommand(),_0x2c453d=program[_0x99b405(0x118)](),_0x557ff4=createTDXInstance(_0x2c453d),_0x358fb6=await _0xcf5b52['run']({'options':{..._0x2c453d,..._0x5bd25c},'args':_0x2b5a3a?[_0x2b5a3a]:[],'tdx':_0x557ff4});process[_0x99b405(0x1db)](_0x358fb6);}),jobCmd['command'](a0_0x20474a(0x17f))[a0_0x20474a(0xd9)](a0_0x20474a(0x1e6))['action'](async(_0x1bc5dd,_0x281950)=>{const _0x12d7b5=a0_0x20474a,_0x58185e=new JobResultCommand(),_0x4c027b=program[_0x12d7b5(0x118)](),_0x75f5a1=createTDXInstance(_0x4c027b),_0x2fd6e1=await _0x58185e[_0x12d7b5(0x193)]({'options':{..._0x4c027b,..._0x281950},'args':[_0x1bc5dd],'tdx':_0x75f5a1});process['exit'](_0x2fd6e1);});function a0_0x43dc(){const _0x59d4fb=['4000','--verbose','--from\x20<timestamp>','--attributes-file\x20<file>','required','Skip\x20validation\x20of\x20.dig\x20files','use\x20<project-name>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','replace','1180WVCJLs','parse','Request\x20body\x20as\x20JSON\x20string','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Show\x20tasks\x20for\x20an\x20attempt','Master\x20database\x20name','Customer\x20group\x20as\x20JSON\x20string','output\x20the\x20version\x20number','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration','--customer-group\x20<json>','parent','List\x20available\x20fields\x20for\x20segmentation','--max-tool-iterations\x20<n>','claude','--debug','--llm-project\x20<name>','Read\x20request\x20body\x20from\x20file','history\x20[chat-id]','GET','commandDescription','Folder\x20name\x20for\x20organization','Show\x20agent\x20details','-X,\x20--method\x20<method>','describe\x20[table]','-d,\x20--database\x20<database>','Options:','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--add-behaviors\x20<json>','length','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','tsv','attempts\x20[project]','--reason\x20<text>','--type\x20<api_type>','alias','Save\x20output\x20to\x20file','5389596cFgUXu','Delete\x20an\x20LLM\x20project','415014XwSjlR','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--project\x20<name>','site','List\x20available\x20LLM\x20models','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(use\x20parent_name\x20or\x20parent_name/child_name)','show\x20<segment_name>','--kind\x20<type>','Attributes\x20from\x20JSON\x20file','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Create\x20child\x20segment\x20(use\x20parent_name/child_name)','-d,\x20--database\x20<name>','attempt\x20<attempt-id>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','sql\x20<segment_name>','Agent\x20description','--timeout\x20<seconds>','Describe\x20table\x20schema','Agent\x20name','--to\x20<timestamp>','registeredArguments','CDP\x20segment\x20management\x20commands','Clear\x20session\x20context','push','Parent\x20segment\x20description','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','injectIntoOptions','--parent-folder\x20<name>','System\x20prompt/instructions\x20(default:\x20empty)','--database\x20<name>','219502ETyyaP','Show\x20logs\x20for\x20a\x20specific\x20task','delete\x20<project-name-or-id>','preAction','60kKpesF','--rule-file\x20<file>','--new','models','result\x20<job-id>','workflow','filter','Segment\x20description','--limit\x20<rows>','--schedule-type\x20<type>','name','Submit\x20a\x20job','--rule\x20<json>','push\x20[project-name-or-dir]','--revision\x20<revision>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Show\x20job\x20details','--max-depth\x20<depth>','join','Kill\x20a\x20running\x20attempt','Arguments:','--include-subtasks','database','Force\x20retry\x20even\x20if\x20not\x20failed\x20(attempt\x20retry\x20only)','run','-f,\x20--file\x20<path>','--timezone\x20<tz>','Updated\x20schedule\x20option','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--jsonl','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','show\x20<folder_ref>','--port\x20<number>','use\x20[resource]\x20[value]','--include-retried','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Parent\x20segment\x20(audience)\x20management','--system-prompt\x20<text>','Enable\x20debug\x20mode\x20(logs\x20proxy\x20request/response\x20to\x20stderr)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Override\x20project\x20name','1654511Ggatte','--status\x20<status>','segment','--agent\x20<ref>','options','--offset\x20<number>','job','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Trino\x20catalog\x20(default:\x20td)','-H,\x20--header\x20<header>','desc','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Temperature\x20(0.0-2.0,\x20default:\x200.7)','pwd','argv','--profile\x20<name>','Add\x20attributes\x20from\x20JSON\x20file','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Update\x20child\x20segment\x20(use\x20parent_name/child_name)','update\x20<name>','--temperature\x20<n>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','../package.json','Database\x20to\x20use\x20(overrides\x20context)','Agent\x20reference\x20(project-name/agent-name)','--starter-message\x20<text>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Add\x20attributes\x20as\x20JSON\x20string','3nWZKkD','projects\x20[pattern]','url','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','tasks\x20<attempt-id>','Create\x20parent\x20segment\x20(audience)','update\x20<agent-name>','--site\x20<site>','retry\x20<session-id|attempt-id>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','json','api\x20[endpoint]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','option','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','port','--job-type\x20<type>','Include\x20retried\x20attempts','Run\x20Trino\x20query\x20with\x20streaming\x20results','--json','Behaviors\x20as\x20JSON\x20string','map','optionTerm','download\x20<project-name>\x20[output-dir]','exit','fields\x20<parent_name>','--model\x20<name>','Database\x20name\x20(default:\x20information_schema)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','optionDescription','argumentTerm','--in\x20<database>','--attributes\x20<json>','Read\x20SQL\x20query\x20from\x20file','Get\x20job\x20results','summary','create\x20<segment_name>','Updated\x20description','sessions\x20[project]','kill\x20<job-id>','New\x20segment\x20name','-r,\x20--recursive','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--database\x20<db>','--add-attributes\x20<json>','Agent\x20prompt/instructions','delete\x20<name>','--catalog\x20<catalog>','agent','--name\x20<text>','Skip\x20population\x20counting','AI-native\x20CLI\x20for\x20Treasure\x20Data','help','LLM\x20agent\x20management','--from-task\x20<task>','Filtering\x20rule\x20as\x20JSON\x20string','Starter\x20message','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','profiles','77WqzHKa','jsonl','hook','--session\x20<id>','--customer-group-file\x20<file>','--in\x20<name>','Reason\x20for\x20killing\x20the\x20attempt','--resume-from\x20<task>','Read\x20query\x20from\x20file','--clear','format','proxy','repeat','Skip\x20confirmation\x20prompts','description','version','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','5031996DrMKaW','Enable\x20debug\x20mode\x20(logs\x20request/response\x20to\x20stderr)','padEnd','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','activations\x20<segment_name>','us01','Add\x20behaviors\x20from\x20JSON\x20file','Create\x20segment\x20folder','utf-8','submit\x20[query]','jobs','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','create\x20<name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--output\x20<file>','--invisible','describe\x20<segment_name>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','workflows\x20[project]','addHelpText','Timezone\x20(e.g.,\x20America/Los_Angeles)','Behaviors\x20from\x20JSON\x20file','trino','Segment\x20folder\x20management','111573imeQNd','argumentDescription','Resume\x20from\x20specific\x20task\x20(attempt\x20retry\x20only)','Customer\x20group\x20from\x20JSON\x20file','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Commands:','query\x20[sql]','slice','--no-count-population','padWidth','action','requiredOption','use\x20<path>','Show\x20current\x20segment/folder\x20context','--description\x20<text>','subcommandDescription','chat\x20[message...]','sonnet','folder','Preview\x20operation\x20without\x20executing','973992LyZlrS','--params\x20<json>','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','77GYXSdv','kill\x20<attempt-id>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--name\x20<name>','show\x20<agent-name>','Start\x20a\x20new\x20chat\x20session','aliases','tables\x20[pattern]','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','command','opts','hidden','Enable\x20verbose\x20logging','--folder\x20<name>','End\x20time\x20filter\x20(ISO\x208601\x20format)','Set\x20operation\x20timeout\x20in\x20seconds','commandUsage','-v,\x20--version','claude-4.5-sonnet','show\x20[table]','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','after','Usage:\x20','Show\x20specific\x20attempt\x20details'];a0_0x43dc=function(){return _0x59d4fb;};return a0_0x43dc();}const llmCmd=program[a0_0x20474a(0x117)]('llm')[a0_0x20474a(0xd9)](a0_0x20474a(0xdb));llmCmd['command'](a0_0x20474a(0x12e))[a0_0x20474a(0xd9)](a0_0x20474a(0x19a))['action'](async(_0x366708,_0x56dbee)=>{const _0x52bf00=a0_0x20474a,_0x2d7713=new LLMUseCommand(),_0x4b8d16=program[_0x52bf00(0x118)](),_0x3a22cf=createTDXInstance(_0x4b8d16),_0x898f7a=await _0x2d7713['run']({'options':{..._0x4b8d16,..._0x56dbee},'args':[_0x366708],'tdx':_0x3a22cf});process['exit'](_0x898f7a);}),llmCmd[a0_0x20474a(0x117)](a0_0x20474a(0x17e))[a0_0x20474a(0xd9)](a0_0x20474a(0x15c))['action'](async _0x336a1e=>{const _0x374d39=a0_0x20474a,_0x521c8e=new LLMModelsCommand(),_0x19f1e8=program[_0x374d39(0x118)](),_0x2c3055=createTDXInstance(_0x19f1e8),_0x17843b=await _0x521c8e[_0x374d39(0x193)]({'options':{..._0x19f1e8,..._0x336a1e},'args':[],'tdx':_0x2c3055});process[_0x374d39(0x1db)](_0x17843b);}),llmCmd['command'](a0_0x20474a(0x1c2))[a0_0x20474a(0xd9)](a0_0x20474a(0x171))[a0_0x20474a(0x101)](async(_0x2ecb1c,_0x48814c)=>{const _0x17926a=a0_0x20474a,_0x32a9c6=new LLMProjectsCommand(),_0x39934c=program[_0x17926a(0x118)](),_0xcb7406=createTDXInstance(_0x39934c),_0x5f127a=await _0x32a9c6['run']({'options':{..._0x39934c,..._0x48814c},'args':_0x2ecb1c?[_0x2ecb1c]:[],'tdx':_0xcb7406});process[_0x17926a(0x1db)](_0x5f127a);});const projectCmd=llmCmd[a0_0x20474a(0x117)]('project')[a0_0x20474a(0xd9)]('LLM\x20project\x20management');projectCmd[a0_0x20474a(0x117)](a0_0x20474a(0xe9))[a0_0x20474a(0xd9)]('Create\x20a\x20new\x20LLM\x20project')[a0_0x20474a(0x1d0)](a0_0x20474a(0x105),'Project\x20description')[a0_0x20474a(0x101)](async(_0x35b8ba,_0x1d64ca)=>{const _0x16fcd1=a0_0x20474a,_0x22e1b2=new LLMProjectCreateCommand(),_0x55fd75=program['opts'](),_0xd57d56=createTDXInstance(_0x55fd75),_0x10f82b=await _0x22e1b2[_0x16fcd1(0x193)]({'options':{..._0x55fd75,..._0x1d64ca},'args':[_0x35b8ba],'tdx':_0xd57d56});process[_0x16fcd1(0x1db)](_0x10f82b);}),projectCmd[a0_0x20474a(0x117)](a0_0x20474a(0x1f2))['description'](a0_0x20474a(0x156))[a0_0x20474a(0x101)](async(_0x81b2fc,_0xf014ac)=>{const _0x1edf3d=a0_0x20474a,_0x543b2b=new LLMProjectDeleteCommand(),_0xc7447c=program['opts'](),_0x10f570=createTDXInstance(_0xc7447c),_0x330aaf=await _0x543b2b[_0x1edf3d(0x193)]({'options':{..._0xc7447c,..._0xf014ac},'args':[_0x81b2fc],'tdx':_0x10f570});process[_0x1edf3d(0x1db)](_0x330aaf);}),llmCmd[a0_0x20474a(0x117)]('agents\x20[pattern]')[a0_0x20474a(0xd9)]('List\x20agents\x20in\x20current\x20project\x20(optionally\x20filtered\x20by\x20pattern)')[a0_0x20474a(0x101)](async(_0x1f0eec,_0x25ef9d)=>{const _0x516be0=a0_0x20474a,_0x45d8e6=new LLMAgentsCommand(),_0x367c5e=program['opts'](),_0xc8f1d0=createTDXInstance(_0x367c5e),_0x63c854=await _0x45d8e6[_0x516be0(0x193)]({'options':{..._0x367c5e,..._0x25ef9d},'args':_0x1f0eec?[_0x1f0eec]:[],'tdx':_0xc8f1d0});process[_0x516be0(0x1db)](_0x63c854);});const agentCmd=llmCmd['command'](a0_0x20474a(0x1f4))[a0_0x20474a(0xd9)](a0_0x20474a(0x1f9));agentCmd[a0_0x20474a(0x117)](a0_0x20474a(0x112))['description'](a0_0x20474a(0x146))[a0_0x20474a(0x101)](async(_0x1f6830,_0x3541de)=>{const _0x2312a3=a0_0x20474a,_0x463bd7=new LLMAgentShowCommand(),_0x78152=program[_0x2312a3(0x118)](),_0x176711=createTDXInstance(_0x78152),_0xa38a6d=await _0x463bd7[_0x2312a3(0x193)]({'options':{..._0x78152,..._0x3541de},'args':[_0x1f6830],'tdx':_0x176711});process[_0x2312a3(0x1db)](_0xa38a6d);}),agentCmd[a0_0x20474a(0x117)]('create\x20<name>')[a0_0x20474a(0xd9)](a0_0x20474a(0x1b0))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1a1),a0_0x20474a(0x175))['option'](a0_0x20474a(0x1dd),a0_0x20474a(0x1ca),a0_0x20474a(0x120))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1be),a0_0x20474a(0x1fc))[a0_0x20474a(0x1d0)](a0_0x20474a(0x13d),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1b9),a0_0x20474a(0x1b1),'0.7')[a0_0x20474a(0x101)](async(_0x2e34f0,_0x314e8b)=>{const _0xb3102e=a0_0x20474a,_0x571c26=new LLMAgentCreateCommand(),_0x512db5=program[_0xb3102e(0x118)](),_0x3ce8b4=createTDXInstance(_0x512db5),_0x3c8684=await _0x571c26['run']({'options':{..._0x512db5,..._0x314e8b},'args':[_0x2e34f0],'tdx':_0x3ce8b4});process['exit'](_0x3c8684);}),agentCmd['command'](a0_0x20474a(0x1c7))[a0_0x20474a(0xd9)]('Update\x20an\x20existing\x20agent')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1f5),a0_0x20474a(0x16a))[a0_0x20474a(0x1d0)]('--prompt\x20<text>',a0_0x20474a(0x1f1))[a0_0x20474a(0x1d0)]('--description\x20<text>',a0_0x20474a(0x167))[a0_0x20474a(0x1d0)](a0_0x20474a(0x1be),'Starter\x20message')[a0_0x20474a(0x101)](async(_0x377262,_0x66e5a6)=>{const _0x127b11=a0_0x20474a,_0x5aff3e=new LLMAgentUpdateCommand(),_0x3a69fd=program[_0x127b11(0x118)](),_0x47c1d4=createTDXInstance(_0x3a69fd),_0x1a444f=await _0x5aff3e['run']({'options':{..._0x3a69fd,..._0x66e5a6},'args':[_0x377262],'tdx':_0x47c1d4});process[_0x127b11(0x1db)](_0x1a444f);}),agentCmd['command']('delete\x20<agent-name>')[a0_0x20474a(0xd9)]('Delete\x20an\x20agent')[a0_0x20474a(0x101)](async(_0x5d6ea6,_0x163d58)=>{const _0x10f747=a0_0x20474a,_0x37ff61=new LLMAgentDeleteCommand(),_0x19bf32=program['opts'](),_0x12f404=createTDXInstance(_0x19bf32),_0x5d68d8=await _0x37ff61[_0x10f747(0x193)]({'options':{..._0x19bf32,..._0x163d58},'args':[_0x5d6ea6],'tdx':_0x12f404});process[_0x10f747(0x1db)](_0x5d68d8);}),llmCmd[a0_0x20474a(0x117)](a0_0x20474a(0x142))[a0_0x20474a(0xd9)](a0_0x20474a(0x123))['action'](async(_0x238da0,_0x35d4e9)=>{const _0x445263=a0_0x20474a,_0x4b1ffa=new LLMHistoryCommand(),_0x2d85ac=program[_0x445263(0x118)](),_0x4c391c=createTDXInstance(_0x2d85ac),_0x55e721=await _0x4b1ffa[_0x445263(0x193)]({'options':{..._0x2d85ac,..._0x35d4e9},'args':_0x238da0?[_0x238da0]:[],'tdx':_0x4c391c});process[_0x445263(0x1db)](_0x55e721);}),llmCmd[a0_0x20474a(0x117)](a0_0x20474a(0xd6))[a0_0x20474a(0xd9)](a0_0x20474a(0x139))[a0_0x20474a(0x1d0)](a0_0x20474a(0x19c),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a0_0x20474a(0x128))[a0_0x20474a(0x1d0)](a0_0x20474a(0x15a),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')['option']('--agent\x20<name>',a0_0x20474a(0x116))['option'](a0_0x20474a(0x13f),a0_0x20474a(0xdd))[a0_0x20474a(0x101)](async _0x3d1565=>{const _0x102f15=a0_0x20474a,_0x4e540c=new LLMProxyCommand(),_0x176ad0=program[_0x102f15(0x118)](),_0x19d7ab=createTDXInstance(_0x176ad0),_0x57c7e8={..._0x3d1565,'port':_0x3d1565[_0x102f15(0x1d2)]?parseInt(_0x3d1565[_0x102f15(0x1d2)],0xa):undefined},_0xaab27d=await _0x4e540c[_0x102f15(0x193)]({'options':{..._0x176ad0,..._0x57c7e8},'args':[],'tdx':_0x19d7ab});process[_0x102f15(0x1db)](_0xaab27d);}),program['command'](a0_0x20474a(0x13e))[a0_0x20474a(0xd9)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a0_0x20474a(0x1d0)](a0_0x20474a(0x1dd),a0_0x20474a(0x1a3),a0_0x20474a(0x108))[a0_0x20474a(0x1d0)]('--debug',a0_0x20474a(0x1a2))['action'](async _0xf23b81=>{const _0x288180=a0_0x20474a,_0x1aaceb=new ClaudeCommand(),_0x2b7846=program['opts'](),_0x347a96=createTDXInstance(_0x2b7846),_0x4b5696=await _0x1aaceb[_0x288180(0x193)]({'options':{..._0x2b7846,..._0xf23b81},'args':[],'tdx':_0x347a96});process[_0x288180(0x1db)](_0x4b5696);}),program['command']('context')['description']('Show\x20current\x20resolved\x20context')['option'](a0_0x20474a(0x13f),'Show\x20context\x20with\x20sources\x20(for\x20debugging)')[a0_0x20474a(0x1d0)](a0_0x20474a(0xd4),a0_0x20474a(0x16e))[a0_0x20474a(0x101)](async _0x439970=>{const _0x3f5c3a=a0_0x20474a,_0x44855b=new ContextCommand(),_0x6a8376=program[_0x3f5c3a(0x118)](),_0x22dc98=await _0x44855b[_0x3f5c3a(0x193)]({'options':{..._0x6a8376,..._0x439970},'args':[],'tdx':null});process[_0x3f5c3a(0x1db)](_0x22dc98);}),program[a0_0x20474a(0x117)](a0_0x20474a(0x19d))[a0_0x20474a(0xd9)]('Set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20profile)')[a0_0x20474a(0x101)](async(_0x5b8459,_0x1f93a8,_0x26c4f6)=>{const _0x332158=a0_0x20474a,_0x202689=new UseCommand(),_0x35fe9f=program['opts'](),_0x1abe48=[];if(_0x5b8459)_0x1abe48['push'](_0x5b8459);if(_0x1f93a8)_0x1abe48[_0x332158(0x16f)](_0x1f93a8);const _0x3c1026=await _0x202689['run']({'options':{..._0x35fe9f,..._0x26c4f6},'args':_0x1abe48,'tdx':null});process[_0x332158(0x1db)](_0x3c1026);}),program[a0_0x20474a(0x117)](a0_0x20474a(0x1fe))['description']('List\x20all\x20available\x20profiles')['action'](async _0x581e91=>{const _0x58cffb=a0_0x20474a,_0x2c2f74=new ProfilesCommand(),_0x133e1a=program[_0x58cffb(0x118)](),_0xf09bd3=await _0x2c2f74['run']({'options':{..._0x133e1a,..._0x581e91},'args':[],'tdx':null});process[_0x58cffb(0x1db)](_0xf09bd3);}),program[a0_0x20474a(0x132)](process[a0_0x20474a(0x1b3)]);!process[a0_0x20474a(0x1b3)][a0_0x20474a(0xfe)](0x2)[a0_0x20474a(0x14d)]&&program['outputHelp']();
|