@kosdev-code/kos-ddk-cli 0.0.0-stage → 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 +165 -2
- package/agent-plugin/.claude-plugin/marketplace.json +13 -0
- package/agent-plugin/kos-ddk-tools/.claude-plugin/plugin.json +8 -0
- package/agent-plugin/kos-ddk-tools/.mcp.json +11 -0
- package/agent-plugin/kos-ddk-tools/agents/kos-ddk-plugin-planner.md +40 -0
- package/agent-plugin/kos-ddk-tools/agents/kos-ddk-plugin-reviewer.md +33 -0
- package/agent-plugin/kos-ddk-tools/catalog/contributions.json +877 -0
- package/agent-plugin/kos-ddk-tools/mcp.json +12 -0
- package/agent-plugin/kos-ddk-tools/plugin.json +7 -0
- package/agent-plugin/kos-ddk-tools/reference/reference.json +19339 -0
- package/agent-plugin/kos-ddk-tools/servers/kos-ddk.mjs +48633 -0
- package/agent-plugin/kos-ddk-tools/skills/build-ddk-plugin/SKILL.md +74 -0
- package/agent-plugin/kos-ddk-tools/skills/ddk-content-component/SKILL.md +49 -0
- package/agent-plugin/kos-ddk-tools/skills/ddk-storybook/SKILL.md +39 -0
- package/agent-plugin/kos-ddk-tools/templates/cui/__nameDashCase__.stories.tsx__template__ +32 -0
- package/agent-plugin/kos-ddk-tools/templates/cui/__nameDashCase__.tsx__template__ +35 -0
- package/agent-plugin/kos-ddk-tools/templates/cui/index.ts__template__ +1 -0
- package/agent-plugin/kos-ddk-tools/templates/dashboard-detail/detail/__nameDashCase__.stories.tsx__template__ +34 -0
- package/agent-plugin/kos-ddk-tools/templates/dashboard-detail/detail/__nameDashCase__.tsx__template__ +52 -0
- package/agent-plugin/kos-ddk-tools/templates/dashboard-detail/detail/index.ts__template__ +1 -0
- package/agent-plugin/kos-ddk-tools/templates/dashboard-summary/summary/__nameDashCase__.stories.tsx__template__ +34 -0
- package/agent-plugin/kos-ddk-tools/templates/dashboard-summary/summary/__nameDashCase__.tsx__template__ +41 -0
- package/agent-plugin/kos-ddk-tools/templates/dashboard-summary/summary/index.ts__template__ +1 -0
- package/agent-plugin/kos-ddk-tools/templates/macro-summary/__nameDashCase__.stories.tsx__template__ +34 -0
- package/agent-plugin/kos-ddk-tools/templates/macro-summary/__nameDashCase__.tsx__template__ +24 -0
- package/agent-plugin/kos-ddk-tools/templates/macro-summary/index.ts__template__ +1 -0
- package/agent-plugin/kos-ddk-tools/templates/nav/__nameDashCase__.stories.tsx__template__ +32 -0
- package/agent-plugin/kos-ddk-tools/templates/nav/__nameDashCase__.tsx__template__ +27 -0
- package/agent-plugin/kos-ddk-tools/templates/nav/index.ts__template__ +1 -0
- package/agent-plugin/kos-ddk-tools/templates/plugin-project/.storybook/preview.tsx.template +113 -0
- package/agent-plugin/kos-ddk-tools/templates/plugin-project/.storybook/registration.ts.template +6 -0
- package/agent-plugin/kos-ddk-tools/templates/pump-detail/__nameDashCase__.stories.tsx__template__ +34 -0
- package/agent-plugin/kos-ddk-tools/templates/pump-detail/__nameDashCase__.tsx__template__ +38 -0
- package/agent-plugin/kos-ddk-tools/templates/pump-detail/index.ts__template__ +1 -0
- package/agent-plugin/kos-ddk-tools/templates/pump-summary/__nameDashCase__.stories.tsx__template__ +34 -0
- package/agent-plugin/kos-ddk-tools/templates/pump-summary/__nameDashCase__.tsx__template__ +25 -0
- package/agent-plugin/kos-ddk-tools/templates/pump-summary/index.ts__template__ +1 -0
- package/agent-plugin/kos-ddk-tools/templates/setup/__nameDashCase__.stories.tsx__template__ +32 -0
- package/agent-plugin/kos-ddk-tools/templates/setup/__nameDashCase__.tsx__template__ +33 -0
- package/agent-plugin/kos-ddk-tools/templates/setup/index.ts__template__ +1 -0
- package/agent-plugin/kos-ddk-tools/templates/theme-project/theme/assets/component.css.template +2 -0
- package/agent-plugin/kos-ddk-tools/templates/theme-project/theme/assets/generic.css.template +2 -0
- package/agent-plugin/kos-ddk-tools/templates/theme-project/theme/assets/semantic.css.template +2 -0
- package/agent-plugin/kos-ddk-tools/templates/theme-project/theme/assets/theme-overlay.css.template +7 -0
- package/agent-plugin/kos-ddk-tools/templates/trouble-action/__nameDashCase__.stories.tsx__template__ +31 -0
- package/agent-plugin/kos-ddk-tools/templates/trouble-action/__nameDashCase__.tsx__template__ +57 -0
- package/agent-plugin/kos-ddk-tools/templates/trouble-action/index.ts__template__ +1 -0
- package/agent-plugin/kos-ddk-tools/templates/utility/__nameDashCase__.stories.tsx__template__ +32 -0
- package/agent-plugin/kos-ddk-tools/templates/utility/__nameDashCase__.tsx__template__ +37 -0
- package/agent-plugin/kos-ddk-tools/templates/utility/index.ts__template__ +1 -0
- package/catalog/contributions.json +877 -0
- package/guides/ddk-dev.md +47 -0
- package/guides/getting-started.md +117 -0
- package/guides/storybook.md +104 -0
- package/package.json +33 -3
- package/reference/reference.json +19339 -0
- package/src/build-paths.mjs +20 -0
- package/src/codegen/contribution.mjs +425 -0
- package/src/codegen/descriptor.mjs +210 -0
- package/src/codegen/ncui-descriptor.mjs +134 -0
- package/src/codegen/overrides.mjs +263 -0
- package/src/codegen/project.mjs +242 -0
- package/src/extension.mjs +32 -0
- package/src/generators/agent-install.mjs +80 -0
- package/src/generators/catalog.mjs +81 -0
- package/src/generators/contributions.mjs +151 -0
- package/src/generators/dashboard.mjs +241 -0
- package/src/generators/descriptor-entries.mjs +53 -0
- package/src/generators/descriptor-project.mjs +79 -0
- package/src/generators/dev.mjs +231 -0
- package/src/generators/override-prompts.mjs +27 -0
- package/src/generators/plugin-project.mjs +66 -0
- package/src/generators/theme-project.mjs +45 -0
- package/src/handlers.mjs +315 -0
- package/src/mcp/pkg-info.mjs +7 -0
- package/src/mcp/plugin-inspect.mjs +292 -0
- package/src/mcp/reference.mjs +264 -0
- package/src/mcp/server.mjs +12 -0
- package/src/mcp/tools.mjs +575 -0
- package/templates/cui/__nameDashCase__.stories.tsx__template__ +32 -0
- package/templates/cui/__nameDashCase__.tsx__template__ +35 -0
- package/templates/cui/index.ts__template__ +1 -0
- package/templates/dashboard-detail/detail/__nameDashCase__.stories.tsx__template__ +34 -0
- package/templates/dashboard-detail/detail/__nameDashCase__.tsx__template__ +52 -0
- package/templates/dashboard-detail/detail/index.ts__template__ +1 -0
- package/templates/dashboard-summary/summary/__nameDashCase__.stories.tsx__template__ +34 -0
- package/templates/dashboard-summary/summary/__nameDashCase__.tsx__template__ +41 -0
- package/templates/dashboard-summary/summary/index.ts__template__ +1 -0
- package/templates/macro-summary/__nameDashCase__.stories.tsx__template__ +34 -0
- package/templates/macro-summary/__nameDashCase__.tsx__template__ +24 -0
- package/templates/macro-summary/index.ts__template__ +1 -0
- package/templates/nav/__nameDashCase__.stories.tsx__template__ +32 -0
- package/templates/nav/__nameDashCase__.tsx__template__ +27 -0
- package/templates/nav/index.ts__template__ +1 -0
- package/templates/plugin-project/.storybook/preview.tsx.template +113 -0
- package/templates/plugin-project/.storybook/registration.ts.template +6 -0
- package/templates/pump-detail/__nameDashCase__.stories.tsx__template__ +34 -0
- package/templates/pump-detail/__nameDashCase__.tsx__template__ +38 -0
- package/templates/pump-detail/index.ts__template__ +1 -0
- package/templates/pump-summary/__nameDashCase__.stories.tsx__template__ +34 -0
- package/templates/pump-summary/__nameDashCase__.tsx__template__ +25 -0
- package/templates/pump-summary/index.ts__template__ +1 -0
- package/templates/setup/__nameDashCase__.stories.tsx__template__ +32 -0
- package/templates/setup/__nameDashCase__.tsx__template__ +33 -0
- package/templates/setup/index.ts__template__ +1 -0
- package/templates/theme-project/theme/assets/component.css.template +2 -0
- package/templates/theme-project/theme/assets/generic.css.template +2 -0
- package/templates/theme-project/theme/assets/semantic.css.template +2 -0
- package/templates/theme-project/theme/assets/theme-overlay.css.template +7 -0
- package/templates/trouble-action/__nameDashCase__.stories.tsx__template__ +31 -0
- package/templates/trouble-action/__nameDashCase__.tsx__template__ +57 -0
- package/templates/trouble-action/index.ts__template__ +1 -0
- package/templates/utility/__nameDashCase__.stories.tsx__template__ +32 -0
- package/templates/utility/__nameDashCase__.tsx__template__ +37 -0
- package/templates/utility/index.ts__template__ +1 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
uri: ddk://guide/ddk-dev
|
|
3
|
+
name: ddk-guide-ddk-dev
|
|
4
|
+
title: Testing plugins against a running DDK
|
|
5
|
+
description: Serving DDK plugin projects with kosui ddk:dev for a running device or simulator to load with ?pluginDevServers=, choosing plugins and scenarios.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Testing plugins against a running DDK
|
|
9
|
+
|
|
10
|
+
`ddk:dev` starts the dev server of each DDK plugin project and prints the URL that loads
|
|
11
|
+
them into a running DDK, without access to the DDK host source.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
kosui ddk:dev --device http://192.168.1.50:8081
|
|
15
|
+
kosui ddk:dev --plugins my-plugin --device http://192.168.1.50:8081
|
|
16
|
+
kosui ddk:dev --scenario compact --device http://192.168.1.50:8081
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Without `--plugins` or `--scenario` it starts every DDK plugin project. `--plugins`
|
|
20
|
+
takes project names or aliases; `--scenario` names a set in the workspace `.kos.json`:
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"development": {
|
|
25
|
+
"ddkScenarios": {
|
|
26
|
+
"standard": ["kos-ddk-standard-plugin", "beverage-pour"],
|
|
27
|
+
"compact": ["kos-ddk-compact-plugin", "beverage-pour"]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The device loads the plugins with `?pluginDevServers=`; an override wins over the
|
|
34
|
+
standard contribution only when the device's DDK resolves its slots by rank.
|
|
35
|
+
|
|
36
|
+
## The URL it prints
|
|
37
|
+
|
|
38
|
+
`--device` is the URL of the DDK UI on the device or simulator, either its origin or the
|
|
39
|
+
page itself. Given the origin, the printed URL opens the NCUI page,
|
|
40
|
+
`/app/kosdev.ddk/ncui/index.html`, which is where devices and the simulator serve it. The
|
|
41
|
+
printed URL adds `?pluginDevServers=` with one `http://<address>:<port>` per plugin, from
|
|
42
|
+
the `port` of its `serve` target. The address is `localhost` when the device is local and
|
|
43
|
+
the machine's LAN IPv4 address otherwise, so a device on the network can reach the dev
|
|
44
|
+
servers. Without `--device` it prints a `<device-url>` template.
|
|
45
|
+
|
|
46
|
+
Every plugin needs `options.port` on its `serve` target; `ddk:dev` refuses a plugin
|
|
47
|
+
without one.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
uri: ddk://guide/getting-started
|
|
3
|
+
name: ddk-guide-getting-started
|
|
4
|
+
title: Getting started with the DDK CLI
|
|
5
|
+
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.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Getting started with the DDK CLI
|
|
9
|
+
|
|
10
|
+
`@kosdev-code/kos-ddk-cli` is a `kosui` extension: it adds the `ddk:*` commands to the
|
|
11
|
+
`kosui` CLI and ships the `kos-ddk-tools` agent plugin. It has no CLI of its own.
|
|
12
|
+
|
|
13
|
+
## 1. kosui
|
|
14
|
+
|
|
15
|
+
`kosui` (`@kosdev-code/kos-ui-cli`) is installed globally, at 3.0.31 or later.
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install -g @kosdev-code/kos-ui-cli
|
|
19
|
+
kosui cli:update
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 2. Install the extension
|
|
23
|
+
|
|
24
|
+
Either in the workspace, which pins the version with the project:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
cd <repo>/ui
|
|
28
|
+
npm install -D @kosdev-code/kos-ddk-cli
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
or globally, beside `kosui`, which adds the commands in every workspace:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
npm install -g @kosdev-code/kos-ddk-cli
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`kosui` looks in the workspace's `package.json` dependencies first, then beside its own
|
|
38
|
+
global install. When both have it, the workspace copy is used.
|
|
39
|
+
|
|
40
|
+
`latest` is the released version. `@dev` is the build of the DDK's `main` branch, published
|
|
41
|
+
on every push:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
npm install -D @kosdev-code/kos-ddk-cli@dev
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 3. Check kosui loads it
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
kosui extensions
|
|
51
|
+
kosui help
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`kosui extensions` names the package, its version, where it came from (`[workspace]` or
|
|
55
|
+
`[global]`), its status and the commands it adds. `kosui help` lists them under `ddk:`.
|
|
56
|
+
|
|
57
|
+
A workspace can turn it off in its `.kos.json`:
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{ "cli": { "disabledExtensions": ["@kosdev-code/kos-ddk-cli"] } }
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## 4. Repo root or ui workspace
|
|
64
|
+
|
|
65
|
+
Every command and the MCP server work from the ui workspace (the directory with
|
|
66
|
+
`nx.json`) and from a polyglot repo root: when the repo root's `.kos.json` (written by
|
|
67
|
+
`kosui repo`) names a ui workspace in `workspaces.ui`, `kosui` and the server use that
|
|
68
|
+
workspace. An agent started at the repo root, to work across the backend and the UI,
|
|
69
|
+
gets the same commands and tools.
|
|
70
|
+
|
|
71
|
+
## 5. Agent plugin and MCP server
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
kosui ddk:agent-install --client claude --scope user
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
This registers the package's `kos-ddk-tools` plugin with the agent client and installs
|
|
78
|
+
it; the plugin runs the `kos-ddk` MCP server. `--scope user` installs it for every repo,
|
|
79
|
+
`--scope repo` for the current checkout only. Without `--client` it detects the client.
|
|
80
|
+
|
|
81
|
+
The server is one self-contained file inside the package, so it does not depend on the
|
|
82
|
+
workspace's `node_modules`. It is registered from wherever the package is installed, in
|
|
83
|
+
the workspace or globally.
|
|
84
|
+
|
|
85
|
+
Run `ddk:agent-install` again after upgrading or reinstalling the package: the client
|
|
86
|
+
keeps its copy of the plugin until the registration is refreshed.
|
|
87
|
+
|
|
88
|
+
## 6. Next
|
|
89
|
+
|
|
90
|
+
- `kosui ddk:plugin-project --name my-plugin` creates a DDK plugin project under
|
|
91
|
+
`plugins/` (`--directory` changes the folder). It tests against the `kosdev.ddk`
|
|
92
|
+
plugin context and registers with the workspace host serving that context, or with
|
|
93
|
+
`--host`; a workspace without a DDK host registers it with none. The contribution
|
|
94
|
+
commands in the README add to it.
|
|
95
|
+
- `kosui ddk:descriptor-project --name my-ncui --layout standard --ice true` (or `compact`) creates the
|
|
96
|
+
NCUI descriptor project a new utility, setup step or navigation view is listed in;
|
|
97
|
+
pass `--descriptorProject my-ncui` to `ddk:utility`, `ddk:setup` and `ddk:nav`. `ddk://guide/descriptor-project` lists what each layout and option writes.
|
|
98
|
+
- `ddk://guide/storybook` for developing contributions in Storybook.
|
|
99
|
+
- `ddk://guide/ddk-dev` for loading plugins into a running DDK.
|
|
100
|
+
|
|
101
|
+
## Upgrading
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
kosui cli:update # kosui
|
|
105
|
+
npm install -D @kosdev-code/kos-ddk-cli@latest # workspace install
|
|
106
|
+
npm install -g @kosdev-code/kos-ddk-cli@latest # global install
|
|
107
|
+
kosui ddk:agent-install --client claude --scope user
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## When the ddk commands are missing
|
|
111
|
+
|
|
112
|
+
- `kosui extensions` does not list the package: it is in neither the workspace's
|
|
113
|
+
`package.json` nor the global install beside the `kosui` on your `PATH`
|
|
114
|
+
(`npm ls -g @kosdev-code/kos-ddk-cli`).
|
|
115
|
+
- It is listed as `incompatible`: `kosui` is older than the extension needs; update it.
|
|
116
|
+
- It is listed as `disabled`: the workspace `.kos.json` names it in
|
|
117
|
+
`cli.disabledExtensions`.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
uri: ddk://guide/storybook
|
|
3
|
+
name: ddk-guide-storybook
|
|
4
|
+
title: Developing DDK contributions in Storybook
|
|
5
|
+
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.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Developing DDK contributions in Storybook
|
|
9
|
+
|
|
10
|
+
Every `ddk:*` contribution command writes a story next to the component, so a contribution
|
|
11
|
+
can be developed in isolation before the plugin is loaded into a running DDK. Stories render
|
|
12
|
+
against live models from a running simulator.
|
|
13
|
+
|
|
14
|
+
## Run it
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npx nx run <plugin>:storybook
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Storybook serves on port 4400. The plugin's `serve` target is the module federation dev
|
|
21
|
+
server used by `kosui ddk:dev`; Storybook has its own `storybook` target.
|
|
22
|
+
|
|
23
|
+
## Where model data comes from
|
|
24
|
+
|
|
25
|
+
The preview (`.storybook/preview.tsx`) wraps every story in the providers the DDK hosts use:
|
|
26
|
+
KosCore, translations (`app/system`, `app/kosdev.ddk`), `AssemblyProvider`,
|
|
27
|
+
`ApplicationProvider` and `ApplicationComponentConfigurationProvider`. KosCore connects to the
|
|
28
|
+
first of:
|
|
29
|
+
|
|
30
|
+
1. the `?host=` query parameter on the Storybook URL;
|
|
31
|
+
2. `KOS_HOST` and `KOS_PORT` in the plugin's `.env` (the generated `.env` sets
|
|
32
|
+
`KOS_PORT=8081`, the simulator's default);
|
|
33
|
+
3. the page's own origin.
|
|
34
|
+
|
|
35
|
+
Translations come from the same device: the DDK's namespaces (`app/system`,
|
|
36
|
+
`app/kosdev.ddk`) from its files, and the plugin's own namespace from the plugin's
|
|
37
|
+
`src/assets/locales`, since the device lists it only once the KAB is installed. Each
|
|
38
|
+
contribution command adds its title key, and the keys its component calls, to
|
|
39
|
+
`src/assets/locales/en/<plugin>.json`.
|
|
40
|
+
|
|
41
|
+
Start the simulator before Storybook. A story shows what the simulator has: a dashboard card
|
|
42
|
+
needs an active model at its `dashboardKey`, a trouble action needs an active trouble of its
|
|
43
|
+
`troubleType`.
|
|
44
|
+
|
|
45
|
+
## Mocking what the simulator lacks
|
|
46
|
+
|
|
47
|
+
A story can bring its own data with KosMock, the SDK's transport-level mocks
|
|
48
|
+
(`kos://guide/mocking`), instead of waiting for the simulator to reach a state: an active
|
|
49
|
+
trouble, setup mode, a descriptor entry. It names the mocks as `parameters.kosMock`, and
|
|
50
|
+
the preview's outermost decorator reloads the page into those boot switches
|
|
51
|
+
(`ensureKosMockBoot`):
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
export const ActiveTrouble: Story = {
|
|
55
|
+
parameters: { kosMock: { setups: ["daily-cleaning-trouble"] } },
|
|
56
|
+
};
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
`kosMock` takes `setups` (setup modules in `fixtures/setups/`), `fixture` (a recorded
|
|
60
|
+
fixture), `mode` and `fixtureServer`:
|
|
61
|
+
|
|
62
|
+
- `mode: "on"` (the default) mocks only the named endpoints over the running simulator.
|
|
63
|
+
- `mode: "standalone"` boots with no device at all; every endpoint the story reads must
|
|
64
|
+
be mocked.
|
|
65
|
+
|
|
66
|
+
Serve the fixtures beside Storybook:
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
kosui fixtures serve
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
A story without `kosMock` reloads without switches, so mocks never carry over between
|
|
73
|
+
stories. Every generated story has a commented `kosMock` line to start from.
|
|
74
|
+
|
|
75
|
+
## Story containers
|
|
76
|
+
|
|
77
|
+
Each story renders the component inside the container for its extension point, from
|
|
78
|
+
`@kosdev-code/kos-ddk-story-containers`:
|
|
79
|
+
|
|
80
|
+
| Command | Container | Gives the component |
|
|
81
|
+
| -------------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |
|
|
82
|
+
| `ddk:utility` | `UtilityStoryContainer` | the utility frame |
|
|
83
|
+
| `ddk:setup` | `SetupStepStoryContainer` | the setup step frame |
|
|
84
|
+
| `ddk:nav` | `NavStoryContainer` | the navigation view frame |
|
|
85
|
+
| `ddk:cui` | `CUIStoryContainer` | the CUI frame |
|
|
86
|
+
| `ddk:dashboard-card` | `DashboardSummaryStoryContainer`, `DashboardDetailStoryContainer` | `dashboardKey`, `assembly`, `cardModel`, `onComplete` |
|
|
87
|
+
| `ddk:pump-detail` | `PumpDetailStoryContainer` | the first `holder` with the `dashboardKey` |
|
|
88
|
+
| `ddk:pump-card` | `PumpSummaryStoryContainer`, `PumpDetailStoryContainer` | the first `holder` with the `dashboardKey` |
|
|
89
|
+
| `ddk:macro-summary` | `MacroSummaryStoryContainer` | the first `holder` with the `dashboardKey` |
|
|
90
|
+
| `ddk:trouble-action` | `TroubleActionStoryContainer` | the active `trouble` of the `troubleType` |
|
|
91
|
+
|
|
92
|
+
When the simulator has no matching model, holder or trouble, the container says so in place
|
|
93
|
+
of the story.
|
|
94
|
+
|
|
95
|
+
## Standard and compact modes
|
|
96
|
+
|
|
97
|
+
The **Render Mode** toolbar switches between `standard` and `compact`. It changes the DDK
|
|
98
|
+
styles and the component mode; in `compact`, modals render full screen.
|
|
99
|
+
|
|
100
|
+
## Overrides
|
|
101
|
+
|
|
102
|
+
A story renders the override on its own, so an override of a standard contribution can be
|
|
103
|
+
developed here first. To see it replace the standard contribution, load the plugin into a
|
|
104
|
+
running DDK with `kosui ddk:dev` (see the package README).
|
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosdev-code/kos-ddk-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0-dev.55",
|
|
4
|
+
"description": "DDK commands for kosui: plugin projects and DDK extension-point contributions.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"kosui": {
|
|
7
|
+
"extension": "./src/extension.mjs",
|
|
8
|
+
"apiVersion": 1
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./src/extension.mjs",
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"src",
|
|
16
|
+
"templates",
|
|
17
|
+
"guides",
|
|
18
|
+
"catalog",
|
|
19
|
+
"reference",
|
|
20
|
+
"agent-plugin"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@kosdev-code/kos-codegen-core": "~3.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@kosdev-code/kos-ui-cli": "~3.0.0"
|
|
27
|
+
},
|
|
28
|
+
"kos": {
|
|
29
|
+
"build": {
|
|
30
|
+
"gitHash": "b6d50c39315256472036af8298ad14e9a58022d1"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"registry": "https://registry.npmjs.org/"
|
|
35
|
+
}
|
|
6
36
|
}
|