@llm-dev-ops/agentics-cli 1.1.0 → 1.2.2
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 +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/commands/login.d.ts +6 -6
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +48 -174
- package/dist/commands/login.js.map +1 -1
- package/dist/config/endpoints.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -314,9 +314,9 @@ ENVIRONMENT VARIABLES:
|
|
|
314
314
|
|
|
315
315
|
PLATFORM UI:
|
|
316
316
|
For API key management and interactive workflows, visit:
|
|
317
|
-
https://platform.agentics.
|
|
317
|
+
https://platform.agentics.dev
|
|
318
318
|
|
|
319
|
-
For more information, visit: https://docs.agentics.
|
|
319
|
+
For more information, visit: https://docs.agentics.dev/cli
|
|
320
320
|
`);
|
|
321
321
|
}
|
|
322
322
|
// ============================================================================
|
package/dist/commands/login.d.ts
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* SPARC Architecture Reference: CLI Authentication
|
|
5
5
|
*
|
|
6
|
-
* PURPOSE: Initiate CLI authentication flow
|
|
6
|
+
* PURPOSE: Initiate CLI authentication flow (identical to Claude Code)
|
|
7
7
|
*
|
|
8
8
|
* WORKFLOW:
|
|
9
|
-
* 1.
|
|
10
|
-
* 2. Display
|
|
11
|
-
* 3.
|
|
12
|
-
* 4.
|
|
13
|
-
* 5. Securely store
|
|
9
|
+
* 1. Generate authentication URL with session ID
|
|
10
|
+
* 2. Display URL and optionally open in browser
|
|
11
|
+
* 3. User authorizes in browser and receives API key
|
|
12
|
+
* 4. User pastes API key into CLI prompt
|
|
13
|
+
* 5. Securely store API key locally
|
|
14
14
|
*
|
|
15
15
|
* FORBIDDEN:
|
|
16
16
|
* - Storing credentials in plaintext in code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AASxD,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAaD,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,iBAAiB,EACxB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,kBAAkB,CAAC,CAuE7B"}
|
package/dist/commands/login.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* SPARC Architecture Reference: CLI Authentication
|
|
5
5
|
*
|
|
6
|
-
* PURPOSE: Initiate CLI authentication flow
|
|
6
|
+
* PURPOSE: Initiate CLI authentication flow (identical to Claude Code)
|
|
7
7
|
*
|
|
8
8
|
* WORKFLOW:
|
|
9
|
-
* 1.
|
|
10
|
-
* 2. Display
|
|
11
|
-
* 3.
|
|
12
|
-
* 4.
|
|
13
|
-
* 5. Securely store
|
|
9
|
+
* 1. Generate authentication URL with session ID
|
|
10
|
+
* 2. Display URL and optionally open in browser
|
|
11
|
+
* 3. User authorizes in browser and receives API key
|
|
12
|
+
* 4. User pastes API key into CLI prompt
|
|
13
|
+
* 5. Securely store API key locally
|
|
14
14
|
*
|
|
15
15
|
* FORBIDDEN:
|
|
16
16
|
* - Storing credentials in plaintext in code
|
|
@@ -19,14 +19,12 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { AuthError } from '../errors/index.js';
|
|
21
21
|
import { createCredentialStore } from '../utils/credentials.js';
|
|
22
|
+
import { createInterface } from 'node:readline';
|
|
22
23
|
// ============================================================================
|
|
23
24
|
// Configuration
|
|
24
25
|
// ============================================================================
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const AUTH_TOKEN_ENDPOINT = '/api/v1/cli/auth/token';
|
|
28
|
-
const DEFAULT_POLL_INTERVAL = 5000; // 5 seconds
|
|
29
|
-
const MAX_POLL_ATTEMPTS = 120; // 10 minutes max (120 * 5s)
|
|
26
|
+
const APP_URL = process.env['AGENTICS_APP_URL'] ?? 'https://app.agentics.dev';
|
|
27
|
+
const CLI_AUTH_PATH = '/cli/auth';
|
|
30
28
|
// ============================================================================
|
|
31
29
|
// Login Command Implementation
|
|
32
30
|
// ============================================================================
|
|
@@ -40,34 +38,48 @@ export async function executeLoginCommand(input, options) {
|
|
|
40
38
|
console.error('Existing credentials found. Re-authenticating...');
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
|
-
// Step 1:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const session = await createAuthSession(correlationId, options);
|
|
48
|
-
// Step 2: Display verification URL and user code
|
|
41
|
+
// Step 1: Generate authentication URL with session ID
|
|
42
|
+
const sessionId = crypto.randomUUID();
|
|
43
|
+
const authUrl = `${APP_URL}${CLI_AUTH_PATH}?session=${sessionId}&cli=agentics`;
|
|
44
|
+
// Step 2: Display URL
|
|
49
45
|
console.log('');
|
|
50
|
-
console.log('To authenticate,
|
|
51
|
-
console.log(` ${session.verification_url}`);
|
|
46
|
+
console.log('To authenticate, open this URL in your browser:');
|
|
52
47
|
console.log('');
|
|
53
|
-
console.log(`
|
|
48
|
+
console.log(` ${authUrl}`);
|
|
54
49
|
console.log('');
|
|
55
50
|
// Step 3: Optionally open URL in browser
|
|
56
51
|
if (!input.noBrowser) {
|
|
57
|
-
await openBrowser(
|
|
52
|
+
await openBrowser(authUrl, options);
|
|
53
|
+
console.log('(Browser opened automatically)');
|
|
54
|
+
console.log('');
|
|
58
55
|
}
|
|
59
|
-
|
|
60
|
-
console.log('Waiting for authorization...');
|
|
61
|
-
console.log('(Press Ctrl+C to cancel)');
|
|
56
|
+
console.log('After authorizing, copy the API key shown on screen.');
|
|
62
57
|
console.log('');
|
|
63
|
-
|
|
58
|
+
// Step 4: Prompt user to paste API key
|
|
59
|
+
const apiKey = await promptForApiKey();
|
|
60
|
+
if (!apiKey || apiKey.trim() === '') {
|
|
61
|
+
throw new AuthError({
|
|
62
|
+
type: 'invalid',
|
|
63
|
+
message: 'No API key provided. Authentication cancelled.',
|
|
64
|
+
correlationId,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
// Validate API key format (basic check)
|
|
68
|
+
const trimmedKey = apiKey.trim();
|
|
69
|
+
if (trimmedKey.length < 20) {
|
|
70
|
+
throw new AuthError({
|
|
71
|
+
type: 'invalid',
|
|
72
|
+
message: 'Invalid API key format. Please try again.',
|
|
73
|
+
correlationId,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
64
76
|
// Step 5: Store credentials securely
|
|
65
77
|
await credentialStore.save({
|
|
66
|
-
api_key:
|
|
78
|
+
api_key: trimmedKey,
|
|
67
79
|
created_at: new Date().toISOString(),
|
|
68
|
-
expires_at: tokenResponse.expires_at,
|
|
69
80
|
});
|
|
70
81
|
const credentialsPath = credentialStore.getCredentialsPath?.() ?? '~/.agentics/credentials.json';
|
|
82
|
+
console.log('');
|
|
71
83
|
console.log('Authentication successful!');
|
|
72
84
|
console.log(`API key stored at: ${credentialsPath}`);
|
|
73
85
|
return {
|
|
@@ -79,151 +91,16 @@ export async function executeLoginCommand(input, options) {
|
|
|
79
91
|
// ============================================================================
|
|
80
92
|
// Helper Functions
|
|
81
93
|
// ============================================================================
|
|
82
|
-
async function
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
'X-Correlation-ID': correlationId,
|
|
92
|
-
'User-Agent': 'agentics-cli/1.0.0',
|
|
93
|
-
},
|
|
94
|
-
body: JSON.stringify({
|
|
95
|
-
client_type: 'cli',
|
|
96
|
-
}),
|
|
97
|
-
signal: controller.signal,
|
|
98
|
-
});
|
|
99
|
-
clearTimeout(timeoutId);
|
|
100
|
-
if (!response.ok) {
|
|
101
|
-
const errorBody = await response.text().catch(() => 'Unknown error');
|
|
102
|
-
throw new AuthError({
|
|
103
|
-
type: 'invalid',
|
|
104
|
-
message: `Failed to create authentication session: ${response.status} ${errorBody}`,
|
|
105
|
-
correlationId,
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
const data = await response.json();
|
|
109
|
-
// Validate response structure
|
|
110
|
-
if (!data.session_id || !data.verification_url || !data.user_code) {
|
|
111
|
-
throw new AuthError({
|
|
112
|
-
type: 'invalid',
|
|
113
|
-
message: 'Invalid authentication session response from server',
|
|
114
|
-
correlationId,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
return data;
|
|
118
|
-
}
|
|
119
|
-
catch (error) {
|
|
120
|
-
if (error instanceof AuthError) {
|
|
121
|
-
throw error;
|
|
122
|
-
}
|
|
123
|
-
if (error instanceof Error && error.name === 'AbortError') {
|
|
124
|
-
throw new AuthError({
|
|
125
|
-
type: 'invalid',
|
|
126
|
-
message: 'Authentication session request timed out',
|
|
127
|
-
correlationId,
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
throw new AuthError({
|
|
131
|
-
type: 'invalid',
|
|
132
|
-
message: `Failed to connect to authentication server: ${error instanceof Error ? error.message : 'Unknown error'}`,
|
|
133
|
-
correlationId,
|
|
94
|
+
async function promptForApiKey() {
|
|
95
|
+
const rl = createInterface({
|
|
96
|
+
input: process.stdin,
|
|
97
|
+
output: process.stdout,
|
|
98
|
+
});
|
|
99
|
+
return new Promise((resolve) => {
|
|
100
|
+
rl.question('Paste your API key: ', (answer) => {
|
|
101
|
+
rl.close();
|
|
102
|
+
resolve(answer);
|
|
134
103
|
});
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
async function pollForAuthorization(sessionId, interval, expiresAt, correlationId, options) {
|
|
138
|
-
const url = `${PLATFORM_URL}${AUTH_TOKEN_ENDPOINT}`;
|
|
139
|
-
const expirationTime = new Date(expiresAt).getTime();
|
|
140
|
-
let attempts = 0;
|
|
141
|
-
while (attempts < MAX_POLL_ATTEMPTS) {
|
|
142
|
-
// Check if session has expired
|
|
143
|
-
if (Date.now() >= expirationTime) {
|
|
144
|
-
throw new AuthError({
|
|
145
|
-
type: 'expired',
|
|
146
|
-
message: 'Authentication session expired. Please try again.',
|
|
147
|
-
correlationId,
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
// Wait before polling
|
|
151
|
-
await sleep(interval);
|
|
152
|
-
attempts++;
|
|
153
|
-
try {
|
|
154
|
-
const controller = new AbortController();
|
|
155
|
-
const timeoutId = setTimeout(() => controller.abort(), options.timeout ?? 30000);
|
|
156
|
-
const response = await fetch(url, {
|
|
157
|
-
method: 'POST',
|
|
158
|
-
headers: {
|
|
159
|
-
'Content-Type': 'application/json',
|
|
160
|
-
'X-Correlation-ID': correlationId,
|
|
161
|
-
'User-Agent': 'agentics-cli/1.0.0',
|
|
162
|
-
},
|
|
163
|
-
body: JSON.stringify({
|
|
164
|
-
session_id: sessionId,
|
|
165
|
-
}),
|
|
166
|
-
signal: controller.signal,
|
|
167
|
-
});
|
|
168
|
-
clearTimeout(timeoutId);
|
|
169
|
-
if (response.status === 202) {
|
|
170
|
-
// Authorization pending, continue polling
|
|
171
|
-
if (options.verbose) {
|
|
172
|
-
process.stderr.write('.');
|
|
173
|
-
}
|
|
174
|
-
continue;
|
|
175
|
-
}
|
|
176
|
-
if (response.status === 403) {
|
|
177
|
-
throw new AuthError({
|
|
178
|
-
type: 'insufficient',
|
|
179
|
-
message: 'Authorization denied by user',
|
|
180
|
-
correlationId,
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
if (!response.ok) {
|
|
184
|
-
const errorBody = await response.text().catch(() => 'Unknown error');
|
|
185
|
-
throw new AuthError({
|
|
186
|
-
type: 'invalid',
|
|
187
|
-
message: `Authorization check failed: ${response.status} ${errorBody}`,
|
|
188
|
-
correlationId,
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
// Success - parse token response
|
|
192
|
-
const data = await response.json();
|
|
193
|
-
if (!data.api_key) {
|
|
194
|
-
throw new AuthError({
|
|
195
|
-
type: 'invalid',
|
|
196
|
-
message: 'Invalid token response from server',
|
|
197
|
-
correlationId,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
if (options.verbose) {
|
|
201
|
-
console.error(''); // New line after dots
|
|
202
|
-
}
|
|
203
|
-
return data;
|
|
204
|
-
}
|
|
205
|
-
catch (error) {
|
|
206
|
-
if (error instanceof AuthError) {
|
|
207
|
-
throw error;
|
|
208
|
-
}
|
|
209
|
-
if (error instanceof Error && error.name === 'AbortError') {
|
|
210
|
-
// Timeout on poll, continue
|
|
211
|
-
if (options.verbose) {
|
|
212
|
-
process.stderr.write('x');
|
|
213
|
-
}
|
|
214
|
-
continue;
|
|
215
|
-
}
|
|
216
|
-
// Network error, continue polling
|
|
217
|
-
if (options.verbose) {
|
|
218
|
-
process.stderr.write('!');
|
|
219
|
-
}
|
|
220
|
-
continue;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
throw new AuthError({
|
|
224
|
-
type: 'expired',
|
|
225
|
-
message: 'Authentication timed out. Please try again.',
|
|
226
|
-
correlationId,
|
|
227
104
|
});
|
|
228
105
|
}
|
|
229
106
|
async function openBrowser(url, options) {
|
|
@@ -255,7 +132,4 @@ async function openBrowser(url, options) {
|
|
|
255
132
|
}
|
|
256
133
|
}
|
|
257
134
|
}
|
|
258
|
-
function sleep(ms) {
|
|
259
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
260
|
-
}
|
|
261
135
|
//# sourceMappingURL=login.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAgBhD,+EAA+E;AAC/E,gBAAgB;AAChB,+EAA+E;AAE/E,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,0BAA0B,CAAC;AAC9E,MAAM,aAAa,GAAG,WAAW,CAAC;AAElC,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAE/E,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,KAAwB,EACxB,OAAuB;IAEvB,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;IAC9D,MAAM,eAAe,GAAG,qBAAqB,EAAE,CAAC;IAEhD,iCAAiC;IACjC,MAAM,mBAAmB,GAAG,MAAM,eAAe,CAAC,IAAI,EAAE,CAAC;IACzD,IAAI,mBAAmB,EAAE,CAAC;QACxB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IAED,sDAAsD;IACtD,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IACtC,MAAM,OAAO,GAAG,GAAG,O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AC;YAC1B,OAAO,GAAG,SAAS,GAAG,GAAG,CAAC;QAC5B,CAAC;aAAM,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;YAChC,OAAO,GAAG,aAAa,GAAG,GAAG,CAAC;QAChC,CAAC;aAAM,CAAC;YACN,mBAAmB;YACnB,OAAO,GAAG,aAAa,GAAG,sCAAsC,GAAG,mCAAmC,GAAG,eAAe,CAAC;QAC3H,CAAC;QAED,MAAM,SAAS,CAAC,OAAO,CAAC,CAAC;QAEzB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,qDAAqD;QACrD,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,CAAC,4EAA4E,CAAC,CAAC;QAC9F,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/dist/config/endpoints.js
CHANGED
|
@@ -14,42 +14,42 @@
|
|
|
14
14
|
// ============================================================================
|
|
15
15
|
export const DEFAULT_ENDPOINTS = {
|
|
16
16
|
'agentics-org-manifests': {
|
|
17
|
-
baseUrl: process.env['AGENTICS_MANIFESTS_URL'] ?? 'https://manifests.agentics.
|
|
17
|
+
baseUrl: process.env['AGENTICS_MANIFESTS_URL'] ?? 'https://manifests.agentics.dev',
|
|
18
18
|
version: 'v1',
|
|
19
19
|
timeout: 30000,
|
|
20
20
|
},
|
|
21
21
|
'agentics-simulation-planner': {
|
|
22
|
-
baseUrl: process.env['AGENTICS_PLANNER_URL'] ?? 'https://planner.agentics.
|
|
22
|
+
baseUrl: process.env['AGENTICS_PLANNER_URL'] ?? 'https://planner.agentics.dev',
|
|
23
23
|
version: 'v1',
|
|
24
24
|
timeout: 60000,
|
|
25
25
|
},
|
|
26
26
|
'agentics-simulation-runner': {
|
|
27
|
-
baseUrl: process.env['AGENTICS_RUNNER_URL'] ?? 'https://runner.agentics.
|
|
27
|
+
baseUrl: process.env['AGENTICS_RUNNER_URL'] ?? 'https://runner.agentics.dev',
|
|
28
28
|
version: 'v1',
|
|
29
29
|
timeout: 300000, // 5 minutes for simulations
|
|
30
30
|
},
|
|
31
31
|
'agentics-simulation-engine': {
|
|
32
|
-
baseUrl: process.env['AGENTICS_SIMULATION_ENGINE_URL'] ?? 'https://simulation-engine.agentics.
|
|
32
|
+
baseUrl: process.env['AGENTICS_SIMULATION_ENGINE_URL'] ?? 'https://simulation-engine.agentics.dev',
|
|
33
33
|
version: 'v1',
|
|
34
34
|
timeout: 120000, // 2 minutes for artifact retrieval
|
|
35
35
|
},
|
|
36
36
|
'enterprise-roi-engine': {
|
|
37
|
-
baseUrl: process.env['ENTERPRISE_ROI_ENGINE_URL'] ?? 'https://roi-engine.agentics.
|
|
37
|
+
baseUrl: process.env['ENTERPRISE_ROI_ENGINE_URL'] ?? 'https://roi-engine.agentics.dev',
|
|
38
38
|
version: 'v1',
|
|
39
39
|
timeout: 180000, // 3 minutes for ROI calculations
|
|
40
40
|
},
|
|
41
41
|
'agentics-deployment-intent': {
|
|
42
|
-
baseUrl: process.env['AGENTICS_INTENT_URL'] ?? 'https://intent.agentics.
|
|
42
|
+
baseUrl: process.env['AGENTICS_INTENT_URL'] ?? 'https://intent.agentics.dev',
|
|
43
43
|
version: 'v1',
|
|
44
44
|
timeout: 60000,
|
|
45
45
|
},
|
|
46
46
|
'agentics-deployment-exporters': {
|
|
47
|
-
baseUrl: process.env['AGENTICS_EXPORTERS_URL'] ?? 'https://exporters.agentics.
|
|
47
|
+
baseUrl: process.env['AGENTICS_EXPORTERS_URL'] ?? 'https://exporters.agentics.dev',
|
|
48
48
|
version: 'v1',
|
|
49
49
|
timeout: 120000,
|
|
50
50
|
},
|
|
51
51
|
'diligence-artifacts': {
|
|
52
|
-
baseUrl: process.env['DILIGENCE_URL'] ?? 'https://diligence.agentics.
|
|
52
|
+
baseUrl: process.env['DILIGENCE_URL'] ?? 'https://diligence.agentics.dev',
|
|
53
53
|
version: 'v1',
|
|
54
54
|
timeout: 180000,
|
|
55
55
|
},
|