clearotron 0.5.1 → 0.6.0-beta.1
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/.env.example +7 -7
- package/INSTALL.md +10 -10
- package/QUICKSTART.md +6 -6
- package/README.md +2 -2
- package/THIRD-PARTY-NOTICES.md +4 -4
- package/bin/README.md +2 -2
- package/bin/clearotron.mjs +1 -1
- package/bin/connect.mjs +1 -1
- package/bin/disconnect.mjs +1 -1
- package/bin/example.mjs +2 -2
- package/bin/grant.mjs +1 -1
- package/bin/onboard.mjs +78 -23
- package/bin/start.mjs +88 -33
- package/bin/update.mjs +13 -3
- package/build-info.json +2 -2
- package/docs/DELIVERY.md +1 -1
- package/docs/PORTAL.md +1 -1
- package/docs/RELEASES.md +1 -1
- package/docs/architecture/02-architecture.md +10 -2
- package/docs/architecture/03-run-lifecycle.md +6 -2
- package/docs/architecture/04-configuration-reference.md +3 -3
- package/docs/architecture/05-config-governance.md +5 -4
- package/docs/architecture/08-development-guide.md +4 -4
- package/docs/architecture/09-security-and-data.md +1 -1
- package/{driver/skills/clearance-search/SKILL.md → docs/architecture/retired-manuals/clearance-search-spine.md} +17 -30
- package/{driver/skills/clearance-search/templates/email/generic.md → docs/architecture/retired-manuals/email-generic.md} +1 -1
- package/{driver/skills/clearance-search → docs/architecture/retired-manuals}/template-formatting.md +3 -4
- package/docs/configuration.md +1 -1
- package/docs/decisions/0002-no-dark-functionality.md +5 -0
- package/driver/CHANGELOG.md +69 -0
- package/driver/README.md +11 -1
- package/driver/accepted-order.mjs +13 -5
- package/driver/attempt-rows.mjs +64 -0
- package/driver/attributed-span.mjs +1 -1
- package/driver/authority-trees.mjs +1 -1
- package/driver/band-shape.mjs +21 -3
- package/driver/best-draft.mjs +3 -3
- package/driver/blind-frame-record.mjs +2 -2
- package/driver/cancel.mjs +3 -2
- package/driver/carry-through.mjs +2 -2
- package/driver/citation-census.json +3 -3
- package/driver/clearance-variants-record.mjs +4 -10
- package/driver/common-law-coverage-status.mjs +3 -3
- package/driver/common-law-receipts.mjs +2 -2
- package/driver/commonlaw-carry-floor.json +3 -3
- package/driver/compare.mjs +1 -1
- package/driver/config-inventory.mjs +6 -79
- package/driver/consumption-ledger.mjs +2 -1
- package/driver/contract-arm2-baseline.json +2 -3
- package/driver/contract-dictation-registry.mjs +5 -0
- package/driver/contract-e3-backlog.mjs +45 -66
- package/driver/contract-e3-baseline.json +16 -16
- package/driver/contract-vocabulary.mjs +8 -6
- package/driver/corrections-feedforward.mjs +3 -1
- package/driver/coverage-form-io.mjs +7 -8
- package/driver/coverage-tool.mjs +1 -1
- package/driver/declination-tool.mjs +2 -2
- package/driver/degraded-parts.mjs +9 -9
- package/driver/demo-container.mjs +5 -4
- package/driver/demo-posture.mjs +17 -0
- package/driver/deploy-live-run-guard.mjs +19 -7
- package/driver/derived-state.mjs +2 -2
- package/driver/dev-portal.mjs +2 -1
- package/driver/dispatch-record.mjs +1 -1
- package/driver/disposition-tool.mjs +2 -1
- package/driver/doubt-closure-tool.mjs +2 -2
- package/driver/driver.config.mjs +35 -724
- package/driver/e2e-rounds.mjs +3 -4
- package/driver/engine/CONTRACT.md +3 -0
- package/driver/engine/README.md +2 -0
- package/driver/engine/anthropic-agent.mjs +13 -42
- package/driver/engine/auth.mjs +74 -0
- package/driver/engine/child-record.mjs +1 -1
- package/driver/engine/deny-authority-write.mjs +2 -2
- package/driver/engine/jx-turn.mjs +10 -2
- package/driver/engine/mcp/README.md +1 -1
- package/driver/engine/mcp/band-server.mjs +20 -13
- package/driver/engine/mcp/codex-config.mjs +1 -1
- package/driver/engine/mcp/declination-server.mjs +2 -3
- package/driver/engine/mcp/dispositions-server.mjs +3 -3
- package/driver/engine/mcp/gather-config.mjs +24 -19
- package/driver/engine/mcp/grid-provenance.mjs +1 -1
- package/driver/engine/mcp/held-answers.mjs +5 -5
- package/driver/engine/mcp/perplexity-server.mjs +16 -7
- package/driver/engine/mcp/recording-server.mjs +7 -6
- package/driver/engine/mcp/register-server.mjs +29 -0
- package/driver/engine/mcp/stdio-server.mjs +5 -5
- package/driver/engine/mcp/supplemental.mjs +9 -9
- package/driver/engine/openai-agent.mjs +5 -2
- package/driver/engine/registry.mjs +103 -0
- package/driver/engine/run-choices.mjs +162 -0
- package/driver/engine/stamps.mjs +35 -0
- package/driver/enqueue-schema.mjs +4 -4
- package/driver/envelope-settle.mjs +3 -2
- package/driver/feedback-issues.mjs +1 -1
- package/driver/feedback-mint.mjs +3 -2
- package/driver/feedback-store.mjs +3 -2
- package/driver/findings-model.mjs +1 -1
- package/driver/flag-snapshot.mjs +5 -4
- package/driver/floor-duty.mjs +3 -3
- package/driver/foreign-record-links.mjs +1 -1
- package/driver/frame-diff-record.mjs +2 -8
- package/driver/framework.mjs +1 -1
- package/driver/gate-metrics.mjs +10 -11
- package/driver/gateway.mjs +220 -839
- package/driver/goods-evidence.mjs +26 -14
- package/driver/jx-lanes.mjs +3 -3
- package/driver/jx-units.mjs +31 -37
- package/driver/jx.mjs +44 -59
- package/driver/knockout-assess-record.mjs +3 -3
- package/driver/knockout-caveats.mjs +21 -0
- package/driver/knockout-correction-record.mjs +58 -28
- package/driver/knockout-frame-record.mjs +2 -2
- package/driver/knockout-register-read.mjs +38 -21
- package/driver/knockout-register-record.mjs +5 -6
- package/driver/knockout-review-record.mjs +12 -11
- package/driver/ladder/model-gauge.mjs +88 -0
- package/driver/ladder/next-rung.mjs +296 -0
- package/driver/ladder/rescue.mjs +146 -0
- package/driver/ladder/stage-tools.mjs +57 -0
- package/driver/ladder/turn-failure.mjs +166 -0
- package/driver/log.mjs +2 -2
- package/driver/matter-frame-record.mjs +4 -4
- package/driver/methodology-witness.mjs +2 -2
- package/driver/named-band.mjs +60 -3
- package/driver/narrative-refutation-record.mjs +145 -42
- package/driver/one-build-per-run.mjs +62 -0
- package/driver/outbox-backoff.mjs +4 -4
- package/driver/owner-screen.mjs +0 -10
- package/driver/owner-use-check.mjs +2 -28
- package/driver/package.json +1 -1
- package/driver/partial-payload-baseline.json +1 -1
- package/driver/parts-not-completed.mjs +1 -1
- package/driver/pipeline-knockout.mjs +1015 -1001
- package/driver/pipeline.mjs +714 -9351
- package/driver/placement-decisions.mjs +2 -2
- package/driver/placement-form-io.mjs +7 -9
- package/driver/placement-union.mjs +0 -6
- package/driver/plan-stability.mjs +7 -10
- package/driver/portal-acks.mjs +3 -2
- package/driver/portal-confirmation.mjs +48 -0
- package/driver/portal-families.mjs +3 -2
- package/driver/portal-local-auth.mjs +1 -2
- package/driver/portal-routes/README.md +24 -0
- package/driver/portal-routes/admin.mjs +425 -0
- package/driver/portal-routes/compose.mjs +66 -0
- package/driver/portal-routes/config.mjs +118 -0
- package/driver/portal-routes/connect.mjs +283 -0
- package/driver/portal-routes/feedback.mjs +178 -0
- package/driver/portal-routes/me.mjs +165 -0
- package/driver/portal-routes/queue.mjs +64 -0
- package/driver/portal-routes/report.mjs +106 -0
- package/driver/portal-routes/run.mjs +508 -0
- package/driver/portal-routes/runs.mjs +127 -0
- package/driver/portal-routes/usage.mjs +82 -0
- package/driver/portal-runs.mjs +588 -0
- package/driver/portal-service.mjs +82 -2593
- package/driver/portal-static.mjs +3 -1
- package/driver/predelivery-lint.mjs +101 -9
- package/driver/production-pool-guard.mjs +1 -1
- package/driver/profiles.mjs +5 -4
- package/driver/progress.mjs +29 -24
- package/driver/publish/README.md +10 -5
- package/driver/publish/archive-tags.mjs +3 -2
- package/driver/publish/demo-marking.mjs +2 -2
- package/driver/publish/index.mjs +215 -140
- package/driver/publish/knockout.mjs +153 -107
- package/driver/publish/office-record-links.mjs +22 -0
- package/driver/publish/parse.mjs +20 -5
- package/driver/publish/pool-admin.mjs +9 -3
- package/driver/publish/render.mjs +11 -3
- package/driver/publish/report-dates.mjs +3 -4
- package/driver/publish/report-registry.mjs +7 -10
- package/driver/publish/seed-pool.mjs +3 -2
- package/driver/publish/shell.mjs +106 -0
- package/driver/publish/templates/report.css +9 -7
- package/driver/queue-order.mjs +4 -3
- package/driver/record-carry.mjs +0 -9
- package/driver/record-discard.mjs +1 -4
- package/driver/record-fold.mjs +3 -3
- package/driver/record-goods.mjs +79 -23
- package/driver/reference-score.mjs +2 -3
- package/driver/register-capabilities.mjs +0 -6
- package/driver/register-count.mjs +3 -2
- package/driver/register-digest-record.mjs +7 -7
- package/driver/register-fixture-marker.mjs +3 -3
- package/driver/register-plan.mjs +2 -2
- package/driver/register-records.mjs +2 -2
- package/driver/register-taint.mjs +3 -3
- package/driver/register-unit-record.mjs +48 -9
- package/driver/register-unreachable.mjs +4 -3
- package/driver/registry-fidelity.mjs +79 -34
- package/driver/repair-composers.mjs +14 -9
- package/driver/repair-digest.mjs +4 -6
- package/driver/repair-scope.mjs +3 -3
- package/driver/repair-targets.mjs +24 -9
- package/driver/repairs.mjs +44 -58
- package/driver/replay-archive.mjs +7 -7
- package/driver/report-card-record.mjs +3 -3
- package/driver/report-overview-record.mjs +4 -4
- package/driver/research-answers.mjs +38 -6
- package/driver/research-checks.mjs +4 -4
- package/driver/result-noun-fields.mjs +28 -11
- package/driver/review-addresses.mjs +163 -0
- package/driver/rule-shape.mjs +1 -1
- package/driver/run-delivered.mjs +340 -0
- package/driver/run-economics.mjs +8 -26
- package/driver/run-failed.mjs +545 -0
- package/driver/run-integrity.mjs +1 -1
- package/driver/run-outcome.mjs +314 -0
- package/driver/run-park.mjs +23 -0
- package/driver/run-quote.mjs +32 -0
- package/driver/run-record.mjs +352 -0
- package/driver/run-requirements.mjs +22 -0
- package/driver/run-shell.mjs +55 -0
- package/driver/runner.mjs +71 -33
- package/driver/saved-register-pages.mjs +4 -4
- package/driver/score-redaction.mjs +2 -2
- package/driver/search-policy.mjs +12 -13
- package/driver/settle-stamp.mjs +4 -3
- package/driver/skeptic-record.mjs +2 -2
- package/driver/skeptic-search.mjs +1 -1
- package/driver/skills/README.md +7 -7
- package/driver/skills/blind-frame/SKILL.md +1 -2
- package/driver/skills/case-law-citation/SKILL.md +9 -37
- package/driver/skills/case-law-citation/sources/courtlistener.md +1 -3
- package/driver/skills/case-law-citation/sources/eurlex.md +8 -11
- package/driver/skills/case-law-citation/sources/legaldatahunter.md +1 -1
- package/driver/skills/clearance-common-law/SKILL.md +45 -111
- package/driver/skills/clearance-common-law/perplexity-prompts.md +7 -79
- package/driver/skills/clearance-register/SKILL.md +15 -33
- package/driver/skills/clearance-register/digest.md +35 -96
- package/driver/skills/clearance-register/providers/clarivate.md +2 -2
- package/driver/skills/clearance-register/providers/corsearch.md +5 -5
- package/driver/skills/clearance-register/providers/euipo.md +1 -2
- package/driver/skills/clearance-register/providers/free-tier.md +0 -19
- package/driver/skills/clearance-register/providers/signa.md +6 -25
- package/driver/skills/clearance-register/providers/uspto-local.md +0 -24
- package/driver/skills/clearance-register/register-recipes.md +8 -15
- package/driver/skills/clearance-register/status-rules.md +6 -24
- package/driver/skills/clearance-register/unit.md +11 -20
- package/driver/skills/clearance-search/delivery-contract.md +24 -120
- package/driver/skills/clearance-search/field-doctrine-pharma.md +1 -5
- package/driver/skills/clearance-search/firm-wide-reasoning.md +24 -43
- package/driver/skills/clearance-search/phase2-execution.md +29 -77
- package/driver/skills/clearance-search/report-prose.md +3 -4
- package/driver/skills/clearance-search/risk-framework-demo.md +1 -1
- package/driver/skills/clearance-search/risk-framework-triage.manifest.json +3 -3
- package/driver/skills/clearance-search/risk-framework-triage.md +7 -9
- package/driver/skills/clearance-search/risk-framework.manifest.json +1 -1
- package/driver/skills/clearance-search/risk-framework.md +1 -1
- package/driver/skills/clearance-search/synthesis-rules.md +30 -107
- package/driver/skills/clearance-search/worked-examples.md +5 -5
- package/driver/skills/clearance-variants/SKILL.md +46 -45
- package/driver/skills/clearance-variants/transliteration-scripts.md +4 -4
- package/driver/skills/frame-diff/SKILL.md +1 -1
- package/driver/skills/knockout-assess/SKILL.md +6 -14
- package/driver/skills/knockout-frame/SKILL.md +1 -1
- package/driver/skills/matter-frame/SKILL.md +7 -12
- package/driver/skills/matter-frame/watchlist-reference.md +1 -4
- package/driver/skills/narrative-refutation/SKILL.md +20 -30
- package/driver/skills/placement-inquiry/SKILL.md +10 -20
- package/driver/skills-store-provenance.mjs +1 -1
- package/driver/stage-context.mjs +32 -35
- package/driver/stage-freshness.mjs +127 -11
- package/driver/stages-knockout.mjs +49 -22
- package/driver/stages.mjs +89 -288
- package/driver/status-snapshot.mjs +2 -1
- package/driver/steps/correction-cycle.mjs +311 -0
- package/driver/steps/corrections.mjs +644 -0
- package/driver/steps/delivery.mjs +1287 -0
- package/driver/steps/frame-comparison.mjs +927 -0
- package/driver/steps/intake.mjs +84 -0
- package/driver/steps/open-run.mjs +419 -0
- package/driver/steps/overview-and-cards.mjs +899 -0
- package/driver/steps/placement-and-digest.mjs +23 -0
- package/driver/steps/register-sweep.mjs +1563 -0
- package/driver/steps/skeptic-and-follow-up.mjs +836 -0
- package/driver/steps/synthesis.mjs +261 -0
- package/driver/steps/verdict-gate.mjs +968 -0
- package/driver/suite-census.json +456 -96
- package/driver/surface-exit-verdict.mjs +0 -8
- package/driver/synthesis-record.mjs +72 -6
- package/driver/terminal-clamp.mjs +10 -0
- package/driver/tokens.mjs +8 -62
- package/driver/tool-calls.mjs +2 -2
- package/driver/unexecuted-asserts.json +2 -2
- package/driver/unit-state-verdict.mjs +1 -1
- package/driver/usage-ledger.mjs +2 -1
- package/driver/verify-knockout.mjs +20 -35
- package/driver/verify.mjs +47 -36
- package/driver/web-grid.mjs +3 -4
- package/driver/whatif-memo-run.mjs +2 -2
- package/driver/whatif-queue.mjs +4 -3
- package/driver/withheld-families.mjs +14 -15
- package/driver/worker-heartbeat.mjs +3 -2
- package/driver/write-up-form.mjs +0 -3
- package/mcp-server/CHANGELOG.md +8 -0
- package/mcp-server/http-server.mjs +11 -12
- package/mcp-server/lib/brief.mjs +22 -4
- package/mcp-server/lib/events.mjs +2 -2
- package/mcp-server/lib/evidence.mjs +3 -2
- package/mcp-server/lib/findings.mjs +2 -1
- package/mcp-server/lib/knockout.mjs +9 -10
- package/mcp-server/lib/ops.mjs +9 -9
- package/mcp-server/lib/runs.mjs +9 -10
- package/mcp-server/lib/trace.mjs +1 -1
- package/mcp-server/lib/whatif.mjs +2 -3
- package/mcp-server/package.json +1 -1
- package/mcp-server/server.mjs +5 -5
- package/node_modules/buffers/package.json +1 -1
- package/package.json +2 -1
- package/portal-ui/dist/assets/{index-fPqAU0sx.js → index-CYaO2ygd.js} +26 -14
- package/portal-ui/dist/assets/{index-AtB9ZpDH.css → index-izLa9apq.css} +2 -2
- package/portal-ui/dist/index.html +4 -4
- package/portal-ui/package.json +3 -3
- package/providers/README.md +1 -1
- package/providers/_shared/answer-memory.mjs +4 -5
- package/providers/_shared/execute-plan.mjs +48 -1
- package/providers/_shared/records-from-search.mjs +46 -0
- package/providers/clarivate/README.md +2 -2
- package/providers/clarivate/src/adapter.js +147 -0
- package/providers/clarivate/src/core.js +1 -14
- package/{driver/engine/mcp/clarivate-server.mjs → providers/clarivate/src/mount.js} +5 -10
- package/providers/corsearch/README.md +3 -3
- package/providers/corsearch/src/adapter.js +80 -0
- package/providers/corsearch/src/core.js +14 -11
- package/{driver/engine/mcp/corsearch-server.mjs → providers/corsearch/src/mount.js} +5 -10
- package/providers/euipo/README.md +2 -2
- package/providers/euipo/src/adapter.js +85 -0
- package/providers/euipo/src/core.js +1 -1
- package/providers/euipo/src/euipo-client.js +1 -2
- package/{driver/engine/mcp/euipo-server.mjs → providers/euipo/src/mount.js} +5 -10
- package/providers/free-tier/README.md +2 -2
- package/providers/free-tier/src/adapter.js +127 -0
- package/{driver/engine/mcp/free-tier-server.mjs → providers/free-tier/src/mount.js} +5 -10
- package/providers/jx-subclass/coverage.mjs +1 -6
- package/providers/jx-subclass/score-truth.mjs +2 -1
- package/providers/oauth-mcp-bridge/CHANGELOG.md +8 -0
- package/providers/oauth-mcp-bridge/package.json +1 -1
- package/providers/perplexity/src/core.js +2 -2
- package/providers/signa/README.md +2 -2
- package/providers/signa/src/adapter.js +157 -0
- package/providers/signa/src/capabilities.js +0 -3
- package/providers/signa/src/core.js +2 -2
- package/{driver/engine/mcp/signa-server.mjs → providers/signa/src/mount.js} +7 -12
- package/providers/signa/src/offices.generated.js +17 -15
- package/providers/uspto-local/README.md +1 -1
- package/providers/uspto-local/bin/verify-index.mjs +1 -1
- package/providers/uspto-local/src/adapter.js +75 -0
- package/{driver/engine/mcp/uspto-local-server.mjs → providers/uspto-local/src/mount.js} +5 -10
- package/scripts/band-shape-probe.mjs +2 -2
- package/scripts/citation-line-check.mjs +7 -7
- package/scripts/compare.mjs +1 -1
- package/scripts/dead-names.mjs +2 -2
- package/scripts/e2e-first-time.mjs +19 -7
- package/scripts/e2e.mjs +13 -13
- package/scripts/engine-probe.mjs +1 -1
- package/scripts/env-audit.mjs +7 -4
- package/scripts/env-classify.mjs +5 -1
- package/scripts/feedback-mint.mjs +1 -1
- package/scripts/freeze-example-run.mjs +7 -7
- package/scripts/mint-suite-census.mjs +2 -2
- package/scripts/nightly-notice.mjs +1 -1
- package/scripts/release-cut-decision.mjs +7 -2
- package/scripts/release-note-required.mjs +26 -9
- package/scripts/release-notes-lint.mjs +3 -2
- package/scripts/release-version-pr-checks.mjs +1 -1
- package/scripts/render-check.mjs +1 -1
- package/scripts/settings-render-check.mjs +23 -3
- package/scripts/test-run.mjs +5 -5
- package/scripts/travelling-predicates.mjs +1 -1
- package/scripts/undeclared-field-census.mjs +1 -1
- package/scripts/unexecuted-asserts.mjs +3 -3
- package/scripts/verify-publishable.mjs +1 -1
- package/shared/client-door.mjs +1 -1
- package/shared/connect-clients.mjs +1 -1
- package/shared/connector-signin-probe.mjs +1 -1
- package/shared/customer-store.mjs +3 -2
- package/shared/env-aliases.mjs +1 -1
- package/shared/invocation.mjs +14 -2
- package/shared/names-in-force.mjs +2 -0
- package/shared/register-selection.mjs +2 -2
- package/shared/store-in-repo.mjs +3 -3
- package/shared/summary-blocks.mjs +0 -3
- package/shared/trigger-lane.mjs +1 -1
- package/shared/vacuous-pass.mjs +2 -2
- package/shared/verb-shim.mjs +4 -2
- package/vendor/buffers/package.json +1 -1
- package/node_modules/exceljs/README.md +0 -3023
package/.env.example
CHANGED
|
@@ -288,7 +288,7 @@ OPENAI_API_KEY=
|
|
|
288
288
|
# reason worth knowing before you leave it unset: an unset variable took Corsearch in silence, and the
|
|
289
289
|
# credential guard could not catch it because both boxes carried CORSEARCH_SESSION_KEY.
|
|
290
290
|
#
|
|
291
|
-
# ADR-0001 recommends Signa, not Corsearch: one self-serve key, US + EU + WIPO and
|
|
291
|
+
# ADR-0001 recommends Signa, not Corsearch: one self-serve key, US + EU + WIPO and twelve more offices.
|
|
292
292
|
#
|
|
293
293
|
# Corsearch.
|
|
294
294
|
CORSEARCH_SESSION_KEY=changeme
|
|
@@ -298,11 +298,11 @@ CLARIVATE_API_KEY=changeme
|
|
|
298
298
|
SIGNA_API_KEY=changeme
|
|
299
299
|
#
|
|
300
300
|
# The run memory: within one run, reuse an answer the register already gave instead of asking again.
|
|
301
|
-
#
|
|
302
|
-
#
|
|
303
|
-
#
|
|
301
|
+
# Both start on, and `off` asks every time. Signa's also takes `watch`, which still sends every request
|
|
302
|
+
# and records whether a held answer would have matched. Read when a run starts, by
|
|
303
|
+
# providers/_shared/answer-memory.mjs.
|
|
304
304
|
# effect: tuning
|
|
305
|
-
CLEAROTRON_SIGNA_ANSWER_MEMORY=
|
|
305
|
+
CLEAROTRON_SIGNA_ANSWER_MEMORY=on
|
|
306
306
|
# effect: tuning
|
|
307
307
|
CLEAROTRON_CLARIVATE_ANSWER_MEMORY=on
|
|
308
308
|
#
|
|
@@ -492,7 +492,7 @@ CLEAROTRON_WHATIF_MAX_CONCURRENT=1
|
|
|
492
492
|
# exist because a deployment cannot be configured without it.
|
|
493
493
|
#
|
|
494
494
|
# IT EXISTS BECAUSE OF WHO READS IT AT 2AM. Somebody whose unit will not start reads
|
|
495
|
-
# `${CLEAROTRON_CHECKOUT_DIR}` in an ExecStart, comes to
|
|
495
|
+
# `${CLEAROTRON_CHECKOUT_DIR}` in an ExecStart, comes to this catalogue, and
|
|
496
496
|
# finds nothing. `shared/names-in-force.mjs` already knew the name; neither governance document did.
|
|
497
497
|
# A row that says "the installer writes this" is the answer to their question — the absence was not.
|
|
498
498
|
#
|
|
@@ -517,7 +517,7 @@ CLEAROTRON_CHECKOUT_DIR=
|
|
|
517
517
|
#
|
|
518
518
|
# Found by the audit rather than by the diagnosis that prompted it — they arrived with
|
|
519
519
|
# tonight's release-pipeline work and the catalogue ratchet caught them on the next run, which is the
|
|
520
|
-
# ratchet doing its job.
|
|
520
|
+
# ratchet doing its job. Recorded here rather than silently absorbed.
|
|
521
521
|
|
|
522
522
|
# The commit the cut decision is ABOUT. The workflow sets it to `github.sha` — the push — because the
|
|
523
523
|
# checkout may have moved on since, and a decision made about "whatever HEAD is now" tried to republish
|
package/INSTALL.md
CHANGED
|
@@ -121,7 +121,7 @@ run is [mcp-server/CONNECT.md](mcp-server/CONNECT.md), and why something is the
|
|
|
121
121
|
Which register you pick is the first real decision, and the tiers are not equally easy to reach.
|
|
122
122
|
[providers/README.md](providers/README.md) is the canonical ladder and
|
|
123
123
|
[ADR-0001](docs/decisions/0001-register-ladder.md) is the reasoning. The short version: **Signa** is
|
|
124
|
-
the recommended route (one self-serve key,
|
|
124
|
+
the recommended route (one self-serve key, fifteen offices), **`free-tier`** is EU + US with no vendor
|
|
125
125
|
contract but a 41.5 GB build for the US half (§3a), and **Corsearch / Clarivate** are the widest
|
|
126
126
|
coverage on a vendor-issued credential. Whatever the chosen register cannot reach becomes a disclosed
|
|
127
127
|
deferred-coverage row rather than a silent gap, at every tier.
|
|
@@ -147,7 +147,7 @@ testing, or while a stable is being prepared; it built and the suite passed, and
|
|
|
147
147
|
register through it.
|
|
148
148
|
|
|
149
149
|
**npm's global form works too**, where npm's global directory is yours to write:
|
|
150
|
-
`npm install -g clearotron`, then `
|
|
150
|
+
`npm install -g clearotron`, then `clearotron install`. For the beta,
|
|
151
151
|
`npm install -g clearotron@beta`, then `clearotron install`. On a Linux Node from the distribution or
|
|
152
152
|
NodeSource that directory is `/usr`, owned by root, and npm refuses with `EACCES`. Do not answer that
|
|
153
153
|
with `sudo`; install under your home instead: `npm install -g clearotron --prefix ~/.local`, or
|
|
@@ -172,7 +172,7 @@ mkdir ~/app && cd ~/app
|
|
|
172
172
|
npm init -y
|
|
173
173
|
npm install /path/to/clearotron-<version>.tgz
|
|
174
174
|
npx clearotron install # the wizard
|
|
175
|
-
npx clearotron doctor # reads; writes nothing
|
|
175
|
+
npx clearotron doctor # reads; writes nothing and contacts nothing outside this machine
|
|
176
176
|
```
|
|
177
177
|
|
|
178
178
|
`npx` works from `~/app` because npm links a **dependency's** `bin` into the consuming project — the
|
|
@@ -209,7 +209,7 @@ folder §2 had you create, `~/app`: delete that folder. On those two routes setu
|
|
|
209
209
|
|
|
210
210
|
**The reasoning program, if setup installed it.** Setup puts Claude Code or the Codex CLI in one folder,
|
|
211
211
|
`~/.local/share/clearotron/engines`, or where `CLEAROTRON_ENGINES_DIR` points. Delete the folder to
|
|
212
|
-
remove it.
|
|
212
|
+
remove it, and `~/.local/share/clearotron` too once it is empty.
|
|
213
213
|
|
|
214
214
|
**What the reasoning program keeps for itself.** Claude Code keeps its sign-in and settings in
|
|
215
215
|
`~/.claude` and `~/.claude.json`, and setup's engine check creates them if they were not there.
|
|
@@ -224,8 +224,8 @@ Any `npm install` also keeps what it downloaded in npm's cache, `~/.npm/_cacache
|
|
|
224
224
|
|
|
225
225
|
**The settings, and the keys.** `~/.config/clearotron/.env` holds this install's signing secrets, so
|
|
226
226
|
deleting it invalidates every key it ever issued. Beside it: `~/.config/clearotron/token-denylist`, the
|
|
227
|
-
list of keys you revoked, and `~/.config/clearotron/running`,
|
|
228
|
-
|
|
227
|
+
list of keys you revoked, and `~/.config/clearotron/running`, a folder holding one small file for each
|
|
228
|
+
product running in a terminal.
|
|
229
229
|
|
|
230
230
|
**Your work.** The install keeps it all under one directory, `~/trademark` by default — wherever
|
|
231
231
|
`CLEAROTRON_REPORTS_DIR`'s parent points if you moved it:
|
|
@@ -323,10 +323,10 @@ archive somebody else owns. The workspace root defaults to `$HOME/trademark/work
|
|
|
323
323
|
what `npx clearotron install` writes, so the wizard and the bare default agree.
|
|
324
324
|
|
|
325
325
|
If you would rather not write this file by hand, `npx clearotron install` asks for a base directory, creates
|
|
326
|
-
these paths under it,
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
these paths under it, and never touches a path you did not name. Before saving your settings, setup checks
|
|
327
|
+
what it can: an offered engine turn, an EUIPO token exchange, and an offered Perplexity ping. It does not
|
|
328
|
+
probe a paid register key. A call against a metered subscription is a charge you did not ask for, so that
|
|
329
|
+
credential is written on your word. `clearotron doctor`
|
|
330
330
|
reports what is set and what is missing, and writes nothing.
|
|
331
331
|
|
|
332
332
|
Only the integrator-set knobs are shown — copy what you need:
|
package/QUICKSTART.md
CHANGED
|
@@ -11,7 +11,7 @@ of its own and calls nothing on your behalf.
|
|
|
11
11
|
| What | Why | Where |
|
|
12
12
|
|---|---|---|
|
|
13
13
|
| A reasoning program | Every stage runs as a headless turn of it | [Claude Code](https://claude.com/claude-code) (`claude`) or the Codex CLI (`codex`). Setup installs it if the machine has none. Sign in with the program setup installed (doctor prints its path), or with `claude` or `codex login` if the machine has its own |
|
|
14
|
-
| A register | Sets what the search reaches, and what it costs | [Signa](https://signa.so) — one key, self-serve, US + EU + WIPO and
|
|
14
|
+
| A register | Sets what the search reaches, and what it costs | [Signa](https://signa.so) — one key, self-serve, US + EU + WIPO and twelve more offices |
|
|
15
15
|
| Web research | Covers the open web and the marketplaces. The three clearance searches need it; a Knockout search runs without it | [Perplexity](https://www.perplexity.ai) |
|
|
16
16
|
|
|
17
17
|
Only the native-language investigation of China, Hong Kong, Taiwan or Macau uses a fourth,
|
|
@@ -32,8 +32,8 @@ it from, and closing the window stops it.
|
|
|
32
32
|
## Install
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
npx clearotron install # offers to install the reasoning program if the machine has none, and shows you how to sign it in
|
|
36
|
-
clearotron doctor --probe-engine
|
|
35
|
+
npx clearotron install # in a terminal: it asks one question at a time, offers to install the reasoning program if the machine has none, and shows you how to sign it in
|
|
36
|
+
clearotron doctor # reads only; add --probe-engine to spend one cheap turn proving the AI
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
`install` puts the program under `~/.local` and needs no root, and every command after it here uses the
|
|
@@ -44,9 +44,9 @@ That installs the stable release. For the newest beta, run `npx clearotron@beta
|
|
|
44
44
|
[docs/RELEASES.md](docs/RELEASES.md) says what each one promises.
|
|
45
45
|
|
|
46
46
|
`doctor` is the one to read. It checks that the reasoning program is there, on `PATH` or as the copy
|
|
47
|
-
setup installed
|
|
48
|
-
|
|
49
|
-
fails at the first stage.
|
|
47
|
+
setup installed, and that your register credential resolves. `clearotron doctor` reports the
|
|
48
|
+
configuration without running an AI turn. Add `--probe-engine` to run a proof turn. An executable that is
|
|
49
|
+
signed out passes every other check and fails at the first stage.
|
|
50
50
|
|
|
51
51
|
## Run one
|
|
52
52
|
|
package/README.md
CHANGED
|
@@ -76,8 +76,8 @@ says which one holds your reports so you can keep them deliberately.
|
|
|
76
76
|
|
|
77
77
|
## Quick start
|
|
78
78
|
|
|
79
|
-
With it installed, check what it found before it does anything. `doctor` only reads — it writes nothing
|
|
80
|
-
|
|
79
|
+
With it installed, check what it found before it does anything. `doctor` only reads — it writes nothing and contacts
|
|
80
|
+
nothing outside this machine, and names whatever is still missing:
|
|
81
81
|
|
|
82
82
|
```bash
|
|
83
83
|
clearotron doctor
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -80,7 +80,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
80
80
|
THE SOFTWARE.
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
## @hono/node-server@2.1.
|
|
83
|
+
## @hono/node-server@2.1.8
|
|
84
84
|
|
|
85
85
|
- **Licence declared:** `MIT`
|
|
86
86
|
- **Repository:** https://github.com/honojs/node-server
|
|
@@ -2480,7 +2480,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
2480
2480
|
SOFTWARE.
|
|
2481
2481
|
```
|
|
2482
2482
|
|
|
2483
|
-
## hono@4.13.
|
|
2483
|
+
## hono@4.13.18
|
|
2484
2484
|
|
|
2485
2485
|
- **Licence declared:** `MIT`
|
|
2486
2486
|
- **Repository:** https://github.com/honojs/hono
|
|
@@ -2781,7 +2781,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
|
2781
2781
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
2782
2782
|
```
|
|
2783
2783
|
|
|
2784
|
-
## jose@6.2.
|
|
2784
|
+
## jose@6.2.15
|
|
2785
2785
|
|
|
2786
2786
|
- **Licence declared:** `MIT`
|
|
2787
2787
|
- **Repository:** panva/jose
|
|
@@ -6250,7 +6250,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
6250
6250
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
6251
6251
|
```
|
|
6252
6252
|
|
|
6253
|
-
## undici@7.30.
|
|
6253
|
+
## undici@7.30.2
|
|
6254
6254
|
|
|
6255
6255
|
- **Licence declared:** `MIT`
|
|
6256
6256
|
- **Repository:** https://github.com/nodejs/undici
|
package/bin/README.md
CHANGED
|
@@ -14,7 +14,7 @@ and is what you want when you are working in this tree.
|
|
|
14
14
|
| File | Shipped verb | In a checkout | Cost |
|
|
15
15
|
|---|---|---|---|
|
|
16
16
|
| `example.mjs` | `clearotron demo` | `npx clearotron demo` | Free. No credentials, no model, no engine, no register call. |
|
|
17
|
-
| `onboard.mjs` | `clearotron install` | `npm run setup` | **Spends one cheap engine turn.** `clearotron doctor` writes nothing and
|
|
17
|
+
| `onboard.mjs` | `clearotron install` | `npm run setup` | **Spends one cheap engine turn.** `clearotron doctor` writes nothing and contacts nothing outside this machine. |
|
|
18
18
|
| `start.mjs` | `clearotron start` | `npm start` | Free to start. What it starts can spend — see below. |
|
|
19
19
|
| `uspto-sync.mjs` | `clearotron sync` | `npm run sync:uspto` | Not billed, but 41.5 GB of download and about nine hours of indexing. |
|
|
20
20
|
| `signa-sync.mjs` | — | `node bin/signa-sync.mjs` | One vendor read (`GET /v1/offices`, paged). Needs `SIGNA_API_KEY`. |
|
|
@@ -54,7 +54,7 @@ each office's own `status`, and a failed sync exits non-zero with the existing s
|
|
|
54
54
|
|
|
55
55
|
## Where to start
|
|
56
56
|
|
|
57
|
-
`example.mjs` (
|
|
57
|
+
`example.mjs` (485 lines) is the shortest complete path through the system: frozen example, ordinary
|
|
58
58
|
publisher, local pool, loopback server. Then read the header of `start.mjs` for why the portal and the
|
|
59
59
|
engine door are separate processes, and what each of those two doors demands of a caller.
|
|
60
60
|
|
package/bin/clearotron.mjs
CHANGED
|
@@ -70,7 +70,7 @@ export const VERBS = {
|
|
|
70
70
|
|
|
71
71
|
export const SUMMARY = {
|
|
72
72
|
install: "configure this install — one question at a time, nothing written until each answer checks out",
|
|
73
|
-
doctor: "report what this machine is configured for. Writes nothing
|
|
73
|
+
doctor: "report what this machine is configured for. Writes nothing and contacts nothing outside this machine",
|
|
74
74
|
demo: "replay a finished example clearance and serve it. No keys, no model, no account",
|
|
75
75
|
start: "start the product — the portal, the engine door, the client door and the worker — and print one address to open",
|
|
76
76
|
stop: "stop the background product and give the box back — connect's door is not touched",
|
package/bin/connect.mjs
CHANGED
|
@@ -58,7 +58,7 @@ import { invocationPrefix } from "../shared/invocation.mjs";
|
|
|
58
58
|
import { BRAND } from "../shared/brand.mjs";
|
|
59
59
|
import { mintToken, tokenId, resolvePerson, loadGrants } from "../shared/scope.mjs";
|
|
60
60
|
import { envFrom } from "../shared/env-aliases.mjs";
|
|
61
|
-
import { atomicWrite } from "../driver/
|
|
61
|
+
import { atomicWrite } from "../driver/run-record.mjs";
|
|
62
62
|
// — F40. SERVER_INSTALL_SET is what `bin/start.mjs` re-exports as
|
|
63
63
|
// BACKGROUND_UNITS; taken from shared/ so this verb does not reach into another bin/ entry point.
|
|
64
64
|
import { SERVER_INSTALL_SET, unitHealthVerdict } from "../shared/server-units.mjs";
|
package/bin/disconnect.mjs
CHANGED
|
@@ -62,7 +62,7 @@ import { defaultDenylistPath, disablePlan, revokeEveryonePlan, applyDisablePlan,
|
|
|
62
62
|
import { loadGrants } from "../shared/scope.mjs";
|
|
63
63
|
import { envFrom } from "../shared/env-aliases.mjs";
|
|
64
64
|
import { isEntrypoint } from "../shared/is-entrypoint.mjs";
|
|
65
|
-
import { atomicWrite } from "../driver/
|
|
65
|
+
import { atomicWrite } from "../driver/run-record.mjs";
|
|
66
66
|
|
|
67
67
|
const UNIT_DIR = join(homedir(), ".config", "systemd", "user");
|
|
68
68
|
const ENV_PATH = join(homedir(), ".env");
|
package/bin/example.mjs
CHANGED
|
@@ -392,8 +392,8 @@ if (has("--once")) {
|
|
|
392
392
|
*
|
|
393
393
|
* "Removing the demo is one directory" is a promise, and it was not quite true before: 0.1.0 wrote the
|
|
394
394
|
* sign-in credential to the shared default, `~/.cordillera/portal-local-credential.json`, so a reader
|
|
395
|
-
* who removed the demo base left a passphrase behind — measured on a wiped machine
|
|
396
|
-
*
|
|
395
|
+
* who removed the demo base left a passphrase behind — measured on a wiped machine, against the
|
|
396
|
+
* published 0.1.0 tarball. This tree writes it inside the base, and the revocation list with
|
|
397
397
|
* it, so the promise holds now. Every install made with 0.1.0 still has the stray copy.
|
|
398
398
|
*
|
|
399
399
|
* ✕ NOT AN INSTRUCTION TO DELETE. That path is ALSO where a real, non-demo install keeps the passphrase
|
package/bin/grant.mjs
CHANGED
|
@@ -66,7 +66,7 @@ import { readFileSync, existsSync } from "node:fs";
|
|
|
66
66
|
import { assertGrantsShape } from "../shared/scope.mjs"; // — one shape check, not a second opinion
|
|
67
67
|
import { withPerson, withoutPerson, personPoints, withOrganisation, withCompany } from "../shared/grants-edit.mjs"; // — the People page's own editors
|
|
68
68
|
import { basename } from "node:path";
|
|
69
|
-
import { atomicWrite } from "../driver/
|
|
69
|
+
import { atomicWrite } from "../driver/run-record.mjs";
|
|
70
70
|
import { accessView } from "../driver/portal-config-view.mjs";
|
|
71
71
|
import { makePrincipal } from "../driver/portal-access.mjs";
|
|
72
72
|
import { envFrom } from "../shared/env-aliases.mjs"; // — resolves EITHER spelling; names the retired one because that is the live-writable half
|
package/bin/onboard.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
3
|
// Copyright 2026 Cordillera Sàrl. Additional terms under section 7 of the AGPL-3.0 apply — see ADDITIONAL-TERMS.md
|
|
4
|
-
// clearotron install / clearotron doctor — one install from
|
|
4
|
+
// clearotron install / clearotron doctor — one install, from nothing to a first real run.
|
|
5
5
|
//
|
|
6
6
|
// npx clearotron install the wizard: one decision at a time, Enter takes the default
|
|
7
7
|
// npx clearotron doctor report what this machine is configured for. Writes NOTHING.
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
// CACHE-BUSTED specifier so its module-level const is evaluated afresh, and process.env is restored
|
|
56
56
|
// afterwards. Without the cache-bust it works exactly once per process and is wrong every time after —
|
|
57
57
|
// which is worse than not working, because the wrong answer is a pass. The signature is misleading;
|
|
58
|
-
//
|
|
58
|
+
// the fix belongs in driver.config.mjs, not in this wizard.
|
|
59
59
|
|
|
60
60
|
import { spawnSync, execFileSync } from "node:child_process"; // — the wizard installs the engine when asked, and only when asked;
|
|
61
61
|
// execFileSync is doctor's read-only `systemctl show`
|
|
@@ -243,7 +243,7 @@ export const cloudAccount = (cloud) =>
|
|
|
243
243
|
export const servedLine = (v) => (v?.served || v?.provider)
|
|
244
244
|
? `served by ${v.served ?? "a model the program did not name"}${v.provider ? `; the program names its provider "${v.provider}"` : ""}.`
|
|
245
245
|
: null;
|
|
246
|
-
import { runRequiredNames, missingRequirements, billingRefusalWords, whatIsMissing, cannotSearchYet, REGISTER_ENV, ENGINE_ENV } from "../driver/run-requirements.mjs"; // the order-time gate's own question, asked here rather than restated
|
|
246
|
+
import { runRequiredNames, missingRequirements, billingRefusalWords, whatIsMissing, rowsToName, cannotSearchYet, REGISTER_ENV, ENGINE_ENV } from "../driver/run-requirements.mjs"; // the order-time gate's own question, asked here rather than restated
|
|
247
247
|
import { pinEnv, envFrom } from "../shared/env-aliases.mjs";
|
|
248
248
|
import { isEntrypoint } from "../shared/is-entrypoint.mjs"; // — one entry-point test, all spellings
|
|
249
249
|
// one synopsis reader for every verb that prints one.
|
|
@@ -842,6 +842,26 @@ export async function askSignIn(io, { localAccount = "user", existing = null } =
|
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
|
|
845
|
+
/**
|
|
846
|
+
* Doctor's line for each AI program setup installed, for a machine where no AI is chosen: a reader who declined
|
|
847
|
+
* setup's trial turn has a program and no AI, and the guides say doctor prints its path (measured in a stranger
|
|
848
|
+
* walk of a beta, 2026-11-10: it printed none). Claude's program signs in by being run; Codex's by its `login`.
|
|
849
|
+
* `resolve` is driver.config.mjs's resolveEngineProgram, a parameter so the lines can be driven. PURE given it.
|
|
850
|
+
*/
|
|
851
|
+
export function installedProgramLines(env = process.env, { resolve: find = resolveEngineProgram } = {}) {
|
|
852
|
+
const lines = [];
|
|
853
|
+
for (const [id, eng] of Object.entries(ENGINE_BINARIES)) {
|
|
854
|
+
const r = find(id, { env });
|
|
855
|
+
if (r?.source !== "installed" || !r.resolved) continue;
|
|
856
|
+
const own = /^run `[^`]+`$/.test(String(eng.signIn ?? ""));
|
|
857
|
+
const signIn = own
|
|
858
|
+
? `R${namingProgram(eng.signIn, eng, { source: "installed", path: r.resolved }).slice(1)} once in a terminal to sign in.`
|
|
859
|
+
: "Run it once in a terminal to sign in.";
|
|
860
|
+
lines.push(`${eng.product}'s program, installed by setup: ${r.resolved}. ${signIn}`);
|
|
861
|
+
}
|
|
862
|
+
return lines;
|
|
863
|
+
}
|
|
864
|
+
|
|
845
865
|
/**
|
|
846
866
|
* An engine binary, resolved the way the engine resolves it — and the trap that resolution carries.
|
|
847
867
|
*
|
|
@@ -918,7 +938,7 @@ export function proofFailureLine(v, product) {
|
|
|
918
938
|
* what to check, so it says how to change what the turn ran on instead. A sign-in the subscription uses
|
|
919
939
|
* would not be used under either, so no token is offered there.
|
|
920
940
|
*/
|
|
921
|
-
export function signInHandOff(eng, bin, billing) {
|
|
941
|
+
export function signInHandOff(eng, bin, billing, { turnRan = true } = {}) {
|
|
922
942
|
if (billing === "cloud") return { lines: ["if you fixed the cloud's sign-in on this machine, answer yes below; to change the answers "
|
|
923
943
|
+ "above, answer no and pick the engine again."], captureToken: false };
|
|
924
944
|
if (billing === "api-key") return { lines: ["to give a different key, answer no below and pick the engine again."], captureToken: false };
|
|
@@ -926,8 +946,10 @@ export function signInHandOff(eng, bin, billing) {
|
|
|
926
946
|
// not as "sign in": these lines follow every failed turn, a spent quota as much as a sign-out. And the yes
|
|
927
947
|
// it asks for is the retry's, named. On Claude a token question follows the retry, and it wants a no after a
|
|
928
948
|
// browser sign-in.
|
|
949
|
+
// AFTER A DECLINE NO TURN HAS RUN, so the question is the turn "now", not "again" (measured in a stranger walk of a
|
|
950
|
+
// beta, 2026-11-10: the reader was asked to run again a turn they had just declined).
|
|
929
951
|
const lines = ["setup waits in this terminal, so run the commands below in a second one:",
|
|
930
|
-
`if it is signed out: ${namingProgram(eng.signIn, eng, bin)}, then answer yes to "Run the turn again".`];
|
|
952
|
+
`if it is signed out: ${namingProgram(eng.signIn, eng, bin)}, then answer yes to "${turnRan ? "Run the turn again" : "Run the turn now"}".`];
|
|
931
953
|
// Codex's headless sign-in runs HERE, so it names the copy that runs here. Claude's token can be made on
|
|
932
954
|
// any machine, so its command keeps the bare word, and this machine's copy is named beside it.
|
|
933
955
|
if (eng.headless) {
|
|
@@ -1575,13 +1597,21 @@ const TURN_KEPT_ITS_FILES = "Clearotron wrote nothing; the AI program's test tur
|
|
|
1575
1597
|
* (`turnRan`). The settings file is only ever written at the end, so that part stays true, and the line
|
|
1576
1598
|
* says what does stay. "Nothing was written." is kept for the cancel where it is still true.
|
|
1577
1599
|
*/
|
|
1578
|
-
export function cancelledLine(
|
|
1579
|
-
|
|
1600
|
+
export function cancelledLine(left = {}) {
|
|
1601
|
+
return `cancelled. ${whatSetupLeft(left) ?? "Nothing was written."}`;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* What setup has already put on the machine when it stops early, or null when that is nothing. A cancel says it,
|
|
1606
|
+
* and so do the two refusals after the engine step, which said "Nothing has been written." whatever had run.
|
|
1607
|
+
*/
|
|
1608
|
+
export function whatSetupLeft({ copy = null, engine = null, turnRan = false } = {}) {
|
|
1609
|
+
if (!copy && !engine) return turnRan ? TURN_KEPT_ITS_FILES : null;
|
|
1580
1610
|
const stays = copy && engine
|
|
1581
1611
|
? `clearotron ${copy.version} stays installed in ${copy.prefix}, and ${engine.vendor}'s CLI in ${engine.dir}.`
|
|
1582
1612
|
: copy ? `clearotron ${copy.version} stays installed in ${copy.prefix}.`
|
|
1583
1613
|
: `${engine.vendor}'s CLI stays installed in ${engine.dir}.`;
|
|
1584
|
-
return `
|
|
1614
|
+
return `No settings were written. ${stays}${turnRan ? " The AI program's test turn keeps its own files." : ""}`;
|
|
1585
1615
|
}
|
|
1586
1616
|
export async function runCheck() {
|
|
1587
1617
|
say("\n Trademark clearance engine — configuration check\n");
|
|
@@ -1853,8 +1883,9 @@ export async function runCheck() {
|
|
|
1853
1883
|
if (!serviceKnown) {
|
|
1854
1884
|
info("the units' environment could not be read, so what a search would be refused for is NOT checked here — a failure to look is not a clean result");
|
|
1855
1885
|
} else if (atOrder.length) {
|
|
1856
|
-
|
|
1857
|
-
|
|
1886
|
+
const named = rowsToName(atOrder);
|
|
1887
|
+
blocking(`a search is refused until ${named.length === 1 ? "this is" : "these are"} set in ${serviceEnvLabel}: ${named.map((r) => r.name).join(", ")}`);
|
|
1888
|
+
for (const r of named) info(` ${r.name} — ${r.why}`);
|
|
1858
1889
|
} else ok(`nothing a search is refused for at order time is missing from ${serviceEnvLabel}`);
|
|
1859
1890
|
};
|
|
1860
1891
|
const sayResearch = () => {
|
|
@@ -2088,8 +2119,10 @@ export async function runCheck() {
|
|
|
2088
2119
|
// reason. Which engine is configured comes first now, and the binary is checked through THAT engine's
|
|
2089
2120
|
// variable.
|
|
2090
2121
|
// The mode of a machine that cannot start a search, said by both branches below that reach it.
|
|
2091
|
-
|
|
2092
|
-
|
|
2122
|
+
// NOTHING IS LIVE WHILE NOTHING RUNS: the line said the example report and the connection were "live right now" on a
|
|
2123
|
+
// machine running nothing (measured in a stranger walk of a beta, 2026-11-10). It names the command that shows them.
|
|
2124
|
+
const demoModeLine = () => "MODE: demo — new searches are unavailable. "
|
|
2125
|
+
+ `\`${reachableCommand("demo")}\` shows the example report, its audit trail and the assistant connection, and needs no engine.`;
|
|
2093
2126
|
if (!serviceKnown) {
|
|
2094
2127
|
info("the units' environment could not be read, so which AI the services run is not judged here — a failure to look, not a finding");
|
|
2095
2128
|
} else if (engSel && !engSpec) {
|
|
@@ -2106,6 +2139,7 @@ export async function runCheck() {
|
|
|
2106
2139
|
const noAiChosen = !servicesRead("CLEAROTRON_AI");
|
|
2107
2140
|
if (noAiChosen) info(`CLEAROTRON_AI is not set, so no AI is chosen, `
|
|
2108
2141
|
+ `and a search is refused until one is. \`${invoke("install")}\` asks which AI to use.`);
|
|
2142
|
+
if (noAiChosen) for (const line of installedProgramLines()) info(line);
|
|
2109
2143
|
else info(`CLEAROTRON_AI is not set — the code default is ${DEFAULT_ENGINE_ID}, and one engine serves every stage of every run on this machine`);
|
|
2110
2144
|
// AND NOTHING BELOW IT IS READ OFF THE DEFAULT (engineChosen, above the opening): no program, no payment
|
|
2111
2145
|
// and no turn, which would all describe an AI nobody chose. The machine is in demo mode, and the way out
|
|
@@ -2134,7 +2168,7 @@ export async function runCheck() {
|
|
|
2134
2168
|
// asked to check.
|
|
2135
2169
|
//
|
|
2136
2170
|
// It is the same short call setup's engine menu already makes (menuVersion): `--version`, two
|
|
2137
|
-
// seconds, no session and no network. That is within "
|
|
2171
|
+
// seconds, no session and no network. That is within "contacts nothing outside this machine" — what that promises is no
|
|
2138
2172
|
// provider call and no spend, not that nothing on this machine may be asked its own version.
|
|
2139
2173
|
const versionOf = (b) => {
|
|
2140
2174
|
if (b.version) return b.version;
|
|
@@ -2401,7 +2435,7 @@ export async function runCheck() {
|
|
|
2401
2435
|
const inCheckout = (p) => isInsideCheckout(p, REPO);
|
|
2402
2436
|
for (const [name, what] of [
|
|
2403
2437
|
["CLEAROTRON_CUSTOMERS_DIR", `customers resolve to the bundled demo roster IN ${THIS_TREE}`],
|
|
2404
|
-
["CLEAROTRON_INSTRUCTIONS_DIR", `
|
|
2438
|
+
["CLEAROTRON_INSTRUCTIONS_DIR", `searches follow the product's own instructions, from ${THIS_TREE}`],
|
|
2405
2439
|
["PROFILE_REPO_ROOT", `the portal's profile editor commits INTO ${THIS_TREE}`],
|
|
2406
2440
|
]) {
|
|
2407
2441
|
// — WHICH NAME THE READER IS TOLD IS NOT ONE QUESTION, IT IS TWO.
|
|
@@ -2491,7 +2525,7 @@ export async function runCheck() {
|
|
|
2491
2525
|
if (hosted && !serviceKnown)
|
|
2492
2526
|
info(`the units are installed but their environment could not be read (${unitEnv?.why ?? "no reason given"}) — `
|
|
2493
2527
|
+ "what the services resolve is not judged here, and the line above is this process's own answer");
|
|
2494
|
-
info("
|
|
2528
|
+
info("a search records which profiles it used in its own log — this command reports what the "
|
|
2495
2529
|
+ (hosted ? "units' file says, which the running services read at their own start"
|
|
2496
2530
|
: `environment you are typing in and your environment file say, which \`${invoke("start")}\` reads at its own start`));
|
|
2497
2531
|
// ── AND WHO IS ACTUALLY IN IT ─────────────────────────────────────────
|
|
@@ -2601,8 +2635,17 @@ export async function runCheck() {
|
|
|
2601
2635
|
// What it CAN catch is a second source in the CODE: a resurrected PROFILE_DIR, a bundled
|
|
2602
2636
|
// directory that moves under one caller and not the other. That is the regression it is for,
|
|
2603
2637
|
// and the sentence now says so instead of implying the larger claim.
|
|
2604
|
-
|
|
2605
|
-
|
|
2638
|
+
//
|
|
2639
|
+
// WITH NO UNITS, THE STORE NAMED IS THE SERVICES'. They are `start`'s children and get the variable
|
|
2640
|
+
// from the environment file, which this process does not load. Named from this process alone, the
|
|
2641
|
+
// line ticked the bundled roster two lines below the one naming the configured store (measured in a
|
|
2642
|
+
// stranger walk of a beta, 2026-11-10). The comparison above stays on this process, where both
|
|
2643
|
+
// readers really ran; one variable means it holds for the services' value as well.
|
|
2644
|
+
const named = !hosted && svcCustomers?.from === serviceEnvLabel
|
|
2645
|
+
? { dir: svcCustomers.v, from: serviceEnvFile }
|
|
2646
|
+
: { dir: surface.dir, from: hosted && serviceKnown ? serviceEnvFile : "this command's environment" };
|
|
2647
|
+
ok(`the settings surface and the run roster resolve to one store (${named.dir}), read from `
|
|
2648
|
+
+ `${named.from} — they share a `
|
|
2606
2649
|
+ "variable, so this catches a second store appearing in the code, not two environments disagreeing");
|
|
2607
2650
|
}
|
|
2608
2651
|
} catch (e) {
|
|
@@ -4043,6 +4086,7 @@ let aborted = null;
|
|
|
4043
4086
|
const installedCopy = process.env.CLEAROTRON_RELOCATED === "1" ? { version: ownVersion(), prefix: permanentPrefix() } : null;
|
|
4044
4087
|
let installedEngine = null;
|
|
4045
4088
|
let setupTurnRan = false;
|
|
4089
|
+
const leftSoFar = () => ({ copy: installedCopy, engine: installedEngine, turnRan: setupTurnRan });
|
|
4046
4090
|
try {
|
|
4047
4091
|
say("\n Trademark clearance engine — setup\n");
|
|
4048
4092
|
say(" One question at a time. Enter takes the default in brackets.");
|
|
@@ -4293,12 +4337,23 @@ try {
|
|
|
4293
4337
|
// saves nothing.
|
|
4294
4338
|
for (const line of proofPreamble({ product: eng.product, billing: authPick.id })) info(line);
|
|
4295
4339
|
if (!await confirm(proveQuestion({ product: eng.product, billing: authPick.id }), true)) {
|
|
4340
|
+
// A SUBSCRIPTION STILL NEEDS ITS SIGN-IN, whether or not the reader wanted the turn: a decline used to end
|
|
4341
|
+
// with no sign-in command at all, though the guide says setup shows one. These are the lines a failed turn
|
|
4342
|
+
// prints, in the same words, and the question they name by its words follows them, default no. Under a key
|
|
4343
|
+
// or a cloud account there is no sign-in to show.
|
|
4344
|
+
let provedAfterAll = false;
|
|
4345
|
+
if (authPick.id === "subscription") {
|
|
4346
|
+
for (const line of signInHandOff(eng, bin, authPick.id, { turnRan: false }).lines) info(line);
|
|
4347
|
+
provedAfterAll = await confirm("Signed in? Run the turn now", false);
|
|
4348
|
+
}
|
|
4296
4349
|
// A WAY ON WITHOUT AN AI, BEFORE THE MENU. A declined proof went straight back to the menu, so a reader
|
|
4297
4350
|
// taking every default went round the same setup again. The question the no-program path already asks
|
|
4298
4351
|
// offers the way on; no returns to the menu, with this pick its default, and only that answer says so.
|
|
4299
|
-
if (
|
|
4300
|
-
|
|
4301
|
-
|
|
4352
|
+
if (!provedAfterAll) {
|
|
4353
|
+
if (await confirm("Continue with no engine configured?", true)) { sayNoEngine(); break engine; }
|
|
4354
|
+
info("Not proven, so not written. Pick again — the last row configures no engine at all.");
|
|
4355
|
+
continue;
|
|
4356
|
+
}
|
|
4302
4357
|
}
|
|
4303
4358
|
// A TOKEN PASTED BELOW IS SAVED ONLY WITH THE TURN IT PROVED. It was written into the settings as it was
|
|
4304
4359
|
// pasted, so a reader whose turn still failed, and who then went on without an AI, had it saved unproved.
|
|
@@ -4498,7 +4553,7 @@ try {
|
|
|
4498
4553
|
if (v.ok) ok("EUIPO issued a token — the credential works.");
|
|
4499
4554
|
else {
|
|
4500
4555
|
problem(`EUIPO refused: ${v.error}`);
|
|
4501
|
-
say(
|
|
4556
|
+
say(`\n ${whatSetupLeft(leftSoFar()) ?? "Nothing has been written."} Re-run setup with a working credential.`);
|
|
4502
4557
|
aborted = "euipo";
|
|
4503
4558
|
throw new Error("euipo");
|
|
4504
4559
|
}
|
|
@@ -4802,7 +4857,7 @@ try {
|
|
|
4802
4857
|
if (pf.ok) ok(registerCheckPassed(pf.result.provider, pf.result.checked.join(" + ")));
|
|
4803
4858
|
else {
|
|
4804
4859
|
problem(pf.error);
|
|
4805
|
-
say(
|
|
4860
|
+
say(`\n ${whatSetupLeft(leftSoFar()) ?? "Nothing has been written."}`);
|
|
4806
4861
|
aborted = "preflight";
|
|
4807
4862
|
throw new Error("preflight");
|
|
4808
4863
|
}
|
|
@@ -5026,7 +5081,7 @@ try {
|
|
|
5026
5081
|
// has been written before the single atomic rename at the end, but setup's own copy, the AI's program
|
|
5027
5082
|
// and a test turn's files may already be on the machine, and the line names each one that is.
|
|
5028
5083
|
const msg = /Ctrl\+[CD]|closed|aborted/i.test(String(e?.message ?? e))
|
|
5029
|
-
? cancelledLine(
|
|
5084
|
+
? cancelledLine(leftSoFar())
|
|
5030
5085
|
: String(e?.message ?? e);
|
|
5031
5086
|
console.error(`\nsetup: ${msg}\n`);
|
|
5032
5087
|
rl.close();
|