woclaw-codex 0.1.0 → 0.1.1
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/package.json +1 -1
- package/session_start.py +10 -8
package/package.json
CHANGED
package/session_start.py
CHANGED
|
@@ -57,18 +57,20 @@ def main():
|
|
|
57
57
|
|
|
58
58
|
context = read_memory(MEMORY_KEY)
|
|
59
59
|
|
|
60
|
+
output = {
|
|
61
|
+
"continue": True
|
|
62
|
+
}
|
|
60
63
|
if context:
|
|
61
64
|
# Emit JSON output to inject as additional context
|
|
62
|
-
output = {
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
"additionalContext": f"[WoClaw] Shared project context:\n{context}"
|
|
66
|
-
}
|
|
65
|
+
output["hookSpecificOutput"] = {
|
|
66
|
+
"hookEventName": "SessionStart",
|
|
67
|
+
"additionalContext": f"[WoClaw] Shared project context:\n{context}"
|
|
67
68
|
}
|
|
68
|
-
print(
|
|
69
|
+
print(f"[WoClaw] Loaded shared context from {MEMORY_KEY}", file=sys.stderr)
|
|
69
70
|
else:
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
print(f"[WoClaw] No shared context found at {MEMORY_KEY}, starting fresh", file=sys.stderr)
|
|
72
|
+
|
|
73
|
+
print(json.dumps(output))
|
|
72
74
|
|
|
73
75
|
|
|
74
76
|
if __name__ == "__main__":
|