supipowers 0.7.3 → 0.7.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
|
@@ -92,11 +92,9 @@ export function registerContextModeHooks(pi: ExtensionAPI, config: SupipowersCon
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// Phase 1: routing instructions
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
cachedStatus = detectContextMode(pi.getActiveTools());
|
|
99
|
-
if (!cachedStatus.available) return;
|
|
95
|
+
// Phase 1: routing instructions — always inject when enforceRouting is on,
|
|
96
|
+
// regardless of MCP tool detection (tools may load after this hook fires)
|
|
97
|
+
if (!config.contextMode.routingInstructions && !config.contextMode.enforceRouting) return;
|
|
100
98
|
|
|
101
99
|
const skill = loadRoutingSkill();
|
|
102
100
|
if (!skill) return;
|