@juspay/neurolink 13.13.0 → 13.13.1
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/CHANGELOG.md +2 -6
- package/dist/auth/tokenStore.d.ts +10 -0
- package/dist/auth/tokenStore.js +36 -0
- package/dist/browser/neurolink.min.js +378 -378
- package/dist/cli/commands/auth.d.ts +14 -1
- package/dist/cli/commands/auth.js +101 -25
- package/dist/cli/factories/authCommandFactory.js +5 -0
- package/dist/server/routes/codexProxyRoutes.d.ts +2 -2
- package/dist/server/routes/codexProxyRoutes.js +83 -15
- package/dist/types/codex.d.ts +16 -0
- package/dist/types/proxy.d.ts +8 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* Currently supports:
|
|
18
18
|
* - Anthropic (API key + OAuth)
|
|
19
19
|
*/
|
|
20
|
-
import type { AccountQuota, AuthCommandArgs } from "../../types/index.js";
|
|
20
|
+
import type { AccountQuota, AuthCommandArgs, CodexImportedCredential, CodexImportTokenStore } from "../../types/index.js";
|
|
21
21
|
/**
|
|
22
22
|
* Handle the login subcommand
|
|
23
23
|
* `neurolink auth login <provider>`
|
|
@@ -26,6 +26,19 @@ import type { AccountQuota, AuthCommandArgs } from "../../types/index.js";
|
|
|
26
26
|
* (e.g., "anthropic:alice") to support multi-account pools.
|
|
27
27
|
*/
|
|
28
28
|
export declare function handleLogin(argv: AuthCommandArgs): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Core validation and persistence logic for importing a Codex credential into
|
|
31
|
+
* the account pool. Extracted from handleCodexLogin so import rules, keying,
|
|
32
|
+
* collision avoidance, and --force semantics are directly testable without
|
|
33
|
+
* process.exit.
|
|
34
|
+
*/
|
|
35
|
+
export declare function importCodexCredentialToStore(credential: CodexImportedCredential, options?: {
|
|
36
|
+
label?: string;
|
|
37
|
+
force?: boolean;
|
|
38
|
+
}, store?: CodexImportTokenStore): Promise<{
|
|
39
|
+
compoundKey: string;
|
|
40
|
+
label: string;
|
|
41
|
+
}>;
|
|
29
42
|
/**
|
|
30
43
|
* Handle Codex (ChatGPT) login by importing the current credential from
|
|
31
44
|
* `~/.codex/auth.json` into the account pool under a `codex:<label>` key.
|
|
@@ -128,6 +128,104 @@ export async function handleLogin(argv) {
|
|
|
128
128
|
process.exit(1);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Core validation and persistence logic for importing a Codex credential into
|
|
133
|
+
* the account pool. Extracted from handleCodexLogin so import rules, keying,
|
|
134
|
+
* collision avoidance, and --force semantics are directly testable without
|
|
135
|
+
* process.exit.
|
|
136
|
+
*/
|
|
137
|
+
export async function importCodexCredentialToStore(credential, options = {}, store = defaultTokenStore) {
|
|
138
|
+
const scopePart = (key, providers, name) => providers[key]?.tokens?.scope
|
|
139
|
+
?.split(" ")
|
|
140
|
+
.find((part) => part.startsWith(`${name}:`))
|
|
141
|
+
?.slice(name.length + 1);
|
|
142
|
+
// A key holds "the same account" only on positive identity evidence. When
|
|
143
|
+
// the stored key carries an account id, ids must match. When it does not (a
|
|
144
|
+
// key imported before an account id was available), only a credential that
|
|
145
|
+
// also lacks one can match it, by email. A credential that does carry an
|
|
146
|
+
// account id is NOT matched to an email-only key: the same email can belong
|
|
147
|
+
// to several workspaces, so that overwrite needs --force. Keys the earlier
|
|
148
|
+
// release wrote always include `account:` when the id was known, so the
|
|
149
|
+
// bare-email migration (default login reuses the existing key) is unaffected.
|
|
150
|
+
const sameAccount = (key, providers) => {
|
|
151
|
+
const storedAccount = scopePart(key, providers, "account");
|
|
152
|
+
if (storedAccount) {
|
|
153
|
+
return storedAccount === credential.accountId;
|
|
154
|
+
}
|
|
155
|
+
if (credential.accountId) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
const storedEmail = scopePart(key, providers, "email");
|
|
159
|
+
return Boolean(storedEmail) && storedEmail === credential.email;
|
|
160
|
+
};
|
|
161
|
+
const resolveLabel = (providers) => {
|
|
162
|
+
if (options.label) {
|
|
163
|
+
return options.label;
|
|
164
|
+
}
|
|
165
|
+
if (credential.email && credential.accountId) {
|
|
166
|
+
const combined = `${credential.email}:${credential.accountId}`;
|
|
167
|
+
// Keys written before the account id joined the label are bare emails;
|
|
168
|
+
// keep updating those in place when they belong to this account.
|
|
169
|
+
return !providers[`codex:${combined}`] &&
|
|
170
|
+
providers[`codex:${credential.email}`] &&
|
|
171
|
+
sameAccount(`codex:${credential.email}`, providers)
|
|
172
|
+
? credential.email
|
|
173
|
+
: combined;
|
|
174
|
+
}
|
|
175
|
+
return (credential.email ??
|
|
176
|
+
credential.accountId ??
|
|
177
|
+
Date.now().toString(36).slice(-6));
|
|
178
|
+
};
|
|
179
|
+
const refuse = (providers, key) => {
|
|
180
|
+
if (options.force) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
// Re-importing the same account refreshes its credential; only a key that
|
|
184
|
+
// holds a different account needs --force.
|
|
185
|
+
if (providers[key] && !sameAccount(key, providers)) {
|
|
186
|
+
throw new Error(`Account "${key}" already holds a different Codex account. Pass --force to overwrite.`);
|
|
187
|
+
}
|
|
188
|
+
if (credential.refreshToken) {
|
|
189
|
+
for (const [existingKey, entry] of Object.entries(providers)) {
|
|
190
|
+
if (existingKey.startsWith("codex:") &&
|
|
191
|
+
existingKey !== key &&
|
|
192
|
+
entry.tokens?.refreshToken === credential.refreshToken) {
|
|
193
|
+
throw new Error(`A Codex account with the same refresh token already exists ("${existingKey}"). ` +
|
|
194
|
+
`Sharing a refresh token across multiple accounts causes token rotation invalidations. ` +
|
|
195
|
+
`Pass --force to proceed anyway.`);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
const label = validateAccountLabel(resolveLabel(await store.getProviderSnapshot()));
|
|
201
|
+
const compoundKey = `codex:${label}`;
|
|
202
|
+
const scopeParts = ["codex"];
|
|
203
|
+
if (credential.planType) {
|
|
204
|
+
scopeParts.push(`plan:${credential.planType}`);
|
|
205
|
+
}
|
|
206
|
+
if (credential.email) {
|
|
207
|
+
scopeParts.push(`email:${credential.email}`);
|
|
208
|
+
}
|
|
209
|
+
if (credential.accountId) {
|
|
210
|
+
scopeParts.push(`account:${credential.accountId}`);
|
|
211
|
+
}
|
|
212
|
+
// The checks run again under the store's cross-process lock, so two
|
|
213
|
+
// concurrent imports cannot both pass them and then overwrite each other.
|
|
214
|
+
const saved = await store.saveTokensIf(compoundKey, {
|
|
215
|
+
accessToken: credential.accessToken,
|
|
216
|
+
refreshToken: credential.refreshToken,
|
|
217
|
+
expiresAt: credential.expiresAt ?? Date.now() + 3_600_000,
|
|
218
|
+
tokenType: "Bearer",
|
|
219
|
+
scope: scopeParts.join(" "),
|
|
220
|
+
}, (providers) => {
|
|
221
|
+
refuse(providers, compoundKey);
|
|
222
|
+
return validateAccountLabel(resolveLabel(providers)) === label;
|
|
223
|
+
}, { enable: true });
|
|
224
|
+
if (!saved) {
|
|
225
|
+
throw new Error("Codex accounts changed while importing. Re-run the command.");
|
|
226
|
+
}
|
|
227
|
+
return { compoundKey, label };
|
|
228
|
+
}
|
|
131
229
|
/**
|
|
132
230
|
* Handle Codex (ChatGPT) login by importing the current credential from
|
|
133
231
|
* `~/.codex/auth.json` into the account pool under a `codex:<label>` key.
|
|
@@ -141,30 +239,7 @@ export async function handleCodexLogin(argv) {
|
|
|
141
239
|
const spinner = ora("Importing Codex (ChatGPT) credential…").start();
|
|
142
240
|
try {
|
|
143
241
|
const credential = await importCodexAuthFile();
|
|
144
|
-
const
|
|
145
|
-
credential.email ??
|
|
146
|
-
credential.accountId?.slice(0, 8) ??
|
|
147
|
-
Date.now().toString(36).slice(-6);
|
|
148
|
-
const label = validateAccountLabel(rawLabel);
|
|
149
|
-
const compoundKey = `codex:${label}`;
|
|
150
|
-
const scopeParts = ["codex"];
|
|
151
|
-
if (credential.planType) {
|
|
152
|
-
scopeParts.push(`plan:${credential.planType}`);
|
|
153
|
-
}
|
|
154
|
-
if (credential.email) {
|
|
155
|
-
scopeParts.push(`email:${credential.email}`);
|
|
156
|
-
}
|
|
157
|
-
if (credential.accountId) {
|
|
158
|
-
scopeParts.push(`account:${credential.accountId}`);
|
|
159
|
-
}
|
|
160
|
-
await defaultTokenStore.saveTokens(compoundKey, {
|
|
161
|
-
accessToken: credential.accessToken,
|
|
162
|
-
refreshToken: credential.refreshToken,
|
|
163
|
-
expiresAt: credential.expiresAt ?? Date.now() + 3_600_000,
|
|
164
|
-
tokenType: "Bearer",
|
|
165
|
-
scope: scopeParts.join(" "),
|
|
166
|
-
});
|
|
167
|
-
await defaultTokenStore.markEnabled(compoundKey);
|
|
242
|
+
const { compoundKey } = await importCodexCredentialToStore(credential, { label: argv.label, force: argv.force }, defaultTokenStore);
|
|
168
243
|
spinner.succeed(`Codex account added to pool: ${chalk.cyan(compoundKey)}`);
|
|
169
244
|
if (credential.planType) {
|
|
170
245
|
logger.always(chalk.gray(` plan: ${credential.planType}`));
|
|
@@ -572,7 +647,8 @@ export async function handleList(argv) {
|
|
|
572
647
|
// every login — reading email from it would show the LATEST login's
|
|
573
648
|
// email for ALL accounts. The label is the per-account source of truth.
|
|
574
649
|
if (label && label.includes("@")) {
|
|
575
|
-
email
|
|
650
|
+
// Codex labels may be `email:accountId`: drop a trailing id segment.
|
|
651
|
+
email = provider === "codex" ? label.replace(/:[^:@]*$/, "") : label;
|
|
576
652
|
}
|
|
577
653
|
// Fall back to credentials file ONLY for the default (unlabeled) account.
|
|
578
654
|
// Compound-key entries (labeled accounts) must NOT read the shared
|
|
@@ -187,6 +187,11 @@ export class AuthCommandFactory {
|
|
|
187
187
|
.option("label", {
|
|
188
188
|
type: "string",
|
|
189
189
|
description: "Human-readable label for this account (used with --add)",
|
|
190
|
+
})
|
|
191
|
+
.option("force", {
|
|
192
|
+
type: "boolean",
|
|
193
|
+
default: false,
|
|
194
|
+
description: "Codex import: overwrite a label that holds a different account, or reuse a refresh token already registered under another label",
|
|
190
195
|
})
|
|
191
196
|
.example("$0 auth login anthropic", "Interactive authentication (choose method)")
|
|
192
197
|
.example("$0 auth login anthropic --method api-key", "API key authentication")
|
|
@@ -21,13 +21,13 @@ import type { AccountQuota, CodexRefreshTokenStore, CodexResponseEnvelope, Codex
|
|
|
21
21
|
declare function refreshCodexTokenOnceWithDependencies(key: string, refreshToken: string, store: CodexRefreshTokenStore, refresh: CodexTokenRefresher): Promise<{
|
|
22
22
|
accessToken: string;
|
|
23
23
|
refreshToken: string;
|
|
24
|
-
expiresAt
|
|
24
|
+
expiresAt: number;
|
|
25
25
|
}>;
|
|
26
26
|
/** Refresh an account's token at most once at a time. */
|
|
27
27
|
declare function refreshCodexTokenOnce(key: string, refreshToken: string): Promise<{
|
|
28
28
|
accessToken: string;
|
|
29
29
|
refreshToken: string;
|
|
30
|
-
expiresAt
|
|
30
|
+
expiresAt: number;
|
|
31
31
|
}>;
|
|
32
32
|
/**
|
|
33
33
|
* Load the Codex account pool from the token store, refreshing expired OAuth
|
|
@@ -116,17 +116,42 @@ function readCodexRequestRefusal(status, errorText) {
|
|
|
116
116
|
*/
|
|
117
117
|
const codexRefreshInFlight = new Map();
|
|
118
118
|
async function refreshCodexTokenOnceWithDependencies(key, refreshToken, store, refresh) {
|
|
119
|
-
|
|
119
|
+
// Re-read the stored token instead of trusting the caller's snapshot. A
|
|
120
|
+
// request that captured the pool just before a previous refresh completed
|
|
121
|
+
// holds a token that has since been rotated; using it would spend a real
|
|
122
|
+
// attempt on a grant the server has already invalidated.
|
|
123
|
+
const latest = await store.peekTokens(key).catch(() => null);
|
|
124
|
+
const current = latest?.refreshToken ?? refreshToken;
|
|
125
|
+
// Flights are keyed by the token that is actually spent, read from the store
|
|
126
|
+
// rather than from the caller. Every caller for one account therefore
|
|
127
|
+
// shares one flight whatever snapshot it holds, and accounts that share a
|
|
128
|
+
// refresh token share it too. Nothing awaits between this lookup and the
|
|
129
|
+
// set below, so two callers cannot both start a flight.
|
|
130
|
+
const flightKey = current || key;
|
|
131
|
+
const existing = codexRefreshInFlight.get(flightKey);
|
|
120
132
|
if (existing) {
|
|
121
|
-
|
|
133
|
+
const resolved = await existing;
|
|
134
|
+
// Normally the owner's fan-out already persisted this key; this repairs
|
|
135
|
+
// the case where that write failed, and only while the stored token is
|
|
136
|
+
// still the one that was rotated.
|
|
137
|
+
await saveRotatedIfCurrent(store, key, current, resolved, latest?.scope);
|
|
138
|
+
return resolved;
|
|
122
139
|
}
|
|
123
140
|
const pending = (async () => {
|
|
124
|
-
//
|
|
125
|
-
//
|
|
126
|
-
//
|
|
127
|
-
//
|
|
128
|
-
|
|
129
|
-
|
|
141
|
+
// The peek above ran outside any flight. If a flight for this token ended
|
|
142
|
+
// between that peek and this point, `current` has already been rotated;
|
|
143
|
+
// spending it would be an invalid_grant. Re-read inside the flight and use
|
|
144
|
+
// what the finished flight stored instead of refreshing again.
|
|
145
|
+
if (latest) {
|
|
146
|
+
const fresh = await store.peekTokens(key).catch(() => null);
|
|
147
|
+
if (fresh?.refreshToken && fresh.refreshToken !== current) {
|
|
148
|
+
return {
|
|
149
|
+
accessToken: fresh.accessToken,
|
|
150
|
+
refreshToken: fresh.refreshToken,
|
|
151
|
+
expiresAt: fresh.expiresAt ?? latest.expiresAt ?? Date.now(),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
130
155
|
const refreshed = await refresh(current);
|
|
131
156
|
const resolved = {
|
|
132
157
|
accessToken: refreshed.accessToken,
|
|
@@ -138,19 +163,62 @@ async function refreshCodexTokenOnceWithDependencies(key, refreshToken, store, r
|
|
|
138
163
|
// rotating refresh token, receive an invalid_grant, and disable an account
|
|
139
164
|
// another request has already healed.
|
|
140
165
|
if (latest) {
|
|
141
|
-
await store
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
166
|
+
const saved = await saveRotatedIfCurrent(store, key, current, resolved, latest.scope);
|
|
167
|
+
if (!saved) {
|
|
168
|
+
logger.warn(`[codex] ${key} changed during refresh; kept the stored credential instead of the rotated token`);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
if (store.getProviderSnapshot) {
|
|
172
|
+
let snapshot = {};
|
|
173
|
+
try {
|
|
174
|
+
snapshot = await store.getProviderSnapshot();
|
|
175
|
+
}
|
|
176
|
+
catch (error) {
|
|
177
|
+
logger.warn(`[codex] could not read sibling accounts to propagate the rotated token: ${error instanceof Error ? error.message : String(error)}`);
|
|
178
|
+
}
|
|
179
|
+
for (const [siblingKey, entry] of Object.entries(snapshot)) {
|
|
180
|
+
if (!siblingKey.startsWith("codex:") ||
|
|
181
|
+
siblingKey === key ||
|
|
182
|
+
entry?.tokens?.refreshToken !== current) {
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
try {
|
|
186
|
+
await saveRotatedIfCurrent(store, siblingKey, current, resolved, entry.tokens?.scope);
|
|
187
|
+
}
|
|
188
|
+
catch (error) {
|
|
189
|
+
logger.warn(`[codex] could not propagate the rotated token to ${siblingKey}: ${error instanceof Error ? error.message : String(error)}`);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
146
192
|
}
|
|
147
193
|
return resolved;
|
|
148
194
|
})().finally(() => {
|
|
149
|
-
codexRefreshInFlight.delete(
|
|
195
|
+
codexRefreshInFlight.delete(flightKey);
|
|
150
196
|
});
|
|
151
|
-
codexRefreshInFlight.set(
|
|
197
|
+
codexRefreshInFlight.set(flightKey, pending);
|
|
152
198
|
return pending;
|
|
153
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Persist a rotated token for `key` only while its stored refresh token is
|
|
202
|
+
* still `rotatedFrom`, so a concurrent `auth login --force` import is never
|
|
203
|
+
* overwritten. Atomic under the token store's lock when it offers
|
|
204
|
+
* `saveTokensIf`; otherwise a best-effort peek-then-save.
|
|
205
|
+
*/
|
|
206
|
+
async function saveRotatedIfCurrent(store, key, rotatedFrom, resolved, scope) {
|
|
207
|
+
const tokens = {
|
|
208
|
+
...resolved,
|
|
209
|
+
tokenType: "Bearer",
|
|
210
|
+
...(scope ? { scope } : {}),
|
|
211
|
+
};
|
|
212
|
+
if (store.saveTokensIf) {
|
|
213
|
+
return store.saveTokensIf(key, tokens, (providers) => providers[key]?.tokens?.refreshToken === rotatedFrom);
|
|
214
|
+
}
|
|
215
|
+
const stored = await store.peekTokens(key).catch(() => null);
|
|
216
|
+
if (stored?.refreshToken !== rotatedFrom) {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
await store.saveTokens(key, tokens);
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
154
222
|
/** Refresh an account's token at most once at a time. */
|
|
155
223
|
async function refreshCodexTokenOnce(key, refreshToken) {
|
|
156
224
|
return refreshCodexTokenOnceWithDependencies(key, refreshToken, tokenStore, refreshCodexToken);
|
package/dist/types/codex.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* maps onto the session fields and its secondary window onto the weekly fields.
|
|
13
13
|
*/
|
|
14
14
|
import type { AccountCoolingReason, AccountQuota, ClaudeContentBlock, ClaudeTool, InternalResult } from "./proxy.js";
|
|
15
|
+
import type { StoredOAuthTokens } from "./auth.js";
|
|
15
16
|
/** Token block inside `~/.codex/auth.json`. */
|
|
16
17
|
export type CodexAuthFileTokens = {
|
|
17
18
|
id_token?: string;
|
|
@@ -40,6 +41,21 @@ export type CodexImportedCredential = {
|
|
|
40
41
|
/** Account email decoded from the id token, for the account label. */
|
|
41
42
|
email?: string;
|
|
42
43
|
};
|
|
44
|
+
/** Provider inventory as seen by a Codex credential import. */
|
|
45
|
+
export type CodexImportProviders = Record<string, {
|
|
46
|
+
tokens?: StoredOAuthTokens;
|
|
47
|
+
}>;
|
|
48
|
+
/** Token-store operations needed to import a Codex credential into the pool. */
|
|
49
|
+
export type CodexImportTokenStore = {
|
|
50
|
+
getProviderSnapshot: () => Promise<Record<string, {
|
|
51
|
+
tokens?: StoredOAuthTokens;
|
|
52
|
+
}>>;
|
|
53
|
+
saveTokensIf: (key: string, tokens: StoredOAuthTokens, guard: (providers: Record<string, {
|
|
54
|
+
tokens?: StoredOAuthTokens;
|
|
55
|
+
}>) => boolean, options?: {
|
|
56
|
+
enable?: boolean;
|
|
57
|
+
}) => Promise<boolean>;
|
|
58
|
+
};
|
|
43
59
|
/** Raw OpenAI OAuth token endpoint response. */
|
|
44
60
|
export type CodexTokenResponse = {
|
|
45
61
|
access_token?: string;
|
package/dist/types/proxy.d.ts
CHANGED
|
@@ -1076,6 +1076,14 @@ export type CodexRotationFailure = {
|
|
|
1076
1076
|
export type CodexRefreshTokenStore = {
|
|
1077
1077
|
peekTokens(provider: string): Promise<StoredOAuthTokens | null>;
|
|
1078
1078
|
saveTokens(provider: string, tokens: StoredOAuthTokens): Promise<void>;
|
|
1079
|
+
/** Compare-and-set save under the store's lock; the real token store has it. */
|
|
1080
|
+
saveTokensIf?(provider: string, tokens: StoredOAuthTokens, guard: (providers: Record<string, {
|
|
1081
|
+
tokens?: StoredOAuthTokens;
|
|
1082
|
+
}>) => boolean): Promise<boolean>;
|
|
1083
|
+
/** Present on the real token store; lets a refresh also reach sibling labels. */
|
|
1084
|
+
getProviderSnapshot?(): Promise<Record<string, {
|
|
1085
|
+
tokens?: StoredOAuthTokens;
|
|
1086
|
+
}>>;
|
|
1079
1087
|
};
|
|
1080
1088
|
/** Result contract for a Codex OAuth refresh operation. */
|
|
1081
1089
|
export type CodexTokenRefresher = (refreshToken: string) => Promise<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "13.13.
|
|
3
|
+
"version": "13.13.1",
|
|
4
4
|
"packageManager": "pnpm@10.34.9+sha512.f49b5a8ea0fdedb44bb3c0c1d6575092a53c2950d95b7ad15df11f17974877a2de3a01c07e934e9b28ce716e51c09a94962c7306d09be2e1e4b18a8c8762fd32",
|
|
5
5
|
"description": "The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002/call) for routing, tool selection and context budgeting. MCP-native (4 transports), voice TTS/STT/realtime, RAG, agents, memory, compaction, 9 observability exporters. OpenAI · Anthropic · Gemini · Bedrock · Azure · Ollama · TypeSafe Jev and more.",
|
|
6
6
|
"author": {
|