structured-context 0.9.2 → 0.10.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.
@@ -2,260 +2,18 @@
2
2
  "$schema": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/_structured_context_schema_meta.json",
3
3
  "$id": "sctx://strategy_general",
4
4
  "title": "Strategy and opportunity ladder",
5
- "description": "Validates frontmatter for space node files",
6
- "$metadata": {
7
- "hierarchy": {
8
- "levels": [
9
- "vision",
10
- "mission",
11
- { "type": "goal", "selfRef": true, "matchers": ["Goals"] },
12
- { "type": "opportunity", "selfRef": true, "matchers": ["Opportunities"] },
13
- {
14
- "type": "solution",
15
- "selfRef": true,
16
- "matchers": ["Solutions", "Potential solutions", "Solutions considered", "Possible solutions"]
17
- },
18
- "experiment"
19
- ]
20
- },
21
- "aliases": {
22
- "outcome": "goal",
23
- "assumption_test": "experiment",
24
- "test": "experiment"
25
- },
26
- "relationships": [
27
- {
28
- "parent": "opportunity",
29
- "type": "problem_statement",
30
- "templateFormat": "heading",
31
- "matchers": ["Problem statement", "What problem are we solving?"],
32
- "multiple": false
33
- },
34
- {
35
- "parent": "opportunity",
36
- "type": "assumption",
37
- "templateFormat": "table",
38
- "matchers": ["Assumptions", "^Assumptions?$"],
39
- "embeddedTemplateFields": ["assumption", "status", "confidence"],
40
- "multiple": true
41
- }
42
- ]
43
- },
5
+ "description": "Validates frontmatter for space node files. Composes strategy_general entities from the bundled partial. Override the hierarchy in $metadata to customize the level structure.",
6
+ "allOf": [{ "$ref": "sctx://_strategy_general" }],
44
7
  "oneOf": [
45
- {
46
- "type": "object",
47
- "allOf": [{ "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" }],
48
- "properties": {
49
- "type": { "const": "dashboard" }
50
- },
51
- "required": ["type"],
52
- "additionalProperties": true
53
- },
54
- {
55
- "type": "object",
56
- "allOf": [{ "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" }],
57
- "properties": {
58
- "type": { "enum": ["ost_on_a_page", "space_on_a_page"] }
59
- },
60
- "required": ["type"],
61
- "additionalProperties": true
62
- },
63
- {
64
- "type": "object",
65
- "allOf": [
66
- { "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
67
- { "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" }
68
- ],
69
- "properties": {
70
- "type": { "const": "vision" }
71
- },
72
- "required": ["type"],
73
- "not": { "required": ["parent"] },
74
- "additionalProperties": true,
75
- "examples": [
76
- {
77
- "type": "vision",
78
- "status": "active"
79
- }
80
- ]
81
- },
82
- {
83
- "type": "object",
84
- "allOf": [
85
- { "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
86
- { "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
87
- { "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" }
88
- ],
89
- "properties": {
90
- "type": { "const": "mission" }
91
- },
92
- "required": ["type"],
93
- "additionalProperties": true,
94
- "examples": [
95
- {
96
- "type": "mission",
97
- "status": "active",
98
- "parent": "[[Personal Vision]]"
99
- }
100
- ]
101
- },
102
- {
103
- "type": "object",
104
- "allOf": [
105
- { "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
106
- { "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
107
- { "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" }
108
- ],
109
- "properties": {
110
- "type": { "enum": ["goal", "outcome"] },
111
- "priority": { "$ref": "sctx://_sctx_base#/$defs/priority" }
112
- },
113
- "required": ["type"],
114
- "additionalProperties": true,
115
- "examples": [
116
- {
117
- "type": "goal",
118
- "status": "active",
119
- "parent": "[[My Mission (2026)]]",
120
- "priority": "p2"
121
- }
122
- ]
123
- },
124
- {
125
- "type": "object",
126
- "allOf": [
127
- { "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
128
- { "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
129
- { "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" }
130
- ],
131
- "properties": {
132
- "type": { "const": "opportunity" },
133
- "priority": { "$ref": "sctx://_sctx_base#/$defs/priority" },
134
- "impact": { "$ref": "sctx://_sctx_base#/$defs/assessment" },
135
- "feasibility": { "$ref": "sctx://_sctx_base#/$defs/assessment" },
136
- "resources": { "$ref": "sctx://_sctx_base#/$defs/assessment" },
137
- "timeline": {
138
- "type": "string",
139
- "description": "Timeline estimate (e.g., S-M, M-L)"
140
- },
141
- "next_steps": {
142
- "type": "string",
143
- "description": "Next steps for this opportunity"
144
- }
145
- },
146
- "required": ["type"],
147
- "additionalProperties": true,
148
- "examples": [
149
- {
150
- "type": "opportunity",
151
- "status": "identified",
152
- "parent": "[[Career Growth]]",
153
- "priority": "p2"
154
- }
155
- ]
156
- },
157
- {
158
- "type": "object",
159
- "allOf": [
160
- { "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
161
- { "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
162
- { "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" }
163
- ],
164
- "properties": {
165
- "type": { "const": "solution" },
166
- "priority": { "$ref": "sctx://_sctx_base#/$defs/priority" },
167
- "impact": { "$ref": "sctx://_sctx_base#/$defs/assessment" },
168
- "feasibility": { "$ref": "sctx://_sctx_base#/$defs/assessment" },
169
- "resources": { "$ref": "sctx://_sctx_base#/$defs/assessment" },
170
- "timeline": {
171
- "type": "string",
172
- "description": "Timeline estimate (e.g., S-M, M-L)"
173
- },
174
- "next_steps": {
175
- "type": "string",
176
- "description": "Next steps for this solution"
177
- }
178
- },
179
- "required": ["type"],
180
- "additionalProperties": true,
181
- "examples": [
182
- {
183
- "type": "solution",
184
- "status": "identified",
185
- "parent": "[[Some Opportunity]]",
186
- "priority": "p3"
187
- }
188
- ]
189
- },
190
- {
191
- "type": "object",
192
- "allOf": [
193
- { "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
194
- { "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
195
- { "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" }
196
- ],
197
- "properties": {
198
- "type": { "enum": ["experiment", "assumption_test", "test"] }
199
- },
200
- "required": ["type"],
201
- "additionalProperties": true,
202
- "examples": [
203
- {
204
- "type": "experiment",
205
- "status": "exploring",
206
- "parent": "[[Build a Side Project]]"
207
- },
208
- {
209
- "type": "test",
210
- "status": "active",
211
- "parent": "[[Mobile App Solution]]"
212
- }
213
- ]
214
- },
215
- {
216
- "type": "object",
217
- "allOf": [
218
- { "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
219
- { "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
220
- { "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" }
221
- ],
222
- "properties": {
223
- "type": { "const": "assumption" },
224
- "confidence": {
225
- "type": "string",
226
- "enum": ["low", "medium", "high"],
227
- "description": "Confidence level in this assumption"
228
- }
229
- },
230
- "required": ["type"],
231
- "additionalProperties": true,
232
- "examples": [
233
- {
234
- "type": "assumption",
235
- "status": "identified",
236
- "parent": "[[Some Opportunity]]",
237
- "confidence": "medium"
238
- }
239
- ]
240
- },
241
- {
242
- "type": "object",
243
- "allOf": [
244
- { "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
245
- { "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
246
- { "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" }
247
- ],
248
- "properties": {
249
- "type": { "const": "problem_statement" }
250
- },
251
- "required": ["type"],
252
- "additionalProperties": true,
253
- "examples": [
254
- {
255
- "type": "problem_statement",
256
- "status": "identified"
257
- }
258
- ]
259
- }
8
+ { "$ref": "sctx://_strategy_general#/$defs/dashboard" },
9
+ { "$ref": "sctx://_strategy_general#/$defs/ost_on_a_page" },
10
+ { "$ref": "sctx://_strategy_general#/$defs/vision" },
11
+ { "$ref": "sctx://_strategy_general#/$defs/mission" },
12
+ { "$ref": "sctx://_strategy_general#/$defs/goal" },
13
+ { "$ref": "sctx://_strategy_general#/$defs/opportunity" },
14
+ { "$ref": "sctx://_strategy_general#/$defs/solution" },
15
+ { "$ref": "sctx://_strategy_general#/$defs/experiment" },
16
+ { "$ref": "sctx://_strategy_general#/$defs/assumption" },
17
+ { "$ref": "sctx://_strategy_general#/$defs/problem_statement" }
260
18
  ]
261
19
  }
@@ -1,12 +0,0 @@
1
- /**
2
- * Public API for external structured-context plugins.
3
- *
4
- * Import from this module to get the types needed to implement a StructuredContextPlugin:
5
- *
6
- * import type { StructuredContextPlugin, PluginContext, ParseResult } from 'structured-context/plugin-api';
7
- */
8
- export type { AnySchemaObject, SchemaObject, ValidateFunction } from 'ajv';
9
- export type { ParseHook, ParseResult, PluginContext, RenderFormat, RenderHook, RenderOptions, StructuredContextPlugin, TemplateSyncHook, TemplateSyncOptions, } from './plugins/util';
10
- export type { SharedEmbeddingFields } from './schema/metadata-contract';
11
- export type { SpaceGraph } from './space-graph';
12
- export type { BaseNode, EdgeDefinition, HierarchyLevel, ParseIssue, Relationship, SchemaMetadata, SchemaWithMetadata, SpaceContext, SpaceNode, UnresolvedRef, } from './types';
@@ -1,7 +0,0 @@
1
- /**
2
- * Public API for external structured-context plugins.
3
- *
4
- * Import from this module to get the types needed to implement a StructuredContextPlugin:
5
- *
6
- * import type { StructuredContextPlugin, PluginContext, ParseResult } from 'structured-context/plugin-api';
7
- */