Skip to content

Commit 9fd381d

Browse files
committed
no-mistakes(review): Make C# init test assert active entry; reword llms spine
1 parent 0adad48 commit 9fd381d

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

‎docs/llms/llms.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This `llms.txt` is the short index; the deep, version-matched how-to is the scaf
5050

5151
## The six pillars
5252

53-
MetaObjects pillars are capabilities of the same metadata spine, not separate products. Each carries a maturity label — what ships, in which ports, at what stability:
53+
MetaObjects pillars are capabilities of one metadata model, not separate products. Each carries a maturity label — what ships, in which ports, at what stability:
5454

5555
- **Codegen, Runtime metadata, Drift detection, Prompt construction** — shipped in all five ports (TS / Java / Kotlin / C# / Python), gated by the cross-port conformance corpora, though not uniformly deep: see the [capability matrix](https://github.com/metaobjectsdev/metaobjects#capability-matrix) for per-port coverage, and note the field ranking is drift > codegen > prompts > runtime metadata (the youngest of the four).
5656
- **Requirements and testing** — vocabulary, the `verify` checks and a `requirement-tests` generator in all five ports; the authoring lint is TypeScript-only; dogfooded on maintainer-owned projects, no outside adopter yet.
@@ -105,7 +105,7 @@ MetaObjects deliberately does **not** ship one universal binary. Schema operatio
105105
- `server/csharp/` — C# implementation (`MetaObjects`, `MetaObjects.Render`, `MetaObjects.Codegen`)
106106
- `server/python/` — Python implementation (`metaobjects`, `ObjectManager`)
107107
- `client/web/` — universal web client TypeScript packages consumed by all backends (`@metaobjectsdev/runtime-web`, `@metaobjectsdev/react`, `@metaobjectsdev/tanstack`)
108-
- `examples/advanced-modeling/` — a worked, runnable model exercising projections, value objects, TPH and prompt payloads on one spine (the non-toy reference for authoring)
108+
- `examples/advanced-modeling/` — a worked, runnable model exercising projections, value objects, TPH and prompt payloads together (the non-toy reference for authoring)
109109

110110
## TypeScript packages (npm)
111111

‎server/csharp/MetaObjects.Cli.Tests/InitWithDocsTests.cs‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ public sealed class InitWithDocsTests : IDisposable
1111
private readonly string _root = Path.Combine(Path.GetTempPath(), "meta-init-docs-" + Guid.NewGuid().ToString("N"));
1212
private string List => File.ReadAllText(Path.Combine(_root, "codegen", "Generators.cs"));
1313

14+
private IEnumerable<string> ActiveEntries => List.Split('\n')
15+
.Select(l => l.Trim())
16+
.SkipWhile(l => !l.StartsWith("public static IReadOnlyList<IGenerator> All", StringComparison.Ordinal))
17+
.Where(l => l.StartsWith("new ", StringComparison.Ordinal));
18+
1419
public InitWithDocsTests() => Directory.CreateDirectory(_root);
1520
public void Dispose() { try { Directory.Delete(_root, recursive: true); } catch { } }
1621

@@ -19,8 +24,7 @@ public void With_docs_lists_the_api_docs_generator_and_says_how_it_is_drift_chec
1924
{
2025
var lines = InitCommand.Run(_root, withDocs: true);
2126

22-
Assert.Contains("new MetaObjects.Codegen.Generators.ApiDocsGenerator { OutDir = \"docs/csharp\"", List);
23-
Assert.DoesNotContain("// new MetaObjects.Codegen.Generators.ApiDocsGenerator { OutDir", List.Replace("// new MetaObjects.Codegen.Generators.ApiDocsGenerator { OutDir = \"docs/csharp\", ProjectName = \"shop\" },", ""));
27+
Assert.Contains(ActiveEntries, e => e.StartsWith("new MetaObjects.Codegen.Generators.ApiDocsGenerator { OutDir = \"docs/csharp\"", StringComparison.Ordinal));
2428
Assert.Contains("csharp", string.Join("\n", lines));
2529
Assert.Contains("outDir", string.Join("\n", lines));
2630
}
@@ -31,6 +35,7 @@ public void Without_the_flag_the_list_is_unchanged()
3135
InitCommand.Run(_root);
3236

3337
Assert.Equal(CodegenScaffold.GeneratorsCs([]), List);
38+
Assert.Empty(ActiveEntries);
3439
}
3540

3641
[Fact]

0 commit comments

Comments
 (0)