@elevasis/core 0.24.1 → 0.26.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.
- package/dist/index.d.ts +239 -86
- package/dist/index.js +474 -1346
- package/dist/knowledge/index.d.ts +57 -39
- package/dist/knowledge/index.js +1 -1
- package/dist/organization-model/index.d.ts +239 -86
- package/dist/organization-model/index.js +474 -1346
- package/dist/test-utils/index.d.ts +24 -31
- package/dist/test-utils/index.js +76 -1238
- package/package.json +1 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +108 -96
- package/src/business/acquisition/api-schemas.test.ts +70 -77
- package/src/business/acquisition/api-schemas.ts +21 -42
- package/src/business/acquisition/derive-actions.test.ts +11 -21
- package/src/business/acquisition/derive-actions.ts +61 -14
- package/src/business/acquisition/ontology-validation.ts +4 -4
- package/src/business/acquisition/types.ts +7 -8
- package/src/execution/engine/llm/adapters/__tests__/openrouter.integration.test.ts +10 -10
- package/src/knowledge/__tests__/queries.test.ts +960 -546
- package/src/knowledge/format.ts +322 -100
- package/src/knowledge/index.ts +18 -5
- package/src/knowledge/queries.ts +1004 -240
- package/src/organization-model/__tests__/content-kinds-registry.test.ts +35 -210
- package/src/organization-model/__tests__/defaults.test.ts +4 -4
- package/src/organization-model/__tests__/deprecate-helpers.test.ts +71 -0
- package/src/organization-model/__tests__/domains/actions.test.ts +12 -36
- package/src/organization-model/__tests__/domains/offerings.test.ts +13 -6
- package/src/organization-model/__tests__/domains/resources.test.ts +497 -350
- package/src/organization-model/__tests__/domains/systems.test.ts +6 -7
- package/src/organization-model/__tests__/flatten-additive-merge.test.ts +68 -80
- package/src/organization-model/__tests__/foundation.test.ts +81 -14
- package/src/organization-model/__tests__/graph.test.ts +662 -694
- package/src/organization-model/__tests__/knowledge.test.ts +31 -17
- package/src/organization-model/__tests__/lookup-helpers.test.ts +128 -438
- package/src/organization-model/__tests__/migration-helpers.test.ts +362 -591
- package/src/organization-model/__tests__/prospecting-ssot.test.ts +68 -103
- package/src/organization-model/__tests__/published-zero-leak.test.ts +17 -0
- package/src/organization-model/__tests__/recursive-system-schema.test.ts +159 -532
- package/src/organization-model/__tests__/resolve.test.ts +88 -49
- package/src/organization-model/__tests__/scaffolders.test.ts +93 -0
- package/src/organization-model/__tests__/schema.test.ts +65 -56
- package/src/organization-model/catalogs/lead-gen.ts +0 -103
- package/src/organization-model/defaults.ts +17 -702
- package/src/organization-model/domains/actions.ts +116 -333
- package/src/organization-model/domains/knowledge.ts +15 -7
- package/src/organization-model/domains/projects.ts +4 -4
- package/src/organization-model/domains/prospecting.ts +405 -395
- package/src/organization-model/domains/resources.ts +206 -135
- package/src/organization-model/domains/sales.ts +5 -5
- package/src/organization-model/domains/systems.ts +8 -23
- package/src/organization-model/graph/build.ts +223 -294
- package/src/organization-model/graph/schema.ts +2 -3
- package/src/organization-model/graph/types.ts +12 -14
- package/src/organization-model/helpers.ts +120 -141
- package/src/organization-model/icons.ts +1 -0
- package/src/organization-model/index.ts +107 -126
- package/src/organization-model/migration-helpers.ts +211 -249
- package/src/organization-model/ontology.ts +0 -60
- package/src/organization-model/organization-graph.mdx +4 -5
- package/src/organization-model/organization-model.mdx +1 -1
- package/src/organization-model/published.ts +251 -228
- package/src/organization-model/resolve.ts +4 -5
- package/src/organization-model/scaffolders/helpers.ts +84 -0
- package/src/organization-model/scaffolders/index.ts +19 -0
- package/src/organization-model/scaffolders/scaffoldKnowledgeNode.ts +48 -0
- package/src/organization-model/scaffolders/scaffoldOntologyRecord.ts +38 -0
- package/src/organization-model/scaffolders/scaffoldResource.ts +59 -0
- package/src/organization-model/scaffolders/scaffoldSystem.ts +110 -0
- package/src/organization-model/scaffolders/types.ts +81 -0
- package/src/organization-model/schema.ts +610 -704
- package/src/organization-model/types.ts +167 -161
- package/src/platform/constants/versions.ts +1 -1
- package/src/platform/registry/__tests__/validation.test.ts +23 -0
- package/src/platform/registry/validation.ts +13 -2
- package/src/reference/_generated/contracts.md +108 -96
- package/src/reference/glossary.md +71 -69
- package/src/organization-model/content-kinds/config.ts +0 -36
- package/src/organization-model/content-kinds/index.ts +0 -78
- package/src/organization-model/content-kinds/pipeline.ts +0 -68
- package/src/organization-model/content-kinds/registry.ts +0 -44
- package/src/organization-model/content-kinds/status.ts +0 -71
- package/src/organization-model/content-kinds/template.ts +0 -83
- package/src/organization-model/content-kinds/types.ts +0 -117
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Generic merge base for the OrganizationModel.
|
|
3
3
|
*
|
|
4
4
|
* This constant is used by:
|
|
5
5
|
* - `resolveOrganizationModel()` as the deep-merge base for every org's config
|
|
6
6
|
* - Unit tests and snapshot fixtures that need a structurally valid OrganizationModel
|
|
7
7
|
*
|
|
8
|
-
* It
|
|
8
|
+
* It does NOT contain Elevasis-specific identity, systems, or action entries.
|
|
9
9
|
* Runtime consumers that need the full Elevasis canonical model should import
|
|
10
10
|
* `canonicalOrganizationModel` from `@repo/elevasis-core` instead.
|
|
11
|
+
*
|
|
12
|
+
* Elevasis-specific systems, actions (LEAD_GEN_ACTION_ENTRIES, CRM_ACTION_ENTRIES,
|
|
13
|
+
* DEFAULT_ORGANIZATION_MODEL_ACTIONS), and the platform system description have been
|
|
14
|
+
* relocated to `@repo/elevasis-core/src/organization-model/`.
|
|
11
15
|
*/
|
|
12
16
|
import type { OrganizationModel } from './types'
|
|
13
17
|
import { DEFAULT_ORGANIZATION_MODEL_BRANDING } from './domains/branding'
|
|
@@ -18,8 +22,6 @@ import { DEFAULT_ORGANIZATION_MODEL_ROLES } from './domains/roles'
|
|
|
18
22
|
import { DEFAULT_ORGANIZATION_MODEL_GOALS } from './domains/goals'
|
|
19
23
|
import { DEFAULT_ORGANIZATION_MODEL_RESOURCES } from './domains/resources'
|
|
20
24
|
import { DEFAULT_ORGANIZATION_MODEL_TOPOLOGY } from './domains/topology'
|
|
21
|
-
import { CRM_ACTION_ENTRIES, DEFAULT_ORGANIZATION_MODEL_ACTIONS, LEAD_GEN_ACTION_ENTRIES } from './domains/actions'
|
|
22
|
-
import { DEFAULT_ORGANIZATION_MODEL_ENTITIES as DEFAULT_ENTITIES } from './domains/entities'
|
|
23
25
|
import { DEFAULT_ORGANIZATION_MODEL_POLICIES } from './domains/policies'
|
|
24
26
|
import { DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA } from './schema'
|
|
25
27
|
import { DEFAULT_ONTOLOGY_SCOPE } from './ontology'
|
|
@@ -29,312 +31,12 @@ import type { OrganizationModelNavigation } from './types'
|
|
|
29
31
|
// The old wrapper shape { version, lastModified, nodes[] } is gone; versioning is in domainMetadata.
|
|
30
32
|
export const DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE = {} as const
|
|
31
33
|
|
|
32
|
-
export const DEFAULT_ORGANIZATION_MODEL_ENTITIES =
|
|
34
|
+
export const DEFAULT_ORGANIZATION_MODEL_ENTITIES = {}
|
|
33
35
|
|
|
34
36
|
const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
35
37
|
sidebar: {
|
|
36
|
-
primary: {
|
|
37
|
-
|
|
38
|
-
type: 'surface',
|
|
39
|
-
label: 'Dashboard',
|
|
40
|
-
path: '/',
|
|
41
|
-
surfaceType: 'dashboard',
|
|
42
|
-
icon: 'dashboard',
|
|
43
|
-
order: 10,
|
|
44
|
-
targets: { systems: ['dashboard'] }
|
|
45
|
-
},
|
|
46
|
-
business: {
|
|
47
|
-
type: 'group',
|
|
48
|
-
label: 'Business',
|
|
49
|
-
icon: 'business',
|
|
50
|
-
order: 20,
|
|
51
|
-
children: {
|
|
52
|
-
sales: {
|
|
53
|
-
type: 'surface',
|
|
54
|
-
label: 'Sales',
|
|
55
|
-
path: '/sales',
|
|
56
|
-
surfaceType: 'page',
|
|
57
|
-
icon: 'sales',
|
|
58
|
-
order: 10,
|
|
59
|
-
targets: { systems: ['sales'] }
|
|
60
|
-
},
|
|
61
|
-
clients: {
|
|
62
|
-
type: 'surface',
|
|
63
|
-
label: 'Clients',
|
|
64
|
-
path: '/clients',
|
|
65
|
-
surfaceType: 'list',
|
|
66
|
-
icon: 'projects',
|
|
67
|
-
order: 20,
|
|
68
|
-
targets: { systems: ['clients'] }
|
|
69
|
-
},
|
|
70
|
-
projects: {
|
|
71
|
-
type: 'surface',
|
|
72
|
-
label: 'Projects',
|
|
73
|
-
path: '/projects',
|
|
74
|
-
surfaceType: 'page',
|
|
75
|
-
icon: 'projects',
|
|
76
|
-
order: 30,
|
|
77
|
-
targets: { systems: ['projects'] }
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
operations: {
|
|
82
|
-
type: 'group',
|
|
83
|
-
label: 'Operations',
|
|
84
|
-
icon: 'operations',
|
|
85
|
-
order: 30,
|
|
86
|
-
children: {
|
|
87
|
-
'operations-overview': {
|
|
88
|
-
type: 'surface',
|
|
89
|
-
label: 'Overview',
|
|
90
|
-
path: '/operations',
|
|
91
|
-
surfaceType: 'page',
|
|
92
|
-
order: 10,
|
|
93
|
-
targets: { systems: ['operations.overview'] }
|
|
94
|
-
},
|
|
95
|
-
'operations-systems': {
|
|
96
|
-
type: 'surface',
|
|
97
|
-
label: 'Systems',
|
|
98
|
-
path: '/operations/systems',
|
|
99
|
-
surfaceType: 'page',
|
|
100
|
-
order: 20,
|
|
101
|
-
targets: { systems: ['operations'] }
|
|
102
|
-
},
|
|
103
|
-
'operations-resources': {
|
|
104
|
-
type: 'surface',
|
|
105
|
-
label: 'Resources',
|
|
106
|
-
path: '/operations/resources',
|
|
107
|
-
surfaceType: 'list',
|
|
108
|
-
order: 30,
|
|
109
|
-
targets: { systems: ['operations.resources'] }
|
|
110
|
-
},
|
|
111
|
-
'operations-command-queue': {
|
|
112
|
-
type: 'surface',
|
|
113
|
-
label: 'Command Queue',
|
|
114
|
-
path: '/operations/command-queue',
|
|
115
|
-
surfaceType: 'list',
|
|
116
|
-
order: 40,
|
|
117
|
-
targets: { systems: ['operations.command-queue'] }
|
|
118
|
-
},
|
|
119
|
-
'operations-task-scheduler': {
|
|
120
|
-
type: 'surface',
|
|
121
|
-
label: 'Task Scheduler',
|
|
122
|
-
path: '/operations/task-scheduler',
|
|
123
|
-
surfaceType: 'list',
|
|
124
|
-
order: 50,
|
|
125
|
-
targets: { systems: ['operations.task-scheduler'] }
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
monitoring: {
|
|
130
|
-
type: 'group',
|
|
131
|
-
label: 'Monitoring',
|
|
132
|
-
icon: 'monitoring',
|
|
133
|
-
order: 40,
|
|
134
|
-
children: {
|
|
135
|
-
'monitoring-overview': {
|
|
136
|
-
type: 'surface',
|
|
137
|
-
label: 'Overview',
|
|
138
|
-
path: '/monitoring',
|
|
139
|
-
surfaceType: 'page',
|
|
140
|
-
order: 10,
|
|
141
|
-
targets: { systems: ['monitoring'] }
|
|
142
|
-
},
|
|
143
|
-
'monitoring-calendar': {
|
|
144
|
-
type: 'surface',
|
|
145
|
-
label: 'Calendar',
|
|
146
|
-
path: '/monitoring/calendar',
|
|
147
|
-
surfaceType: 'page',
|
|
148
|
-
order: 20,
|
|
149
|
-
targets: { systems: ['monitoring.calendar'] }
|
|
150
|
-
},
|
|
151
|
-
'monitoring-activity-log': {
|
|
152
|
-
type: 'surface',
|
|
153
|
-
label: 'Activity Log',
|
|
154
|
-
path: '/monitoring/activity-log',
|
|
155
|
-
surfaceType: 'list',
|
|
156
|
-
order: 30,
|
|
157
|
-
targets: { systems: ['monitoring.activity-log'] }
|
|
158
|
-
},
|
|
159
|
-
'monitoring-execution-logs': {
|
|
160
|
-
type: 'surface',
|
|
161
|
-
label: 'Execution Logs',
|
|
162
|
-
path: '/monitoring/execution-logs',
|
|
163
|
-
surfaceType: 'list',
|
|
164
|
-
order: 40,
|
|
165
|
-
targets: { systems: ['monitoring.execution-logs'] }
|
|
166
|
-
},
|
|
167
|
-
'monitoring-execution-health': {
|
|
168
|
-
type: 'surface',
|
|
169
|
-
label: 'Execution Health',
|
|
170
|
-
path: '/monitoring/execution-health',
|
|
171
|
-
surfaceType: 'dashboard',
|
|
172
|
-
order: 50,
|
|
173
|
-
targets: { systems: ['monitoring.execution-health'] }
|
|
174
|
-
},
|
|
175
|
-
'monitoring-notifications': {
|
|
176
|
-
type: 'surface',
|
|
177
|
-
label: 'Notifications',
|
|
178
|
-
path: '/monitoring/notifications',
|
|
179
|
-
surfaceType: 'list',
|
|
180
|
-
order: 60,
|
|
181
|
-
targets: { systems: ['monitoring.notifications'] }
|
|
182
|
-
},
|
|
183
|
-
'monitoring-requests': {
|
|
184
|
-
type: 'surface',
|
|
185
|
-
label: 'Requests',
|
|
186
|
-
path: '/monitoring/requests',
|
|
187
|
-
surfaceType: 'list',
|
|
188
|
-
order: 70,
|
|
189
|
-
targets: { systems: ['monitoring.submitted-requests'] }
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
knowledge: {
|
|
194
|
-
type: 'surface',
|
|
195
|
-
label: 'Knowledge Base',
|
|
196
|
-
path: '/knowledge',
|
|
197
|
-
surfaceType: 'page',
|
|
198
|
-
icon: 'knowledge',
|
|
199
|
-
order: 50
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
bottom: {
|
|
203
|
-
settings: {
|
|
204
|
-
type: 'group',
|
|
205
|
-
label: 'Settings',
|
|
206
|
-
icon: 'settings',
|
|
207
|
-
order: 10,
|
|
208
|
-
children: {
|
|
209
|
-
'settings-account': {
|
|
210
|
-
type: 'surface',
|
|
211
|
-
label: 'Account',
|
|
212
|
-
path: '/settings/account',
|
|
213
|
-
surfaceType: 'settings',
|
|
214
|
-
order: 10,
|
|
215
|
-
targets: { systems: ['settings.account'] }
|
|
216
|
-
},
|
|
217
|
-
'settings-appearance': {
|
|
218
|
-
type: 'surface',
|
|
219
|
-
label: 'Appearance',
|
|
220
|
-
path: '/settings/appearance',
|
|
221
|
-
surfaceType: 'settings',
|
|
222
|
-
order: 20,
|
|
223
|
-
targets: { systems: ['settings.appearance'] }
|
|
224
|
-
},
|
|
225
|
-
'settings-roles': {
|
|
226
|
-
type: 'surface',
|
|
227
|
-
label: 'My Roles',
|
|
228
|
-
path: '/settings/roles',
|
|
229
|
-
surfaceType: 'settings',
|
|
230
|
-
order: 30,
|
|
231
|
-
targets: { systems: ['settings.roles'] }
|
|
232
|
-
},
|
|
233
|
-
'settings-organization': {
|
|
234
|
-
type: 'surface',
|
|
235
|
-
label: 'Organization',
|
|
236
|
-
path: '/settings/organization',
|
|
237
|
-
surfaceType: 'settings',
|
|
238
|
-
order: 40,
|
|
239
|
-
targets: { systems: ['settings.organization'] }
|
|
240
|
-
},
|
|
241
|
-
'settings-credentials': {
|
|
242
|
-
type: 'surface',
|
|
243
|
-
label: 'Credentials',
|
|
244
|
-
path: '/settings/credentials',
|
|
245
|
-
surfaceType: 'settings',
|
|
246
|
-
order: 50,
|
|
247
|
-
targets: { systems: ['settings.credentials'] }
|
|
248
|
-
},
|
|
249
|
-
'settings-api-keys': {
|
|
250
|
-
type: 'surface',
|
|
251
|
-
label: 'API Keys',
|
|
252
|
-
path: '/settings/api-keys',
|
|
253
|
-
surfaceType: 'settings',
|
|
254
|
-
order: 60,
|
|
255
|
-
targets: { systems: ['settings.api-keys'] }
|
|
256
|
-
},
|
|
257
|
-
'settings-webhooks': {
|
|
258
|
-
type: 'surface',
|
|
259
|
-
label: 'Webhooks',
|
|
260
|
-
path: '/settings/webhooks',
|
|
261
|
-
surfaceType: 'settings',
|
|
262
|
-
order: 70,
|
|
263
|
-
targets: { systems: ['settings.webhooks'] }
|
|
264
|
-
},
|
|
265
|
-
'settings-deployments': {
|
|
266
|
-
type: 'surface',
|
|
267
|
-
label: 'Deployments',
|
|
268
|
-
path: '/settings/deployments',
|
|
269
|
-
surfaceType: 'settings',
|
|
270
|
-
order: 80,
|
|
271
|
-
targets: { systems: ['settings.deployments'] }
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
admin: {
|
|
276
|
-
type: 'group',
|
|
277
|
-
label: 'Admin',
|
|
278
|
-
icon: 'admin',
|
|
279
|
-
order: 20,
|
|
280
|
-
children: {
|
|
281
|
-
'admin-dashboard': {
|
|
282
|
-
type: 'surface',
|
|
283
|
-
label: 'Dashboard',
|
|
284
|
-
path: '/admin/dashboard',
|
|
285
|
-
surfaceType: 'dashboard',
|
|
286
|
-
order: 10,
|
|
287
|
-
targets: { systems: ['admin'] },
|
|
288
|
-
requiresAdmin: true
|
|
289
|
-
},
|
|
290
|
-
'admin-system-health': {
|
|
291
|
-
type: 'surface',
|
|
292
|
-
label: 'System Health',
|
|
293
|
-
path: '/admin/system-health',
|
|
294
|
-
surfaceType: 'dashboard',
|
|
295
|
-
order: 20,
|
|
296
|
-
targets: { systems: ['admin.system-health'] },
|
|
297
|
-
requiresAdmin: true
|
|
298
|
-
},
|
|
299
|
-
'admin-organizations': {
|
|
300
|
-
type: 'surface',
|
|
301
|
-
label: 'Organizations',
|
|
302
|
-
path: '/admin/organizations',
|
|
303
|
-
surfaceType: 'list',
|
|
304
|
-
order: 30,
|
|
305
|
-
targets: { systems: ['admin.organizations'] },
|
|
306
|
-
requiresAdmin: true
|
|
307
|
-
},
|
|
308
|
-
'admin-users': {
|
|
309
|
-
type: 'surface',
|
|
310
|
-
label: 'Users',
|
|
311
|
-
path: '/admin/users',
|
|
312
|
-
surfaceType: 'list',
|
|
313
|
-
order: 40,
|
|
314
|
-
targets: { systems: ['admin.users'] },
|
|
315
|
-
requiresAdmin: true
|
|
316
|
-
},
|
|
317
|
-
'admin-design-showcase': {
|
|
318
|
-
type: 'surface',
|
|
319
|
-
label: 'Design Showcase',
|
|
320
|
-
path: '/admin/design-showcase',
|
|
321
|
-
surfaceType: 'page',
|
|
322
|
-
order: 50,
|
|
323
|
-
targets: { systems: ['admin.design-showcase'] },
|
|
324
|
-
requiresAdmin: true
|
|
325
|
-
},
|
|
326
|
-
'admin-debug': {
|
|
327
|
-
type: 'surface',
|
|
328
|
-
label: 'Debug',
|
|
329
|
-
path: '/admin/debug',
|
|
330
|
-
surfaceType: 'page',
|
|
331
|
-
order: 60,
|
|
332
|
-
targets: { systems: ['admin.debug'] },
|
|
333
|
-
requiresAdmin: true
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
38
|
+
primary: {},
|
|
39
|
+
bottom: {}
|
|
338
40
|
}
|
|
339
41
|
}
|
|
340
42
|
|
|
@@ -348,405 +50,18 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
348
50
|
offerings: DEFAULT_ORGANIZATION_MODEL_OFFERINGS,
|
|
349
51
|
roles: DEFAULT_ORGANIZATION_MODEL_ROLES,
|
|
350
52
|
goals: DEFAULT_ORGANIZATION_MODEL_GOALS,
|
|
351
|
-
systems
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
enabled: true,
|
|
357
|
-
lifecycle: 'active',
|
|
358
|
-
path: '/',
|
|
359
|
-
icon: 'dashboard'
|
|
360
|
-
},
|
|
361
|
-
platform: {
|
|
362
|
-
id: 'platform',
|
|
363
|
-
order: 30,
|
|
364
|
-
label: 'Platform',
|
|
365
|
-
description: 'Elevasis platform architecture, capabilities, and implementation patterns',
|
|
366
|
-
enabled: true,
|
|
367
|
-
lifecycle: 'active',
|
|
368
|
-
color: 'cyan',
|
|
369
|
-
icon: 'platform'
|
|
370
|
-
},
|
|
371
|
-
finance: {
|
|
372
|
-
id: 'finance',
|
|
373
|
-
order: 40,
|
|
374
|
-
label: 'Finance',
|
|
375
|
-
description: 'Finance operations, accounting, billing, reconciliation, and tax prep',
|
|
376
|
-
enabled: true,
|
|
377
|
-
lifecycle: 'active',
|
|
378
|
-
color: 'green',
|
|
379
|
-
icon: 'finance'
|
|
380
|
-
},
|
|
381
|
-
sales: {
|
|
382
|
-
id: 'sales',
|
|
383
|
-
order: 60,
|
|
384
|
-
label: 'Sales',
|
|
385
|
-
description: 'Revenue workflows and customer acquisition',
|
|
386
|
-
enabled: true,
|
|
387
|
-
lifecycle: 'active',
|
|
388
|
-
color: 'blue',
|
|
389
|
-
icon: 'sales',
|
|
390
|
-
path: '/sales'
|
|
391
|
-
},
|
|
392
|
-
'sales.crm': {
|
|
393
|
-
id: 'sales.crm',
|
|
394
|
-
order: 70,
|
|
395
|
-
label: 'CRM',
|
|
396
|
-
description: 'Relationship pipeline and deal management',
|
|
397
|
-
enabled: true,
|
|
398
|
-
lifecycle: 'active',
|
|
399
|
-
actions: Object.values(CRM_ACTION_ENTRIES).map((action) => ({
|
|
400
|
-
actionId: action.id,
|
|
401
|
-
intent: 'exposes'
|
|
402
|
-
})),
|
|
403
|
-
color: 'blue',
|
|
404
|
-
icon: 'crm',
|
|
405
|
-
path: '/crm'
|
|
406
|
-
},
|
|
407
|
-
'sales.lead-gen': {
|
|
408
|
-
id: 'sales.lead-gen',
|
|
409
|
-
order: 80,
|
|
410
|
-
label: 'Lead Gen',
|
|
411
|
-
description: 'Prospecting, qualification, and outreach preparation',
|
|
412
|
-
enabled: true,
|
|
413
|
-
lifecycle: 'active',
|
|
414
|
-
actions: Object.values(LEAD_GEN_ACTION_ENTRIES).map((action) => ({
|
|
415
|
-
actionId: action.id,
|
|
416
|
-
intent: 'exposes'
|
|
417
|
-
})),
|
|
418
|
-
color: 'cyan',
|
|
419
|
-
icon: 'lead-gen',
|
|
420
|
-
path: '/lead-gen'
|
|
421
|
-
},
|
|
422
|
-
projects: {
|
|
423
|
-
id: 'projects',
|
|
424
|
-
order: 90,
|
|
425
|
-
label: 'Projects',
|
|
426
|
-
description: 'Projects, milestones, and client work execution',
|
|
427
|
-
enabled: true,
|
|
428
|
-
lifecycle: 'active',
|
|
429
|
-
color: 'orange',
|
|
430
|
-
icon: 'projects',
|
|
431
|
-
path: '/projects'
|
|
432
|
-
},
|
|
433
|
-
clients: {
|
|
434
|
-
id: 'clients',
|
|
435
|
-
order: 100,
|
|
436
|
-
label: 'Clients',
|
|
437
|
-
description: 'Client relationships, accounts, and business context',
|
|
438
|
-
enabled: true,
|
|
439
|
-
lifecycle: 'active',
|
|
440
|
-
color: 'orange',
|
|
441
|
-
icon: 'projects',
|
|
442
|
-
path: '/clients'
|
|
443
|
-
},
|
|
444
|
-
operations: {
|
|
445
|
-
id: 'operations',
|
|
446
|
-
order: 110,
|
|
447
|
-
label: 'Operations',
|
|
448
|
-
description: 'Operational resources, topology, and orchestration visibility',
|
|
449
|
-
enabled: true,
|
|
450
|
-
lifecycle: 'active',
|
|
451
|
-
color: 'violet',
|
|
452
|
-
icon: 'operations'
|
|
453
|
-
},
|
|
454
|
-
'knowledge.command-view': {
|
|
455
|
-
id: 'knowledge.command-view',
|
|
456
|
-
order: 120,
|
|
457
|
-
label: 'Command View',
|
|
458
|
-
enabled: true,
|
|
459
|
-
lifecycle: 'active',
|
|
460
|
-
path: '/knowledge/command-view',
|
|
461
|
-
devOnly: true
|
|
462
|
-
},
|
|
463
|
-
'operations.overview': {
|
|
464
|
-
id: 'operations.overview',
|
|
465
|
-
order: 130,
|
|
466
|
-
label: 'Overview',
|
|
467
|
-
enabled: true,
|
|
468
|
-
lifecycle: 'active',
|
|
469
|
-
path: '/operations'
|
|
470
|
-
},
|
|
471
|
-
'operations.resources': {
|
|
472
|
-
id: 'operations.resources',
|
|
473
|
-
order: 140,
|
|
474
|
-
label: 'Resources',
|
|
475
|
-
enabled: true,
|
|
476
|
-
lifecycle: 'active',
|
|
477
|
-
path: '/operations/resources'
|
|
478
|
-
},
|
|
479
|
-
'operations.command-queue': {
|
|
480
|
-
id: 'operations.command-queue',
|
|
481
|
-
order: 150,
|
|
482
|
-
label: 'Command Queue',
|
|
483
|
-
enabled: true,
|
|
484
|
-
lifecycle: 'active',
|
|
485
|
-
path: '/operations/command-queue'
|
|
486
|
-
},
|
|
487
|
-
'operations.sessions': {
|
|
488
|
-
id: 'operations.sessions',
|
|
489
|
-
order: 160,
|
|
490
|
-
label: 'Sessions',
|
|
491
|
-
enabled: false,
|
|
492
|
-
lifecycle: 'deprecated',
|
|
493
|
-
path: '/operations/sessions'
|
|
494
|
-
},
|
|
495
|
-
'operations.task-scheduler': {
|
|
496
|
-
id: 'operations.task-scheduler',
|
|
497
|
-
order: 170,
|
|
498
|
-
label: 'Task Scheduler',
|
|
499
|
-
enabled: true,
|
|
500
|
-
lifecycle: 'active',
|
|
501
|
-
path: '/operations/task-scheduler'
|
|
502
|
-
},
|
|
503
|
-
monitoring: {
|
|
504
|
-
id: 'monitoring',
|
|
505
|
-
order: 180,
|
|
506
|
-
label: 'Monitoring',
|
|
507
|
-
enabled: true,
|
|
508
|
-
lifecycle: 'active'
|
|
509
|
-
},
|
|
510
|
-
'monitoring.calendar': {
|
|
511
|
-
id: 'monitoring.calendar',
|
|
512
|
-
order: 190,
|
|
513
|
-
label: 'Calendar',
|
|
514
|
-
description: 'Google Calendar events and agenda views',
|
|
515
|
-
enabled: true,
|
|
516
|
-
lifecycle: 'active',
|
|
517
|
-
path: '/monitoring/calendar',
|
|
518
|
-
icon: 'calendar'
|
|
519
|
-
},
|
|
520
|
-
'monitoring.activity-log': {
|
|
521
|
-
id: 'monitoring.activity-log',
|
|
522
|
-
order: 200,
|
|
523
|
-
label: 'Activity Log',
|
|
524
|
-
enabled: true,
|
|
525
|
-
lifecycle: 'active',
|
|
526
|
-
path: '/monitoring/activity-log'
|
|
527
|
-
},
|
|
528
|
-
'monitoring.execution-logs': {
|
|
529
|
-
id: 'monitoring.execution-logs',
|
|
530
|
-
order: 210,
|
|
531
|
-
label: 'Execution Logs',
|
|
532
|
-
enabled: true,
|
|
533
|
-
lifecycle: 'active',
|
|
534
|
-
path: '/monitoring/execution-logs'
|
|
535
|
-
},
|
|
536
|
-
'monitoring.execution-health': {
|
|
537
|
-
id: 'monitoring.execution-health',
|
|
538
|
-
order: 220,
|
|
539
|
-
label: 'Execution Health',
|
|
540
|
-
enabled: true,
|
|
541
|
-
lifecycle: 'active',
|
|
542
|
-
path: '/monitoring/execution-health'
|
|
543
|
-
},
|
|
544
|
-
'monitoring.cost-analytics': {
|
|
545
|
-
id: 'monitoring.cost-analytics',
|
|
546
|
-
order: 230,
|
|
547
|
-
label: 'Cost Analytics',
|
|
548
|
-
enabled: false,
|
|
549
|
-
lifecycle: 'deprecated',
|
|
550
|
-
path: '/monitoring/cost-analytics'
|
|
551
|
-
},
|
|
552
|
-
'monitoring.notifications': {
|
|
553
|
-
id: 'monitoring.notifications',
|
|
554
|
-
order: 240,
|
|
555
|
-
label: 'Notifications',
|
|
556
|
-
enabled: true,
|
|
557
|
-
lifecycle: 'active',
|
|
558
|
-
path: '/monitoring/notifications'
|
|
559
|
-
},
|
|
560
|
-
'monitoring.submitted-requests': {
|
|
561
|
-
id: 'monitoring.submitted-requests',
|
|
562
|
-
order: 250,
|
|
563
|
-
label: 'Submitted Requests',
|
|
564
|
-
enabled: true,
|
|
565
|
-
lifecycle: 'active',
|
|
566
|
-
path: '/monitoring/requests'
|
|
567
|
-
},
|
|
568
|
-
settings: {
|
|
569
|
-
id: 'settings',
|
|
570
|
-
order: 260,
|
|
571
|
-
label: 'Settings',
|
|
572
|
-
enabled: true,
|
|
573
|
-
lifecycle: 'active',
|
|
574
|
-
icon: 'settings'
|
|
575
|
-
},
|
|
576
|
-
'settings.account': {
|
|
577
|
-
id: 'settings.account',
|
|
578
|
-
order: 270,
|
|
579
|
-
label: 'Account',
|
|
580
|
-
enabled: true,
|
|
581
|
-
lifecycle: 'active',
|
|
582
|
-
path: '/settings/account'
|
|
583
|
-
},
|
|
584
|
-
'settings.appearance': {
|
|
585
|
-
id: 'settings.appearance',
|
|
586
|
-
order: 280,
|
|
587
|
-
label: 'Appearance',
|
|
588
|
-
enabled: true,
|
|
589
|
-
lifecycle: 'active',
|
|
590
|
-
path: '/settings/appearance'
|
|
591
|
-
},
|
|
592
|
-
'settings.roles': {
|
|
593
|
-
id: 'settings.roles',
|
|
594
|
-
order: 290,
|
|
595
|
-
label: 'My Roles',
|
|
596
|
-
enabled: true,
|
|
597
|
-
lifecycle: 'active',
|
|
598
|
-
path: '/settings/roles'
|
|
599
|
-
},
|
|
600
|
-
'settings.organization': {
|
|
601
|
-
id: 'settings.organization',
|
|
602
|
-
order: 300,
|
|
603
|
-
label: 'Organization',
|
|
604
|
-
enabled: true,
|
|
605
|
-
lifecycle: 'active',
|
|
606
|
-
path: '/settings/organization'
|
|
607
|
-
},
|
|
608
|
-
'settings.credentials': {
|
|
609
|
-
id: 'settings.credentials',
|
|
610
|
-
order: 310,
|
|
611
|
-
label: 'Credentials',
|
|
612
|
-
enabled: true,
|
|
613
|
-
lifecycle: 'active',
|
|
614
|
-
path: '/settings/credentials'
|
|
615
|
-
},
|
|
616
|
-
'settings.api-keys': {
|
|
617
|
-
id: 'settings.api-keys',
|
|
618
|
-
order: 320,
|
|
619
|
-
label: 'API Keys',
|
|
620
|
-
enabled: true,
|
|
621
|
-
lifecycle: 'active',
|
|
622
|
-
path: '/settings/api-keys'
|
|
623
|
-
},
|
|
624
|
-
'settings.webhooks': {
|
|
625
|
-
id: 'settings.webhooks',
|
|
626
|
-
order: 330,
|
|
627
|
-
label: 'Webhooks',
|
|
628
|
-
enabled: true,
|
|
629
|
-
lifecycle: 'active',
|
|
630
|
-
path: '/settings/webhooks'
|
|
631
|
-
},
|
|
632
|
-
'settings.deployments': {
|
|
633
|
-
id: 'settings.deployments',
|
|
634
|
-
order: 340,
|
|
635
|
-
label: 'Deployments',
|
|
636
|
-
enabled: true,
|
|
637
|
-
lifecycle: 'active',
|
|
638
|
-
path: '/settings/deployments'
|
|
639
|
-
},
|
|
640
|
-
admin: {
|
|
641
|
-
id: 'admin',
|
|
642
|
-
order: 350,
|
|
643
|
-
label: 'Admin',
|
|
644
|
-
enabled: true,
|
|
645
|
-
lifecycle: 'active',
|
|
646
|
-
path: '/admin',
|
|
647
|
-
icon: 'admin',
|
|
648
|
-
requiresAdmin: true
|
|
649
|
-
},
|
|
650
|
-
'admin.system-health': {
|
|
651
|
-
id: 'admin.system-health',
|
|
652
|
-
order: 360,
|
|
653
|
-
label: 'System Health',
|
|
654
|
-
enabled: true,
|
|
655
|
-
lifecycle: 'active',
|
|
656
|
-
path: '/admin/system-health'
|
|
657
|
-
},
|
|
658
|
-
'admin.organizations': {
|
|
659
|
-
id: 'admin.organizations',
|
|
660
|
-
order: 370,
|
|
661
|
-
label: 'Organizations',
|
|
662
|
-
enabled: true,
|
|
663
|
-
lifecycle: 'active',
|
|
664
|
-
path: '/admin/organizations'
|
|
665
|
-
},
|
|
666
|
-
'admin.users': {
|
|
667
|
-
id: 'admin.users',
|
|
668
|
-
order: 380,
|
|
669
|
-
label: 'Users',
|
|
670
|
-
enabled: true,
|
|
671
|
-
lifecycle: 'active',
|
|
672
|
-
path: '/admin/users'
|
|
673
|
-
},
|
|
674
|
-
'admin.design-showcase': {
|
|
675
|
-
id: 'admin.design-showcase',
|
|
676
|
-
order: 390,
|
|
677
|
-
label: 'Design Showcase',
|
|
678
|
-
enabled: true,
|
|
679
|
-
lifecycle: 'active',
|
|
680
|
-
path: '/admin/design-showcase'
|
|
681
|
-
},
|
|
682
|
-
'admin.debug': {
|
|
683
|
-
id: 'admin.debug',
|
|
684
|
-
order: 400,
|
|
685
|
-
label: 'Debug',
|
|
686
|
-
enabled: true,
|
|
687
|
-
lifecycle: 'active',
|
|
688
|
-
path: '/admin/debug'
|
|
689
|
-
},
|
|
690
|
-
archive: {
|
|
691
|
-
id: 'archive',
|
|
692
|
-
order: 410,
|
|
693
|
-
label: 'Archive',
|
|
694
|
-
enabled: true,
|
|
695
|
-
lifecycle: 'active',
|
|
696
|
-
path: '/archive',
|
|
697
|
-
icon: 'archive',
|
|
698
|
-
devOnly: true
|
|
699
|
-
},
|
|
700
|
-
'archive.agent-chat': {
|
|
701
|
-
id: 'archive.agent-chat',
|
|
702
|
-
order: 420,
|
|
703
|
-
label: 'Agent Chat',
|
|
704
|
-
enabled: true,
|
|
705
|
-
lifecycle: 'active',
|
|
706
|
-
path: '/archive/agent-chat'
|
|
707
|
-
},
|
|
708
|
-
'archive.execution-runner': {
|
|
709
|
-
id: 'archive.execution-runner',
|
|
710
|
-
order: 430,
|
|
711
|
-
label: 'Execution Runner',
|
|
712
|
-
enabled: true,
|
|
713
|
-
lifecycle: 'active',
|
|
714
|
-
path: '/archive/execution-runner'
|
|
715
|
-
},
|
|
716
|
-
seo: {
|
|
717
|
-
id: 'seo',
|
|
718
|
-
order: 440,
|
|
719
|
-
label: 'SEO',
|
|
720
|
-
enabled: false,
|
|
721
|
-
lifecycle: 'deprecated',
|
|
722
|
-
path: '/seo'
|
|
723
|
-
},
|
|
724
|
-
knowledge: {
|
|
725
|
-
id: 'knowledge',
|
|
726
|
-
order: 450,
|
|
727
|
-
label: 'Knowledge',
|
|
728
|
-
description: 'Operational knowledge, playbooks, and strategy docs',
|
|
729
|
-
enabled: true,
|
|
730
|
-
lifecycle: 'active',
|
|
731
|
-
color: 'teal',
|
|
732
|
-
icon: 'knowledge'
|
|
733
|
-
},
|
|
734
|
-
'knowledge.base': {
|
|
735
|
-
id: 'knowledge.base',
|
|
736
|
-
order: 460,
|
|
737
|
-
label: 'Knowledge Base',
|
|
738
|
-
enabled: true,
|
|
739
|
-
lifecycle: 'active',
|
|
740
|
-
path: '/knowledge'
|
|
741
|
-
}
|
|
742
|
-
},
|
|
53
|
+
// Generic empty systems map. Elevasis-specific systems (platform, sales, sales.crm,
|
|
54
|
+
// sales.lead-gen, monitoring, settings, admin, etc.) have been relocated to
|
|
55
|
+
// `@repo/elevasis-core/src/organization-model/systems.ts` via `canonicalOrganizationModel`.
|
|
56
|
+
// Tenant OM configs supply their own systems via `resolveOrganizationModel`.
|
|
57
|
+
systems: {},
|
|
743
58
|
ontology: DEFAULT_ONTOLOGY_SCOPE,
|
|
744
59
|
resources: DEFAULT_ORGANIZATION_MODEL_RESOURCES,
|
|
745
60
|
topology: DEFAULT_ORGANIZATION_MODEL_TOPOLOGY,
|
|
746
|
-
actions
|
|
61
|
+
// Generic empty actions map. Elevasis-specific action entries have been relocated to
|
|
62
|
+
// `@repo/elevasis-core/src/organization-model/actions.ts`.
|
|
63
|
+
actions: {},
|
|
747
64
|
entities: DEFAULT_ORGANIZATION_MODEL_ENTITIES,
|
|
748
65
|
policies: DEFAULT_ORGANIZATION_MODEL_POLICIES,
|
|
749
|
-
// Phase 4 (D1): statuses top-level field removed; bridge status mirrors may
|
|
750
|
-
// still project from System.content, but primary authoring belongs in ontology.
|
|
751
66
|
knowledge: DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE
|
|
752
67
|
}
|