@hasna/mementos 0.14.83 → 0.14.85

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 (72) hide show
  1. package/Dockerfile.package +0 -1
  2. package/README.md +13 -10
  3. package/dashboard/bun.lock +519 -0
  4. package/dist/cli/commands/info-history.d.ts.map +1 -1
  5. package/dist/cli/commands/info-stale.d.ts.map +1 -1
  6. package/dist/cli/commands/io-export.d.ts.map +1 -1
  7. package/dist/cli/commands/memory-cmd-list.d.ts.map +1 -1
  8. package/dist/cli/commands/storage.d.ts.map +1 -1
  9. package/dist/cli/helpers.d.ts +31 -0
  10. package/dist/cli/helpers.d.ts.map +1 -1
  11. package/dist/cli/index.js +3781 -1512
  12. package/dist/db/analytics.d.ts +13 -0
  13. package/dist/db/analytics.d.ts.map +1 -1
  14. package/dist/db/api-mode.d.ts +5 -1
  15. package/dist/db/api-mode.d.ts.map +1 -1
  16. package/dist/db/database.d.ts.map +1 -1
  17. package/dist/db/memories.d.ts +59 -3
  18. package/dist/db/memories.d.ts.map +1 -1
  19. package/dist/db/store-backend.d.ts +3 -3
  20. package/dist/db/store-backend.d.ts.map +1 -1
  21. package/dist/diagnostics/historical-project-registration-receipt.d.ts +39 -0
  22. package/dist/diagnostics/historical-project-registration-receipt.d.ts.map +1 -0
  23. package/dist/diagnostics/historical-project-registration-receipt.js +1656 -0
  24. package/dist/generated/storage-kit/backend.d.ts +20 -0
  25. package/dist/generated/storage-kit/backend.d.ts.map +1 -0
  26. package/dist/generated/storage-kit/index.d.ts +2 -2
  27. package/dist/generated/storage-kit/index.d.ts.map +1 -1
  28. package/dist/generated/storage-kit/migrations.d.ts.map +1 -1
  29. package/dist/generated/storage-kit/own.d.ts +11 -0
  30. package/dist/generated/storage-kit/own.d.ts.map +1 -0
  31. package/dist/generated/storage-kit/pool.d.ts +7 -6
  32. package/dist/generated/storage-kit/pool.d.ts.map +1 -1
  33. package/dist/generated/storage-kit/tls.d.ts +30 -3
  34. package/dist/generated/storage-kit/tls.d.ts.map +1 -1
  35. package/dist/index.d.ts +2 -1
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +3628 -1453
  38. package/dist/lib/gatherer.d.ts.map +1 -1
  39. package/dist/lib/retired-storage-mode.d.ts +11 -0
  40. package/dist/lib/retired-storage-mode.d.ts.map +1 -0
  41. package/dist/lib/storage-sync.d.ts +2 -2
  42. package/dist/lib/storage-sync.d.ts.map +1 -1
  43. package/dist/mcp/index.js +3684 -1492
  44. package/dist/mcp/tools/memory-io.d.ts.map +1 -1
  45. package/dist/mcp/tools/project-tools.d.ts.map +1 -1
  46. package/dist/project-registration/authority.d.ts.map +1 -1
  47. package/dist/project-registration/historical-receipt.d.ts +38 -0
  48. package/dist/project-registration/historical-receipt.d.ts.map +1 -0
  49. package/dist/project-registration/identity.d.ts.map +1 -1
  50. package/dist/project-registration/index.d.ts +1 -1
  51. package/dist/project-registration/index.d.ts.map +1 -1
  52. package/dist/project-registration/types.d.ts +26 -0
  53. package/dist/project-registration/types.d.ts.map +1 -1
  54. package/dist/project-registration.js +361 -162
  55. package/dist/sdk/index.d.ts +7 -0
  56. package/dist/sdk/index.d.ts.map +1 -1
  57. package/dist/sdk/index.js +122 -30
  58. package/dist/server/index.js +3698 -1431
  59. package/dist/storage.d.ts +18 -50
  60. package/dist/storage.d.ts.map +1 -1
  61. package/dist/storage.js +151 -122
  62. package/dist/test-support/memories-page-stub-server.d.ts +2 -0
  63. package/dist/test-support/memories-page-stub-server.d.ts.map +1 -0
  64. package/dist/test-support/memories-page-stub.d.ts +28 -0
  65. package/dist/test-support/memories-page-stub.d.ts.map +1 -0
  66. package/dist/test-support/store-isolation.d.ts +5 -0
  67. package/dist/test-support/store-isolation.d.ts.map +1 -1
  68. package/docker-entrypoint.sh +4 -5
  69. package/hasna.contract.json +2 -2
  70. package/package.json +7 -6
  71. package/dist/generated/storage-kit/mode.d.ts +0 -48
  72. package/dist/generated/storage-kit/mode.d.ts.map +0 -1
