@elevasis/sdk 1.21.0 → 1.22.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 +951 -171
- package/dist/index.d.ts +632 -341
- package/dist/index.js +3102 -142
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +19 -1
- package/dist/test-utils/index.d.ts +313 -4
- package/dist/test-utils/index.js +3246 -281
- package/dist/worker/index.js +3041 -80
- package/package.json +3 -3
- package/reference/claude-config/hooks/post-edit-validate.mjs +98 -98
- package/reference/claude-config/hooks/scaffold-registry-reminder.mjs +188 -188
- package/reference/claude-config/hooks/tool-failure-recovery.mjs +73 -73
- package/reference/claude-config/registries/graph-skills.json +4 -4
- package/reference/claude-config/registries/knowledge-flags.json +0 -2
- package/reference/claude-config/rules/active-change-index.md +80 -80
- package/reference/claude-config/rules/agent-start-here.md +277 -277
- package/reference/claude-config/rules/deployment.md +57 -57
- package/reference/claude-config/rules/error-handling.md +56 -56
- package/reference/claude-config/rules/execution.md +40 -40
- package/reference/claude-config/rules/frontend.md +4 -4
- package/reference/claude-config/rules/observability.md +31 -31
- package/reference/claude-config/rules/operations.md +29 -17
- package/reference/claude-config/rules/organization-model.md +110 -84
- package/reference/claude-config/rules/organization-os.md +115 -113
- package/reference/claude-config/rules/package-taxonomy.md +33 -33
- package/reference/claude-config/rules/platform.md +42 -42
- package/reference/claude-config/rules/shared-types.md +49 -46
- package/reference/claude-config/rules/task-tracking.md +47 -47
- package/reference/claude-config/rules/ui.md +200 -200
- package/reference/claude-config/rules/vibe.md +235 -235
- package/reference/claude-config/scripts/statusline-command.js +18 -18
- package/reference/claude-config/settings.json +34 -34
- package/reference/claude-config/skills/deploy/{SKILL.md → skill.md} +156 -156
- package/reference/claude-config/skills/dsp/SKILL.md +66 -66
- package/reference/claude-config/skills/elevasis/SKILL.md +235 -235
- package/reference/claude-config/skills/explore/SKILL.md +6 -6
- package/reference/claude-config/skills/git-sync/SKILL.md +126 -126
- package/reference/claude-config/skills/knowledge/SKILL.md +314 -299
- package/reference/claude-config/skills/knowledge/operations/codify-level-a.md +100 -100
- package/reference/claude-config/skills/knowledge/operations/codify-level-b.md +159 -159
- package/reference/claude-config/skills/knowledge/operations/customers.md +109 -109
- package/reference/claude-config/skills/knowledge/operations/features.md +76 -76
- package/reference/claude-config/skills/knowledge/operations/goals.md +118 -118
- package/reference/claude-config/skills/knowledge/operations/identity.md +93 -93
- package/reference/claude-config/skills/knowledge/operations/labels.md +94 -94
- package/reference/claude-config/skills/knowledge/operations/offerings.md +109 -109
- package/reference/claude-config/skills/knowledge/operations/roles.md +99 -99
- package/reference/claude-config/skills/knowledge/operations/techStack.md +30 -30
- package/reference/claude-config/skills/project/SKILL.md +1088 -1088
- package/reference/claude-config/skills/run-ui/SKILL.md +73 -73
- package/reference/claude-config/skills/save/SKILL.md +3 -3
- package/reference/claude-config/skills/setup/SKILL.md +275 -275
- package/reference/claude-config/skills/status/SKILL.md +59 -59
- package/reference/claude-config/skills/submit-request/SKILL.md +180 -180
- package/reference/claude-config/skills/sync/SKILL.md +47 -47
- package/reference/claude-config/skills/tutorial/SKILL.md +259 -259
- package/reference/claude-config/skills/tutorial/progress-template.md +74 -74
- package/reference/claude-config/skills/tutorial/technical.md +1303 -1303
- package/reference/claude-config/skills/tutorial/vibe-coder.md +890 -890
- package/reference/claude-config/sync-notes/2026-04-22-git-sync-and-sync-notes.md +27 -27
- package/reference/claude-config/sync-notes/2026-04-22-lead-gen-deliverability-removal.md +30 -30
- package/reference/claude-config/sync-notes/2026-04-24-test-utils-and-template-tests.md +73 -73
- package/reference/claude-config/sync-notes/2026-04-24-ui-consolidation-and-sdk-cli-train.md +86 -86
- package/reference/claude-config/sync-notes/2026-04-25-auth-role-system-and-settings-roles.md +55 -55
- package/reference/claude-config/sync-notes/2026-04-27-crm-hitl-action-layer-cutover.md +97 -97
- package/reference/claude-config/sync-notes/2026-04-27-lead-gen-substrate-train.md +112 -112
- package/reference/claude-config/sync-notes/2026-04-29-crm-state-and-lead-gen-processing-status.md +93 -93
- package/reference/claude-config/sync-notes/2026-05-02-crm-ownership-next-action.md +58 -58
- package/reference/claude-config/sync-notes/2026-05-02-template-hardcode-workos-config.md +56 -56
- package/reference/claude-config/sync-notes/2026-05-04-elevasis-workspace.md +71 -71
- package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +83 -83
- package/reference/claude-config/sync-notes/2026-05-04-template-skills-run-ui-and-tutorial.md +59 -59
- package/reference/claude-config/sync-notes/2026-05-05-list-builder.md +42 -42
- package/reference/claude-config/sync-notes/2026-05-06-crm-spine.md +60 -60
- package/reference/claude-config/sync-notes/2026-05-06-sdk-changes-release-train.md +37 -37
- package/reference/claude-config/sync-notes/2026-05-07-sdk-changes-release-train.md +34 -34
- package/reference/claude-config/sync-notes/2026-05-08-resource-governance-scaffold-guidance.md +38 -38
- package/reference/claude-config/sync-notes/2026-05-09-clients-domain.md +32 -32
- package/reference/claude-config/sync-notes/2026-05-09-command-system.md +33 -33
- package/reference/claude-config/sync-notes/2026-05-09-resource-governance-and-misc.md +69 -69
- package/reference/claude-config/sync-notes/2026-05-12-sdk-ready-release-train.md +30 -30
- package/reference/claude-config/sync-notes/2026-05-14-organization-model-ontology-refactor.md +42 -0
- package/reference/claude-config/sync-notes/README.md +43 -43
- package/reference/cli.mdx +808 -808
- package/reference/concepts.mdx +146 -146
- package/reference/deployment/api.mdx +297 -297
- package/reference/deployment/command-center.mdx +209 -209
- package/reference/deployment/index.mdx +195 -195
- package/reference/deployment/provided-features.mdx +107 -107
- package/reference/deployment/ui-execution.mdx +250 -250
- package/reference/examples/organization-model.ts +146 -83
- package/reference/framework/agent.mdx +156 -156
- package/reference/framework/index.mdx +195 -195
- package/reference/framework/interaction-guidance.mdx +182 -182
- package/reference/framework/memory.mdx +326 -326
- package/reference/framework/project-structure.mdx +282 -282
- package/reference/framework/tutorial-system.mdx +135 -135
- package/reference/getting-started.mdx +142 -142
- package/reference/index.mdx +106 -106
- package/reference/packages/core/src/README.md +14 -14
- package/reference/packages/core/src/business/README.md +2 -2
- package/reference/packages/core/src/knowledge/README.md +32 -32
- package/reference/packages/core/src/organization-model/README.md +149 -149
- package/reference/packages/core/src/test-utils/README.md +37 -37
- package/reference/packages/ui/src/api/README.md +18 -18
- package/reference/packages/ui/src/app/README.md +24 -24
- package/reference/packages/ui/src/auth/README.md +18 -18
- package/reference/packages/ui/src/components/README.md +24 -24
- package/reference/packages/ui/src/execution/README.md +16 -16
- package/reference/packages/ui/src/features/README.md +28 -28
- package/reference/packages/ui/src/graph/README.md +16 -16
- package/reference/packages/ui/src/hooks/README.md +23 -23
- package/reference/packages/ui/src/initialization/README.md +19 -19
- package/reference/packages/ui/src/knowledge/README.md +31 -31
- package/reference/packages/ui/src/organization/README.md +18 -18
- package/reference/packages/ui/src/profile/README.md +19 -19
- package/reference/packages/ui/src/provider/README.md +32 -32
- package/reference/packages/ui/src/router/README.md +18 -18
- package/reference/packages/ui/src/sse/README.md +13 -13
- package/reference/packages/ui/src/test-utils/README.md +7 -7
- package/reference/packages/ui/src/theme/README.md +23 -23
- package/reference/packages/ui/src/theme/presets/README.md +19 -19
- package/reference/packages/ui/src/types/README.md +16 -16
- package/reference/packages/ui/src/utils/README.md +18 -18
- package/reference/packages/ui/src/zustand/README.md +18 -18
- package/reference/platform-tools/adapters-integration.mdx +301 -301
- package/reference/platform-tools/adapters-platform.mdx +553 -553
- package/reference/platform-tools/index.mdx +217 -217
- package/reference/platform-tools/type-safety.mdx +82 -82
- package/reference/resources/index.mdx +349 -349
- package/reference/resources/patterns.mdx +449 -449
- package/reference/resources/types.mdx +116 -116
- package/reference/roadmap.mdx +165 -165
- package/reference/runtime.mdx +173 -173
- package/reference/scaffold/core/organization-graph.mdx +110 -90
- package/reference/scaffold/core/organization-model.mdx +226 -219
- package/reference/scaffold/index.mdx +67 -67
- package/reference/scaffold/operations/propagation-pipeline.md +77 -77
- package/reference/scaffold/operations/scaffold-maintenance.md +12 -12
- package/reference/scaffold/operations/workflow-recipes.md +138 -138
- package/reference/scaffold/recipes/add-a-feature.md +308 -88
- package/reference/scaffold/recipes/add-a-resource.md +134 -110
- package/reference/scaffold/recipes/customize-knowledge-browser.md +5 -5
- package/reference/scaffold/recipes/customize-organization-model.md +273 -138
- package/reference/scaffold/recipes/extend-a-base-entity.md +8 -8
- package/reference/scaffold/recipes/extend-crm.md +3 -3
- package/reference/scaffold/recipes/extend-lead-gen.md +400 -400
- package/reference/scaffold/recipes/gate-by-feature-or-admin.md +118 -118
- package/reference/scaffold/recipes/index.md +46 -46
- package/reference/scaffold/recipes/query-the-knowledge-graph.md +197 -170
- package/reference/scaffold/reference/contracts.md +2101 -2096
- package/reference/scaffold/reference/glossary.md +76 -76
- package/reference/scaffold/ui/composition-extensibility.mdx +233 -233
- package/reference/scaffold/ui/customization.md +243 -243
- package/reference/scaffold/ui/feature-flags-and-gating.md +46 -46
- package/reference/scaffold/ui/feature-shell.mdx +72 -72
- package/reference/scaffold/ui/recipes.md +221 -214
- package/reference/spine/spine-primer.md +96 -96
- package/reference/templates/index.mdx +47 -47
- package/reference/troubleshooting.mdx +223 -223
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
# Test Utilities
|
|
2
|
-
|
|
3
|
-
Published test helpers for downstream consumers of `@elevasis/core`.
|
|
4
|
-
|
|
5
|
-
The public `@elevasis/core/test-utils` subpath exposes:
|
|
6
|
-
|
|
7
|
-
- `RLSTestContext` for dev-database RLS integration tests
|
|
8
|
-
- `setupMatchMedia`, `setupResizeObserver`, and `setupBrowserMocks` for jsdom/browser test setup
|
|
9
|
-
- `TEST_USERS`, `TEST_ORGS`, `TEST_MEMBERSHIPS`, and related fixture factories
|
|
10
|
-
- `createMockSupabaseClient`, `createMockWorkOSClient`, and related mocks
|
|
11
|
-
- base entity factories such as `makeProject`, `makeDeal`, and `makeTask`
|
|
12
|
-
- organization model/profile builders such as `makeOrganizationModel`, `makeInitializationState`, and `makeUserProfile`
|
|
13
|
-
|
|
14
|
-
## Published Usage
|
|
15
|
-
|
|
16
|
-
### Browser Mocks
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import { setupBrowserMocks } from '@elevasis/core/test-utils'
|
|
20
|
-
|
|
21
|
-
setupBrowserMocks()
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### RLS Integration Tests
|
|
25
|
-
|
|
26
|
-
```typescript
|
|
27
|
-
import { RLSTestContext } from '@elevasis/core/test-utils'
|
|
28
|
-
|
|
29
|
-
const ctx = new RLSTestContext()
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
`RLSTestContext` requires a configured Supabase development environment:
|
|
33
|
-
|
|
34
|
-
- `SUPABASE_URL`
|
|
35
|
-
- `SUPABASE_ANON_KEY`
|
|
36
|
-
- `SUPABASE_SERVICE_KEY`
|
|
37
|
-
- `SUPABASE_JWT_SECRET`
|
|
1
|
+
# Test Utilities
|
|
2
|
+
|
|
3
|
+
Published test helpers for downstream consumers of `@elevasis/core`.
|
|
4
|
+
|
|
5
|
+
The public `@elevasis/core/test-utils` subpath exposes:
|
|
6
|
+
|
|
7
|
+
- `RLSTestContext` for dev-database RLS integration tests
|
|
8
|
+
- `setupMatchMedia`, `setupResizeObserver`, and `setupBrowserMocks` for jsdom/browser test setup
|
|
9
|
+
- `TEST_USERS`, `TEST_ORGS`, `TEST_MEMBERSHIPS`, and related fixture factories
|
|
10
|
+
- `createMockSupabaseClient`, `createMockWorkOSClient`, and related mocks
|
|
11
|
+
- base entity factories such as `makeProject`, `makeDeal`, and `makeTask`
|
|
12
|
+
- organization model/profile builders such as `makeOrganizationModel`, `makeInitializationState`, and `makeUserProfile`
|
|
13
|
+
|
|
14
|
+
## Published Usage
|
|
15
|
+
|
|
16
|
+
### Browser Mocks
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { setupBrowserMocks } from '@elevasis/core/test-utils'
|
|
20
|
+
|
|
21
|
+
setupBrowserMocks()
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### RLS Integration Tests
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { RLSTestContext } from '@elevasis/core/test-utils'
|
|
28
|
+
|
|
29
|
+
const ctx = new RLSTestContext()
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`RLSTestContext` requires a configured Supabase development environment:
|
|
33
|
+
|
|
34
|
+
- `SUPABASE_URL`
|
|
35
|
+
- `SUPABASE_ANON_KEY`
|
|
36
|
+
- `SUPABASE_SERVICE_KEY`
|
|
37
|
+
- `SUPABASE_JWT_SECRET`
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# API
|
|
2
|
-
|
|
3
|
-
The API surface provides the HTTP client provider, the context hook, and the API config types.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `ApiClientProvider`
|
|
8
|
-
- `useApiClientContext`
|
|
9
|
-
- `useApiClient`
|
|
10
|
-
- `ApiClientContextValue`
|
|
11
|
-
- `ApiClientProviderProps`
|
|
12
|
-
- `ApiErrorDetails`
|
|
13
|
-
|
|
14
|
-
## Use When
|
|
15
|
-
|
|
16
|
-
- You need a shared API request client at the app root.
|
|
17
|
-
- You want org-aware request access through `useApiClient`.
|
|
18
|
-
|
|
1
|
+
# API
|
|
2
|
+
|
|
3
|
+
The API surface provides the HTTP client provider, the context hook, and the API config types.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `ApiClientProvider`
|
|
8
|
+
- `useApiClientContext`
|
|
9
|
+
- `useApiClient`
|
|
10
|
+
- `ApiClientContextValue`
|
|
11
|
+
- `ApiClientProviderProps`
|
|
12
|
+
- `ApiErrorDetails`
|
|
13
|
+
|
|
14
|
+
## Use When
|
|
15
|
+
|
|
16
|
+
- You need a shared API request client at the app root.
|
|
17
|
+
- You want org-aware request access through `useApiClient`.
|
|
18
|
+
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# App
|
|
2
|
-
|
|
3
|
-
Published app factory for downstream applications.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `createElevasisApp(config)` -- factory that composes providers, router, auth, and theme into a mountable React app
|
|
8
|
-
- `ElevasisAppConfig` -- configuration interface (router, query client, theme, store hooks, error handling)
|
|
9
|
-
- `ElevasisAppStoreConfig` -- store integration hooks for theme state
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```ts
|
|
14
|
-
import { createElevasisApp } from '@elevasis/ui/app'
|
|
15
|
-
|
|
16
|
-
const { App } = createElevasisApp({
|
|
17
|
-
router,
|
|
18
|
-
queryClient,
|
|
19
|
-
store: { useThemePreset, useThemeColorScheme, useSetTheme },
|
|
20
|
-
themeConfig: { presets, defaultPreset },
|
|
21
|
-
})
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Consumers must import CSS separately in their entry point.
|
|
1
|
+
# App
|
|
2
|
+
|
|
3
|
+
Published app factory for downstream applications.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `createElevasisApp(config)` -- factory that composes providers, router, auth, and theme into a mountable React app
|
|
8
|
+
- `ElevasisAppConfig` -- configuration interface (router, query client, theme, store hooks, error handling)
|
|
9
|
+
- `ElevasisAppStoreConfig` -- store integration hooks for theme state
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { createElevasisApp } from '@elevasis/ui/app'
|
|
15
|
+
|
|
16
|
+
const { App } = createElevasisApp({
|
|
17
|
+
router,
|
|
18
|
+
queryClient,
|
|
19
|
+
store: { useThemePreset, useThemeColorScheme, useSetTheme },
|
|
20
|
+
themeConfig: { presets, defaultPreset },
|
|
21
|
+
})
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Consumers must import CSS separately in their entry point.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Auth
|
|
2
|
-
|
|
3
|
-
The auth surface is the published authentication entry point for UI shells.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `AuthProvider`
|
|
8
|
-
- `useAuthContext`
|
|
9
|
-
- `useStableAccessToken`
|
|
10
|
-
- `useSessionCheck`
|
|
11
|
-
- `ProtectedRoute`
|
|
12
|
-
- `AdminGuard`
|
|
13
|
-
|
|
14
|
-
## Use When
|
|
15
|
-
|
|
16
|
-
- You need auth state, access tokens, or session lifecycle checks.
|
|
17
|
-
- You need route-level guards for protected or admin-only UI.
|
|
18
|
-
|
|
1
|
+
# Auth
|
|
2
|
+
|
|
3
|
+
The auth surface is the published authentication entry point for UI shells.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `AuthProvider`
|
|
8
|
+
- `useAuthContext`
|
|
9
|
+
- `useStableAccessToken`
|
|
10
|
+
- `useSessionCheck`
|
|
11
|
+
- `ProtectedRoute`
|
|
12
|
+
- `AdminGuard`
|
|
13
|
+
|
|
14
|
+
## Use When
|
|
15
|
+
|
|
16
|
+
- You need auth state, access tokens, or session lifecycle checks.
|
|
17
|
+
- You need route-level guards for protected or admin-only UI.
|
|
18
|
+
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# Components
|
|
2
|
-
|
|
3
|
-
This barrel groups the shared visual and domain UI surfaces that remain part of the published component layer.
|
|
4
|
-
|
|
5
|
-
## What It Covers
|
|
6
|
-
|
|
7
|
-
- Acquisition and CRM UI primitives
|
|
8
|
-
- Navigation, breadcrumbs, tables, forms, modals, and display components
|
|
9
|
-
- Charts, monitoring widgets, notifications, and error states
|
|
10
|
-
- Layout shells, backgrounds, and sidebar primitives
|
|
11
|
-
- Typeform, rich text, content, and resource-definition helpers
|
|
12
|
-
- Operations UI surfaces that are still shared at the component layer
|
|
13
|
-
|
|
14
|
-
## Related Subpaths
|
|
15
|
-
|
|
16
|
-
- `./components/navigation`
|
|
17
|
-
- `./components/chat`
|
|
18
|
-
- `./layout`
|
|
19
|
-
- `./charts`
|
|
20
|
-
|
|
21
|
-
## Notes
|
|
22
|
-
|
|
23
|
-
- The component layer is broad by design, but feature-oriented application shells should still prefer `./features/*` when a dedicated feature surface exists.
|
|
24
|
-
|
|
1
|
+
# Components
|
|
2
|
+
|
|
3
|
+
This barrel groups the shared visual and domain UI surfaces that remain part of the published component layer.
|
|
4
|
+
|
|
5
|
+
## What It Covers
|
|
6
|
+
|
|
7
|
+
- Acquisition and CRM UI primitives
|
|
8
|
+
- Navigation, breadcrumbs, tables, forms, modals, and display components
|
|
9
|
+
- Charts, monitoring widgets, notifications, and error states
|
|
10
|
+
- Layout shells, backgrounds, and sidebar primitives
|
|
11
|
+
- Typeform, rich text, content, and resource-definition helpers
|
|
12
|
+
- Operations UI surfaces that are still shared at the component layer
|
|
13
|
+
|
|
14
|
+
## Related Subpaths
|
|
15
|
+
|
|
16
|
+
- `./components/navigation`
|
|
17
|
+
- `./components/chat`
|
|
18
|
+
- `./layout`
|
|
19
|
+
- `./charts`
|
|
20
|
+
|
|
21
|
+
## Notes
|
|
22
|
+
|
|
23
|
+
- The component layer is broad by design, but feature-oriented application shells should still prefer `./features/*` when a dedicated feature surface exists.
|
|
24
|
+
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Execution
|
|
2
|
-
|
|
3
|
-
The execution surface contains headless helpers for execution timelines, workflow layouts, and execution-specific data shaping.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- Hooks under `./hooks`
|
|
8
|
-
- Utilities under `./utils`
|
|
9
|
-
- Execution types under `./types`
|
|
10
|
-
- Shared execution constants
|
|
11
|
-
|
|
12
|
-
## Use When
|
|
13
|
-
|
|
14
|
-
- You need execution timeline or workflow graph helpers without pulling in visual shells.
|
|
15
|
-
- You need shared execution math or formatting utilities.
|
|
16
|
-
|
|
1
|
+
# Execution
|
|
2
|
+
|
|
3
|
+
The execution surface contains headless helpers for execution timelines, workflow layouts, and execution-specific data shaping.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- Hooks under `./hooks`
|
|
8
|
+
- Utilities under `./utils`
|
|
9
|
+
- Execution types under `./types`
|
|
10
|
+
- Shared execution constants
|
|
11
|
+
|
|
12
|
+
## Use When
|
|
13
|
+
|
|
14
|
+
- You need execution timeline or workflow graph helpers without pulling in visual shells.
|
|
15
|
+
- You need shared execution math or formatting utilities.
|
|
16
|
+
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
# Features
|
|
2
|
-
|
|
3
|
-
Feature subpaths package complete shell-level UI flows for downstream apps.
|
|
4
|
-
|
|
5
|
-
## Published Feature Surfaces
|
|
6
|
-
|
|
7
|
-
- `./features/auth`
|
|
8
|
-
- `./features/crm`
|
|
9
|
-
- `./features/dashboard`
|
|
10
|
-
- `./features/delivery`
|
|
11
|
-
- `./features/lead-gen`
|
|
12
|
-
- `./features/operations`
|
|
13
|
-
- `./features/monitoring`
|
|
14
|
-
- `./features/seo`
|
|
15
|
-
- `./features/settings`
|
|
16
|
-
|
|
17
|
-
## What They Contain
|
|
18
|
-
|
|
19
|
-
- Route shells and page-level components
|
|
20
|
-
- Sidebars and feature-specific navigation
|
|
21
|
-
- Feature manifests for registry consumers
|
|
22
|
-
- Feature-specific hooks and shared constants
|
|
23
|
-
|
|
24
|
-
## Notes
|
|
25
|
-
|
|
26
|
-
- These surfaces are meant for app composition, not for low-level design-system primitives.
|
|
27
|
-
- Some feature exports are also re-exported through `./components` for convenience in legacy or mixed consumers.
|
|
28
|
-
|
|
1
|
+
# Features
|
|
2
|
+
|
|
3
|
+
Feature subpaths package complete shell-level UI flows for downstream apps.
|
|
4
|
+
|
|
5
|
+
## Published Feature Surfaces
|
|
6
|
+
|
|
7
|
+
- `./features/auth`
|
|
8
|
+
- `./features/crm`
|
|
9
|
+
- `./features/dashboard`
|
|
10
|
+
- `./features/delivery`
|
|
11
|
+
- `./features/lead-gen`
|
|
12
|
+
- `./features/operations`
|
|
13
|
+
- `./features/monitoring`
|
|
14
|
+
- `./features/seo`
|
|
15
|
+
- `./features/settings`
|
|
16
|
+
|
|
17
|
+
## What They Contain
|
|
18
|
+
|
|
19
|
+
- Route shells and page-level components
|
|
20
|
+
- Sidebars and feature-specific navigation
|
|
21
|
+
- Feature manifests for registry consumers
|
|
22
|
+
- Feature-specific hooks and shared constants
|
|
23
|
+
|
|
24
|
+
## Notes
|
|
25
|
+
|
|
26
|
+
- These surfaces are meant for app composition, not for low-level design-system primitives.
|
|
27
|
+
- Some feature exports are also re-exported through `./components` for convenience in legacy or mixed consumers.
|
|
28
|
+
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Graph
|
|
2
|
-
|
|
3
|
-
The graph surface is headless. It provides hooks, types, constants, and utilities for ReactFlow-based graph behavior.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- Graph constants
|
|
8
|
-
- Graph types
|
|
9
|
-
- Graph hooks
|
|
10
|
-
- Graph utilities
|
|
11
|
-
|
|
12
|
-
## Notes
|
|
13
|
-
|
|
14
|
-
- Visual graph components moved out of this package surface.
|
|
15
|
-
- Use this subpath when you need graph behavior without the visual shell.
|
|
16
|
-
|
|
1
|
+
# Graph
|
|
2
|
+
|
|
3
|
+
The graph surface is headless. It provides hooks, types, constants, and utilities for ReactFlow-based graph behavior.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- Graph constants
|
|
8
|
+
- Graph types
|
|
9
|
+
- Graph hooks
|
|
10
|
+
- Graph utilities
|
|
11
|
+
|
|
12
|
+
## Notes
|
|
13
|
+
|
|
14
|
+
- Visual graph components moved out of this package surface.
|
|
15
|
+
- Use this subpath when you need graph behavior without the visual shell.
|
|
16
|
+
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# Hooks
|
|
2
|
-
|
|
3
|
-
The hooks barrel is the published headless hook surface for the UI package.
|
|
4
|
-
|
|
5
|
-
## Grouped Areas
|
|
6
|
-
|
|
7
|
-
- Execution and workflow hooks
|
|
8
|
-
- Scheduling hooks
|
|
9
|
-
- Monitoring, observability, and notification hooks
|
|
10
|
-
- Session and SSE hooks
|
|
11
|
-
- Operations hooks, including command-view helpers
|
|
12
|
-
- Feature access, table state, and service helpers
|
|
13
|
-
- Acquisition and delivery hooks
|
|
14
|
-
|
|
15
|
-
## Published Subpaths
|
|
16
|
-
|
|
17
|
-
- `./hooks`
|
|
18
|
-
- `./hooks/delivery`
|
|
19
|
-
- `./hooks/operations/command-view/utils/transformCommandViewData`
|
|
20
|
-
|
|
21
|
-
## Notes
|
|
22
|
-
|
|
23
|
-
- This barrel is intentionally headless. It should not pull in the visual component layer.
|
|
1
|
+
# Hooks
|
|
2
|
+
|
|
3
|
+
The hooks barrel is the published headless hook surface for the UI package.
|
|
4
|
+
|
|
5
|
+
## Grouped Areas
|
|
6
|
+
|
|
7
|
+
- Execution and workflow hooks
|
|
8
|
+
- Scheduling hooks
|
|
9
|
+
- Monitoring, observability, and notification hooks
|
|
10
|
+
- Session and SSE hooks
|
|
11
|
+
- Operations hooks, including command-view helpers
|
|
12
|
+
- Feature access, table state, and service helpers
|
|
13
|
+
- Acquisition and delivery hooks
|
|
14
|
+
|
|
15
|
+
## Published Subpaths
|
|
16
|
+
|
|
17
|
+
- `./hooks`
|
|
18
|
+
- `./hooks/delivery`
|
|
19
|
+
- `./hooks/operations/command-view/utils/transformCommandViewData`
|
|
20
|
+
|
|
21
|
+
## Notes
|
|
22
|
+
|
|
23
|
+
- This barrel is intentionally headless. It should not pull in the visual component layer.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# Initialization
|
|
2
|
-
|
|
3
|
-
The initialization surface coordinates org-aware app startup.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `InitializationProvider`
|
|
8
|
-
- `useInitialization`
|
|
9
|
-
- `InitializationContext`
|
|
10
|
-
- `createUseAppInitialization`
|
|
11
|
-
- `InitializationError`
|
|
12
|
-
- `AppInitializationState`
|
|
13
|
-
- `SupabaseUserProfile` type re-export
|
|
14
|
-
|
|
15
|
-
## Use When
|
|
16
|
-
|
|
17
|
-
- You need zero-config app bootstrap inside an organization-aware provider tree.
|
|
18
|
-
- You still need the deprecated factory pattern for older consumers.
|
|
19
|
-
|
|
1
|
+
# Initialization
|
|
2
|
+
|
|
3
|
+
The initialization surface coordinates org-aware app startup.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `InitializationProvider`
|
|
8
|
+
- `useInitialization`
|
|
9
|
+
- `InitializationContext`
|
|
10
|
+
- `createUseAppInitialization`
|
|
11
|
+
- `InitializationError`
|
|
12
|
+
- `AppInitializationState`
|
|
13
|
+
- `SupabaseUserProfile` type re-export
|
|
14
|
+
|
|
15
|
+
## Use When
|
|
16
|
+
|
|
17
|
+
- You need zero-config app bootstrap inside an organization-aware provider tree.
|
|
18
|
+
- You still need the deprecated factory pattern for older consumers.
|
|
19
|
+
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# @elevasis/ui/knowledge
|
|
2
|
-
|
|
3
|
-
Read-only browser primitives for the Organization Model knowledge graph.
|
|
4
|
-
|
|
5
|
-
## Surface
|
|
6
|
-
|
|
7
|
-
| Export | Purpose |
|
|
8
|
-
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
9
|
-
| `KnowledgeBrowser` | Selected-node detail pane. Tree/search now live in the feature sidebar. |
|
|
10
|
-
| `KnowledgeTree` | By-feature primary tree with hierarchical features and multi-governance duplication. |
|
|
11
|
-
| `KnowledgeNodeList` | Legacy flat list of node summary cards; exported for compatibility. |
|
|
12
|
-
| `KnowledgeNodeView` | Single knowledge-node detail view using `NodeDescribeShell` and relationship groups. |
|
|
13
|
-
| `KnowledgeSearchBar` | Client-side search over `_generated/knowledge-search-index.json`. |
|
|
14
|
-
| `KnowledgeSidebarMiddle` | Deprecated legacy sidebar middle section; active sidebar lives under `features/knowledge/sidebar`. |
|
|
15
|
-
| `KNOWLEDGE_ITEMS` | Deprecated default sidebar nav items retained for compatibility. |
|
|
16
|
-
| `KnowledgeMDXProvider`, `useKnowledgeAllowlist`, `KNOWLEDGE_ALLOWLIST` | MDX runtime allowlist (`Card`, `Cards`, `Step`, `Steps`, `Callout`, `Tab`, `Tabs`). |
|
|
17
|
-
| `KNOWLEDGE_BODIES` | Build-time-compiled MDX components keyed by node id. |
|
|
18
|
-
|
|
19
|
-
## Customization tiers
|
|
20
|
-
|
|
21
|
-
1. **Default** — mount `knowledgeManifest` from `@elevasis/ui/features/knowledge`.
|
|
22
|
-
2. **Extend** — pass `extraComponents` to `KnowledgeMDXProvider` or compose around the feature sidebar primitives.
|
|
23
|
-
3. **Replace** — call `@elevasis/core/knowledge` queries directly from project-owned routes.
|
|
24
|
-
|
|
25
|
-
## Codegen
|
|
26
|
-
|
|
27
|
-
`KNOWLEDGE_BODIES` and the search index are regenerated by `pnpm scaffold:sync` (or `pnpm knowledge:generate` to run only the knowledge step). Source: `canonicalOrganizationModel.knowledge.nodes` from `@repo/elevasis-core`.
|
|
28
|
-
|
|
29
|
-
The Vite plugin at `@elevasis/ui/vite-plugin-knowledge` re-runs codegen on `buildStart` and watches the OM source dir for HMR.
|
|
30
|
-
|
|
31
|
-
Phase 1 is read-only. Phase 2 will move bodies into Supabase and ship via `mdx-bundler`.
|
|
1
|
+
# @elevasis/ui/knowledge
|
|
2
|
+
|
|
3
|
+
Read-only browser primitives for the Organization Model knowledge graph.
|
|
4
|
+
|
|
5
|
+
## Surface
|
|
6
|
+
|
|
7
|
+
| Export | Purpose |
|
|
8
|
+
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
9
|
+
| `KnowledgeBrowser` | Selected-node detail pane. Tree/search now live in the feature sidebar. |
|
|
10
|
+
| `KnowledgeTree` | By-feature primary tree with hierarchical features and multi-governance duplication. |
|
|
11
|
+
| `KnowledgeNodeList` | Legacy flat list of node summary cards; exported for compatibility. |
|
|
12
|
+
| `KnowledgeNodeView` | Single knowledge-node detail view using `NodeDescribeShell` and relationship groups. |
|
|
13
|
+
| `KnowledgeSearchBar` | Client-side search over `_generated/knowledge-search-index.json`. |
|
|
14
|
+
| `KnowledgeSidebarMiddle` | Deprecated legacy sidebar middle section; active sidebar lives under `features/knowledge/sidebar`. |
|
|
15
|
+
| `KNOWLEDGE_ITEMS` | Deprecated default sidebar nav items retained for compatibility. |
|
|
16
|
+
| `KnowledgeMDXProvider`, `useKnowledgeAllowlist`, `KNOWLEDGE_ALLOWLIST` | MDX runtime allowlist (`Card`, `Cards`, `Step`, `Steps`, `Callout`, `Tab`, `Tabs`). |
|
|
17
|
+
| `KNOWLEDGE_BODIES` | Build-time-compiled MDX components keyed by node id. |
|
|
18
|
+
|
|
19
|
+
## Customization tiers
|
|
20
|
+
|
|
21
|
+
1. **Default** — mount `knowledgeManifest` from `@elevasis/ui/features/knowledge`.
|
|
22
|
+
2. **Extend** — pass `extraComponents` to `KnowledgeMDXProvider` or compose around the feature sidebar primitives.
|
|
23
|
+
3. **Replace** — call `@elevasis/core/knowledge` queries directly from project-owned routes.
|
|
24
|
+
|
|
25
|
+
## Codegen
|
|
26
|
+
|
|
27
|
+
`KNOWLEDGE_BODIES` and the search index are regenerated by `pnpm scaffold:sync` (or `pnpm knowledge:generate` to run only the knowledge step). Source: `canonicalOrganizationModel.knowledge.nodes` from `@repo/elevasis-core`.
|
|
28
|
+
|
|
29
|
+
The Vite plugin at `@elevasis/ui/vite-plugin-knowledge` re-runs codegen on `buildStart` and watches the OM source dir for HMR.
|
|
30
|
+
|
|
31
|
+
Phase 1 is read-only. Phase 2 will move bodies into Supabase and ship via `mdx-bundler`.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Organization
|
|
2
|
-
|
|
3
|
-
The organization surface manages multi-tenancy state and the related UI controls.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `OrganizationProvider`
|
|
8
|
-
- `OrganizationContext`
|
|
9
|
-
- `useOrganization`
|
|
10
|
-
- `OrganizationSwitcher`
|
|
11
|
-
- Store types and the legacy slice creator
|
|
12
|
-
- Deprecated hook factories for older consumers
|
|
13
|
-
|
|
14
|
-
## Notes
|
|
15
|
-
|
|
16
|
-
- Prefer the provider and context exports for new code.
|
|
17
|
-
- Legacy Zustand-based helpers remain exported for migration compatibility.
|
|
18
|
-
|
|
1
|
+
# Organization
|
|
2
|
+
|
|
3
|
+
The organization surface manages multi-tenancy state and the related UI controls.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `OrganizationProvider`
|
|
8
|
+
- `OrganizationContext`
|
|
9
|
+
- `useOrganization`
|
|
10
|
+
- `OrganizationSwitcher`
|
|
11
|
+
- Store types and the legacy slice creator
|
|
12
|
+
- Deprecated hook factories for older consumers
|
|
13
|
+
|
|
14
|
+
## Notes
|
|
15
|
+
|
|
16
|
+
- Prefer the provider and context exports for new code.
|
|
17
|
+
- Legacy Zustand-based helpers remain exported for migration compatibility.
|
|
18
|
+
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# Profile
|
|
2
|
-
|
|
3
|
-
The profile surface manages the user profile context and profile-backed helpers.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `ProfileProvider`
|
|
8
|
-
- `useProfile`
|
|
9
|
-
- `ProfileContextValue`
|
|
10
|
-
- `useUserProfile`
|
|
11
|
-
- `UseUserProfileReturn`
|
|
12
|
-
- `UserProfileService`
|
|
13
|
-
- `SupabaseUserProfile` type re-export
|
|
14
|
-
|
|
15
|
-
## Use When
|
|
16
|
-
|
|
17
|
-
- You need a shared user profile context.
|
|
18
|
-
- You need a standalone profile service or hook for sync and access.
|
|
19
|
-
|
|
1
|
+
# Profile
|
|
2
|
+
|
|
3
|
+
The profile surface manages the user profile context and profile-backed helpers.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `ProfileProvider`
|
|
8
|
+
- `useProfile`
|
|
9
|
+
- `ProfileContextValue`
|
|
10
|
+
- `useUserProfile`
|
|
11
|
+
- `UseUserProfileReturn`
|
|
12
|
+
- `UserProfileService`
|
|
13
|
+
- `SupabaseUserProfile` type re-export
|
|
14
|
+
|
|
15
|
+
## Use When
|
|
16
|
+
|
|
17
|
+
- You need a shared user profile context.
|
|
18
|
+
- You need a standalone profile service or hook for sync and access.
|
|
19
|
+
|