Commit Graph
2 Commits
Author SHA1 Message Date
waozi baf523bdc7 Declare the node host in its props header
include/kryon_node.h is deleted. runtime/node_props.kry declares KryonNodeEdit
— whose PropertyValue field is the property system's union in the handwritten
kryon_property.h host header — as a one-line "#type" record that imports that
header, and KryonNodeKindName/KryonNodeInit as "#extern #export" declarations.
The node host, kryon.h, and kryon_edit_host.h include the props header
directly.

Gates: generated-runtime-parity-test, fast-test, k2c/k2cpp/k2go-syntax-test,
go-runtime-test, examples-syntax-test, kryon-boundary-check, and the refreshed
public-API snapshot pass.
2026-09-21 03:05:10 -03:00
waozi 0a65540031 Migrate retained UI to .kry and fix the native C boundary
Move app shell, frame, locale, node, screen routes, theme state, and window
policy ownership into src/ui/*.kry, delete the replaced src/core owners, and
make generated public ABI the type source for capability and retained-node
records.

- runtime/capability_props.kry and runtime/node_props.kry generate the public
  capability and node type headers; handwritten headers keep only the C-only
  declarations (function-pointer typedefs, unions, host functions).
- k2c/k2cpp: terminate a same-line case body and map fixed-width casts
  (i32/i64/u8/f32/...) to their C types.
- locale.c matches the generated LocaleParseEntries argument order;
  locale_policy.kry keeps its return type on the signature line.
- ui_window.c renames the X11 dlopen shim symbols off the downstream app prefix.
- Refresh the canonical surface doc, public API snapshot, and test gates.

Verified: runtime parity (C+Go), k2c/k2cpp/k2go syntax, go runtime,
public-api-names, canonical-surface, kryon-boundary, public-api-snapshot,
laws, fast-test, smart-test.
2026-09-20 22:45:56 -03:00