From c91f49e1f750cfb334ec26ffd11a77d577d1f351 Mon Sep 17 00:00:00 2001 From: chigulong Date: Sat, 20 Jun 2026 17:10:06 +0800 Subject: [PATCH] Initial commit: EternalAI project setup --- .gitea/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ README.md | 15 +++++++++++++++ package.json | 13 +++++++++++++ scripts/deploy.sh | 0 src/index.js | 30 ++++++++++++++++++++++++++++++ 5 files changed, 84 insertions(+) create mode 100644 .gitea/workflows/deploy.yml create mode 100644 README.md create mode 100644 package.json create mode 100755 scripts/deploy.sh create mode 100644 src/index.js diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..c730099 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..1da49b4 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# EternalAI + +一个永恒的 AI 系统,旨在长期运行和自我进化。 + +## 项目结构 + +- `src/` - 源代码 +- `docs/` - 文档 +- `tests/` - 测试文件 +- `scripts/` - 脚本 +- `configs/` - 配置文件 + +## 部署 + +该项目将通过 Gitea Actions 自动部署。 diff --git a/package.json b/package.json new file mode 100644 index 0000000..1f8c9f7 --- /dev/null +++ b/package.json @@ -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" +} diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100755 index 0000000..e69de29 diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..d07f1e0 --- /dev/null +++ b/src/index.js @@ -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;