@gitsense/gsc-utils 0.2.0 → 0.2.1

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.
@@ -530,13 +530,21 @@ function isNewAnalyzerChat(chat, model) {
530
530
  /**
531
531
  * Determines if the current chat session appears to be an "Analyze" session.
532
532
  * @param {object} chat - The chat object.
533
- * @param {string} model - Optional model.
534
533
  * @returns {boolean} True if the chat matches the Overview Builder pattern, false otherwise.
535
534
  */
536
- function isAnalyzeChat(chat, model) {
535
+ function isAnalyzeChat(chat) {
537
536
  return chat.type === 'analyze';
538
537
  }
539
538
 
539
+ /**
540
+ * Determines if the current chat session appears to be an "Analyze Builder" session.
541
+ * @param {object} chat - The chat object.
542
+ * @returns {boolean} True if the chat matches the Overview Builder pattern, false otherwise.
543
+ */
544
+ function isAnalyzeBuilderChat(chat) {
545
+ return chat.type === 'analyze-builder';
546
+ }
547
+
540
548
  /**
541
549
  * Determines if the current chat session appears to be an "Ask" session.
542
550
  * @param {object} chat - The chat object.
@@ -588,6 +596,7 @@ var ChatUtils$1 = {
588
596
  isAskChat,
589
597
  isNewAnalyzerChat,
590
598
  isAnalyzeChat,
599
+ isAnalyzeBuilderChat,
591
600
  isPlanChat,
592
601
  isCodeChat,
593
602
  getChatMessages: getChatMessages$1
@@ -528,13 +528,21 @@ function isNewAnalyzerChat(chat, model) {
528
528
  /**
529
529
  * Determines if the current chat session appears to be an "Analyze" session.
530
530
  * @param {object} chat - The chat object.
531
- * @param {string} model - Optional model.
532
531
  * @returns {boolean} True if the chat matches the Overview Builder pattern, false otherwise.
533
532
  */
534
- function isAnalyzeChat(chat, model) {
533
+ function isAnalyzeChat(chat) {
535
534
  return chat.type === 'analyze';
536
535
  }
537
536
 
537
+ /**
538
+ * Determines if the current chat session appears to be an "Analyze Builder" session.
539
+ * @param {object} chat - The chat object.
540
+ * @returns {boolean} True if the chat matches the Overview Builder pattern, false otherwise.
541
+ */
542
+ function isAnalyzeBuilderChat(chat) {
543
+ return chat.type === 'analyze-builder';
544
+ }
545
+
538
546
  /**
539
547
  * Determines if the current chat session appears to be an "Ask" session.
540
548
  * @param {object} chat - The chat object.
@@ -586,6 +594,7 @@ var ChatUtils$1 = {
586
594
  isAskChat,
587
595
  isNewAnalyzerChat,
588
596
  isAnalyzeChat,
597
+ isAnalyzeBuilderChat,
589
598
  isPlanChat,
590
599
  isCodeChat,
591
600
  getChatMessages: getChatMessages$1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitsense/gsc-utils",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Utilities for GitSense Chat (GSC)",
5
5
  "main": "dist/gsc-utils.cjs.js",
6
6
  "module": "dist/gsc-utils.esm.js",
package/src/ChatUtils.js CHANGED
@@ -62,13 +62,21 @@ function isNewAnalyzerChat(chat, model) {
62
62
  /**
63
63
  * Determines if the current chat session appears to be an "Analyze" session.
64
64
  * @param {object} chat - The chat object.
65
- * @param {string} model - Optional model.
66
65
  * @returns {boolean} True if the chat matches the Overview Builder pattern, false otherwise.
67
66
  */
68
- function isAnalyzeChat(chat, model) {
67
+ function isAnalyzeChat(chat) {
69
68
  return chat.type === 'analyze';
70
69
  }
71
70
 
71
+ /**
72
+ * Determines if the current chat session appears to be an "Analyze Builder" session.
73
+ * @param {object} chat - The chat object.
74
+ * @returns {boolean} True if the chat matches the Overview Builder pattern, false otherwise.
75
+ */
76
+ function isAnalyzeBuilderChat(chat) {
77
+ return chat.type === 'analyze-builder';
78
+ }
79
+
72
80
  /**
73
81
  * Determines if the current chat session appears to be an "Ask" session.
74
82
  * @param {object} chat - The chat object.
@@ -120,6 +128,7 @@ module.exports = {
120
128
  isAskChat,
121
129
  isNewAnalyzerChat,
122
130
  isAnalyzeChat,
131
+ isAnalyzeBuilderChat,
123
132
  isPlanChat,
124
133
  isCodeChat,
125
134
  getChatMessages