Adapt Pinscope to DeepSeek, auto datasheets, and a shared library.

Based on manvalan/pinscope main. Default LLM is DeepSeek with local
skills and PDF ingest. Datasheets are fetched from LCSC/TI, stored in
the component library, and review extracts abs-max with a deeper
checklist. Adds scripts/update-pinscope.sh for the production host.
This commit is contained in:
Cursor Agent
2026-08-27 23:06:23 +00:00
parent ab1c5b081c
commit 48246f31bd
53 changed files with 3005 additions and 314 deletions
+14 -1
View File
@@ -7,7 +7,20 @@ import {
const extra = (hosts: string[]) => (hosts.length ? ` ${hosts.join(" ")}` : "");
function apiOrigin(): string[] {
const raw = process.env.NEXT_PUBLIC_API_URL;
if (!raw) return [];
try {
return [new URL(raw).origin];
} catch {
return [];
}
}
const connectHosts = [...CSP_CONNECT_HOSTS, ...apiOrigin()];
const nextConfig: NextConfig = {
allowedDevOrigins: ["127.0.0.1", "localhost"],
serverExternalPackages: ["pdfjs-dist"],
turbopack: {
resolveAlias: {
@@ -36,7 +49,7 @@ const nextConfig: NextConfig = {
"img-src 'self' data: https: blob:",
"font-src 'self' data: https://vercel.live https://assets.vercel.com https://fonts.gstatic.com",
"connect-src 'self' blob: https://storage.googleapis.com https://vercel.live wss://ws-us3.pusher.com" +
extra(CSP_CONNECT_HOSTS),
extra(connectHosts),
"frame-src 'self' https://vercel.live" + extra(CSP_FRAME_HOSTS),
"worker-src 'self' blob:",
].join("; "),