Repository navigation
v1.0.0-alpha.8
Pre-release
Pre-release
·
2 commits
to main
since this release
Added
- Behaviour-level coverage for the polling fetcher refresh-after-stop and post-error
inFlight()reset semantics. theme.ts—toneColor()maps semantic tones (base,muted,error,warning,success,info) onto host theme tokens, replacing per-plugin colour branches.util.ts—safe()wraps throw-prone host reads.tokens.ts—tokenBreakdown(),messageCost()andestimateTokens()normalize v1/v2 token and cost shapes.slot.ts—claimSlot()claims a UI slot and always returns a callable cleanup.panel.ts—createPanel()ownssession.panelclaim, name filtering, host open/close/fullscreen actions and active-state checks.persistedState.ts—createPersistedState()provides a reactive persisted object across the memory, store and signal backends.layout.ts—budgetFor(),compactFor()andcolumnFor()centralize sidebar width/row-budget math.format.tsgainscompactNumber(),formatCost(),formatDuration(),formatClock(),formatDelta(),formatPercent(),shortPath()andtruncate().commands.tsgainsregisterKeymapLayer()for layers registered from a rendered component.KitSlotOptionsgainsbefore/replaceanchors,KitUIgains an optionalpanel,KitStoragegains an optionalmemory, andKitKeymap.layeraccepts an optional layer-levelenabled.jsonc.ts—cleanJsonc(),tolerantParse(),addPluginSpec(),addPluginsKey(),removePluginSpec()andeditPluginsText()read JSONC and edit a config'spluginsarray textually, preserving comments.hostEvents.ts—createHostEvents()subscribes to host data events and keeps a heartbeat with a polling fallback.catalog.ts—listSkillCatalog(),syncSkillCatalog(),readSkillCatalog()andfindAgentsMd()centralize the location/sync/list dance and AGENTS.md discovery.messageIndex.ts—createMessageIndex()builds an incremental, fingerprint-guarded, windowed index of session messages, keyed per context.statusbar.ts—createStatusbar()claims a footer/status slot (home.footer,home.footer.status,prompt.footer,prompt.footer.status,prompt.footer.file) and degrades to a no-op on hosts without it.composer.ts—createComposer()claimssession.composer.topand exposes the last render input.palette.ts—paletteCommand(),registerPaletteCommand(),registerPaletteGroup()anddynamicPaletteCommand()register command-palette entries through a renderedapp-slot keymap layer.router.ts—createPage(),navigateTo()andcurrentRoute()register and drive plugin pages on hosts that exposeui.router.attention.ts—requestAttention(),notifyTaskComplete()andnotifyError()request a notification/sound and fall back to a toast.tabs.ts—createTabs()reads and controls session tabs (open/focus/move/close/active), no-op on hosts without tab support.KitRouter,KitTabsandKitAttentionhost-contract types;KitUIgains optionalrouterandtabs.QUICKSTART.mdandexamples/hello-plugin/— a from-scratch guide and a minimal working plugin.docs/SURFACES.md— maps every plugin surface (sidebar, footer/status, composer, panel, pages, palette, tabs, attention) to the module that owns it.docs/COMPATIBILITY.md— the published host compatibility matrix.tests/runtime-smoke.test.ts(npm run test:smoke) — imports the real@opencode/pluginruntime and executes every kit factory against a host-shaped context, catching import-time and runtime breakage the type-tripwire cannot see.scripts/check-host-compat.mjs(npm run check:host-compat) now runs both the type tripwire and the runtime smoke against each pinned@opencode/pluginversion, reports per-check results, and can refresh the matrix with--write-matrix..github/workflows/host-compat.yml— a version matrix that runs the compatibility checks on every push and PR.
Changed
tabs.ts—active()andisOpen()drop redundant try/catch around the internallist(), which already swallows host errors.publish.ymlgains a host-compatibility gate beforenpm publish, so a release that breaks a supported host cannot be published.package.json#filesagain includesdist/— the built./collapsibleentry (dist/collapsible.js) is the non-development export, so dropping it from the tarball would have broken the published subpath.