尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证TTB alcohol label verification prototype: AI-powered verify, audit, and batch workflows
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Prototype for TTB-style alcohol label review. Agents can verify a label against expected application fields, run a compliance-only audit, or process a batch of labels from a CSV.
GOVERNMENT WARNING: heading.STONE'S THROW vs Stone's Throw, become warnings instead of hard failures.generateText + Output.objectAI_GATEWAY_MODEL (defaults to openai/gpt-5.5)pnpm install
cp .env.example .env.local
pnpm dev
Open http://localhost:3000.
For AI Gateway authentication, either:
vercel link and vercel env pull .env.local to use Vercel-provisioned auth, orAI_GATEWAY_API_KEY in .env.local.Optional model override:
AI_GATEWAY_MODEL=openai/gpt-5.5
The batch page includes a downloadable template. The required column is imageFile; it must match
the uploaded image filename exactly. Filenames must be unique within a batch. Supported expected-field columns:
rowId,imageFile,beverageType,brandName,classType,alcoholContent,netContents,producerNameAddress,countryOfOrigin,governmentWarning
Prototype limits are enforced server-side: up to 50 images per batch, 4 MB per image, 80 MB total image bytes, 512 KB CSV files, 300 CSV rows, and 2,000 characters per CSV cell.
Sample labels are in public/samples/ (served at /samples/...). Use the PNG files in the app; the SVG files are included as
editable source artwork.
old-tom-clean.png: clean spirits label that should mostly pass.stones-throw-casing.png: brand casing/punctuation scenario for warning-tier review.bad-warning.png: malformed warning heading and paraphrased statutory text.angled-photo.png: angled/glare-style label to exercise image-quality handling.The AI model only extracts visible text into a typed schema. Verification and compliance decisions are plain TypeScript:
src/lib/extract.ts: one vision + structured-output model call.src/lib/compare.ts: deterministic expected-vs-actual comparison.src/lib/compliance.ts: TTB-inspired required-field and warning-statement checks.src/app/api/batch/route.ts: concurrency-limited NDJSON streaming for batch results.This split keeps the app explainable, fast, and easier to audit than asking the model to make every compliance decision.
NEXT_PUBLIC_ secret is required.openai/gpt-5.5) for extraction; the browser never receives provider credentials. A production deployment would need a reviewed data-retention agreement and logging policy for the selected provider and gateway configuration.=, +, -, and @ to reduce CSV injection risk when reports are opened in Excel or similar tools.SECURITY.md for the prototype security policy and production gaps.Sarah's 5-second usability target informed the design:
pnpm build
vercel
Enable AI Gateway for the Vercel project and configure auth via OIDC (vercel env pull) or
AI_GATEWAY_API_KEY.
The repository includes GitHub Actions workflows for a professional review and release path:
.github/workflows/ci.yml runs pnpm lint, pnpm test, pnpm build, and a high-severity production dependency audit on pull requests and pushes to main..github/workflows/deploy.yml runs the same local quality gate, builds with the Vercel CLI, and deploys prebuilt artifacts when the required Vercel secrets are configured. Pull requests get preview deployments and a PR comment with the preview URL; pushes to main deploy production. If the deploy secrets are absent, the workflow exits successfully after the quality gate and writes a clear skip notice..github/workflows/codeql.yml runs GitHub CodeQL analysis on pull requests, pushes to main, and weekly scheduled scans..github/dependabot.yml keeps npm and GitHub Actions dependencies current with weekly update PRs..github/pull_request_template.md and .github/CODEOWNERS add review hygiene for security-sensitive changes.Required repository secrets for deployment:
VERCEL_TOKEN
VERCEL_ORG_ID
VERCEL_PROJECT_ID
The Vercel project also needs AI Gateway auth configured for preview and production, either with
Vercel-provisioned credentials or AI_GATEWAY_API_KEY.
Recommended GitHub repository settings:
CI / Lint, Test, Build, CI / Dependency Audit, and CodeQL checks before merging to main.preview and production GitHub environments. Add approval protection to production if this is used beyond the take-home demo.pnpm lint
pnpm test
pnpm build
pnpm check
If AI Gateway credentials are available, also run one sample through /verify and one multi-image
batch from /batch.
Deployed at https://new-atp.vercel.app. The home page links to the single-label and batch workflows;
the single-label page has a Load sample button that prefills the included old-tom-clean.png
test label for one-click review.