flower-trellis 0.4.3 → 0.4.4
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
CHANGED
|
@@ -104,7 +104,7 @@ def _format_context(data: dict) -> str:
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
def _emit_context(context: str) -> None:
|
|
107
|
-
"""
|
|
107
|
+
"""输出 Codex / Claude Code 都接受的 SessionStart hook JSON。"""
|
|
108
108
|
result = {
|
|
109
109
|
"suppressOutput": True,
|
|
110
110
|
"systemMessage": "flower-trellis update context injected",
|
|
@@ -112,7 +112,6 @@ def _emit_context(context: str) -> None:
|
|
|
112
112
|
"hookEventName": "SessionStart",
|
|
113
113
|
"additionalContext": context,
|
|
114
114
|
},
|
|
115
|
-
"additional_context": context,
|
|
116
115
|
}
|
|
117
116
|
print(json.dumps(result, ensure_ascii=False), flush=True)
|
|
118
117
|
|