@uptimizr/playcanvas 1.0.2 → 1.0.4
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/AGENTS.md +102 -0
- package/dist/uptimizr-playcanvas.global.js +37 -32
- package/dist/uptimizr-playcanvas.js +37 -32
- package/llms.txt +23 -0
- package/package.json +8 -6
package/llms.txt
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @uptimizr/playcanvas
|
|
2
|
+
|
|
3
|
+
> The PlayCanvas connector for Uptimizr. Registers as an sdk-core collector and captures camera
|
|
4
|
+
> pose, pointer move/click/buttons, camera gestures, mesh picks, FPS, asset loads, and opt-in
|
|
5
|
+
> attention channels. `playcanvas` is a peer dependency read structurally, never bundled.
|
|
6
|
+
|
|
7
|
+
## Docs
|
|
8
|
+
|
|
9
|
+
- [Package reference](./README.md): `trackScene`, advanced composition, sampling/fidelity, scene proxy, PlayCanvas adaptations.
|
|
10
|
+
- [Agent guide](./AGENTS.md): rules and canonical usage for AI agents.
|
|
11
|
+
- [Connector guide](https://uptimizr.com/docs/connectors/playcanvas/): the docs-site walkthrough.
|
|
12
|
+
- [Integration & API reference](https://github.com/RaananW/Uptimizr/blob/main/docs/integration.md): track and query the data.
|
|
13
|
+
- [Architecture Decision Records](https://github.com/RaananW/Uptimizr/tree/main/docs/adr): privacy model (0003), input-source-agnostic events (0011), sampling & fidelity (0012), coordinate frame & connector provenance (0018), keyboard input actions (0023), scene actors (0027), world-space gaze (0030), pointer lock (0034).
|
|
14
|
+
|
|
15
|
+
## Key exports
|
|
16
|
+
|
|
17
|
+
- `trackScene(app, cameraEntity, options)` — one-call integration; returns the `UptimizrClient`.
|
|
18
|
+
- `playcanvasCollector(options)` — the collector for manual composition (`client.use(...)`).
|
|
19
|
+
- `readDeviceCaps(app)`, `readGraphics(app)`, `readConnector(overrides)`,
|
|
20
|
+
`readSceneMeta(app, camera)`, `classifyCamera(camera)` — the `session_start` provenance blocks.
|
|
21
|
+
- `scanSceneProxy(app, options)` — per-entity world-AABB scene proxy (spatial heatmap backdrop).
|
|
22
|
+
- `createSceneRaycaster(app, cameraEntity)`, `createGazeRaycaster(app, cameraEntity, options)` — hit-resolution probes.
|
|
23
|
+
- `toVec3`, `clamp01` — vector helpers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uptimizr/playcanvas",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "PlayCanvas connector for Uptimizr — captures camera, pointer, mesh, and perf events as an sdk-core collector.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"uptimizr",
|
|
@@ -37,19 +37,21 @@
|
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|
|
39
39
|
"README.md",
|
|
40
|
-
"LICENSE"
|
|
40
|
+
"LICENSE",
|
|
41
|
+
"AGENTS.md",
|
|
42
|
+
"llms.txt"
|
|
41
43
|
],
|
|
42
44
|
"peerDependencies": {
|
|
43
45
|
"playcanvas": "^2.0.0"
|
|
44
46
|
},
|
|
45
47
|
"dependencies": {
|
|
46
|
-
"@uptimizr/schema": "1.
|
|
47
|
-
"@uptimizr/sdk-core": "1.1.
|
|
48
|
+
"@uptimizr/schema": "1.2.0",
|
|
49
|
+
"@uptimizr/sdk-core": "1.1.1"
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
50
52
|
"esbuild": "^0.28.2",
|
|
51
|
-
"playcanvas": "2.
|
|
52
|
-
"vitest": "^
|
|
53
|
+
"playcanvas": "2.22.2",
|
|
54
|
+
"vitest": "^5.0.1"
|
|
53
55
|
},
|
|
54
56
|
"scripts": {
|
|
55
57
|
"build": "tsc -p tsconfig.json && pnpm run bundle && pnpm run bundle:global",
|