@cerefox/memory 1.22.0 → 1.22.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.
Files changed (30) hide show
  1. package/dist/bin/cerefox.js +3993 -1656
  2. package/dist/frontend/assets/Courier-tKiTGlNQ.js +2 -0
  3. package/dist/frontend/assets/Courier-tKiTGlNQ.js.map +1 -0
  4. package/dist/frontend/assets/docx-CjhuGfqI.js +11 -0
  5. package/dist/frontend/assets/docx-CjhuGfqI.js.map +1 -0
  6. package/dist/frontend/assets/{index-Dhpoy6w3.js → index-BI4vv_74.js} +10 -10
  7. package/dist/frontend/assets/index-BI4vv_74.js.map +1 -0
  8. package/dist/frontend/assets/{markdown-YrYQtnOl.js → markdown-D6ZljOkv.js} +2 -2
  9. package/dist/frontend/assets/{markdown-YrYQtnOl.js.map → markdown-D6ZljOkv.js.map} +1 -1
  10. package/dist/frontend/assets/{pdf-Bpjaodjd.js → pdf-C3krYx-2.js} +4 -4
  11. package/dist/frontend/assets/{pdf-Bpjaodjd.js.map → pdf-C3krYx-2.js.map} +1 -1
  12. package/dist/frontend/assets/pdfmake-DHl2b3Ex.js +163 -0
  13. package/dist/frontend/assets/pdfmake-DHl2b3Ex.js.map +1 -0
  14. package/dist/frontend/assets/{rolldown-runtime-COiEfhsA.js → rolldown-runtime-XKyaHtl9.js} +1 -1
  15. package/dist/frontend/assets/{vfs_fonts-D9BViC6C.js → vfs_fonts-BjQxQix9.js} +2 -2
  16. package/dist/frontend/assets/{vfs_fonts-D9BViC6C.js.map → vfs_fonts-BjQxQix9.js.map} +1 -1
  17. package/dist/frontend/index.html +2 -2
  18. package/dist/server-assets/_shared/ef-meta/index.ts +2 -2
  19. package/docs/api/openapi.json +5 -1
  20. package/docs/guides/api.md +1 -1
  21. package/docs/guides/setup-lan.md +5 -0
  22. package/docs/guides/setup-local.md +11 -0
  23. package/package.json +5 -5
  24. package/dist/frontend/assets/Courier-BRJ-B_ND.js +0 -1370
  25. package/dist/frontend/assets/Courier-BRJ-B_ND.js.map +0 -1
  26. package/dist/frontend/assets/docx-Ch26gbLd.js +0 -29
  27. package/dist/frontend/assets/docx-Ch26gbLd.js.map +0 -1
  28. package/dist/frontend/assets/index-Dhpoy6w3.js.map +0 -1
  29. package/dist/frontend/assets/pdfmake-L7DGtDcB.js +0 -229
  30. package/dist/frontend/assets/pdfmake-L7DGtDcB.js.map +0 -1
@@ -15,8 +15,8 @@
15
15
  href="https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap"
16
16
  />
17
17
  <title>Cerefox</title>
18
- <script type="module" crossorigin src="/app/assets/index-Dhpoy6w3.js"></script>
19
- <link rel="modulepreload" crossorigin href="/app/assets/rolldown-runtime-COiEfhsA.js">
18
+ <script type="module" crossorigin src="/app/assets/index-BI4vv_74.js"></script>
19
+ <link rel="modulepreload" crossorigin href="/app/assets/rolldown-runtime-XKyaHtl9.js">
20
20
  <link rel="stylesheet" crossorigin href="/app/assets/index-CV1iy1p2.css">
21
21
  </head>
22
22
  <body>
@@ -18,7 +18,7 @@
18
18
  * doesn't touch `supabase/functions/` leaves it alone).
19
19
  */
20
20
 
21
- export const EF_VERSION = "1.22.0";
21
+ export const EF_VERSION = "1.22.2";
22
22
 
23
23
  /**
24
24
  * The Cerefox RELEASE version — what `cerefox --version` reports and what npm
@@ -36,7 +36,7 @@ export const EF_VERSION = "1.22.0";
36
36
  * is imported by the Deno Edge Functions, which cannot reach into the npm
37
37
  * package.
38
38
  */
39
- export const CEREFOX_VERSION = "1.22.0";
39
+ export const CEREFOX_VERSION = "1.22.2";
40
40
 
