sb-mig 5.3.0-beta.4 → 5.3.0-beta.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.
@@ -6,11 +6,20 @@ import { getFileContentWithRequire } from "../../utils/main.js";
6
6
  import * as descriptions from "../cli-descriptions.js";
7
7
  export const ask = async (props) => {
8
8
  const { input, flags } = props;
9
+ console.log("whatever ?");
9
10
  try {
10
11
  const fileContent = await getFileContentWithRequire({
11
12
  file: path.join("..", "..", "package.json"),
12
13
  });
13
14
  const anton = new Anton(config.openaiToken);
15
+ console.log(anton.setInitialMessages);
16
+ // anton.doWhatever()
17
+ anton.setInitialMessages([
18
+ {
19
+ role: "system",
20
+ content: "Act like a lady from high house",
21
+ },
22
+ ]);
14
23
  const question = input[1];
15
24
  const cleanPackageJSON = {
16
25
  ...fileContent,
@@ -50,6 +59,7 @@ export const ask = async (props) => {
50
59
  Logger.success(data?.choices[0]?.message?.content);
51
60
  }
52
61
  catch (e) {
62
+ console.log(e);
53
63
  Logger.warning("Can't find package.json");
54
64
  }
55
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sb-mig",
3
- "version": "5.3.0-beta.4",
3
+ "version": "5.3.0-beta.5",
4
4
  "description": "CLI to rule the world. (and handle stuff related to Storyblok CMS)",
5
5
  "author": "Marcin Krawczyk <marckraw@icloud.com>",
6
6
  "license": "MIT",
@@ -52,7 +52,7 @@
52
52
  "build:yalc": "yarn build && yalc push"
53
53
  },
54
54
  "dependencies": {
55
- "@mrck-labs/anton-sdk": "^0.0.10",
55
+ "@mrck-labs/anton-sdk": "^0.0.15",
56
56
  "@swc/core": "1.3.41",
57
57
  "@swc/helpers": "0.4.14",
58
58
  "chalk": "^5.3.0",