@inerrata-corporation/errata 2.0.6-dev.1989 → 2.0.6-dev.2029
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 +18 -3
- package/errata.mjs +705 -434
- package/package.json +1 -1
- package/pass-worker.mjs +18 -3
package/package.json
CHANGED
package/pass-worker.mjs
CHANGED
|
@@ -15140,7 +15140,7 @@ var init_symbol_intent = __esm({
|
|
|
15140
15140
|
});
|
|
15141
15141
|
|
|
15142
15142
|
// ../../packages/shared/src/wire.ts
|
|
15143
|
-
var CLOUD_NODE_LABELS, CLOUD_WRITABLE_NODE_LABELS, PROJECT_ONLY_NODE_LABELS, PROJECT_ONLY_NODE_LABEL_SET, PROJECT_ONLY_EDGE_TYPES, PROJECT_ONLY_EDGE_TYPE_SET, CLOUD_WRITABLE_NODE_LABEL_SET, CLOUD_EDGE_TYPES, INGEST_SOURCES, INGEST_EXTRACTION_SOURCES, CastaliaIngestNodeSchema, RouteContextCountWireSchema, CastaliaIngestEdgeSchema, SymbolSummarySidecarSchema, CastaliaIngestPayloadSchema;
|
|
15143
|
+
var CLOUD_NODE_LABELS, CLOUD_WRITABLE_NODE_LABELS, PROJECT_ONLY_NODE_LABELS, PROJECT_ONLY_NODE_LABEL_SET, PROJECT_ONLY_EDGE_TYPES, PROJECT_ONLY_EDGE_TYPE_SET, CLOUD_WRITABLE_NODE_LABEL_SET, CLOUD_EDGE_TYPES, INGEST_SOURCES, INGEST_EXTRACTION_SOURCES, CastaliaIngestNodeSchema, RouteContextCountWireSchema, ANCHOR_COMMIT_SHA_RE, ANCHOR_BODY_HASH_RE, CastaliaIngestEdgeSchema, SymbolSummarySidecarSchema, CastaliaIngestPayloadSchema;
|
|
15144
15144
|
var init_wire = __esm({
|
|
15145
15145
|
"../../packages/shared/src/wire.ts"() {
|
|
15146
15146
|
"use strict";
|
|
@@ -15241,6 +15241,8 @@ var init_wire = __esm({
|
|
|
15241
15241
|
independent: external_exports.number().int().min(0).optional(),
|
|
15242
15242
|
inferredIndependent: external_exports.number().int().min(0).optional()
|
|
15243
15243
|
});
|
|
15244
|
+
ANCHOR_COMMIT_SHA_RE = /^[0-9a-f]{7,40}$/;
|
|
15245
|
+
ANCHOR_BODY_HASH_RE = /^[0-9a-f]{8,64}$/;
|
|
15244
15246
|
CastaliaIngestEdgeSchema = external_exports.object({
|
|
15245
15247
|
fromCanonicalId: external_exports.string().min(6).max(160),
|
|
15246
15248
|
toCanonicalId: external_exports.string().min(6).max(160),
|
|
@@ -15259,8 +15261,8 @@ var init_wire = __esm({
|
|
|
15259
15261
|
* (reanchor) compares the hash with its local symbol's `bodyHash` to
|
|
15260
15262
|
* classify the anchor current / pre-change; absent ⇒ the pre-versioning
|
|
15261
15263
|
* contract, unverified. Only meaningful on `ANCHORED_AT`. */
|
|
15262
|
-
observedAtCommit: external_exports.string().regex(
|
|
15263
|
-
symbolContentHash: external_exports.string().regex(
|
|
15264
|
+
observedAtCommit: external_exports.string().regex(ANCHOR_COMMIT_SHA_RE).optional(),
|
|
15265
|
+
symbolContentHash: external_exports.string().regex(ANCHOR_BODY_HASH_RE).optional()
|
|
15264
15266
|
}).optional()
|
|
15265
15267
|
});
|
|
15266
15268
|
SymbolSummarySidecarSchema = external_exports.record(
|
|
@@ -24660,6 +24662,11 @@ var SqliteGraphStore = class {
|
|
|
24660
24662
|
countByLabel: this.db.prepare(
|
|
24661
24663
|
"SELECT COUNT(*) AS n FROM nodes WHERE label = ? AND valid_to IS NULL"
|
|
24662
24664
|
),
|
|
24665
|
+
// Identity twin of findByLabel — same live-row semantics, two attrs read in
|
|
24666
|
+
// SQL, no attrs JSON.parse or embedding decode (PJ-anchor-reach).
|
|
24667
|
+
identitiesByLabel: this.db.prepare(
|
|
24668
|
+
"SELECT id, json_extract(attrs_json, '$.relPath') AS relPath, json_extract(attrs_json, '$.qname') AS qname FROM nodes WHERE label = ? AND valid_to IS NULL"
|
|
24669
|
+
),
|
|
24663
24670
|
// ALL versions of a label — incl frozen/closed (valid_to set). Used by the
|
|
24664
24671
|
// clean-reindex purge so a true wipe removes history too, not just live rows.
|
|
24665
24672
|
findByLabelAll: this.db.prepare("SELECT * FROM nodes WHERE label = ?"),
|
|
@@ -24960,6 +24967,14 @@ var SqliteGraphStore = class {
|
|
|
24960
24967
|
countNodesByLabel(label) {
|
|
24961
24968
|
return Number(this.stmts.countByLabel.get(label).n);
|
|
24962
24969
|
}
|
|
24970
|
+
findNodeIdentitiesByLabel(label) {
|
|
24971
|
+
const rows = this.stmts.identitiesByLabel.all(label);
|
|
24972
|
+
return rows.map((r) => ({
|
|
24973
|
+
id: r.id,
|
|
24974
|
+
relPath: typeof r.relPath === "string" ? r.relPath : null,
|
|
24975
|
+
qname: typeof r.qname === "string" ? r.qname : null
|
|
24976
|
+
}));
|
|
24977
|
+
}
|
|
24963
24978
|
findAllVersionsByLabel(label) {
|
|
24964
24979
|
const rows = this.stmts.findByLabelAll.all(label);
|
|
24965
24980
|
return rows.map(rowToNode);
|