Skip to content

Add notification-kit SDK with client and server exports#1

Open
jonmumm wants to merge 3 commits intomainfrom
feat/notification-kit-sdk
Open

Add notification-kit SDK with client and server exports#1
jonmumm wants to merge 3 commits intomainfrom
feat/notification-kit-sdk

Conversation

@jonmumm
Copy link
Copy Markdown
Member

@jonmumm jonmumm commented Mar 12, 2026

Summary

  • Implements @open-game-system/notification-kit package with three subpath exports: . (client core), ./react (React bindings), and ./server (server-side notification client)
  • Client SDK detects OGS WebView environment and retrieves device IDs via the app-bridge global
  • Server SDK provides createNotificationClient for sending push notifications through the OGS API
  • Built with tsup producing dual ESM/CJS output with full TypeScript type declarations

Test plan

  • Verify npm run build produces correct output in dist/
  • Verify npm run typecheck passes with no errors
  • Verify subpath exports resolve correctly in a consuming project
  • Test client SDK in an OGS WebView environment
  • Test server SDK against the OGS notification API

🤖 Generated with Claude Code

AI Feature Agent and others added 3 commits March 12, 2026 00:20
Implements the core @open-game-system/notification-kit package with:
- Client SDK (.) for OGS WebView detection and device ID retrieval
- React bindings (./react) with NotificationProvider and useNotifications hook
- Server SDK (./server) with createNotificationClient for sending push notifications
- Dual ESM/CJS build via tsup with full TypeScript declarations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove unused `i` parameter from results.map callback to fix
TypeScript noUnusedParameters error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit:
- Seeds AGENTS.md and CLAUDE.md symlink
- Adds docs/architecture.md, lessons.md, and quality.md
- Sets up GitHub Actions CI workflow with dev/prod publish jobs
- Configures vitest and adds 100% logic coverage tests for core, server, and React
@github-actions
Copy link
Copy Markdown

📦 Dev version published: @open-game-system/notification-kit@0.20260313.0-pr1

Install via GitHub Packages (ensure .npmrc is configured):

npm install @open-game-system/notification-kit@0.20260313.0-pr1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant