@elevasis/sdk 1.19.0 → 1.20.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.
- package/dist/cli.cjs +1718 -72
- package/dist/index.d.ts +661 -7
- package/dist/index.js +565 -42
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.js +219 -2
- package/dist/test-utils/index.d.ts +459 -4
- package/dist/test-utils/index.js +509 -37
- package/dist/types/worker/platform.d.ts +15 -1
- package/dist/worker/index.js +365 -37
- package/package.json +2 -2
- package/reference/_navigation.md +2 -1
- package/reference/_reference-manifest.json +14 -0
- package/reference/claude-config/registries/knowledge-flags.json +156 -0
- package/reference/claude-config/rules/agent-start-here.md +5 -5
- package/reference/claude-config/rules/deployment.md +4 -3
- package/reference/claude-config/rules/frontend.md +2 -2
- package/reference/claude-config/rules/operations.md +17 -13
- package/reference/claude-config/rules/organization-model.md +7 -5
- package/reference/claude-config/rules/organization-os.md +13 -11
- package/reference/claude-config/rules/ui.md +3 -3
- package/reference/claude-config/rules/vibe.md +4 -4
- package/reference/claude-config/skills/explore/SKILL.md +4 -4
- package/reference/claude-config/skills/knowledge/SKILL.md +8 -8
- package/reference/claude-config/skills/knowledge/operations/codify-level-a.md +7 -7
- package/reference/claude-config/skills/knowledge/operations/codify-level-b.md +13 -13
- package/reference/claude-config/skills/knowledge/operations/customers.md +1 -1
- package/reference/claude-config/skills/knowledge/operations/goals.md +1 -1
- package/reference/claude-config/skills/knowledge/operations/identity.md +1 -1
- package/reference/claude-config/skills/knowledge/operations/offerings.md +1 -1
- package/reference/claude-config/skills/knowledge/operations/roles.md +1 -1
- package/reference/claude-config/skills/knowledge/operations/techStack.md +19 -91
- package/reference/claude-config/skills/project/SKILL.md +73 -13
- package/reference/claude-config/skills/save/SKILL.md +5 -5
- package/reference/claude-config/skills/tutorial/technical.md +5 -6
- package/reference/claude-config/sync-notes/2026-05-07-sdk-changes-release-train.md +34 -0
- package/reference/claude-config/sync-notes/2026-05-08-resource-governance-scaffold-guidance.md +38 -0
- package/reference/claude-config/sync-notes/2026-05-09-clients-domain.md +32 -0
- package/reference/claude-config/sync-notes/2026-05-09-command-system.md +33 -0
- package/reference/claude-config/sync-notes/2026-05-09-resource-governance-and-misc.md +69 -0
- package/reference/examples/organization-model.ts +17 -5
- package/reference/framework/index.mdx +1 -1
- package/reference/framework/project-structure.mdx +10 -8
- package/reference/packages/core/src/business/README.md +2 -2
- package/reference/packages/core/src/organization-model/README.md +10 -3
- package/reference/resources/index.mdx +27 -17
- package/reference/scaffold/core/organization-model.mdx +33 -14
- package/reference/scaffold/operations/workflow-recipes.md +35 -29
- package/reference/scaffold/recipes/add-a-feature.md +18 -3
- package/reference/scaffold/recipes/add-a-resource.md +50 -10
- package/reference/scaffold/recipes/customize-crm-actions.md +12 -6
- package/reference/scaffold/recipes/customize-organization-model.md +18 -3
- package/reference/scaffold/recipes/extend-crm.md +17 -19
- package/reference/scaffold/recipes/extend-lead-gen.md +31 -31
- package/reference/scaffold/recipes/index.md +1 -1
- package/reference/scaffold/reference/contracts.md +501 -303
- package/reference/scaffold/reference/feature-registry.md +1 -1
- package/reference/scaffold/reference/glossary.md +8 -3
- package/reference/scaffold/ui/recipes.md +21 -6
|
@@ -31,7 +31,7 @@ Feature IDs defined in `DEFAULT_ORGANIZATION_MODEL.features` (`packages/core/src
|
|
|
31
31
|
|
|
32
32
|
```typescript
|
|
33
33
|
// FeatureSchema: { id, label, enabled, color?, icon?, entityIds, surfaceIds, resourceIds, capabilityIds }
|
|
34
|
-
type DefaultFeatureId = 'dashboard' | 'identity' | 'platform' | 'finance' | 'sales' | 'sales.crm' | 'sales.lead-gen' | 'projects' | 'operations' | 'knowledge.command-view' | 'operations.overview' | 'operations.resources' | 'operations.command-queue' | 'operations.sessions' | 'operations.task-scheduler' | 'monitoring' | 'monitoring.calendar' | 'monitoring.activity-log' | 'monitoring.execution-logs' | 'monitoring.execution-health' | 'monitoring.cost-analytics' | 'monitoring.notifications' | 'monitoring.submitted-requests' | 'settings' | 'settings.account' | 'settings.appearance' | 'settings.roles' | 'settings.organization' | 'settings.credentials' | 'settings.api-keys' | 'settings.webhooks' | 'settings.deployments' | 'admin' | 'admin.system-health' | 'admin.organizations' | 'admin.users' | 'admin.design-showcase' | 'admin.debug' | 'archive' | 'archive.agent-chat' | 'archive.execution-runner' | 'seo' | 'knowledge' | 'knowledge.base'
|
|
34
|
+
type DefaultFeatureId = 'dashboard' | 'identity' | 'platform' | 'finance' | 'business' | 'sales' | 'sales.crm' | 'sales.lead-gen' | 'projects' | 'clients' | 'operations' | 'knowledge.command-view' | 'operations.overview' | 'operations.resources' | 'operations.command-queue' | 'operations.sessions' | 'operations.task-scheduler' | 'monitoring' | 'monitoring.calendar' | 'monitoring.activity-log' | 'monitoring.execution-logs' | 'monitoring.execution-health' | 'monitoring.cost-analytics' | 'monitoring.notifications' | 'monitoring.submitted-requests' | 'settings' | 'settings.account' | 'settings.appearance' | 'settings.roles' | 'settings.organization' | 'settings.credentials' | 'settings.api-keys' | 'settings.webhooks' | 'settings.deployments' | 'admin' | 'admin.system-health' | 'admin.organizations' | 'admin.users' | 'admin.design-showcase' | 'admin.debug' | 'archive' | 'archive.agent-chat' | 'archive.execution-runner' | 'seo' | 'knowledge' | 'knowledge.base'
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
These are the built-in feature IDs. The `featureId` field on a `FeatureModule` manifest must match the `id` of a feature in the organization model to enable access-flag gating.
|
|
@@ -14,7 +14,7 @@ description: Terminology disambiguation for Organization OS concepts used in the
|
|
|
14
14
|
|
|
15
15
|
**Contract** -- the publishable boundary a consumer depends on: Zod schemas, TypeScript types, provider props, resource definitions, or workflow I/O schemas.
|
|
16
16
|
|
|
17
|
-
**DeploymentSpec** --
|
|
17
|
+
**DeploymentSpec** -- runtime/deploy assembly for one organization: workflows, agents, triggers, integrations, relationships, external resources, and human checkpoints. It assembles executable behavior around Organization Model resource descriptors; it is not the source of resource identity.
|
|
18
18
|
|
|
19
19
|
**Feature** -- either a platform capability, a shell `FeatureModule`, or an Organization Model feature node. In the current shell contract, Organization Model feature nodes drive sidebar hierarchy and access state.
|
|
20
20
|
|
|
@@ -32,13 +32,17 @@ description: Terminology disambiguation for Organization OS concepts used in the
|
|
|
32
32
|
|
|
33
33
|
**MembershipFeatureConfig** -- per-member feature override config: `{ features?: Record<string, boolean> }`.
|
|
34
34
|
|
|
35
|
-
**OrganizationModel** -- top-level semantic contract for an organization. Current primary fields include `features`, `branding`, `navigation`, `sales`, `prospecting`, `projects`, `identity`, `customers`, `offerings`, `roles`, `goals`, `statuses`, and `
|
|
35
|
+
**OrganizationModel** -- top-level semantic contract for an organization. Current primary fields include `features`, `branding`, `navigation`, `sales`, `prospecting`, `projects`, `identity`, `customers`, `offerings`, `roles`, `goals`, `systems`, `resources`, `statuses`, `operations`, and `knowledge`.
|
|
36
36
|
|
|
37
37
|
**OrganizationModelFeature** -- feature node in `OrganizationModel.features`. Fields include `id`, `label`, `description`, `enabled`, `path`, `icon`, `color`, `uiPosition`, `requiresAdmin`, and `devOnly`.
|
|
38
38
|
|
|
39
39
|
**Provider / ElevasisFeaturesProvider** -- runtime that registers manifests, resolves feature access against the org model, and exposes shell helpers through `useElevasisFeatures()`.
|
|
40
40
|
|
|
41
|
-
**Resource** --
|
|
41
|
+
**Resource** -- governance-only descriptor in `OrganizationModel.resources.entries` for a workflow, agent, or integration. Runtime code derives `resourceId` and kind from the descriptor, then attaches executable behavior in operations.
|
|
42
|
+
|
|
43
|
+
**Resource descriptor** -- OM entry with canonical `id`, required `systemId`, governance `status`, and optional role ownership. Workflow descriptors may mirror `capabilityKey`; agent descriptors carry `agentKind`, `sessionCapable`, and optional `actsAsRoleId`; integration descriptors name a provider.
|
|
44
|
+
|
|
45
|
+
**System** -- tenant-defined bounded context in `OrganizationModel.systems.systems` that groups operational resources and carries governance metadata such as responsible role, governing knowledge, driven goals, kind, and status.
|
|
42
46
|
|
|
43
47
|
**ResourceCategory** -- resource metadata category: `production`, `diagnostic`, `internal`, or `testing`.
|
|
44
48
|
|
|
@@ -57,6 +61,7 @@ description: Terminology disambiguation for Organization OS concepts used in the
|
|
|
57
61
|
**`@elevasis/core`**
|
|
58
62
|
|
|
59
63
|
- `OrganizationModel`, `OrganizationModelFeature`
|
|
64
|
+
- `SystemEntry`, `ResourceEntry`
|
|
60
65
|
- `resolveOrganizationModel`, `defineOrganizationModel`, `DEFAULT_ORGANIZATION_MODEL`
|
|
61
66
|
- `MembershipFeatureConfig`
|
|
62
67
|
- `DeploymentSpec`, `ResourceLink`, `ResourceCategory`
|
|
@@ -156,13 +156,28 @@ All tokens flow into CSS variables. Change `defaultPreset` to alter the initial
|
|
|
156
156
|
|
|
157
157
|
## 6. Execute a Resource from a Surface
|
|
158
158
|
|
|
159
|
-
Declare the resource
|
|
159
|
+
Declare the resource descriptor in the Organization Model, then derive runtime metadata from that descriptor:
|
|
160
160
|
|
|
161
161
|
```ts
|
|
162
|
+
// core/config/organization-model.ts
|
|
163
|
+
import { defineResources } from '@elevasis/core/organization-model'
|
|
164
|
+
|
|
165
|
+
export const resourceDescriptors = defineResources({
|
|
166
|
+
writeNote: {
|
|
167
|
+
id: 'write-note',
|
|
168
|
+
kind: 'workflow',
|
|
169
|
+
systemId: 'sys.sales',
|
|
170
|
+
ownerRoleId: 'role-sales-ops',
|
|
171
|
+
status: 'active'
|
|
172
|
+
}
|
|
173
|
+
})
|
|
174
|
+
|
|
175
|
+
// operations/src/write-note/index.ts
|
|
162
176
|
config: {
|
|
163
|
-
|
|
177
|
+
resource: resourceDescriptors.writeNote,
|
|
178
|
+
resourceId: resourceDescriptors.writeNote.id,
|
|
164
179
|
name: 'Write Note',
|
|
165
|
-
type:
|
|
180
|
+
type: resourceDescriptors.writeNote.kind,
|
|
166
181
|
version: '1.0.0',
|
|
167
182
|
status: 'prod',
|
|
168
183
|
links: [{ nodeId: 'feature:sales.crm', kind: 'operates-on' }],
|
|
@@ -170,11 +185,11 @@ config: {
|
|
|
170
185
|
}
|
|
171
186
|
```
|
|
172
187
|
|
|
173
|
-
Render
|
|
188
|
+
Render the deployed workflow with `RunResourceButton`:
|
|
174
189
|
|
|
175
190
|
```tsx
|
|
176
191
|
import { RunResourceButton } from '@elevasis/ui/components'
|
|
177
|
-
import { writeNoteInputSchema } from '@
|
|
192
|
+
import { writeNoteInputSchema } from '@core/types'
|
|
178
193
|
|
|
179
194
|
export function DealPanel({ dealId }: { dealId: string }) {
|
|
180
195
|
return (
|
|
@@ -191,7 +206,7 @@ export function DealPanel({ dealId }: { dealId: string }) {
|
|
|
191
206
|
}
|
|
192
207
|
```
|
|
193
208
|
|
|
194
|
-
`links[].nodeId` binds the resource into the Organization Model graph. `category` drives operational filtering for production, diagnostic, internal, and testing resources.
|
|
209
|
+
`resourceDescriptors.writeNote.id` is the single authored ID. `RunResourceButton` still receives the deployed runtime ID. `links[].nodeId` binds the resource into the Organization Model graph. `category` drives operational filtering for production, diagnostic, internal, and testing resources.
|
|
195
210
|
|
|
196
211
|
## Cross-References
|
|
197
212
|
|