-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-mixed.yaml
More file actions
68 lines (60 loc) · 1.89 KB
/
example-mixed.yaml
File metadata and controls
68 lines (60 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Codebase Intelligence — Multi-Source Mixed Configuration
# Combines GitLab + GitHub + Local in one config.
sources:
# ─── GitLab (self-hosted) ───
- provider: gitlab
name: "Example GitLab"
url: https://gitlab.yourcompany.com
tokenEnv: GITLAB_TOKEN
branches: [main, develop]
includeWiki: true
projects:
- group: backend-team
- id: 42
name: user-service
# ─── GitHub ───
- provider: github
name: "Open Source"
tokenEnv: GITHUB_TOKEN
branches: [main]
projects:
- org: your-org
# ─── Local Development ───
- provider: local
name: "Local Dev"
projects:
- path: /Users/dev/projects/mobile-app
name: mobile-app
- path: /Users/dev/projects/data-pipeline
name: data-pipeline
storage:
dataDir: ~/.codebase-intelligence
vector:
provider: sqlite # sqlite | chromadb | qdrant
# For ChromaDB:
# provider: chromadb
# url: http://localhost:8000
meta:
provider: sqlite
embedding:
provider: ollama
model: nomic-embed-text
url: http://localhost:11434
dimensions: 768
batchSize: 32
sync:
strategy: incremental
cron: "0 */6 * * *"
concurrency: 3
# HTTP server for webhook receiver + status API
# Start with: codebase-intelligence serve --port 9876
server:
port: 9876
# host: 0.0.0.0
# Webhook(需先运行: codebase-intelligence serve -c 本文件)
# GitLab: project.path_with_namespace 须与上面 projects 里 name / group 发现名一致(全路径)
# GitLab UI: Settings → Webhooks → http://your-host:9876/webhook/gitlab → Push events
# GitHub: Settings → Webhooks → http://your-host:9876/webhook/github → Just the push event
# 状态: GET http://localhost:9876/api/status | 项目列表: GET /api/projects
#
# 其它顶层字段说明见 config/default.yaml(embedding 变体、vector url、sync.workspace 等)