@@ -52,14 +52,15 @@ type PluginShippingSurface = {
5252
5353const CLI_BIN_TARGET = "bin/oh-my-claudecode.js" ;
5454const SUPPORTED_CLI_ALIASES = [ "oh-my-claudecode" , "omc" ] as const ;
55- const GENERATED_BRIDGE_FILES = new Set ( [
55+ const GENERATED_RUNTIME_ENTRYPOINTS = new Set ( [
5656 "bridge/claude-md-coordinator.cjs" ,
5757 "bridge/cli.cjs" ,
5858 "bridge/mcp-server.cjs" ,
5959 "bridge/runtime-cli.cjs" ,
6060 "bridge/team-bridge.cjs" ,
6161 "bridge/team-mcp.cjs" ,
6262 "bridge/team.js" ,
63+ "dist/hooks/skill-bridge.cjs" ,
6364] ) ;
6465
6566let packedPackageCache : PackedPackage | null = null ;
@@ -99,7 +100,7 @@ function createIsolatedPackWorkspace(
99100 preserveTimestamps : true ,
100101 } ) ;
101102 rmSync ( join ( workspacePath , "dist" ) , { recursive : true , force : true } ) ;
102- for ( const relativePath of GENERATED_BRIDGE_FILES ) {
103+ for ( const relativePath of GENERATED_RUNTIME_ENTRYPOINTS ) {
103104 rmSync ( join ( workspacePath , relativePath ) , { force : true } ) ;
104105 }
105106 symlinkSync (
@@ -131,7 +132,7 @@ function getPackedPackage(): PackedPackage {
131132 committedSnapshotCache = join ( fixtureRootCache , "committed" ) ;
132133 packDirCache = join ( fixtureRootCache , "packed" ) ;
133134 createIsolatedPackWorkspace ( packWorkspaceCache , committedSnapshotCache ) ;
134- const startedWithoutGeneratedBundles = [ ...GENERATED_BRIDGE_FILES ] . every (
135+ const startedWithoutGeneratedBundles = [ ...GENERATED_RUNTIME_ENTRYPOINTS ] . every (
135136 ( file ) => ! existsSync ( join ( packWorkspaceCache ! , file ) ) ,
136137 ) ;
137138 mkdirSync ( packDirCache , { recursive : true } ) ;
@@ -221,14 +222,9 @@ describe("npm package bin surface regression", () => {
221222 const packedFiles = packedPackageFixture . files ;
222223
223224 expect ( packedFiles . has ( CLI_BIN_TARGET ) ) . toBe ( true ) ;
224- expect ( packedFiles . has ( "dist/hooks/skill-bridge.cjs" ) ) . toBe ( true ) ;
225- expect ( packedFiles . has ( "bridge/cli.cjs" ) ) . toBe ( true ) ;
226- expect ( packedFiles . has ( "bridge/claude-md-coordinator.cjs" ) ) . toBe ( true ) ;
227- expect ( packedFiles . has ( "bridge/mcp-server.cjs" ) ) . toBe ( true ) ;
228- expect ( packedFiles . has ( "bridge/runtime-cli.cjs" ) ) . toBe ( true ) ;
229- expect ( packedFiles . has ( "bridge/team-bridge.cjs" ) ) . toBe ( true ) ;
230- expect ( packedFiles . has ( "bridge/team-mcp.cjs" ) ) . toBe ( true ) ;
231- expect ( packedFiles . has ( "bridge/team.js" ) ) . toBe ( true ) ;
225+ for ( const relativePath of GENERATED_RUNTIME_ENTRYPOINTS ) {
226+ expect ( packedFiles . has ( relativePath ) , relativePath ) . toBe ( true ) ;
227+ }
232228 expect ( packedFiles . has ( "bridge/gyoshu_bridge.py" ) ) . toBe ( true ) ;
233229 expect ( packedFiles . has ( "bridge/run-mcp-server.sh" ) ) . toBe ( true ) ;
234230 } ) ;
@@ -243,6 +239,7 @@ describe("npm package bin surface regression", () => {
243239 expect ( packedPackageFixture . files . has ( relativePath ) , relativePath ) . toBe (
244240 true ,
245241 ) ;
242+ if ( relativePath . startsWith ( "dist/" ) || relativePath . startsWith ( "bridge/" ) ) continue ;
246243 expect (
247244 sha256 ( join ( extractedPackageRoot , relativePath ) ) ,
248245 relativePath ,
0 commit comments