@native-sdk/cli 0.10.1 → 0.11.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/README.md +8 -6
- package/bin/native.js +2 -1
- package/build/app.zig +393 -97
- package/build/corewire.zig +53 -0
- package/build/test_shards.zig +49 -0
- package/build/ts_run.mjs +3 -3
- package/build.zig +2030 -83
- package/native-sdk.d.ts +5 -1
- package/package.json +20 -14
- package/packages/core/compile-surface/core.ts +164 -72
- package/packages/core/package-lock.json +75 -357
- package/packages/core/package.json +25 -4
- package/packages/core/scripts/compiler_command.mjs +17 -12
- package/packages/core/scripts/compiler_typecheck.mjs +1 -0
- package/packages/core/scripts/gen_declarations.mjs +3 -2
- package/packages/core/scripts/gen_service_surface.mjs +22 -10
- package/packages/core/scripts/install_scriptc.mjs +182 -0
- package/packages/core/scripts/invoke_scriptc.mjs +18 -0
- package/packages/core/scripts/merge_static_archives.mjs +6 -1
- package/packages/core/scripts/npm_static_spike.mjs +2 -2
- package/packages/core/scripts/run_external_core_compiler.mjs +22 -10
- package/packages/core/scripts/run_external_service_compiler.mjs +15 -15
- package/packages/core/scripts/run_library_compiler.mjs +51 -0
- package/packages/core/scripts/run_native_tests.mjs +22 -0
- package/packages/core/scripts/scriptc-toolchain.json +101 -0
- package/packages/core/scripts/scriptc_toolchain.mjs +121 -0
- package/packages/core/scripts/stage_external_core.mjs +68 -1
- package/packages/core/scripts/surface_manifest_diff.mjs +19 -12
- package/packages/core/sdk/bytes.d.ts +2 -0
- package/packages/core/sdk/bytes.ts +86 -0
- package/packages/core/sdk/core.d.ts +332 -5
- package/packages/core/sdk/core.ts +371 -85
- package/packages/core/sdk/events.d.ts +252 -0
- package/packages/core/sdk/events.ts +240 -2
- package/packages/core/sdk/internal/image_identity.d.ts +7 -0
- package/packages/core/sdk/internal/image_identity.ts +71 -0
- package/packages/core/sdk/internal/markdown_policy.d.ts +5 -0
- package/packages/core/sdk/internal/markdown_policy.ts +878 -0
- package/packages/core/sdk/text.d.ts +27 -0
- package/packages/core/sdk/text.ts +206 -15
- package/packages/core/sdk/theme.d.ts +251 -0
- package/packages/core/sdk/theme.ts +267 -0
- package/packages/core/src/authorization.ts +137 -0
- package/packages/core/src/automation_commands.ts +201 -0
- package/packages/core/src/automation_interactions.ts +92 -0
- package/packages/core/src/bridge_descriptors.ts +104 -0
- package/packages/core/src/builtin_coordination.ts +172 -0
- package/packages/core/src/canvas_frame_coordination.ts +81 -0
- package/packages/core/src/canvas_presentation_lifecycle.ts +84 -0
- package/packages/core/src/canvas_scene_observation.ts +145 -0
- package/packages/core/src/chart_content.ts +161 -0
- package/packages/core/src/chart_plans.ts +432 -0
- package/packages/core/src/checker.ts +186 -19
- package/packages/core/src/cli.ts +2 -11
- package/packages/core/src/code_content.ts +580 -0
- package/packages/core/src/command_coordination.ts +140 -0
- package/packages/core/src/component_composition.ts +94 -0
- package/packages/core/src/component_construction.ts +149 -0
- package/packages/core/src/context_menus.ts +76 -0
- package/packages/core/src/contract.ts +25 -7
- package/packages/core/src/control_appearance.ts +232 -0
- package/packages/core/src/control_commands.ts +115 -0
- package/packages/core/src/control_content.ts +105 -0
- package/packages/core/src/control_geometry.ts +107 -0
- package/packages/core/src/control_payloads.ts +119 -0
- package/packages/core/src/control_primitives.ts +134 -0
- package/packages/core/src/devhost.ts +82 -7
- package/packages/core/src/devhost_journal.mjs +30 -7
- package/packages/core/src/diagnostics.ts +7 -0
- package/packages/core/src/effect_plans.ts +71 -0
- package/packages/core/src/extent_program.ts +53 -0
- package/packages/core/src/flow_measurement.ts +121 -0
- package/packages/core/src/font_registry.ts +37 -0
- package/packages/core/src/frontend.ts +12 -10
- package/packages/core/src/glyph_atlas.ts +86 -0
- package/packages/core/src/gpu_packet_preparation.ts +130 -0
- package/packages/core/src/gpu_planning.ts +123 -0
- package/packages/core/src/gpu_presentation.ts +55 -0
- package/packages/core/src/host_flow.ts +89 -0
- package/packages/core/src/host_input_regions.ts +165 -0
- package/packages/core/src/image_registry.ts +66 -0
- package/packages/core/src/indicator_plans.ts +132 -0
- package/packages/core/src/infer.ts +150 -8
- package/packages/core/src/input_composition.ts +116 -0
- package/packages/core/src/intrinsic_measure.ts +100 -0
- package/packages/core/src/layout_coordination.ts +207 -0
- package/packages/core/src/leaf_plans.ts +134 -0
- package/packages/core/src/markup_canonical.ts +140 -0
- package/packages/core/src/markup_construction.ts +189 -0
- package/packages/core/src/markup_development.ts +160 -0
- package/packages/core/src/markup_display.ts +43 -0
- package/packages/core/src/markup_document.ts +226 -0
- package/packages/core/src/markup_elements.ts +225 -0
- package/packages/core/src/markup_expressions.ts +79 -0
- package/packages/core/src/markup_imports.ts +146 -0
- package/packages/core/src/markup_parser.ts +228 -0
- package/packages/core/src/markup_runtime.ts +93 -0
- package/packages/core/src/markup_scalars.ts +143 -0
- package/packages/core/src/markup_shapes.ts +243 -0
- package/packages/core/src/markup_specialized.ts +242 -0
- package/packages/core/src/markup_text.ts +86 -0
- package/packages/core/src/markup_values.ts +336 -0
- package/packages/core/src/measurement_coordination.ts +185 -0
- package/packages/core/src/modules.ts +1 -1
- package/packages/core/src/motion_sampling.ts +100 -0
- package/packages/core/src/paragraph_layout.ts +192 -0
- package/packages/core/src/portable_sources.json +98 -0
- package/packages/core/src/portable_sources.ts +17 -0
- package/packages/core/src/registered_font.ts +92 -0
- package/packages/core/src/render_animation_lifecycle.ts +128 -0
- package/packages/core/src/render_coordination.ts +170 -0
- package/packages/core/src/render_resources.ts +234 -0
- package/packages/core/src/runtime_policy.ts +3954 -0
- package/packages/core/src/scalar_text.ts +82 -0
- package/packages/core/src/scroll_mutation.ts +86 -0
- package/packages/core/src/scroll_tree.ts +86 -0
- package/packages/core/src/service_contract.ts +55 -3
- package/packages/core/src/session_codecs.ts +309 -0
- package/packages/core/src/shell_admission.ts +126 -0
- package/packages/core/src/shell_coordination.ts +93 -0
- package/packages/core/src/sqlite_cli.ts +14 -46
- package/packages/core/src/sqlite_codegen.ts +84 -0
- package/packages/core/src/staged_rebuild.ts +60 -0
- package/packages/core/src/status_validation.ts +232 -0
- package/packages/core/src/stream_policy.ts +63 -0
- package/packages/core/src/surface_recipes.ts +136 -0
- package/packages/core/src/system_admission.ts +60 -0
- package/packages/core/src/terminal_paint.ts +436 -0
- package/packages/core/src/text_document_width.ts +81 -0
- package/packages/core/src/text_measurement_cache.ts +69 -0
- package/packages/core/src/text_query_layout.ts +179 -0
- package/packages/core/src/text_run_layout.ts +410 -0
- package/packages/core/src/text_span_queries.ts +355 -0
- package/packages/core/src/typed_ast.ts +18 -1
- package/packages/core/src/types.ts +7 -5
- package/packages/core/src/vector_effects.ts +98 -0
- package/packages/core/src/vector_raster.ts +243 -0
- package/packages/core/src/view_bridge.ts +161 -0
- package/packages/core/src/view_check.ts +145 -0
- package/packages/core/src/view_components.ts +2415 -0
- package/packages/core/src/view_coordination.ts +198 -0
- package/packages/core/src/view_evaluator.ts +823 -0
- package/packages/core/src/view_frontend.ts +1102 -0
- package/packages/core/src/view_program.ts +221 -0
- package/packages/core/src/view_reload.ts +166 -0
- package/packages/core/src/view_reload_watch.ts +98 -0
- package/packages/core/src/view_sources.ts +34 -0
- package/packages/core/src/virtual_windows.ts +88 -0
- package/packages/core/src/web_panes.ts +67 -0
- package/packages/core/src/widget_audits.ts +202 -0
- package/packages/core/src/widget_changes.ts +258 -0
- package/packages/core/src/widget_continuity.ts +37 -0
- package/packages/core/src/widget_metrics.ts +139 -0
- package/packages/core/src/widget_motion.ts +171 -0
- package/packages/core/src/widget_paint.ts +272 -0
- package/packages/core/src/widget_paint_walk.ts +203 -0
- package/packages/core/src/widget_presentation.ts +141 -0
- package/packages/core/src/widget_reconcile.ts +63 -0
- package/packages/core/src/widget_retention.ts +62 -0
- package/packages/core/src/widget_routing.ts +262 -0
- package/packages/core/src/window_lifecycle.ts +92 -0
- package/packages/core/testing/index.ts +430 -0
- package/schemas/app.schema.json +13 -0
- package/skill-data/core/SKILL.md +2 -2
- package/skill-data/native-ui/SKILL.md +77 -18
- package/skill-data/ts-core/SKILL.md +117 -11
- package/skill-data/ts-services/SKILL.md +1 -1
- package/skill-data/ts-services/references/service-surface.md +288 -144
- package/src/app_runner/root.zig +39 -12
- package/src/app_runner/ts_compiled_view.zig +1702 -0
- package/src/app_runner/ts_core_main.zig +185 -14
- package/src/app_runner/ts_core_mobile.zig +25 -13
- package/src/automation/server.zig +57 -6
- package/src/automation/snapshot.zig +9 -637
- package/src/automation/snapshot_reference.zig +656 -0
- package/src/automation/snapshot_serialization.zig +566 -0
- package/src/embed/host.zig +2 -0
- package/src/embed/tests.zig +2 -0
- package/src/embed/ui_host.zig +2 -0
- package/src/platform/keyboard_input.zig +32 -0
- package/src/platform/linux/gtk_host.c +36 -24
- package/src/platform/linux/gtk_pixels.h +118 -0
- package/src/platform/linux/gtk_pixels_test.c +241 -0
- package/src/platform/linux/root.zig +4 -0
- package/src/platform/macos/appkit_host.h +7 -2
- package/src/platform/macos/appkit_host.m +219 -39
- package/src/platform/macos/cef_host.mm +15 -1
- package/src/platform/macos/global_shortcuts.zig +138 -0
- package/src/platform/macos/key_codes.zig +102 -0
- package/src/platform/macos/keyboard_input.zig +81 -0
- package/src/platform/macos/pointer_motion_test.m +96 -0
- package/src/platform/macos/root.zig +25 -3
- package/src/platform/macos/scroll_driver_test.m +105 -0
- package/src/platform/macos/spectrum_bins.h +34 -0
- package/src/platform/macos/spectrum_bins_test.c +56 -0
- package/src/platform/macos/text_keyboard_test.m +80 -0
- package/src/platform/macos/webview_inspection_test.m +106 -0
- package/src/platform/macos/widget_focus_test.m +66 -0
- package/src/platform/null_platform.zig +130 -2
- package/src/platform/null_platform_tests.zig +13 -0
- package/src/platform/root.zig +15 -0
- package/src/platform/types.zig +115 -0
- package/src/platform/windows/global_shortcuts.zig +157 -0
- package/src/platform/windows/key_codes.zig +63 -0
- package/src/platform/windows/keyboard_input.zig +136 -0
- package/src/platform/windows/root.zig +17 -0
- package/src/platform/windows/webview2_host.cpp +7 -2
- package/src/primitives/app_manifest/comptime_scene.zig +1 -1
- package/src/primitives/app_manifest/root.zig +2 -0
- package/src/primitives/app_manifest/tests.zig +4 -1
- package/src/primitives/app_manifest/validation.zig +2 -0
- package/src/primitives/canvas/a11y_audit.zig +3 -1
- package/src/primitives/canvas/canvas_frame_coordination_policy.zig +134 -0
- package/src/primitives/canvas/chart_content_policy.zig +75 -0
- package/src/primitives/canvas/chart_plan_policy.zig +196 -0
- package/src/primitives/canvas/code_content_policy.zig +162 -0
- package/src/primitives/canvas/commands.zig +29 -1
- package/src/primitives/canvas/component_composition.zig +125 -0
- package/src/primitives/canvas/component_composition_policy.zig +44 -0
- package/src/primitives/canvas/component_construction_policy.zig +187 -0
- package/src/primitives/canvas/container_layout_policy.zig +87 -0
- package/src/primitives/canvas/control_appearance_policy.zig +142 -0
- package/src/primitives/canvas/control_command_policy.zig +75 -0
- package/src/primitives/canvas/control_content_policy.zig +90 -0
- package/src/primitives/canvas/control_geometry_policy.zig +165 -0
- package/src/primitives/canvas/control_payload_policy.zig +48 -0
- package/src/primitives/canvas/control_primitive_policy.zig +129 -0
- package/src/primitives/canvas/decision_reuse.zig +133 -0
- package/src/primitives/canvas/effect_plan_policy.zig +96 -0
- package/src/primitives/canvas/events.zig +1027 -1
- package/src/primitives/canvas/flow_measurement_policy.zig +237 -0
- package/src/primitives/canvas/font_ttf.zig +27 -3
- package/src/primitives/canvas/fonts/Geist-Bold.ttf +0 -0
- package/src/primitives/canvas/fonts/Geist-Medium.ttf +0 -0
- package/src/primitives/canvas/fonts/OFL.txt +93 -0
- package/src/primitives/canvas/fonts/README.md +15 -0
- package/src/primitives/canvas/frame.zig +92 -23
- package/src/primitives/canvas/glyph_atlas_policy.zig +40 -0
- package/src/primitives/canvas/gpu.zig +10 -0
- package/src/primitives/canvas/gpu_packet_preparation_policy.zig +325 -0
- package/src/primitives/canvas/gpu_planning_policy.zig +364 -0
- package/src/primitives/canvas/gpu_presentation_policy.zig +74 -0
- package/src/primitives/canvas/grid_layout_policy.zig +51 -0
- package/src/primitives/canvas/indicator_plan_policy.zig +128 -0
- package/src/primitives/canvas/intrinsic_layout_policy.zig +87 -0
- package/src/primitives/canvas/intrinsic_measure_policy.zig +131 -0
- package/src/primitives/canvas/layout_audit.zig +5 -2
- package/src/primitives/canvas/layout_coordination_policy.zig +262 -0
- package/src/primitives/canvas/leaf_plan_policy.zig +117 -0
- package/src/primitives/canvas/markdown.zig +13 -3
- package/src/primitives/canvas/markdown_content_policy.zig +227 -0
- package/src/primitives/canvas/markdown_image_binding.zig +81 -0
- package/src/primitives/canvas/markdown_tests.zig +3 -3
- package/src/primitives/canvas/measurement_coordination_policy.zig +288 -0
- package/src/primitives/canvas/numeric_capabilities.zig +14 -0
- package/src/primitives/canvas/reference.zig +15 -11
- package/src/primitives/canvas/reference_tests.zig +58 -0
- package/src/primitives/canvas/registered_font_policy.zig +152 -0
- package/src/primitives/canvas/render.zig +48 -0
- package/src/primitives/canvas/render_cache_policy.zig +184 -0
- package/src/primitives/canvas/render_coordination_policy.zig +163 -0
- package/src/primitives/canvas/render_damage_policy.zig +160 -0
- package/src/primitives/canvas/render_effects.zig +14 -0
- package/src/primitives/canvas/render_generic_resources.zig +14 -0
- package/src/primitives/canvas/render_images.zig +14 -0
- package/src/primitives/canvas/render_layers.zig +14 -0
- package/src/primitives/canvas/render_override_policy.zig +119 -0
- package/src/primitives/canvas/render_paths.zig +14 -0
- package/src/primitives/canvas/render_plan_policy.zig +199 -0
- package/src/primitives/canvas/render_resource_policy.zig +476 -0
- package/src/primitives/canvas/root.zig +107 -4
- package/src/primitives/canvas/semantic_tree_policy.zig +158 -0
- package/src/primitives/canvas/serialization.zig +8 -1
- package/src/primitives/canvas/surface_layout_policy.zig +36 -0
- package/src/primitives/canvas/surface_recipe_policy.zig +231 -0
- package/src/primitives/canvas/terminal_grid.zig +10 -696
- package/src/primitives/canvas/terminal_grid_reference.zig +709 -0
- package/src/primitives/canvas/terminal_paint_policy.zig +191 -0
- package/src/primitives/canvas/text.zig +1 -0
- package/src/primitives/canvas/text_atlas.zig +113 -0
- package/src/primitives/canvas/text_cache_policy.zig +94 -0
- package/src/primitives/canvas/text_document_policy.zig +120 -0
- package/src/primitives/canvas/text_layout.zig +51 -2
- package/src/primitives/canvas/text_layout_cache.zig +29 -0
- package/src/primitives/canvas/text_layout_hash.zig +1 -0
- package/src/primitives/canvas/text_layout_types.zig +3 -0
- package/src/primitives/canvas/text_measure_cache.zig +46 -0
- package/src/primitives/canvas/text_measurement_policy.zig +124 -0
- package/src/primitives/canvas/text_metrics.zig +53 -37
- package/src/primitives/canvas/text_metrics_tests.zig +52 -7
- package/src/primitives/canvas/text_query_policy.zig +295 -0
- package/src/primitives/canvas/text_run_policy.zig +252 -0
- package/src/primitives/canvas/text_scalar_policy.zig +234 -0
- package/src/primitives/canvas/text_span_query_policy.zig +232 -0
- package/src/primitives/canvas/text_spans.zig +280 -8
- package/src/primitives/canvas/text_tests.zig +10 -0
- package/src/primitives/canvas/tokens.zig +47 -0
- package/src/primitives/canvas/ui.zig +251 -83
- package/src/primitives/canvas/ui_markup.zig +207 -46
- package/src/primitives/canvas/ui_markup_canonical.zig +237 -0
- package/src/primitives/canvas/ui_markup_compiled.zig +1724 -80
- package/src/primitives/canvas/ui_markup_compiled_tests.zig +225 -0
- package/src/primitives/canvas/ui_markup_compiled_values.zig +76 -0
- package/src/primitives/canvas/ui_markup_construction.zig +146 -0
- package/src/primitives/canvas/ui_markup_contract.zig +146 -14
- package/src/primitives/canvas/ui_markup_contract_tests.zig +77 -0
- package/src/primitives/canvas/ui_markup_display.zig +82 -0
- package/src/primitives/canvas/ui_markup_document.zig +196 -0
- package/src/primitives/canvas/ui_markup_elements.zig +163 -0
- package/src/primitives/canvas/ui_markup_expr.zig +192 -2
- package/src/primitives/canvas/ui_markup_imports.zig +262 -0
- package/src/primitives/canvas/ui_markup_parser.zig +117 -0
- package/src/primitives/canvas/ui_markup_reflect.zig +56 -0
- package/src/primitives/canvas/ui_markup_runtime.zig +76 -0
- package/src/primitives/canvas/ui_markup_scalars.zig +115 -0
- package/src/primitives/canvas/ui_markup_shapes.zig +224 -0
- package/src/primitives/canvas/ui_markup_specialized.zig +106 -0
- package/src/primitives/canvas/ui_markup_tests.zig +116 -0
- package/src/primitives/canvas/ui_markup_text.zig +128 -0
- package/src/primitives/canvas/ui_markup_values.zig +368 -0
- package/src/primitives/canvas/ui_markup_view.zig +3026 -57
- package/src/primitives/canvas/ui_markup_view_tests.zig +142 -10
- package/src/primitives/canvas/ui_schema.zig +13 -1
- package/src/primitives/canvas/ui_schema_tests.zig +11 -7
- package/src/primitives/canvas/ui_tests.zig +1 -0
- package/src/primitives/canvas/vector.zig +36 -2
- package/src/primitives/canvas/vector_effect_policy.zig +236 -0
- package/src/primitives/canvas/vector_raster_policy.zig +190 -0
- package/src/primitives/canvas/virtual_extent_policy.zig +350 -0
- package/src/primitives/canvas/virtual_extents.zig +113 -3
- package/src/primitives/canvas/virtual_flow_policy.zig +108 -0
- package/src/primitives/canvas/widget_audit_policy.zig +293 -0
- package/src/primitives/canvas/widget_change_policy.zig +298 -0
- package/src/primitives/canvas/widget_invalidation.zig +113 -2
- package/src/primitives/canvas/widget_layout.zig +673 -128
- package/src/primitives/canvas/widget_layout_tests.zig +4 -0
- package/src/primitives/canvas/widget_metric_policy.zig +129 -0
- package/src/primitives/canvas/widget_metrics.zig +45 -6
- package/src/primitives/canvas/widget_paint_policy.zig +166 -0
- package/src/primitives/canvas/widget_paint_walk_policy.zig +252 -0
- package/src/primitives/canvas/widget_presentation_policy.zig +168 -0
- package/src/primitives/canvas/widget_render.zig +744 -74
- package/src/primitives/canvas/widget_render_controls.zig +1217 -133
- package/src/primitives/canvas/widget_render_scroll.zig +11 -3
- package/src/primitives/canvas/widget_render_style.zig +94 -0
- package/src/primitives/canvas/widget_render_surfaces.zig +61 -50
- package/src/primitives/canvas/widget_routing.zig +75 -0
- package/src/primitives/canvas/widget_routing_policy.zig +135 -0
- package/src/primitives/canvas/widget_runtime.zig +21 -1
- package/src/primitives/canvas/widget_semantics.zig +25 -0
- package/src/primitives/canvas/widget_text_input.zig +86 -23
- package/src/primitives/canvas/widget_text_select.zig +1 -0
- package/src/primitives/canvas/widget_tree.zig +8 -1
- package/src/primitives/canvas/widgets.zig +42 -12
- package/src/primitives/canvas/wrapped_layout_policy.zig +104 -0
- package/src/root.zig +26 -0
- package/src/runtime/accessibility_policy.zig +122 -0
- package/src/runtime/api.zig +29 -0
- package/src/runtime/app_dispatch_policy.zig +68 -0
- package/src/runtime/authorization_policy.zig +150 -0
- package/src/runtime/automation_command_policy.zig +241 -0
- package/src/runtime/automation_interaction_policy.zig +107 -0
- package/src/runtime/automation_snapshot.zig +52 -22
- package/src/runtime/automation_snapshot_reference.zig +290 -0
- package/src/runtime/automation_widget_dispatch.zig +267 -355
- package/src/runtime/automation_widget_dispatch_reference.zig +900 -0
- package/src/runtime/blob_policy.zig +58 -0
- package/src/runtime/blob_reference.zig +64 -0
- package/src/runtime/bridge_descriptor_policy.zig +206 -0
- package/src/runtime/bridge_payload.zig +2 -0
- package/src/runtime/builtin_bridge.zig +180 -44
- package/src/runtime/builtin_coordination_policy.zig +121 -0
- package/src/runtime/callback_policy_test_reference.zig +97 -0
- package/src/runtime/canvas_drag_policy.zig +94 -0
- package/src/runtime/canvas_fonts.zig +38 -10
- package/src/runtime/canvas_frame.zig +590 -134
- package/src/runtime/canvas_frame_helpers.zig +1 -0
- package/src/runtime/canvas_hover_policy.zig +131 -0
- package/src/runtime/canvas_images.zig +59 -30
- package/src/runtime/canvas_keyboard_focus_policy.zig +154 -0
- package/src/runtime/canvas_limits.zig +1 -1
- package/src/runtime/canvas_presentation_lifecycle_policy.zig +86 -0
- package/src/runtime/canvas_scene_observation_policy.zig +181 -0
- package/src/runtime/canvas_widget_context_menu.zig +183 -4
- package/src/runtime/canvas_widget_context_menu_test_cases.zig +1147 -0
- package/src/runtime/canvas_widget_context_menu_tests.zig +23 -1098
- package/src/runtime/canvas_widget_display.zig +110 -9
- package/src/runtime/canvas_widget_events.zig +718 -328
- package/src/runtime/canvas_widget_runtime.zig +720 -150
- package/src/runtime/canvas_widget_scroll_drivers.zig +39 -1
- package/src/runtime/canvas_widget_scroll_tests.zig +31 -0
- package/src/runtime/canvas_widget_state.zig +93 -56
- package/src/runtime/channel_sources.zig +80 -0
- package/src/runtime/command_policy.zig +161 -0
- package/src/runtime/component_policy.zig +83 -0
- package/src/runtime/context_menu_policy.zig +112 -0
- package/src/runtime/core.zig +170 -6
- package/src/runtime/desktop_files.zig +189 -0
- package/src/runtime/effects.zig +638 -33
- package/src/runtime/effects_host_tests.zig +25 -0
- package/src/runtime/effects_tests.zig +28 -0
- package/src/runtime/file_policy_test_reference.zig +113 -0
- package/src/runtime/flow.zig +419 -341
- package/src/runtime/flow_reference.zig +1427 -0
- package/src/runtime/font_registry_policy.zig +72 -0
- package/src/runtime/frame_profile.zig +24 -33
- package/src/runtime/global_shortcuts.zig +75 -0
- package/src/runtime/gpu_surface_events.zig +97 -35
- package/src/runtime/host_event_pump.zig +303 -0
- package/src/runtime/host_event_pump_reference.zig +268 -0
- package/src/runtime/host_flow_policy.zig +155 -0
- package/src/runtime/host_input_regions_policy.zig +156 -0
- package/src/runtime/image_registry_policy.zig +94 -0
- package/src/runtime/input_composition_policy.zig +138 -0
- package/src/runtime/journal_policy.zig +66 -0
- package/src/runtime/journal_reference.zig +53 -0
- package/src/runtime/keyboard_input.zig +86 -0
- package/src/runtime/lifecycle_policy_test_reference.zig +97 -0
- package/src/runtime/markup_development_policy.zig +91 -0
- package/src/runtime/media_surface.zig +40 -1
- package/src/runtime/motion_sampling_policy.zig +159 -0
- package/src/runtime/recording_policy.zig +42 -0
- package/src/runtime/render_animation_policy.zig +206 -0
- package/src/runtime/replay_policy.zig +66 -0
- package/src/runtime/replay_policy_reference.zig +326 -0
- package/src/runtime/replay_progress_policy.zig +64 -0
- package/src/runtime/replay_progress_reference.zig +34 -0
- package/src/runtime/request_policy_test_reference.zig +188 -0
- package/src/runtime/root.zig +16 -0
- package/src/runtime/scroll_mutation_policy.zig +130 -0
- package/src/runtime/scroll_mutation_runtime.zig +158 -0
- package/src/runtime/scroll_tree_policy.zig +99 -0
- package/src/runtime/session_blobs.zig +157 -58
- package/src/runtime/session_blobs_reference.zig +692 -0
- package/src/runtime/session_codec.zig +361 -0
- package/src/runtime/session_codec_reference.zig +1027 -0
- package/src/runtime/session_journal.zig +246 -983
- package/src/runtime/session_record.zig +231 -45
- package/src/runtime/session_replay.zig +157 -415
- package/src/runtime/session_tests.zig +552 -0
- package/src/runtime/shell_admission_policy.zig +225 -0
- package/src/runtime/shell_coordination_policy.zig +138 -0
- package/src/runtime/shell_layout.zig +126 -1
- package/src/runtime/snapshot_policy.zig +60 -0
- package/src/runtime/snapshot_reference.zig +64 -0
- package/src/runtime/staged_rebuild_policy.zig +83 -0
- package/src/runtime/state.zig +16 -0
- package/src/runtime/status_validation.zig +190 -0
- package/src/runtime/system_admission_policy.zig +140 -0
- package/src/runtime/system_services.zig +65 -36
- package/src/runtime/tests.zig +2 -0
- package/src/runtime/ts_canvas_hooks.zig +261 -0
- package/src/runtime/ts_canvas_hooks_tests.zig +279 -0
- package/src/runtime/ts_canvas_icons.zig +234 -0
- package/src/runtime/ts_core_host.zig +2451 -411
- package/src/runtime/ts_core_host_tests.zig +1982 -0
- package/src/runtime/ts_test_host.zig +699 -0
- package/src/runtime/ts_ui_app.zig +1111 -45
- package/src/runtime/ui_app.zig +1381 -650
- package/src/runtime/ui_app_provenance.zig +147 -5
- package/src/runtime/ui_app_provenance_reference.zig +370 -0
- package/src/runtime/ui_app_tests.zig +667 -188
- package/src/runtime/ui_app_window_tests.zig +222 -0
- package/src/runtime/view.zig +25 -0
- package/src/runtime/view_canvas.zig +30 -6
- package/src/runtime/view_coordination_policy.zig +147 -0
- package/src/runtime/view_reload.zig +226 -0
- package/src/runtime/view_widget_control.zig +51 -14
- package/src/runtime/view_widget_scroll.zig +46 -26
- package/src/runtime/view_widget_text.zig +153 -68
- package/src/runtime/view_widget_tree.zig +503 -69
- package/src/runtime/virtual_window_policy.zig +128 -0
- package/src/runtime/web_pane_policy.zig +111 -0
- package/src/runtime/web_pane_test_cases.zig +204 -0
- package/src/runtime/webview_view_bridge_tests.zig +2 -0
- package/src/runtime/widget_continuity_policy.zig +73 -0
- package/src/runtime/widget_motion_policy.zig +238 -0
- package/src/runtime/widget_reconcile_policy.zig +81 -0
- package/src/runtime/widget_retention_policy.zig +75 -0
- package/src/runtime/window_command_bridge_tests.zig +63 -0
- package/src/runtime/window_lifecycle_policy.zig +127 -0
- package/src/runtime/window_storage.zig +74 -8
- package/src/runtime/window_view_runtime.zig +148 -33
- package/src/runtime/window_views.zig +179 -11
- package/src/security/root.zig +1 -0
- package/src/tooling/components/identity_tests.zig +62 -36
- package/src/tooling/components/stepper.native +24 -0
- package/src/tooling/components/stepper.zig +0 -19
- package/src/tooling/components/timeline-item.native +22 -0
- package/src/tooling/components/timeline.native +5 -3
- package/src/tooling/components/timeline_item.zig +0 -32
- package/src/tooling/eject_components.zig +76 -8
- package/src/tooling/ios.zig +66 -12
- package/src/tooling/manifest.zig +35 -0
- package/src/tooling/raw_manifest.zig +6 -0
- package/src/tooling/templates.zig +23 -3
- package/src/tooling/ts_core.zig +97 -4
- package/src/tooling/verbs.zig +87 -1
- package/tools/corewire/build_profile.mjs +54 -0
- package/tools/corewire/contract_intake.ts +303 -0
- package/tools/corewire/contract_intake.zig +82 -0
- package/tools/corewire/core.test.ts +188 -0
- package/tools/corewire/core_abi.zig +55 -0
- package/tools/corewire/core_cases.ts +233 -0
- package/tools/corewire/core_contract.ts +407 -0
- package/tools/corewire/core_emission.ts +136 -0
- package/tools/corewire/core_emission.zig +69 -0
- package/tools/corewire/core_goldens.json +3110 -0
- package/tools/corewire/core_policy.ts +14 -0
- package/tools/corewire/core_policy.zig +48 -0
- package/tools/corewire/core_projection.ts +361 -0
- package/tools/corewire/core_vocabulary.ts +6 -0
- package/tools/corewire/emit.zig +19 -1590
- package/tools/corewire/emit_facade.ts +714 -0
- package/tools/corewire/emit_facade.zig +10 -3752
- package/tools/corewire/emit_mirror.ts +300 -0
- package/tools/corewire/emit_profile.ts +50 -0
- package/tools/corewire/emit_service.ts +331 -0
- package/tools/corewire/emit_service.zig +23 -842
- package/tools/corewire/entry.test.ts +95 -0
- package/tools/corewire/entry_coordination.ts +127 -0
- package/tools/corewire/entry_coordination.zig +190 -0
- package/tools/corewire/facade_templates.ts +85 -0
- package/tools/corewire/filesystem.test.ts +166 -0
- package/tools/corewire/filesystem_coordination.ts +213 -0
- package/tools/corewire/filesystem_coordination.zig +245 -0
- package/tools/corewire/intake.test.ts +39 -0
- package/tools/corewire/intake_cases.ts +55 -0
- package/tools/corewire/intake_goldens.json +12237 -0
- package/tools/corewire/invocation.test.ts +28 -0
- package/tools/corewire/invocation.ts +175 -0
- package/tools/corewire/invocation.zig +136 -0
- package/tools/corewire/invocation_cases.ts +60 -0
- package/tools/corewire/invocation_fixture.ts +33 -0
- package/tools/corewire/invocation_goldens.json +1143 -0
- package/tools/corewire/invocation_tests.zig +111 -0
- package/tools/corewire/invocation_usage.ts +2 -0
- package/tools/corewire/lossless_projection.ts +96 -0
- package/tools/corewire/main.zig +7 -680
- package/tools/corewire/main_reference.zig +415 -0
- package/tools/corewire/mirror_templates.ts +59 -0
- package/tools/corewire/profile.test.ts +248 -0
- package/tools/corewire/profile.zig +56 -0
- package/tools/corewire/profile_emission.ts +204 -0
- package/tools/corewire/profile_library.json +29 -0
- package/tools/corewire/profile_tests.zig +136 -0
- package/tools/corewire/service.test.ts +75 -0
- package/tools/corewire/service_cases.ts +61 -0
- package/tools/corewire/service_contract.zig +40 -146
- package/tools/corewire/service_goldens.json +650 -0
- package/tools/corewire/service_projection.zig +52 -0
- package/tools/corewire/service_templates.ts +14 -0
- package/tools/corewire/shim_rt.zig +9 -0
- package/tools/corewire/sidecar.zig +269 -1438
- package/tools/corewire/emit_profile.zig +0 -521
package/build.zig
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
const std = @import("std");
|
|
2
2
|
const web_engine_tool = @import("src/tooling/web_engine.zig");
|
|
3
|
+
const test_shards = @import("build/test_shards.zig");
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
test "complete root test sharding" {
|
|
6
|
+
std.testing.refAllDecls(test_shards);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Installing the archive extractor opts this checkout into compiler tests.
|
|
10
|
+
// The build drivers then require a complete checksum-pinned release cache;
|
|
11
|
+
// disabling npm install scripts must not silently skip compiler qualification.
|
|
12
|
+
fn repositoryScriptcInstallMarker(b: *std.Build) []const u8 {
|
|
13
|
+
return b.pathFromRoot("packages/core/node_modules/tar/package.json");
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
const PlatformOption = enum {
|
|
@@ -104,6 +109,68 @@ test "service archive support matches ScriptC localized object formats" {
|
|
|
104
109
|
try std.testing.expect(app_build.serviceArchiveSupported(windows_host, native_windows_msvc));
|
|
105
110
|
}
|
|
106
111
|
|
|
112
|
+
test "root TypeScript markup discovery classification and resolver budgets" {
|
|
113
|
+
const app_build = @import("build/app.zig");
|
|
114
|
+
try std.testing.expect(app_build.isRootMarkupSourcePath("components/card.native"));
|
|
115
|
+
try std.testing.expect(app_build.isRootMarkupSourcePath("feature/nested/panel.native"));
|
|
116
|
+
try std.testing.expect(!app_build.isRootMarkupSourcePath("app.native"));
|
|
117
|
+
try std.testing.expect(!app_build.isRootMarkupSourcePath("windows/settings.native"));
|
|
118
|
+
try std.testing.expect(!app_build.isRootMarkupSourcePath("components/card.ts"));
|
|
119
|
+
|
|
120
|
+
// The authored paths are relative to src/, while native check and the
|
|
121
|
+
// desktop hot-reload resolver see the leading `src/` too. Pin the exact
|
|
122
|
+
// source-relative boundaries that keep those full paths within 24
|
|
123
|
+
// segments and 200 bytes.
|
|
124
|
+
const max_segments_path = "a/" ** 22 ++ "a";
|
|
125
|
+
try std.testing.expect(app_build.markupSourcePathWithinBudget(max_segments_path));
|
|
126
|
+
try std.testing.expect(!app_build.markupSourcePathWithinBudget(max_segments_path ++ "/a"));
|
|
127
|
+
try std.testing.expect(app_build.markupSourcePathWithinBudget("a" ** 196));
|
|
128
|
+
try std.testing.expect(!app_build.markupSourcePathWithinBudget("a" ** 197));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
test "generated TypeScript runners install the compiled root markup view" {
|
|
132
|
+
const desktop = @embedFile("src/app_runner/ts_core_main.zig");
|
|
133
|
+
try std.testing.expect(std.mem.indexOf(u8, desktop, "TsUiAppWithFeatures(core, .{ .runtime_markup = dev and !ts_view.enabled, .compiled_model = ts_view.enabled, .view_reload = view_reload_enabled })") != null);
|
|
134
|
+
try std.testing.expect(std.mem.indexOf(u8, desktop, "if (dev) void else @import(\"app_markup_root\")") != null);
|
|
135
|
+
try std.testing.expect(std.mem.indexOf(u8, desktop, "CompiledMarkupImports(core.Model, core.Msg, \"app.native\", &app_markup_sources)") != null);
|
|
136
|
+
try std.testing.expect(std.mem.indexOf(u8, desktop, ".view = CompiledAppView.build") != null);
|
|
137
|
+
try std.testing.expect(std.mem.indexOf(u8, desktop, "if (comptime ts_view.enabled) options.view = ts_view.buildRuntime") != null);
|
|
138
|
+
try std.testing.expect(std.mem.indexOf(u8, desktop, ".markup = if (dev and !ts_view.enabled)") != null);
|
|
139
|
+
|
|
140
|
+
const mobile = @embedFile("src/app_runner/ts_core_mobile.zig");
|
|
141
|
+
try std.testing.expect(std.mem.indexOf(u8, mobile, "pub const features: native_sdk.UiAppFeatures = .{ .runtime_markup = false, .compiled_model = ts_view.enabled }") != null);
|
|
142
|
+
try std.testing.expect(std.mem.indexOf(u8, mobile, "TsUiAppWithFeatures(core, features)") != null);
|
|
143
|
+
try std.testing.expect(std.mem.indexOf(u8, mobile, "const app_markup_root = @import(\"app_markup_root\")") != null);
|
|
144
|
+
try std.testing.expect(std.mem.indexOf(u8, mobile, "CompiledMarkupImports(core.Model, core.Msg, \"app.native\", &app_markup_sources)") != null);
|
|
145
|
+
try std.testing.expect(std.mem.indexOf(u8, mobile, ".view = if (ts_view.enabled) ts_view.buildRuntime else CompiledAppView.build") != null);
|
|
146
|
+
try std.testing.expect(std.mem.indexOf(u8, mobile, "pub const SourceModel = core.Model") != null);
|
|
147
|
+
try std.testing.expect(std.mem.indexOf(u8, mobile, ".markup =") == null);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
test "Debug TypeScript root markup stays outside the staged app module" {
|
|
151
|
+
const source = @embedFile("build/app.zig");
|
|
152
|
+
try std.testing.expect(std.mem.indexOf(
|
|
153
|
+
u8,
|
|
154
|
+
source,
|
|
155
|
+
"_ = staged.addCopyFile(b.path(appPath(b, app_root, \"src/app.native\")), \"app.native\");",
|
|
156
|
+
) == null);
|
|
157
|
+
try std.testing.expect(std.mem.indexOf(
|
|
158
|
+
u8,
|
|
159
|
+
source,
|
|
160
|
+
"_ = release_markup.addCopyFile(b.path(appPath(b, app_root, \"src/app.native\")), \"app.native\");",
|
|
161
|
+
) != null);
|
|
162
|
+
try std.testing.expect(std.mem.indexOf(u8, source, "if (optimize != .Debug)") != null);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
test "native check preserves the app markup root for component files" {
|
|
166
|
+
const source = @embedFile("tools/native-sdk/main.zig");
|
|
167
|
+
try std.testing.expect(std.mem.indexOf(
|
|
168
|
+
u8,
|
|
169
|
+
source,
|
|
170
|
+
"checkFiles(allocator, io, markup_files.items, .{\n .import_root_for_file = markup_cli.importRootForFile,\n",
|
|
171
|
+
) != null);
|
|
172
|
+
}
|
|
173
|
+
|
|
107
174
|
pub fn build(b: *std.Build) void {
|
|
108
175
|
const target = b.standardTargetOptions(.{});
|
|
109
176
|
const host_target = b.graph.host;
|
|
@@ -112,6 +179,7 @@ pub fn build(b: *std.Build) void {
|
|
|
112
179
|
const trace_option = b.option(TraceOption, "trace", "Trace output: off, events, runtime, all") orelse .events;
|
|
113
180
|
_ = b.option(bool, "debug-overlay", "Enable debug overlay output") orelse false;
|
|
114
181
|
_ = b.option(bool, "automation", "Enable Native SDK automation artifacts") orelse false;
|
|
182
|
+
const webview_inspection = b.option(bool, "webview-inspect", "Enable macOS system WebView inspection (default: Debug builds only)");
|
|
115
183
|
_ = b.option(bool, "webview", "Deprecated compatibility flag; native surfaces are always enabled") orelse true;
|
|
116
184
|
const web_engine_override = b.option(WebEngineOption, "web-engine", "Override app.zon web engine: system, chromium");
|
|
117
185
|
const cef_dir_override = b.option([]const u8, "cef-dir", "Override CEF root directory for Chromium builds");
|
|
@@ -193,6 +261,21 @@ pub fn build(b: *std.Build) void {
|
|
|
193
261
|
const json_tests = testArtifact(b, json_mod);
|
|
194
262
|
const app_runner_assets_tests = testArtifact(b, app_runner_assets_mod);
|
|
195
263
|
const canvas_tests = testArtifact(b, canvas_mod);
|
|
264
|
+
// Keep the GTK software-present damage math in a C-only executable: it
|
|
265
|
+
// exercises the production helper without requiring GTK headers, a
|
|
266
|
+
// display server, or the native host to be linked into unit tests.
|
|
267
|
+
const gtk_pixels_test_run = b.addSystemCommand(&.{ b.graph.zig_exe, "run", "-lc", "-cflags", "-std=c11", "-Wall", "-Wextra", "-Werror", "--" });
|
|
268
|
+
gtk_pixels_test_run.addFileArg(b.path("src/platform/linux/gtk_pixels_test.c"));
|
|
269
|
+
gtk_pixels_test_run.addFileInput(b.path("src/platform/linux/gtk_pixels.h"));
|
|
270
|
+
gtk_pixels_test_run.expectExitCode(0);
|
|
271
|
+
const gtk_pixels_test_step = b.step("test-gtk-pixels", "Run GTK software pixel conversion tests");
|
|
272
|
+
gtk_pixels_test_step.dependOn(>k_pixels_test_run.step);
|
|
273
|
+
const spectrum_bins_test_run = b.addSystemCommand(&.{ b.graph.zig_exe, "run", "-lc", "-cflags", "-std=c11", "-Wall", "-Wextra", "-Werror", "--" });
|
|
274
|
+
spectrum_bins_test_run.addFileArg(b.path("src/platform/macos/spectrum_bins_test.c"));
|
|
275
|
+
spectrum_bins_test_run.addFileInput(b.path("src/platform/macos/spectrum_bins.h"));
|
|
276
|
+
spectrum_bins_test_run.expectExitCode(0);
|
|
277
|
+
const spectrum_bins_test_step = b.step("test-spectrum-bins", "Run audio spectrum bin range tests");
|
|
278
|
+
spectrum_bins_test_step.dependOn(&spectrum_bins_test_run.step);
|
|
196
279
|
|
|
197
280
|
const desktop_mod = module(b, target, optimize, "src/root.zig");
|
|
198
281
|
desktop_mod.addImport("geometry", geometry_mod);
|
|
@@ -226,6 +309,11 @@ pub fn build(b: *std.Build) void {
|
|
|
226
309
|
app_runner_options.addOption(bool, "debug_overlay", false);
|
|
227
310
|
app_runner_options.addOption(bool, "automation", false);
|
|
228
311
|
app_runner_options.addOption(bool, "web_layer", false);
|
|
312
|
+
// Omit an unspecified setting to also exercise older custom build options.
|
|
313
|
+
if (webview_inspection) |enabled| {
|
|
314
|
+
app_runner_options.addOption(?bool, "webview_inspection", enabled);
|
|
315
|
+
}
|
|
316
|
+
app_runner_options.addOption(bool, "webview_inspection_expected", webview_inspection orelse (optimize == .Debug));
|
|
229
317
|
const app_runner_mod = module(b, target, optimize, "src/app_runner/root.zig");
|
|
230
318
|
app_runner_mod.addImport("native_sdk", desktop_mod);
|
|
231
319
|
app_runner_mod.addImport("build_options", app_runner_options.createModule());
|
|
@@ -352,19 +440,9 @@ pub fn build(b: *std.Build) void {
|
|
|
352
440
|
eject_components_mod.addImport("native_sdk", desktop_mod);
|
|
353
441
|
const eject_components_tests = testArtifact(b, eject_components_mod);
|
|
354
442
|
|
|
355
|
-
//
|
|
356
|
-
//
|
|
357
|
-
//
|
|
358
|
-
// under an importer's root). The conformance suite — every fixture's
|
|
359
|
-
// generated mirror validated over its frontend-emitted contract —
|
|
360
|
-
// rides the ts-core e2e block, since it needs node and the frontend
|
|
361
|
-
// toolchain.
|
|
362
|
-
const corewire_sidecar_tests = testArtifact(b, module(b, target, optimize, "tools/corewire/sidecar.zig"));
|
|
363
|
-
const corewire_emit_tests = testArtifact(b, module(b, target, optimize, "tools/corewire/emit.zig"));
|
|
364
|
-
const corewire_facade_tests = testArtifact(b, module(b, target, optimize, "tools/corewire/emit_facade.zig"));
|
|
365
|
-
const corewire_profile_tests = testArtifact(b, module(b, target, optimize, "tools/corewire/emit_profile.zig"));
|
|
366
|
-
const corewire_service_contract_tests = testArtifact(b, module(b, target, optimize, "tools/corewire/service_contract.zig"));
|
|
367
|
-
const corewire_service_emit_tests = testArtifact(b, module(b, target, optimize, "tools/corewire/emit_service.zig"));
|
|
443
|
+
// The mirror's byte runtime stays a native unit root. Core admission
|
|
444
|
+
// and projection tests use the compiled host archive in the TypeScript
|
|
445
|
+
// tooling block below, alongside frontend-sidecar conformance.
|
|
368
446
|
const corewire_shim_rt_tests = testArtifact(b, module(b, target, optimize, "tools/corewire/shim_rt.zig"));
|
|
369
447
|
|
|
370
448
|
// TypeScript-core end-to-end suite: each fixture core is compiled
|
|
@@ -394,6 +472,9 @@ pub fn build(b: *std.Build) void {
|
|
|
394
472
|
markup_cli_mod.addImport("markup_lsp", markup_lsp_mod);
|
|
395
473
|
const markup_cli_tests = testArtifact(b, markup_cli_mod);
|
|
396
474
|
|
|
475
|
+
const skills_cli_mod = module(b, target, optimize, "tools/native-sdk/skills.zig");
|
|
476
|
+
const skills_cli_tests = testArtifact(b, skills_cli_mod);
|
|
477
|
+
|
|
397
478
|
// The evals harness's Cmd wire-format decoder (copied next to every
|
|
398
479
|
// ts-track case harness at grading time). Its own tests run here —
|
|
399
480
|
// NOT at eval time — because a decoder that lags a
|
|
@@ -402,6 +483,13 @@ pub fn build(b: *std.Build) void {
|
|
|
402
483
|
const evals_cmdview_mod = module(b, target, optimize, "evals/harness-lib/cmdview.zig");
|
|
403
484
|
const evals_cmdview_tests = testArtifact(b, evals_cmdview_mod);
|
|
404
485
|
const build_graph_tests = testArtifact(b, module(b, host_target, optimize, "build.zig"));
|
|
486
|
+
const invalid_import_compile_mod = module(b, target, optimize, "tests/ts-core/invalid_import_compile.zig");
|
|
487
|
+
invalid_import_compile_mod.addImport("canvas", canvas_mod);
|
|
488
|
+
const invalid_import_compile = b.addObject(.{
|
|
489
|
+
.name = "ts-invalid-import-compile",
|
|
490
|
+
.root_module = invalid_import_compile_mod,
|
|
491
|
+
});
|
|
492
|
+
invalid_import_compile.expect_errors = .{ .contains = "imported files define templates only - this file has a view root element; move the view to its own file and import just the templates" };
|
|
405
493
|
|
|
406
494
|
// `native version` names the commit the binary was built from, so
|
|
407
495
|
// binary/framework skew ("your native binary may be stale") is a
|
|
@@ -628,6 +716,8 @@ pub fn build(b: *std.Build) void {
|
|
|
628
716
|
};
|
|
629
717
|
|
|
630
718
|
const test_step = b.step("test", "Run package and framework tests");
|
|
719
|
+
b.step("test-ts-canvas-hooks", "Verify canvas declaration validation, ownership, and model accessibility themes").dependOn(&b.addRunArtifact(filteredTestArtifact(b, desktop_mod, "ts-canvas-hook-tests", &.{ "TypeScript canvas", "model accessibility theme" })).step);
|
|
720
|
+
test_step.dependOn(&invalid_import_compile.step);
|
|
631
721
|
test_step.dependOn(&b.addRunArtifact(build_graph_tests).step);
|
|
632
722
|
test_step.dependOn(&b.addRunArtifact(geometry_tests).step);
|
|
633
723
|
test_step.dependOn(&b.addRunArtifact(assets_tests).step);
|
|
@@ -641,6 +731,31 @@ pub fn build(b: *std.Build) void {
|
|
|
641
731
|
test_step.dependOn(&b.addRunArtifact(app_runner_window_placement_tests).step);
|
|
642
732
|
test_step.dependOn(&app_runner_test_run.step);
|
|
643
733
|
test_step.dependOn(&b.addRunArtifact(canvas_tests).step);
|
|
734
|
+
test_step.dependOn(>k_pixels_test_run.step);
|
|
735
|
+
test_step.dependOn(&spectrum_bins_test_run.step);
|
|
736
|
+
if (b.graph.host.result.os.tag == .macos) {
|
|
737
|
+
for ([_]struct { file: []const u8, step: []const u8, description: []const u8 }{
|
|
738
|
+
.{ .file = "widget_focus_test.m", .step = "test-macos-widget-focus", .description = "Verify native accessibility publication preserves keyboard focus without assistive feedback" },
|
|
739
|
+
.{ .file = "scroll_driver_test.m", .step = "test-macos-scroll-drivers", .description = "Verify native scroll resize reports settle after driver reconciliation" },
|
|
740
|
+
.{ .file = "pointer_motion_test.m", .step = "test-macos-pointer-motion", .description = "Verify coalesced native pointer drags preserve geometry deltas" },
|
|
741
|
+
.{ .file = "webview_inspection_test.m", .step = "test-macos-webview-inspection", .description = "Verify inspection capability for primary, lazy, secondary and child WebViews" },
|
|
742
|
+
.{ .file = "text_keyboard_test.m", .step = "test-macos-text-keyboard", .description = "Verify native Enter modifiers survive AppKit text interpretation" },
|
|
743
|
+
}) |probe| {
|
|
744
|
+
const probe_run = b.addSystemCommand(&.{ b.graph.zig_exe, "run", "-lc" });
|
|
745
|
+
for ([_][]const u8{ "AppKit", "AVFoundation", "ScreenCaptureKit", "MediaToolbox", "CoreMedia", "Accelerate", "Metal", "QuartzCore", "WebKit", "CoreFoundation", "CoreText", "ImageIO", "Security", "UniformTypeIdentifiers" }) |framework| {
|
|
746
|
+
probe_run.addArgs(&.{ "-framework", framework });
|
|
747
|
+
}
|
|
748
|
+
probe_run.addArgs(&.{ "-cflags", "-fobjc-arc", "-fno-sanitize=builtin", "-mmacosx-version-min=11.0" });
|
|
749
|
+
if (b.sysroot) |sysroot| probe_run.addArgs(&.{ "-isysroot", sysroot });
|
|
750
|
+
probe_run.addArg("--");
|
|
751
|
+
probe_run.addFileArg(b.path(b.fmt("src/platform/macos/{s}", .{probe.file})));
|
|
752
|
+
probe_run.addFileInput(b.path("src/platform/macos/appkit_host.m"));
|
|
753
|
+
probe_run.addFileInput(b.path("src/platform/macos/appkit_host.h"));
|
|
754
|
+
probe_run.expectExitCode(0);
|
|
755
|
+
b.step(probe.step, probe.description).dependOn(&probe_run.step);
|
|
756
|
+
test_step.dependOn(&probe_run.step);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
644
759
|
test_step.dependOn(&b.addRunArtifact(record_store_tests).step);
|
|
645
760
|
test_step.dependOn(&file_crash_run.step);
|
|
646
761
|
for (desktop_test_shards) |shard_tests| {
|
|
@@ -649,29 +764,893 @@ pub fn build(b: *std.Build) void {
|
|
|
649
764
|
test_step.dependOn(&b.addRunArtifact(automation_protocol_tests).step);
|
|
650
765
|
test_step.dependOn(&b.addRunArtifact(tooling_tests).step);
|
|
651
766
|
test_step.dependOn(&b.addRunArtifact(eject_components_tests).step);
|
|
652
|
-
test_step.dependOn(&b.addRunArtifact(corewire_sidecar_tests).step);
|
|
653
|
-
test_step.dependOn(&b.addRunArtifact(corewire_emit_tests).step);
|
|
654
|
-
test_step.dependOn(&b.addRunArtifact(corewire_facade_tests).step);
|
|
655
|
-
test_step.dependOn(&b.addRunArtifact(corewire_profile_tests).step);
|
|
656
|
-
test_step.dependOn(&b.addRunArtifact(corewire_service_contract_tests).step);
|
|
657
|
-
test_step.dependOn(&b.addRunArtifact(corewire_service_emit_tests).step);
|
|
658
767
|
test_step.dependOn(&b.addRunArtifact(corewire_shim_rt_tests).step);
|
|
659
768
|
const ts_services_e2e_step = b.step("test-ts-services-e2e", "Run both TypeScript service carriers end to end: the out-of-process child (crash recovery, timeout, replay) and the in-process pool (parallel keys, FIFO, trap isolation, replay)");
|
|
660
769
|
if (ts_core_e2e_tests) |ts_core_artifacts| {
|
|
661
770
|
const ts_core_e2e_step = b.step("test-ts-core-e2e", "Run the TypeScript-core end-to-end suites over externally compiled fixture cores (requires node and `npm ci` in packages/core)");
|
|
771
|
+
// Keep stderr inherited for timed app reference/replay commands: Zig's
|
|
772
|
+
// I/O lock then serializes their nested builds, whose CPU pools would
|
|
773
|
+
// otherwise compete with one another. Capture stdout for quiet runs.
|
|
774
|
+
// Independent compilation and ordinary example suites remain parallel.
|
|
775
|
+
const native_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
776
|
+
native_driver_run.setCwd(b.path("tests/native-driver"));
|
|
777
|
+
native_driver_run.has_side_effects = true;
|
|
778
|
+
_ = native_driver_run.captureStdOut(.{});
|
|
779
|
+
native_driver_run.setName("TypeScript native test driver");
|
|
780
|
+
native_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
781
|
+
const legacy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
782
|
+
legacy_driver_run.setCwd(b.path("tests/native-driver"));
|
|
783
|
+
legacy_driver_run.has_side_effects = true;
|
|
784
|
+
legacy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
785
|
+
_ = legacy_driver_run.captureStdOut(.{});
|
|
786
|
+
legacy_driver_run.setName("Native test driver reference view");
|
|
787
|
+
// Both builds share the app scratch graph. Run the reference first,
|
|
788
|
+
// then exercise the compiled default in the same test battery.
|
|
789
|
+
native_driver_run.step.dependOn(&legacy_driver_run.step);
|
|
790
|
+
const native_driver_step = b.step("test-ts-native-driver", "Drive a compiled app from authored TypeScript tests");
|
|
791
|
+
native_driver_step.dependOn(&native_driver_run.step);
|
|
792
|
+
const kanban_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
793
|
+
kanban_driver_run.setCwd(b.path("examples/kanban"));
|
|
794
|
+
kanban_driver_run.has_side_effects = true;
|
|
795
|
+
kanban_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
796
|
+
kanban_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/kanban-view-reference"));
|
|
797
|
+
_ = kanban_driver_run.captureStdOut(.{});
|
|
798
|
+
kanban_driver_run.setName("TypeScript Kanban native test driver");
|
|
799
|
+
const kanban_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
800
|
+
kanban_reference_run.setCwd(b.path("examples/kanban"));
|
|
801
|
+
kanban_reference_run.has_side_effects = true;
|
|
802
|
+
kanban_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
803
|
+
kanban_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/kanban-view-reference"));
|
|
804
|
+
_ = kanban_reference_run.captureStdOut(.{});
|
|
805
|
+
kanban_reference_run.setName("Kanban native test driver reference view");
|
|
806
|
+
kanban_driver_run.step.dependOn(&kanban_reference_run.step);
|
|
807
|
+
native_driver_step.dependOn(&kanban_driver_run.step);
|
|
808
|
+
ts_core_e2e_step.dependOn(&kanban_driver_run.step);
|
|
809
|
+
test_step.dependOn(&kanban_driver_run.step);
|
|
810
|
+
const feed_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
811
|
+
feed_reference_run.setCwd(b.path("examples/service-feed-reader"));
|
|
812
|
+
feed_reference_run.has_side_effects = true;
|
|
813
|
+
feed_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
814
|
+
feed_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/feed-view-reference"));
|
|
815
|
+
_ = feed_reference_run.captureStdOut(.{});
|
|
816
|
+
const feed_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
817
|
+
feed_driver_run.setCwd(b.path("examples/service-feed-reader"));
|
|
818
|
+
feed_driver_run.has_side_effects = true;
|
|
819
|
+
feed_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
820
|
+
feed_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/feed-view-reference"));
|
|
821
|
+
_ = feed_driver_run.captureStdOut(.{});
|
|
822
|
+
feed_driver_run.step.dependOn(&feed_reference_run.step);
|
|
823
|
+
native_driver_step.dependOn(&feed_driver_run.step);
|
|
824
|
+
ts_core_e2e_step.dependOn(&feed_driver_run.step);
|
|
825
|
+
ts_services_e2e_step.dependOn(&feed_driver_run.step);
|
|
826
|
+
test_step.dependOn(&feed_driver_run.step);
|
|
827
|
+
const subscription_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
828
|
+
subscription_reference_run.setCwd(b.path("examples/subscription-policy"));
|
|
829
|
+
subscription_reference_run.has_side_effects = true;
|
|
830
|
+
subscription_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
831
|
+
subscription_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/subscription-policy-reference"));
|
|
832
|
+
_ = subscription_reference_run.captureStdOut(.{});
|
|
833
|
+
const subscription_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
834
|
+
subscription_driver_run.setCwd(b.path("examples/subscription-policy"));
|
|
835
|
+
subscription_driver_run.has_side_effects = true;
|
|
836
|
+
subscription_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
837
|
+
subscription_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/subscription-policy-reference"));
|
|
838
|
+
_ = subscription_driver_run.captureStdOut(.{});
|
|
839
|
+
subscription_driver_run.step.dependOn(&subscription_reference_run.step);
|
|
840
|
+
native_driver_step.dependOn(&subscription_driver_run.step);
|
|
841
|
+
ts_core_e2e_step.dependOn(&subscription_driver_run.step);
|
|
842
|
+
test_step.dependOn(&subscription_driver_run.step);
|
|
843
|
+
const effect_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
844
|
+
effect_reference_run.setCwd(b.path("examples/effect-policy"));
|
|
845
|
+
effect_reference_run.has_side_effects = true;
|
|
846
|
+
effect_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
847
|
+
effect_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/effect-policy-reference"));
|
|
848
|
+
_ = effect_reference_run.captureStdOut(.{});
|
|
849
|
+
const effect_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
850
|
+
effect_driver_run.setCwd(b.path("examples/effect-policy"));
|
|
851
|
+
effect_driver_run.has_side_effects = true;
|
|
852
|
+
effect_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
853
|
+
effect_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/effect-policy-reference"));
|
|
854
|
+
_ = effect_driver_run.captureStdOut(.{});
|
|
855
|
+
effect_driver_run.step.dependOn(&effect_reference_run.step);
|
|
856
|
+
native_driver_step.dependOn(&effect_driver_run.step);
|
|
857
|
+
ts_core_e2e_step.dependOn(&effect_driver_run.step);
|
|
858
|
+
test_step.dependOn(&effect_driver_run.step);
|
|
859
|
+
const stream_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
860
|
+
stream_reference_run.setCwd(b.path("examples/stream-policy"));
|
|
861
|
+
stream_reference_run.has_side_effects = true;
|
|
862
|
+
stream_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
863
|
+
stream_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/stream-policy-reference"));
|
|
864
|
+
_ = stream_reference_run.captureStdOut(.{});
|
|
865
|
+
const stream_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
866
|
+
stream_driver_run.setCwd(b.path("examples/stream-policy"));
|
|
867
|
+
stream_driver_run.has_side_effects = true;
|
|
868
|
+
stream_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
869
|
+
stream_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/stream-policy-reference"));
|
|
870
|
+
_ = stream_driver_run.captureStdOut(.{});
|
|
871
|
+
stream_driver_run.step.dependOn(&stream_reference_run.step);
|
|
872
|
+
native_driver_step.dependOn(&stream_driver_run.step);
|
|
873
|
+
ts_core_e2e_step.dependOn(&stream_driver_run.step);
|
|
874
|
+
test_step.dependOn(&stream_driver_run.step);
|
|
875
|
+
const pipeline_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
876
|
+
pipeline_reference_run.setCwd(b.path("examples/pipeline"));
|
|
877
|
+
pipeline_reference_run.has_side_effects = true;
|
|
878
|
+
pipeline_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
879
|
+
pipeline_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/pipeline-view-reference"));
|
|
880
|
+
_ = pipeline_reference_run.captureStdOut(.{});
|
|
881
|
+
const pipeline_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
882
|
+
pipeline_driver_run.setCwd(b.path("examples/pipeline"));
|
|
883
|
+
pipeline_driver_run.has_side_effects = true;
|
|
884
|
+
pipeline_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
885
|
+
pipeline_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/pipeline-view-reference"));
|
|
886
|
+
_ = pipeline_driver_run.captureStdOut(.{});
|
|
887
|
+
pipeline_driver_run.step.dependOn(&pipeline_reference_run.step);
|
|
888
|
+
native_driver_step.dependOn(&pipeline_driver_run.step);
|
|
889
|
+
ts_core_e2e_step.dependOn(&pipeline_driver_run.step);
|
|
890
|
+
test_step.dependOn(&pipeline_driver_run.step);
|
|
891
|
+
const radio_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
892
|
+
radio_policy_reference_run.setCwd(b.path("examples/radio-policy"));
|
|
893
|
+
radio_policy_reference_run.has_side_effects = true;
|
|
894
|
+
radio_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
895
|
+
radio_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/radio-policy-view-reference"));
|
|
896
|
+
_ = radio_policy_reference_run.captureStdOut(.{});
|
|
897
|
+
const radio_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
898
|
+
radio_policy_driver_run.setCwd(b.path("examples/radio-policy"));
|
|
899
|
+
radio_policy_driver_run.has_side_effects = true;
|
|
900
|
+
radio_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
901
|
+
radio_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/radio-policy-view-reference"));
|
|
902
|
+
_ = radio_policy_driver_run.captureStdOut(.{});
|
|
903
|
+
radio_policy_driver_run.step.dependOn(&radio_policy_reference_run.step);
|
|
904
|
+
native_driver_step.dependOn(&radio_policy_driver_run.step);
|
|
905
|
+
ts_core_e2e_step.dependOn(&radio_policy_driver_run.step);
|
|
906
|
+
test_step.dependOn(&radio_policy_driver_run.step);
|
|
907
|
+
const tabs_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
908
|
+
tabs_policy_reference_run.setCwd(b.path("examples/tabs-policy"));
|
|
909
|
+
tabs_policy_reference_run.has_side_effects = true;
|
|
910
|
+
tabs_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
911
|
+
tabs_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/tabs-policy-view-reference"));
|
|
912
|
+
_ = tabs_policy_reference_run.captureStdOut(.{});
|
|
913
|
+
const tabs_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
914
|
+
tabs_policy_driver_run.setCwd(b.path("examples/tabs-policy"));
|
|
915
|
+
tabs_policy_driver_run.has_side_effects = true;
|
|
916
|
+
tabs_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
917
|
+
tabs_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/tabs-policy-view-reference"));
|
|
918
|
+
_ = tabs_policy_driver_run.captureStdOut(.{});
|
|
919
|
+
tabs_policy_driver_run.step.dependOn(&tabs_policy_reference_run.step);
|
|
920
|
+
native_driver_step.dependOn(&tabs_policy_driver_run.step);
|
|
921
|
+
ts_core_e2e_step.dependOn(&tabs_policy_driver_run.step);
|
|
922
|
+
test_step.dependOn(&tabs_policy_driver_run.step);
|
|
923
|
+
const tree_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
924
|
+
tree_policy_reference_run.setCwd(b.path("examples/tree-policy"));
|
|
925
|
+
tree_policy_reference_run.has_side_effects = true;
|
|
926
|
+
tree_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
927
|
+
tree_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/tree-policy-view-reference"));
|
|
928
|
+
_ = tree_policy_reference_run.captureStdOut(.{});
|
|
929
|
+
const tree_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
930
|
+
tree_policy_driver_run.setCwd(b.path("examples/tree-policy"));
|
|
931
|
+
tree_policy_driver_run.has_side_effects = true;
|
|
932
|
+
tree_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
933
|
+
tree_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/tree-policy-view-reference"));
|
|
934
|
+
_ = tree_policy_driver_run.captureStdOut(.{});
|
|
935
|
+
tree_policy_driver_run.step.dependOn(&tree_policy_reference_run.step);
|
|
936
|
+
native_driver_step.dependOn(&tree_policy_driver_run.step);
|
|
937
|
+
ts_core_e2e_step.dependOn(&tree_policy_driver_run.step);
|
|
938
|
+
test_step.dependOn(&tree_policy_driver_run.step);
|
|
939
|
+
const list_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
940
|
+
list_policy_reference_run.setCwd(b.path("examples/list-policy"));
|
|
941
|
+
list_policy_reference_run.has_side_effects = true;
|
|
942
|
+
list_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
943
|
+
list_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/list-policy-view-reference"));
|
|
944
|
+
_ = list_policy_reference_run.captureStdOut(.{});
|
|
945
|
+
const list_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
946
|
+
list_policy_driver_run.setCwd(b.path("examples/list-policy"));
|
|
947
|
+
list_policy_driver_run.has_side_effects = true;
|
|
948
|
+
list_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
949
|
+
list_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/list-policy-view-reference"));
|
|
950
|
+
_ = list_policy_driver_run.captureStdOut(.{});
|
|
951
|
+
list_policy_driver_run.step.dependOn(&list_policy_reference_run.step);
|
|
952
|
+
native_driver_step.dependOn(&list_policy_driver_run.step);
|
|
953
|
+
ts_core_e2e_step.dependOn(&list_policy_driver_run.step);
|
|
954
|
+
test_step.dependOn(&list_policy_driver_run.step);
|
|
955
|
+
const menu_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
956
|
+
menu_policy_reference_run.setCwd(b.path("examples/menu-policy"));
|
|
957
|
+
menu_policy_reference_run.has_side_effects = true;
|
|
958
|
+
menu_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
959
|
+
menu_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/menu-policy-view-reference"));
|
|
960
|
+
_ = menu_policy_reference_run.captureStdOut(.{});
|
|
961
|
+
const menu_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
962
|
+
menu_policy_driver_run.setCwd(b.path("examples/menu-policy"));
|
|
963
|
+
menu_policy_driver_run.has_side_effects = true;
|
|
964
|
+
menu_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
965
|
+
menu_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/menu-policy-view-reference"));
|
|
966
|
+
_ = menu_policy_driver_run.captureStdOut(.{});
|
|
967
|
+
menu_policy_driver_run.step.dependOn(&menu_policy_reference_run.step);
|
|
968
|
+
native_driver_step.dependOn(&menu_policy_driver_run.step);
|
|
969
|
+
ts_core_e2e_step.dependOn(&menu_policy_driver_run.step);
|
|
970
|
+
test_step.dependOn(&menu_policy_driver_run.step);
|
|
971
|
+
const toggle_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
972
|
+
toggle_policy_reference_run.setCwd(b.path("examples/toggle-policy"));
|
|
973
|
+
toggle_policy_reference_run.has_side_effects = true;
|
|
974
|
+
toggle_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
975
|
+
toggle_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/toggle-policy-view-reference"));
|
|
976
|
+
_ = toggle_policy_reference_run.captureStdOut(.{});
|
|
977
|
+
const toggle_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
978
|
+
toggle_policy_driver_run.setCwd(b.path("examples/toggle-policy"));
|
|
979
|
+
toggle_policy_driver_run.has_side_effects = true;
|
|
980
|
+
toggle_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
981
|
+
toggle_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/toggle-policy-view-reference"));
|
|
982
|
+
_ = toggle_policy_driver_run.captureStdOut(.{});
|
|
983
|
+
toggle_policy_driver_run.step.dependOn(&toggle_policy_reference_run.step);
|
|
984
|
+
native_driver_step.dependOn(&toggle_policy_driver_run.step);
|
|
985
|
+
ts_core_e2e_step.dependOn(&toggle_policy_driver_run.step);
|
|
986
|
+
test_step.dependOn(&toggle_policy_driver_run.step);
|
|
987
|
+
const accordion_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
988
|
+
accordion_policy_reference_run.setCwd(b.path("examples/accordion-policy"));
|
|
989
|
+
accordion_policy_reference_run.has_side_effects = true;
|
|
990
|
+
accordion_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
991
|
+
accordion_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/accordion-policy-view-reference"));
|
|
992
|
+
_ = accordion_policy_reference_run.captureStdOut(.{});
|
|
993
|
+
const accordion_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
994
|
+
accordion_policy_driver_run.setCwd(b.path("examples/accordion-policy"));
|
|
995
|
+
accordion_policy_driver_run.has_side_effects = true;
|
|
996
|
+
accordion_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
997
|
+
accordion_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/accordion-policy-view-reference"));
|
|
998
|
+
_ = accordion_policy_driver_run.captureStdOut(.{});
|
|
999
|
+
accordion_policy_driver_run.step.dependOn(&accordion_policy_reference_run.step);
|
|
1000
|
+
native_driver_step.dependOn(&accordion_policy_driver_run.step);
|
|
1001
|
+
ts_core_e2e_step.dependOn(&accordion_policy_driver_run.step);
|
|
1002
|
+
test_step.dependOn(&accordion_policy_driver_run.step);
|
|
1003
|
+
const checkable_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1004
|
+
checkable_policy_reference_run.setCwd(b.path("examples/checkable-policy"));
|
|
1005
|
+
checkable_policy_reference_run.has_side_effects = true;
|
|
1006
|
+
checkable_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1007
|
+
checkable_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/checkable-policy-view-reference"));
|
|
1008
|
+
_ = checkable_policy_reference_run.captureStdOut(.{});
|
|
1009
|
+
const checkable_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1010
|
+
checkable_policy_driver_run.setCwd(b.path("examples/checkable-policy"));
|
|
1011
|
+
checkable_policy_driver_run.has_side_effects = true;
|
|
1012
|
+
checkable_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1013
|
+
checkable_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/checkable-policy-view-reference"));
|
|
1014
|
+
_ = checkable_policy_driver_run.captureStdOut(.{});
|
|
1015
|
+
checkable_policy_driver_run.step.dependOn(&checkable_policy_reference_run.step);
|
|
1016
|
+
native_driver_step.dependOn(&checkable_policy_driver_run.step);
|
|
1017
|
+
ts_core_e2e_step.dependOn(&checkable_policy_driver_run.step);
|
|
1018
|
+
test_step.dependOn(&checkable_policy_driver_run.step);
|
|
1019
|
+
const slider_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1020
|
+
slider_policy_reference_run.setCwd(b.path("examples/slider-policy"));
|
|
1021
|
+
slider_policy_reference_run.has_side_effects = true;
|
|
1022
|
+
slider_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1023
|
+
slider_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/slider-policy-view-reference"));
|
|
1024
|
+
_ = slider_policy_reference_run.captureStdOut(.{});
|
|
1025
|
+
const slider_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1026
|
+
slider_policy_driver_run.setCwd(b.path("examples/slider-policy"));
|
|
1027
|
+
slider_policy_driver_run.has_side_effects = true;
|
|
1028
|
+
slider_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1029
|
+
slider_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/slider-policy-view-reference"));
|
|
1030
|
+
_ = slider_policy_driver_run.captureStdOut(.{});
|
|
1031
|
+
slider_policy_driver_run.step.dependOn(&slider_policy_reference_run.step);
|
|
1032
|
+
native_driver_step.dependOn(&slider_policy_driver_run.step);
|
|
1033
|
+
ts_core_e2e_step.dependOn(&slider_policy_driver_run.step);
|
|
1034
|
+
test_step.dependOn(&slider_policy_driver_run.step);
|
|
1035
|
+
const split_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1036
|
+
split_policy_reference_run.setCwd(b.path("examples/split-policy"));
|
|
1037
|
+
split_policy_reference_run.has_side_effects = true;
|
|
1038
|
+
split_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1039
|
+
split_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/split-policy-view-reference"));
|
|
1040
|
+
_ = split_policy_reference_run.captureStdOut(.{});
|
|
1041
|
+
const split_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1042
|
+
split_policy_driver_run.setCwd(b.path("examples/split-policy"));
|
|
1043
|
+
split_policy_driver_run.has_side_effects = true;
|
|
1044
|
+
split_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1045
|
+
split_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/split-policy-view-reference"));
|
|
1046
|
+
_ = split_policy_driver_run.captureStdOut(.{});
|
|
1047
|
+
split_policy_driver_run.step.dependOn(&split_policy_reference_run.step);
|
|
1048
|
+
native_driver_step.dependOn(&split_policy_driver_run.step);
|
|
1049
|
+
ts_core_e2e_step.dependOn(&split_policy_driver_run.step);
|
|
1050
|
+
test_step.dependOn(&split_policy_driver_run.step);
|
|
1051
|
+
const scroll_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1052
|
+
scroll_policy_reference_run.setCwd(b.path("examples/scroll-policy"));
|
|
1053
|
+
scroll_policy_reference_run.has_side_effects = true;
|
|
1054
|
+
scroll_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1055
|
+
scroll_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/scroll-policy-view-reference"));
|
|
1056
|
+
_ = scroll_policy_reference_run.captureStdOut(.{});
|
|
1057
|
+
const scroll_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1058
|
+
scroll_policy_driver_run.setCwd(b.path("examples/scroll-policy"));
|
|
1059
|
+
scroll_policy_driver_run.has_side_effects = true;
|
|
1060
|
+
scroll_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1061
|
+
scroll_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/scroll-policy-view-reference"));
|
|
1062
|
+
_ = scroll_policy_driver_run.captureStdOut(.{});
|
|
1063
|
+
scroll_policy_driver_run.step.dependOn(&scroll_policy_reference_run.step);
|
|
1064
|
+
native_driver_step.dependOn(&scroll_policy_driver_run.step);
|
|
1065
|
+
ts_core_e2e_step.dependOn(&scroll_policy_driver_run.step);
|
|
1066
|
+
test_step.dependOn(&scroll_policy_driver_run.step);
|
|
1067
|
+
const resizable_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1068
|
+
resizable_policy_reference_run.setCwd(b.path("examples/resizable-policy"));
|
|
1069
|
+
resizable_policy_reference_run.has_side_effects = true;
|
|
1070
|
+
resizable_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1071
|
+
resizable_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/resizable-policy-view-reference"));
|
|
1072
|
+
_ = resizable_policy_reference_run.captureStdOut(.{});
|
|
1073
|
+
const resizable_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1074
|
+
resizable_policy_driver_run.setCwd(b.path("examples/resizable-policy"));
|
|
1075
|
+
resizable_policy_driver_run.has_side_effects = true;
|
|
1076
|
+
resizable_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1077
|
+
resizable_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/resizable-policy-view-reference"));
|
|
1078
|
+
_ = resizable_policy_driver_run.captureStdOut(.{});
|
|
1079
|
+
resizable_policy_driver_run.step.dependOn(&resizable_policy_reference_run.step);
|
|
1080
|
+
native_driver_step.dependOn(&resizable_policy_driver_run.step);
|
|
1081
|
+
ts_core_e2e_step.dependOn(&resizable_policy_driver_run.step);
|
|
1082
|
+
test_step.dependOn(&resizable_policy_driver_run.step);
|
|
1083
|
+
|
|
1084
|
+
const window_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1085
|
+
window_policy_reference_run.setCwd(b.path("examples/window-policy"));
|
|
1086
|
+
window_policy_reference_run.has_side_effects = true;
|
|
1087
|
+
window_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1088
|
+
window_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/window-policy-view-reference"));
|
|
1089
|
+
_ = window_policy_reference_run.captureStdOut(.{});
|
|
1090
|
+
const window_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1091
|
+
window_policy_driver_run.setCwd(b.path("examples/window-policy"));
|
|
1092
|
+
window_policy_driver_run.has_side_effects = true;
|
|
1093
|
+
window_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1094
|
+
window_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/window-policy-view-reference"));
|
|
1095
|
+
_ = window_policy_driver_run.captureStdOut(.{});
|
|
1096
|
+
window_policy_driver_run.step.dependOn(&window_policy_reference_run.step);
|
|
1097
|
+
native_driver_step.dependOn(&window_policy_driver_run.step);
|
|
1098
|
+
ts_core_e2e_step.dependOn(&window_policy_driver_run.step);
|
|
1099
|
+
test_step.dependOn(&window_policy_driver_run.step);
|
|
1100
|
+
const status_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1101
|
+
status_reference_run.setCwd(b.path("examples/status-policy"));
|
|
1102
|
+
status_reference_run.has_side_effects = true;
|
|
1103
|
+
status_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1104
|
+
status_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/status-policy-view-reference"));
|
|
1105
|
+
_ = status_reference_run.captureStdOut(.{});
|
|
1106
|
+
const status_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1107
|
+
status_driver_run.setCwd(b.path("examples/status-policy"));
|
|
1108
|
+
status_driver_run.has_side_effects = true;
|
|
1109
|
+
status_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1110
|
+
status_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/status-policy-view-reference"));
|
|
1111
|
+
_ = status_driver_run.captureStdOut(.{});
|
|
1112
|
+
status_driver_run.step.dependOn(&status_reference_run.step);
|
|
1113
|
+
native_driver_step.dependOn(&status_driver_run.step);
|
|
1114
|
+
ts_core_e2e_step.dependOn(&status_driver_run.step);
|
|
1115
|
+
test_step.dependOn(&status_driver_run.step);
|
|
1116
|
+
|
|
1117
|
+
const typography_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1118
|
+
typography_reference_run.setCwd(b.path("examples/typography"));
|
|
1119
|
+
typography_reference_run.has_side_effects = true;
|
|
1120
|
+
typography_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1121
|
+
typography_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/typography-view-reference"));
|
|
1122
|
+
_ = typography_reference_run.captureStdOut(.{});
|
|
1123
|
+
const typography_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1124
|
+
typography_driver_run.setCwd(b.path("examples/typography"));
|
|
1125
|
+
typography_driver_run.has_side_effects = true;
|
|
1126
|
+
typography_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1127
|
+
typography_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/typography-view-reference"));
|
|
1128
|
+
_ = typography_driver_run.captureStdOut(.{});
|
|
1129
|
+
typography_driver_run.step.dependOn(&typography_reference_run.step);
|
|
1130
|
+
b.step("test-ts-typography-driver", "Compare complete typography snapshots and replay across view backends").dependOn(&typography_driver_run.step);
|
|
1131
|
+
native_driver_step.dependOn(&typography_driver_run.step);
|
|
1132
|
+
ts_core_e2e_step.dependOn(&typography_driver_run.step);
|
|
1133
|
+
test_step.dependOn(&typography_driver_run.step);
|
|
1134
|
+
|
|
1135
|
+
const relational_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1136
|
+
relational_reference_run.setCwd(b.path("examples/relational-notes"));
|
|
1137
|
+
relational_reference_run.has_side_effects = true;
|
|
1138
|
+
relational_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1139
|
+
relational_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/relational-notes-view-reference"));
|
|
1140
|
+
_ = relational_reference_run.captureStdOut(.{});
|
|
1141
|
+
const relational_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1142
|
+
relational_driver_run.setCwd(b.path("examples/relational-notes"));
|
|
1143
|
+
relational_driver_run.has_side_effects = true;
|
|
1144
|
+
relational_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1145
|
+
relational_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/relational-notes-view-reference"));
|
|
1146
|
+
_ = relational_driver_run.captureStdOut(.{});
|
|
1147
|
+
relational_driver_run.step.dependOn(&relational_reference_run.step);
|
|
1148
|
+
native_driver_step.dependOn(&relational_driver_run.step);
|
|
1149
|
+
ts_core_e2e_step.dependOn(&relational_driver_run.step);
|
|
1150
|
+
test_step.dependOn(&relational_driver_run.step);
|
|
1151
|
+
|
|
1152
|
+
const hold_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1153
|
+
hold_policy_reference_run.setCwd(b.path("examples/hold-policy"));
|
|
1154
|
+
hold_policy_reference_run.has_side_effects = true;
|
|
1155
|
+
hold_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1156
|
+
hold_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/hold-policy-view-reference"));
|
|
1157
|
+
_ = hold_policy_reference_run.captureStdOut(.{});
|
|
1158
|
+
const hold_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1159
|
+
hold_policy_driver_run.setCwd(b.path("examples/hold-policy"));
|
|
1160
|
+
hold_policy_driver_run.has_side_effects = true;
|
|
1161
|
+
hold_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1162
|
+
hold_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/hold-policy-view-reference"));
|
|
1163
|
+
_ = hold_policy_driver_run.captureStdOut(.{});
|
|
1164
|
+
hold_policy_driver_run.step.dependOn(&hold_policy_reference_run.step);
|
|
1165
|
+
native_driver_step.dependOn(&hold_policy_driver_run.step);
|
|
1166
|
+
ts_core_e2e_step.dependOn(&hold_policy_driver_run.step);
|
|
1167
|
+
test_step.dependOn(&hold_policy_driver_run.step);
|
|
1168
|
+
b.step("test-hold-policy", "Compare complete gesture lab snapshots and replay across view backends").dependOn(&hold_policy_driver_run.step);
|
|
1169
|
+
|
|
1170
|
+
const theme_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1171
|
+
theme_policy_reference_run.setCwd(b.path("examples/theme-policy"));
|
|
1172
|
+
theme_policy_reference_run.has_side_effects = true;
|
|
1173
|
+
theme_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1174
|
+
theme_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/theme-policy-view-reference"));
|
|
1175
|
+
_ = theme_policy_reference_run.captureStdOut(.{});
|
|
1176
|
+
const theme_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1177
|
+
theme_policy_driver_run.setCwd(b.path("examples/theme-policy"));
|
|
1178
|
+
theme_policy_driver_run.has_side_effects = true;
|
|
1179
|
+
theme_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1180
|
+
theme_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/theme-policy-view-reference"));
|
|
1181
|
+
_ = theme_policy_driver_run.captureStdOut(.{});
|
|
1182
|
+
theme_policy_driver_run.step.dependOn(&theme_policy_reference_run.step);
|
|
1183
|
+
native_driver_step.dependOn(&theme_policy_driver_run.step);
|
|
1184
|
+
ts_core_e2e_step.dependOn(&theme_policy_driver_run.step);
|
|
1185
|
+
test_step.dependOn(&theme_policy_driver_run.step);
|
|
1186
|
+
|
|
1187
|
+
const text_policy_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1188
|
+
text_policy_reference_run.setCwd(b.path("examples/text-policy"));
|
|
1189
|
+
text_policy_reference_run.has_side_effects = true;
|
|
1190
|
+
text_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1191
|
+
text_policy_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/text-policy-view-reference"));
|
|
1192
|
+
_ = text_policy_reference_run.captureStdOut(.{});
|
|
1193
|
+
const text_policy_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1194
|
+
text_policy_driver_run.setCwd(b.path("examples/text-policy"));
|
|
1195
|
+
text_policy_driver_run.has_side_effects = true;
|
|
1196
|
+
text_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1197
|
+
text_policy_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/text-policy-view-reference"));
|
|
1198
|
+
_ = text_policy_driver_run.captureStdOut(.{});
|
|
1199
|
+
text_policy_driver_run.step.dependOn(&text_policy_reference_run.step);
|
|
1200
|
+
native_driver_step.dependOn(&text_policy_driver_run.step);
|
|
1201
|
+
ts_core_e2e_step.dependOn(&text_policy_driver_run.step);
|
|
1202
|
+
test_step.dependOn(&text_policy_driver_run.step);
|
|
1203
|
+
const inbox_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1204
|
+
inbox_reference_run.setCwd(b.path("examples/ui-inbox"));
|
|
1205
|
+
inbox_reference_run.has_side_effects = true;
|
|
1206
|
+
inbox_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1207
|
+
inbox_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/inbox-view-reference"));
|
|
1208
|
+
_ = inbox_reference_run.captureStdOut(.{});
|
|
1209
|
+
const inbox_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1210
|
+
inbox_driver_run.setCwd(b.path("examples/ui-inbox"));
|
|
1211
|
+
inbox_driver_run.has_side_effects = true;
|
|
1212
|
+
inbox_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1213
|
+
inbox_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/inbox-view-reference"));
|
|
1214
|
+
_ = inbox_driver_run.captureStdOut(.{});
|
|
1215
|
+
inbox_driver_run.step.dependOn(&inbox_reference_run.step);
|
|
1216
|
+
b.step("test-ts-inbox-driver", "Compare complete ui-inbox snapshots and sealed replay across view backends").dependOn(&inbox_driver_run.step);
|
|
1217
|
+
native_driver_step.dependOn(&inbox_driver_run.step);
|
|
1218
|
+
ts_core_e2e_step.dependOn(&inbox_driver_run.step);
|
|
1219
|
+
test_step.dependOn(&inbox_driver_run.step);
|
|
1220
|
+
const canvas_preview_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1221
|
+
canvas_preview_reference_run.setCwd(b.path("examples/canvas-preview"));
|
|
1222
|
+
canvas_preview_reference_run.has_side_effects = true;
|
|
1223
|
+
canvas_preview_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1224
|
+
canvas_preview_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/canvas_preview-view-reference"));
|
|
1225
|
+
_ = canvas_preview_reference_run.captureStdOut(.{});
|
|
1226
|
+
const canvas_preview_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1227
|
+
canvas_preview_driver_run.setCwd(b.path("examples/canvas-preview"));
|
|
1228
|
+
canvas_preview_driver_run.has_side_effects = true;
|
|
1229
|
+
canvas_preview_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1230
|
+
canvas_preview_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/canvas_preview-view-reference"));
|
|
1231
|
+
_ = canvas_preview_driver_run.captureStdOut(.{});
|
|
1232
|
+
canvas_preview_driver_run.step.dependOn(&canvas_preview_reference_run.step);
|
|
1233
|
+
b.step("test-ts-canvas-preview-driver", "Compare complete canvas-preview snapshots and sealed replay across view backends").dependOn(&canvas_preview_driver_run.step);
|
|
1234
|
+
native_driver_step.dependOn(&canvas_preview_driver_run.step);
|
|
1235
|
+
ts_core_e2e_step.dependOn(&canvas_preview_driver_run.step);
|
|
1236
|
+
test_step.dependOn(&canvas_preview_driver_run.step);
|
|
1237
|
+
const habits_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1238
|
+
habits_reference_run.setCwd(b.path("examples/habits"));
|
|
1239
|
+
habits_reference_run.has_side_effects = true;
|
|
1240
|
+
habits_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1241
|
+
habits_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/habits-view-reference"));
|
|
1242
|
+
const habits_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1243
|
+
habits_driver_run.setCwd(b.path("examples/habits"));
|
|
1244
|
+
habits_driver_run.has_side_effects = true;
|
|
1245
|
+
habits_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1246
|
+
habits_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/habits-view-reference"));
|
|
1247
|
+
habits_driver_run.step.dependOn(&habits_reference_run.step);
|
|
1248
|
+
native_driver_step.dependOn(&habits_driver_run.step);
|
|
1249
|
+
ts_core_e2e_step.dependOn(&habits_driver_run.step);
|
|
1250
|
+
test_step.dependOn(&habits_driver_run.step);
|
|
1251
|
+
b.step("test-habits", "Compare complete Habits snapshots and replay across view backends").dependOn(&habits_driver_run.step);
|
|
1252
|
+
|
|
1253
|
+
const code_workbench_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1254
|
+
code_workbench_reference_run.setCwd(b.path("examples/code-workbench"));
|
|
1255
|
+
code_workbench_reference_run.has_side_effects = true;
|
|
1256
|
+
code_workbench_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1257
|
+
code_workbench_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/code-workbench-view-reference"));
|
|
1258
|
+
_ = code_workbench_reference_run.captureStdOut(.{});
|
|
1259
|
+
const code_workbench_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1260
|
+
code_workbench_driver_run.setCwd(b.path("examples/code-workbench"));
|
|
1261
|
+
code_workbench_driver_run.has_side_effects = true;
|
|
1262
|
+
code_workbench_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1263
|
+
code_workbench_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/code-workbench-view-reference"));
|
|
1264
|
+
_ = code_workbench_driver_run.captureStdOut(.{});
|
|
1265
|
+
code_workbench_driver_run.step.dependOn(&code_workbench_reference_run.step);
|
|
1266
|
+
native_driver_step.dependOn(&code_workbench_driver_run.step);
|
|
1267
|
+
ts_core_e2e_step.dependOn(&code_workbench_driver_run.step);
|
|
1268
|
+
test_step.dependOn(&code_workbench_driver_run.step);
|
|
1269
|
+
const gallery_reference_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null", "-Dtypescript-view=false" });
|
|
1270
|
+
gallery_reference_run.setCwd(b.path("examples/gpu-components"));
|
|
1271
|
+
gallery_reference_run.has_side_effects = true;
|
|
1272
|
+
gallery_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "zig");
|
|
1273
|
+
gallery_reference_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/gallery-view-reference"));
|
|
1274
|
+
_ = gallery_reference_run.captureStdOut(.{});
|
|
1275
|
+
const gallery_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1276
|
+
gallery_driver_run.setCwd(b.path("examples/gpu-components"));
|
|
1277
|
+
gallery_driver_run.has_side_effects = true;
|
|
1278
|
+
gallery_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1279
|
+
gallery_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_REFERENCE", b.pathFromRoot(".zig-cache/gallery-view-reference"));
|
|
1280
|
+
_ = gallery_driver_run.captureStdOut(.{});
|
|
1281
|
+
gallery_driver_run.step.dependOn(&gallery_reference_run.step);
|
|
1282
|
+
native_driver_step.dependOn(&gallery_driver_run.step);
|
|
1283
|
+
ts_core_e2e_step.dependOn(&gallery_driver_run.step);
|
|
1284
|
+
test_step.dependOn(&gallery_driver_run.step);
|
|
1285
|
+
b.step("test-component-gallery", "Compare every component gallery specimen and replay across view backends").dependOn(&gallery_driver_run.step);
|
|
1286
|
+
const native_api_tests = b.addSystemCommand(&.{ b.findProgram(&.{"node"}, &.{}) catch unreachable, "--test" });
|
|
1287
|
+
for ([_][]const u8{ "scriptc_toolchain.test.ts", "compiler_command.test.ts", "external_core_compiler.test.ts", "package_manifest.test.ts" }) |file| {
|
|
1288
|
+
native_api_tests.addFileArg(b.path(b.fmt("packages/core/test/{s}", .{file})));
|
|
1289
|
+
}
|
|
1290
|
+
native_api_tests.addFileArg(b.path("packages/core/test/native_testing.test.ts"));
|
|
1291
|
+
native_api_tests.addFileArg(b.path("packages/core/test/control_appearance.test.ts"));
|
|
1292
|
+
native_api_tests.addFileArg(b.path("packages/core/test/component_construction.test.ts"));
|
|
1293
|
+
native_api_tests.addFileArg(b.path("packages/core/test/command_coordination.test.ts"));
|
|
1294
|
+
native_api_tests.addFileArg(b.path("packages/core/test/status_validation.test.ts"));
|
|
1295
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_motion.test.ts"));
|
|
1296
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_audits.test.ts"));
|
|
1297
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_routing.test.ts"));
|
|
1298
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_changes.test.ts"));
|
|
1299
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_retention.test.ts"));
|
|
1300
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_reconcile.test.ts"));
|
|
1301
|
+
native_api_tests.addFileArg(b.path("packages/core/test/scroll_tree.test.ts"));
|
|
1302
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_continuity.test.ts"));
|
|
1303
|
+
native_api_tests.addFileArg(b.path("packages/core/test/staged_rebuild.test.ts"));
|
|
1304
|
+
native_api_tests.addFileArg(b.path("packages/core/test/virtual_windows.test.ts"));
|
|
1305
|
+
native_api_tests.addFileArg(b.path("packages/core/test/context_menus.test.ts"));
|
|
1306
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_paint.test.ts"));
|
|
1307
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_presentation.test.ts"));
|
|
1308
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_paint_walk.test.ts"));
|
|
1309
|
+
native_api_tests.addFileArg(b.path("packages/core/test/control_geometry.test.ts"));
|
|
1310
|
+
native_api_tests.addFileArg(b.path("packages/core/test/control_content.test.ts"));
|
|
1311
|
+
native_api_tests.addFileArg(b.path("packages/core/test/surface_recipes.test.ts"));
|
|
1312
|
+
native_api_tests.addFileArg(b.path("packages/core/test/widget_metrics.test.ts"));
|
|
1313
|
+
native_api_tests.addFileArg(b.path("packages/core/test/layout_coordination.test.ts"));
|
|
1314
|
+
native_api_tests.addFileArg(b.path("packages/core/test/render_coordination.test.ts"));
|
|
1315
|
+
native_api_tests.addFileArg(b.path("packages/core/test/canvas_hooks.test.ts"));
|
|
1316
|
+
native_api_tests.addFileArg(b.path("packages/core/test/control_commands.test.ts"));
|
|
1317
|
+
native_api_tests.addFileArg(b.path("packages/core/test/control_payloads.test.ts"));
|
|
1318
|
+
native_api_tests.addFileArg(b.path("packages/core/test/control_primitives.test.ts"));
|
|
1319
|
+
native_api_tests.addFileArg(b.path("packages/core/test/leaf_plans.test.ts"));
|
|
1320
|
+
native_api_tests.addFileArg(b.path("packages/core/test/chart_plans.test.ts"));
|
|
1321
|
+
native_api_tests.addFileArg(b.path("packages/core/test/indicator_plans.test.ts"));
|
|
1322
|
+
native_api_tests.addFileArg(b.path("packages/core/test/effect_plans.test.ts"));
|
|
1323
|
+
native_api_tests.addFileArg(b.path("packages/core/test/paragraph_layout.test.ts"));
|
|
1324
|
+
native_api_tests.addFileArg(b.path("packages/core/test/text_run_layout.test.ts"));
|
|
1325
|
+
native_api_tests.addFileArg(b.path("packages/core/test/text_query_layout.test.ts"));
|
|
1326
|
+
native_api_tests.addFileArg(b.path("packages/core/test/text_measurement_cache.test.ts"));
|
|
1327
|
+
native_api_tests.addFileArg(b.path("packages/core/test/text_document_width.test.ts"));
|
|
1328
|
+
native_api_tests.addFileArg(b.path("packages/core/test/scalar_text.test.ts"));
|
|
1329
|
+
native_api_tests.addFileArg(b.path("packages/core/test/glyph_atlas.test.ts"));
|
|
1330
|
+
native_api_tests.addFileArg(b.path("packages/core/test/registered_font.test.ts"));
|
|
1331
|
+
native_api_tests.addFileArg(b.path("packages/core/test/vector_effects.test.ts"));
|
|
1332
|
+
native_api_tests.addFileArg(b.path("packages/core/test/render_resources.test.ts"));
|
|
1333
|
+
native_api_tests.addFileArg(b.path("packages/core/test/gpu_planning.test.ts"));
|
|
1334
|
+
native_api_tests.addFileArg(b.path("packages/core/test/gpu_presentation.test.ts"));
|
|
1335
|
+
native_api_tests.addFileArg(b.path("packages/core/test/canvas_frame_coordination.test.ts"));
|
|
1336
|
+
native_api_tests.addFileArg(b.path("packages/core/test/canvas_scene_observation.test.ts"));
|
|
1337
|
+
native_api_tests.addFileArg(b.path("packages/core/test/canvas_presentation_lifecycle.test.ts"));
|
|
1338
|
+
native_api_tests.addFileArg(b.path("packages/core/test/input_composition.test.ts"));
|
|
1339
|
+
native_api_tests.addFileArg(b.path("packages/core/test/host_input_regions.test.ts"));
|
|
1340
|
+
native_api_tests.addFileArg(b.path("packages/core/test/view_coordination.test.ts"));
|
|
1341
|
+
native_api_tests.addFileArg(b.path("packages/core/test/window_lifecycle.test.ts"));
|
|
1342
|
+
native_api_tests.addFileArg(b.path("packages/core/test/image_registry.test.ts"));
|
|
1343
|
+
native_api_tests.addFileArg(b.path("packages/core/test/vector_raster.test.ts"));
|
|
1344
|
+
native_api_tests.addFileArg(b.path("packages/core/test/text_span_queries.test.ts"));
|
|
1345
|
+
native_api_tests.addFileArg(b.path("packages/core/test/component_composition.test.ts"));
|
|
1346
|
+
native_api_tests.addFileArg(b.path("packages/core/test/view_frontend.test.ts"));
|
|
1347
|
+
native_api_tests.addFileArg(b.path("packages/core/test/view_check.test.ts"));
|
|
1348
|
+
native_api_tests.addFileArg(b.path("packages/core/test/view_evaluator.test.ts"));
|
|
1349
|
+
native_api_tests.addFileArg(b.path("packages/core/test/view_reload.test.ts"));
|
|
1350
|
+
native_api_tests.addFileArg(b.path("packages/core/test/editor_declarations.test.ts"));
|
|
1351
|
+
native_api_tests.addFileArg(b.path("packages/core/test/declarations.test.ts"));
|
|
1352
|
+
native_api_tests.addFileArg(b.path("packages/core/test/view_provenance.test.ts"));
|
|
1353
|
+
native_api_tests.has_side_effects = true;
|
|
1354
|
+
_ = native_api_tests.captureStdOut(.{});
|
|
1355
|
+
_ = native_api_tests.captureStdErr(.{});
|
|
1356
|
+
native_driver_step.dependOn(&native_api_tests.step);
|
|
1357
|
+
ts_core_e2e_step.dependOn(&native_api_tests.step);
|
|
1358
|
+
test_step.dependOn(&native_api_tests.step);
|
|
1359
|
+
ts_core_e2e_step.dependOn(&native_driver_run.step);
|
|
1360
|
+
test_step.dependOn(&native_driver_run.step);
|
|
662
1361
|
const host_e2e_run = b.addRunArtifact(ts_core_artifacts.host);
|
|
663
1362
|
const persist_e2e_run = b.addRunArtifact(ts_core_artifacts.persist);
|
|
1363
|
+
const runtime_model_step = b.step("test-ts-runtime-model", "Verify compiled model projections, lazy snapshots, persistence and effects");
|
|
1364
|
+
const runtime_model_host = filteredTestArtifact(b, ts_core_artifacts.host.root_module, "ts-runtime-model-host-tests", &.{"compiled host projects"});
|
|
1365
|
+
const runtime_model_persist = filteredTestArtifact(b, ts_core_artifacts.persist.root_module, "ts-runtime-model-persist-tests", &.{ "compiled runtime model", "persist", "migration", "restore", "lifecycle" });
|
|
1366
|
+
runtime_model_step.dependOn(&b.addRunArtifact(runtime_model_host).step);
|
|
1367
|
+
runtime_model_step.dependOn(&b.addRunArtifact(runtime_model_persist).step);
|
|
1368
|
+
b.step("test-ts-control-appearance", "Compare complete compiled control appearance with native behavior").dependOn(&persist_e2e_run.step);
|
|
1369
|
+
b.step("test-ts-widget-routing", "Compare complete compiled input routing and focus with the native reference").dependOn(&b.addRunArtifact(ts_core_artifacts.widget_routing).step);
|
|
1370
|
+
b.step("test-ts-widget-changes", "Compare complete compiled retained widget changes with the native reference").dependOn(&b.addRunArtifact(ts_core_artifacts.widget_changes).step);
|
|
1371
|
+
b.step("test-ts-widget-paint-walk", "Compare complete compiled retained paint traversal with the native reference").dependOn(&b.addRunArtifact(ts_core_artifacts.widget_paint_walk).step);
|
|
1372
|
+
b.step("test-ts-control-geometry", "Compare complete compiled control and scroll geometry with the native reference").dependOn(&b.addRunArtifact(ts_core_artifacts.control_geometry).step);
|
|
1373
|
+
b.step("test-ts-control-content", "Compare compiled control content and editing chrome with the native reference").dependOn(&b.addRunArtifact(ts_core_artifacts.control_content).step);
|
|
1374
|
+
b.step("test-ts-paragraph-layout", "Compare complete compiled paragraph layout and font measurement continuations").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.widget_metrics.root_module, "ts-paragraph-layout-tests", &.{ "compiled widget metric paragraphs", "paragraph copied transport" })).step);
|
|
1375
|
+
b.step("test-ts-text-query-layout", "Compare complete compiled text traversal, bounds, selection and neighbor queries").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.widget_metrics.root_module, "ts-text-query-layout-tests", &.{ "compiled text runs", "compiled text bounds", "compiled text query", "text query copied transport", "text run copied transport", "portable text planner context" })).step);
|
|
1376
|
+
b.step("test-ts-text-measurement-cache", "Compare measured advance and retained paragraph cache decisions and complete outputs").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.widget_metrics.root_module, "ts-text-measurement-cache-tests", &.{ "compiled widget metric measured cache", "measured text copied transport" })).step);
|
|
1377
|
+
b.step("test-ts-text-document-width", "Compare compiled document width planning, retained cache decisions and font call traces").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.widget_metrics.root_module, "ts-text-document-width-tests", &.{ "compiled document width", "document width copied transport" })).step);
|
|
1378
|
+
b.step("test-ts-scalar-text", "Compare compiled scalar text fallback, exact arithmetic and font capability traces").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.widget_metrics.root_module, "ts-scalar-text-tests", &.{ "compiled scalar text", "scalar text copied transport" })).step);
|
|
1379
|
+
b.step("test-ts-registered-font", "Compare compiled registered font widths, byte advances and ink bounds").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.widget_metrics.root_module, "ts-registered-font-tests", &.{"compiled registered font"})).step);
|
|
1380
|
+
b.step("test-ts-text-span-queries", "Compare rich-text clipping, point mapping and complete paged selection").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.widget_metrics.root_module, "ts-text-span-query-tests", &.{ "compiled span query", "span query copied transport" })).step);
|
|
1381
|
+
b.step("test-ts-text-run-layout", "Compare compiled ordinary text lines, elision and caret geometry").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.widget_metrics.root_module, "ts-text-run-layout-tests", &.{ "compiled text runs", "compiled text bounds", "text run copied transport", "portable text planner context" })).step);
|
|
1382
|
+
b.step("test-ts-widget-metrics", "Compare complete compiled widget metrics and leaf dimensions with the native reference").dependOn(&b.addRunArtifact(ts_core_artifacts.widget_metrics).step);
|
|
1383
|
+
b.step("test-ts-surface-recipes", "Compare compiled surface chrome recipes with the native reference").dependOn(&b.addRunArtifact(ts_core_artifacts.surface_recipes).step);
|
|
1384
|
+
b.step("test-ts-widget-presentation", "Compare complete compiled retained presentation with the native reference").dependOn(&b.addRunArtifact(ts_core_artifacts.widget_presentation).step);
|
|
1385
|
+
b.step("test-ts-widget-audits", "Compare compiled accessibility and layout audits with native rules").dependOn(&b.addRunArtifact(ts_core_artifacts.widget_audits).step);
|
|
1386
|
+
b.step("test-ts-markdown-content", "Compare complete compiled Markdown with native behavior").dependOn(&b.addRunArtifact(ts_core_artifacts.markdown_content).step);
|
|
1387
|
+
b.step("test-ts-component-construction", "Compare complete compiled construction with native behavior").dependOn(&b.addRunArtifact(ts_core_artifacts.construction).step);
|
|
1388
|
+
const composition_view_run = b.addRunArtifact(ts_core_artifacts.composition_view);
|
|
1389
|
+
const composition_step = b.step("test-ts-component-composition", "Compare complete compiled composition recipes with native behavior");
|
|
1390
|
+
composition_step.dependOn(&b.addRunArtifact(ts_core_artifacts.composition).step);
|
|
1391
|
+
composition_step.dependOn(&composition_view_run.step);
|
|
1392
|
+
const composition_app_run = b.addRunArtifact(ts_core_artifacts.composition_app);
|
|
1393
|
+
composition_step.dependOn(&composition_app_run.step);
|
|
1394
|
+
ts_core_e2e_step.dependOn(&composition_app_run.step);
|
|
1395
|
+
test_step.dependOn(&composition_app_run.step);
|
|
1396
|
+
const view_reload_run = b.addRunArtifact(ts_core_artifacts.view_reload);
|
|
1397
|
+
b.step("test-ts-view-reload", "Reload compiled TypeScript views from markup edits while the model and widget state persist").dependOn(&view_reload_run.step);
|
|
1398
|
+
const view_provenance_run = b.addRunArtifact(ts_core_artifacts.view_provenance);
|
|
1399
|
+
b.step("test-ts-view-provenance", "Compare compiled view provenance and write-back spans with the native markup interpreter").dependOn(&view_provenance_run.step);
|
|
1400
|
+
ts_core_e2e_step.dependOn(&view_provenance_run.step);
|
|
1401
|
+
test_step.dependOn(&view_provenance_run.step);
|
|
1402
|
+
ts_core_e2e_step.dependOn(&view_reload_run.step);
|
|
1403
|
+
test_step.dependOn(&view_reload_run.step);
|
|
1404
|
+
ts_core_e2e_step.dependOn(&composition_view_run.step);
|
|
1405
|
+
test_step.dependOn(&composition_view_run.step);
|
|
1406
|
+
b.step("test-ts-widget-motion", "Compare compiled widget motion with native runtime behavior").dependOn(&b.addRunArtifact(ts_core_artifacts.motion).step);
|
|
1407
|
+
b.step("test-ts-component-policy", "Compare compiled component coordination with native behavior").dependOn(&persist_e2e_run.step);
|
|
1408
|
+
b.step("test-ts-replay-policy", "Compare compiled replay admission with native behavior").dependOn(&persist_e2e_run.step);
|
|
1409
|
+
b.step("test-ts-dispatch-policy", "Compare compiled app dispatch coordination with native behavior").dependOn(&persist_e2e_run.step);
|
|
1410
|
+
b.step("test-ts-lifecycle-policy", "Compare compiled app lifecycle coordination and persistence with native behavior").dependOn(&persist_e2e_run.step);
|
|
664
1411
|
const markup_e2e_run = b.addRunArtifact(ts_core_artifacts.markup);
|
|
665
1412
|
const kanban_e2e_run = b.addRunArtifact(ts_core_artifacts.kanban);
|
|
1413
|
+
const workbench_run = b.addRunArtifact(ts_core_artifacts.workbench);
|
|
1414
|
+
b.step("test-ts-workbench-e2e", "Compare compiled Workbench with complete native behavior").dependOn(&workbench_run.step);
|
|
1415
|
+
ts_core_e2e_step.dependOn(&workbench_run.step);
|
|
1416
|
+
test_step.dependOn(&workbench_run.step);
|
|
1417
|
+
const feed_run = b.addRunArtifact(ts_core_artifacts.feed);
|
|
1418
|
+
b.step("test-ts-feed-e2e", "Compare compiled Feed with complete native model, viewport, and replay behavior").dependOn(&feed_run.step);
|
|
1419
|
+
ts_core_e2e_step.dependOn(&feed_run.step);
|
|
1420
|
+
test_step.dependOn(&feed_run.step);
|
|
1421
|
+
const split_collapse_run = b.addRunArtifact(ts_core_artifacts.split_collapse);
|
|
1422
|
+
b.step("test-ts-split-collapse-e2e", "Compare compiled Split Collapse with complete native timing and view behavior").dependOn(&split_collapse_run.step);
|
|
1423
|
+
ts_core_e2e_step.dependOn(&split_collapse_run.step);
|
|
1424
|
+
test_step.dependOn(&split_collapse_run.step);
|
|
1425
|
+
const canvas_layers_run = b.addRunArtifact(ts_core_artifacts.canvas_layers);
|
|
1426
|
+
b.step("test-ts-canvas-layers", "Compare complete compiled chrome layers, ownership and retained replay").dependOn(&canvas_layers_run.step);
|
|
1427
|
+
ts_core_e2e_step.dependOn(&canvas_layers_run.step);
|
|
1428
|
+
test_step.dependOn(&canvas_layers_run.step);
|
|
1429
|
+
const audio_exact_run = b.addRunArtifact(ts_core_artifacts.audio_exact);
|
|
1430
|
+
b.step("test-ts-audio-exact", "Compare exact compiled audio capabilities, ownership and effect replay").dependOn(&audio_exact_run.step);
|
|
1431
|
+
ts_core_e2e_step.dependOn(&audio_exact_run.step);
|
|
1432
|
+
test_step.dependOn(&audio_exact_run.step);
|
|
1433
|
+
const global_shortcut_run = b.addRunArtifact(ts_core_artifacts.global_shortcut);
|
|
1434
|
+
b.step("test-ts-global-shortcut", "Drive a compiled global shortcut through the effects engine and the null platform host").dependOn(&global_shortcut_run.step);
|
|
1435
|
+
ts_core_e2e_step.dependOn(&global_shortcut_run.step);
|
|
1436
|
+
test_step.dependOn(&global_shortcut_run.step);
|
|
1437
|
+
const spawn_exact_run = b.addRunArtifact(ts_core_artifacts.spawn_exact);
|
|
1438
|
+
b.step("test-ts-spawn-exact", "Compare exact compiled subprocess routing, ownership and effect replay").dependOn(&spawn_exact_run.step);
|
|
1439
|
+
ts_core_e2e_step.dependOn(&spawn_exact_run.step);
|
|
1440
|
+
test_step.dependOn(&spawn_exact_run.step);
|
|
1441
|
+
const keyboard_input_run = b.addRunArtifact(ts_core_artifacts.keyboard_input);
|
|
1442
|
+
b.step("test-ts-keyboard-input-e2e", "Run compiled keyboard input commands through the runtime and null platform").dependOn(&keyboard_input_run.step);
|
|
1443
|
+
ts_core_e2e_step.dependOn(&keyboard_input_run.step);
|
|
1444
|
+
test_step.dependOn(&keyboard_input_run.step);
|
|
1445
|
+
const boot_images_run = b.addRunArtifact(ts_core_artifacts.boot_images);
|
|
1446
|
+
b.step("test-ts-boot-images", "Compare synchronous compiled image startup, complete results and native pixel ownership").dependOn(&boot_images_run.step);
|
|
1447
|
+
ts_core_e2e_step.dependOn(&boot_images_run.step);
|
|
1448
|
+
test_step.dependOn(&boot_images_run.step);
|
|
1449
|
+
const deck_driver_run = managedExampleRun(b, host_cli_exe, &.{ "test", "-Dplatform=null" });
|
|
1450
|
+
deck_driver_run.setCwd(b.path("examples/deck"));
|
|
1451
|
+
deck_driver_run.has_side_effects = true;
|
|
1452
|
+
deck_driver_run.setEnvironmentVariable("NATIVE_SDK_TEST_VIEW_BACKEND", "typescript");
|
|
1453
|
+
_ = deck_driver_run.captureStdOut(.{});
|
|
1454
|
+
b.step("test-ts-deck-app-driver", "Run the compiled Deck player and playlist through complete snapshots and replay").dependOn(&deck_driver_run.step);
|
|
1455
|
+
ts_core_e2e_step.dependOn(&deck_driver_run.step);
|
|
1456
|
+
test_step.dependOn(&deck_driver_run.step);
|
|
1457
|
+
const deck_run = b.addRunArtifact(ts_core_artifacts.deck);
|
|
1458
|
+
b.step("test-ts-deck-e2e", "Compare complete Deck state, views, capabilities and replay with the native reference").dependOn(&deck_run.step);
|
|
1459
|
+
b.step("test-ts-deck-integration", "Run Deck whole-app snapshots, theme, chrome and sealed replay").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.deck.root_module, "ts-deck-integration-tests", &.{ "Deck whole", "Deck complete theme" })).step);
|
|
1460
|
+
ts_core_e2e_step.dependOn(&deck_run.step);
|
|
1461
|
+
test_step.dependOn(&deck_run.step);
|
|
1462
|
+
const gpu_dashboard_run = b.addRunArtifact(ts_core_artifacts.gpu_dashboard);
|
|
1463
|
+
b.step("test-ts-gpu-dashboard-e2e", "Compare complete GPU Dashboard models, views, chrome, animations and replay").dependOn(&gpu_dashboard_run.step);
|
|
1464
|
+
ts_core_e2e_step.dependOn(&gpu_dashboard_run.step);
|
|
1465
|
+
test_step.dependOn(&gpu_dashboard_run.step);
|
|
1466
|
+
const channel_monitor_run = b.addRunArtifact(ts_core_artifacts.channel_monitor);
|
|
1467
|
+
b.step("test-ts-channel-monitor-e2e", "Compare compiled Channel Monitor with complete native channel and replay behavior").dependOn(&channel_monitor_run.step);
|
|
1468
|
+
ts_core_e2e_step.dependOn(&channel_monitor_run.step);
|
|
1469
|
+
test_step.dependOn(&channel_monitor_run.step);
|
|
1470
|
+
const code_editor_run = b.addRunArtifact(ts_core_artifacts.code_editor);
|
|
1471
|
+
b.step("test-ts-code-editor-e2e", "Compare compiled Code Editor with complete native behavior").dependOn(&code_editor_run.step);
|
|
1472
|
+
ts_core_e2e_step.dependOn(&code_editor_run.step);
|
|
1473
|
+
test_step.dependOn(&code_editor_run.step);
|
|
1474
|
+
const markdown_viewer_run = b.addRunArtifact(ts_core_artifacts.markdown_viewer);
|
|
1475
|
+
b.step("test-ts-markdown-viewer-e2e", "Compare compiled Markdown Viewer with complete native behavior").dependOn(&markdown_viewer_run.step);
|
|
1476
|
+
ts_core_e2e_step.dependOn(&markdown_viewer_run.step);
|
|
1477
|
+
test_step.dependOn(&markdown_viewer_run.step);
|
|
1478
|
+
const notes_run = b.addRunArtifact(ts_core_artifacts.notes);
|
|
1479
|
+
b.step("test-ts-notes-e2e", "Compare compiled Notes with the complete native reference").dependOn(¬es_run.step);
|
|
1480
|
+
ts_core_e2e_step.dependOn(¬es_run.step);
|
|
1481
|
+
test_step.dependOn(¬es_run.step);
|
|
1482
|
+
const effects_probe_run = b.addRunArtifact(ts_core_artifacts.effects_probe);
|
|
1483
|
+
b.step("test-ts-effects-probe-e2e", "Compare compiled effects-probe with complete native behavior").dependOn(&effects_probe_run.step);
|
|
1484
|
+
ts_core_e2e_step.dependOn(&effects_probe_run.step);
|
|
1485
|
+
test_step.dependOn(&effects_probe_run.step);
|
|
1486
|
+
const video_player_run = b.addRunArtifact(ts_core_artifacts.video_player);
|
|
1487
|
+
b.step("test-ts-video-player-e2e", "Compare compiled video-player with complete native behavior").dependOn(&video_player_run.step);
|
|
1488
|
+
ts_core_e2e_step.dependOn(&video_player_run.step);
|
|
1489
|
+
test_step.dependOn(&video_player_run.step);
|
|
1490
|
+
const inbox_run = b.addRunArtifact(ts_core_artifacts.inbox);
|
|
1491
|
+
b.step("test-ts-inbox-e2e", "Compare compiled Inbox with the native behavior reference").dependOn(&inbox_run.step);
|
|
1492
|
+
ts_core_e2e_step.dependOn(&inbox_run.step);
|
|
1493
|
+
test_step.dependOn(&inbox_run.step);
|
|
1494
|
+
const canvas_preview_run = b.addRunArtifact(ts_core_artifacts.canvas_preview);
|
|
1495
|
+
b.step("test-ts-canvas-preview-e2e", "Compare compiled Canvas Preview with the native behavior reference").dependOn(&canvas_preview_run.step);
|
|
1496
|
+
ts_core_e2e_step.dependOn(&canvas_preview_run.step);
|
|
1497
|
+
test_step.dependOn(&canvas_preview_run.step);
|
|
1498
|
+
const habits_e2e_run = b.addRunArtifact(ts_core_artifacts.habits);
|
|
1499
|
+
addTestStep(b, "test-ts-habits-e2e", "Compare compiled Habits with the native behavior reference", ts_core_artifacts.habits);
|
|
1500
|
+
ts_core_e2e_step.dependOn(&habits_e2e_run.step);
|
|
1501
|
+
test_step.dependOn(&habits_e2e_run.step);
|
|
666
1502
|
const soundboard_e2e_run = b.addRunArtifact(ts_core_artifacts.soundboard);
|
|
667
1503
|
const monitor_e2e_run = b.addRunArtifact(ts_core_artifacts.system_monitor);
|
|
1504
|
+
addTestStep(b, "test-ts-soundboard-e2e", "Run the compiled Soundboard application battery", ts_core_artifacts.soundboard);
|
|
1505
|
+
addTestStep(b, "test-ts-system-monitor-e2e", "Run the compiled System Monitor application battery", ts_core_artifacts.system_monitor);
|
|
668
1506
|
const scaffold_ide_e2e_run = b.addRunArtifact(ts_core_artifacts.scaffold_ide);
|
|
669
1507
|
// The suite scaffolds and typechecks real trees under .zig-cache;
|
|
670
1508
|
// no build inputs/outputs to hash, so always run it.
|
|
671
1509
|
scaffold_ide_e2e_run.has_side_effects = true;
|
|
672
1510
|
const ai_chat_e2e_run = b.addRunArtifact(ts_core_artifacts.ai_chat);
|
|
1511
|
+
b.step("test-ts-chart-content", "Compare complete compiled chart preparation with native behavior").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.persist.root_module, "ts-chart-content-tests", &.{"compiled chart content"})).step);
|
|
1512
|
+
b.step("test-ts-code-content", "Compare complete compiled code spans and carried state with native behavior").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.persist.root_module, "ts-code-content-tests", &.{"compiled code content"})).step);
|
|
1513
|
+
const chart_app_run = b.addRunArtifact(ts_core_artifacts.chart_app);
|
|
1514
|
+
const chart_view_run = b.addRunArtifact(ts_core_artifacts.chart_view);
|
|
1515
|
+
const chart_step = b.step("test-ts-chart-app", "Verify generated chart views and copied data ownership");
|
|
1516
|
+
chart_step.dependOn(&chart_app_run.step);
|
|
1517
|
+
chart_step.dependOn(&chart_view_run.step);
|
|
1518
|
+
ts_core_e2e_step.dependOn(&chart_app_run.step);
|
|
1519
|
+
test_step.dependOn(&chart_app_run.step);
|
|
1520
|
+
ts_core_e2e_step.dependOn(&chart_view_run.step);
|
|
1521
|
+
test_step.dependOn(&chart_view_run.step);
|
|
1522
|
+
const code_app_run = b.addRunArtifact(ts_core_artifacts.code_app);
|
|
1523
|
+
const code_view_run = b.addRunArtifact(ts_core_artifacts.code_view);
|
|
1524
|
+
const code_app_step = b.step("test-ts-code-app", "Verify complete generated code views and owned typed input");
|
|
1525
|
+
code_app_step.dependOn(&code_app_run.step);
|
|
1526
|
+
code_app_step.dependOn(&code_view_run.step);
|
|
1527
|
+
ts_core_e2e_step.dependOn(&code_app_run.step);
|
|
1528
|
+
test_step.dependOn(&code_app_run.step);
|
|
1529
|
+
ts_core_e2e_step.dependOn(&code_view_run.step);
|
|
1530
|
+
test_step.dependOn(&code_view_run.step);
|
|
1531
|
+
const markdown_app_run = b.addRunArtifact(ts_core_artifacts.markdown_app);
|
|
1532
|
+
const markdown_view_run = b.addRunArtifact(ts_core_artifacts.markdown_view);
|
|
1533
|
+
const markdown_app_step = b.step("test-ts-markdown-app", "Verify generated Markdown views, typed routes and owned recipes");
|
|
1534
|
+
markdown_app_step.dependOn(&markdown_app_run.step);
|
|
1535
|
+
markdown_app_step.dependOn(&markdown_view_run.step);
|
|
1536
|
+
ts_core_e2e_step.dependOn(&markdown_app_run.step);
|
|
1537
|
+
test_step.dependOn(&markdown_app_run.step);
|
|
1538
|
+
ts_core_e2e_step.dependOn(&markdown_view_run.step);
|
|
1539
|
+
test_step.dependOn(&markdown_view_run.step);
|
|
673
1540
|
const feed_reader_e2e_run = b.addRunArtifact(ts_core_artifacts.feed_reader);
|
|
1541
|
+
const journal_codecs_run = b.addRunArtifact(ts_core_artifacts.journal_codecs);
|
|
1542
|
+
const journal_codecs_step = b.step("test-ts-journal-codecs", "Compare complete compiled journal codecs with the independent native reference");
|
|
1543
|
+
journal_codecs_step.dependOn(&journal_codecs_run.step);
|
|
1544
|
+
const file_reference_files = b.addWriteFiles();
|
|
1545
|
+
const callback_reference_files = b.addWriteFiles();
|
|
1546
|
+
ts_core_artifacts.feed_reader.root_module.addImport("callback_policy_reference", b.createModule(.{ .root_source_file = callback_reference_files.addCopyFile(b.path("src/runtime/callback_policy_test_reference.zig"), "callback_policy_reference.zig"), .target = target, .optimize = optimize }));
|
|
1547
|
+
b.step("test-ts-callback-policy", "Compare compiled buffered and timer completion policy with native behavior").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.feed_reader.root_module, "ts-callback-policy-tests", &.{"compiled callback coordination"})).step);
|
|
1548
|
+
ts_core_artifacts.feed_reader.root_module.addImport("file_policy_reference", b.createModule(.{ .root_source_file = file_reference_files.addCopyFile(b.path("src/runtime/file_policy_test_reference.zig"), "file_policy_reference.zig"), .target = target, .optimize = optimize }));
|
|
1549
|
+
b.step("test-ts-file-policy", "Compare compiled file stream and clipboard coordination with native behavior").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.feed_reader.root_module, "ts-file-policy-tests", &.{"compiled file coordination"})).step);
|
|
1550
|
+
const request_reference_files = b.addWriteFiles();
|
|
1551
|
+
ts_core_artifacts.feed_reader.root_module.addImport("request_policy_reference", b.createModule(.{ .root_source_file = request_reference_files.addCopyFile(b.path("src/runtime/request_policy_test_reference.zig"), "request_policy_reference.zig"), .target = target, .optimize = optimize }));
|
|
1552
|
+
b.step("test-ts-request-policy", "Compare compiled request routing cancellation and credential plans with native behavior").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.feed_reader.root_module, "ts-request-policy-tests", &.{"compiled request"})).step);
|
|
1553
|
+
const media_policy_step = b.step("test-ts-media-policy", "Verify compiled media lifecycle and transport decisions against the native reference");
|
|
1554
|
+
media_policy_step.dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.feed_reader.root_module, "ts-media-policy-tests", &.{"compiled media"})).step);
|
|
1555
|
+
const shell_layout_e2e_run = b.addRunArtifact(ts_core_artifacts.shell_layout);
|
|
1556
|
+
addTestStep(b, "test-ts-shell-layout-e2e", "Run compiled shell planning, ownership, and OS application parity", ts_core_artifacts.shell_layout);
|
|
1557
|
+
ts_core_e2e_step.dependOn(&shell_layout_e2e_run.step);
|
|
1558
|
+
test_step.dependOn(&shell_layout_e2e_run.step);
|
|
1559
|
+
const typography_run = b.addRunArtifact(ts_core_artifacts.typography);
|
|
1560
|
+
b.step("test-ts-typography-e2e", "Verify compiled token overrides and registered rich paragraphs").dependOn(&typography_run.step);
|
|
1561
|
+
ts_core_e2e_step.dependOn(&typography_run.step);
|
|
1562
|
+
test_step.dependOn(&typography_run.step);
|
|
1563
|
+
const surface_layout_run = b.addRunArtifact(ts_core_artifacts.surface_layout);
|
|
1564
|
+
const surface_layout_step = b.step("test-ts-surface-layout-e2e", "Compare compiled floating-surface placement with native layout and ABI ownership");
|
|
1565
|
+
surface_layout_step.dependOn(&surface_layout_run.step);
|
|
1566
|
+
const virtual_fixed_run = b.addRunArtifact(ts_core_artifacts.virtual_fixed);
|
|
1567
|
+
surface_layout_step.dependOn(&virtual_fixed_run.step);
|
|
1568
|
+
b.step("test-ts-virtual-fixed", "Build and exercise fixed-only virtual view mirror capabilities").dependOn(&virtual_fixed_run.step);
|
|
1569
|
+
b.step("test-ts-accessibility-publication", "Compare complete compiled accessibility projection and runtime publication").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-accessibility-publication-tests", &.{"compiled accessibility"})).step);
|
|
1570
|
+
b.step("test-ts-command-coordination", "Compare complete compiled command routing and native registry ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-command-coordination-tests", &.{"compiled command"})).step);
|
|
1571
|
+
b.step("test-ts-vector-derivation", "Compare compiled vector and effect derivation without runtime frame setup").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-vector-derivation-tests", &.{ "compiled vector resources preserve", "vector resource copied transport" })).step);
|
|
1572
|
+
b.step("test-ts-render-resources", "Compare complete compiled image layer and resource derivation").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-render-resource-tests", &.{ "compiled render resources", "render resource copied transport" })).step);
|
|
1573
|
+
b.step("test-ts-gpu-packet-preparation", "Compare complete compiled retained packet identities and edits").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-gpu-packet-preparation-tests", &.{ "compiled GPU packet preparation", "packet preparation copied transport" })).step);
|
|
1574
|
+
b.step("test-ts-render-animation", "Compare complete compiled animation lifecycle and replacement damage").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-render-animation-tests", &.{ "compiled render animation", "compiled motion sampling" })).step);
|
|
1575
|
+
b.step("test-ts-canvas-scene-observation", "Compare complete compiled scene summaries and presentation preparation").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-canvas-scene-observation-tests", &.{ "compiled scene observation", "compiled GPU presentation runtime" })).step);
|
|
1576
|
+
const input_composition_step = b.step("test-ts-input-composition", "Compare compiled input normalization and complete composition ownership");
|
|
1577
|
+
input_composition_step.dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-input-composition-tests", &.{ "compiled input composition", "input composition transport" })).step);
|
|
1578
|
+
input_composition_step.dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.feed_reader.root_module, "ts-input-selection-ownership-tests", &.{"compiled selection press decisions own"})).step);
|
|
1579
|
+
b.step("test-ts-host-input-regions", "Compare complete compiled host scroll and window-drag region ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-host-input-regions-tests", &.{"compiled host input regions"})).step);
|
|
1580
|
+
b.step("test-ts-window-lifecycle", "Compare complete compiled window capability and activation coordination").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-window-lifecycle-tests", &.{"compiled window lifecycle"})).step);
|
|
1581
|
+
b.step("test-ts-image-registry", "Compare compiled image registration and media texture ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-image-registry-tests", &.{"compiled image registry"})).step);
|
|
1582
|
+
b.step("test-ts-shell-coordination", "Compare compiled shell installation and rollback ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-shell-coordination-tests", &.{"compiled shell coordination"})).step);
|
|
1583
|
+
b.step("test-ts-shell-admission", "Compare complete compiled scene hierarchy and runtime descriptor admission").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-shell-admission-tests", &.{"compiled shell admission"})).step);
|
|
1584
|
+
b.step("test-ts-authorization", "Compare compiled authorization and complete bridge responses against native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-authorization-tests", &.{"compiled authorization"})).step);
|
|
1585
|
+
b.step("test-ts-builtin-coordination", "Compare complete builtin bridge coordination against native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-builtin-coordination-tests", &.{"compiled builtin coordination"})).step);
|
|
1586
|
+
b.step("test-ts-widget-retention", "Compare complete retained widget collections and autofocus with native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-widget-retention-tests", &.{"compiled widget retention"})).step);
|
|
1587
|
+
b.step("test-ts-context-menus", "Compare compiled context menus with complete native request and action races").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-context-menu-tests", &.{ "compiled context menus", "compiled automation interactions preserve context-menu" })).step);
|
|
1588
|
+
b.step("test-ts-web-panes", "Compare complete compiled embedded WebView pane coordination with native behavior").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-web-pane-tests", &.{"compiled web panes"})).step);
|
|
1589
|
+
b.step("test-ts-extent-program", "Compare compiled retained-table programs with complete native state and callback order").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-extent-program-tests", &.{ "compiled extent", "compiled estimate", "compiled variable" })).step);
|
|
1590
|
+
b.step("test-ts-markup-expressions", "Compare complete compiled markup expression programs with native values and failures").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-expression-tests", &.{ "compiled markup expressions", "TypeScript app adapter supplies placement" })).step);
|
|
1591
|
+
b.step("test-ts-markup-text", "Compare compiled markup text/calendar bytes, ownership and allocation failures with native behavior").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-text-tests", &.{ "compiled markup text", "compiled markup expressions", "TypeScript app adapter supplies placement" })).step);
|
|
1592
|
+
b.step("test-ts-markup-display", "Compare compiled interpolation and numeric display assembly with native behavior").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-display-tests", &.{ "compiled markup display", "compiled markup expressions", "TypeScript app adapter supplies placement" })).step);
|
|
1593
|
+
b.step("test-ts-markup-scalars", "Compare compiled exact scalar expression semantics with native behavior").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-scalar-tests", &.{ "compiled markup scalars", "compiled markup expressions", "compiled markup display", "TypeScript app adapter supplies placement" })).step);
|
|
1594
|
+
b.step("test-ts-markup-parser", "Compare compiled runtime expression trees, diagnostics and borrowed ownership with native parsing").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-parser-tests", &.{ "compiled markup parser", "compiled markup expressions", "TypeScript app adapter supplies placement" })).step);
|
|
1595
|
+
b.step("test-ts-markup-document", "Compare compiled runtime markup documents, failure order and borrowed source ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-document-tests", &.{ "compiled markup document", "compiled markup parser", "compiled markup development", "TypeScript app adapter supplies placement" })).step);
|
|
1596
|
+
b.step("test-ts-markup-imports", "Compare compiled import closures, exact loader order and arena failures").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-import-tests", &.{ "compiled markup imports", "compiled markup document", "compiled markup development", "TypeScript app adapter supplies placement" })).step);
|
|
1597
|
+
b.step("test-ts-markup-canonical", "Compare complete compiled typed documents, borrowed aliases and allocation failures").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-canonical-tests", &.{ "compiled markup canonicalization", "compiled markup imports", "compiled markup document", "compiled markup parser", "compiled markup development", "TypeScript app adapter supplies placement" })).step);
|
|
1598
|
+
b.step("test-ts-markup-construction", "Compare complete runtime construction, lexical scope, callback order and arena failures").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-construction-tests", &.{ "compiled markup construction", "compiled markup canonicalization", "compiled markup development", "TypeScript app adapter supplies placement" })).step);
|
|
1599
|
+
b.step("test-ts-markup-elements", "Compare complete runtime elements, attributes, handlers and native failure order").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-element-tests", &.{ "compiled markup elements", "compiled markup construction", "compiled markup canonicalization", "TypeScript app adapter supplies placement" })).step);
|
|
1600
|
+
b.step("test-ts-markup-specialized", "Compare complete runtime elements, attributes, handlers and native failure order").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-specialized-tests", &.{ "compiled markup specialized", "compiled markup elements", "compiled markup construction", "compiled markup canonicalization", "TypeScript app adapter supplies placement" })).step);
|
|
1601
|
+
b.step("test-ts-markup-shapes", "Compare compiled shared shape and text diagnostics with native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-shapes-tests", &.{ "compiled markup shapes", "compiled markup specialized", "compiled markup elements" })).step);
|
|
1602
|
+
b.step("test-ts-markup-options", "Compare compiled option admission, exact scale conversion and complete builder failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-option-tests", &.{ "compiled markup options", "compiled markup metadata", "compiled markup values", "compiled markup specialized", "compiled markup elements" })).step);
|
|
1603
|
+
b.step("test-ts-markup-numeric", "Compare exact numeric options and virtual-window defaults, ranges and complete failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-numeric-tests", &.{ "compiled markup numeric", "compiled markup specialized", "compiled markup options" })).step);
|
|
1604
|
+
b.step("test-ts-static-markup-values", "Compare static markup dynamic values, exact payloads, keys and complete failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-static-markup-value-tests", &.{ "static markup values", "compiled markup values" })).step);
|
|
1605
|
+
b.step("test-ts-static-markup-collections", "Compare static virtual windows, row consumption, exact keys, stepper indices and complete failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-static-markup-collection-tests", &.{ "static markup collections", "compiled markup numeric", "compiled markup specialized" })).step);
|
|
1606
|
+
b.step("test-ts-static-markup-expansion", "Compare static branches, item sequencing, lexical captures, exact inherited keys and complete failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-static-markup-expansion-tests", &.{ "static markup expansion", "static markup collections" })).step);
|
|
1607
|
+
b.step("test-ts-static-markup-specialized", "Compare static specialized metadata, forwarded handlers, tab triggers and complete failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-static-markup-specialized-tests", &.{ "static markup", "compiled markup values", "compiled markup metadata", "compiled markup options", "compiled markup postprocessing", "compiled markup numeric", "compiled markup admission", "compiled markup literals" })).step);
|
|
1608
|
+
b.step("test-ts-static-markup-typography", "Compare static spans, interpolation, callback order and complete failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-static-markup-typography-tests", &.{ "static markup", "compiled markup specialized", "compiled markup runtime" })).step);
|
|
1609
|
+
b.step("test-ts-static-markup-builders", "Compare static forms, timelines, charts, video and complete failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-static-markup-builder-tests", &.{ "static markup builders", "compiled markup specialized" })).step);
|
|
1610
|
+
b.step("test-ts-static-markup-content", "Compare static markdown, code and stepper construction and complete failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-static-markup-content-tests", &.{ "static markup content builders", "compiled markup specialized" })).step);
|
|
1611
|
+
b.step("test-ts-markup-postprocessing", "Compare forwarded handlers, provenance, tabs and borrowed binding paths").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-postprocessing-tests", &.{ "compiled markup postprocessing", "compiled markup literals", "compiled markup admission", "compiled markup construction" })).step);
|
|
1612
|
+
b.step("test-ts-markup-literals", "Compare exact literal inference, template defaults and lexical capture ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-literal-tests", &.{ "compiled markup literals", "compiled markup admission", "compiled markup construction" })).step);
|
|
1613
|
+
b.step("test-ts-markup-admission", "Compare specialized attribute forms, raw flags and complete eager failure effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-admission-tests", &.{ "compiled markup admission", "compiled markup specialized", "compiled markup options", "compiled markup metadata" })).step);
|
|
1614
|
+
b.step("test-ts-markup-metadata", "Compare compiled icon and code metadata with native grammar, storage and builder effects").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-metadata-tests", &.{ "compiled markup metadata", "compiled markup values", "compiled markup specialized", "compiled markup elements" })).step);
|
|
1615
|
+
b.step("test-ts-markup-classification", "Compare runtime classification, cached ownership and complete builder parity").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-classification-tests", &.{ "compiled markup classification", "compiled markup canonicalization", "compiled markup runtime", "compiled markup specialized", "compiled markup elements", "compiled markup values" })).step);
|
|
1616
|
+
b.step("test-ts-markup-runtime", "Compare runtime interpolation, collections, exact keys and callback ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-runtime-tests", &.{ "compiled markup runtime", "compiled markup values", "compiled markup specialized", "compiled markup elements", "compiled markup construction", "compiled markup canonicalization", "TypeScript app adapter supplies placement" })).step);
|
|
1617
|
+
b.step("test-ts-markup-values", "Compare exact runtime values, typed callbacks, lexical bindings and native failure order").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-values-tests", &.{ "compiled markup values", "compiled markup specialized", "compiled markup elements", "compiled markup construction", "compiled markup canonicalization", "TypeScript app adapter supplies placement" })).step);
|
|
1618
|
+
b.step("test-ts-scroll-mutation", "Compare complete compiled scroll mutation programs with native state and effect ordering").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-scroll-mutation-tests", &.{ "compiled scroll mutation", "TypeScript app adapter supplies placement" })).step);
|
|
1619
|
+
b.step("test-ts-virtual-windows", "Compare complete compiled virtual window coordination and fixed-only views").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-virtual-window-tests", &.{"compiled virtual window"})).step);
|
|
1620
|
+
b.step("test-ts-staged-rebuild", "Compare complete compiled staged split and anchor rebuild programs").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-staged-rebuild-tests", &.{"compiled staged rebuild"})).step);
|
|
1621
|
+
b.step("test-ts-widget-continuity", "Compare complete compiled rebuild semantics and fling continuity").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-widget-continuity-tests", &.{"compiled widget continuity"})).step);
|
|
1622
|
+
b.step("test-ts-scroll-tree", "Compare complete compiled retained scroll geometry and tab reveal traversal").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-scroll-tree-tests", &.{"compiled scroll tree"})).step);
|
|
1623
|
+
b.step("test-ts-widget-reconcile", "Compare complete retained control and text reconciliation with native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-widget-reconcile-tests", &.{"compiled widget reconciliation"})).step);
|
|
1624
|
+
b.step("test-ts-host-flow", "Compare complete host event scheduling and runtime coordination with native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-host-flow-tests", &.{"compiled host flow"})).step);
|
|
1625
|
+
b.step("test-ts-terminal-paint", "Compare complete terminal paint programs and builder ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-terminal-paint-tests", &.{"compiled terminal paint"})).step);
|
|
1626
|
+
b.step("test-ts-markup-development", "Compare complete markup reload and provenance with native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-markup-development-tests", &.{"compiled markup development"})).step);
|
|
1627
|
+
b.step("test-ts-session-recording", "Compare compiled recording coordination, complete journals and failure transitions").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-session-recording-tests", &.{ "compiled session recording", "compiled input composition sealed journals" })).step);
|
|
1628
|
+
b.step("test-ts-replay-progress", "Compare complete replay reports, target selection, blob validation and finalization").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-replay-progress-tests", &.{"compiled replay progress"})).step);
|
|
1629
|
+
b.step("test-ts-session-journal", "Compare journal framing, complete readers, seals and hostile input mutations").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-session-journal-tests", &.{ "compiled journal", "compiled replay progress consumer" })).step);
|
|
1630
|
+
b.step("test-ts-snapshot-coordination", "Compare complete snapshot projections and frame-profile rings against native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-snapshot-coordination-tests", &.{"compiled snapshot"})).step);
|
|
1631
|
+
b.step("test-ts-snapshot-serialization", "Compare complete snapshot text, accessibility, windows, escaping and writer failures").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-snapshot-serialization-tests", &.{"compiled snapshot"})).step);
|
|
1632
|
+
b.step("test-ts-blob-coordination", "Compare complete blob-store decisions and consumers against native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-blob-coordination-tests", &.{ "compiled blob", "compiled session recording", "compiled input composition sealed journals" })).step);
|
|
1633
|
+
b.step("test-ts-automation-commands", "Compare complete compiled automation grammar and numeric admission against native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-automation-command-tests", &.{"compiled automation commands"})).step);
|
|
1634
|
+
b.step("test-ts-automation-interactions", "Compare complete compiled automation event streams and retained state against native references").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-automation-interaction-tests", &.{"compiled automation interactions"})).step);
|
|
1635
|
+
b.step("test-ts-bridge-descriptors", "Compare compiled bridge descriptors, exact identities and borrowed origin buffers").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-bridge-descriptor-tests", &.{"compiled bridge descriptors"})).step);
|
|
1636
|
+
b.step("test-ts-system-admission", "Compare compiled OS-service descriptors, refusal and native buffer ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-system-admission-tests", &.{"compiled system admission"})).step);
|
|
1637
|
+
b.step("test-ts-font-registry", "Compare compiled font registration and refresh ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-font-registry-tests", &.{"compiled font registry"})).step);
|
|
1638
|
+
b.step("test-ts-view-coordination", "Compare complete compiled cross-view focus and ancestry coordination").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-view-coordination-tests", &.{"compiled view coordination"})).step);
|
|
1639
|
+
b.step("test-ts-canvas-presentation-lifecycle", "Compare complete compiled presentation lifecycle and native capability execution").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-canvas-presentation-lifecycle-tests", &.{ "compiled presentation lifecycle", "presentation lifecycle transport", "compiled GPU presentation runtime" })).step);
|
|
1640
|
+
b.step("test-ts-canvas-frame-coordination", "Compare compiled frame admission and complete surface preparation").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-canvas-frame-coordination-tests", &.{ "compiled frame coordination", "canvas frame coordination copied transport", "compiled GPU presentation runtime" })).step);
|
|
1641
|
+
b.step("test-ts-gpu-presentation", "Compare compiled retained presentation programs and runtime ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-gpu-presentation-tests", &.{ "compiled GPU presentation", "GPU presentation copied transport", "compiled GPU packet preparation gathers" })).step);
|
|
1642
|
+
b.step("test-ts-gpu-planning", "Compare complete compiled GPU packet and encoder planning").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-gpu-planning-tests", &.{ "compiled GPU planning", "GPU planning copied transport", "both runtime damage consumers preserve", "both Runtime consumers preserve full override frames" })).step);
|
|
1643
|
+
b.step("test-ts-vector-raster", "Compare compiled vector flattening stroke geometry and coverage with the native reference").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-vector-raster-tests", &.{ "compiled vector raster", "vector raster copied transport" })).step);
|
|
1644
|
+
b.step("test-ts-vector-effects", "Compare complete compiled vector geometry and visual effect resources").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-vector-effects-tests", &.{ "compiled vector resources", "vector resource copied transport" })).step);
|
|
1645
|
+
b.step("test-ts-glyph-atlas", "Compare complete compiled glyph atlas construction and cache key ownership").dependOn(&b.addRunArtifact(filteredTestArtifact(b, ts_core_artifacts.surface_layout.root_module, "ts-glyph-atlas-tests", &.{ "compiled glyph atlas", "compiled text cache", "compiled text and glyph caches" })).step);
|
|
1646
|
+
ts_core_e2e_step.dependOn(&surface_layout_run.step);
|
|
1647
|
+
test_step.dependOn(&surface_layout_run.step);
|
|
674
1648
|
const services_e2e_run = b.addRunArtifact(ts_core_artifacts.services);
|
|
1649
|
+
addTestStep(b, "test-ts-services-journal", "Verify devhost recordings replay through the packaged service carrier", filteredTestArtifact(b, ts_core_artifacts.services.root_module, "ts-services-journal-tests", &.{"a devhost-recorded service session"}));
|
|
1650
|
+
const markup_components_e2e_step = b.step("test-ts-markup-components-e2e", "Run root component-file compiled, interpreter, automation, and replay coverage");
|
|
1651
|
+
markup_components_e2e_step.dependOn(&markup_e2e_run.step);
|
|
1652
|
+
markup_components_e2e_step.dependOn(&kanban_e2e_run.step);
|
|
1653
|
+
markup_components_e2e_step.dependOn(&invalid_import_compile.step);
|
|
675
1654
|
ts_services_e2e_step.dependOn(&feed_reader_e2e_run.step);
|
|
676
1655
|
ts_services_e2e_step.dependOn(&services_e2e_run.step);
|
|
677
1656
|
// The same fixture through the in-process carrier (ServicePool over
|
|
@@ -681,6 +1660,7 @@ pub fn build(b: *std.Build) void {
|
|
|
681
1660
|
const services_pool_e2e_run: ?*std.Build.Step.Run = if (ts_core_artifacts.services_pool) |pool_tests| pool: {
|
|
682
1661
|
const run = b.addRunArtifact(pool_tests);
|
|
683
1662
|
ts_services_e2e_step.dependOn(&run.step);
|
|
1663
|
+
b.step("test-ts-services-pool", "Run the complete in-process service pool suite (FIFO, deadlines, trap isolation, streaming and replay)").dependOn(&run.step);
|
|
684
1664
|
break :pool run;
|
|
685
1665
|
} else null;
|
|
686
1666
|
// Service carrier benchmark: cold start, warm round-trip latency
|
|
@@ -699,12 +1679,121 @@ pub fn build(b: *std.Build) void {
|
|
|
699
1679
|
const sidecar_conformance_run = b.addRunArtifact(ts_core_artifacts.sidecar_conformance);
|
|
700
1680
|
const sidecar_conformance_step = b.step("sidecar-conformance", "Validate corewire-generated mirrors over every fixture's frontend-emitted contract (requires node)");
|
|
701
1681
|
sidecar_conformance_step.dependOn(&sidecar_conformance_run.step);
|
|
1682
|
+
const profile_tests_mod = module(b, b.graph.host, optimize, "tools/corewire/profile_tests.zig");
|
|
1683
|
+
@import("build/corewire.zig").linkProfile(profile_tests_mod, ts_core_artifacts.profile_archive);
|
|
1684
|
+
const profile_tests_run = b.addRunArtifact(testArtifact(b, profile_tests_mod));
|
|
1685
|
+
const profile_step = b.step("test-corewire-profile", "Test the scriptc-compiled profile generator and its preserved output fixtures");
|
|
1686
|
+
profile_step.dependOn(&profile_tests_run.step);
|
|
1687
|
+
test_step.dependOn(&profile_tests_run.step);
|
|
1688
|
+
const profile_cli_tests = b.addSystemCommand(&.{b.findProgram(&.{"node"}, &.{}) catch unreachable});
|
|
1689
|
+
profile_cli_tests.addFileArg(b.path("tools/corewire/profile.test.ts"));
|
|
1690
|
+
profile_cli_tests.addArtifactArg(ts_core_artifacts.corewire);
|
|
1691
|
+
profile_cli_tests.addFileInput(b.path("tools/corewire/emit_profile.ts"));
|
|
1692
|
+
profile_cli_tests.setCwd(b.path("."));
|
|
1693
|
+
profile_cli_tests.has_side_effects = true;
|
|
1694
|
+
profile_step.dependOn(&profile_cli_tests.step);
|
|
1695
|
+
test_step.dependOn(&profile_cli_tests.step);
|
|
1696
|
+
const core_policy_step = b.step("test-corewire-policy", "Test compiled core contract policy and both projection adapters");
|
|
1697
|
+
const corewire_reference_mod = module(b, b.graph.host, optimize, "tools/corewire/main_reference.zig");
|
|
1698
|
+
@import("build/corewire.zig").linkProfile(corewire_reference_mod, ts_core_artifacts.profile_archive);
|
|
1699
|
+
const corewire_reference = b.addExecutable(.{ .name = "corewire-reference", .root_module = corewire_reference_mod });
|
|
1700
|
+
const entry_tests = b.addSystemCommand(&.{b.findProgram(&.{"node"}, &.{}) catch unreachable});
|
|
1701
|
+
entry_tests.addFileArg(b.path("tools/corewire/entry.test.ts"));
|
|
1702
|
+
entry_tests.addArtifactArg(ts_core_artifacts.corewire);
|
|
1703
|
+
entry_tests.addArtifactArg(corewire_reference);
|
|
1704
|
+
for ([_][]const u8{ "entry_coordination.ts", "invocation.ts", "invocation_fixture.ts", "invocation_cases.ts", "core_cases.ts", "service_cases.ts" }) |source| entry_tests.addFileInput(b.path(b.fmt("tools/corewire/{s}", .{source})));
|
|
1705
|
+
entry_tests.setCwd(b.path("."));
|
|
1706
|
+
entry_tests.has_side_effects = true;
|
|
1707
|
+
const entry_step = b.step("test-corewire-entry", "Test complete compiled corewire entry coordination against the native reference");
|
|
1708
|
+
entry_step.dependOn(&entry_tests.step);
|
|
1709
|
+
core_policy_step.dependOn(&entry_tests.step);
|
|
1710
|
+
test_step.dependOn(&entry_tests.step);
|
|
1711
|
+
const entry_mod = module(b, b.graph.host, optimize, "tools/corewire/entry_coordination.zig");
|
|
1712
|
+
@import("build/corewire.zig").linkProfile(entry_mod, ts_core_artifacts.profile_archive);
|
|
1713
|
+
const entry_run = b.addRunArtifact(testArtifact(b, entry_mod));
|
|
1714
|
+
entry_step.dependOn(&entry_run.step);
|
|
1715
|
+
core_policy_step.dependOn(&entry_run.step);
|
|
1716
|
+
test_step.dependOn(&entry_run.step);
|
|
1717
|
+
const filesystem_tests = b.addSystemCommand(&.{b.findProgram(&.{"node"}, &.{}) catch unreachable});
|
|
1718
|
+
filesystem_tests.addFileArg(b.path("tools/corewire/filesystem.test.ts"));
|
|
1719
|
+
filesystem_tests.addArtifactArg(ts_core_artifacts.corewire);
|
|
1720
|
+
filesystem_tests.addArtifactArg(corewire_reference);
|
|
1721
|
+
for ([_][]const u8{ "entry_coordination.ts", "filesystem_coordination.ts", "invocation_cases.ts", "invocation_fixture.ts", "core_cases.ts", "service_cases.ts" }) |source| {
|
|
1722
|
+
filesystem_tests.addFileInput(b.path(b.fmt("tools/corewire/{s}", .{source})));
|
|
1723
|
+
}
|
|
1724
|
+
filesystem_tests.has_side_effects = true;
|
|
1725
|
+
filesystem_tests.setCwd(b.path("."));
|
|
1726
|
+
const filesystem_step = b.step("test-corewire-filesystem", "Compare complete compiled filesystem coordination with the independent native reference");
|
|
1727
|
+
filesystem_step.dependOn(&filesystem_tests.step);
|
|
1728
|
+
core_policy_step.dependOn(&filesystem_tests.step);
|
|
1729
|
+
entry_step.dependOn(&filesystem_tests.step);
|
|
1730
|
+
test_step.dependOn(&filesystem_tests.step);
|
|
1731
|
+
for ([_][]const u8{ "contract_intake.zig", "sidecar.zig", "emit.zig", "emit_facade.zig", "invocation_tests.zig" }) |source| {
|
|
1732
|
+
const policy_mod = module(b, b.graph.host, optimize, b.fmt("tools/corewire/{s}", .{source}));
|
|
1733
|
+
@import("build/corewire.zig").linkProfile(policy_mod, ts_core_artifacts.profile_archive);
|
|
1734
|
+
const run = b.addRunArtifact(testArtifact(b, policy_mod));
|
|
1735
|
+
core_policy_step.dependOn(&run.step);
|
|
1736
|
+
test_step.dependOn(&run.step);
|
|
1737
|
+
}
|
|
1738
|
+
const core_policy_cli_tests = b.addSystemCommand(&.{b.findProgram(&.{"node"}, &.{}) catch unreachable});
|
|
1739
|
+
core_policy_cli_tests.addFileArg(b.path("tools/corewire/core.test.ts"));
|
|
1740
|
+
core_policy_cli_tests.addArtifactArg(ts_core_artifacts.corewire);
|
|
1741
|
+
core_policy_cli_tests.addFileInput(b.path("tools/corewire/core_cases.ts"));
|
|
1742
|
+
core_policy_cli_tests.addFileInput(b.path("tools/corewire/core_goldens.json"));
|
|
1743
|
+
core_policy_cli_tests.has_side_effects = true;
|
|
1744
|
+
core_policy_cli_tests.setCwd(b.path("."));
|
|
1745
|
+
core_policy_step.dependOn(&core_policy_cli_tests.step);
|
|
1746
|
+
test_step.dependOn(&core_policy_cli_tests.step);
|
|
1747
|
+
const intake_cli_tests = b.addSystemCommand(&.{b.findProgram(&.{"node"}, &.{}) catch unreachable});
|
|
1748
|
+
intake_cli_tests.addFileArg(b.path("tools/corewire/intake.test.ts"));
|
|
1749
|
+
intake_cli_tests.addArtifactArg(ts_core_artifacts.corewire);
|
|
1750
|
+
for ([_][]const u8{ "intake_cases.ts", "intake_goldens.json", "core_cases.ts", "service_cases.ts" }) |source| {
|
|
1751
|
+
intake_cli_tests.addFileInput(b.path(b.fmt("tools/corewire/{s}", .{source})));
|
|
1752
|
+
}
|
|
1753
|
+
intake_cli_tests.has_side_effects = true;
|
|
1754
|
+
intake_cli_tests.setCwd(b.path("."));
|
|
1755
|
+
core_policy_step.dependOn(&intake_cli_tests.step);
|
|
1756
|
+
test_step.dependOn(&intake_cli_tests.step);
|
|
1757
|
+
const invocation_cli_tests = b.addSystemCommand(&.{b.findProgram(&.{"node"}, &.{}) catch unreachable});
|
|
1758
|
+
invocation_cli_tests.addFileArg(b.path("tools/corewire/invocation.test.ts"));
|
|
1759
|
+
invocation_cli_tests.addArtifactArg(ts_core_artifacts.corewire);
|
|
1760
|
+
for ([_][]const u8{ "invocation_cases.ts", "invocation_fixture.ts", "invocation_goldens.json", "core_cases.ts", "service_cases.ts" }) |source| {
|
|
1761
|
+
invocation_cli_tests.addFileInput(b.path(b.fmt("tools/corewire/{s}", .{source})));
|
|
1762
|
+
}
|
|
1763
|
+
invocation_cli_tests.has_side_effects = true;
|
|
1764
|
+
invocation_cli_tests.setCwd(b.path("."));
|
|
1765
|
+
core_policy_step.dependOn(&invocation_cli_tests.step);
|
|
1766
|
+
test_step.dependOn(&invocation_cli_tests.step);
|
|
1767
|
+
const service_projection_step = b.step("test-corewire-services", "Test compiled service validation, projections, fingerprints, and owned result bytes");
|
|
1768
|
+
for ([_][]const u8{ "service_contract.zig", "emit_service.zig" }) |source| {
|
|
1769
|
+
const service_tests_mod = module(b, b.graph.host, optimize, b.fmt("tools/corewire/{s}", .{source}));
|
|
1770
|
+
@import("build/corewire.zig").linkProfile(service_tests_mod, ts_core_artifacts.profile_archive);
|
|
1771
|
+
const run = b.addRunArtifact(testArtifact(b, service_tests_mod));
|
|
1772
|
+
service_projection_step.dependOn(&run.step);
|
|
1773
|
+
test_step.dependOn(&run.step);
|
|
1774
|
+
}
|
|
1775
|
+
const service_projection_cli_tests = b.addSystemCommand(&.{b.findProgram(&.{"node"}, &.{}) catch unreachable});
|
|
1776
|
+
service_projection_cli_tests.addFileArg(b.path("tools/corewire/service.test.ts"));
|
|
1777
|
+
service_projection_cli_tests.addArtifactArg(ts_core_artifacts.corewire);
|
|
1778
|
+
service_projection_cli_tests.addFileInput(b.path("tools/corewire/emit_service.ts"));
|
|
1779
|
+
service_projection_cli_tests.addFileInput(b.path("tools/corewire/service_templates.ts"));
|
|
1780
|
+
service_projection_cli_tests.addFileInput(b.path("tools/corewire/service_cases.ts"));
|
|
1781
|
+
service_projection_cli_tests.addFileInput(b.path("tools/corewire/service_goldens.json"));
|
|
1782
|
+
service_projection_cli_tests.has_side_effects = true;
|
|
1783
|
+
service_projection_cli_tests.setCwd(b.path("."));
|
|
1784
|
+
service_projection_step.dependOn(&service_projection_cli_tests.step);
|
|
1785
|
+
test_step.dependOn(&service_projection_cli_tests.step);
|
|
702
1786
|
// ABI-law suites over real compiled cores: the broad markup fixture
|
|
703
1787
|
// plus the focused mixed bare-Model/[Model, Cmd] return regression.
|
|
704
1788
|
const abi_laws_run = b.addRunArtifact(ts_core_artifacts.external_core_abi_laws);
|
|
1789
|
+
const trap_run = b.addRunArtifact(ts_core_artifacts.external_core_trap);
|
|
1790
|
+
trap_run.expectExitCode(73);
|
|
1791
|
+
_ = trap_run.captureStdErr(.{});
|
|
705
1792
|
const mixed_return_abi_run = b.addRunArtifact(ts_core_artifacts.mixed_return_abi_laws);
|
|
706
1793
|
const abi_laws_step = b.step("test-external-core-abi", "Run the compiled-core ABI-law suites, including mixed update returns (requires node and `npm ci` in packages/core)");
|
|
707
1794
|
abi_laws_step.dependOn(&abi_laws_run.step);
|
|
1795
|
+
abi_laws_step.dependOn(&trap_run.step);
|
|
1796
|
+
test_step.dependOn(&trap_run.step);
|
|
708
1797
|
abi_laws_step.dependOn(&mixed_return_abi_run.step);
|
|
709
1798
|
test_step.dependOn(&abi_laws_run.step);
|
|
710
1799
|
test_step.dependOn(&mixed_return_abi_run.step);
|
|
@@ -767,6 +1856,7 @@ pub fn build(b: *std.Build) void {
|
|
|
767
1856
|
test_step.dependOn(&b.addRunArtifact(markup_lsp_tests).step);
|
|
768
1857
|
test_step.dependOn(&b.addRunArtifact(automation_cli_tests).step);
|
|
769
1858
|
test_step.dependOn(&b.addRunArtifact(markup_cli_tests).step);
|
|
1859
|
+
test_step.dependOn(&b.addRunArtifact(skills_cli_tests).step);
|
|
770
1860
|
test_step.dependOn(&b.addRunArtifact(evals_cmdview_tests).step);
|
|
771
1861
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-package-types", "Verify package TypeScript platform feature names", &.{
|
|
772
1862
|
.{ .path = "packages/native-sdk/native-sdk.d.ts", .pattern = "NativeSdkCommandInfo" },
|
|
@@ -852,12 +1942,12 @@ pub fn build(b: *std.Build) void {
|
|
|
852
1942
|
.{ .path = "build/app.zig", .pattern = "break :services_contract stabilizeGeneratedFile(b, raw, \"services.contract.json\", build_trace);" },
|
|
853
1943
|
.{ .path = "build/app.zig", .pattern = "addAppCoreTsDirInputs(b, stage_run, appPath(b, app_root, \"src\"));" },
|
|
854
1944
|
.{ .path = "build/app.zig", .pattern = "addStagedCoreSdkInputs(b, dep.builder, stage_run);" },
|
|
855
|
-
.{ .path = "build/app.zig", .pattern = "for ([_][]const u8{ \"text.ts\", \"events.ts\" }) |source|" },
|
|
1945
|
+
.{ .path = "build/app.zig", .pattern = "for ([_][]const u8{ \"bytes.ts\", \"text.ts\", \"events.ts\", \"theme.ts\", \"internal/image_identity.ts\", \"internal/markdown_policy.ts\" }) |source|" },
|
|
856
1946
|
.{ .path = "build.zig", .pattern = "app_build.addStagedCoreSdkInputs(b, b, stage_run);" },
|
|
857
|
-
.{ .path = "packages/core/scripts/stage_external_core.mjs", .pattern = "for (const sdkFile of [\"text.ts\", \"events.ts\"])" },
|
|
1947
|
+
.{ .path = "packages/core/scripts/stage_external_core.mjs", .pattern = "for (const sdkFile of [\"bytes.ts\", \"text.ts\", \"events.ts\", \"theme.ts\", \"internal/image_identity.ts\", \"internal/markdown_policy.ts\"])" },
|
|
858
1948
|
.{ .path = "build/app.zig", .pattern = "if (std.mem.startsWith(u8, normalized, \"services/\")) continue;" },
|
|
859
|
-
.{ .path = "tools/corewire/emit_service.
|
|
860
|
-
.{ .path = "tools/corewire/
|
|
1949
|
+
.{ .path = "tools/corewire/emit_service.ts", .pattern = "native-sdk.services.abi.v3" },
|
|
1950
|
+
.{ .path = "tools/corewire/service.test.ts", .pattern = "excludes implementation-only facts" },
|
|
861
1951
|
.{ .path = "build/app.zig", .pattern = "link_mod.addObject(markupDataObject(b, target, app_optimize, stage.markup_c));" },
|
|
862
1952
|
.{ .path = "build/app.zig", .pattern = "addPlatformLinkSearchPaths(b, selected_platform, web_engine, cef_dir, link_mod);" },
|
|
863
1953
|
.{ .path = "build/app.zig", .pattern = "mod.addFrameworkPath(.{ .cwd_relative = b.pathJoin(&.{ sysroot, \"System/Library/Frameworks\" }) });" },
|
|
@@ -865,6 +1955,7 @@ pub fn build(b: *std.Build) void {
|
|
|
865
1955
|
.{ .path = "src/app_runner/ts_core_main.zig", .pattern = "extern const native_sdk_app_markup: u8;" },
|
|
866
1956
|
.{ .path = "packages/core/scripts/embed_markup_c.mjs", .pattern = "const unsigned char native_sdk_app_markup[]" },
|
|
867
1957
|
.{ .path = "build/app.zig", .pattern = "node_modules\", \"scriptc\", \"dist\", \"bootstrap.js\"" },
|
|
1958
|
+
.{ .path = "build/app.zig", .pattern = "node_modules\", \"scriptc\", \"bin\", \"scriptc.exe\"" },
|
|
868
1959
|
.{ .path = "build/app.zig", .pattern = "setEnvironmentVariable(\"SCRIPTC_TIMING\", \"1\")" },
|
|
869
1960
|
.{ .path = "build/app.zig", .pattern = "service_compile.addArg(\"--compiler-package-origin\")" },
|
|
870
1961
|
.{ .path = "build/app.zig", .pattern = "compile.addArg(\"--compiler-package-origin\")" },
|
|
@@ -874,9 +1965,10 @@ pub fn build(b: *std.Build) void {
|
|
|
874
1965
|
.{ .path = "packages/core/scripts/run_external_core_compiler.mjs", .pattern = "compilerArgv(args.compiler)" },
|
|
875
1966
|
.{ .path = "packages/core/scripts/run_external_service_compiler.mjs", .pattern = "compilerArgv(args.compiler)" },
|
|
876
1967
|
.{ .path = "packages/core/scripts/compiler_command.mjs", .pattern = "npmTarget !== null" },
|
|
877
|
-
.{ .path = "build.zig", .pattern = "fn
|
|
878
|
-
.{ .path = "build.zig", .pattern = "packages/core/node_modules
|
|
879
|
-
.{ .path = "build.zig", .pattern = "compile.
|
|
1968
|
+
.{ .path = "build.zig", .pattern = "fn repositoryScriptcInstallMarker" },
|
|
1969
|
+
.{ .path = "build.zig", .pattern = "packages/core/node_modules/tar/package.json" },
|
|
1970
|
+
.{ .path = "build.zig", .pattern = "compile.addArg(\"--compiler-package-origin\");" },
|
|
1971
|
+
.{ .path = "build/app.zig", .pattern = "compile.addFileInput(dep.path(\"packages/core/scripts/run_library_compiler.mjs\"))" },
|
|
880
1972
|
.{ .path = "src/tooling/verbs.zig", .pattern = "Zig's full summary reports each named build step's duration" },
|
|
881
1973
|
.{ .path = "src/tooling/verbs.zig", .pattern = "fn rebuildPathIgnored" },
|
|
882
1974
|
.{ .path = "src/tooling/verbs.zig", .pattern = "var walker = try root.walkSelectively(allocator);" },
|
|
@@ -948,19 +2040,19 @@ pub fn build(b: *std.Build) void {
|
|
|
948
2040
|
.{ .path = "src/platform/windows/webview2_host.cpp", .pattern = "close:function(options){return invoke('native-sdk.view.close',viewSelectorPayload(options))" },
|
|
949
2041
|
});
|
|
950
2042
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-docs-command-contracts", "Verify command docs match native view update contracts", &.{
|
|
951
|
-
.{ .path = "docs/
|
|
952
|
-
.{ .path = "docs/
|
|
2043
|
+
.{ .path = "docs/content/docs/commands.mdx", .pattern = ".text = \"Refreshed\"" },
|
|
2044
|
+
.{ .path = "docs/content/docs/commands.mdx", .pattern = "const commands = await window.zero.commands.list();" },
|
|
953
2045
|
});
|
|
954
2046
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-docs-native-view-contracts", "Verify native surface docs describe view identity", &.{
|
|
955
|
-
.{ .path = "docs/
|
|
956
|
-
.{ .path = "docs/
|
|
957
|
-
.{ .path = "docs/
|
|
2047
|
+
.{ .path = "docs/content/docs/native-surfaces.mdx", .pattern = "ViewInfo.id" },
|
|
2048
|
+
.{ .path = "docs/content/docs/native-surfaces.mdx", .pattern = "window.zero.views.update(\"status\"" },
|
|
2049
|
+
.{ .path = "docs/content/docs/native-surfaces.mdx", .pattern = "first-frame latency budget" },
|
|
958
2050
|
});
|
|
959
2051
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-docs-shell-manifest-contracts", "Verify app.zon docs describe shell compatibility window labels", &.{
|
|
960
|
-
.{ .path = "docs/
|
|
2052
|
+
.{ .path = "docs/content/docs/app-zon.mdx", .pattern = "labels must stay unique across both lists" },
|
|
961
2053
|
});
|
|
962
2054
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-docs-media-producer-contracts", "Verify the media producer docs' typed callback stays mirrored by the compile-shaped pin in media_surface_tests.zig", &.{
|
|
963
|
-
.{ .path = "docs/
|
|
2055
|
+
.{ .path = "docs/content/docs/media-producers.mdx", .pattern = "producer: media.MediaSurfaceProducer" },
|
|
964
2056
|
.{ .path = "src/runtime/media_surface_tests.zig", .pattern = "producer: media.MediaSurfaceProducer" },
|
|
965
2057
|
});
|
|
966
2058
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-session-replay-image-codec", "Verify the replay runner installs the host image codec headlessly (the desktop arms cannot link in unit tests; the null-fallback arm is covered in session_tests.zig)", &.{
|
|
@@ -1099,6 +2191,21 @@ pub fn build(b: *std.Build) void {
|
|
|
1099
2191
|
.{ .path = "src/platform/macos/cef_host.mm", .pattern = "self.webviewPendingURLs[[self webViewKeyForWindow:windowId label:label]] = resolvedURL;" },
|
|
1100
2192
|
.{ .path = "src/platform/macos/cef_host.mm", .pattern = "bridgeOriginForWindowId:window_id_ webViewLabel:labelString sourceURL:sourceURLString" },
|
|
1101
2193
|
});
|
|
2194
|
+
var appkit_accessibility_step: ?*std.Build.Step = null;
|
|
2195
|
+
if (@import("builtin").os.tag == .macos and target.result.os.tag == .macos) {
|
|
2196
|
+
const compile_accessibility = b.addSystemCommand(&.{ "xcrun", "clang", "-fobjc-arc", "-fno-sanitize=builtin", "-O2" });
|
|
2197
|
+
compile_accessibility.addFileArg(b.path("tests/platform/appkit_accessibility.m"));
|
|
2198
|
+
compile_accessibility.addFileArg(b.path("src/platform/macos/appkit_host.m"));
|
|
2199
|
+
for ([_][]const u8{ "AppKit", "AVFoundation", "ScreenCaptureKit", "MediaToolbox", "Accelerate", "Metal", "QuartzCore", "WebKit", "CoreFoundation", "CoreText", "CoreMedia", "CoreVideo", "ImageIO", "Security", "UniformTypeIdentifiers" }) |framework| {
|
|
2200
|
+
compile_accessibility.addArgs(&.{ "-framework", framework });
|
|
2201
|
+
}
|
|
2202
|
+
compile_accessibility.addArg("-o");
|
|
2203
|
+
const accessibility_exe = compile_accessibility.addOutputFileArg("appkit-accessibility-tests");
|
|
2204
|
+
const run_accessibility = b.addSystemCommand(&.{"/usr/bin/env"});
|
|
2205
|
+
run_accessibility.addFileArg(accessibility_exe);
|
|
2206
|
+
appkit_accessibility_step = b.step("test-appkit-accessibility", "Exercise production AppKit accessibility identity, optional fields and lifetime");
|
|
2207
|
+
appkit_accessibility_step.?.dependOn(&run_accessibility.step);
|
|
2208
|
+
}
|
|
1102
2209
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-appkit-native-accessibility-roles", "Verify AppKit native views publish accessibility roles", &.{
|
|
1103
2210
|
.{ .path = "src/platform/macos/appkit_host.m", .pattern = "NativeSdkAccessibilityRoleForNativeViewKind" },
|
|
1104
2211
|
.{ .path = "src/platform/macos/appkit_host.m", .pattern = "NSAccessibilityToolbarRole" },
|
|
@@ -1183,7 +2290,9 @@ pub fn build(b: *std.Build) void {
|
|
|
1183
2290
|
// The runtime ordering the queue protects: the recorder seals
|
|
1184
2291
|
// on the shutdown dispatch's exit, and the modeled host's
|
|
1185
2292
|
// queued seam keeps the runtime suites honest about it.
|
|
1186
|
-
.{ .path = "src/runtime/flow.zig", .pattern = "
|
|
2293
|
+
.{ .path = "src/runtime/flow.zig", .pattern = "3 => self.options.session_recorder.?.finish()," },
|
|
2294
|
+
.{ .path = "packages/core/src/host_flow.ts", .pattern = "if (kind === 5) out[2] = 3;" },
|
|
2295
|
+
.{ .path = "src/runtime/flow_reference.zig", .pattern = "if (event_value == .app_shutdown) recorder.finish();" },
|
|
1187
2296
|
.{ .path = "src/platform/null_platform.zig", .pattern = "pub fn takeQueuedQuit" },
|
|
1188
2297
|
});
|
|
1189
2298
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-quit-pre-run-pending", "Verify a PRE-RUN quit verb on the macOS hosts parks as a pending flag drained at top level, never the inline emit (an inline pre-run emit nests the shutdown inside the boot dispatch that requested it — the recorder seals the journal before that dispatch commits, the same bug the running-path queue fixes)", &.{
|
|
@@ -1574,7 +2683,7 @@ pub fn build(b: *std.Build) void {
|
|
|
1574
2683
|
.{ .path = "src/platform/macos/appkit_host.h", .pattern = "uint64_t parent_id;" },
|
|
1575
2684
|
.{ .path = "src/platform/macos/root.zig", .pattern = ".parent_id = node.parent_id orelse 0" },
|
|
1576
2685
|
.{ .path = "src/platform/macos/appkit_host.m", .pattern = "element.accessibilityParent = parent;" },
|
|
1577
|
-
.{ .path = "src/platform/macos/appkit_host.m", .pattern = "
|
|
2686
|
+
.{ .path = "src/platform/macos/appkit_host.m", .pattern = "element.accessibilityChildren = elementsById[@(element.widgetId)] == element ? (childrenByParentId[@(element.widgetId)] ?: defaults.accessibilityChildren) : defaults.accessibilityChildren;" },
|
|
1578
2687
|
.{ .path = "src/platform/macos/appkit_host.m", .pattern = "return self.widgetAccessibilityRootElements ?: @[];" },
|
|
1579
2688
|
});
|
|
1580
2689
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-appkit-appearance-bridge", "Verify AppKit reports system light and dark appearance changes", &.{
|
|
@@ -1595,8 +2704,8 @@ pub fn build(b: *std.Build) void {
|
|
|
1595
2704
|
.{ .path = "src/platform/macos/cef_host.mm", .pattern = "for (NSInteger index = 0; index < control.segmentCount; index++) {\n [control setSelected:index == sourceSelected forSegment:index];\n }\n self.trayCallback" },
|
|
1596
2705
|
});
|
|
1597
2706
|
addFileContainsCheckStep(b, file_contains_checker, test_step, "test-docs-builtin-bridge-policy", "Verify bridge policy docs include guarded dialog commands", &.{
|
|
1598
|
-
.{ .path = "docs/
|
|
1599
|
-
.{ .path = "docs/
|
|
2707
|
+
.{ .path = "docs/content/docs/security.mdx", .pattern = ".{ .name = \"native-sdk.dialog.saveFile\"" },
|
|
2708
|
+
.{ .path = "docs/content/docs/bridge/builtin-commands.mdx", .pattern = ".{ .name = \"native-sdk.dialog.saveFile\"" },
|
|
1600
2709
|
});
|
|
1601
2710
|
|
|
1602
2711
|
addTestStep(b, "test-geometry", "Run geometry module tests", geometry_tests);
|
|
@@ -1609,7 +2718,49 @@ pub fn build(b: *std.Build) void {
|
|
|
1609
2718
|
addTestStep(b, "test-json", "Run JSON primitive tests", json_tests);
|
|
1610
2719
|
addTestStep(b, "test-app-runner-window-placement", "Run app-runner window placement decision tests", app_runner_window_placement_tests);
|
|
1611
2720
|
addTestStep(b, "test-canvas", "Run canvas display list tests", canvas_tests);
|
|
2721
|
+
addTestStep(b, "test-paragraph-transport", "Reject malformed copied paragraph plans", filteredTestArtifact(b, canvas_tests.root_module, "paragraph-transport-tests", &.{"paragraph copied transport"}));
|
|
2722
|
+
addTestStep(b, "test-markdown-image-boundary", "Verify exact registered-image markup boundaries", filteredTestArtifact(b, canvas_tests.root_module, "markdown-image-boundary-tests", &.{"Markdown image boundary"}));
|
|
1612
2723
|
addTestStep(b, "test-desktop", "Run Native SDK framework tests", desktop_tests);
|
|
2724
|
+
addTestStep(b, "test-component-consumers", "Verify menu pins recovery fallback and virtual-scroll consumers", filteredTestArtifact(b, desktop_mod, "component-consumer-tests", &.{
|
|
2725
|
+
"runtime.ui_app_tests.test.a declared context menu presents",
|
|
2726
|
+
"runtime.ui_app_tests.test.ui app dispatches native context menu",
|
|
2727
|
+
"runtime.ui_app_tests.test.a rebuild while the native menu",
|
|
2728
|
+
"runtime.ui_app_tests.test.context menu selection dispatches",
|
|
2729
|
+
"runtime.ui_app_tests.test.any superseding presentation",
|
|
2730
|
+
"runtime.ui_app_tests.test.rebuilds under an open menu",
|
|
2731
|
+
"runtime.ui_app_tests.test.a failing rebuild routed",
|
|
2732
|
+
"runtime.ui_app_tests.test.dismissing the menu after",
|
|
2733
|
+
"runtime.ui_app_tests.test.a selection whose update",
|
|
2734
|
+
"runtime.ui_app_tests.test.a menu presented while",
|
|
2735
|
+
"runtime.ui_app_tests.test.windowed virtual list scrolls",
|
|
2736
|
+
"runtime.ui_app_tests.test.component coordination",
|
|
2737
|
+
}));
|
|
2738
|
+
addTestStep(b, "test-ts-capability-records", "Verify complete TypeScript capability records and ownership", filteredTestArtifact(b, desktop_mod, "ts-capability-record-tests", &.{
|
|
2739
|
+
"named effect host applies policy admission slots cancellation routes and dropped terminal retirement",
|
|
2740
|
+
"runtime.ts_core_host.test.PTY name bindings",
|
|
2741
|
+
"runtime.ts_ui_app.test.web pane exact decimal",
|
|
2742
|
+
"runtime.ts_ui_app.test.TypeScript tween adapter",
|
|
2743
|
+
"runtime.ts_ui_app.test.lifecycle host consumes",
|
|
2744
|
+
"runtime.ui_app_tests.test.dispatch coordination",
|
|
2745
|
+
"runtime.ts_core_host_tests.test.complete subprocess records",
|
|
2746
|
+
"runtime.ts_core_host_tests.test.routed clipboard duplicates",
|
|
2747
|
+
"runtime.ts_core_host_tests.test.routed clipboard keys",
|
|
2748
|
+
"runtime.ts_core_host_tests.test.playback snapshot captures",
|
|
2749
|
+
"runtime.ts_core_host_tests.test.complete storage",
|
|
2750
|
+
"runtime.ts_core_host_tests.test.complete timers",
|
|
2751
|
+
"runtime.ts_core_host_tests.test.timer host applies policy",
|
|
2752
|
+
"runtime.ts_core_host_tests.test.delay host consumes compiled",
|
|
2753
|
+
"runtime.ts_core_host_tests.test.delay admission supplies",
|
|
2754
|
+
"runtime.ts_core_host_tests.test.media host consumes",
|
|
2755
|
+
"runtime.ts_core_host_tests.test.request host consumes",
|
|
2756
|
+
"runtime.ts_core_host_tests.test.file host consumes",
|
|
2757
|
+
"runtime.ts_core_host_tests.test.callback host consumes",
|
|
2758
|
+
"runtime.ts_core_host_tests.test.word image ABI",
|
|
2759
|
+
"runtime.ts_core_host_tests.test.image and named cancellation",
|
|
2760
|
+
}));
|
|
2761
|
+
addTestStep(b, "test-session-replay", "Run complete session codecs, recording, and replay tests", filteredTestArtifact(b, desktop_mod, "session-replay-tests", &.{
|
|
2762
|
+
"runtime.session_journal.test", "runtime.session_record.test", "runtime.session_tests.test", "runtime.session_replay.test", "runtime.host_event_pump.test",
|
|
2763
|
+
}));
|
|
1613
2764
|
for (desktop_test_shard_specs, desktop_test_shards) |spec, shard_tests| {
|
|
1614
2765
|
addTestStep(b, b.fmt("test-desktop-{s}", .{spec.name}), spec.description, shard_tests);
|
|
1615
2766
|
}
|
|
@@ -1631,6 +2782,7 @@ pub fn build(b: *std.Build) void {
|
|
|
1631
2782
|
addTestStep(b, "test-automation-protocol", "Run automation protocol tests", automation_protocol_tests);
|
|
1632
2783
|
addTestStep(b, "test-automation-cli", "Run native automate CLI tests", automation_cli_tests);
|
|
1633
2784
|
addTestStep(b, "test-markup-cli", "Run native markup CLI tests", markup_cli_tests);
|
|
2785
|
+
addTestStep(b, "test-skills-cli", "Run native skills CLI tests", skills_cli_tests);
|
|
1634
2786
|
addTestStep(b, "test-evals-cmdview", "Run the evals harness Cmd wire decoder tests", evals_cmdview_tests);
|
|
1635
2787
|
addTestStep(b, "test-tooling", "Run Native SDK tooling tests", tooling_tests);
|
|
1636
2788
|
addTestStep(b, "test-eject-components", "Run ejected-component widget-identity tests", eject_components_tests);
|
|
@@ -1749,6 +2901,7 @@ pub fn build(b: *std.Build) void {
|
|
|
1749
2901
|
b.step("test-examples-native-shard-3", "Run the third native-first example test shard"),
|
|
1750
2902
|
b.step("test-examples-native-shard-4", "Run the fourth native-first example test shard"),
|
|
1751
2903
|
};
|
|
2904
|
+
const ui_inbox_example_step = addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-ui-inbox", "Run ui builder inbox example tests", "examples/ui-inbox", .managed);
|
|
1752
2905
|
const native_example_steps = [_]*std.Build.Step{
|
|
1753
2906
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-command-app", "Run command app example tests", "examples/command-app", .owned),
|
|
1754
2907
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-native-shell", "Run native shell example tests", "examples/native-shell", .owned),
|
|
@@ -1757,13 +2910,16 @@ pub fn build(b: *std.Build) void {
|
|
|
1757
2910
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-gpu-dashboard", "Run GPU dashboard example tests", "examples/gpu-dashboard", .managed),
|
|
1758
2911
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-gpu-components", "Run GPU components example tests", "examples/gpu-components", .managed),
|
|
1759
2912
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-record-store", "Run record-store example tests", "examples/record-store", .managed),
|
|
2913
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-status-policy", "Run menu desk example tests", "examples/status-policy", .managed),
|
|
2914
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-hold-policy", "Run gesture lab example tests", "examples/hold-policy", .managed),
|
|
1760
2915
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-relational-notes", "Run relational notes example tests", "examples/relational-notes", .managed),
|
|
1761
|
-
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-
|
|
2916
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-effect-policy", "Run named effect policy example tests", "examples/effect-policy", .managed),
|
|
2917
|
+
ui_inbox_example_step,
|
|
1762
2918
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-kanban", "Run ui builder kanban example tests", "examples/kanban", .managed),
|
|
2919
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-typography", "Run typography and bundled font startup tests", "examples/typography", .managed),
|
|
1763
2920
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-habits", "Run markup habits example tests", "examples/habits", .managed),
|
|
1764
2921
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-soundboard", "Run soundboard example tests", "examples/soundboard", .managed),
|
|
1765
2922
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-video-player", "Run video player example tests", "examples/video-player", .managed),
|
|
1766
|
-
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-soundboard-ts", "Run soundboard-ts example tests", "examples/soundboard-ts", .managed),
|
|
1767
2923
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-voice-memo", "Run voice memo example tests", "examples/voice-memo", .managed),
|
|
1768
2924
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-deck", "Run deck example tests", "examples/deck", .managed),
|
|
1769
2925
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-markdown-viewer", "Run markdown viewer example tests", "examples/markdown-viewer", .managed),
|
|
@@ -1774,12 +2930,27 @@ pub fn build(b: *std.Build) void {
|
|
|
1774
2930
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-system-monitor", "Run system monitor example tests", "examples/system-monitor", .managed),
|
|
1775
2931
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-terminal", "Run terminal example tests", "examples/terminal", .owned),
|
|
1776
2932
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-workbench", "Run workbench example tests", "examples/workbench", .owned),
|
|
1777
|
-
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-system-monitor-ts", "Run system-monitor-ts example tests", "examples/system-monitor-ts", .managed),
|
|
1778
2933
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-effects-probe", "Run effects probe example tests", "examples/effects-probe", .managed),
|
|
1779
2934
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-channel-monitor", "Run channel monitor example tests", "examples/channel-monitor", .managed),
|
|
1780
2935
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-menu-bar", "Run menu-bar lifecycle example tests", "examples/menu-bar", .managed),
|
|
1781
2936
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-feed", "Run feed example tests", "examples/feed", .managed),
|
|
1782
2937
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-service-feed-reader", "Run TypeScript service feed-reader example tests", "examples/service-feed-reader", .managed),
|
|
2938
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-pipeline", "Run portable pipeline component example tests", "examples/pipeline", .managed),
|
|
2939
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-radio-policy", "Run portable radio policy example tests", "examples/radio-policy", .managed),
|
|
2940
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-tabs-policy", "Run portable tabs policy example tests", "examples/tabs-policy", .managed),
|
|
2941
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-tree-policy", "Run portable tree policy example tests", "examples/tree-policy", .managed),
|
|
2942
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-list-policy", "Run portable list policy example tests", "examples/list-policy", .managed),
|
|
2943
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-menu-policy", "Run portable menu policy example tests", "examples/menu-policy", .managed),
|
|
2944
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-toggle-policy", "Run portable toggle policy example tests", "examples/toggle-policy", .managed),
|
|
2945
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-accordion-policy", "Run portable accordion policy example tests", "examples/accordion-policy", .managed),
|
|
2946
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-checkable-policy", "Run portable checkable policy example tests", "examples/checkable-policy", .managed),
|
|
2947
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-slider-policy", "Run portable slider policy example tests", "examples/slider-policy", .managed),
|
|
2948
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-split-policy", "Run portable split policy example tests", "examples/split-policy", .managed),
|
|
2949
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-scroll-policy", "Run portable scroll policy example tests", "examples/scroll-policy", .managed),
|
|
2950
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-window-policy", "Run TypeScript window reconciliation example tests", "examples/window-policy", .managed),
|
|
2951
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-resizable-policy", "Run portable resizable policy example tests", "examples/resizable-policy", .managed),
|
|
2952
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-text-policy", "Run portable text policy example tests", "examples/text-policy", .managed),
|
|
2953
|
+
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-code-workbench", "Run TypeScript code workbench example tests", "examples/code-workbench", .managed),
|
|
1783
2954
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-canvas-preview", "Run canvas preview example tests", "examples/canvas-preview", .managed),
|
|
1784
2955
|
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-capabilities", "Run capabilities example tests", "examples/capabilities", .owned),
|
|
1785
2956
|
};
|
|
@@ -1789,6 +2960,16 @@ pub fn build(b: *std.Build) void {
|
|
|
1789
2960
|
for (native_example_steps, 0..) |example_step, index| {
|
|
1790
2961
|
native_example_shard_steps[index % native_example_shard_steps.len].dependOn(example_step);
|
|
1791
2962
|
}
|
|
2963
|
+
if (b.graph.host.result.os.tag == .macos) {
|
|
2964
|
+
// The optimized test and model-contract links retain AppKit's C host
|
|
2965
|
+
// without analyzing the app's runtime entry point.
|
|
2966
|
+
const optimized_ui_inbox = managedExampleRun(b, host_cli_exe, &.{ "test", "-Doptimize=ReleaseFast", "-Dplatform=macos" });
|
|
2967
|
+
optimized_ui_inbox.setCwd(b.path("examples/ui-inbox"));
|
|
2968
|
+
optimized_ui_inbox.step.dependOn(ui_inbox_example_step);
|
|
2969
|
+
const optimized_step = b.step("test-example-ui-inbox-macos-optimized", "Link optimized macOS app tests and model contract against AppKit");
|
|
2970
|
+
optimized_step.dependOn(&optimized_ui_inbox.step);
|
|
2971
|
+
native_examples_step.dependOn(optimized_step);
|
|
2972
|
+
}
|
|
1792
2973
|
// Keep this companion check in the same shard as capabilities. The
|
|
1793
2974
|
// aggregate step depends on every shard, so `test-examples-native`
|
|
1794
2975
|
// retains exactly the same coverage as before.
|
|
@@ -2410,12 +3591,12 @@ pub fn build(b: *std.Build) void {
|
|
|
2410
3591
|
\\provenance="$("$cli" automate provenance kanban-canvas "$button_id" 2>/dev/null)"
|
|
2411
3592
|
\\case "$provenance" in *"authored=markup"*"root=src/app.native"*) ;; *) echo "writeback smoke: button provenance was not markup-authored: $provenance" >&2; exit 1 ;; esac
|
|
2412
3593
|
\\case "$provenance" in *"node file=src/app.native"*) ;; *) echo "writeback smoke: button provenance named the wrong file: $provenance" >&2; exit 1 ;; esac
|
|
2413
|
-
\\# 2.
|
|
2414
|
-
\\#
|
|
3594
|
+
\\# 2. Imported-loop provenance: a card title reports its authored
|
|
3595
|
+
\\# component file plus its iteration key.
|
|
2415
3596
|
\\card_id="$(printf '%s\n' "$snapshot" | sed -n 's/.*widget @w1\/kanban-canvas#\([0-9][0-9]*\) role=text name="Retry failed agent runs".*/\1/p' | head -n 1)"
|
|
2416
3597
|
\\case "$card_id" in ''|*[!0-9]*) echo "writeback smoke: card text id was missing from the snapshot" >&2; exit 1 ;; esac
|
|
2417
3598
|
\\card_provenance="$("$cli" automate provenance kanban-canvas "$card_id" 2>/dev/null)"
|
|
2418
|
-
\\case "$card_provenance" in *"node file=src/
|
|
3599
|
+
\\case "$card_provenance" in *"node file=src/components/board-column.native"*) ;; *) echo "writeback smoke: card provenance named the wrong file: $card_provenance" >&2; exit 1 ;; esac
|
|
2419
3600
|
\\case "$card_provenance" in *"keys="*) ;; *) echo "writeback smoke: card provenance missed the iteration key: $card_provenance" >&2; exit 1 ;; esac
|
|
2420
3601
|
\\# 3. Write-back: flip the Todo heading through the verb; the app's own
|
|
2421
3602
|
\\# hot-reload watch picks the file change up and repaints.
|
|
@@ -2741,6 +3922,7 @@ pub fn build(b: *std.Build) void {
|
|
|
2741
3922
|
canvas_preview_smoke_step.dependOn(&canvas_preview_smoke_run.step);
|
|
2742
3923
|
|
|
2743
3924
|
const gpu_components_smoke_step = b.step("test-gpu-components-smoke", "Run the TypeScript component gallery automation smoke test");
|
|
3925
|
+
if (appkit_accessibility_step) |accessibility_step| gpu_components_smoke_step.dependOn(accessibility_step);
|
|
2744
3926
|
const gpu_components_smoke_build = managedExampleRun(b, cli_exe, &.{ "build", "-Dplatform=macos", "-Dweb-engine=system", "-Dautomation=true", "-Doptimize=Debug" });
|
|
2745
3927
|
gpu_components_smoke_build.setCwd(b.path("examples/gpu-components"));
|
|
2746
3928
|
const gpu_components_smoke_run = b.addSystemCommand(&.{
|
|
@@ -2762,7 +3944,13 @@ pub fn build(b: *std.Build) void {
|
|
|
2762
3944
|
\\widget_id() {
|
|
2763
3945
|
\\ role="$1"
|
|
2764
3946
|
\\ name="$2"
|
|
2765
|
-
\\
|
|
3947
|
+
\\ lookup_attempts=0
|
|
3948
|
+
\\ while [ "$lookup_attempts" -lt 50 ]; do
|
|
3949
|
+
\\ id="$(sed -n "s/.*widget @w1\\/components-canvas#\\([0-9][0-9]*\\) role=$role name=\\\"$name\\\".*/\\1/p" "$snapshot" | head -1)"
|
|
3950
|
+
\\ case "$id" in ''|*[!0-9]*) ;; *) printf '%s\n' "$id"; return ;; esac
|
|
3951
|
+
\\ lookup_attempts=$((lookup_attempts + 1))
|
|
3952
|
+
\\ sleep 0.1
|
|
3953
|
+
\\ done
|
|
2766
3954
|
\\}
|
|
2767
3955
|
\\attempts=0
|
|
2768
3956
|
\\while [ "$attempts" -lt 50 ]; do
|
|
@@ -3166,6 +4354,18 @@ pub fn build(b: *std.Build) void {
|
|
|
3166
4354
|
cef_bundle_script.step.dependOn(&cef_bundle_auto.step);
|
|
3167
4355
|
}
|
|
3168
4356
|
cef_bundle_step.dependOn(&cef_bundle_script.step);
|
|
4357
|
+
|
|
4358
|
+
// Partition only after every test root has been registered. New suites
|
|
4359
|
+
// automatically enter both the full local test command and a CI shard.
|
|
4360
|
+
const core_test_shards = [_]*std.Build.Step{
|
|
4361
|
+
b.step("test-core-shard-1", "Run complete root test shard 1 of 6"),
|
|
4362
|
+
b.step("test-core-shard-2", "Run complete root test shard 2 of 6"),
|
|
4363
|
+
b.step("test-core-shard-3", "Run complete root test shard 3 of 6"),
|
|
4364
|
+
b.step("test-core-shard-4", "Run complete root test shard 4 of 6"),
|
|
4365
|
+
b.step("test-core-shard-5", "Run complete root test shard 5 of 6"),
|
|
4366
|
+
b.step("test-core-shard-6", "Run complete root test shard 6 of 6"),
|
|
4367
|
+
};
|
|
4368
|
+
test_shards.partition(test_step, &core_test_shards);
|
|
3169
4369
|
}
|
|
3170
4370
|
|
|
3171
4371
|
fn sqliteCompileFlags() []const []const u8 {
|
|
@@ -3189,6 +4389,71 @@ fn module(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin
|
|
|
3189
4389
|
});
|
|
3190
4390
|
}
|
|
3191
4391
|
|
|
4392
|
+
/// A copy of `source` with `suffix` appended, read when the step runs.
|
|
4393
|
+
/// Test fixtures use this instead of `@embedFile`, which runs whenever
|
|
4394
|
+
/// build.zig compiles and so needs the file in every checkout of this
|
|
4395
|
+
/// package, including the published one that leaves `tests/` out.
|
|
4396
|
+
fn sourceWithSuffix(b: *std.Build, source: std.Build.LazyPath, suffix: []const u8, basename: []const u8) std.Build.LazyPath {
|
|
4397
|
+
const file = b.allocator.create(SourceWithSuffix) catch @panic("OOM");
|
|
4398
|
+
file.* = .{
|
|
4399
|
+
.step = std.Build.Step.init(.{
|
|
4400
|
+
.id = .custom,
|
|
4401
|
+
.name = b.fmt("append to {s}", .{basename}),
|
|
4402
|
+
.owner = b,
|
|
4403
|
+
.makeFn = SourceWithSuffix.make,
|
|
4404
|
+
}),
|
|
4405
|
+
.source = source.dupe(b),
|
|
4406
|
+
.suffix = b.dupe(suffix),
|
|
4407
|
+
.basename = b.dupePath(basename),
|
|
4408
|
+
.generated = undefined,
|
|
4409
|
+
};
|
|
4410
|
+
file.generated = .{ .step = &file.step };
|
|
4411
|
+
source.addStepDependencies(&file.step);
|
|
4412
|
+
return .{ .generated = .{ .file = &file.generated } };
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4415
|
+
const SourceWithSuffix = struct {
|
|
4416
|
+
step: std.Build.Step,
|
|
4417
|
+
source: std.Build.LazyPath,
|
|
4418
|
+
suffix: []const u8,
|
|
4419
|
+
basename: []const u8,
|
|
4420
|
+
generated: std.Build.GeneratedFile,
|
|
4421
|
+
|
|
4422
|
+
fn make(step: *std.Build.Step, options: std.Build.Step.MakeOptions) !void {
|
|
4423
|
+
_ = options;
|
|
4424
|
+
const self: *SourceWithSuffix = @fieldParentPtr("step", step);
|
|
4425
|
+
const b = step.owner;
|
|
4426
|
+
const io = b.graph.io;
|
|
4427
|
+
const arena = b.allocator;
|
|
4428
|
+
try step.singleUnchangingWatchInput(self.source);
|
|
4429
|
+
const source_path = self.source.getPath3(b, step);
|
|
4430
|
+
const source = source_path.root_dir.handle.readFileAlloc(io, source_path.sub_path, arena, .limited(16 * 1024 * 1024)) catch |err|
|
|
4431
|
+
return step.fail("cannot read {f}: {t}", .{ source_path, err });
|
|
4432
|
+
const bytes = try std.mem.concat(arena, u8, &.{ source, self.suffix });
|
|
4433
|
+
|
|
4434
|
+
var digest: [std.crypto.hash.sha2.Sha256.digest_length]u8 = undefined;
|
|
4435
|
+
std.crypto.hash.sha2.Sha256.hash(bytes, &digest, .{});
|
|
4436
|
+
const hex = std.fmt.bytesToHex(digest, .lower);
|
|
4437
|
+
const output_dir = b.pathJoin(&.{ "o", "native-suffixed", &hex });
|
|
4438
|
+
const output_path = b.pathJoin(&.{ output_dir, self.basename });
|
|
4439
|
+
self.generated.path = try b.cache_root.join(arena, &.{output_path});
|
|
4440
|
+
|
|
4441
|
+
if (b.cache_root.handle.access(io, output_path, .{})) |_| {
|
|
4442
|
+
step.result_cached = true;
|
|
4443
|
+
return;
|
|
4444
|
+
} else |_| {}
|
|
4445
|
+
b.cache_root.handle.createDirPath(io, output_dir) catch |err|
|
|
4446
|
+
return step.fail("cannot create the output directory for {s}: {t}", .{ self.basename, err });
|
|
4447
|
+
var atomic = b.cache_root.handle.createFileAtomic(io, output_path, .{ .replace = true }) catch |err|
|
|
4448
|
+
return step.fail("cannot stage {s}: {t}", .{ self.basename, err });
|
|
4449
|
+
defer atomic.deinit(io);
|
|
4450
|
+
atomic.file.writeStreamingAll(io, bytes) catch |err|
|
|
4451
|
+
return step.fail("cannot write {s}: {t}", .{ self.basename, err });
|
|
4452
|
+
atomic.replace(io) catch |err|
|
|
4453
|
+
return step.fail("cannot publish {s}: {t}", .{ self.basename, err });
|
|
4454
|
+
}
|
|
4455
|
+
};
|
|
4456
|
+
|
|
3192
4457
|
/// The framework module's `terminal_vt` import for THIS repository's own
|
|
3193
4458
|
/// builds: always the stub. The emulator (libghostty-vt) is pinned by
|
|
3194
4459
|
/// the APPS that want live `<terminal>` sessions, never by this package
|
|
@@ -3218,7 +4483,7 @@ fn testArtifact(b: *std.Build, mod: *std.Build.Module) *std.Build.Step.Compile {
|
|
|
3218
4483
|
}
|
|
3219
4484
|
|
|
3220
4485
|
/// The two transpiled-core end-to-end test binaries: the host/markup
|
|
3221
|
-
/// fixture suite (tests/ts-core) and the soundboard
|
|
4486
|
+
/// fixture suite (tests/ts-core) and the soundboard example suite —
|
|
3222
4487
|
/// the launch-gate port driven as a REAL app (its committed core, its
|
|
3223
4488
|
/// shipping markup). Each runs the @native-sdk/core transpiler (node)
|
|
3224
4489
|
/// over the TS core at build time, pairs the emitted core with its rt
|
|
@@ -3227,13 +4492,58 @@ fn testArtifact(b: *std.Build, mod: *std.Build.Module) *std.Build.Step.Compile {
|
|
|
3227
4492
|
/// skipped, not failed — when node or the transpiler package's
|
|
3228
4493
|
/// installed dependency (`npm ci` in packages/core) is missing.
|
|
3229
4494
|
const TsCoreE2eArtifacts = struct {
|
|
4495
|
+
corewire: *std.Build.Step.Compile,
|
|
4496
|
+
profile_archive: std.Build.LazyPath,
|
|
3230
4497
|
host: *std.Build.Step.Compile,
|
|
3231
4498
|
persist: *std.Build.Step.Compile,
|
|
4499
|
+
construction: *std.Build.Step.Compile,
|
|
4500
|
+
markdown_content: *std.Build.Step.Compile,
|
|
4501
|
+
widget_audits: *std.Build.Step.Compile,
|
|
4502
|
+
widget_routing: *std.Build.Step.Compile,
|
|
4503
|
+
widget_changes: *std.Build.Step.Compile,
|
|
4504
|
+
widget_presentation: *std.Build.Step.Compile,
|
|
4505
|
+
widget_paint_walk: *std.Build.Step.Compile,
|
|
4506
|
+
control_geometry: *std.Build.Step.Compile,
|
|
4507
|
+
control_content: *std.Build.Step.Compile,
|
|
4508
|
+
surface_recipes: *std.Build.Step.Compile,
|
|
4509
|
+
widget_metrics: *std.Build.Step.Compile,
|
|
4510
|
+
motion: *std.Build.Step.Compile,
|
|
4511
|
+
composition: *std.Build.Step.Compile,
|
|
4512
|
+
composition_view: *std.Build.Step.Compile,
|
|
4513
|
+
composition_app: *std.Build.Step.Compile,
|
|
4514
|
+
view_reload: *std.Build.Step.Compile,
|
|
4515
|
+
view_provenance: *std.Build.Step.Compile,
|
|
4516
|
+
code_app: *std.Build.Step.Compile,
|
|
4517
|
+
code_view: *std.Build.Step.Compile,
|
|
4518
|
+
chart_app: *std.Build.Step.Compile,
|
|
4519
|
+
chart_view: *std.Build.Step.Compile,
|
|
4520
|
+
markdown_app: *std.Build.Step.Compile,
|
|
4521
|
+
markdown_view: *std.Build.Step.Compile,
|
|
3232
4522
|
/// The markup battery is its own binary: the compiled-core symbol
|
|
3233
4523
|
/// set is a fixed-prefix C ABI, so one process carries ONE archive
|
|
3234
4524
|
/// — every fixture battery links exactly its own core.
|
|
3235
4525
|
markup: *std.Build.Step.Compile,
|
|
3236
4526
|
kanban: *std.Build.Step.Compile,
|
|
4527
|
+
habits: *std.Build.Step.Compile,
|
|
4528
|
+
inbox: *std.Build.Step.Compile,
|
|
4529
|
+
effects_probe: *std.Build.Step.Compile,
|
|
4530
|
+
notes: *std.Build.Step.Compile,
|
|
4531
|
+
code_editor: *std.Build.Step.Compile,
|
|
4532
|
+
channel_monitor: *std.Build.Step.Compile,
|
|
4533
|
+
gpu_dashboard: *std.Build.Step.Compile,
|
|
4534
|
+
canvas_layers: *std.Build.Step.Compile,
|
|
4535
|
+
audio_exact: *std.Build.Step.Compile,
|
|
4536
|
+
global_shortcut: *std.Build.Step.Compile,
|
|
4537
|
+
spawn_exact: *std.Build.Step.Compile,
|
|
4538
|
+
keyboard_input: *std.Build.Step.Compile,
|
|
4539
|
+
boot_images: *std.Build.Step.Compile,
|
|
4540
|
+
deck: *std.Build.Step.Compile,
|
|
4541
|
+
markdown_viewer: *std.Build.Step.Compile,
|
|
4542
|
+
split_collapse: *std.Build.Step.Compile,
|
|
4543
|
+
feed: *std.Build.Step.Compile,
|
|
4544
|
+
workbench: *std.Build.Step.Compile,
|
|
4545
|
+
video_player: *std.Build.Step.Compile,
|
|
4546
|
+
canvas_preview: *std.Build.Step.Compile,
|
|
3237
4547
|
soundboard: *std.Build.Step.Compile,
|
|
3238
4548
|
system_monitor: *std.Build.Step.Compile,
|
|
3239
4549
|
/// The stock-IDE contract: a fresh scaffold (and the committed TS
|
|
@@ -3245,6 +4555,11 @@ const TsCoreE2eArtifacts = struct {
|
|
|
3245
4555
|
/// loopback Cmd.fetch, the generated typed client into a real service
|
|
3246
4556
|
/// child, the shipping markup, and record→replay without either.
|
|
3247
4557
|
feed_reader: *std.Build.Step.Compile,
|
|
4558
|
+
journal_codecs: *std.Build.Step.Compile,
|
|
4559
|
+
shell_layout: *std.Build.Step.Compile,
|
|
4560
|
+
surface_layout: *std.Build.Step.Compile,
|
|
4561
|
+
virtual_fixed: *std.Build.Step.Compile,
|
|
4562
|
+
typography: *std.Build.Step.Compile,
|
|
3248
4563
|
/// The phase-1 service seam: a real compiled core plus a real plain-scriptc
|
|
3249
4564
|
/// service executable driven through the out-of-process carrier.
|
|
3250
4565
|
services: *std.Build.Step.Compile,
|
|
@@ -3276,6 +4591,7 @@ const TsCoreE2eArtifacts = struct {
|
|
|
3276
4591
|
/// (boot fence, collect invariant, deterministic re-init, channel
|
|
3277
4592
|
/// envelopes, integer classes).
|
|
3278
4593
|
external_core_abi_laws: *std.Build.Step.Compile,
|
|
4594
|
+
external_core_trap: *std.Build.Step.Compile,
|
|
3279
4595
|
/// The mixed-return ABI regression: a real compiled core whose update
|
|
3280
4596
|
/// returns both bare Model and [Model, Cmd] through the generated facade.
|
|
3281
4597
|
mixed_return_abi_laws: *std.Build.Step.Compile,
|
|
@@ -3300,6 +4616,7 @@ fn tsCoreE2eArtifact(
|
|
|
3300
4616
|
tooling_mod: *std.Build.Module,
|
|
3301
4617
|
) ?TsCoreE2eArtifacts {
|
|
3302
4618
|
const node = b.findProgram(&.{"node"}, &.{}) catch return null;
|
|
4619
|
+
const build_trace = b.option(bool, "build-trace", "Trace generated TypeScript ABI artifacts and cache reuse") orelse false;
|
|
3303
4620
|
// Both toolchains arrive with one `npm ci` in packages/core: the
|
|
3304
4621
|
// frontend's TypeScript compiler and the external core compiler
|
|
3305
4622
|
// (unless NATIVE_SDK_CORE_COMPILER points at the pinned release's
|
|
@@ -3312,7 +4629,7 @@ fn tsCoreE2eArtifact(
|
|
|
3312
4629
|
if (b.graph.environ_map.get("NATIVE_SDK_CORE_COMPILER") == null) {
|
|
3313
4630
|
b.build_root.handle.access(
|
|
3314
4631
|
b.graph.io,
|
|
3315
|
-
|
|
4632
|
+
repositoryScriptcInstallMarker(b),
|
|
3316
4633
|
.{},
|
|
3317
4634
|
) catch return null;
|
|
3318
4635
|
}
|
|
@@ -3326,6 +4643,8 @@ fn tsCoreE2eArtifact(
|
|
|
3326
4643
|
.target = b.graph.host,
|
|
3327
4644
|
.optimize = optimize,
|
|
3328
4645
|
});
|
|
4646
|
+
const profile_archive = @import("build/corewire.zig").profileArchive(b, b, node);
|
|
4647
|
+
@import("build/corewire.zig").linkProfile(corewire_mod, profile_archive);
|
|
3329
4648
|
const corewire_exe = b.addExecutable(.{
|
|
3330
4649
|
.name = "corewire",
|
|
3331
4650
|
.root_module = corewire_mod,
|
|
@@ -3341,7 +4660,7 @@ fn tsCoreE2eArtifact(
|
|
|
3341
4660
|
// compile-source directories.
|
|
3342
4661
|
const host_src = b.addWriteFiles();
|
|
3343
4662
|
_ = host_src.addCopyFile(b.path("tests/ts-core/fixture.ts"), "fixture.ts");
|
|
3344
|
-
const host_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
4663
|
+
const host_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
3345
4664
|
.entry = "tests/ts-core/fixture.ts",
|
|
3346
4665
|
.src_dir = host_src.getDirectory(),
|
|
3347
4666
|
.name = "host_fixture_core",
|
|
@@ -3356,18 +4675,140 @@ fn tsCoreE2eArtifact(
|
|
|
3356
4675
|
const fixture_mod = host_fixture.module;
|
|
3357
4676
|
const persist_src = b.addWriteFiles();
|
|
3358
4677
|
_ = persist_src.addCopyFile(b.path("tests/ts-core/persist_fixture.ts"), "persist_fixture.ts");
|
|
3359
|
-
const persist_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
4678
|
+
const persist_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
3360
4679
|
.entry = "tests/ts-core/persist_fixture.ts",
|
|
3361
4680
|
.src_dir = persist_src.getDirectory(),
|
|
3362
4681
|
.name = "persist_fixture_core",
|
|
3363
4682
|
.persist_capability = true,
|
|
4683
|
+
.typescript_view = true,
|
|
4684
|
+
.view_markup = "tests/ts-core/persist_fixture.native",
|
|
3364
4685
|
});
|
|
3365
4686
|
const persist_mod = module(b, target, optimize, "tests/ts-core/persist_e2e_tests.zig");
|
|
3366
4687
|
persist_mod.addImport("native_sdk", desktop_mod);
|
|
3367
4688
|
persist_mod.addImport("ts_persist_core", persist_fixture.module);
|
|
4689
|
+
const composition_decoder_mod = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4690
|
+
composition_decoder_mod.addImport("native_sdk", desktop_mod);
|
|
4691
|
+
composition_decoder_mod.addImport("core.zig", persist_fixture.module);
|
|
4692
|
+
persist_mod.addImport("persist_decoder", composition_decoder_mod);
|
|
4693
|
+
const composition_src = b.addWriteFiles();
|
|
4694
|
+
_ = composition_src.addCopyFile(b.path("tests/ts-core/composition_fixture.ts"), "composition_fixture.ts");
|
|
4695
|
+
const composition_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4696
|
+
.entry = "tests/ts-core/composition_fixture.ts",
|
|
4697
|
+
.src_dir = composition_src.getDirectory(),
|
|
4698
|
+
.name = "composition_fixture_core",
|
|
4699
|
+
.persist_capability = true,
|
|
4700
|
+
.typescript_view = true,
|
|
4701
|
+
.view_markup = "tests/ts-core/composition_fixture.native",
|
|
4702
|
+
});
|
|
4703
|
+
const composition_app_mod = module(b, target, optimize, "tests/ts-core/composition_app_e2e_tests.zig");
|
|
4704
|
+
composition_app_mod.addImport("native_sdk", desktop_mod);
|
|
4705
|
+
composition_app_mod.addImport("composition_core", composition_fixture.module);
|
|
4706
|
+
const composition_app_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4707
|
+
composition_app_decoder.addImport("native_sdk", desktop_mod);
|
|
4708
|
+
composition_app_decoder.addImport("core.zig", composition_fixture.module);
|
|
4709
|
+
composition_app_mod.addImport("composition_decoder", composition_app_decoder);
|
|
4710
|
+
const view_reload_src = b.addWriteFiles();
|
|
4711
|
+
_ = view_reload_src.addCopyFile(b.path("tests/ts-core/view_reload/core.ts"), "core.ts");
|
|
4712
|
+
const view_reload_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4713
|
+
.entry = "tests/ts-core/view_reload/core.ts",
|
|
4714
|
+
.src_dir = view_reload_src.getDirectory(),
|
|
4715
|
+
.name = "view_reload_fixture_core",
|
|
4716
|
+
.typescript_view = true,
|
|
4717
|
+
.view_markup = "tests/ts-core/view_reload/app.native",
|
|
4718
|
+
.view_reload = true,
|
|
4719
|
+
});
|
|
4720
|
+
// The updates a markup watcher writes for this fixture's edits.
|
|
4721
|
+
const view_reload_updates = b.addSystemCommand(&.{node});
|
|
4722
|
+
view_reload_updates.addFileArg(b.path("tests/ts-core/view_reload_updates.ts"));
|
|
4723
|
+
view_reload_updates.addArg("--contract");
|
|
4724
|
+
view_reload_updates.addFileArg(view_reload_fixture.contract);
|
|
4725
|
+
view_reload_updates.addArg("--markup");
|
|
4726
|
+
view_reload_updates.addDirectoryArg(b.path("tests/ts-core/view_reload"));
|
|
4727
|
+
for ([_][]const u8{ "app.native", "edited.native", "broken.native" }) |name| view_reload_updates.addFileInput(b.path(b.fmt("tests/ts-core/view_reload/{s}", .{name})));
|
|
4728
|
+
@import("build/app.zig").addViewFrontendInputs(b, b, view_reload_updates);
|
|
4729
|
+
@import("build/app.zig").addViewReloadInputs(b, view_reload_updates);
|
|
4730
|
+
view_reload_updates.addArg("--out");
|
|
4731
|
+
const view_reload_updates_dir = view_reload_updates.addOutputDirectoryArg("view-reload-updates");
|
|
4732
|
+
const view_reload_options = b.addOptions();
|
|
4733
|
+
view_reload_options.addOptionPath("updates_dir", view_reload_updates_dir);
|
|
4734
|
+
const view_reload_mod = module(b, target, optimize, "tests/ts-core/view_reload_e2e_tests.zig");
|
|
4735
|
+
view_reload_mod.addImport("native_sdk", desktop_mod);
|
|
4736
|
+
view_reload_mod.addImport("view_reload_core", view_reload_fixture.module);
|
|
4737
|
+
view_reload_mod.addImport("view_reload_updates", view_reload_options.createModule());
|
|
4738
|
+
const view_reload_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4739
|
+
view_reload_decoder.addImport("native_sdk", desktop_mod);
|
|
4740
|
+
view_reload_decoder.addImport("core.zig", view_reload_fixture.module);
|
|
4741
|
+
view_reload_mod.addImport("view_reload_decoder", view_reload_decoder);
|
|
4742
|
+
const view_provenance_mod = module(b, target, optimize, "tests/ts-core/view_provenance_e2e_tests.zig");
|
|
4743
|
+
view_provenance_mod.addImport("native_sdk", desktop_mod);
|
|
4744
|
+
view_provenance_mod.addImport("view_reload_core", view_reload_fixture.module);
|
|
4745
|
+
view_provenance_mod.addImport("view_reload_decoder", view_reload_decoder);
|
|
4746
|
+
const code_src = b.addWriteFiles();
|
|
4747
|
+
_ = code_src.addCopyFile(b.path("tests/ts-core/code_fixture.ts"), "code_fixture.ts");
|
|
4748
|
+
const code_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4749
|
+
.entry = "tests/ts-core/code_fixture.ts",
|
|
4750
|
+
.src_dir = code_src.getDirectory(),
|
|
4751
|
+
.name = "code_fixture_core",
|
|
4752
|
+
.persist_capability = true,
|
|
4753
|
+
.typescript_view = true,
|
|
4754
|
+
.view_markup = "tests/ts-core/code_fixture.native",
|
|
4755
|
+
});
|
|
4756
|
+
const code_app_mod = module(b, target, optimize, "tests/ts-core/code_app_e2e_tests.zig");
|
|
4757
|
+
code_app_mod.addImport("native_sdk", desktop_mod);
|
|
4758
|
+
code_app_mod.addImport("code_core", code_fixture.module);
|
|
4759
|
+
const code_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4760
|
+
code_decoder.addImport("native_sdk", desktop_mod);
|
|
4761
|
+
code_decoder.addImport("core.zig", code_fixture.module);
|
|
4762
|
+
code_app_mod.addImport("code_decoder", code_decoder);
|
|
4763
|
+
const chart_src = b.addWriteFiles();
|
|
4764
|
+
_ = chart_src.addCopyFile(b.path("tests/ts-core/chart_fixture.ts"), "chart_fixture.ts");
|
|
4765
|
+
const chart_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4766
|
+
.entry = "tests/ts-core/chart_fixture.ts",
|
|
4767
|
+
.src_dir = chart_src.getDirectory(),
|
|
4768
|
+
.name = "chart_fixture_core",
|
|
4769
|
+
.persist_capability = true,
|
|
4770
|
+
.typescript_view = true,
|
|
4771
|
+
.view_markup = "tests/ts-core/chart_fixture.native",
|
|
4772
|
+
});
|
|
4773
|
+
const chart_app_mod = module(b, target, optimize, "tests/ts-core/chart_app_e2e_tests.zig");
|
|
4774
|
+
chart_app_mod.addImport("native_sdk", desktop_mod);
|
|
4775
|
+
chart_app_mod.addImport("chart_core", chart_fixture.module);
|
|
4776
|
+
const chart_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4777
|
+
chart_decoder.addImport("native_sdk", desktop_mod);
|
|
4778
|
+
chart_decoder.addImport("core.zig", chart_fixture.module);
|
|
4779
|
+
chart_app_mod.addImport("chart_decoder", chart_decoder);
|
|
4780
|
+
const markdown_src = b.addWriteFiles();
|
|
4781
|
+
_ = markdown_src.addCopyFile(b.path("tests/ts-core/markdown_fixture.ts"), "markdown_fixture.ts");
|
|
4782
|
+
const markdown_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4783
|
+
.entry = "tests/ts-core/markdown_fixture.ts",
|
|
4784
|
+
.src_dir = markdown_src.getDirectory(),
|
|
4785
|
+
.name = "markdown_fixture_core",
|
|
4786
|
+
.persist_capability = true,
|
|
4787
|
+
.typescript_view = true,
|
|
4788
|
+
.view_markup = "tests/ts-core/markdown_fixture.native",
|
|
4789
|
+
});
|
|
4790
|
+
const markdown_app_mod = module(b, target, optimize, "tests/ts-core/markdown_app_e2e_tests.zig");
|
|
4791
|
+
markdown_app_mod.addImport("native_sdk", desktop_mod);
|
|
4792
|
+
markdown_app_mod.addImport("markdown_core", markdown_fixture.module);
|
|
4793
|
+
markdown_app_mod.addImport("corewire_rt", module(b, target, optimize, "tools/corewire/shim_rt.zig"));
|
|
4794
|
+
const markdown_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4795
|
+
markdown_decoder.addImport("native_sdk", desktop_mod);
|
|
4796
|
+
markdown_decoder.addImport("core.zig", markdown_fixture.module);
|
|
4797
|
+
markdown_app_mod.addImport("markdown_decoder", markdown_decoder);
|
|
4798
|
+
const lifecycle_reference_files = b.addWriteFiles();
|
|
4799
|
+
persist_mod.addImport("lifecycle_policy_reference", b.createModule(.{
|
|
4800
|
+
.root_source_file = lifecycle_reference_files.addCopyFile(b.path("src/runtime/lifecycle_policy_test_reference.zig"), "lifecycle_policy_reference.zig"),
|
|
4801
|
+
.target = target,
|
|
4802
|
+
.optimize = optimize,
|
|
4803
|
+
}));
|
|
4804
|
+
persist_mod.addImport("dispatch_policy_reference", b.createModule(.{
|
|
4805
|
+
.root_source_file = lifecycle_reference_files.addCopyFile(b.path("src/runtime/app_dispatch_policy.zig"), "dispatch_policy_reference.zig"),
|
|
4806
|
+
.target = target,
|
|
4807
|
+
.optimize = optimize,
|
|
4808
|
+
}));
|
|
3368
4809
|
const markup_src = b.addWriteFiles();
|
|
3369
4810
|
_ = markup_src.addCopyFile(b.path("tests/ts-core/markup_fixture.ts"), "markup_fixture.ts");
|
|
3370
|
-
const markup_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
4811
|
+
const markup_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
3371
4812
|
.entry = "tests/ts-core/markup_fixture.ts",
|
|
3372
4813
|
.src_dir = markup_src.getDirectory(),
|
|
3373
4814
|
.name = "markup_core",
|
|
@@ -3375,7 +4816,7 @@ fn tsCoreE2eArtifact(
|
|
|
3375
4816
|
const markup_fixture_mod = markup_fixture.module;
|
|
3376
4817
|
const mixed_return_src = b.addWriteFiles();
|
|
3377
4818
|
_ = mixed_return_src.addCopyFile(b.path("tests/ts-core/mixed_return_fixture.ts"), "mixed_return_fixture.ts");
|
|
3378
|
-
const mixed_return_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
4819
|
+
const mixed_return_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
3379
4820
|
.entry = "tests/ts-core/mixed_return_fixture.ts",
|
|
3380
4821
|
.src_dir = mixed_return_src.getDirectory(),
|
|
3381
4822
|
.name = "mixed_return_core",
|
|
@@ -3385,16 +4826,24 @@ fn tsCoreE2eArtifact(
|
|
|
3385
4826
|
e2e_mod.addImport("native_sdk", desktop_mod);
|
|
3386
4827
|
e2e_mod.addImport("ts_core_fixture", fixture_mod);
|
|
3387
4828
|
|
|
3388
|
-
// The markup battery: the .native view + automation +
|
|
3389
|
-
// guarantees over the markup fixture's compiled core.
|
|
3390
|
-
const
|
|
4829
|
+
// The markup battery: the imported .native view + automation +
|
|
4830
|
+
// record/replay guarantees over the markup fixture's compiled core.
|
|
4831
|
+
const markup_view_stage = b.addWriteFiles();
|
|
4832
|
+
const markup_view_root = markup_view_stage.addCopyFile(b.path("tests/ts-core/markup_e2e_tests.zig"), "markup_e2e_tests.zig");
|
|
4833
|
+
_ = markup_view_stage.addCopyFile(b.path("tests/ts-core/markup_view.native"), "markup_view.native");
|
|
4834
|
+
_ = markup_view_stage.addCopyFile(b.path("tests/ts-core/components/actions.native"), "components/actions.native");
|
|
4835
|
+
const markup_e2e_mod = b.createModule(.{
|
|
4836
|
+
.root_source_file = markup_view_root,
|
|
4837
|
+
.target = target,
|
|
4838
|
+
.optimize = optimize,
|
|
4839
|
+
});
|
|
3391
4840
|
markup_e2e_mod.addImport("native_sdk", desktop_mod);
|
|
3392
4841
|
markup_e2e_mod.addImport("ts_markup_fixture", markup_fixture_mod);
|
|
3393
4842
|
|
|
3394
4843
|
// The rewritten Kanban example's real TypeScript core and self-contained
|
|
3395
4844
|
// shipping markup. Its battery drives native multi-file drops through
|
|
3396
4845
|
// the generated dropMsg adapter and then moves the created cards.
|
|
3397
|
-
const kanban_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
4846
|
+
const kanban_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
3398
4847
|
.entry = "examples/kanban/src/core.ts",
|
|
3399
4848
|
.src_dir = b.path("examples/kanban/src"),
|
|
3400
4849
|
.name = "kanban_core",
|
|
@@ -3403,6 +4852,7 @@ fn tsCoreE2eArtifact(
|
|
|
3403
4852
|
const kanban_stage = b.addWriteFiles();
|
|
3404
4853
|
const kanban_root = kanban_stage.addCopyFile(b.path("tests/ts-core/kanban_e2e_tests.zig"), "kanban_e2e_tests.zig");
|
|
3405
4854
|
_ = kanban_stage.addCopyFile(b.path("examples/kanban/src/app.native"), "app.native");
|
|
4855
|
+
_ = kanban_stage.addCopyFile(b.path("examples/kanban/src/components/board-column.native"), "components/board-column.native");
|
|
3406
4856
|
const kanban_mod = b.createModule(.{
|
|
3407
4857
|
.root_source_file = kanban_root,
|
|
3408
4858
|
.target = target,
|
|
@@ -3411,19 +4861,367 @@ fn tsCoreE2eArtifact(
|
|
|
3411
4861
|
kanban_mod.addImport("native_sdk", desktop_mod);
|
|
3412
4862
|
kanban_mod.addImport("ts_kanban_core", kanban_core_mod);
|
|
3413
4863
|
|
|
3414
|
-
|
|
4864
|
+
const workbench_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4865
|
+
.entry = "examples/workbench/src/core.ts",
|
|
4866
|
+
.src_dir = b.path("examples/workbench/src"),
|
|
4867
|
+
.name = "workbench_core",
|
|
4868
|
+
.typescript_view = true,
|
|
4869
|
+
});
|
|
4870
|
+
const workbench_stage = b.addWriteFiles();
|
|
4871
|
+
const workbench_root = workbench_stage.addCopyFile(b.path("tests/ts-core/workbench_e2e_tests.zig"), "workbench_e2e_tests.zig");
|
|
4872
|
+
inline for (.{ "workbench_reference.zig", "workbench_reference_tests.zig", "workbench_reference.native", "effects_media_parity.zig" }) |file|
|
|
4873
|
+
_ = workbench_stage.addCopyFile(b.path("tests/ts-core/" ++ file), file);
|
|
4874
|
+
_ = workbench_stage.addCopyFile(b.path("examples/workbench/src/app.native"), "app.native");
|
|
4875
|
+
const workbench_mod = b.createModule(.{ .root_source_file = workbench_root, .target = target, .optimize = optimize });
|
|
4876
|
+
workbench_mod.addImport("native_sdk", desktop_mod);
|
|
4877
|
+
workbench_mod.addImport("workbench_core", workbench_fixture.module);
|
|
4878
|
+
const workbench_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4879
|
+
workbench_decoder.addImport("native_sdk", desktop_mod);
|
|
4880
|
+
workbench_decoder.addImport("core.zig", workbench_fixture.module);
|
|
4881
|
+
workbench_mod.addImport("workbench_decoder", workbench_decoder);
|
|
4882
|
+
|
|
4883
|
+
const feed_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4884
|
+
.entry = "examples/feed/src/core.ts",
|
|
4885
|
+
.src_dir = b.path("examples/feed/src"),
|
|
4886
|
+
.name = "feed_core",
|
|
4887
|
+
.typescript_view = true,
|
|
4888
|
+
});
|
|
4889
|
+
const feed_stage = b.addWriteFiles();
|
|
4890
|
+
const feed_root = feed_stage.addCopyFile(b.path("tests/ts-core/feed_e2e_tests.zig"), "feed_e2e_tests.zig");
|
|
4891
|
+
inline for (.{ "feed_reference.zig", "feed_reference_tests.zig", "effects_media_parity.zig" }) |file|
|
|
4892
|
+
_ = feed_stage.addCopyFile(b.path("tests/ts-core/" ++ file), file);
|
|
4893
|
+
_ = feed_stage.addCopyFile(b.path("examples/feed/src/app.native"), "app.native");
|
|
4894
|
+
const feed_mod = b.createModule(.{ .root_source_file = feed_root, .target = target, .optimize = optimize });
|
|
4895
|
+
feed_mod.addImport("native_sdk", desktop_mod);
|
|
4896
|
+
feed_mod.addImport("feed_core", feed_fixture.module);
|
|
4897
|
+
const feed_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4898
|
+
feed_decoder.addImport("native_sdk", desktop_mod);
|
|
4899
|
+
feed_decoder.addImport("core.zig", feed_fixture.module);
|
|
4900
|
+
feed_mod.addImport("feed_decoder", feed_decoder);
|
|
4901
|
+
|
|
4902
|
+
const split_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4903
|
+
.entry = "examples/split-collapse/src/core.ts",
|
|
4904
|
+
.src_dir = b.path("examples/split-collapse/src"),
|
|
4905
|
+
.name = "split_collapse_core",
|
|
4906
|
+
.typescript_view = true,
|
|
4907
|
+
});
|
|
4908
|
+
const split_stage = b.addWriteFiles();
|
|
4909
|
+
const split_root = split_stage.addCopyFile(b.path("tests/ts-core/split_collapse_e2e_tests.zig"), "split_collapse_e2e_tests.zig");
|
|
4910
|
+
inline for (.{ "main.zig", "tests.zig", "split_collapse.native" }) |file|
|
|
4911
|
+
_ = split_stage.addCopyFile(b.path("tests/ts-core/split-collapse-reference/" ++ file), "split-collapse-reference/" ++ file);
|
|
4912
|
+
_ = split_stage.addCopyFile(b.path("tests/ts-core/effects_media_parity.zig"), "effects_media_parity.zig");
|
|
4913
|
+
_ = split_stage.addCopyFile(b.path("examples/split-collapse/src/app.native"), "app.native");
|
|
4914
|
+
const split_mod = b.createModule(.{ .root_source_file = split_root, .target = target, .optimize = optimize });
|
|
4915
|
+
split_mod.addImport("native_sdk", desktop_mod);
|
|
4916
|
+
split_mod.addImport("split_core", split_fixture.module);
|
|
4917
|
+
const split_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4918
|
+
split_decoder.addImport("native_sdk", desktop_mod);
|
|
4919
|
+
split_decoder.addImport("core.zig", split_fixture.module);
|
|
4920
|
+
split_mod.addImport("split_decoder", split_decoder);
|
|
4921
|
+
|
|
4922
|
+
const canvas_layers_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4923
|
+
.entry = "tests/ts-core/canvas-layers/core.ts",
|
|
4924
|
+
.src_dir = b.path("tests/ts-core/canvas-layers"),
|
|
4925
|
+
.name = "canvas_layers_core",
|
|
4926
|
+
.typescript_view = true,
|
|
4927
|
+
});
|
|
4928
|
+
const canvas_layers_mod = module(b, target, optimize, "tests/ts-core/canvas_layers_e2e_tests.zig");
|
|
4929
|
+
canvas_layers_mod.addImport("native_sdk", desktop_mod);
|
|
4930
|
+
canvas_layers_mod.addImport("canvas_layers_core", canvas_layers_fixture.module);
|
|
4931
|
+
const canvas_layers_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
4932
|
+
canvas_layers_decoder.addImport("native_sdk", desktop_mod);
|
|
4933
|
+
canvas_layers_decoder.addImport("core.zig", canvas_layers_fixture.module);
|
|
4934
|
+
canvas_layers_mod.addImport("canvas_layers_decoder", canvas_layers_decoder);
|
|
4935
|
+
|
|
4936
|
+
const audio_exact_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4937
|
+
.entry = "tests/ts-core/audio-exact/core.ts",
|
|
4938
|
+
.src_dir = b.path("tests/ts-core/audio-exact"),
|
|
4939
|
+
.name = "audio_exact_core",
|
|
4940
|
+
});
|
|
4941
|
+
const audio_exact_mod = module(b, target, optimize, "tests/ts-core/audio_exact_effect_tests.zig");
|
|
4942
|
+
audio_exact_mod.addImport("native_sdk", desktop_mod);
|
|
4943
|
+
audio_exact_mod.addImport("audio_exact_core", audio_exact_fixture.module);
|
|
4944
|
+
|
|
4945
|
+
const global_shortcut_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4946
|
+
.entry = "tests/ts-core/global-shortcut/core.ts",
|
|
4947
|
+
.src_dir = b.path("tests/ts-core/global-shortcut"),
|
|
4948
|
+
.name = "global_shortcut_core",
|
|
4949
|
+
});
|
|
4950
|
+
const global_shortcut_mod = module(b, target, optimize, "tests/ts-core/global_shortcut_e2e_tests.zig");
|
|
4951
|
+
global_shortcut_mod.addImport("native_sdk", desktop_mod);
|
|
4952
|
+
global_shortcut_mod.addImport("global_shortcut_core", global_shortcut_fixture.module);
|
|
4953
|
+
|
|
4954
|
+
const spawn_exact_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4955
|
+
.entry = "tests/ts-core/spawn-exact/core.ts",
|
|
4956
|
+
.src_dir = b.path("tests/ts-core/spawn-exact"),
|
|
4957
|
+
.name = "spawn_exact_core",
|
|
4958
|
+
});
|
|
4959
|
+
const spawn_exact_mod = module(b, target, optimize, "tests/ts-core/spawn_exact_effect_tests.zig");
|
|
4960
|
+
spawn_exact_mod.addImport("native_sdk", desktop_mod);
|
|
4961
|
+
spawn_exact_mod.addImport("spawn_exact_core", spawn_exact_fixture.module);
|
|
4962
|
+
|
|
4963
|
+
const keyboard_input_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4964
|
+
.entry = "tests/ts-core/keyboard-input/core.ts",
|
|
4965
|
+
.src_dir = b.path("tests/ts-core/keyboard-input"),
|
|
4966
|
+
.name = "keyboard_input_core",
|
|
4967
|
+
.keyboard_input_permission = true,
|
|
4968
|
+
});
|
|
4969
|
+
const keyboard_input_mod = module(b, target, optimize, "tests/ts-core/keyboard_input_e2e_tests.zig");
|
|
4970
|
+
keyboard_input_mod.addImport("native_sdk", desktop_mod);
|
|
4971
|
+
keyboard_input_mod.addImport("keyboard_input_core", keyboard_input_fixture.module);
|
|
4972
|
+
|
|
4973
|
+
const boot_images_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4974
|
+
.entry = "tests/ts-core/boot-images/core.ts",
|
|
4975
|
+
.src_dir = b.path("tests/ts-core/boot-images"),
|
|
4976
|
+
.name = "boot_images_core",
|
|
4977
|
+
});
|
|
4978
|
+
const boot_images_mod = module(b, target, optimize, "tests/ts-core/boot_images_e2e_tests.zig");
|
|
4979
|
+
boot_images_mod.addImport("native_sdk", desktop_mod);
|
|
4980
|
+
boot_images_mod.addImport("boot_images_core", boot_images_fixture.module);
|
|
4981
|
+
|
|
4982
|
+
const deck_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
4983
|
+
.entry = "examples/deck/src/core.ts",
|
|
4984
|
+
.src_dir = b.path("examples/deck/src"),
|
|
4985
|
+
.name = "deck_core",
|
|
4986
|
+
.typescript_view = true,
|
|
4987
|
+
});
|
|
4988
|
+
const deck_stage = b.addWriteFiles();
|
|
4989
|
+
const deck_root = deck_stage.addCopyFile(b.path("tests/ts-core/deck_e2e_tests.zig"), "deck_e2e_tests.zig");
|
|
4990
|
+
// Expose reference hooks for independent integration tests without
|
|
4991
|
+
// changing the preserved native app sources.
|
|
4992
|
+
_ = deck_stage.add("deck_reference_access.zig", "pub const main = @import(\"deck-reference/main.zig\");\n" ++
|
|
4993
|
+
"pub const view = @import(\"deck-reference/view.zig\");\n" ++
|
|
4994
|
+
"pub const model = @import(\"deck-reference/model.zig\");\n");
|
|
4995
|
+
inline for (.{ "main.zig", "model.zig", "view.zig", "theme.zig", "chrome.zig", "layout.zig", "tests.zig", "music_manifest.zon", "statusbar.native", "spectrum.native", "icons/stop.svg", "icons/minimize.svg", "fonts/GeistPixel-Square.ttf", "fonts/OFL.txt", "art/exit-signs.jpg", "art/blue-season.jpg", "art/second-nature.jpg", "art/no-good-way-out.jpg", "art/glass-flowers.jpg", "art/night-bloom.jpg", "art/motion-picture.jpg", "art/channel-surfing.jpg" }) |file|
|
|
4996
|
+
_ = deck_stage.addCopyFile(b.path("tests/ts-core/deck-reference/" ++ file), "deck-reference/" ++ file);
|
|
4997
|
+
_ = deck_stage.addCopyFile(b.path("tests/ts-core/effects_media_parity.zig"), "effects_media_parity.zig");
|
|
4998
|
+
_ = deck_stage.addCopyFile(b.path("tools/corewire/shim_rt.zig"), "shim_rt.zig");
|
|
4999
|
+
const deck_mod = b.createModule(.{ .root_source_file = deck_root, .target = target, .optimize = optimize });
|
|
5000
|
+
deck_mod.addImport("native_sdk", desktop_mod);
|
|
5001
|
+
deck_mod.addImport("deck_core", deck_fixture.module);
|
|
5002
|
+
const deck_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5003
|
+
deck_decoder.addImport("native_sdk", desktop_mod);
|
|
5004
|
+
deck_decoder.addImport("core.zig", deck_fixture.module);
|
|
5005
|
+
deck_mod.addImport("deck_decoder", deck_decoder);
|
|
5006
|
+
deck_mod.addImport("deck_manifest", b.createModule(.{ .root_source_file = b.path("examples/deck/app.zon"), .target = target, .optimize = optimize }));
|
|
5007
|
+
|
|
5008
|
+
const gpu_dashboard_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5009
|
+
.entry = "examples/gpu-dashboard/src/core.ts",
|
|
5010
|
+
.src_dir = b.path("examples/gpu-dashboard/src"),
|
|
5011
|
+
.name = "gpu_dashboard_core",
|
|
5012
|
+
.typescript_view = true,
|
|
5013
|
+
});
|
|
5014
|
+
const gpu_dashboard_stage = b.addWriteFiles();
|
|
5015
|
+
const gpu_dashboard_root = gpu_dashboard_stage.addCopyFile(b.path("tests/ts-core/gpu_dashboard_e2e_tests.zig"), "gpu_dashboard_e2e_tests.zig");
|
|
5016
|
+
// Test-only access to the unchanged reference's private capability hooks.
|
|
5017
|
+
_ = gpu_dashboard_stage.addCopyFile(sourceWithSuffix(
|
|
5018
|
+
b,
|
|
5019
|
+
b.path("tests/ts-core/gpu-dashboard-reference/main.zig"),
|
|
5020
|
+
"\npub const migrationScene = shell_scene;\npub const migrationOptions = dashboardOptions;\n",
|
|
5021
|
+
"gpu_dashboard_reference_access.zig",
|
|
5022
|
+
), "gpu_dashboard_reference_access.zig");
|
|
5023
|
+
_ = gpu_dashboard_stage.addCopyFile(b.path("tests/ts-core/effects_media_parity.zig"), "effects_media_parity.zig");
|
|
5024
|
+
_ = gpu_dashboard_stage.addCopyFile(b.path("examples/gpu-dashboard/src/app.native"), "app.native");
|
|
5025
|
+
const gpu_dashboard_mod = b.createModule(.{ .root_source_file = gpu_dashboard_root, .target = target, .optimize = optimize });
|
|
5026
|
+
gpu_dashboard_mod.addImport("native_sdk", desktop_mod);
|
|
5027
|
+
gpu_dashboard_mod.addImport("gpu_dashboard_core", gpu_dashboard_fixture.module);
|
|
5028
|
+
gpu_dashboard_mod.addImport("gpu_dashboard_manifest", b.createModule(.{ .root_source_file = b.path("examples/gpu-dashboard/app.zon"), .target = target, .optimize = optimize }));
|
|
5029
|
+
const gpu_dashboard_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5030
|
+
gpu_dashboard_decoder.addImport("native_sdk", desktop_mod);
|
|
5031
|
+
gpu_dashboard_decoder.addImport("core.zig", gpu_dashboard_fixture.module);
|
|
5032
|
+
gpu_dashboard_mod.addImport("gpu_dashboard_decoder", gpu_dashboard_decoder);
|
|
5033
|
+
|
|
5034
|
+
const channel_monitor_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5035
|
+
.entry = "examples/channel-monitor/src/core.ts",
|
|
5036
|
+
.src_dir = b.path("examples/channel-monitor/src"),
|
|
5037
|
+
.name = "channel_monitor_core",
|
|
5038
|
+
.typescript_view = true,
|
|
5039
|
+
});
|
|
5040
|
+
const channel_monitor_stage = b.addWriteFiles();
|
|
5041
|
+
const channel_monitor_root = channel_monitor_stage.addCopyFile(b.path("tests/ts-core/channel_monitor_e2e_tests.zig"), "channel_monitor_e2e_tests.zig");
|
|
5042
|
+
inline for (.{ "main.zig", "tests.zig" }) |file|
|
|
5043
|
+
_ = channel_monitor_stage.addCopyFile(b.path("tests/ts-core/channel-monitor-reference/" ++ file), "channel-monitor-reference/" ++ file);
|
|
5044
|
+
_ = channel_monitor_stage.addCopyFile(b.path("tests/ts-core/effects_media_parity.zig"), "effects_media_parity.zig");
|
|
5045
|
+
_ = channel_monitor_stage.addCopyFile(b.path("examples/channel-monitor/src/app.native"), "app.native");
|
|
5046
|
+
const channel_monitor_mod = b.createModule(.{ .root_source_file = channel_monitor_root, .target = target, .optimize = optimize });
|
|
5047
|
+
channel_monitor_mod.addImport("native_sdk", desktop_mod);
|
|
5048
|
+
channel_monitor_mod.addImport("channel_monitor_core", channel_monitor_fixture.module);
|
|
5049
|
+
const channel_monitor_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5050
|
+
channel_monitor_decoder.addImport("native_sdk", desktop_mod);
|
|
5051
|
+
channel_monitor_decoder.addImport("core.zig", channel_monitor_fixture.module);
|
|
5052
|
+
channel_monitor_mod.addImport("channel_monitor_decoder", channel_monitor_decoder);
|
|
5053
|
+
|
|
5054
|
+
const code_editor_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5055
|
+
.entry = "examples/code-editor/src/core.ts",
|
|
5056
|
+
.src_dir = b.path("examples/code-editor/src"),
|
|
5057
|
+
.name = "code_editor_core",
|
|
5058
|
+
.typescript_view = true,
|
|
5059
|
+
.window_views = &.{ "code-editor-2", "code-editor-3", "code-editor-4", "code-editor-5" },
|
|
5060
|
+
});
|
|
5061
|
+
const code_editor_stage = b.addWriteFiles();
|
|
5062
|
+
const code_editor_root = code_editor_stage.addCopyFile(b.path("tests/ts-core/code_editor_e2e_tests.zig"), "code_editor_e2e_tests.zig");
|
|
5063
|
+
inline for (.{ "main.zig", "tests.zig", "code-editor.native" }) |file|
|
|
5064
|
+
_ = code_editor_stage.addCopyFile(b.path("tests/ts-core/code-editor-reference/" ++ file), "code-editor-reference/" ++ file);
|
|
5065
|
+
_ = code_editor_stage.addCopyFile(b.path("tests/ts-core/effects_media_parity.zig"), "effects_media_parity.zig");
|
|
5066
|
+
_ = code_editor_stage.addCopyFile(b.path("src/runtime/desktop_files.zig"), "desktop_files.zig");
|
|
5067
|
+
const code_editor_mod = b.createModule(.{ .root_source_file = code_editor_root, .target = target, .optimize = optimize });
|
|
5068
|
+
code_editor_mod.addImport("native_sdk", desktop_mod);
|
|
5069
|
+
code_editor_mod.addImport("code_editor_core", code_editor_fixture.module);
|
|
5070
|
+
code_editor_mod.addImport("corewire_rt", module(b, target, optimize, "tools/corewire/shim_rt.zig"));
|
|
5071
|
+
const code_editor_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5072
|
+
code_editor_decoder.addImport("native_sdk", desktop_mod);
|
|
5073
|
+
code_editor_decoder.addImport("core.zig", code_editor_fixture.module);
|
|
5074
|
+
code_editor_mod.addImport("code_editor_decoder", code_editor_decoder);
|
|
5075
|
+
|
|
5076
|
+
const markdown_viewer_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5077
|
+
.entry = "examples/markdown-viewer/src/core.ts",
|
|
5078
|
+
.src_dir = b.path("examples/markdown-viewer/src"),
|
|
5079
|
+
.name = "markdown_viewer_core",
|
|
5080
|
+
.typescript_view = true,
|
|
5081
|
+
});
|
|
5082
|
+
const markdown_viewer_stage = b.addWriteFiles();
|
|
5083
|
+
const markdown_viewer_root = markdown_viewer_stage.addCopyFile(b.path("tests/ts-core/markdown_viewer_e2e_tests.zig"), "markdown_viewer_e2e_tests.zig");
|
|
5084
|
+
inline for (.{ "main.zig", "tests.zig", "viewer.native", "samples/welcome.md", "samples/tour.md", "samples/spec.md", "samples/notes.md" }) |file|
|
|
5085
|
+
_ = markdown_viewer_stage.addCopyFile(b.path("tests/ts-core/markdown-viewer-reference/" ++ file), "markdown-viewer-reference/" ++ file);
|
|
5086
|
+
_ = markdown_viewer_stage.addCopyFile(b.path("tests/ts-core/effects_media_parity.zig"), "effects_media_parity.zig");
|
|
5087
|
+
_ = markdown_viewer_stage.addCopyFile(b.path("examples/markdown-viewer/src/app.native"), "app.native");
|
|
5088
|
+
const markdown_viewer_mod = b.createModule(.{ .root_source_file = markdown_viewer_root, .target = target, .optimize = optimize });
|
|
5089
|
+
markdown_viewer_mod.addImport("native_sdk", desktop_mod);
|
|
5090
|
+
markdown_viewer_mod.addImport("markdown_viewer_core", markdown_viewer_fixture.module);
|
|
5091
|
+
const markdown_viewer_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5092
|
+
markdown_viewer_decoder.addImport("native_sdk", desktop_mod);
|
|
5093
|
+
markdown_viewer_decoder.addImport("core.zig", markdown_viewer_fixture.module);
|
|
5094
|
+
markdown_viewer_mod.addImport("markdown_viewer_decoder", markdown_viewer_decoder);
|
|
5095
|
+
|
|
5096
|
+
const notes_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5097
|
+
.entry = "examples/notes/src/core.ts",
|
|
5098
|
+
.src_dir = b.path("examples/notes/src"),
|
|
5099
|
+
.name = "notes_core",
|
|
5100
|
+
.typescript_view = true,
|
|
5101
|
+
});
|
|
5102
|
+
const notes_stage = b.addWriteFiles();
|
|
5103
|
+
const notes_root = notes_stage.addCopyFile(b.path("tests/ts-core/notes_e2e_tests.zig"), "notes_e2e_tests.zig");
|
|
5104
|
+
_ = notes_stage.addCopyFile(b.path("tests/ts-core/notes_reference.zig"), "notes_reference.zig");
|
|
5105
|
+
_ = notes_stage.addCopyFile(b.path("tests/ts-core/notes_model_reference.zig"), "notes_model_reference.zig");
|
|
5106
|
+
_ = notes_stage.addCopyFile(b.path("tests/ts-core/notes_reference_tests.zig"), "notes_reference_tests.zig");
|
|
5107
|
+
_ = notes_stage.addCopyFile(b.path("tests/ts-core/effects_media_parity.zig"), "effects_media_parity.zig");
|
|
5108
|
+
_ = notes_stage.addCopyFile(b.path("examples/notes/src/app.native"), "app.native");
|
|
5109
|
+
const notes_mod = b.createModule(.{ .root_source_file = notes_root, .target = target, .optimize = optimize });
|
|
5110
|
+
notes_mod.addImport("native_sdk", desktop_mod);
|
|
5111
|
+
notes_mod.addImport("notes_core", notes_fixture.module);
|
|
5112
|
+
const notes_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5113
|
+
notes_decoder.addImport("native_sdk", desktop_mod);
|
|
5114
|
+
notes_decoder.addImport("core.zig", notes_fixture.module);
|
|
5115
|
+
notes_mod.addImport("notes_decoder", notes_decoder);
|
|
5116
|
+
|
|
5117
|
+
const effects_probe_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5118
|
+
.entry = "examples/effects-probe/src/core.ts",
|
|
5119
|
+
.src_dir = b.path("examples/effects-probe/src"),
|
|
5120
|
+
.name = "effects_probe_core",
|
|
5121
|
+
.typescript_view = true,
|
|
5122
|
+
});
|
|
5123
|
+
const effects_probe_stage = b.addWriteFiles();
|
|
5124
|
+
const effects_probe_root = effects_probe_stage.addCopyFile(b.path("tests/ts-core/effects_probe_e2e_tests.zig"), "effects_probe_e2e_tests.zig");
|
|
5125
|
+
_ = effects_probe_stage.addCopyFile(b.path("tests/ts-core/effects_probe_reference.zig"), "effects_probe_reference.zig");
|
|
5126
|
+
_ = effects_probe_stage.addCopyFile(b.path("tests/ts-core/effects_probe_reference_tests.zig"), "effects_probe_reference_tests.zig");
|
|
5127
|
+
_ = effects_probe_stage.addCopyFile(b.path("tests/ts-core/effects_media_parity.zig"), "effects_media_parity.zig");
|
|
5128
|
+
_ = effects_probe_stage.addCopyFile(b.path("examples/effects-probe/src/app.native"), "app.native");
|
|
5129
|
+
const effects_probe_mod = b.createModule(.{ .root_source_file = effects_probe_root, .target = target, .optimize = optimize });
|
|
5130
|
+
effects_probe_mod.addImport("native_sdk", desktop_mod);
|
|
5131
|
+
effects_probe_mod.addImport("effects_probe_core", effects_probe_fixture.module);
|
|
5132
|
+
const effects_probe_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5133
|
+
effects_probe_decoder.addImport("native_sdk", desktop_mod);
|
|
5134
|
+
effects_probe_decoder.addImport("core.zig", effects_probe_fixture.module);
|
|
5135
|
+
effects_probe_mod.addImport("effects_probe_decoder", effects_probe_decoder);
|
|
5136
|
+
|
|
5137
|
+
const video_player_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5138
|
+
.entry = "examples/video-player/src/core.ts",
|
|
5139
|
+
.src_dir = b.path("examples/video-player/src"),
|
|
5140
|
+
.name = "video_player_core",
|
|
5141
|
+
.typescript_view = true,
|
|
5142
|
+
});
|
|
5143
|
+
const video_player_stage = b.addWriteFiles();
|
|
5144
|
+
const video_player_root = video_player_stage.addCopyFile(b.path("tests/ts-core/video_player_e2e_tests.zig"), "video_player_e2e_tests.zig");
|
|
5145
|
+
_ = video_player_stage.addCopyFile(b.path("tests/ts-core/video_player_reference.zig"), "video_player_reference.zig");
|
|
5146
|
+
_ = video_player_stage.addCopyFile(b.path("tests/ts-core/video_player_reference_tests.zig"), "video_player_reference_tests.zig");
|
|
5147
|
+
_ = video_player_stage.addCopyFile(b.path("tests/ts-core/effects_media_parity.zig"), "effects_media_parity.zig");
|
|
5148
|
+
_ = video_player_stage.addCopyFile(b.path("examples/video-player/src/app.native"), "app.native");
|
|
5149
|
+
const video_player_mod = b.createModule(.{ .root_source_file = video_player_root, .target = target, .optimize = optimize });
|
|
5150
|
+
video_player_mod.addImport("native_sdk", desktop_mod);
|
|
5151
|
+
video_player_mod.addImport("video_player_core", video_player_fixture.module);
|
|
5152
|
+
const video_player_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5153
|
+
video_player_decoder.addImport("native_sdk", desktop_mod);
|
|
5154
|
+
video_player_decoder.addImport("core.zig", video_player_fixture.module);
|
|
5155
|
+
video_player_mod.addImport("video_player_decoder", video_player_decoder);
|
|
5156
|
+
|
|
5157
|
+
const inbox_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5158
|
+
.entry = "examples/ui-inbox/src/core.ts",
|
|
5159
|
+
.src_dir = b.path("examples/ui-inbox/src"),
|
|
5160
|
+
.name = "inbox_core",
|
|
5161
|
+
.typescript_view = true,
|
|
5162
|
+
});
|
|
5163
|
+
const inbox_stage = b.addWriteFiles();
|
|
5164
|
+
const inbox_root = inbox_stage.addCopyFile(b.path("tests/ts-core/inbox_e2e_tests.zig"), "inbox_e2e_tests.zig");
|
|
5165
|
+
_ = inbox_stage.addCopyFile(b.path("tests/ts-core/inbox_reference.zig"), "inbox_reference.zig");
|
|
5166
|
+
_ = inbox_stage.addCopyFile(b.path("tests/ts-core/inbox_reference_tests.zig"), "inbox_reference_tests.zig");
|
|
5167
|
+
_ = inbox_stage.addCopyFile(b.path("tests/ts-core/inbox_reference.native"), "inbox_reference.native");
|
|
5168
|
+
_ = inbox_stage.addCopyFile(b.path("examples/ui-inbox/src/app.native"), "app.native");
|
|
5169
|
+
const inbox_mod = b.createModule(.{ .root_source_file = inbox_root, .target = target, .optimize = optimize });
|
|
5170
|
+
inbox_mod.addImport("native_sdk", desktop_mod);
|
|
5171
|
+
inbox_mod.addImport("inbox_core", inbox_fixture.module);
|
|
5172
|
+
const inbox_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5173
|
+
inbox_decoder.addImport("native_sdk", desktop_mod);
|
|
5174
|
+
inbox_decoder.addImport("core.zig", inbox_fixture.module);
|
|
5175
|
+
inbox_mod.addImport("inbox_decoder", inbox_decoder);
|
|
5176
|
+
|
|
5177
|
+
const canvas_preview_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5178
|
+
.entry = "examples/canvas-preview/src/core.ts",
|
|
5179
|
+
.src_dir = b.path("examples/canvas-preview/src"),
|
|
5180
|
+
.name = "canvas_preview_core",
|
|
5181
|
+
.typescript_view = true,
|
|
5182
|
+
});
|
|
5183
|
+
const canvas_preview_stage = b.addWriteFiles();
|
|
5184
|
+
const canvas_preview_root = canvas_preview_stage.addCopyFile(b.path("tests/ts-core/canvas_preview_e2e_tests.zig"), "canvas_preview_e2e_tests.zig");
|
|
5185
|
+
_ = canvas_preview_stage.addCopyFile(b.path("tests/ts-core/canvas_preview_reference.zig"), "canvas_preview_reference.zig");
|
|
5186
|
+
_ = canvas_preview_stage.addCopyFile(b.path("tests/ts-core/canvas_preview_reference_tests.zig"), "canvas_preview_reference_tests.zig");
|
|
5187
|
+
_ = canvas_preview_stage.addCopyFile(b.path("examples/canvas-preview/src/app.native"), "app.native");
|
|
5188
|
+
const canvas_preview_mod = b.createModule(.{ .root_source_file = canvas_preview_root, .target = target, .optimize = optimize });
|
|
5189
|
+
canvas_preview_mod.addImport("native_sdk", desktop_mod);
|
|
5190
|
+
canvas_preview_mod.addImport("canvas_preview_core", canvas_preview_fixture.module);
|
|
5191
|
+
const canvas_preview_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5192
|
+
canvas_preview_decoder.addImport("native_sdk", desktop_mod);
|
|
5193
|
+
canvas_preview_decoder.addImport("core.zig", canvas_preview_fixture.module);
|
|
5194
|
+
canvas_preview_mod.addImport("canvas_preview_decoder", canvas_preview_decoder);
|
|
5195
|
+
|
|
5196
|
+
const habits_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5197
|
+
.entry = "examples/habits/src/core.ts",
|
|
5198
|
+
.src_dir = b.path("examples/habits/src"),
|
|
5199
|
+
.name = "habits_core",
|
|
5200
|
+
.typescript_view = true,
|
|
5201
|
+
});
|
|
5202
|
+
const habits_stage = b.addWriteFiles();
|
|
5203
|
+
const habits_root = habits_stage.addCopyFile(b.path("tests/ts-core/habits_e2e_tests.zig"), "habits_e2e_tests.zig");
|
|
5204
|
+
_ = habits_stage.addCopyFile(b.path("tests/ts-core/habits_reference.zig"), "habits_reference.zig");
|
|
5205
|
+
_ = habits_stage.addCopyFile(b.path("tests/ts-core/habits_reference_tests.zig"), "habits_reference_tests.zig");
|
|
5206
|
+
_ = habits_stage.addCopyFile(b.path("tests/ts-core/habits_reference.native"), "habits_reference.native");
|
|
5207
|
+
_ = habits_stage.addCopyFile(b.path("examples/habits/src/app.native"), "app.native");
|
|
5208
|
+
const habits_mod = b.createModule(.{ .root_source_file = habits_root, .target = target, .optimize = optimize });
|
|
5209
|
+
habits_mod.addImport("native_sdk", desktop_mod);
|
|
5210
|
+
habits_mod.addImport("ts_habits_core", habits_fixture.module);
|
|
5211
|
+
|
|
5212
|
+
// The soundboard example's core and markup, tested as one app:
|
|
3415
5213
|
// the test root stages beside a copy of the example's app.native so
|
|
3416
5214
|
// the compiled markup engine builds the SHIPPING view over the
|
|
3417
5215
|
// core's model.
|
|
3418
|
-
const soundboard_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
3419
|
-
.entry = "examples/soundboard
|
|
3420
|
-
.src_dir = b.path("examples/soundboard
|
|
5216
|
+
const soundboard_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5217
|
+
.entry = "examples/soundboard/src/core.ts",
|
|
5218
|
+
.src_dir = b.path("examples/soundboard/src"),
|
|
3421
5219
|
.name = "soundboard_core",
|
|
3422
5220
|
});
|
|
3423
5221
|
const soundboard_core_mod = soundboard_fixture.module;
|
|
3424
5222
|
const soundboard_stage = b.addWriteFiles();
|
|
3425
5223
|
const soundboard_root = soundboard_stage.addCopyFile(b.path("tests/ts-core/soundboard_e2e_tests.zig"), "soundboard_e2e_tests.zig");
|
|
3426
|
-
_ = soundboard_stage.addCopyFile(b.path("examples/soundboard
|
|
5224
|
+
_ = soundboard_stage.addCopyFile(b.path("examples/soundboard/src/app.native"), "app.native");
|
|
3427
5225
|
const soundboard_mod = b.createModule(.{
|
|
3428
5226
|
.root_source_file = soundboard_root,
|
|
3429
5227
|
.target = target,
|
|
@@ -3432,20 +5230,20 @@ fn tsCoreE2eArtifact(
|
|
|
3432
5230
|
soundboard_mod.addImport("native_sdk", desktop_mod);
|
|
3433
5231
|
soundboard_mod.addImport("ts_soundboard_core", soundboard_core_mod);
|
|
3434
5232
|
|
|
3435
|
-
// The system-monitor
|
|
5233
|
+
// The system-monitor example's core and markup, tested the same
|
|
3436
5234
|
// way — plus the ORIGINAL Zig example's committed sampler captures,
|
|
3437
5235
|
// staged as fixtures so both ports parse the same recorded truth.
|
|
3438
|
-
const monitor_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
3439
|
-
.entry = "examples/system-monitor
|
|
3440
|
-
.src_dir = b.path("examples/system-monitor
|
|
5236
|
+
const monitor_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5237
|
+
.entry = "examples/system-monitor/src/core.ts",
|
|
5238
|
+
.src_dir = b.path("examples/system-monitor/src"),
|
|
3441
5239
|
.name = "system_monitor_core",
|
|
3442
5240
|
});
|
|
3443
5241
|
const monitor_core_mod = monitor_fixture.module;
|
|
3444
5242
|
const monitor_stage = b.addWriteFiles();
|
|
3445
5243
|
const monitor_root = monitor_stage.addCopyFile(b.path("tests/ts-core/system_monitor_e2e_tests.zig"), "system_monitor_e2e_tests.zig");
|
|
3446
|
-
_ = monitor_stage.addCopyFile(b.path("examples/system-monitor
|
|
3447
|
-
_ = monitor_stage.addCopyFile(b.path("examples/system-monitor
|
|
3448
|
-
_ = monitor_stage.addCopyFile(b.path("examples/system-monitor
|
|
5244
|
+
_ = monitor_stage.addCopyFile(b.path("examples/system-monitor/src/app.native"), "app.native");
|
|
5245
|
+
_ = monitor_stage.addCopyFile(b.path("examples/system-monitor/src/windows/settings.native"), "settings.native");
|
|
5246
|
+
_ = monitor_stage.addCopyFile(b.path("examples/system-monitor/src/windows/components/sampling.native"), "components/sampling.native");
|
|
3449
5247
|
_ = monitor_stage.addCopyFile(b.path("examples/system-monitor/src/fixtures/sysctl.txt"), "fixtures/sysctl.txt");
|
|
3450
5248
|
_ = monitor_stage.addCopyFile(b.path("examples/system-monitor/src/fixtures/ps.txt"), "fixtures/ps.txt");
|
|
3451
5249
|
_ = monitor_stage.addCopyFile(b.path("examples/system-monitor/src/fixtures/vm_stat.txt"), "fixtures/vm_stat.txt");
|
|
@@ -3466,7 +5264,7 @@ fn tsCoreE2eArtifact(
|
|
|
3466
5264
|
// The Chatbot example's core and markup, tested the same way:
|
|
3467
5265
|
// the chat client for an OpenAI-compatible endpoint, driven through
|
|
3468
5266
|
// the fake fetch feed (no network) with its shipping markup.
|
|
3469
|
-
const ai_chat_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
5267
|
+
const ai_chat_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
3470
5268
|
.entry = "examples/chatbot/src/core.ts",
|
|
3471
5269
|
.src_dir = b.path("examples/chatbot/src"),
|
|
3472
5270
|
.name = "ai_chat_core",
|
|
@@ -3487,12 +5285,50 @@ fn tsCoreE2eArtifact(
|
|
|
3487
5285
|
// markup, tested as one app: a real buffered Cmd.fetch against a
|
|
3488
5286
|
// loopback fixture, the generated typed client into the real child,
|
|
3489
5287
|
// and record→replay with neither the service nor the network present.
|
|
3490
|
-
const feed_reader_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
5288
|
+
const feed_reader_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
3491
5289
|
.entry = "examples/service-feed-reader/src/core.ts",
|
|
3492
5290
|
.src_dir = b.path("examples/service-feed-reader/src"),
|
|
3493
5291
|
.name = "feed_reader_core",
|
|
5292
|
+
.window_views = &.{"feed"},
|
|
3494
5293
|
.emit_services = true,
|
|
5294
|
+
.typescript_view = true,
|
|
5295
|
+
});
|
|
5296
|
+
const shell_layout_mod = module(b, target, optimize, "tests/ts-core/shell_layout_e2e_tests.zig");
|
|
5297
|
+
shell_layout_mod.addImport("native_sdk", desktop_mod);
|
|
5298
|
+
shell_layout_mod.addImport("shell_fixture_core", feed_reader_fixture.module);
|
|
5299
|
+
const typography_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5300
|
+
.entry = "examples/typography/src/core.ts",
|
|
5301
|
+
.src_dir = b.path("examples/typography/src"),
|
|
5302
|
+
.name = "typography_core",
|
|
5303
|
+
.typescript_view = true,
|
|
5304
|
+
});
|
|
5305
|
+
const typography_mod = module(b, target, optimize, "tests/ts-core/typography_e2e_tests.zig");
|
|
5306
|
+
typography_mod.addImport("native_sdk", desktop_mod);
|
|
5307
|
+
typography_mod.addImport("typography_core", typography_fixture.module);
|
|
5308
|
+
const typography_decoder_mod = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5309
|
+
typography_decoder_mod.addImport("native_sdk", desktop_mod);
|
|
5310
|
+
typography_decoder_mod.addImport("core.zig", typography_fixture.module);
|
|
5311
|
+
typography_mod.addImport("typography_decoder", typography_decoder_mod);
|
|
5312
|
+
const virtual_fixed_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
5313
|
+
.entry = "tests/ts-core/virtual-fixed/core.ts",
|
|
5314
|
+
.src_dir = b.path("tests/ts-core/virtual-fixed"),
|
|
5315
|
+
.name = "virtual_fixed_core",
|
|
5316
|
+
.typescript_view = true,
|
|
3495
5317
|
});
|
|
5318
|
+
const virtual_fixed_mod = module(b, target, optimize, "tests/ts-core/virtual_fixed_e2e_tests.zig");
|
|
5319
|
+
virtual_fixed_mod.addImport("native_sdk", desktop_mod);
|
|
5320
|
+
virtual_fixed_mod.addImport("virtual_fixed_core", virtual_fixed_fixture.module);
|
|
5321
|
+
const virtual_fixed_decoder = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5322
|
+
virtual_fixed_decoder.addImport("native_sdk", desktop_mod);
|
|
5323
|
+
virtual_fixed_decoder.addImport("core.zig", virtual_fixed_fixture.module);
|
|
5324
|
+
virtual_fixed_mod.addImport("virtual_fixed_decoder", virtual_fixed_decoder);
|
|
5325
|
+
const surface_layout_mod = module(b, target, optimize, "tests/ts-core/surface_layout_e2e_tests.zig");
|
|
5326
|
+
surface_layout_mod.addImport("native_sdk", desktop_mod);
|
|
5327
|
+
surface_layout_mod.addImport("surface_fixture_core", feed_reader_fixture.module);
|
|
5328
|
+
const surface_decoder_mod = module(b, target, optimize, "src/app_runner/ts_compiled_view.zig");
|
|
5329
|
+
surface_decoder_mod.addImport("native_sdk", desktop_mod);
|
|
5330
|
+
surface_decoder_mod.addImport("core.zig", feed_reader_fixture.module);
|
|
5331
|
+
surface_layout_mod.addImport("surface_decoder", surface_decoder_mod);
|
|
3496
5332
|
const feed_reader_service = externalServiceFixture(
|
|
3497
5333
|
b,
|
|
3498
5334
|
target,
|
|
@@ -3506,7 +5342,21 @@ fn tsCoreE2eArtifact(
|
|
|
3506
5342
|
const feed_reader_stage = b.addWriteFiles();
|
|
3507
5343
|
const feed_reader_root = feed_reader_stage.addCopyFile(b.path("tests/ts-services/feed_reader_e2e_tests.zig"), "feed_reader_e2e_tests.zig");
|
|
3508
5344
|
_ = feed_reader_stage.addCopyFile(b.path("examples/service-feed-reader/src/app.native"), "app.native");
|
|
5345
|
+
_ = feed_reader_stage.addCopyFile(b.path("examples/service-feed-reader/src/windows/feed.native"), "windows/feed.native");
|
|
5346
|
+
_ = feed_reader_stage.addCopyFile(b.path("examples/service-feed-reader/src/windows/components/items.native"), "windows/components/items.native");
|
|
3509
5347
|
_ = feed_reader_stage.addCopyFile(b.path("examples/service-feed-reader/fixtures/feed.xml"), "fixture_feed.xml");
|
|
5348
|
+
_ = feed_reader_stage.addCopyFile(b.path("src/app_runner/ts_compiled_view.zig"), "ts_compiled_view.zig");
|
|
5349
|
+
_ = feed_reader_stage.add("core.zig",
|
|
5350
|
+
\\const core = @import("ts_feed_reader_core");
|
|
5351
|
+
\\pub const rt = core.rt;
|
|
5352
|
+
\\pub const Model = core.Model;
|
|
5353
|
+
\\pub const Msg = core.Msg;
|
|
5354
|
+
\\pub const nativeView = core.nativeView;
|
|
5355
|
+
\\pub const nativeWindowView = core.nativeWindowView;
|
|
5356
|
+
\\pub const nativeViewEvent = core.nativeViewEvent;
|
|
5357
|
+
\\pub const nativeResizablePolicy = core.nativeResizablePolicy;
|
|
5358
|
+
\\pub const nativeTextPolicy = core.nativeTextPolicy;
|
|
5359
|
+
);
|
|
3510
5360
|
const feed_reader_mod = b.createModule(.{
|
|
3511
5361
|
.root_source_file = feed_reader_root,
|
|
3512
5362
|
.target = target,
|
|
@@ -3524,7 +5374,7 @@ fn tsCoreE2eArtifact(
|
|
|
3524
5374
|
// registry/host only from the service sidecar; plain scriptc compiles the
|
|
3525
5375
|
// child executable; and the Zig battery drives that executable through
|
|
3526
5376
|
// the production ServiceHost + effects/session boundary.
|
|
3527
|
-
const services_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
5377
|
+
const services_fixture = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
3528
5378
|
.entry = "tests/ts-services/ok/src/core.ts",
|
|
3529
5379
|
.src_dir = b.path("tests/ts-services/ok/src"),
|
|
3530
5380
|
.name = "services_fixture_core",
|
|
@@ -3611,7 +5461,7 @@ fn tsCoreE2eArtifact(
|
|
|
3611
5461
|
// its request unchanged, so tools/bench_service_host.zig measures the
|
|
3612
5462
|
// carrier — lazy spawn, framing, pipes, worker queueing — and never a
|
|
3613
5463
|
// workload.
|
|
3614
|
-
const service_bench_core = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, .{
|
|
5464
|
+
const service_bench_core = externalCoreFixtureModule(b, target, optimize, node, corewire_exe, build_trace, .{
|
|
3615
5465
|
.entry = "tools/service-host-bench/src/core.ts",
|
|
3616
5466
|
.src_dir = b.path("tools/service-host-bench/src"),
|
|
3617
5467
|
.name = "service_host_bench_core",
|
|
@@ -3720,24 +5570,82 @@ fn tsCoreE2eArtifact(
|
|
|
3720
5570
|
abi_laws_mod.addObjectFile(markup_fixture.archive);
|
|
3721
5571
|
addScriptcArchiveSystemLibs(abi_laws_mod, target);
|
|
3722
5572
|
|
|
5573
|
+
const trap_mod = module(b, target, optimize, "tests/sidecar/external_core_trap.zig");
|
|
5574
|
+
trap_mod.link_libc = true;
|
|
5575
|
+
trap_mod.addImport("core_abi", module(b, target, optimize, "tools/corewire/core_abi.zig"));
|
|
5576
|
+
trap_mod.addImport("shim_core", sidecarShimModule(b, target, optimize, corewire_exe, markup_fixture.sidecar));
|
|
5577
|
+
trap_mod.addObjectFile(markup_fixture.archive);
|
|
5578
|
+
addScriptcArchiveSystemLibs(trap_mod, target);
|
|
5579
|
+
|
|
3723
5580
|
const mixed_return_abi_mod = module(b, target, optimize, "tests/sidecar/mixed_return_abi_tests.zig");
|
|
3724
5581
|
mixed_return_abi_mod.addImport("mixed_return_core", mixed_return_fixture.module);
|
|
3725
5582
|
|
|
3726
5583
|
return .{
|
|
3727
5584
|
.host = filteredTestArtifact(b, e2e_mod, "ts-core-e2e-tests", &.{}),
|
|
3728
5585
|
.persist = filteredTestArtifact(b, persist_mod, "ts-persist-e2e-tests", &.{}),
|
|
5586
|
+
.markdown_content = filteredTestArtifact(b, persist_mod, "ts-markdown-content-tests", &.{"compiled Markdown"}),
|
|
5587
|
+
.widget_routing = filteredTestArtifact(b, persist_mod, "ts-widget-routing-tests", &.{"compiled widget routing"}),
|
|
5588
|
+
.widget_changes = filteredTestArtifact(b, persist_mod, "ts-widget-change-tests", &.{"compiled widget change"}),
|
|
5589
|
+
.widget_paint_walk = filteredTestArtifact(b, persist_mod, "ts-widget-paint-walk-tests", &.{"compiled widget paint walk"}),
|
|
5590
|
+
.control_geometry = filteredTestArtifact(b, persist_mod, "ts-control-geometry-tests", &.{"compiled control geometry"}),
|
|
5591
|
+
.control_content = filteredTestArtifact(b, persist_mod, "ts-control-content-tests", &.{"compiled control content"}),
|
|
5592
|
+
.surface_recipes = filteredTestArtifact(b, persist_mod, "ts-surface-recipe-tests", &.{"compiled surface recipe"}),
|
|
5593
|
+
.widget_metrics = filteredTestArtifact(b, persist_mod, "ts-widget-metric-tests", &.{"compiled widget metric"}),
|
|
5594
|
+
.widget_presentation = filteredTestArtifact(b, persist_mod, "ts-widget-presentation-tests", &.{"compiled widget presentation"}),
|
|
5595
|
+
.widget_audits = filteredTestArtifact(b, persist_mod, "ts-widget-audits-tests", &.{"compiled widget audits"}),
|
|
5596
|
+
.construction = filteredTestArtifact(b, persist_mod, "ts-construction-e2e-tests", &.{"compiled construction"}),
|
|
5597
|
+
.composition_view = filteredTestArtifact(b, composition_decoder_mod, "ts-composition-view-tests", &.{"compiled grouped input"}),
|
|
5598
|
+
.composition_app = filteredTestArtifact(b, composition_app_mod, "ts-composition-app-tests", &.{"compiled app composition"}),
|
|
5599
|
+
.view_reload = filteredTestArtifact(b, view_reload_mod, "ts-view-reload-tests", &.{}),
|
|
5600
|
+
.view_provenance = filteredTestArtifact(b, view_provenance_mod, "ts-view-provenance-tests", &.{}),
|
|
5601
|
+
.chart_app = filteredTestArtifact(b, chart_app_mod, "ts-chart-app-tests", &.{"compiled app chart"}),
|
|
5602
|
+
.chart_view = filteredTestArtifact(b, chart_decoder, "ts-chart-view-tests", &.{"compiled app chart"}),
|
|
5603
|
+
.code_app = filteredTestArtifact(b, code_app_mod, "ts-code-app-tests", &.{"compiled app code"}),
|
|
5604
|
+
.code_view = filteredTestArtifact(b, code_decoder, "ts-code-view-tests", &.{"compiled app code"}),
|
|
5605
|
+
.markdown_app = filteredTestArtifact(b, markdown_app_mod, "ts-markdown-app-tests", &.{"compiled app Markdown"}),
|
|
5606
|
+
.markdown_view = filteredTestArtifact(b, markdown_decoder, "ts-markdown-view-tests", &.{"compiled app Markdown"}),
|
|
5607
|
+
.composition = filteredTestArtifact(b, persist_mod, "ts-composition-e2e-tests", &.{"compiled composition"}),
|
|
5608
|
+
.motion = filteredTestArtifact(b, persist_mod, "ts-motion-e2e-tests", &.{"compiled widget motion"}),
|
|
3729
5609
|
.markup = filteredTestArtifact(b, markup_e2e_mod, "ts-markup-e2e-tests", &.{}),
|
|
3730
5610
|
.kanban = filteredTestArtifact(b, kanban_mod, "ts-kanban-e2e-tests", &.{}),
|
|
5611
|
+
.workbench = filteredTestArtifact(b, workbench_mod, "ts-workbench-e2e-tests", &.{}),
|
|
5612
|
+
.feed = filteredTestArtifact(b, feed_mod, "ts-feed-e2e-tests", &.{}),
|
|
5613
|
+
.split_collapse = filteredTestArtifact(b, split_mod, "ts-split-collapse-e2e-tests", &.{}),
|
|
5614
|
+
.canvas_layers = filteredTestArtifact(b, canvas_layers_mod, "ts-canvas-layers-e2e-tests", &.{}),
|
|
5615
|
+
.audio_exact = filteredTestArtifact(b, audio_exact_mod, "ts-audio-exact-effect-tests", &.{}),
|
|
5616
|
+
.global_shortcut = filteredTestArtifact(b, global_shortcut_mod, "ts-global-shortcut-e2e-tests", &.{}),
|
|
5617
|
+
.spawn_exact = filteredTestArtifact(b, spawn_exact_mod, "ts-spawn-exact-effect-tests", &.{}),
|
|
5618
|
+
.keyboard_input = filteredTestArtifact(b, keyboard_input_mod, "ts-keyboard-input-e2e-tests", &.{}),
|
|
5619
|
+
.boot_images = filteredTestArtifact(b, boot_images_mod, "ts-boot-images-tests", &.{}),
|
|
5620
|
+
.deck = filteredTestArtifact(b, deck_mod, "ts-deck-e2e-tests", &.{}),
|
|
5621
|
+
.gpu_dashboard = filteredTestArtifact(b, gpu_dashboard_mod, "ts-gpu-dashboard-e2e-tests", &.{}),
|
|
5622
|
+
.channel_monitor = filteredTestArtifact(b, channel_monitor_mod, "ts-channel-monitor-e2e-tests", &.{}),
|
|
5623
|
+
.code_editor = filteredTestArtifact(b, code_editor_mod, "ts-code-editor-e2e-tests", &.{}),
|
|
5624
|
+
.markdown_viewer = filteredTestArtifact(b, markdown_viewer_mod, "ts-markdown-viewer-e2e-tests", &.{}),
|
|
5625
|
+
.notes = filteredTestArtifact(b, notes_mod, "ts-notes-e2e-tests", &.{}),
|
|
5626
|
+
.effects_probe = filteredTestArtifact(b, effects_probe_mod, "ts-effects-probe-e2e-tests", &.{}),
|
|
5627
|
+
.video_player = filteredTestArtifact(b, video_player_mod, "ts-video-player-e2e-tests", &.{}),
|
|
5628
|
+
.inbox = filteredTestArtifact(b, inbox_mod, "ts-inbox-e2e-tests", &.{}),
|
|
5629
|
+
.canvas_preview = filteredTestArtifact(b, canvas_preview_mod, "ts-canvas-preview-e2e-tests", &.{}),
|
|
5630
|
+
.habits = filteredTestArtifact(b, habits_mod, "ts-habits-e2e-tests", &.{}),
|
|
3731
5631
|
.soundboard = filteredTestArtifact(b, soundboard_mod, "ts-soundboard-e2e-tests", &.{}),
|
|
3732
5632
|
.system_monitor = filteredTestArtifact(b, monitor_mod, "ts-system-monitor-e2e-tests", &.{}),
|
|
3733
5633
|
.scaffold_ide = filteredTestArtifact(b, scaffold_ide_mod, "ts-scaffold-ide-e2e-tests", &.{}),
|
|
5634
|
+
.corewire = corewire_exe,
|
|
5635
|
+
.profile_archive = profile_archive,
|
|
3734
5636
|
.ai_chat = filteredTestArtifact(b, ai_chat_mod, "ts-ai-chat-e2e-tests", &.{}),
|
|
5637
|
+
.journal_codecs = filteredTestArtifact(b, feed_reader_mod, "ts-journal-codecs-tests", &.{"compiled journal codec"}),
|
|
3735
5638
|
.feed_reader = filteredTestArtifact(b, feed_reader_mod, "ts-feed-reader-e2e-tests", &.{}),
|
|
5639
|
+
.shell_layout = filteredTestArtifact(b, shell_layout_mod, "ts-shell-layout-e2e-tests", &.{}),
|
|
5640
|
+
.typography = filteredTestArtifact(b, typography_mod, "ts-typography-e2e-tests", &.{}),
|
|
5641
|
+
.virtual_fixed = filteredTestArtifact(b, virtual_fixed_mod, "ts-virtual-fixed-tests", &.{}),
|
|
5642
|
+
.surface_layout = filteredTestArtifact(b, surface_layout_mod, "ts-surface-layout-e2e-tests", &.{}),
|
|
3736
5643
|
.services = filteredTestArtifact(b, services_e2e_mod, "ts-services-e2e-tests", &.{}),
|
|
3737
5644
|
.services_pool = if (services_pool_mod) |pool_mod| filteredTestArtifact(b, pool_mod, "ts-services-pool-e2e-tests", &.{}) else null,
|
|
3738
5645
|
.mobile_battery = mobile_battery,
|
|
3739
5646
|
.service_host_bench = service_bench_exe,
|
|
3740
5647
|
.sidecar_conformance = filteredTestArtifact(b, conformance_mod, "sidecar-conformance-tests", &.{}),
|
|
5648
|
+
.external_core_trap = b.addExecutable(.{ .name = "external-core-trap", .root_module = trap_mod, .use_llvm = @import("build/app.zig").useLlvmWorkaround(target) }),
|
|
3741
5649
|
.external_core_abi_laws = filteredTestArtifact(b, abi_laws_mod, "external-core-abi-tests", &.{}),
|
|
3742
5650
|
.mixed_return_abi_laws = filteredTestArtifact(b, mixed_return_abi_mod, "mixed-return-abi-tests", &.{}),
|
|
3743
5651
|
.core_contracts = core_contracts.toOwnedSlice(b.allocator) catch @panic("OOM"),
|
|
@@ -3837,6 +5745,8 @@ fn externalServiceFixture(
|
|
|
3837
5745
|
const compile = b.addSystemCommand(&.{node});
|
|
3838
5746
|
compile.addFileArg(b.path("packages/core/scripts/run_external_service_compiler.mjs"));
|
|
3839
5747
|
compile.addFileInput(b.path("packages/core/scripts/compiler_command.mjs"));
|
|
5748
|
+
compile.addFileInput(b.path("packages/core/scripts/scriptc_toolchain.mjs"));
|
|
5749
|
+
compile.addFileInput(b.path("packages/core/scripts/scriptc-toolchain.json"));
|
|
3840
5750
|
compile.addArg("--stage");
|
|
3841
5751
|
compile.addDirectoryArg(stage_dir);
|
|
3842
5752
|
compile.addArg("--manifest");
|
|
@@ -3865,7 +5775,8 @@ fn externalServiceFixture(
|
|
|
3865
5775
|
if (b.graph.environ_map.get("NATIVE_SDK_CORE_COMPILER")) |override| {
|
|
3866
5776
|
compile.addArgs(&.{ "--compiler", override });
|
|
3867
5777
|
} else {
|
|
3868
|
-
compile.
|
|
5778
|
+
compile.addArg("--compiler-package-origin");
|
|
5779
|
+
compile.addFileArg(b.path("packages/core/package.json"));
|
|
3869
5780
|
}
|
|
3870
5781
|
|
|
3871
5782
|
return .{
|
|
@@ -3978,6 +5889,7 @@ const ExternalCoreFixtureSpec = struct {
|
|
|
3978
5889
|
/// The fixture stands in for an app whose manifest declares the Tier-4
|
|
3979
5890
|
/// build capability and its matching core-effect permission.
|
|
3980
5891
|
credentials_capability: bool = false,
|
|
5892
|
+
keyboard_input_permission: bool = false,
|
|
3981
5893
|
/// Attested integer slots the compiled projection carries as f64
|
|
3982
5894
|
/// (values that reach the f64-exact boundary have no honest i64
|
|
3983
5895
|
/// declaration on that side) — corewire's --f64-slot demotions,
|
|
@@ -3985,6 +5897,12 @@ const ExternalCoreFixtureSpec = struct {
|
|
|
3985
5897
|
f64_slots: []const []const u8 = &.{},
|
|
3986
5898
|
emit_services: bool = false,
|
|
3987
5899
|
service_packages: []const []const u8 = &.{},
|
|
5900
|
+
typescript_view: bool = false,
|
|
5901
|
+
view_markup: ?[]const u8 = null,
|
|
5902
|
+
window_views: []const []const u8 = &.{},
|
|
5903
|
+
/// Stage the development view evaluator and its exports, as a
|
|
5904
|
+
/// `-Dview-reload` app build does.
|
|
5905
|
+
view_reload: bool = false,
|
|
3988
5906
|
};
|
|
3989
5907
|
|
|
3990
5908
|
/// Compile one TS fixture core through the external core compiler at
|
|
@@ -3998,6 +5916,7 @@ fn externalCoreFixtureModule(
|
|
|
3998
5916
|
optimize: std.builtin.OptimizeMode,
|
|
3999
5917
|
node: []const u8,
|
|
4000
5918
|
corewire_exe: *std.Build.Step.Compile,
|
|
5919
|
+
build_trace: bool,
|
|
4001
5920
|
spec: ExternalCoreFixtureSpec,
|
|
4002
5921
|
) ExternalCoreFixture {
|
|
4003
5922
|
const app_build = @import("build/app.zig");
|
|
@@ -4013,13 +5932,15 @@ fn externalCoreFixtureModule(
|
|
|
4013
5932
|
check.addFileArg(b.path(spec.entry));
|
|
4014
5933
|
check.addArg("--contract");
|
|
4015
5934
|
const contract_raw = check.addOutputFileArg("core.contract.json");
|
|
4016
|
-
const contract = app_build.stabilizeGeneratedFile(b, contract_raw, "core.contract.json",
|
|
5935
|
+
const contract = app_build.stabilizeGeneratedFile(b, contract_raw, "core.contract.json", build_trace);
|
|
4017
5936
|
check.addArg("--contract-entry");
|
|
4018
5937
|
check.addArg(spec.entry);
|
|
5938
|
+
if (spec.window_views.len > 0) check.addArg("--window-views");
|
|
5939
|
+
for (spec.window_views) |label| check.addArgs(&.{ "--window-view", label });
|
|
4019
5940
|
const services_contract: ?std.Build.LazyPath = if (spec.emit_services) services: {
|
|
4020
5941
|
check.addArg("--services-contract");
|
|
4021
5942
|
const raw = check.addOutputFileArg("services.contract.json");
|
|
4022
|
-
break :services app_build.stabilizeGeneratedFile(b, raw, "services.contract.json",
|
|
5943
|
+
break :services app_build.stabilizeGeneratedFile(b, raw, "services.contract.json", build_trace);
|
|
4023
5944
|
} else null;
|
|
4024
5945
|
for (spec.service_packages) |package_entry| check.addArgs(&.{ "--service-package", package_entry });
|
|
4025
5946
|
const services_client: ?std.Build.LazyPath = if (services_contract) |service_contract| client: {
|
|
@@ -4028,12 +5949,13 @@ fn externalCoreFixtureModule(
|
|
|
4028
5949
|
service_project.addFileArg(service_contract);
|
|
4029
5950
|
service_project.addArg("--service-client");
|
|
4030
5951
|
const client_raw = service_project.addOutputFileArg("services.gen.ts");
|
|
4031
|
-
break :client app_build.stabilizeGeneratedFile(b, client_raw, "services.gen.ts",
|
|
5952
|
+
break :client app_build.stabilizeGeneratedFile(b, client_raw, "services.gen.ts", build_trace);
|
|
4032
5953
|
} else null;
|
|
4033
5954
|
if (spec.persist_capability) check.addArgs(&.{ "--capability", "persist" });
|
|
4034
5955
|
if (spec.store_capability) check.addArgs(&.{ "--capability", "store" });
|
|
4035
5956
|
if (spec.relational_capability) check.addArgs(&.{ "--capability", "sqlite" });
|
|
4036
5957
|
if (spec.credentials_capability) check.addArgs(&.{ "--capability", "credentials", "--permission", "credentials" });
|
|
5958
|
+
if (spec.keyboard_input_permission) check.addArgs(&.{ "--permission", "keyboard_input" });
|
|
4037
5959
|
if (std.mem.eql(u8, spec.entry, "tests/ts-core/fixture.ts")) check.addArgs(&.{ "--permission", "filesystem" });
|
|
4038
5960
|
tsCoreAddDirInputs(b, check, "packages/core/sdk");
|
|
4039
5961
|
tsCoreAddDirInputs(b, check, std.fs.path.dirname(spec.entry) orelse ".");
|
|
@@ -4058,6 +5980,9 @@ fn externalCoreFixtureModule(
|
|
|
4058
5980
|
const facade = project.addOutputFileArg("core_facade.ts");
|
|
4059
5981
|
project.addArg("--profile");
|
|
4060
5982
|
const profile = project.addOutputFileArg("core_profile.json");
|
|
5983
|
+
// Keep root fixture compilation on the same profile as an app build:
|
|
5984
|
+
// Debug uses scriptc's incremental dev objects; release lanes stay optimized.
|
|
5985
|
+
project.addArgs(&.{ "--optimization", app_build.scriptcOptimizationForMode(optimize) });
|
|
4061
5986
|
for (spec.f64_slots) |slot| {
|
|
4062
5987
|
project.addArg("--f64-slot");
|
|
4063
5988
|
project.addArg(slot);
|
|
@@ -4067,6 +5992,7 @@ fn externalCoreFixtureModule(
|
|
|
4067
5992
|
// generated entry/profile, one scratch tree.
|
|
4068
5993
|
const stage_run = b.addSystemCommand(&.{node});
|
|
4069
5994
|
stage_run.addFileArg(b.path("packages/core/scripts/stage_external_core.mjs"));
|
|
5995
|
+
app_build.addViewFrontendInputs(b, b, stage_run);
|
|
4070
5996
|
stage_run.addArg("--src");
|
|
4071
5997
|
stage_run.addDirectoryArg(spec.src_dir);
|
|
4072
5998
|
stage_run.addArg("--sdk");
|
|
@@ -4081,7 +6007,17 @@ fn externalCoreFixtureModule(
|
|
|
4081
6007
|
stage_run.addArg("--services-client");
|
|
4082
6008
|
stage_run.addFileArg(client);
|
|
4083
6009
|
}
|
|
4084
|
-
|
|
6010
|
+
if (spec.typescript_view) {
|
|
6011
|
+
stage_run.addArg("--view-markup");
|
|
6012
|
+
stage_run.addFileArg(b.path(spec.view_markup orelse b.fmt("{s}/app.native", .{std.fs.path.dirname(spec.entry).?})));
|
|
6013
|
+
stage_run.addArg("--view-contract");
|
|
6014
|
+
stage_run.addFileArg(contract);
|
|
6015
|
+
if (spec.view_reload) {
|
|
6016
|
+
stage_run.addArg("--view-reload");
|
|
6017
|
+
app_build.addViewReloadInputs(b, stage_run);
|
|
6018
|
+
}
|
|
6019
|
+
}
|
|
6020
|
+
tsCoreAddCoreDirInputs(b, stage_run, std.fs.path.dirname(spec.entry) orelse ".", spec.typescript_view);
|
|
4085
6021
|
app_build.addStagedCoreSdkInputs(b, b, stage_run);
|
|
4086
6022
|
stage_run.addArg("--out");
|
|
4087
6023
|
const stage_dir = stage_run.addOutputDirectoryArg("stage");
|
|
@@ -4091,6 +6027,10 @@ fn externalCoreFixtureModule(
|
|
|
4091
6027
|
const compile = b.addSystemCommand(&.{node});
|
|
4092
6028
|
compile.addFileArg(b.path("packages/core/scripts/run_external_core_compiler.mjs"));
|
|
4093
6029
|
compile.addFileInput(b.path("packages/core/scripts/compiler_command.mjs"));
|
|
6030
|
+
compile.addFileInput(b.path("packages/core/scripts/scriptc_toolchain.mjs"));
|
|
6031
|
+
compile.addFileInput(b.path("packages/core/scripts/scriptc-toolchain.json"));
|
|
6032
|
+
compile.addFileInput(b.path("packages/core/scripts/run_library_compiler.mjs"));
|
|
6033
|
+
if (build_trace) compile.setEnvironmentVariable("SCRIPTC_TIMING", "1");
|
|
4094
6034
|
compile.addArg("--stage");
|
|
4095
6035
|
compile.addDirectoryArg(stage_dir);
|
|
4096
6036
|
compile.addArgs(&.{ "--name", spec.name });
|
|
@@ -4117,9 +6057,14 @@ fn externalCoreFixtureModule(
|
|
|
4117
6057
|
// driver still refuses a release other than the SDK's pin.
|
|
4118
6058
|
compile.addArgs(&.{ "--compiler", override });
|
|
4119
6059
|
} else {
|
|
4120
|
-
compile.
|
|
6060
|
+
compile.addArg("--compiler-package-origin");
|
|
6061
|
+
compile.addFileArg(b.path("packages/core/package.json"));
|
|
4121
6062
|
}
|
|
4122
6063
|
|
|
6064
|
+
// Compile a complete fixture in isolation when measuring compiler phases.
|
|
6065
|
+
const compile_step = b.step(b.fmt("compile-ts-core-{s}", .{spec.name}), "Compile one complete TypeScript fixture archive and its ABI sidecar");
|
|
6066
|
+
compile_step.dependOn(&compile.step);
|
|
6067
|
+
|
|
4123
6068
|
// The mirror, generated from the archive's OWN co-emitted contract,
|
|
4124
6069
|
// staged in the app lane's module shape with the archive linked
|
|
4125
6070
|
// behind it (the compiler's runtime needs libc).
|
|
@@ -4167,13 +6112,15 @@ fn tsCoreAddDirInputs(b: *std.Build, transpile: *std.Build.Step.Run, dir_path: [
|
|
|
4167
6112
|
|
|
4168
6113
|
/// The source set stage_external_core.mjs copies: every ordinary `.ts` file,
|
|
4169
6114
|
/// excluding the independent services compiler class and declaration files.
|
|
4170
|
-
|
|
6115
|
+
/// Compiled views additionally consume every markup source in this tree.
|
|
6116
|
+
fn tsCoreAddCoreDirInputs(b: *std.Build, stage: *std.Build.Step.Run, dir_path: []const u8, include_markup: bool) void {
|
|
4171
6117
|
var dir = b.build_root.handle.openDir(b.graph.io, dir_path, .{ .iterate = true }) catch return;
|
|
4172
6118
|
defer dir.close(b.graph.io);
|
|
4173
6119
|
var walker = dir.walk(b.allocator) catch return;
|
|
4174
6120
|
defer walker.deinit();
|
|
4175
6121
|
while (walker.next(b.graph.io) catch null) |entry| {
|
|
4176
|
-
if (entry.kind != .file or
|
|
6122
|
+
if (entry.kind != .file or std.mem.endsWith(u8, entry.basename, ".d.ts")) continue;
|
|
6123
|
+
if (!std.mem.endsWith(u8, entry.basename, ".ts") and !(include_markup and std.mem.endsWith(u8, entry.basename, ".native"))) continue;
|
|
4177
6124
|
const normalized = b.dupe(entry.path);
|
|
4178
6125
|
for (normalized) |*char| if (char.* == '\\') {
|
|
4179
6126
|
char.* = '/';
|