@alfe.ai/agent-api-client 0.9.0 → 0.11.0
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/dist/index.cjs +128 -1
- package/dist/index.d.cts +110 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +110 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +128 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -138,6 +138,7 @@ var AgentApiClient = class {
|
|
|
138
138
|
if (!res.ok) {
|
|
139
139
|
await res.text();
|
|
140
140
|
const error = /* @__PURE__ */ new Error(`Agent API request failed (${String(res.status)})`);
|
|
141
|
+
error.status = res.status;
|
|
141
142
|
if (attempt === 1 && RETRYABLE_STATUS.has(res.status)) {
|
|
142
143
|
lastError = error;
|
|
143
144
|
await sleep(RETRY_DELAY_MS);
|
|
@@ -211,7 +212,17 @@ var AgentApiClient = class {
|
|
|
211
212
|
return this.request("/agent/integrations");
|
|
212
213
|
}
|
|
213
214
|
async getIntegrationConfig(integrationId) {
|
|
214
|
-
|
|
215
|
+
try {
|
|
216
|
+
return await this.request(`/agent/integrations/${encodeURIComponent(integrationId)}/config`);
|
|
217
|
+
} catch (err) {
|
|
218
|
+
if (err.status === 404) return {
|
|
219
|
+
integrationId,
|
|
220
|
+
config: {},
|
|
221
|
+
configSchema: [],
|
|
222
|
+
installed: false
|
|
223
|
+
};
|
|
224
|
+
throw err;
|
|
225
|
+
}
|
|
215
226
|
}
|
|
216
227
|
async updateIntegrationConfig(integrationId, config) {
|
|
217
228
|
await this.request(`/agent/integrations/${encodeURIComponent(integrationId)}`, {
|
|
@@ -290,6 +301,99 @@ var AgentApiClient = class {
|
|
|
290
301
|
return this.request(`/agent/connect/connections/${encodeURIComponent(connectionId)}/credentials`);
|
|
291
302
|
}
|
|
292
303
|
/**
|
|
304
|
+
* Resolve the primary cTrader Connection's credentials for the calling
|
|
305
|
+
* agent. Unlike most providers, the cTrader Open API needs app-level auth
|
|
306
|
+
* (`clientId` + `clientSecret`) AND account auth (`accessToken` +
|
|
307
|
+
* `accountId`) on the socket, so `@alfe.ai/ctrader-mcp` self-fetches the
|
|
308
|
+
* full set here at startup (the atlassian/google pattern). `clientId` /
|
|
309
|
+
* `clientSecret` are the SST-sourced global app credentials the connect
|
|
310
|
+
* endpoint injects — they are never persisted on the connection. `host` is
|
|
311
|
+
* the resolved TLS endpoint (`live.ctraderapi.com` / `demo.ctraderapi.com`)
|
|
312
|
+
* derived from the selected account's live/demo flag.
|
|
313
|
+
*/
|
|
314
|
+
async getCTraderCredentials() {
|
|
315
|
+
const raw = await this.request("/agent/connect/ctrader/credentials");
|
|
316
|
+
return {
|
|
317
|
+
accessToken: raw.accessToken ?? "",
|
|
318
|
+
refreshToken: raw.refreshToken ?? "",
|
|
319
|
+
accountId: raw.accountId != null ? String(raw.accountId) : "",
|
|
320
|
+
host: raw.host ?? "",
|
|
321
|
+
clientId: raw.clientId ?? "",
|
|
322
|
+
clientSecret: raw.clientSecret ?? ""
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Pattern A: multi-account credential fetch for cTrader.
|
|
327
|
+
*
|
|
328
|
+
* Unlike atlassian/salesforce (one Connection row per account/site), a
|
|
329
|
+
* cTrader is MULTI-grant per agent: an agent may connect several distinct
|
|
330
|
+
* cTrader logins, each its own Connection row keyed on `accountIdentifier =
|
|
331
|
+
* ctid:<userId>` (Phase 1). This aggregates the *trading accounts* across
|
|
332
|
+
* ALL of those Connection rows — each row contributes its `availableAccounts`
|
|
333
|
+
* flattened, and every account carries ITS OWN grant's `accessToken` (the
|
|
334
|
+
* token that authenticates that account against the cTrader Open API). One
|
|
335
|
+
* OAuth grant still covers all accounts under that single login on one shared
|
|
336
|
+
* token; only the `ctidTraderAccountId` and the protobuf socket `host` (live
|
|
337
|
+
* vs demo) differ within a grant. Across grants the tokens differ, so the
|
|
338
|
+
* token is now PER-ACCOUNT rather than hoisted to the top level.
|
|
339
|
+
*
|
|
340
|
+
* `host` per account is derived from the account's `isLive` flag
|
|
341
|
+
* (`live.ctraderapi.com` / `demo.ctraderapi.com`) — the same mapping the
|
|
342
|
+
* connect provider applies server-side when an account is auto-selected.
|
|
343
|
+
*
|
|
344
|
+
* `clientId` / `clientSecret` are the SST-sourced GLOBAL app credentials the
|
|
345
|
+
* connect endpoint injects — identical across every Connection row (one
|
|
346
|
+
* cTrader app), never persisted on a connection. We take them from the first
|
|
347
|
+
* row that carries them.
|
|
348
|
+
*
|
|
349
|
+
* Accounts are deduped on `ctidTraderAccountId` first-wins: Spotware ids are
|
|
350
|
+
* globally unique across logins, so a duplicate can only appear if the same
|
|
351
|
+
* account somehow surfaced under two grants — first-wins keeps it
|
|
352
|
+
* deterministic.
|
|
353
|
+
*
|
|
354
|
+
* `accounts` may be empty (no cTrader Connection at all), in which case we
|
|
355
|
+
* return empty creds rather than throwing.
|
|
356
|
+
*/
|
|
357
|
+
async getCTraderAccounts() {
|
|
358
|
+
const raw = await this.request("/agent/connect/ctrader/accounts");
|
|
359
|
+
if (raw.accounts.length === 0) return {
|
|
360
|
+
accounts: [],
|
|
361
|
+
clientId: "",
|
|
362
|
+
clientSecret: ""
|
|
363
|
+
};
|
|
364
|
+
let clientId = "";
|
|
365
|
+
let clientSecret = "";
|
|
366
|
+
for (const row of raw.accounts) {
|
|
367
|
+
if (!clientId && row.clientId) clientId = row.clientId;
|
|
368
|
+
if (!clientSecret && row.clientSecret) clientSecret = row.clientSecret;
|
|
369
|
+
if (clientId && clientSecret) break;
|
|
370
|
+
}
|
|
371
|
+
const seen = /* @__PURE__ */ new Set();
|
|
372
|
+
const accounts = [];
|
|
373
|
+
for (const row of raw.accounts) {
|
|
374
|
+
const rowToken = row.accessToken ?? "";
|
|
375
|
+
for (const a of row.availableAccounts ?? []) {
|
|
376
|
+
const id = a.ctidTraderAccountId != null ? String(a.ctidTraderAccountId) : a.accountId != null ? String(a.accountId) : "";
|
|
377
|
+
if (id.length === 0 || seen.has(id)) continue;
|
|
378
|
+
seen.add(id);
|
|
379
|
+
const isLive = a.isLive === true;
|
|
380
|
+
accounts.push({
|
|
381
|
+
ctidTraderAccountId: id,
|
|
382
|
+
host: isLive ? "live.ctraderapi.com" : "demo.ctraderapi.com",
|
|
383
|
+
isLive,
|
|
384
|
+
...a.brokerName != null ? { brokerName: a.brokerName } : {},
|
|
385
|
+
...a.accountNumber != null ? { accountNumber: String(a.accountNumber) } : {},
|
|
386
|
+
accessToken: rowToken
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return {
|
|
391
|
+
accounts,
|
|
392
|
+
clientId,
|
|
393
|
+
clientSecret
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
293
397
|
* @deprecated Returns a single primary credential blob (legacy "pick-the-
|
|
294
398
|
* default-connection" shape). Use `getGithubAccounts()` for the multi-
|
|
295
399
|
* account shape required by Pattern A — explicit selector args on every
|
|
@@ -1069,6 +1173,15 @@ var AgentApiClient = class {
|
|
|
1069
1173
|
...scope ? { body: JSON.stringify({ scope }) } : {}
|
|
1070
1174
|
});
|
|
1071
1175
|
}
|
|
1176
|
+
async sendSms(args) {
|
|
1177
|
+
return this.request("/mobile/sms/send", {
|
|
1178
|
+
method: "POST",
|
|
1179
|
+
body: JSON.stringify({
|
|
1180
|
+
to: args.to,
|
|
1181
|
+
body: args.body
|
|
1182
|
+
})
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1072
1185
|
async searchWeb(params) {
|
|
1073
1186
|
return this.request("/agent/search/web", {
|
|
1074
1187
|
method: "POST",
|
|
@@ -1087,6 +1200,20 @@ var AgentApiClient = class {
|
|
|
1087
1200
|
body: JSON.stringify(params)
|
|
1088
1201
|
});
|
|
1089
1202
|
}
|
|
1203
|
+
/** Search news across the selected provider's corpus. → POST /agent/news/search */
|
|
1204
|
+
async newsSearch(params) {
|
|
1205
|
+
return this.request("/agent/news/search", {
|
|
1206
|
+
method: "POST",
|
|
1207
|
+
body: JSON.stringify(params)
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
/** Top headlines for the selected provider. → POST /agent/news/headlines */
|
|
1211
|
+
async newsHeadlines(params) {
|
|
1212
|
+
return this.request("/agent/news/headlines", {
|
|
1213
|
+
method: "POST",
|
|
1214
|
+
body: JSON.stringify(params ?? {})
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1090
1217
|
/**
|
|
1091
1218
|
* Semantic search across the agent's member scopes. Fan-out is gated
|
|
1092
1219
|
* server-side by `listScopes` set-inclusion (fail-closed). Pass
|
package/dist/index.d.cts
CHANGED
|
@@ -59,6 +59,26 @@ interface AgentApiClientConfig {
|
|
|
59
59
|
apiKey: string;
|
|
60
60
|
apiUrl: string;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* The broad-news providers behind the metered `services/news` Lambda. The
|
|
64
|
+
* server validates this with a zod enum; a value outside the union is an
|
|
65
|
+
* unpriceable product, so keep the literal union in lockstep with the service.
|
|
66
|
+
*/
|
|
67
|
+
type NewsProvider = "apitube" | "newsdata";
|
|
68
|
+
/** One normalized article. `sentiment` is provider-shaped (APITube supplies it). */
|
|
69
|
+
interface NewsArticle {
|
|
70
|
+
title: string;
|
|
71
|
+
url: string;
|
|
72
|
+
source: string;
|
|
73
|
+
publishedAt: string;
|
|
74
|
+
snippet: string;
|
|
75
|
+
sentiment?: unknown;
|
|
76
|
+
}
|
|
77
|
+
/** Provider-agnostic result — the server normalizes every adapter to this. */
|
|
78
|
+
interface NewsResult {
|
|
79
|
+
articles: NewsArticle[];
|
|
80
|
+
provider: string;
|
|
81
|
+
}
|
|
62
82
|
interface RemoteSessionInfo {
|
|
63
83
|
sessionId: string;
|
|
64
84
|
agentId: string;
|
|
@@ -450,6 +470,69 @@ declare class AgentApiClient {
|
|
|
450
470
|
providerMetadata?: Record<string, unknown>;
|
|
451
471
|
[key: string]: unknown;
|
|
452
472
|
}>;
|
|
473
|
+
/**
|
|
474
|
+
* Resolve the primary cTrader Connection's credentials for the calling
|
|
475
|
+
* agent. Unlike most providers, the cTrader Open API needs app-level auth
|
|
476
|
+
* (`clientId` + `clientSecret`) AND account auth (`accessToken` +
|
|
477
|
+
* `accountId`) on the socket, so `@alfe.ai/ctrader-mcp` self-fetches the
|
|
478
|
+
* full set here at startup (the atlassian/google pattern). `clientId` /
|
|
479
|
+
* `clientSecret` are the SST-sourced global app credentials the connect
|
|
480
|
+
* endpoint injects — they are never persisted on the connection. `host` is
|
|
481
|
+
* the resolved TLS endpoint (`live.ctraderapi.com` / `demo.ctraderapi.com`)
|
|
482
|
+
* derived from the selected account's live/demo flag.
|
|
483
|
+
*/
|
|
484
|
+
getCTraderCredentials(): Promise<{
|
|
485
|
+
accessToken: string;
|
|
486
|
+
refreshToken: string;
|
|
487
|
+
accountId: string;
|
|
488
|
+
host: string;
|
|
489
|
+
clientId: string;
|
|
490
|
+
clientSecret: string;
|
|
491
|
+
}>;
|
|
492
|
+
/**
|
|
493
|
+
* Pattern A: multi-account credential fetch for cTrader.
|
|
494
|
+
*
|
|
495
|
+
* Unlike atlassian/salesforce (one Connection row per account/site), a
|
|
496
|
+
* cTrader is MULTI-grant per agent: an agent may connect several distinct
|
|
497
|
+
* cTrader logins, each its own Connection row keyed on `accountIdentifier =
|
|
498
|
+
* ctid:<userId>` (Phase 1). This aggregates the *trading accounts* across
|
|
499
|
+
* ALL of those Connection rows — each row contributes its `availableAccounts`
|
|
500
|
+
* flattened, and every account carries ITS OWN grant's `accessToken` (the
|
|
501
|
+
* token that authenticates that account against the cTrader Open API). One
|
|
502
|
+
* OAuth grant still covers all accounts under that single login on one shared
|
|
503
|
+
* token; only the `ctidTraderAccountId` and the protobuf socket `host` (live
|
|
504
|
+
* vs demo) differ within a grant. Across grants the tokens differ, so the
|
|
505
|
+
* token is now PER-ACCOUNT rather than hoisted to the top level.
|
|
506
|
+
*
|
|
507
|
+
* `host` per account is derived from the account's `isLive` flag
|
|
508
|
+
* (`live.ctraderapi.com` / `demo.ctraderapi.com`) — the same mapping the
|
|
509
|
+
* connect provider applies server-side when an account is auto-selected.
|
|
510
|
+
*
|
|
511
|
+
* `clientId` / `clientSecret` are the SST-sourced GLOBAL app credentials the
|
|
512
|
+
* connect endpoint injects — identical across every Connection row (one
|
|
513
|
+
* cTrader app), never persisted on a connection. We take them from the first
|
|
514
|
+
* row that carries them.
|
|
515
|
+
*
|
|
516
|
+
* Accounts are deduped on `ctidTraderAccountId` first-wins: Spotware ids are
|
|
517
|
+
* globally unique across logins, so a duplicate can only appear if the same
|
|
518
|
+
* account somehow surfaced under two grants — first-wins keeps it
|
|
519
|
+
* deterministic.
|
|
520
|
+
*
|
|
521
|
+
* `accounts` may be empty (no cTrader Connection at all), in which case we
|
|
522
|
+
* return empty creds rather than throwing.
|
|
523
|
+
*/
|
|
524
|
+
getCTraderAccounts(): Promise<{
|
|
525
|
+
accounts: {
|
|
526
|
+
ctidTraderAccountId: string;
|
|
527
|
+
host: string;
|
|
528
|
+
isLive: boolean;
|
|
529
|
+
brokerName?: string;
|
|
530
|
+
accountNumber?: string;
|
|
531
|
+
accessToken: string;
|
|
532
|
+
}[];
|
|
533
|
+
clientId: string;
|
|
534
|
+
clientSecret: string;
|
|
535
|
+
}>;
|
|
453
536
|
/**
|
|
454
537
|
* @deprecated Returns a single primary credential blob (legacy "pick-the-
|
|
455
538
|
* default-connection" shape). Use `getGithubAccounts()` for the multi-
|
|
@@ -1295,6 +1378,13 @@ declare class AgentApiClient {
|
|
|
1295
1378
|
synced: true;
|
|
1296
1379
|
syncedAt: string;
|
|
1297
1380
|
}>;
|
|
1381
|
+
sendSms(args: {
|
|
1382
|
+
to: string;
|
|
1383
|
+
body: string;
|
|
1384
|
+
}): Promise<{
|
|
1385
|
+
sent: boolean;
|
|
1386
|
+
sid: string;
|
|
1387
|
+
}>;
|
|
1298
1388
|
searchWeb(params: {
|
|
1299
1389
|
query: string;
|
|
1300
1390
|
count?: number;
|
|
@@ -1311,6 +1401,25 @@ declare class AgentApiClient {
|
|
|
1311
1401
|
count?: number;
|
|
1312
1402
|
freshness?: string;
|
|
1313
1403
|
}): Promise<unknown>;
|
|
1404
|
+
/** Search news across the selected provider's corpus. → POST /agent/news/search */
|
|
1405
|
+
newsSearch(params: {
|
|
1406
|
+
query: string;
|
|
1407
|
+
provider?: NewsProvider;
|
|
1408
|
+
source?: string;
|
|
1409
|
+
from?: string;
|
|
1410
|
+
to?: string;
|
|
1411
|
+
language?: string;
|
|
1412
|
+
category?: string;
|
|
1413
|
+
limit?: number;
|
|
1414
|
+
}): Promise<NewsResult>;
|
|
1415
|
+
/** Top headlines for the selected provider. → POST /agent/news/headlines */
|
|
1416
|
+
newsHeadlines(params?: {
|
|
1417
|
+
provider?: NewsProvider;
|
|
1418
|
+
category?: string;
|
|
1419
|
+
source?: string;
|
|
1420
|
+
language?: string;
|
|
1421
|
+
limit?: number;
|
|
1422
|
+
}): Promise<NewsResult>;
|
|
1314
1423
|
/**
|
|
1315
1424
|
* Semantic search across the agent's member scopes. Fan-out is gated
|
|
1316
1425
|
* server-side by `listScopes` set-inclusion (fail-closed). Pass
|
|
@@ -1433,5 +1542,5 @@ declare class AgentApiClient {
|
|
|
1433
1542
|
}
|
|
1434
1543
|
//# sourceMappingURL=index.d.ts.map
|
|
1435
1544
|
//#endregion
|
|
1436
|
-
export { AgentApiClient, AgentApiClientConfig, AgentAvatarPresign, AgentSelf, AgentVoice, AgentVoiceConfig, ChangeRequestActorKind, ChangeRequestOperation, ChangeRequestResourceType, ChangeRequestStatus, type ChangelogAction, type ChangelogActor, type ChangelogEntry, type EncryptedEnvelopeV1, type Field, type FieldEnvelope, type FieldFormat, type FieldSensitivity, type FieldView, type GeneratedDataKey, type InstallToolErrorCaptureOptions, type IntegrationConfigResult, type IntegrationConfigSchemaField, type IntegrationInstall, KnowledgeChangeRequest, KnowledgeDoc, KnowledgeProfile, KnowledgeProfileLink, KnowledgeScope, KnowledgeScopeType, KnowledgeSearchHit, KnowledgeSearchResult, ProposeScopeChangeInput, type RegistryEntry, RemoteSessionInfo, type ScopeInfo, type SecretAggregate, type SecretCategory, type SecretMetadata, type SecretScope, SharedFileEntry, SyncAgentInfo, SyncAgentStats, SyncConfirmedUpload, SyncFileEntry, SyncManifest, SyncManifestEntry, SyncPresignedUrl, SyncReconstructBundle, SyncReconstructFile, SyncSessionContent, SyncSessionEntry, type ToolCaptureApi, VoiceSttArgs, VoiceSttResult, VoiceTtsArgs, VoiceTtsModel, VoiceTtsResult, installToolErrorCapture };
|
|
1545
|
+
export { AgentApiClient, AgentApiClientConfig, AgentAvatarPresign, AgentSelf, AgentVoice, AgentVoiceConfig, ChangeRequestActorKind, ChangeRequestOperation, ChangeRequestResourceType, ChangeRequestStatus, type ChangelogAction, type ChangelogActor, type ChangelogEntry, type EncryptedEnvelopeV1, type Field, type FieldEnvelope, type FieldFormat, type FieldSensitivity, type FieldView, type GeneratedDataKey, type InstallToolErrorCaptureOptions, type IntegrationConfigResult, type IntegrationConfigSchemaField, type IntegrationInstall, KnowledgeChangeRequest, KnowledgeDoc, KnowledgeProfile, KnowledgeProfileLink, KnowledgeScope, KnowledgeScopeType, KnowledgeSearchHit, KnowledgeSearchResult, NewsArticle, NewsProvider, NewsResult, ProposeScopeChangeInput, type RegistryEntry, RemoteSessionInfo, type ScopeInfo, type SecretAggregate, type SecretCategory, type SecretMetadata, type SecretScope, SharedFileEntry, SyncAgentInfo, SyncAgentStats, SyncConfirmedUpload, SyncFileEntry, SyncManifest, SyncManifestEntry, SyncPresignedUrl, SyncReconstructBundle, SyncReconstructFile, SyncSessionContent, SyncSessionEntry, type ToolCaptureApi, VoiceSttArgs, VoiceSttResult, VoiceTtsArgs, VoiceTtsModel, VoiceTtsResult, installToolErrorCapture };
|
|
1437
1546
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/tool-error-capture.ts","../src/index.ts"],"mappings":";;;;;;;AA6BA;AAIA;AA0GA;;;;;;;;ACtFA;AAOA;AAmBA;AAWA;AASA;;;;;AAOA;AAMA;AAQA;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/tool-error-capture.ts","../src/index.ts"],"mappings":";;;;;;;AA6BA;AAIA;AA0GA;;;;;;;;ACtFA;AAYA;AAGA;AAUA;AAOA;AAmBA;AAWA;AASA;;;;;AAOA;AAMA;AAQA;AAQiB,UD5HA,cAAA,CC4HqB;EASrB,YAAA,CAAA,GAAA,IAAc,EAAA,KAAA,EAAA,CAAA,EAAA,OAAA;AAQ/B;AASiB,UDlJA,8BAAA,CCkJgB;EAQhB;EAMA,MAAA,EAAA,MAAA;EAeL;AAEZ;AAMA;AAmBA;AAMA;AAKA;EAAiC,IAAA,CAAA,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,GAAA,IAAA;;;;AAUjC;AAiBA;AACA;AACA;AAMA;AAGiB,iBDjJD,uBAAA,CCiJuB,GAAA,EDhJhC,cCgJgC,EAAA,OAAA,ED/I5B,8BC+I4B,CAAA,EAAA,IAAA;;;;UAvOtB,oBAAA;;;AAAjB;AAYA;AAGA;AAUA;AAOA;AAmBA;AAWiB,KAlDL,YAAA,GAkDsB,SAAA,GAAA,UAAA;AASlC;AAA6B,UAxDZ,WAAA,CAwDY;OAIL,EAAA,MAAA;KAAf,EAAA,MAAA;EAAM,MAAA,EAAA,MAAA;EAGE,WAAA,EAAA,MAAgB;EAMhB,OAAA,EAAA,MAAA;EAQA,SAAA,CAAA,EAAA,OAAA;AAQjB;AASA;AAQiB,UA5FA,UAAA,CA4Fa;EASb,QAAA,EApGL,WAoGqB,EAAA;EAQhB,QAAA,EAAA,MAAA;AAMjB;AAeY,UA3HK,iBAAA,CA2Ha;EAEb,SAAA,EAAA,MAAc;EAMd,OAAA,EAAA,MAAA;EAmBA,OAAA,EAAA,SAAA,GAAA,UAAqB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AAQ;;;;;;;;YAyBvB,eAAe,QAAQ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,26 @@ interface AgentApiClientConfig {
|
|
|
59
59
|
apiKey: string;
|
|
60
60
|
apiUrl: string;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* The broad-news providers behind the metered `services/news` Lambda. The
|
|
64
|
+
* server validates this with a zod enum; a value outside the union is an
|
|
65
|
+
* unpriceable product, so keep the literal union in lockstep with the service.
|
|
66
|
+
*/
|
|
67
|
+
type NewsProvider = "apitube" | "newsdata";
|
|
68
|
+
/** One normalized article. `sentiment` is provider-shaped (APITube supplies it). */
|
|
69
|
+
interface NewsArticle {
|
|
70
|
+
title: string;
|
|
71
|
+
url: string;
|
|
72
|
+
source: string;
|
|
73
|
+
publishedAt: string;
|
|
74
|
+
snippet: string;
|
|
75
|
+
sentiment?: unknown;
|
|
76
|
+
}
|
|
77
|
+
/** Provider-agnostic result — the server normalizes every adapter to this. */
|
|
78
|
+
interface NewsResult {
|
|
79
|
+
articles: NewsArticle[];
|
|
80
|
+
provider: string;
|
|
81
|
+
}
|
|
62
82
|
interface RemoteSessionInfo {
|
|
63
83
|
sessionId: string;
|
|
64
84
|
agentId: string;
|
|
@@ -450,6 +470,69 @@ declare class AgentApiClient {
|
|
|
450
470
|
providerMetadata?: Record<string, unknown>;
|
|
451
471
|
[key: string]: unknown;
|
|
452
472
|
}>;
|
|
473
|
+
/**
|
|
474
|
+
* Resolve the primary cTrader Connection's credentials for the calling
|
|
475
|
+
* agent. Unlike most providers, the cTrader Open API needs app-level auth
|
|
476
|
+
* (`clientId` + `clientSecret`) AND account auth (`accessToken` +
|
|
477
|
+
* `accountId`) on the socket, so `@alfe.ai/ctrader-mcp` self-fetches the
|
|
478
|
+
* full set here at startup (the atlassian/google pattern). `clientId` /
|
|
479
|
+
* `clientSecret` are the SST-sourced global app credentials the connect
|
|
480
|
+
* endpoint injects — they are never persisted on the connection. `host` is
|
|
481
|
+
* the resolved TLS endpoint (`live.ctraderapi.com` / `demo.ctraderapi.com`)
|
|
482
|
+
* derived from the selected account's live/demo flag.
|
|
483
|
+
*/
|
|
484
|
+
getCTraderCredentials(): Promise<{
|
|
485
|
+
accessToken: string;
|
|
486
|
+
refreshToken: string;
|
|
487
|
+
accountId: string;
|
|
488
|
+
host: string;
|
|
489
|
+
clientId: string;
|
|
490
|
+
clientSecret: string;
|
|
491
|
+
}>;
|
|
492
|
+
/**
|
|
493
|
+
* Pattern A: multi-account credential fetch for cTrader.
|
|
494
|
+
*
|
|
495
|
+
* Unlike atlassian/salesforce (one Connection row per account/site), a
|
|
496
|
+
* cTrader is MULTI-grant per agent: an agent may connect several distinct
|
|
497
|
+
* cTrader logins, each its own Connection row keyed on `accountIdentifier =
|
|
498
|
+
* ctid:<userId>` (Phase 1). This aggregates the *trading accounts* across
|
|
499
|
+
* ALL of those Connection rows — each row contributes its `availableAccounts`
|
|
500
|
+
* flattened, and every account carries ITS OWN grant's `accessToken` (the
|
|
501
|
+
* token that authenticates that account against the cTrader Open API). One
|
|
502
|
+
* OAuth grant still covers all accounts under that single login on one shared
|
|
503
|
+
* token; only the `ctidTraderAccountId` and the protobuf socket `host` (live
|
|
504
|
+
* vs demo) differ within a grant. Across grants the tokens differ, so the
|
|
505
|
+
* token is now PER-ACCOUNT rather than hoisted to the top level.
|
|
506
|
+
*
|
|
507
|
+
* `host` per account is derived from the account's `isLive` flag
|
|
508
|
+
* (`live.ctraderapi.com` / `demo.ctraderapi.com`) — the same mapping the
|
|
509
|
+
* connect provider applies server-side when an account is auto-selected.
|
|
510
|
+
*
|
|
511
|
+
* `clientId` / `clientSecret` are the SST-sourced GLOBAL app credentials the
|
|
512
|
+
* connect endpoint injects — identical across every Connection row (one
|
|
513
|
+
* cTrader app), never persisted on a connection. We take them from the first
|
|
514
|
+
* row that carries them.
|
|
515
|
+
*
|
|
516
|
+
* Accounts are deduped on `ctidTraderAccountId` first-wins: Spotware ids are
|
|
517
|
+
* globally unique across logins, so a duplicate can only appear if the same
|
|
518
|
+
* account somehow surfaced under two grants — first-wins keeps it
|
|
519
|
+
* deterministic.
|
|
520
|
+
*
|
|
521
|
+
* `accounts` may be empty (no cTrader Connection at all), in which case we
|
|
522
|
+
* return empty creds rather than throwing.
|
|
523
|
+
*/
|
|
524
|
+
getCTraderAccounts(): Promise<{
|
|
525
|
+
accounts: {
|
|
526
|
+
ctidTraderAccountId: string;
|
|
527
|
+
host: string;
|
|
528
|
+
isLive: boolean;
|
|
529
|
+
brokerName?: string;
|
|
530
|
+
accountNumber?: string;
|
|
531
|
+
accessToken: string;
|
|
532
|
+
}[];
|
|
533
|
+
clientId: string;
|
|
534
|
+
clientSecret: string;
|
|
535
|
+
}>;
|
|
453
536
|
/**
|
|
454
537
|
* @deprecated Returns a single primary credential blob (legacy "pick-the-
|
|
455
538
|
* default-connection" shape). Use `getGithubAccounts()` for the multi-
|
|
@@ -1295,6 +1378,13 @@ declare class AgentApiClient {
|
|
|
1295
1378
|
synced: true;
|
|
1296
1379
|
syncedAt: string;
|
|
1297
1380
|
}>;
|
|
1381
|
+
sendSms(args: {
|
|
1382
|
+
to: string;
|
|
1383
|
+
body: string;
|
|
1384
|
+
}): Promise<{
|
|
1385
|
+
sent: boolean;
|
|
1386
|
+
sid: string;
|
|
1387
|
+
}>;
|
|
1298
1388
|
searchWeb(params: {
|
|
1299
1389
|
query: string;
|
|
1300
1390
|
count?: number;
|
|
@@ -1311,6 +1401,25 @@ declare class AgentApiClient {
|
|
|
1311
1401
|
count?: number;
|
|
1312
1402
|
freshness?: string;
|
|
1313
1403
|
}): Promise<unknown>;
|
|
1404
|
+
/** Search news across the selected provider's corpus. → POST /agent/news/search */
|
|
1405
|
+
newsSearch(params: {
|
|
1406
|
+
query: string;
|
|
1407
|
+
provider?: NewsProvider;
|
|
1408
|
+
source?: string;
|
|
1409
|
+
from?: string;
|
|
1410
|
+
to?: string;
|
|
1411
|
+
language?: string;
|
|
1412
|
+
category?: string;
|
|
1413
|
+
limit?: number;
|
|
1414
|
+
}): Promise<NewsResult>;
|
|
1415
|
+
/** Top headlines for the selected provider. → POST /agent/news/headlines */
|
|
1416
|
+
newsHeadlines(params?: {
|
|
1417
|
+
provider?: NewsProvider;
|
|
1418
|
+
category?: string;
|
|
1419
|
+
source?: string;
|
|
1420
|
+
language?: string;
|
|
1421
|
+
limit?: number;
|
|
1422
|
+
}): Promise<NewsResult>;
|
|
1314
1423
|
/**
|
|
1315
1424
|
* Semantic search across the agent's member scopes. Fan-out is gated
|
|
1316
1425
|
* server-side by `listScopes` set-inclusion (fail-closed). Pass
|
|
@@ -1433,5 +1542,5 @@ declare class AgentApiClient {
|
|
|
1433
1542
|
}
|
|
1434
1543
|
//# sourceMappingURL=index.d.ts.map
|
|
1435
1544
|
//#endregion
|
|
1436
|
-
export { AgentApiClient, AgentApiClientConfig, AgentAvatarPresign, AgentSelf, AgentVoice, AgentVoiceConfig, ChangeRequestActorKind, ChangeRequestOperation, ChangeRequestResourceType, ChangeRequestStatus, type ChangelogAction, type ChangelogActor, type ChangelogEntry, type EncryptedEnvelopeV1, type Field, type FieldEnvelope, type FieldFormat, type FieldSensitivity, type FieldView, type GeneratedDataKey, type InstallToolErrorCaptureOptions, type IntegrationConfigResult, type IntegrationConfigSchemaField, type IntegrationInstall, KnowledgeChangeRequest, KnowledgeDoc, KnowledgeProfile, KnowledgeProfileLink, KnowledgeScope, KnowledgeScopeType, KnowledgeSearchHit, KnowledgeSearchResult, ProposeScopeChangeInput, type RegistryEntry, RemoteSessionInfo, type ScopeInfo, type SecretAggregate, type SecretCategory, type SecretMetadata, type SecretScope, SharedFileEntry, SyncAgentInfo, SyncAgentStats, SyncConfirmedUpload, SyncFileEntry, SyncManifest, SyncManifestEntry, SyncPresignedUrl, SyncReconstructBundle, SyncReconstructFile, SyncSessionContent, SyncSessionEntry, type ToolCaptureApi, VoiceSttArgs, VoiceSttResult, VoiceTtsArgs, VoiceTtsModel, VoiceTtsResult, installToolErrorCapture };
|
|
1545
|
+
export { AgentApiClient, AgentApiClientConfig, AgentAvatarPresign, AgentSelf, AgentVoice, AgentVoiceConfig, ChangeRequestActorKind, ChangeRequestOperation, ChangeRequestResourceType, ChangeRequestStatus, type ChangelogAction, type ChangelogActor, type ChangelogEntry, type EncryptedEnvelopeV1, type Field, type FieldEnvelope, type FieldFormat, type FieldSensitivity, type FieldView, type GeneratedDataKey, type InstallToolErrorCaptureOptions, type IntegrationConfigResult, type IntegrationConfigSchemaField, type IntegrationInstall, KnowledgeChangeRequest, KnowledgeDoc, KnowledgeProfile, KnowledgeProfileLink, KnowledgeScope, KnowledgeScopeType, KnowledgeSearchHit, KnowledgeSearchResult, NewsArticle, NewsProvider, NewsResult, ProposeScopeChangeInput, type RegistryEntry, RemoteSessionInfo, type ScopeInfo, type SecretAggregate, type SecretCategory, type SecretMetadata, type SecretScope, SharedFileEntry, SyncAgentInfo, SyncAgentStats, SyncConfirmedUpload, SyncFileEntry, SyncManifest, SyncManifestEntry, SyncPresignedUrl, SyncReconstructBundle, SyncReconstructFile, SyncSessionContent, SyncSessionEntry, type ToolCaptureApi, VoiceSttArgs, VoiceSttResult, VoiceTtsArgs, VoiceTtsModel, VoiceTtsResult, installToolErrorCapture };
|
|
1437
1546
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/tool-error-capture.ts","../src/index.ts"],"mappings":";;;;;;;AA6BA;AAIA;AA0GA;;;;;;;;ACtFA;AAOA;AAmBA;AAWA;AASA;;;;;AAOA;AAMA;AAQA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/tool-error-capture.ts","../src/index.ts"],"mappings":";;;;;;;AA6BA;AAIA;AA0GA;;;;;;;;ACtFA;AAYA;AAGA;AAUA;AAOA;AAmBA;AAWA;AASA;;;;;AAOA;AAMA;AAQA;AAQiB,UD5HA,cAAA,CC4HqB;EASrB,Y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