@curdx/flow 2.0.13 → 2.0.15
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.
|
|
9
|
+
"version": "2.0.15"
|
|
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.15",
|
|
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",
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { color, log, run } from "./utils.js";
|
|
2
|
+
import {
|
|
3
|
+
pluginInstallArgs,
|
|
4
|
+
pluginMarketplaceAddArgs,
|
|
5
|
+
pluginMarketplaceRemoveArgs,
|
|
6
|
+
} from "./lib/claude-commands.js";
|
|
2
7
|
|
|
3
8
|
export async function addCurdxMarketplace({ marketplaceSource, marketplaceLabel, useOffline }) {
|
|
4
9
|
log.blank();
|
|
@@ -9,13 +14,13 @@ export async function addCurdxMarketplace({ marketplaceSource, marketplaceLabel,
|
|
|
9
14
|
// simply not exist yet).
|
|
10
15
|
await run(
|
|
11
16
|
"claude",
|
|
12
|
-
|
|
17
|
+
pluginMarketplaceRemoveArgs("curdx-flow-marketplace"),
|
|
13
18
|
{ silent: true }
|
|
14
19
|
);
|
|
15
20
|
|
|
16
21
|
const addRes = await run(
|
|
17
22
|
"claude",
|
|
18
|
-
|
|
23
|
+
pluginMarketplaceAddArgs({ scope: "user", marketplaceSource }),
|
|
19
24
|
{ silent: true }
|
|
20
25
|
);
|
|
21
26
|
if (addRes.code !== 0 && !addRes.stderr.includes("already")) {
|
|
@@ -47,7 +52,10 @@ export async function installCurdxFlowPlugin({ prevCurdxFlow, shippedVersion })
|
|
|
47
52
|
);
|
|
48
53
|
const r = await run(
|
|
49
54
|
"claude",
|
|
50
|
-
|
|
55
|
+
pluginInstallArgs({
|
|
56
|
+
scope: "user",
|
|
57
|
+
installSpec: "curdx-flow@curdx-flow-marketplace",
|
|
58
|
+
}),
|
|
51
59
|
{ silent: true }
|
|
52
60
|
);
|
|
53
61
|
if (r.code !== 0) {
|
|
@@ -61,7 +69,10 @@ export async function installCurdxFlowPlugin({ prevCurdxFlow, shippedVersion })
|
|
|
61
69
|
);
|
|
62
70
|
const r = await run(
|
|
63
71
|
"claude",
|
|
64
|
-
|
|
72
|
+
pluginInstallArgs({
|
|
73
|
+
scope: "user",
|
|
74
|
+
installSpec: "curdx-flow@curdx-flow-marketplace",
|
|
75
|
+
}),
|
|
65
76
|
{ silent: true }
|
|
66
77
|
);
|
|
67
78
|
if (r.code !== 0) {
|
|
@@ -75,7 +86,10 @@ export async function installCurdxFlowPlugin({ prevCurdxFlow, shippedVersion })
|
|
|
75
86
|
);
|
|
76
87
|
const r = await run(
|
|
77
88
|
"claude",
|
|
78
|
-
|
|
89
|
+
pluginInstallArgs({
|
|
90
|
+
scope: "user",
|
|
91
|
+
installSpec: "curdx-flow@curdx-flow-marketplace",
|
|
92
|
+
}),
|
|
79
93
|
{ silent: true }
|
|
80
94
|
);
|
|
81
95
|
if (r.code !== 0) {
|
|
@@ -86,7 +100,10 @@ export async function installCurdxFlowPlugin({ prevCurdxFlow, shippedVersion })
|
|
|
86
100
|
} else {
|
|
87
101
|
const r = await run(
|
|
88
102
|
"claude",
|
|
89
|
-
|
|
103
|
+
pluginInstallArgs({
|
|
104
|
+
scope: "user",
|
|
105
|
+
installSpec: "curdx-flow@curdx-flow-marketplace",
|
|
106
|
+
}),
|
|
90
107
|
{ silent: true }
|
|
91
108
|
);
|
|
92
109
|
if (r.code !== 0) {
|
|
@@ -2,10 +2,26 @@ export function pluginMarketplaceAddArgs({ scope, marketplaceSource }) {
|
|
|
2
2
|
return ["plugin", "marketplace", "add", "--scope", scope, marketplaceSource];
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
export function pluginMarketplaceUpdateArgs(marketplaceId) {
|
|
6
|
+
return ["plugin", "marketplace", "update", marketplaceId];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function pluginMarketplaceRemoveArgs(marketplaceId) {
|
|
10
|
+
return ["plugin", "marketplace", "remove", marketplaceId];
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
export function pluginInstallArgs({ scope, installSpec }) {
|
|
6
14
|
return ["plugin", "install", "--scope", scope, installSpec];
|
|
7
15
|
}
|
|
8
16
|
|
|
17
|
+
export function pluginUpdateArgs({ scope = "user", spec }) {
|
|
18
|
+
return ["plugin", "update", "--scope", scope, spec];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function pluginUninstallArgs({ scope, uninstallSpec, uninstallArgs = [] }) {
|
|
22
|
+
return ["plugin", "uninstall", "--scope", scope, ...uninstallArgs, uninstallSpec];
|
|
23
|
+
}
|
|
24
|
+
|
|
9
25
|
export function mcpAddArgs({ scope = "user", name, command, args = [], env = [] }) {
|
|
10
26
|
return [
|
|
11
27
|
"mcp",
|
package/cli/uninstall.js
CHANGED
|
@@ -17,6 +17,11 @@ import {
|
|
|
17
17
|
} from "./utils.js";
|
|
18
18
|
import { removeGlobalProtocols, GLOBAL_CLAUDE_MD } from "./protocols.js";
|
|
19
19
|
import { REQUIRED_PLUGINS, RECOMMENDED_PLUGINS, BUNDLED_MCPS } from "./registry.js";
|
|
20
|
+
import {
|
|
21
|
+
mcpRemoveArgs,
|
|
22
|
+
pluginMarketplaceRemoveArgs,
|
|
23
|
+
pluginUninstallArgs,
|
|
24
|
+
} from "./lib/claude-commands.js";
|
|
20
25
|
|
|
21
26
|
const HOME = homedir();
|
|
22
27
|
|
|
@@ -78,7 +83,10 @@ export async function uninstall(args = []) {
|
|
|
78
83
|
} else {
|
|
79
84
|
const r = await run(
|
|
80
85
|
"claude",
|
|
81
|
-
|
|
86
|
+
pluginUninstallArgs({
|
|
87
|
+
scope: "user",
|
|
88
|
+
uninstallSpec: "curdx-flow@curdx-flow-marketplace",
|
|
89
|
+
}),
|
|
82
90
|
{ silent: true }
|
|
83
91
|
);
|
|
84
92
|
if (r.code === 0) {
|
|
@@ -127,7 +135,7 @@ export async function uninstall(args = []) {
|
|
|
127
135
|
console.log(` ${color.cyan("▸")} Uninstalling ${color.bold(rec.name)}...`);
|
|
128
136
|
const r = await run(
|
|
129
137
|
"claude",
|
|
130
|
-
|
|
138
|
+
pluginUninstallArgs(rec),
|
|
131
139
|
{ silent: true }
|
|
132
140
|
);
|
|
133
141
|
if (r.code === 0) {
|
|
@@ -159,7 +167,7 @@ export async function uninstall(args = []) {
|
|
|
159
167
|
);
|
|
160
168
|
if (removeMcps) {
|
|
161
169
|
for (const mcp of BUNDLED_MCPS) {
|
|
162
|
-
const r = await run("claude",
|
|
170
|
+
const r = await run("claude", mcpRemoveArgs({ name: mcp.name }), {
|
|
163
171
|
silent: true,
|
|
164
172
|
});
|
|
165
173
|
if (r.code === 0) {
|
|
@@ -189,7 +197,7 @@ export async function uninstall(args = []) {
|
|
|
189
197
|
for (const plugin of REQUIRED) {
|
|
190
198
|
const r = await run(
|
|
191
199
|
"claude",
|
|
192
|
-
|
|
200
|
+
pluginUninstallArgs(plugin),
|
|
193
201
|
{ silent: true }
|
|
194
202
|
);
|
|
195
203
|
if (r.code === 0) {
|
|
@@ -225,7 +233,7 @@ export async function uninstall(args = []) {
|
|
|
225
233
|
for (const marketplaceId of marketplaceIds) {
|
|
226
234
|
const r = await run(
|
|
227
235
|
"claude",
|
|
228
|
-
|
|
236
|
+
pluginMarketplaceRemoveArgs(marketplaceId),
|
|
229
237
|
{ silent: true }
|
|
230
238
|
);
|
|
231
239
|
if (r.code === 0) {
|
package/cli/upgrade.js
CHANGED
|
@@ -7,6 +7,10 @@ import {
|
|
|
7
7
|
PLUGINS_TO_UPDATE,
|
|
8
8
|
MARKETPLACES_TO_REFRESH,
|
|
9
9
|
} from "./registry.js";
|
|
10
|
+
import {
|
|
11
|
+
pluginMarketplaceUpdateArgs,
|
|
12
|
+
pluginUpdateArgs,
|
|
13
|
+
} from "./lib/claude-commands.js";
|
|
10
14
|
|
|
11
15
|
export async function upgrade(args = []) {
|
|
12
16
|
log.title("⬆️ CurdX-Flow upgrade");
|
|
@@ -21,7 +25,7 @@ export async function upgrade(args = []) {
|
|
|
21
25
|
for (const mp of MARKETPLACES_TO_REFRESH) {
|
|
22
26
|
const r = await run(
|
|
23
27
|
"claude",
|
|
24
|
-
|
|
28
|
+
pluginMarketplaceUpdateArgs(mp),
|
|
25
29
|
{ silent: true }
|
|
26
30
|
);
|
|
27
31
|
if (r.code === 0) {
|
|
@@ -47,7 +51,7 @@ export async function upgrade(args = []) {
|
|
|
47
51
|
continue;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
|
-
const r = await run("claude",
|
|
54
|
+
const r = await run("claude", pluginUpdateArgs({ spec }), { silent: true });
|
|
51
55
|
if (r.code === 0) {
|
|
52
56
|
const updated = r.stdout.includes("updated from");
|
|
53
57
|
if (updated) {
|