import { createSDK, handleError } from './utils.js'; async function main() { const sdk = await createSDK(); try { await sdk.connect(); // Initialize SDK with authentication // Create notebook with title const notebook1 = await sdk.notebooks.create({ title: 'My Research Project', }); console.log(`Created: ${notebook1.title}`); console.log(`ID: ${notebook1.projectId}\n`); // Create notebook with auto-generated title const notebook2 = await sdk.notebooks.create({}); console.log(`Created: ${notebook2.title}`); console.log(`ID: ${notebook2.projectId}\n`); // Create notebook with title and emoji const notebook3 = await sdk.notebooks.create({ title: 'My Research Project', emoji: '📚', }); console.log(`Created: ${notebook3.emoji} ${notebook3.title}`); console.log(`ID: ${notebook3.projectId}\n`); // Create notebook with title and emoji const notebook4 = await sdk.notebooks.create({ title: 'Project Notes', emoji: '🔬', }); console.log(`Created: ${notebook4.emoji} ${notebook4.title}`); console.log(`ID: ${notebook4.projectId}`); } catch (error) { handleError(error, 'Failed to create notebook'); } sdk.dispose(); process.exit(0); } main().catch(console.error);