@inerrata-corporation/errata 2.0.6-dev.2654 → 2.0.6-dev.2656

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 (2) hide show
  1. package/errata.mjs +8 -2
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -78515,13 +78515,14 @@ function createWatchBreaker(deps) {
78515
78515
  }
78516
78516
 
78517
78517
  // src/engine.ts
78518
- var DAEMON_VERSION = true ? "2.0.6-dev.2654" : "2.0.0-alpha.0";
78518
+ var DAEMON_VERSION = true ? "2.0.6-dev.2656" : "2.0.0-alpha.0";
78519
78519
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
78520
78520
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
78521
78521
  var GIT_OP_MUTE_MS = 4e3;
78522
78522
  var REINDEX_DEBOUNCE_MS = 200;
78523
78523
  var IDENTITY_AUDIT_MAX_BYTES = 16 * 1024 * 1024;
78524
78524
  var TURN_REPLAY_LOOKBACK_MS = 7 * 24 * 60 * 6e4;
78525
+ var INDUCE_DISABLED_RECHECK_MS = 6 * 60 * 6e4;
78525
78526
  var CODEX_SWEEP_LOOKBACK_MS = 10 * 6e4;
78526
78527
  function appendIdentityAudit(path2, record2, line) {
78527
78528
  if (!record2.accepted && record2.score <= 0) return;
@@ -80434,11 +80435,16 @@ B: ${b}`,
80434
80435
  }
80435
80436
  });
80436
80437
  }
80438
+ let induceDisabledUntil = 0;
80437
80439
  const pullSkills = async () => {
80438
- if ((opts.syncConsent ?? consentNow().sync) === true) {
80440
+ if ((opts.syncConsent ?? consentNow().sync) === true && Date.now() >= induceDisabledUntil) {
80439
80441
  for (const req of communityInductionRequests(store)) {
80440
80442
  try {
80441
80443
  const r = await cloud.induceSkill({ members: req.members, context: req.context });
80444
+ if (r.status === "disabled") {
80445
+ induceDisabledUntil = Date.now() + INDUCE_DISABLED_RECHECK_MS;
80446
+ break;
80447
+ }
80442
80448
  if (r.status === "induced" || r.status === "refreshed") {
80443
80449
  console.log(`[errata] skill ${r.status} for community ${req.communityId}: ${r.title ?? r.skillId}`);
80444
80450
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.6-dev.2654",
3
+ "version": "2.0.6-dev.2656",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {