uidex 0.6.0 → 0.7.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.
Files changed (39) hide show
  1. package/README.md +3 -3
  2. package/dist/cli/cli.cjs +1510 -1244
  3. package/dist/cli/cli.cjs.map +1 -1
  4. package/dist/cloud/index.cjs +385 -175
  5. package/dist/cloud/index.cjs.map +1 -1
  6. package/dist/cloud/index.d.cts +192 -4
  7. package/dist/cloud/index.d.ts +192 -4
  8. package/dist/cloud/index.js +377 -177
  9. package/dist/cloud/index.js.map +1 -1
  10. package/dist/headless/index.cjs +82 -255
  11. package/dist/headless/index.cjs.map +1 -1
  12. package/dist/headless/index.d.cts +5 -11
  13. package/dist/headless/index.d.ts +5 -11
  14. package/dist/headless/index.js +82 -257
  15. package/dist/headless/index.js.map +1 -1
  16. package/dist/index.cjs +721 -1053
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +149 -160
  19. package/dist/index.d.ts +149 -160
  20. package/dist/index.js +741 -1068
  21. package/dist/index.js.map +1 -1
  22. package/dist/react/index.cjs +729 -1000
  23. package/dist/react/index.cjs.map +1 -1
  24. package/dist/react/index.d.cts +99 -86
  25. package/dist/react/index.d.ts +99 -86
  26. package/dist/react/index.js +745 -1015
  27. package/dist/react/index.js.map +1 -1
  28. package/dist/scan/index.cjs +1518 -1237
  29. package/dist/scan/index.cjs.map +1 -1
  30. package/dist/scan/index.d.cts +209 -12
  31. package/dist/scan/index.d.ts +209 -12
  32. package/dist/scan/index.js +1515 -1236
  33. package/dist/scan/index.js.map +1 -1
  34. package/package.json +22 -21
  35. package/templates/claude/SKILL.md +71 -0
  36. package/templates/claude/references/audit.md +43 -0
  37. package/templates/claude/{rules.md → references/conventions.md} +25 -28
  38. package/templates/claude/audit.md +0 -43
  39. /package/templates/claude/{api.md → references/api.md} +0 -0
@@ -98,7 +98,7 @@ interface Registry {
98
98
  setReports(kind: EntityKind, id: string, reports: readonly ReportRecord[]): void;
99
99
  getReports(kind: EntityKind, id: string): readonly ReportRecord[];
100
100
  listReportKeys(): readonly string[];
101
- archiveReport?: (reportId: string, reason?: string) => void | Promise<void>;
101
+ closeReport?: (reportId: string, status?: string) => void | Promise<void>;
102
102
  onReportsChange(cb: () => void): () => void;
103
103
  }
104
104
 
@@ -115,15 +115,13 @@ interface ViewStackEntry {
115
115
  ref: EntityRef | null;
116
116
  }
