|
Download docs/symbol-resolution.md from AnthropicallyHuggingFaces/ProjectOS: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/docs/symbol-resolution.md
- Command line
-
hf download hf://spaces/AnthropicallyHuggingFaces/ProjectOS/docs/symbol-resolution.md
-
curl -L -o symbol-resolution.md https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/docs/symbol-resolution.md
1.23 kB
| # Canonical symbols and language profiles | |
| `bootstrap.xml` stores architecture names in canonical form and lists aliases that may appear in generated artifacts or external clients. The schema engine validates the registry, then generates: | |
| - `configs/generated/symbol-aliases.generated.json` | |
| - `configs/generated/language-profiles.generated.json` | |
| For example, `IProjectRepository`, `ProjectRepo`, and `ProjectStore` all resolve to `ProjectRepository`. Unknown symbols pass through unchanged; ambiguous aliases fail generation. | |
| Logic Fabric exposes `resolveSymbols` for type lookup and `emitSymbols` for target-language naming. A generator can resolve an alias first, then emit the canonical symbol with its selected profile: | |
| ```ts | |
| import { SymbolResolver } from '@projectos/schema-engine'; | |
| const resolver = new SymbolResolver(aliases, languageProfiles); | |
| resolver.resolve('IProjectRepository'); // ProjectRepository | |
| resolver.emit('IProjectRepository', 'CSharp'); // IProjectRepository | |
| resolver.emit('ProjectRepository', 'TypeScript'); // ProjectRepository | |
| ``` | |
| Language profiles only affect emitted names. They do not change the canonical registry used for planning, dependency analysis, council requests, or type lookup. | |