Skip to content
SheetForge

Plugin extension limits

Sixteen extension contracts ship, and every one of them joins with zero Core edits. This page states the boundaries of the shipped seams and lists what is still reserved.

Shipped extension contracts

What a plugin can add lists the full set of contracts.

All sixteen are found by discovery, with no assembly reference and no manifest to edit. The editor discovers them through Unity's TypeCache. The browser scans the uploaded assembly.

ContractsHow they join
The eleven Core contractsEach is handed a registry to register what it adds into
The five Editor contractsDiscovered and used as they are

The five Editor contracts are graph widget, inspector action, cell-editor provider, panel provider and source provider.

Referencing custom cell types

What. A registered cell parser can give its own notation full RecordId@Tab parity. The parser also implements IReferencingCellType, and its value implements IRefBearingValue. That tells the Core how to read and rewrite the key buried in the notation.

The column then gets everything a built-in reference gets:

  • integrity checking with nearest-match suggestions
  • key-rename propagation that preserves the payload, the rest of the notation around the key (attack:add:10 → power:add:10)
  • graph edges and ports, the ▾ picker, and back-reference counts
  • orphan detection (records that nothing references) and exported dropdown rules

Discovery is a cast of the already-registered parser. There is no new registration channel. A custom type that does not implement the interface is unchanged bit for bit. See Reference parity.

Boundaries. A payload may not contain ;. The Core splits a list cell into elements before your parser ever sees the text. A semicolon inside a value would be shredded into two elements. Wrapper types carry the same constraint.

@target must name a real sheet tab. A code registry's virtual tab is rejected with UnknownTargetTab, exactly as it is for RecordId@Tab. That restriction lets the Core's own unresolved-reference reporting and rename propagation apply unmodified.

Wrapper types

What. A plugin registers a generic value shape, written MyWrapper<T>, via ICellWrapperType. For example, Pair<int> reads 1~2. The Core resolves the inner type between the <> recursively. See Wrapper types.

Rejection rules. Three notations are rejected. One is allowed with a condition.

NotationResultRule
Pair<List<T>>RejectedA list may not sit inside a wrapper. List stays flat and outermost
Pair<int>@TabRejectedPut the @ on the inner leaf: Pair<RecordId@Tab>
Pair<int?>, Pair<int=1>RejectedOptionality and defaults are field-level, not part of the inner type
List<Pair<T>>AllowedThe wrapper's own delimiter must differ from ;

In List<Pair<T>>, the ; is the list separator. Choosing a different delimiter for the wrapper is a plugin-authoring responsibility. The Core cannot enforce it.

Custom structural markers

What. A plugin registers a @marker row, such as @yourMarker, via IStructuralMarkerDefinition and ISheetForgeMarkerPlugin. This generalizes the per-column validation of @overlap. The value is stored as FieldSchema.MarkerValues metadata.

Boundaries. A custom marker is for per-column metadata only. It owns only its per-column value validation. It does not take over parsing a whole-row data shape. Normalization stays the way to express data shapes.

Codegen does not bake marker values. Like @overlap, they are validation and display metadata only, invisible to the schema fingerprint. Nothing marker-related reaches the generated code or the baked SO.

Color presets

What. A plugin registers a color preset via ISheetForgeThemePlugin and ThemeRegistry. The preset appears in the Data Studio toolbar's theme menu, next to the built-in Default and High contrast presets. The web app's theme menu offers the same two built-in presets. It applies only if the user picks it. Registering never hijacks the screen.

A preset overrides only the slots it names. Every other slot keeps the product default, so presets stay valid as slots are added.

The inspectors keep the editor skin

Boundary. The theme covers everything the SheetForge windows draw. The Data Studio with its menus, pickers and dialogs, the plugin market and the Getting Started window draw every control themselves: buttons, fields, check boxes and scroll bars. So they all follow the theme.

What SheetForge draws inside Unity's own Inspector keeps following the editor skin. That is the settings asset inspector and the baked database inspector. Unity does not let a package restyle the editor skin.

If you choose Always light while the editor runs the dark skin, the SheetForge windows turn light while those inspectors stay dark. For a uniform look, set the editor skin to match.

Presets carry color only

Boundary. Presets carry colors, as 0xRRGGBB per slot. Spacing, font sizes and layout are not themable.

Translucent fills, such as badge backgrounds and the modal scrim, are not separately settable. They derive from a slot color plus a fixed alpha.

Declarative authoring surfaces

What. ISheetForgeStudioPlugin lets a plugin describe verbs, panels, column badges and cell-editor shapes as data. One registration is drawn by the editor and by the browser alike.

The vocabulary is bounded on purpose. It is fixed and grows only by appending:

  • five action placements
  • thirteen node kinds
  • seven cell-editor archetypes

The two newest archetypes are CurveEditor and GradientEditor. The built-in curve and gradient types use them.

Not a UI framework

Boundary. The vocabulary is not a UI framework. Arbitrary rendering, composite input and multi-step flows have no words in it. Adding them would mean maintaining a miniature UI toolkit forever.

IStudioPanelProvider is for those cases. Register it under the same id as a declarative panel. The editor then draws the rich panel, and the browser draws the declarative one.

There is no web-only escape hatch. The browser cannot load a UIToolkit type. Pretending otherwise would put a plugin's extension on one screen only.

An action has four powers

Boundary. An action's powers are exactly four:

  • stage one cell
  • stage several cells as one Undo step
  • focus a record
  • request a redraw

A plugin's verb is therefore an ordinary staged edit. It passes the same gate, pre-flight and reflect as a hand-typed one. The authoring session itself is deliberately not exposed.

When observers fire

IPipelineObserver fires at the end of an explicit import cycle. For observers, the rule is zero-fire, never wrong-fire. Two paths never reach that point at all:

  • a run that stops before the pipeline starts, because there are no active settings or the delivery mode's availability check refuses
  • a codegen→compile leg interrupted by a compile error

If you need "an import was attempted", pair the observer with the editor-side ImportEvents bus.

Custom delivery

What. A plugin adds a delivery mode with two small contracts. The two meet only at the mode id, and they are judged as one mode.

ContractAssemblyHow it joins
IDatabaseDeliveryStrategyEditorDiscovered like a source provider, so it appears in the settings dropdown
IDatabaseLoaderRuntimeRegistered by a call before the first load

See Custom delivery.

Boundaries. A mode's own asset cell type is an ordinary custom cell type. The delivery contract does not parse cells.

The gated cell types are the built-in pair, AssetRef and ResourceRef. A custom cell type is never gated, so a mode only chooses which of those two it accepts.

There is no shipped third-party implementation yet. A probe in SheetForge's own no-IVT test assembly compiles and exercises the pair, nothing more.

Designed but not built

These items are designed but not built, because they have no consumer yet.

Whole-row data-shape markers

An example is one marker that reads a 2D matrix as a single field. This is deliberately not built. A marker owns per-column validation, not row parsing.

Normalization is expressively complete. It combines references, a type column and List<T>.

The MarkerRegistry registration seam itself ships. Only this shape-parsing interpretation is reserved.

Marker values in generated code

Baking custom-marker values into generated code is out of scope. That holds until a consumer needs marker metadata as codegen constants or attributes.

Per-record and lazy-load containers

Per-record and lazy-load SO containers are design-complete and unbuilt. Current codegen produces per-tab whole-load Database SOs only.

Next steps