@native-sdk/cli 0.8.4 → 0.9.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.
Files changed (161) hide show
  1. package/build/app.zig +1178 -74
  2. package/build.zig +715 -17
  3. package/build.zig.zon +1 -0
  4. package/native-sdk.d.ts +10 -0
  5. package/package.json +12 -11
  6. package/packages/core/compile-surface/core.ts +435 -3
  7. package/packages/core/package-lock.json +11 -11
  8. package/packages/core/package.json +2 -2
  9. package/packages/core/scripts/compiler_typecheck.mjs +116 -15
  10. package/packages/core/scripts/gen_service_surface.mjs +268 -0
  11. package/packages/core/scripts/merge_static_archives.mjs +78 -0
  12. package/packages/core/scripts/npm_static_spike.mjs +64 -0
  13. package/packages/core/scripts/run_external_core_compiler.mjs +122 -6
  14. package/packages/core/scripts/run_external_service_compiler.mjs +280 -0
  15. package/packages/core/scripts/stage_external_core.mjs +9 -1
  16. package/packages/core/scripts/stage_external_services.mjs +172 -0
  17. package/packages/core/scripts/surface_manifest_diff.mjs +253 -0
  18. package/packages/core/scripts/vendor_service_packages.mjs +189 -0
  19. package/packages/core/sdk/core.d.ts +224 -0
  20. package/packages/core/sdk/core.ts +694 -22
  21. package/packages/core/sdk/events.d.ts +89 -0
  22. package/packages/core/sdk/events.ts +128 -0
  23. package/packages/core/src/checker.ts +936 -15
  24. package/packages/core/src/cli.ts +156 -3
  25. package/packages/core/src/contract.ts +28 -5
  26. package/packages/core/src/devhost.ts +1876 -16
  27. package/packages/core/src/devhost_journal.mjs +183 -0
  28. package/packages/core/src/devhost_resolver.mjs +17 -1
  29. package/packages/core/src/devhost_service_worker.mjs +90 -0
  30. package/packages/core/src/diagnostics.ts +179 -22
  31. package/packages/core/src/frontend.ts +210 -34
  32. package/packages/core/src/infer.ts +24 -0
  33. package/packages/core/src/modules.ts +129 -80
  34. package/packages/core/src/service_contract.ts +597 -0
  35. package/packages/core/src/sqlite_cli.ts +93 -0
  36. package/packages/core/src/sqlite_codegen.ts +806 -0
  37. package/packages/core/src/sqlite_runtime_policy.ts +364 -0
  38. package/packages/core/src/typed_ast.ts +36 -8
  39. package/skill-data/automation/SKILL.md +1 -1
  40. package/skill-data/core/references/project-anatomy.md +1 -1
  41. package/skill-data/native-ui/SKILL.md +58 -5
  42. package/skill-data/ts-core/SKILL.md +123 -41
  43. package/skill-data/ts-services/SKILL.md +126 -0
  44. package/skill-data/ts-services/references/service-surface.md +604 -0
  45. package/skill-data/zig/SKILL.md +1 -1
  46. package/skills/native-sdk/SKILL.md +1 -1
  47. package/src/app_runner/no_migrations.zig +3 -0
  48. package/src/app_runner/no_services.zig +20 -0
  49. package/src/app_runner/root.zig +133 -4
  50. package/src/app_runner/ts_core_main.zig +254 -8
  51. package/src/app_runner/ts_core_mobile.zig +241 -0
  52. package/src/automation/protocol.zig +5 -1
  53. package/src/automation/snapshot.zig +31 -11
  54. package/src/embed/app_exports.zig +12 -1
  55. package/src/embed/c_api.zig +48 -2
  56. package/src/embed/conversions.zig +4 -5
  57. package/src/embed/host.zig +109 -1
  58. package/src/embed/root.zig +8 -0
  59. package/src/embed/tests.zig +241 -0
  60. package/src/embed/types.zig +51 -0
  61. package/src/embed/ui_host.zig +185 -5
  62. package/src/platform/android/NativeSdkActivity.java +131 -0
  63. package/src/platform/android/android_host.c +182 -1
  64. package/src/platform/android/native_sdk_app.h +17 -0
  65. package/src/platform/ios/native_sdk_app.h +17 -0
  66. package/src/platform/ios/uikit_host.m +115 -0
  67. package/src/platform/linux/cef_host.cpp +8 -2
  68. package/src/platform/linux/gtk_host.c +289 -22
  69. package/src/platform/linux/gtk_host.h +5 -1
  70. package/src/platform/linux/root.zig +109 -22
  71. package/src/platform/macos/appkit_host.h +24 -7
  72. package/src/platform/macos/appkit_host.m +686 -64
  73. package/src/platform/macos/cef_host.mm +400 -66
  74. package/src/platform/macos/root.zig +304 -47
  75. package/src/platform/null_platform.zig +435 -48
  76. package/src/platform/null_platform_tests.zig +113 -0
  77. package/src/platform/root.zig +19 -0
  78. package/src/platform/types.zig +281 -28
  79. package/src/platform/windows/root.zig +207 -27
  80. package/src/platform/windows/webview2_host.cpp +334 -51
  81. package/src/primitives/app_manifest/comptime_scene.zig +2 -0
  82. package/src/primitives/app_manifest/root.zig +4 -0
  83. package/src/primitives/app_manifest/tests.zig +3 -0
  84. package/src/primitives/app_manifest/types.zig +32 -0
  85. package/src/primitives/app_manifest/validation.zig +19 -1
  86. package/src/root.zig +53 -0
  87. package/src/runtime/api.zig +19 -0
  88. package/src/runtime/automation_commands.zig +35 -2
  89. package/src/runtime/automation_snapshot.zig +32 -20
  90. package/src/runtime/bridge_permission_tests.zig +58 -3
  91. package/src/runtime/bridge_responses.zig +4 -2
  92. package/src/runtime/builtin_bridge.zig +11 -1
  93. package/src/runtime/canvas_frame.zig +18 -11
  94. package/src/runtime/canvas_frame_animation_tests.zig +4 -0
  95. package/src/runtime/clock.zig +13 -1
  96. package/src/runtime/core.zig +145 -7
  97. package/src/runtime/credentials_store.zig +115 -0
  98. package/src/runtime/effects.zig +3701 -231
  99. package/src/runtime/effects_credentials_tests.zig +332 -0
  100. package/src/runtime/effects_file_tests.zig +587 -0
  101. package/src/runtime/effects_host_tests.zig +208 -1
  102. package/src/runtime/effects_notification_tests.zig +11 -0
  103. package/src/runtime/effects_relational_tests.zig +314 -0
  104. package/src/runtime/effects_store_tests.zig +211 -0
  105. package/src/runtime/file_access.zig +400 -0
  106. package/src/runtime/file_effect_crash_helper.zig +28 -0
  107. package/src/runtime/file_effect_crash_tests.zig +37 -0
  108. package/src/runtime/flow.zig +35 -10
  109. package/src/runtime/gpu_surface_events.zig +6 -1
  110. package/src/runtime/native_command_event_tests.zig +86 -2
  111. package/src/runtime/persist_store.zig +666 -0
  112. package/src/runtime/pty.zig +5 -2
  113. package/src/runtime/record_store.zig +788 -0
  114. package/src/runtime/relational_store.zig +854 -0
  115. package/src/runtime/root.zig +54 -0
  116. package/src/runtime/runtime_event_tests.zig +70 -0
  117. package/src/runtime/service_host.zig +711 -0
  118. package/src/runtime/service_pool.zig +1314 -0
  119. package/src/runtime/session_blobs.zig +4 -1
  120. package/src/runtime/session_journal.zig +158 -5
  121. package/src/runtime/session_record.zig +215 -0
  122. package/src/runtime/session_replay.zig +206 -11
  123. package/src/runtime/session_tests.zig +81 -0
  124. package/src/runtime/shell_layout.zig +1 -0
  125. package/src/runtime/shell_layout_tests.zig +120 -0
  126. package/src/runtime/sqlite_engine.zig +474 -0
  127. package/src/runtime/state.zig +16 -0
  128. package/src/runtime/system_services.zig +170 -38
  129. package/src/runtime/tests.zig +4 -0
  130. package/src/runtime/ts_core_host.zig +1067 -95
  131. package/src/runtime/ts_core_host_tests.zig +325 -11
  132. package/src/runtime/ts_ui_app.zig +953 -2
  133. package/src/runtime/ui_app.zig +434 -96
  134. package/src/runtime/ui_app_tests.zig +287 -11
  135. package/src/runtime/ui_app_window_tests.zig +61 -7
  136. package/src/runtime/validation.zig +42 -0
  137. package/src/runtime/view.zig +9 -0
  138. package/src/runtime/window_storage.zig +1 -0
  139. package/src/runtime/window_view_runtime.zig +2 -3
  140. package/src/runtime/window_views.zig +19 -0
  141. package/src/tooling/android.zig +21 -16
  142. package/src/tooling/db.zig +160 -0
  143. package/src/tooling/ios.zig +7 -1
  144. package/src/tooling/manifest.zig +214 -2
  145. package/src/tooling/package.zig +116 -0
  146. package/src/tooling/raw_manifest.zig +30 -0
  147. package/src/tooling/root.zig +1 -0
  148. package/src/tooling/templates.zig +189 -4
  149. package/src/tooling/ts_core.zig +366 -17
  150. package/src/tooling/verbs.zig +7 -0
  151. package/third_party/sqlite/README.md +13 -0
  152. package/third_party/sqlite/sqlite3.c +269649 -0
  153. package/third_party/sqlite/sqlite3.h +14349 -0
  154. package/tools/corewire/core_abi.zig +14 -2
  155. package/tools/corewire/emit.zig +98 -29
  156. package/tools/corewire/emit_facade.zig +442 -27
  157. package/tools/corewire/emit_profile.zig +6 -2
  158. package/tools/corewire/emit_service.zig +924 -0
  159. package/tools/corewire/main.zig +122 -0
  160. package/tools/corewire/service_contract.zig +250 -0
  161. package/tools/corewire/sidecar.zig +26 -15
