@qwen-code/qwen-harness 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -9
- package/assets/audio/FFmpeg.LICENSE +511 -0
- package/assets/audio/LAME.LICENSE +490 -0
- package/assets/audio/Opus.LICENSE +44 -0
- package/assets/audio/README.md +18 -0
- package/assets/audio/darwin-arm64/ffmpeg.gz +0 -0
- package/assets/audio/darwin-arm64/manifest.json +39 -0
- package/assets/audio/darwin-x64/ffmpeg.gz +0 -0
- package/assets/audio/darwin-x64/manifest.json +39 -0
- package/assets/audio/linux-arm64/ffmpeg.gz +0 -0
- package/assets/audio/linux-arm64/manifest.json +39 -0
- package/assets/audio/linux-x64/ffmpeg.gz +0 -0
- package/assets/audio/linux-x64/manifest.json +39 -0
- package/assets/audio/sources/ffmpeg-7.0.2.tar.xz +0 -0
- package/assets/audio/sources/lame-3.100.tar.gz +0 -0
- package/assets/audio/sources/opus-1.5.2.tar.gz +0 -0
- package/assets/audio/sources/pkgconf-2.3.0.tar.xz +0 -0
- package/assets/audio/win32-x64/ffmpeg.gz +0 -0
- package/assets/audio/win32-x64/manifest.json +39 -0
- package/dist/entrypoint.js +1371 -664
- package/dist/entrypoint.js.map +4 -4
- package/package.json +11 -8
- package/scripts/audio-sources.lock.json +30 -0
- package/scripts/build-audio-encoder.sh +76 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-harness",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"qwen-harness": "dist/entrypoint.js"
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
14
|
-
".pi/agents"
|
|
14
|
+
".pi/agents",
|
|
15
|
+
"assets/audio",
|
|
16
|
+
"scripts/build-audio-encoder.sh",
|
|
17
|
+
"scripts/audio-sources.lock.json"
|
|
15
18
|
],
|
|
16
19
|
"engines": {
|
|
17
20
|
"node": ">=22.19.0"
|
|
@@ -25,13 +28,13 @@
|
|
|
25
28
|
"test:dist": "node scripts/smoke-dist.mjs"
|
|
26
29
|
},
|
|
27
30
|
"dependencies": {
|
|
28
|
-
"@earendil-works/pi-agent-core": "1.5.
|
|
29
|
-
"@earendil-works/pi-ai": "1.5.
|
|
30
|
-
"@earendil-works/pi-codemode": "1.5.
|
|
31
|
-
"@earendil-works/pi-coding-agent": "1.5.
|
|
32
|
-
"@earendil-works/pi-mcp": "1.5.
|
|
31
|
+
"@earendil-works/pi-agent-core": "1.5.2",
|
|
32
|
+
"@earendil-works/pi-ai": "1.5.2",
|
|
33
|
+
"@earendil-works/pi-codemode": "1.5.2",
|
|
34
|
+
"@earendil-works/pi-coding-agent": "1.5.2",
|
|
35
|
+
"@earendil-works/pi-mcp": "1.5.2",
|
|
33
36
|
"@earendil-works/pi-server": "1.1.0",
|
|
34
|
-
"@earendil-works/pi-tui": "1.5.
|
|
37
|
+
"@earendil-works/pi-tui": "1.5.2",
|
|
35
38
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
36
39
|
"@stacksjs/ts-webp": "0.1.2",
|
|
37
40
|
"ajv": "8.20.0",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "ffmpeg",
|
|
4
|
+
"version": "7.0.2",
|
|
5
|
+
"url": "https://ffmpeg.org/releases/ffmpeg-7.0.2.tar.xz",
|
|
6
|
+
"filename": "ffmpeg-7.0.2.tar.xz",
|
|
7
|
+
"sha256": "8646515b638a3ad303e23af6a3587734447cb8fc0a0c064ecdb8e95c4fd8b389"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "opus",
|
|
11
|
+
"version": "1.5.2",
|
|
12
|
+
"url": "https://github.com/xiph/opus/releases/download/v1.5.2/opus-1.5.2.tar.gz",
|
|
13
|
+
"filename": "opus-1.5.2.tar.gz",
|
|
14
|
+
"sha256": "65c1d2f78b9f2fb20082c38cbe47c951ad5839345876e46941612ee87f9a7ce1"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "lame",
|
|
18
|
+
"version": "3.100",
|
|
19
|
+
"url": "https://deb.debian.org/debian/pool/main/l/lame/lame_3.100.orig.tar.gz",
|
|
20
|
+
"filename": "lame-3.100.tar.gz",
|
|
21
|
+
"sha256": "ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "pkgconf",
|
|
25
|
+
"version": "2.3.0",
|
|
26
|
+
"url": "https://distfiles.dereferenced.org/pkgconf/pkgconf-2.3.0.tar.xz",
|
|
27
|
+
"filename": "pkgconf-2.3.0.tar.xz",
|
|
28
|
+
"sha256": "3a9080ac51d03615e7c1910a0a2a8df08424892b5f13b0628a204d3fcce0ea8b"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Build-only dependencies: C compiler, make, tar, and xz. Runtime has none of these.
|
|
3
|
+
set -eu
|
|
4
|
+
target=$1
|
|
5
|
+
sources=$2
|
|
6
|
+
output=$3
|
|
7
|
+
mkdir -p "$output"
|
|
8
|
+
output=$(cd "$output" && pwd)
|
|
9
|
+
work="$output/work"
|
|
10
|
+
prefix="$work/prefix"
|
|
11
|
+
mkdir -p "$work" "$prefix"
|
|
12
|
+
jobs=${ARENA_AUDIO_BUILD_JOBS:-4}
|
|
13
|
+
|
|
14
|
+
extract() {
|
|
15
|
+
directory=$1
|
|
16
|
+
archive=$2
|
|
17
|
+
mkdir -p "$work/$directory"
|
|
18
|
+
tar -xf "$sources/$archive" -C "$work/$directory" --strip-components=1
|
|
19
|
+
}
|
|
20
|
+
extract pkgconf pkgconf-2.3.0.tar.xz
|
|
21
|
+
(cd "$work/pkgconf" && ./configure --prefix="$work/build-tools" --disable-shared && make -j"$jobs" && make install)
|
|
22
|
+
|
|
23
|
+
host_flags=
|
|
24
|
+
ffmpeg_flags=
|
|
25
|
+
export CFLAGS="-O2"
|
|
26
|
+
export LDFLAGS=""
|
|
27
|
+
case "$target" in
|
|
28
|
+
darwin-arm64)
|
|
29
|
+
export CC="clang -arch arm64" CFLAGS="-O2 -arch arm64 -mmacosx-version-min=11.0" LDFLAGS="-arch arm64 -mmacosx-version-min=11.0"
|
|
30
|
+
host_flags=--host=aarch64-apple-darwin
|
|
31
|
+
ffmpeg_flags="--arch=aarch64 --target-os=darwin --enable-cross-compile"
|
|
32
|
+
;;
|
|
33
|
+
darwin-x64)
|
|
34
|
+
export CC="clang -arch x86_64" CFLAGS="-O2 -arch x86_64 -mmacosx-version-min=10.15" LDFLAGS="-arch x86_64 -mmacosx-version-min=10.15"
|
|
35
|
+
host_flags=--host=x86_64-apple-darwin
|
|
36
|
+
ffmpeg_flags="--arch=x86_64 --target-os=darwin --enable-cross-compile"
|
|
37
|
+
;;
|
|
38
|
+
linux-*)
|
|
39
|
+
export CC=gcc LDFLAGS=-static
|
|
40
|
+
;;
|
|
41
|
+
win32-x64)
|
|
42
|
+
export CC=x86_64-w64-mingw32-gcc AR=x86_64-w64-mingw32-ar RANLIB=x86_64-w64-mingw32-ranlib LDFLAGS=-static
|
|
43
|
+
host_flags=--host=x86_64-w64-mingw32
|
|
44
|
+
ffmpeg_flags="--arch=x86_64 --target-os=mingw32 --enable-cross-compile --cross-prefix=x86_64-w64-mingw32-"
|
|
45
|
+
;;
|
|
46
|
+
*) echo "Unsupported audio target: $target" >&2; exit 1 ;;
|
|
47
|
+
esac
|
|
48
|
+
|
|
49
|
+
extract lame lame-3.100.tar.gz
|
|
50
|
+
(cd "$work/lame" && ./configure $host_flags --prefix="$prefix" --disable-shared --enable-static --disable-frontend --disable-dependency-tracking && make -j"$jobs" && make install)
|
|
51
|
+
extract opus opus-1.5.2.tar.gz
|
|
52
|
+
(cd "$work/opus" && ./configure $host_flags --prefix="$prefix" --disable-shared --enable-static --disable-doc --disable-extra-programs --disable-intrinsics && make -j"$jobs" && make install)
|
|
53
|
+
|
|
54
|
+
extract ffmpeg ffmpeg-7.0.2.tar.xz
|
|
55
|
+
export PKG_CONFIG_PATH="$prefix/lib/pkgconfig"
|
|
56
|
+
(cd "$work/ffmpeg" && ./configure $ffmpeg_flags \
|
|
57
|
+
--cc="$CC" --extra-cflags="$CFLAGS -I$prefix/include" --extra-ldflags="$LDFLAGS -L$prefix/lib" \
|
|
58
|
+
--pkg-config="$work/build-tools/bin/pkgconf" --pkg-config-flags=--static \
|
|
59
|
+
--disable-everything --disable-autodetect --disable-network --disable-doc --disable-debug \
|
|
60
|
+
--disable-shared --enable-static --enable-small --disable-x86asm \
|
|
61
|
+
--disable-avdevice --disable-swscale --disable-postproc --disable-ffprobe --disable-ffplay \
|
|
62
|
+
--enable-ffmpeg --enable-swresample --enable-libmp3lame --enable-libopus \
|
|
63
|
+
--enable-protocol=file,pipe --enable-demuxer=pcm_s16le \
|
|
64
|
+
--enable-decoder=pcm_s16le --enable-encoder=libmp3lame,libopus \
|
|
65
|
+
--enable-muxer=mp3,ogg --enable-filter=aresample,aformat,anull \
|
|
66
|
+
&& make -j"$jobs")
|
|
67
|
+
|
|
68
|
+
case "$target" in
|
|
69
|
+
win32-*) cp "$work/ffmpeg/ffmpeg.exe" "$output/ffmpeg" ;;
|
|
70
|
+
*) cp "$work/ffmpeg/ffmpeg" "$output/ffmpeg" ;;
|
|
71
|
+
esac
|
|
72
|
+
if [ "$(uname -s)" = Darwin ]; then codesign --force --sign - "$output/ffmpeg"; fi
|
|
73
|
+
cp "$work/ffmpeg/COPYING.LGPLv2.1" "$output/FFmpeg.LICENSE"
|
|
74
|
+
cp "$work/lame/COPYING" "$output/LAME.LICENSE"
|
|
75
|
+
cp "$work/opus/COPYING" "$output/Opus.LICENSE"
|
|
76
|
+
cp "$work/ffmpeg/ffbuild/config.log" "$output/config.log"
|