Skip to content

build(npm): prepare package for publication - #72

Merged
WH-2099 merged 1 commit into
mainfrom
build/71-prepare-npm-package
Jul 20, 2026
Merged

build(npm): prepare package for publication#72
WH-2099 merged 1 commit into
mainfrom
build/71-prepare-npm-package

Conversation

@WH-2099

@WH-2099 WH-2099 commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary

  • configure @mosoo/agent-driver as a public scoped npm package
  • use package.json as the single runtime version source
  • update package documentation, consumer imports, and artifact contract snapshots

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

  • vp fmt on changed files
  • vp run lint
  • vp run tc
  • vp run test: 1073 passed, 20 skipped
  • vp run build

Out of scope

  • GitHub Actions release workflow
  • release runbook

Closes #71

@WH-2099 WH-2099 self-assigned this Jul 20, 2026
@WH-2099
WH-2099 marked this pull request as ready for review July 20, 2026 13:18
Copilot AI review requested due to automatic review settings July 20, 2026 13:18
@WH-2099
WH-2099 merged commit 8476a78 into main Jul 20, 2026
3 checks passed
@WH-2099
WH-2099 deleted the build/71-prepare-npm-package branch July 20, 2026 13:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

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.

build(npm): prepare package for publication

2 participants