Skip to content

Latest commit

 

History

History
250 lines (232 loc) · 28.6 KB

contract-bindings.md

File metadata and controls

250 lines (232 loc) · 28.6 KB

Host and contribution bindings

Registry: catalog/host-bindings.v1.json (one entry per host-api op plus one per host.call capability) and catalog/contribution-bindings.v1.json (one entry per contribution kind). reaches_core means the implementing file references application:: at least once, which is the same test scripts/check-arch-*.mjs will apply. status is ready (registered and implemented), preview (registered, but the implementation is a fallback, a no-op, or partial; for contribution kinds, the Host consumer exists but no official plugin ships the kind yet), or undeclared (implemented or reachable, but absent from host-api.v1.json).

Summary

  • host-api ops: 155
  • host.call capabilities: 32 (22 registered in host-api.v1.json, 10 absent)
  • binding entries: 187 (155 op, 32 capability)
  • host-api ops with reaches_core=true: 19 / 155
  • implementation files containing sqlx::: 5 (crates/server/src/host/plugin_conversation.rs 6, crates/server/src/host/provider_bind.rs 2, crates/plugins/src/control_plane.rs 3, crates/plugins/src/host_capability_broker.rs 1, crates/server/src/host/collaboration.rs 25)
  • contribution kinds: 23 catalogued, 15 used by official plugins
  • official plugins scanned: 15

1. Unregistered but used

Type Name Evidence
— — none

2. Registered but unused

Kind Status Binding consumer Note
content.hook unimplemented none no official plugin declares it
app.toolbar preview frontend/src/components/layout/Toolbar.tsx no official plugin declares it
app.timeline.card preview frontend/src/components/plugins/PluginTimelineCards.tsx no official plugin declares it
app.settings.section preview frontend/src/components/plugins/PluginSettingsSections.tsx no official plugin declares it
host.service preview crates/plugins/src/package.rs no official plugin declares it
provider.model.importSource preview frontend/src/pages/settings/AgentModelProviderManager.tsx no official plugin declares it
provider.model.catalog ready frontend/src/features/plugins/providers/hostProviderServices.ts no official plugin declares it
app.tab preview frontend/src/components/layout/Toolbar.tsx no official plugin declares it

Capabilities declared but never called by an official plugin (informational, not a failure by itself — some are host-side only):

runtime.execute, runtime.lock, exec, artifact, storage.kv, secrets, secret, secret.keep, files, fs, fs.read, fs.write, net, net.fetch, net.websocket, env, env.read, log, events, agent, conversation, collaboration, workspace, blob, plugin.self, provider.presets

3. Bound to implementations that do not reach the Application Core

Capability / op Implementation Port Ops bound
remote crates/server/src/host/remote_profiles.rs crates/plugins/src/remote_profiles.rs:RemoteProfileHost 6
artifact.preview crates/plugins/src/process_preview_host.rs crates/plugins/src/preview_host.rs:PluginPreviewHost 3
artifact crates/plugins/src/app_surface.rs — 3
storage crates/plugins/src/package.rs, crates/plugins/src/host_capability_broker.rs — 5
storage.kv crates/plugins/src/control_plane.rs, crates/plugins/src/host_capability_broker.rs — 5
secrets crates/plugins/src/host_capability_broker.rs — 4
files crates/plugins/src/host_capability_broker.rs — 5
network crates/plugins/src/host_capability_broker.rs — 2
log crates/plugins/src/host_capability_broker.rs — 5
events crates/plugins/src/host_capability_broker.rs — 3
agent crates/plugins/src/host_capability_broker.rs crates/plugins/src/host_capability_broker.rs:AgentInvocationHandler 2
runtime.execute crates/plugins/src/host_capability_broker.rs — 2
app crates/plugins/src/host_capability_broker.rs — 2
plugin.self crates/plugins/src/host_capability_broker.rs — 2
runtime.lock crates/plugins/src/host_capability_broker.rs — 2
exec crates/plugins/src/host_capability_broker.rs — 2
secret crates/plugins/src/host_capability_broker.rs — 1
secret.keep crates/plugins/src/host_capability_broker.rs — 1
fs crates/plugins/src/host_capability_broker.rs — 1
fs.read crates/plugins/src/host_capability_broker.rs — 1
fs.write crates/plugins/src/host_capability_broker.rs — 1
net crates/plugins/src/host_capability_broker.rs — 1
net.fetch crates/plugins/src/host_capability_broker.rs — 1
net.websocket crates/plugins/src/host_capability_broker.rs — 1
env crates/plugins/src/host_capability_broker.rs — 1
env.read crates/plugins/src/host_capability_broker.rs — 1
collaboration crates/server/src/host/collaboration.rs crates/plugins/src/collaboration_host.rs:CollaborationHost 56
workspace crates/server/src/host/collaboration.rs crates/plugins/src/collaboration_host.rs:CollaborationHost 2
browser crates/browser-host/src/service.rs crates/browser-host 38
blob crates/plugins/src/blob_store.rs — 7

