feat: Complete zCode CLI X with Telegram bot integration

- 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
This commit is contained in:
admin
2026-05-05 09:01:26 +00:00
Unverified
parent 4a7035dd92
commit 875c7f9b91
24688 changed files with 3224957 additions and 221 deletions

View File

@@ -0,0 +1,82 @@
{
"single": {
"topLeft": "┌",
"top": "─",
"topRight": "┐",
"right": "│",
"bottomRight": "┘",
"bottom": "─",
"bottomLeft": "└",
"left": "│"
},
"double": {
"topLeft": "╔",
"top": "═",
"topRight": "╗",
"right": "║",
"bottomRight": "╝",
"bottom": "═",
"bottomLeft": "╚",
"left": "║"
},
"round": {
"topLeft": "╭",
"top": "─",
"topRight": "╮",
"right": "│",
"bottomRight": "╯",
"bottom": "─",
"bottomLeft": "╰",
"left": "│"
},
"bold": {
"topLeft": "┏",
"top": "━",
"topRight": "┓",
"right": "┃",
"bottomRight": "┛",
"bottom": "━",
"bottomLeft": "┗",
"left": "┃"
},
"singleDouble": {
"topLeft": "╓",
"top": "─",
"topRight": "╖",
"right": "║",
"bottomRight": "╜",
"bottom": "─",
"bottomLeft": "╙",
"left": "║"
},
"doubleSingle": {
"topLeft": "╒",
"top": "═",
"topRight": "╕",
"right": "│",
"bottomRight": "╛",
"bottom": "═",
"bottomLeft": "╘",
"left": "│"
},
"classic": {
"topLeft": "+",
"top": "-",
"topRight": "+",
"right": "|",
"bottomRight": "+",
"bottom": "-",
"bottomLeft": "+",
"left": "|"
},
"arrow": {
"topLeft": "↘",
"top": "↓",
"topRight": "↙",
"right": "←",
"bottomRight": "↖",
"bottom": "↑",
"bottomLeft": "↗",
"left": "→"
}
}

View File

@@ -0,0 +1,127 @@
declare namespace cliBoxes {
/**
Style of the box border.
*/
interface BoxStyle {
readonly topLeft: string;
readonly top: string;
readonly topRight: string;
readonly right: string;
readonly bottomRight: string;
readonly bottom: string;
readonly bottomLeft: string;
readonly left: string;
}
/**
All box styles.
*/
interface Boxes {
/**
@example
```
┌────┐
│ │
└────┘
```
*/
readonly single: BoxStyle;
/**
@example
```
╔════╗
║ ║
╚════╝
```
*/
readonly double: BoxStyle;
/**
@example
```
╭────╮
│ │
╰────╯
```
*/
readonly round: BoxStyle;
/**
@example
```
┏━━━━┓
┃ ┃
┗━━━━┛
```
*/
readonly bold: BoxStyle;
/**
@example
```
╓────╖
║ ║
╙────╜
```
*/
readonly singleDouble: BoxStyle;
/**
@example
```
╒════╕
│ │
╘════╛
```
*/
readonly doubleSingle: BoxStyle;
/**
@example
```
+----+
| |
+----+
```
*/
readonly classic: BoxStyle;
/**
@example
```
↘↓↓↓↓↙
→ ←
↗↑↑↑↑↖
```
*/
readonly arrow: BoxStyle;
}
}
/**
Boxes for use in the terminal.
@example
```
import cliBoxes = require('cli-boxes');
console.log(cliBoxes.single);
// {
// topLeft: '┌',
// top: '─',
// topRight: '┐',
// right: '│',
// bottomRight: '┘',
// bottom: '─',
// bottomLeft: '└',
// left: '│'
// }
```
*/
declare const cliBoxes: cliBoxes.Boxes & {
// TODO: Remove this for the next major release
default: typeof cliBoxes;
};
export = cliBoxes;

View File

@@ -0,0 +1,6 @@
'use strict';
const cliBoxes = require('./boxes.json');
module.exports = cliBoxes;
// TODO: Remove this for the next major release
module.exports.default = cliBoxes;

View File

@@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,42 @@
{
"name": "cli-boxes",
"version": "3.0.0",
"description": "Boxes for use in the terminal",
"license": "MIT",
"repository": "sindresorhus/cli-boxes",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=10"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts",
"boxes.json"
],
"keywords": [
"cli",
"box",
"boxes",
"terminal",
"term",
"console",
"ascii",
"unicode",
"border",
"text",
"json"
],
"devDependencies": {
"ava": "^2.4.0",
"tsd": "^0.14.0",
"xo": "^0.37.1"
}
}

View File

@@ -0,0 +1,115 @@
# cli-boxes
> Boxes for use in the terminal
The list of boxes is just a [JSON file](boxes.json) and can be used anywhere.
## Install
```
$ npm install cli-boxes
```
## Usage
```js
const cliBoxes = require('cli-boxes');
console.log(cliBoxes.single);
/*
{
topLeft: '┌',
top: '─',
topRight: '┐',
right: '│',
bottomRight: '┘',
bottom: '─',
bottomLeft: '└',
left: '│'
}
*/
```
## API
### cliBoxes
#### `single`
```
┌────┐
│ │
└────┘
```
#### `double`
```
╔════╗
║ ║
╚════╝
```
#### `round`
```
╭────╮
│ │
╰────╯
```
#### `bold`
```
┏━━━━┓
┃ ┃
┗━━━━┛
```
#### `singleDouble`
```
╓────╖
║ ║
╙────╜
```
#### `doubleSingle`
```
╒════╕
│ │
╘════╛
```
#### `classic`
```
+----+
| |
+----+
```
#### `arrow`
```
↘↓↓↓↓↙
→ ←
↗↑↑↑↑↖
```
## Related
- [boxen](https://github.com/sindresorhus/boxen) - Create boxes in the terminal
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-cli-boxes?utm_source=npm-cli-boxes&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>