@gitsense/gsc-utils 0.2.31 → 0.2.32
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
|
@@ -9926,7 +9926,7 @@ function fixTextCodeBlocks$2(text) {
|
|
|
9926
9926
|
const newLines = lines.map(line => {
|
|
9927
9927
|
// Check for UUID fields in patch metadata
|
|
9928
9928
|
if ((line.includes('# Source-Block-UUID:') || line.includes('# Target-Block-UUID:')) &&
|
|
9929
|
-
!line.includes('{{GS-UUID}')) {
|
|
9929
|
+
!line.includes('{{GS-UUID}}')) {
|
|
9930
9930
|
|
|
9931
9931
|
const [fieldPart, valuePart] = line.split(':').map(p => p.trim());
|
|
9932
9932
|
|
|
@@ -10462,13 +10462,13 @@ var markerRemover = { removeCodeBlockMarkers: removeCodeBlockMarkers$2 };
|
|
|
10462
10462
|
|
|
10463
10463
|
/**
|
|
10464
10464
|
* Component: CodeBlockUtils Traceable Code Parser
|
|
10465
|
-
* Block-UUID:
|
|
10466
|
-
* Parent-UUID:
|
|
10467
|
-
* Version: 1.0.
|
|
10468
|
-
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs
|
|
10465
|
+
* Block-UUID: b87c8e44-6417-4788-a220-7f587307c60a
|
|
10466
|
+
* Parent-UUID: 8a4b2c1d-9e6f-4a3b-8c7d-1e2f3a4b5c6d
|
|
10467
|
+
* Version: 1.0.1
|
|
10468
|
+
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs, version flags, and current block identifiers for backend validation.
|
|
10469
10469
|
* Language: JavaScript
|
|
10470
10470
|
* Created-at: 2026-01-26T17:50:00.000Z
|
|
10471
|
-
* Authors: GLM-4.7 (v1.0.0)
|
|
10471
|
+
* Authors: GLM-4.7 (v1.0.0), GLM-4.7 (v1.0.1)
|
|
10472
10472
|
*/
|
|
10473
10473
|
|
|
10474
10474
|
const { findAllCodeFences: findAllCodeFences$3 } = blockExtractor;
|
|
@@ -10569,6 +10569,7 @@ function parseTraceableLine(line) {
|
|
|
10569
10569
|
|
|
10570
10570
|
const isTraceableStr = extract('Traceable Code');
|
|
10571
10571
|
const isNewVersionStr = extract('New Version');
|
|
10572
|
+
const currentBlockUUID = extract('Current Block-UUID');
|
|
10572
10573
|
const currentParentUUID = extract('Current Parent-UUID');
|
|
10573
10574
|
const newParentUUID = extract('New Parent-UUID');
|
|
10574
10575
|
const newBlockUUID = extract('New Block-UUID');
|
|
@@ -10588,6 +10589,7 @@ function parseTraceableLine(line) {
|
|
|
10588
10589
|
data: {
|
|
10589
10590
|
isTraceable: isTraceableStr === 'Yes',
|
|
10590
10591
|
isNewVersion: isNewVersionStr === 'Yes',
|
|
10592
|
+
currentBlockUUID: currentBlockUUID,
|
|
10591
10593
|
currentParentUUID: currentParentUUID,
|
|
10592
10594
|
newParentUUID: newParentUUID,
|
|
10593
10595
|
newBlockUUID: newBlockUUID
|
package/dist/gsc-utils.esm.js
CHANGED
|
@@ -9924,7 +9924,7 @@ function fixTextCodeBlocks$2(text) {
|
|
|
9924
9924
|
const newLines = lines.map(line => {
|
|
9925
9925
|
// Check for UUID fields in patch metadata
|
|
9926
9926
|
if ((line.includes('# Source-Block-UUID:') || line.includes('# Target-Block-UUID:')) &&
|
|
9927
|
-
!line.includes('{{GS-UUID}')) {
|
|
9927
|
+
!line.includes('{{GS-UUID}}')) {
|
|
9928
9928
|
|
|
9929
9929
|
const [fieldPart, valuePart] = line.split(':').map(p => p.trim());
|
|
9930
9930
|
|
|
@@ -10460,13 +10460,13 @@ var markerRemover = { removeCodeBlockMarkers: removeCodeBlockMarkers$2 };
|
|
|
10460
10460
|
|
|
10461
10461
|
/**
|
|
10462
10462
|
* Component: CodeBlockUtils Traceable Code Parser
|
|
10463
|
-
* Block-UUID:
|
|
10464
|
-
* Parent-UUID:
|
|
10465
|
-
* Version: 1.0.
|
|
10466
|
-
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs
|
|
10463
|
+
* Block-UUID: b87c8e44-6417-4788-a220-7f587307c60a
|
|
10464
|
+
* Parent-UUID: 8a4b2c1d-9e6f-4a3b-8c7d-1e2f3a4b5c6d
|
|
10465
|
+
* Version: 1.0.1
|
|
10466
|
+
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs, version flags, and current block identifiers for backend validation.
|
|
10467
10467
|
* Language: JavaScript
|
|
10468
10468
|
* Created-at: 2026-01-26T17:50:00.000Z
|
|
10469
|
-
* Authors: GLM-4.7 (v1.0.0)
|
|
10469
|
+
* Authors: GLM-4.7 (v1.0.0), GLM-4.7 (v1.0.1)
|
|
10470
10470
|
*/
|
|
10471
10471
|
|
|
10472
10472
|
const { findAllCodeFences: findAllCodeFences$3 } = blockExtractor;
|
|
@@ -10567,6 +10567,7 @@ function parseTraceableLine(line) {
|
|
|
10567
10567
|
|
|
10568
10568
|
const isTraceableStr = extract('Traceable Code');
|
|
10569
10569
|
const isNewVersionStr = extract('New Version');
|
|
10570
|
+
const currentBlockUUID = extract('Current Block-UUID');
|
|
10570
10571
|
const currentParentUUID = extract('Current Parent-UUID');
|
|
10571
10572
|
const newParentUUID = extract('New Parent-UUID');
|
|
10572
10573
|
const newBlockUUID = extract('New Block-UUID');
|
|
@@ -10586,6 +10587,7 @@ function parseTraceableLine(line) {
|
|
|
10586
10587
|
data: {
|
|
10587
10588
|
isTraceable: isTraceableStr === 'Yes',
|
|
10588
10589
|
isNewVersion: isNewVersionStr === 'Yes',
|
|
10590
|
+
currentBlockUUID: currentBlockUUID,
|
|
10589
10591
|
currentParentUUID: currentParentUUID,
|
|
10590
10592
|
newParentUUID: newParentUUID,
|
|
10591
10593
|
newBlockUUID: newBlockUUID
|
package/package.json
CHANGED
|
@@ -467,7 +467,7 @@ function fixTextCodeBlocks(text) {
|
|
|
467
467
|
const newLines = lines.map(line => {
|
|
468
468
|
// Check for UUID fields in patch metadata
|
|
469
469
|
if ((line.includes('# Source-Block-UUID:') || line.includes('# Target-Block-UUID:')) &&
|
|
470
|
-
!line.includes('{{GS-UUID}')) {
|
|
470
|
+
!line.includes('{{GS-UUID}}')) {
|
|
471
471
|
|
|
472
472
|
const [fieldPart, valuePart] = line.split(':').map(p => p.trim());
|
|
473
473
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Component: CodeBlockUtils Traceable Code Parser
|
|
3
|
-
* Block-UUID:
|
|
4
|
-
* Parent-UUID:
|
|
5
|
-
* Version: 1.0.
|
|
6
|
-
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs
|
|
3
|
+
* Block-UUID: b87c8e44-6417-4788-a220-7f587307c60a
|
|
4
|
+
* Parent-UUID: 8a4b2c1d-9e6f-4a3b-8c7d-1e2f3a4b5c6d
|
|
5
|
+
* Version: 1.0.1
|
|
6
|
+
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs, version flags, and current block identifiers for backend validation.
|
|
7
7
|
* Language: JavaScript
|
|
8
8
|
* Created-at: 2026-01-26T17:50:00.000Z
|
|
9
|
-
* Authors: GLM-4.7 (v1.0.0)
|
|
9
|
+
* Authors: GLM-4.7 (v1.0.0), GLM-4.7 (v1.0.1)
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
|
|
@@ -108,6 +108,7 @@ function parseTraceableLine(line) {
|
|
|
108
108
|
|
|
109
109
|
const isTraceableStr = extract('Traceable Code');
|
|
110
110
|
const isNewVersionStr = extract('New Version');
|
|
111
|
+
const currentBlockUUID = extract('Current Block-UUID');
|
|
111
112
|
const currentParentUUID = extract('Current Parent-UUID');
|
|
112
113
|
const newParentUUID = extract('New Parent-UUID');
|
|
113
114
|
const newBlockUUID = extract('New Block-UUID');
|
|
@@ -127,6 +128,7 @@ function parseTraceableLine(line) {
|
|
|
127
128
|
data: {
|
|
128
129
|
isTraceable: isTraceableStr === 'Yes',
|
|
129
130
|
isNewVersion: isNewVersionStr === 'Yes',
|
|
131
|
+
currentBlockUUID: currentBlockUUID,
|
|
130
132
|
currentParentUUID: currentParentUUID,
|
|
131
133
|
newParentUUID: newParentUUID,
|
|
132
134
|
newBlockUUID: newBlockUUID
|