Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into dev/computer_tool
Browse files Browse the repository at this point in the history
  • Loading branch information
plutoless committed Feb 26, 2025
2 parents cd661c7 + ffd58ba commit 9e36dfa
Show file tree
Hide file tree
Showing 326 changed files with 18,149 additions and 9,271 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "ten_agent_dev",
"image": "ghcr.io/ten-framework/ten_agent_build:0.2.4",
"image": "ghcr.io/ten-framework/ten_agent_build:0.4.10",
"customizations": {
"vscode": {
"extensions": [
Expand Down
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,6 @@ FIRESTORE_PRIVATE_KEY=
FIRESTORE_CLIENT_EMAIL=
FIRESTORE_CLIENT_ID=
FIRESTORE_CERT_URL=


DEEPSEEK_API_KEY=
7 changes: 3 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Treat all text files as text and normalize to LF in the repository
* text=auto
# Force LF for shell scripts or config files
# Shell scripts use LF as line separator, even checked out to Windows(NTFS) file-system
*.sh text eol=lf
*.config text eol=lf
agents/bin/* text eol=lf
agents/scripts/* text eol=lf
17 changes: 17 additions & 0 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:
env:
SERVER_IMAGE_NAME: ten_agent_server
PLAYGROUND_IMAGE_NAME: ten_agent_playground
NON_EDIT_PLAYGROUND_IMAGE_NAME: ten_agent_non_edit_playground
DEMO_IMAGE_NAME: ten_agent_demo

jobs:
Expand All @@ -50,6 +51,8 @@ jobs:
no_push: ${{ github.event_name == 'pull_request' }}
- name: Build & Publish Docker Image for Playground
uses: elgohr/Publish-Docker-Github-Action@v5
env:
EDIT_GRAPH_MODE: true
with:
name: ${{ github.repository_owner }}/${{ env.PLAYGROUND_IMAGE_NAME }}
username: ${{ github.actor }}
Expand All @@ -58,6 +61,20 @@ jobs:
workdir: playground
tags: "${{ github.ref == 'refs/heads/main' && 'latest,' || '' }}${{ steps.pre-step.outputs.image-tag }}"
no_push: ${{ github.event_name == 'pull_request' }}
buildargs: EDIT_GRAPH_MODE
- name: Build & Publish Docker Image for Non-Editable Playground
uses: elgohr/Publish-Docker-Github-Action@v5
env:
EDIT_GRAPH_MODE: false
with:
name: ${{ github.repository_owner }}/${{ env.NON_EDIT_PLAYGROUND_IMAGE_NAME }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: playground
tags: "${{ github.ref == 'refs/heads/main' && 'latest,' || '' }}${{ steps.pre-step.outputs.image-tag }}"
no_push: ${{ github.event_name == 'pull_request' }}
buildargs: EDIT_GRAPH_MODE
- name: Build & Publish Docker Image for demo
uses: elgohr/Publish-Docker-Github-Action@v5
with:
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
pull_request:
branches: [ "main" ]
paths-ignore:
- ".devcontainer/**"
- ".github/**"
- "!.github/workflows/ci.yaml"
- ".vscode/**"
- "docs/**"
- "esp32-client/**"
- "**.md"
- "Dockerfile"
- "docker-compose.yml"
- "demo/**"
- "playground/**"
workflow_dispatch:

jobs:
ci:
runs-on: ubuntu-latest
container:
image: ghcr.io/ten-framework/ten_agent_build:0.4.10
strategy:
matrix:
agent: [agents/examples/default, agents/examples/demo, agents/examples/experimental]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
submodules: "true"

- name: Use agent
run: |
git config --global --add safe.directory $(pwd)
task use AGENT=${{ matrix.agent }}
- name: Run tests
run: |
task test -- -s -v
# - name: Run lint
# run: |
# task lint
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# next.js
/.next/
/out/
.pnpm-store

*.log
addon/extension_group/
agoradns.dat
agorartmdns.dat
agora_rtm_cache.db
agorareport.dat
bin/
server/bin/
/BUILD.gn
.cache/
/compile_commands.json
Expand Down
Loading

0 comments on commit 9e36dfa

Please sign in to comment.