@sparkleideas/claude-flow-patch 3.1.0-alpha.44.patch.4 → 3.1.0-alpha.44.patch.5
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/AGENTS.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkleideas/claude-flow-patch",
|
|
3
|
-
"version": "3.1.0-alpha.44.patch.
|
|
3
|
+
"version": "3.1.0-alpha.44.patch.5",
|
|
4
4
|
"description": "Patch toolkit for @claude-flow/cli init/runtime defects with verify and post-init repair commands",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test tests/*.test.mjs",
|
|
@@ -10,15 +10,12 @@
|
|
|
10
10
|
# 2 ops: upgrade path (line ~398) + writeHelpers path (line ~943)
|
|
11
11
|
|
|
12
12
|
# Op 1: Upgrade path — when findSourceHelpersDir() returns null
|
|
13
|
+
# old/new strings stop BEFORE generatedCritical to avoid overlap with SG-003j
|
|
13
14
|
patch("IN-001a: upgrade fallback reads real intelligence.cjs",
|
|
14
15
|
EXECUTOR,
|
|
15
16
|
""" else {
|
|
16
17
|
// Source not found (npx with broken paths) — use generated fallbacks
|
|
17
|
-
const generatedCritical = {
|
|
18
|
-
'hook-handler.cjs': generateHookHandler(),
|
|
19
|
-
'intelligence.cjs': generateIntelligenceStub(),
|
|
20
|
-
'auto-memory-hook.mjs': generateAutoMemoryHook(),
|
|
21
|
-
};""",
|
|
18
|
+
const generatedCritical = {""",
|
|
22
19
|
""" else {
|
|
23
20
|
// Source not found (npx with broken paths) — use generated fallbacks
|
|
24
21
|
// IN-001: Try reading real intelligence.cjs from package before using stub
|
|
@@ -29,11 +26,7 @@ patch("IN-001a: upgrade fallback reads real intelligence.cjs",
|
|
|
29
26
|
intelligenceContent = fs.readFileSync(realPath, 'utf-8');
|
|
30
27
|
}
|
|
31
28
|
} catch { /* use stub */ }
|
|
32
|
-
const generatedCritical = {
|
|
33
|
-
'hook-handler.cjs': generateHookHandler(),
|
|
34
|
-
'intelligence.cjs': intelligenceContent,
|
|
35
|
-
'auto-memory-hook.mjs': generateAutoMemoryHook(),
|
|
36
|
-
};""")
|
|
29
|
+
const generatedCritical = {""")
|
|
37
30
|
|
|
38
31
|
# Op 2: writeHelpers path — fresh init when source dir not found
|
|
39
32
|
patch("IN-001b: writeHelpers fallback reads real intelligence.cjs",
|
|
@@ -122,11 +122,12 @@ patch_all("SG-003i: source hook-handler requires memory.cjs",
|
|
|
122
122
|
|
|
123
123
|
# Op 6: Fix executeUpgrade() fallback — generatedCritical missing router/session/memory
|
|
124
124
|
# When source helpers aren't found, only 3 files were generated but hook-handler.cjs needs 6
|
|
125
|
+
# Also replaces generateIntelligenceStub() → intelligenceContent (set by IN-001a above)
|
|
125
126
|
patch("SG-003j: upgrade fallback generates router/session/memory",
|
|
126
127
|
EXECUTOR,
|
|
127
128
|
""" const generatedCritical = {
|
|
128
129
|
'hook-handler.cjs': generateHookHandler(),
|
|
129
|
-
'intelligence.cjs':
|
|
130
|
+
'intelligence.cjs': generateIntelligenceStub(),
|
|
130
131
|
'auto-memory-hook.mjs': generateAutoMemoryHook(),
|
|
131
132
|
};""",
|
|
132
133
|
""" const generatedCritical = {
|