@getcoherent/cli 0.6.45 → 0.6.46
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/index.js +13 -5
- package/package.json +10 -10
- package/LICENSE +0 -21
package/dist/index.js
CHANGED
|
@@ -8399,7 +8399,9 @@ async function fixCommand(opts = {}) {
|
|
|
8399
8399
|
}
|
|
8400
8400
|
}
|
|
8401
8401
|
} catch (err) {
|
|
8402
|
-
remaining.push(
|
|
8402
|
+
remaining.push(
|
|
8403
|
+
`${relative5(projectRoot, file)}: syntax fix error \u2014 ${err instanceof Error ? err.message : "unknown"}`
|
|
8404
|
+
);
|
|
8403
8405
|
}
|
|
8404
8406
|
}
|
|
8405
8407
|
if (syntaxFixed > 0) {
|
|
@@ -8575,7 +8577,9 @@ async function fixCommand(opts = {}) {
|
|
|
8575
8577
|
}
|
|
8576
8578
|
}
|
|
8577
8579
|
} catch (err) {
|
|
8578
|
-
remaining.push(
|
|
8580
|
+
remaining.push(
|
|
8581
|
+
`${relative5(projectRoot, file)}: quality fix error \u2014 ${err instanceof Error ? err.message : "unknown"}`
|
|
8582
|
+
);
|
|
8579
8583
|
}
|
|
8580
8584
|
}
|
|
8581
8585
|
if (qualityFixCount > 0) {
|
|
@@ -8605,7 +8609,9 @@ async function fixCommand(opts = {}) {
|
|
|
8605
8609
|
}
|
|
8606
8610
|
}
|
|
8607
8611
|
} catch (fileErr) {
|
|
8608
|
-
remaining.push(
|
|
8612
|
+
remaining.push(
|
|
8613
|
+
`${relative5(projectRoot, file)}: mock data fix error \u2014 ${fileErr instanceof Error ? fileErr.message : "unknown"}`
|
|
8614
|
+
);
|
|
8609
8615
|
}
|
|
8610
8616
|
}
|
|
8611
8617
|
if (mockFixed > 0) {
|
|
@@ -8656,7 +8662,9 @@ async function fixCommand(opts = {}) {
|
|
|
8656
8662
|
const report = formatIssues(filteredIssues);
|
|
8657
8663
|
fileIssues.push({ path: relativePath, report });
|
|
8658
8664
|
} catch (err) {
|
|
8659
|
-
remaining.push(
|
|
8665
|
+
remaining.push(
|
|
8666
|
+
`${relative5(projectRoot, file)}: validation error \u2014 ${err instanceof Error ? err.message : "unknown"}`
|
|
8667
|
+
);
|
|
8660
8668
|
}
|
|
8661
8669
|
}
|
|
8662
8670
|
try {
|
|
@@ -8742,7 +8750,7 @@ async function fixCommand(opts = {}) {
|
|
|
8742
8750
|
const tsconfigPath = resolve8(projectRoot, "tsconfig.json");
|
|
8743
8751
|
if (existsSync15(tsconfigPath)) {
|
|
8744
8752
|
const { execSync: execSync2 } = await import("child_process");
|
|
8745
|
-
execSync2("npx tsc --noEmit
|
|
8753
|
+
execSync2("npx tsc --noEmit 2>&1", {
|
|
8746
8754
|
cwd: projectRoot,
|
|
8747
8755
|
timeout: 3e4,
|
|
8748
8756
|
encoding: "utf-8"
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.6.
|
|
6
|
+
"version": "0.6.46",
|
|
7
7
|
"description": "CLI interface for Coherent Design Method",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/index.js",
|
|
@@ -33,8 +33,15 @@
|
|
|
33
33
|
],
|
|
34
34
|
"author": "Coherent Design Method",
|
|
35
35
|
"license": "MIT",
|
|
36
|
+
"scripts": {
|
|
37
|
+
"dev": "tsup --watch",
|
|
38
|
+
"build": "tsup",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"test": "vitest"
|
|
41
|
+
},
|
|
36
42
|
"dependencies": {
|
|
37
43
|
"@anthropic-ai/sdk": "^0.32.0",
|
|
44
|
+
"@getcoherent/core": "workspace:*",
|
|
38
45
|
"chalk": "^5.3.0",
|
|
39
46
|
"chokidar": "^4.0.1",
|
|
40
47
|
"commander": "^11.1.0",
|
|
@@ -42,8 +49,7 @@
|
|
|
42
49
|
"open": "^10.1.0",
|
|
43
50
|
"ora": "^7.0.1",
|
|
44
51
|
"prompts": "^2.4.2",
|
|
45
|
-
"zod": "^3.22.4"
|
|
46
|
-
"@getcoherent/core": "0.6.45"
|
|
52
|
+
"zod": "^3.22.4"
|
|
47
53
|
},
|
|
48
54
|
"devDependencies": {
|
|
49
55
|
"@types/node": "^20.11.0",
|
|
@@ -52,11 +58,5 @@
|
|
|
52
58
|
"react": "^19.2.4",
|
|
53
59
|
"tsup": "^8.0.1",
|
|
54
60
|
"typescript": "^5.3.3"
|
|
55
|
-
},
|
|
56
|
-
"scripts": {
|
|
57
|
-
"dev": "tsup --watch",
|
|
58
|
-
"build": "tsup",
|
|
59
|
-
"typecheck": "tsc --noEmit",
|
|
60
|
-
"test": "vitest"
|
|
61
61
|
}
|
|
62
|
-
}
|
|
62
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Sergei Kovtun
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|