@@ -7,7 +7,6 @@
7
7
  FROM --platform=linux/arm64 oven/bun:1
8
8
  WORKDIR /app
9
9
  ENV NODE_ENV=production \
10
- HASNA_MEMENTOS_STORAGE_MODE=cloud \
11
10
  MEMENTOS_HOST=0.0.0.0 \
12
11
  PORT=8080
13
12
 
package/README.md CHANGED
@@ -121,7 +121,7 @@ GET /openapi.json
121
121
  API routes use bearer/API-key authentication when configured. See the
122
122
  [REST API reference](docs/REST-API.md).
123
123
 
124
- ## Storage modes
124
+ ## Storage
125
125
 
126
126
  ### Local clients
127
127
 
@@ -135,15 +135,16 @@ SQLite is authoritative by default. Database selection order is:
135
135
  Legacy `~/.mementos` data is copied to `~/.hasna/mementos` when the new directory
136
136
  does not yet exist.
137
137
 
138
- ### Self-hosted cloud
138
+ ### Server backend and HTTP clients
139
139
 
140
- Raw PostgreSQL credentials are server-only. Configure `mementos-serve` with
141
- `HASNA_MEMENTOS_STORAGE_MODE=cloud` and `HASNA_MEMENTOS_DATABASE_URL`. Configure
142
- CLI and MCP clients with the HTTPS API endpoint and API key instead:
140
+ There are no deployment modes. The only runtime switch is the server data
141
+ backend: `sqlite | postgresql`, selected by `HASNA_MEMENTOS_DATABASE_URL`
142
+ presence. Raw PostgreSQL credentials are server-only configure
143
+ `mementos-serve` with `HASNA_MEMENTOS_DATABASE_URL`; configure CLI and MCP
144
+ clients with the HTTPS API endpoint and API key instead:
143
145
 
144
146
  ```bash
145
147
  # mementos-serve environment
146
- HASNA_MEMENTOS_STORAGE_MODE=cloud
147
148
  HASNA_MEMENTOS_DATABASE_URL=postgres://...
148
149
 
149
150
  # client environment; do not distribute the database URL to clients
@@ -151,12 +152,14 @@ HASNA_MEMENTOS_API_URL=https://mementos.example.com
151
152
  HASNA_MEMENTOS_API_KEY=...
152
153
  ```
153
154
 
154
- Both API variables must be present to select client API mode, and a database URL
155
- on the same client disables API mode. `mementos storage mode` reports the chosen
156
- backend without opening a database or making a network request.
155
+ Both API variables must be present to select the HTTP client transport, and
156
+ exactly one of them set is an error naming the missing variable.
157
+ `mementos storage mode` reports the chosen transport without opening a
158
+ database or making a network request. Any retired storage-mode variable
159
+ (`HASNA_MEMENTOS_STORAGE_MODE` or an alias) is an error: delete it.
157
160
 
158
161
  The old `storage push`, `pull`, and `sync` commands remain for compatibility;
159
- they are not the cloud cutover architecture. See [Configuration and
162
+ they are not the cutover architecture. See [Configuration and
160
163
  storage](docs/CONFIGURATION.md) and the [cloud cutover runbook](docs/CUTOVER-RUNBOOK.md).
161
164
 
162
165
  ## TypeScript APIs