@@ -1245,6 +1245,29 @@ pub fn build(b: *std.Build) void {
12451245 .target = target ,
12461246 .optimize = optimize ,
12471247 });
1248+ // TRI Utils module (Cycle 100: for testing)
1249+ const tri_colors_mod = b .createModule (.{
1250+ .root_source_file = b .path ("src/tri/tri_colors.zig" ),
1251+ .target = target ,
1252+ .optimize = optimize ,
1253+ });
1254+ const tri_utils_mod = b .createModule (.{
1255+ .root_source_file = b .path ("src/tri/tri_utils.zig" ),
1256+ .target = target ,
1257+ .optimize = optimize ,
1258+ .imports = &.{
1259+ .{ .name = "tri_colors" , .module = tri_colors_mod },
1260+ },
1261+ });
1262+ // TRI Commands module (Cycle 100: for testing)
1263+ const tri_commands_mod = b .createModule (.{
1264+ .root_source_file = b .path ("src/tri/tri_commands.zig" ),
1265+ .target = target ,
1266+ .optimize = optimize ,
1267+ .imports = &.{
1268+ .{ .name = "tri_colors" , .module = tri_colors_mod },
1269+ },
1270+ });
12481271 // TRI - Unified Trinity CLI
12491272 const tri = b .addExecutable (.{
12501273 .name = "tri" ,
@@ -1276,6 +1299,33 @@ pub fn build(b: *std.Build) void {
12761299 const tri_step = b .step ("tri" , "Run TRI - Unified Trinity CLI" );
12771300 tri_step .dependOn (& run_tri .step );
12781301
1302+ // Cycle 100: REPL Testing Infrastructure
1303+ // Test suite for TRI CLI commands with sacred assertions
1304+ const tri_testing = b .addTest (.{
1305+ .root_module = b .createModule (.{
1306+ .root_source_file = b .path ("src/tri/testing/repl_tests.zig" ),
1307+ .target = target ,
1308+ .optimize = optimize ,
1309+ .imports = &.{
1310+ .{ .name = "tri_utils" , .module = tri_utils_mod },
1311+ .{ .name = "tri_commands" , .module = tri_commands_mod },
1312+ .{ .name = "trinity_swe" , .module = vibeec_swe },
1313+ .{ .name = "igla_chat" , .module = vibeec_chat },
1314+ .{ .name = "igla_hybrid_chat" , .module = vibeec_hybrid_chat },
1315+ .{ .name = "igla_coder" , .module = vibeec_coder },
1316+ .{ .name = "vsa" , .module = vsa_tri },
1317+ .{ .name = "tvc_corpus" , .module = tvc_corpus_mod },
1318+ .{ .name = "tvc_distributed" , .module = tvc_distributed_mod },
1319+ .{ .name = "igla_tvc_chat" , .module = igla_tvc_chat_mod },
1320+ .{ .name = "pas_orchestrator" , .module = pas_orchestrator_mod },
1321+ .{ .name = "api" , .module = api_mod },
1322+ },
1323+ }),
1324+ });
1325+ const run_tri_testing = b .addRunArtifact (tri_testing );
1326+ const tri_testing_step = b .step ("test-repl" , "Run TRI REPL Tests (Cycle 100)" );
1327+ tri_testing_step .dependOn (& run_tri_testing .step );
1328+
12791329 // Trinity Hybrid Local Coder (IGLA + Ollama)
12801330 const hybrid_local = b .addExecutable (.{
12811331 .name = "trinity-hybrid" ,
0 commit comments