Skip to content

Commit a5df50e

Browse files
author
zengfr
committed
Initial commit
0 parents  commit a5df50e

80 files changed

Lines changed: 12365 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v5
15+
with:
16+
go-version: "1.22"
17+
- name: Download dependencies
18+
run: go mod download
19+
- name: Build
20+
run: go build ./...
21+
- name: Vet
22+
run: go vet ./...
23+
- name: Test
24+
run: go test ./... -count=1
25+
- name: golangci-lint
26+
uses: golangci/golangci-lint-action@v6
27+
with:
28+
version: latest

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Binaries
2+
bin/
3+
*.exe
4+
5+
# Go
6+
vendor/
7+
8+
# Project artifacts
9+
.aicodingagentteam/
10+
output/
11+
*.zip
12+
13+
# IDE
14+
.idea/
15+
.vscode/
16+
17+
# OS
18+
.DS_Store
19+
Thumbs.db
20+
node_modules/
21+
dist/
22+
req.md
23+
refer.md
24+
docs/
25+
agents.md

.golangci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
version: "2"
2+
3+
run:
4+
timeout: 5m
5+
6+
linters:
7+
enable:
8+
- errcheck
9+
- govet
10+
- ineffassign
11+
- staticcheck
12+
- unused
13+
- misspell
14+
- gocritic
15+
16+
formatters:
17+
enable:
18+
- gofmt
19+
- goimports
20+
21+
linters-settings:
22+
goimports:
23+
local-prefixes:
24+
- github.com/yourorg/aicodingagentteam
25+
gocritic:
26+
enabled-tags:
27+
- diagnostic
28+
- style
29+
30+
issues:
31+
max-issues-per-linter: 0
32+
max-same-issues: 0
33+
exclusions:
34+
- path: _test\.go
35+
linters: [gocritic]

CONTRIBUTING.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# 贡献指南 — AiCodingAgentTeam
2+
3+
> 本文件补充 `aicoding_docs/docs/standards/git/git-workflow.md` 的项目专属约定。
4+
5+
## 开发流程
6+
7+
1. **Spec-first**:新功能先写 `docs/spec/`,遵循 `aicoding_docs/docs/templates/SPEC.md`
8+
2. **Plan**:再写 `docs/plan/`,遵循 `aicoding_docs/docs/templates/PLAN.md`
9+
3. **Implement**:按计划逐步实现,测试先行
10+
4. **Verify**`make all`(lint + vet + test + build)全绿
11+
5. **ADR**:非平凡决策记 `docs/adr/`
12+
13+
## 提交规范
14+
15+
遵循 Conventional Commits(见 git-workflow.md):
16+
17+
```
18+
feat(coordinator): add DAG persistence to planner
19+
fix(host): handle codex stderr noise filtering
20+
docs(adr): record ADR-0007 host CLI spike
21+
```
22+
23+
## 分支模型
24+
25+
- `main`:稳定主干,PR 合入
26+
- `feat/*`:功能分支
27+
- `fix/*`:修复分支
28+
29+
## 本地开发
30+
31+
```bash
32+
make all # lint + vet + test + build
33+
make test # 仅测试
34+
make run # 启动服务
35+
make clean # 清理产物
36+
```
37+
38+
## 代码规范
39+
40+
- Go:遵循 `aicoding_docs/docs/standards/languages/go.md`
41+
- TypeScript(TUI):遵循 `aicoding_docs/docs/standards/languages/typescript.md`
42+
- 通用:遵循 `aicoding_docs/docs/standards/general.md`
43+
- 质量红线:`docs/CONSTRAINTS.md`,不得静默降级

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM golang:1.25-alpine AS builder
2+
WORKDIR /app
3+
COPY go.mod go.sum ./
4+
RUN go mod download
5+
COPY . .
6+
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /aicodingagentteam ./cmd/aicodingagentteam
7+
8+
FROM alpine:3.20
9+
RUN apk add --no-cache ca-certificates git
10+
COPY --from=builder /aicodingagentteam /usr/local/bin/aicodingagentteam
11+
WORKDIR /workspace
12+
ENTRYPOINT ["aicodingagentteam"]

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.PHONY: build test vet lint run clean
2+
3+
APP := bin/aicodingagentteam
4+
PKG := ./cmd/aicodingagentteam
5+
6+
build:
7+
go build -o $(APP) $(PKG)
8+
9+
test:
10+
go test ./... -v -count=1
11+
12+
vet:
13+
go vet ./...
14+
15+
lint:
16+
golangci-lint run ./...
17+
18+
run: build
19+
$(APP) serve
20+
21+
quick: build
22+
$(APP) quick "$(MSG)"
23+
24+
clean:
25+
rm -rf bin/ .aicodingagentteam/ output/
26+
27+
all: lint vet test build

0 commit comments

Comments
 (0)