@treasuredata/tdx 0.1.2 → 0.1.4
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 +299 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client/cdp-client.d.ts +4 -4
- package/dist/client/cdp-client.d.ts.map +1 -1
- package/dist/client/cdp-client.js +1 -1
- package/dist/client/cdp-client.js.map +1 -1
- package/dist/client/http-client.d.ts +2 -1
- package/dist/client/http-client.d.ts.map +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/http-client.js.map +1 -1
- package/dist/client/llm-client.d.ts +158 -0
- package/dist/client/llm-client.d.ts.map +1 -0
- package/dist/client/llm-client.js +1 -0
- package/dist/client/llm-client.js.map +1 -0
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-client.js +1 -1
- package/dist/client/trino-client.d.ts +3 -7
- package/dist/client/trino-client.d.ts.map +1 -1
- package/dist/client/trino-client.js +1 -1
- package/dist/client/trino-client.js.map +1 -1
- package/dist/client/workflow-client.d.ts +3 -3
- package/dist/client/workflow-client.d.ts.map +1 -1
- package/dist/client/workflow-client.js +1 -1
- package/dist/client/workflow-client.js.map +1 -1
- package/dist/commands/activations.d.ts.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/activations.js.map +1 -1
- package/dist/commands/api-command.d.ts +26 -0
- package/dist/commands/api-command.d.ts.map +1 -0
- package/dist/commands/api-command.js +1 -0
- package/dist/commands/api-command.js.map +1 -0
- package/dist/commands/chat-command.d.ts +22 -0
- package/dist/commands/chat-command.d.ts.map +1 -0
- package/dist/commands/chat-command.js +1 -0
- package/dist/commands/chat-command.js.map +1 -0
- package/dist/commands/command.d.ts +2 -0
- package/dist/commands/command.d.ts.map +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/command.js.map +1 -1
- package/dist/commands/databases.d.ts.map +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/databases.js.map +1 -1
- package/dist/commands/describe.d.ts.map +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/llm-command.d.ts +81 -0
- package/dist/commands/llm-command.d.ts.map +1 -0
- package/dist/commands/llm-command.js +1 -0
- package/dist/commands/llm-command.js.map +1 -0
- package/dist/commands/query-command.d.ts.map +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/query-command.js.map +1 -1
- package/dist/commands/segment-command.d.ts.map +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-command.js.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/show.js.map +1 -1
- package/dist/commands/tables.d.ts.map +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/tables.js.map +1 -1
- package/dist/commands/workflow-command.d.ts.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +1 -1
- package/dist/core/auth.d.ts +3 -5
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/auth.js.map +1 -1
- package/dist/core/config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/sdk/api.d.ts +110 -0
- package/dist/sdk/api.d.ts.map +1 -0
- package/dist/sdk/api.js +1 -0
- package/dist/sdk/api.js.map +1 -0
- package/dist/sdk/database.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.d.ts +66 -34
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/llm.d.ts +316 -0
- package/dist/sdk/llm.d.ts.map +1 -0
- package/dist/sdk/llm.js +1 -0
- package/dist/sdk/llm.js.map +1 -0
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/table.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/endpoints.d.ts +7 -1
- package/dist/types/endpoints.d.ts.map +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/endpoints.js.map +1 -1
- package/dist/types/index.d.ts +202 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/agent-ref-parser.d.ts +36 -0
- package/dist/utils/agent-ref-parser.d.ts.map +1 -0
- package/dist/utils/agent-ref-parser.js +1 -0
- package/dist/utils/agent-ref-parser.js.map +1 -0
- package/dist/utils/chat-cache.d.ts +40 -0
- package/dist/utils/chat-cache.d.ts.map +1 -0
- package/dist/utils/chat-cache.js +1 -0
- package/dist/utils/chat-cache.js.map +1 -0
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sql-parser.js +1 -1
- package/dist/utils/sse-parser.d.ts +44 -0
- package/dist/utils/sse-parser.d.ts.map +1 -0
- package/dist/utils/sse-parser.js +1 -0
- package/dist/utils/sse-parser.js.map +1 -0
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# tdx - AI-Native CLI for Treasure Data
|
|
2
2
|
|
|
3
|
-
> **Status:** 🚧 Under Development (
|
|
3
|
+
> **Status:** 🚧 Under Active Development. SDK/CLI commands are subject to change (2025)
|
|
4
4
|
|
|
5
5
|
A modern, AI-native command-line interface for Treasure Data, optimized for both human engineers and AI coding assistants.
|
|
6
6
|
|
|
@@ -11,6 +11,42 @@ A modern, AI-native command-line interface for Treasure Data, optimized for both
|
|
|
11
11
|
- 🚀 **Modern Distribution**: Install via `npx` or `npm` without prior setup
|
|
12
12
|
- ⚡ **Fast & Efficient**: Built with TypeScript on Node.js 24+
|
|
13
13
|
|
|
14
|
+
## Architecture
|
|
15
|
+
|
|
16
|
+
The `tdx` project is designed with a layered architecture that separates the CLI interface from the core SDK, allowing the TypeScript SDK to be used in multiple environments:
|
|
17
|
+
|
|
18
|
+
```mermaid
|
|
19
|
+
graph TD
|
|
20
|
+
subgraph "Client Environments"
|
|
21
|
+
NodeJS[Node.JS/CLI<br/>tdx commands]
|
|
22
|
+
Browser[Web Browser<br/>Client-side]
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
subgraph "TDX SDK - TypeScript"
|
|
26
|
+
SDK[TDX SDK<br/>TypeScript/JavaScript API]
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
subgraph "Treasure Data APIs"
|
|
30
|
+
TD[TD REST API<br/>Databases, Tables, Jobs]
|
|
31
|
+
Trino[Trino Streaming API<br/>Query Execution]
|
|
32
|
+
CDP[CDP API<br/>Segments, Activations]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
NodeJS --> SDK
|
|
36
|
+
Browser --> SDK
|
|
37
|
+
|
|
38
|
+
SDK -->|HTTPS| TD
|
|
39
|
+
SDK -->|HTTPS| Trino
|
|
40
|
+
SDK -->|HTTPS| CDP
|
|
41
|
+
|
|
42
|
+
style NodeJS fill:#d4f1d4
|
|
43
|
+
style Browser fill:#ffd4d4
|
|
44
|
+
style SDK fill:#fff5cc
|
|
45
|
+
style TD fill:#e8e8f0
|
|
46
|
+
style CDP fill:#e8e8f0
|
|
47
|
+
style Trino fill:#e8e8f0
|
|
48
|
+
```
|
|
49
|
+
|
|
14
50
|
## Installation
|
|
15
51
|
|
|
16
52
|
```bash
|
|
@@ -75,6 +111,12 @@ tdx query "SELECT * FROM users" --tsv
|
|
|
75
111
|
|
|
76
112
|
# Get human-readable table output (default)
|
|
77
113
|
tdx databases --format table
|
|
114
|
+
|
|
115
|
+
# Chat with AI (simplified - uses default agent)
|
|
116
|
+
tdx chat "Show me customer revenue trends"
|
|
117
|
+
|
|
118
|
+
# Continue previous chat
|
|
119
|
+
tdx chat --continue "What about last month?"
|
|
78
120
|
```
|
|
79
121
|
|
|
80
122
|
## Available Commands
|
|
@@ -133,6 +175,150 @@ When viewing table output in an interactive terminal, `tdx` automatically pipes
|
|
|
133
175
|
- Output is saved to a file with `--output`
|
|
134
176
|
- Using non-table formats (JSON, JSONL, TSV)
|
|
135
177
|
|
|
178
|
+
### Chat Commands (Quick AI Interaction)
|
|
179
|
+
|
|
180
|
+
Simplified top-level command for chatting with LLM agents.
|
|
181
|
+
|
|
182
|
+
| Command | Description | Example |
|
|
183
|
+
|---------|-------------|---------|
|
|
184
|
+
| `chat <message>` | Chat with default agent (claude-4.5-sonnet) | `tdx chat "Analyze my data"` |
|
|
185
|
+
| `chat <message> --agent <ref>` | Chat with specific agent | `tdx chat "Hello" --agent "Project/Agent"` |
|
|
186
|
+
| `chat <message> --model <name>` | Chat using specific model | `tdx chat "Help" --model "gpt-5"` |
|
|
187
|
+
| `chat <message> --temperature <n>` | Set temperature (0.0-2.0, default: 0.7) | `tdx chat "Be creative" --temperature 1.2` |
|
|
188
|
+
| `chat <message> --continue` (or `-c`) | Continue last chat session | `tdx chat -c "What else?"` |
|
|
189
|
+
|
|
190
|
+
**Examples**:
|
|
191
|
+
```bash
|
|
192
|
+
# Simple chat (uses default agent with claude-4.5-sonnet)
|
|
193
|
+
tdx chat "Show me the top customers by revenue"
|
|
194
|
+
|
|
195
|
+
# Continue previous conversation
|
|
196
|
+
tdx chat --continue "What about last quarter?"
|
|
197
|
+
tdx chat -c "And the quarter before that?"
|
|
198
|
+
|
|
199
|
+
# Use specific agent
|
|
200
|
+
tdx chat "Analyze churn" --agent "MyProject/Data Analyst"
|
|
201
|
+
|
|
202
|
+
# Use specific model (reuses agent per model)
|
|
203
|
+
tdx chat "Help me write SQL" --model "gpt-5"
|
|
204
|
+
|
|
205
|
+
# Adjust temperature for more creative responses
|
|
206
|
+
tdx chat "Write a poem" --temperature 1.5
|
|
207
|
+
|
|
208
|
+
# Combine options
|
|
209
|
+
tdx chat "Be precise" --model "claude-4-sonnet" --temperature 0.3
|
|
210
|
+
|
|
211
|
+
# Verbose mode shows chat session ID
|
|
212
|
+
tdx chat "Hello" --verbose
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
**How it works**:
|
|
216
|
+
- **Default behavior**: Uses `tdx_default` project and agent (auto-created with temperature: 0.7)
|
|
217
|
+
- **Session persistence**: Last chat ID saved to `.cache/tdx/last_chat_id`
|
|
218
|
+
- **--continue flag**: Resumes last chat automatically
|
|
219
|
+
- **--agent**: Use specific agent (requires `"project/agent"` format)
|
|
220
|
+
- **--model**: Reuses or creates agent per model (e.g., `tdx_gpt-5`)
|
|
221
|
+
- **--temperature**: Controls randomness (0.7 default, lower=focused, higher=creative)
|
|
222
|
+
|
|
223
|
+
### API Command (Raw HTTP Access)
|
|
224
|
+
|
|
225
|
+
Make authenticated HTTP requests to any Treasure Data API endpoint (similar to `gh api` from GitHub CLI).
|
|
226
|
+
|
|
227
|
+
**Usage:** `tdx api <endpoint> [options]`
|
|
228
|
+
|
|
229
|
+
| Option | Description | Example |
|
|
230
|
+
|--------|-------------|---------|
|
|
231
|
+
| `<endpoint>` | API endpoint path (must start with /) | `/v3/database/list` |
|
|
232
|
+
| `-X, --method <method>` | HTTP method (GET, POST, PUT, DELETE, PATCH) | `-X POST` |
|
|
233
|
+
| `--data <json>` | Request body as JSON string | `--data '{"name":"mydb"}'` |
|
|
234
|
+
| `-f, --file <path>` | Read request body from file | `-f body.json` |
|
|
235
|
+
| `-H, --header <header>` | Custom header (repeatable) | `-H "X-Custom: value"` |
|
|
236
|
+
| `--type <api_type>` | API type (td, cdp, workflow, trino, llm) | `--type cdp` |
|
|
237
|
+
|
|
238
|
+
**Examples:**
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
# GET request to TD API (default)
|
|
242
|
+
tdx api /v3/database/list
|
|
243
|
+
|
|
244
|
+
# GET with path parameters
|
|
245
|
+
tdx api /v3/database/show/mydb
|
|
246
|
+
tdx api /v3/table/list/mydb
|
|
247
|
+
tdx api /v3/table/show/mydb/users
|
|
248
|
+
|
|
249
|
+
# POST with inline JSON body (submit query)
|
|
250
|
+
tdx api -X POST --data '{"query":"SELECT 1"}' /v3/job/issue/hive/mydb
|
|
251
|
+
|
|
252
|
+
# POST with data from file
|
|
253
|
+
tdx api -X POST -f query.json /v3/job/issue/hive/mydb
|
|
254
|
+
|
|
255
|
+
# Custom headers
|
|
256
|
+
tdx api -H "X-Custom: value" -H "X-Another: test" /v3/database/list
|
|
257
|
+
|
|
258
|
+
# CDP API endpoints (read-only)
|
|
259
|
+
tdx api /entities/parent_segments --type cdp
|
|
260
|
+
tdx api /audiences/12345/segments --type cdp
|
|
261
|
+
tdx api -X POST --data '{"format":"sql"}' /audiences/12345/segments/query --type cdp
|
|
262
|
+
|
|
263
|
+
# Workflow API endpoints (read-only)
|
|
264
|
+
tdx api /api/workflows --type workflow
|
|
265
|
+
tdx api /api/projects --type workflow
|
|
266
|
+
tdx api /api/attempts --type workflow
|
|
267
|
+
|
|
268
|
+
# Trino API endpoints (query submission - plain SQL, not JSON)
|
|
269
|
+
tdx api -X POST --data 'SELECT 1' /v1/statement --type trino
|
|
270
|
+
|
|
271
|
+
# LLM API endpoints (read-only)
|
|
272
|
+
tdx api /v1/agents --type llm
|
|
273
|
+
tdx api /v1/models --type llm
|
|
274
|
+
|
|
275
|
+
# Show HTTP response headers (with --verbose)
|
|
276
|
+
tdx api /v3/database/list --verbose
|
|
277
|
+
|
|
278
|
+
# Save output to file
|
|
279
|
+
tdx api /v3/database/list --output databases.json
|
|
280
|
+
|
|
281
|
+
# Combine --verbose with --output to see headers while saving
|
|
282
|
+
tdx api /v3/database/list --verbose --output databases.json
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
**API Types:**
|
|
286
|
+
|
|
287
|
+
| Type | Base URL Pattern | Description |
|
|
288
|
+
|------|-----------------|-------------|
|
|
289
|
+
| `td` | `api.treasuredata.com` | TD REST API (databases, tables, jobs) |
|
|
290
|
+
| `cdp` | `api-cdp.treasuredata.com` | CDP API (audiences, segments, activations) |
|
|
291
|
+
| `workflow` | `api-workflow.treasuredata.com` | Workflow API (digdag) |
|
|
292
|
+
| `trino` | `api-presto.treasuredata.com` | Trino Query Engine API |
|
|
293
|
+
| `llm` | `llm-api.treasuredata.com` | LLM API (agents, chat) |
|
|
294
|
+
|
|
295
|
+
**Notes:**
|
|
296
|
+
- All requests are automatically authenticated using your configured API key
|
|
297
|
+
- Request body from `--data` must be valid JSON
|
|
298
|
+
- `--data` and `--file` are mutually exclusive
|
|
299
|
+
- Custom headers override default authentication headers
|
|
300
|
+
- Response is output to stdout as JSON
|
|
301
|
+
- Use `--verbose` to show HTTP request/response details in stderr:
|
|
302
|
+
- Full target URL (shows site and API type)
|
|
303
|
+
- Request headers (non-sensitive: User-Agent, X-TD-Client, Content-Type, etc.)
|
|
304
|
+
- Response status and headers
|
|
305
|
+
- Sensitive headers (Authorization, Cookie, etc.) are hidden for security
|
|
306
|
+
|
|
307
|
+
**Verbose Output Example:**
|
|
308
|
+
```
|
|
309
|
+
> POST https://api.treasuredata.com/v3/job/issue/hive/mydb
|
|
310
|
+
> User-Agent: tdx/1.0.0 (darwin; node/24.0.0)
|
|
311
|
+
> X-TD-Client: tdx
|
|
312
|
+
> X-TD-Client-Version: 1.0.0
|
|
313
|
+
> Content-Type: application/json
|
|
314
|
+
>
|
|
315
|
+
|
|
316
|
+
< HTTP/1.1 200
|
|
317
|
+
< content-type: application/json
|
|
318
|
+
< x-td-request-id: abc123
|
|
319
|
+
|
|
320
|
+
{"job_id": "12345"}
|
|
321
|
+
```
|
|
136
322
|
|
|
137
323
|
### Database Commands
|
|
138
324
|
|
|
@@ -455,6 +641,86 @@ tdx wf retry attempt:67890 --force -y
|
|
|
455
641
|
tdx wf sessions --format json --output sessions.json
|
|
456
642
|
```
|
|
457
643
|
|
|
644
|
+
### Agent Commands (LLM API)
|
|
645
|
+
|
|
646
|
+
Usage: `tdx agent <subcommand>` | `tdx agents`
|
|
647
|
+
|
|
648
|
+
Manage LLM agents and chat sessions with streaming support.
|
|
649
|
+
|
|
650
|
+
| Command | Description | Example |
|
|
651
|
+
|---------|-------------|---------|
|
|
652
|
+
| `agent models` | List available LLM models | `tdx agent models` |
|
|
653
|
+
| `agent projects` | List all projects | `tdx agent projects` |
|
|
654
|
+
| `agents [project-name]` | List all agents (or filter by project) | `tdx agents` or `tdx agents "MyProject"` |
|
|
655
|
+
| `agent get <project/agent>` | Get agent details | `tdx agent get "MyProject/Data Analyst"` |
|
|
656
|
+
| `agent create <name>` | Create a new agent | `tdx agent create "My Agent" --project-id <id> --model <model>` |
|
|
657
|
+
| `agent update <project/agent>` | Update an agent | `tdx agent update "MyProject/Agent" --name "New Name"` |
|
|
658
|
+
| `agent remove <project/agent>` | Delete an agent | `tdx agent remove "MyProject/Agent"` |
|
|
659
|
+
| `agent history [chat-id]` | List chat sessions or show messages | `tdx agent history` or `tdx agent history chat456` |
|
|
660
|
+
|
|
661
|
+
**Agent Reference Format:**
|
|
662
|
+
|
|
663
|
+
Agent commands require the full project-scoped format (since agent names are only unique within a project):
|
|
664
|
+
- `"project-name/agent-name"` - Required format for agent operations
|
|
665
|
+
|
|
666
|
+
**Agent Command Options:**
|
|
667
|
+
|
|
668
|
+
For `create` command:
|
|
669
|
+
- `--project-id <id>`: Project ID (required)
|
|
670
|
+
- `--system-prompt <text>`: System prompt/instructions (default: empty)
|
|
671
|
+
- `--model <name>`: Model type (default: claude-4.5-sonnet)
|
|
672
|
+
- `--starter-message <text>`: Starter message for the agent
|
|
673
|
+
- `--max-tool-iterations <n>`: Maximum tool iterations (default: 4)
|
|
674
|
+
- `--temperature <n>`: Temperature 0.0-2.0 (default: 0.7)
|
|
675
|
+
|
|
676
|
+
For `update` command:
|
|
677
|
+
- `--name <text>`: New agent name
|
|
678
|
+
- `--prompt <text>`: New prompt/instructions
|
|
679
|
+
- `--description <text>`: New description
|
|
680
|
+
- `--starter-message <text>`: New starter message
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
**Examples**:
|
|
684
|
+
```bash
|
|
685
|
+
# List available models
|
|
686
|
+
tdx agent models
|
|
687
|
+
|
|
688
|
+
# List all projects
|
|
689
|
+
tdx agent projects
|
|
690
|
+
|
|
691
|
+
# List all agents
|
|
692
|
+
tdx agents
|
|
693
|
+
|
|
694
|
+
# List agents for a specific project (by project name)
|
|
695
|
+
tdx agents "MyProject"
|
|
696
|
+
|
|
697
|
+
# Get agent details (requires project/agent format)
|
|
698
|
+
tdx agent get "MyProject/Data Analyst"
|
|
699
|
+
|
|
700
|
+
# Create a new agent
|
|
701
|
+
tdx agent create "Data Analyst" \
|
|
702
|
+
--prompt "You are a helpful data analyst specialized in SQL and data visualization" \
|
|
703
|
+
--starter-message "Hello! I can help you analyze your data."
|
|
704
|
+
|
|
705
|
+
# Update agent (requires project/agent format)
|
|
706
|
+
tdx agent update "MyProject/Data Analyst" --name "Senior Data Analyst"
|
|
707
|
+
|
|
708
|
+
# Update agent prompt
|
|
709
|
+
tdx agent update "MyProject/Data Analyst" --prompt "New instructions"
|
|
710
|
+
|
|
711
|
+
# Delete agent (requires project/agent format)
|
|
712
|
+
tdx agent remove "MyProject/Data Analyst"
|
|
713
|
+
|
|
714
|
+
# List recent chat sessions
|
|
715
|
+
tdx agent history
|
|
716
|
+
|
|
717
|
+
# Show specific chat message history
|
|
718
|
+
tdx agent history chat456
|
|
719
|
+
|
|
720
|
+
# Get agents as JSON
|
|
721
|
+
tdx agents --format json --output agents.json
|
|
722
|
+
```
|
|
723
|
+
|
|
458
724
|
## Advanced Query Features
|
|
459
725
|
|
|
460
726
|
### File Input
|
|
@@ -644,6 +910,38 @@ NO_COLOR=1 tdx databases
|
|
|
644
910
|
3. `NO_COLOR` environment variable
|
|
645
911
|
4. TTY detection (automatic)
|
|
646
912
|
|
|
913
|
+
## TDX SDK
|
|
914
|
+
|
|
915
|
+
**Usage Examples:**
|
|
916
|
+
|
|
917
|
+
**Node.js:**
|
|
918
|
+
```typescript
|
|
919
|
+
import { TDX, loadLocalSDKConfig } from '@treasuredata/tdx/sdk';
|
|
920
|
+
|
|
921
|
+
// Load config from environment or pass API key directly
|
|
922
|
+
const config = loadLocalSDKConfig({
|
|
923
|
+
site: 'us01',
|
|
924
|
+
apiKey: 'your_key_id/your_key_secret' // Optional: omit to load from env
|
|
925
|
+
});
|
|
926
|
+
const tdx = new TDX(config);
|
|
927
|
+
const result = await tdx.query('SELECT * FROM users');
|
|
928
|
+
```
|
|
929
|
+
|
|
930
|
+
**Web Browser:**
|
|
931
|
+
```html
|
|
932
|
+
<script type="module">
|
|
933
|
+
import { TDX } from 'https://unpkg.com/@treasuredata/tdx';
|
|
934
|
+
// Browser: Create config object directly (loadLocalSDKConfig requires file system)
|
|
935
|
+
const config = {
|
|
936
|
+
site: 'us01',
|
|
937
|
+
apiKey: 'your_key_id/your_key_secret',
|
|
938
|
+
verbose: false
|
|
939
|
+
};
|
|
940
|
+
const tdx = new TDX(config);
|
|
941
|
+
const result = await tdx.query('SELECT * FROM users');
|
|
942
|
+
</script>
|
|
943
|
+
```
|
|
944
|
+
|
|
647
945
|
|
|
648
946
|
## Requirements
|
|
649
947
|
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const a0_0x3f1c29=a0_0x3fd6;function a0_0xfd1e(){const _0x375025=['outputHelp','workflow','activations\x20<segment_name>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Segment\x20folder\x20management','--jsonl','--force','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','5228120mIZZPh','--no-color','--limit\x20<rows>','10olLico','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','1274436BdmGWZ','sql\x20<segment_name>','jsonl','1092302ZNNIWh','Show\x20folder\x20details\x20(use\x20parent_name.folder_name)','describe\x20<table>','--resume-from\x20<task>','--color','log','desc','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Include\x20retried\x20attempts','folders\x20<parent_name>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--in\x20<database>','parse','retry\x20<session-id|attempt-id>','Resume\x20from\x20specific\x20task\x20(session\x20retry\x20only)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','tdx','-d,\x20--database\x20<database>','List\x20parent\x20segments\x20or\x20child\x20segments\x20under\x20a\x20parent','Retry\x20a\x20session\x20or\x20attempt\x20(prefix\x20with\x20session:\x20or\x20attempt:)','attempts\x20[project]','alias','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--status\x20<status>','1EZWNwY','CDP\x20segment\x20management\x20commands','slice','--timeout\x20<seconds>','97503TFzCsb','segments\x20[parent_name]','name','-f,\x20--file\x20<path>','format','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','description','--tsv','Preview\x20operation\x20without\x20executing','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','11XrNpYq','kill\x20<attempt-id>','action','Show\x20tasks\x20for\x20an\x20attempt','7gekETe','--output\x20<file>','attempt\x20<attempt-id>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(use\x20parent_name\x20or\x20parent_name.child_name)','Show\x20segment\x20details\x20(use\x20parent_name\x20or\x20parent_name.child_name)','show\x20<segment_name>','database','command','Force\x20retry\x20even\x20if\x20not\x20failed\x20(attempt\x20retry\x20only)','option','length','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','tasks\x20<attempt-id>','argv','Reason\x20for\x20killing\x20the\x20attempt','--offset\x20<number>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','json','hook','--from-task\x20<task>','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','run','--format\x20<format>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name.child_name)','opts','sessions\x20[project]','Run\x20Trino\x20query\x20with\x20streaming\x20results','8101902qNrCeT','Trino\x20catalog\x20(default:\x20td)','folder','Resume\x20from\x20specific\x20task\x20(attempt\x20retry\x20only)','version','--dry-run','exit','tsv','8558920ofvQeW','job','show\x20<folder_ref>','1172428EyHBna','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Job\x20commands\x20-\x20coming\x20soon','Workflow\x20(Digdag)\x20management\x20commands','utf-8','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Get\x20SQL\x20query\x20for\x20segment\x20(use\x20parent_name\x20or\x20parent_name.child_name)','Skip\x20confirmation\x20prompts','--catalog\x20<catalog>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Starting\x20offset\x20for\x20logs\x20(default:\x200)','-y,\x20--yes','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02)','Database\x20to\x20query\x20(default:\x20information_schema)','--from\x20<timestamp>','--verbose','--to\x20<timestamp>','--include-subtasks','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','describe\x20<segment_name>','AI-native\x20CLI\x20for\x20Treasure\x20Data'];a0_0xfd1e=function(){return _0x375025;};return a0_0xfd1e();}(function(_0xcb56bc,_0xbc44f2){const _0x1f7485=a0_0x3fd6,_0x251fa7=_0xcb56bc();while(!![]){try{const _0x4d2b04=-parseInt(_0x1f7485(0x23f))/0x1*(-parseInt(_0x1f7485(0x227))/0x2)+-parseInt(_0x1f7485(0x243))/0x3+parseInt(_0x1f7485(0x202))/0x4*(parseInt(_0x1f7485(0x222))/0x5)+parseInt(_0x1f7485(0x1f7))/0x6*(parseInt(_0x1f7485(0x1da))/0x7)+-parseInt(_0x1f7485(0x1ff))/0x8+-parseInt(_0x1f7485(0x224))/0x9+parseInt(_0x1f7485(0x21f))/0xa*(-parseInt(_0x1f7485(0x1d6))/0xb);if(_0x4d2b04===_0xbc44f2)break;else _0x251fa7['push'](_0x251fa7['shift']());}catch(_0x3aaf7e){_0x251fa7['push'](_0x251fa7['shift']());}}}(a0_0xfd1e,0xaec7c));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';function a0_0x3fd6(_0x2f50c8,_0x4808a2){const _0xfd1e99=a0_0xfd1e();return a0_0x3fd6=function(_0x3fd6bf,_0x13b34a){_0x3fd6bf=_0x3fd6bf-0x1cf;let _0x40013b=_0xfd1e99[_0x3fd6bf];return _0x40013b;},a0_0x3fd6(_0x2f50c8,_0x4808a2);}import{QueryCommand}from'./commands/query-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}from'./commands/segment-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand}from'./commands/workflow-command.js';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename),packageJson=JSON[a0_0x3f1c29(0x233)](readFileSync(join(__dirname,'../package.json'),a0_0x3f1c29(0x206))),program=new Command();program[a0_0x3f1c29(0x245)](a0_0x3f1c29(0x237))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x216))[a0_0x3f1c29(0x1fb)](packageJson['version']),program[a0_0x3f1c29(0x1e4)]('--site\x20<site>',a0_0x3f1c29(0x20e),'us01')[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x1f2),a0_0x3f1c29(0x1e6))[a0_0x3f1c29(0x1e4)]('--json',a0_0x3f1c29(0x223))['option'](a0_0x3f1c29(0x21c),a0_0x3f1c29(0x22e))['option'](a0_0x3f1c29(0x1d2),a0_0x3f1c29(0x1ec))['option'](a0_0x3f1c29(0x1db),'Save\x20output\x20to\x20file')[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x221),a0_0x3f1c29(0x207),'40')[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x22b),a0_0x3f1c29(0x1d0),![])[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x220),a0_0x3f1c29(0x203),![])[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x211),'Enable\x20verbose\x20logging',![])['option'](a0_0x3f1c29(0x242),'Set\x20operation\x20timeout\x20in\x20seconds','30')[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x1fc),a0_0x3f1c29(0x1d3),![])[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x20d),a0_0x3f1c29(0x209),![])[a0_0x3f1c29(0x1ee)]('preAction',_0x5e0835=>{const _0x5a00b7=a0_0x3f1c29,_0x417875=_0x5e0835[_0x5a00b7(0x1f4)]();if(!_0x417875[_0x5a00b7(0x1cf)]){if(_0x417875[_0x5a00b7(0x1ed)])_0x417875[_0x5a00b7(0x1cf)]=_0x5a00b7(0x1ed);else{if(_0x417875[_0x5a00b7(0x226)])_0x417875[_0x5a00b7(0x1cf)]='jsonl';else _0x417875[_0x5a00b7(0x1fe)]&&(_0x417875[_0x5a00b7(0x1cf)]=_0x5a00b7(0x1fe));}}}),program['command']('databases\x20[pattern]')[a0_0x3f1c29(0x1d1)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](async(_0x1d6cc5,_0x245b25)=>{const _0xdc82b=a0_0x3f1c29,_0x622894=new DatabasesCommand(),_0x16b6e5=program[_0xdc82b(0x1f4)](),_0x2f84d1=await _0x622894[_0xdc82b(0x1f1)]({'options':{..._0x16b6e5,..._0x245b25},'args':_0x1d6cc5?[_0x1d6cc5]:[]});process[_0xdc82b(0x1fd)](_0x2f84d1);}),program[a0_0x3f1c29(0x1e2)]('tables\x20[pattern]')['description'](a0_0x3f1c29(0x236))[a0_0x3f1c29(0x1e4)]('-d,\x20--database\x20<database>',a0_0x3f1c29(0x1d5))['option']('--in\x20<database>',a0_0x3f1c29(0x1d4))[a0_0x3f1c29(0x1d8)](async(_0x364878,_0x94337c)=>{const _0x127650=a0_0x3f1c29,_0x816973=new TablesCommand(),_0xaf66d7=program[_0x127650(0x1f4)]();_0x94337c['in']&&(_0x94337c[_0x127650(0x1e1)]=_0x94337c['in']);const _0x441980=await _0x816973['run']({'options':{..._0xaf66d7,..._0x94337c},'args':_0x364878?[_0x364878]:[]});process['exit'](_0x441980);}),program[a0_0x3f1c29(0x1e2)]('show\x20<table>')[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x214))['option']('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x232),a0_0x3f1c29(0x1d4))[a0_0x3f1c29(0x1d8)](async(_0x36bef5,_0x1d7ded)=>{const _0x44e89d=a0_0x3f1c29,_0x466e84=new ShowCommand(),_0x42f8c3=program[_0x44e89d(0x1f4)]();_0x1d7ded['in']&&(_0x1d7ded[_0x44e89d(0x1e1)]=_0x1d7ded['in']);const _0x39362b=await _0x466e84[_0x44e89d(0x1f1)]({'options':{..._0x42f8c3,..._0x1d7ded},'args':[_0x36bef5]});process['exit'](_0x39362b);}),program[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x229))[a0_0x3f1c29(0x23c)](a0_0x3f1c29(0x22d))[a0_0x3f1c29(0x1d1)]('Describe\x20table\x20schema')[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x238),a0_0x3f1c29(0x20b))['option'](a0_0x3f1c29(0x232),a0_0x3f1c29(0x1d4))['action'](async(_0x45223a,_0x1bd915)=>{const _0x1585e4=a0_0x3f1c29,_0x322d71=new DescribeCommand(),_0x222733=program['opts']();_0x1bd915['in']&&(_0x1bd915['database']=_0x1bd915['in']);const _0x2c3b60=await _0x322d71['run']({'options':{..._0x222733,..._0x1bd915},'args':[_0x45223a]});process[_0x1585e4(0x1fd)](_0x2c3b60);}),program[a0_0x3f1c29(0x1e2)]('query\x20[sql]')[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x1f6))[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x238),a0_0x3f1c29(0x20f))[a0_0x3f1c29(0x1e4)]('--in\x20<database>',a0_0x3f1c29(0x1d4))[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x20a),a0_0x3f1c29(0x1f8))[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x246),'Read\x20SQL\x20query\x20from\x20file')[a0_0x3f1c29(0x1e4)]('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')['action'](async(_0x5d99c5,_0x33de79)=>{const _0x447ed3=a0_0x3f1c29,_0x59bb91=new QueryCommand(),_0x1c5d5a=program[_0x447ed3(0x1f4)]();_0x33de79['in']&&(_0x33de79[_0x447ed3(0x1e1)]=_0x33de79['in']);const _0x43b084=await _0x59bb91[_0x447ed3(0x1f1)]({'options':{..._0x1c5d5a,..._0x33de79},'args':_0x5d99c5?[_0x5d99c5]:[]});process[_0x447ed3(0x1fd)](_0x43b084);}),program[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x200))[a0_0x3f1c29(0x1d1)]('Job\x20management\x20commands')[a0_0x3f1c29(0x1d8)](()=>{const _0x219b28=a0_0x3f1c29;console[_0x219b28(0x22c)](_0x219b28(0x204));}),program[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x244))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x239))[a0_0x3f1c29(0x1d8)](async(_0x323e4f,_0x1c43ac)=>{const _0x56d6ee=a0_0x3f1c29,_0x23e577=new SegmentsCommand(),_0x5766da=program[_0x56d6ee(0x1f4)](),_0x155407=await _0x23e577[_0x56d6ee(0x1f1)]({'options':{..._0x5766da,..._0x1c43ac},'args':_0x323e4f?[_0x323e4f]:[]});process[_0x56d6ee(0x1fd)](_0x155407);});const segmentCmd=program['command']('segment')[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x240));segmentCmd[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x215))[a0_0x3f1c29(0x23c)](a0_0x3f1c29(0x22d))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x1df))['action'](async(_0x2be091,_0x5b8544)=>{const _0x37c7f9=a0_0x3f1c29,_0x4646a2=new SegmentDescribeCommand(),_0x27100f=program['opts'](),_0x4c919f=await _0x4646a2[_0x37c7f9(0x1f1)]({'options':{..._0x27100f,..._0x5b8544},'args':[_0x2be091]});process[_0x37c7f9(0x1fd)](_0x4c919f);}),segmentCmd[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x1e0))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x1de))['action'](async(_0x1573d6,_0x383844)=>{const _0x35986a=a0_0x3f1c29,_0x3c37db=new SegmentShowCommand(),_0x2ef7fb=program['opts'](),_0x1bcd8e=await _0x3c37db['run']({'options':{..._0x2ef7fb,..._0x383844},'args':[_0x1573d6]});process[_0x35986a(0x1fd)](_0x1bcd8e);}),segmentCmd[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x230))['description'](a0_0x3f1c29(0x1f0))['action'](async(_0x5c98ea,_0x122a77)=>{const _0x48a15f=a0_0x3f1c29,_0x5bf682=new SegmentFolderListCommand(),_0x4db2da=program[_0x48a15f(0x1f4)](),_0x8b7aac=await _0x5bf682[_0x48a15f(0x1f1)]({'options':{..._0x4db2da,..._0x122a77},'args':[_0x5c98ea]});process[_0x48a15f(0x1fd)](_0x8b7aac);});const folderCmd=segmentCmd[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x1f9))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x21b));folderCmd[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x201))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x228))[a0_0x3f1c29(0x1d8)](async(_0x5d3167,_0x2fe828)=>{const _0x2b0964=a0_0x3f1c29,_0x234352=new SegmentFolderShowCommand(),_0x3d884d=program[_0x2b0964(0x1f4)](),_0x119bac=await _0x234352[_0x2b0964(0x1f1)]({'options':{..._0x3d884d,..._0x2fe828},'args':[_0x5d3167]});process[_0x2b0964(0x1fd)](_0x119bac);}),segmentCmd['command'](a0_0x3f1c29(0x225))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x208))['action'](async(_0x44aa87,_0x55fcea)=>{const _0x4971af=a0_0x3f1c29,_0x58a2a1=new SegmentSQLCommand(),_0x4518f3=program[_0x4971af(0x1f4)](),_0x49bf2e=await _0x58a2a1[_0x4971af(0x1f1)]({'options':{..._0x4518f3,..._0x55fcea},'args':[_0x44aa87]});process[_0x4971af(0x1fd)](_0x49bf2e);}),program[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x219))['description'](a0_0x3f1c29(0x1f3))[a0_0x3f1c29(0x1d8)](async(_0x33a14c,_0x587f9f)=>{const _0xaeb087=a0_0x3f1c29,_0x5ea4bb=new ActivationsCommand(),_0x58ff32=program['opts'](),_0x4bc1c7=await _0x5ea4bb[_0xaeb087(0x1f1)]({'options':{..._0x58ff32,..._0x587f9f},'args':[_0x33a14c]});process[_0xaeb087(0x1fd)](_0x4bc1c7);});const workflowCmd=program[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x218))['alias']('wf')[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x205));workflowCmd[a0_0x3f1c29(0x1e2)]('projects\x20[pattern]')[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x21e))[a0_0x3f1c29(0x1d8)](async(_0x1e49be,_0x555061)=>{const _0x26e2da=a0_0x3f1c29,_0x5bcd58=new WorkflowProjectsCommand(),_0xd690ff=program[_0x26e2da(0x1f4)](),_0x5b019e=await _0x5bcd58['run']({'options':{..._0xd690ff,..._0x555061},'args':_0x1e49be?[_0x1e49be]:[]});process[_0x26e2da(0x1fd)](_0x5b019e);}),workflowCmd[a0_0x3f1c29(0x1e2)]('workflows\x20[project]')[a0_0x3f1c29(0x23c)]('ls')[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x23d))['action'](async(_0x784ea0,_0x4151c3)=>{const _0x2da3e0=a0_0x3f1c29,_0x1cf44e=new WorkflowWorkflowsCommand(),_0x162120=program['opts'](),_0x1f9556=await _0x1cf44e['run']({'options':{..._0x162120,..._0x4151c3},'args':_0x784ea0?[_0x784ea0]:[]});process[_0x2da3e0(0x1fd)](_0x1f9556);}),workflowCmd[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x1f5))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x1dd))[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x23e),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a0_0x3f1c29(0x210),a0_0x3f1c29(0x231))[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x212),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](async(_0x570f5d,_0x993ae7)=>{const _0x492cdd=a0_0x3f1c29,_0x3d83a1=new WorkflowSessionsCommand(),_0x4a9899=program['opts'](),_0x3d1153=await _0x3d83a1[_0x492cdd(0x1f1)]({'options':{..._0x4a9899,..._0x993ae7},'args':_0x570f5d?[_0x570f5d]:[]});process['exit'](_0x3d1153);}),workflowCmd['command'](a0_0x3f1c29(0x23b))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x21a))['option']('--include-retried',a0_0x3f1c29(0x22f))[a0_0x3f1c29(0x1d8)](async(_0x4387a2,_0x48caea)=>{const _0x21cfa2=a0_0x3f1c29,_0x1528e4=new WorkflowAttemptsCommand(),_0x29f4c2=program[_0x21cfa2(0x1f4)](),_0x3cb769=await _0x1528e4[_0x21cfa2(0x1f1)]({'options':{..._0x29f4c2,..._0x48caea},'args':_0x4387a2?[_0x4387a2]:[]});process[_0x21cfa2(0x1fd)](_0x3cb769);}),workflowCmd[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x1dc))[a0_0x3f1c29(0x1d1)]('Show\x20specific\x20attempt\x20details')[a0_0x3f1c29(0x1d8)](async(_0x532066,_0x21f10f)=>{const _0x46743f=a0_0x3f1c29,_0x3a55c9=new WorkflowAttemptCommand(),_0x400501=program[_0x46743f(0x1f4)](),_0x215dbe=await _0x3a55c9[_0x46743f(0x1f1)]({'options':{..._0x400501,..._0x21f10f},'args':[_0x532066]});process[_0x46743f(0x1fd)](_0x215dbe);}),workflowCmd['command'](a0_0x3f1c29(0x1e8))[a0_0x3f1c29(0x1d1)](a0_0x3f1c29(0x1d9))[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x213),'Include\x20subtasks\x20in\x20the\x20output')[a0_0x3f1c29(0x1d8)](async(_0x5622f8,_0x535e90)=>{const _0x5bcde1=a0_0x3f1c29,_0x34d268=new WorkflowTasksCommand(),_0x4bd709=program['opts'](),_0x38ef45=await _0x34d268[_0x5bcde1(0x1f1)]({'options':{..._0x4bd709,..._0x535e90},'args':[_0x5622f8]});process[_0x5bcde1(0x1fd)](_0x38ef45);}),workflowCmd[a0_0x3f1c29(0x1e2)]('logs\x20<attempt-id>\x20<task-name>')[a0_0x3f1c29(0x1d1)]('Show\x20logs\x20for\x20a\x20specific\x20task')['option'](a0_0x3f1c29(0x1eb),a0_0x3f1c29(0x20c),_0x1ac14d=>parseInt(_0x1ac14d,0xa),0x0)[a0_0x3f1c29(0x1d8)](async(_0x66f0d3,_0x2a28d6,_0x17e8eb)=>{const _0x52087d=a0_0x3f1c29,_0x3b243e=new WorkflowLogsCommand(),_0x2dce31=program[_0x52087d(0x1f4)](),_0x1ba3ca=await _0x3b243e[_0x52087d(0x1f1)]({'options':{..._0x2dce31,..._0x17e8eb},'args':[_0x66f0d3,_0x2a28d6]});process['exit'](_0x1ba3ca);}),workflowCmd[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x1d7))[a0_0x3f1c29(0x1d1)]('Kill\x20a\x20running\x20attempt')[a0_0x3f1c29(0x1e4)]('--reason\x20<text>',a0_0x3f1c29(0x1ea))[a0_0x3f1c29(0x1d8)](async(_0x5a2f0f,_0x2c2b80)=>{const _0x31ef94=a0_0x3f1c29,_0x31cd1d=new WorkflowKillCommand(),_0x2516b5=program[_0x31ef94(0x1f4)](),_0x355b6a=await _0x31cd1d['run']({'options':{..._0x2516b5,..._0x2c2b80},'args':[_0x5a2f0f]});process[_0x31ef94(0x1fd)](_0x355b6a);}),workflowCmd[a0_0x3f1c29(0x1e2)](a0_0x3f1c29(0x234))['description'](a0_0x3f1c29(0x23a))[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x1ef),a0_0x3f1c29(0x235))['option'](a0_0x3f1c29(0x22a),a0_0x3f1c29(0x1fa))[a0_0x3f1c29(0x1e4)]('--params\x20<json>',a0_0x3f1c29(0x1e7))[a0_0x3f1c29(0x1e4)](a0_0x3f1c29(0x21d),a0_0x3f1c29(0x1e3))[a0_0x3f1c29(0x1d8)](async(_0x2dd2cb,_0x99dcb8)=>{const _0x3dcb26=a0_0x3f1c29,_0x3b336c=new WorkflowRetryCommand(),_0x41676c=program['opts'](),_0x1105b7=await _0x3b336c[_0x3dcb26(0x1f1)]({'options':{..._0x41676c,..._0x99dcb8},'args':[_0x2dd2cb]});process[_0x3dcb26(0x1fd)](_0x1105b7);}),program[a0_0x3f1c29(0x233)](process[a0_0x3f1c29(0x1e9)]);!process[a0_0x3f1c29(0x1e9)][a0_0x3f1c29(0x241)](0x2)[a0_0x3f1c29(0x1e5)]&&program[a0_0x3f1c29(0x217)]();
|
|
2
|
+
const a0_0x3e97bd=a0_0xcf6c;(function(_0x4d18b3,_0x2ec614){const _0x2add6a=a0_0xcf6c,_0x559197=_0x4d18b3();while(!![]){try{const _0x55b139=-parseInt(_0x2add6a(0x1d0))/0x1*(-parseInt(_0x2add6a(0x1d1))/0x2)+-parseInt(_0x2add6a(0x1b3))/0x3+parseInt(_0x2add6a(0x1f6))/0x4*(parseInt(_0x2add6a(0x1cd))/0x5)+-parseInt(_0x2add6a(0x167))/0x6*(-parseInt(_0x2add6a(0x1ad))/0x7)+-parseInt(_0x2add6a(0x176))/0x8*(parseInt(_0x2add6a(0x1a6))/0x9)+-parseInt(_0x2add6a(0x1b8))/0xa+parseInt(_0x2add6a(0x1a5))/0xb;if(_0x55b139===_0x2ec614)break;else _0x559197['push'](_0x559197['shift']());}catch(_0x270d63){_0x559197['push'](_0x559197['shift']());}}}(a0_0x13e0,0xd4109));import{Command}from'commander';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';import{TDX,loadLocalSDKConfig}from'./sdk/index.js';import{resolveSite}from'./core/config.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}from'./commands/segment-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand}from'./commands/workflow-command.js';import{AgentModelsCommand,AgentProjectsCommand,AgentsListCommand,AgentGetCommand,AgentCreateCommand,AgentUpdateCommand,AgentRemoveCommand,AgentHistoryCommand}from'./commands/llm-command.js';const __filename=fileURLToPath(import.meta[a0_0x3e97bd(0x1c0)]),__dirname=dirname(__filename),packageJson=JSON[a0_0x3e97bd(0x174)](readFileSync(join(__dirname,'../package.json'),'utf-8')),program=new Command();program[a0_0x3e97bd(0x186)](a0_0x3e97bd(0x1f2))[a0_0x3e97bd(0x1fe)]('AI-native\x20CLI\x20for\x20Treasure\x20Data')[a0_0x3e97bd(0x185)](packageJson['version']),program['option'](a0_0x3e97bd(0x19a),a0_0x3e97bd(0x197),a0_0x3e97bd(0x1c4))['option'](a0_0x3e97bd(0x196),a0_0x3e97bd(0x171))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1f3),a0_0x3e97bd(0x15d))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x170),a0_0x3e97bd(0x1d8))['option'](a0_0x3e97bd(0x1a7),a0_0x3e97bd(0x16f))[a0_0x3e97bd(0x1dd)]('--output\x20<file>','Save\x20output\x20to\x20file')[a0_0x3e97bd(0x1dd)]('--limit\x20<rows>',a0_0x3e97bd(0x188),'40')[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1fd),a0_0x3e97bd(0x1da),![])[a0_0x3e97bd(0x1dd)]('--no-color',a0_0x3e97bd(0x175),![])['option'](a0_0x3e97bd(0x161),a0_0x3e97bd(0x198),![])[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x15c),a0_0x3e97bd(0x1b5),'30')[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1de),'Preview\x20operation\x20without\x20executing',![])[a0_0x3e97bd(0x1dd)]('-y,\x20--yes',a0_0x3e97bd(0x1a9),![])[a0_0x3e97bd(0x1e4)](a0_0x3e97bd(0x16b),_0x341d8f=>{const _0x1e8c74=a0_0x3e97bd,_0x171df3=_0x341d8f[_0x1e8c74(0x180)]();if(!_0x171df3[_0x1e8c74(0x18e)]){if(_0x171df3['json'])_0x171df3['format']='json';else{if(_0x171df3[_0x1e8c74(0x1d9)])_0x171df3['format']=_0x1e8c74(0x1d9);else _0x171df3[_0x1e8c74(0x1c1)]&&(_0x171df3[_0x1e8c74(0x18e)]=_0x1e8c74(0x1c1));}}});function createTDXInstance(_0x4231bb){const _0x1888fd=a0_0x3e97bd,_0x51b6b8=resolveSite(_0x4231bb['site']),_0x45bd43=_0x4231bb[_0x1888fd(0x1c8)]||![],_0x3997e6=loadLocalSDKConfig({'site':_0x51b6b8,'verbose':_0x45bd43});return new TDX(_0x3997e6);}program['command']('databases\x20[pattern]')[a0_0x3e97bd(0x1fe)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a0_0x3e97bd(0x1ce)](async(_0x1cfb2b,_0x2619ba)=>{const _0x35f0eb=a0_0x3e97bd,_0x3c0a3c=new DatabasesCommand(),_0x16bde2=program['opts'](),_0xbbb2b1=createTDXInstance(_0x16bde2),_0x797737=await _0x3c0a3c['run']({'options':{..._0x16bde2,..._0x2619ba},'args':_0x1cfb2b?[_0x1cfb2b]:[],'tdx':_0xbbb2b1});process[_0x35f0eb(0x17a)](_0x797737);}),program['command'](a0_0x3e97bd(0x1ea))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1cc))['option'](a0_0x3e97bd(0x177),'Agent\x20reference\x20(project-name/agent-name)')[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1db),a0_0x3e97bd(0x1b0))['option'](a0_0x3e97bd(0x19b),a0_0x3e97bd(0x1e1))['option'](a0_0x3e97bd(0x1d5),'Continue\x20last\x20chat\x20session')[a0_0x3e97bd(0x1ce)](async(_0x5e85e0,_0x278488)=>{const _0x1be2c4=a0_0x3e97bd,_0x3f96a2=new ChatCommand(),_0x4e2b98=program['opts'](),_0x4b7dc7=createTDXInstance(_0x4e2b98),_0x57ad5a=await _0x3f96a2[_0x1be2c4(0x191)]({'options':{..._0x4e2b98,..._0x278488},'args':_0x5e85e0,'tdx':_0x4b7dc7});process[_0x1be2c4(0x17a)](_0x57ad5a);}),program[a0_0x3e97bd(0x1c6)]('api\x20<endpoint>')[a0_0x3e97bd(0x1fe)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs\x20(similar\x20to\x20gh\x20api)\x0a\x0a'+a0_0x3e97bd(0x190)+'\x20\x20tdx\x20api\x20/v3/database/list\x0a'+'\x20\x20tdx\x20api\x20/v3/database/show/mydb\x0a'+a0_0x3e97bd(0x184)+a0_0x3e97bd(0x199)+a0_0x3e97bd(0x1dc))[a0_0x3e97bd(0x1dd)]('-X,\x20--method\x20<method>',a0_0x3e97bd(0x1b1),a0_0x3e97bd(0x1d3))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1c3),a0_0x3e97bd(0x1e9))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1bf),a0_0x3e97bd(0x16c))['option'](a0_0x3e97bd(0x1e5),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x3ed614,_0x1aa25f)=>{return _0x1aa25f?[..._0x1aa25f,_0x3ed614]:[_0x3ed614];})[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1f7),a0_0x3e97bd(0x165),'td')['action'](async(_0x392470,_0x5d1e8e)=>{const _0x5c0342=a0_0x3e97bd,_0x522816=new ApiCommand(),_0x1c80e5=program[_0x5c0342(0x180)](),_0x32ab7b=createTDXInstance(_0x1c80e5),_0x4f3c3a=await _0x522816[_0x5c0342(0x191)]({'options':{..._0x1c80e5,..._0x5d1e8e},'args':[_0x392470],'tdx':_0x32ab7b});process['exit'](_0x4f3c3a);}),program['command'](a0_0x3e97bd(0x1fa))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x183))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1f5),a0_0x3e97bd(0x1b7))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1ac),a0_0x3e97bd(0x182))[a0_0x3e97bd(0x1ce)](async(_0x4ffa8f,_0x31c0ea)=>{const _0x2f1eb9=a0_0x3e97bd,_0x585efd=new TablesCommand(),_0x1b42c9=program[_0x2f1eb9(0x180)](),_0x441504=createTDXInstance(_0x1b42c9);_0x31c0ea['in']&&(_0x31c0ea[_0x2f1eb9(0x1bd)]=_0x31c0ea['in']);const _0x372b69=await _0x585efd[_0x2f1eb9(0x191)]({'options':{..._0x1b42c9,..._0x31c0ea},'args':_0x4ffa8f?[_0x4ffa8f]:[],'tdx':_0x441504});process[_0x2f1eb9(0x17a)](_0x372b69);}),program['command'](a0_0x3e97bd(0x1d4))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1be))['option'](a0_0x3e97bd(0x1f5),a0_0x3e97bd(0x1f9))['option'](a0_0x3e97bd(0x1ac),a0_0x3e97bd(0x182))[a0_0x3e97bd(0x1ce)](async(_0x443c0e,_0x3cfd76)=>{const _0x30feb2=a0_0x3e97bd,_0x5c7b77=new ShowCommand(),_0x3dbefe=program['opts'](),_0x54aadf=createTDXInstance(_0x3dbefe);_0x3cfd76['in']&&(_0x3cfd76[_0x30feb2(0x1bd)]=_0x3cfd76['in']);const _0x328c46=await _0x5c7b77[_0x30feb2(0x191)]({'options':{..._0x3dbefe,..._0x3cfd76},'args':[_0x443c0e],'tdx':_0x54aadf});process[_0x30feb2(0x17a)](_0x328c46);}),program['command'](a0_0x3e97bd(0x15e))[a0_0x3e97bd(0x1eb)]('desc')[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x18a))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1f5),a0_0x3e97bd(0x1f9))['option'](a0_0x3e97bd(0x1ac),a0_0x3e97bd(0x182))[a0_0x3e97bd(0x1ce)](async(_0x305b86,_0xc1c819)=>{const _0x443cf9=a0_0x3e97bd,_0x25e446=new DescribeCommand(),_0x4fde7=program[_0x443cf9(0x180)](),_0x48c635=createTDXInstance(_0x4fde7);_0xc1c819['in']&&(_0xc1c819[_0x443cf9(0x1bd)]=_0xc1c819['in']);const _0x35d1b5=await _0x25e446['run']({'options':{..._0x4fde7,..._0xc1c819},'args':[_0x305b86],'tdx':_0x48c635});process[_0x443cf9(0x17a)](_0x35d1b5);}),program[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x19f))['description'](a0_0x3e97bd(0x1b4))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1f5),'Database\x20to\x20query\x20(default:\x20information_schema)')[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1ac),a0_0x3e97bd(0x182))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1ec),a0_0x3e97bd(0x17b))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1bf),'Read\x20SQL\x20query\x20from\x20file')['option'](a0_0x3e97bd(0x1f4),a0_0x3e97bd(0x188),'40')[a0_0x3e97bd(0x1ce)](async(_0x2464c7,_0x297894)=>{const _0x2ab4d3=a0_0x3e97bd,_0x50da5f=new QueryCommand(),_0x6f4100=program['opts'](),_0x2cf472=createTDXInstance(_0x6f4100);_0x297894['in']&&(_0x297894['database']=_0x297894['in']);const _0x3fc4b6=await _0x50da5f[_0x2ab4d3(0x191)]({'options':{..._0x6f4100,..._0x297894},'args':_0x2464c7?[_0x2464c7]:[],'tdx':_0x2cf472});process[_0x2ab4d3(0x17a)](_0x3fc4b6);}),program[a0_0x3e97bd(0x1c6)]('job')[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1fb))[a0_0x3e97bd(0x1ce)](()=>{const _0x59ef64=a0_0x3e97bd;console[_0x59ef64(0x19d)]('Job\x20commands\x20-\x20coming\x20soon');}),program[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x15f))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x192))['action'](async(_0x88af3a,_0x102a57)=>{const _0x54dbee=a0_0x3e97bd,_0x18411e=new SegmentsCommand(),_0x183119=program['opts'](),_0x348779=createTDXInstance(_0x183119),_0x158f74=await _0x18411e[_0x54dbee(0x191)]({'options':{..._0x183119,..._0x102a57},'args':_0x88af3a?[_0x88af3a]:[],'tdx':_0x348779});process[_0x54dbee(0x17a)](_0x158f74);});const segmentCmd=program[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1b6))['description']('CDP\x20segment\x20management\x20commands');segmentCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1e6))[a0_0x3e97bd(0x1eb)](a0_0x3e97bd(0x194))['description'](a0_0x3e97bd(0x195))[a0_0x3e97bd(0x1ce)](async(_0x2b9928,_0x520153)=>{const _0x4bebc2=a0_0x3e97bd,_0x374ac4=new SegmentDescribeCommand(),_0x3b654b=program['opts'](),_0x2400ae=createTDXInstance(_0x3b654b),_0x4e9de8=await _0x374ac4[_0x4bebc2(0x191)]({'options':{..._0x3b654b,..._0x520153},'args':[_0x2b9928],'tdx':_0x2400ae});process[_0x4bebc2(0x17a)](_0x4e9de8);}),segmentCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1d2))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1f0))['action'](async(_0x5503a0,_0x4f69a0)=>{const _0x290f11=a0_0x3e97bd,_0x21e4bc=new SegmentShowCommand(),_0x7a6b4e=program['opts'](),_0x4a42b0=createTDXInstance(_0x7a6b4e),_0xcb758d=await _0x21e4bc[_0x290f11(0x191)]({'options':{..._0x7a6b4e,..._0x4f69a0},'args':[_0x5503a0],'tdx':_0x4a42b0});process['exit'](_0xcb758d);}),segmentCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1fc))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1e2))[a0_0x3e97bd(0x1ce)](async(_0x1c7c4a,_0x195bbd)=>{const _0x581188=a0_0x3e97bd,_0x5f496c=new SegmentFolderListCommand(),_0x5c7d01=program[_0x581188(0x180)](),_0xe5d6ff=createTDXInstance(_0x5c7d01),_0x27f24f=await _0x5f496c[_0x581188(0x191)]({'options':{..._0x5c7d01,..._0x195bbd},'args':[_0x1c7c4a],'tdx':_0xe5d6ff});process[_0x581188(0x17a)](_0x27f24f);});const folderCmd=segmentCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x18c))[a0_0x3e97bd(0x1fe)]('Segment\x20folder\x20management');function a0_0xcf6c(_0x3e7840,_0x42ddfb){const _0x13e059=a0_0x13e0();return a0_0xcf6c=function(_0xcf6c1d,_0x4e1075){_0xcf6c1d=_0xcf6c1d-0x15b;let _0x3711ad=_0x13e059[_0xcf6c1d];return _0x3711ad;},a0_0xcf6c(_0x3e7840,_0x42ddfb);}function a0_0x13e0(){const _0x1a85b7=['--name\x20<text>','requiredOption','preAction','Read\x20request\x20body\x20from\x20file','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Include\x20subtasks\x20in\x20the\x20output','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--jsonl','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','claude-4.5-sonnet','Start\x20time\x20filter\x20(ISO\x208601\x20format)','parse','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','464kGFvwQ','--agent\x20<ref>','Agent\x20name','Workflow\x20(Digdag)\x20management\x20commands','exit','Trino\x20catalog\x20(default:\x20td)','logs\x20<attempt-id>\x20<task-name>','--max-tool-iterations\x20<n>','Resume\x20from\x20specific\x20task\x20(attempt\x20retry\x20only)','--include-subtasks','opts','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','\x20\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a','version','name','Agent\x20description','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--description\x20<text>','Describe\x20table\x20schema','history\x20[chat-id]','folder','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','format','Get\x20agent\x20details\x20(use\x20\x22project-name/agent-name\x22)','Examples:\x0a','run','List\x20parent\x20segments\x20or\x20child\x20segments\x20under\x20a\x20parent','Show\x20tasks\x20for\x20an\x20attempt','desc','Show\x20segment\x20details\x20(use\x20parent_name\x20or\x20parent_name.child_name)','--format\x20<format>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02)','Enable\x20verbose\x20logging','\x20\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a','--site\x20<site>','--temperature\x20<n>','Kill\x20a\x20running\x20attempt','log','--force','query\x20[sql]','slice','--offset\x20<number>','sessions\x20[project]','outputHelp','show\x20<folder_ref>','37466803LHuuLl','236574PVuTvJ','--tsv','List\x20all\x20LLM\x20agents\x20(optionally\x20filtered\x20by\x20project\x20name)','Skip\x20confirmation\x20prompts','remove\x20<agent-ref>','Delete\x20an\x20agent\x20(use\x20\x22project-name/agent-name\x22)','--in\x20<database>','595JRZicw','get\x20<agent-ref>','Force\x20retry\x20even\x20if\x20not\x20failed\x20(attempt\x20retry\x20only)','Model\x20name\x20(default:\x20claude-4.5-sonnet)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--from-task\x20<task>','4339980tfeYTk','Run\x20Trino\x20query\x20with\x20streaming\x20results','Set\x20operation\x20timeout\x20in\x20seconds','segment','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','4202920pCzeyj','Show\x20logs\x20for\x20a\x20specific\x20task','length','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20available\x20LLM\x20models','database','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','-f,\x20--file\x20<path>','url','tsv','Retry\x20a\x20session\x20or\x20attempt\x20(prefix\x20with\x20session:\x20or\x20attempt:)','--data\x20<data>','us01','--params\x20<json>','command','tasks\x20<attempt-id>','verbose','workflows\x20[project]','Starting\x20offset\x20for\x20logs\x20(default:\x200)','Get\x20SQL\x20query\x20for\x20segment\x20(use\x20parent_name\x20or\x20parent_name.child_name)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','986225aUJoCJ','action','activations\x20<segment_name>','110543XUJtqf','6KyibMT','show\x20<segment_name>','GET','show\x20<table>','-c,\x20--continue','--reason\x20<text>','Show\x20folder\x20details\x20(use\x20parent_name.folder_name)','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','jsonl','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--model\x20<name>','\x20\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow','option','--dry-run','update\x20<agent-ref>','Show\x20specific\x20attempt\x20details','Temperature\x20(0.0-2.0,\x20default:\x200.7)','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','hook','-H,\x20--header\x20<header>','describe\x20<segment_name>','Include\x20retried\x20attempts','models','Request\x20body\x20as\x20JSON\x20string','chat\x20[message...]','alias','--catalog\x20<catalog>','--from\x20<timestamp>','Resume\x20from\x20specific\x20task\x20(session\x20retry\x20only)','Project\x20ID','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(use\x20parent_name\x20or\x20parent_name.child_name)','argv','tdx','--json','--limit\x20<rows>','-d,\x20--database\x20<database>','4SyfAoJ','--type\x20<api_type>','projects\x20[pattern]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','tables\x20[pattern]','Job\x20management\x20commands','folders\x20<parent_name>','--color','description','System\x20prompt/instructions\x20(default:\x20empty)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Reason\x20for\x20killing\x20the\x20attempt','--timeout\x20<seconds>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','describe\x20<table>','segments\x20[parent_name]','Update\x20an\x20existing\x20agent\x20(use\x20\x22project-name/agent-name\x22)','--verbose','workflow','retry\x20<session-id|attempt-id>','attempt\x20<attempt-id>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','List\x20all\x20LLM\x20projects','22956sCxOIW','--prompt\x20<text>'];a0_0x13e0=function(){return _0x1a85b7;};return a0_0x13e0();}folderCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1a4))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1d7))[a0_0x3e97bd(0x1ce)](async(_0x979d96,_0xcd6f2a)=>{const _0x2a7897=a0_0x3e97bd,_0x260e04=new SegmentFolderShowCommand(),_0x2f9231=program[_0x2a7897(0x180)](),_0x4e58d6=createTDXInstance(_0x2f9231),_0x58e4a7=await _0x260e04[_0x2a7897(0x191)]({'options':{..._0x2f9231,..._0xcd6f2a},'args':[_0x979d96],'tdx':_0x4e58d6});process[_0x2a7897(0x17a)](_0x58e4a7);}),segmentCmd[a0_0x3e97bd(0x1c6)]('sql\x20<segment_name>')[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1cb))[a0_0x3e97bd(0x1ce)](async(_0x899fe0,_0x449887)=>{const _0x292dcd=a0_0x3e97bd,_0xb1c65d=new SegmentSQLCommand(),_0x57944b=program[_0x292dcd(0x180)](),_0x5f2cca=createTDXInstance(_0x57944b),_0x4d1e4a=await _0xb1c65d[_0x292dcd(0x191)]({'options':{..._0x57944b,..._0x449887},'args':[_0x899fe0],'tdx':_0x5f2cca});process[_0x292dcd(0x17a)](_0x4d1e4a);}),program[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1cf))[a0_0x3e97bd(0x1fe)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name.child_name)')[a0_0x3e97bd(0x1ce)](async(_0x394494,_0x2a8fe1)=>{const _0x7747b6=a0_0x3e97bd,_0x46ef6e=new ActivationsCommand(),_0x3327de=program[_0x7747b6(0x180)](),_0x1bf65b=createTDXInstance(_0x3327de),_0x22f40b=await _0x46ef6e[_0x7747b6(0x191)]({'options':{..._0x3327de,..._0x2a8fe1},'args':[_0x394494],'tdx':_0x1bf65b});process[_0x7747b6(0x17a)](_0x22f40b);});const workflowCmd=program['command'](a0_0x3e97bd(0x162))[a0_0x3e97bd(0x1eb)]('wf')['description'](a0_0x3e97bd(0x179));workflowCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1f8))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x181))[a0_0x3e97bd(0x1ce)](async(_0x47db52,_0x258bb6)=>{const _0x37c3ed=a0_0x3e97bd,_0x1176f1=new WorkflowProjectsCommand(),_0x293b7a=program[_0x37c3ed(0x180)](),_0x1ee527=createTDXInstance(_0x293b7a),_0x854b9b=await _0x1176f1[_0x37c3ed(0x191)]({'options':{..._0x293b7a,..._0x258bb6},'args':_0x47db52?[_0x47db52]:[],'tdx':_0x1ee527});process['exit'](_0x854b9b);}),workflowCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1c9))[a0_0x3e97bd(0x1eb)]('ls')['description']('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a0_0x3e97bd(0x1ce)](async(_0x730910,_0x23d79e)=>{const _0x382d1b=new WorkflowWorkflowsCommand(),_0x18ed09=program['opts'](),_0x1685d4=createTDXInstance(_0x18ed09),_0x15ba08=await _0x382d1b['run']({'options':{..._0x18ed09,..._0x23d79e},'args':_0x730910?[_0x730910]:[],'tdx':_0x1685d4});process['exit'](_0x15ba08);}),workflowCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1a2))[a0_0x3e97bd(0x1fe)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a0_0x3e97bd(0x1dd)]('--status\x20<status>',a0_0x3e97bd(0x1e3))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1ed),a0_0x3e97bd(0x173))[a0_0x3e97bd(0x1dd)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')[a0_0x3e97bd(0x1ce)](async(_0x514e23,_0x157da6)=>{const _0x29e3d6=a0_0x3e97bd,_0x5f2c15=new WorkflowSessionsCommand(),_0x4a2db9=program[_0x29e3d6(0x180)](),_0x568bf1=createTDXInstance(_0x4a2db9),_0x4fb8f7=await _0x5f2c15[_0x29e3d6(0x191)]({'options':{..._0x4a2db9,..._0x157da6},'args':_0x514e23?[_0x514e23]:[],'tdx':_0x568bf1});process['exit'](_0x4fb8f7);}),workflowCmd[a0_0x3e97bd(0x1c6)]('attempts\x20[project]')[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x16d))[a0_0x3e97bd(0x1dd)]('--include-retried',a0_0x3e97bd(0x1e7))[a0_0x3e97bd(0x1ce)](async(_0x1cde8b,_0x41bd96)=>{const _0xa405e3=a0_0x3e97bd,_0x121760=new WorkflowAttemptsCommand(),_0x5c796d=program[_0xa405e3(0x180)](),_0x49cd39=createTDXInstance(_0x5c796d),_0x373278=await _0x121760[_0xa405e3(0x191)]({'options':{..._0x5c796d,..._0x41bd96},'args':_0x1cde8b?[_0x1cde8b]:[],'tdx':_0x49cd39});process['exit'](_0x373278);}),workflowCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x164))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1e0))[a0_0x3e97bd(0x1ce)](async(_0x2029de,_0x579978)=>{const _0xfd52b5=a0_0x3e97bd,_0x85656b=new WorkflowAttemptCommand(),_0x56776c=program['opts'](),_0xe273a9=createTDXInstance(_0x56776c),_0x35dc02=await _0x85656b[_0xfd52b5(0x191)]({'options':{..._0x56776c,..._0x579978},'args':[_0x2029de],'tdx':_0xe273a9});process[_0xfd52b5(0x17a)](_0x35dc02);}),workflowCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1c7))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x193))['option'](a0_0x3e97bd(0x17f),a0_0x3e97bd(0x16e))['action'](async(_0x2d44a1,_0xcddb86)=>{const _0x4fd4f2=a0_0x3e97bd,_0x71c294=new WorkflowTasksCommand(),_0x328de5=program[_0x4fd4f2(0x180)](),_0x37e172=createTDXInstance(_0x328de5),_0x4a459a=await _0x71c294[_0x4fd4f2(0x191)]({'options':{..._0x328de5,..._0xcddb86},'args':[_0x2d44a1],'tdx':_0x37e172});process['exit'](_0x4a459a);}),workflowCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x17c))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1b9))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1a1),a0_0x3e97bd(0x1ca),_0x260a67=>parseInt(_0x260a67,0xa),0x0)['action'](async(_0x48773e,_0x5bd582,_0x189a7f)=>{const _0x441b82=a0_0x3e97bd,_0x454090=new WorkflowLogsCommand(),_0x498f7e=program[_0x441b82(0x180)](),_0x420b2a=createTDXInstance(_0x498f7e),_0x4cd486=await _0x454090['run']({'options':{..._0x498f7e,..._0x189a7f},'args':[_0x48773e,_0x5bd582],'tdx':_0x420b2a});process[_0x441b82(0x17a)](_0x4cd486);}),workflowCmd['command']('kill\x20<attempt-id>')[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x19c))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1d6),a0_0x3e97bd(0x15b))[a0_0x3e97bd(0x1ce)](async(_0xeb5e31,_0x379208)=>{const _0x1e614b=a0_0x3e97bd,_0x25ae43=new WorkflowKillCommand(),_0x2b130b=program[_0x1e614b(0x180)](),_0x404069=createTDXInstance(_0x2b130b),_0x371ee2=await _0x25ae43['run']({'options':{..._0x2b130b,..._0x379208},'args':[_0xeb5e31],'tdx':_0x404069});process[_0x1e614b(0x17a)](_0x371ee2);}),workflowCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x163))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1c2))['option'](a0_0x3e97bd(0x1b2),a0_0x3e97bd(0x1ee))[a0_0x3e97bd(0x1dd)]('--resume-from\x20<task>',a0_0x3e97bd(0x17e))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x1c5),a0_0x3e97bd(0x18d))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x19e),a0_0x3e97bd(0x1af))[a0_0x3e97bd(0x1ce)](async(_0x52f24b,_0x1fe6f8)=>{const _0x27ccb3=a0_0x3e97bd,_0x2c1bde=new WorkflowRetryCommand(),_0x46a3a6=program[_0x27ccb3(0x180)](),_0x43e9e0=createTDXInstance(_0x46a3a6),_0x5da846=await _0x2c1bde['run']({'options':{..._0x46a3a6,..._0x1fe6f8},'args':[_0x52f24b],'tdx':_0x43e9e0});process[_0x27ccb3(0x17a)](_0x5da846);}),program['command']('agents\x20[project-name]')[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1a8))[a0_0x3e97bd(0x1ce)](async(_0x5db2d9,_0x56873b)=>{const _0x30e653=a0_0x3e97bd,_0x3a9e6b=new AgentsListCommand(),_0x2e4574=program[_0x30e653(0x180)](),_0x18cbeb=createTDXInstance(_0x2e4574),_0x39c05e=await _0x3a9e6b[_0x30e653(0x191)]({'options':{..._0x2e4574,..._0x56873b},'args':_0x5db2d9?[_0x5db2d9]:[],'tdx':_0x18cbeb});process['exit'](_0x39c05e);});const agentCmd=program[a0_0x3e97bd(0x1c6)]('agent')[a0_0x3e97bd(0x1fe)]('LLM\x20agent\x20management\x20commands');agentCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1e8))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1bc))[a0_0x3e97bd(0x1ce)](async _0x30bad5=>{const _0x51193f=a0_0x3e97bd,_0x4212fa=new AgentModelsCommand(),_0x1aa66a=program[_0x51193f(0x180)](),_0x5d1520=createTDXInstance(_0x1aa66a),_0x44a222=await _0x4212fa[_0x51193f(0x191)]({'options':{..._0x1aa66a,..._0x30bad5},'args':[],'tdx':_0x5d1520});process[_0x51193f(0x17a)](_0x44a222);}),agentCmd['command']('projects')['description'](a0_0x3e97bd(0x166))['action'](async _0x3a5ffa=>{const _0x231a0e=a0_0x3e97bd,_0x2a8e4b=new AgentProjectsCommand(),_0x28974b=program[_0x231a0e(0x180)](),_0x45e9b4=createTDXInstance(_0x28974b),_0x3d3678=await _0x2a8e4b[_0x231a0e(0x191)]({'options':{..._0x28974b,..._0x3a5ffa},'args':[],'tdx':_0x45e9b4});process[_0x231a0e(0x17a)](_0x3d3678);}),agentCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1ae))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x18f))[a0_0x3e97bd(0x1ce)](async(_0x4b3edf,_0x22595)=>{const _0x4d820a=a0_0x3e97bd,_0x3a1d88=new AgentGetCommand(),_0x5a91c1=program[_0x4d820a(0x180)](),_0x2b8dae=createTDXInstance(_0x5a91c1),_0x55e648=await _0x3a1d88['run']({'options':{..._0x5a91c1,..._0x22595},'args':[_0x4b3edf],'tdx':_0x2b8dae});process['exit'](_0x55e648);}),agentCmd[a0_0x3e97bd(0x1c6)]('create\x20<name>')['description']('Create\x20a\x20new\x20agent')[a0_0x3e97bd(0x16a)]('--project-id\x20<id>',a0_0x3e97bd(0x1ef))[a0_0x3e97bd(0x1dd)]('--system-prompt\x20<text>',a0_0x3e97bd(0x1ff))['option']('--model\x20<name>',a0_0x3e97bd(0x200),a0_0x3e97bd(0x172))['option']('--starter-message\x20<text>','Starter\x20message')[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x17d),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a0_0x3e97bd(0x1dd)]('--temperature\x20<n>',a0_0x3e97bd(0x1e1),'0.7')[a0_0x3e97bd(0x1ce)](async(_0x428413,_0x32ff3f)=>{const _0x42e344=a0_0x3e97bd,_0x135418=new AgentCreateCommand(),_0xe5bc36=program[_0x42e344(0x180)](),_0x2fb5de=createTDXInstance(_0xe5bc36),_0x4853a7=await _0x135418[_0x42e344(0x191)]({'options':{..._0xe5bc36,..._0x32ff3f},'args':[_0x428413],'tdx':_0x2fb5de});process[_0x42e344(0x17a)](_0x4853a7);}),agentCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1df))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x160))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x169),a0_0x3e97bd(0x178))[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x168),'Agent\x20prompt/instructions')[a0_0x3e97bd(0x1dd)](a0_0x3e97bd(0x189),a0_0x3e97bd(0x187))[a0_0x3e97bd(0x1dd)]('--starter-message\x20<text>','Starter\x20message')['action'](async(_0x4b7a3d,_0x113371)=>{const _0x1cbfc0=a0_0x3e97bd,_0x4588c5=new AgentUpdateCommand(),_0x159e43=program['opts'](),_0x3cbb17=createTDXInstance(_0x159e43),_0x44a3ac=await _0x4588c5[_0x1cbfc0(0x191)]({'options':{..._0x159e43,..._0x113371},'args':[_0x4b7a3d],'tdx':_0x3cbb17});process[_0x1cbfc0(0x17a)](_0x44a3ac);}),agentCmd[a0_0x3e97bd(0x1c6)](a0_0x3e97bd(0x1aa))[a0_0x3e97bd(0x1eb)]('delete')[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1ab))[a0_0x3e97bd(0x1ce)](async(_0x3549e2,_0x14e7ad)=>{const _0x2acac9=a0_0x3e97bd,_0x288359=new AgentRemoveCommand(),_0x319479=program[_0x2acac9(0x180)](),_0x3411d6=createTDXInstance(_0x319479),_0xac56a6=await _0x288359[_0x2acac9(0x191)]({'options':{..._0x319479,..._0x14e7ad},'args':[_0x3549e2],'tdx':_0x3411d6});process[_0x2acac9(0x17a)](_0xac56a6);}),agentCmd['command'](a0_0x3e97bd(0x18b))[a0_0x3e97bd(0x1fe)](a0_0x3e97bd(0x1bb))['action'](async(_0x49e486,_0x1f5752)=>{const _0x5bd7b8=a0_0x3e97bd,_0x1365fb=new AgentHistoryCommand(),_0x5a095d=program[_0x5bd7b8(0x180)](),_0x5e36a4=createTDXInstance(_0x5a095d),_0x4444d1=await _0x1365fb[_0x5bd7b8(0x191)]({'options':{..._0x5a095d,..._0x1f5752},'args':_0x49e486?[_0x49e486]:[],'tdx':_0x5e36a4});process[_0x5bd7b8(0x17a)](_0x4444d1);}),program['parse'](process[a0_0x3e97bd(0x1f1)]);!process[a0_0x3e97bd(0x1f1)][a0_0x3e97bd(0x1a0)](0x2)[a0_0x3e97bd(0x1ba)]&&program[a0_0x3e97bd(0x1a3)]();
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AAExC,sBAAsB;AACtB,MAAM,UAAU,GAAG,aAAa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AAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAC;IACtD,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAClC,MAAM,GAAG,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAE1C,MAAM,QAAQ,GAAG,MAAM,mBAAmB,CAAC,GAAG,CAAC;QAC7C,OAAO,EAAE,EAAE,GAAG,UAAU,EAAE,GAAG,UAAU,EAAE;QACzC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;QAC5B,GAAG;KACJ,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACzB,CAAC,CAAC,CAAC;AAEL,kBAAkB;AAClB,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5B,mCAAmC;AACnC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,OAAO,CAAC,UAAU,EAAE,CAAC;AACvB,CAAC"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides high-level interface to CDP API endpoints for segments and activations
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
6
|
+
import type { ParentSegment, Segment, SegmentFolder, SegmentFolderDetails, Activation } from '../types/index.js';
|
|
7
|
+
import type { SDKConfig } from '../sdk/index.js';
|
|
7
8
|
/**
|
|
8
9
|
* CDP API client for segments, folders, and activations
|
|
9
10
|
*/
|
|
@@ -14,10 +15,9 @@ export declare class CDPClient {
|
|
|
14
15
|
/**
|
|
15
16
|
* Create CDP API client
|
|
16
17
|
*
|
|
17
|
-
* @param
|
|
18
|
-
* @param verbose - Enable verbose logging of API responses
|
|
18
|
+
* @param config - SDK configuration with site and apiKey
|
|
19
19
|
*/
|
|
20
|
-
constructor(
|
|
20
|
+
constructor(config: SDKConfig);
|
|
21
21
|
/**
|
|
22
22
|
* Log verbose response if verbose mode is enabled
|
|
23
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdp-client.d.ts","sourceRoot":"","sources":["../../src/client/cdp-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"cdp-client.d.ts","sourceRoot":"","sources":["../../src/client/cdp-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACjH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKjD;;GAEG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,WAAW,CAAyB;IAC5C,OAAO,CAAC,OAAO,CAAU;IAEzB;;;;OAIG;gBACS,MAAM,EAAE,SAAS;IAiB7B;;OAEG;IACH,OAAO,CAAC,UAAU;IAOlB;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;IAapD;;;;OAIG;IACG,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAahE;;;;OAIG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAaxD;;;;;OAKG;IACG,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAavE;;;;OAIG;IACG,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAapE;;;;;OAKG;IACG,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAavE;;;;;OAKG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAajF;;;;;OAKG;IACG,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAkB5D;;;;;;OAMG;IACG,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CA0B1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a1_0x193cfd=a1_0x192f;(function(_0x795374,_0x59524c){const _0x382ebb=a1_0x192f,_0x2fb3b1=_0x795374();while(!![]){try{const _0x1cef5a=parseInt(_0x382ebb(0x71))/0x1*(parseInt(_0x382ebb(0x8c))/0x2)+parseInt(_0x382ebb(0x79))/0x3+parseInt(_0x382ebb(0x6d))/0x4*(parseInt(_0x382ebb(0x73))/0x5)+-parseInt(_0x382ebb(0x7d))/0x6*(-parseInt(_0x382ebb(0x8d))/0x7)+-parseInt(_0x382ebb(0x89))/0x8*(parseInt(_0x382ebb(0x91))/0x9)+parseInt(_0x382ebb(0x8e))/0xa*(parseInt(_0x382ebb(0x8b))/0xb)+parseInt(_0x382ebb(0x75))/0xc*(-parseInt(_0x382ebb(0x85))/0xd);if(_0x1cef5a===_0x59524c)break;else _0x2fb3b1['push'](_0x2fb3b1['shift']());}catch(_0x5707ad){_0x2fb3b1['push'](_0x2fb3b1['shift']());}}}(a1_0x9230,0x2f7ec));function a1_0x9230(){const _0x13a43b=['/segments','801291zxFnNL','listSegments','getParentSegmentSQL','getSegment','30BShYkw','rule','request','/audiences/','\x0a[CDP\x20API\x20Response]\x20','listSegmentFolders','site','listActivations','26zTKgdF','cdp','getParentSegment','GET','25848POeWDN','logVerbose','33YVbcGF','5204MbjPjI','364259mDHuDQ','113240ErQWsC','error','/entities/parent_segments/','657jrYFMo','sql','listParentSegments','data','/entities/parent_segments','isArray','authHeaders','/segments/','verbose','4tXTnZv','query','POST','/segments/query','1amXkhL','/syndications','1870755gpySFg','/entities/folders/','3045624QZxbqv','httpClient','stringify'];a1_0x9230=function(){return _0x13a43b;};return a1_0x9230();}import{HTTPClient}from'./http-client.js';function a1_0x192f(_0x26b7f1,_0x1b80eb){const _0x923083=a1_0x9230();return a1_0x192f=function(_0x192fd0,_0x2ca346){_0x192fd0=_0x192fd0-0x6b;let _0x4af234=_0x923083[_0x192fd0];return _0x4af234;},a1_0x192f(_0x26b7f1,_0x1b80eb);}import{getEndpoint}from'../types/index.js';import{getAuthHeaders}from'../core/auth.js';export class CDPClient{[a1_0x193cfd(0x76)];[a1_0x193cfd(0x97)];[a1_0x193cfd(0x6c)];constructor(_0x3213d0){const _0x44a537=a1_0x193cfd,_0x5f22b0=getEndpoint(_0x3213d0[_0x44a537(0x83)],_0x44a537(0x86));this[_0x44a537(0x97)]=getAuthHeaders(_0x3213d0[_0x44a537(0x83)],_0x3213d0['apiKey']),this[_0x44a537(0x6c)]=_0x3213d0[_0x44a537(0x6c)],this[_0x44a537(0x76)]=new HTTPClient(_0x5f22b0,{...this[_0x44a537(0x97)],'Accept':'application/vnd.treasuredata.v1+json','Content-Type':'application/json'});}[a1_0x193cfd(0x8a)](_0xb1b9ab,_0x11c8d6){const _0x2a475e=a1_0x193cfd;this[_0x2a475e(0x6c)]&&(console['error'](_0x2a475e(0x81)+_0xb1b9ab),console[_0x2a475e(0x8f)](JSON[_0x2a475e(0x77)](_0x11c8d6,null,0x2)));}async[a1_0x193cfd(0x93)](){const _0x1b6696=a1_0x193cfd,_0x33c7c2=_0x1b6696(0x95),_0x54d932=await this[_0x1b6696(0x76)][_0x1b6696(0x7f)](_0x1b6696(0x88),_0x33c7c2);return this[_0x1b6696(0x8a)](_0x33c7c2,_0x54d932),Array[_0x1b6696(0x96)](_0x54d932)?_0x54d932:_0x54d932[_0x1b6696(0x94)];}async[a1_0x193cfd(0x87)](_0x22a524){const _0x108106=a1_0x193cfd,_0x55f39f=_0x108106(0x90)+_0x22a524,_0x2f008d=await this[_0x108106(0x76)][_0x108106(0x7f)]('GET',_0x55f39f);return this['logVerbose'](_0x55f39f,_0x2f008d),_0x108106(0x94)in _0x2f008d?_0x2f008d[_0x108106(0x94)]:_0x2f008d;}async[a1_0x193cfd(0x7a)](_0xe24eca){const _0xa42e40=a1_0x193cfd,_0x474369=_0xa42e40(0x80)+_0xe24eca+_0xa42e40(0x78),_0x33e39d=await this['httpClient'][_0xa42e40(0x7f)](_0xa42e40(0x88),_0x474369);return this[_0xa42e40(0x8a)](_0x474369,_0x33e39d),Array['isArray'](_0x33e39d)?_0x33e39d:_0x33e39d['data'];}async['getSegment'](_0x5c1241,_0x45b98f){const _0x230da4=a1_0x193cfd,_0x374119='/audiences/'+_0x5c1241+'/segments/'+_0x45b98f,_0x3e2513=await this[_0x230da4(0x76)][_0x230da4(0x7f)]('GET',_0x374119);return this[_0x230da4(0x8a)](_0x374119,_0x3e2513),_0x230da4(0x94)in _0x3e2513?_0x3e2513['data']:_0x3e2513;}async[a1_0x193cfd(0x82)](_0x23c949){const _0x1f253d=a1_0x193cfd,_0xa9441a=_0x1f253d(0x80)+_0x23c949+'/folders',_0x516a55=await this[_0x1f253d(0x76)][_0x1f253d(0x7f)]('GET',_0xa9441a);return this['logVerbose'](_0xa9441a,_0x516a55),Array[_0x1f253d(0x96)](_0x516a55)?_0x516a55:_0x516a55['data'];}async['getSegmentFolder'](_0x4d84b7){const _0x42106b=a1_0x193cfd,_0x4a985a=_0x42106b(0x74)+_0x4d84b7,_0x15413e=await this['httpClient'][_0x42106b(0x7f)]('GET',_0x4a985a);return this[_0x42106b(0x8a)](_0x4a985a,_0x15413e),_0x42106b(0x94)in _0x15413e?_0x15413e[_0x42106b(0x94)]:_0x15413e;}async[a1_0x193cfd(0x84)](_0x365bba,_0x3c9cbb){const _0x593588=a1_0x193cfd,_0x384ab4=_0x593588(0x80)+_0x365bba+_0x593588(0x6b)+_0x3c9cbb+_0x593588(0x72),_0x1bdce1=await this[_0x593588(0x76)][_0x593588(0x7f)](_0x593588(0x88),_0x384ab4);return this[_0x593588(0x8a)](_0x384ab4,_0x1bdce1),Array['isArray'](_0x1bdce1)?_0x1bdce1:_0x1bdce1[_0x593588(0x94)];}async[a1_0x193cfd(0x7b)](_0x447985){const _0x25cfa4=a1_0x193cfd,_0x1fbc36=_0x25cfa4(0x80)+_0x447985+_0x25cfa4(0x70),_0x4a84a0=await this[_0x25cfa4(0x76)][_0x25cfa4(0x7f)](_0x25cfa4(0x6f),_0x1fbc36,{'body':{'format':_0x25cfa4(0x92)}});return this['logVerbose'](_0x1fbc36,_0x4a84a0),_0x4a84a0[_0x25cfa4(0x92)]||_0x4a84a0[_0x25cfa4(0x6e)]||'';}async['getSegmentSQL'](_0x419801,_0x2b23aa){const _0x278e3e=a1_0x193cfd,_0x57e722=await this[_0x278e3e(0x7c)](_0x419801,_0x2b23aa),_0x56713f={'format':_0x278e3e(0x92)};'rule'in _0x57e722&&_0x57e722['rule']&&(_0x56713f[_0x278e3e(0x7e)]=_0x57e722['rule']);const _0xeec098=_0x278e3e(0x80)+_0x419801+_0x278e3e(0x70),_0x3c7eba=await this['httpClient']['request'](_0x278e3e(0x6f),_0xeec098,{'body':_0x56713f});return this[_0x278e3e(0x8a)](_0xeec098,_0x3c7eba),_0x3c7eba['sql']||_0x3c7eba[_0x278e3e(0x6e)]||'';}}
|