@cerefox/memory 0.7.1 → 0.8.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/README.md +62 -25
- package/dist/bin/cerefox.js +1163 -344
- package/dist/frontend/assets/{index-HNlMcvli.js → index-CAp2_lFX.js} +2 -2
- package/dist/frontend/assets/index-CAp2_lFX.js.map +1 -0
- package/dist/frontend/index.html +1 -1
- package/dist/server-assets/_shared/ef-meta/index.ts +97 -0
- package/dist/server-assets/_shared/embeddings/index.ts +175 -0
- package/dist/server-assets/_shared/mcp-tools/_chunker.ts +187 -0
- package/dist/server-assets/_shared/mcp-tools/_projects.ts +121 -0
- package/dist/server-assets/_shared/mcp-tools/_utils.ts +73 -0
- package/dist/server-assets/_shared/mcp-tools/audit-log.ts +95 -0
- package/dist/server-assets/_shared/mcp-tools/get-document.ts +73 -0
- package/dist/server-assets/_shared/mcp-tools/get-help-content.ts +26 -0
- package/dist/server-assets/_shared/mcp-tools/get-help.ts +90 -0
- package/dist/server-assets/_shared/mcp-tools/index.ts +67 -0
- package/dist/server-assets/_shared/mcp-tools/ingest.ts +315 -0
- package/dist/server-assets/_shared/mcp-tools/list-metadata-keys.ts +55 -0
- package/dist/server-assets/_shared/mcp-tools/list-projects.ts +59 -0
- package/dist/server-assets/_shared/mcp-tools/list-versions.ts +72 -0
- package/dist/server-assets/_shared/mcp-tools/metadata-search.ts +154 -0
- package/dist/server-assets/_shared/mcp-tools/search.ts +193 -0
- package/dist/server-assets/_shared/mcp-tools/set-document-projects.ts +163 -0
- package/dist/server-assets/_shared/mcp-tools/types.ts +92 -0
- package/dist/server-assets/db/migrations/0003_add_document_versions.sql +91 -0
- package/dist/server-assets/db/migrations/0004_add_audit_log_review_status_archived.sql +71 -0
- package/dist/server-assets/db/migrations/0005_metadata_search.sql +628 -0
- package/dist/server-assets/db/migrations/0006_usage_log.sql +255 -0
- package/dist/server-assets/db/migrations/0007_usage_log_requestor.sql +178 -0
- package/dist/server-assets/db/migrations/0008_soft_delete.sql +130 -0
- package/dist/server-assets/db/migrations/0009_audit_log_restore_operation.sql +20 -0
- package/dist/server-assets/db/migrations/0010_requestor_enforcement_config.sql +12 -0
- package/dist/server-assets/db/migrations/0011_title_boosting.sql +48 -0
- package/dist/server-assets/db/rpcs.sql +1723 -0
- package/dist/server-assets/db/schema.sql +380 -0
- package/dist/server-assets/supabase/functions/cerefox-get-audit-log/index.ts +117 -0
- package/dist/server-assets/supabase/functions/cerefox-get-document/index.ts +138 -0
- package/dist/server-assets/supabase/functions/cerefox-ingest/index.ts +819 -0
- package/dist/server-assets/supabase/functions/cerefox-list-projects/index.ts +96 -0
- package/dist/server-assets/supabase/functions/cerefox-list-versions/index.ts +113 -0
- package/dist/server-assets/supabase/functions/cerefox-mcp/index.ts +294 -0
- package/dist/server-assets/supabase/functions/cerefox-mcp/shared.ts +42 -0
- package/dist/server-assets/supabase/functions/cerefox-metadata/index.ts +99 -0
- package/dist/server-assets/supabase/functions/cerefox-metadata-search/index.ts +146 -0
- package/dist/server-assets/supabase/functions/cerefox-search/index.ts +382 -0
- package/docs/guides/connect-agents.md +58 -3
- package/docs/guides/migration-v0.5.md +50 -0
- package/package.json +3 -2
- package/dist/frontend/assets/index-HNlMcvli.js.map +0 -1
|
@@ -500,6 +500,56 @@ Cross-runtime (Bun + Node).
|
|
|
500
500
|
|
|
501
501
|
---
|
|
502
502
|
|
|
503
|
+
## v0.8.0 — production-ready install (redeploy required)
|
|
504
|
+
|
|
505
|
+
> **Upgrading to v0.8 changes the server side. After upgrading the client,
|
|
506
|
+
> redeploy your Supabase server** so the new client↔server compatibility
|
|
507
|
+
> checks pass:
|
|
508
|
+
>
|
|
509
|
+
> ```bash
|
|
510
|
+
> cerefox deploy-server # schema + RPCs + all 9 Edge Functions
|
|
511
|
+
> # or, if your schema is already current:
|
|
512
|
+
> cerefox deploy-server --functions-only
|
|
513
|
+
> ```
|
|
514
|
+
|
|
515
|
+
**What changed for you:**
|
|
516
|
+
|
|
517
|
+
- **No more repo clone to deploy.** `@cerefox/memory` now bundles the
|
|
518
|
+
schema, RPCs, and Edge Functions. `cerefox deploy-server` stands up (or
|
|
519
|
+
updates) the whole server side. It runs a pre-flight first and tells you
|
|
520
|
+
exactly what's missing (Node/npx, the Supabase CLI, `npx supabase login`
|
|
521
|
+
+ `link`, env vars, the OpenAI secret) — fix and re-run; it's idempotent.
|
|
522
|
+
- **`cerefox init`** now offers to run `deploy-server` automatically when it
|
|
523
|
+
detects no schema (or a schema below the minimum). Existing, up-to-date
|
|
524
|
+
installs see no new prompt.
|
|
525
|
+
- **Version visibility.** Every Edge Function answers `GET <ef>/version`;
|
|
526
|
+
`cerefox-mcp` aggregates them (`GET /version?peers=true`). `cerefox
|
|
527
|
+
doctor` gains an "edge functions" row that flags drift. Until you redeploy
|
|
528
|
+
the v0.8 functions, doctor shows them as "predate v0.8" (non-blocking).
|
|
529
|
+
- **Background web server.** `cerefox web start` / `stop` / `status` run the
|
|
530
|
+
web app as a detached daemon (logs to `~/.cerefox/web.log`). Plain
|
|
531
|
+
`cerefox web` still runs in the foreground.
|
|
532
|
+
- **`cerefox web` will refuse to start** against a server older than the
|
|
533
|
+
client's minimum — with a message telling you to redeploy. Compatible or
|
|
534
|
+
unknown (pre-0.8) servers boot normally.
|
|
535
|
+
- **New export script.** `bun scripts/cerefox_export.ts <folder>` dumps all
|
|
536
|
+
documents to markdown files (one folder per project) — a quick local copy
|
|
537
|
+
independent of the JSON `backup_create`/`restore` round-trip.
|
|
538
|
+
|
|
539
|
+
**Nothing destructive happens automatically.** `deploy-server` prompts
|
|
540
|
+
before deploying, and `--reset` (which drops tables) requires an explicit
|
|
541
|
+
extra confirmation. Your documents are untouched by a normal
|
|
542
|
+
`--functions-only` redeploy.
|
|
543
|
+
|
|
544
|
+
| If you… | Do this |
|
|
545
|
+
|---|---|
|
|
546
|
+
| Installed via npm and have a working Supabase | `cerefox deploy-server --functions-only` after upgrading, then `cerefox doctor` |
|
|
547
|
+
| Are setting up fresh | `cerefox init` → accept the deploy prompt (or run `cerefox deploy-server`) |
|
|
548
|
+
| Run `cerefox web` at login | Switch to `cerefox web start` for background mode |
|
|
549
|
+
| Use the Python MCP server | No change — it's not deprecated and needs no redeploy |
|
|
550
|
+
|
|
551
|
+
---
|
|
552
|
+
|
|
503
553
|
## Known gotchas
|
|
504
554
|
|
|
505
555
|
### `npx` from inside an npm workspace
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerefox/memory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Cerefox — user-owned shared memory for AI agents. The local TypeScript runtime: stdio MCP server in v0.4; CLI binary added in v0.5; in-process web server in v0.6; ingestion pipeline in v0.7.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/fstamatelopoulos/cerefox",
|
|
@@ -63,9 +63,10 @@
|
|
|
63
63
|
"build": "bun build src/bin/cerefox.ts --outdir dist/bin --target node --format esm",
|
|
64
64
|
"clean": "rm -rf dist docs AGENT_GUIDE.md AGENT_QUICK_REFERENCE.md",
|
|
65
65
|
"bundle-docs": "bun run ../../scripts/bundle_package_docs.ts",
|
|
66
|
+
"bundle-server-assets": "bun run ../../scripts/bundle_server_assets.ts",
|
|
66
67
|
"build-frontend": "cd ../../frontend && bun install && bun run build",
|
|
67
68
|
"bundle-frontend": "rm -rf dist/frontend && mkdir -p dist/frontend && cp -R ../../frontend/dist/. dist/frontend/",
|
|
68
|
-
"prepublishOnly": "bun run clean && bun run bundle-docs && bun run build-frontend && bun run bundle-frontend && bun run build",
|
|
69
|
+
"prepublishOnly": "bun run clean && bun run bundle-server-assets && bun run bundle-docs && bun run build-frontend && bun run bundle-frontend && bun run build",
|
|
69
70
|
"smoke": "node dist/bin/cerefox.js --help && node dist/bin/cerefox.js mcp --help"
|
|
70
71
|
},
|
|
71
72
|
"publishConfig": {
|