@elevasis/sdk 1.25.0 → 1.26.1

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.
Files changed (64) hide show
  1. package/dist/cli.cjs +87 -120
  2. package/dist/index.d.ts +220 -50
  3. package/dist/index.js +4 -435
  4. package/dist/node/index.d.ts +46 -38
  5. package/dist/test-utils/index.d.ts +154 -40
  6. package/dist/test-utils/index.js +27 -355
  7. package/dist/types/worker/adapters/clickup.d.ts +22 -0
  8. package/dist/types/worker/adapters/index.d.ts +1 -0
  9. package/dist/worker/index.js +32 -354
  10. package/package.json +2 -2
  11. package/reference/_navigation.md +11 -1
  12. package/reference/_reference-manifest.json +70 -0
  13. package/reference/claude-config/rules/organization-model.md +12 -1
  14. package/reference/claude-config/rules/organization-os.md +12 -1
  15. package/reference/claude-config/skills/om/SKILL.md +13 -5
  16. package/reference/claude-config/skills/om/operations/codify-level-a.md +109 -100
  17. package/reference/claude-config/skills/om/operations/customers.md +10 -6
  18. package/reference/claude-config/skills/om/operations/features.md +7 -3
  19. package/reference/claude-config/skills/om/operations/goals.md +10 -6
  20. package/reference/claude-config/skills/om/operations/identity.md +8 -5
  21. package/reference/claude-config/skills/om/operations/labels.md +17 -1
  22. package/reference/claude-config/skills/om/operations/offerings.md +11 -7
  23. package/reference/claude-config/skills/om/operations/roles.md +11 -7
  24. package/reference/claude-config/skills/om/operations/techStack.md +10 -2
  25. package/reference/claude-config/skills/setup/SKILL.md +2 -2
  26. package/reference/claude-config/sync-notes/2026-05-20-om-define-helpers.md +32 -0
  27. package/reference/claude-config/sync-notes/2026-05-22-access-model-and-right-panel.md +43 -0
  28. package/reference/claude-config/sync-notes/2026-05-22-lead-gen-tenant-config.md +40 -0
  29. package/reference/claude-config/sync-notes/2026-05-22-org-model-multi-file-split.md +61 -0
  30. package/reference/claude-config/sync-notes/2026-05-23-branding-names-to-identity.md +49 -0
  31. package/reference/claude-config/sync-notes/2026-05-23-om-deployment-drift-detection.md +42 -0
  32. package/reference/cli-management.mdx +541 -0
  33. package/reference/cli.mdx +4 -532
  34. package/reference/concepts.mdx +134 -146
  35. package/reference/deployment/api.mdx +296 -297
  36. package/reference/deployment/command-center.mdx +208 -209
  37. package/reference/deployment/index.mdx +194 -195
  38. package/reference/deployment/provided-features.mdx +110 -107
  39. package/reference/deployment/ui-execution.mdx +249 -250
  40. package/reference/examples/organization-model.ts +14 -4
  41. package/reference/framework/index.mdx +111 -195
  42. package/reference/framework/resource-documentation.mdx +90 -0
  43. package/reference/framework/tutorial-system.mdx +135 -135
  44. package/reference/getting-started.mdx +141 -142
  45. package/reference/index.mdx +95 -106
  46. package/reference/packages/ui/src/auth/README.md +6 -6
  47. package/reference/platform-tools/adapters-integration.mdx +300 -301
  48. package/reference/platform-tools/adapters-platform.mdx +552 -553
  49. package/reference/platform-tools/index.mdx +216 -217
  50. package/reference/platform-tools/type-safety.mdx +82 -82
  51. package/reference/resources/index.mdx +348 -349
  52. package/reference/resources/patterns.mdx +446 -449
  53. package/reference/resources/types.mdx +115 -116
  54. package/reference/roadmap.mdx +164 -165
  55. package/reference/rules/organization-model.md +14 -0
  56. package/reference/runtime.mdx +172 -173
  57. package/reference/scaffold/operations/propagation-pipeline.md +1 -1
  58. package/reference/scaffold/recipes/extend-lead-gen.md +130 -77
  59. package/reference/scaffold/reference/contracts.md +376 -446
  60. package/reference/scaffold/reference/glossary.md +8 -6
  61. package/reference/scaffold/ui/feature-flags-and-gating.md +59 -46
  62. package/reference/scaffold/ui/feature-shell.mdx +11 -11
  63. package/reference/scaffold/ui/recipes.md +24 -24
  64. package/reference/troubleshooting.mdx +222 -223
