Repository navigation
refactor: extract media and ACP core packages - #88534
Conversation
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph change authorizedThis PR includes dependency graph changes. A member of
A later push changes the PR head SHA and requires a fresh security approval. |
|
/allow-dependencies-change internal package split for media/acp core; no external dependency version change beyond moving existing file-type usage into the new private package |
|
Codex review: found issues before merge. Reviewed May 31, 2026, 6:06 AM ET / 10:06 UTC. Summary Reproducibility: not applicable. this is an internal package-boundary refactor, not a reported user bug. The high-confidence review path is source, diff, guard-scope, and package/dependency inspection. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land only after media-core security scanning is updated and maintainers/security accept the private workspace-package dependency graph and package-boundary split with proof still green. Do we have a high-confidence way to reproduce the issue? Not applicable; this is an internal package-boundary refactor, not a reported user bug. The high-confidence review path is source, diff, guard-scope, and package/dependency inspection. Is this the best way to solve the issue? Unclear until maintainer review finishes; extracting narrow media and ACP primitives is a plausible cleanup, but the mergeable solution must also preserve security guard coverage and pass the dependency/package-boundary approval path. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against f454d6202f1a. Label changesLabel changes:
Label justifications:
Evidence reviewedSecurity concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
3f231cb to
0457595
Compare
There was a problem hiding this comment.
💡 Codex Review
https://github.com/openclaw/openclaw/blob/cbf6c72a6453f347d634cfcf6ea3c57d181a137b/npm-shrinkwrap.json#L1
Restore the root npm shrinkwrap
Deleting the root npm-shrinkwrap.json means the published openclaw npm package no longer carries the locked dependency tree for installs, even though this change also edits the root dependency surface by moving file-type out of package.json. For users installing the CLI from npm, transitive versions can now float instead of matching the reviewed pnpm-lock.yaml/release tree; the repo policy also treats root npm packages as shrinkwrapped security surfaces, so this should be regenerated rather than removed.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
/allow-dependencies-change workspace package refactor for head e84c46cc6be4281c2b8d69cc09db9d3d68113283: private media/acp packages and media-core file-type ownership |
c89f5fe to
200e191
Compare
|
/allow-dependencies-change workspace package refactor for head 200e191: private media/acp packages and media-core file-type ownership |
* refactor: extract media and acp core packages * refactor: remove relocated media and acp sources * build: wire new core packages into dependency checks * test: alias new core packages in vitest * build: keep media sniffer runtime dependency * docs: refresh plugin sdk api baseline * fix: keep normalized proposal queries non-empty * test: keep channel timer tests isolated * fix: keep rebased plugin checks green * fix: preserve sms numeric allowlist entries * test: harden exec foreground timeout failure * test: remove duplicate skill workshop assertion * fix: remove channel config lint suppression * test: refresh lint suppression allowlist
* refactor: extract media and acp core packages * refactor: remove relocated media and acp sources * build: wire new core packages into dependency checks * test: alias new core packages in vitest * build: keep media sniffer runtime dependency * docs: refresh plugin sdk api baseline * fix: keep normalized proposal queries non-empty * test: keep channel timer tests isolated * fix: keep rebased plugin checks green * fix: preserve sms numeric allowlist entries * test: harden exec foreground timeout failure * test: remove duplicate skill workshop assertion * fix: remove channel config lint suppression * test: refresh lint suppression allowlist
Summary
@openclaw/media-coreand ACP runtime/shared types into private@openclaw/acp-core.media-coreand fix latest-main auth expiry type narrowing so core typecheck stays green.Verification
Behavior addressed: internal package refactor for media primitives and ACP runtime/shared helpers without changing user-facing behavior.
Real environment tested: local macOS source checkout on current
origin/main(b372af6b81).Exact steps or command run after this patch:
node scripts/run-vitest.mjs src/media/input-files.fetch-guard.test.ts packages/media-core/src/base64.test.ts packages/media-core/src/mime.test.ts packages/media-core/src/inbound-path-policy.test.ts packages/media-core/src/inline-image-data-url.test.ts packages/media-core/src/read-byte-stream-with-limit.test.ts packages/media-core/src/read-response-with-limit.test.ts src/plugins/sdk-alias.test.ts src/plugins/plugin-sdk-native-resolver.test.ts src/plugins/contracts/extension-package-project-boundaries.test.ts src/infra/watch-node.test.tspnpm tsgo:corepnpm check:import-cyclespnpm --filter @openclaw/media-core build && pnpm --filter @openclaw/acp-core buildnode scripts/check-extension-package-tsc-boundary.mjspnpm deps:shrinkwrap:checknode scripts/build-all.mjs ciArtifactspnpm build.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main --prompt 'Context: do not require adding @openclaw/media-core or @openclaw/acp-core as root package.json dependencies. Root npm shrinkwrap generation rejects workspace:* in package.json; these internal package imports follow the existing bundled/tsconfig alias pattern used by normalization/media-generation/terminal packages. Also, use node scripts/build-all.mjs ciArtifacts for the CI-time build target; full pnpm build intentionally includes slower declaration package builds.'Evidence after fix: focused Vitest shards passed 6/6; extension package boundary passed for 112 plugins plus 2 canaries in 102.1s;
ciArtifactsbuild passed in 49.7s; fullpnpm buildpassed in 195.3s; final autoreview reported no accepted/actionable findings.Observed result after fix: media/ACP helpers resolve from package boundaries, plugin SDK declarations stay resolvable, import cycles remain at 0, and core typecheck is green.
What was not tested: no live provider/channel or cross-OS Crabbox run; this is an internal package-boundary refactor with local package, SDK, UI, build, and boundary proof.