@frontmcp/plugin-cache 1.8.1 → 1.8.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/cache.plugin.d.ts.map +1 -1
- package/esm/index.mjs +2 -3
- package/esm/package.json +3 -3
- package/index.js +2 -2
- package/package.json +3 -3
package/cache.plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.plugin.d.ts","sourceRoot":"","sources":["../src/cache.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"cache.plugin.d.ts","sourceRoot":"","sources":["../src/cache.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAOb,KAAK,SAAS,EAEd,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,KAAK,kBAAkB,EAAsC,MAAM,eAAe,CAAC;AA2C5F,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa,CAAC,kBAAkB,CAAC;IACxE,OAAgB,gBAAgB,GAAI,SAAS,kBAAkB,oBAqD7D;IAEF,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAEvC;IACF,OAAO,EAAE,kBAAkB,CAAC;gBAEhB,OAAO,GAAE,kBAA+C;IAQpE;;OAEG;IACH,OAAO,CAAC,eAAe;IAYvB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAsBzB;;OAEG;IACH,OAAO,CAAC,MAAM;IAQR,aAAa,CAAC,OAAO,EAAE,SAAS,CAAC,iBAAiB,CAAC;IA0EnD,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,iBAAiB,CAAC;IAyB1D;;;;;;;;;OASG;IACH,OAAO,CAAC,qBAAqB;IAyB7B;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;IAQrB;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;CAGvC"}
|
package/esm/index.mjs
CHANGED
|
@@ -292,7 +292,6 @@ import {
|
|
|
292
292
|
getGlobalStoreConfig,
|
|
293
293
|
isVercelKvProvider,
|
|
294
294
|
Plugin,
|
|
295
|
-
STATELESS_SESSION_ID,
|
|
296
295
|
ToolHook
|
|
297
296
|
} from "@frontmcp/sdk";
|
|
298
297
|
|
|
@@ -4023,8 +4022,8 @@ var CachePlugin = class extends DynamicPlugin {
|
|
|
4023
4022
|
const subject = authInfo?.extra?.["sub"] ?? authInfo?.extra?.["userId"];
|
|
4024
4023
|
if (typeof subject === "string" && subject) return `user:${subject}`;
|
|
4025
4024
|
if (authInfo?.clientId) return `client:${authInfo.clientId}`;
|
|
4026
|
-
const sessionId = requestContext?.
|
|
4027
|
-
if (sessionId
|
|
4025
|
+
const sessionId = requestContext?.verifiedSessionId;
|
|
4026
|
+
if (sessionId) return `session:${sessionId}`;
|
|
4028
4027
|
return `anonymous:${randomUUID()}`;
|
|
4029
4028
|
}
|
|
4030
4029
|
/**
|
package/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/plugin-cache",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "Cache plugin for FrontMCP - Redis, Vercel KV, and in-memory caching with automatic tool result caching",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@frontmcp/sdk": "1.8.
|
|
52
|
-
"@frontmcp/utils": "1.8.
|
|
51
|
+
"@frontmcp/sdk": "1.8.2",
|
|
52
|
+
"@frontmcp/utils": "1.8.2",
|
|
53
53
|
"ioredis": "^5.8.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
package/index.js
CHANGED
|
@@ -4023,8 +4023,8 @@ var CachePlugin = class extends import_sdk4.DynamicPlugin {
|
|
|
4023
4023
|
const subject = authInfo?.extra?.["sub"] ?? authInfo?.extra?.["userId"];
|
|
4024
4024
|
if (typeof subject === "string" && subject) return `user:${subject}`;
|
|
4025
4025
|
if (authInfo?.clientId) return `client:${authInfo.clientId}`;
|
|
4026
|
-
const sessionId = requestContext?.
|
|
4027
|
-
if (sessionId
|
|
4026
|
+
const sessionId = requestContext?.verifiedSessionId;
|
|
4027
|
+
if (sessionId) return `session:${sessionId}`;
|
|
4028
4028
|
return `anonymous:${randomUUID()}`;
|
|
4029
4029
|
}
|
|
4030
4030
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/plugin-cache",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "Cache plugin for FrontMCP - Redis, Vercel KV, and in-memory caching with automatic tool result caching",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@frontmcp/sdk": "1.8.
|
|
52
|
-
"@frontmcp/utils": "1.8.
|
|
51
|
+
"@frontmcp/sdk": "1.8.2",
|
|
52
|
+
"@frontmcp/utils": "1.8.2",
|
|
53
53
|
"ioredis": "^5.8.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|