@almadar/ui 2.12.6 → 2.13.1
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/dist/{chunk-TSETXL2E.js → chunk-2XXSUIOK.js} +3 -0
- package/dist/{chunk-WGJIL4YR.js → chunk-3CP74CBL.js} +525 -525
- package/dist/{chunk-4ZBSL37D.js → chunk-MNMASFYN.js} +212 -212
- package/dist/{chunk-GTIAVPI5.js → chunk-X2ZDE63F.js} +1 -1
- package/dist/{chunk-AX45OCIB.js → chunk-XF7GGUTH.js} +3 -3
- package/dist/{chunk-DKQN5FVU.js → chunk-YLKXEXBP.js} +24 -24
- package/dist/{chunk-HJJIE4K5.js → chunk-YYCP5CD7.js} +28 -13
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +9 -9
- package/dist/context/index.js +2 -2
- package/dist/hooks/index.d.ts +61 -61
- package/dist/hooks/index.js +3 -3
- package/dist/lib/index.d.ts +174 -174
- package/dist/lib/index.js +1 -1
- package/dist/locales/index.js +1 -1
- package/dist/providers/index.js +5 -5
- package/dist/runtime/index.js +6 -6
- package/package.json +1 -1
- package/themes/arctic.css +6 -6
- package/themes/copper.css +2 -2
- package/themes/ember.css +6 -6
- package/themes/forest.css +2 -2
- package/themes/lavender.css +2 -2
- package/themes/midnight.css +2 -2
- package/themes/minimalist.css +7 -7
- package/themes/neon.css +6 -6
- package/themes/ocean.css +2 -2
- package/themes/rose.css +2 -2
- package/themes/sand.css +6 -6
- package/themes/slate.css +6 -6
- package/themes/sunset.css +2 -2
- package/dist/{cn-C_ATNPvi.d.ts → parseContentSegments-BZrQRvgK.d.ts} +144 -144
package/themes/copper.css
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
/* Typography - Heavier weights, functional */
|
|
73
73
|
--font-family:
|
|
74
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
74
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
75
75
|
--font-weight-normal: 500;
|
|
76
76
|
--font-weight-medium: 600;
|
|
77
77
|
--font-weight-bold: 700;
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
|
|
166
166
|
/* Typography - Heavier weights, functional */
|
|
167
167
|
--font-family:
|
|
168
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
168
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
169
169
|
--font-weight-normal: 500;
|
|
170
170
|
--font-weight-medium: 600;
|
|
171
171
|
--font-weight-bold: 700;
|
package/themes/ember.css
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
/* Border radius - Controlled, not too rounded */
|
|
27
27
|
--radius-none: 0px;
|
|
28
28
|
--radius-sm: 4px;
|
|
29
|
-
--radius-md:
|
|
30
|
-
--radius-lg:
|
|
29
|
+
--radius-md: 8px;
|
|
30
|
+
--radius-lg: 12px;
|
|
31
31
|
--radius-xl: 12px;
|
|
32
32
|
--radius-full: 9999px;
|
|
33
33
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
/* Typography - Bold, heavy */
|
|
74
74
|
--font-family:
|
|
75
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
75
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
76
76
|
--font-weight-normal: 500;
|
|
77
77
|
--font-weight-medium: 600;
|
|
78
78
|
--font-weight-bold: 800;
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
/* Border radius - Controlled, not too rounded */
|
|
123
123
|
--radius-none: 0px;
|
|
124
124
|
--radius-sm: 4px;
|
|
125
|
-
--radius-md:
|
|
126
|
-
--radius-lg:
|
|
125
|
+
--radius-md: 8px;
|
|
126
|
+
--radius-lg: 12px;
|
|
127
127
|
--radius-xl: 12px;
|
|
128
128
|
--radius-full: 9999px;
|
|
129
129
|
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
|
|
169
169
|
/* Typography - Bold, heavy */
|
|
170
170
|
--font-family:
|
|
171
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
171
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
172
172
|
--font-weight-normal: 500;
|
|
173
173
|
--font-weight-medium: 600;
|
|
174
174
|
--font-weight-bold: 800;
|
package/themes/forest.css
CHANGED
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
/* Typography - Natural, grounded */
|
|
74
74
|
--font-family:
|
|
75
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
75
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
76
76
|
--font-weight-normal: 400;
|
|
77
77
|
--font-weight-medium: 500;
|
|
78
78
|
--font-weight-bold: 600;
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
|
|
169
169
|
/* Typography - Natural, grounded */
|
|
170
170
|
--font-family:
|
|
171
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
171
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
172
172
|
--font-weight-normal: 400;
|
|
173
173
|
--font-weight-medium: 500;
|
|
174
174
|
--font-weight-bold: 600;
|
package/themes/lavender.css
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
/* Typography - Clean, slightly loose */
|
|
71
71
|
--font-family:
|
|
72
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
72
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
73
73
|
--font-weight-normal: 400;
|
|
74
74
|
--font-weight-medium: 500;
|
|
75
75
|
--font-weight-bold: 600;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
|
|
164
164
|
/* Typography */
|
|
165
165
|
--font-family:
|
|
166
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
166
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
167
167
|
--font-weight-normal: 400;
|
|
168
168
|
--font-weight-medium: 500;
|
|
169
169
|
--font-weight-bold: 600;
|
package/themes/midnight.css
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
/* Typography - Wide, elegant */
|
|
72
72
|
--font-family:
|
|
73
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
73
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
74
74
|
--font-weight-normal: 300;
|
|
75
75
|
--font-weight-medium: 450;
|
|
76
76
|
--font-weight-bold: 600;
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
|
|
165
165
|
/* Typography */
|
|
166
166
|
--font-family:
|
|
167
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
167
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
168
168
|
--font-weight-normal: 300;
|
|
169
169
|
--font-weight-medium: 450;
|
|
170
170
|
--font-weight-bold: 600;
|
package/themes/minimalist.css
CHANGED
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
/* Border radius - Gentle curves */
|
|
24
24
|
--radius-none: 0px;
|
|
25
25
|
--radius-sm: 4px;
|
|
26
|
-
--radius-md:
|
|
27
|
-
--radius-lg:
|
|
26
|
+
--radius-md: 10px;
|
|
27
|
+
--radius-lg: 14px;
|
|
28
28
|
--radius-xl: 16px;
|
|
29
29
|
--radius-full: 9999px;
|
|
30
30
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
--color-muted: #f4f4f5;
|
|
49
49
|
--color-muted-foreground: #71717a;
|
|
50
50
|
|
|
51
|
-
--color-background: #
|
|
51
|
+
--color-background: #f8fafc;
|
|
52
52
|
--color-foreground: #18181b;
|
|
53
53
|
--color-card: #ffffff;
|
|
54
54
|
--color-card-foreground: #18181b;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
/* Typography - Light, elegant */
|
|
71
71
|
--font-family:
|
|
72
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
72
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
73
73
|
--font-weight-normal: 400;
|
|
74
74
|
--font-weight-medium: 500;
|
|
75
75
|
--font-weight-bold: 600;
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
/* Border radius - Gentle curves */
|
|
118
118
|
--radius-none: 0px;
|
|
119
119
|
--radius-sm: 4px;
|
|
120
|
-
--radius-md:
|
|
121
|
-
--radius-lg:
|
|
120
|
+
--radius-md: 10px;
|
|
121
|
+
--radius-lg: 14px;
|
|
122
122
|
--radius-xl: 16px;
|
|
123
123
|
--radius-full: 9999px;
|
|
124
124
|
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
|
|
164
164
|
/* Typography */
|
|
165
165
|
--font-family:
|
|
166
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
166
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
167
167
|
--font-weight-normal: 400;
|
|
168
168
|
--font-weight-medium: 500;
|
|
169
169
|
--font-weight-bold: 600;
|
package/themes/neon.css
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
/* Border radius - Sharp, tech aesthetic */
|
|
27
27
|
--radius-none: 0px;
|
|
28
28
|
--radius-sm: 2px;
|
|
29
|
-
--radius-md:
|
|
30
|
-
--radius-lg:
|
|
29
|
+
--radius-md: 6px;
|
|
30
|
+
--radius-lg: 10px;
|
|
31
31
|
--radius-xl: 6px;
|
|
32
32
|
--radius-full: 9999px;
|
|
33
33
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
/* Typography - Wide, tech */
|
|
74
74
|
--font-family:
|
|
75
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
75
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
76
76
|
--font-weight-normal: 500;
|
|
77
77
|
--font-weight-medium: 600;
|
|
78
78
|
--font-weight-bold: 800;
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
/* Border radius - Sharp, tech aesthetic */
|
|
125
125
|
--radius-none: 0px;
|
|
126
126
|
--radius-sm: 2px;
|
|
127
|
-
--radius-md:
|
|
128
|
-
--radius-lg:
|
|
127
|
+
--radius-md: 6px;
|
|
128
|
+
--radius-lg: 10px;
|
|
129
129
|
--radius-xl: 6px;
|
|
130
130
|
--radius-full: 9999px;
|
|
131
131
|
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
|
|
171
171
|
/* Typography - Wide, tech */
|
|
172
172
|
--font-family:
|
|
173
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
173
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
174
174
|
--font-weight-normal: 500;
|
|
175
175
|
--font-weight-medium: 600;
|
|
176
176
|
--font-weight-bold: 800;
|
package/themes/ocean.css
CHANGED
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
/* Typography - Clean, spacious */
|
|
74
74
|
--font-family:
|
|
75
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
75
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
76
76
|
--font-weight-normal: 400;
|
|
77
77
|
--font-weight-medium: 500;
|
|
78
78
|
--font-weight-bold: 600;
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
|
|
169
169
|
/* Typography - Clean, spacious */
|
|
170
170
|
--font-family:
|
|
171
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
171
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
172
172
|
--font-weight-normal: 400;
|
|
173
173
|
--font-weight-medium: 500;
|
|
174
174
|
--font-weight-bold: 600;
|
package/themes/rose.css
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
/* Typography - Light, elegant */
|
|
71
71
|
--font-family:
|
|
72
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
72
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
73
73
|
--font-weight-normal: 300;
|
|
74
74
|
--font-weight-medium: 450;
|
|
75
75
|
--font-weight-bold: 600;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
|
|
164
164
|
/* Typography */
|
|
165
165
|
--font-family:
|
|
166
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
166
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
167
167
|
--font-weight-normal: 300;
|
|
168
168
|
--font-weight-medium: 450;
|
|
169
169
|
--font-weight-bold: 600;
|
package/themes/sand.css
CHANGED
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
/* Border radius - Natural, soft */
|
|
25
25
|
--radius-none: 0px;
|
|
26
26
|
--radius-sm: 6px;
|
|
27
|
-
--radius-md:
|
|
28
|
-
--radius-lg:
|
|
27
|
+
--radius-md: 10px;
|
|
28
|
+
--radius-lg: 14px;
|
|
29
29
|
--radius-xl: 16px;
|
|
30
30
|
--radius-full: 9999px;
|
|
31
31
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
/* Typography */
|
|
72
72
|
--font-family:
|
|
73
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
73
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
74
74
|
--font-weight-normal: 400;
|
|
75
75
|
--font-weight-medium: 500;
|
|
76
76
|
--font-weight-bold: 600;
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
/* Border radius - Natural, soft */
|
|
119
119
|
--radius-none: 0px;
|
|
120
120
|
--radius-sm: 6px;
|
|
121
|
-
--radius-md:
|
|
122
|
-
--radius-lg:
|
|
121
|
+
--radius-md: 10px;
|
|
122
|
+
--radius-lg: 14px;
|
|
123
123
|
--radius-xl: 16px;
|
|
124
124
|
--radius-full: 9999px;
|
|
125
125
|
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
|
|
165
165
|
/* Typography */
|
|
166
166
|
--font-family:
|
|
167
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
167
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
168
168
|
--font-weight-normal: 400;
|
|
169
169
|
--font-weight-medium: 500;
|
|
170
170
|
--font-weight-bold: 600;
|
package/themes/slate.css
CHANGED
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
/* Border radius - Almost sharp, corporate */
|
|
25
25
|
--radius-none: 0px;
|
|
26
26
|
--radius-sm: 2px;
|
|
27
|
-
--radius-md:
|
|
28
|
-
--radius-lg:
|
|
27
|
+
--radius-md: 6px;
|
|
28
|
+
--radius-lg: 10px;
|
|
29
29
|
--radius-xl: 8px;
|
|
30
30
|
--radius-full: 9999px;
|
|
31
31
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
/* Typography */
|
|
72
72
|
--font-family:
|
|
73
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
73
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
74
74
|
--font-weight-normal: 400;
|
|
75
75
|
--font-weight-medium: 500;
|
|
76
76
|
--font-weight-bold: 700;
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
/* Border radius - Almost sharp, corporate */
|
|
118
118
|
--radius-none: 0px;
|
|
119
119
|
--radius-sm: 2px;
|
|
120
|
-
--radius-md:
|
|
121
|
-
--radius-lg:
|
|
120
|
+
--radius-md: 6px;
|
|
121
|
+
--radius-lg: 10px;
|
|
122
122
|
--radius-xl: 8px;
|
|
123
123
|
--radius-full: 9999px;
|
|
124
124
|
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
|
|
164
164
|
/* Typography */
|
|
165
165
|
--font-family:
|
|
166
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
166
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
167
167
|
--font-weight-normal: 400;
|
|
168
168
|
--font-weight-medium: 500;
|
|
169
169
|
--font-weight-bold: 700;
|
package/themes/sunset.css
CHANGED
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
/* Typography - Tight, expressive */
|
|
74
74
|
--font-family:
|
|
75
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
75
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
76
76
|
--font-weight-normal: 400;
|
|
77
77
|
--font-weight-medium: 500;
|
|
78
78
|
--font-weight-bold: 600;
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
|
|
169
169
|
/* Typography - Tight, expressive */
|
|
170
170
|
--font-family:
|
|
171
|
-
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
171
|
+
"Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
172
172
|
--font-weight-normal: 400;
|
|
173
173
|
--font-weight-medium: 500;
|
|
174
174
|
--font-weight-bold: 600;
|
|
@@ -1,5 +1,149 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Utility function to merge Tailwind CSS classes
|
|
5
|
+
* Combines clsx for conditional classes with tailwind-merge to handle conflicts
|
|
6
|
+
*/
|
|
7
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Verification Registry - Tracks runtime verification checks and transition traces
|
|
11
|
+
*
|
|
12
|
+
* Provides:
|
|
13
|
+
* 1. A checklist of pass/fail checks (INIT has fetch, bridge connected, etc.)
|
|
14
|
+
* 2. A full transition timeline with effect execution results
|
|
15
|
+
* 3. ServerBridge health snapshot
|
|
16
|
+
* 4. window.__orbitalVerification for Playwright/automation
|
|
17
|
+
*
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
*/
|
|
20
|
+
type CheckStatus = "pass" | "fail" | "pending" | "warn";
|
|
21
|
+
interface VerificationCheck {
|
|
22
|
+
id: string;
|
|
23
|
+
label: string;
|
|
24
|
+
status: CheckStatus;
|
|
25
|
+
details?: string;
|
|
26
|
+
/** Timestamp when status last changed */
|
|
27
|
+
updatedAt: number;
|
|
28
|
+
}
|
|
29
|
+
interface EffectTrace {
|
|
30
|
+
type: string;
|
|
31
|
+
args: unknown[];
|
|
32
|
+
status: "executed" | "failed" | "skipped";
|
|
33
|
+
error?: string;
|
|
34
|
+
durationMs?: number;
|
|
35
|
+
}
|
|
36
|
+
interface TransitionTrace {
|
|
37
|
+
id: string;
|
|
38
|
+
traitName: string;
|
|
39
|
+
from: string;
|
|
40
|
+
to: string;
|
|
41
|
+
event: string;
|
|
42
|
+
guardExpression?: string;
|
|
43
|
+
guardResult?: boolean;
|
|
44
|
+
effects: EffectTrace[];
|
|
45
|
+
timestamp: number;
|
|
46
|
+
}
|
|
47
|
+
interface BridgeHealth {
|
|
48
|
+
connected: boolean;
|
|
49
|
+
eventsForwarded: number;
|
|
50
|
+
eventsReceived: number;
|
|
51
|
+
lastError?: string;
|
|
52
|
+
lastHeartbeat: number;
|
|
53
|
+
}
|
|
54
|
+
interface VerificationSummary {
|
|
55
|
+
totalChecks: number;
|
|
56
|
+
passed: number;
|
|
57
|
+
failed: number;
|
|
58
|
+
warnings: number;
|
|
59
|
+
pending: number;
|
|
60
|
+
}
|
|
61
|
+
interface VerificationSnapshot {
|
|
62
|
+
checks: VerificationCheck[];
|
|
63
|
+
transitions: TransitionTrace[];
|
|
64
|
+
bridge: BridgeHealth | null;
|
|
65
|
+
summary: VerificationSummary;
|
|
66
|
+
}
|
|
67
|
+
type ChangeListener = () => void;
|
|
68
|
+
declare function registerCheck(id: string, label: string, status?: CheckStatus, details?: string): void;
|
|
69
|
+
declare function updateCheck(id: string, status: CheckStatus, details?: string): void;
|
|
70
|
+
declare function getAllChecks(): VerificationCheck[];
|
|
71
|
+
declare function recordTransition(trace: Omit<TransitionTrace, "id">): void;
|
|
72
|
+
declare function getTransitions(): TransitionTrace[];
|
|
73
|
+
declare function getTransitionsForTrait(traitName: string): TransitionTrace[];
|
|
74
|
+
declare function updateBridgeHealth(health: BridgeHealth): void;
|
|
75
|
+
declare function getBridgeHealth(): BridgeHealth | null;
|
|
76
|
+
declare function getSummary(): VerificationSummary;
|
|
77
|
+
declare function getSnapshot(): VerificationSnapshot;
|
|
78
|
+
declare function subscribeToVerification(listener: ChangeListener): () => void;
|
|
79
|
+
/** Asset load status for canvas verification */
|
|
80
|
+
type AssetLoadStatus = "loaded" | "failed" | "pending";
|
|
81
|
+
/** Event bus log entry for verification */
|
|
82
|
+
interface EventLogEntry {
|
|
83
|
+
type: string;
|
|
84
|
+
payload?: Record<string, unknown>;
|
|
85
|
+
timestamp: number;
|
|
86
|
+
}
|
|
87
|
+
/** Exposed on window for Playwright to query */
|
|
88
|
+
interface OrbitalVerificationAPI {
|
|
89
|
+
getSnapshot: () => VerificationSnapshot;
|
|
90
|
+
getChecks: () => VerificationCheck[];
|
|
91
|
+
getTransitions: () => TransitionTrace[];
|
|
92
|
+
getBridge: () => BridgeHealth | null;
|
|
93
|
+
getSummary: () => VerificationSummary;
|
|
94
|
+
/** Wait for a specific event to be processed */
|
|
95
|
+
waitForTransition: (event: string, timeoutMs?: number) => Promise<TransitionTrace | null>;
|
|
96
|
+
/** Send an event into the runtime (requires eventBus binding) */
|
|
97
|
+
sendEvent?: (event: string, payload?: Record<string, unknown>) => void;
|
|
98
|
+
/** Get current trait state */
|
|
99
|
+
getTraitState?: (traitName: string) => string | undefined;
|
|
100
|
+
/** Capture a canvas frame as PNG data URL. Registered by game organisms. */
|
|
101
|
+
captureFrame?: () => string | null;
|
|
102
|
+
/** Asset load status map. Registered by game organisms. */
|
|
103
|
+
assetStatus?: Record<string, AssetLoadStatus>;
|
|
104
|
+
/** Event bus log. Records all emit() calls for verification. */
|
|
105
|
+
eventLog?: EventLogEntry[];
|
|
106
|
+
/** Clear the event log. */
|
|
107
|
+
clearEventLog?: () => void;
|
|
108
|
+
}
|
|
109
|
+
declare global {
|
|
110
|
+
interface Window {
|
|
111
|
+
__orbitalVerification?: OrbitalVerificationAPI;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Wait for a transition matching the given event to appear.
|
|
116
|
+
* Returns the trace or null on timeout.
|
|
117
|
+
*/
|
|
118
|
+
declare function waitForTransition(event: string, timeoutMs?: number): Promise<TransitionTrace | null>;
|
|
119
|
+
/**
|
|
120
|
+
* Bind the EventBus so automation can send events and log emissions.
|
|
121
|
+
* Call this during app initialization.
|
|
122
|
+
*/
|
|
123
|
+
declare function bindEventBus(eventBus: {
|
|
124
|
+
emit: (type: string, payload?: Record<string, unknown>) => void;
|
|
125
|
+
onAny?: (listener: (event: {
|
|
126
|
+
type: string;
|
|
127
|
+
payload?: Record<string, unknown>;
|
|
128
|
+
}) => void) => () => void;
|
|
129
|
+
}): void;
|
|
130
|
+
/**
|
|
131
|
+
* Bind a trait state getter so automation can query current states.
|
|
132
|
+
*/
|
|
133
|
+
declare function bindTraitStateGetter(getter: (traitName: string) => string | undefined): void;
|
|
134
|
+
/**
|
|
135
|
+
* Register a canvas frame capture function.
|
|
136
|
+
* Called by game organisms (IsometricCanvas, PlatformerCanvas, SimulationCanvas)
|
|
137
|
+
* so the verifier can snapshot canvas content at checkpoints.
|
|
138
|
+
*/
|
|
139
|
+
declare function bindCanvasCapture(captureFn: () => string | null): void;
|
|
140
|
+
/**
|
|
141
|
+
* Update asset load status for canvas verification.
|
|
142
|
+
* Game organisms call this when images load or fail.
|
|
143
|
+
*/
|
|
144
|
+
declare function updateAssetStatus(url: string, status: AssetLoadStatus): void;
|
|
145
|
+
declare function clearVerification(): void;
|
|
146
|
+
|
|
3
147
|
/**
|
|
4
148
|
* Orbital State Machine Visualizer
|
|
5
149
|
*
|
|
@@ -185,148 +329,4 @@ declare function parseMarkdownWithCodeBlocks(content: string | undefined | null)
|
|
|
185
329
|
*/
|
|
186
330
|
declare function parseContentSegments(content: string | undefined | null): ContentSegment[];
|
|
187
331
|
|
|
188
|
-
/**
|
|
189
|
-
* Verification Registry - Tracks runtime verification checks and transition traces
|
|
190
|
-
*
|
|
191
|
-
* Provides:
|
|
192
|
-
* 1. A checklist of pass/fail checks (INIT has fetch, bridge connected, etc.)
|
|
193
|
-
* 2. A full transition timeline with effect execution results
|
|
194
|
-
* 3. ServerBridge health snapshot
|
|
195
|
-
* 4. window.__orbitalVerification for Playwright/automation
|
|
196
|
-
*
|
|
197
|
-
* @packageDocumentation
|
|
198
|
-
*/
|
|
199
|
-
type CheckStatus = "pass" | "fail" | "pending" | "warn";
|
|
200
|
-
interface VerificationCheck {
|
|
201
|
-
id: string;
|
|
202
|
-
label: string;
|
|
203
|
-
status: CheckStatus;
|
|
204
|
-
details?: string;
|
|
205
|
-
/** Timestamp when status last changed */
|
|
206
|
-
updatedAt: number;
|
|
207
|
-
}
|
|
208
|
-
interface EffectTrace {
|
|
209
|
-
type: string;
|
|
210
|
-
args: unknown[];
|
|
211
|
-
status: "executed" | "failed" | "skipped";
|
|
212
|
-
error?: string;
|
|
213
|
-
durationMs?: number;
|
|
214
|
-
}
|
|
215
|
-
interface TransitionTrace {
|
|
216
|
-
id: string;
|
|
217
|
-
traitName: string;
|
|
218
|
-
from: string;
|
|
219
|
-
to: string;
|
|
220
|
-
event: string;
|
|
221
|
-
guardExpression?: string;
|
|
222
|
-
guardResult?: boolean;
|
|
223
|
-
effects: EffectTrace[];
|
|
224
|
-
timestamp: number;
|
|
225
|
-
}
|
|
226
|
-
interface BridgeHealth {
|
|
227
|
-
connected: boolean;
|
|
228
|
-
eventsForwarded: number;
|
|
229
|
-
eventsReceived: number;
|
|
230
|
-
lastError?: string;
|
|
231
|
-
lastHeartbeat: number;
|
|
232
|
-
}
|
|
233
|
-
interface VerificationSummary {
|
|
234
|
-
totalChecks: number;
|
|
235
|
-
passed: number;
|
|
236
|
-
failed: number;
|
|
237
|
-
warnings: number;
|
|
238
|
-
pending: number;
|
|
239
|
-
}
|
|
240
|
-
interface VerificationSnapshot {
|
|
241
|
-
checks: VerificationCheck[];
|
|
242
|
-
transitions: TransitionTrace[];
|
|
243
|
-
bridge: BridgeHealth | null;
|
|
244
|
-
summary: VerificationSummary;
|
|
245
|
-
}
|
|
246
|
-
type ChangeListener = () => void;
|
|
247
|
-
declare function registerCheck(id: string, label: string, status?: CheckStatus, details?: string): void;
|
|
248
|
-
declare function updateCheck(id: string, status: CheckStatus, details?: string): void;
|
|
249
|
-
declare function getAllChecks(): VerificationCheck[];
|
|
250
|
-
declare function recordTransition(trace: Omit<TransitionTrace, "id">): void;
|
|
251
|
-
declare function getTransitions(): TransitionTrace[];
|
|
252
|
-
declare function getTransitionsForTrait(traitName: string): TransitionTrace[];
|
|
253
|
-
declare function updateBridgeHealth(health: BridgeHealth): void;
|
|
254
|
-
declare function getBridgeHealth(): BridgeHealth | null;
|
|
255
|
-
declare function getSummary(): VerificationSummary;
|
|
256
|
-
declare function getSnapshot(): VerificationSnapshot;
|
|
257
|
-
declare function subscribeToVerification(listener: ChangeListener): () => void;
|
|
258
|
-
/** Asset load status for canvas verification */
|
|
259
|
-
type AssetLoadStatus = "loaded" | "failed" | "pending";
|
|
260
|
-
/** Event bus log entry for verification */
|
|
261
|
-
interface EventLogEntry {
|
|
262
|
-
type: string;
|
|
263
|
-
payload?: Record<string, unknown>;
|
|
264
|
-
timestamp: number;
|
|
265
|
-
}
|
|
266
|
-
/** Exposed on window for Playwright to query */
|
|
267
|
-
interface OrbitalVerificationAPI {
|
|
268
|
-
getSnapshot: () => VerificationSnapshot;
|
|
269
|
-
getChecks: () => VerificationCheck[];
|
|
270
|
-
getTransitions: () => TransitionTrace[];
|
|
271
|
-
getBridge: () => BridgeHealth | null;
|
|
272
|
-
getSummary: () => VerificationSummary;
|
|
273
|
-
/** Wait for a specific event to be processed */
|
|
274
|
-
waitForTransition: (event: string, timeoutMs?: number) => Promise<TransitionTrace | null>;
|
|
275
|
-
/** Send an event into the runtime (requires eventBus binding) */
|
|
276
|
-
sendEvent?: (event: string, payload?: Record<string, unknown>) => void;
|
|
277
|
-
/** Get current trait state */
|
|
278
|
-
getTraitState?: (traitName: string) => string | undefined;
|
|
279
|
-
/** Capture a canvas frame as PNG data URL. Registered by game organisms. */
|
|
280
|
-
captureFrame?: () => string | null;
|
|
281
|
-
/** Asset load status map. Registered by game organisms. */
|
|
282
|
-
assetStatus?: Record<string, AssetLoadStatus>;
|
|
283
|
-
/** Event bus log. Records all emit() calls for verification. */
|
|
284
|
-
eventLog?: EventLogEntry[];
|
|
285
|
-
/** Clear the event log. */
|
|
286
|
-
clearEventLog?: () => void;
|
|
287
|
-
}
|
|
288
|
-
declare global {
|
|
289
|
-
interface Window {
|
|
290
|
-
__orbitalVerification?: OrbitalVerificationAPI;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Wait for a transition matching the given event to appear.
|
|
295
|
-
* Returns the trace or null on timeout.
|
|
296
|
-
*/
|
|
297
|
-
declare function waitForTransition(event: string, timeoutMs?: number): Promise<TransitionTrace | null>;
|
|
298
|
-
/**
|
|
299
|
-
* Bind the EventBus so automation can send events and log emissions.
|
|
300
|
-
* Call this during app initialization.
|
|
301
|
-
*/
|
|
302
|
-
declare function bindEventBus(eventBus: {
|
|
303
|
-
emit: (type: string, payload?: Record<string, unknown>) => void;
|
|
304
|
-
onAny?: (listener: (event: {
|
|
305
|
-
type: string;
|
|
306
|
-
payload?: Record<string, unknown>;
|
|
307
|
-
}) => void) => () => void;
|
|
308
|
-
}): void;
|
|
309
|
-
/**
|
|
310
|
-
* Bind a trait state getter so automation can query current states.
|
|
311
|
-
*/
|
|
312
|
-
declare function bindTraitStateGetter(getter: (traitName: string) => string | undefined): void;
|
|
313
|
-
/**
|
|
314
|
-
* Register a canvas frame capture function.
|
|
315
|
-
* Called by game organisms (IsometricCanvas, PlatformerCanvas, SimulationCanvas)
|
|
316
|
-
* so the verifier can snapshot canvas content at checkpoints.
|
|
317
|
-
*/
|
|
318
|
-
declare function bindCanvasCapture(captureFn: () => string | null): void;
|
|
319
|
-
/**
|
|
320
|
-
* Update asset load status for canvas verification.
|
|
321
|
-
* Game organisms call this when images load or fail.
|
|
322
|
-
*/
|
|
323
|
-
declare function updateAssetStatus(url: string, status: AssetLoadStatus): void;
|
|
324
|
-
declare function clearVerification(): void;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Utility function to merge Tailwind CSS classes
|
|
328
|
-
* Combines clsx for conditional classes with tailwind-merge to handle conflicts
|
|
329
|
-
*/
|
|
330
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
331
|
-
|
|
332
332
|
export { type AssetLoadStatus as A, type BridgeHealth as B, type CheckStatus as C, DEFAULT_CONFIG as D, type EffectTrace as E, getSummary as F, getTransitions as G, getTransitionsForTrait as H, parseContentSegments as I, parseMarkdownWithCodeBlocks as J, recordTransition as K, registerCheck as L, renderStateMachineToDomData as M, renderStateMachineToSvg as N, subscribeToVerification as O, updateAssetStatus as P, updateBridgeHealth as Q, type RenderOptions as R, type StateDefinition as S, type TransitionDefinition as T, updateCheck as U, type VerificationCheck as V, waitForTransition as W, type ContentSegment as a, type DomEntityBox as b, type DomLayoutData as c, type DomOutputsBox as d, type DomStateNode as e, type DomTransitionLabel as f, type DomTransitionPath as g, type EntityDefinition as h, type EventLogEntry as i, type StateMachineDefinition as j, type TransitionTrace as k, type VerificationSnapshot as l, type VerificationSummary as m, type VisualizerConfig as n, bindCanvasCapture as o, bindEventBus as p, bindTraitStateGetter as q, clearVerification as r, cn as s, extractOutputsFromTransitions as t, extractStateMachine as u, formatGuard as v, getAllChecks as w, getBridgeHealth as x, getEffectSummary as y, getSnapshot as z };
|