@elevasis/sdk 1.31.0 → 1.33.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 +526 -225
- package/dist/index.d.ts +71 -5
- package/dist/node/index.d.ts +65 -2
- package/dist/test-utils/index.d.ts +71 -5
- package/package.json +3 -3
- package/reference/claude-config/Overview.md +123 -0
- package/reference/claude-config/registries/skill-coverage.json +19 -0
- package/reference/claude-config/skills/client/SKILL.md +201 -0
- package/reference/claude-config/skills/elevasis/SKILL.md +244 -235
- package/reference/claude-config/skills/om/SKILL.md +56 -5
- package/reference/claude-config/skills/om/operations/features.md +12 -5
- package/reference/claude-config/skills/om/operations/scaffold.md +10 -0
- package/reference/claude-config/skills/setup/SKILL.md +9 -0
- package/reference/claude-config/sync-notes/2026-05-30-client-source-and-om-profiles.md +39 -0
- package/reference/claude-config/sync-notes/2026-06-02-knowledge-nested-group-routing.md +27 -0
- package/reference/claude-config/sync-notes/2026-06-02-nest-projects-under-platform.md +45 -0
- package/reference/claude-config/sync-notes/2026-06-03-skill-autogen-and-client-skill.md +34 -0
- package/reference/rules/agent-start-here.md +8 -2
- package/reference/rules/organization-os.md +11 -7
- package/reference/rules/package-taxonomy.md +4 -0
- package/reference/scaffold/recipes/customize-knowledge-browser.md +23 -26
- package/reference/scaffold/reference/contracts.md +54 -0
- package/reference/scaffold/reference/feature-registry.md +1 -1
- package/reference/scaffold/ui/composition-extensibility.mdx +1 -1
- package/reference/sdk/cli-management.mdx +2 -2
- package/reference/sdk/framework/agent.mdx +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2675,6 +2675,7 @@ type Database = {
|
|
|
2675
2675
|
organization_id: string;
|
|
2676
2676
|
primary_company_id: string | null;
|
|
2677
2677
|
primary_contact_id: string | null;
|
|
2678
|
+
source: string;
|
|
2678
2679
|
source_deal_id: string | null;
|
|
2679
2680
|
status: string;
|
|
2680
2681
|
updated_at: string;
|
|
@@ -2688,6 +2689,7 @@ type Database = {
|
|
|
2688
2689
|
organization_id: string;
|
|
2689
2690
|
primary_company_id?: string | null;
|
|
2690
2691
|
primary_contact_id?: string | null;
|
|
2692
|
+
source?: string;
|
|
2691
2693
|
source_deal_id?: string | null;
|
|
2692
2694
|
status?: string;
|
|
2693
2695
|
updated_at?: string;
|
|
@@ -2701,6 +2703,7 @@ type Database = {
|
|
|
2701
2703
|
organization_id?: string;
|
|
2702
2704
|
primary_company_id?: string | null;
|
|
2703
2705
|
primary_contact_id?: string | null;
|
|
2706
|
+
source?: string;
|
|
2704
2707
|
source_deal_id?: string | null;
|
|
2705
2708
|
status?: string;
|
|
2706
2709
|
updated_at?: string;
|
|
@@ -6808,6 +6811,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
6808
6811
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6809
6812
|
lastModified: z.ZodString;
|
|
6810
6813
|
}, z.core.$strip>>;
|
|
6814
|
+
clients: z.ZodOptional<z.ZodObject<{
|
|
6815
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6816
|
+
lastModified: z.ZodString;
|
|
6817
|
+
}, z.core.$strip>>;
|
|
6811
6818
|
customers: z.ZodOptional<z.ZodObject<{
|
|
6812
6819
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6813
6820
|
lastModified: z.ZodString;
|
|
@@ -6865,6 +6872,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
6865
6872
|
version: 1;
|
|
6866
6873
|
lastModified: string;
|
|
6867
6874
|
};
|
|
6875
|
+
clients: {
|
|
6876
|
+
version: 1;
|
|
6877
|
+
lastModified: string;
|
|
6878
|
+
};
|
|
6868
6879
|
customers: {
|
|
6869
6880
|
version: 1;
|
|
6870
6881
|
lastModified: string;
|
|
@@ -6922,6 +6933,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
6922
6933
|
version: 1;
|
|
6923
6934
|
lastModified: string;
|
|
6924
6935
|
} | undefined;
|
|
6936
|
+
clients?: {
|
|
6937
|
+
version: 1;
|
|
6938
|
+
lastModified: string;
|
|
6939
|
+
} | undefined;
|
|
6925
6940
|
customers?: {
|
|
6926
6941
|
version: 1;
|
|
6927
6942
|
lastModified: string;
|
|
@@ -7114,6 +7129,56 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
7114
7129
|
shortName: z.ZodOptional<z.ZodString>;
|
|
7115
7130
|
description: z.ZodOptional<z.ZodString>;
|
|
7116
7131
|
}, z.core.$loose>>;
|
|
7132
|
+
clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7133
|
+
id: z.ZodString;
|
|
7134
|
+
slug: z.ZodString;
|
|
7135
|
+
name: z.ZodString;
|
|
7136
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
7137
|
+
active: "active";
|
|
7138
|
+
onboarding: "onboarding";
|
|
7139
|
+
paused: "paused";
|
|
7140
|
+
completed: "completed";
|
|
7141
|
+
churned: "churned";
|
|
7142
|
+
}>>;
|
|
7143
|
+
source: z.ZodOptional<z.ZodString>;
|
|
7144
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
7145
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
7146
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
7147
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
7148
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7149
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
7150
|
+
}, z.core.$loose>>;
|
|
7151
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
7152
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
7153
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
7154
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7155
|
+
}, z.core.$loose>>;
|
|
7156
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
7157
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
7158
|
+
"external-project": "external-project";
|
|
7159
|
+
"internal-project": "internal-project";
|
|
7160
|
+
none: "none";
|
|
7161
|
+
}>>;
|
|
7162
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
7163
|
+
platform: "platform";
|
|
7164
|
+
client: "client";
|
|
7165
|
+
developer: "developer";
|
|
7166
|
+
}>>;
|
|
7167
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
7168
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
7169
|
+
}, z.core.$loose>>;
|
|
7170
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
7171
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7172
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
7173
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
7174
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
7175
|
+
}, z.core.$strip>>;
|
|
7176
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
7177
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
7178
|
+
}, z.core.$loose>>;
|
|
7179
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
7180
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
7181
|
+
}, z.core.$strict>>>>;
|
|
7117
7182
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7118
7183
|
id: z.ZodString;
|
|
7119
7184
|
order: z.ZodNumber;
|
|
@@ -7767,6 +7832,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
7767
7832
|
action: "action";
|
|
7768
7833
|
ontology: "ontology";
|
|
7769
7834
|
role: "role";
|
|
7835
|
+
client: "client";
|
|
7770
7836
|
stage: "stage";
|
|
7771
7837
|
goal: "goal";
|
|
7772
7838
|
"customer-segment": "customer-segment";
|
|
@@ -7778,7 +7844,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
7778
7844
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
7779
7845
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
7780
7846
|
target: {
|
|
7781
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7847
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7782
7848
|
id: string;
|
|
7783
7849
|
};
|
|
7784
7850
|
nodeId: string;
|
|
@@ -7786,7 +7852,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
7786
7852
|
nodeId: string;
|
|
7787
7853
|
} | {
|
|
7788
7854
|
target: {
|
|
7789
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7855
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7790
7856
|
id: string;
|
|
7791
7857
|
};
|
|
7792
7858
|
}>>>>;
|
|
@@ -9601,8 +9667,8 @@ declare const ProjectSchemas: {
|
|
|
9601
9667
|
}>;
|
|
9602
9668
|
status: z.ZodOptional<z.ZodEnum<{
|
|
9603
9669
|
active: "active";
|
|
9604
|
-
completed: "completed";
|
|
9605
9670
|
paused: "paused";
|
|
9671
|
+
completed: "completed";
|
|
9606
9672
|
on_track: "on_track";
|
|
9607
9673
|
at_risk: "at_risk";
|
|
9608
9674
|
blocked: "blocked";
|
|
@@ -9626,8 +9692,8 @@ declare const ProjectSchemas: {
|
|
|
9626
9692
|
}>>;
|
|
9627
9693
|
status: z.ZodOptional<z.ZodEnum<{
|
|
9628
9694
|
active: "active";
|
|
9629
|
-
completed: "completed";
|
|
9630
9695
|
paused: "paused";
|
|
9696
|
+
completed: "completed";
|
|
9631
9697
|
on_track: "on_track";
|
|
9632
9698
|
at_risk: "at_risk";
|
|
9633
9699
|
blocked: "blocked";
|
|
@@ -9651,8 +9717,8 @@ declare const ProjectSchemas: {
|
|
|
9651
9717
|
}>>;
|
|
9652
9718
|
status: z.ZodOptional<z.ZodEnum<{
|
|
9653
9719
|
active: "active";
|
|
9654
|
-
completed: "completed";
|
|
9655
9720
|
paused: "paused";
|
|
9721
|
+
completed: "completed";
|
|
9656
9722
|
on_track: "on_track";
|
|
9657
9723
|
at_risk: "at_risk";
|
|
9658
9724
|
blocked: "blocked";
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1519,6 +1519,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
1519
1519
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
1520
1520
|
lastModified: z.ZodString;
|
|
1521
1521
|
}, z.core.$strip>>;
|
|
1522
|
+
clients: z.ZodOptional<z.ZodObject<{
|
|
1523
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
1524
|
+
lastModified: z.ZodString;
|
|
1525
|
+
}, z.core.$strip>>;
|
|
1522
1526
|
customers: z.ZodOptional<z.ZodObject<{
|
|
1523
1527
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
1524
1528
|
lastModified: z.ZodString;
|
|
@@ -1576,6 +1580,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
1576
1580
|
version: 1;
|
|
1577
1581
|
lastModified: string;
|
|
1578
1582
|
};
|
|
1583
|
+
clients: {
|
|
1584
|
+
version: 1;
|
|
1585
|
+
lastModified: string;
|
|
1586
|
+
};
|
|
1579
1587
|
customers: {
|
|
1580
1588
|
version: 1;
|
|
1581
1589
|
lastModified: string;
|
|
@@ -1633,6 +1641,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
1633
1641
|
version: 1;
|
|
1634
1642
|
lastModified: string;
|
|
1635
1643
|
} | undefined;
|
|
1644
|
+
clients?: {
|
|
1645
|
+
version: 1;
|
|
1646
|
+
lastModified: string;
|
|
1647
|
+
} | undefined;
|
|
1636
1648
|
customers?: {
|
|
1637
1649
|
version: 1;
|
|
1638
1650
|
lastModified: string;
|
|
@@ -1825,6 +1837,56 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
1825
1837
|
shortName: z.ZodOptional<z.ZodString>;
|
|
1826
1838
|
description: z.ZodOptional<z.ZodString>;
|
|
1827
1839
|
}, z.core.$loose>>;
|
|
1840
|
+
clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1841
|
+
id: z.ZodString;
|
|
1842
|
+
slug: z.ZodString;
|
|
1843
|
+
name: z.ZodString;
|
|
1844
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
1845
|
+
active: "active";
|
|
1846
|
+
onboarding: "onboarding";
|
|
1847
|
+
paused: "paused";
|
|
1848
|
+
completed: "completed";
|
|
1849
|
+
churned: "churned";
|
|
1850
|
+
}>>;
|
|
1851
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1852
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
1853
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
1854
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
1855
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
1856
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1857
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
1858
|
+
}, z.core.$loose>>;
|
|
1859
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
1860
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
1861
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
1862
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1863
|
+
}, z.core.$loose>>;
|
|
1864
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
1865
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1866
|
+
"external-project": "external-project";
|
|
1867
|
+
"internal-project": "internal-project";
|
|
1868
|
+
none: "none";
|
|
1869
|
+
}>>;
|
|
1870
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
1871
|
+
platform: "platform";
|
|
1872
|
+
client: "client";
|
|
1873
|
+
developer: "developer";
|
|
1874
|
+
}>>;
|
|
1875
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1876
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
1877
|
+
}, z.core.$loose>>;
|
|
1878
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
1879
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1880
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
1882
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
}, z.core.$strip>>;
|
|
1884
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
1885
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
1886
|
+
}, z.core.$loose>>;
|
|
1887
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1888
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1889
|
+
}, z.core.$strict>>>>;
|
|
1828
1890
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1829
1891
|
id: z.ZodString;
|
|
1830
1892
|
order: z.ZodNumber;
|
|
@@ -2478,6 +2540,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
2478
2540
|
action: "action";
|
|
2479
2541
|
ontology: "ontology";
|
|
2480
2542
|
role: "role";
|
|
2543
|
+
client: "client";
|
|
2481
2544
|
stage: "stage";
|
|
2482
2545
|
goal: "goal";
|
|
2483
2546
|
"customer-segment": "customer-segment";
|
|
@@ -2489,7 +2552,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
2489
2552
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
2490
2553
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
2491
2554
|
target: {
|
|
2492
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
2555
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
2493
2556
|
id: string;
|
|
2494
2557
|
};
|
|
2495
2558
|
nodeId: string;
|
|
@@ -2497,7 +2560,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
2497
2560
|
nodeId: string;
|
|
2498
2561
|
} | {
|
|
2499
2562
|
target: {
|
|
2500
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
2563
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
2501
2564
|
id: string;
|
|
2502
2565
|
};
|
|
2503
2566
|
}>>>>;
|
|
@@ -2508,6 +2508,7 @@ type Database = {
|
|
|
2508
2508
|
organization_id: string;
|
|
2509
2509
|
primary_company_id: string | null;
|
|
2510
2510
|
primary_contact_id: string | null;
|
|
2511
|
+
source: string;
|
|
2511
2512
|
source_deal_id: string | null;
|
|
2512
2513
|
status: string;
|
|
2513
2514
|
updated_at: string;
|
|
@@ -2521,6 +2522,7 @@ type Database = {
|
|
|
2521
2522
|
organization_id: string;
|
|
2522
2523
|
primary_company_id?: string | null;
|
|
2523
2524
|
primary_contact_id?: string | null;
|
|
2525
|
+
source?: string;
|
|
2524
2526
|
source_deal_id?: string | null;
|
|
2525
2527
|
status?: string;
|
|
2526
2528
|
updated_at?: string;
|
|
@@ -2534,6 +2536,7 @@ type Database = {
|
|
|
2534
2536
|
organization_id?: string;
|
|
2535
2537
|
primary_company_id?: string | null;
|
|
2536
2538
|
primary_contact_id?: string | null;
|
|
2539
|
+
source?: string;
|
|
2537
2540
|
source_deal_id?: string | null;
|
|
2538
2541
|
status?: string;
|
|
2539
2542
|
updated_at?: string;
|
|
@@ -6003,6 +6006,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6003
6006
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6004
6007
|
lastModified: z.ZodString;
|
|
6005
6008
|
}, z.core.$strip>>;
|
|
6009
|
+
clients: z.ZodOptional<z.ZodObject<{
|
|
6010
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6011
|
+
lastModified: z.ZodString;
|
|
6012
|
+
}, z.core.$strip>>;
|
|
6006
6013
|
customers: z.ZodOptional<z.ZodObject<{
|
|
6007
6014
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6008
6015
|
lastModified: z.ZodString;
|
|
@@ -6060,6 +6067,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6060
6067
|
version: 1;
|
|
6061
6068
|
lastModified: string;
|
|
6062
6069
|
};
|
|
6070
|
+
clients: {
|
|
6071
|
+
version: 1;
|
|
6072
|
+
lastModified: string;
|
|
6073
|
+
};
|
|
6063
6074
|
customers: {
|
|
6064
6075
|
version: 1;
|
|
6065
6076
|
lastModified: string;
|
|
@@ -6117,6 +6128,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6117
6128
|
version: 1;
|
|
6118
6129
|
lastModified: string;
|
|
6119
6130
|
} | undefined;
|
|
6131
|
+
clients?: {
|
|
6132
|
+
version: 1;
|
|
6133
|
+
lastModified: string;
|
|
6134
|
+
} | undefined;
|
|
6120
6135
|
customers?: {
|
|
6121
6136
|
version: 1;
|
|
6122
6137
|
lastModified: string;
|
|
@@ -6309,6 +6324,56 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6309
6324
|
shortName: z.ZodOptional<z.ZodString>;
|
|
6310
6325
|
description: z.ZodOptional<z.ZodString>;
|
|
6311
6326
|
}, z.core.$loose>>;
|
|
6327
|
+
clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6328
|
+
id: z.ZodString;
|
|
6329
|
+
slug: z.ZodString;
|
|
6330
|
+
name: z.ZodString;
|
|
6331
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
6332
|
+
active: "active";
|
|
6333
|
+
onboarding: "onboarding";
|
|
6334
|
+
paused: "paused";
|
|
6335
|
+
completed: "completed";
|
|
6336
|
+
churned: "churned";
|
|
6337
|
+
}>>;
|
|
6338
|
+
source: z.ZodOptional<z.ZodString>;
|
|
6339
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
6340
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
6341
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
6342
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
6343
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6344
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
6345
|
+
}, z.core.$loose>>;
|
|
6346
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
6347
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
6348
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
6349
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6350
|
+
}, z.core.$loose>>;
|
|
6351
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
6352
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
6353
|
+
"external-project": "external-project";
|
|
6354
|
+
"internal-project": "internal-project";
|
|
6355
|
+
none: "none";
|
|
6356
|
+
}>>;
|
|
6357
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
6358
|
+
platform: "platform";
|
|
6359
|
+
client: "client";
|
|
6360
|
+
developer: "developer";
|
|
6361
|
+
}>>;
|
|
6362
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
6363
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
6364
|
+
}, z.core.$loose>>;
|
|
6365
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
6366
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6367
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
6368
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
6369
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
6370
|
+
}, z.core.$strip>>;
|
|
6371
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
6372
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
6373
|
+
}, z.core.$loose>>;
|
|
6374
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
6375
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
6376
|
+
}, z.core.$strict>>>>;
|
|
6312
6377
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6313
6378
|
id: z.ZodString;
|
|
6314
6379
|
order: z.ZodNumber;
|
|
@@ -6962,6 +7027,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6962
7027
|
action: "action";
|
|
6963
7028
|
ontology: "ontology";
|
|
6964
7029
|
role: "role";
|
|
7030
|
+
client: "client";
|
|
6965
7031
|
stage: "stage";
|
|
6966
7032
|
goal: "goal";
|
|
6967
7033
|
"customer-segment": "customer-segment";
|
|
@@ -6973,7 +7039,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6973
7039
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
6974
7040
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
6975
7041
|
target: {
|
|
6976
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7042
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
6977
7043
|
id: string;
|
|
6978
7044
|
};
|
|
6979
7045
|
nodeId: string;
|
|
@@ -6981,7 +7047,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6981
7047
|
nodeId: string;
|
|
6982
7048
|
} | {
|
|
6983
7049
|
target: {
|
|
6984
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7050
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
6985
7051
|
id: string;
|
|
6986
7052
|
};
|
|
6987
7053
|
}>>>>;
|
|
@@ -8704,8 +8770,8 @@ declare const ProjectSchemas: {
|
|
|
8704
8770
|
}>;
|
|
8705
8771
|
status: z.ZodOptional<z.ZodEnum<{
|
|
8706
8772
|
active: "active";
|
|
8707
|
-
completed: "completed";
|
|
8708
8773
|
paused: "paused";
|
|
8774
|
+
completed: "completed";
|
|
8709
8775
|
on_track: "on_track";
|
|
8710
8776
|
at_risk: "at_risk";
|
|
8711
8777
|
blocked: "blocked";
|
|
@@ -8729,8 +8795,8 @@ declare const ProjectSchemas: {
|
|
|
8729
8795
|
}>>;
|
|
8730
8796
|
status: z.ZodOptional<z.ZodEnum<{
|
|
8731
8797
|
active: "active";
|
|
8732
|
-
completed: "completed";
|
|
8733
8798
|
paused: "paused";
|
|
8799
|
+
completed: "completed";
|
|
8734
8800
|
on_track: "on_track";
|
|
8735
8801
|
at_risk: "at_risk";
|
|
8736
8802
|
blocked: "blocked";
|
|
@@ -8754,8 +8820,8 @@ declare const ProjectSchemas: {
|
|
|
8754
8820
|
}>>;
|
|
8755
8821
|
status: z.ZodOptional<z.ZodEnum<{
|
|
8756
8822
|
active: "active";
|
|
8757
|
-
completed: "completed";
|
|
8758
8823
|
paused: "paused";
|
|
8824
|
+
completed: "completed";
|
|
8759
8825
|
on_track: "on_track";
|
|
8760
8826
|
at_risk: "at_risk";
|
|
8761
8827
|
blocked: "blocked";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "SDK for building Elevasis organization resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"tsup": "^8.0.0",
|
|
59
59
|
"typescript": "5.9.2",
|
|
60
60
|
"zod": "^4.1.0",
|
|
61
|
-
"@repo/core": "0.
|
|
61
|
+
"@repo/core": "0.42.0",
|
|
62
62
|
"@repo/eslint-config": "0.0.0",
|
|
63
63
|
"@repo/typescript-config": "0.0.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"lint": "eslint src --max-warnings 0",
|
|
67
|
-
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --banner:js=\"#!/usr/bin/env node\" && node scripts/copy-reference-docs.mjs && node ../../scripts/monorepo/generate-reference-artifacts.js",
|
|
67
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --banner:js=\"#!/usr/bin/env node\" && node scripts/verify-skill-coverage.mjs && node scripts/copy-reference-docs.mjs && node ../../scripts/monorepo/generate-reference-artifacts.js",
|
|
68
68
|
"type-check": "tsc --noEmit",
|
|
69
69
|
"check-types": "pnpm type-check",
|
|
70
70
|
"test": "pnpm build && node ../../scripts/monorepo/validate-reference-artifacts.js && vitest run --config vitest.bundle.config.ts",
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Claude Code Configuration Overview
|
|
2
|
+
|
|
3
|
+
Start here when working with the Claude agent scaffold for this project.
|
|
4
|
+
This file is a routing map for the skill and rule inventories. For live CLI capability, run `elevasis-sdk cli`.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## What Lives Here
|
|
9
|
+
|
|
10
|
+
| Surface | Purpose | Source of truth |
|
|
11
|
+
| ------- | ----------------------------- | ---------------------------------------------- |
|
|
12
|
+
| Skills | Slash-command entry points | `.claude/skills/*/SKILL.md` |
|
|
13
|
+
| Rules | Path-scoped operating context | `node_modules/@elevasis/sdk/reference/rules/` |
|
|
14
|
+
| Hooks | Claude lifecycle automation | `.claude/hooks/*.mjs`, `.claude/settings.json` |
|
|
15
|
+
| CLI | Live command + domain surface | `elevasis-sdk cli` (authoritative, run it) |
|
|
16
|
+
|
|
17
|
+
For CLI capability, run `elevasis-sdk cli` — it is the authoritative surface for what commands
|
|
18
|
+
and domains are available. For architecture context, read `CLAUDE.md` first.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Operating Model
|
|
23
|
+
|
|
24
|
+
This project is skill-first with an always-on ambient vibe layer:
|
|
25
|
+
|
|
26
|
+
1. Load `CLAUDE.md` for project rules, stack, and the Ambient Vibe Layer contract.
|
|
27
|
+
2. Every natural-language message is silently classified into an intent (Capture, Query, Describe,
|
|
28
|
+
Transition, Navigate, Codify, Toggle, Operate) before the agent responds — no slash command needed.
|
|
29
|
+
3. For explicit work, match intent to a skill in `.claude/skills/{name}/SKILL.md`.
|
|
30
|
+
4. Load the relevant bundled rule from `node_modules/@elevasis/sdk/reference/rules/` for the area
|
|
31
|
+
being changed (the local `.claude/rules/*.md` files are thin pointers to these).
|
|
32
|
+
5. Use `elevasis-sdk cli` for the live command/domain surface — do not answer "what can I do" from memory.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Skills
|
|
37
|
+
|
|
38
|
+
**Location:** `.claude/skills/`
|
|
39
|
+
|
|
40
|
+
Skills are the slash-command surface. Each skill is `.claude/skills/{name}/SKILL.md`:
|
|
41
|
+
|
|
42
|
+
<!-- @generated:start:sync-overview-skills -->
|
|
43
|
+
- **client** -- Client portfolio management -- list, resolve, inspect, and maintain client records and their lineage to companies, contacts, and source deals -- via the elevasis-sdk client:* CLI.
|
|
44
|
+
- **deploy** -- Test, build, fix issues, then commit and push
|
|
45
|
+
- **dsp** -- Dispatch subagents in parallel for implementation tasks
|
|
46
|
+
- **elevasis** -- Elevasis platform operations -- check, deploy, execute, inspect, and debug SDK resources
|
|
47
|
+
- **explore** -- Codebase exploration anchored to project documentation
|
|
48
|
+
- **git-sync** -- Pull latest changes, surface new sync notes, install when needed, and run baseline verification without auto-reconciling template drift
|
|
49
|
+
- **om** -- TRIGGER this skill when any of the following apply: - The user references organization-model entities by name or concept: identity, customers, offerings, roles, goals, techStack, systems, actions, labels, knowledge nodes, governance edges, mounts, playbook, outreach cadence, or any domain in the org model. - The user asks to read, list, find, show, query, navigate, describe, codify, add, edit, update, toggle, enable, or disable any organization-model domain or knowledge node. - The user asks "what governs X?", "what does X control?", "system governs", "what is our identity set to?", "what's our timezone?", "show me all reference docs", "list my roles", "where does outreach-cadence apply?", or similar. - An agent is editing files matching: core/config/organization-model.ts, core/config/organization-model/**, or core/config/knowledge/**. SKIP this skill when the task is purely UI layout, workflow authoring, or infrastructure work with no reference to org-model or knowledge-graph entities.
|
|
50
|
+
- **project** -- Portfolio- and project-level work management -- orientation, intent routing, active projects, milestones, tasks, notes, and resume context -- via the elevasis-sdk project:* CLI.
|
|
51
|
+
- **run-ui** -- Start the project's Vite UI dev server on port 4300 in the background, surfacing the URL once it's ready. Detects port conflicts and asks before killing the holder.
|
|
52
|
+
- **save** -- Auto-manage project documentation and persist task resume context from conversation
|
|
53
|
+
- **setup** -- First-time project setup — detect and replace template placeholders, install dependencies, verify build, then hand off to /om for org-model configuration
|
|
54
|
+
- **status** -- Quick project health check
|
|
55
|
+
- **submit-request** -- Submit a structured request report to the Elevasis platform via CLI — enforces pre-analysis before posting
|
|
56
|
+
- **sync** -- Fresh reinstall and cache reset after local dependency or cache drift
|
|
57
|
+
- **tutorial** -- Persona-aware onboarding tutorial that forks into a vibe-coder track (zero technical vocabulary, agent does all the work) or a technical track (full SDK depth, code-first). On first invocation, asks one gate question to determine the user's track and persists the choice to .claude/memory/profile.md. Subsequent invocations skip the question and display the track menu with current progress markers. Supports /tutorial switch (flip track) and /tutorial status (display-only).
|
|
58
|
+
<!-- @generated:end:sync-overview-skills -->
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Rules
|
|
63
|
+
|
|
64
|
+
**Location:** `node_modules/@elevasis/sdk/reference/rules/` (bundled with `@elevasis/sdk`)
|
|
65
|
+
|
|
66
|
+
Path-scoped operating context loaded for substantial work in their areas. The project's local
|
|
67
|
+
`.claude/rules/*.md` files are thin compatibility pointers; the authoritative content ships with
|
|
68
|
+
the SDK and is listed here:
|
|
69
|
+
|
|
70
|
+
<!-- @generated:start:sync-overview-rules -->
|
|
71
|
+
- `node_modules/@elevasis/sdk/reference/rules/active-change-index.md` -- Bridge between stable scaffold docs and higher-volatility in-progress architecture work that may override assumptions for agents working in the template
|
|
72
|
+
- `node_modules/@elevasis/sdk/reference/rules/agent-start-here.md` -- Canonical first-read for agents entering the template scaffold -- project continuity, task-class routing, and boundary resolution
|
|
73
|
+
- `node_modules/@elevasis/sdk/reference/rules/deployment.md` -- Deployment workflow -- check-first, dev vs prod, version bumping, common errors
|
|
74
|
+
- `node_modules/@elevasis/sdk/reference/rules/error-handling.md` -- Error handling -- ExecutionError vs PlatformToolError, retry logic, no auto-retry
|
|
75
|
+
- `node_modules/@elevasis/sdk/reference/rules/execution.md` -- Execution model -- timeouts, memory, concurrency, org isolation, runtime constraints
|
|
76
|
+
- `node_modules/@elevasis/sdk/reference/rules/frontend.md` -- Frontend conventions -- React, routing, state, styling, testing, pages
|
|
77
|
+
- `node_modules/@elevasis/sdk/reference/rules/observability.md` -- Observability -- context.logger API, execution inspection, step-level context
|
|
78
|
+
- `node_modules/@elevasis/sdk/reference/rules/operations.md` -- Platform workflows, agents, resource definitions, and deployment for the operations/ surface
|
|
79
|
+
- `node_modules/@elevasis/sdk/reference/rules/organization-model.md` -- Edits to the canonical organization model go through /om
|
|
80
|
+
- `node_modules/@elevasis/sdk/reference/rules/organization-os.md` -- Organization OS orientation -- the semantic contract layer relating Systems, Actions, ontology, resources, policies, roles, goals, and knowledge; consumed via published @elevasis/core / @elevasis/sdk
|
|
81
|
+
- `node_modules/@elevasis/sdk/reference/rules/package-taxonomy.md` -- Package taxonomy (consumer view) -- external projects consume the published @elevasis/* surface only; workspace-internal @repo/elevasis-* packages are not installable here
|
|
82
|
+
- `node_modules/@elevasis/sdk/reference/rules/platform.md` -- Platform conventions -- SDK workflows, agents, deployment, resource registry
|
|
83
|
+
- `node_modules/@elevasis/sdk/reference/rules/shared-types.md` -- Core type boundary -- what belongs in core/types, import rules, schema conventions
|
|
84
|
+
- `node_modules/@elevasis/sdk/reference/rules/task-tracking.md` -- In-progress task conventions -- doc format, status values, auto-save behavior
|
|
85
|
+
- `node_modules/@elevasis/sdk/reference/rules/ui.md` -- UI shell, route structure, auth flow, API access, and template customization points for the ui/ surface
|
|
86
|
+
- `node_modules/@elevasis/sdk/reference/rules/vibe.md` -- Ambient intent classifier -- routes natural-language input to intent buckets without a slash command; Codify and Toggle delegate to /om, Operate delegates to /elevasis
|
|
87
|
+
<!-- @generated:end:sync-overview-rules -->
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Skill Boundaries
|
|
92
|
+
|
|
93
|
+
Use the owning skill instead of guessing from the name alone:
|
|
94
|
+
|
|
95
|
+
| Need | Route |
|
|
96
|
+
| -------------------------------------------------------- | ----------------- |
|
|
97
|
+
| SDK operations (check, deploy, exec, inspect, debug) | `/elevasis` |
|
|
98
|
+
| Project and task lifecycle | `/project` |
|
|
99
|
+
| Client portfolio (list, resolve, inspect, maintain) | `/client` |
|
|
100
|
+
| Organization Model read, codify, or governance | `/om` |
|
|
101
|
+
| First-time project setup (placeholder replacement, deps) | `/setup` |
|
|
102
|
+
| Guided onboarding walkthrough | `/tutorial` |
|
|
103
|
+
| Conversation fanout (notes, task save, blockers) | `/save` |
|
|
104
|
+
| Parallel agent dispatch | `/dsp` |
|
|
105
|
+
| Test, build, commit, push | `/deploy` |
|
|
106
|
+
| Codebase exploration | `/explore` |
|
|
107
|
+
| Pull latest, surface sync notes, baseline verify | `/git-sync` |
|
|
108
|
+
| Project health check | `/status` |
|
|
109
|
+
| Submit a request to the Elevasis team | `/submit-request` |
|
|
110
|
+
| Fresh reinstall / cache reset | `/sync` |
|
|
111
|
+
| Start the Vite dev server on port 4300 | `/run-ui` |
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Scaffold Maintenance
|
|
116
|
+
|
|
117
|
+
| Action | Command or file |
|
|
118
|
+
| -------------------------------------- | ------------------------------------------- |
|
|
119
|
+
| Refresh the Skills + Rules lists above | `pnpm gen:overview` (run from the monorepo) |
|
|
120
|
+
|
|
121
|
+
The Skills section is generated from `external/_template/.claude/skills/*/SKILL.md` frontmatter, and
|
|
122
|
+
the Rules section from the bundled rule source `packages/sdk/docs/agent-rules/*.md`, both by
|
|
123
|
+
`.claude/_gen/sync-overview.ts`. Do not hand-edit the generated blocks.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skills": {
|
|
3
|
+
"project": { "domains": ["project"] },
|
|
4
|
+
"elevasis": { "domains": ["platform"] },
|
|
5
|
+
"om": { "domains": ["knowledge", "om"] },
|
|
6
|
+
"submit-request": { "domains": ["request"] },
|
|
7
|
+
"client": { "domains": ["client"] }
|
|
8
|
+
},
|
|
9
|
+
"waived": {
|
|
10
|
+
"acquisition": "read-only, surfaced via lead-gen UI",
|
|
11
|
+
"agent": "operator-facing deployed-agent introspection",
|
|
12
|
+
"session": "operator-facing session introspection",
|
|
13
|
+
"queue": "HITL approval queue — surfaced in the UI",
|
|
14
|
+
"schedule": "operator-facing scheduler control",
|
|
15
|
+
"note": "CLI-only in tenant context; /notes is monorepo-internal, not propagated",
|
|
16
|
+
"ui": "infra-only dev toggle (ui:use-local / ui:use-published)",
|
|
17
|
+
"skill": "SDK meta-tooling (skill:scaffold, skill:check-coverage) — developer-facing build utilities, not agent-facing workflow commands"
|
|
18
|
+
}
|
|
19
|
+
}
|