@claritylabs/cl-sdk 3.2.10 → 3.2.11

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/dist/index.mjs CHANGED
@@ -3773,9 +3773,11 @@ Task:
3773
3773
  Projection defects to look for:
3774
3774
  - Generic labels such as "Column 3" that should be renamed from nearby row/header evidence.
3775
3775
  - Declaration or section headers projected as coverage names when the row evidence is actually a specific coverage, sub-limit, deductible, retention, retroactive date, or premium.
3776
+ - Premium-only, tax-only, fee-only, rating, exposure, reporting-value, or payment-plan rows projected as coverage rows.
3776
3777
  - Dangling continuation punctuation such as a trailing "/" copied into values.
3777
3778
  - Item references such as "shown in Item 7" or bare item numbers treated as money amounts.
3778
3779
  - Policy wording, exclusions, or unsupported prose copied into operational limit/deductible fields.
3780
+ - Premium, MGA Fee, taxes, stamping fees, total premium, total due, reporting values, or exposure annual rate used as a coverage limit.
3779
3781
  - Header/value splits where "Limit of Liability", "Deductible", "Retroactive Date", "Aggregate", "Each Claim", or similar terms are attached to the wrong coverage row.
3780
3782
  - Repeated schedule headings projected as separate coverages when they only introduce the next coverage group.
3781
3783
 
@@ -3785,7 +3787,8 @@ Rules:
3785
3787
  - Use sourceNodeIds and sourceSpanIds only from the provided source nodes or from the existing candidate entry.
3786
3788
  - Prefer dropping a malformed fact over speculative rewriting.
3787
3789
  - Keep a coverage when it is a real operational coverage/benefit even if only one term needs cleanup.
3788
- - Never drop a declaration or schedule coverage row that names a coverage and states policy-specific amounts, dates, deductibles, retentions, premiums, or coverage terms. Repair its terms instead.
3790
+ - Drop a coverage row when its only facts are premium, tax, fee, rating, reporting-value, exposure, or payment-plan facts and it has no source-backed limit, deductible, retention, retroactive date, sublimit, or benefit term.
3791
+ - Never drop a declaration or schedule coverage row that names a coverage and states policy-specific limits, dates, deductibles, retentions, sublimits, or benefit terms. Repair its terms instead.
3789
3792
  - When changing a term's semantic meaning, set kind to the corrected normalized term kind.
3790
3793
  - Do not add new coverage rows or new terms; this pass cleans the existing projection.
3791
3794
  - If one existing term combines multiple real limit bases, such as "Each Claim / Aggregate", keep the combined term unless another existing term already represents the other basis. Do not relabel it to only one basis and lose information.
@@ -5126,8 +5129,10 @@ Rules:
5126
5129
  - When citing an evidence entry, copy its sourceSpanId into the returned sourceSpanIds array.
5127
5130
  - If a value is not directly supported, omit it.
5128
5131
  - Prefer declarations, schedules, premium tables, and endorsement schedules over generic policy wording.
5132
+ - For effective, expiration, retroactive, and other date fields, return a normalized YYYY-MM-DD value when the source date is unambiguous, including month-name dates such as "20 Feb 2026". Do not emit fragmented date text such as "20 2 2026".
5129
5133
  - For broker/producer, extract the agency or company legal name, not the license role, credential, or type. In a block like "Bayshore Insurance Brokers, LLC" followed by "Surplus Lines Broker - CA License No. ...", broker.value must be "Bayshore Insurance Brokers, LLC"; the surplus-lines role and license number are not the broker name.
5130
5134
  - On declarations pages, treat "Item N" labels as section boundaries. Use Item 6 or equivalent coverage-schedule rows for coverage limits, deductibles, aggregate terms, and retroactive dates; do not merge Item 7 premium, Item 8 ERP, Item 9 producer, or Item 10 forms into Item 6 coverage facts.
5135
+ - Premium, tax, fee, payment-plan, rating, exposure, and reporting-value schedules are billing evidence, not coverage schedules. Extract the total policy premium into premium when supported, but do not create coverages[] entries from premium-only or fee-only rows, and never use Total Premium, MGA Fee, tax, stamping fee, reporting values, or exposure annual rate as a coverage limit.
5131
5136
  - A coverage schedule row's coverage name should come from the "Coverage Part" or equivalent row label. Limit, deductible, aggregate, sublimit, retention, and retroactive-date values belong as nested terms under that coverage, not in the coverage title.
5132
5137
  - If a coverage schedule continues onto the next page before the next item marker, include the continuation rows in the same coverage or declaration item.
5133
5138
  - If one schedule row or continuation row states the same amount with multiple bases, such as "$1,000,000 Each Claim / Aggregate", return separate limit terms for each basis using the same value instead of one combined "Each Claim / Aggregate" term.
@@ -5177,7 +5182,10 @@ var NORMALIZED_COMPATIBILITY_FIELDS = /* @__PURE__ */ new Set([
5177
5182
  "policyNumber",
5178
5183
  "namedInsured",
5179
5184
  "insurer",
5180
- "broker"
5185
+ "broker",
5186
+ "effectiveDate",
5187
+ "expirationDate",
5188
+ "retroactiveDate"
5181
5189
  ]);
5182
5190
  function valueOf(profile, key) {
5183
5191
  const value = profile[key];