@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.
Files changed (120) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/__tests__/behavioral/AddingADependency.test.js +2 -2
  3. package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
  4. package/build/__tests__/behavioral/BlockingCommands.test.js +2 -2
  5. package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
  6. package/build/__tests__/behavioral/DeployingASkill.test.js +10 -10
  7. package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
  8. package/build/__tests__/behavioral/DeployingToSandbox.test.js +1 -1
  9. package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
  10. package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js +5 -5
  11. package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
  12. package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js +2 -2
  13. package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js.map +1 -1
  14. package/build/__tests__/behavioral/LoggingInAsASkill.test.js +2 -2
  15. package/build/__tests__/behavioral/LoggingInAsASkill.test.js.map +1 -1
  16. package/build/__tests__/behavioral/RebuildingASkill.test.js +1 -1
  17. package/build/__tests__/behavioral/RebuildingASkill.test.js.map +1 -1
  18. package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js +1 -1
  19. package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
  20. package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js +1 -1
  21. package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
  22. package/build/__tests__/behavioral/TestingAConversation.test.js +1 -1
  23. package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
  24. package/build/__tests__/behavioral/errors/SettingUpErrors.test.js +1 -1
  25. package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
  26. package/build/__tests__/behavioral/events/CreatingAListener.test.js +2 -2
  27. package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
  28. package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +1 -1
  29. package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
  30. package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +2 -2
  31. package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
  32. package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js +1 -1
  33. package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
  34. package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +1 -1
  35. package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
  36. package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +4 -10
  37. package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
  38. package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +6 -12
  39. package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
  40. package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js +1 -1
  41. package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
  42. package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js +1 -1
  43. package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
  44. package/build/__tests__/behavioral/skill/RegisteringASkill.test.js +2 -2
  45. package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
  46. package/build/__tests__/behavioral/stores/CreatingADataStore.test.js +1 -1
  47. package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
  48. package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js +1 -1
  49. package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
  50. package/build/__tests__/behavioral/tests/RunningTests.test.js +1 -1
  51. package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
  52. package/build/__tests__/behavioral/tests/SettingUpTests.test.js +1 -1
  53. package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
  54. package/build/__tests__/behavioral/views/CreatingASkillView.test.js +1 -1
  55. package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
  56. package/build/__tests__/behavioral/views/CreatingATheme.test.js +1 -1
  57. package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
  58. package/build/__tests__/implementation/ActionExecuter.test.js +3 -9
  59. package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
  60. package/build/__tests__/implementation/ActionExecuter3.test.js +1 -1
  61. package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
  62. package/build/__tests__/implementation/ActionExecuter4.test.js +1 -1
  63. package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
  64. package/build/__tests__/implementation/BulkImporting.test.js +3 -3
  65. package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
  66. package/build/__tests__/implementation/DataStoreStore.test.js +2 -2
  67. package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
  68. package/build/__tests__/implementation/EventStore.test.js +2 -2
  69. package/build/__tests__/implementation/EventStore.test.js.map +1 -1
  70. package/build/__tests__/implementation/SchemaStore.test.js +8 -14
  71. package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
  72. package/build/__tests__/implementation/SettingUpANodeModule.test.js +1 -1
  73. package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
  74. package/build/__tests__/implementation/SkillStore.test.js +4 -4
  75. package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
  76. package/build/__tests__/implementation/TestRunner.test.js +1 -1
  77. package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
  78. package/build/features/schema/stores/SchemaStore.d.ts +16 -0
  79. package/build/features/schema/stores/SchemaStore.js +21 -10
  80. package/build/features/schema/stores/SchemaStore.js.map +1 -1
  81. package/package.json +33 -33
  82. package/src/__tests__/behavioral/AddingADependency.test.ts +3 -3
  83. package/src/__tests__/behavioral/BlockingCommands.test.ts +3 -3
  84. package/src/__tests__/behavioral/DeployingASkill.test.ts +11 -11
  85. package/src/__tests__/behavioral/DeployingToSandbox.test.ts +2 -2
  86. package/src/__tests__/behavioral/EnablingAndDisablingCache.test.ts +6 -6
  87. package/src/__tests__/behavioral/InstallingASkillAtAnOrg.test.ts +3 -3
  88. package/src/__tests__/behavioral/LoggingInAsASkill.test.ts +3 -3
  89. package/src/__tests__/behavioral/RebuildingASkill.test.ts +2 -2
  90. package/src/__tests__/behavioral/SettingLogTransportsInASkill.test.ts +2 -2
  91. package/src/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.ts +2 -2
  92. package/src/__tests__/behavioral/TestingAConversation.test.ts +1 -1
  93. package/src/__tests__/behavioral/errors/SettingUpErrors.test.ts +2 -2
  94. package/src/__tests__/behavioral/events/CreatingAListener.test.ts +3 -3
  95. package/src/__tests__/behavioral/events/CreatingAnEvent.test.ts +2 -2
  96. package/src/__tests__/behavioral/events/SkillEmitsBootEvents.test.ts +3 -3
  97. package/src/__tests__/behavioral/person/LoggingInAsPerson.test.ts +2 -2
  98. package/src/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.ts +2 -2
  99. package/src/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.ts +1 -1
  100. package/src/__tests__/behavioral/schemas/KeepingSchemasInSync.test.ts +4 -4
  101. package/src/__tests__/behavioral/schemas/SettingUpSchemas.test.ts +2 -2
  102. package/src/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.ts +2 -2
  103. package/src/__tests__/behavioral/skill/RegisteringASkill.test.ts +3 -3
  104. package/src/__tests__/behavioral/stores/CreatingADataStore.test.ts +2 -2
  105. package/src/__tests__/behavioral/stores/KeepingDataStoresInSync.test.ts +2 -2
  106. package/src/__tests__/behavioral/tests/RunningTests.test.ts +2 -2
  107. package/src/__tests__/behavioral/tests/SettingUpTests.test.ts +2 -2
  108. package/src/__tests__/behavioral/views/CreatingASkillView.test.ts +2 -2
  109. package/src/__tests__/behavioral/views/CreatingATheme.test.ts +2 -2
  110. package/src/__tests__/implementation/ActionExecuter.test.ts +1 -1
  111. package/src/__tests__/implementation/ActionExecuter3.test.ts +2 -2
  112. package/src/__tests__/implementation/ActionExecuter4.test.ts +2 -2
  113. package/src/__tests__/implementation/BulkImporting.test.ts +4 -4
  114. package/src/__tests__/implementation/DataStoreStore.test.ts +3 -3
  115. package/src/__tests__/implementation/EventStore.test.ts +3 -3
  116. package/src/__tests__/implementation/SchemaStore.test.ts +6 -6
  117. package/src/__tests__/implementation/SettingUpANodeModule.test.ts +2 -2
  118. package/src/__tests__/implementation/SkillStore.test.ts +5 -5
  119. package/src/__tests__/implementation/TestRunner.test.ts +2 -2
  120. 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 * as coreSchemas from '@sprucelabs/spruce-core-schemas'
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 ?? '**UNKWOWN**',
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 ?? '**UNKWOWN**',
249
+ file: err?.options?.file ?? '**UNKNOWN**',
218
250
  originalError: err?.originalError ?? err,
219
251
  })
220
252
  }