conductor-harness 1.0.4 → 1.0.6
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
|
@@ -12,7 +12,7 @@ errors = []
|
|
|
12
12
|
if os.path.exists(os.path.join(cwd, "tsconfig.json")):
|
|
13
13
|
try:
|
|
14
14
|
result = subprocess.run(
|
|
15
|
-
["npx", "
|
|
15
|
+
["npx", "tsc", "--noEmit"],
|
|
16
16
|
cwd=cwd, capture_output=True, text=True, timeout=30
|
|
17
17
|
)
|
|
18
18
|
if result.returncode != 0:
|
package/runtime/install.sh
CHANGED
|
@@ -98,11 +98,14 @@ harness_deny = [
|
|
|
98
98
|
]
|
|
99
99
|
|
|
100
100
|
# Merge hooks — each event is a list of {matcher, hooks} objects
|
|
101
|
+
# Also strip any old-format bare entries (missing the hooks array)
|
|
101
102
|
if "hooks" not in existing:
|
|
102
103
|
existing["hooks"] = {}
|
|
103
104
|
for event, entry in harness_hooks.items():
|
|
104
105
|
if event not in existing["hooks"]:
|
|
105
106
|
existing["hooks"][event] = []
|
|
107
|
+
# Remove any old-format entries (bare {type, command} objects without a hooks array)
|
|
108
|
+
existing["hooks"][event] = [h for h in existing["hooks"][event] if "hooks" in h]
|
|
106
109
|
existing_cmds = [
|
|
107
110
|
cmd.get("command")
|
|
108
111
|
for h in existing["hooks"][event]
|