@gitsense/gsc-utils 0.2.20 → 0.2.21

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.
@@ -375,7 +375,7 @@ function getMessageContentType$1(messageContent) {
375
375
  return 'file-content-context';
376
376
  } else if (trimmedContent.startsWith('## OVERVIEW')) {
377
377
  return 'overview-context';
378
- } else if (trimmedContent.startsWith('## Context Items Overview\n\nThis section provides')) {
378
+ } else if (trimmedContent.startsWith('## Context Overview\n\nThis context overview')) {
379
379
  return 'context-items-overview';
380
380
  } else if (trimmedContent.match(ANALYZE_MESSAGE_REGEXP)) {
381
381
  return 'analyze-message';
@@ -10628,13 +10628,13 @@ var CodeBlockUtils$5 = {
10628
10628
 
10629
10629
  /*
10630
10630
  * Component: ContextUtils
10631
- * Block-UUID: c199efe3-003c-4226-af3c-d460392a6569
10632
- * Parent-UUID: N/A
10633
- * Version: 1.1.0
10631
+ * Block-UUID: c018b1f9-2291-4bc9-9c4b-ab53a5db745e
10632
+ * Parent-UUID: c199efe3-003c-4226-af3c-d460392a6569
10633
+ * Version: 1.2.0
10634
10634
  * Description: Provides utility functions for parsing context message sections to extract file details and code blocks, and for formatting content for LLM context.
10635
10635
  * Language: JavaScript
10636
10636
  * Created-at: 2025-05-09T01:36:20.107Z
10637
- * Authors: Gemini 2.5 Flash Thinking (v1.0.0), Gemini 2.5 Flash (v1.1.0)
10637
+ * Authors: Gemini 2.5 Flash Thinking (v1.0.0), Gemini 2.5 Flash (v1.1.0), Qwen 3 Coder 480B - Cerebras (v1.2.0)
10638
10638
  */
10639
10639
 
10640
10640
  const CodeBlockUtils$4 = CodeBlockUtils$5;
@@ -10901,10 +10901,14 @@ function formatContextContent$1(items, contentType, contentOption) {
10901
10901
  // Header based on content type
10902
10902
  if (contentType === 'overview') {
10903
10903
  result += `## OVERVIEW - ${contentOption.toUpperCase()}\n`;
10904
+ result += '\n';
10904
10905
  } else {
10905
10906
  result += `## FILE CONTENT - ${contentOption.toUpperCase()}\n`;
10907
+ result += '\n';
10906
10908
  }
10907
10909
 
10910
+ result += 'The following files are provided as context for your request. Use this information to understand the project\'s structure and content. This is a data payload for context; please do not mirror this format in your response.\n';
10911
+ result += '\n';
10908
10912
  // Summary of items
10909
10913
  result += _createContextSummary(items, contentType);
10910
10914
  result += "\n---Start of Context---\n\n";
@@ -373,7 +373,7 @@ function getMessageContentType$1(messageContent) {
373
373
  return 'file-content-context';
374
374
  } else if (trimmedContent.startsWith('## OVERVIEW')) {
375
375
  return 'overview-context';
376
- } else if (trimmedContent.startsWith('## Context Items Overview\n\nThis section provides')) {
376
+ } else if (trimmedContent.startsWith('## Context Overview\n\nThis context overview')) {
377
377
  return 'context-items-overview';
378
378
  } else if (trimmedContent.match(ANALYZE_MESSAGE_REGEXP)) {
379
379
  return 'analyze-message';
@@ -10626,13 +10626,13 @@ var CodeBlockUtils$5 = {
10626
10626
 
10627
10627
  /*
10628
10628
  * Component: ContextUtils
10629
- * Block-UUID: c199efe3-003c-4226-af3c-d460392a6569
10630
- * Parent-UUID: N/A
10631
- * Version: 1.1.0
10629
+ * Block-UUID: c018b1f9-2291-4bc9-9c4b-ab53a5db745e
10630
+ * Parent-UUID: c199efe3-003c-4226-af3c-d460392a6569
10631
+ * Version: 1.2.0
10632
10632
  * Description: Provides utility functions for parsing context message sections to extract file details and code blocks, and for formatting content for LLM context.
10633
10633
  * Language: JavaScript
10634
10634
  * Created-at: 2025-05-09T01:36:20.107Z
10635
- * Authors: Gemini 2.5 Flash Thinking (v1.0.0), Gemini 2.5 Flash (v1.1.0)
10635
+ * Authors: Gemini 2.5 Flash Thinking (v1.0.0), Gemini 2.5 Flash (v1.1.0), Qwen 3 Coder 480B - Cerebras (v1.2.0)
10636
10636
  */
10637
10637
 
10638
10638
  const CodeBlockUtils$4 = CodeBlockUtils$5;
@@ -10899,10 +10899,14 @@ function formatContextContent$1(items, contentType, contentOption) {
10899
10899
  // Header based on content type
10900
10900
  if (contentType === 'overview') {
10901
10901
  result += `## OVERVIEW - ${contentOption.toUpperCase()}\n`;
10902
+ result += '\n';
10902
10903
  } else {
10903
10904
  result += `## FILE CONTENT - ${contentOption.toUpperCase()}\n`;
10905
+ result += '\n';
10904
10906
  }
10905
10907
 
10908
+ result += 'The following files are provided as context for your request. Use this information to understand the project\'s structure and content. This is a data payload for context; please do not mirror this format in your response.\n';
10909
+ result += '\n';
10906
10910
  // Summary of items
10907
10911
  result += _createContextSummary(items, contentType);
10908
10912
  result += "\n---Start of Context---\n\n";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitsense/gsc-utils",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "Utilities for GitSense Chat (GSC)",
5
5
  "main": "dist/gsc-utils.cjs.js",
6
6
  "module": "dist/gsc-utils.esm.js",
@@ -1,12 +1,12 @@
1
1
  /*
2
2
  * Component: ContextUtils
3
- * Block-UUID: c199efe3-003c-4226-af3c-d460392a6569
4
- * Parent-UUID: N/A
5
- * Version: 1.1.0
3
+ * Block-UUID: c018b1f9-2291-4bc9-9c4b-ab53a5db745e
4
+ * Parent-UUID: c199efe3-003c-4226-af3c-d460392a6569
5
+ * Version: 1.2.0
6
6
  * Description: Provides utility functions for parsing context message sections to extract file details and code blocks, and for formatting content for LLM context.
7
7
  * Language: JavaScript
8
8
  * Created-at: 2025-05-09T01:36:20.107Z
9
- * Authors: Gemini 2.5 Flash Thinking (v1.0.0), Gemini 2.5 Flash (v1.1.0)
9
+ * Authors: Gemini 2.5 Flash Thinking (v1.0.0), Gemini 2.5 Flash (v1.1.0), Qwen 3 Coder 480B - Cerebras (v1.2.0)
10
10
  */
11
11
 
12
12
 
@@ -273,12 +273,15 @@ function formatContextContent(items, contentType, contentOption) {
273
273
 
274
274
  // Header based on content type
275
275
  if (contentType === 'overview') {
276
- const label = contentOption === "long" ? "comprehensive" : "short";
277
276
  result += `## OVERVIEW - ${contentOption.toUpperCase()}\n`;
277
+ result += '\n';
278
278
  } else {
279
279
  result += `## FILE CONTENT - ${contentOption.toUpperCase()}\n`;
280
+ result += '\n';
280
281
  }
281
282
 
283
+ result += 'The following files are provided as context for your request. Use this information to understand the project\'s structure and content. This is a data payload for context; please do not mirror this format in your response.\n';
284
+ result += '\n';
282
285
  // Summary of items
283
286
  result += _createContextSummary(items, contentType);
284
287
  result += "\n---Start of Context---\n\n";
@@ -336,3 +339,4 @@ module.exports = {
336
339
  extractContextItemsOverviewTableRows,
337
340
  formatContextContent,
338
341
  };
342
+
@@ -367,7 +367,7 @@ function getMessageContentType(messageContent) {
367
367
  return 'file-content-context';
368
368
  } else if (trimmedContent.startsWith('## OVERVIEW')) {
369
369
  return 'overview-context';
370
- } else if (trimmedContent.startsWith('## Context Items Overview\n\nThis section provides')) {
370
+ } else if (trimmedContent.startsWith('## Context Overview\n\nThis context overview')) {
371
371
  return 'context-items-overview';
372
372
  } else if (trimmedContent.match(ANALYZE_MESSAGE_REGEXP)) {
373
373
  return 'analyze-message';