flowrs-engine/crates/flowrs-openui/PROVENANCE.md
flowRS fd958c0547 flowRS engine, cut from flowRS 3451b065
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 19:04:39 -05:00

25 lines
2.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# flowrs-openui: where the code and the fixtures came from
flowrs-openui is MIT OR Apache-2.0 (`LICENSE-MIT`, `LICENSE-APACHE`), and is a port of MIT
code by Thesys Inc. The MIT notice is in `LICENSES/OpenUI-MIT.txt`. No code was copied from the `openui`
crate (`openui-rs`), and no `@openuidev` JavaScript is shipped or run.
Upstream: <https://github.com/thesysdev/openui> at commit
`9d73d17d2bbac565672a85e78f6eb7740cb0d9ca` (2026-10-23), fetched anonymously.
| flowRS file | Came from | What was taken | Licence |
|---|---|---|---|
| `src/lex.rs` | `spec/language.md` §1.2–1.4, §4; `packages/lang-core/src/parser/lexer.ts`, `statements.ts`, and `stripFences`/`stripComments` in `parser.ts` | Source preparation, the lexer, implicit closing, statement boundaries | MIT |
| `src/expr.rs` | §1.5–1.6; `parser/expressions.ts` | The Pratt parser | MIT |
| `src/library.rs` | prompt.md §2; `compileSchema` in `parser/parser.ts`, `parser/builtins.ts`, `buildParamsSignature` in `parser/validation.ts` | LibrarySpec reading, the built-in call registry, signatures | MIT |
| `src/materialize.rs` | §2.3, §8; `parser/materialize.ts`, `parser/validation.ts` | Reference resolution, positional-to-named props, schema validation and the edge rule, error messages | MIT |
| `src/parse.rs` | §2, §4; `parser/parser.ts` | Statement kinds, the entry, orphans, the batch and streaming parsers | MIT |
| `src/eval.rs` | §3, §5.2, §6.3; `runtime/evaluator.ts`, `evaluate-tree.ts`, `evaluate-prop.ts`, `parser/builtins.ts` | Evaluation, built-ins, functions, actions, bindings | MIT |
| `src/value.rs` | §3.1; `toNumber` in `parser/builtins.ts`; ECMA-262 `ToNumber`, `IsLooselyEqual`, `Number::toString` | Values and coercions | MIT (port); ECMA-262 is a specification |
| `src/merge.rs` | §7; `parser/merge.ts` | The edit merge | MIT |
| `src/serialize.rs` | §9.2; `parser/serialize.ts` | Tree to source | MIT |
| `src/rules.rs` | §5.4; `utils/validation.ts` | Validation rules (the `pattern` matcher is new) | MIT |
| `src/session.rs` | §5–§6; `runtime/store.ts`, `queryManager.ts`, `state-field.ts`; `packages/react-lang/src/hooks/useOpenUIState.ts` | State store, forms, queries, mutations, actions, host events | MIT |
| `src/error.rs` | §8.3; `OpenUIError` in `parser/types.ts` | The error object | MIT |
| `tests/common/mod.rs` | `packages/lang-core/src/__tests__/conformance.test.ts`, `packages/react-lang/src/__tests__/conformance.interactions.test.tsx` | The summary and comparison rules of the conformance runners | MIT |
| `tests/fixtures/1.0/**` | `spec/fixtures/1.0/**` | Copied unchanged: 59 cases, their READMEs and `library.json` | MIT |