mirror of
https://github.com/zap-proto/zip.git
synced 2026-10-19 15:38:57 +00:00
The verb deletion is done and the library builds: Graft, Add, Service, the Mount VERB and the claims ledger are gone; Load and Mount return definitions; Plugins/Reload/Unload now find their plugin by walking. NOT DONE — the same entanglement, one layer over: a plugin's MCP catalogue (pluginTools/toolOwners/open) is still read off the host that loaded it, but a plugin is now a definition, so the host reads an empty set and serves no door. Four mcp_compose/mcp_open tests fail on exactly that. The fix is the same one that worked for Plugins(): aggregate across App.hosts() instead of reading a private map, and move the duplicate-tool-name refusal to the walk so two plugins can actually see each other. Co-authored-by: Hanzo Dev <[email protected]>
12 lines
279 B
Go
12 lines
279 B
Go
package zip
|
|
|
|
// mustApp unwraps a definition constructor's (*App, error) for an in-package
|
|
// test. See must in compose_helpers_test.go for why the error lives at
|
|
// construction and not at Use.
|
|
func mustApp(a *App, err error) *App {
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return a
|
|
}
|