@sema-agent/server 7.80.2 → 7.82.0

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.
Files changed (51) hide show
  1. package/USAGE.md +40 -4
  2. package/dist/approval-ask-audit-store.d.ts +13 -7
  3. package/dist/boot/memory-consolidation.d.ts +38 -0
  4. package/dist/boot/memory-consolidation.js +14 -0
  5. package/dist/boot/reapers.js +1 -2
  6. package/dist/boot/runner-deps.d.ts +11 -0
  7. package/dist/boot/runner-deps.js +15 -0
  8. package/dist/boot/stage-06-runners.js +13 -8
  9. package/dist/config-catalog.js +1 -0
  10. package/dist/config-types.d.ts +26 -0
  11. package/dist/config.js +9 -1
  12. package/dist/http/routes/diagnostics.d.ts +3 -2
  13. package/dist/observability/fail-open.d.ts +8 -0
  14. package/dist/observability/fail-open.js +8 -0
  15. package/dist/observability/metrics.js +1 -0
  16. package/dist/plugins/approval-ask-store-file.d.ts +171 -0
  17. package/dist/plugins/approval-ask-store-file.js +258 -0
  18. package/dist/plugins/approval-ask-store-memory.d.ts +60 -2
  19. package/dist/plugins/approval-ask-store-memory.js +30 -12
  20. package/dist/plugins/checkpoint-store-sql.d.ts +22 -0
  21. package/dist/plugins/checkpoint-store-sql.js +1 -1
  22. package/dist/plugins/file-run-store.d.ts +6 -2
  23. package/dist/plugins/file-run-store.js +2 -1
  24. package/dist/plugins/local-checkpoint-store.d.ts +29 -1
  25. package/dist/plugins/local-checkpoint-store.js +24 -1
  26. package/dist/plugins/posix-shell-fs.d.ts +2 -1
  27. package/dist/plugins/posix-shell-fs.js +4 -1
  28. package/dist/plugins/remote-env-adb.d.ts +5 -1
  29. package/dist/plugins/remote-env-adb.js +3 -0
  30. package/dist/plugins/remote-env-e2b.d.ts +8 -1
  31. package/dist/plugins/remote-env-e2b.js +4 -1
  32. package/dist/plugins/remote-env-host.d.ts +15 -1
  33. package/dist/plugins/remote-env-host.js +37 -1
  34. package/dist/plugins/remote-env-k8s.d.ts +5 -1
  35. package/dist/plugins/remote-env-k8s.js +3 -0
  36. package/dist/plugins/remote-env-local-docker.d.ts +5 -1
  37. package/dist/plugins/remote-env-local-docker.js +3 -0
  38. package/dist/plugins/remote-env-ssh.d.ts +5 -1
  39. package/dist/plugins/remote-env-ssh.js +3 -0
  40. package/dist/plugins/remote-shell.d.ts +78 -1
  41. package/dist/plugins/remote-shell.js +35 -0
  42. package/dist/plugins/store-backend.d.ts +9 -8
  43. package/dist/plugins/store-backend.js +7 -4
  44. package/dist/plugins/store-contracts.d.ts +20 -0
  45. package/dist/plugins/store-contracts.js +2 -0
  46. package/dist/tool-approval.d.ts +11 -6
  47. package/dist/tool-approval.js +0 -2
  48. package/dist/trace/core-keyset-guard.d.ts +6 -1
  49. package/dist/trace/project.d.ts +18 -0
  50. package/dist/trace/project.js +11 -0
  51. package/package.json +2 -2
@@ -554,9 +554,20 @@ export function wiringManifestOperatorEventData(ev) {
554
554
  ...(bool(g.memoryAdmission) !== undefined ? { memoryAdmission: g.memoryAdmission } : {}),
555
555
  ...(bool(g.retention) !== undefined ? { retention: g.retention } : {}),
556
556
  };
557
+ const autoConsolidation = (() => {
558
+ if (m.autoConsolidation === undefined)
559
+ return undefined;
560
+ const seg = sec(m.autoConsolidation);
561
+ if (seg === undefined)
562
+ return dropProjectedFace("wiring_manifest.autoConsolidation is not an object");
563
+ if (bool(seg.onRecommendation) !== true)
564
+ return dropProjectedFace("wiring_manifest.autoConsolidation.onRecommendation is not literal true (core's only present form)");
565
+ return { onRecommendation: true };
566
+ })();
557
567
  return {
558
568
  ...tenant,
559
569
  ...(Object.keys(governance).length > 0 ? { governance } : {}),
570
+ ...(autoConsolidation !== undefined ? { autoConsolidation } : {}),
560
571
  ...(str(m.configFingerprint) !== undefined ? { configFingerprint: m.configFingerprint } : {}),
561
572
  };
562
573
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/server",
3
- "version": "7.80.2",
3
+ "version": "7.82.0",
4
4
  "description": "Sema Server — the server/API implementation layer for Sema, wiring core, registry, model providers, and cloud agent execution. Built on @sema-agent/core.",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",
@@ -54,7 +54,7 @@
54
54
  "build:binary:run-local:darwin-arm64": "bun build --compile --target=bun-darwin-arm64 src/run-local.ts --outfile dist/run-local-darwin-arm64"
55
55
  },
56
56
  "dependencies": {
57
- "@sema-agent/core": "7.20.1",
57
+ "@sema-agent/core": "7.21.1",
58
58
  "@sema-agent/settings-schema": "2.1.0",
59
59
  "e2b": "^2.28.0",
60
60
  "libsodium-wrappers": "^0.8.4",