@akonwi/kit 0.4.0 → 0.5.0
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/dist/kit +0 -0
- package/docs/features/plugins.md +3 -1
- package/package.json +1 -1
package/dist/kit
CHANGED
|
Binary file
|
package/docs/features/plugins.md
CHANGED
|
@@ -13,6 +13,8 @@ Discovery is non-recursive. Only direct `.ts` files in those directories are loa
|
|
|
13
13
|
|
|
14
14
|
Project plugins load after user plugins. Built-in plugins load before both.
|
|
15
15
|
|
|
16
|
+
Built-in plugins initialize during core app setup. User and project plugins load in the background after the shell is ready, so slow dependency installation or bundling does not block basic startup. Commands, tools, and chrome contributions from those external plugins become available once loading finishes.
|
|
17
|
+
|
|
16
18
|
If an external plugin registers a command, tool, or debug section that already exists, Kit treats that as a plugin failure and reports it with a persistent toast.
|
|
17
19
|
|
|
18
20
|
Kit does **not** load plugins from `.agents/plugins/`. Plugins execute code and are Kit-specific functionality, while `.agents/` is reserved for compatibility-oriented resources such as prompts, skills, and MCP config.
|
|
@@ -199,7 +201,7 @@ kit.onToolCall(async (toolCall, ctx) => {
|
|
|
199
201
|
|
|
200
202
|
## Reloading
|
|
201
203
|
|
|
202
|
-
Use `/reload` after editing plugin files. Kit re-discovers plugin files, re-bundles them into Kit's plugin cache, and imports the fresh bundles so changed `.ts` contents are picked up.
|
|
204
|
+
Use `/reload` after editing plugin files. Kit re-discovers plugin files, re-bundles them into Kit's plugin cache, and imports the fresh bundles so changed `.ts` contents are picked up. External plugin loading continues in the background after the session reload completes.
|
|
203
205
|
|
|
204
206
|
Plugin modules are loaded synchronously, so top-level `await` is not supported in plugin files. Async command, event, and tool handlers are supported.
|
|
205
207
|
|