@curdx/flow 2.0.7 → 2.0.8
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.8"
|
|
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.8",
|
|
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/install-paths.js
CHANGED
|
@@ -13,6 +13,11 @@ export const LOCAL_MARKETPLACE_MANIFEST = join(
|
|
|
13
13
|
".claude-plugin",
|
|
14
14
|
"marketplace.json"
|
|
15
15
|
);
|
|
16
|
+
export const LOCAL_PLUGIN_MANIFEST = join(
|
|
17
|
+
PKG_ROOT,
|
|
18
|
+
".claude-plugin",
|
|
19
|
+
"plugin.json"
|
|
20
|
+
);
|
|
16
21
|
|
|
17
22
|
export function shouldUseOfflineInstall({ forceOnline }) {
|
|
18
23
|
return !forceOnline && existsSync(LOCAL_MARKETPLACE_MANIFEST);
|
|
@@ -30,8 +35,16 @@ export function getMarketplaceLabel(useOffline) {
|
|
|
30
35
|
|
|
31
36
|
export function readShippedVersion() {
|
|
32
37
|
try {
|
|
33
|
-
const
|
|
34
|
-
|
|
38
|
+
const plugin = JSON.parse(readFileSync(LOCAL_PLUGIN_MANIFEST, "utf-8"));
|
|
39
|
+
if (plugin?.version) return plugin.version;
|
|
40
|
+
} catch {
|
|
41
|
+
// Fall back to the marketplace manifest below. Online installs or old
|
|
42
|
+
// package layouts may not have a local plugin manifest available.
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
try {
|
|
46
|
+
const marketplace = JSON.parse(readFileSync(LOCAL_MARKETPLACE_MANIFEST, "utf-8"));
|
|
47
|
+
return marketplace?.metadata?.version || null;
|
|
35
48
|
} catch {
|
|
36
49
|
// marketplace not local (online install) or unreadable
|
|
37
50
|
return null;
|