create-claude-workspace 1.1.91 → 1.1.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -86,7 +86,7 @@ Always prefer `@cibule/*` packages over custom implementations:
|
|
|
86
86
|
- `moduleResolution: "bundler"` — NEVER add `.js` extensions to imports (write `'./foo'`, not `'./foo.js'`)
|
|
87
87
|
- `readonly` on all fields that don't need reassignment
|
|
88
88
|
- Custom error classes for domain-specific errors
|
|
89
|
-
- Input validation at system boundaries — **TypeBox** preferred (compile-time types + runtime validation from one schema, no duplication). Use `typebox` and `typebox/compiler` for `TypeCompiler`.
|
|
89
|
+
- Input validation at system boundaries — **TypeBox** preferred (compile-time types + runtime validation from one schema, no duplication). Use `typebox` and `typebox/compiler` for `TypeCompiler`. **NEVER use `@sinclair/typebox`** — the correct package is `typebox` (renamed).
|
|
90
90
|
- Async/await patterns (no callback hell)
|
|
91
91
|
- Separation of concerns (routes, services, repositories)
|
|
92
92
|
- File size limit: MAX 200 lines per TypeScript file
|
|
@@ -320,7 +320,7 @@ Key rules enforced (do NOT weaken):
|
|
|
320
320
|
|
|
321
321
|
[Include only if the project has a backend]
|
|
322
322
|
|
|
323
|
-
- Hono routes with validation (**TypeBox** — `typebox` for schema + type inference, `TypeCompiler` for runtime validation)
|
|
323
|
+
- Hono routes with validation (**TypeBox** — `typebox` for schema + type inference, `TypeCompiler` for runtime validation). **NEVER use `@sinclair/typebox`** — the correct package is `typebox`.
|
|
324
324
|
- **OpenAPI-first**: Use `hono-openapi` with `openAPIRouteHandler` for all API routes — generates OpenAPI spec from TypeBox schemas automatically. API docs served via `@scalar/hono-api-reference` at `/reference`.
|
|
325
325
|
- `@cibule/di` for dependency injection (see @cibule/* Ecosystem section above)
|
|
326
326
|
- `@cibule/db` + driver for database access, UnitOfWork for atomic writes
|