@treasuredata/tdx 0.1.4 → 0.1.5
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 +330 -145
- 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.d.ts +2 -2
- package/dist/commands/chat-command.d.ts.map +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/chat-command.js.map +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/context-command.d.ts +14 -0
- package/dist/commands/context-command.d.ts.map +1 -0
- package/dist/commands/context-command.js +1 -0
- package/dist/commands/context-command.js.map +1 -0
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/profiles-command.d.ts +16 -0
- package/dist/commands/profiles-command.d.ts.map +1 -0
- package/dist/commands/profiles-command.js +1 -0
- package/dist/commands/profiles-command.js.map +1 -0
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.d.ts +18 -0
- package/dist/commands/use-command.d.ts.map +1 -0
- package/dist/commands/use-command.js +1 -0
- package/dist/commands/use-command.js.map +1 -0
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.d.ts +15 -4
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/global-context.d.ts +48 -0
- package/dist/core/global-context.d.ts.map +1 -0
- package/dist/core/global-context.js +1 -0
- package/dist/core/global-context.js.map +1 -0
- package/dist/core/profile.d.ts +117 -0
- package/dist/core/profile.d.ts.map +1 -0
- package/dist/core/profile.js +1 -0
- package/dist/core/profile.js.map +1 -0
- package/dist/core/project-config.d.ts +54 -0
- package/dist/core/project-config.d.ts.map +1 -0
- package/dist/core/project-config.js +1 -0
- package/dist/core/project-config.js.map +1 -0
- package/dist/core/session.d.ts +73 -0
- package/dist/core/session.d.ts.map +1 -0
- package/dist/core/session.js +1 -0
- package/dist/core/session.js.map +1 -0
- package/dist/index.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/llm.js +1 -1
- 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.js +1 -1
- package/dist/types/index.d.ts +9 -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.d.ts +41 -0
- package/dist/utils/file-permissions.d.ts.map +1 -0
- package/dist/utils/file-permissions.js +1 -0
- package/dist/utils/file-permissions.js.map +1 -0
- 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/process.d.ts +18 -0
- package/dist/utils/process.d.ts.map +1 -0
- package/dist/utils/process.js +1 -0
- package/dist/utils/process.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/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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)]();
|
|
2
|
+
const a0_0x22f7a9=a0_0x408f;(function(_0x6db27b,_0x4d094d){const _0x509bbb=a0_0x408f,_0x4b173a=_0x6db27b();while(!![]){try{const _0x3a503=parseInt(_0x509bbb(0x135))/0x1*(-parseInt(_0x509bbb(0x12c))/0x2)+parseInt(_0x509bbb(0x180))/0x3+parseInt(_0x509bbb(0x110))/0x4*(-parseInt(_0x509bbb(0x17d))/0x5)+-parseInt(_0x509bbb(0x18e))/0x6+-parseInt(_0x509bbb(0x1b2))/0x7+-parseInt(_0x509bbb(0x1bc))/0x8*(parseInt(_0x509bbb(0x150))/0x9)+parseInt(_0x509bbb(0x13f))/0xa;if(_0x3a503===_0x4d094d)break;else _0x4b173a['push'](_0x4b173a['shift']());}catch(_0x2c0abc){_0x4b173a['push'](_0x4b173a['shift']());}}}(a0_0x208e,0x4c290));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';function a0_0x408f(_0x3c4d45,_0xecc693){const _0x208ec9=a0_0x208e();return a0_0x408f=function(_0x408f88,_0x282767){_0x408f88=_0x408f88-0x105;let _0x40d38f=_0x208ec9[_0x408f88];return _0x40d38f;},a0_0x408f(_0x3c4d45,_0xecc693);}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';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_0x22f7a9(0x19c)]),__dirname=dirname(__filename),packageJson=JSON[a0_0x22f7a9(0x1b3)](readFileSync(join(__dirname,a0_0x22f7a9(0x178)),a0_0x22f7a9(0x17b))),program=new Command();program[a0_0x22f7a9(0x10d)](a0_0x22f7a9(0x161))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x144))[a0_0x22f7a9(0x120)](packageJson[a0_0x22f7a9(0x120)],a0_0x22f7a9(0x198),a0_0x22f7a9(0x174)),program[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x107),a0_0x22f7a9(0x17c),a0_0x22f7a9(0x196))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x14a),a0_0x22f7a9(0x157))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x141),a0_0x22f7a9(0x10f))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x181),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')['option'](a0_0x22f7a9(0x17e),a0_0x22f7a9(0x191))['option'](a0_0x22f7a9(0x10c),a0_0x22f7a9(0x1a5))['option'](a0_0x22f7a9(0x16c),a0_0x22f7a9(0x1a4),'40')['option'](a0_0x22f7a9(0x19a),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])['option'](a0_0x22f7a9(0x1b8),a0_0x22f7a9(0x15c),![])[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x16e),'Enable\x20verbose\x20logging',![])[a0_0x22f7a9(0x112)]('--timeout\x20<seconds>',a0_0x22f7a9(0x18b),'30')['option'](a0_0x22f7a9(0x190),a0_0x22f7a9(0x10e),![])['option'](a0_0x22f7a9(0x17f),a0_0x22f7a9(0x19d),![])[a0_0x22f7a9(0x112)]('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x146),a0_0x22f7a9(0x185))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x127),a0_0x22f7a9(0x18c))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x1bf),a0_0x22f7a9(0x12f))[a0_0x22f7a9(0x112)]('--parent-segment\x20<name>',a0_0x22f7a9(0x145))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x11e),a0_0x22f7a9(0x14d))[a0_0x22f7a9(0x112)]('--llm-agent\x20<name>',a0_0x22f7a9(0x1a2))[a0_0x22f7a9(0x137)](a0_0x22f7a9(0x1a0),_0x2948d7=>{const _0x595862=a0_0x22f7a9,_0x547f95=_0x2948d7[_0x595862(0x10b)]();if(!_0x547f95[_0x595862(0x1be)]){if(_0x547f95[_0x595862(0x151)])_0x547f95[_0x595862(0x1be)]=_0x595862(0x151);else{if(_0x547f95['jsonl'])_0x547f95[_0x595862(0x1be)]=_0x595862(0x14f);else _0x547f95['tsv']&&(_0x547f95[_0x595862(0x1be)]='tsv');}}_0x547f95['in']&&!_0x547f95[_0x595862(0x193)]&&(_0x547f95[_0x595862(0x193)]=_0x547f95['in']);});function createTDXInstance(_0x4a167f){const _0x2a731c=a0_0x22f7a9,_0xcf26fd=new GlobalContext(_0x4a167f);_0xcf26fd[_0x2a731c(0x155)](_0x4a167f);if(!_0xcf26fd[_0x2a731c(0x131)])throw new Error(_0x2a731c(0x148)+_0xcf26fd[_0x2a731c(0x165)]+'.\x20'+_0x2a731c(0x147));const _0x5eb1bc={'site':_0xcf26fd[_0x2a731c(0x165)],'apiKey':_0xcf26fd[_0x2a731c(0x131)],'verbose':_0xcf26fd[_0x2a731c(0x1ad)]};return new TDX(_0x5eb1bc);}program[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x1c0))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x173))[a0_0x22f7a9(0x1c1)](async(_0x2d3f10,_0x3ec860)=>{const _0x2cbd62=a0_0x22f7a9,_0x366462=new DatabasesCommand(),_0x71d8fd=program[_0x2cbd62(0x10b)](),_0x4d014b=createTDXInstance(_0x71d8fd),_0x44508f=await _0x366462[_0x2cbd62(0x195)]({'options':{..._0x71d8fd,..._0x3ec860},'args':_0x2d3f10?[_0x2d3f10]:[],'tdx':_0x4d014b});process[_0x2cbd62(0x11c)](_0x44508f);}),program[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x106))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x125))['option']('--agent\x20<ref>',a0_0x22f7a9(0x13d))['option'](a0_0x22f7a9(0x15b),a0_0x22f7a9(0x1ba))[a0_0x22f7a9(0x112)]('--temperature\x20<n>',a0_0x22f7a9(0x108))[a0_0x22f7a9(0x112)]('--new',a0_0x22f7a9(0x11d))[a0_0x22f7a9(0x1c1)](async(_0x51becd,_0x25359e)=>{const _0x4c7e19=a0_0x22f7a9,_0xf5b10=new ChatCommand(),_0x42f199=program['opts'](),_0x4bbacb=createTDXInstance(_0x42f199),_0x5b48f3=await _0xf5b10['run']({'options':{..._0x42f199,..._0x25359e},'args':_0x51becd,'tdx':_0x4bbacb});process[_0x4c7e19(0x11c)](_0x5b48f3);});const apiCmd=program['command'](a0_0x22f7a9(0x1aa))[a0_0x22f7a9(0x17a)](a0_0x22f7a9(0x139))['addHelpText'](a0_0x22f7a9(0x179),a0_0x22f7a9(0x169))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x152),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')[a0_0x22f7a9(0x112)]('--data\x20<data>','Request\x20body\x20as\x20JSON\x20string')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x12b),'Read\x20request\x20body\x20from\x20file')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x117),a0_0x22f7a9(0x1b5),(_0x4fe090,_0x2f262c)=>{return _0x2f262c?[..._0x2f262c,_0x4fe090]:[_0x4fe090];})[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x166),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a0_0x22f7a9(0x1c1)](async(_0x439ea7,_0x45ff9c)=>{const _0x3d99db=a0_0x22f7a9;if(!_0x439ea7){apiCmd[_0x3d99db(0x1ac)]();return;}const _0xb45bd1=new ApiCommand(),_0x2c52a2=program['opts'](),_0x4e3d49=createTDXInstance(_0x2c52a2),_0x1cd308=await _0xb45bd1[_0x3d99db(0x195)]({'options':{..._0x2c52a2,..._0x45ff9c},'args':[_0x439ea7],'tdx':_0x4e3d49});process[_0x3d99db(0x11c)](_0x1cd308);});program['command'](a0_0x22f7a9(0x19f))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x113))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x132),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x1bb),a0_0x22f7a9(0x12f))[a0_0x22f7a9(0x1c1)](async(_0x3c3153,_0x45eca9)=>{const _0x1b01d5=a0_0x22f7a9,_0x2f53c7=new TablesCommand(),_0x548376=program['opts'](),_0x21c064=createTDXInstance(_0x548376);_0x45eca9['in']&&(_0x45eca9[_0x1b01d5(0x193)]=_0x45eca9['in']);const _0x5ac666=await _0x2f53c7[_0x1b01d5(0x195)]({'options':{..._0x548376,..._0x45eca9},'args':_0x3c3153?[_0x3c3153]:[],'tdx':_0x21c064});process[_0x1b01d5(0x11c)](_0x5ac666);}),program[a0_0x22f7a9(0x1b0)]('show\x20<table>')[a0_0x22f7a9(0x199)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')['option'](a0_0x22f7a9(0x132),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option']('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x22f7a9(0x1c1)](async(_0x47d65d,_0x4f5513)=>{const _0x58a27b=a0_0x22f7a9,_0x2ffa2c=new ShowCommand(),_0x148c7c=program[_0x58a27b(0x10b)](),_0x52cd88=createTDXInstance(_0x148c7c);_0x4f5513['in']&&(_0x4f5513[_0x58a27b(0x193)]=_0x4f5513['in']);const _0x2804b2=await _0x2ffa2c['run']({'options':{..._0x148c7c,..._0x4f5513},'args':[_0x47d65d],'tdx':_0x52cd88});process['exit'](_0x2804b2);}),program['command'](a0_0x22f7a9(0x138))[a0_0x22f7a9(0x175)](a0_0x22f7a9(0x115))['description'](a0_0x22f7a9(0x12e))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x132),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x1bb),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a0_0x22f7a9(0x1c1)](async(_0x2d12e3,_0x15af73)=>{const _0x430c37=a0_0x22f7a9,_0x2761c7=new DescribeCommand(),_0x188f16=program[_0x430c37(0x10b)](),_0xe4a5d4=createTDXInstance(_0x188f16);_0x15af73['in']&&(_0x15af73['database']=_0x15af73['in']);const _0x288bfc=await _0x2761c7[_0x430c37(0x195)]({'options':{..._0x188f16,..._0x15af73},'args':[_0x2d12e3],'tdx':_0xe4a5d4});process[_0x430c37(0x11c)](_0x288bfc);}),program['command']('query\x20[sql]')[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x140))['option'](a0_0x22f7a9(0x132),a0_0x22f7a9(0x11f))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x1bb),a0_0x22f7a9(0x12f))[a0_0x22f7a9(0x112)]('--catalog\x20<catalog>',a0_0x22f7a9(0x164))['option'](a0_0x22f7a9(0x12b),a0_0x22f7a9(0x111))[a0_0x22f7a9(0x112)]('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')['action'](async(_0x164f23,_0x3b60e6)=>{const _0x2cf6b1=a0_0x22f7a9,_0x18f036=new QueryCommand(),_0x4c1016=program['opts'](),_0x156052=createTDXInstance(_0x4c1016);_0x3b60e6['in']&&(_0x3b60e6[_0x2cf6b1(0x193)]=_0x3b60e6['in']);const _0x2d9a7f=await _0x18f036['run']({'options':{..._0x4c1016,..._0x3b60e6},'args':_0x164f23?[_0x164f23]:[],'tdx':_0x156052});process['exit'](_0x2d9a7f);}),program['command']('job')[a0_0x22f7a9(0x199)]('Job\x20management\x20commands')[a0_0x22f7a9(0x1c1)](()=>{const _0x3229c3=a0_0x22f7a9;console[_0x3229c3(0x197)](_0x3229c3(0x149));}),program['command'](a0_0x22f7a9(0x1a6))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x19b))[a0_0x22f7a9(0x1c1)](async(_0x436311,_0x2fb0e2)=>{const _0x2f1c19=a0_0x22f7a9,_0x1a7766=new SegmentsCommand(),_0x3423fd=program[_0x2f1c19(0x10b)](),_0x365800=createTDXInstance(_0x3423fd),_0x4b6cd1=await _0x1a7766[_0x2f1c19(0x195)]({'options':{..._0x3423fd,..._0x2fb0e2},'args':_0x436311?[_0x436311]:[],'tdx':_0x365800});process['exit'](_0x4b6cd1);});const segmentCmd=program['command'](a0_0x22f7a9(0x12a))['description'](a0_0x22f7a9(0x1a9));segmentCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x15e))[a0_0x22f7a9(0x175)](a0_0x22f7a9(0x115))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x13b))[a0_0x22f7a9(0x1c1)](async(_0x2c9ca1,_0x3a3904)=>{const _0x36dca7=a0_0x22f7a9,_0x56a090=new SegmentDescribeCommand(),_0x3192c4=program[_0x36dca7(0x10b)](),_0x57ba78=createTDXInstance(_0x3192c4),_0x4d2cb4=await _0x56a090['run']({'options':{..._0x3192c4,..._0x3a3904},'args':[_0x2c9ca1],'tdx':_0x57ba78});process[_0x36dca7(0x11c)](_0x4d2cb4);}),segmentCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x118))['description'](a0_0x22f7a9(0x162))['action'](async(_0x1735af,_0x428281)=>{const _0x5a3cf2=a0_0x22f7a9,_0x24ba81=new SegmentShowCommand(),_0x46e091=program[_0x5a3cf2(0x10b)](),_0x4b872f=createTDXInstance(_0x46e091),_0x5a0dfc=await _0x24ba81['run']({'options':{..._0x46e091,..._0x428281},'args':[_0x1735af],'tdx':_0x4b872f});process[_0x5a3cf2(0x11c)](_0x5a0dfc);}),segmentCmd['command'](a0_0x22f7a9(0x189))['description'](a0_0x22f7a9(0x128))[a0_0x22f7a9(0x1c1)](async(_0x8e4362,_0x2c5491)=>{const _0x207c18=a0_0x22f7a9,_0x31a639=new SegmentFolderListCommand(),_0x8f5ee0=program[_0x207c18(0x10b)](),_0x1fc62d=createTDXInstance(_0x8f5ee0),_0x543c10=await _0x31a639['run']({'options':{..._0x8f5ee0,..._0x2c5491},'args':[_0x8e4362],'tdx':_0x1fc62d});process['exit'](_0x543c10);});const folderCmd=segmentCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x194))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x143));function a0_0x208e(){const _0x333c21=['-H,\x20--header\x20<header>','show\x20<segment_name>','Agent\x20name','Kill\x20a\x20running\x20attempt','tasks\x20<attempt-id>','exit','Start\x20a\x20new\x20chat\x20session','--llm-project\x20<name>','Database\x20to\x20query\x20(default:\x20information_schema)','version','slice','Project\x20ID','--include-retried','Set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20profile)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','remove\x20<agent-ref>','-d,\x20--database\x20<name>','List\x20segment\x20folders\x20under\x20a\x20parent\x20segment','Model\x20type\x20(default:\x20claude-4.5-sonnet)','segment','-f,\x20--file\x20<path>','1720rZiGbV','sessions\x20[project]','Describe\x20table\x20schema','Alias\x20for\x20--database\x20(natural\x20language\x20style)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','apiKey','-d,\x20--database\x20<database>','use\x20[resource]\x20[value]','update\x20<agent-ref>','191LahRyI','Maximum\x20tool\x20iterations\x20(default:\x204)','hook','describe\x20<table>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','outputHelp','Show\x20segment\x20details\x20(use\x20parent_name\x20or\x20parent_name.child_name)','agent','Agent\x20reference\x20(project-name/agent-name)','models','10479610obphcB','Run\x20Trino\x20query\x20with\x20streaming\x20results','--json','Starting\x20offset\x20for\x20logs\x20(default:\x200)','Segment\x20folder\x20management','AI-native\x20CLI\x20for\x20Treasure\x20Data','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--profile\x20<name>','Set\x20TD_API_KEY\x20environment\x20variable\x20or\x20configure\x20credentials\x20in\x20~/.config/tdx/.env','No\x20API\x20key\x20found\x20for\x20site\x20','Job\x20commands\x20-\x20coming\x20soon','--format\x20<format>','retry\x20<session-id|attempt-id>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','workflow','jsonl','7623gcKQvK','json','-X,\x20--method\x20<method>','Update\x20an\x20existing\x20agent\x20(use\x20\x22project-name/agent-name\x22)','--temperature\x20<n>','injectIntoOptions','get\x20<agent-ref>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','List\x20all\x20LLM\x20agents\x20(optionally\x20filtered\x20by\x20project\x20name)','--description\x20<text>','0.7','--model\x20<name>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--params\x20<json>','describe\x20<segment_name>','--offset\x20<number>','logs\x20<attempt-id>\x20<task-name>','tdx','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(use\x20parent_name\x20or\x20parent_name.child_name)','agents\x20[project-name]','Trino\x20catalog\x20(default:\x20td)','site','--type\x20<api_type>','Force\x20retry\x20even\x20if\x20not\x20failed\x20(attempt\x20retry\x20only)','create\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','--debug','--from-task\x20<task>','--limit\x20<rows>','Show\x20folder\x20details\x20(use\x20parent_name.folder_name)','--verbose','Resume\x20from\x20specific\x20task\x20(attempt\x20retry\x20only)','argv','Clear\x20session\x20context','context','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','output\x20the\x20version\x20number','alias','length','List\x20available\x20LLM\x20models','../package.json','after','summary','utf-8','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02)','533765FYTMNj','--tsv','-y,\x20--yes','1613919lUQMVD','--jsonl','attempts\x20[project]','Workflow\x20(Digdag)\x20management\x20commands','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Show\x20specific\x20attempt\x20details','claude-4.5-sonnet','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name.child_name)','folders\x20<parent_name>','--max-tool-iterations\x20<n>','Set\x20operation\x20timeout\x20in\x20seconds','Database\x20to\x20use\x20(overrides\x20context)','push','1777446HKEVWB','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--dry-run','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--system-prompt\x20<text>','database','folder','run','us01','log','-v,\x20--version','description','--color','List\x20parent\x20segments\x20or\x20child\x20segments\x20under\x20a\x20parent','url','Skip\x20confirmation\x20prompts','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','tables\x20[pattern]','preAction','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','LLM\x20agent\x20to\x20use\x20(overrides\x20context)','--starter-message\x20<text>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Save\x20output\x20to\x20file','segments\x20[parent_name]','--include-subtasks','--resume-from\x20<task>','CDP\x20segment\x20management\x20commands','api\x20[endpoint]','Show\x20current\x20resolved\x20context','help','verbose','Agent\x20description','activations\x20<segment_name>','command','kill\x20<attempt-id>','2682218ledeXk','parse','--force','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','End\x20time\x20filter\x20(ISO\x208601\x20format)','projects\x20[pattern]','--no-color','Delete\x20an\x20agent\x20(use\x20\x22project-name/agent-name\x22)','Model\x20name\x20(default:\x20claude-4.5-sonnet)','--in\x20<database>','3056AniRsZ','Show\x20tasks\x20for\x20an\x20attempt','format','--in\x20<name>','databases\x20[pattern]','action','--project-id\x20<id>','LLM\x20agent\x20management\x20commands','List\x20all\x20available\x20profiles','chat\x20[message...]','--site\x20<site>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Starter\x20message','--from\x20<timestamp>','opts','--output\x20<file>','name','Preview\x20operation\x20without\x20executing','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','4PDMBHK','Read\x20SQL\x20query\x20from\x20file','option','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--name\x20<text>','desc','show\x20<folder_ref>'];a0_0x208e=function(){return _0x333c21;};return a0_0x208e();}folderCmd['command'](a0_0x22f7a9(0x116))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x16d))['action'](async(_0x233d9f,_0x5f1664)=>{const _0x53307e=a0_0x22f7a9,_0x3c9fa2=new SegmentFolderShowCommand(),_0x44f135=program[_0x53307e(0x10b)](),_0x30733d=createTDXInstance(_0x44f135),_0x3a79a4=await _0x3c9fa2['run']({'options':{..._0x44f135,..._0x5f1664},'args':[_0x233d9f],'tdx':_0x30733d});process[_0x53307e(0x11c)](_0x3a79a4);}),segmentCmd[a0_0x22f7a9(0x1b0)]('sql\x20<segment_name>')['description']('Get\x20SQL\x20query\x20for\x20segment\x20(use\x20parent_name\x20or\x20parent_name.child_name)')[a0_0x22f7a9(0x1c1)](async(_0x3b3787,_0x468c90)=>{const _0x3e85a4=a0_0x22f7a9,_0x547131=new SegmentSQLCommand(),_0x54e4bd=program[_0x3e85a4(0x10b)](),_0x48792d=createTDXInstance(_0x54e4bd),_0xbeceb6=await _0x547131[_0x3e85a4(0x195)]({'options':{..._0x54e4bd,..._0x468c90},'args':[_0x3b3787],'tdx':_0x48792d});process[_0x3e85a4(0x11c)](_0xbeceb6);}),program[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x1af))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x188))['action'](async(_0x2285f0,_0xe669ed)=>{const _0x3deced=a0_0x22f7a9,_0x3e57b3=new ActivationsCommand(),_0x11512b=program[_0x3deced(0x10b)](),_0xe0c628=createTDXInstance(_0x11512b),_0x395d14=await _0x3e57b3[_0x3deced(0x195)]({'options':{..._0x11512b,..._0xe669ed},'args':[_0x2285f0],'tdx':_0xe0c628});process[_0x3deced(0x11c)](_0x395d14);});const workflowCmd=program[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x14e))['alias']('wf')[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x183));workflowCmd['command'](a0_0x22f7a9(0x1b7))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x184))[a0_0x22f7a9(0x1c1)](async(_0x3ee5cd,_0x373ea3)=>{const _0x2ef401=a0_0x22f7a9,_0x54983d=new WorkflowProjectsCommand(),_0x537a9d=program[_0x2ef401(0x10b)](),_0x2dd954=createTDXInstance(_0x537a9d),_0x49c4c6=await _0x54983d[_0x2ef401(0x195)]({'options':{..._0x537a9d,..._0x373ea3},'args':_0x3ee5cd?[_0x3ee5cd]:[],'tdx':_0x2dd954});process[_0x2ef401(0x11c)](_0x49c4c6);}),workflowCmd[a0_0x22f7a9(0x1b0)]('workflows\x20[project]')['alias']('ls')[a0_0x22f7a9(0x199)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a0_0x22f7a9(0x1c1)](async(_0x2dcc33,_0x275bca)=>{const _0x4445b1=a0_0x22f7a9,_0x45bf7b=new WorkflowWorkflowsCommand(),_0x144184=program[_0x4445b1(0x10b)](),_0xabc895=createTDXInstance(_0x144184),_0x2d383e=await _0x45bf7b['run']({'options':{..._0x144184,..._0x275bca},'args':_0x2dcc33?[_0x2dcc33]:[],'tdx':_0xabc895});process[_0x4445b1(0x11c)](_0x2d383e);}),workflowCmd['command'](a0_0x22f7a9(0x12d))['description'](a0_0x22f7a9(0x1a1))['option']('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x10a),a0_0x22f7a9(0x14c))[a0_0x22f7a9(0x112)]('--to\x20<timestamp>',a0_0x22f7a9(0x1b6))[a0_0x22f7a9(0x1c1)](async(_0x37d9a0,_0x1c1da9)=>{const _0x37d482=a0_0x22f7a9,_0x4c4fd4=new WorkflowSessionsCommand(),_0x194936=program[_0x37d482(0x10b)](),_0x2dd607=createTDXInstance(_0x194936),_0x27c8f9=await _0x4c4fd4[_0x37d482(0x195)]({'options':{..._0x194936,..._0x1c1da9},'args':_0x37d9a0?[_0x37d9a0]:[],'tdx':_0x2dd607});process[_0x37d482(0x11c)](_0x27c8f9);}),workflowCmd['command'](a0_0x22f7a9(0x182))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x130))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x123),'Include\x20retried\x20attempts')[a0_0x22f7a9(0x1c1)](async(_0x5874dc,_0x115391)=>{const _0x5be2dc=a0_0x22f7a9,_0x3e0ee9=new WorkflowAttemptsCommand(),_0x229656=program[_0x5be2dc(0x10b)](),_0x7c89ad=createTDXInstance(_0x229656),_0x1ab5ec=await _0x3e0ee9['run']({'options':{..._0x229656,..._0x115391},'args':_0x5874dc?[_0x5874dc]:[],'tdx':_0x7c89ad});process['exit'](_0x1ab5ec);}),workflowCmd[a0_0x22f7a9(0x1b0)]('attempt\x20<attempt-id>')[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x186))['action'](async(_0x4c58ed,_0x4ccfec)=>{const _0x2fd9a0=a0_0x22f7a9,_0xd0b2c3=new WorkflowAttemptCommand(),_0x3016f9=program[_0x2fd9a0(0x10b)](),_0x373e73=createTDXInstance(_0x3016f9),_0x38487c=await _0xd0b2c3['run']({'options':{..._0x3016f9,..._0x4ccfec},'args':[_0x4c58ed],'tdx':_0x373e73});process[_0x2fd9a0(0x11c)](_0x38487c);}),workflowCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x11b))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x1bd))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x1a7),'Include\x20subtasks\x20in\x20the\x20output')[a0_0x22f7a9(0x1c1)](async(_0x41afcf,_0x4f6bae)=>{const _0x3b9ce5=a0_0x22f7a9,_0x18ad54=new WorkflowTasksCommand(),_0x4cd37f=program[_0x3b9ce5(0x10b)](),_0x1145a3=createTDXInstance(_0x4cd37f),_0x5242c3=await _0x18ad54[_0x3b9ce5(0x195)]({'options':{..._0x4cd37f,..._0x4f6bae},'args':[_0x41afcf],'tdx':_0x1145a3});process[_0x3b9ce5(0x11c)](_0x5242c3);}),workflowCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x160))['description']('Show\x20logs\x20for\x20a\x20specific\x20task')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x15f),a0_0x22f7a9(0x142),_0x5f0af8=>parseInt(_0x5f0af8,0xa),0x0)[a0_0x22f7a9(0x1c1)](async(_0x43dff5,_0x191bc1,_0x3d1917)=>{const _0x19c8ab=a0_0x22f7a9,_0x24cc69=new WorkflowLogsCommand(),_0x172a99=program['opts'](),_0x4b867c=createTDXInstance(_0x172a99),_0x32b065=await _0x24cc69[_0x19c8ab(0x195)]({'options':{..._0x172a99,..._0x3d1917},'args':[_0x43dff5,_0x191bc1],'tdx':_0x4b867c});process['exit'](_0x32b065);}),workflowCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x1b1))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x11a))[a0_0x22f7a9(0x112)]('--reason\x20<text>','Reason\x20for\x20killing\x20the\x20attempt')[a0_0x22f7a9(0x1c1)](async(_0x3d062c,_0x118932)=>{const _0x2dd708=a0_0x22f7a9,_0x41324c=new WorkflowKillCommand(),_0x5e412f=program[_0x2dd708(0x10b)](),_0x39f0b7=createTDXInstance(_0x5e412f),_0x448e41=await _0x41324c[_0x2dd708(0x195)]({'options':{..._0x5e412f,..._0x118932},'args':[_0x3d062c],'tdx':_0x39f0b7});process[_0x2dd708(0x11c)](_0x448e41);}),workflowCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x14b))[a0_0x22f7a9(0x199)]('Retry\x20a\x20session\x20or\x20attempt\x20(prefix\x20with\x20session:\x20or\x20attempt:)')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x16b),'Resume\x20from\x20specific\x20task\x20(session\x20retry\x20only)')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x1a8),a0_0x22f7a9(0x16f))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x15d),a0_0x22f7a9(0x19e))['option'](a0_0x22f7a9(0x1b4),a0_0x22f7a9(0x167))[a0_0x22f7a9(0x1c1)](async(_0x5040a2,_0x3773c5)=>{const _0x30a7da=a0_0x22f7a9,_0x2d457f=new WorkflowRetryCommand(),_0x7b91ef=program[_0x30a7da(0x10b)](),_0x29ee2f=createTDXInstance(_0x7b91ef),_0x7b1449=await _0x2d457f['run']({'options':{..._0x7b91ef,..._0x3773c5},'args':[_0x5040a2],'tdx':_0x29ee2f});process['exit'](_0x7b1449);}),program[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x163))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x158))[a0_0x22f7a9(0x1c1)](async(_0x7fe2d8,_0x37a4be)=>{const _0x5b4982=a0_0x22f7a9,_0x4c4bdc=new AgentsListCommand(),_0x3ec191=program[_0x5b4982(0x10b)](),_0x4d6e09=createTDXInstance(_0x3ec191),_0x4dbd9f=await _0x4c4bdc[_0x5b4982(0x195)]({'options':{..._0x3ec191,..._0x37a4be},'args':_0x7fe2d8?[_0x7fe2d8]:[],'tdx':_0x4d6e09});process[_0x5b4982(0x11c)](_0x4dbd9f);});const agentCmd=program[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x13c))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x1c3));agentCmd['command'](a0_0x22f7a9(0x13e))['description'](a0_0x22f7a9(0x177))['action'](async _0xf1878e=>{const _0x575fcd=a0_0x22f7a9,_0x1df7f5=new AgentModelsCommand(),_0x5372e6=program['opts'](),_0x22b2bf=createTDXInstance(_0x5372e6),_0x1f94ae=await _0x1df7f5['run']({'options':{..._0x5372e6,..._0xf1878e},'args':[],'tdx':_0x22b2bf});process[_0x575fcd(0x11c)](_0x1f94ae);}),agentCmd[a0_0x22f7a9(0x1b0)]('projects')[a0_0x22f7a9(0x199)]('List\x20all\x20LLM\x20projects')[a0_0x22f7a9(0x1c1)](async _0x34f5b2=>{const _0xe42175=a0_0x22f7a9,_0x1d7f1a=new AgentProjectsCommand(),_0x3c77a0=program[_0xe42175(0x10b)](),_0x37b522=createTDXInstance(_0x3c77a0),_0x2fa464=await _0x1d7f1a[_0xe42175(0x195)]({'options':{..._0x3c77a0,..._0x34f5b2},'args':[],'tdx':_0x37b522});process['exit'](_0x2fa464);}),agentCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x156))[a0_0x22f7a9(0x199)]('Get\x20agent\x20details\x20(use\x20\x22project-name/agent-name\x22)')[a0_0x22f7a9(0x1c1)](async(_0x30d747,_0x18617f)=>{const _0x1b018b=a0_0x22f7a9,_0x1a1e68=new AgentGetCommand(),_0x2126ba=program['opts'](),_0x1891e5=createTDXInstance(_0x2126ba),_0x1ff931=await _0x1a1e68[_0x1b018b(0x195)]({'options':{..._0x2126ba,..._0x18617f},'args':[_0x30d747],'tdx':_0x1891e5});process[_0x1b018b(0x11c)](_0x1ff931);}),agentCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x168))[a0_0x22f7a9(0x199)]('Create\x20a\x20new\x20agent')['requiredOption'](a0_0x22f7a9(0x1c2),a0_0x22f7a9(0x122))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x192),'System\x20prompt/instructions\x20(default:\x20empty)')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x15b),a0_0x22f7a9(0x129),a0_0x22f7a9(0x187))['option'](a0_0x22f7a9(0x1a3),a0_0x22f7a9(0x109))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x18a),a0_0x22f7a9(0x136),'4')['option'](a0_0x22f7a9(0x154),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a0_0x22f7a9(0x15a))[a0_0x22f7a9(0x1c1)](async(_0x2f245e,_0x14d1f9)=>{const _0x19fe69=a0_0x22f7a9,_0x272fdf=new AgentCreateCommand(),_0x1e700c=program[_0x19fe69(0x10b)](),_0x2460f0=createTDXInstance(_0x1e700c),_0x403564=await _0x272fdf[_0x19fe69(0x195)]({'options':{..._0x1e700c,..._0x14d1f9},'args':[_0x2f245e],'tdx':_0x2460f0});process[_0x19fe69(0x11c)](_0x403564);}),agentCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x134))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x153))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x114),a0_0x22f7a9(0x119))[a0_0x22f7a9(0x112)]('--prompt\x20<text>','Agent\x20prompt/instructions')[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x159),a0_0x22f7a9(0x1ae))['option']('--starter-message\x20<text>','Starter\x20message')[a0_0x22f7a9(0x1c1)](async(_0x4db906,_0x52fef9)=>{const _0x1c9343=new AgentUpdateCommand(),_0x384efa=program['opts'](),_0x4e0621=createTDXInstance(_0x384efa),_0x216540=await _0x1c9343['run']({'options':{..._0x384efa,..._0x52fef9},'args':[_0x4db906],'tdx':_0x4e0621});process['exit'](_0x216540);}),agentCmd[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x126))[a0_0x22f7a9(0x175)]('delete')[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x1b9))[a0_0x22f7a9(0x1c1)](async(_0x650545,_0x6ab30c)=>{const _0x3356ad=a0_0x22f7a9,_0x527849=new AgentRemoveCommand(),_0x2383a8=program[_0x3356ad(0x10b)](),_0x43d62a=createTDXInstance(_0x2383a8),_0xa88682=await _0x527849[_0x3356ad(0x195)]({'options':{..._0x2383a8,..._0x6ab30c},'args':[_0x650545],'tdx':_0x43d62a});process[_0x3356ad(0x11c)](_0xa88682);}),agentCmd[a0_0x22f7a9(0x1b0)]('history\x20[chat-id]')[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x18f))['action'](async(_0xd800d4,_0x22d855)=>{const _0x140687=a0_0x22f7a9,_0x451c97=new AgentHistoryCommand(),_0x13aa9d=program[_0x140687(0x10b)](),_0x258f2d=createTDXInstance(_0x13aa9d),_0x289c24=await _0x451c97[_0x140687(0x195)]({'options':{..._0x13aa9d,..._0x22d855},'args':_0xd800d4?[_0xd800d4]:[],'tdx':_0x258f2d});process[_0x140687(0x11c)](_0x289c24);}),program['command'](a0_0x22f7a9(0x172))[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x1ab))[a0_0x22f7a9(0x112)](a0_0x22f7a9(0x16a),'Show\x20context\x20with\x20sources\x20(for\x20debugging)')['action'](async _0x52a2a4=>{const _0x2920c0=a0_0x22f7a9,_0x334016=new ContextCommand(),_0x3181ab=program['opts'](),_0x1cc02b=await _0x334016[_0x2920c0(0x195)]({'options':{..._0x3181ab,..._0x52a2a4},'args':[],'tdx':null});process['exit'](_0x1cc02b);}),program[a0_0x22f7a9(0x1b0)](a0_0x22f7a9(0x133))['description'](a0_0x22f7a9(0x124))[a0_0x22f7a9(0x112)]('--clear',a0_0x22f7a9(0x171))[a0_0x22f7a9(0x1c1)](async(_0x2686ce,_0x41dd5d,_0x48066f)=>{const _0x3482c1=a0_0x22f7a9,_0x42a4cd=new UseCommand(),_0x20ad10=program['opts'](),_0x5531de=[];if(_0x2686ce)_0x5531de[_0x3482c1(0x18d)](_0x2686ce);if(_0x41dd5d)_0x5531de['push'](_0x41dd5d);const _0x40c664=await _0x42a4cd[_0x3482c1(0x195)]({'options':{..._0x20ad10,..._0x48066f},'args':_0x5531de,'tdx':null});process[_0x3482c1(0x11c)](_0x40c664);}),program['command']('profiles')[a0_0x22f7a9(0x199)](a0_0x22f7a9(0x105))[a0_0x22f7a9(0x1c1)](async _0x1a3dc=>{const _0x17f43c=a0_0x22f7a9,_0x40c818=new ProfilesCommand(),_0x530d75=program['opts'](),_0x3062f8=await _0x40c818[_0x17f43c(0x195)]({'options':{..._0x530d75,..._0x1a3dc},'args':[],'tdx':null});process[_0x17f43c(0x11c)](_0x3062f8);}),program['parse'](process[a0_0x22f7a9(0x170)]);!process[a0_0x22f7a9(0x170)][a0_0x22f7a9(0x121)](0x2)[a0_0x22f7a9(0x176)]&&program[a0_0x22f7a9(0x13a)]();
|
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,GAAG,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,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,g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CAAuC;KAC1D,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x238ccc=a1_0x66cb;function a1_0x66cb(_0x3921ec,_0x428840){const _0x5da072=a1_0x5da0();return a1_0x66cb=function(_0x66cb3a,_0x1a509e){_0x66cb3a=_0x66cb3a-0x19e;let _0x153683=_0x5da072[_0x66cb3a];return _0x153683;},a1_0x66cb(_0x3921ec,_0x428840);}function a1_0x5da0(){const _0xa15a1b=['GET','POST','data','/audiences/','application/json','listParentSegments','147618AQlMjS','/segments/','/segments/query','58645HVCBat','authHeaders','application/vnd.treasuredata.v1+json','getParentSegment','/entities/parent_segments/','apiKey','/entities/folders/','39342rNGtmE','7jBbEyT','httpClient','verbose','site','error','cdp','/segments','getSegment','isArray','sql','rule','5895312hfObzj','8YgVFeM','listSegments','\x0a[CDP\x20API\x20Response]\x20','597355rHJXCk','7817670XAyOZC','logVerbose','/syndications','/entities/parent_segments','stringify','3064978hRYEhj','request','620StcPNC'];a1_0x5da0=function(){return _0xa15a1b;};return a1_0x5da0();}(function(_0x7b3f91,_0x1e48bc){const _0x42a436=a1_0x66cb,_0x5e0fdf=_0x7b3f91();while(!![]){try{const _0x43bee7=parseInt(_0x42a436(0x1ad))/0x1+parseInt(_0x42a436(0x1a1))/0x2+-parseInt(_0x42a436(0x1b4))/0x3+parseInt(_0x42a436(0x1c1))/0x4*(-parseInt(_0x42a436(0x1c4))/0x5)+parseInt(_0x42a436(0x1c5))/0x6+parseInt(_0x42a436(0x1b5))/0x7*(-parseInt(_0x42a436(0x1c0))/0x8)+-parseInt(_0x42a436(0x1aa))/0x9*(parseInt(_0x42a436(0x1a3))/0xa);if(_0x43bee7===_0x1e48bc)break;else _0x5e0fdf['push'](_0x5e0fdf['shift']());}catch(_0x124925){_0x5e0fdf['push'](_0x5e0fdf['shift']());}}}(a1_0x5da0,0xd8d79));import{HTTPClient}from'./http-client.js';import{getEndpoint}from'../types/index.js';import{getAuthHeaders}from'../core/auth.js';export class CDPClient{[a1_0x238ccc(0x1b6)];[a1_0x238ccc(0x1ae)];[a1_0x238ccc(0x1b7)];constructor(_0x4bf675){const _0x50f2fe=a1_0x238ccc,_0x4018f3=getEndpoint(_0x4bf675[_0x50f2fe(0x1b8)],_0x50f2fe(0x1ba));this[_0x50f2fe(0x1ae)]=getAuthHeaders(_0x4bf675[_0x50f2fe(0x1b8)],_0x4bf675[_0x50f2fe(0x1b2)]),this[_0x50f2fe(0x1b7)]=_0x4bf675['verbose'],this[_0x50f2fe(0x1b6)]=new HTTPClient(_0x4018f3,{...this[_0x50f2fe(0x1ae)],'Accept':_0x50f2fe(0x1af),'Content-Type':_0x50f2fe(0x1a8)});}['logVerbose'](_0x20d3af,_0x54a31d){const _0x443b71=a1_0x238ccc;this[_0x443b71(0x1b7)]&&(console[_0x443b71(0x1b9)](_0x443b71(0x1c3)+_0x20d3af),console[_0x443b71(0x1b9)](JSON[_0x443b71(0x1a0)](_0x54a31d,null,0x2)));}async[a1_0x238ccc(0x1a9)](){const _0x92641d=a1_0x238ccc,_0x306828=_0x92641d(0x19f),_0x2d16e0=await this[_0x92641d(0x1b6)]['request'](_0x92641d(0x1a4),_0x306828);return this['logVerbose'](_0x306828,_0x2d16e0),Array['isArray'](_0x2d16e0)?_0x2d16e0:_0x2d16e0[_0x92641d(0x1a6)];}async[a1_0x238ccc(0x1b0)](_0x1e0d2b){const _0x487f31=a1_0x238ccc,_0x447570=_0x487f31(0x1b1)+_0x1e0d2b,_0x20538c=await this[_0x487f31(0x1b6)][_0x487f31(0x1a2)]('GET',_0x447570);return this[_0x487f31(0x1c6)](_0x447570,_0x20538c),_0x487f31(0x1a6)in _0x20538c?_0x20538c[_0x487f31(0x1a6)]:_0x20538c;}async[a1_0x238ccc(0x1c2)](_0x1c0d24){const _0x10ec47=a1_0x238ccc,_0x342327=_0x10ec47(0x1a7)+_0x1c0d24+_0x10ec47(0x1bb),_0x173566=await this[_0x10ec47(0x1b6)][_0x10ec47(0x1a2)](_0x10ec47(0x1a4),_0x342327);return this[_0x10ec47(0x1c6)](_0x342327,_0x173566),Array[_0x10ec47(0x1bd)](_0x173566)?_0x173566:_0x173566['data'];}async['getSegment'](_0xf1c694,_0x518826){const _0x1f5052=a1_0x238ccc,_0x3cb604=_0x1f5052(0x1a7)+_0xf1c694+_0x1f5052(0x1ab)+_0x518826,_0x28aaeb=await this[_0x1f5052(0x1b6)][_0x1f5052(0x1a2)](_0x1f5052(0x1a4),_0x3cb604);return this[_0x1f5052(0x1c6)](_0x3cb604,_0x28aaeb),'data'in _0x28aaeb?_0x28aaeb[_0x1f5052(0x1a6)]:_0x28aaeb;}async['listSegmentFolders'](_0x4a48ff){const _0x2d00da=a1_0x238ccc,_0x4e1ddc=_0x2d00da(0x1a7)+_0x4a48ff+'/folders',_0x17115e=await this['httpClient']['request']('GET',_0x4e1ddc);return this['logVerbose'](_0x4e1ddc,_0x17115e),Array['isArray'](_0x17115e)?_0x17115e:_0x17115e['data'];}async['getSegmentFolder'](_0x301344){const _0x13e7b3=a1_0x238ccc,_0x8bf7a3=_0x13e7b3(0x1b3)+_0x301344,_0x3f4fae=await this[_0x13e7b3(0x1b6)]['request']('GET',_0x8bf7a3);return this['logVerbose'](_0x8bf7a3,_0x3f4fae),'data'in _0x3f4fae?_0x3f4fae[_0x13e7b3(0x1a6)]:_0x3f4fae;}async['listActivations'](_0x3f5f94,_0x2e5253){const _0x1c3b61=a1_0x238ccc,_0x86ea07=_0x1c3b61(0x1a7)+_0x3f5f94+_0x1c3b61(0x1ab)+_0x2e5253+_0x1c3b61(0x19e),_0x499917=await this['httpClient'][_0x1c3b61(0x1a2)](_0x1c3b61(0x1a4),_0x86ea07);return this['logVerbose'](_0x86ea07,_0x499917),Array[_0x1c3b61(0x1bd)](_0x499917)?_0x499917:_0x499917[_0x1c3b61(0x1a6)];}async['getParentSegmentSQL'](_0x4c8035){const _0x24c226=a1_0x238ccc,_0x5c70b4=_0x24c226(0x1a7)+_0x4c8035+_0x24c226(0x1ac),_0xabc1c0=await this[_0x24c226(0x1b6)][_0x24c226(0x1a2)]('POST',_0x5c70b4,{'body':{'format':_0x24c226(0x1be)}});return this[_0x24c226(0x1c6)](_0x5c70b4,_0xabc1c0),_0xabc1c0[_0x24c226(0x1be)]||_0xabc1c0['query']||'';}async['getSegmentSQL'](_0x4e3165,_0x14baf9){const _0x188d1a=a1_0x238ccc,_0x484114=await this[_0x188d1a(0x1bc)](_0x4e3165,_0x14baf9),_0x56f586={'format':'sql'};'rule'in _0x484114&&_0x484114[_0x188d1a(0x1bf)]&&(_0x56f586[_0x188d1a(0x1bf)]=_0x484114[_0x188d1a(0x1bf)]);const _0x368625=_0x188d1a(0x1a7)+_0x4e3165+_0x188d1a(0x1ac),_0x41b0c4=await this[_0x188d1a(0x1b6)][_0x188d1a(0x1a2)](_0x188d1a(0x1a5),_0x368625,{'body':_0x56f586});return this['logVerbose'](_0x368625,_0x41b0c4),_0x41b0c4[_0x188d1a(0x1be)]||_0x41b0c4['query']||'';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x4554b4=a2_0x4444;function a2_0x10c0(){const _0x5066dc=['object','54jcYAEM','HTTPClientError','defaultHeaders','243qKeXfB','baseUrl','get','pow','1320554neSLNm','safeParseJSON','application/json','retryConfig','statusText','Request\x20cancelled\x20by\x20user',']\x20Request\x20failed:\x20','460BbDeTT','type','stringify','Content-Type','An\x20error\x20occurred','detail','signal','round','about:blank','1738JXtVhY','instance','status','38400FOThdB','sleep','random','retrying\x20in\x20','warn','title','text','3985807YHjdrv','addEventListener','string','74072Obwubm','maxDelay','forEach','request','abort','671574DJMSrj','baseDelay','HTTP\x20','ms...','54042ztWGEu','message','problemDetails','196744iHODQv','headers'];a2_0x10c0=function(){return _0x5066dc;};return a2_0x10c0();}(function(_0xaad143,_0x7beff3){const _0x5ddcfd=a2_0x4444,_0x6b41d6=_0xaad143();while(!![]){try{const _0x1a5a0d=parseInt(_0x5ddcfd(0x86))/0x1+-parseInt(_0x5ddcfd(0xa8))/0x2+parseInt(_0x5ddcfd(0x7f))/0x3*(-parseInt(_0x5ddcfd(0x7c))/0x4)+-parseInt(_0x5ddcfd(0x8d))/0x5*(-parseInt(_0x5ddcfd(0x79))/0x6)+-parseInt(_0x5ddcfd(0xa0))/0x7+parseInt(_0x5ddcfd(0xa3))/0x8*(-parseInt(_0x5ddcfd(0x82))/0x9)+-parseInt(_0x5ddcfd(0x99))/0xa*(-parseInt(_0x5ddcfd(0x96))/0xb);if(_0x1a5a0d===_0x7beff3)break;else _0x6b41d6['push'](_0x6b41d6['shift']());}catch(_0x1395a3){_0x6b41d6['push'](_0x6b41d6['shift']());}}}(a2_0x10c0,0xaea7d));import a2_0x5eb5a4 from'json-bigint';const DEFAULT_RETRY_CONFIG={'maxRetries':0x3,'baseDelay':0x3e8,'maxDelay':0x1f40};function isRetryableError(_0x1f5b72){return _0x1f5b72>=0x1f4||_0x1f5b72===0x1ad;}function getRetryDelay(_0x10c9e3,_0x36338a){const _0x53d6d7=a2_0x4444,_0x5bff3a=Math['min'](_0x36338a[_0x53d6d7(0xa9)]*Math[_0x53d6d7(0x85)](0x2,_0x10c9e3),_0x36338a[_0x53d6d7(0xa4)]);return Math[_0x53d6d7(0x9b)]()*_0x5bff3a;}function a2_0x4444(_0xb01a21,_0x45d51b){const _0x10c01d=a2_0x10c0();return a2_0x4444=function(_0x4444ee,_0xfd44fc){_0x4444ee=_0x4444ee-0x78;let _0x42fba4=_0x10c01d[_0x4444ee];return _0x42fba4;},a2_0x4444(_0xb01a21,_0x45d51b);}export class HTTPClientError extends Error{[a2_0x4554b4(0x98)];[a2_0x4554b4(0x7b)];constructor(_0x259d77,_0xf02842,_0x58de48){const _0x55af5b=a2_0x4554b4;super(_0x259d77),this[_0x55af5b(0x98)]=_0xf02842,this[_0x55af5b(0x7b)]=_0x58de48,this['name']=_0x55af5b(0x80);}}export class HTTPClient{[a2_0x4554b4(0x89)];['baseUrl'];[a2_0x4554b4(0x81)];constructor(_0x1c60f0,_0x4107c0={},_0x1dee85){const _0x2be1eb=a2_0x4554b4;this[_0x2be1eb(0x83)]=_0x1c60f0,this[_0x2be1eb(0x81)]=_0x4107c0,this['retryConfig']={...DEFAULT_RETRY_CONFIG,..._0x1dee85};}async[a2_0x4554b4(0xa6)](_0x19d199,_0x392261,_0x1571f2={}){const _0x428ba9=a2_0x4554b4,{headers:headers={},body:_0x3b2d4e,timeout:timeout=0x7530,retries:retries=this[_0x428ba9(0x89)]['maxRetries'],signal:_0x58eb5d,includeHeaders:includeHeaders=![]}=_0x1571f2,_0xb3401c=''+this[_0x428ba9(0x83)]+_0x392261,_0x5cb0cb={...this[_0x428ba9(0x81)],...headers};_0x3b2d4e&&!_0x5cb0cb[_0x428ba9(0x90)]&&(_0x5cb0cb['Content-Type']=_0x428ba9(0x88));let _0x1b33f5;_0x3b2d4e&&(_0x1b33f5=typeof _0x3b2d4e===_0x428ba9(0xa2)?_0x3b2d4e:JSON[_0x428ba9(0x8f)](_0x3b2d4e));let _0x40eb01=null;for(let _0x1c7f19=0x0;_0x1c7f19<=retries;_0x1c7f19++){try{const _0x4ac3f8=new AbortController(),_0x2bbc2e=setTimeout(()=>_0x4ac3f8[_0x428ba9(0xa7)](),timeout);if(_0x58eb5d){if(_0x58eb5d['aborted'])throw new Error(_0x428ba9(0x8b));_0x58eb5d[_0x428ba9(0xa1)](_0x428ba9(0xa7),()=>_0x4ac3f8[_0x428ba9(0xa7)](),{'once':!![]});}const _0x4018b7=await fetch(_0xb3401c,{'method':_0x19d199,'headers':_0x5cb0cb,'body':_0x1b33f5,'signal':_0x4ac3f8[_0x428ba9(0x93)]});clearTimeout(_0x2bbc2e);if(_0x1c7f19<retries&&isRetryableError(_0x4018b7[_0x428ba9(0x98)])){const _0x214369=_0x4018b7[_0x428ba9(0x7d)][_0x428ba9(0x84)]('Retry-After'),_0x316178=_0x214369?parseInt(_0x214369,0xa)*0x3e8:getRetryDelay(_0x1c7f19,this[_0x428ba9(0x89)]);console[_0x428ba9(0x9d)]('[Retry\x20'+(_0x1c7f19+0x1)+'/'+retries+']\x20Request\x20failed\x20with\x20'+_0x4018b7['status']+',\x20'+(_0x428ba9(0x9c)+Math[_0x428ba9(0x94)](_0x316178)+_0x428ba9(0x78))),await this[_0x428ba9(0x9a)](_0x316178);continue;}if(!_0x4018b7['ok']){const _0x38297e=await this[_0x428ba9(0x87)](_0x4018b7),_0x30c97f=this['parseProblemDetails'](_0x38297e,_0x4018b7[_0x428ba9(0x98)]),_0x220a39=_0x4018b7[_0x428ba9(0x98)]===0x191?_0x428ba9(0xaa)+_0x4018b7['status']+':\x20'+_0x4018b7['statusText']+'\x0a\x20\x20URL:\x20'+_0xb3401c:_0x30c97f?.[_0x428ba9(0x92)]||_0x428ba9(0xaa)+_0x4018b7['status']+':\x20'+_0x4018b7[_0x428ba9(0x8a)];throw new HTTPClientError(_0x220a39,_0x4018b7[_0x428ba9(0x98)],_0x30c97f);}const _0x18c069=await this[_0x428ba9(0x87)](_0x4018b7);if(includeHeaders){const _0x1da831={};return _0x4018b7['headers'][_0x428ba9(0xa5)]((_0x56f30d,_0x355b19)=>{_0x1da831[_0x355b19]=_0x56f30d;}),{'data':_0x18c069,'status':_0x4018b7[_0x428ba9(0x98)],'headers':_0x1da831};}return _0x18c069;}catch(_0x525286){_0x40eb01=_0x525286 instanceof Error?_0x525286:new Error(String(_0x525286));if(_0x525286 instanceof HTTPClientError&&!isRetryableError(_0x525286[_0x428ba9(0x98)]))throw _0x525286;if(_0x1c7f19>=retries)throw _0x40eb01;const _0x4a0feb=getRetryDelay(_0x1c7f19,this[_0x428ba9(0x89)]);console[_0x428ba9(0x9d)]('[Retry\x20'+(_0x1c7f19+0x1)+'/'+retries+_0x428ba9(0x8c)+_0x40eb01[_0x428ba9(0x7a)]+',\x20'+(_0x428ba9(0x9c)+Math[_0x428ba9(0x94)](_0x4a0feb)+_0x428ba9(0x78))),await this[_0x428ba9(0x9a)](_0x4a0feb);}}throw _0x40eb01||new Error('Request\x20failed\x20after\x20retries');}async[a2_0x4554b4(0x87)](_0x177554){const _0x155463=a2_0x4554b4,_0x6ecb70=await _0x177554[_0x155463(0x9f)]();if(!_0x6ecb70)return null;try{const _0x4ac584=a2_0x5eb5a4({'storeAsString':!![]});return _0x4ac584['parse'](_0x6ecb70);}catch{return{'body':_0x6ecb70};}}['parseProblemDetails'](_0x41514f,_0x147cf3){const _0x2945eb=a2_0x4554b4;if(!_0x41514f||typeof _0x41514f!==_0x2945eb(0x7e))return undefined;const _0x2c88f5=_0x41514f;if(_0x2c88f5[_0x2945eb(0x8e)]||_0x2c88f5['title']||_0x2c88f5['detail'])return{'type':_0x2c88f5[_0x2945eb(0x8e)]||_0x2945eb(0x95),'title':_0x2c88f5[_0x2945eb(0x9e)]||'Error','status':_0x2c88f5[_0x2945eb(0x98)]||_0x147cf3,'detail':_0x2c88f5[_0x2945eb(0x92)]||_0x2945eb(0x91),'instance':_0x2c88f5[_0x2945eb(0x97)]||'',..._0x2c88f5};return undefined;}[a2_0x4554b4(0x9a)](_0x32b755){return new Promise(_0x214ffd=>setTimeout(_0x214ffd,_0x32b755));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x5aa146=a3_0x41ca;(function(_0x4b9b23,_0x36254d){const _0x7158d8=a3_0x41ca,_0x461bce=_0x4b9b23();while(!![]){try{const _0x294d5f=parseInt(_0x7158d8(0x145))/0x1+-parseInt(_0x7158d8(0x167))/0x2+parseInt(_0x7158d8(0x170))/0x3+parseInt(_0x7158d8(0x16d))/0x4*(-parseInt(_0x7158d8(0x161))/0x5)+parseInt(_0x7158d8(0x13e))/0x6*(parseInt(_0x7158d8(0x165))/0x7)+parseInt(_0x7158d8(0x13b))/0x8*(-parseInt(_0x7158d8(0x141))/0x9)+parseInt(_0x7158d8(0x16a))/0xa*(parseInt(_0x7158d8(0x155))/0xb);if(_0x294d5f===_0x36254d)break;else _0x461bce['push'](_0x461bce['shift']());}catch(_0x5e5d78){_0x461bce['push'](_0x461bce['shift']());}}}(a3_0x427b,0x1c743));function a3_0x427b(){const _0x4e203d=['9219pmfxch','/api/projects','463714WJXEGE','getChatInfo','/api/agents/','30deOMTL','/history','listChats','180kAGPFY','updateAgent','/api/users/current_settings','110070OsqbBo','description','baseUrl','DELETE','/api/chats','agents','llm','startsWith','\x0aResponse:\x20','apiKey','deleteAgent','http','statusText','/api/chats?','links','json','listProjects','-last_conversation_at','72ZVBqPC','stringify','agentId','6zQouCq','data','status','207801RrbbHt','request','systemPrompt','next','232865taOWks','createAgent','/continue','authHeaders','modelType','starterMessage','site','chats','startChat','GET','/api/agents','/api/chats/','search','HTTP\x20','continueChat','httpClient','1786411KRvyIO','getAgent','push','?filter[project_id]=','application/vnd.api+json','page[limit]','PATCH','maxToolIterations','getChatHistory','POST','append','projects','22430CGnoTp','text/event-stream','name','createProject'];a3_0x427b=function(){return _0x4e203d;};return a3_0x427b();}import{HTTPClient}from'./http-client.js';import{getEndpoint}from'../types/index.js';import{getAuthHeaders}from'../core/auth.js';import{parseSSEStream}from'../utils/sse-parser.js';function a3_0x41ca(_0x4712be,_0xd213f5){const _0x427bc8=a3_0x427b();return a3_0x41ca=function(_0x41cab3,_0x3be3bd){_0x41cab3=_0x41cab3-0x132;let _0x3d83d8=_0x427bc8[_0x41cab3];return _0x3d83d8;},a3_0x41ca(_0x4712be,_0xd213f5);}export class LLMClient{['httpClient'];[a3_0x5aa146(0x172)];[a3_0x5aa146(0x148)];constructor(_0x2bbd2a){const _0xfc11ae=a3_0x5aa146;this[_0xfc11ae(0x172)]=getEndpoint(_0x2bbd2a[_0xfc11ae(0x14b)],_0xfc11ae(0x176)),this['authHeaders']=getAuthHeaders(_0x2bbd2a[_0xfc11ae(0x14b)],_0x2bbd2a[_0xfc11ae(0x132)]),this[_0xfc11ae(0x154)]=new HTTPClient(this[_0xfc11ae(0x172)],this[_0xfc11ae(0x148)]);}async['getUserSettings'](){const _0x289a11=a3_0x5aa146;return await this['httpClient'][_0x289a11(0x142)]('GET',_0x289a11(0x16f));}async[a3_0x5aa146(0x164)](_0x37905f){const _0x18e24c=a3_0x5aa146,_0x2917d4={'data':{'type':_0x18e24c(0x160),'attributes':{'name':_0x37905f['name'],..._0x37905f[_0x18e24c(0x171)]&&{'description':_0x37905f[_0x18e24c(0x171)]}}}},_0x5d6410=await fetch(this[_0x18e24c(0x172)]+_0x18e24c(0x166),{'method':_0x18e24c(0x15e),'headers':{...this[_0x18e24c(0x148)],'Content-Type':_0x18e24c(0x159),'Accept':_0x18e24c(0x159)},'body':JSON[_0x18e24c(0x13c)](_0x2917d4)});if(!_0x5d6410['ok'])throw new Error(_0x18e24c(0x152)+_0x5d6410['status']+':\x20'+_0x5d6410[_0x18e24c(0x135)]);const _0x4d2149=await _0x5d6410[_0x18e24c(0x138)]();return _0x4d2149[_0x18e24c(0x13f)];}async[a3_0x5aa146(0x139)](_0x3301f9=0x32){const _0x3042ed=a3_0x5aa146,_0x5e1905=[];let _0x29e6f7='/api/projects?page[limit]='+_0x3301f9;while(_0x29e6f7){const _0x464529=await this['httpClient'][_0x3042ed(0x142)](_0x3042ed(0x14e),_0x29e6f7);_0x464529[_0x3042ed(0x13f)]&&_0x5e1905[_0x3042ed(0x157)](..._0x464529['data']);_0x29e6f7=_0x464529[_0x3042ed(0x137)]?.[_0x3042ed(0x144)];if(_0x29e6f7&&_0x29e6f7[_0x3042ed(0x177)](_0x3042ed(0x134))){const _0x258d1f=new URL(_0x29e6f7);_0x29e6f7=_0x258d1f['pathname']+_0x258d1f[_0x3042ed(0x151)];}}return _0x5e1905;}async['listAgents'](_0x3831b5){const _0x46436b=a3_0x5aa146;let _0x22c56b=_0x46436b(0x14f);_0x3831b5&&(_0x22c56b+=_0x46436b(0x158)+encodeURIComponent(_0x3831b5));const _0x575205=await this[_0x46436b(0x154)][_0x46436b(0x142)](_0x46436b(0x14e),_0x22c56b);return _0x575205['data']||[];}async[a3_0x5aa146(0x156)](_0x3e50a5){const _0x3801da=a3_0x5aa146,_0x8871d5=_0x3801da(0x169)+encodeURIComponent(_0x3e50a5),_0x4ad19a=await this[_0x3801da(0x154)][_0x3801da(0x142)](_0x3801da(0x14e),_0x8871d5);return _0x4ad19a['data'];}async[a3_0x5aa146(0x146)](_0x55fe6b){const _0x23f384=a3_0x5aa146,_0x5bffff={'name':_0x55fe6b['name'],'projectId':_0x55fe6b['projectId'],'modelType':_0x55fe6b[_0x23f384(0x149)],'maxToolIterations':_0x55fe6b[_0x23f384(0x15c)]??0x4,'temperature':_0x55fe6b['temperature']??0.7};_0x55fe6b['systemPrompt']!==undefined&&(_0x5bffff[_0x23f384(0x143)]=_0x55fe6b[_0x23f384(0x143)]);_0x55fe6b[_0x23f384(0x14a)]&&(_0x5bffff[_0x23f384(0x14a)]=_0x55fe6b[_0x23f384(0x14a)]);const _0x406221={'data':{'type':_0x23f384(0x175),'attributes':_0x5bffff}},_0x61a39e=await fetch(this[_0x23f384(0x172)]+'/api/agents',{'method':_0x23f384(0x15e),'headers':{...this['authHeaders'],'Content-Type':'application/vnd.api+json','Accept':_0x23f384(0x159)},'body':JSON[_0x23f384(0x13c)](_0x406221)});if(!_0x61a39e['ok']){const _0x19ee79=await _0x61a39e['text']();throw new Error('HTTP\x20'+_0x61a39e[_0x23f384(0x140)]+':\x20'+_0x61a39e[_0x23f384(0x135)]+_0x23f384(0x178)+_0x19ee79);}const _0x216755=await _0x61a39e[_0x23f384(0x138)]();return _0x216755[_0x23f384(0x13f)];}async[a3_0x5aa146(0x16e)](_0x1ee7f3,_0x36da8d){const _0x39e815=a3_0x5aa146,_0x56ce63={'data':{'type':_0x39e815(0x175),'id':_0x1ee7f3,'attributes':{..._0x36da8d[_0x39e815(0x163)]&&{'name':_0x36da8d[_0x39e815(0x163)]},..._0x36da8d[_0x39e815(0x171)]&&{'description':_0x36da8d[_0x39e815(0x171)]},..._0x36da8d['prompt']&&{'prompt':_0x36da8d['prompt']},..._0x36da8d['starterMessage']&&{'starter_message':_0x36da8d[_0x39e815(0x14a)]}}}},_0x4ba5fe=_0x39e815(0x169)+encodeURIComponent(_0x1ee7f3),_0xabd3b4=await this[_0x39e815(0x154)][_0x39e815(0x142)](_0x39e815(0x15b),_0x4ba5fe,{'body':_0x56ce63});return _0xabd3b4[_0x39e815(0x13f)];}async[a3_0x5aa146(0x133)](_0x21d20c){const _0x180166=a3_0x5aa146,_0x4e4b30=_0x180166(0x169)+encodeURIComponent(_0x21d20c);await this['httpClient'][_0x180166(0x142)](_0x180166(0x173),_0x4e4b30);}async[a3_0x5aa146(0x16c)](_0x3f51ca=0x32){const _0x2a2496=a3_0x5aa146,_0x1986ad=new URLSearchParams();_0x1986ad[_0x2a2496(0x15f)](_0x2a2496(0x15a),String(_0x3f51ca)),_0x1986ad[_0x2a2496(0x15f)]('sort',_0x2a2496(0x13a));const _0x5beab0=_0x2a2496(0x136)+_0x1986ad['toString'](),_0x25ff0b=await this[_0x2a2496(0x154)]['request'](_0x2a2496(0x14e),_0x5beab0);return _0x25ff0b[_0x2a2496(0x13f)]||[];}async[a3_0x5aa146(0x168)](_0x4ca7de){const _0x3e61bd=a3_0x5aa146,_0xa25e4b='/api/chats/'+encodeURIComponent(_0x4ca7de),_0x231e03=await this[_0x3e61bd(0x154)]['request'](_0x3e61bd(0x14e),_0xa25e4b);return _0x231e03['data'];}async[a3_0x5aa146(0x15d)](_0x2cae2a){const _0x4dbbeb=a3_0x5aa146,_0x50e2b4=_0x4dbbeb(0x150)+encodeURIComponent(_0x2cae2a)+_0x4dbbeb(0x16b);return await this['httpClient'][_0x4dbbeb(0x142)](_0x4dbbeb(0x14e),_0x50e2b4);}async[a3_0x5aa146(0x14d)](_0x1ec1fd){const _0x5c82f9=a3_0x5aa146,_0x86f78f={'data':{'type':_0x5c82f9(0x14c),'attributes':{'agentId':_0x1ec1fd[_0x5c82f9(0x13d)]}}},_0xd25281=await fetch(this[_0x5c82f9(0x172)]+_0x5c82f9(0x174),{'method':_0x5c82f9(0x15e),'headers':{...this[_0x5c82f9(0x148)],'Content-Type':_0x5c82f9(0x159),'Accept':_0x5c82f9(0x159)},'body':JSON[_0x5c82f9(0x13c)](_0x86f78f)});if(!_0xd25281['ok'])throw new Error(_0x5c82f9(0x152)+_0xd25281[_0x5c82f9(0x140)]+':\x20'+_0xd25281[_0x5c82f9(0x135)]);const _0x2aba91=await _0xd25281[_0x5c82f9(0x138)]();return _0x2aba91['data'];}async*[a3_0x5aa146(0x153)](_0x42d4f6,_0x3aad23,_0x49b6dd){const _0x3a3f52=a3_0x5aa146,_0x5ca3ad=_0x3a3f52(0x150)+encodeURIComponent(_0x42d4f6)+_0x3a3f52(0x147),_0x4f0fd4={'input':_0x3aad23},_0x5597a9=await fetch(''+this[_0x3a3f52(0x172)]+_0x5ca3ad,{'method':'POST','headers':{...this[_0x3a3f52(0x148)],'Content-Type':'application/json','Accept':_0x3a3f52(0x162)},'body':JSON[_0x3a3f52(0x13c)](_0x4f0fd4),'signal':_0x49b6dd});if(!_0x5597a9['ok'])throw new Error(_0x3a3f52(0x152)+_0x5597a9['status']+':\x20'+_0x5597a9[_0x3a3f52(0x135)]);yield*parseSSEStream(_0x5597a9);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x5d70e9=a4_0x4847;(function(_0x330aa7,_0x314c9f){const _0xc8b365=a4_0x4847,_0x51f48e=_0x330aa7();while(!![]){try{const _0x41b585=-parseInt(_0xc8b365(0x1af))/0x1+-parseInt(_0xc8b365(0x1ae))/0x2*(-parseInt(_0xc8b365(0x1a9))/0x3)+parseInt(_0xc8b365(0x1b1))/0x4+-parseInt(_0xc8b365(0x19e))/0x5+parseInt(_0xc8b365(0x1a1))/0x6*(parseInt(_0xc8b365(0x1a2))/0x7)+parseInt(_0xc8b365(0x1b4))/0x8+-parseInt(_0xc8b365(0x1a3))/0x9*(parseInt(_0xc8b365(0x1ab))/0xa);if(_0x41b585===_0x314c9f)break;else _0x51f48e['push'](_0x51f48e['shift']());}catch(_0x5b5a8c){_0x51f48e['push'](_0x51f48e['shift']());}}}(a4_0x54e1,0xde52a));function a4_0x4847(_0x54e8fb,_0x5d2700){const _0x54e137=a4_0x54e1();return a4_0x4847=function(_0x484760,_0x11e9c0){_0x484760=_0x484760-0x19c;let _0x39e36f=_0x54e137[_0x484760];return _0x39e36f;},a4_0x4847(_0x54e8fb,_0x5d2700);}export class RateLimiter{[a4_0x5d70e9(0x19c)];[a4_0x5d70e9(0x1ac)];['maxTokens'];['refillRate'];constructor(_0xe260bd){const _0x32607a=a4_0x5d70e9;this[_0x32607a(0x19f)]=_0xe260bd[_0x32607a(0x1a8)],this[_0x32607a(0x19c)]=_0xe260bd[_0x32607a(0x1a8)],this[_0x32607a(0x1ac)]=Date[_0x32607a(0x1a5)](),this[_0x32607a(0x1a0)]=_0xe260bd[_0x32607a(0x1a8)]/_0xe260bd['windowMs'];}async[a4_0x5d70e9(0x1aa)](){const _0x11fe5c=a4_0x5d70e9;while(!![]){this['refill']();if(this[_0x11fe5c(0x19c)]>=0x1){this['tokens']-=0x1;return;}const _0x14bb6f=Math[_0x11fe5c(0x1a4)](0x1,Math[_0x11fe5c(0x1b2)](0x1/this['refillRate']));await this[_0x11fe5c(0x19d)](_0x14bb6f);}}[a4_0x5d70e9(0x1b3)](){const _0x42877e=a4_0x5d70e9;this[_0x42877e(0x1a7)]();if(this[_0x42877e(0x19c)]>=0x1)return this[_0x42877e(0x19c)]-=0x1,!![];return![];}[a4_0x5d70e9(0x1a7)](){const _0x2b1cb1=a4_0x5d70e9,_0x19c0f5=Date[_0x2b1cb1(0x1a5)](),_0x5549b5=_0x19c0f5-this[_0x2b1cb1(0x1ac)];if(_0x5549b5>0x0){const _0x576f64=_0x5549b5*this[_0x2b1cb1(0x1a0)];this[_0x2b1cb1(0x19c)]=Math[_0x2b1cb1(0x1ad)](this['maxTokens'],this[_0x2b1cb1(0x19c)]+_0x576f64),this[_0x2b1cb1(0x1ac)]=_0x19c0f5;}}['getAvailableTokens'](){const _0x4224a0=a4_0x5d70e9;return this[_0x4224a0(0x1a7)](),Math[_0x4224a0(0x1a6)](this['tokens']);}[a4_0x5d70e9(0x1b0)](){const _0xe3df49=a4_0x5d70e9;this[_0xe3df49(0x19c)]=this[_0xe3df49(0x19f)],this[_0xe3df49(0x1ac)]=Date[_0xe3df49(0x1a5)]();}[a4_0x5d70e9(0x19d)](_0x3d2bf1){return new Promise(_0x367b1f=>setTimeout(_0x367b1f,_0x3d2bf1));}}function a4_0x54e1(){const _0x211383=['12702JUbmmD','acquire','14069690wtccvE','lastRefill','min','32UiyigN','375918SQQOHy','reset','5409336CUwRem','ceil','tryAcquire','12218808BsOHaq','tokens','sleep','4025345VQzHdZ','maxTokens','refillRate','6LbYKvU','3858127nUqWch','9zbTuva','max','now','floor','refill','maxRequests'];a4_0x54e1=function(){return _0x211383;};return a4_0x54e1();}export const defaultRateLimiter=new RateLimiter({'maxRequests':0x64,'windowMs':0xea60});
|
package/dist/client/td-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a5_0x372e4f=a5_0x26c0;function a5_0x2948(){const _0x13c6ff=['10fYqmAI','warn','/v3/table/delete/','request','showJob','GET','11BXnGCl','/v3/job/result/','/v3/table/list/','listDatabases','/v3/job/kill/','10017027xlfSjn','from','/v3/table/create/','httpClient','showDatabase','/v3/database/delete/','/v3/job/show/','tables','showTable','6455364JJhAbo','databases','authHeaders','append','cancelJob','117918GwDRln','/v3/database/list','message','2047028cAUfwt','Failed\x20to\x20parse\x20NDJSON\x20line:\x20','deleteTable','listTables','/v3/table/show/','push','getJobResult','/v3/database/show/','jobs','30655990ZAQWZJ','720802bolmLM','application/json','listJobs','964456SScxpU','split','52FYjIfm','parse','us01','POST','submitHiveJob','/v3/job/list','createTable','/v3/database/create/','21NtIJXW','string','deleteDatabase','toString','createDatabase'];a5_0x2948=function(){return _0x13c6ff;};return a5_0x2948();}(function(_0x55258c,_0x39ecfc){const _0x4c5119=a5_0x26c0,_0x3ca0fc=_0x55258c();while(!![]){try{const _0x1498b=-parseInt(_0x4c5119(0xf9))/0x1+-parseInt(_0x4c5119(0xfe))/0x2*(parseInt(_0x4c5119(0xec))/0x3)+parseInt(_0x4c5119(0xef))/0x4*(-parseInt(_0x4c5119(0xd3))/0x5)+parseInt(_0x4c5119(0xe7))/0x6+parseInt(_0x4c5119(0xce))/0x7*(parseInt(_0x4c5119(0xfc))/0x8)+-parseInt(_0x4c5119(0xde))/0x9+-parseInt(_0x4c5119(0xf8))/0xa*(-parseInt(_0x4c5119(0xd9))/0xb);if(_0x1498b===_0x39ecfc)break;else _0x3ca0fc['push'](_0x3ca0fc['shift']());}catch(_0x572602){_0x3ca0fc['push'](_0x3ca0fc['shift']());}}}(a5_0x2948,0x98511));import{HTTPClient}from'./http-client.js';import{getEndpoint}from'../types/index.js';import{getAuthHeaders}from'../core/auth.js';function a5_0x26c0(_0x32a186,_0x410367){const _0x2948b4=a5_0x2948();return a5_0x26c0=function(_0x26c0b4,_0x23ef21){_0x26c0b4=_0x26c0b4-0xc7;let _0x5dc4e6=_0x2948b4[_0x26c0b4];return _0x5dc4e6;},a5_0x26c0(_0x32a186,_0x410367);}export class TDClient{[a5_0x372e4f(0xe1)];[a5_0x372e4f(0xe9)];constructor(_0x15c4ad=a5_0x372e4f(0xc8)){const _0x459b4e=a5_0x372e4f,_0x59e6eb=getEndpoint(_0x15c4ad,'td');this[_0x459b4e(0xe9)]=getAuthHeaders(_0x15c4ad),this[_0x459b4e(0xe1)]=new HTTPClient(_0x59e6eb,this[_0x459b4e(0xe9)]);}async[a5_0x372e4f(0xdc)](){const _0x125810=a5_0x372e4f,_0x387dc3=await this['httpClient'][_0x125810(0xd6)](_0x125810(0xd8),_0x125810(0xed));return _0x387dc3[_0x125810(0xe8)];}async[a5_0x372e4f(0xe2)](_0x36a9e5){const _0x48c454=a5_0x372e4f,_0x32eef0=await this[_0x48c454(0xe1)][_0x48c454(0xd6)](_0x48c454(0xd8),_0x48c454(0xf6)+encodeURIComponent(_0x36a9e5));return _0x32eef0;}async[a5_0x372e4f(0xd2)](_0x5f20fb){const _0x3eefcb=a5_0x372e4f;await this['httpClient'][_0x3eefcb(0xd6)](_0x3eefcb(0xc9),_0x3eefcb(0xcd)+encodeURIComponent(_0x5f20fb));}async[a5_0x372e4f(0xd0)](_0x5cad93){const _0x418fde=a5_0x372e4f;await this[_0x418fde(0xe1)][_0x418fde(0xd6)](_0x418fde(0xc9),_0x418fde(0xe3)+encodeURIComponent(_0x5cad93));}async[a5_0x372e4f(0xf2)](_0x11ef4b){const _0x3f617e=a5_0x372e4f,_0x5bcfee=await this[_0x3f617e(0xe1)]['request']('GET',_0x3f617e(0xdb)+encodeURIComponent(_0x11ef4b));return _0x5bcfee[_0x3f617e(0xe5)];}async[a5_0x372e4f(0xe6)](_0x446277,_0xde1e89){const _0x543431=a5_0x372e4f,_0x5159c2=await this[_0x543431(0xe1)]['request']('GET',_0x543431(0xf3)+encodeURIComponent(_0x446277)+'/'+encodeURIComponent(_0xde1e89));return _0x5159c2;}async[a5_0x372e4f(0xcc)](_0x384891,_0x3044a1){const _0x574350=a5_0x372e4f;await this[_0x574350(0xe1)][_0x574350(0xd6)](_0x574350(0xc9),_0x574350(0xe0)+encodeURIComponent(_0x384891)+'/'+encodeURIComponent(_0x3044a1));}async[a5_0x372e4f(0xf1)](_0x4f084a,_0x1a26e7){const _0x3e8b3e=a5_0x372e4f;await this[_0x3e8b3e(0xe1)][_0x3e8b3e(0xd6)](_0x3e8b3e(0xc9),_0x3e8b3e(0xd5)+encodeURIComponent(_0x4f084a)+'/'+encodeURIComponent(_0x1a26e7));}async[a5_0x372e4f(0xca)](_0x4abc0e,_0xaeda87){const _0x5f07a8=a5_0x372e4f,_0x117ff7=await this[_0x5f07a8(0xe1)]['request']('POST','/v3/job/issue/hive/'+encodeURIComponent(_0x4abc0e),{'body':{'query':_0xaeda87}});return _0x117ff7;}async[a5_0x372e4f(0xfb)](_0x27911a){const _0x2c4efb=a5_0x372e4f,_0x53cf0f=new URLSearchParams();if(_0x27911a?.[_0x2c4efb(0xdf)])_0x53cf0f[_0x2c4efb(0xea)](_0x2c4efb(0xdf),_0x27911a[_0x2c4efb(0xdf)][_0x2c4efb(0xd1)]());if(_0x27911a?.['to'])_0x53cf0f[_0x2c4efb(0xea)]('to',_0x27911a['to'][_0x2c4efb(0xd1)]());const _0x4fc1d6=_0x53cf0f['toString'](),_0x24282b=_0x4fc1d6?'/v3/job/list?'+_0x4fc1d6:_0x2c4efb(0xcb),_0x35a265=await this[_0x2c4efb(0xe1)][_0x2c4efb(0xd6)]('GET',_0x24282b);return _0x35a265[_0x2c4efb(0xf7)];}async[a5_0x372e4f(0xd7)](_0x2c70ed){const _0x40f66d=a5_0x372e4f,_0x331cc1=await this[_0x40f66d(0xe1)]['request'](_0x40f66d(0xd8),_0x40f66d(0xe4)+encodeURIComponent(_0x2c70ed));return _0x331cc1;}async[a5_0x372e4f(0xeb)](_0x5205c6){const _0x2ff879=a5_0x372e4f;await this[_0x2ff879(0xe1)]['request'](_0x2ff879(0xc9),_0x2ff879(0xdd)+encodeURIComponent(_0x5205c6));}async[a5_0x372e4f(0xf5)](_0x331ccc){const _0x480536=a5_0x372e4f,_0x48a14b=await this[_0x480536(0xe1)]['request']('GET',_0x480536(0xda)+encodeURIComponent(_0x331ccc),{'headers':{'Accept':_0x480536(0xfa)}});if(typeof _0x48a14b===_0x480536(0xcf)){const _0x459db3=[];for(const _0x18f2cb of _0x48a14b[_0x480536(0xfd)]('\x0a')){const _0x5f2963=_0x18f2cb['trim']();if(!_0x5f2963)continue;try{_0x459db3[_0x480536(0xf4)](JSON[_0x480536(0xc7)](_0x5f2963));}catch(_0x1a6b94){console[_0x480536(0xd4)](_0x480536(0xf0)+(_0x1a6b94 instanceof Error?_0x1a6b94[_0x480536(0xee)]:String(_0x1a6b94)));}}return _0x459db3;}return[];}}export function createTDClient(_0x3d2a9='us01'){return new TDClient(_0x3d2a9);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x156e(_0x283d03,_0x3f694d){const _0x17d9e2=a6_0x17d9();return a6_0x156e=function(_0x156e7b,_0x37f8f0){_0x156e7b=_0x156e7b-0x1c8;let _0x5a1032=_0x17d9e2[_0x156e7b];return _0x5a1032;},a6_0x156e(_0x283d03,_0x3f694d);}const a6_0x1d56c3=a6_0x156e;(function(_0x2018ec,_0x11104e){const _0x4b7e0f=a6_0x156e,_0x3c8b9d=_0x2018ec();while(!![]){try{const _0x5c6474=parseInt(_0x4b7e0f(0x1f1))/0x1*(-parseInt(_0x4b7e0f(0x1f6))/0x2)+-parseInt(_0x4b7e0f(0x1df))/0x3+parseInt(_0x4b7e0f(0x1fb))/0x4*(parseInt(_0x4b7e0f(0x1d0))/0x5)+-parseInt(_0x4b7e0f(0x1d5))/0x6*(-parseInt(_0x4b7e0f(0x1ed))/0x7)+-parseInt(_0x4b7e0f(0x1ca))/0x8*(-parseInt(_0x4b7e0f(0x1ea))/0x9)+parseInt(_0x4b7e0f(0x1db))/0xa*(parseInt(_0x4b7e0f(0x1ef))/0xb)+-parseInt(_0x4b7e0f(0x1dd))/0xc;if(_0x5c6474===_0x11104e)break;else _0x3c8b9d['push'](_0x3c8b9d['shift']());}catch(_0x9176b6){_0x3c8b9d['push'](_0x3c8b9d['shift']());}}}(a6_0x17d9,0x1b029));import{HTTPClient}from'./http-client.js';function a6_0x17d9(){const _0x37a8d6=['TrinoQueryError','TD1\x20','error','consider\x20adding\x20LIMIT\x20clause','name','/v1/statement','9LGhHCm','headers','trinoError','228739HnAIxc','substring','198fajRqJ','Invalid\x20API\x20key\x20format','1NcsWrO','columns','httpClient','pathname','stats','82894TwzSeo','cancelQuery','GET','Failed\x20to\x20cancel\x20query:','X-TD-Client','44716IgahfD','warn','startsWith','apiKey','\x20rows)\x20-\x20','665432VwGWus','Query\x20cancelled\x20by\x20user','queryId','X-TD-JobId','convertRowsToObjects','Warning:\x20Large\x20result\x20set\x20(','65Htelqz','aborted','push','data','X-TD-Client-Version','6SnpmKF','request','nextUri','x-td-jobid','User-Agent','warnings','54960cZMOBu','executeQuery','2132808IXDjSN','Invalid\x20nextUri\x20format:\x20','90891MvmDrE','streamResults','jobId','length','message'];a6_0x17d9=function(){return _0x37a8d6;};return a6_0x17d9();}import{getEndpoint}from'../types/index.js';import{getAuthHeaders}from'../core/auth.js';export class TrinoClient{[a6_0x1d56c3(0x1f3)];['apiKey'];constructor(_0x34e45c){const _0x34b8d7=a6_0x1d56c3,_0x4d3c1a=getEndpoint(_0x34e45c['site'],'trino'),_0x10ba57=getAuthHeaders(_0x34e45c['site'],_0x34e45c[_0x34b8d7(0x1c8)]),_0x16692b=_0x10ba57['Authorization'];if(_0x16692b&&_0x16692b[_0x34b8d7(0x1fd)](_0x34b8d7(0x1e5)))this[_0x34b8d7(0x1c8)]=_0x16692b[_0x34b8d7(0x1ee)](0x4);else throw new Error(_0x34b8d7(0x1f0));const _0x1707f4={'User-Agent':_0x10ba57[_0x34b8d7(0x1d9)],'X-TD-Client':_0x10ba57[_0x34b8d7(0x1fa)],'X-TD-Client-Version':_0x10ba57[_0x34b8d7(0x1d4)],'X-Trino-User':this[_0x34b8d7(0x1c8)]};this[_0x34b8d7(0x1f3)]=new HTTPClient(_0x4d3c1a,_0x1707f4);}async[a6_0x1d56c3(0x1dc)](_0x214b2e,_0x3375f4={}){const _0x1dccb4=a6_0x1d56c3,{catalog:_0x288cad,schema:_0x2badc0,timeout:_0x48b131,signal:_0x49a726,onJobId:_0x20d789}=_0x3375f4,_0x1fd3cc={'Content-Type':'text/plain'};(_0x288cad||_0x2badc0)&&(_0x1fd3cc['X-Trino-Catalog']=_0x288cad||'td');_0x2badc0&&(_0x1fd3cc['X-Trino-Schema']=_0x2badc0);const _0x24a0b3=await this[_0x1dccb4(0x1f3)][_0x1dccb4(0x1d6)]('POST',_0x1dccb4(0x1e9),{'headers':_0x1fd3cc,'body':_0x214b2e,'timeout':_0x48b131,'signal':_0x49a726,'includeHeaders':!![]}),_0x66fdca=_0x24a0b3['data'],_0x373aa6=_0x24a0b3[_0x1dccb4(0x1eb)],_0x449b58=_0x373aa6[_0x1dccb4(0x1d8)]||_0x373aa6[_0x1dccb4(0x1cd)];_0x449b58&&_0x20d789&&_0x20d789(_0x449b58);if(_0x66fdca['error'])throw new TrinoQueryError(_0x66fdca[_0x1dccb4(0x1e6)][_0x1dccb4(0x1e3)],_0x66fdca['id'],_0x66fdca[_0x1dccb4(0x1e6)]);const _0x29de2b=await this[_0x1dccb4(0x1e0)](_0x66fdca,_0x49a726);return _0x449b58&&(_0x29de2b[_0x1dccb4(0x1e1)]=_0x449b58),_0x29de2b;}async[a6_0x1d56c3(0x1e0)](_0x1bd301,_0x460ebd){const _0x4488ae=a6_0x1d56c3,_0x13a495=_0x1bd301['id'];let _0x14d7fe=_0x1bd301['columns']||[];const _0x329e10=[],_0x3dc69f=_0x1bd301[_0x4488ae(0x1da)]||[];let _0x570147=_0x1bd301;const _0x25551b=0x186a0;while(_0x570147[_0x4488ae(0x1d7)]){if(_0x460ebd?.[_0x4488ae(0x1d1)]){await this[_0x4488ae(0x1f7)](_0x570147[_0x4488ae(0x1d7)]);throw new Error(_0x4488ae(0x1cb));}let _0xdb2ec1;try{_0xdb2ec1=new URL(_0x570147[_0x4488ae(0x1d7)])[_0x4488ae(0x1f4)];}catch{throw new Error(_0x4488ae(0x1de)+_0x570147['nextUri']);}_0x570147=await this[_0x4488ae(0x1f3)][_0x4488ae(0x1d6)](_0x4488ae(0x1f8),_0xdb2ec1,{'signal':_0x460ebd});if(_0x570147[_0x4488ae(0x1e6)])throw new TrinoQueryError(_0x570147[_0x4488ae(0x1e6)]['message'],_0x13a495,_0x570147[_0x4488ae(0x1e6)]);_0x570147[_0x4488ae(0x1f2)]&&_0x14d7fe[_0x4488ae(0x1e2)]===0x0&&(_0x14d7fe=_0x570147[_0x4488ae(0x1f2)]),_0x570147['data']&&(_0x329e10[_0x4488ae(0x1d2)](..._0x570147[_0x4488ae(0x1d3)]),_0x329e10[_0x4488ae(0x1e2)]>_0x25551b&&_0x329e10[_0x4488ae(0x1e2)]%0xc350===0x0&&console[_0x4488ae(0x1fc)](_0x4488ae(0x1cf)+_0x329e10[_0x4488ae(0x1e2)]['toLocaleString']()+_0x4488ae(0x1c9)+_0x4488ae(0x1e7))),_0x570147[_0x4488ae(0x1da)]&&_0x3dc69f['push'](..._0x570147[_0x4488ae(0x1da)]);}const _0xf0e670=this['convertRowsToObjects'](_0x14d7fe,_0x329e10);return{'queryId':_0x13a495,'columns':_0x14d7fe,'data':_0xf0e670,'stats':_0x570147[_0x4488ae(0x1f5)],'warnings':_0x3dc69f['length']>0x0?_0x3dc69f:undefined};}[a6_0x1d56c3(0x1ce)](_0x2f2e74,_0x27e8bf){const _0x17049c=a6_0x1d56c3;if(_0x2f2e74[_0x17049c(0x1e2)]===0x0)return _0x27e8bf;return _0x27e8bf['map'](_0x310827=>{const _0x4422d4={};return _0x2f2e74['forEach']((_0x55cdcc,_0x1c842a)=>{const _0x37b293=a6_0x156e;_0x4422d4[_0x55cdcc[_0x37b293(0x1e8)]]=_0x310827[_0x1c842a];}),_0x4422d4;});}async[a6_0x1d56c3(0x1f7)](_0xe38a8){const _0x440116=a6_0x1d56c3;try{const _0x8302e6=new URL(_0xe38a8)[_0x440116(0x1f4)];await this[_0x440116(0x1f3)]['request']('DELETE',_0x8302e6);}catch(_0x52b9fc){console[_0x440116(0x1fc)](_0x440116(0x1f9),_0x52b9fc);}}}export class TrinoQueryError extends Error{['queryId'];[a6_0x1d56c3(0x1ec)];constructor(_0x1cdbc3,_0x55a7e9,_0x121ccd){const _0x6d9ba6=a6_0x1d56c3;super(_0x1cdbc3),this[_0x6d9ba6(0x1cc)]=_0x55a7e9,this[_0x6d9ba6(0x1ec)]=_0x121ccd,this[_0x6d9ba6(0x1e8)]=_0x6d9ba6(0x1e4);}}
|