@gitsense/gsc-utils 0.2.12 → 0.2.13
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/dist/gsc-utils.cjs.js
CHANGED
|
@@ -11719,7 +11719,7 @@ async function getSystemMessageContent$2(analyzeMessagesBasePath) {
|
|
|
11719
11719
|
|
|
11720
11720
|
try {
|
|
11721
11721
|
const fileContent = await fs$2.readFile(systemMessageFilePath, 'utf8');
|
|
11722
|
-
return fileContent;
|
|
11722
|
+
return fileContent.split('\n\n\n').pop();
|
|
11723
11723
|
} catch (error) {
|
|
11724
11724
|
if (error.code === 'ENOENT') {
|
|
11725
11725
|
console.warn(`Default system message file not found: ${systemMessageFilePath}.`);
|
|
@@ -11747,7 +11747,7 @@ async function getStartMessageContent$2(analyzeMessagesBasePath) {
|
|
|
11747
11747
|
|
|
11748
11748
|
try {
|
|
11749
11749
|
const fileContent = await fs$2.readFile(startMessageFilePath, 'utf8');
|
|
11750
|
-
return fileContent;
|
|
11750
|
+
return fileContent.split('\n\n\n').pop();
|
|
11751
11751
|
} catch (error) {
|
|
11752
11752
|
if (error.code === 'ENOENT') {
|
|
11753
11753
|
console.warn(`Default start message file not found: ${startMessageFilePath}.`);
|
package/dist/gsc-utils.esm.js
CHANGED
|
@@ -11717,7 +11717,7 @@ async function getSystemMessageContent$2(analyzeMessagesBasePath) {
|
|
|
11717
11717
|
|
|
11718
11718
|
try {
|
|
11719
11719
|
const fileContent = await fs$2.readFile(systemMessageFilePath, 'utf8');
|
|
11720
|
-
return fileContent;
|
|
11720
|
+
return fileContent.split('\n\n\n').pop();
|
|
11721
11721
|
} catch (error) {
|
|
11722
11722
|
if (error.code === 'ENOENT') {
|
|
11723
11723
|
console.warn(`Default system message file not found: ${systemMessageFilePath}.`);
|
|
@@ -11745,7 +11745,7 @@ async function getStartMessageContent$2(analyzeMessagesBasePath) {
|
|
|
11745
11745
|
|
|
11746
11746
|
try {
|
|
11747
11747
|
const fileContent = await fs$2.readFile(startMessageFilePath, 'utf8');
|
|
11748
|
-
return fileContent;
|
|
11748
|
+
return fileContent.split('\n\n\n').pop();
|
|
11749
11749
|
} catch (error) {
|
|
11750
11750
|
if (error.code === 'ENOENT') {
|
|
11751
11751
|
console.warn(`Default start message file not found: ${startMessageFilePath}.`);
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ async function getSystemMessageContent(analyzeMessagesBasePath) {
|
|
|
29
29
|
|
|
30
30
|
try {
|
|
31
31
|
const fileContent = await fs.readFile(systemMessageFilePath, 'utf8');
|
|
32
|
-
return fileContent;
|
|
32
|
+
return fileContent.split('\n\n\n').pop();
|
|
33
33
|
} catch (error) {
|
|
34
34
|
if (error.code === 'ENOENT') {
|
|
35
35
|
console.warn(`Default system message file not found: ${systemMessageFilePath}.`);
|
|
@@ -57,7 +57,7 @@ async function getStartMessageContent(analyzeMessagesBasePath) {
|
|
|
57
57
|
|
|
58
58
|
try {
|
|
59
59
|
const fileContent = await fs.readFile(startMessageFilePath, 'utf8');
|
|
60
|
-
return fileContent;
|
|
60
|
+
return fileContent.split('\n\n\n').pop();
|
|
61
61
|
} catch (error) {
|
|
62
62
|
if (error.code === 'ENOENT') {
|
|
63
63
|
console.warn(`Default start message file not found: ${startMessageFilePath}.`);
|