xploitscan-shared-rules 2.4.4 → 2.4.5
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.
- package/dist/index.cjs +11 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -16
- package/dist/index.d.ts +29 -16
- package/dist/index.js +11 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -225,9 +225,9 @@ function isLineSilenced(lines, lineIdx, ruleId) {
|
|
|
225
225
|
|
|
226
226
|
// src/models.ts
|
|
227
227
|
var MODEL_ANALYSIS = "claude-sonnet-5";
|
|
228
|
-
var MODEL_TRIAGE = "claude-haiku-
|
|
229
|
-
var MODEL_POLICY_REVIEWED = "2026-
|
|
230
|
-
var MODEL_REVIEW_INTERVAL_DAYS =
|
|
228
|
+
var MODEL_TRIAGE = "claude-haiku-5-5";
|
|
229
|
+
var MODEL_POLICY_REVIEWED = "2026-10-12";
|
|
230
|
+
var MODEL_REVIEW_INTERVAL_DAYS = 30;
|
|
231
231
|
var MODEL_TEMPERATURE = 0;
|
|
232
232
|
|
|
233
233
|
// src/rule-impacts.ts
|
|
@@ -4866,17 +4866,14 @@ async function filterFalsePositives(findings, fileContents, budgetMs = AI_FILTER
|
|
|
4866
4866
|
{
|
|
4867
4867
|
model: MODEL_TRIAGE,
|
|
4868
4868
|
max_tokens: 1024,
|
|
4869
|
-
//
|
|
4870
|
-
//
|
|
4871
|
-
//
|
|
4872
|
-
//
|
|
4873
|
-
//
|
|
4874
|
-
//
|
|
4875
|
-
//
|
|
4876
|
-
|
|
4877
|
-
// scripts/fp-filter-repeatability.cjs for the measured flip rate,
|
|
4878
|
-
// and the assertion in ai-fp-filter.test.ts that keeps it pinned.
|
|
4879
|
-
temperature: MODEL_TEMPERATURE,
|
|
4869
|
+
// Haiku 5.5 rejects non-default sampling params with HTTP 400
|
|
4870
|
+
// ("temperature is deprecated for this model"). Omit temperature /
|
|
4871
|
+
// top_p / top_k entirely — do NOT send MODEL_TEMPERATURE (0).
|
|
4872
|
+
// Adaptive thinking is on by default for 5.5; disable it here: this
|
|
4873
|
+
// is binary FP classification, not open-ended analysis, and thinking
|
|
4874
|
+
// burns the shared AI budget (Isobar rescan: every call 400'd on
|
|
4875
|
+
// temperature, then timed_out with aiReviewed:false → grade D).
|
|
4876
|
+
thinking: { type: "disabled" },
|
|
4880
4877
|
system: REVIEW_SYSTEM_PROMPT,
|
|
4881
4878
|
messages: [{ role: "user", content: prompt }]
|
|
4882
4879
|
},
|