@unoverse-platform/studio 0.1.50 → 0.1.52

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 (2) hide show
  1. package/local/nodes.ts +17 -0
  2. package/package.json +1 -1
package/local/nodes.ts CHANGED
@@ -63,6 +63,23 @@ export async function loadLocalNodes(
63
63
  }
64
64
  }
65
65
 
66
+ // YAML manifest nodes (package.yaml + nodes/<Node>/*.yaml) — the DEFAULT authoring
67
+ // format, and what the scaffolded sample nodes are. The discovery above only finds
68
+ // legacy CODE packages (a package.json with an entry point), so without this pass a
69
+ // pure-YAML nodes/ folder — every new developer's — listed NOTHING at all. Explicit
70
+ // disk source: local Studio reads the developer's folder, never a database, and
71
+ // loadManifests registers into the same registry getAllNodes() reads.
72
+ try {
73
+ const manifests = await load(resolve(baseSrc, "manifests/index.ts"));
74
+ const msource = await load(resolve(baseSrc, "manifests/source.ts"));
75
+ const r = await (manifests.loadManifests as (s: unknown) => Promise<{ nodes: number; errors: string[] }>)(
76
+ (msource.diskSource as (d: string) => unknown)(nodesDir),
77
+ );
78
+ for (const e of r.errors) console.warn(`[studio] manifest node: ${e}`);
79
+ } catch (err) {
80
+ console.warn(`[studio] manifest nodes did not load: ${(err as Error).message}`);
81
+ }
82
+
66
83
  return {
67
84
  list: () => (registry.getAllNodes as () => unknown[])(),
68
85
  credentialTypes: () => (registry.getAllCredentialTypes as () => unknown[])(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unoverse-platform/studio",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "type": "module",
5
5
  "description": "Unoverse Studio: the local authoring app. Reads your own rx/ folder, no backend.",
6
6
  "scripts": {