@elevasis/sdk 1.21.0 → 1.22.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 +1239 -173
- package/dist/index.d.ts +1752 -464
- package/dist/index.js +3477 -143
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +19 -1
- package/dist/test-utils/index.d.ts +1188 -127
- package/dist/test-utils/index.js +3359 -152
- package/dist/worker/index.js +3148 -80
- package/package.json +2 -2
- 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 +113 -81
- 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 +45 -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 +171 -84
- 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 +225 -213
- 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 +307 -85
- package/reference/scaffold/recipes/add-a-resource.md +137 -103
- package/reference/scaffold/recipes/customize-knowledge-browser.md +5 -5
- package/reference/scaffold/recipes/customize-organization-model.md +275 -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 +394 -394
- 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 +2136 -2093
- 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,124 +1,158 @@
|
|
|
1
1
|
<!-- @generated by packages/sdk/scripts/copy-reference-docs.mjs -- DO NOT EDIT -->
|
|
2
2
|
<!-- Regenerate: pnpm scaffold:sync -->
|
|
3
3
|
|
|
4
|
-
---
|
|
5
|
-
title: Add a Resource
|
|
6
|
-
description: Add an OM-owned workflow or agent descriptor, bind executable behavior in operations, and verify descriptor-backed deployment.
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Add a Resource
|
|
10
|
-
|
|
11
|
-
Resources are governed descriptors in the Organization Model. The OM owns resource identity, System membership, owner role, and lifecycle status. Operations code imports those descriptors, attaches executable workflow or agent behavior, and exports a `DeploymentSpec` for deployment.
|
|
12
|
-
|
|
13
|
-
Do not keep a second identity catalog in operations. `DeploymentSpec` is the runtime/deploy assembly artifact; it should not be the place where a workflow ID is invented.
|
|
14
|
-
|
|
15
|
-
## 1. Author the OM descriptor
|
|
16
|
-
|
|
17
|
-
Add the descriptor in `core/config/organization-model.ts`:
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
import { defineResources } from '@elevasis/core/organization-model'
|
|
21
|
-
|
|
22
|
-
export const resourceDescriptors = defineResources({
|
|
4
|
+
---
|
|
5
|
+
title: Add a Resource
|
|
6
|
+
description: Add an OM-owned workflow or agent descriptor, bind executable behavior in operations, and verify descriptor-backed deployment.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Add a Resource
|
|
10
|
+
|
|
11
|
+
Resources are governed descriptors in the Organization Model. The OM owns resource identity, System membership, owner role, and lifecycle status. Operations code imports those descriptors, attaches executable workflow or agent behavior, and exports a `DeploymentSpec` for deployment.
|
|
12
|
+
|
|
13
|
+
Do not keep a second identity catalog in operations. `DeploymentSpec` is the runtime/deploy assembly artifact; it should not be the place where a workflow ID is invented.
|
|
14
|
+
|
|
15
|
+
## 1. Author the OM descriptor
|
|
16
|
+
|
|
17
|
+
Add the descriptor in `core/config/organization-model.ts`:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { defineResources } from '@elevasis/core/organization-model'
|
|
21
|
+
|
|
22
|
+
export const resourceDescriptors = defineResources({
|
|
23
23
|
myWorkflow: {
|
|
24
24
|
id: 'my-workflow',
|
|
25
|
+
title: 'My Workflow',
|
|
26
|
+
description: 'Runs the governed work item workflow.',
|
|
25
27
|
order: 10,
|
|
26
28
|
kind: 'workflow',
|
|
27
|
-
systemPath: '
|
|
29
|
+
systemPath: 'operations',
|
|
28
30
|
ownerRoleId: 'role-ops-lead',
|
|
29
31
|
status: 'active',
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
ontology: {
|
|
33
|
+
actions: ['operations:action/my-workflow.run'],
|
|
34
|
+
primaryAction: 'operations:action/my-workflow.run',
|
|
35
|
+
reads: ['operations:object/work-item'],
|
|
36
|
+
writes: ['operations:object/work-item'],
|
|
37
|
+
usesCatalogs: ['operations:catalog/workflow-status'],
|
|
38
|
+
emits: ['operations:event/my-workflow.completed']
|
|
39
|
+
},
|
|
40
|
+
codeRefs: [
|
|
41
|
+
{
|
|
42
|
+
path: 'operations/src/my-workflow/index.ts',
|
|
43
|
+
role: 'entrypoint',
|
|
44
|
+
symbol: 'myWorkflow'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
path: 'operations/src/my-workflow/my-workflow.test.ts',
|
|
48
|
+
role: 'test'
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
})
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Then expose the descriptor catalog through the Organization Model:
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
export const resourceGovernanceModel = {
|
|
59
|
+
systems,
|
|
60
|
+
resources: resourceDescriptors
|
|
61
|
+
} as const
|
|
62
|
+
```
|
|
63
|
+
|
|
44
64
|
Use `organizationModel.resources` as the Resources descriptor catalog. Graph references still use kind-prefixed IDs, such as `system:sales.crm`, `resource:lead-import`, or `action:operations.queue.review`, when runtime behavior needs semantic graph binding.
|
|
45
65
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
66
|
+
Use `codeRefs` as repo-relative implementation breadcrumbs for agents and operators. They do not define resource identity, System membership, runtime topology, or graph links; they point from the governed Resource descriptor to the files that implement, validate, or document it.
|
|
67
|
+
|
|
68
|
+
Use descriptor `title` and `description` for executable display metadata. Use nested `resource.ontology` bindings to declare which ontology actions, objects, catalogs, and events the resource performs, reads, writes, uses, or emits. `resource.ontology.primaryAction` is the default/selectable ontology action and must be included in `resource.ontology.actions`. Optional top-level resource `emits` remains readable for bridge-era event descriptors, but new descriptors should keep event bindings in `resource.ontology.emits`.
|
|
69
|
+
|
|
70
|
+
## 2. Author executable behavior
|
|
71
|
+
|
|
72
|
+
Operations code owns schemas, steps, handlers, triggers, and UI execution metadata. Import the descriptor and derive runtime identity from it at the binding boundary:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
import type { WorkflowDefinition } from '@elevasis/sdk'
|
|
76
|
+
import { resourceDescriptors } from '@core/config/organization-model'
|
|
77
|
+
|
|
78
|
+
export const myWorkflow: WorkflowDefinition = {
|
|
79
|
+
config: {
|
|
80
|
+
resource: resourceDescriptors.myWorkflow,
|
|
81
|
+
resourceId: resourceDescriptors.myWorkflow.id,
|
|
82
|
+
name: 'My Workflow',
|
|
83
|
+
type: resourceDescriptors.myWorkflow.kind,
|
|
84
|
+
version: '1.0.0',
|
|
85
|
+
status: 'dev',
|
|
86
|
+
category: 'production'
|
|
87
|
+
},
|
|
88
|
+
contract: {
|
|
89
|
+
inputSchema,
|
|
90
|
+
outputSchema
|
|
91
|
+
},
|
|
92
|
+
steps: {
|
|
93
|
+
run: {
|
|
94
|
+
id: 'run',
|
|
95
|
+
name: 'Run',
|
|
96
|
+
handler: async (_input, context) => {
|
|
97
|
+
context.logger.info('[my-workflow] starting')
|
|
98
|
+
return { ok: true }
|
|
99
|
+
},
|
|
100
|
+
inputSchema,
|
|
101
|
+
outputSchema,
|
|
102
|
+
next: null
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
entryPoint: 'run'
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
`category` is one of `production`, `diagnostic`, `internal`, or `testing`.
|
|
110
|
+
|
|
111
|
+
## 3. Register in the deployment spec
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
import { resourceGovernanceModel } from '@core/config/organization-model'
|
|
115
|
+
import { myWorkflow } from './my-workflow/index.js'
|
|
116
|
+
|
|
117
|
+
export const org = {
|
|
118
|
+
version: '0.1.0',
|
|
119
|
+
organizationModel: resourceGovernanceModel,
|
|
120
|
+
workflows: [myWorkflow],
|
|
121
|
+
agents: []
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Use `.js` extensions in TypeScript source imports for ESM compatibility.
|
|
126
|
+
|
|
127
|
+
## 4. Declare runtime relationships
|
|
128
|
+
|
|
129
|
+
Use `organizationModel.topology.relationships` for durable execution topology:
|
|
49
130
|
|
|
50
131
|
```ts
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
category: 'production'
|
|
63
|
-
},
|
|
64
|
-
contract: {
|
|
65
|
-
inputSchema,
|
|
66
|
-
outputSchema
|
|
67
|
-
},
|
|
68
|
-
steps: {
|
|
69
|
-
run: {
|
|
70
|
-
id: 'run',
|
|
71
|
-
name: 'Run',
|
|
72
|
-
handler: async (_input, context) => {
|
|
73
|
-
context.logger.info('[my-workflow] starting')
|
|
74
|
-
return { ok: true }
|
|
75
|
-
},
|
|
76
|
-
inputSchema,
|
|
77
|
-
outputSchema,
|
|
78
|
-
next: null
|
|
132
|
+
topology: {
|
|
133
|
+
relationships: [
|
|
134
|
+
{
|
|
135
|
+
source: { kind: 'trigger', id: 'daily-work-item-import' },
|
|
136
|
+
target: { kind: 'resource', id: 'my-workflow' },
|
|
137
|
+
kind: 'triggers'
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
source: { kind: 'resource', id: 'my-workflow' },
|
|
141
|
+
target: { kind: 'externalResource', id: 'hubspot' },
|
|
142
|
+
kind: 'uses'
|
|
79
143
|
}
|
|
80
|
-
|
|
81
|
-
entryPoint: 'run'
|
|
144
|
+
]
|
|
82
145
|
}
|
|
83
146
|
```
|
|
84
147
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
##
|
|
88
|
-
|
|
89
|
-
```
|
|
90
|
-
import { resourceGovernanceModel } from '@core/config/organization-model'
|
|
91
|
-
import { myWorkflow } from './my-workflow/index.js'
|
|
92
|
-
|
|
93
|
-
export const org = {
|
|
94
|
-
version: '0.1.0',
|
|
95
|
-
organizationModel: resourceGovernanceModel,
|
|
96
|
-
workflows: [myWorkflow],
|
|
97
|
-
agents: []
|
|
98
|
-
}
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
Use `.js` extensions in TypeScript source imports for ESM compatibility.
|
|
102
|
-
|
|
103
|
-
## 4. Declare runtime relationships
|
|
104
|
-
|
|
105
|
-
Use `DeploymentSpec.relationships` for execution topology:
|
|
106
|
-
|
|
107
|
-
```ts
|
|
108
|
-
relationships: {
|
|
109
|
-
'my-workflow': {
|
|
110
|
-
triggers: { workflows: ['email-notification'] },
|
|
111
|
-
uses: { integrations: ['hubspot'] }
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
Use `config.links` for semantic graph binding and `relationships` for runtime execution relationships.
|
|
117
|
-
|
|
118
|
-
## 5. Verify
|
|
119
|
-
|
|
120
|
-
```bash
|
|
148
|
+
Use relationship kinds `triggers`, `uses`, and `approval` for the initial topology vocabulary. For semantic graph binding, prefer OM ontology IDs in `resource.ontology`; keep `config.links` only when maintaining older descriptors that still need the legacy graph bridge.
|
|
149
|
+
|
|
150
|
+
## 5. Verify
|
|
151
|
+
|
|
152
|
+
```bash
|
|
121
153
|
pnpm -C operations check
|
|
122
154
|
pnpm -C operations deploy
|
|
123
155
|
pnpm exec elevasis describe Elevasis/my-workflow
|
|
156
|
+
pnpm scaffold:sync
|
|
157
|
+
pnpm scaffold:verify
|
|
124
158
|
```
|
|
@@ -26,7 +26,7 @@ export default defineConfig({
|
|
|
26
26
|
|
|
27
27
|
`elevasisVite()` includes `knowledgePlugin()` as one of the plugins it returns. The plugin runs MDX codegen at `buildStart` and handles hot-module updates during `vite dev`. You do not need to touch `vite.config.ts` for the Knowledge Browser to work.
|
|
28
28
|
|
|
29
|
-
Knowledge node icons are authored as semantic data tokens in MDX frontmatter, not as UI library component names. Use `
|
|
29
|
+
Knowledge node icons are authored as semantic data tokens in MDX frontmatter, not as UI library component names. Use `playbook`, `strategy`, or `reference` by node kind, or a project-owned `custom.*` token when the platform catalog does not cover the concept.
|
|
30
30
|
|
|
31
31
|
## Author a Knowledge Node
|
|
32
32
|
|
|
@@ -42,7 +42,7 @@ Required frontmatter fields:
|
|
|
42
42
|
|
|
43
43
|
Optional frontmatter fields:
|
|
44
44
|
|
|
45
|
-
- `icon` -- semantic token such as `
|
|
45
|
+
- `icon` -- semantic token such as `playbook` (defaults by kind if omitted)
|
|
46
46
|
- `links` -- array of node IDs or System references this node relates to
|
|
47
47
|
- `ownerIds` -- array of role IDs that own or maintain this node
|
|
48
48
|
|
|
@@ -54,7 +54,7 @@ id: knowledge.internal-runbook
|
|
|
54
54
|
kind: playbook
|
|
55
55
|
title: Internal Runbook
|
|
56
56
|
description: Operating notes for project-specific support and escalation.
|
|
57
|
-
icon:
|
|
57
|
+
icon: playbook
|
|
58
58
|
ownerIds:
|
|
59
59
|
- role.operator
|
|
60
60
|
links:
|
|
@@ -203,7 +203,7 @@ The `knowledgePlugin()` Vite plugin is still needed in this path because it gene
|
|
|
203
203
|
| `KnowledgeSearchBar` | `@elevasis/ui/knowledge` | FlexSearch over title, summary, and body |
|
|
204
204
|
| `KnowledgeMDXProvider` | `@elevasis/ui/knowledge` | React context supplying the component allowlist |
|
|
205
205
|
| `knowledgePlugin` | `@elevasis/ui/vite-plugin-knowledge` | Vite plugin for build-time MDX codegen + HMR (direct use) |
|
|
206
|
-
| `bySystem`, `byKind`, `byOwner`, `governs`, `governedBy` | `@elevasis/core/knowledge` | Pure query functions for project-owned custom UI |
|
|
206
|
+
| `bySystem`, `byOntology`, `byKind`, `byOwner`, `governs`, `governedBy` | `@elevasis/core/knowledge` | Pure query functions for project-owned custom UI |
|
|
207
207
|
|
|
208
208
|
For template-derived projects, import `elevasisVite` from `@elevasis/ui/vite` rather than `knowledgePlugin` directly. The direct `knowledgePlugin` import from `@elevasis/ui/vite-plugin-knowledge` remains available for advanced or non-template wiring.
|
|
209
209
|
|
|
@@ -380,5 +380,5 @@ The following exports are added in Phase 1.5 on top of the exports table above:
|
|
|
380
380
|
## See Also
|
|
381
381
|
|
|
382
382
|
- [Composition and Extensibility](../composition-extensibility.mdx) -- the general sidebar override pattern this recipe follows (CRM + delivery examples)
|
|
383
|
-
- [Query the Knowledge Graph](query-the-knowledge-graph.md) -- CLI walkthrough of the same
|
|
383
|
+
- [Query the Knowledge Graph](query-the-knowledge-graph.md) -- CLI walkthrough of the same six query axes
|
|
384
384
|
- [Contracts Reference](../reference/contracts.md) -- `SystemModule`, `NavItem`, `OrgKnowledgeNode` TypeScript shapes
|