een-api-toolkit 0.3.20 → 0.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/.claude/agents/docs-accuracy-reviewer.md +146 -0
  2. package/.claude/agents/een-auth-agent.md +168 -0
  3. package/.claude/agents/een-devices-agent.md +294 -0
  4. package/.claude/agents/een-events-agent.md +375 -0
  5. package/.claude/agents/een-media-agent.md +256 -0
  6. package/.claude/agents/een-setup-agent.md +126 -0
  7. package/.claude/agents/een-users-agent.md +239 -0
  8. package/.claude/agents/test-runner.md +144 -0
  9. package/CHANGELOG.md +138 -30
  10. package/docs/AI-CONTEXT.md +169 -1700
  11. package/docs/ai-reference/AI-AUTH.md +288 -0
  12. package/docs/ai-reference/AI-DEVICES.md +569 -0
  13. package/docs/ai-reference/AI-EVENTS.md +1745 -0
  14. package/docs/ai-reference/AI-MEDIA.md +974 -0
  15. package/docs/ai-reference/AI-SETUP.md +267 -0
  16. package/docs/ai-reference/AI-USERS.md +255 -0
  17. package/examples/vue-event-subscriptions/package-lock.json +8 -1
  18. package/examples/vue-event-subscriptions/package.json +1 -0
  19. package/examples/vue-event-subscriptions/src/App.vue +1 -41
  20. package/examples/vue-event-subscriptions/src/composables/useHlsPlayer.ts +272 -0
  21. package/examples/vue-event-subscriptions/src/main.ts +3 -3
  22. package/examples/vue-event-subscriptions/src/stores/connection.ts +101 -0
  23. package/examples/vue-event-subscriptions/src/stores/mediaSession.ts +79 -0
  24. package/examples/vue-event-subscriptions/src/views/LiveEvents.vue +349 -88
  25. package/examples/vue-event-subscriptions/src/views/Logout.vue +6 -0
  26. package/examples/vue-event-subscriptions/src/views/Subscriptions.vue +0 -13
  27. package/examples/vue-events/package-lock.json +8 -1
  28. package/examples/vue-events/package.json +1 -0
  29. package/examples/vue-events/src/components/EventsModal.vue +269 -47
  30. package/examples/vue-events/src/composables/useHlsPlayer.ts +272 -0
  31. package/examples/vue-events/src/stores/mediaSession.ts +79 -0
  32. package/package.json +10 -2
  33. package/scripts/setup-agents.ts +116 -0
package/CHANGELOG.md CHANGED
@@ -2,62 +2,170 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## [0.3.20] - 2026-01-19
5
+ ## [0.3.22] - 2026-01-22
6
6
 
7
7
  ### Release Summary
8
8
 
9
- #### PR #62: feat: Add EventSubscriptions API with SSE support and example app
9
+ #### PR #64: Release v0.3.20: Add media buttons to event modal lightboxes
10
10
  ## Summary
11
- - Implement EventSubscriptions API endpoints (list, get, create, delete)
12
- - Add SSE connection helper `connectToEventSubscription()` for real-time events
13
- - Create vue-event-subscriptions example app with full CRUD and live event viewer
14
- - Add session refresh UI (token expiry countdown, refresh status banner)
15
- - Add modal window for detailed event viewing in Live Events page
11
+
12
+ - Added Preview, HD Image, and Video buttons to event modal lightboxes in vue-events and vue-event-subscriptions example apps
13
+ - Implemented proper authentication for media fetching using `getRecordedImage` and HLS player with Authorization headers
14
+ - Created `useHlsPlayer` composable for both apps following vue-alerts-metrics pattern
16
15
 
17
16
  ## Changes
18
- ### Toolkit (`src/eventSubscriptions/`)
19
- - `service.ts` - CRUD operations and SSE connection with fetch/ReadableStream
20
- - `types.ts` - EventSubscription, SSEConnection, SSEEvent types
21
- - Unit tests with 337 total tests passing
22
17
 
