@inerrata-corporation/errata 2.0.6-dev.2640 → 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 +12 -5
  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.2640" : "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;
@@ -78971,7 +78972,7 @@ function createWorkspaceEngine(opts) {
78971
78972
  );
78972
78973
  return null;
78973
78974
  }) : null;
78974
- const doneRender = prebuilt ? null : markPass(`context-render-inline:${profile.name}`);
78975
+ const doneRender = markPass(`${prebuilt ? "context-render" : "context-render-inline"}:${profile.name}`);
78975
78976
  const pendingUpdate = opts.pendingUpdate?.() ?? null;
78976
78977
  const daemonDistress = opts.daemonDistress?.() ?? null;
78977
78978
  const reviewItems = pickReviewItems();
@@ -79008,7 +79009,7 @@ function createWorkspaceEngine(opts) {
79008
79009
  }
79009
79010
  } : {}
79010
79011
  });
79011
- doneRender?.();
79012
+ doneRender();
79012
79013
  try {
79013
79014
  const seq = store.currentIngestSeq();
79014
79015
  const stamped = recordRenderLedger(store, ledger, seq, Date.now());
@@ -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
  }
@@ -85575,7 +85581,8 @@ async function startMultiDaemon(opts = {}) {
85575
85581
  if (opts2.affinity === "note") sessionAffinity.note(body2["session_id"], owner.root);
85576
85582
  owner.lastHookAt = Date.now();
85577
85583
  const sub = c.req.path;
85578
- const done = markPass(`${sub}:${owner.entry.name}`);
85584
+ const tag = (v) => typeof v === "string" ? ` ${v.slice(0, 40)}` : "";
85585
+ const done = markPass(`${sub}:${owner.entry.name}${tag(body2["hook_event_name"])}${tag(body2["tool_name"])}`);
85579
85586
  try {
85580
85587
  return await owner.webApp.fetch(
85581
85588
  new Request(`http://local${sub}`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.6-dev.2640",
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": {