feat: Add intelligent auto-router and enhanced integrations
- Add intelligent-router.sh hook for automatic agent routing - Add AUTO-TRIGGER-SUMMARY.md documentation - Add FINAL-INTEGRATION-SUMMARY.md documentation - Complete Prometheus integration (6 commands + 4 tools) - Complete Dexto integration (12 commands + 5 tools) - Enhanced Ralph with access to all agents - Fix /clawd command (removed disable-model-invocation) - Update hooks.json to v5 with intelligent routing - 291 total skills now available - All 21 commands with automatic routing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
15
dexto/packages/webui/lib/api-url.ts
Normal file
15
dexto/packages/webui/lib/api-url.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Get the API URL for making requests.
|
||||
*
|
||||
* In production: WebUI is served from the same Hono server as the API (same-origin).
|
||||
* In development: Vite proxies /api/* requests to the API server (still same-origin from browser perspective).
|
||||
*/
|
||||
export function getApiUrl(): string {
|
||||
if (typeof window === 'undefined') {
|
||||
// SSR fallback (not used in Vite, but kept for safety)
|
||||
return 'http://localhost:3001';
|
||||
}
|
||||
|
||||
const { protocol, hostname, port } = window.location;
|
||||
return `${protocol}//${hostname}${port ? `:${port}` : ''}`;
|
||||
}
|
||||
Reference in New Issue
Block a user