@hasna/mementos 0.14.83 → 0.14.84
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/Dockerfile.package +0 -1
- package/README.md +13 -10
- package/dashboard/bun.lock +519 -0
- package/dist/cli/commands/storage.d.ts.map +1 -1
- package/dist/cli/index.js +3437 -1445
- package/dist/db/api-mode.d.ts +5 -1
- package/dist/db/api-mode.d.ts.map +1 -1
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/store-backend.d.ts +3 -3
- package/dist/db/store-backend.d.ts.map +1 -1
- package/dist/generated/storage-kit/backend.d.ts +20 -0
- package/dist/generated/storage-kit/backend.d.ts.map +1 -0
- package/dist/generated/storage-kit/index.d.ts +2 -2
- package/dist/generated/storage-kit/index.d.ts.map +1 -1
- package/dist/generated/storage-kit/migrations.d.ts.map +1 -1
- package/dist/generated/storage-kit/own.d.ts +11 -0
- package/dist/generated/storage-kit/own.d.ts.map +1 -0
- package/dist/generated/storage-kit/pool.d.ts +7 -6
- package/dist/generated/storage-kit/pool.d.ts.map +1 -1
- package/dist/generated/storage-kit/tls.d.ts +30 -3
- package/dist/generated/storage-kit/tls.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3428 -1422
- package/dist/lib/retired-storage-mode.d.ts +11 -0
- package/dist/lib/retired-storage-mode.d.ts.map +1 -0
- package/dist/lib/storage-sync.d.ts +2 -2
- package/dist/lib/storage-sync.d.ts.map +1 -1
- package/dist/mcp/index.js +3416 -1423
- package/dist/mcp/tools/project-tools.d.ts.map +1 -1
- package/dist/project-registration.js +160 -130
- package/dist/server/index.js +3390 -1379
- package/dist/storage.d.ts +18 -50
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +151 -122
- package/dist/test-support/store-isolation.d.ts +5 -0
- package/dist/test-support/store-isolation.d.ts.map +1 -1
- package/docker-entrypoint.sh +4 -5
- package/hasna.contract.json +2 -2
- package/package.json +5 -5
- package/dist/generated/storage-kit/mode.d.ts +0 -48
- package/dist/generated/storage-kit/mode.d.ts.map +0 -1
package/Dockerfile.package
CHANGED
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
|
|
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
|
-
###
|
|
138
|
+
### Server backend and HTTP clients
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
`
|
|
142
|
-
|
|
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
|
|
155
|
-
|
|
156
|
-
|
|
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
|
|
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
|