@agent-analytics/paperclip-live-analytics-plugin 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Agent Analytics
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # Agent Analytics Live for Paperclip
2
+
3
+ Thin live-monitor plugin for Paperclip companies that want Agent Analytics signals where operators already work.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npx paperclipai plugin install @agent-analytics/paperclip-live-analytics-plugin
9
+ ```
10
+
11
+ ## What ships in v1
12
+
13
+ - `page`: company-level live operator view
14
+ - `dashboardWidget`: compact live summary
15
+ - `settingsPage`: login-first auth, explicit asset mapping, rollout controls
16
+ - Worker-owned Agent Analytics auth, `/live` polling, `/stream` SSE fan-out, and company-scoped live cache
17
+
18
+ ## Package name
19
+
20
+ `@agent-analytics/paperclip-live-analytics-plugin`
21
+
22
+ ## Local status
23
+
24
+ This package is scaffolded inside the main Agent Analytics workspace so it can be implemented and reviewed in one place. It is structured to move into its own standalone repo without code changes.
25
+
26
+ ## Scripts
27
+
28
+ ```bash
29
+ cd paperclip-live-analytics-plugin
30
+ npm test
31
+ npm run build
32
+ npm pack
33
+ ```
34
+
35
+ `npm test` only exercises the dependency-light worker/shared logic. `npm run build` expects the React/Vite dependencies in `package.json`.
36
+
37
+ ## Publish checklist
38
+
39
+ ```bash
40
+ cd paperclip-live-analytics-plugin
41
+ npm install
42
+ npm test
43
+ npm run build
44
+ npm publish --access public
45
+ ```
46
+
47
+ The package is configured for public scoped npm publishing.
48
+
49
+ ## Files
50
+
51
+ - `paperclip-plugin.manifest.json`: Paperclip-facing manifest contract
52
+ - `src/worker/`: worker setup, auth, live polling, SSE fan-out, state persistence
53
+ - `src/ui/`: React surfaces for page, widget, and settings
54
+ - `docs/`: operator and maintainer docs shipped with the plugin
55
+
56
+ ## Local standalone repo
57
+
58
+ This directory is intended to become its own repository at:
59
+
60
+ `https://github.com/Agent-Analytics/paperclip-live-analytics-plugin`