Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
OpenMOSS
ScienceEvolve-server
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
ScienceEvolve-server
/
example
/
02-software-development
/
requirement.txt
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
13 lines (10 loc) · 1.8 KB
main
Breadcrumbs
ScienceEvolve-server
/
example
/
02-software-development
/
requirement.txt
Copy path
Top
File metadata and controls
Code
Blame
13 lines (10 loc) · 1.8 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
请在当前 workspace 中实现一个可运行的 Node.js 命令行待办事项工具,不引入第三方运行时依赖。
功能要求:
1. node cli.mjs add "事项内容":添加事项并输出稳定、唯一的 ID;拒绝空白内容。
2. node cli.mjs list:按创建顺序列出事项,展示 ID、内容和完成状态。
3. node cli.mjs done <id>:将已有事项标记完成;重复完成操作保持幂等,未知 ID 明确报错。
4. node cli.mjs remove <id>:删除已有事项;未知 ID 明确报错。
5. 数据跨 CLI 进程持久保存。通过 TODO_DATA_FILE 环境变量指定数据文件,未设置时使用 workspace 中的 todos.json;文件损坏时给出清晰错误,不覆盖原数据。无效命令和无效参数以非零退出码结束。
6. 编写 README 说明运行方式;使用 Node.js 内置测试框架测试上述功能,测试使用独立临时目录,不触碰用户真实数据。
若当前目录已有实现,沿用已有结构和接口约定,补齐上述功能,不覆盖无关文件。Coding 负责设计和实现;Testing 独立补充验收与边界用例、执行测试并分析失败。未全部通过就继续修复;只有当前版本全部验收与回归用例真实通过后,由 Testing 判断并结束。
输入准备(main Git-off):workspace/W 指运行时提供的共享 cwd。首次运行前,根据本需求填写的真实输入绝对路径与文件清单,在此目录准备 Task 并记录来源/摘要;来源只读,外部大型数据可只读引用。恢复或后续角色先检查既有输入、基线与方法状态,禁止重新导入覆盖;Task Git 在自己的子目录维护。不要用旧 --workspace 路径或仓库模板目录作为可写 Task。尚未提供必需代码/数据/配置时报告具体缺项,不能伪造输入。
You can’t perform that action at this time.