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 @@
export declare type And<BOOL_A, BOOL_B> = BOOL_A extends true ? BOOL_B extends true ? true : false : false;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,5 @@
export declare type DoesExtend<TYPE_A, TYPE_B> = [TYPE_A] extends [TYPE_B] ? true : false;
declare type ArrayKeys = keyof [];
export declare type IsObject<TYPE> = TYPE extends object ? ArrayKeys extends Extract<keyof TYPE, ArrayKeys> ? false : true : false;
export declare type IsArray<TYPE> = TYPE extends object ? ArrayKeys extends Extract<keyof TYPE, ArrayKeys> ? true : false : false;
export {};

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1 @@
export declare type If<CONDITION extends boolean, THEN, ELSE = never> = CONDITION extends true ? THEN : ELSE;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,12 @@
export type { And } from "./and";
export type { DoesExtend, IsObject, IsArray } from "./extends";
export type { If } from "./if";
export type { IntersectUnion } from "./intersectUnion";
export type { IsNever } from "./isNever";
export type { DeepMergeUnsafe } from "./merge";
export type { Not } from "./not";
export type { Or } from "./or";
export type { Prettify } from "./prettify";
export type { Tail } from "./tail";
export type { UnionLast } from "./unionLast";
export type { UnionPop } from "./unionPop";

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1 @@
export declare type IntersectUnion<UNION> = (UNION extends unknown ? (arg: UNION) => void : never) extends (arg: infer INTERSECTION) => void ? INTERSECTION : never;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1 @@
export declare type IsNever<TYPE> = [TYPE] extends [never] ? true : false;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,7 @@
import type { IsArray, IsObject } from "./extends";
export declare type DeepMergeUnsafe<TYPE_A, TYPE_B> = IsObject<TYPE_A> extends true ? IsObject<TYPE_B> extends true ? {
[KEY in keyof (TYPE_A & TYPE_B)]: KEY extends keyof TYPE_B ? KEY extends keyof TYPE_A ? DeepMergeUnsafe<TYPE_A[KEY], TYPE_B[KEY]> : TYPE_B[KEY] : KEY extends keyof TYPE_A ? TYPE_A[KEY] : never;
} : TYPE_B : IsArray<TYPE_A> extends true ? IsArray<TYPE_B> extends true ? TYPE_B extends unknown[] ? [
...(TYPE_A extends unknown[] ? TYPE_A : never),
TYPE_B
] : never : TYPE_B : TYPE_B;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1 @@
export declare type Not<BOOL extends boolean> = BOOL extends false ? true : BOOL extends true ? false : never;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1 @@
export declare type Or<BOOL_A extends boolean, BOOL_B extends boolean> = BOOL_A extends true ? true : BOOL_B extends true ? true : false;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,4 @@
import type { IsObject } from "./extends";
export declare type Prettify<TYPE> = IsObject<TYPE> extends true ? {
[KEY in keyof TYPE]: KEY extends keyof TYPE ? TYPE[KEY] : never;
} : TYPE;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1 @@
export declare type Tail<ARRAY extends unknown[]> = ARRAY extends readonly [] ? ARRAY : ARRAY extends readonly [unknown?, ...infer TAIL] ? TAIL : ARRAY;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,2 @@
import type { IntersectUnion } from "./intersectUnion";
export declare type UnionLast<UNION> = IntersectUnion<UNION extends unknown ? (x: UNION) => void : never> extends (x: infer LAST) => void ? LAST : never;

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,2 @@
import type { UnionLast } from "./unionLast";
export declare type UnionPop<UNION> = Exclude<UNION, UnionLast<UNION>>;

View File

@@ -0,0 +1 @@
export {};