117
117
  interface SessionSnapshot {
118
- hover: EntityRef | null;
119
- selection: EntityRef | null;
120
118
  stack: ViewStackEntry[];
121
119
  /** Sticky overlay highlight. Set by "Highlight Element" actions; cleared on Esc. */
122
120
  pinnedHighlight: EntityRef | null;
123
- inspectorActive: boolean;
121
+ /** Mirrored from the mode store; the surface mode the session is currently in. */
122
+ mode: SurfaceMode;
124
123
  theme: ThemePreference;
125
124
  resolvedTheme: ResolvedTheme;
126
- ingestActive: boolean;
127
125
  /**
128
126
  * Identity for the local user. Set once at session creation; gates realtime
129
127
  * features (cursor labels, presence) and auto-populates report attribution.
@@ -138,7 +136,6 @@ interface NavigationState {
138
136
  interface NavigationActions {
139
137
  push(entry: ViewStackEntry): void;
140
138
  pop(): void;
141
- replace(entry: ViewStackEntry): void;
142
139
  clear(): void;
143
140
  reset(stack: ViewStackEntry[]): void;
144
141
  }
@@ -149,7 +146,6 @@ type NavigationStore = StoreApi<NavigationState> & {
149
146
  type SurfaceMode = "idle" | "inspecting" | "palette" | "viewing";
150
147
  interface ModeSnapshot {
151
148
  mode: SurfaceMode;
152
- inspectorActive: boolean;
153
149
  }
154
150
  interface ModeTransitions {
155
151
  openPalette(): void;
@@ -175,11 +171,11 @@ type SessionStore = StoreApi<SessionState> & {
175
171
  readonly nav: NavigationStore;
176
172
  readonly mode: ModeStore;
177
173
  readonly highlight: HighlightActions;
178
- select(ref: EntityRef | null): void;
179
174
  setTheme(theme: ThemePreference, resolved?: ResolvedTheme): void;
180
- setIngest(active: boolean): void;
181
175
  };
182
176
 
177
+ type Corner = "top-left" | "top-right" | "bottom-left" | "bottom-right";
178
+
183
179
  interface OverlayShowOptions {
184
180
  label?: string;
185
181
  color?: string;
@@ -190,8 +186,6 @@ interface OverlayShowOptions {
190
186
  backdrop?: boolean;
191
187
  }
192
188
 
193
- type Corner = "top-left" | "top-right" | "bottom-left" | "bottom-right";
194
-
195
189
  interface CreateHeadlessOptions {
196
190
  theme?: ThemePreference;
197
191
  resolvedTheme?: ResolvedTheme;
@@ -98,7 +98,7 @@ interface Registry {
98
98
  setReports(kind: EntityKind, id: string, reports: readonly ReportRecord[]): void;
99
99
  getReports(kind: EntityKind, id: string): readonly ReportRecord[];
100
100
  listReportKeys(): readonly string[];
101
- archiveReport?: (reportId: string, reason?: string) => void | Promise<void>;
101
+ closeReport?: (reportId: string, status?: string) => void | Promise<void>;
102
102
  onReportsChange(cb: () => void): () => void;
103
103
  }
104
104
 
@@ -115,15 +115,13 @@ interface ViewStackEntry {
115
115
  ref: EntityRef | null;
116
116
  }
117
117
  interface SessionSnapshot {
118
- hover: EntityRef | null;
119
- selection: EntityRef | null;
120
118
  stack: ViewStackEntry[];
121
119
  /** Sticky overlay highlight. Set by "Highlight Element" actions; cleared on Esc. */
122
120
  pinnedHighlight: EntityRef | null;
123
- inspectorActive: boolean;
121
+ /** Mirrored from the mode store; the surface mode the session is currently in. */
122
+ mode: SurfaceMode;
124
123
  theme: ThemePreference;
125
124
  resolvedTheme: ResolvedTheme;
126
- ingestActive: boolean;
127
125
  /**
128
126
  * Identity for the local user. Set once at session creation; gates realtime
129
127
  * features (cursor labels, presence) and auto-populates report attribution.
@@ -138,7 +136,6 @@ interface NavigationState {
138
136
  interface NavigationActions {
139
137
  push(entry: ViewStackEntry): void;
140
138
  pop(): void;
141
- replace(entry: ViewStackEntry): void;
142
139
  clear(): void;
143
140
  reset(stack: ViewStackEntry[]): void;
144
141
  }
@@ -149,7 +146,6 @@ type NavigationStore = StoreApi<NavigationState> & {
149
146
  type SurfaceMode = "idle" | "inspecting" | "palette" | "viewing";
150
147
  interface ModeSnapshot {
151
148
  mode: SurfaceMode;
152
- inspectorActive: boolean;
153
149
  }
154
150
  interface ModeTransitions {
155
151
  openPalette(): void;
@@ -175,11 +171,11 @@ type SessionStore = StoreApi<SessionState> & {
175
171
  readonly nav: NavigationStore;
176
172
  readonly mode: ModeStore;
177
173
  readonly highlight: HighlightActions;
178
- select(ref: EntityRef | null): void;
179
174
  setTheme(theme: ThemePreference, resolved?: ResolvedTheme): void;
180
- setIngest(active: boolean): void;
181
175
  };
182
176
 
177
+ type Corner = "top-left" | "top-right" | "bottom-left" | "bottom-right";
178
+
183
179
  interface OverlayShowOptions {
184
180
  label?: string;
185
181
  color?: string;
@@ -190,8 +186,6 @@ interface OverlayShowOptions {
190
186
  backdrop?: boolean;
191
187
  }
192
188
 
193
- type Corner = "top-left" | "top-right" | "bottom-left" | "bottom-right";
194
-
195
189
  interface CreateHeadlessOptions {
196
190
  theme?: ThemePreference;
197
191
  resolvedTheme?: ResolvedTheme;