Skip to content

feat(package): expose host-neutral library entrypoints#27

Open
Dimon94 wants to merge 1 commit into
Tencent:mainfrom
Dimon94:codex/library-mode-exports-min
Open

feat(package): expose host-neutral library entrypoints#27
Dimon94 wants to merge 1 commit into
Tencent:mainfrom
Dimon94:codex/library-mode-exports-min

Conversation

@Dimon94
Copy link
Copy Markdown

@Dimon94 Dimon94 commented May 16, 2026

Description | 描述

Add a focused package/library-mode surface for host-neutral integrations:

  • export typed package subpaths for ./core and ./config
  • re-export parseConfig and config types from the core barrel
  • generate declaration files for the package entrypoints
  • remove stale package metadata that referenced missing CLI build outputs, so npm pack validates the publishable package
  • keep the published OpenClaw extension pointed at the built runtime artifact and keep the source checkout unchanged

OpenClaw remains the default plugin path. This PR only makes the existing core easier to consume from package subpaths and keeps package metadata internally consistent.

Related Issue | 关联 Issue

None.

Change Type | 修改类型

  • Bug fix | Bug 修复
  • New feature | 新功能
  • Documentation update | 文档更新
  • Code optimization | 代码优化

Self-test Checklist | 自测清单

  • Verified locally | 本地验证通过
  • No existing features affected | 无影响现有功能

Additional Notes | 其他说明

Local verification:

  • npm test -- src/core/public-exports.test.ts src/core/package-metadata.test.ts
  • npm run build:plugin
  • npm pack --dry-run produced a 289.0 kB tarball, under the 512 kB CI size guard.

Add typed package subpaths for core and config consumers while keeping the OpenClaw plugin available through the published runtime artifact. Remove stale package metadata that referenced missing CLI script outputs so npm pack and the package size guard can validate the publishable tarball.

Signed-off-by: Dimon <lovedaih@gmail.com>
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