feat(workspace, app, agent): add duplicate name validation and restrict model/memory config on agent publish