@shomra/agent 0.3.11 → 0.3.12
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/package.json +1 -1
- package/shomra.mjs +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shomra/agent",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"description": "Shomra — adversarial assurance for AI agents, as a local-first CLI. Blocks dangerous tool-calls before they run, attacks your own guardrails to prove they hold, and gates AI artifacts in your editor and CI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/shomra.mjs
CHANGED
|
@@ -450,6 +450,19 @@ async function sendReport(cfg, assets, flags, extra = {}) {
|
|
|
450
450
|
capped,
|
|
451
451
|
// Catalogues, as counts. See agent-artifacts.mjs.
|
|
452
452
|
available,
|
|
453
|
+
}, {
|
|
454
|
+
// ⚠ A LONGER BUDGET THAN EVERY OTHER CALL, and it is not a workaround.
|
|
455
|
+
// This is the only request that carries a machine's WHOLE estate — every
|
|
456
|
+
// asset and every artifact, each of which the backend analyses and writes.
|
|
457
|
+
// A well-stocked laptop sends a couple of hundred rows, and the default 30s
|
|
458
|
+
// is sized for a single `check`, not for that.
|
|
459
|
+
//
|
|
460
|
+
// The failure it prevents is the expensive one: the client gives up while
|
|
461
|
+
// the server is still writing, so the developer sees a timeout, concludes
|
|
462
|
+
// reporting is broken and stops running it — and the machine goes quiet in
|
|
463
|
+
// the estate, which is indistinguishable from an uninstalled agent.
|
|
464
|
+
// SHOMRA_API_TIMEOUT_MS still overrides.
|
|
465
|
+
timeoutMs: clampInt(process.env.SHOMRA_API_TIMEOUT_MS, 180000, 1000, 600000),
|
|
453
466
|
});
|
|
454
467
|
console.log(
|
|
455
468
|
green('done') +
|