glassbrain 0.2.0-alpha.1 → 0.2.0-alpha.3

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/core.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './model.js';
2
2
  export * from './profile.js';
3
+ export * from './layers.js';
3
4
  export * from './view.js';
4
5
  export * from './elements.js';
5
6
  export * from './style.js';
package/dist/core.js CHANGED
@@ -1,4 +1,10 @@
1
- import "./chunks/chunk-LEYJCT6O.js";
1
+ import {
2
+ MAX_DERIVED_LAYERS,
3
+ childrenMap,
4
+ deriveLayers,
5
+ layerIndexOf,
6
+ orderedChildren
7
+ } from "./chunks/chunk-QJ4B3U76.js";
2
8
  import {
3
9
  CONTENT_SCALE,
4
10
  DARK_THEME,
@@ -70,10 +76,10 @@ import {
70
76
  untheme,
71
77
  validateModel,
72
78
  validateStructure
73
- } from "./chunks/chunk-VCM766BZ.js";
79
+ } from "./chunks/chunk-WW23WBYG.js";
74
80
  import {
75
81
  EN
76
- } from "./chunks/chunk-EJURBBFC.js";
82
+ } from "./chunks/chunk-H2WV3DTN.js";
77
83
  import "./chunks/chunk-ZA47FP7C.js";
