probatio 0.0.3 → 0.0.4
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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/mutate/suites.js +3 -1
- package/package.json +2 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Aron Amos
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Probatio
|
|
2
2
|
|
|
3
|
-
Probatio (Latin: a testing, a proof) is a free
|
|
3
|
+
Probatio (Latin: a testing, a proof) is a free testing toolkit under the MIT license, built for AI agents
|
|
4
4
|
(Claude, Grok, ChatGPT, others), working alone or as swarms. Every claim it makes is checkable;
|
|
5
5
|
it remembers what was fixed so agents with small context do not redo or undo work; and it finds
|
|
6
6
|
the bugs a test suite would miss instead of asking anyone to read more tests.
|
package/dist/mutate/suites.js
CHANGED
|
@@ -357,8 +357,10 @@ function escapeRegExp(value) {
|
|
|
357
357
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
358
358
|
}
|
|
359
359
|
function runShell(pkg, command, timeoutMs, env) {
|
|
360
|
+
// A command can be pytest. Baseline writes a .pyc, and a same-size patch in that same second leaves it valid.
|
|
361
|
+
clearBytecode(pkg);
|
|
360
362
|
const child = /\b(java|javac|mvn)\b/.test(command) ? javaEnv(env) : env;
|
|
361
|
-
return spawnCollected("sh", ["-c", command], pkg, child, timeoutMs);
|
|
363
|
+
return spawnCollected("sh", ["-c", command], pkg, { ...child, PYTHONDONTWRITEBYTECODE: "1" }, timeoutMs);
|
|
362
364
|
}
|
|
363
365
|
async function runNode(pkg, files, pattern, timeoutMs, env, hooks) {
|
|
364
366
|
const tsx = path.join(pkg, "node_modules", ".bin", "tsx");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "probatio",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Mutation runner for AI agents. Scores a test suite by the bugs it catches.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"url": "git+https://github.com/IronAdamant/Probatio.git"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://github.com/IronAdamant/Probatio#readme",
|
|
17
|
+
"license": "MIT",
|
|
17
18
|
"bugs": {
|
|
18
19
|
"url": "https://github.com/IronAdamant/Probatio/issues"
|
|
19
20
|
},
|