|
| 1 | +# stgsharp.vss.dev |
| 2 | + |
| 3 | +VSS architecture development repository — upstream development bed for |
| 4 | +[`StgSharp.UserInterface`](https://github.com/Nitload-NSI/StgSharp). |
| 5 | + |
| 6 | +## What is this repository? |
| 7 | + |
| 8 | +`stgsharp.vss.dev` is a focused, standalone development repository for the |
| 9 | +**VSS (View–State–Service)** architecture pattern. |
| 10 | + |
| 11 | +Its role in the StgSharp ecosystem mirrors the relationship between Fedora and RHEL: |
| 12 | +new VSS type primitives, interface contracts and architecture experiments are developed |
| 13 | +and stabilised here first, then upstreamed into the main `StgSharp` repository once proven |
| 14 | +in production. |
| 15 | + |
| 16 | +``` |
| 17 | +stgsharp.vss.dev ──────────────────→ Nitload-NSI/StgSharp |
| 18 | + (upstream dev bed) back-flow (main release repo) |
| 19 | +``` |
| 20 | + |
| 21 | +## Repository layout |
| 22 | + |
| 23 | +``` |
| 24 | +stgsharp.vss.dev/ |
| 25 | +├── VssDev.Core/ # VSS type scaffold (Intent, StateSnapshot, adapters …) |
| 26 | +├── Directory.Build.props # shared MSBuild properties (net8.0, LangVersion preview …) |
| 27 | +├── Directory.Build.targets # shared post-build copy target |
| 28 | +├── .editorconfig # editor conventions (UTF-8, LF, CS1591 suggestion) |
| 29 | +├── .gitattributes # line-ending policy (LF repo-wide, CRLF for .bat/.cmd/.ps1) |
| 30 | +├── .gitignore # standard .NET ignore list |
| 31 | +├── LICENSE # MIT |
| 32 | +└── stgsharp.vss.dev.sln # Visual Studio solution |
| 33 | +``` |
| 34 | + |
| 35 | +## Upstream / downstream boundaries |
| 36 | + |
| 37 | +| What belongs here | What belongs in StgSharp | |
| 38 | +|---|---| |
| 39 | +| VSS interface contracts (`IInputAdapter`, `IOutputAdapter`, `IVssState`) | Stable, versioned releases of those contracts | |
| 40 | +| `Intent` / `StateSnapshot` base types and related utilities | Published NuGet packages (future) | |
| 41 | +| Architecture experiments and proof-of-concept implementations | Graphics / mathematics / native interop | |
| 42 | +| Production VSS state machines and service adapters (company project layer) | — | |
| 43 | + |
| 44 | +**Rule**: generic improvements flow *up* to StgSharp. Business-specific code stays here. |
| 45 | + |
| 46 | +## VSS Architecture overview |
| 47 | + |
| 48 | +VSS separates an application into three layers with strictly one-way knowledge: |
| 49 | + |
| 50 | +``` |
| 51 | +V (View / I/O adapters) |
| 52 | + ↓ Intent ↑ StateSnapshot |
| 53 | +S (State machine — sole owner of application state) |
| 54 | + ↓ Command ↑ Event |
| 55 | +S (Service layer — devices, I/O, long-running work) |
| 56 | +``` |
| 57 | + |
| 58 | +See [`StgSharp.UserInterface/VSS_Arch.md`](https://github.com/Nitload-NSI/StgSharp/blob/main/StgSharp.UserInterface/VSS_Arch.md) |
| 59 | +for the full design rationale. |
| 60 | + |
| 61 | +## Requirements |
| 62 | + |
| 63 | +- .NET 8.0 SDK or later |
| 64 | +- Windows 10/11 or Linux |
| 65 | +- x64 or ARM64 architecture |
| 66 | + |
| 67 | +## Getting started |
| 68 | + |
| 69 | +### Clone and build |
| 70 | + |
| 71 | +```bash |
| 72 | +git clone https://github.com/Nitload-NSI/stgsharp.vss.dev.git vssdev |
| 73 | +cd vssdev |
| 74 | +dotnet build |
| 75 | +``` |
| 76 | + |
| 77 | +### Connect a local repository named `vssdev` to the remote |
| 78 | + |
| 79 | +If you have already initialised a local repository: |
| 80 | + |
| 81 | +```bash |
| 82 | +# inside your local vssdev directory |
| 83 | +git remote add origin https://github.com/Nitload-NSI/stgsharp.vss.dev.git |
| 84 | +git fetch origin |
| 85 | +git checkout -b main --track origin/main |
| 86 | +# push your first commit |
| 87 | +git push -u origin main |
| 88 | +``` |
| 89 | + |
| 90 | +Or start fresh: |
| 91 | + |
| 92 | +```bash |
| 93 | +mkdir vssdev && cd vssdev |
| 94 | +git init -b main |
| 95 | +git remote add origin https://github.com/Nitload-NSI/stgsharp.vss.dev.git |
| 96 | +# copy bootstrap files, then: |
| 97 | +git add . |
| 98 | +git commit -m "chore: initial repository bootstrap" |
| 99 | +git push -u origin main |
| 100 | +``` |
| 101 | + |
| 102 | +## License |
| 103 | + |
| 104 | +MIT — see [LICENSE](LICENSE). |
0 commit comments