@kosdev-code/kos-ddk-cli 0.1.0-dev.72 → 0.1.0-dev.75

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 CHANGED
@@ -130,20 +130,22 @@ Its reference is extracted from DDK source at build time:
130
130
  and every token it reads with its value per theme.
131
131
  - `find_ddk_capability` maps a plain-language need to extension points, standard
132
132
  contributions and components.
133
- - `ddk://guide/storybook` and `ddk://guide/ddk-dev`, from [`guides/`](guides).
133
+ - `ddk://guide/*`, from [`guides/`](guides).
134
134
 
135
135
  `describe_ddk_plugin` and `validate_ddk_plugin` read a plugin project's `.kos.json`: its
136
136
  contributions, the standard ones they share a slot with, and checks of fields, ranks,
137
137
  experiences and tokens set in plugin code. The skills `build-ddk-plugin`,
138
- `ddk-content-component` and `ddk-storybook` give the workflow, and the
138
+ `ddk-config-page`, `ddk-content-component` and `ddk-storybook` give the workflow, and the
139
139
  `kos-ddk-plugin-planner` and `kos-ddk-plugin-reviewer` subagents plan and review
140
140
  read-only.
141
141
 
142
142
  ```sh
143
- kosui ddk:agent-install --client claude --scope user
143
+ kosui plugin install --client claude --scope user
144
144
  ```
145
145
 
146
- `--scope repo` installs it for the current checkout only.
146
+ `kosui plugin install` installs it beside the SDK's `kos-tools` plugin, from the
147
+ package's `agent-plugin/` folder. `kosui ddk:agent-install` installs it alone.
148
+ `--scope repo` installs for the current checkout only.
147
149
 
148
150
  ## Tests
149
151
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kos-ddk-tools",
3
- "version": "0.1.0-dev.72",
3
+ "version": "0.1.0-dev.75",
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
  name: kos-ddk-plugin-planner
3
3
  description: Turn a DDK plugin feature into a plan before anything is written. Finds the extension points and standard contributions that cover the need, what the plugin already contributes, and the DDK components each contribution should render. Use when starting a DDK plugin feature or an override and the shape is not yet decided. Read-only; returns the tool calls for the main thread to run with the build-ddk-plugin skill.
4
- tools: Read, Grep, Glob, ReadMcpResourceTool, ListMcpResourcesTool, mcp__plugin_kos-ddk-tools_kos-ddk__find_ddk_capability, mcp__plugin_kos-ddk-tools_kos-ddk__list_ddk_contributions, mcp__plugin_kos-ddk-tools_kos-ddk__list_ddk_components, mcp__plugin_kos-ddk-tools_kos-ddk__describe_ddk_component, mcp__plugin_kos-ddk-tools_kos-ddk__describe_ddk_plugin
4
+ tools: Read, Grep, Glob, ReadMcpResourceTool, ListMcpResourcesTool, mcp__plugin_kos-ddk-tools_kos-ddk__read_resource, mcp__plugin_kos-ddk-tools_kos-ddk__find_ddk_capability, mcp__plugin_kos-ddk-tools_kos-ddk__list_ddk_contributions, mcp__plugin_kos-ddk-tools_kos-ddk__list_ddk_components, mcp__plugin_kos-ddk-tools_kos-ddk__describe_ddk_component, mcp__plugin_kos-ddk-tools_kos-ddk__describe_ddk_plugin
5
5
  model: inherit
6
6
  ---
7
7
 
@@ -12,6 +12,8 @@ runs the `build-ddk-plugin` skill from your plan.
12
12
 
13
13
  What the plugin should do or replace, and the plugin project if one exists. Pass
14
14
  `workspaceRoot` on every call that takes it when the session cwd is not the workspace.
15
+ Read `ddk://` resources with `read_resource` (`uri`), or the MCP resource reader when
16
+ you have it.
15
17
 
16
18
  ## Procedure
17
19
 
@@ -25,6 +27,9 @@ What the plugin should do or replace, and the plugin project if one exists. Pass
25
27
  4. Components: `list_ddk_components` and `describe_ddk_component` for what each
26
28
  contribution renders. Prefer a kos-ddk-model-components component bound to the
27
29
  model over composing one from kos-ddk-components.
30
+ 5. Models of the plugin's own: plan them with the `ddk-config-page` skill's order
31
+ (`scaffold_model` without `autoRegister`, `add_config_property`, `register_model`
32
+ with the plugin as `app`, `create_hook`).
28
33
 
29
34
  ## Output
30
35
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: kos-ddk-plugin-reviewer
3
3
  description: Read-only review of a DDK plugin project: its contributions against the extension points, its overrides, and its components against the rule that plugins compose DDK components and leave tokens to the DDK app. Use after writing or changing contributions, before a commit, or when asked to check a DDK plugin. Returns findings with the tool or resource that fixes each; never edits.
4
- tools: Read, Grep, Glob, ReadMcpResourceTool, ListMcpResourcesTool, mcp__plugin_kos-ddk-tools_kos-ddk__validate_ddk_plugin, mcp__plugin_kos-ddk-tools_kos-ddk__describe_ddk_plugin, mcp__plugin_kos-ddk-tools_kos-ddk__list_ddk_contributions, mcp__plugin_kos-ddk-tools_kos-ddk__list_ddk_components, mcp__plugin_kos-ddk-tools_kos-ddk__describe_ddk_component
4
+ tools: Read, Grep, Glob, ReadMcpResourceTool, ListMcpResourcesTool, mcp__plugin_kos-ddk-tools_kos-ddk__read_resource, mcp__plugin_kos-ddk-tools_kos-ddk__validate_ddk_plugin, mcp__plugin_kos-ddk-tools_kos-ddk__describe_ddk_plugin, mcp__plugin_kos-ddk-tools_kos-ddk__list_ddk_contributions, mcp__plugin_kos-ddk-tools_kos-ddk__list_ddk_components, mcp__plugin_kos-ddk-tools_kos-ddk__describe_ddk_component
5
5
  model: inherit
6
6
  ---
7
7
 
@@ -13,6 +13,9 @@ need is unavailable, say which one and stop; never fall back to judging by eye.
13
13
  The plugin project, or a description of what changed. Pass `workspaceRoot` on every
14
14
  call that takes it when the session cwd is not the workspace being reviewed.
15
15
 
16
+ Read `ddk://` resources with `read_resource` (`uri`), or the MCP resource reader when
17
+ you have it. Never read a plugin cache directory instead.
18
+
16
19
  ## Procedure
17
20
 
18
21
  1. `validate_ddk_plugin` for the static findings; every error is a finding.
@@ -26,6 +29,13 @@ call that takes it when the session cwd is not the workspace being reviewed.
26
29
  components, and any `--ddk-*` token set or overridden in plugin code.
27
30
  5. Utilities, setup steps and nav views: name the NCUI descriptor entry each slot
28
31
  needs; you cannot see the device's descriptor, so say it must be confirmed there.
32
+ 6. Model registration: follow the plugin's imports in `src/` (hooks and HOCs included)
33
+ to each model file it uses. Flag any such model whose `@kosModel` config sets
34
+ `autoRegister: true`, and a plugin that uses a model without `init: true` in
35
+ `kos.ui.plugin` and a `src/app/init.ts` whose `register()` registers it. Both are
36
+ fixed by `register_model` with the plugin as `app`. Flag a
37
+ `.storybook/registration.ts` that does not run the plugin's init before
38
+ `initDDKRegistration()`.
29
39
 
30
40
  ## Output
31
41
 
@@ -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.72",
4
+ "version": "0.1.0-dev.75",
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
  }