1
0
Эх сурвалжийг харах

Tighten Kimi plugin porting coverage

Drew Ritter 3 сар өмнө
parent
commit
2c2e2bcbd4

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 1
.kimi-plugin/plugin.json


+ 4 - 1
docs/README.kimi.md

@@ -12,7 +12,7 @@ Open the plugin manager:
 /plugins
 ```
 
-Search for Superpowers and install it.
+Go to `Marketplace` > `Superpowers` and install it.
 
 You can also install from this repository:
 
@@ -50,6 +50,9 @@ Skills describe actions instead of hard-coding one runtime's tool names. On Kimi
 - "Invoke a skill" -> Kimi Code's native `Skill` tool
 - "Read a file" / "write a file" / "edit a file" -> `Read`, `Write`, `Edit`
 - "Run a shell command" -> `Bash`
+- "Search file contents" -> `Grep`
+- "Find files by path or pattern" -> `Glob`
+- "Fetch a URL" -> `FetchURL`
 - "Search the web" -> `WebSearch`
 
 ## Updating

+ 8 - 2
tests/codex-plugin-sync/test-sync-to-codex-plugin.sh

@@ -424,10 +424,15 @@ EOF
 write_stale_ignored_destination_fixture() {
     local repo="$1"
 
-    mkdir -p "$repo/plugins/superpowers/.private-journal"
+    mkdir -p \
+        "$repo/plugins/superpowers/.kimi-plugin" \
+        "$repo/plugins/superpowers/.private-journal"
     printf 'fixture keep\n' > "$repo/plugins/superpowers/.fixture-keep"
+    printf '{"name":"stale-kimi"}\n' > "$repo/plugins/superpowers/.kimi-plugin/plugin.json"
     printf 'stale ignored leak\n' > "$repo/plugins/superpowers/.private-journal/leak.txt"
-    git -C "$repo" add plugins/superpowers/.fixture-keep
+    git -C "$repo" add \
+        plugins/superpowers/.fixture-keep \
+        plugins/superpowers/.kimi-plugin/plugin.json
 
     commit_fixture "$repo" "Initial stale ignored destination fixture"
 }
@@ -654,6 +659,7 @@ main() {
     echo ""
     echo "Convergence assertions..."
     assert_equals "$stale_preview_status" "0" "Stale ignored destination preview exits successfully"
+    assert_matches "$stale_preview_section" "\\*deleting +\\.kimi-plugin/plugin\\.json" "Preview deletes stale Kimi manifest from Codex plugin"
     assert_matches "$stale_preview_section" "\\*deleting +\\.private-journal/leak\\.txt" "Preview deletes stale ignored destination file"
 
     echo ""

+ 19 - 0
tests/kimi/test-plugin-manifest.sh

@@ -42,10 +42,29 @@ for token in [
     "Write",
     "Edit",
     "Bash",
+    "Grep",
+    "Glob",
+    "FetchURL",
     "WebSearch",
 ]:
     assert_present(instructions, token, "skillInstructions")
 
+version_config = json.loads(
+    (manifest_path.parents[1] / ".version-bump.json").read_text(encoding="utf-8")
+)
+version_entries = version_config.get("files")
+if not isinstance(version_entries, list):
+    raise AssertionError(".version-bump.json must contain files list")
+
+if not any(
+    entry.get("path") == ".kimi-plugin/plugin.json" and entry.get("field") == "version"
+    for entry in version_entries
+    if isinstance(entry, dict)
+):
+    raise AssertionError(
+        ".version-bump.json must update .kimi-plugin/plugin.json version"
+    )
+
 unsupported_fields = [
     "tools",
     "commands",

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно