@glassly/miniapp 0.4.2 → 0.4.3-beta.1211

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 (90) hide show
  1. package/dist/display/index.d.ts +2 -1
  2. package/dist/display/index.d.ts.map +1 -1
  3. package/dist/display/index.js +1 -1
  4. package/dist/display/index.js.map +1 -1
  5. package/dist/display/measurer/script-detection.d.ts +1 -1
  6. package/dist/display/measurer/script-detection.d.ts.map +1 -1
  7. package/dist/display/measurer/script-detection.js +46 -10
  8. package/dist/display/measurer/script-detection.js.map +1 -1
  9. package/dist/display/profiles/index.d.ts +3 -2
  10. package/dist/display/profiles/index.d.ts.map +1 -1
  11. package/dist/display/profiles/index.js +2 -3
  12. package/dist/display/profiles/index.js.map +1 -1
  13. package/dist/display/profiles/nimo.d.ts +10 -3
  14. package/dist/display/profiles/nimo.d.ts.map +1 -1
  15. package/dist/display/profiles/nimo.js +35 -3
  16. package/dist/display/profiles/nimo.js.map +1 -1
  17. package/dist/display/profiles/textProfile.d.ts +24 -0
  18. package/dist/display/profiles/textProfile.d.ts.map +1 -0
  19. package/dist/display/profiles/textProfile.js +48 -0
  20. package/dist/display/profiles/textProfile.js.map +1 -0
  21. package/dist/display/profiles/types.d.ts +5 -0
  22. package/dist/display/profiles/types.d.ts.map +1 -1
  23. package/dist/display/scene/degrade.d.ts +1 -1
  24. package/dist/display/scene/degrade.js +1 -1
  25. package/dist/display/scene/process.d.ts.map +1 -1
  26. package/dist/display/scene/process.js +2 -3
  27. package/dist/display/scene/process.js.map +1 -1
  28. package/dist/host/actionInvoke.d.ts +44 -0
  29. package/dist/host/actionInvoke.d.ts.map +1 -0
  30. package/dist/host/actionInvoke.js +87 -0
  31. package/dist/host/actionInvoke.js.map +1 -0
  32. package/dist/host/gestureClaims.d.ts +37 -0
  33. package/dist/host/gestureClaims.d.ts.map +1 -0
  34. package/dist/host/gestureClaims.js +45 -0
  35. package/dist/host/gestureClaims.js.map +1 -0
  36. package/dist/host/index.d.ts +8 -0
  37. package/dist/host/index.d.ts.map +1 -1
  38. package/dist/host/index.js +9 -0
  39. package/dist/host/index.js.map +1 -1
  40. package/dist/host/manifestActions.d.ts +69 -0
  41. package/dist/host/manifestActions.d.ts.map +1 -0
  42. package/dist/host/manifestActions.js +89 -0
  43. package/dist/host/manifestActions.js.map +1 -0
  44. package/dist/host/memory/MemoryStore.d.ts +178 -0
  45. package/dist/host/memory/MemoryStore.d.ts.map +1 -0
  46. package/dist/host/memory/MemoryStore.js +615 -0
  47. package/dist/host/memory/MemoryStore.js.map +1 -0
  48. package/dist/host/memory/search.d.ts +72 -0
  49. package/dist/host/memory/search.d.ts.map +1 -0
  50. package/dist/host/memory/search.js +188 -0
  51. package/dist/host/memory/search.js.map +1 -0
  52. package/dist/host/miniappPermissions.d.ts +16 -0
  53. package/dist/host/miniappPermissions.d.ts.map +1 -0
  54. package/dist/host/miniappPermissions.js +7 -0
  55. package/dist/host/miniappPermissions.js.map +1 -0
  56. package/dist/host/settingsBridge.d.ts +49 -0
  57. package/dist/host/settingsBridge.d.ts.map +1 -0
  58. package/dist/host/settingsBridge.js +110 -0
  59. package/dist/host/settingsBridge.js.map +1 -0
  60. package/dist/host/widgetPlacements.d.ts +44 -0
  61. package/dist/host/widgetPlacements.d.ts.map +1 -0
  62. package/dist/host/widgetPlacements.js +84 -0
  63. package/dist/host/widgetPlacements.js.map +1 -0
  64. package/dist/session.d.ts +6 -0
  65. package/dist/session.d.ts.map +1 -1
  66. package/dist/session.js.map +1 -1
  67. package/package.json +2 -2
  68. package/src/display/index.ts +4 -3
  69. package/src/display/measurer/script-detection.ts +47 -10
  70. package/src/display/profiles/index.ts +4 -4
  71. package/src/display/profiles/nimo.ts +38 -3
  72. package/src/display/profiles/textProfile.ts +62 -0
  73. package/src/display/profiles/types.ts +2 -0
  74. package/src/display/scene/degrade.ts +1 -1
  75. package/src/display/scene/process.ts +2 -3
  76. package/src/host/actionInvoke.ts +110 -0
  77. package/src/host/gestureClaims.ts +77 -0
  78. package/src/host/index.ts +10 -0
  79. package/src/host/manifestActions.ts +152 -0
  80. package/src/host/memory/MemoryStore.ts +704 -0
  81. package/src/host/memory/search.ts +214 -0
  82. package/src/host/miniappPermissions.ts +19 -0
  83. package/src/host/settingsBridge.ts +119 -0
  84. package/src/host/widgetPlacements.ts +135 -0
  85. package/src/session.ts +6 -0
  86. package/dist/display/profiles/z100.d.ts +0 -33
  87. package/dist/display/profiles/z100.d.ts.map +0 -1
  88. package/dist/display/profiles/z100.js +0 -182
  89. package/dist/display/profiles/z100.js.map +0 -1
  90. package/src/display/profiles/z100.ts +0 -198
