agentfootprint 9.80.0 → 9.82.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/AGENTS.md +20 -0
- package/CHANGELOG.md +167 -0
- package/CLAUDE.md +3 -1
- package/dist/core/runbook/verdicts.js +30 -6
- package/dist/core/runbook/verdicts.js.map +1 -1
- package/dist/esm/core/runbook/types.d.ts +8 -0
- package/dist/esm/core/runbook/verdicts.d.ts +18 -5
- package/dist/esm/core/runbook/verdicts.js +30 -6
- package/dist/esm/core/runbook/verdicts.js.map +1 -1
- package/dist/esm/lib/mcp/connectionRefusals.d.ts +30 -0
- package/dist/esm/lib/mcp/connectionRefusals.js +110 -0
- package/dist/esm/lib/mcp/connectionRefusals.js.map +1 -0
- package/dist/esm/lib/mcp/index.d.ts +3 -2
- package/dist/esm/lib/mcp/index.js +4 -0
- package/dist/esm/lib/mcp/index.js.map +1 -1
- package/dist/esm/lib/mcp/mcpClient.d.ts +18 -5
- package/dist/esm/lib/mcp/mcpClient.js +102 -38
- package/dist/esm/lib/mcp/mcpClient.js.map +1 -1
- package/dist/esm/lib/mcp/mcpServe.js +45 -13
- package/dist/esm/lib/mcp/mcpServe.js.map +1 -1
- package/dist/esm/lib/mcp/sdkLoadFailure.d.ts +60 -0
- package/dist/esm/lib/mcp/sdkLoadFailure.js +74 -0
- package/dist/esm/lib/mcp/sdkLoadFailure.js.map +1 -0
- package/dist/esm/lib/mcp/throttleRetry.d.ts +20 -1
- package/dist/esm/lib/mcp/throttleRetry.js +20 -1
- package/dist/esm/lib/mcp/throttleRetry.js.map +1 -1
- package/dist/esm/lib/mcp/transportUrl.d.ts +30 -0
- package/dist/esm/lib/mcp/transportUrl.js +71 -0
- package/dist/esm/lib/mcp/transportUrl.js.map +1 -0
- package/dist/esm/lib/mcp/types.d.ts +143 -13
- package/dist/esm/tool-providers/index.d.ts +2 -2
- package/dist/esm/tool-providers/index.js +6 -1
- package/dist/esm/tool-providers/index.js.map +1 -1
- package/dist/lib/mcp/connectionRefusals.js +114 -0
- package/dist/lib/mcp/connectionRefusals.js.map +1 -0
- package/dist/lib/mcp/index.js +6 -1
- package/dist/lib/mcp/index.js.map +1 -1
- package/dist/lib/mcp/mcpClient.js +102 -38
- package/dist/lib/mcp/mcpClient.js.map +1 -1
- package/dist/lib/mcp/mcpServe.js +45 -13
- package/dist/lib/mcp/mcpServe.js.map +1 -1
- package/dist/lib/mcp/sdkLoadFailure.js +78 -0
- package/dist/lib/mcp/sdkLoadFailure.js.map +1 -0
- package/dist/lib/mcp/throttleRetry.js +20 -1
- package/dist/lib/mcp/throttleRetry.js.map +1 -1
- package/dist/lib/mcp/transportUrl.js +75 -0
- package/dist/lib/mcp/transportUrl.js.map +1 -0
- package/dist/tool-providers/index.js +6 -1
- package/dist/tool-providers/index.js.map +1 -1
- package/dist/types/core/runbook/types.d.ts +8 -0
- package/dist/types/core/runbook/types.d.ts.map +1 -1
- package/dist/types/core/runbook/verdicts.d.ts +18 -5
- package/dist/types/core/runbook/verdicts.d.ts.map +1 -1
- package/dist/types/lib/mcp/connectionRefusals.d.ts +31 -0
- package/dist/types/lib/mcp/connectionRefusals.d.ts.map +1 -0
- package/dist/types/lib/mcp/index.d.ts +3 -2
- package/dist/types/lib/mcp/index.d.ts.map +1 -1
- package/dist/types/lib/mcp/mcpClient.d.ts +18 -5
- package/dist/types/lib/mcp/mcpClient.d.ts.map +1 -1
- package/dist/types/lib/mcp/mcpServe.d.ts.map +1 -1
- package/dist/types/lib/mcp/sdkLoadFailure.d.ts +61 -0
- package/dist/types/lib/mcp/sdkLoadFailure.d.ts.map +1 -0
- package/dist/types/lib/mcp/throttleRetry.d.ts +20 -1
- package/dist/types/lib/mcp/throttleRetry.d.ts.map +1 -1
- package/dist/types/lib/mcp/transportUrl.d.ts +31 -0
- package/dist/types/lib/mcp/transportUrl.d.ts.map +1 -0
- package/dist/types/lib/mcp/types.d.ts +143 -13
- package/dist/types/lib/mcp/types.d.ts.map +1 -1
- package/dist/types/tool-providers/index.d.ts +2 -2
- package/dist/types/tool-providers/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -199,6 +199,25 @@ export interface McpClientOptions {
|
|
|
199
199
|
* Ignored for `stdio`, which has no HTTP status to read.
|
|
200
200
|
*/
|
|
201
201
|
readonly retryOnThrottle?: RetryOnThrottle;
|
|
202
|
+
/**
|
|
203
|
+
* Pre-resolved SDK modules. Give these and the library never touches its Node
|
|
204
|
+
* `require` loader — which is the whole reason a browser bundle can now speak
|
|
205
|
+
* MCP over `http`.
|
|
206
|
+
*
|
|
207
|
+
* Everything else keeps working, because the library still builds the
|
|
208
|
+
* transport: gateway vending, `retryOnThrottle`, `headers`, your own `fetch`,
|
|
209
|
+
* `_meta` ingestion. Omit it and the loader runs exactly as it always has.
|
|
210
|
+
*
|
|
211
|
+
* Ignored for `transport: 'stdio'`, which spawns a subprocess and therefore
|
|
212
|
+
* cannot run in a browser at all — that branch keeps loading
|
|
213
|
+
* `client/stdio.js` through the Node loader, which is also what keeps the
|
|
214
|
+
* SDK's only Node-bound client module off a browser's module graph.
|
|
215
|
+
*
|
|
216
|
+
* @see McpSdk for the two static imports that produce it.
|
|
217
|
+
*/
|
|
218
|
+
readonly sdk?: McpSdk;
|
|
219
|
+
/** @see McpConnectionOptions — never set on this arm. */
|
|
220
|
+
readonly connection?: undefined;
|
|
202
221
|
/**
|
|
203
222
|
* @internal Pre-built SDK client for tests. Skips SDK import +
|
|
204
223
|
* transport construction. Same convention as `AnthropicProvider._client`.
|
|
@@ -210,6 +229,45 @@ export interface McpClientOptions {
|
|
|
210
229
|
*/
|
|
211
230
|
readonly _client?: McpSdkClient;
|
|
212
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* The other arm of `mcpClient`: you connected the client, the library adapts it.
|
|
234
|
+
*
|
|
235
|
+
* Reach for this when the library must not construct anything at all — a
|
|
236
|
+
* browser bundle behind a strict CSP, where you need the SDK's own
|
|
237
|
+
* `jsonSchemaValidator` to keep ajv's code generation off the page; or any
|
|
238
|
+
* transport this library has never heard of.
|
|
239
|
+
*
|
|
240
|
+
* The cost is stated rather than hidden: the library builds no transport here,
|
|
241
|
+
* so every option that is consumed INSIDE a transport is refused rather than
|
|
242
|
+
* accepted and ignored. `retryOnThrottle` becomes `retryingFetch` around
|
|
243
|
+
* your own `fetch`; `clientInfo` and `headers` are yours to set when you
|
|
244
|
+
* construct the client. `signal` IS honoured — it rides the SDK's trailing
|
|
245
|
+
* request-options argument, not the transport.
|
|
246
|
+
*/
|
|
247
|
+
export interface McpConnectionOptions {
|
|
248
|
+
/**
|
|
249
|
+
* Logical name for observability + tool-call routing, exactly as on
|
|
250
|
+
* {@link McpClientOptions}. Defaults to `'mcp'`.
|
|
251
|
+
*/
|
|
252
|
+
readonly name?: string;
|
|
253
|
+
/**
|
|
254
|
+
* A connection you already opened. The library never calls `connect()` on it;
|
|
255
|
+
* `close()` on the returned client closes it exactly once.
|
|
256
|
+
*/
|
|
257
|
+
readonly connection: McpConnection;
|
|
258
|
+
/** Abort the list / call paths. Rides the SDK's request options. */
|
|
259
|
+
readonly signal?: AbortSignal;
|
|
260
|
+
/** @see McpClientOptions — never set on this arm. */
|
|
261
|
+
readonly transport?: undefined;
|
|
262
|
+
/** @see McpClientOptions — never set on this arm. */
|
|
263
|
+
readonly sdk?: undefined;
|
|
264
|
+
/** @see McpClientOptions — never set on this arm. */
|
|
265
|
+
readonly clientInfo?: undefined;
|
|
266
|
+
/** @see McpClientOptions — never set on this arm. */
|
|
267
|
+
readonly retryOnThrottle?: undefined;
|
|
268
|
+
/** @internal @see McpClientOptions — never set on this arm. */
|
|
269
|
+
readonly _client?: undefined;
|
|
270
|
+
}
|
|
213
271
|
/**
|
|
214
272
|
* What `mcpClient(opts)` returns. Connect once; call `.tools()` to
|
|
215
273
|
* snapshot the tool list, `.refresh()` to re-list after the server's
|
|
@@ -235,23 +293,30 @@ export interface McpClient {
|
|
|
235
293
|
close(): Promise<void>;
|
|
236
294
|
}
|
|
237
295
|
/**
|
|
238
|
-
*
|
|
239
|
-
* we touch. Defined locally so we can:
|
|
240
|
-
* 1. Inject a mock for tests (`McpClientOptions._client`)
|
|
241
|
-
* 2. Avoid a hard import on `@modelcontextprotocol/sdk` (which is
|
|
242
|
-
* a lazy peer-dep)
|
|
296
|
+
* A live MCP connection you opened and connected yourself.
|
|
243
297
|
*
|
|
244
|
-
*
|
|
298
|
+
* This is the whole contract this library needs from an MCP client: three
|
|
299
|
+
* methods over JSON-RPC. Nothing in it names a vendor, so an SDK `Client`, a
|
|
300
|
+
* hand-written fake, or a future fetch-only transport all satisfy it.
|
|
301
|
+
*
|
|
302
|
+
* Pass one as `mcpClient({ connection })` when the library must not load the
|
|
303
|
+
* SDK itself — a browser bundle, where the Node `require` loader does not
|
|
304
|
+
* exist. You own construction, so you also own the transport's `fetch`, its
|
|
305
|
+
* headers, its auth, and (SDK-specific) its `jsonSchemaValidator`, which is the
|
|
306
|
+
* one way to keep ajv's `new Function` off a page with a strict CSP.
|
|
307
|
+
*
|
|
308
|
+
* What you give up by owning it: this library builds no transport on that arm,
|
|
309
|
+
* so `retryOnThrottle` has nothing to wrap. Wrap your own fetch with
|
|
310
|
+
* `retryingFetch` and the 429 handling comes back.
|
|
245
311
|
*
|
|
246
312
|
* Argument POSITION matters here and is easy to get wrong: the SDK keeps
|
|
247
|
-
* per-request options (`signal`, `timeout`) in a SEPARATE trailing
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
313
|
+
* per-request options (`signal`, `timeout`) in a SEPARATE trailing argument,
|
|
314
|
+
* never inside the JSON-RPC params. A `signal` smuggled into the params object
|
|
315
|
+
* is serialized onto the wire as `{}` and silently fails to cancel anything, so
|
|
316
|
+
* these signatures mirror the SDK's own shape rather than a flattened
|
|
317
|
+
* convenience version of it.
|
|
252
318
|
*/
|
|
253
|
-
export interface
|
|
254
|
-
connect(transport: unknown, options?: McpRequestOptions): Promise<void>;
|
|
319
|
+
export interface McpConnection {
|
|
255
320
|
listTools(params?: undefined, options?: McpRequestOptions): Promise<{
|
|
256
321
|
readonly tools: ReadonlyArray<McpListedTool>;
|
|
257
322
|
}>;
|
|
@@ -263,6 +328,71 @@ export interface McpSdkClient {
|
|
|
263
328
|
resultSchema?: undefined, options?: McpRequestOptions): Promise<McpCallToolResult>;
|
|
264
329
|
close(): Promise<void>;
|
|
265
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* Minimal structural type capturing the parts of the MCP SDK client
|
|
333
|
+
* we touch. Defined locally so we can:
|
|
334
|
+
* 1. Inject a mock for tests (`McpClientOptions._client`)
|
|
335
|
+
* 2. Avoid a hard import on `@modelcontextprotocol/sdk` (which is
|
|
336
|
+
* a lazy peer-dep)
|
|
337
|
+
*
|
|
338
|
+
* The real SDK exports a richer surface; we narrow to what's needed.
|
|
339
|
+
*
|
|
340
|
+
* Member set unchanged since it was introduced: {@link McpConnection} plus the
|
|
341
|
+
* one method the library calls when it opens the connection ITSELF. The split
|
|
342
|
+
* is what lets a caller hand over a client that is already connected without
|
|
343
|
+
* also promising a `connect` this library must never call on it.
|
|
344
|
+
*/
|
|
345
|
+
export interface McpSdkClient extends McpConnection {
|
|
346
|
+
connect(transport: unknown, options?: McpRequestOptions): Promise<void>;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* The two `@modelcontextprotocol/sdk` module exports the Streamable HTTP path
|
|
350
|
+
* needs, typed STRUCTURALLY so this declaration never references the optional
|
|
351
|
+
* peer — a consumer without the SDK installed still typechecks.
|
|
352
|
+
*
|
|
353
|
+
* Hand these to `mcpClient({ sdk })` and the library never touches its Node
|
|
354
|
+
* `require` loader, which is what lets a browser bundle speak MCP over `http`.
|
|
355
|
+
* Everything else keeps working, because the library still builds the
|
|
356
|
+
* transport: gateway vending, `retryOnThrottle`, `headers`, your own `fetch`,
|
|
357
|
+
* `_meta` ingestion.
|
|
358
|
+
*
|
|
359
|
+
* Load them yourself with two static imports. The subpaths matter: the SDK's
|
|
360
|
+
* root export `"."` does not resolve (it declares no `dist/esm/index.js`), and
|
|
361
|
+
* `client/stdio.js` is the one client module that imports `node:process` and
|
|
362
|
+
* `node:stream` — importing it is what would drag Node into a browser graph.
|
|
363
|
+
*
|
|
364
|
+
* ```ts
|
|
365
|
+
* import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
366
|
+
* import { StreamableHTTPClientTransport }
|
|
367
|
+
* from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
368
|
+
*
|
|
369
|
+
* const client = await mcpClient({
|
|
370
|
+
* name: 'sidecar',
|
|
371
|
+
* sdk: { Client, StreamableHTTPClientTransport },
|
|
372
|
+
* transport: { transport: 'http', url: '/py/mcp' },
|
|
373
|
+
* });
|
|
374
|
+
* ```
|
|
375
|
+
*/
|
|
376
|
+
export interface McpSdk {
|
|
377
|
+
readonly Client: new (info: {
|
|
378
|
+
name: string;
|
|
379
|
+
version: string;
|
|
380
|
+
}, options: {
|
|
381
|
+
capabilities: Record<string, unknown>;
|
|
382
|
+
}) => McpSdkClient;
|
|
383
|
+
readonly StreamableHTTPClientTransport: new (url: URL, options?: {
|
|
384
|
+
requestInit?: {
|
|
385
|
+
headers: Record<string, string>;
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* The SDK's hook for a custom fetch — how per-request vending AND
|
|
389
|
+
* caller-supplied signing both get in. Typed exactly as the SDK types it,
|
|
390
|
+
* so a function this shim accepts is a function the real transport
|
|
391
|
+
* accepts.
|
|
392
|
+
*/
|
|
393
|
+
fetch?: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
394
|
+
}) => unknown;
|
|
395
|
+
}
|
|
266
396
|
/**
|
|
267
397
|
* One entry of a `tools/list` answer, narrowed to what this client reads.
|
|
268
398
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/mcp/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;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AO,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAChB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;KAC9B,CAAC;CACH"}
|
|
@@ -51,8 +51,8 @@ export { staticTools } from './staticTools.js';
|
|
|
51
51
|
export { gatedTools } from './gatedTools.js';
|
|
52
52
|
export { skillScopedTools, skillScopedToolsTarget, SKILL_SCOPED_TOOLS_ID_PREFIX, } from './skillScopedTools.js';
|
|
53
53
|
export type { ToolProvider, ToolDispatchContext, ToolGatePredicate } from './types.js';
|
|
54
|
-
export { mcpClient, mcpServe, mockMcpClient, gatewayTransport, GatewayAuthorizationRequiredError, MCP_TOOL_EXTRAS_KEY, } from '../lib/mcp/index.js';
|
|
54
|
+
export { mcpClient, mcpServe, mockMcpClient, gatewayTransport, GatewayAuthorizationRequiredError, MCP_TOOL_EXTRAS_KEY, retryingFetch, } from '../lib/mcp/index.js';
|
|
55
55
|
export { agentCoreGatewayTransport, agentCoreGatewayUrl, gatewaySearchTool, hasGatewaySearch, AGENTCORE_GATEWAY_SEARCH_TOOL, AGENTCORE_POLICY_SESSION_HEADER, AGENTCORE_SIGV4_SERVICE, } from '../adapters/mcp/agentcore.js';
|
|
56
56
|
export type { AgentCoreGatewayTransportOptions, AgentCoreGatewayUrlOptions, } from '../adapters/mcp/agentcore.js';
|
|
57
|
-
export type { GatewayTransportOptions, McpCallToolResult, McpClient, McpClientOptions, McpSdkClient, McpTransport, McpStdioTransport, McpHttpTransport, McpGatewayTransport, MockMcpClientOptions, MockMcpTool, McpServeOptions, McpServeHandle, McpServeTransport, McpStdioServeTransport, McpHttpServeTransport, McpSdkServer, McpToolExtras, } from '../lib/mcp/index.js';
|
|
57
|
+
export type { GatewayTransportOptions, McpCallToolResult, McpClient, McpClientOptions, McpConnection, McpConnectionOptions, McpSdk, McpSdkClient, ThrottleFetch, McpTransport, McpStdioTransport, McpHttpTransport, McpGatewayTransport, MockMcpClientOptions, MockMcpTool, McpServeOptions, McpServeHandle, McpServeTransport, McpStdioServeTransport, McpHttpServeTransport, McpSdkServer, McpToolExtras, } from '../lib/mcp/index.js';
|
|
58
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tool-providers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAGhB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAKvF,OAAO,EACL,SAAS,EACT,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,iCAAiC,EAIjC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tool-providers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAGhB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAKvF,OAAO,EACL,SAAS,EACT,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,iCAAiC,EAIjC,mBAAmB,EAKnB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,gCAAgC,EAChC,0BAA0B,GAC3B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAIhB,aAAa,EACb,oBAAoB,EACpB,MAAM,EACN,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,aAAa,GACd,MAAM,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentfootprint",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.82.0",
|
|
4
4
|
"description": "The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
"@modelcontextprotocol/sdk": "*",
|
|
327
327
|
"@opentelemetry/api": "*",
|
|
328
328
|
"@yarflam/potion-base-8m": "*",
|
|
329
|
-
"footprintjs": "^9.
|
|
329
|
+
"footprintjs": "^9.16.1",
|
|
330
330
|
"google-auth-library": "*",
|
|
331
331
|
"ioredis": "*",
|
|
332
332
|
"jose": "*",
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
"esbuild": "^0.28.0",
|
|
424
424
|
"eslint": "^8.44.0",
|
|
425
425
|
"eslint-config-prettier": "^6.15.0",
|
|
426
|
-
"footprintjs": "^9.
|
|
426
|
+
"footprintjs": "^9.16.1",
|
|
427
427
|
"google-auth-library": "^11.0.1",
|
|
428
428
|
"jose": "^6.2.7",
|
|
429
429
|
"openai": "^7.4.0",
|