23
- ### Example App (`examples/vue-event-subscriptions/`)
24
- - Subscriptions management (list, create, delete)
25
- - Live Events page with real-time SSE event display
26
- - Event details modal with JSON data viewer
27
- - Token expiry countdown and session refresh UI
18
+ - **vue-events**: Updated EventsModal.vue with media buttons and HLS video support
19
+ - **vue-event-subscriptions**: Updated LiveEvents.vue with media buttons and HLS video support
20
+ - Added hls.js dependency to both example apps
21
+ - Created composables/useHlsPlayer.ts in both apps
22
+
23
+ ## Test Plan
24
+
25
+ - [x] Unit tests: 341 passed
26
+ - [x] Build: successful
27
+ - [x] E2E tests for all 8 example apps passed (123 total):
28
+ - vue-users: 14 passed
29
+ - vue-cameras: 13 passed
30
+ - vue-bridges: 13 passed
31
+ - vue-events: 16 passed
32
+ - vue-feeds: 12 passed
33
+ - vue-media: 20 passed
34
+ - vue-alerts-metrics: 20 passed
35
+ - vue-event-subscriptions: 15 passed
36
+
37
+ ## Version
38
+
39
+ v0.3.20
40
+
41
+ ## Commits
42
+
43
+ - 8f11b04 feat: Add media buttons to event modal lightboxes in vue-events and vue-event-subscriptions
44
+
45
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
46
+
47
+ #### PR #65: feat: Restructure AI documentation with specialized agents
48
+ ## Summary
49
+
50
+ Restructures the AI documentation from a single monolithic file into domain-specific documents with specialized Claude agents for context-efficient AI assistance.
51
+
52
+ ### Changes
53
+
54
+ **Documentation Split (7 files):**
55
+ - `AI-CONTEXT.md` - Overview and navigation (entry point)
56
+ - `AI-SETUP.md` - Vue 3 scaffolding, Pinia, Vite configuration
57
+ - `AI-AUTH.md` - OAuth flow, tokens, route guards
58
+ - `AI-USERS.md` - User management API
59
+ - `AI-DEVICES.md` - Cameras & Bridges API
60
+ - `AI-MEDIA.md` - Media, Feeds, Live Video, HLS
61
+ - `AI-EVENTS.md` - Events, Alerts, Metrics, SSE subscriptions
62
+
63
+ **Specialized Agents (6 new agents):**
64
+ - `een-setup-agent` - Vue 3 project setup assistance
65
+ - `een-auth-agent` - OAuth authentication help
66
+ - `een-users-agent` - User management features
67
+ - `een-devices-agent` - Camera and bridge operations
68
+ - `een-media-agent` - Video and media troubleshooting
69
+ - `een-events-agent` - Events and real-time streaming
70
+
71
+ **CLI Tool:**
72
+ - Added `npx een-setup-agents` command for easy agent installation
73
+ - Copies agents to `.claude/agents/` for automatic discovery
74
+
75
+ **Generation Script:**
76
+ - Refactored to generate split files by default
77
+ - `--single` flag for legacy monolithic output
78
+ - Extracts examples from actual Vue components
79
+
80
+ ### Benefits
81
+
82
+ | Metric | Before | After (typical task) |
83
+ |--------|--------|---------------------|
84
+ | Tokens per task | ~15-18K | ~5-8K |
85
+ | Context preserved | Limited | Substantial |
86
+ | Agent specialization | None | 6 domain agents |
28
87
 
29
88
  ## Test Results
30
- - **Lint**: Passed (1 warning)
31
- - **Unit Tests**: 337 passed
32
- - **Build**: Passed
33
- - **E2E Tests**: vue-event-subscriptions passed (15 tests)
34
- - Other example apps had port conflict issues (pre-existing infrastructure issue)
89
+
90
+ - **Lint:** Passed (1 pre-existing warning)
91
+ - **Unit Tests:** ✅ 341 passed
92
+ - **Build:** Successful
93
+ - **E2E Tests:** 70 passed across 8 example apps
35
94
 
36
95
  ## Version