@@ -0,0 +1,40 @@
1
+ # Lead Gen Tenant Config Boundary
2
+
3
+ ## Why this note exists
4
+
5
+ The lead-gen list-builder package boundary changed so shared packages own reusable mechanics and tenant projects own lead-gen values. `@elevasis/core` no longer carries Elevasis tenant build-template defaults, and `@elevasis/ui` derives lead-gen configuration from the provider-injected Organization Model through `useLeadGenConfig()` instead of importing Elevasis-owned defaults.
6
+
7
+ ## Applies to
8
+
9
+ Template-derived projects that use the shared lead-gen pages, list-builder runner, build templates, workflow actions, or `@elevasis/ui/features/lead-gen`.
10
+
11
+ Projects with no lead-gen surface and no list-builder workflows can ignore the lead-gen authoring steps, but should still accept package baseline updates from the release train.
12
+
13
+ ## Required actions
14
+
15
+ 1. Pull the template/package updates with `/git-sync` after the SDK ship train lands.
16
+ 2. Keep lead-gen stage catalogs, build templates, workflow actions, resources, topology, and credential names in the project Organization Model (`core/config/organization-model.ts`).
17
+ 3. Provide project-owned list-builder action wiring in the UI, typically through `ui/src/config/listActions.ts` and the local app shell.
18
+ 4. Keep tenant workflow implementations in the project operations package and use `listBuilderWorkflow` from `@elevasis/sdk/worker` for stage handlers.
19
+ 5. Do not import Elevasis workspace packages such as `@repo/elevasis-core`, `@repo/core`, or `@repo/ui` from an external project. Use the published `@elevasis/*` packages.
20
+ 6. If the project previously relied on shared UI fallback defaults for lead-gen templates or export workflow IDs, add those values to the project Organization Model before expecting list creation or the build runner to behave usefully.
21
+
22
+ ## Verification
23
+
24
+ Run the project baseline gates after syncing:
25
+
26
+ ```powershell
27
+ pnpm -C core test
28
+ pnpm -C operations check-types
29
+ pnpm -C operations check
30
+ pnpm -C operations test
31
+ pnpm -C ui check-types
32
+ pnpm -C ui build
33
+ pnpm test
34
+ ```
35
+
36
+ For projects with lead-gen enabled, also open the lead-gen list creation and list detail routes and confirm the shared UI sees the project-authored build templates, stage labels, and export workflow.
37
+
38
+ ## Not handled by /git-sync
39
+
40
+ `/git-sync` updates template-propagated files and package baselines. It does not invent project-specific lead-gen catalogs, workflow contracts, credentials, or `listActions` for an existing tenant. Those remain project-authored decisions.
@@ -0,0 +1,61 @@
1
+ # Organization Model Multi-File Split
2
+
3
+ ## Why this note exists
4
+
5
+ `core/config/organization-model.ts` has grown large enough that authoring, review, and `/om`
6
+ codify writes are easier against focused files. This change splits the single file into an
7
+ entry file plus a sibling directory, WITHOUT changing the entry filename, the public export
8
+ contract, or any consumer import. The SDK loader, the Tier-2 merge rule, and every downstream
9
+ consumer continue to resolve `core/config/organization-model.ts` exactly as before.
10
+
11
+ This note is the Tier-1 → Tier-2 handoff interface: the source split lands now (Tier 1); the
12
+ `/external sync` propagation to derived tenants is deferred to a `/sdk ship` cycle (Tier 2).
13
+
14
+ ## What changed
15
+
16
+ The model is now authored across four files:
17
+
18
+ - `core/config/organization-model.ts` -- ENTRY: assembles `canonicalOrganizationModel` /
19
+ `organizationModel` and re-exports every public symbol. No consumer import changes.
20
+ - `core/config/organization-model/profile.ts` -- the `defineOrganizationModel(...)` body
21
+ (identity, customers, offerings, roles, goals). Primary `/om` codify write target.
22
+ - `core/config/organization-model/systems.ts` -- systems, resources, topology, entities,
23
+ actions, resource governance, feature/system-ID constants.
24
+ - `core/config/organization-model/navigation.ts` -- sidebar navigation tree and surface
25
+ projection; imports `systems.ts` directly (never via the entry) to keep the graph acyclic.
26
+
27
+ ## Applies to
28
+
29
+ - `external/_template/core/config/organization-model.ts` and the new `organization-model/`
30
+ sibling directory
31
+ - Any downstream tenant project derived from `_template` that opts in to the split (the
32
+ Tier-2 merge does NOT force adoption — single-file projects remain valid)
33
+
34
+ ## Sync tiers for the new siblings
35
+
36
+ - `organization-model.ts` (entry) -- `merge` / `merge-regions` / `@elevasis/core` (unchanged)
37
+ - `organization-model/systems.ts` -- `merge` / `merge-regions` / `@elevasis/core`
38
+ - `organization-model/navigation.ts` -- `merge` / `merge-regions` / `@elevasis/core`
39
+ - `organization-model/profile.ts` -- `never-touch` / `verify-only` / project-owned (the
40
+ `/om` codify write target; sync never overwrites it)
41
+
42
+ ## Required actions
43
+
44
+ - For an unsplit project that wants the split: mirror the four-file layout from `_template`,
45
+ preserving the `defineOrganizationModel(...)` body verbatim into `profile.ts`. Keep the
46
+ entry filename and the full public export barrel.
47
+ - No action is required to stay on the single-file layout — it remains supported.
48
+
49
+ ## Verification
50
+
51
+ - `pnpm -C core test` (snapshot equality — the resolved model must be byte-identical to the
52
+ pre-split fixture)
53
+ - `pnpm -C operations check-types`
54
+ - `pnpm sync:verify` from the monorepo root after `/external sync` propagates (the
55
+ export-presence checks now tolerate the re-export form across the sibling files)
56
+
57
+ ## Not handled by /git-sync
58
+
59
+ `/git-sync` does not split your `core/config/organization-model.ts` for you. The split is an
60
+ intentional one-time structural migration — author it directly (or via `/om`), preserving the
61
+ `defineOrganizationModel(...)` body verbatim, and review it in a normal PR.
@@ -0,0 +1,49 @@
1
+ # Branding Names to Identity
2
+
3
+ ## Why this note exists
4
+
5
+ The Organization Model now treats `identity.organizationName`, `identity.productName`,
6
+ and `identity.shortName` as the preferred source for display naming. The older
7
+ `branding.*` name fields remain valid for backward compatibility, but new template code
8
+ reads identity first and falls back to branding only for legacy projects.
9
+
10
+ Branding also now supports first-class expression fields such as `voice`, `tagline`,
11
+ `values`, and `themePresetId`, while still accepting tenant-specific passthrough fields.
12
+
13
+ ## Applies to
14
+
15
+ Template-derived projects that customize Organization Model branding or read
16
+ `organizationModel.branding.organizationName`, `productName`, or `shortName` directly in
17
+ UI or setup code.
18
+
19
+ ## Required actions
20
+
21
+ 1. Keep existing `branding.organizationName`, `branding.productName`, and
22
+ `branding.shortName` values in place for compatibility.
23
+ 2. Add matching values under `identity.organizationName`, `identity.productName`, and
24
+ `identity.shortName`.
25
+ 3. Update project UI code to read `identity.* ?? branding.*` for display naming.
26
+ 4. Move brand expression into the broadened `branding` fields: `voice`, `tagline`,
27
+ `values`, `themePresetId`, and project-owned passthrough fields as needed.
28
+
29
+ ## Verification
30
+
31
+ Run the normal template-derived project gates after syncing:
32
+
33
+ ```powershell
34
+ pnpm -C core test
35
+ pnpm -C ui check-types
36
+ pnpm -C ui build
37
+ pnpm -C operations check-types
38
+ pnpm -C operations check
39
+ ```
40
+
41
+ Also open the app shell and Knowledge Base identity/branding views. Confirm display names
42
+ render from identity and branding expression fields render under Branding.
43
+
44
+ ## Not handled by /git-sync
45
+
46
+ `/git-sync` cannot choose real brand voice, tagline, values, logo assets, or custom
47
+ passthrough fields for an individual tenant. It also cannot remove legacy
48
+ `branding.*` name fields from project-specific code until maintainers confirm every
49
+ consumer has migrated to the identity-first fallback.
@@ -0,0 +1,42 @@
1
+ # OM Deployment Drift Detection
2
+
3
+ ## Why this note exists
4
+
5
+ The platform API now persists deployed Organization Model snapshots and validates tenant
6
+ lead-gen and CRM catalogs against the requesting tenant's active deployed model. The
7
+ template does not need source changes for this server-side fix, but template-derived
8
+ projects should accept the `@elevasis/core` package baseline when this release train
9
+ publishes it so generated database and shared type surfaces stay aligned.
10
+
11
+ ## Applies to
12
+
13
+ Template-derived projects that use SDK deployments, lead-gen list creation, CRM stages,
14
+ or CRM actions through the hosted Elevasis API.
15
+
16
+ ## Required actions
17
+
18
+ 1. Pull the package baseline update produced by this ship train.
19
+ 2. Redeploy or verify tenant operations resources if the project has recently changed its
20
+ Organization Model catalogs.
21
+ 3. After the API deployment stage completes, smoke lead-gen list creation with a
22
+ project-owned build template ID.
23
+
24
+ ## Verification
25
+
26
+ Run the normal template-derived project gates after syncing:
27
+
28
+ ```powershell
29
+ pnpm -C core test
30
+ pnpm -C operations check-types
31
+ pnpm -C operations check
32
+ pnpm -C ui check-types
33
+ pnpm -C ui build
34
+ ```
35
+
36
+ For projects using lead-gen, also verify list creation against the hosted API with a
37
+ tenant-owned build template ID.
38
+
39
+ ## Not handled by /git-sync
40
+
41
+ `/git-sync` cannot apply the production database change or deploy the hosted API. It also
42
+ does not create project-specific Organization Model catalogs or workflow resources.