@eyeglass/types 0.1.4 → 0.1.6

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/README.md CHANGED
@@ -16,7 +16,7 @@ import type { SemanticSnapshot, FocusPayload, InteractionStatus } from '@eyeglas
16
16
 
17
17
  ## Types
18
18
 
19
- - **`SemanticSnapshot`** - Complete context for a selected UI element (framework info, accessibility, geometry, styles)
19
+ - **`SemanticSnapshot`** - Complete context for a selected UI element (framework info, accessibility, geometry, styles, DOM neighborhood)
20
20
  - **`FocusPayload`** - Request payload sent from browser to bridge
21
21
  - **`InteractionStatus`** - Status of an interaction (`idle` | `pending` | `fixing` | `success` | `failed`)
22
22
  - **`ActivityEvent`** - Real-time events sent to the browser (status updates, thoughts, actions, questions)
package/dist/index.d.ts CHANGED
@@ -41,6 +41,26 @@ export interface SemanticSnapshot {
41
41
  fontFamily: string;
42
42
  zIndex: string;
43
43
  };
44
+ neighborhood?: {
45
+ parents: Array<{
46
+ tagName: string;
47
+ className?: string;
48
+ styles: {
49
+ display: string;
50
+ position: string;
51
+ flexDirection?: string;
52
+ alignItems?: string;
53
+ justifyContent?: string;
54
+ gap?: string;
55
+ gridTemplate?: string;
56
+ };
57
+ }>;
58
+ children: Array<{
59
+ tagName: string;
60
+ className?: string;
61
+ count?: number;
62
+ }>;
63
+ };
44
64
  timestamp: number;
45
65
  url: string;
46
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyeglass/types",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Shared TypeScript types for Eyeglass",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",