78
84
  export {
79
85
  CONTENT_SCALE,
@@ -91,6 +97,7 @@ export {
91
97
  KEPT_FLAG,
92
98
  LABEL_MAX_EM,
93
99
  LIGHT_THEME,
100
+ MAX_DERIVED_LAYERS,
94
101
  NODE_BASE,
95
102
  PAST_KINDS,
96
103
  PLANE_HUES,
@@ -106,12 +113,14 @@ export {
106
113
  buildModel,
107
114
  changedSubset,
108
115
  checkEdit,
116
+ childrenMap,
109
117
  chromeStyle,
110
118
  cls,
111
119
  countByKind,
112
120
  defaultNodeColor,
113
121
  defaultProfile,
114
122
  defineProfile,
123
+ deriveLayers,
115
124
  diffModels,
116
125
  diffStyle,
117
126
  edgesOf,
@@ -121,11 +130,13 @@ export {
121
130
  isFiltering,
122
131
  isNarrowing,
123
132
  isNodeEl,
133
+ layerIndexOf,
124
134
  mergeSlices,
125
135
  mixHex,
126
136
  nodeClasses,
127
137
  nodeDiameter,
128
138
  nodeWeight,
139
+ orderedChildren,
129
140
  originView,
130
141
  originsOf,
131
142
  originsOfNode,
package/dist/index.js CHANGED
@@ -1,6 +1,12 @@
1
1
  'use client';
2
2
  import "./chunks/chunk-SA6RSWZP.js";
3
- import "./chunks/chunk-LEYJCT6O.js";
3
+ import {
4
+ MAX_DERIVED_LAYERS,
5
+ childrenMap,
6
+ deriveLayers,
7
+ layerIndexOf,
8
+ orderedChildren
9
+ } from "./chunks/chunk-QJ4B3U76.js";
4
10
  import {
5
11
  ALL_CONTROLS,
6
12
  DEFAULT_PLANES,
@@ -9,7 +15,7 @@ import {
9
15
  clearLayoutCache,
10
16
  computeLayout,
11
17
  projectPlanes
12
- } from "./chunks/chunk-CAXDADCO.js";
18
+ } from "./chunks/chunk-7C3QZVGJ.js";
13
19
  import {
14
20
  CONTENT_SCALE,
15
21
  DARK_THEME,
@@ -81,15 +87,15 @@ import {
81
87
  untheme,
82
88
  validateModel,
83
89
  validateStructure
84
- } from "./chunks/chunk-VCM766BZ.js";
90
+ } from "./chunks/chunk-WW23WBYG.js";
85
91
  import {
86
92
  DetailPanel,
87
93
  renderInline,
88
94
  renderMarkdown
89
- } from "./chunks/chunk-37BAJC3L.js";
95
+ } from "./chunks/chunk-PBF4KMQB.js";
90
96
  import {
91
97
  EN
92
- } from "./chunks/chunk-EJURBBFC.js";
98
+ } from "./chunks/chunk-H2WV3DTN.js";
93
99
  import "./chunks/chunk-YGRPNAXE.js";
94
100
  import "./chunks/chunk-ZA47FP7C.js";
95
101
  export {
@@ -112,6 +118,7 @@ export {
112
118
  KEPT_FLAG,
113
119
  LABEL_MAX_EM,
114
120
  LIGHT_THEME,
121
+ MAX_DERIVED_LAYERS,
115
122
  NODE_BASE,
116
123
  PAST_KINDS,
117
124
  PLANE_HUES,
@@ -128,6 +135,7 @@ export {
128
135
  buildModel,
129
136
  changedSubset,
130
137
  checkEdit,
138
+ childrenMap,
131
139
  chromeStyle,
132
140
  clearLayoutCache,
133
141
  cls,
@@ -136,6 +144,7 @@ export {
136
144
  defaultNodeColor,
137
145
  defaultProfile,
138
146
  defineProfile,
147
+ deriveLayers,
139
148
  diffModels,
140
149
  diffStyle,
141
150
  edgesOf,
@@ -145,11 +154,13 @@ export {
145
154
  isFiltering,
146
155
  isNarrowing,
147
156
  isNodeEl,
157
+ layerIndexOf,
148
158
  mergeSlices,
149
159
  mixHex,
150
160
  nodeClasses,
151
161
  nodeDiameter,
152
162
  nodeWeight,
163
+ orderedChildren,
153
164
  originView,
154
165
  originsOf,
155
166
  originsOfNode,
package/dist/internal.js CHANGED
@@ -1,6 +1,12 @@
1
1
  'use client';
2
2
  import "./chunks/chunk-SA6RSWZP.js";
3
- import "./chunks/chunk-LEYJCT6O.js";
3
+ import {
4
+ MAX_DERIVED_LAYERS,
5
+ childrenMap,
6
+ deriveLayers,
7
+ layerIndexOf,
8
+ orderedChildren
9
+ } from "./chunks/chunk-QJ4B3U76.js";
4
10
  import {
5
11
  ALL_CONTROLS,
6
12
  DEFAULT_PLANES,
@@ -42,7 +48,7 @@ import {
42
48
  shapeOf,
43
49
  skeletonLineOf,
44
50
  touchGestures
45
- } from "./chunks/chunk-CAXDADCO.js";
51
+ } from "./chunks/chunk-7C3QZVGJ.js";
46
52
  import {
47
53
  CONTENT_SCALE,
48
54
  DARK_THEME,
@@ -139,15 +145,15 @@ import {
139
145
  untheme,
140
146
  validateModel,
141
147
  validateStructure
142
- } from "./chunks/chunk-VCM766BZ.js";
148
+ } from "./chunks/chunk-WW23WBYG.js";
143
149
  import {
144
150
  DetailPanel,
145
151
  renderInline,
146
152
  renderMarkdown
147
- } from "./chunks/chunk-37BAJC3L.js";
153
+ } from "./chunks/chunk-PBF4KMQB.js";
148
154
  import {
149
155
  EN
150
- } from "./chunks/chunk-EJURBBFC.js";
156
+ } from "./chunks/chunk-H2WV3DTN.js";
151
157
  import "./chunks/chunk-YGRPNAXE.js";
152
158
  import "./chunks/chunk-ZA47FP7C.js";
153
159
  export {
@@ -180,6 +186,7 @@ export {
180
186
  KEPT_FLAG,
181
187
  LABEL_MAX_EM,
182
188
  LIGHT_THEME,
189
+ MAX_DERIVED_LAYERS,
183
190
  MIN_DOT,
184
191
  MIN_LINE,
185
192
  NODE_BASE,
@@ -207,6 +214,7 @@ export {
207
214
  buildModel,
208
215
  changedSubset,
209
216
  checkEdit,
217
+ childrenMap,
210
218
  chromeStyle,
211
219
  clearLayoutCache,
212
220
  clippedLength,
@@ -216,6 +224,7 @@ export {
216
224
  defaultNodeColor,
217
225
  defaultProfile,
218
226
  defineProfile,
227
+ deriveLayers,
219
228
  detailed,
220
229
  diffModels,
221
230
  diffPositions,
@@ -242,6 +251,7 @@ export {
242
251
  isNarrowing,
243
252
  isNodeEl,
244
253
  labelBox,
254
+ layerIndexOf,
245
255
  leavingOf,
246
256
  makeScore,
247
257
  mergeSlices,
@@ -249,6 +259,7 @@ export {
249
259
  nodeClasses,
250
260
  nodeDiameter,
251
261
  nodeWeight,
262
+ orderedChildren,
252
263
  originView,
253
264
  originsOf,
254
265
  originsOfNode,
@@ -0,0 +1,20 @@
1
+ import type { GraphModel, GraphNode } from './model.js';
2
+ import type { LayerSpec } from './profile.js';
3
+ /** Beyond this many ordered children the planes stop being an outline and become a stack of cards. */
4
+ export declare const MAX_DERIVED_LAYERS = 8;
5
+ export interface DerivedLayers {
6
+ /** Empty when the graph has no ordered siblings at the top of a single root. */
7
+ layers: LayerSpec[];
8
+ /** node id → layer id. Empty when `layers` is empty. */
9
+ layerOf: Map<string, string>;
10
+ /** The node whose children are the layers (the graph root), for messages. */
11
+ anchor?: string;
12
+ }
13
+ /** Ordered children of `id`, or null when that run is not ordered (all of them carry a distinct order, or none does). */
14
+ export declare function orderedChildren(children: Gy, id: string): GraphNode[] | null;
15
+ type Gy = Map<string, GraphNode[]>;
16
+ export declare function childrenMap(model: GraphModel): Gy;
17
+ export declare function deriveLayers(model: GraphModel, colors?: string[], force?: boolean): DerivedLayers;
18
+ /** Layers in reading order for a node id, for messages and the outline. */
19
+ export declare function layerIndexOf(derived: DerivedLayers, id: string): number;
20
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { CyElement } from '../elements.js';
2
+ import type { Positions } from './planes.js';
3
+ export interface OrderInfo {
4
+ /** child id → parent id (the element table's parent, virtual root included). */
5
+ parentOf: Map<string, string>;
6
+ /** Node ids in a numbered run, sorted; absent for unordered runs. */
7
+ orderedKids: Map<string, string[]>;
8
+ /** Every node id, for subtree walks. */
9
+ nodeIds: Set<string>;
10
+ /** At least one run is numbered (otherwise there is nothing to do). */
11
+ any: boolean;
12
+ }
13
+ /** Read `order` off the elements. Returns null when nothing is numbered: the layout then stays exactly as it was. */
14
+ export declare function readOrder(elements: CyElement[]): OrderInfo | null;
15
+ /** Pre-solve positions: ordered runs on arcs (clockwise, first at 12 o'clock), the rest by hash. */
16
+ export declare function orderSeed(elements: CyElement[], info: OrderInfo): Positions;
17
+ /** Post-pass: rotate every ordered run into place, sub-tree by sub-tree. */
18
+ export declare function enforceOrder(elements: CyElement[], info: OrderInfo, positions: Positions): Positions;
package/dist/model.d.ts CHANGED
@@ -6,6 +6,9 @@ export interface GraphNode {
6
6
  kind?: string;
7
7
  /** Compound parent node id: expresses "nested inside", the only source of structural hierarchy. */
8
8
  parent?: string;
9
+ /** Position among its siblings: every child of a parent carries one, or none does. The layout reads it
10
+ * clockwise, and a run of ordered siblings is what opens the layer view. */
11
+ order?: number;
9
12
  /** **Where it hung in the previous version** (filled by `diffModels`, only `moved` nodes in a union have it).
10
13
  *
11
14
  * An edge is defined by its two ends; **change one and it is another edge**. So "moved to another branch" is not a node attribute
@@ -16,7 +19,8 @@ export interface GraphNode {
16
19
  * `null` means "it was a top level in the previous version" (not the same as `undefined`, "no such information": in connected mode
17
20
  * top levels hang on the virtual root, which is also a real edge). Ordinary parse results never carry this field. */
18
21
  prevParent?: string | null;
19
- /** Layer id. Inferred by profile.layerOf by default. Multi-layer views / 2.5D planes group by it. */
22
+ /** Layer id. **Derived, never written in a file**: profile.layerOf (or the CLI's derived layers) assigns it
23
+ * from the ordered level a node hangs under. Multi-layer views / 2.5D planes group by it. */
20
24
  layer?: string;
21
25
  /** The **primary** source: who owns the content (what a future write-back writes to). Stamped automatically by parseSources. */
22
26
  origin?: string;
@@ -2,8 +2,8 @@
2
2
  "use client";
3
3
  import {
4
4
  DetailPanel
5
- } from "../chunks/chunk-37BAJC3L.js";
6
- import "../chunks/chunk-EJURBBFC.js";
5
+ } from "../chunks/chunk-PBF4KMQB.js";
6
+ import "../chunks/chunk-H2WV3DTN.js";
7
7
  import "../chunks/chunk-ZA47FP7C.js";
8
8
  export {
9
9
  DetailPanel as default
@@ -189,6 +189,13 @@ export interface GraphCanvasProps {
189
189
  onEdit?: (op: EditOp) => void;
190
190
  /** Replace the free-form part of the edit panel (label / kind / data, JSON) with the host's own editor. */
191
191
  renderEditor?: RenderEditor;
192
+ /** "Restructure" in ⋯: the host re-hangs and renumbers the graph (see cli/restructure.ts) and hands back a new model.
193
+ * Without it the item is absent. Pure callback: the library never edits. */
194
+ onRestructure?: () => void;
195
+ /** Why the layer button is grey. The button is always shown; this text goes in its popover. */
196
+ layerIssue?: string;
197
+ /** "Open the floors anyway" in that popover: the host rebuilds its profile with layers forced on. */
198
+ onForceLayers?: () => void;
192
199
  /**
193
200
  * How markdown in details (rendered by default) resolves relative URLs: images, links. Return null = cannot resolve
194
201
  * (link keeps only its text, image is not drawn). E.g. data extracted from a repository's docs resolves to that repository's raw file URLs.
@@ -2,10 +2,10 @@
2
2
  "use client";
3
3
  import {
4
4
  GraphCanvas
5
- } from "../chunks/chunk-CAXDADCO.js";
6
- import "../chunks/chunk-VCM766BZ.js";
7
- import "../chunks/chunk-37BAJC3L.js";
8
- import "../chunks/chunk-EJURBBFC.js";
5
+ } from "../chunks/chunk-7C3QZVGJ.js";
6
+ import "../chunks/chunk-WW23WBYG.js";
7
+ import "../chunks/chunk-PBF4KMQB.js";
8
+ import "../chunks/chunk-H2WV3DTN.js";
9
9
  import "../chunks/chunk-YGRPNAXE.js";
10
10
  import "../chunks/chunk-ZA47FP7C.js";
11
11
  export {
@@ -37,6 +37,11 @@ export interface ToolbarProps {
37
37
  onAdd?: (what: 'node' | 'edge') => void;
38
38
  /** "Relayout" in ⋯: another arrangement of the same data. Without it the item is absent. */
39
39
  onRelayout?: () => void;
40
+ /** "Restructure" in ⋯: re-hang and renumber to raise the shape score. Without it the item is absent. */
41
+ onRestructure?: () => void;
42
+ /** Why the layer button is grey (it is always shown). `onForceLayers` adds "open the floors anyway". */
43
+ layerIssue?: string;
44
+ onForceLayers?: () => void;
40
45
  }
41
46
  export default function Toolbar(p: ToolbarProps): import("react").JSX.Element;
42
47
  export declare function ZoomDock(p: {
package/dist/strings.d.ts CHANGED
@@ -24,6 +24,9 @@ export interface GraphStrings {
24
24
  stackLayer: (layer: string, on: boolean) => string;
25
25
  stack: string;
26
26
  stackTip: (on: boolean) => string;
27
+ layersOff: string;
28
+ forceLayers: string;
29
+ ok: string;
27
30
  more: string;
28
31
  origins: string;
29
32
  allOrigins: string;
@@ -37,6 +40,7 @@ export interface GraphStrings {
37
40
  legend: string;
38
41
  /** Names of the two legend entries without a kind name, and their tooltips. */
39
42
  legendPlainName: string;
43
+ noColor: string;
40
44
  legendPlain: string;
41
45
  legendContainsName: string;
42
46
  legendContains: string;
@@ -56,6 +60,7 @@ export interface GraphStrings {
56
60
  addEdge: string;
57
61
  /** The canvas ⋯ menu: lay out the same data again. */
58
62
  relayout: string;
63
+ restructure: string;
59
64
  edit: string;
60
65
  editNode: string;
61
66
  newNode: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glassbrain",
3
- "version": "0.2.0-alpha.1",
3
+ "version": "0.2.0-alpha.3",
4
4
  "description": "Know what your agent knows: open, diff and review the knowledge graphs agents write. Plain JSON in, one html file out.",
5
5
  "keywords": [
6
6
  "knowledge-graph",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://unpkg.com/glassbrain/schema/graph.schema.json",
4
4
  "title": "glassbrain graph",
5
- "description": "One file of a glassbrain knowledge graph. A graph is nodes plus edges; structure comes from `parent` (containment), not from edges. Several files in one folder are merged into one graph (same id = same node). Unknown fields are kept and shown in the detail panel.",
5
+ "description": "One file of a glassbrain knowledge graph. A graph is nodes plus edges; structure comes from `parent` (containment), not from edges. Every node carries `parent`: a node id, or null for the root. Several files in one folder are merged into one graph (same id = same node). Unknown fields are kept and shown in the detail panel.",
6
6
  "type": "object",
7
7
  "anyOf": [{ "required": ["nodes"] }, { "required": ["edges"] }],
8
8
  "properties": {
@@ -20,14 +20,14 @@
20
20
  "$defs": {
21
21
  "node": {
22
22
  "type": "object",
23
- "required": ["id"],
23
+ "required": ["id", "parent"],
24
24
  "properties": {
25
25
  "id": { "type": ["string", "number"], "description": "Stable identity. Keep it the same across versions: that is how a diff knows it is the same thing." },
26
26
  "label": { "type": "string", "description": "Display name. Falls back to `name`, then `id`." },
27
27
  "name": { "type": "string", "description": "Alias of `label`." },
28
28
  "kind": { "type": "string", "description": "What sort of thing this is. Colors come from the profile's `nodePalette[kind]`; kinds not in the palette are drawn as skeleton." },
29
- "parent": { "type": "string", "description": "Id of the node this one sits inside. This is the only source of structure: the layout is built from it." },
30
- "layer": { "type": "string", "description": "Layer id (for the 2.5D plane view). Defaults to the profile's first layer." },
29
+ "parent": { "type": ["string", "null"], "description": "Id of the node this one sits inside; null for the root. Required: the only source of structure, and the layout, the layers and the outline are all built from it." },
30
+ "order": { "type": "number", "exclusiveMinimum": 0, "description": "Position among its siblings (1, 2, 3…; 3.5 inserts between 3 and 4). Either every child of a parent has one or none does, and no two siblings share one." },
31
31
  "flags": { "type": "array", "items": { "type": "string" }, "description": "Boolean markers; each becomes a CSS-like class. A flag listed in the profile's `placeholderFlags` draws the node as a placeholder." },
32
32
  "description": { "type": "string", "description": "Markdown shown in the detail panel. `[text](node:<id>)` links jump to another node." }
33
33
  },
@@ -2,57 +2,129 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://unpkg.com/glassbrain/schema/profile.schema.json",
4
4
  "title": "glassbrain profile (_profile.json)",
5
- "description": "The declarative part of a glassbrain profile, as a `_profile.json` next to the graph files. Everything is optional: with no profile a graph still renders (kinds without a color are drawn as skeleton). Parsers, merge and domain validation are code and live in a TypeScript profile instead.",
5
+ "description": "The declarative part of a glassbrain profile, as a `_profile.json` next to the graph files. Everything is optional: with no profile a graph still renders (kinds without a color are drawn as skeleton). Layers are not configured here: they are derived from `order` in the graph. Parsers, merge and domain validation are code and live in a TypeScript profile instead.",
6
6
  "type": "object",
7
7
  "properties": {
8
- "layers": {
8
+ "nodePalette": {
9
+ "$ref": "#/$defs/colors",
10
+ "description": "Node kind → color. Kinds not listed are skeleton."
11
+ },
12
+ "edgePalette": {
13
+ "$ref": "#/$defs/colors",
14
+ "description": "Edge kind → color."
15
+ },
16
+ "nodeSize": {
17
+ "$ref": "#/$defs/numbers",
18
+ "description": "Node kind → size multiplier (1 = default)."
19
+ },
20
+ "edgeWidth": {
21
+ "$ref": "#/$defs/numbers",
22
+ "description": "Edge kind → width multiplier."
23
+ },
24
+ "placeholderFlags": {
9
25
  "type": "array",
10
- "description": "Layers for the 2.5D plane view. One default layer if omitted.",
11
26
  "items": {
12
- "type": "object",
13
- "required": ["id", "label"],
14
- "properties": {
15
- "id": { "type": "string" },
16
- "label": { "type": "string" },
17
- "z": { "type": "number", "description": "Plane order: 0 is the bottom." },
18
- "color": { "type": "string", "description": "Hue of the plane." },
19
- "structural": { "type": "boolean", "description": "false = placed around the main structure instead of taking part in it." }
27
+ "type": "string"
28
+ },
29
+ "description": "Nodes with any of these flags are drawn as placeholders (declared, not yet filled)."
30
+ },
31
+ "kindLabels": {
32
+ "$ref": "#/$defs/strings",
33
+ "description": "Kind → human-readable name (nodes and edges share this map)."
34
+ },
35
+ "edgeLabels": {
36
+ "$ref": "#/$defs/strings",
37
+ "description": "Same as kindLabels, for edge kinds; merged into it."
38
+ },
39
+ "appearance": {
40
+ "type": "object",
41
+ "description": "View defaults only. Layers themselves are derived from the graph: a run of ordered siblings is one layer.",
42
+ "properties": {
43
+ "defaultLayers": {
44
+ "type": "boolean",
45
+ "description": "Open with the layer (2.5D plane) view on when the graph has ordered siblings. Default false."
46
+ },
47
+ "layerColors": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "string"
51
+ },
52
+ "description": "Hue per layer, in order. Defaults to the theme's palette."
20
53
  }
21
54
  }
22
55
  },
23
- "nodePalette": { "$ref": "#/$defs/colors", "description": "Node kind → color. Kinds not listed are skeleton." },
24
- "edgePalette": { "$ref": "#/$defs/colors", "description": "Edge kind → color." },
25
- "nodeSize": { "$ref": "#/$defs/numbers", "description": "Node kind → size multiplier (1 = default)." },
26
- "edgeWidth": { "$ref": "#/$defs/numbers", "description": "Edge kind → width multiplier." },
27
- "placeholderFlags": { "type": "array", "items": { "type": "string" }, "description": "Nodes with any of these flags are drawn as placeholders (declared, not yet filled)." },
28
- "kindLabels": { "$ref": "#/$defs/strings", "description": "Kind → human-readable name (nodes and edges share this map)." },
29
- "edgeLabels": { "$ref": "#/$defs/strings", "description": "Same as kindLabels, for edge kinds; merged into it." },
30
- "style": { "type": "array", "description": "Extra cytoscape style rules, appended after the base style." },
56
+ "style": {
57
+ "type": "array",
58
+ "description": "Extra cytoscape style rules, appended after the base style."
59
+ },
31
60
  "detail": {
32
61
  "type": "object",
33
62
  "description": "Detail panel field tables.",
34
63
  "properties": {
35
- "line": { "$ref": "#/$defs/fields" },
36
- "list": { "$ref": "#/$defs/fields" },
37
- "skip": { "type": "array", "items": { "type": "string" } },
38
- "flagNotes": { "$ref": "#/$defs/strings" }
64
+ "line": {
65
+ "$ref": "#/$defs/fields"
66
+ },
67
+ "list": {
68
+ "$ref": "#/$defs/fields"
69
+ },
70
+ "skip": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "string"
74
+ }
75
+ },
76
+ "flagNotes": {
77
+ "$ref": "#/$defs/strings"
78
+ }
39
79
  }
40
80
  },
41
- "singleRoot": { "type": "boolean", "description": "Wrap several top-level nodes in one root box (default true)." },
42
- "rootLabel": { "type": "string" },
43
- "diffIgnore": { "type": "array", "items": { "type": "string" }, "description": "Node fields that do not count as a change when diffing (fields every rebuild rewrites, e.g. cluster ids or line numbers). Used by the glassbrain CLI." }
81
+ "rootLabel": {
82
+ "type": "string"
83
+ },
84
+ "diffIgnore": {
85
+ "type": "array",
86
+ "items": {
87
+ "type": "string"
88
+ },
89
+ "description": "Node fields that do not count as a change when diffing (fields every rebuild rewrites, e.g. cluster ids or line numbers). Used by the glassbrain CLI."
90
+ }
44
91
  },
45
92
  "additionalProperties": true,
46
93
  "$defs": {
47
- "colors": { "type": "object", "additionalProperties": { "type": "string" } },
48
- "numbers": { "type": "object", "additionalProperties": { "type": "number" } },
49
- "strings": { "type": "object", "additionalProperties": { "type": "string" } },
94
+ "colors": {
95
+ "type": "object",
96
+ "additionalProperties": {
97
+ "type": "string"
98
+ }
99
+ },
100
+ "numbers": {
101
+ "type": "object",
102
+ "additionalProperties": {
103
+ "type": "number"
104
+ }
105
+ },
106
+ "strings": {
107
+ "type": "object",
108
+ "additionalProperties": {
109
+ "type": "string"
110
+ }
111
+ },
50
112
  "fields": {
51
113
  "type": "array",
52
114
  "items": {
53
115
  "type": "object",
54
- "required": ["key", "label"],
55
- "properties": { "key": { "type": "string" }, "label": { "type": "string" } }
116
+ "required": [
117
+ "key",
118
+ "label"
119
+ ],
120
+ "properties": {
121
+ "key": {
122
+ "type": "string"
123
+ },
124
+ "label": {
125
+ "type": "string"
126
+ }
127
+ }
56
128
  }
57
129
  }
58
130
  }
File without changes