@prism-d1/cli 1.0.46 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,6 +52,13 @@ prism-agent-eval:
|
|
|
52
52
|
BASE_SHA="${CI_MERGE_REQUEST_DIFF_BASE_SHA}"
|
|
53
53
|
HEAD_SHA="${CI_COMMIT_SHA}"
|
|
54
54
|
|
|
55
|
+
# Skip if eval harness not installed
|
|
56
|
+
if [[ ! -f ".prism/eval-harness/run-eval.sh" ]]; then
|
|
57
|
+
echo "Eval harness not installed. Run: prism-cli bootstrapper install-eval-harness"
|
|
58
|
+
echo "Skipping agent eval."
|
|
59
|
+
exit 0
|
|
60
|
+
fi
|
|
61
|
+
|
|
55
62
|
# Identify agent changes
|
|
56
63
|
AGENT_FILES=$(git diff --name-only "${BASE_SHA}..${HEAD_SHA}" \
|
|
57
64
|
| grep -E '(^agent/|^agents/|^mcp-servers/|agent.*\.(py|ts)$)' || true)
|
|
@@ -19,7 +19,6 @@ prism-ai-metrics:
|
|
|
19
19
|
GITLAB_OIDC_TOKEN:
|
|
20
20
|
aud: https://gitlab.aws.dev
|
|
21
21
|
rules:
|
|
22
|
-
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_STATE == "merged"'
|
|
23
22
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
|
|
24
23
|
variables:
|
|
25
24
|
AWS_DEFAULT_REGION: ${AWS_REGION:-us-west-2}
|
|
@@ -23,7 +23,7 @@ prism-eval-gate:
|
|
|
23
23
|
variables:
|
|
24
24
|
AWS_DEFAULT_REGION: ${AWS_REGION:-us-west-2}
|
|
25
25
|
before_script:
|
|
26
|
-
- yum install -y -q jq bc git
|
|
26
|
+
- yum install -y -q jq bc git
|
|
27
27
|
- git fetch --unshallow || true
|
|
28
28
|
- |
|
|
29
29
|
# Assume AWS role via GitLab OIDC
|
|
@@ -44,6 +44,13 @@ prism-eval-gate:
|
|
|
44
44
|
BASE_SHA="${CI_MERGE_REQUEST_DIFF_BASE_SHA}"
|
|
45
45
|
HEAD_SHA="${CI_COMMIT_SHA}"
|
|
46
46
|
|
|
47
|
+
# Skip if eval harness not installed
|
|
48
|
+
if [[ ! -f ".prism/eval-harness/run-eval.sh" ]]; then
|
|
49
|
+
echo "Eval harness not installed. Run: prism-cli bootstrapper install-eval-harness"
|
|
50
|
+
echo "Skipping eval gate."
|
|
51
|
+
exit 0
|
|
52
|
+
fi
|
|
53
|
+
|
|
47
54
|
# Identify AI-generated commits
|
|
48
55
|
AI_SHAS=""
|
|
49
56
|
for SHA in $(git rev-list "${BASE_SHA}..${HEAD_SHA}" 2>/dev/null); do
|