build(npm): prepare package for publication - #72
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Prepares @mosoo/agent-driver for public npm distribution and centralizes runtime version metadata.
Changes:
- Configures scoped public package metadata, exports, files, and prepack build.
- Sources runtime client versions from
package.json. - Updates consumer documentation and artifact contract tests.
Reviewed changes
Copilot reviewed 10 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
package.json |
Defines the public npm package contract. |
bun.lock |
Updates the workspace package identity. |
README.md |
Documents scoped installation and imports. |
src/core/version.ts |
Exposes the manifest version internally. |
src/bin/driver-process.ts |
Uses the shared runtime version. |
src/runtimes/acp/acp-driver-backend.ts |
Uses the shared ACP client version. |
src/runtimes/claude/agent-sdk-query-options.ts |
Uses the shared Claude client version. |
src/runtimes/mcp/remote-http-mcp-executor.ts |
Uses the shared MCP client version. |
src/runtimes/openai/app-server-client.ts |
Uses the shared OpenAI client version. |
tests/driver-artifact-contract.test.ts |
Expands publication contract coverage. |
tests/public-api-consumer.ts |
Validates scoped consumer imports. |
tests/public-api-exports.snapshot.json |
Removes the private runner subpath. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
The repository package metadata and runtime client versions still used the pre-publication agent-driver identity and duplicated version literals. This prepares one coherent npm package contract without adding release automation in the same change.
Impact
Consumers will install and import @mosoo/agent-driver. The internal process runner remains available through the agent-driver CLI and is no longer exposed as a library subpath.
Validation
Out of scope
Closes #71