@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 +1 -1
- package/src/auth/__tests__/access-test-fixtures.ts +9 -7
- package/src/business/clients/api-schemas.test.ts +0 -1
- package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-adapter.ts +9 -14
- package/src/platform/constants/versions.ts +1 -1
- package/src/scaffold-registry/index.ts +11 -11
- package/src/scaffold-registry/schema.ts +30 -12
package/package.json
CHANGED
|
@@ -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',
|
|
@@ -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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
}
|
|
@@ -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
|
-
|
|
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
|
|
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
|
-
*
|
|
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
|
|