@inerrata-corporation/errata 2.0.22-dev.4054 → 2.0.22-dev.4071
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.
- package/consolidate-worker.mjs +10 -2
- package/errata.mjs +374 -164
- package/generalize-worker.mjs +3 -1
- package/package.json +1 -1
- package/pass-worker.mjs +117 -33
- package/resources/context-plugin/.codex-plugin/plugin.json +1 -1
- package/resources/context-plugin/SHA256SUMS +1 -1
package/consolidate-worker.mjs
CHANGED
|
@@ -16814,7 +16814,7 @@ function compileNodeSelect(q) {
|
|
|
16814
16814
|
}
|
|
16815
16815
|
const orderParams = !q.orderBy && q.labels.length > 1 ? [...q.labels] : [];
|
|
16816
16816
|
const limit = q.limit !== void 0 ? ` LIMIT ${Math.max(0, Math.floor(q.limit))}` : "";
|
|
16817
|
-
const sql = `SELECT id, label, description, created_at, last_updated_at, page_rank, cumulative_hits, extraction_confidence, extraction_source, community, created_at_seq, last_reinforced_at_seq, valid_to, ${EMBEDDING_DIM_SQL} AS embedding_dim${q.withEmbedding ? ", embedding_blob, embedding_json" : ""}${attrCols} FROM nodes WHERE ${where} ORDER BY ${order}${limit}`;
|
|
16817
|
+
const sql = `SELECT id, label, description, created_at, last_updated_at, page_rank, cumulative_hits, extraction_confidence, extraction_source, community, created_at_seq, last_reinforced_at_seq, valid_to, logical_id, version, ${EMBEDDING_DIM_SQL} AS embedding_dim${q.withEmbedding ? ", embedding_blob, embedding_json" : ""}${attrCols} FROM nodes WHERE ${where} ORDER BY ${order}${limit}`;
|
|
16818
16818
|
return { sql, params: [...params, ...orderParams] };
|
|
16819
16819
|
}
|
|
16820
16820
|
function decodeAttr(value, type) {
|
|
@@ -16855,6 +16855,8 @@ function decodeSelectedRow(r, attrs, decodeVector) {
|
|
|
16855
16855
|
...r["created_at_seq"] != null ? { createdAtSeq: r["created_at_seq"] } : {},
|
|
16856
16856
|
...r["last_reinforced_at_seq"] != null ? { lastReinforcedAtSeq: r["last_reinforced_at_seq"] } : {},
|
|
16857
16857
|
validTo: r["valid_to"] ?? null,
|
|
16858
|
+
logicalId: r["logical_id"] ?? r["id"],
|
|
16859
|
+
version: Number(r["version"] ?? 1),
|
|
16858
16860
|
embeddingDim: Number(r["embedding_dim"] ?? 0),
|
|
16859
16861
|
...decodeVector ? { embedding: decodeVector(r["embedding_blob"], r["embedding_json"] ?? "[]") } : {},
|
|
16860
16862
|
attrs: out
|
|
@@ -18308,6 +18310,7 @@ init_src();
|
|
|
18308
18310
|
// ../../packages/local-graph/src/design-problem.ts
|
|
18309
18311
|
init_src();
|
|
18310
18312
|
var RECURRENCE_DEBOUNCE_MS = 60 * 60 * 1e3;
|
|
18313
|
+
var EXPOSURE_LOG_KEYS = ["exposureLog", "exposureLogSince", "exposureLogStart", "exposureTrimmed", "exposureFirst"];
|
|
18311
18314
|
|
|
18312
18315
|
// ../../packages/local-graph/src/intent.ts
|
|
18313
18316
|
init_src();
|
|
@@ -18368,7 +18371,7 @@ function percolate(l1, l2, opts) {
|
|
|
18368
18371
|
validFrom: opts.ts,
|
|
18369
18372
|
validTo: null,
|
|
18370
18373
|
attrs: {
|
|
18371
|
-
...n.attrs,
|
|
18374
|
+
...withoutExposureLog(n.attrs),
|
|
18372
18375
|
abstractionLevel: ABSTRACTION_LEVEL.CONCRETE,
|
|
18373
18376
|
observedInProjects: [ws]
|
|
18374
18377
|
}
|
|
@@ -18427,6 +18430,11 @@ function percolate(l1, l2, opts) {
|
|
|
18427
18430
|
result.touched = [...touched];
|
|
18428
18431
|
return result;
|
|
18429
18432
|
}
|
|
18433
|
+
function withoutExposureLog(attrs) {
|
|
18434
|
+
const out = { ...attrs };
|
|
18435
|
+
for (const k of EXPOSURE_LOG_KEYS) delete out[k];
|
|
18436
|
+
return out;
|
|
18437
|
+
}
|
|
18430
18438
|
|
|
18431
18439
|
// ../../packages/local-graph/src/abstraction.ts
|
|
18432
18440
|
init_src();
|