@kosdev-code/kos-ddk-cli 0.1.0-dev.93 → 0.1.0-dev.94
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/agent-plugin/kos-ddk-tools/.claude-plugin/plugin.json +1 -1
- package/agent-plugin/kos-ddk-tools/plugin.json +1 -1
- package/agent-plugin/kos-ddk-tools/reference/reference.json +1 -1
- package/agent-plugin/kos-ddk-tools/servers/kos-ddk.mjs +178 -178
- package/package.json +2 -2
- package/reference/reference.json +1 -1
- package/src/codegen/descriptor.mjs +12 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kos-ddk-tools",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.94",
|
|
4
4
|
"description": "KOS DDK plugin authoring (kos-ddk) MCP server: plugin projects, extension-point contributions and overrides of the standard ones.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kosdev-code"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "kos-ddk-tools",
|
|
4
|
-
"version": "0.1.0-dev.
|
|
4
|
+
"version": "0.1.0-dev.94",
|
|
5
5
|
"description": "KOS DDK plugin authoring (kos-ddk) MCP server: plugin projects, extension-point contributions and overrides of the standard ones.",
|
|
6
6
|
"license": "MIT"
|
|
7
7
|
}
|
|
@@ -20964,7 +20964,7 @@
|
|
|
20964
20964
|
"name": "ddk-guide-descriptor-project",
|
|
20965
20965
|
"title": "NCUI descriptor projects",
|
|
20966
20966
|
"description": "What ddk:descriptor-project writes for each layout and option, the dashboard layout, and where --descriptorProject lists a utility, setup step or navigation view.",
|
|
20967
|
-
"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\nDashboard regions:\n\n- `micros`: holder groups `*micros*`; one column per group\n- `macros`: holder groups `*`; compact cards; small size\n- `assembly`: summaries `*`; small size\n\nDashboard areas:\n\n- portrait: `micros macros` `micros macros` `micros assembly` (columns `73% 27%`)\n- landscape: `micros micros` `macros assembly` (columns `50% 50%`)\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\nDashboard regions:\n\n- `micros`: holder groups `*micros*`; one column per group\n- `macros`: holder groups `*`; compact cards; small size\n- `assembly`: summaries `*`; small size\n\nDashboard areas:\n\n- portrait: `micros` `macros` `assembly` (columns `100%`)\n- landscape: `micros micros` `macros assembly` (columns `50% 50%`)\n\n## Dashboard layout\n\n`kondra.ncui.dashboard` lays out the dashboard. With none, the DDK uses the built-in layout for its component mode (the same as a new project's).\n\n- `regions`: named slots. `holders` and `summaries` are holder-group and `dashboard.summary` `dashboardKey` patterns (`*` is the only wildcard). Each group and key goes to the first region, in list order, that the current layout places and that matches it; put `[\"*\"]` last to catch the rest. `holderCard` (default `true`) renders the holders as holder cards, `false` as compact cards; `perGroup` gives each group its own sub-column; `size` (`default` or `small`) applies to every card in the region; `justify` (`left`, `right`, `center`, `full`, default `full`) places the region and its cards in its cell.\n- `layouts.portrait` and/or `layouts.landscape` (give at least one; an orientation without a layout uses the other): `areas` (one string per row of region names, `.` for an empty cell), `columns` and `rows` (one size each: a share of the space such as `60%`, or `fit` to size to the cards; rows default to `fit`), `justify` (`left`, `right` or `center`: where the grid sits when its columns don't fill the width, default `left`), and `flow` per region: `cards` and `groups` (`vertical` or `horizontal`), `wrap`.\n- A plugin renders a whole region with a `ddk.dashboard.region` contribution (`add_dashboard_region`) whose `regionKey` is the region's `component`, else its `name`; a region with none renders its built-in cards. A region that claims no holders or summaries (only a `component`, such as a dispenser map) takes no cards from the others and shows only while a plugin contributes its key.\n- A region with nothing to show is empty, and a column or row whose cells are all empty is dropped with its size, and its share goes to the columns that remain: a dispenser without micro groups loses the micro columns. Give a pinned column the size `fit` and set `justify: \"right\"` to keep it at the right edge when the others drop.\n- `validate_ddk_plugin` warns about an area that is no region, a plugin's dashboard summary that no placed region claims, a size that is not a share or `fit`, shares that do not add up to 100%, an unknown `justify`, a region `component` no workspace plugin contributes, and a plugin's region contribution that no descriptor region uses.\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."
|
|
20967
|
+
"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\nDashboard regions:\n\n- `micros`: holder groups `*micros*`; one column per group\n- `macros`: holder groups `*`; compact cards; small size\n- `assembly`: summaries `*`; small size\n\nDashboard areas:\n\n- portrait: `micros macros` `micros macros` `micros assembly` (columns `73% 27%`)\n- landscape: `micros micros` `macros assembly` (columns `50% 50%`)\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\nDashboard regions:\n\n- `micros`: holder groups `*micros*`; one column per group\n- `macros`: holder groups `*`; compact cards; small size\n- `assembly`: summaries `*`; small size\n\nDashboard areas:\n\n- portrait: `micros` `macros` `assembly` (columns `100%`)\n- landscape: `micros micros` `macros assembly` (columns `50% 50%`)\n\n## Dashboard layout\n\n`kondra.ncui.dashboard` lays out the dashboard. With none, the DDK uses the built-in layout for its component mode (the same as a new project's).\n\n- `regions`: named slots. `holders` and `summaries` are holder-group and `dashboard.summary` `dashboardKey` patterns (`*` is the only wildcard). Each group and key goes to the first region, in list order, that the current layout places and that matches it; put `[\"*\"]` last to catch the rest. `holderCard` (default `true`) renders the holders as holder cards, `false` as compact cards; `perGroup` gives each group its own sub-column; `size` (`default` or `small`) applies to every card in the region; `justify` (`left`, `right`, `center`, `full`, default `full`) places the region and its cards in its cell.\n- `layouts.portrait` and/or `layouts.landscape` (give at least one; an orientation without a layout uses the other): `areas` (one string per row of region names, `.` for an empty cell), `columns` and `rows` (one size each: a share of the space such as `60%`, or `fit` to size to the cards; rows default to `fit`; a column can also be `fixed 20%` or `fixed 240px` for a set width, or `max 30%` or `max 300px` to fit its cards up to that width, where the percentage is of the dashboard's width and shares divide what is left), `justify` (`left`, `right` or `center`: where the grid sits when its columns don't fill the width, default `left`), and `flow` per region: `cards` and `groups` (`vertical` or `horizontal`), `wrap`.\n- A plugin renders a whole region with a `ddk.dashboard.region` contribution (`add_dashboard_region`) whose `regionKey` is the region's `component`, else its `name`; a region with none renders its built-in cards. A region that claims no holders or summaries (only a `component`, such as a dispenser map) takes no cards from the others and shows only while a plugin contributes its key.\n- A region with nothing to show is empty, and a column or row whose cells are all empty is dropped with its size, and its share goes to the columns that remain: a dispenser without micro groups loses the micro columns. Give a pinned column the size `fit` and set `justify: \"right\"` to keep it at the right edge when the others drop.\n- `validate_ddk_plugin` warns about an area that is no region, a plugin's dashboard summary that no placed region claims, a size that is not a share or `fit`, shares that do not add up to 100%, an unknown `justify`, a region `component` no workspace plugin contributes, and a plugin's region contribution that no descriptor region uses.\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."
|
|
20968
20968
|
},
|
|
20969
20969
|
{
|
|
20970
20970
|
"uri": "ddk://design/base",
|