@sprucelabs/spruce-cli 19.1.41 → 19.2.0

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 (602) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/build/.spruce/errors/errors.types.d.ts +19 -0
  3. package/build/.spruce/errors/errors.types.js.map +1 -1
  4. package/build/.spruce/errors/options.types.d.ts +4 -1
  5. package/build/.spruce/errors/options.types.js.map +1 -1
  6. package/build/.spruce/errors/spruceCli/actionCancelled.schema.js.map +1 -1
  7. package/build/.spruce/errors/spruceCli/bootError.schema.js.map +1 -1
  8. package/build/.spruce/errors/spruceCli/buildFailed.schema.js.map +1 -1
  9. package/build/.spruce/errors/spruceCli/cacheNotEnabled.schema.js.map +1 -1
  10. package/build/.spruce/errors/spruceCli/commandAborted.schema.js.map +1 -1
  11. package/build/.spruce/errors/spruceCli/commandBlocked.schema.js.map +1 -1
  12. package/build/.spruce/errors/spruceCli/commandNotImplemented.schema.js.map +1 -1
  13. package/build/.spruce/errors/spruceCli/createAutoloaderFailed.schema.js.map +1 -1
  14. package/build/.spruce/errors/spruceCli/dependencyExists.schema.js.map +1 -1
  15. package/build/.spruce/errors/spruceCli/deployFailed.schema.js.map +1 -1
  16. package/build/.spruce/errors/spruceCli/directoryEmpty.schema.js.map +1 -1
  17. package/build/.spruce/errors/spruceCli/directoryNotSkill.schema.js.map +1 -1
  18. package/build/.spruce/errors/spruceCli/dockerNotStarted.schema.js.map +1 -1
  19. package/build/.spruce/errors/spruceCli/executingCommandFailed.schema.js.map +1 -1
  20. package/build/.spruce/errors/spruceCli/failedToImport.schema.js.map +1 -1
  21. package/build/.spruce/errors/spruceCli/featureNotInstalled.schema.js.map +1 -1
  22. package/build/.spruce/errors/spruceCli/fileExists.schema.js.map +1 -1
  23. package/build/.spruce/errors/spruceCli/generic.schema.js.map +1 -1
  24. package/build/.spruce/errors/spruceCli/invalidCommand.schema.js.map +1 -1
  25. package/build/.spruce/errors/spruceCli/invalidEventContract.schema.js.map +1 -1
  26. package/build/.spruce/errors/spruceCli/invalidFeatureCode.schema.js.map +1 -1
  27. package/build/.spruce/errors/spruceCli/invalidTestDirectory.schema.js.map +1 -1
  28. package/build/.spruce/errors/spruceCli/lintFailed.schema.js.map +1 -1
  29. package/build/.spruce/errors/spruceCli/mercuryResponseError.schema.js.map +1 -1
  30. package/build/.spruce/errors/spruceCli/missingDependencies.schema.js.map +1 -1
  31. package/build/.spruce/errors/spruceCli/missingDependenciesDependency.schema.js.map +1 -1
  32. package/build/.spruce/errors/spruceCli/noOrganizationsFound.schema.js.map +1 -1
  33. package/build/.spruce/errors/spruceCli/noSkillsRegistered.schema.js.map +1 -1
  34. package/build/.spruce/errors/spruceCli/notImplemented.schema.js.map +1 -1
  35. package/build/.spruce/errors/spruceCli/notLoggedIn.schema.js.map +1 -1
  36. package/build/.spruce/errors/spruceCli/schemaExists.schema.js.map +1 -1
  37. package/build/.spruce/errors/spruceCli/schemaFailedToImport.schema.js.map +1 -1
  38. package/build/.spruce/errors/spruceCli/schemaTemplateItemBuildingFailed.schema.js.map +1 -1
  39. package/build/.spruce/errors/spruceCli/skillNotFound.schema.js.map +1 -1
  40. package/build/.spruce/errors/spruceCli/skillNotRegistered.schema.js.map +1 -1
  41. package/build/.spruce/errors/spruceCli/skillViewExists.schema.js.map +1 -1
  42. package/build/.spruce/errors/spruceCli/storeExists.schema.js.map +1 -1
  43. package/build/.spruce/errors/spruceCli/testFailed.schema.js.map +1 -1
  44. package/build/.spruce/errors/spruceCli/themeExists.schema.js.map +1 -1
  45. package/build/.spruce/errors/spruceCli/transportAlreadyExists.schema.js.map +1 -1
  46. package/build/.spruce/errors/spruceCli/viewPluginAlreadyExists.schema.d.ts +3 -0
  47. package/build/.spruce/errors/spruceCli/viewPluginAlreadyExists.schema.js +23 -0
  48. package/build/.spruce/errors/spruceCli/viewPluginAlreadyExists.schema.js.map +1 -0
  49. package/build/.spruce/errors/spruceCli/vscodeNotInstalled.schema.js.map +1 -1
  50. package/build/.spruce/events/events.contract.js.map +1 -1
  51. package/build/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.js.map +1 -1
  52. package/build/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.js.map +1 -1
  53. package/build/.spruce/events/heartwood/getActiveTheme.v2021_02_11.contract.js.map +1 -1
  54. package/build/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.js.map +1 -1
  55. package/build/.spruce/events/heartwood/listViews.v2021_02_11.contract.js.map +1 -1
  56. package/build/.spruce/events/heartwood/registerDashboardCards.v2021_02_11.contract.js.map +1 -1
  57. package/build/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.js.map +1 -1
  58. package/build/.spruce/events/heartwood/upsertTheme.v2021_02_11.contract.js.map +1 -1
  59. package/build/.spruce/events/spruceCli/registerSkillViews.v2021_04_11.contract.js.map +1 -1
  60. package/build/.spruce/schemas/fields/fieldClassMap.js.map +1 -1
  61. package/build/.spruce/schemas/fields/fields.types.js.map +1 -1
  62. package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitPayload.schema.js.map +1 -1
  63. package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitTarget.schema.js.map +1 -1
  64. package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitTargetAndPayload.schema.js.map +1 -1
  65. package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitPayload.schema.js.map +1 -1
  66. package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitTarget.schema.js.map +1 -1
  67. package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitTargetAndPayload.schema.js.map +1 -1
  68. package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlResponsePayload.schema.js.map +1 -1
  69. package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeEmitTarget.schema.js.map +1 -1
  70. package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeEmitTargetAndPayload.schema.js.map +1 -1
  71. package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeResponsePayload.schema.js.map +1 -1
  72. package/build/.spruce/schemas/heartwood/v2021_02_11/getSkillViewsEmitTargetAndPayload.schema.js.map +1 -1
  73. package/build/.spruce/schemas/heartwood/v2021_02_11/getSkillViewsResponsePayload.schema.js.map +1 -1
  74. package/build/.spruce/schemas/heartwood/v2021_02_11/getViewControllersEmitTarget.schema.js.map +1 -1
  75. package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResponsePayload.schema.js.map +1 -1
  76. package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResult.schema.js.map +1 -1
  77. package/build/.spruce/schemas/heartwood/v2021_02_11/registerDashboardCardsResponsePayload.schema.js.map +1 -1
  78. package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsEmitPayload.schema.js.map +1 -1
  79. package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsEmitTargetAndPayload.schema.js.map +1 -1
  80. package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsResponsePayload.schema.js.map +1 -1
  81. package/build/.spruce/schemas/heartwood/v2021_02_11/theme.schema.js.map +1 -1
  82. package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitPayload.schema.js.map +1 -1
  83. package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitTarget.schema.js.map +1 -1
  84. package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitTargetAndPayload.schema.js.map +1 -1
  85. package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeResponsePayload.schema.js.map +1 -1
  86. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/theme.schema.js.map +1 -1
  87. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/themeProps.schema.js.map +1 -1
  88. package/build/.spruce/schemas/schemas.types.js.map +1 -1
  89. package/build/.spruce/schemas/spruce/v2020_07_22/choice.schema.js.map +1 -1
  90. package/build/.spruce/schemas/spruce/v2020_07_22/link.schema.js.map +1 -1
  91. package/build/.spruce/schemas/spruce/v2020_07_22/location.schema.js.map +1 -1
  92. package/build/.spruce/schemas/spruce/v2020_07_22/message.schema.js.map +1 -1
  93. package/build/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js.map +1 -1
  94. package/build/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js.map +1 -1
  95. package/build/.spruce/schemas/spruce/v2020_07_22/organization.schema.js.map +1 -1
  96. package/build/.spruce/schemas/spruce/v2020_07_22/person.schema.js.map +1 -1
  97. package/build/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js.map +1 -1
  98. package/build/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js.map +1 -1
  99. package/build/.spruce/schemas/spruce/v2020_07_22/role.schema.js.map +1 -1
  100. package/build/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js.map +1 -1
  101. package/build/.spruce/schemas/spruce/v2020_07_22/skill.schema.js.map +1 -1
  102. package/build/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js.map +1 -1
  103. package/build/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.js.map +1 -1
  104. package/build/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.js.map +1 -1
  105. package/build/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.js.map +1 -1
  106. package/build/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.js.map +1 -1
  107. package/build/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.js.map +1 -1
  108. package/build/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.js.map +1 -1
  109. package/build/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.js.map +1 -1
  110. package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.js.map +1 -1
  111. package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.js.map +1 -1
  112. package/build/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.js.map +1 -1
  113. package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js.map +1 -1
  114. package/build/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.js.map +1 -1
  115. package/build/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.js.map +1 -1
  116. package/build/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.js.map +1 -1
  117. package/build/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.js.map +1 -1
  118. package/build/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.js.map +1 -1
  119. package/build/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.js.map +1 -1
  120. package/build/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.js.map +1 -1
  121. package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js.map +1 -1
  122. package/build/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.js.map +1 -1
  123. package/build/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.js.map +1 -1
  124. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.js.map +1 -1
  125. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.js.map +1 -1
  126. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.js.map +1 -1
  127. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.js.map +1 -1
  128. package/build/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.js.map +1 -1
  129. package/build/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.js.map +1 -1
  130. package/build/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.js.map +1 -1
  131. package/build/.spruce/schemas/spruceEventUtils/v2021_09_13/eventSource.schema.js.map +1 -1
  132. package/build/.spruce/skill.types.js.map +1 -1
  133. package/build/GlobalEmitter.js.map +1 -1
  134. package/build/InFlightEntertainment.js.map +1 -1
  135. package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
  136. package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
  137. package/build/__tests__/behavioral/BootingTheCli.test.js.map +1 -1
  138. package/build/__tests__/behavioral/BootingWithBadFiles.test.js.map +1 -1
  139. package/build/__tests__/behavioral/CreatingAConversationTopic.test.js.map +1 -1
  140. package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
  141. package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
  142. package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
  143. package/build/__tests__/behavioral/GettingCliVersion.test.js.map +1 -1
  144. package/build/__tests__/behavioral/ManagingDependencies.test.js.map +1 -1
  145. package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js.map +1 -1
  146. package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js.map +1 -1
  147. package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js.map +1 -1
  148. package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
  149. package/build/__tests__/behavioral/SettingRemote.test.js.map +1 -1
  150. package/build/__tests__/behavioral/SettingUpVscode.test.js.map +1 -1
  151. package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
  152. package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js.map +1 -1
  153. package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js.map +1 -1
  154. package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js.map +1 -1
  155. package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
  156. package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js.map +1 -1
  157. package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
  158. package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
  159. package/build/__tests__/behavioral/events/EventWriter.test.js.map +1 -1
  160. package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js.map +1 -1
  161. package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
  162. package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js.map +1 -1
  163. package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js.map +1 -1
  164. package/build/__tests__/behavioral/events/ListeningToCoreEvents.test.js.map +1 -1
  165. package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js.map +1 -1
  166. package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js.map +1 -1
  167. package/build/__tests__/behavioral/events/SettingUpEvents.test.js.map +1 -1
  168. package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
  169. package/build/__tests__/behavioral/events/SyncingEventsOnlyFromDependencies.test.js.map +1 -1
  170. package/build/__tests__/behavioral/node/CreatingANodeModule.test.js.map +1 -1
  171. package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
  172. package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js.map +1 -1
  173. package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js.map +1 -1
  174. package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js.map +1 -1
  175. package/build/__tests__/behavioral/permissions/PermissionStore.test.js.map +1 -1
  176. package/build/__tests__/behavioral/permissions/PermissionWriter.test.js.map +1 -1
  177. package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js.map +1 -1
  178. package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js.map +1 -1
  179. package/build/__tests__/behavioral/permissions/support/generateShortAlphaId.js.map +1 -1
  180. package/build/__tests__/behavioral/permissions/support/renderPermissionTestFile.js.map +1 -1
  181. package/build/__tests__/behavioral/permissions/support/sortPermissionContracts.js.map +1 -1
  182. package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
  183. package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js.map +1 -1
  184. package/build/__tests__/behavioral/polish/SettingUpPolish.test.js.map +1 -1
  185. package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
  186. package/build/__tests__/behavioral/schemas/CreatingSchemasWithGenerics.test.js.map +1 -1
  187. package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js.map +1 -1
  188. package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
  189. package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js.map +1 -1
  190. package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js.map +1 -1
  191. package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
  192. package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
  193. package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
  194. package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
  195. package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
  196. package/build/__tests__/behavioral/skill/BootingASkill.test.js.map +1 -1
  197. package/build/__tests__/behavioral/skill/CreatingASkill.test.js.map +1 -1
  198. package/build/__tests__/behavioral/skill/InstallingASkillAtAnOrg.test.js.map +1 -1
  199. package/build/__tests__/behavioral/skill/LoggingInAsASkill.test.js.map +1 -1
  200. package/build/__tests__/behavioral/skill/RebuildingASkill.test.js.map +1 -1
  201. package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
  202. package/build/__tests__/behavioral/skill/SettingUpASkill.test.js.map +1 -1
  203. package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
  204. package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
  205. package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
  206. package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
  207. package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js.map +1 -1
  208. package/build/__tests__/behavioral/tests/SettingUpASkillForTesting.test.js.map +1 -1
  209. package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
  210. package/build/__tests__/behavioral/tests/TestReporterSettingsRemembered.test.js.map +1 -1
  211. package/build/__tests__/behavioral/tests/TestingDataStores.test.js.map +1 -1
  212. package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js.map +1 -1
  213. package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js.map +1 -1
  214. package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js.map +1 -1
  215. package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js.map +1 -1
  216. package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js.map +1 -1
  217. package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js.map +1 -1
  218. package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js.map +1 -1
  219. package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js.map +1 -1
  220. package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js.map +1 -1
  221. package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js.map +1 -1
  222. package/build/__tests__/behavioral/views/CreatingASkillView.test.d.ts +1 -1
  223. package/build/__tests__/behavioral/views/CreatingASkillView.test.js +6 -6
  224. package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
  225. package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
  226. package/build/__tests__/behavioral/views/KeepingViewsInSync.test.d.ts +1 -1
  227. package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +6 -6
  228. package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
  229. package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js.map +1 -1
  230. package/build/__tests__/behavioral/views/SettingUpViews.test.js.map +1 -1
  231. package/build/__tests__/behavioral/views/TestingViewControllers.test.js.map +1 -1
  232. package/build/__tests__/behavioral/views/WatchingSkillViews.test.js.map +1 -1
  233. package/build/__tests__/behavioral/views/plugins/CreatingAViewPlugin.test.d.ts +23 -0
  234. package/build/__tests__/behavioral/views/plugins/CreatingAViewPlugin.test.js +355 -0
  235. package/build/__tests__/behavioral/views/plugins/CreatingAViewPlugin.test.js.map +1 -0
  236. package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js.map +1 -1
  237. package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
  238. package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
  239. package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
  240. package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
  241. package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
  242. package/build/__tests__/implementation/BuildService.test.js.map +1 -1
  243. package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
  244. package/build/__tests__/implementation/CachingImports.test.js.map +1 -1
  245. package/build/__tests__/implementation/CommandOptionBuilder.test.js.map +1 -1
  246. package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
  247. package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
  248. package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js.map +1 -1
  249. package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
  250. package/build/__tests__/implementation/EventStore.test.js.map +1 -1
  251. package/build/__tests__/implementation/EventTemplateItemBuilder.test.js.map +1 -1
  252. package/build/__tests__/implementation/FeatureCommandAttacher.test.js.map +1 -1
  253. package/build/__tests__/implementation/FeatureFixture.test.js.map +1 -1
  254. package/build/__tests__/implementation/FeatureInstaller.test.js.map +1 -1
  255. package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
  256. package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js.map +1 -1
  257. package/build/__tests__/implementation/GlobalEmitter.test.js.map +1 -1
  258. package/build/__tests__/implementation/Introspection.test.js.map +1 -1
  259. package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
  260. package/build/__tests__/implementation/LintService.test.js.map +1 -1
  261. package/build/__tests__/implementation/ListenerStore.test.js.map +1 -1
  262. package/build/__tests__/implementation/OnboardingScriptLoader.test.js.map +1 -1
  263. package/build/__tests__/implementation/OnboardingScriptPlayer.test.js.map +1 -1
  264. package/build/__tests__/implementation/OnboardingStore.test.js.map +1 -1
  265. package/build/__tests__/implementation/OrganizationStore.test.js.map +1 -1
  266. package/build/__tests__/implementation/ParentTestFinder.test.js.map +1 -1
  267. package/build/__tests__/implementation/PkgService.test.js.map +1 -1
  268. package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
  269. package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js.map +1 -1
  270. package/build/__tests__/implementation/SchemaValueTypeWriter.test.js.map +1 -1
  271. package/build/__tests__/implementation/ServiceFactory.test.js.map +1 -1
  272. package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
  273. package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
  274. package/build/__tests__/implementation/StoreFeature.test.js.map +1 -1
  275. package/build/__tests__/implementation/TestReporter.test.js.map +1 -1
  276. package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
  277. package/build/__tests__/implementation/ValueTypeMapping.test.js.map +1 -1
  278. package/build/__tests__/implementation/Widgets.test.js.map +1 -1
  279. package/build/__tests__/support/EventFaker.js.map +1 -1
  280. package/build/__tests__/support/onTestFileResult.js.map +1 -1
  281. package/build/__tests__/support/scripts/first.script.js.map +1 -1
  282. package/build/__tests__/support/scripts/second.script.js.map +1 -1
  283. package/build/__tests__/support/scripts/third.test.script.js.map +1 -1
  284. package/build/addons/filePrompt.addon.js.map +1 -1
  285. package/build/boot.js.map +1 -1
  286. package/build/cli/Cli.js.map +1 -1
  287. package/build/components/AbstractComponent.js.map +1 -1
  288. package/build/components/FormComponent.js.map +1 -1
  289. package/build/components/QuizComponent.js.map +1 -1
  290. package/build/constants.js.map +1 -1
  291. package/build/errors/SpruceError.js +3 -0
  292. package/build/errors/SpruceError.js.map +1 -1
  293. package/build/errors/actionCancelled.builder.js.map +1 -1
  294. package/build/errors/bootError.builder.js.map +1 -1
  295. package/build/errors/buildFailed.builder.js.map +1 -1
  296. package/build/errors/cacheNotEnabled.builder.js.map +1 -1
  297. package/build/errors/commandAborted.builder.js.map +1 -1
  298. package/build/errors/commandBlocked.builder.js.map +1 -1
  299. package/build/errors/commandNotImplemented.builder.js.map +1 -1
  300. package/build/errors/createAutoloaderFailed.builder.js.map +1 -1
  301. package/build/errors/dependencyExists.builder.js.map +1 -1
  302. package/build/errors/deployFailed.builder.js.map +1 -1
  303. package/build/errors/directoryEmpty.builder.js.map +1 -1
  304. package/build/errors/directoryNotSkill.builder.js.map +1 -1
  305. package/build/errors/dockerNotStarted.builder.js.map +1 -1
  306. package/build/errors/executingCommandFailed.builder.js.map +1 -1
  307. package/build/errors/failedToImport.builder.js.map +1 -1
  308. package/build/errors/featureNotInstalled.builder.js.map +1 -1
  309. package/build/errors/fileExists.builder.js.map +1 -1
  310. package/build/errors/generic.builder.js.map +1 -1
  311. package/build/errors/invalidCommand.builder.js.map +1 -1
  312. package/build/errors/invalidEventContract.builder.js.map +1 -1
  313. package/build/errors/invalidFeatureCode.builder.js.map +1 -1
  314. package/build/errors/invalidTestDirectory.builder.js.map +1 -1
  315. package/build/errors/lintFailed.builder.js.map +1 -1
  316. package/build/errors/mercuryResponseError.builder.js.map +1 -1
  317. package/build/errors/missingDependencies.builder.js.map +1 -1
  318. package/build/errors/noOrganizationsFound.builder.js.map +1 -1
  319. package/build/errors/noSkillsRegistered.builder.js.map +1 -1
  320. package/build/errors/notImplemented.builder.js.map +1 -1
  321. package/build/errors/notLoggedIn.builder.js.map +1 -1
  322. package/build/errors/schemaExists.builder.js.map +1 -1
  323. package/build/errors/schemaFailedToImport.builder.js.map +1 -1
  324. package/build/errors/schemaTemplateItemBuildingFailed.builder.js.map +1 -1
  325. package/build/errors/skillNotFound.builder.js.map +1 -1
  326. package/build/errors/skillNotRegistered.builder.js.map +1 -1
  327. package/build/errors/skillViewExists.builder.js.map +1 -1
  328. package/build/errors/storeExists.builder.js.map +1 -1
  329. package/build/errors/testFailed.builder.js.map +1 -1
  330. package/build/errors/themeExists.builder.js.map +1 -1
  331. package/build/errors/transportAlreadyExists.builder.js.map +1 -1
  332. package/build/errors/viewPluginAlreadyExists.builder.d.ts +11 -0
  333. package/build/errors/viewPluginAlreadyExists.builder.js +18 -0
  334. package/build/errors/viewPluginAlreadyExists.builder.js.map +1 -0
  335. package/build/errors/vscodeNotInstalled.builder.js.map +1 -1
  336. package/build/features/AbstractAction.js.map +1 -1
  337. package/build/features/AbstractFeature.js.map +1 -1
  338. package/build/features/ActionExecuter.js.map +1 -1
  339. package/build/features/ActionFactory.js.map +1 -1
  340. package/build/features/ActionQuestionAsker.js.map +1 -1
  341. package/build/features/FeatureCommandAttacher.js.map +1 -1
  342. package/build/features/FeatureInstaller.js.map +1 -1
  343. package/build/features/FeatureInstallerFactory.js.map +1 -1
  344. package/build/features/OverrideActionDecorator.js.map +1 -1
  345. package/build/features/cache/CacheFeature.js.map +1 -1
  346. package/build/features/cache/actions/DisableAction.js.map +1 -1
  347. package/build/features/cache/actions/EnableAction.js.map +1 -1
  348. package/build/features/cache/constants.js.map +1 -1
  349. package/build/features/conversation/ConversationFeature.js.map +1 -1
  350. package/build/features/conversation/actions/CreateAction.js.map +1 -1
  351. package/build/features/conversation/actions/TestAction.js.map +1 -1
  352. package/build/features/conversation/stores/ConversationStore.js.map +1 -1
  353. package/build/features/conversation/writers/ConversationWriter.js.map +1 -1
  354. package/build/features/dependencies/DependencyFeature.js.map +1 -1
  355. package/build/features/dependencies/actions/AddAction.js.map +1 -1
  356. package/build/features/dependencies/actions/ManageAction.js.map +1 -1
  357. package/build/features/deploy/DeployFeature.js.map +1 -1
  358. package/build/features/deploy/actions/HerokuAction.js.map +1 -1
  359. package/build/features/deploy/writers/DeployWriter.js.map +1 -1
  360. package/build/features/error/ErrorFeature.js.map +1 -1
  361. package/build/features/error/ParentTestFinder.js.map +1 -1
  362. package/build/features/error/actions/CreateAction.js.map +1 -1
  363. package/build/features/error/actions/SyncAction.js.map +1 -1
  364. package/build/features/error/writers/ErrorWriter.js.map +1 -1
  365. package/build/features/event/EventFeature.js.map +1 -1
  366. package/build/features/event/actions/CreateAction.js.map +1 -1
  367. package/build/features/event/actions/ListenAction.js.map +1 -1
  368. package/build/features/event/actions/SetRemoteAction.js.map +1 -1
  369. package/build/features/event/actions/SyncAction.js.map +1 -1
  370. package/build/features/event/actions/SyncListenersAction.js.map +1 -1
  371. package/build/features/event/builders/EventContractBuilder.js.map +1 -1
  372. package/build/features/event/builders/ListenerTemplateItemBuilder.js.map +1 -1
  373. package/build/features/event/services/EventSettingsService.js.map +1 -1
  374. package/build/features/event/services/RemoteService.js.map +1 -1
  375. package/build/features/event/stores/EventStore.js.map +1 -1
  376. package/build/features/event/stores/ListenerStore.js.map +1 -1
  377. package/build/features/event/writers/EventWriter.js.map +1 -1
  378. package/build/features/eventContract/EventContractFeature.js.map +1 -1
  379. package/build/features/eventContract/actions/PullAction.js.map +1 -1
  380. package/build/features/feature.utilities.js.map +1 -1
  381. package/build/features/features.types.js.map +1 -1
  382. package/build/features/log/LogFeature.js.map +1 -1
  383. package/build/features/log/actions/CreateTransportAction.js.map +1 -1
  384. package/build/features/log/writers/LogWriter.js.map +1 -1
  385. package/build/features/node/NodeFeature.js.map +1 -1
  386. package/build/features/node/actions/CreateAction.js.map +1 -1
  387. package/build/features/node/actions/UpdateDependenciesAction.js.map +1 -1
  388. package/build/features/node/actions/UpgradeAction.js.map +1 -1
  389. package/build/features/node/writers/NodeWriter.js.map +1 -1
  390. package/build/features/onboard/OnboardFeature.js.map +1 -1
  391. package/build/features/onboard/ScriptLoader.js.map +1 -1
  392. package/build/features/onboard/ScriptPlayer.js.map +1 -1
  393. package/build/features/onboard/actions/OnboardAction.js.map +1 -1
  394. package/build/features/onboard/scripts/onboarding.first.script.js.map +1 -1
  395. package/build/features/onboard/scripts/onboarding.immersive.script.js.map +1 -1
  396. package/build/features/onboard/scripts/onboarding.returning.script.js.map +1 -1
  397. package/build/features/onboard/scripts/onboarding.short.script.js.map +1 -1
  398. package/build/features/onboard/scripts/todo/todo.create.skill.script.js.map +1 -1
  399. package/build/features/onboard/scripts/todo/todo.test.script.js.map +1 -1
  400. package/build/features/onboard/scripts/wrongCommand.script.js.map +1 -1
  401. package/build/features/onboard/stores/OnboardingStore.js.map +1 -1
  402. package/build/features/organization/OrganizationFeature.js.map +1 -1
  403. package/build/features/organization/actions/CreateAction.js.map +1 -1
  404. package/build/features/organization/actions/InstallAction.js.map +1 -1
  405. package/build/features/organization/stores/OrganizationStore.js.map +1 -1
  406. package/build/features/permission/PermissionFeature.js.map +1 -1
  407. package/build/features/permission/actions/CreateAction.js.map +1 -1
  408. package/build/features/permission/actions/SyncAction.js.map +1 -1
  409. package/build/features/permission/stores/PermissionStore.js.map +1 -1
  410. package/build/features/permission/writers/PermissionWriter.js.map +1 -1
  411. package/build/features/person/PersonFeature.js.map +1 -1
  412. package/build/features/person/actions/LoginAction.js.map +1 -1
  413. package/build/features/person/actions/LogoutAction.js.map +1 -1
  414. package/build/features/person/actions/WhoamiAction.js.map +1 -1
  415. package/build/features/polish/PolishFeature.js.map +1 -1
  416. package/build/features/polish/actions/SetupAction.js.map +1 -1
  417. package/build/features/polish/writers/PolishWriter.js.map +1 -1
  418. package/build/features/sandbox/SandboxFeature.js.map +1 -1
  419. package/build/features/sandbox/actions/SetupAction.js.map +1 -1
  420. package/build/features/sandbox/writers/SandboxWriter.js.map +1 -1
  421. package/build/features/schema/SchemaFeature.js.map +1 -1
  422. package/build/features/schema/ValueTypeBuilder.js.map +1 -1
  423. package/build/features/schema/actions/CreateAction.js.map +1 -1
  424. package/build/features/schema/actions/SyncAction.js.map +1 -1
  425. package/build/features/schema/actions/SyncFieldsAction.js.map +1 -1
  426. package/build/features/schema/services/SchemaService.js.map +1 -1
  427. package/build/features/schema/stores/SchemaStore.js.map +1 -1
  428. package/build/features/schema/utilities/schema.utility.js.map +1 -1
  429. package/build/features/schema/utilities/schemaDisk.utility.js.map +1 -1
  430. package/build/features/schema/utilities/schemaGenerator.utility.js.map +1 -1
  431. package/build/features/schema/writers/SchemaWriter.js.map +1 -1
  432. package/build/features/skill/SkillFeature.js.map +1 -1
  433. package/build/features/skill/actions/BootAction.js.map +1 -1
  434. package/build/features/skill/actions/CreateAction.js.map +1 -1
  435. package/build/features/skill/actions/DashboardAction.js.map +1 -1
  436. package/build/features/skill/actions/LoginAction.js.map +1 -1
  437. package/build/features/skill/actions/RebuildAction.js.map +1 -1
  438. package/build/features/skill/actions/RegisterAction.js.map +1 -1
  439. package/build/features/skill/stores/SkillStore.js.map +1 -1
  440. package/build/features/skill/updaters/Updater.js.map +1 -1
  441. package/build/features/skill/writers/SkillWriter.js.map +1 -1
  442. package/build/features/store/StoreFeature.js.map +1 -1
  443. package/build/features/store/actions/CreateAction.js.map +1 -1
  444. package/build/features/store/actions/SyncAction.js.map +1 -1
  445. package/build/features/store/stores/StoreStore.js.map +1 -1
  446. package/build/features/store/templateItemBuilders/StoreTemplateItemBuilder.js.map +1 -1
  447. package/build/features/store/writers/StoreWriter.js.map +1 -1
  448. package/build/features/test/TestFeature.js.map +1 -1
  449. package/build/features/test/TestLogItemGenerator.js.map +1 -1
  450. package/build/features/test/TestReporter.js.map +1 -1
  451. package/build/features/test/TestRunner.js.map +1 -1
  452. package/build/features/test/actions/CreateAction.js.map +1 -1
  453. package/build/features/test/actions/SetupAction.js.map +1 -1
  454. package/build/features/test/actions/TestAction.js.map +1 -1
  455. package/build/features/test/test.types.js.map +1 -1
  456. package/build/features/test/writers/TestWriter.js.map +1 -1
  457. package/build/features/universalDevDependencies.js.map +1 -1
  458. package/build/features/universalFileDescriptions.js.map +1 -1
  459. package/build/features/universalScripts.js.map +1 -1
  460. package/build/features/validateAndNormalize.utility.js.map +1 -1
  461. package/build/features/view/ViewFeature.js.map +1 -1
  462. package/build/features/view/actions/CreateAction.d.ts +6 -6
  463. package/build/features/view/actions/CreateAction.js +59 -59
  464. package/build/features/view/actions/CreateAction.js.map +1 -1
  465. package/build/features/view/actions/CreatePluginAction.d.ts +56 -0
  466. package/build/features/view/actions/CreatePluginAction.js +95 -0
  467. package/build/features/view/actions/CreatePluginAction.js.map +1 -0
  468. package/build/features/view/actions/CreateThemeAction.js.map +1 -1
  469. package/build/features/view/actions/SyncAction.d.ts +6 -6
  470. package/build/features/view/actions/SyncAction.js +29 -15
  471. package/build/features/view/actions/SyncAction.js.map +1 -1
  472. package/build/features/view/actions/WatchAction.js.map +1 -1
  473. package/build/features/view/stores/ViewStore.js.map +1 -1
  474. package/build/features/view/writers/ViewWriter.d.ts +5 -0
  475. package/build/features/view/writers/ViewWriter.js +44 -7
  476. package/build/features/view/writers/ViewWriter.js.map +1 -1
  477. package/build/features/vscode/VsCodeFeature.js.map +1 -1
  478. package/build/features/vscode/actions/SetupAction.js.map +1 -1
  479. package/build/features/vscode/services/VsCodeService.js.map +1 -1
  480. package/build/features/vscode/writers/VsCodeWriter.js.map +1 -1
  481. package/build/features/watch/WatchFeature.js.map +1 -1
  482. package/build/index.js.map +1 -1
  483. package/build/interfaces/SpyInterface.js.map +1 -1
  484. package/build/interfaces/TerminalInterface.js.map +1 -1
  485. package/build/schemas/v2020_07_22/actionResponse.builder.js.map +1 -1
  486. package/build/schemas/v2020_07_22/bootSkillOptions.builder.js.map +1 -1
  487. package/build/schemas/v2020_07_22/createConversationTopicOptions.builder.js.map +1 -1
  488. package/build/schemas/v2020_07_22/createErrorOptions.builder.js.map +1 -1
  489. package/build/schemas/v2020_07_22/createOrganizationOptions.builder.js.map +1 -1
  490. package/build/schemas/v2020_07_22/createSchemaOptions.builder.js.map +1 -1
  491. package/build/schemas/v2020_07_22/createTestOptions.builder.js.map +1 -1
  492. package/build/schemas/v2020_07_22/generatedFile.builder.js.map +1 -1
  493. package/build/schemas/v2020_07_22/installSkillAtOrganizationOptions.builder.js.map +1 -1
  494. package/build/schemas/v2020_07_22/listenEventOptions.builder.js.map +1 -1
  495. package/build/schemas/v2020_07_22/namedTemplateItem.builder.js.map +1 -1
  496. package/build/schemas/v2020_07_22/nodeFeatureOptions.builder.js.map +1 -1
  497. package/build/schemas/v2020_07_22/onboardOptions.builder.js.map +1 -1
  498. package/build/schemas/v2020_07_22/onboarding.builder.js.map +1 -1
  499. package/build/schemas/v2020_07_22/personWithToken.builder.js.map +1 -1
  500. package/build/schemas/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.builder.js.map +1 -1
  501. package/build/schemas/v2020_07_22/setupTestsOptions.builder.js.map +1 -1
  502. package/build/schemas/v2020_07_22/setupVscodeOptions.builder.js.map +1 -1
  503. package/build/schemas/v2020_07_22/skillFeature.builder.js.map +1 -1
  504. package/build/schemas/v2020_07_22/syncErrorOptions.builder.js.map +1 -1
  505. package/build/schemas/v2020_07_22/syncEventOptions.builder.js.map +1 -1
  506. package/build/schemas/v2020_07_22/syncSchemaFieldsOptions.builder.js.map +1 -1
  507. package/build/schemas/v2020_07_22/syncSchemasOptions.builder.js.map +1 -1
  508. package/build/schemas/v2020_07_22/testOptions.builder.js.map +1 -1
  509. package/build/schemas/v2020_07_22/upgradeSkillOptions.builder.js.map +1 -1
  510. package/build/schemas/v2020_07_22/watcherDidDetectChangesEmitPayload.builder.js.map +1 -1
  511. package/build/services/BuildService.js.map +1 -1
  512. package/build/services/CommandService.js.map +1 -1
  513. package/build/services/DependencyService.js.map +1 -1
  514. package/build/services/GameService.js.map +1 -1
  515. package/build/services/ImportService.js.map +1 -1
  516. package/build/services/LintService.js.map +1 -1
  517. package/build/services/PkgService.js.map +1 -1
  518. package/build/services/ServiceFactory.js.map +1 -1
  519. package/build/services/TypeCheckerService.js.map +1 -1
  520. package/build/stores/AbstractLocalStore.js.map +1 -1
  521. package/build/stores/AbstractStore.js.map +1 -1
  522. package/build/stores/StoreFactory.js.map +1 -1
  523. package/build/templateItemBuilders/EventTemplateItemBuilder.js.map +1 -1
  524. package/build/templateItemBuilders/FieldTemplateItemBuilder.js.map +1 -1
  525. package/build/templateItemBuilders/SchemaTemplateItemBuilder.js.map +1 -1
  526. package/build/tests/AbstractCliTest.js.map +1 -1
  527. package/build/tests/AbstractErrorTest.js.map +1 -1
  528. package/build/tests/AbstractEventTest.js.map +1 -1
  529. package/build/tests/AbstractSchemaTest.js.map +1 -1
  530. package/build/tests/AbstractSkillTest.js.map +1 -1
  531. package/build/tests/AbstractTestTest.js.map +1 -1
  532. package/build/tests/CommandFaker.js.map +1 -1
  533. package/build/tests/JestJsonParser.js.map +1 -1
  534. package/build/tests/MockProgramFactory.js.map +1 -1
  535. package/build/tests/buildTestCache.js.map +1 -1
  536. package/build/tests/cleanTestCache.js.map +1 -1
  537. package/build/tests/cleanTestData.js.map +1 -1
  538. package/build/tests/constants.js.map +1 -1
  539. package/build/tests/fixtures/FeatureFixture.js.map +1 -1
  540. package/build/tests/fixtures/MercuryFixture.js.map +1 -1
  541. package/build/tests/fixtures/OrganizationFixture.js.map +1 -1
  542. package/build/tests/fixtures/PersonFixture.js.map +1 -1
  543. package/build/tests/fixtures/SkillFixture.js.map +1 -1
  544. package/build/tests/fixtures/ViewFixture.js.map +1 -1
  545. package/build/tests/utilities/test.utility.js.map +1 -1
  546. package/build/tests/utilities/uiAssert.utility.js.map +1 -1
  547. package/build/types/apiClient.types.js.map +1 -1
  548. package/build/types/cli.types.js.map +1 -1
  549. package/build/types/graphicsInterface.types.js.map +1 -1
  550. package/build/updaters/ScriptUpdater.js.map +1 -1
  551. package/build/utilities/action.utility.js.map +1 -1
  552. package/build/utilities/apiClient.utility.js.map +1 -1
  553. package/build/utilities/argParser.utility.js.map +1 -1
  554. package/build/utilities/commander.utility.js.map +1 -1
  555. package/build/utilities/duration.utility.js.map +1 -1
  556. package/build/utilities/eventContractCleaner.utility.js.map +1 -1
  557. package/build/utilities/form.utility.js.map +1 -1
  558. package/build/utilities/introspection.utility.js.map +1 -1
  559. package/build/utilities/isCi.js.map +1 -1
  560. package/build/utilities/tsConfig.utility.js.map +1 -1
  561. package/build/utilities/ui.utility.js.map +1 -1
  562. package/build/widgets/Theme.js.map +1 -1
  563. package/build/widgets/WidgetFactory.js.map +1 -1
  564. package/build/widgets/keySelectChoices.js.map +1 -1
  565. package/build/widgets/terminalKit/TKButtonWidget.js.map +1 -1
  566. package/build/widgets/terminalKit/TkBaseWidget.js.map +1 -1
  567. package/build/widgets/terminalKit/TkInputWidget.js.map +1 -1
  568. package/build/widgets/terminalKit/TkLayoutCellWidget.js.map +1 -1
  569. package/build/widgets/terminalKit/TkLayoutWidget.js.map +1 -1
  570. package/build/widgets/terminalKit/TkMenuBarWidget.js.map +1 -1
  571. package/build/widgets/terminalKit/TkPopupWidget.js.map +1 -1
  572. package/build/widgets/terminalKit/TkProgressBarWidget.js.map +1 -1
  573. package/build/widgets/terminalKit/TkTextWidget.js.map +1 -1
  574. package/build/widgets/terminalKit/TkWindowWidget.js.map +1 -1
  575. package/build/widgets/terminalKit/termKit.utility.js.map +1 -1
  576. package/build/widgets/types/button.types.js.map +1 -1
  577. package/build/widgets/types/factory.types.js.map +1 -1
  578. package/build/widgets/types/input.types.js.map +1 -1
  579. package/build/widgets/types/layout.types.js.map +1 -1
  580. package/build/widgets/types/menuBar.types.js.map +1 -1
  581. package/build/widgets/types/popup.types.js.map +1 -1
  582. package/build/widgets/types/progressBar.types.js.map +1 -1
  583. package/build/widgets/types/table.types.js.map +1 -1
  584. package/build/widgets/types/text.types.js.map +1 -1
  585. package/build/widgets/types/widgets.types.js.map +1 -1
  586. package/build/widgets/types/window.types.js.map +1 -1
  587. package/build/widgets/widget.utilities.js.map +1 -1
  588. package/build/writers/AbstractWriter.js.map +1 -1
  589. package/build/writers/WriterFactory.js.map +1 -1
  590. package/package.json +33 -33
  591. package/src/.spruce/errors/errors.types.ts +29 -0
  592. package/src/.spruce/errors/options.types.ts +4 -1
  593. package/src/.spruce/errors/spruceCli/viewPluginAlreadyExists.schema.ts +22 -0
  594. package/src/__tests__/behavioral/views/CreatingASkillView.test.ts +1 -1
  595. package/src/__tests__/behavioral/views/KeepingViewsInSync.test.ts +1 -1
  596. package/src/__tests__/behavioral/views/plugins/CreatingAViewPlugin.test.ts +161 -0
  597. package/src/errors/SpruceError.ts +4 -0
  598. package/src/errors/viewPluginAlreadyExists.builder.ts +12 -0
  599. package/src/features/view/actions/CreateAction.ts +72 -72
  600. package/src/features/view/actions/CreatePluginAction.ts +54 -0
  601. package/src/features/view/actions/SyncAction.ts +30 -14
  602. package/src/features/view/writers/ViewWriter.ts +45 -5
