@altairalabs/promptarena 1.5.2 → 1.5.5
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 +33 -0
- package/lib/installer.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,6 +34,39 @@ npm install --save-dev @altairalabs/promptarena
|
|
|
34
34
|
}
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
> **Zero dependencies.** The package ships a single, statically-linked,
|
|
38
|
+
> pure-Go binary for your platform. `run`, `view`, `chat` (text), reports — all
|
|
39
|
+
> work straight from `npm install` with **no native libraries to install**.
|
|
40
|
+
|
|
41
|
+
## Voice mode (optional)
|
|
42
|
+
|
|
43
|
+
Hands-free voice (`promptarena chat --voice`) is the **only** feature with an
|
|
44
|
+
extra requirement: it needs **PortAudio** installed on your machine for
|
|
45
|
+
microphone capture. The binary loads PortAudio **at runtime, on demand** — so:
|
|
46
|
+
|
|
47
|
+
- You do **not** need PortAudio to install or to use any non-voice feature.
|
|
48
|
+
- If you run `chat --voice` without PortAudio, **only voice** is unavailable —
|
|
49
|
+
you get a clear message with install instructions, and everything else keeps
|
|
50
|
+
working.
|
|
51
|
+
|
|
52
|
+
Install PortAudio only if you want voice:
|
|
53
|
+
|
|
54
|
+
| OS | Install |
|
|
55
|
+
|----|---------|
|
|
56
|
+
| macOS | `brew install portaudio` |
|
|
57
|
+
| Debian/Ubuntu | `sudo apt install libportaudio2` |
|
|
58
|
+
| Windows | place `portaudio.dll` on your `PATH` |
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Text chat — no PortAudio needed
|
|
62
|
+
promptarena chat
|
|
63
|
+
|
|
64
|
+
# Voice chat — needs PortAudio installed (see table above)
|
|
65
|
+
promptarena chat --voice
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
See the [Voice Console guide](https://promptkit.altairalabs.ai/arena/how-to/voice-console/) for setup details.
|
|
69
|
+
|
|
37
70
|
## What is PromptKit Arena?
|
|
38
71
|
|
|
39
72
|
PromptKit Arena is a comprehensive testing framework for LLM-based applications. It allows you to:
|
package/lib/installer.js
CHANGED
|
@@ -31,7 +31,7 @@ export function getPlatformInfo(platform = process.platform, arch = process.arch
|
|
|
31
31
|
return { platform: mappedPlatform, arch: mappedArch };
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
export function getDownloadUrl(version, platform, arch, repo = 'AltairaLabs/
|
|
34
|
+
export function getDownloadUrl(version, platform, arch, repo = 'AltairaLabs/promptarena') {
|
|
35
35
|
const archiveExt = platform === 'Windows' ? 'zip' : 'tar.gz';
|
|
36
36
|
const archiveName = `PromptKit_${version}_${platform}_${arch}.${archiveExt}`;
|
|
37
37
|
return `https://github.com/${repo}/releases/download/v${version}/${archiveName}`;
|