Skip to content

Commit 262036b

Browse files
committed
assets
1 parent 33f8e45 commit 262036b

42 files changed

Lines changed: 11130 additions & 7703 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-docs.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Deploy Documentation to GitHub Pages
1+
name: Deploy Website + Docs to GitHub Pages
22

33
on:
44
push:
55
branches:
66
- main
77
paths:
8+
- 'website/**'
89
- 'docsite/**'
910
- '.github/workflows/deploy-docs.yml'
1011
workflow_dispatch:
@@ -21,9 +22,6 @@ concurrency:
2122
jobs:
2223
build:
2324
runs-on: ubuntu-latest
24-
defaults:
25-
run:
26-
working-directory: docsite
2725
steps:
2826
- name: Checkout
2927
uses: actions/checkout@v4
@@ -33,19 +31,40 @@ jobs:
3331
with:
3432
node-version: '20'
3533

36-
- name: Install dependencies
34+
# Build Website (Vite React SPA)
35+
- name: Install website dependencies
36+
working-directory: website
3737
run: npm install
3838

3939
- name: Build website
40+
working-directory: website
41+
run: npm run build
42+
43+
# Build Docsite (Docusaurus)
44+
- name: Install docsite dependencies
45+
working-directory: docsite
46+
run: npm install
47+
48+
- name: Build docsite
49+
working-directory: docsite
4050
run: npm run build
4151

52+
# Combine builds
53+
- name: Combine website + docs
54+
run: |
55+
mkdir -p combined
56+
cp -r website/dist/* combined/
57+
mkdir -p combined/docs
58+
cp -r docsite/build/* combined/docs/
59+
touch combined/.nojekyll
60+
4261
- name: Setup Pages
4362
uses: actions/configure-pages@v4
4463

4564
- name: Upload artifact
4665
uses: actions/upload-pages-artifact@v3
4766
with:
48-
path: docsite/build
67+
path: combined
4968

5069
deploy:
5170
environment:

build.zig

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,40 @@ pub fn build(b: *std.Build) void {
348348
.target = target,
349349
.optimize = optimize,
350350
});
351+
// VSA module for TRI
352+
const vsa_tri = b.createModule(.{
353+
.root_source_file = b.path("src/vsa.zig"),
354+
.target = target,
355+
.optimize = optimize,
356+
});
357+
// TVC Corpus module for TRI (distributed learning)
358+
const tvc_corpus_mod = b.createModule(.{
359+
.root_source_file = b.path("src/tvc/tvc_corpus.zig"),
360+
.target = target,
361+
.optimize = optimize,
362+
.imports = &.{
363+
.{ .name = "vsa", .module = vsa_tri },
364+
},
365+
});
366+
// TVC Distributed module for TRI (file-based sharing)
367+
const tvc_distributed_mod = b.createModule(.{
368+
.root_source_file = b.path("src/tvc/tvc_distributed.zig"),
369+
.target = target,
370+
.optimize = optimize,
371+
.imports = &.{
372+
.{ .name = "tvc_corpus", .module = tvc_corpus_mod },
373+
},
374+
});
375+
// IGLA TVC Chat module (fluent chat + TVC integration)
376+
const igla_tvc_chat_mod = b.createModule(.{
377+
.root_source_file = b.path("src/vibeec/igla_tvc_chat.zig"),
378+
.target = target,
379+
.optimize = optimize,
380+
.imports = &.{
381+
.{ .name = "igla_chat", .module = vibeec_chat },
382+
.{ .name = "tvc_corpus", .module = tvc_corpus_mod },
383+
},
384+
});
351385
// TRI - Unified Trinity CLI
352386
const tri = b.addExecutable(.{
353387
.name = "tri",
@@ -359,6 +393,10 @@ pub fn build(b: *std.Build) void {
359393
.{ .name = "trinity_swe", .module = vibeec_swe },
360394
.{ .name = "igla_chat", .module = vibeec_chat },
361395
.{ .name = "igla_coder", .module = vibeec_coder },
396+
.{ .name = "vsa", .module = vsa_tri },
397+
.{ .name = "tvc_corpus", .module = tvc_corpus_mod },
398+
.{ .name = "tvc_distributed", .module = tvc_distributed_mod },
399+
.{ .name = "igla_tvc_chat", .module = igla_tvc_chat_mod },
362400
},
363401
}),
364402
});
@@ -388,4 +426,27 @@ pub fn build(b: *std.Build) void {
388426
}
389427
const hybrid_step = b.step("hybrid", "Run Trinity Hybrid Local Coder (IGLA + Ollama)");
390428
hybrid_step.dependOn(&run_hybrid.step);
429+
430+
// VSA module (re-exports HybridBigInt from hybrid.zig)
431+
const vsa_mod = b.createModule(.{
432+
.root_source_file = b.path("src/vsa.zig"),
433+
.target = target,
434+
.optimize = optimize,
435+
});
436+
437+
// Generated VSA Imported System tests (Cycle 27)
438+
// Uses vsa module only - hybrid types accessed via vsa.HybridBigInt
439+
const vsa_imported_tests = b.addTest(.{
440+
.root_module = b.createModule(.{
441+
.root_source_file = b.path("generated/vsa_imported_system.zig"),
442+
.target = target,
443+
.optimize = optimize,
444+
.imports = &.{
445+
.{ .name = "vsa", .module = vsa_mod },
446+
},
447+
}),
448+
});
449+
const run_vsa_imported = b.addRunArtifact(vsa_imported_tests);
450+
const vsa_imported_step = b.step("test-vsa-imported", "Test VSA Imported System (real @import)");
451+
vsa_imported_step.dependOn(&run_vsa_imported.step);
391452
}

0 commit comments

Comments
 (0)