@sprucelabs/spruce-cli 20.0.4 → 20.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [20.0.5](https://github.com/sprucelabsai-community/spruce-cli-workspace/compare/v20.0.4...v20.0.5) (2024-04-03)
7
+
8
+ **Note:** Version bump only for package @sprucelabs/spruce-cli
9
+
10
+
11
+
12
+
13
+
6
14
  ## [20.0.4](https://github.com/sprucelabsai-community/spruce-cli-workspace/compare/v20.0.3...v20.0.4) (2024-04-03)
7
15
 
8
16
  **Note:** Version bump only for package @sprucelabs/spruce-cli
@@ -1,13 +1,6 @@
1
1
  import { SchemaValues } from '@sprucelabs/schema';
2
2
  import AbstractAction from '../../AbstractAction';
3
3
  import { FeatureActionResponse } from '../../features.types';
4
- declare const optionsSchema: {
5
- id: string;
6
- description: string;
7
- fields: {};
8
- };
9
- type OptionsSchema = typeof optionsSchema;
10
- type Options = SchemaValues<OptionsSchema>;
11
4
  export default class EnableCacheAction extends AbstractAction<OptionsSchema> {
12
5
  optionsSchema: {
13
6
  id: string;
@@ -18,4 +11,11 @@ export default class EnableCacheAction extends AbstractAction<OptionsSchema> {
18
11
  invocationMessage: string;
19
12
  execute(_options: Options): Promise<FeatureActionResponse>;
20
13
  }
14
+ declare const optionsSchema: {
15
+ id: string;
16
+ description: string;
17
+ fields: {};
18
+ };
19
+ type OptionsSchema = typeof optionsSchema;
20
+ type Options = SchemaValues<OptionsSchema>;
21
21
  export {};
@@ -19,11 +19,6 @@ var _AbstractAction2 = _interopRequireDefault(require("../../AbstractAction"));
19
19
  var _constants = require("../constants");
20
20
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
- var optionsSchema = (0, _schema.buildSchema)({
23
- id: 'enableCacheAction',
24
- description: 'Enable npm caching so pulling node_modules is much faster.',
25
- fields: {}
26
- });
27
22
  var EnableCacheAction = exports["default"] = /*#__PURE__*/function (_AbstractAction) {
28
23
  function EnableCacheAction() {
29
24
  var _this;
@@ -95,4 +90,9 @@ var EnableCacheAction = exports["default"] = /*#__PURE__*/function (_AbstractAct
95
90
  }()
96
91
  }]);
97
92
  }(_AbstractAction2["default"]);
93
+ var optionsSchema = (0, _schema.buildSchema)({
94
+ id: 'enableCacheAction',
95
+ description: 'Enable npm caching so pulling node_modules is much faster.',
96
+ fields: {}
97
+ });
98
98
  //# sourceMappingURL=EnableAction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnableAction.js","names":["_schema","require","_SpruceError","_interopRequireDefault","_AbstractAction2","_constants","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","optionsSchema","buildSchema","id","description","fields","EnableCacheAction","exports","_AbstractAction","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","concat","_defineProperty2","_inherits2","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee","_options","_err$options","error","wrap","_callee$","_context","prev","next","Service","execute","Action","ENABLE_NPM_CACHE_COMMAND","abrupt","headline","summaryLines","t0","options","cmd","includes","SpruceError","code","originalError","dependencies","name","hint","errors","stop","_x","AbstractAction"],"sources":["../../../../src/features/cache/actions/EnableAction.ts"],"sourcesContent":["import { buildSchema, SchemaValues } from '@sprucelabs/schema'\nimport SpruceError from '../../../errors/SpruceError'\nimport AbstractAction from '../../AbstractAction'\nimport { FeatureActionResponse } from '../../features.types'\nimport { ENABLE_NPM_CACHE_COMMAND } from '../constants'\n\nconst optionsSchema = buildSchema({\n\tid: 'enableCacheAction',\n\tdescription: 'Enable npm caching so pulling node_modules is much faster.',\n\tfields: {},\n})\n\ntype OptionsSchema = typeof optionsSchema\ntype Options = SchemaValues<OptionsSchema>\n\nexport default class EnableCacheAction extends AbstractAction<OptionsSchema> {\n\tpublic optionsSchema = optionsSchema\n\tpublic commandAliases = [\n\t\t'enable.cache',\n\t\t'start.cache',\n\t\t'enable.caching',\n\t\t'start.caching',\n\t]\n\tpublic invocationMessage = 'Enabling cache... 💪'\n\n\tpublic async execute(_options: Options): Promise<FeatureActionResponse> {\n\t\ttry {\n\t\t\tawait this.Service('command').execute('which docker')\n\n\t\t\tawait this.Action('cache', 'disable').execute({})\n\t\t\tawait this.Service('command').execute(ENABLE_NPM_CACHE_COMMAND)\n\n\t\t\treturn {\n\t\t\t\theadline: 'Starting cache',\n\t\t\t\tsummaryLines: ['Booting cache systems now. Give it a sec!'],\n\t\t\t}\n\t\t} catch (err: any) {\n\t\t\tlet error = err\n\n\t\t\tif (err.options?.cmd?.includes('which')) {\n\t\t\t\terror = new SpruceError({\n\t\t\t\t\tcode: 'MISSING_DEPENDENCIES',\n\t\t\t\t\toriginalError: err,\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Docker',\n\t\t\t\t\t\t\thint: 'Get Docker here: https://www.docker.com/products/docker-desktop',\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\terror = new SpruceError({\n\t\t\t\t\tcode: 'DOCKER_NOT_STARTED',\n\t\t\t\t\toriginalError: err,\n\t\t\t\t})\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\terrors: [error],\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,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QAAQ,CAAC,OAAO,CAAC,EAAE;gBACxChB,KAAK,GAAG,IAAIiB,uBAAW,CAAC;kBACvBC,IAAI,EAAE,sBAAsB;kBAC5BC,aAAa,EAAAhB,QAAA,CAAAU,EAAK;kBAClBO,YAAY,EAAE,CACb;oBACCC,IAAI,EAAE,QAAQ;oBACdC,IAAI,EAAE;kBACP,CAAC;gBAEH,CAAC,CAAC;cACH,CAAC,MAAM;gBACNtB,KAAK,GAAG,IAAIiB,uBAAW,CAAC;kBACvBC,IAAI,EAAE,oBAAoB;kBAC1BC,aAAa,EAAAhB,QAAA,CAAAU;gBACd,CAAC,CAAC;cACH;cAAC,OAAAV,QAAA,CAAAO,MAAA,WAEM;gBACNa,MAAM,EAAE,CAACvB,KAAK;cACf,CAAC;YAAA;YAAA;cAAA,OAAAG,QAAA,CAAAqB,IAAA;UAAA;QAAA,GAAA3B,OAAA;MAAA,CAEF;MAAA,SAAAU,QAAAkB,EAAA;QAAA,OAAAhC,QAAA,CAAA3B,KAAA,OAAAgB,SAAA;MAAA;MAAA,OAAAyB,OAAA;IAAA;EAAA;AAAA,EA9C6CmB,2BAAc","ignoreList":[]}
1
+ {"version":3,"file":"EnableAction.js","names":["_schema","require","_SpruceError","_interopRequireDefault","_AbstractAction2","_constants","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","EnableCacheAction","exports","_AbstractAction","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","concat","_defineProperty2","optionsSchema","_inherits2","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee","_options","_err$options","error","wrap","_callee$","_context","prev","next","Service","execute","Action","ENABLE_NPM_CACHE_COMMAND","abrupt","headline","summaryLines","t0","options","cmd","includes","SpruceError","code","originalError","dependencies","name","hint","errors","stop","_x","AbstractAction","buildSchema","id","description","fields"],"sources":["../../../../src/features/cache/actions/EnableAction.ts"],"sourcesContent":["import { buildSchema, SchemaValues } from '@sprucelabs/schema'\nimport SpruceError from '../../../errors/SpruceError'\nimport AbstractAction from '../../AbstractAction'\nimport { FeatureActionResponse } from '../../features.types'\nimport { ENABLE_NPM_CACHE_COMMAND } from '../constants'\n\nexport default class EnableCacheAction extends AbstractAction<OptionsSchema> {\n\tpublic optionsSchema = optionsSchema\n\tpublic commandAliases = [\n\t\t'enable.cache',\n\t\t'start.cache',\n\t\t'enable.caching',\n\t\t'start.caching',\n\t]\n\tpublic invocationMessage = 'Enabling cache... 💪'\n\n\tpublic async execute(_options: Options): Promise<FeatureActionResponse> {\n\t\ttry {\n\t\t\tawait this.Service('command').execute('which docker')\n\n\t\t\tawait this.Action('cache', 'disable').execute({})\n\t\t\tawait this.Service('command').execute(ENABLE_NPM_CACHE_COMMAND)\n\n\t\t\treturn {\n\t\t\t\theadline: 'Starting cache',\n\t\t\t\tsummaryLines: ['Booting cache systems now. Give it a sec!'],\n\t\t\t}\n\t\t} catch (err: any) {\n\t\t\tlet error = err\n\n\t\t\tif (err.options?.cmd?.includes('which')) {\n\t\t\t\terror = new SpruceError({\n\t\t\t\t\tcode: 'MISSING_DEPENDENCIES',\n\t\t\t\t\toriginalError: err,\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Docker',\n\t\t\t\t\t\t\thint: 'Get Docker here: https://www.docker.com/products/docker-desktop',\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\terror = new SpruceError({\n\t\t\t\t\tcode: 'DOCKER_NOT_STARTED',\n\t\t\t\t\toriginalError: err,\n\t\t\t\t})\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\terrors: [error],\n\t\t\t}\n\t\t}\n\t}\n}\n\nconst optionsSchema = buildSchema({\n\tid: 'enableCacheAction',\n\tdescription: 'Enable npm caching so pulling node_modules is much faster.',\n\tfields: {},\n})\n\ntype OptionsSchema = typeof optionsSchema\ntype Options = SchemaValues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AC;kBACvBC,IAAI,EAAE,sBAAsB;kBAC5BC,aAAa,EAAAhB,QAAA,CAAAU,EAAK;kBAClBO,YAAY,EAAE,CACb;oBACCC,IAAI,EAAE,QAAQ;oBACdC,IAAI,EAAE;kBACP,CAAC;gBAEH,CAAC,CAAC;cACH,CAAC,MAAM;gBACNtB,KAAK,GAAG,IAAIiB,uBAAW,CAAC;kBACvBC,IAAI,EAAE,oBAAoB;kBAC1BC,aAAa,EAAAhB,QAAA,CAAAU;gBACd,CAAC,CAAC;cACH;cAAC,OAAAV,QAAA,CAAAO,MAAA,WAEM;gBACNa,MAAM,EAAE,CAACvB,KAAK;cACf,CAAC;YAAA;YAAA;cAAA,OAAAG,QAAA,CAAAqB,IAAA;UAAA;QAAA,GAAA3B,OAAA;MAAA,CAEF;MAAA,SAAAU,QAAAkB,EAAA;QAAA,OAAAhC,QAAA,CAAAvB,KAAA,OAAAW,SAAA;MAAA;MAAA,OAAA0B,OAAA;IAAA;EAAA;AAAA,EA9C6CmB,2BAAc;AAiD7D,IAAMtC,aAAa,GAAG,IAAAuC,mBAAW,EAAC;EACjCC,EAAE,EAAE,mBAAmB;EACvBC,WAAW,EAAE,4DAA4D;EACzEC,MAAM,EAAE,CAAC;AACV,CAAC,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  ]
18
18
  },
19
19
  "license": "MIT",
20
- "version": "20.0.4",
20
+ "version": "20.0.5",
21
21
  "bin": {
22
22
  "spruce": "./build/index.js"
23
23
  },
@@ -86,7 +86,7 @@
86
86
  "@sprucelabs/spruce-core-schemas": "^39.0.289",
87
87
  "@sprucelabs/spruce-event-utils": "^38.1.36",
88
88
  "@sprucelabs/spruce-skill-utils": "^30.4.24",
89
- "@sprucelabs/spruce-templates": "^20.0.4",
89
+ "@sprucelabs/spruce-templates": "^20.0.5",
90
90
  "@typescript-eslint/eslint-plugin": "^5.27.1",
91
91
  "@typescript-eslint/parser": "^5.27.1",
92
92
  "cfonts": "^3.2.0",
@@ -590,5 +590,5 @@
590
590
  "terminal-kit"
591
591
  ]
592
592
  },
