@kosdev-code/kos-ddk-cli 0.1.0-dev.66 → 0.1.0-dev.69
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kos-ddk-tools",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.69",
|
|
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.69",
|
|
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
|
}
|
|
@@ -19226,7 +19226,7 @@
|
|
|
19226
19226
|
"name": "ddk-guide-ddk-dev",
|
|
19227
19227
|
"title": "Testing plugins against a running DDK",
|
|
19228
19228
|
"description": "Serving DDK plugin projects with kosui ddk:dev for a running device or simulator to load with ?pluginDevServers=, choosing plugins and scenarios.",
|
|
19229
|
-
"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."
|
|
19229
|
+
"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.\n\n## Translations\n\nThe DDK app serves the translation namespaces of the plugins in `?pluginDevServers=`\nfrom their dev servers, which serve the plugin's `src/assets/locales` at\n`/assets/locales/<locale>/<namespace>.json`. Each contribution command adds its keys to\n`src/assets/locales/en/<plugin>.json`, so labels show before the plugin's KAB is\ninstalled. Every other namespace still comes from the device.\n\nA DDK app without this lists a plugin's namespace only once its KAB is installed, so its\nlabels show as their keys (`<plugin>.<name>.utility.title`) and the console warns\n`namespace <plugin> not found in descriptor`."
|
|
19230
19230
|
},
|
|
19231
19231
|
{
|
|
19232
19232
|
"uri": "ddk://guide/getting-started",
|
package/guides/ddk-dev.md
CHANGED
|
@@ -45,3 +45,15 @@ servers. Without `--device` it prints a `<device-url>` template.
|
|
|
45
45
|
|
|
46
46
|
Every plugin needs `options.port` on its `serve` target; `ddk:dev` refuses a plugin
|
|
47
47
|
without one.
|
|
48
|
+
|
|
49
|
+
## Translations
|
|
50
|
+
|
|
51
|
+
The DDK app serves the translation namespaces of the plugins in `?pluginDevServers=`
|
|
52
|
+
from their dev servers, which serve the plugin's `src/assets/locales` at
|
|
53
|
+
`/assets/locales/<locale>/<namespace>.json`. Each contribution command adds its keys to
|
|
54
|
+
`src/assets/locales/en/<plugin>.json`, so labels show before the plugin's KAB is
|
|
55
|
+
installed. Every other namespace still comes from the device.
|
|
56
|
+
|
|
57
|
+
A DDK app without this lists a plugin's namespace only once its KAB is installed, so its
|
|
58
|
+
labels show as their keys (`<plugin>.<name>.utility.title`) and the console warns
|
|
59
|
+
`namespace <plugin> not found in descriptor`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosdev-code/kos-ddk-cli",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.69",
|
|
4
4
|
"description": "DDK commands for kosui: plugin projects and DDK extension-point contributions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"kosui": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"kos": {
|
|
29
29
|
"build": {
|
|
30
|
-
"gitHash": "
|
|
30
|
+
"gitHash": "e4be4b5b919ad4e33d184bab6290440c3af5f239"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
package/reference/reference.json
CHANGED
|
@@ -19226,7 +19226,7 @@
|
|
|
19226
19226
|
"name": "ddk-guide-ddk-dev",
|
|
19227
19227
|
"title": "Testing plugins against a running DDK",
|
|
19228
19228
|
"description": "Serving DDK plugin projects with kosui ddk:dev for a running device or simulator to load with ?pluginDevServers=, choosing plugins and scenarios.",
|
|
19229
|
-
"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."
|
|
19229
|
+
"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.\n\n## Translations\n\nThe DDK app serves the translation namespaces of the plugins in `?pluginDevServers=`\nfrom their dev servers, which serve the plugin's `src/assets/locales` at\n`/assets/locales/<locale>/<namespace>.json`. Each contribution command adds its keys to\n`src/assets/locales/en/<plugin>.json`, so labels show before the plugin's KAB is\ninstalled. Every other namespace still comes from the device.\n\nA DDK app without this lists a plugin's namespace only once its KAB is installed, so its\nlabels show as their keys (`<plugin>.<name>.utility.title`) and the console warns\n`namespace <plugin> not found in descriptor`."
|
|
19230
19230
|
},
|
|
19231
19231
|
{
|
|
19232
19232
|
"uri": "ddk://guide/getting-started",
|