mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-21 04:10:47 +02:00
refactor: remove prompt-injection ML classifier
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
d596232248
commit
b6a007a7e3
@@ -165,7 +165,9 @@ touch node_modules/container-only
|
||||
"@huggingface/transformers",
|
||||
"onnxruntime-node",
|
||||
]) expect(productionDependencies).not.toContain(forbidden);
|
||||
expect(packageJson.devDependencies?.["@huggingface/transformers"]).toBeDefined();
|
||||
// The prompt-injection ML classifier was removed, so the huggingface
|
||||
// transformers dep is gone from BOTH production and dev dependencies.
|
||||
expect(packageJson.devDependencies?.["@huggingface/transformers"]).toBeUndefined();
|
||||
|
||||
const bundlePaths = DEFAULT_RUNTIME_BUNDLE.map((entry) => entry.path).join("\n");
|
||||
expect(bundlePaths).not.toMatch(/browserbase|browserless|huggingface|onnxruntime/i);
|
||||
|
||||
Reference in New Issue
Block a user