- Add full Telegram bot functionality with Z.AI API integration
- Implement 4 tools: Bash, FileEdit, WebSearch, Git
- Add 3 agents: Code Reviewer, Architect, DevOps Engineer
- Add 6 skills for common coding tasks
- Add systemd service file for 24/7 operation
- Add nginx configuration for HTTPS webhook
- Add comprehensive documentation
- Implement WebSocket server for real-time updates
- Add logging system with Winston
- Add environment validation
🤖 zCode CLI X - Agentic coder with Z.AI + Telegram integration
23 lines
1.0 KiB
TypeScript
23 lines
1.0 KiB
TypeScript
/**
|
|
* Utilities for handling OAuth resource URIs.
|
|
*/
|
|
/**
|
|
* Converts a server URL to a resource URL by removing the fragment.
|
|
* RFC 8707 section 2 states that resource URIs "MUST NOT include a fragment component".
|
|
* Keeps everything else unchanged (scheme, domain, port, path, query).
|
|
*/
|
|
export declare function resourceUrlFromServerUrl(url: URL | string): URL;
|
|
/**
|
|
* Checks if a requested resource URL matches a configured resource URL.
|
|
* A requested resource matches if it has the same scheme, domain, port,
|
|
* and its path starts with the configured resource's path.
|
|
*
|
|
* @param requestedResource The resource URL being requested
|
|
* @param configuredResource The resource URL that has been configured
|
|
* @returns true if the requested resource matches the configured resource, false otherwise
|
|
*/
|
|
export declare function checkResourceAllowed({ requestedResource, configuredResource }: {
|
|
requestedResource: URL | string;
|
|
configuredResource: URL | string;
|
|
}): boolean;
|
|
//# sourceMappingURL=auth-utils.d.ts.map
|