@inerrata-corporation/errata 2.0.22-dev.4355 → 2.0.22-dev.4430

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.
@@ -28,7 +28,7 @@ The Codex context plugin under `resources/context-plugin/` carries its own
28
28
  | ↳ tree-sitter-typescript (in @vscode/tree-sitter-wasm) | v0.23.2 | MIT |
29
29
  | chokidar | 4.0.3 | MIT |
30
30
  | env-paths | 3.0.0 | MIT |
31
- | hono | 4.12.8 | MIT |
31
+ | hono | 4.12.34 | MIT |
32
32
  | ignore | 7.0.5 | MIT |
33
33
  | readdirp | 4.1.2 | MIT |
34
34
  | smol-toml | 1.6.1 | BSD-3-Clause |
@@ -792,7 +792,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
792
792
 
793
793
  ---
794
794
 
795
- ## hono@4.12.8
795
+ ## hono@4.12.34
796
796
 
797
797
  License: MIT
798
798
  Source: https://github.com/honojs/hono
@@ -792,9 +792,13 @@ function predicateIsTheEntity(text, entityId, entityCount) {
792
792
  }
793
793
  function canonicalClaimId(text, scope) {
794
794
  const s = claimStructure(text, scope);
795
- return digest(
796
- s.raw !== void 0 ? { raw: s.raw, scope: s.scope, stance: s.stance } : { entities: s.entities, predicate: s.predicate, stance: s.stance, scope: s.scope }
797
- );
795
+ return s.raw !== void 0 ? conceptDigest(s.raw, s.scope, s.stance) : digest({ entities: s.entities, predicate: s.predicate, stance: s.stance, scope: s.scope });
796
+ }
797
+ function conceptClaimId(text, scope) {
798
+ return conceptDigest(conceptBag(text), scope ?? {}, detectStance(text));
799
+ }
800
+ function conceptDigest(raw, scope, stance) {
801
+ return digest({ raw, scope, stance });
798
802
  }
799
803
  var init_claim_id = __esm({
800
804
  "../../packages/shared/src/nlp/claim-id.ts"() {
@@ -822,14 +826,14 @@ function identityId(input) {
822
826
  statement: canonicalClaimId(input.statement.trim())
823
827
  });
824
828
  case "DesignProblem":
825
- return `${DESIGN_PROBLEM_PREFIX}${canonicalClaimId(input.statement.trim())}`.slice(
829
+ return `${DESIGN_PROBLEM_PREFIX}${conceptClaimId(input.statement.trim())}`.slice(
826
830
  0,
827
831
  DESIGN_PROBLEM_ID_LENGTH
828
832
  );
829
833
  case "DiagnosticProblem":
830
834
  return `${DIAGNOSTIC_PROBLEM_PREFIX}${digest({ key: input.key }).slice(0, DIAGNOSTIC_HASH_LENGTH)}`;
831
835
  case "Triage":
832
- return `${TRIAGE_PREFIX}${canonicalClaimId(input.statement.trim())}`.slice(
836
+ return `${TRIAGE_PREFIX}${conceptClaimId(input.statement.trim())}`.slice(
833
837
  0,
834
838
  TRIAGE_ID_LENGTH
835
839
  );