chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:34:48 +08:00
commit 77bb5bf71f
3762 changed files with 353249 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
if [ -z "$1" ]; then
echo "Error: interface name is not provided" >&2
exit 1
fi
interface=$1
interface_path="interfaces/$interface"
interface_def=$(pnpm bp read --work-dir "$interface_path" --json)
name=$(echo "$interface_def" | jq -r ".name")
version=$(echo "$interface_def" | jq -r ".version")
command="pnpm bp interfaces get \"$name@$version\" --json >/dev/null 2>&1"
exists=$(eval "$command" && echo 1 || echo 0)
echo "$exists"