@code-sentinel-cli/code-sentinel-cli 4.0.13 → 4.0.14
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/bin.js +124 -371
- package/dist/builtin-rules/ai/angular/api-service-contract-risk.prompt.md +0 -14
- package/dist/builtin-rules/ai/angular/api-service-contract-risk.rule.yaml +2 -3
- package/dist/builtin-rules/ai/angular/component-state-flow.prompt.md +0 -6
- package/dist/builtin-rules/ai/angular/component-state-flow.rule.yaml +1 -1
- package/dist/builtin-rules/ai/angular/reactive-form-flow.prompt.md +0 -6
- package/dist/builtin-rules/ai/angular/reactive-form-flow.rule.yaml +1 -1
- package/dist/builtin-rules/ai/angular/template-contract-risk.prompt.md +1 -7
- package/dist/builtin-rules/ai/angular/template-contract-risk.rule.yaml +1 -1
- package/dist/builtin-rules/ai/general/code-clarity.prompt.md +0 -4
- package/dist/builtin-rules/ai/general/code-clarity.rule.yaml +1 -1
- package/dist/builtin-rules/static/angular/button-accessible-name.rule.js +5 -261
- package/dist/builtin-rules/static/angular/no-leaky-subscription.rule.js +1 -18
- package/dist/builtin-rules/static/angular/onpush-required.rule.js +7 -7
- package/dist/builtin-rules/static/angular/template-dom-xss.rule.js +1 -28
- package/dist/builtin-rules/static/general/no-circular-import.rule.js +1 -1
- package/dist/builtin-rules/static/general/no-unresolved-import-symbol.rule.js +1 -1
- package/dist/index.d.ts +2 -8
- package/dist/index.js +125 -372
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createHash, randomBytes, createCipheriv, createDecipheriv, randomUUID,
|
|
|
6
6
|
import * as sp2 from 'path';
|
|
7
7
|
import { resolve, join, dirname, relative, sep, basename, isAbsolute, extname, posix, normalize } from 'path';
|
|
8
8
|
import { Language, Parser, Query } from 'web-tree-sitter';
|
|
9
|
-
import { Project,
|
|
9
|
+
import { Project, SyntaxKind, Node, ScriptKind, VariableDeclarationKind } from 'ts-morph';
|
|
10
10
|
import { readFile, mkdir, writeFile, rename, access, mkdtemp, readdir, rm, stat, unlink, chmod, lstat, realpath as realpath$1, open } from 'fs/promises';
|
|
11
11
|
import * as nativeFs from 'fs';
|
|
12
12
|
import { existsSync, readFileSync, mkdtempSync, statSync, rmSync, constants, mkdirSync, createReadStream, realpathSync, readdirSync, writeFileSync, stat as stat$1, realpath, readdir as readdir$1, unwatchFile, watchFile, watch as watch$1, openSync, readSync, closeSync, fstatSync } from 'fs';
|
|
@@ -10342,171 +10342,6 @@ async function createDefaultTaintAnalyzer() {
|
|
|
10342
10342
|
createJavaTaintAnalyzer(javaLanguage)
|
|
10343
10343
|
]);
|
|
10344
10344
|
}
|
|
10345
|
-
function returnsPrimitiveString(method, cls, visiting = /* @__PURE__ */ new Set()) {
|
|
10346
|
-
if (cls.getExtends() || visiting.has(method.getName()) || method.getReturnTypeNode()?.getText() !== "string")
|
|
10347
|
-
return false;
|
|
10348
|
-
if (method.isAsync() || method.getParameters().some((p) => p.getTypeNode()?.getText() !== "string"))
|
|
10349
|
-
return false;
|
|
10350
|
-
const sf = cls.getSourceFile();
|
|
10351
|
-
if (cls.getConstructors().length) return false;
|
|
10352
|
-
if (cls.getDescendants().some(
|
|
10353
|
-
(n) => Node.isBinaryExpression(n) && n.getLeft().getText().startsWith("this.") && /^(?:=|\+=|\|\|=|\?\?=)$/.test(n.getOperatorToken().getText())
|
|
10354
|
-
))
|
|
10355
|
-
return false;
|
|
10356
|
-
const nativeRegExp = !sf.getImportDeclarations().some(
|
|
10357
|
-
(d) => d.getNamedImports().some((i) => (i.getAliasNode()?.getText() ?? i.getName()) === "RegExp") || d.getDefaultImport()?.getText() === "RegExp"
|
|
10358
|
-
) && !sf.getClasses().some((c) => c.getName() === "RegExp") && !sf.getFunctions().some((f) => f.getName() === "RegExp") && !sf.getVariableDeclarations().some((d) => d.getName() === "RegExp") && !method.getParameters().some((p) => p.getName() === "RegExp");
|
|
10359
|
-
const body = method.getBody();
|
|
10360
|
-
if (!body || !Node.isBlock(body)) return false;
|
|
10361
|
-
if (body.getDescendants().some(
|
|
10362
|
-
(n) => Node.isAsExpression(n) || Node.isTypeAssertion(n) || Node.isAwaitExpression(n) || Node.isBinaryExpression(n) && /^(?:=|\+=|\|\|=|\?\?=)$/.test(n.getOperatorToken().getText())
|
|
10363
|
-
))
|
|
10364
|
-
return false;
|
|
10365
|
-
if (body.getDescendants().filter(Node.isIfStatement).some(
|
|
10366
|
-
(n) => n.getExpression().getDescendants().some(Node.isCallExpression) || Node.isCallExpression(n.getExpression())
|
|
10367
|
-
))
|
|
10368
|
-
return false;
|
|
10369
|
-
const active = new Set(visiting).add(method.getName());
|
|
10370
|
-
const parameters = new Set(method.getParameters().map((p) => p.getName()));
|
|
10371
|
-
const locals = /* @__PURE__ */ new Map();
|
|
10372
|
-
for (const statement of body.getStatements()) {
|
|
10373
|
-
if (Node.isVariableStatement(statement)) {
|
|
10374
|
-
if (statement.getDeclarationKind() !== "const") return false;
|
|
10375
|
-
for (const decl of statement.getDeclarations()) {
|
|
10376
|
-
const value = decl.getInitializer();
|
|
10377
|
-
if (!value) return false;
|
|
10378
|
-
locals.set(decl.getName(), value);
|
|
10379
|
-
}
|
|
10380
|
-
} else if (!Node.isReturnStatement(statement) && !Node.isIfStatement(statement)) return false;
|
|
10381
|
-
}
|
|
10382
|
-
const stringValue = (node, hops = 0) => {
|
|
10383
|
-
if (!node || hops > 10) return false;
|
|
10384
|
-
if (Node.isStringLiteral(node) || Node.isNoSubstitutionTemplateLiteral(node)) return true;
|
|
10385
|
-
if (Node.isTemplateExpression(node))
|
|
10386
|
-
return node.getTemplateSpans().every((span) => stringValue(span.getExpression(), hops + 1));
|
|
10387
|
-
if (Node.isParenthesizedExpression(node)) return stringValue(node.getExpression(), hops + 1);
|
|
10388
|
-
if (Node.isIdentifier(node))
|
|
10389
|
-
return parameters.has(node.getText()) || stringValue(locals.get(node.getText()), hops + 1);
|
|
10390
|
-
if (Node.isBinaryExpression(node) && ["??", "||", "+"].includes(node.getOperatorToken().getText()))
|
|
10391
|
-
return stringValue(node.getLeft(), hops + 1) && stringValue(node.getRight(), hops + 1);
|
|
10392
|
-
if (!Node.isCallExpression(node)) return false;
|
|
10393
|
-
const callee = node.getExpression();
|
|
10394
|
-
if (!Node.isPropertyAccessExpression(callee)) return false;
|
|
10395
|
-
if (callee.getName() === "replace" && stringValue(callee.getExpression(), hops + 1)) {
|
|
10396
|
-
const [pattern, replacement] = node.getArguments();
|
|
10397
|
-
const regex = pattern && (Node.isRegularExpressionLiteral(pattern) || Node.isIdentifier(pattern) && (() => {
|
|
10398
|
-
const init = locals.get(pattern.getText());
|
|
10399
|
-
return nativeRegExp && !!init && Node.isNewExpression(init) && init.getExpression().getText() === "RegExp";
|
|
10400
|
-
})());
|
|
10401
|
-
return node.getArguments().length === 2 && !!regex && stringValue(replacement, hops + 1);
|
|
10402
|
-
}
|
|
10403
|
-
if (callee.getExpression().getText() !== "this") return false;
|
|
10404
|
-
const helper = cls.getMethod(callee.getName());
|
|
10405
|
-
return !!helper && helper.getScope() === "private" && node.getArguments().every((arg) => stringValue(arg, hops + 1)) && returnsPrimitiveString(helper, cls, active);
|
|
10406
|
-
};
|
|
10407
|
-
const producedString = (node, hops = 0) => {
|
|
10408
|
-
if (!node || hops > 10) return false;
|
|
10409
|
-
if (Node.isIdentifier(node))
|
|
10410
|
-
return !parameters.has(node.getText()) && producedString(locals.get(node.getText()), hops + 1);
|
|
10411
|
-
if (Node.isParenthesizedExpression(node)) return producedString(node.getExpression(), hops + 1);
|
|
10412
|
-
if (Node.isBinaryExpression(node)) return false;
|
|
10413
|
-
return stringValue(node);
|
|
10414
|
-
};
|
|
10415
|
-
const returns = body.getDescendants().filter(Node.isReturnStatement);
|
|
10416
|
-
return returns.length > 0 && returns.every((r) => producedString(r.getExpression()));
|
|
10417
|
-
}
|
|
10418
|
-
function provenStringPipes(component, files) {
|
|
10419
|
-
const project = new Project({ useInMemoryFileSystem: true, skipFileDependencyResolution: true });
|
|
10420
|
-
const source = project.createSourceFile(component.path, component.content);
|
|
10421
|
-
const cls = source.getClasses().find((c) => c.getDecorator("Component"));
|
|
10422
|
-
const metadata = cls?.getDecorator("Component")?.getCallExpression()?.getArguments()[0];
|
|
10423
|
-
if (!metadata || !Node.isObjectLiteralExpression(metadata)) return /* @__PURE__ */ new Set();
|
|
10424
|
-
const imports = metadata.getProperty("imports");
|
|
10425
|
-
const listed = imports && Node.isPropertyAssignment(imports) ? imports.getInitializer() : void 0;
|
|
10426
|
-
if (!listed || !Node.isArrayLiteralExpression(listed)) return /* @__PURE__ */ new Set();
|
|
10427
|
-
const used = new Set(
|
|
10428
|
-
listed.getElements().filter(Node.isIdentifier).map((n) => n.getText())
|
|
10429
|
-
);
|
|
10430
|
-
let resolution;
|
|
10431
|
-
const resolveContext = () => {
|
|
10432
|
-
if (resolution !== void 0) return resolution;
|
|
10433
|
-
resolution = null;
|
|
10434
|
-
try {
|
|
10435
|
-
const configPath = ts.findConfigFile(dirname(component.absolutePath), ts.sys.fileExists);
|
|
10436
|
-
if (!configPath) return null;
|
|
10437
|
-
const config = ts.readConfigFile(configPath, ts.sys.readFile);
|
|
10438
|
-
if (config.error) return null;
|
|
10439
|
-
const parsed = ts.parseJsonConfigFileContent(config.config, ts.sys, dirname(configPath));
|
|
10440
|
-
if (parsed.errors.some((e) => e.code !== 18003 && e.code !== 18002)) return null;
|
|
10441
|
-
resolution = {
|
|
10442
|
-
options: parsed.options,
|
|
10443
|
-
root: realpathSync(resolve(dirname(configPath), "src"))
|
|
10444
|
-
};
|
|
10445
|
-
} catch {
|
|
10446
|
-
return null;
|
|
10447
|
-
}
|
|
10448
|
-
return resolution;
|
|
10449
|
-
};
|
|
10450
|
-
const pipes = /* @__PURE__ */ new Set();
|
|
10451
|
-
const declaredPipeNames = /* @__PURE__ */ new Set();
|
|
10452
|
-
const ambiguousPipeNames = /* @__PURE__ */ new Set();
|
|
10453
|
-
for (const declaration of source.getImportDeclarations())
|
|
10454
|
-
for (const named of declaration.getNamedImports()) {
|
|
10455
|
-
if (!used.has(named.getAliasNode()?.getText() ?? named.getName())) continue;
|
|
10456
|
-
const specifier = declaration.getModuleSpecifierValue();
|
|
10457
|
-
let content;
|
|
10458
|
-
const relativePath = resolve(dirname(component.absolutePath), specifier);
|
|
10459
|
-
content = files.find(
|
|
10460
|
-
(f) => [`${relativePath}.ts`, `${relativePath}/index.ts`].includes(f.absolutePath)
|
|
10461
|
-
)?.content;
|
|
10462
|
-
if (content === void 0)
|
|
10463
|
-
try {
|
|
10464
|
-
const context = resolveContext();
|
|
10465
|
-
if (!context) continue;
|
|
10466
|
-
const target = ts.resolveModuleName(
|
|
10467
|
-
specifier,
|
|
10468
|
-
component.absolutePath,
|
|
10469
|
-
context.options,
|
|
10470
|
-
ts.sys
|
|
10471
|
-
).resolvedModule?.resolvedFileName;
|
|
10472
|
-
if (!target || !target.endsWith(".ts") || target.endsWith(".d.ts")) continue;
|
|
10473
|
-
const root = context.root;
|
|
10474
|
-
const actual = realpathSync(target);
|
|
10475
|
-
const within = relative(root, actual);
|
|
10476
|
-
if (isAbsolute(within) || within.startsWith(`..${sep}`) || within === ".." || actual.includes(`${sep}node_modules${sep}`))
|
|
10477
|
-
continue;
|
|
10478
|
-
content = readFileSync(actual, "utf8");
|
|
10479
|
-
} catch {
|
|
10480
|
-
continue;
|
|
10481
|
-
}
|
|
10482
|
-
if (content === void 0) continue;
|
|
10483
|
-
const pipeSource = project.createSourceFile(
|
|
10484
|
-
`context-${pipes.size}-${named.getName()}.ts`,
|
|
10485
|
-
content,
|
|
10486
|
-
{ overwrite: true }
|
|
10487
|
-
);
|
|
10488
|
-
const pipeClass = pipeSource.getClass(named.getName());
|
|
10489
|
-
const decorator = pipeClass?.getDecorators().find((d) => {
|
|
10490
|
-
const binding = pipeSource.getImportDeclarations().filter((i) => i.getModuleSpecifierValue() === "@angular/core").flatMap((i) => i.getNamedImports()).find(
|
|
10491
|
-
(i) => i.getName() === "Pipe" && (i.getAliasNode()?.getText() ?? i.getName()) === d.getName()
|
|
10492
|
-
);
|
|
10493
|
-
return !!binding;
|
|
10494
|
-
});
|
|
10495
|
-
const options = decorator?.getCallExpression()?.getArguments()[0];
|
|
10496
|
-
const name = options && Node.isObjectLiteralExpression(options) ? options.getProperty("name") : void 0;
|
|
10497
|
-
const value = name && Node.isPropertyAssignment(name) ? name.getInitializer() : void 0;
|
|
10498
|
-
const transform = pipeClass?.getMethod("transform");
|
|
10499
|
-
if (value && Node.isStringLiteral(value)) {
|
|
10500
|
-
const pipeName = value.getLiteralValue();
|
|
10501
|
-
if (declaredPipeNames.has(pipeName)) ambiguousPipeNames.add(pipeName);
|
|
10502
|
-
declaredPipeNames.add(pipeName);
|
|
10503
|
-
if (!ambiguousPipeNames.has(pipeName) && transform && pipeClass && returnsPrimitiveString(transform, pipeClass))
|
|
10504
|
-
pipes.add(pipeName);
|
|
10505
|
-
else pipes.delete(pipeName);
|
|
10506
|
-
}
|
|
10507
|
-
}
|
|
10508
|
-
return pipes;
|
|
10509
|
-
}
|
|
10510
10345
|
function normalizePath3(p) {
|
|
10511
10346
|
return posix.normalize(p.replace(/\\/g, "/")).replace(/^\.\//, "");
|
|
10512
10347
|
}
|
|
@@ -10619,106 +10454,6 @@ function classifyRhs(rhs, externalMembers) {
|
|
|
10619
10454
|
if (SOURCE_PATTERNS.some((re) => re.test(rhsText))) return "tainted-source";
|
|
10620
10455
|
return null;
|
|
10621
10456
|
}
|
|
10622
|
-
function provenHtmlMethods(cls, sf) {
|
|
10623
|
-
const methods = /* @__PURE__ */ new Set();
|
|
10624
|
-
const assignments = /* @__PURE__ */ new Set([
|
|
10625
|
-
"=",
|
|
10626
|
-
"+=",
|
|
10627
|
-
"-=",
|
|
10628
|
-
"*=",
|
|
10629
|
-
"/=",
|
|
10630
|
-
"%=",
|
|
10631
|
-
"**=",
|
|
10632
|
-
"<<=",
|
|
10633
|
-
">>=",
|
|
10634
|
-
">>>=",
|
|
10635
|
-
"&=",
|
|
10636
|
-
"|=",
|
|
10637
|
-
"^=",
|
|
10638
|
-
"||=",
|
|
10639
|
-
"&&=",
|
|
10640
|
-
"??="
|
|
10641
|
-
]);
|
|
10642
|
-
const purifier = sf.getImportDeclarations().find((d) => d.getModuleSpecifierValue() === "dompurify")?.getDefaultImport()?.getText();
|
|
10643
|
-
const angularSanitizer = sf.getImportDeclarations().filter((d) => d.getModuleSpecifierValue() === "@angular/platform-browser").flatMap((d) => d.getNamedImports()).find((n) => n.getName() === "DomSanitizer");
|
|
10644
|
-
if (!purifier || !angularSanitizer) return methods;
|
|
10645
|
-
if (sf.getDescendantsOfKind(SyntaxKind.CallExpression).some(
|
|
10646
|
-
(c) => new RegExp(
|
|
10647
|
-
`^${purifier}\\.(?:addHook|setConfig|removeHook|removeHooks|removeAllHooks)$`
|
|
10648
|
-
).test(c.getExpression().getText())
|
|
10649
|
-
))
|
|
10650
|
-
return methods;
|
|
10651
|
-
if (sf.getDescendantsOfKind(SyntaxKind.BinaryExpression).some(
|
|
10652
|
-
(n) => n.getLeft().getText().startsWith(`${purifier}.`) && assignments.has(n.getOperatorToken().getText())
|
|
10653
|
-
))
|
|
10654
|
-
return methods;
|
|
10655
|
-
const sanitizerType = angularSanitizer.getAliasNode()?.getText() ?? angularSanitizer.getName();
|
|
10656
|
-
const sanitizerMembers = new Set(
|
|
10657
|
-
cls.getProperties().filter((p) => p.getInitializer()?.getText() === `inject(${sanitizerType})`).map((p) => p.getName())
|
|
10658
|
-
);
|
|
10659
|
-
for (const ctor of cls.getConstructors())
|
|
10660
|
-
for (const param of ctor.getParameters()) {
|
|
10661
|
-
if (param.isParameterProperty() && param.getTypeNode()?.getText() === sanitizerType)
|
|
10662
|
-
sanitizerMembers.add(param.getName());
|
|
10663
|
-
}
|
|
10664
|
-
for (const assignment of cls.getDescendantsOfKind(SyntaxKind.BinaryExpression)) {
|
|
10665
|
-
if (!assignments.has(assignment.getOperatorToken().getText())) continue;
|
|
10666
|
-
const member = thisPropertyName(assignment.getLeft());
|
|
10667
|
-
if (member) sanitizerMembers.delete(member);
|
|
10668
|
-
}
|
|
10669
|
-
const allowedTags = new Set(
|
|
10670
|
-
"p br span strong em u s mark h1 h2 h3 h4 h5 h6 ul ol li a img div b i blockquote pre code table thead tbody tr th td hr".split(
|
|
10671
|
-
" "
|
|
10672
|
-
)
|
|
10673
|
-
);
|
|
10674
|
-
const allowedAttrs = new Set("href target rel src alt title style class data-color".split(" "));
|
|
10675
|
-
const validPolicy = (arg) => {
|
|
10676
|
-
if (!arg) return true;
|
|
10677
|
-
if (!Node.isObjectLiteralExpression(arg)) return false;
|
|
10678
|
-
for (const prop of arg.getProperties()) {
|
|
10679
|
-
if (!Node.isPropertyAssignment(prop)) return false;
|
|
10680
|
-
const key = prop.getName().replace(/^['"]|['"]$/g, "");
|
|
10681
|
-
const value = prop.getInitializer();
|
|
10682
|
-
if (key === "ALLOWED_TAGS" || key === "ALLOWED_ATTR") {
|
|
10683
|
-
if (!value || !Node.isArrayLiteralExpression(value)) return false;
|
|
10684
|
-
const set = key === "ALLOWED_TAGS" ? allowedTags : allowedAttrs;
|
|
10685
|
-
if (!value.getElements().every((n) => Node.isStringLiteral(n) && set.has(n.getLiteralValue())))
|
|
10686
|
-
return false;
|
|
10687
|
-
} else if (key === "ALLOWED_URI_REGEXP") {
|
|
10688
|
-
if (value?.getText() !== "/^(?:https?|mailto):/i") return false;
|
|
10689
|
-
} else return false;
|
|
10690
|
-
}
|
|
10691
|
-
return true;
|
|
10692
|
-
};
|
|
10693
|
-
for (const method of cls.getMethods()) {
|
|
10694
|
-
if (method.getParameters().some((p) => p.getName() === purifier)) continue;
|
|
10695
|
-
const body = method.getBody();
|
|
10696
|
-
const statements = body && Node.isBlock(body) ? body.getStatements() : void 0;
|
|
10697
|
-
if (!statements || statements.length !== 2) continue;
|
|
10698
|
-
const [first, last] = statements;
|
|
10699
|
-
if (!first || !Node.isVariableStatement(first) || first.getDeclarationKind() !== "const" || !last || !Node.isReturnStatement(last))
|
|
10700
|
-
continue;
|
|
10701
|
-
const declarations = first.getDeclarations();
|
|
10702
|
-
if (declarations.length !== 1) continue;
|
|
10703
|
-
const local = declarations[0];
|
|
10704
|
-
const init = local?.getInitializer();
|
|
10705
|
-
if (!local || local.getName() === purifier || !init || !Node.isCallExpression(init) || init.getExpression().getText() !== `${purifier}.sanitize`)
|
|
10706
|
-
continue;
|
|
10707
|
-
const input4 = init.getArguments()[0];
|
|
10708
|
-
if (!input4 || !Node.isIdentifier(input4) || !method.getParameters().some((p) => p.getName() === input4.getText()))
|
|
10709
|
-
continue;
|
|
10710
|
-
if (init.getArguments().length > 2 || !validPolicy(init.getArguments()[1])) continue;
|
|
10711
|
-
const output2 = last.getExpression();
|
|
10712
|
-
if (!output2 || !Node.isCallExpression(output2) || output2.getArguments().length !== 1 || output2.getArguments()[0]?.getText() !== local.getName())
|
|
10713
|
-
continue;
|
|
10714
|
-
const callee = output2.getExpression();
|
|
10715
|
-
if (!Node.isPropertyAccessExpression(callee) || callee.getName() !== "bypassSecurityTrustHtml")
|
|
10716
|
-
continue;
|
|
10717
|
-
const receiver = thisPropertyName(callee.getExpression());
|
|
10718
|
-
if (receiver && sanitizerMembers.has(receiver)) methods.add(method.getName());
|
|
10719
|
-
}
|
|
10720
|
-
return methods;
|
|
10721
|
-
}
|
|
10722
10457
|
function classifyMembers(componentSource, componentPath) {
|
|
10723
10458
|
const origins = /* @__PURE__ */ new Map();
|
|
10724
10459
|
const RANK = {
|
|
@@ -10734,7 +10469,7 @@ function classifyMembers(componentSource, componentPath) {
|
|
|
10734
10469
|
const project = new Project({ useInMemoryFileSystem: true });
|
|
10735
10470
|
const sf = project.createSourceFile(componentPath, componentSource, { overwrite: true });
|
|
10736
10471
|
const cls = findComponentClass(sf);
|
|
10737
|
-
if (!cls) return
|
|
10472
|
+
if (!cls) return origins;
|
|
10738
10473
|
const externalMembers = collectExternalMembers(cls);
|
|
10739
10474
|
for (const prop of cls.getProperties()) {
|
|
10740
10475
|
const init = prop.getInitializer();
|
|
@@ -10749,7 +10484,7 @@ function classifyMembers(componentSource, componentPath) {
|
|
|
10749
10484
|
const origin = classifyRhs(bin.getRight(), externalMembers);
|
|
10750
10485
|
if (origin) fold(name, origin);
|
|
10751
10486
|
}
|
|
10752
|
-
return
|
|
10487
|
+
return origins;
|
|
10753
10488
|
}
|
|
10754
10489
|
function createTemplateComponentLinker() {
|
|
10755
10490
|
return {
|
|
@@ -10761,12 +10496,7 @@ function createTemplateComponentLinker() {
|
|
|
10761
10496
|
if (f.language !== "typescript" && f.language !== "javascript") continue;
|
|
10762
10497
|
if (!f.content.includes("templateUrl")) continue;
|
|
10763
10498
|
if (!templateUrlMatches(f, htmlPath)) continue;
|
|
10764
|
-
|
|
10765
|
-
return {
|
|
10766
|
-
componentPath: f.path,
|
|
10767
|
-
...classifyMembers(f.content, f.path),
|
|
10768
|
-
primitiveStringPipes
|
|
10769
|
-
};
|
|
10499
|
+
return { componentPath: f.path, memberOrigins: classifyMembers(f.content, f.path) };
|
|
10770
10500
|
}
|
|
10771
10501
|
} catch {
|
|
10772
10502
|
return null;
|
|
@@ -12007,7 +11737,7 @@ function parseParams2(url) {
|
|
|
12007
11737
|
function normalizeUrl(url) {
|
|
12008
11738
|
return url.replace(/^\/+/, "");
|
|
12009
11739
|
}
|
|
12010
|
-
var createCompositeParser, SUPPORTED, createTextParser, requireFromHere, grammarCache, parserInitialized, initParser, resolveGrammarPath, loadGrammar, LANGUAGE_TO_GRAMMAR, SUPPORTED2, createTreeSitterParser, asTreeSitterTree, OPEN_SCRIPT_RE, CLOSE_SCRIPT_RE, LANG_TS_RE, SRC_ATTR_RE, OPEN_TEMPLATE_RE, CLOSE_TEMPLATE_RE, blankOut, keepOnly, templateRange, projectVueSfc, isVueSfcPath, tsMorphPathOf, SUPPORTED3, scriptKindFor, createTsMorphParser, createParser, BASE_CONFIG_RE, PROFILE_CONFIG_RE, HARNESS_PORT, KEY_LINE_RE, yamlEntries, emptyKeys, isConfigYaml, profileRank, declaresDatasource, detectDatasourceProfileBlocker, detectProfileCompositionBlocker, detectServerPortBlocker, XML_COMMENT_RE, INCLUDE_RE, CREATE_TABLE_RE, ALTER_TARGET_RE, matchAllGroups, detectUnrunnableMigrationBlocker, detectPolicyBootBlockers, composeSuggested, BINDABLE_NAME_RE, YAML_KEY_RE, PROPS_KEY_RE, configValueOf, rawTokensOf, MARK, AUTHORITY_LIKE_RE, shapeInAuthority, nextOf, shapeInPath, shapeAt, parseConfigValue, renderTemplate, DIALECT_SPECS, JDBC_URL_PATTERNS, DRIVER_PATTERNS, isConfigFile, isBuildFile, dialectsMatching, resolveDialect, DDL_AUTO_CREATE_RE, FLYWAY_RE, LIQUIBASE_RE, resolveSchemaProvisioning, detectSchemaProvisioning, detectDbTier, DB_SIDECAR_PORT, DISPOSABLE_DB, dbSidecarEnv, buildDbSidecarSpec, maskJavaComments, maskedCorpusCache, maskJavaFiles, PROFILE_GATED_JAR_BEANS, JHIPSTER_PROFILE_CONSTANTS, isJava, CLASS_DECL_RE, PROFILE_ANNOTATION_RE, CONDITIONAL_ANNOTATION_RE, CONFIG_ANNOTATION_RE, readProfileAnnotation, declarationHead, braceMatch, lineAt, parsedClasses, simpleTypeName, parseParams, beanMethods, collectProducers, detectUngatedProfileDependencies, ungatedProfileDeviationText, STANDALONE_BOOT_PROFILE, ENTITY_SCHEMA_GAPS, PROVISIONED_SIDECARS, DEFAULT_PROVISIONED_SIDECARS, NOTE, isConfigFile2, leafKey, indentOf, fullPathFor, usesJpa, detectVaultTemplateCompatibility, KAFKA_BUILD_RE, KAFKA_CONFIG_RE, STREAM_BUILD_RE, STREAM_CONFIG_RE, declaresKafka, declaresStreamBinder, hasPinnedListenerAutoStartup, ENDPOINT_PROPERTY_RULES, ENDPOINT_VALUE_RE, CLUSTER_TOPOLOGY_RULES, literalDatabaseOf, resolveSchemaResolution, buildStandaloneBootProfile, runtimeEnvKeyFor, A_SENTINEL, ENC_SENTINEL, UNAVAILABLE_KAFKA_HOST, UNAVAILABLE_KAFKA_PORT, isBase64JwtSigningKeyPath, isEndpointShaped, isEndpointPropertyPath, hasToken, dummyFor, RELAXED_ENV, envKeyFor, buildSidecars, renderSidecar, identifyByName, PATH_KINDS, PATH_LEAF_ROLES, identifyByPath, roleFromShape, shapedDummy, unavailableKafkaValue, resolveSlot, resolvePlaceholder, encSentinelFor, SHAPE_PRECEDENCE, strongerShape, buildBootResolution, RUNTIME_ENV_MANIFEST_SCHEMA_VERSION, SENSITIVE_ENV_NAME, URL_USERINFO, SENSITIVE_QUERY_VALUE, INLINE_SENSITIVE_VALUE, JWT_VALUE, EFFECTIVE_VALUE_LIMIT, displayEnvValue, UPPER_ENV_RE, RUNTIME_HTTP_STUB_AUTHORITY, parseRuntimeEnvProposal, strategyForRule, SAFE_DISABLE_ENV_ALLOWLIST, isSafeDisableCandidate, proposalStrategyFitsEntry, proposalFor, synthesizeManifestEnv, CONFIG_FILE_RE, BUILD_CONFIG_FILE_RE, ENV_FILE_RE, JAVA_FILE_RE, KOTLIN_FILE_RE, PACKAGE_MANIFEST_PATH, PLACEHOLDER_RE, GET_ENV_RE, VALUE_RE, lineOf, propertyPathAt, declaredConfigPropertyNames, shapeFor, valueConsumerShape, dependencyFor, enumValuesForConsumer, compareText, runtimeEnvScenarioId, sameSourcePath, buildRuntimeEnvManifest, buildRuntimeEnvResolutionReport, buildRuntimeEnvEffectiveReport, countsFor, applyRuntimeEnvImpact, TS_LANGUAGES, EXTENSIONS, TS_SOURCE_EXTENSIONS_BY_RUNTIME_EXT, scriptKindFor2, normalizeRelativePath, candidatePaths, normalizeConfigPath, stripJsonComments, loadTsConfigResolver, loadEmitOptions, emittedImportBindings, matchPathPattern, applyPathTarget, resolveAliasModule, resolveModule, aliasIfDifferent, exportedSymbols, expressionRootName, addSymbol, compareText2, variableBindingNames, importEqualsSpecifier, extractSymbols, fingerprintFor, createTsAstDependencyGraphBuilder, isTsLike, debug, warn, tryLoad, trySave, createIncrementalAstGraphBuilder, SOURCES, SINKS, SANITIZERS, DEFAULT_TS_TAINT_TABLES, JAVA_SOURCES, JAVA_SINKS, JAVA_SANITIZERS, DEFAULT_JAVA_TAINT_TABLES, PROPAGATOR_RESULT_TAILS, PROPAGATOR_STATE_TAILS, SUBJECT_CTOR_TYPES, CALLBACK_TAINT, TAINT_UNION_BINOPS, EMPTY_SUMMARY, paramSentinel, PARAM_SENTINEL_RE, MAX_CROSS_FILE_DEPTH, JAVA_LINE_TERMINATORS, HOST_FIXING_PREFIX_RE, KNOWN_STRING_CONSTANTS, MAX_CONSTANT_DEPTH, TYPE_DECLARATION, CALLABLE, SIMPLE_ESCAPES, TYPE_DECL_NODES, indexCache, SCOPE_BOUNDARY, SCOPE_BOUNDARY2, TYPE_DECL, STRING_PASSTHROUGH, ARG_PASSTHROUGH, CONTAINER_ELEMENT, BUILDER_APPENDERS, COLLECTION_MUTATORS, RECEIVER_FOLD_MUTATORS, HOST_FIXED_MARK, STRING_BUILDER_TYPES, BUILDER_PREFIX_BREAKERS, PREFIX_DROPPING_PASSTHROUGH, CONDITIONAL_CONSTRUCT, INERT_URL_ACCESSOR_RE, EMPTY_SUMMARY2, paramSentinel2, PARAM_SENTINEL_RE2, MAX_CROSS_METHOD_DEPTH, SANITIZE_CALL, BYPASS_CALL, PREFIX_GATE, MAX_VALUE_HOPS, SOURCE_PATTERNS, MAPPING_ANNOTATIONS, PARAM_ANNOTATIONS, AUTHZ_ANNOTATIONS, VALIDATION_ANNOTATIONS, annotationScanner, TYPE_DECL2, MODIFIER, METHOD_NAME, LEADING_ANNOTATION, simpleName, lineOf2, readBalanced, annotationArgs, firstStringLiteral, readMappingPath, readMappingMethod, joinPaths, skipToDeclaration, isTypeDeclaration, splitParams, parseParam, readAuthAnnotations, ROLE_ANNOTATIONS, stripRolePrefix, readAuthRoles, precedingBlock, readClassContext, extractFromFile, JAXRS_VERBS, JAXRS_PARAM_ANNOTATIONS, JAXRS_IMPORT, parseJaxRsParam, readJaxRsPath, JAXRS_TYPE_DECL, readJaxRsType, IMPLEMENTS_DECL, readImplCandidate, escapeRegExp, findImplMethod, extractJaxRsEndpoints, extractHttpEndpoints, findEnclosingEndpoint, SINK_ATTACKS, AI_TRIAGE_ATTACK_ALIASES, SINK_SHAPE_VARIANTS, SOURCE_KIND, kindsFromSources, deriveAuthContext, resolveCompanionParams, resolveInjectionPoint, buildServerRequest, buildClientRequest, generateAttackScenario, UNASSESSED_CATALOG, BY_ID, buildUnassessedItems, INJECTION_LANGUAGES, TIER_A_INJECTION_ITEMS, CONFIRMED_LIMITATION, INCONCLUSIVE_LIMITATION, evidenceFrom, byFileLine, CHECKLIST_VERDICT_RANK, mergeEqualRank, dedupeByChecklistId, scenarioByFileLine, PENTEST_CHECKLIST_TOTAL, DECLARED_CHECKLIST_IDS, buildChecklistCoverage, buildCoverage, assembleAssessment, CONFIG_ENTRY_RE, SKIPPED_ENTRY_RE, XML_COMMENT_RE2, SYSTEM_PATH_RE, declaredSystemJarEntries, declaredSystemJarPaths, readCentralDirectory, readEntryBytes, readEntryText, languageFor, detectMissingSystemJars, readJarConfigFiles, readJarClassFiles, listJarClassNames, MIN_CONSTANT_LEN, MAX_CONSTANT_LEN, MAX_CONSTANTS_PER_CLASS, NOISE_CONSTANT_RE, parseClassConstants, constantRank, readJarClassConstants, collectDependencyClassConstants, collectDependencyClassNames, collectDependencyConfigFiles, JWT_CONTEXT_MARKER_RE, BASE64_SHAPE_RE, MIN_BASE64_KEY_CHARS, MAX_BASE64_KEY_CHARS, decodedByteLength, readJarJwtKeyCandidates, collectJwtKeyCandidates, JWT_FACADE_RE, JWT_DECODE_CALL_RE, JWT_VERIFY_MARKER_RE, readJarDecodeOnlyEvidence, collectDecodeOnlyEvidence, collectEagerKafkaStartupJars, EMPTY_DEPENDENCY_GUARDS, DENY_CLASS_RE, ASPECT_DESC, ADVICE_DESC_RE, POINTCUT_DESC, ACC_INTERFACE, ACC_ANNOTATION, MAX_HOPS, operandLength, Reader, parseClass, simpleName2, packageOf, scanClassFilesForGuards, collectDependencyGuardFacts, TEST_SOURCE_SET_RE, isTestSourcePath, STANDARD_GUARD_ANNOTATIONS, MAX_HOPS2, DENY_EXCEPTION, DENY_STATUS, DENY_SEND_ERROR, isJava2, lineOf3, maskStrings, ANNOTATION_NAME, annotationNames, parseClass2, RESPONSE_STATUS_TEST, isResponseStatusTranslation, firstDenyMatch, denyHitOf, methodKey, endpointGuardKey, sourceRootOf, sameModuleFirst, calleesOf, scanAuthorizationGuards, guardForEndpoint, MAX_EVIDENCE3, REVIEW_SIGNAL_MAP, asJsonRecord, readReviewFinding, parseReviewReport, reviewReportRuleIds, evidenceOf, sortEvidence, EXTERNAL_BYPASS_MARKER, isDecisiveFinding, foldReviewSignals, MAX_EVIDENCE22, AUTHORIZATION_RISK_EVIDENCE, MASS_ASSIGNMENT_EVIDENCE, OWNERSHIP_SCOPE_EVIDENCE, STATE_TRANSITION_EVIDENCE, AI_SIGNAL_MAP, readPerRule, parseAiReviewReport, evidenceOf2, sortEvidence2, scopeClauseOf, provenanceOf, skipReasonOf, anchorResolves, anchorOf, unresolvableCitationClause, citationGateClause, citationTargetNoun, miscitationBreakdown, anchorAccepts, foldAiSignals, IMPORT_LINE_RE, isImportOrPackageLine, CSRF_SPEC, CORS_SPEC, HEADERS_SPEC, STACKTRACE_SPEC, MESSAGE_SPEC, COOKIE_SPEC, SESSION_FIXATION_SPEC, SESSION_TIMEOUT_SPEC, AUTH_CACHE_SPEC, lineOf4, SECURITY_CONFIG_RE, CSRF_DISABLE_RE, CORS_WILDCARD_RE, CROSS_ORIGIN_BARE_RE, ALLOW_CREDENTIALS_RE, CORS_EXPLICIT_ORIGIN_RE, CORS_ANY_RE, HEADERS_DISABLE_RES, HEADERS_CONFIGURED_RE, CSP_CONFIGURED_RE, STACKTRACE_EXPOSE_RE, STACKTRACE_NEVER_RE, MESSAGE_EXPOSE_RE, MESSAGE_NEVER_RE, COOKIE_CONTEXT_RE, COOKIE_INSECURE_CHECKS, COOKIE_HARDENED_RE, SESSION_FIXATION_DISABLED_RE, CACHE_CONTROL_DISABLE_RE, CACHE_CONTROL_CONFIGURED_RE, SESSION_TIMEOUT_PATH_RE, SESSION_BLOCK_HEADER_RE, SESSION_TIMEOUT_LEAF_RE, YAML_INDENT_RE, control, configEvidence, firstMatch, firstMatchAny, scanCsrf, CORS_ORIGINS_YAML_RE, CORS_CREDENTIALS_YAML_RE, isWildcardOrigins, corsConfigRank, corsOriginHits, scanCors, scanSecurityHeaders, NON_PROD_PROFILE_RE, scanStacktraceExposure, scanErrorMessageExposure, scanCookieAttributes, scanSessionFixation, scanAuthCacheControl, findSessionTimeout, timeoutNeverExpires, timeoutToMinutes, JWT_VALIDITY_RE, NON_PROD_CONFIG_RE, findJwtValidities, hoursOf, judgeJwtValidity, judgeServletTimeout, scanSessionTimeout, scanSecurityConfig, WEAK_CRYPTO_SPEC, MAX_EVIDENCE32, lineOf5, classifyAlgorithm, GET_INSTANCE_RE, COMMONS_DIGEST_RE, GUAVA_HASHING_RE, SECRET_KEY_SPEC_RE, SHORTHAND_ALGO, SECURITY_DIGEST_PURPOSE_RE, NON_SECURITY_DIGEST_PURPOSE_RE, isNonSecurityDigestUse, collectWeakHits, STRONG_CRYPTO_RE, STRONG_CRYPTO_RE_G, firstStrong, evidence, item, scanWeakCrypto, REGEX_PRECEDING_KEYWORDS, isIdentChar, regexAllowedAt, maskJsComments, maskedCorpusCache2, maskJsFiles, FRONTEND_EXT_RE, VENDOR_DIR_RE, ANGULAR_LIBRARY_SRC_RE, GENERATED_NAME_RE, JQUERY_PLUGIN_RE, KNOWN_LIBRARY_RE, BANNER_RE, MINIFIED_AVG_LINE, isThirdPartyAsset, BROWSER_STORAGE_SPEC, MAX_EVIDENCE4, lineOf6, HIGH_SENSITIVITY_RE, TOKEN_FAMILY_RE, classifyStorageKey, VALUE_TOKEN_FAMILY_RE, classifyStorageValue, keyToken, SET_ITEM_RE, BRACKET_ASSIGN_RE, STORAGE_USE_RE, IDB_CONTEXT_RE, LOCALFORAGE_SET_RE, IDB_STORE_WRITE_RE, collectStorageHits, collectIndexedDbHits, finalizeHits, firstStorageUse, evidence2, item2, scanSensitiveBrowserStorage, AT_REST_SPEC, MAX_EVIDENCE5, lineOf7, PWD_GETTER, PWD_EQUALS_RECEIVER_RE, PWD_EQUALS_ARG_RE, collectPasswordComparisonHits, SENSITIVE_FIELD_NAMES, FIELD_DECL_RE, FIELD_PROTECTED_RE, precedingBlock2, collectPlaintextFieldHits, finalizeHits2, PROTECTION_RE, firstProtection, AT_REST_SURFACE_RE, evidence3, item3, scanSensitiveDataAtRest, PADDING_ORACLE_SPEC, MAX_EVIDENCE6, lineOf8, GET_INSTANCE_RE2, collectCbcHits, BAD_PADDING_CATCH_RE, collectBadPaddingHits, finalizeHits3, AEAD_RE, firstAead, CIPHER_SURFACE_RE, evidence4, item4, scanPaddingOracle, LOGGING_SPEC, MAX_EVIDENCE7, lineOf9, JAVA_LOG_CALL_RE, JAVA_CONSOLE_CALL_RE, JS_CONSOLE_CALL_RE, LOG_SURFACE_RE, stripStringLiterals, PII_RE, findSensitiveToken, IDENTIFIER_RE, VALUE_METHOD_RE, callsPropertyAccessor, TOKEN_COUNT_PREFIXES, FLAG_PREFIXES, MASK_PREFIXES, SECRET_SEGMENTS, SECRET_SEGMENT_PAIRS, SECRET_SUBSTRING_RE, PROTECTED_SEGMENTS, segmentsOf, isSecretIdentifier, stripNonValueExpressions, collectSensitiveContainers, findSensitiveArgument, findSensitiveOutput, firstLogSurface, evidence5, item5, scanSensitiveLogging, CHECKLIST_ID, CONTROL_ID, TITLE, CWE, MAX_EVIDENCE8, ADMIN_PATH_RE, ADMIN_CONTROLLER_RE, isAdminEndpoint, ADMIN_ROLE_RE, ROLE_CAPABLE_AUTHZ, ROLE_ANNOTATION_RE, SEC_CONFIG_HINT_RE, MATCHER_RE, ACCESS_AFTER_RE, ANY_REQUEST_RE, offsetOfLine, readBalanced2, stringLiterals, antMatches, hasAdminRoleAnnotation, classHeaderOf, memberWindow, annotationStance, accessKind, collectFilterConfig, filterStanceFor, combineProtection, publicNote, item6, auditAdminSurface, CLOUD_ACL_SPEC, MAX_EVIDENCE9, lineOf10, PUBLIC_ACL_PATTERNS, finalizeHits4, collectCannedAclHits, EFFECT_ALLOW_RE, WILDCARD_PRINCIPAL_RE, S3_ACTION_RE, enclosingObject, collectBucketPolicyHits, evidence6, item7, scanCloudStorageAcl, ACTUATOR_SPEC, MAX_EVIDENCE10, CONFIG_FILE_RE2, SENSITIVE_ACTUATOR_ENDPOINTS, lineOf11, indentOf2, isBlankOrComment, splitEndpoints, classifyExposure, exposureNote, H2_NOTE, findChildKey, collectListItems, collectExposureHits, collectH2Hits, finalizeHits5, evidence7, item8, scanActuatorExposure, BACKUP_FILE_SPEC, BACKUP_FILE_GLOBS, BACKUP_FILE_RE, SENSITIVE_BASE_RE, MAX_EVIDENCE11, stripBackupSuffix, classify2, evidence8, scanBackupFiles, CROSSDOMAIN_SPEC, CROSSDOMAIN_GLOBS, MAX_EVIDENCE12, lineOf12, PERMISSIVE_PATTERNS, collectHits, evidence9, scanCrossDomainPolicy, CLIENT_INFO_SPEC, ANGULAR_CONFIG_GLOBS, MAX_EVIDENCE13, lineOf13, asRecord, sourceMapEnabled, buildConfigurations, scanConfigFile, evidence10, item9, scanClientInfoLeak, SENSITIVE_FILE_SPEC, SENSITIVE_FILE_GLOBS, SENSITIVE_FILE_RE, PEM_TEXT_RE, PRIVATE_KEY_HEADER_RE, MAX_EVIDENCE14, classify22, evidence11, scanSensitiveFiles, INSECURE_TRANSPORT_SPEC, ENVIRONMENT_FILE_RE, MAX_EVIDENCE15, lineOf14, extractStringLiterals, HTTP_URL_RE, HTTPS_PRESENCE_RE, isExcludedHost, TEMPLATE_FILE_RE, scanInsecureFormSubmission, isTestPath, scanExternalCleartextLinks, JAVA_FILE_RE2, CLEARTEXT_JAVA_CLIENT_RE, scanJavaCleartextClients, scanInsecureTransport, WEBSOCKET_SPEC, MAX_EVIDENCE16, WS_URL_RE, WSS_PRESENCE_RE, scanWebSocketSecurity, authFillKey, createStubAuthFillResolver, buildAuthFillMap, ALG_TO_HASH, SIGNING_KEY_LINE, ENV_PLACEHOLDER, lineOf15, cleanValue, discoverJwtSigningKeys, b64url, b64urlStr, signingKeyBytes, mintJwt, DEFAULT_JHIPSTER_CLAIMS, RECIPE_NOTE, DECODE_ONLY_NOTE, jarKeysToSigningKeys, sha256Hex, buildRuntimeAuthRecipe, mintTokenFromRecipe, DEFAULT_TTL_SECONDS, commandsFor, credentialFor, runtimeAuthSeedDeviation, runtimeAuthSeedDecodeOnlyDeviation, planFor, buildRuntimeAuthSeedPlan, DEFAULT_TIMEOUT_MS, CRLF, encodeResp, identify, readReply, applyRuntimeAuthSeed, describeShape, resolveRuntimeAuthHypothesis, THREW, createStubRuntimeAuthHypothesisResolver, dataSeedKey, describeShape2, THREW2, resolveRuntimeDataSeedHypothesis, createStubRuntimeDataSeedResolver, buildDataSeedPlan, buildApiCreateSeedPlan, dataSeedEndpointSummaries, IDEMPOTENT_INSERT, BACKSLASH_IS_ESCAPE, escapeSqlString, sqlLiteral, assertIdentifier, renderDataSeedSql, SEED_AUDIT_SENTINEL, AUDIT_FIELD_RE, CLASS_DECL_RE2, TABLE_RE, EXTENDS_RE, NULLABLE_FALSE_RE, LENGTH_RE, stripJavaComments, group, detectSeedAuditColumns, applySeedAuditColumns, seedAuditAddedColumns, OBJECT_SEED_BASELINE_KEY, OBJECT_SEED_BASELINE_CONTENT_BASE64, PENTEST_CANARY_BUCKET, MAX_DERIVED_TARGETS, MAX_DERIVED_EVIDENCE, CONFIG_PATH_RE, BUCKET_KEY_RE, LINE_RE, PLACEHOLDER_RE2, ENC_PREFIX_RE, BOOLEAN_VALUE_RE, HAS_LOWERCASE_RE, canonicalKey, cleanValue2, resolveValue, referencesToken, deriveObjectStoreSeedTargets, renderObjectStoreSeedTsv, REACHABILITY_MANIFEST_SCHEMA_VERSION, MANIFEST_NOTE, SCALAR_JAVA_TYPES, baseTypeName, seedForParam, METHOD_INTENT, buildHint, buildReachabilityManifest, norm, dirOf, baseName, isMavenPom, isGradleBuild, stripXmlComments, isAncestorDir, normModulePath, selectRunnableModule, PACKAGE_DECL, BOOT_CLASS, posix3, detectSpringBootClass, EOCD_SIGNATURE, CENTRAL_SIGNATURE, EOCD_SEARCH_WINDOW, MAX_COMPRESSION_RATIO, MAX_UNCOMPRESSED_BYTES, MAX_ENTRIES, fail, isUnsafeName, readArchive, readArchiveEntryText, SOURCE_EXTENSIONS, extensionOf, baseNameOf, XML_COMMENT_RE3, isAggregatorPom, declaresParentPath, declaresSystemPaths, resolveAgainst, isSafeManifestPath, isSafeBuildTarget, preflightArchive, GRAPH_SKIP_DIRS, toPosix2, isFile, isDirectory, isWithin, resolvesWithin, normalizeModulePath, readText, hasApplicationEntrySource, walkFor, XML_COMMENT_RE4, xmlValue, withoutXmlBlocks, parseMavenModule, nearestAncestorFile, resolveMaven, stripGradleComments, quotedValues, parseGradleSettings, gradleProjectDependencies, conventionalProjectDir, resolveGradle, resolveBuildPackage, discoverBuildPackageEntries, SKIP_DIRS, DEFAULT_PACKAGE_EXCLUDES, SECRET_FILE_EXACT, SECRET_EXTENSIONS, isSecretOrIgnoredFile, MAX_FILE_BYTES, MAX_PARENT_DEPTH, DEFAULT_PACKAGE_POLICY, toPosix22, isFile2, isWithin2, resolvesWithin2, packageRootFor, toRelativeName, globRegexCache, globToRegExp, considerFile, walk, fingerprintEntryData, fingerprintEntries, XML_COMMENT_RE5, RELATIVE_PATH_RE, SYSTEM_PATH_RE2, PARENT_BLOCK_RE, EMPTY_RELATIVE_PATH_RE, readPom, localNpmTarballs, expandBasedir, planServicePackage, CRC_TABLE, crc32, writePackageZip, SIDECAR_IMAGES, HARNESS_PLAN_SCHEMA_VERSION, isConfigFile3, isBuildFile2, stripComments, SERVICE_DEPS, detectDatabaseDependency, detectServiceDependencies, detectHarnessDependencies, AUTO_CONFIGURED_LISTENER_FACTORY, KAFKA_LISTENER_ARGS_RE, LISTENER_PIN_RE, LISTENER_FACTORY_RE, SELF_OFF_FACTORY_BEAN_RE, SET_AUTO_STARTUP_FALSE_RE, classifyKafkaBootPath, buildHarnessPlan, normalizedPath, lineOf16, maskComments, sourceAt, addEvidence, readBundleIdentity, readPortalRelease, readSourceProduct, readToolchain, databaseVendorOf, readDatabase, isPortalConfigFile, normalizeApplicationBase, readApplicationBase, readSearch, detectLiferayRuntimeProfile, applyKafkaBrokerCoherence, RUNTIME_PLAN_SCHEMA_VERSION, PLAN_NOTE, describeSidecar, buildSteps, buildRuntimeBringUpPlan, RUNTIME_OVERLAY_FILE, RUNTIME_COMPOSE_FILE, RUNTIME_GUIDE_FILE, RUNTIME_BOOT_ENV_FILE, RUNTIME_VAULT_COMPATIBILITY_FILE, SIDECAR_IMAGE, REDIS_CLUSTER_COMMAND, renderNestedYaml, renderOverlay, renderVaultCompatibility, publishLine, renderCompose, renderGuide, renderBootEnv, generateRuntimeArtifacts, SUBMISSION_REQUIREMENTS_SCHEMA_VERSION, MAX_EVIDENCE17, NOTE2, capEvidence, totalSuffix, blockerEvidence, groupBy, packagingRequirements, secretRequirements, POLICY_KINDS, policyRequirements, infrastructureRequirements, authRequirements, seedRequirements, TIER_ORDER, buildSubmissionRequirements, renderSubmissionRequirements, REJECT_SIDECAR, applyRuntimeInput, DESER_SPEC, MAX_EVIDENCE18, lineOf17, UNSAFE_PATTERNS, collectHits2, SAFE_VALIDATOR_RE, firstSafeValidator, evidence12, item10, scanUnsafeDeserialization, WEAK_RANDOM_SPEC, MAX_EVIDENCE19, lineOf18, WEAK_RNG_PATTERNS, SECURITY_ID_RE, statementAround, COOKIE_SINK_MAX_HOPS, namesCarrying, reachesCookie, collectHits3, SECURE_RANDOM_RE, firstSecureRandom, evidence13, item11, scanWeakSecureRandom, POSTMESSAGE_SPEC, MAX_EVIDENCE20, lineOf19, WINDOW_LISTENER_PATTERNS, ORIGIN_RE, isFrontend, listenersIn, evidence14, item12, scanPostMessageOrigin, MAX_EVIDENCE21, MAX_PER_KIND, lineOf20, escapeRe, isScannableFrontendPath, GUARD_FN_TYPES, GUARD_CLASS_IFACES, FN_GUARD_TYPED_RE, CLASS_GUARD_RE, FN_GUARD_PARAM_RE, VUE_ROUTE_GUARD_RE, VUE_INTERCEPTOR_RE, FN_INTERCEPTOR_RE, INTERCEPTOR_BINDING_RE, CLASS_INTERCEPTOR_RE, INTERCEPT_METHOD_RE, INTERCEPTOR_TOKEN_RE, URL_CHECK_RES, DOM_SANITIZER_CALL_RE, SANITIZER_HELPER_DEF_RE, BYPASS_TRUST_RE, KIND_ORDER, KIND_LABELS, scanClientGuards, renderClientGuards, INDEX_HEADER_SPEC, MAX_EVIDENCE222, lineOf21, isIndexHtml, isNginxConf, META_HTTP_EQUIV_RE, ADD_HEADER_RE, extractHeaders, hasFrameProtection, evidence15, item13, scanIndexHeaders, asRecord2, asCount, parseClientArtifacts, CLIENT_COOKIE_SPEC, MAX_EVIDENCE23, lineOf22, isFrontend2, HIGH_SENSITIVITY_RE2, TOKEN_FAMILY_RE2, SECURE_RE, SAMESITE_RE, COOKIE_WRITE_RE, COOKIE_USE_RE, classifyCookieValue, collectCookieHits, evidenceOf3, resultItem, scanClientCookie, TS_LANGS, MOUNT_VUE3, MOUNT_VUE2, TS_EXT_CANDIDATES, UNRESOLVED_PATH, unwrap, TS_LANGS2, MOUNT_ROOT, MOUNT_ANY, TS_EXT_CANDIDATES2, MAX_CHAIN_DEPTH, MAX_REEXPORT_DEPTH, UNRESOLVED_PATH2, isVueSfc, inferVueSrcBase, resolveComponentRoutesByFramework, XXE_SPEC, MAX_EVIDENCE24, lineOf23, XML_PARSER_PATTERNS, HARDENING_RE, parsersIn, evidence16, item14, scanXxe, WEAK_TLS_SPEC, MAX_EVIDENCE25, lineOf24, BYPASS_PATTERNS, TLS_SURFACE_RE, bypassesIn, evidence17, item15, scanWeakTls, DOCKERFILE_SPEC, DOCKERFILE_RE, DOCKERFILE_GLOBS, isLoopback, UNREFERENCABLE_BASE_IMAGE, baseImageReference, FLOATING_TAG_RE, unpinnedBaseImageReason, auditDockerfileDependencyConfusion, auditDockerfileContent, scanDockerfile, HOST_HEADER_SPEC, MAX_EVIDENCE26, lineOf26, HOST_PATTERNS, REQUEST_TYPE_RE, REQUEST_NAME_RE, receiverOf, isRequestReceiver, collectHits5, evidence19, item17, scanHostHeader, CHECKLIST_ID2, CONTROL_ID2, TITLE2, evidenceOf4, item18, VALUE_ANNOTATION_RE, FIELD_AFTER_VALUE_RE, LIFETIME_TOKEN_RE, tokenize, hasOtpToken, TIME_UNIT_RE, NAME_UNIT_HINTS, TO_SECONDS, lineOf27, isOtpLifetimeName, configRank, inconclusive, scanOtpPolicy, PASSWORD_POLICY_SPEC, MAX_EVIDENCE27, lineOf28, precedingBlock3, PASSWORD_NAME_RE, NOT_A_SECRET_RE, isPasswordName, STRING_DECL_RE, SIZE_MIN_RE, ANNOTATION_IN_BLOCK_RE, LENGTH_CHECK_RE, CONSTRAINT_VALIDATOR_RE, ANNOTATION_DECL_RE, STRING_LITERAL_RE, QUANT_MIN_RE, POLICY_SURFACE_PATTERNS, ACCOUNT_SURFACE_RE, baseName2, isAccountSurface, collectCustomConstraintMins, sitesIn, firstUsageIndex, pointersIn, dedupeSort, evidenceOf5, item19, policyNote, scanPasswordPolicy, SPEC, MAX_EVIDENCE28, AUTH_SURFACE_RE, ACCOUNT_EXISTENCE_RE, PASSWORD_ONLY_RE, COMBINED_RE, STRING_LITERAL_RE2, lineOf29, scanAuthFile, dedupeSort2, evidenceOf6, item20, scanAccountEnumeration, SPEC2, MAX_EVIDENCE29, LOGOUT_ENDPOINT_RE, LOGOUT_MENTION_RE, INVALIDATION_PATTERNS, lineOf30, invalidationHits, dedupeSort3, evidenceOf7, item21, scanLogoutInvalidation, SPEC3, MAX_EVIDENCE30, OTP_ISSUE_RE, OTP_MENTION_RE, THROTTLE_PATTERNS, lineOf31, firstMatch2, dedupeSort4, evidenceOf8, item22, scanOtpThrottle, MAX_EVIDENCE31, REST_TEMPLATE_CALL_RE, NEW_URL_RE, URL_TAIL_RE, URI_TAIL_RE, OPEN_CONNECTION_RE, SIGNALS, lineOf32, scanSsrfEndpointHints, SPEC4, MAX_EVIDENCE322, HARD_MUTATION_HANDLER_RE, DIRECT_WRITE_RE, DELEGATION_WRITE_RE, TXN_RE, READ_ONLY_TXN_RE, offsetOfLine2, insideLiteral, extractHandlerBody, braceMatchedBlock, signatureRegion, confirmWrite, dedupeSort5, evidenceOf9, item23, scanStateChangingGet, KEY_MANAGEMENT_SPEC, JAVA_FILE_RE3, CONFIG_FILE_RE3, EMPTY_SECRET_KEY_SPEC_RE, EMPTY_KEY_VAR_RE, scanEmptyEncryptionKeys, MFA_AUTH_SPEC, JAVA_FILE_RE4, CONFIG_FILE_RE4, AUTH_SURFACE_RE2, MFA_INDICATORS_RE, MFA_VERIFY_ENDPOINT_RE, SSO_INDICATORS_RE, isTestPath2, isNonSiteLine, scanMfaAuth, PASSWORD_EXPIRY_SPEC, JAVA_FILE_RE5, CONFIG_FILE_RE5, USER_DETAILS_RE, HARDCODED_CREDENTIALS_NON_EXPIRED_RE, ACTIVE_EXPIRY_CHECK_RE, PASSWORD_AGE_SOURCE_RE, ADVISORY_EXPIRY_FLAG_RE, EXPIRY_ENFORCEMENT_RE, forcesPasswordResetViaUpdate, ENFORCEMENT_POINT_RE, LIFERAY_EXPIREABLE_RE, LIFERAY_MAX_AGE_RE, isTestPath3, scanPasswordExpiryPolicy, SETTER_RE, HTTP_STATUS_RECEIVER, HTTP_STATUS_ARG, CONSTANT_ARG, ENUM_ARG, LOADS_EXISTING, ENTITY_DECL_RE, PRINCIPAL_RE, STATE_NOUN, escapeRegExp2, stateReadBefore, hasSameReceiverStateReadBefore, hasCopySourceStateReadBefore, CONSTRUCTED_AS_RE, loadedTypesIn, receiverOriginOf, lineOf33, methodsOf, isJava3, isControllerPath, scanStateTransitionSites, RULE_TITLES, EXTRA_FINDING_RULE_IDS, EXTRA_AI_RULE_IDS, foldExtraRuleFindings, MAX_EVIDENCE33, SEVERITY_ORDER2, SCORE_FLOOR, asRecord3, asString, stripMountPrefix, severityFromTags, field, parseScaReport, effectiveScore, passesThreshold, distinctPairs, bySeverityThenName, evidenceOf10, countBySeverity, provenance, foldScaReport, BRUTE_FORCE_SPEC, MAX_EVIDENCE34, lineOf34, AUTH_CONTEXT_RE, LIMIT_NAME_RE, LOGIN_CONTEXT_RE, LOGIN_WINDOW_LINES, nearLoginContext, MAX_VALUE_ASSIGN_RE, MECHANISM_PATTERNS, RATE_LIMIT_PATTERNS, ISSUANCE_NAME_RE, failOpenHits, patternHits, dedupeSort6, evidenceOf11, item24, scanBruteForceProtection, keyOf, applyRouteConfigOverrides, CLIENT_CLASSES, MANUAL_DELIVERY_SOURCES, ENC, ROUTE_BASE_PREFIX, BENIGN_PARAM, CLIENT_ORACLE, deliveryFor, clientDeliveryKindFor, jsStr, normFile, camel, urlChunk, buildGoto, manualComment, renderMethod, renderSpec, dedupeRoutes, generateClientVerificationSuite, buildClientVerificationManifest, WSTG, TC16, MANUAL_CHECKLIST_ITEMS, NEEDS_MANUAL_LIMITATION, buildManualChecklistItems, handoffFileName, MAX_SURFACE_SAMPLE, surfaceContext, INFRA_CONTEXT, buildHandoffPackets, literal, renderIdorVerificationClass, OBJECT_STORE_PROBE_SINKS, GENERATED_PACKAGE, SERVER_CLASSES, BOOLEAN_BLIND_CLASSES, BOOLEAN_BLIND_PAIRS, CLASS_CANARY, COMMAND_CANARY, VALIDATION_REJECT_CLASSES2, CANON_HELPER, CLASS_ORACLE, javaStr, SSRF_BASELINE_WORKBOOK_ENTRIES, SSRF_BASELINE_WORKBOOK_HELPER, BENIGN_SEED, BUCKET_BENIGN_SEED, benignSeedFor, companionBenignSeed, renderAuthSuffix, RUNTIME_AUTH_SUFFIX, renderRuntimeAuthHelper, pascal, camel2, verificationTestClassName, identChunk, fillPath, companionCalls, ssrfPayloadPath, requestExpr, isVerifiable, SERVER_SKIP_REASON, renderBooleanBlind, renderCanary, isObjectStoreProbeSink, OBJECT_STORE_REJECT_CATCH_LINES, wrapObjectStoreAttackGuard, wrapObjectStoreEvidenceAttackGuard, resolveAuth, renderMethod2, renderEvidenceMethod, renderEvidenceHelpers, renderTestcontainersDbTierFields, renderExternalDbTierFields, javaSeedValue, renderSeedMethod, renderApiCreateSeedMethod, renderClass, toManifestEntries, generateVerificationSuite, buildVerificationManifest, decodeEntities, attr, stripCdata, childMessage, classify3, parseJUnitXml, simpleClassName, joinKey, DEFAULT_TRUST_TIER, resolveFromEnvelope, ingestVerification, PROVENANCE_DETAIL, applyProvenanceDowngrades, asRecord4, asString2, asBool, asInt, asHttpStatus, SIGNALS2, ATTESTATION_METHODS, parseProvenance, parseOracle, parseEffectBoundary, parseDefenseControl, parseBaseline, parseIdor, parseAttack, parseEvidenceEnvelope, asRecord5, asArray, asString3, asNumber, basename4, specOutcome, walkSuite, parsePlaywrightReport, joinKey2, ingestClientVerification, compareChecklistId, correlateVerification, EMPTY_CORRELATION, notTestedItem, groupDastByChecklist, dastAxisFor, groupClientByChecklist, clientAxisFor, correlateAssessment, ZAP_SCAN_RULES, DEFAULT_DAST_OPTIONS, DAST_PLAN_FILE, DAST_MANIFEST_FILE, DAST_PROBE_SCRIPT_FILE, DAST_API_SEED_SCRIPT_FILE, API_SEED_VAR_PREFIX, PROBE_VICTIM_BUCKET_REF, PROBE_CANARY_OBJECT_REF, PROBE_INJECTION_KINDS, isScannable, skipReason, yamlStr, baselinePath, normMethod2, toTarget, normalizeSpaRoutePath, buildSpaDastTargets, SEED_VALUE, SSRF_SEED_VALUE, seedValue, pathInjectionSeed, computeApiSeedVars, allParams, queryString, requestPath, renderRequest, renderPlanYaml, cmpChecklistId, generateDastPlan, buildProbeSpec, buildProbe, buildDastManifest, cmpStr3, compareScenarioRef, compareExecutionTarget, shq, PROBE_SCRIPT_PROLOGUE, PROBE_SCRIPT_EPILOGUE, renderDastProbeScript, shLiteral, API_SEED_PY, renderDastApiSeedScript, HTTP_EVIDENCE_MAX_HEADER_BYTES, HTTP_EVIDENCE_MAX_BODY_BYTES, REDACTION_WINDOW_BYTES, HTTP_REDACTED, SENSITIVE_HEADER_RE, NEVER_SENSITIVE_HEADER_RE, SCHEMED_HEADER_RE, COOKIE_HEADER_RE, COOKIE_ATTRIBUTE_RE, JSON_SECRET_MEMBER_RE, HEADER_LINE_RE, TOKEN_RUN_RE, redactJwtRun, redactJwts, URL_USERINFO_RE, redactInline, redactHeaderValue, redactHeaderBlock, redactBody, looksBinary, cutUtf8, boundedPart, sanitizeHttpMessage, httpStatusOf, RISK_BY_CODE, asString4, firstLine, httpEvidenceOf, parseZapReport, firstLineOf, usableTimestamp, latestMessageInstant, parseZapMessages, pathOf, stripTrailingSlash, pathMatches, methodMatches, injectionMatches, routeMatchesOrUnknown, alertMatchesTarget, queryHasParam, messageMatchesSurface, computeDastCoverage, detailOf, DAST_HTTP_EVIDENCE_MAX_RESOLUTIONS, carriesHttpText, evidenceOf12, ingestDast, SEMGREP_CWE_MAP, asRecord6, asString5, asNonNegativeInteger, compareText3, compareCwe, stringsFrom, cwesFromProperties, messageText, compareFinding, findingKey, ruleMetadata, metadataForResult, locationsOf, findingsFromRun, parseSemgrepSarif, compareChecklistId2, unmatchedKey, ingestSemgrep, CHECKLIST_ID3, CONTROL_ID3, MAX_EVIDENCE35, OWNER_SCOPED_FINDER, REPOSITORY_DECL, lineOf35, fieldNameFor, collectOwnerScopedRepositories, LIFERAY_LOAD_BY_ID_RE, OBJECT_PERMISSION_RE, methodBodyAt, liferayIdorHits, scanIdor, children, walk2, walkExecution, field2, simpleType, isReference, line, indexTypes, resolveType, propertyOf, annotations, annotationName, annotationValues, beanProperties, customAccessor, mappedOrigins, controlSignals, conventionSignals, trace, rootOrigins, scenarioFor, MAX_IDOR_AST_FILES, MAX_IDOR_AST_BYTES, scanIdorAuthorization, CHECKLIST_ID4, CONTROL_ID4, MAX_EVIDENCE36, CONTROLLER, MULTIPART_PARAM, JAXRS_IMPORT2, JAXRS_UPLOAD_PARAM, DENYLIST, ALLOWLIST, CONTENT_SNIFF, ACTIVE_CONTENT_EXTENSION, ACTIVE_CONTENT_DEFENCE, ALLOWLIST_WINDOW, lineOf36, collectUploadHandlers, firstMatch3, findActiveContentAllowlist, scanUploadValidation, CHECKLIST_ID5, CONTROL_ID5, MAX_EVIDENCE37, SECRET_KEY_LINE, SELF_IDENTIFYING_KEYS, JWT_CONTEXT_RE, PARENT_KEY_LINE, ancestorPath, ENV_PLACEHOLDER2, NON_PROD_PROFILE, CONFIG_FILE, lineOf37, byFileLine2, collectSecrets, scanJwtSecret, PLATFORM_EOL_SPEC, MAX_EVIDENCE38, SPRING_BOOT_OSS_EOL, LIFERAY_KERNEL_MAJOR, stripComments2, lineOf38, springBootHits, liferayHits, BUILD_FILE_RE, scanPlatformEol, SPEC5, MAX_EVIDENCE39, AUTH_TOKEN_REF_RE, TOKEN_COMPARE_RE, CHECK_CSRF_RE, DISABLED_PROP_RE, lineOf39, enclosingCondition, isRequestValue, scanLiferayCsrf, DEVTOOLS_SPEC, BUILD_FILE_RE2, findDevToolsDeclarations, scanDevTools, PASSWORD_AUTOCOMPLETE_SPEC, HTML_TEMPLATE_FILE_RE, SECURE_AUTOCOMPLETE_VALUES, isTestPath4, auditPasswordAutocompleteContent, scanPasswordAutocomplete, SYSTEM_INFO_LEAK_SPEC, JAVA_FILE_RE6, isTestPath5, PRINT_STACK_TRACE_RE, SYSTEM_PRINT_EXCEPTION_RE, auditJavaErrorDisclosure, scanSystemInfoLeak, PLAYWRIGHT_VERSION_PIN, ESBUILD_VERSION_PIN, renderClientPackageJson, renderClientPlaywrightConfig, renderClientTsconfig, renderClientRunnablePackage, renderComponentBuildScript, renderVueComponentBuildScript, normFile2, posixDir, posixJoin, posixNormalize, candidateFilePaths, stripComments3, isAllowedFrameworkImport, extractImportSpecifiers, extractCompanionFiles, resolveInRepoPath, collectComponentClosure, CLIENT_CLASSES2, COMPONENT_NEEDS_BUILD_MARKER, COMPONENT_VUE_NOT_MOUNTED_MARKER, normFile3, jsStr2, camel3, fileChunk, isLikelyInjectable, analyzeMount, renderHarness, renderVueHarness, tieredAssert, renderMethod3, renderSpec2, generateComponentVerificationSuite, BINDING, HTML_COMMENT, inventoryVueTemplateSinks, HTTP_VERBS, lineOf40, readBalanced3, getFirstArg, getSecondArg, normalizeTemplateUrl, parseUrlArg, scanFile, extractClientApiCalls, normalizeSegment, normalizePath5, determineConfidence, methodsMatch, matchClientToBackendEndpoints, UPLOAD_CLIENT_SPEC, MAX_EVIDENCE40, lineOf41, isFrontend3, UPLOAD_CONTEXT_RE, FILE_INPUT_RE, ACCEPT_ATTR_RE, CLIENT_CHECK_PATTERNS, SHARED_CONST_SIGNAL_RE, HTTP_UPLOAD_SURFACE_RE, maskHtmlComments, clientChecksIn, fileInputsIn, evidence20, item25, dedupAndCap, scanUploadClientCheck, LOGOUT_CLEAR_SPEC, MAX_EVIDENCE41, lineOf42, isFrontend4, CALL_LABEL, LOGOUT_ENTRY_PATTERNS, CLEAR_STATE_RE, fileClearsState, LOGOUT_CALL_RE, receiverType, clearingLogoutClasses, callsDelegateClear, logoutEntriesIn, evidence21, item26, dedupAndCap2, scanLogoutClear, NUMERIC_BOUND_SPEC, MAX_EVIDENCE42, lineOf43, isFrontend5, isTsLike2, MONEY_NAME_RE, isMoneyName, MIN_BOUND_RE, PATTERN_RE, CONTROL_DECL_RE, moneyControlsIn, moneyInputsIn, evidence22, item27, scanNumericBound;
|
|
11740
|
+
var createCompositeParser, SUPPORTED, createTextParser, requireFromHere, grammarCache, parserInitialized, initParser, resolveGrammarPath, loadGrammar, LANGUAGE_TO_GRAMMAR, SUPPORTED2, createTreeSitterParser, asTreeSitterTree, OPEN_SCRIPT_RE, CLOSE_SCRIPT_RE, LANG_TS_RE, SRC_ATTR_RE, OPEN_TEMPLATE_RE, CLOSE_TEMPLATE_RE, blankOut, keepOnly, templateRange, projectVueSfc, isVueSfcPath, tsMorphPathOf, SUPPORTED3, scriptKindFor, createTsMorphParser, createParser, BASE_CONFIG_RE, PROFILE_CONFIG_RE, HARNESS_PORT, KEY_LINE_RE, yamlEntries, emptyKeys, isConfigYaml, profileRank, declaresDatasource, detectDatasourceProfileBlocker, detectProfileCompositionBlocker, detectServerPortBlocker, XML_COMMENT_RE, INCLUDE_RE, CREATE_TABLE_RE, ALTER_TARGET_RE, matchAllGroups, detectUnrunnableMigrationBlocker, detectPolicyBootBlockers, composeSuggested, BINDABLE_NAME_RE, YAML_KEY_RE, PROPS_KEY_RE, configValueOf, rawTokensOf, MARK, AUTHORITY_LIKE_RE, shapeInAuthority, nextOf, shapeInPath, shapeAt, parseConfigValue, renderTemplate, DIALECT_SPECS, JDBC_URL_PATTERNS, DRIVER_PATTERNS, isConfigFile, isBuildFile, dialectsMatching, resolveDialect, DDL_AUTO_CREATE_RE, FLYWAY_RE, LIQUIBASE_RE, resolveSchemaProvisioning, detectSchemaProvisioning, detectDbTier, DB_SIDECAR_PORT, DISPOSABLE_DB, dbSidecarEnv, buildDbSidecarSpec, maskJavaComments, maskedCorpusCache, maskJavaFiles, PROFILE_GATED_JAR_BEANS, JHIPSTER_PROFILE_CONSTANTS, isJava, CLASS_DECL_RE, PROFILE_ANNOTATION_RE, CONDITIONAL_ANNOTATION_RE, CONFIG_ANNOTATION_RE, readProfileAnnotation, declarationHead, braceMatch, lineAt, parsedClasses, simpleTypeName, parseParams, beanMethods, collectProducers, detectUngatedProfileDependencies, ungatedProfileDeviationText, STANDALONE_BOOT_PROFILE, ENTITY_SCHEMA_GAPS, PROVISIONED_SIDECARS, DEFAULT_PROVISIONED_SIDECARS, NOTE, isConfigFile2, leafKey, indentOf, fullPathFor, usesJpa, detectVaultTemplateCompatibility, KAFKA_BUILD_RE, KAFKA_CONFIG_RE, STREAM_BUILD_RE, STREAM_CONFIG_RE, declaresKafka, declaresStreamBinder, hasPinnedListenerAutoStartup, ENDPOINT_PROPERTY_RULES, ENDPOINT_VALUE_RE, CLUSTER_TOPOLOGY_RULES, literalDatabaseOf, resolveSchemaResolution, buildStandaloneBootProfile, runtimeEnvKeyFor, A_SENTINEL, ENC_SENTINEL, UNAVAILABLE_KAFKA_HOST, UNAVAILABLE_KAFKA_PORT, isBase64JwtSigningKeyPath, isEndpointShaped, isEndpointPropertyPath, hasToken, dummyFor, RELAXED_ENV, envKeyFor, buildSidecars, renderSidecar, identifyByName, PATH_KINDS, PATH_LEAF_ROLES, identifyByPath, roleFromShape, shapedDummy, unavailableKafkaValue, resolveSlot, resolvePlaceholder, encSentinelFor, SHAPE_PRECEDENCE, strongerShape, buildBootResolution, RUNTIME_ENV_MANIFEST_SCHEMA_VERSION, SENSITIVE_ENV_NAME, URL_USERINFO, SENSITIVE_QUERY_VALUE, INLINE_SENSITIVE_VALUE, JWT_VALUE, EFFECTIVE_VALUE_LIMIT, displayEnvValue, UPPER_ENV_RE, RUNTIME_HTTP_STUB_AUTHORITY, parseRuntimeEnvProposal, strategyForRule, SAFE_DISABLE_ENV_ALLOWLIST, isSafeDisableCandidate, proposalStrategyFitsEntry, proposalFor, synthesizeManifestEnv, CONFIG_FILE_RE, BUILD_CONFIG_FILE_RE, ENV_FILE_RE, JAVA_FILE_RE, KOTLIN_FILE_RE, PACKAGE_MANIFEST_PATH, PLACEHOLDER_RE, GET_ENV_RE, VALUE_RE, lineOf, propertyPathAt, declaredConfigPropertyNames, shapeFor, valueConsumerShape, dependencyFor, enumValuesForConsumer, compareText, runtimeEnvScenarioId, sameSourcePath, buildRuntimeEnvManifest, buildRuntimeEnvResolutionReport, buildRuntimeEnvEffectiveReport, countsFor, applyRuntimeEnvImpact, TS_LANGUAGES, EXTENSIONS, TS_SOURCE_EXTENSIONS_BY_RUNTIME_EXT, scriptKindFor2, normalizeRelativePath, candidatePaths, normalizeConfigPath, stripJsonComments, loadTsConfigResolver, matchPathPattern, applyPathTarget, resolveAliasModule, resolveModule, aliasIfDifferent, exportedSymbols, expressionRootName, addSymbol, compareText2, variableBindingNames, importEqualsSpecifier, extractSymbols, fingerprintFor, createTsAstDependencyGraphBuilder, isTsLike, debug, warn, tryLoad, trySave, createIncrementalAstGraphBuilder, SOURCES, SINKS, SANITIZERS, DEFAULT_TS_TAINT_TABLES, JAVA_SOURCES, JAVA_SINKS, JAVA_SANITIZERS, DEFAULT_JAVA_TAINT_TABLES, PROPAGATOR_RESULT_TAILS, PROPAGATOR_STATE_TAILS, SUBJECT_CTOR_TYPES, CALLBACK_TAINT, TAINT_UNION_BINOPS, EMPTY_SUMMARY, paramSentinel, PARAM_SENTINEL_RE, MAX_CROSS_FILE_DEPTH, JAVA_LINE_TERMINATORS, HOST_FIXING_PREFIX_RE, KNOWN_STRING_CONSTANTS, MAX_CONSTANT_DEPTH, TYPE_DECLARATION, CALLABLE, SIMPLE_ESCAPES, TYPE_DECL_NODES, indexCache, SCOPE_BOUNDARY, SCOPE_BOUNDARY2, TYPE_DECL, STRING_PASSTHROUGH, ARG_PASSTHROUGH, CONTAINER_ELEMENT, BUILDER_APPENDERS, COLLECTION_MUTATORS, RECEIVER_FOLD_MUTATORS, HOST_FIXED_MARK, STRING_BUILDER_TYPES, BUILDER_PREFIX_BREAKERS, PREFIX_DROPPING_PASSTHROUGH, CONDITIONAL_CONSTRUCT, INERT_URL_ACCESSOR_RE, EMPTY_SUMMARY2, paramSentinel2, PARAM_SENTINEL_RE2, MAX_CROSS_METHOD_DEPTH, SANITIZE_CALL, BYPASS_CALL, PREFIX_GATE, MAX_VALUE_HOPS, SOURCE_PATTERNS, MAPPING_ANNOTATIONS, PARAM_ANNOTATIONS, AUTHZ_ANNOTATIONS, VALIDATION_ANNOTATIONS, annotationScanner, TYPE_DECL2, MODIFIER, METHOD_NAME, LEADING_ANNOTATION, simpleName, lineOf2, readBalanced, annotationArgs, firstStringLiteral, readMappingPath, readMappingMethod, joinPaths, skipToDeclaration, isTypeDeclaration, splitParams, parseParam, readAuthAnnotations, ROLE_ANNOTATIONS, stripRolePrefix, readAuthRoles, precedingBlock, readClassContext, extractFromFile, JAXRS_VERBS, JAXRS_PARAM_ANNOTATIONS, JAXRS_IMPORT, parseJaxRsParam, readJaxRsPath, JAXRS_TYPE_DECL, readJaxRsType, IMPLEMENTS_DECL, readImplCandidate, escapeRegExp, findImplMethod, extractJaxRsEndpoints, extractHttpEndpoints, findEnclosingEndpoint, SINK_ATTACKS, AI_TRIAGE_ATTACK_ALIASES, SINK_SHAPE_VARIANTS, SOURCE_KIND, kindsFromSources, deriveAuthContext, resolveCompanionParams, resolveInjectionPoint, buildServerRequest, buildClientRequest, generateAttackScenario, UNASSESSED_CATALOG, BY_ID, buildUnassessedItems, INJECTION_LANGUAGES, TIER_A_INJECTION_ITEMS, CONFIRMED_LIMITATION, INCONCLUSIVE_LIMITATION, evidenceFrom, byFileLine, CHECKLIST_VERDICT_RANK, mergeEqualRank, dedupeByChecklistId, scenarioByFileLine, PENTEST_CHECKLIST_TOTAL, DECLARED_CHECKLIST_IDS, buildChecklistCoverage, buildCoverage, assembleAssessment, CONFIG_ENTRY_RE, SKIPPED_ENTRY_RE, XML_COMMENT_RE2, SYSTEM_PATH_RE, declaredSystemJarEntries, declaredSystemJarPaths, readCentralDirectory, readEntryBytes, readEntryText, languageFor, detectMissingSystemJars, readJarConfigFiles, readJarClassFiles, listJarClassNames, MIN_CONSTANT_LEN, MAX_CONSTANT_LEN, MAX_CONSTANTS_PER_CLASS, NOISE_CONSTANT_RE, parseClassConstants, constantRank, readJarClassConstants, collectDependencyClassConstants, collectDependencyClassNames, collectDependencyConfigFiles, JWT_CONTEXT_MARKER_RE, BASE64_SHAPE_RE, MIN_BASE64_KEY_CHARS, MAX_BASE64_KEY_CHARS, decodedByteLength, readJarJwtKeyCandidates, collectJwtKeyCandidates, JWT_FACADE_RE, JWT_DECODE_CALL_RE, JWT_VERIFY_MARKER_RE, readJarDecodeOnlyEvidence, collectDecodeOnlyEvidence, collectEagerKafkaStartupJars, EMPTY_DEPENDENCY_GUARDS, DENY_CLASS_RE, ASPECT_DESC, ADVICE_DESC_RE, POINTCUT_DESC, ACC_INTERFACE, ACC_ANNOTATION, MAX_HOPS, operandLength, Reader, parseClass, simpleName2, packageOf, scanClassFilesForGuards, collectDependencyGuardFacts, TEST_SOURCE_SET_RE, isTestSourcePath, STANDARD_GUARD_ANNOTATIONS, MAX_HOPS2, DENY_EXCEPTION, DENY_STATUS, DENY_SEND_ERROR, isJava2, lineOf3, maskStrings, ANNOTATION_NAME, annotationNames, parseClass2, RESPONSE_STATUS_TEST, isResponseStatusTranslation, firstDenyMatch, denyHitOf, methodKey, endpointGuardKey, sourceRootOf, sameModuleFirst, calleesOf, scanAuthorizationGuards, guardForEndpoint, MAX_EVIDENCE3, REVIEW_SIGNAL_MAP, asJsonRecord, readReviewFinding, parseReviewReport, reviewReportRuleIds, evidenceOf, sortEvidence, EXTERNAL_BYPASS_MARKER, isDecisiveFinding, foldReviewSignals, MAX_EVIDENCE22, AUTHORIZATION_RISK_EVIDENCE, MASS_ASSIGNMENT_EVIDENCE, OWNERSHIP_SCOPE_EVIDENCE, STATE_TRANSITION_EVIDENCE, AI_SIGNAL_MAP, readPerRule, parseAiReviewReport, evidenceOf2, sortEvidence2, scopeClauseOf, provenanceOf, skipReasonOf, anchorResolves, anchorOf, unresolvableCitationClause, citationGateClause, citationTargetNoun, miscitationBreakdown, anchorAccepts, foldAiSignals, IMPORT_LINE_RE, isImportOrPackageLine, CSRF_SPEC, CORS_SPEC, HEADERS_SPEC, STACKTRACE_SPEC, MESSAGE_SPEC, COOKIE_SPEC, SESSION_FIXATION_SPEC, SESSION_TIMEOUT_SPEC, AUTH_CACHE_SPEC, lineOf4, SECURITY_CONFIG_RE, CSRF_DISABLE_RE, CORS_WILDCARD_RE, CROSS_ORIGIN_BARE_RE, ALLOW_CREDENTIALS_RE, CORS_EXPLICIT_ORIGIN_RE, CORS_ANY_RE, HEADERS_DISABLE_RES, HEADERS_CONFIGURED_RE, CSP_CONFIGURED_RE, STACKTRACE_EXPOSE_RE, STACKTRACE_NEVER_RE, MESSAGE_EXPOSE_RE, MESSAGE_NEVER_RE, COOKIE_CONTEXT_RE, COOKIE_INSECURE_CHECKS, COOKIE_HARDENED_RE, SESSION_FIXATION_DISABLED_RE, CACHE_CONTROL_DISABLE_RE, CACHE_CONTROL_CONFIGURED_RE, SESSION_TIMEOUT_PATH_RE, SESSION_BLOCK_HEADER_RE, SESSION_TIMEOUT_LEAF_RE, YAML_INDENT_RE, control, configEvidence, firstMatch, firstMatchAny, scanCsrf, CORS_ORIGINS_YAML_RE, CORS_CREDENTIALS_YAML_RE, isWildcardOrigins, corsConfigRank, corsOriginHits, scanCors, scanSecurityHeaders, NON_PROD_PROFILE_RE, scanStacktraceExposure, scanErrorMessageExposure, scanCookieAttributes, scanSessionFixation, scanAuthCacheControl, findSessionTimeout, timeoutNeverExpires, timeoutToMinutes, JWT_VALIDITY_RE, NON_PROD_CONFIG_RE, findJwtValidities, hoursOf, judgeJwtValidity, judgeServletTimeout, scanSessionTimeout, scanSecurityConfig, WEAK_CRYPTO_SPEC, MAX_EVIDENCE32, lineOf5, classifyAlgorithm, GET_INSTANCE_RE, COMMONS_DIGEST_RE, GUAVA_HASHING_RE, SECRET_KEY_SPEC_RE, SHORTHAND_ALGO, SECURITY_DIGEST_PURPOSE_RE, NON_SECURITY_DIGEST_PURPOSE_RE, isNonSecurityDigestUse, collectWeakHits, STRONG_CRYPTO_RE, STRONG_CRYPTO_RE_G, firstStrong, evidence, item, scanWeakCrypto, REGEX_PRECEDING_KEYWORDS, isIdentChar, regexAllowedAt, maskJsComments, maskedCorpusCache2, maskJsFiles, FRONTEND_EXT_RE, VENDOR_DIR_RE, ANGULAR_LIBRARY_SRC_RE, GENERATED_NAME_RE, JQUERY_PLUGIN_RE, KNOWN_LIBRARY_RE, BANNER_RE, MINIFIED_AVG_LINE, isThirdPartyAsset, BROWSER_STORAGE_SPEC, MAX_EVIDENCE4, lineOf6, HIGH_SENSITIVITY_RE, TOKEN_FAMILY_RE, classifyStorageKey, VALUE_TOKEN_FAMILY_RE, classifyStorageValue, keyToken, SET_ITEM_RE, BRACKET_ASSIGN_RE, STORAGE_USE_RE, IDB_CONTEXT_RE, LOCALFORAGE_SET_RE, IDB_STORE_WRITE_RE, collectStorageHits, collectIndexedDbHits, finalizeHits, firstStorageUse, evidence2, item2, scanSensitiveBrowserStorage, AT_REST_SPEC, MAX_EVIDENCE5, lineOf7, PWD_GETTER, PWD_EQUALS_RECEIVER_RE, PWD_EQUALS_ARG_RE, collectPasswordComparisonHits, SENSITIVE_FIELD_NAMES, FIELD_DECL_RE, FIELD_PROTECTED_RE, precedingBlock2, collectPlaintextFieldHits, finalizeHits2, PROTECTION_RE, firstProtection, AT_REST_SURFACE_RE, evidence3, item3, scanSensitiveDataAtRest, PADDING_ORACLE_SPEC, MAX_EVIDENCE6, lineOf8, GET_INSTANCE_RE2, collectCbcHits, BAD_PADDING_CATCH_RE, collectBadPaddingHits, finalizeHits3, AEAD_RE, firstAead, CIPHER_SURFACE_RE, evidence4, item4, scanPaddingOracle, LOGGING_SPEC, MAX_EVIDENCE7, lineOf9, JAVA_LOG_CALL_RE, JAVA_CONSOLE_CALL_RE, JS_CONSOLE_CALL_RE, LOG_SURFACE_RE, stripStringLiterals, PII_RE, findSensitiveToken, IDENTIFIER_RE, VALUE_METHOD_RE, callsPropertyAccessor, TOKEN_COUNT_PREFIXES, FLAG_PREFIXES, MASK_PREFIXES, SECRET_SEGMENTS, SECRET_SEGMENT_PAIRS, SECRET_SUBSTRING_RE, PROTECTED_SEGMENTS, segmentsOf, isSecretIdentifier, stripNonValueExpressions, collectSensitiveContainers, findSensitiveArgument, findSensitiveOutput, firstLogSurface, evidence5, item5, scanSensitiveLogging, CHECKLIST_ID, CONTROL_ID, TITLE, CWE, MAX_EVIDENCE8, ADMIN_PATH_RE, ADMIN_CONTROLLER_RE, isAdminEndpoint, ADMIN_ROLE_RE, ROLE_CAPABLE_AUTHZ, ROLE_ANNOTATION_RE, SEC_CONFIG_HINT_RE, MATCHER_RE, ACCESS_AFTER_RE, ANY_REQUEST_RE, offsetOfLine, readBalanced2, stringLiterals, antMatches, hasAdminRoleAnnotation, classHeaderOf, memberWindow, annotationStance, accessKind, collectFilterConfig, filterStanceFor, combineProtection, publicNote, item6, auditAdminSurface, CLOUD_ACL_SPEC, MAX_EVIDENCE9, lineOf10, PUBLIC_ACL_PATTERNS, finalizeHits4, collectCannedAclHits, EFFECT_ALLOW_RE, WILDCARD_PRINCIPAL_RE, S3_ACTION_RE, enclosingObject, collectBucketPolicyHits, evidence6, item7, scanCloudStorageAcl, ACTUATOR_SPEC, MAX_EVIDENCE10, CONFIG_FILE_RE2, SENSITIVE_ACTUATOR_ENDPOINTS, lineOf11, indentOf2, isBlankOrComment, splitEndpoints, classifyExposure, exposureNote, H2_NOTE, findChildKey, collectListItems, collectExposureHits, collectH2Hits, finalizeHits5, evidence7, item8, scanActuatorExposure, BACKUP_FILE_SPEC, BACKUP_FILE_GLOBS, BACKUP_FILE_RE, SENSITIVE_BASE_RE, MAX_EVIDENCE11, stripBackupSuffix, classify2, evidence8, scanBackupFiles, CROSSDOMAIN_SPEC, CROSSDOMAIN_GLOBS, MAX_EVIDENCE12, lineOf12, PERMISSIVE_PATTERNS, collectHits, evidence9, scanCrossDomainPolicy, CLIENT_INFO_SPEC, ANGULAR_CONFIG_GLOBS, MAX_EVIDENCE13, lineOf13, asRecord, sourceMapEnabled, buildConfigurations, scanConfigFile, evidence10, item9, scanClientInfoLeak, SENSITIVE_FILE_SPEC, SENSITIVE_FILE_GLOBS, SENSITIVE_FILE_RE, PEM_TEXT_RE, PRIVATE_KEY_HEADER_RE, MAX_EVIDENCE14, classify22, evidence11, scanSensitiveFiles, INSECURE_TRANSPORT_SPEC, ENVIRONMENT_FILE_RE, MAX_EVIDENCE15, lineOf14, extractStringLiterals, HTTP_URL_RE, HTTPS_PRESENCE_RE, isExcludedHost, TEMPLATE_FILE_RE, scanInsecureFormSubmission, isTestPath, scanExternalCleartextLinks, JAVA_FILE_RE2, CLEARTEXT_JAVA_CLIENT_RE, scanJavaCleartextClients, scanInsecureTransport, WEBSOCKET_SPEC, MAX_EVIDENCE16, WS_URL_RE, WSS_PRESENCE_RE, scanWebSocketSecurity, authFillKey, createStubAuthFillResolver, buildAuthFillMap, ALG_TO_HASH, SIGNING_KEY_LINE, ENV_PLACEHOLDER, lineOf15, cleanValue, discoverJwtSigningKeys, b64url, b64urlStr, signingKeyBytes, mintJwt, DEFAULT_JHIPSTER_CLAIMS, RECIPE_NOTE, DECODE_ONLY_NOTE, jarKeysToSigningKeys, sha256Hex, buildRuntimeAuthRecipe, mintTokenFromRecipe, DEFAULT_TTL_SECONDS, commandsFor, credentialFor, runtimeAuthSeedDeviation, runtimeAuthSeedDecodeOnlyDeviation, planFor, buildRuntimeAuthSeedPlan, DEFAULT_TIMEOUT_MS, CRLF, encodeResp, identify, readReply, applyRuntimeAuthSeed, describeShape, resolveRuntimeAuthHypothesis, THREW, createStubRuntimeAuthHypothesisResolver, dataSeedKey, describeShape2, THREW2, resolveRuntimeDataSeedHypothesis, createStubRuntimeDataSeedResolver, buildDataSeedPlan, buildApiCreateSeedPlan, dataSeedEndpointSummaries, IDEMPOTENT_INSERT, BACKSLASH_IS_ESCAPE, escapeSqlString, sqlLiteral, assertIdentifier, renderDataSeedSql, SEED_AUDIT_SENTINEL, AUDIT_FIELD_RE, CLASS_DECL_RE2, TABLE_RE, EXTENDS_RE, NULLABLE_FALSE_RE, LENGTH_RE, stripJavaComments, group, detectSeedAuditColumns, applySeedAuditColumns, seedAuditAddedColumns, OBJECT_SEED_BASELINE_KEY, OBJECT_SEED_BASELINE_CONTENT_BASE64, PENTEST_CANARY_BUCKET, MAX_DERIVED_TARGETS, MAX_DERIVED_EVIDENCE, CONFIG_PATH_RE, BUCKET_KEY_RE, LINE_RE, PLACEHOLDER_RE2, ENC_PREFIX_RE, BOOLEAN_VALUE_RE, HAS_LOWERCASE_RE, canonicalKey, cleanValue2, resolveValue, referencesToken, deriveObjectStoreSeedTargets, renderObjectStoreSeedTsv, REACHABILITY_MANIFEST_SCHEMA_VERSION, MANIFEST_NOTE, SCALAR_JAVA_TYPES, baseTypeName, seedForParam, METHOD_INTENT, buildHint, buildReachabilityManifest, norm, dirOf, baseName, isMavenPom, isGradleBuild, stripXmlComments, isAncestorDir, normModulePath, selectRunnableModule, PACKAGE_DECL, BOOT_CLASS, posix3, detectSpringBootClass, EOCD_SIGNATURE, CENTRAL_SIGNATURE, EOCD_SEARCH_WINDOW, MAX_COMPRESSION_RATIO, MAX_UNCOMPRESSED_BYTES, MAX_ENTRIES, fail, isUnsafeName, readArchive, readArchiveEntryText, SOURCE_EXTENSIONS, extensionOf, baseNameOf, XML_COMMENT_RE3, isAggregatorPom, declaresParentPath, declaresSystemPaths, resolveAgainst, isSafeManifestPath, isSafeBuildTarget, preflightArchive, GRAPH_SKIP_DIRS, toPosix2, isFile, isDirectory, isWithin, resolvesWithin, normalizeModulePath, readText, hasApplicationEntrySource, walkFor, XML_COMMENT_RE4, xmlValue, withoutXmlBlocks, parseMavenModule, nearestAncestorFile, resolveMaven, stripGradleComments, quotedValues, parseGradleSettings, gradleProjectDependencies, conventionalProjectDir, resolveGradle, resolveBuildPackage, discoverBuildPackageEntries, SKIP_DIRS, DEFAULT_PACKAGE_EXCLUDES, SECRET_FILE_EXACT, SECRET_EXTENSIONS, isSecretOrIgnoredFile, MAX_FILE_BYTES, MAX_PARENT_DEPTH, DEFAULT_PACKAGE_POLICY, toPosix22, isFile2, isWithin2, resolvesWithin2, packageRootFor, toRelativeName, globRegexCache, globToRegExp, considerFile, walk, fingerprintEntryData, fingerprintEntries, XML_COMMENT_RE5, RELATIVE_PATH_RE, SYSTEM_PATH_RE2, PARENT_BLOCK_RE, EMPTY_RELATIVE_PATH_RE, readPom, localNpmTarballs, expandBasedir, planServicePackage, CRC_TABLE, crc32, writePackageZip, SIDECAR_IMAGES, HARNESS_PLAN_SCHEMA_VERSION, isConfigFile3, isBuildFile2, stripComments, SERVICE_DEPS, detectDatabaseDependency, detectServiceDependencies, detectHarnessDependencies, AUTO_CONFIGURED_LISTENER_FACTORY, KAFKA_LISTENER_ARGS_RE, LISTENER_PIN_RE, LISTENER_FACTORY_RE, SELF_OFF_FACTORY_BEAN_RE, SET_AUTO_STARTUP_FALSE_RE, classifyKafkaBootPath, buildHarnessPlan, normalizedPath, lineOf16, maskComments, sourceAt, addEvidence, readBundleIdentity, readPortalRelease, readSourceProduct, readToolchain, databaseVendorOf, readDatabase, isPortalConfigFile, normalizeApplicationBase, readApplicationBase, readSearch, detectLiferayRuntimeProfile, applyKafkaBrokerCoherence, RUNTIME_PLAN_SCHEMA_VERSION, PLAN_NOTE, describeSidecar, buildSteps, buildRuntimeBringUpPlan, RUNTIME_OVERLAY_FILE, RUNTIME_COMPOSE_FILE, RUNTIME_GUIDE_FILE, RUNTIME_BOOT_ENV_FILE, RUNTIME_VAULT_COMPATIBILITY_FILE, SIDECAR_IMAGE, REDIS_CLUSTER_COMMAND, renderNestedYaml, renderOverlay, renderVaultCompatibility, publishLine, renderCompose, renderGuide, renderBootEnv, generateRuntimeArtifacts, SUBMISSION_REQUIREMENTS_SCHEMA_VERSION, MAX_EVIDENCE17, NOTE2, capEvidence, totalSuffix, blockerEvidence, groupBy, packagingRequirements, secretRequirements, POLICY_KINDS, policyRequirements, infrastructureRequirements, authRequirements, seedRequirements, TIER_ORDER, buildSubmissionRequirements, renderSubmissionRequirements, REJECT_SIDECAR, applyRuntimeInput, DESER_SPEC, MAX_EVIDENCE18, lineOf17, UNSAFE_PATTERNS, collectHits2, SAFE_VALIDATOR_RE, firstSafeValidator, evidence12, item10, scanUnsafeDeserialization, WEAK_RANDOM_SPEC, MAX_EVIDENCE19, lineOf18, WEAK_RNG_PATTERNS, SECURITY_ID_RE, statementAround, COOKIE_SINK_MAX_HOPS, namesCarrying, reachesCookie, collectHits3, SECURE_RANDOM_RE, firstSecureRandom, evidence13, item11, scanWeakSecureRandom, POSTMESSAGE_SPEC, MAX_EVIDENCE20, lineOf19, WINDOW_LISTENER_PATTERNS, ORIGIN_RE, isFrontend, listenersIn, evidence14, item12, scanPostMessageOrigin, MAX_EVIDENCE21, MAX_PER_KIND, lineOf20, escapeRe, isScannableFrontendPath, GUARD_FN_TYPES, GUARD_CLASS_IFACES, FN_GUARD_TYPED_RE, CLASS_GUARD_RE, FN_GUARD_PARAM_RE, VUE_ROUTE_GUARD_RE, VUE_INTERCEPTOR_RE, FN_INTERCEPTOR_RE, INTERCEPTOR_BINDING_RE, CLASS_INTERCEPTOR_RE, INTERCEPT_METHOD_RE, INTERCEPTOR_TOKEN_RE, URL_CHECK_RES, DOM_SANITIZER_CALL_RE, SANITIZER_HELPER_DEF_RE, BYPASS_TRUST_RE, KIND_ORDER, KIND_LABELS, scanClientGuards, renderClientGuards, INDEX_HEADER_SPEC, MAX_EVIDENCE222, lineOf21, isIndexHtml, isNginxConf, META_HTTP_EQUIV_RE, ADD_HEADER_RE, extractHeaders, hasFrameProtection, evidence15, item13, scanIndexHeaders, asRecord2, asCount, parseClientArtifacts, CLIENT_COOKIE_SPEC, MAX_EVIDENCE23, lineOf22, isFrontend2, HIGH_SENSITIVITY_RE2, TOKEN_FAMILY_RE2, SECURE_RE, SAMESITE_RE, COOKIE_WRITE_RE, COOKIE_USE_RE, classifyCookieValue, collectCookieHits, evidenceOf3, resultItem, scanClientCookie, TS_LANGS, MOUNT_VUE3, MOUNT_VUE2, TS_EXT_CANDIDATES, UNRESOLVED_PATH, unwrap, TS_LANGS2, MOUNT_ROOT, MOUNT_ANY, TS_EXT_CANDIDATES2, MAX_CHAIN_DEPTH, MAX_REEXPORT_DEPTH, UNRESOLVED_PATH2, isVueSfc, inferVueSrcBase, resolveComponentRoutesByFramework, XXE_SPEC, MAX_EVIDENCE24, lineOf23, XML_PARSER_PATTERNS, HARDENING_RE, parsersIn, evidence16, item14, scanXxe, WEAK_TLS_SPEC, MAX_EVIDENCE25, lineOf24, BYPASS_PATTERNS, TLS_SURFACE_RE, bypassesIn, evidence17, item15, scanWeakTls, DOCKERFILE_SPEC, DOCKERFILE_RE, DOCKERFILE_GLOBS, isLoopback, UNREFERENCABLE_BASE_IMAGE, baseImageReference, FLOATING_TAG_RE, unpinnedBaseImageReason, auditDockerfileDependencyConfusion, auditDockerfileContent, scanDockerfile, HOST_HEADER_SPEC, MAX_EVIDENCE26, lineOf26, HOST_PATTERNS, REQUEST_TYPE_RE, REQUEST_NAME_RE, receiverOf, isRequestReceiver, collectHits5, evidence19, item17, scanHostHeader, CHECKLIST_ID2, CONTROL_ID2, TITLE2, evidenceOf4, item18, VALUE_ANNOTATION_RE, FIELD_AFTER_VALUE_RE, LIFETIME_TOKEN_RE, tokenize, hasOtpToken, TIME_UNIT_RE, NAME_UNIT_HINTS, TO_SECONDS, lineOf27, isOtpLifetimeName, configRank, inconclusive, scanOtpPolicy, PASSWORD_POLICY_SPEC, MAX_EVIDENCE27, lineOf28, precedingBlock3, PASSWORD_NAME_RE, NOT_A_SECRET_RE, isPasswordName, STRING_DECL_RE, SIZE_MIN_RE, ANNOTATION_IN_BLOCK_RE, LENGTH_CHECK_RE, CONSTRAINT_VALIDATOR_RE, ANNOTATION_DECL_RE, STRING_LITERAL_RE, QUANT_MIN_RE, POLICY_SURFACE_PATTERNS, ACCOUNT_SURFACE_RE, baseName2, isAccountSurface, collectCustomConstraintMins, sitesIn, firstUsageIndex, pointersIn, dedupeSort, evidenceOf5, item19, policyNote, scanPasswordPolicy, SPEC, MAX_EVIDENCE28, AUTH_SURFACE_RE, ACCOUNT_EXISTENCE_RE, PASSWORD_ONLY_RE, COMBINED_RE, STRING_LITERAL_RE2, lineOf29, scanAuthFile, dedupeSort2, evidenceOf6, item20, scanAccountEnumeration, SPEC2, MAX_EVIDENCE29, LOGOUT_ENDPOINT_RE, LOGOUT_MENTION_RE, INVALIDATION_PATTERNS, lineOf30, invalidationHits, dedupeSort3, evidenceOf7, item21, scanLogoutInvalidation, SPEC3, MAX_EVIDENCE30, OTP_ISSUE_RE, OTP_MENTION_RE, THROTTLE_PATTERNS, lineOf31, firstMatch2, dedupeSort4, evidenceOf8, item22, scanOtpThrottle, MAX_EVIDENCE31, REST_TEMPLATE_CALL_RE, NEW_URL_RE, URL_TAIL_RE, URI_TAIL_RE, OPEN_CONNECTION_RE, SIGNALS, lineOf32, scanSsrfEndpointHints, SPEC4, MAX_EVIDENCE322, HARD_MUTATION_HANDLER_RE, DIRECT_WRITE_RE, DELEGATION_WRITE_RE, TXN_RE, READ_ONLY_TXN_RE, offsetOfLine2, insideLiteral, extractHandlerBody, braceMatchedBlock, signatureRegion, confirmWrite, dedupeSort5, evidenceOf9, item23, scanStateChangingGet, KEY_MANAGEMENT_SPEC, JAVA_FILE_RE3, CONFIG_FILE_RE3, EMPTY_SECRET_KEY_SPEC_RE, EMPTY_KEY_VAR_RE, scanEmptyEncryptionKeys, MFA_AUTH_SPEC, JAVA_FILE_RE4, CONFIG_FILE_RE4, AUTH_SURFACE_RE2, MFA_INDICATORS_RE, MFA_VERIFY_ENDPOINT_RE, SSO_INDICATORS_RE, isTestPath2, isNonSiteLine, scanMfaAuth, PASSWORD_EXPIRY_SPEC, JAVA_FILE_RE5, CONFIG_FILE_RE5, USER_DETAILS_RE, HARDCODED_CREDENTIALS_NON_EXPIRED_RE, ACTIVE_EXPIRY_CHECK_RE, PASSWORD_AGE_SOURCE_RE, ADVISORY_EXPIRY_FLAG_RE, EXPIRY_ENFORCEMENT_RE, forcesPasswordResetViaUpdate, ENFORCEMENT_POINT_RE, LIFERAY_EXPIREABLE_RE, LIFERAY_MAX_AGE_RE, isTestPath3, scanPasswordExpiryPolicy, SETTER_RE, HTTP_STATUS_RECEIVER, HTTP_STATUS_ARG, CONSTANT_ARG, ENUM_ARG, LOADS_EXISTING, ENTITY_DECL_RE, PRINCIPAL_RE, STATE_NOUN, escapeRegExp2, stateReadBefore, hasSameReceiverStateReadBefore, hasCopySourceStateReadBefore, CONSTRUCTED_AS_RE, loadedTypesIn, receiverOriginOf, lineOf33, methodsOf, isJava3, isControllerPath, scanStateTransitionSites, RULE_TITLES, EXTRA_FINDING_RULE_IDS, EXTRA_AI_RULE_IDS, foldExtraRuleFindings, MAX_EVIDENCE33, SEVERITY_ORDER2, SCORE_FLOOR, asRecord3, asString, stripMountPrefix, severityFromTags, field, parseScaReport, effectiveScore, passesThreshold, distinctPairs, bySeverityThenName, evidenceOf10, countBySeverity, provenance, foldScaReport, BRUTE_FORCE_SPEC, MAX_EVIDENCE34, lineOf34, AUTH_CONTEXT_RE, LIMIT_NAME_RE, LOGIN_CONTEXT_RE, LOGIN_WINDOW_LINES, nearLoginContext, MAX_VALUE_ASSIGN_RE, MECHANISM_PATTERNS, RATE_LIMIT_PATTERNS, ISSUANCE_NAME_RE, failOpenHits, patternHits, dedupeSort6, evidenceOf11, item24, scanBruteForceProtection, keyOf, applyRouteConfigOverrides, CLIENT_CLASSES, MANUAL_DELIVERY_SOURCES, ENC, ROUTE_BASE_PREFIX, BENIGN_PARAM, CLIENT_ORACLE, deliveryFor, clientDeliveryKindFor, jsStr, normFile, camel, urlChunk, buildGoto, manualComment, renderMethod, renderSpec, dedupeRoutes, generateClientVerificationSuite, buildClientVerificationManifest, WSTG, TC16, MANUAL_CHECKLIST_ITEMS, NEEDS_MANUAL_LIMITATION, buildManualChecklistItems, handoffFileName, MAX_SURFACE_SAMPLE, surfaceContext, INFRA_CONTEXT, buildHandoffPackets, literal, renderIdorVerificationClass, OBJECT_STORE_PROBE_SINKS, GENERATED_PACKAGE, SERVER_CLASSES, BOOLEAN_BLIND_CLASSES, BOOLEAN_BLIND_PAIRS, CLASS_CANARY, COMMAND_CANARY, VALIDATION_REJECT_CLASSES2, CANON_HELPER, CLASS_ORACLE, javaStr, SSRF_BASELINE_WORKBOOK_ENTRIES, SSRF_BASELINE_WORKBOOK_HELPER, BENIGN_SEED, BUCKET_BENIGN_SEED, benignSeedFor, companionBenignSeed, renderAuthSuffix, RUNTIME_AUTH_SUFFIX, renderRuntimeAuthHelper, pascal, camel2, verificationTestClassName, identChunk, fillPath, companionCalls, ssrfPayloadPath, requestExpr, isVerifiable, SERVER_SKIP_REASON, renderBooleanBlind, renderCanary, isObjectStoreProbeSink, OBJECT_STORE_REJECT_CATCH_LINES, wrapObjectStoreAttackGuard, wrapObjectStoreEvidenceAttackGuard, resolveAuth, renderMethod2, renderEvidenceMethod, renderEvidenceHelpers, renderTestcontainersDbTierFields, renderExternalDbTierFields, javaSeedValue, renderSeedMethod, renderApiCreateSeedMethod, renderClass, toManifestEntries, generateVerificationSuite, buildVerificationManifest, decodeEntities, attr, stripCdata, childMessage, classify3, parseJUnitXml, simpleClassName, joinKey, DEFAULT_TRUST_TIER, resolveFromEnvelope, ingestVerification, PROVENANCE_DETAIL, applyProvenanceDowngrades, asRecord4, asString2, asBool, asInt, asHttpStatus, SIGNALS2, ATTESTATION_METHODS, parseProvenance, parseOracle, parseEffectBoundary, parseDefenseControl, parseBaseline, parseIdor, parseAttack, parseEvidenceEnvelope, asRecord5, asArray, asString3, asNumber, basename4, specOutcome, walkSuite, parsePlaywrightReport, joinKey2, ingestClientVerification, compareChecklistId, correlateVerification, EMPTY_CORRELATION, notTestedItem, groupDastByChecklist, dastAxisFor, groupClientByChecklist, clientAxisFor, correlateAssessment, ZAP_SCAN_RULES, DEFAULT_DAST_OPTIONS, DAST_PLAN_FILE, DAST_MANIFEST_FILE, DAST_PROBE_SCRIPT_FILE, DAST_API_SEED_SCRIPT_FILE, API_SEED_VAR_PREFIX, PROBE_VICTIM_BUCKET_REF, PROBE_CANARY_OBJECT_REF, PROBE_INJECTION_KINDS, isScannable, skipReason, yamlStr, baselinePath, normMethod2, toTarget, normalizeSpaRoutePath, buildSpaDastTargets, SEED_VALUE, SSRF_SEED_VALUE, seedValue, pathInjectionSeed, computeApiSeedVars, allParams, queryString, requestPath, renderRequest, renderPlanYaml, cmpChecklistId, generateDastPlan, buildProbeSpec, buildProbe, buildDastManifest, cmpStr3, compareScenarioRef, compareExecutionTarget, shq, PROBE_SCRIPT_PROLOGUE, PROBE_SCRIPT_EPILOGUE, renderDastProbeScript, shLiteral, API_SEED_PY, renderDastApiSeedScript, HTTP_EVIDENCE_MAX_HEADER_BYTES, HTTP_EVIDENCE_MAX_BODY_BYTES, REDACTION_WINDOW_BYTES, HTTP_REDACTED, SENSITIVE_HEADER_RE, NEVER_SENSITIVE_HEADER_RE, SCHEMED_HEADER_RE, COOKIE_HEADER_RE, COOKIE_ATTRIBUTE_RE, JSON_SECRET_MEMBER_RE, HEADER_LINE_RE, TOKEN_RUN_RE, redactJwtRun, redactJwts, URL_USERINFO_RE, redactInline, redactHeaderValue, redactHeaderBlock, redactBody, looksBinary, cutUtf8, boundedPart, sanitizeHttpMessage, httpStatusOf, RISK_BY_CODE, asString4, firstLine, httpEvidenceOf, parseZapReport, firstLineOf, usableTimestamp, latestMessageInstant, parseZapMessages, pathOf, stripTrailingSlash, pathMatches, methodMatches, injectionMatches, routeMatchesOrUnknown, alertMatchesTarget, queryHasParam, messageMatchesSurface, computeDastCoverage, detailOf, DAST_HTTP_EVIDENCE_MAX_RESOLUTIONS, carriesHttpText, evidenceOf12, ingestDast, SEMGREP_CWE_MAP, asRecord6, asString5, asNonNegativeInteger, compareText3, compareCwe, stringsFrom, cwesFromProperties, messageText, compareFinding, findingKey, ruleMetadata, metadataForResult, locationsOf, findingsFromRun, parseSemgrepSarif, compareChecklistId2, unmatchedKey, ingestSemgrep, CHECKLIST_ID3, CONTROL_ID3, MAX_EVIDENCE35, OWNER_SCOPED_FINDER, REPOSITORY_DECL, lineOf35, fieldNameFor, collectOwnerScopedRepositories, LIFERAY_LOAD_BY_ID_RE, OBJECT_PERMISSION_RE, methodBodyAt, liferayIdorHits, scanIdor, children, walk2, walkExecution, field2, simpleType, isReference, line, indexTypes, resolveType, propertyOf, annotations, annotationName, annotationValues, beanProperties, customAccessor, mappedOrigins, controlSignals, conventionSignals, trace, rootOrigins, scenarioFor, MAX_IDOR_AST_FILES, MAX_IDOR_AST_BYTES, scanIdorAuthorization, CHECKLIST_ID4, CONTROL_ID4, MAX_EVIDENCE36, CONTROLLER, MULTIPART_PARAM, JAXRS_IMPORT2, JAXRS_UPLOAD_PARAM, DENYLIST, ALLOWLIST, CONTENT_SNIFF, ACTIVE_CONTENT_EXTENSION, ACTIVE_CONTENT_DEFENCE, ALLOWLIST_WINDOW, lineOf36, collectUploadHandlers, firstMatch3, findActiveContentAllowlist, scanUploadValidation, CHECKLIST_ID5, CONTROL_ID5, MAX_EVIDENCE37, SECRET_KEY_LINE, SELF_IDENTIFYING_KEYS, JWT_CONTEXT_RE, PARENT_KEY_LINE, ancestorPath, ENV_PLACEHOLDER2, NON_PROD_PROFILE, CONFIG_FILE, lineOf37, byFileLine2, collectSecrets, scanJwtSecret, PLATFORM_EOL_SPEC, MAX_EVIDENCE38, SPRING_BOOT_OSS_EOL, LIFERAY_KERNEL_MAJOR, stripComments2, lineOf38, springBootHits, liferayHits, BUILD_FILE_RE, scanPlatformEol, SPEC5, MAX_EVIDENCE39, AUTH_TOKEN_REF_RE, TOKEN_COMPARE_RE, CHECK_CSRF_RE, DISABLED_PROP_RE, lineOf39, enclosingCondition, isRequestValue, scanLiferayCsrf, DEVTOOLS_SPEC, BUILD_FILE_RE2, findDevToolsDeclarations, scanDevTools, PASSWORD_AUTOCOMPLETE_SPEC, HTML_TEMPLATE_FILE_RE, SECURE_AUTOCOMPLETE_VALUES, isTestPath4, auditPasswordAutocompleteContent, scanPasswordAutocomplete, SYSTEM_INFO_LEAK_SPEC, JAVA_FILE_RE6, isTestPath5, PRINT_STACK_TRACE_RE, SYSTEM_PRINT_EXCEPTION_RE, auditJavaErrorDisclosure, scanSystemInfoLeak, PLAYWRIGHT_VERSION_PIN, ESBUILD_VERSION_PIN, renderClientPackageJson, renderClientPlaywrightConfig, renderClientTsconfig, renderClientRunnablePackage, renderComponentBuildScript, renderVueComponentBuildScript, normFile2, posixDir, posixJoin, posixNormalize, candidateFilePaths, stripComments3, isAllowedFrameworkImport, extractImportSpecifiers, extractCompanionFiles, resolveInRepoPath, collectComponentClosure, CLIENT_CLASSES2, COMPONENT_NEEDS_BUILD_MARKER, COMPONENT_VUE_NOT_MOUNTED_MARKER, normFile3, jsStr2, camel3, fileChunk, isLikelyInjectable, analyzeMount, renderHarness, renderVueHarness, tieredAssert, renderMethod3, renderSpec2, generateComponentVerificationSuite, BINDING, HTML_COMMENT, inventoryVueTemplateSinks, HTTP_VERBS, lineOf40, readBalanced3, getFirstArg, getSecondArg, normalizeTemplateUrl, parseUrlArg, scanFile, extractClientApiCalls, normalizeSegment, normalizePath5, determineConfidence, methodsMatch, matchClientToBackendEndpoints, UPLOAD_CLIENT_SPEC, MAX_EVIDENCE40, lineOf41, isFrontend3, UPLOAD_CONTEXT_RE, FILE_INPUT_RE, ACCEPT_ATTR_RE, CLIENT_CHECK_PATTERNS, SHARED_CONST_SIGNAL_RE, HTTP_UPLOAD_SURFACE_RE, maskHtmlComments, clientChecksIn, fileInputsIn, evidence20, item25, dedupAndCap, scanUploadClientCheck, LOGOUT_CLEAR_SPEC, MAX_EVIDENCE41, lineOf42, isFrontend4, CALL_LABEL, LOGOUT_ENTRY_PATTERNS, CLEAR_STATE_RE, fileClearsState, LOGOUT_CALL_RE, receiverType, clearingLogoutClasses, callsDelegateClear, logoutEntriesIn, evidence21, item26, dedupAndCap2, scanLogoutClear, NUMERIC_BOUND_SPEC, MAX_EVIDENCE42, lineOf43, isFrontend5, isTsLike2, MONEY_NAME_RE, isMoneyName, MIN_BOUND_RE, PATTERN_RE, CONTROL_DECL_RE, moneyControlsIn, moneyInputsIn, evidence22, item27, scanNumericBound;
|
|
12011
11741
|
var init_dist3 = __esm({
|
|
12012
11742
|
"../parsers/dist/index.js"() {
|
|
12013
11743
|
init_dist();
|
|
@@ -12446,14 +12176,14 @@ ${errors.join("\n")}`);
|
|
|
12446
12176
|
const activeIncludes = matchAllGroups(INCLUDE_RE, stripped);
|
|
12447
12177
|
if (activeIncludes.length === 0) return null;
|
|
12448
12178
|
const totalIncludes = matchAllGroups(INCLUDE_RE, master.content).length;
|
|
12449
|
-
const
|
|
12179
|
+
const resolve310 = (include) => {
|
|
12450
12180
|
const needle = include.split("\\").join("/");
|
|
12451
12181
|
return migrationFiles.find((f) => f.path.split("\\").join("/").endsWith(needle));
|
|
12452
12182
|
};
|
|
12453
12183
|
const created = /* @__PURE__ */ new Set();
|
|
12454
12184
|
const targets = [];
|
|
12455
12185
|
for (const inc of activeIncludes) {
|
|
12456
|
-
const f =
|
|
12186
|
+
const f = resolve310(inc);
|
|
12457
12187
|
if (!f) continue;
|
|
12458
12188
|
const body = f.content.replace(XML_COMMENT_RE, "");
|
|
12459
12189
|
for (const t of matchAllGroups(CREATE_TABLE_RE, body)) created.add(t);
|
|
@@ -13440,7 +13170,7 @@ ${errors.join("\n")}`);
|
|
|
13440
13170
|
dummyFor = (varName, propertyPath = "") => {
|
|
13441
13171
|
const v = varName.toUpperCase();
|
|
13442
13172
|
const has = (...ss) => ss.some((s) => v.includes(s));
|
|
13443
|
-
const hasTok = (...
|
|
13173
|
+
const hasTok = (...ts) => hasToken(v, ...ts);
|
|
13444
13174
|
if (has("PASSWORD", "PASSWD", "SECRET", "TOKEN", "CREDENTIAL")) return A_SENTINEL;
|
|
13445
13175
|
if (has("ENABLE", "DISABLE", "FLAG", "IS_", "USE_")) return "false";
|
|
13446
13176
|
if (has(
|
|
@@ -13549,7 +13279,7 @@ ${errors.join("\n")}`);
|
|
|
13549
13279
|
identifyByName = (varName) => {
|
|
13550
13280
|
const v = varName.toUpperCase();
|
|
13551
13281
|
const has = (...ss) => ss.some((s) => v.includes(s));
|
|
13552
|
-
const hasTok = (...
|
|
13282
|
+
const hasTok = (...ts) => hasToken(v, ...ts);
|
|
13553
13283
|
const endpoint = isEndpointShaped(v);
|
|
13554
13284
|
if (has("REDIS")) {
|
|
13555
13285
|
if (has("HOST")) return { kind: "redis", role: "host" };
|
|
@@ -14614,54 +14344,6 @@ ${errors.join("\n")}`);
|
|
|
14614
14344
|
return { baseUrl: "", paths: [] };
|
|
14615
14345
|
}
|
|
14616
14346
|
};
|
|
14617
|
-
loadEmitOptions = (options) => {
|
|
14618
|
-
const root = options?.projectRoot;
|
|
14619
|
-
const configPath = root ? ts.findConfigFile(root, ts.sys.fileExists) : void 0;
|
|
14620
|
-
if (!configPath) return {};
|
|
14621
|
-
const config = ts.readConfigFile(configPath, ts.sys.readFile);
|
|
14622
|
-
if (config.error) return void 0;
|
|
14623
|
-
const parsed = ts.parseJsonConfigFileContent(
|
|
14624
|
-
config.config,
|
|
14625
|
-
ts.sys,
|
|
14626
|
-
resolve(configPath, "..")
|
|
14627
|
-
);
|
|
14628
|
-
if (parsed.errors.some((error) => error.code !== 18003 && error.code !== 18002)) return void 0;
|
|
14629
|
-
return parsed.options;
|
|
14630
|
-
};
|
|
14631
|
-
emittedImportBindings = (source, options) => {
|
|
14632
|
-
if (!options || !/\.(?:[cm]?ts|tsx)$/.test(source.getFilePath())) return void 0;
|
|
14633
|
-
const output2 = ts.transpileModule(source.getFullText(), {
|
|
14634
|
-
fileName: source.getFilePath(),
|
|
14635
|
-
compilerOptions: {
|
|
14636
|
-
...options,
|
|
14637
|
-
noEmit: false,
|
|
14638
|
-
declaration: false,
|
|
14639
|
-
module: ts.ModuleKind.ESNext
|
|
14640
|
-
},
|
|
14641
|
-
reportDiagnostics: true
|
|
14642
|
-
});
|
|
14643
|
-
if (output2.diagnostics?.some((diagnostic) => diagnostic.category === ts.DiagnosticCategory.Error))
|
|
14644
|
-
return void 0;
|
|
14645
|
-
const emitted = ts.createSourceFile(
|
|
14646
|
-
"emitted.js",
|
|
14647
|
-
output2.outputText,
|
|
14648
|
-
ts.ScriptTarget.Latest,
|
|
14649
|
-
true
|
|
14650
|
-
);
|
|
14651
|
-
const bindings = /* @__PURE__ */ new Map();
|
|
14652
|
-
for (const statement of emitted.statements) {
|
|
14653
|
-
if (!ts.isImportDeclaration(statement) || !ts.isStringLiteral(statement.moduleSpecifier))
|
|
14654
|
-
continue;
|
|
14655
|
-
const names = bindings.get(statement.moduleSpecifier.text) ?? /* @__PURE__ */ new Set();
|
|
14656
|
-
if (statement.importClause?.name) names.add(statement.importClause.name.text);
|
|
14657
|
-
const named = statement.importClause?.namedBindings;
|
|
14658
|
-
if (named && ts.isNamespaceImport(named)) names.add(named.name.text);
|
|
14659
|
-
if (named && ts.isNamedImports(named))
|
|
14660
|
-
for (const element of named.elements) names.add(element.name.text);
|
|
14661
|
-
bindings.set(statement.moduleSpecifier.text, names);
|
|
14662
|
-
}
|
|
14663
|
-
return bindings;
|
|
14664
|
-
};
|
|
14665
14347
|
matchPathPattern = (specifier, pattern) => {
|
|
14666
14348
|
const star = pattern.indexOf("*");
|
|
14667
14349
|
if (star === -1) return specifier === pattern ? { wildcard: "" } : null;
|
|
@@ -14797,6 +14479,7 @@ ${errors.join("\n")}`);
|
|
|
14797
14479
|
}
|
|
14798
14480
|
}
|
|
14799
14481
|
for (const decl of source.getExportDeclarations()) {
|
|
14482
|
+
if (decl.getModuleSpecifierValue()) continue;
|
|
14800
14483
|
for (const named of decl.getNamedExports()) {
|
|
14801
14484
|
const exportedName = named.getAliasNode()?.getText() ?? named.getName();
|
|
14802
14485
|
if (exportedName === "default") addDefaultExport();
|
|
@@ -14823,7 +14506,6 @@ ${edgePart}`);
|
|
|
14823
14506
|
const graphFiles = files.filter((f) => TS_LANGUAGES.has(f.language) && !isVueSfcPath(f.path));
|
|
14824
14507
|
const filesByPath = new Map(graphFiles.map((f) => [f.path, f]));
|
|
14825
14508
|
const tsconfig = await loadTsConfigResolver(options);
|
|
14826
|
-
const emitOptions = loadEmitOptions(options);
|
|
14827
14509
|
const project = new Project({
|
|
14828
14510
|
useInMemoryFileSystem: true,
|
|
14829
14511
|
skipAddingFilesFromTsConfig: true,
|
|
@@ -14863,7 +14545,6 @@ ${edgePart}`);
|
|
|
14863
14545
|
edges.push(edge);
|
|
14864
14546
|
};
|
|
14865
14547
|
for (const [fromPath, source] of sourceByPath) {
|
|
14866
|
-
const retainedImports = emittedImportBindings(source, emitOptions);
|
|
14867
14548
|
for (const decl of source.getImportDeclarations()) {
|
|
14868
14549
|
const toPath = resolveModule(
|
|
14869
14550
|
fromPath,
|
|
@@ -14877,19 +14558,15 @@ ${edgePart}`);
|
|
|
14877
14558
|
let bindingCount = 0;
|
|
14878
14559
|
const addBinding = (localName, importedName, typeOnly) => {
|
|
14879
14560
|
bindingCount += 1;
|
|
14880
|
-
|
|
14881
|
-
const knownExport = importedName !== "*" && target?.getExportedDeclarations().has(importedName);
|
|
14882
|
-
const erasedByCompiler = !!(knownExport && retainedImports && !retainedImports.get(decl.getModuleSpecifierValue())?.has(localName));
|
|
14883
|
-
const effectiveTypeOnly = typeOnly || erasedByCompiler;
|
|
14884
|
-
bindings.push({ localName, targetPath: toPath, typeOnly: effectiveTypeOnly });
|
|
14561
|
+
bindings.push({ localName, targetPath: toPath, typeOnly });
|
|
14885
14562
|
const alias = aliasIfDifferent(importedName, localName);
|
|
14886
14563
|
addEdge({
|
|
14887
14564
|
fromPath,
|
|
14888
14565
|
toPath,
|
|
14889
|
-
kind:
|
|
14566
|
+
kind: typeOnly ? "uses-type" : "import",
|
|
14890
14567
|
symbol: importedName,
|
|
14891
14568
|
...alias ? { alias } : {},
|
|
14892
|
-
weight:
|
|
14569
|
+
weight: typeOnly ? 70 : 100
|
|
14893
14570
|
});
|
|
14894
14571
|
};
|
|
14895
14572
|
const defaultImport = decl.getDefaultImport()?.getText();
|
|
@@ -17078,9 +16755,9 @@ ${edgePart}`);
|
|
|
17078
16755
|
}
|
|
17079
16756
|
switch (injection.kind) {
|
|
17080
16757
|
case "query": {
|
|
17081
|
-
const
|
|
16758
|
+
const sep32 = endpoint.path.includes("?") ? "&" : "?";
|
|
17082
16759
|
const encoded = encodeURIComponent(payload).replace(/'/g, "%27");
|
|
17083
|
-
return `curl -X ${method} '${host}${endpoint.path}${
|
|
16760
|
+
return `curl -X ${method} '${host}${endpoint.path}${sep32}${injection.name}=${encoded}'`;
|
|
17084
16761
|
}
|
|
17085
16762
|
case "path": {
|
|
17086
16763
|
const encoded = encodeURIComponent(payload);
|
|
@@ -23189,7 +22866,7 @@ ${window}`;
|
|
|
23189
22866
|
applyRuntimeAuthSeed = (plan, options) => {
|
|
23190
22867
|
const commands = plan.commands;
|
|
23191
22868
|
if (commands.length === 0) return Promise.resolve({ ok: true, applied: 0, failures: [] });
|
|
23192
|
-
return new Promise((
|
|
22869
|
+
return new Promise((resolve310) => {
|
|
23193
22870
|
const failures = [];
|
|
23194
22871
|
let applied = 0;
|
|
23195
22872
|
let buf = Buffer.alloc(0);
|
|
@@ -23207,7 +22884,7 @@ ${window}`;
|
|
|
23207
22884
|
error: transportError
|
|
23208
22885
|
});
|
|
23209
22886
|
}
|
|
23210
|
-
|
|
22887
|
+
resolve310({ ok: failures.length === 0, applied, failures });
|
|
23211
22888
|
};
|
|
23212
22889
|
socket.setTimeout(options.timeoutMs ?? DEFAULT_TIMEOUT_MS, () => finish("timed out"));
|
|
23213
22890
|
socket.on("error", (e) => finish(e.message));
|
|
@@ -24107,9 +23784,9 @@ ${window}`;
|
|
|
24107
23784
|
isAggregatorPom = (xml) => /<packaging>\s*pom\s*<\/packaging>/i.test(xml);
|
|
24108
23785
|
declaresParentPath = (xml) => xml.match(/<relativePath>\s*([^<]+?)\s*<\/relativePath>/i)?.[1] ?? null;
|
|
24109
23786
|
declaresSystemPaths = (xml) => [...xml.matchAll(/<systemPath>\s*([^<]+?)\s*<\/systemPath>/gi)].map((match) => match[1] ?? "");
|
|
24110
|
-
resolveAgainst = (pomPath,
|
|
23787
|
+
resolveAgainst = (pomPath, relative32) => {
|
|
24111
23788
|
const segments = pomPath.split("/").slice(0, -1);
|
|
24112
|
-
for (const part of
|
|
23789
|
+
for (const part of relative32.replace(/\\/g, "/").split("/")) {
|
|
24113
23790
|
if (part === "" || part === ".") continue;
|
|
24114
23791
|
if (part === "..") segments.pop();
|
|
24115
23792
|
else segments.push(part);
|
|
@@ -32415,8 +32092,8 @@ ${runtimeAuthHelper}` : ""}
|
|
|
32415
32092
|
const suiteRe = /<testsuite\b([^>]*?)\/?>/g;
|
|
32416
32093
|
let s = suiteRe.exec(xml);
|
|
32417
32094
|
while (s !== null) {
|
|
32418
|
-
const
|
|
32419
|
-
if (
|
|
32095
|
+
const ts = attr(s[1] ?? "", "timestamp");
|
|
32096
|
+
if (ts !== void 0 && ts.length > 0) suiteStamps.push({ at: s.index, timestamp: ts });
|
|
32420
32097
|
s = suiteRe.exec(xml);
|
|
32421
32098
|
}
|
|
32422
32099
|
const stampFor = (caseAt) => {
|
|
@@ -35525,14 +35202,14 @@ ${bodyText}` : headerText;
|
|
|
35525
35202
|
if (raw !== "" && !raw.startsWith("#") && isJwt) {
|
|
35526
35203
|
if (ENV_PLACEHOLDER2.test(raw)) {
|
|
35527
35204
|
const inner = raw.slice(2, -1);
|
|
35528
|
-
const
|
|
35205
|
+
const sep32 = inner.indexOf(":");
|
|
35529
35206
|
externalized.push({
|
|
35530
35207
|
file: file.path,
|
|
35531
35208
|
line: lineOf37(file.content, m.index),
|
|
35532
35209
|
// Name only. A `${VAR:s3cr3t}` default is a secret, and this report is
|
|
35533
35210
|
// shared far more widely than the config file it reads.
|
|
35534
|
-
variable: (
|
|
35535
|
-
hasInlineDefault:
|
|
35211
|
+
variable: (sep32 >= 0 ? inner.slice(0, sep32) : inner).trim(),
|
|
35212
|
+
hasInlineDefault: sep32 >= 0
|
|
35536
35213
|
});
|
|
35537
35214
|
} else {
|
|
35538
35215
|
literals.push({
|
|
@@ -37707,17 +37384,17 @@ ${script}
|
|
|
37707
37384
|
}
|
|
37708
37385
|
continue;
|
|
37709
37386
|
}
|
|
37710
|
-
const
|
|
37711
|
-
if (
|
|
37712
|
-
anyMoneyField = anyMoneyField ||
|
|
37387
|
+
const ts = moneyControlsIn(f);
|
|
37388
|
+
if (ts.bounded) {
|
|
37389
|
+
anyMoneyField = anyMoneyField || ts.anyMoneyField;
|
|
37713
37390
|
const m = MIN_BOUND_RE.exec(f.content);
|
|
37714
37391
|
if (m !== null) configured.push({ file: f.path, line: lineOf43(f.content, m.index) });
|
|
37715
37392
|
MIN_BOUND_RE.lastIndex = 0;
|
|
37716
37393
|
continue;
|
|
37717
37394
|
}
|
|
37718
|
-
if (
|
|
37395
|
+
if (ts.anyMoneyField) {
|
|
37719
37396
|
anyMoneyField = true;
|
|
37720
|
-
absentHits.push(...
|
|
37397
|
+
absentHits.push(...ts.hits);
|
|
37721
37398
|
}
|
|
37722
37399
|
}
|
|
37723
37400
|
if (absentHits.length > 0) {
|
|
@@ -37997,7 +37674,7 @@ Language guard retry: the previous response contained an empty or English explan
|
|
|
37997
37674
|
return { status: "error", vulnerable: false, reason: `L\u1ED7i th\u1EF1c thi LLM: ${message}` };
|
|
37998
37675
|
}
|
|
37999
37676
|
}
|
|
38000
|
-
var OLLAMA_DEFAULT_BASE, NETMIND_DEFAULT_BASE, OPENCODE_GO_DEFAULT_BASE, stripTrailingSlash2, buildLanguageModel, resolveModelOverride, pingTarget, shouldUseRawJsonChat, openAICompatibleChatUrl, REASONING_HEADROOM_TOKENS, NETMIND_MINIMAX_M3_MODEL, NETMIND_SMALL_PROMPT_MAX_CHARS, NETMIND_MEDIUM_PROMPT_MAX_CHARS, NETMIND_SMALL_OUTPUT_TOKENS, NETMIND_MEDIUM_OUTPUT_TOKENS, NETMIND_LARGE_OUTPUT_TOKENS, NETMIND_MAX_OUTPUT_TOKENS, supportsNetmindJsonResponseFormat, emptyResponseDiagnostics, effectiveMaxTokensFor, completeRawOpenAICompatibleJsonChat, createAiSdkProvider, createFallbackClient, DEFAULT_RESET_SAFETY_MS, parseProviderRetryDelayMs, numberLines, renderPrompt, cache, loadPromptTemplate, nullableOptional, AI_VIOLATION_MESSAGE_MAX_LENGTH, aiViolationSchema, aiResponseSchema, stripCodeFence, parseAiResponse, createInMemoryCache, VIETNAMESE_OUTPUT_POLICY_VERSION, VIETNAMESE_OUTPUT_INSTRUCTION, TOKEN_BUDGET_WARN_DEFAULT, CHARS_PER_TOKEN, SAFETY_MARGIN, estimateTokens, formatTokenWarning, braceDelta, chunkSourceForAi, renderAuthorizationGuards, CACHE_NAMESPACE, DEFAULT_PROVIDER_RETRY_MAX_RETRIES, DEFAULT_PROVIDER_RETRY_MAX_DELAY_MS, DEFAULT_ADAPTIVE_RETRY_MAX_RETRIES, DEFAULT_ADAPTIVE_CONTEXT_REDUCTION_FACTOR, DEFAULT_ADAPTIVE_TIMEOUT_MULTIPLIER, DEFAULT_ADAPTIVE_MAX_DELAY_MS, DEFAULT_PROVIDER_TIMEOUT_MS, sleep2, providerRetryDelayMs, adaptiveFailureKind, compactClusterContext, findingDedupeKey, dedupeFindings, capFindings, createAiExecutor, PATH_FAST_PATHS, SPRING_BOOT_PATTERNS, ANGULAR_PATTERNS, FLUTTER_PATTERNS, ENTRY_HINTS, ALL_PATTERNS, matchesRule, classifyLayer, classifyLayers, PRIMARY_LAYER_CANDIDATES, TEST_AND_GENERATED, LAYER_SUFFIXES, FILE_SUFFIX_RE, ANY_EXT_RE, dropExt, stripPascalSuffix, normalize2, extractDomainTokens, extractDomainTokensBatch, TRIVIAL_TOKENS, sharesDomainToken, TS_IMPORT_RE, JAVA_IMPORT_RE, extractImports, POSIX_SEP_RE, sharedDirDepth, resolveImportTarget, KIND_STRENGTH, upsertEdge, buildEdges, ADVICE_ANNOTATION, isGlobalAdviceFile, findGlobalAdvicePaths, DEFAULT_MAX_CANDIDATES, DEFAULT_MAX_SUPPORT_FILES, DEFAULT_TOKEN_BUDGET, SCORE_DIRECT_NEIGHBOR, SCORE_SECOND_DEGREE, SCORE_SIBLING_STEM, SCORE_ANGULAR_TEMPLATE_SIBLING, SCORE_DOMAIN_TOKEN, PENALTY_TEST_VS_NON_TEST, PENALTY_GENERATED, SCORE_GLOBAL_ADVICE, prefilterCandidates, layerFlowBonus, isTest, isGenerated, scoreFor, tokensOf, trimToBudget, toMember, clusterIdFor, createClusterAssembler, CLUSTER_TREE_BUILDER_VERSION, DEFAULT_MODULE_DEPTH, posixDirname, moduleGroupKey, uniqueSortedPaths, memberFingerprint, featureNodeFor, moduleNodeFor, appNodeFor, countCrossModuleEdges, createClusterTreeBuilder, TRANSACTIONAL, TYPE_DECL3, METHOD_NAME2, MUTATION_CALL, LEADING_ANNOTATION2, SPRING_TX_SUPPORT_IMPORT, PROGRAMMATIC_TYPE, PROGRAMMATIC_CALL, INLINE_TEMPLATE_CALL, CONTROL_FLOW_NAMES, maskNonCode, methodNameFromHeader, methodAt, delegatedTargetAt, collectProgrammaticReceivers, readAttr, skipToDeclaration2, countMutations, lineOf25, configuredReadOnly, extractProgrammaticFromFile, extractFromFile2, extractTransactionBoundaries, renderPrDiffPrompt, nullableOptional2, prDiffResponseSchema, createPrDiffReviewer, renderGroupedRulePrompt, confidenceLabelSchema, severitySchema, groupedResponseSchema, labelToConfidence, createGroupedRuleReviewer, renderPerRulePrompt, createPerRuleReviewer, DEFAULT_MAX_TOKENS, SYSTEM_PROMPT, SCHEMA_PROMPT, clip, buildUserPrompt, extractJsonObject, describeUnusableAnswer, createRuntimeAuthHypothesisResolver, DEFAULT_MAX_TOKENS2, SYSTEM_PROMPT2, SCHEMA_PROMPT2, clip2, buildUserPrompt2, describeUnusableAnswer2, createRuntimeDataSeedResolver, endpointSchema, extractJsonObject2, HTTP_METHODS, PARAMETER_KINDS, ENGLISH_REASON_WORDS, ENGLISH_TECHNICAL_WORDS, VIETNAMESE_DIACRITICS, isLikelyEnglishReason, normalizeTriageReason, parseEndpointHint, checkAiConnection;
|
|
37677
|
+
var OLLAMA_DEFAULT_BASE, NETMIND_DEFAULT_BASE, OPENCODE_GO_DEFAULT_BASE, stripTrailingSlash2, buildLanguageModel, resolveModelOverride, pingTarget, shouldUseRawJsonChat, openAICompatibleChatUrl, REASONING_HEADROOM_TOKENS, NETMIND_MINIMAX_M3_MODEL, NETMIND_SMALL_PROMPT_MAX_CHARS, NETMIND_MEDIUM_PROMPT_MAX_CHARS, NETMIND_SMALL_OUTPUT_TOKENS, NETMIND_MEDIUM_OUTPUT_TOKENS, NETMIND_LARGE_OUTPUT_TOKENS, NETMIND_MAX_OUTPUT_TOKENS, supportsNetmindJsonResponseFormat, emptyResponseDiagnostics, effectiveMaxTokensFor, completeRawOpenAICompatibleJsonChat, createAiSdkProvider, createFallbackClient, DEFAULT_MAX_RETRIES, DEFAULT_BASE_DELAY_MS, DEFAULT_MAX_DELAY_MS, DEFAULT_RESET_SAFETY_MS, DEFAULT_JITTER_MS, sleep, isRateLimitError, parseProviderRetryDelayMs, rateLimitRetryDelayMs, createRateLimitRetryClient, numberLines, renderPrompt, cache, loadPromptTemplate, nullableOptional, AI_VIOLATION_MESSAGE_MAX_LENGTH, aiViolationSchema, aiResponseSchema, stripCodeFence, parseAiResponse, createInMemoryCache, VIETNAMESE_OUTPUT_POLICY_VERSION, VIETNAMESE_OUTPUT_INSTRUCTION, TOKEN_BUDGET_WARN_DEFAULT, CHARS_PER_TOKEN, SAFETY_MARGIN, estimateTokens, formatTokenWarning, braceDelta, chunkSourceForAi, renderAuthorizationGuards, CACHE_NAMESPACE, DEFAULT_PROVIDER_RETRY_MAX_RETRIES, DEFAULT_PROVIDER_RETRY_MAX_DELAY_MS, DEFAULT_ADAPTIVE_RETRY_MAX_RETRIES, DEFAULT_ADAPTIVE_CONTEXT_REDUCTION_FACTOR, DEFAULT_ADAPTIVE_TIMEOUT_MULTIPLIER, DEFAULT_ADAPTIVE_MAX_DELAY_MS, DEFAULT_PROVIDER_TIMEOUT_MS, sleep2, providerRetryDelayMs, adaptiveFailureKind, compactClusterContext, findingDedupeKey, dedupeFindings, capFindings, createAiExecutor, PATH_FAST_PATHS, SPRING_BOOT_PATTERNS, ANGULAR_PATTERNS, FLUTTER_PATTERNS, ENTRY_HINTS, ALL_PATTERNS, matchesRule, classifyLayer, classifyLayers, PRIMARY_LAYER_CANDIDATES, TEST_AND_GENERATED, LAYER_SUFFIXES, FILE_SUFFIX_RE, ANY_EXT_RE, dropExt, stripPascalSuffix, normalize2, extractDomainTokens, extractDomainTokensBatch, TRIVIAL_TOKENS, sharesDomainToken, TS_IMPORT_RE, JAVA_IMPORT_RE, extractImports, POSIX_SEP_RE, sharedDirDepth, resolveImportTarget, KIND_STRENGTH, upsertEdge, buildEdges, ADVICE_ANNOTATION, isGlobalAdviceFile, findGlobalAdvicePaths, DEFAULT_MAX_CANDIDATES, DEFAULT_MAX_SUPPORT_FILES, DEFAULT_TOKEN_BUDGET, SCORE_DIRECT_NEIGHBOR, SCORE_SECOND_DEGREE, SCORE_SIBLING_STEM, SCORE_ANGULAR_TEMPLATE_SIBLING, SCORE_DOMAIN_TOKEN, PENALTY_TEST_VS_NON_TEST, PENALTY_GENERATED, SCORE_GLOBAL_ADVICE, prefilterCandidates, layerFlowBonus, isTest, isGenerated, scoreFor, tokensOf, trimToBudget, toMember, clusterIdFor, createClusterAssembler, CLUSTER_TREE_BUILDER_VERSION, DEFAULT_MODULE_DEPTH, posixDirname, moduleGroupKey, uniqueSortedPaths, memberFingerprint, featureNodeFor, moduleNodeFor, appNodeFor, countCrossModuleEdges, createClusterTreeBuilder, TRANSACTIONAL, TYPE_DECL3, METHOD_NAME2, MUTATION_CALL, LEADING_ANNOTATION2, SPRING_TX_SUPPORT_IMPORT, PROGRAMMATIC_TYPE, PROGRAMMATIC_CALL, INLINE_TEMPLATE_CALL, CONTROL_FLOW_NAMES, maskNonCode, methodNameFromHeader, methodAt, delegatedTargetAt, collectProgrammaticReceivers, readAttr, skipToDeclaration2, countMutations, lineOf25, configuredReadOnly, extractProgrammaticFromFile, extractFromFile2, extractTransactionBoundaries, renderPrDiffPrompt, nullableOptional2, prDiffResponseSchema, createPrDiffReviewer, renderGroupedRulePrompt, confidenceLabelSchema, severitySchema, groupedResponseSchema, labelToConfidence, createGroupedRuleReviewer, renderPerRulePrompt, createPerRuleReviewer, DEFAULT_MAX_TOKENS, SYSTEM_PROMPT, SCHEMA_PROMPT, clip, buildUserPrompt, extractJsonObject, describeUnusableAnswer, createRuntimeAuthHypothesisResolver, DEFAULT_MAX_TOKENS2, SYSTEM_PROMPT2, SCHEMA_PROMPT2, clip2, buildUserPrompt2, describeUnusableAnswer2, createRuntimeDataSeedResolver, endpointSchema, extractJsonObject2, HTTP_METHODS, PARAMETER_KINDS, ENGLISH_REASON_WORDS, ENGLISH_TECHNICAL_WORDS, VIETNAMESE_DIACRITICS, isLikelyEnglishReason, normalizeTriageReason, parseEndpointHint, checkAiConnection;
|
|
38001
37678
|
var init_dist4 = __esm({
|
|
38002
37679
|
"../ai-engine/dist/index.js"() {
|
|
38003
37680
|
init_dist();
|
|
@@ -38446,7 +38123,13 @@ The previous attempt returned reasoning but no final answer. Return the final JS
|
|
|
38446
38123
|
}
|
|
38447
38124
|
};
|
|
38448
38125
|
};
|
|
38126
|
+
DEFAULT_MAX_RETRIES = 1;
|
|
38127
|
+
DEFAULT_BASE_DELAY_MS = 1e3;
|
|
38128
|
+
DEFAULT_MAX_DELAY_MS = 3e5;
|
|
38449
38129
|
DEFAULT_RESET_SAFETY_MS = 1e3;
|
|
38130
|
+
DEFAULT_JITTER_MS = 1e3;
|
|
38131
|
+
sleep = (ms) => new Promise((resolveSleep) => setTimeout(resolveSleep, ms));
|
|
38132
|
+
isRateLimitError = (message) => /(?:\bHTTP\s*429\b|\b429\b|rate[ -]?limit|too many requests)/i.test(message);
|
|
38450
38133
|
parseProviderRetryDelayMs = (message, now = Date.now(), resetSafetyMs = DEFAULT_RESET_SAFETY_MS) => {
|
|
38451
38134
|
const resetMatch = message.match(/limit resets at:\s*([^"}\n]+)/i);
|
|
38452
38135
|
if (resetMatch?.[1]) {
|
|
@@ -38475,6 +38158,60 @@ The previous attempt returned reasoning but no final answer. Return the final JS
|
|
|
38475
38158
|
}, 0);
|
|
38476
38159
|
return totalMs > 0 ? Math.ceil(totalMs) : null;
|
|
38477
38160
|
};
|
|
38161
|
+
rateLimitRetryDelayMs = (options) => {
|
|
38162
|
+
if (!isRateLimitError(options.message)) return null;
|
|
38163
|
+
const baseDelayMs = Math.max(1, options.baseDelayMs ?? DEFAULT_BASE_DELAY_MS);
|
|
38164
|
+
const maxDelayMs = Math.max(baseDelayMs, options.maxDelayMs ?? DEFAULT_MAX_DELAY_MS);
|
|
38165
|
+
const random = Math.min(1, Math.max(0, options.random ?? Math.random()));
|
|
38166
|
+
const jitterMs = Math.max(0, options.jitterMs ?? DEFAULT_JITTER_MS);
|
|
38167
|
+
const hintedDelay = parseProviderRetryDelayMs(
|
|
38168
|
+
options.message,
|
|
38169
|
+
options.now ?? Date.now(),
|
|
38170
|
+
options.resetSafetyMs ?? DEFAULT_RESET_SAFETY_MS
|
|
38171
|
+
);
|
|
38172
|
+
const exponentialDelay = Math.min(
|
|
38173
|
+
maxDelayMs,
|
|
38174
|
+
baseDelayMs * 2 ** Math.max(0, options.attempt - 1)
|
|
38175
|
+
);
|
|
38176
|
+
if (hintedDelay !== null && hintedDelay > maxDelayMs) return null;
|
|
38177
|
+
const delayMs = hintedDelay ?? exponentialDelay;
|
|
38178
|
+
return Math.min(maxDelayMs, delayMs + Math.floor(random * jitterMs));
|
|
38179
|
+
};
|
|
38180
|
+
createRateLimitRetryClient = (options) => {
|
|
38181
|
+
const maxRetries = Math.max(0, Math.floor(options.maxRetries ?? DEFAULT_MAX_RETRIES));
|
|
38182
|
+
const sleepFor = options.sleep ?? sleep;
|
|
38183
|
+
const now = options.now ?? Date.now;
|
|
38184
|
+
const random = options.random ?? Math.random;
|
|
38185
|
+
return {
|
|
38186
|
+
name: options.client.name,
|
|
38187
|
+
ping: () => options.client.ping(),
|
|
38188
|
+
async complete(request) {
|
|
38189
|
+
let result = await options.client.complete(request);
|
|
38190
|
+
for (let attempt = 1; !result.ok && attempt <= maxRetries; attempt += 1) {
|
|
38191
|
+
const delayMs = rateLimitRetryDelayMs({
|
|
38192
|
+
message: result.error.message,
|
|
38193
|
+
attempt,
|
|
38194
|
+
now: now(),
|
|
38195
|
+
random: random(),
|
|
38196
|
+
...options.baseDelayMs !== void 0 ? { baseDelayMs: options.baseDelayMs } : {},
|
|
38197
|
+
...options.maxDelayMs !== void 0 ? { maxDelayMs: options.maxDelayMs } : {},
|
|
38198
|
+
...options.resetSafetyMs !== void 0 ? { resetSafetyMs: options.resetSafetyMs } : {},
|
|
38199
|
+
...options.jitterMs !== void 0 ? { jitterMs: options.jitterMs } : {}
|
|
38200
|
+
});
|
|
38201
|
+
if (delayMs === null) break;
|
|
38202
|
+
options.onRetry?.({
|
|
38203
|
+
attempt,
|
|
38204
|
+
maxRetries,
|
|
38205
|
+
delayMs,
|
|
38206
|
+
error: result.error
|
|
38207
|
+
});
|
|
38208
|
+
await sleepFor(delayMs);
|
|
38209
|
+
result = await options.client.complete(request);
|
|
38210
|
+
}
|
|
38211
|
+
return result;
|
|
38212
|
+
}
|
|
38213
|
+
};
|
|
38214
|
+
};
|
|
38478
38215
|
numberLines = (text2) => {
|
|
38479
38216
|
const lines = text2.split("\n");
|
|
38480
38217
|
const maxWidth = String(lines.length).length;
|
|
@@ -48056,8 +47793,7 @@ var init_dist8 = __esm({
|
|
|
48056
47793
|
usesParser: external_exports.boolean().optional(),
|
|
48057
47794
|
usesAstGraph: external_exports.boolean().optional(),
|
|
48058
47795
|
usesTaint: external_exports.boolean().optional(),
|
|
48059
|
-
usesTemplateComponent: external_exports.boolean().optional()
|
|
48060
|
-
usesProjectContext: external_exports.boolean().optional()
|
|
47796
|
+
usesTemplateComponent: external_exports.boolean().optional()
|
|
48061
47797
|
// `check` is a function, can't validate with Zod; we check at runtime.
|
|
48062
47798
|
});
|
|
48063
47799
|
aiConfigSchema = external_exports.object({
|
|
@@ -49246,7 +48982,7 @@ ${validated.error.issues.map((i) => ` - ${i.path.join(".")}: ${i.message}`).joi
|
|
|
49246
48982
|
...anyRule.defaultOptions ?? {},
|
|
49247
48983
|
...resolvedRuleOptions ?? {}
|
|
49248
48984
|
} : {};
|
|
49249
|
-
const cacheKey = cache3
|
|
48985
|
+
const cacheKey = cache3 ? ruleCacheKey(
|
|
49250
48986
|
rule,
|
|
49251
48987
|
file,
|
|
49252
48988
|
rule.usesAstGraph === true ? astGraph?.fingerprint : void 0,
|
|
@@ -49626,8 +49362,8 @@ ${validated.error.issues.map((i) => ` - ${i.path.join(".")}: ${i.message}`).joi
|
|
|
49626
49362
|
"spring-boot/native-query-performance-risk@1",
|
|
49627
49363
|
"spring-boot/cache-consistency-risk@2",
|
|
49628
49364
|
"angular/trackby-required@2",
|
|
49629
|
-
"angular/onpush-required@
|
|
49630
|
-
"angular/no-leaky-subscription@
|
|
49365
|
+
"angular/onpush-required@3",
|
|
49366
|
+
"angular/no-leaky-subscription@6"
|
|
49631
49367
|
];
|
|
49632
49368
|
PERF_PACK_RULES = [
|
|
49633
49369
|
"spring-boot/transaction-holds-remote-call@1",
|
|
@@ -58706,7 +58442,7 @@ var init_authorization_guard_context = __esm({
|
|
|
58706
58442
|
};
|
|
58707
58443
|
}
|
|
58708
58444
|
});
|
|
58709
|
-
var buildOneProvider, resolveActiveModel, buildAiClient, buildContainer;
|
|
58445
|
+
var buildOneProvider, resolveActiveModel, buildAiClient, AI_RATE_LIMIT_RETRY, withRateLimitRetry, buildContainer;
|
|
58710
58446
|
var init_composition = __esm({
|
|
58711
58447
|
"src/composition.ts"() {
|
|
58712
58448
|
init_dist4();
|
|
@@ -58828,9 +58564,26 @@ var init_composition = __esm({
|
|
|
58828
58564
|
}
|
|
58829
58565
|
}
|
|
58830
58566
|
if (chain.length === 0) return null;
|
|
58831
|
-
|
|
58832
|
-
return
|
|
58567
|
+
const client = chain.length === 1 ? chain[0] : createFallbackClient({ providers: chain, logger });
|
|
58568
|
+
return client ? withRateLimitRetry(client, logger) : null;
|
|
58833
58569
|
};
|
|
58570
|
+
AI_RATE_LIMIT_RETRY = {
|
|
58571
|
+
maxRetries: 3,
|
|
58572
|
+
baseDelayMs: 15e3,
|
|
58573
|
+
maxDelayMs: 12e4,
|
|
58574
|
+
jitterMs: 5e3
|
|
58575
|
+
};
|
|
58576
|
+
withRateLimitRetry = (client, logger, sleep5) => createRateLimitRetryClient({
|
|
58577
|
+
client,
|
|
58578
|
+
...AI_RATE_LIMIT_RETRY,
|
|
58579
|
+
...sleep5 ? { sleep: sleep5 } : {},
|
|
58580
|
+
onRetry: ({ attempt, maxRetries, delayMs }) => {
|
|
58581
|
+
logger.warn(
|
|
58582
|
+
{ provider: client.name, retryAttempt: attempt, retryMaxRetries: maxRetries, delayMs },
|
|
58583
|
+
`AI provider rate-limited (HTTP 429); retrying in ${Math.round(delayMs / 1e3)}s`
|
|
58584
|
+
);
|
|
58585
|
+
}
|
|
58586
|
+
});
|
|
58834
58587
|
buildContainer = async (options) => {
|
|
58835
58588
|
const { config, logger, projectPath } = options;
|
|
58836
58589
|
const clock = options.clock ?? new SystemClock();
|
|
@@ -60611,11 +60364,11 @@ var definedBuildValue = (value, fallback) => typeof value === "string" && value.
|
|
|
60611
60364
|
var getCliBuildMetadata = (version2) => ({
|
|
60612
60365
|
version: version2,
|
|
60613
60366
|
gitSha: definedBuildValue(
|
|
60614
|
-
"
|
|
60367
|
+
"45c292a280ad" ,
|
|
60615
60368
|
"unknown"
|
|
60616
60369
|
),
|
|
60617
60370
|
buildTimestamp: definedBuildValue(
|
|
60618
|
-
"2026-
|
|
60371
|
+
"2026-11-27T02:52:58.766Z" ,
|
|
60619
60372
|
"unknown"
|
|
60620
60373
|
),
|
|
60621
60374
|
configSchemaRange: definedBuildValue(
|
|
@@ -61253,7 +61006,7 @@ var resolveAiFlowReviewPromptPath = () => {
|
|
|
61253
61006
|
for (const c of candidates) if (existsSync(c)) return c;
|
|
61254
61007
|
return candidates[0] ?? resolve(here2, "../../../prompt/templates/ai-flow-review.md");
|
|
61255
61008
|
};
|
|
61256
|
-
var
|
|
61009
|
+
var isRateLimitError2 = (error) => JSON.stringify(error ?? {}).includes("Rate limit");
|
|
61257
61010
|
var askAi = async (client, prompt, logger) => {
|
|
61258
61011
|
if (!client) return null;
|
|
61259
61012
|
const retryMax = Math.max(0, Number(process.env.CODE_SENTINEL_AI_FLOW_RETRY_MAX ?? 3) || 0);
|
|
@@ -61273,7 +61026,7 @@ var askAi = async (client, prompt, logger) => {
|
|
|
61273
61026
|
maxTokens: 1500
|
|
61274
61027
|
});
|
|
61275
61028
|
if (!res.ok) {
|
|
61276
|
-
const rateLimited =
|
|
61029
|
+
const rateLimited = isRateLimitError2(res.error);
|
|
61277
61030
|
if (rateLimited && attempt < retryMax) {
|
|
61278
61031
|
logger?.warn(
|
|
61279
61032
|
{},
|
|
@@ -61290,7 +61043,7 @@ var askAi = async (client, prompt, logger) => {
|
|
|
61290
61043
|
}
|
|
61291
61044
|
return parseAiVerdict(res.value.text);
|
|
61292
61045
|
} catch (e) {
|
|
61293
|
-
const rateLimited =
|
|
61046
|
+
const rateLimited = isRateLimitError2(e);
|
|
61294
61047
|
if (rateLimited && attempt < retryMax) {
|
|
61295
61048
|
logger?.warn(
|
|
61296
61049
|
{},
|
|
@@ -62029,7 +61782,7 @@ var WindowsCredentialManagerStore = class {
|
|
|
62029
61782
|
entry;
|
|
62030
61783
|
async read(service, account) {
|
|
62031
61784
|
const bytes = await (await this.entry(service, account)).getSecret();
|
|
62032
|
-
return bytes === void 0
|
|
61785
|
+
return bytes === void 0 ? null : Buffer.from(bytes).toString("utf8");
|
|
62033
61786
|
}
|
|
62034
61787
|
async write(service, account, value) {
|
|
62035
61788
|
await (await this.entry(service, account)).setSecret(Buffer.from(value, "utf8"));
|
|
@@ -65842,7 +65595,7 @@ var openBrowser = async (url) => {
|
|
|
65842
65595
|
else await execFile3("xdg-open", [url]);
|
|
65843
65596
|
};
|
|
65844
65597
|
var credentialStore = () => createPlatformCredentialStore();
|
|
65845
|
-
var
|
|
65598
|
+
var sleep3 = (milliseconds) => new Promise((resolve62) => setTimeout(resolve62, milliseconds));
|
|
65846
65599
|
var defaults = () => ({
|
|
65847
65600
|
store: credentialStore(),
|
|
65848
65601
|
start: startDeviceAuthorization,
|
|
@@ -65850,7 +65603,7 @@ var defaults = () => ({
|
|
|
65850
65603
|
refresh: refreshDeviceCredential,
|
|
65851
65604
|
revoke: revokeDeviceCredential,
|
|
65852
65605
|
openBrowser,
|
|
65853
|
-
sleep,
|
|
65606
|
+
sleep: sleep3,
|
|
65854
65607
|
now: Date.now
|
|
65855
65608
|
});
|
|
65856
65609
|
var runAuthLogin = async (options) => {
|
|
@@ -71645,7 +71398,7 @@ var rulesToRerun = (aiStats) => {
|
|
|
71645
71398
|
}
|
|
71646
71399
|
return ids.sort();
|
|
71647
71400
|
};
|
|
71648
|
-
var
|
|
71401
|
+
var sleep4 = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
71649
71402
|
var runReview = async (options = {}) => {
|
|
71650
71403
|
const target = resolve(options.path ?? process.cwd());
|
|
71651
71404
|
const silent = options.silent === true;
|
|
@@ -72356,7 +72109,7 @@ var runReview = async (options = {}) => {
|
|
|
72356
72109
|
)
|
|
72357
72110
|
);
|
|
72358
72111
|
rerunTracker.reset();
|
|
72359
|
-
if (rerunCfg.delayMs > 0) await
|
|
72112
|
+
if (rerunCfg.delayMs > 0) await sleep4(rerunCfg.delayMs);
|
|
72360
72113
|
const rerun = await reviewProject(
|
|
72361
72114
|
{ ...reviewDeps, aiTracker: rerunTracker },
|
|
72362
72115
|
{
|