@elevasis/core 0.42.0 → 0.42.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/core",
3
- "version": "0.42.0",
3
+ "version": "0.42.1",
4
4
  "license": "MIT",
5
5
  "description": "Minimal shared constants across Elevasis monorepo",
6
6
  "sideEffects": false,
@@ -6,7 +6,15 @@ export const accessTestOrganizationModel = {
6
6
  id: 'platform',
7
7
  label: 'Platform',
8
8
  lifecycle: 'active',
9
- order: 10
9
+ order: 10,
10
+ systems: {
11
+ projects: {
12
+ id: 'projects',
13
+ label: 'Projects',
14
+ lifecycle: 'active',
15
+ order: 10
16
+ }
17
+ }
10
18
  },
11
19
  sales: {
12
20
  id: 'sales',
@@ -28,12 +36,6 @@ export const accessTestOrganizationModel = {
28
36
  }
29
37
  }
30
38
  },
31
- projects: {
32
- id: 'projects',
33
- label: 'Projects',
34
- lifecycle: 'active',
35
- order: 30
36
- },
37
39
  clients: {
38
40
  id: 'clients',
39
41
  label: 'Clients',
@@ -114,7 +114,6 @@ describe('client API schemas', () => {
114
114
  source: 'word_of_mouth',
115
115
  metadata: {
116
116
  externalProjectSlug: 'developer-workspace-slug',
117
- workspacePath: 'client-workspace',
118
117
  campaignSlug: 'byron-for-irvine'
119
118
  }
120
119
  }).success
@@ -159,20 +159,15 @@ export class GmailAdapter implements BaseIntegrationAdapter {
159
159
  requestBody: {
160
160
  raw: encodedMessage
161
161
  }
162
- })
163
-
164
- if (context?.logger) {
165
- console.log('[GmailAdapter] Email sent:', {
166
- organizationId: context.organizationId,
167
- executionId: context.executionId,
168
- to: params.to,
169
- subject: params.subject,
170
- messageId: response.data.id,
171
- threadId: response.data.threadId
172
- })
173
- }
174
-
175
- return {
162
+ })
163
+
164
+ if (context?.logger) {
165
+ context.logger.info(
166
+ `[GmailAdapter] Email sent: organizationId=${context.organizationId} executionId=${context.executionId} messageId=${response.data.id} threadId=${response.data.threadId} to=${params.to}`
167
+ )
168
+ }
169
+
170
+ return {
176
171
  messageId: response.data.id!,
177
172
  threadId: response.data.threadId!
178
173
  }
@@ -1,3 +1,3 @@
1
1
  export const VERSION = {
2
- CURRENT: '1.12.18'
2
+ CURRENT: '1.12.19'
3
3
  }
@@ -6,19 +6,19 @@ import { type ScaffoldRegistry, type ScaffoldRegistryEntry, ScaffoldRegistrySche
6
6
 
7
7
  const MODULE_DIR = path.dirname(new URL(import.meta.url).pathname.replace(/^\/([A-Z]:)/, '$1'))
8
8
 
9
- export {
10
- ExternalSyncCategorySchema,
11
- ExternalSyncDeletePolicySchema,
12
- ExternalSyncOwnerSchema,
13
- ExternalSyncStrategySchema,
14
- ScaffoldEntryKindSchema,
9
+ export {
10
+ ExternalSyncCategorySchema,
11
+ ExternalSyncDeletePolicySchema,
12
+ ExternalSyncOwnerSchema,
13
+ ExternalSyncStrategySchema,
14
+ ScaffoldEntryKindSchema,
15
15
  ScaffoldRegistrySchema
16
16
  } from './schema'
17
- export type {
18
- ExternalSyncCategory,
19
- ExternalSyncDeletePolicy,
20
- ExternalSyncOwner,
21
- ExternalSyncStrategy,
17
+ export type {
18
+ ExternalSyncCategory,
19
+ ExternalSyncDeletePolicy,
20
+ ExternalSyncOwner,
21
+ ExternalSyncStrategy,
22
22
  ScaffoldEntryKind,
23
23
  ScaffoldRef,
24
24
  ScaffoldRegistry,
@@ -46,13 +46,24 @@ export const ExternalSyncStrategySchema = z.enum([
46
46
 
47
47
  export type ExternalSyncStrategy = z.infer<typeof ExternalSyncStrategySchema>
48
48
 
49
- export const ExternalSyncDeletePolicySchema = z.enum(['none', 'manifest-only'])
50
-
51
- export type ExternalSyncDeletePolicy = z.infer<typeof ExternalSyncDeletePolicySchema>
52
-
53
- // ---------------------------------------------------------------------------
54
- // Scaffold reference (a single downstream artifact that needs attention)
55
- // ---------------------------------------------------------------------------
49
+ export const ExternalSyncDeletePolicySchema = z.enum(['none', 'manifest-only'])
50
+
51
+ export type ExternalSyncDeletePolicy = z.infer<typeof ExternalSyncDeletePolicySchema>
52
+
53
+ export const ExternalSyncLaneSeveritySchema = z.enum(['critical-manual-merge', 'optional-feature-selection'])
54
+
55
+ export type ExternalSyncLaneSeverity = z.infer<typeof ExternalSyncLaneSeveritySchema>
56
+
57
+ export const ExternalSyncLaneSeverityAnnotationSchema = z.object({
58
+ path: z.string().min(1),
59
+ severity: ExternalSyncLaneSeveritySchema
60
+ })
61
+
62
+ export type ExternalSyncLaneSeverityAnnotation = z.infer<typeof ExternalSyncLaneSeverityAnnotationSchema>
63
+
64
+ // ---------------------------------------------------------------------------
65
+ // Scaffold reference (a single downstream artifact that needs attention)
66
+ // ---------------------------------------------------------------------------
56
67
 
57
68
  export const ScaffoldRefSchema = z.object({
58
69
  /**
@@ -82,7 +93,7 @@ export const ScaffoldRegistryEntrySchema = z
82
93
  .object({
83
94
  /**
84
95
  * Stable slug identifier for this entry (kebab-case).
85
- * Referenced by hooks, CI checks, and the /scaffold verify skill.
96
+ * Referenced by hooks, CI checks, and the /scaffold heal skill.
86
97
  */
87
98
  id: z
88
99
  .string()
@@ -140,10 +151,17 @@ export const ScaffoldRegistryEntrySchema = z
140
151
  /**
141
152
  * Optional delete behavior for managed external sync surfaces.
142
153
  */
143
- delete_policy: ExternalSyncDeletePolicySchema.optional(),
144
-
145
- /**
146
- * Free-form notes. Required when kind is "other".
154
+ delete_policy: ExternalSyncDeletePolicySchema.optional(),
155
+
156
+ /**
157
+ * Optional sync-lane severity tags for project-relative external sync
158
+ * paths. Used by sync-apply lane routing only; classification ownership
159
+ * still comes from category/strategy/delete_policy.
160
+ */
161
+ sync_lane_severity: z.array(ExternalSyncLaneSeverityAnnotationSchema).optional(),
162
+
163
+ /**
164
+ * Free-form notes. Required when kind is "other".
147
165
  */
148
166
  notes: z.string().optional(),
149
167