@curdx/flow 2.0.11 → 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.
@@ -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.11"
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.11",
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.find((x) => x.id === r.id || x.name === r.name);
63
- if (r.marketplaceSource && !marketplaceNames.has(r.marketplaceId)) {
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.find((x) => x.id === r.id || x.name === r.name);
120
- if (r.marketplaceSource && !marketplaceNames.has(r.marketplaceId)) {
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
@@ -23,6 +23,8 @@ export { readConfig, writeConfig } from "./lib/config.js";
23
23
  export {
24
24
  claudeVersion,
25
25
  findDuplicateMcps,
26
+ findPluginByRegistryEntry,
27
+ hasMarketplace,
26
28
  listMcps,
27
29
  listPluginMarketplaces,
28
30
  listPlugins,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curdx/flow",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "CLI installer for CurdX-Flow — AI engineering workflow meta-framework for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {