166 Commits

Author SHA1 Message Date
Nie Zhihe
03e7f2fd6a fix: publish release logic (#2093) 2026-03-06 20:54:56 +08:00
Nie Zhihe
9e7ac4fe41 chore: english docs for demos (#2086)
* chore: english docs for demos

* fix: intall python deps

* feat: workflow

* fix: taskfile

* fix: workflow

* fix: workflow ubuntu version

* fix: workflow-python alias on windows

* fix: workflow

* fix: utf-8 windows

* fix: npm command on windows

* fix: tgn on windows

* fix: verify python package from cloud

* fix: verify python version

* fix: python path

* fix: python path

* fix: python dependecies

* fix: python path for all steps

* fix: specify vs version to 2022 on windows

* fix: manually modify run_script.py

* fix: workaround for windows

* fix: manifests

* fix: python version

* fix: libpython path

* fix: trigger logic of from_scratch workflow
2026-03-05 21:04:48 +08:00
Nie Zhihe
609a9d949e fix: Copy import libraries workflow (#2087) 2026-03-04 19:18:29 +08:00
Nie Zhihe
82be800fa7 feat: quick start demo on windows (#2076)
* fix: npm command on windows

* feat: add install_tman powershell script

* fix: utf-8 encode

* feat: start script

* fix: build script

* fix: fix npm command

* fix: load .env file

* fix: start script

* fix: start script

* temp success

* fix: custom flags for windows in build.py

* Revert "temp success"

This reverts commit 7d8e32e8eb.

* fix: add import libraries to system packages before publish

* fix: websocket-example

fix: check env

fix: websocket-example

fix: websocket-example scripts

fix: websocket-example worker.go

fix: websocket-example path

fix: websocket-example scripts

* fix: refine

fix

fix: api server path

fix

fix

* fix: refine code according to github bot suggestions

* fix: refine codes

* fix: markdowns

* fix: refine markdown

* fix: ten_gn

* fix: demo 1

* fix: hack to workaround encoding issue during build

* fix: check env

* fix: demo 2 install tools

* fix: demo 2

* fix: refine codes

---------

Co-authored-by: Hu Yueh-Wei <wei.hu.tw@gmail.com>
2026-03-04 10:21:07 +08:00
Nie Zhihe
8f6ff6b7eb feat: publish win packages to registry (#2062)
* feat: publish packages

* fix: release the GIL before waiting
2026-02-27 12:10:42 +08:00
Nie Zhihe
f8bef434d4 feat: windows nodejs support (#2048) 2026-02-25 16:19:47 +08:00
Nie Zhihe
6289d8306d fix: update llvm packages' names as they are restructured (#2059)
* fix: update llvm packages' names as they are restructured

* fix: purge llvm packages

* fix: force remove
2026-02-24 20:11:26 +08:00
Ethan Zhang
8e3fba92b0 Update claude_code_review.yml 2026-02-16 21:26:05 +08:00
Ethan Zhang
11142d2b59 Update claude_code_review.yml 2026-02-16 21:02:05 +08:00
Nie Zhihe
9df0aa8e5a feat: msvc-go (#2031)
* feat: force compile ten_runtime_go.lib with mingw

* fix: ten_runtime_go library output name

* chore: ten_gn

* fix: provide mingw-compiled ten_runtime and ten_utils libs to match force mingw-compiled go

* chore: temporary modify a go test

* Revert "fix: provide mingw-compiled ten_runtime and ten_utils libs to match force mingw-compiled go"

This reverts commit 5d60624372.

* fix: export funcs when built with MSVC for MinGW-built go DLL

* fix: rustup toolchain switch to nightly

* feat: find mingw compiler to compile ten_runtime_go

* fix: rename DLLs for MinGW compiler to find

* chore: ten_gn

* fix: 3 standalone tests to use mingw linker

* chore: ten_gn(refine)

* fix: ten_runtime_go target logic

* Revert "fix: export funcs when built with MSVC for MinGW-built go DLL"

This reverts commit 6d83326822.

* chore: revert all win-related modifications to inline funcs

* fix: go_binding files add headers to use inline funcs

* chore: refine workflow

* fix: convert funcs to non-inline for them to export on different platforms

* fix: go flags that find ten_runtime and ten_utils DLL

* Revert "chore: temporary modify a go test"

This reverts commit a9f5129701.

* fix: use temp dir for cython to avoid hitting path max length

* fix: add package name to temp directory path

* fix: refine temp dir codes

* fix: refine codes
2026-02-05 14:45:23 +08:00
Nie Zhihe
09ead2af70 feat: mingw python (new) (#2009)
* chore: enable python_binding and python tests in workflow

* fix: rename ten_runtime_python DLL

* fix: modify python_config.py to pass correct flags to MinGW linker(ld) when linking python310

* chore: internal pytests that should be ignored

* fix: encoding in update_root_pyproject.py

* fix: add ten_runtime lib to PATH for go apps with python extension

* chore: ten_gn(copy mingw dlls)

* chore: temporary remove 3 go+python tests(to be debug later)

* fix: use add_dll_directory to add mingw/bin for ten_runtime_python interface

* chore: ten_gn(revert copy dlls)

* fix: addDllDirectory implemented in addon_autoload to help go apps load dlls

* chore: refine codes
2026-01-22 14:57:58 +08:00
Nie Zhihe
c06be5353b fix: fixed most go tests for them to run successfully on windows with mingw (#1981)
* Revert "chore: temporarily remove go tests on Windows"

This reverts commit 299f86a6c2b662d0d5ace5dfabce671ea1254223.

* Revert "chore: temporarily disable go tests(build with go_binding is implemented)"

This reverts commit b5024bcfe985994e95d67db8a27d489f2c04e8e2.

* chore: ten_gn pointer

* fix: modify most go tests's test_case.py scripts(these should all pass)

* chore: disable leak_check_go test on Windows

* chore: temporary disable 5 go tests on Windows (for future debuggin in the next PR)

---------

Co-authored-by: Nie Zhihe <niezhihe@shengwang.cn>
2026-01-14 23:56:26 +08:00
Nie Zhihe
369837cdbc feat: mingw enabling go binding (#1972)
* chore: enable go_binding for mingw

* fix: rename go test to avoid hitting windows long path limit

* refactor: compile ten_runtime_go as a static library

* fix: missing header file causing function not exported from ten_utils

* chore: refine codes

* chore: refine codes

* fix: export inline function in ten_runtime

* fix: start script for go apps

* fix: go app executable needs to be main.exe (adding suffix)

* chore: temporarily disable go tests(build with go_binding is implemented)

* chore: refine markdown

* chore: temporarily remove go tests on Windows

* fix: modify rpath and remove useless LD/DYLD_LIBRARY_PATH for go extensions and apps

---------

Co-authored-by: Nie Zhihe <niezhihe@shengwang.cn>
2026-01-14 19:12:45 +08:00
Elliot Chen
e73495c35b refactor: rename speechmatics diarization to speaker diarization (#1957)
* refactor: rename speaker diarization example

* refactor: rename speechmatics-diarization to speaker-diarization

---------

Co-authored-by: Ethan Zhang <qianze.zhang@hotmail.com>
2026-01-09 11:54:34 +08:00
Nie Zhihe
1a25771b72 chore: debug cpp integration tests when compiled with mingw (#1944)
* chore: open test-integration-cpp for mingw in workflow

* chore: conditionally install mingw in workflow

* fix: add is_mingw argument to build script

* fix: lib prefix for .dll.a (import lib)

* fix: add is_mingw to build_script for 2 standalone tests

* chore: remove useless python script

* chore: add RUSTUP_TOOLCHAIN setting to workflow

* fix: arguments that link static libs

* fix: refine codes

---------

Co-authored-by: Nie Zhihe <niezhihe@shengwang.cn>
Co-authored-by: Hu Yueh-Wei <wei.hu.tw@gmail.com>
2026-01-07 23:35:31 +08:00
Nie Zhihe
43e8a53b25 feat: mingw clean with yml (#1934)
* fix: lib suffix .a

fix: use ar and set suffix to .a when combining static libs

fix: change suffix to .dll.a for import third libraries

fix: lib suffix

* fix: cflags

fix: compiler warning flgs

fix: cflags

chore: fPIC flag not needed

* fix: SetThreadDescription

fix: fix MinGW compatibility with explicit type casts for Windows interlocked operations

fix: use InterlockedExchangeAdd64 as an alternative for InterlockedAddAcquire64

* fix: cmake generator set to MinGW Makefiles for third parties libuv and yyjson

fix: third party configs

* fix: expand the wildcard when using ar to combind static lib

fix: add rmtree func with retries for Win

fix: find obj files when combining static libs

* fix: generate target triples based on OS and CPU architecture

fix: ignore:4099 is MSVC linker option, not supported by MinGW

fix: link ntdll for MinGW target

fix: build/ten_runtime/feature

fix: minGW supports rpath

* fix: parallel build support

fix: lib name in get_lib_name_from_cmake_output.py

chore: parellel build

fix: set stack size for buiding tman on MinGW Win

fix: refine set stack size logic

* fix: add MinGW-specific build configuration for clingo-sys

chore: refine clingo-sys build codes

fix: modify clingo lib suffix on Linux/Mac

* fix: undefined ref to inline ten_string_* funcs

fix: undefined ref to inline func `ten_msg_get_raw_msg'

chore: check exportation issue of other extern inline funcs

* fix: libten_runtime_python.pyd lib name

fix: no non-blocking method was found

fix: libzlib.dll.a name

fix: refine codes

* fix: temporary fix msgpack.dll import symbol problem

fix: temporary fix more import symbol problems

* chore: specify ten_gn

* feat: mingw build workflow

---------

Co-authored-by: Nie Zhihe <niezhihe@shengwang.cn>
Co-authored-by: Hu Yueh-Wei <wei.hu.tw@gmail.com>
2026-01-03 18:18:41 +08:00
Ethan Zhang
3864339d62 feat: update build image to 0.7.14 (#1935) 2026-01-01 12:34:08 +08:00
xxxxl_sun
a2fb3c0764 fix: ci (#1932) 2025-12-31 16:43:23 +08:00
xxxxl_sun
121da171e1 fix: ci (#1931) 2025-12-31 15:16:30 +08:00
Nie Zhihe
66e23b3aa5 chore: modify rust tool chain version (#1923)
* fix: refine codes

* fix: refine codes

---------

Co-authored-by: Hu Yueh-Wei <wei.hu.tw@gmail.com>
2025-12-31 12:04:51 +08:00
Hu Yueh-Wei
6c79db216c chore: update linux ARM64 workflow to use ubuntu-24.04-arm and streamline build steps (#1924)
* chore: update linux ARM64 workflow to use ubuntu-24.04-arm and streamline build steps

* chore: update linux ARM64 workflow to use ubuntu-24.04-arm and streamline build steps

* fix: refine code

* fix: refine code

* fix: refine code

* fix: refine code

* fix: refine code

* fix: ten_rust panic strategy to abort

* fix: refine code

* fix: refine code

* fix: refine code

* fix: refine codes

* fix: refine codes

* fix: install stable rust in mac arm64

* fix: mac x64 debug

* fix: mac x64 debug

* fix: mac x64 debug

* fix: mac x64 debug

* fix: mac xcode target sdk version

* fix: mac x64 debug

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: increase the stack size on mac

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine code

---------

Co-authored-by: sxl <sunxilin@agora.io>
2025-12-30 23:11:43 +08:00
xxxxl_sun
bd7b1f739b feat: fully utilize uv in ten framework (#1904)
* feat: add pyproject.toml for python packages

* feat: add script for updating pyproject.toml

* fix: remove ten_enable_integration_tests_prebuilt build flag

* feat: using uv in python integration tests

* fix: refine code

* fix: refine code

* chore: add more pyproject.toml

* fix: refine code

* chore: refine grafana dashboard

* fix: refine code

* fix: refine code

* fix: remove .venv & build python C extension with pyd suffix

* fix: remove container for python integration test on linux x64 workflow

* fix: refine grafana

* fix: refine code

* fix: add python path for venv on windows

* fix: refine code

* fix: refine code

* fix: test case
2025-12-24 17:01:26 +08:00
Nie Zhihe
c12353fad0 fix: coveralls remove container for all test jobs (#1878)
* chore: calculate coverage in debug mode

* Revert "chore: calculate coverage in debug mode"

This reverts commit f68a031af9efad1fd0fb57777342f180835891f0.

* Reapply "chore: calculate coverage in debug mode"

This reverts commit bc27f2c1ca8bebd34a095891e886eb0763c83c43.

* fix: remove container for test jobs

* fix: add C++ toolchain, go builder, sanitizer support, nodejs env

* fix: compiler version incompatible

* Revert "fix: compiler version incompatible"

This reverts commit 23f5c3f7d70f759170ed6b8911edd34fb56a812f.

* fix: set PATH so that clang-21 is find earlier than older versions

* fix: uninstall older versions of clang

* Revert "fix: set PATH so that clang-21 is find earlier than older versions"

This reverts commit b66e56c08a1b0eb07454d2c2273f360211ec1971.

* fix: uninstall old clang first then install clang21

* fix: supplement test jobs deps according to tools Dockerfile

* fix: install libasan5 for all jobs and remove unecessary deps

* chore: refine codes and output clang version before every test

* fix: go back to clang 18 to detect __lsan_do_leak_check

* Revert "fix: go back to clang 18 to detect __lsan_do_leak_check"

This reverts commit d247818a8c2e2a0b030e901e4e9962af8bab30df.

* fix: upgrade libasan5 to libasan8 to match clang 21

* fix: install libclang-rt-21-dev

* Revert "fix: install libclang-rt-21-dev"

This reverts commit 39b96e030e.

* fix: ten_enable_go_app_leak_check

* chore: uninstall useless dep libasan8

* chore: refine codes and uninstall unecessary dep clang-tool-21
2025-12-19 11:00:04 +08:00
xxxxl_sun
58f4556427 feat: move docs to ten-framework and add workflow to protect onboarding experience (#1881)
* chore: move doc from portal to ten-framework

* feat: improve from scratch workflow

* fix: refine code

* chore: test

* chore: test

* fix: refine code
2025-12-16 10:55:04 +08:00
Nie Zhihe
eaebb8aa60 feat: add tman coverage into coveralls (#1870)
* chore: calculate coverage in debug mode

* chore: tman coverage

* fix: open tman coverage when build

* Revert "chore: calculate coverage in debug mode"

This reverts commit f68a031af9efad1fd0fb57777342f180835891f0.

* chore: set LLVM_PROFILE_FILE

* chore: refine codes
2025-12-16 10:54:20 +08:00
Nie Zhihe
fa86b83281 fix: remove duplicate upload of tman-win zip (#1879) 2025-12-15 16:20:31 +08:00
xxxxl_sun
b39effcdf0 chore: update doc (#1874) 2025-12-15 11:20:13 +08:00
Nie Zhihe
9002ad1c5e fix: mandatory sha256 fetched from release data (#1866)
* fix: mandatory sha256  fetched from release data

* feat: inherit existing branch or PR on winget-pkgs

* fix: windows temp path

* chore: exit logic

---------

Co-authored-by: Nie Zhihe <niezhihe@shengwang.cn>
2025-12-11 19:47:04 +08:00
Nie Zhihe
d7425be16c feat: winget (#1844)
* feat: winget (dry run when push)

* fix: remove potential code injection

* fix: variable format

* fix: build command args

* chore: test production run, trigger PR to  winget-pkgs

* fix: higher rate limit

* Revert "chore: test production run, trigger PR to  winget-pkgs"

This reverts commit 4d5d6e0d27769c40e1b3ce27f3acf612d0923988.

* chore: modify PackageIdentifier

* chore: refine codes

* fix: trigger

* chore: refine codes

* chore: refine codes

* chore: refine template

* fix: license type

* fix: refine codes

---------

Co-authored-by: Nie Zhihe <niezhihe@shengwang.cn>
Co-authored-by: Hu Yueh-Wei <wei.hu.tw@gmail.com>
2025-12-09 17:58:14 +08:00
Jun
29c4d0c5ff feat: add a python system package pytest_ten supporting AAA-style tests (#1838)
* feat: add a python test wrapper supporting AAA-style tests

* fix: use relative import

* feat: move test_wrapper from ten_runtime into core_system package

* test: add example tests using pytest_ten

* chore: refine code

* feat: update workflow to upload pytest_ten system package

* fix: refine code

* fix: test case on windows

---------

Co-authored-by: xxxxl_sun <31622273+sunxilin@users.noreply.github.com>
Co-authored-by: sunxilin <sunxilin@shengwang.cn>
2025-12-09 11:01:28 +08:00
Nie Zhihe
bef4f68f5d test: pytest on windows (with python_binding enabled) (#1796)
* fix: unlock windows

* fix: convert windows path separators

* fix: correct virtual environment PATH ('bin')

* fix: boostrap script for windows

* fix: start script for windows

* fix: rule out uvloop on windows

* fix: add_dll_directory()

* fix: Python C API format string

* fix: go_binding restricted tests

* fix: fix path when using bootstrap script

* fix: start_graph tests

* fix: fix path when using bootstrap script

* fix: five standalone tests

* fix: ignore internal tests

* fix: remove DLL loading flags

* feat: pytests workflow on windows

* Revert "fix: remove DLL loading flags"

This reverts commit 249841a5dcd956551b5d4ddbff2d46bd20e2afc1.

* fix: two cpp_app with python extension

* fix: ignore leak_check on win

* fix: fix CI workflow

* fix: ollama installation silent arg

* Revert "fix: add_dll_directory()"

This reverts commit de6f9dced0.

* fix: ollama installation debug

* fix: download ollama win zip

* fix: add_dll_dir when python code import ten_runtime

* fix: add_dll_directory for cpp apps

* fix: find python310.dll instead of copying

* fix: libten_runtime_python.pyd path on win

* fix: remove useless add_dll_directory codes

* chore: refine module.c comment

* chore: refine start scripts for 2 cpp apps

* fix: add module_load fallback (to LoadLibraryA)

* fix: unpin pytest version requirement

* fix: win long path support on CI workflow

* fix: revert module.c

* feat: fallback to LoadLibraryA to load python310.dll on win

* refactor: shorten project name to fix Windows path length limit

- Rename 'cpp_app_mproc_python' to shorter name
- Resolve GetFullPathNameA() 'The filename or extension is too long' error on Windows

* fix: bootstrap file lack execute permission (triggered by rename)

* fix: refine codes

---------

Co-authored-by: Nie Zhihe <niezhihe@shengwang.cn>
Co-authored-by: Hu Yueh-Wei <wei.hu.tw@gmail.com>
2025-12-08 09:58:21 +08:00
Hu Yueh-Wei
c53208d7ea chore: disable debug and measurement logging in coverage workflow (#1839) 2025-12-08 09:34:39 +08:00
Nie Zhihe
058d9dfbac fix: coveralls app arguments (#1835)
* fix: coveralls app arguments

* fix: path consistency in lcov and work env

---------

Co-authored-by: Nie Zhihe <niezhihe@shengwang.cn>
2025-12-08 02:18:14 +08:00
xxxxl_sun
1875bcf6f9 feat: add check_env cmd in tman (#1819)
* feat: add check_env cmd in tman

* chore: update doc

* fix: workflow

* fix: workflow

* fix: refine code

* fix: workflow

* fix: workflow

* fix: tman check_env

* fix: workflow

* fix: refine coverage workflow

* fix: refine coverage workflow

* fix: refine coverage workflow

* fix: refine coverage workflow

* fix: refine coverage workflow

* fix: refine codes

* fix: refine codes

---------

Co-authored-by: Hu Yueh-Wei <wei.hu.tw@gmail.com>
2025-12-05 15:03:56 +08:00
Ethan Zhang
d97754c3ef feat: bump up build image to 0.7.12 (#1832) 2025-12-05 13:50:06 +08:00
Ethan Zhang
1228adc9b2 Feat/claude (#1812)
* feat: add new ASR extension ezai_asr

* feat: update workflow

* fix: fix settings

* fix: fix settings

* fix: try taking out api key

* fix: fix claude code

* fix: fix api key

* fix: fix api key

* Revert "feat: add new ASR extension ezai_asr"

This reverts commit 956685a463.

---------

Co-authored-by: ad715310 <ad715310@gmail.com>
2025-12-02 19:46:46 +08:00
xxxxl_sun
7c045c49fe fix: workflow (#1807)
* fix: workflow

* fix: workflow
2025-12-01 21:41:02 +08:00
xxxxl_sun
a37aa29f39 fix: workflow (#1805) 2025-12-01 15:49:29 +08:00
xxxxl_sun
63650dda81 feat: add workflow to publish tman to ppa (#1795)
* feat: add workflow to publish tman to ppa

* fix: refine code

* fix: refine code

* fix: refine code

* fix: refine code

* fix: refine code

* fix: refine code

* fix: refine code

* fix: refine code

* fix: workflow

* feat: add workflow to publish tman to ppa on linux arm64

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow
2025-12-01 12:22:58 +08:00
xxxxl_sun
997cc41505 feat: add workflow to publish tman to homebrew (#1801)
Co-authored-by: sxl <sunxilin@agora.io>
2025-11-28 18:56:07 +08:00
Hu Yueh-Wei
d41185387e chore: enable ARM64 support in GitHub Actions workflow for Ubuntu 22.04 (#1758)
Co-authored-by: sunxilin <sunxilin@shengwang.cn>
2025-11-22 11:48:23 +08:00
xxxxl_sun
f62b9593e7 feat: update libnode and workflow (#1773) 2025-11-21 16:34:06 +08:00
Nie Zhihe
c1620acd88 feat: enable python binding on windows (#1764)
Co-authored-by: Nie Zhihe <niezhihe@shengwang.cn>
Co-authored-by: Hu Yueh-Wei <wei.hu.tw@gmail.com>
2025-11-20 16:41:30 +08:00
xxxxl_sun
c078d484cb feat: add guidance for advanced c development environments (#1752) 2025-11-19 11:06:08 +08:00
Hu Yueh-Wei
9e7a68df10 fix: correct command syntax in Linux ARM64 GitHub Actions workflow (#1759) 2025-11-17 21:20:11 +08:00
Hu Yueh-Wei
dab25de661 chore: enable additional ARM64 support in GitHub Actions workflow (#1748) 2025-11-17 13:53:52 +08:00
Hu Yueh-Wei
b0ad259d87 chore: enable Linux ARM64 support in GitHub Actions workflow (#1744) 2025-11-16 12:55:26 +08:00
Hu Yueh-Wei
aef42cfffc fix: improve ulimit and sysctl settings in GitHub Actions workflow to handle concurrent connections more effectively (#1742) 2025-11-15 11:55:59 +08:00
Hu Yueh-Wei
6110b540ee fix: enhance Coveralls upload process in GitHub Actions workflow (#1738) (#1739) 2025-11-14 14:14:00 +08:00
Hu Yueh-Wei
a8cced5c4a refactor: streamline Coveralls upload process in GitHub Actions workflow (#1737) 2025-11-14 13:35:09 +08:00