41
41
  /**
42
42
  * The most recent version whose EF-side SOURCE actually changed (#127).
@@ -5797,7 +5797,7 @@
5797
5797
  },
5798
5798
  "/api/v1/version": {
5799
5799
  "get": {
5800
- "summary": "Server version, environment label, and the newest release on npm as the server last checked it (`latest`, plus `update_command` when it is newer).",
5800
+ "summary": "Server version, environment label, and the newest release on npm as the server last checked it (`latest`; `update_available` when it is newer, with `update_command` unless the server runs in a container, where it cannot tell how it was installed).",
5801
5801
  "operationId": "get_version",
5802
5802
  "responses": {
5803
5803
  "200": {
@@ -5834,6 +5834,9 @@
5834
5834
  "null"
5835
5835
  ]
5836
5836
  },
5837
+ "update_available": {
5838
+ "type": "boolean"
5839
+ },
5837
5840
  "update_command": {
5838
5841
  "type": [
5839
5842
  "string",
@@ -5847,6 +5850,7 @@
5847
5850
  "build_date",
5848
5851
  "env_label",
5849
5852
  "latest",
5853
+ "update_available",
5850
5854
  "update_command"
5851
5855
  ],
5852
5856
  "additionalProperties": false
@@ -179,7 +179,7 @@ default; Cerefox Local picks its own port and `cerefox-local status` prints it).
179
179
 
180
180
  | Method + path | Purpose |
181
181
  |---|---|
182
- | `GET /version` | Server version, environment label, and the newest release on npm as the server last checked it (`latest`, plus `update_command` when it is newer). |
182
+ | `GET /version` | Server version, environment label, and the newest release on npm as the server last checked it (`latest`; `update_available` when it is newer, with `update_command` unless the server runs in a container, where it cannot tell how it was installed). |
183
183
  | `GET /schema-version` | Deployed schema version. |
184
184
  | `GET /openapi.json` | This API's OpenAPI 3.1 description, served by the version you are talking to. Every `/api/v1` response points at it with `Link: </api/v1/openapi.json>; rel="service-desc"` (RFC 8631). |
185
185
  | `GET /search?q=…` | Hybrid search (FTS + semantic). `&review_status=approved\|pending_review` filters server-side; `400` while the review workflow is off. The response's `embedder` (`openai` or `local`) says which scale the scores are on. |
@@ -218,6 +218,11 @@ case:
218
218
  machine, which `cerefox backup restore` can load into a new Cerefox, on the
219
219
  NAS or elsewhere.
220
220
 
221
+ A backup made on the NAS itself (`cerefox backup create` in the container's
222
+ terminal) is saved in the data folder, under `.cerefox-backups`, so it
223
+ survives a rebuild and the layers above include it. Before v1.22.1 it was
224
+ saved inside the container and lost on the next build (#359).
225
+
221
226
  ## B. The web container, with your Supabase backend
222
227
 
223
228
  You need a working Supabase-backed Cerefox first (see
@@ -163,8 +163,18 @@ cerefox-local upgrade v1.2.3 # pin an exact version (also how you downgrade)
163
163
  cerefox-local upgrade --latest # follow the moving :latest tag from now on
164
164
  cerefox-local uninstall # remove the container, KEEP the data volume
165
165
  cerefox-local uninstall --purge # remove the container AND delete the data volume (asks you to confirm; --yes in scripts)
166
+ cerefox-local backup create # JSON snapshot: kept in the data volume, copied to ~/.cerefox/local/backups
167
+ cerefox-local backup restore ~/.cerefox/local/backups/cerefox-<stamp>.json
166
168
  ```
167
169
 
170
+ **Backups.** `backup create` writes the snapshot into the data volume, so it
171
+ survives `upgrade` and `init`, and copies it to `~/.cerefox/local/backups` on
172
+ your machine, so it also survives losing the volume (`uninstall --purge`).
173
+ `backup restore` takes a file on your machine and copies it into the container
174
+ for you. Before v1.22.1 the snapshot stayed inside the container and the next
175
+ `upgrade` or `init` deleted it (#359); the first upgrade to v1.22.1 still runs
176
+ the old script, so make that one's backup from the new version, right after.
177
+
168
178
  > **Coming from an image older than v1.1.0?** Run `cerefox-local upgrade v1.1.1`
169
179
  > (an explicit tag) once. A bare `upgrade` on those versions re-pulled the pinned
170
180
  > tag and reported success without changing anything (#153), and it cannot fix
@@ -186,6 +196,7 @@ sync.
186
196
  | Container | name `cerefox-local` (override: `CEREFOX_LOCAL_CONTAINER`) |
187
197
  | Your data | Docker volume `cerefox_local_pgdata` (survives `stop`/`upgrade`) |
188
198
  | Host config | `~/.cerefox/local/.env` (OPENAI key + port only — **no token**) |
199
+ | Backups | `~/.cerefox/local/backups` (override: `CEREFOX_LOCAL_BACKUP_DIR`), plus a copy in the volume's `.cerefox-backups` folder |
189
200
  | Host command | `~/.cerefox/local/cerefox-local`, symlinked to `~/.local/bin/cerefox-local` |
190
201
 
191
202
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerefox/memory",
3
- "version": "1.22.0",
3
+ "version": "1.22.2",
4
4
  "description": "Cerefox \u2014 user-owned shared memory for AI agents. CLI + stdio MCP server + web UI + ingestion for a knowledge base on your own Supabase project (or fully self-hosted with Cerefox Local).",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/fstamatelopoulos/cerefox",
@@ -40,21 +40,21 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@hono/node-server": "^2.1.5",
43
- "@modelcontextprotocol/sdk": "^1.32.1",
43
+ "@modelcontextprotocol/sdk": "^1.32.2",
44
44
  "@supabase/supabase-js": "^2.118.0",
45
45
  "cli-progress": "^3.12.0",
46
46
  "commander": "^15.0.0",
47
- "hono": "^4.13.13",
47
+ "hono": "^4.13.14",
48
48
  "mammoth": "^1.13.0",
49
49
  "ora": "^9.4.0",
50
50
  "picocolors": "^1.0.0",
51
- "postgres": "^3.4.9",
51
+ "postgres": "^4.0.0",
52
52
  "prompts": "^2.4.2",
53
53
  "smol-toml": "^1.9.1",
54
54
  "zod": "^4.6.7"
55
55
  },
56
56
  "optionalDependencies": {
57
- "@huggingface/transformers": "^4.3.1",
57
+ "@huggingface/transformers": "^4.3.2",
58
58
  "onnxruntime-node": "^1.21.0"
59
59
  },
60
60
  "devDependencies": {