37
- `0.3.17`
96
+
97
+ `0.3.20`
38
98
 
39
99
  ## Commits
40
- - 6aa1332 feat: Add EventSubscriptions API with SSE support and example app
100
+
101
+ - `8e1cc78` feat: Restructure AI documentation into domain-specific files with specialized agents
41
102
 
42
103
  ---
43
- 🤖 Generated with [Claude Code](https://claude.com/claude-code)
104
+
105
+ 🤖 Generated with [Claude Code](https://claude.ai/code)
106
+
107
+ #### PR #66: Release v0.3.20: AI Documentation Restructure
108
+ ## Summary
109
+
110
+ This release restructures the AI documentation for improved context efficiency:
111
+
112
+ - **Split AI-CONTEXT.md** into 7 domain-specific documents (~2-4K tokens each vs 15K+ monolithic)
113
+ - **Added 6 specialized Claude agents** for domain-specific assistance
114
+ - **New CLI tool**: `npx een-setup-agents` for easy agent installation in consumer projects
115
+ - **Code quality fixes** addressing Gemini code review feedback
116
+
117
+ ## Changes
118
+
119
+ ### New Files
120
+ - `.claude/agents/` - 6 specialized agents (auth, users, devices, media, events, setup)
121
+ - `docs/ai-reference/` - 6 domain-specific AI reference documents
122
+ - `scripts/setup-agents.ts` - CLI tool for agent installation
123
+
124
+ ### Modified
125
+ - `docs/AI-CONTEXT.md` - Now serves as overview with navigation
126
+ - `scripts/generate-ai-context.ts` - Rewritten to support split file generation
127
+ - `package.json` - Added bin entry and updated files array
128
+ - `CLAUDE.md` - Added agent documentation section
129
+
130
+ ### Commits
131
+ - `8e1cc78` feat: Restructure AI documentation into domain-specific files with specialized agents
132
+ - `407db5f` fix: Address Gemini code review feedback
133
+ - `ecd6cfd` Merge pull request #65
134
+
135
+ ## Test Results
136
+
137
+ - **Lint**: ✅ Passed (1 pre-existing warning)
138
+ - **Unit Tests**: ✅ 341 passed
139
+ - **Build**: ✅ Successful
140
+ - **E2E Tests**: ✅ 70 passed across 8 example apps
141
+
142
+ ## Version
143
+
144
+ `0.3.20`
145
+
146
+ ---
147
+
148
+ 🤖 Generated with [Claude Code](https://claude.ai/code)
44
149
 
45
150
 
46
151
  ### Detailed Changes
47
152
 
48
153
  #### Features
49
- - feat: Add EventSubscriptions API with SSE support and example app
154
+ - feat: Restructure AI documentation into domain-specific files with specialized agents
155
+ - feat: Add media buttons to event modal lightboxes in vue-events and vue-event-subscriptions
50
156
 
51
157
  #### Bug Fixes
52
- - fix: Address code review feedback from PR #63
53
- - fix: Address code review recommendations from PR #62
158
+ - fix: Add XSS protection for SVG overlays in events agent
159
+ - fix: Address Gemini code review feedback
160
+ - fix: Address code review feedback from PR #64
54
161
 
55
162
  #### Other Changes
56
- - docs: Add EventSubscriptions to documentation and fix Pinia version
163
+ - chore: Bump version to 0.3.21 and update Husky triggers
164
+ - refactor: Move media session state from module-level to Pinia store
57
165
 
58
166
  ### Links
59
167
  - [npm package](https://www.npmjs.com/package/een-api-toolkit)
60
- - [Full Changelog](https://github.com/klaushofrichter/een-api-toolkit/compare/v0.3.16...v0.3.20)
168
+ - [Full Changelog](https://github.com/klaushofrichter/een-api-toolkit/compare/v0.3.20...v0.3.22)
61
169
 
62
170
  ---
63
- *Released: 2026-01-19 05:31:27 CST*
171
+ *Released: 2026-01-22 19:45:17 CST*