@bonsae/nrg-runtime 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/package.json +3 -23
  2. package/server/index.cjs +52 -42
  3. package/server/resources/nrg-client.js +6 -6
  4. package/internal/README.md +0 -30
  5. package/internal/client/components.mjs +0 -1287
  6. package/internal/client/index.mjs +0 -229
  7. package/internal/server/index.cjs +0 -298
  8. package/types/client.d.ts +0 -266
  9. package/types/internal/client/components.d.ts +0 -9
  10. package/types/internal/client/index.d.ts +0 -9
  11. package/types/internal/server/index.d.ts +0 -422
  12. package/types/server.d.ts +0 -941
  13. package/types/shims/brands.d.ts +0 -32
  14. package/types/shims/client/form/components/node-red-config-input.vue.d.ts +0 -125
  15. package/types/shims/client/form/components/node-red-editor-input.vue.d.ts +0 -124
  16. package/types/shims/client/form/components/node-red-input-label.vue.d.ts +0 -34
  17. package/types/shims/client/form/components/node-red-input.vue.d.ts +0 -123
  18. package/types/shims/client/form/components/node-red-json-schema-form.vue.d.ts +0 -772
  19. package/types/shims/client/form/components/node-red-select-input.vue.d.ts +0 -132
  20. package/types/shims/client/form/components/node-red-toggle.vue.d.ts +0 -36
  21. package/types/shims/client/form/components/node-red-typed-input.vue.d.ts +0 -151
  22. package/types/shims/client/globals.d.ts +0 -320
  23. package/types/shims/client/types.d.ts +0 -227
  24. package/types/shims/components.d.ts +0 -23
  25. package/types/shims/constants.d.ts +0 -4
  26. package/types/shims/schema-options.d.ts +0 -24
  27. package/types/shims/shims-vue.d.ts +0 -5
  28. package/types/shims/typebox.d.ts +0 -10
@@ -1,30 +0,0 @@
1
- # `internal/` — test-support surface (not public API)
2
-
3
- These modules are **not public API**. They exist so `@bonsae/nrg`'s published
4
- test utilities (`@bonsae/nrg/test/*`) can reach the framework internals they
5
- need to exercise a consumer's nodes:
6
-
7
- - **`server/`** — Node-side internals (the wiring symbol, context setup,
8
- validator init, and internal types) used by the server unit/integration test
9
- harness.
10
- - **`client/`** — the form composables (`index`, kept `.vue`-free) and the real
11
- Vue form components (`components`) used by the component test harness.
12
-
13
- ## Why they ship in the published package
14
-
15
- A consumer testing their nodes imports `@bonsae/nrg/test/*`, which at runtime
16
- imports these from the **installed** `@bonsae/nrg-runtime`. The test harness has
17
- to operate on the **same** runtime instance the consumer's nodes use — the
18
- `WIRE_HANDLERS` symbol and `instanceof` checks only hold when both sides share
19
- one copy. So these can't be bundled into the toolkit; they must be a real,
20
- importable part of this package. (There's no such thing as a published-but-hidden
21
- export — anything in `exports` is importable.)
22
-
23
- This is the same pattern as `svelte/internal` and `@angular/core/testing`:
24
- shipped, importable, but not part of the supported API.
25
-
26
- ## Stability
27
-
28
- **No semver guarantees.** Don't import `@bonsae/nrg-runtime/internal/*` directly
29
- in your own code — use the documented `@bonsae/nrg/test/*` utilities instead.
30
- These entry points can change in any release.