@inerrata-corporation/errata 2.0.6-dev.1989 → 2.0.6-dev.2008
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 +5 -3
- package/errata.mjs +20 -26
- package/package.json +1 -1
- package/pass-worker.mjs +5 -3
package/consolidate-worker.mjs
CHANGED
|
@@ -15267,7 +15267,7 @@ var init_symbol_intent = __esm({
|
|
|
15267
15267
|
});
|
|
15268
15268
|
|
|
15269
15269
|
// ../../packages/shared/src/wire.ts
|
|
15270
|
-
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;
|
|
15270
|
+
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;
|
|
15271
15271
|
var init_wire = __esm({
|
|
15272
15272
|
"../../packages/shared/src/wire.ts"() {
|
|
15273
15273
|
"use strict";
|
|
@@ -15368,6 +15368,8 @@ var init_wire = __esm({
|
|
|
15368
15368
|
independent: external_exports.number().int().min(0).optional(),
|
|
15369
15369
|
inferredIndependent: external_exports.number().int().min(0).optional()
|
|
15370
15370
|
});
|
|
15371
|
+
ANCHOR_COMMIT_SHA_RE = /^[0-9a-f]{7,40}$/;
|
|
15372
|
+
ANCHOR_BODY_HASH_RE = /^[0-9a-f]{8,64}$/;
|
|
15371
15373
|
CastaliaIngestEdgeSchema = external_exports.object({
|
|
15372
15374
|
fromCanonicalId: external_exports.string().min(6).max(160),
|
|
15373
15375
|
toCanonicalId: external_exports.string().min(6).max(160),
|
|
@@ -15386,8 +15388,8 @@ var init_wire = __esm({
|
|
|
15386
15388
|
* (reanchor) compares the hash with its local symbol's `bodyHash` to
|
|
15387
15389
|
* classify the anchor current / pre-change; absent ⇒ the pre-versioning
|
|
15388
15390
|
* contract, unverified. Only meaningful on `ANCHORED_AT`. */
|
|
15389
|
-
observedAtCommit: external_exports.string().regex(
|
|
15390
|
-
symbolContentHash: external_exports.string().regex(
|
|
15391
|
+
observedAtCommit: external_exports.string().regex(ANCHOR_COMMIT_SHA_RE).optional(),
|
|
15392
|
+
symbolContentHash: external_exports.string().regex(ANCHOR_BODY_HASH_RE).optional()
|
|
15391
15393
|
}).optional()
|
|
15392
15394
|
});
|
|
15393
15395
|
SymbolSummarySidecarSchema = external_exports.record(
|
package/errata.mjs
CHANGED
|
@@ -15711,6 +15711,15 @@ function provenanceBand(source) {
|
|
|
15711
15711
|
function isSeedProvenance(source) {
|
|
15712
15712
|
return provenanceBand(source) === "seed";
|
|
15713
15713
|
}
|
|
15714
|
+
function anchorVersionAttrs(attrs) {
|
|
15715
|
+
if (!attrs) return {};
|
|
15716
|
+
const commit = attrs["observedAtCommit"];
|
|
15717
|
+
const hash2 = attrs["symbolContentHash"];
|
|
15718
|
+
return {
|
|
15719
|
+
...typeof commit === "string" && ANCHOR_COMMIT_SHA_RE.test(commit) ? { observedAtCommit: commit } : {},
|
|
15720
|
+
...typeof hash2 === "string" && ANCHOR_BODY_HASH_RE.test(hash2) ? { symbolContentHash: hash2 } : {}
|
|
15721
|
+
};
|
|
15722
|
+
}
|
|
15714
15723
|
function validateCastaliaPayload(p) {
|
|
15715
15724
|
const errors = [];
|
|
15716
15725
|
const labelByCid = /* @__PURE__ */ new Map();
|
|
@@ -15740,7 +15749,7 @@ function summarizeIngestResult(r) {
|
|
|
15740
15749
|
...r.patternReconciliation ? { patternReconciliation: r.patternReconciliation } : {}
|
|
15741
15750
|
};
|
|
15742
15751
|
}
|
|
15743
|
-
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, QUARANTINE_EXTRACTION_SOURCE_PREFIX, MAX_NODES_PER_PAYLOAD, MAX_EDGES_PER_PAYLOAD, CastaliaIngestNodeSchema, RouteContextCountWireSchema, CastaliaIngestEdgeSchema, SymbolSummarySidecarSchema, CastaliaIngestPayloadSchema;
|
|
15752
|
+
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, QUARANTINE_EXTRACTION_SOURCE_PREFIX, MAX_NODES_PER_PAYLOAD, MAX_EDGES_PER_PAYLOAD, CastaliaIngestNodeSchema, RouteContextCountWireSchema, ANCHOR_COMMIT_SHA_RE, ANCHOR_BODY_HASH_RE, CastaliaIngestEdgeSchema, SymbolSummarySidecarSchema, CastaliaIngestPayloadSchema;
|
|
15744
15753
|
var init_wire = __esm({
|
|
15745
15754
|
"../../packages/shared/src/wire.ts"() {
|
|
15746
15755
|
"use strict";
|
|
@@ -15844,6 +15853,8 @@ var init_wire = __esm({
|
|
|
15844
15853
|
independent: external_exports.number().int().min(0).optional(),
|
|
15845
15854
|
inferredIndependent: external_exports.number().int().min(0).optional()
|
|
15846
15855
|
});
|
|
15856
|
+
ANCHOR_COMMIT_SHA_RE = /^[0-9a-f]{7,40}$/;
|
|
15857
|
+
ANCHOR_BODY_HASH_RE = /^[0-9a-f]{8,64}$/;
|
|
15847
15858
|
CastaliaIngestEdgeSchema = external_exports.object({
|
|
15848
15859
|
fromCanonicalId: external_exports.string().min(6).max(160),
|
|
15849
15860
|
toCanonicalId: external_exports.string().min(6).max(160),
|
|
@@ -15862,8 +15873,8 @@ var init_wire = __esm({
|
|
|
15862
15873
|
* (reanchor) compares the hash with its local symbol's `bodyHash` to
|
|
15863
15874
|
* classify the anchor current / pre-change; absent ⇒ the pre-versioning
|
|
15864
15875
|
* contract, unverified. Only meaningful on `ANCHORED_AT`. */
|
|
15865
|
-
observedAtCommit: external_exports.string().regex(
|
|
15866
|
-
symbolContentHash: external_exports.string().regex(
|
|
15876
|
+
observedAtCommit: external_exports.string().regex(ANCHOR_COMMIT_SHA_RE).optional(),
|
|
15877
|
+
symbolContentHash: external_exports.string().regex(ANCHOR_BODY_HASH_RE).optional()
|
|
15867
15878
|
}).optional()
|
|
15868
15879
|
});
|
|
15869
15880
|
SymbolSummarySidecarSchema = external_exports.record(
|
|
@@ -16334,6 +16345,8 @@ __export(src_exports, {
|
|
|
16334
16345
|
ALL_EDGE_TYPES: () => ALL_EDGE_TYPES,
|
|
16335
16346
|
ALL_NODE_LABELS: () => ALL_NODE_LABELS,
|
|
16336
16347
|
AMBIGUOUS_ALIASES: () => AMBIGUOUS_ALIASES,
|
|
16348
|
+
ANCHOR_BODY_HASH_RE: () => ANCHOR_BODY_HASH_RE,
|
|
16349
|
+
ANCHOR_COMMIT_SHA_RE: () => ANCHOR_COMMIT_SHA_RE,
|
|
16337
16350
|
ANCHOR_REFUSAL_REASONS: () => ANCHOR_REFUSAL_REASONS,
|
|
16338
16351
|
BELIEF_EDGES: () => BELIEF_EDGES,
|
|
16339
16352
|
BRIDGE_EDGES: () => BRIDGE_EDGES,
|
|
@@ -16392,6 +16405,7 @@ __export(src_exports, {
|
|
|
16392
16405
|
VALIDATION_SOURCES: () => VALIDATION_SOURCES,
|
|
16393
16406
|
aliasesLongestFirst: () => aliasesLongestFirst,
|
|
16394
16407
|
allEntities: () => allEntities,
|
|
16408
|
+
anchorVersionAttrs: () => anchorVersionAttrs,
|
|
16395
16409
|
assertGraphEventVocabulary: () => assertGraphEventVocabulary,
|
|
16396
16410
|
buildSpine: () => buildSpine,
|
|
16397
16411
|
canonicalClaimId: () => canonicalClaimId,
|
|
@@ -24536,7 +24550,7 @@ function toWirePayload(batch, runId) {
|
|
|
24536
24550
|
...typeof e.confidence === "number" ? { confidence: clamp012(e.confidence) } : {},
|
|
24537
24551
|
...perContext ? { perContext } : {},
|
|
24538
24552
|
// PJ-anchor-version: the two opaque version stamps ride on anchors only.
|
|
24539
|
-
...e.type === "ANCHORED_AT" ?
|
|
24553
|
+
...e.type === "ANCHORED_AT" ? anchorVersionAttrs(e.attrs) : {}
|
|
24540
24554
|
}
|
|
24541
24555
|
};
|
|
24542
24556
|
});
|
|
@@ -24572,15 +24586,6 @@ function textOrThrow(value, field) {
|
|
|
24572
24586
|
if (!text) throw new TypeError(`${field} must be a non-empty string`);
|
|
24573
24587
|
return text;
|
|
24574
24588
|
}
|
|
24575
|
-
function wireAnchorVersion(attrs) {
|
|
24576
|
-
if (!attrs) return {};
|
|
24577
|
-
const commit = attrs["observedAtCommit"];
|
|
24578
|
-
const hash2 = attrs["symbolContentHash"];
|
|
24579
|
-
return {
|
|
24580
|
-
...typeof commit === "string" && HEX_SHA.test(commit) ? { observedAtCommit: commit } : {},
|
|
24581
|
-
...typeof hash2 === "string" && HEX_BODY.test(hash2) ? { symbolContentHash: hash2 } : {}
|
|
24582
|
-
};
|
|
24583
|
-
}
|
|
24584
24589
|
function optionalEdgeAttrs(confidence) {
|
|
24585
24590
|
return typeof confidence === "number" ? { confidence: clamp012(confidence) } : void 0;
|
|
24586
24591
|
}
|
|
@@ -24706,15 +24711,13 @@ function provenanceHeaders(provenance) {
|
|
|
24706
24711
|
...provenance.agentModel ? { "x-inerrata-agent-model": provenance.agentModel } : {}
|
|
24707
24712
|
};
|
|
24708
24713
|
}
|
|
24709
|
-
var asWireCount,
|
|
24714
|
+
var asWireCount, INGEST_NODE_CHUNK, E6B_PUBLIC_CONTEXT_SENTINEL, CloudClient, CloudError;
|
|
24710
24715
|
var init_client = __esm({
|
|
24711
24716
|
"../../packages/cloud-client/src/client.ts"() {
|
|
24712
24717
|
"use strict";
|
|
24713
24718
|
init_oauth();
|
|
24714
24719
|
init_src();
|
|
24715
24720
|
asWireCount = (n) => typeof n === "number" && Number.isFinite(n) && n >= 0 ? Math.floor(n) : null;
|
|
24716
|
-
HEX_SHA = /^[0-9a-f]{7,40}$/;
|
|
24717
|
-
HEX_BODY = /^[0-9a-f]{8,64}$/;
|
|
24718
24721
|
INGEST_NODE_CHUNK = 8;
|
|
24719
24722
|
E6B_PUBLIC_CONTEXT_SENTINEL = "00000000-0000-4e6b-8000-000000000e6b";
|
|
24720
24723
|
CloudClient = class {
|
|
@@ -77005,7 +77008,7 @@ function createWatchBreaker(deps) {
|
|
|
77005
77008
|
}
|
|
77006
77009
|
|
|
77007
77010
|
// src/engine.ts
|
|
77008
|
-
var DAEMON_VERSION = true ? "2.0.6-dev.
|
|
77011
|
+
var DAEMON_VERSION = true ? "2.0.6-dev.2008" : "2.0.0-alpha.0";
|
|
77009
77012
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
77010
77013
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
77011
77014
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -79729,15 +79732,6 @@ function contributedWireId(n) {
|
|
|
79729
79732
|
}
|
|
79730
79733
|
var WIRE_CANONICAL_ID_MIN = 6;
|
|
79731
79734
|
var SHIP_TERMINAL_REFUSALS = 3;
|
|
79732
|
-
function anchorVersionAttrs(attrs) {
|
|
79733
|
-
if (!attrs) return {};
|
|
79734
|
-
const commit = attrs["observedAtCommit"];
|
|
79735
|
-
const hash2 = attrs["symbolContentHash"];
|
|
79736
|
-
return {
|
|
79737
|
-
...typeof commit === "string" && /^[0-9a-f]{7,40}$/.test(commit) ? { observedAtCommit: commit } : {},
|
|
79738
|
-
...typeof hash2 === "string" && /^[0-9a-f]{8,64}$/.test(hash2) ? { symbolContentHash: hash2 } : {}
|
|
79739
|
-
};
|
|
79740
|
-
}
|
|
79741
79735
|
function refusalFingerprint(reason, description) {
|
|
79742
79736
|
return digest(`${reason}\0${description}`);
|
|
79743
79737
|
}
|
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(
|