Repository navigation
refactor(web): ship web as the first platform plugin - #4792
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on cc5fdba. The verdict and the full list are in the summary comment.
|
This PR's own slice at cc5fdba has one problem to fix before merge. CI is green (16 checks, none failing), and there are no conflicts. The store accepts a package that declares Not blocking, and fine to take or leave: Could this land smaller? This slice's production net is about 274 lines, but it adds a seam with no consumer. Would it work to ship the platform kind together with its first consumer (the web cutover), with the plugin registry exposing only set-up platform modules and failed platform claims, and the composition root registering them into the existing registries behind one absence reporter? That needs #4784 merged into 0.22 first, so this diff is only its own slice, and a decision on whether a builtin family and a plugin can coexist during the extraction (for example, reserve builtin families until each extraction PR removes the builtin). The open inline thread on No eager-closure budget entry explains the async change, so treat that note as likely rather than confirmed. The next step is to wire the platform kind into the daemon composition in this PR, or keep it out of the published contract until the web cutover lands. |
|
Decision on the design question: yes, the platform kind ships with its first consumer. This PR becomes the single web PR (contract plus cutover), and stays a draft until #4784 merges.
The rework is in progress on this branch. |
|
This now conflicts with |
cc5fdba to
5418f5f
Compare
|
Addressed the review at
The exact-head gate passed with 42 checks passed and 28 skipped. See the PR body for the receipt, test counts, and packed size. |
Apex Sentinel · ✅ Approve · review of
|
| Where | Finding |
|---|---|
src/platform-runtime/request-providers.ts:128 |
🆕 Default web provider is created before the guards that should skip it |
Not in the reviewers' prompt (7 files)
package.json: left out as an asset or for its size; reviewers could still search itpackages/contracts/package.json: left out as an asset or for its size; reviewers could still search itpackages/daemon/package.json: left out as an asset or for its size; reviewers could still search itpackages/platform-web/package.json: left out as an asset or for its size; reviewers could still search itpackages/platform-web/tsconfig.json: left out as an asset or for its size; reviewers could still search itpnpm-lock.yaml: generated or a lockfile, so its lines were left outscripts/layering/contracts-exports.snapshot.json: left out as an asset or for its size; reviewers could still search it
1 finding below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (0a1c2cce7b9b).
💬 Talking to Sentinel
In a finding's thread, reply with:
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 5418f5f. The verdict and the full list are in the summary comment.
|
The PR is ready at 5418f5f. The conflict from the earlier review (#4792 (comment)) is resolved, and no conflicts remain. The code matches what the PR describes. CI is green: 50 checks, 0 failing. The Integration Tests job ran the live web smoke ( Not blocking, and you can take or leave it: in platform-runtime.ts:155, Of the open inline threads, the one on The install hints and docs name |
…time gateway Claim recovery now binds through the process's platform selection: the daemon passes its composed platforms, and daemonless device release --stale starts one platforms-scoped plugin registry on first gateway use and closes it when the run ends. The registry start is shared with the managed web backend.
Update at
|
* feat(plugins): add the platform contribution kind * refactor(web): ship web as the first platform plugin * fix(web): compose platform plugins through the family registry * refactor(plugins): separate claim reservations from setup * fix(plugins): use the left bound for Node hyphen ranges * chore(gates): verify the web plugin stays outside packed core * refactor(platform-runtime): require the platform selection on the runtime gateway Claim recovery now binds through the process's platform selection: the daemon passes its composed platforms, and daemonless device release --stale starts one platforms-scoped plugin registry on first gateway use and closes it when the run ends. The registry start is shared with the managed web backend.
* feat(plugins): add the platform contribution kind * refactor(web): ship web as the first platform plugin * fix(web): compose platform plugins through the family registry * refactor(plugins): separate claim reservations from setup * fix(plugins): use the left bound for Node hyphen ranges * chore(gates): verify the web plugin stays outside packed core * refactor(platform-runtime): require the platform selection on the runtime gateway Claim recovery now binds through the process's platform selection: the daemon passes its composed platforms, and daemonless device release --stale starts one platforms-scoped plugin registry on first gateway use and closes it when the run ends. The registry start is shared with the managed web backend.
* feat(plugins): add the platform contribution kind * refactor(web): ship web as the first platform plugin * fix(web): compose platform plugins through the family registry * refactor(plugins): separate claim reservations from setup * fix(plugins): use the left bound for Node hyphen ranges * chore(gates): verify the web plugin stays outside packed core * refactor(platform-runtime): require the platform selection on the runtime gateway Claim recovery now binds through the process's platform selection: the daemon passes its composed platforms, and daemonless device release --stale starts one platforms-scoped plugin registry on first gateway use and closes it when the run ends. The registry start is shared with the managed web backend.
* feat(plugins): add the platform contribution kind * refactor(web): ship web as the first platform plugin * fix(web): compose platform plugins through the family registry * refactor(plugins): separate claim reservations from setup * fix(plugins): use the left bound for Node hyphen ranges * chore(gates): verify the web plugin stays outside packed core * refactor(platform-runtime): require the platform selection on the runtime gateway Claim recovery now binds through the process's platform selection: the daemon passes its composed platforms, and daemonless device release --stale starts one platforms-scoped plugin registry on first gateway use and closes it when the run ends. The registry start is shared with the managed web backend.
* feat(plugins): add the platform contribution kind * refactor(web): ship web as the first platform plugin * fix(web): compose platform plugins through the family registry * refactor(plugins): separate claim reservations from setup * fix(plugins): use the left bound for Node hyphen ranges * chore(gates): verify the web plugin stays outside packed core * refactor(platform-runtime): require the platform selection on the runtime gateway Claim recovery now binds through the process's platform selection: the daemon passes its composed platforms, and daemonless device release --stale starts one platforms-scoped plugin registry on first gateway use and closes it when the run ends. The registry start is shared with the managed web backend.
* feat(plugins): add the platform contribution kind * refactor(web): ship web as the first platform plugin * fix(web): compose platform plugins through the family registry * refactor(plugins): separate claim reservations from setup * fix(plugins): use the left bound for Node hyphen ranges * chore(gates): verify the web plugin stays outside packed core * refactor(platform-runtime): require the platform selection on the runtime gateway Claim recovery now binds through the process's platform selection: the daemon passes its composed platforms, and daemonless device release --stale starts one platforms-scoped plugin registry on first gateway use and closes it when the run ends. The registry start is shared with the managed web backend.
* feat(plugins): add the platform contribution kind * refactor(web): ship web as the first platform plugin * fix(web): compose platform plugins through the family registry * refactor(plugins): separate claim reservations from setup * fix(plugins): use the left bound for Node hyphen ranges * chore(gates): verify the web plugin stays outside packed core * refactor(platform-runtime): require the platform selection on the runtime gateway Claim recovery now binds through the process's platform selection: the daemon passes its composed platforms, and daemonless device release --stale starts one platforms-scoped plugin registry on first gateway use and closes it when the run ends. The registry start is shared with the managed web backend.
Summary
@agent-device/web, and remove its browser implementation from packed core. Runagent-device plugins add @agent-device/weband thenagent-device web setup.0.22. Include the claim-table review fixes and the Node hyphen-range regression across 138 files. References 0.22: move web-only runtime out of the mobile-default core package #4597 and 0.22: ship a mobile-first, plugin-free core and measure size reduction #4591.Validation
AGENT_DEVICE_VITEST_MAX_WORKERS=2 pnpm check:affected --run --base origin/0.22 --head 5418f5f56b685ee5165e54f06ec51730dae5e5f8passed withexactCommit=truein.tmp/validation/run-df36B3/receipt.json. The local plan passed 42 checks and skipped 28.6f60c1e2aawent from 1,648,824 to 1,637,132 compressed bytes (−11,692) and from 5,314,615 to 5,274,325 unpacked bytes (−40,290).