notification-service
Use or maintain Gnosi's platform notification dispatcher and its legacy public import. Preserve independent database, per-device Markdown and best-effort OS channels.
- License 许可
- AGPL-3.0
- 所属仓库
- ismigar/Gnosi
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- notification-service
- description
- Use or maintain Gnosi's platform notification dispatcher and its legacy public import. Preserve independent database, per-device Markdown and best-effort OS channels.
02 资源文件 1
03 SKILL.md 正文
Notification Service Skill
Overview
This skill provides the legacy public import for Gnosi's unified notification
dispatcher. The canonical implementation lives in
backend/platform/notifications.py; this skill facade preserves existing
automation imports without making application runtime depend on a skill script.
Protocol
The service should be used by other background services (Sync, Backup, Rules) to inform the user about events or failures.
Usage
from backend.platform.notifications import notify
notify("Sync Complete", "All contacts are up to date.", level="SUCCESS")
Channels
- DB (Database): Saves to the
notificationstable through the management database service; do not hardcode a database filename. - MD (Markdown): Appends to
${GNOSI_DATA_DIR}/logs/notifications.md, using the platform default when the variable is unset. This path is always per-device and never assumes OneDrive, Google Drive, Nextcloud, Dropbox, or another sync provider. - OS (macOS): Displays a system notification bubble.
Maintenance
- Ensure the
notificationstable exists in the management DB. - The
notifications.mdfile is automatically initialized if missing. - One failing channel must not prevent the remaining channels from receiving the event.
- The macOS channel is best effort; absence or failure of
osascriptreturnsFalsewithout breaking database or Markdown persistence.
04 同仓库更多 Skills
zotero-sync-compatibility
Preserve the historical Zotero reference-table configuration path after Gnosi replaced bidirectional Zotero synchronization with its native reference manager.
zotero-schema
Generate Gnosi's Python and TypeScript item-type constants from the repository-pinned Zotero schema, or perform an explicitly requested pinned schema refresh. Use for mapping or generated-constant maintenance, not runtime downloads.
vault-core
Preserve Gnosi vault identifiers, internal links and active-vault context during file or metadata changes. Use for vault integrity work, not blanket normalization or cleanup of user documents.
translate-row
Translate configured table-row fields and Markdown into language children, updating existing translations in place. Use for the explicit translate-row action or maintenance of its provider adapters.
translate-page
Translate a Vault page title and Markdown body into language children, updating existing translations and preserving Gnosi directives. Use for the explicit translate-page action or Markdown segmentation maintenance.
technical-documentation
Generate and validate Gnosi's engineering portal from reviewed guides and deterministic source catalogs. Use for source-traceable documentation updates and pre-PR gates; never translate generated catalogs with a model.