- 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
41 lines
1.0 KiB
JavaScript
41 lines
1.0 KiB
JavaScript
'use strict';
|
|
|
|
const lockfile = require('./lib/lockfile');
|
|
const { toPromise, toSync, toSyncOptions } = require('./lib/adapter');
|
|
|
|
async function lock(file, options) {
|
|
const release = await toPromise(lockfile.lock)(file, options);
|
|
|
|
return toPromise(release);
|
|
}
|
|
|
|
function lockSync(file, options) {
|
|
const release = toSync(lockfile.lock)(file, toSyncOptions(options));
|
|
|
|
return toSync(release);
|
|
}
|
|
|
|
function unlock(file, options) {
|
|
return toPromise(lockfile.unlock)(file, options);
|
|
}
|
|
|
|
function unlockSync(file, options) {
|
|
return toSync(lockfile.unlock)(file, toSyncOptions(options));
|
|
}
|
|
|
|
function check(file, options) {
|
|
return toPromise(lockfile.check)(file, options);
|
|
}
|
|
|
|
function checkSync(file, options) {
|
|
return toSync(lockfile.check)(file, toSyncOptions(options));
|
|
}
|
|
|
|
module.exports = lock;
|
|
module.exports.lock = lock;
|
|
module.exports.unlock = unlock;
|
|
module.exports.lockSync = lockSync;
|
|
module.exports.unlockSync = unlockSync;
|
|
module.exports.check = check;
|
|
module.exports.checkSync = checkSync;
|