Skip to content

refactor: update package names from @enclavejs to @enclave-vm across the codebase#39

Merged
frontegg-david merged 2 commits intomainfrom
update-package-names
Jan 28, 2026
Merged

refactor: update package names from @enclavejs to @enclave-vm across the codebase#39
frontegg-david merged 2 commits intomainfrom
update-package-names

Conversation

@frontegg-david
Copy link
Contributor

@frontegg-david frontegg-david commented Jan 28, 2026

Summary by CodeRabbit

  • Chores
    • Renamed public packages from enclavejs/* to enclave-vm/* and updated the core package name from enclave-vm to enclave-vm/core
    • Updated all import paths, installation instructions, docs, examples, and publishing metadata to reflect the new package namespace
    • Bumped core package version and aligned related package references across the repo

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 28, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

This PR renames packages and import specifiers across the repo from the @enclavejs/* and enclave-vm names to the new @enclave-vm/* scope and @enclave-vm/core. Changes touch docs, package manifests, tsconfig aliases, and source/test imports only; no runtime logic altered.

Changes

Cohort / File(s) Summary
Workflow
\.github/workflows/publish-release.yml
Updated release workflow prompt and embedded changelog prompt to reference @enclave-vm/* instead of @enclavejs/*.
Core package metadata
libs/enclave-vm/package.json, libs/enclave-vm/project.json
Renamed package to @enclave-vm/core, bumped version to 2.8.0, switched dependencies/tags to @enclave-vm/*.
Core sources & session code
libs/enclave-vm/src/..., libs/enclave-vm/README.md
Replaced imports and documentation examples from enclave-vm/@enclavejs/* to @enclave-vm/* (types, Enclave, scoring, session files).
Broker package
libs/enclavejs-broker/*
Renamed to @enclave-vm/broker; updated package.json deps and all imports from @enclavejs/*/enclave-vm to @enclave-vm/*/@enclave-vm/core.
Client package
libs/enclavejs-client/*
Renamed to @enclave-vm/client; updated package.json and all type/value/stream imports to @enclave-vm/*.
React package
libs/enclavejs-react/*
Renamed to @enclave-vm/react; switched dependencies and re-exports to @enclave-vm/client.
Runtime package
libs/enclavejs-runtime/*
Renamed to @enclave-vm/runtime; updated deps and imports to @enclave-vm/* and @enclave-vm/core.
Stream package
libs/enclavejs-stream/*
Renamed to @enclave-vm/stream; updated headers, re-exports, and imports to @enclave-vm/types.
Types package
libs/enclavejs-types/*
Renamed to @enclave-vm/types; updated package metadata and file headers; code unchanged.
Library/project config tags
libs/*/project.json (multiple)
Updated NX project tags across several libs (replaced scope:libs with type:lib, added scope:publishable/versioning:independent).
Applications & demos
apps/enclave-demo/src/main.ts, apps/streaming-demo/package.json, apps/streaming-demo/src/**/*.ts
Updated runtime imports and app dependencies to @enclave-vm/* and @enclave-vm/core.
Docs — API, guides, examples
docs/enclave/** (many .mdx)
Replaced all occurrences of @enclavejs/*, enclave-vm with @enclave-vm/* in titles, install commands, import snippets, diagrams, and links.
Root & tooling
package.json, tsconfig.base.json, README.md, README-ARCHITECTURE.md
Updated root package name to @enclave-vm/source, remapped TypeScript path aliases from enclave-vm/@enclavejs/* to @enclave-vm/*, and adjusted README references.

Sequence Diagram(s)

(omitted — change set is a namespace/mapping migration without new multi-component control flow)

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Poem

🐰 Hopped through code with a tiny drum,

From @enclavejs to @enclave-vm we come.
Imports aligned and docs made neat,
A tidy namespace—what a treat!
✨ Packages rebloom with a graceful thrum.

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the primary change: a systematic package namespace refactor from @enclavejs to @enclave-vm throughout the codebase.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
docs/enclave/guides/scaling.mdx (1)

140-143: Inconsistent naming: "EnclaveJS Broker" references remain.

The import paths have been correctly updated to @enclave-vm/broker, but there are still references to "EnclaveJS Broker" in:

  • Line 141: ASCII diagram label
  • Line 495: Related links section

These should be updated for consistency with the new @enclave-vm namespace.

📝 Suggested fix
 ┌─────────────────────────────────────────────────────────┐
 │                     Load Balancer                        │
 └───────────────────────┬─────────────────────────────────┘
                         │
         ┌───────────────┼───────────────┐
         ▼               ▼               ▼
 ┌───────────────┐ ┌───────────────┐ ┌───────────────┐
 │   API Pod 1   │ │   API Pod 2   │ │   API Pod 3   │
 │ EnclaveClient │ │ EnclaveClient │ │ EnclaveClient │
 └───────┬───────┘ └───────┬───────┘ └───────┬───────┘
         │                 │                 │
         └─────────────────┼─────────────────┘
                           ▼
-                ┌─────────────────────┐
-                │   EnclaveJS Broker  │
-                │   (Redis-backed)    │
-                └─────────┬───────────┘
+                ┌─────────────────────┐
+                │   Enclave Broker    │
+                │   (Redis-backed)    │
+                └─────────┬───────────┘

And for the Related section:

-- [EnclaveJS Broker](/enclavejs/broker) - Broker configuration
+- [Enclave Broker](/enclave-vm/broker) - Broker configuration

Also applies to: 495-495

libs/enclavejs-react/project.json (1)

1-6: Update project name to match the new namespace.

The name field in project.json (line 2) remains enclavejs-react, but package.json declares the npm package as @enclave-vm/react. The tags were updated to reflect the new namespace, but the project name should be aligned. Update line 2 to use the new naming convention consistently.

🤖 Fix all issues with AI agents
In `@docs/enclave/enclavejs/overview.mdx`:
- Line 176: Update the Markdown link text to match the target namespace: change
the link "[npm `@enclavejs`](https://www.npmjs.com/org/enclave-vm)" so the visible
text reflects the URL's organization (e.g., "[npm
`@enclave-vm`](https://www.npmjs.com/org/enclave-vm)"); locate the line containing
that link text in overview.mdx and replace only the link label to match the
"enclave-vm" namespace.

In `@libs/enclave-vm/package.json`:
- Around line 2-3: Add a CHANGELOG.md entry for version 2.8.0 documenting the
breaking rename from enclave-vm to `@enclave-vm/core`; state it is a breaking
change, show the before/after import example (import { Enclave } from
'enclave-vm' → import { Enclave } from '@enclave-vm/core'), and reference the
new package name "@enclave-vm/core" and version "2.8.0" so release notes clearly
call out migration steps for consumers.
🧹 Nitpick comments (5)
libs/enclavejs-types/package.json (1)

4-16: Consider updating description and keywords to reflect new branding.

The description still says "EnclaveJS streaming runtime protocol" and the keywords include "enclavejs". For consistency with the new @enclave-vm namespace, these could be updated.

📝 Suggested diff
-  "description": "Type definitions and Zod schemas for the EnclaveJS streaming runtime protocol",
+  "description": "Type definitions and Zod schemas for the Enclave VM streaming runtime protocol",
   ...
   "keywords": [
-    "enclavejs",
     "enclave",
+    "enclave-vm",
     "streaming",
libs/enclavejs-client/package.json (1)

4-4: Consider updating the description to match the new namespace.

The description still references "EnclaveJS" while the package has been renamed to @enclave-vm/client. Consider updating for consistency:

-  "description": "Browser and Node.js client SDK for the EnclaveJS streaming runtime",
+  "description": "Browser and Node.js client SDK for the Enclave VM streaming runtime",
libs/enclavejs-stream/src/index.ts (1)

2-4: Minor documentation inconsistency.

Line 2 uses the new namespace @enclave-vm/stream, but line 4 still references "EnclaveJS runtime" instead of "Enclave VM" as used in other files (e.g., libs/enclavejs-broker/src/index.ts uses "Enclave VM streaming runtime").

📝 Suggested fix for consistency
 /**
  * `@enclave-vm/stream`
  *
- * Streaming protocol implementation for EnclaveJS runtime.
+ * Streaming protocol implementation for Enclave VM runtime.
  * Includes NDJSON parsing, encryption, and reconnection handling.
libs/enclavejs-broker/src/broker.ts (1)

1-7: Minor documentation inconsistency.

The file-level doc comment at line 4 still references "EnclaveJS tool broker". Similarly, the class-level doc at line 56 mentions "EnclaveJS streaming sessions". Consider updating these for consistency with the namespace migration.

📝 Suggested fix for consistency
 /**
  * Broker
  *
- * Main entry point for the EnclaveJS tool broker.
+ * Main entry point for the Enclave VM tool broker.
  *
  * `@packageDocumentation`
  */

And at line 56:

 /**
  * Broker
  *
- * The main orchestrator for EnclaveJS streaming sessions.
+ * The main orchestrator for Enclave VM streaming sessions.
libs/enclavejs-stream/package.json (1)

2-4: Consider updating the description for consistency.

The package name is updated to @enclave-vm/stream, but the description still references "EnclaveJS runtime". Consider updating the description to align with the new namespace.

Suggested change
 {
   "name": "@enclave-vm/stream",
   "version": "0.1.0",
-  "description": "Streaming protocol implementation for EnclaveJS runtime (NDJSON, encryption, reconnection)",
+  "description": "Streaming protocol implementation for Enclave VM runtime (NDJSON, encryption, reconnection)",

@frontegg-david frontegg-david merged commit 4f44eee into main Jan 28, 2026
3 of 4 checks passed
@frontegg-david frontegg-david deleted the update-package-names branch January 28, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant