mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-06-21 17:23:39 +00:00
Compare commits
9 Commits
add-lovabl
...
macos-altp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66a63f2c43 | ||
|
|
ad34eb0fa6 | ||
|
|
6ff128bdcc | ||
|
|
0ea860bff1 | ||
|
|
c6335cc27b | ||
|
|
2d25650f94 | ||
|
|
1e37280cf9 | ||
|
|
75c62a9197 | ||
|
|
999e8e0c57 |
@@ -35,7 +35,7 @@
|
||||
"url": "https://github.com/adobe/skills.git",
|
||||
"path": "plugins/creative-cloud/adobe-for-creativity",
|
||||
"ref": "main",
|
||||
"sha": "cdf8738152076ea5850354c1a3de21d88e377c2e"
|
||||
"sha": "c467bf831064ebda26f39dd30c02d7cce03eb26c"
|
||||
},
|
||||
"homepage": "https://github.com/adobe/skills/tree/main/plugins/creative-cloud/adobe-for-creativity"
|
||||
},
|
||||
@@ -381,7 +381,7 @@
|
||||
"url": "https://github.com/awslabs/startups.git",
|
||||
"path": "advisor/plugins/aws-startup-advisor",
|
||||
"ref": "main",
|
||||
"sha": "944e5b17bb4b6a84a76b6382e3f5d7fa9abd7bbd"
|
||||
"sha": "3eae13125da8cc923f010b19321137efd0e69a66"
|
||||
},
|
||||
"homepage": "https://github.com/awslabs/startups"
|
||||
},
|
||||
@@ -502,7 +502,7 @@
|
||||
"url": "https://github.com/carta/plugins.git",
|
||||
"path": "plugins/carta-cap-table",
|
||||
"ref": "main",
|
||||
"sha": "9de95825cd0eef06abc819e99591270ce5a77e95"
|
||||
"sha": "5e119d7848e1f495092df4e41ac43e609e3293d1"
|
||||
},
|
||||
"homepage": "https://carta.com"
|
||||
},
|
||||
@@ -518,7 +518,7 @@
|
||||
"url": "https://github.com/carta/plugins.git",
|
||||
"path": "plugins/carta-crm",
|
||||
"ref": "main",
|
||||
"sha": "9de95825cd0eef06abc819e99591270ce5a77e95"
|
||||
"sha": "5e119d7848e1f495092df4e41ac43e609e3293d1"
|
||||
},
|
||||
"homepage": "https://carta.com"
|
||||
},
|
||||
@@ -1022,7 +1022,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/datarobot-oss/datarobot-agent-skills.git",
|
||||
"sha": "9e12eca2a8246674aaa6d7bc3b6cf267163d932e"
|
||||
"sha": "6937e65a4f652ecc08b8b53bd7e79f6e3d1f69b3"
|
||||
},
|
||||
"homepage": "https://datarobot.com"
|
||||
},
|
||||
@@ -1736,7 +1736,7 @@
|
||||
"url": "https://github.com/awslabs/startups.git",
|
||||
"path": "migrate/plugins/migration-to-aws",
|
||||
"ref": "main",
|
||||
"sha": "944e5b17bb4b6a84a76b6382e3f5d7fa9abd7bbd"
|
||||
"sha": "3eae13125da8cc923f010b19321137efd0e69a66"
|
||||
},
|
||||
"homepage": "https://github.com/awslabs/startups"
|
||||
},
|
||||
@@ -2376,7 +2376,7 @@
|
||||
"url": "https://github.com/SAP/open-ux-tools.git",
|
||||
"path": "packages/fiori-mcp-server",
|
||||
"ref": "main",
|
||||
"sha": "b204616c3622abdd40e18c4c1fc09c397978d9e2"
|
||||
"sha": "384fb88f5b4662ec0f7e1ac81689ebccaa9d7cb8"
|
||||
},
|
||||
"homepage": "https://github.com/SAP/open-ux-tools/tree/main/packages/fiori-mcp-server"
|
||||
},
|
||||
@@ -2415,7 +2415,7 @@
|
||||
{
|
||||
"name": "security-guidance",
|
||||
"description": "Security review for Claude-generated code. Pattern-based warnings on edits, LLM-powered diff review on Stop, and an agentic commit reviewer that catches injection, XSS, SSRF, hardcoded secrets, and 25+ other vulnerability classes.",
|
||||
"version": "2.0.6",
|
||||
"version": "2.0.7",
|
||||
"author": {
|
||||
"name": "Anthropic",
|
||||
"email": "support@anthropic.com"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "security-guidance",
|
||||
"version": "2.0.6",
|
||||
"version": "2.0.7",
|
||||
"description": "Security review for Claude-generated code. Pattern-based warnings on edits, LLM-powered diff review on Stop, and an agentic commit reviewer that catches injection, XSS, SSRF, hardcoded secrets, and 25+ other vulnerability classes.",
|
||||
"author": {
|
||||
"name": "David Dworken",
|
||||
|
||||
@@ -318,6 +318,46 @@ def _probe_has_pip() -> bool:
|
||||
return False
|
||||
|
||||
|
||||
def _probe_alt_python() -> int:
|
||||
"""When the hook interpreter is <3.10 (HOOK_PY_INCOMPATIBLE), look for a
|
||||
3.10+ interpreter at well-known install locations that aren't necessarily
|
||||
on the hook's PATH — Homebrew (/opt/homebrew, /usr/local), python.org
|
||||
framework builds, and the `py`/distro layouts. Returns the HIGHEST version
|
||||
found encoded as major*100+minor (e.g. 312), or 0 if none.
|
||||
|
||||
Purpose (telemetry only, for now): size how many of the macOS Python-3.9
|
||||
cohort actually HAVE a newer interpreter that sg-python.sh's PATH probe
|
||||
missed — i.e. how many are RECOVERABLE by an explicit-path search vs.
|
||||
genuinely 3.9-only. Emitted as sdk_alt_py. Existence-checks the versioned
|
||||
binaries (cheap); a later explicit-path search would version-verify before
|
||||
exec'ing. Probed only on the incompatible path, so healthy sessions never
|
||||
pay for it."""
|
||||
candidates = []
|
||||
for minor in (14, 13, 12, 11, 10):
|
||||
candidates += [
|
||||
f"/opt/homebrew/bin/python3.{minor}", # Apple-Silicon Homebrew
|
||||
f"/usr/local/bin/python3.{minor}", # Intel Homebrew / python.org shim
|
||||
f"/Library/Frameworks/Python.framework/Versions/3.{minor}/bin/python3", # python.org
|
||||
f"/usr/bin/python3.{minor}", # distro-managed (Linux)
|
||||
]
|
||||
best = 0
|
||||
for path in candidates:
|
||||
try:
|
||||
if os.access(path, os.X_OK):
|
||||
# path name encodes the minor; parse it back to a code
|
||||
base = os.path.basename(path)
|
||||
minor = None
|
||||
if base.startswith("python3."):
|
||||
minor = int(base.split(".")[1])
|
||||
elif "/Versions/3." in path:
|
||||
minor = int(path.split("/Versions/3.")[1].split("/")[0])
|
||||
if minor is not None:
|
||||
best = max(best, 300 + minor)
|
||||
except (OSError, ValueError, IndexError):
|
||||
continue
|
||||
return best
|
||||
|
||||
|
||||
def _pip_err_from_stderr(stderr_b):
|
||||
"""Categorize a pip-install stderr into a known err_kind (the pip subset
|
||||
of SDK_BOOTSTRAP_ERR_CODES). Used by the --target fallback; mirrors the
|
||||
@@ -788,6 +828,14 @@ if __name__ == "__main__":
|
||||
# per healthy session.
|
||||
if _encode_err_kind(err_kind) == 11:
|
||||
metrics["sdk_has_pip"] = _probe_has_pip()
|
||||
# When the hook interpreter is <3.10 (HOOK_PY_INCOMPATIBLE), probe for a
|
||||
# 3.10+ interpreter at known non-PATH locations. Non-zero sdk_alt_py =
|
||||
# this user is RECOVERABLE by an explicit-path search in sg-python.sh; 0 =
|
||||
# genuinely 3.9-only (needs a user install). Sizes the macOS Py-3.9 cohort
|
||||
# (~13.6% of macOS sessions) before we build the search. Incompatible path
|
||||
# only — healthy sessions never run it.
|
||||
if outcome == HOOK_PY_INCOMPATIBLE:
|
||||
metrics["sdk_alt_py"] = _probe_alt_python()
|
||||
# Interpreter version (major*100 + minor, e.g. 309 / 312), emitted on
|
||||
# every bootstrap. Disambiguates the macOS cohort (Apple 3.9 vs a 3.10+
|
||||
# with broken ensurepip) for both venv_ensurepip_fail AND
|
||||
|
||||
Reference in New Issue
Block a user