Skip to content

feat(check): check client registrations against the Paseo version in use - #7

Merged
nkwib merged 2 commits into
mainfrom
feat/client-contract-0.13
Oct 30, 2026
Merged

nkwib merged 2 commits into
mainfrom
feat/client-contract-0.13

Conversation

@nkwib

@nkwib nkwib commented Oct 30, 2026

Copy link
Copy Markdown
Owner

ppd check applied Paseo 0.11/0.12 client rules to every host, so plugins using the 0.13 contract (file panels, agent panels, context-free workspace panels, translated labels, svg/component icons) failed client-eval.

  • Rules are selected by version: installed app, PASEO_SOURCE (raised to the prerelease whose methods its evaluator defines, since main's package version lags), or the lowest release requirements.paseo admits when there is no host or the range excludes it. Prereleases count by stable core, as in Paseo.
  • 0.13 rules are adapted from v0.13.0 (identical in v0.14.0), with the beta.1/beta.2 split.
  • Methods a version lacks are undefined and absent to in, so guarded calls pass; only a "not a function" TypeError on one is a contract error.
  • client-eval warns when the host accepts the client but the oldest admitted release would reject it (second evaluation runs in parallel).

Verified: 186 tests; ppd check 13/13 on paseo-doc-viewer 0.7.0 against the Paseo 0.14.0 app.

Supersedes #3.

nkwib added 2 commits October 30, 2026 16:04
ClientRules takes the host version: the app's, a source checkout's (raised to
the prerelease that added the newer methods its evaluator defines), or the
lowest release requirements.paseo admits when there is no host or the range
excludes the host. From 0.13.0-beta.1 it follows that release's evaluate.ts:
file panels, translated labels, svg and component icons; from beta.2 agent
panels and context-free workspace panels.

Methods a version lacks are undefined (and absent to `in`), so guarded calls
pass; only a "not a function" TypeError on one is a contract error.
client-eval warns when the host accepts the client but the oldest admitted
release would reject it; that second evaluation runs in parallel.

Supersedes #3.
@nkwib
nkwib merged commit e304eaf into main Oct 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant