een-api-toolkit 0.3.43 → 0.3.47
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.
- package/.claude/agents/docs-accuracy-reviewer.md +35 -5
- package/.claude/agents/een-automations-agent.md +264 -0
- package/.claude/agents/een-devices-agent.md +5 -7
- package/.claude/agents/een-events-agent.md +30 -16
- package/.claude/agents/een-media-agent.md +12 -15
- package/.claude/agents/een-users-agent.md +2 -2
- package/CHANGELOG.md +6 -8
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +815 -0
- package/dist/index.js +986 -719
- package/dist/index.js.map +1 -1
- package/docs/AI-CONTEXT.md +17 -1
- package/docs/ai-reference/AI-AUTH.md +1 -1
- package/docs/ai-reference/AI-AUTOMATIONS.md +833 -0
- package/docs/ai-reference/AI-DEVICES.md +1 -1
- package/docs/ai-reference/AI-EVENTS.md +1 -1
- package/docs/ai-reference/AI-GROUPING.md +128 -66
- package/docs/ai-reference/AI-MEDIA.md +1 -1
- package/docs/ai-reference/AI-SETUP.md +1 -1
- package/docs/ai-reference/AI-USERS.md +1 -1
- package/examples/vue-automations/.env.example +11 -0
- package/examples/vue-automations/README.md +205 -0
- package/examples/vue-automations/e2e/app.spec.ts +83 -0
- package/examples/vue-automations/e2e/auth.spec.ts +468 -0
- package/examples/vue-automations/index.html +13 -0
- package/examples/vue-automations/package-lock.json +1722 -0
- package/examples/vue-automations/package.json +29 -0
- package/examples/vue-automations/playwright.config.ts +46 -0
- package/examples/vue-automations/src/App.vue +122 -0
- package/examples/vue-automations/src/main.ts +23 -0
- package/examples/vue-automations/src/router/index.ts +61 -0
- package/examples/vue-automations/src/views/Automations.vue +692 -0
- package/examples/vue-automations/src/views/Callback.vue +76 -0
- package/examples/vue-automations/src/views/Home.vue +172 -0
- package/examples/vue-automations/src/views/Login.vue +33 -0
- package/examples/vue-automations/src/views/Logout.vue +66 -0
- package/examples/vue-automations/src/vite-env.d.ts +1 -0
- package/examples/vue-automations/tsconfig.json +21 -0
- package/examples/vue-automations/tsconfig.node.json +10 -0
- package/examples/vue-automations/vite.config.ts +12 -0
- package/examples/vue-event-subscriptions/e2e/auth.spec.ts +8 -12
- package/package.json +1 -1
- package/scripts/setup-agents.ts +38 -19
package/docs/AI-CONTEXT.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# EEN API Toolkit - AI Reference
|
|
2
2
|
|
|
3
|
-
> **Version:** 0.3.
|
|
3
|
+
> **Version:** 0.3.47
|
|
4
4
|
>
|
|
5
5
|
> This documentation is optimized for AI assistants. It provides focused, domain-specific
|
|
6
6
|
> references to help you understand and use the een-api-toolkit efficiently.
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
| Working with layouts | [AI-GROUPING.md](./ai-reference/AI-GROUPING.md) | ~3K |
|
|
21
21
|
| Live video, images, HLS playback | [AI-MEDIA.md](./ai-reference/AI-MEDIA.md) | ~4K |
|
|
22
22
|
| Events, alerts, metrics, SSE | [AI-EVENTS.md](./ai-reference/AI-EVENTS.md) | ~3.5K |
|
|
23
|
+
| Automation rules, alert actions | [AI-AUTOMATIONS.md](./ai-reference/AI-AUTOMATIONS.md) | ~4K |
|
|
23
24
|
|
|
24
25
|
## Specialized Agents
|
|
25
26
|
|
|
@@ -34,6 +35,7 @@ Specialized agents are available in `.claude/agents/` for domain-specific tasks:
|
|
|
34
35
|
| `een-grouping-agent` | Layouts CRUD, camera pane management, layout settings |
|
|
35
36
|
| `een-media-agent` | Live video, camera previews, HLS playback, recorded images |
|
|
36
37
|
| `een-events-agent` | Events, alerts, metrics, real-time SSE subscriptions |
|
|
38
|
+
| `een-automations-agent` | Automation rules, alert condition rules, alert actions |
|
|
37
39
|
|
|
38
40
|
**How to Use Agents:**
|
|
39
41
|
|
|
@@ -73,6 +75,7 @@ Then follow the context files and instructions specified within.
|
|
|
73
75
|
| [vue-events](../examples/vue-events/) | Events with bounding boxes | `src/components/EventsModal.vue` |
|
|
74
76
|
| [vue-alerts-metrics](../examples/vue-alerts-metrics/) | Event metrics and alerts | `src/components/MetricsChart.vue` |
|
|
75
77
|
| [vue-event-subscriptions](../examples/vue-event-subscriptions/) | Real-time SSE streaming | `src/views/LiveEvents.vue` |
|
|
78
|
+
| [vue-automations](../examples/vue-automations/) | Automation rules listing | `src/views/Automations.vue` |
|
|
76
79
|
|
|
77
80
|
---
|
|
78
81
|
|
|
@@ -164,6 +167,19 @@ Then follow the context files and instructions specified within.
|
|
|
164
167
|
| `deleteEventSubscription(id)` | Delete a subscription |
|
|
165
168
|
| `connectToEventSubscription(sseUrl, options)` | Connect to SSE stream |
|
|
166
169
|
|
|
170
|
+
### Automations
|
|
171
|
+
| Function | Purpose |
|
|
172
|
+
|----------|---------|
|
|
173
|
+
| `listEventAlertConditionRules(params?)` | List event alert condition rules |
|
|
174
|
+
| `getEventAlertConditionRuleFieldValues(params?)` | Get filter values for rules |
|
|
175
|
+
| `getEventAlertConditionRule(id)` | Get a specific event alert condition rule |
|
|
176
|
+
| `listAlertConditionRules(params?)` | List alert condition rules |
|
|
177
|
+
| `getAlertConditionRule(id, params?)` | Get a specific alert condition rule |
|
|
178
|
+
| `listAlertActionRules(params?)` | List alert action rules |
|
|
179
|
+
| `getAlertActionRule(id)` | Get a specific alert action rule |
|
|
180
|
+
| `listAlertActions(params?)` | List alert actions |
|
|
181
|
+
| `getAlertAction(id)` | Get a specific alert action |
|
|
182
|
+
|
|
167
183
|
### Utilities
|
|
168
184
|
| Function | Purpose |
|
|
169
185
|
|----------|---------|
|