components
All repositories: gitoria
2.6 KB
\* hl:data — NEED EVALUATION, the one implementation every realm edge uses.A component's need is a member whose initializer calls a provider class(SPEC.md §9.2); the graph publishes each as { key, provider, method, args,project }. Evaluating one is: resolve the arguments against the caller'scontext — a folded constant, a route group's member, or a `session`field — call the provider method, and take the projected field. hl:web didthis per request and per push; hl:ipc does it per peer push. It lived inhl:web until the second edge existed (2026-09-01), which is when "shared"stopped being a word and became this plugin. *\\* Every need of one component, against the provider instances of the callingedge. One memo per evaluation: two needs fed by the same call cost ONE call. *\runNeeds(Hybrid needs \\ the graph's need list for the component&providers \\ class name → provider instance (the edge module's)¶ms \\ route groups; {} for a peer that matched no route&sdata \\ the session bag; {} for a peer with no session) {let out = {}let memo = {}for (need of needs) {out[need.key] = runNeed(&need, &providers, ¶ms, &sdata, &memo)}return out}\* One need: the value its MEMBER holds. `need.project` is the field taken offthe returned hybrid ("" = the member IS the return value). A provider readanswers for null arguments (the 074 contract), so an anonymous callerevaluates the same needs and simply sees nothing of anyone. *\runNeed(&need, &providers, ¶ms, &sdata, &memo) {let provider = providers[need.provider]if (provider == null) {return null}let args = []for (a of need.args) {if (a.group != null) {args[] = params[a.group]} else if (a.session != null) {if (a.session.length == 0) {args[] = sdata} else {args[] = sdata[a.session]}} else {args[] = a.value}}let ck = need.provider + "." + need.method + "(" + JSON.stringify(args) + ")"// a call that ANSWERED null is simply not memoized — repeating it is correctlet result = memo[ck]if (result == null) {result = callProvider(&provider, need.method, &args)memo[ck] = result}if (need.project.length == 0) {return result}if (result == null) {return null}return result[need.project]}// The provider call itself — the method name is DATA, so the call is computed.callProvider(&provider, method, &args) {if (args.length == 0) {return provider[method]()}if (args.length == 1) {return provider[method](args[0])}if (args.length == 2) {return provider[method](args[0], args[1])}return provider[method](args[0], args[1], args[2])}
Branches
- b27b
- mainmain branch
- vendor-day72
- vl27-resetkey
Latest commits
- bd4aa808Record VL24 deployment and live verificationmre
- e5b98ecfRun virtual-list gate before deploymentmre
- 2e9b4a8evirtual-list: into main, with centerId and scrollTop/onScroll (jukebox#20)mre
- 69954249Align all plugin sources with Hybriel day38bmre
- f740f666Re-vendor components to Hybriel set day38bmre
- 8176eb14Record CS23b deployment and live verificationmre
- 84e3ddaaRemove blank line before pagination Style closing bracemre
- a92298ddRecord exact CSS and same-date proof after specificity reviewmre
- c71a0abePreserve consumer theme specificity with nested tag rulesmre
- 64a2bc27Document CS23b style formatting proof and review statusmre
- a72b57cficons: nest Style rules in the language's formmre
- 927616e2pagination: nest Style rules in the language's formmre
- aab8ad29code-editor: nest Style rules in the language's formmre
- ba30727afile-upload: nest Style rules in the language's formmre
- 42fefa4emodal: nest Style rules in the language's formmre
- 6fd953e3range-picker: nest Style rules in the language's formmre
- f661951ddate-picker: nest Style rules in the language's formmre
- 363577e6media-player: nest Style rules in the language's formmre
- 0b3fd8c9comments: nest Style rules in the language's formmre
- 67e043c8plugins/web/README.md from hybriel cb9e480dmre