Repository navigation
fix(plugin-sdk): ship documented public typings - #116345
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 6:13 AM ET / 10:13 UTC. ClawSweeper reviewWhat this changesThe PR makes Merge readinessKeep this PR open for maintainer review. The patch consistently restores declarations for two documentation-listed SDK imports, but a related open documentation PR still classifies Priority: P2 Review scores
Verification
How this fits togetherExternal plugins consume OpenClaw through flowchart LR
PluginAuthors[External plugin authors] --> Docs[SDK entrypoint documentation]
Docs --> Imports[Documented SDK imports]
Imports --> Exports[Package export map]
Exports --> PackageFiles[Published JavaScript and declarations]
PackageFiles --> PluginCompile[External plugin compilation]
Guardrails[SDK contract guardrails] --> Docs
Guardrails --> Exports
Decision needed
Why: The PR’s implementation is internally consistent, but the related open documentation work explicitly treats at least Before merge
Agent review detailsSecurityNone. PR surfaceSource -6, Tests +50, Docs +2, Config -6, Generated +2, Other +1. Total +43 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Resolve the public-versus-private classification for both subpaths, then keep one canonical package export, private-local manifest, documentation, and contract-test position; merge this restoration only if typed external support is the chosen contract. Do we have a high-confidence way to reproduce the issue? Yes, from source with medium confidence: the prior manifest exported JavaScript for the documented subpaths while excluding their Is this the best way to solve the issue? Unclear: restoring declarations is the narrowest technical repair if these paths are intended public, but the conflicting private-local documentation means maintainers must first choose the permanent SDK boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a4c6efc998f1. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer SDK decision: Reason: both are already documented as public SDK imports, and external plugin compatibility depends on the shipped declarations matching those docs. The durable contract is the public export plus declaration, not the accidental July packaging demotion. ClawSweeper rank-up moves:
|
|
Final merge check: all exact-head CI checks completed successfully on Both ClawSweeper rank-up moves are satisfied: the SDK owner decision is recorded and PR #111718 is reconciled; the reviewed-head checks are green. |
…penclaw#111451 Add docs rows for 7 subpaths demoted to private-local-only by openclaw#111451 but whose docs sync was missed alongside `text-utility-runtime`: - agent-core, agent-sessions, document-extractor, llm, time-runtime, types, windows-spawn Each row mirrors the "Private-local after July 2026; ..." prefix openclaw#111451 applied to `text-utility-runtime`, placed in the same "Runtime and storage subpaths" Accordion. Completes the docs half of the 4-file alignment for these demotes so plugin authors no longer reasonably assume the subpaths are public SDK seams — the same ambiguous-state class reported in openclaw#111660 for `simple-completion-runtime`. `tool-results` is excluded: it remains a supported typed public SDK entrypoint per maintainer decision on openclaw#111718; openclaw#116345 restores its declaration packaging and adds a contract guard. Related to openclaw#111451
* fix(plugin-sdk): ship documented public typings * fix(plugin-sdk): refresh public contract artifacts
Related: #111718
What Problem This Solves
Fixes an issue where external plugin authors importing the documented
openclaw/plugin-sdk/session-catalogoropenclaw/plugin-sdk/tool-resultsentrypoints would receive JavaScript exports without shipped TypeScript declarations.Why This Change Was Made
Restores both documented entrypoints to the typed public SDK surface, includes their declarations in the npm package, and adds a contract guard so imports advertised by the SDK entrypoint guide cannot silently lose public typings again.
User Impact
External plugins can compile against the documented session catalog and tool result helpers without local shims or unpublished OpenClaw source types.
Evidence
node scripts/run-vitest.mjs src/plugins/contracts/plugin-sdk-package-contract-guardrails.test.ts(22 tests passed)node scripts/plugin-sdk-surface-report.mjs --checknode scripts/sync-plugin-sdk-exports.mjs --checknode scripts/docs-list.jsoxfmtcheck andgit diff --checkAI-assisted: yes. I reviewed the implementation and validation results.