@altairalabs/promptarena 1.5.3 → 1.5.6

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 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,9 +31,9 @@ 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/PromptKit') {
34
+ export function getDownloadUrl(version, platform, arch, repo = 'AltairaLabs/promptarena') {
35
35
  const archiveExt = platform === 'Windows' ? 'zip' : 'tar.gz';
36
- const archiveName = `PromptKit_${version}_${platform}_${arch}.${archiveExt}`;
36
+ const archiveName = `promptarena_${version}_${platform}_${arch}.${archiveExt}`;
37
37
  return `https://github.com/${repo}/releases/download/v${version}/${archiveName}`;
38
38
  }
39
39
 
@@ -79,42 +79,42 @@ describe('installer', () => {
79
79
  it('should generate correct URL for Darwin x86_64', () => {
80
80
  const url = getDownloadUrl('1.0.0', 'Darwin', 'x86_64');
81
81
  expect(url).toBe(
82
- 'https://github.com/AltairaLabs/PromptKit/releases/download/v1.0.0/PromptKit_1.0.0_Darwin_x86_64.tar.gz'
82
+ 'https://github.com/AltairaLabs/PromptKit/releases/download/v1.0.0/promptarena_1.0.0_Darwin_x86_64.tar.gz'
83
83
  );
84
84
  });
85
85
 
86
86
  it('should generate correct URL for Darwin arm64', () => {
87
87
  const url = getDownloadUrl('1.0.0', 'Darwin', 'arm64');
88
88
  expect(url).toBe(
89
- 'https://github.com/AltairaLabs/PromptKit/releases/download/v1.0.0/PromptKit_1.0.0_Darwin_arm64.tar.gz'
89
+ 'https://github.com/AltairaLabs/PromptKit/releases/download/v1.0.0/promptarena_1.0.0_Darwin_arm64.tar.gz'
90
90
  );
91
91
  });
92
92
 
93
93
  it('should generate correct URL for Linux x86_64', () => {
94
94
  const url = getDownloadUrl('2.1.0', 'Linux', 'x86_64');
95
95
  expect(url).toBe(
96
- 'https://github.com/AltairaLabs/PromptKit/releases/download/v2.1.0/PromptKit_2.1.0_Linux_x86_64.tar.gz'
96
+ 'https://github.com/AltairaLabs/PromptKit/releases/download/v2.1.0/promptarena_2.1.0_Linux_x86_64.tar.gz'
97
97
  );
98
98
  });
99
99
 
100
100
  it('should generate correct URL for Windows (zip extension)', () => {
101
101
  const url = getDownloadUrl('1.0.0', 'Windows', 'x86_64');
102
102
  expect(url).toBe(
103
- 'https://github.com/AltairaLabs/PromptKit/releases/download/v1.0.0/PromptKit_1.0.0_Windows_x86_64.zip'
103
+ 'https://github.com/AltairaLabs/PromptKit/releases/download/v1.0.0/promptarena_1.0.0_Windows_x86_64.zip'
104
104
  );
105
105
  });
106
106
 
107
107
  it('should use custom repository when provided', () => {
108
108
  const url = getDownloadUrl('1.0.0', 'Darwin', 'x86_64', 'MyOrg/MyRepo');
109
109
  expect(url).toBe(
110
- 'https://github.com/MyOrg/MyRepo/releases/download/v1.0.0/PromptKit_1.0.0_Darwin_x86_64.tar.gz'
110
+ 'https://github.com/MyOrg/MyRepo/releases/download/v1.0.0/promptarena_1.0.0_Darwin_x86_64.tar.gz'
111
111
  );
112
112
  });
113
113
 
114
114
  it('should handle prerelease versions', () => {
115
115
  const url = getDownloadUrl('1.0.0-beta.1', 'Linux', 'arm64');
116
116
  expect(url).toBe(
117
- 'https://github.com/AltairaLabs/PromptKit/releases/download/v1.0.0-beta.1/PromptKit_1.0.0-beta.1_Linux_arm64.tar.gz'
117
+ 'https://github.com/AltairaLabs/PromptKit/releases/download/v1.0.0-beta.1/promptarena_1.0.0-beta.1_Linux_arm64.tar.gz'
118
118
  );
119
119
  });
120
120
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altairalabs/promptarena",
3
- "version": "1.5.3",
3
+ "version": "1.5.6",
4
4
  "type": "module",
5
5
  "description": "PromptKit Arena - Multi-turn conversation simulation and testing tool for LLM applications",
6
6
  "bin": {