@inerrata-corporation/errata 2.0.2-dev.247 → 2.0.2-dev.249

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 +3 -36
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -21740,7 +21740,6 @@ var init_oauth = __esm({
21740
21740
 
21741
21741
  // ../../packages/cloud-client/src/client.ts
21742
21742
  import { randomUUID } from "node:crypto";
21743
- import { gzipSync } from "node:zlib";
21744
21743
  function wirePerContext(value) {
21745
21744
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
21746
21745
  const out2 = {};
@@ -21960,7 +21959,7 @@ function provenanceHeaders(provenance) {
21960
21959
  ...provenance.agentModel ? { "x-inerrata-agent-model": provenance.agentModel } : {}
21961
21960
  };
21962
21961
  }
21963
- var asWireCount, INGEST_NODE_CHUNK, COMPRESS_MIN_BYTES, CloudClient, CloudError;
21962
+ var asWireCount, INGEST_NODE_CHUNK, CloudClient, CloudError;
21964
21963
  var init_client = __esm({
21965
21964
  "../../packages/cloud-client/src/client.ts"() {
21966
21965
  "use strict";
@@ -21968,7 +21967,6 @@ var init_client = __esm({
21968
21967
  init_src();
21969
21968
  asWireCount = (n) => typeof n === "number" && Number.isFinite(n) && n >= 0 ? Math.floor(n) : null;
21970
21969
  INGEST_NODE_CHUNK = 8;
21971
- COMPRESS_MIN_BYTES = 4096;
21972
21970
  CloudClient = class {
21973
21971
  baseUrl;
21974
21972
  apiKey;
@@ -21983,8 +21981,6 @@ var init_client = __esm({
21983
21981
  daemonVersion;
21984
21982
  daemonChannel;
21985
21983
  provenance;
21986
- /** Cleared for the process once a server proves it cannot inflate (see `json`). */
21987
- compressRequests;
21988
21984
  constructor(opts) {
21989
21985
  this.baseUrl = opts.baseUrl.replace(/\/+$/, "");
21990
21986
  if (opts.apiKey !== void 0) this.apiKey = opts.apiKey;
@@ -21998,7 +21994,6 @@ var init_client = __esm({
21998
21994
  this.timeoutMs = opts.timeoutMs ?? 15e3;
21999
21995
  this.daemonVersion = opts.daemonVersion;
22000
21996
  this.daemonChannel = opts.daemonChannel;
22001
- this.compressRequests = opts.compressRequests ?? true;
22002
21997
  this.provenance = opts.provenance ?? {
22003
21998
  clientProduct: "inerrata_cloud_client",
22004
21999
  clientKind: "sdk",
@@ -22527,43 +22522,15 @@ var init_client = __esm({
22527
22522
  const token = opts?.bearerToken ?? await this.authToken();
22528
22523
  if (token) headers["authorization"] = `Bearer ${token}`;
22529
22524
  }
22530
- let payload;
22531
- if (body2 !== void 0) {
22532
- const raw2 = JSON.stringify(body2);
22533
- if (this.compressRequests && Buffer.byteLength(raw2) >= COMPRESS_MIN_BYTES) {
22534
- payload = gzipSync(Buffer.from(raw2));
22535
- headers["content-encoding"] = "gzip";
22536
- } else {
22537
- payload = raw2;
22538
- }
22539
- }
22540
22525
  const ac = new AbortController();
22541
22526
  const tid = setTimeout(() => ac.abort(), this.timeoutMs);
22542
22527
  try {
22543
22528
  const res = await this.fetchFn(url2, {
22544
22529
  method,
22545
22530
  headers,
22546
- body: payload,
22531
+ body: body2 === void 0 ? void 0 : JSON.stringify(body2),
22547
22532
  signal: ac.signal
22548
22533
  });
22549
- if (res.status === 400 && headers["content-encoding"] === "gzip") {
22550
- delete headers["content-encoding"];
22551
- const retry = await this.fetchFn(url2, {
22552
- method,
22553
- headers,
22554
- body: JSON.stringify(body2),
22555
- signal: ac.signal
22556
- });
22557
- if (!retry.ok) {
22558
- const text = await retry.text();
22559
- throw new CloudError(
22560
- `${method} ${path2} failed: HTTP ${retry.status} ${text.slice(0, 200)}`,
22561
- retry.status
22562
- );
22563
- }
22564
- this.compressRequests = false;
22565
- return await retry.json();
22566
- }
22567
22534
  if (!res.ok) {
22568
22535
  const text = await res.text();
22569
22536
  throw new CloudError(
@@ -52692,7 +52659,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
52692
52659
  }
52693
52660
 
52694
52661
  // src/engine.ts
52695
- var DAEMON_VERSION = true ? "2.0.2-dev.247" : "2.0.0-alpha.0";
52662
+ var DAEMON_VERSION = true ? "2.0.2-dev.249" : "2.0.0-alpha.0";
52696
52663
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
52697
52664
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
52698
52665
  var GIT_OP_MUTE_MS = 4e3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.2-dev.247",
3
+ "version": "2.0.2-dev.249",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {