@crownpeak/dqm-react-component-dev-mcp 1.2.0 → 1.2.2

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/bin/mcp ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ import { fileURLToPath } from 'url';
3
+ import { dirname, resolve } from 'path';
4
+ import { spawn } from 'child_process';
5
+
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = dirname(__filename);
8
+ const indexPath = resolve(__dirname, '..', 'src', 'index.js');
9
+
10
+ // Forward all arguments to the main script
11
+ const child = spawn('node', [indexPath, ...process.argv.slice(2)], {
12
+ stdio: 'inherit',
13
+ env: process.env
14
+ });
15
+
16
+ child.on('exit', (code) => process.exit(code ?? 0));
package/data/CHANGELOG.md CHANGED
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.2.2] - 2026-01-08
9
+
10
+ ### Fixed
11
+ - **AI Translation Reliability**: Resolved issue where AI translations were not triggered automatically
12
+ - Translation now starts automatically when AI summary completes
13
+ - Translation now starts automatically when AI engine becomes ready
14
+ - Fixed race condition where blocked translations would never retry
15
+
16
+ ### Added
17
+ - **300ms Debounce**: API calls are now debounced to prevent accidental spam when state changes rapidly
18
+ - **Reactive State Management**: `summaryGenerating` and `engineIsReady` are now proper effect dependencies
19
+ - **Automatic Retry Logic**: Translation automatically restarts when blocking conditions are resolved
20
+ - **Unit Tests**: 13 new tests for `useAITranslation` hook covering debounce, blocking, cache, and abort behavior
21
+ - **Integration Tests**: 6 new tests for Summary→Translation flow with API call counting
22
+
23
+ ### Changed
24
+ - AI Translation hook now uses reactive dependencies instead of refs for blocking conditions
25
+ - Improved cleanup on component unmount (cancels pending debounce timers and aborts requests)
26
+
8
27
  ## [1.2.0] - 2026-01-07
9
28
 
10
29
  ### Added
@@ -28,13 +28,13 @@ Version 1.2.0 introduces powerful new features while maintaining full backward c
28
28
  ### Step 1: Update Package
29
29
 
30
30
  ```bash
31
- npm install @crownpeak/dqm-react-component@1.2.0
31
+ npm install @crownpeak/dqm-react-component@^1.2.0
32
32
  ```
33
33
 
34
34
  Or with Yarn:
35
35
 
36
36
  ```bash
37
- yarn upgrade @crownpeak/dqm-react-component@1.2.0
37
+ yarn upgrade @crownpeak/dqm-react-component@^1.2.0
38
38
  ```
39
39
 
40
40
  ### Step 2: Verify (No Changes Required)
package/data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crownpeak/dqm-react-component",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "private": false,
5
5
  "description": "A React component for Crownpeak Digital Quality Management (DQM) integration",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@crownpeak/dqm-react-component-dev-mcp",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "MCP Server for Crownpeak DQM React Component documentation - powered by Probe",
5
5
  "author": "Crownpeak Technology GmbH",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "main": "src/index.js",
9
9
  "bin": {
10
- "dqm-dev-mcp": "bin/mcp"
10
+ "dqm-mcp": "./bin/mcp"
11
11
  },
12
12
  "files": [
13
13
  "bin",