@hiai-gg/docsmint 0.3.5 → 0.3.6
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 +0 -18
- package/backend/src/lib/lifecycle-service.ts +334 -219
- package/dist/backend/index.js +232 -18
- package/dist/backend-launcher.d.ts +15 -0
- package/dist/backend-launcher.js +22 -0
- package/dist/frontend/extension.d.ts +2 -1
- package/dist/frontend/shared-document.js +89 -54
- package/dist/lifecycle-persistent.d.ts +31 -0
- package/dist/lifecycle-persistent.js +33 -0
- package/dist/server-only-browser-entry.d.ts +0 -0
- package/dist/server-only-browser-entry.js +3 -0
- package/dist/storage-quota.d.ts +36 -0
- package/dist/storage-quota.js +14 -1
- package/dist/types.d.ts +7 -0
- package/dist/workspace.d.ts +4 -1
- package/dist/workspace.js +29 -8
- package/package.json +2 -3
- package/packages/cli/src/index.ts +1 -1
- package/packages/db/src/index.ts +11 -2
- package/packages/db/src/schema.ts +30 -2
- package/packages/db/src/with-tenant.ts +38 -1
- package/packages/mcp-server/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -230,24 +230,6 @@ console.log(created.id, results.items);
|
|
|
230
230
|
The SDK is a typed `fetch` client with retries for transient failures. See the
|
|
231
231
|
[SDK reference](packages/sdk/README.md) and [REST API](docs/API.md).
|
|
232
232
|
|
|
233
|
-
### Server-only host integration
|
|
234
|
-
|
|
235
|
-
Hosts that run DocsMint as a packaged backend can start the bundled Bun
|
|
236
|
-
runtime without importing checkout source:
|
|
237
|
-
|
|
238
|
-
```ts
|
|
239
|
-
import { launchDocsmintBackend } from "@hiai-gg/docsmint/backend/launcher";
|
|
240
|
-
|
|
241
|
-
const backend = launchDocsmintBackend({ env: { API_PORT: "50700" } });
|
|
242
|
-
await backend.ready;
|
|
243
|
-
// Later: await backend.stop();
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
Storage quota persistence remains host-owned. DocsMint provides the stable,
|
|
247
|
-
atomic reservation contract at `@hiai-gg/docsmint/storage-quota`; adapters
|
|
248
|
-
must enforce the check and reservation in one durable operation. Both paths
|
|
249
|
-
are server-only and are rejected by browser builds.
|
|
250
|
-
|
|
251
233
|
## API keys and integrations
|
|
252
234
|
|
|
253
235
|
Create and revoke integration keys from **Settings → API**.
|