@sprucelabs/spruce-cli 15.2.6 → 15.2.7
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/CHANGELOG.md +8 -0
- package/build/__tests__/behavioral/AddingADependency.test.js +2 -2
- package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
- package/build/__tests__/behavioral/BlockingCommands.test.js +2 -2
- package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingASkill.test.js +10 -10
- package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js +5 -5
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js +2 -2
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js +2 -2
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/RebuildingASkill.test.js +1 -1
- package/build/__tests__/behavioral/RebuildingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js +1 -1
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js +1 -1
- package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js +1 -1
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +2 -2
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +2 -2
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js +1 -1
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +4 -10
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +6 -12
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js +1 -1
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js +2 -2
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js +1 -1
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js +1 -1
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js +1 -1
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingATheme.test.js +1 -1
- package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter.test.js +3 -9
- package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter3.test.js +1 -1
- package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter4.test.js +1 -1
- package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +3 -3
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/DataStoreStore.test.js +2 -2
- package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
- package/build/__tests__/implementation/EventStore.test.js +2 -2
- package/build/__tests__/implementation/EventStore.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaStore.test.js +8 -14
- package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
- package/build/__tests__/implementation/SettingUpANodeModule.test.js +1 -1
- package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
- package/build/__tests__/implementation/SkillStore.test.js +4 -4
- package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
- package/build/__tests__/implementation/TestRunner.test.js +1 -1
- package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
- package/build/features/schema/stores/SchemaStore.d.ts +16 -0
- package/build/features/schema/stores/SchemaStore.js +21 -10
- package/build/features/schema/stores/SchemaStore.js.map +1 -1
- package/package.json +33 -33
- package/src/__tests__/behavioral/AddingADependency.test.ts +3 -3
- package/src/__tests__/behavioral/BlockingCommands.test.ts +3 -3
- package/src/__tests__/behavioral/DeployingASkill.test.ts +11 -11
- package/src/__tests__/behavioral/DeployingToSandbox.test.ts +2 -2
- package/src/__tests__/behavioral/EnablingAndDisablingCache.test.ts +6 -6
- package/src/__tests__/behavioral/InstallingASkillAtAnOrg.test.ts +3 -3
- package/src/__tests__/behavioral/LoggingInAsASkill.test.ts +3 -3
- package/src/__tests__/behavioral/RebuildingASkill.test.ts +2 -2
- package/src/__tests__/behavioral/SettingLogTransportsInASkill.test.ts +2 -2
- package/src/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.ts +2 -2
- package/src/__tests__/behavioral/TestingAConversation.test.ts +1 -1
- package/src/__tests__/behavioral/errors/SettingUpErrors.test.ts +2 -2
- package/src/__tests__/behavioral/events/CreatingAListener.test.ts +3 -3
- package/src/__tests__/behavioral/events/CreatingAnEvent.test.ts +2 -2
- package/src/__tests__/behavioral/events/SkillEmitsBootEvents.test.ts +3 -3
- package/src/__tests__/behavioral/person/LoggingInAsPerson.test.ts +2 -2
- package/src/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.ts +2 -2
- package/src/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/KeepingSchemasInSync.test.ts +4 -4
- package/src/__tests__/behavioral/schemas/SettingUpSchemas.test.ts +2 -2
- package/src/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.ts +2 -2
- package/src/__tests__/behavioral/skill/RegisteringASkill.test.ts +3 -3
- package/src/__tests__/behavioral/stores/CreatingADataStore.test.ts +2 -2
- package/src/__tests__/behavioral/stores/KeepingDataStoresInSync.test.ts +2 -2
- package/src/__tests__/behavioral/tests/RunningTests.test.ts +2 -2
- package/src/__tests__/behavioral/tests/SettingUpTests.test.ts +2 -2
- package/src/__tests__/behavioral/views/CreatingASkillView.test.ts +2 -2
- package/src/__tests__/behavioral/views/CreatingATheme.test.ts +2 -2
- package/src/__tests__/implementation/ActionExecuter.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter3.test.ts +2 -2
- package/src/__tests__/implementation/ActionExecuter4.test.ts +2 -2
- package/src/__tests__/implementation/BulkImporting.test.ts +4 -4
- package/src/__tests__/implementation/DataStoreStore.test.ts +3 -3
- package/src/__tests__/implementation/EventStore.test.ts +3 -3
- package/src/__tests__/implementation/SchemaStore.test.ts +6 -6
- package/src/__tests__/implementation/SettingUpANodeModule.test.ts +2 -2
- package/src/__tests__/implementation/SkillStore.test.ts +5 -5
- package/src/__tests__/implementation/TestRunner.test.ts +2 -2
- package/src/features/schema/stores/SchemaStore.ts +35 -3
|
@@ -6,7 +6,22 @@ import {
|
|
|
6
6
|
normalizeSchemaToIdWithVersion,
|
|
7
7
|
SchemaError,
|
|
8
8
|
} from '@sprucelabs/schema'
|
|
9
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
personSchema,
|
|
11
|
+
profileImageSchema,
|
|
12
|
+
skillSchema,
|
|
13
|
+
skillCreatorSchema,
|
|
14
|
+
locationSchema,
|
|
15
|
+
organizationSchema,
|
|
16
|
+
personOrganizationSchema,
|
|
17
|
+
personLocationSchema,
|
|
18
|
+
roleSchema,
|
|
19
|
+
messageSchema,
|
|
20
|
+
messageSourceSchema,
|
|
21
|
+
messageTargetSchema,
|
|
22
|
+
sendMessageSchema,
|
|
23
|
+
fullMessageChoicesSchema,
|
|
24
|
+
} from '@sprucelabs/spruce-core-schemas'
|
|
10
25
|
import { eventResponseUtil } from '@sprucelabs/spruce-event-utils'
|
|
11
26
|
import { versionUtil } from '@sprucelabs/spruce-skill-utils'
|
|
12
27
|
import { diskUtil } from '@sprucelabs/spruce-skill-utils'
|
|
@@ -17,6 +32,23 @@ import SpruceError from '../../../errors/SpruceError'
|
|
|
17
32
|
import AbstractStore from '../../../stores/AbstractStore'
|
|
18
33
|
import { InternalUpdateHandler } from '../../../types/cli.types'
|
|
19
34
|
|
|
35
|
+
export const coreSchemas = {
|
|
36
|
+
personSchema,
|
|
37
|
+
profileImageSchema,
|
|
38
|
+
skillSchema,
|
|
39
|
+
skillCreatorSchema,
|
|
40
|
+
locationSchema,
|
|
41
|
+
organizationSchema,
|
|
42
|
+
personOrganizationSchema,
|
|
43
|
+
personLocationSchema,
|
|
44
|
+
roleSchema,
|
|
45
|
+
messageSchema,
|
|
46
|
+
messageSourceSchema,
|
|
47
|
+
messageTargetSchema,
|
|
48
|
+
sendMessageSchema,
|
|
49
|
+
fullMessageChoicesSchema,
|
|
50
|
+
}
|
|
51
|
+
|
|
20
52
|
interface AddonItem {
|
|
21
53
|
path: string
|
|
22
54
|
registration: FieldRegistration
|
|
@@ -205,7 +237,7 @@ export default class SchemaStore extends AbstractStore {
|
|
|
205
237
|
errors.push(
|
|
206
238
|
new SpruceError({
|
|
207
239
|
code: 'SCHEMA_FAILED_TO_IMPORT',
|
|
208
|
-
file: err?.options?.file ?? '**
|
|
240
|
+
file: err?.options?.file ?? '**UNKNOWN**',
|
|
209
241
|
originalError: err?.originalError ?? err,
|
|
210
242
|
})
|
|
211
243
|
)
|
|
@@ -214,7 +246,7 @@ export default class SchemaStore extends AbstractStore {
|
|
|
214
246
|
} catch (err: any) {
|
|
215
247
|
throw new SpruceError({
|
|
216
248
|
code: 'SCHEMA_FAILED_TO_IMPORT',
|
|
217
|
-
file: err?.options?.file ?? '**
|
|
249
|
+
file: err?.options?.file ?? '**UNKNOWN**',
|
|
218
250
|
originalError: err?.originalError ?? err,
|
|
219
251
|
})
|
|
220
252
|
}
|