diff --git a/.prototools b/.prototools index 9bcd6ce..522320f 100644 --- a/.prototools +++ b/.prototools @@ -1,6 +1,7 @@ actionlint = "1.7.12" blender = "4.5.11" buf = "1.71.0" +claude = "2.1.191" cloud-provider-kind = "0.10.0" cwic = "1.33.0" direnv = "2.37.1" @@ -24,6 +25,7 @@ yq = "4.53.3" actionlint = "file://./actionlint/plugin.toml" blender = "file://./blender/plugin.toml" buf = "file://./buf/plugin.toml" +claude = "file://./claude/plugin.toml" cloud-provider-kind = "file://./cloud-provider-kind/plugin.toml" cwic = "file://./cwic/plugin.toml" direnv = "file://./direnv/plugin.toml" diff --git a/claude/README.md b/claude/README.md new file mode 100644 index 0000000..4ddd8aa --- /dev/null +++ b/claude/README.md @@ -0,0 +1,30 @@ +# claude plugin + +[Claude Code](https://code.claude.com/docs) (Anthropic's agentic coding CLI) +plugin for [proto](https://github.com/moonrepo/proto). + +## Installation + +claude is not built into proto, so register this plugin, pin a version, then +install: + +```shell +proto plugin add claude "https://raw.githubusercontent.com/Genesis-Embodied-AI/proto-plugins/main/claude/plugin.toml" +proto pin claude --resolve +proto install claude +``` + +## Picking a version + +Versions track Claude Code's GitHub release tags +(). The current release is +also published at +. + +## Notes + +- Binaries are served from `https://downloads.claude.ai/claude-code-releases/` + as a single executable per platform (no archive). Linux uses the static + `musl` build so it runs on both glibc and musl hosts. +- Upstream publishes checksums only inside a per-version `manifest.json`, which + the TOML plugin format cannot parse, so installs are not checksum-verified. diff --git a/claude/plugin.toml b/claude/plugin.toml new file mode 100644 index 0000000..6e41fa6 --- /dev/null +++ b/claude/plugin.toml @@ -0,0 +1,29 @@ +name = "claude" +type = "cli" + +[resolve] +git-url = "https://github.com/anthropics/claude-code" + +[install.arch] +aarch64 = "arm64" +x86_64 = "x64" + +# Claude Code ships a single prebuilt binary per platform (no archive), served +# from downloads.claude.ai under a {version}/{platform}/ path. The Linux +# build uses the static musl variant so it runs on both glibc and musl hosts. +# Per-version checksums exist only inside a manifest.json (keyed JSON), which the +# TOML plugin format cannot parse, so no checksum-url is published here. +[platform.linux] +download-file = "linux-{arch}-musl/claude" +exe-path = "claude" + +[platform.macos] +download-file = "darwin-{arch}/claude" +exe-path = "claude" + +[platform.windows] +download-file = "win32-{arch}/claude.exe" +exe-path = "claude.exe" + +[install] +download-url = "https://downloads.claude.ai/claude-code-releases/{version}/{download_file}"