Skip to content

Commit 4e5377e

Browse files
chore(release): prepare release v2.0.0 (#8)
Bumped versions for: enclave-vm,vectoriadb Version analysis and docs updates by Codex AI. Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent db30f2b commit 4e5377e

File tree

8 files changed

+50
-243
lines changed

8 files changed

+50
-243
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.0.0] - 2025-12-12
11+
12+
Transformer-dependent features now load Hugging Face models lazily, with enclave-vm fixing its scorer import path and vectoriadb requiring explicit opt-in for transformer embeddings.
13+
14+
### Updated Libraries
15+
16+
- **enclave-vm** v1.0.2 - LocalLlmScorer lazily imports @huggingface/transformers and treats it as an optional peer dependency.
17+
- **vectoriadb** v2.0.0 - EmbeddingService now loads transformers dynamically, adds injection hooks, and requires you to install the optional peer when using transformer embeddings.
18+
1019
## [1.1.0] - 2025-12-11
1120

1221
Hardened ast-guard’s AgentScript preset with additional browser primitive blocks and dynamic import enforcement.

docs/draft/docs/libraries/enclave.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ const enclave = new Enclave({
9797

9898
Leverage the Local LLM scorer to gate executions with on-disk models.
9999

100+
**Note:** `LocalLlmScorer` loads the optional `@huggingface/transformers` peer dependency on demand. Install it before enabling local scoring:
101+
102+
```bash
103+
npm install @huggingface/transformers
104+
```
105+
100106
```typescript
101107
import { LocalLlmScorer } from 'enclave-vm/scoring';
102108

docs/live/docs/libraries/enclave.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ const enclave = new Enclave({
9797

9898
Use the built-in AI scoring gate to evaluate executions with a local model.
9999

100+
**Note:** `LocalLlmScorer` loads the optional `@huggingface/transformers` peer dependency on demand. Install it before enabling local scoring:
101+
102+
```bash
103+
npm install @huggingface/transformers
104+
```
105+
100106
```typescript
101107
import { LocalLlmScorer } from 'enclave-vm/scoring';
102108

libs/enclave-vm/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.0.2] - 2025-12-12
11+
12+
### Changed
13+
14+
- Declared @huggingface/transformers as an optional peer dependency so it is only required when local scoring is enabled.
15+
16+
### Fixed
17+
18+
- LocalLlmScorer now imports @huggingface/transformers via a dynamic Function() call, preventing TypeScript and bundler failures when the optional dependency is absent.
19+
1020
### Changed
1121

1222
- Updated the documented cache directory default for `LocalLlmConfig` to `~/.enclave/models`

libs/enclave-vm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "enclave-vm",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Sandbox runtime for secure JavaScript code execution",
55
"author": "AgentFront <info@agentfront.dev>",
66
"homepage": "https://github.com/agentfront/enclave",

libs/vectoriadb/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.0.0] - 2025-12-12
11+
12+
### Added
13+
14+
- Added EmbeddingService.setTransformersModule() and clearTransformersModule() to allow injecting custom transformer pipelines (primarily for testing).
15+
16+
### Changed
17+
18+
- Transformer embeddings now lazy-load @huggingface/transformers and emit a ConfigurationError with installation guidance when the package is not installed.
19+
- @huggingface/transformers is now distributed as an optional peer dependency and must be added explicitly when using transformer embeddings.
20+
1021
## [1.0.0] - 2025-11-30
1122

1223
### Added

libs/vectoriadb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vectoriadb",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "VectoriaDB - A lightweight, production-ready in-memory vector database for semantic search",
55
"author": "AgentFront <info@agentfront.dev>",
66
"homepage": "https://github.com/agentfront/frontmcp/tree/main/libs/vectoriadb",

0 commit comments

Comments
 (0)