@kosdev-code/kos-ddk-cli 0.1.0-dev.50 → 0.1.0-dev.55
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 +54 -18
- package/agent-plugin/kos-ddk-tools/.claude-plugin/plugin.json +1 -1
- package/agent-plugin/kos-ddk-tools/catalog/contributions.json +0 -11
- package/agent-plugin/kos-ddk-tools/plugin.json +1 -1
- package/agent-plugin/kos-ddk-tools/reference/reference.json +108 -57
- package/agent-plugin/kos-ddk-tools/servers/kos-ddk.mjs +428 -427
- package/agent-plugin/kos-ddk-tools/skills/build-ddk-plugin/SKILL.md +9 -6
- package/agent-plugin/kos-ddk-tools/templates/cui/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/cui/__nameDashCase__.tsx__template__ +1 -1
- package/agent-plugin/kos-ddk-tools/templates/dashboard-detail/detail/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/dashboard-summary/summary/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/macro-summary/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/nav/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/plugin-project/.storybook/preview.tsx.template +37 -4
- package/agent-plugin/kos-ddk-tools/templates/pump-detail/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/pump-summary/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/setup/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/setup/__nameDashCase__.tsx__template__ +1 -1
- package/agent-plugin/kos-ddk-tools/templates/trouble-action/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/utility/__nameDashCase__.stories.tsx__template__ +3 -1
- package/agent-plugin/kos-ddk-tools/templates/utility/__nameDashCase__.tsx__template__ +2 -12
- package/catalog/contributions.json +0 -11
- package/guides/ddk-dev.md +2 -1
- package/guides/getting-started.md +117 -0
- package/guides/storybook.md +37 -2
- package/package.json +2 -2
- package/reference/reference.json +108 -57
- package/src/codegen/contribution.mjs +184 -14
- package/src/codegen/descriptor.mjs +210 -0
- package/src/codegen/ncui-descriptor.mjs +134 -0
- package/src/codegen/overrides.mjs +85 -1
- package/src/codegen/project.mjs +111 -13
- package/src/extension.mjs +10 -0
- package/src/generators/agent-install.mjs +3 -2
- package/src/generators/catalog.mjs +15 -4
- package/src/generators/contributions.mjs +41 -6
- package/src/generators/dashboard.mjs +12 -9
- package/src/generators/descriptor-entries.mjs +53 -0
- package/src/generators/descriptor-project.mjs +79 -0
- package/src/generators/dev.mjs +15 -5
- package/src/generators/plugin-project.mjs +36 -4
- package/src/generators/theme-project.mjs +14 -3
- package/src/handlers.mjs +9 -19
- package/src/mcp/plugin-inspect.mjs +35 -0
- package/src/mcp/reference.mjs +19 -3
- package/src/mcp/tools.mjs +118 -21
- package/templates/cui/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/cui/__nameDashCase__.tsx__template__ +1 -1
- package/templates/dashboard-detail/detail/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/dashboard-summary/summary/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/macro-summary/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/nav/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/plugin-project/.storybook/preview.tsx.template +37 -4
- package/templates/pump-detail/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/pump-summary/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/setup/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/setup/__nameDashCase__.tsx__template__ +1 -1
- package/templates/trouble-action/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/utility/__nameDashCase__.stories.tsx__template__ +3 -1
- package/templates/utility/__nameDashCase__.tsx__template__ +2 -12
- package/agent-plugin/kos-ddk-tools/templates/setting/__nameDashCase__.stories.tsx__template__ +0 -30
- package/agent-plugin/kos-ddk-tools/templates/setting/__nameDashCase__.tsx__template__ +0 -27
- package/agent-plugin/kos-ddk-tools/templates/setting/index.ts__template__ +0 -1
- package/templates/setting/__nameDashCase__.stories.tsx__template__ +0 -30
- package/templates/setting/__nameDashCase__.tsx__template__ +0 -27
- package/templates/setting/index.ts__template__ +0 -1
package/reference/reference.json
CHANGED
|
@@ -21,10 +21,6 @@
|
|
|
21
21
|
"command": "ddk:utility",
|
|
22
22
|
"tool": "add_utility"
|
|
23
23
|
},
|
|
24
|
-
"settings": {
|
|
25
|
-
"command": "ddk:setting",
|
|
26
|
-
"tool": "add_setting"
|
|
27
|
-
},
|
|
28
24
|
"dashboardSummary": {
|
|
29
25
|
"command": "ddk:dashboard-card",
|
|
30
26
|
"tool": "add_dashboard_card"
|
|
@@ -74,7 +70,14 @@
|
|
|
74
70
|
"description": "Modal display mode for the CUI interface"
|
|
75
71
|
}
|
|
76
72
|
],
|
|
77
|
-
"componentProps": [
|
|
73
|
+
"componentProps": [
|
|
74
|
+
{
|
|
75
|
+
"name": "onComplete",
|
|
76
|
+
"type": "() => void",
|
|
77
|
+
"optional": false,
|
|
78
|
+
"description": "Closes the CUI configuration."
|
|
79
|
+
}
|
|
80
|
+
],
|
|
78
81
|
"file": "src/extensions/cui-extension.ts",
|
|
79
82
|
"writer": {
|
|
80
83
|
"command": "ddk:cui",
|
|
@@ -124,6 +127,12 @@
|
|
|
124
127
|
"name": "cardModel",
|
|
125
128
|
"type": "any",
|
|
126
129
|
"optional": true
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "onComplete",
|
|
133
|
+
"type": "() => void",
|
|
134
|
+
"optional": true,
|
|
135
|
+
"description": "Closes the detail."
|
|
127
136
|
}
|
|
128
137
|
],
|
|
129
138
|
"file": "src/extensions/dashboard-detail-extension.ts",
|
|
@@ -334,6 +343,47 @@
|
|
|
334
343
|
"tool": "add_nav_view"
|
|
335
344
|
}
|
|
336
345
|
},
|
|
346
|
+
{
|
|
347
|
+
"id": "ddk.ncui.utilities",
|
|
348
|
+
"contributionKey": "utilities",
|
|
349
|
+
"displayName": "Utilities",
|
|
350
|
+
"description": "Extension point for utility plugin configurations with view support",
|
|
351
|
+
"hasView": true,
|
|
352
|
+
"isRankable": true,
|
|
353
|
+
"fields": [
|
|
354
|
+
{
|
|
355
|
+
"name": "utilDescriptor",
|
|
356
|
+
"type": "string",
|
|
357
|
+
"required": false,
|
|
358
|
+
"description": "Descriptor used to identify and categorize the utility"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"name": "rank",
|
|
362
|
+
"type": "number",
|
|
363
|
+
"required": false
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"componentProps": [
|
|
367
|
+
{
|
|
368
|
+
"name": "onComplete",
|
|
369
|
+
"type": "() => void",
|
|
370
|
+
"optional": false
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "onSkip",
|
|
374
|
+
"type": "() => void",
|
|
375
|
+
"optional": true
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"declaredIn": [
|
|
379
|
+
"kos-ddk-app/.kos.json",
|
|
380
|
+
"kos-ddk-app-compact/.kos.json"
|
|
381
|
+
],
|
|
382
|
+
"writer": {
|
|
383
|
+
"command": "ddk:utility",
|
|
384
|
+
"tool": "add_utility"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
337
387
|
{
|
|
338
388
|
"id": "ddk.setup",
|
|
339
389
|
"exportName": "SetupExtension",
|
|
@@ -356,7 +406,20 @@
|
|
|
356
406
|
"required": false
|
|
357
407
|
}
|
|
358
408
|
],
|
|
359
|
-
"componentProps": [
|
|
409
|
+
"componentProps": [
|
|
410
|
+
{
|
|
411
|
+
"name": "onComplete",
|
|
412
|
+
"type": "() => void",
|
|
413
|
+
"optional": false,
|
|
414
|
+
"description": "Marks the step complete on the device, then opens the next step."
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "onSkip",
|
|
418
|
+
"type": "() => void",
|
|
419
|
+
"optional": true,
|
|
420
|
+
"description": "Opens the next step without marking this one complete."
|
|
421
|
+
}
|
|
422
|
+
],
|
|
360
423
|
"file": "src/extensions/setup-extension.ts",
|
|
361
424
|
"writer": {
|
|
362
425
|
"command": "ddk:setup",
|
|
@@ -415,38 +478,6 @@
|
|
|
415
478
|
"command": "ddk:trouble-action",
|
|
416
479
|
"tool": "add_trouble_action"
|
|
417
480
|
}
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
"id": "ddk.view",
|
|
421
|
-
"exportName": "ViewExtension",
|
|
422
|
-
"contributionKey": "views",
|
|
423
|
-
"displayName": "Views",
|
|
424
|
-
"description": "Extension point for view plugin configurations with regional rendering support",
|
|
425
|
-
"hasView": true,
|
|
426
|
-
"isRankable": true,
|
|
427
|
-
"category": "UI Layout",
|
|
428
|
-
"fields": [
|
|
429
|
-
{
|
|
430
|
-
"name": "viewKey",
|
|
431
|
-
"type": "string",
|
|
432
|
-
"required": true,
|
|
433
|
-
"description": "Key identifying the UI region where this component should be rendered (e.g., 'settings.config', 'dashboard.sidebar'). Multiple plugins can contribute to the same viewKey, and all will be rendered in the designated region."
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"name": "rank",
|
|
437
|
-
"type": "number",
|
|
438
|
-
"required": false
|
|
439
|
-
}
|
|
440
|
-
],
|
|
441
|
-
"componentProps": [
|
|
442
|
-
{
|
|
443
|
-
"name": "viewKey",
|
|
444
|
-
"type": "string",
|
|
445
|
-
"optional": true
|
|
446
|
-
}
|
|
447
|
-
],
|
|
448
|
-
"file": "src/extensions/view-extension.ts",
|
|
449
|
-
"writer": null
|
|
450
481
|
}
|
|
451
482
|
],
|
|
452
483
|
"components": [
|
|
@@ -2155,6 +2186,9 @@
|
|
|
2155
2186
|
"optional": true
|
|
2156
2187
|
}
|
|
2157
2188
|
],
|
|
2189
|
+
"inherits": [
|
|
2190
|
+
"React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>"
|
|
2191
|
+
],
|
|
2158
2192
|
"renders": [],
|
|
2159
2193
|
"hooks": [],
|
|
2160
2194
|
"tokens": [
|
|
@@ -14885,6 +14919,9 @@
|
|
|
14885
14919
|
"optional": true
|
|
14886
14920
|
}
|
|
14887
14921
|
],
|
|
14922
|
+
"inherits": [
|
|
14923
|
+
"LinkProps"
|
|
14924
|
+
],
|
|
14888
14925
|
"renders": [
|
|
14889
14926
|
"NavigationButton"
|
|
14890
14927
|
],
|
|
@@ -19177,21 +19214,35 @@
|
|
|
19177
19214
|
"name": "ddk-index",
|
|
19178
19215
|
"title": "KOS DDK reference index",
|
|
19179
19216
|
"description": "Start here: the DDK extension points, component libraries and design system, and which tool or resource covers each.",
|
|
19180
|
-
"body": "# KOS DDK reference\n\nA DDK plugin contributes to extension points in its `.kos.json` and renders DDK components inside them. Plugins compose components; the design tokens belong to the DDK app and its themes.\n\n## Extension points\n\n- ddk://extension-point/ddk.cui — CUI (Consumer User Interface), `contributes.cui`\n- ddk://extension-point/ddk.dashboard.detail — Dashboard Detail, `contributes.dashboardDetail`\n- ddk://extension-point/ddk.dashboard.macro-summary — Dashboard Macro Summary, `contributes.dashboardMacroSummary`\n- ddk://extension-point/ddk.dashboard.pump-detail — Dashboard Pump Detail, `contributes.dashboardPumpDetail`\n- ddk://extension-point/ddk.dashboard.pump-summary — Dashboard Pump Summary, `contributes.dashboardPumpSummary`\n- ddk://extension-point/ddk.dashboard.summary — Dashboard Summary, `contributes.dashboardSummary`\n- ddk://extension-point/ddk.nav.view — Navigation Views, `contributes.navViews`\n- ddk://extension-point/ddk.
|
|
19217
|
+
"body": "# KOS DDK reference\n\nA DDK plugin contributes to extension points in its `.kos.json` and renders DDK components inside them. Plugins compose components; the design tokens belong to the DDK app and its themes.\n\n## Extension points\n\n- ddk://extension-point/ddk.cui — CUI (Consumer User Interface), `contributes.cui`\n- ddk://extension-point/ddk.dashboard.detail — Dashboard Detail, `contributes.dashboardDetail`\n- ddk://extension-point/ddk.dashboard.macro-summary — Dashboard Macro Summary, `contributes.dashboardMacroSummary`\n- ddk://extension-point/ddk.dashboard.pump-detail — Dashboard Pump Detail, `contributes.dashboardPumpDetail`\n- ddk://extension-point/ddk.dashboard.pump-summary — Dashboard Pump Summary, `contributes.dashboardPumpSummary`\n- ddk://extension-point/ddk.dashboard.summary — Dashboard Summary, `contributes.dashboardSummary`\n- ddk://extension-point/ddk.nav.view — Navigation Views, `contributes.navViews`\n- ddk://extension-point/ddk.ncui.utilities — Utilities, `contributes.utilities`\n- ddk://extension-point/ddk.setup — Setup Steps, `contributes.setupStep`\n- ddk://extension-point/ddk.trouble.action — Trouble Actions, `contributes.troubleActions`\n\n## Components\n\n- `@kosdev-code/kos-ddk-components`: 161 components and styled parts\n- `@kosdev-code/kos-ddk-model-components`: 89 components and styled parts\n\nlist_ddk_components finds them; describe_ddk_component gives one's props, the components and hooks it uses, and every token it reads.\n\n## Design system\n\n- ddk://design/base — DDK DESIGN.md\n- ddk://design/flex-eu — DDK Flex EU DESIGN.md\n- ddk://design/compact — DDK Compact DESIGN.md\n\nChange tokens only to create a new component (component tokens) or a theme (semantic tokens).\n\n## Guides\n\n- ddk://guide/ddk-dev — Testing plugins against a running DDK\n- ddk://guide/getting-started — Getting started with the DDK CLI\n- ddk://guide/storybook — Developing DDK contributions in Storybook\n- ddk://guide/descriptor-project — NCUI descriptor projects\n\nfind_ddk_capability maps a need to the extension point, the component and the tool."
|
|
19181
19218
|
},
|
|
19182
19219
|
{
|
|
19183
19220
|
"uri": "ddk://guide/ddk-dev",
|
|
19184
19221
|
"name": "ddk-guide-ddk-dev",
|
|
19185
19222
|
"title": "Testing plugins against a running DDK",
|
|
19186
19223
|
"description": "Serving DDK plugin projects with kosui ddk:dev for a running device or simulator to load with ?pluginDevServers=, choosing plugins and scenarios.",
|
|
19187
|
-
"body": "# Testing plugins against a running DDK\n\n`ddk:dev` starts the dev server of each DDK plugin project and prints the URL that loads\nthem into a running DDK, without access to the DDK host source.\n\n```sh\nkosui ddk:dev --device http://192.168.1.50:8081\nkosui ddk:dev --plugins my-plugin --device http://192.168.1.50:8081\nkosui ddk:dev --scenario compact --device http://192.168.1.50:8081\n```\n\nWithout `--plugins` or `--scenario` it starts every DDK plugin project. `--plugins`\ntakes project names or aliases; `--scenario` names a set in the workspace `.kos.json`:\n\n```json\n{\n \"development\": {\n \"ddkScenarios\": {\n \"standard\": [\"kos-ddk-standard-plugin\", \"beverage-pour\"],\n \"compact\": [\"kos-ddk-compact-plugin\", \"beverage-pour\"]\n }\n }\n}\n```\n\nThe device loads the plugins with `?pluginDevServers=`; an override wins over the\nstandard contribution only when the device's DDK resolves its slots by rank.\n\n## The URL it prints\n\n`--device` is the URL of the DDK UI on the device or simulator, either its origin or the\npage itself
|
|
19224
|
+
"body": "# Testing plugins against a running DDK\n\n`ddk:dev` starts the dev server of each DDK plugin project and prints the URL that loads\nthem into a running DDK, without access to the DDK host source.\n\n```sh\nkosui ddk:dev --device http://192.168.1.50:8081\nkosui ddk:dev --plugins my-plugin --device http://192.168.1.50:8081\nkosui ddk:dev --scenario compact --device http://192.168.1.50:8081\n```\n\nWithout `--plugins` or `--scenario` it starts every DDK plugin project. `--plugins`\ntakes project names or aliases; `--scenario` names a set in the workspace `.kos.json`:\n\n```json\n{\n \"development\": {\n \"ddkScenarios\": {\n \"standard\": [\"kos-ddk-standard-plugin\", \"beverage-pour\"],\n \"compact\": [\"kos-ddk-compact-plugin\", \"beverage-pour\"]\n }\n }\n}\n```\n\nThe device loads the plugins with `?pluginDevServers=`; an override wins over the\nstandard contribution only when the device's DDK resolves its slots by rank.\n\n## The URL it prints\n\n`--device` is the URL of the DDK UI on the device or simulator, either its origin or the\npage itself. Given the origin, the printed URL opens the NCUI page,\n`/app/kosdev.ddk/ncui/index.html`, which is where devices and the simulator serve it. The\nprinted URL adds `?pluginDevServers=` with one `http://<address>:<port>` per plugin, from\nthe `port` of its `serve` target. The address is `localhost` when the device is local and\nthe machine's LAN IPv4 address otherwise, so a device on the network can reach the dev\nservers. Without `--device` it prints a `<device-url>` template.\n\nEvery plugin needs `options.port` on its `serve` target; `ddk:dev` refuses a plugin\nwithout one."
|
|
19225
|
+
},
|
|
19226
|
+
{
|
|
19227
|
+
"uri": "ddk://guide/getting-started",
|
|
19228
|
+
"name": "ddk-guide-getting-started",
|
|
19229
|
+
"title": "Getting started with the DDK CLI",
|
|
19230
|
+
"description": "Installing kos-ddk-cli in a workspace or globally, checking kosui loads it, working from a repo root, and installing the kos-ddk agent plugin and MCP server.",
|
|
19231
|
+
"body": "# Getting started with the DDK CLI\n\n`@kosdev-code/kos-ddk-cli` is a `kosui` extension: it adds the `ddk:*` commands to the\n`kosui` CLI and ships the `kos-ddk-tools` agent plugin. It has no CLI of its own.\n\n## 1. kosui\n\n`kosui` (`@kosdev-code/kos-ui-cli`) is installed globally, at 3.0.31 or later.\n\n```sh\nnpm install -g @kosdev-code/kos-ui-cli\nkosui cli:update\n```\n\n## 2. Install the extension\n\nEither in the workspace, which pins the version with the project:\n\n```sh\ncd <repo>/ui\nnpm install -D @kosdev-code/kos-ddk-cli\n```\n\nor globally, beside `kosui`, which adds the commands in every workspace:\n\n```sh\nnpm install -g @kosdev-code/kos-ddk-cli\n```\n\n`kosui` looks in the workspace's `package.json` dependencies first, then beside its own\nglobal install. When both have it, the workspace copy is used.\n\n`latest` is the released version. `@dev` is the build of the DDK's `main` branch, published\non every push:\n\n```sh\nnpm install -D @kosdev-code/kos-ddk-cli@dev\n```\n\n## 3. Check kosui loads it\n\n```sh\nkosui extensions\nkosui help\n```\n\n`kosui extensions` names the package, its version, where it came from (`[workspace]` or\n`[global]`), its status and the commands it adds. `kosui help` lists them under `ddk:`.\n\nA workspace can turn it off in its `.kos.json`:\n\n```json\n{ \"cli\": { \"disabledExtensions\": [\"@kosdev-code/kos-ddk-cli\"] } }\n```\n\n## 4. Repo root or ui workspace\n\nEvery command and the MCP server work from the ui workspace (the directory with\n`nx.json`) and from a polyglot repo root: when the repo root's `.kos.json` (written by\n`kosui repo`) names a ui workspace in `workspaces.ui`, `kosui` and the server use that\nworkspace. An agent started at the repo root, to work across the backend and the UI,\ngets the same commands and tools.\n\n## 5. Agent plugin and MCP server\n\n```sh\nkosui ddk:agent-install --client claude --scope user\n```\n\nThis registers the package's `kos-ddk-tools` plugin with the agent client and installs\nit; the plugin runs the `kos-ddk` MCP server. `--scope user` installs it for every repo,\n`--scope repo` for the current checkout only. Without `--client` it detects the client.\n\nThe server is one self-contained file inside the package, so it does not depend on the\nworkspace's `node_modules`. It is registered from wherever the package is installed, in\nthe workspace or globally.\n\nRun `ddk:agent-install` again after upgrading or reinstalling the package: the client\nkeeps its copy of the plugin until the registration is refreshed.\n\n## 6. Next\n\n- `kosui ddk:plugin-project --name my-plugin` creates a DDK plugin project under\n `plugins/` (`--directory` changes the folder). It tests against the `kosdev.ddk`\n plugin context and registers with the workspace host serving that context, or with\n `--host`; a workspace without a DDK host registers it with none. The contribution\n commands in the README add to it.\n- `kosui ddk:descriptor-project --name my-ncui --layout standard --ice true` (or `compact`) creates the\n NCUI descriptor project a new utility, setup step or navigation view is listed in;\n pass `--descriptorProject my-ncui` to `ddk:utility`, `ddk:setup` and `ddk:nav`. `ddk://guide/descriptor-project` lists what each layout and option writes.\n- `ddk://guide/storybook` for developing contributions in Storybook.\n- `ddk://guide/ddk-dev` for loading plugins into a running DDK.\n\n## Upgrading\n\n```sh\nkosui cli:update # kosui\nnpm install -D @kosdev-code/kos-ddk-cli@latest # workspace install\nnpm install -g @kosdev-code/kos-ddk-cli@latest # global install\nkosui ddk:agent-install --client claude --scope user\n```\n\n## When the ddk commands are missing\n\n- `kosui extensions` does not list the package: it is in neither the workspace's\n `package.json` nor the global install beside the `kosui` on your `PATH`\n (`npm ls -g @kosdev-code/kos-ddk-cli`).\n- It is listed as `incompatible`: `kosui` is older than the extension needs; update it.\n- It is listed as `disabled`: the workspace `.kos.json` names it in\n `cli.disabledExtensions`."
|
|
19188
19232
|
},
|
|
19189
19233
|
{
|
|
19190
19234
|
"uri": "ddk://guide/storybook",
|
|
19191
19235
|
"name": "ddk-guide-storybook",
|
|
19192
19236
|
"title": "Developing DDK contributions in Storybook",
|
|
19193
|
-
"description": "Running a plugin's Storybook against a simulator, where model data comes from, the story container per contribution command, render modes and overrides.",
|
|
19194
|
-
"body": "# Developing DDK contributions in Storybook\n\nEvery `ddk:*` contribution command writes a story next to the component, so a contribution\ncan be developed in isolation before the plugin is loaded into a running DDK. Stories render\nagainst live models from a running simulator.\n\n## Run it\n\n```sh\nnpx nx run <plugin>:storybook\n```\n\nStorybook serves on port 4400. The plugin's `serve` target is the module federation dev\nserver used by `kosui ddk:dev`; Storybook has its own `storybook` target.\n\n## Where model data comes from\n\nThe preview (`.storybook/preview.tsx`) wraps every story in the providers the DDK hosts use:\nKosCore, translations (`app/system`, `app/kosdev.ddk`), `AssemblyProvider`,\n`ApplicationProvider` and `ApplicationComponentConfigurationProvider`. KosCore connects to the\nfirst of:\n\n1. the `?host=` query parameter on the Storybook URL;\n2. `KOS_HOST` and `KOS_PORT` in the plugin's `.env` (the generated `.env` sets\n `KOS_PORT=8081`, the simulator's default);\n3. the page's own origin.\n\nStart the simulator before Storybook. A story shows what the simulator has: a dashboard card\nneeds an active model at its `dashboardKey`, a trouble action needs an active trouble of its\n`troubleType`.\n\n## Story containers\n\nEach story renders the component inside the container for its extension point, from\n`@kosdev-code/kos-ddk-story-containers`:\n\n| Command | Container | Gives the component |\n| -------------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |\n| `ddk:utility` | `UtilityStoryContainer` | the utility frame |\n| `ddk:setup` | `SetupStepStoryContainer` | the setup step frame |\n| `ddk:nav` | `NavStoryContainer` | the navigation view frame |\n| `ddk:
|
|
19237
|
+
"description": "Running a plugin's Storybook against a simulator or with KosMock story mocks, where model data comes from, the story container per contribution command, render modes and overrides.",
|
|
19238
|
+
"body": "# Developing DDK contributions in Storybook\n\nEvery `ddk:*` contribution command writes a story next to the component, so a contribution\ncan be developed in isolation before the plugin is loaded into a running DDK. Stories render\nagainst live models from a running simulator.\n\n## Run it\n\n```sh\nnpx nx run <plugin>:storybook\n```\n\nStorybook serves on port 4400. The plugin's `serve` target is the module federation dev\nserver used by `kosui ddk:dev`; Storybook has its own `storybook` target.\n\n## Where model data comes from\n\nThe preview (`.storybook/preview.tsx`) wraps every story in the providers the DDK hosts use:\nKosCore, translations (`app/system`, `app/kosdev.ddk`), `AssemblyProvider`,\n`ApplicationProvider` and `ApplicationComponentConfigurationProvider`. KosCore connects to the\nfirst of:\n\n1. the `?host=` query parameter on the Storybook URL;\n2. `KOS_HOST` and `KOS_PORT` in the plugin's `.env` (the generated `.env` sets\n `KOS_PORT=8081`, the simulator's default);\n3. the page's own origin.\n\nTranslations come from the same device: the DDK's namespaces (`app/system`,\n`app/kosdev.ddk`) from its files, and the plugin's own namespace from the plugin's\n`src/assets/locales`, since the device lists it only once the KAB is installed. Each\ncontribution command adds its title key, and the keys its component calls, to\n`src/assets/locales/en/<plugin>.json`.\n\nStart the simulator before Storybook. A story shows what the simulator has: a dashboard card\nneeds an active model at its `dashboardKey`, a trouble action needs an active trouble of its\n`troubleType`.\n\n## Mocking what the simulator lacks\n\nA story can bring its own data with KosMock, the SDK's transport-level mocks\n(`kos://guide/mocking`), instead of waiting for the simulator to reach a state: an active\ntrouble, setup mode, a descriptor entry. It names the mocks as `parameters.kosMock`, and\nthe preview's outermost decorator reloads the page into those boot switches\n(`ensureKosMockBoot`):\n\n```tsx\nexport const ActiveTrouble: Story = {\n parameters: { kosMock: { setups: [\"daily-cleaning-trouble\"] } },\n};\n```\n\n`kosMock` takes `setups` (setup modules in `fixtures/setups/`), `fixture` (a recorded\nfixture), `mode` and `fixtureServer`:\n\n- `mode: \"on\"` (the default) mocks only the named endpoints over the running simulator.\n- `mode: \"standalone\"` boots with no device at all; every endpoint the story reads must\n be mocked.\n\nServe the fixtures beside Storybook:\n\n```sh\nkosui fixtures serve\n```\n\nA story without `kosMock` reloads without switches, so mocks never carry over between\nstories. Every generated story has a commented `kosMock` line to start from.\n\n## Story containers\n\nEach story renders the component inside the container for its extension point, from\n`@kosdev-code/kos-ddk-story-containers`:\n\n| Command | Container | Gives the component |\n| -------------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |\n| `ddk:utility` | `UtilityStoryContainer` | the utility frame |\n| `ddk:setup` | `SetupStepStoryContainer` | the setup step frame |\n| `ddk:nav` | `NavStoryContainer` | the navigation view frame |\n| `ddk:cui` | `CUIStoryContainer` | the CUI frame |\n| `ddk:dashboard-card` | `DashboardSummaryStoryContainer`, `DashboardDetailStoryContainer` | `dashboardKey`, `assembly`, `cardModel`, `onComplete` |\n| `ddk:pump-detail` | `PumpDetailStoryContainer` | the first `holder` with the `dashboardKey` |\n| `ddk:pump-card` | `PumpSummaryStoryContainer`, `PumpDetailStoryContainer` | the first `holder` with the `dashboardKey` |\n| `ddk:macro-summary` | `MacroSummaryStoryContainer` | the first `holder` with the `dashboardKey` |\n| `ddk:trouble-action` | `TroubleActionStoryContainer` | the active `trouble` of the `troubleType` |\n\nWhen the simulator has no matching model, holder or trouble, the container says so in place\nof the story.\n\n## Standard and compact modes\n\nThe **Render Mode** toolbar switches between `standard` and `compact`. It changes the DDK\nstyles and the component mode; in `compact`, modals render full screen.\n\n## Overrides\n\nA story renders the override on its own, so an override of a standard contribution can be\ndeveloped here first. To see it replace the standard contribution, load the plugin into a\nrunning DDK with `kosui ddk:dev` (see the package README)."
|
|
19239
|
+
},
|
|
19240
|
+
{
|
|
19241
|
+
"uri": "ddk://guide/descriptor-project",
|
|
19242
|
+
"name": "ddk-guide-descriptor-project",
|
|
19243
|
+
"title": "NCUI descriptor projects",
|
|
19244
|
+
"description": "What ddk:descriptor-project writes for each layout and option, and where --descriptorProject lists a utility, setup step or navigation view.",
|
|
19245
|
+
"body": "# NCUI descriptor projects\n\nThe NCUI shows a utility, setup step or navigation view only if its NCUI descriptor lists it (`kondra.ncui` `utilities`, `setup.steps`, `navigations`). The DDK app uses an installed `ddk.ncui.descriptor` KAB in place of the system app's descriptor, so a descriptor project is where a plugin's new slots are listed; the backend `descriptor.json` is the fallback.\n\n```sh\nkosui ddk:descriptor-project --name my-ncui --layout standard --ice true\n```\n\nMCP: `scaffold_ddk_descriptor_project`. The project is a content project under `content/<name>`; its `.kos.json` is the KAB's `descriptor.json`. Run `npm install` if the command names added packages, then `nx run <name>:kab` and install the KAB beside the DDK app.\n\nThe lists below are what a new project gets with every option off. `standard` spreads utilities over two columns and marks `embed` navigation entries, whose children show as tabs; `compact` keeps utilities in one column.\n\n## standard\n\nSetup steps, in order: `selectCountry` (pre-step), `selectLanguage` (pre-step), `plainWater`, `ns`, `macroAssignment`, `ingredients`, `regions`, `timeSettings`, `dispenserProfile`, `waterSettings`.\n\nUtilities, by column:\n\n1. `touchScreenTest`, `pixelQualityTest`, `setup`, `usbUpdate` (manager, technician)\n2. `reboot` (manager), `downloadLogs` (manager, technician)\n\nNavigation:\n\n- `summary` (crew, technician)\n- `dashboard` (crew, technician)\n- `notifications` (crew, technician)\n- `about` (crew, technician) — embed: its children show as tabs\n - `dispenser-info` (technician, crew)\n - `hardware` (technician, crew)\n - `connectivity` (technician, crew)\n - `software` (technician, crew)\n- `utilities` (technician, manager)\n- `settings` (technician) — embed: its children show as tabs\n - `regions` (technician)\n - `dispenser-profile` (technician)\n - `cui-selection` (technician)\n - `water` (technician)\n - `remote-nns` (technician)\n\n## compact\n\nSetup steps, in order: `selectCountry` (pre-step), `selectLanguage` (pre-step), `plainWater`, `ns`, `macroAssignment`, `ingredients`, `regions`, `timeSettings`, `dispenserProfile`, `waterSettings`.\n\nUtilities, by column:\n\n1. `touchScreenTest`, `pixelQualityTest`, `setup`, `usbUpdate` (manager, technician), `reboot` (manager), `downloadLogs` (manager, technician)\n\nNavigation:\n\n- `dashboard` (crew, technician)\n- `notifications` (crew, technician)\n- `about` (crew, technician)\n - `software` (crew, technician)\n - `hardware` (crew, technician)\n- `network` (technician, crew)\n- `utilities` (technician, manager)\n- `settings` (technician)\n - `localization` (technician)\n - `time-settings` (technician)\n - `water-settings` (technician)\n - `dispenser-profile` (technician)\n - `cui-selection` (technician)\n\n## Options\n\nOff by default; each adds:\n\n- `--carb`: carbonation: the carbWater and carbTank setup steps.\n - standard: setup step `carbWater`, setup step `carbTank`\n - compact: setup step `carbWater`, setup step `carbTank`\n- `--ice`: ice: the iceSettings setup step and the ice settings tab.\n - standard: setup step `iceSettings`, navigation `settings.ice`\n - compact: setup step `iceSettings`, navigation `settings.ice-settings`\n- `--beveragePourTest`: the beveragePourTest utility.\n - standard: utility `beveragePourTest`\n - compact: utility `beveragePourTest`\n\n## Listing a plugin's slots\n\n- `--descriptorProject <name>` on `ddk:utility`, `ddk:setup` and `ddk:nav` (MCP `descriptorProject` on `add_utility`, `add_setup_step`, `add_nav_view`) lists the new contribution's slot:\n - a utility in the last column, or `--column <n>` (1-based), with `--roles` (comma-separated; none: every role);\n - a setup step last; the setup flow runs steps in descriptor order;\n - a navigation view under its parent path, with `--roles` or the parent's roles; the parent must exist.\n- A slot already listed is left as it is; an override (`--override`) fills a listed slot and needs no entry.\n- For contributions written before the descriptor project: `kosui ddk:descriptor-entries --project <plugin> --descriptorProject <name>` (MCP `add_descriptor_entries`).\n- `validate_ddk_plugin` warns about a slot no descriptor project lists."
|
|
19195
19246
|
},
|
|
19196
19247
|
{
|
|
19197
19248
|
"uri": "ddk://design/base",
|
|
@@ -19219,42 +19270,42 @@
|
|
|
19219
19270
|
"name": "ddk-extension-point-ddk.cui",
|
|
19220
19271
|
"title": "CUI (Consumer User Interface) extension point",
|
|
19221
19272
|
"description": "ddk.cui (contributes.cui): fields, the props its component receives and add_cui_config.",
|
|
19222
|
-
"body": "# CUI (Consumer User Interface) (`ddk.cui`)\n\nExtension point for CUI plugin configurations with view support\n\n- Contribution key: `contributes.cui` in the plugin's `.kos.json`.\n- Ranked: no.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_cui_config` (`kosui ddk:cui`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/cui-extension.ts` as `CuiExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `cuiDescriptor` | `string` | yes | Descriptor used to identify and categorize the CUI functionality |\n| `modalMode` | `\"fullscreen\" \\| \"maximized\"` | no | Modal display mode for the CUI interface |\n\n## Props your component receives\n\
|
|
19273
|
+
"body": "# CUI (Consumer User Interface) (`ddk.cui`)\n\nExtension point for CUI plugin configurations with view support\n\n- Contribution key: `contributes.cui` in the plugin's `.kos.json`.\n- Ranked: no.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_cui_config` (`kosui ddk:cui`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/cui-extension.ts` as `CuiExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `cuiDescriptor` | `string` | yes | Descriptor used to identify and categorize the CUI functionality |\n| `modalMode` | `\"fullscreen\" \\| \"maximized\"` | no | Modal display mode for the CUI interface |\n\n## Props your component receives\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `onComplete` | `() => void` | yes | Closes the CUI configuration. |"
|
|
19223
19274
|
},
|
|
19224
19275
|
{
|
|
19225
19276
|
"uri": "ddk://extension-point/ddk.dashboard.detail",
|
|
19226
19277
|
"name": "ddk-extension-point-ddk.dashboard.detail",
|
|
19227
19278
|
"title": "Dashboard Detail extension point",
|
|
19228
19279
|
"description": "ddk.dashboard.detail (contributes.dashboardDetail): fields, the props its component receives, standard contributions and add_dashboard_card.",
|
|
19229
|
-
"body": "# Dashboard Detail (`ddk.dashboard.detail`)\n\nExtension point for dashboard detail plugin configurations with view support\n\n- Contribution key: `contributes.dashboardDetail` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_dashboard_card` (`kosui ddk:dashboard-card`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-detail-extension.ts` as `DashboardDetailExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.detail\"` | yes | Extension type, must be 'dashboard.detail' |\n| `dashboardKey` | `string` | yes | Key used to identify which dashboard this detail belongs to |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type |\n| --- | --- |\n| `dashboardKey` | `string` |\n| `assembly` | `AssemblyModel` |\n| `cardModel` | `any` |\n\n## Standard contributions\n\nOverride one by passing its id as `override` to the writing tool.\n\n| Id | Slot | Rank | Plugin |\n| --- | --- | --- | --- |\n| `kos-ddk-standard-plugin.dashboard.detail.CarbTank` | dashboardKey=carbTank | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.detail.CartridgeAgitator` | dashboardKey=cartridgeAgitators | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.detail.IceAgitator` | dashboardKey=iceAgitator | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.detail.RemoteTrays` | dashboardKey=remoteTrays | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-compact-plugin.dashboard.detail.CartridgeAgitator` | dashboardKey=cartridgeAgitators | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.detail.IceAgitator` | dashboardKey=iceAgitator | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.detail.RemoteTrays` | dashboardKey=remoteTrays | unranked | kos-ddk-compact-plugin |"
|
|
19280
|
+
"body": "# Dashboard Detail (`ddk.dashboard.detail`)\n\nExtension point for dashboard detail plugin configurations with view support\n\n- Contribution key: `contributes.dashboardDetail` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_dashboard_card` (`kosui ddk:dashboard-card`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-detail-extension.ts` as `DashboardDetailExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.detail\"` | yes | Extension type, must be 'dashboard.detail' |\n| `dashboardKey` | `string` | yes | Key used to identify which dashboard this detail belongs to |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `dashboardKey` | `string` | no | |\n| `assembly` | `AssemblyModel` | no | |\n| `cardModel` | `any` | no | |\n| `onComplete` | `() => void` | no | Closes the detail. |\n\n## Standard contributions\n\nOverride one by passing its id as `override` to the writing tool.\n\n| Id | Slot | Rank | Plugin |\n| --- | --- | --- | --- |\n| `kos-ddk-standard-plugin.dashboard.detail.CarbTank` | dashboardKey=carbTank | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.detail.CartridgeAgitator` | dashboardKey=cartridgeAgitators | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.detail.IceAgitator` | dashboardKey=iceAgitator | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.detail.RemoteTrays` | dashboardKey=remoteTrays | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-compact-plugin.dashboard.detail.CartridgeAgitator` | dashboardKey=cartridgeAgitators | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.detail.IceAgitator` | dashboardKey=iceAgitator | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.detail.RemoteTrays` | dashboardKey=remoteTrays | unranked | kos-ddk-compact-plugin |"
|
|
19230
19281
|
},
|
|
19231
19282
|
{
|
|
19232
19283
|
"uri": "ddk://extension-point/ddk.dashboard.macro-summary",
|
|
19233
19284
|
"name": "ddk-extension-point-ddk.dashboard.macro-summary",
|
|
19234
19285
|
"title": "Dashboard Macro Summary extension point",
|
|
19235
19286
|
"description": "ddk.dashboard.macro-summary (contributes.dashboardMacroSummary): fields, the props its component receives and add_macro_summary.",
|
|
19236
|
-
"body": "# Dashboard Macro Summary (`ddk.dashboard.macro-summary`)\n\nExtension point for plug-in supplied macro holder card summary content (the body shown on the dashboard, not the tap-detail modal)\n\n- Contribution key: `contributes.dashboardMacroSummary` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_macro_summary` (`kosui ddk:macro-summary`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-macro-summary-extension.ts` as `DashboardMacroSummaryExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.macro.summary\"` | yes | Extension type, must be 'dashboard.macro.summary' |\n| `dashboardKey` | `string` | yes | Key used to match this extension with a macro holder. Tried in order: (1) holder.name (e.g. 'ns', 'water', 'carb'), (2) ExtensionManager.executeDashboardKeyFactory(holder) (default: holder.pumps.data[0]?.type, e.g. 'lfcv', 'cgp'). |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type |\n| --- | --- |\n| `holder` | `HolderModel` |"
|
|
19287
|
+
"body": "# Dashboard Macro Summary (`ddk.dashboard.macro-summary`)\n\nExtension point for plug-in supplied macro holder card summary content (the body shown on the dashboard, not the tap-detail modal)\n\n- Contribution key: `contributes.dashboardMacroSummary` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_macro_summary` (`kosui ddk:macro-summary`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-macro-summary-extension.ts` as `DashboardMacroSummaryExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.macro.summary\"` | yes | Extension type, must be 'dashboard.macro.summary' |\n| `dashboardKey` | `string` | yes | Key used to match this extension with a macro holder. Tried in order: (1) holder.name (e.g. 'ns', 'water', 'carb'), (2) ExtensionManager.executeDashboardKeyFactory(holder) (default: holder.pumps.data[0]?.type, e.g. 'lfcv', 'cgp'). |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `holder` | `HolderModel` | no | |"
|
|
19237
19288
|
},
|
|
19238
19289
|
{
|
|
19239
19290
|
"uri": "ddk://extension-point/ddk.dashboard.pump-detail",
|
|
19240
19291
|
"name": "ddk-extension-point-ddk.dashboard.pump-detail",
|
|
19241
19292
|
"title": "Dashboard Pump Detail extension point",
|
|
19242
19293
|
"description": "ddk.dashboard.pump-detail (contributes.dashboardPumpDetail): fields, the props its component receives, standard contributions and add_pump_detail.",
|
|
19243
|
-
"body": "# Dashboard Pump Detail (`ddk.dashboard.pump-detail`)\n\nExtension point for dashboard pump detail plugin configurations with view support\n\n- Contribution key: `contributes.dashboardPumpDetail` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_pump_detail` (`kosui ddk:pump-detail`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-pump-detail-extension.ts` as `DashboardPumpDetailExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.detail.pump\"` | yes | Extension type, must be 'dashboard.detail.pump' |\n| `dashboardKey` | `string` | yes | Key used to match this extension with specific dashboard pumps |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type |\n| --- | --- |\n| `holder` | `HolderModel` |\n\n## Standard contributions\n\nOverride one by passing its id as `override` to the writing tool.\n\n| Id | Slot | Rank | Plugin |\n| --- | --- | --- | --- |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.CANSuperPump` | dashboardKey=microSuper | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.MicroPump` | dashboardKey=micro | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.cgp` | dashboardKey=cgp | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.fcm` | dashboardKey=fcm | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.lfcv` | dashboardKey=lfcv | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.lfcvdv` | dashboardKey=lfcvdv | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.msv` | dashboardKey=msv | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.valve` | dashboardKey=valve | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.CANSuperPump` | dashboardKey=microSuper | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.MicroPump` | dashboardKey=micro | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.fcm` | dashboardKey=fcm | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.lfcv` | dashboardKey=lfcv | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.lfcvdv` | dashboardKey=lfcvdv | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.msv` | dashboardKey=msv | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.valve` | dashboardKey=valve | unranked | kos-ddk-compact-plugin |"
|
|
19294
|
+
"body": "# Dashboard Pump Detail (`ddk.dashboard.pump-detail`)\n\nExtension point for dashboard pump detail plugin configurations with view support\n\n- Contribution key: `contributes.dashboardPumpDetail` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_pump_detail` (`kosui ddk:pump-detail`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-pump-detail-extension.ts` as `DashboardPumpDetailExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.detail.pump\"` | yes | Extension type, must be 'dashboard.detail.pump' |\n| `dashboardKey` | `string` | yes | Key used to match this extension with specific dashboard pumps |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `holder` | `HolderModel` | no | |\n\n## Standard contributions\n\nOverride one by passing its id as `override` to the writing tool.\n\n| Id | Slot | Rank | Plugin |\n| --- | --- | --- | --- |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.CANSuperPump` | dashboardKey=microSuper | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.MicroPump` | dashboardKey=micro | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.cgp` | dashboardKey=cgp | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.fcm` | dashboardKey=fcm | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.lfcv` | dashboardKey=lfcv | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.lfcvdv` | dashboardKey=lfcvdv | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.msv` | dashboardKey=msv | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.pumpDetail.valve` | dashboardKey=valve | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.CANSuperPump` | dashboardKey=microSuper | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.MicroPump` | dashboardKey=micro | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.fcm` | dashboardKey=fcm | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.lfcv` | dashboardKey=lfcv | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.lfcvdv` | dashboardKey=lfcvdv | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.msv` | dashboardKey=msv | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.pumpDetail.valve` | dashboardKey=valve | unranked | kos-ddk-compact-plugin |"
|
|
19244
19295
|
},
|
|
19245
19296
|
{
|
|
19246
19297
|
"uri": "ddk://extension-point/ddk.dashboard.pump-summary",
|
|
19247
19298
|
"name": "ddk-extension-point-ddk.dashboard.pump-summary",
|
|
19248
19299
|
"title": "Dashboard Pump Summary extension point",
|
|
19249
19300
|
"description": "ddk.dashboard.pump-summary (contributes.dashboardPumpSummary): fields, the props its component receives and add_pump_card.",
|
|
19250
|
-
"body": "# Dashboard Pump Summary (`ddk.dashboard.pump-summary`)\n\nExtension point for the body of a holder's dashboard card by pump type; the card keeps its default body when none matches\n\n- Contribution key: `contributes.dashboardPumpSummary` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_pump_card` (`kosui ddk:pump-card`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-pump-summary-extension.ts` as `DashboardPumpSummaryExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.summary.pump\"` | yes | Extension type, must be 'dashboard.summary.pump' |\n| `dashboardKey` | `string` | yes | Key used to match this extension with dashboard pumps: the holder's dashboard key, by default its first pump's type (e.g. 'cgp', 'lfcv'). |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type |\n| --- | --- |\n| `holder` | `HolderModel` |"
|
|
19301
|
+
"body": "# Dashboard Pump Summary (`ddk.dashboard.pump-summary`)\n\nExtension point for the body of a holder's dashboard card by pump type; the card keeps its default body when none matches\n\n- Contribution key: `contributes.dashboardPumpSummary` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_pump_card` (`kosui ddk:pump-card`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-pump-summary-extension.ts` as `DashboardPumpSummaryExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.summary.pump\"` | yes | Extension type, must be 'dashboard.summary.pump' |\n| `dashboardKey` | `string` | yes | Key used to match this extension with dashboard pumps: the holder's dashboard key, by default its first pump's type (e.g. 'cgp', 'lfcv'). |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `holder` | `HolderModel` | no | |"
|
|
19251
19302
|
},
|
|
19252
19303
|
{
|
|
19253
19304
|
"uri": "ddk://extension-point/ddk.dashboard.summary",
|
|
19254
19305
|
"name": "ddk-extension-point-ddk.dashboard.summary",
|
|
19255
19306
|
"title": "Dashboard Summary extension point",
|
|
19256
19307
|
"description": "ddk.dashboard.summary (contributes.dashboardSummary): fields, the props its component receives, standard contributions and add_dashboard_card.",
|
|
19257
|
-
"body": "# Dashboard Summary (`ddk.dashboard.summary`)\n\nExtension point for dashboard summary plugin configurations with view support\n\n- Contribution key: `contributes.dashboardSummary` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_dashboard_card` (`kosui ddk:dashboard-card`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-summary-extension.ts` as `DashboardSummaryExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.summary\"` | yes | Extension type, must be 'dashboard.summary' |\n| `dashboardKey` | `string` | yes | Key used to identify which dashboard this summary belongs to |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type |\n| --- | --- |\n| `dashboardKey` | `string` |\n| `assembly` | `AssemblyModel` |\n| `cardModel` | `any` |\n\n## Standard contributions\n\nOverride one by passing its id as `override` to the writing tool.\n\n| Id | Slot | Rank | Plugin |\n| --- | --- | --- | --- |\n| `kos-ddk-standard-plugin.dashboard.summary.CarbTank` | dashboardKey=carbTank | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.summary.CartridgeAgitator` | dashboardKey=cartridgeAgitators | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.summary.IceAgitator` | dashboardKey=iceAgitator | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.summary.RemoteTrays` | dashboardKey=remoteTrays | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-compact-plugin.dashboard.summary.CartridgeAgitator` | dashboardKey=cartridgeAgitators | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.summary.IceAgitator` | dashboardKey=iceAgitator | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.summary.RemoteTrays` | dashboardKey=remoteTrays | unranked | kos-ddk-compact-plugin |"
|
|
19308
|
+
"body": "# Dashboard Summary (`ddk.dashboard.summary`)\n\nExtension point for dashboard summary plugin configurations with view support\n\n- Contribution key: `contributes.dashboardSummary` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_dashboard_card` (`kosui ddk:dashboard-card`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/dashboard-summary-extension.ts` as `DashboardSummaryExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"dashboard.summary\"` | yes | Extension type, must be 'dashboard.summary' |\n| `dashboardKey` | `string` | yes | Key used to identify which dashboard this summary belongs to |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `dashboardKey` | `string` | no | |\n| `assembly` | `AssemblyModel` | no | |\n| `cardModel` | `any` | no | |\n\n## Standard contributions\n\nOverride one by passing its id as `override` to the writing tool.\n\n| Id | Slot | Rank | Plugin |\n| --- | --- | --- | --- |\n| `kos-ddk-standard-plugin.dashboard.summary.CarbTank` | dashboardKey=carbTank | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.summary.CartridgeAgitator` | dashboardKey=cartridgeAgitators | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.summary.IceAgitator` | dashboardKey=iceAgitator | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dashboard.summary.RemoteTrays` | dashboardKey=remoteTrays | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-compact-plugin.dashboard.summary.CartridgeAgitator` | dashboardKey=cartridgeAgitators | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.summary.IceAgitator` | dashboardKey=iceAgitator | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dashboard.summary.RemoteTrays` | dashboardKey=remoteTrays | unranked | kos-ddk-compact-plugin |"
|
|
19258
19309
|
},
|
|
19259
19310
|
{
|
|
19260
19311
|
"uri": "ddk://extension-point/ddk.nav.view",
|
|
@@ -19263,26 +19314,26 @@
|
|
|
19263
19314
|
"description": "ddk.nav.view (contributes.navViews): fields, the props its component receives, standard contributions and add_nav_view.",
|
|
19264
19315
|
"body": "# Navigation Views (`ddk.nav.view`)\n\nExtension point for navigation view plugin configurations with view support\n\n- Contribution key: `contributes.navViews` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_nav_view` (`kosui ddk:nav`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/nav-view-extension.ts` as `NavViewExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `navDescriptor` | `string` | yes | Descriptor used to identify and map the navigation functionality |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\nNone beyond the extension's own data.\n\n## Standard contributions\n\nOverride one by passing its id as `override` to the writing tool.\n\n| Id | Slot | Rank | Plugin |\n| --- | --- | --- | --- |\n| `about.hardware` | navDescriptor=about.hardware | unranked | kos-ddk-standard-plugin |\n| `about.software` | navDescriptor=about.software | unranked | kos-ddk-standard-plugin |\n| `dashboard` | navDescriptor=dashboard | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.about.nav` | navDescriptor=about | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.connectivity.nav` | navDescriptor=about.connectivity | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.cuiConfiguration.nav` | navDescriptor=settings.cui-selection | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dispenserInfo.nav` | navDescriptor=about.dispenser-info | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.dispenserProfile.nav` | navDescriptor=settings.dispenser-profile | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.ice-settings.nav` | navDescriptor=settings.ice | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.regions.nav` | navDescriptor=settings.regions | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.remote-nns-settings.nav` | navDescriptor=settings.remote-nns | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.settings.nav` | navDescriptor=settings | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.summary.nav` | navDescriptor=summary | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.water-settings.nav` | navDescriptor=settings.water | unranked | kos-ddk-standard-plugin |\n| `notifications` | navDescriptor=notifications | unranked | kos-ddk-standard-plugin |\n| `about.hardware` | navDescriptor=about.hardware | unranked | kos-ddk-compact-plugin |\n| `about.software` | navDescriptor=about.software | unranked | kos-ddk-compact-plugin |\n| `dashboard` | navDescriptor=dashboard | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.about.nav` | navDescriptor=about | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.connectivity.nav` | navDescriptor=about.connectivity | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.cuiConfiguration.nav` | navDescriptor=settings.cui-selection | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dispenserInfo.nav` | navDescriptor=about.dispenser-info | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.dispenserProfile.nav` | navDescriptor=settings.dispenser-profile | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.iceSettings.nav` | navDescriptor=settings.ice-settings | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.remote-nns-settings.nav` | navDescriptor=settings.remote-nns | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.timeSettings.nav` | navDescriptor=settings.time-settings | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.waterSettings.nav` | navDescriptor=settings.water-settings | unranked | kos-ddk-compact-plugin |\n| `network` | navDescriptor=network | unranked | kos-ddk-compact-plugin |\n| `notifications` | navDescriptor=notifications | unranked | kos-ddk-compact-plugin |\n| `settings.localization` | navDescriptor=settings.localization | unranked | kos-ddk-compact-plugin |"
|
|
19265
19316
|
},
|
|
19317
|
+
{
|
|
19318
|
+
"uri": "ddk://extension-point/ddk.ncui.utilities",
|
|
19319
|
+
"name": "ddk-extension-point-ddk.ncui.utilities",
|
|
19320
|
+
"title": "Utilities extension point",
|
|
19321
|
+
"description": "ddk.ncui.utilities (contributes.utilities): fields, the props its component receives, standard contributions and add_utility.",
|
|
19322
|
+
"body": "# Utilities (`ddk.ncui.utilities`)\n\nExtension point for utility plugin configurations with view support\n\n- Contribution key: `contributes.utilities` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_utility` (`kosui ddk:utility`).\n- Declared in: `kos-ddk-app/.kos.json`, `kos-ddk-app-compact/.kos.json` (`kos.ui.plugin.extensions`).\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `utilDescriptor` | `string` | no | Descriptor used to identify and categorize the utility |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `onComplete` | `() => void` | yes | |\n| `onSkip` | `() => void` | no | |\n\n## Standard contributions\n\nOverride one by passing its id as `override` to the writing tool.\n\n| Id | Slot | Rank | Plugin |\n| --- | --- | --- | --- |\n| `kos-ddk-standard-plugin.copyLogs.util` | utilDescriptor=downloadLogs | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-standard-plugin.usbUpdate.util` | utilDescriptor=usbUpdate | unranked | kos-ddk-standard-plugin |\n| `kos-ddk-compact-plugin.copyLogs.util` | utilDescriptor=downloadLogs | unranked | kos-ddk-compact-plugin |\n| `kos-ddk-compact-plugin.usbUpdate.util` | utilDescriptor=usbUpdate | unranked | kos-ddk-compact-plugin |"
|
|
19323
|
+
},
|
|
19266
19324
|
{
|
|
19267
19325
|
"uri": "ddk://extension-point/ddk.setup",
|
|
19268
19326
|
"name": "ddk-extension-point-ddk.setup",
|
|
19269
19327
|
"title": "Setup Steps extension point",
|
|
19270
19328
|
"description": "ddk.setup (contributes.setupStep): fields, the props its component receives, standard contributions and add_setup_step.",
|
|
19271
|
-
"body": "# Setup Steps (`ddk.setup`)\n\nExtension point for setup step plugin configurations with view support\n\n- Contribution key: `contributes.setupStep` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_setup_step` (`kosui ddk:setup`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/setup-extension.ts` as `SetupExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `setupDescriptor` | `string` | yes | Descriptor used to identify and categorize the setup step |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\
|
|
19329
|
+
"body": "# Setup Steps (`ddk.setup`)\n\nExtension point for setup step plugin configurations with view support\n\n- Contribution key: `contributes.setupStep` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_setup_step` (`kosui ddk:setup`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/setup-extension.ts` as `SetupExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `setupDescriptor` | `string` | yes | Descriptor used to identify and categorize the setup step |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `onComplete` | `() => void` | yes | Marks the step complete on the device, then opens the next step. |\n| `onSkip` | `() => void` | no | Opens the next step without marking this one complete. |\n\n## Standard contributions\n\nOverride one by passing its id as `override` to the writing tool.\n\n| Id | Slot | Rank | Plugin |\n| --- | --- | --- | --- |\n| `kos-ddk-standard-plugin.carbTank.setup` | setupDescriptor=carbTank | unranked | kos-ddk-standard-plugin |"
|
|
19272
19330
|
},
|
|
19273
19331
|
{
|
|
19274
19332
|
"uri": "ddk://extension-point/ddk.trouble.action",
|
|
19275
19333
|
"name": "ddk-extension-point-ddk.trouble.action",
|
|
19276
19334
|
"title": "Trouble Actions extension point",
|
|
19277
19335
|
"description": "ddk.trouble.action (contributes.troubleActions): fields, the props its component receives and add_trouble_action.",
|
|
19278
|
-
"body": "# Trouble Actions (`ddk.trouble.action`)\n\nExtension point for trouble action plugin configurations with view support\n\n- Contribution key: `contributes.troubleActions` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_trouble_action` (`kosui ddk:trouble-action`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/trouble-action-extension.ts` as `TroubleActionExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"trouble.action\"` | yes | Extension type, must be 'trouble.action' |\n| `troubleType` | `string` | yes | Specific trouble type from TroubleContainer that triggers this action (e.g., 'pump-motor-fault', 'sensor-calibration-error'). This must match the exact trouble type string emitted by the device/system. |\n| `stateKey` | `string` | yes | Normalized state key for grouping related troubles under a common UI experience (e.g., 'pumpProblem', 'sensorIssue'). Multiple troubleTypes can share the same stateKey to show the same troubleshooting component. If not provided, defaults to troubleType for 1:1 mapping. |\n| `stateValue` | `string` | yes | Value set in the reactive state when this trouble becomes active (e.g., 'pump-failure', 'needs-calibration'). Used by other components to detect trouble categories and trigger appropriate responses. If not provided, defaults to troubleType. |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type |\n| --- | --- |\n| `trouble` | `any` |"
|
|
19279
|
-
},
|
|
19280
|
-
{
|
|
19281
|
-
"uri": "ddk://extension-point/ddk.view",
|
|
19282
|
-
"name": "ddk-extension-point-ddk.view",
|
|
19283
|
-
"title": "Views extension point",
|
|
19284
|
-
"description": "ddk.view (contributes.views): fields, the props its component receives.",
|
|
19285
|
-
"body": "# Views (`ddk.view`)\n\nExtension point for view plugin configurations with regional rendering support\n\n- Contribution key: `contributes.views` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: no kos-ddk-cli command writes this point.\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/view-extension.ts` as `ViewExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `viewKey` | `string` | yes | Key identifying the UI region where this component should be rendered (e.g., 'settings.config', 'dashboard.sidebar'). Multiple plugins can contribute to the same viewKey, and all will be rendered in the designated region. |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type |\n| --- | --- |\n| `viewKey` | `string` |"
|
|
19336
|
+
"body": "# Trouble Actions (`ddk.trouble.action`)\n\nExtension point for trouble action plugin configurations with view support\n\n- Contribution key: `contributes.troubleActions` in the plugin's `.kos.json`.\n- Ranked: yes. The lowest rank wins a slot; an unranked contribution loses to any ranked one.\n- View: yes, each contribution names an experience that renders its component.\n- Written by: `add_trouble_action` (`kosui ddk:trouble-action`).\n- Defined in: `@kosdev-code/kos-ddk-model-components/src/extensions/trouble-action-extension.ts` as `TroubleActionExtension`.\n\n## Contribution fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | `\"trouble.action\"` | yes | Extension type, must be 'trouble.action' |\n| `troubleType` | `string` | yes | Specific trouble type from TroubleContainer that triggers this action (e.g., 'pump-motor-fault', 'sensor-calibration-error'). This must match the exact trouble type string emitted by the device/system. |\n| `stateKey` | `string` | yes | Normalized state key for grouping related troubles under a common UI experience (e.g., 'pumpProblem', 'sensorIssue'). Multiple troubleTypes can share the same stateKey to show the same troubleshooting component. If not provided, defaults to troubleType for 1:1 mapping. |\n| `stateValue` | `string` | yes | Value set in the reactive state when this trouble becomes active (e.g., 'pump-failure', 'needs-calibration'). Used by other components to detect trouble categories and trigger appropriate responses. If not provided, defaults to troubleType. |\n| `rank` | `number` | no | |\n\n## Props your component receives\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `trouble` | `any` | no | |"
|
|
19286
19337
|
}
|
|
19287
19338
|
]
|
|
19288
19339
|
}
|