@elevasis/sdk 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +75 -8
- package/dist/index.d.ts +1464 -749
- package/dist/index.js +74 -7
- package/dist/types/worker/adapters/crm.d.ts +20 -0
- package/dist/types/worker/adapters/index.d.ts +2 -0
- package/dist/types/worker/adapters/projects.d.ts +20 -0
- package/dist/worker/index.js +41 -1
- package/package.json +2 -2
- package/reference/_navigation.md +103 -5
- package/reference/_reference-manifest.json +72 -0
- package/reference/deployment/provided-features.mdx +64 -25
- package/reference/framework/index.mdx +2 -2
- package/reference/framework/project-structure.mdx +10 -8
- package/reference/index.mdx +3 -3
- package/reference/packages/core/src/README.md +34 -0
- package/reference/packages/core/src/organization-model/README.md +94 -0
- package/reference/packages/ui/src/api/README.md +18 -0
- package/reference/packages/ui/src/auth/README.md +18 -0
- package/reference/packages/ui/src/components/README.md +24 -0
- package/reference/packages/ui/src/execution/README.md +16 -0
- package/reference/packages/ui/src/features/README.md +28 -0
- package/reference/packages/ui/src/graph/README.md +16 -0
- package/reference/packages/ui/src/hooks/README.md +24 -0
- package/reference/packages/ui/src/initialization/README.md +19 -0
- package/reference/packages/ui/src/organization/README.md +18 -0
- package/reference/packages/ui/src/profile/README.md +19 -0
- package/reference/packages/ui/src/provider/README.md +31 -0
- package/reference/packages/ui/src/router/README.md +18 -0
- package/reference/packages/ui/src/sse/README.md +13 -0
- package/reference/packages/ui/src/theme/README.md +23 -0
- package/reference/packages/ui/src/types/README.md +16 -0
- package/reference/packages/ui/src/utils/README.md +18 -0
- package/reference/packages/ui/src/zustand/README.md +18 -0
- package/reference/resources/patterns.mdx +54 -8
- package/reference/scaffold/core/organization-graph.mdx +262 -0
- package/reference/scaffold/core/organization-model.mdx +257 -0
- package/reference/scaffold/index.mdx +59 -0
- package/reference/scaffold/operations/workflow-recipes.md +419 -0
- package/reference/scaffold/recipes/add-a-feature.md +142 -0
- package/reference/scaffold/recipes/add-a-resource.md +163 -0
- package/reference/scaffold/recipes/gate-by-feature-or-admin.md +152 -0
- package/reference/scaffold/recipes/index.md +32 -0
- package/reference/scaffold/reference/contracts.md +1044 -0
- package/reference/scaffold/reference/feature-registry.md +30 -0
- package/reference/scaffold/reference/glossary.md +88 -0
- package/reference/scaffold/ui/composition-extensibility.mdx +216 -0
- package/reference/scaffold/ui/customization.md +239 -0
- package/reference/scaffold/ui/feature-flags-and-gating.md +265 -0
- package/reference/scaffold/ui/feature-shell.mdx +241 -0
- package/reference/scaffold/ui/recipes.md +418 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Organization Model
|
|
3
|
+
description: Organization OS Model layer documentation for the semantic organization contract, covering domains, features, navigation surfaces, resource mappings, and the curated @elevasis/core public API.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
Within Organization OS, the organization model is the **Model** layer and part of the cross-cutting **Public API** layer. It is the semantic contract that maps an organization's product shape to domains, features, navigation surfaces and groups, domain-specific semantics (CRM pipeline, lead-gen lifecycle, delivery status), and resource mappings. It is schema-first, versioned, and validated.
|
|
9
|
+
|
|
10
|
+
The model is authored in `@repo/core` and published as a curated external package `@elevasis/core`. It is consumed by:
|
|
11
|
+
|
|
12
|
+
- `@repo/ui`'s feature-shell provider to resolve nav labels, surface paths, and feature state at runtime
|
|
13
|
+
- command-center's root shell as its canonical organization model
|
|
14
|
+
- `external/_template/foundations` and downstream derivatives as the adapter-backed source of organization truth
|
|
15
|
+
|
|
16
|
+
The model does **not** replace the shared feature-provider system. It enriches and constrains it.
|
|
17
|
+
|
|
18
|
+
## Source of Truth
|
|
19
|
+
|
|
20
|
+
- `packages/core/src/organization-model/schema.ts` -- `OrganizationModelSchema`
|
|
21
|
+
- `packages/core/src/organization-model/types.ts` -- exported TypeScript types
|
|
22
|
+
- `packages/core/src/organization-model/defaults.ts` -- `DEFAULT_ORGANIZATION_MODEL`
|
|
23
|
+
- `packages/core/src/organization-model/resolve.ts` -- `defineOrganizationModel`, `resolveOrganizationModel`
|
|
24
|
+
- `packages/core/src/organization-model/domains/*.ts` -- feature keys, navigation surfaces, CRM/lead-gen/delivery semantics
|
|
25
|
+
- `packages/core/src/published.ts` -- curated root barrel for the published package
|
|
26
|
+
- `packages/core/src/organization-model/published.ts` -- curated organization-model barrel
|
|
27
|
+
- `packages/core/src/__tests__/template-foundations-compatibility.test.ts` -- adapter-baseline guard
|
|
28
|
+
|
|
29
|
+
## Contract Shape
|
|
30
|
+
|
|
31
|
+
Top-level fields on `OrganizationModel`:
|
|
32
|
+
|
|
33
|
+
- `version`
|
|
34
|
+
- `domains` -- semantic domains (`crm`, `lead-gen`, `delivery`, `operations`)
|
|
35
|
+
- `branding`
|
|
36
|
+
- `features` -- `enabled` map and `labels` overrides
|
|
37
|
+
- `navigation` -- surfaces, groups, `defaultSurfaceId`
|
|
38
|
+
- `crm` -- pipeline stages and stage semantics
|
|
39
|
+
- `leadGen` -- company/contact lifecycle stages
|
|
40
|
+
- `delivery` -- project/milestone/task statuses
|
|
41
|
+
- `resourceMappings`
|
|
42
|
+
|
|
43
|
+
### Branding Shape
|
|
44
|
+
|
|
45
|
+
`OrganizationModelBranding` holds display identity for the organization:
|
|
46
|
+
|
|
47
|
+
- `organizationName` -- the human-readable org name (required)
|
|
48
|
+
- `productName` -- the product label shown in the shell (required)
|
|
49
|
+
- `shortName` -- abbreviated name, max 40 chars (required)
|
|
50
|
+
- `description` -- optional long-form description
|
|
51
|
+
- `logos` -- optional object with `light` and `dark` URL strings (each max 2048 chars); defaults to `{}`
|
|
52
|
+
|
|
53
|
+
### ModelId Format Rules
|
|
54
|
+
|
|
55
|
+
All `id` fields, `parentId`, `defaultSurfaceId`, and reference ID arrays use `ModelIdSchema`:
|
|
56
|
+
|
|
57
|
+
- Regex: `/^[a-z0-9]+(?:[-._][a-z0-9]+)*$/`
|
|
58
|
+
- Max length: 100 chars
|
|
59
|
+
- Allowed separators: `-`, `_`, `.`
|
|
60
|
+
- Examples: `crm.pipeline`, `lead-gen.lists`, `operations.organization-graph`
|
|
61
|
+
|
|
62
|
+
This applies to domain IDs, surface IDs, navigation group IDs, and resource mapping IDs.
|
|
63
|
+
|
|
64
|
+
### Default Feature Keys
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
type OrganizationModelFeatureKey =
|
|
68
|
+
| 'acquisition'
|
|
69
|
+
| 'delivery'
|
|
70
|
+
| 'operations'
|
|
71
|
+
| 'monitoring'
|
|
72
|
+
| 'settings'
|
|
73
|
+
| 'seo'
|
|
74
|
+
| 'calibration'
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
These are the **grouped** published access/visibility keys. They differ from shell feature-module keys (`crm`, `lead-gen`, `delivery`). See [Feature Shell](../ui/feature-shell.mdx) for how the provider bridges the two.
|
|
78
|
+
|
|
79
|
+
### Default Semantic Domains
|
|
80
|
+
|
|
81
|
+
Four domains ship by default -- `crm`, `lead-gen`, `delivery`, `operations`. Each binds together entity IDs, surface IDs, resource IDs, and capability IDs. Domains are semantic, not purely navigational -- they describe what area of the business or resource model a thing belongs to, not which access key gates it.
|
|
82
|
+
|
|
83
|
+
### ResourceMapping Shape
|
|
84
|
+
|
|
85
|
+
`OrganizationModelResourceMapping` links a deployable resource into the semantic model:
|
|
86
|
+
|
|
87
|
+
- `id` -- unique mapping ID (ModelId format)
|
|
88
|
+
- `resourceId` -- the actual resource identifier (string, max 255 chars)
|
|
89
|
+
- `resourceType` -- one of `'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint'`
|
|
90
|
+
- `label`, `description`, `color`, `icon` -- display metadata (from `DisplayMetadataSchema`)
|
|
91
|
+
- `domainIds` -- domains this resource belongs to
|
|
92
|
+
- `entityIds` -- entities this resource operates on
|
|
93
|
+
- `surfaceIds` -- surfaces this resource is exposed in
|
|
94
|
+
- `capabilityIds` -- capabilities this resource fulfills
|
|
95
|
+
|
|
96
|
+
All four ID arrays are bidirectionally validated against their counterparts (see Referential Integrity).
|
|
97
|
+
|
|
98
|
+
### Default Navigation
|
|
99
|
+
|
|
100
|
+
Surfaces such as `crm.pipeline`, `lead-gen.lists`, `projects.index`, `operations.organization-graph`, and `operations.command-view`. Groups include `primary-workspace` and `primary-operations`. The model can shape shell meaning even when route files stay app-local.
|
|
101
|
+
|
|
102
|
+
### SurfaceDefinition Shape
|
|
103
|
+
|
|
104
|
+
`OrganizationModelSurface` (inferred from `SurfaceDefinitionSchema`) defines a navigable view:
|
|
105
|
+
|
|
106
|
+
- `id` -- ModelId (e.g. `crm.pipeline`)
|
|
107
|
+
- `label` -- display name
|
|
108
|
+
- `path` -- route path, must start with `/`, max 300 chars
|
|
109
|
+
- `surfaceType` -- `'page' | 'dashboard' | 'graph' | 'detail' | 'list' | 'settings'`
|
|
110
|
+
- `description` -- optional
|
|
111
|
+
- `icon` -- optional icon name token (max 80 chars)
|
|
112
|
+
- `featureKey` -- optional `OrganizationModelFeatureKey` that gates this surface
|
|
113
|
+
- `parentId` -- optional ModelId referencing a parent surface; validated to exist
|
|
114
|
+
- `domainIds` -- domains this surface belongs to (bidirectionally validated)
|
|
115
|
+
- `entityIds` -- entity IDs relevant to this surface
|
|
116
|
+
- `resourceIds` -- resources exposed on this surface (bidirectionally validated against resource mappings)
|
|
117
|
+
- `capabilityIds` -- capabilities this surface fulfills
|
|
118
|
+
|
|
119
|
+
### NavigationGroup Placement
|
|
120
|
+
|
|
121
|
+
`NavigationGroupSchema` has a `placement` field with three allowed values:
|
|
122
|
+
|
|
123
|
+
- `'primary'` -- main workspace or operations nav rail
|
|
124
|
+
- `'secondary'` -- secondary grouping (below primary)
|
|
125
|
+
- `'bottom'` -- pinned to the bottom of the nav rail
|
|
126
|
+
|
|
127
|
+
The default groups (`primary-workspace`, `primary-operations`) both use `placement: 'primary'`.
|
|
128
|
+
|
|
129
|
+
### Domain-Specific Semantics
|
|
130
|
+
|
|
131
|
+
- **CRM** -- pipeline stages and stage semantics
|
|
132
|
+
- **Lead-gen** -- company and contact lifecycle stages
|
|
133
|
+
- **Delivery** -- project, milestone, and task statuses
|
|
134
|
+
|
|
135
|
+
This is why the organization model is semantic, not just nav config -- it owns product meaning for the business objects the shell surfaces expose.
|
|
136
|
+
|
|
137
|
+
## Authoring & Resolution
|
|
138
|
+
|
|
139
|
+
- `defineOrganizationModel()` -- typed authoring helper; returns the input unchanged but constrains the type.
|
|
140
|
+
- `resolveOrganizationModel(partial)` -- deep-merges a partial override into `DEFAULT_ORGANIZATION_MODEL` and validates the result against `OrganizationModelSchema`.
|
|
141
|
+
|
|
142
|
+
Merge semantics:
|
|
143
|
+
|
|
144
|
+
- plain objects merge recursively
|
|
145
|
+
- arrays **replace** defaults (no element-by-element merge)
|
|
146
|
+
- if `navigation.surfaces` is replaced without also supplying `navigation.groups`, inherited groups are normalized so they only keep still-valid surface IDs and any now-empty groups are dropped
|
|
147
|
+
- missing fields fall back to defaults
|
|
148
|
+
|
|
149
|
+
### Referential Integrity
|
|
150
|
+
|
|
151
|
+
`OrganizationModelSchema` validates more than top-level shape. The `superRefine` pass enforces:
|
|
152
|
+
|
|
153
|
+
**Uniqueness checks** -- IDs must be unique within their respective collections:
|
|
154
|
+
|
|
155
|
+
- `domains[].id`
|
|
156
|
+
- `navigation.surfaces[].id`
|
|
157
|
+
- `navigation.groups[].id`
|
|
158
|
+
- `resourceMappings[].id`
|
|
159
|
+
- `resourceMappings[].resourceId` (separate uniqueness check -- two mappings cannot share a `resourceId`)
|
|
160
|
+
|
|
161
|
+
**Dangling reference detection** -- every cross-reference must resolve:
|
|
162
|
+
|
|
163
|
+
- `navigation.defaultSurfaceId` must point at a declared surface
|
|
164
|
+
- every `surfaceId` in a navigation group must resolve to a declared surface
|
|
165
|
+
- every `surfaceId` in a domain must resolve to a declared surface
|
|
166
|
+
- every `resourceId` in a domain must resolve to a declared resource mapping (by `resourceId`)
|
|
167
|
+
- surface `parentId` must reference an existing surface
|
|
168
|
+
- every `domainId` on a surface must resolve to a declared domain
|
|
169
|
+
- every `resourceId` on a surface must resolve to a declared resource mapping
|
|
170
|
+
- every `domainId` on a resource mapping must resolve to a declared domain
|
|
171
|
+
- every `surfaceId` on a resource mapping must resolve to a declared surface
|
|
172
|
+
|
|
173
|
+
**Bidirectional reference enforcement** -- cross-references must be mutual, not one-sided:
|
|
174
|
+
|
|
175
|
+
- a domain listing `surfaceId` S requires surface S to list that domain's ID in its `domainIds`
|
|
176
|
+
- a surface listing `domainId` D requires domain D to list that surface's ID in its `surfaceIds`
|
|
177
|
+
- a domain listing `resourceId` R requires resource mapping R to list that domain's ID in its `domainIds`
|
|
178
|
+
- a resource mapping listing `domainId` D requires domain D to list that resource's `resourceId` in its `resourceIds`
|
|
179
|
+
- a surface listing `resourceId` R requires resource mapping R to list that surface's ID in its `surfaceIds`
|
|
180
|
+
- a resource mapping listing `surfaceId` S requires surface S to list that resource's `resourceId` in its `resourceIds`
|
|
181
|
+
|
|
182
|
+
This bidirectional enforcement is what keeps the organization model semantically consistent rather than loosely structured config.
|
|
183
|
+
|
|
184
|
+
## Provider Integration
|
|
185
|
+
|
|
186
|
+
`ElevasisFeaturesProvider` uses the organization model in three ways:
|
|
187
|
+
|
|
188
|
+
1. **Feature resolution** -- provider first checks `useFeatureAccess()`, then refines through organization-model feature state when the model knows the key.
|
|
189
|
+
2. **Nav label and path resolution** -- when `organizationModel` is present, feature labels resolve from `organizationModel.features.labels`, and surface labels and paths resolve from `organizationModel.navigation.surfaces`. Semantic customization without changing manifest code.
|
|
190
|
+
3. **Organization-graph bridge** -- the `operationsManifest` declares `organizationGraph.surfaceId = 'operations.organization-graph'`. The provider resolves that against organization-model surfaces and exposes the result as `organizationGraph` in context. See [Organization Graph](./organization-graph.mdx).
|
|
191
|
+
|
|
192
|
+
## Published Package: `@elevasis/core`
|
|
193
|
+
|
|
194
|
+
`@elevasis/core` is a curated publish wrapper around `packages/core`, released through `$sdk release-core`. It exists so external foundations (`_template/foundations`, `nirvana-marketing/foundations`, `ZentaraHQ/foundations`) can depend on a stable, browser-safe organization-model contract without reaching into monorepo-only `@repo/core`.
|
|
195
|
+
|
|
196
|
+
### Published surface
|
|
197
|
+
|
|
198
|
+
Intentionally narrow:
|
|
199
|
+
|
|
200
|
+
- `.` -- curated root barrel (`packages/core/src/published.ts`)
|
|
201
|
+
- `./organization-model` -- curated organization-model barrel (`packages/core/src/organization-model/published.ts`)
|
|
202
|
+
|
|
203
|
+
Exports on the first published surface:
|
|
204
|
+
|
|
205
|
+
- `OrganizationModelSchema`
|
|
206
|
+
- top-level organization-model types
|
|
207
|
+
- `DEFAULT_ORGANIZATION_MODEL`
|
|
208
|
+
- `defineOrganizationModel`
|
|
209
|
+
- `resolveOrganizationModel`
|
|
210
|
+
|
|
211
|
+
### Intentionally excluded
|
|
212
|
+
|
|
213
|
+
- wider `@repo/core` browser barrel
|
|
214
|
+
- organization-graph types/builder (`buildOrganizationGraph`, DTO types) -- graph work remains monorepo-first; external consumers should not assume graph contracts are published
|
|
215
|
+
|
|
216
|
+
### Build
|
|
217
|
+
|
|
218
|
+
- `pnpm --filter @repo/core build:publish` emits `dist/index.{js,d.ts}` and `dist/organization-model/index.{js,d.ts}` via tsup + `rollup-plugin-dts`.
|
|
219
|
+
- Shipped types are browser-safe and verified to contain no `@repo/*` imports.
|
|
220
|
+
|
|
221
|
+
### Release
|
|
222
|
+
|
|
223
|
+
- `.claude/sub-commands/sdk/release-core.md` -- dedicated publish flow
|
|
224
|
+
- `$sdk verify` -- covers publish metadata, bundled declarations, and the first template-foundation compatibility guard
|
|
225
|
+
|
|
226
|
+
## Downstream Adoption
|
|
227
|
+
|
|
228
|
+
External foundations consume `@elevasis/core/organization-model` via an **adapter**, not a fork. The adapter pattern in `external/_template/foundations/config/organization-model.ts`:
|
|
229
|
+
|
|
230
|
+
1. Define a canonical override with `defineOrganizationModel(...)`.
|
|
231
|
+
2. Resolve it with `resolveOrganizationModel(...)`.
|
|
232
|
+
3. Adapt the result into a template-local helper shape that adds consumer-only fields (`homeLabel`, `quickAccessSurfaceIds`, icon aliases, `getOrganizationSurface()`).
|
|
233
|
+
|
|
234
|
+
Exports the foundations module provides to consumers:
|
|
235
|
+
|
|
236
|
+
- `canonicalOrganizationModel` -- passed to `ElevasisFeaturesProvider`
|
|
237
|
+
- `organizationModel` -- widened adapter shape for template-local helpers
|
|
238
|
+
- `FoundationFeatureKey`, `FoundationSurfaceIcon`, `FoundationNavigationSurface`, `FoundationOrganizationModel`
|
|
239
|
+
- `homeLabel`, `quickAccessSurfaceIds`, `getOrganizationSurface(surfaceId)`
|
|
240
|
+
|
|
241
|
+
Downstream template shells pass `canonicalOrganizationModel` into `ElevasisFeaturesProvider`, preserving host-local dashboard/nav customizations alongside the shared runtime. Grouped core features map onto template vocabulary -- `crm` and `lead-gen` project from `acquisition`, `projects` from `delivery`.
|
|
242
|
+
|
|
243
|
+
Derivative projects (`external/nirvana-marketing`, `external/ZentaraHQ`) follow the same adapter + provider-wiring baseline with their own project-local customizations.
|
|
244
|
+
|
|
245
|
+
## Verification
|
|
246
|
+
|
|
247
|
+
- `pnpm --filter @repo/core build:publish` -- published bundle
|
|
248
|
+
- `pnpm --filter @repo/core test -- publish template-foundations-compatibility` -- published surface + adapter guard
|
|
249
|
+
- `pnpm -C external/_template/foundations test` -- foundations adapter and import-boundary guard
|
|
250
|
+
- `pnpm -C external/_template/ui test -- src/routes/__tests__/__root.test.tsx` -- provider-level `organizationModel` wiring in the template shell
|
|
251
|
+
|
|
252
|
+
## Design Constraints
|
|
253
|
+
|
|
254
|
+
- `@elevasis/core` must stay browser-safe. Build output inlines or eliminates `@repo/*` references from shipped types.
|
|
255
|
+
- The published surface stays curated -- do not reflexively re-export new `@repo/core` internals. Widening the surface is a deliberate decision, not a default.
|
|
256
|
+
- Organization-graph helpers remain internal until a concrete external consumer needs them.
|
|
257
|
+
- Foundations adapters preserve the semantic contract; they do not fork it. If a template needs a concept the canonical model can't express, extend the canonical model first.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Scaffold Reference
|
|
3
|
+
description: Universal scaffold documentation for Elevasis SDK projects -- recipes, patterns, architecture, and reference materials that apply to all workspaces.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
This scaffold reference contains universal documentation that applies to all Elevasis SDK projects. Content is organized by package ownership:
|
|
9
|
+
|
|
10
|
+
- **recipes/** -- Cross-package pathway recipes (add a feature, add a resource, gating patterns)
|
|
11
|
+
- **ui/** -- UI patterns, feature shell architecture, composition, and customization
|
|
12
|
+
- **core/** -- Organization model architecture, graph layer, and semantic contracts
|
|
13
|
+
- **operations/** -- Workflow authoring patterns and adapter usage
|
|
14
|
+
- **reference/** -- Glossary, auto-generated contracts, and feature registry
|
|
15
|
+
|
|
16
|
+
## Quick Navigation
|
|
17
|
+
|
|
18
|
+
### Pathway Recipes
|
|
19
|
+
|
|
20
|
+
- [Add a Feature](./recipes/add-a-feature.md) -- end-to-end from org model key through manifest, routes, gating
|
|
21
|
+
- [Add a Resource](./recipes/add-a-resource.md) -- author and deploy a workflow or agent
|
|
22
|
+
- [Gate by Feature or Admin](./recipes/gate-by-feature-or-admin.md) -- decision table for access control patterns
|
|
23
|
+
|
|
24
|
+
### UI Patterns
|
|
25
|
+
|
|
26
|
+
- [UI Recipes](./ui/recipes.md) -- copy-paste recipes for pages, nav items, components, theme tokens
|
|
27
|
+
- [Feature Flags & Gating](./ui/feature-flags-and-gating.md) -- three-concept model for feature access
|
|
28
|
+
- [Customizing Features](./ui/customization.md) -- sidebar composition via manifest overrides
|
|
29
|
+
- [Feature Shell & Provider](./ui/feature-shell.mdx) -- FeatureModule manifest contract, provider runtime
|
|
30
|
+
- [Composition & Extensibility](./ui/composition-extensibility.mdx) -- layout primitives, router abstraction
|
|
31
|
+
|
|
32
|
+
### Core Architecture
|
|
33
|
+
|
|
34
|
+
- [Organization Model](./core/organization-model.mdx) -- semantic contract, schema, authoring helpers
|
|
35
|
+
- [Organization Graph](./core/organization-graph.mdx) -- graph derivation, node/edge taxonomy, lenses
|
|
36
|
+
|
|
37
|
+
### Operations
|
|
38
|
+
|
|
39
|
+
- [Workflow Recipes](./operations/workflow-recipes.md) -- workflow anatomy, adapter patterns, trigger patterns
|
|
40
|
+
|
|
41
|
+
### Reference
|
|
42
|
+
|
|
43
|
+
- [Glossary](./reference/glossary.md) -- term definitions for Organization OS concepts
|
|
44
|
+
- [Contracts](./reference/contracts.md) -- auto-generated TypeScript contract shapes
|
|
45
|
+
- [Feature Registry](./reference/feature-registry.md) -- auto-generated feature manifest catalog
|
|
46
|
+
|
|
47
|
+
## Source Locations
|
|
48
|
+
|
|
49
|
+
Content is co-located with its owning package and copied here during SDK build:
|
|
50
|
+
|
|
51
|
+
| Bundle Path | Source Location | Owner |
|
|
52
|
+
| ---------------------------------------- | --------------------------------------------------------- | --------------- |
|
|
53
|
+
| `scaffold/recipes/` | `packages/sdk/docs/scaffold/recipes/` | SDK |
|
|
54
|
+
| `scaffold/operations/` | `packages/sdk/docs/scaffold/operations/` | SDK |
|
|
55
|
+
| `scaffold/ui/` | `packages/ui/src/scaffold/` | UI |
|
|
56
|
+
| `scaffold/core/` | `packages/core/src/organization-model/` | Core |
|
|
57
|
+
| `scaffold/reference/glossary.md` | `packages/core/src/reference/glossary.md` | Core |
|
|
58
|
+
| `scaffold/reference/contracts.md` | `packages/core/src/reference/_generated/contracts.md` | Core (auto-gen) |
|
|
59
|
+
| `scaffold/reference/feature-registry.md` | `packages/ui/src/scaffold/_generated/feature-registry.md` | UI (auto-gen) |
|