@sprucelabs/spruce-templates 14.24.2 → 14.24.6

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.
@@ -5,18 +5,26 @@ import {
5
5
  Skill,
6
6
  diskUtil,
7
7
  HASH_SPRUCE_DIR_NAME,
8
+ BootCallback
8
9
  } from "@sprucelabs/spruce-skill-utils";
9
10
 
10
11
  class ErrorSkillFeature implements SkillFeature {
11
12
  private skill: Skill;
12
13
  private _isBooted = false
14
+ private bootHandler?: BootCallback;
15
+
13
16
 
14
17
  public constructor(skill: Skill) {
15
18
  this.skill = skill;
16
19
  }
17
20
 
21
+ public onBoot(cb: BootCallback) {
22
+ this.bootHandler = cb
23
+ }
24
+
18
25
  public execute = async () => {
19
26
  this._isBooted = true
27
+ this.bootHandler?.()
20
28
  };
21
29
 
22
30
  public checkHealth = async () => {
@@ -8,19 +8,26 @@ import {
8
8
  Skill,
9
9
  diskUtil,
10
10
  HASH_SPRUCE_DIR_NAME,
11
+ BootCallback
11
12
  } from "@sprucelabs/spruce-skill-utils";
12
13
 
13
14
  class SchemaFeature implements SkillFeature {
14
15
  private skill: Skill;
15
16
  private _isBooted = false
17
+ private bootHandler?: BootCallback;
16
18
 
17
19
  public constructor(skill: Skill) {
18
20
  this.skill = skill;
19
21
  }
20
22
 
23
+ public onBoot(cb: BootCallback) {
24
+ this.bootHandler = cb
25
+ }
26
+
21
27
  public execute = async () => {
22
28
  await this.loadSchemas();
23
29
  this._isBooted = true
30
+ this.bootHandler?.()
24
31
  };
25
32
 
26
33
  public checkHealth = async () => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "14.24.2",
6
+ "version": "14.24.6",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "tsconfig.json",
@@ -56,9 +56,9 @@
56
56
  "watch.tsc": "tsc -w"
57
57
  },
58
58
  "dependencies": {
59
- "@sprucelabs/mercury-types": "^26.1.622",
60
- "@sprucelabs/schema": "^25.3.416",
61
- "@sprucelabs/spruce-skill-utils": "^20.6.367",
59
+ "@sprucelabs/mercury-types": "^26.1.672",
60
+ "@sprucelabs/schema": "^25.3.438",
61
+ "@sprucelabs/spruce-skill-utils": "^22.0.8",
62
62
  "globby": "^11.0.4",
63
63
  "handlebars": "^4.7.7",
64
64
  "lodash": "^4.17.21",
@@ -78,5 +78,5 @@
78
78
  "globby"
79
79
  ]
80
80
  },
81
- "gitHead": "4bb52a45b292d6180b9763bb77b804e7df428c7a"
81
+ "gitHead": "767062fd7b4042cdb2a68191cbf184a35c27f03b"
82
82
  }