Skip to content

Commit 4fb292c

Browse files
authored
Merge branch 'main' into feat/qwen3
2 parents f850467 + 04caed6 commit 4fb292c

File tree

272 files changed

+2916
-1011
lines changed

Some content is hidden

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

272 files changed

+2916
-1011
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ten_framework",
3-
"image": "ghcr.io/ten-framework/ten_agent_build:0.6.1",
3+
"image": "docker.theten.ai/ten-framework/ten_agent_build:0.6.1",
44
"customizations": {
55
"vscode": {
66
"extensions": [

.github/workflows/ai_agents.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
pull_request:
55
branches: ["main"]
66
paths-ignore:
7+
- "core/**"
8+
- "portal/**"
9+
- "tools/**"
10+
- "packages/**"
11+
- "build/**"
12+
- "third_party/**"
713
- ".devcontainer/**"
814
- ".github/**"
915
- "!.github/workflows/agents.yaml"
@@ -21,6 +27,10 @@ permissions:
2127
contents: read
2228
security-events: write
2329

30+
concurrency:
31+
group: ai-agents-${{ github.head_ref }}
32+
cancel-in-progress: true
33+
2434
jobs:
2535
ci:
2636
runs-on: ubuntu-latest

.github/workflows/build_docker_for_ai_agents.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
branches: ["**"]
66
tags: ["**"]
77
paths-ignore:
8+
- "core/**"
9+
- "portal/**"
10+
- "tools/**"
11+
- "packages/**"
12+
- "build/**"
13+
- "third_party/**"
14+
- ".vscode/**"
815
- ".devcontainer/**"
916
- ".github/**"
1017
- "!.github/workflows/build-docker.yaml"
@@ -14,6 +21,13 @@ on:
1421
pull_request:
1522
branches: ["main"]
1623
paths-ignore:
24+
- "core/**"
25+
- "portal/**"
26+
- "tools/**"
27+
- "packages/**"
28+
- "build/**"
29+
- "third_party/**"
30+
- ".vscode/**"
1731
- ".devcontainer/**"
1832
- ".github/**"
1933
- "!.github/workflows/build-docker.yaml"
@@ -27,6 +41,10 @@ permissions:
2741
packages: write
2842
security-events: write
2943

44+
concurrency:
45+
group: build-docker-for-ai-agents-${{ github.head_ref }}
46+
cancel-in-progress: true
47+
3048
env:
3149
SERVER_IMAGE_NAME: ten_agent_server
3250
PLAYGROUND_IMAGE_NAME: ten_agent_playground

.github/workflows/codeql.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: "CodeQL Analysis"
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
schedule:
9+
- cron: "35 3 * * 1"
10+
11+
concurrency:
12+
group: codeql-analysis-${{ github.head_ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
security-events: write
17+
packages: read
18+
actions: read
19+
contents: read
20+
21+
jobs:
22+
codeql:
23+
name: Analyze (${{ matrix.language }})
24+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
25+
container:
26+
image: ghcr.io/ten-framework/ten_building_ubuntu2204
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
include:
31+
- language: actions
32+
build-mode: none
33+
- language: c-cpp
34+
build-mode: manual
35+
- language: go
36+
build-mode: autobuild
37+
- language: javascript-typescript
38+
build-mode: none
39+
- language: python
40+
build-mode: none
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v4
44+
with:
45+
fetch-depth: 0
46+
submodules: false
47+
48+
- name: Trust working directory
49+
run: |
50+
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
51+
52+
- name: Init & update submodules except portal/
53+
run: |
54+
submodules=$(git config --file .gitmodules --get-regexp path \
55+
| awk '$2 != "portal" { print $2 }')
56+
git submodule init
57+
for sub in $submodules; do
58+
git submodule update --init --recursive --depth 1 "$sub"
59+
done
60+
61+
- name: Setup Node.js
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: 20
65+
66+
- name: Initialize CodeQL
67+
uses: github/codeql-action/init@v3
68+
with:
69+
languages: ${{ matrix.language }}
70+
build-mode: ${{ matrix.build-mode }}
71+
72+
- name: Build C/C++ project
73+
if: matrix.language == 'c-cpp' && matrix.build-mode == 'manual'
74+
shell: bash
75+
run: |
76+
export PATH=$(pwd)/core/ten_gn:$PATH
77+
go env -w GOFLAGS="-buildvcs=false"
78+
go1.20.12 download
79+
rustup default nightly
80+
81+
tgn gen linux x64 debug -- enable_serialized_actions=true ten_enable_serialized_rust_action=true ten_rust_enable_gen_cargo_config=false ten_enable_ten_rust=false ten_enable_ten_rust_apis=false ten_enable_rust_incremental_build=false ten_manager_enable_frontend=false ten_enable_integration_tests_prebuilt=false ten_enable_nodejs_binding=false ten_enable_python_binding=false ten_enable_go_binding=false
82+
83+
tgn build:ten_runtime_smoke_test linux x64 debug
84+
85+
- name: Free up disk space
86+
run: |
87+
apt-get clean
88+
89+
- name: Perform CodeQL Analysis
90+
uses: github/codeql-action/analyze@v3
91+
with:
92+
category: "/language:${{matrix.language}}"

.github/workflows/linux_arm64.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ on:
1717
- "ai_agents/**"
1818

1919
permissions:
20-
contents: read
20+
contents: write
21+
discussions: write
2122
security-events: write
2223

2324
concurrency:

.github/workflows/linux_ubuntu2204.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ on:
1717
- "ai_agents/**"
1818

1919
permissions:
20-
contents: read
20+
contents: write
21+
discussions: write
2122
security-events: write
2223

2324
concurrency:

.github/workflows/mac_arm64.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ on:
1717
- "ai_agents/**"
1818

1919
permissions:
20-
contents: read
20+
contents: write
21+
discussions: write
2122
security-events: write
2223

2324
concurrency:

.github/workflows/mac_arm64_without_rust.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ on:
1717
- "ai_agents/**"
1818

1919
permissions:
20-
contents: read
20+
contents: write
21+
discussions: write
2122
security-events: write
2223

2324
concurrency:

.github/workflows/mac_x64.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ on:
1717
- "ai_agents/**"
1818

1919
permissions:
20-
contents: read
20+
contents: write
21+
discussions: write
2122
security-events: write
2223

2324
concurrency:

.github/workflows/tman_full_linux_x64.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened]
88
paths:
9+
- "tools/**"
10+
- "portal/**"
11+
- ".vscode/**"
12+
- ".devcontainer/**"
13+
- ".github/**"
914
- "core/src/ten_manager/**"
1015
- "core/src/ten_rust/**"
1116
- "ai_agents/**"
1217

1318
permissions:
14-
contents: read
19+
contents: write
20+
discussions: write
1521
security-events: write
1622

1723
concurrency:

.github/workflows/tman_full_mac_arm64.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened]
88
paths:
9+
- "tools/**"
10+
- "portal/**"
11+
- ".vscode/**"
12+
- ".devcontainer/**"
13+
- ".github/**"
914
- "core/src/ten_manager/**"
1015
- "core/src/ten_rust/**"
1116
- "ai_agents/**"
1217

1318
permissions:
14-
contents: read
19+
contents: write
20+
discussions: write
1521
security-events: write
1622

1723
concurrency:

.github/workflows/tman_full_mac_x64.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened]
88
paths:
9+
- "tools/**"
10+
- "portal/**"
11+
- ".vscode/**"
12+
- ".devcontainer/**"
13+
- ".github/**"
914
- "core/src/ten_manager/**"
1015
- "core/src/ten_rust/**"
1116
- "ai_agents/**"
1217

1318
permissions:
14-
contents: read
19+
contents: write
20+
discussions: write
1521
security-events: write
1622

1723
concurrency:

.github/workflows/tman_full_win_x64.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened]
88
paths:
9+
- "tools/**"
10+
- "portal/**"
11+
- ".vscode/**"
12+
- ".devcontainer/**"
13+
- ".github/**"
914
- "core/src/ten_manager/**"
1015
- "core/src/ten_rust/**"
1116
- "ai_agents/**"
1217

1318
permissions:
14-
contents: read
19+
contents: write
20+
discussions: write
1521
security-events: write
1622

1723
concurrency:

.github/workflows/win.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ on:
1717
- "ai_agents/**"
1818

1919
permissions:
20-
contents: read
20+
contents: write
21+
discussions: write
2122
security-events: write
2223

2324
concurrency:

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,8 @@
108108
"**/node_modules/*/**": true,
109109
"**/out/*/**": true,
110110
"**/third_party/*/**": true
111+
},
112+
"[yaml]": {
113+
"editor.defaultFormatter": "redhat.vscode-yaml"
111114
}
112115
}

0 commit comments

Comments
 (0)