create-claude-workspace 1.1.66 → 1.1.68
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.
|
@@ -138,7 +138,7 @@ Options:
|
|
|
138
138
|
--delay <ms> Pause between tasks (default: 5000)
|
|
139
139
|
--cooldown <ms> Wait after error (default: 60000)
|
|
140
140
|
--process-timeout <ms> Max wall-clock time per invocation (default: 7200000 = 2h)
|
|
141
|
-
--activity-timeout <ms> Max silence before kill (default:
|
|
141
|
+
--activity-timeout <ms> Max silence before kill (default: 600000 = 10min)
|
|
142
142
|
--post-result-timeout <ms> Max wait after result (default: 30000 = 30s)
|
|
143
143
|
--project-dir <path> Project directory (default: cwd)
|
|
144
144
|
--skip-permissions Run with --dangerously-skip-permissions
|
|
@@ -34,7 +34,7 @@ You are a Senior Backend TypeScript Architect with deep expertise in server-side
|
|
|
34
34
|
## Architecture Patterns
|
|
35
35
|
|
|
36
36
|
**Onion Architecture per domain:**
|
|
37
|
-
- `domain/` —
|
|
37
|
+
- `domain/` — **TypeBox schemas** (single source of truth for all types), repository interfaces, value objects (no dependencies). Define schemas here, derive TypeScript types via `Static<typeof Schema>`. NEVER create separate interface files when a TypeBox schema exists — use `Static<>` everywhere (API, frontend, DB mapping).
|
|
38
38
|
- `business/` — use cases, business logic (depends on domain only)
|
|
39
39
|
- `api/` — Hono routes, validation, OpenAPI (depends on business + domain)
|
|
40
40
|
- `infrastructure/` — repository implementations, external APIs (depends on domain)
|
|
@@ -115,7 +115,8 @@ After generation, the architect's plan specifies what code to write IN the gener
|
|
|
115
115
|
| Use cases, business logic |
|
|
116
116
|
+-----------------------------------------------------+
|
|
117
117
|
| domain/ |
|
|
118
|
-
|
|
|
118
|
+
| TypeBox schemas (single source of truth), types, |
|
|
119
|
+
| repository interfaces, value objects |
|
|
119
120
|
+-----------------------------------------------------+
|
|
120
121
|
| infrastructure/ |
|
|
121
122
|
| Repository implementations (database, API, mock) |
|
|
@@ -131,6 +132,13 @@ Dependency rules:
|
|
|
131
132
|
- ui -> shared/ui, domain (for types)
|
|
132
133
|
- feature -> ui, data-access, shared/ui
|
|
133
134
|
|
|
135
|
+
**TypeBox as single source of truth**: Define TypeBox schemas in `domain/` layer (`libs/[domain]/domain/`). These schemas are the canonical definition — derive everything from them:
|
|
136
|
+
- **TypeScript types**: `Static<typeof MySchema>` — no separate interface definitions
|
|
137
|
+
- **API validation**: `openAPIRouteHandler` uses the same schemas for request/response validation + OpenAPI spec
|
|
138
|
+
- **Frontend types**: Frontend imports types from domain lib via `@[PREFIX]/[domain]-domain` — no copy-paste
|
|
139
|
+
- **DB mapping**: Infrastructure layer maps between DB rows and domain types
|
|
140
|
+
- NEVER duplicate type definitions. If a type exists as a TypeBox schema, use `Static<>` everywhere.
|
|
141
|
+
|
|
134
142
|
### @cibule/* Ecosystem (Preferred Libraries)
|
|
135
143
|
|
|
136
144
|
[Include only if project uses backend or fullstack architecture]
|