Repository navigation
refactor(sdk): keep helper types private - #139601
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 9:45 PM ET / September 6, 2026, 01:45 UTC. ClawSweeper reviewWhat this changesMakes 14 helper types private within SDK reporting and bundled memory modules while preserving their aggregate types and runtime exports. Merge readiness✅ Ready for maintainer review No blocking findings. This remains useful internal cleanup: current main still exports these helpers, while inspected consumers and public SDK contracts do not require them. Member authorship and the maintainer label also preclude cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherSDK reporting compares public plugin contracts between revisions, while the bundled memory facade connects core diagnostics to the memory plugin. These helper types describe report and diagnostic results without providing separate public plugin entrypoints. flowchart TD
A[Public SDK inventory] --> B[SDK baseline renderer]
B --> C[API comparison reports]
D[Core memory diagnostics] --> E[Bundled memory facade]
E --> F[Memory plugin]
F --> G[Audit and repair results]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -3. Total -3 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep helper aliases local to their owning modules while retaining the aggregate contracts and plugin-owned exports used by callers. Do we have a high-confidence way to reproduce the issue? Not applicable: this is declaration-visibility cleanup, not a reported runtime failure. Is this the best way to solve the issue? Yes. Removing unnecessary export modifiers at the declaration owners is the smallest coherent solution; adding compatibility aliases or moving the types would preserve unnecessary surface or add churn. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0e80d86c470f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer pre-merge proof for exact head Scope:
Fresh/live proof:
Native landing preparation:
Terminal merge proof:
No build was run because this patch only removes TypeScript type export modifiers, preserves the definitions and runtime exports, and does not touch package exports, published SDK entrypoint metadata, lazy module topology, or runtime JavaScript behavior. |
* commit '6c55a99226ed0611ca088004c81b00fb296f1f71': (182 commits) test(ui): scope dashboard settings setup to the top frame (openclaw#139618) refactor(skills): share pending proposal creation (openclaw#139617) fix(release): accept frozen targets before worker bundles (openclaw#136699) fix(gateway): preserve percent sequences in media filenames (openclaw#139508) fix: preserve current update availability alongside update history (openclaw#139501) feat(diagnostics): expose garbage collection duration metrics (openclaw#139592) fix(ui): keep Logbook timestamps clear of the activity stripe (openclaw#139539) fix(ui): keep Swarm outcomes visible after completion (openclaw#139490) test: check file accessibility without runtime-specific return values (openclaw#139590) refactor(sdk): keep helper types private (openclaw#139601) fix(cron): preserve current-session delivery intent (openclaw#139491) fix: prevent browser profile permission hangs in Doctor (openclaw#139612) fix(agents): repair storage-failure test fixture after failover owner move (openclaw#139531) fix(cli): keep note text with Windows and Unicode line endings (openclaw#139512) fix(agents): keep isolated completion context on its admitted generation (openclaw#139607) fix: avoid declaration builds during source-server updates (openclaw#139392) fix(models): keep discovered models after catalog refresh failures (openclaw#139357) fix(gateway): record a transcript notice when a run fails before replying (openclaw#139439) refactor(ios): reuse shared integer conversion (openclaw#139581) fix(sessions): prevent database lock failures during reclamation (openclaw#139469) ...
* commit 'refs/openclaw/tasks/pr-135167-main-latest': test(ui): scope dashboard settings setup to the top frame (#139618) refactor(skills): share pending proposal creation (#139617) fix(release): accept frozen targets before worker bundles (#136699) fix(gateway): preserve percent sequences in media filenames (#139508) fix: preserve current update availability alongside update history (#139501) feat(diagnostics): expose garbage collection duration metrics (#139592) fix(ui): keep Logbook timestamps clear of the activity stripe (#139539) fix(ui): keep Swarm outcomes visible after completion (#139490) test: check file accessibility without runtime-specific return values (#139590) refactor(sdk): keep helper types private (#139601) fix(cron): preserve current-session delivery intent (#139491) fix: prevent browser profile permission hangs in Doctor (#139612) fix(agents): repair storage-failure test fixture after failover owner move (#139531) fix(cli): keep note text with Windows and Unicode line endings (#139512) fix(agents): keep isolated completion context on its admitted generation (#139607) fix: avoid declaration builds during source-server updates (#139392) fix(models): keep discovered models after catalog refresh failures (#139357) fix(gateway): record a transcript notice when a run fails before replying (#139439)
What Problem This Solves
Resolves a maintainer-requested SDK boundary cleanup where helper-only declaration types in Plugin SDK implementation modules were exported even though they are not supported public SDK contracts.
Why This Change Was Made
The change keeps 14 helper-only type aliases local to
src/plugin-sdk/api-baseline.ts,src/plugin-sdk/api-diff.ts, andsrc/plugin-sdk/memory-core-bundled-runtime.ts. It preserves the public aggregate types and runtime values, includingPluginSdkApiExport,PluginSdkApiBaseline,PluginSdkApiDiff,PluginSdkApiDiffSurface,DreamingArtifactsAuditSummary, andShortTermAuditSummary.User Impact
No runtime behavior changes. Plugin developers keep the documented/public SDK types, while unsupported internal helper shapes stop appearing as exported source-level implementation details.
Evidence
mainbefore publication:e10007407d7ce25cf13d816123607993699dc6f3.git diff --full-index --binary | shasum -a 256->cd40292de50dc6015459a48de1a74f23c4331157ddf3823fe804b6b83a00ccb1.src/plugin-sdk/*target modules for the 14 helper type names; package/entrypoint metadata does not expose these files as typed public SDK entrypoints.git diff --checkpassed.Hosted exact-head PR CI will provide the final merge gate after this draft is marked ready.