@altairalabs/promptarena 1.5.6 → 1.5.8
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 +7 -7
- package/lib/installer.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ promptarena chat
|
|
|
65
65
|
promptarena chat --voice
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
See the [Voice Console guide](https://
|
|
68
|
+
See the [Voice Console guide](https://promptarena.altairalabs.ai/arena/how-to/voice/voice-console/) for setup details.
|
|
69
69
|
|
|
70
70
|
## What is PromptKit Arena?
|
|
71
71
|
|
|
@@ -95,8 +95,8 @@ export OPENAI_API_KEY=your-key-here
|
|
|
95
95
|
# Run your first test
|
|
96
96
|
npx @altairalabs/promptarena run
|
|
97
97
|
|
|
98
|
-
# View the
|
|
99
|
-
open out/
|
|
98
|
+
# View the Markdown report
|
|
99
|
+
open out/results.md
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
That's it! The template includes pre-configured scenarios, assertions, and examples to get you started.
|
|
@@ -122,7 +122,7 @@ npx @altairalabs/promptarena init
|
|
|
122
122
|
- 📊 **Conversation Assertions** - Check patterns across entire conversations
|
|
123
123
|
- 🎭 **Template & Persona System** - Dynamic prompts with variables and reusable personas
|
|
124
124
|
- 🛡️ **Guardrail Testing** - Ensure tools and responses follow safety constraints
|
|
125
|
-
- 📈 **
|
|
125
|
+
- 📈 **Reports & Web UI** - Markdown reports for archiving, `promptarena serve` for interactive review with cost tracking and metrics
|
|
126
126
|
|
|
127
127
|
## Learn More
|
|
128
128
|
|
|
@@ -131,18 +131,18 @@ npx @altairalabs/promptarena init
|
|
|
131
131
|
- **Turn-Level**: `content_includes`, `content_matches`, `json_schema`, `jsonpath`, `llm_judge`, `tone`, `length`
|
|
132
132
|
- **Conversation-Level**: `llm_judge_conversation`, `tools_not_called_with_args`, `max_tool_calls`
|
|
133
133
|
|
|
134
|
-
See the [Assertions Reference](https://
|
|
134
|
+
See the [Assertions Reference](https://promptarena.altairalabs.ai/arena/reference/assertions/) for examples and best practices.
|
|
135
135
|
|
|
136
136
|
### Documentation
|
|
137
137
|
|
|
138
138
|
- **[Full Documentation](https://promptkit.altairalabs.ai/)** - Comprehensive guides and tutorials
|
|
139
|
-
- **[Configuration Reference](https://
|
|
139
|
+
- **[Configuration Reference](https://promptarena.altairalabs.ai/arena/reference/config-schema/)** - Complete schema documentation
|
|
140
140
|
- **[Examples](https://github.com/AltairaLabs/PromptKit/tree/main/examples)** - Working examples:
|
|
141
141
|
- [Assertions Test](https://github.com/AltairaLabs/PromptKit/tree/main/examples/assertions-test) - Turn and conversation-level assertions
|
|
142
142
|
- [Customer Support](https://github.com/AltairaLabs/PromptKit/tree/main/examples/customer-support) - Self-play with personas
|
|
143
143
|
- [Variables Demo](https://github.com/AltairaLabs/PromptKit/tree/main/examples/variables-demo) - Template rendering
|
|
144
144
|
- [LLM Judge](https://github.com/AltairaLabs/PromptKit/tree/main/examples/llm-judge) - AI-powered evaluation
|
|
145
|
-
- **[Multi-Turn Tutorial](https://
|
|
145
|
+
- **[Multi-Turn Tutorial](https://promptarena.altairalabs.ai/arena/tutorials/03-multi-turn/)** - Self-play patterns
|
|
146
146
|
|
|
147
147
|
## License
|
|
148
148
|
|
package/lib/installer.js
CHANGED
|
@@ -77,9 +77,11 @@ export function extractBinary(archivePath, platform, binaryName, destDir) {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
// Make executable on Unix-like systems
|
|
80
|
+
// Make executable on Unix-like systems. 0o755 = owner rwx, group/other r-x
|
|
81
|
+
// (NOT world-writable) — the minimal mode that lets every user run the CLI
|
|
82
|
+
// while keeping write access owner-only. The binary must be executable to run.
|
|
81
83
|
if (platform !== 'Windows') {
|
|
82
|
-
fs.chmodSync(destPath, 0o755);
|
|
84
|
+
fs.chmodSync(destPath, 0o755); // NOSONAR S2612: 0o755 is not world-writable; required to run the CLI
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
return destPath;
|