593
- "gitHead": "51ab87da7663924484aa11396bba076f37569731"
593
+ "gitHead": "97e5fa1960a41e77a1bcaef1b82ee769dfefec4b"
594
594
  }
@@ -4,15 +4,6 @@ import AbstractAction from '../../AbstractAction'
4
4
  import { FeatureActionResponse } from '../../features.types'
5
5
  import { ENABLE_NPM_CACHE_COMMAND } from '../constants'
6
6
 
7
- const optionsSchema = buildSchema({
8
- id: 'enableCacheAction',
9
- description: 'Enable npm caching so pulling node_modules is much faster.',
10
- fields: {},
11
- })
12
-
13
- type OptionsSchema = typeof optionsSchema
14
- type Options = SchemaValues<OptionsSchema>
15
-
16
7
  export default class EnableCacheAction extends AbstractAction<OptionsSchema> {
17
8
  public optionsSchema = optionsSchema
18
9
  public commandAliases = [
@@ -61,3 +52,12 @@ export default class EnableCacheAction extends AbstractAction<OptionsSchema> {
61
52
  }
62
53
  }
63
54
  }
55
+
56
+ const optionsSchema = buildSchema({
57
+ id: 'enableCacheAction',
58
+ description: 'Enable npm caching so pulling node_modules is much faster.',
59
+ fields: {},
60
+ })
61
+
62
+ type OptionsSchema = typeof optionsSchema
63
+ type Options = SchemaValues<OptionsSchema>