Skip to content

Conversation

@grypez
Copy link
Contributor

@grypez grypez commented Jan 14, 2026

WIP

This refactors kernel-utils and kernel-errors to enable makeJsonAgent
to be bundled into vats using @endo/bundle-source.

Changes:
- kernel-utils: Added subpath exports (counter, merge-disjoint-records, schema)
- kernel-errors: Added bundleable subpath with simplified error classes
- kernel-errors: Extracted ErrorCode to error-codes.ts (no @metamask/utils dep)
- ocap-kernel: Moved isRetryableNetworkError from kernel-errors to utils
- kernel-agents: Updated to use subpath imports

The bundler was failing due to transitive dependencies on @noble/hashes
which has ESM/CJS compatibility issues. By using subpath exports and
moving libp2p-specific code to ocap-kernel, we avoid pulling in
unbundleable dependencies.
@grypez grypez changed the base branch from main to grypez/add-skill-create-package January 14, 2026 18:50
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.

2 participants