clearotron 0.7.0-beta.3 → 0.7.0-beta.4

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/build-info.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "commit": "b53c8fce5128472af76eba7d87f567e8f26b1f41",
3
- "version": "0.7.0-beta.3"
2
+ "commit": "9e95c9d5d165996deeef9e96262debd3b8dab998",
3
+ "version": "0.7.0-beta.4"
4
4
  }
@@ -1,5 +1,18 @@
1
1
  # clearotron-driver
2
2
 
3
+ ## 0.7.0-beta.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed: Where a logo could not be fetched, the report no longer draws a dashed "Logo not retrieved" box in its place. It shows nothing there, on a clearance report's cards and rows and in a Knockout's filings table. The card's "Register record" still gives the mark's type and register number.
8
+ - For operators: `clearotron doctor` now makes one real call to the configured AI engine, on its cheapest model, and fails when the engine refuses it. An install whose engine sign-in had stopped working passed the check while every new search was refused.
9
+
10
+ For operators: The background service now checks its AI engine when it starts and after seven days without a successful engine call, and `clearotron status` shows a check that failed. `CLEAROTRON_ENGINE_CHECK_ROUTINE` sets that interval, such as 12h or 30d, or turns it off.
11
+
12
+ For operators: A failed engine check also leaves one event in the outbox for the installation's operator, with no order and no requester. An integration that delivers outbox events should leave it pending; the next passing check removes it.
13
+
14
+ Fixed: When the engine is refused over its billing setting, `clearotron doctor` names the setting and no longer prints its value, which could be a pasted key.
15
+
3
16
  ## 0.7.0-beta.3
4
17
 
5
18
  ### Patch Changes
@@ -15,7 +15,7 @@
15
15
  // requests (that count approved 2026-11-18). Every registration a finding cited was asked about, though, and on two
16
16
  // delivered reports of 2026-11-25, 9 of 40 and 6 of 58 image requests were for registrations past a card's eighth.
17
17
  //
18
- // WHAT A ROW SAYS, and only `failed` reads as "Logo not retrieved" on the page:
18
+ // WHAT A ROW SAYS, and only `fetched` draws on the page:
19
19
  // fetched the image is saved; `file` is relative to the run folder, `contentType` PNG, JPEG, GIF or WebP
20
20
  // failed a request was made and did not land, or brought back something that is not one of those images
21
21
  // no-logo the record says a word mark, or that no image exists
