refactor(plugins): route iMessage runtime through plugin sdk#51770
Conversation
Greptile SummaryThis PR routes two plugin runtime files ( Key points:
Confidence Score: 5/5
Prompt To Fix All With AIThis is a comment left during a code review.
Path: test/fixtures/plugin-extension-import-boundary-inventory.json
Line: 1-3
Comment:
**Inventory count discrepancy with PR description**
The PR description states "reduce the remaining grandfathered direct imports from 4 to 3", but this diff removes **two** entries (both `runtime-imessage.ts` and `runtime-slack-ops.runtime.ts`) from a previous total of 5, bringing the count to 3 — a reduction of 2, not 1. The description also only calls out removing "the stale iMessage entry", while the Slack entry is removed here as well.
The code changes themselves are correct and consistent (both files now import through the plugin SDK, and both entries are rightfully removed). The mismatch is just in the PR description's accounting, which may be confusing to future readers of the inventory's git history.
How can I resolve this? If you propose a fix, please make it concise.Last reviewed commit: "refactor: route iMes..." |
| [ | ||
| { | ||
| "file": "src/plugins/runtime/runtime-imessage.ts", | ||
| "line": 5, | ||
| "kind": "import", | ||
| "specifier": "../../../extensions/imessage/runtime-api.js", | ||
| "resolvedPath": "extensions/imessage/runtime-api.js", | ||
| "reason": "imports extension-owned file from src/plugins" | ||
| }, | ||
| { | ||
| "file": "src/plugins/runtime/runtime-slack-ops.runtime.ts", | ||
| "line": 10, | ||
| "kind": "import", | ||
| "specifier": "../../../extensions/slack/runtime-api.js", | ||
| "resolvedPath": "extensions/slack/runtime-api.js", | ||
| "reason": "imports extension-owned file from src/plugins" | ||
| }, | ||
| { | ||
| "file": "src/plugins/runtime/runtime-telegram-ops.runtime.ts", |
There was a problem hiding this comment.
Inventory count discrepancy with PR description
The PR description states "reduce the remaining grandfathered direct imports from 4 to 3", but this diff removes two entries (both runtime-imessage.ts and runtime-slack-ops.runtime.ts) from a previous total of 5, bringing the count to 3 — a reduction of 2, not 1. The description also only calls out removing "the stale iMessage entry", while the Slack entry is removed here as well.
The code changes themselves are correct and consistent (both files now import through the plugin SDK, and both entries are rightfully removed). The mismatch is just in the PR description's accounting, which may be confusing to future readers of the inventory's git history.
Prompt To Fix With AI
This is a comment left during a code review.
Path: test/fixtures/plugin-extension-import-boundary-inventory.json
Line: 1-3
Comment:
**Inventory count discrepancy with PR description**
The PR description states "reduce the remaining grandfathered direct imports from 4 to 3", but this diff removes **two** entries (both `runtime-imessage.ts` and `runtime-slack-ops.runtime.ts`) from a previous total of 5, bringing the count to 3 — a reduction of 2, not 1. The description also only calls out removing "the stale iMessage entry", while the Slack entry is removed here as well.
The code changes themselves are correct and consistent (both files now import through the plugin SDK, and both entries are rightfully removed). The mismatch is just in the PR description's accounting, which may be confusing to future readers of the inventory's git history.
How can I resolve this? If you propose a fix, please make it concise.e750c68 to
79d0107
Compare
* main: (516 commits) fix: use content hash for memory flush dedup instead of compactionCount (openclaw#30115) (openclaw#34222) fix(tts): add matrix to VOICE_BUBBLE_CHANNELS (openclaw#37080) feat(memory): pluggable system prompt section for memory plugins (openclaw#40126) fix: detect nvm services from installed command (openclaw#51146) fix: handle Linux nvm CA env before startup (openclaw#51146) (thanks @GodsBoy) refactor: route Telegram runtime through plugin sdk (openclaw#51772) refactor: route iMessage runtime through plugin sdk (openclaw#51770) refactor: route Slack runtime through plugin sdk (openclaw#51766) refactor(doctor): extract provider and shared config helpers (openclaw#51753) Fix Discord `/codex_resume` picker expiration (openclaw#51260) fix(ci): remove duplicate embedding default export fix(ci): restore embedding defaults and plugin boundaries fix: compaction safeguard summary budget (openclaw#27727) web UI: fix context notice using accumulated inputTokens instead of prompt snapshot (openclaw#51721) fix(status): skip cold-start status probes refactor(doctor): extract telegram provider warnings (openclaw#51704) fix(telegram): default fresh setups to mention-gated groups docs(changelog): note telegram doctor first-run guidance fix(doctor): add telegram first-run guidance fix(doctor): suppress telegram fresh-install group warning ...
Summary
src/plugins/runtime/runtime-imessage.tsthroughsrc/plugin-sdk/imessage.tsTesting
import { createRuntimeIMessage } from './src/plugins/runtime/runtime-imessage.ts';
const runtime = createRuntimeIMessage();
console.log(JSON.stringify({
hasMonitor: typeof runtime.monitorIMessageProvider === 'function',
hasProbe: typeof runtime.probeIMessage === 'function',
hasSend: typeof runtime.sendMessageIMessage === 'function'
}, null, 2));
EON