返回目录
模型与 MCP 插件

smartstaff-ai-deepseek-plugin

YanKaFei/smartstaff-ai-deepseek-plugin

A multi-tenant restaurant workforce SaaS test framework with a DeepSeek planning layer: accounts, marketplace, capacity forecast and admin console.

Stars
2
Forks
0
Issues
0
更新
18 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:YanKaFei/smartstaff-ai-deepseek-plugin

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

SmartStaff AI SaaS account console

SmartStaff AI

Multi-tenant restaurant workforce SaaS with a DeepSeek-powered planning layer.
deepseek · restaurant-staffing · multi-tenant · saas · part-time-marketplace

tests schema status languages

Languages: EN · ZH · KO · JA · FR

What is this?

SmartStaff AI is a test-framework restaurant workforce SaaS. It connects:

  • organizations, stores, managers and part-time staff in one account system;
  • a cross-store part-time marketplace for open shifts and applications;
  • a deterministic capacity engine that forecasts staffing needs;
  • a DeepSeek layer that explains the plan without changing hard headcount constraints;
  • an admin console with first-run DeepSeek API configuration.

It is intentionally a test framework, not a finished commercial product. The repository is meant to be installed, inspected, evaluated and extended.

Product modules

Module What it does
SaaS accounts Email registration, verification, login, password reset, organizations, memberships, roles and invitations.
Organization console Owner/admin manage members, roles, stores, invitations, ownership transfer and first-store onboarding.
Part-time marketplace Staff browse open shifts across stores in their organization, apply, withdraw and see manager decisions.
Manager approval Managers review applicants, approve/reject, and approval creates a confirmed shift and reconciles demand.
AI staffing Deterministic forecast + DeepSeek explanation + structured JSON validation.
DeepSeek setup First-run API wizard, encrypted write-only key, model/timeout/budget settings, real connection test and usage.
Shadow-safe operations AI configuration and marketplace applications never bypass shadow/pause gates for real shifts.

UI

SaaS account dashboard
Account console — organizations, memberships, sessions.
Organization console
Organization — members, invitations, stores.
Part-time marketplace
Part-time marketplace — cross-store open shifts and applications.
DeepSeek first-run setup
DeepSeek first run — configure and test a real API connection.

Quick start

git clone https://github.com/YanKaFei/smartstaff-ai-deepseek-plugin.git
cd smartstaff-ai-deepseek-plugin
npm run setup
npm run build
npm run seed
npm start

Node.js 24+ recommended. Full install notes: docs/PLUGIN-INSTALL.md.

SaaS account flow

  1. Register with email + organization name.
  2. Verify email (dev token or configured email provider).
  3. Log in and open the account/org console.
  4. Invite an admin, manager or staff member.
  5. Create a store inside the organization.
  6. Enter the store as owner, or assign a manager.
  7. Manager publishes demand; staff apply through the marketplace.

Email delivery is implemented through an outbox + Resend adapter. Without RESEND_API_KEY, EMAIL_FROM and a verified sender domain, the system reports PROVIDER_NOT_CONFIGURED and does not claim delivery.

DeepSeek setup

The first admin login opens the API wizard when no credential exists.

  • Base URL: https://api.deepseek.com
  • Models: deepseek-flash, deepseek-v4-pro
  • API key: AES-256-GCM encrypted at rest, write-only
  • Real HTTPS connection test with status, JSON, finish_reason, model, tokens and latency
  • Stable errors: AI_AUTH_FAILED, AI_TIMEOUT, AI_RESPONSE_INVALID, AI_NOT_CONFIGURED
  • AI failure, disablement or budget exhaustion falls back to deterministic planning

Architecture

organization / members / stores
        │
        ▼
part-time marketplace ── apply ──► manager approval ──► confirmed shift
        │
        ▼
deterministic capacity engine ── hard headcount constraints
        │
        ▼
unified AI service ──► DeepSeek API ──► JSON + Zod validation
        │
        ▼
structured explanation / manager UI

Tenant and security model

  • Every manager route checks an active membership in the store organization.
  • Staff routes require an active staff membership.
  • The marketplace filters open shifts by the staff member's organization.
  • Organization owner/admin can invite, suspend, transfer ownership and create stores.
  • Sessions store device metadata (UA/IP); users can revoke other sessions.
  • Account, organization, invitation, session and AI changes are audited.
  • Shadow mode and paused stores cannot create real shifts from marketplace approval.

Tests

npm test

Current: 124/124 tests.

The original 109-test baseline is preserved; added tests cover account registration/verification/reset, invitations, organization roles, tenant isolation, ownership transfer, session management, email outbox and marketplace workflows.

Evidence: docs/r8-evidence/test-output-r8.txt

Current limits

  • Email provider credentials are not configured; real production verification/invite/reset delivery is blocked. Dev tokens work.
  • Existing phone-based demo users need an explicit account merge/link operation; a migration script exists but has not been run against a real store.
  • Billing/plans are not implemented; plan is a data field only.
  • Production PostgreSQL/KMS/multi-instance/monitoring are future work.
  • Real-store pilot data and real manager feedback remain pending.

DeepSeek / search tags

deepseek · deepseek-api · deepseek-plugin · ai-plugin · restaurant-staffing · workforce-management · multi-tenant-saas · part-time-marketplace · shift-scheduling · nodejs · typescript · vue3 · multilingual

Roadmap

  • Configure a real transactional email provider and verify SPF/DKIM.
  • Link legacy phone accounts to email accounts.
  • Complete the owner first-store setup wizard.
  • Member removal/data-retention policy.
  • Billing and subscription plans.
  • Production deployment hardening and real-store pilot.

License

License TBD. Published as a test framework for evaluation and extension.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、llm-plugin、deepseek-api、deepseek-harness、deepseek-plugin。