@@ -1 +1 @@
1
- {"version":3,"file":"setupVscodeOptions.schema.js","names":["_schema","require","setupVscodeOptionsSchema","id","version","namespace","name","description","fields","label","type","options","undefined","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst setupVscodeOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SetupVscodeOptionsSchema = {\n\tid: 'setupVscodeOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Setup vscode action',\n\tdescription: 'Install vscode extensions, launch configs, and settings the Spruce team uses in-house!',\n\t fields: {\n\t /** Install everything. */\n\t 'all': {\n\t label: 'Install everything',\n\t type: 'boolean',\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(setupVscodeOptionsSchema)\n\nexport default setupVscodeOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,wBAAsF,GAAI;EAC/FC,EAAE,EAAE,oBAAoB;EACxBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,qBAAqB;EAC3BC,WAAW,EAAE,wFAAwF;EACjGC,MAAM,EAAE;IACA;IACA,KAAK,EAAE;MACHC,KAAK,EAAE,oBAAoB;MAC3BC,IAAI,EAAE,SAAS;MACfC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACb,wBAAwB,CAAC;AAAA,IAAAc,QAAA,GAAAC,OAAA,cAEnDf,wBAAwB"}
1
+ {"version":3,"file":"setupVscodeOptions.schema.js","names":["_schema","require","setupVscodeOptionsSchema","id","version","namespace","name","description","fields","label","type","options","undefined","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst setupVscodeOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SetupVscodeOptionsSchema = {\n\tid: 'setupVscodeOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Setup vscode action',\n\tdescription: 'Install vscode extensions, launch configs, and settings the Spruce team uses in-house!',\n\t fields: {\n\t /** Install everything. */\n\t 'all': {\n\t label: 'Install everything',\n\t type: 'boolean',\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(setupVscodeOptionsSchema)\n\nexport default setupVscodeOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,wBAAsF,GAAI;EAC/FC,EAAE,EAAE,oBAAoB;EACxBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,qBAAqB;EAC3BC,WAAW,EAAE,wFAAwF;EACjGC,MAAM,EAAE;IACA;IACA,KAAK,EAAE;MACHC,KAAK,EAAE,oBAAoB;MAC3BC,IAAI,EAAE,SAAS;MACfC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACb,wBAAwB,CAAC;AAAA,IAAAc,QAAA,GAAAC,OAAA,cAEnDf,wBAAwB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"skillFeature.schema.js","names":["_schema","require","skillFeatureSchema","id","version","namespace","name","fields","type","defaultValue","options","undefined","label","isRequired","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst skillFeatureSchema: SpruceSchemas.SpruceCli.v2020_07_22.SkillFeatureSchema = {\n\tid: 'skillFeature',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Skill feature options',\n\t fields: {\n\t /** . */\n\t 'destination': {\n\t type: 'text',\n\t defaultValue: \".\",\n\t options: undefined\n\t },\n\t /** What's the name of your skill?. */\n\t 'name': {\n\t label: 'What\\'s the name of your skill?',\n\t type: 'text',\n\t isRequired: true,\n\t options: undefined\n\t },\n\t /** How would you describe your skill?. */\n\t 'description': {\n\t label: 'How would you describe your skill?',\n\t type: 'text',\n\t isRequired: true,\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(skillFeatureSchema)\n\nexport default skillFeatureSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,kBAA0E,GAAI;EACnFC,EAAE,EAAE,cAAc;EAClBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,uBAAuB;EACzBC,MAAM,EAAE;IACA;IACA,aAAa,EAAE;MACXC,IAAI,EAAE,MAAM;MACZC,YAAY,EAAE,GAAG;MACjBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,MAAM,EAAE;MACJC,KAAK,EAAE,iCAAiC;MACxCJ,IAAI,EAAE,MAAM;MACZK,UAAU,EAAE,IAAI;MAChBH,OAAO,EAAEC;IACb,CAAC;IACD;IACA,aAAa,EAAE;MACXC,KAAK,EAAE,oCAAoC;MAC3CJ,IAAI,EAAE,MAAM;MACZK,UAAU,EAAE,IAAI;MAChBH,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDG,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACd,kBAAkB,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,cAE7ChB,kBAAkB"}
1
+ {"version":3,"file":"skillFeature.schema.js","names":["_schema","require","skillFeatureSchema","id","version","namespace","name","fields","type","defaultValue","options","undefined","label","isRequired","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst skillFeatureSchema: SpruceSchemas.SpruceCli.v2020_07_22.SkillFeatureSchema = {\n\tid: 'skillFeature',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Skill feature options',\n\t fields: {\n\t /** . */\n\t 'destination': {\n\t type: 'text',\n\t defaultValue: \".\",\n\t options: undefined\n\t },\n\t /** What's the name of your skill?. */\n\t 'name': {\n\t label: 'What\\'s the name of your skill?',\n\t type: 'text',\n\t isRequired: true,\n\t options: undefined\n\t },\n\t /** How would you describe your skill?. */\n\t 'description': {\n\t label: 'How would you describe your skill?',\n\t type: 'text',\n\t isRequired: true,\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(skillFeatureSchema)\n\nexport default skillFeatureSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,kBAA0E,GAAI;EACnFC,EAAE,EAAE,cAAc;EAClBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,uBAAuB;EACzBC,MAAM,EAAE;IACA;IACA,aAAa,EAAE;MACXC,IAAI,EAAE,MAAM;MACZC,YAAY,EAAE,GAAG;MACjBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,MAAM,EAAE;MACJC,KAAK,EAAE,iCAAiC;MACxCJ,IAAI,EAAE,MAAM;MACZK,UAAU,EAAE,IAAI;MAChBH,OAAO,EAAEC;IACb,CAAC;IACD;IACA,aAAa,EAAE;MACXC,KAAK,EAAE,oCAAoC;MAC3CJ,IAAI,EAAE,MAAM;MACZK,UAAU,EAAE,IAAI;MAChBH,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDG,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACd,kBAAkB,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,cAE7ChB,kBAAkB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"syncErrorOptions.schema.js","names":["_schema","require","syncErrorOptionsSchema","id","version","namespace","name","description","fields","label","type","isPrivate","hint","defaultValue","options","undefined","isRequired","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst syncErrorOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncErrorOptionsSchema = {\n\tid: 'syncErrorOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Sync error action',\n\tdescription: 'Keep your errors types in sync with your builders',\n\t fields: {\n\t /** Field types directory. Where field types and interfaces will be generated. */\n\t 'fieldTypesDestinationDir': {\n\t label: 'Field types directory',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'Where field types and interfaces will be generated.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** Addons lookup directory. Where I'll look for new schema fields to be registered. */\n\t 'addonsLookupDir': {\n\t label: 'Addons lookup directory',\n\t type: 'text',\n\t hint: 'Where I\\'ll look for new schema fields to be registered.',\n\t defaultValue: \"src/addons\",\n\t options: undefined\n\t },\n\t /** Generate field types. Should I generate field types too? */\n\t 'generateFieldTypes': {\n\t label: 'Generate field types',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I generate field types too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Schema types destination directory. Where I will generate schema types and interfaces. */\n\t 'schemaTypesDestinationDirOrFile': {\n\t label: 'Schema types destination directory',\n\t type: 'text',\n\t hint: 'Where I will generate schema types and interfaces.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** . Where I should look for your schema builders? */\n\t 'schemaLookupDir': {\n\t type: 'text',\n\t hint: 'Where I should look for your schema builders?',\n\t defaultValue: \"src/schemas\",\n\t options: undefined\n\t },\n\t /** Module import. When other skills use your schemas, will they import them from a module? */\n\t 'moduleToImportFromWhenRemote': {\n\t label: 'Module import',\n\t type: 'text',\n\t hint: 'When other skills use your schemas, will they import them from a module?',\n\t options: undefined\n\t },\n\t /** Auto install missing dependencies. */\n\t 'shouldInstallMissingDependencies': {\n\t label: 'Auto install missing dependencies',\n\t type: 'boolean',\n\t options: undefined\n\t },\n\t /** Enable versioning. Should we use versioning? */\n\t 'shouldEnableVersioning': {\n\t label: 'Enable versioning',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should we use versioning?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */\n\t 'globalSchemaNamespace': {\n\t label: 'Global namespace',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'The name you\\'ll use when accessing these schemas, e.g. SpruceSchemas',\n\t defaultValue: \"SpruceSchemas\",\n\t options: undefined\n\t },\n\t /** Fetch remote schemas. I will pull in schemas from other features. */\n\t 'shouldFetchRemoteSchemas': {\n\t label: 'Fetch remote schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'I will pull in schemas from other features.',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */\n\t 'shouldFetchLocalSchemas': {\n\t label: 'Fetch local schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'I will look in schemaLookupDir to load local schemas.',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Fetch core schemas. Should I pull in core schemas too? */\n\t 'shouldFetchCoreSchemas': {\n\t label: 'Fetch core schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I pull in core schemas too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Generate core schemas. Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile. */\n\t 'shouldGenerateCoreSchemaTypes': {\n\t label: 'Generate core schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile.',\n\t options: undefined\n\t },\n\t /** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */\n\t 'registerBuiltSchemas': {\n\t label: 'Register built schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should the schemas use the SchemaRegistry for tracking?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Generate standalone types file. By default, I'll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file. */\n\t 'generateStandaloneTypesFile': {\n\t label: 'Generate standalone types file',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'By default, I\\'ll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file.',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** message. */\n\t 'syncingMessage': {\n\t label: ' message',\n\t type: 'text',\n\t isPrivate: true,\n\t defaultValue: \"Syncing schemas...\",\n\t options: undefined\n\t },\n\t /** Error class destination. Where I'll save your new Error class file? */\n\t 'errorClassDestinationDir': {\n\t label: 'Error class destination',\n\t type: 'text',\n\t isPrivate: true,\n\t isRequired: true,\n\t hint: 'Where I\\'ll save your new Error class file?',\n\t defaultValue: \"src/errors\",\n\t options: undefined\n\t },\n\t /** . Where I should look for your error builders? */\n\t 'errorLookupDir': {\n\t type: 'text',\n\t hint: 'Where I should look for your error builders?',\n\t defaultValue: \"src/errors\",\n\t options: undefined\n\t },\n\t /** Types destination dir. This is where error options and type information will be written */\n\t 'errorTypesDestinationDir': {\n\t label: 'Types destination dir',\n\t type: 'text',\n\t hint: 'This is where error options and type information will be written',\n\t defaultValue: \"#spruce/errors\",\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(syncErrorOptionsSchema)\n\nexport default syncErrorOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,sBAAkF,GAAI;EAC3FC,EAAE,EAAE,kBAAkB;EACtBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,mBAAmB;EACzBC,WAAW,EAAE,mDAAmD;EAC5DC,MAAM,EAAE;IACA;IACA,0BAA0B,EAAE;MACxBC,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,qDAAqD;MAC3DC,YAAY,EAAE,iBAAiB;MAC/BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,iBAAiB,EAAE;MACfN,KAAK,EAAE,yBAAyB;MAChCC,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,0DAA0D;M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IAAI,EAAE,MAAM;MACZC,SAAS,EAAE,IAAI;MACfK,UAAU,EAAE,IAAI;MAChBJ,IAAI,EAAE,6CAA6C;MACnDC,YAAY,EAAE,YAAY;MAC1BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,gBAAgB,EAAE;MACdL,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,8CAA8C;MACpDC,YAAY,EAAE,YAAY;MAC1BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,0BAA0B,EAAE;MACxBN,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,kEAAkE;MACxEC,YAAY,EAAE,gBAAgB;MAC9BC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDE,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACjB,sBAAsB,CAAC;AAAA,IAAAkB,QAAA,GAAAC,OAAA,cAEjDnB,sBAAsB"}
1
+ {"version":3,"file":"syncErrorOptions.schema.js","names":["_schema","require","syncErrorOptionsSchema","id","version","namespace","name","description","fields","label","type","isPrivate","hint","defaultValue","options","undefined","isRequired","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst syncErrorOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncErrorOptionsSchema = {\n\tid: 'syncErrorOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Sync error action',\n\tdescription: 'Keep your errors types in sync with your builders',\n\t fields: {\n\t /** Field types directory. Where field types and interfaces will be generated. */\n\t 'fieldTypesDestinationDir': {\n\t label: 'Field types directory',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'Where field types and interfaces will be generated.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** Addons lookup directory. Where I'll look for new schema fields to be registered. */\n\t 'addonsLookupDir': {\n\t label: 'Addons lookup directory',\n\t type: 'text',\n\t hint: 'Where I\\'ll look for new schema fields to be registered.',\n\t defaultValue: \"src/addons\",\n\t options: undefined\n\t },\n\t /** Generate field types. Should I generate field types too? */\n\t 'generateFieldTypes': {\n\t label: 'Generate field types',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I generate field types too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Schema types destination directory. Where I will generate schema types and interfaces. */\n\t 'schemaTypesDestinationDirOrFile': {\n\t label: 'Schema types destination directory',\n\t type: 'text',\n\t hint: 'Where I will generate schema types and interfaces.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** . Where I should look for your schema builders? */\n\t 'schemaLookupDir': {\n\t type: 'text',\n\t hint: 'Where I should look for your schema builders?',\n\t defaultValue: \"src/schemas\",\n\t options: undefined\n\t },\n\t /** Module import. When other skills use your schemas, will they import them from a module? */\n\t 'moduleToImportFromWhenRemote': {\n\t label: 'Module import',\n\t type: 'text',\n\t hint: 'When other skills use your schemas, will they import them from a module?',\n\t options: undefined\n\t },\n\t /** Auto install missing dependencies. */\n\t 'shouldInstallMissingDependencies': {\n\t label: 'Auto install missing dependencies',\n\t type: 'boolean',\n\t options: undefined\n\t },\n\t /** Enable versioning. Should we use versioning? */\n\t 'shouldEnableVersioning': {\n\t label: 'Enable versioning',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should we use versioning?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */\n\t 'globalSchemaNamespace': {\n\t label: 'Global namespace',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'The name you\\'ll use when accessing these schemas, e.g. SpruceSchemas',\n\t defaultValue: \"SpruceSchemas\",\n\t options: undefined\n\t },\n\t /** Fetch remote schemas. I will pull in schemas from other features. */\n\t 'shouldFetchRemoteSchemas': {\n\t label: 'Fetch remote schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'I will pull in schemas from other features.',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */\n\t 'shouldFetchLocalSchemas': {\n\t label: 'Fetch local schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'I will look in schemaLookupDir to load local schemas.',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Fetch core schemas. Should I pull in core schemas too? */\n\t 'shouldFetchCoreSchemas': {\n\t label: 'Fetch core schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I pull in core schemas too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Generate core schemas. Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile. */\n\t 'shouldGenerateCoreSchemaTypes': {\n\t label: 'Generate core schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile.',\n\t options: undefined\n\t },\n\t /** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */\n\t 'registerBuiltSchemas': {\n\t label: 'Register built schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should the schemas use the SchemaRegistry for tracking?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Generate standalone types file. By default, I'll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file. */\n\t 'generateStandaloneTypesFile': {\n\t label: 'Generate standalone types file',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'By default, I\\'ll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file.',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** message. */\n\t 'syncingMessage': {\n\t label: ' message',\n\t type: 'text',\n\t isPrivate: true,\n\t defaultValue: \"Syncing schemas...\",\n\t options: undefined\n\t },\n\t /** Error class destination. Where I'll save your new Error class file? */\n\t 'errorClassDestinationDir': {\n\t label: 'Error class destination',\n\t type: 'text',\n\t isPrivate: true,\n\t isRequired: true,\n\t hint: 'Where I\\'ll save your new Error class file?',\n\t defaultValue: \"src/errors\",\n\t options: undefined\n\t },\n\t /** . Where I should look for your error builders? */\n\t 'errorLookupDir': {\n\t type: 'text',\n\t hint: 'Where I should look for your error builders?',\n\t defaultValue: \"src/errors\",\n\t options: undefined\n\t },\n\t /** Types destination dir. This is where error options and type information will be written */\n\t 'errorTypesDestinationDir': {\n\t label: 'Types destination dir',\n\t type: 'text',\n\t hint: 'This is where error options and type information will be written',\n\t defaultValue: \"#spruce/errors\",\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(syncErrorOptionsSchema)\n\nexport default syncErrorOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,sBAAkF,GAAI;EAC3FC,EAAE,EAAE,kBAAkB;EACtBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,mBAAmB;EACzBC,WAAW,EAAE,mDAAmD;EAC5DC,MAAM,EAAE;IACA;IACA,0BAA0B,EAAE;MACxBC,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,qDAAqD;MAC3DC,YAAY,EAAE,iBAAiB;MAC/BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,iBAAiB,EAAE;MACfN,KAAK,EAAE,yBAAyB;MAChCC,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,0DAA0D;MAChEC,YAAY,EAAE,YAAY;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SAAS,EAAE,IAAI;MACfK,UAAU,EAAE,IAAI;MAChBJ,IAAI,EAAE,6CAA6C;MACnDC,YAAY,EAAE,YAAY;MAC1BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,gBAAgB,EAAE;MACdL,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,8CAA8C;MACpDC,YAAY,EAAE,YAAY;MAC1BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,0BAA0B,EAAE;MACxBN,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,kEAAkE;MACxEC,YAAY,EAAE,gBAAgB;MAC9BC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDE,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACjB,sBAAsB,CAAC;AAAA,IAAAkB,QAAA,GAAAC,OAAA,cAEjDnB,sBAAsB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"syncEventOptions.schema.js","names":["_schema","require","syncEventOptionsSchema","id","version","namespace","name","description","fields","label","type","hint","defaultValue","options","undefined","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst syncEventOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncEventOptionsSchema = {\n\tid: 'syncEventOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'sync event action',\n\tdescription: 'Pull down event contracts from Mercury to make them available in your skill.',\n\t fields: {\n\t /** Contract destination. Where I will generate event contracts. */\n\t 'contractDestinationDir': {\n\t label: 'Contract destination',\n\t type: 'text',\n\t hint: 'Where I will generate event contracts.',\n\t defaultValue: \"#spruce/events\",\n\t options: undefined\n\t },\n\t /** Schema types lookup directory. Where I will lookup schema types and interfaces. */\n\t 'schemaTypesLookupDir': {\n\t label: 'Schema types lookup directory',\n\t type: 'text',\n\t hint: 'Where I will lookup schema types and interfaces.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** Sync only core events. For use in @sprucelabs/mercury-types */\n\t 'shouldSyncOnlyCoreEvents': {\n\t label: 'Sync only core events',\n\t type: 'boolean',\n\t hint: 'For use in @sprucelabs/mercury-types',\n\t options: undefined\n\t },\n\t /** Event signature types file. */\n\t 'skillEventContractTypesFile': {\n\t label: 'Event signature types file',\n\t type: 'text',\n\t defaultValue: \"@sprucelabs/mercury-types/build/types/mercury.types\",\n\t options: undefined\n\t },\n\t /** Event builder file. */\n\t 'eventBuilderFile': {\n\t label: 'Event builder file',\n\t type: 'text',\n\t defaultValue: \"@sprucelabs/mercury-types\",\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(syncEventOptionsSchema)\n\nexport default syncEventOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,sBAAkF,GAAI;EAC3FC,EAAE,EAAE,kBAAkB;EACtBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,mBAAmB;EACzBC,WAAW,EAAE,8EAA8E;EACvFC,MAAM,EAAE;IACA;IACA,wBAAwB,EAAE;MACtBC,KAAK,EAAE,sBAAsB;MAC7BC,IAAI,EAAE,MAAM;MACZC,IAAI,EAAE,wCAAwC;MAC9CC,YAAY,EAAE,gBAAgB;MAC9BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,sBAAsB,EAAE;MACpBL,KAAK,EAAE,+BAA+B;MACtCC,IAAI,EAAE,MAAM;MACZC,IAAI,EAAE,kDAAkD;MACxDC,YAAY,EAAE,iBAAiB;MAC/BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,0BAA0B,EAAE;MACxBL,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,SAAS;MACfC,IAAI,EAAE,sCAAsC;MAC5CE,OAAO,EAAEC;IACb,CAAC;IACD;IACA,6BAA6B,EAAE;MAC3BL,KAAK,EAAE,4BAA4B;MACnCC,IAAI,EAAE,MAAM;MACZE,YAAY,EAAE,qDAAqD;MACnEC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,kBAAkB,EAAE;MAChBL,KAAK,EAAE,oBAAoB;MAC3BC,IAAI,EAAE,MAAM;MACZE,YAAY,EAAE,2BAA2B;MACzCC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACf,sBAAsB,CAAC;AAAA,IAAAgB,QAAA,GAAAC,OAAA,cAEjDjB,sBAAsB"}
1
+ {"version":3,"file":"syncEventOptions.schema.js","names":["_schema","require","syncEventOptionsSchema","id","version","namespace","name","description","fields","label","type","hint","defaultValue","options","undefined","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst syncEventOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncEventOptionsSchema = {\n\tid: 'syncEventOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'sync event action',\n\tdescription: 'Pull down event contracts from Mercury to make them available in your skill.',\n\t fields: {\n\t /** Contract destination. Where I will generate event contracts. */\n\t 'contractDestinationDir': {\n\t label: 'Contract destination',\n\t type: 'text',\n\t hint: 'Where I will generate event contracts.',\n\t defaultValue: \"#spruce/events\",\n\t options: undefined\n\t },\n\t /** Schema types lookup directory. Where I will lookup schema types and interfaces. */\n\t 'schemaTypesLookupDir': {\n\t label: 'Schema types lookup directory',\n\t type: 'text',\n\t hint: 'Where I will lookup schema types and interfaces.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** Sync only core events. For use in @sprucelabs/mercury-types */\n\t 'shouldSyncOnlyCoreEvents': {\n\t label: 'Sync only core events',\n\t type: 'boolean',\n\t hint: 'For use in @sprucelabs/mercury-types',\n\t options: undefined\n\t },\n\t /** Event signature types file. */\n\t 'skillEventContractTypesFile': {\n\t label: 'Event signature types file',\n\t type: 'text',\n\t defaultValue: \"@sprucelabs/mercury-types/build/types/mercury.types\",\n\t options: undefined\n\t },\n\t /** Event builder file. */\n\t 'eventBuilderFile': {\n\t label: 'Event builder file',\n\t type: 'text',\n\t defaultValue: \"@sprucelabs/mercury-types\",\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(syncEventOptionsSchema)\n\nexport default syncEventOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,sBAAkF,GAAI;EAC3FC,EAAE,EAAE,kBAAkB;EACtBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,mBAAmB;EACzBC,WAAW,EAAE,8EAA8E;EACvFC,MAAM,EAAE;IACA;IACA,wBAAwB,EAAE;MACtBC,KAAK,EAAE,sBAAsB;MAC7BC,IAAI,EAAE,MAAM;MACZC,IAAI,EAAE,wCAAwC;MAC9CC,YAAY,EAAE,gBAAgB;MAC9BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,sBAAsB,EAAE;MACpBL,KAAK,EAAE,+BAA+B;MACtCC,IAAI,EAAE,MAAM;MACZC,IAAI,EAAE,kDAAkD;MACxDC,YAAY,EAAE,iBAAiB;MAC/BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,0BAA0B,EAAE;MACxBL,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,SAAS;MACfC,IAAI,EAAE,sCAAsC;MAC5CE,OAAO,EAAEC;IACb,CAAC;IACD;IACA,6BAA6B,EAAE;MAC3BL,KAAK,EAAE,4BAA4B;MACnCC,IAAI,EAAE,MAAM;MACZE,YAAY,EAAE,qDAAqD;MACnEC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,kBAAkB,EAAE;MAChBL,KAAK,EAAE,oBAAoB;MAC3BC,IAAI,EAAE,MAAM;MACZE,YAAY,EAAE,2BAA2B;MACzCC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACf,sBAAsB,CAAC;AAAA,IAAAgB,QAAA,GAAAC,OAAA,cAEjDjB,sBAAsB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"syncSchemaFieldsOptions.schema.js","names":["_schema","require","syncSchemaFieldsOptionsSchema","id","version","namespace","name","description","fields","label","type","isPrivate","hint","defaultValue","options","undefined","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst syncSchemaFieldsOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemaFieldsOptionsSchema = {\n\tid: 'syncSchemaFieldsOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'syncSchemaFieldsOptions',\n\tdescription: 'Sync schema fields so you can use schemas!',\n\t fields: {\n\t /** Field types directory. Where field types and interfaces will be generated. */\n\t 'fieldTypesDestinationDir': {\n\t label: 'Field types directory',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'Where field types and interfaces will be generated.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** Addons lookup directory. Where I'll look for new schema fields to be registered. */\n\t 'addonsLookupDir': {\n\t label: 'Addons lookup directory',\n\t type: 'text',\n\t hint: 'Where I\\'ll look for new schema fields to be registered.',\n\t defaultValue: \"src/addons\",\n\t options: undefined\n\t },\n\t /** Generate field types. Should I generate field types too? */\n\t 'generateFieldTypes': {\n\t label: 'Generate field types',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I generate field types too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(syncSchemaFieldsOptionsSchema)\n\nexport default syncSchemaFieldsOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,6BAAgG,GAAI;EACzGC,EAAE,EAAE,yBAAyB;EAC7BC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,yBAAyB;EAC/BC,WAAW,EAAE,4CAA4C;EACrDC,MAAM,EAAE;IACA;IACA,0BAA0B,EAAE;MACxBC,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,qDAAqD;MAC3DC,YAAY,EAAE,iBAAiB;MAC/BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,iBAAiB,EAAE;MACfN,KAAK,EAAE,yBAAyB;MAChCC,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,0DAA0D;MAChEC,YAAY,EAAE,YAAY;MAC1BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,oBAAoB,EAAE;MAClBN,KAAK,EAAE,sBAAsB;MAC7BC,IAAI,EAAE,SAAS;MACfC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,oCAAoC;MAC1CC,YAAY,EAAE,IAAI;MAClBC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAAChB,6BAA6B,CAAC;AAAA,IAAAiB,QAAA,GAAAC,OAAA,cAExDlB,6BAA6B"}
1
+ {"version":3,"file":"syncSchemaFieldsOptions.schema.js","names":["_schema","require","syncSchemaFieldsOptionsSchema","id","version","namespace","name","description","fields","label","type","isPrivate","hint","defaultValue","options","undefined","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst syncSchemaFieldsOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemaFieldsOptionsSchema = {\n\tid: 'syncSchemaFieldsOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'syncSchemaFieldsOptions',\n\tdescription: 'Sync schema fields so you can use schemas!',\n\t fields: {\n\t /** Field types directory. Where field types and interfaces will be generated. */\n\t 'fieldTypesDestinationDir': {\n\t label: 'Field types directory',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'Where field types and interfaces will be generated.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** Addons lookup directory. Where I'll look for new schema fields to be registered. */\n\t 'addonsLookupDir': {\n\t label: 'Addons lookup directory',\n\t type: 'text',\n\t hint: 'Where I\\'ll look for new schema fields to be registered.',\n\t defaultValue: \"src/addons\",\n\t options: undefined\n\t },\n\t /** Generate field types. Should I generate field types too? */\n\t 'generateFieldTypes': {\n\t label: 'Generate field types',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I generate field types too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(syncSchemaFieldsOptionsSchema)\n\nexport default syncSchemaFieldsOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,6BAAgG,GAAI;EACzGC,EAAE,EAAE,yBAAyB;EAC7BC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,yBAAyB;EAC/BC,WAAW,EAAE,4CAA4C;EACrDC,MAAM,EAAE;IACA;IACA,0BAA0B,EAAE;MACxBC,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,qDAAqD;MAC3DC,YAAY,EAAE,iBAAiB;MAC/BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,iBAAiB,EAAE;MACfN,KAAK,EAAE,yBAAyB;MAChCC,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,0DAA0D;MAChEC,YAAY,EAAE,YAAY;MAC1BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,oBAAoB,EAAE;MAClBN,KAAK,EAAE,sBAAsB;MAC7BC,IAAI,EAAE,SAAS;MACfC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,oCAAoC;MAC1CC,YAAY,EAAE,IAAI;MAClBC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAAChB,6BAA6B,CAAC;AAAA,IAAAiB,QAAA,GAAAC,OAAA,cAExDlB,6BAA6B","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"syncSchemasOptions.schema.js","names":["_schema","require","syncSchemasOptionsSchema","id","version","namespace","name","description","fields","label","type","isPrivate","hint","defaultValue","options","undefined","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst syncSchemasOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemasOptionsSchema = {\n\tid: 'syncSchemasOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Sync schemas action',\n\tdescription: 'Options for schema.sync.',\n\t fields: {\n\t /** Field types directory. Where field types and interfaces will be generated. */\n\t 'fieldTypesDestinationDir': {\n\t label: 'Field types directory',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'Where field types and interfaces will be generated.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** Addons lookup directory. Where I'll look for new schema fields to be registered. */\n\t 'addonsLookupDir': {\n\t label: 'Addons lookup directory',\n\t type: 'text',\n\t hint: 'Where I\\'ll look for new schema fields to be registered.',\n\t defaultValue: \"src/addons\",\n\t options: undefined\n\t },\n\t /** Generate field types. Should I generate field types too? */\n\t 'generateFieldTypes': {\n\t label: 'Generate field types',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I generate field types too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Schema types destination directory. Where I will generate schema types and interfaces. */\n\t 'schemaTypesDestinationDirOrFile': {\n\t label: 'Schema types destination directory',\n\t type: 'text',\n\t hint: 'Where I will generate schema types and interfaces.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** . Where I should look for your schema builders? */\n\t 'schemaLookupDir': {\n\t type: 'text',\n\t hint: 'Where I should look for your schema builders?',\n\t defaultValue: \"src/schemas\",\n\t options: undefined\n\t },\n\t /** Module import. When other skills use your schemas, will they import them from a module? */\n\t 'moduleToImportFromWhenRemote': {\n\t label: 'Module import',\n\t type: 'text',\n\t hint: 'When other skills use your schemas, will they import them from a module?',\n\t options: undefined\n\t },\n\t /** Auto install missing dependencies. */\n\t 'shouldInstallMissingDependencies': {\n\t label: 'Auto install missing dependencies',\n\t type: 'boolean',\n\t options: undefined\n\t },\n\t /** Enable versioning. Should we use versioning? */\n\t 'shouldEnableVersioning': {\n\t label: 'Enable versioning',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should we use versioning?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */\n\t 'globalSchemaNamespace': {\n\t label: 'Global namespace',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'The name you\\'ll use when accessing these schemas, e.g. SpruceSchemas',\n\t defaultValue: \"SpruceSchemas\",\n\t options: undefined\n\t },\n\t /** Fetch remote schemas. I will pull in schemas from other features. */\n\t 'shouldFetchRemoteSchemas': {\n\t label: 'Fetch remote schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'I will pull in schemas from other features.',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */\n\t 'shouldFetchLocalSchemas': {\n\t label: 'Fetch local schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'I will look in schemaLookupDir to load local schemas.',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Fetch core schemas. Should I pull in core schemas too? */\n\t 'shouldFetchCoreSchemas': {\n\t label: 'Fetch core schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I pull in core schemas too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Generate core schemas. Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile. */\n\t 'shouldGenerateCoreSchemaTypes': {\n\t label: 'Generate core schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile.',\n\t options: undefined\n\t },\n\t /** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */\n\t 'registerBuiltSchemas': {\n\t label: 'Register built schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should the schemas use the SchemaRegistry for tracking?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Delete directory if no schemas. Should I delete the schema directory if no schemas are found? */\n\t 'deleteDestinationDirIfNoSchemas': {\n\t label: 'Delete directory if no schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I delete the schema directory if no schemas are found?',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** Delete orphaned schemas. Should I delete schemas where the builders are missing? */\n\t 'deleteOrphanedSchemas': {\n\t label: 'Delete orphaned schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I delete schemas where the builders are missing?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Generate standalone types file. By default, I'll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file. */\n\t 'generateStandaloneTypesFile': {\n\t label: 'Generate standalone types file',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'By default, I\\'ll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file.',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** message. */\n\t 'syncingMessage': {\n\t label: ' message',\n\t type: 'text',\n\t isPrivate: true,\n\t defaultValue: \"Syncing schemas...\",\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(syncSchemasOptionsSchema)\n\nexport default syncSchemasOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,wBAAsF,GAAI;EAC/FC,EAAE,EAAE,oBAAoB;EACxBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,qBAAqB;EAC3BC,WAAW,EAAE,0BAA0B;EACnCC,MAAM,EAAE;IACA;IACA,0BAA0B,EAAE;MACxBC,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,qDAAqD;MAC3DC,YAAY,EAAE,iBAAiB;MAC/BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,iBAAiB,EAAE;MACfN,KAAK,EAAE,yBAAyB;MAChCC,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,0DAA0D;MAChEC,YAAY,EAAE,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AgC;MACvCC,IAAI,EAAE,SAAS;MACfC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,qKAAqK;MAC3KC,YAAY,EAAE,KAAK;MACnBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,gBAAgB,EAAE;MACdN,KAAK,EAAE,UAAU;MACjBC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE,IAAI;MACfE,YAAY,EAAE,oBAAoB;MAClCC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAAChB,wBAAwB,CAAC;AAAA,IAAAiB,QAAA,GAAAC,OAAA,cAEnDlB,wBAAwB"}
1
+ {"version":3,"file":"syncSchemasOptions.schema.js","names":["_schema","require","syncSchemasOptionsSchema","id","version","namespace","name","description","fields","label","type","isPrivate","hint","defaultValue","options","undefined","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst syncSchemasOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemasOptionsSchema = {\n\tid: 'syncSchemasOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Sync schemas action',\n\tdescription: 'Options for schema.sync.',\n\t fields: {\n\t /** Field types directory. Where field types and interfaces will be generated. */\n\t 'fieldTypesDestinationDir': {\n\t label: 'Field types directory',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'Where field types and interfaces will be generated.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** Addons lookup directory. Where I'll look for new schema fields to be registered. */\n\t 'addonsLookupDir': {\n\t label: 'Addons lookup directory',\n\t type: 'text',\n\t hint: 'Where I\\'ll look for new schema fields to be registered.',\n\t defaultValue: \"src/addons\",\n\t options: undefined\n\t },\n\t /** Generate field types. Should I generate field types too? */\n\t 'generateFieldTypes': {\n\t label: 'Generate field types',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I generate field types too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Schema types destination directory. Where I will generate schema types and interfaces. */\n\t 'schemaTypesDestinationDirOrFile': {\n\t label: 'Schema types destination directory',\n\t type: 'text',\n\t hint: 'Where I will generate schema types and interfaces.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** . Where I should look for your schema builders? */\n\t 'schemaLookupDir': {\n\t type: 'text',\n\t hint: 'Where I should look for your schema builders?',\n\t defaultValue: \"src/schemas\",\n\t options: undefined\n\t },\n\t /** Module import. When other skills use your schemas, will they import them from a module? */\n\t 'moduleToImportFromWhenRemote': {\n\t label: 'Module import',\n\t type: 'text',\n\t hint: 'When other skills use your schemas, will they import them from a module?',\n\t options: undefined\n\t },\n\t /** Auto install missing dependencies. */\n\t 'shouldInstallMissingDependencies': {\n\t label: 'Auto install missing dependencies',\n\t type: 'boolean',\n\t options: undefined\n\t },\n\t /** Enable versioning. Should we use versioning? */\n\t 'shouldEnableVersioning': {\n\t label: 'Enable versioning',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should we use versioning?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */\n\t 'globalSchemaNamespace': {\n\t label: 'Global namespace',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'The name you\\'ll use when accessing these schemas, e.g. SpruceSchemas',\n\t defaultValue: \"SpruceSchemas\",\n\t options: undefined\n\t },\n\t /** Fetch remote schemas. I will pull in schemas from other features. */\n\t 'shouldFetchRemoteSchemas': {\n\t label: 'Fetch remote schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'I will pull in schemas from other features.',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */\n\t 'shouldFetchLocalSchemas': {\n\t label: 'Fetch local schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'I will look in schemaLookupDir to load local schemas.',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Fetch core schemas. Should I pull in core schemas too? */\n\t 'shouldFetchCoreSchemas': {\n\t label: 'Fetch core schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I pull in core schemas too?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Generate core schemas. Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile. */\n\t 'shouldGenerateCoreSchemaTypes': {\n\t label: 'Generate core schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile.',\n\t options: undefined\n\t },\n\t /** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */\n\t 'registerBuiltSchemas': {\n\t label: 'Register built schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should the schemas use the SchemaRegistry for tracking?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Delete directory if no schemas. Should I delete the schema directory if no schemas are found? */\n\t 'deleteDestinationDirIfNoSchemas': {\n\t label: 'Delete directory if no schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I delete the schema directory if no schemas are found?',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** Delete orphaned schemas. Should I delete schemas where the builders are missing? */\n\t 'deleteOrphanedSchemas': {\n\t label: 'Delete orphaned schemas',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'Should I delete schemas where the builders are missing?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Generate standalone types file. By default, I'll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file. */\n\t 'generateStandaloneTypesFile': {\n\t label: 'Generate standalone types file',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'By default, I\\'ll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file.',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** message. */\n\t 'syncingMessage': {\n\t label: ' message',\n\t type: 'text',\n\t isPrivate: true,\n\t defaultValue: \"Syncing schemas...\",\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(syncSchemasOptionsSchema)\n\nexport default syncSchemasOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,wBAAsF,GAAI;EAC/FC,EAAE,EAAE,oBAAoB;EACxBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,qBAAqB;EAC3BC,WAAW,EAAE,0BAA0B;EACnCC,MAAM,EAAE;IACA;IACA,0BAA0B,EAAE;MACxBC,KAAK,EAAE,uBAAuB;MAC9BC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,qDAAqD;MAC3DC,YAAY,EAAE,iBAAiB;MAC/BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,iBAAiB,EAAE;MACfN,KAAK,EAAE,yBAAyB;MAChCC,IAAI,EAAE,MAAM;MACZE,IAAI,EAAE,0DAA0D;MAChEC,YAAY,EAAE,YAAY;MAC1BC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,oBAAoB,EAAE;MAClBN,KAAK,EAAE,sBAAsB;MAC7BC,IAAI,EAAE,SAAS;MACfC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,oCAAoC;MAC1CC,YAAY,EAAE,IAAI;MAClBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,iCAA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E,YAAY,EAAE,oBAAoB;MAClCC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAAChB,wBAAwB,CAAC;AAAA,IAAAiB,QAAA,GAAAC,OAAA,cAEnDlB,wBAAwB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"testOptions.schema.js","names":["_schema","require","testOptionsSchema","id","version","namespace","name","description","fields","label","type","hint","defaultValue","options","undefined","isPrivate","choices","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst testOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.TestOptionsSchema = {\n\tid: 'testOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Test skill',\n\tdescription: 'Test your might! 💪',\n\t fields: {\n\t /** Report while running. Should I output the test results while they are running? */\n\t 'shouldReportWhileRunning': {\n\t label: 'Report while running',\n\t type: 'boolean',\n\t hint: 'Should I output the test results while they are running?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Pattern. I'll filter all tests that match this pattern */\n\t 'pattern': {\n\t label: 'Pattern',\n\t type: 'text',\n\t hint: 'I\\'ll filter all tests that match this pattern',\n\t options: undefined\n\t },\n\t /** Inspect. Pass --inspect related args to test process. */\n\t 'inspect': {\n\t label: 'Inspect',\n\t type: 'number',\n\t hint: 'Pass --inspect related args to test process.',\n\t options: undefined\n\t },\n\t /** Should wait for manual start?. */\n\t 'shouldHoldAtStart': {\n\t label: 'Should wait for manual start?',\n\t type: 'boolean',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** Wait until tests are finished. For testing. Returns immediately after executing test so the running process can be managed programatically. */\n\t 'shouldReturnImmediately': {\n\t label: 'Wait until tests are finished',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'For testing. Returns immediately after executing test so the running process can be managed programatically.',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** Watch. */\n\t 'watchMode': {\n\t label: 'Watch',\n\t type: 'select',\n\t options: {choices: [{\"value\":\"off\",\"label\":\"Off\"},{\"value\":\"standard\",\"label\":\"Standard\"},{\"value\":\"smart\",\"label\":\"Smart\"}],}\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(testOptionsSchema)\n\nexport default testOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,iBAAwE,GAAI;EACjFC,EAAE,EAAE,aAAa;EACjBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,YAAY;EAClBC,WAAW,EAAE,qBAAqB;EAC9BC,MAAM,EAAE;IACA;IACA,0BAA0B,EAAE;MACxBC,KAAK,EAAE,sBAAsB;MAC7BC,IAAI,EAAE,SAAS;MACfC,IAAI,EAAE,0DAA0D;MAChEC,YAAY,EAAE,IAAI;MAClBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,SAAS,EAAE;MACPL,KAAK,EAAE,SAAS;MAChBC,IAAI,EAAE,MAAM;MACZC,IAAI,EAAE,gDAAgD;MACtDE,OAAO,EAAEC;IACb,CAAC;IACD;IACA,SAAS,EAAE;MACPL,KAAK,EAAE,SAAS;MAChBC,IAAI,EAAE,QAAQ;MACdC,IAAI,EAAE,8CAA8C;MACpDE,OAAO,EAAEC;IACb,CAAC;IACD;IACA,mBAAmB,EAAE;MACjBL,KAAK,EAAE,+BAA+B;MACtCC,IAAI,EAAE,SAAS;MACfE,YAAY,EAAE,KAAK;MACnBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,yBAAyB,EAAE;MACvBL,KAAK,EAAE,+BAA+B;MACtCC,IAAI,EAAE,SAAS;MACfK,SAAS,EAAE,IAAI;MACfJ,IAAI,EAAE,8GAA8G;MACpHC,YAAY,EAAE,KAAK;MACnBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,WAAW,EAAE;MACTL,KAAK,EAAE,OAAO;MACdC,IAAI,EAAE,QAAQ;MACdG,OAAO,EAAE;QAACG,OAAO,EAAE,CAAC;UAAC,OAAO,EAAC,KAAK;UAAC,OAAO,EAAC;QAAK,CAAC,EAAC;UAAC,OAAO,EAAC,UAAU;UAAC,OAAO,EAAC;QAAU,CAAC,EAAC;UAAC,OAAO,EAAC,OAAO;UAAC,OAAO,EAAC;QAAO,CAAC;MAAE;IACjI;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACjB,iBAAiB,CAAC;AAAA,IAAAkB,QAAA,GAAAC,OAAA,cAE5CnB,iBAAiB"}
1
+ {"version":3,"file":"testOptions.schema.js","names":["_schema","require","testOptionsSchema","id","version","namespace","name","description","fields","label","type","hint","defaultValue","options","undefined","isPrivate","choices","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst testOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.TestOptionsSchema = {\n\tid: 'testOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Test skill',\n\tdescription: 'Test your might! 💪',\n\t fields: {\n\t /** Report while running. Should I output the test results while they are running? */\n\t 'shouldReportWhileRunning': {\n\t label: 'Report while running',\n\t type: 'boolean',\n\t hint: 'Should I output the test results while they are running?',\n\t defaultValue: true,\n\t options: undefined\n\t },\n\t /** Pattern. I'll filter all tests that match this pattern */\n\t 'pattern': {\n\t label: 'Pattern',\n\t type: 'text',\n\t hint: 'I\\'ll filter all tests that match this pattern',\n\t options: undefined\n\t },\n\t /** Inspect. Pass --inspect related args to test process. */\n\t 'inspect': {\n\t label: 'Inspect',\n\t type: 'number',\n\t hint: 'Pass --inspect related args to test process.',\n\t options: undefined\n\t },\n\t /** Should wait for manual start?. */\n\t 'shouldHoldAtStart': {\n\t label: 'Should wait for manual start?',\n\t type: 'boolean',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** Wait until tests are finished. For testing. Returns immediately after executing test so the running process can be managed programatically. */\n\t 'shouldReturnImmediately': {\n\t label: 'Wait until tests are finished',\n\t type: 'boolean',\n\t isPrivate: true,\n\t hint: 'For testing. Returns immediately after executing test so the running process can be managed programatically.',\n\t defaultValue: false,\n\t options: undefined\n\t },\n\t /** Watch. */\n\t 'watchMode': {\n\t label: 'Watch',\n\t type: 'select',\n\t options: {choices: [{\"value\":\"off\",\"label\":\"Off\"},{\"value\":\"standard\",\"label\":\"Standard\"},{\"value\":\"smart\",\"label\":\"Smart\"}],}\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(testOptionsSchema)\n\nexport default testOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,iBAAwE,GAAI;EACjFC,EAAE,EAAE,aAAa;EACjBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,YAAY;EAClBC,WAAW,EAAE,qBAAqB;EAC9BC,MAAM,EAAE;IACA;IACA,0BAA0B,EAAE;MACxBC,KAAK,EAAE,sBAAsB;MAC7BC,IAAI,EAAE,SAAS;MACfC,IAAI,EAAE,0DAA0D;MAChEC,YAAY,EAAE,IAAI;MAClBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,SAAS,EAAE;MACPL,KAAK,EAAE,SAAS;MAChBC,IAAI,EAAE,MAAM;MACZC,IAAI,EAAE,gDAAgD;MACtDE,OAAO,EAAEC;IACb,CAAC;IACD;IACA,SAAS,EAAE;MACPL,KAAK,EAAE,SAAS;MAChBC,IAAI,EAAE,QAAQ;MACdC,IAAI,EAAE,8CAA8C;MACpDE,OAAO,EAAEC;IACb,CAAC;IACD;IACA,mBAAmB,EAAE;MACjBL,KAAK,EAAE,+BAA+B;MACtCC,IAAI,EAAE,SAAS;MACfE,YAAY,EAAE,KAAK;MACnBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,yBAAyB,EAAE;MACvBL,KAAK,EAAE,+BAA+B;MACtCC,IAAI,EAAE,SAAS;MACfK,SAAS,EAAE,IAAI;MACfJ,IAAI,EAAE,8GAA8G;MACpHC,YAAY,EAAE,KAAK;MACnBC,OAAO,EAAEC;IACb,CAAC;IACD;IACA,WAAW,EAAE;MACTL,KAAK,EAAE,OAAO;MACdC,IAAI,EAAE,QAAQ;MACdG,OAAO,EAAE;QAACG,OAAO,EAAE,CAAC;UAAC,OAAO,EAAC,KAAK;UAAC,OAAO,EAAC;QAAK,CAAC,EAAC;UAAC,OAAO,EAAC,UAAU;UAAC,OAAO,EAAC;QAAU,CAAC,EAAC;UAAC,OAAO,EAAC,OAAO;UAAC,OAAO,EAAC;QAAO,CAAC;MAAE;IACjI;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACjB,iBAAiB,CAAC;AAAA,IAAAkB,QAAA,GAAAC,OAAA,cAE5CnB,iBAAiB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"upgradeSkillOptions.schema.js","names":["_schema","require","upgradeSkillOptionsSchema","id","version","namespace","name","description","fields","label","type","defaultValue","options","choices","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst upgradeSkillOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.UpgradeSkillOptionsSchema = {\n\tid: 'upgradeSkillOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Upgrade skill action',\n\tdescription: 'Upgrade. Everything. Heads up, this can take a few minutes. ⏱',\n\t fields: {\n\t /** Upgrade mode. */\n\t 'upgradeMode': {\n\t label: 'Upgrade mode',\n\t type: 'select',\n\t defaultValue: \"askForChanged\",\n\t options: {choices: [{\"value\":\"askForChanged\",\"label\":\"Ask for changed files\"},{\"value\":\"forceEverything\",\"label\":\"Force everything\"},{\"value\":\"forceRequiredSkipRest\",\"label\":\"Force required (skipping all non-essential)\"}],}\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(upgradeSkillOptionsSchema)\n\nexport default upgradeSkillOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,yBAAwF,GAAI;EACjGC,EAAE,EAAE,qBAAqB;EACzBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,sBAAsB;EAC5BC,WAAW,EAAE,+DAA+D;EACxEC,MAAM,EAAE;IACA;IACA,aAAa,EAAE;MACXC,KAAK,EAAE,cAAc;MACrBC,IAAI,EAAE,QAAQ;MACdC,YAAY,EAAE,eAAe;MAC7BC,OAAO,EAAE;QAACC,OAAO,EAAE,CAAC;UAAC,OAAO,EAAC,eAAe;UAAC,OAAO,EAAC;QAAuB,CAAC,EAAC;UAAC,OAAO,EAAC,iBAAiB;UAAC,OAAO,EAAC;QAAkB,CAAC,EAAC;UAAC,OAAO,EAAC,uBAAuB;UAAC,OAAO,EAAC;QAA6C,CAAC;MAAE;IAClO;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACd,yBAAyB,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,cAEpDhB,yBAAyB"}
1
+ {"version":3,"file":"upgradeSkillOptions.schema.js","names":["_schema","require","upgradeSkillOptionsSchema","id","version","namespace","name","description","fields","label","type","defaultValue","options","choices","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst upgradeSkillOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.UpgradeSkillOptionsSchema = {\n\tid: 'upgradeSkillOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Upgrade skill action',\n\tdescription: 'Upgrade. Everything. Heads up, this can take a few minutes. ⏱',\n\t fields: {\n\t /** Upgrade mode. */\n\t 'upgradeMode': {\n\t label: 'Upgrade mode',\n\t type: 'select',\n\t defaultValue: \"askForChanged\",\n\t options: {choices: [{\"value\":\"askForChanged\",\"label\":\"Ask for changed files\"},{\"value\":\"forceEverything\",\"label\":\"Force everything\"},{\"value\":\"forceRequiredSkipRest\",\"label\":\"Force required (skipping all non-essential)\"}],}\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(upgradeSkillOptionsSchema)\n\nexport default upgradeSkillOptionsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,yBAAwF,GAAI;EACjGC,EAAE,EAAE,qBAAqB;EACzBC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,sBAAsB;EAC5BC,WAAW,EAAE,+DAA+D;EACxEC,MAAM,EAAE;IACA;IACA,aAAa,EAAE;MACXC,KAAK,EAAE,cAAc;MACrBC,IAAI,EAAE,QAAQ;MACdC,YAAY,EAAE,eAAe;MAC7BC,OAAO,EAAE;QAACC,OAAO,EAAE,CAAC;UAAC,OAAO,EAAC,eAAe;UAAC,OAAO,EAAC;QAAuB,CAAC,EAAC;UAAC,OAAO,EAAC,iBAAiB;UAAC,OAAO,EAAC;QAAkB,CAAC,EAAC;UAAC,OAAO,EAAC,uBAAuB;UAAC,OAAO,EAAC;QAA6C,CAAC;MAAE;IAClO;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACd,yBAAyB,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,cAEpDhB,yBAAyB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"watcherDidDetectChangesEmitPayload.schema.js","names":["_schema","require","_generatedFile","_interopRequireDefault","_generatedDir","watcherDidDetectChangesEmitPayloadSchema","id","version","namespace","name","fields","type","isRequired","isArray","options","schemas","generatedFileSchema_v2020_07_22","generatedDirSchema_v2020_07_22","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\nimport generatedFileSchema_v2020_07_22 from '#spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema'\nimport generatedDirSchema_v2020_07_22 from '#spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema'\n\nconst watcherDidDetectChangesEmitPayloadSchema: SpruceSchemas.SpruceCli.v2020_07_22.WatcherDidDetectChangesEmitPayloadSchema = {\n\tid: 'watcherDidDetectChangesEmitPayload',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Watcher did detect changes emit payload',\n\t fields: {\n\t /** . */\n\t 'changes': {\n\t type: 'schema',\n\t isRequired: true,\n\t isArray: true,\n\t options: {schemas: [generatedFileSchema_v2020_07_22, generatedDirSchema_v2020_07_22],}\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(watcherDidDetectChangesEmitPayloadSchema)\n\nexport default watcherDidDetectChangesEmitPayloadSchema\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAMI,wCAAsH,GAAI;EAC/HC,EAAE,EAAE,oCAAoC;EACxCC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,yCAAyC;EAC3CC,MAAM,EAAE;IACA;IACA,SAAS,EAAE;MACPC,IAAI,EAAE,QAAQ;MACdC,UAAU,EAAE,IAAI;MAChBC,OAAO,EAAE,IAAI;MACbC,OAAO,EAAE;QAACC,OAAO,EAAE,CAACC,yBAA+B,EAAEC,wBAA8B;MAAE;IACzF;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACf,wCAAwC,CAAC;AAAA,IAAAgB,QAAA,GAAAC,OAAA,cAEnEjB,wCAAwC"}
1
+ {"version":3,"file":"watcherDidDetectChangesEmitPayload.schema.js","names":["_schema","require","_generatedFile","_interopRequireDefault","_generatedDir","watcherDidDetectChangesEmitPayloadSchema","id","version","namespace","name","fields","type","isRequired","isArray","options","schemas","generatedFileSchema_v2020_07_22","generatedDirSchema_v2020_07_22","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\nimport generatedFileSchema_v2020_07_22 from '#spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema'\nimport generatedDirSchema_v2020_07_22 from '#spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema'\n\nconst watcherDidDetectChangesEmitPayloadSchema: SpruceSchemas.SpruceCli.v2020_07_22.WatcherDidDetectChangesEmitPayloadSchema = {\n\tid: 'watcherDidDetectChangesEmitPayload',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Watcher did detect changes emit payload',\n\t fields: {\n\t /** . */\n\t 'changes': {\n\t type: 'schema',\n\t isRequired: true,\n\t isArray: true,\n\t options: {schemas: [generatedFileSchema_v2020_07_22, generatedDirSchema_v2020_07_22],}\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(watcherDidDetectChangesEmitPayloadSchema)\n\nexport default watcherDidDetectChangesEmitPayloadSchema\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAMI,wCAAsH,GAAI;EAC/HC,EAAE,EAAE,oCAAoC;EACxCC,OAAO,EAAE,aAAa;EACtBC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,yCAAyC;EAC3CC,MAAM,EAAE;IACA;IACA,SAAS,EAAE;MACPC,IAAI,EAAE,QAAQ;MACdC,UAAU,EAAE,IAAI;MAChBC,OAAO,EAAE,IAAI;MACbC,OAAO,EAAE;QAACC,OAAO,EAAE,CAACC,yBAA+B,EAAEC,wBAA8B;MAAE;IACzF;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACf,wCAAwC,CAAC;AAAA,IAAAgB,QAAA,GAAAC,OAAA,cAEnEjB,wCAAwC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"eventSource.schema.js","names":["_spruceEventUtils","require"],"sources":["../../../../../src/.spruce/schemas/spruceEventUtils/v2021_09_13/eventSource.schema.ts"],"sourcesContent":["export { eventSourceSchema as default } from '@sprucelabs/spruce-event-utils'\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA"}
1
+ {"version":3,"file":"eventSource.schema.js","names":["_spruceEventUtils","require"],"sources":["../../../../../src/.spruce/schemas/spruceEventUtils/v2021_09_13/eventSource.schema.ts"],"sourcesContent":["export { eventSourceSchema as default } from '@sprucelabs/spruce-event-utils'\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"skill.types.js","names":["require"],"sources":["../../src/.spruce/skill.types.ts"],"sourcesContent":["import './errors/errors.types'\nimport './errors/options.types'\nimport './schemas/schemas.types'\nimport './schemas/fields/fields.types'"],"mappings":";;AAAAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA"}
1
+ {"version":3,"file":"skill.types.js","names":["require"],"sources":["../../src/.spruce/skill.types.ts"],"sourcesContent":["import './errors/errors.types'\nimport './errors/options.types'\nimport './schemas/schemas.types'\nimport './schemas/fields/fields.types'"],"mappings":";;AAAAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalEmitter.js","names":["_mercuryEventEmitter","require","_mercuryTypes","_schema","_actionResponse","_interopRequireDefault","_watcherDidDetectChangesEmitPayload","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","ownKeys","r","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","globalContract","exports","buildEventContract","eventSignatures","emitPayloadSchema","watcherDidDetectChangesEmitPayloadSchema","buildSchema","id","fields","schemas","type","isArray","options","valueType","responsePayloadSchema","abstractClasses","isRequired","schema","name","label","featureCode","importsWhenLocal","actionCode","actionResponseSchema","results","reporter","filesToSkip","CliGlobalEmitter","_AbstractEventEmitter","_inherits2","_classCallCheck2","_createClass2","key","value","Emitter","shouldEmitSequentally","AbstractEventEmitter"],"sources":["../src/GlobalEmitter.ts"],"sourcesContent":["import { AbstractEventEmitter } from '@sprucelabs/mercury-event-emitter'\nimport {\n\tbuildEventContract,\n\tMercuryEventEmitter,\n} from '@sprucelabs/mercury-types'\nimport { buildSchema } from '@sprucelabs/schema'\nimport actionResponseSchema from '#spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema'\nimport watcherDidDetectChangesEmitPayloadSchema from '#spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema'\n\nexport const globalContract = buildEventContract({\n\teventSignatures: {\n\t\t'watcher.did-detect-change': {\n\t\t\temitPayloadSchema: watcherDidDetectChangesEmitPayloadSchema,\n\t\t},\n\t\t'schema.did-fetch-schemas': {\n\t\t\temitPayloadSchema: buildSchema({\n\t\t\t\tid: 'didFetchSchemasEmitPayload',\n\t\t\t\tfields: {\n\t\t\t\t\tschemas: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\tisArray: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'Schema',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t\tresponsePayloadSchema: buildSchema({\n\t\t\t\tid: 'didFetchSchemasResponsePayload',\n\t\t\t\tfields: {\n\t\t\t\t\tschemas: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\tisArray: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'Schema',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t\t'skill.register-dashboard-widgets': {},\n\n\t\t'test.register-abstract-test-classes': {\n\t\t\tresponsePayloadSchema: buildSchema({\n\t\t\t\tid: 'registerAbstractTestClassResponsePayload',\n\t\t\t\tfields: {\n\t\t\t\t\tabstractClasses: {\n\t\t\t\t\t\ttype: 'schema',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\tisArray: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tschema: buildSchema({\n\t\t\t\t\t\t\t\tid: 'abstractClassRegistration',\n\t\t\t\t\t\t\t\tfields: {\n\t\t\t\t\t\t\t\t\tname: {\n\t\t\t\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tlabel: {\n\t\t\t\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\timport: {\n\t\t\t\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tfeatureCode: {\n\t\t\t\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t\t'feature.will-execute': {\n\t\t\temitPayloadSchema: buildSchema({\n\t\t\t\tid: 'willExecuteEmitPayload',\n\t\t\t\timportsWhenLocal: [\n\t\t\t\t\t'import { FeatureActionResponse } from #spruce/../features/features/features.types',\n\t\t\t\t],\n\t\t\t\tfields: {\n\t\t\t\t\tfeatureCode: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t},\n\t\t\t\t\tactionCode: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t},\n\t\t\t\t\toptions: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'Record<string, any>',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t\tresponsePayloadSchema: actionResponseSchema,\n\t\t},\n\t\t'feature.did-execute': {\n\t\t\temitPayloadSchema: buildSchema({\n\t\t\t\tid: 'didExecuteEmitPayload',\n\t\t\t\timportsWhenLocal: [\n\t\t\t\t\t'import { FeatureActionResponse } from #spruce/../features/features/features.types',\n\t\t\t\t],\n\t\t\t\tfields: {\n\t\t\t\t\tfeatureCode: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t},\n\t\t\t\t\tactionCode: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t},\n\t\t\t\t\tresults: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'FeatureActionResponse',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t\tresponsePayloadSchema: buildSchema({\n\t\t\t\tid: 'didExecuteResponsePayload',\n\t\t\t\tfields: {\n\t\t\t\t\t...actionResponseSchema.fields,\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t\t'test.reporter-did-boot': {\n\t\t\temitPayloadSchema: buildSchema({\n\t\t\t\tid: 'testReporterDidBootEmitPayload',\n\t\t\t\tfields: {\n\t\t\t\t\treporter: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'TestAction',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t\t'skill.will-write-directory-template': {\n\t\t\tresponsePayloadSchema: buildSchema({\n\t\t\t\tid: 'wilLWriteDirectoryTemplateResponsePayload',\n\t\t\t\tfields: {\n\t\t\t\t\tfilesToSkip: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisArray: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t},\n})\n\nexport type GlobalEventContract = typeof globalContract\nexport type GlobalEmitter = MercuryEventEmitter<GlobalEventContract>\n\nexport default class CliGlobalEmitter extends AbstractEventEmitter<GlobalEventContract> {\n\tpublic static Emitter() {\n\t\treturn new CliGlobalEmitter(globalContract, {\n\t\t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AAC;IACH;EAAC;EAAA,OAAAR,gBAAA;AAAA,EAL4CS,yCAAoB"}
1
+ {"version":3,"file":"GlobalEmitter.js","names":["_mercuryEventEmitter","require","_mercuryTypes","_schema","_actionResponse","_interopRequireDefault","_watcherDidDetectChangesEmitPayload","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","ownKeys","r","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","globalContract","exports","buildEventContract","eventSignatures","emitPayloadSchema","watcherDidDetectChangesEmitPayloadSchema","buildSchema","id","fields","schemas","type","isArray","options","valueType","responsePayloadSchema","abstractClasses","isRequired","schema","name","label","featureCode","importsWhenLocal","actionCode","actionResponseSchema","results","reporter","filesToSkip","CliGlobalEmitter","_AbstractEventEmitter","_inherits2","_classCallCheck2","_createClass2","key","value","Emitter","shouldEmitSequentally","AbstractEventEmitter"],"sources":["../src/GlobalEmitter.ts"],"sourcesContent":["import { AbstractEventEmitter } from '@sprucelabs/mercury-event-emitter'\nimport {\n\tbuildEventContract,\n\tMercuryEventEmitter,\n} from '@sprucelabs/mercury-types'\nimport { buildSchema } from '@sprucelabs/schema'\nimport actionResponseSchema from '#spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema'\nimport watcherDidDetectChangesEmitPayloadSchema from '#spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema'\n\nexport const globalContract = buildEventContract({\n\teventSignatures: {\n\t\t'watcher.did-detect-change': {\n\t\t\temitPayloadSchema: watcherDidDetectChangesEmitPayloadSchema,\n\t\t},\n\t\t'schema.did-fetch-schemas': {\n\t\t\temitPayloadSchema: buildSchema({\n\t\t\t\tid: 'didFetchSchemasEmitPayload',\n\t\t\t\tfields: {\n\t\t\t\t\tschemas: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\tisArray: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'Schema',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t\tresponsePayloadSchema: buildSchema({\n\t\t\t\tid: 'didFetchSchemasResponsePayload',\n\t\t\t\tfields: {\n\t\t\t\t\tschemas: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\tisArray: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'Schema',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t\t'skill.register-dashboard-widgets': {},\n\n\t\t'test.register-abstract-test-classes': {\n\t\t\tresponsePayloadSchema: buildSchema({\n\t\t\t\tid: 'registerAbstractTestClassResponsePayload',\n\t\t\t\tfields: {\n\t\t\t\t\tabstractClasses: {\n\t\t\t\t\t\ttype: 'schema',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\tisArray: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tschema: buildSchema({\n\t\t\t\t\t\t\t\tid: 'abstractClassRegistration',\n\t\t\t\t\t\t\t\tfields: {\n\t\t\t\t\t\t\t\t\tname: {\n\t\t\t\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tlabel: {\n\t\t\t\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\timport: {\n\t\t\t\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tfeatureCode: {\n\t\t\t\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t\t'feature.will-execute': {\n\t\t\temitPayloadSchema: buildSchema({\n\t\t\t\tid: 'willExecuteEmitPayload',\n\t\t\t\timportsWhenLocal: [\n\t\t\t\t\t'import { FeatureActionResponse } from #spruce/../features/features/features.types',\n\t\t\t\t],\n\t\t\t\tfields: {\n\t\t\t\t\tfeatureCode: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t},\n\t\t\t\t\tactionCode: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t},\n\t\t\t\t\toptions: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'Record<string, any>',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t\tresponsePayloadSchema: actionResponseSchema,\n\t\t},\n\t\t'feature.did-execute': {\n\t\t\temitPayloadSchema: buildSchema({\n\t\t\t\tid: 'didExecuteEmitPayload',\n\t\t\t\timportsWhenLocal: [\n\t\t\t\t\t'import { FeatureActionResponse } from #spruce/../features/features/features.types',\n\t\t\t\t],\n\t\t\t\tfields: {\n\t\t\t\t\tfeatureCode: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t},\n\t\t\t\t\tactionCode: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t},\n\t\t\t\t\tresults: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'FeatureActionResponse',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t\tresponsePayloadSchema: buildSchema({\n\t\t\t\tid: 'didExecuteResponsePayload',\n\t\t\t\tfields: {\n\t\t\t\t\t...actionResponseSchema.fields,\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t\t'test.reporter-did-boot': {\n\t\t\temitPayloadSchema: buildSchema({\n\t\t\t\tid: 'testReporterDidBootEmitPayload',\n\t\t\t\tfields: {\n\t\t\t\t\treporter: {\n\t\t\t\t\t\ttype: 'raw',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalueType: 'TestAction',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t\t'skill.will-write-directory-template': {\n\t\t\tresponsePayloadSchema: buildSchema({\n\t\t\t\tid: 'wilLWriteDirectoryTemplateResponsePayload',\n\t\t\t\tfields: {\n\t\t\t\t\tfilesToSkip: {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tisArray: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t},\n})\n\nexport type GlobalEventContract = typeof globalContract\nexport type GlobalEmitter = MercuryEventEmitter<GlobalEventContract>\n\nexport default class CliGlobalEmitter extends AbstractEventEmitter<GlobalEventContract> {\n\tpublic static Emitter() {\n\t\treturn new CliGlobalEmitter(globalContract, {\n\t\t\tshouldEmitSequentally: true,\n\t\t}) as GlobalEmitter\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAIA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,mCAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAAsI,SAAAM,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,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wB,EAAE;MACzBJ,iBAAiB,EAAE,IAAAE,mBAAW,EAAC;QAC9BC,EAAE,EAAE,gCAAgC;QACpCC,MAAM,EAAE;UACPiB,QAAQ,EAAE;YACTf,IAAI,EAAE,KAAK;YACXM,UAAU,EAAE,IAAI;YAChBJ,OAAO,EAAE;cACRC,SAAS,EAAE;YACZ;UACD;QACD;MACD,CAAC;IACF,CAAC;IACD,qCAAqC,EAAE;MACtCC,qBAAqB,EAAE,IAAAR,mBAAW,EAAC;QAClCC,EAAE,EAAE,2CAA2C;QAC/CC,MAAM,EAAE;UACPkB,WAAW,EAAE;YACZhB,IAAI,EAAE,MAAM;YACZC,OAAO,EAAE;UACV;QACD;MACD,CAAC;IACF;EACD;AACD,CAAC,CAAC;AAAA,IAKmBgB,gBAAgB,GAAA1B,OAAA,qCAAA2B,qBAAA;EAAA,IAAAC,UAAA,aAAAF,gBAAA,EAAAC,qBAAA;EAAA,SAAAD,iBAAA;IAAA,IAAAG,gBAAA,mBAAAH,gBAAA;IAAA,OAAA3D,UAAA,OAAA2D,gBAAA,EAAAlC,SAAA;EAAA;EAAA,IAAAsC,aAAA,aAAAJ,gBAAA;IAAAK,GAAA;IAAAC,KAAA,EACpC,SAAAC,QAAA,EAAwB;MACvB,OAAO,IAAIP,gBAAgB,CAAC3B,cAAc,EAAE;QAC3CmC,qBAAqB,EAAE;MACxB,CAAC,CAAC;IACH;EAAC;EAAA,OAAAR,gBAAA;AAAA,EAL4CS,yCAAoB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"InFlightEntertainment.js","names":["_GameService","_interopRequireDefault","require","InFlightEntertainment","exports","_classCallCheck2","_createClass2","key","value","setup","options","game","GameService","command","ui","start","intro","_this$game","activeGameCount","play","writeStatus","message","_this$game2","setStatusMessage","concat","stop","_this$game3","kill","_defineProperty2"],"sources":["../src/InFlightEntertainment.ts"],"sourcesContent":["import TerminalInterface from './interfaces/TerminalInterface'\nimport CommandService from './services/CommandService'\nimport GameService from './services/GameService'\n\nexport default class InFlightEntertainment {\n\tprivate static activeGameCount = 0\n\tprivate static game?: GameService\n\n\tpublic static setup(options: {\n\t\tcommand: CommandService\n\t\tui: TerminalInterface\n\t}) {\n\t\tthis.game = new GameService(options.command, options.ui)\n\t}\n\n\tpublic static start(intro?: string[]) {\n\t\tif (this.activeGameCount > 0) {\n\t\t\tthis.activeGameCount++\n\t\t\treturn\n\t\t}\n\t\tthis.activeGameCount = 1\n\n\t\tvoid this.game?.play(\n\t\t\tintro ?? [\n\t\t\t\t`I gotta install some dependencies to get things working.`,\n\t\t\t\t`This can be slow, so in the mean time, enjoy some games! 🤩`,\n\t\t\t]\n\t\t)\n\t}\n\n\tpublic static writeStatus(message: string) {\n\t\tthis.game?.setStatusMessage(`⏱ ${message}`)\n\t}\n\n\tpublic static stop() {\n\t\tthis.activeGameCount--\n\n\t\tif (this.activeGameCount === 0) {\n\t\t\tthis.game?.kill()\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;;;;AAEA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAgD,IAE3BC,qBAAqB,GAAAC,OAAA;EAAA,SAAAD,sBAAA;IAAA,IAAAE,gBAAA,mBAAAF,qBAAA;EAAA;EAAA,IAAAG,aAAA,aAAAH,qBAAA;IAAAI,GAAA;IAAAC,KAAA,EAIzC,SAAAC,MAAoBC,OAGnB,EAAE;MACF,IAAI,CAACC,IAAI,GAAG,IAAIC,uBAAW,CAACF,OAAO,CAACG,OAAO,EAAEH,OAAO,CAACI,EAAE,CAAC;IACzD;EAAC;IAAAP,GAAA;IAAAC,KAAA,EAED,SAAAO,MAAoBC,KAAgB,EAAE;MAAA,IAAAC,UAAA;MACrC,IAAI,IAAI,CAACC,eAAe,GAAG,CAAC,EAAE;QAC7B,IAAI,CAACA,eAAe,EAAE;QACtB;MACD;MACA,IAAI,CAACA,eAAe,GAAG,CAAC;MAExB,OAAAD,UAAA,GAAK,IAAI,CAACN,IAAI,cAAAM,UAAA,uBAATA,UAAA,CAAWE,IAAI,CACnBH,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,qIAIV,CAAC;IACF;EAAC;IAAAT,GAAA;IAAAC,KAAA,EAED,SAAAY,YAA0BC,OAAe,EAAE;MAAA,IAAAC,WAAA;MAC1C,CAAAA,WAAA,OAAI,CAACX,IAAI,cAAAW,WAAA,eAATA,WAAA,CAAWC,gBAAgB,YAAAC,MAAA,CAAOH,OAAO,CAAE,CAAC;IAC7C;EAAC;IAAAd,GAAA;IAAAC,KAAA,EAED,SAAAiB,KAAA,EAAqB;MACpB,IAAI,CAACP,eAAe,EAAE;MAEtB,IAAI,IAAI,CAACA,eAAe,KAAK,CAAC,EAAE;QAAA,IAAAQ,WAAA;QAC/B,CAAAA,WAAA,OAAI,CAACf,IAAI,cAAAe,WAAA,eAATA,WAAA,CAAWC,IAAI,CAAC,CAAC;MAClB;IACD;EAAC;EAAA,OAAAxB,qBAAA;AAAA;AAAA,IAAAyB,gBAAA,aApCmBzB,qBAAqB,qBACR,CAAC;AAAA,IAAAyB,gBAAA,aADdzB,qBAAqB"}
1
+ {"version":3,"file":"InFlightEntertainment.js","names":["_GameService","_interopRequireDefault","require","InFlightEntertainment","exports","_classCallCheck2","_createClass2","key","value","setup","options","game","GameService","command","ui","start","intro","_this$game","activeGameCount","play","writeStatus","message","_this$game2","setStatusMessage","concat","stop","_this$game3","kill","_defineProperty2"],"sources":["../src/InFlightEntertainment.ts"],"sourcesContent":["import TerminalInterface from './interfaces/TerminalInterface'\nimport CommandService from './services/CommandService'\nimport GameService from './services/GameService'\n\nexport default class InFlightEntertainment {\n\tprivate static activeGameCount = 0\n\tprivate static game?: GameService\n\n\tpublic static setup(options: {\n\t\tcommand: CommandService\n\t\tui: TerminalInterface\n\t}) {\n\t\tthis.game = new GameService(options.command, options.ui)\n\t}\n\n\tpublic static start(intro?: string[]) {\n\t\tif (this.activeGameCount > 0) {\n\t\t\tthis.activeGameCount++\n\t\t\treturn\n\t\t}\n\t\tthis.activeGameCount = 1\n\n\t\tvoid this.game?.play(\n\t\t\tintro ?? [\n\t\t\t\t`I gotta install some dependencies to get things working.`,\n\t\t\t\t`This can be slow, so in the mean time, enjoy some games! 🤩`,\n\t\t\t]\n\t\t)\n\t}\n\n\tpublic static writeStatus(message: string) {\n\t\tthis.game?.setStatusMessage(`⏱ ${message}`)\n\t}\n\n\tpublic static stop() {\n\t\tthis.activeGameCount--\n\n\t\tif (this.activeGameCount === 0) {\n\t\t\tthis.game?.kill()\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;;;;AAEA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAgD,IAE3BC,qBAAqB,GAAAC,OAAA;EAAA,SAAAD,sBAAA;IAAA,IAAAE,gBAAA,mBAAAF,qBAAA;EAAA;EAAA,IAAAG,aAAA,aAAAH,qBAAA;IAAAI,GAAA;IAAAC,KAAA,EAIzC,SAAAC,MAAoBC,OAGnB,EAAE;MACF,IAAI,CAACC,IAAI,GAAG,IAAIC,uBAAW,CAACF,OAAO,CAACG,OAAO,EAAEH,OAAO,CAACI,EAAE,CAAC;IACzD;EAAC;IAAAP,GAAA;IAAAC,KAAA,EAED,SAAAO,MAAoBC,KAAgB,EAAE;MAAA,IAAAC,UAAA;MACrC,IAAI,IAAI,CAACC,eAAe,GAAG,CAAC,EAAE;QAC7B,IAAI,CAACA,eAAe,EAAE;QACtB;MACD;MACA,IAAI,CAACA,eAAe,GAAG,CAAC;MAExB,OAAAD,UAAA,GAAK,IAAI,CAACN,IAAI,cAAAM,UAAA,uBAATA,UAAA,CAAWE,IAAI,CACnBH,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,qIAIV,CAAC;IACF;EAAC;IAAAT,GAAA;IAAAC,KAAA,EAED,SAAAY,YAA0BC,OAAe,EAAE;MAAA,IAAAC,WAAA;MAC1C,CAAAA,WAAA,OAAI,CAACX,IAAI,cAAAW,WAAA,eAATA,WAAA,CAAWC,gBAAgB,YAAAC,MAAA,CAAOH,OAAO,CAAE,CAAC;IAC7C;EAAC;IAAAd,GAAA;IAAAC,KAAA,EAED,SAAAiB,KAAA,EAAqB;MACpB,IAAI,CAACP,eAAe,EAAE;MAEtB,IAAI,IAAI,CAACA,eAAe,KAAK,CAAC,EAAE;QAAA,IAAAQ,WAAA;QAC/B,CAAAA,WAAA,OAAI,CAACf,IAAI,cAAAe,WAAA,eAATA,WAAA,CAAWC,IAAI,CAAC,CAAC;MAClB;IACD;EAAC;EAAA,OAAAxB,qBAAA;AAAA;AAAA,IAAAyB,gBAAA,aApCmBzB,qBAAqB,qBACR,CAAC;AAAA,IAAAyB,gBAAA,aADdzB,qBAAqB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"AddingADependency.test.js","names":["_testUtils","require","_AbstractSkillTest2","_interopRequireDefault","_constants","_uiAssert","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_class","_ConfiguringDependenciesTest","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","ConfiguringDependenciesTest","exports","test","_AbstractSkillTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_hasAddDependencyAction","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","assert","isFunction","Action","execute","stop","hasAddDependencyAction","_errorsWhenPassedBadNamespace","_callee2","results","_callee2$","_context2","getSkillFixture","registerCurrentSkill","name","namespace","sent","isTruthy","errors","errorAssert","assertError","errorsWhenPassedBadNamespace","_succeedsWhenPassedGoodNamespace","_callee3","parentSkill","settings","dependencies","_callee3$","_context3","seedDemoSkill","slug","isFalsy","Service","get","isEqualDeep","id","succeedsWhenPassedGoodNamespace","_cantAddDependencyTwice","_callee4","_this","err","_callee4$","_context4","doesThrow","add","cantAddDependencyTwice","_asksToSelectSkillWhenNoNamespacePassed","_callee5","otherSkill","promise","last","_callee5$","_context5","waitForInput","ui","getLastInvocation","doesInclude","options","choices","label","sendInput","asksToSelectSkillWhenNoNamespacePassed","_doesNotShowSkillsThatAreAlreadySetAsADependency","_callee6","_callee6$","_context6","people","loginAsDemoPerson","uiAssert","assertSelectDidNotRenderChoice","reset","doesNotShowSkillsThatAreAlreadySetAsADependency","_canAddSkillThatWasCreatedBySomeoneElse","_callee7","skill","_callee7$","_context7","isPublished","DEMO_NUMBER_GLOBAL_EVENTS","canAddSkillThatWasCreatedBySomeoneElse","AbstractSkillTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/AddingADependency.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport { DEMO_NUMBER_GLOBAL_EVENTS } from '../../tests/constants'\nimport uiAssert from '../../tests/utilities/uiAssert.utility'\n\nexport default class ConfiguringDependenciesTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\tprivate static parentSkill: {\n\t\tid: string\n\t\tslug: string\n\t\tname: string\n\t}\n\n\t@test()\n\tprotected static async hasAddDependencyAction() {\n\t\tassert.isFunction(this.Action('dependency', 'add').execute)\n\t}\n\n\t@test()\n\tprotected static async errorsWhenPassedBadNamespace() {\n\t\tawait this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'current skill in adding deps',\n\t\t})\n\n\t\tconst results = await this.Action('dependency', 'add').execute({\n\t\t\tnamespace: 'waka-waka',\n\t\t})\n\n\t\tassert.isTruthy(results.errors)\n\n\t\terrorAssert.assertError(results.errors[0], 'SKILL_NOT_FOUND')\n\t}\n\n\t@test()\n\tprotected static async succeedsWhenPassedGoodNamespace() {\n\t\tconst parentSkill = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependent skill',\n\t\t})\n\n\t\tconst results = await this.Action('dependency', 'add').execute({\n\t\t\tnamespace: parentSkill.slug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tthis.parentSkill = parentSkill\n\n\t\tconst settings = this.Service('settings')\n\t\tconst dependencies = settings.get('dependencies')\n\n\t\tassert.isEqualDeep(dependencies, [\n\t\t\t{\n\t\t\t\tid: parentSkill.id,\n\t\t\t\tnamespace: parentSkill.slug,\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static async cantAddDependencyTwice() {\n\t\tconst err = assert.doesThrow(() =>\n\t\t\tthis.Service('dependency').add({\n\t\t\t\tid: this.parentSkill.id,\n\t\t\t\tnamespace: this.parentSkill.slug,\n\t\t\t})\n\t\t)\n\n\t\terrorAssert.assertError(err, 'DEPENDENCY_EXISTS')\n\t}\n\n\t@test()\n\tprotected static async asksToSelectSkillWhenNoNamespacePassed() {\n\t\tconst otherSkill = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependent skill',\n\t\t})\n\n\t\tconst promise = this.Action('dependency', 'add').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: otherSkill.slug,\n\t\t\tlabel: otherSkill.name,\n\t\t})\n\n\t\tawait this.ui.sendInput(otherSkill.slug)\n\n\t\tconst results = await promise\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst settings = this.Service('settings')\n\t\tconst dependencies = settings.get('dependencies')\n\n\t\tassert.isEqualDeep(dependencies[1], {\n\t\t\tid: otherSkill.id,\n\t\t\tnamespace: otherSkill.slug,\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async doesNotShowSkillsThatAreAlreadySetAsADependency() {\n\t\tawait this.people.loginAsDemoPerson()\n\n\t\tvoid this.Action('dependency', 'add').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tuiAssert.assertSelectDidNotRenderChoice(\n\t\t\tthis.ui,\n\t\t\tthis.parentSkill.slug,\n\t\t\tthis.parentSkill.name\n\t\t)\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async canAddSkillThatWasCreatedBySomeoneElse() {\n\t\tconst skill = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'global dependency skill',\n\t\t\tisPublished: true,\n\t\t})\n\n\t\tawait this.people.loginAsDemoPerson(DEMO_NUMBER_GLOBAL_EVENTS)\n\n\t\tconst results = await this.Action('dependency', 'add').execute({\n\t\t\tnamespace: skill.slug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AAA6D,IAAAK,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA,EAAAC,4BAAA;AAAA,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,EAAAK,yBAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,aAAAH,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA,SAAAG,0BAAA,cAAAL,CAAA,IAAAU,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAP,OAAA,CAAAC,SAAA,CAAAG,OAAA,iCAAAV,CAAA,aAAAK,yBAAA,YAAAA,0BAAA,aAAAL,CAAA;AAAA,IAExCc,2BAA2B,GAAAC,OAAA,eAAAzB,IAAA,GAQ9C,IAAA0B,eAAI,EAAC,CAAC,EAAAzB,KAAA,GAKN,IAAAyB,eAAI,EAAC,CAAC,EAAAxB,KAAA,GAeN,IAAAwB,eAAI,EAA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;QAAA,OAAAP,uCAAA,CAAAhG,KAAA,OAAAW,SAAA;MAAA;MAAA,OAAA4F,sCAAA;IAAA;EAAA;EAAA,OAAAlG,2BAAA;AAAA,EA/HuDmG,8BAAiB,OAAAC,gBAAA,aAAApH,4BAAA,mBACxC,QAAQ,OAAAoH,gBAAA,aAAApH,4BAAA,0BAAAA,4BAAA,QAAAqH,0BAAA,aAAAtH,MAAA,6BAAAP,IAAA,GAAA8H,MAAA,CAAAC,wBAAA,CAAAxH,MAAA,6BAAAA,MAAA,OAAAsH,0BAAA,aAAAtH,MAAA,mCAAAN,KAAA,GAAA6H,MAAA,CAAAC,wBAAA,CAAAxH,MAAA,mCAAAA,MAAA,OAAAsH,0BAAA,aAAAtH,MAAA,sCAAAL,KAAA,GAAA4H,MAAA,CAAAC,wBAAA,CAAAxH,MAAA,sCAAAA,MAAA,OAAAsH,0BAAA,aAAAtH,MAAA,6BAAAJ,KAAA,GAAA2H,MAAA,CAAAC,wBAAA,CAAAxH,MAAA,6BAAAA,MAAA,OAAAsH,0BAAA,aAAAtH,MAAA,6CAAAH,KAAA,GAAA0H,MAAA,CAAAC,wBAAA,CAAAxH,MAAA,6CAAAA,MAAA,OAAAsH,0BAAA,aAAAtH,MAAA,sDAAAF,KAAA,GAAAyH,MAAA,CAAAC,wBAAA,CAAAxH,MAAA,sDAAAA,MAAA,OAAAsH,0BAAA,aAAAtH,MAAA,6CAAAD,KAAA,GAAAwH,MAAA,CAAAC,wBAAA,CAAAxH,MAAA,6CAAAA,MAAA,IAAAA,MAAA"}
1
+ {"version":3,"file":"AddingADependency.test.js","names":["_testUtils","require","_AbstractSkillTest2","_interopRequireDefault","_constants","_uiAssert","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_class","_ConfiguringDependenciesTest","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","ConfiguringDependenciesTest","exports","test","_AbstractSkillTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_hasAddDependencyAction","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","assert","isFunction","Action","execute","stop","hasAddDependencyAction","_errorsWhenPassedBadNamespace","_callee2","results","_callee2$","_context2","getSkillFixture","registerCurrentSkill","name","namespace","sent","isTruthy","errors","errorAssert","assertError","errorsWhenPassedBadNamespace","_succeedsWhenPassedGoodNamespace","_callee3","parentSkill","settings","dependencies","_callee3$","_context3","seedDemoSkill","slug","isFalsy","Service","get","isEqualDeep","id","succeedsWhenPassedGoodNamespace","_cantAddDependencyTwice","_callee4","_this","err","_callee4$","_context4","doesThrow","add","cantAddDependencyTwice","_asksToSelectSkillWhenNoNamespacePassed","_callee5","otherSkill","promise","last","_callee5$","_context5","waitForInput","ui","getLastInvocation","doesInclude","options","choices","label","sendInput","asksToSelectSkillWhenNoNamespacePassed","_doesNotShowSkillsThatAreAlreadySetAsADependency","_callee6","_callee6$","_context6","people","loginAsDemoPerson","uiAssert","assertSelectDidNotRenderChoice","reset","doesNotShowSkillsThatAreAlreadySetAsADependency","_canAddSkillThatWasCreatedBySomeoneElse","_callee7","skill","_callee7$","_context7","isPublished","DEMO_NUMBER_GLOBAL_EVENTS","canAddSkillThatWasCreatedBySomeoneElse","AbstractSkillTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/AddingADependency.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport { DEMO_NUMBER_GLOBAL_EVENTS } from '../../tests/constants'\nimport uiAssert from '../../tests/utilities/uiAssert.utility'\n\nexport default class ConfiguringDependenciesTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\tprivate static parentSkill: {\n\t\tid: string\n\t\tslug: string\n\t\tname: string\n\t}\n\n\t@test()\n\tprotected static async hasAddDependencyAction() {\n\t\tassert.isFunction(this.Action('dependency', 'add').execute)\n\t}\n\n\t@test()\n\tprotected static async errorsWhenPassedBadNamespace() {\n\t\tawait this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'current skill in adding deps',\n\t\t})\n\n\t\tconst results = await this.Action('dependency', 'add').execute({\n\t\t\tnamespace: 'waka-waka',\n\t\t})\n\n\t\tassert.isTruthy(results.errors)\n\n\t\terrorAssert.assertError(results.errors[0], 'SKILL_NOT_FOUND')\n\t}\n\n\t@test()\n\tprotected static async succeedsWhenPassedGoodNamespace() {\n\t\tconst parentSkill = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependent skill',\n\t\t})\n\n\t\tconst results = await this.Action('dependency', 'add').execute({\n\t\t\tnamespace: parentSkill.slug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tthis.parentSkill = parentSkill\n\n\t\tconst settings = this.Service('settings')\n\t\tconst dependencies = settings.get('dependencies')\n\n\t\tassert.isEqualDeep(dependencies, [\n\t\t\t{\n\t\t\t\tid: parentSkill.id,\n\t\t\t\tnamespace: parentSkill.slug,\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static async cantAddDependencyTwice() {\n\t\tconst err = assert.doesThrow(() =>\n\t\t\tthis.Service('dependency').add({\n\t\t\t\tid: this.parentSkill.id,\n\t\t\t\tnamespace: this.parentSkill.slug,\n\t\t\t})\n\t\t)\n\n\t\terrorAssert.assertError(err, 'DEPENDENCY_EXISTS')\n\t}\n\n\t@test()\n\tprotected static async asksToSelectSkillWhenNoNamespacePassed() {\n\t\tconst otherSkill = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependent skill',\n\t\t})\n\n\t\tconst promise = this.Action('dependency', 'add').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: otherSkill.slug,\n\t\t\tlabel: otherSkill.name,\n\t\t})\n\n\t\tawait this.ui.sendInput(otherSkill.slug)\n\n\t\tconst results = await promise\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst settings = this.Service('settings')\n\t\tconst dependencies = settings.get('dependencies')\n\n\t\tassert.isEqualDeep(dependencies[1], {\n\t\t\tid: otherSkill.id,\n\t\t\tnamespace: otherSkill.slug,\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async doesNotShowSkillsThatAreAlreadySetAsADependency() {\n\t\tawait this.people.loginAsDemoPerson()\n\n\t\tvoid this.Action('dependency', 'add').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tuiAssert.assertSelectDidNotRenderChoice(\n\t\t\tthis.ui,\n\t\t\tthis.parentSkill.slug,\n\t\t\tthis.parentSkill.name\n\t\t)\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async canAddSkillThatWasCreatedBySomeoneElse() {\n\t\tconst skill = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'global dependency skill',\n\t\t\tisPublished: true,\n\t\t})\n\n\t\tawait this.people.loginAsDemoPerson(DEMO_NUMBER_GLOBAL_EVENTS)\n\n\t\tconst results = await this.Action('dependency', 'add').execute({\n\t\t\tnamespace: skill.slug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AAA6D,IAAAK,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA,EAAAC,4BAAA;AAAA,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAA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AA,CAAAxH,MAAA,6CAAAA,MAAA,OAAAsH,0BAAA,aAAAtH,MAAA,sDAAAF,KAAA,GAAAyH,MAAA,CAAAC,wBAAA,CAAAxH,MAAA,sDAAAA,MAAA,OAAAsH,0BAAA,aAAAtH,MAAA,6CAAAD,KAAA,GAAAwH,MAAA,CAAAC,wBAAA,CAAAxH,MAAA,6CAAAA,MAAA,IAAAA,MAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"BlockingCommands.test.js","names":["_testUtils","require","_AbstractSkillTest2","_interopRequireDefault","_MockProgramFactory","_dec","_dec2","_class","_OverridingCommandsInPackageJsonTest","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","OverridingCommandsInPackageJsonTest","exports","test","_AbstractSkillTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_blockedCommandsThrow","_asyncToGenerator2","_regenerator","mark","_callee","pkg","cli","executer","results","wrap","_callee$","_context","prev","next","Service","set","path","FeatureFixture","Cli","program","MockProgramFactory","Program","sent","getActionExecuter","Action","execute","assert","isTruthy","errors","errorAssert","assertError","stop","blockedCommandsThrow","_blocksWhenCommandIsForwardedFromAnother","_callee2","_callee2$","_context2","cwd","graphicsInterface","ui","nameReadable","namePascal","nameCamel","description","blocksWhenCommandIsForwardedFromAnother","AbstractSkillTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/BlockingCommands.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport MockProgramFactory from '../../tests/MockProgramFactory'\n\nexport default class OverridingCommandsInPackageJsonTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'schemas'\n\n\t@test()\n\tprotected static async blockedCommandsThrow() {\n\t\tconst pkg = this.Service('pkg')\n\t\tpkg.set({\n\t\t\tpath: ['skill', 'blockedCommands'],\n\t\t\tvalue: { 'sync.schemas': `Stop now!` },\n\t\t})\n\n\t\tconst cli = await this.FeatureFixture().Cli({\n\t\t\tprogram: MockProgramFactory.Program(),\n\t\t})\n\n\t\t//@ts-ignore\n\t\tconst executer = cli.getActionExecuter()\n\t\tconst results = await executer.Action('schema', 'sync').execute()\n\n\t\tassert.isTruthy(results.errors)\n\t\terrorAssert.assertError(results.errors[0], 'COMMAND_BLOCKED')\n\t}\n\n\t@test()\n\tprotected static async blocksWhenCommandIsForwardedFromAnother() {\n\t\tconst pkg = this.Service('pkg')\n\t\tpkg.set({\n\t\t\tpath: ['skill', 'blockedCommands'],\n\t\t\tvalue: { 'sync.schemas': `Stop now!` },\n\t\t})\n\n\t\tconst cli = await this.FeatureFixture().Cli({\n\t\t\tprogram: MockProgramFactory.Program(),\n\t\t\tcwd: this.cwd,\n\t\t\tgraphicsInterface: this.ui,\n\t\t})\n\n\t\t//@ts-ignore\n\t\tconst executer = cli.getActionExecuter()\n\t\tconst results = await executer.Action('schema', 'create').execute({\n\t\t\tnameReadable: 'Test schema!',\n\t\t\tnamePascal: 'Test',\n\t\t\tnameCamel: 'test',\n\t\t\tdescription: 'this is so great!',\n\t\t})\n\n\t\tassert.isTruthy(results.errors)\n\t\terrorAssert.assertError(results.errors[0], 'COMMAND_BLOCKED')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAA+D,IAAAI,IAAA,EAAAC,KAAA,EAAAC,MAAA,EAAAC,oCAAA;AAAA,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,EAAAK,yBAAA,KAAAC,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,CAAA5E,MAAA,8CAAAA,MAAA,IAAAA,MAAA"}
1
+ {"version":3,"file":"BlockingCommands.test.js","names":["_testUtils","require","_AbstractSkillTest2","_interopRequireDefault","_MockProgramFactory","_dec","_dec2","_class","_OverridingCommandsInPackageJsonTest","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","OverridingCommandsInPackageJsonTest","exports","test","_AbstractSkillTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_blockedCommandsThrow","_asyncToGenerator2","_regenerator","mark","_callee","pkg","cli","executer","results","wrap","_callee$","_context","prev","next","Service","set","path","FeatureFixture","Cli","program","MockProgramFactory","Program","sent","getActionExecuter","Action","execute","assert","isTruthy","errors","errorAssert","assertError","stop","blockedCommandsThrow","_blocksWhenCommandIsForwardedFromAnother","_callee2","_callee2$","_context2","cwd","graphicsInterface","ui","nameReadable","namePascal","nameCamel","description","blocksWhenCommandIsForwardedFromAnother","AbstractSkillTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/BlockingCommands.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport MockProgramFactory from '../../tests/MockProgramFactory'\n\nexport default class OverridingCommandsInPackageJsonTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'schemas'\n\n\t@test()\n\tprotected static async blockedCommandsThrow() {\n\t\tconst pkg = this.Service('pkg')\n\t\tpkg.set({\n\t\t\tpath: ['skill', 'blockedCommands'],\n\t\t\tvalue: { 'sync.schemas': `Stop now!` },\n\t\t})\n\n\t\tconst cli = await this.FeatureFixture().Cli({\n\t\t\tprogram: MockProgramFactory.Program(),\n\t\t})\n\n\t\t//@ts-ignore\n\t\tconst executer = cli.getActionExecuter()\n\t\tconst results = await executer.Action('schema', 'sync').execute()\n\n\t\tassert.isTruthy(results.errors)\n\t\terrorAssert.assertError(results.errors[0], 'COMMAND_BLOCKED')\n\t}\n\n\t@test()\n\tprotected static async blocksWhenCommandIsForwardedFromAnother() {\n\t\tconst pkg = this.Service('pkg')\n\t\tpkg.set({\n\t\t\tpath: ['skill', 'blockedCommands'],\n\t\t\tvalue: { 'sync.schemas': `Stop now!` },\n\t\t})\n\n\t\tconst cli = await this.FeatureFixture().Cli({\n\t\t\tprogram: MockProgramFactory.Program(),\n\t\t\tcwd: this.cwd,\n\t\t\tgraphicsInterface: this.ui,\n\t\t})\n\n\t\t//@ts-ignore\n\t\tconst executer = cli.getActionExecuter()\n\t\tconst results = await executer.Action('schema', 'create').execute({\n\t\t\tnameReadable: 'Test schema!',\n\t\t\tnamePascal: 'Test',\n\t\t\tnameCamel: 'test',\n\t\t\tdescription: 'this is so great!',\n\t\t})\n\n\t\tassert.isTruthy(results.errors)\n\t\terrorAssert.assertError(results.errors[0], 'COMMAND_BLOCKED')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAA+D,IAAAI,IAAA,EAAAC,KAAA,EAAAC,MAAA,EAAAC,oCAAA;AAAA,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,EAAAK,yBAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,aAAAH,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA,SAAAG,0BAAA,cAAAL,CAAA,IAAAU,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,C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;cAJIjC,GAAG,GAAA8B,SAAA,CAAAd,IAAA;cAMT;cACMf,QAAQ,GAAGD,GAAG,CAACiB,iBAAiB,CAAC,CAAC;cAAAa,SAAA,CAAAvB,IAAA;cAAA,OAClBN,QAAQ,CAACiB,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAACC,OAAO,CAAC;gBACjEe,YAAY,EAAE,cAAc;gBAC5BC,UAAU,EAAE,MAAM;gBAClBC,SAAS,EAAE,MAAM;gBACjBC,WAAW,EAAE;cACd,CAAC,CAAC;YAAA;cALInC,OAAO,GAAA4B,SAAA,CAAAd,IAAA;cAObI,iBAAM,CAACC,QAAQ,CAACnB,OAAO,CAACoB,MAAM,CAAC;cAC/BC,sBAAW,CAACC,WAAW,CAACtB,OAAO,CAACoB,MAAM,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC;YAAA;YAAA;cAAA,OAAAQ,SAAA,CAAAL,IAAA;UAAA;QAAA,GAAAG,QAAA;MAAA,CAC7D;MAAA,SAAAU,wCAAA;QAAA,OAAAX,wCAAA,CAAAhD,KAAA,OAAAW,SAAA;MAAA;MAAA,OAAAgD,uCAAA;IAAA;EAAA;EAAA,OAAAtD,mCAAA;AAAA,EAhD+DuD,8BAAiB,OAAAC,gBAAA,aAAAxE,oCAAA,mBAChD,SAAS,GAAAA,oCAAA,QAAAyE,0BAAA,aAAA1E,MAAA,2BAAAF,IAAA,GAAA6E,MAAA,CAAAC,wBAAA,CAAA5E,MAAA,2BAAAA,MAAA,OAAA0E,0BAAA,aAAA1E,MAAA,8CAAAD,KAAA,GAAA4E,MAAA,CAAAC,wBAAA,CAAA5E,MAAA,8CAAAA,MAAA,IAAAA,MAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"BootingTheCli.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_dec","_dec2","_class","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","BootingTheCliTest","exports","test","_AbstractCliTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_canBootTheCli","_asyncToGenerator2","_regenerator","mark","_callee","cli","wrap","_callee$","_context","prev","next","Cli","sent","assert","isTruthy","stop","canBootTheCli","_cliSetsTerminalTitleBasedOnSkillSlugOnBoot","_callee2","dest","auth","namespace","wasHit","passedTitle","_callee2$","_context2","resolvePath","diskUtil","writeFile","Service","generateId","replace","updateCurrentSkill","apiKey","id","name","slug","ui","setTitle","title","isTrue","isEqual","cliSetsTerminalTitleBasedOnSkillSlugOnBoot","AbstractCliTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/BootingTheCli.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert, generateId } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class BootingTheCliTest extends AbstractCliTest {\n\t@test()\n\tprotected static async canBootTheCli() {\n\t\tconst cli = await this.Cli()\n\t\tassert.isTruthy(cli)\n\t}\n\n\t@test()\n\tprotected static async cliSetsTerminalTitleBasedOnSkillSlugOnBoot() {\n\t\tconst dest = this.resolvePath('package.json')\n\t\tdiskUtil.writeFile(dest, '{}')\n\n\t\tconst auth = this.Service('auth')\n\t\tconst namespace = generateId().replace(/\\d+/g, '')\n\n\t\tauth.updateCurrentSkill({\n\t\t\tapiKey: generateId(),\n\t\t\tid: generateId(),\n\t\t\tname: generateId(),\n\t\t\tslug: namespace,\n\t\t})\n\n\t\tlet wasHit = false\n\t\tlet passedTitle: string | undefined\n\n\t\tthis.ui.setTitle = (title: string) => {\n\t\t\tpassedTitle = title\n\t\t\twasHit = true\n\t\t}\n\n\t\tawait this.Cli()\n\n\t\tassert.isTrue(wasHit)\n\t\tassert.isEqual(passedTitle, namespace)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAA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nBjB,MAAM,GAAG,IAAI;cACd,CAAC;cAAAG,SAAA,CAAAf,IAAA;cAAA,OAEK,IAAI,CAACC,GAAG,CAAC,CAAC;YAAA;cAEhBE,iBAAM,CAAC2B,MAAM,CAAClB,MAAM,CAAC;cACrBT,iBAAM,CAAC4B,OAAO,CAAClB,WAAW,EAAEF,SAAS,CAAC;YAAA;YAAA;cAAA,OAAAI,SAAA,CAAAV,IAAA;UAAA;QAAA,GAAAG,QAAA;MAAA,CACtC;MAAA,SAAAwB,2CAAA;QAAA,OAAAzB,2CAAA,CAAAhC,KAAA,OAAAW,SAAA;MAAA;MAAA,OAAA8C,0CAAA;IAAA;EAAA;EAAA,OAAApD,iBAAA;AAAA,EAlC6CqD,4BAAe,QAAAC,0BAAA,aAAAtE,MAAA,oBAAAF,IAAA,GAAAyE,MAAA,CAAAC,wBAAA,CAAAxE,MAAA,oBAAAA,MAAA,OAAAsE,0BAAA,aAAAtE,MAAA,iDAAAD,KAAA,GAAAwE,MAAA,CAAAC,wBAAA,CAAAxE,MAAA,iDAAAA,MAAA,IAAAA,MAAA"}
1
+ {"version":3,"file":"BootingTheCli.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_dec","_dec2","_class","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","BootingTheCliTest","exports","test","_AbstractCliTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_canBootTheCli","_asyncToGenerator2","_regenerator","mark","_callee","cli","wrap","_callee$","_context","prev","next","Cli","sent","assert","isTruthy","stop","canBootTheCli","_cliSetsTerminalTitleBasedOnSkillSlugOnBoot","_callee2","dest","auth","namespace","wasHit","passedTitle","_callee2$","_context2","resolvePath","diskUtil","writeFile","Service","generateId","replace","updateCurrentSkill","apiKey","id","name","slug","ui","setTitle","title","isTrue","isEqual","cliSetsTerminalTitleBasedOnSkillSlugOnBoot","AbstractCliTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/BootingTheCli.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert, generateId } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class BootingTheCliTest extends AbstractCliTest {\n\t@test()\n\tprotected static async canBootTheCli() {\n\t\tconst cli = await this.Cli()\n\t\tassert.isTruthy(cli)\n\t}\n\n\t@test()\n\tprotected static async cliSetsTerminalTitleBasedOnSkillSlugOnBoot() {\n\t\tconst dest = this.resolvePath('package.json')\n\t\tdiskUtil.writeFile(dest, '{}')\n\n\t\tconst auth = this.Service('auth')\n\t\tconst namespace = generateId().replace(/\\d+/g, '')\n\n\t\tauth.updateCurrentSkill({\n\t\t\tapiKey: generateId(),\n\t\t\tid: generateId(),\n\t\t\tname: generateId(),\n\t\t\tslug: namespace,\n\t\t})\n\n\t\tlet wasHit = false\n\t\tlet passedTitle: string | undefined\n\n\t\tthis.ui.setTitle = (title: string) => {\n\t\t\tpassedTitle = title\n\t\t\twasHit = true\n\t\t}\n\n\t\tawait this.Cli()\n\n\t\tassert.isTrue(wasHit)\n\t\tassert.isEqual(passedTitle, namespace)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAyD,IAAAI,IAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,EAAAK,yBAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,aAAAH,CAAA,EAAAQ,WAAA,IAAAP,CAAA,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CAAA;IAAA;EAAA;EAAA,OAAApD,iBAAA;AAAA,EAlC6CqD,4BAAe,QAAAC,0BAAA,aAAAtE,MAAA,oBAAAF,IAAA,GAAAyE,MAAA,CAAAC,wBAAA,CAAAxE,MAAA,oBAAAA,MAAA,OAAAsE,0BAAA,aAAAtE,MAAA,iDAAAD,KAAA,GAAAwE,MAAA,CAAAC,wBAAA,CAAAxE,MAAA,iDAAAA,MAAA,IAAAA,MAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"BootingWithBadFiles.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_test","_dec","_dec2","_class","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","BootingWithBadFilesTest","exports","test","_AbstractCliTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_bootingWithAEmptySchemaThrowsErrorWithNameOfBadSchema","_asyncToGenerator2","_regenerator","mark","_callee","bootResults","wrap","_callee$","_context","prev","next","FeatureFixture","installCachedFeatures","breakSchemaAndBoot","sent","assert","isTruthy","errors","doesInclude","message","stop","bootingWithAEmptySchemaThrowsErrorWithNameOfBadSchema","_disablesSchemaCheckingWithFlag","_callee2","_callee2$","_context2","diskUtil","writeFile","resolvePath","isFalsy","disablesSchemaCheckingWithFlag","_breakSchemaAndBoot","_callee3","results","match","_callee3$","_context3","Action","execute","testUtil","assertFileByNameInGeneratedFiles","files","local","abrupt","AbstractCliTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/BootingWithBadFiles.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\nimport testUtil from '../../tests/utilities/test.utility'\n\nexport default class BootingWithBadFilesTest extends AbstractCliTest {\n\t@test()\n\tprotected static async bootingWithAEmptySchemaThrowsErrorWithNameOfBadSchema() {\n\t\tawait this.FeatureFixture().installCachedFeatures('schemas')\n\t\tconst bootResults = await this.breakSchemaAndBoot()\n\t\tassert.isTruthy(bootResults.errors)\n\t\tassert.doesInclude(bootResults.errors[0].message, 'location.schema.ts')\n\t}\n\n\t@test()\n\tprotected static async disablesSchemaCheckingWithFlag() {\n\t\tawait this.FeatureFixture().installCachedFeatures('schemas')\n\t\tdiskUtil.writeFile(\n\t\t\tthis.resolvePath('.env'),\n\t\t\t'SHOULD_VALIDATE_SCHEMAS_ON_BOOT=false'\n\t\t)\n\t\tconst bootResults = await this.breakSchemaAndBoot()\n\t\tassert.isFalsy(bootResults.errors)\n\t}\n\n\tprivate static async breakSchemaAndBoot() {\n\t\tconst results = await this.Action('schema', 'sync').execute({})\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'location.schema.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tdiskUtil.writeFile(match, '')\n\n\t\tconst bootResults = await this.Action('skill', 'boot').execute({\n\t\t\tlocal: true,\n\t\t})\n\n\t\treturn bootResults\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAyD,IAAAK,IAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,EAAAK,yBAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,aAAAH,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA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,SAAA,CAAA1B,IAAA;cAAA,OACuB,IAAI,CAAC2B,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC;YAAA;cAAzDL,OAAO,GAAAG,SAAA,CAAAtB,IAAA;cAEPoB,KAAK,GAAGK,gBAAQ,CAACC,gCAAgC,CACtD,oBAAoB,EACpBP,OAAO,CAACQ,KACT,CAAC;cAEDf,0BAAQ,CAACC,SAAS,CAACO,KAAK,EAAE,EAAE,CAAC;cAAAE,SAAA,CAAA1B,IAAA;cAAA,OAEH,IAAI,CAAC2B,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAACC,OAAO,CAAC;gBAC9DI,KAAK,EAAE;cACR,CAAC,CAAC;YAAA;cAFIrC,WAAW,GAAA+B,SAAA,CAAAtB,IAAA;cAAA,OAAAsB,SAAA,CAAAO,MAAA,WAIVtC,WAAW;YAAA;YAAA;cAAA,OAAA+B,SAAA,CAAAhB,IAAA;UAAA;QAAA,GAAAY,QAAA;MAAA,CAClB;MAAA,SAAAnB,mBAAA;QAAA,OAAAkB,mBAAA,CAAA9C,KAAA,OAAAW,SAAA;MAAA;MAAA,OAAAiB,kBAAA;IAAA;EAAA;EAAA,OAAAvB,uBAAA;AAAA,EAnCmDsD,4BAAe,QAAAC,0BAAA,aAAAvE,MAAA,4DAAAF,IAAA,GAAA0E,MAAA,CAAAC,wBAAA,CAAAzE,MAAA,4DAAAA,MAAA,OAAAuE,0BAAA,aAAAvE,MAAA,qCAAAD,KAAA,GAAAyE,MAAA,CAAAC,wBAAA,CAAAzE,MAAA,qCAAAA,MAAA,IAAAA,MAAA"}
1
+ {"version":3,"file":"BootingWithBadFiles.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_test","_dec","_dec2","_class","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","BootingWithBadFilesTest","exports","test","_AbstractCliTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_bootingWithAEmptySchemaThrowsErrorWithNameOfBadSchema","_asyncToGenerator2","_regenerator","mark","_callee","bootResults","wrap","_callee$","_context","prev","next","FeatureFixture","installCachedFeatures","breakSchemaAndBoot","sent","assert","isTruthy","errors","doesInclude","message","stop","bootingWithAEmptySchemaThrowsErrorWithNameOfBadSchema","_disablesSchemaCheckingWithFlag","_callee2","_callee2$","_context2","diskUtil","writeFile","resolvePath","isFalsy","disablesSchemaCheckingWithFlag","_breakSchemaAndBoot","_callee3","results","match","_callee3$","_context3","Action","execute","testUtil","assertFileByNameInGeneratedFiles","files","local","abrupt","AbstractCliTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/BootingWithBadFiles.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\nimport testUtil from '../../tests/utilities/test.utility'\n\nexport default class BootingWithBadFilesTest extends AbstractCliTest {\n\t@test()\n\tprotected static async bootingWithAEmptySchemaThrowsErrorWithNameOfBadSchema() {\n\t\tawait this.FeatureFixture().installCachedFeatures('schemas')\n\t\tconst bootResults = await this.breakSchemaAndBoot()\n\t\tassert.isTruthy(bootResults.errors)\n\t\tassert.doesInclude(bootResults.errors[0].message, 'location.schema.ts')\n\t}\n\n\t@test()\n\tprotected static async disablesSchemaCheckingWithFlag() {\n\t\tawait this.FeatureFixture().installCachedFeatures('schemas')\n\t\tdiskUtil.writeFile(\n\t\t\tthis.resolvePath('.env'),\n\t\t\t'SHOULD_VALIDATE_SCHEMAS_ON_BOOT=false'\n\t\t)\n\t\tconst bootResults = await this.breakSchemaAndBoot()\n\t\tassert.isFalsy(bootResults.errors)\n\t}\n\n\tprivate static async breakSchemaAndBoot() {\n\t\tconst results = await this.Action('schema', 'sync').execute({})\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'location.schema.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tdiskUtil.writeFile(match, '')\n\n\t\tconst bootResults = await this.Action('skill', 'boot').execute({\n\t\t\tlocal: true,\n\t\t})\n\n\t\treturn bootResults\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAyD,IAAAK,IAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,EAAAK,yBAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,aAAAH,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA,SAAAG,0BAAA,cAAAL,CAAA,IAAAU,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAP,OAAA,CAAAC,SAAA,CAAAG,OAAA,iCAAAV,CAAA,aAAAK,yBAAA,YAAAA,0BAAA,aAAAL,CAAA;AAAA,IAEpCc,uBAAuB,GAAAC,OAAA,eAAAnB,IAAA,GAC1C,IAAAoB,eAAI,EAAC,CAAC,EAAAnB,KAAA,GAQN,IAAAmB,eAAI,EAAC,CAAC,GAAAlB,MAAA,0BAAAmB,gBAAA;EAAA,IAAAC,UAAA,aAAAJ,uBAAA,EAAAG,gBAAA;EAAA,SAAAH,wBAAA;IAAA,IAAAK,gBAAA,mBAAAL,uBAAA;IAAA,OAAAf,UAAA,OAAAe,uBAAA,EAAAM,SAAA;EAAA;EAAA,IAAAC,aA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AAA,OAAAsB,SAAA,CAAAO,MAAA,WAIVtC,WAAW;YAAA;YAAA;cAAA,OAAA+B,SAAA,CAAAhB,IAAA;UAAA;QAAA,GAAAY,QAAA;MAAA,CAClB;MAAA,SAAAnB,mBAAA;QAAA,OAAAkB,mBAAA,CAAA9C,KAAA,OAAAW,SAAA;MAAA;MAAA,OAAAiB,kBAAA;IAAA;EAAA;EAAA,OAAAvB,uBAAA;AAAA,EAnCmDsD,4BAAe,QAAAC,0BAAA,aAAAvE,MAAA,4DAAAF,IAAA,GAAA0E,MAAA,CAAAC,wBAAA,CAAAzE,MAAA,4DAAAA,MAAA,OAAAuE,0BAAA,aAAAvE,MAAA,qCAAAD,KAAA,GAAAyE,MAAA,CAAAC,wBAAA,CAAAzE,MAAA,qCAAAA,MAAA,IAAAA,MAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"CreatingAConversationTopic.test.js","names":["require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_test","_dec","_dec2","_class","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","CreatingAConversationTopicTest","exports","test","_AbstractCliTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_hasCreateConversationAction","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","assert","isFunction","Action","execute","stop","hasCreateConversationAction","_createsValidConversationTopicDefinition","_callee2","cli","results","match","imported","_callee2$","_context2","FeatureFixture","installCachedFeatures","sent","nameReadable","nameCamel","testUtil","assertFileByNameInGeneratedFiles","files","Service","importDefault","isTruthy","isEqual","label","isArray","utterances","script","assertHealthCheckResultsAreValid","createsValidConversationTopicDefinition","_assertHealthCheckResultsAreValid","_callee3","health","_callee3$","_context3","checkHealth","conversation","topics","isLength","doesInclude","_x","AbstractCliTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/CreatingAConversationTopic.test.ts"],"sourcesContent":["import '@sprucelabs/spruce-conversation-plugin'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\nimport testUtil from '../../tests/utilities/test.utility'\nimport { CliInterface } from '../../types/cli.types'\n\nexport default class CreatingAConversationTopicTest extends AbstractCliTest {\n\t@test()\n\tprotected static async hasCreateConversationAction() {\n\t\tassert.isFunction(this.Action('conversation', 'create').execute)\n\t}\n\n\t@test()\n\tprotected static async createsValidConversationTopicDefinition() {\n\t\tconst cli =\n\t\t\tawait this.FeatureFixture().installCachedFeatures('conversation')\n\n\t\tconst results = await this.Action('conversation', 'create').execute({\n\t\t\tnameReadable: 'book an appointment',\n\t\t\tnameCamel: 'bookAnAppointment',\n\t\t})\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'bookAnAppointment.topic.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tconst imported = await this.Service('import').importDefault(match)\n\n\t\tassert.isTruthy(imported)\n\t\tassert.isEqual(imported.label, 'book an appointment')\n\t\tassert.isArray(imported.utterances)\n\t\tassert.isArray(imported.script)\n\n\t\tawait this.assertHealthCheckResultsAreValid(cli)\n\t}\n\n\tprivate static async assertHealthCheckResultsAreValid(cli: CliInterface) {\n\t\tconst health = await cli.checkHealth()\n\t\t//@ts-ignore\n\t\tassert.isTruthy(health.conversation)\n\t\t//@ts-ignore\n\t\tassert.isArray(health.conversation.topics)\n\t\t//@ts-ignore\n\t\tassert.isLength(health.conversation.topics, 1)\n\t\t//@ts-ignore\n\t\tassert.doesInclude(health.conversation.topics, 'bookAnAppointment')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAyD,IAAAK,IAAA,EAAAC,KAAA,EAAAC,MAAA;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AA;AAAA,EAzC0D+D,4BAAe,QAAAC,0BAAA,aAAAhF,MAAA,kCAAAF,IAAA,GAAAmF,MAAA,CAAAC,wBAAA,CAAAlF,MAAA,kCAAAA,MAAA,OAAAgF,0BAAA,aAAAhF,MAAA,8CAAAD,KAAA,GAAAkF,MAAA,CAAAC,wBAAA,CAAAlF,MAAA,8CAAAA,MAAA,IAAAA,MAAA"}
1
+ {"version":3,"file":"CreatingAConversationTopic.test.js","names":["require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_test","_dec","_dec2","_class","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","CreatingAConversationTopicTest","exports","test","_AbstractCliTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_hasCreateConversationAction","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","assert","isFunction","Action","execute","stop","hasCreateConversationAction","_createsValidConversationTopicDefinition","_callee2","cli","results","match","imported","_callee2$","_context2","FeatureFixture","installCachedFeatures","sent","nameReadable","nameCamel","testUtil","assertFileByNameInGeneratedFiles","files","Service","importDefault","isTruthy","isEqual","label","isArray","utterances","script","assertHealthCheckResultsAreValid","createsValidConversationTopicDefinition","_assertHealthCheckResultsAreValid","_callee3","health","_callee3$","_context3","checkHealth","conversation","topics","isLength","doesInclude","_x","AbstractCliTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../src/__tests__/behavioral/CreatingAConversationTopic.test.ts"],"sourcesContent":["import '@sprucelabs/spruce-conversation-plugin'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\nimport testUtil from '../../tests/utilities/test.utility'\nimport { CliInterface } from '../../types/cli.types'\n\nexport default class CreatingAConversationTopicTest extends AbstractCliTest {\n\t@test()\n\tprotected static async hasCreateConversationAction() {\n\t\tassert.isFunction(this.Action('conversation', 'create').execute)\n\t}\n\n\t@test()\n\tprotected static async createsValidConversationTopicDefinition() {\n\t\tconst cli =\n\t\t\tawait this.FeatureFixture().installCachedFeatures('conversation')\n\n\t\tconst results = await this.Action('conversation', 'create').execute({\n\t\t\tnameReadable: 'book an appointment',\n\t\t\tnameCamel: 'bookAnAppointment',\n\t\t})\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'bookAnAppointment.topic.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tconst imported = await this.Service('import').importDefault(match)\n\n\t\tassert.isTruthy(imported)\n\t\tassert.isEqual(imported.label, 'book an appointment')\n\t\tassert.isArray(imported.utterances)\n\t\tassert.isArray(imported.script)\n\n\t\tawait this.assertHealthCheckResultsAreValid(cli)\n\t}\n\n\tprivate static async assertHealthCheckResultsAreValid(cli: CliInterface) {\n\t\tconst health = await cli.checkHealth()\n\t\t//@ts-ignore\n\t\tassert.isTruthy(health.conversation)\n\t\t//@ts-ignore\n\t\tassert.isArray(health.conversation.topics)\n\t\t//@ts-ignore\n\t\tassert.isLength(health.conversation.topics, 1)\n\t\t//@ts-ignore\n\t\tassert.doesInclude(health.conversation.topics, 'bookAnAppointment')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAyD,IAAAK,IAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,EAAAK,yBAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,aAAAH,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CA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