feat(build): added turbopack in dev & fixed circular dependency (#328)

* fix(tools): fixed x tool

* feat(build): added turbopack in dev & fixed circular dependency

* add turbopack config

* fixed failing test bc of circular import
This commit is contained in:
Waleed Latif
2025-05-04 19:45:27 -07:00
committed by GitHub
parent 4be568e3b4
commit 75c6582f91
13 changed files with 3922 additions and 2166 deletions

View File

@@ -313,22 +313,20 @@ In addition, you will need to update the registries:
```
4. **Register Your Block:**
Import and add your block to the blocks registry (`/sim/blocks/index.ts`) in the appropriate index file so it appears in the workflow builder.
Add your block to the blocks registry (`/sim/blocks/registry.ts`):
```typescript:/sim/blocks/index.ts
```typescript:/sim/blocks/registry.ts
import { PineconeBlock } from './blocks/pinecone'
export const blocks = [
// Registry of all available blocks
export const registry: Record<string, BlockConfig> = {
// ... existing blocks
PineconeBlock,
]
export const blocksByType: Record<string, BlockConfig> = {
// ... existing blocks by type
pinecone: PineconeBlock,
}
```
The block will be automatically available to the application through the registry.
5. **Test Your Block:**
Ensure that the block displays correctly in the UI and that its functionality works as expected.