dev-cockpit 0.3.2 → 0.3.4
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/cockpit/panes/FilterModal.d.ts.map +1 -1
- package/dist/cockpit/panes/Health.d.ts.map +1 -1
- package/dist/cockpit/state/store.d.ts +13 -0
- package/dist/cockpit/state/store.d.ts.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/init-config-wizard.d.ts.map +1 -1
- package/dist/core/config.d.ts +24 -7
- package/dist/core/config.d.ts.map +1 -1
- package/dist/health/remediations.d.ts +15 -1
- package/dist/health/remediations.d.ts.map +1 -1
- package/dist/health/types.d.ts +9 -2
- package/dist/health/types.d.ts.map +1 -1
- package/dist/health/useHealth.d.ts +7 -0
- package/dist/health/useHealth.d.ts.map +1 -1
- package/dist/index.js +179 -57
- package/dist/index.js.map +3 -3
- package/examples/cockpit.schema.json +20 -2
- package/package.json +1 -1
|
@@ -70,6 +70,10 @@
|
|
|
70
70
|
"$ref": "#/$defs/ComposerSettings",
|
|
71
71
|
"description": "Composer scopes for the auto-registered `composer-drift` health check. Wrappers with nested PHP roots (Bedrock-style `project/`, monorepos, etc.) list each scope explicitly."
|
|
72
72
|
},
|
|
73
|
+
"keybindings": {
|
|
74
|
+
"$ref": "#/$defs/Keybindings",
|
|
75
|
+
"description": "Single-keypress dispatch table for the Health pane. Maps a key character to one or more health check ids that fire when the user presses that key. Resolves the 'same key on multiple rows, only first wins' footgun — multi-id bindings fire all listed rows in declared order."
|
|
76
|
+
},
|
|
73
77
|
"defaultPane": {
|
|
74
78
|
"type": "string",
|
|
75
79
|
"enum": ["repos", "output", "health", "help"],
|
|
@@ -218,13 +222,13 @@
|
|
|
218
222
|
},
|
|
219
223
|
"Remediation": {
|
|
220
224
|
"type": "object",
|
|
221
|
-
"required": ["
|
|
225
|
+
"required": ["label", "command"],
|
|
222
226
|
"properties": {
|
|
223
227
|
"key": {
|
|
224
228
|
"type": "string",
|
|
225
229
|
"minLength": 1,
|
|
226
230
|
"maxLength": 1,
|
|
227
|
-
"description": "Single key character that triggers the remediation in the Health pane."
|
|
231
|
+
"description": "Single key character that triggers the remediation in the Health pane. Optional — when omitted, the row is documentation-only (useful when multiple health entries share the same underlying command and you only want ONE row to be the trigger)."
|
|
228
232
|
},
|
|
229
233
|
"label": {
|
|
230
234
|
"type": "string"
|
|
@@ -430,6 +434,20 @@
|
|
|
430
434
|
},
|
|
431
435
|
"additionalProperties": false
|
|
432
436
|
},
|
|
437
|
+
"Keybindings": {
|
|
438
|
+
"type": "object",
|
|
439
|
+
"description": "Single-keypress → list-of-health-ids dispatch table. Each value may be a string (one id) or an array (fired in declared order on press). Keys SHOULD be single characters; longer strings are accepted but won't ever match a keypress.",
|
|
440
|
+
"additionalProperties": {
|
|
441
|
+
"oneOf": [
|
|
442
|
+
{ "type": "string", "description": "Single health check id to fire." },
|
|
443
|
+
{
|
|
444
|
+
"type": "array",
|
|
445
|
+
"items": { "type": "string" },
|
|
446
|
+
"description": "Ordered list of health check ids. All fire on a single keypress."
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
},
|
|
433
451
|
"Action": {
|
|
434
452
|
"type": "object",
|
|
435
453
|
"required": ["id", "label", "command"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dev-cockpit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "A reusable, domain-neutral terminal UI dev cockpit — tabbed pane shell, watcher streaming, optional Docker log tail with highlights, health framework with one-keystroke remediations, transition-only OS notifications, live-markdown Help. Profiles extend it with project-specific commands, repos, and health checks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|