@cejel/cejel 0.4.10 → 0.5.0
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/README.md +9 -9
- package/dist/calibration/llm-detector.js +5 -5
- package/dist/{chunk-TUUNJP27.js → chunk-2453M7C2.js} +8525 -8096
- package/dist/{chunk-IHT7B6L7.js → chunk-63XQDYQ5.js} +1 -1
- package/dist/{chunk-GKYTLWQK.js → chunk-FSMZV3Y6.js} +1 -1
- package/dist/{chunk-IN2LPGGU.js → chunk-M6YYPJSN.js} +2 -2
- package/dist/{chunk-PTZU6G4E.js → chunk-O3MHSK25.js} +34 -6
- package/dist/{chunk-IQ42TE5H.js → chunk-RH6FKREX.js} +1 -1
- package/dist/index.js +823 -27
- package/dist/mcp/index.js +4 -4
- package/dist/packs/d-series/index.js +4 -4
- package/dist/packs/decision-contracts/index.js +3 -3
- package/docs/security/README.md +78 -0
- package/docs/security/issuer-revocations +18 -0
- package/docs/security/issuer-signers +34 -0
- package/package.json +5 -2
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
describeGitFailure,
|
|
6
6
|
execGit,
|
|
7
7
|
isExpectedGitAbsence
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-63XQDYQ5.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esm_shims
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-O3MHSK25.js";
|
|
12
12
|
|
|
13
13
|
// src/packs/llm/files.ts
|
|
14
14
|
init_esm_shims();
|
|
@@ -171,7 +171,8 @@ function trackContentReads(_repoPath, collect) {
|
|
|
171
171
|
unattributedCriteria: /* @__PURE__ */ new Set(),
|
|
172
172
|
criterionSkipReasons: /* @__PURE__ */ new Map(),
|
|
173
173
|
signalSkipReasons: /* @__PURE__ */ new Map(),
|
|
174
|
-
withheldPaths: /* @__PURE__ */ new Map()
|
|
174
|
+
withheldPaths: /* @__PURE__ */ new Map(),
|
|
175
|
+
withheldPathIntersections: /* @__PURE__ */ new Map()
|
|
175
176
|
};
|
|
176
177
|
activeSession = session;
|
|
177
178
|
try {
|
|
@@ -225,16 +226,42 @@ function registerWithheldRepoPath(relativePath, reason) {
|
|
|
225
226
|
if (!session) return;
|
|
226
227
|
addSkipReason(session.withheldPaths, relativePath, reason);
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
+
function withheldRepoPaths() {
|
|
230
|
+
const session = activeSession;
|
|
231
|
+
if (!session) return [];
|
|
232
|
+
return [...session.withheldPaths].map(([path2, reasons]) => {
|
|
233
|
+
const intersection = session.withheldPathIntersections.get(path2);
|
|
234
|
+
return {
|
|
235
|
+
path: path2,
|
|
236
|
+
reasons,
|
|
237
|
+
signalsAdmitting: intersection ? [...intersection.signalsAdmitting].sort() : [],
|
|
238
|
+
actedOn: intersection?.actedOn ?? false
|
|
239
|
+
};
|
|
240
|
+
}).sort((left, right) => left.path.localeCompare(right.path));
|
|
241
|
+
}
|
|
242
|
+
function abstainSignalOnWithheldPaths(criterionId, signalId, wouldHaveRead, act) {
|
|
229
243
|
const session = activeSession;
|
|
230
244
|
if (!session) return false;
|
|
231
|
-
let
|
|
245
|
+
let admitted = false;
|
|
246
|
+
const signalKey = `${criterionId}.${signalId}`;
|
|
232
247
|
for (const [path2, reasons] of session.withheldPaths) {
|
|
233
248
|
if (!wouldHaveRead(path2)) continue;
|
|
234
|
-
|
|
235
|
-
|
|
249
|
+
admitted = true;
|
|
250
|
+
const existing = session.withheldPathIntersections.get(path2);
|
|
251
|
+
if (existing) {
|
|
252
|
+
existing.signalsAdmitting.add(signalKey);
|
|
253
|
+
if (act) existing.actedOn = true;
|
|
254
|
+
} else {
|
|
255
|
+
session.withheldPathIntersections.set(path2, {
|
|
256
|
+
signalsAdmitting: /* @__PURE__ */ new Set([signalKey]),
|
|
257
|
+
actedOn: act
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
if (act) {
|
|
261
|
+
for (const reason of reasons) attributeSkip(session, criterionId, [signalId], reason);
|
|
262
|
+
}
|
|
236
263
|
}
|
|
237
|
-
return
|
|
264
|
+
return admitted && act;
|
|
238
265
|
}
|
|
239
266
|
function recordFilesystemSkip(path2, error, deniedContext = false, deduplicate = true) {
|
|
240
267
|
const errno = errnoClass(error);
|
|
@@ -315,6 +342,7 @@ export {
|
|
|
315
342
|
withContentReadSignals,
|
|
316
343
|
recordContentSkip,
|
|
317
344
|
registerWithheldRepoPath,
|
|
345
|
+
withheldRepoPaths,
|
|
318
346
|
abstainSignalOnWithheldPaths,
|
|
319
347
|
recordFilesystemSkip,
|
|
320
348
|
readRepoText,
|