@@ -31,6 +31,7 @@ const max_clipboard_data_bytes = types.max_clipboard_data_bytes;
31
31
  const max_credential_service_bytes = types.max_credential_service_bytes;
32
32
  const max_credential_account_bytes = types.max_credential_account_bytes;
33
33
  const max_credential_secret_bytes = types.max_credential_secret_bytes;
34
+ const max_local_time_text_bytes = types.max_local_time_text_bytes;
34
35
  const max_tray_items = types.max_tray_items;
35
36
  const max_tray_icon_path_bytes = types.max_tray_icon_path_bytes;
36
37
  const max_tray_tooltip_bytes = types.max_tray_tooltip_bytes;
@@ -111,6 +112,7 @@ const TrayOptions = types.TrayOptions;
111
112
  const TrayMenuItem = types.TrayMenuItem;
112
113
  const NativeCommandEvent = types.NativeCommandEvent;
113
114
  const MenuCommandEvent = types.MenuCommandEvent;
115
+ const TrayCommandEvent = types.TrayCommandEvent;
114
116
  const FileDropEvent = types.FileDropEvent;
115
117
  const GpuFrame = types.GpuFrame;
116
118
  const GpuSurfaceFrameEvent = types.GpuSurfaceFrameEvent;
@@ -162,6 +164,46 @@ test "null platform emits deterministic lifecycle events" {
162
164
  try std.testing.expectEqualStrings("app_shutdown", recorder.names[5]);
163
165
  }
