Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Role-scoped Supabase reporting guidance and agent API
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Versioned, agent-readable instructions and source for the active Lightning Supabase reporting interfaces.
Every agent must read AGENTS.md. The runtime contract is available from the authenticated agent-reporting catalog route.查看完整 README ↗Owner-approved 2026-10-12: past on-road/working truck counts use settlements for the requested week. Stored Gross > 0 means the physical truck was on road that settlement week; Gross = 0 means off duty/not on road. Count distinct nonblank Truck, not rows, excluding settlement allocation buckets 1/2/3. A null Gross is unknown, not zero; negative Gross has no approved active/off-duty classification: disclose both as unresolved coverage, never silently classify them.
Weeks run Tuesday–Monday. period_from and period_to are inclusive bounds on From, not To; for one week set both to the same Tuesday. Resolve an explicit past date without assignment wording to its containing settlement week and disclose the date-to-week resolution and exact Tuesday–Monday period. Use historical settlement Owner/Dispatch, exact owner/dispatch filters, and Owner OR shared_owner matching; never substitute current truck attribution. Paginate all rows and reconcile fetched count with total_count. Across multiple weeks, union distinct qualifying trucks; weekly counts are not additive.
This is week-level activity, not exact-day status, GPS movement or proof of full-week driving. DriverPay on_road_at is only for explicitly requested assignment overlap, not the default historical on-road count. Current/now/today operational status still uses the fresh approved live Ninox feed unchanged. Report source, filters, resolved period, row/distinct counts, pagination, Gross coverage and source freshness.
For Drivers Insurance, insured-driver lists/counts, drivers with/under insurance, driver-insurance breakdowns or an individual's current insurance, fetch https://lightningtransport.ninoxdb.com/share/x9f4rn221pibyhx3lwup2f8otfzfy8kijpk2?locale=en&utcoffset=-240 immediately before each answer, credential-free. Follow live driver-insurance contract. Validate the complete array within 30 seconds overall and 2 MiB; default to all rows and exact Insurance labels, not a hard-coded insurer. The approved native/client query_drivers_insurance returns all required and optional Ninox keys when present in chat and Excel; omit absent keys and never invent values. The full public field set is First Name, Last Name, Insurance, CDL Number, Gender, DOB, State, Hire of Date, and Years_of_Experience. Treat DOB/CDL as sensitive; avoid unnecessary repetition outside the requested roster output. Preserve missing-CDL rows, disclose roster entries versus verified distinct CDL identity/duplicates, and never deduplicate by name. Failure is unknown/null, not zero; no cached/Supabase fallback. Current roster only: no historical coverage, premiums, policy validity or uninsured complement. This is direct-source guidance, not a new gateway/MCP report or Jev route.
Current on-road / working trucks (owner-approved 2026-10-08): fetch https://lightningtransport.ninoxdb.com/share/eno5u22ebn2qdn215dpzwn02squ5wsixob8f?locale=en&utcoffset=-240 immediately before each answer, credential-free; follow live on-road contract. This primary most-current source answers current/now/today operational status. Fully validate all seven keys and exact Status=On The Road Working within 30 seconds overall and 2 MiB; count distinct truck_number, use exact source owner/dispatcher/insurance, and state fetch-start/completion timestamps. Failure means unknown/null, never zero; no cached/DriverPay fallback, GPS movement claim or fleet/off-duty complement. Only explicitly requested assignment overlap uses fully paginated driver_pay?on_road_at=D (Out Date <= D, Return Date > D; null returns and return day excluded).
Versioned, agent-readable instructions and source for the active Lightning Supabase reporting interfaces.
Every agent must read AGENTS.md. The runtime contract is available from the authenticated agent-reporting catalog route.
Grok Bot and Cursor agents: the reporting dashboard lives in apps/reporting-dashboard. Link https://lightning-settlement-dashboard.vercel.app for Settlements, /out-schedule for Out Schedule, /trucks-return for Trucks Return, and /diesel for Diesel; do not generate a replacement one-off HTML file. Conventions: docs/html-reporting.md. Copy skills/reporting-html-shadcn/assets/report-ui.css only for other static reports that are not this dashboard.
Outside_Repairs (125 live-verified physical columns), including shared-owner attribution for settlement and fuel reporting.agent-reporting Edge Function.reporting-query Edge Function.apps/reporting-dashboard) for Grok Bot / Cursor agents, with Settlements (weekly/monthly review, rankings, fuel-by-owner, KPIs), Out Schedule, Trucks Return, Diesel, fixed Tabs navigation, and evidence footers.docs/chatgpt-plugin.md.agent-reporting — approved AI service accountsGET https://aaqquwhdglueqlnbifvn.supabase.co/functions/v1/agent-reportingx-agent-key authentication; never place the key in a URL, browser, prompt, log, or repository.AGENT_ALLOW_SENSITIVE_<n>=false only to restrict a particular key. Road/outside/not-company-shop repairs route to outside_repairs, not internal-shop LTR Invoices; confirm the deployed catalog includes the report for your assigned key before querying.?report=catalog&compact=true, then load selected report metadata. Canonical MCP catalog({}) is compact-first; explicit compact=false retains full discovery. Hermes wrappers must apply compact at the HTTP layer before their output-size guard and reload their installed code; skill synchronization alone does not patch a wrapper. See docs/agent-reporting.md and api/openapi.yaml.reporting-query — individual Supabase Auth membershipsCurrent “trucks in yard”, “off duty”, and “not working” questions use the owner-approved live Ninox JSON source, fetched fresh immediately before reporting without credentials. Every included truck is off duty/not on road, even Ready To Go or Outside/vendor trucks; general yard questions include the full feed. Count distinct truck_number after complete bounded validation. This is current state only, not an on-road complement or historical list; failures are unknown, not zero. The legacy insurance-choice formula remains unsupported. No new agent-reporting report, dedicated MCP tool, or fast-path implementation is introduced.
Raw public tables remain protected by RLS. This public knowledge repository contains no business rows, passwords, API keys, JWTs, refresh tokens, database credentials, or service-role/secret keys.
uv run --with pyyaml --with jsonschema python -m unittest discover -s tests
python3 -m unittest discover -s chatgpt-plugin/mcp-server/tests
uv run --with openapi-spec-validator python -m openapi_spec_validator api/openapi.yaml
git diff --check
tests/test_departure_contract.py validates synthetic schema envelopes, failure/null-total constraints, document links and the feedback-schema mirror. No tests pin live departure counts: the share is volatile. The installed-client checklist is separate from repository tests.
docs/knowledge-maintenance.md; user corrections use the versioned sanitized event contract and are not approved rules until verified.data-reporting-kit-sync job so updated rules reach local skill bundles.docs/offboarding.md to revoke access.Departure totals use the same inclusive Out Date window on both DriverPay and live Ninox Schedule_Teams. Normalize only truck-key format, union distinct nonblank trucks, and report source, overlap, source-only, and combined counts. Never add source counts, count assignment/driver rows, apply return exclusions, or use the returning-trucks formula. Use departures only after the deployed authenticated catalog confirms it; out_schedule is the planned list, not a combined total. See departure contract.
The packaged helper and ChatGPT MCP source are prepared; installed clients remain not integrated until deployed and verified. See client rollout checklist. No deployment, installed-runtime modification, credential or operational-row publication is implied.