@elevasis/sdk 1.25.0 → 1.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/cli.cjs +18 -116
- package/dist/index.d.ts +165 -48
- package/dist/index.js +4 -435
- package/dist/node/index.d.ts +36 -36
- package/dist/test-utils/index.d.ts +99 -38
- package/dist/test-utils/index.js +27 -355
- package/dist/types/worker/adapters/clickup.d.ts +22 -0
- package/dist/types/worker/adapters/index.d.ts +1 -0
- package/dist/worker/index.js +32 -354
- package/package.json +2 -2
- package/reference/_navigation.md +11 -1
- package/reference/_reference-manifest.json +70 -0
- package/reference/claude-config/rules/organization-model.md +12 -1
- package/reference/claude-config/rules/organization-os.md +12 -1
- package/reference/claude-config/skills/om/SKILL.md +13 -5
- package/reference/claude-config/skills/om/operations/codify-level-a.md +109 -100
- package/reference/claude-config/skills/om/operations/customers.md +10 -6
- package/reference/claude-config/skills/om/operations/features.md +7 -3
- package/reference/claude-config/skills/om/operations/goals.md +10 -6
- package/reference/claude-config/skills/om/operations/identity.md +8 -5
- package/reference/claude-config/skills/om/operations/labels.md +17 -1
- package/reference/claude-config/skills/om/operations/offerings.md +11 -7
- package/reference/claude-config/skills/om/operations/roles.md +11 -7
- package/reference/claude-config/skills/om/operations/techStack.md +10 -2
- package/reference/claude-config/sync-notes/2026-05-20-om-define-helpers.md +32 -0
- package/reference/claude-config/sync-notes/2026-05-22-access-model-and-right-panel.md +43 -0
- package/reference/claude-config/sync-notes/2026-05-22-lead-gen-tenant-config.md +40 -0
- package/reference/claude-config/sync-notes/2026-05-22-org-model-multi-file-split.md +61 -0
- package/reference/cli-management.mdx +539 -0
- package/reference/cli.mdx +4 -532
- package/reference/concepts.mdx +134 -146
- package/reference/deployment/api.mdx +296 -297
- package/reference/deployment/command-center.mdx +208 -209
- package/reference/deployment/index.mdx +194 -195
- package/reference/deployment/provided-features.mdx +110 -107
- package/reference/deployment/ui-execution.mdx +249 -250
- package/reference/framework/index.mdx +111 -195
- package/reference/framework/resource-documentation.mdx +90 -0
- package/reference/framework/tutorial-system.mdx +135 -135
- package/reference/getting-started.mdx +141 -142
- package/reference/index.mdx +95 -106
- package/reference/packages/ui/src/auth/README.md +6 -6
- package/reference/platform-tools/adapters-integration.mdx +300 -301
- package/reference/platform-tools/adapters-platform.mdx +552 -553
- package/reference/platform-tools/index.mdx +216 -217
- package/reference/platform-tools/type-safety.mdx +82 -82
- package/reference/resources/index.mdx +348 -349
- package/reference/resources/patterns.mdx +446 -449
- package/reference/resources/types.mdx +115 -116
- package/reference/roadmap.mdx +164 -165
- package/reference/rules/organization-model.md +14 -0
- package/reference/runtime.mdx +172 -173
- package/reference/scaffold/operations/propagation-pipeline.md +1 -1
- package/reference/scaffold/recipes/extend-lead-gen.md +130 -77
- package/reference/scaffold/reference/contracts.md +376 -446
- package/reference/scaffold/reference/glossary.md +8 -6
- package/reference/scaffold/ui/feature-flags-and-gating.md +59 -46
- package/reference/scaffold/ui/feature-shell.mdx +11 -11
- package/reference/scaffold/ui/recipes.md +24 -24
- package/reference/troubleshooting.mdx +222 -223
package/dist/cli.cjs
CHANGED
|
@@ -37447,107 +37447,6 @@ var EntitySchema = external_exports.object({
|
|
|
37447
37447
|
var EntitiesDomainSchema = external_exports.record(external_exports.string(), EntitySchema).refine((record2) => Object.entries(record2).every(([key, entry]) => entry.id === key), {
|
|
37448
37448
|
message: "Each entity entry id must match its map key"
|
|
37449
37449
|
}).default({});
|
|
37450
|
-
var ENTITY_ENTRY_INPUTS = [
|
|
37451
|
-
{
|
|
37452
|
-
id: "crm.deal",
|
|
37453
|
-
order: 10,
|
|
37454
|
-
label: "Deal",
|
|
37455
|
-
description: "A CRM opportunity or sales pipeline record.",
|
|
37456
|
-
ownedBySystemId: "sales.crm",
|
|
37457
|
-
table: "crm_deals",
|
|
37458
|
-
stateCatalogId: "crm.pipeline",
|
|
37459
|
-
links: [{ toEntity: "crm.contact", kind: "has-many", via: "deal_contacts", label: "contacts" }]
|
|
37460
|
-
},
|
|
37461
|
-
{
|
|
37462
|
-
id: "crm.contact",
|
|
37463
|
-
order: 20,
|
|
37464
|
-
label: "CRM Contact",
|
|
37465
|
-
description: "A person associated with a CRM relationship or deal.",
|
|
37466
|
-
ownedBySystemId: "sales.crm",
|
|
37467
|
-
table: "crm_contacts"
|
|
37468
|
-
},
|
|
37469
|
-
{
|
|
37470
|
-
id: "leadgen.list",
|
|
37471
|
-
order: 30,
|
|
37472
|
-
label: "Lead List",
|
|
37473
|
-
description: "A prospecting list that groups companies and contacts for acquisition workflows.",
|
|
37474
|
-
ownedBySystemId: "sales.lead-gen",
|
|
37475
|
-
table: "acq_lists",
|
|
37476
|
-
links: [
|
|
37477
|
-
{ toEntity: "leadgen.company", kind: "has-many", via: "acq_list_companies", label: "companies" },
|
|
37478
|
-
{ toEntity: "leadgen.contact", kind: "has-many", via: "acq_list_members", label: "contacts" }
|
|
37479
|
-
]
|
|
37480
|
-
},
|
|
37481
|
-
{
|
|
37482
|
-
id: "leadgen.company",
|
|
37483
|
-
order: 40,
|
|
37484
|
-
label: "Lead Company",
|
|
37485
|
-
description: "A company record sourced, enriched, and qualified during prospecting.",
|
|
37486
|
-
ownedBySystemId: "sales.lead-gen",
|
|
37487
|
-
table: "acq_list_companies",
|
|
37488
|
-
stateCatalogId: "lead-gen.company",
|
|
37489
|
-
links: [
|
|
37490
|
-
{ toEntity: "leadgen.list", kind: "belongs-to", via: "list_id", label: "list" },
|
|
37491
|
-
{ toEntity: "leadgen.contact", kind: "has-many", via: "company_id", label: "contacts" }
|
|
37492
|
-
]
|
|
37493
|
-
},
|
|
37494
|
-
{
|
|
37495
|
-
id: "leadgen.contact",
|
|
37496
|
-
order: 50,
|
|
37497
|
-
label: "Lead Contact",
|
|
37498
|
-
description: "A prospect contact discovered or enriched during lead generation.",
|
|
37499
|
-
ownedBySystemId: "sales.lead-gen",
|
|
37500
|
-
table: "acq_list_members",
|
|
37501
|
-
stateCatalogId: "lead-gen.contact",
|
|
37502
|
-
links: [
|
|
37503
|
-
{ toEntity: "leadgen.list", kind: "belongs-to", via: "list_id", label: "list" },
|
|
37504
|
-
{ toEntity: "leadgen.company", kind: "belongs-to", via: "company_id", label: "company" }
|
|
37505
|
-
]
|
|
37506
|
-
},
|
|
37507
|
-
{
|
|
37508
|
-
id: "delivery.project",
|
|
37509
|
-
order: 60,
|
|
37510
|
-
label: "Project",
|
|
37511
|
-
description: "A client delivery project.",
|
|
37512
|
-
ownedBySystemId: "projects",
|
|
37513
|
-
table: "projects",
|
|
37514
|
-
links: [
|
|
37515
|
-
{ toEntity: "delivery.milestone", kind: "has-many", via: "project_id", label: "milestones" },
|
|
37516
|
-
{ toEntity: "delivery.task", kind: "has-many", via: "project_id", label: "tasks" }
|
|
37517
|
-
]
|
|
37518
|
-
},
|
|
37519
|
-
{
|
|
37520
|
-
id: "delivery.milestone",
|
|
37521
|
-
order: 70,
|
|
37522
|
-
label: "Milestone",
|
|
37523
|
-
description: "A delivery checkpoint within a project.",
|
|
37524
|
-
ownedBySystemId: "projects",
|
|
37525
|
-
table: "project_milestones",
|
|
37526
|
-
links: [
|
|
37527
|
-
{ toEntity: "delivery.project", kind: "belongs-to", via: "project_id", label: "project" },
|
|
37528
|
-
{ toEntity: "delivery.task", kind: "has-many", via: "milestone_id", label: "tasks" }
|
|
37529
|
-
]
|
|
37530
|
-
},
|
|
37531
|
-
{
|
|
37532
|
-
id: "delivery.task",
|
|
37533
|
-
order: 80,
|
|
37534
|
-
label: "Task",
|
|
37535
|
-
description: "A delivery task that can move through the task status catalog.",
|
|
37536
|
-
ownedBySystemId: "projects",
|
|
37537
|
-
table: "project_tasks",
|
|
37538
|
-
stateCatalogId: "delivery.task",
|
|
37539
|
-
links: [
|
|
37540
|
-
{ toEntity: "delivery.project", kind: "belongs-to", via: "project_id", label: "project" },
|
|
37541
|
-
{ toEntity: "delivery.milestone", kind: "belongs-to", via: "milestone_id", label: "milestone" }
|
|
37542
|
-
]
|
|
37543
|
-
}
|
|
37544
|
-
];
|
|
37545
|
-
var DEFAULT_ORGANIZATION_MODEL_ENTITIES = Object.fromEntries(
|
|
37546
|
-
ENTITY_ENTRY_INPUTS.map((entity) => {
|
|
37547
|
-
const parsed = EntitySchema.parse(entity);
|
|
37548
|
-
return [parsed.id, parsed];
|
|
37549
|
-
})
|
|
37550
|
-
);
|
|
37551
37450
|
|
|
37552
37451
|
// ../core/src/organization-model/domains/actions.ts
|
|
37553
37452
|
var ActionResourceIdSchema = external_exports.string().trim().min(1).max(255).regex(/^[A-Za-z0-9]+(?:[-._][A-Za-z0-9]+)*$/, "Resource IDs must use letters, numbers, -, _, or . separators");
|
|
@@ -38798,7 +38697,7 @@ var OrganizationModelSchemaBase = external_exports.object({
|
|
|
38798
38697
|
resources: ResourcesDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_RESOURCES),
|
|
38799
38698
|
topology: OmTopologyDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_TOPOLOGY),
|
|
38800
38699
|
actions: ActionsDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_ACTIONS),
|
|
38801
|
-
entities: EntitiesDomainSchema.default(
|
|
38700
|
+
entities: EntitiesDomainSchema.default({}),
|
|
38802
38701
|
policies: PoliciesDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_POLICIES),
|
|
38803
38702
|
// D3: flat Record<id, OrgKnowledgeNode> — no wrapper object
|
|
38804
38703
|
knowledge: KnowledgeDomainSchema.default({})
|
|
@@ -38807,7 +38706,7 @@ var OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(refineOrga
|
|
|
38807
38706
|
|
|
38808
38707
|
// ../core/src/organization-model/defaults.ts
|
|
38809
38708
|
var DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE = {};
|
|
38810
|
-
var
|
|
38709
|
+
var DEFAULT_ORGANIZATION_MODEL_ENTITIES = {};
|
|
38811
38710
|
var DEFAULT_ORGANIZATION_MODEL_NAVIGATION = {
|
|
38812
38711
|
sidebar: {
|
|
38813
38712
|
primary: {},
|
|
@@ -38835,7 +38734,7 @@ var DEFAULT_ORGANIZATION_MODEL = {
|
|
|
38835
38734
|
// Generic empty actions map. Elevasis-specific action entries have been relocated to
|
|
38836
38735
|
// `@repo/elevasis-core/src/organization-model/actions.ts`.
|
|
38837
38736
|
actions: {},
|
|
38838
|
-
entities:
|
|
38737
|
+
entities: DEFAULT_ORGANIZATION_MODEL_ENTITIES,
|
|
38839
38738
|
policies: DEFAULT_ORGANIZATION_MODEL_POLICIES,
|
|
38840
38739
|
knowledge: DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE
|
|
38841
38740
|
};
|
|
@@ -38910,19 +38809,22 @@ function getAllBuildTemplates(model) {
|
|
|
38910
38809
|
const stepCatalog = stepCatalogId !== void 0 ? stepCatalogs.get(stepCatalogId) : void 0;
|
|
38911
38810
|
const steps = stepCatalog === void 0 ? [] : entriesOf(stepCatalog);
|
|
38912
38811
|
return {
|
|
38913
|
-
|
|
38914
|
-
|
|
38915
|
-
|
|
38916
|
-
|
|
38917
|
-
|
|
38918
|
-
|
|
38919
|
-
|
|
38920
|
-
|
|
38921
|
-
|
|
38922
|
-
|
|
38812
|
+
order: numberValue(templateEntry.order, Number.MAX_SAFE_INTEGER),
|
|
38813
|
+
template: {
|
|
38814
|
+
id: templateId,
|
|
38815
|
+
label: stringValue(templateEntry.label) ?? templateId,
|
|
38816
|
+
...stringValue(templateEntry.description) ? { description: stringValue(templateEntry.description) } : {},
|
|
38817
|
+
...stringValue(templateEntry.color) ? { color: stringValue(templateEntry.color) } : {},
|
|
38818
|
+
steps: steps.map(([stepId, step]) => ({
|
|
38819
|
+
id: stepId,
|
|
38820
|
+
label: stringValue(step.label) ?? stepId,
|
|
38821
|
+
...stringValue(step.description) ? { description: stringValue(step.description) } : {},
|
|
38822
|
+
...step
|
|
38823
|
+
}))
|
|
38824
|
+
}
|
|
38923
38825
|
};
|
|
38924
38826
|
})
|
|
38925
|
-
).sort((a, b) => a.id.localeCompare(b.id));
|
|
38827
|
+
).sort((a, b) => a.order - b.order || a.template.id.localeCompare(b.template.id)).map(({ template }) => template);
|
|
38926
38828
|
}
|
|
38927
38829
|
function getAllProspectingStages(model, kind) {
|
|
38928
38830
|
return catalogRecords(model).filter((catalog) => catalog.kind === "stage" && appliesToEntityKind(catalog) === kind).flatMap(
|
|
@@ -44157,7 +44059,7 @@ function wrapAction(commandName, fn) {
|
|
|
44157
44059
|
// package.json
|
|
44158
44060
|
var package_default = {
|
|
44159
44061
|
name: "@elevasis/sdk",
|
|
44160
|
-
version: "1.
|
|
44062
|
+
version: "1.26.0",
|
|
44161
44063
|
description: "SDK for building Elevasis organization resources",
|
|
44162
44064
|
type: "module",
|
|
44163
44065
|
bin: {
|