Unresolved

  • every registered implementation file exists

  • no contribution binding has an unknown consumer or example plugin

  • host.service: contribution-bindings says ready, contribution-kinds says preview

  • app.tab: contribution-bindings says ready, contribution-kinds says preview

Appendix: host-api op bindings

Op Port trait Port method Implementation reaches_core Status
conversation.create crates/plugins/src/conversation_host.rs:PluginConversationHost create crates/server/src/host/plugin_conversation.rs:create true ready
conversation.list crates/plugins/src/conversation_host.rs:PluginConversationHost list crates/server/src/host/plugin_conversation.rs:list true ready
conversation.read.get crates/plugins/src/conversation_host.rs:PluginConversationHost get crates/server/src/host/plugin_conversation.rs:get true ready
conversation.append.enqueueInput crates/plugins/src/conversation_host.rs:PluginConversationHost enqueue crates/server/src/host/plugin_conversation.rs:enqueue true ready
conversation.steer crates/plugins/src/conversation_host.rs:PluginConversationHost steer crates/server/src/host/plugin_conversation.rs:steer true ready
conversation.cancel crates/plugins/src/conversation_host.rs:PluginConversationHost cancel crates/server/src/host/plugin_conversation.rs:cancel true ready
conversation.cancelInput crates/plugins/src/conversation_host.rs:PluginConversationHost cancel_input crates/server/src/host/plugin_conversation.rs:cancel_input true ready
conversation.listInputs crates/plugins/src/conversation_host.rs:PluginConversationHost list_inputs crates/server/src/host/plugin_conversation.rs:list_inputs true ready
conversation.respondPermission crates/plugins/src/conversation_host.rs:PluginConversationHost respond_permission crates/server/src/host/plugin_conversation.rs:respond_permission true ready
conversation.respondQuestion crates/plugins/src/conversation_host.rs:PluginConversationHost respond_question crates/server/src/host/plugin_conversation.rs:respond_question true ready
conversation.setMode crates/plugins/src/conversation_host.rs:PluginConversationHost set_mode crates/server/src/host/plugin_conversation.rs:set_mode true ready
conversation.setConfigOption crates/plugins/src/conversation_host.rs:PluginConversationHost set_config_option crates/server/src/host/plugin_conversation.rs:set_config_option true ready
conversation.catalog crates/plugins/src/conversation_host.rs:PluginConversationHost catalog crates/server/src/host/plugin_conversation.rs:catalog true ready
conversation.archive crates/plugins/src/conversation_host.rs:PluginConversationHost archive crates/server/src/host/plugin_conversation.rs:archive true ready
conversation.events.since crates/plugins/src/conversation_host.rs:PluginConversationHost events_since crates/server/src/host/plugin_conversation.rs:events_since true ready
conversation.draft.insert crates/plugins/src/conversation_host.rs:PluginConversationHost insert_draft crates/server/src/host/plugin_conversation.rs:insert_draft true ready
provider.presets.list crates/plugins/src/provider_presets.rs:ProviderPresetHost list crates/server/src/host/provider_bind.rs:list true ready
provider.presets.save crates/plugins/src/provider_presets.rs:ProviderPresetHost save crates/server/src/host/provider_bind.rs:save true ready
provider.presets.bind crates/plugins/src/provider_presets.rs:ProviderPresetHost bind crates/server/src/host/provider_bind.rs:bind true ready
remote.profile.list crates/plugins/src/remote_profiles.rs:RemoteProfileHost list crates/server/src/host/remote_profiles.rs:list false ready
remote.profile.upsert crates/plugins/src/remote_profiles.rs:RemoteProfileHost upsert crates/server/src/host/remote_profiles.rs:upsert false ready
remote.profile.forget crates/plugins/src/remote_profiles.rs:RemoteProfileHost forget crates/server/src/host/remote_profiles.rs:forget false ready
remote.connect crates/plugins/src/remote_profiles.rs:RemoteProfileHost connect crates/server/src/host/remote_profiles.rs:connect false ready
remote.disconnect crates/plugins/src/remote_profiles.rs:RemoteProfileHost disconnect crates/server/src/host/remote_profiles.rs:disconnect false ready
artifact.preview.open crates/plugins/src/preview_host.rs:PluginPreviewHost open_preview crates/plugins/src/process_preview_host.rs:open_preview false ready
artifact.preview.close crates/plugins/src/preview_host.rs:PluginPreviewHost close_preview crates/plugins/src/process_preview_host.rs:close_preview false ready
artifact.readText — — crates/plugins/src/app_surface.rs:read_artifact_text false ready
artifact.writeText — — crates/plugins/src/app_surface.rs:write_artifact_text false ready
storage.settings.get — — crates/plugins/src/package.rs:PluginPackage::inspect false ready
storage.settings.put — — crates/plugins/src/package.rs:write_config false ready
storage.kv.get — kv_get crates/plugins/src/control_plane.rs:kv_get false ready
storage.kv.put — kv_put crates/plugins/src/control_plane.rs:kv_put false ready
storage.kv.delete — kv_delete crates/plugins/src/control_plane.rs:kv_delete false ready
storage.kv.list — kv_list_keys crates/plugins/src/control_plane.rs:kv_list_keys false ready
storage.database.execute — execute crates/plugins/src/host_capability_broker.rs:call_plugin_data false preview
storage.database.query — query crates/plugins/src/host_capability_broker.rs:call_plugin_data false preview
secrets.get — get crates/plugins/src/host_capability_broker.rs:call_secrets false ready
secrets.put — put crates/plugins/src/host_capability_broker.rs:call_secrets false ready
secrets.delete — delete crates/plugins/src/host_capability_broker.rs:call_secrets false ready
files.read — read crates/plugins/src/host_capability_broker.rs:call_files false ready
files.write — write crates/plugins/src/host_capability_broker.rs:call_files false ready
files.stat — stat crates/plugins/src/host_capability_broker.rs:call_files false ready
files.list — list crates/plugins/src/host_capability_broker.rs:call_files false ready
network.fetch — fetch crates/plugins/src/host_capability_broker.rs:execute_network_fetch false ready
log.debug — debug crates/plugins/src/host_capability_broker.rs:call false preview
log.info — info crates/plugins/src/host_capability_broker.rs:call false preview
log.warn — warn crates/plugins/src/host_capability_broker.rs:call false preview
log.error — error crates/plugins/src/host_capability_broker.rs:call false preview
events.subscribe — subscribe crates/plugins/src/host_capability_broker.rs:call_events false ready
events.ack — ack crates/plugins/src/host_capability_broker.rs:call_events false ready
agent.invoke crates/plugins/src/host_capability_broker.rs:AgentInvocationHandler invoke crates/plugins/src/host_capability_broker.rs:call_agent_invoke false ready
runtime.execute.run — — crates/plugins/src/host_capability_broker.rs:execute_runtime false ready
app.notify.toast — — crates/plugins/src/host_capability_broker.rs:call_plugin_data false ready
plugin.self.doctor — doctor crates/plugins/src/host_capability_broker.rs:call_plugin_self false ready
collaboration.role.list crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.role.create crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.role.update crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.role.delete crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.role.agents crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.agent.controls crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.team.list crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.team.create crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.team.update crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.team.delete crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.list crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.create crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.rename crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.addMember crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.createMember crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.moveMember crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.batchDelete crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.setIdentity crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.listMembers crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.listMessages crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.listScheduledMessages crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.post crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.react crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.submit crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.card.list crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.card.resolve crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.memory.list crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.memory.update crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.memory.delete crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.activity.list crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.config.get crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.config.update crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.session.resolve crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.contactGroup.list crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.contactGroup.create crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.contactGroup.rename crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.contactGroup.delete crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.contactGroup.reorder crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.thread.setGroup crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.thread.listSidebar crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.thread.markRead crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.thread.markUnread crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.thread.update crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.list crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.update crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.member.setWriteAccess crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.listEvents crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.receipts crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.cancelTurn crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.wakePreview crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.warmup crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.listCollection crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.addCollectionItem crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.readCollectionItem crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
collaboration.space.listConversations crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
workspace.focusConversation crates/plugins/src/collaboration_host.rs:CollaborationHost call crates/server/src/host/collaboration.rs:call false ready
browser.capabilities crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.settings.get crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.settings.set crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.policy.setRules crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.profile.list crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.profile.create crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.profile.clear crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.profile.remove crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.create crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.close crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.list crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.navigate crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.back crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.forward crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.reload crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.stop crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.find crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.zoom crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.surface.freeze crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.devtools crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.chrome crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.title crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.tab.device crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.surface.set crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.grant.set crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.snapshot crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.act crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.console.read crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.console.push crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.eval.request crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.eval.run crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.eval.decide crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.pick.start crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.pick.element crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.pick.take crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.pick.cancel crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
browser.pick.cloak crates/browser-host dispatch crates/browser-host/src/service.rs:dispatch false ready
blob.create — dispatch crates/plugins/src/blob_store.rs:dispatch false ready
blob.append — dispatch crates/plugins/src/blob_store.rs:dispatch false ready
blob.finish — dispatch crates/plugins/src/blob_store.rs:dispatch false ready
blob.stat — dispatch crates/plugins/src/blob_store.rs:dispatch false ready
blob.read — dispatch crates/plugins/src/blob_store.rs:dispatch false ready
blob.delete — dispatch crates/plugins/src/blob_store.rs:dispatch false ready
runtime.lock.get — get crates/plugins/src/host_capability_broker.rs:get_runtime_lock false ready
exec.run — run crates/plugins/src/host_capability_broker.rs:call_exec false preview