saktum 0.5.0 → 0.5.1
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 +1 -1
- package/package.json +1 -1
- package/saktum.mjs +16 -5
package/README.md
CHANGED
|
@@ -155,7 +155,7 @@ servers not on your allowlist, and the weakest grades. Configured secrets are ne
|
|
|
155
155
|
|
|
156
156
|
```yaml
|
|
157
157
|
- uses: actions/checkout@v4
|
|
158
|
-
- uses: soodhere/saktum-check@v0.5.
|
|
158
|
+
- uses: soodhere/saktum-check@v0.5.1
|
|
159
159
|
with:
|
|
160
160
|
target: "-- node build/index.js" # or an https URL
|
|
161
161
|
args: "--active --tests saktum.tests.yaml" # optional; --active only for your own server
|
package/package.json
CHANGED
package/saktum.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Saktum Check 0.5.
|
|
2
|
+
// Saktum Check 0.5.1 (private beta). Licensed Apache-2.0; bundled dependencies keep their own licences.
|
|
3
3
|
import { createRequire as __saktumCreateRequire } from "node:module";
|
|
4
4
|
const require = __saktumCreateRequire(import.meta.url);
|
|
5
5
|
var __create = Object.create;
|
|
@@ -33511,7 +33511,7 @@ var init_dist3 = __esm({
|
|
|
33511
33511
|
init_stdio2();
|
|
33512
33512
|
init_streamableHttp();
|
|
33513
33513
|
init_types2();
|
|
33514
|
-
USER_AGENT = "saktum-check/0.5.
|
|
33514
|
+
USER_AGENT = "saktum-check/0.5.1 (+https://saktum.dev/check)";
|
|
33515
33515
|
LIMITS = { requestTimeoutMs: 1e4, connectTimeoutMs: 6e4, maxResponseChars: 5e6 };
|
|
33516
33516
|
LimitError = class extends Error {
|
|
33517
33517
|
};
|
|
@@ -33549,7 +33549,7 @@ var init_dist3 = __esm({
|
|
|
33549
33549
|
jsonrpc: "2.0",
|
|
33550
33550
|
id: 1,
|
|
33551
33551
|
method: "initialize",
|
|
33552
|
-
params: { protocolVersion: "2025-06-18", capabilities: {}, clientInfo: { name: "saktum-trust-check-probe", version: "0.5.
|
|
33552
|
+
params: { protocolVersion: "2025-06-18", capabilities: {}, clientInfo: { name: "saktum-trust-check-probe", version: "0.5.1" } }
|
|
33553
33553
|
});
|
|
33554
33554
|
}
|
|
33555
33555
|
});
|
|
@@ -34862,7 +34862,7 @@ var init_engine = __esm({
|
|
|
34862
34862
|
init_runner();
|
|
34863
34863
|
init_safe();
|
|
34864
34864
|
init_scoring();
|
|
34865
|
-
ENGINE_VERSION = "0.5.
|
|
34865
|
+
ENGINE_VERSION = "0.5.1";
|
|
34866
34866
|
UNKNOWN_TOOL = "saktum_trust_check_no_such_tool";
|
|
34867
34867
|
INVALID_TOKEN = "saktum-check-deliberately-invalid-token";
|
|
34868
34868
|
baseOf = (pack, check) => ({
|
|
@@ -36206,7 +36206,18 @@ async function runProxy(o) {
|
|
|
36206
36206
|
}
|
|
36207
36207
|
child.stdin.write(line + "\n");
|
|
36208
36208
|
});
|
|
36209
|
-
process.stdin.on("end", () =>
|
|
36209
|
+
process.stdin.on("end", () => {
|
|
36210
|
+
child.stdin.end();
|
|
36211
|
+
setTimeout(() => {
|
|
36212
|
+
if (child.exitCode === null)
|
|
36213
|
+
child.kill("SIGTERM");
|
|
36214
|
+
}, 2e3).unref();
|
|
36215
|
+
});
|
|
36216
|
+
for (const sig of ["SIGINT", "SIGTERM"])
|
|
36217
|
+
process.once(sig, () => {
|
|
36218
|
+
if (child.exitCode === null)
|
|
36219
|
+
child.kill("SIGTERM");
|
|
36220
|
+
});
|
|
36210
36221
|
createInterface({ input: child.stdout }).on("line", (line) => {
|
|
36211
36222
|
let msg;
|
|
36212
36223
|
try {
|