- Changed root directory in tsconfig.json to include all source files. - Updated server.json to include npm package configuration for claude-code-explorer-mcp. - Enhanced x402 command to support non-interactive mode. - Refactored x402 command call function to simplify argument handling. - Introduced .mcp.json for MCP server configuration. - Added bunfig.toml for Bun development mode configuration. - Created bridge.md documentation for IDE integration and architecture overview. - Added .npmignore to exclude unnecessary files from npm package. - Implemented build-bundle script for production and development builds. - Developed bun-plugin-shims for Bun preload plugin. - Created ci-build.sh for CI/CD build pipeline. - Added dev.ts for development launcher using Bun's TS runtime. - Implemented package-npm.ts to generate a publishable npm package. - Created test-auth.ts to verify API key configuration. - Developed test-mcp.ts for MCP client/server roundtrip testing. - Implemented test-services.ts to ensure all services initialize correctly. - Added stub.ts for bridge functionality when BRIDGE_MODE is disabled.
19 lines
489 B
TypeScript
19 lines
489 B
TypeScript
// scripts/bun-plugin-shims.ts
|
|
// Bun preload plugin — intercepts `bun:bundle` imports at runtime
|
|
// and resolves them to our local shim so the CLI can run without
|
|
// the production Bun bundler pass.
|
|
|
|
import { plugin } from 'bun'
|
|
import { resolve } from 'path'
|
|
|
|
plugin({
|
|
name: 'bun-bundle-shim',
|
|
setup(build) {
|
|
const shimPath = resolve(import.meta.dir, '../src/shims/bun-bundle.ts')
|
|
|
|
build.onResolve({ filter: /^bun:bundle$/ }, () => ({
|
|
path: shimPath,
|
|
}))
|
|
},
|
|
})
|