From 9a8058db60de69d9ecb72d7e95fb7e184d8a07a6 Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 3 Feb 2026 15:48:18 +0800 Subject: [PATCH 1/3] Add kimi agent v1.6.0 - Move kimi from _not_yet_unsupported/ to root directory - Update download URLs to v1.6 - Fix version to semver format (1.6.0) --- {_not_yet_unsupported/kimi => kimi}/agent.json | 10 +++++----- {_not_yet_unsupported/kimi => kimi}/icon.svg | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename {_not_yet_unsupported/kimi => kimi}/agent.json (78%) rename {_not_yet_unsupported/kimi => kimi}/icon.svg (100%) diff --git a/_not_yet_unsupported/kimi/agent.json b/kimi/agent.json similarity index 78% rename from _not_yet_unsupported/kimi/agent.json rename to kimi/agent.json index 681e84b..1a78fdc 100644 --- a/_not_yet_unsupported/kimi/agent.json +++ b/kimi/agent.json @@ -1,7 +1,7 @@ { "id": "kimi", "name": "Kimi CLI", - "version": "1.6", + "version": "1.6.0", "description": "Moonshot AI's coding assistant", "repository": "https://github.com/MoonshotAI/kimi-cli", "authors": [ @@ -11,28 +11,28 @@ "distribution": { "binary": { "darwin-aarch64": { - "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/0.72/kimi-0.72-aarch64-apple-darwin.tar.gz", + "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/1.6/kimi-1.6-aarch64-apple-darwin.tar.gz", "cmd": "./kimi", "args": [ "--acp" ] }, "linux-aarch64": { - "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/0.72/kimi-0.72-aarch64-unknown-linux-gnu.tar.gz", + "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/1.6/kimi-1.6-aarch64-unknown-linux-gnu.tar.gz", "cmd": "./kimi", "args": [ "--acp" ] }, "linux-x86_64": { - "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/0.72/kimi-0.72-x86_64-unknown-linux-gnu.tar.gz", + "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/1.6/kimi-1.6-x86_64-unknown-linux-gnu.tar.gz", "cmd": "./kimi", "args": [ "--acp" ] }, "windows-x86_64": { - "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/0.72/kimi-0.72-x86_64-pc-windows-msvc.zip", + "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/1.6/kimi-1.6-x86_64-pc-windows-msvc.zip", "cmd": "./kimi.exe", "args": [ "--acp" diff --git a/_not_yet_unsupported/kimi/icon.svg b/kimi/icon.svg similarity index 100% rename from _not_yet_unsupported/kimi/icon.svg rename to kimi/icon.svg From 862556062c2da2067c7172f2ec8c7d3529648149 Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 3 Feb 2026 17:40:36 +0800 Subject: [PATCH 2/3] Fix kimi: use 'acp' subcommand instead of '--acp' flag --- kimi/agent.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kimi/agent.json b/kimi/agent.json index 1a78fdc..47717fd 100644 --- a/kimi/agent.json +++ b/kimi/agent.json @@ -14,28 +14,28 @@ "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/1.6/kimi-1.6-aarch64-apple-darwin.tar.gz", "cmd": "./kimi", "args": [ - "--acp" + "acp" ] }, "linux-aarch64": { "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/1.6/kimi-1.6-aarch64-unknown-linux-gnu.tar.gz", "cmd": "./kimi", "args": [ - "--acp" + "acp" ] }, "linux-x86_64": { "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/1.6/kimi-1.6-x86_64-unknown-linux-gnu.tar.gz", "cmd": "./kimi", "args": [ - "--acp" + "acp" ] }, "windows-x86_64": { "archive": "https://github.com/MoonshotAI/kimi-cli/releases/download/1.6/kimi-1.6-x86_64-pc-windows-msvc.zip", "cmd": "./kimi.exe", "args": [ - "--acp" + "acp" ] } } From f2977567c4920fc44ff6de6978b30a83f325a643 Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 3 Feb 2026 17:40:41 +0800 Subject: [PATCH 3/3] Support two-segment version tags (x.y) for binary distributions - Normalize x.y to x.y.0 when fetching GitHub release tags - Handle short version URLs when updating binary distributions --- .github/workflows/update_versions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/update_versions.py b/.github/workflows/update_versions.py index b2653ee..6458012 100755 --- a/.github/workflows/update_versions.py +++ b/.github/workflows/update_versions.py @@ -135,6 +135,9 @@ def get_github_latest_release(repo_url: str) -> tuple[str | None, list[str]]: tag = data.get("tag_name", "") # Strip 'v' prefix if present version = tag.lstrip("v") if tag else None + # Normalize to semver (x.y -> x.y.0) + if version and re.match(r"^\d+\.\d+$", version): + version = f"{version}.0" assets = [a["name"] for a in data.get("assets", [])] return version, assets @@ -320,6 +323,10 @@ def apply_binary_update(agent_path: Path, agent_data: dict, new_version: str) -> # Update version field agent_data["version"] = new_version + # For URLs, also handle x.y.0 <-> x.y conversions + old_short = re.sub(r"\.0$", "", old_version) # 1.6.0 -> 1.6 + new_short = re.sub(r"\.0$", "", new_version) # 1.7.0 -> 1.7 + # Update all binary archive URLs binary_dist = agent_data["distribution"]["binary"] for platform, target in binary_dist.items(): @@ -331,6 +338,11 @@ def apply_binary_update(agent_path: Path, agent_data: dict, new_version: str) -> new_url = new_url.replace(f"-{old_version}-", f"-{new_version}-") new_url = new_url.replace(f"_{old_version}.", f"_{new_version}.") new_url = new_url.replace(f"_{old_version}_", f"_{new_version}_") + # Also handle short versions (x.y) in URLs when semver is x.y.0 + if old_short != old_version: + new_url = new_url.replace(f"/{old_short}/", f"/{new_short}/") + new_url = new_url.replace(f"-{old_short}.", f"-{new_short}.") + new_url = new_url.replace(f"-{old_short}-", f"-{new_short}-") target["archive"] = new_url # Write back