feat(ui): update authentic SVG courier icons, Google Maps routing graphics, 9 MCP tools visual assets, and agent configs directory

This commit is contained in:
Amirul Islam Redwan71
2026-11-11 06:10:30 +06:00
parent b4396770c0
commit f496a5316e
39 changed files with 1261 additions and 1695 deletions
+6 -15
View File
@@ -12,7 +12,6 @@ declare global {
namespace Express {
interface Request {
auraAuth?: AuraAuthContext;
rawBody?: string | Buffer;
}
}
}
@@ -24,16 +23,10 @@ export interface AuditEntry {
outcome: "ok" | "denied" | "error";
}
export declare const auditLogBuffer: AuditEntry[];
/**
* F10 Fix: Accept BYOK credentials STRICTLY from request headers.
* Query parameters are completely ignored to avoid leaking secrets in proxy/access logs.
*/
export declare function hasByokCredentials(req: Request): boolean;
export declare function extractBearerToken(req: Request): string | undefined;
export declare function registerApiKey(token: string, tenantId: string, scopes?: AuthScope[], isAdmin?: boolean): void;
/**
* F01 Fix: Cryptographic Token Resolution without prefix bypass.
* Prefix matching (aura_rw_*, aura_tenant_*) is strictly abolished.
* Resolve bearer token into tenant context and scopes (read / write).
*/
export declare function resolveAuthContext(req: Request): AuraAuthContext;
/**
@@ -41,13 +34,12 @@ export declare function resolveAuthContext(req: Request): AuraAuthContext;
*/
export declare function optionalAuthMiddleware(req: Request, _res: Response, next: NextFunction): void;
/**
* Strict /mcp Authentication & Per-Key Rate Limit Guard
* Allows unauthenticated discovery handshakes (initialize, notifications/initialized, tools/list, ping, list_couriers)
* so AI agent connectors (Claude Desktop, Cursor, Glama, LibreChat, Smithery) can connect seamlessly.
* Strict /mcp Authentication & Per-Key Rate Limit Guard (T1)
* Missing or invalid Bearer token -> HTTP 401 + UNAUTHORIZED envelope
*/
export declare function requireMcpAuth(req: Request, res: Response, next: NextFunction): void;
/**
* Verify scope permission for a specific tool and record a privacy-safe audit log entry
* Verify scope permission for a specific tool and record a privacy-safe audit log entry (T1)
*/
export declare function isActionPermitted(req: Request, toolName: string, args?: Record<string, any>): {
permitted: boolean;
@@ -58,8 +50,7 @@ export declare function isActionPermitted(req: Request, toolName: string, args?:
*/
export declare function recordAuditLog(tenant: string, tool: string, args: Record<string, any> | undefined, outcome: "ok" | "denied" | "error"): void;
/**
* F09 Fix: Native Carrier Webhook HMAC-SHA256 & Token Verification.
* Pathao uses HMAC-SHA256 with PATHAO_CLIENT_SECRET over raw request body.
* Steadfast uses secret key header comparison.
* Verify inbound courier webhook authentication / signature (T1)
* Rejects unsigned/invalid webhook calls with HTTP 401/403.
*/
export declare function verifyWebhookSignature(req: Request, provider: string): boolean;