Initial commit: EternalAI project setup
This commit is contained in:
commit
c91f49e1f7
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: Deploy EternalAI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '18'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Build project
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
run: ./scripts/deploy.sh
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
# EternalAI
|
||||||
|
|
||||||
|
一个永恒的 AI 系统,旨在长期运行和自我进化。
|
||||||
|
|
||||||
|
## 项目结构
|
||||||
|
|
||||||
|
- `src/` - 源代码
|
||||||
|
- `docs/` - 文档
|
||||||
|
- `tests/` - 测试文件
|
||||||
|
- `scripts/` - 脚本
|
||||||
|
- `configs/` - 配置文件
|
||||||
|
|
||||||
|
## 部署
|
||||||
|
|
||||||
|
该项目将通过 Gitea Actions 自动部署。
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"name": "EternalAI",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "永恒的 AI 系统",
|
||||||
|
"main": "src/index.js",
|
||||||
|
"scripts": {
|
||||||
|
"start": "node src/index.js",
|
||||||
|
"test": "jest"
|
||||||
|
},
|
||||||
|
"keywords": ["ai", "eternal", "agent"],
|
||||||
|
"author": "chigulong",
|
||||||
|
"license": "MIT"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
// EternalAI - 永恒的 AI 系统
|
||||||
|
|
||||||
|
console.log('EternalAI 启动中...');
|
||||||
|
|
||||||
|
// 主程序入口点
|
||||||
|
class EternalAI {
|
||||||
|
constructor() {
|
||||||
|
this.name = 'EternalAI';
|
||||||
|
this.version = '1.0.0';
|
||||||
|
console.log(`欢迎使用 ${this.name} v${this.version}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async start() {
|
||||||
|
console.log('EternalAI 正在启动...');
|
||||||
|
// 初始化逻辑
|
||||||
|
await this.initialize();
|
||||||
|
console.log('EternalAI 启动完成');
|
||||||
|
}
|
||||||
|
|
||||||
|
async initialize() {
|
||||||
|
// 初始化系统组件
|
||||||
|
console.log('初始化中...');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 启动应用
|
||||||
|
const ai = new EternalAI();
|
||||||
|
ai.start();
|
||||||
|
|
||||||
|
module.exports = EternalAI;
|
||||||
Loading…
Reference in New Issue