chore(dreaming): commit bench-reflective-dreaming bundler stub#15
Merged
Conversation
The bench-reflective-dreaming plugin is `runtime: "scripts"` (real behavior in scripts/install.mjs + scripts/uninstall.mjs), but the tsdown bundler defaults to ./index.ts when a manifested plugin has no package.json. This commits the minimal stub that's been sitting untracked since 2026-04-20 — should have shipped with PR #1 / #4. The export keeps the stub a real module (oxlint's `unicorn/require-module-specifiers` rejects `export {}`). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Surfaced by Codex Anvil (PR #15 smoke 20260428T074754Z): the bare `export const PLUGIN_RUNTIME` satisfied tsdown but didn't satisfy the OpenClaw plugin loader contract — `src/plugins/loader.ts` rejects modules without `register` or `activate`. If the plugin were ever explicitly enabled, the loader would fail. Replaces the bare constant with a no-op `definePluginEntry`. Real behavior still lives in `scripts/install.mjs` + `scripts/uninstall.mjs` (scripts-runtime plugin); the no-op `register()` keeps the loader happy without registering anything at import time. Verified by Codex: explicit-enabled load returns `status: "loaded"`, `pnpm build` emits `dist/extensions/bench-reflective-dreaming/index.js`, all bundled-plugin tests pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 28, 2026
LightDriverCS
added a commit
that referenced
this pull request
Apr 28, 2026
…with Anvil repair) (#16) Indexes the canon/ directory as a first-class memory-wiki page kind. Without this, daily canon roll-ups written by reflective-dreaming agents were invisible to wiki.search / wiki.get / wiki.status / compile pipeline. Includes Codex Anvil 5.5 xhigh repair (verdict REPAIR → applied): - Vault init now creates canon/ (was crashing compileMemoryWikiVault with ENOENT) - Status text + root-index count include canon - wiki repair scans canon for structure consistency - Regression tests across 7 test files Supersedes #10. Rebased onto post-#15 main so pnpm build clears. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Commits the 6-line
extensions/bench-reflective-dreaming/index.tsbundler stub that's been sitting untracked since 2026-04-20.Why
The
bench-reflective-dreamingplugin isruntime: "scripts"(real behavior inscripts/install.mjs+scripts/uninstall.mjs), but the tsdown bundler defaults to./index.tswhen a manifested plugin has nopackage.json. The stub should have shipped with #1 (the dreaming + claude-code-bridge feature PR) or #4 (the fleet-canon prompt fix) but was missed.Why a real export instead of
export {}oxlint's
unicorn/require-module-specifiersrule rejectsexport {}("Empty export specifier is not allowed").export const PLUGIN_RUNTIME = "scripts" as const;keeps the stub a real module without changing runtime behavior.Test plan
🤖 Generated with Claude Code
Anvil Handoff
extensions/bench-reflective-dreaming/index.tsbundler stub (untracked since 2026-04-20). Should have shipped with feat(extensions): bench-reflective-dreaming + claude-code-bridge #1 or fix(dreaming): fleet-canon emits openclaw-required frontmatter #4. Initiallyexport {};but oxlint rejected; ships asexport const PLUGIN_RUNTIME = "scripts" as const;. Independent of the Phase D2.1 stack.extensions/bench-reflective-dreaming/index.ts(new)PLUGIN_RUNTIMEconstant is unreferenced — future tightening of unused-export rules could trip again. Bundler still needsindex.tsto exist for tsdown discovery.pnpm buildor equivalent) and confirm tsdown actually emits the dreaming plugin. Compare against otherruntime: "scripts"plugins for the canonical stub pattern.