Repository navigation
feat(plugins): install local artifacts through the plugin manager - #4615
Conversation
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
All reported issues were addressed across 9 files
You’re at about 98% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Apex Sentinel · ✅ ApproveSince the last review: 0 new · 0 still open · 0 no longer raised No open findings. 2 findings below 💬 Talking to SentinelIn a finding's thread, reply with:
On this conversation, comment Earlier reviewsReview of
|
| Where | Finding |
|---|---|
packages/plugins/src/store.ts:402 |
🆕 add-artifact and add lock different paths when AGENT_DEVICE_HOME traverses a symlink |
Reviewed with this repository's own Sentinel configuration (e0ab0c255c3d).
Review of d8c7b4b4 · 17.11.2026 10:07 UTC
Apex Sentinel · ✅ Approve
Since the last review: 0 new · 0 still open · 0 no longer raised
No open findings.
Reviewed with this repository's own Sentinel configuration (e0ab0c255c3d).
Review of 38f1587e · 17.11.2026 09:31 UTC
Apex Sentinel · ✅ Approve
Since the last review: 0 new · 0 still open · 0 no longer raised
No open findings.
1 new finding away from what changed since bda3910 not shown. Comment @apex-sentinel-staging review for a full review.
Reviewed with this repository's own Sentinel configuration (e0ab0c255c3d).
Review of bda39101 · 17.11.2026 08:42 UTC
Apex Sentinel · ✅ Approve
Since the last review: 0 new · 0 still open · 0 no longer raised
No open findings.
1 finding below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (e0ab0c255c3d).
Review of 4d0b0108 · 16.11.2026 22:25 UTC
Apex Sentinel · ✅ Approve
Since the last review: 0 new · 0 still open · 0 no longer raised
No open findings.
Reviewed with this repository's own Sentinel configuration (a30accf38081).
Review of 47b4d14e · 16.11.2026 21:36 UTC
Apex Sentinel · ✅ Approve
Since the last review: 0 new · 0 still open · 1 no longer raised (1 marked fixed)
No open findings.
1 finding below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (a30accf38081).
Review of 356a6696 · 16.11.2026 20:48 UTC
Apex Sentinel · ✅ Approve
1 finding(s): 1 minor.
🟡 Minor (1)
| Where | Finding |
|---|---|
packages/plugins/src/store.ts:399 |
add-artifact refuses hosts where HOME is unset but homedir() resolves |
2 findings below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (ea414582b7fa).
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 356a669. The verdict and the full list are in the summary comment.
|
I found no blocking problem in the code at 356a669. All 17 checks pass at this commit and there are no conflicts. The containment claim rests on npm's extractor, the realpath checks at store.ts:437-449, and Not blocking, and you can take or leave these: Before merge, please answer or fix the open inline threads. The most useful ones are the host plumbing at plugins.ts:27 (#4615 (comment)) and the positional label at command-overrides.ts:23 (#4615 (comment)). The other threads that still apply are the Windows npm call in tests (#4615 (comment)), the unchecked-compatibility text output (#4615 (comment)), the prerelease leading zeros (#4615 (comment)), and the missing-HOME refusal (#4615 (comment)). The thread about documenting the replacement steps does not apply, so you can resolve it: website/docs/docs/plugins.md already documents them, and the CLI refuses with typed reasons (#4615 (comment)). |
|
Thanks for the update. At 47b4d14 the code looks right to me, but the Coverage check is red on this head and it passed at 356a669, so the new failure came with this change. The failing route overlaps your delta: From the earlier review: the Could The open inline threads from #r4591300984, #r4591300998, #r4591301004, #r4591301012, #r4591301043, #r4591301051 and #r4591349998 are fixed at this head. Please resolve them. There are no conflicts. Before merge, please answer the shared-transaction question and get Coverage green or explained. |
|
This PR is ready from the code side at 4d0b010. The earlier review at 47b4d14 (#4615 (comment)) asked for evidence, and that evidence is now in place. Not blocking: the fix in src/core/interactors/limrun-ios-runner.fixtures.ts (https://github.com/callstack/agent-device/blob/4d0b010/src/core/interactors/limrun-ios-runner.fixtures.ts#L18) for the aborted-upload rejection is unrelated to the plugin manager, so would you consider moving it into its own small PR? Keeping it here is fine, since it is test-only and unblocks Coverage. All seven earlier inline threads are addressed at this head, so you can resolve them. The six marked fixed are: the Windows npm exit-code check in store-artifact.test.ts (#4615 (comment)), the "unchecked" compatibility report in plugins.ts (#4615 (comment)), consistent host.env use in plugins.ts (#4615 (comment)), the leading-zero prerelease check in isExactVersion (#4615 (comment)), the Smoke Tests failed in smoke:keyboard-ime, where There are no conflicts. Before merge, please rerun the Android smoke job. Please also answer the open question from the 47b4d14 review: should changePlugin and addPluginArtifact (store.ts:342 and store.ts:394) share one store-transaction owner? This update does not address it. |
4d0b010 to
bda3910
Compare
|
I reviewed bda3910 as a follow-up to the earlier review (#4615 (comment)). The code looks ready, and no code change is needed from this pass. The rebase is clean and all 17 checks pass at this commit. The earlier Android smoke failure is gone; it was on a route this PR does not touch. The range-diff shows the patch is unchanged. Could The review threads from the earlier pass now look fixed at this commit, so you can resolve them: the Windows Before merge, please answer the shared-transaction question above. You can also split the unrelated Limrun fixture commit into its own PR. |
|
Thanks for the update. At 38f1587 the code looks good, and the checks show 17 of 17 passing, with no conflicts. Nothing in the earlier review (#4615 (comment)) is still a defect; the one thing left is a design question. Could packages/plugins/src/store.ts give The required evidence is in place, and the CI run covers this head. Of the earlier inline threads, these no longer apply, so please resolve them: the packed npm exit code is asserted at store-artifact.test.ts:62 (#4615 (comment)); the receipt reports compatibility as 'unchecked' in code and in the human line at src/cli/commands/plugins.ts:35 and :46 (#4615 (comment)); the handler passes host to |
d8c7b4b to
6cf24b2
Compare
|
Thanks for the update. I found no new code problems at d8c7b4b, and the fix since 38f1587 is in: the lock is now released in the CI is green: 17/17 checks pass at d8c7b4b, and the change touches only Not blocking, and you can take or leave it: the new typed cleanup failure ( Could one private transaction helper in Before merge, please either fold the two paths into one store-transaction owner or say on the PR why the copies must stay separate. |
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 6cf24b2. The verdict and the full list are in the summary comment.
|
Addressed the shared-owner request in Both routes report The focused tests cover registry cleanup failure with real lock reacquisition, removal without staging, post-publication release failure, malformed config precedence, and artifact cleanup. Exact-head affected passed 42 checks (25 skipped), and full passed 41 (25 skipped), both with unchanged checkout. An independent full-range source review at this head found no actionable P1/P2/P3 findings. Hosted CI and live consumer adoption remain separate. |
|
I reviewed aea42b3 and found no code problems. The lock issue is fixed: The open inline thread on the lock path no longer applies, so you can resolve it: the shared lock is in place at this commit. #4615 (comment) CI shows 16 of 17 checks passing. The one check still queued runs no code, so it does not overlap the The |
|
Local paths go directly to the existing managed artifact installer, with its integrity checks, transaction, script suppression, and unchecked compatibility receipt. A missing or invalid local archive fails locally without trying the registry. The unreleased |
) * feat(plugins): install managed local artifacts * fix(plugins): bind artifact integrity and inventory to installed selections * test(plugins): exercise managed artifact installation from the packed SDK * fix(plugins): preserve host context and clarify artifact receipts * test(plugins): correct list assertions and isolate host fixtures * test(limrun): handle canceled fixture uploads * refactor(plugins): keep one artifact version and clarify manager ownership * fix(plugins): release artifact lock when staging cleanup fails * test(plugins): verify lock release after cleanup failure * refactor(plugins): unify selection transactions * feat(plugins): accept local archives with add
) * feat(plugins): install managed local artifacts * fix(plugins): bind artifact integrity and inventory to installed selections * test(plugins): exercise managed artifact installation from the packed SDK * fix(plugins): preserve host context and clarify artifact receipts * test(plugins): correct list assertions and isolate host fixtures * test(limrun): handle canceled fixture uploads * refactor(plugins): keep one artifact version and clarify manager ownership * fix(plugins): release artifact lock when staging cleanup fails * test(plugins): verify lock release after cleanup failure * refactor(plugins): unify selection transactions * feat(plugins): accept local archives with add
) * feat(plugins): install managed local artifacts * fix(plugins): bind artifact integrity and inventory to installed selections * test(plugins): exercise managed artifact installation from the packed SDK * fix(plugins): preserve host context and clarify artifact receipts * test(plugins): correct list assertions and isolate host fixtures * test(limrun): handle canceled fixture uploads * refactor(plugins): keep one artifact version and clarify manager ownership * fix(plugins): release artifact lock when staging cleanup fails * test(plugins): verify lock release after cleanup failure * refactor(plugins): unify selection transactions * feat(plugins): accept local archives with add
) * feat(plugins): install managed local artifacts * fix(plugins): bind artifact integrity and inventory to installed selections * test(plugins): exercise managed artifact installation from the packed SDK * fix(plugins): preserve host context and clarify artifact receipts * test(plugins): correct list assertions and isolate host fixtures * test(limrun): handle canceled fixture uploads * refactor(plugins): keep one artifact version and clarify manager ownership * fix(plugins): release artifact lock when staging cleanup fails * test(plugins): verify lock release after cleanup failure * refactor(plugins): unify selection transactions * feat(plugins): accept local archives with add
) * feat(plugins): install managed local artifacts * fix(plugins): bind artifact integrity and inventory to installed selections * test(plugins): exercise managed artifact installation from the packed SDK * fix(plugins): preserve host context and clarify artifact receipts * test(plugins): correct list assertions and isolate host fixtures * test(limrun): handle canceled fixture uploads * refactor(plugins): keep one artifact version and clarify manager ownership * fix(plugins): release artifact lock when staging cleanup fails * test(plugins): verify lock release after cleanup failure * refactor(plugins): unify selection transactions * feat(plugins): accept local archives with add
) * feat(plugins): install managed local artifacts * fix(plugins): bind artifact integrity and inventory to installed selections * test(plugins): exercise managed artifact installation from the packed SDK * fix(plugins): preserve host context and clarify artifact receipts * test(plugins): correct list assertions and isolate host fixtures * test(limrun): handle canceled fixture uploads * refactor(plugins): keep one artifact version and clarify manager ownership * fix(plugins): release artifact lock when staging cleanup fails * test(plugins): verify lock release after cleanup failure * refactor(plugins): unify selection transactions * feat(plugins): accept local archives with add
…llstack#4615) * feat(plugins): install managed local artifacts * fix(plugins): bind artifact integrity and inventory to installed selections * test(plugins): exercise managed artifact installation from the packed SDK * fix(plugins): preserve host context and clarify artifact receipts * test(plugins): correct list assertions and isolate host fixtures * test(limrun): handle canceled fixture uploads * refactor(plugins): keep one artifact version and clarify manager ownership * fix(plugins): release artifact lock when staging cleanup fails * test(plugins): verify lock release after cleanup failure * refactor(plugins): unify selection transactions * feat(plugins): accept local archives with add
) * feat(plugins): install managed local artifacts * fix(plugins): bind artifact integrity and inventory to installed selections * test(plugins): exercise managed artifact installation from the packed SDK * fix(plugins): preserve host context and clarify artifact receipts * test(plugins): correct list assertions and isolate host fixtures * test(limrun): handle canceled fixture uploads * refactor(plugins): keep one artifact version and clarify manager ownership * fix(plugins): release artifact lock when staging cleanup fails * test(plugins): verify lock release after cleanup failure * refactor(plugins): unify selection transactions * feat(plugins): accept local archives with add
Summary
Use one
plugins addcommand for npm selectors and local plugin tarballs, for #4591 and #4597.Local paths must start with
./or../, or be absolute. Missing archives fail locally without falling back to npm. The unreleasedadd-artifactcommand is removed.The existing archive installer retains integrity and package validation, disabled lifecycle scripts, factory non-execution, collision protection and rollback. Local installation reports compatibility unchecked; use
plugins listto check it. Close sessions and restart the daemon after changes. Registry selectors retain their existing behavior. The publicaddPluginArtifact(path, { env, cwd })SDK remains unchanged.Scope: 13 files. One private transaction owns locking, selection publication and failure cleanup for both sources.
Validation
Tested head:
26d012581ef13d9dabee852a5cc4b6c01aae377f, based on0.22ate3211ae.Exact affected and full checks passed with unchanged checkout. Focused tests cover both target kinds, supplied host context, missing local files without registry fallback, and real tarball installation without executing scripts or factories. The packed SDK/CLI inventory acceptance remains intact.
Independent full-range source review cleared
aea42b3; root reviewed the subsequent five-file CLI change. Hosted checks for this head are pending. Live consumer adoption remains separate.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.