@@ -1,182 +0,0 @@
1
- /**
2
- * Vuzix Z100 glyph widths - extracted from NotoSans-Regular.ttf at 21px
3
- *
4
- * These are pixel widths at the default font size used by the Z100 display.
5
- * The Z100 uses Noto Sans as its system font.
6
- *
7
- * Extracted using: node scripts/extract-font-metrics.js NotoSans-Regular.ttf 21
8
- */
9
- const Z100_GLYPH_WIDTHS = {
10
- // Space and punctuation
11
- " ": 5,
12
- "!": 6,
13
- '"': 9,
14
- "#": 14,
15
- "$": 12,
16
- "%": 17,
17
- "&": 15,
18
- "'": 5,
19
- "(": 6,
20
- ")": 6,
21
- "*": 12,
22
- "+": 12,
23
- ",": 6,
24
- "-": 7, // Hyphen width - important for line breaking
25
- ".": 6,
26
- "/": 8,
27
- // Numbers
28
- "0": 12,
29
- "1": 12,
30
- "2": 12,
31
- "3": 12,
32
- "4": 12,
33
- "5": 12,
34
- "6": 12,
35
- "7": 12,
36
- "8": 12,
37
- "9": 12,
38
- // More punctuation
39
- ":": 6,
40
- ";": 6,
41
- "<": 12,
42
- "=": 12,
43
- ">": 12,
44
- "?": 9,
45
- "@": 19,
46
- // Uppercase
47
- "A": 13,
48
- "B": 14,
49
- "C": 13,
50
- "D": 15,
51
- "E": 12,
52
- "F": 11,
53
- "G": 15,
54
- "H": 16,
55
- "I": 7,
56
- "J": 6,
57
- "K": 13,
58
- "L": 11,
59
- "M": 19,
60
- "N": 16,
61
- "O": 16,
62
- "P": 13,
63
- "Q": 16,
64
- "R": 13,
65
- "S": 12,
66
- "T": 12,
67
- "U": 15,
68
- "V": 13,
69
- "W": 20,
70
- "X": 12,
71
- "Y": 12,
72
- "Z": 12,
73
- // Brackets & special
74
- "[": 7,
75
- "\\": 8,
76
- "]": 7,
77
- "^": 12,
78
- "_": 9,
79
- "`": 6,
80
- // Lowercase
81
- "a": 12,
82
- "b": 13,
83
- "c": 10,
84
- "d": 13,
85
- "e": 12,
86
- "f": 7,
87
- "g": 13,
88
- "h": 13,
89
- "i": 5,
90
- "j": 5,
91
- "k": 11,
92
- "l": 5,
93
- "m": 20,
94
- "n": 13,
95
- "o": 13,
96
- "p": 13,
97
- "q": 13,
98
- "r": 9,
99
- "s": 10,
100
- "t": 8,
101
- "u": 13,
102
- "v": 11,
103
- "w": 17,
104
- "x": 11,
105
- "y": 11,
106
- "z": 10,
107
- // More special
108
- "{": 8,
109
- "|": 12,
110
- "}": 8,
111
- "~": 12,
112
- };
113
- /**
114
- * Vuzix Z100 Smart Glasses Display Profile
115
- *
116
- * The Z100 has a green monochrome display with 640x480 resolution.
117
- * It uses the Vuzix Ultralite SDK and Noto Sans font family.
118
- *
119
- * Display specs:
120
- * - Resolution: 640x480
121
- * - Usable text width: ~390px (empirically tested - SDK applies margins)
122
- * - Color: Green monochrome
123
- * - Max text lines: 7
124
- * - Font: Noto Sans Regular at 21px
125
- * - No bitmap support via text commands
126
- * - Adjustable brightness
127
- *
128
- * NOTE: The Vuzix Ultralite SDK handles text rendering internally and applies
129
- * its own margins/padding. The usable text width is significantly less than
130
- * the physical 640px resolution. Empirical testing shows ~42 characters of
131
- * mixed text (387px measured) fits on one line before the SDK wraps.
132
- */
133
- export const Z100_PROFILE = {
134
- id: "vuzix-z100",
135
- name: "Vuzix Z100",
136
- // Display dimensions
137
- // Empirically tested: ~42 chars of mixed text (387px) fits before SDK wraps
138
- // Using 390px to account for measurement variance
139
- displayWidthPx: 390,
140
- maxLines: 7,
141
- // BLE constraints
142
- // Z100 uses Vuzix Ultralite SDK which handles chunking internally
143
- // These are conservative values for direct BLE if needed
144
- maxPayloadBytes: 512,
145
- bleChunkSize: 180,
146
- // Font metrics - Noto Sans Regular at 21px
147
- fontMetrics: {
148
- glyphWidths: new Map(Object.entries(Z100_GLYPH_WIDTHS)),
149
- defaultGlyphWidth: 12, // Average width from extracted metrics
150
- // Z100 uses direct pixel widths, no render formula needed
151
- renderFormula: (glyphWidth) => glyphWidth,
152
- // Uniform-width scripts for CJK and other non-Latin
153
- // Noto Sans CJK characters are typically wider
154
- uniformScripts: {
155
- cjk: 21, // Full-width CJK characters
156
- hiragana: 21,
157
- katakana: 21,
158
- korean: 21,
159
- cyrillic: 14, // Cyrillic is similar to Latin in Noto Sans
160
- },
161
- fallback: {
162
- latinMaxWidth: 20, // 'W' and 'm' are the widest at 20px
163
- unknownBehavior: "useLatinMax",
164
- },
165
- },
166
- constraints: {
167
- minCharsBeforeHyphen: 3,
168
- noStartChars: [".", ",", "!", "?", ":", ";", ")", "]", "}", "。", ",", "!", "?", ":", ";", ")", "】", "」"],
169
- noEndChars: ["(", "[", "{", "(", "【", "「"],
170
- },
171
- };
172
- /**
173
- * Get the hyphen width for Z100 in pixels.
174
- * Used for line breaking calculations.
175
- */
176
- export const Z100_HYPHEN_WIDTH_PX = 7;
177
- /**
178
- * Get the space width for Z100 in pixels.
179
- * Used for column alignment calculations.
180
- */
181
- export const Z100_SPACE_WIDTH_PX = 5;
182
- //# sourceMappingURL=z100.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"z100.js","sourceRoot":"","sources":["../../../src/display/profiles/z100.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,iBAAiB,GAA2B;IAChD,wBAAwB;IACxB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE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,GAAG;IAEjB,2CAA2C;IAC3C,WAAW,EAAE;QACX,WAAW,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QACvD,iBAAiB,EAAE,EAAE,EAAE,uCAAuC;QAC9D,0DAA0D;QAC1D,aAAa,EAAE,CAAC,UAAkB,EAAE,EAAE,CAAC,UAAU;QAEjD,oDAAoD;QACpD,+CAA+C;QAC/C,cAAc,EAAE;YACd,GAAG,EAAE,EAAE,EAAE,4BAA4B;YACrC,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE,EAAE,4CAA4C;SAC3D;QAED,QAAQ,EAAE;YACR,aAAa,EAAE,EAAE,EAAE,qCAAqC;YACxD,eAAe,EAAE,aAAa;SAC/B;KACF;IAED,WAAW,EAAE;QACX,oBAAoB,EAAE,CAAC;QACvB,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;QACxG,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;KAC3C;CACF,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAA;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA"}
@@ -1,198 +0,0 @@
1
- import {DisplayProfile} from "./types"
2
-
3
- /**
4
- * Vuzix Z100 glyph widths - extracted from NotoSans-Regular.ttf at 21px
5
- *
6
- * These are pixel widths at the default font size used by the Z100 display.
7
- * The Z100 uses Noto Sans as its system font.
8
- *
9
- * Extracted using: node scripts/extract-font-metrics.js NotoSans-Regular.ttf 21
10
- */
11
- const Z100_GLYPH_WIDTHS: Record<string, number> = {
12
- // Space and punctuation
13
- " ": 5,
14
- "!": 6,
15
- '"': 9,
16
- "#": 14,
17
- "$": 12,
18
- "%": 17,
19
- "&": 15,
20
- "'": 5,
21
- "(": 6,
22
- ")": 6,
23
- "*": 12,
24
- "+": 12,
25
- ",": 6,
26
- "-": 7, // Hyphen width - important for line breaking
27
- ".": 6,
28
- "/": 8,
29
-
30
- // Numbers
31
- "0": 12,
32
- "1": 12,
33
- "2": 12,
34
- "3": 12,
35
- "4": 12,
36
- "5": 12,
37
- "6": 12,
38
- "7": 12,
39
- "8": 12,
40
- "9": 12,
41
-
42
- // More punctuation
43
- ":": 6,
44
- ";": 6,
45
- "<": 12,
46
- "=": 12,
47
- ">": 12,
48
- "?": 9,
49
- "@": 19,
50
-
51
- // Uppercase
52
- "A": 13,
53
- "B": 14,
54
- "C": 13,
55
- "D": 15,
56
- "E": 12,
57
- "F": 11,
58
- "G": 15,
59
- "H": 16,
60
- "I": 7,
61
- "J": 6,
62
- "K": 13,
63
- "L": 11,
64
- "M": 19,
65
- "N": 16,
66
- "O": 16,
67
- "P": 13,
68
- "Q": 16,
69
- "R": 13,
70
- "S": 12,
71
- "T": 12,
72
- "U": 15,
73
- "V": 13,
74
- "W": 20,
75
- "X": 12,
76
- "Y": 12,
77
- "Z": 12,
78
-
79
- // Brackets & special
80
- "[": 7,
81
- "\\": 8,
82
- "]": 7,
83
- "^": 12,
84
- "_": 9,
85
- "`": 6,
86
-
87
- // Lowercase
88
- "a": 12,
89
- "b": 13,
90
- "c": 10,
91
- "d": 13,
92
- "e": 12,
93
- "f": 7,
94
- "g": 13,
95
- "h": 13,
96
- "i": 5,
97
- "j": 5,
98
- "k": 11,
99
- "l": 5,
100
- "m": 20,
101
- "n": 13,
102
- "o": 13,
103
- "p": 13,
104
- "q": 13,
105
- "r": 9,
106
- "s": 10,
107
- "t": 8,
108
- "u": 13,
109
- "v": 11,
110
- "w": 17,
111
- "x": 11,
112
- "y": 11,
113
- "z": 10,
114
-
115
- // More special
116
- "{": 8,
117
- "|": 12,
118
- "}": 8,
119
- "~": 12,
120
- }
121
-
122
- /**
123
- * Vuzix Z100 Smart Glasses Display Profile
124
- *
125
- * The Z100 has a green monochrome display with 640x480 resolution.
126
- * It uses the Vuzix Ultralite SDK and Noto Sans font family.
127
- *
128
- * Display specs:
129
- * - Resolution: 640x480
130
- * - Usable text width: ~390px (empirically tested - SDK applies margins)
131
- * - Color: Green monochrome
132
- * - Max text lines: 7
133
- * - Font: Noto Sans Regular at 21px
134
- * - No bitmap support via text commands
135
- * - Adjustable brightness
136
- *
137
- * NOTE: The Vuzix Ultralite SDK handles text rendering internally and applies
138
- * its own margins/padding. The usable text width is significantly less than
139
- * the physical 640px resolution. Empirical testing shows ~42 characters of
140
- * mixed text (387px measured) fits on one line before the SDK wraps.
141
- */
142
- export const Z100_PROFILE: DisplayProfile = {
143
- id: "vuzix-z100",
144
- name: "Vuzix Z100",
145
-
146
- // Display dimensions
147
- // Empirically tested: ~42 chars of mixed text (387px) fits before SDK wraps
148
- // Using 390px to account for measurement variance
149
- displayWidthPx: 390,
150
- maxLines: 7,
151
-
152
- // BLE constraints
153
- // Z100 uses Vuzix Ultralite SDK which handles chunking internally
154
- // These are conservative values for direct BLE if needed
155
- maxPayloadBytes: 512,
156
- bleChunkSize: 180,
157
-
158
- // Font metrics - Noto Sans Regular at 21px
159
- fontMetrics: {
160
- glyphWidths: new Map(Object.entries(Z100_GLYPH_WIDTHS)),
161
- defaultGlyphWidth: 12, // Average width from extracted metrics
162
- // Z100 uses direct pixel widths, no render formula needed
163
- renderFormula: (glyphWidth: number) => glyphWidth,
164
-
165
- // Uniform-width scripts for CJK and other non-Latin
166
- // Noto Sans CJK characters are typically wider
167
- uniformScripts: {
168
- cjk: 21, // Full-width CJK characters
169
- hiragana: 21,
170
- katakana: 21,
171
- korean: 21,
172
- cyrillic: 14, // Cyrillic is similar to Latin in Noto Sans
173
- },
174
-
175
- fallback: {
176
- latinMaxWidth: 20, // 'W' and 'm' are the widest at 20px
177
- unknownBehavior: "useLatinMax",
178
- },
179
- },
180
-
181
- constraints: {
182
- minCharsBeforeHyphen: 3,
183
- noStartChars: [".", ",", "!", "?", ":", ";", ")", "]", "}", "。", ",", "!", "?", ":", ";", ")", "】", "」"],
184
- noEndChars: ["(", "[", "{", "(", "【", "「"],
185
- },
186
- }
187
-
188
- /**
189
- * Get the hyphen width for Z100 in pixels.
190
- * Used for line breaking calculations.
191
- */
192
- export const Z100_HYPHEN_WIDTH_PX = 7
193
-
194
- /**
195
- * Get the space width for Z100 in pixels.
196
- * Used for column alignment calculations.
197
- */
198
- export const Z100_SPACE_WIDTH_PX = 5