@gitsense/gsc-utils 0.2.32 → 0.2.34

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.
@@ -9970,7 +9970,7 @@ function fixTextCodeBlocks$2(text) {
9970
9970
  if (validation["Block-UUID"] === "INVALID UUID") {
9971
9971
  blockModified = true;
9972
9972
  modified = true;
9973
- return `${fieldPart}: ${validation["Correct Block-UUID"]}`;
9973
+ return ` ${fieldPart}: ${validation["Correct Block-UUID"]}`;
9974
9974
  }
9975
9975
  }
9976
9976
  return line;
@@ -12146,6 +12146,11 @@ var saver = {
12146
12146
  * Authors: Gemini 2.5 Flash (v1.0.0), Gemini 2.5 Pro (v1.1.0), Claude Haiku 4.5 (v1.2.0), Claude Haiku 4.5 (v1.3.0), Qwen 3 Coder 480B - Cerebras (v1.4.0), GLM-4.6 (v1.4.1)
12147
12147
  */
12148
12148
 
12149
+ const fs$5 = require$$0.promises;
12150
+ const path$3 = require$$1;
12151
+ const CodeBlockUtils$3 = CodeBlockUtils$7;
12152
+ const { preprocessJsonForValidation: preprocessJsonForValidation$3 } = jsonParser;
12153
+
12149
12154
  /**
12150
12155
  * Parses the 'Custom Metadata Definitions' block from the markdown content.
12151
12156
  * Handles both formats:
@@ -12193,11 +12198,6 @@ function parseMetadataDefinitions(markdownContent) {
12193
12198
  return definitions;
12194
12199
  }
12195
12200
 
12196
- const fs$5 = require$$0.promises;
12197
- const path$3 = require$$1;
12198
- const CodeBlockUtils$3 = CodeBlockUtils$7;
12199
- const { preprocessJsonForValidation: preprocessJsonForValidation$3 } = jsonParser;
12200
-
12201
12201
  /**
12202
12202
  * Maps a simple type string (from the definitions block) to a JSON schema type object.
12203
12203
  * @param {string} simpleType - The type string (e.g., "number", "array of strings").
@@ -12346,6 +12346,7 @@ async function getAnalyzerSchema$2(analyzersBasePath, analyzerId) {
12346
12346
  const schema = {
12347
12347
  type: 'object',
12348
12348
  description: rawJson.description,
12349
+ label: rawJson.label,
12349
12350
  version: rawJson.version,
12350
12351
  properties: {},
12351
12352
  required: [],
@@ -24053,6 +24054,16 @@ let SVGUtils$1 = class SVGUtils {
24053
24054
  return this.create(xml, params);
24054
24055
  }
24055
24056
 
24057
+ /**
24058
+ * Generate commandPallete SVG icon
24059
+ * @param {Object} params - Configuration parameters
24060
+ * @returns {Element} SVG element
24061
+ */
24062
+ static commandPallete(params) {
24063
+ const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="m6.354 8.04-4.773 4.773a.75.75 0 1 0 1.061 1.06L7.945 8.57a.75.75 0 0 0 0-1.06L2.642 2.206a.75.75 0 0 0-1.06 1.061L6.353 8.04ZM8.75 11.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Z"></path></svg>`;
24064
+ return this.create(xml, params);
24065
+ }
24066
+
24056
24067
  /**
24057
24068
  * Generate comment SVG icon
24058
24069
  * @param {Object} params - Configuration parameters
@@ -24962,6 +24973,16 @@ let SVGUtils$1 = class SVGUtils {
24962
24973
  return this.create(xml, params);
24963
24974
  }
24964
24975
 
24976
+ /**
24977
+ * Generate terminal SVG icon
24978
+ * @param {Object} params - Configuration parameters
24979
+ * @returns {Element} SVG element
24980
+ */
24981
+ static terminal(params) {
24982
+ const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM7.25 8a.749.749 0 0 1-.22.53l-2.25 2.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L5.44 8 3.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.25 2.25c.141.14.22.331.22.53Zm1.5 1.5h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z"></path></svg>`;
24983
+ return this.create(xml, params);
24984
+ }
24985
+
24965
24986
  /**
24966
24987
  * Generate toggle SVG icon
24967
24988
  * @param {Object} params - Configuration parameters
@@ -9968,7 +9968,7 @@ function fixTextCodeBlocks$2(text) {
9968
9968
  if (validation["Block-UUID"] === "INVALID UUID") {
9969
9969
  blockModified = true;
9970
9970
  modified = true;
9971
- return `${fieldPart}: ${validation["Correct Block-UUID"]}`;
9971
+ return ` ${fieldPart}: ${validation["Correct Block-UUID"]}`;
9972
9972
  }
9973
9973
  }
9974
9974
  return line;
@@ -12144,6 +12144,11 @@ var saver = {
12144
12144
  * Authors: Gemini 2.5 Flash (v1.0.0), Gemini 2.5 Pro (v1.1.0), Claude Haiku 4.5 (v1.2.0), Claude Haiku 4.5 (v1.3.0), Qwen 3 Coder 480B - Cerebras (v1.4.0), GLM-4.6 (v1.4.1)
12145
12145
  */
12146
12146
 
12147
+ const fs$5 = require$$0.promises;
12148
+ const path$3 = require$$1;
12149
+ const CodeBlockUtils$3 = CodeBlockUtils$7;
12150
+ const { preprocessJsonForValidation: preprocessJsonForValidation$3 } = jsonParser;
12151
+
12147
12152
  /**
12148
12153
  * Parses the 'Custom Metadata Definitions' block from the markdown content.
12149
12154
  * Handles both formats:
@@ -12191,11 +12196,6 @@ function parseMetadataDefinitions(markdownContent) {
12191
12196
  return definitions;
12192
12197
  }
12193
12198
 
12194
- const fs$5 = require$$0.promises;
12195
- const path$3 = require$$1;
12196
- const CodeBlockUtils$3 = CodeBlockUtils$7;
12197
- const { preprocessJsonForValidation: preprocessJsonForValidation$3 } = jsonParser;
12198
-
12199
12199
  /**
12200
12200
  * Maps a simple type string (from the definitions block) to a JSON schema type object.
12201
12201
  * @param {string} simpleType - The type string (e.g., "number", "array of strings").
@@ -12344,6 +12344,7 @@ async function getAnalyzerSchema$2(analyzersBasePath, analyzerId) {
12344
12344
  const schema = {
12345
12345
  type: 'object',
12346
12346
  description: rawJson.description,
12347
+ label: rawJson.label,
12347
12348
  version: rawJson.version,
12348
12349
  properties: {},
12349
12350
  required: [],
@@ -24051,6 +24052,16 @@ let SVGUtils$1 = class SVGUtils {
24051
24052
  return this.create(xml, params);
24052
24053
  }
24053
24054
 
24055
+ /**
24056
+ * Generate commandPallete SVG icon
24057
+ * @param {Object} params - Configuration parameters
24058
+ * @returns {Element} SVG element
24059
+ */
24060
+ static commandPallete(params) {
24061
+ const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="m6.354 8.04-4.773 4.773a.75.75 0 1 0 1.061 1.06L7.945 8.57a.75.75 0 0 0 0-1.06L2.642 2.206a.75.75 0 0 0-1.06 1.061L6.353 8.04ZM8.75 11.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Z"></path></svg>`;
24062
+ return this.create(xml, params);
24063
+ }
24064
+
24054
24065
  /**
24055
24066
  * Generate comment SVG icon
24056
24067
  * @param {Object} params - Configuration parameters
@@ -24960,6 +24971,16 @@ let SVGUtils$1 = class SVGUtils {
24960
24971
  return this.create(xml, params);
24961
24972
  }
24962
24973
 
24974
+ /**
24975
+ * Generate terminal SVG icon
24976
+ * @param {Object} params - Configuration parameters
24977
+ * @returns {Element} SVG element
24978
+ */
24979
+ static terminal(params) {
24980
+ const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM7.25 8a.749.749 0 0 1-.22.53l-2.25 2.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L5.44 8 3.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.25 2.25c.141.14.22.331.22.53Zm1.5 1.5h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z"></path></svg>`;
24981
+ return this.create(xml, params);
24982
+ }
24983
+
24963
24984
  /**
24964
24985
  * Generate toggle SVG icon
24965
24986
  * @param {Object} params - Configuration parameters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitsense/gsc-utils",
3
- "version": "0.2.32",
3
+ "version": "0.2.34",
4
4
  "description": "Utilities for GitSense Chat (GSC)",
5
5
  "main": "dist/gsc-utils.cjs.js",
6
6
  "module": "dist/gsc-utils.esm.js",
@@ -10,6 +10,11 @@
10
10
  */
11
11
 
12
12
 
13
+ const fs = require('fs').promises;
14
+ const path = require('path');
15
+ const CodeBlockUtils = require('../CodeBlockUtils');
16
+ const { preprocessJsonForValidation } = require('./jsonParser');
17
+
13
18
  /**
14
19
  * Parses the 'Custom Metadata Definitions' block from the markdown content.
15
20
  * Handles both formats:
@@ -57,11 +62,6 @@ function parseMetadataDefinitions(markdownContent) {
57
62
  return definitions;
58
63
  }
59
64
 
60
- const fs = require('fs').promises;
61
- const path = require('path');
62
- const CodeBlockUtils = require('../CodeBlockUtils');
63
- const { preprocessJsonForValidation } = require('./jsonParser');
64
-
65
65
  /**
66
66
  * Maps a simple type string (from the definitions block) to a JSON schema type object.
67
67
  * @param {string} simpleType - The type string (e.g., "number", "array of strings").
@@ -210,6 +210,7 @@ async function getAnalyzerSchema(analyzersBasePath, analyzerId) {
210
210
  const schema = {
211
211
  type: 'object',
212
212
  description: rawJson.description,
213
+ label: rawJson.label,
213
214
  version: rawJson.version,
214
215
  properties: {},
215
216
  required: [],
@@ -511,7 +511,7 @@ function fixTextCodeBlocks(text) {
511
511
  if (validation["Block-UUID"] === "INVALID UUID") {
512
512
  blockModified = true;
513
513
  modified = true;
514
- return `${fieldPart}: ${validation["Correct Block-UUID"]}`;
514
+ return ` ${fieldPart}: ${validation["Correct Block-UUID"]}`;
515
515
  }
516
516
  }
517
517
  return line;
package/src/SVGUtils.js CHANGED
@@ -377,6 +377,16 @@ class SVGUtils {
377
377
  return this.create(xml, params);
378
378
  }
379
379
 
380
+ /**
381
+ * Generate commandPallete SVG icon
382
+ * @param {Object} params - Configuration parameters
383
+ * @returns {Element} SVG element
384
+ */
385
+ static commandPallete(params) {
386
+ const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="m6.354 8.04-4.773 4.773a.75.75 0 1 0 1.061 1.06L7.945 8.57a.75.75 0 0 0 0-1.06L2.642 2.206a.75.75 0 0 0-1.06 1.061L6.353 8.04ZM8.75 11.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Z"></path></svg>`;
387
+ return this.create(xml, params);
388
+ }
389
+
380
390
  /**
381
391
  * Generate comment SVG icon
382
392
  * @param {Object} params - Configuration parameters
@@ -1286,6 +1296,16 @@ class SVGUtils {
1286
1296
  return this.create(xml, params);
1287
1297
  }
1288
1298
 
1299
+ /**
1300
+ * Generate terminal SVG icon
1301
+ * @param {Object} params - Configuration parameters
1302
+ * @returns {Element} SVG element
1303
+ */
1304
+ static terminal(params) {
1305
+ const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM7.25 8a.749.749 0 0 1-.22.53l-2.25 2.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L5.44 8 3.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.25 2.25c.141.14.22.331.22.53Zm1.5 1.5h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z"></path></svg>`;
1306
+ return this.create(xml, params);
1307
+ }
1308
+
1289
1309
  /**
1290
1310
  * Generate toggle SVG icon
1291
1311
  * @param {Object} params - Configuration parameters