Skip to content

Commit b8b4222

Browse files
committed
Merge branch 'main' of github.com:zgsm-ai/codebase-embedder
2 parents 49c46e3 + 133da65 commit b8b4222

File tree

18 files changed

+1013
-51
lines changed

18 files changed

+1013
-51
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
tags:
66
- 'v*.*.*'
7+
branches:
8+
- main
9+
- master
10+
- feature/tree-sitter-markdown
711

812
jobs:
913
build-and-push:
@@ -15,6 +19,8 @@ jobs:
1519
uses: actions/checkout@v3
1620
with:
1721
fetch-depth: 0
22+
fetch-tags: true
23+
force: true
1824

1925
- name: Setup Node.js
2026
uses: actions/setup-node@v3
@@ -53,9 +59,12 @@ jobs:
5359
- name: Release
5460
run: |
5561
yarn global add semantic-release@17.4.4
56-
semantic-release --branches main,master
62+
# 清理可能冲突的本地tags
63+
git fetch --tags --force
64+
semantic-release --branches main,master,feature/tree-sitter-markdown --no-ci
5765
env:
5866
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5968

6069
- name: Set up QEMU
6170
uses: docker/setup-qemu-action@v2

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ bin/*
3131
docs/task.md
3232
cmd.sh
3333
testfiles
34-
.history
34+
.history
35+
.coignore
36+
.costrict

deploy/embber-debug.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ data:
3434
OverlapTokens: 100
3535
MaxTokensPerChunk: 1000
3636
EnableMarkdownParsing: false
37+
EnableOpenAPIParsing: false
3738
GraphTask:
3839
MaxConcurrency: 100
3940
Timeout: 18000s

deploy/embber.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ data:
3434
OverlapTokens: 100
3535
MaxTokensPerChunk: 1000
3636
EnableMarkdownParsing: false
37+
EnableOpenAPIParsing: false
3738
GraphTask:
3839
MaxConcurrency: 100
3940
Timeout: 18000s

etc/conf.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ IndexTask:
2727
Timeout: 300s
2828
OverlapTokens: 100
2929
MaxTokensPerChunk: 1000
30-
EnableMarkdownParsing: true
30+
EnableMarkdownParsing: false
31+
EnableOpenAPIParsing: false
3132
GraphTask:
3233
MaxConcurrency: 10
3334
Timeout: 300s

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ require (
2020
github.com/stretchr/testify v1.10.0
2121
github.com/tiktoken-go/tokenizer v0.6.2
2222
github.com/tree-sitter-grammars/tree-sitter-kotlin v1.1.0
23+
github.com/tree-sitter-grammars/tree-sitter-markdown v0.5.0
2324
github.com/tree-sitter/go-tree-sitter v0.25.0
2425
github.com/tree-sitter/tree-sitter-c v0.24.1
2526
github.com/tree-sitter/tree-sitter-c-sharp v0.23.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ github.com/tiktoken-go/tokenizer v0.6.2 h1:t0GN2DvcUZSFWT/62YOgoqb10y7gSXBGs0A+4
320320
github.com/tiktoken-go/tokenizer v0.6.2/go.mod h1:6UCYI/DtOallbmL7sSy30p6YQv60qNyU/4aVigPOx6w=
321321
github.com/tree-sitter-grammars/tree-sitter-kotlin v1.1.0 h1:SWIUDASa+WPhDDem1U5IJpYwQEezkqXrUI61OcnORzM=
322322
github.com/tree-sitter-grammars/tree-sitter-kotlin v1.1.0/go.mod h1:eH+flFf3QOa9c9BY9g3Bz02F7zTq30kGIG3cgB0lSlI=
323+
github.com/tree-sitter-grammars/tree-sitter-markdown v0.5.0 h1:93UWmJmfHbEiYmWF75ou2GE0fNlm0RwXRga3NGOCTEM=
324+
github.com/tree-sitter-grammars/tree-sitter-markdown v0.5.0/go.mod h1:Cw6XOdJRZZt7RKnDszrMJwsfTL+2mQRiz+nlE694HNY=
323325
github.com/tree-sitter/go-tree-sitter v0.25.0 h1:sx6kcg8raRFCvc9BnXglke6axya12krCJF5xJ2sftRU=
324326
github.com/tree-sitter/go-tree-sitter v0.25.0/go.mod h1:r77ig7BikoZhHrrsjAnv8RqGti5rtSyvDHPzgTPsUuU=
325327
github.com/tree-sitter/tree-sitter-c v0.24.1 h1:GV9DjvIV6uYe3W/JBKMFwE4hJcRxzRDq63llxNFHOkY=

internal/config/index.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type EmbeddingTaskConf struct {
2222
OverlapTokens int
2323
MaxTokensPerChunk int
2424
EnableMarkdownParsing bool `json:",default=false"` // 是否启用markdown文件解析
25+
EnableOpenAPIParsing bool `json:",default=false"` // 是否启用OpenAPI文档解析
2526
}
2627

2728
type GraphTaskConf struct {

internal/dao/query/codebase.gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)