@frontmcp/plugin-remember 0.12.2 → 1.0.0-beta.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/esm/index.mjs +6 -6
- package/esm/package.json +3 -3
- package/index.js +6 -6
- package/package.json +3 -3
- package/tools/forget.tool.d.ts +3 -3
- package/tools/forget.tool.d.ts.map +1 -1
- package/tools/list-memories.tool.d.ts +3 -3
- package/tools/list-memories.tool.d.ts.map +1 -1
- package/tools/remember-this.tool.d.ts +3 -3
- package/tools/remember-this.tool.d.ts.map +1 -1
package/esm/index.mjs
CHANGED
|
@@ -1062,7 +1062,7 @@ var rememberEntrySchema = z2.object({
|
|
|
1062
1062
|
// plugins/plugin-remember/src/tools/remember-this.tool.ts
|
|
1063
1063
|
import { Tool, ToolContext } from "@frontmcp/sdk";
|
|
1064
1064
|
import { z as z3 } from "zod";
|
|
1065
|
-
var rememberThisInputSchema =
|
|
1065
|
+
var rememberThisInputSchema = {
|
|
1066
1066
|
key: z3.string().min(1).describe('What to call this memory (e.g., "user_preference", "last_action")'),
|
|
1067
1067
|
value: z3.unknown().describe("The value to remember (any JSON-serializable data)"),
|
|
1068
1068
|
scope: z3.enum(["session", "user", "tool", "global"]).optional().describe(
|
|
@@ -1070,7 +1070,7 @@ var rememberThisInputSchema = z3.object({
|
|
|
1070
1070
|
),
|
|
1071
1071
|
ttl: z3.number().positive().optional().describe("Forget after this many seconds"),
|
|
1072
1072
|
brand: z3.enum(["preference", "cache", "state", "conversation", "custom"]).optional().describe("Type hint for the stored value")
|
|
1073
|
-
}
|
|
1073
|
+
};
|
|
1074
1074
|
var rememberThisOutputSchema = z3.object({
|
|
1075
1075
|
success: z3.boolean(),
|
|
1076
1076
|
key: z3.string(),
|
|
@@ -1169,10 +1169,10 @@ RecallTool = __decorateClass([
|
|
|
1169
1169
|
// plugins/plugin-remember/src/tools/forget.tool.ts
|
|
1170
1170
|
import { Tool as Tool3, ToolContext as ToolContext3 } from "@frontmcp/sdk";
|
|
1171
1171
|
import { z as z5 } from "zod";
|
|
1172
|
-
var forgetInputSchema =
|
|
1172
|
+
var forgetInputSchema = {
|
|
1173
1173
|
key: z5.string().min(1).describe("What memory to forget"),
|
|
1174
1174
|
scope: z5.enum(["session", "user", "tool", "global"]).optional().describe("Which scope to forget from (default: session)")
|
|
1175
|
-
}
|
|
1175
|
+
};
|
|
1176
1176
|
var forgetOutputSchema = z5.object({
|
|
1177
1177
|
success: z5.boolean(),
|
|
1178
1178
|
key: z5.string(),
|
|
@@ -1213,11 +1213,11 @@ ForgetTool = __decorateClass([
|
|
|
1213
1213
|
// plugins/plugin-remember/src/tools/list-memories.tool.ts
|
|
1214
1214
|
import { Tool as Tool4, ToolContext as ToolContext4 } from "@frontmcp/sdk";
|
|
1215
1215
|
import { z as z6 } from "zod";
|
|
1216
|
-
var listMemoriesInputSchema =
|
|
1216
|
+
var listMemoriesInputSchema = {
|
|
1217
1217
|
scope: z6.enum(["session", "user", "tool", "global"]).optional().describe("Which scope to list from (default: session)"),
|
|
1218
1218
|
pattern: z6.string().optional().describe('Pattern to filter keys (e.g., "user_*")'),
|
|
1219
1219
|
limit: z6.number().positive().max(100).optional().describe("Maximum number of keys to return (default: 50)")
|
|
1220
|
-
}
|
|
1220
|
+
};
|
|
1221
1221
|
var listMemoriesOutputSchema = z6.object({
|
|
1222
1222
|
keys: z6.array(z6.string()),
|
|
1223
1223
|
scope: z6.string(),
|
package/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/plugin-remember",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "Remember plugin for FrontMCP - encrypted session memory with approval system for secure tool authorization",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"ioredis": "^5.8.0",
|
|
50
|
-
"@frontmcp/sdk": "0.
|
|
51
|
-
"@frontmcp/utils": "0.
|
|
50
|
+
"@frontmcp/sdk": "1.0.0-beta.1",
|
|
51
|
+
"@frontmcp/utils": "1.0.0-beta.1",
|
|
52
52
|
"zod": "^4.0.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
package/index.js
CHANGED
|
@@ -1089,7 +1089,7 @@ var rememberEntrySchema = import_zod2.z.object({
|
|
|
1089
1089
|
// plugins/plugin-remember/src/tools/remember-this.tool.ts
|
|
1090
1090
|
var import_sdk6 = require("@frontmcp/sdk");
|
|
1091
1091
|
var import_zod3 = require("zod");
|
|
1092
|
-
var rememberThisInputSchema =
|
|
1092
|
+
var rememberThisInputSchema = {
|
|
1093
1093
|
key: import_zod3.z.string().min(1).describe('What to call this memory (e.g., "user_preference", "last_action")'),
|
|
1094
1094
|
value: import_zod3.z.unknown().describe("The value to remember (any JSON-serializable data)"),
|
|
1095
1095
|
scope: import_zod3.z.enum(["session", "user", "tool", "global"]).optional().describe(
|
|
@@ -1097,7 +1097,7 @@ var rememberThisInputSchema = import_zod3.z.object({
|
|
|
1097
1097
|
),
|
|
1098
1098
|
ttl: import_zod3.z.number().positive().optional().describe("Forget after this many seconds"),
|
|
1099
1099
|
brand: import_zod3.z.enum(["preference", "cache", "state", "conversation", "custom"]).optional().describe("Type hint for the stored value")
|
|
1100
|
-
}
|
|
1100
|
+
};
|
|
1101
1101
|
var rememberThisOutputSchema = import_zod3.z.object({
|
|
1102
1102
|
success: import_zod3.z.boolean(),
|
|
1103
1103
|
key: import_zod3.z.string(),
|
|
@@ -1196,10 +1196,10 @@ RecallTool = __decorateClass([
|
|
|
1196
1196
|
// plugins/plugin-remember/src/tools/forget.tool.ts
|
|
1197
1197
|
var import_sdk8 = require("@frontmcp/sdk");
|
|
1198
1198
|
var import_zod5 = require("zod");
|
|
1199
|
-
var forgetInputSchema =
|
|
1199
|
+
var forgetInputSchema = {
|
|
1200
1200
|
key: import_zod5.z.string().min(1).describe("What memory to forget"),
|
|
1201
1201
|
scope: import_zod5.z.enum(["session", "user", "tool", "global"]).optional().describe("Which scope to forget from (default: session)")
|
|
1202
|
-
}
|
|
1202
|
+
};
|
|
1203
1203
|
var forgetOutputSchema = import_zod5.z.object({
|
|
1204
1204
|
success: import_zod5.z.boolean(),
|
|
1205
1205
|
key: import_zod5.z.string(),
|
|
@@ -1240,11 +1240,11 @@ ForgetTool = __decorateClass([
|
|
|
1240
1240
|
// plugins/plugin-remember/src/tools/list-memories.tool.ts
|
|
1241
1241
|
var import_sdk9 = require("@frontmcp/sdk");
|
|
1242
1242
|
var import_zod6 = require("zod");
|
|
1243
|
-
var listMemoriesInputSchema =
|
|
1243
|
+
var listMemoriesInputSchema = {
|
|
1244
1244
|
scope: import_zod6.z.enum(["session", "user", "tool", "global"]).optional().describe("Which scope to list from (default: session)"),
|
|
1245
1245
|
pattern: import_zod6.z.string().optional().describe('Pattern to filter keys (e.g., "user_*")'),
|
|
1246
1246
|
limit: import_zod6.z.number().positive().max(100).optional().describe("Maximum number of keys to return (default: 50)")
|
|
1247
|
-
}
|
|
1247
|
+
};
|
|
1248
1248
|
var listMemoriesOutputSchema = import_zod6.z.object({
|
|
1249
1249
|
keys: import_zod6.z.array(import_zod6.z.string()),
|
|
1250
1250
|
scope: import_zod6.z.string(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/plugin-remember",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "Remember plugin for FrontMCP - encrypted session memory with approval system for secure tool authorization",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"ioredis": "^5.8.0",
|
|
50
|
-
"@frontmcp/sdk": "0.
|
|
51
|
-
"@frontmcp/utils": "0.
|
|
50
|
+
"@frontmcp/sdk": "1.0.0-beta.1",
|
|
51
|
+
"@frontmcp/utils": "1.0.0-beta.1",
|
|
52
52
|
"zod": "^4.0.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
package/tools/forget.tool.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
/**
|
|
4
4
|
* Input schema for the forget tool.
|
|
5
5
|
*/
|
|
6
|
-
export declare const forgetInputSchema:
|
|
6
|
+
export declare const forgetInputSchema: {
|
|
7
7
|
key: z.ZodString;
|
|
8
8
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
9
9
|
session: "session";
|
|
@@ -11,7 +11,7 @@ export declare const forgetInputSchema: z.ZodObject<{
|
|
|
11
11
|
tool: "tool";
|
|
12
12
|
global: "global";
|
|
13
13
|
}>>;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
/**
|
|
16
16
|
* Output schema for the forget tool.
|
|
17
17
|
*/
|
|
@@ -21,7 +21,7 @@ export declare const forgetOutputSchema: z.ZodObject<{
|
|
|
21
21
|
scope: z.ZodString;
|
|
22
22
|
existed: z.ZodBoolean;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
|
-
export type ForgetInput = z.infer<typeof forgetInputSchema
|
|
24
|
+
export type ForgetInput = z.infer<z.ZodObject<typeof forgetInputSchema>>;
|
|
25
25
|
export type ForgetOutput = z.infer<typeof forgetOutputSchema>;
|
|
26
26
|
/**
|
|
27
27
|
* Tool to forget a previously remembered value.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forget.tool.d.ts","sourceRoot":"","sources":["../../src/tools/forget.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"forget.tool.d.ts","sourceRoot":"","sources":["../../src/tools/forget.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;CAM7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;AAEzE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;GAEG;AAYH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW;IAC3C,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;CAyBzD"}
|
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
/**
|
|
4
4
|
* Input schema for the list_memories tool.
|
|
5
5
|
*/
|
|
6
|
-
export declare const listMemoriesInputSchema:
|
|
6
|
+
export declare const listMemoriesInputSchema: {
|
|
7
7
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
8
8
|
session: "session";
|
|
9
9
|
user: "user";
|
|
@@ -12,7 +12,7 @@ export declare const listMemoriesInputSchema: z.ZodObject<{
|
|
|
12
12
|
}>>;
|
|
13
13
|
pattern: z.ZodOptional<z.ZodString>;
|
|
14
14
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
/**
|
|
17
17
|
* Output schema for the list_memories tool.
|
|
18
18
|
*/
|
|
@@ -22,7 +22,7 @@ export declare const listMemoriesOutputSchema: z.ZodObject<{
|
|
|
22
22
|
count: z.ZodNumber;
|
|
23
23
|
truncated: z.ZodBoolean;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
|
-
export type ListMemoriesInput = z.infer<typeof listMemoriesInputSchema
|
|
25
|
+
export type ListMemoriesInput = z.infer<z.ZodObject<typeof listMemoriesInputSchema>>;
|
|
26
26
|
export type ListMemoriesOutput = z.infer<typeof listMemoriesOutputSchema>;
|
|
27
27
|
/**
|
|
28
28
|
* Tool to list all remembered keys in a scope.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-memories.tool.d.ts","sourceRoot":"","sources":["../../src/tools/list-memories.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"list-memories.tool.d.ts","sourceRoot":"","sources":["../../src/tools/list-memories.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;CAOnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC;AAErF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;GAEG;AAYH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACjD,OAAO,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA8BrE"}
|
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
/**
|
|
4
4
|
* Input schema for the remember_this tool.
|
|
5
5
|
*/
|
|
6
|
-
export declare const rememberThisInputSchema:
|
|
6
|
+
export declare const rememberThisInputSchema: {
|
|
7
7
|
key: z.ZodString;
|
|
8
8
|
value: z.ZodUnknown;
|
|
9
9
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
@@ -20,7 +20,7 @@ export declare const rememberThisInputSchema: z.ZodObject<{
|
|
|
20
20
|
conversation: "conversation";
|
|
21
21
|
custom: "custom";
|
|
22
22
|
}>>;
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
24
|
/**
|
|
25
25
|
* Output schema for the remember_this tool.
|
|
26
26
|
*/
|
|
@@ -30,7 +30,7 @@ export declare const rememberThisOutputSchema: z.ZodObject<{
|
|
|
30
30
|
scope: z.ZodString;
|
|
31
31
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
|
-
export type RememberThisInput = z.infer<typeof rememberThisInputSchema
|
|
33
|
+
export type RememberThisInput = z.infer<z.ZodObject<typeof rememberThisInputSchema>>;
|
|
34
34
|
export type RememberThisOutput = z.infer<typeof rememberThisOutputSchema>;
|
|
35
35
|
/**
|
|
36
36
|
* Tool to store a value in memory.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remember-this.tool.d.ts","sourceRoot":"","sources":["../../src/tools/remember-this.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"remember-this.tool.d.ts","sourceRoot":"","sources":["../../src/tools/remember-this.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;CAcnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC;AAErF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;GAGG;AAYH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACjD,OAAO,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA2BrE"}
|