@supermemory/eve 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -9,10 +9,24 @@ gives Eve tools to search, remember, extract, and forget.
9
9
 
10
10
  ## Add memory to Eve
11
11
 
12
+ From an Eve project, add the provider from Eve's integration registry:
13
+
14
+ ```bash
15
+ eve add memory/supermemory
16
+ ```
17
+
18
+ Or install it yourself:
19
+
12
20
  ```bash
13
21
  npm install @supermemory/eve
14
22
  ```
15
23
 
24
+ The provider supports Eve 0.47.3 and newer 0.x releases. Set `SUPERMEMORY_API_KEY` from the
25
+ [Supermemory console](https://console.supermemory.ai).
26
+
27
+ Use Eve 0.71.3 or newer for development. Eve 0.66.1 has an upstream completed-turn capture
28
+ regression; Eve restored automatic capture in 0.69.0.
29
+
16
30
  Create a memory slot in the consuming Eve agent. `supermemory(...)` configures the provider;
17
31
  `defineMemory(...)` binds it to an Eve-managed scope.
18
32
 
@@ -26,12 +40,15 @@ export default defineMemory({
26
40
  namespace: "your-company-agent-v1",
27
41
  description: "Recall and manage durable context for the current user.",
28
42
  provider: supermemory({
29
- apiKey: process.env.SUPERMEMORY_API_KEY!,
43
+ apiKey: () => process.env.SUPERMEMORY_API_KEY!,
30
44
  }),
31
45
  scope: byPrincipal,
32
46
  });
33
47
  ```
34
48
 
49
+ Pass `apiKey` as a function so the key is read when the agent runs, not when `eve build` loads the
50
+ slot. A plain string also works, but then the key must be set in the build environment too.
51
+
35
52
  Pick a namespace for the agent and keep it stable. If it changes, Eve sees a different memory space.
36
53
  `description` is added to the tool descriptions the model sees, so keep it short and say what this
37
54
  memory is for.
@@ -120,7 +137,7 @@ export default defineMemory({
120
137
  namespace: "your-company-agent-v1",
121
138
  description: "Recall and manage durable context for the current user.",
122
139
  provider: supermemory({
123
- apiKey: process.env.SUPERMEMORY_API_KEY!,
140
+ apiKey: () => process.env.SUPERMEMORY_API_KEY!,
124
141
  containerTagPrefix: "eve_agent",
125
142
  autoSearch: {
126
143
  enabled: true,
@@ -163,6 +180,10 @@ Install the same provider. SuperRAG handles PDFs, URLs, images, audio, video, an
163
180
  can index a source, search it later, and return to the original document when it needs more detail.
164
181
  There is no separate RAG setup.
165
182
 
183
+ Eve 0.71.3 has an upstream serialization issue that prevents memory-provider tools from loading
184
+ on attached-file turns. Until Eve fixes it, use `extract` with text or URL sources. File extraction
185
+ accepts only Eve-staged paths under `/workspace/.eve/attachments/`.
186
+
166
187
  ## Development
167
188
 
168
189
  Requires Node.js 24 or newer.
@@ -174,3 +195,14 @@ npm run typecheck
174
195
  npm run build
175
196
  npm pack --dry-run
176
197
  ```
198
+
199
+ ### Publishing
200
+
201
+ Pushes to `main` run the release workflow. After checks and a packaged-import smoke test pass,
202
+ the workflow publishes the version in `package.json` if it is not already on npm. Bump the
203
+ package version and update `package-lock.json` to ship a new release; no Git tag is required.
204
+ Publishing uses npm trusted publishing with GitHub Actions OIDC; no `NPM_TOKEN` secret is needed.
205
+ In the npm package's trusted publisher settings, select GitHub Actions, set the organization to
206
+ `supermemoryai`, the repository to `eve-supermemory`, and the workflow filename to `release.yml`.
207
+ Leave the environment name empty and allow direct `npm publish`. The release job uses a
208
+ GitHub-hosted runner because npm trusted publishing does not support self-hosted runners.
@@ -12,11 +12,11 @@ function extractionMetadata(input, ctx) {
12
12
  }
13
13
  async function sandboxAttachment(inputPath, ctx) {
14
14
  const sandbox = await ctx.getSandbox();
15
- const attachmentsRoot = resolve(sandbox.resolvePath("/workspace/attachments"));
15
+ const attachmentsRoot = resolve(sandbox.resolvePath("/workspace/.eve/attachments"));
16
16
  const resolvedPath = resolve(sandbox.resolvePath(inputPath));
17
17
  const relativePath = relative(attachmentsRoot, resolvedPath);
18
18
  if (!relativePath || relativePath.startsWith("..") || isAbsolute(relativePath)) {
19
- throw new Error("Files must come from Eve's /workspace/attachments directory.");
19
+ throw new Error("Files must come from Eve's /workspace/.eve/attachments directory.");
20
20
  }
21
21
  const bytes = await sandbox.readBinaryFile({
22
22
  path: resolvedPath,
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@supermemory/eve",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Durable user context, retrieval, extraction, remembering, and forgetting for Eve agents.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/supermemoryai/eve-supermemory.git"
8
+ },
5
9
  "type": "module",
6
10
  "files": [
7
11
  "dist"
@@ -35,11 +39,11 @@
35
39
  "devDependencies": {
36
40
  "@biomejs/biome": "2.5.7",
37
41
  "@types/node": "24.x",
38
- "eve": "0.47.3",
42
+ "eve": "0.71.3",
39
43
  "typescript": "7.0.2"
40
44
  },
41
45
  "peerDependencies": {
42
- "eve": "^0.47.3"
46
+ "eve": ">=0.47.3 <1"
43
47
  },
44
48
  "publishConfig": {
45
49
  "access": "public"