@elevasis/core 0.6.0 → 0.7.1
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 +1 -0
- package/dist/index.js +9 -2
- package/dist/organization-model/index.d.ts +1 -0
- package/dist/organization-model/index.js +9 -2
- package/package.json +4 -3
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +1131 -0
- package/src/_gen/__tests__/scaffold-contracts.test.ts +53 -0
- package/src/_gen/scaffold-contracts.ts +45 -0
- package/src/business/projects/index.ts +1 -0
- package/src/business/projects/sse-events.ts +21 -0
- package/src/execution/engine/tools/registry.ts +4 -3
- package/src/index.ts +10 -0
- package/src/organization-model/__tests__/domains/identity.test.ts +1 -0
- package/src/organization-model/domains/identity.ts +9 -2
- package/src/platform/constants/versions.ts +1 -1
- package/src/platform/sse/events.ts +3 -0
- package/src/reference/_generated/contracts.md +5 -1
- package/src/scaffold-registry/__tests__/schema.test.ts +280 -0
- package/src/scaffold-registry/index.ts +194 -0
- package/src/scaffold-registry/schema.ts +144 -0
- package/src/supabase/database.types.ts +70 -6
package/dist/index.d.ts
CHANGED
|
@@ -172,6 +172,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
172
172
|
close: z.ZodString;
|
|
173
173
|
}, z.core.$strip>>;
|
|
174
174
|
}, z.core.$strip>>;
|
|
175
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
175
176
|
}, z.core.$strip>>;
|
|
176
177
|
customers: z.ZodDefault<z.ZodObject<{
|
|
177
178
|
segments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -664,7 +664,13 @@ var IdentityDomainSchema = z.object({
|
|
|
664
664
|
*/
|
|
665
665
|
timeZone: z.string().trim().max(100).default("UTC"),
|
|
666
666
|
/** Typical operating hours per day of week. Empty object means not configured. */
|
|
667
|
-
businessHours: BusinessHoursSchema
|
|
667
|
+
businessHours: BusinessHoursSchema,
|
|
668
|
+
/**
|
|
669
|
+
* Long-form markdown capturing client context, problem narrative, and domain
|
|
670
|
+
* background. Populated by /setup; surfaced to agents as organizational context.
|
|
671
|
+
* Optional — many projects have no external client.
|
|
672
|
+
*/
|
|
673
|
+
clientBrief: z.string().trim().default("")
|
|
668
674
|
});
|
|
669
675
|
var DEFAULT_ORGANIZATION_MODEL_IDENTITY = {
|
|
670
676
|
mission: "",
|
|
@@ -675,7 +681,8 @@ var DEFAULT_ORGANIZATION_MODEL_IDENTITY = {
|
|
|
675
681
|
industryCategory: "",
|
|
676
682
|
geographicFocus: "",
|
|
677
683
|
timeZone: "UTC",
|
|
678
|
-
businessHours: {}
|
|
684
|
+
businessHours: {},
|
|
685
|
+
clientBrief: ""
|
|
679
686
|
};
|
|
680
687
|
var FirmographicsSchema = z.object({
|
|
681
688
|
/** Industry vertical (e.g. "Marketing Agency", "Legal", "Real Estate"). */
|
|
@@ -172,6 +172,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
172
172
|
close: z.ZodString;
|
|
173
173
|
}, z.core.$strip>>;
|
|
174
174
|
}, z.core.$strip>>;
|
|
175
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
175
176
|
}, z.core.$strip>>;
|
|
176
177
|
customers: z.ZodDefault<z.ZodObject<{
|
|
177
178
|
segments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -664,7 +664,13 @@ var IdentityDomainSchema = z.object({
|
|
|
664
664
|
*/
|
|
665
665
|
timeZone: z.string().trim().max(100).default("UTC"),
|
|
666
666
|
/** Typical operating hours per day of week. Empty object means not configured. */
|
|
667
|
-
businessHours: BusinessHoursSchema
|
|
667
|
+
businessHours: BusinessHoursSchema,
|
|
668
|
+
/**
|
|
669
|
+
* Long-form markdown capturing client context, problem narrative, and domain
|
|
670
|
+
* background. Populated by /setup; surfaced to agents as organizational context.
|
|
671
|
+
* Optional — many projects have no external client.
|
|
672
|
+
*/
|
|
673
|
+
clientBrief: z.string().trim().default("")
|
|
668
674
|
});
|
|
669
675
|
var DEFAULT_ORGANIZATION_MODEL_IDENTITY = {
|
|
670
676
|
mission: "",
|
|
@@ -675,7 +681,8 @@ var DEFAULT_ORGANIZATION_MODEL_IDENTITY = {
|
|
|
675
681
|
industryCategory: "",
|
|
676
682
|
geographicFocus: "",
|
|
677
683
|
timeZone: "UTC",
|
|
678
|
-
businessHours: {}
|
|
684
|
+
businessHours: {},
|
|
685
|
+
clientBrief: ""
|
|
679
686
|
};
|
|
680
687
|
var FirmographicsSchema = z.object({
|
|
681
688
|
/** Industry vertical (e.g. "Marketing Agency", "Legal", "Real Estate"). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Minimal shared constants across Elevasis monorepo",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,11 +33,12 @@
|
|
|
33
33
|
"rollup-plugin-dts": "^6.3.0",
|
|
34
34
|
"tsup": "^8.0.0",
|
|
35
35
|
"typescript": "5.9.2",
|
|
36
|
-
"@repo/
|
|
37
|
-
"@repo/
|
|
36
|
+
"@repo/eslint-config": "0.0.0",
|
|
37
|
+
"@repo/typescript-config": "0.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@anthropic-ai/sdk": "^0.62.0",
|
|
41
|
+
"yaml": "^2.8.1",
|
|
41
42
|
"@google/genai": "^1.30.0",
|
|
42
43
|
"@googleapis/gmail": "^15.0.0",
|
|
43
44
|
"@googleapis/sheets": "^12.0.0",
|