gaunt-sloth-assistant 0.3.1 → 0.3.2

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.
@@ -13,12 +13,12 @@ export function askCommand(program) {
13
13
  .option('-f, --file [files...]', 'Input files. Content of these files will be added BEFORE the message')
14
14
  // TODO add option consuming extra message as argument
15
15
  .action(async (message, options) => {
16
+ await initConfig();
16
17
  const preamble = [readBackstory(), readGuidelines(slothContext.config.projectGuidelines)];
17
18
  const content = [message];
18
19
  if (options.file) {
19
20
  content.push(readMultipleFilesFromCurrentDir(options.file));
20
21
  }
21
- await initConfig();
22
22
  const { askQuestion } = await import('#src/modules/questionAnsweringModule.js');
23
23
  await askQuestion('ASK', preamble.join('\n'), content.join('\n'));
24
24
  });
@@ -1 +1 @@
1
- {"version":3,"file":"askCommand.js","sourceRoot":"","sources":["../../src/commands/askCommand.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM1D;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,OAAgB;IACzC,OAAO;SACJ,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,gBAAgB,CAAC;SAC7B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;SAClC,MAAM,CACL,uBAAuB,EACvB,sEAAsE,CACvE;QACD,sDAAsD;SACrD,MAAM,CAAC,KAAK,EAAE,OAAe,EAAE,OAA0B,EAAE,EAAE;QAC5D,MAAM,QAAQ,GAAG,CAAC,aAAa,EAAE,EAAE,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;QAC1F,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,CAAC;QAC1B,IAAI,OAAO,CAAC,IAA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QAC9D,CAAC;QACD,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC,yCAAyC,CAAC,CAAC;QAChF,MAAM,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -27,6 +27,8 @@ npm login
27
27
  npm publish
28
28
  ```
29
29
 
30
+ Remember to review a list of files in the build, before confirming it.
31
+
30
32
  Delete incidental remote and local tag
31
33
  ```shell
32
34
  git tag -d v0.3.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaunt-sloth-assistant",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "Andrew Kondratev",
@@ -22,12 +22,12 @@ export function askCommand(program: Command): void {
22
22
  )
23
23
  // TODO add option consuming extra message as argument
24
24
  .action(async (message: string, options: AskCommandOptions) => {
25
+ await initConfig();
25
26
  const preamble = [readBackstory(), readGuidelines(slothContext.config.projectGuidelines)];
26
27
  const content = [message];
27
28
  if (options.file) {
28
29
  content.push(readMultipleFilesFromCurrentDir(options.file));
29
30
  }
30
- await initConfig();
31
31
  const { askQuestion } = await import('#src/modules/questionAnsweringModule.js');
32
32
  await askQuestion('ASK', preamble.join('\n'), content.join('\n'));
33
33
  });
package/testMessage.txt DELETED
@@ -1 +0,0 @@
1
- the `dfsdf` is a magic string which fixes our custom transpiler. We should unfortunately use it.