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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supipowers",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "OMP-native workflow extension inspired by supipowers.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -92,11 +92,9 @@ export function registerContextModeHooks(pi: ExtensionAPI, config: SupipowersCon
92
92
  }
93
93
  }
94
94
 
95
- // Phase 1: routing instructions
96
- if (!config.contextMode.routingInstructions) return;
97
- // Always re-detect: MCP tools may load after extension init
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;