@inerrata-corporation/errata 2.0.23-dev.4803 → 2.0.23-dev.4826

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.
@@ -16146,7 +16146,25 @@ var TAG_CANONICAL_ID_PREFIXES, TAG_HANDLE_SOURCE, TAG_THREAD_SOURCE, TAG_PLACEHO
16146
16146
  var init_tag_grammar = __esm({
16147
16147
  "../../packages/local-shared/src/tag-grammar.ts"() {
16148
16148
  "use strict";
16149
- TAG_CANONICAL_ID_PREFIXES = ["pat", "sol", "drc", "dcause", "dfix", "dprob", "dvuln", "prob", "claim", "err"];
16149
+ TAG_CANONICAL_ID_PREFIXES = [
16150
+ "motif_community_projn",
16151
+ "motif_community_orgn",
16152
+ "motif",
16153
+ "projn",
16154
+ "orgn",
16155
+ "dtri",
16156
+ "dom",
16157
+ "pat",
16158
+ "sol",
16159
+ "drc",
16160
+ "dcause",
16161
+ "dfix",
16162
+ "dprob",
16163
+ "dvuln",
16164
+ "prob",
16165
+ "claim",
16166
+ "err"
16167
+ ];
16150
16168
  TAG_HANDLE_SOURCE = String.raw`\[([a-z0-9][\w-]{0,80})\]|((?:${TAG_CANONICAL_ID_PREFIXES.join("|")})_[0-9a-f]{6,})`;
16151
16169
  TAG_THREAD_SOURCE = String.raw`#([a-z][\w-]{0,63})`;
16152
16170
  TAG_PLACEHOLDER_HANDLES = /* @__PURE__ */ new Set([
@@ -17607,6 +17625,15 @@ function detectCommunitiesLeiden(input, opts = {}) {
17607
17625
  var DEMAND_HOT = Math.log1p(10);
17608
17626
  var DEMAND_WARM = Math.log1p(5);
17609
17627
 
17628
+ // ../../packages/math/src/reader-evidence.ts
17629
+ var FIELD_CODES = {
17630
+ a: "acceptedCount",
17631
+ c: "corroborationCount",
17632
+ f: "failureReportCount",
17633
+ p: "contradictionPressure"
17634
+ };
17635
+ var FIELDS = Object.values(FIELD_CODES);
17636
+
17610
17637
  // ../../packages/local-graph/src/node-select.ts
17611
17638
  var SELECT_INDEXES = [
17612
17639
  "nodes_live_local_community",
@@ -20589,7 +20616,8 @@ function generalize(text, opts = {}) {
20589
20616
  init_src();
20590
20617
 
20591
20618
  // src/instance-receipts.ts
20592
- var INSTANCE_SEMANTIC_EDGE_TYPES = ["CAUSED_BY", "SOLVED_BY"];
20619
+ var INSTANCE_SEMANTIC_EDGE_TYPES = ["CAUSED_BY", "SOLVED_BY", "SUPERSEDES", "BUILDS_ON", "ALTERNATIVE_TO"];
20620
+ var INSTANCE_STRUCTURE_EDGE_TYPES = /* @__PURE__ */ new Set(["SUPERSEDES", "BUILDS_ON", "ALTERNATIVE_TO"]);
20593
20621
  var INSTANCE_ANCHOR_EDGE_TYPES = ["OCCURS_IN", "DEPENDS_ON", "PERTAIN_TO", "CONCERNS"];
20594
20622
  function instanceCloudWithdrawal(n, destination, getMeta) {
20595
20623
  const id = n.attrs["source"] === "cloud" ? n.attrs["cloudNodeId"] ?? n.id : instanceReceipt(n, destination)["cloudNodeId"];
@@ -22014,6 +22042,11 @@ function buildInstanceIngest(store, profile, daemonVersion, ignorePatterns = [],
22014
22042
  }
22015
22043
  const edges = [];
22016
22044
  const semanticEdgeDigests = {};
22045
+ const pulledStructureTarget = (e) => {
22046
+ if (!INSTANCE_STRUCTURE_EDGE_TYPES.has(e.type)) return void 0;
22047
+ const target = store.getNode(e.to) ?? opts.sharedStore?.getNode(e.to);
22048
+ return target?.label === "Solution" && target.attrs["source"] === "cloud" ? e.to : void 0;
22049
+ };
22017
22050
  for (const [sourceId, wireFrom] of semanticEndpoints) {
22018
22051
  const rawOuts = [
22019
22052
  ...store.outEdges(sourceId, [...INSTANCE_EDGES]),
@@ -22021,7 +22054,7 @@ function buildInstanceIngest(store, profile, daemonVersion, ignorePatterns = [],
22021
22054
  ];
22022
22055
  const dedup = /* @__PURE__ */ new Map();
22023
22056
  for (const e of rawOuts) dedup.set(`${e.type}>${e.to}`, e);
22024
- const outs = [...dedup.values()].map((e) => ({ e, wireTo: semanticEndpoints.get(e.to) })).filter((x) => {
22057
+ const outs = [...dedup.values()].map((e) => ({ e, wireTo: semanticEndpoints.get(e.to) ?? pulledStructureTarget(e) })).filter((x) => {
22025
22058
  if (x.wireTo === wireFrom) {
22026
22059
  composition.collapsedEdges++;
22027
22060
  return false;