@inerrata-corporation/errata 2.0.0-dev.64 → 2.0.0-dev.66

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 +32 -10
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -42874,7 +42874,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
42874
42874
  }
42875
42875
 
42876
42876
  // src/engine.ts
42877
- var DAEMON_VERSION = true ? "2.0.0-dev.64" : "2.0.0-alpha.0";
42877
+ var DAEMON_VERSION = true ? "2.0.0-dev.66" : "2.0.0-alpha.0";
42878
42878
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
42879
42879
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
42880
42880
  var GIT_OP_MUTE_MS = 4e3;
@@ -43121,13 +43121,18 @@ function createWorkspaceEngine(opts) {
43121
43121
  console.warn("[errata] git reindex failed:", err2);
43122
43122
  }
43123
43123
  }
43124
- recordGitCommit(store, {
43125
- meta: meta3,
43126
- branch: ev.branch,
43127
- changedPaths: diff.changedPaths,
43128
- renames: diff.renames,
43129
- episodeId: episodeId2
43130
- });
43124
+ try {
43125
+ recordGitCommit(store, {
43126
+ meta: meta3,
43127
+ branch: ev.branch,
43128
+ changedPaths: diff.changedPaths,
43129
+ renames: diff.renames,
43130
+ episodeId: episodeId2
43131
+ });
43132
+ } catch (err2) {
43133
+ console.warn("[errata] git commit record failed:", err2);
43134
+ return;
43135
+ }
43131
43136
  console.log(
43132
43137
  `[errata] git: ${ev.kind} ${ev.newSha.slice(0, 7)} by ${meta3.authorName} \u2014 ${diff.changedPaths.length} file(s), ${diff.renames.length} rename(s)`
43133
43138
  );
@@ -43135,7 +43140,9 @@ function createWorkspaceEngine(opts) {
43135
43140
  const gitDir = join21(opts.workspaceRoot, ".git");
43136
43141
  if (existsSync16(gitDir)) {
43137
43142
  stopGit = startGitSensor(gitDir, (ev) => {
43138
- void handleGitEvent(ev);
43143
+ void handleGitEvent(ev).catch((err2) => {
43144
+ console.warn("[errata] git event handler failed:", err2);
43145
+ });
43139
43146
  });
43140
43147
  }
43141
43148
  setImmediate(() => {
@@ -46347,6 +46354,9 @@ async function cmdInit() {
46347
46354
  console.log("Cloud sync + telemetry are OFF in this alpha \u2014 turn them on with:");
46348
46355
  console.log(" errata consent sync on # contribute canonical, scrubbed deltas");
46349
46356
  console.log(" errata consent telemetry on # counts-only product metrics");
46357
+ console.log("To CONTRIBUTE to the shared graph you must ALSO attest this daemon:");
46358
+ console.log(" errata login # console sign-in (OAuth) \u2014 grants graph-write");
46359
+ console.log("Without it the daemon still recalls (read-only); its writes are refused.");
46350
46360
  console.log("Details + kill switch: errata privacy");
46351
46361
  cfg.onboardedAt = Date.now();
46352
46362
  saveConfig(cfg);
@@ -46496,7 +46506,13 @@ async function cmdStatus() {
46496
46506
  );
46497
46507
  console.log(` cloud:`);
46498
46508
  console.log(` url: ${cfg.cloudUrl}`);
46499
- console.log(` logged in: ${hasCloudCredential(cfg) ? `yes (${cfg.email})` : "no"}`);
46509
+ if (!hasCloudCredential(cfg)) {
46510
+ console.log(` logged in: no`);
46511
+ } else if (cfg.accessToken) {
46512
+ console.log(` logged in: yes (${cfg.email}) \u2014 attested daemon, can contribute`);
46513
+ } else {
46514
+ console.log(` logged in: yes (${cfg.email}) \u2014 READ-ONLY key; run \`errata login\` to attest for graph-write`);
46515
+ }
46500
46516
  const active = getActiveAgent(cfg);
46501
46517
  console.log(
46502
46518
  ` active agent: ${active ? `${active.handle} (acting-as; \`errata use --none\` to clear)` : "default identity"}`
@@ -48277,6 +48293,12 @@ shutting down\u2026 (${signal})`);
48277
48293
  };
48278
48294
  process.on("SIGINT", () => void shutdown("SIGINT"));
48279
48295
  process.on("SIGTERM", () => void shutdown("SIGTERM"));
48296
+ process.on("unhandledRejection", (reason) => {
48297
+ console.warn("[errata] unhandled rejection (surviving):", reason);
48298
+ });
48299
+ process.on("uncaughtException", (err2) => {
48300
+ console.warn("[errata] uncaught exception (surviving):", err2);
48301
+ });
48280
48302
  }
48281
48303
  async function cmdProjects() {
48282
48304
  const all = listWorkspaces();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.0-dev.64",
3
+ "version": "2.0.0-dev.66",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {