Skip to content

Dev - #1

Merged
AlkaidSTART merged 4 commits into
mainfrom
dev
Aug 5, 2026
Merged

Dev#1
AlkaidSTART merged 4 commits into
mainfrom
dev

Conversation

@AlkaidSTART

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 5, 2026 08:27
@AlkaidSTART
AlkaidSTART merged commit 3e6b3d3 into main Aug 5, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the developer-facing setup for the project by expanding the README, making the LLM model configurable via environment variables, and changing how/where Vitest discovers tests (shifting toward a root test/ directory).

Changes:

  • Make the OpenAI-compatible model name configurable via OPENAI_MODEL.
  • Update Vitest test discovery globs to target root test/ patterns.
  • Expand README and .env.example, and adjust .gitignore accordingly.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
vitest.config.ts Changes Vitest include globs to only look under root test/.
README.md Adds comprehensive project documentation, including testing and CI command notes.
packages/agent-core/test/tools.spec.ts Removes agent-core tool tests.
packages/agent-core/test/runLoop.spec.ts Removes run loop tests.
packages/agent-core/test/agent.spec.ts Removes agent wrapper tests.
packages/agent-core/src/core/llm.ts Reads model name from OPENAI_MODEL instead of hardcoding it.
.gitignore Stops ignoring packages/agent-core/test/* and starts ignoring /test/.
.env.example Updates env template and introduces OPENAI_MODEL and a default base URL example.
Suppressed comments (1)

README.md:113

  • This says /test/ is gitignored and used only for local verification, but CI currently runs vitest run. With /test/ ignored, CI cannot execute these tests. Clarify the CI behavior here (or adjust the repo so CI can run committed tests).
测试文件统一放在项目根目录的 `test/` 下,不放在包内。`/test/` 已加入 `.gitignore`,这些测试作为本地验证文件使用。

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vitest.config.ts
globals: true,
environment: 'node',
include: ['packages/**/test/**/*.spec.ts', 'packages/**/test/**/*.test.ts'],
include: ['test/**/*.spec.ts', 'test/**/*.test.ts'],
baseURL: process.env.OPENAI_API_BASE_URL,
});

const llmModel = process.env.OPENAI_MODEL ?? 'deepseek-v4-flash';
Comment thread README.md

## 常用命令

以下命令与当前 CI 保持一致:
Comment thread .env.example
Comment on lines 7 to +10
# Optional: custom OpenAI-compatible base URL
# OPENAI_API_BASE_URL=https://api.example.com
# 留空时使用 OpenAI 默认地址;DeepSeek 可填写 https://api.deepseek.com
OPENAI_API_BASE_URL=https://api.deepseek.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants