Self-hosted workflows for coding-agent delivery. Orchestrate CodeBuddy, Codex and Claude Code with scripts and human approval gates. Includes Local workflows for coding assistants.
JavaScript agent-orchestrationagentic-workflowai-agentsai-codingclaude-codecode-reviewcodebuddycodexcoding-agentscursordeveloper-toolshuman-on-the-loopllmmcpmulti-agentsdlcself-hostedsopworkflow-automationworkflow-engine
package httpapi
import "testing"
func TestTrailingSlashEntity(t *testing.T) {
for _, tc := range []struct {
rest string
want string
}{
{"", ""},
{"users/", "users"},
{"users", "users"},
{"users/42/", "users"},
{"auth/", "auth"},
{"auth/tokens/", "auth/tokens"},
{"auth/tokens/abc/", "auth/tokens"},
{"auth/tokens", "auth/tokens"},
{"auth/other/", "auth"},
{"otel/v1/traces/", "otel"},
{"unknown/x/", "unknown"},
} {
if got := trailingSlashEntity(tc.rest); got != tc.want {
t.Errorf("trailingSlashEntity(%q) = %q want %q", tc.rest, got, tc.want)
}
}
}