@@ -239,9 +239,10 @@ const SHOWN_TYPES = new Set(["image/png", "image/jpeg", "image/gif", "image/webp
239
239
 
240
240
  /**
241
241
  * The logos a report shows, by registration: `fetched` rows carry the image as a data address, so the delivered
242
- * report fetches nothing and never names the register's image address; `failed` rows carry no image and read "Logo
243
- * not retrieved"; every other row is left out, since it draws nothing. A row's file must sit inside the run's logo
244
- * folder and open as the image type it was saved as, or it is left out. Never throws. IMPURE: it reads the run.
242
+ * report fetches nothing and never names the register's image address; `failed` rows carry no image and draw nothing,
243
+ * but stay in the map so the report document records the failed fetch; every other row is left out. A row's file
244
+ * must sit inside the run's logo folder and open as the image type it was saved as, or it is left out. Never throws.
245
+ * IMPURE: it reads the run.
245
246
  */
246
247
  export function logosForReport(runDir) {
247
248
  const out = new Map();
@@ -2,7 +2,7 @@
2
2
  "name": "clearotron-driver",
3
3
  "private": true,
4
4
  "type": "module",
5
- "version": "0.7.0-beta.3",
5
+ "version": "0.7.0-beta.4",
6
6
  "license": "AGPL-3.0-only",
7
7
  "description": "Deterministic driver for the trademark clearance workflow: orchestration in code (fan-out, fan-in barrier, gating, retries); the model does judgment leaves only, through a reasoning CLI spawned per stage.",
8
8
  "engines": {
@@ -7,7 +7,7 @@
7
7
  // The rows come from registerRecordView, which copies every fact from the saved record; this module lays them out
8
8
  // once, so the two pages cannot drift apart. What differs between the pages is an input: the register number's cell,
9
9
  // which each page already prints its own way, the receipt line, and the owner's name as that page resolves it.
10
- import { registerRecordView, RECORD_LABELS as L, countryOf, LOGO_NOT_RETRIEVED } from './register-record.mjs';
10
+ import { registerRecordView, RECORD_LABELS as L, countryOf } from './register-record.mjs';
11
11
  import { REC, inPriorityWindow } from '../registry-fidelity.mjs';
12
12
  import { registrationSystem } from '../jurisdiction-systems.mjs';
13
13
  import { normRegion } from './regions.mjs';
@@ -88,16 +88,14 @@ export function recordEntryHtml(rec, { uri = '', jurisdiction = '', receipt = nu
88
88
  }
89
89
 
90
90
  /**
91
- * One logo in its fixed box: the saved image, or "Logo not retrieved" where the fetch failed, opening the office's
92
- * record at `href` when there is one. `logo` is { state, src } from the run's logo step; `caption` draws the
93
- * register under the box. Null when the registration has no logo to show. PURE.
91
+ * One logo in its fixed box: the saved image, opening the office's record at `href` when there is one. `logo` is
92
+ * { state, src } from the run's logo step; `caption` draws the register under the box. Null when the run saved no
93
+ * image, a failed fetch included: a picture is a real one or nothing (owner, 2026-11-25). PURE.
94
94
  */
95
95
  export function logoFigureHtml(rec, { uri = '', logo = null, href = null, caption = true }) {
96
- if (!logo || (logo.state !== 'fetched' && logo.state !== 'failed')) return null;
96
+ if (logo?.state !== 'fetched') return null;
97
97
  const { logo: v } = registerRecordView(rec, { uri });
98
- const link = (inner, cls = '') => (href ? `<a${cls} href="${href}" target="_blank" rel="noopener noreferrer">${inner}</a>` : inner);
99
- const body = logo.state === 'fetched'
100
- ? link(`<img src="${logo.src}" alt="${escAttr(v.alt || '')}">`)
101
- : (href ? link(esc(LOGO_NOT_RETRIEVED), ' class="rr-nologo"') : `<span class="rr-nologo">${esc(LOGO_NOT_RETRIEVED)}</span>`);
98
+ const img = `<img src="${logo.src}" alt="${escAttr(v.alt || '')}">`;
99
+ const body = href ? `<a href="${href}" target="_blank" rel="noopener noreferrer">${img}</a>` : img;
102
100
  return `<figure class="rr-lg">${body}${caption && v.caption ? `<figcaption>${esc(v.caption)}</figcaption>` : ''}</figure>`;
103
101
  }
@@ -27,7 +27,6 @@ export const RECORD_LABELS = R.labels;
27
27
  export const MT_NOTE = R.mtNote;
28
28
  export const NO_GOODS = R.noGoods;
29
29
  export const CLASS_NOT_STATED = R.classNotStated;
30
- export const LOGO_NOT_RETRIEVED = R.logoNotRetrieved;
31
30
  export const registrationsCount = R.registrationsCount;
32
31
  export const showAllTerms = R.showAllTerms;
33
32
  const machineTranslation = R.machineTranslation;
@@ -1967,9 +1967,9 @@ function registerRecordBlock(f, recordsByUri, numberOf) {
1967
1967
 
1968
1968
  // LOGOS ON THE CARD, ON A LINE OF THEIR OWN (owner, 2026-11-18). Under the owner line, one logo per registration
1969
1969
  // in the card's register record whose logo the run saved, each in a box of one fixed size captioned with its
1970
- // register, so nothing in the card head moves when a card has logos. A logo the run tried and failed to fetch reads
1971
- // "Logo not retrieved" and opens the office's record; a registration with no logo, or one the run never asked
1972
- // about, draws nothing, so a run that fetched no logos draws no line. A grouped negative row shows up to three small
1970
+ // register, so nothing in the card head moves when a card has logos. A registration with no logo, one the run never
1971
+ // asked about, or one whose fetch failed draws nothing (owner, 2026-11-25), so a card with no saved logo draws no
1972
+ // line. A grouped negative row shows up to three small
1973
1973
  // logos and "+N" under its text. The image travels inside the report; nothing points at the register's image.
1974
1974
  function logoLine(f, recordsByUri, { small = false } = {}) {
1975
1975
  if (!LOGOS.size) return '';
@@ -307,7 +307,6 @@ export const REGISTER_RECORD = Object.freeze({
307
307
  mtNote: 'For the original wording, open the register number or use Ask AI.',
308
308
  noGoods: 'The record states no goods or services.',
309
309
  classNotStated: 'Class not stated',
310
- logoNotRetrieved: 'Logo not retrieved',
311
310
  registrationsCount: (n) => `${n} registrations`,
312
311
  showAllTerms: (n) => `Show all ${n} terms`,
313
312
  // `language` is the record's language by its English name, or null when the record does not say.
@@ -97,7 +97,7 @@
97
97
  .ko-scroll{container-type:inline-size}
98
98
  .rr-krow td>details,.ko-forms .ko-formsline{position:sticky;left:24px;box-sizing:border-box;max-width:calc(100cqw - 48px)}
99
99
  }
100
- @media (max-width:640px){.rr-ko .rr-lg,.rr-ko .rr-lg img,.rr-ko .rr-nologo{width:72px}.rr-ko .rr-lg img,.rr-ko .rr-nologo{height:56px}}
100
+ @media (max-width:640px){.rr-ko .rr-lg,.rr-ko .rr-lg img{width:72px}.rr-ko .rr-lg img{height:56px}}
101
101
  .ko-counts td.na{font-family:var(--mono);font-size:12.5px;color:var(--slate)}
102
102
  .ko-counts tr.ko-forms td{font-size:12px;color:var(--slate);line-height:1.55;padding:0 24px 13px;
103
103
  font-family:var(--mono);word-break:break-word}
@@ -263,13 +263,11 @@
263
263
  .rr-lg{margin:0;width:94px;text-align:center}
264
264
  .rr-lg img{display:block;width:94px;height:72px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:8px;padding:5px;box-sizing:border-box}
265
265
  .rr-lg figcaption{font-size:10.5px;letter-spacing:.04em;color:var(--slate);margin-top:3px}
266
- .rr-nologo{width:94px;height:72px;box-sizing:border-box;border-radius:8px;border:1px dashed var(--line2);display:flex;align-items:center;justify-content:center;text-align:center;padding:6px;font-size:11px;line-height:1.3;color:var(--slate);text-decoration:none}
267
- a.rr-nologo{color:var(--slate)}
268
266
  .rr-band{max-width:none;justify-content:flex-start;gap:10px;margin:10px 0 12px}
269
267
  .rn>summary .rr-sm{flex:0 0 100%;box-sizing:border-box;padding-left:14px;margin:2px 0 0}
270
268
  .rr-more{align-self:center;font-size:11px;color:var(--slate)}
271
269
  .rr-sm{max-width:none;justify-content:flex-start;gap:4px;margin-left:4px}
272
- .rr-sm .rr-lg,.rr-sm .rr-lg img,.rr-sm .rr-nologo{width:40px;height:30px;padding:2px;font-size:7.5px}
270
+ .rr-sm .rr-lg,.rr-sm .rr-lg img{width:40px;height:30px;padding:2px}
273
271
  .internal{background:#F6ECF7;border:1px dashed #C9A9CC;border-radius:9px;padding:9px 12px;margin-top:11px;font-size:12.5px;color:#6a2b6e}
274
272
  .internal .tag{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8a3a8f;display:block;margin-bottom:3px}
275
273
  /* (spec-49 T4: the collapsible QC-banner rules died with the quarantine/review banners.) */
@@ -543,7 +541,7 @@
543
541
  .fourans ul.fa-obstacles{margin:6px 0 0;padding-left:18px}
544
542
  .fourans ul.fa-obstacles li{margin:0 0 4px;font-size:13px}
545
543
  @media (max-width:640px){.fourans .fa-row{flex-direction:column;gap:2px}.fourans .fa-k{flex:auto}}
546
- @media (max-width:640px){.rr-row{grid-template-columns:1fr;gap:0}.rr-band .rr-lg,.rr-band .rr-lg img,.rr-band .rr-nologo{width:72px}.rr-band .rr-lg img,.rr-band .rr-nologo{height:56px}}
544
+ @media (max-width:640px){.rr-row{grid-template-columns:1fr;gap:0}.rr-band .rr-lg,.rr-band .rr-lg img{width:72px}.rr-band .rr-lg img{height:56px}}
547
545
 
548
546
  /* ── the coverage ledger stops being the page's smallest print ─────────────────────────────
549
547
  `details.scope` had NO screen rule at all: its summary rendered at the browser default, in the
@@ -191,7 +191,7 @@
191
191
  },
192
192
  "a-card-shows-the-logo-each-registration-carries.test.mjs": {
193
193
  "tests": 4,
194
- "asserts": 15,
194
+ "asserts": 19,
195
195
  "skips": 0,
196
196
  "todos": 0
197
197
  },
@@ -1294,8 +1294,8 @@
1294
1294
  "todos": 0
1295
1295
  },
1296
1296
  "a-knockout-filing-opens-its-register-record.test.mjs": {
1297
- "tests": 4,
1298
- "asserts": 15,
1297
+ "tests": 5,
1298
+ "asserts": 18,
1299
1299
  "skips": 0,
1300
1300
  "todos": 0
1301
1301
  },
@@ -5700,7 +5700,7 @@
5700
5700
  "onboard-wizard.test.mjs": {
5701
5701
  "tests": 78,
5702
5702
  "asserts": 304,
5703
- "skips": 4,
5703
+ "skips": 5,
5704
5704
  "todos": 0
5705
5705
  },
5706
5706
  "onboarding-sets-the-framework-it-says-it-set.test.mjs": {
@@ -1,5 +1,9 @@
1
1
  # trademark-artifacts-mcp
2
2
 
3
+ ## 0.7.0-beta.4
4
+
5
+ No changes in this release.
6
+
3
7
  ## 0.7.0-beta.3
4
8
 
5
9
  No changes in this release.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trademark-artifacts-mcp",
3
- "version": "0.7.0-beta.3",
3
+ "version": "0.7.0-beta.4",
4
4
  "license": "AGPL-3.0-only",
5
5
  "private": true,
6
6
  "description": "MCP server to interrogate clearotron trademark-clearance runs — list/read artifacts, trace the full decision flow, telemetry/cost, coverage, single-run search, and a gated single-step what-if. Imports the clearotron-driver read-only; touches no driver/template/deploy files.",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "clearotron",
3
3
  "mcpName": "io.github.CordilleraSarl/clearotron",
4
4
  "type": "module",
5
- "version": "0.7.0-beta.3",
5
+ "version": "0.7.0-beta.4",
6
6
  "license": "AGPL-3.0-only",
7
7
  "repository": {
8
8
  "type": "git",
@@ -2,7 +2,7 @@
2
2
  "name": "portal-ui",
3
3
  "private": true,
4
4
  "type": "module",
5
- "version": "0.7.0-beta.3",
5
+ "version": "0.7.0-beta.4",
6
6
  "license": "AGPL-3.0-only",
7
7
  "description": "The unified trademark portal UI. One address, one login: who you are decides what you see. Built as a static bundle, served by driver/portal-service.mjs — the browser never reaches profile-service or recipe-service.",
8
8
  "engines": {
@@ -1,5 +1,9 @@
1
1
  # trademark-oauth-mcp-bridge
2
2
 
3
+ ## 0.7.0-beta.4
4
+
5
+ No changes in this release.
6
+
3
7
  ## 0.7.0-beta.3
4
8
 
5
9
  No changes in this release.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trademark-oauth-mcp-bridge",
3
- "version": "0.7.0-beta.3",
3
+ "version": "0.7.0-beta.4",
4
4
  "license": "AGPL-3.0-only",
5
5
  "private": true,
6
6
  "description": "OAuth 2.1 MCP stdio bridge used by the engine's case-law gather stage (courtlistener / legaldatahunter).",
package/shared/brand.mjs CHANGED
@@ -614,8 +614,6 @@ const REPORT_DARK_RULES = [
614
614
  // The section strip's current entry is set in the light ink with a dark tint, which on the dark bar left it the
615
615
  // one entry nobody could read. Both report pages draw the strip, and both take this block.
616
616
  ['.strip a.now', `color:${D.ink};background:rgba(255,255,255,.08)`],
617
- // "Logo not retrieved" is a link that stays grey: it marks an absence, not a destination to read first.
618
- ['a.rr-nologo', 'color:var(--slate)'],
619
617
  ['.panel.land', 'background:#FFFDF9'],
620
618
  ['.panel.land .legend,.panel.land .legend *', 'color:#250902'],
621
619
  ['.covcell.warn', 'background:#2a2418;border-color:#4a3d22'],