@elevasis/core 0.27.0 → 0.28.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.
@@ -73,6 +73,8 @@ export {
73
73
  SurfaceTypeSchema
74
74
  } from './domains/navigation'
75
75
  export {
76
+ defineEntity,
77
+ defineEntities,
76
78
  EntitiesDomainSchema,
77
79
  EntityIdSchema,
78
80
  EntityLinkKindSchema,
@@ -80,6 +82,8 @@ export {
80
82
  EntitySchema
81
83
  } from './domains/entities'
82
84
  export {
85
+ defineKnowledgeNode,
86
+ defineKnowledgeNodes,
83
87
  KnowledgeDomainSchema,
84
88
  KnowledgeLinkSchema,
85
89
  KnowledgeTargetKindSchema,
@@ -100,6 +104,8 @@ export {
100
104
  ActionScopeSchema,
101
105
  ApiEndpointInvocationSchema,
102
106
  DEFAULT_ORGANIZATION_MODEL_ACTIONS,
107
+ defineAction,
108
+ defineActions,
103
109
  findOrganizationActionById,
104
110
  McpToolInvocationSchema,
105
111
  ScriptExecutionInvocationSchema,
@@ -114,3 +120,39 @@ export type {
114
120
  ActionRef,
115
121
  ActionScope
116
122
  } from './domains/actions'
123
+ export {
124
+ defineGoal,
125
+ defineGoals,
126
+ DEFAULT_ORGANIZATION_MODEL_GOALS,
127
+ GoalsDomainSchema,
128
+ KeyResultSchema,
129
+ ObjectiveSchema
130
+ } from './domains/goals'
131
+ export type { GoalsDomain, KeyResult, Objective } from './domains/goals'
132
+ export {
133
+ defineCustomer,
134
+ defineCustomers,
135
+ CustomerSegmentSchema,
136
+ CustomersDomainSchema,
137
+ DEFAULT_ORGANIZATION_MODEL_CUSTOMERS,
138
+ FirmographicsSchema
139
+ } from './domains/customers'
140
+ export type { CustomerSegment, CustomersDomain, Firmographics } from './domains/customers'
141
+ export {
142
+ defineOffering,
143
+ defineOfferings,
144
+ DEFAULT_ORGANIZATION_MODEL_OFFERINGS,
145
+ OfferingsDomainSchema,
146
+ PricingModelSchema,
147
+ ProductSchema
148
+ } from './domains/offerings'
149
+ export type { OfferingsDomain, PricingModel, Product } from './domains/offerings'
150
+ export {
151
+ defineStatus,
152
+ defineStatuses,
153
+ DEFAULT_ORGANIZATION_MODEL_STATUSES,
154
+ StatusesDomainSchema,
155
+ StatusEntrySchema,
156
+ StatusSemanticClassSchema
157
+ } from './domains/statuses'
158
+ export type { StatusEntry, StatusesDomain, StatusSemanticClass } from './domains/statuses'
@@ -64,18 +64,24 @@ export {
64
64
  export { DEFAULT_ORGANIZATION_MODEL } from './defaults'
65
65
  export {
66
66
  DEFAULT_ORGANIZATION_MODEL_STATUSES,
67
+ defineStatus,
68
+ defineStatuses,
67
69
  StatusesDomainSchema,
68
70
  StatusEntrySchema,
69
71
  StatusSemanticClassSchema
70
72
  } from './domains/statuses'
71
73
  export {
72
74
  DEFAULT_ORGANIZATION_MODEL_CUSTOMERS,
75
+ defineCustomer,
76
+ defineCustomers,
73
77
  CustomersDomainSchema,
74
78
  CustomerSegmentSchema,
75
79
  FirmographicsSchema
76
80
  } from './domains/customers'
77
81
  export {
78
82
  DEFAULT_ORGANIZATION_MODEL_OFFERINGS,
83
+ defineOffering,
84
+ defineOfferings,
79
85
  OfferingsDomainSchema,
80
86
  ProductSchema,
81
87
  PricingModelSchema
@@ -83,6 +89,8 @@ export {
83
89
  export {
84
90
  AgentRoleHolderSchema,
85
91
  DEFAULT_ORGANIZATION_MODEL_ROLES,
92
+ defineRole,
93
+ defineRoles,
86
94
  HumanRoleHolderSchema,
87
95
  RoleHolderSchema,
88
96
  RoleHoldersSchema,
@@ -91,9 +99,18 @@ export {
91
99
  RoleSchema,
92
100
  TeamRoleHolderSchema
93
101
  } from './domains/roles'
94
- export { DEFAULT_ORGANIZATION_MODEL_GOALS, GoalsDomainSchema, ObjectiveSchema, KeyResultSchema } from './domains/goals'
102
+ export {
103
+ DEFAULT_ORGANIZATION_MODEL_GOALS,
104
+ defineGoal,
105
+ defineGoals,
106
+ GoalsDomainSchema,
107
+ ObjectiveSchema,
108
+ KeyResultSchema
109
+ } from './domains/goals'
95
110
  export {
96
111
  DEFAULT_ORGANIZATION_MODEL_SYSTEMS,
112
+ defineSystem,
113
+ defineSystems,
97
114
  SystemEntrySchema,
98
115
  SystemIdSchema,
99
116
  SystemKindSchema,
@@ -155,6 +172,8 @@ export {
155
172
  ActionScopeSchema,
156
173
  ApiEndpointInvocationSchema,
157
174
  DEFAULT_ORGANIZATION_MODEL_ACTIONS,
175
+ defineAction,
176
+ defineActions,
158
177
  findOrganizationActionById,
159
178
  McpToolInvocationSchema,
160
179
  ScriptExecutionInvocationSchema,
@@ -162,6 +181,8 @@ export {
162
181
  } from './domains/actions'
163
182
  export {
164
183
  DEFAULT_ORGANIZATION_MODEL_ENTITIES,
184
+ defineEntity,
185
+ defineEntities,
165
186
  EntitiesDomainSchema,
166
187
  EntityIdSchema,
167
188
  EntityLinkKindSchema,
@@ -170,6 +191,8 @@ export {
170
191
  } from './domains/entities'
171
192
  export {
172
193
  DEFAULT_ORGANIZATION_MODEL_POLICIES,
194
+ definePolicy,
195
+ definePolicies,
173
196
  PoliciesDomainSchema,
174
197
  PolicyEffectSchema,
175
198
  PolicyApplicabilitySchema,
@@ -191,6 +214,8 @@ export {
191
214
  SurfaceTypeSchema
192
215
  } from './domains/navigation'
193
216
  export {
217
+ defineKnowledgeNode,
218
+ defineKnowledgeNodes,
194
219
  KnowledgeDomainSchema,
195
220
  KnowledgeLinkSchema,
196
221
  KnowledgeTargetKindSchema,
@@ -202,7 +227,7 @@ export { defineOrganizationModel, resolveOrganizationModel, resolveOrganizationM
202
227
  export type { ResolvedSystemEntry, ResolvedOrganizationModel } from './resolve'
203
228
  export { createFoundationOrganizationModel } from './foundation'
204
229
  export { scaffoldOrganizationModel } from './scaffolders'
205
- export { listAllSystems } from './helpers'
230
+ export { defineDomainRecord, listAllSystems } from './helpers'
206
231
  export { projectOrganizationSurfaces, validateOrganizationSurfaceProjection } from './surface-projection'
207
232
  export type {
208
233
  BaseOmScaffoldSpec,
@@ -1,3 +1,3 @@
1
1
  export const VERSION = {
2
- CURRENT: '1.10.2'
2
+ CURRENT: '1.11.0'
3
3
  }
@@ -3747,33 +3747,33 @@ export type ListToolMap = {
3747
3747
  ### `KnowledgeLinkSchema`
3748
3748
 
3749
3749
  ```typescript
3750
- export const KnowledgeLinkSchema = z
3751
- .union([CanonicalKnowledgeLinkSchema, LegacyKnowledgeLinkSchema])
3752
- .transform((link) => {
3753
- const target = 'target' in link ? link.target : targetFromNodeId(link.nodeId)
3754
- return {
3755
- target,
3756
- nodeId: nodeIdFromTarget(target)
3757
- }
3750
+ export const KnowledgeLinkSchema = z
3751
+ .union([CanonicalKnowledgeLinkSchema, LegacyKnowledgeLinkSchema])
3752
+ .transform((link) => {
3753
+ const target = 'target' in link ? link.target : targetFromNodeId(link.nodeId)
3754
+ return {
3755
+ target,
3756
+ nodeId: nodeIdFromTarget(target)
3757
+ }
3758
3758
  })
3759
3759
  ```
3760
3760
 
3761
3761
  ### `OrgKnowledgeKindSchema`
3762
3762
 
3763
3763
  ```typescript
3764
- export const OrgKnowledgeKindSchema = z
3765
- .enum(['playbook', 'strategy', 'reference'])
3764
+ export const OrgKnowledgeKindSchema = z
3765
+ .enum(['playbook', 'strategy', 'reference'])
3766
3766
  .meta({ label: 'Knowledge kind', color: 'grape' })
3767
3767
  ```
3768
3768
 
3769
3769
  ### `OrgKnowledgeNodeSchema`
3770
3770
 
3771
3771
  ```typescript
3772
- export const OrgKnowledgeNodeSchema = z.object({
3773
- id: ModelIdSchema,
3774
- kind: OrgKnowledgeKindSchema,
3775
- title: z.string().trim().min(1).max(200),
3776
- summary: z.string().trim().min(1).max(1000),
3772
+ export const OrgKnowledgeNodeSchema = z.object({
3773
+ id: ModelIdSchema,
3774
+ kind: OrgKnowledgeKindSchema,
3775
+ title: z.string().trim().min(1).max(200),
3776
+ summary: z.string().trim().min(1).max(1000),
3777
3777
  icon: IconNameSchema.optional(),
3778
3778
  /** Canonical documentation URL when body content is a local summary. */
3779
3779
  externalUrl: z.string().trim().url().max(500).optional(),
@@ -3781,15 +3781,15 @@ export const OrgKnowledgeNodeSchema = z.object({
3781
3781
  sourceFilePath: z.string().trim().min(1).max(500).optional(),
3782
3782
  /** Raw MDX string. Phase 2 will introduce a structured block format. */
3783
3783
  body: z.string().trim().min(1),
3784
- /**
3785
- * Graph links to other OM nodes this knowledge node governs.
3786
- * Each link emits a `governs` edge: knowledge-node -> target node.
3787
- */
3788
- links: z.array(KnowledgeLinkSchema).default([]),
3789
- /** Role identifiers that own this knowledge node. */
3790
- ownerIds: z.array(RoleIdSchema.meta({ ref: 'role' })).default([]),
3791
- /** ISO date string (YYYY-MM-DD or full ISO 8601) of last meaningful update. */
3792
- updatedAt: z.string().trim().min(1).max(50)
3784
+ /**
3785
+ * Graph links to other OM nodes this knowledge node governs.
3786
+ * Each link emits a `governs` edge: knowledge-node -> target node.
3787
+ */
3788
+ links: z.array(KnowledgeLinkSchema).default([]),
3789
+ /** Role identifiers that own this knowledge node. */
3790
+ ownerIds: z.array(RoleIdSchema.meta({ ref: 'role' })).default([]),
3791
+ /** ISO date string (YYYY-MM-DD or full ISO 8601) of last meaningful update. */
3792
+ updatedAt: z.string().trim().min(1).max(50)
3793
3793
  })
3794
3794
  ```
3795
3795