repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | import { readJSONSync } from 'fs-extra'; |
| #2 | import { readdirSync } from 'node:fs'; |
| #3 | import { dirname, resolve } from 'node:path'; |
| #4 | import { fileURLToPath } from 'node:url'; |
| #5 | |
| #6 | // 文件路径相关配置 |
| #7 | export const __filename = fileURLToPath(import.meta.url); |
| #8 | export const __dirname = dirname(__filename); |
| #9 | export const root = resolve(__dirname, '../..'); |
| #10 | |
| #11 | // 核心目录路径 |
| #12 | export const agentsDir = resolve(root, './src'); // Agent 配置文件目录 |
| #13 | export const schemasDir = resolve(root, './schema'); // Schema 文件目录 |
| #14 | export const localesDir = resolve(root, './locales'); // 多语言文件目录 |
| #15 | export const publicDir = resolve(root, './public'); // 构建输出目录 |
| #16 | |
| #17 | // 目录内容读取 |
| #18 | export const agents = readdirSync(agentsDir, { withFileTypes: true }); // Agent 文件列表 |
| #19 | export const agentLocales = readdirSync(localesDir, { withFileTypes: true }); // 多语言文件列表 |
| #20 | |
| #21 | // 模板文件路径 |
| #22 | export const templatePath = resolve(root, 'agent-template.json'); // Agent 模板文件 |
| #23 | export const templateFullPath = resolve(root, 'agent-template-full.json'); // 完整 Agent 模板文件 |
| #24 | |
| #25 | // 索引文件路径 |
| #26 | export const indexPath = resolve(publicDir, 'index.json'); // 英文索引文件 |
| #27 | export const indexCnPath = resolve(publicDir, 'index.zh-CN.json'); // 中文索引文件 |
| #28 | |
| #29 | // README 文件路径 |
| #30 | export const readmePath = resolve(root, 'README.md'); // 英文 README |
| #31 | export const readmeCnPath = resolve(root, 'README.zh-CN.md'); // 中文 README |
| #32 | |
| #33 | // 元数据文件 |
| #34 | export const metaPath = resolve(root, 'meta.json'); |
| #35 | export const meta = readJSONSync(metaPath); // 项目元数据 |
| #36 | |
| #37 | // 外部链接配置 |
| #38 | export const host = 'https://chat-agents.clawdos.com'; // 项目主站地址 |
| #39 | export const githubHomepage = 'https://github.com/clawdos/clawd-ai-agents'; // GitHub 仓库地址 |
| #40 | |
| #41 | // README 分割标识符 |
| #42 | export const readmeSplit = '<!-- AWESOME PROMPTS -->'; |
| #43 | |
| #44 | // Agent 分类列表 |
| #45 | export const category = [ |
| #46 | 'academic', // 学术研究 |
| #47 | 'career', // 职业发展 |
| #48 | 'copywriting', // 文案写作 |
| #49 | 'design', // 设计相关 |
| #50 | 'education', // 教育学习 |
| #51 | 'emotions', // 情感沟通 |
| #52 | 'entertainment', // 娱乐休闲 |
| #53 | 'games', // 游戏相关 |
| #54 | 'general', // 通用助手 |
| #55 | 'life', // 生活助理 |
| #56 | 'marketing', // 市场营销 |
| #57 | 'office', // 办公效率 |
| #58 | 'programming', // 编程开发 |
| #59 | 'translation', // 翻译相关 |
| #60 | ]; |
| #61 | |
| #62 | // 导入 i18n 配置 |
| #63 | export { default as config } from '../../.i18nrc.js'; |
| #64 | |
| #65 | |
| #66 |