164
166
 
167
+ test "null platform reports hidden startup state" {
168
+ const Recorder = struct {
169
+ startup_hidden: ?bool = null,
170
+
171
+ fn handle(context: *anyopaque, event: Event) anyerror!void {
172
+ const self: *@This() = @ptrCast(@alignCast(context));
173
+ switch (event) {
174
+ .window_frame_changed => |window| self.startup_hidden = window.hidden,
175
+ else => {},
176
+ }
177
+ }
178
+ };
179
+
180
+ var null_platform = NullPlatform.initWithOptions(.{}, .system, .{
181
+ .app_name = "Hidden",
182
+ .main_window = .{ .show = .hidden },
183
+ });
184
+ var recorder: Recorder = .{};
185
+ try null_platform.platform().run(Recorder.handle, &recorder);
186
+
187
+ try std.testing.expectEqual(true, recorder.startup_hidden.?);
188
+ }
189
+
190
+ test "null platform focus reveals a hidden window" {
191
+ var null_platform = NullPlatform.init(.{});
192
+ const services = null_platform.platform().services;
193
+ const window = try services.createWindow(.{
194
+ .id = 7,
195
+ .label = "panel",
196
+ .show = .hidden,
197
+ });
198
+
199
+ try std.testing.expect(window.hidden);
200
+ try std.testing.expect(!null_platform.window_visible[0]);
201
+ try services.focusWindow(window.id);
202
+ try std.testing.expect(!null_platform.windows[0].hidden);
203
+ try std.testing.expect(null_platform.windows[0].focused);
204
+ try std.testing.expect(null_platform.window_visible[0]);
205
+ }
206
+
165
207
  test "the videoLoadUrl seam refuses non-http(s) schemes for every caller" {
166
208
  // The streaming contract holds at the seam, not just behind the
167
209
  // engine's own gated loads: hosts hand the URL to their media
@@ -215,14 +257,38 @@ test "null platform records bridge response window routing" {
215
257
  try std.testing.expectEqualStrings("{\"ok\":true}", null_platform.lastBridgeResponse());
216
258
  }
217
259
 
260
+ test "null platform preserves the tray title when presentation styles are set" {
261
+ var null_platform = NullPlatform.init(.{});
262
+ try null_platform.platform().services.createTray(.{
263
+ .title = "Jobs",
264
+ .presentation = .{ .width = 60, .tone = .warning },
265
+ });
266
+
267
+ try std.testing.expectEqualStrings("Jobs", null_platform.lastTrayTitle());
268
+ const presentation = null_platform.lastTrayPresentation();
269
+ try std.testing.expectEqualStrings("Jobs", presentation.title);
270
+ try std.testing.expectEqual(@as(f32, 60), presentation.width);
271
+ try std.testing.expectEqual(types.TrayTone.warning, presentation.tone);
272
+
273
+ try null_platform.platform().services.updateTrayTitle("Builds");
274
+ const retitled = null_platform.lastTrayPresentation();
275
+ try std.testing.expectEqualStrings("Builds", retitled.title);
276
+ try std.testing.expectEqual(@as(f32, 60), retitled.width);
277
+ try std.testing.expectEqual(types.TrayTone.warning, retitled.tone);
278
+ }
279
+
218
280
  test "null platform records OS actions" {
219
281
  var null_platform = NullPlatform.init(.{});
282
+ defer null_platform.deinit();
220
283
  const services = null_platform.platform().services;
221
284
 
222
285
  try services.showNotification(.{
286
+ .id = "build-status",
223
287
  .title = "Build finished",
224
288
  .subtitle = "native-sdk",
225
289
  .body = "All checks passed.",
290
+ .action_label = "Open",
291
+ .action_command = "build.open",
226
292
  });
227
293
  try services.openExternalUrl("https://example.com/docs");
228
294
  try services.revealPath("/tmp/example.txt");
@@ -243,6 +309,11 @@ test "null platform records OS actions" {
243
309
  try std.testing.expectEqualStrings("Build finished", null_platform.lastNotificationTitle());
244
310
  try std.testing.expectEqualStrings("native-sdk", null_platform.lastNotificationSubtitle());
245
311
  try std.testing.expectEqualStrings("All checks passed.", null_platform.lastNotificationBody());
312
+ try std.testing.expectEqualStrings("build-status", null_platform.lastNotificationId());
313
+ try std.testing.expectEqualStrings("Open", null_platform.lastNotificationActionLabel());
314
+ try std.testing.expectEqualStrings("build.open", null_platform.lastNotificationActionCommand());
315
+ const notification_event = null_platform.activateNotification("build-status") orelse return error.TestUnexpectedResult;
316
+ try std.testing.expectEqualStrings("build.open", notification_event.notification_command.name);
246
317
  try std.testing.expectEqualStrings("https://example.com/docs", null_platform.lastExternalUrl());
247
318
  try std.testing.expectEqualStrings("/tmp/example.txt", null_platform.lastRevealedPath());
248
319
  try std.testing.expectEqualStrings("/tmp/recent.txt", null_platform.lastRecentDocumentPath());
@@ -276,9 +347,19 @@ test "null platform records OS actions" {
276
347
  const secret = try services.getCredential(.{ .service = "dev.native-sdk.test", .account = "alice" }, &credential_buffer);
277
348
  try std.testing.expectEqualStrings("secret-token", secret);
278
349
  try std.testing.expectError(error.CredentialNotFound, services.getCredential(.{ .service = "dev.native-sdk.test", .account = "bob" }, &credential_buffer));
350
+ try services.setCredential(.{ .service = "dev.native-sdk.test", .account = "bob", .secret = "second-token" });
351
+ try std.testing.expectEqualStrings("secret-token", try services.getCredential(.{ .service = "dev.native-sdk.test", .account = "alice" }, &credential_buffer));
352
+ try std.testing.expectEqualStrings("second-token", try services.getCredential(.{ .service = "dev.native-sdk.test", .account = "bob" }, &credential_buffer));
279
353
  try services.deleteCredential(.{ .service = "dev.native-sdk.test", .account = "alice" });
280
354
  try std.testing.expectEqual(@as(usize, 1), null_platform.credentialDeleteCount());
281
355
  try std.testing.expectError(error.CredentialNotFound, services.getCredential(.{ .service = "dev.native-sdk.test", .account = "alice" }, &credential_buffer));
356
+ try std.testing.expectEqualStrings("second-token", try services.getCredential(.{ .service = "dev.native-sdk.test", .account = "bob" }, &credential_buffer));
357
+
358
+ null_platform.local_time_offset_minutes = -360;
359
+ var local_time_buffer: [max_local_time_text_bytes]u8 = undefined;
360
+ try std.testing.expectEqualStrings("2024-01-01 21:04:05", try services.formatLocalTime(1_704_164_645_000, .datetime, &local_time_buffer));
361
+ try std.testing.expectEqualStrings("2024-01-01", try services.formatLocalTime(1_704_164_645_000, .date, &local_time_buffer));
362
+ try std.testing.expectEqualStrings("21:04:05", try services.formatLocalTime(1_704_164_645_000, .time, &local_time_buffer));
282
363
 
283
364
  try services.clearRecentDocuments();
284
365
  try std.testing.expectEqual(@as(usize, 1), null_platform.recentDocumentsClearedCount());
@@ -293,6 +374,37 @@ test "null platform records OS actions" {
293
374
  try std.testing.expectEqual(@as(usize, 0), null_platform.trayItems().len);
294
375
  }
295
376
 
377
+ test "null platform notification ids replace their action binding" {
378
+ var null_platform = NullPlatform.init(.{});
379
+ defer null_platform.deinit();
380
+ const services = null_platform.platform().services;
381
+
382
+ try services.showNotification(.{
383
+ .id = "sync",
384
+ .title = "Syncing",
385
+ .action_label = "Cancel",
386
+ .action_command = "sync.cancel",
387
+ });
388
+ try services.showNotification(.{
389
+ .id = "other",
390
+ .title = "Other",
391
+ .action_label = "Open",
392
+ .action_command = "other.open",
393
+ });
394
+ try services.showNotification(.{
395
+ .id = "sync",
396
+ .title = "Synced",
397
+ .action_label = "View",
398
+ .action_command = "sync.view",
399
+ });
400
+
401
+ try std.testing.expectEqual(@as(usize, 3), null_platform.notificationCount());
402
+ try std.testing.expectEqual(@as(usize, 1), null_platform.notificationReplacementCount());
403
+ try std.testing.expectEqualStrings("sync.view", null_platform.activateNotification("sync").?.notification_command.name);
404
+ try std.testing.expectEqualStrings("other.open", null_platform.activateNotification("other").?.notification_command.name);
405
+ try std.testing.expect(null_platform.activateNotification("missing") == null);
406
+ }
407
+
296
408
  test "null platform records configured shortcuts" {
297
409
  const shortcuts = [_]Shortcut{
298
410
  .{ .id = "command.palette", .key = "p", .modifiers = .{ .primary = true, .shift = true } },
@@ -391,6 +503,7 @@ test "OS actions require backend support" {
391
503
  try std.testing.expectError(error.UnsupportedService, services.setCredential(.{ .service = "service", .account = "account", .secret = "secret" }));
392
504
  try std.testing.expectError(error.UnsupportedService, services.getCredential(.{ .service = "service", .account = "account" }, &buffer));
393
505
  try std.testing.expectError(error.UnsupportedService, services.deleteCredential(.{ .service = "service", .account = "account" }));
506
+ try std.testing.expectError(error.UnsupportedService, services.formatLocalTime(0, .datetime, &buffer));
394
507
  }
395
508
 
396
509
  test "null platform records webview lifecycle" {
@@ -26,17 +26,23 @@ pub const max_recent_document_path_bytes = types.max_recent_document_path_bytes;
26
26
  pub const max_notification_title_bytes = types.max_notification_title_bytes;
27
27
  pub const max_notification_subtitle_bytes = types.max_notification_subtitle_bytes;
28
28
  pub const max_notification_body_bytes = types.max_notification_body_bytes;
29
+ pub const max_notification_id_bytes = types.max_notification_id_bytes;
30
+ pub const max_notification_action_label_bytes = types.max_notification_action_label_bytes;
31
+ pub const max_notification_action_command_bytes = types.max_notification_action_command_bytes;
29
32
  pub const max_clipboard_mime_type_bytes = types.max_clipboard_mime_type_bytes;
30
33
  pub const max_clipboard_data_bytes = types.max_clipboard_data_bytes;
31
34
  pub const max_credential_service_bytes = types.max_credential_service_bytes;
32
35
  pub const max_credential_account_bytes = types.max_credential_account_bytes;
33
36
  pub const max_credential_secret_bytes = types.max_credential_secret_bytes;
37
+ pub const max_local_time_text_bytes = types.max_local_time_text_bytes;
38
+ pub const max_status_items = types.max_status_items;
34
39
  pub const max_tray_items = types.max_tray_items;
35
40
  pub const max_tray_icon_path_bytes = types.max_tray_icon_path_bytes;
36
41
  pub const max_tray_title_bytes = types.max_tray_title_bytes;
37
42
  pub const max_tray_tooltip_bytes = types.max_tray_tooltip_bytes;
38
43
  pub const max_tray_item_label_bytes = types.max_tray_item_label_bytes;
39
44
  pub const max_tray_item_command_bytes = types.max_tray_item_command_bytes;
45
+ pub const max_tray_item_detail_bytes = types.max_tray_item_detail_bytes;
40
46
  pub const max_drop_paths_bytes = types.max_drop_paths_bytes;
41
47
  pub const max_drop_paths = types.max_drop_paths;
42
48
  pub const max_window_event_name_bytes = types.max_window_event_name_bytes;
@@ -72,6 +78,7 @@ pub const validateShortcut = types.validateShortcut;
72
78
  pub const validateMenus = types.validateMenus;
73
79
  pub const validateMenuItem = types.validateMenuItem;
74
80
  pub const isValidShortcutKey = types.isValidShortcutKey;
81
+ pub const isValidShortcutBinding = types.isValidShortcutBinding;
75
82
  pub const WindowRestorePolicy = types.WindowRestorePolicy;
76
83
  pub const WindowTitlebarStyle = types.WindowTitlebarStyle;
77
84
  pub const WindowChrome = types.WindowChrome;
@@ -79,6 +86,7 @@ pub const FormFactor = types.FormFactor;
79
86
  pub const WindowDragRegion = types.WindowDragRegion;
80
87
  pub const WindowShowMode = types.WindowShowMode;
81
88
  pub const WindowClosePolicy = types.WindowClosePolicy;
89
+ pub const LaunchAtLoginStatus = types.LaunchAtLoginStatus;
82
90
  pub const WindowOptions = types.WindowOptions;
83
91
  pub const WindowState = types.WindowState;
84
92
  pub const WindowInfo = types.WindowInfo;
@@ -120,13 +128,24 @@ pub const MessageDialogStyle = types.MessageDialogStyle;
120
128
  pub const MessageDialogResult = types.MessageDialogResult;
121
129
  pub const MessageDialogOptions = types.MessageDialogOptions;
122
130
  pub const NotificationOptions = types.NotificationOptions;
131
+ pub const NotificationCommandEvent = types.NotificationCommandEvent;
123
132
  pub const CredentialKey = types.CredentialKey;
124
133
  pub const Credential = types.Credential;
134
+ pub const LocalTimeStyle = types.LocalTimeStyle;
135
+ pub const StatusItemId = types.StatusItemId;
136
+ pub const primary_status_item_id = types.primary_status_item_id;
125
137
  pub const TrayItemId = types.TrayItemId;
126
138
  pub const TrayOptions = types.TrayOptions;
139
+ pub const TrayShell = types.TrayShell;
140
+ pub const trayShell = types.trayShell;
141
+ pub const TrayTone = types.TrayTone;
142
+ pub const TrayPresentation = types.TrayPresentation;
127
143
  pub const TrayMenuItem = types.TrayMenuItem;
144
+ pub const TrayItemRole = types.TrayItemRole;
128
145
  pub const NativeCommandEvent = types.NativeCommandEvent;
129
146
  pub const MenuCommandEvent = types.MenuCommandEvent;
147
+ pub const TrayCommandEvent = types.TrayCommandEvent;
148
+ pub const TrayActionEvent = types.TrayActionEvent;
130
149
  pub const reserved_timer_id_base = types.reserved_timer_id_base;
131
150
  pub const press_hold_timer_id = types.press_hold_timer_id;
132
151
  pub const TimerEvent = types.TimerEvent;