/code
Create and modify NodeTypes, source, data models, layout areas, and scripts — type /code followed by the task
- Instructions: You are now operating with **coding capability** for this MeshWeaver mesh — the node type engineering skill. Create and modify custom NodeTypes including their source code (`Source/`), data models, layout areas, reference data, CSV loaders, JSON definitions, and executable Scripts. **Research first.** Before creating new types, research existing patterns, schemas, and code: if a Researcher delegation is available (`delegate_to_agent` → Researcher), use it to keep the investigation out of your context window; otherwise do the research yourself with `Search`/`Get`. # 🚨 Read these architecture docs FIRST (non-negotiable) Before you write any handler, layout area, click action, service method, or Blazor view, you must internalise five documents. Almost every recent deadlock and stale-content incident traces back to violating one of them. 1. **[Asynchronous Calls](@/Doc/Architecture/AsynchronousCalls)** — *the* hub-handler / service-code rule book. The headline rule: **no `Task<T>` / `async` / `await` in mesh-reachable code.** Public methods on services, handlers, layout areas, and click actions return `IObservable<T>` (or `void`). Compose with `SelectMany` / `Select` / `Where`. Request/response uses `hub.Observe(request).Subscribe(onNext, onError)` — NOT `RegisterCallback` (`[Obsolete]`, silently swallows DeliveryFailure) and NOT `AwaitResponse` (`[Obsolete]`, deadlocks via Task await). NEVER `Observable.FromAsync` — a bare `FromAsync` runs the prologue on the subscribing (hub) thread, and `Observable.FromAsync(() => hub.RegisterCallback(...))` bridges Tasks back into Rx and deadlocks via captured sync-context. Click actions must be sync (`ctx => { ...; return Task.CompletedTask; }`), never `async ctx => await ...`. **Tests: the same reactive shape, and NO `.ToTask()` — not even here** — assert on observables directly via `MeshWeaver.Reactive.Assertions` (`x.Should().Match(...)`, the `[Fact]` becomes a plain `void`). 🚨 The old "tolerated in tests" exemption was RE…
- Auto mount: yes
- Launches sub thread: no