- Replace broken registerMCPService with mcp.Register (fixes nil ServiceRuntime panic) - Remove dead mcp_service.go, update tests to use mcp.Register directly - Add setTestWorkspace() helper to clear workspaceRootOverride between tests - Fix 40+ test files with workspace state poisoning from loadAgentConfig - Fix forge.lthn.ai → dappco.re in findConsumersList test - Fix BranchWorkspaceCount test to use isolated temp dir - Add CLI test standard: 32 tests across 19 subsystems (tests/cli/) - All 9 packages pass, 0 failures Co-Authored-By: Virgil <virgil@lethean.io>
22 lines
397 B
Go
22 lines
397 B
Go
// SPDX-License-Identifier: EUPL-1.2
|
|
|
|
package main
|
|
|
|
import (
|
|
"dappco.re/go/core"
|
|
)
|
|
|
|
func Example_registerApplicationCommands() {
|
|
c := core.New(core.WithOption("name", "core-agent"))
|
|
registerApplicationCommands(c)
|
|
|
|
core.Println(len(c.Commands()))
|
|
// Output: 3
|
|
}
|
|
|
|
func Example_applyLogLevel() {
|
|
args := applyLogLevel([]string{"--debug", "status"})
|
|
|
|
core.Println(args[0])
|
|
// Output: status
|
|
}
|