@gitsense/gsc-utils 0.2.12 → 0.2.14

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.
@@ -11719,7 +11719,9 @@ async function getSystemMessageContent$2(analyzeMessagesBasePath) {
11719
11719
 
11720
11720
  try {
11721
11721
  const fileContent = await fs$2.readFile(systemMessageFilePath, 'utf8');
11722
- return fileContent;
11722
+ const parts = fileContent.split('\n\n\n');
11723
+ parts.shift();
11724
+ return parts.join('\n\n\n');
11723
11725
  } catch (error) {
11724
11726
  if (error.code === 'ENOENT') {
11725
11727
  console.warn(`Default system message file not found: ${systemMessageFilePath}.`);
@@ -11747,7 +11749,9 @@ async function getStartMessageContent$2(analyzeMessagesBasePath) {
11747
11749
 
11748
11750
  try {
11749
11751
  const fileContent = await fs$2.readFile(startMessageFilePath, 'utf8');
11750
- return fileContent;
11752
+ const parts = fileContent.split('\n\n\n');
11753
+ parts.shift();
11754
+ return parts.join('\n\n\n');
11751
11755
  } catch (error) {
11752
11756
  if (error.code === 'ENOENT') {
11753
11757
  console.warn(`Default start message file not found: ${startMessageFilePath}.`);
@@ -11717,7 +11717,9 @@ async function getSystemMessageContent$2(analyzeMessagesBasePath) {
11717
11717
 
11718
11718
  try {
11719
11719
  const fileContent = await fs$2.readFile(systemMessageFilePath, 'utf8');
11720
- return fileContent;
11720
+ const parts = fileContent.split('\n\n\n');
11721
+ parts.shift();
11722
+ return parts.join('\n\n\n');
11721
11723
  } catch (error) {
11722
11724
  if (error.code === 'ENOENT') {
11723
11725
  console.warn(`Default system message file not found: ${systemMessageFilePath}.`);
@@ -11745,7 +11747,9 @@ async function getStartMessageContent$2(analyzeMessagesBasePath) {
11745
11747
 
11746
11748
  try {
11747
11749
  const fileContent = await fs$2.readFile(startMessageFilePath, 'utf8');
11748
- return fileContent;
11750
+ const parts = fileContent.split('\n\n\n');
11751
+ parts.shift();
11752
+ return parts.join('\n\n\n');
11749
11753
  } catch (error) {
11750
11754
  if (error.code === 'ENOENT') {
11751
11755
  console.warn(`Default start message file not found: ${startMessageFilePath}.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitsense/gsc-utils",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Utilities for GitSense Chat (GSC)",
5
5
  "main": "dist/gsc-utils.cjs.js",
6
6
  "module": "dist/gsc-utils.esm.js",
@@ -29,7 +29,9 @@ async function getSystemMessageContent(analyzeMessagesBasePath) {
29
29
 
30
30
  try {
31
31
  const fileContent = await fs.readFile(systemMessageFilePath, 'utf8');
32
- return fileContent;
32
+ const parts = fileContent.split('\n\n\n');
33
+ parts.shift();
34
+ return parts.join('\n\n\n');
33
35
  } catch (error) {
34
36
  if (error.code === 'ENOENT') {
35
37
  console.warn(`Default system message file not found: ${systemMessageFilePath}.`);
@@ -57,7 +59,9 @@ async function getStartMessageContent(analyzeMessagesBasePath) {
57
59
 
58
60
  try {
59
61
  const fileContent = await fs.readFile(startMessageFilePath, 'utf8');
60
- return fileContent;
62
+ const parts = fileContent.split('\n\n\n');
63
+ parts.shift();
64
+ return parts.join('\n\n\n');
61
65
  } catch (error) {
62
66
  if (error.code === 'ENOENT') {
63
67
  console.warn(`Default start message file not found: ${startMessageFilePath}.`);