Files
openclaw/scripts/lib/plugin-sdk-private-local-only-subpaths.json
T
Peter Steinberger c2e7c819f5 perf(doctor): slim remaining heavy doctor contract closures (#120811)
* perf(doctor): slim remaining heavy doctor contract closures

Follow-up to #120698: several doctor closures still cold-loaded multi-second
kysely-bearing graphs through other broad barrels (session-store-runtime,
realtime-voice, channel-outbound, logging-core, memory-host-core/-events,
sqlite-runtime, persistent-dedupe, and plugin-local barrels).

- lazy-import heavy helpers inside async migration bodies (codex, msteams,
  zalouser, workboard, matrix inbound-dedupe, memory-core migrations)
- bypass plugin-local barrels to defining modules (reef protocol,
  memory-core short-term-promotion)
- move to lighter existing subpaths (slack -> channel-streaming, matrix
  logger -> security-runtime, memory-wiki -> agent-scope-runtime, which now
  also exports resolveSessionAgentId)
- add narrow openclaw/plugin-sdk/realtime-voice-activation for discord's
  sync wake-name doctor rules
- split src/infra/kysely-sync-cache-state.ts so sqlite-transaction clears
  Kysely caches without value-loading kysely; split the memory-host-sdk
  kysely bridge off the schema/transaction bridge
- guard: forbid the heavy barrels in doctor closures with per-kind scoping

Cold enumeration per plugin: discord 52.6s->0.3s, msteams 30.9s->0.5s,
codex 29.6s->2.6s, zalouser 28.8s->2.3s, matrix 27.2s->3.2s,
slack 17.5s->1.5s, reef 9.9s->0.7s, memory-core 6.4s->3.6s,
workboard 3.4s->0.25s; all kysely-free except llm-task (named follow-up).

* fix(plugins): route slack streaming compat through a focused streaming-config subpath

The channel-streaming compat barrel is deprecated for extension production
code (deprecated-api-usage guard + SDK package contract). Add the narrow
non-deprecated openclaw/plugin-sdk/channel-streaming-config subpath for the
pure streaming config readers, and drop the now consumer-less
short-term-promotion barrel re-exports knip flagged.

* test(plugins): register memory-host-sdk kysely bridge in package boundary inventory

* fix(plugins): classify realtime-voice-activation as private-local

ClawSweeper P2: the subpath exports only a default target, which is the
private-local shape; register it in plugin-sdk-private-local-only-subpaths,
the package-boundary d.ts alias maps, and correct the public surface budgets
(realtime-voice-activation no longer counts as public).

* fix(release): exclude realtime-voice-activation declarations from the published package

Private-local subpaths ship without d.ts; register the files negation the
release pack-path check requires.
2026-08-08 20:28:58 -07:00

186 lines
4.6 KiB
JSON

[
"access-groups",
"account-resolution-runtime",
"acp-binding-resolve-runtime",
"acp-binding-runtime",
"acp-runtime",
"acp-runtime-backend",
"agent-core",
"agent-harness-exec-review-runtime",
"agent-harness-task-runtime",
"agent-harness-tool-runtime",
"agent-runtime-test-contracts",
"agent-sessions",
"approval-reaction-runtime",
"approval-reference-runtime",
"async-lock-runtime",
"browser-config",
"bundled-channel-config-schema",
"channel-activity-runtime",
"channel-config-writes",
"channel-contract-testing",
"channel-mention-gating",
"channel-route",
"channel-secret-tts-runtime",
"channel-target-testing",
"channel-targets",
"channel-test-helpers",
"chat-channel-ids",
"cli-backend",
"cli-runtime",
"codex-mcp-projection",
"codex-session-transcript-runtime",
"command-status-runtime",
"command-surface",
"concurrency-runtime",
"context-visibility-runtime",
"conversation-binding-runtime",
"cron-store-runtime",
"dangerous-name-runtime",
"delivery-queue-runtime",
"direct-dm-guard-policy",
"directory-config-runtime",
"document-extractor",
"embedding-providers",
"exec-approvals-runtime",
"expect-runtime",
"fetch-runtime",
"file-access-runtime",
"file-lock",
"global-singleton",
"group-activation",
"heartbeat-runtime",
"host-runtime",
"html-entity-runtime",
"image-generation",
"image-generation-core",
"image-generation-runtime",
"inline-image-data-url-runtime",
"json-schema-runtime",
"json-unsafe-integers",
"keyed-async-queue",
"llm",
"markdown-table-runtime",
"media-generation-runtime",
"memory-core-host-embedding-registry",
"memory-core-host-engine-curated",
"memory-core-host-engine-embeddings",
"memory-core-host-engine-fs",
"memory-core-host-engine-qmd",
"memory-core-host-engine-schema",
"memory-core-host-engine-storage",
"memory-core-host-runtime-cli",
"memory-core-host-runtime-core",
"memory-core-host-runtime-files",
"memory-core-host-secret",
"memory-core-host-status",
"memory-host-events",
"memory-host-markdown",
"memory-host-search",
"message-tool-delivery-hints",
"migration",
"migration-runtime",
"music-generation",
"node-host",
"number-runtime",
"outbound-media",
"pair-loop-guard-runtime",
"plugin-state-runtime",
"plugin-state-test-runtime",
"plugin-test-api",
"plugin-test-contracts",
"plugin-test-runtime",
"poll-runtime",
"process-runtime",
"provider-auth-api-key",
"provider-auth-login-flow-runtime",
"provider-auth-result",
"provider-auth-runtime",
"provider-catalog-live-runtime",
"provider-catalog-shared",
"provider-entry",
"provider-env-vars",
"provider-http",
"provider-http-test-mocks",
"provider-model-shared",
"provider-model-types",
"provider-oauth-runtime",
"provider-onboard",
"provider-selection-runtime",
"provider-setup",
"provider-stream",
"provider-stream-family",
"provider-stream-shared",
"provider-test-contracts",
"provider-tools",
"provider-transport-runtime",
"provider-usage",
"provider-web-fetch",
"provider-web-fetch-contract",
"provider-web-search",
"provider-web-search-config-contract",
"provider-web-search-contract",
"qa-channel",
"qa-channel-protocol",
"qa-lab",
"qa-runner-runtime",
"qa-runtime",
"realtime-bootstrap-context",
"realtime-transcription",
"realtime-voice-audio-queue",
"realtime-voice-activation",
"realtime-voice",
"reply-payload-testing",
"reply-reference",
"request-url",
"response-limit-runtime",
"retry-runtime",
"runtime-doctor",
"runtime-doctor-migrations",
"runtime-fetch",
"sandbox",
"secret-file-runtime",
"secure-random-runtime",
"session-binding-runtime",
"session-catalog-runtime",
"session-key-runtime",
"session-transcript-hit",
"session-transcript-runtime",
"session-visibility",
"simple-completion-runtime",
"speech",
"speech-core",
"sqlite-runtime",
"sqlite-runtime-testing",
"ssrf-dispatcher",
"ssrf-runtime-internal",
"string-normalization-runtime",
"system-event-runtime",
"talk-config-runtime",
"target-resolver-runtime",
"test-env",
"test-fixtures",
"test-live",
"test-live-auth",
"test-media-generation",
"test-media-understanding",
"test-node-mocks",
"test-state",
"text-autolink-runtime",
"text-utility-runtime",
"thread-bindings-runtime",
"thread-bindings-session-runtime",
"time-runtime",
"tool-payload",
"transcripts",
"transport-ready-runtime",
"tts-runtime",
"types",
"video-generation",
"video-generation-core",
"video-generation-runtime",
"web-content-extractor",
"webhook-targets",
"windows-spawn"
]