Skip to content

Commit e75e18f

Browse files
Zie619claude
andcommitted
Fix blog image generation with curated Unsplash images
- Replace placeholder.co fallback with topic-mapped Unsplash photo URLs - Add getTopicImage() for deterministic image selection per topic/title - Add SVG gradient fallback generator for edge cases - generateFeaturedImage() now always returns valid URL (never null) - 14 topics with 5 curated images each + generic fallback pool Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 03a7984 commit e75e18f

23 files changed

+4452
-0
lines changed

vscode-extension/.eslintrc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 2022,
6+
"sourceType": "module"
7+
},
8+
"plugins": ["@typescript-eslint"],
9+
"extends": [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/recommended"
12+
],
13+
"rules": {
14+
"@typescript-eslint/naming-convention": [
15+
"warn",
16+
{
17+
"selector": "import",
18+
"format": ["camelCase", "PascalCase"]
19+
}
20+
],
21+
"@typescript-eslint/semi": "warn",
22+
"curly": "warn",
23+
"eqeqeq": "warn",
24+
"no-throw-literal": "warn",
25+
"semi": "off"
26+
},
27+
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
28+
}

vscode-extension/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
out
2+
dist
3+
node_modules
4+
.vscode-test/
5+
*.vsix
6+
.DS_Store
7+
*.log
8+
.env

vscode-extension/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-exact=true
2+
package-lock=true

vscode-extension/.vscodeignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.vscode/**
2+
.vscode-test/**
3+
src/**
4+
.gitignore
5+
.yarnrc
6+
vsc-extension-quickstart.md
7+
**/tsconfig.json
8+
**/.eslintrc.json
9+
**/*.map
10+
**/*.ts
11+
node_modules/**
12+
out/test/**
13+
.DS_Store
14+
*.vsix

vscode-extension/CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Change Log
2+
3+
All notable changes to the "ai-bom-scanner" extension will be documented in this file.
4+
5+
## [0.1.0] - 2025-02-12
6+
7+
### Added
8+
9+
- Initial release of AI-BOM Security Scanner for VS Code
10+
- Scan workspace and individual files for AI/ML components
11+
- Problems panel integration with diagnostics
12+
- Inline decorations showing risk scores and severity
13+
- Interactive sidebar with results organized by severity
14+
- Summary panel with scan statistics
15+
- Status bar integration
16+
- Configurable severity threshold filtering
17+
- Deep scan mode with AST analysis
18+
- Scan on save option
19+
- Auto-install support for ai-bom CLI
20+
- Support for Python, JavaScript, TypeScript, YAML, JSON, Dockerfiles
21+
- Detection of 25+ AI SDKs and frameworks
22+
- Risk scoring (0-100) with severity levels
23+
- OWASP LLM Top 10 category mapping
24+
- Gutter icons and hover tooltips
25+
- Navigate to component locations in code
26+
- Output channel for debugging

0 commit comments

Comments
 (0)