@decantr/core 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decantr/core",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Decantr core — execution-pack compiler primitives and shared Decantr utilities",
5
5
  "author": "Decantr AI",
6
6
  "license": "MIT",
@@ -35,12 +35,15 @@
35
35
  "dist",
36
36
  "schema"
37
37
  ],
38
+ "engines": {
39
+ "node": ">=20"
40
+ },
38
41
  "publishConfig": {
39
42
  "access": "public"
40
43
  },
41
44
  "dependencies": {
42
- "@decantr/essence-spec": "1.0.5",
43
- "@decantr/registry": "1.0.3"
45
+ "@decantr/essence-spec": "1.0.6",
46
+ "@decantr/registry": "1.0.4"
44
47
  },
45
48
  "devDependencies": {},
46
49
  "scripts": {
@@ -171,6 +171,18 @@
171
171
  },
172
172
  "layout": {
173
173
  "$ref": "#/$defs/nonEmptyString"
174
+ },
175
+ "presetDescription": {
176
+ "type": "string",
177
+ "description": "Per-preset prose copied from pattern.presets[preset].description. Rendered by the page-pack markdown as preset-specific guidance."
178
+ },
179
+ "interactions": {
180
+ "type": "array",
181
+ "description": "Declared interaction requirements copied from the pattern contract.",
182
+ "items": {
183
+ "type": "string",
184
+ "minLength": 1
185
+ }
174
186
  }
175
187
  },
176
188
  "additionalProperties": false
@@ -89,6 +89,11 @@
89
89
  "items": {
90
90
  "$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/pagePattern"
91
91
  }
92
+ },
93
+ "directives": {
94
+ "type": "array",
95
+ "description": "Execution-level directives emitted into page-pack rendering.",
96
+ "items": { "type": "string", "minLength": 1 }
92
97
  }
93
98
  },
94
99
  "additionalProperties": false
@@ -70,6 +70,81 @@
70
70
  "features": {
71
71
  "$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/stringArray"
72
72
  },
73
+ "navigation": {
74
+ "type": "object",
75
+ "description": "Project-level navigation and command-palette obligations.",
76
+ "required": ["commandPalette", "hotkeys"],
77
+ "properties": {
78
+ "commandPalette": {
79
+ "oneOf": [
80
+ { "type": "boolean" },
81
+ {
82
+ "type": "object",
83
+ "properties": {
84
+ "trigger": { "type": "string" },
85
+ "placeholder": { "type": "string" },
86
+ "width": { "type": "string" },
87
+ "styling": {
88
+ "type": "string",
89
+ "enum": ["modal", "sheet", "inline", "fullscreen"]
90
+ },
91
+ "commands": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "object",
95
+ "required": ["id", "label"],
96
+ "properties": {
97
+ "id": { "type": "string", "minLength": 1 },
98
+ "label": { "type": "string", "minLength": 1 },
99
+ "section": { "type": "string" },
100
+ "hotkey": { "type": "string" },
101
+ "action": { "type": "string" },
102
+ "route": { "type": "string" }
103
+ },
104
+ "additionalProperties": false
105
+ }
106
+ }
107
+ },
108
+ "additionalProperties": false
109
+ }
110
+ ]
111
+ },
112
+ "hotkeys": {
113
+ "type": "array",
114
+ "items": {
115
+ "type": "object",
116
+ "required": ["key"],
117
+ "properties": {
118
+ "key": { "type": "string", "minLength": 1 },
119
+ "route": { "type": "string" },
120
+ "label": { "type": "string" },
121
+ "semantics": {
122
+ "type": "object",
123
+ "properties": {
124
+ "chord_window_ms": { "type": "number" },
125
+ "input_guard": { "type": "boolean" },
126
+ "modifier_suppression": { "type": "boolean" },
127
+ "match_case": { "type": "boolean" }
128
+ },
129
+ "additionalProperties": false
130
+ }
131
+ },
132
+ "additionalProperties": false
133
+ }
134
+ },
135
+ "hotkeySemantics": {
136
+ "type": "object",
137
+ "properties": {
138
+ "chord_window_ms": { "type": "number" },
139
+ "input_guard": { "type": "boolean" },
140
+ "modifier_suppression": { "type": "boolean" },
141
+ "match_case": { "type": "boolean" }
142
+ },
143
+ "additionalProperties": false
144
+ }
145
+ },
146
+ "additionalProperties": false
147
+ },
73
148
  "routes": {
74
149
  "type": "array",
75
150
  "items": {