@@ -4,23 +4,23 @@ import { Kernel } from '@ocap/kernel';
44import type { ClusterConfig } from '@ocap/kernel' ;
55import { MessageChannel as NodeMessageChannel } from 'node:worker_threads' ;
66
7- import { makeKernel } from '../../kernel/make-kernel.js ' ;
8- import { makeSubclusterConfig } from './subclusterConfig.js ' ;
9- import { documentRoot } from './documents/root.js ' ;
7+ import { documentRoot } from './documents/root.ts ' ;
8+ import { makeSubclusterConfig } from './subclusterConfig.ts ' ;
9+ import { makeKernel } from '../../kernel/make-kernel.ts ' ;
1010
1111const args = {
1212 verbose : process . argv . includes ( '--verbose' ) ,
13- }
13+ } ;
1414
1515main ( args ) . catch ( console . error ) ;
1616
1717/**
1818 * The main function for the demo.
1919 *
20- * @param options0
21- * @param options0.verbose
20+ * @param options0 - The options for the demo.
21+ * @param options0.verbose - Whether to run the demo in verbose mode.
2222 */
23- async function main ( { verbose } : { verbose : boolean } ) {
23+ async function main ( { verbose } : { verbose : boolean } ) : Promise < void > {
2424 // This port does nothing; we don't talk to the Kernel via a console (yet).
2525 const kernelPort = new NodeMessageChannel ( ) . port1 ;
2626
@@ -29,7 +29,7 @@ async function main({ verbose }: { verbose: boolean }) {
2929 port : kernelPort ,
3030 vatWorkerServiceOptions : {
3131 makeDocumentRoot : async ( ) => documentRoot ,
32- }
32+ } ,
3333 } ) ;
3434 const config : ClusterConfig = makeSubclusterConfig ( verbose ) ;
3535 await kernel . launchSubcluster ( config ) ;
0 commit comments