glassbrain 0.1.1 → 0.1.2
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.
- package/dist/cli/glassbrain.js +17 -7
- package/package.json +1 -1
package/dist/cli/glassbrain.js
CHANGED
|
@@ -1297,13 +1297,23 @@ WRITE A GRAPH
|
|
|
1297
1297
|
Full schema: ${schema}
|
|
1298
1298
|
|
|
1299
1299
|
BUILD IT IN PASSES
|
|
1300
|
-
|
|
1301
|
-
kg/1-skeleton
|
|
1302
|
-
|
|
1303
|
-
kg/
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1300
|
+
Each pass is a new folder: copy the last one, edit the copy.
|
|
1301
|
+
kg/1-skeleton every node at the depth asked (or what a newcomer needs), read from
|
|
1302
|
+
the source (not memory), nested by parent; flag each one "stub"
|
|
1303
|
+
kg/2-filled descriptions (1-3 sentences, from the source), stub flags removed
|
|
1304
|
+
kg/3-linked edges a reader would agree with
|
|
1305
|
+
After each pass:
|
|
1306
|
+
glassbrain validate kg --strict fix everything it reports
|
|
1307
|
+
glassbrain diff kg/1-skeleton kg/2-filled only this pass's job: ~changed in 2,
|
|
1308
|
+
edges added in 3, nothing else
|
|
1309
|
+
At the end:
|
|
1310
|
+
glassbrain kg opens all passes; give the user the path
|
|
1311
|
+
|
|
1312
|
+
COLORS: kg/_profile.json, shared by every pass
|
|
1313
|
+
Give each kind a color, or every node and edge is drawn the same grey:
|
|
1314
|
+
{ "nodePalette": { "file": "#6366f1", "function": "#10b981" },
|
|
1315
|
+
"edgePalette": { "calls": "#2563eb" }, "placeholderFlags": ["stub"] }
|
|
1316
|
+
Layers (2.5D), sizes, labels and the rest: ${schema.replace("graph.schema", "profile.schema")}
|
|
1307
1317
|
|
|
1308
1318
|
COMMANDS
|
|
1309
1319
|
glassbrain <path> open in the browser (same as: view)
|
package/package.json
CHANGED