structured-context 0.10.0 → 0.12.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.
- package/README.md +85 -25
- package/dist/api.d.ts +25 -5
- package/dist/api.js +22 -2
- package/dist/commands/diagram.d.ts +1 -0
- package/dist/commands/diagram.js +7 -1
- package/dist/commands/dump.d.ts +15 -2
- package/dist/commands/dump.js +18 -4
- package/dist/commands/miro-sync.d.ts +3 -0
- package/dist/commands/miro-sync.js +8 -0
- package/dist/commands/render.d.ts +4 -0
- package/dist/commands/render.js +64 -9
- package/dist/commands/schemas.d.ts +2 -2
- package/dist/commands/schemas.js +117 -24
- package/dist/commands/show.d.ts +1 -0
- package/dist/commands/show.js +7 -1
- package/dist/commands/spaces.d.ts +3 -1
- package/dist/commands/spaces.js +11 -4
- package/dist/commands/validate-file.js +20 -5
- package/dist/commands/validate.js +54 -21
- package/dist/config.d.ts +26 -13
- package/dist/config.js +104 -31
- package/dist/filter/augment-nodes.d.ts +3 -1
- package/dist/filter/augment-nodes.js +12 -7
- package/dist/filter/filter-nodes.js +1 -1
- package/dist/index.js +51 -35
- package/dist/load-space-graph.d.ts +42 -0
- package/dist/load-space-graph.js +53 -0
- package/dist/plugins/index.js +3 -1
- package/dist/plugins/loader.js +4 -4
- package/dist/plugins/markdown/extract-content-links.d.ts +23 -0
- package/dist/plugins/markdown/extract-content-links.js +123 -0
- package/dist/plugins/markdown/index.js +5 -5
- package/dist/plugins/markdown/parse-embedded.d.ts +6 -0
- package/dist/plugins/markdown/parse-embedded.js +50 -7
- package/dist/plugins/markdown/read-space.js +41 -5
- package/dist/plugins/markdown/render-directory.d.ts +11 -0
- package/dist/plugins/markdown/render-directory.js +130 -0
- package/dist/plugins/mermaid/index.d.ts +2 -0
- package/dist/plugins/mermaid/index.js +14 -0
- package/dist/plugins/{markdown → mermaid}/render-mermaid.js +17 -15
- package/dist/{integrations → plugins}/miro/cache.d.ts +1 -1
- package/dist/plugins/miro/index.d.ts +2 -0
- package/dist/plugins/miro/index.js +27 -0
- package/dist/{integrations → plugins}/miro/layout.d.ts +2 -2
- package/dist/{integrations → plugins}/miro/layout.js +3 -16
- package/dist/{integrations → plugins}/miro/styles.d.ts +2 -2
- package/dist/plugins/miro/sync.d.ts +7 -0
- package/dist/{integrations → plugins}/miro/sync.js +22 -39
- package/dist/plugins/util.d.ts +48 -1
- package/dist/plugins/util.js +143 -0
- package/dist/read/resolve-graph-edges.d.ts +1 -1
- package/dist/read/resolve-graph-edges.js +78 -27
- package/dist/read/wikilink-utils.d.ts +17 -0
- package/dist/read/wikilink-utils.js +40 -0
- package/dist/render/render.d.ts +4 -1
- package/dist/render/render.js +20 -16
- package/dist/schema/evaluate-rule.js +1 -0
- package/dist/schema/meta-schemas.d.ts +13 -0
- package/dist/schema/meta-schemas.js +50 -0
- package/dist/schema/metadata-contract.d.ts +343 -187
- package/dist/schema/metadata-contract.js +68 -30
- package/dist/schema/schema.d.ts +17 -9
- package/dist/schema/schema.js +283 -200
- package/dist/schema/validate-graph.d.ts +2 -1
- package/dist/schema/validate-graph.js +40 -23
- package/dist/schema/validate-rules.d.ts +5 -1
- package/dist/schema/validate-rules.js +20 -1
- package/dist/schemas/_knowledge_wiki.json +21 -21
- package/dist/schemas/_ost_strict.json +2 -2
- package/dist/schemas/_sctx_base.json +2 -2
- package/dist/schemas/_strategy_general.json +38 -38
- package/dist/schemas/generated/0.12.0/_structured_context_schema_meta.json +229 -0
- package/dist/schemas/generated/latest/_structured_context_schema_meta.json +229 -0
- package/dist/schemas/knowledge_wiki.json +10 -9
- package/dist/schemas/strategy_general.json +15 -14
- package/dist/schemas/strict_ost.json +17 -16
- package/dist/space-context.d.ts +27 -0
- package/dist/space-context.js +46 -0
- package/dist/space-graph.d.ts +9 -7
- package/dist/space-graph.js +7 -5
- package/dist/testing.d.ts +33 -0
- package/dist/testing.js +72 -0
- package/dist/types.d.ts +101 -8
- package/dist/validate.d.ts +15 -3
- package/dist/validate.js +55 -20
- package/docs/concepts.md +37 -4
- package/docs/config.md +10 -0
- package/docs/rules.md +49 -22
- package/docs/schemas.md +110 -35
- package/package.json +13 -8
- package/schemas/_knowledge_wiki.json +21 -21
- package/schemas/_ost_strict.json +2 -2
- package/schemas/_sctx_base.json +2 -2
- package/schemas/_strategy_general.json +38 -38
- package/schemas/generated/0.12.0/_structured_context_schema_meta.json +229 -0
- package/schemas/generated/latest/_structured_context_schema_meta.json +229 -0
- package/schemas/knowledge_wiki.json +10 -9
- package/schemas/strategy_general.json +15 -14
- package/schemas/strict_ost.json +17 -16
- package/dist/integrations/miro/sync.d.ts +0 -8
- package/dist/schemas/generated/_structured_context_schema_meta.json +0 -191
- package/schemas/generated/_structured_context_schema_meta.json +0 -191
- /package/dist/plugins/{markdown → mermaid}/render-mermaid.d.ts +0 -0
- /package/dist/{integrations → plugins}/miro/cache.js +0 -0
- /package/dist/{integrations → plugins}/miro/client.d.ts +0 -0
- /package/dist/{integrations → plugins}/miro/client.js +0 -0
- /package/dist/{integrations → plugins}/miro/styles.js +0 -0
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/_structured_context_schema_meta.json",
|
|
4
|
-
"title": "structured-context schema dialect",
|
|
5
|
-
"description": "Extends JSON Schema Draft-07 with top-level $metadata for hierarchy and rule metadata.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"allOf": [
|
|
8
|
-
{
|
|
9
|
-
"$ref": "http://json-schema.org/draft-07/schema#"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"properties": {
|
|
13
|
-
"$metadata": {
|
|
14
|
-
"type": "object",
|
|
15
|
-
"properties": {
|
|
16
|
-
"hierarchy": {
|
|
17
|
-
"type": "object",
|
|
18
|
-
"properties": {
|
|
19
|
-
"levels": {
|
|
20
|
-
"type": "array",
|
|
21
|
-
"minItems": 1,
|
|
22
|
-
"items": {
|
|
23
|
-
"oneOf": [
|
|
24
|
-
{
|
|
25
|
-
"type": "string",
|
|
26
|
-
"minLength": 1
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "object",
|
|
30
|
-
"properties": {
|
|
31
|
-
"type": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"minLength": 1
|
|
34
|
-
},
|
|
35
|
-
"field": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"minLength": 1
|
|
38
|
-
},
|
|
39
|
-
"fieldOn": {
|
|
40
|
-
"enum": ["child", "parent"]
|
|
41
|
-
},
|
|
42
|
-
"multiple": {
|
|
43
|
-
"type": "boolean"
|
|
44
|
-
},
|
|
45
|
-
"templateFormat": {
|
|
46
|
-
"enum": ["heading", "list", "table", "page"]
|
|
47
|
-
},
|
|
48
|
-
"matchers": {
|
|
49
|
-
"type": "array",
|
|
50
|
-
"items": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"minLength": 1
|
|
53
|
-
},
|
|
54
|
-
"minItems": 1
|
|
55
|
-
},
|
|
56
|
-
"embeddedTemplateFields": {
|
|
57
|
-
"type": "array",
|
|
58
|
-
"items": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"minLength": 1
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"selfRef": {
|
|
64
|
-
"type": "boolean"
|
|
65
|
-
},
|
|
66
|
-
"selfRefField": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"minLength": 1
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"required": ["type"],
|
|
72
|
-
"additionalProperties": false
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"allowSkipLevels": {
|
|
78
|
-
"type": "boolean"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"required": ["levels"],
|
|
82
|
-
"additionalProperties": false
|
|
83
|
-
},
|
|
84
|
-
"relationships": {
|
|
85
|
-
"type": "array",
|
|
86
|
-
"items": {
|
|
87
|
-
"type": "object",
|
|
88
|
-
"properties": {
|
|
89
|
-
"parent": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"minLength": 1
|
|
92
|
-
},
|
|
93
|
-
"type": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"minLength": 1
|
|
96
|
-
},
|
|
97
|
-
"field": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"minLength": 1
|
|
100
|
-
},
|
|
101
|
-
"fieldOn": {
|
|
102
|
-
"enum": ["child", "parent"]
|
|
103
|
-
},
|
|
104
|
-
"multiple": {
|
|
105
|
-
"type": "boolean"
|
|
106
|
-
},
|
|
107
|
-
"templateFormat": {
|
|
108
|
-
"enum": ["heading", "list", "table", "page"]
|
|
109
|
-
},
|
|
110
|
-
"matchers": {
|
|
111
|
-
"type": "array",
|
|
112
|
-
"items": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"minLength": 1
|
|
115
|
-
},
|
|
116
|
-
"minItems": 1
|
|
117
|
-
},
|
|
118
|
-
"embeddedTemplateFields": {
|
|
119
|
-
"type": "array",
|
|
120
|
-
"items": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"minLength": 1
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"required": ["parent", "type"],
|
|
127
|
-
"additionalProperties": false
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"aliases": {
|
|
131
|
-
"type": "object",
|
|
132
|
-
"additionalProperties": {
|
|
133
|
-
"type": "string",
|
|
134
|
-
"minLength": 1
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"rules": {
|
|
138
|
-
"type": "array",
|
|
139
|
-
"items": {
|
|
140
|
-
"oneOf": [
|
|
141
|
-
{
|
|
142
|
-
"type": "object",
|
|
143
|
-
"properties": {
|
|
144
|
-
"id": {
|
|
145
|
-
"type": "string",
|
|
146
|
-
"minLength": 1
|
|
147
|
-
},
|
|
148
|
-
"category": {
|
|
149
|
-
"enum": ["validation", "coherence", "workflow", "best-practice"]
|
|
150
|
-
},
|
|
151
|
-
"description": {
|
|
152
|
-
"type": "string",
|
|
153
|
-
"minLength": 1
|
|
154
|
-
},
|
|
155
|
-
"check": {
|
|
156
|
-
"type": "string",
|
|
157
|
-
"minLength": 1
|
|
158
|
-
},
|
|
159
|
-
"type": {
|
|
160
|
-
"type": "string",
|
|
161
|
-
"minLength": 1
|
|
162
|
-
},
|
|
163
|
-
"scope": {
|
|
164
|
-
"enum": ["global"]
|
|
165
|
-
},
|
|
166
|
-
"override": {
|
|
167
|
-
"type": "boolean"
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"required": ["id", "category", "description", "check"],
|
|
171
|
-
"additionalProperties": false
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"type": "object",
|
|
175
|
-
"properties": {
|
|
176
|
-
"$ref": {
|
|
177
|
-
"type": "string",
|
|
178
|
-
"minLength": 1
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"required": ["$ref"],
|
|
182
|
-
"additionalProperties": false
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"additionalProperties": false
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|