@elevasis/core 0.26.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.
Files changed (49) hide show
  1. package/dist/index.d.ts +162 -105
  2. package/dist/index.js +280 -174
  3. package/dist/knowledge/index.d.ts +43 -43
  4. package/dist/organization-model/index.d.ts +162 -105
  5. package/dist/organization-model/index.js +280 -174
  6. package/dist/test-utils/index.d.ts +20 -20
  7. package/dist/test-utils/index.js +184 -126
  8. package/package.json +3 -3
  9. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +976 -1063
  10. package/src/business/acquisition/api-schemas.test.ts +1962 -1841
  11. package/src/business/acquisition/api-schemas.ts +1461 -1464
  12. package/src/business/acquisition/crm-next-action.test.ts +45 -25
  13. package/src/business/acquisition/crm-next-action.ts +227 -220
  14. package/src/business/acquisition/crm-priority.test.ts +41 -8
  15. package/src/business/acquisition/crm-priority.ts +365 -349
  16. package/src/business/acquisition/crm-state-actions.test.ts +208 -153
  17. package/src/business/acquisition/derive-actions.test.ts +90 -13
  18. package/src/business/acquisition/derive-actions.ts +8 -139
  19. package/src/business/acquisition/ontology-validation.ts +72 -158
  20. package/src/business/pdf/sections/investment.ts +1 -1
  21. package/src/business/pdf/sections/summary-investment.ts +1 -1
  22. package/src/execution/engine/tools/tool-maps.ts +872 -831
  23. package/src/organization-model/__tests__/cross-ref.test.ts +167 -0
  24. package/src/organization-model/__tests__/define-domain-record.test.ts +289 -0
  25. package/src/organization-model/__tests__/om-spine-doc-contract.test.ts +56 -0
  26. package/src/organization-model/__tests__/published-zero-leak.test.ts +60 -1
  27. package/src/organization-model/__tests__/resolve.test.ts +1 -1
  28. package/src/organization-model/__tests__/schema-refinements.test.ts +72 -0
  29. package/src/organization-model/cross-ref.ts +175 -0
  30. package/src/organization-model/domains/actions.ts +13 -0
  31. package/src/organization-model/domains/branding.ts +6 -6
  32. package/src/organization-model/domains/customers.ts +95 -78
  33. package/src/organization-model/domains/entities.ts +157 -144
  34. package/src/organization-model/domains/goals.ts +100 -83
  35. package/src/organization-model/domains/knowledge.ts +106 -93
  36. package/src/organization-model/domains/offerings.ts +88 -71
  37. package/src/organization-model/domains/policies.ts +115 -102
  38. package/src/organization-model/domains/roles.ts +109 -96
  39. package/src/organization-model/domains/sales.test.ts +104 -218
  40. package/src/organization-model/domains/sales.ts +212 -375
  41. package/src/organization-model/domains/statuses.ts +351 -339
  42. package/src/organization-model/domains/systems.ts +176 -164
  43. package/src/organization-model/helpers.ts +331 -306
  44. package/src/organization-model/index.ts +43 -0
  45. package/src/organization-model/published.ts +27 -2
  46. package/src/organization-model/schema-refinements.ts +667 -0
  47. package/src/organization-model/schema.ts +8 -715
  48. package/src/platform/constants/versions.ts +1 -1
  49. package/src/reference/_generated/contracts.md +1000 -1087
@@ -1,3 +1,4 @@
1
+ export * from './cross-ref'
1
2
  export * from './schema'
2
3
  export * from './types'
3
4
  export * from './ontology'
@@ -72,6 +73,8 @@ export {
72
73
  SurfaceTypeSchema
73
74
  } from './domains/navigation'
74
75
  export {
76
+ defineEntity,
77
+ defineEntities,
75
78
  EntitiesDomainSchema,
76
79
  EntityIdSchema,
77
80
  EntityLinkKindSchema,
@@ -79,6 +82,8 @@ export {
79
82
  EntitySchema
80
83
  } from './domains/entities'
81
84
  export {
85
+ defineKnowledgeNode,
86
+ defineKnowledgeNodes,
82
87
  KnowledgeDomainSchema,
83
88
  KnowledgeLinkSchema,
84
89
  KnowledgeTargetKindSchema,
@@ -99,6 +104,8 @@ export {
99
104
  ActionScopeSchema,
100
105
  ApiEndpointInvocationSchema,
101
106
  DEFAULT_ORGANIZATION_MODEL_ACTIONS,
107
+ defineAction,
108
+ defineActions,
102
109
  findOrganizationActionById,
103
110
  McpToolInvocationSchema,
104
111
  ScriptExecutionInvocationSchema,
@@ -113,3 +120,39 @@ export type {
113
120
  ActionRef,
114
121
  ActionScope
115
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,