@curdx/flow 2.0.10 → 2.0.12
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/cli/doctor.js +6 -5
- package/cli/lib/claude.js +11 -0
- package/cli/utils.js +2 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Claude Code Discipline Layer — spec-driven workflow + goal-backward verification + Karpathy 4 principles enforced via gates. Stops Claude from faking \"done\" on non-trivial features.",
|
|
9
|
-
"version": "2.0.
|
|
9
|
+
"version": "2.0.12"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "curdx-flow",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "Claude Code Discipline Layer — spec-driven workflow + goal-backward verification + Karpathy 4 principles enforced via gates. Stops Claude from faking \"done\" on non-trivial features.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wdx",
|
package/cli/doctor.js
CHANGED
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
ensureClaudeMemRuntimes,
|
|
16
16
|
readUserMcpConfig,
|
|
17
17
|
findDuplicateMcps,
|
|
18
|
+
findPluginByRegistryEntry,
|
|
19
|
+
hasMarketplace,
|
|
18
20
|
} from "./utils.js";
|
|
19
21
|
import { BUNDLED_MCPS, REQUIRED_PLUGINS, RECOMMENDED_PLUGINS } from "./registry.js";
|
|
20
22
|
|
|
@@ -54,13 +56,12 @@ export async function doctor(args = []) {
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
const marketplaces = cv ? listPluginMarketplaces() : [];
|
|
57
|
-
const marketplaceNames = new Set(marketplaces.map((m) => m.name));
|
|
58
59
|
|
|
59
60
|
// ---------- Required plugins ----------
|
|
60
61
|
console.log(`\n${color.bold("Required plugins:")}`);
|
|
61
62
|
for (const r of REQUIRED_PLUGINS) {
|
|
62
|
-
const p = plugins
|
|
63
|
-
if (
|
|
63
|
+
const p = findPluginByRegistryEntry(plugins, r);
|
|
64
|
+
if (!hasMarketplace(marketplaces, r)) {
|
|
64
65
|
log.warn(
|
|
65
66
|
`${r.marketplaceId.padEnd(22)} marketplace missing ${color.dim(`(run: claude plugin marketplace add --scope ${r.scope} ${r.marketplaceSource})`)}`
|
|
66
67
|
);
|
|
@@ -116,8 +117,8 @@ export async function doctor(args = []) {
|
|
|
116
117
|
console.log(`\n${color.bold("Recommended plugins:")}`);
|
|
117
118
|
let claudeMemEnabled = false;
|
|
118
119
|
for (const r of RECOMMENDED_PLUGINS) {
|
|
119
|
-
const p = plugins
|
|
120
|
-
if (
|
|
120
|
+
const p = findPluginByRegistryEntry(plugins, r);
|
|
121
|
+
if (!hasMarketplace(marketplaces, r)) {
|
|
121
122
|
log.warn(
|
|
122
123
|
`${r.marketplaceId.padEnd(22)} marketplace missing ${color.dim(`(run: claude plugin marketplace add --scope ${r.scope} ${r.marketplaceSource})`)}`
|
|
123
124
|
);
|
package/cli/lib/claude.js
CHANGED
|
@@ -71,6 +71,17 @@ export function listPluginMarketplaces() {
|
|
|
71
71
|
return [];
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
export function findPluginByRegistryEntry(plugins, registryEntry) {
|
|
75
|
+
return plugins.find(
|
|
76
|
+
(plugin) => plugin.id === registryEntry.id || plugin.name === registryEntry.name
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function hasMarketplace(marketplaces, registryEntry) {
|
|
81
|
+
if (!registryEntry.marketplaceSource) return true;
|
|
82
|
+
return marketplaces.some((marketplace) => marketplace.name === registryEntry.marketplaceId);
|
|
83
|
+
}
|
|
84
|
+
|
|
74
85
|
export function readUserMcpConfig() {
|
|
75
86
|
try {
|
|
76
87
|
const path = join(HOME, ".claude.json");
|
package/cli/utils.js
CHANGED